diff --git a/storybook-static/1205.57b2f649.iframe.bundle.js b/storybook-static/1205.57b2f649.iframe.bundle.js deleted file mode 100644 index ed53b7d74..000000000 --- a/storybook-static/1205.57b2f649.iframe.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 1205.57b2f649.iframe.bundle.js.LICENSE.txt */ -(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[1205],{"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function toPropertyKey(t){var i=function toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}function _defineProperty(obj,key,value){return(key=toPropertyKey(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}__webpack_require__.d(__webpack_exports__,{Z:function(){return _defineProperty}})},"./node_modules/@deck.gl/core/dist/esm/controllers/controller.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Controller}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_transition_manager__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/transition-manager.js"),_transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/linear-interpolator.js");const NO_TRANSITION_PROPS={transitionDuration:0},INERTIA_EASING=t=>1-(1-t)*(1-t),EVENT_TYPES_WHEEL=["wheel"],EVENT_TYPES_PAN=["panstart","panmove","panend"],EVENT_TYPES_PINCH=["pinchstart","pinchmove","pinchend"],EVENT_TYPES_TRIPLE_PAN=["tripanstart","tripanmove","tripanend"],EVENT_TYPES_DOUBLE_TAP=["doubletap"],EVENT_TYPES_KEYBOARD=["keydown"],pinchEventWorkaround={};class Controller{constructor(opts){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"props",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"state",{}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"transitionManager",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"eventManager",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"onViewStateChange",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"onStateChange",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"makeViewport",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_controllerState",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_events",{}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_interactionState",{isDragging:!1}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_customEvents",[]),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_eventStartBlocked",null),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_panMove",!1),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"invertPan",!1),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"dragMode","rotate"),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"inertia",0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"scrollZoom",!0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"dragPan",!0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"dragRotate",!0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"doubleClickZoom",!0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"touchZoom",!0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"touchRotate",!1),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"keyboard",!0),this.transitionManager=new _transition_manager__WEBPACK_IMPORTED_MODULE_1__.Z({...opts,getControllerState:props=>new this.ControllerState(props),onViewStateChange:this._onTransition.bind(this),onStateChange:this._setInteractionState.bind(this)}),this.handleEvent=this.handleEvent.bind(this),this.eventManager=opts.eventManager,this.onViewStateChange=opts.onViewStateChange||(()=>{}),this.onStateChange=opts.onStateChange||(()=>{}),this.makeViewport=opts.makeViewport}set events(customEvents){this.toggleEvents(this._customEvents,!1),this.toggleEvents(customEvents,!0),this._customEvents=customEvents,this.props&&this.setProps(this.props)}finalize(){for(const eventName in this._events){var _this$eventManager;if(this._events[eventName])null===(_this$eventManager=this.eventManager)||void 0===_this$eventManager||_this$eventManager.off(eventName,this.handleEvent)}this.transitionManager.finalize()}handleEvent(event){this._controllerState=void 0;const eventStartBlocked=this._eventStartBlocked;switch(event.type){case"panstart":return!eventStartBlocked&&this._onPanStart(event);case"panmove":return this._onPan(event);case"panend":return this._onPanEnd(event);case"pinchstart":return!eventStartBlocked&&this._onPinchStart(event);case"pinchmove":return this._onPinch(event);case"pinchend":return this._onPinchEnd(event);case"tripanstart":return!eventStartBlocked&&this._onTriplePanStart(event);case"tripanmove":return this._onTriplePan(event);case"tripanend":return this._onTriplePanEnd(event);case"doubletap":return this._onDoubleTap(event);case"wheel":return this._onWheel(event);case"keydown":return this._onKeyDown(event);default:return!1}}get controllerState(){return this._controllerState=this._controllerState||new this.ControllerState({makeViewport:this.makeViewport,...this.props,...this.state}),this._controllerState}getCenter(event){const{x:x,y:y}=this.props,{offsetCenter:offsetCenter}=event;return[offsetCenter.x-x,offsetCenter.y-y]}isPointInBounds(pos,event){const{width:width,height:height}=this.props;if(event&&event.handled)return!1;const inside=pos[0]>=0&&pos[0]<=width&&pos[1]>=0&&pos[1]<=height;return inside&&event&&event.stopPropagation(),inside}isFunctionKeyPressed(event){const{srcEvent:srcEvent}=event;return Boolean(srcEvent.metaKey||srcEvent.altKey||srcEvent.ctrlKey||srcEvent.shiftKey)}isDragging(){return this._interactionState.isDragging||!1}blockEvents(timeout){const timer=setTimeout((()=>{this._eventStartBlocked===timer&&(this._eventStartBlocked=null)}),timeout);this._eventStartBlocked=timer}setProps(props){props.dragMode&&(this.dragMode=props.dragMode),this.props=props,"transitionInterpolator"in props||(props.transitionInterpolator=this._getTransitionProps().transitionInterpolator),this.transitionManager.processViewStateChange(props);const{inertia:inertia}=props;this.inertia=Number.isFinite(inertia)?inertia:!0===inertia?300:0;const{scrollZoom:scrollZoom=!0,dragPan:dragPan=!0,dragRotate:dragRotate=!0,doubleClickZoom:doubleClickZoom=!0,touchZoom:touchZoom=!0,touchRotate:touchRotate=!1,keyboard:keyboard=!0}=props,isInteractive=Boolean(this.onViewStateChange);this.toggleEvents(EVENT_TYPES_WHEEL,isInteractive&&scrollZoom),this.toggleEvents(EVENT_TYPES_PAN,isInteractive),this.toggleEvents(EVENT_TYPES_PINCH,isInteractive&&(touchZoom||touchRotate)),this.toggleEvents(EVENT_TYPES_TRIPLE_PAN,isInteractive&&touchRotate),this.toggleEvents(EVENT_TYPES_DOUBLE_TAP,isInteractive&&doubleClickZoom),this.toggleEvents(EVENT_TYPES_KEYBOARD,isInteractive&&keyboard),this.scrollZoom=scrollZoom,this.dragPan=dragPan,this.dragRotate=dragRotate,this.doubleClickZoom=doubleClickZoom,this.touchZoom=touchZoom,this.touchRotate=touchRotate,this.keyboard=keyboard}updateTransition(){this.transitionManager.updateTransition()}toggleEvents(eventNames,enabled){this.eventManager&&eventNames.forEach((eventName=>{this._events[eventName]!==enabled&&(this._events[eventName]=enabled,enabled?this.eventManager.on(eventName,this.handleEvent):this.eventManager.off(eventName,this.handleEvent))}))}updateViewport(newControllerState,extraProps=null,interactionState={}){const viewState={...newControllerState.getViewportProps(),...extraProps},changed=this.controllerState!==newControllerState;if(this.state=newControllerState.getState(),this._setInteractionState(interactionState),changed){const oldViewState=this.controllerState&&this.controllerState.getViewportProps();this.onViewStateChange&&this.onViewStateChange({viewState:viewState,interactionState:this._interactionState,oldViewState:oldViewState})}}_onTransition(params){this.onViewStateChange({...params,interactionState:this._interactionState})}_setInteractionState(newStates){Object.assign(this._interactionState,newStates),this.onStateChange(this._interactionState)}_onPanStart(event){const pos=this.getCenter(event);if(!this.isPointInBounds(pos,event))return!1;let alternateMode=this.isFunctionKeyPressed(event)||event.rightButton||!1;(this.invertPan||"pan"===this.dragMode)&&(alternateMode=!alternateMode);const newControllerState=this.controllerState[alternateMode?"panStart":"rotateStart"]({pos:pos});return this._panMove=alternateMode,this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0}),!0}_onPan(event){return!!this.isDragging()&&(this._panMove?this._onPanMove(event):this._onPanRotate(event))}_onPanEnd(event){return!!this.isDragging()&&(this._panMove?this._onPanMoveEnd(event):this._onPanRotateEnd(event))}_onPanMove(event){if(!this.dragPan)return!1;const pos=this.getCenter(event),newControllerState=this.controllerState.pan({pos:pos});return this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0,isPanning:!0}),!0}_onPanMoveEnd(event){const{inertia:inertia}=this;if(this.dragPan&&inertia&&event.velocity){const pos=this.getCenter(event),endPos=[pos[0]+event.velocityX*inertia/2,pos[1]+event.velocityY*inertia/2],newControllerState=this.controllerState.pan({pos:endPos}).panEnd();this.updateViewport(newControllerState,{...this._getTransitionProps(),transitionDuration:inertia,transitionEasing:INERTIA_EASING},{isDragging:!1,isPanning:!0})}else{const newControllerState=this.controllerState.panEnd();this.updateViewport(newControllerState,null,{isDragging:!1,isPanning:!1})}return!0}_onPanRotate(event){if(!this.dragRotate)return!1;const pos=this.getCenter(event),newControllerState=this.controllerState.rotate({pos:pos});return this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0,isRotating:!0}),!0}_onPanRotateEnd(event){const{inertia:inertia}=this;if(this.dragRotate&&inertia&&event.velocity){const pos=this.getCenter(event),endPos=[pos[0]+event.velocityX*inertia/2,pos[1]+event.velocityY*inertia/2],newControllerState=this.controllerState.rotate({pos:endPos}).rotateEnd();this.updateViewport(newControllerState,{...this._getTransitionProps(),transitionDuration:inertia,transitionEasing:INERTIA_EASING},{isDragging:!1,isRotating:!0})}else{const newControllerState=this.controllerState.rotateEnd();this.updateViewport(newControllerState,null,{isDragging:!1,isRotating:!1})}return!0}_onWheel(event){if(!this.scrollZoom)return!1;const pos=this.getCenter(event);if(!this.isPointInBounds(pos,event))return!1;event.srcEvent.preventDefault();const{speed:speed=.01,smooth:smooth=!1}=!0===this.scrollZoom?{}:this.scrollZoom,{delta:delta}=event;let scale=2/(1+Math.exp(-Math.abs(delta*speed)));delta<0&&0!==scale&&(scale=1/scale);const newControllerState=this.controllerState.zoom({pos:pos,scale:scale});return this.updateViewport(newControllerState,{...this._getTransitionProps({around:pos}),transitionDuration:smooth?250:1},{isZooming:!0,isPanning:!0}),!0}_onTriplePanStart(event){const pos=this.getCenter(event);if(!this.isPointInBounds(pos,event))return!1;const newControllerState=this.controllerState.rotateStart({pos:pos});return this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0}),!0}_onTriplePan(event){if(!this.touchRotate)return!1;if(!this.isDragging())return!1;const pos=this.getCenter(event);pos[0]-=event.deltaX;const newControllerState=this.controllerState.rotate({pos:pos});return this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0,isRotating:!0}),!0}_onTriplePanEnd(event){if(!this.isDragging())return!1;const{inertia:inertia}=this;if(this.touchRotate&&inertia&&event.velocityY){const pos=this.getCenter(event),endPos=[pos[0],pos[1]+=event.velocityY*inertia/2],newControllerState=this.controllerState.rotate({pos:endPos});this.updateViewport(newControllerState,{...this._getTransitionProps(),transitionDuration:inertia,transitionEasing:INERTIA_EASING},{isDragging:!1,isRotating:!0}),this.blockEvents(inertia)}else{const newControllerState=this.controllerState.rotateEnd();this.updateViewport(newControllerState,null,{isDragging:!1,isRotating:!1})}return!0}_onPinchStart(event){const pos=this.getCenter(event);if(!this.isPointInBounds(pos,event))return!1;const newControllerState=this.controllerState.zoomStart({pos:pos}).rotateStart({pos:pos});return pinchEventWorkaround._startPinchRotation=event.rotation,pinchEventWorkaround._lastPinchEvent=event,this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0}),!0}_onPinch(event){if(!this.touchZoom&&!this.touchRotate)return!1;if(!this.isDragging())return!1;let newControllerState=this.controllerState;if(this.touchZoom){const{scale:scale}=event,pos=this.getCenter(event);newControllerState=newControllerState.zoom({pos:pos,scale:scale})}if(this.touchRotate){const{rotation:rotation}=event;newControllerState=newControllerState.rotate({deltaAngleX:pinchEventWorkaround._startPinchRotation-rotation})}return this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:this.touchRotate}),pinchEventWorkaround._lastPinchEvent=event,!0}_onPinchEnd(event){if(!this.isDragging())return!1;const{inertia:inertia}=this,{_lastPinchEvent:_lastPinchEvent}=pinchEventWorkaround;if(this.touchZoom&&inertia&&_lastPinchEvent&&event.scale!==_lastPinchEvent.scale){const pos=this.getCenter(event);let newControllerState=this.controllerState.rotateEnd();const z=Math.log2(event.scale),velocityZ=(z-Math.log2(_lastPinchEvent.scale))/(event.deltaTime-_lastPinchEvent.deltaTime),endScale=Math.pow(2,z+velocityZ*inertia/2);newControllerState=newControllerState.zoom({pos:pos,scale:endScale}).zoomEnd(),this.updateViewport(newControllerState,{...this._getTransitionProps({around:pos}),transitionDuration:inertia,transitionEasing:INERTIA_EASING},{isDragging:!1,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:!1}),this.blockEvents(inertia)}else{const newControllerState=this.controllerState.zoomEnd().rotateEnd();this.updateViewport(newControllerState,null,{isDragging:!1,isPanning:!1,isZooming:!1,isRotating:!1})}return pinchEventWorkaround._startPinchRotation=null,pinchEventWorkaround._lastPinchEvent=null,!0}_onDoubleTap(event){if(!this.doubleClickZoom)return!1;const pos=this.getCenter(event);if(!this.isPointInBounds(pos,event))return!1;const isZoomOut=this.isFunctionKeyPressed(event),newControllerState=this.controllerState.zoom({pos:pos,scale:isZoomOut?.5:2});return this.updateViewport(newControllerState,this._getTransitionProps({around:pos}),{isZooming:!0,isPanning:!0}),this.blockEvents(100),!0}_onKeyDown(event){if(!this.keyboard)return!1;const funcKey=this.isFunctionKeyPressed(event),{zoomSpeed:zoomSpeed,moveSpeed:moveSpeed,rotateSpeedX:rotateSpeedX,rotateSpeedY:rotateSpeedY}=!0===this.keyboard?{}:this.keyboard,{controllerState:controllerState}=this;let newControllerState;const interactionState={};switch(event.srcEvent.code){case"Minus":newControllerState=funcKey?controllerState.zoomOut(zoomSpeed).zoomOut(zoomSpeed):controllerState.zoomOut(zoomSpeed),interactionState.isZooming=!0;break;case"Equal":newControllerState=funcKey?controllerState.zoomIn(zoomSpeed).zoomIn(zoomSpeed):controllerState.zoomIn(zoomSpeed),interactionState.isZooming=!0;break;case"ArrowLeft":funcKey?(newControllerState=controllerState.rotateLeft(rotateSpeedX),interactionState.isRotating=!0):(newControllerState=controllerState.moveLeft(moveSpeed),interactionState.isPanning=!0);break;case"ArrowRight":funcKey?(newControllerState=controllerState.rotateRight(rotateSpeedX),interactionState.isRotating=!0):(newControllerState=controllerState.moveRight(moveSpeed),interactionState.isPanning=!0);break;case"ArrowUp":funcKey?(newControllerState=controllerState.rotateUp(rotateSpeedY),interactionState.isRotating=!0):(newControllerState=controllerState.moveUp(moveSpeed),interactionState.isPanning=!0);break;case"ArrowDown":funcKey?(newControllerState=controllerState.rotateDown(rotateSpeedY),interactionState.isRotating=!0):(newControllerState=controllerState.moveDown(moveSpeed),interactionState.isPanning=!0);break;default:return!1}return this.updateViewport(newControllerState,this._getTransitionProps(),interactionState),!0}_getTransitionProps(opts){const{transition:transition}=this;return transition&&transition.transitionInterpolator?opts?{...transition,transitionInterpolator:new _transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_2__.Z({...opts,...transition.transitionInterpolator.opts,makeViewport:this.controllerState.makeViewport})}:transition:NO_TRANSITION_PROPS}}},"./node_modules/@deck.gl/core/dist/esm/controllers/map-controller.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return MapState},Z:function(){return MapController}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_controller__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/controller.js"),_view_state__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/view-state.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js"),_transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/linear-interpolator.js");class MapState extends _view_state__WEBPACK_IMPORTED_MODULE_1__.Z{constructor(options){const{width:width,height:height,latitude:latitude,longitude:longitude,zoom:zoom,bearing:bearing=0,pitch:pitch=0,altitude:altitude=1.5,position:position=[0,0,0],maxZoom:maxZoom=20,minZoom:minZoom=0,maxPitch:maxPitch=60,minPitch:minPitch=0,startPanLngLat:startPanLngLat,startZoomLngLat:startZoomLngLat,startRotatePos:startRotatePos,startBearing:startBearing,startPitch:startPitch,startZoom:startZoom,normalize:normalize=!0}=options;(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(Number.isFinite(longitude)),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(Number.isFinite(latitude)),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(Number.isFinite(zoom)),super({width:width,height:height,latitude:latitude,longitude:longitude,zoom:zoom,bearing:bearing,pitch:pitch,altitude:altitude,maxZoom:maxZoom,minZoom:minZoom,maxPitch:maxPitch,minPitch:minPitch,normalize:normalize,position:position},{startPanLngLat:startPanLngLat,startZoomLngLat:startZoomLngLat,startRotatePos:startRotatePos,startBearing:startBearing,startPitch:startPitch,startZoom:startZoom}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(this,"makeViewport",void 0),this.makeViewport=options.makeViewport}panStart({pos:pos}){return this._getUpdatedState({startPanLngLat:this._unproject(pos)})}pan({pos:pos,startPos:startPos}){const startPanLngLat=this.getState().startPanLngLat||this._unproject(startPos);if(!startPanLngLat)return this;const newProps=this.makeViewport(this.getViewportProps()).panByPosition(startPanLngLat,pos);return this._getUpdatedState(newProps)}panEnd(){return this._getUpdatedState({startPanLngLat:null})}rotateStart({pos:pos}){return this._getUpdatedState({startRotatePos:pos,startBearing:this.getViewportProps().bearing,startPitch:this.getViewportProps().pitch})}rotate({pos:pos,deltaAngleX:deltaAngleX=0,deltaAngleY:deltaAngleY=0}){const{startRotatePos:startRotatePos,startBearing:startBearing,startPitch:startPitch}=this.getState();if(!startRotatePos||void 0===startBearing||void 0===startPitch)return this;let newRotation;return newRotation=pos?this._getNewRotation(pos,startRotatePos,startPitch,startBearing):{bearing:startBearing+deltaAngleX,pitch:startPitch+deltaAngleY},this._getUpdatedState(newRotation)}rotateEnd(){return this._getUpdatedState({startBearing:null,startPitch:null})}zoomStart({pos:pos}){return this._getUpdatedState({startZoomLngLat:this._unproject(pos),startZoom:this.getViewportProps().zoom})}zoom({pos:pos,startPos:startPos,scale:scale}){let{startZoom:startZoom,startZoomLngLat:startZoomLngLat}=this.getState();if(startZoomLngLat||(startZoom=this.getViewportProps().zoom,startZoomLngLat=this._unproject(startPos)||this._unproject(pos)),!startZoomLngLat)return this;const{maxZoom:maxZoom,minZoom:minZoom}=this.getViewportProps();let zoom=startZoom+Math.log2(scale);zoom=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_4__.uZ)(zoom,minZoom,maxZoom);const zoomedViewport=this.makeViewport({...this.getViewportProps(),zoom:zoom});return this._getUpdatedState({zoom:zoom,...zoomedViewport.panByPosition(startZoomLngLat,pos)})}zoomEnd(){return this._getUpdatedState({startZoomLngLat:null,startZoom:null})}zoomIn(speed=2){return this._zoomFromCenter(speed)}zoomOut(speed=2){return this._zoomFromCenter(1/speed)}moveLeft(speed=100){return this._panFromCenter([speed,0])}moveRight(speed=100){return this._panFromCenter([-speed,0])}moveUp(speed=100){return this._panFromCenter([0,speed])}moveDown(speed=100){return this._panFromCenter([0,-speed])}rotateLeft(speed=15){return this._getUpdatedState({bearing:this.getViewportProps().bearing-speed})}rotateRight(speed=15){return this._getUpdatedState({bearing:this.getViewportProps().bearing+speed})}rotateUp(speed=10){return this._getUpdatedState({pitch:this.getViewportProps().pitch+speed})}rotateDown(speed=10){return this._getUpdatedState({pitch:this.getViewportProps().pitch-speed})}shortestPathFrom(viewState){const fromProps=viewState.getViewportProps(),props={...this.getViewportProps()},{bearing:bearing,longitude:longitude}=props;return Math.abs(bearing-fromProps.bearing)>180&&(props.bearing=bearing<0?bearing+360:bearing-360),Math.abs(longitude-fromProps.longitude)>180&&(props.longitude=longitude<0?longitude+360:longitude-360),props}applyConstraints(props){const{maxZoom:maxZoom,minZoom:minZoom,zoom:zoom}=props;props.zoom=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_4__.uZ)(zoom,minZoom,maxZoom);const{maxPitch:maxPitch,minPitch:minPitch,pitch:pitch}=props;props.pitch=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_4__.uZ)(pitch,minPitch,maxPitch);const{normalize:normalize=!0}=props;return normalize&&Object.assign(props,(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.QA)(props)),props}_zoomFromCenter(scale){const{width:width,height:height}=this.getViewportProps();return this.zoom({pos:[width/2,height/2],scale:scale})}_panFromCenter(offset){const{width:width,height:height}=this.getViewportProps();return this.pan({startPos:[width/2,height/2],pos:[width/2+offset[0],height/2+offset[1]]})}_getUpdatedState(newProps){return new this.constructor({makeViewport:this.makeViewport,...this.getViewportProps(),...this.getState(),...newProps})}_unproject(pos){const viewport=this.makeViewport(this.getViewportProps());return pos&&viewport.unproject(pos)}_getNewRotation(pos,startPos,startPitch,startBearing){const deltaX=pos[0]-startPos[0],deltaY=pos[1]-startPos[1],centerY=pos[1],startY=startPos[1],{width:width,height:height}=this.getViewportProps(),deltaScaleX=deltaX/width;let deltaScaleY=0;deltaY>0?Math.abs(height-startY)>5&&(deltaScaleY=deltaY/(startY-height)*1.2):deltaY<0&&startY>5&&(deltaScaleY=1-centerY/startY),deltaScaleY=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_4__.uZ)(deltaScaleY,-1,1);const{minPitch:minPitch,maxPitch:maxPitch}=this.getViewportProps();let pitch=startPitch;return deltaScaleY>0?pitch=startPitch+deltaScaleY*(maxPitch-startPitch):deltaScaleY<0&&(pitch=startPitch-deltaScaleY*(minPitch-startPitch)),{pitch:pitch,bearing:startBearing+180*deltaScaleX}}}class MapController extends _controller__WEBPACK_IMPORTED_MODULE_5__.Z{constructor(...args){super(...args),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(this,"ControllerState",MapState),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new _transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_6__.Z({transitionProps:{compare:["longitude","latitude","zoom","bearing","pitch","position"],required:["longitude","latitude","zoom"]}})}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(this,"dragMode","pan")}setProps(props){props.position=props.position||[0,0,0];const oldProps=this.props;super.setProps(props);(!oldProps||oldProps.height!==props.height)&&this.updateViewport(new this.ControllerState({makeViewport:this.makeViewport,...props,...this.state}))}}},"./node_modules/@deck.gl/core/dist/esm/controllers/orbit-controller.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return OrbitState},Z:function(){return OrbitController}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_controller__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/controller.js"),_view_state__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/view-state.js"),_utils_math_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/math-utils.js"),_transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/linear-interpolator.js");class OrbitState extends _view_state__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(options){const{width:width,height:height,rotationX:rotationX=0,rotationOrbit:rotationOrbit=0,target:target=[0,0,0],zoom:zoom=0,minRotationX:minRotationX=-90,maxRotationX:maxRotationX=90,minZoom:minZoom=-1/0,maxZoom:maxZoom=1/0,startPanPosition:startPanPosition,startRotatePos:startRotatePos,startRotationX:startRotationX,startRotationOrbit:startRotationOrbit,startZoomPosition:startZoomPosition,startZoom:startZoom}=options;super({width:width,height:height,rotationX:rotationX,rotationOrbit:rotationOrbit,target:target,zoom:zoom,minRotationX:minRotationX,maxRotationX:maxRotationX,minZoom:minZoom,maxZoom:maxZoom},{startPanPosition:startPanPosition,startRotatePos:startRotatePos,startRotationX:startRotationX,startRotationOrbit:startRotationOrbit,startZoomPosition:startZoomPosition,startZoom:startZoom}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"makeViewport",void 0),this.makeViewport=options.makeViewport}panStart({pos:pos}){return this._getUpdatedState({startPanPosition:this._unproject(pos)})}pan({pos:pos,startPosition:startPosition}){const startPanPosition=this.getState().startPanPosition||startPosition;if(!startPanPosition)return this;const newProps=this.makeViewport(this.getViewportProps()).panByPosition(startPanPosition,pos);return this._getUpdatedState(newProps)}panEnd(){return this._getUpdatedState({startPanPosition:null})}rotateStart({pos:pos}){return this._getUpdatedState({startRotatePos:pos,startRotationX:this.getViewportProps().rotationX,startRotationOrbit:this.getViewportProps().rotationOrbit})}rotate({pos:pos,deltaAngleX:deltaAngleX=0,deltaAngleY:deltaAngleY=0}){const{startRotatePos:startRotatePos,startRotationX:startRotationX,startRotationOrbit:startRotationOrbit}=this.getState(),{width:width,height:height}=this.getViewportProps();if(!startRotatePos||void 0===startRotationX||void 0===startRotationOrbit)return this;let newRotation;if(pos){let deltaScaleX=(pos[0]-startRotatePos[0])/width;(startRotationX<-90||startRotationX>90)&&(deltaScaleX*=-1),newRotation={rotationX:startRotationX+180*((pos[1]-startRotatePos[1])/height),rotationOrbit:startRotationOrbit+180*deltaScaleX}}else newRotation={rotationX:startRotationX+deltaAngleY,rotationOrbit:startRotationOrbit+deltaAngleX};return this._getUpdatedState(newRotation)}rotateEnd(){return this._getUpdatedState({startRotationX:null,startRotationOrbit:null})}shortestPathFrom(viewState){const fromProps=viewState.getViewportProps(),props={...this.getViewportProps()},{rotationOrbit:rotationOrbit}=props;return Math.abs(rotationOrbit-fromProps.rotationOrbit)>180&&(props.rotationOrbit=rotationOrbit<0?rotationOrbit+360:rotationOrbit-360),props}zoomStart({pos:pos}){return this._getUpdatedState({startZoomPosition:this._unproject(pos),startZoom:this.getViewportProps().zoom})}zoom({pos:pos,startPos:startPos,scale:scale}){let{startZoom:startZoom,startZoomPosition:startZoomPosition}=this.getState();if(startZoomPosition||(startZoom=this.getViewportProps().zoom,startZoomPosition=this._unproject(startPos)||this._unproject(pos)),!startZoomPosition)return this;const newZoom=this._calculateNewZoom({scale:scale,startZoom:startZoom}),zoomedViewport=this.makeViewport({...this.getViewportProps(),zoom:newZoom});return this._getUpdatedState({zoom:newZoom,...zoomedViewport.panByPosition(startZoomPosition,pos)})}zoomEnd(){return this._getUpdatedState({startZoomPosition:null,startZoom:null})}zoomIn(speed=2){return this._getUpdatedState({zoom:this._calculateNewZoom({scale:speed})})}zoomOut(speed=2){return this._getUpdatedState({zoom:this._calculateNewZoom({scale:1/speed})})}moveLeft(speed=50){return this._panFromCenter([-speed,0])}moveRight(speed=50){return this._panFromCenter([speed,0])}moveUp(speed=50){return this._panFromCenter([0,-speed])}moveDown(speed=50){return this._panFromCenter([0,speed])}rotateLeft(speed=15){return this._getUpdatedState({rotationOrbit:this.getViewportProps().rotationOrbit-speed})}rotateRight(speed=15){return this._getUpdatedState({rotationOrbit:this.getViewportProps().rotationOrbit+speed})}rotateUp(speed=10){return this._getUpdatedState({rotationX:this.getViewportProps().rotationX-speed})}rotateDown(speed=10){return this._getUpdatedState({rotationX:this.getViewportProps().rotationX+speed})}_unproject(pos){const viewport=this.makeViewport(this.getViewportProps());return pos&&viewport.unproject(pos)}_calculateNewZoom({scale:scale,startZoom:startZoom}){const{maxZoom:maxZoom,minZoom:minZoom}=this.getViewportProps();void 0===startZoom&&(startZoom=this.getViewportProps().zoom);const zoom=startZoom+Math.log2(scale);return(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(zoom,minZoom,maxZoom)}_panFromCenter(offset){const{width:width,height:height,target:target}=this.getViewportProps();return this.pan({startPosition:target,pos:[width/2+offset[0],height/2+offset[1]]})}_getUpdatedState(newProps){return new this.constructor({makeViewport:this.makeViewport,...this.getViewportProps(),...this.getState(),...newProps})}applyConstraints(props){const{maxZoom:maxZoom,minZoom:minZoom,zoom:zoom,maxRotationX:maxRotationX,minRotationX:minRotationX,rotationOrbit:rotationOrbit}=props;return props.zoom=Array.isArray(zoom)?[(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(zoom[0],minZoom,maxZoom),(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(zoom[1],minZoom,maxZoom)]:(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(zoom,minZoom,maxZoom),props.rotationX=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(props.rotationX,minRotationX,maxRotationX),(rotationOrbit<-180||rotationOrbit>180)&&(props.rotationOrbit=(0,_utils_math_utils__WEBPACK_IMPORTED_MODULE_3__.wQ)(rotationOrbit+180,360)-180),props}}class OrbitController extends _controller__WEBPACK_IMPORTED_MODULE_4__.Z{constructor(...args){super(...args),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"ControllerState",OrbitState),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new _transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_5__.Z({transitionProps:{compare:["target","zoom","rotationX","rotationOrbit"],required:["target","zoom"]}})})}}},"./node_modules/@deck.gl/core/dist/esm/controllers/orthographic-controller.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return OrthographicController}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_controller__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/controller.js"),_orbit_controller__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orbit-controller.js"),_transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/linear-interpolator.js");class OrthographicState extends _orbit_controller__WEBPACK_IMPORTED_MODULE_0__.G{constructor(props){super(props),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"zoomAxis",void 0),this.zoomAxis=props.zoomAxis||"all"}_calculateNewZoom({scale:scale,startZoom:startZoom}){const{maxZoom:maxZoom,minZoom:minZoom}=this.getViewportProps();void 0===startZoom&&(startZoom=this.getViewportProps().zoom);let deltaZoom=Math.log2(scale);if(Array.isArray(startZoom)){let[newZoomX,newZoomY]=startZoom;switch(this.zoomAxis){case"X":newZoomX=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(newZoomX+deltaZoom,minZoom,maxZoom);break;case"Y":newZoomY=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(newZoomY+deltaZoom,minZoom,maxZoom);break;default:let z=Math.min(newZoomX+deltaZoom,newZoomY+deltaZoom);zmaxZoom&&(deltaZoom+=maxZoom-z),newZoomX+=deltaZoom,newZoomY+=deltaZoom}return[newZoomX,newZoomY]}return(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(startZoom+deltaZoom,minZoom,maxZoom)}}class OrthographicController extends _controller__WEBPACK_IMPORTED_MODULE_3__.Z{constructor(...args){super(...args),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"ControllerState",OrthographicState),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new _transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_4__.Z(["target","zoom"])}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"dragMode","pan")}_onPanRotate(){return!1}}},"./node_modules/@deck.gl/core/dist/esm/controllers/transition-manager.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TransitionManager},r:function(){return TRANSITION_EVENTS}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_transitions_transition__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/transition.js");const noop=()=>{},TRANSITION_EVENTS={BREAK:1,SNAP_TO_END:2,IGNORE:3},DEFAULT_EASING=t=>t,DEFAULT_INTERRUPTION=TRANSITION_EVENTS.BREAK;class TransitionManager{constructor(opts){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"getControllerState",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"props",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"propsInTransition",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"transition",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"onViewStateChange",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"onStateChange",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_onTransitionUpdate",(transition=>{const{time:time,settings:{interpolator:interpolator,startProps:startProps,endProps:endProps,duration:duration,easing:easing}}=transition,t=easing(time/duration),viewport=interpolator.interpolateProps(startProps,endProps,t);this.propsInTransition=this.getControllerState({...this.props,...viewport}).getViewportProps(),this.onViewStateChange({viewState:this.propsInTransition,oldViewState:this.props})})),this.getControllerState=opts.getControllerState,this.propsInTransition=null,this.transition=new _transitions_transition__WEBPACK_IMPORTED_MODULE_1__.Z(opts.timeline),this.onViewStateChange=opts.onViewStateChange||noop,this.onStateChange=opts.onStateChange||noop}finalize(){this.transition.cancel()}getViewportInTransition(){return this.propsInTransition}processViewStateChange(nextProps){let transitionTriggered=!1;const currentProps=this.props;if(this.props=nextProps,!currentProps||this._shouldIgnoreViewportChange(currentProps,nextProps))return!1;if(this._isTransitionEnabled(nextProps)){let startProps=currentProps;if(this.transition.inProgress){const{interruption:interruption,endProps:endProps}=this.transition.settings;startProps={...currentProps,...interruption===TRANSITION_EVENTS.SNAP_TO_END?endProps:this.propsInTransition||currentProps}}this._triggerTransition(startProps,nextProps),transitionTriggered=!0}else this.transition.cancel();return transitionTriggered}updateTransition(){this.transition.update()}_isTransitionEnabled(props){const{transitionDuration:transitionDuration,transitionInterpolator:transitionInterpolator}=props;return(transitionDuration>0||"auto"===transitionDuration)&&Boolean(transitionInterpolator)}_isUpdateDueToCurrentTransition(props){return!(!this.transition.inProgress||!this.propsInTransition)&&this.transition.settings.interpolator.arePropsEqual(props,this.propsInTransition)}_shouldIgnoreViewportChange(currentProps,nextProps){return this.transition.inProgress?this.transition.settings.interruption===TRANSITION_EVENTS.IGNORE||this._isUpdateDueToCurrentTransition(nextProps):!this._isTransitionEnabled(nextProps)||nextProps.transitionInterpolator.arePropsEqual(currentProps,nextProps)}_triggerTransition(startProps,endProps){const startViewstate=this.getControllerState(startProps),endViewStateProps=this.getControllerState(endProps).shortestPathFrom(startViewstate),transitionInterpolator=endProps.transitionInterpolator,duration=transitionInterpolator.getDuration?transitionInterpolator.getDuration(startProps,endProps):endProps.transitionDuration;if(0===duration)return;const initialProps=transitionInterpolator.initializeProps(startProps,endViewStateProps);this.propsInTransition={};const transitionSettings={duration:duration,easing:endProps.transitionEasing||DEFAULT_EASING,interpolator:transitionInterpolator,interruption:endProps.transitionInterruption||DEFAULT_INTERRUPTION,startProps:initialProps.start,endProps:initialProps.end,onStart:endProps.onTransitionStart,onUpdate:this._onTransitionUpdate,onInterrupt:this._onTransitionEnd(endProps.onTransitionInterrupt),onEnd:this._onTransitionEnd(endProps.onTransitionEnd)};this.transition.start(transitionSettings),this.onStateChange({inTransition:!0}),this.updateTransition()}_onTransitionEnd(callback){return transition=>{this.propsInTransition=null,this.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1}),null==callback||callback(transition)}}}},"./node_modules/@deck.gl/core/dist/esm/controllers/view-state.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ViewState}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");class ViewState{constructor(props,state){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_viewportProps",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_state",void 0),this._viewportProps=this.applyConstraints(props),this._state=state}getViewportProps(){return this._viewportProps}getState(){return this._state}}},"./node_modules/@deck.gl/core/dist/esm/debug/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return debug},z:function(){return register}});var _utils_log__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js");let loggers={};function register(handlers){loggers=handlers}function debug(eventType,arg1,arg2,arg3){_utils_log__WEBPACK_IMPORTED_MODULE_0__.Z.level>0&&loggers[eventType]&&loggers[eventType].call(null,arg1,arg2,arg3)}},"./node_modules/@deck.gl/core/dist/esm/effects/lighting/ambient-light.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return AmbientLight}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");const DEFAULT_LIGHT_COLOR=[255,255,255],DEFAULT_LIGHT_INTENSITY=1;let idCount=0;class AmbientLight{constructor(props={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"id",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"color",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"intensity",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"type","ambient");const{color:color=DEFAULT_LIGHT_COLOR}=props,{intensity:intensity=DEFAULT_LIGHT_INTENSITY}=props;this.id=props.id||"ambient-".concat(idCount++),this.color=color,this.intensity=intensity}}},"./node_modules/@deck.gl/core/dist/esm/effects/lighting/directional-light.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return DirectionalLight}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js");const DEFAULT_LIGHT_COLOR=[255,255,255],DEFAULT_LIGHT_INTENSITY=1,DEFAULT_LIGHT_DIRECTION=[0,0,-1];let idCount=0;class DirectionalLight{constructor(props={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"id",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"color",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"intensity",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"type","directional"),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"direction",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"shadow",void 0);const{color:color=DEFAULT_LIGHT_COLOR}=props,{intensity:intensity=DEFAULT_LIGHT_INTENSITY}=props,{direction:direction=DEFAULT_LIGHT_DIRECTION}=props,{_shadow:_shadow=!1}=props;this.id=props.id||"directional-".concat(idCount++),this.color=color,this.intensity=intensity,this.type="directional",this.direction=new _math_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z(direction).normalize().toArray(),this.shadow=_shadow}getProjectedLight(opts){return this}}},"./node_modules/@deck.gl/core/dist/esm/effects/lighting/lighting-effect.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return LightingEffect}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),program_manager=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/program-manager.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),ambient_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/ambient-light.js"),directional_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/directional-light.js"),matrix4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/layers-pass.js"),renderbuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/renderbuffer.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");class ShadowPass extends layers_pass.Z{constructor(gl,props){super(gl,props),(0,defineProperty.Z)(this,"shadowMap",void 0),(0,defineProperty.Z)(this,"depthBuffer",void 0),(0,defineProperty.Z)(this,"fbo",void 0),this.shadowMap=new texture_2d.Z(gl,{width:1,height:1,parameters:{10241:9729,10240:9729,10242:33071,10243:33071}}),this.depthBuffer=new renderbuffer.Z(gl,{format:33189,width:1,height:1}),this.fbo=new framebuffer.Z(gl,{id:"shadowmap",width:1,height:1,attachments:{36064:this.shadowMap,36096:this.depthBuffer}})}render(params){const target=this.fbo;(0,esm.s8)(this.gl,{depthRange:[0,1],depthTest:!0,blend:!1,clearColor:[1,1,1,1]},(()=>{const viewport=params.viewports[0],pixelRatio=(0,esm.w)(this.gl),width=viewport.width*pixelRatio,height=viewport.height*pixelRatio;width===target.width&&height===target.height||target.resize({width:width,height:height}),super.render({...params,target:target,pass:"shadow"})}))}shouldDrawLayer(layer){return!1!==layer.props.shadowEnabled}getModuleParameters(){return{drawToShadowMap:!0}}delete(){this.fbo&&(this.fbo.delete(),this.fbo=null),this.shadowMap&&(this.shadowMap.delete(),this.shadowMap=null),this.depthBuffer&&(this.depthBuffer.delete(),this.depthBuffer=null)}}var shadow=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/shadow/shadow.js");const DEFAULT_AMBIENT_LIGHT_PROPS={color:[255,255,255],intensity:1},DEFAULT_DIRECTIONAL_LIGHT_PROPS=[{color:[255,255,255],intensity:1,direction:[-1,3,-1]},{color:[255,255,255],intensity:.9,direction:[1,-8,-2.5]}],DEFAULT_SHADOW_COLOR=[0,0,0,200/255];class LightingEffect{constructor(props={}){(0,defineProperty.Z)(this,"id","lighting-effect"),(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"shadowColor",DEFAULT_SHADOW_COLOR),(0,defineProperty.Z)(this,"shadow",void 0),(0,defineProperty.Z)(this,"ambientLight",void 0),(0,defineProperty.Z)(this,"directionalLights",void 0),(0,defineProperty.Z)(this,"pointLights",void 0),(0,defineProperty.Z)(this,"shadowPasses",[]),(0,defineProperty.Z)(this,"shadowMaps",[]),(0,defineProperty.Z)(this,"dummyShadowMap",null),(0,defineProperty.Z)(this,"programManager",void 0),(0,defineProperty.Z)(this,"shadowMatrices",void 0),this.setProps(props)}setProps(props){this.ambientLight=null,this.directionalLights=[],this.pointLights=[];for(const key in props){const lightSource=props[key];switch(lightSource.type){case"ambient":this.ambientLight=lightSource;break;case"directional":this.directionalLights.push(lightSource);break;case"point":this.pointLights.push(lightSource)}}this._applyDefaultLights(),this.shadow=this.directionalLights.some((light=>light.shadow)),this.props=props}preRender(gl,{layers:layers,layerFilter:layerFilter,viewports:viewports,onViewportActive:onViewportActive,views:views}){if(this.shadow){this.shadowMatrices=this._calculateMatrices(),0===this.shadowPasses.length&&this._createShadowPasses(gl),this.programManager||(this.programManager=program_manager.Z.getDefaultProgramManager(gl),shadow.Z&&this.programManager.addDefaultModule(shadow.Z)),this.dummyShadowMap||(this.dummyShadowMap=new texture_2d.Z(gl,{width:1,height:1}));for(let i=0;idirectionalLight.getProjectedLight({layer:layer}))),pointLights:this.pointLights.map((pointLight=>pointLight.getProjectedLight({layer:layer})))},parameters}cleanup(){for(const shadowPass of this.shadowPasses)shadowPass.delete();this.shadowPasses.length=0,this.shadowMaps.length=0,this.dummyShadowMap&&(this.dummyShadowMap.delete(),this.dummyShadowMap=null),this.shadow&&this.programManager&&(this.programManager.removeDefaultModule(shadow.Z),this.programManager=null)}_calculateMatrices(){const lightMatrices=[];for(const light of this.directionalLights){const viewMatrix=(new matrix4.Z).lookAt({eye:new vector3.Z(light.direction).negate()});lightMatrices.push(viewMatrix)}return lightMatrices}_createShadowPasses(gl){for(let i=0;i=len){const min=new Array(size).fill(1/0),max=new Array(size).fill(-1/0);for(let i=0;imax[j]&&(max[j]=v)}result=[min,max]}}return this.state.bounds=result,result}setData(data){const{state:state}=this;let opts;opts=ArrayBuffer.isView(data)?{value:data}:data instanceof buffer.Z?{buffer:data}:data;const accessor={...this.settings,...opts};if(state.bufferAccessor=accessor,state.bounds=null,opts.constant){let value=opts.value;value=this._normalizeValue(value,[],0),this.settings.normalized&&(value=this.normalizeConstant(value));if(!(!state.constant||!this._areValuesEqual(value,this.value)))return!1;state.externalBuffer=null,state.constant=!0,this.value=value}else if(opts.buffer){const buffer=opts.buffer;state.externalBuffer=buffer,state.constant=!1,this.value=opts.value||null;const isBuffer64Bit=opts.value instanceof Float64Array;accessor.type=opts.type||buffer.accessor.type,accessor.bytesPerElement=buffer.accessor.BYTES_PER_ELEMENT*(isBuffer64Bit?2:1),accessor.stride=getStride(accessor)}else if(opts.value){this._checkExternalBuffer(opts);let value=opts.value;state.externalBuffer=null,state.constant=!1,this.value=value,accessor.bytesPerElement=value.BYTES_PER_ELEMENT,accessor.stride=getStride(accessor);const{buffer:buffer,byteOffset:byteOffset}=this;this.doublePrecision&&value instanceof Float64Array&&(value=(0,math_utils.TK)(value,accessor));const requiredBufferSize=value.byteLength+byteOffset+2*accessor.stride;buffer.byteLength(x+128)/255*2-1));case 5122:return new Float32Array(value).map((x=>(x+32768)/65535*2-1));case 5121:return new Float32Array(value).map((x=>x/255));case 5123:return new Float32Array(value).map((x=>x/65535));default:return value}}_normalizeValue(value,out,start){const{defaultValue:defaultValue,size:size}=this.settings;if(Number.isFinite(value))return out[start]=value,out;if(!value){let i=size;for(;--i>=0;)out[start+i]=defaultValue[i];return out}switch(size){case 4:out[start+3]=Number.isFinite(value[3])?value[3]:defaultValue[3];case 3:out[start+2]=Number.isFinite(value[2])?value[2]:defaultValue[2];case 2:out[start+1]=Number.isFinite(value[1])?value[1]:defaultValue[1];case 1:out[start+0]=Number.isFinite(value[0])?value[0]:defaultValue[0];break;default:let i=size;for(;--i>=0;)out[start+i]=Number.isFinite(value[i])?value[i]:defaultValue[i]}return out}_areValuesEqual(value1,value2){if(!value1||!value2)return!1;const{size:size}=this;for(let i=0;iopts[a]))]:opts[accessor];return(0,attribute_transition_utils.M0)(userSettings,layerSettings)}setNeedsUpdate(reason=this.id,dataRange){if(this.state.needsUpdate=this.state.needsUpdate||reason,this.setNeedsRedraw(reason),dataRange){const{startRow:startRow=0,endRow:endRow=1/0}=dataRange;this.state.updateRanges=function add(rangeList,range){if(rangeList===FULL)return rangeList;if(range[0]<0&&(range[0]=0),range[0]>=range[1])return rangeList;const newRangeList=[],len=rangeList.length;let insertPosition=0;for(let i=0;irange[1]?newRangeList.push(range0):range=[Math.min(range0[0],range[0]),Math.max(range0[1],range[1])]}return newRangeList.splice(insertPosition,0,range),newRangeList}(this.state.updateRanges,[startRow,endRow])}else this.state.updateRanges=FULL}clearNeedsUpdate(){this.state.needsUpdate=!1,this.state.updateRanges=EMPTY}setNeedsRedraw(reason=this.id){this.state.needsRedraw=this.state.needsRedraw||reason}allocate(numInstances){const{state:state,settings:settings}=this;return!settings.noAlloc&&(!!settings.update&&(super.allocate(numInstances,state.updateRanges!==FULL),!0))}updateBuffer({numInstances:numInstances,data:data,props:props,context:context}){if(!this.needsUpdate())return!1;const{state:{updateRanges:updateRanges},settings:{update:update,noAlloc:noAlloc}}=this;let updated=!0;if(update){for(const[startRow,endRow]of updateRanges)update.call(context,this,{data:data,startRow:startRow,endRow:endRow,props:props,numInstances:numInstances});if(this.value)if(this.constant||this.buffer.byteLengthsize?value.set(objectValue,i):(attribute._normalizeValue(objectValue,objectInfo.target,0),(0,flatten.k)({target:value,source:objectInfo.target,start:i,count:numVertices}));i+=numVertices*size}else attribute._normalizeValue(objectValue,value,i),i+=size}}_validateAttributeUpdaters(){const{settings:settings}=this;if(!(settings.noAlloc||"function"==typeof settings.update))throw new Error("Attribute ".concat(this.id," missing update or accessor"))}_checkAttributeArray(){const{value:value}=this,limit=Math.min(4,this.size);if(value&&value.length>=limit){let valid=!0;switch(limit){case 4:valid=valid&&Number.isFinite(value[3]);case 3:valid=valid&&Number.isFinite(value[2]);case 2:valid=valid&&Number.isFinite(value[1]);case 1:valid=valid&&Number.isFinite(value[0]);break;default:valid=!1}if(!valid)throw new Error("Illegal attribute generated for ".concat(this.id))}}}var memoize=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/memoize.js"),debug=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/debug/index.js"),transform=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/transform/transform.js"),transition=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/transition.js");const vs="\n#define SHADER_NAME interpolation-transition-vertex-shader\n\nuniform float time;\nattribute ATTRIBUTE_TYPE aFrom;\nattribute ATTRIBUTE_TYPE aTo;\nvarying ATTRIBUTE_TYPE vCurrent;\n\nvoid main(void) {\n vCurrent = mix(aFrom, aTo, time);\n gl_Position = vec4(0.0);\n}\n";var copy_and_blit=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js");const TRANSITION_TYPES={interpolation:class GPUInterpolationTransition{constructor({gl:gl,attribute:attribute,timeline:timeline}){(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"type","interpolation"),(0,defineProperty.Z)(this,"attributeInTransition",void 0),(0,defineProperty.Z)(this,"settings",void 0),(0,defineProperty.Z)(this,"attribute",void 0),(0,defineProperty.Z)(this,"transition",void 0),(0,defineProperty.Z)(this,"currentStartIndices",void 0),(0,defineProperty.Z)(this,"currentLength",void 0),(0,defineProperty.Z)(this,"transform",void 0),(0,defineProperty.Z)(this,"buffers",void 0),this.gl=gl,this.transition=new transition.Z(timeline),this.attribute=attribute,this.attributeInTransition=new Attribute(gl,attribute.settings),this.currentStartIndices=attribute.startIndices,this.currentLength=0,this.transform=function getTransform(gl,attribute){const attributeType=(0,attribute_transition_utils.w)(attribute.size);return new transform.Z(gl,{vs:vs,defines:{ATTRIBUTE_TYPE:attributeType},varyings:["vCurrent"]})}(gl,attribute);const bufferOpts={byteLength:0,usage:35050};this.buffers=[new buffer.Z(gl,bufferOpts),new buffer.Z(gl,bufferOpts)]}get inProgress(){return this.transition.inProgress}start(transitionSettings,numInstances){if(transitionSettings.duration<=0)return void this.transition.cancel();this.settings=transitionSettings;const{gl:gl,buffers:buffers,attribute:attribute}=this;(0,attribute_transition_utils.DY)(buffers);const padBufferOpts={numInstances:numInstances,attribute:attribute,fromLength:this.currentLength,fromStartIndices:this.currentStartIndices,getData:transitionSettings.enter};for(const buffer of buffers)(0,attribute_transition_utils.IV)({buffer:buffer,...padBufferOpts});this.currentStartIndices=attribute.startIndices,this.currentLength=(0,attribute_transition_utils.pi)(attribute,numInstances),this.attributeInTransition.setData({buffer:buffers[1],value:attribute.value}),this.transition.start(transitionSettings),this.transform.update({elementCount:Math.floor(this.currentLength/attribute.size),sourceBuffers:{aFrom:buffers[0],aTo:(0,attribute_transition_utils.AQ)(gl,attribute)},feedbackBuffers:{vCurrent:buffers[1]}})}update(){const updated=this.transition.update();if(updated){const{duration:duration,easing:easing}=this.settings,{time:time}=this.transition;let t=time/duration;easing&&(t=easing(t)),this.transform.run({uniforms:{time:t}})}return updated}cancel(){this.transition.cancel(),this.transform.delete();for(const buffer of this.buffers)buffer.delete();this.buffers.length=0}},spring:class GPUSpringTransition{constructor({gl:gl,attribute:attribute,timeline:timeline}){(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"type","spring"),(0,defineProperty.Z)(this,"attributeInTransition",void 0),(0,defineProperty.Z)(this,"settings",void 0),(0,defineProperty.Z)(this,"attribute",void 0),(0,defineProperty.Z)(this,"transition",void 0),(0,defineProperty.Z)(this,"currentStartIndices",void 0),(0,defineProperty.Z)(this,"currentLength",void 0),(0,defineProperty.Z)(this,"texture",void 0),(0,defineProperty.Z)(this,"framebuffer",void 0),(0,defineProperty.Z)(this,"transform",void 0),(0,defineProperty.Z)(this,"buffers",void 0),this.gl=gl,this.type="spring",this.transition=new transition.Z(timeline),this.attribute=attribute,this.attributeInTransition=new Attribute(gl,{...attribute.settings,normalized:!1}),this.currentStartIndices=attribute.startIndices,this.currentLength=0,this.texture=function getTexture(gl){return new texture_2d.Z(gl,{data:new Uint8Array(4),format:6408,type:5121,border:0,mipmaps:!1,dataFormat:6408,width:1,height:1})}(gl),this.framebuffer=function getFramebuffer(gl,texture){return new framebuffer.Z(gl,{id:"spring-transition-is-transitioning-framebuffer",width:1,height:1,attachments:{36064:texture}})}(gl,this.texture),this.transform=function gpu_spring_transition_getTransform(gl,attribute,framebuffer){const attributeType=(0,attribute_transition_utils.w)(attribute.size);return new transform.Z(gl,{framebuffer:framebuffer,vs:"\n#define SHADER_NAME spring-transition-vertex-shader\n\n#define EPSILON 0.00001\n\nuniform float stiffness;\nuniform float damping;\nattribute ATTRIBUTE_TYPE aPrev;\nattribute ATTRIBUTE_TYPE aCur;\nattribute ATTRIBUTE_TYPE aTo;\nvarying ATTRIBUTE_TYPE vNext;\nvarying float vIsTransitioningFlag;\n\nATTRIBUTE_TYPE getNextValue(ATTRIBUTE_TYPE cur, ATTRIBUTE_TYPE prev, ATTRIBUTE_TYPE dest) {\n ATTRIBUTE_TYPE velocity = cur - prev;\n ATTRIBUTE_TYPE delta = dest - cur;\n ATTRIBUTE_TYPE spring = delta * stiffness;\n ATTRIBUTE_TYPE damper = velocity * -1.0 * damping;\n return spring + damper + velocity + cur;\n}\n\nvoid main(void) {\n bool isTransitioning = length(aCur - aPrev) > EPSILON || length(aTo - aCur) > EPSILON;\n vIsTransitioningFlag = isTransitioning ? 1.0 : 0.0;\n\n vNext = getNextValue(aCur, aPrev, aTo);\n gl_Position = vec4(0, 0, 0, 1);\n gl_PointSize = 100.0;\n}\n",fs:"\n#define SHADER_NAME spring-transition-is-transitioning-fragment-shader\n\nvarying float vIsTransitioningFlag;\n\nvoid main(void) {\n if (vIsTransitioningFlag == 0.0) {\n discard;\n }\n gl_FragColor = vec4(1.0);\n}",defines:{ATTRIBUTE_TYPE:attributeType},varyings:["vNext"]})}(gl,attribute,this.framebuffer);const bufferOpts={byteLength:0,usage:35050};this.buffers=[new buffer.Z(gl,bufferOpts),new buffer.Z(gl,bufferOpts),new buffer.Z(gl,bufferOpts)]}get inProgress(){return this.transition.inProgress}start(transitionSettings,numInstances){const{gl:gl,buffers:buffers,attribute:attribute}=this,padBufferOpts={numInstances:numInstances,attribute:attribute,fromLength:this.currentLength,fromStartIndices:this.currentStartIndices,getData:transitionSettings.enter};for(const buffer of buffers)(0,attribute_transition_utils.IV)({buffer:buffer,...padBufferOpts});this.settings=transitionSettings,this.currentStartIndices=attribute.startIndices,this.currentLength=(0,attribute_transition_utils.pi)(attribute,numInstances),this.attributeInTransition.setData({buffer:buffers[1],value:attribute.value}),this.transition.start({...transitionSettings,duration:1/0}),this.transform.update({elementCount:Math.floor(this.currentLength/attribute.size),sourceBuffers:{aTo:(0,attribute_transition_utils.AQ)(gl,attribute)}})}update(){const{buffers:buffers,transform:transform,framebuffer:framebuffer,transition:transition}=this;if(!transition.update())return!1;const settings=this.settings;transform.update({sourceBuffers:{aPrev:buffers[0],aCur:buffers[1]},feedbackBuffers:{vNext:buffers[2]}}),transform.run({framebuffer:framebuffer,discard:!1,clearRenderTarget:!0,uniforms:{stiffness:settings.stiffness,damping:settings.damping},parameters:{depthTest:!1,blend:!0,viewport:[0,0,1,1],blendFunc:[1,1],blendEquation:[32776,32776]}}),(0,attribute_transition_utils.DY)(buffers),this.attributeInTransition.setData({buffer:buffers[1],value:this.attribute.value});return(0,copy_and_blit.z6)(framebuffer)[0]>0||transition.end(),!0}cancel(){this.transition.cancel(),this.transform.delete();for(const buffer of this.buffers)buffer.delete();this.buffers.length=0,this.texture.delete(),this.framebuffer.delete()}}};class AttributeTransitionManager{constructor(gl,{id:id,timeline:timeline}){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"isSupported",void 0),(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"timeline",void 0),(0,defineProperty.Z)(this,"transitions",void 0),(0,defineProperty.Z)(this,"needsRedraw",void 0),(0,defineProperty.Z)(this,"numInstances",void 0),this.id=id,this.gl=gl,this.timeline=timeline,this.transitions={},this.needsRedraw=!1,this.numInstances=1,this.isSupported=transform.Z.isSupported(gl)}finalize(){for(const attributeName in this.transitions)this._removeTransition(attributeName)}update({attributes:attributes,transitions:transitions,numInstances:numInstances}){this.numInstances=numInstances||1;for(const attributeName in attributes){const attribute=attributes[attributeName],settings=attribute.getTransitionSetting(transitions);settings&&this._updateAttribute(attributeName,attribute,settings)}for(const attributeName in this.transitions){const attribute=attributes[attributeName];attribute&&attribute.getTransitionSetting(transitions)||this._removeTransition(attributeName)}}hasAttribute(attributeName){const transition=this.transitions[attributeName];return transition&&transition.inProgress}getAttributes(){const animatedAttributes={};for(const attributeName in this.transitions){const transition=this.transitions[attributeName];transition.inProgress&&(animatedAttributes[attributeName]=transition.attributeInTransition)}return animatedAttributes}run(){if(!this.isSupported||0===this.numInstances)return!1;for(const attributeName in this.transitions){this.transitions[attributeName].update()&&(this.needsRedraw=!0)}const needsRedraw=this.needsRedraw;return this.needsRedraw=!1,needsRedraw}_removeTransition(attributeName){this.transitions[attributeName].cancel(),delete this.transitions[attributeName]}_updateAttribute(attributeName,attribute,settings){const transition=this.transitions[attributeName];let isNew=!transition||transition.type!==settings.type;if(isNew){if(!this.isSupported)return void log.Z.warn("WebGL2 not supported by this browser. Transition for ".concat(attributeName," is disabled."))();transition&&this._removeTransition(attributeName);const TransitionType=TRANSITION_TYPES[settings.type];TransitionType?this.transitions[attributeName]=new TransitionType({attribute:attribute,timeline:this.timeline,gl:this.gl}):(log.Z.error("unsupported transition type '".concat(settings.type,"'"))(),isNew=!1)}(isNew||attribute.needsRedraw())&&(this.needsRedraw=!0,this.transitions[attributeName].start(settings,this.numInstances))}}class AttributeManager{constructor(gl,{id:id="attribute-manager",stats:stats,timeline:timeline}={}){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"attributes",void 0),(0,defineProperty.Z)(this,"updateTriggers",void 0),(0,defineProperty.Z)(this,"needsRedraw",void 0),(0,defineProperty.Z)(this,"userData",void 0),(0,defineProperty.Z)(this,"stats",void 0),(0,defineProperty.Z)(this,"attributeTransitionManager",void 0),(0,defineProperty.Z)(this,"mergeBoundsMemoized",(0,memoize.Z)(math_utils.cc)),this.id=id,this.gl=gl,this.attributes={},this.updateTriggers={},this.needsRedraw=!0,this.userData={},this.stats=stats,this.attributeTransitionManager=new AttributeTransitionManager(gl,{id:"".concat(id,"-transitions"),timeline:timeline}),Object.seal(this)}finalize(){for(const attributeName in this.attributes)this.attributes[attributeName].delete();this.attributeTransitionManager.finalize()}getNeedsRedraw(opts={clearRedrawFlags:!1}){const redraw=this.needsRedraw;return this.needsRedraw=this.needsRedraw&&!opts.clearRedrawFlags,redraw&&this.id}setNeedsRedraw(){this.needsRedraw=!0}add(attributes){this._add(attributes)}addInstanced(attributes){this._add(attributes,{instanced:1})}remove(attributeNameArray){for(const name of attributeNameArray)void 0!==this.attributes[name]&&(this.attributes[name].delete(),delete this.attributes[name])}invalidate(triggerName,dataRange){const invalidatedAttributes=this._invalidateTrigger(triggerName,dataRange);(0,debug.Z)("attributeManager.invalidate",this,triggerName,invalidatedAttributes)}invalidateAll(dataRange){for(const attributeName in this.attributes)this.attributes[attributeName].setNeedsUpdate(attributeName,dataRange);(0,debug.Z)("attributeManager.invalidate",this,"all")}update({data:data,numInstances:numInstances,startIndices:startIndices=null,transitions:transitions,props:props={},buffers:buffers={},context:context={}}){let updated=!1;(0,debug.Z)("attributeManager.updateStart",this),this.stats&&this.stats.get("Update Attributes").timeStart();for(const attributeName in this.attributes){const attribute=this.attributes[attributeName],accessorName=attribute.settings.accessor;attribute.startIndices=startIndices,attribute.numInstances=numInstances,props[attributeName]&&log.Z.removed("props.".concat(attributeName),"data.attributes.".concat(attributeName))(),attribute.setExternalBuffer(buffers[attributeName])||attribute.setBinaryValue("string"==typeof accessorName?buffers[accessorName]:void 0,data.startIndices)||"string"==typeof accessorName&&!buffers[accessorName]&&attribute.setConstantValue(props[accessorName])||attribute.needsUpdate()&&(updated=!0,this._updateAttribute({attribute:attribute,numInstances:numInstances,data:data,props:props,context:context})),this.needsRedraw=this.needsRedraw||attribute.needsRedraw()}updated&&(0,debug.Z)("attributeManager.updateEnd",this,numInstances),this.stats&&this.stats.get("Update Attributes").timeEnd(),this.attributeTransitionManager.update({attributes:this.attributes,numInstances:numInstances,transitions:transitions})}updateTransition(){const{attributeTransitionManager:attributeTransitionManager}=this,transitionUpdated=attributeTransitionManager.run();return this.needsRedraw=this.needsRedraw||transitionUpdated,transitionUpdated}getAttributes(){return this.attributes}getBounds(attributeNames){const bounds=attributeNames.map((attributeName=>{var _this$attributes$attr;return null===(_this$attributes$attr=this.attributes[attributeName])||void 0===_this$attributes$attr?void 0:_this$attributes$attr.getBounds()}));return this.mergeBoundsMemoized(bounds)}getChangedAttributes(opts={clearChangedFlags:!1}){const{attributes:attributes,attributeTransitionManager:attributeTransitionManager}=this,changedAttributes={...attributeTransitionManager.getAttributes()};for(const attributeName in attributes){const attribute=attributes[attributeName];attribute.needsRedraw(opts)&&!attributeTransitionManager.hasAttribute(attributeName)&&(changedAttributes[attributeName]=attribute)}return changedAttributes}getShaderAttributes(attributes,excludeAttributes={}){attributes||(attributes=this.getAttributes());const shaderAttributes={};for(const attributeName in attributes)excludeAttributes[attributeName]||Object.assign(shaderAttributes,attributes[attributeName].getShaderAttributes());return shaderAttributes}_add(attributes,extraProps={}){for(const attributeName in attributes){const attribute=attributes[attributeName];this.attributes[attributeName]=this._createAttribute(attributeName,attribute,extraProps)}this._mapUpdateTriggersToAttributes()}_createAttribute(name,attribute,extraProps){const props={...attribute,id:name,size:(attribute.isIndexed?1:attribute.size)||1,divisor:extraProps.instanced?1:attribute.divisor||0};return new Attribute(this.gl,props)}_mapUpdateTriggersToAttributes(){const triggers={};for(const attributeName in this.attributes){this.attributes[attributeName].getUpdateTriggers().forEach((triggerName=>{triggers[triggerName]||(triggers[triggerName]=[]),triggers[triggerName].push(attributeName)}))}this.updateTriggers=triggers}_invalidateTrigger(triggerName,dataRange){const{attributes:attributes,updateTriggers:updateTriggers}=this,invalidatedAttributes=updateTriggers[triggerName];return invalidatedAttributes&&invalidatedAttributes.forEach((name=>{const attribute=attributes[name];attribute&&attribute.setNeedsUpdate(attribute.id,dataRange)})),invalidatedAttributes}_updateAttribute(opts){const{attribute:attribute,numInstances:numInstances}=opts;if((0,debug.Z)("attribute.updateStart",attribute),attribute.constant)return void attribute.setConstantValue(attribute.value);attribute.allocate(numInstances)&&(0,debug.Z)("attribute.allocate",attribute,numInstances);attribute.updateBuffer(opts)&&(this.needsRedraw=!0,(0,debug.Z)("attribute.updateEnd",attribute,numInstances))}}},"./node_modules/@deck.gl/core/dist/esm/lib/attribute/attribute-transition-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function padArrayChunk(options){const{source:source,target:target,start:start=0,size:size,getData:getData}=options,end=options.end||target.length,sourceLength=source.length,targetLength=end-start;if(sourceLength>targetLength)return void target.set(source.subarray(0,targetLength),start);if(target.set(source,start),!getData)return;let i=sourceLength;for(;it},spring:{stiffness:.05,damping:.5}};function normalizeTransitionSettings(userSettings,layerSettings){if(!userSettings)return null;Number.isFinite(userSettings)&&(userSettings={type:"interpolation",duration:userSettings});const type=userSettings.type||"interpolation";return{...DEFAULT_TRANSITION_SETTINGS[type],...layerSettings,...userSettings,type:type}}function getSourceBufferAttribute(gl,attribute){const buffer=attribute.getBuffer();return buffer?[buffer,{divisor:0,size:attribute.size,normalized:attribute.settings.normalized}]:attribute.value}function getAttributeTypeFromSize(size){switch(size){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4";default:throw new Error('No defined attribute type for size "'.concat(size,'"'))}}function cycleBuffers(buffers){buffers.push(buffers.shift())}function getAttributeBufferLength(attribute,numInstances){const{doublePrecision:doublePrecision,settings:settings,value:value,size:size}=attribute,multiplier=doublePrecision&&value instanceof Float64Array?2:1;return(settings.noAlloc?value.length:numInstances*size)*multiplier}function padBuffer({buffer:buffer,numInstances:numInstances,attribute:attribute,fromLength:fromLength,fromStartIndices:fromStartIndices,getData:getData=(x=>x)}){const precisionMultiplier=attribute.doublePrecision&&attribute.value instanceof Float64Array?2:1,size=attribute.size*precisionMultiplier,byteOffset=attribute.byteOffset,toStartIndices=attribute.startIndices,hasStartIndices=fromStartIndices&&toStartIndices,toLength=getAttributeBufferLength(attribute,numInstances),isConstant=attribute.isConstant;if(!hasStartIndices&&fromLength>=toLength)return;const toData=isConstant?attribute.value:attribute.getBuffer().getData({srcByteOffset:byteOffset});if(attribute.settings.normalized&&!isConstant){const getter=getData;getData=(value,chunk)=>attribute.normalizeConstant(getter(value,chunk))}const getMissingData=isConstant?(i,chunk)=>getData(toData,chunk):(i,chunk)=>getData(toData.subarray(i,i+size),chunk),source=buffer.getData({length:fromLength}),data=new Float32Array(toLength);!function padArray({source:source,target:target,size:size,getData:getData,sourceStartIndices:sourceStartIndices,targetStartIndices:targetStartIndices}){if(!Array.isArray(targetStartIndices))return padArrayChunk({source:source,target:target,size:size,getData:getData}),target;let sourceIndex=0,targetIndex=0;const getChunkData=getData&&((i,chunk)=>getData(i+targetIndex,chunk)),n=Math.min(sourceStartIndices.length,targetStartIndices.length);for(let i=1;ilayer.isLoaded))}getSubLayers(){return this.internalState&&this.internalState.subLayers||[]}initializeState(context){}setState(updateObject){super.setState(updateObject),this.setNeedsUpdate()}getPickingInfo({info:info}){const{object:object}=info;return object&&object.__source&&object.__source.parent&&object.__source.parent.id===this.id?(info.object=object.__source.object,info.index=object.__source.index,info):info}filterSubLayer(context){return!0}shouldRenderSubLayer(subLayerId,data){return data&&data.length}getSubLayerClass(subLayerId,DefaultLayerClass){const{_subLayerProps:overridingProps}=this.props;return overridingProps&&overridingProps[subLayerId]&&overridingProps[subLayerId].type||DefaultLayerClass}getSubLayerRow(row,sourceObject,sourceObjectIndex){return row.__source={parent:this,object:sourceObject,index:sourceObjectIndex},row}getSubLayerAccessor(accessor){if("function"==typeof accessor){const objectInfo={index:-1,data:this.props.data,target:[]};return(x,i)=>x&&x.__source?(objectInfo.index=x.__source.index,accessor(x.__source.object,objectInfo)):accessor(x,i)}return accessor}getSubLayerProps(sublayerProps={}){var _this$props$updateTri;const{opacity:opacity,pickable:pickable,visible:visible,parameters:parameters,getPolygonOffset:getPolygonOffset,highlightedObjectIndex:highlightedObjectIndex,autoHighlight:autoHighlight,highlightColor:highlightColor,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,wrapLongitude:wrapLongitude,positionFormat:positionFormat,modelMatrix:modelMatrix,extensions:extensions,fetch:fetch,operation:operation,_subLayerProps:overridingProps}=this.props,newProps={id:"",updateTriggers:{},opacity:opacity,pickable:pickable,visible:visible,parameters:parameters,getPolygonOffset:getPolygonOffset,highlightedObjectIndex:highlightedObjectIndex,autoHighlight:autoHighlight,highlightColor:highlightColor,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,wrapLongitude:wrapLongitude,positionFormat:positionFormat,modelMatrix:modelMatrix,extensions:extensions,fetch:fetch,operation:operation},overridingSublayerProps=overridingProps&&sublayerProps.id&&overridingProps[sublayerProps.id],overridingSublayerTriggers=overridingSublayerProps&&overridingSublayerProps.updateTriggers,sublayerId=sublayerProps.id||"sublayer";if(overridingSublayerProps){const propTypes=this.props[_lifecycle_constants__WEBPACK_IMPORTED_MODULE_1__.Wb],subLayerPropTypes=sublayerProps.type?sublayerProps.type._propTypes:{};for(const key in overridingSublayerProps){const propType=subLayerPropTypes[key]||propTypes[key];propType&&"accessor"===propType.type&&(overridingSublayerProps[key]=this.getSubLayerAccessor(overridingSublayerProps[key]))}}Object.assign(newProps,sublayerProps,overridingSublayerProps),newProps.id="".concat(this.props.id,"-").concat(sublayerId),newProps.updateTriggers={all:null===(_this$props$updateTri=this.props.updateTriggers)||void 0===_this$props$updateTri?void 0:_this$props$updateTri.all,...sublayerProps.updateTriggers,...overridingSublayerTriggers};for(const extension of extensions){const passThroughProps=extension.getSubLayerProps.call(this,extension);passThroughProps&&Object.assign(newProps,passThroughProps,{updateTriggers:Object.assign(newProps.updateTriggers,passThroughProps.updateTriggers)})}return newProps}_updateAutoHighlight(info){for(const layer of this.getSubLayers())layer.updateAutoHighlight(info)}_getAttributeManager(){return null}_postUpdate(updateParams,forceUpdate){let subLayers=this.internalState.subLayers;const shouldUpdate=!subLayers||this.needsUpdate();if(shouldUpdate){const subLayersList=this.renderLayers();subLayers=(0,_utils_flatten__WEBPACK_IMPORTED_MODULE_2__.x)(subLayersList,Boolean),this.internalState.subLayers=subLayers}(0,_debug__WEBPACK_IMPORTED_MODULE_3__.Z)("compositeLayer.renderLayers",this,shouldUpdate,subLayers);for(const layer of subLayers)layer.parent=this}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(CompositeLayer,"layerName","CompositeLayer")},"./node_modules/@deck.gl/core/dist/esm/lib/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{COORDINATE_SYSTEM:function(){return COORDINATE_SYSTEM},FP:function(){return EVENTS},iI:function(){return UNIT},k8:function(){return OPERATION},zG:function(){return PROJECTION_MODE}});var _utils_log__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js");const COORDINATE_SYSTEM={DEFAULT:-1,LNGLAT:1,METER_OFFSETS:2,LNGLAT_OFFSETS:3,CARTESIAN:0};Object.defineProperty(COORDINATE_SYSTEM,"IDENTITY",{get:()=>(_utils_log__WEBPACK_IMPORTED_MODULE_0__.Z.deprecated("COORDINATE_SYSTEM.IDENTITY","COORDINATE_SYSTEM.CARTESIAN")(),0)});const PROJECTION_MODE={WEB_MERCATOR:1,GLOBE:2,WEB_MERCATOR_AUTO_OFFSET:4,IDENTITY:0},UNIT={common:0,meters:1,pixels:2},EVENTS={click:{handler:"onClick"},panstart:{handler:"onDragStart"},panmove:{handler:"onDrag"},panend:{handler:"onDragEnd"}},OPERATION={DRAW:"draw",MASK:"mask",TERRAIN:"terrain"}},"./node_modules/@deck.gl/core/dist/esm/lib/deck-renderer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return DeckRenderer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),debug=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/debug/index.js"),layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/layers-pass.js");class DrawLayersPass extends layers_pass.Z{shouldDrawLayer(layer){const{operation:operation}=layer.props;return operation.includes("draw")||operation.includes("terrain")}}var pick_layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/pick-layers-pass.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js");class DeckRenderer{constructor(gl){(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"layerFilter",void 0),(0,defineProperty.Z)(this,"drawPickingColors",void 0),(0,defineProperty.Z)(this,"drawLayersPass",void 0),(0,defineProperty.Z)(this,"pickLayersPass",void 0),(0,defineProperty.Z)(this,"renderCount",void 0),(0,defineProperty.Z)(this,"_needsRedraw",void 0),(0,defineProperty.Z)(this,"renderBuffers",void 0),(0,defineProperty.Z)(this,"lastPostProcessEffect",void 0),this.gl=gl,this.layerFilter=null,this.drawPickingColors=!1,this.drawLayersPass=new DrawLayersPass(gl),this.pickLayersPass=new pick_layers_pass.Z(gl),this.renderCount=0,this._needsRedraw="Initial render",this.renderBuffers=[],this.lastPostProcessEffect=null}setProps(props){this.layerFilter!==props.layerFilter&&(this.layerFilter=props.layerFilter,this._needsRedraw="layerFilter changed"),this.drawPickingColors!==props.drawPickingColors&&(this.drawPickingColors=props.drawPickingColors,this._needsRedraw="drawPickingColors changed")}renderLayers(opts){if(!opts.viewports.length)return;const layerPass=this.drawPickingColors?this.pickLayersPass:this.drawLayersPass,renderOpts={layerFilter:this.layerFilter,isPicking:this.drawPickingColors,...opts,target:opts.target||framebuffer.Z.getDefaultFramebuffer(this.gl)};renderOpts.effects&&this._preRender(renderOpts.effects,renderOpts);const outputBuffer=this.lastPostProcessEffect?this.renderBuffers[0]:renderOpts.target,renderStats=layerPass.render({...renderOpts,target:outputBuffer});renderOpts.effects&&this._postRender(renderOpts.effects,renderOpts),this.renderCount++,(0,debug.Z)("deckRenderer.renderLayers",this,renderStats,opts)}needsRedraw(opts={clearRedrawFlags:!1}){const redraw=this._needsRedraw;return opts.clearRedrawFlags&&(this._needsRedraw=!1),redraw}finalize(){const{renderBuffers:renderBuffers}=this;for(const buffer of renderBuffers)buffer.delete();renderBuffers.length=0}_preRender(effects,opts){this.lastPostProcessEffect=null,opts.preRenderStats=opts.preRenderStats||{};for(const effect of effects)opts.preRenderStats[effect.id]=effect.preRender(this.gl,opts),effect.postRender&&(this.lastPostProcessEffect=effect.id);this.lastPostProcessEffect&&this._resizeRenderBuffers()}_resizeRenderBuffers(){const{renderBuffers:renderBuffers}=this;0===renderBuffers.length&&renderBuffers.push(new framebuffer.Z(this.gl),new framebuffer.Z(this.gl));for(const buffer of renderBuffers)buffer.resize()}_postRender(effects,opts){const{renderBuffers:renderBuffers}=this,params={...opts,inputBuffer:renderBuffers[0],swapBuffer:renderBuffers[1],target:null};for(const effect of effects)if(effect.postRender){if(effect.id===this.lastPostProcessEffect){params.target=opts.target,effect.postRender(this.gl,params);break}const buffer=effect.postRender(this.gl,params);params.inputBuffer=buffer,params.swapBuffer=buffer===renderBuffers[0]?renderBuffers[1]:renderBuffers[0]}}}},"./node_modules/@deck.gl/core/dist/esm/lib/deck.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Deck}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),layer_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer-manager.js"),deep_equal=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),flatten=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/flatten.js");class ViewManager{constructor(props){(0,defineProperty.Z)(this,"width",void 0),(0,defineProperty.Z)(this,"height",void 0),(0,defineProperty.Z)(this,"views",void 0),(0,defineProperty.Z)(this,"viewState",void 0),(0,defineProperty.Z)(this,"controllers",void 0),(0,defineProperty.Z)(this,"timeline",void 0),(0,defineProperty.Z)(this,"_viewports",void 0),(0,defineProperty.Z)(this,"_viewportMap",void 0),(0,defineProperty.Z)(this,"_isUpdating",void 0),(0,defineProperty.Z)(this,"_needsRedraw",void 0),(0,defineProperty.Z)(this,"_needsUpdate",void 0),(0,defineProperty.Z)(this,"_eventManager",void 0),(0,defineProperty.Z)(this,"_eventCallbacks",void 0),this.views=[],this.width=100,this.height=100,this.viewState={},this.controllers={},this.timeline=props.timeline,this._viewports=[],this._viewportMap={},this._isUpdating=!1,this._needsRedraw="First render",this._needsUpdate="Initialize",this._eventManager=props.eventManager,this._eventCallbacks={onViewStateChange:props.onViewStateChange,onInteractionStateChange:props.onInteractionStateChange},Object.seal(this),this.setProps(props)}finalize(){for(const key in this.controllers){const controller=this.controllers[key];controller&&controller.finalize()}this.controllers={}}needsRedraw(opts={clearRedrawFlags:!1}){const redraw=this._needsRedraw;return opts.clearRedrawFlags&&(this._needsRedraw=!1),redraw}setNeedsUpdate(reason){this._needsUpdate=this._needsUpdate||reason,this._needsRedraw=this._needsRedraw||reason}updateViewStates(){for(const viewId in this.controllers){const controller=this.controllers[viewId];controller&&controller.updateTransition()}}getViewports(rect){return rect?this._viewports.filter((viewport=>viewport.containsPixel(rect))):this._viewports}getViews(){const viewMap={};return this.views.forEach((view=>{viewMap[view.id]=view})),viewMap}getView(viewId){return this.views.find((view=>view.id===viewId))}getViewState(viewOrViewId){const view="string"==typeof viewOrViewId?this.getView(viewOrViewId):viewOrViewId,viewState=view&&this.viewState[view.getViewStateId()]||this.viewState;return view?view.filterViewState(viewState):viewState}getViewport(viewId){return this._viewportMap[viewId]}unproject(xyz,opts){const viewports=this.getViewports(),pixel={x:xyz[0],y:xyz[1]};for(let i=viewports.length-1;i>=0;--i){const viewport=viewports[i];if(viewport.containsPixel(pixel)){const p=xyz.slice();return p[0]-=viewport.x,p[1]-=viewport.y,viewport.unproject(p,opts)}}return null}setProps(props){props.views&&this._setViews(props.views),props.viewState&&this._setViewState(props.viewState),("width"in props||"height"in props)&&this._setSize(props.width,props.height),this._isUpdating||this._update()}_update(){this._isUpdating=!0,this._needsUpdate&&(this._needsUpdate=!1,this._rebuildViewports()),this._needsUpdate&&(this._needsUpdate=!1,this._rebuildViewports()),this._isUpdating=!1}_setSize(width,height){width===this.width&&height===this.height||(this.width=width,this.height=height,this.setNeedsUpdate("Size changed"))}_setViews(views){views=(0,flatten.x)(views,Boolean);this._diffViews(views,this.views)&&this.setNeedsUpdate("views changed"),this.views=views}_setViewState(viewState){if(viewState){!(0,deep_equal.v)(viewState,this.viewState,3)&&this.setNeedsUpdate("viewState changed"),this.viewState=viewState}else log.Z.warn("missing `viewState` or `initialViewState`")()}_onViewStateChange(viewId,event){this._eventCallbacks.onViewStateChange&&this._eventCallbacks.onViewStateChange({...event,viewId:viewId})}_createController(view,props){return new(0,props.type)({timeline:this.timeline,eventManager:this._eventManager,onViewStateChange:this._onViewStateChange.bind(this,props.id),onStateChange:this._eventCallbacks.onInteractionStateChange,makeViewport:viewState=>{var _this$getView;return null===(_this$getView=this.getView(view.id))||void 0===_this$getView?void 0:_this$getView.makeViewport({viewState:viewState,width:this.width,height:this.height})}})}_updateController(view,viewState,viewport,controller){const controllerProps=view.controller;if(controllerProps&&viewport){const resolvedProps={...viewState,...controllerProps,id:view.id,x:viewport.x,y:viewport.y,width:viewport.width,height:viewport.height};return controller&&controller.constructor===controllerProps.type||(controller=this._createController(view,resolvedProps)),controller&&controller.setProps(resolvedProps),controller}return null}_rebuildViewports(){const{views:views}=this,oldControllers=this.controllers;this._viewports=[],this.controllers={};let invalidateControllers=!1;for(let i=views.length;i--;){const view=views[i],viewState=this.getViewState(view),viewport=view.makeViewport({viewState:viewState,width:this.width,height:this.height});let oldController=oldControllers[view.id];const hasController=Boolean(view.controller);hasController&&!oldController&&(invalidateControllers=!0),!invalidateControllers&&hasController||!oldController||(oldController.finalize(),oldController=null),this.controllers[view.id]=this._updateController(view,viewState,viewport,oldController),viewport&&this._viewports.unshift(viewport)}for(const id in oldControllers){const oldController=oldControllers[id];oldController&&!this.controllers[id]&&oldController.finalize()}this._buildViewportMap()}_buildViewportMap(){this._viewportMap={},this._viewports.forEach((viewport=>{viewport.id&&(this._viewportMap[viewport.id]=this._viewportMap[viewport.id]||viewport)}))}_diffViews(newViews,oldViews){return newViews.length!==oldViews.length||newViews.some(((_,i)=>!newViews[i].equals(oldViews[i])))}}var map_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/map-view.js"),lighting_effect=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/lighting-effect.js");const DEFAULT_LIGHTING_EFFECT=new lighting_effect.Z;class EffectManager{constructor(){(0,defineProperty.Z)(this,"effects",void 0),(0,defineProperty.Z)(this,"_resolvedEffects",[]),(0,defineProperty.Z)(this,"_defaultEffects",[]),(0,defineProperty.Z)(this,"_needsRedraw",void 0),this.effects=[],this._needsRedraw="Initial render",this._setEffects([])}addDefaultEffect(effect){const defaultEffects=this._defaultEffects;if(!defaultEffects.find((e=>e.id===effect.id))){const index=defaultEffects.findIndex((e=>function compareEffects(e1,e2){var _e1$order,_e2$order;return(null!==(_e1$order=e1.order)&&void 0!==_e1$order?_e1$order:1/0)-(null!==(_e2$order=e2.order)&&void 0!==_e2$order?_e2$order:1/0)}(e,effect)>0));index<0?defaultEffects.push(effect):defaultEffects.splice(index,0,effect),this._setEffects(this.effects)}}setProps(props){"effects"in props&&((0,deep_equal.v)(props.effects,this.effects,1)||this._setEffects(props.effects))}needsRedraw(opts={clearRedrawFlags:!1}){const redraw=this._needsRedraw;return opts.clearRedrawFlags&&(this._needsRedraw=!1),redraw}getEffects(){return this._resolvedEffects}_setEffects(effects){const oldEffectsMap={};for(const effect of this.effects)oldEffectsMap[effect.id]=effect;const nextEffects=[];for(const effect of effects){const oldEffect=oldEffectsMap[effect.id];oldEffect&&oldEffect!==effect?oldEffect.setProps?(oldEffect.setProps(effect.props),nextEffects.push(oldEffect)):(oldEffect.cleanup(),nextEffects.push(effect)):nextEffects.push(effect),delete oldEffectsMap[effect.id]}for(const removedEffectId in oldEffectsMap)oldEffectsMap[removedEffectId].cleanup();this.effects=nextEffects,this._resolvedEffects=nextEffects.concat(this._defaultEffects),effects.some((effect=>effect instanceof lighting_effect.Z))||this._resolvedEffects.push(DEFAULT_LIGHTING_EFFECT),this._needsRedraw="effects changed"}finalize(){for(const effect of this._resolvedEffects)effect.cleanup();this.effects.length=0,this._resolvedEffects.length=0,this._defaultEffects.length=0}}var deck_renderer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/deck-renderer.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),copy_and_blit=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),pick_layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/pick-layers-pass.js");const NO_PICKED_OBJECT={pickedColor:null,pickedObjectIndex:-1};function getClosestObject({pickedColors:pickedColors,decodePickingColor:decodePickingColor,deviceX:deviceX,deviceY:deviceY,deviceRadius:deviceRadius,deviceRect:deviceRect}){const{x:x,y:y,width:width,height:height}=deviceRect;let minSquareDistanceToCenter=deviceRadius*deviceRadius,closestPixelIndex=-1,i=0;for(let row=0;rowminSquareDistanceToCenter)i+=4*width;else for(let col=0;col=0){const dx=col+x-deviceX,d2=dx*dx+dy2;d2<=minSquareDistanceToCenter&&(minSquareDistanceToCenter=d2,closestPixelIndex=i)}i+=4}}if(closestPixelIndex>=0){const pickedColor=pickedColors.slice(closestPixelIndex,closestPixelIndex+4),pickedObject=decodePickingColor(pickedColor);if(pickedObject){const dy=Math.floor(closestPixelIndex/4/width),dx=closestPixelIndex/4-dy*width;return{...pickedObject,pickedColor:pickedColor,pickedX:x+dx,pickedY:y+dy}}log.Z.error("Picked non-existent layer. Is picking buffer corrupt?")()}return NO_PICKED_OBJECT}function getEmptyPickingInfo({pickInfo:pickInfo,viewports:viewports,pixelRatio:pixelRatio,x:x,y:y,z:z}){let coordinate,pickedViewport=viewports[0];if(viewports.length>1&&(pickedViewport=function getViewportFromCoordinates(viewports,pixel){for(let i=viewports.length-1;i>=0;i--){const viewport=viewports[i];if(viewport.containsPixel(pixel))return viewport}return viewports[0]}((null==pickInfo?void 0:pickInfo.pickedViewports)||viewports,{x:x,y:y})),pickedViewport){const point=[x-pickedViewport.x,y-pickedViewport.y];void 0!==z&&(point[2]=z),coordinate=pickedViewport.unproject(point)}return{color:null,layer:null,viewport:pickedViewport,index:-1,picked:!1,x:x,y:y,pixel:[x,y],coordinate:coordinate,devicePixel:pickInfo&&"pickedX"in pickInfo?[pickInfo.pickedX,pickInfo.pickedY]:void 0,pixelRatio:pixelRatio}}function processPickInfo(opts){const{pickInfo:pickInfo,lastPickedInfo:lastPickedInfo,mode:mode,layers:layers}=opts,{pickedColor:pickedColor,pickedLayer:pickedLayer,pickedObjectIndex:pickedObjectIndex}=pickInfo,affectedLayers=pickedLayer?[pickedLayer]:[];if("hover"===mode){const lastPickedPixelIndex=lastPickedInfo.index,lastPickedLayerId=lastPickedInfo.layerId,pickedLayerId=pickedLayer?pickedLayer.props.id:null;if(pickedLayerId!==lastPickedLayerId||pickedObjectIndex!==lastPickedPixelIndex){if(pickedLayerId!==lastPickedLayerId){const lastPickedLayer=layers.find((layer=>layer.props.id===lastPickedLayerId));lastPickedLayer&&affectedLayers.unshift(lastPickedLayer)}lastPickedInfo.layerId=pickedLayerId,lastPickedInfo.index=pickedObjectIndex,lastPickedInfo.info=null}}const baseInfo=getEmptyPickingInfo(opts),infos=new Map;return infos.set(null,baseInfo),affectedLayers.forEach((layer=>{let info={...baseInfo};layer===pickedLayer&&(info.color=pickedColor,info.index=pickedObjectIndex,info.picked=!0),info=getLayerPickingInfo({layer:layer,info:info,mode:mode});const rootLayer=info.layer;layer===pickedLayer&&"hover"===mode&&(lastPickedInfo.info=info),infos.set(rootLayer.id,info),"hover"===mode&&rootLayer.updateAutoHighlight(info)})),infos}function getLayerPickingInfo({layer:layer,info:info,mode:mode}){for(;layer&&info;){const sourceLayer=info.layer||null;info.sourceLayer=sourceLayer,info.layer=layer,info=layer.getPickingInfo({info:info,mode:mode,sourceLayer:sourceLayer}),layer=layer.parent}return info}class DeckPicker{constructor(gl){(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"pickingFBO",void 0),(0,defineProperty.Z)(this,"depthFBO",void 0),(0,defineProperty.Z)(this,"pickLayersPass",void 0),(0,defineProperty.Z)(this,"layerFilter",void 0),(0,defineProperty.Z)(this,"lastPickedInfo",void 0),(0,defineProperty.Z)(this,"_pickable",!0),this.gl=gl,this.pickLayersPass=new pick_layers_pass.Z(gl),this.lastPickedInfo={index:-1,layerId:null,info:null}}setProps(props){"layerFilter"in props&&(this.layerFilter=props.layerFilter),"_pickable"in props&&(this._pickable=props._pickable)}finalize(){this.pickingFBO&&this.pickingFBO.delete(),this.depthFBO&&(this.depthFBO.color.delete(),this.depthFBO.delete())}pickObject(opts){return this._pickClosestObject(opts)}pickObjects(opts){return this._pickVisibleObjects(opts)}getLastPickedObject({x:x,y:y,layers:layers,viewports:viewports},lastPickedInfo=this.lastPickedInfo.info){const lastPickedLayerId=lastPickedInfo&&lastPickedInfo.layer&&lastPickedInfo.layer.id,lastPickedViewportId=lastPickedInfo&&lastPickedInfo.viewport&&lastPickedInfo.viewport.id,layer=lastPickedLayerId?layers.find((l=>l.id===lastPickedLayerId)):null,viewport=lastPickedViewportId&&viewports.find((v=>v.id===lastPickedViewportId))||viewports[0],coordinate=viewport&&viewport.unproject([x-viewport.x,y-viewport.y]),info={x:x,y:y,viewport:viewport,coordinate:coordinate,layer:layer};return{...lastPickedInfo,...info}}_resizeBuffer(){var _this$pickingFBO,_this$depthFBO;const{gl:gl}=this;if(!this.pickingFBO&&(this.pickingFBO=new framebuffer.Z(gl),framebuffer.Z.isSupported(gl,{colorBufferFloat:!0}))){const depthFBO=new framebuffer.Z(gl);depthFBO.attach({36064:new texture_2d.Z(gl,{format:(0,esm.D0)(gl)?34836:6408,type:5126})}),this.depthFBO=depthFBO}null===(_this$pickingFBO=this.pickingFBO)||void 0===_this$pickingFBO||_this$pickingFBO.resize({width:gl.canvas.width,height:gl.canvas.height}),null===(_this$depthFBO=this.depthFBO)||void 0===_this$depthFBO||_this$depthFBO.resize({width:gl.canvas.width,height:gl.canvas.height})}_getPickable(layers){if(!1===this._pickable)return null;const pickableLayers=layers.filter((layer=>this.pickLayersPass.shouldDrawLayer(layer)&&!layer.isComposite));return pickableLayers.length?pickableLayers:null}_pickClosestObject({layers:layers,views:views,viewports:viewports,x:x,y:y,radius:radius=0,depth:depth=1,mode:mode="query",unproject3D:unproject3D,onViewportActive:onViewportActive,effects:effects}){const pickableLayers=this._getPickable(layers),pixelRatio=(0,esm.w)(this.gl);if(!pickableLayers)return{result:[],emptyInfo:getEmptyPickingInfo({viewports:viewports,x:x,y:y,pixelRatio:pixelRatio})};this._resizeBuffer();const devicePixelRange=(0,esm.JY)(this.gl,[x,y],!0),devicePixel=[devicePixelRange.x+Math.floor(devicePixelRange.width/2),devicePixelRange.y+Math.floor(devicePixelRange.height/2)],deviceRadius=Math.round(radius*pixelRatio),{width:width,height:height}=this.pickingFBO,deviceRect=this._getPickingRect({deviceX:devicePixel[0],deviceY:devicePixel[1],deviceRadius:deviceRadius,deviceWidth:width,deviceHeight:height}),cullRect={x:x-radius,y:y-radius,width:2*radius+1,height:2*radius+1};let infos;const result=[],affectedLayers=new Set;for(let i=0;i=0){const pickedColor=pickedColors.slice(i,i+4),colorKey=pickedColor.join(",");if(!uniqueColors.has(colorKey)){const pickedObject=decodePickingColor(pickedColor);pickedObject?uniqueColors.set(colorKey,{...pickedObject,color:pickedColor}):log.Z.error("Picked non-existent layer. Is picking buffer corrupt?")()}}return Array.from(uniqueColors.values())}(this._drawAndSample({layers:pickableLayers,views:views,viewports:viewports,onViewportActive:onViewportActive,deviceRect:deviceRect,cullRect:{x:x,y:y,width:width,height:height},effects:effects,pass:"picking:".concat(mode)})),uniqueInfos=new Map,isMaxObjects=Number.isFinite(maxObjects);for(let i=0;i=maxObjects)break;const pickInfo=pickInfos[i];let info={color:pickInfo.pickedColor,layer:null,index:pickInfo.pickedObjectIndex,picked:!0,x:x,y:y,pixelRatio:pixelRatio};info=getLayerPickingInfo({layer:pickInfo.pickedLayer,info:info,mode:mode});const pickedObjectKey=null!==(_info$object=info.object)&&void 0!==_info$object?_info$object:"".concat(info.layer.id,"[").concat(info.index,"]");uniqueInfos.has(pickedObjectKey)||uniqueInfos.set(pickedObjectKey,info)}return Array.from(uniqueInfos.values())}_drawAndSample({layers:layers,views:views,viewports:viewports,onViewportActive:onViewportActive,deviceRect:deviceRect,cullRect:cullRect,effects:effects,pass:pass},pickZ=!1){const pickingFBO=pickZ?this.depthFBO:this.pickingFBO,opts={layers:layers,layerFilter:this.layerFilter,views:views,viewports:viewports,onViewportActive:onViewportActive,pickingFBO:pickingFBO,deviceRect:deviceRect,cullRect:cullRect,effects:effects,pass:pass,pickZ:pickZ,preRenderStats:{}};for(const effect of effects)effect.useInPicking&&(opts.preRenderStats[effect.id]=effect.preRender(this.gl,opts));const{decodePickingColor:decodePickingColor}=this.pickLayersPass.render(opts),{x:x,y:y,width:width,height:height}=deviceRect,pickedColors=new(pickZ?Float32Array:Uint8Array)(width*height*4);return(0,copy_and_blit.z6)(pickingFBO,{sourceX:x,sourceY:y,sourceWidth:width,sourceHeight:height,target:pickedColors}),{pickedColors:pickedColors,decodePickingColor:decodePickingColor}}_getPickingRect({deviceX:deviceX,deviceY:deviceY,deviceRadius:deviceRadius,deviceWidth:deviceWidth,deviceHeight:deviceHeight}){const x=Math.max(0,deviceX-deviceRadius),y=Math.max(0,deviceY-deviceRadius),width=Math.min(deviceWidth,deviceX+deviceRadius+1)-x,height=Math.min(deviceHeight,deviceY+deviceRadius+1)-y;return width<=0||height<=0?null:{x:x,y:y,width:width,height:height}}}const defaultStyle={zIndex:"1",position:"absolute",pointerEvents:"none",color:"#a0a7b4",backgroundColor:"#29323c",padding:"10px",top:"0",left:"0",display:"none"};class Tooltip{constructor(canvas){(0,defineProperty.Z)(this,"el",null),(0,defineProperty.Z)(this,"isVisible",!1);const canvasParent=canvas.parentElement;canvasParent&&(this.el=document.createElement("div"),this.el.className="deck-tooltip",Object.assign(this.el.style,defaultStyle),canvasParent.appendChild(this.el))}setTooltip(displayInfo,x,y){const el=this.el;if(el){if("string"==typeof displayInfo)el.innerText=displayInfo;else{if(!displayInfo)return this.isVisible=!1,void(el.style.display="none");displayInfo.text&&(el.innerText=displayInfo.text),displayInfo.html&&(el.innerHTML=displayInfo.html),displayInfo.className&&(el.className=displayInfo.className)}this.isVisible=!0,el.style.display="block",el.style.transform="translate(".concat(x,"px, ").concat(y,"px)"),displayInfo&&"object"==typeof displayInfo&&"style"in displayInfo&&Object.assign(el.style,displayInfo.style)}}remove(){this.el&&(this.el.remove(),this.el=null)}}var typed_array_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/typed-array-manager.js"),init=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/init.js"),get_browser=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/get-browser.js"),animation_loop=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/animation-loop.js"),animation_timeline=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/animation/timeline.js"),esm_init=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/init.js"),dist_esm=__webpack_require__("./node_modules/@probe.gl/stats/dist/esm/index.js"),hammer=__webpack_require__("./node_modules/hammerjs/hammer.js");const MOUSE_INPUT_MAP={mousedown:1,mousemove:2,mouseup:4};!function enhancePointerEventInput(PointerEventInput){const oldHandler=PointerEventInput.prototype.handler;PointerEventInput.prototype.handler=function handler(ev){const store=this.store;ev.button>0&&"pointerdown"===ev.type&&(function some(array,predict){for(let i=0;ie.pointerId===ev.pointerId))||store.push(ev)),oldHandler.call(this,ev)}}(hammer.PointerEventInput),function enhanceMouseInput(MouseInput){MouseInput.prototype.handler=function handler(ev){let eventType=MOUSE_INPUT_MAP[ev.type];1&eventType&&ev.button>=0&&(this.pressed=!0),2&eventType&&0===ev.which&&(eventType=4),this.pressed&&(4&eventType&&(this.pressed=!1),this.callback(this.manager,eventType,{pointers:[ev],changedPointers:[ev],pointerType:"mouse",srcEvent:ev}))}}(hammer.MouseInput);const Manager=hammer.Manager;var hammer_browser=hammer;class Input{constructor(element,callback,options){this.element=element,this.callback=callback,this.options={enable:!0,...options}}}const RECOGNIZERS=hammer_browser?[[hammer_browser.Pan,{event:"tripan",pointers:3,threshold:0,enable:!1}],[hammer_browser.Rotate,{enable:!1}],[hammer_browser.Pinch,{enable:!1}],[hammer_browser.Swipe,{enable:!1}],[hammer_browser.Pan,{threshold:0,enable:!1}],[hammer_browser.Press,{enable:!1}],[hammer_browser.Tap,{event:"doubletap",taps:2,enable:!1}],[hammer_browser.Tap,{event:"anytap",enable:!1}],[hammer_browser.Tap,{enable:!1}]]:null,RECOGNIZER_COMPATIBLE_MAP={tripan:["rotate","pinch","pan"],rotate:["pinch"],pinch:["pan"],pan:["press","doubletap","anytap","tap"],doubletap:["anytap"],anytap:["tap"]},RECOGNIZER_FALLBACK_MAP={doubletap:["tap"]},BASIC_EVENT_ALIASES={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},INPUT_EVENT_TYPES={KEY_EVENTS:["keydown","keyup"],MOUSE_EVENTS:["mousedown","mousemove","mouseup","mouseover","mouseout","mouseleave"],WHEEL_EVENTS:["wheel","mousewheel"]},EVENT_RECOGNIZER_MAP={tap:"tap",anytap:"anytap",doubletap:"doubletap",press:"press",pinch:"pinch",pinchin:"pinch",pinchout:"pinch",pinchstart:"pinch",pinchmove:"pinch",pinchend:"pinch",pinchcancel:"pinch",rotate:"rotate",rotatestart:"rotate",rotatemove:"rotate",rotateend:"rotate",rotatecancel:"rotate",tripan:"tripan",tripanstart:"tripan",tripanmove:"tripan",tripanup:"tripan",tripandown:"tripan",tripanleft:"tripan",tripanright:"tripan",tripanend:"tripan",tripancancel:"tripan",pan:"pan",panstart:"pan",panmove:"pan",panup:"pan",pandown:"pan",panleft:"pan",panright:"pan",panend:"pan",pancancel:"pan",swipe:"swipe",swipeleft:"swipe",swiperight:"swipe",swipeup:"swipe",swipedown:"swipe"},GESTURE_EVENT_ALIASES={click:"tap",anyclick:"anytap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseover:"pointerover",mouseout:"pointerout",mouseleave:"pointerleave"},userAgent="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",window_="undefined"!=typeof window?window:__webpack_require__.g;void 0!==__webpack_require__.g?__webpack_require__.g:window,"undefined"!=typeof document&&document;let passiveSupported=!1;try{const options={get passive(){return passiveSupported=!0,!0}};window_.addEventListener("test",null,options),window_.removeEventListener("test",null)}catch(err){passiveSupported=!1}const firefox=-1!==userAgent.indexOf("firefox"),{WHEEL_EVENTS:WHEEL_EVENTS}=INPUT_EVENT_TYPES;class WheelInput extends Input{constructor(element,callback,options){super(element,callback,options),this.handleEvent=event=>{if(!this.options.enable)return;let value=event.deltaY;window_.WheelEvent&&(firefox&&event.deltaMode===window_.WheelEvent.DOM_DELTA_PIXEL&&(value/=window_.devicePixelRatio),event.deltaMode===window_.WheelEvent.DOM_DELTA_LINE&&(value*=40)),0!==value&&value%4.000244140625==0&&(value=Math.floor(value/4.000244140625)),event.shiftKey&&value&&(value*=.25),this.callback({type:"wheel",center:{x:event.clientX,y:event.clientY},delta:-value,srcEvent:event,pointerType:"mouse",target:event.target})},this.events=(this.options.events||[]).concat(WHEEL_EVENTS),this.events.forEach((event=>element.addEventListener(event,this.handleEvent,!!passiveSupported&&{passive:!1})))}destroy(){this.events.forEach((event=>this.element.removeEventListener(event,this.handleEvent)))}enableEventType(eventType,enabled){"wheel"===eventType&&(this.options.enable=enabled)}}const{MOUSE_EVENTS:MOUSE_EVENTS}=INPUT_EVENT_TYPES;class MoveInput extends Input{constructor(element,callback,options){super(element,callback,options),this.handleEvent=event=>{this.handleOverEvent(event),this.handleOutEvent(event),this.handleEnterEvent(event),this.handleLeaveEvent(event),this.handleMoveEvent(event)},this.pressed=!1;const{enable:enable}=this.options;this.enableMoveEvent=enable,this.enableLeaveEvent=enable,this.enableEnterEvent=enable,this.enableOutEvent=enable,this.enableOverEvent=enable,this.events=(this.options.events||[]).concat(MOUSE_EVENTS),this.events.forEach((event=>element.addEventListener(event,this.handleEvent)))}destroy(){this.events.forEach((event=>this.element.removeEventListener(event,this.handleEvent)))}enableEventType(eventType,enabled){"pointermove"===eventType&&(this.enableMoveEvent=enabled),"pointerover"===eventType&&(this.enableOverEvent=enabled),"pointerout"===eventType&&(this.enableOutEvent=enabled),"pointerenter"===eventType&&(this.enableEnterEvent=enabled),"pointerleave"===eventType&&(this.enableLeaveEvent=enabled)}handleOverEvent(event){this.enableOverEvent&&"mouseover"===event.type&&this._emit("pointerover",event)}handleOutEvent(event){this.enableOutEvent&&"mouseout"===event.type&&this._emit("pointerout",event)}handleEnterEvent(event){this.enableEnterEvent&&"mouseenter"===event.type&&this._emit("pointerenter",event)}handleLeaveEvent(event){this.enableLeaveEvent&&"mouseleave"===event.type&&this._emit("pointerleave",event)}handleMoveEvent(event){if(this.enableMoveEvent)switch(event.type){case"mousedown":event.button>=0&&(this.pressed=!0);break;case"mousemove":0===event.which&&(this.pressed=!1),this.pressed||this._emit("pointermove",event);break;case"mouseup":this.pressed=!1}}_emit(type,event){this.callback({type:type,center:{x:event.clientX,y:event.clientY},srcEvent:event,pointerType:"mouse",target:event.target})}}const{KEY_EVENTS:KEY_EVENTS}=INPUT_EVENT_TYPES;class KeyInput extends Input{constructor(element,callback,options){super(element,callback,options),this.handleEvent=event=>{const targetElement=event.target||event.srcElement;"INPUT"===targetElement.tagName&&"text"===targetElement.type||"TEXTAREA"===targetElement.tagName||(this.enableDownEvent&&"keydown"===event.type&&this.callback({type:"keydown",srcEvent:event,key:event.key,target:event.target}),this.enableUpEvent&&"keyup"===event.type&&this.callback({type:"keyup",srcEvent:event,key:event.key,target:event.target}))},this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=(this.options.events||[]).concat(KEY_EVENTS),element.tabIndex=this.options.tabIndex||0,element.style.outline="none",this.events.forEach((event=>element.addEventListener(event,this.handleEvent)))}destroy(){this.events.forEach((event=>this.element.removeEventListener(event,this.handleEvent)))}enableEventType(eventType,enabled){"keydown"===eventType&&(this.enableDownEvent=enabled),"keyup"===eventType&&(this.enableUpEvent=enabled)}}class ContextmenuInput extends Input{constructor(element,callback,options){super(element,callback,options),this.handleEvent=event=>{this.options.enable&&this.callback({type:"contextmenu",center:{x:event.clientX,y:event.clientY},srcEvent:event,pointerType:"mouse",target:event.target})},element.addEventListener("contextmenu",this.handleEvent)}destroy(){this.element.removeEventListener("contextmenu",this.handleEvent)}enableEventType(eventType,enabled){"contextmenu"===eventType&&(this.options.enable=enabled)}}const event_utils_MOUSE_EVENTS={pointerdown:1,pointermove:2,pointerup:4,mousedown:1,mousemove:2,mouseup:4};function whichButtons(event){const eventType=event_utils_MOUSE_EVENTS[event.srcEvent.type];if(!eventType)return null;const{buttons:buttons,button:button,which:which}=event.srcEvent;let leftButton=!1,middleButton=!1,rightButton=!1;return 4===eventType||2===eventType&&!Number.isFinite(buttons)?(leftButton=1===which,middleButton=2===which,rightButton=3===which):2===eventType?(leftButton=Boolean(1&buttons),middleButton=Boolean(4&buttons),rightButton=Boolean(2&buttons)):1===eventType&&(leftButton=0===button,middleButton=1===button,rightButton=2===button),{leftButton:leftButton,middleButton:middleButton,rightButton:rightButton}}function getOffsetPosition(event,rootElement){const center=event.center;if(!center)return null;const rect=rootElement.getBoundingClientRect(),scaleX=rect.width/rootElement.offsetWidth||1,scaleY=rect.height/rootElement.offsetHeight||1;return{center:center,offsetCenter:{x:(center.x-rect.left-rootElement.clientLeft)/scaleX,y:(center.y-rect.top-rootElement.clientTop)/scaleY}}}const DEFAULT_OPTIONS={srcElement:"root",priority:0};class EventRegistrar{constructor(eventManager){this.handleEvent=event=>{if(this.isEmpty())return;const mjolnirEvent=this._normalizeEvent(event);let target=event.srcEvent.target;for(;target&&target!==mjolnirEvent.rootElement;){if(this._emit(mjolnirEvent,target),mjolnirEvent.handled)return;target=target.parentNode}this._emit(mjolnirEvent,"root")},this.eventManager=eventManager,this.handlers=[],this.handlersByElement=new Map,this._active=!1}isEmpty(){return!this._active}add(type,handler,options,once=!1,passive=!1){const{handlers:handlers,handlersByElement:handlersByElement}=this;let opts=DEFAULT_OPTIONS;"string"==typeof options||options&&options.addEventListener?opts={...DEFAULT_OPTIONS,srcElement:options}:options&&(opts={...DEFAULT_OPTIONS,...options});let entries=handlersByElement.get(opts.srcElement);entries||(entries=[],handlersByElement.set(opts.srcElement,entries));const entry={type:type,handler:handler,srcElement:opts.srcElement,priority:opts.priority};once&&(entry.once=!0),passive&&(entry.passive=!0),handlers.push(entry),this._active=this._active||!entry.passive;let insertPosition=entries.length-1;for(;insertPosition>=0&&!(entries[insertPosition].priority>=entry.priority);)insertPosition--;entries.splice(insertPosition+1,0,entry)}remove(type,handler){const{handlers:handlers,handlersByElement:handlersByElement}=this;for(let i=handlers.length-1;i>=0;i--){const entry=handlers[i];if(entry.type===type&&entry.handler===handler){handlers.splice(i,1);const entries=handlersByElement.get(entry.srcElement);entries.splice(entries.indexOf(entry),1),0===entries.length&&handlersByElement.delete(entry.srcElement)}}this._active=handlers.some((entry=>!entry.passive))}_emit(event,srcElement){const entries=this.handlersByElement.get(srcElement);if(entries){let immediatePropagationStopped=!1;const stopPropagation=()=>{event.handled=!0},stopImmediatePropagation=()=>{event.handled=!0,immediatePropagationStopped=!0},entriesToRemove=[];for(let i=0;i{event.srcEvent.preventDefault()},stopImmediatePropagation:null,stopPropagation:null,handled:!1,rootElement:rootElement}}}const event_manager_DEFAULT_OPTIONS={events:null,recognizers:null,recognizerOptions:{},Manager:Manager,touchAction:"none",tabIndex:0};class EventManager{constructor(element=null,options){this._onBasicInput=event=>{const{srcEvent:srcEvent}=event,alias=BASIC_EVENT_ALIASES[srcEvent.type];alias&&this.manager.emit(alias,event)},this._onOtherEvent=event=>{this.manager.emit(event.type,event)},this.options={...event_manager_DEFAULT_OPTIONS,...options},this.events=new Map,this.setElement(element);const{events:events}=this.options;events&&this.on(events)}getElement(){return this.element}setElement(element){if(this.element&&this.destroy(),this.element=element,!element)return;const{options:options}=this,ManagerClass=options.Manager;this.manager=new ManagerClass(element,{touchAction:options.touchAction,recognizers:options.recognizers||RECOGNIZERS}).on("hammer.input",this._onBasicInput),options.recognizers||Object.keys(RECOGNIZER_COMPATIBLE_MAP).forEach((name=>{const recognizer=this.manager.get(name);recognizer&&RECOGNIZER_COMPATIBLE_MAP[name].forEach((otherName=>{recognizer.recognizeWith(otherName)}))}));for(const recognizerName in options.recognizerOptions){const recognizer=this.manager.get(recognizerName);if(recognizer){const recognizerOption=options.recognizerOptions[recognizerName];delete recognizerOption.enable,recognizer.set(recognizerOption)}}this.wheelInput=new WheelInput(element,this._onOtherEvent,{enable:!1}),this.moveInput=new MoveInput(element,this._onOtherEvent,{enable:!1}),this.keyInput=new KeyInput(element,this._onOtherEvent,{enable:!1,tabIndex:options.tabIndex}),this.contextmenuInput=new ContextmenuInput(element,this._onOtherEvent,{enable:!1});for(const[eventAlias,eventRegistrar]of this.events)eventRegistrar.isEmpty()||(this._toggleRecognizer(eventRegistrar.recognizerName,!0),this.manager.on(eventAlias,eventRegistrar.handleEvent))}destroy(){this.element&&(this.wheelInput.destroy(),this.moveInput.destroy(),this.keyInput.destroy(),this.contextmenuInput.destroy(),this.manager.destroy(),this.wheelInput=null,this.moveInput=null,this.keyInput=null,this.contextmenuInput=null,this.manager=null,this.element=null)}on(event,handler,opts){this._addEventHandler(event,handler,opts,!1)}once(event,handler,opts){this._addEventHandler(event,handler,opts,!0)}watch(event,handler,opts){this._addEventHandler(event,handler,opts,!1,!0)}off(event,handler){this._removeEventHandler(event,handler)}_toggleRecognizer(name,enabled){const{manager:manager}=this;if(!manager)return;const recognizer=manager.get(name);if(recognizer&&recognizer.options.enable!==enabled){recognizer.set({enable:enabled});const fallbackRecognizers=RECOGNIZER_FALLBACK_MAP[name];fallbackRecognizers&&!this.options.recognizers&&fallbackRecognizers.forEach((otherName=>{const otherRecognizer=manager.get(otherName);enabled?(otherRecognizer.requireFailure(name),recognizer.dropRequireFailure(otherName)):otherRecognizer.dropRequireFailure(name)}))}this.wheelInput.enableEventType(name,enabled),this.moveInput.enableEventType(name,enabled),this.keyInput.enableEventType(name,enabled),this.contextmenuInput.enableEventType(name,enabled)}_addEventHandler(event,handler,opts,once,passive){if("string"!=typeof event){opts=handler;for(const eventName in event)this._addEventHandler(eventName,event[eventName],opts,once,passive);return}const{manager:manager,events:events}=this,eventAlias=GESTURE_EVENT_ALIASES[event]||event;let eventRegistrar=events.get(eventAlias);eventRegistrar||(eventRegistrar=new EventRegistrar(this),events.set(eventAlias,eventRegistrar),eventRegistrar.recognizerName=EVENT_RECOGNIZER_MAP[eventAlias]||eventAlias,manager&&manager.on(eventAlias,eventRegistrar.handleEvent)),eventRegistrar.add(event,handler,opts,once,passive),eventRegistrar.isEmpty()||this._toggleRecognizer(eventRegistrar.recognizerName,!0)}_removeEventHandler(event,handler){if("string"!=typeof event){for(const eventName in event)this._removeEventHandler(eventName,event[eventName]);return}const{events:events}=this,eventAlias=GESTURE_EVENT_ALIASES[event]||event,eventRegistrar=events.get(eventAlias);if(eventRegistrar&&(eventRegistrar.remove(event,handler),eventRegistrar.isEmpty())){const{recognizerName:recognizerName}=eventRegistrar;let isRecognizerUsed=!1;for(const eh of events.values())if(eh.recognizerName===recognizerName&&!eh.isEmpty()){isRecognizerUsed=!0;break}isRecognizerUsed||this._toggleRecognizer(recognizerName,!1)}}}var assert=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");function noop(){}const defaultProps={id:"",width:"100%",height:"100%",style:null,viewState:null,initialViewState:null,pickingRadius:0,layerFilter:null,glOptions:{},parameters:{},parent:null,gl:null,canvas:null,layers:[],effects:[],views:null,controller:null,useDevicePixels:!0,touchAction:"none",eventRecognizerOptions:{},_framebuffer:null,_animate:!1,_pickable:!0,_typedArrayManagerProps:{},_customRender:null,onWebGLInitialized:noop,onResize:noop,onViewStateChange:noop,onInteractionStateChange:noop,onBeforeRender:noop,onAfterRender:noop,onLoad:noop,onError:error=>log.Z.error(error.message,error.cause)(),onHover:null,onClick:null,onDragStart:null,onDrag:null,onDragEnd:null,_onMetrics:null,getCursor:({isDragging:isDragging})=>isDragging?"grabbing":"grab",getTooltip:null,debug:!1,drawPickingColors:!1};class Deck{constructor(props){(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"width",0),(0,defineProperty.Z)(this,"height",0),(0,defineProperty.Z)(this,"userData",{}),(0,defineProperty.Z)(this,"canvas",null),(0,defineProperty.Z)(this,"viewManager",null),(0,defineProperty.Z)(this,"layerManager",null),(0,defineProperty.Z)(this,"effectManager",null),(0,defineProperty.Z)(this,"deckRenderer",null),(0,defineProperty.Z)(this,"deckPicker",null),(0,defineProperty.Z)(this,"eventManager",null),(0,defineProperty.Z)(this,"tooltip",null),(0,defineProperty.Z)(this,"metrics",void 0),(0,defineProperty.Z)(this,"animationLoop",void 0),(0,defineProperty.Z)(this,"stats",void 0),(0,defineProperty.Z)(this,"viewState",void 0),(0,defineProperty.Z)(this,"cursorState",void 0),(0,defineProperty.Z)(this,"_needsRedraw",void 0),(0,defineProperty.Z)(this,"_pickRequest",void 0),(0,defineProperty.Z)(this,"_lastPointerDownInfo",null),(0,defineProperty.Z)(this,"_metricsCounter",void 0),(0,defineProperty.Z)(this,"_onPointerMove",(event=>{const{_pickRequest:_pickRequest}=this;if("pointerleave"===event.type)_pickRequest.x=-1,_pickRequest.y=-1,_pickRequest.radius=0;else{if(event.leftButton||event.rightButton)return;{const pos=event.offsetCenter;if(!pos)return;_pickRequest.x=pos.x,_pickRequest.y=pos.y,_pickRequest.radius=this.props.pickingRadius}}this.layerManager&&(this.layerManager.context.mousePosition={x:_pickRequest.x,y:_pickRequest.y}),_pickRequest.event=event})),(0,defineProperty.Z)(this,"_onEvent",(event=>{const eventOptions=constants.FP[event.type],pos=event.offsetCenter;if(!eventOptions||!pos||!this.layerManager)return;const layers=this.layerManager.getLayers(),info=this.deckPicker.getLastPickedObject({x:pos.x,y:pos.y,layers:layers,viewports:this.getViewports(pos)},this._lastPointerDownInfo),{layer:layer}=info,layerHandler=layer&&(layer[eventOptions.handler]||layer.props[eventOptions.handler]),rootHandler=this.props[eventOptions.handler];let handled=!1;layerHandler&&(handled=layerHandler.call(layer,info,event)),!handled&&rootHandler&&rootHandler(info,event)})),(0,defineProperty.Z)(this,"_onPointerDown",(event=>{const pos=event.offsetCenter,pickedInfo=this._pick("pickObject","pickObject Time",{x:pos.x,y:pos.y,radius:this.props.pickingRadius});this._lastPointerDownInfo=pickedInfo.result[0]||pickedInfo.emptyInfo})),this.props={...defaultProps,...props},props=this.props,this._needsRedraw="Initial render",this._pickRequest={mode:"hover",x:-1,y:-1,radius:0,event:null},this.cursorState={isHovering:!1,isDragging:!1},props.viewState&&props.initialViewState&&log.Z.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")(),"IE"===(0,get_browser.Z)()&&log.Z.warn("IE 11 is not supported")(),this.viewState=props.initialViewState,props.gl||"undefined"!=typeof document&&(this.canvas=this._createCanvas(props)),this.animationLoop=this._createAnimationLoop(props),this.stats=new dist_esm.jk({id:"deck.gl"}),this.metrics={fps:0,setPropsTime:0,updateAttributesTime:0,framesRedrawn:0,pickTime:0,pickCount:0,gpuTime:0,gpuTimePerFrame:0,cpuTime:0,cpuTimePerFrame:0,bufferMemory:0,textureMemory:0,renderbufferMemory:0,gpuMemory:0},this._metricsCounter=0,this.setProps(props),props._typedArrayManagerProps&&typed_array_manager.Z.setOptions(props._typedArrayManagerProps),this.animationLoop.start()}finalize(){var _this$animationLoop,_this$layerManager,_this$viewManager,_this$effectManager,_this$deckRenderer,_this$deckPicker,_this$eventManager,_this$tooltip,_this$canvas$parentEl;(null===(_this$animationLoop=this.animationLoop)||void 0===_this$animationLoop||_this$animationLoop.stop(),this.animationLoop=null,this._lastPointerDownInfo=null,null===(_this$layerManager=this.layerManager)||void 0===_this$layerManager||_this$layerManager.finalize(),this.layerManager=null,null===(_this$viewManager=this.viewManager)||void 0===_this$viewManager||_this$viewManager.finalize(),this.viewManager=null,null===(_this$effectManager=this.effectManager)||void 0===_this$effectManager||_this$effectManager.finalize(),this.effectManager=null,null===(_this$deckRenderer=this.deckRenderer)||void 0===_this$deckRenderer||_this$deckRenderer.finalize(),this.deckRenderer=null,null===(_this$deckPicker=this.deckPicker)||void 0===_this$deckPicker||_this$deckPicker.finalize(),this.deckPicker=null,null===(_this$eventManager=this.eventManager)||void 0===_this$eventManager||_this$eventManager.destroy(),this.eventManager=null,null===(_this$tooltip=this.tooltip)||void 0===_this$tooltip||_this$tooltip.remove(),this.tooltip=null,this.props.canvas||this.props.gl||!this.canvas)||(null===(_this$canvas$parentEl=this.canvas.parentElement)||void 0===_this$canvas$parentEl||_this$canvas$parentEl.removeChild(this.canvas),this.canvas=null)}setProps(props){this.stats.get("setProps Time").timeStart(),"onLayerHover"in props&&log.Z.removed("onLayerHover","onHover")(),"onLayerClick"in props&&log.Z.removed("onLayerClick","onClick")(),props.initialViewState&&!(0,deep_equal.v)(this.props.initialViewState,props.initialViewState,3)&&(this.viewState=props.initialViewState),Object.assign(this.props,props),this._setCanvasSize(this.props);const resolvedProps=Object.create(this.props);Object.assign(resolvedProps,{views:this._getViews(),width:this.width,height:this.height,viewState:this._getViewState()}),this.animationLoop.setProps(resolvedProps),this.layerManager&&(this.viewManager.setProps(resolvedProps),this.layerManager.activateViewport(this.getViewports()[0]),this.layerManager.setProps(resolvedProps),this.effectManager.setProps(resolvedProps),this.deckRenderer.setProps(resolvedProps),this.deckPicker.setProps(resolvedProps)),this.stats.get("setProps Time").timeEnd()}needsRedraw(opts={clearRedrawFlags:!1}){if(!this.layerManager)return!1;if(this.props._animate)return"Deck._animate";let redraw=this._needsRedraw;opts.clearRedrawFlags&&(this._needsRedraw=!1);const viewManagerNeedsRedraw=this.viewManager.needsRedraw(opts),layerManagerNeedsRedraw=this.layerManager.needsRedraw(opts),effectManagerNeedsRedraw=this.effectManager.needsRedraw(opts),deckRendererNeedsRedraw=this.deckRenderer.needsRedraw(opts);return redraw=redraw||viewManagerNeedsRedraw||layerManagerNeedsRedraw||effectManagerNeedsRedraw||deckRendererNeedsRedraw,redraw}redraw(reason){if(!this.layerManager)return;let redrawReason=this.needsRedraw({clearRedrawFlags:!0});redrawReason=reason||redrawReason,redrawReason&&(this.stats.get("Redraw Count").incrementCount(),this.props._customRender?this.props._customRender(redrawReason):this._drawLayers(redrawReason))}get isInitialized(){return null!==this.viewManager}getViews(){return(0,assert.Z)(this.viewManager),this.viewManager.views}getViewports(rect){return(0,assert.Z)(this.viewManager),this.viewManager.getViewports(rect)}getCanvas(){return this.canvas}pickObject(opts){const infos=this._pick("pickObject","pickObject Time",opts).result;return infos.length?infos[0]:null}pickMultipleObjects(opts){return opts.depth=opts.depth||10,this._pick("pickObject","pickMultipleObjects Time",opts).result}pickObjects(opts){return this._pick("pickObjects","pickObjects Time",opts)}_addResources(resources,forceUpdate=!1){for(const id in resources)this.layerManager.resourceManager.add({resourceId:id,data:resources[id],forceUpdate:forceUpdate})}_removeResources(resourceIds){for(const id of resourceIds)this.layerManager.resourceManager.remove(id)}_addDefaultEffect(effect){this.effectManager.addDefaultEffect(effect)}_pick(method,statKey,opts){(0,assert.Z)(this.deckPicker);const{stats:stats}=this;stats.get("Pick Count").incrementCount(),stats.get(statKey).timeStart();const infos=this.deckPicker[method]({layers:this.layerManager.getLayers(opts),views:this.viewManager.getViews(),viewports:this.getViewports(opts),onViewportActive:this.layerManager.activateViewport,effects:this.effectManager.getEffects(),...opts});return stats.get(statKey).timeEnd(),infos}_createCanvas(props){let canvas=props.canvas;if("string"==typeof canvas&&(canvas=document.getElementById(canvas),(0,assert.Z)(canvas)),!canvas){canvas=document.createElement("canvas"),canvas.id=props.id||"deckgl-overlay";(props.parent||document.body).appendChild(canvas)}return Object.assign(canvas.style,props.style),canvas}_setCanvasSize(props){if(!this.canvas)return;const{width:width,height:height}=props;if(width||0===width){const cssWidth=Number.isFinite(width)?"".concat(width,"px"):width;this.canvas.style.width=cssWidth}if(height||0===height){var _props$style;const cssHeight=Number.isFinite(height)?"".concat(height,"px"):height;this.canvas.style.position=(null===(_props$style=props.style)||void 0===_props$style?void 0:_props$style.position)||"absolute",this.canvas.style.height=cssHeight}}_updateCanvasSize(){var _canvas$clientWidth,_canvas$clientHeight;const{canvas:canvas}=this;if(!canvas)return;const newWidth=null!==(_canvas$clientWidth=canvas.clientWidth)&&void 0!==_canvas$clientWidth?_canvas$clientWidth:canvas.width,newHeight=null!==(_canvas$clientHeight=canvas.clientHeight)&&void 0!==_canvas$clientHeight?_canvas$clientHeight:canvas.height;var _this$viewManager2,_this$layerManager2;newWidth===this.width&&newHeight===this.height||(this.width=newWidth,this.height=newHeight,null===(_this$viewManager2=this.viewManager)||void 0===_this$viewManager2||_this$viewManager2.setProps({width:newWidth,height:newHeight}),null===(_this$layerManager2=this.layerManager)||void 0===_this$layerManager2||_this$layerManager2.activateViewport(this.getViewports()[0]),this.props.onResize({width:newWidth,height:newHeight}))}_createAnimationLoop(props){const{width:width,height:height,gl:gl,glOptions:glOptions,debug:debug,onError:onError,onBeforeRender:onBeforeRender,onAfterRender:onAfterRender,useDevicePixels:useDevicePixels}=props;return new animation_loop.Z({width:width,height:height,useDevicePixels:useDevicePixels,autoResizeDrawingBuffer:!gl,autoResizeViewport:!1,gl:gl,onCreateContext:opts=>(0,esm.s9)({...glOptions,...opts,canvas:this.canvas,debug:debug,onContextLost:()=>this._onContextLost()}),onInitialize:context=>this._setGLContext(context.gl),onRender:this._onRenderFrame.bind(this),onBeforeRender:onBeforeRender,onAfterRender:onAfterRender,onError:onError})}_getViewState(){return this.props.viewState||this.viewState}_getViews(){let views=this.props.views||[new map_view.Z({id:"default-view"})];return views=Array.isArray(views)?views:[views],views.length&&this.props.controller&&(views[0].props.controller=this.props.controller),views}_onContextLost(){const{onError:onError}=this.props;this.animationLoop&&onError&&onError(new Error("WebGL context is lost"))}_pickAndCallback(){const{_pickRequest:_pickRequest}=this;if(_pickRequest.event){const{result:result,emptyInfo:emptyInfo}=this._pick("pickObject","pickObject Time",_pickRequest);this.cursorState.isHovering=result.length>0;let pickedInfo=emptyInfo,handled=!1;for(const info of result){var _info$layer;pickedInfo=info,handled=(null===(_info$layer=info.layer)||void 0===_info$layer?void 0:_info$layer.onHover(info,_pickRequest.event))||handled}if(!handled&&this.props.onHover&&this.props.onHover(pickedInfo,_pickRequest.event),this.props.getTooltip&&this.tooltip){const displayInfo=this.props.getTooltip(pickedInfo);this.tooltip.setTooltip(displayInfo,pickedInfo.x,pickedInfo.y)}_pickRequest.event=null}}_updateCursor(){const container=this.props.parent||this.canvas;container&&(container.style.cursor=this.props.getCursor(this.cursorState))}_setGLContext(gl){if(this.layerManager)return;this.canvas||(this.canvas=gl.canvas,(0,esm.yW)(gl,{enable:!0,copyState:!0})),this.tooltip=new Tooltip(this.canvas),(0,esm.dR)(gl,{blend:!0,blendFunc:[770,771,1,771],polygonOffsetFill:!0,depthTest:!0,depthFunc:515}),this.props.onWebGLInitialized(gl);const timeline=new animation_timeline.T;timeline.play(),this.animationLoop.attachTimeline(timeline),this.eventManager=new EventManager(this.props.parent||gl.canvas,{touchAction:this.props.touchAction,recognizerOptions:this.props.eventRecognizerOptions,events:{pointerdown:this._onPointerDown,pointermove:this._onPointerMove,pointerleave:this._onPointerMove}});for(const eventType in constants.FP)this.eventManager.on(eventType,this._onEvent);this.viewManager=new ViewManager({timeline:timeline,eventManager:this.eventManager,onViewStateChange:this._onViewStateChange.bind(this),onInteractionStateChange:this._onInteractionStateChange.bind(this),views:this._getViews(),viewState:this._getViewState(),width:this.width,height:this.height});const viewport=this.viewManager.getViewports()[0];this.layerManager=new layer_manager.Z(gl,{deck:this,stats:this.stats,viewport:viewport,timeline:timeline}),this.effectManager=new EffectManager,this.deckRenderer=new deck_renderer.Z(gl),this.deckPicker=new DeckPicker(gl),this.setProps(this.props),this._updateCanvasSize(),this.props.onLoad()}_drawLayers(redrawReason,renderOptions){const{gl:gl}=this.layerManager.context;(0,esm.dR)(gl,this.props.parameters),this.props.onBeforeRender({gl:gl}),this.deckRenderer.renderLayers({target:this.props._framebuffer,layers:this.layerManager.getLayers(),viewports:this.viewManager.getViewports(),onViewportActive:this.layerManager.activateViewport,views:this.viewManager.getViews(),pass:"screen",effects:this.effectManager.getEffects(),...renderOptions}),this.props.onAfterRender({gl:gl})}_onRenderFrame(animationProps){this._getFrameStats(),this._metricsCounter++%60==0&&(this._getMetrics(),this.stats.reset(),log.Z.table(4,this.metrics)(),this.props._onMetrics&&this.props._onMetrics(this.metrics)),this._updateCanvasSize(),this._updateCursor(),this.tooltip.isVisible&&this.viewManager.needsRedraw()&&this.tooltip.setTooltip(null),this.layerManager.updateLayers(),this._pickAndCallback(),this.redraw(),this.viewManager&&this.viewManager.updateViewStates()}_onViewStateChange(params){const viewState=this.props.onViewStateChange(params)||params.viewState;this.viewState&&(this.viewState={...this.viewState,[params.viewId]:viewState},this.props.viewState||this.viewManager&&this.viewManager.setProps({viewState:this.viewState}))}_onInteractionStateChange(interactionState){this.cursorState.isDragging=interactionState.isDragging||!1,this.props.onInteractionStateChange(interactionState)}_getFrameStats(){const{stats:stats}=this;stats.get("frameRate").timeEnd(),stats.get("frameRate").timeStart();const animationLoopStats=this.animationLoop.stats;stats.get("GPU Time").addTime(animationLoopStats.get("GPU Time").lastTiming),stats.get("CPU Time").addTime(animationLoopStats.get("CPU Time").lastTiming)}_getMetrics(){const{metrics:metrics,stats:stats}=this;metrics.fps=stats.get("frameRate").getHz(),metrics.setPropsTime=stats.get("setProps Time").time,metrics.updateAttributesTime=stats.get("Update Attributes").time,metrics.framesRedrawn=stats.get("Redraw Count").count,metrics.pickTime=stats.get("pickObject Time").time+stats.get("pickMultipleObjects Time").time+stats.get("pickObjects Time").time,metrics.pickCount=stats.get("Pick Count").count,metrics.gpuTime=stats.get("GPU Time").time,metrics.cpuTime=stats.get("CPU Time").time,metrics.gpuTimePerFrame=stats.get("GPU Time").getAverageTime(),metrics.cpuTimePerFrame=stats.get("CPU Time").getAverageTime();const memoryStats=esm_init.lR.get("Memory Usage");metrics.bufferMemory=memoryStats.get("Buffer Memory").count,metrics.textureMemory=memoryStats.get("Texture Memory").count,metrics.renderbufferMemory=memoryStats.get("Renderbuffer Memory").count,metrics.gpuMemory=memoryStats.get("GPU Memory").count}}(0,defineProperty.Z)(Deck,"defaultProps",defaultProps),(0,defineProperty.Z)(Deck,"VERSION",init.q)},"./node_modules/@deck.gl/core/dist/esm/lib/init.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return VERSION}});var register_loaders=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/register-loaders.js"),image_loader=__webpack_require__("./node_modules/@loaders.gl/images/dist/esm/image-loader.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),debug=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/debug/index.js");var json_loader={id:"JSON",name:"JSON",module:"",version:"",options:{},extensions:["json","geojson"],mimeTypes:["application/json","application/geo+json"],testText:function isJSON(text){const firstChar=text[0],lastChar=text[text.length-1];return"{"===firstChar&&"}"===lastChar||"["===firstChar&&"]"===lastChar},parseTextSync:JSON.parse};const VERSION=function checkVersion(){const existingVersion=globalThis.deck&&globalThis.deck.VERSION;if(existingVersion&&"8.9.35"!==existingVersion)throw new Error("deck.gl - multiple versions detected: ".concat(existingVersion," vs ").concat("8.9.35"));return existingVersion||(log.Z.log(1,"deck.gl ".concat("8.9.35"))(),globalThis.deck={...globalThis.deck,VERSION:"8.9.35",version:"8.9.35",log:log.Z,_registerLoggers:debug.z},(0,register_loaders.fh)([json_loader,[image_loader.S,{imagebitmap:{premultiplyAlpha:"none"}}]])),"8.9.35"}()},"./node_modules/@deck.gl/core/dist/esm/lib/layer-manager.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return LayerManager}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),animation_timeline=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/animation/timeline.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/constants.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),debug=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/debug/index.js"),flatten=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/flatten.js"),esm=__webpack_require__("./node_modules/@probe.gl/stats/dist/esm/index.js"),load=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js");class Resource{constructor(id,data,context){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"context",void 0),(0,defineProperty.Z)(this,"isLoaded",void 0),(0,defineProperty.Z)(this,"persistent",void 0),(0,defineProperty.Z)(this,"_loadCount",0),(0,defineProperty.Z)(this,"_subscribers",new Set),(0,defineProperty.Z)(this,"_data",void 0),(0,defineProperty.Z)(this,"_loader",void 0),(0,defineProperty.Z)(this,"_error",void 0),(0,defineProperty.Z)(this,"_content",void 0),this.id=id,this.context=context,this.setData(data)}subscribe(consumer){this._subscribers.add(consumer)}unsubscribe(consumer){this._subscribers.delete(consumer)}inUse(){return this._subscribers.size>0}delete(){}getData(){return this.isLoaded?this._error?Promise.reject(this._error):this._content:this._loader.then((()=>this.getData()))}setData(data,forceUpdate){if(data===this._data&&!forceUpdate)return;this._data=data;const loadCount=++this._loadCount;let loader=data;"string"==typeof data&&(loader=(0,load.z)(data)),loader instanceof Promise?(this.isLoaded=!1,this._loader=loader.then((result=>{this._loadCount===loadCount&&(this.isLoaded=!0,this._error=void 0,this._content=result)})).catch((error=>{this._loadCount===loadCount&&(this.isLoaded=!0,this._error=error||!0)}))):(this.isLoaded=!0,this._error=void 0,this._content=data);for(const subscriber of this._subscribers)subscriber.onChange(this.getData())}}class ResourceManager{constructor({gl:gl,protocol:protocol}){(0,defineProperty.Z)(this,"protocol",void 0),(0,defineProperty.Z)(this,"_context",void 0),(0,defineProperty.Z)(this,"_resources",void 0),(0,defineProperty.Z)(this,"_consumers",void 0),(0,defineProperty.Z)(this,"_pruneRequest",void 0),this.protocol=protocol||"resource://",this._context={gl:gl,resourceManager:this},this._resources={},this._consumers={},this._pruneRequest=null}contains(resourceId){return!!resourceId.startsWith(this.protocol)||resourceId in this._resources}add({resourceId:resourceId,data:data,forceUpdate:forceUpdate=!1,persistent:persistent=!0}){let res=this._resources[resourceId];res?res.setData(data,forceUpdate):(res=new Resource(resourceId,data,this._context),this._resources[resourceId]=res),res.persistent=persistent}remove(resourceId){const res=this._resources[resourceId];res&&(res.delete(),delete this._resources[resourceId])}unsubscribe({consumerId:consumerId}){const consumer=this._consumers[consumerId];if(consumer){for(const requestId in consumer){const request=consumer[requestId],resource=this._resources[request.resourceId];resource&&resource.unsubscribe(request)}delete this._consumers[consumerId],this.prune()}}subscribe({resourceId:resourceId,onChange:onChange,consumerId:consumerId,requestId:requestId="default"}){const{_resources:resources,protocol:protocol}=this;resourceId.startsWith(protocol)&&(resources[resourceId=resourceId.replace(protocol,"")]||this.add({resourceId:resourceId,data:null,persistent:!1}));const res=resources[resourceId];if(this._track(consumerId,requestId,res,onChange),res)return res.getData()}prune(){this._pruneRequest||(this._pruneRequest=setTimeout((()=>this._prune()),0))}finalize(){for(const key in this._resources)this._resources[key].delete()}_track(consumerId,requestId,resource,onChange){const consumers=this._consumers,consumer=consumers[consumerId]=consumers[consumerId]||{},request=consumer[requestId]||{},oldResource=request.resourceId&&this._resources[request.resourceId];oldResource&&(oldResource.unsubscribe(request),this.prune()),resource&&(consumer[requestId]=request,request.onChange=onChange,request.resourceId=resource.id,resource.subscribe(request))}_prune(){this._pruneRequest=null;for(const key of Object.keys(this._resources)){const res=this._resources[key];res.persistent||res.inUse()||(res.delete(),delete this._resources[key])}}}var viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js"),program_manager=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/program-manager.js");const DEFAULT_MODULES=[__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js").Z],SHADER_HOOKS=["vs:DECKGL_FILTER_SIZE(inout vec3 size, VertexGeometry geometry)","vs:DECKGL_FILTER_GL_POSITION(inout vec4 position, VertexGeometry geometry)","vs:DECKGL_FILTER_COLOR(inout vec4 color, VertexGeometry geometry)","fs:DECKGL_FILTER_COLOR(inout vec4 color, FragmentGeometry geometry)"];function createProgramManager(gl){const programManager=program_manager.Z.getDefaultProgramManager(gl);for(const shaderModule of DEFAULT_MODULES)programManager.addDefaultModule(shaderModule);for(const shaderHook of SHADER_HOOKS)programManager.addShaderHook(shaderHook);return programManager}class LayerManager{constructor(gl,{deck:deck,stats:stats,viewport:_viewport,timeline:timeline}={}){(0,defineProperty.Z)(this,"layers",void 0),(0,defineProperty.Z)(this,"context",void 0),(0,defineProperty.Z)(this,"resourceManager",void 0),(0,defineProperty.Z)(this,"_lastRenderedLayers",[]),(0,defineProperty.Z)(this,"_needsRedraw",!1),(0,defineProperty.Z)(this,"_needsUpdate",!1),(0,defineProperty.Z)(this,"_nextLayers",null),(0,defineProperty.Z)(this,"_debug",!1),(0,defineProperty.Z)(this,"activateViewport",(viewport=>{(0,debug.Z)("layerManager.activateViewport",this,viewport),viewport&&(this.context.viewport=viewport)})),this.layers=[],this.resourceManager=new ResourceManager({gl:gl,protocol:"deck://"}),this.context={mousePosition:null,userData:{},layerManager:this,gl:gl,deck:deck,programManager:gl&&createProgramManager(gl),stats:stats||new esm.jk({id:"deck.gl"}),viewport:_viewport||new viewport.Z({id:"DEFAULT-INITIAL-VIEWPORT"}),timeline:timeline||new animation_timeline.T,resourceManager:this.resourceManager,onError:void 0},Object.seal(this)}finalize(){this.resourceManager.finalize();for(const layer of this.layers)this._finalizeLayer(layer)}needsRedraw(opts={clearRedrawFlags:!1}){let redraw=this._needsRedraw;opts.clearRedrawFlags&&(this._needsRedraw=!1);for(const layer of this.layers){const layerNeedsRedraw=layer.getNeedsRedraw(opts);redraw=redraw||layerNeedsRedraw}return redraw}needsUpdate(){return this._nextLayers&&this._nextLayers!==this._lastRenderedLayers?"layers changed":this._needsUpdate}setNeedsRedraw(reason){this._needsRedraw=this._needsRedraw||reason}setNeedsUpdate(reason){this._needsUpdate=this._needsUpdate||reason}getLayers({layerIds:layerIds}={}){return layerIds?this.layers.filter((layer=>layerIds.find((layerId=>0===layer.id.indexOf(layerId))))):this.layers}setProps(props){"debug"in props&&(this._debug=props.debug),"userData"in props&&(this.context.userData=props.userData),"layers"in props&&(this._nextLayers=props.layers),"onError"in props&&(this.context.onError=props.onError)}setLayers(newLayers,reason){(0,debug.Z)("layerManager.setLayers",this,reason,newLayers),this._lastRenderedLayers=newLayers;const flatLayers=(0,flatten.x)(newLayers,Boolean);for(const layer of flatLayers)layer.context=this.context;this._updateLayers(this.layers,flatLayers)}updateLayers(){const reason=this.needsUpdate();reason&&(this.setNeedsRedraw("updating layers: ".concat(reason)),this.setLayers(this._nextLayers||this._lastRenderedLayers,reason)),this._nextLayers=null}_handleError(stage,error,layer){layer.raiseError(error,"".concat(stage," of ").concat(layer))}_updateLayers(oldLayers,newLayers){const oldLayerMap={};for(const oldLayer of oldLayers)oldLayerMap[oldLayer.id]?log.Z.warn("Multiple old layers with same id ".concat(oldLayer.id))():oldLayerMap[oldLayer.id]=oldLayer;const generatedLayers=[];this._updateSublayersRecursively(newLayers,oldLayerMap,generatedLayers),this._finalizeOldLayers(oldLayerMap);let needsUpdate=!1;for(const layer of generatedLayers)if(layer.hasUniformTransition()){needsUpdate="Uniform transition in ".concat(layer);break}this._needsUpdate=needsUpdate,this.layers=generatedLayers}_updateSublayersRecursively(newLayers,oldLayerMap,generatedLayers){for(const newLayer of newLayers){newLayer.context=this.context;const oldLayer=oldLayerMap[newLayer.id];null===oldLayer&&log.Z.warn("Multiple new layers with same id ".concat(newLayer.id))(),oldLayerMap[newLayer.id]=null;let sublayers=null;try{this._debug&&oldLayer!==newLayer&&newLayer.validateProps(),oldLayer?(this._transferLayerState(oldLayer,newLayer),this._updateLayer(newLayer)):this._initializeLayer(newLayer),generatedLayers.push(newLayer),sublayers=newLayer.isComposite?newLayer.getSubLayers():null}catch(err){this._handleError("matching",err,newLayer)}sublayers&&this._updateSublayersRecursively(sublayers,oldLayerMap,generatedLayers)}}_finalizeOldLayers(oldLayerMap){for(const layerId in oldLayerMap){const layer=oldLayerMap[layerId];layer&&this._finalizeLayer(layer)}}_initializeLayer(layer){try{layer._initialize(),layer.lifecycle=constants.dt.INITIALIZED}catch(err){this._handleError("initialization",err,layer)}}_transferLayerState(oldLayer,newLayer){newLayer._transferState(oldLayer),newLayer.lifecycle=constants.dt.MATCHED,newLayer!==oldLayer&&(oldLayer.lifecycle=constants.dt.AWAITING_GC)}_updateLayer(layer){try{layer._update()}catch(err){this._handleError("update",err,layer)}}_finalizeLayer(layer){this._needsRedraw=this._needsRedraw||"finalized ".concat(layer),layer.lifecycle=constants.dt.AWAITING_FINALIZATION;try{layer._finalize(),layer.lifecycle=constants.dt.FINALIZED}catch(err){this._handleError("finalization",err,layer)}}}},"./node_modules/@deck.gl/core/dist/esm/lib/layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Layer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),attribute_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/attribute/attribute-manager.js"),attribute_transition_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/attribute/attribute-transition-utils.js"),common=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),transition=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/transition.js");class CPUInterpolationTransition extends transition.Z{get value(){return this._value}_onUpdate(){const{time:time,settings:{fromValue:fromValue,toValue:toValue,duration:duration,easing:easing}}=this,t=easing(time/duration);this._value=(0,common.t7)(fromValue,toValue,t)}}function updateSpringElement(prev,cur,dest,damping,stiffness){const velocity=cur-prev;return(dest-cur)*stiffness+-velocity*damping+velocity+cur}function distance(value1,value2){if(Array.isArray(value1)){let distanceSquare=0;for(let i=0;i0}add(key,fromValue,toValue,settings){const{transitions:transitions}=this;if(transitions.has(key)){const transition=transitions.get(key),{value:value=transition.settings.fromValue}=transition;fromValue=value,this.remove(key)}if(!(settings=(0,attribute_transition_utils.M0)(settings)))return;const TransitionType=TRANSITION_TYPES[settings.type];if(!TransitionType)return void log.Z.error("unsupported transition type '".concat(settings.type,"'"))();const transition=new TransitionType(this.timeline);transition.start({...settings,fromValue:fromValue,toValue:toValue}),transitions.set(key,transition)}remove(key){const{transitions:transitions}=this;transitions.has(key)&&(transitions.get(key).cancel(),transitions.delete(key))}update(){const propsInTransition={};for(const[key,transition]of this.transitions)transition.update(),propsInTransition[key]=transition.value,transition.inProgress||this.remove(key);return propsInTransition}clear(){for(const key of this.transitions.keys())this.remove(key)}}var props=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/props.js"),lifecycle_constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/constants.js"),count=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/count.js"),debug=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/debug/index.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),assert=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js"),memoize=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/memoize.js"),shader=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/shader.js"),project_functions=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project-functions.js"),typed_array_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/typed-array-manager.js"),iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js");const DEFAULT_TEXTURE_PARAMETERS={10241:9987,10240:9729,10242:33071,10243:33071},internalTextures={};var deep_equal=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js");const TYPE_DEFINITIONS={boolean:{validate(value,propType){return!0},equal(value1,value2,propType){return Boolean(value1)===Boolean(value2)}},number:{validate(value,propType){return Number.isFinite(value)&&(!("max"in propType)||value<=propType.max)&&(!("min"in propType)||value>=propType.min)}},color:{validate(value,propType){return propType.optional&&!value||isArray(value)&&(3===value.length||4===value.length)},equal(value1,value2,propType){return(0,deep_equal.v)(value1,value2,1)}},accessor:{validate(value,propType){const valueType=getTypeOf(value);return"function"===valueType||valueType===getTypeOf(propType.value)},equal(value1,value2,propType){return"function"==typeof value2||(0,deep_equal.v)(value1,value2,1)}},array:{validate(value,propType){return propType.optional&&!value||isArray(value)},equal(value1,value2,propType){const{compare:compare}=propType,depth=Number.isInteger(compare)?compare:compare?1:0;return compare?(0,deep_equal.v)(value1,value2,depth):value1===value2}},object:{equal(value1,value2,propType){if(propType.ignore)return!0;const{compare:compare}=propType,depth=Number.isInteger(compare)?compare:compare?1:0;return compare?(0,deep_equal.v)(value1,value2,depth):value1===value2}},function:{validate(value,propType){return propType.optional&&!value||"function"==typeof value},equal(value1,value2,propType){return!propType.compare&&!1!==propType.ignore||value1===value2}},data:{transform:(value,propType,component)=>{const{dataTransform:dataTransform}=component.props;return dataTransform&&value?dataTransform(value):value}},image:{transform:(value,propType,component)=>{const context=component.context;return context&&context.gl?function createTexture(owner,gl,image,parameters){if(image instanceof texture_2d.Z)return image;image.constructor&&"Object"!==image.constructor.name&&(image={data:image});let specialTextureParameters=null;image.compressed&&(specialTextureParameters={10241:image.data.length>1?9985:9729});const texture=new texture_2d.Z(gl,{...image,parameters:{...DEFAULT_TEXTURE_PARAMETERS,...specialTextureParameters,...parameters}});return internalTextures[texture.id]=owner,texture}(component.id,context.gl,value,{...propType.parameters,...component.props.textureParameters}):null},release:(value,propType,component)=>{!function destroyTexture(owner,texture){texture&&texture instanceof texture_2d.Z&&internalTextures[texture.id]===owner&&(texture.delete(),delete internalTextures[texture.id])}(component.id,value)}}};function parsePropType(name,propDef){switch(getTypeOf(propDef)){case"object":return normalizePropDefinition(name,propDef);case"array":return normalizePropDefinition(name,{type:"array",value:propDef,compare:!1});case"boolean":return normalizePropDefinition(name,{type:"boolean",value:propDef});case"number":return normalizePropDefinition(name,{type:"number",value:propDef});case"function":return normalizePropDefinition(name,{type:"function",value:propDef,compare:!0});default:return{name:name,type:"unknown",value:propDef}}}function normalizePropDefinition(name,propDef){return"type"in propDef?{name:name,...TYPE_DEFINITIONS[propDef.type],...propDef}:"value"in propDef?{name:name,type:getTypeOf(propDef.value),...propDef}:{name:name,type:"object",value:propDef}}function isArray(value){return Array.isArray(value)||ArrayBuffer.isView(value)}function getTypeOf(value){return isArray(value)?"array":null===value?"null":typeof value}const MergedDefaultPropsCacheKey="_mergedDefaultProps";function getPropsPrototype(componentClass,extensions){let cacheKey=MergedDefaultPropsCacheKey;if(extensions)for(const extension of extensions){const ExtensionClass=extension.constructor;ExtensionClass&&(cacheKey+=":".concat(ExtensionClass.extensionName||ExtensionClass.name))}const defaultProps=getOwnProperty(componentClass,cacheKey);return defaultProps||(componentClass[cacheKey]=function createPropsPrototypeAndTypes(componentClass,extensions){const parent=componentClass.prototype;if(!parent)return null;const parentClass=Object.getPrototypeOf(componentClass),parentDefaultProps=getPropsPrototype(parentClass),componentDefaultProps=getOwnProperty(componentClass,"defaultProps")||{},componentPropDefs=function parsePropTypes(propDefs){const propTypes={},defaultProps={},deprecatedProps={};for(const[propName,propDef]of Object.entries(propDefs)){const deprecated=null==propDef?void 0:propDef.deprecatedFor;if(deprecated)deprecatedProps[propName]=Array.isArray(deprecated)?deprecated:[deprecated];else{const propType=parsePropType(propName,propDef);propTypes[propName]=propType,defaultProps[propName]=propType.value}}return{propTypes:propTypes,defaultProps:defaultProps,deprecatedProps:deprecatedProps}}(componentDefaultProps),defaultProps=Object.assign(Object.create(null),parentDefaultProps,componentPropDefs.defaultProps),propTypes=Object.assign(Object.create(null),null==parentDefaultProps?void 0:parentDefaultProps[lifecycle_constants.Wb],componentPropDefs.propTypes),deprecatedProps=Object.assign(Object.create(null),null==parentDefaultProps?void 0:parentDefaultProps[lifecycle_constants.E7],componentPropDefs.deprecatedProps);for(const extension of extensions){const extensionDefaultProps=getPropsPrototype(extension.constructor);extensionDefaultProps&&(Object.assign(defaultProps,extensionDefaultProps),Object.assign(propTypes,extensionDefaultProps[lifecycle_constants.Wb]),Object.assign(deprecatedProps,extensionDefaultProps[lifecycle_constants.E7]))}(function createPropsPrototype(defaultProps,componentClass){const id=function getComponentName(componentClass){const componentName=componentClass.componentName;componentName||log.Z.warn("".concat(componentClass.name,".componentName not specified"))();return componentName||componentClass.name}(componentClass);Object.defineProperties(defaultProps,{id:{writable:!0,value:id}})})(defaultProps,componentClass),function addAsyncPropsToPropPrototype(defaultProps,propTypes){const defaultValues={},descriptors={};for(const propName in propTypes){const propType=propTypes[propName],{name:name,value:value}=propType;propType.async&&(defaultValues[name]=value,descriptors[name]=getDescriptorForAsyncProp(name))}defaultProps[lifecycle_constants.lY]=defaultValues,defaultProps[lifecycle_constants.fO]={},Object.defineProperties(defaultProps,descriptors)}(defaultProps,propTypes),function addDeprecatedPropsToPropPrototype(defaultProps,deprecatedProps){for(const propName in deprecatedProps)Object.defineProperty(defaultProps,propName,{enumerable:!1,set(newValue){const nameStr="".concat(this.id,": ").concat(propName);for(const newPropName of deprecatedProps[propName])create_props_hasOwnProperty(this,newPropName)||(this[newPropName]=newValue);log.Z.deprecated(nameStr,deprecatedProps[propName].join("/"))()}})}(defaultProps,deprecatedProps),defaultProps[lifecycle_constants.Wb]=propTypes,defaultProps[lifecycle_constants.E7]=deprecatedProps,0!==extensions.length||create_props_hasOwnProperty(componentClass,"_propTypes")||(componentClass._propTypes=propTypes);return defaultProps}(componentClass,extensions||[]))}function getDescriptorForAsyncProp(name){return{enumerable:!0,set(newValue){"string"==typeof newValue||newValue instanceof Promise||(0,iterable_utils.D0)(newValue)?this[lifecycle_constants.fO][name]=newValue:this[lifecycle_constants.bN][name]=newValue},get(){if(this[lifecycle_constants.bN]){if(name in this[lifecycle_constants.bN]){return this[lifecycle_constants.bN][name]||this[lifecycle_constants.lY][name]}if(name in this[lifecycle_constants.fO]){const state=this[lifecycle_constants.fm]&&this[lifecycle_constants.fm].internalState;if(state&&state.hasAsyncProp(name))return state.getAsyncProp(name)||this[lifecycle_constants.lY][name]}}return this[lifecycle_constants.lY][name]}}}function create_props_hasOwnProperty(object,prop){return Object.prototype.hasOwnProperty.call(object,prop)}function getOwnProperty(object,prop){return create_props_hasOwnProperty(object,prop)&&object[prop]}let counter=0;class Component{constructor(...propObjects){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"count",void 0),this.props=function createProps(component,propObjects){let extensions;for(let i=propObjects.length-1;i>=0;i--){const props=propObjects[i];"extensions"in props&&(extensions=props.extensions)}const propsPrototype=getPropsPrototype(component.constructor,extensions),propsInstance=Object.create(propsPrototype);propsInstance[lifecycle_constants.fm]=component,propsInstance[lifecycle_constants.fO]={},propsInstance[lifecycle_constants.bN]={};for(let i=0;i{},this.oldProps=null,this.oldAsyncProps=null}finalize(){for(const propName in this.asyncProps){const asyncProp=this.asyncProps[propName];asyncProp&&asyncProp.type&&asyncProp.type.release&&asyncProp.type.release(asyncProp.resolvedValue,asyncProp.type,this.component)}this.asyncProps={},this.component=null,this.resetOldProps()}getOldProps(){return this.oldAsyncProps||this.oldProps||EMPTY_PROPS}resetOldProps(){this.oldAsyncProps=null,this.oldProps=this.component?this.component.props:null}hasAsyncProp(propName){return propName in this.asyncProps}getAsyncProp(propName){const asyncProp=this.asyncProps[propName];return asyncProp&&asyncProp.resolvedValue}isAsyncPropLoading(propName){if(propName){const asyncProp=this.asyncProps[propName];return Boolean(asyncProp&&asyncProp.pendingLoadCount>0&&asyncProp.pendingLoadCount!==asyncProp.resolvedLoadCount)}for(const key in this.asyncProps)if(this.isAsyncPropLoading(key))return!0;return!1}reloadAsyncProp(propName,value){this._watchPromise(propName,Promise.resolve(value))}setAsyncProps(props){this.component=props[lifecycle_constants.fm]||this.component;const resolvedValues=props[lifecycle_constants.bN]||{},originalValues=props[lifecycle_constants.fO]||props,defaultValues=props[lifecycle_constants.lY]||{};for(const propName in resolvedValues){const value=resolvedValues[propName];this._createAsyncPropData(propName,defaultValues[propName]),this._updateAsyncProp(propName,value),resolvedValues[propName]=this.getAsyncProp(propName)}for(const propName in originalValues){const value=originalValues[propName];this._createAsyncPropData(propName,defaultValues[propName]),this._updateAsyncProp(propName,value)}}_fetch(propName,url){return null}_onResolve(propName,value){}_onError(propName,error){}_updateAsyncProp(propName,value){this._didAsyncInputValueChange(propName,value)&&("string"==typeof value&&(value=this._fetch(propName,value)),value instanceof Promise?this._watchPromise(propName,value):(0,iterable_utils.D0)(value)?this._resolveAsyncIterable(propName,value):this._setPropValue(propName,value))}_freezeAsyncOldProps(){if(!this.oldAsyncProps&&this.oldProps){this.oldAsyncProps=Object.create(this.oldProps);for(const propName in this.asyncProps)Object.defineProperty(this.oldAsyncProps,propName,{enumerable:!0,value:this.oldProps[propName]})}}_didAsyncInputValueChange(propName,value){const asyncProp=this.asyncProps[propName];return value!==asyncProp.resolvedValue&&value!==asyncProp.lastValue&&(asyncProp.lastValue=value,!0)}_setPropValue(propName,value){this._freezeAsyncOldProps();const asyncProp=this.asyncProps[propName];asyncProp&&(value=this._postProcessValue(asyncProp,value),asyncProp.resolvedValue=value,asyncProp.pendingLoadCount++,asyncProp.resolvedLoadCount=asyncProp.pendingLoadCount)}_setAsyncPropValue(propName,value,loadCount){const asyncProp=this.asyncProps[propName];asyncProp&&loadCount>=asyncProp.resolvedLoadCount&&void 0!==value&&(this._freezeAsyncOldProps(),asyncProp.resolvedValue=value,asyncProp.resolvedLoadCount=loadCount,this.onAsyncPropUpdated(propName,value))}_watchPromise(propName,promise){const asyncProp=this.asyncProps[propName];if(asyncProp){asyncProp.pendingLoadCount++;const loadCount=asyncProp.pendingLoadCount;promise.then((data=>{this.component&&(data=this._postProcessValue(asyncProp,data),this._setAsyncPropValue(propName,data,loadCount),this._onResolve(propName,data))})).catch((error=>{this._onError(propName,error)}))}}async _resolveAsyncIterable(propName,iterable){if("data"!==propName)return void this._setPropValue(propName,iterable);const asyncProp=this.asyncProps[propName];if(!asyncProp)return;asyncProp.pendingLoadCount++;const loadCount=asyncProp.pendingLoadCount;let data=[],count=0;for await(const chunk of iterable){if(!this.component)return;const{dataTransform:dataTransform}=this.component.props;data=dataTransform?dataTransform(chunk,data):data.concat(chunk),Object.defineProperty(data,"__diff",{enumerable:!1,value:[{startRow:count,endRow:data.length}]}),count=data.length,this._setAsyncPropValue(propName,data,loadCount)}this._onResolve(propName,data)}_postProcessValue(asyncProp,value){const propType=asyncProp.type;return propType&&this.component&&(propType.release&&propType.release(asyncProp.resolvedValue,propType,this.component),propType.transform)?propType.transform(value,propType,this.component):value}_createAsyncPropData(propName,defaultValue){if(!this.asyncProps[propName]){const propTypes=this.component&&this.component.props[lifecycle_constants.Wb];this.asyncProps[propName]={type:propTypes&&propTypes[propName],lastValue:null,resolvedValue:defaultValue,pendingLoadCount:0,resolvedLoadCount:0}}}}class LayerState extends ComponentState{constructor({attributeManager:attributeManager,layer:layer}){super(layer),(0,defineProperty.Z)(this,"attributeManager",void 0),(0,defineProperty.Z)(this,"needsRedraw",void 0),(0,defineProperty.Z)(this,"needsUpdate",void 0),(0,defineProperty.Z)(this,"subLayers",void 0),(0,defineProperty.Z)(this,"usesPickingColorCache",void 0),(0,defineProperty.Z)(this,"hasPickingBuffer",void 0),(0,defineProperty.Z)(this,"changeFlags",void 0),(0,defineProperty.Z)(this,"viewport",void 0),(0,defineProperty.Z)(this,"uniformTransitions",void 0),(0,defineProperty.Z)(this,"propsInTransition",void 0),this.attributeManager=attributeManager,this.needsRedraw=!0,this.needsUpdate=!0,this.subLayers=null,this.usesPickingColorCache=!1}get layer(){return this.component}_fetch(propName,url){const layer=this.layer,fetch=null==layer?void 0:layer.props.fetch;return fetch?fetch(url,{propName:propName,layer:layer}):super._fetch(propName,url)}_onResolve(propName,value){const layer=this.layer;if(layer){const onDataLoad=layer.props.onDataLoad;"data"===propName&&onDataLoad&&onDataLoad(value,{propName:propName,layer:layer})}}_onError(propName,error){const layer=this.layer;layer&&layer.raiseError(error,"loading ".concat(propName," of ").concat(this.layer))}}var dist_esm=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js"),load=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js");const EMPTY_ARRAY=Object.freeze([]),areViewportsEqual=(0,memoize.Z)((({oldViewport:oldViewport,viewport:viewport})=>oldViewport.equals(viewport)));let pickingColorCache=new Uint8ClampedArray(0);const defaultProps={data:{type:"data",value:EMPTY_ARRAY,async:!0},dataComparator:{type:"function",value:null,optional:!0},_dataDiff:{type:"function",value:data=>data&&data.__diff,optional:!0},dataTransform:{type:"function",value:null,optional:!0},onDataLoad:{type:"function",value:null,optional:!0},onError:{type:"function",value:null,optional:!0},fetch:{type:"function",value:(url,{propName:propName,layer:layer,loaders:loaders,loadOptions:loadOptions,signal:signal})=>{const{resourceManager:resourceManager}=layer.context;var _loadOptions;(loadOptions=loadOptions||layer.getLoadOptions(),loaders=loaders||layer.props.loaders,signal)&&(loadOptions={...loadOptions,fetch:{...null===(_loadOptions=loadOptions)||void 0===_loadOptions?void 0:_loadOptions.fetch,signal:signal}});let inResourceManager=resourceManager.contains(url);return inResourceManager||loadOptions||(resourceManager.add({resourceId:url,data:(0,load.z)(url,loaders),persistent:!1}),inResourceManager=!0),inResourceManager?resourceManager.subscribe({resourceId:url,onChange:data=>{var _layer$internalState;return null===(_layer$internalState=layer.internalState)||void 0===_layer$internalState?void 0:_layer$internalState.reloadAsyncProp(propName,data)},consumerId:layer.id,requestId:propName}):(0,load.z)(url,loaders,loadOptions)}},updateTriggers:{},visible:!0,pickable:!1,opacity:{type:"number",min:0,max:1,value:1},operation:"draw",onHover:{type:"function",value:null,optional:!0},onClick:{type:"function",value:null,optional:!0},onDragStart:{type:"function",value:null,optional:!0},onDrag:{type:"function",value:null,optional:!0},onDragEnd:{type:"function",value:null,optional:!0},coordinateSystem:constants.COORDINATE_SYSTEM.DEFAULT,coordinateOrigin:{type:"array",value:[0,0,0],compare:!0},modelMatrix:{type:"array",value:null,compare:!0,optional:!0},wrapLongitude:!1,positionFormat:"XYZ",colorFormat:"RGBA",parameters:{type:"object",value:{},optional:!0,compare:2},loadOptions:{type:"object",value:null,optional:!0,ignore:!0},transitions:null,extensions:[],loaders:{type:"array",value:[],optional:!0,ignore:!0},getPolygonOffset:{type:"function",value:({layerIndex:layerIndex})=>[0,100*-layerIndex]},highlightedObjectIndex:null,autoHighlight:!1,highlightColor:{type:"accessor",value:[0,0,128,128]}};class Layer extends Component{constructor(...args){super(...args),(0,defineProperty.Z)(this,"internalState",null),(0,defineProperty.Z)(this,"lifecycle",lifecycle_constants.dt.NO_STATE),(0,defineProperty.Z)(this,"context",void 0),(0,defineProperty.Z)(this,"state",void 0),(0,defineProperty.Z)(this,"parent",null)}static get componentName(){return Object.prototype.hasOwnProperty.call(this,"layerName")?this.layerName:""}get root(){let layer=this;for(;layer.parent;)layer=layer.parent;return layer}toString(){const className=this.constructor.layerName||this.constructor.name;return"".concat(className,"({id: '").concat(this.props.id,"'})")}project(xyz){(0,assert.Z)(this.internalState);const viewport=this.internalState.viewport||this.context.viewport,worldPosition=(0,project_functions.T)(xyz,{viewport:viewport,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem}),[x,y,z]=(0,dist_esm.aW)(worldPosition,viewport.pixelProjectionMatrix);return 2===xyz.length?[x,y]:[x,y,z]}unproject(xy){(0,assert.Z)(this.internalState);return(this.internalState.viewport||this.context.viewport).unproject(xy)}projectPosition(xyz,params){(0,assert.Z)(this.internalState);const viewport=this.internalState.viewport||this.context.viewport;return(0,project_functions.D)(xyz,{viewport:viewport,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem,...params})}get isComposite(){return!1}setState(partialState){this.setChangeFlags({stateChanged:!0}),Object.assign(this.state,partialState),this.setNeedsRedraw()}setNeedsRedraw(){this.internalState&&(this.internalState.needsRedraw=!0)}setNeedsUpdate(){this.internalState&&(this.context.layerManager.setNeedsUpdate(String(this)),this.internalState.needsUpdate=!0)}get isLoaded(){return!!this.internalState&&!this.internalState.isAsyncPropLoading()}get wrapLongitude(){return this.props.wrapLongitude}isPickable(){return this.props.pickable&&this.props.visible}getModels(){return this.state&&(this.state.models||this.state.model&&[this.state.model])||[]}setModuleParameters(moduleParameters){for(const model of this.getModels())model.updateModuleSettings(moduleParameters)}getAttributeManager(){return this.internalState&&this.internalState.attributeManager}getCurrentLayer(){return this.internalState&&this.internalState.layer}getLoadOptions(){return this.props.loadOptions}use64bitPositions(){const{coordinateSystem:coordinateSystem}=this.props;return coordinateSystem===constants.COORDINATE_SYSTEM.DEFAULT||coordinateSystem===constants.COORDINATE_SYSTEM.LNGLAT||coordinateSystem===constants.COORDINATE_SYSTEM.CARTESIAN}onHover(info,pickingEvent){return this.props.onHover&&this.props.onHover(info,pickingEvent)||!1}onClick(info,pickingEvent){return this.props.onClick&&this.props.onClick(info,pickingEvent)||!1}nullPickingColor(){return[0,0,0]}encodePickingColor(i,target=[]){return target[0]=i+1&255,target[1]=i+1>>8&255,target[2]=i+1>>8>>8&255,target}decodePickingColor(color){(0,assert.Z)(color instanceof Uint8Array);const[i1,i2,i3]=color;return i1+256*i2+65536*i3-1}getNumInstances(){return Number.isFinite(this.props.numInstances)?this.props.numInstances:this.state&&void 0!==this.state.numInstances?this.state.numInstances:(0,count.Q)(this.props.data)}getStartIndices(){return this.props.startIndices?this.props.startIndices:this.state&&this.state.startIndices?this.state.startIndices:null}getBounds(){var _this$getAttributeMan;return null===(_this$getAttributeMan=this.getAttributeManager())||void 0===_this$getAttributeMan?void 0:_this$getAttributeMan.getBounds(["positions","instancePositions"])}getShaders(shaders){for(const extension of this.props.extensions)shaders=(0,shader.l)(shaders,extension.getShaders.call(this,extension));return shaders}shouldUpdateState(params){return params.changeFlags.propsOrDataChanged}updateState(params){const attributeManager=this.getAttributeManager(),{dataChanged:dataChanged}=params.changeFlags;if(dataChanged&&attributeManager)if(Array.isArray(dataChanged))for(const dataRange of dataChanged)attributeManager.invalidateAll(dataRange);else attributeManager.invalidateAll();if(attributeManager){const{props:props}=params,hasPickingBuffer=this.internalState.hasPickingBuffer,needsPickingBuffer=Number.isInteger(props.highlightedObjectIndex)||props.pickable||props.extensions.some((extension=>extension.getNeedsPickingBuffer.call(this,extension)));if(hasPickingBuffer!==needsPickingBuffer){this.internalState.hasPickingBuffer=needsPickingBuffer;const{pickingColors:pickingColors,instancePickingColors:instancePickingColors}=attributeManager.attributes,pickingColorsAttribute=pickingColors||instancePickingColors;pickingColorsAttribute&&(needsPickingBuffer&&pickingColorsAttribute.constant&&(pickingColorsAttribute.constant=!1,attributeManager.invalidate(pickingColorsAttribute.id)),pickingColorsAttribute.value||needsPickingBuffer||(pickingColorsAttribute.constant=!0,pickingColorsAttribute.value=[0,0,0]))}}}finalizeState(context){for(const model of this.getModels())model.delete();const attributeManager=this.getAttributeManager();attributeManager&&attributeManager.finalize(),this.context&&this.context.resourceManager.unsubscribe({consumerId:this.id}),this.internalState&&(this.internalState.uniformTransitions.clear(),this.internalState.finalize())}draw(opts){for(const model of this.getModels())model.draw(opts)}getPickingInfo({info:info,mode:mode,sourceLayer:sourceLayer}){const{index:index}=info;return index>=0&&Array.isArray(this.props.data)&&(info.object=this.props.data[index]),info}raiseError(error,message){var _this$props$onError,_this$props,_this$context,_this$context$onError;(message&&(error=new Error("".concat(message,": ").concat(error.message),{cause:error})),null!==(_this$props$onError=(_this$props=this.props).onError)&&void 0!==_this$props$onError&&_this$props$onError.call(_this$props,error))||(null===(_this$context=this.context)||void 0===_this$context||null===(_this$context$onError=_this$context.onError)||void 0===_this$context$onError||_this$context$onError.call(_this$context,error,this))}getNeedsRedraw(opts={clearRedrawFlags:!1}){return this._getNeedsRedraw(opts)}needsUpdate(){return!!this.internalState&&(this.internalState.needsUpdate||this.hasUniformTransition()||this.shouldUpdateState(this._getUpdateParams()))}hasUniformTransition(){var _this$internalState;return(null===(_this$internalState=this.internalState)||void 0===_this$internalState?void 0:_this$internalState.uniformTransitions.active)||!1}activateViewport(viewport){if(!this.internalState)return;const oldViewport=this.internalState.viewport;this.internalState.viewport=viewport,oldViewport&&areViewportsEqual({oldViewport:oldViewport,viewport:viewport})||(this.setChangeFlags({viewportChanged:!0}),this.isComposite?this.needsUpdate()&&this.setNeedsUpdate():this._update())}invalidateAttribute(name="all"){const attributeManager=this.getAttributeManager();attributeManager&&("all"===name?attributeManager.invalidateAll():attributeManager.invalidate(name))}updateAttributes(changedAttributes){for(const model of this.getModels())this._setModelAttributes(model,changedAttributes)}_updateAttributes(){const attributeManager=this.getAttributeManager();if(!attributeManager)return;const props=this.props,numInstances=this.getNumInstances(),startIndices=this.getStartIndices();attributeManager.update({data:props.data,numInstances:numInstances,startIndices:startIndices,props:props,transitions:props.transitions,buffers:props.data.attributes,context:this});const changedAttributes=attributeManager.getChangedAttributes({clearChangedFlags:!0});this.updateAttributes(changedAttributes)}_updateAttributeTransition(){const attributeManager=this.getAttributeManager();attributeManager&&attributeManager.updateTransition()}_updateUniformTransition(){const{uniformTransitions:uniformTransitions}=this.internalState;if(uniformTransitions.active){const propsInTransition=uniformTransitions.update(),props=Object.create(this.props);for(const key in propsInTransition)Object.defineProperty(props,key,{value:propsInTransition[key]});return props}return this.props}calculateInstancePickingColors(attribute,{numInstances:numInstances}){if(attribute.constant)return;const cacheSize=Math.floor(pickingColorCache.length/3);if(this.internalState.usesPickingColorCache=!0,cacheSize16777215&&log.Z.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")(),pickingColorCache=typed_array_manager.Z.allocate(pickingColorCache,numInstances,{size:3,copy:!0,maxCount:Math.max(numInstances,16777215)});const newCacheSize=Math.floor(pickingColorCache.length/3),pickingColor=[];for(let i=cacheSize;i(log.Z.deprecated("layer.state.attributeManager","layer.getAttributeManager()")(),attributeManager)}),this.internalState.uniformTransitions=new UniformTransitionManager(this.context.timeline),this.internalState.onAsyncPropUpdated=this._onAsyncPropUpdated.bind(this),this.internalState.setAsyncProps(this.props),this.initializeState(this.context);for(const extension of this.props.extensions)extension.initializeState.call(this,this.context,extension);this.setChangeFlags({dataChanged:"init",propsChanged:"init",viewportChanged:!0,extensionsChanged:!0}),this._update()}_transferState(oldLayer){(0,debug.Z)("layer.matched",this,this===oldLayer);const{state:state,internalState:internalState}=oldLayer;this!==oldLayer&&(this.internalState=internalState,this.state=state,this.internalState.setAsyncProps(this.props),this._diffProps(this.props,this.internalState.getOldProps()))}_update(){const stateNeedsUpdate=this.needsUpdate();if((0,debug.Z)("layer.update",this,stateNeedsUpdate),!stateNeedsUpdate)return;const currentProps=this.props,context=this.context,internalState=this.internalState,currentViewport=context.viewport,propsInTransition=this._updateUniformTransition();internalState.propsInTransition=propsInTransition,context.viewport=internalState.viewport||currentViewport,this.props=propsInTransition;try{const updateParams=this._getUpdateParams(),oldModels=this.getModels();if(context.gl)this.updateState(updateParams);else try{this.updateState(updateParams)}catch(error){}for(const extension of this.props.extensions)extension.updateState.call(this,updateParams,extension);const modelChanged=this.getModels()[0]!==oldModels[0];this._postUpdate(updateParams,modelChanged)}finally{context.viewport=currentViewport,this.props=currentProps,this._clearChangeFlags(),internalState.needsUpdate=!1,internalState.resetOldProps()}}_finalize(){(0,debug.Z)("layer.finalize",this),this.finalizeState(this.context);for(const extension of this.props.extensions)extension.finalizeState.call(this,this.context,extension)}_drawLayer({moduleParameters:moduleParameters=null,uniforms:uniforms={},parameters:parameters={}}){this._updateAttributeTransition();const currentProps=this.props,context=this.context;this.props=this.internalState.propsInTransition||currentProps;const opacity=this.props.opacity;uniforms.opacity=Math.pow(opacity,1/2.2);try{moduleParameters&&this.setModuleParameters(moduleParameters);const{getPolygonOffset:getPolygonOffset}=this.props,offsets=getPolygonOffset&&getPolygonOffset(uniforms)||[0,0];(0,esm.dR)(context.gl,{polygonOffset:offsets}),(0,esm.s8)(context.gl,parameters,(()=>{const opts={moduleParameters:moduleParameters,uniforms:uniforms,parameters:parameters,context:context};for(const extension of this.props.extensions)extension.draw.call(this,opts,extension);this.draw(opts)}))}finally{this.props=currentProps}}getChangeFlags(){var _this$internalState2;return null===(_this$internalState2=this.internalState)||void 0===_this$internalState2?void 0:_this$internalState2.changeFlags}setChangeFlags(flags){if(!this.internalState)return;const{changeFlags:changeFlags}=this.internalState;for(const key in flags)if(flags[key]){let flagChanged=!1;if("dataChanged"===key){const dataChangedReason=flags[key],prevDataChangedReason=changeFlags[key];dataChangedReason&&Array.isArray(prevDataChangedReason)&&(changeFlags.dataChanged=Array.isArray(dataChangedReason)?prevDataChangedReason.concat(dataChangedReason):dataChangedReason,flagChanged=!0)}changeFlags[key]||(changeFlags[key]=flags[key],flagChanged=!0),flagChanged&&(0,debug.Z)("layer.changeFlag",this,key,flags)}const propsOrDataChanged=Boolean(changeFlags.dataChanged||changeFlags.updateTriggersChanged||changeFlags.propsChanged||changeFlags.extensionsChanged);changeFlags.propsOrDataChanged=propsOrDataChanged,changeFlags.somethingChanged=propsOrDataChanged||changeFlags.viewportChanged||changeFlags.stateChanged}_clearChangeFlags(){this.internalState.changeFlags={dataChanged:!1,propsChanged:!1,updateTriggersChanged:!1,viewportChanged:!1,stateChanged:!1,extensionsChanged:!1,propsOrDataChanged:!1,somethingChanged:!1}}_diffProps(newProps,oldProps){const changeFlags=(0,props.Yt)(newProps,oldProps);if(changeFlags.updateTriggersChanged)for(const key in changeFlags.updateTriggersChanged)changeFlags.updateTriggersChanged[key]&&this.invalidateAttribute(key);if(changeFlags.transitionsChanged)for(const key in changeFlags.transitionsChanged){var _newProps$transitions;this.internalState.uniformTransitions.add(key,oldProps[key],newProps[key],null===(_newProps$transitions=newProps.transitions)||void 0===_newProps$transitions?void 0:_newProps$transitions[key])}return this.setChangeFlags(changeFlags)}validateProps(){(0,props.eQ)(this.props)}updateAutoHighlight(info){this.props.autoHighlight&&!Number.isInteger(this.props.highlightedObjectIndex)&&this._updateAutoHighlight(info)}_updateAutoHighlight(info){const pickingModuleParameters={pickingSelectedColor:info.picked?info.color:null},{highlightColor:highlightColor}=this.props;info.picked&&"function"==typeof highlightColor&&(pickingModuleParameters.pickingHighlightColor=highlightColor(info)),this.setModuleParameters(pickingModuleParameters),this.setNeedsRedraw()}_getAttributeManager(){const context=this.context;return new attribute_manager.Z(context.gl,{id:this.props.id,stats:context.stats,timeline:context.timeline})}_postUpdate(updateParams,forceUpdate){const{props:props,oldProps:oldProps}=updateParams;this.setNeedsRedraw(),this._updateAttributes();const{model:model}=this.state;null==model||model.setInstanceCount(this.getNumInstances());const{autoHighlight:autoHighlight,highlightedObjectIndex:highlightedObjectIndex,highlightColor:highlightColor}=props;if(forceUpdate||oldProps.autoHighlight!==autoHighlight||oldProps.highlightedObjectIndex!==highlightedObjectIndex||oldProps.highlightColor!==highlightColor){const parameters={};autoHighlight||(parameters.pickingSelectedColor=null),Array.isArray(highlightColor)&&(parameters.pickingHighlightColor=highlightColor),(forceUpdate||highlightedObjectIndex!==oldProps.highlightedObjectIndex)&&(parameters.pickingSelectedColor=Number.isFinite(highlightedObjectIndex)&&highlightedObjectIndex>=0?this.encodePickingColor(highlightedObjectIndex):null),this.setModuleParameters(parameters)}}_getUpdateParams(){return{props:this.props,oldProps:this.internalState.getOldProps(),context:this.context,changeFlags:this.internalState.changeFlags}}_getNeedsRedraw(opts){if(!this.internalState)return!1;let redraw=!1;redraw=redraw||this.internalState.needsRedraw&&this.id;const attributeManager=this.getAttributeManager(),attributeManagerNeedsRedraw=!!attributeManager&&attributeManager.getNeedsRedraw(opts);if(redraw=redraw||attributeManagerNeedsRedraw,redraw)for(const extension of this.props.extensions)extension.onNeedsRedraw.call(this,extension);return this.internalState.needsRedraw=this.internalState.needsRedraw&&!opts.clearRedrawFlags,redraw}_onAsyncPropUpdated(){this._diffProps(this.props,this.internalState.getOldProps()),this.setNeedsUpdate()}}(0,defineProperty.Z)(Layer,"defaultProps",defaultProps),(0,defineProperty.Z)(Layer,"layerName","Layer")},"./node_modules/@deck.gl/core/dist/esm/lifecycle/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E7:function(){return DEPRECATED_PROPS_SYMBOL},Wb:function(){return PROP_TYPES_SYMBOL},bN:function(){return ASYNC_RESOLVED_SYMBOL},dt:function(){return LIFECYCLE},fO:function(){return ASYNC_ORIGINAL_SYMBOL},fm:function(){return COMPONENT_SYMBOL},lY:function(){return ASYNC_DEFAULTS_SYMBOL}});const LIFECYCLE={NO_STATE:"Awaiting state",MATCHED:"Matched. State transferred from previous layer",INITIALIZED:"Initialized",AWAITING_GC:"Discarded. Awaiting garbage collection",AWAITING_FINALIZATION:"No longer matched. Awaiting garbage collection",FINALIZED:"Finalized! Awaiting garbage collection"},COMPONENT_SYMBOL=Symbol.for("component"),PROP_TYPES_SYMBOL=Symbol.for("propTypes"),DEPRECATED_PROPS_SYMBOL=Symbol.for("deprecatedProps"),ASYNC_DEFAULTS_SYMBOL=Symbol.for("asyncPropDefaults"),ASYNC_ORIGINAL_SYMBOL=Symbol.for("asyncPropOriginal"),ASYNC_RESOLVED_SYMBOL=Symbol.for("asyncPropResolved")},"./node_modules/@deck.gl/core/dist/esm/lifecycle/props.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Yt:function(){return diffProps},eQ:function(){return validateProps},tg:function(){return compareProps}});var _constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/constants.js");function validateProps(props){const propTypes=props[_constants__WEBPACK_IMPORTED_MODULE_0__.Wb];for(const propName in propTypes){const propType=propTypes[propName],{validate:validate}=propType;if(validate&&!validate(props[propName],propType))throw new Error("Invalid prop ".concat(propName,": ").concat(props[propName]))}}function diffProps(props,oldProps){const propsChangedReason=compareProps({newProps:props,oldProps:oldProps,propTypes:props[_constants__WEBPACK_IMPORTED_MODULE_0__.Wb],ignoreProps:{data:null,updateTriggers:null,extensions:null,transitions:null}}),dataChangedReason=function diffDataProps(props,oldProps){if(null===oldProps)return"oldProps is null, initial diff";let dataChanged=!1;const{dataComparator:dataComparator,_dataDiff:_dataDiff}=props;dataComparator?dataComparator(props.data,oldProps.data)||(dataChanged="Data comparator detected a change"):props.data!==oldProps.data&&(dataChanged="A new data container was supplied");dataChanged&&_dataDiff&&(dataChanged=_dataDiff(props.data,oldProps.data)||dataChanged);return dataChanged}(props,oldProps);let updateTriggersChangedReason=!1;return dataChangedReason||(updateTriggersChangedReason=function diffUpdateTriggers(props,oldProps){if(null===oldProps)return{all:!0};if("all"in props.updateTriggers){if(diffUpdateTrigger(props,oldProps,"all"))return{all:!0}}const reason={};let changed=!1;for(const triggerName in props.updateTriggers)if("all"!==triggerName){diffUpdateTrigger(props,oldProps,triggerName)&&(reason[triggerName]=!0,changed=!0)}return!!changed&&reason}(props,oldProps)),{dataChanged:dataChangedReason,propsChanged:propsChangedReason,updateTriggersChanged:updateTriggersChangedReason,extensionsChanged:diffExtensions(props,oldProps),transitionsChanged:diffTransitions(props,oldProps)}}function diffTransitions(props,oldProps){if(!props.transitions)return!1;const result={},propTypes=props[_constants__WEBPACK_IMPORTED_MODULE_0__.Wb];let changed=!1;for(const key in props.transitions){const propType=propTypes[key],type=propType&&propType.type;("number"===type||"color"===type||"array"===type)&&comparePropValues(props[key],oldProps[key],propType)&&(result[key]=!0,changed=!0)}return!!changed&&result}function compareProps({newProps:newProps,oldProps:oldProps,ignoreProps:ignoreProps={},propTypes:propTypes={},triggerName:triggerName="props"}){if(oldProps===newProps)return!1;if("object"!=typeof newProps||null===newProps)return"".concat(triggerName," changed shallowly");if("object"!=typeof oldProps||null===oldProps)return"".concat(triggerName," changed shallowly");for(const key of Object.keys(newProps))if(!(key in ignoreProps)){if(!(key in oldProps))return"".concat(triggerName,".").concat(key," added");const changed=comparePropValues(newProps[key],oldProps[key],propTypes[key]);if(changed)return"".concat(triggerName,".").concat(key," ").concat(changed)}for(const key of Object.keys(oldProps))if(!(key in ignoreProps)){if(!(key in newProps))return"".concat(triggerName,".").concat(key," dropped");if(!Object.hasOwnProperty.call(newProps,key)){const changed=comparePropValues(newProps[key],oldProps[key],propTypes[key]);if(changed)return"".concat(triggerName,".").concat(key," ").concat(changed)}}return!1}function comparePropValues(newProp,oldProp,propType){let equal=propType&&propType.equal;return equal&&!equal(newProp,oldProp,propType)?"changed deeply":equal||(equal=newProp&&oldProp&&newProp.equals,!equal||equal.call(newProp,oldProp))?equal||oldProp===newProp?null:"changed shallowly":"changed deeply"}function diffExtensions(props,oldProps){if(null===oldProps)return!0;const oldExtensions=oldProps.extensions,{extensions:extensions}=props;if(extensions===oldExtensions)return!1;if(!oldExtensions||!extensions)return!0;if(extensions.length!==oldExtensions.length)return!0;for(let i=0;i(0,_luma_gl_core__WEBPACK_IMPORTED_MODULE_3__.Z)(gl,clearOpts)))}const renderStatus={totalCount:layers.length,visibleCount:0,compositeCount:0,pickableCount:0};(0,_luma_gl_core__WEBPACK_IMPORTED_MODULE_2__.dR)(gl,{viewport:glViewport});for(let layerIndex=0;layerIndex{const indexOverride=layer.props._offset,layerId=layer.id,parentId=layer.parent&&layer.parent.id;let index;if(parentId&&!(parentId in layerIndices)&&resolveLayerIndex(layer.parent,!1),parentId in resolvers){const resolver=resolvers[parentId]=resolvers[parentId]||layerIndexResolver(layerIndices[parentId],layerIndices);index=resolver(layer,isDrawn),resolvers[layerId]=resolver}else Number.isFinite(indexOverride)?(index=indexOverride+(layerIndices[parentId]||0),resolvers[layerId]=null):index=startIndex;return isDrawn&&index>=startIndex&&(startIndex=index+1),layerIndices[layerId]=index,index};return resolveLayerIndex}},"./node_modules/@deck.gl/core/dist/esm/passes/pass.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Pass}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");class Pass{constructor(gl,props={id:"pass"}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"id",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"gl",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"props",void 0);const{id:id}=props;this.id=id,this.gl=gl,this.props={...props}}setProps(props){Object.assign(this.props,props)}render(params){}cleanup(){}}},"./node_modules/@deck.gl/core/dist/esm/passes/pick-layers-pass.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return PickLayersPass}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_layers_pass__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/layers-pass.js"),_luma_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_utils_log__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js");const PICKING_PARAMETERS={blendFunc:[1,0,32771,0],blendEquation:32774};class PickLayersPass extends _layers_pass__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(...args){super(...args),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"pickZ",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"_colorEncoderState",null)}render(props){return"pickingFBO"in props?this._drawPickingBuffer(props):super.render(props)}_drawPickingBuffer({layers:layers,layerFilter:layerFilter,views:views,viewports:viewports,onViewportActive:onViewportActive,pickingFBO:pickingFBO,deviceRect:{x:x,y:y,width:width,height:height},cullRect:cullRect,effects:effects,pass:pass="picking",pickZ:pickZ,moduleParameters:moduleParameters}){const gl=this.gl;this.pickZ=pickZ;const colorEncoderState=this._resetColorEncoder(pickZ),renderStatus=(0,_luma_gl_core__WEBPACK_IMPORTED_MODULE_2__.s8)(gl,{scissorTest:!0,scissor:[x,y,width,height],clearColor:[0,0,0,0],depthMask:!0,depthTest:!0,depthRange:[0,1],colorMask:[!0,!0,!0,!0],...PICKING_PARAMETERS,blend:!pickZ},(()=>super.render({target:pickingFBO,layers:layers,layerFilter:layerFilter,views:views,viewports:viewports,onViewportActive:onViewportActive,cullRect:cullRect,effects:null==effects?void 0:effects.filter((e=>e.useInPicking)),pass:pass,isPicking:!0,moduleParameters:moduleParameters})));this._colorEncoderState=null;return{decodePickingColor:colorEncoderState&&decodeColor.bind(null,colorEncoderState),stats:renderStatus}}shouldDrawLayer(layer){const{pickable:pickable,operation:operation}=layer.props;return pickable&&operation.includes("draw")||operation.includes("terrain")||operation.includes("mask")}getModuleParameters(){return{pickingActive:1,pickingAttribute:this.pickZ,lightSources:{}}}getLayerParameters(layer,layerIndex,viewport){const pickParameters={...layer.props.parameters},{pickable:pickable,operation:operation}=layer.props;return this._colorEncoderState?pickable&&operation.includes("draw")&&(Object.assign(pickParameters,PICKING_PARAMETERS),pickParameters.blend=!0,pickParameters.blendColor=function encodeColor(encoded,layer,viewport){const{byLayer:byLayer,byAlpha:byAlpha}=encoded;let a,entry=byLayer.get(layer);entry?(entry.viewports.push(viewport),a=entry.a):(a=byLayer.size+1,a<=255?(entry={a:a,layer:layer,viewports:[viewport]},byLayer.set(layer,entry),byAlpha[a]=entry):(_utils_log__WEBPACK_IMPORTED_MODULE_3__.Z.warn("Too many pickable layers, only picking the first 255")(),a=0));return[0,0,0,a/255]}(this._colorEncoderState,layer,viewport)):pickParameters.blend=!1,operation.includes("terrain")&&(pickParameters.blend=!1),pickParameters}_resetColorEncoder(pickZ){return this._colorEncoderState=pickZ?null:{byLayer:new Map,byAlpha:[]},this._colorEncoderState}}function decodeColor(encoded,pickedColor){const entry=encoded.byAlpha[pickedColor[3]];return entry&&{pickedLayer:entry.layer,pickedViewports:entry.viewports,pickedObjectIndex:entry.layer.decodePickingColor(pickedColor)}}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _luma_gl_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/picking/picking.js");__webpack_exports__.Z={inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n // for picking depth values\n picking_setPickingAttribute(position.z / position.w);\n ","vs:DECKGL_FILTER_COLOR":"\n picking_setPickingColor(geometry.pickingColor);\n ","fs:#decl":"\nuniform bool picking_uAttribute;\n ","fs:DECKGL_FILTER_COLOR":{order:99,injection:"\n // use highlight color if this fragment belongs to the selected object.\n color = picking_filterHighlightColor(color);\n\n // use picking color if rendering to picking FBO.\n color = picking_filterPickingColor(color);\n "}},..._luma_gl_core__WEBPACK_IMPORTED_MODULE_0__.q}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project-functions.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return projectPosition},T:function(){return getWorldPosition}});var _lib_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),_viewport_uniforms__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/viewport-uniforms.js"),_viewports_web_mercator_viewport__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/web-mercator-viewport.js"),gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/vec4.js"),gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js");const DEFAULT_COORDINATE_ORIGIN=[0,0,0];function lngLatZToWorldPosition(lngLatZ,viewport,offsetMode=!1){const p=viewport.projectPosition(lngLatZ);if(offsetMode&&viewport instanceof _viewports_web_mercator_viewport__WEBPACK_IMPORTED_MODULE_1__.Z){const[longitude,latitude,z=0]=lngLatZ,distanceScales=viewport.getDistanceScales([longitude,latitude]);p[2]=z*distanceScales.unitsPerMeter[2]}return p}function getWorldPosition(position,{viewport:viewport,modelMatrix:modelMatrix,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,offsetMode:offsetMode}){let[x,y,z=0]=position;switch(modelMatrix&&([x,y,z]=gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_3__.fF([],[x,y,z,1],modelMatrix)),coordinateSystem){case _lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.LNGLAT:return lngLatZToWorldPosition([x,y,z],viewport,offsetMode);case _lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.LNGLAT_OFFSETS:return lngLatZToWorldPosition([x+coordinateOrigin[0],y+coordinateOrigin[1],z+(coordinateOrigin[2]||0)],viewport,offsetMode);case _lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.METER_OFFSETS:return lngLatZToWorldPosition((0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.eG)(coordinateOrigin,[x,y,z]),viewport,offsetMode);case _lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.CARTESIAN:default:return viewport.isGeospatial?[x+coordinateOrigin[0],y+coordinateOrigin[1],z+coordinateOrigin[2]]:viewport.projectPosition([x,y,z])}}function projectPosition(position,params){const{viewport:viewport,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,modelMatrix:modelMatrix,fromCoordinateSystem:fromCoordinateSystem,fromCoordinateOrigin:fromCoordinateOrigin}=function normalizeParameters(opts){const{viewport:viewport,modelMatrix:modelMatrix,coordinateOrigin:coordinateOrigin}=opts;let{coordinateSystem:coordinateSystem,fromCoordinateSystem:fromCoordinateSystem,fromCoordinateOrigin:fromCoordinateOrigin}=opts;return coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.DEFAULT&&(coordinateSystem=viewport.isGeospatial?_lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.LNGLAT:_lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.CARTESIAN),void 0===fromCoordinateSystem&&(fromCoordinateSystem=coordinateSystem),void 0===fromCoordinateOrigin&&(fromCoordinateOrigin=coordinateOrigin),{viewport:viewport,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,modelMatrix:modelMatrix,fromCoordinateSystem:fromCoordinateSystem,fromCoordinateOrigin:fromCoordinateOrigin}}(params),{autoOffset:autoOffset=!0}=params,{geospatialOrigin:geospatialOrigin=DEFAULT_COORDINATE_ORIGIN,shaderCoordinateOrigin:shaderCoordinateOrigin=DEFAULT_COORDINATE_ORIGIN,offsetMode:offsetMode=!1}=autoOffset?(0,_viewport_uniforms__WEBPACK_IMPORTED_MODULE_4__.v)(viewport,coordinateSystem,coordinateOrigin):{},worldPosition=getWorldPosition(position,{viewport:viewport,modelMatrix:modelMatrix,coordinateSystem:fromCoordinateSystem,coordinateOrigin:fromCoordinateOrigin,offsetMode:offsetMode});if(offsetMode){const positionCommonSpace=viewport.projectPosition(geospatialOrigin||shaderCoordinateOrigin);gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_5__.lu(worldPosition,worldPosition,positionCommonSpace)}return worldPosition}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return project}});var fp32=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/fp32/fp32.js");const defines="#define SMOOTH_EDGE_RADIUS 0.5";var geometry={name:"geometry",vs:"\n".concat(defines,"\n\nstruct VertexGeometry {\n vec4 position;\n vec3 worldPosition;\n vec3 worldPositionAlt;\n vec3 normal;\n vec2 uv;\n vec3 pickingColor;\n} geometry = VertexGeometry(\n vec4(0.0, 0.0, 1.0, 0.0),\n vec3(0.0),\n vec3(0.0),\n vec3(0.0),\n vec2(0.0),\n vec3(0.0)\n);\n"),fs:"\n".concat(defines,"\n\nstruct FragmentGeometry {\n vec2 uv;\n} geometry;\n\nfloat smoothedge(float edge, float x) {\n return smoothstep(edge - SMOOTH_EDGE_RADIUS, edge + SMOOTH_EDGE_RADIUS, x);\n}\n")},constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");const COORDINATE_SYSTEM_GLSL_CONSTANTS=Object.keys(constants.COORDINATE_SYSTEM).map((key=>"const int COORDINATE_SYSTEM_".concat(key," = ").concat(constants.COORDINATE_SYSTEM[key],";"))).join(""),PROJECTION_MODE_GLSL_CONSTANTS=Object.keys(constants.zG).map((key=>"const int PROJECTION_MODE_".concat(key," = ").concat(constants.zG[key],";"))).join(""),UNIT_GLSL_CONSTANTS=Object.keys(constants.iI).map((key=>"const int UNIT_".concat(key.toUpperCase()," = ").concat(constants.iI[key],";"))).join("");var project_glsl="".concat(COORDINATE_SYSTEM_GLSL_CONSTANTS,"\n").concat(PROJECTION_MODE_GLSL_CONSTANTS,"\n").concat(UNIT_GLSL_CONSTANTS,"\n\nuniform int project_uCoordinateSystem;\nuniform int project_uProjectionMode;\nuniform float project_uScale;\nuniform bool project_uWrapLongitude;\nuniform vec3 project_uCommonUnitsPerMeter;\nuniform vec3 project_uCommonUnitsPerWorldUnit;\nuniform vec3 project_uCommonUnitsPerWorldUnit2;\nuniform vec4 project_uCenter;\nuniform mat4 project_uModelMatrix;\nuniform mat4 project_uViewProjectionMatrix;\nuniform vec2 project_uViewportSize;\nuniform float project_uDevicePixelRatio;\nuniform float project_uFocalDistance;\nuniform vec3 project_uCameraPosition;\nuniform vec3 project_uCoordinateOrigin;\nuniform vec3 project_uCommonOrigin;\nuniform bool project_uPseudoMeters;\n\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / (PI * 2.0);\nconst vec3 ZERO_64_LOW = vec3(0.0);\nconst float EARTH_RADIUS = 6370972.0;\nconst float GLOBE_RADIUS = 256.0;\nfloat project_size_at_latitude(float lat) {\n float y = clamp(lat, -89.9, 89.9);\n return 1.0 / cos(radians(y));\n}\n\nfloat project_size() {\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR &&\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT &&\n project_uPseudoMeters == false) {\n \n if (geometry.position.w == 0.0) {\n return project_size_at_latitude(geometry.worldPosition.y);\n }\n \n float y = geometry.position.y / TILE_SIZE * 2.0 - 1.0;\n float y2 = y * y;\n float y4 = y2 * y2;\n float y6 = y4 * y2;\n return 1.0 + 4.9348 * y2 + 4.0587 * y4 + 1.5642 * y6;\n }\n return 1.0;\n}\n\nfloat project_size_at_latitude(float meters, float lat) {\n return meters * project_uCommonUnitsPerMeter.z * project_size_at_latitude(lat);\n}\nfloat project_size(float meters) {\n return meters * project_uCommonUnitsPerMeter.z * project_size();\n}\n\nvec2 project_size(vec2 meters) {\n return meters * project_uCommonUnitsPerMeter.xy * project_size();\n}\n\nvec3 project_size(vec3 meters) {\n return meters * project_uCommonUnitsPerMeter * project_size();\n}\n\nvec4 project_size(vec4 meters) {\n return vec4(meters.xyz * project_uCommonUnitsPerMeter, meters.w);\n}\nmat3 project_get_orientation_matrix(vec3 up) {\n vec3 uz = normalize(up);\n vec3 ux = abs(uz.z) == 1.0 ? vec3(1.0, 0.0, 0.0) : normalize(vec3(uz.y, -uz.x, 0));\n vec3 uy = cross(uz, ux);\n return mat3(ux, uy, uz);\n}\n\nbool project_needs_rotation(vec3 commonPosition, out mat3 transform) {\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n transform = project_get_orientation_matrix(commonPosition);\n return true;\n }\n return false;\n}\nvec3 project_normal(vec3 vector) {\n vec4 normal_modelspace = project_uModelMatrix * vec4(vector, 0.0);\n vec3 n = normalize(normal_modelspace.xyz * project_uCommonUnitsPerMeter);\n mat3 rotation;\n if (project_needs_rotation(geometry.position.xyz, rotation)) {\n n = rotation * n;\n }\n return n;\n}\n\nvec4 project_offset_(vec4 offset) {\n float dy = offset.y;\n vec3 commonUnitsPerWorldUnit = project_uCommonUnitsPerWorldUnit + project_uCommonUnitsPerWorldUnit2 * dy;\n return vec4(offset.xyz * commonUnitsPerWorldUnit, offset.w);\n}\nvec2 project_mercator_(vec2 lnglat) {\n float x = lnglat.x;\n if (project_uWrapLongitude) {\n x = mod(x + 180., 360.0) - 180.;\n }\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan_fp32(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\nvec3 project_globe_(vec3 lnglatz) {\n float lambda = radians(lnglatz.x);\n float phi = radians(lnglatz.y);\n float cosPhi = cos(phi);\n float D = (lnglatz.z / EARTH_RADIUS + 1.0) * GLOBE_RADIUS;\n\n return vec3(\n sin(lambda) * cosPhi,\n -cos(lambda) * cosPhi,\n sin(phi)\n ) * D;\n}\nvec4 project_position(vec4 position, vec3 position64Low) {\n vec4 position_world = project_uModelMatrix * position;\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_mercator_(position_world.xy),\n project_size_at_latitude(position_world.z, position_world.y),\n position_world.w\n );\n }\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN) {\n position_world.xyz += project_uCoordinateOrigin;\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_globe_(position_world.xyz),\n position_world.w\n );\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n if (abs(position_world.y - project_uCoordinateOrigin.y) > 0.25) {\n return vec4(\n project_mercator_(position_world.xy) - project_uCommonOrigin.xy,\n project_size(position_world.z),\n position_world.w\n );\n }\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_IDENTITY ||\n (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET &&\n (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN))) {\n position_world.xyz -= project_uCoordinateOrigin;\n }\n return project_offset_(position_world) + project_offset_(project_uModelMatrix * vec4(position64Low, 0.0));\n}\n\nvec4 project_position(vec4 position) {\n return project_position(position, ZERO_64_LOW);\n}\n\nvec3 project_position(vec3 position, vec3 position64Low) {\n vec4 projected_position = project_position(vec4(position, 1.0), position64Low);\n return projected_position.xyz;\n}\n\nvec3 project_position(vec3 position) {\n vec4 projected_position = project_position(vec4(position, 1.0), ZERO_64_LOW);\n return projected_position.xyz;\n}\n\nvec2 project_position(vec2 position) {\n vec4 projected_position = project_position(vec4(position, 0.0, 1.0), ZERO_64_LOW);\n return projected_position.xy;\n}\n\nvec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) {\n return viewProjectionMatrix * position + center;\n}\nvec4 project_common_position_to_clipspace(vec4 position) {\n return project_common_position_to_clipspace(position, project_uViewProjectionMatrix, project_uCenter);\n}\nvec2 project_pixel_size_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / project_uViewportSize * project_uDevicePixelRatio * 2.0;\n return offset * project_uFocalDistance;\n}\n\nfloat project_size_to_pixel(float meters) {\n return project_size(meters) * project_uScale;\n}\nfloat project_size_to_pixel(float size, int unit) {\n if (unit == UNIT_METERS) return project_size_to_pixel(size);\n if (unit == UNIT_COMMON) return size * project_uScale;\n return size;\n}\nfloat project_pixel_size(float pixels) {\n return pixels / project_uScale;\n}\nvec2 project_pixel_size(vec2 pixels) {\n return pixels / project_uScale;\n}\n"),viewport_uniforms=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/viewport-uniforms.js");const INITIAL_MODULE_OPTIONS={};var project={name:"project",dependencies:[fp32.O,geometry],vs:project_glsl,getUniforms:function getUniforms(opts=INITIAL_MODULE_OPTIONS){return"viewport"in opts?(0,viewport_uniforms.C)(opts):{}}}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/project/viewport-uniforms.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return getUniformsFromViewport},v:function(){return getOffsetOrigin}});var gl_matrix_mat4__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/mat4.js"),gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/gl-matrix/esm/vec4.js"),_lib_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),_utils_memoize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/memoize.js");const ZERO_VECTOR=[0,0,0,0],VECTOR_TO_POINT_MATRIX=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],IDENTITY_MATRIX=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],DEFAULT_PIXELS_PER_UNIT2=[0,0,0],DEFAULT_COORDINATE_ORIGIN=[0,0,0],getMemoizedViewportUniforms=(0,_utils_memoize__WEBPACK_IMPORTED_MODULE_0__.Z)((function calculateViewportUniforms({viewport:viewport,devicePixelRatio:devicePixelRatio,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin}){const{projectionCenter:projectionCenter,viewProjectionMatrix:viewProjectionMatrix,originCommon:originCommon,cameraPosCommon:cameraPosCommon,shaderCoordinateOrigin:shaderCoordinateOrigin,geospatialOrigin:geospatialOrigin}=function calculateMatrixAndOffset(viewport,coordinateSystem,coordinateOrigin){const{viewMatrixUncentered:viewMatrixUncentered,projectionMatrix:projectionMatrix}=viewport;let{viewMatrix:viewMatrix,viewProjectionMatrix:viewProjectionMatrix}=viewport,projectionCenter=ZERO_VECTOR,originCommon=ZERO_VECTOR,cameraPosCommon=viewport.cameraPosition;const{geospatialOrigin:geospatialOrigin,shaderCoordinateOrigin:shaderCoordinateOrigin,offsetMode:offsetMode}=getOffsetOrigin(viewport,coordinateSystem,coordinateOrigin);offsetMode&&(originCommon=viewport.projectPosition(geospatialOrigin||shaderCoordinateOrigin),cameraPosCommon=[cameraPosCommon[0]-originCommon[0],cameraPosCommon[1]-originCommon[1],cameraPosCommon[2]-originCommon[2]],originCommon[3]=1,projectionCenter=gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_2__.fF([],originCommon,viewProjectionMatrix),viewMatrix=viewMatrixUncentered||viewMatrix,viewProjectionMatrix=gl_matrix_mat4__WEBPACK_IMPORTED_MODULE_3__.Jp([],projectionMatrix,viewMatrix),viewProjectionMatrix=gl_matrix_mat4__WEBPACK_IMPORTED_MODULE_3__.Jp([],viewProjectionMatrix,VECTOR_TO_POINT_MATRIX));return{viewMatrix:viewMatrix,viewProjectionMatrix:viewProjectionMatrix,projectionCenter:projectionCenter,originCommon:originCommon,cameraPosCommon:cameraPosCommon,shaderCoordinateOrigin:shaderCoordinateOrigin,geospatialOrigin:geospatialOrigin}}(viewport,coordinateSystem,coordinateOrigin),distanceScales=viewport.getDistanceScales(),viewportSize=[viewport.width*devicePixelRatio,viewport.height*devicePixelRatio],focalDistance=gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_2__.fF([],[0,0,-viewport.focalDistance,1],viewport.projectionMatrix)[3]||1,uniforms={project_uCoordinateSystem:coordinateSystem,project_uProjectionMode:viewport.projectionMode,project_uCoordinateOrigin:shaderCoordinateOrigin,project_uCommonOrigin:originCommon.slice(0,3),project_uCenter:projectionCenter,project_uPseudoMeters:Boolean(viewport._pseudoMeters),project_uViewportSize:viewportSize,project_uDevicePixelRatio:devicePixelRatio,project_uFocalDistance:focalDistance,project_uCommonUnitsPerMeter:distanceScales.unitsPerMeter,project_uCommonUnitsPerWorldUnit:distanceScales.unitsPerMeter,project_uCommonUnitsPerWorldUnit2:DEFAULT_PIXELS_PER_UNIT2,project_uScale:viewport.scale,project_uWrapLongitude:!1,project_uViewProjectionMatrix:viewProjectionMatrix,project_uModelMatrix:IDENTITY_MATRIX,project_uCameraPosition:cameraPosCommon};if(geospatialOrigin){const distanceScalesAtOrigin=viewport.getDistanceScales(geospatialOrigin);switch(coordinateSystem){case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.METER_OFFSETS:uniforms.project_uCommonUnitsPerWorldUnit=distanceScalesAtOrigin.unitsPerMeter,uniforms.project_uCommonUnitsPerWorldUnit2=distanceScalesAtOrigin.unitsPerMeter2;break;case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT:case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT_OFFSETS:viewport._pseudoMeters||(uniforms.project_uCommonUnitsPerMeter=distanceScalesAtOrigin.unitsPerMeter),uniforms.project_uCommonUnitsPerWorldUnit=distanceScalesAtOrigin.unitsPerDegree,uniforms.project_uCommonUnitsPerWorldUnit2=distanceScalesAtOrigin.unitsPerDegree2;break;case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.CARTESIAN:uniforms.project_uCommonUnitsPerWorldUnit=[1,1,distanceScalesAtOrigin.unitsPerMeter[2]],uniforms.project_uCommonUnitsPerWorldUnit2=[0,0,distanceScalesAtOrigin.unitsPerMeter2[2]]}}return uniforms}));function getOffsetOrigin(viewport,coordinateSystem,coordinateOrigin=DEFAULT_COORDINATE_ORIGIN){coordinateOrigin.length<3&&(coordinateOrigin=[coordinateOrigin[0],coordinateOrigin[1],0]);let geospatialOrigin,shaderCoordinateOrigin=coordinateOrigin,offsetMode=!0;switch(geospatialOrigin=coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT_OFFSETS||coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.METER_OFFSETS?coordinateOrigin:viewport.isGeospatial?[Math.fround(viewport.longitude),Math.fround(viewport.latitude),0]:null,viewport.projectionMode){case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.zG.WEB_MERCATOR:coordinateSystem!==_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT&&coordinateSystem!==_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.CARTESIAN||(geospatialOrigin=[0,0,0],offsetMode=!1);break;case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.zG.WEB_MERCATOR_AUTO_OFFSET:coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT?shaderCoordinateOrigin=geospatialOrigin:coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.CARTESIAN&&(shaderCoordinateOrigin=[Math.fround(viewport.center[0]),Math.fround(viewport.center[1]),0],geospatialOrigin=viewport.unprojectPosition(shaderCoordinateOrigin),shaderCoordinateOrigin[0]-=coordinateOrigin[0],shaderCoordinateOrigin[1]-=coordinateOrigin[1],shaderCoordinateOrigin[2]-=coordinateOrigin[2]);break;case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.zG.IDENTITY:shaderCoordinateOrigin=viewport.position.map(Math.fround),shaderCoordinateOrigin[2]=shaderCoordinateOrigin[2]||0;break;case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.zG.GLOBE:offsetMode=!1,geospatialOrigin=null;break;default:offsetMode=!1}return{geospatialOrigin:geospatialOrigin,shaderCoordinateOrigin:shaderCoordinateOrigin,offsetMode:offsetMode}}function getUniformsFromViewport({viewport:viewport,devicePixelRatio:devicePixelRatio=1,modelMatrix:modelMatrix=null,coordinateSystem:coordinateSystem=_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.DEFAULT,coordinateOrigin:coordinateOrigin=DEFAULT_COORDINATE_ORIGIN,autoWrapLongitude:autoWrapLongitude=!1}){coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.DEFAULT&&(coordinateSystem=viewport.isGeospatial?_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT:_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.CARTESIAN);const uniforms=getMemoizedViewportUniforms({viewport:viewport,devicePixelRatio:devicePixelRatio,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin});return uniforms.project_uWrapLongitude=autoWrapLongitude,uniforms.project_uModelMatrix=modelMatrix||IDENTITY_MATRIX,uniforms}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _project_project__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js");__webpack_exports__.Z={name:"project32",dependencies:[_project_project__WEBPACK_IMPORTED_MODULE_0__.Z],vs:"\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64Low, vec3 offset, out vec4 commonPosition\n) {\n vec3 projectedPosition = project_position(position, position64Low);\n mat3 rotation;\n if (project_needs_rotation(projectedPosition, rotation)) {\n // offset is specified as ENU\n // when in globe projection, rotate offset so that the ground alighs with the surface of the globe\n offset = rotation * offset;\n }\n commonPosition = vec4(projectedPosition + offset, 1.0);\n return project_common_position_to_clipspace(commonPosition);\n}\n\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64Low, vec3 offset\n) {\n vec4 commonPosition;\n return project_position_to_clipspace(position, position64Low, offset, commonPosition);\n}\n"}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/shadow/shadow.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _lib_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),_project_project__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),_utils_memoize__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/memoize.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js");const getMemoizedViewportCenterPosition=(0,_utils_memoize__WEBPACK_IMPORTED_MODULE_1__.Z)((function getViewportCenterPosition({viewport:viewport,center:center}){return new _math_gl_core__WEBPACK_IMPORTED_MODULE_2__.Z(viewport.viewProjectionMatrix).invert().transform(center)})),getMemoizedViewProjectionMatrices=(0,_utils_memoize__WEBPACK_IMPORTED_MODULE_1__.Z)((function getViewProjectionMatrices({viewport:viewport,shadowMatrices:shadowMatrices}){const projectionMatrices=[],pixelUnprojectionMatrix=viewport.pixelUnprojectionMatrix,farZ=viewport.isGeospatial?void 0:1,corners=[[0,0,farZ],[viewport.width,0,farZ],[0,viewport.height,farZ],[viewport.width,viewport.height,farZ],[0,0,-1],[viewport.width,0,-1],[0,viewport.height,-1],[viewport.width,viewport.height,-1]].map((pixel=>function screenToCommonSpace(xyz,pixelUnprojectionMatrix){const[x,y,z]=xyz,coord=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.CT)([x,y,z],pixelUnprojectionMatrix);if(Number.isFinite(z))return coord;return[coord[0],coord[1],0]}(pixel,pixelUnprojectionMatrix)));for(const shadowMatrix of shadowMatrices){const viewMatrix=shadowMatrix.clone().translate(new _math_gl_core__WEBPACK_IMPORTED_MODULE_3__.Z(viewport.center).negate()),positions=corners.map((corner=>viewMatrix.transform(corner))),projectionMatrix=(new _math_gl_core__WEBPACK_IMPORTED_MODULE_2__.Z).ortho({left:Math.min(...positions.map((position=>position[0]))),right:Math.max(...positions.map((position=>position[0]))),bottom:Math.min(...positions.map((position=>position[1]))),top:Math.max(...positions.map((position=>position[1]))),near:Math.min(...positions.map((position=>-position[2]))),far:Math.max(...positions.map((position=>-position[2])))});projectionMatrices.push(projectionMatrix.multiplyRight(shadowMatrix))}return projectionMatrices})),DEFAULT_SHADOW_COLOR=[0,0,0,1],VECTOR_TO_POINT_MATRIX=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0];__webpack_exports__.Z={name:"shadow",dependencies:[_project_project__WEBPACK_IMPORTED_MODULE_5__.Z],vs:"\nconst int max_lights = 2;\nuniform mat4 shadow_uViewProjectionMatrices[max_lights];\nuniform vec4 shadow_uProjectCenters[max_lights];\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform int shadow_uLightId;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nvec4 shadow_setVertexPosition(vec4 position_commonspace) {\n if (shadow_uDrawShadowMap) {\n return project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[shadow_uLightId], shadow_uProjectCenters[shadow_uLightId]);\n }\n if (shadow_uUseShadowMap) {\n for (int i = 0; i < max_lights; i++) {\n if(i < int(shadow_uLightCount)) {\n vec4 shadowMap_position = project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[i], shadow_uProjectCenters[i]);\n shadow_vPosition[i] = (shadowMap_position.xyz / shadowMap_position.w + 1.0) / 2.0;\n }\n }\n }\n return gl_Position;\n}\n",fs:"\nconst int max_lights = 2;\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform sampler2D shadow_uShadowMap0;\nuniform sampler2D shadow_uShadowMap1;\nuniform vec4 shadow_uColor;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nconst vec4 bitPackShift = vec4(1.0, 255.0, 65025.0, 16581375.0);\nconst vec4 bitUnpackShift = 1.0 / bitPackShift;\nconst vec4 bitMask = vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n\nfloat shadow_getShadowWeight(vec3 position, sampler2D shadowMap) {\n vec4 rgbaDepth = texture2D(shadowMap, position.xy);\n\n float z = dot(rgbaDepth, bitUnpackShift);\n return smoothstep(0.001, 0.01, position.z - z);\n}\n\nvec4 shadow_filterShadowColor(vec4 color) {\n if (shadow_uDrawShadowMap) {\n vec4 rgbaDepth = fract(gl_FragCoord.z * bitPackShift);\n rgbaDepth -= rgbaDepth.gbaa * bitMask;\n return rgbaDepth;\n }\n if (shadow_uUseShadowMap) {\n float shadowAlpha = 0.0;\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[0], shadow_uShadowMap0);\n if(shadow_uLightCount > 1.0) {\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[1], shadow_uShadowMap1);\n }\n shadowAlpha *= shadow_uColor.a / shadow_uLightCount;\n float blendedAlpha = shadowAlpha + color.a * (1.0 - shadowAlpha);\n\n return vec4(\n mix(color.rgb, shadow_uColor.rgb, shadowAlpha / blendedAlpha),\n blendedAlpha\n );\n }\n return color;\n}\n",inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n position = shadow_setVertexPosition(geometry.position);\n ","fs:DECKGL_FILTER_COLOR":"\n color = shadow_filterShadowColor(color);\n "},getUniforms:(opts={},context={})=>"viewport"in opts&&(opts.drawToShadowMap||opts.shadowMaps&&opts.shadowMaps.length>0)?function createShadowUniforms(opts,context){const{shadowEnabled:shadowEnabled=!0}=opts;if(!shadowEnabled||!opts.shadowMatrices||!opts.shadowMatrices.length)return{shadow_uDrawShadowMap:!1,shadow_uUseShadowMap:!1};const uniforms={shadow_uDrawShadowMap:Boolean(opts.drawToShadowMap),shadow_uUseShadowMap:!!opts.shadowMaps&&opts.shadowMaps.length>0,shadow_uColor:opts.shadowColor||DEFAULT_SHADOW_COLOR,shadow_uLightId:opts.shadowLightId||0,shadow_uLightCount:opts.shadowMatrices.length},center=getMemoizedViewportCenterPosition({viewport:opts.viewport,center:context.project_uCenter}),projectCenters=[],viewProjectionMatrices=getMemoizedViewProjectionMatrices({shadowMatrices:opts.shadowMatrices,viewport:opts.viewport}).slice();for(let i=0;i0?uniforms["shadow_uShadowMap".concat(i)]=opts.shadowMaps[i]:uniforms["shadow_uShadowMap".concat(i)]=opts.dummyShadowMap;return uniforms}(opts,context):{}}},"./node_modules/@deck.gl/core/dist/esm/transitions/linear-interpolator.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return LinearInterpolator}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_transition_interpolator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/transition-interpolator.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js");const DEFAULT_PROPS=["longitude","latitude","zoom","bearing","pitch"],DEFAULT_REQUIRED_PROPS=["longitude","latitude","zoom"];class LinearInterpolator extends _transition_interpolator__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(opts={}){const transitionProps=Array.isArray(opts)?opts:opts.transitionProps,normalizedOpts=Array.isArray(opts)?{}:opts;normalizedOpts.transitionProps=Array.isArray(transitionProps)?{compare:transitionProps,required:transitionProps}:transitionProps||{compare:DEFAULT_PROPS,required:DEFAULT_REQUIRED_PROPS},super(normalizedOpts.transitionProps),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"opts",void 0),this.opts=normalizedOpts}initializeProps(startProps,endProps){const result=super.initializeProps(startProps,endProps),{makeViewport:makeViewport,around:around}=this.opts;if(makeViewport&&around){const startViewport=makeViewport(startProps),endViewport=makeViewport(endProps),aroundPosition=startViewport.unproject(around);result.start.around=around,Object.assign(result.end,{around:endViewport.project(aroundPosition),aroundPosition:aroundPosition,width:endProps.width,height:endProps.height})}return result}interpolateProps(startProps,endProps,t){const propsInTransition={};for(const key of this._propsToExtract)propsInTransition[key]=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.t7)(startProps[key]||0,endProps[key]||0,t);if(endProps.aroundPosition&&this.opts.makeViewport){const viewport=this.opts.makeViewport({...endProps,...propsInTransition});Object.assign(propsInTransition,viewport.panByPosition(endProps.aroundPosition,(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.t7)(startProps.around,endProps.around,t)))}return propsInTransition}}},"./node_modules/@deck.gl/core/dist/esm/transitions/transition-interpolator.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TransitionInterpolator}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js");class TransitionInterpolator{constructor(opts){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_propsToCompare",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_propsToExtract",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_requiredProps",void 0);const{compare:compare,extract:extract,required:required}=opts;this._propsToCompare=compare,this._propsToExtract=extract||compare,this._requiredProps=required}arePropsEqual(currentProps,nextProps){for(const key of this._propsToCompare)if(!(key in currentProps)||!(key in nextProps)||!(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_1__.fS)(currentProps[key],nextProps[key]))return!1;return!0}initializeProps(startProps,endProps){const startViewStateProps={},endViewStateProps={};for(const key of this._propsToExtract)(key in startProps||key in endProps)&&(startViewStateProps[key]=startProps[key],endViewStateProps[key]=endProps[key]);return this._checkRequiredProps(startViewStateProps),this._checkRequiredProps(endViewStateProps),{start:startViewStateProps,end:endViewStateProps}}getDuration(startProps,endProps){return endProps.transitionDuration}_checkRequiredProps(props){this._requiredProps&&this._requiredProps.forEach((propName=>{const value=props[propName];(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(Number.isFinite(value)||Array.isArray(value),"".concat(propName," is required for transition"))}))}}},"./node_modules/@deck.gl/core/dist/esm/transitions/transition.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Transition}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");class Transition{constructor(timeline){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_inProgress",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_handle",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_timeline",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"time",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"settings",void 0),this._inProgress=!1,this._handle=null,this._timeline=timeline,this.time=0,this.settings={duration:0}}get inProgress(){return this._inProgress}start(settings){var _this$settings$onStar,_this$settings;this.cancel(),this.settings=settings,this._inProgress=!0,null===(_this$settings$onStar=(_this$settings=this.settings).onStart)||void 0===_this$settings$onStar||_this$settings$onStar.call(_this$settings,this)}end(){var _this$settings$onEnd,_this$settings2;this._inProgress&&(this._timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1,null===(_this$settings$onEnd=(_this$settings2=this.settings).onEnd)||void 0===_this$settings$onEnd||_this$settings$onEnd.call(_this$settings2,this))}cancel(){var _this$settings$onInte,_this$settings3;this._inProgress&&(null===(_this$settings$onInte=(_this$settings3=this.settings).onInterrupt)||void 0===_this$settings$onInte||_this$settings$onInte.call(_this$settings3,this),this._timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1)}update(){var _this$settings$onUpda,_this$settings4;if(!this._inProgress)return!1;if(null===this._handle){const{_timeline:timeline,settings:settings}=this;this._handle=timeline.addChannel({delay:timeline.getTime(),duration:settings.duration})}return this.time=this._timeline.getTime(this._handle),this._onUpdate(),null===(_this$settings$onUpda=(_this$settings4=this.settings).onUpdate)||void 0===_this$settings$onUpda||_this$settings$onUpda.call(_this$settings4,this),this._timeline.isFinished(this._handle)&&this.end(),!0}_onUpdate(){}}},"./node_modules/@deck.gl/core/dist/esm/utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"deck.gl: assertion failed.")}__webpack_require__.d(__webpack_exports__,{Z:function(){return assert}})},"./node_modules/@deck.gl/core/dist/esm/utils/count.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return count}});const ERR_NOT_OBJECT="count(): argument not an object",ERR_NOT_CONTAINER="count(): argument not a container";function count(container){if(!function isObject(value){return null!==value&&"object"==typeof value}(container))throw new Error(ERR_NOT_OBJECT);if("function"==typeof container.count)return container.count();if(Number.isFinite(container.size))return container.size;if(Number.isFinite(container.length))return container.length;if(function isPlainObject(value){return null!==value&&"object"==typeof value&&value.constructor===Object}(container))return Object.keys(container).length;throw new Error(ERR_NOT_CONTAINER)}},"./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function deepEqual(a,b,depth){if(a===b)return!0;if(!depth||!a||!b)return!1;if(Array.isArray(a)){if(!Array.isArray(b)||a.length!==b.length)return!1;for(let i=0;i!0)){return Array.isArray(array)?flattenArray(array,filter,[]):filter(array)?[array]:[]}function flattenArray(array,filter,result){let index=-1;for(;++index0&&(placeholderArray.length=data.length,iterable=placeholderArray):iterable=EMPTY_ARRAY,(startRow>0||Number.isFinite(endRow))&&(iterable=(Array.isArray(iterable)?iterable:Array.from(iterable)).slice(startRow,endRow),objectInfo.index=startRow-1),{iterable:iterable,objectInfo:objectInfo}}function isAsyncIterable(data){return data&&data[Symbol.asyncIterator]}function getAccessorFromBuffer(typedArray,options){const{size:size,stride:stride,offset:offset,startIndices:startIndices,nested:nested}=options,bytesPerElement=typedArray.BYTES_PER_ELEMENT,elementStride=stride?stride/bytesPerElement:size,elementOffset=offset?offset/bytesPerElement:0,vertexCount=Math.floor((typedArray.length-elementOffset)/elementStride);return(_,{index:index,target:target})=>{if(!startIndices){const sourceIndex=index*elementStride+elementOffset;for(let j=0;j{for(const key in args)if(!isEqual(args[key],cachedArgs[key])){cachedResult=compute(args),cachedArgs=args;break}return cachedResult}}__webpack_require__.d(__webpack_exports__,{Z:function(){return memoize}})},"./node_modules/@deck.gl/core/dist/esm/utils/shader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function mergeShaders(target,source){if(!source)return target;const result={...target,...source};if("defines"in source&&(result.defines={...target.defines,...source.defines}),"modules"in source&&(result.modules=(target.modules||[]).concat(source.modules),source.modules.some((module=>"project64"===module.name)))){const index=result.modules.findIndex((module=>"project32"===module.name));index>=0&&result.modules.splice(index,1)}if("inject"in source)if(target.inject){const mergedInjection={...target.inject};for(const key in source.inject)mergedInjection[key]=(mergedInjection[key]||"")+source.inject[key];result.inject=mergedInjection}else result.inject=source.inject;return result}__webpack_require__.d(__webpack_exports__,{l:function(){return mergeShaders}})},"./node_modules/@deck.gl/core/dist/esm/utils/typed-array-manager.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");__webpack_exports__.Z=new class TypedArrayManager{constructor(options={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_pool",[]),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"opts",{overAlloc:2,poolSize:100}),this.setOptions(options)}setOptions(options){Object.assign(this.opts,options)}allocate(typedArray,count,{size:size=1,type:type,padding:padding=0,copy:copy=!1,initialize:initialize=!1,maxCount:maxCount}){const Type=type||typedArray&&typedArray.constructor||Float32Array,newSize=count*size+padding;if(ArrayBuffer.isView(typedArray)){if(newSize<=typedArray.length)return typedArray;if(newSize*typedArray.BYTES_PER_ELEMENT<=typedArray.buffer.byteLength)return new Type(typedArray.buffer,0,newSize)}let maxSize=1/0;maxCount&&(maxSize=maxCount*size+padding);const newArray=this._allocate(Type,newSize,initialize,maxSize);return typedArray&©?newArray.set(typedArray):initialize||newArray.fill(0,0,4),this._release(typedArray),newArray}release(typedArray){this._release(typedArray)}_allocate(Type,size,initialize,maxSize){let sizeToAllocate=Math.max(Math.ceil(size*this.opts.overAlloc),1);sizeToAllocate>maxSize&&(sizeToAllocate=maxSize);const pool=this._pool,byteLength=Type.BYTES_PER_ELEMENT*sizeToAllocate,i=pool.findIndex((b=>b.byteLength>=byteLength));if(i>=0){const array=new Type(pool.splice(i,1)[0],0,sizeToAllocate);return initialize&&array.fill(0),array}return new Type(sizeToAllocate)}_release(typedArray){if(!ArrayBuffer.isView(typedArray))return;const pool=this._pool,{buffer:buffer}=typedArray,{byteLength:byteLength}=buffer,i=pool.findIndex((b=>b.byteLength>=byteLength));i<0?pool.push(buffer):(i>0||pool.lengththis.opts.poolSize&&pool.shift()}}},"./node_modules/@deck.gl/core/dist/esm/viewports/orthographic-viewport.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return OrthographicViewport}});var _viewports_viewport__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js"),gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/gl-matrix/esm/vec2.js");const viewMatrix=(new _math_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z).lookAt({eye:[0,0,1]});function getProjectionMatrix({width:width,height:height,near:near,far:far,padding:padding}){let left=-width/2,right=width/2,bottom=-height/2,top=height/2;if(padding){const{left:l=0,right:r=0,top:t=0,bottom:b=0}=padding,offsetX=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)((l+width-r)/2,0,width)-width/2,offsetY=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)((t+height-b)/2,0,height)-height/2;left-=offsetX,right-=offsetX,bottom+=offsetY,top+=offsetY}return(new _math_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z).ortho({left:left,right:right,bottom:bottom,top:top,near:near,far:far})}class OrthographicViewport extends _viewports_viewport__WEBPACK_IMPORTED_MODULE_3__.Z{constructor(props){const{width:width,height:height,near:near=.1,far:far=1e3,zoom:zoom=0,target:target=[0,0,0],padding:padding=null,flipY:flipY=!0}=props,zoomX=Array.isArray(zoom)?zoom[0]:zoom,zoomY=Array.isArray(zoom)?zoom[1]:zoom,zoom_=Math.min(zoomX,zoomY),scale=Math.pow(2,zoom_);let distanceScales;if(zoomX!==zoomY){const scaleX=Math.pow(2,zoomX),scaleY=Math.pow(2,zoomY);distanceScales={unitsPerMeter:[scaleX/scale,scaleY/scale,1],metersPerUnit:[scale/scaleX,scale/scaleY,1]}}super({...props,longitude:void 0,position:target,viewMatrix:viewMatrix.clone().scale([scale,scale*(flipY?-1:1),scale]),projectionMatrix:getProjectionMatrix({width:width||1,height:height||1,padding:padding,near:near,far:far}),zoom:zoom_,distanceScales:distanceScales})}projectFlat([X,Y]){const{unitsPerMeter:unitsPerMeter}=this.distanceScales;return[X*unitsPerMeter[0],Y*unitsPerMeter[1]]}unprojectFlat([x,y]){const{metersPerUnit:metersPerUnit}=this.distanceScales;return[x*metersPerUnit[0],y*metersPerUnit[1]]}panByPosition(coords,pixel){const fromLocation=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.CT)(pixel,this.pixelUnprojectionMatrix),toLocation=this.projectFlat(coords),translate=gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_4__.IH([],toLocation,gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_4__.tk([],fromLocation)),newCenter=gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_4__.IH([],this.center,translate);return{target:this.unprojectFlat(newCenter)}}}},"./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Viewport}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_utils_log__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),_utils_math_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/math-utils.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),gl_matrix_mat4__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/gl-matrix/esm/mat4.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js"),_lib_constants__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");const DEGREES_TO_RADIANS=Math.PI/180,IDENTITY=(0,_utils_math_utils__WEBPACK_IMPORTED_MODULE_1__.bS)(),ZERO_VECTOR=[0,0,0],DEFAULT_DISTANCE_SCALES={unitsPerMeter:[1,1,1],metersPerUnit:[1,1,1]};class Viewport{constructor(opts={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"id",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"x",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"y",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"width",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"height",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"padding",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"isGeospatial",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"zoom",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"focalDistance",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"position",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"modelMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"distanceScales",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"scale",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"center",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"cameraPosition",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"projectionMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"viewMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"viewMatrixUncentered",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"viewMatrixInverse",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"viewProjectionMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"pixelProjectionMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"pixelUnprojectionMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"resolution",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"_frustumPlanes",{}),this.id=opts.id||this.constructor.displayName||"viewport",this.x=opts.x||0,this.y=opts.y||0,this.width=opts.width||1,this.height=opts.height||1,this.zoom=opts.zoom||0,this.padding=opts.padding,this.distanceScales=opts.distanceScales||DEFAULT_DISTANCE_SCALES,this.focalDistance=opts.focalDistance||1,this.position=opts.position||ZERO_VECTOR,this.modelMatrix=opts.modelMatrix||null;const{longitude:longitude,latitude:latitude}=opts;this.isGeospatial=Number.isFinite(latitude)&&Number.isFinite(longitude),this._initProps(opts),this._initMatrices(opts),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}get subViewports(){return null}get metersPerPixel(){return this.distanceScales.metersPerUnit[2]/this.scale}get projectionMode(){return this.isGeospatial?this.zoom<12?_lib_constants__WEBPACK_IMPORTED_MODULE_5__.zG.WEB_MERCATOR:_lib_constants__WEBPACK_IMPORTED_MODULE_5__.zG.WEB_MERCATOR_AUTO_OFFSET:_lib_constants__WEBPACK_IMPORTED_MODULE_5__.zG.IDENTITY}equals(viewport){return viewport instanceof Viewport&&(this===viewport||viewport.width===this.width&&viewport.height===this.height&&viewport.scale===this.scale&&(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_3__.fS)(viewport.projectionMatrix,this.projectionMatrix)&&(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_3__.fS)(viewport.viewMatrix,this.viewMatrix))}project(xyz,{topLeft:topLeft=!0}={}){const worldPosition=this.projectPosition(xyz),coord=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.aW)(worldPosition,this.pixelProjectionMatrix),[x,y]=coord,y2=topLeft?y:this.height-y;return 2===xyz.length?[x,y2]:[x,y2,coord[2]]}unproject(xyz,{topLeft:topLeft=!0,targetZ:targetZ}={}){const[x,y,z]=xyz,y2=topLeft?y:this.height-y,targetZWorld=targetZ&&targetZ*this.distanceScales.unitsPerMeter[2],coord=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.CT)([x,y2,z],this.pixelUnprojectionMatrix,targetZWorld),[X,Y,Z]=this.unprojectPosition(coord);return Number.isFinite(z)?[X,Y,Z]:Number.isFinite(targetZ)?[X,Y,targetZ]:[X,Y]}projectPosition(xyz){const[X,Y]=this.projectFlat(xyz);return[X,Y,(xyz[2]||0)*this.distanceScales.unitsPerMeter[2]]}unprojectPosition(xyz){const[X,Y]=this.unprojectFlat(xyz);return[X,Y,(xyz[2]||0)*this.distanceScales.metersPerUnit[2]]}projectFlat(xyz){if(this.isGeospatial){const result=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.w5)(xyz);return result[1]=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_3__.uZ)(result[1],-318,830),result}return xyz}unprojectFlat(xyz){return this.isGeospatial?(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.es)(xyz):xyz}getBounds(options={}){const unprojectOption={targetZ:options.z||0},topLeft=this.unproject([0,0],unprojectOption),topRight=this.unproject([this.width,0],unprojectOption),bottomLeft=this.unproject([0,this.height],unprojectOption),bottomRight=this.unproject([this.width,this.height],unprojectOption);return[Math.min(topLeft[0],topRight[0],bottomLeft[0],bottomRight[0]),Math.min(topLeft[1],topRight[1],bottomLeft[1],bottomRight[1]),Math.max(topLeft[0],topRight[0],bottomLeft[0],bottomRight[0]),Math.max(topLeft[1],topRight[1],bottomLeft[1],bottomRight[1])]}getDistanceScales(coordinateOrigin){return coordinateOrigin?(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.ro)({longitude:coordinateOrigin[0],latitude:coordinateOrigin[1],highPrecision:!0}):this.distanceScales}containsPixel({x:x,y:y,width:width=1,height:height=1}){return x=3){const relative="%"===match[2],position=parseFloat(match[1]);return{position:relative?position/100:position,relative:relative}}default:throw new Error("Could not parse position string ".concat(value))}}function getPosition(position,extent){return position.relative?Math.round(position.position*extent):position.position}var deep_equal=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js"),assert=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js");class View{constructor(props){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"viewportInstance",void 0),(0,defineProperty.Z)(this,"_x",void 0),(0,defineProperty.Z)(this,"_y",void 0),(0,defineProperty.Z)(this,"_width",void 0),(0,defineProperty.Z)(this,"_height",void 0),(0,defineProperty.Z)(this,"_padding",void 0),(0,defineProperty.Z)(this,"props",void 0);const{id:id,x:x=0,y:y=0,width:width="100%",height:height="100%",padding:padding=null,viewportInstance:viewportInstance}=props||{};(0,assert.Z)(!viewportInstance||viewportInstance instanceof viewport.Z),this.viewportInstance=viewportInstance,this.id=id||this.constructor.displayName||"view",this.props={...props,id:this.id},this._x=parsePosition(x),this._y=parsePosition(y),this._width=parsePosition(width),this._height=parsePosition(height),this._padding=padding&&{left:parsePosition(padding.left||0),right:parsePosition(padding.right||0),top:parsePosition(padding.top||0),bottom:parsePosition(padding.bottom||0)},this.equals=this.equals.bind(this),Object.seal(this)}equals(view){return this===view||(this.viewportInstance?!!view.viewportInstance&&this.viewportInstance.equals(view.viewportInstance):this.ViewportType===view.ViewportType&&(0,deep_equal.v)(this.props,view.props,2))}makeViewport({width:width,height:height,viewState:viewState}){if(this.viewportInstance)return this.viewportInstance;viewState=this.filterViewState(viewState);const viewportDimensions=this.getDimensions({width:width,height:height});return viewportDimensions.height&&viewportDimensions.width?new this.ViewportType({...viewState,...this.props,...viewportDimensions}):null}getViewStateId(){const{viewState:viewState}=this.props;return"string"==typeof viewState?viewState:(null==viewState?void 0:viewState.id)||this.id}filterViewState(viewState){if(this.props.viewState&&"object"==typeof this.props.viewState){if(!this.props.viewState.id)return this.props.viewState;const newViewState={...viewState};for(const key in this.props.viewState)"id"!==key&&(newViewState[key]=this.props.viewState[key]);return newViewState}return viewState}getDimensions({width:width,height:height}){const dimensions={x:getPosition(this._x,width),y:getPosition(this._y,height),width:getPosition(this._width,width),height:getPosition(this._height,height)};return this._padding&&(dimensions.padding={left:getPosition(this._padding.left,width),top:getPosition(this._padding.top,height),right:getPosition(this._padding.right,width),bottom:getPosition(this._padding.bottom,height)}),dimensions}get controller(){const opts=this.props.controller;return opts?!0===opts?{type:this.ControllerType}:"function"==typeof opts?{type:opts}:{type:this.ControllerType,...opts}:null}}},"./node_modules/@deck.gl/layers/dist/esm/icon-layer/icon-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return IconLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),copy_and_blit=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),load=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js"),iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js");const noop=()=>{},DEFAULT_TEXTURE_PARAMETERS={10241:9987,10240:9729,10242:33071,10243:33071};function resizeImage(ctx,imageData,maxWidth,maxHeight){const resizeRatio=Math.min(maxWidth/imageData.width,maxHeight/imageData.height),width=Math.floor(imageData.width*resizeRatio),height=Math.floor(imageData.height*resizeRatio);return 1===resizeRatio?{data:imageData,width:width,height:height}:(ctx.canvas.height=height,ctx.canvas.width=width,ctx.clearRect(0,0,width,height),ctx.drawImage(imageData,0,0,imageData.width,imageData.height,0,0,width,height),{data:ctx.canvas,width:width,height:height})}function getIconId(icon){return icon&&(icon.id||icon.url)}function buildRowMapping(mapping,columns,yOffset){for(let i=0;i0){const{mapping:mapping,xOffset:xOffset,yOffset:yOffset,rowHeight:rowHeight,canvasHeight:canvasHeight}=function buildMapping({icons:icons,buffer:buffer,mapping:mapping={},xOffset:xOffset=0,yOffset:yOffset=0,rowHeight:rowHeight=0,canvasWidth:canvasWidth}){let columns=[];for(let i=0;icanvasWidth&&(buildRowMapping(mapping,columns,yOffset),xOffset=0,yOffset=rowHeight+yOffset+buffer,rowHeight=0,columns=[]),columns.push({icon:icon,xOffset:xOffset}),xOffset=xOffset+width+buffer,rowHeight=Math.max(rowHeight,height)}}return columns.length>0&&buildRowMapping(mapping,columns,yOffset),{mapping:mapping,rowHeight:rowHeight,xOffset:xOffset,yOffset:yOffset,canvasWidth:canvasWidth,canvasHeight:(number=rowHeight+yOffset+buffer,Math.pow(2,Math.ceil(Math.log2(number))))};var number}({icons:icons,buffer:this._buffer,canvasWidth:this._canvasWidth,mapping:this._mapping,rowHeight:this._rowHeight,xOffset:this._xOffset,yOffset:this._yOffset});this._rowHeight=rowHeight,this._mapping=mapping,this._xOffset=xOffset,this._yOffset=yOffset,this._canvasHeight=canvasHeight,this._texture||(this._texture=new texture_2d.Z(this.gl,{width:this._canvasWidth,height:this._canvasHeight,parameters:this._textureParameters||DEFAULT_TEXTURE_PARAMETERS})),this._texture.height!==this._canvasHeight&&(this._texture=function resizeTexture(texture,width,height,parameters){const oldWidth=texture.width,oldHeight=texture.height,newTexture=new texture_2d.Z(texture.gl,{width:width,height:height,parameters:parameters});return(0,copy_and_blit.Lv)(texture,newTexture,{targetY:0,width:oldWidth,height:oldHeight}),texture.delete(),newTexture}(this._texture,this._canvasWidth,this._canvasHeight,this._textureParameters||DEFAULT_TEXTURE_PARAMETERS)),this.onUpdate(),this._canvas=this._canvas||document.createElement("canvas"),this._loadIcons(icons)}}_loadIcons(icons){const ctx=this._canvas.getContext("2d",{willReadFrequently:!0});for(const icon of icons)this._pendingCount++,(0,load.z)(icon.url,this._loadOptions).then((imageData=>{const id=getIconId(icon),iconDef=this._mapping[id],{x:x,y:y,width:maxWidth,height:maxHeight}=iconDef,{data:data,width:width,height:height}=resizeImage(ctx,imageData,maxWidth,maxHeight);this._texture.setSubImageData({data:data,x:x+(maxWidth-width)/2,y:y+(maxHeight-height)/2,width:width,height:height}),iconDef.width=width,iconDef.height=height,this._texture.generateMipmap(),this.onUpdate()})).catch((error=>{this.onError({url:icon.url,source:icon.source,sourceIndex:icon.sourceIndex,loadOptions:this._loadOptions,error:error})})).finally((()=>{this._pendingCount--}))}}const DEFAULT_COLOR=[0,0,0,255],defaultProps={iconAtlas:{type:"image",value:null,async:!0},iconMapping:{type:"object",value:{},async:!0},sizeScale:{type:"number",value:1,min:0},billboard:!0,sizeUnits:"pixels",sizeMinPixels:{type:"number",min:0,value:0},sizeMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},alphaCutoff:{type:"number",value:.05,min:0,max:1},getPosition:{type:"accessor",value:x=>x.position},getIcon:{type:"accessor",value:x=>x.icon},getColor:{type:"accessor",value:DEFAULT_COLOR},getSize:{type:"accessor",value:1},getAngle:{type:"accessor",value:0},getPixelOffset:{type:"accessor",value:[0,0]},onIconError:{type:"function",value:null,optional:!0},textureParameters:{type:"object",ignore:!0}};class IconLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){return super.getShaders({vs:"#define SHADER_NAME icon-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute float instanceSizes;\nattribute float instanceAngles;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute vec4 instanceIconFrames;\nattribute float instanceColorModes;\nattribute vec2 instanceOffsets;\nattribute vec2 instancePixelOffset;\n\nuniform float sizeScale;\nuniform vec2 iconsTextureDim;\nuniform float sizeMinPixels;\nuniform float sizeMaxPixels;\nuniform bool billboard;\nuniform int sizeUnits;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvec2 rotate_by_angle(vec2 vertex, float angle) {\n float angle_radian = angle * PI / 180.0;\n float cos_angle = cos(angle_radian);\n float sin_angle = sin(angle_radian);\n mat2 rotationMatrix = mat2(cos_angle, -sin_angle, sin_angle, cos_angle);\n return rotationMatrix * vertex;\n}\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.uv = positions;\n geometry.pickingColor = instancePickingColors;\n uv = positions;\n\n vec2 iconSize = instanceIconFrames.zw;\n float sizePixels = clamp(\n project_size_to_pixel(instanceSizes * sizeScale, sizeUnits), \n sizeMinPixels, sizeMaxPixels\n );\n float instanceScale = iconSize.y == 0.0 ? 0.0 : sizePixels / iconSize.y;\n vec2 pixelOffset = positions / 2.0 * iconSize + instanceOffsets;\n pixelOffset = rotate_by_angle(pixelOffset, instanceAngles) * instanceScale;\n pixelOffset += instancePixelOffset;\n pixelOffset.y *= -1.0;\n\n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n vec3 offset = vec3(pixelOffset, 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n\n } else {\n vec3 offset_common = vec3(project_pixel_size(pixelOffset), 0.0);\n DECKGL_FILTER_SIZE(offset_common, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset_common, geometry.position); \n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n }\n\n vTextureCoords = mix(\n instanceIconFrames.xy,\n instanceIconFrames.xy + iconSize,\n (positions.xy + 1.0) / 2.0\n ) / iconsTextureDim;\n\n vColor = instanceColors;\n DECKGL_FILTER_COLOR(vColor, geometry);\n\n vColorMode = instanceColorModes;\n}\n",fs:"#define SHADER_NAME icon-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D iconsTexture;\nuniform float alphaCutoff;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n vec4 texColor = texture2D(iconsTexture, vTextureCoords);\n vec3 color = mix(texColor.rgb, vColor.rgb, vColorMode);\n float a = texColor.a * opacity * vColor.a;\n\n if (a < alphaCutoff) {\n discard;\n }\n\n gl_FragColor = vec4(color, a);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}initializeState(){this.state={iconManager:new IconManager(this.context.gl,{onUpdate:this._onUpdate.bind(this),onError:this._onError.bind(this)})};this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceSizes:{size:1,transition:!0,accessor:"getSize",defaultValue:1},instanceOffsets:{size:2,accessor:"getIcon",transform:this.getInstanceOffset},instanceIconFrames:{size:4,accessor:"getIcon",transform:this.getInstanceIconFrame},instanceColorModes:{size:1,type:5121,accessor:"getIcon",transform:this.getInstanceColorMode},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getColor",defaultValue:DEFAULT_COLOR},instanceAngles:{size:1,transition:!0,accessor:"getAngle"},instancePixelOffset:{size:2,transition:!0,accessor:"getPixelOffset"}})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps,changeFlags:changeFlags}=params,attributeManager=this.getAttributeManager(),{iconAtlas:iconAtlas,iconMapping:iconMapping,data:data,getIcon:getIcon,textureParameters:textureParameters}=props,{iconManager:iconManager}=this.state,prePacked=iconAtlas||this.internalState.isAsyncPropLoading("iconAtlas");if(iconManager.setProps({loadOptions:props.loadOptions,autoPacking:!prePacked,iconAtlas:iconAtlas,iconMapping:prePacked?iconMapping:null,textureParameters:textureParameters}),prePacked?oldProps.iconMapping!==props.iconMapping&&attributeManager.invalidate("getIcon"):(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getIcon))&&iconManager.packIcons(data,getIcon),changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),attributeManager.invalidateAll()}}get isLoaded(){return super.isLoaded&&this.state.iconManager.isLoaded}finalizeState(context){super.finalizeState(context),this.state.iconManager.finalize()}draw({uniforms:uniforms}){const{sizeScale:sizeScale,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels,sizeUnits:sizeUnits,billboard:billboard,alphaCutoff:alphaCutoff}=this.props,{iconManager:iconManager}=this.state,iconsTexture=iconManager.getTexture();iconsTexture&&this.state.model.setUniforms(uniforms).setUniforms({iconsTexture:iconsTexture,iconsTextureDim:[iconsTexture.width,iconsTexture.height],sizeUnits:constants.iI[sizeUnits],sizeScale:sizeScale,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels,billboard:billboard,alphaCutoff:alphaCutoff}).draw()}_getModel(gl){return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:6,attributes:{positions:{size:2,value:new Float32Array([-1,-1,-1,1,1,1,1,-1])}}}),isInstanced:!0})}_onUpdate(){this.setNeedsRedraw()}_onError(evt){var _this$getCurrentLayer;const onIconError=null===(_this$getCurrentLayer=this.getCurrentLayer())||void 0===_this$getCurrentLayer?void 0:_this$getCurrentLayer.props.onIconError;onIconError?onIconError(evt):log.Z.error(evt.error.message)()}getInstanceOffset(icon){const{width:width,height:height,anchorX:anchorX=width/2,anchorY:anchorY=height/2}=this.state.iconManager.getIconMapping(icon);return[width/2-anchorX,height/2-anchorY]}getInstanceColorMode(icon){return this.state.iconManager.getIconMapping(icon).mask?1:0}getInstanceIconFrame(icon){const{x:x,y:y,width:width,height:height}=this.state.iconManager.getIconMapping(icon);return[x,y,width,height]}}(0,defineProperty.Z)(IconLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(IconLayer,"layerName","IconLayer")},"./node_modules/@deck.gl/layers/dist/esm/text-layer/multi-icon-layer/multi-icon-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return MultiIconLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),icon_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/icon-layer/icon-layer.js");const EMPTY_ARRAY=[];class MultiIconLayer extends icon_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){return{...super.getShaders(),fs:"#define SHADER_NAME multi-icon-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D iconsTexture;\nuniform float gamma;\nuniform bool sdf;\nuniform float alphaCutoff;\nuniform float sdfBuffer;\nuniform float outlineBuffer;\nuniform vec4 outlineColor;\n\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n if (!picking_uActive) {\n float alpha = texture2D(iconsTexture, vTextureCoords).a;\n vec4 color = vColor;\n if (sdf) {\n float distance = alpha;\n alpha = smoothstep(sdfBuffer - gamma, sdfBuffer + gamma, distance);\n\n if (outlineBuffer > 0.0) {\n float inFill = alpha;\n float inBorder = smoothstep(outlineBuffer - gamma, outlineBuffer + gamma, distance);\n color = mix(outlineColor, vColor, inFill);\n alpha = inBorder;\n }\n }\n float a = alpha * color.a;\n \n if (a < alphaCutoff) {\n discard;\n }\n\n gl_FragColor = vec4(color.rgb, a * opacity);\n }\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n"}}initializeState(){super.initializeState();this.getAttributeManager().addInstanced({instanceOffsets:{size:2,accessor:"getIconOffsets"},instancePickingColors:{type:5121,size:3,accessor:(object,{index:index,target:value})=>this.encodePickingColor(index,value)}})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps}=params;let{outlineColor:outlineColor}=props;outlineColor!==oldProps.outlineColor&&(outlineColor=outlineColor.map((x=>x/255)),outlineColor[3]=Number.isFinite(outlineColor[3])?outlineColor[3]:1,this.setState({outlineColor:outlineColor})),!props.sdf&&props.outlineWidth&&log.Z.warn("".concat(this.id,": fontSettings.sdf is required to render outline"))()}draw(params){const{sdf:sdf,smoothing:smoothing,outlineWidth:outlineWidth}=this.props,{outlineColor:outlineColor}=this.state,outlineBuffer=outlineWidth?Math.max(smoothing,.75*(1-outlineWidth)):-1;if(params.uniforms={...params.uniforms,sdfBuffer:.75,outlineBuffer:outlineBuffer,gamma:smoothing,sdf:Boolean(sdf),outlineColor:outlineColor},super.draw(params),sdf&&outlineWidth){const{iconManager:iconManager}=this.state;iconManager.getTexture()&&this.state.model.draw({uniforms:{outlineBuffer:.75}})}}getInstanceOffset(icons){return icons?Array.from(icons).flatMap((icon=>super.getInstanceOffset(icon))):EMPTY_ARRAY}getInstanceColorMode(icons){return 1}getInstanceIconFrame(icons){return icons?Array.from(icons).flatMap((icon=>super.getInstanceIconFrame(icon))):EMPTY_ARRAY}}(0,defineProperty.Z)(MultiIconLayer,"defaultProps",{getIconOffsets:{type:"accessor",value:x=>x.offsets},alphaCutoff:.001,smoothing:.1,outlineWidth:0,outlineColor:{type:"color",value:[0,0,0,255]}}),(0,defineProperty.Z)(MultiIconLayer,"layerName","MultiIconLayer")},"./node_modules/@deck.gl/layers/dist/esm/text-layer/text-background-layer/text-background-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TextBackgroundLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const defaultProps={billboard:!0,sizeScale:1,sizeUnits:"pixels",sizeMinPixels:0,sizeMaxPixels:Number.MAX_SAFE_INTEGER,padding:{type:"array",value:[0,0,0,0]},getPosition:{type:"accessor",value:x=>x.position},getSize:{type:"accessor",value:1},getAngle:{type:"accessor",value:0},getPixelOffset:{type:"accessor",value:[0,0]},getBoundingRect:{type:"accessor",value:[0,0,0,0]},getFillColor:{type:"accessor",value:[0,0,0,255]},getLineColor:{type:"accessor",value:[0,0,0,255]},getLineWidth:{type:"accessor",value:1}};class TextBackgroundLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){return super.getShaders({vs:"#define SHADER_NAME text-background-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute vec4 instanceRects;\nattribute float instanceSizes;\nattribute float instanceAngles;\nattribute vec2 instancePixelOffsets;\nattribute float instanceLineWidths;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\nuniform bool billboard;\nuniform float opacity;\nuniform float sizeScale;\nuniform float sizeMinPixels;\nuniform float sizeMaxPixels;\nuniform vec4 padding;\nuniform int sizeUnits;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying float vLineWidth;\nvarying vec2 uv;\nvarying vec2 dimensions;\n\nvec2 rotate_by_angle(vec2 vertex, float angle) {\n float angle_radian = radians(angle);\n float cos_angle = cos(angle_radian);\n float sin_angle = sin(angle_radian);\n mat2 rotationMatrix = mat2(cos_angle, -sin_angle, sin_angle, cos_angle);\n return rotationMatrix * vertex;\n}\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.uv = positions;\n geometry.pickingColor = instancePickingColors;\n uv = positions;\n vLineWidth = instanceLineWidths;\n float sizePixels = clamp(\n project_size_to_pixel(instanceSizes * sizeScale, sizeUnits),\n sizeMinPixels, sizeMaxPixels\n );\n\n dimensions = instanceRects.zw * sizePixels + padding.xy + padding.zw;\n\n vec2 pixelOffset = (positions * instanceRects.zw + instanceRects.xy) * sizePixels + mix(-padding.xy, padding.zw, positions);\n pixelOffset = rotate_by_angle(pixelOffset, instanceAngles);\n pixelOffset += instancePixelOffsets;\n pixelOffset.y *= -1.0;\n\n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n vec3 offset = vec3(pixelOffset, 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n } else {\n vec3 offset_common = vec3(project_pixel_size(pixelOffset), 0.0);\n DECKGL_FILTER_SIZE(offset_common, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset_common, geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n }\n vFillColor = vec4(instanceFillColors.rgb, instanceFillColors.a * opacity);\n DECKGL_FILTER_COLOR(vFillColor, geometry);\n vLineColor = vec4(instanceLineColors.rgb, instanceLineColors.a * opacity);\n DECKGL_FILTER_COLOR(vLineColor, geometry);\n}\n",fs:"#define SHADER_NAME text-background-layer-fragment-shader\n\nprecision highp float;\n\nuniform bool stroked;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying float vLineWidth;\nvarying vec2 uv;\nvarying vec2 dimensions;\n\nvoid main(void) {\n geometry.uv = uv;\n\n vec2 pixelPosition = uv * dimensions;\n if (stroked) {\n float distToEdge = min(\n min(pixelPosition.x, dimensions.x - pixelPosition.x),\n min(pixelPosition.y, dimensions.y - pixelPosition.y)\n );\n float isBorder = smoothedge(distToEdge, vLineWidth);\n gl_FragColor = mix(vFillColor, vLineColor, isBorder);\n } else {\n gl_FragColor = vFillColor;\n }\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceSizes:{size:1,transition:!0,accessor:"getSize",defaultValue:1},instanceAngles:{size:1,transition:!0,accessor:"getAngle"},instanceRects:{size:4,accessor:"getBoundingRect"},instancePixelOffsets:{size:2,transition:!0,accessor:"getPixelOffset"},instanceFillColors:{size:4,transition:!0,normalized:!0,type:5121,accessor:"getFillColor",defaultValue:[0,0,0,255]},instanceLineColors:{size:4,transition:!0,normalized:!0,type:5121,accessor:"getLineColor",defaultValue:[0,0,0,255]},instanceLineWidths:{size:1,transition:!0,accessor:"getLineWidth",defaultValue:1}})}updateState(params){super.updateState(params);const{changeFlags:changeFlags}=params;if(changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}}draw({uniforms:uniforms}){const{billboard:billboard,sizeScale:sizeScale,sizeUnits:sizeUnits,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels,getLineWidth:getLineWidth}=this.props;let{padding:padding}=this.props;padding.length<4&&(padding=[padding[0],padding[1],padding[0],padding[1]]),this.state.model.setUniforms(uniforms).setUniforms({billboard:billboard,stroked:Boolean(getLineWidth),padding:padding,sizeUnits:constants.iI[sizeUnits],sizeScale:sizeScale,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels}).draw()}_getModel(gl){return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:6,vertexCount:4,attributes:{positions:{size:2,value:new Float32Array([0,0,1,0,1,1,0,1])}}}),isInstanced:!0})}}(0,defineProperty.Z)(TextBackgroundLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(TextBackgroundLayer,"layerName","TextBackgroundLayer")},"./node_modules/@deck.gl/layers/dist/esm/text-layer/text-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TextLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),multi_icon_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/multi-icon-layer/multi-icon-layer.js");const INF=1e20;class TinySDF{constructor({fontSize:fontSize=24,buffer:buffer=3,radius:radius=8,cutoff:cutoff=.25,fontFamily:fontFamily="sans-serif",fontWeight:fontWeight="normal",fontStyle:fontStyle="normal"}={}){this.buffer=buffer,this.cutoff=cutoff,this.radius=radius;const size=this.size=fontSize+4*buffer,canvas=this._createCanvas(size),ctx=this.ctx=canvas.getContext("2d",{willReadFrequently:!0});ctx.font=`${fontStyle} ${fontWeight} ${fontSize}px ${fontFamily}`,ctx.textBaseline="alphabetic",ctx.textAlign="left",ctx.fillStyle="black",this.gridOuter=new Float64Array(size*size),this.gridInner=new Float64Array(size*size),this.f=new Float64Array(size),this.z=new Float64Array(size+1),this.v=new Uint16Array(size)}_createCanvas(size){const canvas=document.createElement("canvas");return canvas.width=canvas.height=size,canvas}draw(char){const{width:glyphAdvance,actualBoundingBoxAscent:actualBoundingBoxAscent,actualBoundingBoxDescent:actualBoundingBoxDescent,actualBoundingBoxLeft:actualBoundingBoxLeft,actualBoundingBoxRight:actualBoundingBoxRight}=this.ctx.measureText(char),glyphTop=Math.ceil(actualBoundingBoxAscent),glyphWidth=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(actualBoundingBoxRight-actualBoundingBoxLeft))),glyphHeight=Math.min(this.size-this.buffer,glyphTop+Math.ceil(actualBoundingBoxDescent)),width=glyphWidth+2*this.buffer,height=glyphHeight+2*this.buffer,len=Math.max(width*height,0),data=new Uint8ClampedArray(len),glyph={data:data,width:width,height:height,glyphWidth:glyphWidth,glyphHeight:glyphHeight,glyphTop:glyphTop,glyphLeft:0,glyphAdvance:glyphAdvance};if(0===glyphWidth||0===glyphHeight)return glyph;const{ctx:ctx,buffer:buffer,gridInner:gridInner,gridOuter:gridOuter}=this;ctx.clearRect(buffer,buffer,glyphWidth,glyphHeight),ctx.fillText(char,buffer,buffer+glyphTop);const imgData=ctx.getImageData(buffer,buffer,glyphWidth,glyphHeight);gridOuter.fill(INF,0,len),gridInner.fill(0,0,len);for(let y=0;y0?d*d:0,gridInner[j]=d<0?d*d:0}}edt(gridOuter,0,0,width,height,width,this.f,this.v,this.z),edt(gridInner,buffer,buffer,glyphWidth,glyphHeight,width,this.f,this.v,this.z);for(let i=0;i-1);k++,v[k]=q,z[k]=s,z[k+1]=INF}for(let q=0,k=0;qmaxWidth&&(rowStartCharIndexgroupStartCharIndex){let groupWidth=getTextWidth(text,groupStartCharIndex,groupEndCharIndex,iconMapping);rowOffsetLeft+groupWidth>maxWidth&&(rowStartCharIndexmaxWidth&&(groupWidth=breakAll(text,groupStartCharIndex,groupEndCharIndex,maxWidth,iconMapping,target),rowStartCharIndex=target[target.length-1])),groupStartCharIndex=groupEndCharIndex,rowOffsetLeft+=groupWidth}return rowOffsetLeft}(text,startIndex,endIndex,maxWidth,iconMapping,result),result}function transformRow(line,startIndex,endIndex,iconMapping,leftOffsets,rowSize){let x=0,rowHeight=0;for(let i=startIndex;i=0&&this._order.splice(index,1)}_appendOrder(key){this._order.push(key)}}const DEFAULT_FONT_SETTINGS={fontFamily:"Monaco, monospace",fontWeight:"normal",characterSet:function getDefaultCharacterSet(){const charSet=[];for(let i=32;i<128;i++)charSet.push(String.fromCharCode(i));return charSet}(),fontSize:64,buffer:4,sdf:!1,cutoff:.25,radius:12,smoothing:.1};let cache=new LRUCache(3);function populateAlphaChannel(alphaChannel,imageData){for(let i=0;imaxCanvasWidth&&(x=0,row++),mapping[char]={x:x+buffer,y:yOffset+row*rowHeight+buffer,width:width,height:rowHeight,layoutWidth:width,layoutHeight:fontHeight},x+=width+2*buffer}return{mapping:mapping,xOffset:x,yOffset:yOffset+row*rowHeight,canvasHeight:(number=yOffset+(row+1)*rowHeight,Math.pow(2,Math.ceil(Math.log2(number))))};var number}({getFontWidth:char=>ctx.measureText(char).width,fontHeight:1.2*fontSize,buffer:buffer,characterSet:characterSet,maxCanvasWidth:1024,...cachedFontAtlas&&{mapping:cachedFontAtlas.mapping,xOffset:cachedFontAtlas.xOffset,yOffset:cachedFontAtlas.yOffset}});if(canvas.height!==canvasHeight){const imageData=ctx.getImageData(0,0,canvas.width,canvas.height);canvas.height=canvasHeight,ctx.putImageData(imageData,0,0)}if(setTextStyle(ctx,fontFamily,fontSize,fontWeight),sdf){const tinySDF=new TinySDF({fontSize:fontSize,buffer:buffer,radius:radius,cutoff:cutoff,fontFamily:fontFamily,fontWeight:"".concat(fontWeight)});for(const char of characterSet){const{data:data,width:width,height:height,glyphTop:glyphTop}=tinySDF.draw(char);mapping[char].width=width,mapping[char].layoutOffsetY=.9*fontSize-glyphTop;const imageData=ctx.createImageData(width,height);populateAlphaChannel(data,imageData),ctx.putImageData(imageData,mapping[char].x,mapping[char].y)}}else for(const char of characterSet)ctx.fillText(char,mapping[char].x,mapping[char].y+buffer+.9*fontSize);return{xOffset:xOffset,yOffset:yOffset,mapping:mapping,data:canvas,width:canvas.width,height:canvas.height}}_getKey(){const{fontFamily:fontFamily,fontWeight:fontWeight,fontSize:fontSize,buffer:buffer,sdf:sdf,radius:radius,cutoff:cutoff}=this.props;return sdf?"".concat(fontFamily," ").concat(fontWeight," ").concat(fontSize," ").concat(buffer," ").concat(radius," ").concat(cutoff):"".concat(fontFamily," ").concat(fontWeight," ").concat(fontSize," ").concat(buffer)}}var text_background_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/text-background-layer/text-background-layer.js");const TEXT_ANCHOR={start:1,middle:0,end:-1},ALIGNMENT_BASELINE={top:1,center:0,bottom:-1},DEFAULT_COLOR=[0,0,0,255],defaultProps={billboard:!0,sizeScale:1,sizeUnits:"pixels",sizeMinPixels:0,sizeMaxPixels:Number.MAX_SAFE_INTEGER,background:!1,getBackgroundColor:{type:"accessor",value:[255,255,255,255]},getBorderColor:{type:"accessor",value:DEFAULT_COLOR},getBorderWidth:{type:"accessor",value:0},backgroundPadding:{type:"array",value:[0,0,0,0]},characterSet:{type:"object",value:DEFAULT_FONT_SETTINGS.characterSet},fontFamily:DEFAULT_FONT_SETTINGS.fontFamily,fontWeight:DEFAULT_FONT_SETTINGS.fontWeight,lineHeight:1,outlineWidth:{type:"number",value:0,min:0},outlineColor:{type:"color",value:DEFAULT_COLOR},fontSettings:{type:"object",value:{},compare:1},wordBreak:"break-word",maxWidth:{type:"number",value:-1},getText:{type:"accessor",value:x=>x.text},getPosition:{type:"accessor",value:x=>x.position},getColor:{type:"accessor",value:DEFAULT_COLOR},getSize:{type:"accessor",value:32},getAngle:{type:"accessor",value:0},getTextAnchor:{type:"accessor",value:"middle"},getAlignmentBaseline:{type:"accessor",value:"center"},getPixelOffset:{type:"accessor",value:[0,0]},backgroundColor:{deprecatedFor:["background","getBackgroundColor"]}};class TextLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0),(0,defineProperty.Z)(this,"getBoundingRect",((object,objectInfo)=>{let{size:[width,height]}=this.transformParagraph(object,objectInfo);const{fontSize:fontSize}=this.state.fontAtlasManager.props;width/=fontSize,height/=fontSize;const{getTextAnchor:getTextAnchor,getAlignmentBaseline:getAlignmentBaseline}=this.props;return[(TEXT_ANCHOR["function"==typeof getTextAnchor?getTextAnchor(object,objectInfo):getTextAnchor]-1)*width/2,(ALIGNMENT_BASELINE["function"==typeof getAlignmentBaseline?getAlignmentBaseline(object,objectInfo):getAlignmentBaseline]-1)*height/2,width,height]})),(0,defineProperty.Z)(this,"getIconOffsets",((object,objectInfo)=>{const{getTextAnchor:getTextAnchor,getAlignmentBaseline:getAlignmentBaseline}=this.props,{x:x,y:y,rowWidth:rowWidth,size:[width,height]}=this.transformParagraph(object,objectInfo),anchorX=TEXT_ANCHOR["function"==typeof getTextAnchor?getTextAnchor(object,objectInfo):getTextAnchor],anchorY=ALIGNMENT_BASELINE["function"==typeof getAlignmentBaseline?getAlignmentBaseline(object,objectInfo):getAlignmentBaseline],numCharacters=x.length,offsets=new Array(2*numCharacters);let index=0;for(let i=0;i0&&log.Z.warn("v8.9 breaking change: TextLayer maxWidth is now relative to text size")()}updateState(params){const{props:props,oldProps:oldProps,changeFlags:changeFlags}=params;(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getText))&&this._updateText();(this._updateFontAtlas()||props.lineHeight!==oldProps.lineHeight||props.wordBreak!==oldProps.wordBreak||props.maxWidth!==oldProps.maxWidth)&&this.setState({styleVersion:this.state.styleVersion+1})}getPickingInfo({info:info}){return info.object=info.index>=0?this.props.data[info.index]:null,info}_updateFontAtlas(){const{fontSettings:fontSettings,fontFamily:fontFamily,fontWeight:fontWeight}=this.props,{fontAtlasManager:fontAtlasManager,characterSet:characterSet}=this.state,fontProps={...fontSettings,characterSet:characterSet,fontFamily:fontFamily,fontWeight:fontWeight};if(!fontAtlasManager.mapping)return fontAtlasManager.setProps(fontProps),!0;for(const key in fontProps)if(fontProps[key]!==fontAtlasManager.props[key])return fontAtlasManager.setProps(fontProps),!0;return!1}_updateText(){var _attributes;const{data:data,characterSet:characterSet}=this.props,textBuffer=null===(_attributes=data.attributes)||void 0===_attributes?void 0:_attributes.getText;let numInstances,{getText:getText}=this.props,startIndices=data.startIndices;const autoCharacterSet="auto"===characterSet&&new Set;if(textBuffer&&startIndices){const{texts:texts,characterCount:characterCount}=function getTextFromBuffer({value:value,length:length,stride:stride,offset:offset,startIndices:startIndices,characterSet:characterSet}){const bytesPerElement=value.BYTES_PER_ELEMENT,elementStride=stride?stride/bytesPerElement:1,elementOffset=offset?offset/bytesPerElement:0,characterCount=startIndices[length]||Math.ceil((value.length-elementOffset)/elementStride),autoCharacterSet=characterSet&&new Set,texts=new Array(length);let codes=value;if(elementStride>1||elementOffset>0){codes=new(0,value.constructor)(characterCount);for(let i=0;itexts[index]}else{const{iterable:iterable,objectInfo:objectInfo}=(0,iterable_utils.jB)(data);startIndices=[0],numInstances=0;for(const object of iterable){objectInfo.index++;const text=Array.from(getText(object,objectInfo)||"");autoCharacterSet&&text.forEach(autoCharacterSet.add,autoCharacterSet),numInstances+=text.length,startIndices.push(numInstances)}}this.setState({getText:getText,startIndices:startIndices,numInstances:numInstances,characterSet:autoCharacterSet||characterSet})}transformParagraph(object,objectInfo){const{fontAtlasManager:fontAtlasManager}=this.state,iconMapping=fontAtlasManager.mapping,getText=this.state.getText,{wordBreak:wordBreak,lineHeight:lineHeight,maxWidth:maxWidth}=this.props;return function transformParagraph(paragraph,lineHeight,wordBreak,maxWidth,iconMapping){const characters=Array.from(paragraph),numCharacters=characters.length,x=new Array(numCharacters),y=new Array(numCharacters),rowWidth=new Array(numCharacters),autoWrappingEnabled=("break-word"===wordBreak||"break-all"===wordBreak)&&isFinite(maxWidth)&&maxWidth>0,size=[0,0],rowSize=[0,0];let rowOffsetTop=0,lineStartIndex=0,lineEndIndex=0;for(let i=0;i<=numCharacters;i++){const char=characters[i];if("\n"!==char&&i!==numCharacters||(lineEndIndex=i),lineEndIndex>lineStartIndex){const rows=autoWrappingEnabled?autoWrapping(characters,wordBreak,maxWidth,iconMapping,lineStartIndex,lineEndIndex):SINGLE_LINE;for(let rowIndex=0;rowIndex<=rows.length;rowIndex++){const rowStart=0===rowIndex?lineStartIndex:rows[rowIndex-1],rowEnd=rowIndex=3,"Invalid cache limit"),cache=new LRUCache(limit)}(limit)}}(0,defineProperty.Z)(TextLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(TextLayer,"layerName","TextLayer")},"./node_modules/@deck.gl/react/dist/esm/deckgl.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return deckgl}});var react=__webpack_require__("./node_modules/react/index.js"),deck=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/deck.js");var use_isomorphic_layout_effect="undefined"!=typeof window?react.useLayoutEffect:react.useEffect;function inheritsFrom(Type,ParentType){for(;Type;){if(Type===ParentType)return!0;Type=Object.getPrototypeOf(Type)}return!1}var view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/view.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js");const MAP_STYLE={position:"absolute",zIndex:-1};function evaluateChildren(children,childProps){if("function"==typeof children)return children(childProps);if(Array.isArray(children))return children.map((child=>evaluateChildren(child,childProps)));if(isComponent(children)){if(function isReactMap(child){var _child$props;return null===(_child$props=child.props)||void 0===_child$props?void 0:_child$props.mapStyle}(children))return childProps.style=MAP_STYLE,(0,react.cloneElement)(children,childProps);if(function needsDeckGLViewProps(child){const componentClass=child.type;return componentClass&&componentClass.deckGLViewProps}(children))return(0,react.cloneElement)(children,childProps)}return children}function isComponent(child){return child&&"object"==typeof child&&"type"in child||!1}function wrapInView(node){if("function"==typeof node)return(0,react.createElement)(view.Z,{},node);if(Array.isArray(node))return node.map(wrapInView);if(isComponent(node)){if(node.type===react.Fragment)return wrapInView(node.props.children);if(inheritsFrom(node.type,view.Z))return node}return node}const CANVAS_ONLY_STYLES={mixBlendMode:null};function redrawDeck(thisRef){thisRef.redrawReason&&(thisRef.deck._drawLayers(thisRef.redrawReason),thisRef.redrawReason=null)}const DeckGL=(0,react.forwardRef)(((props,ref)=>{const[version,setVersion]=(0,react.useState)(0),thisRef=(0,react.useRef)({control:null,version:version,forceUpdate:()=>setVersion((v=>v+1))}).current,containerRef=(0,react.useRef)(null),canvasRef=(0,react.useRef)(null),jsxProps=(0,react.useMemo)((()=>function extractJSXLayers({children:children,layers:layers=[],views:views=null}){const reactChildren=[],jsxLayers=[],jsxViews={};return react.Children.forEach(wrapInView(children),(reactElement=>{if(isComponent(reactElement)){const ElementType=reactElement.type;if(inheritsFrom(ElementType,lib_layer.Z)){const layer=function createLayer(LayerType,reactProps){const props={},defaultProps=LayerType.defaultProps||{};for(const key in reactProps)defaultProps[key]!==reactProps[key]&&(props[key]=reactProps[key]);return new LayerType(props)}(ElementType,reactElement.props);jsxLayers.push(layer)}else reactChildren.push(reactElement);if(inheritsFrom(ElementType,view.Z)&&ElementType!==view.Z&&reactElement.props.id){const view=new ElementType(reactElement.props);jsxViews[view.id]=view}}else reactElement&&reactChildren.push(reactElement)})),Object.keys(jsxViews).length>0&&(Array.isArray(views)?views.forEach((view=>{jsxViews[view.id]=view})):views&&(jsxViews[views.id]=views),views=Object.values(jsxViews)),{layers:layers=jsxLayers.length>0?[...jsxLayers,...layers]:layers,children:reactChildren,views:views}}(props)),[props.layers,props.views,props.children]);let inRender=!0;const handleViewStateChange=params=>{var _props$onViewStateCha;return inRender&&props.viewState?(thisRef.viewStateUpdateRequested=params,null):(thisRef.viewStateUpdateRequested=null,null===(_props$onViewStateCha=props.onViewStateChange)||void 0===_props$onViewStateCha?void 0:_props$onViewStateCha.call(props,params))},handleInteractionStateChange=params=>{var _props$onInteractionS;inRender?thisRef.interactionStateUpdateRequested=params:(thisRef.interactionStateUpdateRequested=null,null===(_props$onInteractionS=props.onInteractionStateChange)||void 0===_props$onInteractionS||_props$onInteractionS.call(props,params))},deckProps=(0,react.useMemo)((()=>{const forwardProps={...props,style:null,width:"100%",height:"100%",parent:containerRef.current,canvas:canvasRef.current,layers:jsxProps.layers,views:jsxProps.views,onViewStateChange:handleViewStateChange,onInteractionStateChange:handleInteractionStateChange};return delete forwardProps._customRender,thisRef.deck&&thisRef.deck.setProps(forwardProps),forwardProps}),[props]);(0,react.useEffect)((()=>{const DeckClass=props.Deck||deck.Z;return thisRef.deck=function createDeckInstance(thisRef,DeckClass,props){const deck=new DeckClass({...props,_customRender:redrawReason=>{thisRef.redrawReason=redrawReason;const viewports=deck.getViewports();thisRef.lastRenderedViewports!==viewports?thisRef.forceUpdate():redrawDeck(thisRef)}});return deck}(thisRef,DeckClass,{...deckProps,parent:containerRef.current,canvas:canvasRef.current}),()=>{var _thisRef$deck;return null===(_thisRef$deck=thisRef.deck)||void 0===_thisRef$deck?void 0:_thisRef$deck.finalize()}}),[]),use_isomorphic_layout_effect((()=>{redrawDeck(thisRef);const{viewStateUpdateRequested:viewStateUpdateRequested,interactionStateUpdateRequested:interactionStateUpdateRequested}=thisRef;viewStateUpdateRequested&&handleViewStateChange(viewStateUpdateRequested),interactionStateUpdateRequested&&handleInteractionStateChange(interactionStateUpdateRequested)})),(0,react.useImperativeHandle)(ref,(()=>function getRefHandles(thisRef){return{get deck(){return thisRef.deck},pickObject:opts=>thisRef.deck.pickObject(opts),pickMultipleObjects:opts=>thisRef.deck.pickMultipleObjects(opts),pickObjects:opts=>thisRef.deck.pickObjects(opts)}}(thisRef)),[]);const currentViewports=thisRef.deck&&thisRef.deck.isInitialized?thisRef.deck.getViewports():void 0,{ContextProvider:ContextProvider,width:width,height:height,id:id,style:style}=props,{containerStyle:containerStyle,canvasStyle:canvasStyle}=(0,react.useMemo)((()=>function extractStyles({width:width,height:height,style:style}){const containerStyle={position:"absolute",zIndex:0,left:0,top:0,width:width,height:height},canvasStyle={left:0,top:0};if(style)for(const key in style)key in CANVAS_ONLY_STYLES?canvasStyle[key]=style[key]:containerStyle[key]=style[key];return{containerStyle:containerStyle,canvasStyle:canvasStyle}}({width:width,height:height,style:style})),[width,height,style]);if(!thisRef.viewStateUpdateRequested&&thisRef.lastRenderedViewports===currentViewports||thisRef.version!==version){thisRef.lastRenderedViewports=currentViewports,thisRef.version=version;const childrenUnderViews=function positionChildrenUnderViews({children:children,deck:deck,ContextProvider:ContextProvider}){const{viewManager:viewManager}=deck||{};if(!viewManager||!viewManager.views.length)return[];const views={},defaultViewId=viewManager.views[0].id;for(const child of children){let viewId=defaultViewId,viewChildren=child;isComponent(child)&&inheritsFrom(child.type,view.Z)&&(viewId=child.props.id||defaultViewId,viewChildren=child.props.children);const viewport=viewManager.getViewport(viewId),viewState=viewManager.getViewState(viewId);if(viewport){viewState.padding=viewport.padding;const{x:x,y:y,width:width,height:height}=viewport;viewChildren=evaluateChildren(viewChildren,{x:x,y:y,width:width,height:height,viewport:viewport,viewState:viewState}),views[viewId]||(views[viewId]={viewport:viewport,children:[]}),views[viewId].children.push(viewChildren)}}return Object.keys(views).map((viewId=>{const{viewport:viewport,children:viewChildren}=views[viewId],{x:x,y:y,width:width,height:height}=viewport,style={position:"absolute",left:x,top:y,width:width,height:height},key="view-".concat(viewId),viewElement=(0,react.createElement)("div",{key:key,id:key,style:style},...viewChildren);if(ContextProvider){const contextValue={viewport:viewport,container:deck.canvas.offsetParent,eventManager:deck.eventManager,onViewStateChange:params=>{params.viewId=viewId,deck._onViewStateChange(params)}};return(0,react.createElement)(ContextProvider,{key:key,value:contextValue},viewElement)}return viewElement}))}({children:jsxProps.children,deck:thisRef.deck,ContextProvider:ContextProvider}),canvas=(0,react.createElement)("canvas",{key:"canvas",id:id||"deckgl-overlay",ref:canvasRef,style:canvasStyle});thisRef.control=(0,react.createElement)("div",{id:"".concat(id||"deckgl","-wrapper"),ref:containerRef,style:containerStyle},[canvas,childrenUnderViews])}return inRender=!1,thisRef.control}));DeckGL.defaultProps=deck.Z.defaultProps;var deckgl=DeckGL},"./node_modules/@loaders.gl/core/dist/esm/javascript-utils/is-type.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D0:function(){return isAsyncIterable},Ew:function(){return isResponse},Kn:function(){return isObject},Lj:function(){return isBlob},Os:function(){return isReadableStream},Ss:function(){return isPureObject},TW:function(){return isIterable},zH:function(){return isBuffer}});const isBoolean=x=>"boolean"==typeof x,isFunction=x=>"function"==typeof x,isObject=x=>null!==x&&"object"==typeof x,isPureObject=x=>isObject(x)&&x.constructor==={}.constructor,isIterable=x=>x&&"function"==typeof x[Symbol.iterator],isAsyncIterable=x=>x&&"function"==typeof x[Symbol.asyncIterator],isResponse=x=>"undefined"!=typeof Response&&x instanceof Response||x&&x.arrayBuffer&&x.text&&x.json,isBlob=x=>"undefined"!=typeof Blob&&x instanceof Blob,isBuffer=x=>x&&"object"==typeof x&&x.isBuffer,isReadableStream=x=>(x=>"undefined"!=typeof ReadableStream&&x instanceof ReadableStream||isObject(x)&&isFunction(x.tee)&&isFunction(x.cancel)&&isFunction(x.getReader))(x)||(x=>isObject(x)&&isFunction(x.read)&&isFunction(x.pipe)&&isBoolean(x.readable))(x)},"./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return load}});var is_type=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/javascript-utils/is-type.js"),normalize_loader=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/loader-utils/normalize-loader.js");let pathPrefix="";const fileAliases={};const DATA_URL_PATTERN=/^data:([-\w.]+\/[-\w.+]+)(;|,)/,MIME_TYPE_PATTERN=/^([-\w.]+\/[-\w.+]+)/;function parseMIMETypeFromURL(url){const matches=DATA_URL_PATTERN.exec(url);return matches?matches[1]:""}const QUERY_STRING_PATTERN=/\?.*/;function stripQueryString(url){return url.replace(QUERY_STRING_PATTERN,"")}function getResourceUrl(resource){if((0,is_type.Ew)(resource)){return resource.url}if((0,is_type.Lj)(resource)){return resource.name||""}return"string"==typeof resource?resource:""}function getResourceMIMEType(resource){if((0,is_type.Ew)(resource)){const response=resource,contentTypeHeader=response.headers.get("content-type")||"",noQueryUrl=stripQueryString(response.url);return function parseMIMEType(mimeString){const matches=MIME_TYPE_PATTERN.exec(mimeString);return matches?matches[1]:mimeString}(contentTypeHeader)||parseMIMETypeFromURL(noQueryUrl)}if((0,is_type.Lj)(resource)){return resource.type||""}return"string"==typeof resource?parseMIMETypeFromURL(resource):""}async function response_utils_makeResponse(resource){if((0,is_type.Ew)(resource))return resource;const headers={},contentLength=function getResourceContentLength(resource){if((0,is_type.Ew)(resource))return resource.headers["content-length"]||-1;if((0,is_type.Lj)(resource))return resource.size;return"string"==typeof resource?resource.length:resource instanceof ArrayBuffer||ArrayBuffer.isView(resource)?resource.byteLength:-1}(resource);contentLength>=0&&(headers["content-length"]=String(contentLength));const url=getResourceUrl(resource),type=getResourceMIMEType(resource);type&&(headers["content-type"]=type);const initialDataUrl=await async function getInitialDataUrl(resource){const INITIAL_DATA_LENGTH=5;if("string"==typeof resource)return"data:,".concat(resource.slice(0,INITIAL_DATA_LENGTH));if(resource instanceof Blob){const blobSlice=resource.slice(0,5);return await new Promise((resolve=>{const reader=new FileReader;reader.onload=event=>{var _event$target;return resolve(null==event||null===(_event$target=event.target)||void 0===_event$target?void 0:_event$target.result)},reader.readAsDataURL(blobSlice)}))}if(resource instanceof ArrayBuffer){const base64=function arrayBufferToBase64(buffer){let binary="";const bytes=new Uint8Array(buffer);for(let i=0;ifetchFile(url,fetchOptions):null!=context&&context.fetch?null==context?void 0:context.fetch:fetchFile}var assert=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/assert.js");const VERSION="3.4.14";var globals=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/globals.js"),defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");class worker_threads_browser_Worker{terminate(){}}const workerURLCache=new Map;function getLoadableWorkerURL(props){(0,assert.h)(props.source&&!props.url||!props.source&&props.url);let workerURL=workerURLCache.get(props.source||props.url);return workerURL||(props.url&&(workerURL=function getLoadableWorkerURLFromURL(url){if(!url.startsWith("http"))return url;return getLoadableWorkerURLFromSource(function buildScriptSource(workerUrl){return"try {\n importScripts('".concat(workerUrl,"');\n} catch (error) {\n console.error(error);\n throw error;\n}")}(url))}(props.url),workerURLCache.set(props.url,workerURL)),props.source&&(workerURL=getLoadableWorkerURLFromSource(props.source),workerURLCache.set(props.source,workerURL))),(0,assert.h)(workerURL),workerURL}function getLoadableWorkerURLFromSource(workerSource){const blob=new Blob([workerSource],{type:"application/javascript"});return URL.createObjectURL(blob)}function getTransferList(object){let recursive=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],transfers=arguments.length>2?arguments[2]:void 0;const transfersSet=transfers||new Set;if(object){if(isTransferable(object))transfersSet.add(object);else if(isTransferable(object.buffer))transfersSet.add(object.buffer);else if(ArrayBuffer.isView(object));else if(recursive&&"object"==typeof object)for(const key in object)getTransferList(object[key],recursive,transfersSet)}else;return void 0===transfers?Array.from(transfersSet):[]}function isTransferable(object){return!!object&&(object instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&object instanceof MessagePort||("undefined"!=typeof ImageBitmap&&object instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&object instanceof OffscreenCanvas)))}const NOOP=()=>{};class WorkerThread{static isSupported(){return"undefined"!=typeof Worker&&globals.jU||void 0!==worker_threads_browser_Worker&&!globals.jU}constructor(props){(0,defineProperty.Z)(this,"name",void 0),(0,defineProperty.Z)(this,"source",void 0),(0,defineProperty.Z)(this,"url",void 0),(0,defineProperty.Z)(this,"terminated",!1),(0,defineProperty.Z)(this,"worker",void 0),(0,defineProperty.Z)(this,"onMessage",void 0),(0,defineProperty.Z)(this,"onError",void 0),(0,defineProperty.Z)(this,"_loadableURL","");const{name:name,source:source,url:url}=props;(0,assert.h)(source||url),this.name=name,this.source=source,this.url=url,this.onMessage=NOOP,this.onError=error=>console.log(error),this.worker=globals.jU?this._createBrowserWorker():this._createNodeWorker()}destroy(){this.onMessage=NOOP,this.onError=NOOP,this.worker.terminate(),this.terminated=!0}get isRunning(){return Boolean(this.onMessage)}postMessage(data,transferList){transferList=transferList||getTransferList(data),this.worker.postMessage(data,transferList)}_getErrorFromErrorEvent(event){let message="Failed to load ";return message+="worker ".concat(this.name," from ").concat(this.url,". "),event.message&&(message+="".concat(event.message," in ")),event.lineno&&(message+=":".concat(event.lineno,":").concat(event.colno)),new Error(message)}_createBrowserWorker(){this._loadableURL=getLoadableWorkerURL({source:this.source,url:this.url});const worker=new Worker(this._loadableURL,{name:this.name});return worker.onmessage=event=>{event.data?this.onMessage(event.data):this.onError(new Error("No data received"))},worker.onerror=error=>{this.onError(this._getErrorFromErrorEvent(error)),this.terminated=!0},worker.onmessageerror=event=>console.error(event),worker}_createNodeWorker(){let worker;if(this.url){const url=this.url.includes(":/")||this.url.startsWith("/")?this.url:"./".concat(this.url);worker=new worker_threads_browser_Worker(url,{eval:!1})}else{if(!this.source)throw new Error("no worker");worker=new worker_threads_browser_Worker(this.source,{eval:!0})}return worker.on("message",(data=>{this.onMessage(data)})),worker.on("error",(error=>{this.onError(error)})),worker.on("exit",(code=>{})),worker}}class WorkerJob{constructor(jobName,workerThread){(0,defineProperty.Z)(this,"name",void 0),(0,defineProperty.Z)(this,"workerThread",void 0),(0,defineProperty.Z)(this,"isRunning",!0),(0,defineProperty.Z)(this,"result",void 0),(0,defineProperty.Z)(this,"_resolve",(()=>{})),(0,defineProperty.Z)(this,"_reject",(()=>{})),this.name=jobName,this.workerThread=workerThread,this.result=new Promise(((resolve,reject)=>{this._resolve=resolve,this._reject=reject}))}postMessage(type,payload){this.workerThread.postMessage({source:"loaders.gl",type:type,payload:payload})}done(value){(0,assert.h)(this.isRunning),this.isRunning=!1,this._resolve(value)}error(error){(0,assert.h)(this.isRunning),this.isRunning=!1,this._reject(error)}}class WorkerPool{static isSupported(){return WorkerThread.isSupported()}constructor(props){(0,defineProperty.Z)(this,"name","unnamed"),(0,defineProperty.Z)(this,"source",void 0),(0,defineProperty.Z)(this,"url",void 0),(0,defineProperty.Z)(this,"maxConcurrency",1),(0,defineProperty.Z)(this,"maxMobileConcurrency",1),(0,defineProperty.Z)(this,"onDebug",(()=>{})),(0,defineProperty.Z)(this,"reuseWorkers",!0),(0,defineProperty.Z)(this,"props",{}),(0,defineProperty.Z)(this,"jobQueue",[]),(0,defineProperty.Z)(this,"idleQueue",[]),(0,defineProperty.Z)(this,"count",0),(0,defineProperty.Z)(this,"isDestroyed",!1),this.source=props.source,this.url=props.url,this.setProps(props)}destroy(){this.idleQueue.forEach((worker=>worker.destroy())),this.isDestroyed=!0}setProps(props){this.props={...this.props,...props},void 0!==props.name&&(this.name=props.name),void 0!==props.maxConcurrency&&(this.maxConcurrency=props.maxConcurrency),void 0!==props.maxMobileConcurrency&&(this.maxMobileConcurrency=props.maxMobileConcurrency),void 0!==props.reuseWorkers&&(this.reuseWorkers=props.reuseWorkers),void 0!==props.onDebug&&(this.onDebug=props.onDebug)}async startJob(name){let onMessage=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(job,type,data)=>job.done(data),onError=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(job,error)=>job.error(error);const startPromise=new Promise((onStart=>(this.jobQueue.push({name:name,onMessage:onMessage,onError:onError,onStart:onStart}),this)));return this._startQueuedJob(),await startPromise}async _startQueuedJob(){if(!this.jobQueue.length)return;const workerThread=this._getAvailableWorker();if(!workerThread)return;const queuedJob=this.jobQueue.shift();if(queuedJob){this.onDebug({message:"Starting job",name:queuedJob.name,workerThread:workerThread,backlog:this.jobQueue.length});const job=new WorkerJob(queuedJob.name,workerThread);workerThread.onMessage=data=>queuedJob.onMessage(job,data.type,data.payload),workerThread.onError=error=>queuedJob.onError(job,error),queuedJob.onStart(job);try{await job.result}finally{this.returnWorkerToQueue(workerThread)}}}returnWorkerToQueue(worker){this.isDestroyed||!this.reuseWorkers||this.count>this._getMaxConcurrency()?(worker.destroy(),this.count--):this.idleQueue.push(worker),this.isDestroyed||this._startQueuedJob()}_getAvailableWorker(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count{}};class WorkerFarm{static isSupported(){return WorkerThread.isSupported()}static getWorkerFarm(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return WorkerFarm._workerFarm=WorkerFarm._workerFarm||new WorkerFarm({}),WorkerFarm._workerFarm.setProps(props),WorkerFarm._workerFarm}constructor(props){(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"workerPools",new Map),this.props={...DEFAULT_PROPS},this.setProps(props),this.workerPools=new Map}destroy(){for(const workerPool of this.workerPools.values())workerPool.destroy();this.workerPools=new Map}setProps(props){this.props={...this.props,...props};for(const workerPool of this.workerPools.values())workerPool.setProps(this._getWorkerPoolProps())}getWorkerPool(options){const{name:name,source:source,url:url}=options;let workerPool=this.workerPools.get(name);return workerPool||(workerPool=new WorkerPool({name:name,source:source,url:url}),workerPool.setProps(this._getWorkerPoolProps()),this.workerPools.set(name,workerPool)),workerPool}_getWorkerPoolProps(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}}}(0,defineProperty.Z)(WorkerFarm,"_workerFarm",void 0);const NPM_TAG="latest";async function parseWithWorker(loader,data,options,context,parseOnMainThread){const name=loader.id,url=function getWorkerURL(worker){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const workerOptions=options[worker.id]||{},workerFile="".concat(worker.id,"-worker.js");let url=workerOptions.workerUrl;if(url||"compression"!==worker.id||(url=options.workerUrl),"test"===options._workerType&&(url="modules/".concat(worker.module,"/dist/").concat(workerFile)),!url){let version=worker.version;"latest"===version&&(version=NPM_TAG);const versionTag=version?"@".concat(version):"";url="https://unpkg.com/@loaders.gl/".concat(worker.module).concat(versionTag,"/dist/").concat(workerFile)}return(0,assert.h)(url),url}(loader,options),workerPool=WorkerFarm.getWorkerFarm(options).getWorkerPool({name:name,url:url});options=JSON.parse(JSON.stringify(options)),context=JSON.parse(JSON.stringify(context||{}));const job=await workerPool.startJob("process-on-worker",onMessage.bind(null,parseOnMainThread));job.postMessage("process",{input:data,options:options,context:context});const result=await job.result;return await result.result}async function onMessage(parseOnMainThread,job,type,payload){switch(type){case"done":job.done(payload);break;case"error":job.error(new Error(payload.error));break;case"process":const{id:id,input:input,options:options}=payload;try{const result=await parseOnMainThread(input,options);job.postMessage("done",{id:id,result:result})}catch(error){const message=error instanceof Error?error.message:"unknown error";job.postMessage("error",{id:id,error:message})}break;default:console.warn("parse-with-worker unknown message ".concat(type))}}var array_buffer_utils=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/binary-utils/array-buffer-utils.js");const DEFAULT_CHUNK_SIZE=262144;const make_array_buffer_iterator_DEFAULT_CHUNK_SIZE=262144;const make_blob_iterator_DEFAULT_CHUNK_SIZE=1048576;var env_utils_globals=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/globals.js");function memory_conversion_utils_toArrayBuffer(data){if(function isBuffer(value){return value&&"object"==typeof value&&value.isBuffer}(data))return data;if(data instanceof ArrayBuffer)return data;if(ArrayBuffer.isView(data))return 0===data.byteOffset&&data.byteLength===data.buffer.byteLength?data.buffer:data.buffer.slice(data.byteOffset,data.byteOffset+data.byteLength);if("string"==typeof data){const text=data;return(new TextEncoder).encode(text).buffer}if(data&&"object"==typeof data&&data._toArrayBuffer)return data._toArrayBuffer();throw new Error("toArrayBuffer")}function makeStreamIterator(stream,options){return env_utils_globals.jU?async function*makeBrowserStreamIterator(stream,options){const reader=stream.getReader();let nextBatchPromise;try{for(;;){const currentBatchPromise=nextBatchPromise||reader.read();null!=options&&options._streamReadAhead&&(nextBatchPromise=reader.read());const{done:done,value:value}=await currentBatchPromise;if(done)return;yield memory_conversion_utils_toArrayBuffer(value)}}catch(error){reader.releaseLock()}}(stream,options):async function*makeNodeStreamIterator(stream,options){for await(const chunk of stream)yield memory_conversion_utils_toArrayBuffer(chunk)}(stream)}function make_iterator_makeIterator(data,options){if("string"==typeof data)return function*makeStringIterator(string,options){const chunkSize=(null==options?void 0:options.chunkSize)||DEFAULT_CHUNK_SIZE;let offset=0;const textEncoder=new TextEncoder;for(;offset1&&void 0!==arguments[1]?arguments[1]:{};return function*(){const{chunkSize:chunkSize=make_array_buffer_iterator_DEFAULT_CHUNK_SIZE}=options;let byteOffset=0;for(;byteOffset60?"".concat(message.slice(0,60),"..."):message}catch(error){}return message}(response);throw new Error(message)}}(response),loader.binary?await response.arrayBuffer():await response.text()}if((0,is_type.Os)(data)&&(data=make_iterator_makeIterator(data,options)),(0,is_type.TW)(data)||(0,is_type.D0)(data))return async function concatenateArrayBuffersAsync(asyncIterator){const arrayBuffers=[];for await(const chunk of asyncIterator)arrayBuffers.push(chunk);return(0,array_buffer_utils.JY)(...arrayBuffers)}(data);throw new Error(ERR_DATA)}var path=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/path-utils/path.js");function getLoaderContext(context,options,parentContext){if(parentContext)return parentContext;const newContext={fetch:getFetchFunction(options,context),...context};if(newContext.url){const baseUrl=stripQueryString(newContext.url);newContext.baseUrl=baseUrl,newContext.queryString=function extractQueryString(url){const matches=url.match(QUERY_STRING_PATTERN);return matches&&matches[0]}(newContext.url),newContext.filename=path.vB(baseUrl),newContext.baseUrl=path.XX(baseUrl)}return Array.isArray(newContext.loaders)||(newContext.loaders=null),newContext}const log_log=new(__webpack_require__("./node_modules/@loaders.gl/core/node_modules/@probe.gl/log/dist/log.js").Z)({id:"loaders.gl"});var register_loaders=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/register-loaders.js");const EXT_PATTERN=/\.([^.]+)$/;function selectLoaderSync(data){let loaders=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],options=arguments.length>2?arguments[2]:void 0,context=arguments.length>3?arguments[3]:void 0;if(!validHTTPResponse(data))return null;if(loaders&&!Array.isArray(loaders))return(0,normalize_loader.T)(loaders);let candidateLoaders=[];loaders&&(candidateLoaders=candidateLoaders.concat(loaders)),null!=options&&options.ignoreRegisteredLoaders||candidateLoaders.push(...(0,register_loaders.kO)()),function normalizeLoaders(loaders){for(const loader of loaders)(0,normalize_loader.T)(loader)}(candidateLoaders);const loader=function selectLoaderInternal(data,loaders,options,context){const url=getResourceUrl(data),type=getResourceMIMEType(data),testUrl=stripQueryString(url)||(null==context?void 0:context.url);let loader=null,reason="";null!=options&&options.mimeType&&(loader=findLoaderByMIMEType(loaders,null==options?void 0:options.mimeType),reason="match forced by supplied MIME type ".concat(null==options?void 0:options.mimeType));var _loader;loader=loader||function findLoaderByUrl(loaders,url){const match=url&&EXT_PATTERN.exec(url),extension=match&&match[1];return extension?function findLoaderByExtension(loaders,extension){extension=extension.toLowerCase();for(const loader of loaders)for(const loaderExtension of loader.extensions)if(loaderExtension.toLowerCase()===extension)return loader;return null}(loaders,extension):null}(loaders,testUrl),reason=reason||(loader?"matched url ".concat(testUrl):""),loader=loader||findLoaderByMIMEType(loaders,type),reason=reason||(loader?"matched MIME type ".concat(type):""),loader=loader||function findLoaderByInitialBytes(loaders,data){if(!data)return null;for(const loader of loaders)if("string"==typeof data){if(testDataAgainstText(data,loader))return loader}else if(ArrayBuffer.isView(data)){if(testDataAgainstBinary(data.buffer,data.byteOffset,loader))return loader}else if(data instanceof ArrayBuffer){if(testDataAgainstBinary(data,0,loader))return loader}return null}(loaders,data),reason=reason||(loader?"matched initial data ".concat(getFirstCharacters(data)):""),loader=loader||findLoaderByMIMEType(loaders,null==options?void 0:options.fallbackMimeType),reason=reason||(loader?"matched fallback MIME type ".concat(type):""),reason&&log_log.log(1,"selectLoader selected ".concat(null===(_loader=loader)||void 0===_loader?void 0:_loader.name,": ").concat(reason,"."));return loader}(data,candidateLoaders,options,context);if(!(loader||null!=options&&options.nothrow))throw new Error(getNoValidLoaderMessage(data));return loader}function validHTTPResponse(data){return!(data instanceof Response&&204===data.status)}function getNoValidLoaderMessage(data){const url=getResourceUrl(data),type=getResourceMIMEType(data);let message="No valid loader found (";message+=url?"".concat(path.vB(url),", "):"no url provided, ",message+="MIME type: ".concat(type?'"'.concat(type,'"'):"not provided",", ");const firstCharacters=data?getFirstCharacters(data):"";return message+=firstCharacters?' first bytes: "'.concat(firstCharacters,'"'):"first bytes: not available",message+=")",message}function findLoaderByMIMEType(loaders,mimeType){for(const loader of loaders){if(loader.mimeTypes&&loader.mimeTypes.includes(mimeType))return loader;if(mimeType==="application/x.".concat(loader.id))return loader}return null}function testDataAgainstText(data,loader){if(loader.testText)return loader.testText(data);return(Array.isArray(loader.tests)?loader.tests:[loader.tests]).some((test=>data.startsWith(test)))}function testDataAgainstBinary(data,byteOffset,loader){return(Array.isArray(loader.tests)?loader.tests:[loader.tests]).some((test=>function testBinary(data,byteOffset,loader,test){if(test instanceof ArrayBuffer)return(0,array_buffer_utils.Xq)(test,data,test.byteLength);switch(typeof test){case"function":return test(data,loader);case"string":return test===getMagicString(data,byteOffset,test.length);default:return!1}}(data,byteOffset,loader,test)))}function getFirstCharacters(data){let length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if("string"==typeof data)return data.slice(0,length);if(ArrayBuffer.isView(data))return getMagicString(data.buffer,data.byteOffset,length);if(data instanceof ArrayBuffer){return getMagicString(data,0,length)}return""}function getMagicString(arrayBuffer,byteOffset,length){if(arrayBuffer.byteLength1&&void 0!==arguments[1]?arguments[1]:[],options=arguments.length>2?arguments[2]:void 0,context=arguments.length>3?arguments[3]:void 0;if(!validHTTPResponse(data))return null;let loader=selectLoaderSync(data,loaders,{...options,nothrow:!0},context);if(loader)return loader;if((0,is_type.Lj)(data)&&(loader=selectLoaderSync(data=await data.slice(0,10).arrayBuffer(),loaders,options,context)),!(loader||null!=options&&options.nothrow))throw new Error(getNoValidLoaderMessage(data));return loader}(data,candidateLoaders,options);return loader?(context=getLoaderContext({url:url,parse:parse,loaders:candidateLoaders},options=(0,option_utils.GR)(options,loader,candidateLoaders,url),context||null),await async function parseWithLoader(loader,data,options,context){if(function validateWorkerVersion(worker){let coreVersion=arguments.length>1&&void 0!==arguments[1]?arguments[1]:VERSION;(0,assert.h)(worker,"no worker provided");const workerVersion=worker.version;return!(!coreVersion||!workerVersion)}(loader),(0,is_type.Ew)(data)){const response=data,{ok:ok,redirected:redirected,status:status,statusText:statusText,type:type,url:url}=response,headers=Object.fromEntries(response.headers.entries());context.response={headers:headers,ok:ok,redirected:redirected,status:status,statusText:statusText,type:type,url:url}}if(data=await getArrayBufferOrStringFromData(data,loader,options),loader.parseTextSync&&"string"==typeof data)return options.dataType="text",loader.parseTextSync(data,options,context,loader);if(function canParseWithWorker(loader,options){return!!WorkerFarm.isSupported()&&!!(globals.jU||null!=options&&options._nodeWorkers)&&loader.worker&&(null==options?void 0:options.worker)}(loader,options))return await parseWithWorker(loader,data,options,context,parse);if(loader.parseText&&"string"==typeof data)return await loader.parseText(data,options,context,loader);if(loader.parse)return await loader.parse(data,options,context,loader);throw(0,assert.h)(!loader.parseSync),new Error("".concat(loader.id," loader - no parser found and worker is disabled"))}(loader,data,options,context)):null}async function load(url,loaders,options,context){Array.isArray(loaders)||(0,normalize_loader.C)(loaders)||(void 0,options=loaders,loaders=void 0);const fetch=getFetchFunction(options);let data=url;return"string"==typeof url&&(data=await fetch(url)),(0,is_type.Lj)(url)&&(data=await fetch(url)),await parse(data,loaders,options)}},"./node_modules/@loaders.gl/core/dist/esm/lib/api/register-loaders.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{fh:function(){return registerLoaders},kO:function(){return getRegisteredLoaders}});var _loader_utils_normalize_loader__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/loader-utils/normalize-loader.js"),_loader_utils_option_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/loader-utils/option-utils.js");const getGlobalLoaderRegistry=()=>{const state=(0,_loader_utils_option_utils__WEBPACK_IMPORTED_MODULE_0__.rx)();return state.loaderRegistry=state.loaderRegistry||[],state.loaderRegistry};function registerLoaders(loaders){const loaderRegistry=getGlobalLoaderRegistry();loaders=Array.isArray(loaders)?loaders:[loaders];for(const loader of loaders){const normalizedLoader=(0,_loader_utils_normalize_loader__WEBPACK_IMPORTED_MODULE_1__.T)(loader);loaderRegistry.find((registeredLoader=>normalizedLoader===registeredLoader))||loaderRegistry.unshift(normalizedLoader)}}function getRegisteredLoaders(){return getGlobalLoaderRegistry()}},"./node_modules/@loaders.gl/core/dist/esm/lib/loader-utils/normalize-loader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return isLoaderObject},T:function(){return normalizeLoader}});var _loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/assert.js");function isLoaderObject(loader){var _loader;if(!loader)return!1;Array.isArray(loader)&&(loader=loader[0]);return Array.isArray(null===(_loader=loader)||void 0===_loader?void 0:_loader.extensions)}function normalizeLoader(loader){var _loader2,_loader3;let options;return(0,_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_0__.h)(loader,"null loader"),(0,_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_0__.h)(isLoaderObject(loader),"invalid loader"),Array.isArray(loader)&&(options=loader[1],loader=loader[0],loader={...loader,options:{...loader.options,...options}}),(null!==(_loader2=loader)&&void 0!==_loader2&&_loader2.parseTextSync||null!==(_loader3=loader)&&void 0!==_loader3&&_loader3.parseText)&&(loader.text=!0),loader.text||(loader.binary=!0),loader}},"./node_modules/@loaders.gl/core/dist/esm/lib/loader-utils/option-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{pm:function(){return getGlobalLoaderOptions},rx:function(){return getGlobalLoaderState},GR:function(){return normalizeOptions}});var is_type=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/javascript-utils/is-type.js"),defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");const probeLog=new(__webpack_require__("./node_modules/@loaders.gl/core/node_modules/@probe.gl/log/dist/log.js").Z)({id:"loaders.gl"});class NullLog{log(){return()=>{}}info(){return()=>{}}warn(){return()=>{}}error(){return()=>{}}}var globals=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/globals.js");const DEFAULT_LOADER_OPTIONS={fetch:null,mimeType:void 0,nothrow:!1,log:new class ConsoleLog{constructor(){(0,defineProperty.Z)(this,"console",void 0),this.console=console}log(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return this.console.log.bind(this.console,...args)}info(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return this.console.info.bind(this.console,...args)}warn(){for(var _len3=arguments.length,args=new Array(_len3),_key3=0;_key3<_len3;_key3++)args[_key3]=arguments[_key3];return this.console.warn.bind(this.console,...args)}error(){for(var _len4=arguments.length,args=new Array(_len4),_key4=0;_key4<_len4;_key4++)args[_key4]=arguments[_key4];return this.console.error.bind(this.console,...args)}},CDN:"https://unpkg.com/@loaders.gl",worker:!0,maxConcurrency:3,maxMobileConcurrency:1,reuseWorkers:globals.jU,_nodeWorkers:!1,_workerType:"",limit:0,_limitMB:0,batchSize:"auto",batchDebounceMs:0,metadata:!1,transforms:[]},REMOVED_LOADER_OPTIONS={throws:"nothrow",dataType:"(no longer used)",uri:"baseUri",method:"fetch.method",headers:"fetch.headers",body:"fetch.body",mode:"fetch.mode",credentials:"fetch.credentials",cache:"fetch.cache",redirect:"fetch.redirect",referrer:"fetch.referrer",referrerPolicy:"fetch.referrerPolicy",integrity:"fetch.integrity",keepalive:"fetch.keepalive",signal:"fetch.signal"};function getGlobalLoaderState(){globalThis.loaders=globalThis.loaders||{};const{loaders:loaders}=globalThis;return loaders._state=loaders._state||{},loaders._state}const getGlobalLoaderOptions=()=>{const state=getGlobalLoaderState();return state.globalOptions=state.globalOptions||{...DEFAULT_LOADER_OPTIONS},state.globalOptions};function normalizeOptions(options,loader,loaders,url){return loaders=loaders||[],function validateOptions(options,loaders){validateOptionsObject(options,null,DEFAULT_LOADER_OPTIONS,REMOVED_LOADER_OPTIONS,loaders);for(const loader of loaders){const idOptions=options&&options[loader.id]||{},loaderOptions=loader.options&&loader.options[loader.id]||{},deprecatedOptions=loader.deprecatedOptions&&loader.deprecatedOptions[loader.id]||{};validateOptionsObject(idOptions,loader.id,loaderOptions,deprecatedOptions,loaders)}}(options,loaders=Array.isArray(loaders)?loaders:[loaders]),normalizeOptionsInternal(loader,options,url)}function validateOptionsObject(options,id,defaultOptions,deprecatedOptions,loaders){const loaderName=id||"Top level",prefix=id?"".concat(id,"."):"";for(const key in options){const isSubOptions=!id&&(0,is_type.Kn)(options[key]);if(!(key in defaultOptions)&&!("baseUri"===key&&!id)&&!("workerUrl"===key&&id))if(key in deprecatedOptions)probeLog.warn("".concat(loaderName," loader option '").concat(prefix).concat(key,"' no longer supported, use '").concat(deprecatedOptions[key],"'"))();else if(!isSubOptions){const suggestion=findSimilarOption(key,loaders);probeLog.warn("".concat(loaderName," loader option '").concat(prefix).concat(key,"' not recognized. ").concat(suggestion))()}}}function findSimilarOption(optionKey,loaders){const lowerCaseOptionKey=optionKey.toLowerCase();let bestSuggestion="";for(const loader of loaders)for(const key in loader.options){if(optionKey===key)return"Did you mean '".concat(loader.id,".").concat(key,"'?");const lowerCaseKey=key.toLowerCase();(lowerCaseOptionKey.startsWith(lowerCaseKey)||lowerCaseKey.startsWith(lowerCaseOptionKey))&&(bestSuggestion=bestSuggestion||"Did you mean '".concat(loader.id,".").concat(key,"'?"))}return bestSuggestion}function normalizeOptionsInternal(loader,options,url){const mergedOptions={...loader.options||{}};return function addUrlOptions(options,url){url&&!("baseUri"in options)&&(options.baseUri=url)}(mergedOptions,url),null===mergedOptions.log&&(mergedOptions.log=new NullLog),mergeNestedFields(mergedOptions,getGlobalLoaderOptions()),mergeNestedFields(mergedOptions,options),mergedOptions}function mergeNestedFields(mergedOptions,options){for(const key in options)if(key in options){const value=options[key];(0,is_type.Ss)(value)&&(0,is_type.Ss)(mergedOptions[key])?mergedOptions[key]={...mergedOptions[key],...options[key]}:mergedOptions[key]=options[key]}}},"./node_modules/@loaders.gl/core/node_modules/@probe.gl/log/dist/log.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Log}});var process=__webpack_require__("./node_modules/process/browser.js");var is_browser_process=__webpack_require__("./node_modules/process/browser.js");function isBrowser(){return!("object"==typeof is_browser_process&&"[object process]"===String(is_browser_process)&&!is_browser_process.browser)||function isElectron(mockUserAgent){if("undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type)return!0;if(void 0!==process&&"object"==typeof process.versions&&Boolean(process.versions.electron))return!0;const realUserAgent="object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent,userAgent=mockUserAgent||realUserAgent;return!!(userAgent&&userAgent.indexOf("Electron")>=0)}()}const VERSION="undefined"!=typeof __VERSION__?__VERSION__:"untranspiled source";isBrowser();class LocalStorage{constructor(id,defaultConfig){let type=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";this.storage=void 0,this.id=void 0,this.config=void 0,this.storage=function getStorage(type){try{const storage=window[type],x="__storage_test__";return storage.setItem(x,x),storage.removeItem(x),storage}catch(e){return null}}(type),this.id=id,this.config=defaultConfig,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(configuration){if(Object.assign(this.config,configuration),this.storage){const serialized=JSON.stringify(this.config);this.storage.setItem(this.id,serialized)}}_loadConfiguration(){let configuration={};if(this.storage){const serializedConfiguration=this.storage.getItem(this.id);configuration=serializedConfiguration?JSON.parse(serializedConfiguration):{}}return Object.assign(this.config,configuration),this}}function formatImage(image,message,scale){let maxWidth=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600;const imageUrl=image.src.replace(/\(/g,"%28").replace(/\)/g,"%29");image.width>maxWidth&&(scale=Math.min(scale,maxWidth/image.width));const width=image.width*scale,height=image.height*scale,style=["font-size:1px;","padding:".concat(Math.floor(height/2),"px ").concat(Math.floor(width/2),"px;"),"line-height:".concat(height,"px;"),"background:url(".concat(imageUrl,");"),"background-size:".concat(width,"px ").concat(height,"px;"),"color:transparent;"].join("");return["".concat(message," %c+"),style]}let COLOR;!function(COLOR){COLOR[COLOR.BLACK=30]="BLACK",COLOR[COLOR.RED=31]="RED",COLOR[COLOR.GREEN=32]="GREEN",COLOR[COLOR.YELLOW=33]="YELLOW",COLOR[COLOR.BLUE=34]="BLUE",COLOR[COLOR.MAGENTA=35]="MAGENTA",COLOR[COLOR.CYAN=36]="CYAN",COLOR[COLOR.WHITE=37]="WHITE",COLOR[COLOR.BRIGHT_BLACK=90]="BRIGHT_BLACK",COLOR[COLOR.BRIGHT_RED=91]="BRIGHT_RED",COLOR[COLOR.BRIGHT_GREEN=92]="BRIGHT_GREEN",COLOR[COLOR.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",COLOR[COLOR.BRIGHT_BLUE=94]="BRIGHT_BLUE",COLOR[COLOR.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",COLOR[COLOR.BRIGHT_CYAN=96]="BRIGHT_CYAN",COLOR[COLOR.BRIGHT_WHITE=97]="BRIGHT_WHITE"}(COLOR||(COLOR={}));const BACKGROUND_INCREMENT=10;function getColor(color){return"string"!=typeof color?color:(color=color.toUpperCase(),COLOR[color]||COLOR.WHITE)}function assert(condition,message){if(!condition)throw new Error(message||"Assertion failed")}globalThis.self||globalThis.window||globalThis.global;const window_=globalThis.window||globalThis.self||globalThis.global,process_=(globalThis.document,globalThis.process||{});globalThis.console,globalThis.navigator;function getHiResTimestamp(){let timestamp;var _window$performance,_window$performance$n;if(isBrowser()&&window_.performance)timestamp=null==window_||null===(_window$performance=window_.performance)||void 0===_window$performance||null===(_window$performance$n=_window$performance.now)||void 0===_window$performance$n?void 0:_window$performance$n.call(_window$performance);else if("hrtime"in process_){var _process$hrtime;const timeParts=null==process_||null===(_process$hrtime=process_.hrtime)||void 0===_process$hrtime?void 0:_process$hrtime.call(process_);timestamp=1e3*timeParts[0]+timeParts[1]/1e6}else timestamp=Date.now();return timestamp}const originalConsole={debug:isBrowser()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},DEFAULT_LOG_CONFIGURATION={enabled:!0,level:0};function noop(){}const cache={},ONCE={once:!0};class Log{constructor(){let{id:id}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:""};this.id=void 0,this.VERSION=VERSION,this._startTs=getHiResTimestamp(),this._deltaTs=getHiResTimestamp(),this._storage=void 0,this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=id,this.userData={},this._storage=new LocalStorage("__probe-".concat(this.id,"__"),DEFAULT_LOG_CONFIGURATION),this.timeStamp("".concat(this.id," started")),function autobind(obj){let predefined=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"];const proto=Object.getPrototypeOf(obj),propNames=Object.getOwnPropertyNames(proto),object=obj;for(const key of propNames){const value=object[key];"function"==typeof value&&(predefined.find((name=>key===name))||(object[key]=value.bind(obj)))}}(this),Object.seal(this)}set level(newLevel){this.setLevel(newLevel)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((getHiResTimestamp()-this._startTs).toPrecision(10))}getDelta(){return Number((getHiResTimestamp()-this._deltaTs).toPrecision(10))}set priority(newPriority){this.level=newPriority}get priority(){return this.level}getPriority(){return this.level}enable(){let enabled=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._storage.setConfiguration({enabled:enabled}),this}setLevel(level){return this._storage.setConfiguration({level:level}),this}get(setting){return this._storage.config[setting]}set(setting,value){this._storage.setConfiguration({[setting]:value})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(condition,message){assert(condition,message)}warn(message){return this._getLogFunction(0,message,originalConsole.warn,arguments,ONCE)}error(message){return this._getLogFunction(0,message,originalConsole.error,arguments)}deprecated(oldUsage,newUsage){return this.warn("`".concat(oldUsage,"` is deprecated and will be removed in a later version. Use `").concat(newUsage,"` instead"))}removed(oldUsage,newUsage){return this.error("`".concat(oldUsage,"` has been removed. Use `").concat(newUsage,"` instead"))}probe(logLevel,message){return this._getLogFunction(logLevel,message,originalConsole.log,arguments,{time:!0,once:!0})}log(logLevel,message){return this._getLogFunction(logLevel,message,originalConsole.debug,arguments)}info(logLevel,message){return this._getLogFunction(logLevel,message,console.info,arguments)}once(logLevel,message){return this._getLogFunction(logLevel,message,originalConsole.debug||originalConsole.info,arguments,ONCE)}table(logLevel,table,columns){return table?this._getLogFunction(logLevel,table,console.table||noop,columns&&[columns],{tag:getTableHeader(table)}):noop}image(_ref){let{logLevel:logLevel,priority:priority,image:image,message:message="",scale:scale=1}=_ref;return this._shouldLog(logLevel||priority)?isBrowser()?function logImageInBrowser(_ref3){let{image:image,message:message="",scale:scale=1}=_ref3;if("string"==typeof image){const img=new Image;return img.onload=()=>{const args=formatImage(img,message,scale);console.log(...args)},img.src=image,noop}const element=image.nodeName||"";if("img"===element.toLowerCase())return console.log(...formatImage(image,message,scale)),noop;if("canvas"===element.toLowerCase()){const img=new Image;return img.onload=()=>console.log(...formatImage(img,message,scale)),img.src=image.toDataURL(),noop}return noop}({image:image,message:message,scale:scale}):function logImageInNode(_ref2){let{image:image,message:message="",scale:scale=1}=_ref2;return console.warn("removed"),noop}({image:image,message:message,scale:scale}):noop}time(logLevel,message){return this._getLogFunction(logLevel,message,console.time?console.time:console.info)}timeEnd(logLevel,message){return this._getLogFunction(logLevel,message,console.timeEnd?console.timeEnd:console.info)}timeStamp(logLevel,message){return this._getLogFunction(logLevel,message,console.timeStamp||noop)}group(logLevel,message){let opts=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1};const options=normalizeArguments({logLevel:logLevel,message:message,opts:opts}),{collapsed:collapsed}=opts;return options.method=(collapsed?console.groupCollapsed:console.group)||console.info,this._getLogFunction(options)}groupCollapsed(logLevel,message){let opts=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(logLevel,message,Object.assign({},opts,{collapsed:!0}))}groupEnd(logLevel){return this._getLogFunction(logLevel,"",console.groupEnd||noop)}withGroup(logLevel,message,func){this.group(logLevel,message)();try{func()}finally{this.groupEnd(logLevel)()}}trace(){console.trace&&console.trace()}_shouldLog(logLevel){return this.isEnabled()&&this.getLevel()>=normalizeLogLevel(logLevel)}_getLogFunction(logLevel,message,method,args,opts){if(this._shouldLog(logLevel)){opts=normalizeArguments({logLevel:logLevel,message:message,args:args,opts:opts}),assert(method=method||opts.method),opts.total=this.getTotal(),opts.delta=this.getDelta(),this._deltaTs=getHiResTimestamp();const tag=opts.tag||opts.message;if(opts.once&&tag){if(cache[tag])return noop;cache[tag]=getHiResTimestamp()}return message=function decorateMessage(id,message,opts){if("string"==typeof message){const time=opts.time?function leftPad(string){let length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;const padLength=Math.max(length-string.length,0);return"".concat(" ".repeat(padLength)).concat(string)}(function formatTime(ms){let formatted;return formatted=ms<10?"".concat(ms.toFixed(2),"ms"):ms<100?"".concat(ms.toFixed(1),"ms"):ms<1e3?"".concat(ms.toFixed(0),"ms"):"".concat((ms/1e3).toFixed(2),"s"),formatted}(opts.total)):"";message=function addColor(string,color,background){if(!isBrowser&&"string"==typeof string){if(color){const colorCode=getColor(color);string="[".concat(colorCode,"m").concat(string,"")}if(background){const colorCode=getColor(background);string="[".concat(colorCode+BACKGROUND_INCREMENT,"m").concat(string,"")}}return string}(message=opts.time?"".concat(id,": ").concat(time," ").concat(message):"".concat(id,": ").concat(message),opts.color,opts.background)}return message}(this.id,opts.message,opts),method.bind(console,message,...opts.args)}return noop}}function normalizeLogLevel(logLevel){if(!logLevel)return 0;let resolvedLevel;switch(typeof logLevel){case"number":resolvedLevel=logLevel;break;case"object":resolvedLevel=logLevel.logLevel||logLevel.priority||0;break;default:return 0}return assert(Number.isFinite(resolvedLevel)&&resolvedLevel>=0),resolvedLevel}function normalizeArguments(opts){const{logLevel:logLevel,message:message}=opts;opts.logLevel=normalizeLogLevel(logLevel);const args=opts.args?Array.from(opts.args):[];for(;args.length&&args.shift()!==message;);switch(typeof logLevel){case"string":case"function":void 0!==message&&args.unshift(message),opts.message=logLevel;break;case"object":Object.assign(opts,logLevel)}"function"==typeof opts.message&&(opts.message=opts.message());const messageType=typeof opts.message;return assert("string"===messageType||"object"===messageType),Object.assign(opts,{args:args},opts.opts)}function getTableHeader(table){for(const key in table)for(const title in table[key])return title||"untitled";return"empty"}Log.VERSION=VERSION},"./node_modules/@loaders.gl/images/dist/esm/image-loader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{S:function(){return ImageLoader}});var assert=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/assert.js"),globals=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/globals.js");const{_parseImageNode:_parseImageNode}=globalThis,IMAGE_SUPPORTED="undefined"!=typeof Image,IMAGE_BITMAP_SUPPORTED="undefined"!=typeof ImageBitmap,NODE_IMAGE_SUPPORTED=Boolean(_parseImageNode),DATA_SUPPORTED=!!globals.jU||NODE_IMAGE_SUPPORTED;function getImageType(image){const format=getImageTypeOrNull(image);if(!format)throw new Error("Not an image");return format}function getImageData(image){switch(getImageType(image)){case"data":return image;case"image":case"imagebitmap":const canvas=document.createElement("canvas"),context=canvas.getContext("2d");if(!context)throw new Error("getImageData");return canvas.width=image.width,canvas.height=image.height,context.drawImage(image,0,0),context.getImageData(0,0,image.width,image.height);default:throw new Error("getImageData")}}function getImageTypeOrNull(image){return"undefined"!=typeof ImageBitmap&&image instanceof ImageBitmap?"imagebitmap":"undefined"!=typeof Image&&image instanceof Image?"image":image&&"object"==typeof image&&image.data&&image.width&&image.height?"data":null}const SVG_DATA_URL_PATTERN=/^data:image\/svg\+xml/,SVG_URL_PATTERN=/\.svg((\?|#).*)?$/;function isSVG(url){return url&&(SVG_DATA_URL_PATTERN.test(url)||SVG_URL_PATTERN.test(url))}function getBlob(arrayBuffer,url){if(isSVG(url))throw new Error("SVG cannot be parsed directly to imagebitmap");return new Blob([new Uint8Array(arrayBuffer)])}async function parseToImage(arrayBuffer,options,url){const blobOrDataUrl=function getBlobOrSVGDataUrl(arrayBuffer,url){if(isSVG(url)){let xmlText=(new TextDecoder).decode(arrayBuffer);try{"function"==typeof unescape&&"function"==typeof encodeURIComponent&&(xmlText=unescape(encodeURIComponent(xmlText)))}catch(error){throw new Error(error.message)}return"data:image/svg+xml;base64,".concat(btoa(xmlText))}return getBlob(arrayBuffer,url)}(arrayBuffer,url),URL=self.URL||self.webkitURL,objectUrl="string"!=typeof blobOrDataUrl&&URL.createObjectURL(blobOrDataUrl);try{return await async function loadToImage(url,options){const image=new Image;if(image.src=url,options.image&&options.image.decode&&image.decode)return await image.decode(),image;return await new Promise(((resolve,reject)=>{try{image.onload=()=>resolve(image),image.onerror=err=>reject(new Error("Could not load image ".concat(url,": ").concat(err)))}catch(error){reject(error)}}))}(objectUrl||blobOrDataUrl,options)}finally{objectUrl&&URL.revokeObjectURL(objectUrl)}}const EMPTY_OBJECT={};let imagebitmapOptionsSupported=!0;async function parseToImageBitmap(arrayBuffer,options,url){let blob;if(isSVG(url)){blob=await parseToImage(arrayBuffer,options,url)}else blob=getBlob(arrayBuffer,url);const imagebitmapOptions=options&&options.imagebitmap;return await async function safeCreateImageBitmap(blob){let imagebitmapOptions=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function isEmptyObject(object){for(const key in object||EMPTY_OBJECT)return!1;return!0}(imagebitmapOptions)&&imagebitmapOptionsSupported||(imagebitmapOptions=null);if(imagebitmapOptions)try{return await createImageBitmap(blob,imagebitmapOptions)}catch(error){console.warn(error),imagebitmapOptionsSupported=!1}return await createImageBitmap(blob)}(blob,imagebitmapOptions)}var binary_image_api=__webpack_require__("./node_modules/@loaders.gl/images/dist/esm/lib/category-api/binary-image-api.js");const ImageLoader={id:"image",module:"images",name:"Images",version:"3.4.14",mimeTypes:["image/png","image/jpeg","image/gif","image/webp","image/avif","image/bmp","image/vnd.microsoft.icon","image/svg+xml"],extensions:["png","jpg","jpeg","gif","webp","bmp","ico","svg","avif"],parse:async function parseImage(arrayBuffer,options,context){const imageType=((options=options||{}).image||{}).type||"auto",{url:url}=context||{};let image;switch(function getLoadableImageType(type){switch(type){case"auto":case"data":return function getDefaultImageType(){if(IMAGE_BITMAP_SUPPORTED)return"imagebitmap";if(IMAGE_SUPPORTED)return"image";if(DATA_SUPPORTED)return"data";throw new Error("Install '@loaders.gl/polyfills' to parse images under Node.js")}();default:return function isImageTypeSupported(type){switch(type){case"auto":return IMAGE_BITMAP_SUPPORTED||IMAGE_SUPPORTED||DATA_SUPPORTED;case"imagebitmap":return IMAGE_BITMAP_SUPPORTED;case"image":return IMAGE_SUPPORTED;case"data":return DATA_SUPPORTED;default:throw new Error("@loaders.gl/images: image ".concat(type," not supported in this environment"))}}(type),type}}(imageType)){case"imagebitmap":image=await parseToImageBitmap(arrayBuffer,options,url);break;case"image":image=await parseToImage(arrayBuffer,options,url);break;case"data":image=await async function parseToNodeImage(arrayBuffer,options){const{mimeType:mimeType}=(0,binary_image_api.I)(arrayBuffer)||{},_parseImageNode=globalThis._parseImageNode;return(0,assert.h)(_parseImageNode),await _parseImageNode(arrayBuffer,mimeType)}(arrayBuffer);break;default:(0,assert.h)(!1)}return"data"===imageType&&(image=getImageData(image)),image},tests:[arrayBuffer=>Boolean((0,binary_image_api.I)(new DataView(arrayBuffer)))],options:{image:{type:"auto",decode:!0}}}},"./node_modules/@loaders.gl/images/dist/esm/lib/category-api/binary-image-api.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function getISOBMFFMediaType(buffer){return function checkString(buffer,header){let offset=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const headerBytes=function stringToBytes(string){return[...string].map((character=>character.charCodeAt(0)))}(header);for(let i=0;i=24&&2303741511===dataView.getUint32(0,BIG_ENDIAN);if(!isPng)return null;return{mimeType:"image/png",width:dataView.getUint32(16,BIG_ENDIAN),height:dataView.getUint32(20,BIG_ENDIAN)}}(dataView)||function getJpegMetadata(binaryData){const dataView=toDataView(binaryData),isJpeg=dataView.byteLength>=3&&65496===dataView.getUint16(0,BIG_ENDIAN)&&255===dataView.getUint8(2);if(!isJpeg)return null;const{tableMarkers:tableMarkers,sofMarkers:sofMarkers}=function getJpegMarkers(){const tableMarkers=new Set([65499,65476,65484,65501,65534]);for(let i=65504;i<65520;++i)tableMarkers.add(i);const sofMarkers=new Set([65472,65473,65474,65475,65477,65478,65479,65481,65482,65483,65485,65486,65487,65502]);return{tableMarkers:tableMarkers,sofMarkers:sofMarkers}}();let i=2;for(;i+9=10&&1195984440===dataView.getUint32(0,BIG_ENDIAN);if(!isGif)return null;return{mimeType:"image/gif",width:dataView.getUint16(6,LITTLE_ENDIAN),height:dataView.getUint16(8,LITTLE_ENDIAN)}}(dataView)||function getBmpMetadata(binaryData){const dataView=toDataView(binaryData),isBmp=dataView.byteLength>=14&&16973===dataView.getUint16(0,BIG_ENDIAN)&&dataView.getUint32(2,LITTLE_ENDIAN)===dataView.byteLength;if(!isBmp)return null;return{mimeType:"image/bmp",width:dataView.getUint32(18,LITTLE_ENDIAN),height:dataView.getUint32(22,LITTLE_ENDIAN)}}(dataView)||function getISOBMFFMetadata(binaryData){const buffer=new Uint8Array(binaryData instanceof DataView?binaryData.buffer:binaryData),mediaType=getISOBMFFMediaType(buffer);if(!mediaType)return null;return{mimeType:mediaType.mimeType,width:0,height:0}}(dataView)}function toDataView(data){if(data instanceof DataView)return data;if(ArrayBuffer.isView(data))return new DataView(data.buffer);if(data instanceof ArrayBuffer)return new DataView(data);throw new Error("toDataView")}},"./node_modules/@loaders.gl/loader-utils/dist/esm/lib/binary-utils/array-buffer-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function compareArrayBuffers(arrayBuffer1,arrayBuffer2,byteLength){if(byteLength=byteLength||arrayBuffer1.byteLength,arrayBuffer1.byteLengthsource2 instanceof ArrayBuffer?new Uint8Array(source2):source2)),byteLength=sourceArrays.reduce(((length,typedArray)=>length+typedArray.byteLength),0),result=new Uint8Array(byteLength);let offset=0;for(const sourceArray of sourceArrays)result.set(sourceArray,offset),offset+=sourceArray.byteLength;return result.buffer}function sliceArrayBuffer(arrayBuffer,byteOffset,byteLength){const subArray=void 0!==byteLength?new Uint8Array(arrayBuffer).subarray(byteOffset,byteOffset+byteLength):new Uint8Array(arrayBuffer).subarray(byteOffset);return new Uint8Array(subArray).buffer}__webpack_require__.d(__webpack_exports__,{JY:function(){return concatenateArrayBuffers},Xq:function(){return compareArrayBuffers},qv:function(){return sliceArrayBuffer}})},"./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"loader assertion failed.")}__webpack_require__.d(__webpack_exports__,{h:function(){return assert}})},"./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/globals.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{jU:function(){return isBrowser}});var process=__webpack_require__("./node_modules/process/browser.js");"undefined"!=typeof self&&self,"undefined"!=typeof window&&window,void 0!==__webpack_require__.g&&__webpack_require__.g,"undefined"!=typeof document&&document;const isBrowser=Boolean("object"!=typeof process||"[object process]"!==String(process)||process.browser),matches=void 0!==process&&process.version&&/v([0-9]*)/.exec(process.version);matches&&parseFloat(matches[1])},"./node_modules/@loaders.gl/loader-utils/dist/esm/lib/path-utils/path.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function filename(url){const slashIndex=url?url.lastIndexOf("/"):-1;return slashIndex>=0?url.substr(slashIndex+1):""}function dirname(url){const slashIndex=url?url.lastIndexOf("/"):-1;return slashIndex>=0?url.substr(0,slashIndex):""}__webpack_require__.d(__webpack_exports__,{XX:function(){return dirname},vB:function(){return filename}})},"./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"loaders.gl assertion failed.")}__webpack_require__.d(__webpack_exports__,{h:function(){return assert}})},"./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/globals.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{CO:function(){return global_},hJ:function(){return isWorker},jU:function(){return isBrowser},tq:function(){return isMobile}});var process=__webpack_require__("./node_modules/process/browser.js");const globals={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==__webpack_require__.g&&__webpack_require__.g,document:"undefined"!=typeof document&&document},global_=globals.global||globals.self||globals.window||{},isBrowser="object"!=typeof process||"[object process]"!==String(process)||process.browser,isWorker="function"==typeof importScripts,isMobile="undefined"!=typeof window&&void 0!==window.orientation,matches=void 0!==process&&process.version&&/v([0-9]*)/.exec(process.version);matches&&parseFloat(matches[1])},"./node_modules/@luma.gl/constants/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_exports__.default={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,FUNC_ADD:32774,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,BLEND_COLOR:32773,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,VENDOR:7936,RENDERER:7937,VERSION:7938,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,BROWSER_DEFAULT_WEBGL:37444,STATIC_DRAW:35044,STREAM_DRAW:35040,DYNAMIC_DRAW:35048,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,CULL_FACE:2884,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,BLEND:3042,DEPTH_TEST:2929,DITHER:3024,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,SCISSOR_TEST:3089,STENCIL_TEST:2960,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CONTEXT_LOST_WEBGL:37442,CW:2304,CCW:2305,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DOUBLE:5130,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,COMPILE_STATUS:35713,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_ATTRIBUTES:35721,ACTIVE_UNIFORMS:35718,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,ALWAYS:519,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,GEQUAL:518,NOTEQUAL:517,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,TEXTURE_WIDTH:4096,TEXTURE_HEIGHT:4097,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,MAX_3D_TEXTURE_SIZE:32883,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,MAX_TEXTURE_LOD_BIAS:34045,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,RASTERIZER_DISCARD:35977,VERTEX_ARRAY_BINDING:34229,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,MAX_ELEMENT_INDEX:36203,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,RGB9_E5:35901,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2UI:36975,TEXTURE_IMMUTABLE_FORMAT:37167,TEXTURE_IMMUTABLE_LEVELS:33503,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,UNSIGNED_INT_24_8:34042,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,INT_2_10_10_10_REV:36255,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,MAX_SAMPLES:36183,SAMPLER_BINDING:35097,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,UNSIGNED_NORMALIZED:35863,SIGNED_NORMALIZED:36764,VERTEX_ATTRIB_ARRAY_INTEGER:35069,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,DEPTH24_STENCIL8:35056,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,COLOR:6144,DEPTH:6145,STENCIL:6146,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,INVALID_INDEX:4294967295,TIMEOUT_IGNORED:-1,MAX_CLIENT_WAIT_TIMEOUT_WEBGL:37447,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,UNMASKED_VENDOR_WEBGL:37445,UNMASKED_RENDERER_WEBGL:37446,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,TEXTURE_MAX_ANISOTROPY_EXT:34046,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798,UNSIGNED_INT_24_8_WEBGL:34042,HALF_FLOAT_OES:36193,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863,MIN_EXT:32775,MAX_EXT:32776,SRGB_EXT:35904,SRGB_ALPHA_EXT:35906,SRGB8_ALPHA8_EXT:35907,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,COLOR_ATTACHMENT0_WEBGL:36064,COLOR_ATTACHMENT1_WEBGL:36065,COLOR_ATTACHMENT2_WEBGL:36066,COLOR_ATTACHMENT3_WEBGL:36067,COLOR_ATTACHMENT4_WEBGL:36068,COLOR_ATTACHMENT5_WEBGL:36069,COLOR_ATTACHMENT6_WEBGL:36070,COLOR_ATTACHMENT7_WEBGL:36071,COLOR_ATTACHMENT8_WEBGL:36072,COLOR_ATTACHMENT9_WEBGL:36073,COLOR_ATTACHMENT10_WEBGL:36074,COLOR_ATTACHMENT11_WEBGL:36075,COLOR_ATTACHMENT12_WEBGL:36076,COLOR_ATTACHMENT13_WEBGL:36077,COLOR_ATTACHMENT14_WEBGL:36078,COLOR_ATTACHMENT15_WEBGL:36079,DRAW_BUFFER0_WEBGL:34853,DRAW_BUFFER1_WEBGL:34854,DRAW_BUFFER2_WEBGL:34855,DRAW_BUFFER3_WEBGL:34856,DRAW_BUFFER4_WEBGL:34857,DRAW_BUFFER5_WEBGL:34858,DRAW_BUFFER6_WEBGL:34859,DRAW_BUFFER7_WEBGL:34860,DRAW_BUFFER8_WEBGL:34861,DRAW_BUFFER9_WEBGL:34862,DRAW_BUFFER10_WEBGL:34863,DRAW_BUFFER11_WEBGL:34864,DRAW_BUFFER12_WEBGL:34865,DRAW_BUFFER13_WEBGL:34866,DRAW_BUFFER14_WEBGL:34867,DRAW_BUFFER15_WEBGL:34868,MAX_COLOR_ATTACHMENTS_WEBGL:36063,MAX_DRAW_BUFFERS_WEBGL:34852,VERTEX_ARRAY_BINDING_OES:34229,QUERY_COUNTER_BITS_EXT:34916,CURRENT_QUERY_EXT:34917,QUERY_RESULT_EXT:34918,QUERY_RESULT_AVAILABLE_EXT:34919,TIME_ELAPSED_EXT:35007,TIMESTAMP_EXT:36392,GPU_DISJOINT_EXT:36795}},"./node_modules/@luma.gl/engine/dist/esm/animation/timeline.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{T:function(){return Timeline}});let channelHandles=1,animationHandles=1;class Timeline{constructor(){this.time=0,this.channels=new Map,this.animations=new Map,this.playing=!1,this.lastEngineTime=-1}addChannel(props){const{delay:delay=0,duration:duration=Number.POSITIVE_INFINITY,rate:rate=1,repeat:repeat=1}=props,handle=channelHandles++,channel={time:0,delay:delay,duration:duration,rate:rate,repeat:repeat};return this._setChannelTime(channel,this.time),this.channels.set(handle,channel),handle}removeChannel(handle){this.channels.delete(handle);for(const[animationHandle,animation]of this.animations)animation.channel===handle&&this.detachAnimation(animationHandle)}isFinished(handle){const channel=this.channels.get(handle);return void 0!==channel&&this.time>=channel.delay+channel.duration*channel.repeat}getTime(handle){if(void 0===handle)return this.time;const channel=this.channels.get(handle);return void 0===channel?-1:channel.time}setTime(time){this.time=Math.max(0,time);const channels=this.channels.values();for(const channel of channels)this._setChannelTime(channel,this.time);const animations=this.animations.values();for(const animationData of animations){const{animation:animation,channel:channel}=animationData;animation.setTime(this.getTime(channel))}}play(){this.playing=!0}pause(){this.playing=!1,this.lastEngineTime=-1}reset(){this.setTime(0)}attachAnimation(animation,channelHandle){const animationHandle=animationHandles++;return this.animations.set(animationHandle,{animation:animation,channel:channelHandle}),animation.setTime(this.getTime(channelHandle)),animationHandle}detachAnimation(handle){this.animations.delete(handle)}update(engineTime){this.playing&&(-1===this.lastEngineTime&&(this.lastEngineTime=engineTime),this.setTime(this.time+(engineTime-this.lastEngineTime)),this.lastEngineTime=engineTime)}_setChannelTime(channel,time){const offsetTime=time-channel.delay;offsetTime>=channel.duration*channel.repeat?channel.time=channel.duration*channel.rate:(channel.time=Math.max(0,offsetTime)%channel.duration,channel.time*=channel.rate)}}},"./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Geometry}});var _luma_gl_webgl__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const DRAW_MODE={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6};class Geometry{static get DRAW_MODE(){return DRAW_MODE}constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_0__.hQ)("geometry"),drawMode:drawMode=DRAW_MODE.TRIANGLES,attributes:attributes={},indices:indices=null,vertexCount:vertexCount=null}=props;this.id=id,this.drawMode=0|drawMode,this.attributes={},this.userData={},this._setAttributes(attributes,indices),this.vertexCount=vertexCount||this._calculateVertexCount(this.attributes,this.indices)}get mode(){return this.drawMode}getVertexCount(){return this.vertexCount}getAttributes(){return this.indices?{indices:this.indices,...this.attributes}:this.attributes}_print(attributeName){return"Geometry ".concat(this.id," attribute ").concat(attributeName)}_setAttributes(attributes,indices){indices&&(this.indices=ArrayBuffer.isView(indices)?{value:indices,size:1}:indices);for(const attributeName in attributes){let attribute=attributes[attributeName];attribute=ArrayBuffer.isView(attribute)?{value:attribute}:attribute,(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.h)(ArrayBuffer.isView(attribute.value),"".concat(this._print(attributeName),": must be typed array or object with value as typed array")),"POSITION"!==attributeName&&"positions"!==attributeName||attribute.size||(attribute.size=3),"indices"===attributeName?((0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.h)(!this.indices),this.indices=attribute):this.attributes[attributeName]=attribute}return this.indices&&void 0!==this.indices.isIndexed&&(this.indices=Object.assign({},this.indices),delete this.indices.isIndexed),this}_calculateVertexCount(attributes,indices){if(indices)return indices.value.length;let vertexCount=1/0;for(const attributeName in attributes){const attribute=attributes[attributeName],{value:value,size:size,constant:constant}=attribute;!constant&&value&&size>=1&&(vertexCount=Math.min(vertexCount,value.length/size))}return(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.h)(Number.isFinite(vertexCount)),vertexCount}}},"./node_modules/@luma.gl/engine/dist/esm/lib/animation-loop.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return AnimationLoop}});var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),init=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/init.js"),assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),resource=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),features=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),webgl_features_table=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js");class Query extends resource.Z{get[Symbol.toStringTag](){return"Query"}static isSupported(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const webgl2=(0,esm.D0)(gl),hasTimerQuery=(0,features.ag)(gl,webgl_features_table.h.TIMER_QUERY);let supported=webgl2||hasTimerQuery;for(const key of opts)switch(key){case"queries":supported=supported&&webgl2;break;case"timers":supported=supported&&hasTimerQuery;break;default:(0,assert.h)(!1)}return supported}constructor(gl){super(gl,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.target=null,this._queryPending=!1,this._pollingPromise=null,Object.seal(this)}beginTimeElapsedQuery(){return this.begin(35007)}beginOcclusionQuery(){let{conservative:conservative=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.begin(conservative?36202:35887)}beginTransformFeedbackQuery(){return this.begin(35976)}begin(target){return this._queryPending||(this.target=target,this.gl2.beginQuery(this.target,this.handle)),this}end(){return this._queryPending||this.target&&(this.gl2.endQuery(this.target),this.target=null,this._queryPending=!0),this}isResultAvailable(){if(!this._queryPending)return!1;const resultAvailable=this.gl2.getQueryParameter(this.handle,34919);return resultAvailable&&(this._queryPending=!1),resultAvailable}isTimerDisjoint(){return this.gl2.getParameter(36795)}getResult(){return this.gl2.getQueryParameter(this.handle,34918)}getTimerMilliseconds(){return this.getResult()/1e6}createPoll(){let limit=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;if(this._pollingPromise)return this._pollingPromise;let counter=0;return this._pollingPromise=new Promise(((resolve,reject)=>{const poll=()=>{this.isResultAvailable()?(resolve(this.getResult()),this._pollingPromise=null):counter++>limit?(reject("Timed out"),this._pollingPromise=null):requestAnimationFrame(poll)};requestAnimationFrame(poll)})),this._pollingPromise}_createHandle(){return Query.isSupported(this.gl)?this.gl2.createQuery():null}_deleteHandle(){this.gl2.deleteQuery(this.handle)}}var framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js");const isPage=(0,__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js").Z)()&&"undefined"!=typeof document;let statIdCounter=0;class AnimationLoop{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{onCreateContext:onCreateContext=(opts=>(0,esm.s9)(opts)),onAddHTML:onAddHTML=null,onInitialize:onInitialize=(()=>{}),onRender:onRender=(()=>{}),onFinalize:onFinalize=(()=>{}),onError:onError,gl:gl=null,glOptions:glOptions={},debug:debug=!1,createFramebuffer:createFramebuffer=!1,autoResizeViewport:autoResizeViewport=!0,autoResizeDrawingBuffer:autoResizeDrawingBuffer=!0,stats:stats=init.lR.get("animation-loop-".concat(statIdCounter++))}=props;let{useDevicePixels:useDevicePixels=!0}=props;"useDevicePixelRatio"in props&&(esm.cM.deprecated("useDevicePixelRatio","useDevicePixels")(),useDevicePixels=props.useDevicePixelRatio),this.props={onCreateContext:onCreateContext,onAddHTML:onAddHTML,onInitialize:onInitialize,onRender:onRender,onFinalize:onFinalize,onError:onError,gl:gl,glOptions:glOptions,debug:debug,createFramebuffer:createFramebuffer},this.gl=gl,this.needsRedraw=null,this.timeline=null,this.stats=stats,this.cpuTime=this.stats.get("CPU Time"),this.gpuTime=this.stats.get("GPU Time"),this.frameRate=this.stats.get("Frame Rate"),this._initialized=!1,this._running=!1,this._animationFrameId=null,this._nextFramePromise=null,this._resolveNextFrame=null,this._cpuStartTime=0,this.setProps({autoResizeViewport:autoResizeViewport,autoResizeDrawingBuffer:autoResizeDrawingBuffer,useDevicePixels:useDevicePixels}),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this._pageLoadPromise=null,this._onMousemove=this._onMousemove.bind(this),this._onMouseleave=this._onMouseleave.bind(this)}delete(){this.stop(),this._setDisplay(null)}setNeedsRedraw(reason){return(0,assert.h)("string"==typeof reason),this.needsRedraw=this.needsRedraw||reason,this}setProps(props){return"autoResizeViewport"in props&&(this.autoResizeViewport=props.autoResizeViewport),"autoResizeDrawingBuffer"in props&&(this.autoResizeDrawingBuffer=props.autoResizeDrawingBuffer),"useDevicePixels"in props&&(this.useDevicePixels=props.useDevicePixels),this}start(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._running)return this;this._running=!0;const startPromise=this._getPageLoadPromise().then((()=>!this._running||this._initialized?null:(this._createWebGLContext(opts),this._createFramebuffer(),this._startEventHandling(),this._initializeCallbackData(),this._updateCallbackData(),this._resizeCanvasDrawingBuffer(),this._resizeViewport(),this._gpuTimeQuery=Query.isSupported(this.gl,["timers"])?new Query(this.gl):null,this._initialized=!0,this.onInitialize(this.animationProps)))).then((appContext=>{this._running&&(this._addCallbackData(appContext||{}),!1!==appContext&&this._startLoop())}));return this.props.onError&&startPromise.catch(this.props.onError),this}redraw(){return this.isContextLost()||(this._beginTimers(),this._setupFrame(),this._updateCallbackData(),this._renderFrame(this.animationProps),this._clearNeedsRedraw(),this.offScreen&&this.gl.commit&&this.gl.commit(),this._resolveNextFrame&&(this._resolveNextFrame(this),this._nextFramePromise=null,this._resolveNextFrame=null),this._endTimers()),this}stop(){return this._running&&(this._finalizeCallbackData(),this._cancelAnimationFrame(this._animationFrameId),this._nextFramePromise=null,this._resolveNextFrame=null,this._animationFrameId=null,this._running=!1),this}attachTimeline(timeline){return this.timeline=timeline,this.timeline}detachTimeline(){this.timeline=null}waitForRender(){return this.setNeedsRedraw("waitForRender"),this._nextFramePromise||(this._nextFramePromise=new Promise((resolve=>{this._resolveNextFrame=resolve}))),this._nextFramePromise}async toDataURL(){return this.setNeedsRedraw("toDataURL"),await this.waitForRender(),this.gl.canvas.toDataURL()}isContextLost(){return this.gl.isContextLost()}onCreateContext(){return this.props.onCreateContext(...arguments)}onInitialize(){return this.props.onInitialize(...arguments)}onRender(){return this.props.onRender(...arguments)}onFinalize(){return this.props.onFinalize(...arguments)}getHTMLControlValue(id){let defaultValue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const element=document.getElementById(id);return element?Number(element.value):defaultValue}setViewParameters(){return esm.cM.removed("AnimationLoop.setViewParameters","AnimationLoop.setProps")(),this}_startLoop(){const renderFrame=()=>{this._running&&(this.redraw(),this._animationFrameId=this._requestAnimationFrame(renderFrame))};this._cancelAnimationFrame(this._animationFrameId),this._animationFrameId=this._requestAnimationFrame(renderFrame)}_getPageLoadPromise(){return this._pageLoadPromise||(this._pageLoadPromise=isPage?new Promise(((resolve,reject)=>{isPage&&"complete"===document.readyState?resolve(document):window.addEventListener("load",(()=>{resolve(document)}))})):Promise.resolve({})),this._pageLoadPromise}_setDisplay(display){this.display&&(this.display.delete(),this.display.animationLoop=null),display&&(display.animationLoop=this),this.display=display}_cancelAnimationFrame(animationFrameId){return this.display&&this.display.cancelAnimationFrame?this.display.cancelAnimationFrame(animationFrameId):function cancelAnimationFrame(timerId){return"undefined"!=typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame(timerId):clearTimeout(timerId)}(animationFrameId)}_requestAnimationFrame(renderFrameCallback){if(this._running)return this.display&&this.display.requestAnimationFrame?this.display.requestAnimationFrame(renderFrameCallback):function request_animation_frame_requestAnimationFrame(callback){return"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame(callback):setTimeout(callback,1e3/60)}(renderFrameCallback)}_renderFrame(){this.display?this.display._renderFrame(...arguments):this.onRender(...arguments)}_clearNeedsRedraw(){this.needsRedraw=null}_setupFrame(){this._resizeCanvasDrawingBuffer(),this._resizeViewport(),this._resizeFramebuffer()}_initializeCallbackData(){this.animationProps={gl:this.gl,stop:this.stop,canvas:this.gl.canvas,framebuffer:this.framebuffer,useDevicePixels:this.useDevicePixels,needsRedraw:null,startTime:Date.now(),engineTime:0,tick:0,tock:0,time:0,_timeline:this.timeline,_loop:this,_animationLoop:this,_mousePosition:null}}_updateCallbackData(){const{width:width,height:height,aspect:aspect}=this._getSizeAndAspect();width===this.animationProps.width&&height===this.animationProps.height||this.setNeedsRedraw("drawing buffer resized"),aspect!==this.animationProps.aspect&&this.setNeedsRedraw("drawing buffer aspect changed"),this.animationProps.width=width,this.animationProps.height=height,this.animationProps.aspect=aspect,this.animationProps.needsRedraw=this.needsRedraw,this.animationProps.engineTime=Date.now()-this.animationProps.startTime,this.timeline&&this.timeline.update(this.animationProps.engineTime),this.animationProps.tick=Math.floor(this.animationProps.time/1e3*60),this.animationProps.tock++,this.animationProps.time=this.timeline?this.timeline.getTime():this.animationProps.engineTime,this.animationProps._offScreen=this.offScreen}_finalizeCallbackData(){this.onFinalize(this.animationProps)}_addCallbackData(appContext){"object"==typeof appContext&&null!==appContext&&(this.animationProps=Object.assign({},this.animationProps,appContext))}_createWebGLContext(opts){if(this.offScreen=opts.canvas&&"undefined"!=typeof OffscreenCanvas&&opts.canvas instanceof OffscreenCanvas,opts=Object.assign({},opts,this.props.glOptions),this.gl=this.props.gl?(0,esm.yW)(this.props.gl,opts):this.onCreateContext(opts),!(0,esm.UF)(this.gl))throw new Error("AnimationLoop.onCreateContext - illegal context returned");(0,esm.kL)(this.gl),this._createInfoDiv()}_createInfoDiv(){if(this.gl.canvas&&this.props.onAddHTML){const wrapperDiv=document.createElement("div");document.body.appendChild(wrapperDiv),wrapperDiv.style.position="relative";const div=document.createElement("div");div.style.position="absolute",div.style.left="10px",div.style.bottom="10px",div.style.width="300px",div.style.background="white",wrapperDiv.appendChild(this.gl.canvas),wrapperDiv.appendChild(div);const html=this.props.onAddHTML(div);html&&(div.innerHTML=html)}}_getSizeAndAspect(){const width=this.gl.drawingBufferWidth,height=this.gl.drawingBufferHeight;let aspect=1;const{canvas:canvas}=this.gl;return canvas&&canvas.clientHeight?aspect=canvas.clientWidth/canvas.clientHeight:width>0&&height>0&&(aspect=width/height),{width:width,height:height,aspect:aspect}}_resizeViewport(){this.autoResizeViewport&&this.gl.viewport(0,0,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight)}_resizeCanvasDrawingBuffer(){this.autoResizeDrawingBuffer&&(0,esm.aQ)(this.gl,{useDevicePixels:this.useDevicePixels})}_createFramebuffer(){this.props.createFramebuffer&&(this.framebuffer=new framebuffer.Z(this.gl))}_resizeFramebuffer(){this.framebuffer&&this.framebuffer.resize({width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight})}_beginTimers(){this.frameRate.timeEnd(),this.frameRate.timeStart(),this._gpuTimeQuery&&this._gpuTimeQuery.isResultAvailable()&&!this._gpuTimeQuery.isTimerDisjoint()&&this.stats.get("GPU Time").addTime(this._gpuTimeQuery.getTimerMilliseconds()),this._gpuTimeQuery&&this._gpuTimeQuery.beginTimeElapsedQuery(),this.cpuTime.timeStart()}_endTimers(){this.cpuTime.timeEnd(),this._gpuTimeQuery&&this._gpuTimeQuery.end()}_startEventHandling(){const{canvas:canvas}=this.gl;canvas&&(canvas.addEventListener("mousemove",this._onMousemove),canvas.addEventListener("mouseleave",this._onMouseleave))}_onMousemove(e){this.animationProps._mousePosition=[e.offsetX,e.offsetY]}_onMouseleave(e){this.animationProps._mousePosition=null}}},"./node_modules/@luma.gl/engine/dist/esm/lib/model.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Model}});var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),program_manager=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/program-manager.js"),utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js"),assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),clear=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/clear.js"),classes_program=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/program.js"),classes_accessor=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/accessor.js"),classes_buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),resource=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js");let arrayBuffer=null;function getScratchArray(Type,length){return new Type(function getScratchArrayBuffer(byteLength){return(!arrayBuffer||arrayBuffer.byteLength1&&void 0!==arguments[1]?arguments[1]:{}).constantAttributeZero||((0,esm.D0)(gl)||"Chrome"===(0,get_browser.Z)())}static getDefaultArray(gl){return gl.luma=gl.luma||{},gl.luma.defaultVertexArray||(gl.luma.defaultVertexArray=new VertexArrayObject(gl,{handle:null,isDefaultArray:!0})),gl.luma.defaultVertexArray}static getMaxAttributes(gl){return VertexArrayObject.MAX_ATTRIBUTES=VertexArrayObject.MAX_ATTRIBUTES||gl.getParameter(34921),VertexArrayObject.MAX_ATTRIBUTES}static setConstant(gl,location,array){switch(array.constructor){case Float32Array:VertexArrayObject._setConstantFloatArray(gl,location,array);break;case Int32Array:VertexArrayObject._setConstantIntArray(gl,location,array);break;case Uint32Array:VertexArrayObject._setConstantUintArray(gl,location,array);break;default:(0,assert.h)(!1)}}constructor(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const id=opts.id||opts.program&&opts.program.id;super(gl,Object.assign({},opts,{id:id})),this.buffer=null,this.bufferValue=null,this.isDefaultArray=opts.isDefaultArray||!1,this.gl2=gl,this.initialize(opts),Object.seal(this)}delete(){return super.delete(),this.buffer&&this.buffer.delete(),this}get MAX_ATTRIBUTES(){return VertexArrayObject.getMaxAttributes(this.gl)}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.setProps(props)}setProps(props){return this}setElementBuffer(){let elementBuffer=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,assert.h)(!elementBuffer||34963===elementBuffer.target,"elements must be GL.ELEMENT_ARRAY_BUFFER"),this.bind((()=>{this.gl.bindBuffer(34963,elementBuffer?elementBuffer.handle:null)})),this}setBuffer(location,buffer,accessor){if(34963===buffer.target)return this.setElementBuffer(buffer,accessor);const{size:size,type:type,stride:stride,offset:offset,normalized:normalized,integer:integer,divisor:divisor}=accessor,{gl:gl,gl2:gl2}=this;return location=Number(location),this.bind((()=>{gl.bindBuffer(34962,buffer.handle),integer?((0,assert.h)((0,esm.D0)(gl)),gl2.vertexAttribIPointer(location,size,type,stride,offset)):gl.vertexAttribPointer(location,size,type,normalized,stride,offset),gl.enableVertexAttribArray(location),gl2.vertexAttribDivisor(location,divisor||0)})),this}enable(location){let enable=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!enable&&0===location&&!VertexArrayObject.isSupported(this.gl,{constantAttributeZero:!0})||(location=Number(location),this.bind((()=>enable?this.gl.enableVertexAttribArray(location):this.gl.disableVertexAttribArray(location)))),this}getConstantBuffer(elementCount,value){const constantValue=this._normalizeConstantArrayValue(value),byteLength=constantValue.byteLength*elementCount,length=constantValue.length*elementCount;let updateNeeded=!this.buffer;if(this.buffer=this.buffer||new classes_buffer.Z(this.gl,byteLength),updateNeeded=updateNeeded||this.buffer.reallocate(byteLength),updateNeeded=updateNeeded||!this._compareConstantArrayValues(constantValue,this.bufferValue),updateNeeded){const typedArray=getScratchArray(value.constructor,length);!function fillArray(_ref){let{target:target,source:source,start:start=0,count:count=1}=_ref;const length=source.length,total=count*length;let copied=0;for(let i=start;copied34373===pname?this.gl.getVertexAttribOffset(location,pname):this.gl.getVertexAttrib(location,pname)))}}var stub_methods=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/stub-methods.js");const MULTI_LOCATION_ATTRIBUTE_REGEXP=/^(.+)__LOCATION_([0-9]+)$/,DEPRECATIONS_V6=["setBuffers","setGeneric","clearBindings","setLocations","setGenericValues","setDivisor","enable","disable"];class VertexArray{constructor(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const id=opts.id||opts.program&&opts.program.id;this.id=id,this.gl=gl,this.configuration=null,this.elements=null,this.elementsAccessor=null,this.values=null,this.accessors=null,this.unused=null,this.drawParams=null,this.buffer=null,this.attributes={},this.vertexArrayObject=new VertexArrayObject(gl),(0,stub_methods.F)(this,"VertexArray","v6.0",DEPRECATIONS_V6),this.initialize(opts),Object.seal(this)}delete(){this.buffer&&this.buffer.delete(),this.vertexArrayObject.delete()}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.reset(),this.configuration=null,this.bindOnUse=!1,this.setProps(props)}reset(){this.elements=null,this.elementsAccessor=null;const{MAX_ATTRIBUTES:MAX_ATTRIBUTES}=this.vertexArrayObject;return this.values=new Array(MAX_ATTRIBUTES).fill(null),this.accessors=new Array(MAX_ATTRIBUTES).fill(null),this.unused={},this.drawParams=null,this}setProps(props){return"program"in props&&(this.configuration=props.program&&props.program.configuration),"configuration"in props&&(this.configuration=props.configuration),"attributes"in props&&this.setAttributes(props.attributes),"elements"in props&&this.setElementBuffer(props.elements),"bindOnUse"in props&&(props=props.bindOnUse),this}clearDrawParams(){this.drawParams=null}getDrawParams(){return this.drawParams=this.drawParams||this._updateDrawParams(),this.drawParams}setAttributes(attributes){return Object.assign(this.attributes,attributes),this.vertexArrayObject.bind((()=>{for(const locationOrName in attributes){const value=attributes[locationOrName];this._setAttribute(locationOrName,value)}this.gl.bindBuffer(34962,null)})),this}setElementBuffer(){let elementBuffer=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,accessor=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.elements=elementBuffer,this.elementsAccessor=accessor,this.clearDrawParams(),this.vertexArrayObject.setElementBuffer(elementBuffer,accessor),this}setBuffer(locationOrName,buffer){let appAccessor=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(34963===buffer.target)return this.setElementBuffer(buffer,appAccessor);const{location:location,accessor:accessor}=this._resolveLocationAndAccessor(locationOrName,buffer,buffer.accessor,appAccessor);return location>=0&&(this.values[location]=buffer,this.accessors[location]=accessor,this.clearDrawParams(),this.vertexArrayObject.setBuffer(location,buffer,accessor)),this}setConstant(locationOrName,arrayValue){let appAccessor=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{location:location,accessor:accessor}=this._resolveLocationAndAccessor(locationOrName,arrayValue,Object.assign({size:arrayValue.length},appAccessor));return location>=0&&(arrayValue=this.vertexArrayObject._normalizeConstantArrayValue(arrayValue),this.values[location]=arrayValue,this.accessors[location]=accessor,this.clearDrawParams(),this.vertexArrayObject.enable(location,!1)),this}unbindBuffers(){return this.vertexArrayObject.bind((()=>{this.elements&&this.vertexArrayObject.setElementBuffer(null),this.buffer=this.buffer||new classes_buffer.Z(this.gl,{accessor:{size:4}});for(let location=0;location{this.elements&&this.setElementBuffer(this.elements);for(let location=0;location{this._setConstantAttributes(vertexCount,instanceCount),value=func()})),value}_resolveLocationAndAccessor(locationOrName,value,valueAccessor,appAccessor){const INVALID_RESULT={location:-1,accessor:null},{location:location,name:name}=this._getAttributeIndex(locationOrName);if(!Number.isFinite(location)||location<0)return this.unused[locationOrName]=value,esm.cM.once(3,(()=>"unused value ".concat(locationOrName," in ").concat(this.id)))(),INVALID_RESULT;const accessInfo=this._getAttributeInfo(name||location);if(!accessInfo)return INVALID_RESULT;const currentAccessor=this.accessors[location]||{},accessor=classes_accessor.Z.resolve(accessInfo.accessor,currentAccessor,valueAccessor,appAccessor),{size:size,type:type}=accessor;return(0,assert.h)(Number.isFinite(size)&&Number.isFinite(type)),{location:location,accessor:accessor}}_getAttributeInfo(attributeName){return this.configuration&&this.configuration.getAttributeInfo(attributeName)}_getAttributeIndex(locationOrName){const location=Number(locationOrName);if(Number.isFinite(location))return{location:location};const multiLocation=MULTI_LOCATION_ATTRIBUTE_REGEXP.exec(locationOrName),name=multiLocation?multiLocation[1]:locationOrName,locationOffset=multiLocation?Number(multiLocation[2]):0;return this.configuration?{location:this.configuration.getAttributeLocation(name)+locationOffset,name:name}:{location:-1}}_setAttribute(locationOrName,value){if(value instanceof classes_buffer.Z)this.setBuffer(locationOrName,value);else if(Array.isArray(value)&&value.length&&value[0]instanceof classes_buffer.Z){const buffer=value[0],accessor=value[1];this.setBuffer(locationOrName,buffer,accessor)}else if(ArrayBuffer.isView(value)||Array.isArray(value)){const constant=value;this.setConstant(locationOrName,constant)}else{if(!(value.buffer instanceof classes_buffer.Z))throw new Error("VertexArray: attributes must be Buffers or constants (i.e. typed array)");{const accessor=value;this.setBuffer(locationOrName,accessor.buffer,accessor)}}}_setConstantAttributes(vertexCount,instanceCount){const elementCount=Math.max(0|vertexCount,0|instanceCount);let constant=this.values[0];ArrayBuffer.isView(constant)&&this._setConstantAttributeZero(constant,elementCount);for(let location=1;location0;if(drawParams.isInstanced=drawParams.isInstanced||isInstanced,value instanceof classes_buffer.Z){const buffer=value;if(isInstanced){const instanceCount=buffer.getVertexCount(accessor);drawParams.instanceCount=Math.min(drawParams.instanceCount,instanceCount)}else{const vertexCount=buffer.getVertexCount(accessor);drawParams.vertexCount=Math.min(drawParams.vertexCount,vertexCount)}}}setElements(){let elementBuffer=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,accessor=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return esm.cM.deprecated("setElements","setElementBuffer")(),this.setElementBuffer(elementBuffer,accessor)}}var transform_feedback=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/transform-feedback.js"),constants_to_keys=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/constants-to-keys.js"),attribute_utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/attribute-utils.js");function formatValue(v){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{isInteger:isInteger=!1}=opts;if(Array.isArray(v)||ArrayBuffer.isView(v))return function formatArrayValue(v,opts){const{maxElts:maxElts=16,size:size=1}=opts;let string="[";for(let i=0;i0&&(string+=",".concat(i%size==0?" ":"")),string+=formatValue(v[i],opts);const terminator=v.length>maxElts?"...":"]";return"".concat(string).concat(terminator)}(v,opts);if(!Number.isFinite(v))return String(v);if(Math.abs(v)<1e-16)return isInteger?"0":"0.";if(isInteger)return v.toFixed(0);if(Math.abs(v)>100&&Math.abs(v)<1e4)return v.toFixed(0);const string=v.toPrecision(2);return string.indexOf(".0")===string.length-2?string.slice(0,-1):string}function getDebugTableRow(vertexArray,attribute,accessor,header){const{gl:gl}=vertexArray;if(!attribute)return{[header]:"null","Format ":"N/A"};let isInteger,marker,value,type="NOT PROVIDED",size=1,verts=0,bytes=0;if(accessor&&(type=accessor.type,size=accessor.size,type=String(type).replace("Array",""),isInteger=-1!==type.indexOf("nt")),attribute instanceof classes_buffer.Z){const buffer=attribute,{data:data,changed:changed}=buffer.getDebugData();let format;if(marker=changed?"*":"",value=data,bytes=buffer.byteLength,verts=bytes/data.BYTES_PER_ELEMENT/size,accessor){const instanced=accessor.divisor>0;format="".concat(instanced?"I ":"P "," ").concat(verts," (x").concat(size,"=").concat(bytes," bytes ").concat((0,constants_to_keys.km)(gl,type),")")}else isInteger=!0,format="".concat(bytes," bytes");return{[header]:"".concat(marker).concat(formatValue(value,{size:size,isInteger:isInteger})),"Format ":format}}return value=attribute,size=attribute.length,type=String(attribute.constructor.name).replace("Array",""),isInteger=-1!==type.indexOf("nt"),{[header]:"".concat(formatValue(value,{size:size,isInteger:isInteger})," (constant)"),"Format ":"".concat(size,"x").concat(type," (constant)")}}function getGLSLDeclaration(name,accessor){const{type:type,size:size}=accessor,typeAndName=(0,attribute_utils.jG)(type,size);return typeAndName?"".concat(name," (").concat(typeAndName.name,")"):name}function getDebugTableForUniforms(_ref){let{header:header="Uniforms",program:program,uniforms:uniforms,undefinedOnly:undefinedOnly=!1}=_ref;(0,assert.h)(program);const uniformLocations=program._uniformSetters,table={},uniformNames=Object.keys(uniformLocations).sort();let count=0;for(const uniformName of uniformNames)uniformName.match(".*_.*")||uniformName.match(".*Matrix")||addUniformToTable({table:table,header:header,uniforms:uniforms,uniformName:uniformName,undefinedOnly:undefinedOnly})&&count++;for(const uniformName of uniformNames)uniformName.match(".*Matrix")&&addUniformToTable({table:table,header:header,uniforms:uniforms,uniformName:uniformName,undefinedOnly:undefinedOnly})&&count++;for(const uniformName of uniformNames)table[uniformName]||addUniformToTable({table:table,header:header,uniforms:uniforms,uniformName:uniformName,undefinedOnly:undefinedOnly})&&count++;let unusedCount=0;const unusedTable={};if(!undefinedOnly)for(const uniformName in uniforms){const uniform=uniforms[uniformName];table[uniformName]||(unusedCount++,unusedTable[uniformName]={Type:"NOT USED: ".concat(uniform),[header]:formatValue(uniform)})}return{table:table,count:count,unusedTable:unusedTable,unusedCount:unusedCount}}function addUniformToTable(_ref2){let{table:table,header:header,uniforms:uniforms,uniformName:uniformName,undefinedOnly:undefinedOnly}=_ref2;const value=uniforms[uniformName],isDefined=function isUniformDefined(value){return null!=value}(value);return(!undefinedOnly||!isDefined)&&(table[uniformName]={[header]:isDefined?formatValue(value):"N/A","Uniform Type":isDefined?value:"NOT PROVIDED"},!0)}function debug_program_configuration_getGLSLDeclaration(attributeInfo){const{type:type,size:size}=attributeInfo.accessor,typeAndName=(0,attribute_utils.jG)(type,size);return typeAndName?"".concat(typeAndName.name," ").concat(attributeInfo.name):attributeInfo.name}const GLTF_TO_LUMA_ATTRIBUTE_MAP={POSITION:"positions",NORMAL:"normals",COLOR_0:"colors",TEXCOORD_0:"texCoords",TEXCOORD_1:"texCoords1",TEXCOORD_2:"texCoords2"};function mapAttributeName(name,options){const{attributeMap:attributeMap=GLTF_TO_LUMA_ATTRIBUTE_MAP}=options||{};return attributeMap&&attributeMap[name]||name}function inferAttributeAccessor(attributeName,attribute){let category;switch(attributeName){case"texCoords":case"texCoord1":case"texCoord2":case"texCoord3":category="uvs";break;case"vertices":case"positions":case"normals":case"pickingColors":category="vectors"}switch(category){case"vectors":attribute.size=attribute.size||3;break;case"uvs":attribute.size=attribute.size||2}(0,assert.h)(Number.isFinite(attribute.size),"attribute ".concat(attributeName," needs size"))}const NOOP=()=>{},DRAW_PARAMS={};class Model{constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{id:id=(0,utils.hQ)("model")}=props;(0,assert.h)((0,esm.UF)(gl)),this.id=id,this.gl=gl,this.id=props.id||(0,utils.hQ)("Model"),this.lastLogTime=0,this.animated=!1,this.initialize(props)}initialize(props){this.props={},this.programManager=props.programManager||program_manager.Z.getDefaultProgramManager(this.gl),this._programManagerState=-1,this._managedProgram=!1;const{program:program=null,vs:vs,fs:fs,modules:modules,defines:defines,inject:inject,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100}=props;this.programProps={program:program,vs:vs,fs:fs,modules:modules,defines:defines,inject:inject,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100},this.program=null,this.vertexArray=null,this._programDirty=!0,this.userData={},this.needsRedraw=!0,this._attributes={},this.attributes={},this.uniforms={},this.pickable=!0,this._checkProgram(),this.setUniforms(Object.assign({},this.getModuleUniforms(props.moduleSettings))),this.drawMode=void 0!==props.drawMode?props.drawMode:4,this.vertexCount=props.vertexCount||0,this.geometryBuffers={},this.isInstanced=props.isInstanced||props.instanced||props.instanceCount>0,this._setModelProps(props),this.geometry={},(0,assert.h)(void 0!==this.drawMode&&Number.isFinite(this.vertexCount),"Model needs drawMode and vertexCount")}setProps(props){this._setModelProps(props)}delete(){for(const key in this._attributes)this._attributes[key]!==this.attributes[key]&&this._attributes[key].delete();this._managedProgram&&(this.programManager.release(this.program),this._managedProgram=!1),this.vertexArray.delete(),this._deleteGeometryBuffers()}getDrawMode(){return this.drawMode}getVertexCount(){return this.vertexCount}getInstanceCount(){return this.instanceCount}getAttributes(){return this.attributes}getProgram(){return this.program}setProgram(props){const{program:program,vs:vs,fs:fs,modules:modules,defines:defines,inject:inject,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100}=props;this.programProps={program:program,vs:vs,fs:fs,modules:modules,defines:defines,inject:inject,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100},this._programDirty=!0}getUniforms(){return this.uniforms}setDrawMode(drawMode){return this.drawMode=drawMode,this}setVertexCount(vertexCount){return(0,assert.h)(Number.isFinite(vertexCount)),this.vertexCount=vertexCount,this}setInstanceCount(instanceCount){return(0,assert.h)(Number.isFinite(instanceCount)),this.instanceCount=instanceCount,this}setGeometry(geometry){return this.drawMode=geometry.drawMode,this.vertexCount=geometry.getVertexCount(),this._deleteGeometryBuffers(),this.geometryBuffers=function getBuffersFromGeometry(gl,geometry,options){const buffers={};let indices=geometry.indices;for(const name in geometry.attributes){const attribute=geometry.attributes[name],remappedName=mapAttributeName(name,options);if("indices"===name)indices=attribute;else if(attribute.constant)buffers[remappedName]=attribute.value;else{const typedArray=attribute.value,accessor={...attribute};delete accessor.value,buffers[remappedName]=[new classes_buffer.Z(gl,typedArray),accessor],inferAttributeAccessor(name,accessor)}}if(indices){const data=indices.value||indices;(0,assert.h)(data instanceof Uint16Array||data instanceof Uint32Array,'attribute array for "indices" must be of integer type');const accessor={size:1,isIndexed:void 0===indices.isIndexed||indices.isIndexed};buffers.indices=[new classes_buffer.Z(gl,{data:data,target:34963}),accessor]}return buffers}(this.gl,geometry),this.vertexArray.setAttributes(this.geometryBuffers),this}setAttributes(){let attributes=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,utils.nK)(attributes))return this;const normalizedAttributes={};for(const name in attributes){const attribute=attributes[name];normalizedAttributes[name]=attribute.getValue?attribute.getValue():attribute}return this.vertexArray.setAttributes(normalizedAttributes),this}setUniforms(){let uniforms=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(this.uniforms,uniforms),this}getModuleUniforms(opts){this._checkProgram();const getUniforms=this.programManager.getUniforms(this.program);return getUniforms?getUniforms(opts):{}}updateModuleSettings(opts){const uniforms=this.getModuleUniforms(opts||{});return this.setUniforms(uniforms)}clear(opts){return(0,clear.Z)(this.program.gl,opts),this}draw(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._checkProgram();const{moduleSettings:moduleSettings=null,framebuffer:framebuffer,uniforms:uniforms={},attributes:attributes={},transformFeedback:transformFeedback=this.transformFeedback,parameters:parameters={},vertexArray:vertexArray=this.vertexArray}=opts;let logPriority;this.setAttributes(attributes),this.updateModuleSettings(moduleSettings),this.setUniforms(uniforms),esm.cM.priority>=2&&(logPriority=this._logDrawCallStart(2));const drawParams=this.vertexArray.getDrawParams(),{isIndexed:isIndexed=drawParams.isIndexed,indexType:indexType=drawParams.indexType,indexOffset:indexOffset=drawParams.indexOffset,vertexArrayInstanced:vertexArrayInstanced=drawParams.isInstanced}=this.props;vertexArrayInstanced&&!this.isInstanced&&esm.cM.warn("Found instanced attributes on non-instanced model",this.id)();const{isInstanced:isInstanced,instanceCount:instanceCount}=this,{onBeforeRender:onBeforeRender=NOOP,onAfterRender:onAfterRender=NOOP}=this.props;onBeforeRender(),this.program.setUniforms(this.uniforms);const didDraw=this.program.draw(Object.assign(DRAW_PARAMS,opts,{logPriority:logPriority,uniforms:null,framebuffer:framebuffer,parameters:parameters,drawMode:this.getDrawMode(),vertexCount:this.getVertexCount(),vertexArray:vertexArray,transformFeedback:transformFeedback,isIndexed:isIndexed,indexType:indexType,isInstanced:isInstanced,instanceCount:instanceCount,offset:isIndexed?indexOffset:0}));return onAfterRender(),esm.cM.priority>=2&&this._logDrawCallEnd(logPriority,vertexArray,framebuffer),didDraw}transform(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{discard:discard=!0,feedbackBuffers:feedbackBuffers,unbindModels:unbindModels=[]}=opts;let{parameters:parameters}=opts;feedbackBuffers&&this._setFeedbackBuffers(feedbackBuffers),discard&&(parameters=Object.assign({},parameters,{35977:discard})),unbindModels.forEach((model=>model.vertexArray.unbindBuffers()));try{this.draw(Object.assign({},opts,{parameters:parameters}))}finally{unbindModels.forEach((model=>model.vertexArray.bindBuffers()))}return this}render(){let uniforms=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return esm.cM.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")(),this.setUniforms(uniforms).draw()}_setModelProps(props){Object.assign(this.props,props),"uniforms"in props&&this.setUniforms(props.uniforms),"pickable"in props&&(this.pickable=props.pickable),"instanceCount"in props&&(this.instanceCount=props.instanceCount),"geometry"in props&&this.setGeometry(props.geometry),"attributes"in props&&this.setAttributes(props.attributes),"_feedbackBuffers"in props&&this._setFeedbackBuffers(props._feedbackBuffers)}_checkProgram(){if(!(this._programDirty||this.programManager.stateHash!==this._programManagerState))return;let{program:program}=this.programProps;if(program)this._managedProgram=!1;else{const{vs:vs,fs:fs,modules:modules,inject:inject,defines:defines,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100}=this.programProps;program=this.programManager.get({vs:vs,fs:fs,modules:modules,inject:inject,defines:defines,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100}),this.program&&this._managedProgram&&this.programManager.release(this.program),this._programManagerState=this.programManager.stateHash,this._managedProgram=!0}(0,assert.h)(program instanceof classes_program.Z,"Model needs a program"),this._programDirty=!1,program!==this.program&&(this.program=program,this.vertexArray?this.vertexArray.setProps({program:this.program,attributes:this.vertexArray.attributes}):this.vertexArray=new VertexArray(this.gl,{program:this.program}),this.setUniforms(Object.assign({},this.getModuleUniforms())))}_deleteGeometryBuffers(){for(const name in this.geometryBuffers){const buffer=this.geometryBuffers[name][0]||this.geometryBuffers[name];buffer instanceof classes_buffer.Z&&buffer.delete()}}_setAnimationProps(animationProps){this.animated&&(0,assert.h)(animationProps,"Model.draw(): animated uniforms but no animationProps")}_setFeedbackBuffers(){let feedbackBuffers=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,utils.nK)(feedbackBuffers))return this;const{gl:gl}=this.program;return this.transformFeedback=this.transformFeedback||new transform_feedback.Z(gl,{program:this.program}),this.transformFeedback.setBuffers(feedbackBuffers),this}_logDrawCallStart(logLevel){const logDrawTimeout=logLevel>3?0:1e4;if(!(Date.now()-this.lastLogTime>> DRAWING MODEL ".concat(this.id),{collapsed:esm.cM.level<=2})(),logLevel}_logDrawCallEnd(logLevel,vertexArray,uniforms,framebuffer){if(void 0===logLevel)return;const attributeTable=function getDebugTableForVertexArray(_ref){let{vertexArray:vertexArray,header:header="Attributes"}=_ref;if(!vertexArray.configuration)return{};const table={};vertexArray.elements&&(table.ELEMENT_ARRAY_BUFFER=getDebugTableRow(vertexArray,vertexArray.elements,null,header));const attributes=vertexArray.values;for(const attributeLocation in attributes){const info=vertexArray._getAttributeInfo(attributeLocation);if(info){let rowHeader="".concat(attributeLocation,": ").concat(info.name);const accessor=vertexArray.accessors[info.location];accessor&&(rowHeader="".concat(attributeLocation,": ").concat(getGLSLDeclaration(info.name,accessor))),table[rowHeader]=getDebugTableRow(vertexArray,attributes[attributeLocation],accessor,header)}}return table}({vertexArray:vertexArray,header:"".concat(this.id," attributes"),attributes:this._attributes}),{table:uniformTable,unusedTable:unusedTable,unusedCount:unusedCount}=getDebugTableForUniforms({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,uniforms)}),{table:missingTable,count:missingCount}=getDebugTableForUniforms({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,uniforms),undefinedOnly:!0});missingCount>0&&esm.cM.log("MISSING UNIFORMS",Object.keys(missingTable))(),unusedCount>0&&esm.cM.log("UNUSED UNIFORMS",Object.keys(unusedTable))();const configTable=function getDebugTableForProgramConfiguration(config){const table={},header="Accessors for ".concat(config.id);for(const attributeInfo of config.attributeInfos)if(attributeInfo){const glslDeclaration=debug_program_configuration_getGLSLDeclaration(attributeInfo);table["in ".concat(glslDeclaration)]={[header]:JSON.stringify(attributeInfo.accessor)}}for(const varyingInfo of config.varyingInfos)if(varyingInfo){const glslDeclaration=debug_program_configuration_getGLSLDeclaration(varyingInfo);table["out ".concat(glslDeclaration)]={[header]:JSON.stringify(varyingInfo.accessor)}}return table}(this.vertexArray.configuration);esm.cM.table(logLevel,attributeTable)(),esm.cM.table(logLevel,uniformTable)(),esm.cM.table(logLevel+1,configTable)(),framebuffer&&framebuffer.log({logLevel:2,message:"Rendered to ".concat(framebuffer.id)}),esm.cM.groupEnd(2)()}}},"./node_modules/@luma.gl/engine/dist/esm/lib/program-manager.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ProgramManager}});var constants=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/constants.js"),shader_module=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/shader-module.js"),assert=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/utils/assert.js");function resolveModules(modules){return getShaderDependencies(instantiateModules(modules))}function getShaderDependencies(modules){const moduleMap={},moduleDepth={};return getDependencyGraph({modules:modules,level:0,moduleMap:moduleMap,moduleDepth:moduleDepth}),Object.keys(moduleDepth).sort(((a,b)=>moduleDepth[b]-moduleDepth[a])).map((name=>moduleMap[name]))}function getDependencyGraph(_ref){let{modules:modules,level:level,moduleMap:moduleMap,moduleDepth:moduleDepth}=_ref;if(level>=5)throw new Error("Possible loop in shader dependency graph");for(const module of modules)moduleMap[module.name]=module,(void 0===moduleDepth[module.name]||moduleDepth[module.name](module instanceof shader_module.Z||((0,assert.Z)("string"!=typeof module,"Shader module use by name is deprecated. Import shader module '".concat(module,"' and use it directly.")),(0,assert.Z)(module.name,"shader module has no name"),(module=new shader_module.Z(module)).dependencies=instantiateModules(module.dependencies)),module)))}const GL_VENDOR=7936,GL_RENDERER=7937,GL_VERSION=7938,GL_SHADING_LANGUAGE_VERSION=35724,WEBGL_FEATURES={GLSL_FRAG_DATA:["WEBGL_draw_buffers",!0],GLSL_FRAG_DEPTH:["EXT_frag_depth",!0],GLSL_DERIVATIVES:["OES_standard_derivatives",!0],GLSL_TEXTURE_LOD:["EXT_shader_texture_lod",!0]},FEATURES={};Object.keys(WEBGL_FEATURES).forEach((key=>{FEATURES[key]=key}));const compiledGlslExtensions={};function canCompileGLGSExtension(gl,cap){let opts=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const feature=WEBGL_FEATURES[cap];if((0,assert.Z)(feature,cap),!function isOldIE(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const navigator="undefined"!=typeof window&&window.navigator||{},userAgent=opts.userAgent||navigator.userAgent||"",isMSIE=-1!==userAgent.indexOf("MSIE "),isTrident=-1!==userAgent.indexOf("Trident/");return isMSIE||isTrident}(opts))return!0;if(cap in compiledGlslExtensions)return compiledGlslExtensions[cap];const extensionName=feature[0],behavior=opts.behavior||"enable",source="#extension GL_".concat(extensionName," : ").concat(behavior,"\nvoid main(void) {}"),shader=gl.createShader(35633);gl.shaderSource(shader,source),gl.compileShader(shader);const canCompile=gl.getShaderParameter(shader,35713);return gl.deleteShader(shader),compiledGlslExtensions[cap]=canCompile,canCompile}function getFeature(gl,cap){const feature=WEBGL_FEATURES[cap];(0,assert.Z)(feature,cap);const extensionName=function isWebGL2(gl){return"undefined"!=typeof WebGL2RenderingContext&&gl instanceof WebGL2RenderingContext||Boolean(gl&&2===gl._version)}(gl)&&feature[1]||feature[0],value="string"==typeof extensionName?Boolean(gl.getExtension(extensionName)):extensionName;return(0,assert.Z)(!1===value||!0===value),value}function hasFeatures(gl,features){return(features=Array.isArray(features)?features:[features]).every((feature=>getFeature(gl,feature)))}function getPlatformShaderDefines(gl){const debugInfo=function getContextInfo(gl){const info=gl.getExtension("WEBGL_debug_renderer_info"),vendor=gl.getParameter(info&&info.UNMASKED_VENDOR_WEBGL||GL_VENDOR),renderer=gl.getParameter(info&&info.UNMASKED_RENDERER_WEBGL||GL_RENDERER);return{gpuVendor:function identifyGPUVendor(vendor,renderer){return vendor.match(/NVIDIA/i)||renderer.match(/NVIDIA/i)?"NVIDIA":vendor.match(/INTEL/i)||renderer.match(/INTEL/i)?"INTEL":vendor.match(/AMD/i)||renderer.match(/AMD/i)||vendor.match(/ATI/i)||renderer.match(/ATI/i)?"AMD":"UNKNOWN GPU"}(vendor,renderer),vendor:vendor,renderer:renderer,version:gl.getParameter(GL_VERSION),shadingLanguageVersion:gl.getParameter(GL_SHADING_LANGUAGE_VERSION)}}(gl);switch(debugInfo.gpuVendor.toLowerCase()){case"nvidia":return"#define NVIDIA_GPU\n// Nvidia optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n";case"intel":return"#define INTEL_GPU\n// Intel optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n";case"amd":return"#define AMD_GPU\n";default:return"#define DEFAULT_GPU\n// Prevent driver from optimizing away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n"}}var inject_shader=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/inject-shader.js");function testVariable(qualifier){return new RegExp("\\b".concat(qualifier,"[ \\t]+(\\w+[ \\t]+\\w+(\\[\\w+\\])?;)"),"g")}const ES300_REPLACEMENTS=[[/^(#version[ \t]+(100|300[ \t]+es))?[ \t]*\n/,"#version 300 es\n"],[/\btexture(2D|2DProj|Cube)Lod(EXT)?\(/g,"textureLod("],[/\btexture(2D|2DProj|Cube)(EXT)?\(/g,"texture("]],ES300_VERTEX_REPLACEMENTS=[...ES300_REPLACEMENTS,[testVariable("attribute"),"in $1"],[testVariable("varying"),"out $1"]],ES300_FRAGMENT_REPLACEMENTS=[...ES300_REPLACEMENTS,[testVariable("varying"),"in $1"]],ES100_REPLACEMENTS=[[/^#version[ \t]+300[ \t]+es/,"#version 100"],[/\btexture(2D|2DProj|Cube)Lod\(/g,"texture$1LodEXT("],[/\btexture\(/g,"texture2D("],[/\btextureLod\(/g,"texture2DLodEXT("]],ES100_VERTEX_REPLACEMENTS=[...ES100_REPLACEMENTS,[testVariable("in"),"attribute $1"],[testVariable("out"),"varying $1"]],ES100_FRAGMENT_REPLACEMENTS=[...ES100_REPLACEMENTS,[testVariable("in"),"varying $1"]],ES100_FRAGMENT_OUTPUT_NAME="gl_FragColor",ES300_FRAGMENT_OUTPUT_REGEX=/\bout[ \t]+vec4[ \t]+(\w+)[ \t]*;\n?/,REGEX_START_OF_MAIN=/void\s+main\s*\([^)]*\)\s*\{\n?/;function transpileShader(source,targetGLSLVersion,isVertex){switch(targetGLSLVersion){case 300:return isVertex?convertShader(source,ES300_VERTEX_REPLACEMENTS):function convertFragmentShaderTo300(source){source=convertShader(source,ES300_FRAGMENT_REPLACEMENTS);const outputMatch=source.match(ES300_FRAGMENT_OUTPUT_REGEX);if(outputMatch){const outputName=outputMatch[1];source=source.replace(new RegExp("\\b".concat(ES100_FRAGMENT_OUTPUT_NAME,"\\b"),"g"),outputName)}else{const outputName="fragmentColor";source=source.replace(REGEX_START_OF_MAIN,(match=>"out vec4 ".concat(outputName,";\n").concat(match))).replace(new RegExp("\\b".concat(ES100_FRAGMENT_OUTPUT_NAME,"\\b"),"g"),outputName)}return source}(source);case 100:return isVertex?convertShader(source,ES100_VERTEX_REPLACEMENTS):function convertFragmentShaderTo100(source){source=convertShader(source,ES100_FRAGMENT_REPLACEMENTS);const outputMatch=source.match(ES300_FRAGMENT_OUTPUT_REGEX);if(outputMatch){const outputName=outputMatch[1];source=source.replace(ES300_FRAGMENT_OUTPUT_REGEX,"").replace(new RegExp("\\b".concat(outputName,"\\b"),"g"),ES100_FRAGMENT_OUTPUT_NAME)}return source}(source);default:throw new Error("unknown GLSL version ".concat(targetGLSLVersion))}}function convertShader(source,replacements){for(const[pattern,replacement]of replacements)source=source.replace(pattern,replacement);return source}const INJECT_SHADER_DECLARATIONS="\n\n".concat(inject_shader.O_,"\n\n"),SHADER_TYPE={[constants.H]:"vertex",[constants.Y]:"fragment"},FRAGMENT_SHADER_PROLOGUE="precision highp float;\n\n";function assembleShader(gl,_ref){let{id:id,source:source,type:type,modules:modules,defines:defines={},hookFunctions:hookFunctions=[],inject:inject={},transpileToGLSL100:transpileToGLSL100=!1,prologue:prologue=!0,log:log}=_ref;(0,assert.Z)("string"==typeof source,"shader source must be a string");const isVertex=type===constants.H,sourceLines=source.split("\n");let glslVersion=100,versionLine="",coreSource=source;0===sourceLines[0].indexOf("#version ")?(glslVersion=300,versionLine=sourceLines[0],coreSource=sourceLines.slice(1).join("\n")):versionLine="#version ".concat(glslVersion);const allDefines={};modules.forEach((module=>{Object.assign(allDefines,module.getDefines())})),Object.assign(allDefines,defines);let assembledSource=prologue?"".concat(versionLine,"\n").concat(function getShaderName(_ref3){let{id:id,source:source,type:type}=_ref3;const injectShaderName=id&&"string"==typeof id&&-1===source.indexOf("SHADER_NAME");return injectShaderName?"\n#define SHADER_NAME ".concat(id,"_").concat(SHADER_TYPE[type],"\n\n"):""}({id:id,source:source,type:type}),"\n").concat(function getShaderType(_ref2){let{type:type}=_ref2;return"\n#define SHADER_TYPE_".concat(SHADER_TYPE[type].toUpperCase(),"\n")}({type:type}),"\n").concat(getPlatformShaderDefines(gl),"\n").concat(function getVersionDefines(gl,glslVersion,isFragment){let versionDefines="#if (__VERSION__ > 120)\n\n# define FEATURE_GLSL_DERIVATIVES\n# define FEATURE_GLSL_DRAW_BUFFERS\n# define FEATURE_GLSL_FRAG_DEPTH\n# define FEATURE_GLSL_TEXTURE_LOD\n\n// DEPRECATED FLAGS, remove in v9\n# define FRAG_DEPTH\n# define DERIVATIVES\n# define DRAW_BUFFERS\n# define TEXTURE_LOD\n\n#endif // __VERSION\n";return hasFeatures(gl,FEATURES.GLSL_FRAG_DEPTH)&&(versionDefines+="\n// FRAG_DEPTH => gl_FragDepth is available\n#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n# define FEATURE_GLSL_FRAG_DEPTH\n# define FRAG_DEPTH\n# define gl_FragDepth gl_FragDepthEXT\n#endif\n"),hasFeatures(gl,FEATURES.GLSL_DERIVATIVES)&&canCompileGLGSExtension(gl,FEATURES.GLSL_DERIVATIVES)&&(versionDefines+="\n// DERIVATIVES => dxdF, dxdY and fwidth are available\n#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives : enable\n# define FEATURE_GLSL_DERIVATIVES\n# define DERIVATIVES\n#endif\n"),hasFeatures(gl,FEATURES.GLSL_FRAG_DATA)&&canCompileGLGSExtension(gl,FEATURES.GLSL_FRAG_DATA,{behavior:"require"})&&(versionDefines+="\n// DRAW_BUFFERS => gl_FragData[] is available\n#ifdef GL_EXT_draw_buffers\n#extension GL_EXT_draw_buffers : require\n#define FEATURE_GLSL_DRAW_BUFFERS\n#define DRAW_BUFFERS\n#endif\n"),hasFeatures(gl,FEATURES.GLSL_TEXTURE_LOD)&&(versionDefines+="// TEXTURE_LOD => texture2DLod etc are available\n#ifdef GL_EXT_shader_texture_lod\n#extension GL_EXT_shader_texture_lod : enable\n\n# define FEATURE_GLSL_TEXTURE_LOD\n# define TEXTURE_LOD\n\n#endif\n"),versionDefines}(gl),"\n").concat(function getApplicationDefines(){let defines=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},count=0,sourceText="";for(const define in defines){0===count&&(sourceText+="\n// APPLICATION DEFINES\n"),count++;const value=defines[define];(value||Number.isFinite(value))&&(sourceText+="#define ".concat(define.toUpperCase()," ").concat(defines[define],"\n"))}0===count&&(sourceText+="\n");return sourceText}(allDefines),"\n").concat(isVertex?"":FRAGMENT_SHADER_PROLOGUE,"\n"):"".concat(versionLine,"\n");const hookFunctionMap=function normalizeHookFunctions(hookFunctions){const result={vs:{},fs:{}};return hookFunctions.forEach((hook=>{let opts;"string"!=typeof hook?(opts=hook,hook=opts.hook):opts={},hook=hook.trim();const[stage,signature]=hook.split(":"),name=hook.replace(/\(.+/,"");result[stage][name]=Object.assign(opts,{signature:signature})})),result}(hookFunctions),hookInjections={},declInjections={},mainInjections={};for(const key in inject){const injection="string"==typeof inject[key]?{injection:inject[key],order:0}:inject[key],match=key.match(/^(v|f)s:(#)?([\w-]+)$/);if(match){const hash=match[2],name=match[3];hash?"decl"===name?declInjections[key]=[injection]:mainInjections[key]=[injection]:hookInjections[key]=[injection]}else mainInjections[key]=[injection]}for(const module of modules){log&&module.checkDeprecations(coreSource,log);assembledSource+=module.getModuleSource(type,glslVersion);const injections=module.injections[type];for(const key in injections){const match=key.match(/^(v|f)s:#([\w-]+)$/);if(match){const injectionType="decl"===match[2]?declInjections:mainInjections;injectionType[key]=injectionType[key]||[],injectionType[key].push(injections[key])}else hookInjections[key]=hookInjections[key]||[],hookInjections[key].push(injections[key])}}return assembledSource+=INJECT_SHADER_DECLARATIONS,assembledSource=(0,inject_shader.ZP)(assembledSource,type,declInjections),assembledSource+=function getHookFunctions(hookFunctions,hookInjections){let result="";for(const hookName in hookFunctions){const hookFunction=hookFunctions[hookName];if(result+="void ".concat(hookFunction.signature," {\n"),hookFunction.header&&(result+=" ".concat(hookFunction.header)),hookInjections[hookName]){const injections=hookInjections[hookName];injections.sort(((a,b)=>a.order-b.order));for(const injection of injections)result+=" ".concat(injection.injection,"\n")}hookFunction.footer&&(result+=" ".concat(hookFunction.footer)),result+="}\n"}return result}(hookFunctionMap[type],hookInjections),assembledSource+=coreSource,assembledSource=(0,inject_shader.ZP)(assembledSource,type,mainInjections),assembledSource=transpileShader(assembledSource,transpileToGLSL100?100:glslVersion,isVertex),assembledSource}function assembleGetUniforms(modules){return function getUniforms(opts){const uniforms={};for(const module of modules){const moduleUniforms=module.getUniforms(opts,uniforms);Object.assign(uniforms,moduleUniforms)}return uniforms}}var program=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/program.js");class ProgramManager{static getDefaultProgramManager(gl){return gl.luma=gl.luma||{},gl.luma.defaultProgramManager=gl.luma.defaultProgramManager||new ProgramManager(gl),gl.luma.defaultProgramManager}constructor(gl){this.gl=gl,this._programCache={},this._getUniforms={},this._registeredModules={},this._hookFunctions=[],this._defaultModules=[],this._hashes={},this._hashCounter=0,this.stateHash=0,this._useCounts={}}addDefaultModule(module){this._defaultModules.find((m=>m.name===module.name))||this._defaultModules.push(module),this.stateHash++}removeDefaultModule(module){const moduleName="string"==typeof module?module:module.name;this._defaultModules=this._defaultModules.filter((m=>m.name!==moduleName)),this.stateHash++}addShaderHook(hook,opts){opts&&(hook=Object.assign(opts,{hook:hook})),this._hookFunctions.push(hook),this.stateHash++}get(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{vs:vs="",fs:fs="",defines:defines={},inject:inject={},varyings:varyings=[],bufferMode:bufferMode=35981,transpileToGLSL100:transpileToGLSL100=!1}=props,modules=this._getModuleList(props.modules),vsHash=this._getHash(vs),fsHash=this._getHash(fs),moduleHashes=modules.map((m=>this._getHash(m.name))).sort(),varyingHashes=varyings.map((v=>this._getHash(v))),defineKeys=Object.keys(defines).sort(),injectKeys=Object.keys(inject).sort(),defineHashes=[],injectHashes=[];for(const key of defineKeys)defineHashes.push(this._getHash(key)),defineHashes.push(this._getHash(defines[key]));for(const key of injectKeys)injectHashes.push(this._getHash(key)),injectHashes.push(this._getHash(inject[key]));const hash="".concat(vsHash,"/").concat(fsHash,"D").concat(defineHashes.join("/"),"M").concat(moduleHashes.join("/"),"I").concat(injectHashes.join("/"),"V").concat(varyingHashes.join("/"),"H").concat(this.stateHash,"B").concat(bufferMode).concat(transpileToGLSL100?"T":"");if(!this._programCache[hash]){const assembled=function assembleShaders(gl,opts){const{vs:vs,fs:fs}=opts,modules=resolveModules(opts.modules||[]);return{gl:gl,vs:assembleShader(gl,Object.assign({},opts,{source:vs,type:constants.H,modules:modules})),fs:assembleShader(gl,Object.assign({},opts,{source:fs,type:constants.Y,modules:modules})),getUniforms:assembleGetUniforms(modules)}}(this.gl,{vs:vs,fs:fs,modules:modules,inject:inject,defines:defines,hookFunctions:this._hookFunctions,transpileToGLSL100:transpileToGLSL100});this._programCache[hash]=new program.Z(this.gl,{hash:hash,vs:assembled.vs,fs:assembled.fs,varyings:varyings,bufferMode:bufferMode}),this._getUniforms[hash]=assembled.getUniforms||(x=>{}),this._useCounts[hash]=0}return this._useCounts[hash]++,this._programCache[hash]}getUniforms(program){return this._getUniforms[program.hash]||null}release(program){const hash=program.hash;this._useCounts[hash]--,0===this._useCounts[hash]&&(this._programCache[hash].delete(),delete this._programCache[hash],delete this._getUniforms[hash],delete this._useCounts[hash])}_getHash(key){return void 0===this._hashes[key]&&(this._hashes[key]=this._hashCounter++),this._hashes[key]}_getModuleList(){let appModules=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const modules=new Array(this._defaultModules.length+appModules.length),seen={};let count=0;for(let i=0,len=this._defaultModules.length;i0&&void 0!==arguments[0]?arguments[0]:{};const{version:version=100,input:input,inputType:inputType,output:output}=options;if(!input)return 300===version?FS300:version>300?"#version ".concat(version,"\n").concat(FS_GLES):"void main() {gl_FragColor = vec4(0);}";const outputValue=function convertToVec4(variable,type){switch(type){case"float":return"vec4(".concat(variable,", 0.0, 0.0, 1.0)");case"vec2":return"vec4(".concat(variable,", 0.0, 1.0)");case"vec3":return"vec4(".concat(variable,", 1.0)");case"vec4":return variable;default:return(0,assert.Z)(!1),null}}(input,inputType);return version>=300?"#version ".concat(version," ").concat(300===version?"es":"","\nin ").concat(inputType," ").concat(input,";\nout vec4 ").concat(output,";\nvoid main() {\n ").concat(output," = ").concat(outputValue,";\n}"):"varying ".concat(inputType," ").concat(input,";\nvoid main() {\n gl_FragColor = ").concat(outputValue,";\n}")}var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),classes_buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),transform_feedback=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/transform-feedback.js"),utils_assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");class BufferTransform{constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=gl,this.currentIndex=0,this.feedbackMap={},this.varyings=null,this.bindings=[],this.resources={},this._initialize(props),Object.seal(this)}setupResources(opts){for(const binding of this.bindings)this._setupTransformFeedback(binding,opts)}updateModelProps(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{varyings:varyings}=this;return varyings.length>0&&(props=Object.assign({},props,{varyings:varyings})),props}getDrawOptions(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const binding=this.bindings[this.currentIndex],{sourceBuffers:sourceBuffers,transformFeedback:transformFeedback}=binding;return{attributes:Object.assign({},sourceBuffers,opts.attributes),transformFeedback:transformFeedback}}swap(){return!!this.feedbackMap&&(this.currentIndex=this._getNextIndex(),!0)}update(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupBuffers(opts)}getBuffer(varyingName){const{feedbackBuffers:feedbackBuffers}=this.bindings[this.currentIndex],bufferOrParams=varyingName?feedbackBuffers[varyingName]:null;return bufferOrParams?bufferOrParams instanceof classes_buffer.Z?bufferOrParams:bufferOrParams.buffer:null}getData(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{varyingName:varyingName}=options,buffer=this.getBuffer(varyingName);return buffer?buffer.getData():null}delete(){for(const name in this.resources)this.resources[name].delete()}_initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupBuffers(props),this.varyings=props.varyings||Object.keys(this.bindings[this.currentIndex].feedbackBuffers),this.varyings.length>0&&(0,utils_assert.h)((0,esm.D0)(this.gl))}_getFeedbackBuffers(props){const{sourceBuffers:sourceBuffers={}}=props,feedbackBuffers={};if(this.bindings[this.currentIndex]&&Object.assign(feedbackBuffers,this.bindings[this.currentIndex].feedbackBuffers),this.feedbackMap)for(const sourceName in this.feedbackMap){const feedbackName=this.feedbackMap[sourceName];sourceName in sourceBuffers&&(feedbackBuffers[feedbackName]=sourceName)}Object.assign(feedbackBuffers,props.feedbackBuffers);for(const bufferName in feedbackBuffers){const bufferOrRef=feedbackBuffers[bufferName];if("string"==typeof bufferOrRef){const sourceBuffer=sourceBuffers[bufferOrRef],{byteLength:byteLength,usage:usage,accessor:accessor}=sourceBuffer;feedbackBuffers[bufferName]=this._createNewBuffer(bufferName,{byteLength:byteLength,usage:usage,accessor:accessor})}}return feedbackBuffers}_setupBuffers(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:sourceBuffers=null}=props;Object.assign(this.feedbackMap,props.feedbackMap);const feedbackBuffers=this._getFeedbackBuffers(props);this._updateBindings({sourceBuffers:sourceBuffers,feedbackBuffers:feedbackBuffers})}_setupTransformFeedback(binding,_ref){let{model:model}=_ref;const{program:program}=model;binding.transformFeedback=new transform_feedback.Z(this.gl,{program:program,buffers:binding.feedbackBuffers})}_updateBindings(opts){if(this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],opts),this.feedbackMap){const{sourceBuffers:sourceBuffers,feedbackBuffers:feedbackBuffers}=this._swapBuffers(this.bindings[this.currentIndex]),nextIndex=this._getNextIndex();this.bindings[nextIndex]=this._updateBinding(this.bindings[nextIndex],{sourceBuffers:sourceBuffers,feedbackBuffers:feedbackBuffers})}}_updateBinding(binding,opts){return binding?(Object.assign(binding.sourceBuffers,opts.sourceBuffers),Object.assign(binding.feedbackBuffers,opts.feedbackBuffers),binding.transformFeedback&&binding.transformFeedback.setBuffers(binding.feedbackBuffers),binding):{sourceBuffers:Object.assign({},opts.sourceBuffers),feedbackBuffers:Object.assign({},opts.feedbackBuffers)}}_swapBuffers(opts){if(!this.feedbackMap)return null;const sourceBuffers=Object.assign({},opts.sourceBuffers),feedbackBuffers=Object.assign({},opts.feedbackBuffers);for(const srcName in this.feedbackMap){const dstName=this.feedbackMap[srcName];sourceBuffers[srcName]=opts.feedbackBuffers[dstName],feedbackBuffers[dstName]=opts.sourceBuffers[srcName],(0,utils_assert.h)(feedbackBuffers[dstName]instanceof classes_buffer.Z)}return{sourceBuffers:sourceBuffers,feedbackBuffers:feedbackBuffers}}_createNewBuffer(name,opts){const buffer=new classes_buffer.Z(this.gl,opts);return this.resources[name]&&this.resources[name].delete(),this.resources[name]=buffer,buffer}_getNextIndex(){return(this.currentIndex+1)%2}}var copy_and_blit=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),classes_framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),texture_utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/texture-utils.js");function getShaderVersion(source){let version=100;const words=source.match(/[^\s]+/g);if(words.length>=2&&"#version"===words[0]){const v=parseInt(words[1],10);Number.isFinite(v)&&(version=v)}return version}var inject_shader=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/inject-shader.js");const transform={name:"transform",vs:"attribute float transform_elementID;\nvec2 transform_getPixelSizeHalf(vec2 size) {\n return vec2(1.) / (2. * size);\n}\n\nvec2 transform_getPixelIndices(vec2 texSize, vec2 pixelSizeHalf) {\n float yIndex = floor((transform_elementID / texSize[0]) + pixelSizeHalf[1]);\n float xIndex = transform_elementID - (yIndex * texSize[0]);\n return vec2(xIndex, yIndex);\n}\nvec2 transform_getTexCoord(vec2 size) {\n vec2 pixelSizeHalf = transform_getPixelSizeHalf(size);\n vec2 indices = transform_getPixelIndices(size, pixelSizeHalf);\n vec2 coord = indices / size + pixelSizeHalf;\n return coord;\n}\nvec2 transform_getPos(vec2 size) {\n vec2 texCoord = transform_getTexCoord(size);\n vec2 pos = (texCoord * (2.0, 2.0)) - (1., 1.);\n return pos;\n}\nvec4 transform_getInput(sampler2D texSampler, vec2 size) {\n vec2 texCoord = transform_getTexCoord(size);\n vec4 textureColor = texture2D(texSampler, texCoord);\n return textureColor;\n}\n",fs:null},SAMPLER_UNIFORM_PREFIX="transform_uSampler_",SIZE_UNIFORM_PREFIX="transform_uSize_";function updateForTextures(_ref){let{vs:vs,sourceTextureMap:sourceTextureMap,targetTextureVarying:targetTextureVarying,targetTexture:targetTexture}=_ref;let sourceCount=Object.keys(sourceTextureMap).length,targetTextureType=null;const samplerTextureMap={};let updatedVs=vs,finalInject={};if(sourceCount>0||targetTextureVarying){const vsLines=updatedVs.split("\n"),updateVsLines=vsLines.slice();if(vsLines.forEach(((line,index,lines)=>{if(sourceCount>0){const updated=function processAttributeDefinition(line,textureMap){const samplerTextureMap={},attributeData=function getAttributeDefinition(line){return getQualifierDetails(line,["attribute","in"])}(line);if(!attributeData)return null;const{type:type,name:name}=attributeData;if(name&&textureMap[name]){const updatedLine="// ".concat(line," => Replaced by Transform with a sampler"),{samplerName:samplerName,sizeName:sizeName,uniformDeclerations:uniformDeclerations}=function getSamplerDeclerations(textureName){const samplerName="".concat(SAMPLER_UNIFORM_PREFIX).concat(textureName),sizeName="".concat(SIZE_UNIFORM_PREFIX).concat(textureName),uniformDeclerations=" uniform sampler2D ".concat(samplerName,";\n uniform vec2 ").concat(sizeName,";");return{samplerName:samplerName,sizeName:sizeName,uniformDeclerations:uniformDeclerations}}(name),channels=function typeToChannelSuffix(type){switch(type){case"float":return"x";case"vec2":return"xy";case"vec3":return"xyz";case"vec4":return"xyzw";default:return(0,assert.Z)(!1),null}}(type),sampleInstruction=" ".concat(type," ").concat(name," = transform_getInput(").concat(samplerName,", ").concat(sizeName,").").concat(channels,";\n");samplerTextureMap[samplerName]=name;return{updatedLine:updatedLine,inject:{"vs:#decl":uniformDeclerations,"vs:#main-start":sampleInstruction},samplerTextureMap:samplerTextureMap}}return null}(line,sourceTextureMap);if(updated){const{updatedLine:updatedLine,inject:inject}=updated;updateVsLines[index]=updatedLine,finalInject=(0,inject_shader.Lm)([finalInject,inject]),Object.assign(samplerTextureMap,updated.samplerTextureMap),sourceCount--}}targetTextureVarying&&!targetTextureType&&(targetTextureType=function getVaryingType(line,varying){const qualaiferDetails=getQualifierDetails(line,["varying","out"]);if(!qualaiferDetails)return null;return qualaiferDetails.name===varying?qualaiferDetails.type:null}(line,targetTextureVarying))})),targetTextureVarying){(0,utils_assert.h)(targetTexture);const sizeName="".concat(SIZE_UNIFORM_PREFIX).concat(targetTextureVarying),inject={"vs:#decl":"uniform vec2 ".concat(sizeName,";\n"),"vs:#main-start":" vec2 ".concat("transform_position"," = transform_getPos(").concat(sizeName,");\n gl_Position = vec4(").concat("transform_position",", 0, 1.);\n")};finalInject=(0,inject_shader.Lm)([finalInject,inject])}updatedVs=updateVsLines.join("\n")}return{vs:updatedVs,targetTextureType:targetTextureType,inject:finalInject,samplerTextureMap:samplerTextureMap}}const SRC_TEX_PARAMETER_OVERRIDES={10241:9728,10240:9728,10242:33071,10243:33071};class TextureTransform{constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=gl,this.id=this.currentIndex=0,this._swapTexture=null,this.targetTextureVarying=null,this.targetTextureType=null,this.samplerTextureMap=null,this.bindings=[],this.resources={},this._initialize(props),Object.seal(this)}updateModelProps(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const updatedModelProps=this._processVertexShader(props);return Object.assign({},props,updatedModelProps)}getDrawOptions(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:sourceBuffers,sourceTextures:sourceTextures,framebuffer:framebuffer,targetTexture:targetTexture}=this.bindings[this.currentIndex],attributes=Object.assign({},sourceBuffers,opts.attributes),uniforms=Object.assign({},opts.uniforms),parameters=Object.assign({},opts.parameters);let discard=opts.discard;if(this.hasSourceTextures||this.hasTargetTexture){attributes.transform_elementID=this.elementIDBuffer;for(const sampler in this.samplerTextureMap){const textureName=this.samplerTextureMap[sampler];uniforms[sampler]=sourceTextures[textureName]}this._setSourceTextureParameters();const sizeUniforms=function getSizeUniforms(_ref2){let{sourceTextureMap:sourceTextureMap,targetTextureVarying:targetTextureVarying,targetTexture:targetTexture}=_ref2;const uniforms={};let width,height;targetTextureVarying&&(({width:width,height:height}=targetTexture),uniforms["".concat(SIZE_UNIFORM_PREFIX).concat(targetTextureVarying)]=[width,height]);for(const textureName in sourceTextureMap)({width:width,height:height}=sourceTextureMap[textureName]),uniforms["".concat(SIZE_UNIFORM_PREFIX).concat(textureName)]=[width,height];return uniforms}({sourceTextureMap:sourceTextures,targetTextureVarying:this.targetTextureVarying,targetTexture:targetTexture});Object.assign(uniforms,sizeUniforms)}return this.hasTargetTexture&&(discard=!1,parameters.viewport=[0,0,framebuffer.width,framebuffer.height]),{attributes:attributes,framebuffer:framebuffer,uniforms:uniforms,discard:discard,parameters:parameters}}swap(){return!!this._swapTexture&&(this.currentIndex=this._getNextIndex(),!0)}update(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupTextures(opts)}getTargetTexture(){const{targetTexture:targetTexture}=this.bindings[this.currentIndex];return targetTexture}getData(){let{packed:packed=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{framebuffer:framebuffer}=this.bindings[this.currentIndex],pixels=(0,copy_and_blit.z6)(framebuffer);if(!packed)return pixels;const ArrayType=pixels.constructor,channelCount=function typeToChannelCount(type){switch(type){case"float":return 1;case"vec2":return 2;case"vec3":return 3;case"vec4":return 4;default:return(0,assert.Z)(!1),null}}(this.targetTextureType),packedPixels=new ArrayType(pixels.length*channelCount/4);let packCount=0;for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:{};const{_targetTextureVarying:_targetTextureVarying,_swapTexture:_swapTexture}=props;this._swapTexture=_swapTexture,this.targetTextureVarying=_targetTextureVarying,this.hasTargetTexture=_targetTextureVarying,this._setupTextures(props)}_createTargetTexture(props){const{sourceTextures:sourceTextures,textureOrReference:textureOrReference}=props;if(textureOrReference instanceof texture_2d.Z)return textureOrReference;const refTexture=sourceTextures[textureOrReference];return refTexture?(this._targetRefTexName=textureOrReference,this._createNewTexture(refTexture)):null}_setupTextures(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:sourceBuffers,_sourceTextures:_sourceTextures={},_targetTexture:_targetTexture}=props,targetTexture=this._createTargetTexture({sourceTextures:_sourceTextures,textureOrReference:_targetTexture});this.hasSourceTextures=this.hasSourceTextures||_sourceTextures&&Object.keys(_sourceTextures).length>0,this._updateBindings({sourceBuffers:sourceBuffers,sourceTextures:_sourceTextures,targetTexture:targetTexture}),"elementCount"in props&&this._updateElementIDBuffer(props.elementCount)}_updateElementIDBuffer(elementCount){if("number"!=typeof elementCount||this.elementCount>=elementCount)return;const elementIds=new Float32Array(elementCount);elementIds.forEach(((_,index,array)=>{array[index]=index})),this.elementIDBuffer?this.elementIDBuffer.setData({data:elementIds}):this.elementIDBuffer=new classes_buffer.Z(this.gl,{data:elementIds,accessor:{size:1}}),this.elementCount=elementCount}_updateBindings(opts){if(this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],opts),this._swapTexture){const{sourceTextures:sourceTextures,targetTexture:targetTexture}=this._swapTextures(this.bindings[this.currentIndex]),nextIndex=this._getNextIndex();this.bindings[nextIndex]=this._updateBinding(this.bindings[nextIndex],{sourceTextures:sourceTextures,targetTexture:targetTexture})}}_updateBinding(binding,opts){const{sourceBuffers:sourceBuffers,sourceTextures:sourceTextures,targetTexture:targetTexture}=opts;if(binding||(binding={sourceBuffers:{},sourceTextures:{},targetTexture:null}),Object.assign(binding.sourceTextures,sourceTextures),Object.assign(binding.sourceBuffers,sourceBuffers),targetTexture){binding.targetTexture=targetTexture;const{width:width,height:height}=targetTexture,{framebuffer:framebuffer}=binding;framebuffer?(framebuffer.update({attachments:{36064:targetTexture},resizeAttachments:!1}),framebuffer.resize({width:width,height:height})):binding.framebuffer=new classes_framebuffer.Z(this.gl,{id:"transform-framebuffer",width:width,height:height,attachments:{36064:targetTexture}})}return binding}_setSourceTextureParameters(){const index=this.currentIndex,{sourceTextures:sourceTextures}=this.bindings[index];for(const name in sourceTextures)sourceTextures[name].setParameters(SRC_TEX_PARAMETER_OVERRIDES)}_swapTextures(opts){if(!this._swapTexture)return null;const sourceTextures=Object.assign({},opts.sourceTextures);sourceTextures[this._swapTexture]=opts.targetTexture;return{sourceTextures:sourceTextures,targetTexture:opts.sourceTextures[this._swapTexture]}}_createNewTexture(refTexture){const texture=(0,texture_utils.h)(refTexture,{parameters:{10241:9728,10240:9728,10242:33071,10243:33071},pixelStore:{37440:!1}});return this.ownTexture&&this.ownTexture.delete(),this.ownTexture=texture,texture}_getNextIndex(){return(this.currentIndex+1)%2}_processVertexShader(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceTextures:sourceTextures,targetTexture:targetTexture}=this.bindings[this.currentIndex],{vs:vs,uniforms:uniforms,targetTextureType:targetTextureType,inject:inject,samplerTextureMap:samplerTextureMap}=updateForTextures({vs:props.vs,sourceTextureMap:sourceTextures,targetTextureVarying:this.targetTextureVarying,targetTexture:targetTexture}),combinedInject=(0,inject_shader.Lm)([props.inject||{},inject]);this.targetTextureType=targetTextureType,this.samplerTextureMap=samplerTextureMap;return{vs:vs,fs:props._fs||getPassthroughFS({version:getShaderVersion(vs),input:this.targetTextureVarying,inputType:targetTextureType,output:"transform_output"}),modules:this.hasSourceTextures||this.targetTextureVarying?[transform].concat(props.modules||[]):props.modules,uniforms:uniforms,inject:combinedInject}}}var utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js");class Transform{static isSupported(gl){return(0,esm.D0)(gl)}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=gl,this.model=null,this.elementCount=0,this.bufferTransform=null,this.textureTransform=null,this.elementIDBuffer=null,this._initialize(props),Object.seal(this)}delete(){const{model:model,bufferTransform:bufferTransform,textureTransform:textureTransform}=this;model&&model.delete(),bufferTransform&&bufferTransform.delete(),textureTransform&&textureTransform.delete()}run(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clearRenderTarget:clearRenderTarget=!0}=opts,updatedOpts=this._updateDrawOptions(opts);clearRenderTarget&&updatedOpts.framebuffer&&updatedOpts.framebuffer.clear({color:!0}),this.model.transform(updatedOpts)}swap(){let swapped=!1;const resourceTransforms=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const resourceTransform of resourceTransforms)swapped=swapped||resourceTransform.swap();(0,utils_assert.h)(swapped,"Nothing to swap")}getBuffer(){let varyingName=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.bufferTransform&&this.bufferTransform.getBuffer(varyingName)}getData(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const resourceTransforms=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const resourceTransform of resourceTransforms){const data=resourceTransform.getData(opts);if(data)return data}return null}getFramebuffer(){return this.textureTransform&&this.textureTransform.getFramebuffer()}update(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"elementCount"in opts&&this.model.setVertexCount(opts.elementCount);const resourceTransforms=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const resourceTransform of resourceTransforms)resourceTransform.update(opts)}_initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{gl:gl}=this;this._buildResourceTransforms(gl,props),props=this._updateModelProps(props),this.model=new model.Z(gl,Object.assign({},props,{fs:props.fs||getPassthroughFS({version:getShaderVersion(props.vs)}),id:props.id||"transform-model",drawMode:props.drawMode||0,vertexCount:props.elementCount})),this.bufferTransform&&this.bufferTransform.setupResources({model:this.model})}_updateModelProps(props){let updatedProps=Object.assign({},props);const resourceTransforms=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const resourceTransform of resourceTransforms)updatedProps=resourceTransform.updateModelProps(updatedProps);return updatedProps}_buildResourceTransforms(gl,props){(function canCreateBufferTransform(props){if(!(0,utils.nK)(props.feedbackBuffers)||!(0,utils.nK)(props.feedbackMap)||props.varyings&&props.varyings.length>0)return!0;return!1})(props)&&(this.bufferTransform=new BufferTransform(gl,props)),function canCreateTextureTransform(props){if(!(0,utils.nK)(props._sourceTextures)||props._targetTexture||props._targetTextureVarying)return!0;return!1}(props)&&(this.textureTransform=new TextureTransform(gl,props)),(0,utils_assert.h)(this.bufferTransform||this.textureTransform,"must provide source/feedback buffers or source/target textures")}_updateDrawOptions(opts){let updatedOpts=Object.assign({},opts);const resourceTransforms=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const resourceTransform of resourceTransforms)updatedOpts=Object.assign(updatedOpts,resourceTransform.getDrawOptions(updatedOpts));return updatedOpts}}},"./node_modules/@luma.gl/gltools/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{KQ:function(){return assertWebGL2Context},JD:function(){return assertWebGLContext},s9:function(){return createGLContext},JY:function(){return cssToDevicePixels},w:function(){return cssToDeviceRatio},ZS:function(){return getParameters},vd:function(){return getWebGL2Context},yW:function(){return instrumentGLContext},UF:function(){return isWebGL},D0:function(){return isWebGL2},cM:function(){return log_log},kL:function(){return resetParameters},aQ:function(){return resizeGLContext},dR:function(){return setParameters},s8:function(){return withParameters}});const log_log=new(__webpack_require__("./node_modules/@probe.gl/log/dist/esm/log.js").Z)({id:"luma.gl"});function assert(condition,message){if(!condition)throw new Error(message||"luma.gl: assertion failed.")}const ERR_CONTEXT="Invalid WebGLRenderingContext",ERR_WEBGL2="Requires WebGL2";function isWebGL(gl){return"undefined"!=typeof WebGLRenderingContext&&gl instanceof WebGLRenderingContext||("undefined"!=typeof WebGL2RenderingContext&&gl instanceof WebGL2RenderingContext||Boolean(gl&&Number.isFinite(gl._version)))}function isWebGL2(gl){return"undefined"!=typeof WebGL2RenderingContext&&gl instanceof WebGL2RenderingContext||Boolean(gl&&2===gl._version)}function getWebGL2Context(gl){return isWebGL2(gl)?gl:null}function assertWebGLContext(gl){return assert(isWebGL(gl),ERR_CONTEXT),gl}function assertWebGL2Context(gl){return assert(isWebGL2(gl),ERR_WEBGL2),gl}const glErrorShadow={};function synthesizeGLError(err,opt_msg){glErrorShadow[err]=!0,void 0!==opt_msg&&function error(msg){globalThis.console&&globalThis.console.error&&globalThis.console.error(msg)}(opt_msg)}const WebGLVertexArrayObjectOES=function WebGLVertexArrayObjectOES(ext){const gl=ext.gl;this.ext=ext,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(ext.maxVertexAttribs);for(let n=0;n{!function polyfill_vertex_array_object_log(msg){globalThis.console&&globalThis.console.log&&globalThis.console.log(msg)}("OESVertexArrayObject emulation library context restored"),self.reset_()}),!0),this.reset_()};OESVertexArrayObject.prototype.VERTEX_ARRAY_BINDING_OES=34229,OESVertexArrayObject.prototype.reset_=function reset_(){if(void 0!==this.vertexArrayObjects)for(let ii=0;iiisWebGL2(gl)?void 0:0,WEBGL_PARAMETERS={3074:gl=>isWebGL2(gl)?void 0:36064,35723:gl=>isWebGL2(gl)?void 0:4352,35977:getWebGL2ValueOrZero,32937:getWebGL2ValueOrZero,36795:(gl,getParameter)=>{const ext=isWebGL2(gl)?gl.getExtension("EXT_disjoint_timer_query_webgl2"):gl.getExtension("EXT_disjoint_timer_query");return ext&&ext.GPU_DISJOINT_EXT?getParameter(ext.GPU_DISJOINT_EXT):0},37445:(gl,getParameter)=>{const ext=gl.getExtension("WEBGL_debug_renderer_info");return getParameter(ext&&ext.UNMASKED_VENDOR_WEBGL||7936)},37446:(gl,getParameter)=>{const ext=gl.getExtension("WEBGL_debug_renderer_info");return getParameter(ext&&ext.UNMASKED_RENDERER_WEBGL||7937)},34047:(gl,getParameter)=>{const ext=gl.luma.extensions.EXT_texture_filter_anisotropic;return ext?getParameter(ext.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1},32883:getWebGL2ValueOrZero,35071:getWebGL2ValueOrZero,37447:getWebGL2ValueOrZero,36063:(gl,getParameter)=>{if(!isWebGL2(gl)){const ext=gl.getExtension("WEBGL_draw_buffers");return ext?getParameter(ext.MAX_COLOR_ATTACHMENTS_WEBGL):0}},35379:getWebGL2ValueOrZero,35374:getWebGL2ValueOrZero,35377:getWebGL2ValueOrZero,34852:gl=>{if(!isWebGL2(gl)){const ext=gl.getExtension("WEBGL_draw_buffers");return ext?ext.MAX_DRAW_BUFFERS_WEBGL:0}},36203:gl=>gl.getExtension("OES_element_index")?2147483647:65535,33001:gl=>gl.getExtension("OES_element_index")?16777216:65535,33e3:gl=>16777216,37157:getWebGL2ValueOrZero,35373:getWebGL2ValueOrZero,35657:getWebGL2ValueOrZero,36183:getWebGL2ValueOrZero,37137:getWebGL2ValueOrZero,34045:getWebGL2ValueOrZero,35978:getWebGL2ValueOrZero,35979:getWebGL2ValueOrZero,35968:getWebGL2ValueOrZero,35376:getWebGL2ValueOrZero,35375:getWebGL2ValueOrZero,35659:getWebGL2ValueOrZero,37154:getWebGL2ValueOrZero,35371:getWebGL2ValueOrZero,35658:getWebGL2ValueOrZero,35076:getWebGL2ValueOrZero,35077:getWebGL2ValueOrZero,35380:getWebGL2ValueOrZero};const WEBGL2_CONTEXT_POLYFILLS={OES_vertex_array_object:{meta:{suffix:"OES"},createVertexArray:()=>{assert(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:()=>{},bindVertexArray:()=>{},isVertexArray:()=>!1},ANGLE_instanced_arrays:{meta:{suffix:"ANGLE"},vertexAttribDivisor(location,divisor){assert(0===divisor,"WebGL instanced rendering not supported")},drawElementsInstanced:()=>{},drawArraysInstanced:()=>{}},WEBGL_draw_buffers:{meta:{suffix:"WEBGL"},drawBuffers:()=>{assert(!1)}},EXT_disjoint_timer_query:{meta:{suffix:"EXT"},createQuery:()=>{assert(!1)},deleteQuery:()=>{assert(!1)},beginQuery:()=>{assert(!1)},endQuery:()=>{},getQuery(handle,pname){return this.getQueryObject(handle,pname)},getQueryParameter(handle,pname){return this.getQueryObject(handle,pname)},getQueryObject:()=>{}}},WEBGL2_CONTEXT_OVERRIDES={readBuffer:(gl,originalFunc,attachment)=>{isWebGL2(gl)&&originalFunc(attachment)},getVertexAttrib:(gl,originalFunc,location,pname)=>{const{webgl2:webgl2,ext:ext}=function getExtensionData(gl,extension){return{webgl2:isWebGL2(gl),ext:gl.getExtension(extension)}}(gl,"ANGLE_instanced_arrays");let result;switch(pname){case 35069:result=!!webgl2&&void 0;break;case 35070:result=webgl2||ext?void 0:0}return void 0!==result?result:originalFunc(location,pname)},getProgramParameter:(gl,originalFunc,program,pname)=>{if(!isWebGL2(gl))switch(pname){case 35967:return 35981;case 35971:case 35382:return 0}return originalFunc(program,pname)},getInternalformatParameter:(gl,originalFunc,target,format,pname)=>isWebGL2(gl)||32937!==pname?gl.getInternalformatParameter(target,format,pname):new Int32Array([0]),getTexParameter(gl,originalFunc,target,pname){if(34046===pname){const{extensions:extensions}=gl.luma,ext=extensions.EXT_texture_filter_anisotropic;pname=ext&&ext.TEXTURE_MAX_ANISOTROPY_EXT||34046}return originalFunc(target,pname)},getParameter:function getParameterPolyfill(gl,originalGetParameter,pname){const limit=WEBGL_PARAMETERS[pname],value="function"==typeof limit?limit(gl,originalGetParameter,pname):limit;return void 0!==value?value:originalGetParameter(pname)},hint(gl,originalFunc,pname,value){return originalFunc(pname,value)}};function polyfillExtension(gl,_ref2){let{extension:extension,target:target,target2:target2}=_ref2;const defaults=WEBGL2_CONTEXT_POLYFILLS[extension];assert(defaults);const{meta:meta={}}=defaults,{suffix:suffix=""}=meta,ext=gl.getExtension(extension);for(const key of Object.keys(defaults)){const extKey="".concat(key).concat(suffix);let polyfill=null;"meta"===key||"function"==typeof gl[key]||(ext&&"function"==typeof ext[extKey]?polyfill=function(){return ext[extKey](...arguments)}:"function"==typeof defaults[key]&&(polyfill=defaults[key].bind(target))),polyfill&&(target[key]=polyfill,target2[key]=polyfill)}}globalThis.polyfillContext=function polyfillContext(gl){gl.luma=gl.luma||{};const{luma:luma}=gl;return luma.polyfilled||(!function polyfillVertexArrayObject(gl){if("function"==typeof gl.createVertexArray)return;const original_getSupportedExtensions=gl.getSupportedExtensions;gl.getSupportedExtensions=function getSupportedExtensions(){const list=original_getSupportedExtensions.call(this)||[];return list.indexOf("OES_vertex_array_object")<0&&list.push("OES_vertex_array_object"),list};const original_getExtension=gl.getExtension;gl.getExtension=function getExtension(name){return original_getExtension.call(this,name)||("OES_vertex_array_object"!==name?null:(gl.__OESVertexArrayObject||(this.__OESVertexArrayObject=new OESVertexArrayObject(this)),this.__OESVertexArrayObject))}}(gl),function initializeExtensions(gl){gl.luma.extensions={};const EXTENSIONS=gl.getSupportedExtensions()||[];for(const extension of EXTENSIONS)gl.luma[extension]=gl.getExtension(extension)}(gl),function installPolyfills(gl,polyfills){for(const extension of Object.getOwnPropertyNames(polyfills))"overrides"!==extension&&polyfillExtension(gl,{extension:extension,target:gl.luma,target2:gl})}(gl,WEBGL2_CONTEXT_POLYFILLS),function installOverrides(gl,_ref){let{target:target,target2:target2}=_ref;Object.keys(WEBGL2_CONTEXT_OVERRIDES).forEach((key=>{if("function"==typeof WEBGL2_CONTEXT_OVERRIDES[key]){const originalFunc=gl[key]?gl[key].bind(gl):()=>{},polyfill=WEBGL2_CONTEXT_OVERRIDES[key].bind(null,gl,originalFunc);target[key]=polyfill,target2[key]=polyfill}}))}(gl,{target:luma,target2:gl}),luma.polyfilled=!0),gl};const GL_PARAMETER_DEFAULTS={3042:!1,32773:new Float32Array([0,0,0,0]),32777:32774,34877:32774,32969:1,32968:0,32971:1,32970:0,3106:new Float32Array([0,0,0,0]),3107:[!0,!0,!0,!0],2884:!1,2885:1029,2929:!1,2931:1,2932:513,2928:new Float32Array([0,1]),2930:!0,3024:!0,36006:null,2886:2305,33170:4352,2849:1,32823:!1,32824:0,10752:0,32938:1,32939:!1,3089:!1,3088:new Int32Array([0,0,1024,1024]),2960:!1,2961:0,2968:4294967295,36005:4294967295,2962:519,2967:0,2963:4294967295,34816:519,36003:0,36004:4294967295,2964:7680,2965:7680,2966:7680,34817:7680,34818:7680,34819:7680,2978:[0,0,1024,1024],3333:4,3317:4,37440:!1,37441:!1,37443:37444,35723:4352,36010:null,35977:!1,3330:0,3332:0,3331:0,3314:0,32878:0,3316:0,3315:0,32877:0},enable=(gl,value,key)=>value?gl.enable(key):gl.disable(key),hint=(gl,value,key)=>gl.hint(key,value),pixelStorei=(gl,value,key)=>gl.pixelStorei(key,value);function isArray(array){return Array.isArray(array)||ArrayBuffer.isView(array)}const GL_PARAMETER_SETTERS={3042:enable,32773:(gl,value)=>gl.blendColor(...value),32777:"blendEquation",34877:"blendEquation",32969:"blendFunc",32968:"blendFunc",32971:"blendFunc",32970:"blendFunc",3106:(gl,value)=>gl.clearColor(...value),3107:(gl,value)=>gl.colorMask(...value),2884:enable,2885:(gl,value)=>gl.cullFace(value),2929:enable,2931:(gl,value)=>gl.clearDepth(value),2932:(gl,value)=>gl.depthFunc(value),2928:(gl,value)=>gl.depthRange(...value),2930:(gl,value)=>gl.depthMask(value),3024:enable,35723:hint,36006:(gl,value)=>{const target=isWebGL2(gl)?36009:36160;return gl.bindFramebuffer(target,value)},2886:(gl,value)=>gl.frontFace(value),33170:hint,2849:(gl,value)=>gl.lineWidth(value),32823:enable,32824:"polygonOffset",10752:"polygonOffset",35977:enable,32938:"sampleCoverage",32939:"sampleCoverage",3089:enable,3088:(gl,value)=>gl.scissor(...value),2960:enable,2961:(gl,value)=>gl.clearStencil(value),2968:(gl,value)=>gl.stencilMaskSeparate(1028,value),36005:(gl,value)=>gl.stencilMaskSeparate(1029,value),2962:"stencilFuncFront",2967:"stencilFuncFront",2963:"stencilFuncFront",34816:"stencilFuncBack",36003:"stencilFuncBack",36004:"stencilFuncBack",2964:"stencilOpFront",2965:"stencilOpFront",2966:"stencilOpFront",34817:"stencilOpBack",34818:"stencilOpBack",34819:"stencilOpBack",2978:(gl,value)=>gl.viewport(...value),3333:pixelStorei,3317:pixelStorei,37440:pixelStorei,37441:pixelStorei,37443:pixelStorei,3330:pixelStorei,3332:pixelStorei,3331:pixelStorei,36010:(gl,value)=>gl.bindFramebuffer(36008,value),3314:pixelStorei,32878:pixelStorei,3316:pixelStorei,3315:pixelStorei,32877:pixelStorei,framebuffer:(gl,framebuffer)=>{const handle=framebuffer&&"handle"in framebuffer?framebuffer.handle:framebuffer;return gl.bindFramebuffer(36160,handle)},blend:(gl,value)=>value?gl.enable(3042):gl.disable(3042),blendColor:(gl,value)=>gl.blendColor(...value),blendEquation:(gl,args)=>{args=isArray(args)?args:[args,args],gl.blendEquationSeparate(...args)},blendFunc:(gl,args)=>{args=isArray(args)&&2===args.length?[...args,...args]:args,gl.blendFuncSeparate(...args)},clearColor:(gl,value)=>gl.clearColor(...value),clearDepth:(gl,value)=>gl.clearDepth(value),clearStencil:(gl,value)=>gl.clearStencil(value),colorMask:(gl,value)=>gl.colorMask(...value),cull:(gl,value)=>value?gl.enable(2884):gl.disable(2884),cullFace:(gl,value)=>gl.cullFace(value),depthTest:(gl,value)=>value?gl.enable(2929):gl.disable(2929),depthFunc:(gl,value)=>gl.depthFunc(value),depthMask:(gl,value)=>gl.depthMask(value),depthRange:(gl,value)=>gl.depthRange(...value),dither:(gl,value)=>value?gl.enable(3024):gl.disable(3024),derivativeHint:(gl,value)=>{gl.hint(35723,value)},frontFace:(gl,value)=>gl.frontFace(value),mipmapHint:(gl,value)=>gl.hint(33170,value),lineWidth:(gl,value)=>gl.lineWidth(value),polygonOffsetFill:(gl,value)=>value?gl.enable(32823):gl.disable(32823),polygonOffset:(gl,value)=>gl.polygonOffset(...value),sampleCoverage:(gl,value)=>gl.sampleCoverage(...value),scissorTest:(gl,value)=>value?gl.enable(3089):gl.disable(3089),scissor:(gl,value)=>gl.scissor(...value),stencilTest:(gl,value)=>value?gl.enable(2960):gl.disable(2960),stencilMask:(gl,value)=>{value=isArray(value)?value:[value,value];const[mask,backMask]=value;gl.stencilMaskSeparate(1028,mask),gl.stencilMaskSeparate(1029,backMask)},stencilFunc:(gl,args)=>{args=isArray(args)&&3===args.length?[...args,...args]:args;const[func,ref,mask,backFunc,backRef,backMask]=args;gl.stencilFuncSeparate(1028,func,ref,mask),gl.stencilFuncSeparate(1029,backFunc,backRef,backMask)},stencilOp:(gl,args)=>{args=isArray(args)&&3===args.length?[...args,...args]:args;const[sfail,dpfail,dppass,backSfail,backDpfail,backDppass]=args;gl.stencilOpSeparate(1028,sfail,dpfail,dppass),gl.stencilOpSeparate(1029,backSfail,backDpfail,backDppass)},viewport:(gl,value)=>gl.viewport(...value)};function getValue(glEnum,values,cache){return void 0!==values[glEnum]?values[glEnum]:cache[glEnum]}const GL_COMPOSITE_PARAMETER_SETTERS={blendEquation:(gl,values,cache)=>gl.blendEquationSeparate(getValue(32777,values,cache),getValue(34877,values,cache)),blendFunc:(gl,values,cache)=>gl.blendFuncSeparate(getValue(32969,values,cache),getValue(32968,values,cache),getValue(32971,values,cache),getValue(32970,values,cache)),polygonOffset:(gl,values,cache)=>gl.polygonOffset(getValue(32824,values,cache),getValue(10752,values,cache)),sampleCoverage:(gl,values,cache)=>gl.sampleCoverage(getValue(32938,values,cache),getValue(32939,values,cache)),stencilFuncFront:(gl,values,cache)=>gl.stencilFuncSeparate(1028,getValue(2962,values,cache),getValue(2967,values,cache),getValue(2963,values,cache)),stencilFuncBack:(gl,values,cache)=>gl.stencilFuncSeparate(1029,getValue(34816,values,cache),getValue(36003,values,cache),getValue(36004,values,cache)),stencilOpFront:(gl,values,cache)=>gl.stencilOpSeparate(1028,getValue(2964,values,cache),getValue(2965,values,cache),getValue(2966,values,cache)),stencilOpBack:(gl,values,cache)=>gl.stencilOpSeparate(1029,getValue(34817,values,cache),getValue(34818,values,cache),getValue(34819,values,cache))},GL_HOOKED_SETTERS={enable:(update,capability)=>update({[capability]:!0}),disable:(update,capability)=>update({[capability]:!1}),pixelStorei:(update,pname,value)=>update({[pname]:value}),hint:(update,pname,hint)=>update({[pname]:hint}),bindFramebuffer:(update,target,framebuffer)=>{switch(target){case 36160:return update({36006:framebuffer,36010:framebuffer});case 36009:return update({36006:framebuffer});case 36008:return update({36010:framebuffer});default:return null}},blendColor:(update,r,g,b,a)=>update({32773:new Float32Array([r,g,b,a])}),blendEquation:(update,mode)=>update({32777:mode,34877:mode}),blendEquationSeparate:(update,modeRGB,modeAlpha)=>update({32777:modeRGB,34877:modeAlpha}),blendFunc:(update,src,dst)=>update({32969:src,32968:dst,32971:src,32970:dst}),blendFuncSeparate:(update,srcRGB,dstRGB,srcAlpha,dstAlpha)=>update({32969:srcRGB,32968:dstRGB,32971:srcAlpha,32970:dstAlpha}),clearColor:(update,r,g,b,a)=>update({3106:new Float32Array([r,g,b,a])}),clearDepth:(update,depth)=>update({2931:depth}),clearStencil:(update,s)=>update({2961:s}),colorMask:(update,r,g,b,a)=>update({3107:[r,g,b,a]}),cullFace:(update,mode)=>update({2885:mode}),depthFunc:(update,func)=>update({2932:func}),depthRange:(update,zNear,zFar)=>update({2928:new Float32Array([zNear,zFar])}),depthMask:(update,mask)=>update({2930:mask}),frontFace:(update,face)=>update({2886:face}),lineWidth:(update,width)=>update({2849:width}),polygonOffset:(update,factor,units)=>update({32824:factor,10752:units}),sampleCoverage:(update,value,invert)=>update({32938:value,32939:invert}),scissor:(update,x,y,width,height)=>update({3088:new Int32Array([x,y,width,height])}),stencilMask:(update,mask)=>update({2968:mask,36005:mask}),stencilMaskSeparate:(update,face,mask)=>update({[1028===face?2968:36005]:mask}),stencilFunc:(update,func,ref,mask)=>update({2962:func,2967:ref,2963:mask,34816:func,36003:ref,36004:mask}),stencilFuncSeparate:(update,face,func,ref,mask)=>update({[1028===face?2962:34816]:func,[1028===face?2967:36003]:ref,[1028===face?2963:36004]:mask}),stencilOp:(update,fail,zfail,zpass)=>update({2964:fail,2965:zfail,2966:zpass,34817:fail,34818:zfail,34819:zpass}),stencilOpSeparate:(update,face,fail,zfail,zpass)=>update({[1028===face?2964:34817]:fail,[1028===face?2965:34818]:zfail,[1028===face?2966:34819]:zpass}),viewport:(update,x,y,width,height)=>update({2978:[x,y,width,height]})},isEnabled=(gl,key)=>gl.isEnabled(key),GL_PARAMETER_GETTERS={3042:isEnabled,2884:isEnabled,2929:isEnabled,3024:isEnabled,32823:isEnabled,32926:isEnabled,32928:isEnabled,3089:isEnabled,2960:isEnabled,35977:isEnabled};function isObjectEmpty(object){for(const key in object)return!1;return!0}function deepArrayEqual(x,y){if(x===y)return!0;const isArrayX=Array.isArray(x)||ArrayBuffer.isView(x),isArrayY=Array.isArray(y)||ArrayBuffer.isView(y);if(isArrayX&&isArrayY&&x.length===y.length){for(let i=0;i{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=gl,this.program=null,this.stateStack=[],this.enable=!0,this.cache=copyState?getParameters(gl):Object.assign({},GL_PARAMETER_DEFAULTS),this.log=log,this._updateCache=this._updateCache.bind(this),Object.seal(this)}push(){this.stateStack.push({})}pop(){assert(this.stateStack.length>0);const oldValues=this.stateStack[this.stateStack.length-1];setParameters(this.gl,oldValues),this.stateStack.pop()}_updateCache(values){let oldValue,valueChanged=!1;const oldValues=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(const key in values){assert(void 0!==key);const value=values[key],cached=this.cache[key];deepArrayEqual(value,cached)||(valueChanged=!0,oldValue=cached,oldValues&&!(key in oldValues)&&(oldValues[key]=cached),this.cache[key]=value)}return{valueChanged:valueChanged,oldValue:oldValue}}}function trackContextState(gl){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{enable:enable=!0,copyState:copyState}=options;if(assert(void 0!==copyState),!gl.state){const{polyfillContext:polyfillContext}=globalThis;polyfillContext&&polyfillContext(gl),gl.state=new GLState(gl,{copyState:copyState}),function installProgramSpy(gl){const originalUseProgram=gl.useProgram.bind(gl);gl.useProgram=function useProgramLuma(handle){gl.state.program!==handle&&(originalUseProgram(handle),gl.state.program=handle)}}(gl);for(const key in GL_HOOKED_SETTERS){installSetterSpy(gl,key,GL_HOOKED_SETTERS[key])}installGetterOverride(gl,"getParameter"),installGetterOverride(gl,"isEnabled")}return gl.state.enable=enable,gl}function popContextState(gl){assert(gl.state),gl.state.pop()}function setParameters(gl,values){if(assert(isWebGL(gl),"setParameters requires a WebGL context"),isObjectEmpty(values))return;const compositeSetters={};for(const key in values){const glConstant=Number(key),setter=GL_PARAMETER_SETTERS[key];setter&&("string"==typeof setter?compositeSetters[setter]=!0:setter(gl,values[key],glConstant))}const cache=gl.state&&gl.state.cache;if(cache)for(const key in compositeSetters){(0,GL_COMPOSITE_PARAMETER_SETTERS[key])(gl,values,cache)}}function getParameters(gl,parameters){if("number"==typeof(parameters=parameters||GL_PARAMETER_DEFAULTS)){const key=parameters,getter=GL_PARAMETER_GETTERS[key];return getter?getter(gl,key):gl.getParameter(key)}const parameterKeys=Array.isArray(parameters)?parameters:Object.keys(parameters),state={};for(const key of parameterKeys){const getter=GL_PARAMETER_GETTERS[key];state[key]=getter?getter(gl,Number(key)):gl.getParameter(Number(key))}return state}function resetParameters(gl){setParameters(gl,GL_PARAMETER_DEFAULTS)}function withParameters(gl,parameters,func){if(isObjectEmpty(parameters))return func(gl);const{nocatch:nocatch=!0}=parameters;let value;if(function pushContextState(gl){gl.state||trackContextState(gl,{copyState:!1}),gl.state.push()}(gl),setParameters(gl,parameters),nocatch)value=func(gl),popContextState(gl);else try{value=func(gl)}finally{popContextState(gl)}return value}function cssToDeviceRatio(gl){const{luma:luma}=gl;if(gl.canvas&&luma){const cachedSize=luma.canvasSizeInfo,clientWidth="clientWidth"in cachedSize?cachedSize.clientWidth:gl.canvas.clientWidth;return clientWidth?gl.drawingBufferWidth/clientWidth:1}return 1}function cssToDevicePixels(gl,cssPixel){let yInvert=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function scalePixels(pixel,ratio,width,height,yInvert){const x=scaleX(pixel[0],ratio,width);let y=scaleY(pixel[1],ratio,height,yInvert),t=scaleX(pixel[0]+1,ratio,width);const xHigh=t===width-1?t:t-1;let yHigh;t=scaleY(pixel[1]+1,ratio,height,yInvert),yInvert?(t=0===t?t:t+1,yHigh=y,y=t):yHigh=t===height-1?t:t-1;return{x:x,y:y,width:Math.max(xHigh-x+1,1),height:Math.max(yHigh-y+1,1)}}(cssPixel,cssToDeviceRatio(gl),gl.drawingBufferWidth,gl.drawingBufferHeight,yInvert)}function scaleX(x,ratio,width){return Math.min(Math.round(x*ratio),width-1)}function scaleY(y,ratio,height,yInvert){return yInvert?Math.max(0,height-1-Math.round(y*ratio)):Math.min(Math.round(y*ratio),height-1)}const isBrowser=(0,__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js").Z)(),isPage=isBrowser&&"undefined"!=typeof document,CONTEXT_DEFAULTS={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function createGLContext(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};assert(isBrowser,"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"),options=Object.assign({},CONTEXT_DEFAULTS,options);const{width:width,height:height}=options;function onError(message){if(options.throwOnError)throw new Error(message);return console.error(message),null}let gl;options.onError=onError;const{canvas:canvas}=options,targetCanvas=function getCanvas(_ref){let targetCanvas,{canvas:canvas,width:width=800,height:height=600,onError:onError}=_ref;if("string"==typeof canvas){isPage&&"complete"===document.readyState||onError("createGLContext called on canvas '".concat(canvas,"' before page was loaded")),targetCanvas=document.getElementById(canvas)}else canvas?targetCanvas=canvas:(targetCanvas=document.createElement("canvas"),targetCanvas.id="lumagl-canvas",targetCanvas.style.width=Number.isFinite(width)?"".concat(width,"px"):"100%",targetCanvas.style.height=Number.isFinite(height)?"".concat(height,"px"):"100%",document.body.insertBefore(targetCanvas,document.body.firstChild));return targetCanvas}({canvas:canvas,width:width,height:height,onError:onError});return gl=function createBrowserContext(canvas,options){const{onError:onError}=options;let errorMessage=null;const onCreateError=error=>errorMessage=error.statusMessage||errorMessage;canvas.addEventListener("webglcontextcreationerror",onCreateError,!1);const{webgl1:webgl1=!0,webgl2:webgl2=!0}=options;let gl=null;webgl2&&(gl=gl||canvas.getContext("webgl2",options),gl=gl||canvas.getContext("experimental-webgl2",options));webgl1&&(gl=gl||canvas.getContext("webgl",options),gl=gl||canvas.getContext("experimental-webgl",options));if(canvas.removeEventListener("webglcontextcreationerror",onCreateError,!1),!gl)return onError("Failed to create ".concat(webgl2&&!webgl1?"WebGL2":"WebGL"," context: ").concat(errorMessage||"Unknown error"));options.onContextLost&&canvas.addEventListener("webglcontextlost",options.onContextLost,!1);options.onContextRestored&&canvas.addEventListener("webglcontextrestored",options.onContextRestored,!1);return gl}(targetCanvas,options),gl?(gl=instrumentGLContext(gl,options),function logInfo(gl){const webGL=isWebGL2(gl)?"WebGL2":"WebGL1",info=function getContextDebugInfo(gl){const vendorMasked=gl.getParameter(7936),rendererMasked=gl.getParameter(7937),ext=gl.getExtension("WEBGL_debug_renderer_info"),vendorUnmasked=ext&&gl.getParameter(ext.UNMASKED_VENDOR_WEBGL||7936),rendererUnmasked=ext&&gl.getParameter(ext.UNMASKED_RENDERER_WEBGL||7937);return{vendor:vendorUnmasked||vendorMasked,renderer:rendererUnmasked||rendererMasked,vendorMasked:vendorMasked,rendererMasked:rendererMasked,version:gl.getParameter(7938),shadingLanguageVersion:gl.getParameter(35724)}}(gl),driver=info?"(".concat(info.vendor,",").concat(info.renderer,")"):"",debug=gl.debug?" debug":"";log_log.info(1,"".concat(webGL).concat(debug," context ").concat(driver))()}(gl),gl):null}function instrumentGLContext(gl){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!gl||gl._instrumented)return gl;gl._version=gl._version||function getVersion(gl){if("undefined"!=typeof WebGL2RenderingContext&&gl instanceof WebGL2RenderingContext)return 2;return 1}(gl),gl.luma=gl.luma||{},gl.luma.canvasSizeInfo=gl.luma.canvasSizeInfo||{},options=Object.assign({},CONTEXT_DEFAULTS,options);const{manageState:manageState,debug:debug}=options;return manageState&&trackContextState(gl,{copyState:!1,log:function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return log_log.log(1,...args)()}}),isBrowser&&debug&&(globalThis.makeDebugContext?(gl=globalThis.makeDebugContext(gl,options),log_log.level=Math.max(log_log.level,1)):log_log.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),gl._instrumented=!0,gl}function resizeGLContext(gl){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(gl.canvas){return void function setDevicePixelRatio(gl,devicePixelRatio,options){let clientWidth="width"in options?options.width:gl.canvas.clientWidth,clientHeight="height"in options?options.height:gl.canvas.clientHeight;clientWidth&&clientHeight||(log_log.log(1,"Canvas clientWidth/clientHeight is 0")(),devicePixelRatio=1,clientWidth=gl.canvas.width||1,clientHeight=gl.canvas.height||1);gl.luma=gl.luma||{},gl.luma.canvasSizeInfo=gl.luma.canvasSizeInfo||{};const cachedSize=gl.luma.canvasSizeInfo;if(cachedSize.clientWidth!==clientWidth||cachedSize.clientHeight!==clientHeight||cachedSize.devicePixelRatio!==devicePixelRatio){let clampedPixelRatio=devicePixelRatio;const canvasWidth=Math.floor(clientWidth*clampedPixelRatio),canvasHeight=Math.floor(clientHeight*clampedPixelRatio);gl.canvas.width=canvasWidth,gl.canvas.height=canvasHeight,gl.drawingBufferWidth===canvasWidth&&gl.drawingBufferHeight===canvasHeight||(log_log.warn("Device pixel ratio clamped")(),clampedPixelRatio=Math.min(gl.drawingBufferWidth/clientWidth,gl.drawingBufferHeight/clientHeight),gl.canvas.width=Math.floor(clientWidth*clampedPixelRatio),gl.canvas.height=Math.floor(clientHeight*clampedPixelRatio)),Object.assign(gl.luma.canvasSizeInfo,{clientWidth:clientWidth,clientHeight:clientHeight,devicePixelRatio:devicePixelRatio})}}(gl,function getDevicePixelRatio(useDevicePixels){const windowRatio="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(useDevicePixels)?useDevicePixels<=0?1:useDevicePixels:useDevicePixels?windowRatio:1}(options.useDevicePixels),options)}const ext=gl.getExtension("STACKGL_resize_drawingbuffer");ext&&"width"in options&&"height"in options&&ext.resize(options.width,options.height)}},"./node_modules/@luma.gl/shadertools/dist/esm/lib/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return VERTEX_SHADER},Y:function(){return FRAGMENT_SHADER}});const VERTEX_SHADER="vs",FRAGMENT_SHADER="fs"},"./node_modules/@luma.gl/shadertools/dist/esm/lib/inject-shader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O_:function(){return DECLARATION_INJECT_MARKER},Lm:function(){return combineInjects},ZP:function(){return injectShader}});var constants=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/constants.js"),assert=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/utils/assert.js");const MODULE_INJECTORS={[constants.H]:"#ifdef MODULE_LOGDEPTH\n logdepth_adjustPosition(gl_Position);\n#endif\n",[constants.Y]:"#ifdef MODULE_MATERIAL\n gl_FragColor = material_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LIGHTING\n gl_FragColor = lighting_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_FOG\n gl_FragColor = fog_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_PICKING\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LOGDEPTH\n logdepth_setFragDepth();\n#endif\n"},DECLARATION_INJECT_MARKER="__LUMA_INJECT_DECLARATIONS__",REGEX_START_OF_MAIN=/void\s+main\s*\([^)]*\)\s*\{\n?/,REGEX_END_OF_MAIN=/}\n?[^{}]*$/,fragments=[];function injectShader(source,type,inject){let injectStandardStubs=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const isVertex=type===constants.H;for(const key in inject){const fragmentData=inject[key];fragmentData.sort(((a,b)=>a.order-b.order)),fragments.length=fragmentData.length;for(let i=0,len=fragmentData.length;imatch+fragmentString)));break;case"vs:#main-end":isVertex&&(source=source.replace(REGEX_END_OF_MAIN,(match=>fragmentString+match)));break;case"fs:#decl":isVertex||(source=source.replace(DECLARATION_INJECT_MARKER,fragmentString));break;case"fs:#main-start":isVertex||(source=source.replace(REGEX_START_OF_MAIN,(match=>match+fragmentString)));break;case"fs:#main-end":isVertex||(source=source.replace(REGEX_END_OF_MAIN,(match=>fragmentString+match)));break;default:source=source.replace(key,(match=>match+fragmentString))}}return source=source.replace(DECLARATION_INJECT_MARKER,""),injectStandardStubs&&(source=source.replace(/\}\s*$/,(match=>match+MODULE_INJECTORS[type]))),source}function combineInjects(injects){const result={};return(0,assert.Z)(Array.isArray(injects)&&injects.length>1),injects.forEach((inject=>{for(const key in inject)result[key]=result[key]?"".concat(result[key],"\n").concat(inject[key]):inject[key]})),result}},"./node_modules/@luma.gl/shadertools/dist/esm/lib/shader-module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ShaderModule},v:function(){return normalizeShaderModule}});var assert=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/utils/assert.js");const TYPE_DEFINITIONS={number:{validate(value,propType){return Number.isFinite(value)&&(!("max"in propType)||value<=propType.max)&&(!("min"in propType)||value>=propType.min)}},array:{validate(value,propType){return Array.isArray(value)||ArrayBuffer.isView(value)}}};function parsePropType(propDef){let type=getTypeOf(propDef);return"object"===type?propDef?"type"in propDef?Object.assign({},propDef,TYPE_DEFINITIONS[propDef.type]):"value"in propDef?(type=getTypeOf(propDef.value),Object.assign({type:type},propDef,TYPE_DEFINITIONS[type])):{type:"object",value:propDef}:{type:"object",value:null}:Object.assign({type:type,value:propDef},TYPE_DEFINITIONS[type])}function getTypeOf(value){return Array.isArray(value)||ArrayBuffer.isView(value)?"array":typeof value}class ShaderModule{constructor(_ref){let{name:name,vs:vs,fs:fs,dependencies:dependencies=[],uniforms:uniforms,getUniforms:getUniforms,deprecations:deprecations=[],defines:defines={},inject:inject={},vertexShader:vertexShader,fragmentShader:fragmentShader}=_ref;(0,assert.Z)("string"==typeof name),this.name=name,this.vs=vs||vertexShader,this.fs=fs||fragmentShader,this.getModuleUniforms=getUniforms,this.dependencies=dependencies,this.deprecations=this._parseDeprecationDefinitions(deprecations),this.defines=defines,this.injections=function normalizeInjections(injections){const result={vs:{},fs:{}};for(const hook in injections){let injection=injections[hook];"string"==typeof injection&&(injection={order:0,injection:injection}),result[hook.slice(0,2)][hook]=injection}return result}(inject),uniforms&&(this.uniforms=function parsePropTypes(propDefs){const propTypes={};for(const propName in propDefs){const propType=parsePropType(propDefs[propName]);propTypes[propName]=propType}return propTypes}(uniforms))}getModuleSource(type){let moduleSource;switch(type){case"vs":moduleSource=this.vs||"";break;case"fs":moduleSource=this.fs||"";break;default:(0,assert.Z)(!1)}return"#define MODULE_".concat(this.name.toUpperCase().replace(/[^0-9a-z]/gi,"_"),"\n").concat(moduleSource,"// END MODULE_").concat(this.name,"\n\n")}getUniforms(opts,uniforms){return this.getModuleUniforms?this.getModuleUniforms(opts,uniforms):this.uniforms?this._defaultGetUniforms(opts):{}}getDefines(){return this.defines}checkDeprecations(shaderSource,log){this.deprecations.forEach((def=>{def.regex.test(shaderSource)&&(def.deprecated?log.deprecated(def.old,def.new)():log.removed(def.old,def.new)())}))}_parseDeprecationDefinitions(deprecations){return deprecations.forEach((def=>{if("function"===def.type)def.regex=new RegExp("\\b".concat(def.old,"\\("));else def.regex=new RegExp("".concat(def.type," ").concat(def.old,";"))})),deprecations}_defaultGetUniforms(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const uniforms={},propTypes=this.uniforms;for(const key in propTypes){const propDef=propTypes[key];key in opts&&!propDef.private?(propDef.validate&&(0,assert.Z)(propDef.validate(opts[key],propDef),"".concat(this.name,": invalid ").concat(key)),uniforms[key]=opts[key]):uniforms[key]=propDef.value}return uniforms}}function normalizeShaderModule(module){if(!module.normalized&&(module.normalized=!0,module.uniforms&&!module.getUniforms)){const shaderModule=new ShaderModule(module);module.getUniforms=shaderModule.getUniforms.bind(shaderModule)}return module}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/fp32/fp32.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return fp32}});const fp32={name:"fp32",vs:"#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\nconst float TWO_PI = 6.2831854820251465;\nconst float PI_2 = 1.5707963705062866;\nconst float PI_16 = 0.1963495463132858;\n\nconst float SIN_TABLE_0 = 0.19509032368659973;\nconst float SIN_TABLE_1 = 0.3826834261417389;\nconst float SIN_TABLE_2 = 0.5555702447891235;\nconst float SIN_TABLE_3 = 0.7071067690849304;\n\nconst float COS_TABLE_0 = 0.9807852506637573;\nconst float COS_TABLE_1 = 0.9238795042037964;\nconst float COS_TABLE_2 = 0.8314695954322815;\nconst float COS_TABLE_3 = 0.7071067690849304;\n\nconst float INVERSE_FACTORIAL_3 = 1.666666716337204e-01;\nconst float INVERSE_FACTORIAL_5 = 8.333333767950535e-03;\nconst float INVERSE_FACTORIAL_7 = 1.9841270113829523e-04;\nconst float INVERSE_FACTORIAL_9 = 2.75573188446287533e-06;\n\nfloat sin_taylor_fp32(float a) {\n float r, s, t, x;\n\n if (a == 0.0) {\n return 0.0;\n }\n\n x = -a * a;\n s = a;\n r = a;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_3;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_5;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_7;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_9;\n s = s + t;\n\n return s;\n}\n\nvoid sincos_taylor_fp32(float a, out float sin_t, out float cos_t) {\n if (a == 0.0) {\n sin_t = 0.0;\n cos_t = 1.0;\n }\n sin_t = sin_taylor_fp32(a);\n cos_t = sqrt(1.0 - sin_t * sin_t);\n}\n\nfloat tan_taylor_fp32(float a) {\n float sin_a;\n float cos_a;\n\n if (a == 0.0) {\n return 0.0;\n }\n float z = floor(a / TWO_PI);\n float r = a - TWO_PI * z;\n\n float t;\n float q = floor(r / PI_2 + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return 1.0 / 0.0;\n }\n\n t = r - PI_2 * q;\n\n q = floor(t / PI_16 + 0.5);\n int k = int(q);\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return 1.0 / 0.0;\n } else {\n t = t - PI_16 * q;\n }\n\n float u = 0.0;\n float v = 0.0;\n\n float sin_t, cos_t;\n float s, c;\n sincos_taylor_fp32(t, sin_t, cos_t);\n\n if (k == 0) {\n s = sin_t;\n c = cos_t;\n } else {\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0;\n v = SIN_TABLE_0;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1;\n v = SIN_TABLE_1;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2;\n v = SIN_TABLE_2;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3;\n v = SIN_TABLE_3;\n }\n if (k > 0) {\n s = u * sin_t + v * cos_t;\n c = u * cos_t - v * sin_t;\n } else {\n s = u * sin_t - v * cos_t;\n c = u * cos_t + v * sin_t;\n }\n }\n\n if (j == 0) {\n sin_a = s;\n cos_a = c;\n } else if (j == 1) {\n sin_a = c;\n cos_a = -s;\n } else if (j == -1) {\n sin_a = -c;\n cos_a = s;\n } else {\n sin_a = -s;\n cos_a = -c;\n }\n return sin_a / cos_a;\n}\n#endif\n\nfloat tan_fp32(float a) {\n#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\n return tan_taylor_fp32(a);\n#else\n return tan(a);\n#endif\n}\n",fs:null}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/picking/picking.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return picking}});const DEFAULT_MODULE_OPTIONS={pickingSelectedColor:null,pickingHighlightColor:new Uint8Array([0,255,255,255]),pickingActive:!1,pickingAttribute:!1};const picking={name:"picking",vs:"uniform bool picking_uActive;\nuniform bool picking_uAttribute;\nuniform vec3 picking_uSelectedColor;\nuniform bool picking_uSelectedColorValid;\n\nout vec4 picking_vRGBcolor_Avalid;\n\nconst float COLOR_SCALE = 1. / 255.;\n\nbool picking_isColorValid(vec3 color) {\n return dot(color, vec3(1.0)) > 0.001;\n}\n\nbool isVertexPicked(vec3 vertexColor) {\n return\n picking_uSelectedColorValid &&\n !picking_isColorValid(abs(vertexColor - picking_uSelectedColor));\n}\n\nvoid picking_setPickingColor(vec3 pickingColor) {\n if (picking_uActive) {\n picking_vRGBcolor_Avalid.a = float(picking_isColorValid(pickingColor));\n\n if (!picking_uAttribute) {\n picking_vRGBcolor_Avalid.rgb = pickingColor * COLOR_SCALE;\n }\n } else {\n picking_vRGBcolor_Avalid.a = float(isVertexPicked(pickingColor));\n }\n}\n\nvoid picking_setPickingAttribute(float value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.r = value;\n }\n}\nvoid picking_setPickingAttribute(vec2 value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.rg = value;\n }\n}\nvoid picking_setPickingAttribute(vec3 value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.rgb = value;\n }\n}\n",fs:"uniform bool picking_uActive;\nuniform vec3 picking_uSelectedColor;\nuniform vec4 picking_uHighlightColor;\n\nin vec4 picking_vRGBcolor_Avalid;\nvec4 picking_filterHighlightColor(vec4 color) {\n if (picking_uActive) {\n return color;\n }\n bool selected = bool(picking_vRGBcolor_Avalid.a);\n\n if (selected) {\n float highLightAlpha = picking_uHighlightColor.a;\n float blendedAlpha = highLightAlpha + color.a * (1.0 - highLightAlpha);\n float highLightRatio = highLightAlpha / blendedAlpha;\n\n vec3 blendedRGB = mix(color.rgb, picking_uHighlightColor.rgb, highLightRatio);\n return vec4(blendedRGB, blendedAlpha);\n } else {\n return color;\n }\n}\nvec4 picking_filterPickingColor(vec4 color) {\n if (picking_uActive) {\n if (picking_vRGBcolor_Avalid.a == 0.0) {\n discard;\n }\n return picking_vRGBcolor_Avalid;\n }\n return color;\n}\nvec4 picking_filterColor(vec4 color) {\n vec4 highightColor = picking_filterHighlightColor(color);\n return picking_filterPickingColor(highightColor);\n}\n\n",getUniforms:function getUniforms(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DEFAULT_MODULE_OPTIONS;const uniforms={};if(void 0!==opts.pickingSelectedColor)if(opts.pickingSelectedColor){const selectedColor=opts.pickingSelectedColor.slice(0,3);uniforms.picking_uSelectedColorValid=1,uniforms.picking_uSelectedColor=selectedColor}else uniforms.picking_uSelectedColorValid=0;if(opts.pickingHighlightColor){const color=Array.from(opts.pickingHighlightColor,(x=>x/255));Number.isFinite(color[3])||(color[3]=1),uniforms.picking_uHighlightColor=color}return void 0!==opts.pickingActive&&(uniforms.picking_uActive=Boolean(opts.pickingActive),uniforms.picking_uAttribute=Boolean(opts.pickingAttribute)),uniforms}}},"./node_modules/@luma.gl/shadertools/dist/esm/utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"shadertools: assertion failed.")}__webpack_require__.d(__webpack_exports__,{Z:function(){return assert}})},"./node_modules/@luma.gl/webgl/dist/esm/classes/accessor.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Accessor}});var _webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/typed-array-utils.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),_utils_check_props__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/check-props.js");const DEFAULT_ACCESSOR_VALUES={offset:0,stride:0,type:5126,size:1,divisor:0,normalized:!1,integer:!1},PROP_CHECKS={deprecatedProps:{instanced:"divisor",isInstanced:"divisor"}};class Accessor{static getBytesPerElement(accessor){return(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_0__.vN)(accessor.type||5126).BYTES_PER_ELEMENT}static getBytesPerVertex(accessor){(0,_utils_assert__WEBPACK_IMPORTED_MODULE_1__.h)(accessor.size);return(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_0__.vN)(accessor.type||5126).BYTES_PER_ELEMENT*accessor.size}static resolve(){for(var _len=arguments.length,accessors=new Array(_len),_key=0;_key<_len;_key++)accessors[_key]=arguments[_key];return new Accessor(...[DEFAULT_ACCESSOR_VALUES,...accessors])}constructor(){for(var _len2=arguments.length,accessors=new Array(_len2),_key2=0;_key2<_len2;_key2++)accessors[_key2]=arguments[_key2];accessors.forEach((accessor=>this._assign(accessor))),Object.freeze(this)}toString(){return JSON.stringify(this)}get BYTES_PER_ELEMENT(){return Accessor.getBytesPerElement(this)}get BYTES_PER_VERTEX(){return Accessor.getBytesPerVertex(this)}_assign(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return props=(0,_utils_check_props__WEBPACK_IMPORTED_MODULE_2__.k)("Accessor",props,PROP_CHECKS),void 0!==props.type&&(this.type=props.type,5124!==props.type&&5125!==props.type||(this.integer=!0)),void 0!==props.size&&(this.size=props.size),void 0!==props.offset&&(this.offset=props.offset),void 0!==props.stride&&(this.stride=props.stride),void 0!==props.normalized&&(this.normalized=props.normalized),void 0!==props.integer&&(this.integer=props.integer),void 0!==props.divisor&&(this.divisor=props.divisor),void 0!==props.buffer&&(this.buffer=props.buffer),void 0!==props.index&&("boolean"==typeof props.index?this.index=props.index?1:0:this.index=props.index),void 0!==props.instanced&&(this.divisor=props.instanced?1:0),void 0!==props.isInstanced&&(this.divisor=props.isInstanced?1:0),this}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Buffer}});var _resource__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),_accessor__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/accessor.js"),_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/typed-array-utils.js"),_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),_utils_check_props__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/check-props.js");const DEPRECATED_PROPS={offset:"accessor.offset",stride:"accessor.stride",type:"accessor.type",size:"accessor.size",divisor:"accessor.divisor",normalized:"accessor.normalized",integer:"accessor.integer",instanced:"accessor.divisor",isInstanced:"accessor.divisor"},PROP_CHECKS_INITIALIZE={removedProps:{},replacedProps:{bytes:"byteLength"},deprecatedProps:DEPRECATED_PROPS},PROP_CHECKS_SET_PROPS={removedProps:DEPRECATED_PROPS};class Buffer extends _resource__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"Buffer"}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(gl,props),this.stubRemovedMethods("Buffer","v6.0",["layout","setLayout","getIndexedParameter"]),this.target=props.target||(this.gl.webgl2?36662:34962),this.initialize(props),Object.seal(this)}getElementCount(){let accessor=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/_accessor__WEBPACK_IMPORTED_MODULE_2__.Z.getBytesPerElement(accessor))}getVertexCount(){let accessor=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/_accessor__WEBPACK_IMPORTED_MODULE_2__.Z.getBytesPerVertex(accessor))}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ArrayBuffer.isView(props)&&(props={data:props}),Number.isFinite(props)&&(props={byteLength:props}),props=(0,_utils_check_props__WEBPACK_IMPORTED_MODULE_3__.k)("Buffer",props,PROP_CHECKS_INITIALIZE),this.usage=props.usage||35044,this.debugData=null,this.setAccessor(Object.assign({},props,props.accessor)),props.data?this._setData(props.data,props.offset,props.byteLength):this._setByteLength(props.byteLength||0),this}setProps(props){return"accessor"in(props=(0,_utils_check_props__WEBPACK_IMPORTED_MODULE_3__.k)("Buffer",props,PROP_CHECKS_SET_PROPS))&&this.setAccessor(props.accessor),this}setAccessor(accessor){return delete(accessor=Object.assign({},accessor)).buffer,this.accessor=new _accessor__WEBPACK_IMPORTED_MODULE_2__.Z(accessor),this}reallocate(byteLength){return byteLength>this.byteLength?(this._setByteLength(byteLength),!0):(this.bytesUsed=byteLength,!1)}setData(props){return this.initialize(props)}subData(props){ArrayBuffer.isView(props)&&(props={data:props});const{data:data,offset:offset=0,srcOffset:srcOffset=0}=props,byteLength=props.byteLength||props.length;(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(data);const target=this.gl.webgl2?36663:this.target;return this.gl.bindBuffer(target,this.handle),0!==srcOffset||void 0!==byteLength?((0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl),this.gl.bufferSubData(this.target,offset,data,srcOffset,byteLength)):this.gl.bufferSubData(target,offset,data),this.gl.bindBuffer(target,null),this.debugData=null,this._inferType(data),this}copyData(_ref){let{sourceBuffer:sourceBuffer,readOffset:readOffset=0,writeOffset:writeOffset=0,size:size}=_ref;const{gl:gl}=this;return(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl),gl.bindBuffer(36662,sourceBuffer.handle),gl.bindBuffer(36663,this.handle),gl.copyBufferSubData(36662,36663,readOffset,writeOffset,size),gl.bindBuffer(36662,null),gl.bindBuffer(36663,null),this.debugData=null,this}getData(){let{dstData:dstData=null,srcByteOffset:srcByteOffset=0,dstOffset:dstOffset=0,length:length=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl);const ArrayType=(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_5__.vN)(this.accessor.type||5126,{clamped:!1}),sourceAvailableElementCount=this._getAvailableElementCount(srcByteOffset),dstElementOffset=dstOffset;let dstAvailableElementCount,dstElementCount;dstData?(dstElementCount=dstData.length,dstAvailableElementCount=dstElementCount-dstElementOffset):(dstAvailableElementCount=Math.min(sourceAvailableElementCount,length||sourceAvailableElementCount),dstElementCount=dstElementOffset+dstAvailableElementCount);const copyElementCount=Math.min(sourceAvailableElementCount,dstAvailableElementCount);return length=length||copyElementCount,(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(length<=copyElementCount),dstData=dstData||new ArrayType(dstElementCount),this.gl.bindBuffer(36662,this.handle),this.gl.getBufferSubData(36662,srcByteOffset,dstData,dstOffset,length),this.gl.bindBuffer(36662,null),dstData}bind(){let{target:target=this.target,index:index=this.accessor&&this.accessor.index,offset:offset=0,size:size}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 35345===target||35982===target?void 0!==size?this.gl.bindBufferRange(target,index,this.handle,offset,size):((0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(0===offset),this.gl.bindBufferBase(target,index,this.handle)):this.gl.bindBuffer(target,this.handle),this}unbind(){let{target:target=this.target,index:index=this.accessor&&this.accessor.index}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 35345===target||35982===target?this.gl.bindBufferBase(target,index,null):this.gl.bindBuffer(target,null),this}getDebugData(){return this.debugData?{data:this.debugData,changed:!1}:(this.debugData=this.getData({length:Math.min(10,this.byteLength)}),{data:this.debugData,changed:!0})}invalidateDebugData(){this.debugData=null}_setData(data){let offset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,byteLength=arguments.length>2&&void 0!==arguments[2]?arguments[2]:data.byteLength+offset;(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(ArrayBuffer.isView(data)),this._trackDeallocatedMemory();const target=this._getTarget();this.gl.bindBuffer(target,this.handle),this.gl.bufferData(target,byteLength,this.usage),this.gl.bufferSubData(target,offset,data),this.gl.bindBuffer(target,null),this.debugData=data.slice(0,10),this.bytesUsed=byteLength,this._trackAllocatedMemory(byteLength);const type=(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_5__.O)(data);return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(type),this.setAccessor(new _accessor__WEBPACK_IMPORTED_MODULE_2__.Z(this.accessor,{type:type})),this}_setByteLength(byteLength){let usage=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.usage;(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(byteLength>=0),this._trackDeallocatedMemory();let data=byteLength;0===byteLength&&(data=new Float32Array(0));const target=this._getTarget();return this.gl.bindBuffer(target,this.handle),this.gl.bufferData(target,data,usage),this.gl.bindBuffer(target,null),this.usage=usage,this.debugData=null,this.bytesUsed=byteLength,this._trackAllocatedMemory(byteLength),this}_getTarget(){return this.gl.webgl2?36663:this.target}_getAvailableElementCount(srcByteOffset){const sourceElementOffset=srcByteOffset/(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_5__.vN)(this.accessor.type||5126,{clamped:!1}).BYTES_PER_ELEMENT;return this.getElementCount()-sourceElementOffset}_inferType(data){this.accessor.type||this.setAccessor(new _accessor__WEBPACK_IMPORTED_MODULE_2__.Z(this.accessor,{type:(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_5__.O)(data)}))}_createHandle(){return this.gl.createBuffer()}_deleteHandle(){this.gl.deleteBuffer(this.handle),this._trackDeallocatedMemory()}_getParameter(pname){this.gl.bindBuffer(this.target,this.handle);const value=this.gl.getBufferParameter(this.target,pname);return this.gl.bindBuffer(this.target,null),value}get type(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("Buffer.type","Buffer.accessor.type")(),this.accessor.type}get bytes(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("Buffer.bytes","Buffer.byteLength")(),this.byteLength}setByteLength(byteLength){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("setByteLength","reallocate")(),this.reallocate(byteLength)}updateAccessor(opts){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("updateAccessor(...)","setAccessor(new Accessor(buffer.accessor, ...)")(),this.accessor=new _accessor__WEBPACK_IMPORTED_MODULE_2__.Z(this.accessor,opts),this}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/clear.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return clearBuffer},Z:function(){return clear}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const GL_DEPTH_BUFFER_BIT=256,GL_STENCIL_BUFFER_BIT=1024,GL_COLOR_BUFFER_BIT=16384,GL_COLOR=6144,GL_DEPTH=6145,GL_STENCIL=6146,GL_DEPTH_STENCIL=34041,ERR_ARGUMENTS="clear: bad arguments";function clear(gl){let{framebuffer:framebuffer=null,color:color=null,depth:depth=null,stencil:stencil=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const parameters={};framebuffer&&(parameters.framebuffer=framebuffer);let clearFlags=0;color&&(clearFlags|=GL_COLOR_BUFFER_BIT,!0!==color&&(parameters.clearColor=color)),depth&&(clearFlags|=GL_DEPTH_BUFFER_BIT,!0!==depth&&(parameters.clearDepth=depth)),stencil&&(clearFlags|=GL_STENCIL_BUFFER_BIT,!0!==depth&&(parameters.clearStencil=depth)),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_1__.h)(0!==clearFlags,ERR_ARGUMENTS),(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(gl,parameters,(()=>{gl.clear(clearFlags)}))}function clearBuffer(gl){let{framebuffer:framebuffer=null,buffer:buffer=GL_COLOR,drawBuffer:drawBuffer=0,value:value=[0,0,0,0]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl),(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(gl,{framebuffer:framebuffer},(()=>{switch(buffer){case GL_COLOR:switch(value.constructor){case Int32Array:gl.clearBufferiv(buffer,drawBuffer,value);break;case Uint32Array:gl.clearBufferuiv(buffer,drawBuffer,value);break;case Float32Array:default:gl.clearBufferfv(buffer,drawBuffer,value)}break;case GL_DEPTH:gl.clearBufferfv(GL_DEPTH,0,[value]);break;case GL_STENCIL:gl.clearBufferiv(GL_STENCIL,0,[value]);break;case GL_DEPTH_STENCIL:const[depth,stencil]=value;gl.clearBufferfi(GL_DEPTH_STENCIL,0,depth,stencil);break;default:(0,_utils_assert__WEBPACK_IMPORTED_MODULE_1__.h)(!1,ERR_ARGUMENTS)}}))}},"./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Km:function(){return copyToDataUrl},Lv:function(){return copyToTexture},z6:function(){return readPixelsToArray},Jb:function(){return readPixelsToBuffer}});var buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),classes_texture=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),typed_array_utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/typed-array-utils.js"),utils_assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");function glFormatToComponents(format){switch(format){case 6406:case 33326:case 6403:return 1;case 33328:case 33319:return 2;case 6407:case 34837:return 3;case 6408:case 34836:return 4;default:return(0,utils_assert.h)(!1),0}}var texture_utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/texture-utils.js");function readPixelsToArray(source){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{sourceX:sourceX=0,sourceY:sourceY=0,sourceFormat:sourceFormat=6408}=options;let{sourceAttachment:sourceAttachment=36064,target:target=null,sourceWidth:sourceWidth,sourceHeight:sourceHeight,sourceType:sourceType}=options;const{framebuffer:framebuffer,deleteFramebuffer:deleteFramebuffer}=getFramebuffer(source);(0,utils_assert.h)(framebuffer);const{gl:gl,handle:handle,attachments:attachments}=framebuffer;sourceWidth=sourceWidth||framebuffer.width,sourceHeight=sourceHeight||framebuffer.height,36064===sourceAttachment&&null===handle&&(sourceAttachment=1028),(0,utils_assert.h)(attachments[sourceAttachment]),sourceType=sourceType||attachments[sourceAttachment].type,target=function getPixelArray(pixelArray,type,format,width,height){if(pixelArray)return pixelArray;type=type||5121;const ArrayType=(0,typed_array_utils.vN)(type,{clamped:!1}),components=glFormatToComponents(format);return new ArrayType(width*height*components)}(target,sourceType,sourceFormat,sourceWidth,sourceHeight),sourceType=sourceType||(0,typed_array_utils.O)(target);const prevHandle=gl.bindFramebuffer(36160,handle);return gl.readPixels(sourceX,sourceY,sourceWidth,sourceHeight,sourceFormat,sourceType,target),gl.bindFramebuffer(36160,prevHandle||null),deleteFramebuffer&&framebuffer.delete(),target}function readPixelsToBuffer(source,_ref){let{sourceX:sourceX=0,sourceY:sourceY=0,sourceFormat:sourceFormat=6408,target:target=null,targetByteOffset:targetByteOffset=0,sourceWidth:sourceWidth,sourceHeight:sourceHeight,sourceType:sourceType}=_ref;const{framebuffer:framebuffer,deleteFramebuffer:deleteFramebuffer}=getFramebuffer(source);(0,utils_assert.h)(framebuffer),sourceWidth=sourceWidth||framebuffer.width,sourceHeight=sourceHeight||framebuffer.height;const gl2=(0,esm.KQ)(framebuffer.gl);if(sourceType=sourceType||(target?target.type:5121),!target){const components=glFormatToComponents(sourceFormat),byteCount=function glTypeToBytes(type){switch(type){case 5121:return 1;case 33635:case 32819:case 32820:return 2;case 5126:return 4;default:return(0,utils_assert.h)(!1),0}}(sourceType),byteLength=targetByteOffset+sourceWidth*sourceHeight*components*byteCount;target=new buffer.Z(gl2,{byteLength:byteLength,accessor:{type:sourceType,size:components}})}return target.bind({target:35051}),(0,esm.s8)(gl2,{framebuffer:framebuffer},(()=>{gl2.readPixels(sourceX,sourceY,sourceWidth,sourceHeight,sourceFormat,sourceType,targetByteOffset)})),target.unbind({target:35051}),deleteFramebuffer&&framebuffer.delete(),target}function copyToDataUrl(source){let{sourceAttachment:sourceAttachment=36064,targetMaxHeight:targetMaxHeight=Number.MAX_SAFE_INTEGER}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},data=readPixelsToArray(source,{sourceAttachment:sourceAttachment}),{width:width,height:height}=source;for(;height>targetMaxHeight;)({data:data,width:width,height:height}=(0,typed_array_utils.KS)({data:data,width:width,height:height}));(0,typed_array_utils.c$)({data:data,width:width,height:height});const canvas=document.createElement("canvas");canvas.width=width,canvas.height=height;const context=canvas.getContext("2d"),imageData=context.createImageData(width,height);return imageData.data.set(data),context.putImageData(imageData,0,0),canvas.toDataURL()}function copyToTexture(source,target){let options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{sourceX:sourceX=0,sourceY:sourceY=0,targetMipmaplevel:targetMipmaplevel=0,targetInternalFormat:targetInternalFormat=6408}=options;let{targetX:targetX,targetY:targetY,targetZ:targetZ,width:width,height:height}=options;const{framebuffer:framebuffer,deleteFramebuffer:deleteFramebuffer}=getFramebuffer(source);(0,utils_assert.h)(framebuffer);const{gl:gl,handle:handle}=framebuffer,isSubCopy=void 0!==targetX||void 0!==targetY||void 0!==targetZ;targetX=targetX||0,targetY=targetY||0,targetZ=targetZ||0;const prevHandle=gl.bindFramebuffer(36160,handle);(0,utils_assert.h)(target);let texture=null;if(target instanceof classes_texture.Z&&(texture=target,width=Number.isFinite(width)?width:texture.width,height=Number.isFinite(height)?height:texture.height,texture.bind(0),target=texture.target),isSubCopy)switch(target){case 3553:case 34067:gl.copyTexSubImage2D(target,targetMipmaplevel,targetX,targetY,sourceX,sourceY,width,height);break;case 35866:case 32879:(0,esm.KQ)(gl).copyTexSubImage3D(target,targetMipmaplevel,targetX,targetY,targetZ,sourceX,sourceY,width,height)}else gl.copyTexImage2D(target,targetMipmaplevel,targetInternalFormat,sourceX,sourceY,width,height,0);return texture&&texture.unbind(),gl.bindFramebuffer(36160,prevHandle||null),deleteFramebuffer&&framebuffer.delete(),texture}function getFramebuffer(source){return source instanceof framebuffer.Z?{framebuffer:source,deleteFramebuffer:!1}:{framebuffer:(0,texture_utils.Y)(source),deleteFramebuffer:!0}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Framebuffer}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_resource__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),_texture_2d__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),_renderbuffer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/renderbuffer.js"),_clear__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/clear.js"),_copy_and_blit_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),_features__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/constants-to-keys.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");class Framebuffer extends _resource__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"Framebuffer"}static isSupported(gl){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{colorBufferFloat:colorBufferFloat,colorBufferHalfFloat:colorBufferHalfFloat}=options;let supported=!0;return colorBufferFloat&&(supported=Boolean(gl.getExtension("EXT_color_buffer_float")||gl.getExtension("WEBGL_color_buffer_float")||gl.getExtension("OES_texture_float"))),colorBufferHalfFloat&&(supported=supported&&Boolean(gl.getExtension("EXT_color_buffer_float")||gl.getExtension("EXT_color_buffer_half_float"))),supported}static getDefaultFramebuffer(gl){return gl.luma=gl.luma||{},gl.luma.defaultFramebuffer=gl.luma.defaultFramebuffer||new Framebuffer(gl,{id:"default-framebuffer",handle:null,attachments:{}}),gl.luma.defaultFramebuffer}get MAX_COLOR_ATTACHMENTS(){const gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl);return gl2.getParameter(gl2.MAX_COLOR_ATTACHMENTS)}get MAX_DRAW_BUFFERS(){const gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl);return gl2.getParameter(gl2.MAX_DRAW_BUFFERS)}constructor(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(gl,opts),this.width=null,this.height=null,this.attachments={},this.readBuffer=36064,this.drawBuffers=[36064],this.ownResources=[],this.initialize(opts),Object.seal(this)}get color(){return this.attachments[36064]||null}get texture(){return this.attachments[36064]||null}get depth(){return this.attachments[36096]||this.attachments[33306]||null}get stencil(){return this.attachments[36128]||this.attachments[33306]||null}initialize(_ref){let{width:width=1,height:height=1,attachments:attachments=null,color:color=!0,depth:depth=!0,stencil:stencil=!1,check:check=!0,readBuffer:readBuffer,drawBuffers:drawBuffers}=_ref;if((0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(width>=0&&height>=0,"Width and height need to be integers"),this.width=width,this.height=height,attachments)for(const attachment in attachments){const target=attachments[attachment];(Array.isArray(target)?target[0]:target).resize({width:width,height:height})}else attachments=this._createDefaultAttachments(color,depth,stencil,width,height);this.update({clearAttachments:!0,attachments:attachments,readBuffer:readBuffer,drawBuffers:drawBuffers}),attachments&&check&&this.checkStatus()}delete(){for(const resource of this.ownResources)resource.delete();return super.delete(),this}update(_ref2){let{attachments:attachments={},readBuffer:readBuffer,drawBuffers:drawBuffers,clearAttachments:clearAttachments=!1,resizeAttachments:resizeAttachments=!0}=_ref2;this.attach(attachments,{clearAttachments:clearAttachments,resizeAttachments:resizeAttachments});const{gl:gl}=this,prevHandle=gl.bindFramebuffer(36160,this.handle);return readBuffer&&this._setReadBuffer(readBuffer),drawBuffers&&this._setDrawBuffers(drawBuffers),gl.bindFramebuffer(36160,prevHandle||null),this}resize(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{width:width,height:height}=options;if(null===this.handle)return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(void 0===width&&void 0===height),this.width=this.gl.drawingBufferWidth,this.height=this.gl.drawingBufferHeight,this;void 0===width&&(width=this.gl.drawingBufferWidth),void 0===height&&(height=this.gl.drawingBufferHeight),width!==this.width&&height!==this.height&&_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.log(2,"Resizing framebuffer ".concat(this.id," to ").concat(width,"x").concat(height))();for(const attachmentPoint in this.attachments)this.attachments[attachmentPoint].resize({width:width,height:height});return this.width=width,this.height=height,this}attach(attachments){let{clearAttachments:clearAttachments=!1,resizeAttachments:resizeAttachments=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const newAttachments={};clearAttachments&&Object.keys(this.attachments).forEach((key=>{newAttachments[key]=null})),Object.assign(newAttachments,attachments);const prevHandle=this.gl.bindFramebuffer(36160,this.handle);for(const key in newAttachments){(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(void 0!==key,"Misspelled framebuffer binding point?");const attachment=Number(key),descriptor=newAttachments[attachment];let object=descriptor;if(object)if(object instanceof _renderbuffer__WEBPACK_IMPORTED_MODULE_3__.Z)this._attachRenderbuffer({attachment:attachment,renderbuffer:object});else if(Array.isArray(descriptor)){const[texture,layer=0,level=0]=descriptor;object=texture,this._attachTexture({attachment:attachment,texture:texture,layer:layer,level:level})}else this._attachTexture({attachment:attachment,texture:object,layer:0,level:0});else this._unattach(attachment);resizeAttachments&&object&&object.resize({width:this.width,height:this.height})}this.gl.bindFramebuffer(36160,prevHandle||null),Object.assign(this.attachments,attachments),Object.keys(this.attachments).filter((key=>!this.attachments[key])).forEach((key=>{delete this.attachments[key]}))}checkStatus(){const{gl:gl}=this,status=this.getStatus();if(36053!==status)throw new Error(function _getFrameBufferStatus(status){return(Framebuffer.STATUS||{})[status]||"Framebuffer error ".concat(status)}(status));return this}getStatus(){const{gl:gl}=this,prevHandle=gl.bindFramebuffer(36160,this.handle),status=gl.checkFramebufferStatus(36160);return gl.bindFramebuffer(36160,prevHandle||null),status}clear(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{color:color,depth:depth,stencil:stencil,drawBuffers:drawBuffers=[]}=options,prevHandle=this.gl.bindFramebuffer(36160,this.handle);return(color||depth||stencil)&&(0,_clear__WEBPACK_IMPORTED_MODULE_4__.Z)(this.gl,{color:color,depth:depth,stencil:stencil}),drawBuffers.forEach(((value,drawBuffer)=>{(0,_clear__WEBPACK_IMPORTED_MODULE_4__.$)(this.gl,{drawBuffer:drawBuffer,value:value})})),this.gl.bindFramebuffer(36160,prevHandle||null),this}readPixels(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")(),null}readPixelsToBuffer(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")(),null}copyToDataUrl(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")(),null}copyToImage(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")(),null}copyToTexture(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}blit(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")(),null}invalidate(_ref3){let{attachments:attachments=[],x:x=0,y:y=0,width:width,height:height}=_ref3;const gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl),prevHandle=gl2.bindFramebuffer(36008,this.handle);return 0===x&&0===y&&void 0===width&&void 0===height?gl2.invalidateFramebuffer(36008,attachments):gl2.invalidateFramebuffer(36008,attachments,x,y,width,height),gl2.bindFramebuffer(36008,prevHandle),this}getAttachmentParameter(attachment,pname,keys){let value=this._getAttachmentParameterFallback(pname);return null===value&&(this.gl.bindFramebuffer(36160,this.handle),value=this.gl.getFramebufferAttachmentParameter(36160,attachment,pname),this.gl.bindFramebuffer(36160,null)),keys&&value>1e3&&(value=(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_5__.km)(this.gl,value)),value}getAttachmentParameters(){let attachment=arguments.length>0&&void 0!==arguments[0]?arguments[0]:36064,keys=arguments.length>1?arguments[1]:void 0,parameters=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.constructor.ATTACHMENT_PARAMETERS||[];const values={};for(const pname of parameters){values[keys?(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_5__.km)(this.gl,pname):pname]=this.getAttachmentParameter(attachment,pname,keys)}return values}getParameters(){let keys=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const attachments=Object.keys(this.attachments),parameters={};for(const attachmentName of attachments){const attachment=Number(attachmentName);parameters[keys?(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_5__.km)(this.gl,attachment):attachment]=this.getAttachmentParameters(attachment,keys)}return parameters}show(){return"undefined"!=typeof window&&window.open((0,_copy_and_blit_js__WEBPACK_IMPORTED_MODULE_6__.Km)(this),"luma-debug-texture"),this}log(){let logLevel=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,message=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(logLevel>_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.level||"undefined"==typeof window)return this;message=message||"Framebuffer ".concat(this.id);const image=(0,_copy_and_blit_js__WEBPACK_IMPORTED_MODULE_6__.Km)(this,{targetMaxHeight:100});return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.image({logLevel:logLevel,message:message,image:image},message)(),this}bind(){let{target:target=36160}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.gl.bindFramebuffer(target,this.handle),this}unbind(){let{target:target=36160}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.gl.bindFramebuffer(target,null),this}_createDefaultAttachments(color,depth,stencil,width,height){let defaultAttachments=null;return color&&(defaultAttachments=defaultAttachments||{},defaultAttachments[36064]=new _texture_2d__WEBPACK_IMPORTED_MODULE_7__.Z(this.gl,{id:"".concat(this.id,"-color0"),pixels:null,format:6408,type:5121,width:width,height:height,mipmaps:!1,parameters:{10241:9729,10240:9729,10242:33071,10243:33071}}),this.ownResources.push(defaultAttachments[36064])),depth&&stencil?(defaultAttachments=defaultAttachments||{},defaultAttachments[33306]=new _renderbuffer__WEBPACK_IMPORTED_MODULE_3__.Z(this.gl,{id:"".concat(this.id,"-depth-stencil"),format:35056,width:width,height:111}),this.ownResources.push(defaultAttachments[33306])):depth?(defaultAttachments=defaultAttachments||{},defaultAttachments[36096]=new _renderbuffer__WEBPACK_IMPORTED_MODULE_3__.Z(this.gl,{id:"".concat(this.id,"-depth"),format:33189,width:width,height:height}),this.ownResources.push(defaultAttachments[36096])):stencil&&(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(!1),defaultAttachments}_unattach(attachment){const oldAttachment=this.attachments[attachment];oldAttachment&&(oldAttachment instanceof _renderbuffer__WEBPACK_IMPORTED_MODULE_3__.Z?this.gl.framebufferRenderbuffer(36160,attachment,36161,null):this.gl.framebufferTexture2D(36160,attachment,3553,null,0),delete this.attachments[attachment])}_attachRenderbuffer(_ref4){let{attachment:attachment=36064,renderbuffer:renderbuffer}=_ref4;const{gl:gl}=this;gl.framebufferRenderbuffer(36160,attachment,36161,renderbuffer.handle),this.attachments[attachment]=renderbuffer}_attachTexture(_ref5){let{attachment:attachment=36064,texture:texture,layer:layer,level:level}=_ref5;const{gl:gl}=this;switch(gl.bindTexture(texture.target,texture.handle),texture.target){case 35866:case 32879:(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl).framebufferTextureLayer(36160,attachment,texture.target,level,layer);break;case 34067:const face=function mapIndexToCubeMapFace(layer){return layer<34069?layer+34069:layer}(layer);gl.framebufferTexture2D(36160,attachment,face,texture.handle,level);break;case 3553:gl.framebufferTexture2D(36160,attachment,3553,texture.handle,level);break;default:(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(!1,"Illegal texture type")}gl.bindTexture(texture.target,null),this.attachments[attachment]=texture}_setReadBuffer(readBuffer){const gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.vd)(this.gl);gl2?gl2.readBuffer(readBuffer):(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(36064===readBuffer||1029===readBuffer,"Multiple render targets not supported"),this.readBuffer=readBuffer}_setDrawBuffers(drawBuffers){const{gl:gl}=this,gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl);if(gl2)gl2.drawBuffers(drawBuffers);else{const ext=gl.getExtension("WEBGL_draw_buffers");ext?ext.drawBuffersWEBGL(drawBuffers):(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(1===drawBuffers.length&&(36064===drawBuffers[0]||1029===drawBuffers[0]),"Multiple render targets not supported")}this.drawBuffers=drawBuffers}_getAttachmentParameterFallback(pname){const caps=(0,_features__WEBPACK_IMPORTED_MODULE_8__.N$)(this.gl);switch(pname){case 36052:return caps.WEBGL2?null:0;case 33298:case 33299:case 33300:case 33301:case 33302:case 33303:return caps.WEBGL2?null:8;case 33297:return caps.WEBGL2?null:5125;case 33296:return caps.WEBGL2||caps.EXT_sRGB?null:9729;default:return null}}_createHandle(){return this.gl.createFramebuffer()}_deleteHandle(){this.gl.deleteFramebuffer(this.handle)}_bindHandle(handle){return this.gl.bindFramebuffer(36160,handle)}}Framebuffer.ATTACHMENT_PARAMETERS=[36049,36048,33296,33298,33299,33300,33301,33302,33303]},"./node_modules/@luma.gl/webgl/dist/esm/classes/program.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Program}});var resource=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),texture=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),renderbuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/renderbuffer.js"),assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const UNIFORM_SETTERS={5126:getArraySetter.bind(null,"uniform1fv",toFloatArray,1,setVectorUniform),35664:getArraySetter.bind(null,"uniform2fv",toFloatArray,2,setVectorUniform),35665:getArraySetter.bind(null,"uniform3fv",toFloatArray,3,setVectorUniform),35666:getArraySetter.bind(null,"uniform4fv",toFloatArray,4,setVectorUniform),5124:getArraySetter.bind(null,"uniform1iv",toIntArray,1,setVectorUniform),35667:getArraySetter.bind(null,"uniform2iv",toIntArray,2,setVectorUniform),35668:getArraySetter.bind(null,"uniform3iv",toIntArray,3,setVectorUniform),35669:getArraySetter.bind(null,"uniform4iv",toIntArray,4,setVectorUniform),35670:getArraySetter.bind(null,"uniform1iv",toIntArray,1,setVectorUniform),35671:getArraySetter.bind(null,"uniform2iv",toIntArray,2,setVectorUniform),35672:getArraySetter.bind(null,"uniform3iv",toIntArray,3,setVectorUniform),35673:getArraySetter.bind(null,"uniform4iv",toIntArray,4,setVectorUniform),35674:getArraySetter.bind(null,"uniformMatrix2fv",toFloatArray,4,setMatrixUniform),35675:getArraySetter.bind(null,"uniformMatrix3fv",toFloatArray,9,setMatrixUniform),35676:getArraySetter.bind(null,"uniformMatrix4fv",toFloatArray,16,setMatrixUniform),35678:getSamplerSetter,35680:getSamplerSetter,5125:getArraySetter.bind(null,"uniform1uiv",toUIntArray,1,setVectorUniform),36294:getArraySetter.bind(null,"uniform2uiv",toUIntArray,2,setVectorUniform),36295:getArraySetter.bind(null,"uniform3uiv",toUIntArray,3,setVectorUniform),36296:getArraySetter.bind(null,"uniform4uiv",toUIntArray,4,setVectorUniform),35685:getArraySetter.bind(null,"uniformMatrix2x3fv",toFloatArray,6,setMatrixUniform),35686:getArraySetter.bind(null,"uniformMatrix2x4fv",toFloatArray,8,setMatrixUniform),35687:getArraySetter.bind(null,"uniformMatrix3x2fv",toFloatArray,6,setMatrixUniform),35688:getArraySetter.bind(null,"uniformMatrix3x4fv",toFloatArray,12,setMatrixUniform),35689:getArraySetter.bind(null,"uniformMatrix4x2fv",toFloatArray,8,setMatrixUniform),35690:getArraySetter.bind(null,"uniformMatrix4x3fv",toFloatArray,12,setMatrixUniform),35678:getSamplerSetter,35680:getSamplerSetter,35679:getSamplerSetter,35682:getSamplerSetter,36289:getSamplerSetter,36292:getSamplerSetter,36293:getSamplerSetter,36298:getSamplerSetter,36299:getSamplerSetter,36300:getSamplerSetter,36303:getSamplerSetter,36306:getSamplerSetter,36307:getSamplerSetter,36308:getSamplerSetter,36311:getSamplerSetter},FLOAT_ARRAY={},INT_ARRAY={},UINT_ARRAY={},array1=[0];function toTypedArray(value,uniformLength,Type,cache){1===uniformLength&&"boolean"==typeof value&&(value=value?1:0),Number.isFinite(value)&&(array1[0]=value,value=array1);const length=value.length;if(length%uniformLength&&esm.cM.warn("Uniform size should be multiples of ".concat(uniformLength),value)(),value instanceof Type)return value;let result=cache[length];result||(result=new Type(length),cache[length]=result);for(let i=0;i{const update=cache!==value;return update&&(gl.uniform1i(location,value),cache=value),update}}function getArraySetter(functionName,toArray,size,uniformSetter){let cache=null,cacheLength=null;return(gl,location,value)=>{const arrayValue=toArray(value,size),length=arrayValue.length;let update=!1;if(null===cache)cache=new Float32Array(length),cacheLength=length,update=!0;else{(0,assert.h)(cacheLength===length,"Uniform length cannot change.");for(let i=0;i=0&&this._addAttribute(location,name,type,size)}this.attributeInfos.sort(((a,b)=>a.location-b.location))}_readVaryingsFromProgram(program){const{gl:gl}=program;if(!(0,esm.D0)(gl))return;const count=gl.getProgramParameter(program.handle,35971);for(let location=0;locationa.location-b.location))}_addAttribute(location,name,compositeType,size){const{type:type,components:components}=(0,attribute_utils.hJ)(compositeType),accessor={type:type,size:size*components};this._inferProperties(location,name,accessor);const attributeInfo={location:location,name:name,accessor:new classes_accessor.Z(accessor)};this.attributeInfos.push(attributeInfo),this.attributeInfosByLocation[location]=attributeInfo,this.attributeInfosByName[attributeInfo.name]=attributeInfo}_inferProperties(location,name,accessor){/instance/i.test(name)&&(accessor.divisor=1)}_addVarying(location,name,compositeType,size){const{type:type,components:components}=(0,attribute_utils.hJ)(compositeType),varying={location:location,name:name,accessor:new classes_accessor.Z({type:type,size:size*components})};this.varyingInfos.push(varying),this.varyingInfosByName[varying.name]=varying}}var constants_to_keys=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/constants-to-keys.js"),utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");const GL_SEPARATE_ATTRIBS=35981,V6_DEPRECATED_METHODS=["setVertexArray","setAttributes","setBuffers","unsetBuffers","use","getUniformCount","getUniformInfo","getUniformLocation","getUniformValue","getVarying","getFragDataLocation","getAttachedShaders","getAttributeCount","getAttributeLocation","getAttributeInfo"];class Program extends resource.Z{get[Symbol.toStringTag](){return"Program"}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(gl,props),this.stubRemovedMethods("Program","v6.0",V6_DEPRECATED_METHODS),this._isCached=!1,this.initialize(props),Object.seal(this),this._setId(props.id)}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{hash:hash,vs:vs,fs:fs,varyings:varyings,bufferMode:bufferMode=GL_SEPARATE_ATTRIBS}=props;return this.hash=hash||"",this.vs="string"==typeof vs?new shader.Qh(this.gl,{id:"".concat(props.id,"-vs"),source:vs}):vs,this.fs="string"==typeof fs?new shader.gs(this.gl,{id:"".concat(props.id,"-fs"),source:fs}):fs,(0,assert.h)(this.vs instanceof shader.Qh),(0,assert.h)(this.fs instanceof shader.gs),this.uniforms={},this._textureUniforms={},varyings&&varyings.length>0&&((0,esm.KQ)(this.gl),this.varyings=varyings,this.gl2.transformFeedbackVaryings(this.handle,varyings,bufferMode)),this._compileAndLink(),this._readUniformLocationsFromLinkedProgram(),this.configuration=new ProgramConfiguration(this),this.setProps(props)}delete(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._isCached?this:super.delete(options)}setProps(props){return"uniforms"in props&&this.setUniforms(props.uniforms),this}draw(_ref){let{logPriority:logPriority,drawMode:drawMode=4,vertexCount:vertexCount,offset:offset=0,start:start,end:end,isIndexed:isIndexed=!1,indexType:indexType=5123,instanceCount:instanceCount=0,isInstanced:isInstanced=instanceCount>0,vertexArray:vertexArray=null,transformFeedback:transformFeedback,framebuffer:framebuffer,parameters:parameters={},uniforms:uniforms,samplers:samplers}=_ref;if((uniforms||samplers)&&(esm.cM.deprecated("Program.draw({uniforms})","Program.setUniforms(uniforms)")(),this.setUniforms(uniforms||{})),esm.cM.priority>=logPriority){const fb=framebuffer?framebuffer.id:"default",message="mode=".concat((0,constants_to_keys.km)(this.gl,drawMode)," verts=").concat(vertexCount," ")+"instances=".concat(instanceCount," indexType=").concat((0,constants_to_keys.km)(this.gl,indexType)," ")+"isInstanced=".concat(isInstanced," isIndexed=").concat(isIndexed," ")+"Framebuffer=".concat(fb);esm.cM.log(logPriority,message)()}return(0,assert.h)(vertexArray),this.gl.useProgram(this.handle),!(!this._areTexturesRenderable()||0===vertexCount||isInstanced&&0===instanceCount)&&(vertexArray.bindForDraw(vertexCount,instanceCount,(()=>{if(void 0!==framebuffer&&(parameters=Object.assign({},parameters,{framebuffer:framebuffer})),transformFeedback){const primitiveMode=(0,attribute_utils.$Z)(drawMode);transformFeedback.begin(primitiveMode)}this._bindTextures(),(0,esm.s8)(this.gl,parameters,(()=>{isIndexed&&isInstanced?this.gl2.drawElementsInstanced(drawMode,vertexCount,indexType,offset,instanceCount):isIndexed&&(0,esm.D0)(this.gl)&&!isNaN(start)&&!isNaN(end)?this.gl2.drawRangeElements(drawMode,start,end,vertexCount,indexType,offset):isIndexed?this.gl.drawElements(drawMode,vertexCount,indexType,offset):isInstanced?this.gl2.drawArraysInstanced(drawMode,offset,vertexCount,instanceCount):this.gl.drawArrays(drawMode,offset,vertexCount)})),transformFeedback&&transformFeedback.end()})),!0)}setUniforms(){let uniforms=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};esm.cM.priority>=2&&function checkUniformValues(uniforms,source,uniformMap){for(const uniformName in uniforms){const value=uniforms[uniformName];if((!uniformMap||Boolean(uniformMap[uniformName]))&&!checkUniformValue(value))throw source=source?"".concat(source," "):"",console.error("".concat(source," Bad uniform ").concat(uniformName),value),new Error("".concat(source," Bad uniform ").concat(uniformName))}return!0}(uniforms,this.id,this._uniformSetters),this.gl.useProgram(this.handle);for(const uniformName in uniforms){const uniform=uniforms[uniformName],uniformSetter=this._uniformSetters[uniformName];if(uniformSetter){let value=uniform,textureUpdate=!1;if(value instanceof framebuffer.Z&&(value=value.texture),value instanceof texture.Z)if(textureUpdate=this.uniforms[uniformName]!==uniform,textureUpdate){void 0===uniformSetter.textureIndex&&(uniformSetter.textureIndex=this._textureIndexCounter++);const texture=value,{textureIndex:textureIndex}=uniformSetter;texture.bind(textureIndex),value=textureIndex,this._textureUniforms[uniformName]=texture}else value=uniformSetter.textureIndex;else this._textureUniforms[uniformName]&&delete this._textureUniforms[uniformName];(uniformSetter(value)||textureUpdate)&©Uniform(this.uniforms,uniformName,uniform)}}return this}_areTexturesRenderable(){let texturesRenderable=!0;for(const uniformName in this._textureUniforms){const texture=this._textureUniforms[uniformName];texture.update(),texturesRenderable=texturesRenderable&&texture.loaded}return texturesRenderable}_bindTextures(){for(const uniformName in this._textureUniforms){const textureIndex=this._uniformSetters[uniformName].textureIndex;this._textureUniforms[uniformName].bind(textureIndex)}}_createHandle(){return this.gl.createProgram()}_deleteHandle(){this.gl.deleteProgram(this.handle)}_getOptionsFromHandle(handle){const shaderHandles=this.gl.getAttachedShaders(handle),opts={};for(const shaderHandle of shaderHandles){switch(this.gl.getShaderParameter(this.handle,35663)){case 35633:opts.vs=new shader.Qh({handle:shaderHandle});break;case 35632:opts.fs=new shader.gs({handle:shaderHandle})}}return opts}_getParameter(pname){return this.gl.getProgramParameter(this.handle,pname)}_setId(id){if(!id){const programName=this._getName();this.id=(0,utils.hQ)(programName)}}_getName(){let programName=this.vs.getName()||this.fs.getName();return programName=programName.replace(/shader/i,""),programName=programName?"".concat(programName,"-program"):"program",programName}_compileAndLink(){const{gl:gl}=this;if(gl.attachShader(this.handle,this.vs.handle),gl.attachShader(this.handle,this.fs.handle),esm.cM.time(4,"linkProgram for ".concat(this._getName()))(),gl.linkProgram(this.handle),esm.cM.timeEnd(4,"linkProgram for ".concat(this._getName()))(),gl.debug||esm.cM.level>0){if(!gl.getProgramParameter(this.handle,35714))throw new Error("Error linking: ".concat(gl.getProgramInfoLog(this.handle)));gl.validateProgram(this.handle);if(!gl.getProgramParameter(this.handle,35715))throw new Error("Error validating: ".concat(gl.getProgramInfoLog(this.handle)))}}_readUniformLocationsFromLinkedProgram(){const{gl:gl}=this;this._uniformSetters={},this._uniformCount=this._getParameter(35718);for(let i=0;i1)for(let l=0;l1&&void 0!==arguments[1]?arguments[1]:{format:null};return!format||function isFormatSupported(gl,format,formats){const info=formats[format];if(!info)return!1;const value=(0,esm.D0)(gl)&&info.gl2||info.gl1;return"string"==typeof value?gl.getExtension(value):value}(gl,format,renderbuffer_formats)}static getSamplesForFormat(gl,_ref){let{format:format}=_ref;return gl.getInternalformatParameter(36161,format,32937)}constructor(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(gl,opts),this.initialize(opts),Object.seal(this)}initialize(_ref2){let{format:format,width:width=1,height:height=1,samples:samples=0}=_ref2;return(0,assert.h)(format,"Needs format"),this._trackDeallocatedMemory(),this.gl.bindRenderbuffer(36161,this.handle),0!==samples&&(0,esm.D0)(this.gl)?this.gl.renderbufferStorageMultisample(36161,samples,format,width,height):this.gl.renderbufferStorage(36161,format,width,height),this.format=format,this.width=width,this.height=height,this.samples=samples,this._trackAllocatedMemory(this.width*this.height*(this.samples||1)*renderbuffer_formats[this.format].bpp),this}resize(_ref3){let{width:width,height:height}=_ref3;return width!==this.width||height!==this.height?this.initialize({width:width,height:height,format:this.format,samples:this.samples}):this}_createHandle(){return this.gl.createRenderbuffer()}_deleteHandle(){this.gl.deleteRenderbuffer(this.handle),this._trackDeallocatedMemory()}_bindHandle(handle){this.gl.bindRenderbuffer(36161,handle)}_syncHandle(handle){this.format=this.getParameter(36164),this.width=this.getParameter(36162),this.height=this.getParameter(36163),this.samples=this.getParameter(36011)}_getParameter(pname){this.gl.bindRenderbuffer(36161,this.handle);return this.gl.getRenderbufferParameter(36161,pname)}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Resource}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_init__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/init.js"),_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/constants-to-keys.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),_utils_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js"),_utils_stub_methods__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/stub-methods.js");const ERR_RESOURCE_METHOD_UNDEFINED="Resource subclass must define virtual methods";class Resource{get[Symbol.toStringTag](){return"Resource"}constructor(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.JD)(gl);const{id:id,userData:userData={}}=opts;this.gl=gl,this.gl2=gl,this.id=id||(0,_utils_utils__WEBPACK_IMPORTED_MODULE_1__.hQ)(this[Symbol.toStringTag]),this.userData=userData,this._bound=!1,this._handle=opts.handle,void 0===this._handle&&(this._handle=this._createHandle()),this.byteLength=0,this._addStats()}toString(){return"".concat(this[Symbol.toStringTag]||this.constructor.name,"(").concat(this.id,")")}get handle(){return this._handle}delete(){let{deleteChildren:deleteChildren=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const children=this._handle&&this._deleteHandle(this._handle);return this._handle&&this._removeStats(),this._handle=null,children&&deleteChildren&&children.filter(Boolean).forEach((child=>child.delete())),this}bind(){let value,funcOrHandle=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.handle;return"function"!=typeof funcOrHandle?(this._bindHandle(funcOrHandle),this):(this._bound?value=funcOrHandle():(this._bindHandle(this.handle),this._bound=!0,value=funcOrHandle(),this._bound=!1,this._bindHandle(null)),value)}unbind(){this.bind(null)}getParameter(pname){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pname=(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__.sF)(this.gl,pname),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_3__.h)(pname);const parameter=(this.constructor.PARAMETERS||{})[pname];if(parameter){const isWebgl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(this.gl);if(!((!("webgl2"in parameter)||isWebgl2)&&(!("extension"in parameter)||this.gl.getExtension(parameter.extension)))){const webgl1Default=parameter.webgl1,webgl2Default="webgl2"in parameter?parameter.webgl2:parameter.webgl1;return isWebgl2?webgl2Default:webgl1Default}}return this._getParameter(pname,opts)}getParameters(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{parameters:parameters,keys:keys}=options,PARAMETERS=this.constructor.PARAMETERS||{},isWebgl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(this.gl),values={},parameterKeys=parameters||Object.keys(PARAMETERS);for(const pname of parameterKeys){const parameter=PARAMETERS[pname];if(parameter&&(!("webgl2"in parameter)||isWebgl2)&&(!("extension"in parameter)||this.gl.getExtension(parameter.extension))){const key=keys?(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__.km)(this.gl,pname):pname;values[key]=this.getParameter(pname,options),keys&&"GLenum"===parameter.type&&(values[key]=(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__.km)(this.gl,values[key]))}}return values}setParameter(pname,value){pname=(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__.sF)(this.gl,pname),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_3__.h)(pname);const parameter=(this.constructor.PARAMETERS||{})[pname];if(parameter){const isWebgl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(this.gl);if(!((!("webgl2"in parameter)||isWebgl2)&&(!("extension"in parameter)||this.gl.getExtension(parameter.extension))))throw new Error("Parameter not available on this platform");"GLenum"===parameter.type&&(value=(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__.sF)(value))}return this._setParameter(pname,value),this}setParameters(parameters){for(const pname in parameters)this.setParameter(pname,parameters[pname]);return this}stubRemovedMethods(className,version,methodNames){return(0,_utils_stub_methods__WEBPACK_IMPORTED_MODULE_4__.F)(this,className,version,methodNames)}initialize(opts){}_createHandle(){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_deleteHandle(){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_bindHandle(handle){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_getOptsFromHandle(){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_getParameter(pname,opts){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_setParameter(pname,value){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_context(){return this.gl.luma=this.gl.luma||{},this.gl.luma}_addStats(){const name=this[Symbol.toStringTag],stats=_init__WEBPACK_IMPORTED_MODULE_5__.lR.get("Resource Counts");stats.get("Resources Created").incrementCount(),stats.get("".concat(name,"s Created")).incrementCount(),stats.get("".concat(name,"s Active")).incrementCount()}_removeStats(){const name=this[Symbol.toStringTag];_init__WEBPACK_IMPORTED_MODULE_5__.lR.get("Resource Counts").get("".concat(name,"s Active")).decrementCount()}_trackAllocatedMemory(bytes){let name=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[Symbol.toStringTag];this._trackAllocatedMemoryForContext(bytes,name),this._trackAllocatedMemoryForContext(bytes,name,this.gl.canvas&&this.gl.canvas.id),this.byteLength=bytes}_trackAllocatedMemoryForContext(bytes){let name=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[Symbol.toStringTag],id=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const stats=_init__WEBPACK_IMPORTED_MODULE_5__.lR.get("Memory Usage".concat(id));stats.get("GPU Memory").addCount(bytes),stats.get("".concat(name," Memory")).addCount(bytes)}_trackDeallocatedMemory(){let name=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this[Symbol.toStringTag];this._trackDeallocatedMemoryForContext(name),this._trackDeallocatedMemoryForContext(name,this.gl.canvas&&this.gl.canvas.id),this.byteLength=0}_trackDeallocatedMemoryForContext(){let name=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this[Symbol.toStringTag],id=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const stats=_init__WEBPACK_IMPORTED_MODULE_5__.lR.get("Memory Usage".concat(id));stats.get("GPU Memory").subtractCount(this.byteLength),stats.get("".concat(name," Memory")).subtractCount(this.byteLength)}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/shader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{gs:function(){return FragmentShader},Qh:function(){return VertexShader}});var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");function getShaderName(shader){let defaultName=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unnamed";const match=shader.match(/#define[\s*]SHADER_NAME[\s*]([A-Za-z0-9_-]+)[\s*]/);return match?match[1]:defaultName}const GL_FRAGMENT_SHADER=35632,GL_VERTEX_SHADER=35633;function parseGLSLCompilerError(errLog,src,shaderType,shaderName){const errorStrings=errLog.split(/\r?\n/),errors={},warnings={},name=shaderName||getShaderName(src)||"(unnamed)",shaderDescription="".concat(function getShaderTypeName(type){switch(type){case GL_FRAGMENT_SHADER:return"fragment";case GL_VERTEX_SHADER:return"vertex";default:return"unknown type"}}(shaderType)," shader ").concat(name);for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:1,delim=arguments.length>2&&void 0!==arguments[2]?arguments[2]:": ";const lines=string.split(/\r?\n/),maxDigits=String(lines.length+start-1).length;return lines.map(((line,i)=>{const lineNumber=String(i+start),digits=lineNumber.length;return padLeft(lineNumber,maxDigits-digits)+delim+line}))}(src);return{shaderName:shaderDescription,errors:formatErrors(errors,lines),warnings:formatErrors(warnings,lines)}}function formatErrors(errors,lines){let message="";for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:this.source;source.startsWith("#version ")||(source="#version 100\n".concat(source)),this.source=source,this.gl.shaderSource(this.handle,this.source),this.gl.compileShader(this.handle);if(!this.getParameter(35713)){const infoLog=this.gl.getShaderInfoLog(this.handle),{shaderName:shaderName,errors:errors,warnings:warnings}=parseGLSLCompilerError(infoLog,this.source,this.shaderType,this.id);throw esm.cM.error("GLSL compilation errors in ".concat(shaderName,"\n").concat(errors))(),esm.cM.warn("GLSL compilation warnings in ".concat(shaderName,"\n").concat(warnings))(),new Error("GLSL compilation errors in ".concat(shaderName))}}_deleteHandle(){this.gl.deleteShader(this.handle)}_getOptsFromHandle(){return{type:this.getParameter(35663),source:this.getSource()}}}class VertexShader extends Shader{get[Symbol.toStringTag](){return"VertexShader"}constructor(gl,props){"string"==typeof props&&(props={source:props}),super(gl,Object.assign({},props,{shaderType:35633}))}_createHandle(){return this.gl.createShader(35633)}}class FragmentShader extends Shader{get[Symbol.toStringTag](){return"FragmentShader"}constructor(gl,props){"string"==typeof props&&(props={source:props}),super(gl,Object.assign({},props,{shaderType:35632}))}_createHandle(){return this.gl.createShader(35632)}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Texture2D}});var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),texture=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js"),utils_assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");let pathPrefix="";class Texture2D extends texture.Z{get[Symbol.toStringTag](){return"Texture2D"}static isSupported(gl,opts){return texture.Z.isSupported(gl,opts)}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var url,opts;(0,esm.JD)(gl),(props instanceof Promise||"string"==typeof props)&&(props={data:props}),"string"==typeof props.data&&(props=Object.assign({},props,{data:(url=props.data,(0,utils_assert.h)("string"==typeof url),url=pathPrefix+url,new Promise(((resolve,reject)=>{try{const image=new Image;image.onload=()=>resolve(image),image.onerror=()=>reject(new Error("Could not load image ".concat(url,"."))),image.crossOrigin=opts&&opts.crossOrigin||"anonymous",image.src=url}catch(error){reject(error)}})))})),super(gl,Object.assign({},props,{target:3553})),this.initialize(props),Object.seal(this)}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/texture-3d.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Texture3D}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_texture__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js"),_texture_formats__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-formats.js"),_buffer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js");class Texture3D extends _texture__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"Texture3D"}static isSupported(gl){return(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(gl)}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl),props=Object.assign({depth:1},props,{target:32879,unpackFlipY:!1}),super(gl,props),this.initialize(props),Object.seal(this)}setImageData(_ref){let{level:level=0,dataFormat:dataFormat=6408,width:width,height:height,depth:depth=1,border:border=0,format:format,type:type=5121,offset:offset=0,data:data,parameters:parameters={}}=_ref;if(this._trackDeallocatedMemory("Texture"),this.gl.bindTexture(this.target,this.handle),(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(this.gl,parameters,(()=>{ArrayBuffer.isView(data)&&this.gl.texImage3D(this.target,level,dataFormat,width,height,depth,border,format,type,data),data instanceof _buffer__WEBPACK_IMPORTED_MODULE_2__.Z&&(this.gl.bindBuffer(35052,data.handle),this.gl.texImage3D(this.target,level,dataFormat,width,height,depth,border,format,type,offset))})),data&&data.byteLength)this._trackAllocatedMemory(data.byteLength,"Texture");else{const channels=_texture_formats__WEBPACK_IMPORTED_MODULE_3__.C[this.dataFormat]||4,channelSize=_texture_formats__WEBPACK_IMPORTED_MODULE_3__.pH[this.type]||1;this._trackAllocatedMemory(this.width*this.height*this.depth*channels*channelSize,"Texture")}return this.loaded=!0,this}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/texture-cube.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TextureCube}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_texture__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js");const FACES=[34069,34070,34071,34072,34073,34074];class TextureCube extends _texture__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"TextureCube"}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.JD)(gl),super(gl,Object.assign({},props,{target:34067})),this.initialize(props),Object.seal(this)}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mipmaps:mipmaps=!0,parameters:parameters={}}=props;return this.opts=props,this.setCubeMapImageData(props).then((()=>{this.loaded=!0,mipmaps&&this.generateMipmap(props),this.setParameters(parameters)})),this}subImage(_ref){let{face:face,data:data,x:x=0,y:y=0,mipmapLevel:mipmapLevel=0}=_ref;return this._subImage({target:face,data:data,x:x,y:y,mipmapLevel:mipmapLevel})}async setCubeMapImageData(_ref2){let{width:width,height:height,pixels:pixels,data:data,border:border=0,format:format=6408,type:type=5121}=_ref2;const{gl:gl}=this,imageDataMap=pixels||data,resolvedFaces=await Promise.all(FACES.map((face=>{const facePixels=imageDataMap[face];return Promise.all(Array.isArray(facePixels)?facePixels:[facePixels])})));this.bind(),FACES.forEach(((face,index)=>{resolvedFaces[index].length>1&&!1!==this.opts.mipmaps&&_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.warn("".concat(this.id," has mipmap and multiple LODs."))(),resolvedFaces[index].forEach(((image,lodLevel)=>{width&&height?gl.texImage2D(face,lodLevel,format,width,height,border,format,type,image):gl.texImage2D(face,lodLevel,format,format,type,image)}))})),this.unbind()}setImageDataForFace(options){const{face:face,width:width,height:height,pixels:pixels,data:data,border:border=0,format:format=6408,type:type=5121}=options,{gl:gl}=this,imageData=pixels||data;return this.bind(),imageData instanceof Promise?imageData.then((resolvedImageData=>this.setImageDataForFace(Object.assign({},options,{face:face,data:resolvedImageData,pixels:resolvedImageData})))):this.width||this.height?gl.texImage2D(face,0,format,width,height,border,format,type,imageData):gl.texImage2D(face,0,format,format,type,imageData),this}}TextureCube.FACES=FACES},"./node_modules/@luma.gl/webgl/dist/esm/classes/texture-formats.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return DATA_FORMAT_CHANNELS},KR:function(){return isLinearFilteringSupported},ae:function(){return TEXTURE_FORMATS},br:function(){return isFormatSupported},pH:function(){return TYPE_SIZES}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");const TEXTURE_FORMATS={6407:{dataFormat:6407,types:[5121,33635]},6408:{dataFormat:6408,types:[5121,32819,32820]},6406:{dataFormat:6406,types:[5121]},6409:{dataFormat:6409,types:[5121]},6410:{dataFormat:6410,types:[5121]},33326:{dataFormat:6403,types:[5126],gl2:!0},33328:{dataFormat:33319,types:[5126],gl2:!0},34837:{dataFormat:6407,types:[5126],gl2:!0},34836:{dataFormat:6408,types:[5126],gl2:!0}},DATA_FORMAT_CHANNELS={6403:1,36244:1,33319:2,33320:2,6407:3,36248:3,6408:4,36249:4,6402:1,34041:1,6406:1,6409:1,6410:2},TYPE_SIZES={5126:4,5125:4,5124:4,5123:2,5122:2,5131:2,5120:1,5121:1};function isFormatSupported(gl,format){const info=TEXTURE_FORMATS[format];if(!info)return!1;if(void 0===info.gl1&&void 0===info.gl2)return!0;const value=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(gl)&&info.gl2||info.gl1;return"string"==typeof value?gl.getExtension(value):value}function isLinearFilteringSupported(gl,format){const info=TEXTURE_FORMATS[format];switch(info&&info.types[0]){case 5126:return gl.getExtension("OES_texture_float_linear");case 5131:return gl.getExtension("OES_texture_half_float_linear");default:return!0}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Texture}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_resource__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),_buffer__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),_texture_formats__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-formats.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),_utils_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");const NPOT_MIN_FILTERS=[9729,9728],WebGLBuffer=globalThis.WebGLBuffer||function WebGLBuffer(){};class Texture extends _resource__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"Texture"}static isSupported(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{format:format,linearFiltering:linearFiltering}=opts;let supported=!0;return format&&(supported=supported&&(0,_texture_formats__WEBPACK_IMPORTED_MODULE_2__.br)(gl,format),supported=supported&&(!linearFiltering||(0,_texture_formats__WEBPACK_IMPORTED_MODULE_2__.KR)(gl,format))),supported}constructor(gl,props){const{id:id=(0,_utils_utils__WEBPACK_IMPORTED_MODULE_3__.hQ)("texture"),handle:handle,target:target}=props;super(gl,{id:id,handle:handle}),this.target=target,this.textureUnit=void 0,this.loaded=!1,this.width=void 0,this.height=void 0,this.depth=void 0,this.format=void 0,this.type=void 0,this.dataFormat=void 0,this.border=void 0,this.textureUnit=void 0,this.mipmaps=void 0}toString(){return"Texture(".concat(this.id,",").concat(this.width,"x").concat(this.height,")")}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},data=props.data;if(data instanceof Promise)return data.then((resolvedImageData=>this.initialize(Object.assign({},props,{pixels:resolvedImageData,data:resolvedImageData})))),this;const isVideo="undefined"!=typeof HTMLVideoElement&&data instanceof HTMLVideoElement;if(isVideo&&data.readyStatethis.initialize(props))),this;const{pixels:pixels=null,format:format=6408,border:border=0,recreate:recreate=!1,parameters:parameters={},pixelStore:pixelStore={},textureUnit:textureUnit}=props;data||(data=pixels);let{width:width,height:height,dataFormat:dataFormat,type:type,compressed:compressed=!1,mipmaps:mipmaps=!0}=props;const{depth:depth=0}=props;return({width:width,height:height,compressed:compressed,dataFormat:dataFormat,type:type}=this._deduceParameters({format:format,type:type,dataFormat:dataFormat,compressed:compressed,data:data,width:width,height:height})),this.width=width,this.height=height,this.depth=depth,this.format=format,this.type=type,this.dataFormat=dataFormat,this.border=border,this.textureUnit=textureUnit,Number.isFinite(this.textureUnit)&&(this.gl.activeTexture(33984+this.textureUnit),this.gl.bindTexture(this.target,this.handle)),mipmaps&&this._isNPOT()&&(_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),mipmaps=!1,this._updateForNPOT(parameters)),this.mipmaps=mipmaps,this.setImageData({data:data,width:width,height:height,depth:depth,format:format,type:type,dataFormat:dataFormat,border:border,mipmaps:mipmaps,parameters:pixelStore,compressed:compressed}),mipmaps&&this.generateMipmap(),this.setParameters(parameters),recreate&&(this.data=data),isVideo&&(this._video={video:data,parameters:parameters,lastTime:data.readyState>=HTMLVideoElement.HAVE_CURRENT_DATA?data.currentTime:-1}),this}update(){if(this._video){const{video:video,parameters:parameters,lastTime:lastTime}=this._video;if(lastTime===video.currentTime||video.readyState0&&void 0!==arguments[0]?arguments[0]:{};return this._isNPOT()?(_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),this):(this.mipmaps=!0,this.gl.bindTexture(this.target,this.handle),(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(this.gl,params,(()=>{this.gl.generateMipmap(this.target)})),this.gl.bindTexture(this.target,null),this)}setImageData(options){this._trackDeallocatedMemory("Texture");const{target:target=this.target,pixels:pixels=null,level:level=0,format:format=this.format,border:border=this.border,offset:offset=0,parameters:parameters={}}=options;let{data:data=null,type:type=this.type,width:width=this.width,height:height=this.height,dataFormat:dataFormat=this.dataFormat,compressed:compressed=!1}=options;data||(data=pixels),({type:type,dataFormat:dataFormat,compressed:compressed,width:width,height:height}=this._deduceParameters({format:format,type:type,dataFormat:dataFormat,compressed:compressed,data:data,width:width,height:height}));const{gl:gl}=this;gl.bindTexture(this.target,this.handle);let gl2,dataType=null;({data:data,dataType:dataType}=this._getDataType({data:data,compressed:compressed}));let compressedTextureSize=0;if((0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(this.gl,parameters,(()=>{switch(dataType){case"null":gl.texImage2D(target,level,format,width,height,border,dataFormat,type,data);break;case"typed-array":gl.texImage2D(target,level,format,width,height,border,dataFormat,type,data,offset);break;case"buffer":gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl),gl2.bindBuffer(35052,data.handle||data),gl2.texImage2D(target,level,format,width,height,border,dataFormat,type,offset),gl2.bindBuffer(35052,null);break;case"browser-object":(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(gl)?gl.texImage2D(target,level,format,width,height,border,dataFormat,type,data):gl.texImage2D(target,level,format,dataFormat,type,data);break;case"compressed":for(const[levelIndex,levelData]of data.entries())gl.compressedTexImage2D(target,levelIndex,levelData.format,levelData.width,levelData.height,border,levelData.data),compressedTextureSize+=levelData.levelSize;break;default:(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(!1,"Unknown image data type")}})),"compressed"===dataType)this._trackAllocatedMemory(compressedTextureSize,"Texture");else if(data&&data.byteLength)this._trackAllocatedMemory(data.byteLength,"Texture");else{const channels=_texture_formats__WEBPACK_IMPORTED_MODULE_2__.C[this.dataFormat]||4,channelSize=_texture_formats__WEBPACK_IMPORTED_MODULE_2__.pH[this.type]||1;this._trackAllocatedMemory(this.width*this.height*channels*channelSize,"Texture")}return this.loaded=!0,this}setSubImageData(_ref2){let{target:target=this.target,pixels:pixels=null,data:data=null,x:x=0,y:y=0,width:width=this.width,height:height=this.height,level:level=0,format:format=this.format,type:type=this.type,dataFormat:dataFormat=this.dataFormat,compressed:compressed=!1,offset:offset=0,border:border=this.border,parameters:parameters={}}=_ref2;if(({type:type,dataFormat:dataFormat,compressed:compressed,width:width,height:height}=this._deduceParameters({format:format,type:type,dataFormat:dataFormat,compressed:compressed,data:data,width:width,height:height})),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(0===this.depth,"texSubImage not supported for 3D textures"),data||(data=pixels),data&&data.data){const ndarray=data;data=ndarray.data,width=ndarray.shape[0],height=ndarray.shape[1]}data instanceof _buffer__WEBPACK_IMPORTED_MODULE_5__.Z&&(data=data.handle),this.gl.bindTexture(this.target,this.handle),(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(this.gl,parameters,(()=>{if(compressed)this.gl.compressedTexSubImage2D(target,level,x,y,width,height,format,data);else if(null===data)this.gl.texSubImage2D(target,level,x,y,width,height,dataFormat,type,null);else if(ArrayBuffer.isView(data))this.gl.texSubImage2D(target,level,x,y,width,height,dataFormat,type,data,offset);else if(data instanceof WebGLBuffer){const gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl);gl2.bindBuffer(35052,data),gl2.texSubImage2D(target,level,x,y,width,height,dataFormat,type,offset),gl2.bindBuffer(35052,null)}else if((0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(this.gl)){(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl).texSubImage2D(target,level,x,y,width,height,dataFormat,type,data)}else this.gl.texSubImage2D(target,level,x,y,dataFormat,type,data)})),this.gl.bindTexture(this.target,null)}copyFramebuffer(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}getActiveUnit(){return this.gl.getParameter(34016)-33984}bind(){let textureUnit=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit;const{gl:gl}=this;return void 0!==textureUnit&&(this.textureUnit=textureUnit,gl.activeTexture(33984+textureUnit)),gl.bindTexture(this.target,this.handle),textureUnit}unbind(){let textureUnit=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit;const{gl:gl}=this;return void 0!==textureUnit&&(this.textureUnit=textureUnit,gl.activeTexture(33984+textureUnit)),gl.bindTexture(this.target,null),textureUnit}_getDataType(_ref3){let{data:data,compressed:compressed=!1}=_ref3;return compressed?{data:data,dataType:"compressed"}:null===data?{data:data,dataType:"null"}:ArrayBuffer.isView(data)?{data:data,dataType:"typed-array"}:data instanceof _buffer__WEBPACK_IMPORTED_MODULE_5__.Z?{data:data.handle,dataType:"buffer"}:data instanceof WebGLBuffer?{data:data,dataType:"buffer"}:{data:data,dataType:"browser-object"}}_deduceParameters(opts){const{format:format,data:data}=opts;let{width:width,height:height,dataFormat:dataFormat,type:type,compressed:compressed}=opts;const textureFormat=_texture_formats__WEBPACK_IMPORTED_MODULE_2__.ae[format];return dataFormat=dataFormat||textureFormat&&textureFormat.dataFormat,type=type||textureFormat&&textureFormat.types[0],compressed=compressed||textureFormat&&textureFormat.compressed,({width:width,height:height}=this._deduceImageSize(data,width,height)),{dataFormat:dataFormat,type:type,compressed:compressed,width:width,height:height,format:format,data:data}}_deduceImageSize(data,width,height){let size;return size="undefined"!=typeof ImageData&&data instanceof ImageData?{width:data.width,height:data.height}:"undefined"!=typeof HTMLImageElement&&data instanceof HTMLImageElement?{width:data.naturalWidth,height:data.naturalHeight}:"undefined"!=typeof HTMLCanvasElement&&data instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&data instanceof ImageBitmap?{width:data.width,height:data.height}:"undefined"!=typeof HTMLVideoElement&&data instanceof HTMLVideoElement?{width:data.videoWidth,height:data.videoHeight}:data?{width:width,height:height}:{width:width>=0?width:1,height:height>=0?height:1},(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(size,"Could not deduced texture size"),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(void 0===width||size.width===width,"Deduced texture width does not match supplied width"),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(void 0===height||size.height===height,"Deduced texture height does not match supplied height"),size}_createHandle(){return this.gl.createTexture()}_deleteHandle(){this.gl.deleteTexture(this.handle),this._trackDeallocatedMemory("Texture")}_getParameter(pname){switch(pname){case 4096:return this.width;case 4097:return this.height;default:this.gl.bindTexture(this.target,this.handle);const value=this.gl.getTexParameter(this.target,pname);return this.gl.bindTexture(this.target,null),value}}_setParameter(pname,param){switch(this.gl.bindTexture(this.target,this.handle),param=this._getNPOTParam(pname,param),pname){case 33082:case 33083:this.gl.texParameterf(this.handle,pname,param);break;case 4096:case 4097:(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(!1);break;default:this.gl.texParameteri(this.target,pname,param)}return this.gl.bindTexture(this.target,null),this}_isNPOT(){return!(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(this.gl)&&(!(!this.width||!this.height)&&(!(0,_utils_utils__WEBPACK_IMPORTED_MODULE_3__.wt)(this.width)||!(0,_utils_utils__WEBPACK_IMPORTED_MODULE_3__.wt)(this.height)))}_updateForNPOT(parameters){void 0===parameters[this.gl.TEXTURE_MIN_FILTER]&&(parameters[this.gl.TEXTURE_MIN_FILTER]=this.gl.LINEAR),void 0===parameters[this.gl.TEXTURE_WRAP_S]&&(parameters[this.gl.TEXTURE_WRAP_S]=this.gl.CLAMP_TO_EDGE),void 0===parameters[this.gl.TEXTURE_WRAP_T]&&(parameters[this.gl.TEXTURE_WRAP_T]=this.gl.CLAMP_TO_EDGE)}_getNPOTParam(pname,param){if(this._isNPOT())switch(pname){case 10241:-1===NPOT_MIN_FILTERS.indexOf(param)&&(param=9729);break;case 10242:case 10243:33071!==param&&(param=33071)}return param}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/transform-feedback.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TransformFeedback}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_resource__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),_buffer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),_utils_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");class TransformFeedback extends _resource__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"TransformFeedback"}static isSupported(gl){return(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(gl)}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl),super(gl,props),this.initialize(props),this.stubRemovedMethods("TransformFeedback","v6.0",["pause","resume"]),Object.seal(this)}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.buffers={},this.unused={},this.configuration=null,this.bindOnUse=!0,(0,_utils_utils__WEBPACK_IMPORTED_MODULE_2__.nK)(this.buffers)||this.bind((()=>this._unbindBuffers())),this.setProps(props),this}setProps(props){"program"in props&&(this.configuration=props.program&&props.program.configuration),"configuration"in props&&(this.configuration=props.configuration),"bindOnUse"in props&&(props=props.bindOnUse),"buffers"in props&&this.setBuffers(props.buffers)}setBuffers(){let buffers=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.bind((()=>{for(const bufferName in buffers)this.setBuffer(bufferName,buffers[bufferName])})),this}setBuffer(locationOrName,bufferOrParams){const location=this._getVaryingIndex(locationOrName),{buffer:buffer,byteSize:byteSize,byteOffset:byteOffset}=this._getBufferParams(bufferOrParams);return location<0?(this.unused[locationOrName]=buffer,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.warn("".concat(this.id," unused varying buffer ").concat(locationOrName))(),this):(this.buffers[location]=bufferOrParams,this.bindOnUse||this._bindBuffer(location,buffer,byteOffset,byteSize),this)}begin(){let primitiveMode=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.gl.bindTransformFeedback(36386,this.handle),this._bindBuffers(),this.gl.beginTransformFeedback(primitiveMode),this}end(){return this.gl.endTransformFeedback(),this._unbindBuffers(),this.gl.bindTransformFeedback(36386,null),this}_getBufferParams(bufferOrParams){let byteOffset,byteSize,buffer;return bufferOrParams instanceof _buffer__WEBPACK_IMPORTED_MODULE_3__.Z==!1?(buffer=bufferOrParams.buffer,byteSize=bufferOrParams.byteSize,byteOffset=bufferOrParams.byteOffset):buffer=bufferOrParams,void 0===byteOffset&&void 0===byteSize||(byteOffset=byteOffset||0,byteSize=byteSize||buffer.byteLength-byteOffset),{buffer:buffer,byteOffset:byteOffset,byteSize:byteSize}}_getVaryingInfo(locationOrName){return this.configuration&&this.configuration.getVaryingInfo(locationOrName)}_getVaryingIndex(locationOrName){if(this.configuration)return this.configuration.getVaryingInfo(locationOrName).location;const location=Number(locationOrName);return Number.isFinite(location)?location:-1}_bindBuffers(){if(this.bindOnUse)for(const bufferIndex in this.buffers){const{buffer:buffer,byteSize:byteSize,byteOffset:byteOffset}=this._getBufferParams(this.buffers[bufferIndex]);this._bindBuffer(bufferIndex,buffer,byteOffset,byteSize)}}_unbindBuffers(){if(this.bindOnUse)for(const bufferIndex in this.buffers)this._bindBuffer(bufferIndex,null)}_bindBuffer(index,buffer){let byteOffset=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,byteSize=arguments.length>3?arguments[3]:void 0;const handle=buffer&&buffer.handle;return handle&&void 0!==byteSize?this.gl.bindBufferRange(35982,index,handle,byteOffset,byteSize):this.gl.bindBufferBase(35982,index,handle),this}_createHandle(){return this.gl.createTransformFeedback()}_deleteHandle(){this.gl.deleteTransformFeedback(this.handle)}_bindHandle(handle){this.gl.bindTransformFeedback(36386,this.handle)}}},"./node_modules/@luma.gl/webgl/dist/esm/features/features.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N$:function(){return getFeatures},U6:function(){return hasFeature},ag:function(){return hasFeatures}});var _webgl_features_table__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const LOG_UNSUPPORTED_FEATURE=2;function hasFeature(gl,feature){return hasFeatures(gl,feature)}function hasFeatures(gl,features){return(features=Array.isArray(features)?features:[features]).every((feature=>isFeatureSupported(gl,feature)))}function getFeatures(gl){gl.luma=gl.luma||{},gl.luma.caps=gl.luma.caps||{};for(const cap in _webgl_features_table__WEBPACK_IMPORTED_MODULE_1__.Z)void 0===gl.luma.caps[cap]&&(gl.luma.caps[cap]=isFeatureSupported(gl,cap));return gl.luma.caps}function isFeatureSupported(gl,cap){return gl.luma=gl.luma||{},gl.luma.caps=gl.luma.caps||{},void 0===gl.luma.caps[cap]&&(gl.luma.caps[cap]=function queryFeature(gl,cap){const feature=_webgl_features_table__WEBPACK_IMPORTED_MODULE_1__.Z[cap];let isSupported;(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(feature,cap);const featureDefinition=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(gl)&&feature[1]||feature[0];if("function"==typeof featureDefinition)isSupported=featureDefinition(gl);else if(Array.isArray(featureDefinition)){isSupported=!0;for(const extension of featureDefinition)isSupported=isSupported&&Boolean(gl.getExtension(extension))}else"string"==typeof featureDefinition?isSupported=Boolean(gl.getExtension(featureDefinition)):"boolean"==typeof featureDefinition?isSupported=featureDefinition:(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(!1);return isSupported}(gl,cap)),gl.luma.caps[cap]||_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.log(LOG_UNSUPPORTED_FEATURE,"Feature: ".concat(cap," not supported"))(),gl.luma.caps[cap]}},"./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{h:function(){return FEATURES}});var _classes_framebuffer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),_classes_texture_2d__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js");const FEATURES={WEBGL2:"WEBGL2",VERTEX_ARRAY_OBJECT:"VERTEX_ARRAY_OBJECT",TIMER_QUERY:"TIMER_QUERY",INSTANCED_RENDERING:"INSTANCED_RENDERING",MULTIPLE_RENDER_TARGETS:"MULTIPLE_RENDER_TARGETS",ELEMENT_INDEX_UINT32:"ELEMENT_INDEX_UINT32",BLEND_EQUATION_MINMAX:"BLEND_EQUATION_MINMAX",FLOAT_BLEND:"FLOAT_BLEND",COLOR_ENCODING_SRGB:"COLOR_ENCODING_SRGB",TEXTURE_DEPTH:"TEXTURE_DEPTH",TEXTURE_FLOAT:"TEXTURE_FLOAT",TEXTURE_HALF_FLOAT:"TEXTURE_HALF_FLOAT",TEXTURE_FILTER_LINEAR_FLOAT:"TEXTURE_FILTER_LINEAR_FLOAT",TEXTURE_FILTER_LINEAR_HALF_FLOAT:"TEXTURE_FILTER_LINEAR_HALF_FLOAT",TEXTURE_FILTER_ANISOTROPIC:"TEXTURE_FILTER_ANISOTROPIC",COLOR_ATTACHMENT_RGBA32F:"COLOR_ATTACHMENT_RGBA32F",COLOR_ATTACHMENT_FLOAT:"COLOR_ATTACHMENT_FLOAT",COLOR_ATTACHMENT_HALF_FLOAT:"COLOR_ATTACHMENT_HALF_FLOAT",GLSL_FRAG_DATA:"GLSL_FRAG_DATA",GLSL_FRAG_DEPTH:"GLSL_FRAG_DEPTH",GLSL_DERIVATIVES:"GLSL_DERIVATIVES",GLSL_TEXTURE_LOD:"GLSL_TEXTURE_LOD"};__webpack_exports__.Z={[FEATURES.WEBGL2]:[!1,!0],[FEATURES.VERTEX_ARRAY_OBJECT]:["OES_vertex_array_object",!0],[FEATURES.TIMER_QUERY]:["EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2"],[FEATURES.INSTANCED_RENDERING]:["ANGLE_instanced_arrays",!0],[FEATURES.MULTIPLE_RENDER_TARGETS]:["WEBGL_draw_buffers",!0],[FEATURES.ELEMENT_INDEX_UINT32]:["OES_element_index_uint",!0],[FEATURES.BLEND_EQUATION_MINMAX]:["EXT_blend_minmax",!0],[FEATURES.FLOAT_BLEND]:["EXT_float_blend"],[FEATURES.COLOR_ENCODING_SRGB]:["EXT_sRGB",!0],[FEATURES.TEXTURE_DEPTH]:["WEBGL_depth_texture",!0],[FEATURES.TEXTURE_FLOAT]:["OES_texture_float",!0],[FEATURES.TEXTURE_HALF_FLOAT]:["OES_texture_half_float",!0],[FEATURES.TEXTURE_FILTER_LINEAR_FLOAT]:["OES_texture_float_linear"],[FEATURES.TEXTURE_FILTER_LINEAR_HALF_FLOAT]:["OES_texture_half_float_linear"],[FEATURES.TEXTURE_FILTER_ANISOTROPIC]:["EXT_texture_filter_anisotropic"],[FEATURES.COLOR_ATTACHMENT_RGBA32F]:[function checkFloat32ColorAttachment(gl){const testTexture=new _classes_texture_2d__WEBPACK_IMPORTED_MODULE_0__.Z(gl,{format:6408,type:5126,dataFormat:6408}),testFb=new _classes_framebuffer__WEBPACK_IMPORTED_MODULE_1__.Z(gl,{id:"test-framebuffer",check:!1,attachments:{36064:testTexture}}),status=testFb.getStatus();return testTexture.delete(),testFb.delete(),36053===status},"EXT_color_buffer_float"],[FEATURES.COLOR_ATTACHMENT_FLOAT]:[!1,"EXT_color_buffer_float"],[FEATURES.COLOR_ATTACHMENT_HALF_FLOAT]:["EXT_color_buffer_half_float"],[FEATURES.GLSL_FRAG_DATA]:["WEBGL_draw_buffers",!0],[FEATURES.GLSL_FRAG_DEPTH]:["EXT_frag_depth",!0],[FEATURES.GLSL_DERIVATIVES]:["OES_standard_derivatives",!0],[FEATURES.GLSL_TEXTURE_LOD]:["EXT_shader_texture_lod",!0]}},"./node_modules/@luma.gl/webgl/dist/esm/init.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{lR:function(){return lumaStats}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_probe_gl_stats__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@probe.gl/stats/dist/esm/index.js"),_probe_gl_env__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js");const lumaStats=new class StatsManager{constructor(){this.stats=new Map}get(name){return this.stats.has(name)||this.stats.set(name,new _probe_gl_stats__WEBPACK_IMPORTED_MODULE_1__.jk({id:name})),this.stats.get(name)}};if(globalThis.luma&&"8.5.21"!==globalThis.luma.VERSION)throw new Error("luma.gl - multiple VERSIONs detected: ".concat(globalThis.luma.VERSION," vs ").concat("8.5.21"));globalThis.luma||((0,_probe_gl_env__WEBPACK_IMPORTED_MODULE_2__.Z)()&&_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.log(1,"luma.gl ".concat("8.5.21"," - ").concat("set luma.log.level=1 (or higher) to trace rendering"))(),globalThis.luma=globalThis.luma||{VERSION:"8.5.21",version:"8.5.21",log:_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM,stats:lumaStats,globals:{modules:{},nodeIO:{}}});globalThis.luma},"./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"luma.gl: assertion failed.")}__webpack_require__.d(__webpack_exports__,{h:function(){return assert}})},"./node_modules/@luma.gl/webgl/dist/esm/utils/check-props.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return checkProps}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");function checkProps(className,props,propChecks){const{removedProps:removedProps={},deprecatedProps:deprecatedProps={},replacedProps:replacedProps={}}=propChecks;for(const propName in removedProps)if(propName in props){const replacement=removedProps[propName]?"".concat(className,".").concat(removedProps[propName]):"N/A";_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.removed("".concat(className,".").concat(propName),replacement)()}for(const propName in deprecatedProps)if(propName in props){const replacementProp=deprecatedProps[propName];_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("".concat(className,".").concat(propName),"".concat(className,".").concat(replacementProp))()}let newProps=null;for(const propName in replacedProps)if(propName in props){const replacementProp=replacedProps[propName];_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("".concat(className,".").concat(propName),"".concat(className,".").concat(replacementProp))(),newProps=newProps||Object.assign({},props),newProps[replacementProp]=props[propName],delete newProps[propName]}return newProps||props}},"./node_modules/@luma.gl/webgl/dist/esm/utils/stub-methods.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:function(){return stubRemovedMethods}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");function stubRemovedMethods(instance,className,version,methodNames){const upgradeMessage="See luma.gl ".concat(version," Upgrade Guide at https://luma.gl/docs/upgrade-guide"),prototype=Object.getPrototypeOf(instance);methodNames.forEach((methodName=>{prototype.methodName||(prototype[methodName]=()=>{throw _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.removed("Calling removed method ".concat(className,".").concat(methodName,": "),upgradeMessage)(),new Error(methodName)})}))}},"./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{hQ:function(){return uid},nK:function(){return isObjectEmpty},wt:function(){return isPowerOfTwo}});var _assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const uidCounters={};function uid(){let id=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";uidCounters[id]=uidCounters[id]||1;const count=uidCounters[id]++;return"".concat(id,"-").concat(count)}function isPowerOfTwo(n){return(0,_assert__WEBPACK_IMPORTED_MODULE_0__.h)("number"==typeof n,"Input must be a number"),n&&0==(n&n-1)}function isObjectEmpty(obj){let isEmpty=!0;for(const key in obj){isEmpty=!1;break}return isEmpty}},"./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/attribute-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$Z:function(){return getPrimitiveDrawMode},hJ:function(){return decomposeCompositeGLType},jG:function(){return getCompositeGLType}});var _utils_assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const GL_BYTE=5120,GL_UNSIGNED_BYTE=5121,GL_SHORT=5122,GL_UNSIGNED_SHORT=5123,GL_POINTS=0,GL_LINES=1,GL_LINE_LOOP=2,GL_LINE_STRIP=3,GL_TRIANGLES=4,GL_TRIANGLE_STRIP=5,GL_TRIANGLE_FAN=6,GL_FLOAT=5126,COMPOSITE_GL_TYPES={[GL_FLOAT]:[GL_FLOAT,1,"float"],35664:[GL_FLOAT,2,"vec2"],35665:[GL_FLOAT,3,"vec3"],35666:[GL_FLOAT,4,"vec4"],5124:[5124,1,"int"],35667:[5124,2,"ivec2"],35668:[5124,3,"ivec3"],35669:[5124,4,"ivec4"],5125:[5125,1,"uint"],36294:[5125,2,"uvec2"],36295:[5125,3,"uvec3"],36296:[5125,4,"uvec4"],35670:[GL_FLOAT,1,"bool"],35671:[GL_FLOAT,2,"bvec2"],35672:[GL_FLOAT,3,"bvec3"],35673:[GL_FLOAT,4,"bvec4"],35674:[GL_FLOAT,8,"mat2"],35685:[GL_FLOAT,8,"mat2x3"],35686:[GL_FLOAT,8,"mat2x4"],35675:[GL_FLOAT,12,"mat3"],35687:[GL_FLOAT,12,"mat3x2"],35688:[GL_FLOAT,12,"mat3x4"],35676:[GL_FLOAT,16,"mat4"],35689:[GL_FLOAT,16,"mat4x2"],35690:[GL_FLOAT,16,"mat4x3"]};function getPrimitiveDrawMode(drawMode){switch(drawMode){case GL_POINTS:return GL_POINTS;case GL_LINES:case GL_LINE_STRIP:case GL_LINE_LOOP:return GL_LINES;case GL_TRIANGLES:case GL_TRIANGLE_STRIP:case GL_TRIANGLE_FAN:return GL_TRIANGLES;default:return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_0__.h)(!1),0}}function decomposeCompositeGLType(compositeGLType){const typeAndSize=COMPOSITE_GL_TYPES[compositeGLType];if(!typeAndSize)return null;const[type,components]=typeAndSize;return{type:type,components:components}}function getCompositeGLType(type,components){switch(type){case GL_BYTE:case GL_UNSIGNED_BYTE:case GL_SHORT:case GL_UNSIGNED_SHORT:type=GL_FLOAT}for(const glType in COMPOSITE_GL_TYPES){const[compType,compComponents,name]=COMPOSITE_GL_TYPES[glType];if(compType===type&&compComponents===components)return{glType:glType,name:name}}return null}},"./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/constants-to-keys.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{km:function(){return getKey},sF:function(){return getKeyValue}});var _utils_assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");function getKeyValue(gl,name){if("string"!=typeof name)return name;const number=Number(name);if(!isNaN(number))return number;const value=gl[name=name.replace(/^.*\./,"")];return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_0__.h)(void 0!==value,"Accessing undefined constant GL.".concat(name)),value}function getKey(gl,value){value=Number(value);for(const key in gl)if(gl[key]===value)return"GL.".concat(key);return String(value)}},"./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/texture-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return toFramebuffer},h:function(){return cloneTextureFrom}});var _classes_texture_2d__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),_classes_texture_cube__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-cube.js"),_classes_texture_3d__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-3d.js"),_classes_framebuffer__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");function cloneTextureFrom(refTexture,overrides){(0,_utils_assert__WEBPACK_IMPORTED_MODULE_0__.h)(refTexture instanceof _classes_texture_2d__WEBPACK_IMPORTED_MODULE_1__.Z||refTexture instanceof _classes_texture_cube__WEBPACK_IMPORTED_MODULE_2__.Z||refTexture instanceof _classes_texture_3d__WEBPACK_IMPORTED_MODULE_3__.Z);const TextureType=refTexture.constructor,{gl:gl,width:width,height:height,format:format,type:type,dataFormat:dataFormat,border:border,mipmaps:mipmaps}=refTexture;return new TextureType(gl,Object.assign({width:width,height:height,format:format,type:type,dataFormat:dataFormat,border:border,mipmaps:mipmaps},overrides))}function toFramebuffer(texture,opts){const{gl:gl,width:width,height:height,id:id}=texture;return new _classes_framebuffer__WEBPACK_IMPORTED_MODULE_4__.Z(gl,Object.assign({},opts,{id:"framebuffer-for-".concat(id),width:width,height:height,attachments:{36064:texture}}))}},"./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/typed-array-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{KS:function(){return scalePixels},O:function(){return getGLTypeFromTypedArray},c$:function(){return flipRows},vN:function(){return getTypedArrayFromGLType}});const ERR_TYPE_DEDUCTION="Failed to deduce GL constant from typed array";function getGLTypeFromTypedArray(arrayOrType){switch(ArrayBuffer.isView(arrayOrType)?arrayOrType.constructor:arrayOrType){case Float32Array:return 5126;case Uint16Array:return 5123;case Uint32Array:return 5125;case Uint8Array:case Uint8ClampedArray:return 5121;case Int8Array:return 5120;case Int16Array:return 5122;case Int32Array:return 5124;default:throw new Error(ERR_TYPE_DEDUCTION)}}function getTypedArrayFromGLType(glType){let{clamped:clamped=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(glType){case 5126:return Float32Array;case 5123:case 33635:case 32819:case 32820:return Uint16Array;case 5125:return Uint32Array;case 5121:return clamped?Uint8ClampedArray:Uint8Array;case 5120:return Int8Array;case 5122:return Int16Array;case 5124:return Int32Array;default:throw new Error("Failed to deduce typed array type from GL constant")}}function flipRows(_ref){let{data:data,width:width,height:height,bytesPerPixel:bytesPerPixel=4,temp:temp}=_ref;const bytesPerRow=width*bytesPerPixel;temp=temp||new Uint8Array(bytesPerRow);for(let y=0;y0?", ":"")+(0,_lib_common__WEBPACK_IMPORTED_MODULE_0__.Bw)(this[i],opts);return"".concat(opts.printTypes?this.constructor.name:"","[").concat(string,"]")}equals(array){if(!array||this.length!==array.length)return!1;for(let i=0;i=0&&i=0&&i2*Math.PI)throw Error("expected radians")}},"./node_modules/@math.gl/core/dist/esm/classes/vector3.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Vector3}});var _base_vector__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/vector.js"),_lib_common__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_lib_validators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js"),gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js"),_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/gl-matrix-extras.js");const ORIGIN=[0,0,0];let ZERO;class Vector3 extends _base_vector__WEBPACK_IMPORTED_MODULE_0__.Z{static get ZERO(){return ZERO||(ZERO=new Vector3(0,0,0),Object.freeze(ZERO)),ZERO}constructor(x=0,y=0,z=0){super(-0,-0,-0),1===arguments.length&&(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.kJ)(x)?this.copy(x):(_lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(y),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(z)),this[0]=x,this[1]=y,this[2]=z)}set(x,y,z){return this[0]=x,this[1]=y,this[2]=z,this.check()}copy(array){return this[0]=array[0],this[1]=array[1],this[2]=array[2],this.check()}fromObject(object){return _lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.y),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.z)),this[0]=object.x,this[1]=object.y,this[2]=object.z,this.check()}toObject(object){return object.x=this[0],object.y=this[1],object.z=this[2],object}get ELEMENTS(){return 3}get z(){return this[2]}set z(value){this[2]=(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(value)}angle(vector){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.EU(this,vector)}cross(vector){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.kC(this,this,vector),this.check()}rotateX({radians:radians,origin:origin=ORIGIN}){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.lM(this,this,origin,radians),this.check()}rotateY({radians:radians,origin:origin=ORIGIN}){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.uD(this,this,origin,radians),this.check()}rotateZ({radians:radians,origin:origin=ORIGIN}){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.jI(this,this,origin,radians),this.check()}transform(matrix4){return this.transformAsPoint(matrix4)}transformAsPoint(matrix4){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.fF(this,this,matrix4),this.check()}transformAsVector(matrix4){return(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__.pL)(this,this,matrix4),this.check()}transformByMatrix3(matrix3){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.kK(this,this,matrix3),this.check()}transformByMatrix2(matrix2){return(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__.eQ)(this,this,matrix2),this.check()}transformByQuaternion(quaternion){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.VC(this,this,quaternion),this.check()}}},"./node_modules/@math.gl/core/dist/esm/lib/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error("math.gl assertion ".concat(message))}__webpack_require__.d(__webpack_exports__,{Z:function(){return assert}})},"./node_modules/@math.gl/core/dist/esm/lib/common.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{BJ:function(){return withEpsilon},Bw:function(){return formatValue},I6:function(){return exactEquals},Kh:function(){return acos},O$:function(){return sin},OR:function(){return tan},RW:function(){return degrees},Ux:function(){return toDegrees},Yr:function(){return toRadians},ZR:function(){return asin},d9:function(){return clone},fS:function(){return equals},jQ:function(){return configure},kJ:function(){return isArray},mC:function(){return cos},t7:function(){return lerp},uR:function(){return radians},uZ:function(){return clamp},vc:function(){return config},z4:function(){return atan}});var _assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/assert.js");const RADIANS_TO_DEGREES=1/Math.PI*180,DEGREES_TO_RADIANS=1/180*Math.PI,config={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0};function configure(options){for(const key in options)(0,_assert__WEBPACK_IMPORTED_MODULE_0__.Z)(key in config),config[key]=options[key];return config}function formatValue(value,{precision:precision=config.precision}={}){return value=function round(value){return Math.round(value/config.EPSILON)*config.EPSILON}(value),"".concat(parseFloat(value.toPrecision(precision)))}function isArray(value){return Array.isArray(value)||ArrayBuffer.isView(value)&&!(value instanceof DataView)}function clone(array){return"clone"in array?array.clone():array.slice()}function toRadians(degrees){return radians(degrees)}function toDegrees(radians){return degrees(radians)}function radians(degrees,result){return map(degrees,(degrees=>degrees*DEGREES_TO_RADIANS),result)}function degrees(radians,result){return map(radians,(radians=>radians*RADIANS_TO_DEGREES),result)}function sin(radians,result){return map(radians,(angle=>Math.sin(angle)),result)}function cos(radians,result){return map(radians,(angle=>Math.cos(angle)),result)}function tan(radians,result){return map(radians,(angle=>Math.tan(angle)),result)}function asin(radians,result){return map(radians,(angle=>Math.asin(angle)),result)}function acos(radians,result){return map(radians,(angle=>Math.acos(angle)),result)}function atan(radians,result){return map(radians,(angle=>Math.atan(angle)),result)}function clamp(value,min,max){return map(value,(value=>Math.max(min,Math.min(max,value))))}function lerp(a,b,t){return isArray(a)?a.map(((ai,i)=>lerp(ai,b[i],t))):t*b+(1-t)*a}function equals(a,b,epsilon){const oldEpsilon=config.EPSILON;epsilon&&(config.EPSILON=epsilon);try{if(a===b)return!0;if(isArray(a)&&isArray(b)){if(a.length!==b.length)return!1;for(let i=0;imax?max:x}const log2=Math.log2||function ieLog2(x){return Math.log(x)*Math.LOG2E};var mat4=__webpack_require__("./node_modules/gl-matrix/esm/mat4.js"),vec2=__webpack_require__("./node_modules/gl-matrix/esm/vec2.js"),vec3=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js");function assert(condition,message){if(!condition)throw new Error(message||"@math.gl/web-mercator: assertion failed.")}const PI=Math.PI,PI_4=PI/4,DEGREES_TO_RADIANS=PI/180,RADIANS_TO_DEGREES=180/PI,TILE_SIZE=512,EARTH_CIRCUMFERENCE=4003e4,MAX_LATITUDE=85.051129,DEFAULT_ALTITUDE=1.5;function zoomToScale(zoom){return Math.pow(2,zoom)}function scaleToZoom(scale){return log2(scale)}function lngLatToWorld(lngLat){const[lng,lat]=lngLat;assert(Number.isFinite(lng)),assert(Number.isFinite(lat)&&lat>=-90&&lat<=90,"invalid latitude");const phi2=lat*DEGREES_TO_RADIANS;return[TILE_SIZE*(lng*DEGREES_TO_RADIANS+PI)/(2*PI),TILE_SIZE*(PI+Math.log(Math.tan(PI_4+.5*phi2)))/(2*PI)]}function worldToLngLat(xy){const[x,y]=xy,lambda2=x/TILE_SIZE*(2*PI)-PI,phi2=2*(Math.atan(Math.exp(y/TILE_SIZE*(2*PI)-PI))-PI_4);return[lambda2*RADIANS_TO_DEGREES,phi2*RADIANS_TO_DEGREES]}function getMeterZoom(options){const{latitude:latitude}=options;assert(Number.isFinite(latitude));const latCosine=Math.cos(latitude*DEGREES_TO_RADIANS);return scaleToZoom(EARTH_CIRCUMFERENCE*latCosine)-9}function unitsPerMeter(latitude){const latCosine=Math.cos(latitude*DEGREES_TO_RADIANS);return TILE_SIZE/EARTH_CIRCUMFERENCE/latCosine}function getDistanceScales(options){const{latitude:latitude,longitude:longitude,highPrecision:highPrecision=!1}=options;assert(Number.isFinite(latitude)&&Number.isFinite(longitude));const worldSize=TILE_SIZE,latCosine=Math.cos(latitude*DEGREES_TO_RADIANS),unitsPerDegreeX=worldSize/360,unitsPerDegreeY=unitsPerDegreeX/latCosine,altUnitsPerMeter=worldSize/EARTH_CIRCUMFERENCE/latCosine,result={unitsPerMeter:[altUnitsPerMeter,altUnitsPerMeter,altUnitsPerMeter],metersPerUnit:[1/altUnitsPerMeter,1/altUnitsPerMeter,1/altUnitsPerMeter],unitsPerDegree:[unitsPerDegreeX,unitsPerDegreeY,altUnitsPerMeter],degreesPerUnit:[1/unitsPerDegreeX,1/unitsPerDegreeY,1/altUnitsPerMeter]};if(highPrecision){const latCosine2=DEGREES_TO_RADIANS*Math.tan(latitude*DEGREES_TO_RADIANS)/latCosine,unitsPerDegreeY2=unitsPerDegreeX*latCosine2/2,altUnitsPerDegree2=worldSize/EARTH_CIRCUMFERENCE*latCosine2,altUnitsPerMeter2=altUnitsPerDegree2/unitsPerDegreeY*altUnitsPerMeter;result.unitsPerDegree2=[0,unitsPerDegreeY2,altUnitsPerDegree2],result.unitsPerMeter2=[altUnitsPerMeter2,0,altUnitsPerMeter2]}return result}function addMetersToLngLat(lngLatZ,xyz){const[longitude,latitude,z0]=lngLatZ,[x,y,z]=xyz,{unitsPerMeter:unitsPerMeter,unitsPerMeter2:unitsPerMeter2}=getDistanceScales({longitude:longitude,latitude:latitude,highPrecision:!0}),worldspace=lngLatToWorld(lngLatZ);worldspace[0]+=x*(unitsPerMeter[0]+unitsPerMeter2[0]*y),worldspace[1]+=y*(unitsPerMeter[1]+unitsPerMeter2[1]*y);const newLngLat=worldToLngLat(worldspace),newZ=(z0||0)+(z||0);return Number.isFinite(z0)||Number.isFinite(z)?[newLngLat[0],newLngLat[1],newZ]:newLngLat}function getViewMatrix(options){const{height:height,pitch:pitch,bearing:bearing,altitude:altitude,scale:scale,center:center}=options,vm=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];mat4.Iu(vm,vm,[0,0,-altitude]),mat4.lM(vm,vm,-pitch*DEGREES_TO_RADIANS),mat4.jI(vm,vm,bearing*DEGREES_TO_RADIANS);const relativeScale=scale/height;return mat4.bA(vm,vm,[relativeScale,relativeScale,relativeScale]),center&&mat4.Iu(vm,vm,vec3.tk([],center)),vm}function getProjectionParameters(options){const{width:width,height:height,altitude:altitude,pitch:pitch=0,offset:offset,center:center,scale:scale,nearZMultiplier:nearZMultiplier=1,farZMultiplier:farZMultiplier=1}=options;let{fovy:fovy=altitudeToFovy(DEFAULT_ALTITUDE)}=options;void 0!==altitude&&(fovy=altitudeToFovy(altitude));const fovRadians=fovy*DEGREES_TO_RADIANS,pitchRadians=pitch*DEGREES_TO_RADIANS,focalDistance=fovyToAltitude(fovy);let cameraToSeaLevelDistance=focalDistance;center&&(cameraToSeaLevelDistance+=center[2]*scale/Math.cos(pitchRadians)/height);const fovAboveCenter=fovRadians*(.5+(offset?offset[1]:0)/height),topHalfSurfaceDistance=Math.sin(fovAboveCenter)*cameraToSeaLevelDistance/Math.sin(clamp(Math.PI/2-pitchRadians-fovAboveCenter,.01,Math.PI-.01)),furthestDistance=Math.sin(pitchRadians)*topHalfSurfaceDistance+cameraToSeaLevelDistance,horizonDistance=10*cameraToSeaLevelDistance;return{fov:fovRadians,aspect:width/height,focalDistance:focalDistance,near:nearZMultiplier,far:Math.min(furthestDistance*farZMultiplier,horizonDistance)}}function getProjectionMatrix(options){const{fov:fov,aspect:aspect,near:near,far:far}=getProjectionParameters(options);return mat4.G3([],fov,aspect,near,far)}function altitudeToFovy(altitude){return 2*Math.atan(.5/altitude)*RADIANS_TO_DEGREES}function fovyToAltitude(fovy){return.5/Math.tan(.5*fovy*DEGREES_TO_RADIANS)}function worldToPixels(xyz,pixelProjectionMatrix){const[x,y,z=0]=xyz;return assert(Number.isFinite(x)&&Number.isFinite(y)&&Number.isFinite(z)),transformVector(pixelProjectionMatrix,[x,y,z,1])}function pixelsToWorld(xyz,pixelUnprojectionMatrix,targetZ=0){const[x,y,z]=xyz;if(assert(Number.isFinite(x)&&Number.isFinite(y),"invalid pixel coordinate"),Number.isFinite(z)){return transformVector(pixelUnprojectionMatrix,[x,y,z,1])}const coord0=transformVector(pixelUnprojectionMatrix,[x,y,0,1]),coord1=transformVector(pixelUnprojectionMatrix,[x,y,1,1]),z0=coord0[2],z1=coord1[2],t=z0===z1?0:((targetZ||0)-z0)/(z1-z0);return vec2.t7([],coord0,coord1,t)}function fitBounds(options){const{width:width,height:height,bounds:bounds,minExtent:minExtent=0,maxZoom:maxZoom=24,offset:offset=[0,0]}=options,[[west,south],[east,north]]=bounds,padding=function getPaddingObject(padding=0){if("number"==typeof padding)return{top:padding,bottom:padding,left:padding,right:padding};return assert(Number.isFinite(padding.top)&&Number.isFinite(padding.bottom)&&Number.isFinite(padding.left)&&Number.isFinite(padding.right)),padding}(options.padding),nw=lngLatToWorld([west,clamp(north,-MAX_LATITUDE,MAX_LATITUDE)]),se=lngLatToWorld([east,clamp(south,-MAX_LATITUDE,MAX_LATITUDE)]),size=[Math.max(Math.abs(se[0]-nw[0]),minExtent),Math.max(Math.abs(se[1]-nw[1]),minExtent)],targetSize=[width-padding.left-padding.right-2*Math.abs(offset[0]),height-padding.top-padding.bottom-2*Math.abs(offset[1])];assert(targetSize[0]>0&&targetSize[1]>0);const scaleX=targetSize[0]/size[0],scaleY=targetSize[1]/size[1],offsetX=(padding.right-padding.left)/2/scaleX,offsetY=(padding.top-padding.bottom)/2/scaleY,centerLngLat=worldToLngLat([(se[0]+nw[0])/2+offsetX,(se[1]+nw[1])/2+offsetY]),zoom=Math.min(maxZoom,log2(Math.abs(Math.min(scaleX,scaleY))));return assert(Number.isFinite(zoom)),{longitude:centerLngLat[0],latitude:centerLngLat[1],zoom:zoom}}const get_bounds_DEGREES_TO_RADIANS=Math.PI/180;function getBounds(viewport,z=0){const{width:width,height:height,unproject:unproject}=viewport,unprojectOps={targetZ:z},bottomLeft=unproject([0,height],unprojectOps),bottomRight=unproject([width,height],unprojectOps);let topLeft,topRight;return(viewport.fovy?.5*viewport.fovy*get_bounds_DEGREES_TO_RADIANS:Math.atan(.5/viewport.altitude))>(90-viewport.pitch)*get_bounds_DEGREES_TO_RADIANS-.01?(topLeft=unprojectOnFarPlane(viewport,0,z),topRight=unprojectOnFarPlane(viewport,width,z)):(topLeft=unproject([0,0],unprojectOps),topRight=unproject([width,0],unprojectOps)),[bottomLeft,bottomRight,topRight,topLeft]}function unprojectOnFarPlane(viewport,x,targetZ){const{pixelUnprojectionMatrix:pixelUnprojectionMatrix}=viewport,coord0=transformVector(pixelUnprojectionMatrix,[x,0,1,1]),coord1=transformVector(pixelUnprojectionMatrix,[x,viewport.height,1,1]),t=(targetZ*viewport.distanceScales.unitsPerMeter[2]-coord0[2])/(coord1[2]-coord0[2]),result=worldToLngLat(vec2.t7([],coord0,coord1,t));return result.push(targetZ),result}class WebMercatorViewport{constructor(props={width:1,height:1}){(0,defineProperty.Z)(this,"latitude",void 0),(0,defineProperty.Z)(this,"longitude",void 0),(0,defineProperty.Z)(this,"zoom",void 0),(0,defineProperty.Z)(this,"pitch",void 0),(0,defineProperty.Z)(this,"bearing",void 0),(0,defineProperty.Z)(this,"altitude",void 0),(0,defineProperty.Z)(this,"fovy",void 0),(0,defineProperty.Z)(this,"meterOffset",void 0),(0,defineProperty.Z)(this,"center",void 0),(0,defineProperty.Z)(this,"width",void 0),(0,defineProperty.Z)(this,"height",void 0),(0,defineProperty.Z)(this,"scale",void 0),(0,defineProperty.Z)(this,"distanceScales",void 0),(0,defineProperty.Z)(this,"viewMatrix",void 0),(0,defineProperty.Z)(this,"projectionMatrix",void 0),(0,defineProperty.Z)(this,"viewProjectionMatrix",void 0),(0,defineProperty.Z)(this,"pixelProjectionMatrix",void 0),(0,defineProperty.Z)(this,"pixelUnprojectionMatrix",void 0),(0,defineProperty.Z)(this,"equals",(viewport=>viewport instanceof WebMercatorViewport&&(viewport.width===this.width&&viewport.height===this.height&&mat4.fS(viewport.projectionMatrix,this.projectionMatrix)&&mat4.fS(viewport.viewMatrix,this.viewMatrix)))),(0,defineProperty.Z)(this,"project",((lngLatZ,options={})=>{const{topLeft:topLeft=!0}=options,coord=worldToPixels(this.projectPosition(lngLatZ),this.pixelProjectionMatrix),[x,y]=coord,y2=topLeft?y:this.height-y;return 2===lngLatZ.length?[x,y2]:[x,y2,coord[2]]})),(0,defineProperty.Z)(this,"unproject",((xyz,options={})=>{const{topLeft:topLeft=!0,targetZ:targetZ}=options,[x,y,z]=xyz,y2=topLeft?y:this.height-y,targetZWorld=targetZ&&targetZ*this.distanceScales.unitsPerMeter[2],coord=pixelsToWorld([x,y2,z],this.pixelUnprojectionMatrix,targetZWorld),[X,Y,Z]=this.unprojectPosition(coord);return Number.isFinite(z)?[X,Y,Z]:Number.isFinite(targetZ)?[X,Y,targetZ]:[X,Y]})),(0,defineProperty.Z)(this,"projectPosition",(xyz=>{const[X,Y]=lngLatToWorld(xyz);return[X,Y,(xyz[2]||0)*this.distanceScales.unitsPerMeter[2]]})),(0,defineProperty.Z)(this,"unprojectPosition",(xyz=>{const[X,Y]=worldToLngLat(xyz);return[X,Y,(xyz[2]||0)*this.distanceScales.metersPerUnit[2]]}));let{width:width,height:height,altitude:altitude=null,fovy:fovy=null}=props;const{latitude:latitude=0,longitude:longitude=0,zoom:zoom=0,pitch:pitch=0,bearing:bearing=0,position:position=null,nearZMultiplier:nearZMultiplier=.02,farZMultiplier:farZMultiplier=1.01}=props;width=width||1,height=height||1,null===fovy&&null===altitude?(altitude=DEFAULT_ALTITUDE,fovy=altitudeToFovy(altitude)):null===fovy?fovy=altitudeToFovy(altitude):null===altitude&&(altitude=fovyToAltitude(fovy));const scale=zoomToScale(zoom);altitude=Math.max(.75,altitude);const distanceScales=getDistanceScales({longitude:longitude,latitude:latitude}),center=lngLatToWorld([longitude,latitude]);center.push(0),position&&vec3.IH(center,center,vec3.dC([],position,distanceScales.unitsPerMeter)),this.projectionMatrix=getProjectionMatrix({width:width,height:height,scale:scale,center:center,pitch:pitch,fovy:fovy,nearZMultiplier:nearZMultiplier,farZMultiplier:farZMultiplier}),this.viewMatrix=getViewMatrix({height:height,scale:scale,center:center,pitch:pitch,bearing:bearing,altitude:altitude}),this.width=width,this.height=height,this.scale=scale,this.latitude=latitude,this.longitude=longitude,this.zoom=zoom,this.pitch=pitch,this.bearing=bearing,this.altitude=altitude,this.fovy=fovy,this.center=center,this.meterOffset=position||[0,0,0],this.distanceScales=distanceScales,this._initMatrices(),Object.freeze(this)}_initMatrices(){const{width:width,height:height,projectionMatrix:projectionMatrix,viewMatrix:viewMatrix}=this,vpm=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];mat4.Jp(vpm,vpm,projectionMatrix),mat4.Jp(vpm,vpm,viewMatrix),this.viewProjectionMatrix=vpm;const m=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];mat4.bA(m,m,[width/2,-height/2,1]),mat4.Iu(m,m,[1,-1,0]),mat4.Jp(m,m,vpm);const mInverse=mat4.U_([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],m);if(!mInverse)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=m,this.pixelUnprojectionMatrix=mInverse}projectFlat(lngLat){return lngLatToWorld(lngLat)}unprojectFlat(xy){return worldToLngLat(xy)}getMapCenterByLngLatPosition({lngLat:lngLat,pos:pos}){const fromLocation=pixelsToWorld(pos,this.pixelUnprojectionMatrix),toLocation=lngLatToWorld(lngLat),translate=vec2.IH([],toLocation,vec2.tk([],fromLocation));return worldToLngLat(vec2.IH([],this.center,translate))}fitBounds(bounds,options={}){const{width:width,height:height}=this,{longitude:longitude,latitude:latitude,zoom:zoom}=fitBounds(Object.assign({width:width,height:height,bounds:bounds},options));return new WebMercatorViewport({width:width,height:height,longitude:longitude,latitude:latitude,zoom:zoom})}getBounds(options){const corners=this.getBoundingRegion(options),west=Math.min(...corners.map((p=>p[0]))),east=Math.max(...corners.map((p=>p[0])));return[[west,Math.min(...corners.map((p=>p[1])))],[east,Math.max(...corners.map((p=>p[1])))]]}getBoundingRegion(options={}){return getBounds(this,options.z||0)}getLocationAtPoint({lngLat:lngLat,pos:pos}){return this.getMapCenterByLngLatPosition({lngLat:lngLat,pos:pos})}}const normalize_viewport_props_TILE_SIZE=512;function normalizeViewportProps(props){const{width:width,height:height,pitch:pitch=0}=props;let{longitude:longitude,latitude:latitude,zoom:zoom,bearing:bearing=0}=props;(longitude<-180||longitude>180)&&(longitude=mod(longitude+180,360)-180),(bearing<-180||bearing>180)&&(bearing=mod(bearing+180,360)-180);const minZoom=log2(height/normalize_viewport_props_TILE_SIZE);if(zoom<=minZoom)zoom=minZoom,latitude=0;else{const halfHeightPixels=height/2/Math.pow(2,zoom),minLatitude=worldToLngLat([0,halfHeightPixels])[1];if(latitudemaxLatitude&&(latitude=maxLatitude)}}return{width:width,height:height,longitude:longitude,latitude:latitude,zoom:zoom,pitch:pitch,bearing:bearing}}const EPSILON=.01,VIEWPORT_TRANSITION_PROPS=["longitude","latitude","zoom"],DEFAULT_OPTS={curve:1.414,speed:1.2};function flyToViewport(startProps,endProps,t,options){const{startZoom:startZoom,startCenterXY:startCenterXY,uDelta:uDelta,w0:w0,u1:u1,S:S,rho:rho,rho2:rho2,r0:r0}=getFlyToTransitionParams(startProps,endProps,options);if(u1maxDuration?0:duration}function getFlyToTransitionParams(startProps,endProps,opts){const rho=(opts=Object.assign({},DEFAULT_OPTS,opts)).curve,startZoom=startProps.zoom,startCenter=[startProps.longitude,startProps.latitude],startScale=zoomToScale(startZoom),endZoom=endProps.zoom,endCenter=[endProps.longitude,endProps.latitude],scale=zoomToScale(endZoom-startZoom),startCenterXY=lngLatToWorld(startCenter),endCenterXY=lngLatToWorld(endCenter),uDelta=vec2.lu([],endCenterXY,startCenterXY),w0=Math.max(startProps.width,startProps.height),w1=w0/scale,u1=vec2.kE(uDelta)*startScale,_u1=Math.max(u1,EPSILON),rho2=rho*rho,b0=(w1*w1-w0*w0+rho2*rho2*_u1*_u1)/(2*w0*rho2*_u1),b1=(w1*w1-w0*w0-rho2*rho2*_u1*_u1)/(2*w1*rho2*_u1),r0=Math.log(Math.sqrt(b0*b0+1)-b0),r1=Math.log(Math.sqrt(b1*b1+1)-b1);return{startZoom:startZoom,startCenterXY:startCenterXY,uDelta:uDelta,w0:w0,u1:u1,S:(r1-r0)/rho,rho:rho,rho2:rho2,r0:r0,r1:r1}}},"./node_modules/@probe.gl/env/dist/esm/lib/get-browser.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return getBrowser}});var _is_browser__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js"),_is_electron__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-electron.js");const window=globalThis;function getBrowser(mockUserAgent){if(!mockUserAgent&&!(0,_is_browser__WEBPACK_IMPORTED_MODULE_0__.Z)())return"Node";if((0,_is_electron__WEBPACK_IMPORTED_MODULE_1__.Z)(mockUserAgent))return"Electron";const navigator_="undefined"!=typeof navigator?navigator:{},userAgent=mockUserAgent||navigator_.userAgent||"";if(userAgent.indexOf("Edge")>-1)return"Edge";const isMSIE=-1!==userAgent.indexOf("MSIE "),isTrident=-1!==userAgent.indexOf("Trident/");return isMSIE||isTrident?"IE":window.chrome?"Chrome":window.safari?"Safari":window.mozInnerScreenX?"Firefox":"Unknown"}},"./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return isBrowser}});var _is_electron__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-electron.js"),process=__webpack_require__("./node_modules/process/browser.js");function isBrowser(){return!("object"==typeof process&&"[object process]"===String(process)&&!process.browser)||(0,_is_electron__WEBPACK_IMPORTED_MODULE_0__.Z)()}},"./node_modules/@probe.gl/env/dist/esm/lib/is-electron.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return isElectron}});var process=__webpack_require__("./node_modules/process/browser.js");function isElectron(mockUserAgent){if("undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type)return!0;if(void 0!==process&&"object"==typeof process.versions&&Boolean(process.versions.electron))return!0;const realUserAgent="object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent,userAgent=mockUserAgent||realUserAgent;return!!(userAgent&&userAgent.indexOf("Electron")>=0)}},"./node_modules/@probe.gl/log/dist/esm/log.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Log}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),is_browser=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js");const VERSION="undefined"!=typeof __VERSION__?__VERSION__:"untranspiled source";(0,is_browser.Z)();class LocalStorage{constructor(id,defaultConfig){let type=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";(0,defineProperty.Z)(this,"storage",void 0),(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"config",void 0),this.storage=function getStorage(type){try{const storage=window[type],x="__storage_test__";return storage.setItem(x,x),storage.removeItem(x),storage}catch(e){return null}}(type),this.id=id,this.config=defaultConfig,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(configuration){if(Object.assign(this.config,configuration),this.storage){const serialized=JSON.stringify(this.config);this.storage.setItem(this.id,serialized)}}_loadConfiguration(){let configuration={};if(this.storage){const serializedConfiguration=this.storage.getItem(this.id);configuration=serializedConfiguration?JSON.parse(serializedConfiguration):{}}return Object.assign(this.config,configuration),this}}function formatImage(image,message,scale){let maxWidth=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600;const imageUrl=image.src.replace(/\(/g,"%28").replace(/\)/g,"%29");image.width>maxWidth&&(scale=Math.min(scale,maxWidth/image.width));const width=image.width*scale,height=image.height*scale,style=["font-size:1px;","padding:".concat(Math.floor(height/2),"px ").concat(Math.floor(width/2),"px;"),"line-height:".concat(height,"px;"),"background:url(".concat(imageUrl,");"),"background-size:".concat(width,"px ").concat(height,"px;"),"color:transparent;"].join("");return["".concat(message," %c+"),style]}let COLOR;function getColor(color){return"string"==typeof color?COLOR[color.toUpperCase()]||COLOR.WHITE:color}function assert(condition,message){if(!condition)throw new Error(message||"Assertion failed")}!function(COLOR){COLOR[COLOR.BLACK=30]="BLACK",COLOR[COLOR.RED=31]="RED",COLOR[COLOR.GREEN=32]="GREEN",COLOR[COLOR.YELLOW=33]="YELLOW",COLOR[COLOR.BLUE=34]="BLUE",COLOR[COLOR.MAGENTA=35]="MAGENTA",COLOR[COLOR.CYAN=36]="CYAN",COLOR[COLOR.WHITE=37]="WHITE",COLOR[COLOR.BRIGHT_BLACK=90]="BRIGHT_BLACK",COLOR[COLOR.BRIGHT_RED=91]="BRIGHT_RED",COLOR[COLOR.BRIGHT_GREEN=92]="BRIGHT_GREEN",COLOR[COLOR.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",COLOR[COLOR.BRIGHT_BLUE=94]="BRIGHT_BLUE",COLOR[COLOR.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",COLOR[COLOR.BRIGHT_CYAN=96]="BRIGHT_CYAN",COLOR[COLOR.BRIGHT_WHITE=97]="BRIGHT_WHITE"}(COLOR||(COLOR={}));var process=__webpack_require__("./node_modules/process/browser.js");const globals={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==__webpack_require__.g&&__webpack_require__.g,document:"undefined"!=typeof document&&document,process:"object"==typeof process&&process},window_=globals.window||globals.self||globals.global,process_=globals.process||{};function getHiResTimestamp(){let timestamp;var _window$performance,_window$performance$n;if(is_browser.Z&&"performance"in window_)timestamp=null==window_||null===(_window$performance=window_.performance)||void 0===_window$performance||null===(_window$performance$n=_window$performance.now)||void 0===_window$performance$n?void 0:_window$performance$n.call(_window$performance);else if("hrtime"in process_){var _process$hrtime;const timeParts=null==process_||null===(_process$hrtime=process_.hrtime)||void 0===_process$hrtime?void 0:_process$hrtime.call(process_);timestamp=1e3*timeParts[0]+timeParts[1]/1e6}else timestamp=Date.now();return timestamp}const originalConsole={debug:is_browser.Z&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},DEFAULT_SETTINGS={enabled:!0,level:0};function noop(){}const cache={},ONCE={once:!0};class Log{constructor(){let{id:id}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:""};(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"VERSION",VERSION),(0,defineProperty.Z)(this,"_startTs",getHiResTimestamp()),(0,defineProperty.Z)(this,"_deltaTs",getHiResTimestamp()),(0,defineProperty.Z)(this,"_storage",void 0),(0,defineProperty.Z)(this,"userData",{}),(0,defineProperty.Z)(this,"LOG_THROTTLE_TIMEOUT",0),this.id=id,this.userData={},this._storage=new LocalStorage("__probe-".concat(this.id,"__"),DEFAULT_SETTINGS),this.timeStamp("".concat(this.id," started")),function autobind(obj){let predefined=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"];const proto=Object.getPrototypeOf(obj),propNames=Object.getOwnPropertyNames(proto);for(const key of propNames)"function"==typeof obj[key]&&(predefined.find((name=>key===name))||(obj[key]=obj[key].bind(obj)))}(this),Object.seal(this)}set level(newLevel){this.setLevel(newLevel)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((getHiResTimestamp()-this._startTs).toPrecision(10))}getDelta(){return Number((getHiResTimestamp()-this._deltaTs).toPrecision(10))}set priority(newPriority){this.level=newPriority}get priority(){return this.level}getPriority(){return this.level}enable(){let enabled=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._storage.setConfiguration({enabled:enabled}),this}setLevel(level){return this._storage.setConfiguration({level:level}),this}get(setting){return this._storage.config[setting]}set(setting,value){this._storage.setConfiguration({[setting]:value})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(condition,message){assert(condition,message)}warn(message){return this._getLogFunction(0,message,originalConsole.warn,arguments,ONCE)}error(message){return this._getLogFunction(0,message,originalConsole.error,arguments)}deprecated(oldUsage,newUsage){return this.warn("`".concat(oldUsage,"` is deprecated and will be removed in a later version. Use `").concat(newUsage,"` instead"))}removed(oldUsage,newUsage){return this.error("`".concat(oldUsage,"` has been removed. Use `").concat(newUsage,"` instead"))}probe(logLevel,message){return this._getLogFunction(logLevel,message,originalConsole.log,arguments,{time:!0,once:!0})}log(logLevel,message){return this._getLogFunction(logLevel,message,originalConsole.debug,arguments)}info(logLevel,message){return this._getLogFunction(logLevel,message,console.info,arguments)}once(logLevel,message){for(var _len=arguments.length,args=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)args[_key-2]=arguments[_key];return this._getLogFunction(logLevel,message,originalConsole.debug||originalConsole.info,arguments,ONCE)}table(logLevel,table,columns){return table?this._getLogFunction(logLevel,table,console.table||noop,columns&&[columns],{tag:getTableHeader(table)}):noop}image(_ref){let{logLevel:logLevel,priority:priority,image:image,message:message="",scale:scale=1}=_ref;return this._shouldLog(logLevel||priority)?is_browser.Z?function logImageInBrowser(_ref3){let{image:image,message:message="",scale:scale=1}=_ref3;if("string"==typeof image){const img=new Image;return img.onload=()=>{const args=formatImage(img,message,scale);console.log(...args)},img.src=image,noop}const element=image.nodeName||"";if("img"===element.toLowerCase())return console.log(...formatImage(image,message,scale)),noop;if("canvas"===element.toLowerCase()){const img=new Image;return img.onload=()=>console.log(...formatImage(img,message,scale)),img.src=image.toDataURL(),noop}return noop}({image:image,message:message,scale:scale}):function logImageInNode(_ref2){let{image:image,message:message="",scale:scale=1}=_ref2;return console.warn("removed"),noop}({image:image,message:message,scale:scale}):noop}time(logLevel,message){return this._getLogFunction(logLevel,message,console.time?console.time:console.info)}timeEnd(logLevel,message){return this._getLogFunction(logLevel,message,console.timeEnd?console.timeEnd:console.info)}timeStamp(logLevel,message){return this._getLogFunction(logLevel,message,console.timeStamp||noop)}group(logLevel,message){let opts=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1};const options=normalizeArguments({logLevel:logLevel,message:message,opts:opts}),{collapsed:collapsed}=opts;return options.method=(collapsed?console.groupCollapsed:console.group)||console.info,this._getLogFunction(options)}groupCollapsed(logLevel,message){let opts=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(logLevel,message,Object.assign({},opts,{collapsed:!0}))}groupEnd(logLevel){return this._getLogFunction(logLevel,"",console.groupEnd||noop)}withGroup(logLevel,message,func){this.group(logLevel,message)();try{func()}finally{this.groupEnd(logLevel)()}}trace(){console.trace&&console.trace()}_shouldLog(logLevel){return this.isEnabled()&&this.getLevel()>=normalizeLogLevel(logLevel)}_getLogFunction(logLevel,message,method,args,opts){if(this._shouldLog(logLevel)){opts=normalizeArguments({logLevel:logLevel,message:message,args:args,opts:opts}),assert(method=method||opts.method),opts.total=this.getTotal(),opts.delta=this.getDelta(),this._deltaTs=getHiResTimestamp();const tag=opts.tag||opts.message;if(opts.once){if(cache[tag])return noop;cache[tag]=getHiResTimestamp()}return message=function decorateMessage(id,message,opts){if("string"==typeof message){const time=opts.time?function leftPad(string){let length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;const padLength=Math.max(length-string.length,0);return"".concat(" ".repeat(padLength)).concat(string)}(function formatTime(ms){let formatted;return formatted=ms<10?"".concat(ms.toFixed(2),"ms"):ms<100?"".concat(ms.toFixed(1),"ms"):ms<1e3?"".concat(ms.toFixed(0),"ms"):"".concat((ms/1e3).toFixed(2),"s"),formatted}(opts.total)):"";message=function addColor(string,color,background){return is_browser.Z||"string"!=typeof string||(color&&(color=getColor(color),string="[".concat(color,"m").concat(string,"")),background&&(color=getColor(background),string="[".concat(background+10,"m").concat(string,""))),string}(message=opts.time?"".concat(id,": ").concat(time," ").concat(message):"".concat(id,": ").concat(message),opts.color,opts.background)}return message}(this.id,opts.message,opts),method.bind(console,message,...opts.args)}return noop}}function normalizeLogLevel(logLevel){if(!logLevel)return 0;let resolvedLevel;switch(typeof logLevel){case"number":resolvedLevel=logLevel;break;case"object":resolvedLevel=logLevel.logLevel||logLevel.priority||0;break;default:return 0}return assert(Number.isFinite(resolvedLevel)&&resolvedLevel>=0),resolvedLevel}function normalizeArguments(opts){const{logLevel:logLevel,message:message}=opts;opts.logLevel=normalizeLogLevel(logLevel);const args=opts.args?Array.from(opts.args):[];for(;args.length&&args.shift()!==message;);switch(typeof logLevel){case"string":case"function":void 0!==message&&args.unshift(message),opts.message=logLevel;break;case"object":Object.assign(opts,logLevel)}"function"==typeof opts.message&&(opts.message=opts.message());const messageType=typeof opts.message;return assert("string"===messageType||"object"===messageType),Object.assign(opts,{args:args},opts.opts)}function getTableHeader(table){for(const key in table)for(const title in table[key])return title||"untitled";return"empty"}(0,defineProperty.Z)(Log,"VERSION",VERSION)},"./node_modules/@probe.gl/stats/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{jk:function(){return Stats}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),process=__webpack_require__("./node_modules/process/browser.js");function getHiResTimestamp(){let timestamp;if("undefined"!=typeof window&&window.performance)timestamp=window.performance.now();else if(void 0!==process&&process.hrtime){const timeParts=process.hrtime();timestamp=1e3*timeParts[0]+timeParts[1]/1e6}else timestamp=Date.now();return timestamp}class Stat{constructor(name,type){(0,defineProperty.Z)(this,"name",void 0),(0,defineProperty.Z)(this,"type",void 0),(0,defineProperty.Z)(this,"sampleSize",1),(0,defineProperty.Z)(this,"time",void 0),(0,defineProperty.Z)(this,"count",void 0),(0,defineProperty.Z)(this,"samples",void 0),(0,defineProperty.Z)(this,"lastTiming",void 0),(0,defineProperty.Z)(this,"lastSampleTime",void 0),(0,defineProperty.Z)(this,"lastSampleCount",void 0),(0,defineProperty.Z)(this,"_count",0),(0,defineProperty.Z)(this,"_time",0),(0,defineProperty.Z)(this,"_samples",0),(0,defineProperty.Z)(this,"_startTime",0),(0,defineProperty.Z)(this,"_timerPending",!1),this.name=name,this.type=type,this.reset()}setSampleSize(samples){return this.sampleSize=samples,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(value){return this._count+=value,this._samples++,this._checkSampling(),this}subtractCount(value){return this._count-=value,this._samples++,this._checkSampling(),this}addTime(time){return this._time+=time,this.lastTiming=time,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=getHiResTimestamp(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(getHiResTimestamp()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}_checkSampling(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}class Stats{constructor(options){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"stats",{}),this.id=options.id,this.stats={},this._initializeStats(options.stats),Object.seal(this)}get(name){let type=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count";return this._getOrCreate({name:name,type:type})}get size(){return Object.keys(this.stats).length}reset(){for(const key in this.stats)this.stats[key].reset();return this}forEach(fn){for(const key in this.stats)fn(this.stats[key])}getTable(){const table={};return this.forEach((stat=>{table[stat.name]={time:stat.time||0,count:stat.count||0,average:stat.getAverageTime()||0,hz:stat.getHz()||0}})),table}_initializeStats(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((stat=>this._getOrCreate(stat)))}_getOrCreate(stat){if(!stat||!stat.name)return null;const{name:name,type:type}=stat;return this.stats[name]||(this.stats[name]=stat instanceof Stat?stat:new Stat(name,type)),this.stats[name]}}},"./node_modules/gl-matrix/esm/common.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ib:function(){return EPSILON},WT:function(){return ARRAY_TYPE}});var EPSILON=1e-6,ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array;Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var y=0,i=arguments.length;i--;)y+=arguments[i]*arguments[i];return Math.sqrt(y)})},"./node_modules/gl-matrix/esm/mat4.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G3:function(){return perspective},GH:function(){return determinant},Iu:function(){return translate},Jp:function(){return multiply},M5:function(){return ortho},Q$:function(){return getScaling},U1:function(){return rotate},U_:function(){return invert},bA:function(){return scale},en:function(){return fromQuat},fS:function(){return equals},jI:function(){return rotateZ},lM:function(){return rotateX},oy:function(){return frustum},p4:function(){return transpose},uD:function(){return rotateY},zB:function(){return lookAt}});var _common_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/gl-matrix/esm/common.js");function transpose(out,a){if(out===a){var a01=a[1],a02=a[2],a03=a[3],a12=a[6],a13=a[7],a23=a[11];out[1]=a[4],out[2]=a[8],out[3]=a[12],out[4]=a01,out[6]=a[9],out[7]=a[13],out[8]=a02,out[9]=a12,out[11]=a[14],out[12]=a03,out[13]=a13,out[14]=a23}else out[0]=a[0],out[1]=a[4],out[2]=a[8],out[3]=a[12],out[4]=a[1],out[5]=a[5],out[6]=a[9],out[7]=a[13],out[8]=a[2],out[9]=a[6],out[10]=a[10],out[11]=a[14],out[12]=a[3],out[13]=a[7],out[14]=a[11],out[15]=a[15];return out}function invert(out,a){var a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11],a30=a[12],a31=a[13],a32=a[14],a33=a[15],b00=a00*a11-a01*a10,b01=a00*a12-a02*a10,b02=a00*a13-a03*a10,b03=a01*a12-a02*a11,b04=a01*a13-a03*a11,b05=a02*a13-a03*a12,b06=a20*a31-a21*a30,b07=a20*a32-a22*a30,b08=a20*a33-a23*a30,b09=a21*a32-a22*a31,b10=a21*a33-a23*a31,b11=a22*a33-a23*a32,det=b00*b11-b01*b10+b02*b09+b03*b08-b04*b07+b05*b06;return det?(det=1/det,out[0]=(a11*b11-a12*b10+a13*b09)*det,out[1]=(a02*b10-a01*b11-a03*b09)*det,out[2]=(a31*b05-a32*b04+a33*b03)*det,out[3]=(a22*b04-a21*b05-a23*b03)*det,out[4]=(a12*b08-a10*b11-a13*b07)*det,out[5]=(a00*b11-a02*b08+a03*b07)*det,out[6]=(a32*b02-a30*b05-a33*b01)*det,out[7]=(a20*b05-a22*b02+a23*b01)*det,out[8]=(a10*b10-a11*b08+a13*b06)*det,out[9]=(a01*b08-a00*b10-a03*b06)*det,out[10]=(a30*b04-a31*b02+a33*b00)*det,out[11]=(a21*b02-a20*b04-a23*b00)*det,out[12]=(a11*b07-a10*b09-a12*b06)*det,out[13]=(a00*b09-a01*b07+a02*b06)*det,out[14]=(a31*b01-a30*b03-a32*b00)*det,out[15]=(a20*b03-a21*b01+a22*b00)*det,out):null}function determinant(a){var a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11],a30=a[12],a31=a[13],a32=a[14],a33=a[15];return(a00*a11-a01*a10)*(a22*a33-a23*a32)-(a00*a12-a02*a10)*(a21*a33-a23*a31)+(a00*a13-a03*a10)*(a21*a32-a22*a31)+(a01*a12-a02*a11)*(a20*a33-a23*a30)-(a01*a13-a03*a11)*(a20*a32-a22*a30)+(a02*a13-a03*a12)*(a20*a31-a21*a30)}function multiply(out,a,b){var a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11],a30=a[12],a31=a[13],a32=a[14],a33=a[15],b0=b[0],b1=b[1],b2=b[2],b3=b[3];return out[0]=b0*a00+b1*a10+b2*a20+b3*a30,out[1]=b0*a01+b1*a11+b2*a21+b3*a31,out[2]=b0*a02+b1*a12+b2*a22+b3*a32,out[3]=b0*a03+b1*a13+b2*a23+b3*a33,b0=b[4],b1=b[5],b2=b[6],b3=b[7],out[4]=b0*a00+b1*a10+b2*a20+b3*a30,out[5]=b0*a01+b1*a11+b2*a21+b3*a31,out[6]=b0*a02+b1*a12+b2*a22+b3*a32,out[7]=b0*a03+b1*a13+b2*a23+b3*a33,b0=b[8],b1=b[9],b2=b[10],b3=b[11],out[8]=b0*a00+b1*a10+b2*a20+b3*a30,out[9]=b0*a01+b1*a11+b2*a21+b3*a31,out[10]=b0*a02+b1*a12+b2*a22+b3*a32,out[11]=b0*a03+b1*a13+b2*a23+b3*a33,b0=b[12],b1=b[13],b2=b[14],b3=b[15],out[12]=b0*a00+b1*a10+b2*a20+b3*a30,out[13]=b0*a01+b1*a11+b2*a21+b3*a31,out[14]=b0*a02+b1*a12+b2*a22+b3*a32,out[15]=b0*a03+b1*a13+b2*a23+b3*a33,out}function translate(out,a,v){var a00,a01,a02,a03,a10,a11,a12,a13,a20,a21,a22,a23,x=v[0],y=v[1],z=v[2];return a===out?(out[12]=a[0]*x+a[4]*y+a[8]*z+a[12],out[13]=a[1]*x+a[5]*y+a[9]*z+a[13],out[14]=a[2]*x+a[6]*y+a[10]*z+a[14],out[15]=a[3]*x+a[7]*y+a[11]*z+a[15]):(a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11],out[0]=a00,out[1]=a01,out[2]=a02,out[3]=a03,out[4]=a10,out[5]=a11,out[6]=a12,out[7]=a13,out[8]=a20,out[9]=a21,out[10]=a22,out[11]=a23,out[12]=a00*x+a10*y+a20*z+a[12],out[13]=a01*x+a11*y+a21*z+a[13],out[14]=a02*x+a12*y+a22*z+a[14],out[15]=a03*x+a13*y+a23*z+a[15]),out}function scale(out,a,v){var x=v[0],y=v[1],z=v[2];return out[0]=a[0]*x,out[1]=a[1]*x,out[2]=a[2]*x,out[3]=a[3]*x,out[4]=a[4]*y,out[5]=a[5]*y,out[6]=a[6]*y,out[7]=a[7]*y,out[8]=a[8]*z,out[9]=a[9]*z,out[10]=a[10]*z,out[11]=a[11]*z,out[12]=a[12],out[13]=a[13],out[14]=a[14],out[15]=a[15],out}function rotate(out,a,rad,axis){var s,c,t,a00,a01,a02,a03,a10,a11,a12,a13,a20,a21,a22,a23,b00,b01,b02,b10,b11,b12,b20,b21,b22,x=axis[0],y=axis[1],z=axis[2],len=Math.hypot(x,y,z);return len<_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib?null:(x*=len=1/len,y*=len,z*=len,s=Math.sin(rad),t=1-(c=Math.cos(rad)),a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11],b00=x*x*t+c,b01=y*x*t+z*s,b02=z*x*t-y*s,b10=x*y*t-z*s,b11=y*y*t+c,b12=z*y*t+x*s,b20=x*z*t+y*s,b21=y*z*t-x*s,b22=z*z*t+c,out[0]=a00*b00+a10*b01+a20*b02,out[1]=a01*b00+a11*b01+a21*b02,out[2]=a02*b00+a12*b01+a22*b02,out[3]=a03*b00+a13*b01+a23*b02,out[4]=a00*b10+a10*b11+a20*b12,out[5]=a01*b10+a11*b11+a21*b12,out[6]=a02*b10+a12*b11+a22*b12,out[7]=a03*b10+a13*b11+a23*b12,out[8]=a00*b20+a10*b21+a20*b22,out[9]=a01*b20+a11*b21+a21*b22,out[10]=a02*b20+a12*b21+a22*b22,out[11]=a03*b20+a13*b21+a23*b22,a!==out&&(out[12]=a[12],out[13]=a[13],out[14]=a[14],out[15]=a[15]),out)}function rotateX(out,a,rad){var s=Math.sin(rad),c=Math.cos(rad),a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11];return a!==out&&(out[0]=a[0],out[1]=a[1],out[2]=a[2],out[3]=a[3],out[12]=a[12],out[13]=a[13],out[14]=a[14],out[15]=a[15]),out[4]=a10*c+a20*s,out[5]=a11*c+a21*s,out[6]=a12*c+a22*s,out[7]=a13*c+a23*s,out[8]=a20*c-a10*s,out[9]=a21*c-a11*s,out[10]=a22*c-a12*s,out[11]=a23*c-a13*s,out}function rotateY(out,a,rad){var s=Math.sin(rad),c=Math.cos(rad),a00=a[0],a01=a[1],a02=a[2],a03=a[3],a20=a[8],a21=a[9],a22=a[10],a23=a[11];return a!==out&&(out[4]=a[4],out[5]=a[5],out[6]=a[6],out[7]=a[7],out[12]=a[12],out[13]=a[13],out[14]=a[14],out[15]=a[15]),out[0]=a00*c-a20*s,out[1]=a01*c-a21*s,out[2]=a02*c-a22*s,out[3]=a03*c-a23*s,out[8]=a00*s+a20*c,out[9]=a01*s+a21*c,out[10]=a02*s+a22*c,out[11]=a03*s+a23*c,out}function rotateZ(out,a,rad){var s=Math.sin(rad),c=Math.cos(rad),a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7];return a!==out&&(out[8]=a[8],out[9]=a[9],out[10]=a[10],out[11]=a[11],out[12]=a[12],out[13]=a[13],out[14]=a[14],out[15]=a[15]),out[0]=a00*c+a10*s,out[1]=a01*c+a11*s,out[2]=a02*c+a12*s,out[3]=a03*c+a13*s,out[4]=a10*c-a00*s,out[5]=a11*c-a01*s,out[6]=a12*c-a02*s,out[7]=a13*c-a03*s,out}function getScaling(out,mat){var m11=mat[0],m12=mat[1],m13=mat[2],m21=mat[4],m22=mat[5],m23=mat[6],m31=mat[8],m32=mat[9],m33=mat[10];return out[0]=Math.hypot(m11,m12,m13),out[1]=Math.hypot(m21,m22,m23),out[2]=Math.hypot(m31,m32,m33),out}function fromQuat(out,q){var x=q[0],y=q[1],z=q[2],w=q[3],x2=x+x,y2=y+y,z2=z+z,xx=x*x2,yx=y*x2,yy=y*y2,zx=z*x2,zy=z*y2,zz=z*z2,wx=w*x2,wy=w*y2,wz=w*z2;return out[0]=1-yy-zz,out[1]=yx+wz,out[2]=zx-wy,out[3]=0,out[4]=yx-wz,out[5]=1-xx-zz,out[6]=zy+wx,out[7]=0,out[8]=zx+wy,out[9]=zy-wx,out[10]=1-xx-yy,out[11]=0,out[12]=0,out[13]=0,out[14]=0,out[15]=1,out}function frustum(out,left,right,bottom,top,near,far){var rl=1/(right-left),tb=1/(top-bottom),nf=1/(near-far);return out[0]=2*near*rl,out[1]=0,out[2]=0,out[3]=0,out[4]=0,out[5]=2*near*tb,out[6]=0,out[7]=0,out[8]=(right+left)*rl,out[9]=(top+bottom)*tb,out[10]=(far+near)*nf,out[11]=-1,out[12]=0,out[13]=0,out[14]=far*near*2*nf,out[15]=0,out}var perspective=function perspectiveNO(out,fovy,aspect,near,far){var nf,f=1/Math.tan(fovy/2);return out[0]=f/aspect,out[1]=0,out[2]=0,out[3]=0,out[4]=0,out[5]=f,out[6]=0,out[7]=0,out[8]=0,out[9]=0,out[11]=-1,out[12]=0,out[13]=0,out[15]=0,null!=far&&far!==1/0?(nf=1/(near-far),out[10]=(far+near)*nf,out[14]=2*far*near*nf):(out[10]=-1,out[14]=-2*near),out};var ortho=function orthoNO(out,left,right,bottom,top,near,far){var lr=1/(left-right),bt=1/(bottom-top),nf=1/(near-far);return out[0]=-2*lr,out[1]=0,out[2]=0,out[3]=0,out[4]=0,out[5]=-2*bt,out[6]=0,out[7]=0,out[8]=0,out[9]=0,out[10]=2*nf,out[11]=0,out[12]=(left+right)*lr,out[13]=(top+bottom)*bt,out[14]=(far+near)*nf,out[15]=1,out};function lookAt(out,eye,center,up){var x0,x1,x2,y0,y1,y2,z0,z1,z2,len,eyex=eye[0],eyey=eye[1],eyez=eye[2],upx=up[0],upy=up[1],upz=up[2],centerx=center[0],centery=center[1],centerz=center[2];return Math.abs(eyex-centerx)<_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib&&Math.abs(eyey-centery)<_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib&&Math.abs(eyez-centerz)<_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib?function identity(out){return out[0]=1,out[1]=0,out[2]=0,out[3]=0,out[4]=0,out[5]=1,out[6]=0,out[7]=0,out[8]=0,out[9]=0,out[10]=1,out[11]=0,out[12]=0,out[13]=0,out[14]=0,out[15]=1,out}(out):(z0=eyex-centerx,z1=eyey-centery,z2=eyez-centerz,x0=upy*(z2*=len=1/Math.hypot(z0,z1,z2))-upz*(z1*=len),x1=upz*(z0*=len)-upx*z2,x2=upx*z1-upy*z0,(len=Math.hypot(x0,x1,x2))?(x0*=len=1/len,x1*=len,x2*=len):(x0=0,x1=0,x2=0),y0=z1*x2-z2*x1,y1=z2*x0-z0*x2,y2=z0*x1-z1*x0,(len=Math.hypot(y0,y1,y2))?(y0*=len=1/len,y1*=len,y2*=len):(y0=0,y1=0,y2=0),out[0]=x0,out[1]=y0,out[2]=z0,out[3]=0,out[4]=x1,out[5]=y1,out[6]=z1,out[7]=0,out[8]=x2,out[9]=y2,out[10]=z2,out[11]=0,out[12]=-(x0*eyex+x1*eyey+x2*eyez),out[13]=-(y0*eyex+y1*eyey+y2*eyez),out[14]=-(z0*eyex+z1*eyey+z2*eyez),out[15]=1,out)}function equals(a,b){var a0=a[0],a1=a[1],a2=a[2],a3=a[3],a4=a[4],a5=a[5],a6=a[6],a7=a[7],a8=a[8],a9=a[9],a10=a[10],a11=a[11],a12=a[12],a13=a[13],a14=a[14],a15=a[15],b0=b[0],b1=b[1],b2=b[2],b3=b[3],b4=b[4],b5=b[5],b6=b[6],b7=b[7],b8=b[8],b9=b[9],b10=b[10],b11=b[11],b12=b[12],b13=b[13],b14=b[14],b15=b[15];return Math.abs(a0-b0)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a0),Math.abs(b0))&&Math.abs(a1-b1)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a1),Math.abs(b1))&&Math.abs(a2-b2)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a2),Math.abs(b2))&&Math.abs(a3-b3)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a3),Math.abs(b3))&&Math.abs(a4-b4)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a4),Math.abs(b4))&&Math.abs(a5-b5)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a5),Math.abs(b5))&&Math.abs(a6-b6)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a6),Math.abs(b6))&&Math.abs(a7-b7)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a7),Math.abs(b7))&&Math.abs(a8-b8)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a8),Math.abs(b8))&&Math.abs(a9-b9)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a9),Math.abs(b9))&&Math.abs(a10-b10)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a10),Math.abs(b10))&&Math.abs(a11-b11)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a11),Math.abs(b11))&&Math.abs(a12-b12)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a12),Math.abs(b12))&&Math.abs(a13-b13)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a13),Math.abs(b13))&&Math.abs(a14-b14)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a14),Math.abs(b14))&&Math.abs(a15-b15)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a15),Math.abs(b15))}},"./node_modules/gl-matrix/esm/vec2.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{IH:function(){return add},bA:function(){return scale},c:function(){return transformMat2},fF:function(){return transformMat4},iu:function(){return transformMat2d},kE:function(){return length},kK:function(){return transformMat3},lu:function(){return sub},t7:function(){return lerp},tk:function(){return negate}});var _common_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/gl-matrix/esm/common.js");function add(out,a,b){return out[0]=a[0]+b[0],out[1]=a[1]+b[1],out}function scale(out,a,b){return out[0]=a[0]*b,out[1]=a[1]*b,out}function length(a){var x=a[0],y=a[1];return Math.hypot(x,y)}function negate(out,a){return out[0]=-a[0],out[1]=-a[1],out}function lerp(out,a,b,t){var ax=a[0],ay=a[1];return out[0]=ax+t*(b[0]-ax),out[1]=ay+t*(b[1]-ay),out}function transformMat2(out,a,m){var x=a[0],y=a[1];return out[0]=m[0]*x+m[2]*y,out[1]=m[1]*x+m[3]*y,out}function transformMat2d(out,a,m){var x=a[0],y=a[1];return out[0]=m[0]*x+m[2]*y+m[4],out[1]=m[1]*x+m[3]*y+m[5],out}function transformMat3(out,a,m){var x=a[0],y=a[1];return out[0]=m[0]*x+m[3]*y+m[6],out[1]=m[1]*x+m[4]*y+m[7],out}function transformMat4(out,a,m){var x=a[0],y=a[1];return out[0]=m[0]*x+m[4]*y+m[12],out[1]=m[1]*x+m[5]*y+m[13],out}var vec,sub=function subtract(out,a,b){return out[0]=a[0]-b[0],out[1]=a[1]-b[1],out};vec=function create(){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(2);return _common_js__WEBPACK_IMPORTED_MODULE_0__.WT!=Float32Array&&(out[0]=0,out[1]=0),out}()},"./node_modules/gl-matrix/esm/vec3.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AK:function(){return dot},EU:function(){return angle},Fv:function(){return normalize},IH:function(){return add},TK:function(){return dist},Ue:function(){return create},VC:function(){return transformQuat},Zh:function(){return len},al:function(){return fromValues},dC:function(){return mul},fF:function(){return transformMat4},jI:function(){return rotateZ},kC:function(){return cross},kE:function(){return length},kK:function(){return transformMat3},lM:function(){return rotateX},lu:function(){return sub},t7:function(){return lerp},tk:function(){return negate},uD:function(){return rotateY},x9:function(){return sqrLen}});var _common_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/gl-matrix/esm/common.js");function create(){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(3);return _common_js__WEBPACK_IMPORTED_MODULE_0__.WT!=Float32Array&&(out[0]=0,out[1]=0,out[2]=0),out}function length(a){var x=a[0],y=a[1],z=a[2];return Math.hypot(x,y,z)}function fromValues(x,y,z){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(3);return out[0]=x,out[1]=y,out[2]=z,out}function add(out,a,b){return out[0]=a[0]+b[0],out[1]=a[1]+b[1],out[2]=a[2]+b[2],out}function negate(out,a){return out[0]=-a[0],out[1]=-a[1],out[2]=-a[2],out}function normalize(out,a){var x=a[0],y=a[1],z=a[2],len=x*x+y*y+z*z;return len>0&&(len=1/Math.sqrt(len)),out[0]=a[0]*len,out[1]=a[1]*len,out[2]=a[2]*len,out}function dot(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]}function cross(out,a,b){var ax=a[0],ay=a[1],az=a[2],bx=b[0],by=b[1],bz=b[2];return out[0]=ay*bz-az*by,out[1]=az*bx-ax*bz,out[2]=ax*by-ay*bx,out}function lerp(out,a,b,t){var ax=a[0],ay=a[1],az=a[2];return out[0]=ax+t*(b[0]-ax),out[1]=ay+t*(b[1]-ay),out[2]=az+t*(b[2]-az),out}function transformMat4(out,a,m){var x=a[0],y=a[1],z=a[2],w=m[3]*x+m[7]*y+m[11]*z+m[15];return w=w||1,out[0]=(m[0]*x+m[4]*y+m[8]*z+m[12])/w,out[1]=(m[1]*x+m[5]*y+m[9]*z+m[13])/w,out[2]=(m[2]*x+m[6]*y+m[10]*z+m[14])/w,out}function transformMat3(out,a,m){var x=a[0],y=a[1],z=a[2];return out[0]=x*m[0]+y*m[3]+z*m[6],out[1]=x*m[1]+y*m[4]+z*m[7],out[2]=x*m[2]+y*m[5]+z*m[8],out}function transformQuat(out,a,q){var qx=q[0],qy=q[1],qz=q[2],qw=q[3],x=a[0],y=a[1],z=a[2],uvx=qy*z-qz*y,uvy=qz*x-qx*z,uvz=qx*y-qy*x,uuvx=qy*uvz-qz*uvy,uuvy=qz*uvx-qx*uvz,uuvz=qx*uvy-qy*uvx,w2=2*qw;return uvx*=w2,uvy*=w2,uvz*=w2,uuvx*=2,uuvy*=2,uuvz*=2,out[0]=x+uvx+uuvx,out[1]=y+uvy+uuvy,out[2]=z+uvz+uuvz,out}function rotateX(out,a,b,rad){var p=[],r=[];return p[0]=a[0]-b[0],p[1]=a[1]-b[1],p[2]=a[2]-b[2],r[0]=p[0],r[1]=p[1]*Math.cos(rad)-p[2]*Math.sin(rad),r[2]=p[1]*Math.sin(rad)+p[2]*Math.cos(rad),out[0]=r[0]+b[0],out[1]=r[1]+b[1],out[2]=r[2]+b[2],out}function rotateY(out,a,b,rad){var p=[],r=[];return p[0]=a[0]-b[0],p[1]=a[1]-b[1],p[2]=a[2]-b[2],r[0]=p[2]*Math.sin(rad)+p[0]*Math.cos(rad),r[1]=p[1],r[2]=p[2]*Math.cos(rad)-p[0]*Math.sin(rad),out[0]=r[0]+b[0],out[1]=r[1]+b[1],out[2]=r[2]+b[2],out}function rotateZ(out,a,b,rad){var p=[],r=[];return p[0]=a[0]-b[0],p[1]=a[1]-b[1],p[2]=a[2]-b[2],r[0]=p[0]*Math.cos(rad)-p[1]*Math.sin(rad),r[1]=p[0]*Math.sin(rad)+p[1]*Math.cos(rad),r[2]=p[2],out[0]=r[0]+b[0],out[1]=r[1]+b[1],out[2]=r[2]+b[2],out}function angle(a,b){var ax=a[0],ay=a[1],az=a[2],bx=b[0],by=b[1],bz=b[2],mag=Math.sqrt(ax*ax+ay*ay+az*az)*Math.sqrt(bx*bx+by*by+bz*bz),cosine=mag&&dot(a,b)/mag;return Math.acos(Math.min(Math.max(cosine,-1),1))}var vec,sub=function subtract(out,a,b){return out[0]=a[0]-b[0],out[1]=a[1]-b[1],out[2]=a[2]-b[2],out},mul=function multiply(out,a,b){return out[0]=a[0]*b[0],out[1]=a[1]*b[1],out[2]=a[2]*b[2],out},dist=function distance(a,b){var x=b[0]-a[0],y=b[1]-a[1],z=b[2]-a[2];return Math.hypot(x,y,z)},len=length,sqrLen=function squaredLength(a){var x=a[0],y=a[1],z=a[2];return x*x+y*y+z*z};vec=create()},"./node_modules/gl-matrix/esm/vec4.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AK:function(){return dot},Fv:function(){return normalize},I6:function(){return exactEquals},IH:function(){return add},JG:function(){return copy},VC:function(){return transformQuat},al:function(){return fromValues},bA:function(){return scale},d9:function(){return clone},fF:function(){return transformMat4},fS:function(){return equals},kE:function(){return length},t7:function(){return lerp},t8:function(){return set},we:function(){return squaredLength}});var _common_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/gl-matrix/esm/common.js");function clone(a){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(4);return out[0]=a[0],out[1]=a[1],out[2]=a[2],out[3]=a[3],out}function fromValues(x,y,z,w){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(4);return out[0]=x,out[1]=y,out[2]=z,out[3]=w,out}function copy(out,a){return out[0]=a[0],out[1]=a[1],out[2]=a[2],out[3]=a[3],out}function set(out,x,y,z,w){return out[0]=x,out[1]=y,out[2]=z,out[3]=w,out}function add(out,a,b){return out[0]=a[0]+b[0],out[1]=a[1]+b[1],out[2]=a[2]+b[2],out[3]=a[3]+b[3],out}function scale(out,a,b){return out[0]=a[0]*b,out[1]=a[1]*b,out[2]=a[2]*b,out[3]=a[3]*b,out}function length(a){var x=a[0],y=a[1],z=a[2],w=a[3];return Math.hypot(x,y,z,w)}function squaredLength(a){var x=a[0],y=a[1],z=a[2],w=a[3];return x*x+y*y+z*z+w*w}function normalize(out,a){var x=a[0],y=a[1],z=a[2],w=a[3],len=x*x+y*y+z*z+w*w;return len>0&&(len=1/Math.sqrt(len)),out[0]=x*len,out[1]=y*len,out[2]=z*len,out[3]=w*len,out}function dot(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3]}function lerp(out,a,b,t){var ax=a[0],ay=a[1],az=a[2],aw=a[3];return out[0]=ax+t*(b[0]-ax),out[1]=ay+t*(b[1]-ay),out[2]=az+t*(b[2]-az),out[3]=aw+t*(b[3]-aw),out}function transformMat4(out,a,m){var x=a[0],y=a[1],z=a[2],w=a[3];return out[0]=m[0]*x+m[4]*y+m[8]*z+m[12]*w,out[1]=m[1]*x+m[5]*y+m[9]*z+m[13]*w,out[2]=m[2]*x+m[6]*y+m[10]*z+m[14]*w,out[3]=m[3]*x+m[7]*y+m[11]*z+m[15]*w,out}function transformQuat(out,a,q){var x=a[0],y=a[1],z=a[2],qx=q[0],qy=q[1],qz=q[2],qw=q[3],ix=qw*x+qy*z-qz*y,iy=qw*y+qz*x-qx*z,iz=qw*z+qx*y-qy*x,iw=-qx*x-qy*y-qz*z;return out[0]=ix*qw+iw*-qx+iy*-qz-iz*-qy,out[1]=iy*qw+iw*-qy+iz*-qx-ix*-qz,out[2]=iz*qw+iw*-qz+ix*-qy-iy*-qx,out[3]=a[3],out}function exactEquals(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]}function equals(a,b){var a0=a[0],a1=a[1],a2=a[2],a3=a[3],b0=b[0],b1=b[1],b2=b[2],b3=b[3];return Math.abs(a0-b0)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a0),Math.abs(b0))&&Math.abs(a1-b1)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a1),Math.abs(b1))&&Math.abs(a2-b2)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a2),Math.abs(b2))&&Math.abs(a3-b3)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a3),Math.abs(b3))}var vec;vec=function create(){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(4);return _common_js__WEBPACK_IMPORTED_MODULE_0__.WT!=Float32Array&&(out[0]=0,out[1]=0,out[2]=0,out[3]=0),out}()},"./node_modules/hammerjs/hammer.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(window,document,exportName,undefined){"use strict";var assign,VENDOR_PREFIXES=["","webkit","Moz","MS","ms","o"],TEST_ELEMENT=document.createElement("div"),TYPE_FUNCTION="function",round=Math.round,abs=Math.abs,now=Date.now;function setTimeoutContext(fn,timeout,context){return setTimeout(bindFn(fn,context),timeout)}function invokeArrayArg(arg,fn,context){return!!Array.isArray(arg)&&(each(arg,context[fn],context),!0)}function each(obj,iterator,context){var i;if(obj)if(obj.forEach)obj.forEach(iterator,context);else if(obj.length!==undefined)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",log=window.console&&(window.console.warn||window.console.log);return log&&log.call(window.console,deprecationMessage,stack),method.apply(this,arguments)}}assign="function"!=typeof Object.assign?function assign(target){if(target===undefined||null===target)throw new TypeError("Cannot convert undefined or null to object");for(var output=Object(target),index=1;index-1}function splitStr(str){return str.trim().split(/\s+/g)}function inArray(src,find,findByKey){if(src.indexOf&&!findByKey)return src.indexOf(find);for(var i=0;ib[key]})):results.sort()),results}function prefixed(obj,property){for(var prefix,prop,camelProp=property[0].toUpperCase()+property.slice(1),i=0;i1&&!session.firstMultiple?session.firstMultiple=simpleCloneInputData(input):1===pointersLength&&(session.firstMultiple=!1);var firstInput=session.firstInput,firstMultiple=session.firstMultiple,offsetCenter=firstMultiple?firstMultiple.center:firstInput.center,center=input.center=getCenter(pointers);input.timeStamp=now(),input.deltaTime=input.timeStamp-firstInput.timeStamp,input.angle=getAngle(offsetCenter,center),input.distance=getDistance(offsetCenter,center),function computeDeltaXY(session,input){var center=input.center,offset=session.offsetDelta||{},prevDelta=session.prevDelta||{},prevInput=session.prevInput||{};input.eventType!==INPUT_START&&prevInput.eventType!==INPUT_END||(prevDelta=session.prevDelta={x:prevInput.deltaX||0,y:prevInput.deltaY||0},offset=session.offsetDelta={x:center.x,y:center.y});input.deltaX=prevDelta.x+(center.x-offset.x),input.deltaY=prevDelta.y+(center.y-offset.y)}(session,input),input.offsetDirection=getDirection(input.deltaX,input.deltaY);var overallVelocity=getVelocity(input.deltaTime,input.deltaX,input.deltaY);input.overallVelocityX=overallVelocity.x,input.overallVelocityY=overallVelocity.y,input.overallVelocity=abs(overallVelocity.x)>abs(overallVelocity.y)?overallVelocity.x:overallVelocity.y,input.scale=firstMultiple?function getScale(start,end){return getDistance(end[0],end[1],PROPS_CLIENT_XY)/getDistance(start[0],start[1],PROPS_CLIENT_XY)}(firstMultiple.pointers,pointers):1,input.rotation=firstMultiple?function getRotation(start,end){return getAngle(end[1],end[0],PROPS_CLIENT_XY)+getAngle(start[1],start[0],PROPS_CLIENT_XY)}(firstMultiple.pointers,pointers):0,input.maxPointers=session.prevInput?input.pointers.length>session.prevInput.maxPointers?input.pointers.length:session.prevInput.maxPointers:input.pointers.length,function computeIntervalInputData(session,input){var velocity,velocityX,velocityY,direction,last=session.lastInterval||input,deltaTime=input.timeStamp-last.timeStamp;if(input.eventType!=INPUT_CANCEL&&(deltaTime>COMPUTE_INTERVAL||last.velocity===undefined)){var deltaX=input.deltaX-last.deltaX,deltaY=input.deltaY-last.deltaY,v=getVelocity(deltaTime,deltaX,deltaY);velocityX=v.x,velocityY=v.y,velocity=abs(v.x)>abs(v.y)?v.x:v.y,direction=getDirection(deltaX,deltaY),session.lastInterval=input}else velocity=last.velocity,velocityX=last.velocityX,velocityY=last.velocityY,direction=last.direction;input.velocity=velocity,input.velocityX=velocityX,input.velocityY=velocityY,input.direction=direction}(session,input);var target=manager.element;hasParent(input.srcEvent.target,target)&&(target=input.srcEvent.target);input.target=target}(manager,input),manager.emit("hammer.input",input),manager.recognize(input),manager.session.prevInput=input}function simpleCloneInputData(input){for(var pointers=[],i=0;i=abs(y)?x<0?DIRECTION_LEFT:DIRECTION_RIGHT:y<0?DIRECTION_UP:DIRECTION_DOWN}function getDistance(p1,p2,props){props||(props=PROPS_XY);var x=p2[props[0]]-p1[props[0]],y=p2[props[1]]-p1[props[1]];return Math.sqrt(x*x+y*y)}function getAngle(p1,p2,props){props||(props=PROPS_XY);var x=p2[props[0]]-p1[props[0]],y=p2[props[1]]-p1[props[1]];return 180*Math.atan2(y,x)/Math.PI}Input.prototype={handler:function(){},init:function(){this.evEl&&addEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&addEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&addEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&removeEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&removeEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&removeEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)}};var MOUSE_INPUT_MAP={mousedown:INPUT_START,mousemove:2,mouseup:INPUT_END},MOUSE_ELEMENT_EVENTS="mousedown",MOUSE_WINDOW_EVENTS="mousemove mouseup";function MouseInput(){this.evEl=MOUSE_ELEMENT_EVENTS,this.evWin=MOUSE_WINDOW_EVENTS,this.pressed=!1,Input.apply(this,arguments)}inherit(MouseInput,Input,{handler:function MEhandler(ev){var eventType=MOUSE_INPUT_MAP[ev.type];eventType&INPUT_START&&0===ev.button&&(this.pressed=!0),2&eventType&&1!==ev.which&&(eventType=INPUT_END),this.pressed&&(eventType&INPUT_END&&(this.pressed=!1),this.callback(this.manager,eventType,{pointers:[ev],changedPointers:[ev],pointerType:"mouse",srcEvent:ev}))}});var POINTER_INPUT_MAP={pointerdown:INPUT_START,pointermove:2,pointerup:INPUT_END,pointercancel:INPUT_CANCEL,pointerout:INPUT_CANCEL},IE10_POINTER_TYPE_ENUM={2:"touch",3:"pen",4:"mouse",5:"kinect"},POINTER_ELEMENT_EVENTS="pointerdown",POINTER_WINDOW_EVENTS="pointermove pointerup pointercancel";function PointerEventInput(){this.evEl=POINTER_ELEMENT_EVENTS,this.evWin=POINTER_WINDOW_EVENTS,Input.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}window.MSPointerEvent&&!window.PointerEvent&&(POINTER_ELEMENT_EVENTS="MSPointerDown",POINTER_WINDOW_EVENTS="MSPointerMove MSPointerUp MSPointerCancel"),inherit(PointerEventInput,Input,{handler:function PEhandler(ev){var store=this.store,removePointer=!1,eventTypeNormalized=ev.type.toLowerCase().replace("ms",""),eventType=POINTER_INPUT_MAP[eventTypeNormalized],pointerType=IE10_POINTER_TYPE_ENUM[ev.pointerType]||ev.pointerType,isTouch="touch"==pointerType,storeIndex=inArray(store,ev.pointerId,"pointerId");eventType&INPUT_START&&(0===ev.button||isTouch)?storeIndex<0&&(store.push(ev),storeIndex=store.length-1):eventType&(INPUT_END|INPUT_CANCEL)&&(removePointer=!0),storeIndex<0||(store[storeIndex]=ev,this.callback(this.manager,eventType,{pointers:store,changedPointers:[ev],pointerType:pointerType,srcEvent:ev}),removePointer&&store.splice(storeIndex,1))}});var SINGLE_TOUCH_INPUT_MAP={touchstart:INPUT_START,touchmove:2,touchend:INPUT_END,touchcancel:INPUT_CANCEL};function SingleTouchInput(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Input.apply(this,arguments)}function normalizeSingleTouches(ev,type){var all=toArray(ev.touches),changed=toArray(ev.changedTouches);return type&(INPUT_END|INPUT_CANCEL)&&(all=uniqueArray(all.concat(changed),"identifier",!0)),[all,changed]}inherit(SingleTouchInput,Input,{handler:function TEhandler(ev){var type=SINGLE_TOUCH_INPUT_MAP[ev.type];if(type===INPUT_START&&(this.started=!0),this.started){var touches=normalizeSingleTouches.call(this,ev,type);type&(INPUT_END|INPUT_CANCEL)&&touches[0].length-touches[1].length==0&&(this.started=!1),this.callback(this.manager,type,{pointers:touches[0],changedPointers:touches[1],pointerType:"touch",srcEvent:ev})}}});var TOUCH_INPUT_MAP={touchstart:INPUT_START,touchmove:2,touchend:INPUT_END,touchcancel:INPUT_CANCEL},TOUCH_TARGET_EVENTS="touchstart touchmove touchend touchcancel";function TouchInput(){this.evTarget=TOUCH_TARGET_EVENTS,this.targetIds={},Input.apply(this,arguments)}function getTouches(ev,type){var allTouches=toArray(ev.touches),targetIds=this.targetIds;if(type&(2|INPUT_START)&&1===allTouches.length)return targetIds[allTouches[0].identifier]=!0,[allTouches,allTouches];var i,targetTouches,changedTouches=toArray(ev.changedTouches),changedTargetTouches=[],target=this.target;if(targetTouches=allTouches.filter((function(touch){return hasParent(touch.target,target)})),type===INPUT_START)for(i=0;i-1&<s.splice(i,1)}),DEDUP_TIMEOUT)}}function isSyntheticEvent(eventData){for(var x=eventData.srcEvent.clientX,y=eventData.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(index,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(otherRecognizer){return!!this.simultaneous[otherRecognizer.id]},emit:function(input){var self=this,state=this.state;function emit(event){self.manager.emit(event,input)}state<8&&emit(self.options.event+stateStr(state)),emit(self.options.event),input.additionalEvent&&emit(input.additionalEvent),state>=8&&emit(self.options.event+stateStr(state))},tryEmit:function(input){if(this.canEmit())return this.emit(input);this.state=32},canEmit:function(){for(var i=0;ioptions.threshold&&direction&options.direction},attrTest:function(input){return AttrRecognizer.prototype.attrTest.call(this,input)&&(2&this.state||!(2&this.state)&&this.directionTest(input))},emit:function(input){this.pX=input.deltaX,this.pY=input.deltaY;var direction=directionStr(input.direction);direction&&(input.additionalEvent=this.options.event+direction),this._super.emit.call(this,input)}}),inherit(PinchRecognizer,AttrRecognizer,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.scale-1)>this.options.threshold||2&this.state)},emit:function(input){if(1!==input.scale){var inOut=input.scale<1?"in":"out";input.additionalEvent=this.options.event+inOut}this._super.emit.call(this,input)}}),inherit(PressRecognizer,Recognizer,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(input){var options=this.options,validPointers=input.pointers.length===options.pointers,validMovement=input.distanceoptions.time;if(this._input=input,!validMovement||!validPointers||input.eventType&(INPUT_END|INPUT_CANCEL)&&!validTime)this.reset();else if(input.eventType&INPUT_START)this.reset(),this._timer=setTimeoutContext((function(){this.state=8,this.tryEmit()}),options.time,this);else if(input.eventType&INPUT_END)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(input){8===this.state&&(input&&input.eventType&INPUT_END?this.manager.emit(this.options.event+"up",input):(this._input.timeStamp=now(),this.manager.emit(this.options.event,this._input)))}}),inherit(RotateRecognizer,AttrRecognizer,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.rotation)>this.options.threshold||2&this.state)}}),inherit(SwipeRecognizer,AttrRecognizer,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:DIRECTION_HORIZONTAL|DIRECTION_VERTICAL,pointers:1},getTouchAction:function(){return PanRecognizer.prototype.getTouchAction.call(this)},attrTest:function(input){var velocity,direction=this.options.direction;return direction&(DIRECTION_HORIZONTAL|DIRECTION_VERTICAL)?velocity=input.overallVelocity:direction&DIRECTION_HORIZONTAL?velocity=input.overallVelocityX:direction&DIRECTION_VERTICAL&&(velocity=input.overallVelocityY),this._super.attrTest.call(this,input)&&direction&input.offsetDirection&&input.distance>this.options.threshold&&input.maxPointers==this.options.pointers&&abs(velocity)>this.options.velocity&&input.eventType&INPUT_END},emit:function(input){var direction=directionStr(input.offsetDirection);direction&&this.manager.emit(this.options.event+direction,input),this.manager.emit(this.options.event,input)}}),inherit(TapRecognizer,Recognizer,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(input){var options=this.options,validPointers=input.pointers.length===options.pointers,validMovement=input.distance1-(1-t)*(1-t),EVENT_TYPES_WHEEL=["wheel"],EVENT_TYPES_PAN=["panstart","panmove","panend"],EVENT_TYPES_PINCH=["pinchstart","pinchmove","pinchend"],EVENT_TYPES_TRIPLE_PAN=["tripanstart","tripanmove","tripanend"],EVENT_TYPES_DOUBLE_TAP=["doubletap"],EVENT_TYPES_KEYBOARD=["keydown"],pinchEventWorkaround={};class Controller{constructor(opts){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"props",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"state",{}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"transitionManager",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"eventManager",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"onViewStateChange",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"onStateChange",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"makeViewport",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_controllerState",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_events",{}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_interactionState",{isDragging:!1}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_customEvents",[]),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_eventStartBlocked",null),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_panMove",!1),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"invertPan",!1),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"dragMode","rotate"),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"inertia",0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"scrollZoom",!0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"dragPan",!0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"dragRotate",!0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"doubleClickZoom",!0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"touchZoom",!0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"touchRotate",!1),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"keyboard",!0),this.transitionManager=new _transition_manager__WEBPACK_IMPORTED_MODULE_1__.Z({...opts,getControllerState:props=>new this.ControllerState(props),onViewStateChange:this._onTransition.bind(this),onStateChange:this._setInteractionState.bind(this)}),this.handleEvent=this.handleEvent.bind(this),this.eventManager=opts.eventManager,this.onViewStateChange=opts.onViewStateChange||(()=>{}),this.onStateChange=opts.onStateChange||(()=>{}),this.makeViewport=opts.makeViewport}set events(customEvents){this.toggleEvents(this._customEvents,!1),this.toggleEvents(customEvents,!0),this._customEvents=customEvents,this.props&&this.setProps(this.props)}finalize(){for(const eventName in this._events){var _this$eventManager;if(this._events[eventName])null===(_this$eventManager=this.eventManager)||void 0===_this$eventManager||_this$eventManager.off(eventName,this.handleEvent)}this.transitionManager.finalize()}handleEvent(event){this._controllerState=void 0;const eventStartBlocked=this._eventStartBlocked;switch(event.type){case"panstart":return!eventStartBlocked&&this._onPanStart(event);case"panmove":return this._onPan(event);case"panend":return this._onPanEnd(event);case"pinchstart":return!eventStartBlocked&&this._onPinchStart(event);case"pinchmove":return this._onPinch(event);case"pinchend":return this._onPinchEnd(event);case"tripanstart":return!eventStartBlocked&&this._onTriplePanStart(event);case"tripanmove":return this._onTriplePan(event);case"tripanend":return this._onTriplePanEnd(event);case"doubletap":return this._onDoubleTap(event);case"wheel":return this._onWheel(event);case"keydown":return this._onKeyDown(event);default:return!1}}get controllerState(){return this._controllerState=this._controllerState||new this.ControllerState({makeViewport:this.makeViewport,...this.props,...this.state}),this._controllerState}getCenter(event){const{x:x,y:y}=this.props,{offsetCenter:offsetCenter}=event;return[offsetCenter.x-x,offsetCenter.y-y]}isPointInBounds(pos,event){const{width:width,height:height}=this.props;if(event&&event.handled)return!1;const inside=pos[0]>=0&&pos[0]<=width&&pos[1]>=0&&pos[1]<=height;return inside&&event&&event.stopPropagation(),inside}isFunctionKeyPressed(event){const{srcEvent:srcEvent}=event;return Boolean(srcEvent.metaKey||srcEvent.altKey||srcEvent.ctrlKey||srcEvent.shiftKey)}isDragging(){return this._interactionState.isDragging||!1}blockEvents(timeout){const timer=setTimeout((()=>{this._eventStartBlocked===timer&&(this._eventStartBlocked=null)}),timeout);this._eventStartBlocked=timer}setProps(props){props.dragMode&&(this.dragMode=props.dragMode),this.props=props,"transitionInterpolator"in props||(props.transitionInterpolator=this._getTransitionProps().transitionInterpolator),this.transitionManager.processViewStateChange(props);const{inertia:inertia}=props;this.inertia=Number.isFinite(inertia)?inertia:!0===inertia?300:0;const{scrollZoom:scrollZoom=!0,dragPan:dragPan=!0,dragRotate:dragRotate=!0,doubleClickZoom:doubleClickZoom=!0,touchZoom:touchZoom=!0,touchRotate:touchRotate=!1,keyboard:keyboard=!0}=props,isInteractive=Boolean(this.onViewStateChange);this.toggleEvents(EVENT_TYPES_WHEEL,isInteractive&&scrollZoom),this.toggleEvents(EVENT_TYPES_PAN,isInteractive),this.toggleEvents(EVENT_TYPES_PINCH,isInteractive&&(touchZoom||touchRotate)),this.toggleEvents(EVENT_TYPES_TRIPLE_PAN,isInteractive&&touchRotate),this.toggleEvents(EVENT_TYPES_DOUBLE_TAP,isInteractive&&doubleClickZoom),this.toggleEvents(EVENT_TYPES_KEYBOARD,isInteractive&&keyboard),this.scrollZoom=scrollZoom,this.dragPan=dragPan,this.dragRotate=dragRotate,this.doubleClickZoom=doubleClickZoom,this.touchZoom=touchZoom,this.touchRotate=touchRotate,this.keyboard=keyboard}updateTransition(){this.transitionManager.updateTransition()}toggleEvents(eventNames,enabled){this.eventManager&&eventNames.forEach((eventName=>{this._events[eventName]!==enabled&&(this._events[eventName]=enabled,enabled?this.eventManager.on(eventName,this.handleEvent):this.eventManager.off(eventName,this.handleEvent))}))}updateViewport(newControllerState,extraProps=null,interactionState={}){const viewState={...newControllerState.getViewportProps(),...extraProps},changed=this.controllerState!==newControllerState;if(this.state=newControllerState.getState(),this._setInteractionState(interactionState),changed){const oldViewState=this.controllerState&&this.controllerState.getViewportProps();this.onViewStateChange&&this.onViewStateChange({viewState:viewState,interactionState:this._interactionState,oldViewState:oldViewState})}}_onTransition(params){this.onViewStateChange({...params,interactionState:this._interactionState})}_setInteractionState(newStates){Object.assign(this._interactionState,newStates),this.onStateChange(this._interactionState)}_onPanStart(event){const pos=this.getCenter(event);if(!this.isPointInBounds(pos,event))return!1;let alternateMode=this.isFunctionKeyPressed(event)||event.rightButton||!1;(this.invertPan||"pan"===this.dragMode)&&(alternateMode=!alternateMode);const newControllerState=this.controllerState[alternateMode?"panStart":"rotateStart"]({pos:pos});return this._panMove=alternateMode,this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0}),!0}_onPan(event){return!!this.isDragging()&&(this._panMove?this._onPanMove(event):this._onPanRotate(event))}_onPanEnd(event){return!!this.isDragging()&&(this._panMove?this._onPanMoveEnd(event):this._onPanRotateEnd(event))}_onPanMove(event){if(!this.dragPan)return!1;const pos=this.getCenter(event),newControllerState=this.controllerState.pan({pos:pos});return this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0,isPanning:!0}),!0}_onPanMoveEnd(event){const{inertia:inertia}=this;if(this.dragPan&&inertia&&event.velocity){const pos=this.getCenter(event),endPos=[pos[0]+event.velocityX*inertia/2,pos[1]+event.velocityY*inertia/2],newControllerState=this.controllerState.pan({pos:endPos}).panEnd();this.updateViewport(newControllerState,{...this._getTransitionProps(),transitionDuration:inertia,transitionEasing:INERTIA_EASING},{isDragging:!1,isPanning:!0})}else{const newControllerState=this.controllerState.panEnd();this.updateViewport(newControllerState,null,{isDragging:!1,isPanning:!1})}return!0}_onPanRotate(event){if(!this.dragRotate)return!1;const pos=this.getCenter(event),newControllerState=this.controllerState.rotate({pos:pos});return this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0,isRotating:!0}),!0}_onPanRotateEnd(event){const{inertia:inertia}=this;if(this.dragRotate&&inertia&&event.velocity){const pos=this.getCenter(event),endPos=[pos[0]+event.velocityX*inertia/2,pos[1]+event.velocityY*inertia/2],newControllerState=this.controllerState.rotate({pos:endPos}).rotateEnd();this.updateViewport(newControllerState,{...this._getTransitionProps(),transitionDuration:inertia,transitionEasing:INERTIA_EASING},{isDragging:!1,isRotating:!0})}else{const newControllerState=this.controllerState.rotateEnd();this.updateViewport(newControllerState,null,{isDragging:!1,isRotating:!1})}return!0}_onWheel(event){if(!this.scrollZoom)return!1;const pos=this.getCenter(event);if(!this.isPointInBounds(pos,event))return!1;event.srcEvent.preventDefault();const{speed:speed=.01,smooth:smooth=!1}=!0===this.scrollZoom?{}:this.scrollZoom,{delta:delta}=event;let scale=2/(1+Math.exp(-Math.abs(delta*speed)));delta<0&&0!==scale&&(scale=1/scale);const newControllerState=this.controllerState.zoom({pos:pos,scale:scale});return this.updateViewport(newControllerState,{...this._getTransitionProps({around:pos}),transitionDuration:smooth?250:1},{isZooming:!0,isPanning:!0}),!0}_onTriplePanStart(event){const pos=this.getCenter(event);if(!this.isPointInBounds(pos,event))return!1;const newControllerState=this.controllerState.rotateStart({pos:pos});return this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0}),!0}_onTriplePan(event){if(!this.touchRotate)return!1;if(!this.isDragging())return!1;const pos=this.getCenter(event);pos[0]-=event.deltaX;const newControllerState=this.controllerState.rotate({pos:pos});return this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0,isRotating:!0}),!0}_onTriplePanEnd(event){if(!this.isDragging())return!1;const{inertia:inertia}=this;if(this.touchRotate&&inertia&&event.velocityY){const pos=this.getCenter(event),endPos=[pos[0],pos[1]+=event.velocityY*inertia/2],newControllerState=this.controllerState.rotate({pos:endPos});this.updateViewport(newControllerState,{...this._getTransitionProps(),transitionDuration:inertia,transitionEasing:INERTIA_EASING},{isDragging:!1,isRotating:!0}),this.blockEvents(inertia)}else{const newControllerState=this.controllerState.rotateEnd();this.updateViewport(newControllerState,null,{isDragging:!1,isRotating:!1})}return!0}_onPinchStart(event){const pos=this.getCenter(event);if(!this.isPointInBounds(pos,event))return!1;const newControllerState=this.controllerState.zoomStart({pos:pos}).rotateStart({pos:pos});return pinchEventWorkaround._startPinchRotation=event.rotation,pinchEventWorkaround._lastPinchEvent=event,this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0}),!0}_onPinch(event){if(!this.touchZoom&&!this.touchRotate)return!1;if(!this.isDragging())return!1;let newControllerState=this.controllerState;if(this.touchZoom){const{scale:scale}=event,pos=this.getCenter(event);newControllerState=newControllerState.zoom({pos:pos,scale:scale})}if(this.touchRotate){const{rotation:rotation}=event;newControllerState=newControllerState.rotate({deltaAngleX:pinchEventWorkaround._startPinchRotation-rotation})}return this.updateViewport(newControllerState,NO_TRANSITION_PROPS,{isDragging:!0,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:this.touchRotate}),pinchEventWorkaround._lastPinchEvent=event,!0}_onPinchEnd(event){if(!this.isDragging())return!1;const{inertia:inertia}=this,{_lastPinchEvent:_lastPinchEvent}=pinchEventWorkaround;if(this.touchZoom&&inertia&&_lastPinchEvent&&event.scale!==_lastPinchEvent.scale){const pos=this.getCenter(event);let newControllerState=this.controllerState.rotateEnd();const z=Math.log2(event.scale),velocityZ=(z-Math.log2(_lastPinchEvent.scale))/(event.deltaTime-_lastPinchEvent.deltaTime),endScale=Math.pow(2,z+velocityZ*inertia/2);newControllerState=newControllerState.zoom({pos:pos,scale:endScale}).zoomEnd(),this.updateViewport(newControllerState,{...this._getTransitionProps({around:pos}),transitionDuration:inertia,transitionEasing:INERTIA_EASING},{isDragging:!1,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:!1}),this.blockEvents(inertia)}else{const newControllerState=this.controllerState.zoomEnd().rotateEnd();this.updateViewport(newControllerState,null,{isDragging:!1,isPanning:!1,isZooming:!1,isRotating:!1})}return pinchEventWorkaround._startPinchRotation=null,pinchEventWorkaround._lastPinchEvent=null,!0}_onDoubleTap(event){if(!this.doubleClickZoom)return!1;const pos=this.getCenter(event);if(!this.isPointInBounds(pos,event))return!1;const isZoomOut=this.isFunctionKeyPressed(event),newControllerState=this.controllerState.zoom({pos:pos,scale:isZoomOut?.5:2});return this.updateViewport(newControllerState,this._getTransitionProps({around:pos}),{isZooming:!0,isPanning:!0}),this.blockEvents(100),!0}_onKeyDown(event){if(!this.keyboard)return!1;const funcKey=this.isFunctionKeyPressed(event),{zoomSpeed:zoomSpeed,moveSpeed:moveSpeed,rotateSpeedX:rotateSpeedX,rotateSpeedY:rotateSpeedY}=!0===this.keyboard?{}:this.keyboard,{controllerState:controllerState}=this;let newControllerState;const interactionState={};switch(event.srcEvent.code){case"Minus":newControllerState=funcKey?controllerState.zoomOut(zoomSpeed).zoomOut(zoomSpeed):controllerState.zoomOut(zoomSpeed),interactionState.isZooming=!0;break;case"Equal":newControllerState=funcKey?controllerState.zoomIn(zoomSpeed).zoomIn(zoomSpeed):controllerState.zoomIn(zoomSpeed),interactionState.isZooming=!0;break;case"ArrowLeft":funcKey?(newControllerState=controllerState.rotateLeft(rotateSpeedX),interactionState.isRotating=!0):(newControllerState=controllerState.moveLeft(moveSpeed),interactionState.isPanning=!0);break;case"ArrowRight":funcKey?(newControllerState=controllerState.rotateRight(rotateSpeedX),interactionState.isRotating=!0):(newControllerState=controllerState.moveRight(moveSpeed),interactionState.isPanning=!0);break;case"ArrowUp":funcKey?(newControllerState=controllerState.rotateUp(rotateSpeedY),interactionState.isRotating=!0):(newControllerState=controllerState.moveUp(moveSpeed),interactionState.isPanning=!0);break;case"ArrowDown":funcKey?(newControllerState=controllerState.rotateDown(rotateSpeedY),interactionState.isRotating=!0):(newControllerState=controllerState.moveDown(moveSpeed),interactionState.isPanning=!0);break;default:return!1}return this.updateViewport(newControllerState,this._getTransitionProps(),interactionState),!0}_getTransitionProps(opts){const{transition:transition}=this;return transition&&transition.transitionInterpolator?opts?{...transition,transitionInterpolator:new _transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_2__.Z({...opts,...transition.transitionInterpolator.opts,makeViewport:this.controllerState.makeViewport})}:transition:NO_TRANSITION_PROPS}}},"./node_modules/@deck.gl/core/dist/esm/controllers/map-controller.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return MapState},Z:function(){return MapController}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_controller__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/controller.js"),_view_state__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/view-state.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js"),_transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/linear-interpolator.js");class MapState extends _view_state__WEBPACK_IMPORTED_MODULE_1__.Z{constructor(options){const{width:width,height:height,latitude:latitude,longitude:longitude,zoom:zoom,bearing:bearing=0,pitch:pitch=0,altitude:altitude=1.5,position:position=[0,0,0],maxZoom:maxZoom=20,minZoom:minZoom=0,maxPitch:maxPitch=60,minPitch:minPitch=0,startPanLngLat:startPanLngLat,startZoomLngLat:startZoomLngLat,startRotatePos:startRotatePos,startBearing:startBearing,startPitch:startPitch,startZoom:startZoom,normalize:normalize=!0}=options;(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(Number.isFinite(longitude)),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(Number.isFinite(latitude)),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(Number.isFinite(zoom)),super({width:width,height:height,latitude:latitude,longitude:longitude,zoom:zoom,bearing:bearing,pitch:pitch,altitude:altitude,maxZoom:maxZoom,minZoom:minZoom,maxPitch:maxPitch,minPitch:minPitch,normalize:normalize,position:position},{startPanLngLat:startPanLngLat,startZoomLngLat:startZoomLngLat,startRotatePos:startRotatePos,startBearing:startBearing,startPitch:startPitch,startZoom:startZoom}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(this,"makeViewport",void 0),this.makeViewport=options.makeViewport}panStart({pos:pos}){return this._getUpdatedState({startPanLngLat:this._unproject(pos)})}pan({pos:pos,startPos:startPos}){const startPanLngLat=this.getState().startPanLngLat||this._unproject(startPos);if(!startPanLngLat)return this;const newProps=this.makeViewport(this.getViewportProps()).panByPosition(startPanLngLat,pos);return this._getUpdatedState(newProps)}panEnd(){return this._getUpdatedState({startPanLngLat:null})}rotateStart({pos:pos}){return this._getUpdatedState({startRotatePos:pos,startBearing:this.getViewportProps().bearing,startPitch:this.getViewportProps().pitch})}rotate({pos:pos,deltaAngleX:deltaAngleX=0,deltaAngleY:deltaAngleY=0}){const{startRotatePos:startRotatePos,startBearing:startBearing,startPitch:startPitch}=this.getState();if(!startRotatePos||void 0===startBearing||void 0===startPitch)return this;let newRotation;return newRotation=pos?this._getNewRotation(pos,startRotatePos,startPitch,startBearing):{bearing:startBearing+deltaAngleX,pitch:startPitch+deltaAngleY},this._getUpdatedState(newRotation)}rotateEnd(){return this._getUpdatedState({startBearing:null,startPitch:null})}zoomStart({pos:pos}){return this._getUpdatedState({startZoomLngLat:this._unproject(pos),startZoom:this.getViewportProps().zoom})}zoom({pos:pos,startPos:startPos,scale:scale}){let{startZoom:startZoom,startZoomLngLat:startZoomLngLat}=this.getState();if(startZoomLngLat||(startZoom=this.getViewportProps().zoom,startZoomLngLat=this._unproject(startPos)||this._unproject(pos)),!startZoomLngLat)return this;const{maxZoom:maxZoom,minZoom:minZoom}=this.getViewportProps();let zoom=startZoom+Math.log2(scale);zoom=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_4__.uZ)(zoom,minZoom,maxZoom);const zoomedViewport=this.makeViewport({...this.getViewportProps(),zoom:zoom});return this._getUpdatedState({zoom:zoom,...zoomedViewport.panByPosition(startZoomLngLat,pos)})}zoomEnd(){return this._getUpdatedState({startZoomLngLat:null,startZoom:null})}zoomIn(speed=2){return this._zoomFromCenter(speed)}zoomOut(speed=2){return this._zoomFromCenter(1/speed)}moveLeft(speed=100){return this._panFromCenter([speed,0])}moveRight(speed=100){return this._panFromCenter([-speed,0])}moveUp(speed=100){return this._panFromCenter([0,speed])}moveDown(speed=100){return this._panFromCenter([0,-speed])}rotateLeft(speed=15){return this._getUpdatedState({bearing:this.getViewportProps().bearing-speed})}rotateRight(speed=15){return this._getUpdatedState({bearing:this.getViewportProps().bearing+speed})}rotateUp(speed=10){return this._getUpdatedState({pitch:this.getViewportProps().pitch+speed})}rotateDown(speed=10){return this._getUpdatedState({pitch:this.getViewportProps().pitch-speed})}shortestPathFrom(viewState){const fromProps=viewState.getViewportProps(),props={...this.getViewportProps()},{bearing:bearing,longitude:longitude}=props;return Math.abs(bearing-fromProps.bearing)>180&&(props.bearing=bearing<0?bearing+360:bearing-360),Math.abs(longitude-fromProps.longitude)>180&&(props.longitude=longitude<0?longitude+360:longitude-360),props}applyConstraints(props){const{maxZoom:maxZoom,minZoom:minZoom,zoom:zoom}=props;props.zoom=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_4__.uZ)(zoom,minZoom,maxZoom);const{maxPitch:maxPitch,minPitch:minPitch,pitch:pitch}=props;props.pitch=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_4__.uZ)(pitch,minPitch,maxPitch);const{normalize:normalize=!0}=props;return normalize&&Object.assign(props,(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.QA)(props)),props}_zoomFromCenter(scale){const{width:width,height:height}=this.getViewportProps();return this.zoom({pos:[width/2,height/2],scale:scale})}_panFromCenter(offset){const{width:width,height:height}=this.getViewportProps();return this.pan({startPos:[width/2,height/2],pos:[width/2+offset[0],height/2+offset[1]]})}_getUpdatedState(newProps){return new this.constructor({makeViewport:this.makeViewport,...this.getViewportProps(),...this.getState(),...newProps})}_unproject(pos){const viewport=this.makeViewport(this.getViewportProps());return pos&&viewport.unproject(pos)}_getNewRotation(pos,startPos,startPitch,startBearing){const deltaX=pos[0]-startPos[0],deltaY=pos[1]-startPos[1],centerY=pos[1],startY=startPos[1],{width:width,height:height}=this.getViewportProps(),deltaScaleX=deltaX/width;let deltaScaleY=0;deltaY>0?Math.abs(height-startY)>5&&(deltaScaleY=deltaY/(startY-height)*1.2):deltaY<0&&startY>5&&(deltaScaleY=1-centerY/startY),deltaScaleY=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_4__.uZ)(deltaScaleY,-1,1);const{minPitch:minPitch,maxPitch:maxPitch}=this.getViewportProps();let pitch=startPitch;return deltaScaleY>0?pitch=startPitch+deltaScaleY*(maxPitch-startPitch):deltaScaleY<0&&(pitch=startPitch-deltaScaleY*(minPitch-startPitch)),{pitch:pitch,bearing:startBearing+180*deltaScaleX}}}class MapController extends _controller__WEBPACK_IMPORTED_MODULE_5__.Z{constructor(...args){super(...args),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(this,"ControllerState",MapState),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new _transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_6__.Z({transitionProps:{compare:["longitude","latitude","zoom","bearing","pitch","position"],required:["longitude","latitude","zoom"]}})}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(this,"dragMode","pan")}setProps(props){props.position=props.position||[0,0,0];const oldProps=this.props;super.setProps(props);(!oldProps||oldProps.height!==props.height)&&this.updateViewport(new this.ControllerState({makeViewport:this.makeViewport,...props,...this.state}))}}},"./node_modules/@deck.gl/core/dist/esm/controllers/orbit-controller.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return OrbitState},Z:function(){return OrbitController}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_controller__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/controller.js"),_view_state__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/view-state.js"),_utils_math_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/math-utils.js"),_transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/linear-interpolator.js");class OrbitState extends _view_state__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(options){const{width:width,height:height,rotationX:rotationX=0,rotationOrbit:rotationOrbit=0,target:target=[0,0,0],zoom:zoom=0,minRotationX:minRotationX=-90,maxRotationX:maxRotationX=90,minZoom:minZoom=-1/0,maxZoom:maxZoom=1/0,startPanPosition:startPanPosition,startRotatePos:startRotatePos,startRotationX:startRotationX,startRotationOrbit:startRotationOrbit,startZoomPosition:startZoomPosition,startZoom:startZoom}=options;super({width:width,height:height,rotationX:rotationX,rotationOrbit:rotationOrbit,target:target,zoom:zoom,minRotationX:minRotationX,maxRotationX:maxRotationX,minZoom:minZoom,maxZoom:maxZoom},{startPanPosition:startPanPosition,startRotatePos:startRotatePos,startRotationX:startRotationX,startRotationOrbit:startRotationOrbit,startZoomPosition:startZoomPosition,startZoom:startZoom}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"makeViewport",void 0),this.makeViewport=options.makeViewport}panStart({pos:pos}){return this._getUpdatedState({startPanPosition:this._unproject(pos)})}pan({pos:pos,startPosition:startPosition}){const startPanPosition=this.getState().startPanPosition||startPosition;if(!startPanPosition)return this;const newProps=this.makeViewport(this.getViewportProps()).panByPosition(startPanPosition,pos);return this._getUpdatedState(newProps)}panEnd(){return this._getUpdatedState({startPanPosition:null})}rotateStart({pos:pos}){return this._getUpdatedState({startRotatePos:pos,startRotationX:this.getViewportProps().rotationX,startRotationOrbit:this.getViewportProps().rotationOrbit})}rotate({pos:pos,deltaAngleX:deltaAngleX=0,deltaAngleY:deltaAngleY=0}){const{startRotatePos:startRotatePos,startRotationX:startRotationX,startRotationOrbit:startRotationOrbit}=this.getState(),{width:width,height:height}=this.getViewportProps();if(!startRotatePos||void 0===startRotationX||void 0===startRotationOrbit)return this;let newRotation;if(pos){let deltaScaleX=(pos[0]-startRotatePos[0])/width;(startRotationX<-90||startRotationX>90)&&(deltaScaleX*=-1),newRotation={rotationX:startRotationX+180*((pos[1]-startRotatePos[1])/height),rotationOrbit:startRotationOrbit+180*deltaScaleX}}else newRotation={rotationX:startRotationX+deltaAngleY,rotationOrbit:startRotationOrbit+deltaAngleX};return this._getUpdatedState(newRotation)}rotateEnd(){return this._getUpdatedState({startRotationX:null,startRotationOrbit:null})}shortestPathFrom(viewState){const fromProps=viewState.getViewportProps(),props={...this.getViewportProps()},{rotationOrbit:rotationOrbit}=props;return Math.abs(rotationOrbit-fromProps.rotationOrbit)>180&&(props.rotationOrbit=rotationOrbit<0?rotationOrbit+360:rotationOrbit-360),props}zoomStart({pos:pos}){return this._getUpdatedState({startZoomPosition:this._unproject(pos),startZoom:this.getViewportProps().zoom})}zoom({pos:pos,startPos:startPos,scale:scale}){let{startZoom:startZoom,startZoomPosition:startZoomPosition}=this.getState();if(startZoomPosition||(startZoom=this.getViewportProps().zoom,startZoomPosition=this._unproject(startPos)||this._unproject(pos)),!startZoomPosition)return this;const newZoom=this._calculateNewZoom({scale:scale,startZoom:startZoom}),zoomedViewport=this.makeViewport({...this.getViewportProps(),zoom:newZoom});return this._getUpdatedState({zoom:newZoom,...zoomedViewport.panByPosition(startZoomPosition,pos)})}zoomEnd(){return this._getUpdatedState({startZoomPosition:null,startZoom:null})}zoomIn(speed=2){return this._getUpdatedState({zoom:this._calculateNewZoom({scale:speed})})}zoomOut(speed=2){return this._getUpdatedState({zoom:this._calculateNewZoom({scale:1/speed})})}moveLeft(speed=50){return this._panFromCenter([-speed,0])}moveRight(speed=50){return this._panFromCenter([speed,0])}moveUp(speed=50){return this._panFromCenter([0,-speed])}moveDown(speed=50){return this._panFromCenter([0,speed])}rotateLeft(speed=15){return this._getUpdatedState({rotationOrbit:this.getViewportProps().rotationOrbit-speed})}rotateRight(speed=15){return this._getUpdatedState({rotationOrbit:this.getViewportProps().rotationOrbit+speed})}rotateUp(speed=10){return this._getUpdatedState({rotationX:this.getViewportProps().rotationX-speed})}rotateDown(speed=10){return this._getUpdatedState({rotationX:this.getViewportProps().rotationX+speed})}_unproject(pos){const viewport=this.makeViewport(this.getViewportProps());return pos&&viewport.unproject(pos)}_calculateNewZoom({scale:scale,startZoom:startZoom}){const{maxZoom:maxZoom,minZoom:minZoom}=this.getViewportProps();void 0===startZoom&&(startZoom=this.getViewportProps().zoom);const zoom=startZoom+Math.log2(scale);return(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(zoom,minZoom,maxZoom)}_panFromCenter(offset){const{width:width,height:height,target:target}=this.getViewportProps();return this.pan({startPosition:target,pos:[width/2+offset[0],height/2+offset[1]]})}_getUpdatedState(newProps){return new this.constructor({makeViewport:this.makeViewport,...this.getViewportProps(),...this.getState(),...newProps})}applyConstraints(props){const{maxZoom:maxZoom,minZoom:minZoom,zoom:zoom,maxRotationX:maxRotationX,minRotationX:minRotationX,rotationOrbit:rotationOrbit}=props;return props.zoom=Array.isArray(zoom)?[(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(zoom[0],minZoom,maxZoom),(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(zoom[1],minZoom,maxZoom)]:(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(zoom,minZoom,maxZoom),props.rotationX=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(props.rotationX,minRotationX,maxRotationX),(rotationOrbit<-180||rotationOrbit>180)&&(props.rotationOrbit=(0,_utils_math_utils__WEBPACK_IMPORTED_MODULE_3__.wQ)(rotationOrbit+180,360)-180),props}}class OrbitController extends _controller__WEBPACK_IMPORTED_MODULE_4__.Z{constructor(...args){super(...args),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"ControllerState",OrbitState),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new _transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_5__.Z({transitionProps:{compare:["target","zoom","rotationX","rotationOrbit"],required:["target","zoom"]}})})}}},"./node_modules/@deck.gl/core/dist/esm/controllers/orthographic-controller.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return OrthographicController}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_controller__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/controller.js"),_orbit_controller__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orbit-controller.js"),_transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/linear-interpolator.js");class OrthographicState extends _orbit_controller__WEBPACK_IMPORTED_MODULE_0__.G{constructor(props){super(props),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"zoomAxis",void 0),this.zoomAxis=props.zoomAxis||"all"}_calculateNewZoom({scale:scale,startZoom:startZoom}){const{maxZoom:maxZoom,minZoom:minZoom}=this.getViewportProps();void 0===startZoom&&(startZoom=this.getViewportProps().zoom);let deltaZoom=Math.log2(scale);if(Array.isArray(startZoom)){let[newZoomX,newZoomY]=startZoom;switch(this.zoomAxis){case"X":newZoomX=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(newZoomX+deltaZoom,minZoom,maxZoom);break;case"Y":newZoomY=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(newZoomY+deltaZoom,minZoom,maxZoom);break;default:let z=Math.min(newZoomX+deltaZoom,newZoomY+deltaZoom);zmaxZoom&&(deltaZoom+=maxZoom-z),newZoomX+=deltaZoom,newZoomY+=deltaZoom}return[newZoomX,newZoomY]}return(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)(startZoom+deltaZoom,minZoom,maxZoom)}}class OrthographicController extends _controller__WEBPACK_IMPORTED_MODULE_3__.Z{constructor(...args){super(...args),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"ControllerState",OrthographicState),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new _transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_4__.Z(["target","zoom"])}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"dragMode","pan")}_onPanRotate(){return!1}}},"./node_modules/@deck.gl/core/dist/esm/controllers/transition-manager.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TransitionManager},r:function(){return TRANSITION_EVENTS}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_transitions_transition__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/transition.js");const noop=()=>{},TRANSITION_EVENTS={BREAK:1,SNAP_TO_END:2,IGNORE:3},DEFAULT_EASING=t=>t,DEFAULT_INTERRUPTION=TRANSITION_EVENTS.BREAK;class TransitionManager{constructor(opts){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"getControllerState",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"props",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"propsInTransition",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"transition",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"onViewStateChange",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"onStateChange",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_onTransitionUpdate",(transition=>{const{time:time,settings:{interpolator:interpolator,startProps:startProps,endProps:endProps,duration:duration,easing:easing}}=transition,t=easing(time/duration),viewport=interpolator.interpolateProps(startProps,endProps,t);this.propsInTransition=this.getControllerState({...this.props,...viewport}).getViewportProps(),this.onViewStateChange({viewState:this.propsInTransition,oldViewState:this.props})})),this.getControllerState=opts.getControllerState,this.propsInTransition=null,this.transition=new _transitions_transition__WEBPACK_IMPORTED_MODULE_1__.Z(opts.timeline),this.onViewStateChange=opts.onViewStateChange||noop,this.onStateChange=opts.onStateChange||noop}finalize(){this.transition.cancel()}getViewportInTransition(){return this.propsInTransition}processViewStateChange(nextProps){let transitionTriggered=!1;const currentProps=this.props;if(this.props=nextProps,!currentProps||this._shouldIgnoreViewportChange(currentProps,nextProps))return!1;if(this._isTransitionEnabled(nextProps)){let startProps=currentProps;if(this.transition.inProgress){const{interruption:interruption,endProps:endProps}=this.transition.settings;startProps={...currentProps,...interruption===TRANSITION_EVENTS.SNAP_TO_END?endProps:this.propsInTransition||currentProps}}this._triggerTransition(startProps,nextProps),transitionTriggered=!0}else this.transition.cancel();return transitionTriggered}updateTransition(){this.transition.update()}_isTransitionEnabled(props){const{transitionDuration:transitionDuration,transitionInterpolator:transitionInterpolator}=props;return(transitionDuration>0||"auto"===transitionDuration)&&Boolean(transitionInterpolator)}_isUpdateDueToCurrentTransition(props){return!(!this.transition.inProgress||!this.propsInTransition)&&this.transition.settings.interpolator.arePropsEqual(props,this.propsInTransition)}_shouldIgnoreViewportChange(currentProps,nextProps){return this.transition.inProgress?this.transition.settings.interruption===TRANSITION_EVENTS.IGNORE||this._isUpdateDueToCurrentTransition(nextProps):!this._isTransitionEnabled(nextProps)||nextProps.transitionInterpolator.arePropsEqual(currentProps,nextProps)}_triggerTransition(startProps,endProps){const startViewstate=this.getControllerState(startProps),endViewStateProps=this.getControllerState(endProps).shortestPathFrom(startViewstate),transitionInterpolator=endProps.transitionInterpolator,duration=transitionInterpolator.getDuration?transitionInterpolator.getDuration(startProps,endProps):endProps.transitionDuration;if(0===duration)return;const initialProps=transitionInterpolator.initializeProps(startProps,endViewStateProps);this.propsInTransition={};const transitionSettings={duration:duration,easing:endProps.transitionEasing||DEFAULT_EASING,interpolator:transitionInterpolator,interruption:endProps.transitionInterruption||DEFAULT_INTERRUPTION,startProps:initialProps.start,endProps:initialProps.end,onStart:endProps.onTransitionStart,onUpdate:this._onTransitionUpdate,onInterrupt:this._onTransitionEnd(endProps.onTransitionInterrupt),onEnd:this._onTransitionEnd(endProps.onTransitionEnd)};this.transition.start(transitionSettings),this.onStateChange({inTransition:!0}),this.updateTransition()}_onTransitionEnd(callback){return transition=>{this.propsInTransition=null,this.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1}),null==callback||callback(transition)}}}},"./node_modules/@deck.gl/core/dist/esm/controllers/view-state.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ViewState}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");class ViewState{constructor(props,state){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_viewportProps",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_state",void 0),this._viewportProps=this.applyConstraints(props),this._state=state}getViewportProps(){return this._viewportProps}getState(){return this._state}}},"./node_modules/@deck.gl/core/dist/esm/debug/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return debug},z:function(){return register}});var _utils_log__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js");let loggers={};function register(handlers){loggers=handlers}function debug(eventType,arg1,arg2,arg3){_utils_log__WEBPACK_IMPORTED_MODULE_0__.Z.level>0&&loggers[eventType]&&loggers[eventType].call(null,arg1,arg2,arg3)}},"./node_modules/@deck.gl/core/dist/esm/effects/lighting/ambient-light.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return AmbientLight}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");const DEFAULT_LIGHT_COLOR=[255,255,255],DEFAULT_LIGHT_INTENSITY=1;let idCount=0;class AmbientLight{constructor(props={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"id",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"color",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"intensity",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"type","ambient");const{color:color=DEFAULT_LIGHT_COLOR}=props,{intensity:intensity=DEFAULT_LIGHT_INTENSITY}=props;this.id=props.id||"ambient-".concat(idCount++),this.color=color,this.intensity=intensity}}},"./node_modules/@deck.gl/core/dist/esm/effects/lighting/directional-light.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return DirectionalLight}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js");const DEFAULT_LIGHT_COLOR=[255,255,255],DEFAULT_LIGHT_INTENSITY=1,DEFAULT_LIGHT_DIRECTION=[0,0,-1];let idCount=0;class DirectionalLight{constructor(props={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"id",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"color",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"intensity",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"type","directional"),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"direction",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"shadow",void 0);const{color:color=DEFAULT_LIGHT_COLOR}=props,{intensity:intensity=DEFAULT_LIGHT_INTENSITY}=props,{direction:direction=DEFAULT_LIGHT_DIRECTION}=props,{_shadow:_shadow=!1}=props;this.id=props.id||"directional-".concat(idCount++),this.color=color,this.intensity=intensity,this.type="directional",this.direction=new _math_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z(direction).normalize().toArray(),this.shadow=_shadow}getProjectedLight(opts){return this}}},"./node_modules/@deck.gl/core/dist/esm/effects/lighting/lighting-effect.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return LightingEffect}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),program_manager=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/program-manager.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),ambient_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/ambient-light.js"),directional_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/directional-light.js"),matrix4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/layers-pass.js"),renderbuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/renderbuffer.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");class ShadowPass extends layers_pass.Z{constructor(gl,props){super(gl,props),(0,defineProperty.Z)(this,"shadowMap",void 0),(0,defineProperty.Z)(this,"depthBuffer",void 0),(0,defineProperty.Z)(this,"fbo",void 0),this.shadowMap=new texture_2d.Z(gl,{width:1,height:1,parameters:{10241:9729,10240:9729,10242:33071,10243:33071}}),this.depthBuffer=new renderbuffer.Z(gl,{format:33189,width:1,height:1}),this.fbo=new framebuffer.Z(gl,{id:"shadowmap",width:1,height:1,attachments:{36064:this.shadowMap,36096:this.depthBuffer}})}render(params){const target=this.fbo;(0,esm.s8)(this.gl,{depthRange:[0,1],depthTest:!0,blend:!1,clearColor:[1,1,1,1]},(()=>{const viewport=params.viewports[0],pixelRatio=(0,esm.w)(this.gl),width=viewport.width*pixelRatio,height=viewport.height*pixelRatio;width===target.width&&height===target.height||target.resize({width:width,height:height}),super.render({...params,target:target,pass:"shadow"})}))}shouldDrawLayer(layer){return!1!==layer.props.shadowEnabled}getModuleParameters(){return{drawToShadowMap:!0}}delete(){this.fbo&&(this.fbo.delete(),this.fbo=null),this.shadowMap&&(this.shadowMap.delete(),this.shadowMap=null),this.depthBuffer&&(this.depthBuffer.delete(),this.depthBuffer=null)}}var shadow=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/shadow/shadow.js");const DEFAULT_AMBIENT_LIGHT_PROPS={color:[255,255,255],intensity:1},DEFAULT_DIRECTIONAL_LIGHT_PROPS=[{color:[255,255,255],intensity:1,direction:[-1,3,-1]},{color:[255,255,255],intensity:.9,direction:[1,-8,-2.5]}],DEFAULT_SHADOW_COLOR=[0,0,0,200/255];class LightingEffect{constructor(props={}){(0,defineProperty.Z)(this,"id","lighting-effect"),(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"shadowColor",DEFAULT_SHADOW_COLOR),(0,defineProperty.Z)(this,"shadow",void 0),(0,defineProperty.Z)(this,"ambientLight",void 0),(0,defineProperty.Z)(this,"directionalLights",void 0),(0,defineProperty.Z)(this,"pointLights",void 0),(0,defineProperty.Z)(this,"shadowPasses",[]),(0,defineProperty.Z)(this,"shadowMaps",[]),(0,defineProperty.Z)(this,"dummyShadowMap",null),(0,defineProperty.Z)(this,"programManager",void 0),(0,defineProperty.Z)(this,"shadowMatrices",void 0),this.setProps(props)}setProps(props){this.ambientLight=null,this.directionalLights=[],this.pointLights=[];for(const key in props){const lightSource=props[key];switch(lightSource.type){case"ambient":this.ambientLight=lightSource;break;case"directional":this.directionalLights.push(lightSource);break;case"point":this.pointLights.push(lightSource)}}this._applyDefaultLights(),this.shadow=this.directionalLights.some((light=>light.shadow)),this.props=props}preRender(gl,{layers:layers,layerFilter:layerFilter,viewports:viewports,onViewportActive:onViewportActive,views:views}){if(this.shadow){this.shadowMatrices=this._calculateMatrices(),0===this.shadowPasses.length&&this._createShadowPasses(gl),this.programManager||(this.programManager=program_manager.Z.getDefaultProgramManager(gl),shadow.Z&&this.programManager.addDefaultModule(shadow.Z)),this.dummyShadowMap||(this.dummyShadowMap=new texture_2d.Z(gl,{width:1,height:1}));for(let i=0;idirectionalLight.getProjectedLight({layer:layer}))),pointLights:this.pointLights.map((pointLight=>pointLight.getProjectedLight({layer:layer})))},parameters}cleanup(){for(const shadowPass of this.shadowPasses)shadowPass.delete();this.shadowPasses.length=0,this.shadowMaps.length=0,this.dummyShadowMap&&(this.dummyShadowMap.delete(),this.dummyShadowMap=null),this.shadow&&this.programManager&&(this.programManager.removeDefaultModule(shadow.Z),this.programManager=null)}_calculateMatrices(){const lightMatrices=[];for(const light of this.directionalLights){const viewMatrix=(new matrix4.Z).lookAt({eye:new vector3.Z(light.direction).negate()});lightMatrices.push(viewMatrix)}return lightMatrices}_createShadowPasses(gl){for(let i=0;i=len){const min=new Array(size).fill(1/0),max=new Array(size).fill(-1/0);for(let i=0;imax[j]&&(max[j]=v)}result=[min,max]}}return this.state.bounds=result,result}setData(data){const{state:state}=this;let opts;opts=ArrayBuffer.isView(data)?{value:data}:data instanceof buffer.Z?{buffer:data}:data;const accessor={...this.settings,...opts};if(state.bufferAccessor=accessor,state.bounds=null,opts.constant){let value=opts.value;value=this._normalizeValue(value,[],0),this.settings.normalized&&(value=this.normalizeConstant(value));if(!(!state.constant||!this._areValuesEqual(value,this.value)))return!1;state.externalBuffer=null,state.constant=!0,this.value=value}else if(opts.buffer){const buffer=opts.buffer;state.externalBuffer=buffer,state.constant=!1,this.value=opts.value||null;const isBuffer64Bit=opts.value instanceof Float64Array;accessor.type=opts.type||buffer.accessor.type,accessor.bytesPerElement=buffer.accessor.BYTES_PER_ELEMENT*(isBuffer64Bit?2:1),accessor.stride=getStride(accessor)}else if(opts.value){this._checkExternalBuffer(opts);let value=opts.value;state.externalBuffer=null,state.constant=!1,this.value=value,accessor.bytesPerElement=value.BYTES_PER_ELEMENT,accessor.stride=getStride(accessor);const{buffer:buffer,byteOffset:byteOffset}=this;this.doublePrecision&&value instanceof Float64Array&&(value=(0,math_utils.TK)(value,accessor));const requiredBufferSize=value.byteLength+byteOffset+2*accessor.stride;buffer.byteLength(x+128)/255*2-1));case 5122:return new Float32Array(value).map((x=>(x+32768)/65535*2-1));case 5121:return new Float32Array(value).map((x=>x/255));case 5123:return new Float32Array(value).map((x=>x/65535));default:return value}}_normalizeValue(value,out,start){const{defaultValue:defaultValue,size:size}=this.settings;if(Number.isFinite(value))return out[start]=value,out;if(!value){let i=size;for(;--i>=0;)out[start+i]=defaultValue[i];return out}switch(size){case 4:out[start+3]=Number.isFinite(value[3])?value[3]:defaultValue[3];case 3:out[start+2]=Number.isFinite(value[2])?value[2]:defaultValue[2];case 2:out[start+1]=Number.isFinite(value[1])?value[1]:defaultValue[1];case 1:out[start+0]=Number.isFinite(value[0])?value[0]:defaultValue[0];break;default:let i=size;for(;--i>=0;)out[start+i]=Number.isFinite(value[i])?value[i]:defaultValue[i]}return out}_areValuesEqual(value1,value2){if(!value1||!value2)return!1;const{size:size}=this;for(let i=0;iopts[a]))]:opts[accessor];return(0,attribute_transition_utils.M0)(userSettings,layerSettings)}setNeedsUpdate(reason=this.id,dataRange){if(this.state.needsUpdate=this.state.needsUpdate||reason,this.setNeedsRedraw(reason),dataRange){const{startRow:startRow=0,endRow:endRow=1/0}=dataRange;this.state.updateRanges=function add(rangeList,range){if(rangeList===FULL)return rangeList;if(range[0]<0&&(range[0]=0),range[0]>=range[1])return rangeList;const newRangeList=[],len=rangeList.length;let insertPosition=0;for(let i=0;irange[1]?newRangeList.push(range0):range=[Math.min(range0[0],range[0]),Math.max(range0[1],range[1])]}return newRangeList.splice(insertPosition,0,range),newRangeList}(this.state.updateRanges,[startRow,endRow])}else this.state.updateRanges=FULL}clearNeedsUpdate(){this.state.needsUpdate=!1,this.state.updateRanges=EMPTY}setNeedsRedraw(reason=this.id){this.state.needsRedraw=this.state.needsRedraw||reason}allocate(numInstances){const{state:state,settings:settings}=this;return!settings.noAlloc&&(!!settings.update&&(super.allocate(numInstances,state.updateRanges!==FULL),!0))}updateBuffer({numInstances:numInstances,data:data,props:props,context:context}){if(!this.needsUpdate())return!1;const{state:{updateRanges:updateRanges},settings:{update:update,noAlloc:noAlloc}}=this;let updated=!0;if(update){for(const[startRow,endRow]of updateRanges)update.call(context,this,{data:data,startRow:startRow,endRow:endRow,props:props,numInstances:numInstances});if(this.value)if(this.constant||this.buffer.byteLengthsize?value.set(objectValue,i):(attribute._normalizeValue(objectValue,objectInfo.target,0),(0,flatten.k)({target:value,source:objectInfo.target,start:i,count:numVertices}));i+=numVertices*size}else attribute._normalizeValue(objectValue,value,i),i+=size}}_validateAttributeUpdaters(){const{settings:settings}=this;if(!(settings.noAlloc||"function"==typeof settings.update))throw new Error("Attribute ".concat(this.id," missing update or accessor"))}_checkAttributeArray(){const{value:value}=this,limit=Math.min(4,this.size);if(value&&value.length>=limit){let valid=!0;switch(limit){case 4:valid=valid&&Number.isFinite(value[3]);case 3:valid=valid&&Number.isFinite(value[2]);case 2:valid=valid&&Number.isFinite(value[1]);case 1:valid=valid&&Number.isFinite(value[0]);break;default:valid=!1}if(!valid)throw new Error("Illegal attribute generated for ".concat(this.id))}}}var memoize=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/memoize.js"),debug=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/debug/index.js"),transform=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/transform/transform.js"),transition=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/transition.js");const vs="\n#define SHADER_NAME interpolation-transition-vertex-shader\n\nuniform float time;\nattribute ATTRIBUTE_TYPE aFrom;\nattribute ATTRIBUTE_TYPE aTo;\nvarying ATTRIBUTE_TYPE vCurrent;\n\nvoid main(void) {\n vCurrent = mix(aFrom, aTo, time);\n gl_Position = vec4(0.0);\n}\n";var copy_and_blit=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js");const TRANSITION_TYPES={interpolation:class GPUInterpolationTransition{constructor({gl:gl,attribute:attribute,timeline:timeline}){(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"type","interpolation"),(0,defineProperty.Z)(this,"attributeInTransition",void 0),(0,defineProperty.Z)(this,"settings",void 0),(0,defineProperty.Z)(this,"attribute",void 0),(0,defineProperty.Z)(this,"transition",void 0),(0,defineProperty.Z)(this,"currentStartIndices",void 0),(0,defineProperty.Z)(this,"currentLength",void 0),(0,defineProperty.Z)(this,"transform",void 0),(0,defineProperty.Z)(this,"buffers",void 0),this.gl=gl,this.transition=new transition.Z(timeline),this.attribute=attribute,this.attributeInTransition=new Attribute(gl,attribute.settings),this.currentStartIndices=attribute.startIndices,this.currentLength=0,this.transform=function getTransform(gl,attribute){const attributeType=(0,attribute_transition_utils.w)(attribute.size);return new transform.Z(gl,{vs:vs,defines:{ATTRIBUTE_TYPE:attributeType},varyings:["vCurrent"]})}(gl,attribute);const bufferOpts={byteLength:0,usage:35050};this.buffers=[new buffer.Z(gl,bufferOpts),new buffer.Z(gl,bufferOpts)]}get inProgress(){return this.transition.inProgress}start(transitionSettings,numInstances){if(transitionSettings.duration<=0)return void this.transition.cancel();this.settings=transitionSettings;const{gl:gl,buffers:buffers,attribute:attribute}=this;(0,attribute_transition_utils.DY)(buffers);const padBufferOpts={numInstances:numInstances,attribute:attribute,fromLength:this.currentLength,fromStartIndices:this.currentStartIndices,getData:transitionSettings.enter};for(const buffer of buffers)(0,attribute_transition_utils.IV)({buffer:buffer,...padBufferOpts});this.currentStartIndices=attribute.startIndices,this.currentLength=(0,attribute_transition_utils.pi)(attribute,numInstances),this.attributeInTransition.setData({buffer:buffers[1],value:attribute.value}),this.transition.start(transitionSettings),this.transform.update({elementCount:Math.floor(this.currentLength/attribute.size),sourceBuffers:{aFrom:buffers[0],aTo:(0,attribute_transition_utils.AQ)(gl,attribute)},feedbackBuffers:{vCurrent:buffers[1]}})}update(){const updated=this.transition.update();if(updated){const{duration:duration,easing:easing}=this.settings,{time:time}=this.transition;let t=time/duration;easing&&(t=easing(t)),this.transform.run({uniforms:{time:t}})}return updated}cancel(){this.transition.cancel(),this.transform.delete();for(const buffer of this.buffers)buffer.delete();this.buffers.length=0}},spring:class GPUSpringTransition{constructor({gl:gl,attribute:attribute,timeline:timeline}){(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"type","spring"),(0,defineProperty.Z)(this,"attributeInTransition",void 0),(0,defineProperty.Z)(this,"settings",void 0),(0,defineProperty.Z)(this,"attribute",void 0),(0,defineProperty.Z)(this,"transition",void 0),(0,defineProperty.Z)(this,"currentStartIndices",void 0),(0,defineProperty.Z)(this,"currentLength",void 0),(0,defineProperty.Z)(this,"texture",void 0),(0,defineProperty.Z)(this,"framebuffer",void 0),(0,defineProperty.Z)(this,"transform",void 0),(0,defineProperty.Z)(this,"buffers",void 0),this.gl=gl,this.type="spring",this.transition=new transition.Z(timeline),this.attribute=attribute,this.attributeInTransition=new Attribute(gl,{...attribute.settings,normalized:!1}),this.currentStartIndices=attribute.startIndices,this.currentLength=0,this.texture=function getTexture(gl){return new texture_2d.Z(gl,{data:new Uint8Array(4),format:6408,type:5121,border:0,mipmaps:!1,dataFormat:6408,width:1,height:1})}(gl),this.framebuffer=function getFramebuffer(gl,texture){return new framebuffer.Z(gl,{id:"spring-transition-is-transitioning-framebuffer",width:1,height:1,attachments:{36064:texture}})}(gl,this.texture),this.transform=function gpu_spring_transition_getTransform(gl,attribute,framebuffer){const attributeType=(0,attribute_transition_utils.w)(attribute.size);return new transform.Z(gl,{framebuffer:framebuffer,vs:"\n#define SHADER_NAME spring-transition-vertex-shader\n\n#define EPSILON 0.00001\n\nuniform float stiffness;\nuniform float damping;\nattribute ATTRIBUTE_TYPE aPrev;\nattribute ATTRIBUTE_TYPE aCur;\nattribute ATTRIBUTE_TYPE aTo;\nvarying ATTRIBUTE_TYPE vNext;\nvarying float vIsTransitioningFlag;\n\nATTRIBUTE_TYPE getNextValue(ATTRIBUTE_TYPE cur, ATTRIBUTE_TYPE prev, ATTRIBUTE_TYPE dest) {\n ATTRIBUTE_TYPE velocity = cur - prev;\n ATTRIBUTE_TYPE delta = dest - cur;\n ATTRIBUTE_TYPE spring = delta * stiffness;\n ATTRIBUTE_TYPE damper = velocity * -1.0 * damping;\n return spring + damper + velocity + cur;\n}\n\nvoid main(void) {\n bool isTransitioning = length(aCur - aPrev) > EPSILON || length(aTo - aCur) > EPSILON;\n vIsTransitioningFlag = isTransitioning ? 1.0 : 0.0;\n\n vNext = getNextValue(aCur, aPrev, aTo);\n gl_Position = vec4(0, 0, 0, 1);\n gl_PointSize = 100.0;\n}\n",fs:"\n#define SHADER_NAME spring-transition-is-transitioning-fragment-shader\n\nvarying float vIsTransitioningFlag;\n\nvoid main(void) {\n if (vIsTransitioningFlag == 0.0) {\n discard;\n }\n gl_FragColor = vec4(1.0);\n}",defines:{ATTRIBUTE_TYPE:attributeType},varyings:["vNext"]})}(gl,attribute,this.framebuffer);const bufferOpts={byteLength:0,usage:35050};this.buffers=[new buffer.Z(gl,bufferOpts),new buffer.Z(gl,bufferOpts),new buffer.Z(gl,bufferOpts)]}get inProgress(){return this.transition.inProgress}start(transitionSettings,numInstances){const{gl:gl,buffers:buffers,attribute:attribute}=this,padBufferOpts={numInstances:numInstances,attribute:attribute,fromLength:this.currentLength,fromStartIndices:this.currentStartIndices,getData:transitionSettings.enter};for(const buffer of buffers)(0,attribute_transition_utils.IV)({buffer:buffer,...padBufferOpts});this.settings=transitionSettings,this.currentStartIndices=attribute.startIndices,this.currentLength=(0,attribute_transition_utils.pi)(attribute,numInstances),this.attributeInTransition.setData({buffer:buffers[1],value:attribute.value}),this.transition.start({...transitionSettings,duration:1/0}),this.transform.update({elementCount:Math.floor(this.currentLength/attribute.size),sourceBuffers:{aTo:(0,attribute_transition_utils.AQ)(gl,attribute)}})}update(){const{buffers:buffers,transform:transform,framebuffer:framebuffer,transition:transition}=this;if(!transition.update())return!1;const settings=this.settings;transform.update({sourceBuffers:{aPrev:buffers[0],aCur:buffers[1]},feedbackBuffers:{vNext:buffers[2]}}),transform.run({framebuffer:framebuffer,discard:!1,clearRenderTarget:!0,uniforms:{stiffness:settings.stiffness,damping:settings.damping},parameters:{depthTest:!1,blend:!0,viewport:[0,0,1,1],blendFunc:[1,1],blendEquation:[32776,32776]}}),(0,attribute_transition_utils.DY)(buffers),this.attributeInTransition.setData({buffer:buffers[1],value:this.attribute.value});return(0,copy_and_blit.z6)(framebuffer)[0]>0||transition.end(),!0}cancel(){this.transition.cancel(),this.transform.delete();for(const buffer of this.buffers)buffer.delete();this.buffers.length=0,this.texture.delete(),this.framebuffer.delete()}}};class AttributeTransitionManager{constructor(gl,{id:id,timeline:timeline}){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"isSupported",void 0),(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"timeline",void 0),(0,defineProperty.Z)(this,"transitions",void 0),(0,defineProperty.Z)(this,"needsRedraw",void 0),(0,defineProperty.Z)(this,"numInstances",void 0),this.id=id,this.gl=gl,this.timeline=timeline,this.transitions={},this.needsRedraw=!1,this.numInstances=1,this.isSupported=transform.Z.isSupported(gl)}finalize(){for(const attributeName in this.transitions)this._removeTransition(attributeName)}update({attributes:attributes,transitions:transitions,numInstances:numInstances}){this.numInstances=numInstances||1;for(const attributeName in attributes){const attribute=attributes[attributeName],settings=attribute.getTransitionSetting(transitions);settings&&this._updateAttribute(attributeName,attribute,settings)}for(const attributeName in this.transitions){const attribute=attributes[attributeName];attribute&&attribute.getTransitionSetting(transitions)||this._removeTransition(attributeName)}}hasAttribute(attributeName){const transition=this.transitions[attributeName];return transition&&transition.inProgress}getAttributes(){const animatedAttributes={};for(const attributeName in this.transitions){const transition=this.transitions[attributeName];transition.inProgress&&(animatedAttributes[attributeName]=transition.attributeInTransition)}return animatedAttributes}run(){if(!this.isSupported||0===this.numInstances)return!1;for(const attributeName in this.transitions){this.transitions[attributeName].update()&&(this.needsRedraw=!0)}const needsRedraw=this.needsRedraw;return this.needsRedraw=!1,needsRedraw}_removeTransition(attributeName){this.transitions[attributeName].cancel(),delete this.transitions[attributeName]}_updateAttribute(attributeName,attribute,settings){const transition=this.transitions[attributeName];let isNew=!transition||transition.type!==settings.type;if(isNew){if(!this.isSupported)return void log.Z.warn("WebGL2 not supported by this browser. Transition for ".concat(attributeName," is disabled."))();transition&&this._removeTransition(attributeName);const TransitionType=TRANSITION_TYPES[settings.type];TransitionType?this.transitions[attributeName]=new TransitionType({attribute:attribute,timeline:this.timeline,gl:this.gl}):(log.Z.error("unsupported transition type '".concat(settings.type,"'"))(),isNew=!1)}(isNew||attribute.needsRedraw())&&(this.needsRedraw=!0,this.transitions[attributeName].start(settings,this.numInstances))}}class AttributeManager{constructor(gl,{id:id="attribute-manager",stats:stats,timeline:timeline}={}){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"attributes",void 0),(0,defineProperty.Z)(this,"updateTriggers",void 0),(0,defineProperty.Z)(this,"needsRedraw",void 0),(0,defineProperty.Z)(this,"userData",void 0),(0,defineProperty.Z)(this,"stats",void 0),(0,defineProperty.Z)(this,"attributeTransitionManager",void 0),(0,defineProperty.Z)(this,"mergeBoundsMemoized",(0,memoize.Z)(math_utils.cc)),this.id=id,this.gl=gl,this.attributes={},this.updateTriggers={},this.needsRedraw=!0,this.userData={},this.stats=stats,this.attributeTransitionManager=new AttributeTransitionManager(gl,{id:"".concat(id,"-transitions"),timeline:timeline}),Object.seal(this)}finalize(){for(const attributeName in this.attributes)this.attributes[attributeName].delete();this.attributeTransitionManager.finalize()}getNeedsRedraw(opts={clearRedrawFlags:!1}){const redraw=this.needsRedraw;return this.needsRedraw=this.needsRedraw&&!opts.clearRedrawFlags,redraw&&this.id}setNeedsRedraw(){this.needsRedraw=!0}add(attributes){this._add(attributes)}addInstanced(attributes){this._add(attributes,{instanced:1})}remove(attributeNameArray){for(const name of attributeNameArray)void 0!==this.attributes[name]&&(this.attributes[name].delete(),delete this.attributes[name])}invalidate(triggerName,dataRange){const invalidatedAttributes=this._invalidateTrigger(triggerName,dataRange);(0,debug.Z)("attributeManager.invalidate",this,triggerName,invalidatedAttributes)}invalidateAll(dataRange){for(const attributeName in this.attributes)this.attributes[attributeName].setNeedsUpdate(attributeName,dataRange);(0,debug.Z)("attributeManager.invalidate",this,"all")}update({data:data,numInstances:numInstances,startIndices:startIndices=null,transitions:transitions,props:props={},buffers:buffers={},context:context={}}){let updated=!1;(0,debug.Z)("attributeManager.updateStart",this),this.stats&&this.stats.get("Update Attributes").timeStart();for(const attributeName in this.attributes){const attribute=this.attributes[attributeName],accessorName=attribute.settings.accessor;attribute.startIndices=startIndices,attribute.numInstances=numInstances,props[attributeName]&&log.Z.removed("props.".concat(attributeName),"data.attributes.".concat(attributeName))(),attribute.setExternalBuffer(buffers[attributeName])||attribute.setBinaryValue("string"==typeof accessorName?buffers[accessorName]:void 0,data.startIndices)||"string"==typeof accessorName&&!buffers[accessorName]&&attribute.setConstantValue(props[accessorName])||attribute.needsUpdate()&&(updated=!0,this._updateAttribute({attribute:attribute,numInstances:numInstances,data:data,props:props,context:context})),this.needsRedraw=this.needsRedraw||attribute.needsRedraw()}updated&&(0,debug.Z)("attributeManager.updateEnd",this,numInstances),this.stats&&this.stats.get("Update Attributes").timeEnd(),this.attributeTransitionManager.update({attributes:this.attributes,numInstances:numInstances,transitions:transitions})}updateTransition(){const{attributeTransitionManager:attributeTransitionManager}=this,transitionUpdated=attributeTransitionManager.run();return this.needsRedraw=this.needsRedraw||transitionUpdated,transitionUpdated}getAttributes(){return this.attributes}getBounds(attributeNames){const bounds=attributeNames.map((attributeName=>{var _this$attributes$attr;return null===(_this$attributes$attr=this.attributes[attributeName])||void 0===_this$attributes$attr?void 0:_this$attributes$attr.getBounds()}));return this.mergeBoundsMemoized(bounds)}getChangedAttributes(opts={clearChangedFlags:!1}){const{attributes:attributes,attributeTransitionManager:attributeTransitionManager}=this,changedAttributes={...attributeTransitionManager.getAttributes()};for(const attributeName in attributes){const attribute=attributes[attributeName];attribute.needsRedraw(opts)&&!attributeTransitionManager.hasAttribute(attributeName)&&(changedAttributes[attributeName]=attribute)}return changedAttributes}getShaderAttributes(attributes,excludeAttributes={}){attributes||(attributes=this.getAttributes());const shaderAttributes={};for(const attributeName in attributes)excludeAttributes[attributeName]||Object.assign(shaderAttributes,attributes[attributeName].getShaderAttributes());return shaderAttributes}_add(attributes,extraProps={}){for(const attributeName in attributes){const attribute=attributes[attributeName];this.attributes[attributeName]=this._createAttribute(attributeName,attribute,extraProps)}this._mapUpdateTriggersToAttributes()}_createAttribute(name,attribute,extraProps){const props={...attribute,id:name,size:(attribute.isIndexed?1:attribute.size)||1,divisor:extraProps.instanced?1:attribute.divisor||0};return new Attribute(this.gl,props)}_mapUpdateTriggersToAttributes(){const triggers={};for(const attributeName in this.attributes){this.attributes[attributeName].getUpdateTriggers().forEach((triggerName=>{triggers[triggerName]||(triggers[triggerName]=[]),triggers[triggerName].push(attributeName)}))}this.updateTriggers=triggers}_invalidateTrigger(triggerName,dataRange){const{attributes:attributes,updateTriggers:updateTriggers}=this,invalidatedAttributes=updateTriggers[triggerName];return invalidatedAttributes&&invalidatedAttributes.forEach((name=>{const attribute=attributes[name];attribute&&attribute.setNeedsUpdate(attribute.id,dataRange)})),invalidatedAttributes}_updateAttribute(opts){const{attribute:attribute,numInstances:numInstances}=opts;if((0,debug.Z)("attribute.updateStart",attribute),attribute.constant)return void attribute.setConstantValue(attribute.value);attribute.allocate(numInstances)&&(0,debug.Z)("attribute.allocate",attribute,numInstances);attribute.updateBuffer(opts)&&(this.needsRedraw=!0,(0,debug.Z)("attribute.updateEnd",attribute,numInstances))}}},"./node_modules/@deck.gl/core/dist/esm/lib/attribute/attribute-transition-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function padArrayChunk(options){const{source:source,target:target,start:start=0,size:size,getData:getData}=options,end=options.end||target.length,sourceLength=source.length,targetLength=end-start;if(sourceLength>targetLength)return void target.set(source.subarray(0,targetLength),start);if(target.set(source,start),!getData)return;let i=sourceLength;for(;it},spring:{stiffness:.05,damping:.5}};function normalizeTransitionSettings(userSettings,layerSettings){if(!userSettings)return null;Number.isFinite(userSettings)&&(userSettings={type:"interpolation",duration:userSettings});const type=userSettings.type||"interpolation";return{...DEFAULT_TRANSITION_SETTINGS[type],...layerSettings,...userSettings,type:type}}function getSourceBufferAttribute(gl,attribute){const buffer=attribute.getBuffer();return buffer?[buffer,{divisor:0,size:attribute.size,normalized:attribute.settings.normalized}]:attribute.value}function getAttributeTypeFromSize(size){switch(size){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4";default:throw new Error('No defined attribute type for size "'.concat(size,'"'))}}function cycleBuffers(buffers){buffers.push(buffers.shift())}function getAttributeBufferLength(attribute,numInstances){const{doublePrecision:doublePrecision,settings:settings,value:value,size:size}=attribute,multiplier=doublePrecision&&value instanceof Float64Array?2:1;return(settings.noAlloc?value.length:numInstances*size)*multiplier}function padBuffer({buffer:buffer,numInstances:numInstances,attribute:attribute,fromLength:fromLength,fromStartIndices:fromStartIndices,getData:getData=(x=>x)}){const precisionMultiplier=attribute.doublePrecision&&attribute.value instanceof Float64Array?2:1,size=attribute.size*precisionMultiplier,byteOffset=attribute.byteOffset,toStartIndices=attribute.startIndices,hasStartIndices=fromStartIndices&&toStartIndices,toLength=getAttributeBufferLength(attribute,numInstances),isConstant=attribute.isConstant;if(!hasStartIndices&&fromLength>=toLength)return;const toData=isConstant?attribute.value:attribute.getBuffer().getData({srcByteOffset:byteOffset});if(attribute.settings.normalized&&!isConstant){const getter=getData;getData=(value,chunk)=>attribute.normalizeConstant(getter(value,chunk))}const getMissingData=isConstant?(i,chunk)=>getData(toData,chunk):(i,chunk)=>getData(toData.subarray(i,i+size),chunk),source=buffer.getData({length:fromLength}),data=new Float32Array(toLength);!function padArray({source:source,target:target,size:size,getData:getData,sourceStartIndices:sourceStartIndices,targetStartIndices:targetStartIndices}){if(!Array.isArray(targetStartIndices))return padArrayChunk({source:source,target:target,size:size,getData:getData}),target;let sourceIndex=0,targetIndex=0;const getChunkData=getData&&((i,chunk)=>getData(i+targetIndex,chunk)),n=Math.min(sourceStartIndices.length,targetStartIndices.length);for(let i=1;ilayer.isLoaded))}getSubLayers(){return this.internalState&&this.internalState.subLayers||[]}initializeState(context){}setState(updateObject){super.setState(updateObject),this.setNeedsUpdate()}getPickingInfo({info:info}){const{object:object}=info;return object&&object.__source&&object.__source.parent&&object.__source.parent.id===this.id?(info.object=object.__source.object,info.index=object.__source.index,info):info}filterSubLayer(context){return!0}shouldRenderSubLayer(subLayerId,data){return data&&data.length}getSubLayerClass(subLayerId,DefaultLayerClass){const{_subLayerProps:overridingProps}=this.props;return overridingProps&&overridingProps[subLayerId]&&overridingProps[subLayerId].type||DefaultLayerClass}getSubLayerRow(row,sourceObject,sourceObjectIndex){return row.__source={parent:this,object:sourceObject,index:sourceObjectIndex},row}getSubLayerAccessor(accessor){if("function"==typeof accessor){const objectInfo={index:-1,data:this.props.data,target:[]};return(x,i)=>x&&x.__source?(objectInfo.index=x.__source.index,accessor(x.__source.object,objectInfo)):accessor(x,i)}return accessor}getSubLayerProps(sublayerProps={}){var _this$props$updateTri;const{opacity:opacity,pickable:pickable,visible:visible,parameters:parameters,getPolygonOffset:getPolygonOffset,highlightedObjectIndex:highlightedObjectIndex,autoHighlight:autoHighlight,highlightColor:highlightColor,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,wrapLongitude:wrapLongitude,positionFormat:positionFormat,modelMatrix:modelMatrix,extensions:extensions,fetch:fetch,operation:operation,_subLayerProps:overridingProps}=this.props,newProps={id:"",updateTriggers:{},opacity:opacity,pickable:pickable,visible:visible,parameters:parameters,getPolygonOffset:getPolygonOffset,highlightedObjectIndex:highlightedObjectIndex,autoHighlight:autoHighlight,highlightColor:highlightColor,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,wrapLongitude:wrapLongitude,positionFormat:positionFormat,modelMatrix:modelMatrix,extensions:extensions,fetch:fetch,operation:operation},overridingSublayerProps=overridingProps&&sublayerProps.id&&overridingProps[sublayerProps.id],overridingSublayerTriggers=overridingSublayerProps&&overridingSublayerProps.updateTriggers,sublayerId=sublayerProps.id||"sublayer";if(overridingSublayerProps){const propTypes=this.props[_lifecycle_constants__WEBPACK_IMPORTED_MODULE_1__.Wb],subLayerPropTypes=sublayerProps.type?sublayerProps.type._propTypes:{};for(const key in overridingSublayerProps){const propType=subLayerPropTypes[key]||propTypes[key];propType&&"accessor"===propType.type&&(overridingSublayerProps[key]=this.getSubLayerAccessor(overridingSublayerProps[key]))}}Object.assign(newProps,sublayerProps,overridingSublayerProps),newProps.id="".concat(this.props.id,"-").concat(sublayerId),newProps.updateTriggers={all:null===(_this$props$updateTri=this.props.updateTriggers)||void 0===_this$props$updateTri?void 0:_this$props$updateTri.all,...sublayerProps.updateTriggers,...overridingSublayerTriggers};for(const extension of extensions){const passThroughProps=extension.getSubLayerProps.call(this,extension);passThroughProps&&Object.assign(newProps,passThroughProps,{updateTriggers:Object.assign(newProps.updateTriggers,passThroughProps.updateTriggers)})}return newProps}_updateAutoHighlight(info){for(const layer of this.getSubLayers())layer.updateAutoHighlight(info)}_getAttributeManager(){return null}_postUpdate(updateParams,forceUpdate){let subLayers=this.internalState.subLayers;const shouldUpdate=!subLayers||this.needsUpdate();if(shouldUpdate){const subLayersList=this.renderLayers();subLayers=(0,_utils_flatten__WEBPACK_IMPORTED_MODULE_2__.x)(subLayersList,Boolean),this.internalState.subLayers=subLayers}(0,_debug__WEBPACK_IMPORTED_MODULE_3__.Z)("compositeLayer.renderLayers",this,shouldUpdate,subLayers);for(const layer of subLayers)layer.parent=this}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(CompositeLayer,"layerName","CompositeLayer")},"./node_modules/@deck.gl/core/dist/esm/lib/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{COORDINATE_SYSTEM:function(){return COORDINATE_SYSTEM},FP:function(){return EVENTS},iI:function(){return UNIT},k8:function(){return OPERATION},zG:function(){return PROJECTION_MODE}});var _utils_log__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js");const COORDINATE_SYSTEM={DEFAULT:-1,LNGLAT:1,METER_OFFSETS:2,LNGLAT_OFFSETS:3,CARTESIAN:0};Object.defineProperty(COORDINATE_SYSTEM,"IDENTITY",{get:()=>(_utils_log__WEBPACK_IMPORTED_MODULE_0__.Z.deprecated("COORDINATE_SYSTEM.IDENTITY","COORDINATE_SYSTEM.CARTESIAN")(),0)});const PROJECTION_MODE={WEB_MERCATOR:1,GLOBE:2,WEB_MERCATOR_AUTO_OFFSET:4,IDENTITY:0},UNIT={common:0,meters:1,pixels:2},EVENTS={click:{handler:"onClick"},panstart:{handler:"onDragStart"},panmove:{handler:"onDrag"},panend:{handler:"onDragEnd"}},OPERATION={DRAW:"draw",MASK:"mask",TERRAIN:"terrain"}},"./node_modules/@deck.gl/core/dist/esm/lib/deck-renderer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return DeckRenderer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),debug=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/debug/index.js"),layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/layers-pass.js");class DrawLayersPass extends layers_pass.Z{shouldDrawLayer(layer){const{operation:operation}=layer.props;return operation.includes("draw")||operation.includes("terrain")}}var pick_layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/pick-layers-pass.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js");class DeckRenderer{constructor(gl){(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"layerFilter",void 0),(0,defineProperty.Z)(this,"drawPickingColors",void 0),(0,defineProperty.Z)(this,"drawLayersPass",void 0),(0,defineProperty.Z)(this,"pickLayersPass",void 0),(0,defineProperty.Z)(this,"renderCount",void 0),(0,defineProperty.Z)(this,"_needsRedraw",void 0),(0,defineProperty.Z)(this,"renderBuffers",void 0),(0,defineProperty.Z)(this,"lastPostProcessEffect",void 0),this.gl=gl,this.layerFilter=null,this.drawPickingColors=!1,this.drawLayersPass=new DrawLayersPass(gl),this.pickLayersPass=new pick_layers_pass.Z(gl),this.renderCount=0,this._needsRedraw="Initial render",this.renderBuffers=[],this.lastPostProcessEffect=null}setProps(props){this.layerFilter!==props.layerFilter&&(this.layerFilter=props.layerFilter,this._needsRedraw="layerFilter changed"),this.drawPickingColors!==props.drawPickingColors&&(this.drawPickingColors=props.drawPickingColors,this._needsRedraw="drawPickingColors changed")}renderLayers(opts){if(!opts.viewports.length)return;const layerPass=this.drawPickingColors?this.pickLayersPass:this.drawLayersPass,renderOpts={layerFilter:this.layerFilter,isPicking:this.drawPickingColors,...opts,target:opts.target||framebuffer.Z.getDefaultFramebuffer(this.gl)};renderOpts.effects&&this._preRender(renderOpts.effects,renderOpts);const outputBuffer=this.lastPostProcessEffect?this.renderBuffers[0]:renderOpts.target,renderStats=layerPass.render({...renderOpts,target:outputBuffer});renderOpts.effects&&this._postRender(renderOpts.effects,renderOpts),this.renderCount++,(0,debug.Z)("deckRenderer.renderLayers",this,renderStats,opts)}needsRedraw(opts={clearRedrawFlags:!1}){const redraw=this._needsRedraw;return opts.clearRedrawFlags&&(this._needsRedraw=!1),redraw}finalize(){const{renderBuffers:renderBuffers}=this;for(const buffer of renderBuffers)buffer.delete();renderBuffers.length=0}_preRender(effects,opts){this.lastPostProcessEffect=null,opts.preRenderStats=opts.preRenderStats||{};for(const effect of effects)opts.preRenderStats[effect.id]=effect.preRender(this.gl,opts),effect.postRender&&(this.lastPostProcessEffect=effect.id);this.lastPostProcessEffect&&this._resizeRenderBuffers()}_resizeRenderBuffers(){const{renderBuffers:renderBuffers}=this;0===renderBuffers.length&&renderBuffers.push(new framebuffer.Z(this.gl),new framebuffer.Z(this.gl));for(const buffer of renderBuffers)buffer.resize()}_postRender(effects,opts){const{renderBuffers:renderBuffers}=this,params={...opts,inputBuffer:renderBuffers[0],swapBuffer:renderBuffers[1],target:null};for(const effect of effects)if(effect.postRender){if(effect.id===this.lastPostProcessEffect){params.target=opts.target,effect.postRender(this.gl,params);break}const buffer=effect.postRender(this.gl,params);params.inputBuffer=buffer,params.swapBuffer=buffer===renderBuffers[0]?renderBuffers[1]:renderBuffers[0]}}}},"./node_modules/@deck.gl/core/dist/esm/lib/deck.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Deck}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),layer_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer-manager.js"),deep_equal=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),flatten=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/flatten.js");class ViewManager{constructor(props){(0,defineProperty.Z)(this,"width",void 0),(0,defineProperty.Z)(this,"height",void 0),(0,defineProperty.Z)(this,"views",void 0),(0,defineProperty.Z)(this,"viewState",void 0),(0,defineProperty.Z)(this,"controllers",void 0),(0,defineProperty.Z)(this,"timeline",void 0),(0,defineProperty.Z)(this,"_viewports",void 0),(0,defineProperty.Z)(this,"_viewportMap",void 0),(0,defineProperty.Z)(this,"_isUpdating",void 0),(0,defineProperty.Z)(this,"_needsRedraw",void 0),(0,defineProperty.Z)(this,"_needsUpdate",void 0),(0,defineProperty.Z)(this,"_eventManager",void 0),(0,defineProperty.Z)(this,"_eventCallbacks",void 0),this.views=[],this.width=100,this.height=100,this.viewState={},this.controllers={},this.timeline=props.timeline,this._viewports=[],this._viewportMap={},this._isUpdating=!1,this._needsRedraw="First render",this._needsUpdate="Initialize",this._eventManager=props.eventManager,this._eventCallbacks={onViewStateChange:props.onViewStateChange,onInteractionStateChange:props.onInteractionStateChange},Object.seal(this),this.setProps(props)}finalize(){for(const key in this.controllers){const controller=this.controllers[key];controller&&controller.finalize()}this.controllers={}}needsRedraw(opts={clearRedrawFlags:!1}){const redraw=this._needsRedraw;return opts.clearRedrawFlags&&(this._needsRedraw=!1),redraw}setNeedsUpdate(reason){this._needsUpdate=this._needsUpdate||reason,this._needsRedraw=this._needsRedraw||reason}updateViewStates(){for(const viewId in this.controllers){const controller=this.controllers[viewId];controller&&controller.updateTransition()}}getViewports(rect){return rect?this._viewports.filter((viewport=>viewport.containsPixel(rect))):this._viewports}getViews(){const viewMap={};return this.views.forEach((view=>{viewMap[view.id]=view})),viewMap}getView(viewId){return this.views.find((view=>view.id===viewId))}getViewState(viewOrViewId){const view="string"==typeof viewOrViewId?this.getView(viewOrViewId):viewOrViewId,viewState=view&&this.viewState[view.getViewStateId()]||this.viewState;return view?view.filterViewState(viewState):viewState}getViewport(viewId){return this._viewportMap[viewId]}unproject(xyz,opts){const viewports=this.getViewports(),pixel={x:xyz[0],y:xyz[1]};for(let i=viewports.length-1;i>=0;--i){const viewport=viewports[i];if(viewport.containsPixel(pixel)){const p=xyz.slice();return p[0]-=viewport.x,p[1]-=viewport.y,viewport.unproject(p,opts)}}return null}setProps(props){props.views&&this._setViews(props.views),props.viewState&&this._setViewState(props.viewState),("width"in props||"height"in props)&&this._setSize(props.width,props.height),this._isUpdating||this._update()}_update(){this._isUpdating=!0,this._needsUpdate&&(this._needsUpdate=!1,this._rebuildViewports()),this._needsUpdate&&(this._needsUpdate=!1,this._rebuildViewports()),this._isUpdating=!1}_setSize(width,height){width===this.width&&height===this.height||(this.width=width,this.height=height,this.setNeedsUpdate("Size changed"))}_setViews(views){views=(0,flatten.x)(views,Boolean);this._diffViews(views,this.views)&&this.setNeedsUpdate("views changed"),this.views=views}_setViewState(viewState){if(viewState){!(0,deep_equal.v)(viewState,this.viewState,3)&&this.setNeedsUpdate("viewState changed"),this.viewState=viewState}else log.Z.warn("missing `viewState` or `initialViewState`")()}_onViewStateChange(viewId,event){this._eventCallbacks.onViewStateChange&&this._eventCallbacks.onViewStateChange({...event,viewId:viewId})}_createController(view,props){return new(0,props.type)({timeline:this.timeline,eventManager:this._eventManager,onViewStateChange:this._onViewStateChange.bind(this,props.id),onStateChange:this._eventCallbacks.onInteractionStateChange,makeViewport:viewState=>{var _this$getView;return null===(_this$getView=this.getView(view.id))||void 0===_this$getView?void 0:_this$getView.makeViewport({viewState:viewState,width:this.width,height:this.height})}})}_updateController(view,viewState,viewport,controller){const controllerProps=view.controller;if(controllerProps&&viewport){const resolvedProps={...viewState,...controllerProps,id:view.id,x:viewport.x,y:viewport.y,width:viewport.width,height:viewport.height};return controller&&controller.constructor===controllerProps.type||(controller=this._createController(view,resolvedProps)),controller&&controller.setProps(resolvedProps),controller}return null}_rebuildViewports(){const{views:views}=this,oldControllers=this.controllers;this._viewports=[],this.controllers={};let invalidateControllers=!1;for(let i=views.length;i--;){const view=views[i],viewState=this.getViewState(view),viewport=view.makeViewport({viewState:viewState,width:this.width,height:this.height});let oldController=oldControllers[view.id];const hasController=Boolean(view.controller);hasController&&!oldController&&(invalidateControllers=!0),!invalidateControllers&&hasController||!oldController||(oldController.finalize(),oldController=null),this.controllers[view.id]=this._updateController(view,viewState,viewport,oldController),viewport&&this._viewports.unshift(viewport)}for(const id in oldControllers){const oldController=oldControllers[id];oldController&&!this.controllers[id]&&oldController.finalize()}this._buildViewportMap()}_buildViewportMap(){this._viewportMap={},this._viewports.forEach((viewport=>{viewport.id&&(this._viewportMap[viewport.id]=this._viewportMap[viewport.id]||viewport)}))}_diffViews(newViews,oldViews){return newViews.length!==oldViews.length||newViews.some(((_,i)=>!newViews[i].equals(oldViews[i])))}}var map_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/map-view.js"),lighting_effect=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/lighting-effect.js");const DEFAULT_LIGHTING_EFFECT=new lighting_effect.Z;class EffectManager{constructor(){(0,defineProperty.Z)(this,"effects",void 0),(0,defineProperty.Z)(this,"_resolvedEffects",[]),(0,defineProperty.Z)(this,"_defaultEffects",[]),(0,defineProperty.Z)(this,"_needsRedraw",void 0),this.effects=[],this._needsRedraw="Initial render",this._setEffects([])}addDefaultEffect(effect){const defaultEffects=this._defaultEffects;if(!defaultEffects.find((e=>e.id===effect.id))){const index=defaultEffects.findIndex((e=>function compareEffects(e1,e2){var _e1$order,_e2$order;return(null!==(_e1$order=e1.order)&&void 0!==_e1$order?_e1$order:1/0)-(null!==(_e2$order=e2.order)&&void 0!==_e2$order?_e2$order:1/0)}(e,effect)>0));index<0?defaultEffects.push(effect):defaultEffects.splice(index,0,effect),this._setEffects(this.effects)}}setProps(props){"effects"in props&&((0,deep_equal.v)(props.effects,this.effects,1)||this._setEffects(props.effects))}needsRedraw(opts={clearRedrawFlags:!1}){const redraw=this._needsRedraw;return opts.clearRedrawFlags&&(this._needsRedraw=!1),redraw}getEffects(){return this._resolvedEffects}_setEffects(effects){const oldEffectsMap={};for(const effect of this.effects)oldEffectsMap[effect.id]=effect;const nextEffects=[];for(const effect of effects){const oldEffect=oldEffectsMap[effect.id];oldEffect&&oldEffect!==effect?oldEffect.setProps?(oldEffect.setProps(effect.props),nextEffects.push(oldEffect)):(oldEffect.cleanup(),nextEffects.push(effect)):nextEffects.push(effect),delete oldEffectsMap[effect.id]}for(const removedEffectId in oldEffectsMap)oldEffectsMap[removedEffectId].cleanup();this.effects=nextEffects,this._resolvedEffects=nextEffects.concat(this._defaultEffects),effects.some((effect=>effect instanceof lighting_effect.Z))||this._resolvedEffects.push(DEFAULT_LIGHTING_EFFECT),this._needsRedraw="effects changed"}finalize(){for(const effect of this._resolvedEffects)effect.cleanup();this.effects.length=0,this._resolvedEffects.length=0,this._defaultEffects.length=0}}var deck_renderer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/deck-renderer.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),copy_and_blit=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),pick_layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/pick-layers-pass.js");const NO_PICKED_OBJECT={pickedColor:null,pickedObjectIndex:-1};function getClosestObject({pickedColors:pickedColors,decodePickingColor:decodePickingColor,deviceX:deviceX,deviceY:deviceY,deviceRadius:deviceRadius,deviceRect:deviceRect}){const{x:x,y:y,width:width,height:height}=deviceRect;let minSquareDistanceToCenter=deviceRadius*deviceRadius,closestPixelIndex=-1,i=0;for(let row=0;rowminSquareDistanceToCenter)i+=4*width;else for(let col=0;col=0){const dx=col+x-deviceX,d2=dx*dx+dy2;d2<=minSquareDistanceToCenter&&(minSquareDistanceToCenter=d2,closestPixelIndex=i)}i+=4}}if(closestPixelIndex>=0){const pickedColor=pickedColors.slice(closestPixelIndex,closestPixelIndex+4),pickedObject=decodePickingColor(pickedColor);if(pickedObject){const dy=Math.floor(closestPixelIndex/4/width),dx=closestPixelIndex/4-dy*width;return{...pickedObject,pickedColor:pickedColor,pickedX:x+dx,pickedY:y+dy}}log.Z.error("Picked non-existent layer. Is picking buffer corrupt?")()}return NO_PICKED_OBJECT}function getEmptyPickingInfo({pickInfo:pickInfo,viewports:viewports,pixelRatio:pixelRatio,x:x,y:y,z:z}){let coordinate,pickedViewport=viewports[0];if(viewports.length>1&&(pickedViewport=function getViewportFromCoordinates(viewports,pixel){for(let i=viewports.length-1;i>=0;i--){const viewport=viewports[i];if(viewport.containsPixel(pixel))return viewport}return viewports[0]}((null==pickInfo?void 0:pickInfo.pickedViewports)||viewports,{x:x,y:y})),pickedViewport){const point=[x-pickedViewport.x,y-pickedViewport.y];void 0!==z&&(point[2]=z),coordinate=pickedViewport.unproject(point)}return{color:null,layer:null,viewport:pickedViewport,index:-1,picked:!1,x:x,y:y,pixel:[x,y],coordinate:coordinate,devicePixel:pickInfo&&"pickedX"in pickInfo?[pickInfo.pickedX,pickInfo.pickedY]:void 0,pixelRatio:pixelRatio}}function processPickInfo(opts){const{pickInfo:pickInfo,lastPickedInfo:lastPickedInfo,mode:mode,layers:layers}=opts,{pickedColor:pickedColor,pickedLayer:pickedLayer,pickedObjectIndex:pickedObjectIndex}=pickInfo,affectedLayers=pickedLayer?[pickedLayer]:[];if("hover"===mode){const lastPickedPixelIndex=lastPickedInfo.index,lastPickedLayerId=lastPickedInfo.layerId,pickedLayerId=pickedLayer?pickedLayer.props.id:null;if(pickedLayerId!==lastPickedLayerId||pickedObjectIndex!==lastPickedPixelIndex){if(pickedLayerId!==lastPickedLayerId){const lastPickedLayer=layers.find((layer=>layer.props.id===lastPickedLayerId));lastPickedLayer&&affectedLayers.unshift(lastPickedLayer)}lastPickedInfo.layerId=pickedLayerId,lastPickedInfo.index=pickedObjectIndex,lastPickedInfo.info=null}}const baseInfo=getEmptyPickingInfo(opts),infos=new Map;return infos.set(null,baseInfo),affectedLayers.forEach((layer=>{let info={...baseInfo};layer===pickedLayer&&(info.color=pickedColor,info.index=pickedObjectIndex,info.picked=!0),info=getLayerPickingInfo({layer:layer,info:info,mode:mode});const rootLayer=info.layer;layer===pickedLayer&&"hover"===mode&&(lastPickedInfo.info=info),infos.set(rootLayer.id,info),"hover"===mode&&rootLayer.updateAutoHighlight(info)})),infos}function getLayerPickingInfo({layer:layer,info:info,mode:mode}){for(;layer&&info;){const sourceLayer=info.layer||null;info.sourceLayer=sourceLayer,info.layer=layer,info=layer.getPickingInfo({info:info,mode:mode,sourceLayer:sourceLayer}),layer=layer.parent}return info}class DeckPicker{constructor(gl){(0,defineProperty.Z)(this,"gl",void 0),(0,defineProperty.Z)(this,"pickingFBO",void 0),(0,defineProperty.Z)(this,"depthFBO",void 0),(0,defineProperty.Z)(this,"pickLayersPass",void 0),(0,defineProperty.Z)(this,"layerFilter",void 0),(0,defineProperty.Z)(this,"lastPickedInfo",void 0),(0,defineProperty.Z)(this,"_pickable",!0),this.gl=gl,this.pickLayersPass=new pick_layers_pass.Z(gl),this.lastPickedInfo={index:-1,layerId:null,info:null}}setProps(props){"layerFilter"in props&&(this.layerFilter=props.layerFilter),"_pickable"in props&&(this._pickable=props._pickable)}finalize(){this.pickingFBO&&this.pickingFBO.delete(),this.depthFBO&&(this.depthFBO.color.delete(),this.depthFBO.delete())}pickObject(opts){return this._pickClosestObject(opts)}pickObjects(opts){return this._pickVisibleObjects(opts)}getLastPickedObject({x:x,y:y,layers:layers,viewports:viewports},lastPickedInfo=this.lastPickedInfo.info){const lastPickedLayerId=lastPickedInfo&&lastPickedInfo.layer&&lastPickedInfo.layer.id,lastPickedViewportId=lastPickedInfo&&lastPickedInfo.viewport&&lastPickedInfo.viewport.id,layer=lastPickedLayerId?layers.find((l=>l.id===lastPickedLayerId)):null,viewport=lastPickedViewportId&&viewports.find((v=>v.id===lastPickedViewportId))||viewports[0],coordinate=viewport&&viewport.unproject([x-viewport.x,y-viewport.y]),info={x:x,y:y,viewport:viewport,coordinate:coordinate,layer:layer};return{...lastPickedInfo,...info}}_resizeBuffer(){var _this$pickingFBO,_this$depthFBO;const{gl:gl}=this;if(!this.pickingFBO&&(this.pickingFBO=new framebuffer.Z(gl),framebuffer.Z.isSupported(gl,{colorBufferFloat:!0}))){const depthFBO=new framebuffer.Z(gl);depthFBO.attach({36064:new texture_2d.Z(gl,{format:(0,esm.D0)(gl)?34836:6408,type:5126})}),this.depthFBO=depthFBO}null===(_this$pickingFBO=this.pickingFBO)||void 0===_this$pickingFBO||_this$pickingFBO.resize({width:gl.canvas.width,height:gl.canvas.height}),null===(_this$depthFBO=this.depthFBO)||void 0===_this$depthFBO||_this$depthFBO.resize({width:gl.canvas.width,height:gl.canvas.height})}_getPickable(layers){if(!1===this._pickable)return null;const pickableLayers=layers.filter((layer=>this.pickLayersPass.shouldDrawLayer(layer)&&!layer.isComposite));return pickableLayers.length?pickableLayers:null}_pickClosestObject({layers:layers,views:views,viewports:viewports,x:x,y:y,radius:radius=0,depth:depth=1,mode:mode="query",unproject3D:unproject3D,onViewportActive:onViewportActive,effects:effects}){const pickableLayers=this._getPickable(layers),pixelRatio=(0,esm.w)(this.gl);if(!pickableLayers)return{result:[],emptyInfo:getEmptyPickingInfo({viewports:viewports,x:x,y:y,pixelRatio:pixelRatio})};this._resizeBuffer();const devicePixelRange=(0,esm.JY)(this.gl,[x,y],!0),devicePixel=[devicePixelRange.x+Math.floor(devicePixelRange.width/2),devicePixelRange.y+Math.floor(devicePixelRange.height/2)],deviceRadius=Math.round(radius*pixelRatio),{width:width,height:height}=this.pickingFBO,deviceRect=this._getPickingRect({deviceX:devicePixel[0],deviceY:devicePixel[1],deviceRadius:deviceRadius,deviceWidth:width,deviceHeight:height}),cullRect={x:x-radius,y:y-radius,width:2*radius+1,height:2*radius+1};let infos;const result=[],affectedLayers=new Set;for(let i=0;i=0){const pickedColor=pickedColors.slice(i,i+4),colorKey=pickedColor.join(",");if(!uniqueColors.has(colorKey)){const pickedObject=decodePickingColor(pickedColor);pickedObject?uniqueColors.set(colorKey,{...pickedObject,color:pickedColor}):log.Z.error("Picked non-existent layer. Is picking buffer corrupt?")()}}return Array.from(uniqueColors.values())}(this._drawAndSample({layers:pickableLayers,views:views,viewports:viewports,onViewportActive:onViewportActive,deviceRect:deviceRect,cullRect:{x:x,y:y,width:width,height:height},effects:effects,pass:"picking:".concat(mode)})),uniqueInfos=new Map,isMaxObjects=Number.isFinite(maxObjects);for(let i=0;i=maxObjects)break;const pickInfo=pickInfos[i];let info={color:pickInfo.pickedColor,layer:null,index:pickInfo.pickedObjectIndex,picked:!0,x:x,y:y,pixelRatio:pixelRatio};info=getLayerPickingInfo({layer:pickInfo.pickedLayer,info:info,mode:mode});const pickedObjectKey=null!==(_info$object=info.object)&&void 0!==_info$object?_info$object:"".concat(info.layer.id,"[").concat(info.index,"]");uniqueInfos.has(pickedObjectKey)||uniqueInfos.set(pickedObjectKey,info)}return Array.from(uniqueInfos.values())}_drawAndSample({layers:layers,views:views,viewports:viewports,onViewportActive:onViewportActive,deviceRect:deviceRect,cullRect:cullRect,effects:effects,pass:pass},pickZ=!1){const pickingFBO=pickZ?this.depthFBO:this.pickingFBO,opts={layers:layers,layerFilter:this.layerFilter,views:views,viewports:viewports,onViewportActive:onViewportActive,pickingFBO:pickingFBO,deviceRect:deviceRect,cullRect:cullRect,effects:effects,pass:pass,pickZ:pickZ,preRenderStats:{}};for(const effect of effects)effect.useInPicking&&(opts.preRenderStats[effect.id]=effect.preRender(this.gl,opts));const{decodePickingColor:decodePickingColor}=this.pickLayersPass.render(opts),{x:x,y:y,width:width,height:height}=deviceRect,pickedColors=new(pickZ?Float32Array:Uint8Array)(width*height*4);return(0,copy_and_blit.z6)(pickingFBO,{sourceX:x,sourceY:y,sourceWidth:width,sourceHeight:height,target:pickedColors}),{pickedColors:pickedColors,decodePickingColor:decodePickingColor}}_getPickingRect({deviceX:deviceX,deviceY:deviceY,deviceRadius:deviceRadius,deviceWidth:deviceWidth,deviceHeight:deviceHeight}){const x=Math.max(0,deviceX-deviceRadius),y=Math.max(0,deviceY-deviceRadius),width=Math.min(deviceWidth,deviceX+deviceRadius+1)-x,height=Math.min(deviceHeight,deviceY+deviceRadius+1)-y;return width<=0||height<=0?null:{x:x,y:y,width:width,height:height}}}const defaultStyle={zIndex:"1",position:"absolute",pointerEvents:"none",color:"#a0a7b4",backgroundColor:"#29323c",padding:"10px",top:"0",left:"0",display:"none"};class Tooltip{constructor(canvas){(0,defineProperty.Z)(this,"el",null),(0,defineProperty.Z)(this,"isVisible",!1);const canvasParent=canvas.parentElement;canvasParent&&(this.el=document.createElement("div"),this.el.className="deck-tooltip",Object.assign(this.el.style,defaultStyle),canvasParent.appendChild(this.el))}setTooltip(displayInfo,x,y){const el=this.el;if(el){if("string"==typeof displayInfo)el.innerText=displayInfo;else{if(!displayInfo)return this.isVisible=!1,void(el.style.display="none");displayInfo.text&&(el.innerText=displayInfo.text),displayInfo.html&&(el.innerHTML=displayInfo.html),displayInfo.className&&(el.className=displayInfo.className)}this.isVisible=!0,el.style.display="block",el.style.transform="translate(".concat(x,"px, ").concat(y,"px)"),displayInfo&&"object"==typeof displayInfo&&"style"in displayInfo&&Object.assign(el.style,displayInfo.style)}}remove(){this.el&&(this.el.remove(),this.el=null)}}var typed_array_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/typed-array-manager.js"),init=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/init.js"),get_browser=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/get-browser.js"),animation_loop=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/animation-loop.js"),animation_timeline=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/animation/timeline.js"),esm_init=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/init.js"),dist_esm=__webpack_require__("./node_modules/@probe.gl/stats/dist/esm/index.js"),hammer=__webpack_require__("./node_modules/hammerjs/hammer.js");const MOUSE_INPUT_MAP={mousedown:1,mousemove:2,mouseup:4};!function enhancePointerEventInput(PointerEventInput){const oldHandler=PointerEventInput.prototype.handler;PointerEventInput.prototype.handler=function handler(ev){const store=this.store;ev.button>0&&"pointerdown"===ev.type&&(function some(array,predict){for(let i=0;ie.pointerId===ev.pointerId))||store.push(ev)),oldHandler.call(this,ev)}}(hammer.PointerEventInput),function enhanceMouseInput(MouseInput){MouseInput.prototype.handler=function handler(ev){let eventType=MOUSE_INPUT_MAP[ev.type];1&eventType&&ev.button>=0&&(this.pressed=!0),2&eventType&&0===ev.buttons&&(eventType=4),this.pressed&&(4&eventType&&(this.pressed=!1),this.callback(this.manager,eventType,{pointers:[ev],changedPointers:[ev],pointerType:"mouse",srcEvent:ev}))}}(hammer.MouseInput);const Manager=hammer.Manager;var hammer_browser=hammer;class Input{constructor(element,callback,options){this.element=element,this.callback=callback,this.options={enable:!0,...options}}}const RECOGNIZERS=hammer_browser?[[hammer_browser.Pan,{event:"tripan",pointers:3,threshold:0,enable:!1}],[hammer_browser.Rotate,{enable:!1}],[hammer_browser.Pinch,{enable:!1}],[hammer_browser.Swipe,{enable:!1}],[hammer_browser.Pan,{threshold:0,enable:!1}],[hammer_browser.Press,{enable:!1}],[hammer_browser.Tap,{event:"doubletap",taps:2,enable:!1}],[hammer_browser.Tap,{event:"anytap",enable:!1}],[hammer_browser.Tap,{enable:!1}]]:null,RECOGNIZER_COMPATIBLE_MAP={tripan:["rotate","pinch","pan"],rotate:["pinch"],pinch:["pan"],pan:["press","doubletap","anytap","tap"],doubletap:["anytap"],anytap:["tap"]},RECOGNIZER_FALLBACK_MAP={doubletap:["tap"]},BASIC_EVENT_ALIASES={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},INPUT_EVENT_TYPES={KEY_EVENTS:["keydown","keyup"],MOUSE_EVENTS:["mousedown","mousemove","mouseup","mouseover","mouseout","mouseleave"],WHEEL_EVENTS:["wheel","mousewheel"]},EVENT_RECOGNIZER_MAP={tap:"tap",anytap:"anytap",doubletap:"doubletap",press:"press",pinch:"pinch",pinchin:"pinch",pinchout:"pinch",pinchstart:"pinch",pinchmove:"pinch",pinchend:"pinch",pinchcancel:"pinch",rotate:"rotate",rotatestart:"rotate",rotatemove:"rotate",rotateend:"rotate",rotatecancel:"rotate",tripan:"tripan",tripanstart:"tripan",tripanmove:"tripan",tripanup:"tripan",tripandown:"tripan",tripanleft:"tripan",tripanright:"tripan",tripanend:"tripan",tripancancel:"tripan",pan:"pan",panstart:"pan",panmove:"pan",panup:"pan",pandown:"pan",panleft:"pan",panright:"pan",panend:"pan",pancancel:"pan",swipe:"swipe",swipeleft:"swipe",swiperight:"swipe",swipeup:"swipe",swipedown:"swipe"},GESTURE_EVENT_ALIASES={click:"tap",anyclick:"anytap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseover:"pointerover",mouseout:"pointerout",mouseleave:"pointerleave"},userAgent="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",window_="undefined"!=typeof window?window:__webpack_require__.g;void 0!==__webpack_require__.g?__webpack_require__.g:window,"undefined"!=typeof document&&document;let passiveSupported=!1;try{const options={get passive(){return passiveSupported=!0,!0}};window_.addEventListener("test",null,options),window_.removeEventListener("test",null)}catch(err){passiveSupported=!1}const firefox=-1!==userAgent.indexOf("firefox"),{WHEEL_EVENTS:WHEEL_EVENTS}=INPUT_EVENT_TYPES;class WheelInput extends Input{constructor(element,callback,options){super(element,callback,options),this.handleEvent=event=>{if(!this.options.enable)return;let value=event.deltaY;window_.WheelEvent&&(firefox&&event.deltaMode===window_.WheelEvent.DOM_DELTA_PIXEL&&(value/=window_.devicePixelRatio),event.deltaMode===window_.WheelEvent.DOM_DELTA_LINE&&(value*=40)),0!==value&&value%4.000244140625==0&&(value=Math.floor(value/4.000244140625)),event.shiftKey&&value&&(value*=.25),this.callback({type:"wheel",center:{x:event.clientX,y:event.clientY},delta:-value,srcEvent:event,pointerType:"mouse",target:event.target})},this.events=(this.options.events||[]).concat(WHEEL_EVENTS),this.events.forEach((event=>element.addEventListener(event,this.handleEvent,!!passiveSupported&&{passive:!1})))}destroy(){this.events.forEach((event=>this.element.removeEventListener(event,this.handleEvent)))}enableEventType(eventType,enabled){"wheel"===eventType&&(this.options.enable=enabled)}}const{MOUSE_EVENTS:MOUSE_EVENTS}=INPUT_EVENT_TYPES;class MoveInput extends Input{constructor(element,callback,options){super(element,callback,options),this.handleEvent=event=>{this.handleOverEvent(event),this.handleOutEvent(event),this.handleEnterEvent(event),this.handleLeaveEvent(event),this.handleMoveEvent(event)},this.pressed=!1;const{enable:enable}=this.options;this.enableMoveEvent=enable,this.enableLeaveEvent=enable,this.enableEnterEvent=enable,this.enableOutEvent=enable,this.enableOverEvent=enable,this.events=(this.options.events||[]).concat(MOUSE_EVENTS),this.events.forEach((event=>element.addEventListener(event,this.handleEvent)))}destroy(){this.events.forEach((event=>this.element.removeEventListener(event,this.handleEvent)))}enableEventType(eventType,enabled){"pointermove"===eventType&&(this.enableMoveEvent=enabled),"pointerover"===eventType&&(this.enableOverEvent=enabled),"pointerout"===eventType&&(this.enableOutEvent=enabled),"pointerenter"===eventType&&(this.enableEnterEvent=enabled),"pointerleave"===eventType&&(this.enableLeaveEvent=enabled)}handleOverEvent(event){this.enableOverEvent&&"mouseover"===event.type&&this._emit("pointerover",event)}handleOutEvent(event){this.enableOutEvent&&"mouseout"===event.type&&this._emit("pointerout",event)}handleEnterEvent(event){this.enableEnterEvent&&"mouseenter"===event.type&&this._emit("pointerenter",event)}handleLeaveEvent(event){this.enableLeaveEvent&&"mouseleave"===event.type&&this._emit("pointerleave",event)}handleMoveEvent(event){if(this.enableMoveEvent)switch(event.type){case"mousedown":event.button>=0&&(this.pressed=!0);break;case"mousemove":0===event.buttons&&(this.pressed=!1),this.pressed||this._emit("pointermove",event);break;case"mouseup":this.pressed=!1}}_emit(type,event){this.callback({type:type,center:{x:event.clientX,y:event.clientY},srcEvent:event,pointerType:"mouse",target:event.target})}}const{KEY_EVENTS:KEY_EVENTS}=INPUT_EVENT_TYPES;class KeyInput extends Input{constructor(element,callback,options){super(element,callback,options),this.handleEvent=event=>{const targetElement=event.target||event.srcElement;"INPUT"===targetElement.tagName&&"text"===targetElement.type||"TEXTAREA"===targetElement.tagName||(this.enableDownEvent&&"keydown"===event.type&&this.callback({type:"keydown",srcEvent:event,key:event.key,target:event.target}),this.enableUpEvent&&"keyup"===event.type&&this.callback({type:"keyup",srcEvent:event,key:event.key,target:event.target}))},this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=(this.options.events||[]).concat(KEY_EVENTS),element.tabIndex=this.options.tabIndex||0,element.style.outline="none",this.events.forEach((event=>element.addEventListener(event,this.handleEvent)))}destroy(){this.events.forEach((event=>this.element.removeEventListener(event,this.handleEvent)))}enableEventType(eventType,enabled){"keydown"===eventType&&(this.enableDownEvent=enabled),"keyup"===eventType&&(this.enableUpEvent=enabled)}}class ContextmenuInput extends Input{constructor(element,callback,options){super(element,callback,options),this.handleEvent=event=>{this.options.enable&&this.callback({type:"contextmenu",center:{x:event.clientX,y:event.clientY},srcEvent:event,pointerType:"mouse",target:event.target})},element.addEventListener("contextmenu",this.handleEvent)}destroy(){this.element.removeEventListener("contextmenu",this.handleEvent)}enableEventType(eventType,enabled){"contextmenu"===eventType&&(this.options.enable=enabled)}}const event_utils_MOUSE_EVENTS={pointerdown:1,pointermove:2,pointerup:4,mousedown:1,mousemove:2,mouseup:4};function whichButtons(event){const eventType=event_utils_MOUSE_EVENTS[event.srcEvent.type];if(!eventType)return null;const{buttons:buttons,button:button}=event.srcEvent;let leftButton=!1,middleButton=!1,rightButton=!1;return 2===eventType?(leftButton=Boolean(1&buttons),middleButton=Boolean(4&buttons),rightButton=Boolean(2&buttons)):(leftButton=0===button,middleButton=1===button,rightButton=2===button),{leftButton:leftButton,middleButton:middleButton,rightButton:rightButton}}function getOffsetPosition(event,rootElement){const center=event.center;if(!center)return null;const rect=rootElement.getBoundingClientRect(),scaleX=rect.width/rootElement.offsetWidth||1,scaleY=rect.height/rootElement.offsetHeight||1;return{center:center,offsetCenter:{x:(center.x-rect.left-rootElement.clientLeft)/scaleX,y:(center.y-rect.top-rootElement.clientTop)/scaleY}}}const DEFAULT_OPTIONS={srcElement:"root",priority:0};class EventRegistrar{constructor(eventManager){this.handleEvent=event=>{if(this.isEmpty())return;const mjolnirEvent=this._normalizeEvent(event);let target=event.srcEvent.target;for(;target&&target!==mjolnirEvent.rootElement;){if(this._emit(mjolnirEvent,target),mjolnirEvent.handled)return;target=target.parentNode}this._emit(mjolnirEvent,"root")},this.eventManager=eventManager,this.handlers=[],this.handlersByElement=new Map,this._active=!1}isEmpty(){return!this._active}add(type,handler,options,once=!1,passive=!1){const{handlers:handlers,handlersByElement:handlersByElement}=this;let opts=DEFAULT_OPTIONS;"string"==typeof options||options&&options.addEventListener?opts={...DEFAULT_OPTIONS,srcElement:options}:options&&(opts={...DEFAULT_OPTIONS,...options});let entries=handlersByElement.get(opts.srcElement);entries||(entries=[],handlersByElement.set(opts.srcElement,entries));const entry={type:type,handler:handler,srcElement:opts.srcElement,priority:opts.priority};once&&(entry.once=!0),passive&&(entry.passive=!0),handlers.push(entry),this._active=this._active||!entry.passive;let insertPosition=entries.length-1;for(;insertPosition>=0&&!(entries[insertPosition].priority>=entry.priority);)insertPosition--;entries.splice(insertPosition+1,0,entry)}remove(type,handler){const{handlers:handlers,handlersByElement:handlersByElement}=this;for(let i=handlers.length-1;i>=0;i--){const entry=handlers[i];if(entry.type===type&&entry.handler===handler){handlers.splice(i,1);const entries=handlersByElement.get(entry.srcElement);entries.splice(entries.indexOf(entry),1),0===entries.length&&handlersByElement.delete(entry.srcElement)}}this._active=handlers.some((entry=>!entry.passive))}_emit(event,srcElement){const entries=this.handlersByElement.get(srcElement);if(entries){let immediatePropagationStopped=!1;const stopPropagation=()=>{event.handled=!0},stopImmediatePropagation=()=>{event.handled=!0,immediatePropagationStopped=!0},entriesToRemove=[];for(let i=0;i{event.srcEvent.preventDefault()},stopImmediatePropagation:null,stopPropagation:null,handled:!1,rootElement:rootElement}}}const event_manager_DEFAULT_OPTIONS={events:null,recognizers:null,recognizerOptions:{},Manager:Manager,touchAction:"none",tabIndex:0};class EventManager{constructor(element=null,options){this._onBasicInput=event=>{const{srcEvent:srcEvent}=event,alias=BASIC_EVENT_ALIASES[srcEvent.type];alias&&this.manager.emit(alias,event)},this._onOtherEvent=event=>{this.manager.emit(event.type,event)},this.options={...event_manager_DEFAULT_OPTIONS,...options},this.events=new Map,this.setElement(element);const{events:events}=this.options;events&&this.on(events)}getElement(){return this.element}setElement(element){if(this.element&&this.destroy(),this.element=element,!element)return;const{options:options}=this,ManagerClass=options.Manager;this.manager=new ManagerClass(element,{touchAction:options.touchAction,recognizers:options.recognizers||RECOGNIZERS}).on("hammer.input",this._onBasicInput),options.recognizers||Object.keys(RECOGNIZER_COMPATIBLE_MAP).forEach((name=>{const recognizer=this.manager.get(name);recognizer&&RECOGNIZER_COMPATIBLE_MAP[name].forEach((otherName=>{recognizer.recognizeWith(otherName)}))}));for(const recognizerName in options.recognizerOptions){const recognizer=this.manager.get(recognizerName);if(recognizer){const recognizerOption=options.recognizerOptions[recognizerName];delete recognizerOption.enable,recognizer.set(recognizerOption)}}this.wheelInput=new WheelInput(element,this._onOtherEvent,{enable:!1}),this.moveInput=new MoveInput(element,this._onOtherEvent,{enable:!1}),this.keyInput=new KeyInput(element,this._onOtherEvent,{enable:!1,tabIndex:options.tabIndex}),this.contextmenuInput=new ContextmenuInput(element,this._onOtherEvent,{enable:!1});for(const[eventAlias,eventRegistrar]of this.events)eventRegistrar.isEmpty()||(this._toggleRecognizer(eventRegistrar.recognizerName,!0),this.manager.on(eventAlias,eventRegistrar.handleEvent))}destroy(){this.element&&(this.wheelInput.destroy(),this.moveInput.destroy(),this.keyInput.destroy(),this.contextmenuInput.destroy(),this.manager.destroy(),this.wheelInput=null,this.moveInput=null,this.keyInput=null,this.contextmenuInput=null,this.manager=null,this.element=null)}on(event,handler,opts){this._addEventHandler(event,handler,opts,!1)}once(event,handler,opts){this._addEventHandler(event,handler,opts,!0)}watch(event,handler,opts){this._addEventHandler(event,handler,opts,!1,!0)}off(event,handler){this._removeEventHandler(event,handler)}_toggleRecognizer(name,enabled){const{manager:manager}=this;if(!manager)return;const recognizer=manager.get(name);if(recognizer&&recognizer.options.enable!==enabled){recognizer.set({enable:enabled});const fallbackRecognizers=RECOGNIZER_FALLBACK_MAP[name];fallbackRecognizers&&!this.options.recognizers&&fallbackRecognizers.forEach((otherName=>{const otherRecognizer=manager.get(otherName);enabled?(otherRecognizer.requireFailure(name),recognizer.dropRequireFailure(otherName)):otherRecognizer.dropRequireFailure(name)}))}this.wheelInput.enableEventType(name,enabled),this.moveInput.enableEventType(name,enabled),this.keyInput.enableEventType(name,enabled),this.contextmenuInput.enableEventType(name,enabled)}_addEventHandler(event,handler,opts,once,passive){if("string"!=typeof event){opts=handler;for(const eventName in event)this._addEventHandler(eventName,event[eventName],opts,once,passive);return}const{manager:manager,events:events}=this,eventAlias=GESTURE_EVENT_ALIASES[event]||event;let eventRegistrar=events.get(eventAlias);eventRegistrar||(eventRegistrar=new EventRegistrar(this),events.set(eventAlias,eventRegistrar),eventRegistrar.recognizerName=EVENT_RECOGNIZER_MAP[eventAlias]||eventAlias,manager&&manager.on(eventAlias,eventRegistrar.handleEvent)),eventRegistrar.add(event,handler,opts,once,passive),eventRegistrar.isEmpty()||this._toggleRecognizer(eventRegistrar.recognizerName,!0)}_removeEventHandler(event,handler){if("string"!=typeof event){for(const eventName in event)this._removeEventHandler(eventName,event[eventName]);return}const{events:events}=this,eventAlias=GESTURE_EVENT_ALIASES[event]||event,eventRegistrar=events.get(eventAlias);if(eventRegistrar&&(eventRegistrar.remove(event,handler),eventRegistrar.isEmpty())){const{recognizerName:recognizerName}=eventRegistrar;let isRecognizerUsed=!1;for(const eh of events.values())if(eh.recognizerName===recognizerName&&!eh.isEmpty()){isRecognizerUsed=!0;break}isRecognizerUsed||this._toggleRecognizer(recognizerName,!1)}}}var assert=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");function noop(){}const defaultProps={id:"",width:"100%",height:"100%",style:null,viewState:null,initialViewState:null,pickingRadius:0,layerFilter:null,glOptions:{},parameters:{},parent:null,gl:null,canvas:null,layers:[],effects:[],views:null,controller:null,useDevicePixels:!0,touchAction:"none",eventRecognizerOptions:{},_framebuffer:null,_animate:!1,_pickable:!0,_typedArrayManagerProps:{},_customRender:null,onWebGLInitialized:noop,onResize:noop,onViewStateChange:noop,onInteractionStateChange:noop,onBeforeRender:noop,onAfterRender:noop,onLoad:noop,onError:error=>log.Z.error(error.message,error.cause)(),onHover:null,onClick:null,onDragStart:null,onDrag:null,onDragEnd:null,_onMetrics:null,getCursor:({isDragging:isDragging})=>isDragging?"grabbing":"grab",getTooltip:null,debug:!1,drawPickingColors:!1};class Deck{constructor(props){(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"width",0),(0,defineProperty.Z)(this,"height",0),(0,defineProperty.Z)(this,"userData",{}),(0,defineProperty.Z)(this,"canvas",null),(0,defineProperty.Z)(this,"viewManager",null),(0,defineProperty.Z)(this,"layerManager",null),(0,defineProperty.Z)(this,"effectManager",null),(0,defineProperty.Z)(this,"deckRenderer",null),(0,defineProperty.Z)(this,"deckPicker",null),(0,defineProperty.Z)(this,"eventManager",null),(0,defineProperty.Z)(this,"tooltip",null),(0,defineProperty.Z)(this,"metrics",void 0),(0,defineProperty.Z)(this,"animationLoop",void 0),(0,defineProperty.Z)(this,"stats",void 0),(0,defineProperty.Z)(this,"viewState",void 0),(0,defineProperty.Z)(this,"cursorState",void 0),(0,defineProperty.Z)(this,"_needsRedraw",void 0),(0,defineProperty.Z)(this,"_pickRequest",void 0),(0,defineProperty.Z)(this,"_lastPointerDownInfo",null),(0,defineProperty.Z)(this,"_metricsCounter",void 0),(0,defineProperty.Z)(this,"_onPointerMove",(event=>{const{_pickRequest:_pickRequest}=this;if("pointerleave"===event.type)_pickRequest.x=-1,_pickRequest.y=-1,_pickRequest.radius=0;else{if(event.leftButton||event.rightButton)return;{const pos=event.offsetCenter;if(!pos)return;_pickRequest.x=pos.x,_pickRequest.y=pos.y,_pickRequest.radius=this.props.pickingRadius}}this.layerManager&&(this.layerManager.context.mousePosition={x:_pickRequest.x,y:_pickRequest.y}),_pickRequest.event=event})),(0,defineProperty.Z)(this,"_onEvent",(event=>{const eventOptions=constants.FP[event.type],pos=event.offsetCenter;if(!eventOptions||!pos||!this.layerManager)return;const layers=this.layerManager.getLayers(),info=this.deckPicker.getLastPickedObject({x:pos.x,y:pos.y,layers:layers,viewports:this.getViewports(pos)},this._lastPointerDownInfo),{layer:layer}=info,layerHandler=layer&&(layer[eventOptions.handler]||layer.props[eventOptions.handler]),rootHandler=this.props[eventOptions.handler];let handled=!1;layerHandler&&(handled=layerHandler.call(layer,info,event)),!handled&&rootHandler&&rootHandler(info,event)})),(0,defineProperty.Z)(this,"_onPointerDown",(event=>{const pos=event.offsetCenter,pickedInfo=this._pick("pickObject","pickObject Time",{x:pos.x,y:pos.y,radius:this.props.pickingRadius});this._lastPointerDownInfo=pickedInfo.result[0]||pickedInfo.emptyInfo})),this.props={...defaultProps,...props},props=this.props,this._needsRedraw="Initial render",this._pickRequest={mode:"hover",x:-1,y:-1,radius:0,event:null},this.cursorState={isHovering:!1,isDragging:!1},props.viewState&&props.initialViewState&&log.Z.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")(),"IE"===(0,get_browser.Z)()&&log.Z.warn("IE 11 is not supported")(),this.viewState=props.initialViewState,props.gl||"undefined"!=typeof document&&(this.canvas=this._createCanvas(props)),this.animationLoop=this._createAnimationLoop(props),this.stats=new dist_esm.jk({id:"deck.gl"}),this.metrics={fps:0,setPropsTime:0,updateAttributesTime:0,framesRedrawn:0,pickTime:0,pickCount:0,gpuTime:0,gpuTimePerFrame:0,cpuTime:0,cpuTimePerFrame:0,bufferMemory:0,textureMemory:0,renderbufferMemory:0,gpuMemory:0},this._metricsCounter=0,this.setProps(props),props._typedArrayManagerProps&&typed_array_manager.Z.setOptions(props._typedArrayManagerProps),this.animationLoop.start()}finalize(){var _this$animationLoop,_this$layerManager,_this$viewManager,_this$effectManager,_this$deckRenderer,_this$deckPicker,_this$eventManager,_this$tooltip,_this$canvas$parentEl;(null===(_this$animationLoop=this.animationLoop)||void 0===_this$animationLoop||_this$animationLoop.stop(),this.animationLoop=null,this._lastPointerDownInfo=null,null===(_this$layerManager=this.layerManager)||void 0===_this$layerManager||_this$layerManager.finalize(),this.layerManager=null,null===(_this$viewManager=this.viewManager)||void 0===_this$viewManager||_this$viewManager.finalize(),this.viewManager=null,null===(_this$effectManager=this.effectManager)||void 0===_this$effectManager||_this$effectManager.finalize(),this.effectManager=null,null===(_this$deckRenderer=this.deckRenderer)||void 0===_this$deckRenderer||_this$deckRenderer.finalize(),this.deckRenderer=null,null===(_this$deckPicker=this.deckPicker)||void 0===_this$deckPicker||_this$deckPicker.finalize(),this.deckPicker=null,null===(_this$eventManager=this.eventManager)||void 0===_this$eventManager||_this$eventManager.destroy(),this.eventManager=null,null===(_this$tooltip=this.tooltip)||void 0===_this$tooltip||_this$tooltip.remove(),this.tooltip=null,this.props.canvas||this.props.gl||!this.canvas)||(null===(_this$canvas$parentEl=this.canvas.parentElement)||void 0===_this$canvas$parentEl||_this$canvas$parentEl.removeChild(this.canvas),this.canvas=null)}setProps(props){this.stats.get("setProps Time").timeStart(),"onLayerHover"in props&&log.Z.removed("onLayerHover","onHover")(),"onLayerClick"in props&&log.Z.removed("onLayerClick","onClick")(),props.initialViewState&&!(0,deep_equal.v)(this.props.initialViewState,props.initialViewState,3)&&(this.viewState=props.initialViewState),Object.assign(this.props,props),this._setCanvasSize(this.props);const resolvedProps=Object.create(this.props);Object.assign(resolvedProps,{views:this._getViews(),width:this.width,height:this.height,viewState:this._getViewState()}),this.animationLoop.setProps(resolvedProps),this.layerManager&&(this.viewManager.setProps(resolvedProps),this.layerManager.activateViewport(this.getViewports()[0]),this.layerManager.setProps(resolvedProps),this.effectManager.setProps(resolvedProps),this.deckRenderer.setProps(resolvedProps),this.deckPicker.setProps(resolvedProps)),this.stats.get("setProps Time").timeEnd()}needsRedraw(opts={clearRedrawFlags:!1}){if(!this.layerManager)return!1;if(this.props._animate)return"Deck._animate";let redraw=this._needsRedraw;opts.clearRedrawFlags&&(this._needsRedraw=!1);const viewManagerNeedsRedraw=this.viewManager.needsRedraw(opts),layerManagerNeedsRedraw=this.layerManager.needsRedraw(opts),effectManagerNeedsRedraw=this.effectManager.needsRedraw(opts),deckRendererNeedsRedraw=this.deckRenderer.needsRedraw(opts);return redraw=redraw||viewManagerNeedsRedraw||layerManagerNeedsRedraw||effectManagerNeedsRedraw||deckRendererNeedsRedraw,redraw}redraw(reason){if(!this.layerManager)return;let redrawReason=this.needsRedraw({clearRedrawFlags:!0});redrawReason=reason||redrawReason,redrawReason&&(this.stats.get("Redraw Count").incrementCount(),this.props._customRender?this.props._customRender(redrawReason):this._drawLayers(redrawReason))}get isInitialized(){return null!==this.viewManager}getViews(){return(0,assert.Z)(this.viewManager),this.viewManager.views}getViewports(rect){return(0,assert.Z)(this.viewManager),this.viewManager.getViewports(rect)}getCanvas(){return this.canvas}pickObject(opts){const infos=this._pick("pickObject","pickObject Time",opts).result;return infos.length?infos[0]:null}pickMultipleObjects(opts){return opts.depth=opts.depth||10,this._pick("pickObject","pickMultipleObjects Time",opts).result}pickObjects(opts){return this._pick("pickObjects","pickObjects Time",opts)}_addResources(resources,forceUpdate=!1){for(const id in resources)this.layerManager.resourceManager.add({resourceId:id,data:resources[id],forceUpdate:forceUpdate})}_removeResources(resourceIds){for(const id of resourceIds)this.layerManager.resourceManager.remove(id)}_addDefaultEffect(effect){this.effectManager.addDefaultEffect(effect)}_pick(method,statKey,opts){(0,assert.Z)(this.deckPicker);const{stats:stats}=this;stats.get("Pick Count").incrementCount(),stats.get(statKey).timeStart();const infos=this.deckPicker[method]({layers:this.layerManager.getLayers(opts),views:this.viewManager.getViews(),viewports:this.getViewports(opts),onViewportActive:this.layerManager.activateViewport,effects:this.effectManager.getEffects(),...opts});return stats.get(statKey).timeEnd(),infos}_createCanvas(props){let canvas=props.canvas;if("string"==typeof canvas&&(canvas=document.getElementById(canvas),(0,assert.Z)(canvas)),!canvas){canvas=document.createElement("canvas"),canvas.id=props.id||"deckgl-overlay";(props.parent||document.body).appendChild(canvas)}return Object.assign(canvas.style,props.style),canvas}_setCanvasSize(props){if(!this.canvas)return;const{width:width,height:height}=props;if(width||0===width){const cssWidth=Number.isFinite(width)?"".concat(width,"px"):width;this.canvas.style.width=cssWidth}if(height||0===height){var _props$style;const cssHeight=Number.isFinite(height)?"".concat(height,"px"):height;this.canvas.style.position=(null===(_props$style=props.style)||void 0===_props$style?void 0:_props$style.position)||"absolute",this.canvas.style.height=cssHeight}}_updateCanvasSize(){var _canvas$clientWidth,_canvas$clientHeight;const{canvas:canvas}=this;if(!canvas)return;const newWidth=null!==(_canvas$clientWidth=canvas.clientWidth)&&void 0!==_canvas$clientWidth?_canvas$clientWidth:canvas.width,newHeight=null!==(_canvas$clientHeight=canvas.clientHeight)&&void 0!==_canvas$clientHeight?_canvas$clientHeight:canvas.height;var _this$viewManager2,_this$layerManager2;newWidth===this.width&&newHeight===this.height||(this.width=newWidth,this.height=newHeight,null===(_this$viewManager2=this.viewManager)||void 0===_this$viewManager2||_this$viewManager2.setProps({width:newWidth,height:newHeight}),null===(_this$layerManager2=this.layerManager)||void 0===_this$layerManager2||_this$layerManager2.activateViewport(this.getViewports()[0]),this.props.onResize({width:newWidth,height:newHeight}))}_createAnimationLoop(props){const{width:width,height:height,gl:gl,glOptions:glOptions,debug:debug,onError:onError,onBeforeRender:onBeforeRender,onAfterRender:onAfterRender,useDevicePixels:useDevicePixels}=props;return new animation_loop.Z({width:width,height:height,useDevicePixels:useDevicePixels,autoResizeDrawingBuffer:!gl,autoResizeViewport:!1,gl:gl,onCreateContext:opts=>(0,esm.s9)({...glOptions,...opts,canvas:this.canvas,debug:debug,onContextLost:()=>this._onContextLost()}),onInitialize:context=>this._setGLContext(context.gl),onRender:this._onRenderFrame.bind(this),onBeforeRender:onBeforeRender,onAfterRender:onAfterRender,onError:onError})}_getViewState(){return this.props.viewState||this.viewState}_getViews(){let views=this.props.views||[new map_view.Z({id:"default-view"})];return views=Array.isArray(views)?views:[views],views.length&&this.props.controller&&(views[0].props.controller=this.props.controller),views}_onContextLost(){const{onError:onError}=this.props;this.animationLoop&&onError&&onError(new Error("WebGL context is lost"))}_pickAndCallback(){const{_pickRequest:_pickRequest}=this;if(_pickRequest.event){const{result:result,emptyInfo:emptyInfo}=this._pick("pickObject","pickObject Time",_pickRequest);this.cursorState.isHovering=result.length>0;let pickedInfo=emptyInfo,handled=!1;for(const info of result){var _info$layer;pickedInfo=info,handled=(null===(_info$layer=info.layer)||void 0===_info$layer?void 0:_info$layer.onHover(info,_pickRequest.event))||handled}if(!handled&&this.props.onHover&&this.props.onHover(pickedInfo,_pickRequest.event),this.props.getTooltip&&this.tooltip){const displayInfo=this.props.getTooltip(pickedInfo);this.tooltip.setTooltip(displayInfo,pickedInfo.x,pickedInfo.y)}_pickRequest.event=null}}_updateCursor(){const container=this.props.parent||this.canvas;container&&(container.style.cursor=this.props.getCursor(this.cursorState))}_setGLContext(gl){if(this.layerManager)return;this.canvas||(this.canvas=gl.canvas,(0,esm.yW)(gl,{enable:!0,copyState:!0})),this.tooltip=new Tooltip(this.canvas),(0,esm.dR)(gl,{blend:!0,blendFunc:[770,771,1,771],polygonOffsetFill:!0,depthTest:!0,depthFunc:515}),this.props.onWebGLInitialized(gl);const timeline=new animation_timeline.T;timeline.play(),this.animationLoop.attachTimeline(timeline),this.eventManager=new EventManager(this.props.parent||gl.canvas,{touchAction:this.props.touchAction,recognizerOptions:this.props.eventRecognizerOptions,events:{pointerdown:this._onPointerDown,pointermove:this._onPointerMove,pointerleave:this._onPointerMove}});for(const eventType in constants.FP)this.eventManager.on(eventType,this._onEvent);this.viewManager=new ViewManager({timeline:timeline,eventManager:this.eventManager,onViewStateChange:this._onViewStateChange.bind(this),onInteractionStateChange:this._onInteractionStateChange.bind(this),views:this._getViews(),viewState:this._getViewState(),width:this.width,height:this.height});const viewport=this.viewManager.getViewports()[0];this.layerManager=new layer_manager.Z(gl,{deck:this,stats:this.stats,viewport:viewport,timeline:timeline}),this.effectManager=new EffectManager,this.deckRenderer=new deck_renderer.Z(gl),this.deckPicker=new DeckPicker(gl),this.setProps(this.props),this._updateCanvasSize(),this.props.onLoad()}_drawLayers(redrawReason,renderOptions){const{gl:gl}=this.layerManager.context;(0,esm.dR)(gl,this.props.parameters),this.props.onBeforeRender({gl:gl}),this.deckRenderer.renderLayers({target:this.props._framebuffer,layers:this.layerManager.getLayers(),viewports:this.viewManager.getViewports(),onViewportActive:this.layerManager.activateViewport,views:this.viewManager.getViews(),pass:"screen",effects:this.effectManager.getEffects(),...renderOptions}),this.props.onAfterRender({gl:gl})}_onRenderFrame(animationProps){this._getFrameStats(),this._metricsCounter++%60==0&&(this._getMetrics(),this.stats.reset(),log.Z.table(4,this.metrics)(),this.props._onMetrics&&this.props._onMetrics(this.metrics)),this._updateCanvasSize(),this._updateCursor(),this.tooltip.isVisible&&this.viewManager.needsRedraw()&&this.tooltip.setTooltip(null),this.layerManager.updateLayers(),this._pickAndCallback(),this.redraw(),this.viewManager&&this.viewManager.updateViewStates()}_onViewStateChange(params){const viewState=this.props.onViewStateChange(params)||params.viewState;this.viewState&&(this.viewState={...this.viewState,[params.viewId]:viewState},this.props.viewState||this.viewManager&&this.viewManager.setProps({viewState:this.viewState}))}_onInteractionStateChange(interactionState){this.cursorState.isDragging=interactionState.isDragging||!1,this.props.onInteractionStateChange(interactionState)}_getFrameStats(){const{stats:stats}=this;stats.get("frameRate").timeEnd(),stats.get("frameRate").timeStart();const animationLoopStats=this.animationLoop.stats;stats.get("GPU Time").addTime(animationLoopStats.get("GPU Time").lastTiming),stats.get("CPU Time").addTime(animationLoopStats.get("CPU Time").lastTiming)}_getMetrics(){const{metrics:metrics,stats:stats}=this;metrics.fps=stats.get("frameRate").getHz(),metrics.setPropsTime=stats.get("setProps Time").time,metrics.updateAttributesTime=stats.get("Update Attributes").time,metrics.framesRedrawn=stats.get("Redraw Count").count,metrics.pickTime=stats.get("pickObject Time").time+stats.get("pickMultipleObjects Time").time+stats.get("pickObjects Time").time,metrics.pickCount=stats.get("Pick Count").count,metrics.gpuTime=stats.get("GPU Time").time,metrics.cpuTime=stats.get("CPU Time").time,metrics.gpuTimePerFrame=stats.get("GPU Time").getAverageTime(),metrics.cpuTimePerFrame=stats.get("CPU Time").getAverageTime();const memoryStats=esm_init.lR.get("Memory Usage");metrics.bufferMemory=memoryStats.get("Buffer Memory").count,metrics.textureMemory=memoryStats.get("Texture Memory").count,metrics.renderbufferMemory=memoryStats.get("Renderbuffer Memory").count,metrics.gpuMemory=memoryStats.get("GPU Memory").count}}(0,defineProperty.Z)(Deck,"defaultProps",defaultProps),(0,defineProperty.Z)(Deck,"VERSION",init.q)},"./node_modules/@deck.gl/core/dist/esm/lib/init.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return VERSION}});var register_loaders=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/register-loaders.js"),image_loader=__webpack_require__("./node_modules/@loaders.gl/images/dist/esm/image-loader.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),debug=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/debug/index.js");var json_loader={id:"JSON",name:"JSON",module:"",version:"",options:{},extensions:["json","geojson"],mimeTypes:["application/json","application/geo+json"],testText:function isJSON(text){const firstChar=text[0],lastChar=text[text.length-1];return"{"===firstChar&&"}"===lastChar||"["===firstChar&&"]"===lastChar},parseTextSync:JSON.parse};const VERSION=function checkVersion(){const existingVersion=globalThis.deck&&globalThis.deck.VERSION;if(existingVersion&&"8.9.36"!==existingVersion)throw new Error("deck.gl - multiple versions detected: ".concat(existingVersion," vs ").concat("8.9.36"));return existingVersion||(log.Z.log(1,"deck.gl ".concat("8.9.36"))(),globalThis.deck={...globalThis.deck,VERSION:"8.9.36",version:"8.9.36",log:log.Z,_registerLoggers:debug.z},(0,register_loaders.fh)([json_loader,[image_loader.S,{imagebitmap:{premultiplyAlpha:"none"}}]])),"8.9.36"}()},"./node_modules/@deck.gl/core/dist/esm/lib/layer-manager.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return LayerManager}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),animation_timeline=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/animation/timeline.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/constants.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),debug=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/debug/index.js"),flatten=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/flatten.js"),esm=__webpack_require__("./node_modules/@probe.gl/stats/dist/esm/index.js"),load=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js");class Resource{constructor(id,data,context){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"context",void 0),(0,defineProperty.Z)(this,"isLoaded",void 0),(0,defineProperty.Z)(this,"persistent",void 0),(0,defineProperty.Z)(this,"_loadCount",0),(0,defineProperty.Z)(this,"_subscribers",new Set),(0,defineProperty.Z)(this,"_data",void 0),(0,defineProperty.Z)(this,"_loader",void 0),(0,defineProperty.Z)(this,"_error",void 0),(0,defineProperty.Z)(this,"_content",void 0),this.id=id,this.context=context,this.setData(data)}subscribe(consumer){this._subscribers.add(consumer)}unsubscribe(consumer){this._subscribers.delete(consumer)}inUse(){return this._subscribers.size>0}delete(){}getData(){return this.isLoaded?this._error?Promise.reject(this._error):this._content:this._loader.then((()=>this.getData()))}setData(data,forceUpdate){if(data===this._data&&!forceUpdate)return;this._data=data;const loadCount=++this._loadCount;let loader=data;"string"==typeof data&&(loader=(0,load.z)(data)),loader instanceof Promise?(this.isLoaded=!1,this._loader=loader.then((result=>{this._loadCount===loadCount&&(this.isLoaded=!0,this._error=void 0,this._content=result)})).catch((error=>{this._loadCount===loadCount&&(this.isLoaded=!0,this._error=error||!0)}))):(this.isLoaded=!0,this._error=void 0,this._content=data);for(const subscriber of this._subscribers)subscriber.onChange(this.getData())}}class ResourceManager{constructor({gl:gl,protocol:protocol}){(0,defineProperty.Z)(this,"protocol",void 0),(0,defineProperty.Z)(this,"_context",void 0),(0,defineProperty.Z)(this,"_resources",void 0),(0,defineProperty.Z)(this,"_consumers",void 0),(0,defineProperty.Z)(this,"_pruneRequest",void 0),this.protocol=protocol||"resource://",this._context={gl:gl,resourceManager:this},this._resources={},this._consumers={},this._pruneRequest=null}contains(resourceId){return!!resourceId.startsWith(this.protocol)||resourceId in this._resources}add({resourceId:resourceId,data:data,forceUpdate:forceUpdate=!1,persistent:persistent=!0}){let res=this._resources[resourceId];res?res.setData(data,forceUpdate):(res=new Resource(resourceId,data,this._context),this._resources[resourceId]=res),res.persistent=persistent}remove(resourceId){const res=this._resources[resourceId];res&&(res.delete(),delete this._resources[resourceId])}unsubscribe({consumerId:consumerId}){const consumer=this._consumers[consumerId];if(consumer){for(const requestId in consumer){const request=consumer[requestId],resource=this._resources[request.resourceId];resource&&resource.unsubscribe(request)}delete this._consumers[consumerId],this.prune()}}subscribe({resourceId:resourceId,onChange:onChange,consumerId:consumerId,requestId:requestId="default"}){const{_resources:resources,protocol:protocol}=this;resourceId.startsWith(protocol)&&(resources[resourceId=resourceId.replace(protocol,"")]||this.add({resourceId:resourceId,data:null,persistent:!1}));const res=resources[resourceId];if(this._track(consumerId,requestId,res,onChange),res)return res.getData()}prune(){this._pruneRequest||(this._pruneRequest=setTimeout((()=>this._prune()),0))}finalize(){for(const key in this._resources)this._resources[key].delete()}_track(consumerId,requestId,resource,onChange){const consumers=this._consumers,consumer=consumers[consumerId]=consumers[consumerId]||{},request=consumer[requestId]||{},oldResource=request.resourceId&&this._resources[request.resourceId];oldResource&&(oldResource.unsubscribe(request),this.prune()),resource&&(consumer[requestId]=request,request.onChange=onChange,request.resourceId=resource.id,resource.subscribe(request))}_prune(){this._pruneRequest=null;for(const key of Object.keys(this._resources)){const res=this._resources[key];res.persistent||res.inUse()||(res.delete(),delete this._resources[key])}}}var viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js"),program_manager=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/program-manager.js");const DEFAULT_MODULES=[__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js").Z],SHADER_HOOKS=["vs:DECKGL_FILTER_SIZE(inout vec3 size, VertexGeometry geometry)","vs:DECKGL_FILTER_GL_POSITION(inout vec4 position, VertexGeometry geometry)","vs:DECKGL_FILTER_COLOR(inout vec4 color, VertexGeometry geometry)","fs:DECKGL_FILTER_COLOR(inout vec4 color, FragmentGeometry geometry)"];function createProgramManager(gl){const programManager=program_manager.Z.getDefaultProgramManager(gl);for(const shaderModule of DEFAULT_MODULES)programManager.addDefaultModule(shaderModule);for(const shaderHook of SHADER_HOOKS)programManager.addShaderHook(shaderHook);return programManager}class LayerManager{constructor(gl,{deck:deck,stats:stats,viewport:_viewport,timeline:timeline}={}){(0,defineProperty.Z)(this,"layers",void 0),(0,defineProperty.Z)(this,"context",void 0),(0,defineProperty.Z)(this,"resourceManager",void 0),(0,defineProperty.Z)(this,"_lastRenderedLayers",[]),(0,defineProperty.Z)(this,"_needsRedraw",!1),(0,defineProperty.Z)(this,"_needsUpdate",!1),(0,defineProperty.Z)(this,"_nextLayers",null),(0,defineProperty.Z)(this,"_debug",!1),(0,defineProperty.Z)(this,"activateViewport",(viewport=>{(0,debug.Z)("layerManager.activateViewport",this,viewport),viewport&&(this.context.viewport=viewport)})),this.layers=[],this.resourceManager=new ResourceManager({gl:gl,protocol:"deck://"}),this.context={mousePosition:null,userData:{},layerManager:this,gl:gl,deck:deck,programManager:gl&&createProgramManager(gl),stats:stats||new esm.jk({id:"deck.gl"}),viewport:_viewport||new viewport.Z({id:"DEFAULT-INITIAL-VIEWPORT"}),timeline:timeline||new animation_timeline.T,resourceManager:this.resourceManager,onError:void 0},Object.seal(this)}finalize(){this.resourceManager.finalize();for(const layer of this.layers)this._finalizeLayer(layer)}needsRedraw(opts={clearRedrawFlags:!1}){let redraw=this._needsRedraw;opts.clearRedrawFlags&&(this._needsRedraw=!1);for(const layer of this.layers){const layerNeedsRedraw=layer.getNeedsRedraw(opts);redraw=redraw||layerNeedsRedraw}return redraw}needsUpdate(){return this._nextLayers&&this._nextLayers!==this._lastRenderedLayers?"layers changed":this._needsUpdate}setNeedsRedraw(reason){this._needsRedraw=this._needsRedraw||reason}setNeedsUpdate(reason){this._needsUpdate=this._needsUpdate||reason}getLayers({layerIds:layerIds}={}){return layerIds?this.layers.filter((layer=>layerIds.find((layerId=>0===layer.id.indexOf(layerId))))):this.layers}setProps(props){"debug"in props&&(this._debug=props.debug),"userData"in props&&(this.context.userData=props.userData),"layers"in props&&(this._nextLayers=props.layers),"onError"in props&&(this.context.onError=props.onError)}setLayers(newLayers,reason){(0,debug.Z)("layerManager.setLayers",this,reason,newLayers),this._lastRenderedLayers=newLayers;const flatLayers=(0,flatten.x)(newLayers,Boolean);for(const layer of flatLayers)layer.context=this.context;this._updateLayers(this.layers,flatLayers)}updateLayers(){const reason=this.needsUpdate();reason&&(this.setNeedsRedraw("updating layers: ".concat(reason)),this.setLayers(this._nextLayers||this._lastRenderedLayers,reason)),this._nextLayers=null}_handleError(stage,error,layer){layer.raiseError(error,"".concat(stage," of ").concat(layer))}_updateLayers(oldLayers,newLayers){const oldLayerMap={};for(const oldLayer of oldLayers)oldLayerMap[oldLayer.id]?log.Z.warn("Multiple old layers with same id ".concat(oldLayer.id))():oldLayerMap[oldLayer.id]=oldLayer;const generatedLayers=[];this._updateSublayersRecursively(newLayers,oldLayerMap,generatedLayers),this._finalizeOldLayers(oldLayerMap);let needsUpdate=!1;for(const layer of generatedLayers)if(layer.hasUniformTransition()){needsUpdate="Uniform transition in ".concat(layer);break}this._needsUpdate=needsUpdate,this.layers=generatedLayers}_updateSublayersRecursively(newLayers,oldLayerMap,generatedLayers){for(const newLayer of newLayers){newLayer.context=this.context;const oldLayer=oldLayerMap[newLayer.id];null===oldLayer&&log.Z.warn("Multiple new layers with same id ".concat(newLayer.id))(),oldLayerMap[newLayer.id]=null;let sublayers=null;try{this._debug&&oldLayer!==newLayer&&newLayer.validateProps(),oldLayer?(this._transferLayerState(oldLayer,newLayer),this._updateLayer(newLayer)):this._initializeLayer(newLayer),generatedLayers.push(newLayer),sublayers=newLayer.isComposite?newLayer.getSubLayers():null}catch(err){this._handleError("matching",err,newLayer)}sublayers&&this._updateSublayersRecursively(sublayers,oldLayerMap,generatedLayers)}}_finalizeOldLayers(oldLayerMap){for(const layerId in oldLayerMap){const layer=oldLayerMap[layerId];layer&&this._finalizeLayer(layer)}}_initializeLayer(layer){try{layer._initialize(),layer.lifecycle=constants.dt.INITIALIZED}catch(err){this._handleError("initialization",err,layer)}}_transferLayerState(oldLayer,newLayer){newLayer._transferState(oldLayer),newLayer.lifecycle=constants.dt.MATCHED,newLayer!==oldLayer&&(oldLayer.lifecycle=constants.dt.AWAITING_GC)}_updateLayer(layer){try{layer._update()}catch(err){this._handleError("update",err,layer)}}_finalizeLayer(layer){this._needsRedraw=this._needsRedraw||"finalized ".concat(layer),layer.lifecycle=constants.dt.AWAITING_FINALIZATION;try{layer._finalize(),layer.lifecycle=constants.dt.FINALIZED}catch(err){this._handleError("finalization",err,layer)}}}},"./node_modules/@deck.gl/core/dist/esm/lib/layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Layer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),attribute_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/attribute/attribute-manager.js"),attribute_transition_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/attribute/attribute-transition-utils.js"),common=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),transition=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/transition.js");class CPUInterpolationTransition extends transition.Z{get value(){return this._value}_onUpdate(){const{time:time,settings:{fromValue:fromValue,toValue:toValue,duration:duration,easing:easing}}=this,t=easing(time/duration);this._value=(0,common.t7)(fromValue,toValue,t)}}function updateSpringElement(prev,cur,dest,damping,stiffness){const velocity=cur-prev;return(dest-cur)*stiffness+-velocity*damping+velocity+cur}function distance(value1,value2){if(Array.isArray(value1)){let distanceSquare=0;for(let i=0;i0}add(key,fromValue,toValue,settings){const{transitions:transitions}=this;if(transitions.has(key)){const transition=transitions.get(key),{value:value=transition.settings.fromValue}=transition;fromValue=value,this.remove(key)}if(!(settings=(0,attribute_transition_utils.M0)(settings)))return;const TransitionType=TRANSITION_TYPES[settings.type];if(!TransitionType)return void log.Z.error("unsupported transition type '".concat(settings.type,"'"))();const transition=new TransitionType(this.timeline);transition.start({...settings,fromValue:fromValue,toValue:toValue}),transitions.set(key,transition)}remove(key){const{transitions:transitions}=this;transitions.has(key)&&(transitions.get(key).cancel(),transitions.delete(key))}update(){const propsInTransition={};for(const[key,transition]of this.transitions)transition.update(),propsInTransition[key]=transition.value,transition.inProgress||this.remove(key);return propsInTransition}clear(){for(const key of this.transitions.keys())this.remove(key)}}var props=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/props.js"),lifecycle_constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/constants.js"),count=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/count.js"),debug=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/debug/index.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),assert=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js"),memoize=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/memoize.js"),shader=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/shader.js"),project_functions=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project-functions.js"),typed_array_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/typed-array-manager.js"),iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js");const DEFAULT_TEXTURE_PARAMETERS={10241:9987,10240:9729,10242:33071,10243:33071},internalTextures={};var deep_equal=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js");const TYPE_DEFINITIONS={boolean:{validate(value,propType){return!0},equal(value1,value2,propType){return Boolean(value1)===Boolean(value2)}},number:{validate(value,propType){return Number.isFinite(value)&&(!("max"in propType)||value<=propType.max)&&(!("min"in propType)||value>=propType.min)}},color:{validate(value,propType){return propType.optional&&!value||isArray(value)&&(3===value.length||4===value.length)},equal(value1,value2,propType){return(0,deep_equal.v)(value1,value2,1)}},accessor:{validate(value,propType){const valueType=getTypeOf(value);return"function"===valueType||valueType===getTypeOf(propType.value)},equal(value1,value2,propType){return"function"==typeof value2||(0,deep_equal.v)(value1,value2,1)}},array:{validate(value,propType){return propType.optional&&!value||isArray(value)},equal(value1,value2,propType){const{compare:compare}=propType,depth=Number.isInteger(compare)?compare:compare?1:0;return compare?(0,deep_equal.v)(value1,value2,depth):value1===value2}},object:{equal(value1,value2,propType){if(propType.ignore)return!0;const{compare:compare}=propType,depth=Number.isInteger(compare)?compare:compare?1:0;return compare?(0,deep_equal.v)(value1,value2,depth):value1===value2}},function:{validate(value,propType){return propType.optional&&!value||"function"==typeof value},equal(value1,value2,propType){return!propType.compare&&!1!==propType.ignore||value1===value2}},data:{transform:(value,propType,component)=>{const{dataTransform:dataTransform}=component.props;return dataTransform&&value?dataTransform(value):value}},image:{transform:(value,propType,component)=>{const context=component.context;return context&&context.gl?function createTexture(owner,gl,image,parameters){if(image instanceof texture_2d.Z)return image;image.constructor&&"Object"!==image.constructor.name&&(image={data:image});let specialTextureParameters=null;image.compressed&&(specialTextureParameters={10241:image.data.length>1?9985:9729});const texture=new texture_2d.Z(gl,{...image,parameters:{...DEFAULT_TEXTURE_PARAMETERS,...specialTextureParameters,...parameters}});return internalTextures[texture.id]=owner,texture}(component.id,context.gl,value,{...propType.parameters,...component.props.textureParameters}):null},release:(value,propType,component)=>{!function destroyTexture(owner,texture){texture&&texture instanceof texture_2d.Z&&internalTextures[texture.id]===owner&&(texture.delete(),delete internalTextures[texture.id])}(component.id,value)}}};function parsePropType(name,propDef){switch(getTypeOf(propDef)){case"object":return normalizePropDefinition(name,propDef);case"array":return normalizePropDefinition(name,{type:"array",value:propDef,compare:!1});case"boolean":return normalizePropDefinition(name,{type:"boolean",value:propDef});case"number":return normalizePropDefinition(name,{type:"number",value:propDef});case"function":return normalizePropDefinition(name,{type:"function",value:propDef,compare:!0});default:return{name:name,type:"unknown",value:propDef}}}function normalizePropDefinition(name,propDef){return"type"in propDef?{name:name,...TYPE_DEFINITIONS[propDef.type],...propDef}:"value"in propDef?{name:name,type:getTypeOf(propDef.value),...propDef}:{name:name,type:"object",value:propDef}}function isArray(value){return Array.isArray(value)||ArrayBuffer.isView(value)}function getTypeOf(value){return isArray(value)?"array":null===value?"null":typeof value}const MergedDefaultPropsCacheKey="_mergedDefaultProps";function getPropsPrototype(componentClass,extensions){let cacheKey=MergedDefaultPropsCacheKey;if(extensions)for(const extension of extensions){const ExtensionClass=extension.constructor;ExtensionClass&&(cacheKey+=":".concat(ExtensionClass.extensionName||ExtensionClass.name))}const defaultProps=getOwnProperty(componentClass,cacheKey);return defaultProps||(componentClass[cacheKey]=function createPropsPrototypeAndTypes(componentClass,extensions){const parent=componentClass.prototype;if(!parent)return null;const parentClass=Object.getPrototypeOf(componentClass),parentDefaultProps=getPropsPrototype(parentClass),componentDefaultProps=getOwnProperty(componentClass,"defaultProps")||{},componentPropDefs=function parsePropTypes(propDefs){const propTypes={},defaultProps={},deprecatedProps={};for(const[propName,propDef]of Object.entries(propDefs)){const deprecated=null==propDef?void 0:propDef.deprecatedFor;if(deprecated)deprecatedProps[propName]=Array.isArray(deprecated)?deprecated:[deprecated];else{const propType=parsePropType(propName,propDef);propTypes[propName]=propType,defaultProps[propName]=propType.value}}return{propTypes:propTypes,defaultProps:defaultProps,deprecatedProps:deprecatedProps}}(componentDefaultProps),defaultProps=Object.assign(Object.create(null),parentDefaultProps,componentPropDefs.defaultProps),propTypes=Object.assign(Object.create(null),null==parentDefaultProps?void 0:parentDefaultProps[lifecycle_constants.Wb],componentPropDefs.propTypes),deprecatedProps=Object.assign(Object.create(null),null==parentDefaultProps?void 0:parentDefaultProps[lifecycle_constants.E7],componentPropDefs.deprecatedProps);for(const extension of extensions){const extensionDefaultProps=getPropsPrototype(extension.constructor);extensionDefaultProps&&(Object.assign(defaultProps,extensionDefaultProps),Object.assign(propTypes,extensionDefaultProps[lifecycle_constants.Wb]),Object.assign(deprecatedProps,extensionDefaultProps[lifecycle_constants.E7]))}(function createPropsPrototype(defaultProps,componentClass){const id=function getComponentName(componentClass){const componentName=componentClass.componentName;componentName||log.Z.warn("".concat(componentClass.name,".componentName not specified"))();return componentName||componentClass.name}(componentClass);Object.defineProperties(defaultProps,{id:{writable:!0,value:id}})})(defaultProps,componentClass),function addAsyncPropsToPropPrototype(defaultProps,propTypes){const defaultValues={},descriptors={};for(const propName in propTypes){const propType=propTypes[propName],{name:name,value:value}=propType;propType.async&&(defaultValues[name]=value,descriptors[name]=getDescriptorForAsyncProp(name))}defaultProps[lifecycle_constants.lY]=defaultValues,defaultProps[lifecycle_constants.fO]={},Object.defineProperties(defaultProps,descriptors)}(defaultProps,propTypes),function addDeprecatedPropsToPropPrototype(defaultProps,deprecatedProps){for(const propName in deprecatedProps)Object.defineProperty(defaultProps,propName,{enumerable:!1,set(newValue){const nameStr="".concat(this.id,": ").concat(propName);for(const newPropName of deprecatedProps[propName])create_props_hasOwnProperty(this,newPropName)||(this[newPropName]=newValue);log.Z.deprecated(nameStr,deprecatedProps[propName].join("/"))()}})}(defaultProps,deprecatedProps),defaultProps[lifecycle_constants.Wb]=propTypes,defaultProps[lifecycle_constants.E7]=deprecatedProps,0!==extensions.length||create_props_hasOwnProperty(componentClass,"_propTypes")||(componentClass._propTypes=propTypes);return defaultProps}(componentClass,extensions||[]))}function getDescriptorForAsyncProp(name){return{enumerable:!0,set(newValue){"string"==typeof newValue||newValue instanceof Promise||(0,iterable_utils.D0)(newValue)?this[lifecycle_constants.fO][name]=newValue:this[lifecycle_constants.bN][name]=newValue},get(){if(this[lifecycle_constants.bN]){if(name in this[lifecycle_constants.bN]){return this[lifecycle_constants.bN][name]||this[lifecycle_constants.lY][name]}if(name in this[lifecycle_constants.fO]){const state=this[lifecycle_constants.fm]&&this[lifecycle_constants.fm].internalState;if(state&&state.hasAsyncProp(name))return state.getAsyncProp(name)||this[lifecycle_constants.lY][name]}}return this[lifecycle_constants.lY][name]}}}function create_props_hasOwnProperty(object,prop){return Object.prototype.hasOwnProperty.call(object,prop)}function getOwnProperty(object,prop){return create_props_hasOwnProperty(object,prop)&&object[prop]}let counter=0;class Component{constructor(...propObjects){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"count",void 0),this.props=function createProps(component,propObjects){let extensions;for(let i=propObjects.length-1;i>=0;i--){const props=propObjects[i];"extensions"in props&&(extensions=props.extensions)}const propsPrototype=getPropsPrototype(component.constructor,extensions),propsInstance=Object.create(propsPrototype);propsInstance[lifecycle_constants.fm]=component,propsInstance[lifecycle_constants.fO]={},propsInstance[lifecycle_constants.bN]={};for(let i=0;i{},this.oldProps=null,this.oldAsyncProps=null}finalize(){for(const propName in this.asyncProps){const asyncProp=this.asyncProps[propName];asyncProp&&asyncProp.type&&asyncProp.type.release&&asyncProp.type.release(asyncProp.resolvedValue,asyncProp.type,this.component)}this.asyncProps={},this.component=null,this.resetOldProps()}getOldProps(){return this.oldAsyncProps||this.oldProps||EMPTY_PROPS}resetOldProps(){this.oldAsyncProps=null,this.oldProps=this.component?this.component.props:null}hasAsyncProp(propName){return propName in this.asyncProps}getAsyncProp(propName){const asyncProp=this.asyncProps[propName];return asyncProp&&asyncProp.resolvedValue}isAsyncPropLoading(propName){if(propName){const asyncProp=this.asyncProps[propName];return Boolean(asyncProp&&asyncProp.pendingLoadCount>0&&asyncProp.pendingLoadCount!==asyncProp.resolvedLoadCount)}for(const key in this.asyncProps)if(this.isAsyncPropLoading(key))return!0;return!1}reloadAsyncProp(propName,value){this._watchPromise(propName,Promise.resolve(value))}setAsyncProps(props){this.component=props[lifecycle_constants.fm]||this.component;const resolvedValues=props[lifecycle_constants.bN]||{},originalValues=props[lifecycle_constants.fO]||props,defaultValues=props[lifecycle_constants.lY]||{};for(const propName in resolvedValues){const value=resolvedValues[propName];this._createAsyncPropData(propName,defaultValues[propName]),this._updateAsyncProp(propName,value),resolvedValues[propName]=this.getAsyncProp(propName)}for(const propName in originalValues){const value=originalValues[propName];this._createAsyncPropData(propName,defaultValues[propName]),this._updateAsyncProp(propName,value)}}_fetch(propName,url){return null}_onResolve(propName,value){}_onError(propName,error){}_updateAsyncProp(propName,value){this._didAsyncInputValueChange(propName,value)&&("string"==typeof value&&(value=this._fetch(propName,value)),value instanceof Promise?this._watchPromise(propName,value):(0,iterable_utils.D0)(value)?this._resolveAsyncIterable(propName,value):this._setPropValue(propName,value))}_freezeAsyncOldProps(){if(!this.oldAsyncProps&&this.oldProps){this.oldAsyncProps=Object.create(this.oldProps);for(const propName in this.asyncProps)Object.defineProperty(this.oldAsyncProps,propName,{enumerable:!0,value:this.oldProps[propName]})}}_didAsyncInputValueChange(propName,value){const asyncProp=this.asyncProps[propName];return value!==asyncProp.resolvedValue&&value!==asyncProp.lastValue&&(asyncProp.lastValue=value,!0)}_setPropValue(propName,value){this._freezeAsyncOldProps();const asyncProp=this.asyncProps[propName];asyncProp&&(value=this._postProcessValue(asyncProp,value),asyncProp.resolvedValue=value,asyncProp.pendingLoadCount++,asyncProp.resolvedLoadCount=asyncProp.pendingLoadCount)}_setAsyncPropValue(propName,value,loadCount){const asyncProp=this.asyncProps[propName];asyncProp&&loadCount>=asyncProp.resolvedLoadCount&&void 0!==value&&(this._freezeAsyncOldProps(),asyncProp.resolvedValue=value,asyncProp.resolvedLoadCount=loadCount,this.onAsyncPropUpdated(propName,value))}_watchPromise(propName,promise){const asyncProp=this.asyncProps[propName];if(asyncProp){asyncProp.pendingLoadCount++;const loadCount=asyncProp.pendingLoadCount;promise.then((data=>{this.component&&(data=this._postProcessValue(asyncProp,data),this._setAsyncPropValue(propName,data,loadCount),this._onResolve(propName,data))})).catch((error=>{this._onError(propName,error)}))}}async _resolveAsyncIterable(propName,iterable){if("data"!==propName)return void this._setPropValue(propName,iterable);const asyncProp=this.asyncProps[propName];if(!asyncProp)return;asyncProp.pendingLoadCount++;const loadCount=asyncProp.pendingLoadCount;let data=[],count=0;for await(const chunk of iterable){if(!this.component)return;const{dataTransform:dataTransform}=this.component.props;data=dataTransform?dataTransform(chunk,data):data.concat(chunk),Object.defineProperty(data,"__diff",{enumerable:!1,value:[{startRow:count,endRow:data.length}]}),count=data.length,this._setAsyncPropValue(propName,data,loadCount)}this._onResolve(propName,data)}_postProcessValue(asyncProp,value){const propType=asyncProp.type;return propType&&this.component&&(propType.release&&propType.release(asyncProp.resolvedValue,propType,this.component),propType.transform)?propType.transform(value,propType,this.component):value}_createAsyncPropData(propName,defaultValue){if(!this.asyncProps[propName]){const propTypes=this.component&&this.component.props[lifecycle_constants.Wb];this.asyncProps[propName]={type:propTypes&&propTypes[propName],lastValue:null,resolvedValue:defaultValue,pendingLoadCount:0,resolvedLoadCount:0}}}}class LayerState extends ComponentState{constructor({attributeManager:attributeManager,layer:layer}){super(layer),(0,defineProperty.Z)(this,"attributeManager",void 0),(0,defineProperty.Z)(this,"needsRedraw",void 0),(0,defineProperty.Z)(this,"needsUpdate",void 0),(0,defineProperty.Z)(this,"subLayers",void 0),(0,defineProperty.Z)(this,"usesPickingColorCache",void 0),(0,defineProperty.Z)(this,"hasPickingBuffer",void 0),(0,defineProperty.Z)(this,"changeFlags",void 0),(0,defineProperty.Z)(this,"viewport",void 0),(0,defineProperty.Z)(this,"uniformTransitions",void 0),(0,defineProperty.Z)(this,"propsInTransition",void 0),this.attributeManager=attributeManager,this.needsRedraw=!0,this.needsUpdate=!0,this.subLayers=null,this.usesPickingColorCache=!1}get layer(){return this.component}_fetch(propName,url){const layer=this.layer,fetch=null==layer?void 0:layer.props.fetch;return fetch?fetch(url,{propName:propName,layer:layer}):super._fetch(propName,url)}_onResolve(propName,value){const layer=this.layer;if(layer){const onDataLoad=layer.props.onDataLoad;"data"===propName&&onDataLoad&&onDataLoad(value,{propName:propName,layer:layer})}}_onError(propName,error){const layer=this.layer;layer&&layer.raiseError(error,"loading ".concat(propName," of ").concat(this.layer))}}var dist_esm=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js"),load=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js");const EMPTY_ARRAY=Object.freeze([]),areViewportsEqual=(0,memoize.Z)((({oldViewport:oldViewport,viewport:viewport})=>oldViewport.equals(viewport)));let pickingColorCache=new Uint8ClampedArray(0);const defaultProps={data:{type:"data",value:EMPTY_ARRAY,async:!0},dataComparator:{type:"function",value:null,optional:!0},_dataDiff:{type:"function",value:data=>data&&data.__diff,optional:!0},dataTransform:{type:"function",value:null,optional:!0},onDataLoad:{type:"function",value:null,optional:!0},onError:{type:"function",value:null,optional:!0},fetch:{type:"function",value:(url,{propName:propName,layer:layer,loaders:loaders,loadOptions:loadOptions,signal:signal})=>{const{resourceManager:resourceManager}=layer.context;var _loadOptions;(loadOptions=loadOptions||layer.getLoadOptions(),loaders=loaders||layer.props.loaders,signal)&&(loadOptions={...loadOptions,fetch:{...null===(_loadOptions=loadOptions)||void 0===_loadOptions?void 0:_loadOptions.fetch,signal:signal}});let inResourceManager=resourceManager.contains(url);return inResourceManager||loadOptions||(resourceManager.add({resourceId:url,data:(0,load.z)(url,loaders),persistent:!1}),inResourceManager=!0),inResourceManager?resourceManager.subscribe({resourceId:url,onChange:data=>{var _layer$internalState;return null===(_layer$internalState=layer.internalState)||void 0===_layer$internalState?void 0:_layer$internalState.reloadAsyncProp(propName,data)},consumerId:layer.id,requestId:propName}):(0,load.z)(url,loaders,loadOptions)}},updateTriggers:{},visible:!0,pickable:!1,opacity:{type:"number",min:0,max:1,value:1},operation:"draw",onHover:{type:"function",value:null,optional:!0},onClick:{type:"function",value:null,optional:!0},onDragStart:{type:"function",value:null,optional:!0},onDrag:{type:"function",value:null,optional:!0},onDragEnd:{type:"function",value:null,optional:!0},coordinateSystem:constants.COORDINATE_SYSTEM.DEFAULT,coordinateOrigin:{type:"array",value:[0,0,0],compare:!0},modelMatrix:{type:"array",value:null,compare:!0,optional:!0},wrapLongitude:!1,positionFormat:"XYZ",colorFormat:"RGBA",parameters:{type:"object",value:{},optional:!0,compare:2},loadOptions:{type:"object",value:null,optional:!0,ignore:!0},transitions:null,extensions:[],loaders:{type:"array",value:[],optional:!0,ignore:!0},getPolygonOffset:{type:"function",value:({layerIndex:layerIndex})=>[0,100*-layerIndex]},highlightedObjectIndex:null,autoHighlight:!1,highlightColor:{type:"accessor",value:[0,0,128,128]}};class Layer extends Component{constructor(...args){super(...args),(0,defineProperty.Z)(this,"internalState",null),(0,defineProperty.Z)(this,"lifecycle",lifecycle_constants.dt.NO_STATE),(0,defineProperty.Z)(this,"context",void 0),(0,defineProperty.Z)(this,"state",void 0),(0,defineProperty.Z)(this,"parent",null)}static get componentName(){return Object.prototype.hasOwnProperty.call(this,"layerName")?this.layerName:""}get root(){let layer=this;for(;layer.parent;)layer=layer.parent;return layer}toString(){const className=this.constructor.layerName||this.constructor.name;return"".concat(className,"({id: '").concat(this.props.id,"'})")}project(xyz){(0,assert.Z)(this.internalState);const viewport=this.internalState.viewport||this.context.viewport,worldPosition=(0,project_functions.T)(xyz,{viewport:viewport,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem}),[x,y,z]=(0,dist_esm.aW)(worldPosition,viewport.pixelProjectionMatrix);return 2===xyz.length?[x,y]:[x,y,z]}unproject(xy){(0,assert.Z)(this.internalState);return(this.internalState.viewport||this.context.viewport).unproject(xy)}projectPosition(xyz,params){(0,assert.Z)(this.internalState);const viewport=this.internalState.viewport||this.context.viewport;return(0,project_functions.D)(xyz,{viewport:viewport,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem,...params})}get isComposite(){return!1}setState(partialState){this.setChangeFlags({stateChanged:!0}),Object.assign(this.state,partialState),this.setNeedsRedraw()}setNeedsRedraw(){this.internalState&&(this.internalState.needsRedraw=!0)}setNeedsUpdate(){this.internalState&&(this.context.layerManager.setNeedsUpdate(String(this)),this.internalState.needsUpdate=!0)}get isLoaded(){return!!this.internalState&&!this.internalState.isAsyncPropLoading()}get wrapLongitude(){return this.props.wrapLongitude}isPickable(){return this.props.pickable&&this.props.visible}getModels(){return this.state&&(this.state.models||this.state.model&&[this.state.model])||[]}setModuleParameters(moduleParameters){for(const model of this.getModels())model.updateModuleSettings(moduleParameters)}getAttributeManager(){return this.internalState&&this.internalState.attributeManager}getCurrentLayer(){return this.internalState&&this.internalState.layer}getLoadOptions(){return this.props.loadOptions}use64bitPositions(){const{coordinateSystem:coordinateSystem}=this.props;return coordinateSystem===constants.COORDINATE_SYSTEM.DEFAULT||coordinateSystem===constants.COORDINATE_SYSTEM.LNGLAT||coordinateSystem===constants.COORDINATE_SYSTEM.CARTESIAN}onHover(info,pickingEvent){return this.props.onHover&&this.props.onHover(info,pickingEvent)||!1}onClick(info,pickingEvent){return this.props.onClick&&this.props.onClick(info,pickingEvent)||!1}nullPickingColor(){return[0,0,0]}encodePickingColor(i,target=[]){return target[0]=i+1&255,target[1]=i+1>>8&255,target[2]=i+1>>8>>8&255,target}decodePickingColor(color){(0,assert.Z)(color instanceof Uint8Array);const[i1,i2,i3]=color;return i1+256*i2+65536*i3-1}getNumInstances(){return Number.isFinite(this.props.numInstances)?this.props.numInstances:this.state&&void 0!==this.state.numInstances?this.state.numInstances:(0,count.Q)(this.props.data)}getStartIndices(){return this.props.startIndices?this.props.startIndices:this.state&&this.state.startIndices?this.state.startIndices:null}getBounds(){var _this$getAttributeMan;return null===(_this$getAttributeMan=this.getAttributeManager())||void 0===_this$getAttributeMan?void 0:_this$getAttributeMan.getBounds(["positions","instancePositions"])}getShaders(shaders){for(const extension of this.props.extensions)shaders=(0,shader.l)(shaders,extension.getShaders.call(this,extension));return shaders}shouldUpdateState(params){return params.changeFlags.propsOrDataChanged}updateState(params){const attributeManager=this.getAttributeManager(),{dataChanged:dataChanged}=params.changeFlags;if(dataChanged&&attributeManager)if(Array.isArray(dataChanged))for(const dataRange of dataChanged)attributeManager.invalidateAll(dataRange);else attributeManager.invalidateAll();if(attributeManager){const{props:props}=params,hasPickingBuffer=this.internalState.hasPickingBuffer,needsPickingBuffer=Number.isInteger(props.highlightedObjectIndex)||props.pickable||props.extensions.some((extension=>extension.getNeedsPickingBuffer.call(this,extension)));if(hasPickingBuffer!==needsPickingBuffer){this.internalState.hasPickingBuffer=needsPickingBuffer;const{pickingColors:pickingColors,instancePickingColors:instancePickingColors}=attributeManager.attributes,pickingColorsAttribute=pickingColors||instancePickingColors;pickingColorsAttribute&&(needsPickingBuffer&&pickingColorsAttribute.constant&&(pickingColorsAttribute.constant=!1,attributeManager.invalidate(pickingColorsAttribute.id)),pickingColorsAttribute.value||needsPickingBuffer||(pickingColorsAttribute.constant=!0,pickingColorsAttribute.value=[0,0,0]))}}}finalizeState(context){for(const model of this.getModels())model.delete();const attributeManager=this.getAttributeManager();attributeManager&&attributeManager.finalize(),this.context&&this.context.resourceManager.unsubscribe({consumerId:this.id}),this.internalState&&(this.internalState.uniformTransitions.clear(),this.internalState.finalize())}draw(opts){for(const model of this.getModels())model.draw(opts)}getPickingInfo({info:info,mode:mode,sourceLayer:sourceLayer}){const{index:index}=info;return index>=0&&Array.isArray(this.props.data)&&(info.object=this.props.data[index]),info}raiseError(error,message){var _this$props$onError,_this$props,_this$context,_this$context$onError;(message&&(error=new Error("".concat(message,": ").concat(error.message),{cause:error})),null!==(_this$props$onError=(_this$props=this.props).onError)&&void 0!==_this$props$onError&&_this$props$onError.call(_this$props,error))||(null===(_this$context=this.context)||void 0===_this$context||null===(_this$context$onError=_this$context.onError)||void 0===_this$context$onError||_this$context$onError.call(_this$context,error,this))}getNeedsRedraw(opts={clearRedrawFlags:!1}){return this._getNeedsRedraw(opts)}needsUpdate(){return!!this.internalState&&(this.internalState.needsUpdate||this.hasUniformTransition()||this.shouldUpdateState(this._getUpdateParams()))}hasUniformTransition(){var _this$internalState;return(null===(_this$internalState=this.internalState)||void 0===_this$internalState?void 0:_this$internalState.uniformTransitions.active)||!1}activateViewport(viewport){if(!this.internalState)return;const oldViewport=this.internalState.viewport;this.internalState.viewport=viewport,oldViewport&&areViewportsEqual({oldViewport:oldViewport,viewport:viewport})||(this.setChangeFlags({viewportChanged:!0}),this.isComposite?this.needsUpdate()&&this.setNeedsUpdate():this._update())}invalidateAttribute(name="all"){const attributeManager=this.getAttributeManager();attributeManager&&("all"===name?attributeManager.invalidateAll():attributeManager.invalidate(name))}updateAttributes(changedAttributes){for(const model of this.getModels())this._setModelAttributes(model,changedAttributes)}_updateAttributes(){const attributeManager=this.getAttributeManager();if(!attributeManager)return;const props=this.props,numInstances=this.getNumInstances(),startIndices=this.getStartIndices();attributeManager.update({data:props.data,numInstances:numInstances,startIndices:startIndices,props:props,transitions:props.transitions,buffers:props.data.attributes,context:this});const changedAttributes=attributeManager.getChangedAttributes({clearChangedFlags:!0});this.updateAttributes(changedAttributes)}_updateAttributeTransition(){const attributeManager=this.getAttributeManager();attributeManager&&attributeManager.updateTransition()}_updateUniformTransition(){const{uniformTransitions:uniformTransitions}=this.internalState;if(uniformTransitions.active){const propsInTransition=uniformTransitions.update(),props=Object.create(this.props);for(const key in propsInTransition)Object.defineProperty(props,key,{value:propsInTransition[key]});return props}return this.props}calculateInstancePickingColors(attribute,{numInstances:numInstances}){if(attribute.constant)return;const cacheSize=Math.floor(pickingColorCache.length/3);if(this.internalState.usesPickingColorCache=!0,cacheSize16777215&&log.Z.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")(),pickingColorCache=typed_array_manager.Z.allocate(pickingColorCache,numInstances,{size:3,copy:!0,maxCount:Math.max(numInstances,16777215)});const newCacheSize=Math.floor(pickingColorCache.length/3),pickingColor=[];for(let i=cacheSize;i(log.Z.deprecated("layer.state.attributeManager","layer.getAttributeManager()")(),attributeManager)}),this.internalState.uniformTransitions=new UniformTransitionManager(this.context.timeline),this.internalState.onAsyncPropUpdated=this._onAsyncPropUpdated.bind(this),this.internalState.setAsyncProps(this.props),this.initializeState(this.context);for(const extension of this.props.extensions)extension.initializeState.call(this,this.context,extension);this.setChangeFlags({dataChanged:"init",propsChanged:"init",viewportChanged:!0,extensionsChanged:!0}),this._update()}_transferState(oldLayer){(0,debug.Z)("layer.matched",this,this===oldLayer);const{state:state,internalState:internalState}=oldLayer;this!==oldLayer&&(this.internalState=internalState,this.state=state,this.internalState.setAsyncProps(this.props),this._diffProps(this.props,this.internalState.getOldProps()))}_update(){const stateNeedsUpdate=this.needsUpdate();if((0,debug.Z)("layer.update",this,stateNeedsUpdate),!stateNeedsUpdate)return;const currentProps=this.props,context=this.context,internalState=this.internalState,currentViewport=context.viewport,propsInTransition=this._updateUniformTransition();internalState.propsInTransition=propsInTransition,context.viewport=internalState.viewport||currentViewport,this.props=propsInTransition;try{const updateParams=this._getUpdateParams(),oldModels=this.getModels();if(context.gl)this.updateState(updateParams);else try{this.updateState(updateParams)}catch(error){}for(const extension of this.props.extensions)extension.updateState.call(this,updateParams,extension);const modelChanged=this.getModels()[0]!==oldModels[0];this._postUpdate(updateParams,modelChanged)}finally{context.viewport=currentViewport,this.props=currentProps,this._clearChangeFlags(),internalState.needsUpdate=!1,internalState.resetOldProps()}}_finalize(){(0,debug.Z)("layer.finalize",this),this.finalizeState(this.context);for(const extension of this.props.extensions)extension.finalizeState.call(this,this.context,extension)}_drawLayer({moduleParameters:moduleParameters=null,uniforms:uniforms={},parameters:parameters={}}){this._updateAttributeTransition();const currentProps=this.props,context=this.context;this.props=this.internalState.propsInTransition||currentProps;const opacity=this.props.opacity;uniforms.opacity=Math.pow(opacity,1/2.2);try{moduleParameters&&this.setModuleParameters(moduleParameters);const{getPolygonOffset:getPolygonOffset}=this.props,offsets=getPolygonOffset&&getPolygonOffset(uniforms)||[0,0];(0,esm.dR)(context.gl,{polygonOffset:offsets}),(0,esm.s8)(context.gl,parameters,(()=>{const opts={moduleParameters:moduleParameters,uniforms:uniforms,parameters:parameters,context:context};for(const extension of this.props.extensions)extension.draw.call(this,opts,extension);this.draw(opts)}))}finally{this.props=currentProps}}getChangeFlags(){var _this$internalState2;return null===(_this$internalState2=this.internalState)||void 0===_this$internalState2?void 0:_this$internalState2.changeFlags}setChangeFlags(flags){if(!this.internalState)return;const{changeFlags:changeFlags}=this.internalState;for(const key in flags)if(flags[key]){let flagChanged=!1;if("dataChanged"===key){const dataChangedReason=flags[key],prevDataChangedReason=changeFlags[key];dataChangedReason&&Array.isArray(prevDataChangedReason)&&(changeFlags.dataChanged=Array.isArray(dataChangedReason)?prevDataChangedReason.concat(dataChangedReason):dataChangedReason,flagChanged=!0)}changeFlags[key]||(changeFlags[key]=flags[key],flagChanged=!0),flagChanged&&(0,debug.Z)("layer.changeFlag",this,key,flags)}const propsOrDataChanged=Boolean(changeFlags.dataChanged||changeFlags.updateTriggersChanged||changeFlags.propsChanged||changeFlags.extensionsChanged);changeFlags.propsOrDataChanged=propsOrDataChanged,changeFlags.somethingChanged=propsOrDataChanged||changeFlags.viewportChanged||changeFlags.stateChanged}_clearChangeFlags(){this.internalState.changeFlags={dataChanged:!1,propsChanged:!1,updateTriggersChanged:!1,viewportChanged:!1,stateChanged:!1,extensionsChanged:!1,propsOrDataChanged:!1,somethingChanged:!1}}_diffProps(newProps,oldProps){const changeFlags=(0,props.Yt)(newProps,oldProps);if(changeFlags.updateTriggersChanged)for(const key in changeFlags.updateTriggersChanged)changeFlags.updateTriggersChanged[key]&&this.invalidateAttribute(key);if(changeFlags.transitionsChanged)for(const key in changeFlags.transitionsChanged){var _newProps$transitions;this.internalState.uniformTransitions.add(key,oldProps[key],newProps[key],null===(_newProps$transitions=newProps.transitions)||void 0===_newProps$transitions?void 0:_newProps$transitions[key])}return this.setChangeFlags(changeFlags)}validateProps(){(0,props.eQ)(this.props)}updateAutoHighlight(info){this.props.autoHighlight&&!Number.isInteger(this.props.highlightedObjectIndex)&&this._updateAutoHighlight(info)}_updateAutoHighlight(info){const pickingModuleParameters={pickingSelectedColor:info.picked?info.color:null},{highlightColor:highlightColor}=this.props;info.picked&&"function"==typeof highlightColor&&(pickingModuleParameters.pickingHighlightColor=highlightColor(info)),this.setModuleParameters(pickingModuleParameters),this.setNeedsRedraw()}_getAttributeManager(){const context=this.context;return new attribute_manager.Z(context.gl,{id:this.props.id,stats:context.stats,timeline:context.timeline})}_postUpdate(updateParams,forceUpdate){const{props:props,oldProps:oldProps}=updateParams;this.setNeedsRedraw(),this._updateAttributes();const{model:model}=this.state;null==model||model.setInstanceCount(this.getNumInstances());const{autoHighlight:autoHighlight,highlightedObjectIndex:highlightedObjectIndex,highlightColor:highlightColor}=props;if(forceUpdate||oldProps.autoHighlight!==autoHighlight||oldProps.highlightedObjectIndex!==highlightedObjectIndex||oldProps.highlightColor!==highlightColor){const parameters={};autoHighlight||(parameters.pickingSelectedColor=null),Array.isArray(highlightColor)&&(parameters.pickingHighlightColor=highlightColor),(forceUpdate||highlightedObjectIndex!==oldProps.highlightedObjectIndex)&&(parameters.pickingSelectedColor=Number.isFinite(highlightedObjectIndex)&&highlightedObjectIndex>=0?this.encodePickingColor(highlightedObjectIndex):null),this.setModuleParameters(parameters)}}_getUpdateParams(){return{props:this.props,oldProps:this.internalState.getOldProps(),context:this.context,changeFlags:this.internalState.changeFlags}}_getNeedsRedraw(opts){if(!this.internalState)return!1;let redraw=!1;redraw=redraw||this.internalState.needsRedraw&&this.id;const attributeManager=this.getAttributeManager(),attributeManagerNeedsRedraw=!!attributeManager&&attributeManager.getNeedsRedraw(opts);if(redraw=redraw||attributeManagerNeedsRedraw,redraw)for(const extension of this.props.extensions)extension.onNeedsRedraw.call(this,extension);return this.internalState.needsRedraw=this.internalState.needsRedraw&&!opts.clearRedrawFlags,redraw}_onAsyncPropUpdated(){this._diffProps(this.props,this.internalState.getOldProps()),this.setNeedsUpdate()}}(0,defineProperty.Z)(Layer,"defaultProps",defaultProps),(0,defineProperty.Z)(Layer,"layerName","Layer")},"./node_modules/@deck.gl/core/dist/esm/lifecycle/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E7:function(){return DEPRECATED_PROPS_SYMBOL},Wb:function(){return PROP_TYPES_SYMBOL},bN:function(){return ASYNC_RESOLVED_SYMBOL},dt:function(){return LIFECYCLE},fO:function(){return ASYNC_ORIGINAL_SYMBOL},fm:function(){return COMPONENT_SYMBOL},lY:function(){return ASYNC_DEFAULTS_SYMBOL}});const LIFECYCLE={NO_STATE:"Awaiting state",MATCHED:"Matched. State transferred from previous layer",INITIALIZED:"Initialized",AWAITING_GC:"Discarded. Awaiting garbage collection",AWAITING_FINALIZATION:"No longer matched. Awaiting garbage collection",FINALIZED:"Finalized! Awaiting garbage collection"},COMPONENT_SYMBOL=Symbol.for("component"),PROP_TYPES_SYMBOL=Symbol.for("propTypes"),DEPRECATED_PROPS_SYMBOL=Symbol.for("deprecatedProps"),ASYNC_DEFAULTS_SYMBOL=Symbol.for("asyncPropDefaults"),ASYNC_ORIGINAL_SYMBOL=Symbol.for("asyncPropOriginal"),ASYNC_RESOLVED_SYMBOL=Symbol.for("asyncPropResolved")},"./node_modules/@deck.gl/core/dist/esm/lifecycle/props.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Yt:function(){return diffProps},eQ:function(){return validateProps},tg:function(){return compareProps}});var _constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/constants.js");function validateProps(props){const propTypes=props[_constants__WEBPACK_IMPORTED_MODULE_0__.Wb];for(const propName in propTypes){const propType=propTypes[propName],{validate:validate}=propType;if(validate&&!validate(props[propName],propType))throw new Error("Invalid prop ".concat(propName,": ").concat(props[propName]))}}function diffProps(props,oldProps){const propsChangedReason=compareProps({newProps:props,oldProps:oldProps,propTypes:props[_constants__WEBPACK_IMPORTED_MODULE_0__.Wb],ignoreProps:{data:null,updateTriggers:null,extensions:null,transitions:null}}),dataChangedReason=function diffDataProps(props,oldProps){if(null===oldProps)return"oldProps is null, initial diff";let dataChanged=!1;const{dataComparator:dataComparator,_dataDiff:_dataDiff}=props;dataComparator?dataComparator(props.data,oldProps.data)||(dataChanged="Data comparator detected a change"):props.data!==oldProps.data&&(dataChanged="A new data container was supplied");dataChanged&&_dataDiff&&(dataChanged=_dataDiff(props.data,oldProps.data)||dataChanged);return dataChanged}(props,oldProps);let updateTriggersChangedReason=!1;return dataChangedReason||(updateTriggersChangedReason=function diffUpdateTriggers(props,oldProps){if(null===oldProps)return{all:!0};if("all"in props.updateTriggers){if(diffUpdateTrigger(props,oldProps,"all"))return{all:!0}}const reason={};let changed=!1;for(const triggerName in props.updateTriggers)if("all"!==triggerName){diffUpdateTrigger(props,oldProps,triggerName)&&(reason[triggerName]=!0,changed=!0)}return!!changed&&reason}(props,oldProps)),{dataChanged:dataChangedReason,propsChanged:propsChangedReason,updateTriggersChanged:updateTriggersChangedReason,extensionsChanged:diffExtensions(props,oldProps),transitionsChanged:diffTransitions(props,oldProps)}}function diffTransitions(props,oldProps){if(!props.transitions)return!1;const result={},propTypes=props[_constants__WEBPACK_IMPORTED_MODULE_0__.Wb];let changed=!1;for(const key in props.transitions){const propType=propTypes[key],type=propType&&propType.type;("number"===type||"color"===type||"array"===type)&&comparePropValues(props[key],oldProps[key],propType)&&(result[key]=!0,changed=!0)}return!!changed&&result}function compareProps({newProps:newProps,oldProps:oldProps,ignoreProps:ignoreProps={},propTypes:propTypes={},triggerName:triggerName="props"}){if(oldProps===newProps)return!1;if("object"!=typeof newProps||null===newProps)return"".concat(triggerName," changed shallowly");if("object"!=typeof oldProps||null===oldProps)return"".concat(triggerName," changed shallowly");for(const key of Object.keys(newProps))if(!(key in ignoreProps)){if(!(key in oldProps))return"".concat(triggerName,".").concat(key," added");const changed=comparePropValues(newProps[key],oldProps[key],propTypes[key]);if(changed)return"".concat(triggerName,".").concat(key," ").concat(changed)}for(const key of Object.keys(oldProps))if(!(key in ignoreProps)){if(!(key in newProps))return"".concat(triggerName,".").concat(key," dropped");if(!Object.hasOwnProperty.call(newProps,key)){const changed=comparePropValues(newProps[key],oldProps[key],propTypes[key]);if(changed)return"".concat(triggerName,".").concat(key," ").concat(changed)}}return!1}function comparePropValues(newProp,oldProp,propType){let equal=propType&&propType.equal;return equal&&!equal(newProp,oldProp,propType)?"changed deeply":equal||(equal=newProp&&oldProp&&newProp.equals,!equal||equal.call(newProp,oldProp))?equal||oldProp===newProp?null:"changed shallowly":"changed deeply"}function diffExtensions(props,oldProps){if(null===oldProps)return!0;const oldExtensions=oldProps.extensions,{extensions:extensions}=props;if(extensions===oldExtensions)return!1;if(!oldExtensions||!extensions)return!0;if(extensions.length!==oldExtensions.length)return!0;for(let i=0;i(0,_luma_gl_core__WEBPACK_IMPORTED_MODULE_3__.Z)(gl,clearOpts)))}const renderStatus={totalCount:layers.length,visibleCount:0,compositeCount:0,pickableCount:0};(0,_luma_gl_core__WEBPACK_IMPORTED_MODULE_2__.dR)(gl,{viewport:glViewport});for(let layerIndex=0;layerIndex{const indexOverride=layer.props._offset,layerId=layer.id,parentId=layer.parent&&layer.parent.id;let index;if(parentId&&!(parentId in layerIndices)&&resolveLayerIndex(layer.parent,!1),parentId in resolvers){const resolver=resolvers[parentId]=resolvers[parentId]||layerIndexResolver(layerIndices[parentId],layerIndices);index=resolver(layer,isDrawn),resolvers[layerId]=resolver}else Number.isFinite(indexOverride)?(index=indexOverride+(layerIndices[parentId]||0),resolvers[layerId]=null):index=startIndex;return isDrawn&&index>=startIndex&&(startIndex=index+1),layerIndices[layerId]=index,index};return resolveLayerIndex}},"./node_modules/@deck.gl/core/dist/esm/passes/pass.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Pass}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");class Pass{constructor(gl,props={id:"pass"}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"id",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"gl",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"props",void 0);const{id:id}=props;this.id=id,this.gl=gl,this.props={...props}}setProps(props){Object.assign(this.props,props)}render(params){}cleanup(){}}},"./node_modules/@deck.gl/core/dist/esm/passes/pick-layers-pass.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return PickLayersPass}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_layers_pass__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/layers-pass.js"),_luma_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_utils_log__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js");const PICKING_PARAMETERS={blendFunc:[1,0,32771,0],blendEquation:32774};class PickLayersPass extends _layers_pass__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(...args){super(...args),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"pickZ",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"_colorEncoderState",null)}render(props){return"pickingFBO"in props?this._drawPickingBuffer(props):super.render(props)}_drawPickingBuffer({layers:layers,layerFilter:layerFilter,views:views,viewports:viewports,onViewportActive:onViewportActive,pickingFBO:pickingFBO,deviceRect:{x:x,y:y,width:width,height:height},cullRect:cullRect,effects:effects,pass:pass="picking",pickZ:pickZ,moduleParameters:moduleParameters}){const gl=this.gl;this.pickZ=pickZ;const colorEncoderState=this._resetColorEncoder(pickZ),renderStatus=(0,_luma_gl_core__WEBPACK_IMPORTED_MODULE_2__.s8)(gl,{scissorTest:!0,scissor:[x,y,width,height],clearColor:[0,0,0,0],depthMask:!0,depthTest:!0,depthRange:[0,1],colorMask:[!0,!0,!0,!0],...PICKING_PARAMETERS,blend:!pickZ},(()=>super.render({target:pickingFBO,layers:layers,layerFilter:layerFilter,views:views,viewports:viewports,onViewportActive:onViewportActive,cullRect:cullRect,effects:null==effects?void 0:effects.filter((e=>e.useInPicking)),pass:pass,isPicking:!0,moduleParameters:moduleParameters})));this._colorEncoderState=null;return{decodePickingColor:colorEncoderState&&decodeColor.bind(null,colorEncoderState),stats:renderStatus}}shouldDrawLayer(layer){const{pickable:pickable,operation:operation}=layer.props;return pickable&&operation.includes("draw")||operation.includes("terrain")||operation.includes("mask")}getModuleParameters(){return{pickingActive:1,pickingAttribute:this.pickZ,lightSources:{}}}getLayerParameters(layer,layerIndex,viewport){const pickParameters={...layer.props.parameters},{pickable:pickable,operation:operation}=layer.props;return this._colorEncoderState?pickable&&operation.includes("draw")&&(Object.assign(pickParameters,PICKING_PARAMETERS),pickParameters.blend=!0,pickParameters.blendColor=function encodeColor(encoded,layer,viewport){const{byLayer:byLayer,byAlpha:byAlpha}=encoded;let a,entry=byLayer.get(layer);entry?(entry.viewports.push(viewport),a=entry.a):(a=byLayer.size+1,a<=255?(entry={a:a,layer:layer,viewports:[viewport]},byLayer.set(layer,entry),byAlpha[a]=entry):(_utils_log__WEBPACK_IMPORTED_MODULE_3__.Z.warn("Too many pickable layers, only picking the first 255")(),a=0));return[0,0,0,a/255]}(this._colorEncoderState,layer,viewport)):pickParameters.blend=!1,operation.includes("terrain")&&(pickParameters.blend=!1),pickParameters}_resetColorEncoder(pickZ){return this._colorEncoderState=pickZ?null:{byLayer:new Map,byAlpha:[]},this._colorEncoderState}}function decodeColor(encoded,pickedColor){const entry=encoded.byAlpha[pickedColor[3]];return entry&&{pickedLayer:entry.layer,pickedViewports:entry.viewports,pickedObjectIndex:entry.layer.decodePickingColor(pickedColor)}}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _luma_gl_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/picking/picking.js");__webpack_exports__.Z={inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n // for picking depth values\n picking_setPickingAttribute(position.z / position.w);\n ","vs:DECKGL_FILTER_COLOR":"\n picking_setPickingColor(geometry.pickingColor);\n ","fs:#decl":"\nuniform bool picking_uAttribute;\n ","fs:DECKGL_FILTER_COLOR":{order:99,injection:"\n // use highlight color if this fragment belongs to the selected object.\n color = picking_filterHighlightColor(color);\n\n // use picking color if rendering to picking FBO.\n color = picking_filterPickingColor(color);\n "}},..._luma_gl_core__WEBPACK_IMPORTED_MODULE_0__.q}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project-functions.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return projectPosition},T:function(){return getWorldPosition}});var _lib_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),_viewport_uniforms__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/viewport-uniforms.js"),_viewports_web_mercator_viewport__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/web-mercator-viewport.js"),gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/vec4.js"),gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js");const DEFAULT_COORDINATE_ORIGIN=[0,0,0];function lngLatZToWorldPosition(lngLatZ,viewport,offsetMode=!1){const p=viewport.projectPosition(lngLatZ);if(offsetMode&&viewport instanceof _viewports_web_mercator_viewport__WEBPACK_IMPORTED_MODULE_1__.Z){const[longitude,latitude,z=0]=lngLatZ,distanceScales=viewport.getDistanceScales([longitude,latitude]);p[2]=z*distanceScales.unitsPerMeter[2]}return p}function getWorldPosition(position,{viewport:viewport,modelMatrix:modelMatrix,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,offsetMode:offsetMode}){let[x,y,z=0]=position;switch(modelMatrix&&([x,y,z]=gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_3__.fF([],[x,y,z,1],modelMatrix)),coordinateSystem){case _lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.LNGLAT:return lngLatZToWorldPosition([x,y,z],viewport,offsetMode);case _lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.LNGLAT_OFFSETS:return lngLatZToWorldPosition([x+coordinateOrigin[0],y+coordinateOrigin[1],z+(coordinateOrigin[2]||0)],viewport,offsetMode);case _lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.METER_OFFSETS:return lngLatZToWorldPosition((0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.eG)(coordinateOrigin,[x,y,z]),viewport,offsetMode);case _lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.CARTESIAN:default:return viewport.isGeospatial?[x+coordinateOrigin[0],y+coordinateOrigin[1],z+coordinateOrigin[2]]:viewport.projectPosition([x,y,z])}}function projectPosition(position,params){const{viewport:viewport,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,modelMatrix:modelMatrix,fromCoordinateSystem:fromCoordinateSystem,fromCoordinateOrigin:fromCoordinateOrigin}=function normalizeParameters(opts){const{viewport:viewport,modelMatrix:modelMatrix,coordinateOrigin:coordinateOrigin}=opts;let{coordinateSystem:coordinateSystem,fromCoordinateSystem:fromCoordinateSystem,fromCoordinateOrigin:fromCoordinateOrigin}=opts;return coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.DEFAULT&&(coordinateSystem=viewport.isGeospatial?_lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.LNGLAT:_lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.CARTESIAN),void 0===fromCoordinateSystem&&(fromCoordinateSystem=coordinateSystem),void 0===fromCoordinateOrigin&&(fromCoordinateOrigin=coordinateOrigin),{viewport:viewport,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,modelMatrix:modelMatrix,fromCoordinateSystem:fromCoordinateSystem,fromCoordinateOrigin:fromCoordinateOrigin}}(params),{autoOffset:autoOffset=!0}=params,{geospatialOrigin:geospatialOrigin=DEFAULT_COORDINATE_ORIGIN,shaderCoordinateOrigin:shaderCoordinateOrigin=DEFAULT_COORDINATE_ORIGIN,offsetMode:offsetMode=!1}=autoOffset?(0,_viewport_uniforms__WEBPACK_IMPORTED_MODULE_4__.v)(viewport,coordinateSystem,coordinateOrigin):{},worldPosition=getWorldPosition(position,{viewport:viewport,modelMatrix:modelMatrix,coordinateSystem:fromCoordinateSystem,coordinateOrigin:fromCoordinateOrigin,offsetMode:offsetMode});if(offsetMode){const positionCommonSpace=viewport.projectPosition(geospatialOrigin||shaderCoordinateOrigin);gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_5__.lu(worldPosition,worldPosition,positionCommonSpace)}return worldPosition}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return project}});var fp32=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/fp32/fp32.js");const defines="#define SMOOTH_EDGE_RADIUS 0.5";var geometry={name:"geometry",vs:"\n".concat(defines,"\n\nstruct VertexGeometry {\n vec4 position;\n vec3 worldPosition;\n vec3 worldPositionAlt;\n vec3 normal;\n vec2 uv;\n vec3 pickingColor;\n} geometry = VertexGeometry(\n vec4(0.0, 0.0, 1.0, 0.0),\n vec3(0.0),\n vec3(0.0),\n vec3(0.0),\n vec2(0.0),\n vec3(0.0)\n);\n"),fs:"\n".concat(defines,"\n\nstruct FragmentGeometry {\n vec2 uv;\n} geometry;\n\nfloat smoothedge(float edge, float x) {\n return smoothstep(edge - SMOOTH_EDGE_RADIUS, edge + SMOOTH_EDGE_RADIUS, x);\n}\n")},constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");const COORDINATE_SYSTEM_GLSL_CONSTANTS=Object.keys(constants.COORDINATE_SYSTEM).map((key=>"const int COORDINATE_SYSTEM_".concat(key," = ").concat(constants.COORDINATE_SYSTEM[key],";"))).join(""),PROJECTION_MODE_GLSL_CONSTANTS=Object.keys(constants.zG).map((key=>"const int PROJECTION_MODE_".concat(key," = ").concat(constants.zG[key],";"))).join(""),UNIT_GLSL_CONSTANTS=Object.keys(constants.iI).map((key=>"const int UNIT_".concat(key.toUpperCase()," = ").concat(constants.iI[key],";"))).join("");var project_glsl="".concat(COORDINATE_SYSTEM_GLSL_CONSTANTS,"\n").concat(PROJECTION_MODE_GLSL_CONSTANTS,"\n").concat(UNIT_GLSL_CONSTANTS,"\n\nuniform int project_uCoordinateSystem;\nuniform int project_uProjectionMode;\nuniform float project_uScale;\nuniform bool project_uWrapLongitude;\nuniform vec3 project_uCommonUnitsPerMeter;\nuniform vec3 project_uCommonUnitsPerWorldUnit;\nuniform vec3 project_uCommonUnitsPerWorldUnit2;\nuniform vec4 project_uCenter;\nuniform mat4 project_uModelMatrix;\nuniform mat4 project_uViewProjectionMatrix;\nuniform vec2 project_uViewportSize;\nuniform float project_uDevicePixelRatio;\nuniform float project_uFocalDistance;\nuniform vec3 project_uCameraPosition;\nuniform vec3 project_uCoordinateOrigin;\nuniform vec3 project_uCommonOrigin;\nuniform bool project_uPseudoMeters;\n\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / (PI * 2.0);\nconst vec3 ZERO_64_LOW = vec3(0.0);\nconst float EARTH_RADIUS = 6370972.0;\nconst float GLOBE_RADIUS = 256.0;\nfloat project_size_at_latitude(float lat) {\n float y = clamp(lat, -89.9, 89.9);\n return 1.0 / cos(radians(y));\n}\n\nfloat project_size() {\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR &&\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT &&\n project_uPseudoMeters == false) {\n \n if (geometry.position.w == 0.0) {\n return project_size_at_latitude(geometry.worldPosition.y);\n }\n \n float y = geometry.position.y / TILE_SIZE * 2.0 - 1.0;\n float y2 = y * y;\n float y4 = y2 * y2;\n float y6 = y4 * y2;\n return 1.0 + 4.9348 * y2 + 4.0587 * y4 + 1.5642 * y6;\n }\n return 1.0;\n}\n\nfloat project_size_at_latitude(float meters, float lat) {\n return meters * project_uCommonUnitsPerMeter.z * project_size_at_latitude(lat);\n}\nfloat project_size(float meters) {\n return meters * project_uCommonUnitsPerMeter.z * project_size();\n}\n\nvec2 project_size(vec2 meters) {\n return meters * project_uCommonUnitsPerMeter.xy * project_size();\n}\n\nvec3 project_size(vec3 meters) {\n return meters * project_uCommonUnitsPerMeter * project_size();\n}\n\nvec4 project_size(vec4 meters) {\n return vec4(meters.xyz * project_uCommonUnitsPerMeter, meters.w);\n}\nmat3 project_get_orientation_matrix(vec3 up) {\n vec3 uz = normalize(up);\n vec3 ux = abs(uz.z) == 1.0 ? vec3(1.0, 0.0, 0.0) : normalize(vec3(uz.y, -uz.x, 0));\n vec3 uy = cross(uz, ux);\n return mat3(ux, uy, uz);\n}\n\nbool project_needs_rotation(vec3 commonPosition, out mat3 transform) {\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n transform = project_get_orientation_matrix(commonPosition);\n return true;\n }\n return false;\n}\nvec3 project_normal(vec3 vector) {\n vec4 normal_modelspace = project_uModelMatrix * vec4(vector, 0.0);\n vec3 n = normalize(normal_modelspace.xyz * project_uCommonUnitsPerMeter);\n mat3 rotation;\n if (project_needs_rotation(geometry.position.xyz, rotation)) {\n n = rotation * n;\n }\n return n;\n}\n\nvec4 project_offset_(vec4 offset) {\n float dy = offset.y;\n vec3 commonUnitsPerWorldUnit = project_uCommonUnitsPerWorldUnit + project_uCommonUnitsPerWorldUnit2 * dy;\n return vec4(offset.xyz * commonUnitsPerWorldUnit, offset.w);\n}\nvec2 project_mercator_(vec2 lnglat) {\n float x = lnglat.x;\n if (project_uWrapLongitude) {\n x = mod(x + 180., 360.0) - 180.;\n }\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan_fp32(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\nvec3 project_globe_(vec3 lnglatz) {\n float lambda = radians(lnglatz.x);\n float phi = radians(lnglatz.y);\n float cosPhi = cos(phi);\n float D = (lnglatz.z / EARTH_RADIUS + 1.0) * GLOBE_RADIUS;\n\n return vec3(\n sin(lambda) * cosPhi,\n -cos(lambda) * cosPhi,\n sin(phi)\n ) * D;\n}\nvec4 project_position(vec4 position, vec3 position64Low) {\n vec4 position_world = project_uModelMatrix * position;\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_mercator_(position_world.xy),\n project_size_at_latitude(position_world.z, position_world.y),\n position_world.w\n );\n }\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN) {\n position_world.xyz += project_uCoordinateOrigin;\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_globe_(position_world.xyz),\n position_world.w\n );\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n if (abs(position_world.y - project_uCoordinateOrigin.y) > 0.25) {\n return vec4(\n project_mercator_(position_world.xy) - project_uCommonOrigin.xy,\n project_size(position_world.z),\n position_world.w\n );\n }\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_IDENTITY ||\n (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET &&\n (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN))) {\n position_world.xyz -= project_uCoordinateOrigin;\n }\n return project_offset_(position_world) + project_offset_(project_uModelMatrix * vec4(position64Low, 0.0));\n}\n\nvec4 project_position(vec4 position) {\n return project_position(position, ZERO_64_LOW);\n}\n\nvec3 project_position(vec3 position, vec3 position64Low) {\n vec4 projected_position = project_position(vec4(position, 1.0), position64Low);\n return projected_position.xyz;\n}\n\nvec3 project_position(vec3 position) {\n vec4 projected_position = project_position(vec4(position, 1.0), ZERO_64_LOW);\n return projected_position.xyz;\n}\n\nvec2 project_position(vec2 position) {\n vec4 projected_position = project_position(vec4(position, 0.0, 1.0), ZERO_64_LOW);\n return projected_position.xy;\n}\n\nvec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) {\n return viewProjectionMatrix * position + center;\n}\nvec4 project_common_position_to_clipspace(vec4 position) {\n return project_common_position_to_clipspace(position, project_uViewProjectionMatrix, project_uCenter);\n}\nvec2 project_pixel_size_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / project_uViewportSize * project_uDevicePixelRatio * 2.0;\n return offset * project_uFocalDistance;\n}\n\nfloat project_size_to_pixel(float meters) {\n return project_size(meters) * project_uScale;\n}\nfloat project_size_to_pixel(float size, int unit) {\n if (unit == UNIT_METERS) return project_size_to_pixel(size);\n if (unit == UNIT_COMMON) return size * project_uScale;\n return size;\n}\nfloat project_pixel_size(float pixels) {\n return pixels / project_uScale;\n}\nvec2 project_pixel_size(vec2 pixels) {\n return pixels / project_uScale;\n}\n"),viewport_uniforms=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/viewport-uniforms.js");const INITIAL_MODULE_OPTIONS={};var project={name:"project",dependencies:[fp32.O,geometry],vs:project_glsl,getUniforms:function getUniforms(opts=INITIAL_MODULE_OPTIONS){return"viewport"in opts?(0,viewport_uniforms.C)(opts):{}}}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/project/viewport-uniforms.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return getUniformsFromViewport},v:function(){return getOffsetOrigin}});var gl_matrix_mat4__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/mat4.js"),gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/gl-matrix/esm/vec4.js"),_lib_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),_utils_memoize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/memoize.js");const ZERO_VECTOR=[0,0,0,0],VECTOR_TO_POINT_MATRIX=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],IDENTITY_MATRIX=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],DEFAULT_PIXELS_PER_UNIT2=[0,0,0],DEFAULT_COORDINATE_ORIGIN=[0,0,0],getMemoizedViewportUniforms=(0,_utils_memoize__WEBPACK_IMPORTED_MODULE_0__.Z)((function calculateViewportUniforms({viewport:viewport,devicePixelRatio:devicePixelRatio,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin}){const{projectionCenter:projectionCenter,viewProjectionMatrix:viewProjectionMatrix,originCommon:originCommon,cameraPosCommon:cameraPosCommon,shaderCoordinateOrigin:shaderCoordinateOrigin,geospatialOrigin:geospatialOrigin}=function calculateMatrixAndOffset(viewport,coordinateSystem,coordinateOrigin){const{viewMatrixUncentered:viewMatrixUncentered,projectionMatrix:projectionMatrix}=viewport;let{viewMatrix:viewMatrix,viewProjectionMatrix:viewProjectionMatrix}=viewport,projectionCenter=ZERO_VECTOR,originCommon=ZERO_VECTOR,cameraPosCommon=viewport.cameraPosition;const{geospatialOrigin:geospatialOrigin,shaderCoordinateOrigin:shaderCoordinateOrigin,offsetMode:offsetMode}=getOffsetOrigin(viewport,coordinateSystem,coordinateOrigin);offsetMode&&(originCommon=viewport.projectPosition(geospatialOrigin||shaderCoordinateOrigin),cameraPosCommon=[cameraPosCommon[0]-originCommon[0],cameraPosCommon[1]-originCommon[1],cameraPosCommon[2]-originCommon[2]],originCommon[3]=1,projectionCenter=gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_2__.fF([],originCommon,viewProjectionMatrix),viewMatrix=viewMatrixUncentered||viewMatrix,viewProjectionMatrix=gl_matrix_mat4__WEBPACK_IMPORTED_MODULE_3__.Jp([],projectionMatrix,viewMatrix),viewProjectionMatrix=gl_matrix_mat4__WEBPACK_IMPORTED_MODULE_3__.Jp([],viewProjectionMatrix,VECTOR_TO_POINT_MATRIX));return{viewMatrix:viewMatrix,viewProjectionMatrix:viewProjectionMatrix,projectionCenter:projectionCenter,originCommon:originCommon,cameraPosCommon:cameraPosCommon,shaderCoordinateOrigin:shaderCoordinateOrigin,geospatialOrigin:geospatialOrigin}}(viewport,coordinateSystem,coordinateOrigin),distanceScales=viewport.getDistanceScales(),viewportSize=[viewport.width*devicePixelRatio,viewport.height*devicePixelRatio],focalDistance=gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_2__.fF([],[0,0,-viewport.focalDistance,1],viewport.projectionMatrix)[3]||1,uniforms={project_uCoordinateSystem:coordinateSystem,project_uProjectionMode:viewport.projectionMode,project_uCoordinateOrigin:shaderCoordinateOrigin,project_uCommonOrigin:originCommon.slice(0,3),project_uCenter:projectionCenter,project_uPseudoMeters:Boolean(viewport._pseudoMeters),project_uViewportSize:viewportSize,project_uDevicePixelRatio:devicePixelRatio,project_uFocalDistance:focalDistance,project_uCommonUnitsPerMeter:distanceScales.unitsPerMeter,project_uCommonUnitsPerWorldUnit:distanceScales.unitsPerMeter,project_uCommonUnitsPerWorldUnit2:DEFAULT_PIXELS_PER_UNIT2,project_uScale:viewport.scale,project_uWrapLongitude:!1,project_uViewProjectionMatrix:viewProjectionMatrix,project_uModelMatrix:IDENTITY_MATRIX,project_uCameraPosition:cameraPosCommon};if(geospatialOrigin){const distanceScalesAtOrigin=viewport.getDistanceScales(geospatialOrigin);switch(coordinateSystem){case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.METER_OFFSETS:uniforms.project_uCommonUnitsPerWorldUnit=distanceScalesAtOrigin.unitsPerMeter,uniforms.project_uCommonUnitsPerWorldUnit2=distanceScalesAtOrigin.unitsPerMeter2;break;case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT:case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT_OFFSETS:viewport._pseudoMeters||(uniforms.project_uCommonUnitsPerMeter=distanceScalesAtOrigin.unitsPerMeter),uniforms.project_uCommonUnitsPerWorldUnit=distanceScalesAtOrigin.unitsPerDegree,uniforms.project_uCommonUnitsPerWorldUnit2=distanceScalesAtOrigin.unitsPerDegree2;break;case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.CARTESIAN:uniforms.project_uCommonUnitsPerWorldUnit=[1,1,distanceScalesAtOrigin.unitsPerMeter[2]],uniforms.project_uCommonUnitsPerWorldUnit2=[0,0,distanceScalesAtOrigin.unitsPerMeter2[2]]}}return uniforms}));function getOffsetOrigin(viewport,coordinateSystem,coordinateOrigin=DEFAULT_COORDINATE_ORIGIN){coordinateOrigin.length<3&&(coordinateOrigin=[coordinateOrigin[0],coordinateOrigin[1],0]);let geospatialOrigin,shaderCoordinateOrigin=coordinateOrigin,offsetMode=!0;switch(geospatialOrigin=coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT_OFFSETS||coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.METER_OFFSETS?coordinateOrigin:viewport.isGeospatial?[Math.fround(viewport.longitude),Math.fround(viewport.latitude),0]:null,viewport.projectionMode){case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.zG.WEB_MERCATOR:coordinateSystem!==_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT&&coordinateSystem!==_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.CARTESIAN||(geospatialOrigin=[0,0,0],offsetMode=!1);break;case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.zG.WEB_MERCATOR_AUTO_OFFSET:coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT?shaderCoordinateOrigin=geospatialOrigin:coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.CARTESIAN&&(shaderCoordinateOrigin=[Math.fround(viewport.center[0]),Math.fround(viewport.center[1]),0],geospatialOrigin=viewport.unprojectPosition(shaderCoordinateOrigin),shaderCoordinateOrigin[0]-=coordinateOrigin[0],shaderCoordinateOrigin[1]-=coordinateOrigin[1],shaderCoordinateOrigin[2]-=coordinateOrigin[2]);break;case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.zG.IDENTITY:shaderCoordinateOrigin=viewport.position.map(Math.fround),shaderCoordinateOrigin[2]=shaderCoordinateOrigin[2]||0;break;case _lib_constants__WEBPACK_IMPORTED_MODULE_1__.zG.GLOBE:offsetMode=!1,geospatialOrigin=null;break;default:offsetMode=!1}return{geospatialOrigin:geospatialOrigin,shaderCoordinateOrigin:shaderCoordinateOrigin,offsetMode:offsetMode}}function getUniformsFromViewport({viewport:viewport,devicePixelRatio:devicePixelRatio=1,modelMatrix:modelMatrix=null,coordinateSystem:coordinateSystem=_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.DEFAULT,coordinateOrigin:coordinateOrigin=DEFAULT_COORDINATE_ORIGIN,autoWrapLongitude:autoWrapLongitude=!1}){coordinateSystem===_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.DEFAULT&&(coordinateSystem=viewport.isGeospatial?_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.LNGLAT:_lib_constants__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.CARTESIAN);const uniforms=getMemoizedViewportUniforms({viewport:viewport,devicePixelRatio:devicePixelRatio,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin});return uniforms.project_uWrapLongitude=autoWrapLongitude,uniforms.project_uModelMatrix=modelMatrix||IDENTITY_MATRIX,uniforms}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _project_project__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js");__webpack_exports__.Z={name:"project32",dependencies:[_project_project__WEBPACK_IMPORTED_MODULE_0__.Z],vs:"\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64Low, vec3 offset, out vec4 commonPosition\n) {\n vec3 projectedPosition = project_position(position, position64Low);\n mat3 rotation;\n if (project_needs_rotation(projectedPosition, rotation)) {\n // offset is specified as ENU\n // when in globe projection, rotate offset so that the ground alighs with the surface of the globe\n offset = rotation * offset;\n }\n commonPosition = vec4(projectedPosition + offset, 1.0);\n return project_common_position_to_clipspace(commonPosition);\n}\n\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64Low, vec3 offset\n) {\n vec4 commonPosition;\n return project_position_to_clipspace(position, position64Low, offset, commonPosition);\n}\n"}},"./node_modules/@deck.gl/core/dist/esm/shaderlib/shadow/shadow.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _lib_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),_project_project__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),_utils_memoize__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/memoize.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js");const getMemoizedViewportCenterPosition=(0,_utils_memoize__WEBPACK_IMPORTED_MODULE_1__.Z)((function getViewportCenterPosition({viewport:viewport,center:center}){return new _math_gl_core__WEBPACK_IMPORTED_MODULE_2__.Z(viewport.viewProjectionMatrix).invert().transform(center)})),getMemoizedViewProjectionMatrices=(0,_utils_memoize__WEBPACK_IMPORTED_MODULE_1__.Z)((function getViewProjectionMatrices({viewport:viewport,shadowMatrices:shadowMatrices}){const projectionMatrices=[],pixelUnprojectionMatrix=viewport.pixelUnprojectionMatrix,farZ=viewport.isGeospatial?void 0:1,corners=[[0,0,farZ],[viewport.width,0,farZ],[0,viewport.height,farZ],[viewport.width,viewport.height,farZ],[0,0,-1],[viewport.width,0,-1],[0,viewport.height,-1],[viewport.width,viewport.height,-1]].map((pixel=>function screenToCommonSpace(xyz,pixelUnprojectionMatrix){const[x,y,z]=xyz,coord=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.CT)([x,y,z],pixelUnprojectionMatrix);if(Number.isFinite(z))return coord;return[coord[0],coord[1],0]}(pixel,pixelUnprojectionMatrix)));for(const shadowMatrix of shadowMatrices){const viewMatrix=shadowMatrix.clone().translate(new _math_gl_core__WEBPACK_IMPORTED_MODULE_3__.Z(viewport.center).negate()),positions=corners.map((corner=>viewMatrix.transform(corner))),projectionMatrix=(new _math_gl_core__WEBPACK_IMPORTED_MODULE_2__.Z).ortho({left:Math.min(...positions.map((position=>position[0]))),right:Math.max(...positions.map((position=>position[0]))),bottom:Math.min(...positions.map((position=>position[1]))),top:Math.max(...positions.map((position=>position[1]))),near:Math.min(...positions.map((position=>-position[2]))),far:Math.max(...positions.map((position=>-position[2])))});projectionMatrices.push(projectionMatrix.multiplyRight(shadowMatrix))}return projectionMatrices})),DEFAULT_SHADOW_COLOR=[0,0,0,1],VECTOR_TO_POINT_MATRIX=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0];__webpack_exports__.Z={name:"shadow",dependencies:[_project_project__WEBPACK_IMPORTED_MODULE_5__.Z],vs:"\nconst int max_lights = 2;\nuniform mat4 shadow_uViewProjectionMatrices[max_lights];\nuniform vec4 shadow_uProjectCenters[max_lights];\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform int shadow_uLightId;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nvec4 shadow_setVertexPosition(vec4 position_commonspace) {\n if (shadow_uDrawShadowMap) {\n return project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[shadow_uLightId], shadow_uProjectCenters[shadow_uLightId]);\n }\n if (shadow_uUseShadowMap) {\n for (int i = 0; i < max_lights; i++) {\n if(i < int(shadow_uLightCount)) {\n vec4 shadowMap_position = project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[i], shadow_uProjectCenters[i]);\n shadow_vPosition[i] = (shadowMap_position.xyz / shadowMap_position.w + 1.0) / 2.0;\n }\n }\n }\n return gl_Position;\n}\n",fs:"\nconst int max_lights = 2;\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform sampler2D shadow_uShadowMap0;\nuniform sampler2D shadow_uShadowMap1;\nuniform vec4 shadow_uColor;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nconst vec4 bitPackShift = vec4(1.0, 255.0, 65025.0, 16581375.0);\nconst vec4 bitUnpackShift = 1.0 / bitPackShift;\nconst vec4 bitMask = vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n\nfloat shadow_getShadowWeight(vec3 position, sampler2D shadowMap) {\n vec4 rgbaDepth = texture2D(shadowMap, position.xy);\n\n float z = dot(rgbaDepth, bitUnpackShift);\n return smoothstep(0.001, 0.01, position.z - z);\n}\n\nvec4 shadow_filterShadowColor(vec4 color) {\n if (shadow_uDrawShadowMap) {\n vec4 rgbaDepth = fract(gl_FragCoord.z * bitPackShift);\n rgbaDepth -= rgbaDepth.gbaa * bitMask;\n return rgbaDepth;\n }\n if (shadow_uUseShadowMap) {\n float shadowAlpha = 0.0;\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[0], shadow_uShadowMap0);\n if(shadow_uLightCount > 1.0) {\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[1], shadow_uShadowMap1);\n }\n shadowAlpha *= shadow_uColor.a / shadow_uLightCount;\n float blendedAlpha = shadowAlpha + color.a * (1.0 - shadowAlpha);\n\n return vec4(\n mix(color.rgb, shadow_uColor.rgb, shadowAlpha / blendedAlpha),\n blendedAlpha\n );\n }\n return color;\n}\n",inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n position = shadow_setVertexPosition(geometry.position);\n ","fs:DECKGL_FILTER_COLOR":"\n color = shadow_filterShadowColor(color);\n "},getUniforms:(opts={},context={})=>"viewport"in opts&&(opts.drawToShadowMap||opts.shadowMaps&&opts.shadowMaps.length>0)?function createShadowUniforms(opts,context){const{shadowEnabled:shadowEnabled=!0}=opts;if(!shadowEnabled||!opts.shadowMatrices||!opts.shadowMatrices.length)return{shadow_uDrawShadowMap:!1,shadow_uUseShadowMap:!1};const uniforms={shadow_uDrawShadowMap:Boolean(opts.drawToShadowMap),shadow_uUseShadowMap:!!opts.shadowMaps&&opts.shadowMaps.length>0,shadow_uColor:opts.shadowColor||DEFAULT_SHADOW_COLOR,shadow_uLightId:opts.shadowLightId||0,shadow_uLightCount:opts.shadowMatrices.length},center=getMemoizedViewportCenterPosition({viewport:opts.viewport,center:context.project_uCenter}),projectCenters=[],viewProjectionMatrices=getMemoizedViewProjectionMatrices({shadowMatrices:opts.shadowMatrices,viewport:opts.viewport}).slice();for(let i=0;i0?uniforms["shadow_uShadowMap".concat(i)]=opts.shadowMaps[i]:uniforms["shadow_uShadowMap".concat(i)]=opts.dummyShadowMap;return uniforms}(opts,context):{}}},"./node_modules/@deck.gl/core/dist/esm/transitions/linear-interpolator.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return LinearInterpolator}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_transition_interpolator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/transition-interpolator.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js");const DEFAULT_PROPS=["longitude","latitude","zoom","bearing","pitch"],DEFAULT_REQUIRED_PROPS=["longitude","latitude","zoom"];class LinearInterpolator extends _transition_interpolator__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(opts={}){const transitionProps=Array.isArray(opts)?opts:opts.transitionProps,normalizedOpts=Array.isArray(opts)?{}:opts;normalizedOpts.transitionProps=Array.isArray(transitionProps)?{compare:transitionProps,required:transitionProps}:transitionProps||{compare:DEFAULT_PROPS,required:DEFAULT_REQUIRED_PROPS},super(normalizedOpts.transitionProps),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(this,"opts",void 0),this.opts=normalizedOpts}initializeProps(startProps,endProps){const result=super.initializeProps(startProps,endProps),{makeViewport:makeViewport,around:around}=this.opts;if(makeViewport&&around){const startViewport=makeViewport(startProps),endViewport=makeViewport(endProps),aroundPosition=startViewport.unproject(around);result.start.around=around,Object.assign(result.end,{around:endViewport.project(aroundPosition),aroundPosition:aroundPosition,width:endProps.width,height:endProps.height})}return result}interpolateProps(startProps,endProps,t){const propsInTransition={};for(const key of this._propsToExtract)propsInTransition[key]=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.t7)(startProps[key]||0,endProps[key]||0,t);if(endProps.aroundPosition&&this.opts.makeViewport){const viewport=this.opts.makeViewport({...endProps,...propsInTransition});Object.assign(propsInTransition,viewport.panByPosition(endProps.aroundPosition,(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.t7)(startProps.around,endProps.around,t)))}return propsInTransition}}},"./node_modules/@deck.gl/core/dist/esm/transitions/transition-interpolator.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TransitionInterpolator}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js");class TransitionInterpolator{constructor(opts){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_propsToCompare",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_propsToExtract",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_requiredProps",void 0);const{compare:compare,extract:extract,required:required}=opts;this._propsToCompare=compare,this._propsToExtract=extract||compare,this._requiredProps=required}arePropsEqual(currentProps,nextProps){for(const key of this._propsToCompare)if(!(key in currentProps)||!(key in nextProps)||!(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_1__.fS)(currentProps[key],nextProps[key]))return!1;return!0}initializeProps(startProps,endProps){const startViewStateProps={},endViewStateProps={};for(const key of this._propsToExtract)(key in startProps||key in endProps)&&(startViewStateProps[key]=startProps[key],endViewStateProps[key]=endProps[key]);return this._checkRequiredProps(startViewStateProps),this._checkRequiredProps(endViewStateProps),{start:startViewStateProps,end:endViewStateProps}}getDuration(startProps,endProps){return endProps.transitionDuration}_checkRequiredProps(props){this._requiredProps&&this._requiredProps.forEach((propName=>{const value=props[propName];(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(Number.isFinite(value)||Array.isArray(value),"".concat(propName," is required for transition"))}))}}},"./node_modules/@deck.gl/core/dist/esm/transitions/transition.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Transition}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");class Transition{constructor(timeline){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_inProgress",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_handle",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_timeline",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"time",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"settings",void 0),this._inProgress=!1,this._handle=null,this._timeline=timeline,this.time=0,this.settings={duration:0}}get inProgress(){return this._inProgress}start(settings){var _this$settings$onStar,_this$settings;this.cancel(),this.settings=settings,this._inProgress=!0,null===(_this$settings$onStar=(_this$settings=this.settings).onStart)||void 0===_this$settings$onStar||_this$settings$onStar.call(_this$settings,this)}end(){var _this$settings$onEnd,_this$settings2;this._inProgress&&(this._timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1,null===(_this$settings$onEnd=(_this$settings2=this.settings).onEnd)||void 0===_this$settings$onEnd||_this$settings$onEnd.call(_this$settings2,this))}cancel(){var _this$settings$onInte,_this$settings3;this._inProgress&&(null===(_this$settings$onInte=(_this$settings3=this.settings).onInterrupt)||void 0===_this$settings$onInte||_this$settings$onInte.call(_this$settings3,this),this._timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1)}update(){var _this$settings$onUpda,_this$settings4;if(!this._inProgress)return!1;if(null===this._handle){const{_timeline:timeline,settings:settings}=this;this._handle=timeline.addChannel({delay:timeline.getTime(),duration:settings.duration})}return this.time=this._timeline.getTime(this._handle),this._onUpdate(),null===(_this$settings$onUpda=(_this$settings4=this.settings).onUpdate)||void 0===_this$settings$onUpda||_this$settings$onUpda.call(_this$settings4,this),this._timeline.isFinished(this._handle)&&this.end(),!0}_onUpdate(){}}},"./node_modules/@deck.gl/core/dist/esm/utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"deck.gl: assertion failed.")}__webpack_require__.d(__webpack_exports__,{Z:function(){return assert}})},"./node_modules/@deck.gl/core/dist/esm/utils/count.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return count}});const ERR_NOT_OBJECT="count(): argument not an object",ERR_NOT_CONTAINER="count(): argument not a container";function count(container){if(!function isObject(value){return null!==value&&"object"==typeof value}(container))throw new Error(ERR_NOT_OBJECT);if("function"==typeof container.count)return container.count();if(Number.isFinite(container.size))return container.size;if(Number.isFinite(container.length))return container.length;if(function isPlainObject(value){return null!==value&&"object"==typeof value&&value.constructor===Object}(container))return Object.keys(container).length;throw new Error(ERR_NOT_CONTAINER)}},"./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function deepEqual(a,b,depth){if(a===b)return!0;if(!depth||!a||!b)return!1;if(Array.isArray(a)){if(!Array.isArray(b)||a.length!==b.length)return!1;for(let i=0;i!0)){return Array.isArray(array)?flattenArray(array,filter,[]):filter(array)?[array]:[]}function flattenArray(array,filter,result){let index=-1;for(;++index0&&(placeholderArray.length=data.length,iterable=placeholderArray):iterable=EMPTY_ARRAY,(startRow>0||Number.isFinite(endRow))&&(iterable=(Array.isArray(iterable)?iterable:Array.from(iterable)).slice(startRow,endRow),objectInfo.index=startRow-1),{iterable:iterable,objectInfo:objectInfo}}function isAsyncIterable(data){return data&&data[Symbol.asyncIterator]}function getAccessorFromBuffer(typedArray,options){const{size:size,stride:stride,offset:offset,startIndices:startIndices,nested:nested}=options,bytesPerElement=typedArray.BYTES_PER_ELEMENT,elementStride=stride?stride/bytesPerElement:size,elementOffset=offset?offset/bytesPerElement:0,vertexCount=Math.floor((typedArray.length-elementOffset)/elementStride);return(_,{index:index,target:target})=>{if(!startIndices){const sourceIndex=index*elementStride+elementOffset;for(let j=0;j{for(const key in args)if(!isEqual(args[key],cachedArgs[key])){cachedResult=compute(args),cachedArgs=args;break}return cachedResult}}__webpack_require__.d(__webpack_exports__,{Z:function(){return memoize}})},"./node_modules/@deck.gl/core/dist/esm/utils/shader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function mergeShaders(target,source){if(!source)return target;const result={...target,...source};if("defines"in source&&(result.defines={...target.defines,...source.defines}),"modules"in source&&(result.modules=(target.modules||[]).concat(source.modules),source.modules.some((module=>"project64"===module.name)))){const index=result.modules.findIndex((module=>"project32"===module.name));index>=0&&result.modules.splice(index,1)}if("inject"in source)if(target.inject){const mergedInjection={...target.inject};for(const key in source.inject)mergedInjection[key]=(mergedInjection[key]||"")+source.inject[key];result.inject=mergedInjection}else result.inject=source.inject;return result}__webpack_require__.d(__webpack_exports__,{l:function(){return mergeShaders}})},"./node_modules/@deck.gl/core/dist/esm/utils/typed-array-manager.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");__webpack_exports__.Z=new class TypedArrayManager{constructor(options={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_pool",[]),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"opts",{overAlloc:2,poolSize:100}),this.setOptions(options)}setOptions(options){Object.assign(this.opts,options)}allocate(typedArray,count,{size:size=1,type:type,padding:padding=0,copy:copy=!1,initialize:initialize=!1,maxCount:maxCount}){const Type=type||typedArray&&typedArray.constructor||Float32Array,newSize=count*size+padding;if(ArrayBuffer.isView(typedArray)){if(newSize<=typedArray.length)return typedArray;if(newSize*typedArray.BYTES_PER_ELEMENT<=typedArray.buffer.byteLength)return new Type(typedArray.buffer,0,newSize)}let maxSize=1/0;maxCount&&(maxSize=maxCount*size+padding);const newArray=this._allocate(Type,newSize,initialize,maxSize);return typedArray&©?newArray.set(typedArray):initialize||newArray.fill(0,0,4),this._release(typedArray),newArray}release(typedArray){this._release(typedArray)}_allocate(Type,size,initialize,maxSize){let sizeToAllocate=Math.max(Math.ceil(size*this.opts.overAlloc),1);sizeToAllocate>maxSize&&(sizeToAllocate=maxSize);const pool=this._pool,byteLength=Type.BYTES_PER_ELEMENT*sizeToAllocate,i=pool.findIndex((b=>b.byteLength>=byteLength));if(i>=0){const array=new Type(pool.splice(i,1)[0],0,sizeToAllocate);return initialize&&array.fill(0),array}return new Type(sizeToAllocate)}_release(typedArray){if(!ArrayBuffer.isView(typedArray))return;const pool=this._pool,{buffer:buffer}=typedArray,{byteLength:byteLength}=buffer,i=pool.findIndex((b=>b.byteLength>=byteLength));i<0?pool.push(buffer):(i>0||pool.lengththis.opts.poolSize&&pool.shift()}}},"./node_modules/@deck.gl/core/dist/esm/viewports/orthographic-viewport.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return OrthographicViewport}});var _viewports_viewport__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js"),gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/gl-matrix/esm/vec2.js");const viewMatrix=(new _math_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z).lookAt({eye:[0,0,1]});function getProjectionMatrix({width:width,height:height,near:near,far:far,padding:padding}){let left=-width/2,right=width/2,bottom=-height/2,top=height/2;if(padding){const{left:l=0,right:r=0,top:t=0,bottom:b=0}=padding,offsetX=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)((l+width-r)/2,0,width)-width/2,offsetY=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_2__.uZ)((t+height-b)/2,0,height)-height/2;left-=offsetX,right-=offsetX,bottom+=offsetY,top+=offsetY}return(new _math_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z).ortho({left:left,right:right,bottom:bottom,top:top,near:near,far:far})}class OrthographicViewport extends _viewports_viewport__WEBPACK_IMPORTED_MODULE_3__.Z{constructor(props){const{width:width,height:height,near:near=.1,far:far=1e3,zoom:zoom=0,target:target=[0,0,0],padding:padding=null,flipY:flipY=!0}=props,zoomX=Array.isArray(zoom)?zoom[0]:zoom,zoomY=Array.isArray(zoom)?zoom[1]:zoom,zoom_=Math.min(zoomX,zoomY),scale=Math.pow(2,zoom_);let distanceScales;if(zoomX!==zoomY){const scaleX=Math.pow(2,zoomX),scaleY=Math.pow(2,zoomY);distanceScales={unitsPerMeter:[scaleX/scale,scaleY/scale,1],metersPerUnit:[scale/scaleX,scale/scaleY,1]}}super({...props,longitude:void 0,position:target,viewMatrix:viewMatrix.clone().scale([scale,scale*(flipY?-1:1),scale]),projectionMatrix:getProjectionMatrix({width:width||1,height:height||1,padding:padding,near:near,far:far}),zoom:zoom_,distanceScales:distanceScales})}projectFlat([X,Y]){const{unitsPerMeter:unitsPerMeter}=this.distanceScales;return[X*unitsPerMeter[0],Y*unitsPerMeter[1]]}unprojectFlat([x,y]){const{metersPerUnit:metersPerUnit}=this.distanceScales;return[x*metersPerUnit[0],y*metersPerUnit[1]]}panByPosition(coords,pixel){const fromLocation=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.CT)(pixel,this.pixelUnprojectionMatrix),toLocation=this.projectFlat(coords),translate=gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_4__.IH([],toLocation,gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_4__.tk([],fromLocation)),newCenter=gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_4__.IH([],this.center,translate);return{target:this.unprojectFlat(newCenter)}}}},"./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Viewport}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_utils_log__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),_utils_math_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/math-utils.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),gl_matrix_mat4__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/gl-matrix/esm/mat4.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js"),_lib_constants__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");const DEGREES_TO_RADIANS=Math.PI/180,IDENTITY=(0,_utils_math_utils__WEBPACK_IMPORTED_MODULE_1__.bS)(),ZERO_VECTOR=[0,0,0],DEFAULT_DISTANCE_SCALES={unitsPerMeter:[1,1,1],metersPerUnit:[1,1,1]};class Viewport{constructor(opts={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"id",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"x",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"y",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"width",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"height",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"padding",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"isGeospatial",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"zoom",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"focalDistance",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"position",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"modelMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"distanceScales",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"scale",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"center",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"cameraPosition",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"projectionMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"viewMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"viewMatrixUncentered",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"viewMatrixInverse",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"viewProjectionMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"pixelProjectionMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"pixelUnprojectionMatrix",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"resolution",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__.Z)(this,"_frustumPlanes",{}),this.id=opts.id||this.constructor.displayName||"viewport",this.x=opts.x||0,this.y=opts.y||0,this.width=opts.width||1,this.height=opts.height||1,this.zoom=opts.zoom||0,this.padding=opts.padding,this.distanceScales=opts.distanceScales||DEFAULT_DISTANCE_SCALES,this.focalDistance=opts.focalDistance||1,this.position=opts.position||ZERO_VECTOR,this.modelMatrix=opts.modelMatrix||null;const{longitude:longitude,latitude:latitude}=opts;this.isGeospatial=Number.isFinite(latitude)&&Number.isFinite(longitude),this._initProps(opts),this._initMatrices(opts),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}get subViewports(){return null}get metersPerPixel(){return this.distanceScales.metersPerUnit[2]/this.scale}get projectionMode(){return this.isGeospatial?this.zoom<12?_lib_constants__WEBPACK_IMPORTED_MODULE_5__.zG.WEB_MERCATOR:_lib_constants__WEBPACK_IMPORTED_MODULE_5__.zG.WEB_MERCATOR_AUTO_OFFSET:_lib_constants__WEBPACK_IMPORTED_MODULE_5__.zG.IDENTITY}equals(viewport){return viewport instanceof Viewport&&(this===viewport||viewport.width===this.width&&viewport.height===this.height&&viewport.scale===this.scale&&(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_3__.fS)(viewport.projectionMatrix,this.projectionMatrix)&&(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_3__.fS)(viewport.viewMatrix,this.viewMatrix))}project(xyz,{topLeft:topLeft=!0}={}){const worldPosition=this.projectPosition(xyz),coord=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.aW)(worldPosition,this.pixelProjectionMatrix),[x,y]=coord,y2=topLeft?y:this.height-y;return 2===xyz.length?[x,y2]:[x,y2,coord[2]]}unproject(xyz,{topLeft:topLeft=!0,targetZ:targetZ}={}){const[x,y,z]=xyz,y2=topLeft?y:this.height-y,targetZWorld=targetZ&&targetZ*this.distanceScales.unitsPerMeter[2],coord=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.CT)([x,y2,z],this.pixelUnprojectionMatrix,targetZWorld),[X,Y,Z]=this.unprojectPosition(coord);return Number.isFinite(z)?[X,Y,Z]:Number.isFinite(targetZ)?[X,Y,targetZ]:[X,Y]}projectPosition(xyz){const[X,Y]=this.projectFlat(xyz);return[X,Y,(xyz[2]||0)*this.distanceScales.unitsPerMeter[2]]}unprojectPosition(xyz){const[X,Y]=this.unprojectFlat(xyz);return[X,Y,(xyz[2]||0)*this.distanceScales.metersPerUnit[2]]}projectFlat(xyz){if(this.isGeospatial){const result=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.w5)(xyz);return result[1]=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_3__.uZ)(result[1],-318,830),result}return xyz}unprojectFlat(xyz){return this.isGeospatial?(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.es)(xyz):xyz}getBounds(options={}){const unprojectOption={targetZ:options.z||0},topLeft=this.unproject([0,0],unprojectOption),topRight=this.unproject([this.width,0],unprojectOption),bottomLeft=this.unproject([0,this.height],unprojectOption),bottomRight=this.unproject([this.width,this.height],unprojectOption);return[Math.min(topLeft[0],topRight[0],bottomLeft[0],bottomRight[0]),Math.min(topLeft[1],topRight[1],bottomLeft[1],bottomRight[1]),Math.max(topLeft[0],topRight[0],bottomLeft[0],bottomRight[0]),Math.max(topLeft[1],topRight[1],bottomLeft[1],bottomRight[1])]}getDistanceScales(coordinateOrigin){return coordinateOrigin?(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.ro)({longitude:coordinateOrigin[0],latitude:coordinateOrigin[1],highPrecision:!0}):this.distanceScales}containsPixel({x:x,y:y,width:width=1,height:height=1}){return x=3){const relative="%"===match[2],position=parseFloat(match[1]);return{position:relative?position/100:position,relative:relative}}default:throw new Error("Could not parse position string ".concat(value))}}function getPosition(position,extent){return position.relative?Math.round(position.position*extent):position.position}var deep_equal=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js"),assert=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js");class View{constructor(props){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"viewportInstance",void 0),(0,defineProperty.Z)(this,"_x",void 0),(0,defineProperty.Z)(this,"_y",void 0),(0,defineProperty.Z)(this,"_width",void 0),(0,defineProperty.Z)(this,"_height",void 0),(0,defineProperty.Z)(this,"_padding",void 0),(0,defineProperty.Z)(this,"props",void 0);const{id:id,x:x=0,y:y=0,width:width="100%",height:height="100%",padding:padding=null,viewportInstance:viewportInstance}=props||{};(0,assert.Z)(!viewportInstance||viewportInstance instanceof viewport.Z),this.viewportInstance=viewportInstance,this.id=id||this.constructor.displayName||"view",this.props={...props,id:this.id},this._x=parsePosition(x),this._y=parsePosition(y),this._width=parsePosition(width),this._height=parsePosition(height),this._padding=padding&&{left:parsePosition(padding.left||0),right:parsePosition(padding.right||0),top:parsePosition(padding.top||0),bottom:parsePosition(padding.bottom||0)},this.equals=this.equals.bind(this),Object.seal(this)}equals(view){return this===view||(this.viewportInstance?!!view.viewportInstance&&this.viewportInstance.equals(view.viewportInstance):this.ViewportType===view.ViewportType&&(0,deep_equal.v)(this.props,view.props,2))}makeViewport({width:width,height:height,viewState:viewState}){if(this.viewportInstance)return this.viewportInstance;viewState=this.filterViewState(viewState);const viewportDimensions=this.getDimensions({width:width,height:height});return viewportDimensions.height&&viewportDimensions.width?new this.ViewportType({...viewState,...this.props,...viewportDimensions}):null}getViewStateId(){const{viewState:viewState}=this.props;return"string"==typeof viewState?viewState:(null==viewState?void 0:viewState.id)||this.id}filterViewState(viewState){if(this.props.viewState&&"object"==typeof this.props.viewState){if(!this.props.viewState.id)return this.props.viewState;const newViewState={...viewState};for(const key in this.props.viewState)"id"!==key&&(newViewState[key]=this.props.viewState[key]);return newViewState}return viewState}getDimensions({width:width,height:height}){const dimensions={x:getPosition(this._x,width),y:getPosition(this._y,height),width:getPosition(this._width,width),height:getPosition(this._height,height)};return this._padding&&(dimensions.padding={left:getPosition(this._padding.left,width),top:getPosition(this._padding.top,height),right:getPosition(this._padding.right,width),bottom:getPosition(this._padding.bottom,height)}),dimensions}get controller(){const opts=this.props.controller;return opts?!0===opts?{type:this.ControllerType}:"function"==typeof opts?{type:opts}:{type:this.ControllerType,...opts}:null}}},"./node_modules/@deck.gl/layers/dist/esm/icon-layer/icon-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return IconLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),copy_and_blit=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),load=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js"),iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js");const noop=()=>{},DEFAULT_TEXTURE_PARAMETERS={10241:9987,10240:9729,10242:33071,10243:33071};function resizeImage(ctx,imageData,maxWidth,maxHeight){const resizeRatio=Math.min(maxWidth/imageData.width,maxHeight/imageData.height),width=Math.floor(imageData.width*resizeRatio),height=Math.floor(imageData.height*resizeRatio);return 1===resizeRatio?{data:imageData,width:width,height:height}:(ctx.canvas.height=height,ctx.canvas.width=width,ctx.clearRect(0,0,width,height),ctx.drawImage(imageData,0,0,imageData.width,imageData.height,0,0,width,height),{data:ctx.canvas,width:width,height:height})}function getIconId(icon){return icon&&(icon.id||icon.url)}function buildRowMapping(mapping,columns,yOffset){for(let i=0;i0){const{mapping:mapping,xOffset:xOffset,yOffset:yOffset,rowHeight:rowHeight,canvasHeight:canvasHeight}=function buildMapping({icons:icons,buffer:buffer,mapping:mapping={},xOffset:xOffset=0,yOffset:yOffset=0,rowHeight:rowHeight=0,canvasWidth:canvasWidth}){let columns=[];for(let i=0;icanvasWidth&&(buildRowMapping(mapping,columns,yOffset),xOffset=0,yOffset=rowHeight+yOffset+buffer,rowHeight=0,columns=[]),columns.push({icon:icon,xOffset:xOffset}),xOffset=xOffset+width+buffer,rowHeight=Math.max(rowHeight,height)}}return columns.length>0&&buildRowMapping(mapping,columns,yOffset),{mapping:mapping,rowHeight:rowHeight,xOffset:xOffset,yOffset:yOffset,canvasWidth:canvasWidth,canvasHeight:(number=rowHeight+yOffset+buffer,Math.pow(2,Math.ceil(Math.log2(number))))};var number}({icons:icons,buffer:this._buffer,canvasWidth:this._canvasWidth,mapping:this._mapping,rowHeight:this._rowHeight,xOffset:this._xOffset,yOffset:this._yOffset});this._rowHeight=rowHeight,this._mapping=mapping,this._xOffset=xOffset,this._yOffset=yOffset,this._canvasHeight=canvasHeight,this._texture||(this._texture=new texture_2d.Z(this.gl,{width:this._canvasWidth,height:this._canvasHeight,parameters:this._textureParameters||DEFAULT_TEXTURE_PARAMETERS})),this._texture.height!==this._canvasHeight&&(this._texture=function resizeTexture(texture,width,height,parameters){const oldWidth=texture.width,oldHeight=texture.height,newTexture=new texture_2d.Z(texture.gl,{width:width,height:height,parameters:parameters});return(0,copy_and_blit.Lv)(texture,newTexture,{targetY:0,width:oldWidth,height:oldHeight}),texture.delete(),newTexture}(this._texture,this._canvasWidth,this._canvasHeight,this._textureParameters||DEFAULT_TEXTURE_PARAMETERS)),this.onUpdate(),this._canvas=this._canvas||document.createElement("canvas"),this._loadIcons(icons)}}_loadIcons(icons){const ctx=this._canvas.getContext("2d",{willReadFrequently:!0});for(const icon of icons)this._pendingCount++,(0,load.z)(icon.url,this._loadOptions).then((imageData=>{const id=getIconId(icon),iconDef=this._mapping[id],{x:x,y:y,width:maxWidth,height:maxHeight}=iconDef,{data:data,width:width,height:height}=resizeImage(ctx,imageData,maxWidth,maxHeight);this._texture.setSubImageData({data:data,x:x+(maxWidth-width)/2,y:y+(maxHeight-height)/2,width:width,height:height}),iconDef.width=width,iconDef.height=height,this._texture.generateMipmap(),this.onUpdate()})).catch((error=>{this.onError({url:icon.url,source:icon.source,sourceIndex:icon.sourceIndex,loadOptions:this._loadOptions,error:error})})).finally((()=>{this._pendingCount--}))}}const DEFAULT_COLOR=[0,0,0,255],defaultProps={iconAtlas:{type:"image",value:null,async:!0},iconMapping:{type:"object",value:{},async:!0},sizeScale:{type:"number",value:1,min:0},billboard:!0,sizeUnits:"pixels",sizeMinPixels:{type:"number",min:0,value:0},sizeMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},alphaCutoff:{type:"number",value:.05,min:0,max:1},getPosition:{type:"accessor",value:x=>x.position},getIcon:{type:"accessor",value:x=>x.icon},getColor:{type:"accessor",value:DEFAULT_COLOR},getSize:{type:"accessor",value:1},getAngle:{type:"accessor",value:0},getPixelOffset:{type:"accessor",value:[0,0]},onIconError:{type:"function",value:null,optional:!0},textureParameters:{type:"object",ignore:!0}};class IconLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){return super.getShaders({vs:"#define SHADER_NAME icon-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute float instanceSizes;\nattribute float instanceAngles;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute vec4 instanceIconFrames;\nattribute float instanceColorModes;\nattribute vec2 instanceOffsets;\nattribute vec2 instancePixelOffset;\n\nuniform float sizeScale;\nuniform vec2 iconsTextureDim;\nuniform float sizeMinPixels;\nuniform float sizeMaxPixels;\nuniform bool billboard;\nuniform int sizeUnits;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvec2 rotate_by_angle(vec2 vertex, float angle) {\n float angle_radian = angle * PI / 180.0;\n float cos_angle = cos(angle_radian);\n float sin_angle = sin(angle_radian);\n mat2 rotationMatrix = mat2(cos_angle, -sin_angle, sin_angle, cos_angle);\n return rotationMatrix * vertex;\n}\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.uv = positions;\n geometry.pickingColor = instancePickingColors;\n uv = positions;\n\n vec2 iconSize = instanceIconFrames.zw;\n float sizePixels = clamp(\n project_size_to_pixel(instanceSizes * sizeScale, sizeUnits), \n sizeMinPixels, sizeMaxPixels\n );\n float instanceScale = iconSize.y == 0.0 ? 0.0 : sizePixels / iconSize.y;\n vec2 pixelOffset = positions / 2.0 * iconSize + instanceOffsets;\n pixelOffset = rotate_by_angle(pixelOffset, instanceAngles) * instanceScale;\n pixelOffset += instancePixelOffset;\n pixelOffset.y *= -1.0;\n\n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n vec3 offset = vec3(pixelOffset, 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n\n } else {\n vec3 offset_common = vec3(project_pixel_size(pixelOffset), 0.0);\n DECKGL_FILTER_SIZE(offset_common, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset_common, geometry.position); \n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n }\n\n vTextureCoords = mix(\n instanceIconFrames.xy,\n instanceIconFrames.xy + iconSize,\n (positions.xy + 1.0) / 2.0\n ) / iconsTextureDim;\n\n vColor = instanceColors;\n DECKGL_FILTER_COLOR(vColor, geometry);\n\n vColorMode = instanceColorModes;\n}\n",fs:"#define SHADER_NAME icon-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D iconsTexture;\nuniform float alphaCutoff;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n vec4 texColor = texture2D(iconsTexture, vTextureCoords);\n vec3 color = mix(texColor.rgb, vColor.rgb, vColorMode);\n float a = texColor.a * opacity * vColor.a;\n\n if (a < alphaCutoff) {\n discard;\n }\n\n gl_FragColor = vec4(color, a);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}initializeState(){this.state={iconManager:new IconManager(this.context.gl,{onUpdate:this._onUpdate.bind(this),onError:this._onError.bind(this)})};this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceSizes:{size:1,transition:!0,accessor:"getSize",defaultValue:1},instanceOffsets:{size:2,accessor:"getIcon",transform:this.getInstanceOffset},instanceIconFrames:{size:4,accessor:"getIcon",transform:this.getInstanceIconFrame},instanceColorModes:{size:1,type:5121,accessor:"getIcon",transform:this.getInstanceColorMode},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getColor",defaultValue:DEFAULT_COLOR},instanceAngles:{size:1,transition:!0,accessor:"getAngle"},instancePixelOffset:{size:2,transition:!0,accessor:"getPixelOffset"}})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps,changeFlags:changeFlags}=params,attributeManager=this.getAttributeManager(),{iconAtlas:iconAtlas,iconMapping:iconMapping,data:data,getIcon:getIcon,textureParameters:textureParameters}=props,{iconManager:iconManager}=this.state,prePacked=iconAtlas||this.internalState.isAsyncPropLoading("iconAtlas");if(iconManager.setProps({loadOptions:props.loadOptions,autoPacking:!prePacked,iconAtlas:iconAtlas,iconMapping:prePacked?iconMapping:null,textureParameters:textureParameters}),prePacked?oldProps.iconMapping!==props.iconMapping&&attributeManager.invalidate("getIcon"):(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getIcon))&&iconManager.packIcons(data,getIcon),changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),attributeManager.invalidateAll()}}get isLoaded(){return super.isLoaded&&this.state.iconManager.isLoaded}finalizeState(context){super.finalizeState(context),this.state.iconManager.finalize()}draw({uniforms:uniforms}){const{sizeScale:sizeScale,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels,sizeUnits:sizeUnits,billboard:billboard,alphaCutoff:alphaCutoff}=this.props,{iconManager:iconManager}=this.state,iconsTexture=iconManager.getTexture();iconsTexture&&this.state.model.setUniforms(uniforms).setUniforms({iconsTexture:iconsTexture,iconsTextureDim:[iconsTexture.width,iconsTexture.height],sizeUnits:constants.iI[sizeUnits],sizeScale:sizeScale,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels,billboard:billboard,alphaCutoff:alphaCutoff}).draw()}_getModel(gl){return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:6,attributes:{positions:{size:2,value:new Float32Array([-1,-1,-1,1,1,1,1,-1])}}}),isInstanced:!0})}_onUpdate(){this.setNeedsRedraw()}_onError(evt){var _this$getCurrentLayer;const onIconError=null===(_this$getCurrentLayer=this.getCurrentLayer())||void 0===_this$getCurrentLayer?void 0:_this$getCurrentLayer.props.onIconError;onIconError?onIconError(evt):log.Z.error(evt.error.message)()}getInstanceOffset(icon){const{width:width,height:height,anchorX:anchorX=width/2,anchorY:anchorY=height/2}=this.state.iconManager.getIconMapping(icon);return[width/2-anchorX,height/2-anchorY]}getInstanceColorMode(icon){return this.state.iconManager.getIconMapping(icon).mask?1:0}getInstanceIconFrame(icon){const{x:x,y:y,width:width,height:height}=this.state.iconManager.getIconMapping(icon);return[x,y,width,height]}}(0,defineProperty.Z)(IconLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(IconLayer,"layerName","IconLayer")},"./node_modules/@deck.gl/layers/dist/esm/text-layer/multi-icon-layer/multi-icon-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return MultiIconLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),icon_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/icon-layer/icon-layer.js");const EMPTY_ARRAY=[];class MultiIconLayer extends icon_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){return{...super.getShaders(),fs:"#define SHADER_NAME multi-icon-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D iconsTexture;\nuniform float gamma;\nuniform bool sdf;\nuniform float alphaCutoff;\nuniform float sdfBuffer;\nuniform float outlineBuffer;\nuniform vec4 outlineColor;\n\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n if (!picking_uActive) {\n float alpha = texture2D(iconsTexture, vTextureCoords).a;\n vec4 color = vColor;\n if (sdf) {\n float distance = alpha;\n alpha = smoothstep(sdfBuffer - gamma, sdfBuffer + gamma, distance);\n\n if (outlineBuffer > 0.0) {\n float inFill = alpha;\n float inBorder = smoothstep(outlineBuffer - gamma, outlineBuffer + gamma, distance);\n color = mix(outlineColor, vColor, inFill);\n alpha = inBorder;\n }\n }\n float a = alpha * color.a;\n \n if (a < alphaCutoff) {\n discard;\n }\n\n gl_FragColor = vec4(color.rgb, a * opacity);\n }\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n"}}initializeState(){super.initializeState();this.getAttributeManager().addInstanced({instanceOffsets:{size:2,accessor:"getIconOffsets"},instancePickingColors:{type:5121,size:3,accessor:(object,{index:index,target:value})=>this.encodePickingColor(index,value)}})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps}=params;let{outlineColor:outlineColor}=props;outlineColor!==oldProps.outlineColor&&(outlineColor=outlineColor.map((x=>x/255)),outlineColor[3]=Number.isFinite(outlineColor[3])?outlineColor[3]:1,this.setState({outlineColor:outlineColor})),!props.sdf&&props.outlineWidth&&log.Z.warn("".concat(this.id,": fontSettings.sdf is required to render outline"))()}draw(params){const{sdf:sdf,smoothing:smoothing,outlineWidth:outlineWidth}=this.props,{outlineColor:outlineColor}=this.state,outlineBuffer=outlineWidth?Math.max(smoothing,.75*(1-outlineWidth)):-1;if(params.uniforms={...params.uniforms,sdfBuffer:.75,outlineBuffer:outlineBuffer,gamma:smoothing,sdf:Boolean(sdf),outlineColor:outlineColor},super.draw(params),sdf&&outlineWidth){const{iconManager:iconManager}=this.state;iconManager.getTexture()&&this.state.model.draw({uniforms:{outlineBuffer:.75}})}}getInstanceOffset(icons){return icons?Array.from(icons).flatMap((icon=>super.getInstanceOffset(icon))):EMPTY_ARRAY}getInstanceColorMode(icons){return 1}getInstanceIconFrame(icons){return icons?Array.from(icons).flatMap((icon=>super.getInstanceIconFrame(icon))):EMPTY_ARRAY}}(0,defineProperty.Z)(MultiIconLayer,"defaultProps",{getIconOffsets:{type:"accessor",value:x=>x.offsets},alphaCutoff:.001,smoothing:.1,outlineWidth:0,outlineColor:{type:"color",value:[0,0,0,255]}}),(0,defineProperty.Z)(MultiIconLayer,"layerName","MultiIconLayer")},"./node_modules/@deck.gl/layers/dist/esm/text-layer/text-background-layer/text-background-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TextBackgroundLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const defaultProps={billboard:!0,sizeScale:1,sizeUnits:"pixels",sizeMinPixels:0,sizeMaxPixels:Number.MAX_SAFE_INTEGER,padding:{type:"array",value:[0,0,0,0]},getPosition:{type:"accessor",value:x=>x.position},getSize:{type:"accessor",value:1},getAngle:{type:"accessor",value:0},getPixelOffset:{type:"accessor",value:[0,0]},getBoundingRect:{type:"accessor",value:[0,0,0,0]},getFillColor:{type:"accessor",value:[0,0,0,255]},getLineColor:{type:"accessor",value:[0,0,0,255]},getLineWidth:{type:"accessor",value:1}};class TextBackgroundLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){return super.getShaders({vs:"#define SHADER_NAME text-background-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute vec4 instanceRects;\nattribute float instanceSizes;\nattribute float instanceAngles;\nattribute vec2 instancePixelOffsets;\nattribute float instanceLineWidths;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\nuniform bool billboard;\nuniform float opacity;\nuniform float sizeScale;\nuniform float sizeMinPixels;\nuniform float sizeMaxPixels;\nuniform vec4 padding;\nuniform int sizeUnits;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying float vLineWidth;\nvarying vec2 uv;\nvarying vec2 dimensions;\n\nvec2 rotate_by_angle(vec2 vertex, float angle) {\n float angle_radian = radians(angle);\n float cos_angle = cos(angle_radian);\n float sin_angle = sin(angle_radian);\n mat2 rotationMatrix = mat2(cos_angle, -sin_angle, sin_angle, cos_angle);\n return rotationMatrix * vertex;\n}\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.uv = positions;\n geometry.pickingColor = instancePickingColors;\n uv = positions;\n vLineWidth = instanceLineWidths;\n float sizePixels = clamp(\n project_size_to_pixel(instanceSizes * sizeScale, sizeUnits),\n sizeMinPixels, sizeMaxPixels\n );\n\n dimensions = instanceRects.zw * sizePixels + padding.xy + padding.zw;\n\n vec2 pixelOffset = (positions * instanceRects.zw + instanceRects.xy) * sizePixels + mix(-padding.xy, padding.zw, positions);\n pixelOffset = rotate_by_angle(pixelOffset, instanceAngles);\n pixelOffset += instancePixelOffsets;\n pixelOffset.y *= -1.0;\n\n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n vec3 offset = vec3(pixelOffset, 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n } else {\n vec3 offset_common = vec3(project_pixel_size(pixelOffset), 0.0);\n DECKGL_FILTER_SIZE(offset_common, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset_common, geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n }\n vFillColor = vec4(instanceFillColors.rgb, instanceFillColors.a * opacity);\n DECKGL_FILTER_COLOR(vFillColor, geometry);\n vLineColor = vec4(instanceLineColors.rgb, instanceLineColors.a * opacity);\n DECKGL_FILTER_COLOR(vLineColor, geometry);\n}\n",fs:"#define SHADER_NAME text-background-layer-fragment-shader\n\nprecision highp float;\n\nuniform bool stroked;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying float vLineWidth;\nvarying vec2 uv;\nvarying vec2 dimensions;\n\nvoid main(void) {\n geometry.uv = uv;\n\n vec2 pixelPosition = uv * dimensions;\n if (stroked) {\n float distToEdge = min(\n min(pixelPosition.x, dimensions.x - pixelPosition.x),\n min(pixelPosition.y, dimensions.y - pixelPosition.y)\n );\n float isBorder = smoothedge(distToEdge, vLineWidth);\n gl_FragColor = mix(vFillColor, vLineColor, isBorder);\n } else {\n gl_FragColor = vFillColor;\n }\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceSizes:{size:1,transition:!0,accessor:"getSize",defaultValue:1},instanceAngles:{size:1,transition:!0,accessor:"getAngle"},instanceRects:{size:4,accessor:"getBoundingRect"},instancePixelOffsets:{size:2,transition:!0,accessor:"getPixelOffset"},instanceFillColors:{size:4,transition:!0,normalized:!0,type:5121,accessor:"getFillColor",defaultValue:[0,0,0,255]},instanceLineColors:{size:4,transition:!0,normalized:!0,type:5121,accessor:"getLineColor",defaultValue:[0,0,0,255]},instanceLineWidths:{size:1,transition:!0,accessor:"getLineWidth",defaultValue:1}})}updateState(params){super.updateState(params);const{changeFlags:changeFlags}=params;if(changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}}draw({uniforms:uniforms}){const{billboard:billboard,sizeScale:sizeScale,sizeUnits:sizeUnits,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels,getLineWidth:getLineWidth}=this.props;let{padding:padding}=this.props;padding.length<4&&(padding=[padding[0],padding[1],padding[0],padding[1]]),this.state.model.setUniforms(uniforms).setUniforms({billboard:billboard,stroked:Boolean(getLineWidth),padding:padding,sizeUnits:constants.iI[sizeUnits],sizeScale:sizeScale,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels}).draw()}_getModel(gl){return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:6,vertexCount:4,attributes:{positions:{size:2,value:new Float32Array([0,0,1,0,1,1,0,1])}}}),isInstanced:!0})}}(0,defineProperty.Z)(TextBackgroundLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(TextBackgroundLayer,"layerName","TextBackgroundLayer")},"./node_modules/@deck.gl/layers/dist/esm/text-layer/text-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TextLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),multi_icon_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/multi-icon-layer/multi-icon-layer.js");const INF=1e20;class TinySDF{constructor({fontSize:fontSize=24,buffer:buffer=3,radius:radius=8,cutoff:cutoff=.25,fontFamily:fontFamily="sans-serif",fontWeight:fontWeight="normal",fontStyle:fontStyle="normal"}={}){this.buffer=buffer,this.cutoff=cutoff,this.radius=radius;const size=this.size=fontSize+4*buffer,canvas=this._createCanvas(size),ctx=this.ctx=canvas.getContext("2d",{willReadFrequently:!0});ctx.font=`${fontStyle} ${fontWeight} ${fontSize}px ${fontFamily}`,ctx.textBaseline="alphabetic",ctx.textAlign="left",ctx.fillStyle="black",this.gridOuter=new Float64Array(size*size),this.gridInner=new Float64Array(size*size),this.f=new Float64Array(size),this.z=new Float64Array(size+1),this.v=new Uint16Array(size)}_createCanvas(size){const canvas=document.createElement("canvas");return canvas.width=canvas.height=size,canvas}draw(char){const{width:glyphAdvance,actualBoundingBoxAscent:actualBoundingBoxAscent,actualBoundingBoxDescent:actualBoundingBoxDescent,actualBoundingBoxLeft:actualBoundingBoxLeft,actualBoundingBoxRight:actualBoundingBoxRight}=this.ctx.measureText(char),glyphTop=Math.ceil(actualBoundingBoxAscent),glyphWidth=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(actualBoundingBoxRight-actualBoundingBoxLeft))),glyphHeight=Math.min(this.size-this.buffer,glyphTop+Math.ceil(actualBoundingBoxDescent)),width=glyphWidth+2*this.buffer,height=glyphHeight+2*this.buffer,len=Math.max(width*height,0),data=new Uint8ClampedArray(len),glyph={data:data,width:width,height:height,glyphWidth:glyphWidth,glyphHeight:glyphHeight,glyphTop:glyphTop,glyphLeft:0,glyphAdvance:glyphAdvance};if(0===glyphWidth||0===glyphHeight)return glyph;const{ctx:ctx,buffer:buffer,gridInner:gridInner,gridOuter:gridOuter}=this;ctx.clearRect(buffer,buffer,glyphWidth,glyphHeight),ctx.fillText(char,buffer,buffer+glyphTop);const imgData=ctx.getImageData(buffer,buffer,glyphWidth,glyphHeight);gridOuter.fill(INF,0,len),gridInner.fill(0,0,len);for(let y=0;y0?d*d:0,gridInner[j]=d<0?d*d:0}}edt(gridOuter,0,0,width,height,width,this.f,this.v,this.z),edt(gridInner,buffer,buffer,glyphWidth,glyphHeight,width,this.f,this.v,this.z);for(let i=0;i-1);k++,v[k]=q,z[k]=s,z[k+1]=INF}for(let q=0,k=0;qmaxWidth&&(rowStartCharIndexgroupStartCharIndex){let groupWidth=getTextWidth(text,groupStartCharIndex,groupEndCharIndex,iconMapping);rowOffsetLeft+groupWidth>maxWidth&&(rowStartCharIndexmaxWidth&&(groupWidth=breakAll(text,groupStartCharIndex,groupEndCharIndex,maxWidth,iconMapping,target),rowStartCharIndex=target[target.length-1])),groupStartCharIndex=groupEndCharIndex,rowOffsetLeft+=groupWidth}return rowOffsetLeft}(text,startIndex,endIndex,maxWidth,iconMapping,result),result}function transformRow(line,startIndex,endIndex,iconMapping,leftOffsets,rowSize){let x=0,rowHeight=0;for(let i=startIndex;i=0&&this._order.splice(index,1)}_appendOrder(key){this._order.push(key)}}const DEFAULT_FONT_SETTINGS={fontFamily:"Monaco, monospace",fontWeight:"normal",characterSet:function getDefaultCharacterSet(){const charSet=[];for(let i=32;i<128;i++)charSet.push(String.fromCharCode(i));return charSet}(),fontSize:64,buffer:4,sdf:!1,cutoff:.25,radius:12,smoothing:.1};let cache=new LRUCache(3);function populateAlphaChannel(alphaChannel,imageData){for(let i=0;imaxCanvasWidth&&(x=0,row++),mapping[char]={x:x+buffer,y:yOffset+row*rowHeight+buffer,width:width,height:rowHeight,layoutWidth:width,layoutHeight:fontHeight},x+=width+2*buffer}return{mapping:mapping,xOffset:x,yOffset:yOffset+row*rowHeight,canvasHeight:(number=yOffset+(row+1)*rowHeight,Math.pow(2,Math.ceil(Math.log2(number))))};var number}({getFontWidth:char=>ctx.measureText(char).width,fontHeight:1.2*fontSize,buffer:buffer,characterSet:characterSet,maxCanvasWidth:1024,...cachedFontAtlas&&{mapping:cachedFontAtlas.mapping,xOffset:cachedFontAtlas.xOffset,yOffset:cachedFontAtlas.yOffset}});if(canvas.height!==canvasHeight){const imageData=ctx.getImageData(0,0,canvas.width,canvas.height);canvas.height=canvasHeight,ctx.putImageData(imageData,0,0)}if(setTextStyle(ctx,fontFamily,fontSize,fontWeight),sdf){const tinySDF=new TinySDF({fontSize:fontSize,buffer:buffer,radius:radius,cutoff:cutoff,fontFamily:fontFamily,fontWeight:"".concat(fontWeight)});for(const char of characterSet){const{data:data,width:width,height:height,glyphTop:glyphTop}=tinySDF.draw(char);mapping[char].width=width,mapping[char].layoutOffsetY=.9*fontSize-glyphTop;const imageData=ctx.createImageData(width,height);populateAlphaChannel(data,imageData),ctx.putImageData(imageData,mapping[char].x,mapping[char].y)}}else for(const char of characterSet)ctx.fillText(char,mapping[char].x,mapping[char].y+buffer+.9*fontSize);return{xOffset:xOffset,yOffset:yOffset,mapping:mapping,data:canvas,width:canvas.width,height:canvas.height}}_getKey(){const{fontFamily:fontFamily,fontWeight:fontWeight,fontSize:fontSize,buffer:buffer,sdf:sdf,radius:radius,cutoff:cutoff}=this.props;return sdf?"".concat(fontFamily," ").concat(fontWeight," ").concat(fontSize," ").concat(buffer," ").concat(radius," ").concat(cutoff):"".concat(fontFamily," ").concat(fontWeight," ").concat(fontSize," ").concat(buffer)}}var text_background_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/text-background-layer/text-background-layer.js");const TEXT_ANCHOR={start:1,middle:0,end:-1},ALIGNMENT_BASELINE={top:1,center:0,bottom:-1},DEFAULT_COLOR=[0,0,0,255],defaultProps={billboard:!0,sizeScale:1,sizeUnits:"pixels",sizeMinPixels:0,sizeMaxPixels:Number.MAX_SAFE_INTEGER,background:!1,getBackgroundColor:{type:"accessor",value:[255,255,255,255]},getBorderColor:{type:"accessor",value:DEFAULT_COLOR},getBorderWidth:{type:"accessor",value:0},backgroundPadding:{type:"array",value:[0,0,0,0]},characterSet:{type:"object",value:DEFAULT_FONT_SETTINGS.characterSet},fontFamily:DEFAULT_FONT_SETTINGS.fontFamily,fontWeight:DEFAULT_FONT_SETTINGS.fontWeight,lineHeight:1,outlineWidth:{type:"number",value:0,min:0},outlineColor:{type:"color",value:DEFAULT_COLOR},fontSettings:{type:"object",value:{},compare:1},wordBreak:"break-word",maxWidth:{type:"number",value:-1},getText:{type:"accessor",value:x=>x.text},getPosition:{type:"accessor",value:x=>x.position},getColor:{type:"accessor",value:DEFAULT_COLOR},getSize:{type:"accessor",value:32},getAngle:{type:"accessor",value:0},getTextAnchor:{type:"accessor",value:"middle"},getAlignmentBaseline:{type:"accessor",value:"center"},getPixelOffset:{type:"accessor",value:[0,0]},backgroundColor:{deprecatedFor:["background","getBackgroundColor"]}};class TextLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0),(0,defineProperty.Z)(this,"getBoundingRect",((object,objectInfo)=>{let{size:[width,height]}=this.transformParagraph(object,objectInfo);const{fontSize:fontSize}=this.state.fontAtlasManager.props;width/=fontSize,height/=fontSize;const{getTextAnchor:getTextAnchor,getAlignmentBaseline:getAlignmentBaseline}=this.props;return[(TEXT_ANCHOR["function"==typeof getTextAnchor?getTextAnchor(object,objectInfo):getTextAnchor]-1)*width/2,(ALIGNMENT_BASELINE["function"==typeof getAlignmentBaseline?getAlignmentBaseline(object,objectInfo):getAlignmentBaseline]-1)*height/2,width,height]})),(0,defineProperty.Z)(this,"getIconOffsets",((object,objectInfo)=>{const{getTextAnchor:getTextAnchor,getAlignmentBaseline:getAlignmentBaseline}=this.props,{x:x,y:y,rowWidth:rowWidth,size:[width,height]}=this.transformParagraph(object,objectInfo),anchorX=TEXT_ANCHOR["function"==typeof getTextAnchor?getTextAnchor(object,objectInfo):getTextAnchor],anchorY=ALIGNMENT_BASELINE["function"==typeof getAlignmentBaseline?getAlignmentBaseline(object,objectInfo):getAlignmentBaseline],numCharacters=x.length,offsets=new Array(2*numCharacters);let index=0;for(let i=0;i0&&log.Z.warn("v8.9 breaking change: TextLayer maxWidth is now relative to text size")()}updateState(params){const{props:props,oldProps:oldProps,changeFlags:changeFlags}=params;(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getText))&&this._updateText();(this._updateFontAtlas()||props.lineHeight!==oldProps.lineHeight||props.wordBreak!==oldProps.wordBreak||props.maxWidth!==oldProps.maxWidth)&&this.setState({styleVersion:this.state.styleVersion+1})}getPickingInfo({info:info}){return info.object=info.index>=0?this.props.data[info.index]:null,info}_updateFontAtlas(){const{fontSettings:fontSettings,fontFamily:fontFamily,fontWeight:fontWeight}=this.props,{fontAtlasManager:fontAtlasManager,characterSet:characterSet}=this.state,fontProps={...fontSettings,characterSet:characterSet,fontFamily:fontFamily,fontWeight:fontWeight};if(!fontAtlasManager.mapping)return fontAtlasManager.setProps(fontProps),!0;for(const key in fontProps)if(fontProps[key]!==fontAtlasManager.props[key])return fontAtlasManager.setProps(fontProps),!0;return!1}_updateText(){var _attributes;const{data:data,characterSet:characterSet}=this.props,textBuffer=null===(_attributes=data.attributes)||void 0===_attributes?void 0:_attributes.getText;let numInstances,{getText:getText}=this.props,startIndices=data.startIndices;const autoCharacterSet="auto"===characterSet&&new Set;if(textBuffer&&startIndices){const{texts:texts,characterCount:characterCount}=function getTextFromBuffer({value:value,length:length,stride:stride,offset:offset,startIndices:startIndices,characterSet:characterSet}){const bytesPerElement=value.BYTES_PER_ELEMENT,elementStride=stride?stride/bytesPerElement:1,elementOffset=offset?offset/bytesPerElement:0,characterCount=startIndices[length]||Math.ceil((value.length-elementOffset)/elementStride),autoCharacterSet=characterSet&&new Set,texts=new Array(length);let codes=value;if(elementStride>1||elementOffset>0){codes=new(0,value.constructor)(characterCount);for(let i=0;itexts[index]}else{const{iterable:iterable,objectInfo:objectInfo}=(0,iterable_utils.jB)(data);startIndices=[0],numInstances=0;for(const object of iterable){objectInfo.index++;const text=Array.from(getText(object,objectInfo)||"");autoCharacterSet&&text.forEach(autoCharacterSet.add,autoCharacterSet),numInstances+=text.length,startIndices.push(numInstances)}}this.setState({getText:getText,startIndices:startIndices,numInstances:numInstances,characterSet:autoCharacterSet||characterSet})}transformParagraph(object,objectInfo){const{fontAtlasManager:fontAtlasManager}=this.state,iconMapping=fontAtlasManager.mapping,getText=this.state.getText,{wordBreak:wordBreak,lineHeight:lineHeight,maxWidth:maxWidth}=this.props;return function transformParagraph(paragraph,lineHeight,wordBreak,maxWidth,iconMapping){const characters=Array.from(paragraph),numCharacters=characters.length,x=new Array(numCharacters),y=new Array(numCharacters),rowWidth=new Array(numCharacters),autoWrappingEnabled=("break-word"===wordBreak||"break-all"===wordBreak)&&isFinite(maxWidth)&&maxWidth>0,size=[0,0],rowSize=[0,0];let rowOffsetTop=0,lineStartIndex=0,lineEndIndex=0;for(let i=0;i<=numCharacters;i++){const char=characters[i];if("\n"!==char&&i!==numCharacters||(lineEndIndex=i),lineEndIndex>lineStartIndex){const rows=autoWrappingEnabled?autoWrapping(characters,wordBreak,maxWidth,iconMapping,lineStartIndex,lineEndIndex):SINGLE_LINE;for(let rowIndex=0;rowIndex<=rows.length;rowIndex++){const rowStart=0===rowIndex?lineStartIndex:rows[rowIndex-1],rowEnd=rowIndex=3,"Invalid cache limit"),cache=new LRUCache(limit)}(limit)}}(0,defineProperty.Z)(TextLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(TextLayer,"layerName","TextLayer")},"./node_modules/@deck.gl/react/dist/esm/deckgl.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return deckgl}});var react=__webpack_require__("./node_modules/react/index.js"),deck=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/deck.js");var use_isomorphic_layout_effect="undefined"!=typeof window?react.useLayoutEffect:react.useEffect;function inheritsFrom(Type,ParentType){for(;Type;){if(Type===ParentType)return!0;Type=Object.getPrototypeOf(Type)}return!1}var view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/view.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js");const MAP_STYLE={position:"absolute",zIndex:-1};function evaluateChildren(children,childProps){if("function"==typeof children)return children(childProps);if(Array.isArray(children))return children.map((child=>evaluateChildren(child,childProps)));if(isComponent(children)){if(function isReactMap(child){var _child$props;return null===(_child$props=child.props)||void 0===_child$props?void 0:_child$props.mapStyle}(children))return childProps.style=MAP_STYLE,(0,react.cloneElement)(children,childProps);if(function needsDeckGLViewProps(child){const componentClass=child.type;return componentClass&&componentClass.deckGLViewProps}(children))return(0,react.cloneElement)(children,childProps)}return children}function isComponent(child){return child&&"object"==typeof child&&"type"in child||!1}function wrapInView(node){if("function"==typeof node)return(0,react.createElement)(view.Z,{},node);if(Array.isArray(node))return node.map(wrapInView);if(isComponent(node)){if(node.type===react.Fragment)return wrapInView(node.props.children);if(inheritsFrom(node.type,view.Z))return node}return node}const CANVAS_ONLY_STYLES={mixBlendMode:null};function redrawDeck(thisRef){thisRef.redrawReason&&(thisRef.deck._drawLayers(thisRef.redrawReason),thisRef.redrawReason=null)}const DeckGL=(0,react.forwardRef)(((props,ref)=>{const[version,setVersion]=(0,react.useState)(0),thisRef=(0,react.useRef)({control:null,version:version,forceUpdate:()=>setVersion((v=>v+1))}).current,containerRef=(0,react.useRef)(null),canvasRef=(0,react.useRef)(null),jsxProps=(0,react.useMemo)((()=>function extractJSXLayers({children:children,layers:layers=[],views:views=null}){const reactChildren=[],jsxLayers=[],jsxViews={};return react.Children.forEach(wrapInView(children),(reactElement=>{if(isComponent(reactElement)){const ElementType=reactElement.type;if(inheritsFrom(ElementType,lib_layer.Z)){const layer=function createLayer(LayerType,reactProps){const props={},defaultProps=LayerType.defaultProps||{};for(const key in reactProps)defaultProps[key]!==reactProps[key]&&(props[key]=reactProps[key]);return new LayerType(props)}(ElementType,reactElement.props);jsxLayers.push(layer)}else reactChildren.push(reactElement);if(inheritsFrom(ElementType,view.Z)&&ElementType!==view.Z&&reactElement.props.id){const view=new ElementType(reactElement.props);jsxViews[view.id]=view}}else reactElement&&reactChildren.push(reactElement)})),Object.keys(jsxViews).length>0&&(Array.isArray(views)?views.forEach((view=>{jsxViews[view.id]=view})):views&&(jsxViews[views.id]=views),views=Object.values(jsxViews)),{layers:layers=jsxLayers.length>0?[...jsxLayers,...layers]:layers,children:reactChildren,views:views}}(props)),[props.layers,props.views,props.children]);let inRender=!0;const handleViewStateChange=params=>{var _props$onViewStateCha;return inRender&&props.viewState?(thisRef.viewStateUpdateRequested=params,null):(thisRef.viewStateUpdateRequested=null,null===(_props$onViewStateCha=props.onViewStateChange)||void 0===_props$onViewStateCha?void 0:_props$onViewStateCha.call(props,params))},handleInteractionStateChange=params=>{var _props$onInteractionS;inRender?thisRef.interactionStateUpdateRequested=params:(thisRef.interactionStateUpdateRequested=null,null===(_props$onInteractionS=props.onInteractionStateChange)||void 0===_props$onInteractionS||_props$onInteractionS.call(props,params))},deckProps=(0,react.useMemo)((()=>{const forwardProps={...props,style:null,width:"100%",height:"100%",parent:containerRef.current,canvas:canvasRef.current,layers:jsxProps.layers,views:jsxProps.views,onViewStateChange:handleViewStateChange,onInteractionStateChange:handleInteractionStateChange};return delete forwardProps._customRender,thisRef.deck&&thisRef.deck.setProps(forwardProps),forwardProps}),[props]);(0,react.useEffect)((()=>{const DeckClass=props.Deck||deck.Z;return thisRef.deck=function createDeckInstance(thisRef,DeckClass,props){const deck=new DeckClass({...props,_customRender:redrawReason=>{thisRef.redrawReason=redrawReason;const viewports=deck.getViewports();thisRef.lastRenderedViewports!==viewports?thisRef.forceUpdate():redrawDeck(thisRef)}});return deck}(thisRef,DeckClass,{...deckProps,parent:containerRef.current,canvas:canvasRef.current}),()=>{var _thisRef$deck;return null===(_thisRef$deck=thisRef.deck)||void 0===_thisRef$deck?void 0:_thisRef$deck.finalize()}}),[]),use_isomorphic_layout_effect((()=>{redrawDeck(thisRef);const{viewStateUpdateRequested:viewStateUpdateRequested,interactionStateUpdateRequested:interactionStateUpdateRequested}=thisRef;viewStateUpdateRequested&&handleViewStateChange(viewStateUpdateRequested),interactionStateUpdateRequested&&handleInteractionStateChange(interactionStateUpdateRequested)})),(0,react.useImperativeHandle)(ref,(()=>function getRefHandles(thisRef){return{get deck(){return thisRef.deck},pickObject:opts=>thisRef.deck.pickObject(opts),pickMultipleObjects:opts=>thisRef.deck.pickMultipleObjects(opts),pickObjects:opts=>thisRef.deck.pickObjects(opts)}}(thisRef)),[]);const currentViewports=thisRef.deck&&thisRef.deck.isInitialized?thisRef.deck.getViewports():void 0,{ContextProvider:ContextProvider,width:width,height:height,id:id,style:style}=props,{containerStyle:containerStyle,canvasStyle:canvasStyle}=(0,react.useMemo)((()=>function extractStyles({width:width,height:height,style:style}){const containerStyle={position:"absolute",zIndex:0,left:0,top:0,width:width,height:height},canvasStyle={left:0,top:0};if(style)for(const key in style)key in CANVAS_ONLY_STYLES?canvasStyle[key]=style[key]:containerStyle[key]=style[key];return{containerStyle:containerStyle,canvasStyle:canvasStyle}}({width:width,height:height,style:style})),[width,height,style]);if(!thisRef.viewStateUpdateRequested&&thisRef.lastRenderedViewports===currentViewports||thisRef.version!==version){thisRef.lastRenderedViewports=currentViewports,thisRef.version=version;const childrenUnderViews=function positionChildrenUnderViews({children:children,deck:deck,ContextProvider:ContextProvider}){const{viewManager:viewManager}=deck||{};if(!viewManager||!viewManager.views.length)return[];const views={},defaultViewId=viewManager.views[0].id;for(const child of children){let viewId=defaultViewId,viewChildren=child;isComponent(child)&&inheritsFrom(child.type,view.Z)&&(viewId=child.props.id||defaultViewId,viewChildren=child.props.children);const viewport=viewManager.getViewport(viewId),viewState=viewManager.getViewState(viewId);if(viewport){viewState.padding=viewport.padding;const{x:x,y:y,width:width,height:height}=viewport;viewChildren=evaluateChildren(viewChildren,{x:x,y:y,width:width,height:height,viewport:viewport,viewState:viewState}),views[viewId]||(views[viewId]={viewport:viewport,children:[]}),views[viewId].children.push(viewChildren)}}return Object.keys(views).map((viewId=>{const{viewport:viewport,children:viewChildren}=views[viewId],{x:x,y:y,width:width,height:height}=viewport,style={position:"absolute",left:x,top:y,width:width,height:height},key="view-".concat(viewId),viewElement=(0,react.createElement)("div",{key:key,id:key,style:style},...viewChildren);if(ContextProvider){const contextValue={viewport:viewport,container:deck.canvas.offsetParent,eventManager:deck.eventManager,onViewStateChange:params=>{params.viewId=viewId,deck._onViewStateChange(params)}};return(0,react.createElement)(ContextProvider,{key:key,value:contextValue},viewElement)}return viewElement}))}({children:jsxProps.children,deck:thisRef.deck,ContextProvider:ContextProvider}),canvas=(0,react.createElement)("canvas",{key:"canvas",id:id||"deckgl-overlay",ref:canvasRef,style:canvasStyle});thisRef.control=(0,react.createElement)("div",{id:"".concat(id||"deckgl","-wrapper"),ref:containerRef,style:containerStyle},[canvas,childrenUnderViews])}return inRender=!1,thisRef.control}));DeckGL.defaultProps=deck.Z.defaultProps;var deckgl=DeckGL},"./node_modules/@loaders.gl/core/dist/esm/javascript-utils/is-type.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D0:function(){return isAsyncIterable},Ew:function(){return isResponse},Kn:function(){return isObject},Lj:function(){return isBlob},Os:function(){return isReadableStream},Ss:function(){return isPureObject},TW:function(){return isIterable},zH:function(){return isBuffer}});const isBoolean=x=>"boolean"==typeof x,isFunction=x=>"function"==typeof x,isObject=x=>null!==x&&"object"==typeof x,isPureObject=x=>isObject(x)&&x.constructor==={}.constructor,isIterable=x=>x&&"function"==typeof x[Symbol.iterator],isAsyncIterable=x=>x&&"function"==typeof x[Symbol.asyncIterator],isResponse=x=>"undefined"!=typeof Response&&x instanceof Response||x&&x.arrayBuffer&&x.text&&x.json,isBlob=x=>"undefined"!=typeof Blob&&x instanceof Blob,isBuffer=x=>x&&"object"==typeof x&&x.isBuffer,isReadableStream=x=>(x=>"undefined"!=typeof ReadableStream&&x instanceof ReadableStream||isObject(x)&&isFunction(x.tee)&&isFunction(x.cancel)&&isFunction(x.getReader))(x)||(x=>isObject(x)&&isFunction(x.read)&&isFunction(x.pipe)&&isBoolean(x.readable))(x)},"./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return load}});var is_type=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/javascript-utils/is-type.js"),normalize_loader=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/loader-utils/normalize-loader.js");let pathPrefix="";const fileAliases={};const DATA_URL_PATTERN=/^data:([-\w.]+\/[-\w.+]+)(;|,)/,MIME_TYPE_PATTERN=/^([-\w.]+\/[-\w.+]+)/;function parseMIMETypeFromURL(url){const matches=DATA_URL_PATTERN.exec(url);return matches?matches[1]:""}const QUERY_STRING_PATTERN=/\?.*/;function stripQueryString(url){return url.replace(QUERY_STRING_PATTERN,"")}function getResourceUrl(resource){if((0,is_type.Ew)(resource)){return resource.url}if((0,is_type.Lj)(resource)){return resource.name||""}return"string"==typeof resource?resource:""}function getResourceMIMEType(resource){if((0,is_type.Ew)(resource)){const response=resource,contentTypeHeader=response.headers.get("content-type")||"",noQueryUrl=stripQueryString(response.url);return function parseMIMEType(mimeString){const matches=MIME_TYPE_PATTERN.exec(mimeString);return matches?matches[1]:mimeString}(contentTypeHeader)||parseMIMETypeFromURL(noQueryUrl)}if((0,is_type.Lj)(resource)){return resource.type||""}return"string"==typeof resource?parseMIMETypeFromURL(resource):""}async function response_utils_makeResponse(resource){if((0,is_type.Ew)(resource))return resource;const headers={},contentLength=function getResourceContentLength(resource){if((0,is_type.Ew)(resource))return resource.headers["content-length"]||-1;if((0,is_type.Lj)(resource))return resource.size;return"string"==typeof resource?resource.length:resource instanceof ArrayBuffer||ArrayBuffer.isView(resource)?resource.byteLength:-1}(resource);contentLength>=0&&(headers["content-length"]=String(contentLength));const url=getResourceUrl(resource),type=getResourceMIMEType(resource);type&&(headers["content-type"]=type);const initialDataUrl=await async function getInitialDataUrl(resource){const INITIAL_DATA_LENGTH=5;if("string"==typeof resource)return"data:,".concat(resource.slice(0,INITIAL_DATA_LENGTH));if(resource instanceof Blob){const blobSlice=resource.slice(0,5);return await new Promise((resolve=>{const reader=new FileReader;reader.onload=event=>{var _event$target;return resolve(null==event||null===(_event$target=event.target)||void 0===_event$target?void 0:_event$target.result)},reader.readAsDataURL(blobSlice)}))}if(resource instanceof ArrayBuffer){const base64=function arrayBufferToBase64(buffer){let binary="";const bytes=new Uint8Array(buffer);for(let i=0;ifetchFile(url,fetchOptions):null!=context&&context.fetch?null==context?void 0:context.fetch:fetchFile}var assert=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/assert.js");const VERSION="3.4.15";var globals=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/globals.js"),defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");class worker_threads_browser_Worker{terminate(){}}const workerURLCache=new Map;function getLoadableWorkerURL(props){(0,assert.h)(props.source&&!props.url||!props.source&&props.url);let workerURL=workerURLCache.get(props.source||props.url);return workerURL||(props.url&&(workerURL=function getLoadableWorkerURLFromURL(url){if(!url.startsWith("http"))return url;return getLoadableWorkerURLFromSource(function buildScriptSource(workerUrl){return"try {\n importScripts('".concat(workerUrl,"');\n} catch (error) {\n console.error(error);\n throw error;\n}")}(url))}(props.url),workerURLCache.set(props.url,workerURL)),props.source&&(workerURL=getLoadableWorkerURLFromSource(props.source),workerURLCache.set(props.source,workerURL))),(0,assert.h)(workerURL),workerURL}function getLoadableWorkerURLFromSource(workerSource){const blob=new Blob([workerSource],{type:"application/javascript"});return URL.createObjectURL(blob)}function getTransferList(object){let recursive=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],transfers=arguments.length>2?arguments[2]:void 0;const transfersSet=transfers||new Set;if(object){if(isTransferable(object))transfersSet.add(object);else if(isTransferable(object.buffer))transfersSet.add(object.buffer);else if(ArrayBuffer.isView(object));else if(recursive&&"object"==typeof object)for(const key in object)getTransferList(object[key],recursive,transfersSet)}else;return void 0===transfers?Array.from(transfersSet):[]}function isTransferable(object){return!!object&&(object instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&object instanceof MessagePort||("undefined"!=typeof ImageBitmap&&object instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&object instanceof OffscreenCanvas)))}const NOOP=()=>{};class WorkerThread{static isSupported(){return"undefined"!=typeof Worker&&globals.jU||void 0!==worker_threads_browser_Worker&&!globals.jU}constructor(props){(0,defineProperty.Z)(this,"name",void 0),(0,defineProperty.Z)(this,"source",void 0),(0,defineProperty.Z)(this,"url",void 0),(0,defineProperty.Z)(this,"terminated",!1),(0,defineProperty.Z)(this,"worker",void 0),(0,defineProperty.Z)(this,"onMessage",void 0),(0,defineProperty.Z)(this,"onError",void 0),(0,defineProperty.Z)(this,"_loadableURL","");const{name:name,source:source,url:url}=props;(0,assert.h)(source||url),this.name=name,this.source=source,this.url=url,this.onMessage=NOOP,this.onError=error=>console.log(error),this.worker=globals.jU?this._createBrowserWorker():this._createNodeWorker()}destroy(){this.onMessage=NOOP,this.onError=NOOP,this.worker.terminate(),this.terminated=!0}get isRunning(){return Boolean(this.onMessage)}postMessage(data,transferList){transferList=transferList||getTransferList(data),this.worker.postMessage(data,transferList)}_getErrorFromErrorEvent(event){let message="Failed to load ";return message+="worker ".concat(this.name," from ").concat(this.url,". "),event.message&&(message+="".concat(event.message," in ")),event.lineno&&(message+=":".concat(event.lineno,":").concat(event.colno)),new Error(message)}_createBrowserWorker(){this._loadableURL=getLoadableWorkerURL({source:this.source,url:this.url});const worker=new Worker(this._loadableURL,{name:this.name});return worker.onmessage=event=>{event.data?this.onMessage(event.data):this.onError(new Error("No data received"))},worker.onerror=error=>{this.onError(this._getErrorFromErrorEvent(error)),this.terminated=!0},worker.onmessageerror=event=>console.error(event),worker}_createNodeWorker(){let worker;if(this.url){const url=this.url.includes(":/")||this.url.startsWith("/")?this.url:"./".concat(this.url);worker=new worker_threads_browser_Worker(url,{eval:!1})}else{if(!this.source)throw new Error("no worker");worker=new worker_threads_browser_Worker(this.source,{eval:!0})}return worker.on("message",(data=>{this.onMessage(data)})),worker.on("error",(error=>{this.onError(error)})),worker.on("exit",(code=>{})),worker}}class WorkerJob{constructor(jobName,workerThread){(0,defineProperty.Z)(this,"name",void 0),(0,defineProperty.Z)(this,"workerThread",void 0),(0,defineProperty.Z)(this,"isRunning",!0),(0,defineProperty.Z)(this,"result",void 0),(0,defineProperty.Z)(this,"_resolve",(()=>{})),(0,defineProperty.Z)(this,"_reject",(()=>{})),this.name=jobName,this.workerThread=workerThread,this.result=new Promise(((resolve,reject)=>{this._resolve=resolve,this._reject=reject}))}postMessage(type,payload){this.workerThread.postMessage({source:"loaders.gl",type:type,payload:payload})}done(value){(0,assert.h)(this.isRunning),this.isRunning=!1,this._resolve(value)}error(error){(0,assert.h)(this.isRunning),this.isRunning=!1,this._reject(error)}}class WorkerPool{static isSupported(){return WorkerThread.isSupported()}constructor(props){(0,defineProperty.Z)(this,"name","unnamed"),(0,defineProperty.Z)(this,"source",void 0),(0,defineProperty.Z)(this,"url",void 0),(0,defineProperty.Z)(this,"maxConcurrency",1),(0,defineProperty.Z)(this,"maxMobileConcurrency",1),(0,defineProperty.Z)(this,"onDebug",(()=>{})),(0,defineProperty.Z)(this,"reuseWorkers",!0),(0,defineProperty.Z)(this,"props",{}),(0,defineProperty.Z)(this,"jobQueue",[]),(0,defineProperty.Z)(this,"idleQueue",[]),(0,defineProperty.Z)(this,"count",0),(0,defineProperty.Z)(this,"isDestroyed",!1),this.source=props.source,this.url=props.url,this.setProps(props)}destroy(){this.idleQueue.forEach((worker=>worker.destroy())),this.isDestroyed=!0}setProps(props){this.props={...this.props,...props},void 0!==props.name&&(this.name=props.name),void 0!==props.maxConcurrency&&(this.maxConcurrency=props.maxConcurrency),void 0!==props.maxMobileConcurrency&&(this.maxMobileConcurrency=props.maxMobileConcurrency),void 0!==props.reuseWorkers&&(this.reuseWorkers=props.reuseWorkers),void 0!==props.onDebug&&(this.onDebug=props.onDebug)}async startJob(name){let onMessage=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(job,type,data)=>job.done(data),onError=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(job,error)=>job.error(error);const startPromise=new Promise((onStart=>(this.jobQueue.push({name:name,onMessage:onMessage,onError:onError,onStart:onStart}),this)));return this._startQueuedJob(),await startPromise}async _startQueuedJob(){if(!this.jobQueue.length)return;const workerThread=this._getAvailableWorker();if(!workerThread)return;const queuedJob=this.jobQueue.shift();if(queuedJob){this.onDebug({message:"Starting job",name:queuedJob.name,workerThread:workerThread,backlog:this.jobQueue.length});const job=new WorkerJob(queuedJob.name,workerThread);workerThread.onMessage=data=>queuedJob.onMessage(job,data.type,data.payload),workerThread.onError=error=>queuedJob.onError(job,error),queuedJob.onStart(job);try{await job.result}finally{this.returnWorkerToQueue(workerThread)}}}returnWorkerToQueue(worker){this.isDestroyed||!this.reuseWorkers||this.count>this._getMaxConcurrency()?(worker.destroy(),this.count--):this.idleQueue.push(worker),this.isDestroyed||this._startQueuedJob()}_getAvailableWorker(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count{}};class WorkerFarm{static isSupported(){return WorkerThread.isSupported()}static getWorkerFarm(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return WorkerFarm._workerFarm=WorkerFarm._workerFarm||new WorkerFarm({}),WorkerFarm._workerFarm.setProps(props),WorkerFarm._workerFarm}constructor(props){(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"workerPools",new Map),this.props={...DEFAULT_PROPS},this.setProps(props),this.workerPools=new Map}destroy(){for(const workerPool of this.workerPools.values())workerPool.destroy();this.workerPools=new Map}setProps(props){this.props={...this.props,...props};for(const workerPool of this.workerPools.values())workerPool.setProps(this._getWorkerPoolProps())}getWorkerPool(options){const{name:name,source:source,url:url}=options;let workerPool=this.workerPools.get(name);return workerPool||(workerPool=new WorkerPool({name:name,source:source,url:url}),workerPool.setProps(this._getWorkerPoolProps()),this.workerPools.set(name,workerPool)),workerPool}_getWorkerPoolProps(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}}}(0,defineProperty.Z)(WorkerFarm,"_workerFarm",void 0);const NPM_TAG="latest";async function parseWithWorker(loader,data,options,context,parseOnMainThread){const name=loader.id,url=function getWorkerURL(worker){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const workerOptions=options[worker.id]||{},workerFile="".concat(worker.id,"-worker.js");let url=workerOptions.workerUrl;if(url||"compression"!==worker.id||(url=options.workerUrl),"test"===options._workerType&&(url="modules/".concat(worker.module,"/dist/").concat(workerFile)),!url){let version=worker.version;"latest"===version&&(version=NPM_TAG);const versionTag=version?"@".concat(version):"";url="https://unpkg.com/@loaders.gl/".concat(worker.module).concat(versionTag,"/dist/").concat(workerFile)}return(0,assert.h)(url),url}(loader,options),workerPool=WorkerFarm.getWorkerFarm(options).getWorkerPool({name:name,url:url});options=JSON.parse(JSON.stringify(options)),context=JSON.parse(JSON.stringify(context||{}));const job=await workerPool.startJob("process-on-worker",onMessage.bind(null,parseOnMainThread));job.postMessage("process",{input:data,options:options,context:context});const result=await job.result;return await result.result}async function onMessage(parseOnMainThread,job,type,payload){switch(type){case"done":job.done(payload);break;case"error":job.error(new Error(payload.error));break;case"process":const{id:id,input:input,options:options}=payload;try{const result=await parseOnMainThread(input,options);job.postMessage("done",{id:id,result:result})}catch(error){const message=error instanceof Error?error.message:"unknown error";job.postMessage("error",{id:id,error:message})}break;default:console.warn("parse-with-worker unknown message ".concat(type))}}var array_buffer_utils=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/binary-utils/array-buffer-utils.js");const DEFAULT_CHUNK_SIZE=262144;const make_array_buffer_iterator_DEFAULT_CHUNK_SIZE=262144;const make_blob_iterator_DEFAULT_CHUNK_SIZE=1048576;var env_utils_globals=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/globals.js");function memory_conversion_utils_toArrayBuffer(data){if(function isBuffer(value){return value&&"object"==typeof value&&value.isBuffer}(data))return data;if(data instanceof ArrayBuffer)return data;if(ArrayBuffer.isView(data))return 0===data.byteOffset&&data.byteLength===data.buffer.byteLength?data.buffer:data.buffer.slice(data.byteOffset,data.byteOffset+data.byteLength);if("string"==typeof data){const text=data;return(new TextEncoder).encode(text).buffer}if(data&&"object"==typeof data&&data._toArrayBuffer)return data._toArrayBuffer();throw new Error("toArrayBuffer")}function makeStreamIterator(stream,options){return env_utils_globals.jU?async function*makeBrowserStreamIterator(stream,options){const reader=stream.getReader();let nextBatchPromise;try{for(;;){const currentBatchPromise=nextBatchPromise||reader.read();null!=options&&options._streamReadAhead&&(nextBatchPromise=reader.read());const{done:done,value:value}=await currentBatchPromise;if(done)return;yield memory_conversion_utils_toArrayBuffer(value)}}catch(error){reader.releaseLock()}}(stream,options):async function*makeNodeStreamIterator(stream,options){for await(const chunk of stream)yield memory_conversion_utils_toArrayBuffer(chunk)}(stream)}function make_iterator_makeIterator(data,options){if("string"==typeof data)return function*makeStringIterator(string,options){const chunkSize=(null==options?void 0:options.chunkSize)||DEFAULT_CHUNK_SIZE;let offset=0;const textEncoder=new TextEncoder;for(;offset1&&void 0!==arguments[1]?arguments[1]:{};return function*(){const{chunkSize:chunkSize=make_array_buffer_iterator_DEFAULT_CHUNK_SIZE}=options;let byteOffset=0;for(;byteOffset60?"".concat(message.slice(0,60),"..."):message}catch(error){}return message}(response);throw new Error(message)}}(response),loader.binary?await response.arrayBuffer():await response.text()}if((0,is_type.Os)(data)&&(data=make_iterator_makeIterator(data,options)),(0,is_type.TW)(data)||(0,is_type.D0)(data))return async function concatenateArrayBuffersAsync(asyncIterator){const arrayBuffers=[];for await(const chunk of asyncIterator)arrayBuffers.push(chunk);return(0,array_buffer_utils.JY)(...arrayBuffers)}(data);throw new Error(ERR_DATA)}var path=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/path-utils/path.js");function getLoaderContext(context,options,parentContext){if(parentContext)return parentContext;const newContext={fetch:getFetchFunction(options,context),...context};if(newContext.url){const baseUrl=stripQueryString(newContext.url);newContext.baseUrl=baseUrl,newContext.queryString=function extractQueryString(url){const matches=url.match(QUERY_STRING_PATTERN);return matches&&matches[0]}(newContext.url),newContext.filename=path.vB(baseUrl),newContext.baseUrl=path.XX(baseUrl)}return Array.isArray(newContext.loaders)||(newContext.loaders=null),newContext}const log_log=new(__webpack_require__("./node_modules/@probe.gl/log/dist/esm/log.js").Z)({id:"loaders.gl"});var register_loaders=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/register-loaders.js");const EXT_PATTERN=/\.([^.]+)$/;function selectLoaderSync(data){let loaders=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],options=arguments.length>2?arguments[2]:void 0,context=arguments.length>3?arguments[3]:void 0;if(!validHTTPResponse(data))return null;if(loaders&&!Array.isArray(loaders))return(0,normalize_loader.T)(loaders);let candidateLoaders=[];loaders&&(candidateLoaders=candidateLoaders.concat(loaders)),null!=options&&options.ignoreRegisteredLoaders||candidateLoaders.push(...(0,register_loaders.kO)()),function normalizeLoaders(loaders){for(const loader of loaders)(0,normalize_loader.T)(loader)}(candidateLoaders);const loader=function selectLoaderInternal(data,loaders,options,context){const url=getResourceUrl(data),type=getResourceMIMEType(data),testUrl=stripQueryString(url)||(null==context?void 0:context.url);let loader=null,reason="";null!=options&&options.mimeType&&(loader=findLoaderByMIMEType(loaders,null==options?void 0:options.mimeType),reason="match forced by supplied MIME type ".concat(null==options?void 0:options.mimeType));var _loader;loader=loader||function findLoaderByUrl(loaders,url){const match=url&&EXT_PATTERN.exec(url),extension=match&&match[1];return extension?function findLoaderByExtension(loaders,extension){extension=extension.toLowerCase();for(const loader of loaders)for(const loaderExtension of loader.extensions)if(loaderExtension.toLowerCase()===extension)return loader;return null}(loaders,extension):null}(loaders,testUrl),reason=reason||(loader?"matched url ".concat(testUrl):""),loader=loader||findLoaderByMIMEType(loaders,type),reason=reason||(loader?"matched MIME type ".concat(type):""),loader=loader||function findLoaderByInitialBytes(loaders,data){if(!data)return null;for(const loader of loaders)if("string"==typeof data){if(testDataAgainstText(data,loader))return loader}else if(ArrayBuffer.isView(data)){if(testDataAgainstBinary(data.buffer,data.byteOffset,loader))return loader}else if(data instanceof ArrayBuffer){if(testDataAgainstBinary(data,0,loader))return loader}return null}(loaders,data),reason=reason||(loader?"matched initial data ".concat(getFirstCharacters(data)):""),loader=loader||findLoaderByMIMEType(loaders,null==options?void 0:options.fallbackMimeType),reason=reason||(loader?"matched fallback MIME type ".concat(type):""),reason&&log_log.log(1,"selectLoader selected ".concat(null===(_loader=loader)||void 0===_loader?void 0:_loader.name,": ").concat(reason,"."));return loader}(data,candidateLoaders,options,context);if(!(loader||null!=options&&options.nothrow))throw new Error(getNoValidLoaderMessage(data));return loader}function validHTTPResponse(data){return!(data instanceof Response&&204===data.status)}function getNoValidLoaderMessage(data){const url=getResourceUrl(data),type=getResourceMIMEType(data);let message="No valid loader found (";message+=url?"".concat(path.vB(url),", "):"no url provided, ",message+="MIME type: ".concat(type?'"'.concat(type,'"'):"not provided",", ");const firstCharacters=data?getFirstCharacters(data):"";return message+=firstCharacters?' first bytes: "'.concat(firstCharacters,'"'):"first bytes: not available",message+=")",message}function findLoaderByMIMEType(loaders,mimeType){for(const loader of loaders){if(loader.mimeTypes&&loader.mimeTypes.includes(mimeType))return loader;if(mimeType==="application/x.".concat(loader.id))return loader}return null}function testDataAgainstText(data,loader){if(loader.testText)return loader.testText(data);return(Array.isArray(loader.tests)?loader.tests:[loader.tests]).some((test=>data.startsWith(test)))}function testDataAgainstBinary(data,byteOffset,loader){return(Array.isArray(loader.tests)?loader.tests:[loader.tests]).some((test=>function testBinary(data,byteOffset,loader,test){if(test instanceof ArrayBuffer)return(0,array_buffer_utils.Xq)(test,data,test.byteLength);switch(typeof test){case"function":return test(data,loader);case"string":return test===getMagicString(data,byteOffset,test.length);default:return!1}}(data,byteOffset,loader,test)))}function getFirstCharacters(data){let length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if("string"==typeof data)return data.slice(0,length);if(ArrayBuffer.isView(data))return getMagicString(data.buffer,data.byteOffset,length);if(data instanceof ArrayBuffer){return getMagicString(data,0,length)}return""}function getMagicString(arrayBuffer,byteOffset,length){if(arrayBuffer.byteLength1&&void 0!==arguments[1]?arguments[1]:[],options=arguments.length>2?arguments[2]:void 0,context=arguments.length>3?arguments[3]:void 0;if(!validHTTPResponse(data))return null;let loader=selectLoaderSync(data,loaders,{...options,nothrow:!0},context);if(loader)return loader;if((0,is_type.Lj)(data)&&(loader=selectLoaderSync(data=await data.slice(0,10).arrayBuffer(),loaders,options,context)),!(loader||null!=options&&options.nothrow))throw new Error(getNoValidLoaderMessage(data));return loader}(data,candidateLoaders,options);return loader?(context=getLoaderContext({url:url,parse:parse,loaders:candidateLoaders},options=(0,option_utils.GR)(options,loader,candidateLoaders,url),context||null),await async function parseWithLoader(loader,data,options,context){if(function validateWorkerVersion(worker){let coreVersion=arguments.length>1&&void 0!==arguments[1]?arguments[1]:VERSION;(0,assert.h)(worker,"no worker provided");const workerVersion=worker.version;return!(!coreVersion||!workerVersion)}(loader),(0,is_type.Ew)(data)){const response=data,{ok:ok,redirected:redirected,status:status,statusText:statusText,type:type,url:url}=response,headers=Object.fromEntries(response.headers.entries());context.response={headers:headers,ok:ok,redirected:redirected,status:status,statusText:statusText,type:type,url:url}}if(data=await getArrayBufferOrStringFromData(data,loader,options),loader.parseTextSync&&"string"==typeof data)return options.dataType="text",loader.parseTextSync(data,options,context,loader);if(function canParseWithWorker(loader,options){return!!WorkerFarm.isSupported()&&!!(globals.jU||null!=options&&options._nodeWorkers)&&loader.worker&&(null==options?void 0:options.worker)}(loader,options))return await parseWithWorker(loader,data,options,context,parse);if(loader.parseText&&"string"==typeof data)return await loader.parseText(data,options,context,loader);if(loader.parse)return await loader.parse(data,options,context,loader);throw(0,assert.h)(!loader.parseSync),new Error("".concat(loader.id," loader - no parser found and worker is disabled"))}(loader,data,options,context)):null}async function load(url,loaders,options,context){Array.isArray(loaders)||(0,normalize_loader.C)(loaders)||(void 0,options=loaders,loaders=void 0);const fetch=getFetchFunction(options);let data=url;return"string"==typeof url&&(data=await fetch(url)),(0,is_type.Lj)(url)&&(data=await fetch(url)),await parse(data,loaders,options)}},"./node_modules/@loaders.gl/core/dist/esm/lib/api/register-loaders.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{fh:function(){return registerLoaders},kO:function(){return getRegisteredLoaders}});var _loader_utils_normalize_loader__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/loader-utils/normalize-loader.js"),_loader_utils_option_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/loader-utils/option-utils.js");const getGlobalLoaderRegistry=()=>{const state=(0,_loader_utils_option_utils__WEBPACK_IMPORTED_MODULE_0__.rx)();return state.loaderRegistry=state.loaderRegistry||[],state.loaderRegistry};function registerLoaders(loaders){const loaderRegistry=getGlobalLoaderRegistry();loaders=Array.isArray(loaders)?loaders:[loaders];for(const loader of loaders){const normalizedLoader=(0,_loader_utils_normalize_loader__WEBPACK_IMPORTED_MODULE_1__.T)(loader);loaderRegistry.find((registeredLoader=>normalizedLoader===registeredLoader))||loaderRegistry.unshift(normalizedLoader)}}function getRegisteredLoaders(){return getGlobalLoaderRegistry()}},"./node_modules/@loaders.gl/core/dist/esm/lib/loader-utils/normalize-loader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return isLoaderObject},T:function(){return normalizeLoader}});var _loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/assert.js");function isLoaderObject(loader){var _loader;if(!loader)return!1;Array.isArray(loader)&&(loader=loader[0]);return Array.isArray(null===(_loader=loader)||void 0===_loader?void 0:_loader.extensions)}function normalizeLoader(loader){var _loader2,_loader3;let options;return(0,_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_0__.h)(loader,"null loader"),(0,_loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_0__.h)(isLoaderObject(loader),"invalid loader"),Array.isArray(loader)&&(options=loader[1],loader=loader[0],loader={...loader,options:{...loader.options,...options}}),(null!==(_loader2=loader)&&void 0!==_loader2&&_loader2.parseTextSync||null!==(_loader3=loader)&&void 0!==_loader3&&_loader3.parseText)&&(loader.text=!0),loader.text||(loader.binary=!0),loader}},"./node_modules/@loaders.gl/core/dist/esm/lib/loader-utils/option-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{pm:function(){return getGlobalLoaderOptions},rx:function(){return getGlobalLoaderState},GR:function(){return normalizeOptions}});var is_type=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/javascript-utils/is-type.js"),defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");const probeLog=new(__webpack_require__("./node_modules/@probe.gl/log/dist/esm/log.js").Z)({id:"loaders.gl"});class NullLog{log(){return()=>{}}info(){return()=>{}}warn(){return()=>{}}error(){return()=>{}}}var globals=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/globals.js");const DEFAULT_LOADER_OPTIONS={fetch:null,mimeType:void 0,nothrow:!1,log:new class ConsoleLog{constructor(){(0,defineProperty.Z)(this,"console",void 0),this.console=console}log(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return this.console.log.bind(this.console,...args)}info(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return this.console.info.bind(this.console,...args)}warn(){for(var _len3=arguments.length,args=new Array(_len3),_key3=0;_key3<_len3;_key3++)args[_key3]=arguments[_key3];return this.console.warn.bind(this.console,...args)}error(){for(var _len4=arguments.length,args=new Array(_len4),_key4=0;_key4<_len4;_key4++)args[_key4]=arguments[_key4];return this.console.error.bind(this.console,...args)}},CDN:"https://unpkg.com/@loaders.gl",worker:!0,maxConcurrency:3,maxMobileConcurrency:1,reuseWorkers:globals.jU,_nodeWorkers:!1,_workerType:"",limit:0,_limitMB:0,batchSize:"auto",batchDebounceMs:0,metadata:!1,transforms:[]},REMOVED_LOADER_OPTIONS={throws:"nothrow",dataType:"(no longer used)",uri:"baseUri",method:"fetch.method",headers:"fetch.headers",body:"fetch.body",mode:"fetch.mode",credentials:"fetch.credentials",cache:"fetch.cache",redirect:"fetch.redirect",referrer:"fetch.referrer",referrerPolicy:"fetch.referrerPolicy",integrity:"fetch.integrity",keepalive:"fetch.keepalive",signal:"fetch.signal"};function getGlobalLoaderState(){globalThis.loaders=globalThis.loaders||{};const{loaders:loaders}=globalThis;return loaders._state=loaders._state||{},loaders._state}const getGlobalLoaderOptions=()=>{const state=getGlobalLoaderState();return state.globalOptions=state.globalOptions||{...DEFAULT_LOADER_OPTIONS},state.globalOptions};function normalizeOptions(options,loader,loaders,url){return loaders=loaders||[],function validateOptions(options,loaders){validateOptionsObject(options,null,DEFAULT_LOADER_OPTIONS,REMOVED_LOADER_OPTIONS,loaders);for(const loader of loaders){const idOptions=options&&options[loader.id]||{},loaderOptions=loader.options&&loader.options[loader.id]||{},deprecatedOptions=loader.deprecatedOptions&&loader.deprecatedOptions[loader.id]||{};validateOptionsObject(idOptions,loader.id,loaderOptions,deprecatedOptions,loaders)}}(options,loaders=Array.isArray(loaders)?loaders:[loaders]),normalizeOptionsInternal(loader,options,url)}function validateOptionsObject(options,id,defaultOptions,deprecatedOptions,loaders){const loaderName=id||"Top level",prefix=id?"".concat(id,"."):"";for(const key in options){const isSubOptions=!id&&(0,is_type.Kn)(options[key]);if(!(key in defaultOptions)&&!("baseUri"===key&&!id)&&!("workerUrl"===key&&id))if(key in deprecatedOptions)probeLog.warn("".concat(loaderName," loader option '").concat(prefix).concat(key,"' no longer supported, use '").concat(deprecatedOptions[key],"'"))();else if(!isSubOptions){const suggestion=findSimilarOption(key,loaders);probeLog.warn("".concat(loaderName," loader option '").concat(prefix).concat(key,"' not recognized. ").concat(suggestion))()}}}function findSimilarOption(optionKey,loaders){const lowerCaseOptionKey=optionKey.toLowerCase();let bestSuggestion="";for(const loader of loaders)for(const key in loader.options){if(optionKey===key)return"Did you mean '".concat(loader.id,".").concat(key,"'?");const lowerCaseKey=key.toLowerCase();(lowerCaseOptionKey.startsWith(lowerCaseKey)||lowerCaseKey.startsWith(lowerCaseOptionKey))&&(bestSuggestion=bestSuggestion||"Did you mean '".concat(loader.id,".").concat(key,"'?"))}return bestSuggestion}function normalizeOptionsInternal(loader,options,url){const mergedOptions={...loader.options||{}};return function addUrlOptions(options,url){url&&!("baseUri"in options)&&(options.baseUri=url)}(mergedOptions,url),null===mergedOptions.log&&(mergedOptions.log=new NullLog),mergeNestedFields(mergedOptions,getGlobalLoaderOptions()),mergeNestedFields(mergedOptions,options),mergedOptions}function mergeNestedFields(mergedOptions,options){for(const key in options)if(key in options){const value=options[key];(0,is_type.Ss)(value)&&(0,is_type.Ss)(mergedOptions[key])?mergedOptions[key]={...mergedOptions[key],...options[key]}:mergedOptions[key]=options[key]}}},"./node_modules/@loaders.gl/images/dist/esm/image-loader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{S:function(){return ImageLoader}});var assert=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/assert.js"),globals=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/globals.js");const{_parseImageNode:_parseImageNode}=globalThis,IMAGE_SUPPORTED="undefined"!=typeof Image,IMAGE_BITMAP_SUPPORTED="undefined"!=typeof ImageBitmap,NODE_IMAGE_SUPPORTED=Boolean(_parseImageNode),DATA_SUPPORTED=!!globals.jU||NODE_IMAGE_SUPPORTED;function getImageType(image){const format=getImageTypeOrNull(image);if(!format)throw new Error("Not an image");return format}function getImageData(image){switch(getImageType(image)){case"data":return image;case"image":case"imagebitmap":const canvas=document.createElement("canvas"),context=canvas.getContext("2d");if(!context)throw new Error("getImageData");return canvas.width=image.width,canvas.height=image.height,context.drawImage(image,0,0),context.getImageData(0,0,image.width,image.height);default:throw new Error("getImageData")}}function getImageTypeOrNull(image){return"undefined"!=typeof ImageBitmap&&image instanceof ImageBitmap?"imagebitmap":"undefined"!=typeof Image&&image instanceof Image?"image":image&&"object"==typeof image&&image.data&&image.width&&image.height?"data":null}const SVG_DATA_URL_PATTERN=/^data:image\/svg\+xml/,SVG_URL_PATTERN=/\.svg((\?|#).*)?$/;function isSVG(url){return url&&(SVG_DATA_URL_PATTERN.test(url)||SVG_URL_PATTERN.test(url))}function getBlob(arrayBuffer,url){if(isSVG(url))throw new Error("SVG cannot be parsed directly to imagebitmap");return new Blob([new Uint8Array(arrayBuffer)])}async function parseToImage(arrayBuffer,options,url){const blobOrDataUrl=function getBlobOrSVGDataUrl(arrayBuffer,url){if(isSVG(url)){let xmlText=(new TextDecoder).decode(arrayBuffer);try{"function"==typeof unescape&&"function"==typeof encodeURIComponent&&(xmlText=unescape(encodeURIComponent(xmlText)))}catch(error){throw new Error(error.message)}return"data:image/svg+xml;base64,".concat(btoa(xmlText))}return getBlob(arrayBuffer,url)}(arrayBuffer,url),URL=self.URL||self.webkitURL,objectUrl="string"!=typeof blobOrDataUrl&&URL.createObjectURL(blobOrDataUrl);try{return await async function loadToImage(url,options){const image=new Image;if(image.src=url,options.image&&options.image.decode&&image.decode)return await image.decode(),image;return await new Promise(((resolve,reject)=>{try{image.onload=()=>resolve(image),image.onerror=err=>reject(new Error("Could not load image ".concat(url,": ").concat(err)))}catch(error){reject(error)}}))}(objectUrl||blobOrDataUrl,options)}finally{objectUrl&&URL.revokeObjectURL(objectUrl)}}const EMPTY_OBJECT={};let imagebitmapOptionsSupported=!0;async function parseToImageBitmap(arrayBuffer,options,url){let blob;if(isSVG(url)){blob=await parseToImage(arrayBuffer,options,url)}else blob=getBlob(arrayBuffer,url);const imagebitmapOptions=options&&options.imagebitmap;return await async function safeCreateImageBitmap(blob){let imagebitmapOptions=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function isEmptyObject(object){for(const key in object||EMPTY_OBJECT)return!1;return!0}(imagebitmapOptions)&&imagebitmapOptionsSupported||(imagebitmapOptions=null);if(imagebitmapOptions)try{return await createImageBitmap(blob,imagebitmapOptions)}catch(error){console.warn(error),imagebitmapOptionsSupported=!1}return await createImageBitmap(blob)}(blob,imagebitmapOptions)}var binary_image_api=__webpack_require__("./node_modules/@loaders.gl/images/dist/esm/lib/category-api/binary-image-api.js");const ImageLoader={id:"image",module:"images",name:"Images",version:"3.4.15",mimeTypes:["image/png","image/jpeg","image/gif","image/webp","image/avif","image/bmp","image/vnd.microsoft.icon","image/svg+xml"],extensions:["png","jpg","jpeg","gif","webp","bmp","ico","svg","avif"],parse:async function parseImage(arrayBuffer,options,context){const imageType=((options=options||{}).image||{}).type||"auto",{url:url}=context||{};let image;switch(function getLoadableImageType(type){switch(type){case"auto":case"data":return function getDefaultImageType(){if(IMAGE_BITMAP_SUPPORTED)return"imagebitmap";if(IMAGE_SUPPORTED)return"image";if(DATA_SUPPORTED)return"data";throw new Error("Install '@loaders.gl/polyfills' to parse images under Node.js")}();default:return function isImageTypeSupported(type){switch(type){case"auto":return IMAGE_BITMAP_SUPPORTED||IMAGE_SUPPORTED||DATA_SUPPORTED;case"imagebitmap":return IMAGE_BITMAP_SUPPORTED;case"image":return IMAGE_SUPPORTED;case"data":return DATA_SUPPORTED;default:throw new Error("@loaders.gl/images: image ".concat(type," not supported in this environment"))}}(type),type}}(imageType)){case"imagebitmap":image=await parseToImageBitmap(arrayBuffer,options,url);break;case"image":image=await parseToImage(arrayBuffer,options,url);break;case"data":image=await async function parseToNodeImage(arrayBuffer,options){const{mimeType:mimeType}=(0,binary_image_api.I)(arrayBuffer)||{},_parseImageNode=globalThis._parseImageNode;return(0,assert.h)(_parseImageNode),await _parseImageNode(arrayBuffer,mimeType)}(arrayBuffer);break;default:(0,assert.h)(!1)}return"data"===imageType&&(image=getImageData(image)),image},tests:[arrayBuffer=>Boolean((0,binary_image_api.I)(new DataView(arrayBuffer)))],options:{image:{type:"auto",decode:!0}}}},"./node_modules/@loaders.gl/images/dist/esm/lib/category-api/binary-image-api.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function getISOBMFFMediaType(buffer){return function checkString(buffer,header){let offset=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const headerBytes=function stringToBytes(string){return[...string].map((character=>character.charCodeAt(0)))}(header);for(let i=0;i=24&&2303741511===dataView.getUint32(0,BIG_ENDIAN);if(!isPng)return null;return{mimeType:"image/png",width:dataView.getUint32(16,BIG_ENDIAN),height:dataView.getUint32(20,BIG_ENDIAN)}}(dataView)||function getJpegMetadata(binaryData){const dataView=toDataView(binaryData),isJpeg=dataView.byteLength>=3&&65496===dataView.getUint16(0,BIG_ENDIAN)&&255===dataView.getUint8(2);if(!isJpeg)return null;const{tableMarkers:tableMarkers,sofMarkers:sofMarkers}=function getJpegMarkers(){const tableMarkers=new Set([65499,65476,65484,65501,65534]);for(let i=65504;i<65520;++i)tableMarkers.add(i);const sofMarkers=new Set([65472,65473,65474,65475,65477,65478,65479,65481,65482,65483,65485,65486,65487,65502]);return{tableMarkers:tableMarkers,sofMarkers:sofMarkers}}();let i=2;for(;i+9=10&&1195984440===dataView.getUint32(0,BIG_ENDIAN);if(!isGif)return null;return{mimeType:"image/gif",width:dataView.getUint16(6,LITTLE_ENDIAN),height:dataView.getUint16(8,LITTLE_ENDIAN)}}(dataView)||function getBmpMetadata(binaryData){const dataView=toDataView(binaryData),isBmp=dataView.byteLength>=14&&16973===dataView.getUint16(0,BIG_ENDIAN)&&dataView.getUint32(2,LITTLE_ENDIAN)===dataView.byteLength;if(!isBmp)return null;return{mimeType:"image/bmp",width:dataView.getUint32(18,LITTLE_ENDIAN),height:dataView.getUint32(22,LITTLE_ENDIAN)}}(dataView)||function getISOBMFFMetadata(binaryData){const buffer=new Uint8Array(binaryData instanceof DataView?binaryData.buffer:binaryData),mediaType=getISOBMFFMediaType(buffer);if(!mediaType)return null;return{mimeType:mediaType.mimeType,width:0,height:0}}(dataView)}function toDataView(data){if(data instanceof DataView)return data;if(ArrayBuffer.isView(data))return new DataView(data.buffer);if(data instanceof ArrayBuffer)return new DataView(data);throw new Error("toDataView")}},"./node_modules/@loaders.gl/loader-utils/dist/esm/lib/binary-utils/array-buffer-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function compareArrayBuffers(arrayBuffer1,arrayBuffer2,byteLength){if(byteLength=byteLength||arrayBuffer1.byteLength,arrayBuffer1.byteLengthsource2 instanceof ArrayBuffer?new Uint8Array(source2):source2)),byteLength=sourceArrays.reduce(((length,typedArray)=>length+typedArray.byteLength),0),result=new Uint8Array(byteLength);let offset=0;for(const sourceArray of sourceArrays)result.set(sourceArray,offset),offset+=sourceArray.byteLength;return result.buffer}function sliceArrayBuffer(arrayBuffer,byteOffset,byteLength){const subArray=void 0!==byteLength?new Uint8Array(arrayBuffer).subarray(byteOffset,byteOffset+byteLength):new Uint8Array(arrayBuffer).subarray(byteOffset);return new Uint8Array(subArray).buffer}__webpack_require__.d(__webpack_exports__,{JY:function(){return concatenateArrayBuffers},Xq:function(){return compareArrayBuffers},qv:function(){return sliceArrayBuffer}})},"./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"loader assertion failed.")}__webpack_require__.d(__webpack_exports__,{h:function(){return assert}})},"./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/globals.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{jU:function(){return isBrowser}});var process=__webpack_require__("./node_modules/process/browser.js");"undefined"!=typeof self&&self,"undefined"!=typeof window&&window,void 0!==__webpack_require__.g&&__webpack_require__.g,"undefined"!=typeof document&&document;const isBrowser=Boolean("object"!=typeof process||"[object process]"!==String(process)||process.browser),matches=void 0!==process&&process.version&&/v([0-9]*)/.exec(process.version);matches&&parseFloat(matches[1])},"./node_modules/@loaders.gl/loader-utils/dist/esm/lib/path-utils/path.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function filename(url){const slashIndex=url?url.lastIndexOf("/"):-1;return slashIndex>=0?url.substr(slashIndex+1):""}function dirname(url){const slashIndex=url?url.lastIndexOf("/"):-1;return slashIndex>=0?url.substr(0,slashIndex):""}__webpack_require__.d(__webpack_exports__,{XX:function(){return dirname},vB:function(){return filename}})},"./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"loaders.gl assertion failed.")}__webpack_require__.d(__webpack_exports__,{h:function(){return assert}})},"./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/globals.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{CO:function(){return global_},hJ:function(){return isWorker},jU:function(){return isBrowser},tq:function(){return isMobile}});var process=__webpack_require__("./node_modules/process/browser.js");const globals={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==__webpack_require__.g&&__webpack_require__.g,document:"undefined"!=typeof document&&document},global_=globals.global||globals.self||globals.window||{},isBrowser="object"!=typeof process||"[object process]"!==String(process)||process.browser,isWorker="function"==typeof importScripts,isMobile="undefined"!=typeof window&&void 0!==window.orientation,matches=void 0!==process&&process.version&&/v([0-9]*)/.exec(process.version);matches&&parseFloat(matches[1])},"./node_modules/@luma.gl/constants/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_exports__.default={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,FUNC_ADD:32774,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,BLEND_COLOR:32773,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,VENDOR:7936,RENDERER:7937,VERSION:7938,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,BROWSER_DEFAULT_WEBGL:37444,STATIC_DRAW:35044,STREAM_DRAW:35040,DYNAMIC_DRAW:35048,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,CULL_FACE:2884,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,BLEND:3042,DEPTH_TEST:2929,DITHER:3024,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,SCISSOR_TEST:3089,STENCIL_TEST:2960,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CONTEXT_LOST_WEBGL:37442,CW:2304,CCW:2305,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DOUBLE:5130,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,COMPILE_STATUS:35713,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_ATTRIBUTES:35721,ACTIVE_UNIFORMS:35718,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,ALWAYS:519,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,GEQUAL:518,NOTEQUAL:517,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,TEXTURE_WIDTH:4096,TEXTURE_HEIGHT:4097,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,MAX_3D_TEXTURE_SIZE:32883,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,MAX_TEXTURE_LOD_BIAS:34045,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,RASTERIZER_DISCARD:35977,VERTEX_ARRAY_BINDING:34229,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,MAX_ELEMENT_INDEX:36203,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,RGB9_E5:35901,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2UI:36975,TEXTURE_IMMUTABLE_FORMAT:37167,TEXTURE_IMMUTABLE_LEVELS:33503,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,UNSIGNED_INT_24_8:34042,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,INT_2_10_10_10_REV:36255,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,MAX_SAMPLES:36183,SAMPLER_BINDING:35097,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,UNSIGNED_NORMALIZED:35863,SIGNED_NORMALIZED:36764,VERTEX_ATTRIB_ARRAY_INTEGER:35069,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,DEPTH24_STENCIL8:35056,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,COLOR:6144,DEPTH:6145,STENCIL:6146,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,INVALID_INDEX:4294967295,TIMEOUT_IGNORED:-1,MAX_CLIENT_WAIT_TIMEOUT_WEBGL:37447,VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,UNMASKED_VENDOR_WEBGL:37445,UNMASKED_RENDERER_WEBGL:37446,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,TEXTURE_MAX_ANISOTROPY_EXT:34046,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798,UNSIGNED_INT_24_8_WEBGL:34042,HALF_FLOAT_OES:36193,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863,MIN_EXT:32775,MAX_EXT:32776,SRGB_EXT:35904,SRGB_ALPHA_EXT:35906,SRGB8_ALPHA8_EXT:35907,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,COLOR_ATTACHMENT0_WEBGL:36064,COLOR_ATTACHMENT1_WEBGL:36065,COLOR_ATTACHMENT2_WEBGL:36066,COLOR_ATTACHMENT3_WEBGL:36067,COLOR_ATTACHMENT4_WEBGL:36068,COLOR_ATTACHMENT5_WEBGL:36069,COLOR_ATTACHMENT6_WEBGL:36070,COLOR_ATTACHMENT7_WEBGL:36071,COLOR_ATTACHMENT8_WEBGL:36072,COLOR_ATTACHMENT9_WEBGL:36073,COLOR_ATTACHMENT10_WEBGL:36074,COLOR_ATTACHMENT11_WEBGL:36075,COLOR_ATTACHMENT12_WEBGL:36076,COLOR_ATTACHMENT13_WEBGL:36077,COLOR_ATTACHMENT14_WEBGL:36078,COLOR_ATTACHMENT15_WEBGL:36079,DRAW_BUFFER0_WEBGL:34853,DRAW_BUFFER1_WEBGL:34854,DRAW_BUFFER2_WEBGL:34855,DRAW_BUFFER3_WEBGL:34856,DRAW_BUFFER4_WEBGL:34857,DRAW_BUFFER5_WEBGL:34858,DRAW_BUFFER6_WEBGL:34859,DRAW_BUFFER7_WEBGL:34860,DRAW_BUFFER8_WEBGL:34861,DRAW_BUFFER9_WEBGL:34862,DRAW_BUFFER10_WEBGL:34863,DRAW_BUFFER11_WEBGL:34864,DRAW_BUFFER12_WEBGL:34865,DRAW_BUFFER13_WEBGL:34866,DRAW_BUFFER14_WEBGL:34867,DRAW_BUFFER15_WEBGL:34868,MAX_COLOR_ATTACHMENTS_WEBGL:36063,MAX_DRAW_BUFFERS_WEBGL:34852,VERTEX_ARRAY_BINDING_OES:34229,QUERY_COUNTER_BITS_EXT:34916,CURRENT_QUERY_EXT:34917,QUERY_RESULT_EXT:34918,QUERY_RESULT_AVAILABLE_EXT:34919,TIME_ELAPSED_EXT:35007,TIMESTAMP_EXT:36392,GPU_DISJOINT_EXT:36795}},"./node_modules/@luma.gl/engine/dist/esm/animation/timeline.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{T:function(){return Timeline}});let channelHandles=1,animationHandles=1;class Timeline{constructor(){this.time=0,this.channels=new Map,this.animations=new Map,this.playing=!1,this.lastEngineTime=-1}addChannel(props){const{delay:delay=0,duration:duration=Number.POSITIVE_INFINITY,rate:rate=1,repeat:repeat=1}=props,handle=channelHandles++,channel={time:0,delay:delay,duration:duration,rate:rate,repeat:repeat};return this._setChannelTime(channel,this.time),this.channels.set(handle,channel),handle}removeChannel(handle){this.channels.delete(handle);for(const[animationHandle,animation]of this.animations)animation.channel===handle&&this.detachAnimation(animationHandle)}isFinished(handle){const channel=this.channels.get(handle);return void 0!==channel&&this.time>=channel.delay+channel.duration*channel.repeat}getTime(handle){if(void 0===handle)return this.time;const channel=this.channels.get(handle);return void 0===channel?-1:channel.time}setTime(time){this.time=Math.max(0,time);const channels=this.channels.values();for(const channel of channels)this._setChannelTime(channel,this.time);const animations=this.animations.values();for(const animationData of animations){const{animation:animation,channel:channel}=animationData;animation.setTime(this.getTime(channel))}}play(){this.playing=!0}pause(){this.playing=!1,this.lastEngineTime=-1}reset(){this.setTime(0)}attachAnimation(animation,channelHandle){const animationHandle=animationHandles++;return this.animations.set(animationHandle,{animation:animation,channel:channelHandle}),animation.setTime(this.getTime(channelHandle)),animationHandle}detachAnimation(handle){this.animations.delete(handle)}update(engineTime){this.playing&&(-1===this.lastEngineTime&&(this.lastEngineTime=engineTime),this.setTime(this.time+(engineTime-this.lastEngineTime)),this.lastEngineTime=engineTime)}_setChannelTime(channel,time){const offsetTime=time-channel.delay;offsetTime>=channel.duration*channel.repeat?channel.time=channel.duration*channel.rate:(channel.time=Math.max(0,offsetTime)%channel.duration,channel.time*=channel.rate)}}},"./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Geometry}});var _luma_gl_webgl__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const DRAW_MODE={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6};class Geometry{static get DRAW_MODE(){return DRAW_MODE}constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_0__.hQ)("geometry"),drawMode:drawMode=DRAW_MODE.TRIANGLES,attributes:attributes={},indices:indices=null,vertexCount:vertexCount=null}=props;this.id=id,this.drawMode=0|drawMode,this.attributes={},this.userData={},this._setAttributes(attributes,indices),this.vertexCount=vertexCount||this._calculateVertexCount(this.attributes,this.indices)}get mode(){return this.drawMode}getVertexCount(){return this.vertexCount}getAttributes(){return this.indices?{indices:this.indices,...this.attributes}:this.attributes}_print(attributeName){return"Geometry ".concat(this.id," attribute ").concat(attributeName)}_setAttributes(attributes,indices){indices&&(this.indices=ArrayBuffer.isView(indices)?{value:indices,size:1}:indices);for(const attributeName in attributes){let attribute=attributes[attributeName];attribute=ArrayBuffer.isView(attribute)?{value:attribute}:attribute,(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.h)(ArrayBuffer.isView(attribute.value),"".concat(this._print(attributeName),": must be typed array or object with value as typed array")),"POSITION"!==attributeName&&"positions"!==attributeName||attribute.size||(attribute.size=3),"indices"===attributeName?((0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.h)(!this.indices),this.indices=attribute):this.attributes[attributeName]=attribute}return this.indices&&void 0!==this.indices.isIndexed&&(this.indices=Object.assign({},this.indices),delete this.indices.isIndexed),this}_calculateVertexCount(attributes,indices){if(indices)return indices.value.length;let vertexCount=1/0;for(const attributeName in attributes){const attribute=attributes[attributeName],{value:value,size:size,constant:constant}=attribute;!constant&&value&&size>=1&&(vertexCount=Math.min(vertexCount,value.length/size))}return(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.h)(Number.isFinite(vertexCount)),vertexCount}}},"./node_modules/@luma.gl/engine/dist/esm/lib/animation-loop.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return AnimationLoop}});var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),init=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/init.js"),assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),resource=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),features=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),webgl_features_table=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js");class Query extends resource.Z{get[Symbol.toStringTag](){return"Query"}static isSupported(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const webgl2=(0,esm.D0)(gl),hasTimerQuery=(0,features.ag)(gl,webgl_features_table.h.TIMER_QUERY);let supported=webgl2||hasTimerQuery;for(const key of opts)switch(key){case"queries":supported=supported&&webgl2;break;case"timers":supported=supported&&hasTimerQuery;break;default:(0,assert.h)(!1)}return supported}constructor(gl){super(gl,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.target=null,this._queryPending=!1,this._pollingPromise=null,Object.seal(this)}beginTimeElapsedQuery(){return this.begin(35007)}beginOcclusionQuery(){let{conservative:conservative=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.begin(conservative?36202:35887)}beginTransformFeedbackQuery(){return this.begin(35976)}begin(target){return this._queryPending||(this.target=target,this.gl2.beginQuery(this.target,this.handle)),this}end(){return this._queryPending||this.target&&(this.gl2.endQuery(this.target),this.target=null,this._queryPending=!0),this}isResultAvailable(){if(!this._queryPending)return!1;const resultAvailable=this.gl2.getQueryParameter(this.handle,34919);return resultAvailable&&(this._queryPending=!1),resultAvailable}isTimerDisjoint(){return this.gl2.getParameter(36795)}getResult(){return this.gl2.getQueryParameter(this.handle,34918)}getTimerMilliseconds(){return this.getResult()/1e6}createPoll(){let limit=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;if(this._pollingPromise)return this._pollingPromise;let counter=0;return this._pollingPromise=new Promise(((resolve,reject)=>{const poll=()=>{this.isResultAvailable()?(resolve(this.getResult()),this._pollingPromise=null):counter++>limit?(reject("Timed out"),this._pollingPromise=null):requestAnimationFrame(poll)};requestAnimationFrame(poll)})),this._pollingPromise}_createHandle(){return Query.isSupported(this.gl)?this.gl2.createQuery():null}_deleteHandle(){this.gl2.deleteQuery(this.handle)}}var framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js");const isPage=(0,__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js").Z)()&&"undefined"!=typeof document;let statIdCounter=0;class AnimationLoop{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{onCreateContext:onCreateContext=(opts=>(0,esm.s9)(opts)),onAddHTML:onAddHTML=null,onInitialize:onInitialize=(()=>{}),onRender:onRender=(()=>{}),onFinalize:onFinalize=(()=>{}),onError:onError,gl:gl=null,glOptions:glOptions={},debug:debug=!1,createFramebuffer:createFramebuffer=!1,autoResizeViewport:autoResizeViewport=!0,autoResizeDrawingBuffer:autoResizeDrawingBuffer=!0,stats:stats=init.lR.get("animation-loop-".concat(statIdCounter++))}=props;let{useDevicePixels:useDevicePixels=!0}=props;"useDevicePixelRatio"in props&&(esm.cM.deprecated("useDevicePixelRatio","useDevicePixels")(),useDevicePixels=props.useDevicePixelRatio),this.props={onCreateContext:onCreateContext,onAddHTML:onAddHTML,onInitialize:onInitialize,onRender:onRender,onFinalize:onFinalize,onError:onError,gl:gl,glOptions:glOptions,debug:debug,createFramebuffer:createFramebuffer},this.gl=gl,this.needsRedraw=null,this.timeline=null,this.stats=stats,this.cpuTime=this.stats.get("CPU Time"),this.gpuTime=this.stats.get("GPU Time"),this.frameRate=this.stats.get("Frame Rate"),this._initialized=!1,this._running=!1,this._animationFrameId=null,this._nextFramePromise=null,this._resolveNextFrame=null,this._cpuStartTime=0,this.setProps({autoResizeViewport:autoResizeViewport,autoResizeDrawingBuffer:autoResizeDrawingBuffer,useDevicePixels:useDevicePixels}),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this._pageLoadPromise=null,this._onMousemove=this._onMousemove.bind(this),this._onMouseleave=this._onMouseleave.bind(this)}delete(){this.stop(),this._setDisplay(null)}setNeedsRedraw(reason){return(0,assert.h)("string"==typeof reason),this.needsRedraw=this.needsRedraw||reason,this}setProps(props){return"autoResizeViewport"in props&&(this.autoResizeViewport=props.autoResizeViewport),"autoResizeDrawingBuffer"in props&&(this.autoResizeDrawingBuffer=props.autoResizeDrawingBuffer),"useDevicePixels"in props&&(this.useDevicePixels=props.useDevicePixels),this}start(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._running)return this;this._running=!0;const startPromise=this._getPageLoadPromise().then((()=>!this._running||this._initialized?null:(this._createWebGLContext(opts),this._createFramebuffer(),this._startEventHandling(),this._initializeCallbackData(),this._updateCallbackData(),this._resizeCanvasDrawingBuffer(),this._resizeViewport(),this._gpuTimeQuery=Query.isSupported(this.gl,["timers"])?new Query(this.gl):null,this._initialized=!0,this.onInitialize(this.animationProps)))).then((appContext=>{this._running&&(this._addCallbackData(appContext||{}),!1!==appContext&&this._startLoop())}));return this.props.onError&&startPromise.catch(this.props.onError),this}redraw(){return this.isContextLost()||(this._beginTimers(),this._setupFrame(),this._updateCallbackData(),this._renderFrame(this.animationProps),this._clearNeedsRedraw(),this.offScreen&&this.gl.commit&&this.gl.commit(),this._resolveNextFrame&&(this._resolveNextFrame(this),this._nextFramePromise=null,this._resolveNextFrame=null),this._endTimers()),this}stop(){return this._running&&(this._finalizeCallbackData(),this._cancelAnimationFrame(this._animationFrameId),this._nextFramePromise=null,this._resolveNextFrame=null,this._animationFrameId=null,this._running=!1),this}attachTimeline(timeline){return this.timeline=timeline,this.timeline}detachTimeline(){this.timeline=null}waitForRender(){return this.setNeedsRedraw("waitForRender"),this._nextFramePromise||(this._nextFramePromise=new Promise((resolve=>{this._resolveNextFrame=resolve}))),this._nextFramePromise}async toDataURL(){return this.setNeedsRedraw("toDataURL"),await this.waitForRender(),this.gl.canvas.toDataURL()}isContextLost(){return this.gl.isContextLost()}onCreateContext(){return this.props.onCreateContext(...arguments)}onInitialize(){return this.props.onInitialize(...arguments)}onRender(){return this.props.onRender(...arguments)}onFinalize(){return this.props.onFinalize(...arguments)}getHTMLControlValue(id){let defaultValue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const element=document.getElementById(id);return element?Number(element.value):defaultValue}setViewParameters(){return esm.cM.removed("AnimationLoop.setViewParameters","AnimationLoop.setProps")(),this}_startLoop(){const renderFrame=()=>{this._running&&(this.redraw(),this._animationFrameId=this._requestAnimationFrame(renderFrame))};this._cancelAnimationFrame(this._animationFrameId),this._animationFrameId=this._requestAnimationFrame(renderFrame)}_getPageLoadPromise(){return this._pageLoadPromise||(this._pageLoadPromise=isPage?new Promise(((resolve,reject)=>{isPage&&"complete"===document.readyState?resolve(document):window.addEventListener("load",(()=>{resolve(document)}))})):Promise.resolve({})),this._pageLoadPromise}_setDisplay(display){this.display&&(this.display.delete(),this.display.animationLoop=null),display&&(display.animationLoop=this),this.display=display}_cancelAnimationFrame(animationFrameId){return this.display&&this.display.cancelAnimationFrame?this.display.cancelAnimationFrame(animationFrameId):function cancelAnimationFrame(timerId){return"undefined"!=typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame(timerId):clearTimeout(timerId)}(animationFrameId)}_requestAnimationFrame(renderFrameCallback){if(this._running)return this.display&&this.display.requestAnimationFrame?this.display.requestAnimationFrame(renderFrameCallback):function request_animation_frame_requestAnimationFrame(callback){return"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame(callback):setTimeout(callback,1e3/60)}(renderFrameCallback)}_renderFrame(){this.display?this.display._renderFrame(...arguments):this.onRender(...arguments)}_clearNeedsRedraw(){this.needsRedraw=null}_setupFrame(){this._resizeCanvasDrawingBuffer(),this._resizeViewport(),this._resizeFramebuffer()}_initializeCallbackData(){this.animationProps={gl:this.gl,stop:this.stop,canvas:this.gl.canvas,framebuffer:this.framebuffer,useDevicePixels:this.useDevicePixels,needsRedraw:null,startTime:Date.now(),engineTime:0,tick:0,tock:0,time:0,_timeline:this.timeline,_loop:this,_animationLoop:this,_mousePosition:null}}_updateCallbackData(){const{width:width,height:height,aspect:aspect}=this._getSizeAndAspect();width===this.animationProps.width&&height===this.animationProps.height||this.setNeedsRedraw("drawing buffer resized"),aspect!==this.animationProps.aspect&&this.setNeedsRedraw("drawing buffer aspect changed"),this.animationProps.width=width,this.animationProps.height=height,this.animationProps.aspect=aspect,this.animationProps.needsRedraw=this.needsRedraw,this.animationProps.engineTime=Date.now()-this.animationProps.startTime,this.timeline&&this.timeline.update(this.animationProps.engineTime),this.animationProps.tick=Math.floor(this.animationProps.time/1e3*60),this.animationProps.tock++,this.animationProps.time=this.timeline?this.timeline.getTime():this.animationProps.engineTime,this.animationProps._offScreen=this.offScreen}_finalizeCallbackData(){this.onFinalize(this.animationProps)}_addCallbackData(appContext){"object"==typeof appContext&&null!==appContext&&(this.animationProps=Object.assign({},this.animationProps,appContext))}_createWebGLContext(opts){if(this.offScreen=opts.canvas&&"undefined"!=typeof OffscreenCanvas&&opts.canvas instanceof OffscreenCanvas,opts=Object.assign({},opts,this.props.glOptions),this.gl=this.props.gl?(0,esm.yW)(this.props.gl,opts):this.onCreateContext(opts),!(0,esm.UF)(this.gl))throw new Error("AnimationLoop.onCreateContext - illegal context returned");(0,esm.kL)(this.gl),this._createInfoDiv()}_createInfoDiv(){if(this.gl.canvas&&this.props.onAddHTML){const wrapperDiv=document.createElement("div");document.body.appendChild(wrapperDiv),wrapperDiv.style.position="relative";const div=document.createElement("div");div.style.position="absolute",div.style.left="10px",div.style.bottom="10px",div.style.width="300px",div.style.background="white",wrapperDiv.appendChild(this.gl.canvas),wrapperDiv.appendChild(div);const html=this.props.onAddHTML(div);html&&(div.innerHTML=html)}}_getSizeAndAspect(){const width=this.gl.drawingBufferWidth,height=this.gl.drawingBufferHeight;let aspect=1;const{canvas:canvas}=this.gl;return canvas&&canvas.clientHeight?aspect=canvas.clientWidth/canvas.clientHeight:width>0&&height>0&&(aspect=width/height),{width:width,height:height,aspect:aspect}}_resizeViewport(){this.autoResizeViewport&&this.gl.viewport(0,0,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight)}_resizeCanvasDrawingBuffer(){this.autoResizeDrawingBuffer&&(0,esm.aQ)(this.gl,{useDevicePixels:this.useDevicePixels})}_createFramebuffer(){this.props.createFramebuffer&&(this.framebuffer=new framebuffer.Z(this.gl))}_resizeFramebuffer(){this.framebuffer&&this.framebuffer.resize({width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight})}_beginTimers(){this.frameRate.timeEnd(),this.frameRate.timeStart(),this._gpuTimeQuery&&this._gpuTimeQuery.isResultAvailable()&&!this._gpuTimeQuery.isTimerDisjoint()&&this.stats.get("GPU Time").addTime(this._gpuTimeQuery.getTimerMilliseconds()),this._gpuTimeQuery&&this._gpuTimeQuery.beginTimeElapsedQuery(),this.cpuTime.timeStart()}_endTimers(){this.cpuTime.timeEnd(),this._gpuTimeQuery&&this._gpuTimeQuery.end()}_startEventHandling(){const{canvas:canvas}=this.gl;canvas&&(canvas.addEventListener("mousemove",this._onMousemove),canvas.addEventListener("mouseleave",this._onMouseleave))}_onMousemove(e){this.animationProps._mousePosition=[e.offsetX,e.offsetY]}_onMouseleave(e){this.animationProps._mousePosition=null}}},"./node_modules/@luma.gl/engine/dist/esm/lib/model.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Model}});var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),program_manager=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/program-manager.js"),utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js"),assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),clear=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/clear.js"),classes_program=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/program.js"),classes_accessor=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/accessor.js"),classes_buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),resource=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js");let arrayBuffer=null;function getScratchArray(Type,length){return new Type(function getScratchArrayBuffer(byteLength){return(!arrayBuffer||arrayBuffer.byteLength1&&void 0!==arguments[1]?arguments[1]:{}).constantAttributeZero||((0,esm.D0)(gl)||"Chrome"===(0,get_browser.Z)())}static getDefaultArray(gl){return gl.luma=gl.luma||{},gl.luma.defaultVertexArray||(gl.luma.defaultVertexArray=new VertexArrayObject(gl,{handle:null,isDefaultArray:!0})),gl.luma.defaultVertexArray}static getMaxAttributes(gl){return VertexArrayObject.MAX_ATTRIBUTES=VertexArrayObject.MAX_ATTRIBUTES||gl.getParameter(34921),VertexArrayObject.MAX_ATTRIBUTES}static setConstant(gl,location,array){switch(array.constructor){case Float32Array:VertexArrayObject._setConstantFloatArray(gl,location,array);break;case Int32Array:VertexArrayObject._setConstantIntArray(gl,location,array);break;case Uint32Array:VertexArrayObject._setConstantUintArray(gl,location,array);break;default:(0,assert.h)(!1)}}constructor(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const id=opts.id||opts.program&&opts.program.id;super(gl,Object.assign({},opts,{id:id})),this.buffer=null,this.bufferValue=null,this.isDefaultArray=opts.isDefaultArray||!1,this.gl2=gl,this.initialize(opts),Object.seal(this)}delete(){return super.delete(),this.buffer&&this.buffer.delete(),this}get MAX_ATTRIBUTES(){return VertexArrayObject.getMaxAttributes(this.gl)}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.setProps(props)}setProps(props){return this}setElementBuffer(){let elementBuffer=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,assert.h)(!elementBuffer||34963===elementBuffer.target,"elements must be GL.ELEMENT_ARRAY_BUFFER"),this.bind((()=>{this.gl.bindBuffer(34963,elementBuffer?elementBuffer.handle:null)})),this}setBuffer(location,buffer,accessor){if(34963===buffer.target)return this.setElementBuffer(buffer,accessor);const{size:size,type:type,stride:stride,offset:offset,normalized:normalized,integer:integer,divisor:divisor}=accessor,{gl:gl,gl2:gl2}=this;return location=Number(location),this.bind((()=>{gl.bindBuffer(34962,buffer.handle),integer?((0,assert.h)((0,esm.D0)(gl)),gl2.vertexAttribIPointer(location,size,type,stride,offset)):gl.vertexAttribPointer(location,size,type,normalized,stride,offset),gl.enableVertexAttribArray(location),gl2.vertexAttribDivisor(location,divisor||0)})),this}enable(location){let enable=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!enable&&0===location&&!VertexArrayObject.isSupported(this.gl,{constantAttributeZero:!0})||(location=Number(location),this.bind((()=>enable?this.gl.enableVertexAttribArray(location):this.gl.disableVertexAttribArray(location)))),this}getConstantBuffer(elementCount,value){const constantValue=this._normalizeConstantArrayValue(value),byteLength=constantValue.byteLength*elementCount,length=constantValue.length*elementCount;let updateNeeded=!this.buffer;if(this.buffer=this.buffer||new classes_buffer.Z(this.gl,byteLength),updateNeeded=updateNeeded||this.buffer.reallocate(byteLength),updateNeeded=updateNeeded||!this._compareConstantArrayValues(constantValue,this.bufferValue),updateNeeded){const typedArray=getScratchArray(value.constructor,length);!function fillArray(_ref){let{target:target,source:source,start:start=0,count:count=1}=_ref;const length=source.length,total=count*length;let copied=0;for(let i=start;copied34373===pname?this.gl.getVertexAttribOffset(location,pname):this.gl.getVertexAttrib(location,pname)))}}var stub_methods=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/stub-methods.js");const MULTI_LOCATION_ATTRIBUTE_REGEXP=/^(.+)__LOCATION_([0-9]+)$/,DEPRECATIONS_V6=["setBuffers","setGeneric","clearBindings","setLocations","setGenericValues","setDivisor","enable","disable"];class VertexArray{constructor(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const id=opts.id||opts.program&&opts.program.id;this.id=id,this.gl=gl,this.configuration=null,this.elements=null,this.elementsAccessor=null,this.values=null,this.accessors=null,this.unused=null,this.drawParams=null,this.buffer=null,this.attributes={},this.vertexArrayObject=new VertexArrayObject(gl),(0,stub_methods.F)(this,"VertexArray","v6.0",DEPRECATIONS_V6),this.initialize(opts),Object.seal(this)}delete(){this.buffer&&this.buffer.delete(),this.vertexArrayObject.delete()}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.reset(),this.configuration=null,this.bindOnUse=!1,this.setProps(props)}reset(){this.elements=null,this.elementsAccessor=null;const{MAX_ATTRIBUTES:MAX_ATTRIBUTES}=this.vertexArrayObject;return this.values=new Array(MAX_ATTRIBUTES).fill(null),this.accessors=new Array(MAX_ATTRIBUTES).fill(null),this.unused={},this.drawParams=null,this}setProps(props){return"program"in props&&(this.configuration=props.program&&props.program.configuration),"configuration"in props&&(this.configuration=props.configuration),"attributes"in props&&this.setAttributes(props.attributes),"elements"in props&&this.setElementBuffer(props.elements),"bindOnUse"in props&&(props=props.bindOnUse),this}clearDrawParams(){this.drawParams=null}getDrawParams(){return this.drawParams=this.drawParams||this._updateDrawParams(),this.drawParams}setAttributes(attributes){return Object.assign(this.attributes,attributes),this.vertexArrayObject.bind((()=>{for(const locationOrName in attributes){const value=attributes[locationOrName];this._setAttribute(locationOrName,value)}this.gl.bindBuffer(34962,null)})),this}setElementBuffer(){let elementBuffer=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,accessor=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.elements=elementBuffer,this.elementsAccessor=accessor,this.clearDrawParams(),this.vertexArrayObject.setElementBuffer(elementBuffer,accessor),this}setBuffer(locationOrName,buffer){let appAccessor=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(34963===buffer.target)return this.setElementBuffer(buffer,appAccessor);const{location:location,accessor:accessor}=this._resolveLocationAndAccessor(locationOrName,buffer,buffer.accessor,appAccessor);return location>=0&&(this.values[location]=buffer,this.accessors[location]=accessor,this.clearDrawParams(),this.vertexArrayObject.setBuffer(location,buffer,accessor)),this}setConstant(locationOrName,arrayValue){let appAccessor=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{location:location,accessor:accessor}=this._resolveLocationAndAccessor(locationOrName,arrayValue,Object.assign({size:arrayValue.length},appAccessor));return location>=0&&(arrayValue=this.vertexArrayObject._normalizeConstantArrayValue(arrayValue),this.values[location]=arrayValue,this.accessors[location]=accessor,this.clearDrawParams(),this.vertexArrayObject.enable(location,!1)),this}unbindBuffers(){return this.vertexArrayObject.bind((()=>{this.elements&&this.vertexArrayObject.setElementBuffer(null),this.buffer=this.buffer||new classes_buffer.Z(this.gl,{accessor:{size:4}});for(let location=0;location{this.elements&&this.setElementBuffer(this.elements);for(let location=0;location{this._setConstantAttributes(vertexCount,instanceCount),value=func()})),value}_resolveLocationAndAccessor(locationOrName,value,valueAccessor,appAccessor){const INVALID_RESULT={location:-1,accessor:null},{location:location,name:name}=this._getAttributeIndex(locationOrName);if(!Number.isFinite(location)||location<0)return this.unused[locationOrName]=value,esm.cM.once(3,(()=>"unused value ".concat(locationOrName," in ").concat(this.id)))(),INVALID_RESULT;const accessInfo=this._getAttributeInfo(name||location);if(!accessInfo)return INVALID_RESULT;const currentAccessor=this.accessors[location]||{},accessor=classes_accessor.Z.resolve(accessInfo.accessor,currentAccessor,valueAccessor,appAccessor),{size:size,type:type}=accessor;return(0,assert.h)(Number.isFinite(size)&&Number.isFinite(type)),{location:location,accessor:accessor}}_getAttributeInfo(attributeName){return this.configuration&&this.configuration.getAttributeInfo(attributeName)}_getAttributeIndex(locationOrName){const location=Number(locationOrName);if(Number.isFinite(location))return{location:location};const multiLocation=MULTI_LOCATION_ATTRIBUTE_REGEXP.exec(locationOrName),name=multiLocation?multiLocation[1]:locationOrName,locationOffset=multiLocation?Number(multiLocation[2]):0;return this.configuration?{location:this.configuration.getAttributeLocation(name)+locationOffset,name:name}:{location:-1}}_setAttribute(locationOrName,value){if(value instanceof classes_buffer.Z)this.setBuffer(locationOrName,value);else if(Array.isArray(value)&&value.length&&value[0]instanceof classes_buffer.Z){const buffer=value[0],accessor=value[1];this.setBuffer(locationOrName,buffer,accessor)}else if(ArrayBuffer.isView(value)||Array.isArray(value)){const constant=value;this.setConstant(locationOrName,constant)}else{if(!(value.buffer instanceof classes_buffer.Z))throw new Error("VertexArray: attributes must be Buffers or constants (i.e. typed array)");{const accessor=value;this.setBuffer(locationOrName,accessor.buffer,accessor)}}}_setConstantAttributes(vertexCount,instanceCount){const elementCount=Math.max(0|vertexCount,0|instanceCount);let constant=this.values[0];ArrayBuffer.isView(constant)&&this._setConstantAttributeZero(constant,elementCount);for(let location=1;location0;if(drawParams.isInstanced=drawParams.isInstanced||isInstanced,value instanceof classes_buffer.Z){const buffer=value;if(isInstanced){const instanceCount=buffer.getVertexCount(accessor);drawParams.instanceCount=Math.min(drawParams.instanceCount,instanceCount)}else{const vertexCount=buffer.getVertexCount(accessor);drawParams.vertexCount=Math.min(drawParams.vertexCount,vertexCount)}}}setElements(){let elementBuffer=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,accessor=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return esm.cM.deprecated("setElements","setElementBuffer")(),this.setElementBuffer(elementBuffer,accessor)}}var transform_feedback=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/transform-feedback.js"),constants_to_keys=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/constants-to-keys.js"),attribute_utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/attribute-utils.js");function formatValue(v){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{isInteger:isInteger=!1}=opts;if(Array.isArray(v)||ArrayBuffer.isView(v))return function formatArrayValue(v,opts){const{maxElts:maxElts=16,size:size=1}=opts;let string="[";for(let i=0;i0&&(string+=",".concat(i%size==0?" ":"")),string+=formatValue(v[i],opts);const terminator=v.length>maxElts?"...":"]";return"".concat(string).concat(terminator)}(v,opts);if(!Number.isFinite(v))return String(v);if(Math.abs(v)<1e-16)return isInteger?"0":"0.";if(isInteger)return v.toFixed(0);if(Math.abs(v)>100&&Math.abs(v)<1e4)return v.toFixed(0);const string=v.toPrecision(2);return string.indexOf(".0")===string.length-2?string.slice(0,-1):string}function getDebugTableRow(vertexArray,attribute,accessor,header){const{gl:gl}=vertexArray;if(!attribute)return{[header]:"null","Format ":"N/A"};let isInteger,marker,value,type="NOT PROVIDED",size=1,verts=0,bytes=0;if(accessor&&(type=accessor.type,size=accessor.size,type=String(type).replace("Array",""),isInteger=-1!==type.indexOf("nt")),attribute instanceof classes_buffer.Z){const buffer=attribute,{data:data,changed:changed}=buffer.getDebugData();let format;if(marker=changed?"*":"",value=data,bytes=buffer.byteLength,verts=bytes/data.BYTES_PER_ELEMENT/size,accessor){const instanced=accessor.divisor>0;format="".concat(instanced?"I ":"P "," ").concat(verts," (x").concat(size,"=").concat(bytes," bytes ").concat((0,constants_to_keys.km)(gl,type),")")}else isInteger=!0,format="".concat(bytes," bytes");return{[header]:"".concat(marker).concat(formatValue(value,{size:size,isInteger:isInteger})),"Format ":format}}return value=attribute,size=attribute.length,type=String(attribute.constructor.name).replace("Array",""),isInteger=-1!==type.indexOf("nt"),{[header]:"".concat(formatValue(value,{size:size,isInteger:isInteger})," (constant)"),"Format ":"".concat(size,"x").concat(type," (constant)")}}function getGLSLDeclaration(name,accessor){const{type:type,size:size}=accessor,typeAndName=(0,attribute_utils.jG)(type,size);return typeAndName?"".concat(name," (").concat(typeAndName.name,")"):name}function getDebugTableForUniforms(_ref){let{header:header="Uniforms",program:program,uniforms:uniforms,undefinedOnly:undefinedOnly=!1}=_ref;(0,assert.h)(program);const uniformLocations=program._uniformSetters,table={},uniformNames=Object.keys(uniformLocations).sort();let count=0;for(const uniformName of uniformNames)uniformName.match(".*_.*")||uniformName.match(".*Matrix")||addUniformToTable({table:table,header:header,uniforms:uniforms,uniformName:uniformName,undefinedOnly:undefinedOnly})&&count++;for(const uniformName of uniformNames)uniformName.match(".*Matrix")&&addUniformToTable({table:table,header:header,uniforms:uniforms,uniformName:uniformName,undefinedOnly:undefinedOnly})&&count++;for(const uniformName of uniformNames)table[uniformName]||addUniformToTable({table:table,header:header,uniforms:uniforms,uniformName:uniformName,undefinedOnly:undefinedOnly})&&count++;let unusedCount=0;const unusedTable={};if(!undefinedOnly)for(const uniformName in uniforms){const uniform=uniforms[uniformName];table[uniformName]||(unusedCount++,unusedTable[uniformName]={Type:"NOT USED: ".concat(uniform),[header]:formatValue(uniform)})}return{table:table,count:count,unusedTable:unusedTable,unusedCount:unusedCount}}function addUniformToTable(_ref2){let{table:table,header:header,uniforms:uniforms,uniformName:uniformName,undefinedOnly:undefinedOnly}=_ref2;const value=uniforms[uniformName],isDefined=function isUniformDefined(value){return null!=value}(value);return(!undefinedOnly||!isDefined)&&(table[uniformName]={[header]:isDefined?formatValue(value):"N/A","Uniform Type":isDefined?value:"NOT PROVIDED"},!0)}function debug_program_configuration_getGLSLDeclaration(attributeInfo){const{type:type,size:size}=attributeInfo.accessor,typeAndName=(0,attribute_utils.jG)(type,size);return typeAndName?"".concat(typeAndName.name," ").concat(attributeInfo.name):attributeInfo.name}const GLTF_TO_LUMA_ATTRIBUTE_MAP={POSITION:"positions",NORMAL:"normals",COLOR_0:"colors",TEXCOORD_0:"texCoords",TEXCOORD_1:"texCoords1",TEXCOORD_2:"texCoords2"};function mapAttributeName(name,options){const{attributeMap:attributeMap=GLTF_TO_LUMA_ATTRIBUTE_MAP}=options||{};return attributeMap&&attributeMap[name]||name}function inferAttributeAccessor(attributeName,attribute){let category;switch(attributeName){case"texCoords":case"texCoord1":case"texCoord2":case"texCoord3":category="uvs";break;case"vertices":case"positions":case"normals":case"pickingColors":category="vectors"}switch(category){case"vectors":attribute.size=attribute.size||3;break;case"uvs":attribute.size=attribute.size||2}(0,assert.h)(Number.isFinite(attribute.size),"attribute ".concat(attributeName," needs size"))}const NOOP=()=>{},DRAW_PARAMS={};class Model{constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{id:id=(0,utils.hQ)("model")}=props;(0,assert.h)((0,esm.UF)(gl)),this.id=id,this.gl=gl,this.id=props.id||(0,utils.hQ)("Model"),this.lastLogTime=0,this.animated=!1,this.initialize(props)}initialize(props){this.props={},this.programManager=props.programManager||program_manager.Z.getDefaultProgramManager(this.gl),this._programManagerState=-1,this._managedProgram=!1;const{program:program=null,vs:vs,fs:fs,modules:modules,defines:defines,inject:inject,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100}=props;this.programProps={program:program,vs:vs,fs:fs,modules:modules,defines:defines,inject:inject,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100},this.program=null,this.vertexArray=null,this._programDirty=!0,this.userData={},this.needsRedraw=!0,this._attributes={},this.attributes={},this.uniforms={},this.pickable=!0,this._checkProgram(),this.setUniforms(Object.assign({},this.getModuleUniforms(props.moduleSettings))),this.drawMode=void 0!==props.drawMode?props.drawMode:4,this.vertexCount=props.vertexCount||0,this.geometryBuffers={},this.isInstanced=props.isInstanced||props.instanced||props.instanceCount>0,this._setModelProps(props),this.geometry={},(0,assert.h)(void 0!==this.drawMode&&Number.isFinite(this.vertexCount),"Model needs drawMode and vertexCount")}setProps(props){this._setModelProps(props)}delete(){for(const key in this._attributes)this._attributes[key]!==this.attributes[key]&&this._attributes[key].delete();this._managedProgram&&(this.programManager.release(this.program),this._managedProgram=!1),this.vertexArray.delete(),this._deleteGeometryBuffers()}getDrawMode(){return this.drawMode}getVertexCount(){return this.vertexCount}getInstanceCount(){return this.instanceCount}getAttributes(){return this.attributes}getProgram(){return this.program}setProgram(props){const{program:program,vs:vs,fs:fs,modules:modules,defines:defines,inject:inject,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100}=props;this.programProps={program:program,vs:vs,fs:fs,modules:modules,defines:defines,inject:inject,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100},this._programDirty=!0}getUniforms(){return this.uniforms}setDrawMode(drawMode){return this.drawMode=drawMode,this}setVertexCount(vertexCount){return(0,assert.h)(Number.isFinite(vertexCount)),this.vertexCount=vertexCount,this}setInstanceCount(instanceCount){return(0,assert.h)(Number.isFinite(instanceCount)),this.instanceCount=instanceCount,this}setGeometry(geometry){return this.drawMode=geometry.drawMode,this.vertexCount=geometry.getVertexCount(),this._deleteGeometryBuffers(),this.geometryBuffers=function getBuffersFromGeometry(gl,geometry,options){const buffers={};let indices=geometry.indices;for(const name in geometry.attributes){const attribute=geometry.attributes[name],remappedName=mapAttributeName(name,options);if("indices"===name)indices=attribute;else if(attribute.constant)buffers[remappedName]=attribute.value;else{const typedArray=attribute.value,accessor={...attribute};delete accessor.value,buffers[remappedName]=[new classes_buffer.Z(gl,typedArray),accessor],inferAttributeAccessor(name,accessor)}}if(indices){const data=indices.value||indices;(0,assert.h)(data instanceof Uint16Array||data instanceof Uint32Array,'attribute array for "indices" must be of integer type');const accessor={size:1,isIndexed:void 0===indices.isIndexed||indices.isIndexed};buffers.indices=[new classes_buffer.Z(gl,{data:data,target:34963}),accessor]}return buffers}(this.gl,geometry),this.vertexArray.setAttributes(this.geometryBuffers),this}setAttributes(){let attributes=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,utils.nK)(attributes))return this;const normalizedAttributes={};for(const name in attributes){const attribute=attributes[name];normalizedAttributes[name]=attribute.getValue?attribute.getValue():attribute}return this.vertexArray.setAttributes(normalizedAttributes),this}setUniforms(){let uniforms=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(this.uniforms,uniforms),this}getModuleUniforms(opts){this._checkProgram();const getUniforms=this.programManager.getUniforms(this.program);return getUniforms?getUniforms(opts):{}}updateModuleSettings(opts){const uniforms=this.getModuleUniforms(opts||{});return this.setUniforms(uniforms)}clear(opts){return(0,clear.Z)(this.program.gl,opts),this}draw(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._checkProgram();const{moduleSettings:moduleSettings=null,framebuffer:framebuffer,uniforms:uniforms={},attributes:attributes={},transformFeedback:transformFeedback=this.transformFeedback,parameters:parameters={},vertexArray:vertexArray=this.vertexArray}=opts;let logPriority;this.setAttributes(attributes),this.updateModuleSettings(moduleSettings),this.setUniforms(uniforms),esm.cM.priority>=2&&(logPriority=this._logDrawCallStart(2));const drawParams=this.vertexArray.getDrawParams(),{isIndexed:isIndexed=drawParams.isIndexed,indexType:indexType=drawParams.indexType,indexOffset:indexOffset=drawParams.indexOffset,vertexArrayInstanced:vertexArrayInstanced=drawParams.isInstanced}=this.props;vertexArrayInstanced&&!this.isInstanced&&esm.cM.warn("Found instanced attributes on non-instanced model",this.id)();const{isInstanced:isInstanced,instanceCount:instanceCount}=this,{onBeforeRender:onBeforeRender=NOOP,onAfterRender:onAfterRender=NOOP}=this.props;onBeforeRender(),this.program.setUniforms(this.uniforms);const didDraw=this.program.draw(Object.assign(DRAW_PARAMS,opts,{logPriority:logPriority,uniforms:null,framebuffer:framebuffer,parameters:parameters,drawMode:this.getDrawMode(),vertexCount:this.getVertexCount(),vertexArray:vertexArray,transformFeedback:transformFeedback,isIndexed:isIndexed,indexType:indexType,isInstanced:isInstanced,instanceCount:instanceCount,offset:isIndexed?indexOffset:0}));return onAfterRender(),esm.cM.priority>=2&&this._logDrawCallEnd(logPriority,vertexArray,framebuffer),didDraw}transform(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{discard:discard=!0,feedbackBuffers:feedbackBuffers,unbindModels:unbindModels=[]}=opts;let{parameters:parameters}=opts;feedbackBuffers&&this._setFeedbackBuffers(feedbackBuffers),discard&&(parameters=Object.assign({},parameters,{35977:discard})),unbindModels.forEach((model=>model.vertexArray.unbindBuffers()));try{this.draw(Object.assign({},opts,{parameters:parameters}))}finally{unbindModels.forEach((model=>model.vertexArray.bindBuffers()))}return this}render(){let uniforms=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return esm.cM.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")(),this.setUniforms(uniforms).draw()}_setModelProps(props){Object.assign(this.props,props),"uniforms"in props&&this.setUniforms(props.uniforms),"pickable"in props&&(this.pickable=props.pickable),"instanceCount"in props&&(this.instanceCount=props.instanceCount),"geometry"in props&&this.setGeometry(props.geometry),"attributes"in props&&this.setAttributes(props.attributes),"_feedbackBuffers"in props&&this._setFeedbackBuffers(props._feedbackBuffers)}_checkProgram(){if(!(this._programDirty||this.programManager.stateHash!==this._programManagerState))return;let{program:program}=this.programProps;if(program)this._managedProgram=!1;else{const{vs:vs,fs:fs,modules:modules,inject:inject,defines:defines,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100}=this.programProps;program=this.programManager.get({vs:vs,fs:fs,modules:modules,inject:inject,defines:defines,varyings:varyings,bufferMode:bufferMode,transpileToGLSL100:transpileToGLSL100}),this.program&&this._managedProgram&&this.programManager.release(this.program),this._programManagerState=this.programManager.stateHash,this._managedProgram=!0}(0,assert.h)(program instanceof classes_program.Z,"Model needs a program"),this._programDirty=!1,program!==this.program&&(this.program=program,this.vertexArray?this.vertexArray.setProps({program:this.program,attributes:this.vertexArray.attributes}):this.vertexArray=new VertexArray(this.gl,{program:this.program}),this.setUniforms(Object.assign({},this.getModuleUniforms())))}_deleteGeometryBuffers(){for(const name in this.geometryBuffers){const buffer=this.geometryBuffers[name][0]||this.geometryBuffers[name];buffer instanceof classes_buffer.Z&&buffer.delete()}}_setAnimationProps(animationProps){this.animated&&(0,assert.h)(animationProps,"Model.draw(): animated uniforms but no animationProps")}_setFeedbackBuffers(){let feedbackBuffers=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,utils.nK)(feedbackBuffers))return this;const{gl:gl}=this.program;return this.transformFeedback=this.transformFeedback||new transform_feedback.Z(gl,{program:this.program}),this.transformFeedback.setBuffers(feedbackBuffers),this}_logDrawCallStart(logLevel){const logDrawTimeout=logLevel>3?0:1e4;if(!(Date.now()-this.lastLogTime>> DRAWING MODEL ".concat(this.id),{collapsed:esm.cM.level<=2})(),logLevel}_logDrawCallEnd(logLevel,vertexArray,uniforms,framebuffer){if(void 0===logLevel)return;const attributeTable=function getDebugTableForVertexArray(_ref){let{vertexArray:vertexArray,header:header="Attributes"}=_ref;if(!vertexArray.configuration)return{};const table={};vertexArray.elements&&(table.ELEMENT_ARRAY_BUFFER=getDebugTableRow(vertexArray,vertexArray.elements,null,header));const attributes=vertexArray.values;for(const attributeLocation in attributes){const info=vertexArray._getAttributeInfo(attributeLocation);if(info){let rowHeader="".concat(attributeLocation,": ").concat(info.name);const accessor=vertexArray.accessors[info.location];accessor&&(rowHeader="".concat(attributeLocation,": ").concat(getGLSLDeclaration(info.name,accessor))),table[rowHeader]=getDebugTableRow(vertexArray,attributes[attributeLocation],accessor,header)}}return table}({vertexArray:vertexArray,header:"".concat(this.id," attributes"),attributes:this._attributes}),{table:uniformTable,unusedTable:unusedTable,unusedCount:unusedCount}=getDebugTableForUniforms({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,uniforms)}),{table:missingTable,count:missingCount}=getDebugTableForUniforms({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,uniforms),undefinedOnly:!0});missingCount>0&&esm.cM.log("MISSING UNIFORMS",Object.keys(missingTable))(),unusedCount>0&&esm.cM.log("UNUSED UNIFORMS",Object.keys(unusedTable))();const configTable=function getDebugTableForProgramConfiguration(config){const table={},header="Accessors for ".concat(config.id);for(const attributeInfo of config.attributeInfos)if(attributeInfo){const glslDeclaration=debug_program_configuration_getGLSLDeclaration(attributeInfo);table["in ".concat(glslDeclaration)]={[header]:JSON.stringify(attributeInfo.accessor)}}for(const varyingInfo of config.varyingInfos)if(varyingInfo){const glslDeclaration=debug_program_configuration_getGLSLDeclaration(varyingInfo);table["out ".concat(glslDeclaration)]={[header]:JSON.stringify(varyingInfo.accessor)}}return table}(this.vertexArray.configuration);esm.cM.table(logLevel,attributeTable)(),esm.cM.table(logLevel,uniformTable)(),esm.cM.table(logLevel+1,configTable)(),framebuffer&&framebuffer.log({logLevel:2,message:"Rendered to ".concat(framebuffer.id)}),esm.cM.groupEnd(2)()}}},"./node_modules/@luma.gl/engine/dist/esm/lib/program-manager.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ProgramManager}});var constants=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/constants.js"),shader_module=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/shader-module.js"),assert=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/utils/assert.js");function resolveModules(modules){return getShaderDependencies(instantiateModules(modules))}function getShaderDependencies(modules){const moduleMap={},moduleDepth={};return getDependencyGraph({modules:modules,level:0,moduleMap:moduleMap,moduleDepth:moduleDepth}),Object.keys(moduleDepth).sort(((a,b)=>moduleDepth[b]-moduleDepth[a])).map((name=>moduleMap[name]))}function getDependencyGraph(_ref){let{modules:modules,level:level,moduleMap:moduleMap,moduleDepth:moduleDepth}=_ref;if(level>=5)throw new Error("Possible loop in shader dependency graph");for(const module of modules)moduleMap[module.name]=module,(void 0===moduleDepth[module.name]||moduleDepth[module.name](module instanceof shader_module.Z||((0,assert.Z)("string"!=typeof module,"Shader module use by name is deprecated. Import shader module '".concat(module,"' and use it directly.")),(0,assert.Z)(module.name,"shader module has no name"),(module=new shader_module.Z(module)).dependencies=instantiateModules(module.dependencies)),module)))}const GL_VENDOR=7936,GL_RENDERER=7937,GL_VERSION=7938,GL_SHADING_LANGUAGE_VERSION=35724,WEBGL_FEATURES={GLSL_FRAG_DATA:["WEBGL_draw_buffers",!0],GLSL_FRAG_DEPTH:["EXT_frag_depth",!0],GLSL_DERIVATIVES:["OES_standard_derivatives",!0],GLSL_TEXTURE_LOD:["EXT_shader_texture_lod",!0]},FEATURES={};Object.keys(WEBGL_FEATURES).forEach((key=>{FEATURES[key]=key}));const compiledGlslExtensions={};function canCompileGLGSExtension(gl,cap){let opts=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const feature=WEBGL_FEATURES[cap];if((0,assert.Z)(feature,cap),!function isOldIE(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const navigator="undefined"!=typeof window&&window.navigator||{},userAgent=opts.userAgent||navigator.userAgent||"",isMSIE=-1!==userAgent.indexOf("MSIE "),isTrident=-1!==userAgent.indexOf("Trident/");return isMSIE||isTrident}(opts))return!0;if(cap in compiledGlslExtensions)return compiledGlslExtensions[cap];const extensionName=feature[0],behavior=opts.behavior||"enable",source="#extension GL_".concat(extensionName," : ").concat(behavior,"\nvoid main(void) {}"),shader=gl.createShader(35633);gl.shaderSource(shader,source),gl.compileShader(shader);const canCompile=gl.getShaderParameter(shader,35713);return gl.deleteShader(shader),compiledGlslExtensions[cap]=canCompile,canCompile}function getFeature(gl,cap){const feature=WEBGL_FEATURES[cap];(0,assert.Z)(feature,cap);const extensionName=function isWebGL2(gl){return"undefined"!=typeof WebGL2RenderingContext&&gl instanceof WebGL2RenderingContext||Boolean(gl&&2===gl._version)}(gl)&&feature[1]||feature[0],value="string"==typeof extensionName?Boolean(gl.getExtension(extensionName)):extensionName;return(0,assert.Z)(!1===value||!0===value),value}function hasFeatures(gl,features){return(features=Array.isArray(features)?features:[features]).every((feature=>getFeature(gl,feature)))}function getPlatformShaderDefines(gl){const debugInfo=function getContextInfo(gl){const info=gl.getExtension("WEBGL_debug_renderer_info"),vendor=gl.getParameter(info&&info.UNMASKED_VENDOR_WEBGL||GL_VENDOR),renderer=gl.getParameter(info&&info.UNMASKED_RENDERER_WEBGL||GL_RENDERER);return{gpuVendor:function identifyGPUVendor(vendor,renderer){return vendor.match(/NVIDIA/i)||renderer.match(/NVIDIA/i)?"NVIDIA":vendor.match(/INTEL/i)||renderer.match(/INTEL/i)?"INTEL":vendor.match(/AMD/i)||renderer.match(/AMD/i)||vendor.match(/ATI/i)||renderer.match(/ATI/i)?"AMD":"UNKNOWN GPU"}(vendor,renderer),vendor:vendor,renderer:renderer,version:gl.getParameter(GL_VERSION),shadingLanguageVersion:gl.getParameter(GL_SHADING_LANGUAGE_VERSION)}}(gl);switch(debugInfo.gpuVendor.toLowerCase()){case"nvidia":return"#define NVIDIA_GPU\n// Nvidia optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n";case"intel":return"#define INTEL_GPU\n// Intel optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n";case"amd":return"#define AMD_GPU\n";default:return"#define DEFAULT_GPU\n// Prevent driver from optimizing away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n"}}var inject_shader=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/inject-shader.js");function testVariable(qualifier){return new RegExp("\\b".concat(qualifier,"[ \\t]+(\\w+[ \\t]+\\w+(\\[\\w+\\])?;)"),"g")}const ES300_REPLACEMENTS=[[/^(#version[ \t]+(100|300[ \t]+es))?[ \t]*\n/,"#version 300 es\n"],[/\btexture(2D|2DProj|Cube)Lod(EXT)?\(/g,"textureLod("],[/\btexture(2D|2DProj|Cube)(EXT)?\(/g,"texture("]],ES300_VERTEX_REPLACEMENTS=[...ES300_REPLACEMENTS,[testVariable("attribute"),"in $1"],[testVariable("varying"),"out $1"]],ES300_FRAGMENT_REPLACEMENTS=[...ES300_REPLACEMENTS,[testVariable("varying"),"in $1"]],ES100_REPLACEMENTS=[[/^#version[ \t]+300[ \t]+es/,"#version 100"],[/\btexture(2D|2DProj|Cube)Lod\(/g,"texture$1LodEXT("],[/\btexture\(/g,"texture2D("],[/\btextureLod\(/g,"texture2DLodEXT("]],ES100_VERTEX_REPLACEMENTS=[...ES100_REPLACEMENTS,[testVariable("in"),"attribute $1"],[testVariable("out"),"varying $1"]],ES100_FRAGMENT_REPLACEMENTS=[...ES100_REPLACEMENTS,[testVariable("in"),"varying $1"]],ES100_FRAGMENT_OUTPUT_NAME="gl_FragColor",ES300_FRAGMENT_OUTPUT_REGEX=/\bout[ \t]+vec4[ \t]+(\w+)[ \t]*;\n?/,REGEX_START_OF_MAIN=/void\s+main\s*\([^)]*\)\s*\{\n?/;function transpileShader(source,targetGLSLVersion,isVertex){switch(targetGLSLVersion){case 300:return isVertex?convertShader(source,ES300_VERTEX_REPLACEMENTS):function convertFragmentShaderTo300(source){source=convertShader(source,ES300_FRAGMENT_REPLACEMENTS);const outputMatch=source.match(ES300_FRAGMENT_OUTPUT_REGEX);if(outputMatch){const outputName=outputMatch[1];source=source.replace(new RegExp("\\b".concat(ES100_FRAGMENT_OUTPUT_NAME,"\\b"),"g"),outputName)}else{const outputName="fragmentColor";source=source.replace(REGEX_START_OF_MAIN,(match=>"out vec4 ".concat(outputName,";\n").concat(match))).replace(new RegExp("\\b".concat(ES100_FRAGMENT_OUTPUT_NAME,"\\b"),"g"),outputName)}return source}(source);case 100:return isVertex?convertShader(source,ES100_VERTEX_REPLACEMENTS):function convertFragmentShaderTo100(source){source=convertShader(source,ES100_FRAGMENT_REPLACEMENTS);const outputMatch=source.match(ES300_FRAGMENT_OUTPUT_REGEX);if(outputMatch){const outputName=outputMatch[1];source=source.replace(ES300_FRAGMENT_OUTPUT_REGEX,"").replace(new RegExp("\\b".concat(outputName,"\\b"),"g"),ES100_FRAGMENT_OUTPUT_NAME)}return source}(source);default:throw new Error("unknown GLSL version ".concat(targetGLSLVersion))}}function convertShader(source,replacements){for(const[pattern,replacement]of replacements)source=source.replace(pattern,replacement);return source}const INJECT_SHADER_DECLARATIONS="\n\n".concat(inject_shader.O_,"\n\n"),SHADER_TYPE={[constants.H]:"vertex",[constants.Y]:"fragment"},FRAGMENT_SHADER_PROLOGUE="precision highp float;\n\n";function assembleShader(gl,_ref){let{id:id,source:source,type:type,modules:modules,defines:defines={},hookFunctions:hookFunctions=[],inject:inject={},transpileToGLSL100:transpileToGLSL100=!1,prologue:prologue=!0,log:log}=_ref;(0,assert.Z)("string"==typeof source,"shader source must be a string");const isVertex=type===constants.H,sourceLines=source.split("\n");let glslVersion=100,versionLine="",coreSource=source;0===sourceLines[0].indexOf("#version ")?(glslVersion=300,versionLine=sourceLines[0],coreSource=sourceLines.slice(1).join("\n")):versionLine="#version ".concat(glslVersion);const allDefines={};modules.forEach((module=>{Object.assign(allDefines,module.getDefines())})),Object.assign(allDefines,defines);let assembledSource=prologue?"".concat(versionLine,"\n").concat(function getShaderName(_ref3){let{id:id,source:source,type:type}=_ref3;const injectShaderName=id&&"string"==typeof id&&-1===source.indexOf("SHADER_NAME");return injectShaderName?"\n#define SHADER_NAME ".concat(id,"_").concat(SHADER_TYPE[type],"\n\n"):""}({id:id,source:source,type:type}),"\n").concat(function getShaderType(_ref2){let{type:type}=_ref2;return"\n#define SHADER_TYPE_".concat(SHADER_TYPE[type].toUpperCase(),"\n")}({type:type}),"\n").concat(getPlatformShaderDefines(gl),"\n").concat(function getVersionDefines(gl,glslVersion,isFragment){let versionDefines="#if (__VERSION__ > 120)\n\n# define FEATURE_GLSL_DERIVATIVES\n# define FEATURE_GLSL_DRAW_BUFFERS\n# define FEATURE_GLSL_FRAG_DEPTH\n# define FEATURE_GLSL_TEXTURE_LOD\n\n// DEPRECATED FLAGS, remove in v9\n# define FRAG_DEPTH\n# define DERIVATIVES\n# define DRAW_BUFFERS\n# define TEXTURE_LOD\n\n#endif // __VERSION\n";return hasFeatures(gl,FEATURES.GLSL_FRAG_DEPTH)&&(versionDefines+="\n// FRAG_DEPTH => gl_FragDepth is available\n#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n# define FEATURE_GLSL_FRAG_DEPTH\n# define FRAG_DEPTH\n# define gl_FragDepth gl_FragDepthEXT\n#endif\n"),hasFeatures(gl,FEATURES.GLSL_DERIVATIVES)&&canCompileGLGSExtension(gl,FEATURES.GLSL_DERIVATIVES)&&(versionDefines+="\n// DERIVATIVES => dxdF, dxdY and fwidth are available\n#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives : enable\n# define FEATURE_GLSL_DERIVATIVES\n# define DERIVATIVES\n#endif\n"),hasFeatures(gl,FEATURES.GLSL_FRAG_DATA)&&canCompileGLGSExtension(gl,FEATURES.GLSL_FRAG_DATA,{behavior:"require"})&&(versionDefines+="\n// DRAW_BUFFERS => gl_FragData[] is available\n#ifdef GL_EXT_draw_buffers\n#extension GL_EXT_draw_buffers : require\n#define FEATURE_GLSL_DRAW_BUFFERS\n#define DRAW_BUFFERS\n#endif\n"),hasFeatures(gl,FEATURES.GLSL_TEXTURE_LOD)&&(versionDefines+="// TEXTURE_LOD => texture2DLod etc are available\n#ifdef GL_EXT_shader_texture_lod\n#extension GL_EXT_shader_texture_lod : enable\n\n# define FEATURE_GLSL_TEXTURE_LOD\n# define TEXTURE_LOD\n\n#endif\n"),versionDefines}(gl),"\n").concat(function getApplicationDefines(){let defines=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},count=0,sourceText="";for(const define in defines){0===count&&(sourceText+="\n// APPLICATION DEFINES\n"),count++;const value=defines[define];(value||Number.isFinite(value))&&(sourceText+="#define ".concat(define.toUpperCase()," ").concat(defines[define],"\n"))}0===count&&(sourceText+="\n");return sourceText}(allDefines),"\n").concat(isVertex?"":FRAGMENT_SHADER_PROLOGUE,"\n"):"".concat(versionLine,"\n");const hookFunctionMap=function normalizeHookFunctions(hookFunctions){const result={vs:{},fs:{}};return hookFunctions.forEach((hook=>{let opts;"string"!=typeof hook?(opts=hook,hook=opts.hook):opts={},hook=hook.trim();const[stage,signature]=hook.split(":"),name=hook.replace(/\(.+/,"");result[stage][name]=Object.assign(opts,{signature:signature})})),result}(hookFunctions),hookInjections={},declInjections={},mainInjections={};for(const key in inject){const injection="string"==typeof inject[key]?{injection:inject[key],order:0}:inject[key],match=key.match(/^(v|f)s:(#)?([\w-]+)$/);if(match){const hash=match[2],name=match[3];hash?"decl"===name?declInjections[key]=[injection]:mainInjections[key]=[injection]:hookInjections[key]=[injection]}else mainInjections[key]=[injection]}for(const module of modules){log&&module.checkDeprecations(coreSource,log);assembledSource+=module.getModuleSource(type,glslVersion);const injections=module.injections[type];for(const key in injections){const match=key.match(/^(v|f)s:#([\w-]+)$/);if(match){const injectionType="decl"===match[2]?declInjections:mainInjections;injectionType[key]=injectionType[key]||[],injectionType[key].push(injections[key])}else hookInjections[key]=hookInjections[key]||[],hookInjections[key].push(injections[key])}}return assembledSource+=INJECT_SHADER_DECLARATIONS,assembledSource=(0,inject_shader.ZP)(assembledSource,type,declInjections),assembledSource+=function getHookFunctions(hookFunctions,hookInjections){let result="";for(const hookName in hookFunctions){const hookFunction=hookFunctions[hookName];if(result+="void ".concat(hookFunction.signature," {\n"),hookFunction.header&&(result+=" ".concat(hookFunction.header)),hookInjections[hookName]){const injections=hookInjections[hookName];injections.sort(((a,b)=>a.order-b.order));for(const injection of injections)result+=" ".concat(injection.injection,"\n")}hookFunction.footer&&(result+=" ".concat(hookFunction.footer)),result+="}\n"}return result}(hookFunctionMap[type],hookInjections),assembledSource+=coreSource,assembledSource=(0,inject_shader.ZP)(assembledSource,type,mainInjections),assembledSource=transpileShader(assembledSource,transpileToGLSL100?100:glslVersion,isVertex),assembledSource}function assembleGetUniforms(modules){return function getUniforms(opts){const uniforms={};for(const module of modules){const moduleUniforms=module.getUniforms(opts,uniforms);Object.assign(uniforms,moduleUniforms)}return uniforms}}var program=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/program.js");class ProgramManager{static getDefaultProgramManager(gl){return gl.luma=gl.luma||{},gl.luma.defaultProgramManager=gl.luma.defaultProgramManager||new ProgramManager(gl),gl.luma.defaultProgramManager}constructor(gl){this.gl=gl,this._programCache={},this._getUniforms={},this._registeredModules={},this._hookFunctions=[],this._defaultModules=[],this._hashes={},this._hashCounter=0,this.stateHash=0,this._useCounts={}}addDefaultModule(module){this._defaultModules.find((m=>m.name===module.name))||this._defaultModules.push(module),this.stateHash++}removeDefaultModule(module){const moduleName="string"==typeof module?module:module.name;this._defaultModules=this._defaultModules.filter((m=>m.name!==moduleName)),this.stateHash++}addShaderHook(hook,opts){opts&&(hook=Object.assign(opts,{hook:hook})),this._hookFunctions.push(hook),this.stateHash++}get(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{vs:vs="",fs:fs="",defines:defines={},inject:inject={},varyings:varyings=[],bufferMode:bufferMode=35981,transpileToGLSL100:transpileToGLSL100=!1}=props,modules=this._getModuleList(props.modules),vsHash=this._getHash(vs),fsHash=this._getHash(fs),moduleHashes=modules.map((m=>this._getHash(m.name))).sort(),varyingHashes=varyings.map((v=>this._getHash(v))),defineKeys=Object.keys(defines).sort(),injectKeys=Object.keys(inject).sort(),defineHashes=[],injectHashes=[];for(const key of defineKeys)defineHashes.push(this._getHash(key)),defineHashes.push(this._getHash(defines[key]));for(const key of injectKeys)injectHashes.push(this._getHash(key)),injectHashes.push(this._getHash(inject[key]));const hash="".concat(vsHash,"/").concat(fsHash,"D").concat(defineHashes.join("/"),"M").concat(moduleHashes.join("/"),"I").concat(injectHashes.join("/"),"V").concat(varyingHashes.join("/"),"H").concat(this.stateHash,"B").concat(bufferMode).concat(transpileToGLSL100?"T":"");if(!this._programCache[hash]){const assembled=function assembleShaders(gl,opts){const{vs:vs,fs:fs}=opts,modules=resolveModules(opts.modules||[]);return{gl:gl,vs:assembleShader(gl,Object.assign({},opts,{source:vs,type:constants.H,modules:modules})),fs:assembleShader(gl,Object.assign({},opts,{source:fs,type:constants.Y,modules:modules})),getUniforms:assembleGetUniforms(modules)}}(this.gl,{vs:vs,fs:fs,modules:modules,inject:inject,defines:defines,hookFunctions:this._hookFunctions,transpileToGLSL100:transpileToGLSL100});this._programCache[hash]=new program.Z(this.gl,{hash:hash,vs:assembled.vs,fs:assembled.fs,varyings:varyings,bufferMode:bufferMode}),this._getUniforms[hash]=assembled.getUniforms||(x=>{}),this._useCounts[hash]=0}return this._useCounts[hash]++,this._programCache[hash]}getUniforms(program){return this._getUniforms[program.hash]||null}release(program){const hash=program.hash;this._useCounts[hash]--,0===this._useCounts[hash]&&(this._programCache[hash].delete(),delete this._programCache[hash],delete this._getUniforms[hash],delete this._useCounts[hash])}_getHash(key){return void 0===this._hashes[key]&&(this._hashes[key]=this._hashCounter++),this._hashes[key]}_getModuleList(){let appModules=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const modules=new Array(this._defaultModules.length+appModules.length),seen={};let count=0;for(let i=0,len=this._defaultModules.length;i0&&void 0!==arguments[0]?arguments[0]:{};const{version:version=100,input:input,inputType:inputType,output:output}=options;if(!input)return 300===version?FS300:version>300?"#version ".concat(version,"\n").concat(FS_GLES):"void main() {gl_FragColor = vec4(0);}";const outputValue=function convertToVec4(variable,type){switch(type){case"float":return"vec4(".concat(variable,", 0.0, 0.0, 1.0)");case"vec2":return"vec4(".concat(variable,", 0.0, 1.0)");case"vec3":return"vec4(".concat(variable,", 1.0)");case"vec4":return variable;default:return(0,assert.Z)(!1),null}}(input,inputType);return version>=300?"#version ".concat(version," ").concat(300===version?"es":"","\nin ").concat(inputType," ").concat(input,";\nout vec4 ").concat(output,";\nvoid main() {\n ").concat(output," = ").concat(outputValue,";\n}"):"varying ".concat(inputType," ").concat(input,";\nvoid main() {\n gl_FragColor = ").concat(outputValue,";\n}")}var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),classes_buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),transform_feedback=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/transform-feedback.js"),utils_assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");class BufferTransform{constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=gl,this.currentIndex=0,this.feedbackMap={},this.varyings=null,this.bindings=[],this.resources={},this._initialize(props),Object.seal(this)}setupResources(opts){for(const binding of this.bindings)this._setupTransformFeedback(binding,opts)}updateModelProps(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{varyings:varyings}=this;return varyings.length>0&&(props=Object.assign({},props,{varyings:varyings})),props}getDrawOptions(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const binding=this.bindings[this.currentIndex],{sourceBuffers:sourceBuffers,transformFeedback:transformFeedback}=binding;return{attributes:Object.assign({},sourceBuffers,opts.attributes),transformFeedback:transformFeedback}}swap(){return!!this.feedbackMap&&(this.currentIndex=this._getNextIndex(),!0)}update(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupBuffers(opts)}getBuffer(varyingName){const{feedbackBuffers:feedbackBuffers}=this.bindings[this.currentIndex],bufferOrParams=varyingName?feedbackBuffers[varyingName]:null;return bufferOrParams?bufferOrParams instanceof classes_buffer.Z?bufferOrParams:bufferOrParams.buffer:null}getData(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{varyingName:varyingName}=options,buffer=this.getBuffer(varyingName);return buffer?buffer.getData():null}delete(){for(const name in this.resources)this.resources[name].delete()}_initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupBuffers(props),this.varyings=props.varyings||Object.keys(this.bindings[this.currentIndex].feedbackBuffers),this.varyings.length>0&&(0,utils_assert.h)((0,esm.D0)(this.gl))}_getFeedbackBuffers(props){const{sourceBuffers:sourceBuffers={}}=props,feedbackBuffers={};if(this.bindings[this.currentIndex]&&Object.assign(feedbackBuffers,this.bindings[this.currentIndex].feedbackBuffers),this.feedbackMap)for(const sourceName in this.feedbackMap){const feedbackName=this.feedbackMap[sourceName];sourceName in sourceBuffers&&(feedbackBuffers[feedbackName]=sourceName)}Object.assign(feedbackBuffers,props.feedbackBuffers);for(const bufferName in feedbackBuffers){const bufferOrRef=feedbackBuffers[bufferName];if("string"==typeof bufferOrRef){const sourceBuffer=sourceBuffers[bufferOrRef],{byteLength:byteLength,usage:usage,accessor:accessor}=sourceBuffer;feedbackBuffers[bufferName]=this._createNewBuffer(bufferName,{byteLength:byteLength,usage:usage,accessor:accessor})}}return feedbackBuffers}_setupBuffers(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:sourceBuffers=null}=props;Object.assign(this.feedbackMap,props.feedbackMap);const feedbackBuffers=this._getFeedbackBuffers(props);this._updateBindings({sourceBuffers:sourceBuffers,feedbackBuffers:feedbackBuffers})}_setupTransformFeedback(binding,_ref){let{model:model}=_ref;const{program:program}=model;binding.transformFeedback=new transform_feedback.Z(this.gl,{program:program,buffers:binding.feedbackBuffers})}_updateBindings(opts){if(this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],opts),this.feedbackMap){const{sourceBuffers:sourceBuffers,feedbackBuffers:feedbackBuffers}=this._swapBuffers(this.bindings[this.currentIndex]),nextIndex=this._getNextIndex();this.bindings[nextIndex]=this._updateBinding(this.bindings[nextIndex],{sourceBuffers:sourceBuffers,feedbackBuffers:feedbackBuffers})}}_updateBinding(binding,opts){return binding?(Object.assign(binding.sourceBuffers,opts.sourceBuffers),Object.assign(binding.feedbackBuffers,opts.feedbackBuffers),binding.transformFeedback&&binding.transformFeedback.setBuffers(binding.feedbackBuffers),binding):{sourceBuffers:Object.assign({},opts.sourceBuffers),feedbackBuffers:Object.assign({},opts.feedbackBuffers)}}_swapBuffers(opts){if(!this.feedbackMap)return null;const sourceBuffers=Object.assign({},opts.sourceBuffers),feedbackBuffers=Object.assign({},opts.feedbackBuffers);for(const srcName in this.feedbackMap){const dstName=this.feedbackMap[srcName];sourceBuffers[srcName]=opts.feedbackBuffers[dstName],feedbackBuffers[dstName]=opts.sourceBuffers[srcName],(0,utils_assert.h)(feedbackBuffers[dstName]instanceof classes_buffer.Z)}return{sourceBuffers:sourceBuffers,feedbackBuffers:feedbackBuffers}}_createNewBuffer(name,opts){const buffer=new classes_buffer.Z(this.gl,opts);return this.resources[name]&&this.resources[name].delete(),this.resources[name]=buffer,buffer}_getNextIndex(){return(this.currentIndex+1)%2}}var copy_and_blit=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),classes_framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),texture_utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/texture-utils.js");function getShaderVersion(source){let version=100;const words=source.match(/[^\s]+/g);if(words.length>=2&&"#version"===words[0]){const v=parseInt(words[1],10);Number.isFinite(v)&&(version=v)}return version}var inject_shader=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/inject-shader.js");const transform={name:"transform",vs:"attribute float transform_elementID;\nvec2 transform_getPixelSizeHalf(vec2 size) {\n return vec2(1.) / (2. * size);\n}\n\nvec2 transform_getPixelIndices(vec2 texSize, vec2 pixelSizeHalf) {\n float yIndex = floor((transform_elementID / texSize[0]) + pixelSizeHalf[1]);\n float xIndex = transform_elementID - (yIndex * texSize[0]);\n return vec2(xIndex, yIndex);\n}\nvec2 transform_getTexCoord(vec2 size) {\n vec2 pixelSizeHalf = transform_getPixelSizeHalf(size);\n vec2 indices = transform_getPixelIndices(size, pixelSizeHalf);\n vec2 coord = indices / size + pixelSizeHalf;\n return coord;\n}\nvec2 transform_getPos(vec2 size) {\n vec2 texCoord = transform_getTexCoord(size);\n vec2 pos = (texCoord * (2.0, 2.0)) - (1., 1.);\n return pos;\n}\nvec4 transform_getInput(sampler2D texSampler, vec2 size) {\n vec2 texCoord = transform_getTexCoord(size);\n vec4 textureColor = texture2D(texSampler, texCoord);\n return textureColor;\n}\n",fs:null},SAMPLER_UNIFORM_PREFIX="transform_uSampler_",SIZE_UNIFORM_PREFIX="transform_uSize_";function updateForTextures(_ref){let{vs:vs,sourceTextureMap:sourceTextureMap,targetTextureVarying:targetTextureVarying,targetTexture:targetTexture}=_ref;let sourceCount=Object.keys(sourceTextureMap).length,targetTextureType=null;const samplerTextureMap={};let updatedVs=vs,finalInject={};if(sourceCount>0||targetTextureVarying){const vsLines=updatedVs.split("\n"),updateVsLines=vsLines.slice();if(vsLines.forEach(((line,index,lines)=>{if(sourceCount>0){const updated=function processAttributeDefinition(line,textureMap){const samplerTextureMap={},attributeData=function getAttributeDefinition(line){return getQualifierDetails(line,["attribute","in"])}(line);if(!attributeData)return null;const{type:type,name:name}=attributeData;if(name&&textureMap[name]){const updatedLine="// ".concat(line," => Replaced by Transform with a sampler"),{samplerName:samplerName,sizeName:sizeName,uniformDeclerations:uniformDeclerations}=function getSamplerDeclerations(textureName){const samplerName="".concat(SAMPLER_UNIFORM_PREFIX).concat(textureName),sizeName="".concat(SIZE_UNIFORM_PREFIX).concat(textureName),uniformDeclerations=" uniform sampler2D ".concat(samplerName,";\n uniform vec2 ").concat(sizeName,";");return{samplerName:samplerName,sizeName:sizeName,uniformDeclerations:uniformDeclerations}}(name),channels=function typeToChannelSuffix(type){switch(type){case"float":return"x";case"vec2":return"xy";case"vec3":return"xyz";case"vec4":return"xyzw";default:return(0,assert.Z)(!1),null}}(type),sampleInstruction=" ".concat(type," ").concat(name," = transform_getInput(").concat(samplerName,", ").concat(sizeName,").").concat(channels,";\n");samplerTextureMap[samplerName]=name;return{updatedLine:updatedLine,inject:{"vs:#decl":uniformDeclerations,"vs:#main-start":sampleInstruction},samplerTextureMap:samplerTextureMap}}return null}(line,sourceTextureMap);if(updated){const{updatedLine:updatedLine,inject:inject}=updated;updateVsLines[index]=updatedLine,finalInject=(0,inject_shader.Lm)([finalInject,inject]),Object.assign(samplerTextureMap,updated.samplerTextureMap),sourceCount--}}targetTextureVarying&&!targetTextureType&&(targetTextureType=function getVaryingType(line,varying){const qualaiferDetails=getQualifierDetails(line,["varying","out"]);if(!qualaiferDetails)return null;return qualaiferDetails.name===varying?qualaiferDetails.type:null}(line,targetTextureVarying))})),targetTextureVarying){(0,utils_assert.h)(targetTexture);const sizeName="".concat(SIZE_UNIFORM_PREFIX).concat(targetTextureVarying),inject={"vs:#decl":"uniform vec2 ".concat(sizeName,";\n"),"vs:#main-start":" vec2 ".concat("transform_position"," = transform_getPos(").concat(sizeName,");\n gl_Position = vec4(").concat("transform_position",", 0, 1.);\n")};finalInject=(0,inject_shader.Lm)([finalInject,inject])}updatedVs=updateVsLines.join("\n")}return{vs:updatedVs,targetTextureType:targetTextureType,inject:finalInject,samplerTextureMap:samplerTextureMap}}const SRC_TEX_PARAMETER_OVERRIDES={10241:9728,10240:9728,10242:33071,10243:33071};class TextureTransform{constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=gl,this.id=this.currentIndex=0,this._swapTexture=null,this.targetTextureVarying=null,this.targetTextureType=null,this.samplerTextureMap=null,this.bindings=[],this.resources={},this._initialize(props),Object.seal(this)}updateModelProps(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const updatedModelProps=this._processVertexShader(props);return Object.assign({},props,updatedModelProps)}getDrawOptions(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:sourceBuffers,sourceTextures:sourceTextures,framebuffer:framebuffer,targetTexture:targetTexture}=this.bindings[this.currentIndex],attributes=Object.assign({},sourceBuffers,opts.attributes),uniforms=Object.assign({},opts.uniforms),parameters=Object.assign({},opts.parameters);let discard=opts.discard;if(this.hasSourceTextures||this.hasTargetTexture){attributes.transform_elementID=this.elementIDBuffer;for(const sampler in this.samplerTextureMap){const textureName=this.samplerTextureMap[sampler];uniforms[sampler]=sourceTextures[textureName]}this._setSourceTextureParameters();const sizeUniforms=function getSizeUniforms(_ref2){let{sourceTextureMap:sourceTextureMap,targetTextureVarying:targetTextureVarying,targetTexture:targetTexture}=_ref2;const uniforms={};let width,height;targetTextureVarying&&(({width:width,height:height}=targetTexture),uniforms["".concat(SIZE_UNIFORM_PREFIX).concat(targetTextureVarying)]=[width,height]);for(const textureName in sourceTextureMap)({width:width,height:height}=sourceTextureMap[textureName]),uniforms["".concat(SIZE_UNIFORM_PREFIX).concat(textureName)]=[width,height];return uniforms}({sourceTextureMap:sourceTextures,targetTextureVarying:this.targetTextureVarying,targetTexture:targetTexture});Object.assign(uniforms,sizeUniforms)}return this.hasTargetTexture&&(discard=!1,parameters.viewport=[0,0,framebuffer.width,framebuffer.height]),{attributes:attributes,framebuffer:framebuffer,uniforms:uniforms,discard:discard,parameters:parameters}}swap(){return!!this._swapTexture&&(this.currentIndex=this._getNextIndex(),!0)}update(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupTextures(opts)}getTargetTexture(){const{targetTexture:targetTexture}=this.bindings[this.currentIndex];return targetTexture}getData(){let{packed:packed=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{framebuffer:framebuffer}=this.bindings[this.currentIndex],pixels=(0,copy_and_blit.z6)(framebuffer);if(!packed)return pixels;const ArrayType=pixels.constructor,channelCount=function typeToChannelCount(type){switch(type){case"float":return 1;case"vec2":return 2;case"vec3":return 3;case"vec4":return 4;default:return(0,assert.Z)(!1),null}}(this.targetTextureType),packedPixels=new ArrayType(pixels.length*channelCount/4);let packCount=0;for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:{};const{_targetTextureVarying:_targetTextureVarying,_swapTexture:_swapTexture}=props;this._swapTexture=_swapTexture,this.targetTextureVarying=_targetTextureVarying,this.hasTargetTexture=_targetTextureVarying,this._setupTextures(props)}_createTargetTexture(props){const{sourceTextures:sourceTextures,textureOrReference:textureOrReference}=props;if(textureOrReference instanceof texture_2d.Z)return textureOrReference;const refTexture=sourceTextures[textureOrReference];return refTexture?(this._targetRefTexName=textureOrReference,this._createNewTexture(refTexture)):null}_setupTextures(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:sourceBuffers,_sourceTextures:_sourceTextures={},_targetTexture:_targetTexture}=props,targetTexture=this._createTargetTexture({sourceTextures:_sourceTextures,textureOrReference:_targetTexture});this.hasSourceTextures=this.hasSourceTextures||_sourceTextures&&Object.keys(_sourceTextures).length>0,this._updateBindings({sourceBuffers:sourceBuffers,sourceTextures:_sourceTextures,targetTexture:targetTexture}),"elementCount"in props&&this._updateElementIDBuffer(props.elementCount)}_updateElementIDBuffer(elementCount){if("number"!=typeof elementCount||this.elementCount>=elementCount)return;const elementIds=new Float32Array(elementCount);elementIds.forEach(((_,index,array)=>{array[index]=index})),this.elementIDBuffer?this.elementIDBuffer.setData({data:elementIds}):this.elementIDBuffer=new classes_buffer.Z(this.gl,{data:elementIds,accessor:{size:1}}),this.elementCount=elementCount}_updateBindings(opts){if(this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],opts),this._swapTexture){const{sourceTextures:sourceTextures,targetTexture:targetTexture}=this._swapTextures(this.bindings[this.currentIndex]),nextIndex=this._getNextIndex();this.bindings[nextIndex]=this._updateBinding(this.bindings[nextIndex],{sourceTextures:sourceTextures,targetTexture:targetTexture})}}_updateBinding(binding,opts){const{sourceBuffers:sourceBuffers,sourceTextures:sourceTextures,targetTexture:targetTexture}=opts;if(binding||(binding={sourceBuffers:{},sourceTextures:{},targetTexture:null}),Object.assign(binding.sourceTextures,sourceTextures),Object.assign(binding.sourceBuffers,sourceBuffers),targetTexture){binding.targetTexture=targetTexture;const{width:width,height:height}=targetTexture,{framebuffer:framebuffer}=binding;framebuffer?(framebuffer.update({attachments:{36064:targetTexture},resizeAttachments:!1}),framebuffer.resize({width:width,height:height})):binding.framebuffer=new classes_framebuffer.Z(this.gl,{id:"transform-framebuffer",width:width,height:height,attachments:{36064:targetTexture}})}return binding}_setSourceTextureParameters(){const index=this.currentIndex,{sourceTextures:sourceTextures}=this.bindings[index];for(const name in sourceTextures)sourceTextures[name].setParameters(SRC_TEX_PARAMETER_OVERRIDES)}_swapTextures(opts){if(!this._swapTexture)return null;const sourceTextures=Object.assign({},opts.sourceTextures);sourceTextures[this._swapTexture]=opts.targetTexture;return{sourceTextures:sourceTextures,targetTexture:opts.sourceTextures[this._swapTexture]}}_createNewTexture(refTexture){const texture=(0,texture_utils.h)(refTexture,{parameters:{10241:9728,10240:9728,10242:33071,10243:33071},pixelStore:{37440:!1}});return this.ownTexture&&this.ownTexture.delete(),this.ownTexture=texture,texture}_getNextIndex(){return(this.currentIndex+1)%2}_processVertexShader(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceTextures:sourceTextures,targetTexture:targetTexture}=this.bindings[this.currentIndex],{vs:vs,uniforms:uniforms,targetTextureType:targetTextureType,inject:inject,samplerTextureMap:samplerTextureMap}=updateForTextures({vs:props.vs,sourceTextureMap:sourceTextures,targetTextureVarying:this.targetTextureVarying,targetTexture:targetTexture}),combinedInject=(0,inject_shader.Lm)([props.inject||{},inject]);this.targetTextureType=targetTextureType,this.samplerTextureMap=samplerTextureMap;return{vs:vs,fs:props._fs||getPassthroughFS({version:getShaderVersion(vs),input:this.targetTextureVarying,inputType:targetTextureType,output:"transform_output"}),modules:this.hasSourceTextures||this.targetTextureVarying?[transform].concat(props.modules||[]):props.modules,uniforms:uniforms,inject:combinedInject}}}var utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js");class Transform{static isSupported(gl){return(0,esm.D0)(gl)}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=gl,this.model=null,this.elementCount=0,this.bufferTransform=null,this.textureTransform=null,this.elementIDBuffer=null,this._initialize(props),Object.seal(this)}delete(){const{model:model,bufferTransform:bufferTransform,textureTransform:textureTransform}=this;model&&model.delete(),bufferTransform&&bufferTransform.delete(),textureTransform&&textureTransform.delete()}run(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clearRenderTarget:clearRenderTarget=!0}=opts,updatedOpts=this._updateDrawOptions(opts);clearRenderTarget&&updatedOpts.framebuffer&&updatedOpts.framebuffer.clear({color:!0}),this.model.transform(updatedOpts)}swap(){let swapped=!1;const resourceTransforms=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const resourceTransform of resourceTransforms)swapped=swapped||resourceTransform.swap();(0,utils_assert.h)(swapped,"Nothing to swap")}getBuffer(){let varyingName=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.bufferTransform&&this.bufferTransform.getBuffer(varyingName)}getData(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const resourceTransforms=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const resourceTransform of resourceTransforms){const data=resourceTransform.getData(opts);if(data)return data}return null}getFramebuffer(){return this.textureTransform&&this.textureTransform.getFramebuffer()}update(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"elementCount"in opts&&this.model.setVertexCount(opts.elementCount);const resourceTransforms=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const resourceTransform of resourceTransforms)resourceTransform.update(opts)}_initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{gl:gl}=this;this._buildResourceTransforms(gl,props),props=this._updateModelProps(props),this.model=new model.Z(gl,Object.assign({},props,{fs:props.fs||getPassthroughFS({version:getShaderVersion(props.vs)}),id:props.id||"transform-model",drawMode:props.drawMode||0,vertexCount:props.elementCount})),this.bufferTransform&&this.bufferTransform.setupResources({model:this.model})}_updateModelProps(props){let updatedProps=Object.assign({},props);const resourceTransforms=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const resourceTransform of resourceTransforms)updatedProps=resourceTransform.updateModelProps(updatedProps);return updatedProps}_buildResourceTransforms(gl,props){(function canCreateBufferTransform(props){if(!(0,utils.nK)(props.feedbackBuffers)||!(0,utils.nK)(props.feedbackMap)||props.varyings&&props.varyings.length>0)return!0;return!1})(props)&&(this.bufferTransform=new BufferTransform(gl,props)),function canCreateTextureTransform(props){if(!(0,utils.nK)(props._sourceTextures)||props._targetTexture||props._targetTextureVarying)return!0;return!1}(props)&&(this.textureTransform=new TextureTransform(gl,props)),(0,utils_assert.h)(this.bufferTransform||this.textureTransform,"must provide source/feedback buffers or source/target textures")}_updateDrawOptions(opts){let updatedOpts=Object.assign({},opts);const resourceTransforms=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const resourceTransform of resourceTransforms)updatedOpts=Object.assign(updatedOpts,resourceTransform.getDrawOptions(updatedOpts));return updatedOpts}}},"./node_modules/@luma.gl/gltools/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{KQ:function(){return assertWebGL2Context},JD:function(){return assertWebGLContext},s9:function(){return createGLContext},JY:function(){return cssToDevicePixels},w:function(){return cssToDeviceRatio},ZS:function(){return getParameters},vd:function(){return getWebGL2Context},yW:function(){return instrumentGLContext},UF:function(){return isWebGL},D0:function(){return isWebGL2},cM:function(){return log_log},kL:function(){return resetParameters},aQ:function(){return resizeGLContext},dR:function(){return setParameters},s8:function(){return withParameters}});const log_log=new(__webpack_require__("./node_modules/@probe.gl/log/dist/esm/log.js").Z)({id:"luma.gl"});function assert(condition,message){if(!condition)throw new Error(message||"luma.gl: assertion failed.")}const ERR_CONTEXT="Invalid WebGLRenderingContext",ERR_WEBGL2="Requires WebGL2";function isWebGL(gl){return"undefined"!=typeof WebGLRenderingContext&&gl instanceof WebGLRenderingContext||("undefined"!=typeof WebGL2RenderingContext&&gl instanceof WebGL2RenderingContext||Boolean(gl&&Number.isFinite(gl._version)))}function isWebGL2(gl){return"undefined"!=typeof WebGL2RenderingContext&&gl instanceof WebGL2RenderingContext||Boolean(gl&&2===gl._version)}function getWebGL2Context(gl){return isWebGL2(gl)?gl:null}function assertWebGLContext(gl){return assert(isWebGL(gl),ERR_CONTEXT),gl}function assertWebGL2Context(gl){return assert(isWebGL2(gl),ERR_WEBGL2),gl}const glErrorShadow={};function synthesizeGLError(err,opt_msg){glErrorShadow[err]=!0,void 0!==opt_msg&&function error(msg){globalThis.console&&globalThis.console.error&&globalThis.console.error(msg)}(opt_msg)}const WebGLVertexArrayObjectOES=function WebGLVertexArrayObjectOES(ext){const gl=ext.gl;this.ext=ext,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(ext.maxVertexAttribs);for(let n=0;n{!function polyfill_vertex_array_object_log(msg){globalThis.console&&globalThis.console.log&&globalThis.console.log(msg)}("OESVertexArrayObject emulation library context restored"),self.reset_()}),!0),this.reset_()};OESVertexArrayObject.prototype.VERTEX_ARRAY_BINDING_OES=34229,OESVertexArrayObject.prototype.reset_=function reset_(){if(void 0!==this.vertexArrayObjects)for(let ii=0;iiisWebGL2(gl)?void 0:0,WEBGL_PARAMETERS={3074:gl=>isWebGL2(gl)?void 0:36064,35723:gl=>isWebGL2(gl)?void 0:4352,35977:getWebGL2ValueOrZero,32937:getWebGL2ValueOrZero,36795:(gl,getParameter)=>{const ext=isWebGL2(gl)?gl.getExtension("EXT_disjoint_timer_query_webgl2"):gl.getExtension("EXT_disjoint_timer_query");return ext&&ext.GPU_DISJOINT_EXT?getParameter(ext.GPU_DISJOINT_EXT):0},37445:(gl,getParameter)=>{const ext=gl.getExtension("WEBGL_debug_renderer_info");return getParameter(ext&&ext.UNMASKED_VENDOR_WEBGL||7936)},37446:(gl,getParameter)=>{const ext=gl.getExtension("WEBGL_debug_renderer_info");return getParameter(ext&&ext.UNMASKED_RENDERER_WEBGL||7937)},34047:(gl,getParameter)=>{const ext=gl.luma.extensions.EXT_texture_filter_anisotropic;return ext?getParameter(ext.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1},32883:getWebGL2ValueOrZero,35071:getWebGL2ValueOrZero,37447:getWebGL2ValueOrZero,36063:(gl,getParameter)=>{if(!isWebGL2(gl)){const ext=gl.getExtension("WEBGL_draw_buffers");return ext?getParameter(ext.MAX_COLOR_ATTACHMENTS_WEBGL):0}},35379:getWebGL2ValueOrZero,35374:getWebGL2ValueOrZero,35377:getWebGL2ValueOrZero,34852:gl=>{if(!isWebGL2(gl)){const ext=gl.getExtension("WEBGL_draw_buffers");return ext?ext.MAX_DRAW_BUFFERS_WEBGL:0}},36203:gl=>gl.getExtension("OES_element_index")?2147483647:65535,33001:gl=>gl.getExtension("OES_element_index")?16777216:65535,33e3:gl=>16777216,37157:getWebGL2ValueOrZero,35373:getWebGL2ValueOrZero,35657:getWebGL2ValueOrZero,36183:getWebGL2ValueOrZero,37137:getWebGL2ValueOrZero,34045:getWebGL2ValueOrZero,35978:getWebGL2ValueOrZero,35979:getWebGL2ValueOrZero,35968:getWebGL2ValueOrZero,35376:getWebGL2ValueOrZero,35375:getWebGL2ValueOrZero,35659:getWebGL2ValueOrZero,37154:getWebGL2ValueOrZero,35371:getWebGL2ValueOrZero,35658:getWebGL2ValueOrZero,35076:getWebGL2ValueOrZero,35077:getWebGL2ValueOrZero,35380:getWebGL2ValueOrZero};const WEBGL2_CONTEXT_POLYFILLS={OES_vertex_array_object:{meta:{suffix:"OES"},createVertexArray:()=>{assert(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:()=>{},bindVertexArray:()=>{},isVertexArray:()=>!1},ANGLE_instanced_arrays:{meta:{suffix:"ANGLE"},vertexAttribDivisor(location,divisor){assert(0===divisor,"WebGL instanced rendering not supported")},drawElementsInstanced:()=>{},drawArraysInstanced:()=>{}},WEBGL_draw_buffers:{meta:{suffix:"WEBGL"},drawBuffers:()=>{assert(!1)}},EXT_disjoint_timer_query:{meta:{suffix:"EXT"},createQuery:()=>{assert(!1)},deleteQuery:()=>{assert(!1)},beginQuery:()=>{assert(!1)},endQuery:()=>{},getQuery(handle,pname){return this.getQueryObject(handle,pname)},getQueryParameter(handle,pname){return this.getQueryObject(handle,pname)},getQueryObject:()=>{}}},WEBGL2_CONTEXT_OVERRIDES={readBuffer:(gl,originalFunc,attachment)=>{isWebGL2(gl)&&originalFunc(attachment)},getVertexAttrib:(gl,originalFunc,location,pname)=>{const{webgl2:webgl2,ext:ext}=function getExtensionData(gl,extension){return{webgl2:isWebGL2(gl),ext:gl.getExtension(extension)}}(gl,"ANGLE_instanced_arrays");let result;switch(pname){case 35069:result=!!webgl2&&void 0;break;case 35070:result=webgl2||ext?void 0:0}return void 0!==result?result:originalFunc(location,pname)},getProgramParameter:(gl,originalFunc,program,pname)=>{if(!isWebGL2(gl))switch(pname){case 35967:return 35981;case 35971:case 35382:return 0}return originalFunc(program,pname)},getInternalformatParameter:(gl,originalFunc,target,format,pname)=>isWebGL2(gl)||32937!==pname?gl.getInternalformatParameter(target,format,pname):new Int32Array([0]),getTexParameter(gl,originalFunc,target,pname){if(34046===pname){const{extensions:extensions}=gl.luma,ext=extensions.EXT_texture_filter_anisotropic;pname=ext&&ext.TEXTURE_MAX_ANISOTROPY_EXT||34046}return originalFunc(target,pname)},getParameter:function getParameterPolyfill(gl,originalGetParameter,pname){const limit=WEBGL_PARAMETERS[pname],value="function"==typeof limit?limit(gl,originalGetParameter,pname):limit;return void 0!==value?value:originalGetParameter(pname)},hint(gl,originalFunc,pname,value){return originalFunc(pname,value)}};function polyfillExtension(gl,_ref2){let{extension:extension,target:target,target2:target2}=_ref2;const defaults=WEBGL2_CONTEXT_POLYFILLS[extension];assert(defaults);const{meta:meta={}}=defaults,{suffix:suffix=""}=meta,ext=gl.getExtension(extension);for(const key of Object.keys(defaults)){const extKey="".concat(key).concat(suffix);let polyfill=null;"meta"===key||"function"==typeof gl[key]||(ext&&"function"==typeof ext[extKey]?polyfill=function(){return ext[extKey](...arguments)}:"function"==typeof defaults[key]&&(polyfill=defaults[key].bind(target))),polyfill&&(target[key]=polyfill,target2[key]=polyfill)}}globalThis.polyfillContext=function polyfillContext(gl){gl.luma=gl.luma||{};const{luma:luma}=gl;return luma.polyfilled||(!function polyfillVertexArrayObject(gl){if("function"==typeof gl.createVertexArray)return;const original_getSupportedExtensions=gl.getSupportedExtensions;gl.getSupportedExtensions=function getSupportedExtensions(){const list=original_getSupportedExtensions.call(this)||[];return list.indexOf("OES_vertex_array_object")<0&&list.push("OES_vertex_array_object"),list};const original_getExtension=gl.getExtension;gl.getExtension=function getExtension(name){return original_getExtension.call(this,name)||("OES_vertex_array_object"!==name?null:(gl.__OESVertexArrayObject||(this.__OESVertexArrayObject=new OESVertexArrayObject(this)),this.__OESVertexArrayObject))}}(gl),function initializeExtensions(gl){gl.luma.extensions={};const EXTENSIONS=gl.getSupportedExtensions()||[];for(const extension of EXTENSIONS)gl.luma[extension]=gl.getExtension(extension)}(gl),function installPolyfills(gl,polyfills){for(const extension of Object.getOwnPropertyNames(polyfills))"overrides"!==extension&&polyfillExtension(gl,{extension:extension,target:gl.luma,target2:gl})}(gl,WEBGL2_CONTEXT_POLYFILLS),function installOverrides(gl,_ref){let{target:target,target2:target2}=_ref;Object.keys(WEBGL2_CONTEXT_OVERRIDES).forEach((key=>{if("function"==typeof WEBGL2_CONTEXT_OVERRIDES[key]){const originalFunc=gl[key]?gl[key].bind(gl):()=>{},polyfill=WEBGL2_CONTEXT_OVERRIDES[key].bind(null,gl,originalFunc);target[key]=polyfill,target2[key]=polyfill}}))}(gl,{target:luma,target2:gl}),luma.polyfilled=!0),gl};const GL_PARAMETER_DEFAULTS={3042:!1,32773:new Float32Array([0,0,0,0]),32777:32774,34877:32774,32969:1,32968:0,32971:1,32970:0,3106:new Float32Array([0,0,0,0]),3107:[!0,!0,!0,!0],2884:!1,2885:1029,2929:!1,2931:1,2932:513,2928:new Float32Array([0,1]),2930:!0,3024:!0,36006:null,2886:2305,33170:4352,2849:1,32823:!1,32824:0,10752:0,32938:1,32939:!1,3089:!1,3088:new Int32Array([0,0,1024,1024]),2960:!1,2961:0,2968:4294967295,36005:4294967295,2962:519,2967:0,2963:4294967295,34816:519,36003:0,36004:4294967295,2964:7680,2965:7680,2966:7680,34817:7680,34818:7680,34819:7680,2978:[0,0,1024,1024],3333:4,3317:4,37440:!1,37441:!1,37443:37444,35723:4352,36010:null,35977:!1,3330:0,3332:0,3331:0,3314:0,32878:0,3316:0,3315:0,32877:0},enable=(gl,value,key)=>value?gl.enable(key):gl.disable(key),hint=(gl,value,key)=>gl.hint(key,value),pixelStorei=(gl,value,key)=>gl.pixelStorei(key,value);function isArray(array){return Array.isArray(array)||ArrayBuffer.isView(array)}const GL_PARAMETER_SETTERS={3042:enable,32773:(gl,value)=>gl.blendColor(...value),32777:"blendEquation",34877:"blendEquation",32969:"blendFunc",32968:"blendFunc",32971:"blendFunc",32970:"blendFunc",3106:(gl,value)=>gl.clearColor(...value),3107:(gl,value)=>gl.colorMask(...value),2884:enable,2885:(gl,value)=>gl.cullFace(value),2929:enable,2931:(gl,value)=>gl.clearDepth(value),2932:(gl,value)=>gl.depthFunc(value),2928:(gl,value)=>gl.depthRange(...value),2930:(gl,value)=>gl.depthMask(value),3024:enable,35723:hint,36006:(gl,value)=>{const target=isWebGL2(gl)?36009:36160;return gl.bindFramebuffer(target,value)},2886:(gl,value)=>gl.frontFace(value),33170:hint,2849:(gl,value)=>gl.lineWidth(value),32823:enable,32824:"polygonOffset",10752:"polygonOffset",35977:enable,32938:"sampleCoverage",32939:"sampleCoverage",3089:enable,3088:(gl,value)=>gl.scissor(...value),2960:enable,2961:(gl,value)=>gl.clearStencil(value),2968:(gl,value)=>gl.stencilMaskSeparate(1028,value),36005:(gl,value)=>gl.stencilMaskSeparate(1029,value),2962:"stencilFuncFront",2967:"stencilFuncFront",2963:"stencilFuncFront",34816:"stencilFuncBack",36003:"stencilFuncBack",36004:"stencilFuncBack",2964:"stencilOpFront",2965:"stencilOpFront",2966:"stencilOpFront",34817:"stencilOpBack",34818:"stencilOpBack",34819:"stencilOpBack",2978:(gl,value)=>gl.viewport(...value),3333:pixelStorei,3317:pixelStorei,37440:pixelStorei,37441:pixelStorei,37443:pixelStorei,3330:pixelStorei,3332:pixelStorei,3331:pixelStorei,36010:(gl,value)=>gl.bindFramebuffer(36008,value),3314:pixelStorei,32878:pixelStorei,3316:pixelStorei,3315:pixelStorei,32877:pixelStorei,framebuffer:(gl,framebuffer)=>{const handle=framebuffer&&"handle"in framebuffer?framebuffer.handle:framebuffer;return gl.bindFramebuffer(36160,handle)},blend:(gl,value)=>value?gl.enable(3042):gl.disable(3042),blendColor:(gl,value)=>gl.blendColor(...value),blendEquation:(gl,args)=>{args=isArray(args)?args:[args,args],gl.blendEquationSeparate(...args)},blendFunc:(gl,args)=>{args=isArray(args)&&2===args.length?[...args,...args]:args,gl.blendFuncSeparate(...args)},clearColor:(gl,value)=>gl.clearColor(...value),clearDepth:(gl,value)=>gl.clearDepth(value),clearStencil:(gl,value)=>gl.clearStencil(value),colorMask:(gl,value)=>gl.colorMask(...value),cull:(gl,value)=>value?gl.enable(2884):gl.disable(2884),cullFace:(gl,value)=>gl.cullFace(value),depthTest:(gl,value)=>value?gl.enable(2929):gl.disable(2929),depthFunc:(gl,value)=>gl.depthFunc(value),depthMask:(gl,value)=>gl.depthMask(value),depthRange:(gl,value)=>gl.depthRange(...value),dither:(gl,value)=>value?gl.enable(3024):gl.disable(3024),derivativeHint:(gl,value)=>{gl.hint(35723,value)},frontFace:(gl,value)=>gl.frontFace(value),mipmapHint:(gl,value)=>gl.hint(33170,value),lineWidth:(gl,value)=>gl.lineWidth(value),polygonOffsetFill:(gl,value)=>value?gl.enable(32823):gl.disable(32823),polygonOffset:(gl,value)=>gl.polygonOffset(...value),sampleCoverage:(gl,value)=>gl.sampleCoverage(...value),scissorTest:(gl,value)=>value?gl.enable(3089):gl.disable(3089),scissor:(gl,value)=>gl.scissor(...value),stencilTest:(gl,value)=>value?gl.enable(2960):gl.disable(2960),stencilMask:(gl,value)=>{value=isArray(value)?value:[value,value];const[mask,backMask]=value;gl.stencilMaskSeparate(1028,mask),gl.stencilMaskSeparate(1029,backMask)},stencilFunc:(gl,args)=>{args=isArray(args)&&3===args.length?[...args,...args]:args;const[func,ref,mask,backFunc,backRef,backMask]=args;gl.stencilFuncSeparate(1028,func,ref,mask),gl.stencilFuncSeparate(1029,backFunc,backRef,backMask)},stencilOp:(gl,args)=>{args=isArray(args)&&3===args.length?[...args,...args]:args;const[sfail,dpfail,dppass,backSfail,backDpfail,backDppass]=args;gl.stencilOpSeparate(1028,sfail,dpfail,dppass),gl.stencilOpSeparate(1029,backSfail,backDpfail,backDppass)},viewport:(gl,value)=>gl.viewport(...value)};function getValue(glEnum,values,cache){return void 0!==values[glEnum]?values[glEnum]:cache[glEnum]}const GL_COMPOSITE_PARAMETER_SETTERS={blendEquation:(gl,values,cache)=>gl.blendEquationSeparate(getValue(32777,values,cache),getValue(34877,values,cache)),blendFunc:(gl,values,cache)=>gl.blendFuncSeparate(getValue(32969,values,cache),getValue(32968,values,cache),getValue(32971,values,cache),getValue(32970,values,cache)),polygonOffset:(gl,values,cache)=>gl.polygonOffset(getValue(32824,values,cache),getValue(10752,values,cache)),sampleCoverage:(gl,values,cache)=>gl.sampleCoverage(getValue(32938,values,cache),getValue(32939,values,cache)),stencilFuncFront:(gl,values,cache)=>gl.stencilFuncSeparate(1028,getValue(2962,values,cache),getValue(2967,values,cache),getValue(2963,values,cache)),stencilFuncBack:(gl,values,cache)=>gl.stencilFuncSeparate(1029,getValue(34816,values,cache),getValue(36003,values,cache),getValue(36004,values,cache)),stencilOpFront:(gl,values,cache)=>gl.stencilOpSeparate(1028,getValue(2964,values,cache),getValue(2965,values,cache),getValue(2966,values,cache)),stencilOpBack:(gl,values,cache)=>gl.stencilOpSeparate(1029,getValue(34817,values,cache),getValue(34818,values,cache),getValue(34819,values,cache))},GL_HOOKED_SETTERS={enable:(update,capability)=>update({[capability]:!0}),disable:(update,capability)=>update({[capability]:!1}),pixelStorei:(update,pname,value)=>update({[pname]:value}),hint:(update,pname,hint)=>update({[pname]:hint}),bindFramebuffer:(update,target,framebuffer)=>{switch(target){case 36160:return update({36006:framebuffer,36010:framebuffer});case 36009:return update({36006:framebuffer});case 36008:return update({36010:framebuffer});default:return null}},blendColor:(update,r,g,b,a)=>update({32773:new Float32Array([r,g,b,a])}),blendEquation:(update,mode)=>update({32777:mode,34877:mode}),blendEquationSeparate:(update,modeRGB,modeAlpha)=>update({32777:modeRGB,34877:modeAlpha}),blendFunc:(update,src,dst)=>update({32969:src,32968:dst,32971:src,32970:dst}),blendFuncSeparate:(update,srcRGB,dstRGB,srcAlpha,dstAlpha)=>update({32969:srcRGB,32968:dstRGB,32971:srcAlpha,32970:dstAlpha}),clearColor:(update,r,g,b,a)=>update({3106:new Float32Array([r,g,b,a])}),clearDepth:(update,depth)=>update({2931:depth}),clearStencil:(update,s)=>update({2961:s}),colorMask:(update,r,g,b,a)=>update({3107:[r,g,b,a]}),cullFace:(update,mode)=>update({2885:mode}),depthFunc:(update,func)=>update({2932:func}),depthRange:(update,zNear,zFar)=>update({2928:new Float32Array([zNear,zFar])}),depthMask:(update,mask)=>update({2930:mask}),frontFace:(update,face)=>update({2886:face}),lineWidth:(update,width)=>update({2849:width}),polygonOffset:(update,factor,units)=>update({32824:factor,10752:units}),sampleCoverage:(update,value,invert)=>update({32938:value,32939:invert}),scissor:(update,x,y,width,height)=>update({3088:new Int32Array([x,y,width,height])}),stencilMask:(update,mask)=>update({2968:mask,36005:mask}),stencilMaskSeparate:(update,face,mask)=>update({[1028===face?2968:36005]:mask}),stencilFunc:(update,func,ref,mask)=>update({2962:func,2967:ref,2963:mask,34816:func,36003:ref,36004:mask}),stencilFuncSeparate:(update,face,func,ref,mask)=>update({[1028===face?2962:34816]:func,[1028===face?2967:36003]:ref,[1028===face?2963:36004]:mask}),stencilOp:(update,fail,zfail,zpass)=>update({2964:fail,2965:zfail,2966:zpass,34817:fail,34818:zfail,34819:zpass}),stencilOpSeparate:(update,face,fail,zfail,zpass)=>update({[1028===face?2964:34817]:fail,[1028===face?2965:34818]:zfail,[1028===face?2966:34819]:zpass}),viewport:(update,x,y,width,height)=>update({2978:[x,y,width,height]})},isEnabled=(gl,key)=>gl.isEnabled(key),GL_PARAMETER_GETTERS={3042:isEnabled,2884:isEnabled,2929:isEnabled,3024:isEnabled,32823:isEnabled,32926:isEnabled,32928:isEnabled,3089:isEnabled,2960:isEnabled,35977:isEnabled};function isObjectEmpty(object){for(const key in object)return!1;return!0}function deepArrayEqual(x,y){if(x===y)return!0;const isArrayX=Array.isArray(x)||ArrayBuffer.isView(x),isArrayY=Array.isArray(y)||ArrayBuffer.isView(y);if(isArrayX&&isArrayY&&x.length===y.length){for(let i=0;i{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=gl,this.program=null,this.stateStack=[],this.enable=!0,this.cache=copyState?getParameters(gl):Object.assign({},GL_PARAMETER_DEFAULTS),this.log=log,this._updateCache=this._updateCache.bind(this),Object.seal(this)}push(){this.stateStack.push({})}pop(){assert(this.stateStack.length>0);const oldValues=this.stateStack[this.stateStack.length-1];setParameters(this.gl,oldValues),this.stateStack.pop()}_updateCache(values){let oldValue,valueChanged=!1;const oldValues=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(const key in values){assert(void 0!==key);const value=values[key],cached=this.cache[key];deepArrayEqual(value,cached)||(valueChanged=!0,oldValue=cached,oldValues&&!(key in oldValues)&&(oldValues[key]=cached),this.cache[key]=value)}return{valueChanged:valueChanged,oldValue:oldValue}}}function trackContextState(gl){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{enable:enable=!0,copyState:copyState}=options;if(assert(void 0!==copyState),!gl.state){const{polyfillContext:polyfillContext}=globalThis;polyfillContext&&polyfillContext(gl),gl.state=new GLState(gl,{copyState:copyState}),function installProgramSpy(gl){const originalUseProgram=gl.useProgram.bind(gl);gl.useProgram=function useProgramLuma(handle){gl.state.program!==handle&&(originalUseProgram(handle),gl.state.program=handle)}}(gl);for(const key in GL_HOOKED_SETTERS){installSetterSpy(gl,key,GL_HOOKED_SETTERS[key])}installGetterOverride(gl,"getParameter"),installGetterOverride(gl,"isEnabled")}return gl.state.enable=enable,gl}function popContextState(gl){assert(gl.state),gl.state.pop()}function setParameters(gl,values){if(assert(isWebGL(gl),"setParameters requires a WebGL context"),isObjectEmpty(values))return;const compositeSetters={};for(const key in values){const glConstant=Number(key),setter=GL_PARAMETER_SETTERS[key];setter&&("string"==typeof setter?compositeSetters[setter]=!0:setter(gl,values[key],glConstant))}const cache=gl.state&&gl.state.cache;if(cache)for(const key in compositeSetters){(0,GL_COMPOSITE_PARAMETER_SETTERS[key])(gl,values,cache)}}function getParameters(gl,parameters){if("number"==typeof(parameters=parameters||GL_PARAMETER_DEFAULTS)){const key=parameters,getter=GL_PARAMETER_GETTERS[key];return getter?getter(gl,key):gl.getParameter(key)}const parameterKeys=Array.isArray(parameters)?parameters:Object.keys(parameters),state={};for(const key of parameterKeys){const getter=GL_PARAMETER_GETTERS[key];state[key]=getter?getter(gl,Number(key)):gl.getParameter(Number(key))}return state}function resetParameters(gl){setParameters(gl,GL_PARAMETER_DEFAULTS)}function withParameters(gl,parameters,func){if(isObjectEmpty(parameters))return func(gl);const{nocatch:nocatch=!0}=parameters;let value;if(function pushContextState(gl){gl.state||trackContextState(gl,{copyState:!1}),gl.state.push()}(gl),setParameters(gl,parameters),nocatch)value=func(gl),popContextState(gl);else try{value=func(gl)}finally{popContextState(gl)}return value}function cssToDeviceRatio(gl){const{luma:luma}=gl;if(gl.canvas&&luma){const cachedSize=luma.canvasSizeInfo,clientWidth="clientWidth"in cachedSize?cachedSize.clientWidth:gl.canvas.clientWidth;return clientWidth?gl.drawingBufferWidth/clientWidth:1}return 1}function cssToDevicePixels(gl,cssPixel){let yInvert=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function scalePixels(pixel,ratio,width,height,yInvert){const x=scaleX(pixel[0],ratio,width);let y=scaleY(pixel[1],ratio,height,yInvert),t=scaleX(pixel[0]+1,ratio,width);const xHigh=t===width-1?t:t-1;let yHigh;t=scaleY(pixel[1]+1,ratio,height,yInvert),yInvert?(t=0===t?t:t+1,yHigh=y,y=t):yHigh=t===height-1?t:t-1;return{x:x,y:y,width:Math.max(xHigh-x+1,1),height:Math.max(yHigh-y+1,1)}}(cssPixel,cssToDeviceRatio(gl),gl.drawingBufferWidth,gl.drawingBufferHeight,yInvert)}function scaleX(x,ratio,width){return Math.min(Math.round(x*ratio),width-1)}function scaleY(y,ratio,height,yInvert){return yInvert?Math.max(0,height-1-Math.round(y*ratio)):Math.min(Math.round(y*ratio),height-1)}const isBrowser=(0,__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js").Z)(),isPage=isBrowser&&"undefined"!=typeof document,CONTEXT_DEFAULTS={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function createGLContext(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};assert(isBrowser,"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"),options=Object.assign({},CONTEXT_DEFAULTS,options);const{width:width,height:height}=options;function onError(message){if(options.throwOnError)throw new Error(message);return console.error(message),null}let gl;options.onError=onError;const{canvas:canvas}=options,targetCanvas=function getCanvas(_ref){let targetCanvas,{canvas:canvas,width:width=800,height:height=600,onError:onError}=_ref;if("string"==typeof canvas){isPage&&"complete"===document.readyState||onError("createGLContext called on canvas '".concat(canvas,"' before page was loaded")),targetCanvas=document.getElementById(canvas)}else canvas?targetCanvas=canvas:(targetCanvas=document.createElement("canvas"),targetCanvas.id="lumagl-canvas",targetCanvas.style.width=Number.isFinite(width)?"".concat(width,"px"):"100%",targetCanvas.style.height=Number.isFinite(height)?"".concat(height,"px"):"100%",document.body.insertBefore(targetCanvas,document.body.firstChild));return targetCanvas}({canvas:canvas,width:width,height:height,onError:onError});return gl=function createBrowserContext(canvas,options){const{onError:onError}=options;let errorMessage=null;const onCreateError=error=>errorMessage=error.statusMessage||errorMessage;canvas.addEventListener("webglcontextcreationerror",onCreateError,!1);const{webgl1:webgl1=!0,webgl2:webgl2=!0}=options;let gl=null;webgl2&&(gl=gl||canvas.getContext("webgl2",options),gl=gl||canvas.getContext("experimental-webgl2",options));webgl1&&(gl=gl||canvas.getContext("webgl",options),gl=gl||canvas.getContext("experimental-webgl",options));if(canvas.removeEventListener("webglcontextcreationerror",onCreateError,!1),!gl)return onError("Failed to create ".concat(webgl2&&!webgl1?"WebGL2":"WebGL"," context: ").concat(errorMessage||"Unknown error"));options.onContextLost&&canvas.addEventListener("webglcontextlost",options.onContextLost,!1);options.onContextRestored&&canvas.addEventListener("webglcontextrestored",options.onContextRestored,!1);return gl}(targetCanvas,options),gl?(gl=instrumentGLContext(gl,options),function logInfo(gl){const webGL=isWebGL2(gl)?"WebGL2":"WebGL1",info=function getContextDebugInfo(gl){const vendorMasked=gl.getParameter(7936),rendererMasked=gl.getParameter(7937),ext=gl.getExtension("WEBGL_debug_renderer_info"),vendorUnmasked=ext&&gl.getParameter(ext.UNMASKED_VENDOR_WEBGL||7936),rendererUnmasked=ext&&gl.getParameter(ext.UNMASKED_RENDERER_WEBGL||7937);return{vendor:vendorUnmasked||vendorMasked,renderer:rendererUnmasked||rendererMasked,vendorMasked:vendorMasked,rendererMasked:rendererMasked,version:gl.getParameter(7938),shadingLanguageVersion:gl.getParameter(35724)}}(gl),driver=info?"(".concat(info.vendor,",").concat(info.renderer,")"):"",debug=gl.debug?" debug":"";log_log.info(1,"".concat(webGL).concat(debug," context ").concat(driver))()}(gl),gl):null}function instrumentGLContext(gl){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!gl||gl._instrumented)return gl;gl._version=gl._version||function getVersion(gl){if("undefined"!=typeof WebGL2RenderingContext&&gl instanceof WebGL2RenderingContext)return 2;return 1}(gl),gl.luma=gl.luma||{},gl.luma.canvasSizeInfo=gl.luma.canvasSizeInfo||{},options=Object.assign({},CONTEXT_DEFAULTS,options);const{manageState:manageState,debug:debug}=options;return manageState&&trackContextState(gl,{copyState:!1,log:function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return log_log.log(1,...args)()}}),isBrowser&&debug&&(globalThis.makeDebugContext?(gl=globalThis.makeDebugContext(gl,options),log_log.level=Math.max(log_log.level,1)):log_log.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),gl._instrumented=!0,gl}function resizeGLContext(gl){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(gl.canvas){return void function setDevicePixelRatio(gl,devicePixelRatio,options){let clientWidth="width"in options?options.width:gl.canvas.clientWidth,clientHeight="height"in options?options.height:gl.canvas.clientHeight;clientWidth&&clientHeight||(log_log.log(1,"Canvas clientWidth/clientHeight is 0")(),devicePixelRatio=1,clientWidth=gl.canvas.width||1,clientHeight=gl.canvas.height||1);gl.luma=gl.luma||{},gl.luma.canvasSizeInfo=gl.luma.canvasSizeInfo||{};const cachedSize=gl.luma.canvasSizeInfo;if(cachedSize.clientWidth!==clientWidth||cachedSize.clientHeight!==clientHeight||cachedSize.devicePixelRatio!==devicePixelRatio){let clampedPixelRatio=devicePixelRatio;const canvasWidth=Math.floor(clientWidth*clampedPixelRatio),canvasHeight=Math.floor(clientHeight*clampedPixelRatio);gl.canvas.width=canvasWidth,gl.canvas.height=canvasHeight,gl.drawingBufferWidth===canvasWidth&&gl.drawingBufferHeight===canvasHeight||(log_log.warn("Device pixel ratio clamped")(),clampedPixelRatio=Math.min(gl.drawingBufferWidth/clientWidth,gl.drawingBufferHeight/clientHeight),gl.canvas.width=Math.floor(clientWidth*clampedPixelRatio),gl.canvas.height=Math.floor(clientHeight*clampedPixelRatio)),Object.assign(gl.luma.canvasSizeInfo,{clientWidth:clientWidth,clientHeight:clientHeight,devicePixelRatio:devicePixelRatio})}}(gl,function getDevicePixelRatio(useDevicePixels){const windowRatio="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(useDevicePixels)?useDevicePixels<=0?1:useDevicePixels:useDevicePixels?windowRatio:1}(options.useDevicePixels),options)}const ext=gl.getExtension("STACKGL_resize_drawingbuffer");ext&&"width"in options&&"height"in options&&ext.resize(options.width,options.height)}},"./node_modules/@luma.gl/shadertools/dist/esm/lib/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return VERTEX_SHADER},Y:function(){return FRAGMENT_SHADER}});const VERTEX_SHADER="vs",FRAGMENT_SHADER="fs"},"./node_modules/@luma.gl/shadertools/dist/esm/lib/inject-shader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O_:function(){return DECLARATION_INJECT_MARKER},Lm:function(){return combineInjects},ZP:function(){return injectShader}});var constants=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/constants.js"),assert=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/utils/assert.js");const MODULE_INJECTORS={[constants.H]:"#ifdef MODULE_LOGDEPTH\n logdepth_adjustPosition(gl_Position);\n#endif\n",[constants.Y]:"#ifdef MODULE_MATERIAL\n gl_FragColor = material_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LIGHTING\n gl_FragColor = lighting_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_FOG\n gl_FragColor = fog_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_PICKING\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LOGDEPTH\n logdepth_setFragDepth();\n#endif\n"},DECLARATION_INJECT_MARKER="__LUMA_INJECT_DECLARATIONS__",REGEX_START_OF_MAIN=/void\s+main\s*\([^)]*\)\s*\{\n?/,REGEX_END_OF_MAIN=/}\n?[^{}]*$/,fragments=[];function injectShader(source,type,inject){let injectStandardStubs=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const isVertex=type===constants.H;for(const key in inject){const fragmentData=inject[key];fragmentData.sort(((a,b)=>a.order-b.order)),fragments.length=fragmentData.length;for(let i=0,len=fragmentData.length;imatch+fragmentString)));break;case"vs:#main-end":isVertex&&(source=source.replace(REGEX_END_OF_MAIN,(match=>fragmentString+match)));break;case"fs:#decl":isVertex||(source=source.replace(DECLARATION_INJECT_MARKER,fragmentString));break;case"fs:#main-start":isVertex||(source=source.replace(REGEX_START_OF_MAIN,(match=>match+fragmentString)));break;case"fs:#main-end":isVertex||(source=source.replace(REGEX_END_OF_MAIN,(match=>fragmentString+match)));break;default:source=source.replace(key,(match=>match+fragmentString))}}return source=source.replace(DECLARATION_INJECT_MARKER,""),injectStandardStubs&&(source=source.replace(/\}\s*$/,(match=>match+MODULE_INJECTORS[type]))),source}function combineInjects(injects){const result={};return(0,assert.Z)(Array.isArray(injects)&&injects.length>1),injects.forEach((inject=>{for(const key in inject)result[key]=result[key]?"".concat(result[key],"\n").concat(inject[key]):inject[key]})),result}},"./node_modules/@luma.gl/shadertools/dist/esm/lib/shader-module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ShaderModule},v:function(){return normalizeShaderModule}});var assert=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/utils/assert.js");const TYPE_DEFINITIONS={number:{validate(value,propType){return Number.isFinite(value)&&(!("max"in propType)||value<=propType.max)&&(!("min"in propType)||value>=propType.min)}},array:{validate(value,propType){return Array.isArray(value)||ArrayBuffer.isView(value)}}};function parsePropType(propDef){let type=getTypeOf(propDef);return"object"===type?propDef?"type"in propDef?Object.assign({},propDef,TYPE_DEFINITIONS[propDef.type]):"value"in propDef?(type=getTypeOf(propDef.value),Object.assign({type:type},propDef,TYPE_DEFINITIONS[type])):{type:"object",value:propDef}:{type:"object",value:null}:Object.assign({type:type,value:propDef},TYPE_DEFINITIONS[type])}function getTypeOf(value){return Array.isArray(value)||ArrayBuffer.isView(value)?"array":typeof value}class ShaderModule{constructor(_ref){let{name:name,vs:vs,fs:fs,dependencies:dependencies=[],uniforms:uniforms,getUniforms:getUniforms,deprecations:deprecations=[],defines:defines={},inject:inject={},vertexShader:vertexShader,fragmentShader:fragmentShader}=_ref;(0,assert.Z)("string"==typeof name),this.name=name,this.vs=vs||vertexShader,this.fs=fs||fragmentShader,this.getModuleUniforms=getUniforms,this.dependencies=dependencies,this.deprecations=this._parseDeprecationDefinitions(deprecations),this.defines=defines,this.injections=function normalizeInjections(injections){const result={vs:{},fs:{}};for(const hook in injections){let injection=injections[hook];"string"==typeof injection&&(injection={order:0,injection:injection}),result[hook.slice(0,2)][hook]=injection}return result}(inject),uniforms&&(this.uniforms=function parsePropTypes(propDefs){const propTypes={};for(const propName in propDefs){const propType=parsePropType(propDefs[propName]);propTypes[propName]=propType}return propTypes}(uniforms))}getModuleSource(type){let moduleSource;switch(type){case"vs":moduleSource=this.vs||"";break;case"fs":moduleSource=this.fs||"";break;default:(0,assert.Z)(!1)}return"#define MODULE_".concat(this.name.toUpperCase().replace(/[^0-9a-z]/gi,"_"),"\n").concat(moduleSource,"// END MODULE_").concat(this.name,"\n\n")}getUniforms(opts,uniforms){return this.getModuleUniforms?this.getModuleUniforms(opts,uniforms):this.uniforms?this._defaultGetUniforms(opts):{}}getDefines(){return this.defines}checkDeprecations(shaderSource,log){this.deprecations.forEach((def=>{def.regex.test(shaderSource)&&(def.deprecated?log.deprecated(def.old,def.new)():log.removed(def.old,def.new)())}))}_parseDeprecationDefinitions(deprecations){return deprecations.forEach((def=>{if("function"===def.type)def.regex=new RegExp("\\b".concat(def.old,"\\("));else def.regex=new RegExp("".concat(def.type," ").concat(def.old,";"))})),deprecations}_defaultGetUniforms(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const uniforms={},propTypes=this.uniforms;for(const key in propTypes){const propDef=propTypes[key];key in opts&&!propDef.private?(propDef.validate&&(0,assert.Z)(propDef.validate(opts[key],propDef),"".concat(this.name,": invalid ").concat(key)),uniforms[key]=opts[key]):uniforms[key]=propDef.value}return uniforms}}function normalizeShaderModule(module){if(!module.normalized&&(module.normalized=!0,module.uniforms&&!module.getUniforms)){const shaderModule=new ShaderModule(module);module.getUniforms=shaderModule.getUniforms.bind(shaderModule)}return module}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/fp32/fp32.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return fp32}});const fp32={name:"fp32",vs:"#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\nconst float TWO_PI = 6.2831854820251465;\nconst float PI_2 = 1.5707963705062866;\nconst float PI_16 = 0.1963495463132858;\n\nconst float SIN_TABLE_0 = 0.19509032368659973;\nconst float SIN_TABLE_1 = 0.3826834261417389;\nconst float SIN_TABLE_2 = 0.5555702447891235;\nconst float SIN_TABLE_3 = 0.7071067690849304;\n\nconst float COS_TABLE_0 = 0.9807852506637573;\nconst float COS_TABLE_1 = 0.9238795042037964;\nconst float COS_TABLE_2 = 0.8314695954322815;\nconst float COS_TABLE_3 = 0.7071067690849304;\n\nconst float INVERSE_FACTORIAL_3 = 1.666666716337204e-01;\nconst float INVERSE_FACTORIAL_5 = 8.333333767950535e-03;\nconst float INVERSE_FACTORIAL_7 = 1.9841270113829523e-04;\nconst float INVERSE_FACTORIAL_9 = 2.75573188446287533e-06;\n\nfloat sin_taylor_fp32(float a) {\n float r, s, t, x;\n\n if (a == 0.0) {\n return 0.0;\n }\n\n x = -a * a;\n s = a;\n r = a;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_3;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_5;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_7;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_9;\n s = s + t;\n\n return s;\n}\n\nvoid sincos_taylor_fp32(float a, out float sin_t, out float cos_t) {\n if (a == 0.0) {\n sin_t = 0.0;\n cos_t = 1.0;\n }\n sin_t = sin_taylor_fp32(a);\n cos_t = sqrt(1.0 - sin_t * sin_t);\n}\n\nfloat tan_taylor_fp32(float a) {\n float sin_a;\n float cos_a;\n\n if (a == 0.0) {\n return 0.0;\n }\n float z = floor(a / TWO_PI);\n float r = a - TWO_PI * z;\n\n float t;\n float q = floor(r / PI_2 + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return 1.0 / 0.0;\n }\n\n t = r - PI_2 * q;\n\n q = floor(t / PI_16 + 0.5);\n int k = int(q);\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return 1.0 / 0.0;\n } else {\n t = t - PI_16 * q;\n }\n\n float u = 0.0;\n float v = 0.0;\n\n float sin_t, cos_t;\n float s, c;\n sincos_taylor_fp32(t, sin_t, cos_t);\n\n if (k == 0) {\n s = sin_t;\n c = cos_t;\n } else {\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0;\n v = SIN_TABLE_0;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1;\n v = SIN_TABLE_1;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2;\n v = SIN_TABLE_2;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3;\n v = SIN_TABLE_3;\n }\n if (k > 0) {\n s = u * sin_t + v * cos_t;\n c = u * cos_t - v * sin_t;\n } else {\n s = u * sin_t - v * cos_t;\n c = u * cos_t + v * sin_t;\n }\n }\n\n if (j == 0) {\n sin_a = s;\n cos_a = c;\n } else if (j == 1) {\n sin_a = c;\n cos_a = -s;\n } else if (j == -1) {\n sin_a = -c;\n cos_a = s;\n } else {\n sin_a = -s;\n cos_a = -c;\n }\n return sin_a / cos_a;\n}\n#endif\n\nfloat tan_fp32(float a) {\n#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\n return tan_taylor_fp32(a);\n#else\n return tan(a);\n#endif\n}\n",fs:null}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/picking/picking.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return picking}});const DEFAULT_MODULE_OPTIONS={pickingSelectedColor:null,pickingHighlightColor:new Uint8Array([0,255,255,255]),pickingActive:!1,pickingAttribute:!1};const picking={name:"picking",vs:"uniform bool picking_uActive;\nuniform bool picking_uAttribute;\nuniform vec3 picking_uSelectedColor;\nuniform bool picking_uSelectedColorValid;\n\nout vec4 picking_vRGBcolor_Avalid;\n\nconst float COLOR_SCALE = 1. / 255.;\n\nbool picking_isColorValid(vec3 color) {\n return dot(color, vec3(1.0)) > 0.001;\n}\n\nbool isVertexPicked(vec3 vertexColor) {\n return\n picking_uSelectedColorValid &&\n !picking_isColorValid(abs(vertexColor - picking_uSelectedColor));\n}\n\nvoid picking_setPickingColor(vec3 pickingColor) {\n if (picking_uActive) {\n picking_vRGBcolor_Avalid.a = float(picking_isColorValid(pickingColor));\n\n if (!picking_uAttribute) {\n picking_vRGBcolor_Avalid.rgb = pickingColor * COLOR_SCALE;\n }\n } else {\n picking_vRGBcolor_Avalid.a = float(isVertexPicked(pickingColor));\n }\n}\n\nvoid picking_setPickingAttribute(float value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.r = value;\n }\n}\nvoid picking_setPickingAttribute(vec2 value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.rg = value;\n }\n}\nvoid picking_setPickingAttribute(vec3 value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.rgb = value;\n }\n}\n",fs:"uniform bool picking_uActive;\nuniform vec3 picking_uSelectedColor;\nuniform vec4 picking_uHighlightColor;\n\nin vec4 picking_vRGBcolor_Avalid;\nvec4 picking_filterHighlightColor(vec4 color) {\n if (picking_uActive) {\n return color;\n }\n bool selected = bool(picking_vRGBcolor_Avalid.a);\n\n if (selected) {\n float highLightAlpha = picking_uHighlightColor.a;\n float blendedAlpha = highLightAlpha + color.a * (1.0 - highLightAlpha);\n float highLightRatio = highLightAlpha / blendedAlpha;\n\n vec3 blendedRGB = mix(color.rgb, picking_uHighlightColor.rgb, highLightRatio);\n return vec4(blendedRGB, blendedAlpha);\n } else {\n return color;\n }\n}\nvec4 picking_filterPickingColor(vec4 color) {\n if (picking_uActive) {\n if (picking_vRGBcolor_Avalid.a == 0.0) {\n discard;\n }\n return picking_vRGBcolor_Avalid;\n }\n return color;\n}\nvec4 picking_filterColor(vec4 color) {\n vec4 highightColor = picking_filterHighlightColor(color);\n return picking_filterPickingColor(highightColor);\n}\n\n",getUniforms:function getUniforms(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DEFAULT_MODULE_OPTIONS;const uniforms={};if(void 0!==opts.pickingSelectedColor)if(opts.pickingSelectedColor){const selectedColor=opts.pickingSelectedColor.slice(0,3);uniforms.picking_uSelectedColorValid=1,uniforms.picking_uSelectedColor=selectedColor}else uniforms.picking_uSelectedColorValid=0;if(opts.pickingHighlightColor){const color=Array.from(opts.pickingHighlightColor,(x=>x/255));Number.isFinite(color[3])||(color[3]=1),uniforms.picking_uHighlightColor=color}return void 0!==opts.pickingActive&&(uniforms.picking_uActive=Boolean(opts.pickingActive),uniforms.picking_uAttribute=Boolean(opts.pickingAttribute)),uniforms}}},"./node_modules/@luma.gl/shadertools/dist/esm/utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"shadertools: assertion failed.")}__webpack_require__.d(__webpack_exports__,{Z:function(){return assert}})},"./node_modules/@luma.gl/webgl/dist/esm/classes/accessor.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Accessor}});var _webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/typed-array-utils.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),_utils_check_props__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/check-props.js");const DEFAULT_ACCESSOR_VALUES={offset:0,stride:0,type:5126,size:1,divisor:0,normalized:!1,integer:!1},PROP_CHECKS={deprecatedProps:{instanced:"divisor",isInstanced:"divisor"}};class Accessor{static getBytesPerElement(accessor){return(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_0__.vN)(accessor.type||5126).BYTES_PER_ELEMENT}static getBytesPerVertex(accessor){(0,_utils_assert__WEBPACK_IMPORTED_MODULE_1__.h)(accessor.size);return(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_0__.vN)(accessor.type||5126).BYTES_PER_ELEMENT*accessor.size}static resolve(){for(var _len=arguments.length,accessors=new Array(_len),_key=0;_key<_len;_key++)accessors[_key]=arguments[_key];return new Accessor(...[DEFAULT_ACCESSOR_VALUES,...accessors])}constructor(){for(var _len2=arguments.length,accessors=new Array(_len2),_key2=0;_key2<_len2;_key2++)accessors[_key2]=arguments[_key2];accessors.forEach((accessor=>this._assign(accessor))),Object.freeze(this)}toString(){return JSON.stringify(this)}get BYTES_PER_ELEMENT(){return Accessor.getBytesPerElement(this)}get BYTES_PER_VERTEX(){return Accessor.getBytesPerVertex(this)}_assign(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return props=(0,_utils_check_props__WEBPACK_IMPORTED_MODULE_2__.k)("Accessor",props,PROP_CHECKS),void 0!==props.type&&(this.type=props.type,5124!==props.type&&5125!==props.type||(this.integer=!0)),void 0!==props.size&&(this.size=props.size),void 0!==props.offset&&(this.offset=props.offset),void 0!==props.stride&&(this.stride=props.stride),void 0!==props.normalized&&(this.normalized=props.normalized),void 0!==props.integer&&(this.integer=props.integer),void 0!==props.divisor&&(this.divisor=props.divisor),void 0!==props.buffer&&(this.buffer=props.buffer),void 0!==props.index&&("boolean"==typeof props.index?this.index=props.index?1:0:this.index=props.index),void 0!==props.instanced&&(this.divisor=props.instanced?1:0),void 0!==props.isInstanced&&(this.divisor=props.isInstanced?1:0),this}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Buffer}});var _resource__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),_accessor__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/accessor.js"),_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/typed-array-utils.js"),_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),_utils_check_props__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/check-props.js");const DEPRECATED_PROPS={offset:"accessor.offset",stride:"accessor.stride",type:"accessor.type",size:"accessor.size",divisor:"accessor.divisor",normalized:"accessor.normalized",integer:"accessor.integer",instanced:"accessor.divisor",isInstanced:"accessor.divisor"},PROP_CHECKS_INITIALIZE={removedProps:{},replacedProps:{bytes:"byteLength"},deprecatedProps:DEPRECATED_PROPS},PROP_CHECKS_SET_PROPS={removedProps:DEPRECATED_PROPS};class Buffer extends _resource__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"Buffer"}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(gl,props),this.stubRemovedMethods("Buffer","v6.0",["layout","setLayout","getIndexedParameter"]),this.target=props.target||(this.gl.webgl2?36662:34962),this.initialize(props),Object.seal(this)}getElementCount(){let accessor=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/_accessor__WEBPACK_IMPORTED_MODULE_2__.Z.getBytesPerElement(accessor))}getVertexCount(){let accessor=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/_accessor__WEBPACK_IMPORTED_MODULE_2__.Z.getBytesPerVertex(accessor))}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ArrayBuffer.isView(props)&&(props={data:props}),Number.isFinite(props)&&(props={byteLength:props}),props=(0,_utils_check_props__WEBPACK_IMPORTED_MODULE_3__.k)("Buffer",props,PROP_CHECKS_INITIALIZE),this.usage=props.usage||35044,this.debugData=null,this.setAccessor(Object.assign({},props,props.accessor)),props.data?this._setData(props.data,props.offset,props.byteLength):this._setByteLength(props.byteLength||0),this}setProps(props){return"accessor"in(props=(0,_utils_check_props__WEBPACK_IMPORTED_MODULE_3__.k)("Buffer",props,PROP_CHECKS_SET_PROPS))&&this.setAccessor(props.accessor),this}setAccessor(accessor){return delete(accessor=Object.assign({},accessor)).buffer,this.accessor=new _accessor__WEBPACK_IMPORTED_MODULE_2__.Z(accessor),this}reallocate(byteLength){return byteLength>this.byteLength?(this._setByteLength(byteLength),!0):(this.bytesUsed=byteLength,!1)}setData(props){return this.initialize(props)}subData(props){ArrayBuffer.isView(props)&&(props={data:props});const{data:data,offset:offset=0,srcOffset:srcOffset=0}=props,byteLength=props.byteLength||props.length;(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(data);const target=this.gl.webgl2?36663:this.target;return this.gl.bindBuffer(target,this.handle),0!==srcOffset||void 0!==byteLength?((0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl),this.gl.bufferSubData(this.target,offset,data,srcOffset,byteLength)):this.gl.bufferSubData(target,offset,data),this.gl.bindBuffer(target,null),this.debugData=null,this._inferType(data),this}copyData(_ref){let{sourceBuffer:sourceBuffer,readOffset:readOffset=0,writeOffset:writeOffset=0,size:size}=_ref;const{gl:gl}=this;return(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl),gl.bindBuffer(36662,sourceBuffer.handle),gl.bindBuffer(36663,this.handle),gl.copyBufferSubData(36662,36663,readOffset,writeOffset,size),gl.bindBuffer(36662,null),gl.bindBuffer(36663,null),this.debugData=null,this}getData(){let{dstData:dstData=null,srcByteOffset:srcByteOffset=0,dstOffset:dstOffset=0,length:length=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl);const ArrayType=(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_5__.vN)(this.accessor.type||5126,{clamped:!1}),sourceAvailableElementCount=this._getAvailableElementCount(srcByteOffset),dstElementOffset=dstOffset;let dstAvailableElementCount,dstElementCount;dstData?(dstElementCount=dstData.length,dstAvailableElementCount=dstElementCount-dstElementOffset):(dstAvailableElementCount=Math.min(sourceAvailableElementCount,length||sourceAvailableElementCount),dstElementCount=dstElementOffset+dstAvailableElementCount);const copyElementCount=Math.min(sourceAvailableElementCount,dstAvailableElementCount);return length=length||copyElementCount,(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(length<=copyElementCount),dstData=dstData||new ArrayType(dstElementCount),this.gl.bindBuffer(36662,this.handle),this.gl.getBufferSubData(36662,srcByteOffset,dstData,dstOffset,length),this.gl.bindBuffer(36662,null),dstData}bind(){let{target:target=this.target,index:index=this.accessor&&this.accessor.index,offset:offset=0,size:size}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 35345===target||35982===target?void 0!==size?this.gl.bindBufferRange(target,index,this.handle,offset,size):((0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(0===offset),this.gl.bindBufferBase(target,index,this.handle)):this.gl.bindBuffer(target,this.handle),this}unbind(){let{target:target=this.target,index:index=this.accessor&&this.accessor.index}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 35345===target||35982===target?this.gl.bindBufferBase(target,index,null):this.gl.bindBuffer(target,null),this}getDebugData(){return this.debugData?{data:this.debugData,changed:!1}:(this.debugData=this.getData({length:Math.min(10,this.byteLength)}),{data:this.debugData,changed:!0})}invalidateDebugData(){this.debugData=null}_setData(data){let offset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,byteLength=arguments.length>2&&void 0!==arguments[2]?arguments[2]:data.byteLength+offset;(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(ArrayBuffer.isView(data)),this._trackDeallocatedMemory();const target=this._getTarget();this.gl.bindBuffer(target,this.handle),this.gl.bufferData(target,byteLength,this.usage),this.gl.bufferSubData(target,offset,data),this.gl.bindBuffer(target,null),this.debugData=data.slice(0,10),this.bytesUsed=byteLength,this._trackAllocatedMemory(byteLength);const type=(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_5__.O)(data);return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(type),this.setAccessor(new _accessor__WEBPACK_IMPORTED_MODULE_2__.Z(this.accessor,{type:type})),this}_setByteLength(byteLength){let usage=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.usage;(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(byteLength>=0),this._trackDeallocatedMemory();let data=byteLength;0===byteLength&&(data=new Float32Array(0));const target=this._getTarget();return this.gl.bindBuffer(target,this.handle),this.gl.bufferData(target,data,usage),this.gl.bindBuffer(target,null),this.usage=usage,this.debugData=null,this.bytesUsed=byteLength,this._trackAllocatedMemory(byteLength),this}_getTarget(){return this.gl.webgl2?36663:this.target}_getAvailableElementCount(srcByteOffset){const sourceElementOffset=srcByteOffset/(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_5__.vN)(this.accessor.type||5126,{clamped:!1}).BYTES_PER_ELEMENT;return this.getElementCount()-sourceElementOffset}_inferType(data){this.accessor.type||this.setAccessor(new _accessor__WEBPACK_IMPORTED_MODULE_2__.Z(this.accessor,{type:(0,_webgl_utils_typed_array_utils__WEBPACK_IMPORTED_MODULE_5__.O)(data)}))}_createHandle(){return this.gl.createBuffer()}_deleteHandle(){this.gl.deleteBuffer(this.handle),this._trackDeallocatedMemory()}_getParameter(pname){this.gl.bindBuffer(this.target,this.handle);const value=this.gl.getBufferParameter(this.target,pname);return this.gl.bindBuffer(this.target,null),value}get type(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("Buffer.type","Buffer.accessor.type")(),this.accessor.type}get bytes(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("Buffer.bytes","Buffer.byteLength")(),this.byteLength}setByteLength(byteLength){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("setByteLength","reallocate")(),this.reallocate(byteLength)}updateAccessor(opts){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("updateAccessor(...)","setAccessor(new Accessor(buffer.accessor, ...)")(),this.accessor=new _accessor__WEBPACK_IMPORTED_MODULE_2__.Z(this.accessor,opts),this}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/clear.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return clearBuffer},Z:function(){return clear}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const GL_DEPTH_BUFFER_BIT=256,GL_STENCIL_BUFFER_BIT=1024,GL_COLOR_BUFFER_BIT=16384,GL_COLOR=6144,GL_DEPTH=6145,GL_STENCIL=6146,GL_DEPTH_STENCIL=34041,ERR_ARGUMENTS="clear: bad arguments";function clear(gl){let{framebuffer:framebuffer=null,color:color=null,depth:depth=null,stencil:stencil=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const parameters={};framebuffer&&(parameters.framebuffer=framebuffer);let clearFlags=0;color&&(clearFlags|=GL_COLOR_BUFFER_BIT,!0!==color&&(parameters.clearColor=color)),depth&&(clearFlags|=GL_DEPTH_BUFFER_BIT,!0!==depth&&(parameters.clearDepth=depth)),stencil&&(clearFlags|=GL_STENCIL_BUFFER_BIT,!0!==depth&&(parameters.clearStencil=depth)),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_1__.h)(0!==clearFlags,ERR_ARGUMENTS),(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(gl,parameters,(()=>{gl.clear(clearFlags)}))}function clearBuffer(gl){let{framebuffer:framebuffer=null,buffer:buffer=GL_COLOR,drawBuffer:drawBuffer=0,value:value=[0,0,0,0]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl),(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(gl,{framebuffer:framebuffer},(()=>{switch(buffer){case GL_COLOR:switch(value.constructor){case Int32Array:gl.clearBufferiv(buffer,drawBuffer,value);break;case Uint32Array:gl.clearBufferuiv(buffer,drawBuffer,value);break;case Float32Array:default:gl.clearBufferfv(buffer,drawBuffer,value)}break;case GL_DEPTH:gl.clearBufferfv(GL_DEPTH,0,[value]);break;case GL_STENCIL:gl.clearBufferiv(GL_STENCIL,0,[value]);break;case GL_DEPTH_STENCIL:const[depth,stencil]=value;gl.clearBufferfi(GL_DEPTH_STENCIL,0,depth,stencil);break;default:(0,_utils_assert__WEBPACK_IMPORTED_MODULE_1__.h)(!1,ERR_ARGUMENTS)}}))}},"./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Km:function(){return copyToDataUrl},Lv:function(){return copyToTexture},z6:function(){return readPixelsToArray},Jb:function(){return readPixelsToBuffer}});var buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),classes_texture=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),typed_array_utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/typed-array-utils.js"),utils_assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");function glFormatToComponents(format){switch(format){case 6406:case 33326:case 6403:return 1;case 33328:case 33319:return 2;case 6407:case 34837:return 3;case 6408:case 34836:return 4;default:return(0,utils_assert.h)(!1),0}}var texture_utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/texture-utils.js");function readPixelsToArray(source){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{sourceX:sourceX=0,sourceY:sourceY=0,sourceFormat:sourceFormat=6408}=options;let{sourceAttachment:sourceAttachment=36064,target:target=null,sourceWidth:sourceWidth,sourceHeight:sourceHeight,sourceType:sourceType}=options;const{framebuffer:framebuffer,deleteFramebuffer:deleteFramebuffer}=getFramebuffer(source);(0,utils_assert.h)(framebuffer);const{gl:gl,handle:handle,attachments:attachments}=framebuffer;sourceWidth=sourceWidth||framebuffer.width,sourceHeight=sourceHeight||framebuffer.height,36064===sourceAttachment&&null===handle&&(sourceAttachment=1028),(0,utils_assert.h)(attachments[sourceAttachment]),sourceType=sourceType||attachments[sourceAttachment].type,target=function getPixelArray(pixelArray,type,format,width,height){if(pixelArray)return pixelArray;type=type||5121;const ArrayType=(0,typed_array_utils.vN)(type,{clamped:!1}),components=glFormatToComponents(format);return new ArrayType(width*height*components)}(target,sourceType,sourceFormat,sourceWidth,sourceHeight),sourceType=sourceType||(0,typed_array_utils.O)(target);const prevHandle=gl.bindFramebuffer(36160,handle);return gl.readPixels(sourceX,sourceY,sourceWidth,sourceHeight,sourceFormat,sourceType,target),gl.bindFramebuffer(36160,prevHandle||null),deleteFramebuffer&&framebuffer.delete(),target}function readPixelsToBuffer(source,_ref){let{sourceX:sourceX=0,sourceY:sourceY=0,sourceFormat:sourceFormat=6408,target:target=null,targetByteOffset:targetByteOffset=0,sourceWidth:sourceWidth,sourceHeight:sourceHeight,sourceType:sourceType}=_ref;const{framebuffer:framebuffer,deleteFramebuffer:deleteFramebuffer}=getFramebuffer(source);(0,utils_assert.h)(framebuffer),sourceWidth=sourceWidth||framebuffer.width,sourceHeight=sourceHeight||framebuffer.height;const gl2=(0,esm.KQ)(framebuffer.gl);if(sourceType=sourceType||(target?target.type:5121),!target){const components=glFormatToComponents(sourceFormat),byteCount=function glTypeToBytes(type){switch(type){case 5121:return 1;case 33635:case 32819:case 32820:return 2;case 5126:return 4;default:return(0,utils_assert.h)(!1),0}}(sourceType),byteLength=targetByteOffset+sourceWidth*sourceHeight*components*byteCount;target=new buffer.Z(gl2,{byteLength:byteLength,accessor:{type:sourceType,size:components}})}return target.bind({target:35051}),(0,esm.s8)(gl2,{framebuffer:framebuffer},(()=>{gl2.readPixels(sourceX,sourceY,sourceWidth,sourceHeight,sourceFormat,sourceType,targetByteOffset)})),target.unbind({target:35051}),deleteFramebuffer&&framebuffer.delete(),target}function copyToDataUrl(source){let{sourceAttachment:sourceAttachment=36064,targetMaxHeight:targetMaxHeight=Number.MAX_SAFE_INTEGER}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},data=readPixelsToArray(source,{sourceAttachment:sourceAttachment}),{width:width,height:height}=source;for(;height>targetMaxHeight;)({data:data,width:width,height:height}=(0,typed_array_utils.KS)({data:data,width:width,height:height}));(0,typed_array_utils.c$)({data:data,width:width,height:height});const canvas=document.createElement("canvas");canvas.width=width,canvas.height=height;const context=canvas.getContext("2d"),imageData=context.createImageData(width,height);return imageData.data.set(data),context.putImageData(imageData,0,0),canvas.toDataURL()}function copyToTexture(source,target){let options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{sourceX:sourceX=0,sourceY:sourceY=0,targetMipmaplevel:targetMipmaplevel=0,targetInternalFormat:targetInternalFormat=6408}=options;let{targetX:targetX,targetY:targetY,targetZ:targetZ,width:width,height:height}=options;const{framebuffer:framebuffer,deleteFramebuffer:deleteFramebuffer}=getFramebuffer(source);(0,utils_assert.h)(framebuffer);const{gl:gl,handle:handle}=framebuffer,isSubCopy=void 0!==targetX||void 0!==targetY||void 0!==targetZ;targetX=targetX||0,targetY=targetY||0,targetZ=targetZ||0;const prevHandle=gl.bindFramebuffer(36160,handle);(0,utils_assert.h)(target);let texture=null;if(target instanceof classes_texture.Z&&(texture=target,width=Number.isFinite(width)?width:texture.width,height=Number.isFinite(height)?height:texture.height,texture.bind(0),target=texture.target),isSubCopy)switch(target){case 3553:case 34067:gl.copyTexSubImage2D(target,targetMipmaplevel,targetX,targetY,sourceX,sourceY,width,height);break;case 35866:case 32879:(0,esm.KQ)(gl).copyTexSubImage3D(target,targetMipmaplevel,targetX,targetY,targetZ,sourceX,sourceY,width,height)}else gl.copyTexImage2D(target,targetMipmaplevel,targetInternalFormat,sourceX,sourceY,width,height,0);return texture&&texture.unbind(),gl.bindFramebuffer(36160,prevHandle||null),deleteFramebuffer&&framebuffer.delete(),texture}function getFramebuffer(source){return source instanceof framebuffer.Z?{framebuffer:source,deleteFramebuffer:!1}:{framebuffer:(0,texture_utils.Y)(source),deleteFramebuffer:!0}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Framebuffer}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_resource__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),_texture_2d__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),_renderbuffer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/renderbuffer.js"),_clear__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/clear.js"),_copy_and_blit_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),_features__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/constants-to-keys.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");class Framebuffer extends _resource__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"Framebuffer"}static isSupported(gl){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{colorBufferFloat:colorBufferFloat,colorBufferHalfFloat:colorBufferHalfFloat}=options;let supported=!0;return colorBufferFloat&&(supported=Boolean(gl.getExtension("EXT_color_buffer_float")||gl.getExtension("WEBGL_color_buffer_float")||gl.getExtension("OES_texture_float"))),colorBufferHalfFloat&&(supported=supported&&Boolean(gl.getExtension("EXT_color_buffer_float")||gl.getExtension("EXT_color_buffer_half_float"))),supported}static getDefaultFramebuffer(gl){return gl.luma=gl.luma||{},gl.luma.defaultFramebuffer=gl.luma.defaultFramebuffer||new Framebuffer(gl,{id:"default-framebuffer",handle:null,attachments:{}}),gl.luma.defaultFramebuffer}get MAX_COLOR_ATTACHMENTS(){const gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl);return gl2.getParameter(gl2.MAX_COLOR_ATTACHMENTS)}get MAX_DRAW_BUFFERS(){const gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl);return gl2.getParameter(gl2.MAX_DRAW_BUFFERS)}constructor(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(gl,opts),this.width=null,this.height=null,this.attachments={},this.readBuffer=36064,this.drawBuffers=[36064],this.ownResources=[],this.initialize(opts),Object.seal(this)}get color(){return this.attachments[36064]||null}get texture(){return this.attachments[36064]||null}get depth(){return this.attachments[36096]||this.attachments[33306]||null}get stencil(){return this.attachments[36128]||this.attachments[33306]||null}initialize(_ref){let{width:width=1,height:height=1,attachments:attachments=null,color:color=!0,depth:depth=!0,stencil:stencil=!1,check:check=!0,readBuffer:readBuffer,drawBuffers:drawBuffers}=_ref;if((0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(width>=0&&height>=0,"Width and height need to be integers"),this.width=width,this.height=height,attachments)for(const attachment in attachments){const target=attachments[attachment];(Array.isArray(target)?target[0]:target).resize({width:width,height:height})}else attachments=this._createDefaultAttachments(color,depth,stencil,width,height);this.update({clearAttachments:!0,attachments:attachments,readBuffer:readBuffer,drawBuffers:drawBuffers}),attachments&&check&&this.checkStatus()}delete(){for(const resource of this.ownResources)resource.delete();return super.delete(),this}update(_ref2){let{attachments:attachments={},readBuffer:readBuffer,drawBuffers:drawBuffers,clearAttachments:clearAttachments=!1,resizeAttachments:resizeAttachments=!0}=_ref2;this.attach(attachments,{clearAttachments:clearAttachments,resizeAttachments:resizeAttachments});const{gl:gl}=this,prevHandle=gl.bindFramebuffer(36160,this.handle);return readBuffer&&this._setReadBuffer(readBuffer),drawBuffers&&this._setDrawBuffers(drawBuffers),gl.bindFramebuffer(36160,prevHandle||null),this}resize(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{width:width,height:height}=options;if(null===this.handle)return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(void 0===width&&void 0===height),this.width=this.gl.drawingBufferWidth,this.height=this.gl.drawingBufferHeight,this;void 0===width&&(width=this.gl.drawingBufferWidth),void 0===height&&(height=this.gl.drawingBufferHeight),width!==this.width&&height!==this.height&&_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.log(2,"Resizing framebuffer ".concat(this.id," to ").concat(width,"x").concat(height))();for(const attachmentPoint in this.attachments)this.attachments[attachmentPoint].resize({width:width,height:height});return this.width=width,this.height=height,this}attach(attachments){let{clearAttachments:clearAttachments=!1,resizeAttachments:resizeAttachments=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const newAttachments={};clearAttachments&&Object.keys(this.attachments).forEach((key=>{newAttachments[key]=null})),Object.assign(newAttachments,attachments);const prevHandle=this.gl.bindFramebuffer(36160,this.handle);for(const key in newAttachments){(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(void 0!==key,"Misspelled framebuffer binding point?");const attachment=Number(key),descriptor=newAttachments[attachment];let object=descriptor;if(object)if(object instanceof _renderbuffer__WEBPACK_IMPORTED_MODULE_3__.Z)this._attachRenderbuffer({attachment:attachment,renderbuffer:object});else if(Array.isArray(descriptor)){const[texture,layer=0,level=0]=descriptor;object=texture,this._attachTexture({attachment:attachment,texture:texture,layer:layer,level:level})}else this._attachTexture({attachment:attachment,texture:object,layer:0,level:0});else this._unattach(attachment);resizeAttachments&&object&&object.resize({width:this.width,height:this.height})}this.gl.bindFramebuffer(36160,prevHandle||null),Object.assign(this.attachments,attachments),Object.keys(this.attachments).filter((key=>!this.attachments[key])).forEach((key=>{delete this.attachments[key]}))}checkStatus(){const{gl:gl}=this,status=this.getStatus();if(36053!==status)throw new Error(function _getFrameBufferStatus(status){return(Framebuffer.STATUS||{})[status]||"Framebuffer error ".concat(status)}(status));return this}getStatus(){const{gl:gl}=this,prevHandle=gl.bindFramebuffer(36160,this.handle),status=gl.checkFramebufferStatus(36160);return gl.bindFramebuffer(36160,prevHandle||null),status}clear(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{color:color,depth:depth,stencil:stencil,drawBuffers:drawBuffers=[]}=options,prevHandle=this.gl.bindFramebuffer(36160,this.handle);return(color||depth||stencil)&&(0,_clear__WEBPACK_IMPORTED_MODULE_4__.Z)(this.gl,{color:color,depth:depth,stencil:stencil}),drawBuffers.forEach(((value,drawBuffer)=>{(0,_clear__WEBPACK_IMPORTED_MODULE_4__.$)(this.gl,{drawBuffer:drawBuffer,value:value})})),this.gl.bindFramebuffer(36160,prevHandle||null),this}readPixels(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")(),null}readPixelsToBuffer(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")(),null}copyToDataUrl(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")(),null}copyToImage(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")(),null}copyToTexture(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}blit(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")(),null}invalidate(_ref3){let{attachments:attachments=[],x:x=0,y:y=0,width:width,height:height}=_ref3;const gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl),prevHandle=gl2.bindFramebuffer(36008,this.handle);return 0===x&&0===y&&void 0===width&&void 0===height?gl2.invalidateFramebuffer(36008,attachments):gl2.invalidateFramebuffer(36008,attachments,x,y,width,height),gl2.bindFramebuffer(36008,prevHandle),this}getAttachmentParameter(attachment,pname,keys){let value=this._getAttachmentParameterFallback(pname);return null===value&&(this.gl.bindFramebuffer(36160,this.handle),value=this.gl.getFramebufferAttachmentParameter(36160,attachment,pname),this.gl.bindFramebuffer(36160,null)),keys&&value>1e3&&(value=(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_5__.km)(this.gl,value)),value}getAttachmentParameters(){let attachment=arguments.length>0&&void 0!==arguments[0]?arguments[0]:36064,keys=arguments.length>1?arguments[1]:void 0,parameters=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.constructor.ATTACHMENT_PARAMETERS||[];const values={};for(const pname of parameters){values[keys?(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_5__.km)(this.gl,pname):pname]=this.getAttachmentParameter(attachment,pname,keys)}return values}getParameters(){let keys=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const attachments=Object.keys(this.attachments),parameters={};for(const attachmentName of attachments){const attachment=Number(attachmentName);parameters[keys?(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_5__.km)(this.gl,attachment):attachment]=this.getAttachmentParameters(attachment,keys)}return parameters}show(){return"undefined"!=typeof window&&window.open((0,_copy_and_blit_js__WEBPACK_IMPORTED_MODULE_6__.Km)(this),"luma-debug-texture"),this}log(){let logLevel=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,message=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(logLevel>_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.level||"undefined"==typeof window)return this;message=message||"Framebuffer ".concat(this.id);const image=(0,_copy_and_blit_js__WEBPACK_IMPORTED_MODULE_6__.Km)(this,{targetMaxHeight:100});return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.image({logLevel:logLevel,message:message,image:image},message)(),this}bind(){let{target:target=36160}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.gl.bindFramebuffer(target,this.handle),this}unbind(){let{target:target=36160}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.gl.bindFramebuffer(target,null),this}_createDefaultAttachments(color,depth,stencil,width,height){let defaultAttachments=null;return color&&(defaultAttachments=defaultAttachments||{},defaultAttachments[36064]=new _texture_2d__WEBPACK_IMPORTED_MODULE_7__.Z(this.gl,{id:"".concat(this.id,"-color0"),pixels:null,format:6408,type:5121,width:width,height:height,mipmaps:!1,parameters:{10241:9729,10240:9729,10242:33071,10243:33071}}),this.ownResources.push(defaultAttachments[36064])),depth&&stencil?(defaultAttachments=defaultAttachments||{},defaultAttachments[33306]=new _renderbuffer__WEBPACK_IMPORTED_MODULE_3__.Z(this.gl,{id:"".concat(this.id,"-depth-stencil"),format:35056,width:width,height:111}),this.ownResources.push(defaultAttachments[33306])):depth?(defaultAttachments=defaultAttachments||{},defaultAttachments[36096]=new _renderbuffer__WEBPACK_IMPORTED_MODULE_3__.Z(this.gl,{id:"".concat(this.id,"-depth"),format:33189,width:width,height:height}),this.ownResources.push(defaultAttachments[36096])):stencil&&(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(!1),defaultAttachments}_unattach(attachment){const oldAttachment=this.attachments[attachment];oldAttachment&&(oldAttachment instanceof _renderbuffer__WEBPACK_IMPORTED_MODULE_3__.Z?this.gl.framebufferRenderbuffer(36160,attachment,36161,null):this.gl.framebufferTexture2D(36160,attachment,3553,null,0),delete this.attachments[attachment])}_attachRenderbuffer(_ref4){let{attachment:attachment=36064,renderbuffer:renderbuffer}=_ref4;const{gl:gl}=this;gl.framebufferRenderbuffer(36160,attachment,36161,renderbuffer.handle),this.attachments[attachment]=renderbuffer}_attachTexture(_ref5){let{attachment:attachment=36064,texture:texture,layer:layer,level:level}=_ref5;const{gl:gl}=this;switch(gl.bindTexture(texture.target,texture.handle),texture.target){case 35866:case 32879:(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl).framebufferTextureLayer(36160,attachment,texture.target,level,layer);break;case 34067:const face=function mapIndexToCubeMapFace(layer){return layer<34069?layer+34069:layer}(layer);gl.framebufferTexture2D(36160,attachment,face,texture.handle,level);break;case 3553:gl.framebufferTexture2D(36160,attachment,3553,texture.handle,level);break;default:(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(!1,"Illegal texture type")}gl.bindTexture(texture.target,null),this.attachments[attachment]=texture}_setReadBuffer(readBuffer){const gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.vd)(this.gl);gl2?gl2.readBuffer(readBuffer):(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(36064===readBuffer||1029===readBuffer,"Multiple render targets not supported"),this.readBuffer=readBuffer}_setDrawBuffers(drawBuffers){const{gl:gl}=this,gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl);if(gl2)gl2.drawBuffers(drawBuffers);else{const ext=gl.getExtension("WEBGL_draw_buffers");ext?ext.drawBuffersWEBGL(drawBuffers):(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(1===drawBuffers.length&&(36064===drawBuffers[0]||1029===drawBuffers[0]),"Multiple render targets not supported")}this.drawBuffers=drawBuffers}_getAttachmentParameterFallback(pname){const caps=(0,_features__WEBPACK_IMPORTED_MODULE_8__.N$)(this.gl);switch(pname){case 36052:return caps.WEBGL2?null:0;case 33298:case 33299:case 33300:case 33301:case 33302:case 33303:return caps.WEBGL2?null:8;case 33297:return caps.WEBGL2?null:5125;case 33296:return caps.WEBGL2||caps.EXT_sRGB?null:9729;default:return null}}_createHandle(){return this.gl.createFramebuffer()}_deleteHandle(){this.gl.deleteFramebuffer(this.handle)}_bindHandle(handle){return this.gl.bindFramebuffer(36160,handle)}}Framebuffer.ATTACHMENT_PARAMETERS=[36049,36048,33296,33298,33299,33300,33301,33302,33303]},"./node_modules/@luma.gl/webgl/dist/esm/classes/program.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Program}});var resource=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),texture=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),renderbuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/renderbuffer.js"),assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const UNIFORM_SETTERS={5126:getArraySetter.bind(null,"uniform1fv",toFloatArray,1,setVectorUniform),35664:getArraySetter.bind(null,"uniform2fv",toFloatArray,2,setVectorUniform),35665:getArraySetter.bind(null,"uniform3fv",toFloatArray,3,setVectorUniform),35666:getArraySetter.bind(null,"uniform4fv",toFloatArray,4,setVectorUniform),5124:getArraySetter.bind(null,"uniform1iv",toIntArray,1,setVectorUniform),35667:getArraySetter.bind(null,"uniform2iv",toIntArray,2,setVectorUniform),35668:getArraySetter.bind(null,"uniform3iv",toIntArray,3,setVectorUniform),35669:getArraySetter.bind(null,"uniform4iv",toIntArray,4,setVectorUniform),35670:getArraySetter.bind(null,"uniform1iv",toIntArray,1,setVectorUniform),35671:getArraySetter.bind(null,"uniform2iv",toIntArray,2,setVectorUniform),35672:getArraySetter.bind(null,"uniform3iv",toIntArray,3,setVectorUniform),35673:getArraySetter.bind(null,"uniform4iv",toIntArray,4,setVectorUniform),35674:getArraySetter.bind(null,"uniformMatrix2fv",toFloatArray,4,setMatrixUniform),35675:getArraySetter.bind(null,"uniformMatrix3fv",toFloatArray,9,setMatrixUniform),35676:getArraySetter.bind(null,"uniformMatrix4fv",toFloatArray,16,setMatrixUniform),35678:getSamplerSetter,35680:getSamplerSetter,5125:getArraySetter.bind(null,"uniform1uiv",toUIntArray,1,setVectorUniform),36294:getArraySetter.bind(null,"uniform2uiv",toUIntArray,2,setVectorUniform),36295:getArraySetter.bind(null,"uniform3uiv",toUIntArray,3,setVectorUniform),36296:getArraySetter.bind(null,"uniform4uiv",toUIntArray,4,setVectorUniform),35685:getArraySetter.bind(null,"uniformMatrix2x3fv",toFloatArray,6,setMatrixUniform),35686:getArraySetter.bind(null,"uniformMatrix2x4fv",toFloatArray,8,setMatrixUniform),35687:getArraySetter.bind(null,"uniformMatrix3x2fv",toFloatArray,6,setMatrixUniform),35688:getArraySetter.bind(null,"uniformMatrix3x4fv",toFloatArray,12,setMatrixUniform),35689:getArraySetter.bind(null,"uniformMatrix4x2fv",toFloatArray,8,setMatrixUniform),35690:getArraySetter.bind(null,"uniformMatrix4x3fv",toFloatArray,12,setMatrixUniform),35678:getSamplerSetter,35680:getSamplerSetter,35679:getSamplerSetter,35682:getSamplerSetter,36289:getSamplerSetter,36292:getSamplerSetter,36293:getSamplerSetter,36298:getSamplerSetter,36299:getSamplerSetter,36300:getSamplerSetter,36303:getSamplerSetter,36306:getSamplerSetter,36307:getSamplerSetter,36308:getSamplerSetter,36311:getSamplerSetter},FLOAT_ARRAY={},INT_ARRAY={},UINT_ARRAY={},array1=[0];function toTypedArray(value,uniformLength,Type,cache){1===uniformLength&&"boolean"==typeof value&&(value=value?1:0),Number.isFinite(value)&&(array1[0]=value,value=array1);const length=value.length;if(length%uniformLength&&esm.cM.warn("Uniform size should be multiples of ".concat(uniformLength),value)(),value instanceof Type)return value;let result=cache[length];result||(result=new Type(length),cache[length]=result);for(let i=0;i{const update=cache!==value;return update&&(gl.uniform1i(location,value),cache=value),update}}function getArraySetter(functionName,toArray,size,uniformSetter){let cache=null,cacheLength=null;return(gl,location,value)=>{const arrayValue=toArray(value,size),length=arrayValue.length;let update=!1;if(null===cache)cache=new Float32Array(length),cacheLength=length,update=!0;else{(0,assert.h)(cacheLength===length,"Uniform length cannot change.");for(let i=0;i=0&&this._addAttribute(location,name,type,size)}this.attributeInfos.sort(((a,b)=>a.location-b.location))}_readVaryingsFromProgram(program){const{gl:gl}=program;if(!(0,esm.D0)(gl))return;const count=gl.getProgramParameter(program.handle,35971);for(let location=0;locationa.location-b.location))}_addAttribute(location,name,compositeType,size){const{type:type,components:components}=(0,attribute_utils.hJ)(compositeType),accessor={type:type,size:size*components};this._inferProperties(location,name,accessor);const attributeInfo={location:location,name:name,accessor:new classes_accessor.Z(accessor)};this.attributeInfos.push(attributeInfo),this.attributeInfosByLocation[location]=attributeInfo,this.attributeInfosByName[attributeInfo.name]=attributeInfo}_inferProperties(location,name,accessor){/instance/i.test(name)&&(accessor.divisor=1)}_addVarying(location,name,compositeType,size){const{type:type,components:components}=(0,attribute_utils.hJ)(compositeType),varying={location:location,name:name,accessor:new classes_accessor.Z({type:type,size:size*components})};this.varyingInfos.push(varying),this.varyingInfosByName[varying.name]=varying}}var constants_to_keys=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/constants-to-keys.js"),utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");const GL_SEPARATE_ATTRIBS=35981,V6_DEPRECATED_METHODS=["setVertexArray","setAttributes","setBuffers","unsetBuffers","use","getUniformCount","getUniformInfo","getUniformLocation","getUniformValue","getVarying","getFragDataLocation","getAttachedShaders","getAttributeCount","getAttributeLocation","getAttributeInfo"];class Program extends resource.Z{get[Symbol.toStringTag](){return"Program"}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(gl,props),this.stubRemovedMethods("Program","v6.0",V6_DEPRECATED_METHODS),this._isCached=!1,this.initialize(props),Object.seal(this),this._setId(props.id)}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{hash:hash,vs:vs,fs:fs,varyings:varyings,bufferMode:bufferMode=GL_SEPARATE_ATTRIBS}=props;return this.hash=hash||"",this.vs="string"==typeof vs?new shader.Qh(this.gl,{id:"".concat(props.id,"-vs"),source:vs}):vs,this.fs="string"==typeof fs?new shader.gs(this.gl,{id:"".concat(props.id,"-fs"),source:fs}):fs,(0,assert.h)(this.vs instanceof shader.Qh),(0,assert.h)(this.fs instanceof shader.gs),this.uniforms={},this._textureUniforms={},varyings&&varyings.length>0&&((0,esm.KQ)(this.gl),this.varyings=varyings,this.gl2.transformFeedbackVaryings(this.handle,varyings,bufferMode)),this._compileAndLink(),this._readUniformLocationsFromLinkedProgram(),this.configuration=new ProgramConfiguration(this),this.setProps(props)}delete(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._isCached?this:super.delete(options)}setProps(props){return"uniforms"in props&&this.setUniforms(props.uniforms),this}draw(_ref){let{logPriority:logPriority,drawMode:drawMode=4,vertexCount:vertexCount,offset:offset=0,start:start,end:end,isIndexed:isIndexed=!1,indexType:indexType=5123,instanceCount:instanceCount=0,isInstanced:isInstanced=instanceCount>0,vertexArray:vertexArray=null,transformFeedback:transformFeedback,framebuffer:framebuffer,parameters:parameters={},uniforms:uniforms,samplers:samplers}=_ref;if((uniforms||samplers)&&(esm.cM.deprecated("Program.draw({uniforms})","Program.setUniforms(uniforms)")(),this.setUniforms(uniforms||{})),esm.cM.priority>=logPriority){const fb=framebuffer?framebuffer.id:"default",message="mode=".concat((0,constants_to_keys.km)(this.gl,drawMode)," verts=").concat(vertexCount," ")+"instances=".concat(instanceCount," indexType=").concat((0,constants_to_keys.km)(this.gl,indexType)," ")+"isInstanced=".concat(isInstanced," isIndexed=").concat(isIndexed," ")+"Framebuffer=".concat(fb);esm.cM.log(logPriority,message)()}return(0,assert.h)(vertexArray),this.gl.useProgram(this.handle),!(!this._areTexturesRenderable()||0===vertexCount||isInstanced&&0===instanceCount)&&(vertexArray.bindForDraw(vertexCount,instanceCount,(()=>{if(void 0!==framebuffer&&(parameters=Object.assign({},parameters,{framebuffer:framebuffer})),transformFeedback){const primitiveMode=(0,attribute_utils.$Z)(drawMode);transformFeedback.begin(primitiveMode)}this._bindTextures(),(0,esm.s8)(this.gl,parameters,(()=>{isIndexed&&isInstanced?this.gl2.drawElementsInstanced(drawMode,vertexCount,indexType,offset,instanceCount):isIndexed&&(0,esm.D0)(this.gl)&&!isNaN(start)&&!isNaN(end)?this.gl2.drawRangeElements(drawMode,start,end,vertexCount,indexType,offset):isIndexed?this.gl.drawElements(drawMode,vertexCount,indexType,offset):isInstanced?this.gl2.drawArraysInstanced(drawMode,offset,vertexCount,instanceCount):this.gl.drawArrays(drawMode,offset,vertexCount)})),transformFeedback&&transformFeedback.end()})),!0)}setUniforms(){let uniforms=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};esm.cM.priority>=2&&function checkUniformValues(uniforms,source,uniformMap){for(const uniformName in uniforms){const value=uniforms[uniformName];if((!uniformMap||Boolean(uniformMap[uniformName]))&&!checkUniformValue(value))throw source=source?"".concat(source," "):"",console.error("".concat(source," Bad uniform ").concat(uniformName),value),new Error("".concat(source," Bad uniform ").concat(uniformName))}return!0}(uniforms,this.id,this._uniformSetters),this.gl.useProgram(this.handle);for(const uniformName in uniforms){const uniform=uniforms[uniformName],uniformSetter=this._uniformSetters[uniformName];if(uniformSetter){let value=uniform,textureUpdate=!1;if(value instanceof framebuffer.Z&&(value=value.texture),value instanceof texture.Z)if(textureUpdate=this.uniforms[uniformName]!==uniform,textureUpdate){void 0===uniformSetter.textureIndex&&(uniformSetter.textureIndex=this._textureIndexCounter++);const texture=value,{textureIndex:textureIndex}=uniformSetter;texture.bind(textureIndex),value=textureIndex,this._textureUniforms[uniformName]=texture}else value=uniformSetter.textureIndex;else this._textureUniforms[uniformName]&&delete this._textureUniforms[uniformName];(uniformSetter(value)||textureUpdate)&©Uniform(this.uniforms,uniformName,uniform)}}return this}_areTexturesRenderable(){let texturesRenderable=!0;for(const uniformName in this._textureUniforms){const texture=this._textureUniforms[uniformName];texture.update(),texturesRenderable=texturesRenderable&&texture.loaded}return texturesRenderable}_bindTextures(){for(const uniformName in this._textureUniforms){const textureIndex=this._uniformSetters[uniformName].textureIndex;this._textureUniforms[uniformName].bind(textureIndex)}}_createHandle(){return this.gl.createProgram()}_deleteHandle(){this.gl.deleteProgram(this.handle)}_getOptionsFromHandle(handle){const shaderHandles=this.gl.getAttachedShaders(handle),opts={};for(const shaderHandle of shaderHandles){switch(this.gl.getShaderParameter(this.handle,35663)){case 35633:opts.vs=new shader.Qh({handle:shaderHandle});break;case 35632:opts.fs=new shader.gs({handle:shaderHandle})}}return opts}_getParameter(pname){return this.gl.getProgramParameter(this.handle,pname)}_setId(id){if(!id){const programName=this._getName();this.id=(0,utils.hQ)(programName)}}_getName(){let programName=this.vs.getName()||this.fs.getName();return programName=programName.replace(/shader/i,""),programName=programName?"".concat(programName,"-program"):"program",programName}_compileAndLink(){const{gl:gl}=this;if(gl.attachShader(this.handle,this.vs.handle),gl.attachShader(this.handle,this.fs.handle),esm.cM.time(4,"linkProgram for ".concat(this._getName()))(),gl.linkProgram(this.handle),esm.cM.timeEnd(4,"linkProgram for ".concat(this._getName()))(),gl.debug||esm.cM.level>0){if(!gl.getProgramParameter(this.handle,35714))throw new Error("Error linking: ".concat(gl.getProgramInfoLog(this.handle)));gl.validateProgram(this.handle);if(!gl.getProgramParameter(this.handle,35715))throw new Error("Error validating: ".concat(gl.getProgramInfoLog(this.handle)))}}_readUniformLocationsFromLinkedProgram(){const{gl:gl}=this;this._uniformSetters={},this._uniformCount=this._getParameter(35718);for(let i=0;i1)for(let l=0;l1&&void 0!==arguments[1]?arguments[1]:{format:null};return!format||function isFormatSupported(gl,format,formats){const info=formats[format];if(!info)return!1;const value=(0,esm.D0)(gl)&&info.gl2||info.gl1;return"string"==typeof value?gl.getExtension(value):value}(gl,format,renderbuffer_formats)}static getSamplesForFormat(gl,_ref){let{format:format}=_ref;return gl.getInternalformatParameter(36161,format,32937)}constructor(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(gl,opts),this.initialize(opts),Object.seal(this)}initialize(_ref2){let{format:format,width:width=1,height:height=1,samples:samples=0}=_ref2;return(0,assert.h)(format,"Needs format"),this._trackDeallocatedMemory(),this.gl.bindRenderbuffer(36161,this.handle),0!==samples&&(0,esm.D0)(this.gl)?this.gl.renderbufferStorageMultisample(36161,samples,format,width,height):this.gl.renderbufferStorage(36161,format,width,height),this.format=format,this.width=width,this.height=height,this.samples=samples,this._trackAllocatedMemory(this.width*this.height*(this.samples||1)*renderbuffer_formats[this.format].bpp),this}resize(_ref3){let{width:width,height:height}=_ref3;return width!==this.width||height!==this.height?this.initialize({width:width,height:height,format:this.format,samples:this.samples}):this}_createHandle(){return this.gl.createRenderbuffer()}_deleteHandle(){this.gl.deleteRenderbuffer(this.handle),this._trackDeallocatedMemory()}_bindHandle(handle){this.gl.bindRenderbuffer(36161,handle)}_syncHandle(handle){this.format=this.getParameter(36164),this.width=this.getParameter(36162),this.height=this.getParameter(36163),this.samples=this.getParameter(36011)}_getParameter(pname){this.gl.bindRenderbuffer(36161,this.handle);return this.gl.getRenderbufferParameter(36161,pname)}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Resource}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_init__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/init.js"),_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/constants-to-keys.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),_utils_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js"),_utils_stub_methods__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/stub-methods.js");const ERR_RESOURCE_METHOD_UNDEFINED="Resource subclass must define virtual methods";class Resource{get[Symbol.toStringTag](){return"Resource"}constructor(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.JD)(gl);const{id:id,userData:userData={}}=opts;this.gl=gl,this.gl2=gl,this.id=id||(0,_utils_utils__WEBPACK_IMPORTED_MODULE_1__.hQ)(this[Symbol.toStringTag]),this.userData=userData,this._bound=!1,this._handle=opts.handle,void 0===this._handle&&(this._handle=this._createHandle()),this.byteLength=0,this._addStats()}toString(){return"".concat(this[Symbol.toStringTag]||this.constructor.name,"(").concat(this.id,")")}get handle(){return this._handle}delete(){let{deleteChildren:deleteChildren=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const children=this._handle&&this._deleteHandle(this._handle);return this._handle&&this._removeStats(),this._handle=null,children&&deleteChildren&&children.filter(Boolean).forEach((child=>child.delete())),this}bind(){let value,funcOrHandle=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.handle;return"function"!=typeof funcOrHandle?(this._bindHandle(funcOrHandle),this):(this._bound?value=funcOrHandle():(this._bindHandle(this.handle),this._bound=!0,value=funcOrHandle(),this._bound=!1,this._bindHandle(null)),value)}unbind(){this.bind(null)}getParameter(pname){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pname=(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__.sF)(this.gl,pname),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_3__.h)(pname);const parameter=(this.constructor.PARAMETERS||{})[pname];if(parameter){const isWebgl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(this.gl);if(!((!("webgl2"in parameter)||isWebgl2)&&(!("extension"in parameter)||this.gl.getExtension(parameter.extension)))){const webgl1Default=parameter.webgl1,webgl2Default="webgl2"in parameter?parameter.webgl2:parameter.webgl1;return isWebgl2?webgl2Default:webgl1Default}}return this._getParameter(pname,opts)}getParameters(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{parameters:parameters,keys:keys}=options,PARAMETERS=this.constructor.PARAMETERS||{},isWebgl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(this.gl),values={},parameterKeys=parameters||Object.keys(PARAMETERS);for(const pname of parameterKeys){const parameter=PARAMETERS[pname];if(parameter&&(!("webgl2"in parameter)||isWebgl2)&&(!("extension"in parameter)||this.gl.getExtension(parameter.extension))){const key=keys?(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__.km)(this.gl,pname):pname;values[key]=this.getParameter(pname,options),keys&&"GLenum"===parameter.type&&(values[key]=(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__.km)(this.gl,values[key]))}}return values}setParameter(pname,value){pname=(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__.sF)(this.gl,pname),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_3__.h)(pname);const parameter=(this.constructor.PARAMETERS||{})[pname];if(parameter){const isWebgl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(this.gl);if(!((!("webgl2"in parameter)||isWebgl2)&&(!("extension"in parameter)||this.gl.getExtension(parameter.extension))))throw new Error("Parameter not available on this platform");"GLenum"===parameter.type&&(value=(0,_webgl_utils_constants_to_keys__WEBPACK_IMPORTED_MODULE_2__.sF)(value))}return this._setParameter(pname,value),this}setParameters(parameters){for(const pname in parameters)this.setParameter(pname,parameters[pname]);return this}stubRemovedMethods(className,version,methodNames){return(0,_utils_stub_methods__WEBPACK_IMPORTED_MODULE_4__.F)(this,className,version,methodNames)}initialize(opts){}_createHandle(){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_deleteHandle(){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_bindHandle(handle){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_getOptsFromHandle(){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_getParameter(pname,opts){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_setParameter(pname,value){throw new Error(ERR_RESOURCE_METHOD_UNDEFINED)}_context(){return this.gl.luma=this.gl.luma||{},this.gl.luma}_addStats(){const name=this[Symbol.toStringTag],stats=_init__WEBPACK_IMPORTED_MODULE_5__.lR.get("Resource Counts");stats.get("Resources Created").incrementCount(),stats.get("".concat(name,"s Created")).incrementCount(),stats.get("".concat(name,"s Active")).incrementCount()}_removeStats(){const name=this[Symbol.toStringTag];_init__WEBPACK_IMPORTED_MODULE_5__.lR.get("Resource Counts").get("".concat(name,"s Active")).decrementCount()}_trackAllocatedMemory(bytes){let name=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[Symbol.toStringTag];this._trackAllocatedMemoryForContext(bytes,name),this._trackAllocatedMemoryForContext(bytes,name,this.gl.canvas&&this.gl.canvas.id),this.byteLength=bytes}_trackAllocatedMemoryForContext(bytes){let name=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[Symbol.toStringTag],id=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const stats=_init__WEBPACK_IMPORTED_MODULE_5__.lR.get("Memory Usage".concat(id));stats.get("GPU Memory").addCount(bytes),stats.get("".concat(name," Memory")).addCount(bytes)}_trackDeallocatedMemory(){let name=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this[Symbol.toStringTag];this._trackDeallocatedMemoryForContext(name),this._trackDeallocatedMemoryForContext(name,this.gl.canvas&&this.gl.canvas.id),this.byteLength=0}_trackDeallocatedMemoryForContext(){let name=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this[Symbol.toStringTag],id=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const stats=_init__WEBPACK_IMPORTED_MODULE_5__.lR.get("Memory Usage".concat(id));stats.get("GPU Memory").subtractCount(this.byteLength),stats.get("".concat(name," Memory")).subtractCount(this.byteLength)}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/shader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{gs:function(){return FragmentShader},Qh:function(){return VertexShader}});var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");function getShaderName(shader){let defaultName=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unnamed";const match=shader.match(/#define[\s*]SHADER_NAME[\s*]([A-Za-z0-9_-]+)[\s*]/);return match?match[1]:defaultName}const GL_FRAGMENT_SHADER=35632,GL_VERTEX_SHADER=35633;function parseGLSLCompilerError(errLog,src,shaderType,shaderName){const errorStrings=errLog.split(/\r?\n/),errors={},warnings={},name=shaderName||getShaderName(src)||"(unnamed)",shaderDescription="".concat(function getShaderTypeName(type){switch(type){case GL_FRAGMENT_SHADER:return"fragment";case GL_VERTEX_SHADER:return"vertex";default:return"unknown type"}}(shaderType)," shader ").concat(name);for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:1,delim=arguments.length>2&&void 0!==arguments[2]?arguments[2]:": ";const lines=string.split(/\r?\n/),maxDigits=String(lines.length+start-1).length;return lines.map(((line,i)=>{const lineNumber=String(i+start),digits=lineNumber.length;return padLeft(lineNumber,maxDigits-digits)+delim+line}))}(src);return{shaderName:shaderDescription,errors:formatErrors(errors,lines),warnings:formatErrors(warnings,lines)}}function formatErrors(errors,lines){let message="";for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:this.source;source.startsWith("#version ")||(source="#version 100\n".concat(source)),this.source=source,this.gl.shaderSource(this.handle,this.source),this.gl.compileShader(this.handle);if(!this.getParameter(35713)){const infoLog=this.gl.getShaderInfoLog(this.handle),{shaderName:shaderName,errors:errors,warnings:warnings}=parseGLSLCompilerError(infoLog,this.source,this.shaderType,this.id);throw esm.cM.error("GLSL compilation errors in ".concat(shaderName,"\n").concat(errors))(),esm.cM.warn("GLSL compilation warnings in ".concat(shaderName,"\n").concat(warnings))(),new Error("GLSL compilation errors in ".concat(shaderName))}}_deleteHandle(){this.gl.deleteShader(this.handle)}_getOptsFromHandle(){return{type:this.getParameter(35663),source:this.getSource()}}}class VertexShader extends Shader{get[Symbol.toStringTag](){return"VertexShader"}constructor(gl,props){"string"==typeof props&&(props={source:props}),super(gl,Object.assign({},props,{shaderType:35633}))}_createHandle(){return this.gl.createShader(35633)}}class FragmentShader extends Shader{get[Symbol.toStringTag](){return"FragmentShader"}constructor(gl,props){"string"==typeof props&&(props={source:props}),super(gl,Object.assign({},props,{shaderType:35632}))}_createHandle(){return this.gl.createShader(35632)}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Texture2D}});var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),texture=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js"),utils_assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");let pathPrefix="";class Texture2D extends texture.Z{get[Symbol.toStringTag](){return"Texture2D"}static isSupported(gl,opts){return texture.Z.isSupported(gl,opts)}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var url,opts;(0,esm.JD)(gl),(props instanceof Promise||"string"==typeof props)&&(props={data:props}),"string"==typeof props.data&&(props=Object.assign({},props,{data:(url=props.data,(0,utils_assert.h)("string"==typeof url),url=pathPrefix+url,new Promise(((resolve,reject)=>{try{const image=new Image;image.onload=()=>resolve(image),image.onerror=()=>reject(new Error("Could not load image ".concat(url,"."))),image.crossOrigin=opts&&opts.crossOrigin||"anonymous",image.src=url}catch(error){reject(error)}})))})),super(gl,Object.assign({},props,{target:3553})),this.initialize(props),Object.seal(this)}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/texture-3d.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Texture3D}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_texture__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js"),_texture_formats__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-formats.js"),_buffer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js");class Texture3D extends _texture__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"Texture3D"}static isSupported(gl){return(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(gl)}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl),props=Object.assign({depth:1},props,{target:32879,unpackFlipY:!1}),super(gl,props),this.initialize(props),Object.seal(this)}setImageData(_ref){let{level:level=0,dataFormat:dataFormat=6408,width:width,height:height,depth:depth=1,border:border=0,format:format,type:type=5121,offset:offset=0,data:data,parameters:parameters={}}=_ref;if(this._trackDeallocatedMemory("Texture"),this.gl.bindTexture(this.target,this.handle),(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(this.gl,parameters,(()=>{ArrayBuffer.isView(data)&&this.gl.texImage3D(this.target,level,dataFormat,width,height,depth,border,format,type,data),data instanceof _buffer__WEBPACK_IMPORTED_MODULE_2__.Z&&(this.gl.bindBuffer(35052,data.handle),this.gl.texImage3D(this.target,level,dataFormat,width,height,depth,border,format,type,offset))})),data&&data.byteLength)this._trackAllocatedMemory(data.byteLength,"Texture");else{const channels=_texture_formats__WEBPACK_IMPORTED_MODULE_3__.C[this.dataFormat]||4,channelSize=_texture_formats__WEBPACK_IMPORTED_MODULE_3__.pH[this.type]||1;this._trackAllocatedMemory(this.width*this.height*this.depth*channels*channelSize,"Texture")}return this.loaded=!0,this}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/texture-cube.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TextureCube}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_texture__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js");const FACES=[34069,34070,34071,34072,34073,34074];class TextureCube extends _texture__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"TextureCube"}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.JD)(gl),super(gl,Object.assign({},props,{target:34067})),this.initialize(props),Object.seal(this)}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mipmaps:mipmaps=!0,parameters:parameters={}}=props;return this.opts=props,this.setCubeMapImageData(props).then((()=>{this.loaded=!0,mipmaps&&this.generateMipmap(props),this.setParameters(parameters)})),this}subImage(_ref){let{face:face,data:data,x:x=0,y:y=0,mipmapLevel:mipmapLevel=0}=_ref;return this._subImage({target:face,data:data,x:x,y:y,mipmapLevel:mipmapLevel})}async setCubeMapImageData(_ref2){let{width:width,height:height,pixels:pixels,data:data,border:border=0,format:format=6408,type:type=5121}=_ref2;const{gl:gl}=this,imageDataMap=pixels||data,resolvedFaces=await Promise.all(FACES.map((face=>{const facePixels=imageDataMap[face];return Promise.all(Array.isArray(facePixels)?facePixels:[facePixels])})));this.bind(),FACES.forEach(((face,index)=>{resolvedFaces[index].length>1&&!1!==this.opts.mipmaps&&_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.warn("".concat(this.id," has mipmap and multiple LODs."))(),resolvedFaces[index].forEach(((image,lodLevel)=>{width&&height?gl.texImage2D(face,lodLevel,format,width,height,border,format,type,image):gl.texImage2D(face,lodLevel,format,format,type,image)}))})),this.unbind()}setImageDataForFace(options){const{face:face,width:width,height:height,pixels:pixels,data:data,border:border=0,format:format=6408,type:type=5121}=options,{gl:gl}=this,imageData=pixels||data;return this.bind(),imageData instanceof Promise?imageData.then((resolvedImageData=>this.setImageDataForFace(Object.assign({},options,{face:face,data:resolvedImageData,pixels:resolvedImageData})))):this.width||this.height?gl.texImage2D(face,0,format,width,height,border,format,type,imageData):gl.texImage2D(face,0,format,format,type,imageData),this}}TextureCube.FACES=FACES},"./node_modules/@luma.gl/webgl/dist/esm/classes/texture-formats.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return DATA_FORMAT_CHANNELS},KR:function(){return isLinearFilteringSupported},ae:function(){return TEXTURE_FORMATS},br:function(){return isFormatSupported},pH:function(){return TYPE_SIZES}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");const TEXTURE_FORMATS={6407:{dataFormat:6407,types:[5121,33635]},6408:{dataFormat:6408,types:[5121,32819,32820]},6406:{dataFormat:6406,types:[5121]},6409:{dataFormat:6409,types:[5121]},6410:{dataFormat:6410,types:[5121]},33326:{dataFormat:6403,types:[5126],gl2:!0},33328:{dataFormat:33319,types:[5126],gl2:!0},34837:{dataFormat:6407,types:[5126],gl2:!0},34836:{dataFormat:6408,types:[5126],gl2:!0}},DATA_FORMAT_CHANNELS={6403:1,36244:1,33319:2,33320:2,6407:3,36248:3,6408:4,36249:4,6402:1,34041:1,6406:1,6409:1,6410:2},TYPE_SIZES={5126:4,5125:4,5124:4,5123:2,5122:2,5131:2,5120:1,5121:1};function isFormatSupported(gl,format){const info=TEXTURE_FORMATS[format];if(!info)return!1;if(void 0===info.gl1&&void 0===info.gl2)return!0;const value=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(gl)&&info.gl2||info.gl1;return"string"==typeof value?gl.getExtension(value):value}function isLinearFilteringSupported(gl,format){const info=TEXTURE_FORMATS[format];switch(info&&info.types[0]){case 5126:return gl.getExtension("OES_texture_float_linear");case 5131:return gl.getExtension("OES_texture_half_float_linear");default:return!0}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/texture.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Texture}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_resource__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),_buffer__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),_texture_formats__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-formats.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js"),_utils_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");const NPOT_MIN_FILTERS=[9729,9728],WebGLBuffer=globalThis.WebGLBuffer||function WebGLBuffer(){};class Texture extends _resource__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"Texture"}static isSupported(gl){let opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{format:format,linearFiltering:linearFiltering}=opts;let supported=!0;return format&&(supported=supported&&(0,_texture_formats__WEBPACK_IMPORTED_MODULE_2__.br)(gl,format),supported=supported&&(!linearFiltering||(0,_texture_formats__WEBPACK_IMPORTED_MODULE_2__.KR)(gl,format))),supported}constructor(gl,props){const{id:id=(0,_utils_utils__WEBPACK_IMPORTED_MODULE_3__.hQ)("texture"),handle:handle,target:target}=props;super(gl,{id:id,handle:handle}),this.target=target,this.textureUnit=void 0,this.loaded=!1,this.width=void 0,this.height=void 0,this.depth=void 0,this.format=void 0,this.type=void 0,this.dataFormat=void 0,this.border=void 0,this.textureUnit=void 0,this.mipmaps=void 0}toString(){return"Texture(".concat(this.id,",").concat(this.width,"x").concat(this.height,")")}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},data=props.data;if(data instanceof Promise)return data.then((resolvedImageData=>this.initialize(Object.assign({},props,{pixels:resolvedImageData,data:resolvedImageData})))),this;const isVideo="undefined"!=typeof HTMLVideoElement&&data instanceof HTMLVideoElement;if(isVideo&&data.readyStatethis.initialize(props))),this;const{pixels:pixels=null,format:format=6408,border:border=0,recreate:recreate=!1,parameters:parameters={},pixelStore:pixelStore={},textureUnit:textureUnit}=props;data||(data=pixels);let{width:width,height:height,dataFormat:dataFormat,type:type,compressed:compressed=!1,mipmaps:mipmaps=!0}=props;const{depth:depth=0}=props;return({width:width,height:height,compressed:compressed,dataFormat:dataFormat,type:type}=this._deduceParameters({format:format,type:type,dataFormat:dataFormat,compressed:compressed,data:data,width:width,height:height})),this.width=width,this.height=height,this.depth=depth,this.format=format,this.type=type,this.dataFormat=dataFormat,this.border=border,this.textureUnit=textureUnit,Number.isFinite(this.textureUnit)&&(this.gl.activeTexture(33984+this.textureUnit),this.gl.bindTexture(this.target,this.handle)),mipmaps&&this._isNPOT()&&(_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),mipmaps=!1,this._updateForNPOT(parameters)),this.mipmaps=mipmaps,this.setImageData({data:data,width:width,height:height,depth:depth,format:format,type:type,dataFormat:dataFormat,border:border,mipmaps:mipmaps,parameters:pixelStore,compressed:compressed}),mipmaps&&this.generateMipmap(),this.setParameters(parameters),recreate&&(this.data=data),isVideo&&(this._video={video:data,parameters:parameters,lastTime:data.readyState>=HTMLVideoElement.HAVE_CURRENT_DATA?data.currentTime:-1}),this}update(){if(this._video){const{video:video,parameters:parameters,lastTime:lastTime}=this._video;if(lastTime===video.currentTime||video.readyState0&&void 0!==arguments[0]?arguments[0]:{};return this._isNPOT()?(_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),this):(this.mipmaps=!0,this.gl.bindTexture(this.target,this.handle),(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(this.gl,params,(()=>{this.gl.generateMipmap(this.target)})),this.gl.bindTexture(this.target,null),this)}setImageData(options){this._trackDeallocatedMemory("Texture");const{target:target=this.target,pixels:pixels=null,level:level=0,format:format=this.format,border:border=this.border,offset:offset=0,parameters:parameters={}}=options;let{data:data=null,type:type=this.type,width:width=this.width,height:height=this.height,dataFormat:dataFormat=this.dataFormat,compressed:compressed=!1}=options;data||(data=pixels),({type:type,dataFormat:dataFormat,compressed:compressed,width:width,height:height}=this._deduceParameters({format:format,type:type,dataFormat:dataFormat,compressed:compressed,data:data,width:width,height:height}));const{gl:gl}=this;gl.bindTexture(this.target,this.handle);let gl2,dataType=null;({data:data,dataType:dataType}=this._getDataType({data:data,compressed:compressed}));let compressedTextureSize=0;if((0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(this.gl,parameters,(()=>{switch(dataType){case"null":gl.texImage2D(target,level,format,width,height,border,dataFormat,type,data);break;case"typed-array":gl.texImage2D(target,level,format,width,height,border,dataFormat,type,data,offset);break;case"buffer":gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl),gl2.bindBuffer(35052,data.handle||data),gl2.texImage2D(target,level,format,width,height,border,dataFormat,type,offset),gl2.bindBuffer(35052,null);break;case"browser-object":(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(gl)?gl.texImage2D(target,level,format,width,height,border,dataFormat,type,data):gl.texImage2D(target,level,format,dataFormat,type,data);break;case"compressed":for(const[levelIndex,levelData]of data.entries())gl.compressedTexImage2D(target,levelIndex,levelData.format,levelData.width,levelData.height,border,levelData.data),compressedTextureSize+=levelData.levelSize;break;default:(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(!1,"Unknown image data type")}})),"compressed"===dataType)this._trackAllocatedMemory(compressedTextureSize,"Texture");else if(data&&data.byteLength)this._trackAllocatedMemory(data.byteLength,"Texture");else{const channels=_texture_formats__WEBPACK_IMPORTED_MODULE_2__.C[this.dataFormat]||4,channelSize=_texture_formats__WEBPACK_IMPORTED_MODULE_2__.pH[this.type]||1;this._trackAllocatedMemory(this.width*this.height*channels*channelSize,"Texture")}return this.loaded=!0,this}setSubImageData(_ref2){let{target:target=this.target,pixels:pixels=null,data:data=null,x:x=0,y:y=0,width:width=this.width,height:height=this.height,level:level=0,format:format=this.format,type:type=this.type,dataFormat:dataFormat=this.dataFormat,compressed:compressed=!1,offset:offset=0,border:border=this.border,parameters:parameters={}}=_ref2;if(({type:type,dataFormat:dataFormat,compressed:compressed,width:width,height:height}=this._deduceParameters({format:format,type:type,dataFormat:dataFormat,compressed:compressed,data:data,width:width,height:height})),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(0===this.depth,"texSubImage not supported for 3D textures"),data||(data=pixels),data&&data.data){const ndarray=data;data=ndarray.data,width=ndarray.shape[0],height=ndarray.shape[1]}data instanceof _buffer__WEBPACK_IMPORTED_MODULE_5__.Z&&(data=data.handle),this.gl.bindTexture(this.target,this.handle),(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.s8)(this.gl,parameters,(()=>{if(compressed)this.gl.compressedTexSubImage2D(target,level,x,y,width,height,format,data);else if(null===data)this.gl.texSubImage2D(target,level,x,y,width,height,dataFormat,type,null);else if(ArrayBuffer.isView(data))this.gl.texSubImage2D(target,level,x,y,width,height,dataFormat,type,data,offset);else if(data instanceof WebGLBuffer){const gl2=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl);gl2.bindBuffer(35052,data),gl2.texSubImage2D(target,level,x,y,width,height,dataFormat,type,offset),gl2.bindBuffer(35052,null)}else if((0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(this.gl)){(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(this.gl).texSubImage2D(target,level,x,y,width,height,dataFormat,type,data)}else this.gl.texSubImage2D(target,level,x,y,dataFormat,type,data)})),this.gl.bindTexture(this.target,null)}copyFramebuffer(){return _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}getActiveUnit(){return this.gl.getParameter(34016)-33984}bind(){let textureUnit=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit;const{gl:gl}=this;return void 0!==textureUnit&&(this.textureUnit=textureUnit,gl.activeTexture(33984+textureUnit)),gl.bindTexture(this.target,this.handle),textureUnit}unbind(){let textureUnit=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit;const{gl:gl}=this;return void 0!==textureUnit&&(this.textureUnit=textureUnit,gl.activeTexture(33984+textureUnit)),gl.bindTexture(this.target,null),textureUnit}_getDataType(_ref3){let{data:data,compressed:compressed=!1}=_ref3;return compressed?{data:data,dataType:"compressed"}:null===data?{data:data,dataType:"null"}:ArrayBuffer.isView(data)?{data:data,dataType:"typed-array"}:data instanceof _buffer__WEBPACK_IMPORTED_MODULE_5__.Z?{data:data.handle,dataType:"buffer"}:data instanceof WebGLBuffer?{data:data,dataType:"buffer"}:{data:data,dataType:"browser-object"}}_deduceParameters(opts){const{format:format,data:data}=opts;let{width:width,height:height,dataFormat:dataFormat,type:type,compressed:compressed}=opts;const textureFormat=_texture_formats__WEBPACK_IMPORTED_MODULE_2__.ae[format];return dataFormat=dataFormat||textureFormat&&textureFormat.dataFormat,type=type||textureFormat&&textureFormat.types[0],compressed=compressed||textureFormat&&textureFormat.compressed,({width:width,height:height}=this._deduceImageSize(data,width,height)),{dataFormat:dataFormat,type:type,compressed:compressed,width:width,height:height,format:format,data:data}}_deduceImageSize(data,width,height){let size;return size="undefined"!=typeof ImageData&&data instanceof ImageData?{width:data.width,height:data.height}:"undefined"!=typeof HTMLImageElement&&data instanceof HTMLImageElement?{width:data.naturalWidth,height:data.naturalHeight}:"undefined"!=typeof HTMLCanvasElement&&data instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&data instanceof ImageBitmap?{width:data.width,height:data.height}:"undefined"!=typeof HTMLVideoElement&&data instanceof HTMLVideoElement?{width:data.videoWidth,height:data.videoHeight}:data?{width:width,height:height}:{width:width>=0?width:1,height:height>=0?height:1},(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(size,"Could not deduced texture size"),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(void 0===width||size.width===width,"Deduced texture width does not match supplied width"),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(void 0===height||size.height===height,"Deduced texture height does not match supplied height"),size}_createHandle(){return this.gl.createTexture()}_deleteHandle(){this.gl.deleteTexture(this.handle),this._trackDeallocatedMemory("Texture")}_getParameter(pname){switch(pname){case 4096:return this.width;case 4097:return this.height;default:this.gl.bindTexture(this.target,this.handle);const value=this.gl.getTexParameter(this.target,pname);return this.gl.bindTexture(this.target,null),value}}_setParameter(pname,param){switch(this.gl.bindTexture(this.target,this.handle),param=this._getNPOTParam(pname,param),pname){case 33082:case 33083:this.gl.texParameterf(this.handle,pname,param);break;case 4096:case 4097:(0,_utils_assert__WEBPACK_IMPORTED_MODULE_4__.h)(!1);break;default:this.gl.texParameteri(this.target,pname,param)}return this.gl.bindTexture(this.target,null),this}_isNPOT(){return!(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(this.gl)&&(!(!this.width||!this.height)&&(!(0,_utils_utils__WEBPACK_IMPORTED_MODULE_3__.wt)(this.width)||!(0,_utils_utils__WEBPACK_IMPORTED_MODULE_3__.wt)(this.height)))}_updateForNPOT(parameters){void 0===parameters[this.gl.TEXTURE_MIN_FILTER]&&(parameters[this.gl.TEXTURE_MIN_FILTER]=this.gl.LINEAR),void 0===parameters[this.gl.TEXTURE_WRAP_S]&&(parameters[this.gl.TEXTURE_WRAP_S]=this.gl.CLAMP_TO_EDGE),void 0===parameters[this.gl.TEXTURE_WRAP_T]&&(parameters[this.gl.TEXTURE_WRAP_T]=this.gl.CLAMP_TO_EDGE)}_getNPOTParam(pname,param){if(this._isNPOT())switch(pname){case 10241:-1===NPOT_MIN_FILTERS.indexOf(param)&&(param=9729);break;case 10242:case 10243:33071!==param&&(param=33071)}return param}}},"./node_modules/@luma.gl/webgl/dist/esm/classes/transform-feedback.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return TransformFeedback}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_resource__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/resource.js"),_buffer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),_utils_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");class TransformFeedback extends _resource__WEBPACK_IMPORTED_MODULE_1__.Z{get[Symbol.toStringTag](){return"TransformFeedback"}static isSupported(gl){return(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(gl)}constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.KQ)(gl),super(gl,props),this.initialize(props),this.stubRemovedMethods("TransformFeedback","v6.0",["pause","resume"]),Object.seal(this)}initialize(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.buffers={},this.unused={},this.configuration=null,this.bindOnUse=!0,(0,_utils_utils__WEBPACK_IMPORTED_MODULE_2__.nK)(this.buffers)||this.bind((()=>this._unbindBuffers())),this.setProps(props),this}setProps(props){"program"in props&&(this.configuration=props.program&&props.program.configuration),"configuration"in props&&(this.configuration=props.configuration),"bindOnUse"in props&&(props=props.bindOnUse),"buffers"in props&&this.setBuffers(props.buffers)}setBuffers(){let buffers=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.bind((()=>{for(const bufferName in buffers)this.setBuffer(bufferName,buffers[bufferName])})),this}setBuffer(locationOrName,bufferOrParams){const location=this._getVaryingIndex(locationOrName),{buffer:buffer,byteSize:byteSize,byteOffset:byteOffset}=this._getBufferParams(bufferOrParams);return location<0?(this.unused[locationOrName]=buffer,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.warn("".concat(this.id," unused varying buffer ").concat(locationOrName))(),this):(this.buffers[location]=bufferOrParams,this.bindOnUse||this._bindBuffer(location,buffer,byteOffset,byteSize),this)}begin(){let primitiveMode=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.gl.bindTransformFeedback(36386,this.handle),this._bindBuffers(),this.gl.beginTransformFeedback(primitiveMode),this}end(){return this.gl.endTransformFeedback(),this._unbindBuffers(),this.gl.bindTransformFeedback(36386,null),this}_getBufferParams(bufferOrParams){let byteOffset,byteSize,buffer;return bufferOrParams instanceof _buffer__WEBPACK_IMPORTED_MODULE_3__.Z==!1?(buffer=bufferOrParams.buffer,byteSize=bufferOrParams.byteSize,byteOffset=bufferOrParams.byteOffset):buffer=bufferOrParams,void 0===byteOffset&&void 0===byteSize||(byteOffset=byteOffset||0,byteSize=byteSize||buffer.byteLength-byteOffset),{buffer:buffer,byteOffset:byteOffset,byteSize:byteSize}}_getVaryingInfo(locationOrName){return this.configuration&&this.configuration.getVaryingInfo(locationOrName)}_getVaryingIndex(locationOrName){if(this.configuration)return this.configuration.getVaryingInfo(locationOrName).location;const location=Number(locationOrName);return Number.isFinite(location)?location:-1}_bindBuffers(){if(this.bindOnUse)for(const bufferIndex in this.buffers){const{buffer:buffer,byteSize:byteSize,byteOffset:byteOffset}=this._getBufferParams(this.buffers[bufferIndex]);this._bindBuffer(bufferIndex,buffer,byteOffset,byteSize)}}_unbindBuffers(){if(this.bindOnUse)for(const bufferIndex in this.buffers)this._bindBuffer(bufferIndex,null)}_bindBuffer(index,buffer){let byteOffset=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,byteSize=arguments.length>3?arguments[3]:void 0;const handle=buffer&&buffer.handle;return handle&&void 0!==byteSize?this.gl.bindBufferRange(35982,index,handle,byteOffset,byteSize):this.gl.bindBufferBase(35982,index,handle),this}_createHandle(){return this.gl.createTransformFeedback()}_deleteHandle(){this.gl.deleteTransformFeedback(this.handle)}_bindHandle(handle){this.gl.bindTransformFeedback(36386,this.handle)}}},"./node_modules/@luma.gl/webgl/dist/esm/features/features.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N$:function(){return getFeatures},U6:function(){return hasFeature},ag:function(){return hasFeatures}});var _webgl_features_table__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const LOG_UNSUPPORTED_FEATURE=2;function hasFeature(gl,feature){return hasFeatures(gl,feature)}function hasFeatures(gl,features){return(features=Array.isArray(features)?features:[features]).every((feature=>isFeatureSupported(gl,feature)))}function getFeatures(gl){gl.luma=gl.luma||{},gl.luma.caps=gl.luma.caps||{};for(const cap in _webgl_features_table__WEBPACK_IMPORTED_MODULE_1__.Z)void 0===gl.luma.caps[cap]&&(gl.luma.caps[cap]=isFeatureSupported(gl,cap));return gl.luma.caps}function isFeatureSupported(gl,cap){return gl.luma=gl.luma||{},gl.luma.caps=gl.luma.caps||{},void 0===gl.luma.caps[cap]&&(gl.luma.caps[cap]=function queryFeature(gl,cap){const feature=_webgl_features_table__WEBPACK_IMPORTED_MODULE_1__.Z[cap];let isSupported;(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(feature,cap);const featureDefinition=(0,_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.D0)(gl)&&feature[1]||feature[0];if("function"==typeof featureDefinition)isSupported=featureDefinition(gl);else if(Array.isArray(featureDefinition)){isSupported=!0;for(const extension of featureDefinition)isSupported=isSupported&&Boolean(gl.getExtension(extension))}else"string"==typeof featureDefinition?isSupported=Boolean(gl.getExtension(featureDefinition)):"boolean"==typeof featureDefinition?isSupported=featureDefinition:(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.h)(!1);return isSupported}(gl,cap)),gl.luma.caps[cap]||_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.log(LOG_UNSUPPORTED_FEATURE,"Feature: ".concat(cap," not supported"))(),gl.luma.caps[cap]}},"./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{h:function(){return FEATURES}});var _classes_framebuffer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),_classes_texture_2d__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js");const FEATURES={WEBGL2:"WEBGL2",VERTEX_ARRAY_OBJECT:"VERTEX_ARRAY_OBJECT",TIMER_QUERY:"TIMER_QUERY",INSTANCED_RENDERING:"INSTANCED_RENDERING",MULTIPLE_RENDER_TARGETS:"MULTIPLE_RENDER_TARGETS",ELEMENT_INDEX_UINT32:"ELEMENT_INDEX_UINT32",BLEND_EQUATION_MINMAX:"BLEND_EQUATION_MINMAX",FLOAT_BLEND:"FLOAT_BLEND",COLOR_ENCODING_SRGB:"COLOR_ENCODING_SRGB",TEXTURE_DEPTH:"TEXTURE_DEPTH",TEXTURE_FLOAT:"TEXTURE_FLOAT",TEXTURE_HALF_FLOAT:"TEXTURE_HALF_FLOAT",TEXTURE_FILTER_LINEAR_FLOAT:"TEXTURE_FILTER_LINEAR_FLOAT",TEXTURE_FILTER_LINEAR_HALF_FLOAT:"TEXTURE_FILTER_LINEAR_HALF_FLOAT",TEXTURE_FILTER_ANISOTROPIC:"TEXTURE_FILTER_ANISOTROPIC",COLOR_ATTACHMENT_RGBA32F:"COLOR_ATTACHMENT_RGBA32F",COLOR_ATTACHMENT_FLOAT:"COLOR_ATTACHMENT_FLOAT",COLOR_ATTACHMENT_HALF_FLOAT:"COLOR_ATTACHMENT_HALF_FLOAT",GLSL_FRAG_DATA:"GLSL_FRAG_DATA",GLSL_FRAG_DEPTH:"GLSL_FRAG_DEPTH",GLSL_DERIVATIVES:"GLSL_DERIVATIVES",GLSL_TEXTURE_LOD:"GLSL_TEXTURE_LOD"};__webpack_exports__.Z={[FEATURES.WEBGL2]:[!1,!0],[FEATURES.VERTEX_ARRAY_OBJECT]:["OES_vertex_array_object",!0],[FEATURES.TIMER_QUERY]:["EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2"],[FEATURES.INSTANCED_RENDERING]:["ANGLE_instanced_arrays",!0],[FEATURES.MULTIPLE_RENDER_TARGETS]:["WEBGL_draw_buffers",!0],[FEATURES.ELEMENT_INDEX_UINT32]:["OES_element_index_uint",!0],[FEATURES.BLEND_EQUATION_MINMAX]:["EXT_blend_minmax",!0],[FEATURES.FLOAT_BLEND]:["EXT_float_blend"],[FEATURES.COLOR_ENCODING_SRGB]:["EXT_sRGB",!0],[FEATURES.TEXTURE_DEPTH]:["WEBGL_depth_texture",!0],[FEATURES.TEXTURE_FLOAT]:["OES_texture_float",!0],[FEATURES.TEXTURE_HALF_FLOAT]:["OES_texture_half_float",!0],[FEATURES.TEXTURE_FILTER_LINEAR_FLOAT]:["OES_texture_float_linear"],[FEATURES.TEXTURE_FILTER_LINEAR_HALF_FLOAT]:["OES_texture_half_float_linear"],[FEATURES.TEXTURE_FILTER_ANISOTROPIC]:["EXT_texture_filter_anisotropic"],[FEATURES.COLOR_ATTACHMENT_RGBA32F]:[function checkFloat32ColorAttachment(gl){const testTexture=new _classes_texture_2d__WEBPACK_IMPORTED_MODULE_0__.Z(gl,{format:6408,type:5126,dataFormat:6408}),testFb=new _classes_framebuffer__WEBPACK_IMPORTED_MODULE_1__.Z(gl,{id:"test-framebuffer",check:!1,attachments:{36064:testTexture}}),status=testFb.getStatus();return testTexture.delete(),testFb.delete(),36053===status},"EXT_color_buffer_float"],[FEATURES.COLOR_ATTACHMENT_FLOAT]:[!1,"EXT_color_buffer_float"],[FEATURES.COLOR_ATTACHMENT_HALF_FLOAT]:["EXT_color_buffer_half_float"],[FEATURES.GLSL_FRAG_DATA]:["WEBGL_draw_buffers",!0],[FEATURES.GLSL_FRAG_DEPTH]:["EXT_frag_depth",!0],[FEATURES.GLSL_DERIVATIVES]:["OES_standard_derivatives",!0],[FEATURES.GLSL_TEXTURE_LOD]:["EXT_shader_texture_lod",!0]}},"./node_modules/@luma.gl/webgl/dist/esm/init.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{lR:function(){return lumaStats}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),_probe_gl_stats__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@probe.gl/stats/dist/esm/index.js"),_probe_gl_env__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js");const lumaStats=new class StatsManager{constructor(){this.stats=new Map}get(name){return this.stats.has(name)||this.stats.set(name,new _probe_gl_stats__WEBPACK_IMPORTED_MODULE_1__.jk({id:name})),this.stats.get(name)}};if(globalThis.luma&&"8.5.21"!==globalThis.luma.VERSION)throw new Error("luma.gl - multiple VERSIONs detected: ".concat(globalThis.luma.VERSION," vs ").concat("8.5.21"));globalThis.luma||((0,_probe_gl_env__WEBPACK_IMPORTED_MODULE_2__.Z)()&&_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.log(1,"luma.gl ".concat("8.5.21"," - ").concat("set luma.log.level=1 (or higher) to trace rendering"))(),globalThis.luma=globalThis.luma||{VERSION:"8.5.21",version:"8.5.21",log:_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM,stats:lumaStats,globals:{modules:{},nodeIO:{}}});globalThis.luma},"./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"luma.gl: assertion failed.")}__webpack_require__.d(__webpack_exports__,{h:function(){return assert}})},"./node_modules/@luma.gl/webgl/dist/esm/utils/check-props.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return checkProps}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");function checkProps(className,props,propChecks){const{removedProps:removedProps={},deprecatedProps:deprecatedProps={},replacedProps:replacedProps={}}=propChecks;for(const propName in removedProps)if(propName in props){const replacement=removedProps[propName]?"".concat(className,".").concat(removedProps[propName]):"N/A";_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.removed("".concat(className,".").concat(propName),replacement)()}for(const propName in deprecatedProps)if(propName in props){const replacementProp=deprecatedProps[propName];_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("".concat(className,".").concat(propName),"".concat(className,".").concat(replacementProp))()}let newProps=null;for(const propName in replacedProps)if(propName in props){const replacementProp=replacedProps[propName];_luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.deprecated("".concat(className,".").concat(propName),"".concat(className,".").concat(replacementProp))(),newProps=newProps||Object.assign({},props),newProps[replacementProp]=props[propName],delete newProps[propName]}return newProps||props}},"./node_modules/@luma.gl/webgl/dist/esm/utils/stub-methods.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:function(){return stubRemovedMethods}});var _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");function stubRemovedMethods(instance,className,version,methodNames){const upgradeMessage="See luma.gl ".concat(version," Upgrade Guide at https://luma.gl/docs/upgrade-guide"),prototype=Object.getPrototypeOf(instance);methodNames.forEach((methodName=>{prototype.methodName||(prototype[methodName]=()=>{throw _luma_gl_gltools__WEBPACK_IMPORTED_MODULE_0__.cM.removed("Calling removed method ".concat(className,".").concat(methodName,": "),upgradeMessage)(),new Error(methodName)})}))}},"./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{hQ:function(){return uid},nK:function(){return isObjectEmpty},wt:function(){return isPowerOfTwo}});var _assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const uidCounters={};function uid(){let id=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";uidCounters[id]=uidCounters[id]||1;const count=uidCounters[id]++;return"".concat(id,"-").concat(count)}function isPowerOfTwo(n){return(0,_assert__WEBPACK_IMPORTED_MODULE_0__.h)("number"==typeof n,"Input must be a number"),n&&0==(n&n-1)}function isObjectEmpty(obj){let isEmpty=!0;for(const key in obj){isEmpty=!1;break}return isEmpty}},"./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/attribute-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$Z:function(){return getPrimitiveDrawMode},hJ:function(){return decomposeCompositeGLType},jG:function(){return getCompositeGLType}});var _utils_assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");const GL_BYTE=5120,GL_UNSIGNED_BYTE=5121,GL_SHORT=5122,GL_UNSIGNED_SHORT=5123,GL_POINTS=0,GL_LINES=1,GL_LINE_LOOP=2,GL_LINE_STRIP=3,GL_TRIANGLES=4,GL_TRIANGLE_STRIP=5,GL_TRIANGLE_FAN=6,GL_FLOAT=5126,COMPOSITE_GL_TYPES={[GL_FLOAT]:[GL_FLOAT,1,"float"],35664:[GL_FLOAT,2,"vec2"],35665:[GL_FLOAT,3,"vec3"],35666:[GL_FLOAT,4,"vec4"],5124:[5124,1,"int"],35667:[5124,2,"ivec2"],35668:[5124,3,"ivec3"],35669:[5124,4,"ivec4"],5125:[5125,1,"uint"],36294:[5125,2,"uvec2"],36295:[5125,3,"uvec3"],36296:[5125,4,"uvec4"],35670:[GL_FLOAT,1,"bool"],35671:[GL_FLOAT,2,"bvec2"],35672:[GL_FLOAT,3,"bvec3"],35673:[GL_FLOAT,4,"bvec4"],35674:[GL_FLOAT,8,"mat2"],35685:[GL_FLOAT,8,"mat2x3"],35686:[GL_FLOAT,8,"mat2x4"],35675:[GL_FLOAT,12,"mat3"],35687:[GL_FLOAT,12,"mat3x2"],35688:[GL_FLOAT,12,"mat3x4"],35676:[GL_FLOAT,16,"mat4"],35689:[GL_FLOAT,16,"mat4x2"],35690:[GL_FLOAT,16,"mat4x3"]};function getPrimitiveDrawMode(drawMode){switch(drawMode){case GL_POINTS:return GL_POINTS;case GL_LINES:case GL_LINE_STRIP:case GL_LINE_LOOP:return GL_LINES;case GL_TRIANGLES:case GL_TRIANGLE_STRIP:case GL_TRIANGLE_FAN:return GL_TRIANGLES;default:return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_0__.h)(!1),0}}function decomposeCompositeGLType(compositeGLType){const typeAndSize=COMPOSITE_GL_TYPES[compositeGLType];if(!typeAndSize)return null;const[type,components]=typeAndSize;return{type:type,components:components}}function getCompositeGLType(type,components){switch(type){case GL_BYTE:case GL_UNSIGNED_BYTE:case GL_SHORT:case GL_UNSIGNED_SHORT:type=GL_FLOAT}for(const glType in COMPOSITE_GL_TYPES){const[compType,compComponents,name]=COMPOSITE_GL_TYPES[glType];if(compType===type&&compComponents===components)return{glType:glType,name:name}}return null}},"./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/constants-to-keys.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{km:function(){return getKey},sF:function(){return getKeyValue}});var _utils_assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");function getKeyValue(gl,name){if("string"!=typeof name)return name;const number=Number(name);if(!isNaN(number))return number;const value=gl[name=name.replace(/^.*\./,"")];return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_0__.h)(void 0!==value,"Accessing undefined constant GL.".concat(name)),value}function getKey(gl,value){value=Number(value);for(const key in gl)if(gl[key]===value)return"GL.".concat(key);return String(value)}},"./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/texture-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return toFramebuffer},h:function(){return cloneTextureFrom}});var _classes_texture_2d__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),_classes_texture_cube__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-cube.js"),_classes_texture_3d__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-3d.js"),_classes_framebuffer__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js");function cloneTextureFrom(refTexture,overrides){(0,_utils_assert__WEBPACK_IMPORTED_MODULE_0__.h)(refTexture instanceof _classes_texture_2d__WEBPACK_IMPORTED_MODULE_1__.Z||refTexture instanceof _classes_texture_cube__WEBPACK_IMPORTED_MODULE_2__.Z||refTexture instanceof _classes_texture_3d__WEBPACK_IMPORTED_MODULE_3__.Z);const TextureType=refTexture.constructor,{gl:gl,width:width,height:height,format:format,type:type,dataFormat:dataFormat,border:border,mipmaps:mipmaps}=refTexture;return new TextureType(gl,Object.assign({width:width,height:height,format:format,type:type,dataFormat:dataFormat,border:border,mipmaps:mipmaps},overrides))}function toFramebuffer(texture,opts){const{gl:gl,width:width,height:height,id:id}=texture;return new _classes_framebuffer__WEBPACK_IMPORTED_MODULE_4__.Z(gl,Object.assign({},opts,{id:"framebuffer-for-".concat(id),width:width,height:height,attachments:{36064:texture}}))}},"./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/typed-array-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{KS:function(){return scalePixels},O:function(){return getGLTypeFromTypedArray},c$:function(){return flipRows},vN:function(){return getTypedArrayFromGLType}});const ERR_TYPE_DEDUCTION="Failed to deduce GL constant from typed array";function getGLTypeFromTypedArray(arrayOrType){switch(ArrayBuffer.isView(arrayOrType)?arrayOrType.constructor:arrayOrType){case Float32Array:return 5126;case Uint16Array:return 5123;case Uint32Array:return 5125;case Uint8Array:case Uint8ClampedArray:return 5121;case Int8Array:return 5120;case Int16Array:return 5122;case Int32Array:return 5124;default:throw new Error(ERR_TYPE_DEDUCTION)}}function getTypedArrayFromGLType(glType){let{clamped:clamped=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(glType){case 5126:return Float32Array;case 5123:case 33635:case 32819:case 32820:return Uint16Array;case 5125:return Uint32Array;case 5121:return clamped?Uint8ClampedArray:Uint8Array;case 5120:return Int8Array;case 5122:return Int16Array;case 5124:return Int32Array;default:throw new Error("Failed to deduce typed array type from GL constant")}}function flipRows(_ref){let{data:data,width:width,height:height,bytesPerPixel:bytesPerPixel=4,temp:temp}=_ref;const bytesPerRow=width*bytesPerPixel;temp=temp||new Uint8Array(bytesPerRow);for(let y=0;y0?", ":"")+(0,_lib_common__WEBPACK_IMPORTED_MODULE_0__.Bw)(this[i],opts);return"".concat(opts.printTypes?this.constructor.name:"","[").concat(string,"]")}equals(array){if(!array||this.length!==array.length)return!1;for(let i=0;i=0&&i=0&&i2*Math.PI)throw Error("expected radians")}},"./node_modules/@math.gl/core/dist/esm/classes/vector3.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Vector3}});var _base_vector__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/vector.js"),_lib_common__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_lib_validators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js"),gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js"),_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/gl-matrix-extras.js");const ORIGIN=[0,0,0];let ZERO;class Vector3 extends _base_vector__WEBPACK_IMPORTED_MODULE_0__.Z{static get ZERO(){return ZERO||(ZERO=new Vector3(0,0,0),Object.freeze(ZERO)),ZERO}constructor(x=0,y=0,z=0){super(-0,-0,-0),1===arguments.length&&(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.kJ)(x)?this.copy(x):(_lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(y),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(z)),this[0]=x,this[1]=y,this[2]=z)}set(x,y,z){return this[0]=x,this[1]=y,this[2]=z,this.check()}copy(array){return this[0]=array[0],this[1]=array[1],this[2]=array[2],this.check()}fromObject(object){return _lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.y),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.z)),this[0]=object.x,this[1]=object.y,this[2]=object.z,this.check()}toObject(object){return object.x=this[0],object.y=this[1],object.z=this[2],object}get ELEMENTS(){return 3}get z(){return this[2]}set z(value){this[2]=(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(value)}angle(vector){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.EU(this,vector)}cross(vector){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.kC(this,this,vector),this.check()}rotateX({radians:radians,origin:origin=ORIGIN}){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.lM(this,this,origin,radians),this.check()}rotateY({radians:radians,origin:origin=ORIGIN}){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.uD(this,this,origin,radians),this.check()}rotateZ({radians:radians,origin:origin=ORIGIN}){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.jI(this,this,origin,radians),this.check()}transform(matrix4){return this.transformAsPoint(matrix4)}transformAsPoint(matrix4){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.fF(this,this,matrix4),this.check()}transformAsVector(matrix4){return(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__.pL)(this,this,matrix4),this.check()}transformByMatrix3(matrix3){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.kK(this,this,matrix3),this.check()}transformByMatrix2(matrix2){return(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__.eQ)(this,this,matrix2),this.check()}transformByQuaternion(quaternion){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.VC(this,this,quaternion),this.check()}}},"./node_modules/@math.gl/core/dist/esm/lib/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error("math.gl assertion ".concat(message))}__webpack_require__.d(__webpack_exports__,{Z:function(){return assert}})},"./node_modules/@math.gl/core/dist/esm/lib/common.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{BJ:function(){return withEpsilon},Bw:function(){return formatValue},I6:function(){return exactEquals},Kh:function(){return acos},O$:function(){return sin},OR:function(){return tan},RW:function(){return degrees},Ux:function(){return toDegrees},Yr:function(){return toRadians},ZR:function(){return asin},d9:function(){return clone},fS:function(){return equals},jQ:function(){return configure},kJ:function(){return isArray},mC:function(){return cos},t7:function(){return lerp},uR:function(){return radians},uZ:function(){return clamp},vc:function(){return config},z4:function(){return atan}});var _assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/assert.js");const RADIANS_TO_DEGREES=1/Math.PI*180,DEGREES_TO_RADIANS=1/180*Math.PI,config={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0};function configure(options){for(const key in options)(0,_assert__WEBPACK_IMPORTED_MODULE_0__.Z)(key in config),config[key]=options[key];return config}function formatValue(value,{precision:precision=config.precision}={}){return value=function round(value){return Math.round(value/config.EPSILON)*config.EPSILON}(value),"".concat(parseFloat(value.toPrecision(precision)))}function isArray(value){return Array.isArray(value)||ArrayBuffer.isView(value)&&!(value instanceof DataView)}function clone(array){return"clone"in array?array.clone():array.slice()}function toRadians(degrees){return radians(degrees)}function toDegrees(radians){return degrees(radians)}function radians(degrees,result){return map(degrees,(degrees=>degrees*DEGREES_TO_RADIANS),result)}function degrees(radians,result){return map(radians,(radians=>radians*RADIANS_TO_DEGREES),result)}function sin(radians,result){return map(radians,(angle=>Math.sin(angle)),result)}function cos(radians,result){return map(radians,(angle=>Math.cos(angle)),result)}function tan(radians,result){return map(radians,(angle=>Math.tan(angle)),result)}function asin(radians,result){return map(radians,(angle=>Math.asin(angle)),result)}function acos(radians,result){return map(radians,(angle=>Math.acos(angle)),result)}function atan(radians,result){return map(radians,(angle=>Math.atan(angle)),result)}function clamp(value,min,max){return map(value,(value=>Math.max(min,Math.min(max,value))))}function lerp(a,b,t){return isArray(a)?a.map(((ai,i)=>lerp(ai,b[i],t))):t*b+(1-t)*a}function equals(a,b,epsilon){const oldEpsilon=config.EPSILON;epsilon&&(config.EPSILON=epsilon);try{if(a===b)return!0;if(isArray(a)&&isArray(b)){if(a.length!==b.length)return!1;for(let i=0;imax?max:x}const log2=Math.log2||function ieLog2(x){return Math.log(x)*Math.LOG2E};var mat4=__webpack_require__("./node_modules/gl-matrix/esm/mat4.js"),vec2=__webpack_require__("./node_modules/gl-matrix/esm/vec2.js"),vec3=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js");function assert(condition,message){if(!condition)throw new Error(message||"@math.gl/web-mercator: assertion failed.")}const PI=Math.PI,PI_4=PI/4,DEGREES_TO_RADIANS=PI/180,RADIANS_TO_DEGREES=180/PI,TILE_SIZE=512,EARTH_CIRCUMFERENCE=4003e4,MAX_LATITUDE=85.051129,DEFAULT_ALTITUDE=1.5;function zoomToScale(zoom){return Math.pow(2,zoom)}function scaleToZoom(scale){return log2(scale)}function lngLatToWorld(lngLat){const[lng,lat]=lngLat;assert(Number.isFinite(lng)),assert(Number.isFinite(lat)&&lat>=-90&&lat<=90,"invalid latitude");const phi2=lat*DEGREES_TO_RADIANS;return[TILE_SIZE*(lng*DEGREES_TO_RADIANS+PI)/(2*PI),TILE_SIZE*(PI+Math.log(Math.tan(PI_4+.5*phi2)))/(2*PI)]}function worldToLngLat(xy){const[x,y]=xy,lambda2=x/TILE_SIZE*(2*PI)-PI,phi2=2*(Math.atan(Math.exp(y/TILE_SIZE*(2*PI)-PI))-PI_4);return[lambda2*RADIANS_TO_DEGREES,phi2*RADIANS_TO_DEGREES]}function getMeterZoom(options){const{latitude:latitude}=options;assert(Number.isFinite(latitude));const latCosine=Math.cos(latitude*DEGREES_TO_RADIANS);return scaleToZoom(EARTH_CIRCUMFERENCE*latCosine)-9}function unitsPerMeter(latitude){const latCosine=Math.cos(latitude*DEGREES_TO_RADIANS);return TILE_SIZE/EARTH_CIRCUMFERENCE/latCosine}function getDistanceScales(options){const{latitude:latitude,longitude:longitude,highPrecision:highPrecision=!1}=options;assert(Number.isFinite(latitude)&&Number.isFinite(longitude));const worldSize=TILE_SIZE,latCosine=Math.cos(latitude*DEGREES_TO_RADIANS),unitsPerDegreeX=worldSize/360,unitsPerDegreeY=unitsPerDegreeX/latCosine,altUnitsPerMeter=worldSize/EARTH_CIRCUMFERENCE/latCosine,result={unitsPerMeter:[altUnitsPerMeter,altUnitsPerMeter,altUnitsPerMeter],metersPerUnit:[1/altUnitsPerMeter,1/altUnitsPerMeter,1/altUnitsPerMeter],unitsPerDegree:[unitsPerDegreeX,unitsPerDegreeY,altUnitsPerMeter],degreesPerUnit:[1/unitsPerDegreeX,1/unitsPerDegreeY,1/altUnitsPerMeter]};if(highPrecision){const latCosine2=DEGREES_TO_RADIANS*Math.tan(latitude*DEGREES_TO_RADIANS)/latCosine,unitsPerDegreeY2=unitsPerDegreeX*latCosine2/2,altUnitsPerDegree2=worldSize/EARTH_CIRCUMFERENCE*latCosine2,altUnitsPerMeter2=altUnitsPerDegree2/unitsPerDegreeY*altUnitsPerMeter;result.unitsPerDegree2=[0,unitsPerDegreeY2,altUnitsPerDegree2],result.unitsPerMeter2=[altUnitsPerMeter2,0,altUnitsPerMeter2]}return result}function addMetersToLngLat(lngLatZ,xyz){const[longitude,latitude,z0]=lngLatZ,[x,y,z]=xyz,{unitsPerMeter:unitsPerMeter,unitsPerMeter2:unitsPerMeter2}=getDistanceScales({longitude:longitude,latitude:latitude,highPrecision:!0}),worldspace=lngLatToWorld(lngLatZ);worldspace[0]+=x*(unitsPerMeter[0]+unitsPerMeter2[0]*y),worldspace[1]+=y*(unitsPerMeter[1]+unitsPerMeter2[1]*y);const newLngLat=worldToLngLat(worldspace),newZ=(z0||0)+(z||0);return Number.isFinite(z0)||Number.isFinite(z)?[newLngLat[0],newLngLat[1],newZ]:newLngLat}function getViewMatrix(options){const{height:height,pitch:pitch,bearing:bearing,altitude:altitude,scale:scale,center:center}=options,vm=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];mat4.Iu(vm,vm,[0,0,-altitude]),mat4.lM(vm,vm,-pitch*DEGREES_TO_RADIANS),mat4.jI(vm,vm,bearing*DEGREES_TO_RADIANS);const relativeScale=scale/height;return mat4.bA(vm,vm,[relativeScale,relativeScale,relativeScale]),center&&mat4.Iu(vm,vm,vec3.tk([],center)),vm}function getProjectionParameters(options){const{width:width,height:height,altitude:altitude,pitch:pitch=0,offset:offset,center:center,scale:scale,nearZMultiplier:nearZMultiplier=1,farZMultiplier:farZMultiplier=1}=options;let{fovy:fovy=altitudeToFovy(DEFAULT_ALTITUDE)}=options;void 0!==altitude&&(fovy=altitudeToFovy(altitude));const fovRadians=fovy*DEGREES_TO_RADIANS,pitchRadians=pitch*DEGREES_TO_RADIANS,focalDistance=fovyToAltitude(fovy);let cameraToSeaLevelDistance=focalDistance;center&&(cameraToSeaLevelDistance+=center[2]*scale/Math.cos(pitchRadians)/height);const fovAboveCenter=fovRadians*(.5+(offset?offset[1]:0)/height),topHalfSurfaceDistance=Math.sin(fovAboveCenter)*cameraToSeaLevelDistance/Math.sin(clamp(Math.PI/2-pitchRadians-fovAboveCenter,.01,Math.PI-.01)),furthestDistance=Math.sin(pitchRadians)*topHalfSurfaceDistance+cameraToSeaLevelDistance,horizonDistance=10*cameraToSeaLevelDistance;return{fov:fovRadians,aspect:width/height,focalDistance:focalDistance,near:nearZMultiplier,far:Math.min(furthestDistance*farZMultiplier,horizonDistance)}}function getProjectionMatrix(options){const{fov:fov,aspect:aspect,near:near,far:far}=getProjectionParameters(options);return mat4.G3([],fov,aspect,near,far)}function altitudeToFovy(altitude){return 2*Math.atan(.5/altitude)*RADIANS_TO_DEGREES}function fovyToAltitude(fovy){return.5/Math.tan(.5*fovy*DEGREES_TO_RADIANS)}function worldToPixels(xyz,pixelProjectionMatrix){const[x,y,z=0]=xyz;return assert(Number.isFinite(x)&&Number.isFinite(y)&&Number.isFinite(z)),transformVector(pixelProjectionMatrix,[x,y,z,1])}function pixelsToWorld(xyz,pixelUnprojectionMatrix,targetZ=0){const[x,y,z]=xyz;if(assert(Number.isFinite(x)&&Number.isFinite(y),"invalid pixel coordinate"),Number.isFinite(z)){return transformVector(pixelUnprojectionMatrix,[x,y,z,1])}const coord0=transformVector(pixelUnprojectionMatrix,[x,y,0,1]),coord1=transformVector(pixelUnprojectionMatrix,[x,y,1,1]),z0=coord0[2],z1=coord1[2],t=z0===z1?0:((targetZ||0)-z0)/(z1-z0);return vec2.t7([],coord0,coord1,t)}function fitBounds(options){const{width:width,height:height,bounds:bounds,minExtent:minExtent=0,maxZoom:maxZoom=24,offset:offset=[0,0]}=options,[[west,south],[east,north]]=bounds,padding=function getPaddingObject(padding=0){if("number"==typeof padding)return{top:padding,bottom:padding,left:padding,right:padding};return assert(Number.isFinite(padding.top)&&Number.isFinite(padding.bottom)&&Number.isFinite(padding.left)&&Number.isFinite(padding.right)),padding}(options.padding),nw=lngLatToWorld([west,clamp(north,-MAX_LATITUDE,MAX_LATITUDE)]),se=lngLatToWorld([east,clamp(south,-MAX_LATITUDE,MAX_LATITUDE)]),size=[Math.max(Math.abs(se[0]-nw[0]),minExtent),Math.max(Math.abs(se[1]-nw[1]),minExtent)],targetSize=[width-padding.left-padding.right-2*Math.abs(offset[0]),height-padding.top-padding.bottom-2*Math.abs(offset[1])];assert(targetSize[0]>0&&targetSize[1]>0);const scaleX=targetSize[0]/size[0],scaleY=targetSize[1]/size[1],offsetX=(padding.right-padding.left)/2/scaleX,offsetY=(padding.top-padding.bottom)/2/scaleY,centerLngLat=worldToLngLat([(se[0]+nw[0])/2+offsetX,(se[1]+nw[1])/2+offsetY]),zoom=Math.min(maxZoom,log2(Math.abs(Math.min(scaleX,scaleY))));return assert(Number.isFinite(zoom)),{longitude:centerLngLat[0],latitude:centerLngLat[1],zoom:zoom}}const get_bounds_DEGREES_TO_RADIANS=Math.PI/180;function getBounds(viewport,z=0){const{width:width,height:height,unproject:unproject}=viewport,unprojectOps={targetZ:z},bottomLeft=unproject([0,height],unprojectOps),bottomRight=unproject([width,height],unprojectOps);let topLeft,topRight;return(viewport.fovy?.5*viewport.fovy*get_bounds_DEGREES_TO_RADIANS:Math.atan(.5/viewport.altitude))>(90-viewport.pitch)*get_bounds_DEGREES_TO_RADIANS-.01?(topLeft=unprojectOnFarPlane(viewport,0,z),topRight=unprojectOnFarPlane(viewport,width,z)):(topLeft=unproject([0,0],unprojectOps),topRight=unproject([width,0],unprojectOps)),[bottomLeft,bottomRight,topRight,topLeft]}function unprojectOnFarPlane(viewport,x,targetZ){const{pixelUnprojectionMatrix:pixelUnprojectionMatrix}=viewport,coord0=transformVector(pixelUnprojectionMatrix,[x,0,1,1]),coord1=transformVector(pixelUnprojectionMatrix,[x,viewport.height,1,1]),t=(targetZ*viewport.distanceScales.unitsPerMeter[2]-coord0[2])/(coord1[2]-coord0[2]),result=worldToLngLat(vec2.t7([],coord0,coord1,t));return result.push(targetZ),result}class WebMercatorViewport{constructor(props={width:1,height:1}){(0,defineProperty.Z)(this,"latitude",void 0),(0,defineProperty.Z)(this,"longitude",void 0),(0,defineProperty.Z)(this,"zoom",void 0),(0,defineProperty.Z)(this,"pitch",void 0),(0,defineProperty.Z)(this,"bearing",void 0),(0,defineProperty.Z)(this,"altitude",void 0),(0,defineProperty.Z)(this,"fovy",void 0),(0,defineProperty.Z)(this,"meterOffset",void 0),(0,defineProperty.Z)(this,"center",void 0),(0,defineProperty.Z)(this,"width",void 0),(0,defineProperty.Z)(this,"height",void 0),(0,defineProperty.Z)(this,"scale",void 0),(0,defineProperty.Z)(this,"distanceScales",void 0),(0,defineProperty.Z)(this,"viewMatrix",void 0),(0,defineProperty.Z)(this,"projectionMatrix",void 0),(0,defineProperty.Z)(this,"viewProjectionMatrix",void 0),(0,defineProperty.Z)(this,"pixelProjectionMatrix",void 0),(0,defineProperty.Z)(this,"pixelUnprojectionMatrix",void 0),(0,defineProperty.Z)(this,"equals",(viewport=>viewport instanceof WebMercatorViewport&&(viewport.width===this.width&&viewport.height===this.height&&mat4.fS(viewport.projectionMatrix,this.projectionMatrix)&&mat4.fS(viewport.viewMatrix,this.viewMatrix)))),(0,defineProperty.Z)(this,"project",((lngLatZ,options={})=>{const{topLeft:topLeft=!0}=options,coord=worldToPixels(this.projectPosition(lngLatZ),this.pixelProjectionMatrix),[x,y]=coord,y2=topLeft?y:this.height-y;return 2===lngLatZ.length?[x,y2]:[x,y2,coord[2]]})),(0,defineProperty.Z)(this,"unproject",((xyz,options={})=>{const{topLeft:topLeft=!0,targetZ:targetZ}=options,[x,y,z]=xyz,y2=topLeft?y:this.height-y,targetZWorld=targetZ&&targetZ*this.distanceScales.unitsPerMeter[2],coord=pixelsToWorld([x,y2,z],this.pixelUnprojectionMatrix,targetZWorld),[X,Y,Z]=this.unprojectPosition(coord);return Number.isFinite(z)?[X,Y,Z]:Number.isFinite(targetZ)?[X,Y,targetZ]:[X,Y]})),(0,defineProperty.Z)(this,"projectPosition",(xyz=>{const[X,Y]=lngLatToWorld(xyz);return[X,Y,(xyz[2]||0)*this.distanceScales.unitsPerMeter[2]]})),(0,defineProperty.Z)(this,"unprojectPosition",(xyz=>{const[X,Y]=worldToLngLat(xyz);return[X,Y,(xyz[2]||0)*this.distanceScales.metersPerUnit[2]]}));let{width:width,height:height,altitude:altitude=null,fovy:fovy=null}=props;const{latitude:latitude=0,longitude:longitude=0,zoom:zoom=0,pitch:pitch=0,bearing:bearing=0,position:position=null,nearZMultiplier:nearZMultiplier=.02,farZMultiplier:farZMultiplier=1.01}=props;width=width||1,height=height||1,null===fovy&&null===altitude?(altitude=DEFAULT_ALTITUDE,fovy=altitudeToFovy(altitude)):null===fovy?fovy=altitudeToFovy(altitude):null===altitude&&(altitude=fovyToAltitude(fovy));const scale=zoomToScale(zoom);altitude=Math.max(.75,altitude);const distanceScales=getDistanceScales({longitude:longitude,latitude:latitude}),center=lngLatToWorld([longitude,latitude]);center.push(0),position&&vec3.IH(center,center,vec3.dC([],position,distanceScales.unitsPerMeter)),this.projectionMatrix=getProjectionMatrix({width:width,height:height,scale:scale,center:center,pitch:pitch,fovy:fovy,nearZMultiplier:nearZMultiplier,farZMultiplier:farZMultiplier}),this.viewMatrix=getViewMatrix({height:height,scale:scale,center:center,pitch:pitch,bearing:bearing,altitude:altitude}),this.width=width,this.height=height,this.scale=scale,this.latitude=latitude,this.longitude=longitude,this.zoom=zoom,this.pitch=pitch,this.bearing=bearing,this.altitude=altitude,this.fovy=fovy,this.center=center,this.meterOffset=position||[0,0,0],this.distanceScales=distanceScales,this._initMatrices(),Object.freeze(this)}_initMatrices(){const{width:width,height:height,projectionMatrix:projectionMatrix,viewMatrix:viewMatrix}=this,vpm=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];mat4.Jp(vpm,vpm,projectionMatrix),mat4.Jp(vpm,vpm,viewMatrix),this.viewProjectionMatrix=vpm;const m=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];mat4.bA(m,m,[width/2,-height/2,1]),mat4.Iu(m,m,[1,-1,0]),mat4.Jp(m,m,vpm);const mInverse=mat4.U_([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],m);if(!mInverse)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=m,this.pixelUnprojectionMatrix=mInverse}projectFlat(lngLat){return lngLatToWorld(lngLat)}unprojectFlat(xy){return worldToLngLat(xy)}getMapCenterByLngLatPosition({lngLat:lngLat,pos:pos}){const fromLocation=pixelsToWorld(pos,this.pixelUnprojectionMatrix),toLocation=lngLatToWorld(lngLat),translate=vec2.IH([],toLocation,vec2.tk([],fromLocation));return worldToLngLat(vec2.IH([],this.center,translate))}fitBounds(bounds,options={}){const{width:width,height:height}=this,{longitude:longitude,latitude:latitude,zoom:zoom}=fitBounds(Object.assign({width:width,height:height,bounds:bounds},options));return new WebMercatorViewport({width:width,height:height,longitude:longitude,latitude:latitude,zoom:zoom})}getBounds(options){const corners=this.getBoundingRegion(options),west=Math.min(...corners.map((p=>p[0]))),east=Math.max(...corners.map((p=>p[0])));return[[west,Math.min(...corners.map((p=>p[1])))],[east,Math.max(...corners.map((p=>p[1])))]]}getBoundingRegion(options={}){return getBounds(this,options.z||0)}getLocationAtPoint({lngLat:lngLat,pos:pos}){return this.getMapCenterByLngLatPosition({lngLat:lngLat,pos:pos})}}const normalize_viewport_props_TILE_SIZE=512;function normalizeViewportProps(props){const{width:width,height:height,pitch:pitch=0}=props;let{longitude:longitude,latitude:latitude,zoom:zoom,bearing:bearing=0}=props;(longitude<-180||longitude>180)&&(longitude=mod(longitude+180,360)-180),(bearing<-180||bearing>180)&&(bearing=mod(bearing+180,360)-180);const minZoom=log2(height/normalize_viewport_props_TILE_SIZE);if(zoom<=minZoom)zoom=minZoom,latitude=0;else{const halfHeightPixels=height/2/Math.pow(2,zoom),minLatitude=worldToLngLat([0,halfHeightPixels])[1];if(latitudemaxLatitude&&(latitude=maxLatitude)}}return{width:width,height:height,longitude:longitude,latitude:latitude,zoom:zoom,pitch:pitch,bearing:bearing}}const EPSILON=.01,VIEWPORT_TRANSITION_PROPS=["longitude","latitude","zoom"],DEFAULT_OPTS={curve:1.414,speed:1.2};function flyToViewport(startProps,endProps,t,options){const{startZoom:startZoom,startCenterXY:startCenterXY,uDelta:uDelta,w0:w0,u1:u1,S:S,rho:rho,rho2:rho2,r0:r0}=getFlyToTransitionParams(startProps,endProps,options);if(u1maxDuration?0:duration}function getFlyToTransitionParams(startProps,endProps,opts){const rho=(opts=Object.assign({},DEFAULT_OPTS,opts)).curve,startZoom=startProps.zoom,startCenter=[startProps.longitude,startProps.latitude],startScale=zoomToScale(startZoom),endZoom=endProps.zoom,endCenter=[endProps.longitude,endProps.latitude],scale=zoomToScale(endZoom-startZoom),startCenterXY=lngLatToWorld(startCenter),endCenterXY=lngLatToWorld(endCenter),uDelta=vec2.lu([],endCenterXY,startCenterXY),w0=Math.max(startProps.width,startProps.height),w1=w0/scale,u1=vec2.kE(uDelta)*startScale,_u1=Math.max(u1,EPSILON),rho2=rho*rho,b0=(w1*w1-w0*w0+rho2*rho2*_u1*_u1)/(2*w0*rho2*_u1),b1=(w1*w1-w0*w0-rho2*rho2*_u1*_u1)/(2*w1*rho2*_u1),r0=Math.log(Math.sqrt(b0*b0+1)-b0),r1=Math.log(Math.sqrt(b1*b1+1)-b1);return{startZoom:startZoom,startCenterXY:startCenterXY,uDelta:uDelta,w0:w0,u1:u1,S:(r1-r0)/rho,rho:rho,rho2:rho2,r0:r0,r1:r1}}},"./node_modules/@probe.gl/env/dist/esm/lib/get-browser.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return getBrowser}});var _is_browser__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js"),_is_electron__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-electron.js");const window=globalThis;function getBrowser(mockUserAgent){if(!mockUserAgent&&!(0,_is_browser__WEBPACK_IMPORTED_MODULE_0__.Z)())return"Node";if((0,_is_electron__WEBPACK_IMPORTED_MODULE_1__.Z)(mockUserAgent))return"Electron";const navigator_="undefined"!=typeof navigator?navigator:{},userAgent=mockUserAgent||navigator_.userAgent||"";if(userAgent.indexOf("Edge")>-1)return"Edge";const isMSIE=-1!==userAgent.indexOf("MSIE "),isTrident=-1!==userAgent.indexOf("Trident/");return isMSIE||isTrident?"IE":window.chrome?"Chrome":window.safari?"Safari":window.mozInnerScreenX?"Firefox":"Unknown"}},"./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return isBrowser}});var _is_electron__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-electron.js"),process=__webpack_require__("./node_modules/process/browser.js");function isBrowser(){return!("object"==typeof process&&"[object process]"===String(process)&&!process.browser)||(0,_is_electron__WEBPACK_IMPORTED_MODULE_0__.Z)()}},"./node_modules/@probe.gl/env/dist/esm/lib/is-electron.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return isElectron}});var process=__webpack_require__("./node_modules/process/browser.js");function isElectron(mockUserAgent){if("undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type)return!0;if(void 0!==process&&"object"==typeof process.versions&&Boolean(process.versions.electron))return!0;const realUserAgent="object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent,userAgent=mockUserAgent||realUserAgent;return!!(userAgent&&userAgent.indexOf("Electron")>=0)}},"./node_modules/@probe.gl/log/dist/esm/log.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Log}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),is_browser=__webpack_require__("./node_modules/@probe.gl/env/dist/esm/lib/is-browser.js");const VERSION="undefined"!=typeof __VERSION__?__VERSION__:"untranspiled source";(0,is_browser.Z)();class LocalStorage{constructor(id,defaultConfig){let type=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";(0,defineProperty.Z)(this,"storage",void 0),(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"config",void 0),this.storage=function getStorage(type){try{const storage=window[type],x="__storage_test__";return storage.setItem(x,x),storage.removeItem(x),storage}catch(e){return null}}(type),this.id=id,this.config=defaultConfig,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(configuration){if(Object.assign(this.config,configuration),this.storage){const serialized=JSON.stringify(this.config);this.storage.setItem(this.id,serialized)}}_loadConfiguration(){let configuration={};if(this.storage){const serializedConfiguration=this.storage.getItem(this.id);configuration=serializedConfiguration?JSON.parse(serializedConfiguration):{}}return Object.assign(this.config,configuration),this}}function formatImage(image,message,scale){let maxWidth=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600;const imageUrl=image.src.replace(/\(/g,"%28").replace(/\)/g,"%29");image.width>maxWidth&&(scale=Math.min(scale,maxWidth/image.width));const width=image.width*scale,height=image.height*scale,style=["font-size:1px;","padding:".concat(Math.floor(height/2),"px ").concat(Math.floor(width/2),"px;"),"line-height:".concat(height,"px;"),"background:url(".concat(imageUrl,");"),"background-size:".concat(width,"px ").concat(height,"px;"),"color:transparent;"].join("");return["".concat(message," %c+"),style]}let COLOR;function getColor(color){return"string"==typeof color?COLOR[color.toUpperCase()]||COLOR.WHITE:color}function assert(condition,message){if(!condition)throw new Error(message||"Assertion failed")}!function(COLOR){COLOR[COLOR.BLACK=30]="BLACK",COLOR[COLOR.RED=31]="RED",COLOR[COLOR.GREEN=32]="GREEN",COLOR[COLOR.YELLOW=33]="YELLOW",COLOR[COLOR.BLUE=34]="BLUE",COLOR[COLOR.MAGENTA=35]="MAGENTA",COLOR[COLOR.CYAN=36]="CYAN",COLOR[COLOR.WHITE=37]="WHITE",COLOR[COLOR.BRIGHT_BLACK=90]="BRIGHT_BLACK",COLOR[COLOR.BRIGHT_RED=91]="BRIGHT_RED",COLOR[COLOR.BRIGHT_GREEN=92]="BRIGHT_GREEN",COLOR[COLOR.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",COLOR[COLOR.BRIGHT_BLUE=94]="BRIGHT_BLUE",COLOR[COLOR.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",COLOR[COLOR.BRIGHT_CYAN=96]="BRIGHT_CYAN",COLOR[COLOR.BRIGHT_WHITE=97]="BRIGHT_WHITE"}(COLOR||(COLOR={}));var process=__webpack_require__("./node_modules/process/browser.js");const globals={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==__webpack_require__.g&&__webpack_require__.g,document:"undefined"!=typeof document&&document,process:"object"==typeof process&&process},window_=globals.window||globals.self||globals.global,process_=globals.process||{};function getHiResTimestamp(){let timestamp;var _window$performance,_window$performance$n;if(is_browser.Z&&"performance"in window_)timestamp=null==window_||null===(_window$performance=window_.performance)||void 0===_window$performance||null===(_window$performance$n=_window$performance.now)||void 0===_window$performance$n?void 0:_window$performance$n.call(_window$performance);else if("hrtime"in process_){var _process$hrtime;const timeParts=null==process_||null===(_process$hrtime=process_.hrtime)||void 0===_process$hrtime?void 0:_process$hrtime.call(process_);timestamp=1e3*timeParts[0]+timeParts[1]/1e6}else timestamp=Date.now();return timestamp}const originalConsole={debug:is_browser.Z&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},DEFAULT_SETTINGS={enabled:!0,level:0};function noop(){}const cache={},ONCE={once:!0};class Log{constructor(){let{id:id}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:""};(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"VERSION",VERSION),(0,defineProperty.Z)(this,"_startTs",getHiResTimestamp()),(0,defineProperty.Z)(this,"_deltaTs",getHiResTimestamp()),(0,defineProperty.Z)(this,"_storage",void 0),(0,defineProperty.Z)(this,"userData",{}),(0,defineProperty.Z)(this,"LOG_THROTTLE_TIMEOUT",0),this.id=id,this.userData={},this._storage=new LocalStorage("__probe-".concat(this.id,"__"),DEFAULT_SETTINGS),this.timeStamp("".concat(this.id," started")),function autobind(obj){let predefined=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"];const proto=Object.getPrototypeOf(obj),propNames=Object.getOwnPropertyNames(proto);for(const key of propNames)"function"==typeof obj[key]&&(predefined.find((name=>key===name))||(obj[key]=obj[key].bind(obj)))}(this),Object.seal(this)}set level(newLevel){this.setLevel(newLevel)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((getHiResTimestamp()-this._startTs).toPrecision(10))}getDelta(){return Number((getHiResTimestamp()-this._deltaTs).toPrecision(10))}set priority(newPriority){this.level=newPriority}get priority(){return this.level}getPriority(){return this.level}enable(){let enabled=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._storage.setConfiguration({enabled:enabled}),this}setLevel(level){return this._storage.setConfiguration({level:level}),this}get(setting){return this._storage.config[setting]}set(setting,value){this._storage.setConfiguration({[setting]:value})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(condition,message){assert(condition,message)}warn(message){return this._getLogFunction(0,message,originalConsole.warn,arguments,ONCE)}error(message){return this._getLogFunction(0,message,originalConsole.error,arguments)}deprecated(oldUsage,newUsage){return this.warn("`".concat(oldUsage,"` is deprecated and will be removed in a later version. Use `").concat(newUsage,"` instead"))}removed(oldUsage,newUsage){return this.error("`".concat(oldUsage,"` has been removed. Use `").concat(newUsage,"` instead"))}probe(logLevel,message){return this._getLogFunction(logLevel,message,originalConsole.log,arguments,{time:!0,once:!0})}log(logLevel,message){return this._getLogFunction(logLevel,message,originalConsole.debug,arguments)}info(logLevel,message){return this._getLogFunction(logLevel,message,console.info,arguments)}once(logLevel,message){for(var _len=arguments.length,args=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)args[_key-2]=arguments[_key];return this._getLogFunction(logLevel,message,originalConsole.debug||originalConsole.info,arguments,ONCE)}table(logLevel,table,columns){return table?this._getLogFunction(logLevel,table,console.table||noop,columns&&[columns],{tag:getTableHeader(table)}):noop}image(_ref){let{logLevel:logLevel,priority:priority,image:image,message:message="",scale:scale=1}=_ref;return this._shouldLog(logLevel||priority)?is_browser.Z?function logImageInBrowser(_ref3){let{image:image,message:message="",scale:scale=1}=_ref3;if("string"==typeof image){const img=new Image;return img.onload=()=>{const args=formatImage(img,message,scale);console.log(...args)},img.src=image,noop}const element=image.nodeName||"";if("img"===element.toLowerCase())return console.log(...formatImage(image,message,scale)),noop;if("canvas"===element.toLowerCase()){const img=new Image;return img.onload=()=>console.log(...formatImage(img,message,scale)),img.src=image.toDataURL(),noop}return noop}({image:image,message:message,scale:scale}):function logImageInNode(_ref2){let{image:image,message:message="",scale:scale=1}=_ref2;return console.warn("removed"),noop}({image:image,message:message,scale:scale}):noop}time(logLevel,message){return this._getLogFunction(logLevel,message,console.time?console.time:console.info)}timeEnd(logLevel,message){return this._getLogFunction(logLevel,message,console.timeEnd?console.timeEnd:console.info)}timeStamp(logLevel,message){return this._getLogFunction(logLevel,message,console.timeStamp||noop)}group(logLevel,message){let opts=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1};const options=normalizeArguments({logLevel:logLevel,message:message,opts:opts}),{collapsed:collapsed}=opts;return options.method=(collapsed?console.groupCollapsed:console.group)||console.info,this._getLogFunction(options)}groupCollapsed(logLevel,message){let opts=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(logLevel,message,Object.assign({},opts,{collapsed:!0}))}groupEnd(logLevel){return this._getLogFunction(logLevel,"",console.groupEnd||noop)}withGroup(logLevel,message,func){this.group(logLevel,message)();try{func()}finally{this.groupEnd(logLevel)()}}trace(){console.trace&&console.trace()}_shouldLog(logLevel){return this.isEnabled()&&this.getLevel()>=normalizeLogLevel(logLevel)}_getLogFunction(logLevel,message,method,args,opts){if(this._shouldLog(logLevel)){opts=normalizeArguments({logLevel:logLevel,message:message,args:args,opts:opts}),assert(method=method||opts.method),opts.total=this.getTotal(),opts.delta=this.getDelta(),this._deltaTs=getHiResTimestamp();const tag=opts.tag||opts.message;if(opts.once){if(cache[tag])return noop;cache[tag]=getHiResTimestamp()}return message=function decorateMessage(id,message,opts){if("string"==typeof message){const time=opts.time?function leftPad(string){let length=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;const padLength=Math.max(length-string.length,0);return"".concat(" ".repeat(padLength)).concat(string)}(function formatTime(ms){let formatted;return formatted=ms<10?"".concat(ms.toFixed(2),"ms"):ms<100?"".concat(ms.toFixed(1),"ms"):ms<1e3?"".concat(ms.toFixed(0),"ms"):"".concat((ms/1e3).toFixed(2),"s"),formatted}(opts.total)):"";message=function addColor(string,color,background){return is_browser.Z||"string"!=typeof string||(color&&(color=getColor(color),string="[".concat(color,"m").concat(string,"")),background&&(color=getColor(background),string="[".concat(background+10,"m").concat(string,""))),string}(message=opts.time?"".concat(id,": ").concat(time," ").concat(message):"".concat(id,": ").concat(message),opts.color,opts.background)}return message}(this.id,opts.message,opts),method.bind(console,message,...opts.args)}return noop}}function normalizeLogLevel(logLevel){if(!logLevel)return 0;let resolvedLevel;switch(typeof logLevel){case"number":resolvedLevel=logLevel;break;case"object":resolvedLevel=logLevel.logLevel||logLevel.priority||0;break;default:return 0}return assert(Number.isFinite(resolvedLevel)&&resolvedLevel>=0),resolvedLevel}function normalizeArguments(opts){const{logLevel:logLevel,message:message}=opts;opts.logLevel=normalizeLogLevel(logLevel);const args=opts.args?Array.from(opts.args):[];for(;args.length&&args.shift()!==message;);switch(typeof logLevel){case"string":case"function":void 0!==message&&args.unshift(message),opts.message=logLevel;break;case"object":Object.assign(opts,logLevel)}"function"==typeof opts.message&&(opts.message=opts.message());const messageType=typeof opts.message;return assert("string"===messageType||"object"===messageType),Object.assign(opts,{args:args},opts.opts)}function getTableHeader(table){for(const key in table)for(const title in table[key])return title||"untitled";return"empty"}(0,defineProperty.Z)(Log,"VERSION",VERSION)},"./node_modules/@probe.gl/stats/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{jk:function(){return Stats}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),process=__webpack_require__("./node_modules/process/browser.js");function getHiResTimestamp(){let timestamp;if("undefined"!=typeof window&&window.performance)timestamp=window.performance.now();else if(void 0!==process&&process.hrtime){const timeParts=process.hrtime();timestamp=1e3*timeParts[0]+timeParts[1]/1e6}else timestamp=Date.now();return timestamp}class Stat{constructor(name,type){(0,defineProperty.Z)(this,"name",void 0),(0,defineProperty.Z)(this,"type",void 0),(0,defineProperty.Z)(this,"sampleSize",1),(0,defineProperty.Z)(this,"time",void 0),(0,defineProperty.Z)(this,"count",void 0),(0,defineProperty.Z)(this,"samples",void 0),(0,defineProperty.Z)(this,"lastTiming",void 0),(0,defineProperty.Z)(this,"lastSampleTime",void 0),(0,defineProperty.Z)(this,"lastSampleCount",void 0),(0,defineProperty.Z)(this,"_count",0),(0,defineProperty.Z)(this,"_time",0),(0,defineProperty.Z)(this,"_samples",0),(0,defineProperty.Z)(this,"_startTime",0),(0,defineProperty.Z)(this,"_timerPending",!1),this.name=name,this.type=type,this.reset()}setSampleSize(samples){return this.sampleSize=samples,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(value){return this._count+=value,this._samples++,this._checkSampling(),this}subtractCount(value){return this._count-=value,this._samples++,this._checkSampling(),this}addTime(time){return this._time+=time,this.lastTiming=time,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=getHiResTimestamp(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(getHiResTimestamp()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}_checkSampling(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}class Stats{constructor(options){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"stats",{}),this.id=options.id,this.stats={},this._initializeStats(options.stats),Object.seal(this)}get(name){let type=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count";return this._getOrCreate({name:name,type:type})}get size(){return Object.keys(this.stats).length}reset(){for(const key in this.stats)this.stats[key].reset();return this}forEach(fn){for(const key in this.stats)fn(this.stats[key])}getTable(){const table={};return this.forEach((stat=>{table[stat.name]={time:stat.time||0,count:stat.count||0,average:stat.getAverageTime()||0,hz:stat.getHz()||0}})),table}_initializeStats(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((stat=>this._getOrCreate(stat)))}_getOrCreate(stat){if(!stat||!stat.name)return null;const{name:name,type:type}=stat;return this.stats[name]||(this.stats[name]=stat instanceof Stat?stat:new Stat(name,type)),this.stats[name]}}},"./node_modules/gl-matrix/esm/common.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ib:function(){return EPSILON},WT:function(){return ARRAY_TYPE}});var EPSILON=1e-6,ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array;Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var y=0,i=arguments.length;i--;)y+=arguments[i]*arguments[i];return Math.sqrt(y)})},"./node_modules/gl-matrix/esm/mat4.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G3:function(){return perspective},GH:function(){return determinant},Iu:function(){return translate},Jp:function(){return multiply},M5:function(){return ortho},Q$:function(){return getScaling},U1:function(){return rotate},U_:function(){return invert},bA:function(){return scale},en:function(){return fromQuat},fS:function(){return equals},jI:function(){return rotateZ},lM:function(){return rotateX},oy:function(){return frustum},p4:function(){return transpose},uD:function(){return rotateY},zB:function(){return lookAt}});var _common_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/gl-matrix/esm/common.js");function transpose(out,a){if(out===a){var a01=a[1],a02=a[2],a03=a[3],a12=a[6],a13=a[7],a23=a[11];out[1]=a[4],out[2]=a[8],out[3]=a[12],out[4]=a01,out[6]=a[9],out[7]=a[13],out[8]=a02,out[9]=a12,out[11]=a[14],out[12]=a03,out[13]=a13,out[14]=a23}else out[0]=a[0],out[1]=a[4],out[2]=a[8],out[3]=a[12],out[4]=a[1],out[5]=a[5],out[6]=a[9],out[7]=a[13],out[8]=a[2],out[9]=a[6],out[10]=a[10],out[11]=a[14],out[12]=a[3],out[13]=a[7],out[14]=a[11],out[15]=a[15];return out}function invert(out,a){var a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11],a30=a[12],a31=a[13],a32=a[14],a33=a[15],b00=a00*a11-a01*a10,b01=a00*a12-a02*a10,b02=a00*a13-a03*a10,b03=a01*a12-a02*a11,b04=a01*a13-a03*a11,b05=a02*a13-a03*a12,b06=a20*a31-a21*a30,b07=a20*a32-a22*a30,b08=a20*a33-a23*a30,b09=a21*a32-a22*a31,b10=a21*a33-a23*a31,b11=a22*a33-a23*a32,det=b00*b11-b01*b10+b02*b09+b03*b08-b04*b07+b05*b06;return det?(det=1/det,out[0]=(a11*b11-a12*b10+a13*b09)*det,out[1]=(a02*b10-a01*b11-a03*b09)*det,out[2]=(a31*b05-a32*b04+a33*b03)*det,out[3]=(a22*b04-a21*b05-a23*b03)*det,out[4]=(a12*b08-a10*b11-a13*b07)*det,out[5]=(a00*b11-a02*b08+a03*b07)*det,out[6]=(a32*b02-a30*b05-a33*b01)*det,out[7]=(a20*b05-a22*b02+a23*b01)*det,out[8]=(a10*b10-a11*b08+a13*b06)*det,out[9]=(a01*b08-a00*b10-a03*b06)*det,out[10]=(a30*b04-a31*b02+a33*b00)*det,out[11]=(a21*b02-a20*b04-a23*b00)*det,out[12]=(a11*b07-a10*b09-a12*b06)*det,out[13]=(a00*b09-a01*b07+a02*b06)*det,out[14]=(a31*b01-a30*b03-a32*b00)*det,out[15]=(a20*b03-a21*b01+a22*b00)*det,out):null}function determinant(a){var a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11],a30=a[12],a31=a[13],a32=a[14],a33=a[15];return(a00*a11-a01*a10)*(a22*a33-a23*a32)-(a00*a12-a02*a10)*(a21*a33-a23*a31)+(a00*a13-a03*a10)*(a21*a32-a22*a31)+(a01*a12-a02*a11)*(a20*a33-a23*a30)-(a01*a13-a03*a11)*(a20*a32-a22*a30)+(a02*a13-a03*a12)*(a20*a31-a21*a30)}function multiply(out,a,b){var a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11],a30=a[12],a31=a[13],a32=a[14],a33=a[15],b0=b[0],b1=b[1],b2=b[2],b3=b[3];return out[0]=b0*a00+b1*a10+b2*a20+b3*a30,out[1]=b0*a01+b1*a11+b2*a21+b3*a31,out[2]=b0*a02+b1*a12+b2*a22+b3*a32,out[3]=b0*a03+b1*a13+b2*a23+b3*a33,b0=b[4],b1=b[5],b2=b[6],b3=b[7],out[4]=b0*a00+b1*a10+b2*a20+b3*a30,out[5]=b0*a01+b1*a11+b2*a21+b3*a31,out[6]=b0*a02+b1*a12+b2*a22+b3*a32,out[7]=b0*a03+b1*a13+b2*a23+b3*a33,b0=b[8],b1=b[9],b2=b[10],b3=b[11],out[8]=b0*a00+b1*a10+b2*a20+b3*a30,out[9]=b0*a01+b1*a11+b2*a21+b3*a31,out[10]=b0*a02+b1*a12+b2*a22+b3*a32,out[11]=b0*a03+b1*a13+b2*a23+b3*a33,b0=b[12],b1=b[13],b2=b[14],b3=b[15],out[12]=b0*a00+b1*a10+b2*a20+b3*a30,out[13]=b0*a01+b1*a11+b2*a21+b3*a31,out[14]=b0*a02+b1*a12+b2*a22+b3*a32,out[15]=b0*a03+b1*a13+b2*a23+b3*a33,out}function translate(out,a,v){var a00,a01,a02,a03,a10,a11,a12,a13,a20,a21,a22,a23,x=v[0],y=v[1],z=v[2];return a===out?(out[12]=a[0]*x+a[4]*y+a[8]*z+a[12],out[13]=a[1]*x+a[5]*y+a[9]*z+a[13],out[14]=a[2]*x+a[6]*y+a[10]*z+a[14],out[15]=a[3]*x+a[7]*y+a[11]*z+a[15]):(a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11],out[0]=a00,out[1]=a01,out[2]=a02,out[3]=a03,out[4]=a10,out[5]=a11,out[6]=a12,out[7]=a13,out[8]=a20,out[9]=a21,out[10]=a22,out[11]=a23,out[12]=a00*x+a10*y+a20*z+a[12],out[13]=a01*x+a11*y+a21*z+a[13],out[14]=a02*x+a12*y+a22*z+a[14],out[15]=a03*x+a13*y+a23*z+a[15]),out}function scale(out,a,v){var x=v[0],y=v[1],z=v[2];return out[0]=a[0]*x,out[1]=a[1]*x,out[2]=a[2]*x,out[3]=a[3]*x,out[4]=a[4]*y,out[5]=a[5]*y,out[6]=a[6]*y,out[7]=a[7]*y,out[8]=a[8]*z,out[9]=a[9]*z,out[10]=a[10]*z,out[11]=a[11]*z,out[12]=a[12],out[13]=a[13],out[14]=a[14],out[15]=a[15],out}function rotate(out,a,rad,axis){var s,c,t,a00,a01,a02,a03,a10,a11,a12,a13,a20,a21,a22,a23,b00,b01,b02,b10,b11,b12,b20,b21,b22,x=axis[0],y=axis[1],z=axis[2],len=Math.hypot(x,y,z);return len<_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib?null:(x*=len=1/len,y*=len,z*=len,s=Math.sin(rad),t=1-(c=Math.cos(rad)),a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11],b00=x*x*t+c,b01=y*x*t+z*s,b02=z*x*t-y*s,b10=x*y*t-z*s,b11=y*y*t+c,b12=z*y*t+x*s,b20=x*z*t+y*s,b21=y*z*t-x*s,b22=z*z*t+c,out[0]=a00*b00+a10*b01+a20*b02,out[1]=a01*b00+a11*b01+a21*b02,out[2]=a02*b00+a12*b01+a22*b02,out[3]=a03*b00+a13*b01+a23*b02,out[4]=a00*b10+a10*b11+a20*b12,out[5]=a01*b10+a11*b11+a21*b12,out[6]=a02*b10+a12*b11+a22*b12,out[7]=a03*b10+a13*b11+a23*b12,out[8]=a00*b20+a10*b21+a20*b22,out[9]=a01*b20+a11*b21+a21*b22,out[10]=a02*b20+a12*b21+a22*b22,out[11]=a03*b20+a13*b21+a23*b22,a!==out&&(out[12]=a[12],out[13]=a[13],out[14]=a[14],out[15]=a[15]),out)}function rotateX(out,a,rad){var s=Math.sin(rad),c=Math.cos(rad),a10=a[4],a11=a[5],a12=a[6],a13=a[7],a20=a[8],a21=a[9],a22=a[10],a23=a[11];return a!==out&&(out[0]=a[0],out[1]=a[1],out[2]=a[2],out[3]=a[3],out[12]=a[12],out[13]=a[13],out[14]=a[14],out[15]=a[15]),out[4]=a10*c+a20*s,out[5]=a11*c+a21*s,out[6]=a12*c+a22*s,out[7]=a13*c+a23*s,out[8]=a20*c-a10*s,out[9]=a21*c-a11*s,out[10]=a22*c-a12*s,out[11]=a23*c-a13*s,out}function rotateY(out,a,rad){var s=Math.sin(rad),c=Math.cos(rad),a00=a[0],a01=a[1],a02=a[2],a03=a[3],a20=a[8],a21=a[9],a22=a[10],a23=a[11];return a!==out&&(out[4]=a[4],out[5]=a[5],out[6]=a[6],out[7]=a[7],out[12]=a[12],out[13]=a[13],out[14]=a[14],out[15]=a[15]),out[0]=a00*c-a20*s,out[1]=a01*c-a21*s,out[2]=a02*c-a22*s,out[3]=a03*c-a23*s,out[8]=a00*s+a20*c,out[9]=a01*s+a21*c,out[10]=a02*s+a22*c,out[11]=a03*s+a23*c,out}function rotateZ(out,a,rad){var s=Math.sin(rad),c=Math.cos(rad),a00=a[0],a01=a[1],a02=a[2],a03=a[3],a10=a[4],a11=a[5],a12=a[6],a13=a[7];return a!==out&&(out[8]=a[8],out[9]=a[9],out[10]=a[10],out[11]=a[11],out[12]=a[12],out[13]=a[13],out[14]=a[14],out[15]=a[15]),out[0]=a00*c+a10*s,out[1]=a01*c+a11*s,out[2]=a02*c+a12*s,out[3]=a03*c+a13*s,out[4]=a10*c-a00*s,out[5]=a11*c-a01*s,out[6]=a12*c-a02*s,out[7]=a13*c-a03*s,out}function getScaling(out,mat){var m11=mat[0],m12=mat[1],m13=mat[2],m21=mat[4],m22=mat[5],m23=mat[6],m31=mat[8],m32=mat[9],m33=mat[10];return out[0]=Math.hypot(m11,m12,m13),out[1]=Math.hypot(m21,m22,m23),out[2]=Math.hypot(m31,m32,m33),out}function fromQuat(out,q){var x=q[0],y=q[1],z=q[2],w=q[3],x2=x+x,y2=y+y,z2=z+z,xx=x*x2,yx=y*x2,yy=y*y2,zx=z*x2,zy=z*y2,zz=z*z2,wx=w*x2,wy=w*y2,wz=w*z2;return out[0]=1-yy-zz,out[1]=yx+wz,out[2]=zx-wy,out[3]=0,out[4]=yx-wz,out[5]=1-xx-zz,out[6]=zy+wx,out[7]=0,out[8]=zx+wy,out[9]=zy-wx,out[10]=1-xx-yy,out[11]=0,out[12]=0,out[13]=0,out[14]=0,out[15]=1,out}function frustum(out,left,right,bottom,top,near,far){var rl=1/(right-left),tb=1/(top-bottom),nf=1/(near-far);return out[0]=2*near*rl,out[1]=0,out[2]=0,out[3]=0,out[4]=0,out[5]=2*near*tb,out[6]=0,out[7]=0,out[8]=(right+left)*rl,out[9]=(top+bottom)*tb,out[10]=(far+near)*nf,out[11]=-1,out[12]=0,out[13]=0,out[14]=far*near*2*nf,out[15]=0,out}var perspective=function perspectiveNO(out,fovy,aspect,near,far){var nf,f=1/Math.tan(fovy/2);return out[0]=f/aspect,out[1]=0,out[2]=0,out[3]=0,out[4]=0,out[5]=f,out[6]=0,out[7]=0,out[8]=0,out[9]=0,out[11]=-1,out[12]=0,out[13]=0,out[15]=0,null!=far&&far!==1/0?(nf=1/(near-far),out[10]=(far+near)*nf,out[14]=2*far*near*nf):(out[10]=-1,out[14]=-2*near),out};var ortho=function orthoNO(out,left,right,bottom,top,near,far){var lr=1/(left-right),bt=1/(bottom-top),nf=1/(near-far);return out[0]=-2*lr,out[1]=0,out[2]=0,out[3]=0,out[4]=0,out[5]=-2*bt,out[6]=0,out[7]=0,out[8]=0,out[9]=0,out[10]=2*nf,out[11]=0,out[12]=(left+right)*lr,out[13]=(top+bottom)*bt,out[14]=(far+near)*nf,out[15]=1,out};function lookAt(out,eye,center,up){var x0,x1,x2,y0,y1,y2,z0,z1,z2,len,eyex=eye[0],eyey=eye[1],eyez=eye[2],upx=up[0],upy=up[1],upz=up[2],centerx=center[0],centery=center[1],centerz=center[2];return Math.abs(eyex-centerx)<_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib&&Math.abs(eyey-centery)<_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib&&Math.abs(eyez-centerz)<_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib?function identity(out){return out[0]=1,out[1]=0,out[2]=0,out[3]=0,out[4]=0,out[5]=1,out[6]=0,out[7]=0,out[8]=0,out[9]=0,out[10]=1,out[11]=0,out[12]=0,out[13]=0,out[14]=0,out[15]=1,out}(out):(z0=eyex-centerx,z1=eyey-centery,z2=eyez-centerz,x0=upy*(z2*=len=1/Math.hypot(z0,z1,z2))-upz*(z1*=len),x1=upz*(z0*=len)-upx*z2,x2=upx*z1-upy*z0,(len=Math.hypot(x0,x1,x2))?(x0*=len=1/len,x1*=len,x2*=len):(x0=0,x1=0,x2=0),y0=z1*x2-z2*x1,y1=z2*x0-z0*x2,y2=z0*x1-z1*x0,(len=Math.hypot(y0,y1,y2))?(y0*=len=1/len,y1*=len,y2*=len):(y0=0,y1=0,y2=0),out[0]=x0,out[1]=y0,out[2]=z0,out[3]=0,out[4]=x1,out[5]=y1,out[6]=z1,out[7]=0,out[8]=x2,out[9]=y2,out[10]=z2,out[11]=0,out[12]=-(x0*eyex+x1*eyey+x2*eyez),out[13]=-(y0*eyex+y1*eyey+y2*eyez),out[14]=-(z0*eyex+z1*eyey+z2*eyez),out[15]=1,out)}function equals(a,b){var a0=a[0],a1=a[1],a2=a[2],a3=a[3],a4=a[4],a5=a[5],a6=a[6],a7=a[7],a8=a[8],a9=a[9],a10=a[10],a11=a[11],a12=a[12],a13=a[13],a14=a[14],a15=a[15],b0=b[0],b1=b[1],b2=b[2],b3=b[3],b4=b[4],b5=b[5],b6=b[6],b7=b[7],b8=b[8],b9=b[9],b10=b[10],b11=b[11],b12=b[12],b13=b[13],b14=b[14],b15=b[15];return Math.abs(a0-b0)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a0),Math.abs(b0))&&Math.abs(a1-b1)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a1),Math.abs(b1))&&Math.abs(a2-b2)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a2),Math.abs(b2))&&Math.abs(a3-b3)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a3),Math.abs(b3))&&Math.abs(a4-b4)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a4),Math.abs(b4))&&Math.abs(a5-b5)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a5),Math.abs(b5))&&Math.abs(a6-b6)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a6),Math.abs(b6))&&Math.abs(a7-b7)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a7),Math.abs(b7))&&Math.abs(a8-b8)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a8),Math.abs(b8))&&Math.abs(a9-b9)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a9),Math.abs(b9))&&Math.abs(a10-b10)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a10),Math.abs(b10))&&Math.abs(a11-b11)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a11),Math.abs(b11))&&Math.abs(a12-b12)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a12),Math.abs(b12))&&Math.abs(a13-b13)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a13),Math.abs(b13))&&Math.abs(a14-b14)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a14),Math.abs(b14))&&Math.abs(a15-b15)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a15),Math.abs(b15))}},"./node_modules/gl-matrix/esm/vec2.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{IH:function(){return add},bA:function(){return scale},c:function(){return transformMat2},fF:function(){return transformMat4},iu:function(){return transformMat2d},kE:function(){return length},kK:function(){return transformMat3},lu:function(){return sub},t7:function(){return lerp},tk:function(){return negate}});var _common_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/gl-matrix/esm/common.js");function add(out,a,b){return out[0]=a[0]+b[0],out[1]=a[1]+b[1],out}function scale(out,a,b){return out[0]=a[0]*b,out[1]=a[1]*b,out}function length(a){var x=a[0],y=a[1];return Math.hypot(x,y)}function negate(out,a){return out[0]=-a[0],out[1]=-a[1],out}function lerp(out,a,b,t){var ax=a[0],ay=a[1];return out[0]=ax+t*(b[0]-ax),out[1]=ay+t*(b[1]-ay),out}function transformMat2(out,a,m){var x=a[0],y=a[1];return out[0]=m[0]*x+m[2]*y,out[1]=m[1]*x+m[3]*y,out}function transformMat2d(out,a,m){var x=a[0],y=a[1];return out[0]=m[0]*x+m[2]*y+m[4],out[1]=m[1]*x+m[3]*y+m[5],out}function transformMat3(out,a,m){var x=a[0],y=a[1];return out[0]=m[0]*x+m[3]*y+m[6],out[1]=m[1]*x+m[4]*y+m[7],out}function transformMat4(out,a,m){var x=a[0],y=a[1];return out[0]=m[0]*x+m[4]*y+m[12],out[1]=m[1]*x+m[5]*y+m[13],out}var vec,sub=function subtract(out,a,b){return out[0]=a[0]-b[0],out[1]=a[1]-b[1],out};vec=function create(){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(2);return _common_js__WEBPACK_IMPORTED_MODULE_0__.WT!=Float32Array&&(out[0]=0,out[1]=0),out}()},"./node_modules/gl-matrix/esm/vec3.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AK:function(){return dot},EU:function(){return angle},Fv:function(){return normalize},IH:function(){return add},TK:function(){return dist},Ue:function(){return create},VC:function(){return transformQuat},Zh:function(){return len},al:function(){return fromValues},dC:function(){return mul},fF:function(){return transformMat4},jI:function(){return rotateZ},kC:function(){return cross},kE:function(){return length},kK:function(){return transformMat3},lM:function(){return rotateX},lu:function(){return sub},t7:function(){return lerp},tk:function(){return negate},uD:function(){return rotateY},x9:function(){return sqrLen}});var _common_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/gl-matrix/esm/common.js");function create(){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(3);return _common_js__WEBPACK_IMPORTED_MODULE_0__.WT!=Float32Array&&(out[0]=0,out[1]=0,out[2]=0),out}function length(a){var x=a[0],y=a[1],z=a[2];return Math.hypot(x,y,z)}function fromValues(x,y,z){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(3);return out[0]=x,out[1]=y,out[2]=z,out}function add(out,a,b){return out[0]=a[0]+b[0],out[1]=a[1]+b[1],out[2]=a[2]+b[2],out}function negate(out,a){return out[0]=-a[0],out[1]=-a[1],out[2]=-a[2],out}function normalize(out,a){var x=a[0],y=a[1],z=a[2],len=x*x+y*y+z*z;return len>0&&(len=1/Math.sqrt(len)),out[0]=a[0]*len,out[1]=a[1]*len,out[2]=a[2]*len,out}function dot(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]}function cross(out,a,b){var ax=a[0],ay=a[1],az=a[2],bx=b[0],by=b[1],bz=b[2];return out[0]=ay*bz-az*by,out[1]=az*bx-ax*bz,out[2]=ax*by-ay*bx,out}function lerp(out,a,b,t){var ax=a[0],ay=a[1],az=a[2];return out[0]=ax+t*(b[0]-ax),out[1]=ay+t*(b[1]-ay),out[2]=az+t*(b[2]-az),out}function transformMat4(out,a,m){var x=a[0],y=a[1],z=a[2],w=m[3]*x+m[7]*y+m[11]*z+m[15];return w=w||1,out[0]=(m[0]*x+m[4]*y+m[8]*z+m[12])/w,out[1]=(m[1]*x+m[5]*y+m[9]*z+m[13])/w,out[2]=(m[2]*x+m[6]*y+m[10]*z+m[14])/w,out}function transformMat3(out,a,m){var x=a[0],y=a[1],z=a[2];return out[0]=x*m[0]+y*m[3]+z*m[6],out[1]=x*m[1]+y*m[4]+z*m[7],out[2]=x*m[2]+y*m[5]+z*m[8],out}function transformQuat(out,a,q){var qx=q[0],qy=q[1],qz=q[2],qw=q[3],x=a[0],y=a[1],z=a[2],uvx=qy*z-qz*y,uvy=qz*x-qx*z,uvz=qx*y-qy*x,uuvx=qy*uvz-qz*uvy,uuvy=qz*uvx-qx*uvz,uuvz=qx*uvy-qy*uvx,w2=2*qw;return uvx*=w2,uvy*=w2,uvz*=w2,uuvx*=2,uuvy*=2,uuvz*=2,out[0]=x+uvx+uuvx,out[1]=y+uvy+uuvy,out[2]=z+uvz+uuvz,out}function rotateX(out,a,b,rad){var p=[],r=[];return p[0]=a[0]-b[0],p[1]=a[1]-b[1],p[2]=a[2]-b[2],r[0]=p[0],r[1]=p[1]*Math.cos(rad)-p[2]*Math.sin(rad),r[2]=p[1]*Math.sin(rad)+p[2]*Math.cos(rad),out[0]=r[0]+b[0],out[1]=r[1]+b[1],out[2]=r[2]+b[2],out}function rotateY(out,a,b,rad){var p=[],r=[];return p[0]=a[0]-b[0],p[1]=a[1]-b[1],p[2]=a[2]-b[2],r[0]=p[2]*Math.sin(rad)+p[0]*Math.cos(rad),r[1]=p[1],r[2]=p[2]*Math.cos(rad)-p[0]*Math.sin(rad),out[0]=r[0]+b[0],out[1]=r[1]+b[1],out[2]=r[2]+b[2],out}function rotateZ(out,a,b,rad){var p=[],r=[];return p[0]=a[0]-b[0],p[1]=a[1]-b[1],p[2]=a[2]-b[2],r[0]=p[0]*Math.cos(rad)-p[1]*Math.sin(rad),r[1]=p[0]*Math.sin(rad)+p[1]*Math.cos(rad),r[2]=p[2],out[0]=r[0]+b[0],out[1]=r[1]+b[1],out[2]=r[2]+b[2],out}function angle(a,b){var ax=a[0],ay=a[1],az=a[2],bx=b[0],by=b[1],bz=b[2],mag=Math.sqrt(ax*ax+ay*ay+az*az)*Math.sqrt(bx*bx+by*by+bz*bz),cosine=mag&&dot(a,b)/mag;return Math.acos(Math.min(Math.max(cosine,-1),1))}var vec,sub=function subtract(out,a,b){return out[0]=a[0]-b[0],out[1]=a[1]-b[1],out[2]=a[2]-b[2],out},mul=function multiply(out,a,b){return out[0]=a[0]*b[0],out[1]=a[1]*b[1],out[2]=a[2]*b[2],out},dist=function distance(a,b){var x=b[0]-a[0],y=b[1]-a[1],z=b[2]-a[2];return Math.hypot(x,y,z)},len=length,sqrLen=function squaredLength(a){var x=a[0],y=a[1],z=a[2];return x*x+y*y+z*z};vec=create()},"./node_modules/gl-matrix/esm/vec4.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AK:function(){return dot},Fv:function(){return normalize},I6:function(){return exactEquals},IH:function(){return add},JG:function(){return copy},VC:function(){return transformQuat},al:function(){return fromValues},bA:function(){return scale},d9:function(){return clone},fF:function(){return transformMat4},fS:function(){return equals},kE:function(){return length},t7:function(){return lerp},t8:function(){return set},we:function(){return squaredLength}});var _common_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/gl-matrix/esm/common.js");function clone(a){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(4);return out[0]=a[0],out[1]=a[1],out[2]=a[2],out[3]=a[3],out}function fromValues(x,y,z,w){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(4);return out[0]=x,out[1]=y,out[2]=z,out[3]=w,out}function copy(out,a){return out[0]=a[0],out[1]=a[1],out[2]=a[2],out[3]=a[3],out}function set(out,x,y,z,w){return out[0]=x,out[1]=y,out[2]=z,out[3]=w,out}function add(out,a,b){return out[0]=a[0]+b[0],out[1]=a[1]+b[1],out[2]=a[2]+b[2],out[3]=a[3]+b[3],out}function scale(out,a,b){return out[0]=a[0]*b,out[1]=a[1]*b,out[2]=a[2]*b,out[3]=a[3]*b,out}function length(a){var x=a[0],y=a[1],z=a[2],w=a[3];return Math.hypot(x,y,z,w)}function squaredLength(a){var x=a[0],y=a[1],z=a[2],w=a[3];return x*x+y*y+z*z+w*w}function normalize(out,a){var x=a[0],y=a[1],z=a[2],w=a[3],len=x*x+y*y+z*z+w*w;return len>0&&(len=1/Math.sqrt(len)),out[0]=x*len,out[1]=y*len,out[2]=z*len,out[3]=w*len,out}function dot(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3]}function lerp(out,a,b,t){var ax=a[0],ay=a[1],az=a[2],aw=a[3];return out[0]=ax+t*(b[0]-ax),out[1]=ay+t*(b[1]-ay),out[2]=az+t*(b[2]-az),out[3]=aw+t*(b[3]-aw),out}function transformMat4(out,a,m){var x=a[0],y=a[1],z=a[2],w=a[3];return out[0]=m[0]*x+m[4]*y+m[8]*z+m[12]*w,out[1]=m[1]*x+m[5]*y+m[9]*z+m[13]*w,out[2]=m[2]*x+m[6]*y+m[10]*z+m[14]*w,out[3]=m[3]*x+m[7]*y+m[11]*z+m[15]*w,out}function transformQuat(out,a,q){var x=a[0],y=a[1],z=a[2],qx=q[0],qy=q[1],qz=q[2],qw=q[3],ix=qw*x+qy*z-qz*y,iy=qw*y+qz*x-qx*z,iz=qw*z+qx*y-qy*x,iw=-qx*x-qy*y-qz*z;return out[0]=ix*qw+iw*-qx+iy*-qz-iz*-qy,out[1]=iy*qw+iw*-qy+iz*-qx-ix*-qz,out[2]=iz*qw+iw*-qz+ix*-qy-iy*-qx,out[3]=a[3],out}function exactEquals(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]}function equals(a,b){var a0=a[0],a1=a[1],a2=a[2],a3=a[3],b0=b[0],b1=b[1],b2=b[2],b3=b[3];return Math.abs(a0-b0)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a0),Math.abs(b0))&&Math.abs(a1-b1)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a1),Math.abs(b1))&&Math.abs(a2-b2)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a2),Math.abs(b2))&&Math.abs(a3-b3)<=_common_js__WEBPACK_IMPORTED_MODULE_0__.Ib*Math.max(1,Math.abs(a3),Math.abs(b3))}var vec;vec=function create(){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(4);return _common_js__WEBPACK_IMPORTED_MODULE_0__.WT!=Float32Array&&(out[0]=0,out[1]=0,out[2]=0,out[3]=0),out}()},"./node_modules/hammerjs/hammer.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(window,document,exportName,undefined){"use strict";var assign,VENDOR_PREFIXES=["","webkit","Moz","MS","ms","o"],TEST_ELEMENT=document.createElement("div"),TYPE_FUNCTION="function",round=Math.round,abs=Math.abs,now=Date.now;function setTimeoutContext(fn,timeout,context){return setTimeout(bindFn(fn,context),timeout)}function invokeArrayArg(arg,fn,context){return!!Array.isArray(arg)&&(each(arg,context[fn],context),!0)}function each(obj,iterator,context){var i;if(obj)if(obj.forEach)obj.forEach(iterator,context);else if(obj.length!==undefined)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",log=window.console&&(window.console.warn||window.console.log);return log&&log.call(window.console,deprecationMessage,stack),method.apply(this,arguments)}}assign="function"!=typeof Object.assign?function assign(target){if(target===undefined||null===target)throw new TypeError("Cannot convert undefined or null to object");for(var output=Object(target),index=1;index-1}function splitStr(str){return str.trim().split(/\s+/g)}function inArray(src,find,findByKey){if(src.indexOf&&!findByKey)return src.indexOf(find);for(var i=0;ib[key]})):results.sort()),results}function prefixed(obj,property){for(var prefix,prop,camelProp=property[0].toUpperCase()+property.slice(1),i=0;i1&&!session.firstMultiple?session.firstMultiple=simpleCloneInputData(input):1===pointersLength&&(session.firstMultiple=!1);var firstInput=session.firstInput,firstMultiple=session.firstMultiple,offsetCenter=firstMultiple?firstMultiple.center:firstInput.center,center=input.center=getCenter(pointers);input.timeStamp=now(),input.deltaTime=input.timeStamp-firstInput.timeStamp,input.angle=getAngle(offsetCenter,center),input.distance=getDistance(offsetCenter,center),function computeDeltaXY(session,input){var center=input.center,offset=session.offsetDelta||{},prevDelta=session.prevDelta||{},prevInput=session.prevInput||{};input.eventType!==INPUT_START&&prevInput.eventType!==INPUT_END||(prevDelta=session.prevDelta={x:prevInput.deltaX||0,y:prevInput.deltaY||0},offset=session.offsetDelta={x:center.x,y:center.y});input.deltaX=prevDelta.x+(center.x-offset.x),input.deltaY=prevDelta.y+(center.y-offset.y)}(session,input),input.offsetDirection=getDirection(input.deltaX,input.deltaY);var overallVelocity=getVelocity(input.deltaTime,input.deltaX,input.deltaY);input.overallVelocityX=overallVelocity.x,input.overallVelocityY=overallVelocity.y,input.overallVelocity=abs(overallVelocity.x)>abs(overallVelocity.y)?overallVelocity.x:overallVelocity.y,input.scale=firstMultiple?function getScale(start,end){return getDistance(end[0],end[1],PROPS_CLIENT_XY)/getDistance(start[0],start[1],PROPS_CLIENT_XY)}(firstMultiple.pointers,pointers):1,input.rotation=firstMultiple?function getRotation(start,end){return getAngle(end[1],end[0],PROPS_CLIENT_XY)+getAngle(start[1],start[0],PROPS_CLIENT_XY)}(firstMultiple.pointers,pointers):0,input.maxPointers=session.prevInput?input.pointers.length>session.prevInput.maxPointers?input.pointers.length:session.prevInput.maxPointers:input.pointers.length,function computeIntervalInputData(session,input){var velocity,velocityX,velocityY,direction,last=session.lastInterval||input,deltaTime=input.timeStamp-last.timeStamp;if(input.eventType!=INPUT_CANCEL&&(deltaTime>COMPUTE_INTERVAL||last.velocity===undefined)){var deltaX=input.deltaX-last.deltaX,deltaY=input.deltaY-last.deltaY,v=getVelocity(deltaTime,deltaX,deltaY);velocityX=v.x,velocityY=v.y,velocity=abs(v.x)>abs(v.y)?v.x:v.y,direction=getDirection(deltaX,deltaY),session.lastInterval=input}else velocity=last.velocity,velocityX=last.velocityX,velocityY=last.velocityY,direction=last.direction;input.velocity=velocity,input.velocityX=velocityX,input.velocityY=velocityY,input.direction=direction}(session,input);var target=manager.element;hasParent(input.srcEvent.target,target)&&(target=input.srcEvent.target);input.target=target}(manager,input),manager.emit("hammer.input",input),manager.recognize(input),manager.session.prevInput=input}function simpleCloneInputData(input){for(var pointers=[],i=0;i=abs(y)?x<0?DIRECTION_LEFT:DIRECTION_RIGHT:y<0?DIRECTION_UP:DIRECTION_DOWN}function getDistance(p1,p2,props){props||(props=PROPS_XY);var x=p2[props[0]]-p1[props[0]],y=p2[props[1]]-p1[props[1]];return Math.sqrt(x*x+y*y)}function getAngle(p1,p2,props){props||(props=PROPS_XY);var x=p2[props[0]]-p1[props[0]],y=p2[props[1]]-p1[props[1]];return 180*Math.atan2(y,x)/Math.PI}Input.prototype={handler:function(){},init:function(){this.evEl&&addEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&addEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&addEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&removeEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&removeEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&removeEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)}};var MOUSE_INPUT_MAP={mousedown:INPUT_START,mousemove:2,mouseup:INPUT_END},MOUSE_ELEMENT_EVENTS="mousedown",MOUSE_WINDOW_EVENTS="mousemove mouseup";function MouseInput(){this.evEl=MOUSE_ELEMENT_EVENTS,this.evWin=MOUSE_WINDOW_EVENTS,this.pressed=!1,Input.apply(this,arguments)}inherit(MouseInput,Input,{handler:function MEhandler(ev){var eventType=MOUSE_INPUT_MAP[ev.type];eventType&INPUT_START&&0===ev.button&&(this.pressed=!0),2&eventType&&1!==ev.which&&(eventType=INPUT_END),this.pressed&&(eventType&INPUT_END&&(this.pressed=!1),this.callback(this.manager,eventType,{pointers:[ev],changedPointers:[ev],pointerType:"mouse",srcEvent:ev}))}});var POINTER_INPUT_MAP={pointerdown:INPUT_START,pointermove:2,pointerup:INPUT_END,pointercancel:INPUT_CANCEL,pointerout:INPUT_CANCEL},IE10_POINTER_TYPE_ENUM={2:"touch",3:"pen",4:"mouse",5:"kinect"},POINTER_ELEMENT_EVENTS="pointerdown",POINTER_WINDOW_EVENTS="pointermove pointerup pointercancel";function PointerEventInput(){this.evEl=POINTER_ELEMENT_EVENTS,this.evWin=POINTER_WINDOW_EVENTS,Input.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}window.MSPointerEvent&&!window.PointerEvent&&(POINTER_ELEMENT_EVENTS="MSPointerDown",POINTER_WINDOW_EVENTS="MSPointerMove MSPointerUp MSPointerCancel"),inherit(PointerEventInput,Input,{handler:function PEhandler(ev){var store=this.store,removePointer=!1,eventTypeNormalized=ev.type.toLowerCase().replace("ms",""),eventType=POINTER_INPUT_MAP[eventTypeNormalized],pointerType=IE10_POINTER_TYPE_ENUM[ev.pointerType]||ev.pointerType,isTouch="touch"==pointerType,storeIndex=inArray(store,ev.pointerId,"pointerId");eventType&INPUT_START&&(0===ev.button||isTouch)?storeIndex<0&&(store.push(ev),storeIndex=store.length-1):eventType&(INPUT_END|INPUT_CANCEL)&&(removePointer=!0),storeIndex<0||(store[storeIndex]=ev,this.callback(this.manager,eventType,{pointers:store,changedPointers:[ev],pointerType:pointerType,srcEvent:ev}),removePointer&&store.splice(storeIndex,1))}});var SINGLE_TOUCH_INPUT_MAP={touchstart:INPUT_START,touchmove:2,touchend:INPUT_END,touchcancel:INPUT_CANCEL};function SingleTouchInput(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Input.apply(this,arguments)}function normalizeSingleTouches(ev,type){var all=toArray(ev.touches),changed=toArray(ev.changedTouches);return type&(INPUT_END|INPUT_CANCEL)&&(all=uniqueArray(all.concat(changed),"identifier",!0)),[all,changed]}inherit(SingleTouchInput,Input,{handler:function TEhandler(ev){var type=SINGLE_TOUCH_INPUT_MAP[ev.type];if(type===INPUT_START&&(this.started=!0),this.started){var touches=normalizeSingleTouches.call(this,ev,type);type&(INPUT_END|INPUT_CANCEL)&&touches[0].length-touches[1].length==0&&(this.started=!1),this.callback(this.manager,type,{pointers:touches[0],changedPointers:touches[1],pointerType:"touch",srcEvent:ev})}}});var TOUCH_INPUT_MAP={touchstart:INPUT_START,touchmove:2,touchend:INPUT_END,touchcancel:INPUT_CANCEL},TOUCH_TARGET_EVENTS="touchstart touchmove touchend touchcancel";function TouchInput(){this.evTarget=TOUCH_TARGET_EVENTS,this.targetIds={},Input.apply(this,arguments)}function getTouches(ev,type){var allTouches=toArray(ev.touches),targetIds=this.targetIds;if(type&(2|INPUT_START)&&1===allTouches.length)return targetIds[allTouches[0].identifier]=!0,[allTouches,allTouches];var i,targetTouches,changedTouches=toArray(ev.changedTouches),changedTargetTouches=[],target=this.target;if(targetTouches=allTouches.filter((function(touch){return hasParent(touch.target,target)})),type===INPUT_START)for(i=0;i-1&<s.splice(i,1)}),DEDUP_TIMEOUT)}}function isSyntheticEvent(eventData){for(var x=eventData.srcEvent.clientX,y=eventData.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(index,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(otherRecognizer){return!!this.simultaneous[otherRecognizer.id]},emit:function(input){var self=this,state=this.state;function emit(event){self.manager.emit(event,input)}state<8&&emit(self.options.event+stateStr(state)),emit(self.options.event),input.additionalEvent&&emit(input.additionalEvent),state>=8&&emit(self.options.event+stateStr(state))},tryEmit:function(input){if(this.canEmit())return this.emit(input);this.state=32},canEmit:function(){for(var i=0;ioptions.threshold&&direction&options.direction},attrTest:function(input){return AttrRecognizer.prototype.attrTest.call(this,input)&&(2&this.state||!(2&this.state)&&this.directionTest(input))},emit:function(input){this.pX=input.deltaX,this.pY=input.deltaY;var direction=directionStr(input.direction);direction&&(input.additionalEvent=this.options.event+direction),this._super.emit.call(this,input)}}),inherit(PinchRecognizer,AttrRecognizer,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.scale-1)>this.options.threshold||2&this.state)},emit:function(input){if(1!==input.scale){var inOut=input.scale<1?"in":"out";input.additionalEvent=this.options.event+inOut}this._super.emit.call(this,input)}}),inherit(PressRecognizer,Recognizer,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(input){var options=this.options,validPointers=input.pointers.length===options.pointers,validMovement=input.distanceoptions.time;if(this._input=input,!validMovement||!validPointers||input.eventType&(INPUT_END|INPUT_CANCEL)&&!validTime)this.reset();else if(input.eventType&INPUT_START)this.reset(),this._timer=setTimeoutContext((function(){this.state=8,this.tryEmit()}),options.time,this);else if(input.eventType&INPUT_END)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(input){8===this.state&&(input&&input.eventType&INPUT_END?this.manager.emit(this.options.event+"up",input):(this._input.timeStamp=now(),this.manager.emit(this.options.event,this._input)))}}),inherit(RotateRecognizer,AttrRecognizer,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.rotation)>this.options.threshold||2&this.state)}}),inherit(SwipeRecognizer,AttrRecognizer,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:DIRECTION_HORIZONTAL|DIRECTION_VERTICAL,pointers:1},getTouchAction:function(){return PanRecognizer.prototype.getTouchAction.call(this)},attrTest:function(input){var velocity,direction=this.options.direction;return direction&(DIRECTION_HORIZONTAL|DIRECTION_VERTICAL)?velocity=input.overallVelocity:direction&DIRECTION_HORIZONTAL?velocity=input.overallVelocityX:direction&DIRECTION_VERTICAL&&(velocity=input.overallVelocityY),this._super.attrTest.call(this,input)&&direction&input.offsetDirection&&input.distance>this.options.threshold&&input.maxPointers==this.options.pointers&&abs(velocity)>this.options.velocity&&input.eventType&INPUT_END},emit:function(input){var direction=directionStr(input.offsetDirection);direction&&this.manager.emit(this.options.event+direction,input),this.manager.emit(this.options.event,input)}}),inherit(TapRecognizer,Recognizer,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(input){var options=this.options,validPointers=input.pointers.length===options.pointers,validMovement=input.distanceaccu?cur:accu}function minReducer(accu,cur){return cur(context.index=pt.index,accessor(pt.source,context))}(accessor,context),op){case AGGREGATION_OPERATION.MIN:return pts=>function getMin(pts,accessor){if(Number.isFinite(accessor))return pts.length?accessor:null;const filtered=pts.map(accessor).filter(Number.isFinite);return filtered.length?filtered.reduce(minReducer,1/0):null}(pts,accessor);case AGGREGATION_OPERATION.SUM:return pts=>function getSum(pts,accessor){if(Number.isFinite(accessor))return pts.length?pts.length*accessor:null;const filtered=pts.map(accessor).filter(Number.isFinite);return filtered.length?filtered.reduce(sumReducer,0):null}(pts,accessor);case AGGREGATION_OPERATION.MEAN:return pts=>function getMean(pts,accessor){if(Number.isFinite(accessor))return pts.length?accessor:null;const filtered=pts.map(accessor).filter(Number.isFinite);return filtered.length?filtered.reduce(sumReducer,0)/filtered.length:null}(pts,accessor);case AGGREGATION_OPERATION.MAX:return pts=>function getMax(pts,accessor){if(Number.isFinite(accessor))return pts.length?accessor:null;const filtered=pts.map(accessor).filter(Number.isFinite);return filtered.length?filtered.reduce(maxReducer,-1/0):null}(pts,accessor);default:return null}}function wrapGetValueFunc(getValue,context={}){return pts=>(context.indices=pts.map((pt=>pt.index)),getValue(pts.map((pt=>pt.source)),context))}const DEFAULT_RUN_PARAMS={projectPoints:!1,viewport:null,createBufferObjects:!0,moduleSettings:{}},MAX_32_BIT_FLOAT=3402823466e29,MIN_BLEND_EQUATION=[32775,32774],MAX_BLEND_EQUATION=[32776,32774],MAX_MIN_BLEND_EQUATION=[32776,32775],EQUATION_MAP={[AGGREGATION_OPERATION.SUM]:32774,[AGGREGATION_OPERATION.MEAN]:32774,[AGGREGATION_OPERATION.MIN]:MIN_BLEND_EQUATION,[AGGREGATION_OPERATION.MAX]:MAX_BLEND_EQUATION},DEFAULT_WEIGHT_PARAMS={size:1,operation:AGGREGATION_OPERATION.SUM,needMin:!1,needMax:!1,combineMaxMin:!1};var aggregate_to_grid_vs_glsl="#define SHADER_NAME gpu-aggregation-to-grid-vs\n\nattribute vec3 positions;\nattribute vec3 positions64Low;\nattribute vec3 weights;\nuniform vec2 cellSize;\nuniform vec2 gridSize;\nuniform bool projectPoints;\nuniform vec2 translation;\nuniform vec3 scaling;\n\nvarying vec3 vWeights;\n\nvec2 project_to_pixel(vec4 pos) {\n vec4 result;\n pos.xy = pos.xy/pos.w;\n result = pos + vec4(translation, 0., 0.);\n result.xy = scaling.z > 0. ? result.xy * scaling.xy : result.xy;\n return result.xy;\n}\n\nvoid main(void) {\n\n vWeights = weights;\n\n vec4 windowPos = vec4(positions, 1.);\n if (projectPoints) {\n windowPos = project_position_to_clipspace(positions, positions64Low, vec3(0));\n }\n\n vec2 pos = project_to_pixel(windowPos);\n\n vec2 pixelXY64[2];\n pixelXY64[0] = vec2(pos.x, 0.);\n pixelXY64[1] = vec2(pos.y, 0.);\n vec2 gridXY64[2];\n gridXY64[0] = div_fp64(pixelXY64[0], vec2(cellSize.x, 0));\n gridXY64[1] = div_fp64(pixelXY64[1], vec2(cellSize.y, 0));\n float x = floor(gridXY64[0].x);\n float y = floor(gridXY64[1].x);\n pos = vec2(x, y);\n pos = (pos * (2., 2.) / (gridSize)) - (1., 1.);\n vec2 offset = 1.0 / gridSize;\n pos = pos + offset;\n\n gl_Position = vec4(pos, 0.0, 1.0);\n gl_PointSize = 1.0;\n}\n",aggregate_to_grid_fs_glsl="#define SHADER_NAME gpu-aggregation-to-grid-fs\n\nprecision highp float;\n\nvarying vec3 vWeights;\n\nvoid main(void) {\n gl_FragColor = vec4(vWeights, 1.0);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",aggregate_all_vs_glsl="#version 300 es\n#define SHADER_NAME gpu-aggregation-all-vs-64\n\nin vec2 position;\nuniform ivec2 gridSize;\nout vec2 vTextureCoord;\n\nvoid main(void) {\n vec2 pos = vec2(-1.0, -1.0);\n vec2 offset = 1.0 / vec2(gridSize);\n pos = pos + offset;\n\n gl_Position = vec4(pos, 0.0, 1.0);\n\n int yIndex = gl_InstanceID / gridSize[0];\n int xIndex = gl_InstanceID - (yIndex * gridSize[0]);\n\n vec2 yIndexFP64 = vec2(float(yIndex), 0.);\n vec2 xIndexFP64 = vec2(float(xIndex), 0.);\n vec2 gridSizeYFP64 = vec2(gridSize[1], 0.);\n vec2 gridSizeXFP64 = vec2(gridSize[0], 0.);\n\n vec2 texCoordXFP64 = div_fp64(yIndexFP64, gridSizeYFP64);\n vec2 texCoordYFP64 = div_fp64(xIndexFP64, gridSizeXFP64);\n\n vTextureCoord = vec2(texCoordYFP64.x, texCoordXFP64.x);\n gl_PointSize = 1.0;\n}\n",aggregate_all_fs_glsl="#version 300 es\n#define SHADER_NAME gpu-aggregation-all-fs\n\nprecision highp float;\n\nin vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform bool combineMaxMin;\nout vec4 fragColor;\nvoid main(void) {\n vec4 textureColor = texture(uSampler, vec2(vTextureCoord.s, vTextureCoord.t));\n if (textureColor.a == 0.) {\n discard;\n }\n fragColor.rgb = textureColor.rgb;\n fragColor.a = combineMaxMin ? textureColor.r : textureColor.a;\n}\n",transform_mean_vs_glsl="#define SHADER_NAME gpu-aggregation-transform-mean-vs\nattribute vec4 aggregationValues;\nvarying vec4 meanValues;\n\nvoid main()\n{\n bool isCellValid = bool(aggregationValues.w > 0.);\n meanValues.xyz = isCellValid ? aggregationValues.xyz/aggregationValues.w : vec3(0, 0, 0);\n meanValues.w = aggregationValues.w;\n gl_PointSize = 1.0;\n}\n",texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js");const DEFAULT_PARAMETERS={10240:9728,10241:9728};function getFloatTexture(gl,opts={}){const{width:width=1,height:height=1,data:data=null,unpackFlipY:unpackFlipY=!0,parameters:parameters=DEFAULT_PARAMETERS}=opts;return new texture_2d.Z(gl,{data:data,format:(0,esm.D0)(gl)?34836:6408,type:5126,border:0,mipmaps:!1,parameters:parameters,dataFormat:6408,width:width,height:height,unpackFlipY:unpackFlipY})}function getFramebuffer(gl,opts){const{id:id,width:width=1,height:height=1,texture:texture}=opts;return new framebuffer.Z(gl,{id:id,width:width,height:height,attachments:{36064:texture}})}const BUFFER_NAMES=["aggregationBuffer","maxMinBuffer","minBuffer","maxBuffer"],ARRAY_BUFFER_MAP={maxData:"maxBuffer",minData:"minBuffer",maxMinData:"maxMinBuffer"},REQUIRED_FEATURES=[webgl_features_table.h.WEBGL2,webgl_features_table.h.COLOR_ATTACHMENT_RGBA32F,webgl_features_table.h.BLEND_EQUATION_MINMAX,webgl_features_table.h.FLOAT_BLEND,webgl_features_table.h.TEXTURE_FLOAT];class GPUGridAggregator{static getAggregationData({aggregationData:aggregationData,maxData:maxData,minData:minData,maxMinData:maxMinData,pixelIndex:pixelIndex}){const index=4*pixelIndex,results={};return aggregationData&&(results.cellCount=aggregationData[index+3],results.cellWeight=aggregationData[index]),maxMinData?(results.maxCellWieght=maxMinData[0],results.minCellWeight=maxMinData[3]):(maxData&&(results.maxCellWieght=maxData[0],results.totalCount=maxData[3]),minData&&(results.minCellWeight=minData[0],results.totalCount=maxData[3])),results}static getCellData({countsData:countsData,size:size=1}){const numCells=countsData.length/4,cellWeights=new Float32Array(numCells*size),cellCounts=new Uint32Array(numCells);for(let i=0;i{for(const name in obj)obj[name].delete()}))}([framebuffers,textures,maxMinFramebuffers,minFramebuffers,maxFramebuffers,meanTextures,resources])}run(opts={}){this.setState({results:{}});const aggregationParams=this._normalizeAggregationParams(opts);return this._hasGPUSupport||log.Z.log(1,"GPUGridAggregator: not supported")(),this._runAggregation(aggregationParams)}getData(weightId){const data={},results=this.state.results;results[weightId].aggregationData||(results[weightId].aggregationData=results[weightId].aggregationBuffer.getData()),data.aggregationData=results[weightId].aggregationData;for(const arrayName in ARRAY_BUFFER_MAP){const bufferName=ARRAY_BUFFER_MAP[arrayName];(results[weightId][arrayName]||results[weightId][bufferName])&&(results[weightId][arrayName]=results[weightId][arrayName]||results[weightId][bufferName].getData(),data[arrayName]=results[weightId][arrayName])}return data}updateShaders(shaderOptions={}){this.setState({shaderOptions:shaderOptions,modelDirty:!0})}_normalizeAggregationParams(opts){const aggregationParams={...DEFAULT_RUN_PARAMS,...opts},{weights:weights}=aggregationParams;return weights&&(aggregationParams.weights=function normalizeWeightParams(weights){const result={};for(const id in weights)result[id]={...DEFAULT_WEIGHT_PARAMS,...weights[id]};return result}(weights)),aggregationParams}setState(updateObject){Object.assign(this.state,updateObject)}_getAggregateData(opts){const results={},{textures:textures,framebuffers:framebuffers,maxMinFramebuffers:maxMinFramebuffers,minFramebuffers:minFramebuffers,maxFramebuffers:maxFramebuffers,resources:resources}=this.state,{weights:weights}=opts;for(const id in weights){results[id]={};const{needMin:needMin,needMax:needMax,combineMaxMin:combineMaxMin}=weights[id];results[id].aggregationTexture=textures[id],results[id].aggregationBuffer=(0,copy_and_blit.Jb)(framebuffers[id],{target:weights[id].aggregationBuffer,sourceType:5126}),needMin&&needMax&&combineMaxMin?(results[id].maxMinBuffer=(0,copy_and_blit.Jb)(maxMinFramebuffers[id],{target:weights[id].maxMinBuffer,sourceType:5126}),results[id].maxMinTexture=resources["".concat(id,"-maxMinTexture")]):(needMin&&(results[id].minBuffer=(0,copy_and_blit.Jb)(minFramebuffers[id],{target:weights[id].minBuffer,sourceType:5126}),results[id].minTexture=resources["".concat(id,"-minTexture")]),needMax&&(results[id].maxBuffer=(0,copy_and_blit.Jb)(maxFramebuffers[id],{target:weights[id].maxBuffer,sourceType:5126}),results[id].maxTexture=resources["".concat(id,"-maxTexture")]))}return this._trackGPUResultBuffers(results,weights),results}_renderAggregateData(opts){const{cellSize:cellSize,projectPoints:projectPoints,attributes:attributes,moduleSettings:moduleSettings,numCol:numCol,numRow:numRow,weights:weights,translation:translation,scaling:scaling}=opts,{maxMinFramebuffers:maxMinFramebuffers,minFramebuffers:minFramebuffers,maxFramebuffers:maxFramebuffers}=this.state,gridSize=[numCol,numRow],parameters={blend:!0,depthTest:!1,blendFunc:[1,1]},uniforms={cellSize:cellSize,gridSize:gridSize,projectPoints:projectPoints,translation:translation,scaling:scaling};for(const id in weights){const{needMin:needMin,needMax:needMax}=weights[id],combineMaxMin=needMin&&needMax&&weights[id].combineMaxMin;this._renderToWeightsTexture({id:id,parameters:parameters,moduleSettings:moduleSettings,uniforms:uniforms,gridSize:gridSize,attributes:attributes,weights:weights}),combineMaxMin?this._renderToMaxMinTexture({id:id,parameters:{...parameters,blendEquation:MAX_MIN_BLEND_EQUATION},gridSize:gridSize,minOrMaxFb:maxMinFramebuffers[id],clearParams:{clearColor:[0,0,0,MAX_32_BIT_FLOAT]},combineMaxMin:combineMaxMin}):(needMin&&this._renderToMaxMinTexture({id:id,parameters:{...parameters,blendEquation:MIN_BLEND_EQUATION},gridSize:gridSize,minOrMaxFb:minFramebuffers[id],clearParams:{clearColor:[MAX_32_BIT_FLOAT,MAX_32_BIT_FLOAT,MAX_32_BIT_FLOAT,0]},combineMaxMin:combineMaxMin}),needMax&&this._renderToMaxMinTexture({id:id,parameters:{...parameters,blendEquation:MAX_BLEND_EQUATION},gridSize:gridSize,minOrMaxFb:maxFramebuffers[id],clearParams:{clearColor:[0,0,0,0]},combineMaxMin:combineMaxMin}))}}_renderToMaxMinTexture(opts){const{id:id,parameters:parameters,gridSize:gridSize,minOrMaxFb:minOrMaxFb,combineMaxMin:combineMaxMin,clearParams:clearParams={}}=opts,{framebuffers:framebuffers}=this.state,{gl:gl,allAggregationModel:allAggregationModel}=this;(0,esm.s8)(gl,{...clearParams,framebuffer:minOrMaxFb,viewport:[0,0,gridSize[0],gridSize[1]]},(()=>{gl.clear(16384),allAggregationModel.draw({parameters:parameters,uniforms:{uSampler:framebuffers[id].texture,gridSize:gridSize,combineMaxMin:combineMaxMin}})}))}_renderToWeightsTexture(opts){const{id:id,parameters:parameters,moduleSettings:moduleSettings,uniforms:uniforms,gridSize:gridSize,weights:weights}=opts,{framebuffers:framebuffers,equations:equations,weightAttributes:weightAttributes}=this.state,{gl:gl,gridAggregationModel:gridAggregationModel}=this,{operation:operation}=weights[id],clearColor=operation===AGGREGATION_OPERATION.MIN?[MAX_32_BIT_FLOAT,MAX_32_BIT_FLOAT,MAX_32_BIT_FLOAT,0]:[0,0,0,0];if((0,esm.s8)(gl,{framebuffer:framebuffers[id],viewport:[0,0,gridSize[0],gridSize[1]],clearColor:clearColor},(()=>{gl.clear(16384);const attributes={weights:weightAttributes[id]};gridAggregationModel.draw({parameters:{...parameters,blendEquation:equations[id]},moduleSettings:moduleSettings,uniforms:uniforms,attributes:attributes})})),operation===AGGREGATION_OPERATION.MEAN){const{meanTextures:meanTextures,textures:textures}=this.state,transformOptions={_sourceTextures:{aggregationValues:meanTextures[id]},_targetTexture:textures[id],elementCount:textures[id].width*textures[id].height};this.meanTransform?this.meanTransform.update(transformOptions):this.meanTransform=function getMeanTransform(gl,opts){return new transform.Z(gl,{vs:transform_mean_vs_glsl,_targetTextureVarying:"meanValues",...opts})}(gl,transformOptions),this.meanTransform.run({parameters:{blend:!1,depthTest:!1}}),framebuffers[id].attach({36064:textures[id]})}}_runAggregation(opts){this._updateModels(opts),this._setupFramebuffers(opts),this._renderAggregateData(opts);const results=this._getAggregateData(opts);return this.setState({results:results}),results}_setupFramebuffers(opts){const{textures:textures,framebuffers:framebuffers,maxMinFramebuffers:maxMinFramebuffers,minFramebuffers:minFramebuffers,maxFramebuffers:maxFramebuffers,meanTextures:meanTextures,equations:equations}=this.state,{weights:weights}=opts,{numCol:numCol,numRow:numRow}=opts,framebufferSize={width:numCol,height:numRow};for(const id in weights){const{needMin:needMin,needMax:needMax,combineMaxMin:combineMaxMin,operation:operation}=weights[id];textures[id]=weights[id].aggregationTexture||textures[id]||getFloatTexture(this.gl,{id:"".concat(id,"-texture"),width:numCol,height:numRow}),textures[id].resize(framebufferSize);let texture=textures[id];operation===AGGREGATION_OPERATION.MEAN&&(meanTextures[id]=meanTextures[id]||getFloatTexture(this.gl,{id:"".concat(id,"-mean-texture"),width:numCol,height:numRow}),meanTextures[id].resize(framebufferSize),texture=meanTextures[id]),framebuffers[id]?framebuffers[id].attach({36064:texture}):framebuffers[id]=getFramebuffer(this.gl,{id:"".concat(id,"-fb"),width:numCol,height:numRow,texture:texture}),framebuffers[id].resize(framebufferSize),equations[id]=EQUATION_MAP[operation]||EQUATION_MAP.SUM,(needMin||needMax)&&(needMin&&needMax&&combineMaxMin?maxMinFramebuffers[id]||(texture=weights[id].maxMinTexture||this._getMinMaxTexture("".concat(id,"-maxMinTexture")),maxMinFramebuffers[id]=getFramebuffer(this.gl,{id:"".concat(id,"-maxMinFb"),texture:texture})):(needMin&&(minFramebuffers[id]||(texture=weights[id].minTexture||this._getMinMaxTexture("".concat(id,"-minTexture")),minFramebuffers[id]=getFramebuffer(this.gl,{id:"".concat(id,"-minFb"),texture:texture}))),needMax&&(maxFramebuffers[id]||(texture=weights[id].maxTexture||this._getMinMaxTexture("".concat(id,"-maxTexture")),maxFramebuffers[id]=getFramebuffer(this.gl,{id:"".concat(id,"-maxFb"),texture:texture})))))}}_getMinMaxTexture(name){const{resources:resources}=this.state;return resources[name]||(resources[name]=getFloatTexture(this.gl,{id:"resourceName"})),resources[name]}_setupModels({numCol:numCol=0,numRow:numRow=0}={}){var _this$gridAggregation;const{gl:gl}=this,{shaderOptions:shaderOptions}=this.state;if(null===(_this$gridAggregation=this.gridAggregationModel)||void 0===_this$gridAggregation||_this$gridAggregation.delete(),this.gridAggregationModel=function getAggregationModel(gl,shaderOptions){const shaders=(0,shader.l)({vs:aggregate_to_grid_vs_glsl,fs:aggregate_to_grid_fs_glsl,modules:[fp64.n2,project32.Z]},shaderOptions);return new model.Z(gl,{id:"Gird-Aggregation-Model",vertexCount:1,drawMode:0,...shaders})}(gl,shaderOptions),!this.allAggregationModel){const instanceCount=numCol*numRow;this.allAggregationModel=function getAllAggregationModel(gl,instanceCount){return new model.Z(gl,{id:"All-Aggregation-Model",vs:aggregate_all_vs_glsl,fs:aggregate_all_fs_glsl,modules:[fp64.n2],vertexCount:1,drawMode:0,isInstanced:!0,instanceCount:instanceCount,attributes:{position:[0,0]}})}(gl,instanceCount)}}_setupWeightAttributes(opts){const{weightAttributes:weightAttributes}=this.state,{weights:weights}=opts;for(const id in weights)weightAttributes[id]=opts.attributes[id]}_trackGPUResultBuffers(results,weights){const{resources:resources}=this.state;for(const id in results)if(results[id])for(const bufferName of BUFFER_NAMES)if(results[id][bufferName]&&weights[id][bufferName]!==results[id][bufferName]){const name="gpu-result-".concat(id,"-").concat(bufferName);resources[name]&&resources[name].delete(),resources[name]=results[id][bufferName]}}_updateModels(opts){const{vertexCount:vertexCount,attributes:attributes,numCol:numCol,numRow:numRow}=opts,{modelDirty:modelDirty}=this.state;modelDirty&&(this._setupModels(opts),this.setState({modelDirty:!1})),this._setupWeightAttributes(opts),this.gridAggregationModel.setVertexCount(vertexCount),this.gridAggregationModel.setAttributes(attributes),this.allAggregationModel.setInstanceCount(numCol*numRow)}}var geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js");const defaultColorRange=[[255,255,178],[254,217,118],[254,178,76],[253,141,60],[240,59,32],[189,0,38]];function colorRangeToFlatArray(colorRange,normalize=!1,ArrayType=Float32Array){let flatArray;if(Number.isFinite(colorRange[0]))flatArray=new ArrayType(colorRange);else{flatArray=new ArrayType(4*colorRange.length);let index=0;for(let i=0;i= domain.x && value <= domain.y) {\n float domainRange = domain.y - domain.x;\n if (domainRange <= 0.) {\n outColor = colorRange[0];\n } else {\n float rangeCount = float(RANGE_COUNT);\n float rangeStep = domainRange / rangeCount;\n float idx = floor((value - domain.x) / rangeStep);\n idx = clamp(idx, 0., rangeCount - 1.);\n int intIdx = int(idx);\n outColor = colorRange[intIdx];\n }\n }\n outColor = outColor / 255.;\n return outColor;\n}\n\nvoid main(void) {\n vSampleCount = instanceCounts.a;\n\n float weight = instanceCounts.r;\n float maxWeight = texture2D(maxTexture, vec2(0.5)).r;\n\n float step = weight / maxWeight;\n vec4 minMaxColor = mix(minColor, maxColor, step) / 255.;\n\n vec2 domain = colorDomain;\n float domainMaxValid = float(colorDomain.y != 0.);\n domain.y = mix(maxWeight, colorDomain.y, domainMaxValid);\n vec4 rangeColor = quantizeScale(domain, colorRange, weight);\n\n float rangeMinMax = float(shouldUseMinMax);\n vec4 color = mix(rangeColor, minMaxColor, rangeMinMax);\n vColor = vec4(color.rgb, color.a * opacity);\n picking_setPickingColor(instancePickingColors);\n\n gl_Position = vec4(instancePositions + positions * cellScale, 1.);\n}\n",fs:"#define SHADER_NAME screen-grid-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying float vSampleCount;\n\nvoid main(void) {\n if (vSampleCount <= 0.0) {\n discard;\n }\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[picking.Z]}}initializeState(){const{gl:gl}=this.context;this.getAttributeManager().addInstanced({instancePositions:{size:3,update:this.calculateInstancePositions},instanceCounts:{size:4,noAlloc:!0}}),this.setState({model:this._getModel(gl)})}shouldUpdateState({changeFlags:changeFlags}){return changeFlags.somethingChanged}updateState(params){super.updateState(params);const{oldProps:oldProps,props:props,changeFlags:changeFlags}=params,attributeManager=this.getAttributeManager();props.numInstances!==oldProps.numInstances?attributeManager.invalidateAll():oldProps.cellSizePixels!==props.cellSizePixels&&attributeManager.invalidate("instancePositions"),this._updateUniforms(oldProps,props,changeFlags)}draw({uniforms:uniforms}){const{parameters:parameters,maxTexture:maxTexture}=this.props,minColor=this.props.minColor||DEFAULT_MINCOLOR,maxColor=this.props.maxColor||DEFAULT_MAXCOLOR,colorDomain=this.props.colorDomain||[1,0],{model:model}=this.state;model.setUniforms(uniforms).setUniforms({minColor:minColor,maxColor:maxColor,maxTexture:maxTexture,colorDomain:colorDomain}).draw({parameters:{depthTest:!1,depthMask:!1,...parameters}})}calculateInstancePositions(attribute,{numInstances:numInstances}){const{width:width,height:height}=this.context.viewport,{cellSizePixels:cellSizePixels}=this.props,numCol=Math.ceil(width/cellSizePixels),{value:value,size:size}=attribute;for(let i=0;ioldProps[key]!==props[key]))&&model.setUniforms({shouldUseMinMax:this._shouldUseMinMax()}),oldProps.colorRange!==props.colorRange&&model.setUniforms({colorRange:colorRangeToFlatArray(props.colorRange)}),oldProps.cellMarginPixels!==props.cellMarginPixels||oldProps.cellSizePixels!==props.cellSizePixels||changeFlags.viewportChanged){const{width:width,height:height}=this.context.viewport,{cellSizePixels:cellSizePixels,cellMarginPixels:cellMarginPixels}=this.props,margin=cellSizePixels>cellMarginPixels?cellMarginPixels:0,cellScale=new Float32Array([(cellSizePixels-margin)/width*2,-(cellSizePixels-margin)/height*2,1]);model.setUniforms({cellScale:cellScale})}}}(0,defineProperty.Z)(ScreenGridCellLayer,"layerName","ScreenGridCellLayer"),(0,defineProperty.Z)(ScreenGridCellLayer,"defaultProps",defaultProps);var composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),lifecycle_props=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/props.js"),attribute_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/attribute/attribute-manager.js");function filterProps(props,filterKeys){const filteredProps={};for(const key in props)filterKeys.includes(key)||(filteredProps[key]=props[key]);return filteredProps}class AggregationLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeAggregationLayer(dimensions){super.initializeState(this.context),this.setState({ignoreProps:filterProps(this.constructor._propTypes,dimensions.data.props),dimensions:dimensions})}updateState(opts){super.updateState(opts);const{changeFlags:changeFlags}=opts;if(changeFlags.extensionsChanged){const shaders=this.getShaders({});shaders&&shaders.defines&&(shaders.defines.NON_INSTANCED_MODEL=1),this.updateShaders(shaders)}this._updateAttributes()}updateAttributes(changedAttributes){this.setState({changedAttributes:changedAttributes})}getAttributes(){return this.getAttributeManager().getShaderAttributes()}getModuleSettings(){const{viewport:viewport,mousePosition:mousePosition,gl:gl}=this.context;return Object.assign(Object.create(this.props),{viewport:viewport,mousePosition:mousePosition,pickingActive:0,devicePixelRatio:(0,esm.w)(gl)})}updateShaders(shaders){}isAggregationDirty(updateOpts,params={}){const{props:props,oldProps:oldProps,changeFlags:changeFlags}=updateOpts,{compareAll:compareAll=!1,dimension:dimension}=params,{ignoreProps:ignoreProps}=this.state,{props:dataProps,accessors:accessors=[]}=dimension,{updateTriggersChanged:updateTriggersChanged}=changeFlags;if(changeFlags.dataChanged)return!0;if(updateTriggersChanged){if(updateTriggersChanged.all)return!0;for(const accessor of accessors)if(updateTriggersChanged[accessor])return!0}if(compareAll)return!!changeFlags.extensionsChanged||(0,lifecycle_props.tg)({oldProps:oldProps,newProps:props,ignoreProps:ignoreProps,propTypes:this.constructor._propTypes});for(const name of dataProps)if(props[name]!==oldProps[name])return!0;return!1}isAttributeChanged(name){const{changedAttributes:changedAttributes}=this.state;return name?changedAttributes&&void 0!==changedAttributes[name]:!function isObjectEmpty(obj){let isEmpty=!0;for(const key in obj){isEmpty=!1;break}return isEmpty}(changedAttributes)}_getAttributeManager(){return new attribute_manager.Z(this.context.gl,{id:this.props.id,stats:this.context.stats})}}(0,defineProperty.Z)(AggregationLayer,"layerName","AggregationLayer");var buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js");function getScale(domain,range,scaleFunction){const scale=scaleFunction;return scale.domain=()=>domain,scale.range=()=>range,scale}function getQuantizeScale(domain,range){return getScale(domain,range,(value=>function quantizeScale(domain,range,value){const domainRange=domain[1]-domain[0];if(domainRange<=0)return log.Z.warn("quantizeScale: invalid domain, returning range[0]")(),range[0];const step=domainRange/range.length,idx=Math.floor((value-domain[0])/step),clampIdx=Math.max(Math.min(idx,range.length-1),0);return range[clampIdx]}(domain,range,value)))}function getLinearScale(domain,range){return getScale(domain,range,(value=>function linearScale(domain,range,value){return(value-domain[0])/(domain[1]-domain[0])*(range[1]-range[0])+range[0]}(domain,range,value)))}function getQuantileScale(domain,range){const sortedDomain=domain.sort(ascending);let i=0;const n=Math.max(1,range.length),thresholds=new Array(n-1);for(;++ifunction thresholdsScale(thresholds,range,value){return range[function bisectRight(a,x){let lo=0,hi=a.length;for(;lo>>1;ascending(a[mid],x)>0?hi=mid:lo=mid+1}return lo}(thresholds,value)]}(thresholds,range,value);return scaleFunction.thresholds=()=>thresholds,getScale(domain,range,scaleFunction)}function ascending(a,b){return a-b}function threshold(domain,fraction){const domainLength=domain.length;if(fraction<=0||domainLength<2)return domain[0];if(fraction>=1)return domain[domainLength-1];const domainFraction=(domainLength-1)*fraction,lowIndex=Math.floor(domainFraction),low=domain[lowIndex];return low+(domain[lowIndex+1]-low)*(domainFraction-lowIndex)}function getOrdinalScale(domain,range){const domainMap=new Map,uniqueDomain=[];for(const d of domain){const key="".concat(d);domainMap.has(key)||domainMap.set(key,uniqueDomain.push(d))}return getScale(domain,range,(value=>function ordinalScale(domain,domainMap,range,value){const key="".concat(value);let d=domainMap.get(key);return void 0===d&&(d=domain.push(value),domainMap.set(key,d)),range[(d-1)%range.length]}(uniqueDomain,domainMap,range,value)))}function notNullOrUndefined(d){return null!=d}function getTruthyValues(data,valueAccessor){return("function"==typeof valueAccessor?data.map(valueAccessor):data).filter(notNullOrUndefined)}function getQuantileDomain(data,valueAccessor){return getTruthyValues(data,valueAccessor)}function getOrdinalDomain(data,valueAccessor){return function unique(values){const results=[];return values.forEach((v=>{!results.includes(v)&¬NullOrUndefined(v)&&results.push(v)})),results}(getTruthyValues(data,valueAccessor))}const defaultGetValue=points=>points.length,defaultGetPoints=bin=>bin.points,defaultGetIndex=bin=>bin.index,bin_sorter_ascending=(a,b)=>ab?1:a>=b?0:NaN,bin_sorter_defaultProps={getValue:defaultGetValue,getPoints:defaultGetPoints,getIndex:defaultGetIndex,filterData:null};class BinSorter{constructor(bins=[],props=bin_sorter_defaultProps){(0,defineProperty.Z)(this,"maxCount",void 0),(0,defineProperty.Z)(this,"maxValue",void 0),(0,defineProperty.Z)(this,"minValue",void 0),(0,defineProperty.Z)(this,"totalCount",void 0),(0,defineProperty.Z)(this,"aggregatedBins",void 0),(0,defineProperty.Z)(this,"sortedBins",void 0),(0,defineProperty.Z)(this,"binMap",void 0),this.aggregatedBins=this.getAggregatedBins(bins,props),this._updateMinMaxValues(),this.binMap=this.getBinMap()}getAggregatedBins(bins,props){const{getValue:getValue=defaultGetValue,getPoints:getPoints=defaultGetPoints,getIndex:getIndex=defaultGetIndex,filterData:filterData}=props,hasFilter="function"==typeof filterData,binCount=bins.length,aggregatedBins=[];let index=0;for(let binIndex=0;binIndexfunction clamp(value,min,max){return Math.max(min,Math.min(max,value))}(n,0,100)));return[Math.ceil(lower/100*(len-1)),Math.floor(upper/100*(len-1))]}getBinMap(){const binMap={};for(const bin of this.aggregatedBins)binMap[bin.i]=bin;return binMap}_updateMinMaxValues(){let maxCount=0,maxValue=0,minValue=3402823466e29,totalCount=0;for(const x of this.aggregatedBins)maxCount=maxCount>x.counts?maxCount:x.counts,maxValue=maxValue>x.value?maxValue:x.value,minValue=minValuebin_sorter_ascending(a.value,b.value)))),!this.sortedBins.length)return[];let lowerIdx=0,upperIdx=this.sortedBins.length-1;if(Array.isArray(percentileRange)){const idxRange=this._percentileToIndex(percentileRange);lowerIdx=idxRange[0],upperIdx=idxRange[1]}return[this.sortedBins[lowerIdx].value,this.sortedBins[upperIdx].value]}getValueDomainByScale(scale,[lower=0,upper=100]=[]){if(this.sortedBins||(this.sortedBins=this.aggregatedBins.sort(((a,b)=>bin_sorter_ascending(a.value,b.value)))),!this.sortedBins.length)return[];const indexEdge=this._percentileToIndex([lower,upper]);return this._getScaleDomain(scale,indexEdge)}_getScaleDomain(scaleType,[lowerIdx,upperIdx]){const bins=this.sortedBins;switch(scaleType){case"quantize":case"linear":default:return[bins[lowerIdx].value,bins[upperIdx].value];case"quantile":return getQuantileDomain(bins.slice(lowerIdx,upperIdx+1),(d=>d.value));case"ordinal":return getOrdinalDomain(bins,(d=>d.value))}}}var iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");const R_EARTH=6378e3;function toFinite(n){return Number.isFinite(n)?n:0}function getBoundingBox(attributes,vertexCount){const positions=attributes.positions.value;let y,x,yMin=1/0,yMax=-1/0,xMin=1/0,xMax=-1/0;for(let i=0;iyMax?y:yMax,xMin=xxMax?x:xMax;return{xMin:toFinite(xMin),xMax:toFinite(xMax),yMin:toFinite(yMin),yMax:toFinite(yMax)}}function alignToCell(inValue,cellSize){const sign=inValue<0?-1:1;let value=sign<0?Math.abs(inValue)+cellSize:Math.abs(inValue);return value=Math.floor(value/cellSize)*cellSize,value*sign}function getGridOffset(boundingBox,cellSize,convertToMeters=!0){if(!convertToMeters)return{xOffset:cellSize,yOffset:cellSize};const{yMin:yMin,yMax:yMax}=boundingBox;return function calculateGridLatLonOffset(cellSize,latitude){const yOffset=function calculateLatOffset(dy){return dy/R_EARTH*(180/Math.PI)}(cellSize),xOffset=function calculateLonOffset(lat,dx){return dx/R_EARTH*(180/Math.PI)/Math.cos(lat*Math.PI/180)}(latitude,cellSize);return{yOffset:yOffset,xOffset:xOffset}}(cellSize,(yMin+yMax)/2)}function getGridParams(boundingBox,cellSize,viewport,coordinateSystem){const gridOffset=getGridOffset(boundingBox,cellSize,coordinateSystem!==constants.COORDINATE_SYSTEM.CARTESIAN),translation=function getTranslation(boundingBox,gridOffset,coordinateSystem,viewport){const{width:width,height:height}=viewport,worldOrigin=coordinateSystem===constants.COORDINATE_SYSTEM.CARTESIAN?[-width/2,-height/2]:[-180,-90];log.Z.assert(coordinateSystem===constants.COORDINATE_SYSTEM.CARTESIAN||coordinateSystem===constants.COORDINATE_SYSTEM.LNGLAT||coordinateSystem===constants.COORDINATE_SYSTEM.DEFAULT);const{xMin:xMin,yMin:yMin}=boundingBox;return[-1*(alignToCell(xMin-worldOrigin[0],gridOffset.xOffset)+worldOrigin[0]),-1*(alignToCell(yMin-worldOrigin[1],gridOffset.yOffset)+worldOrigin[1])]}(boundingBox,gridOffset,coordinateSystem,viewport),{xMin:xMin,yMin:yMin,xMax:xMax,yMax:yMax}=boundingBox,width=xMax-xMin+gridOffset.xOffset,height=yMax-yMin+gridOffset.yOffset;return{gridOffset:gridOffset,translation:translation,width:width,height:height,numCol:Math.ceil(width/gridOffset.xOffset),numRow:Math.ceil(height/gridOffset.yOffset)}}function pointToDensityGridDataCPU(props,aggregationParams){const hashInfo=function pointsToGridHashing(props,aggregationParams){const{data:data=[],cellSize:cellSize}=props,{attributes:attributes,viewport:viewport,projectPoints:projectPoints,numInstances:numInstances}=aggregationParams,positions=attributes.positions.value,{size:size}=attributes.positions.getAccessor(),boundingBox=aggregationParams.boundingBox||function getPositionBoundingBox(positionAttribute,numInstance){const positions=positionAttribute.value,{size:size}=positionAttribute.getAccessor();let y,x,yMin=1/0,yMax=-1/0,xMin=1/0,xMax=-1/0;for(let i=0;iyMax?y:yMax,xMin=xxMax?x:xMax);return{xMin:xMin,xMax:xMax,yMin:yMin,yMax:yMax}}(attributes.positions,numInstances),offsets=aggregationParams.posOffset||[180,90],gridOffset=aggregationParams.gridOffset||getGridOffset(boundingBox,cellSize);if(gridOffset.xOffset<=0||gridOffset.yOffset<=0)return{gridHash:{},gridOffset:gridOffset};const{width:width,height:height}=viewport,numCol=Math.ceil(width/gridOffset.xOffset),numRow=Math.ceil(height/gridOffset.yOffset),gridHash={},{iterable:iterable,objectInfo:objectInfo}=(0,iterable_utils.jB)(data),position=new Array(3);for(const pt of iterable){objectInfo.index++,position[0]=positions[objectInfo.index*size],position[1]=positions[objectInfo.index*size+1],position[2]=size>=3?positions[objectInfo.index*size+2]:0;const[x,y]=projectPoints?viewport.project(position):position;if(Number.isFinite(x)&&Number.isFinite(y)){const yIndex=Math.floor((y+offsets[1])/gridOffset.yOffset),xIndex=Math.floor((x+offsets[0])/gridOffset.xOffset);if(!projectPoints||xIndex>=0&&xIndex=0&&yIndexd.position},getWeight:{type:"accessor",value:1},gpuAggregation:!0,aggregation:"SUM"},DIMENSIONS={data:{props:["cellSizePixels"]},weights:{props:["aggregation"],accessors:["getWeight"]}};class ScreenGridLayer extends GridAggregationLayer{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){const{gl:gl}=this.context;if(!ScreenGridCellLayer.isSupported(gl))return this.setState({supported:!1}),void log.Z.error("ScreenGridLayer: ".concat(this.id," is not supported on this browser"))();super.initializeAggregationLayer({dimensions:DIMENSIONS,getCellSize:props=>props.cellSizePixels});const weights={count:{size:1,operation:AGGREGATION_OPERATION.SUM,needMax:!0,maxTexture:getFloatTexture(gl,{id:"".concat(this.id,"-max-texture")})}};this.setState({supported:!0,projectPoints:!0,weights:weights,subLayerData:{attributes:{}},maxTexture:weights.count.maxTexture,positionAttributeName:"positions",posOffset:[0,0],translation:[1,-1]});this.getAttributeManager().add({positions:{size:3,accessor:"getPosition",type:5130,fp64:this.use64bitPositions()},count:{size:3,accessor:"getWeight"}})}shouldUpdateState({changeFlags:changeFlags}){return this.state.supported&&changeFlags.somethingChanged}updateState(opts){super.updateState(opts)}renderLayers(){if(!this.state.supported)return[];const{maxTexture:maxTexture,numRow:numRow,numCol:numCol,weights:weights}=this.state,{updateTriggers:updateTriggers}=this.props,{aggregationBuffer:aggregationBuffer}=weights.count;return new(this.getSubLayerClass("cells",ScreenGridCellLayer))(this.props,this.getSubLayerProps({id:"cell-layer",updateTriggers:updateTriggers}),{data:{attributes:{instanceCounts:aggregationBuffer}},maxTexture:maxTexture,numInstances:numRow*numCol})}finalizeState(context){super.finalizeState(context);const{aggregationBuffer:aggregationBuffer,maxBuffer:maxBuffer,maxTexture:maxTexture}=this.state;null==aggregationBuffer||aggregationBuffer.delete(),null==maxBuffer||maxBuffer.delete(),null==maxTexture||maxTexture.delete()}getPickingInfo({info:info}){const{index:index}=info;if(index>=0){const{gpuGridAggregator:gpuGridAggregator,gpuAggregation:gpuAggregation,weights:weights}=this.state,aggregationResults=gpuAggregation?gpuGridAggregator.getData("count"):weights.count;info.object=GPUGridAggregator.getAggregationData({pixelIndex:index,...aggregationResults})}return info}updateResults({aggregationData:aggregationData,maxData:maxData}){const{count:count}=this.state.weights;count.aggregationData=aggregationData,count.aggregationBuffer.setData({data:aggregationData}),count.maxData=maxData,count.maxTexture.setImageData({data:maxData})}updateAggregationState(opts){const cellSize=opts.props.cellSizePixels,cellSizeChanged=opts.oldProps.cellSizePixels!==cellSize,{viewportChanged:viewportChanged}=opts.changeFlags;let gpuAggregation=opts.props.gpuAggregation;this.state.gpuAggregation!==opts.props.gpuAggregation&&gpuAggregation&&!GPUGridAggregator.isSupported(this.context.gl)&&(log.Z.warn("GPU Grid Aggregation not supported, falling back to CPU")(),gpuAggregation=!1);const gpuAggregationChanged=gpuAggregation!==this.state.gpuAggregation;this.setState({gpuAggregation:gpuAggregation});const positionsChanged=this.isAttributeChanged("positions"),{dimensions:dimensions}=this.state,{data:data,weights:weights}=dimensions,aggregationDataDirty=positionsChanged||gpuAggregationChanged||viewportChanged||this.isAggregationDirty(opts,{compareAll:gpuAggregation,dimension:data}),aggregationWeightsDirty=this.isAggregationDirty(opts,{dimension:weights});this.setState({aggregationDataDirty:aggregationDataDirty,aggregationWeightsDirty:aggregationWeightsDirty});const{viewport:viewport}=this.context;if(viewportChanged||cellSizeChanged){const{width:width,height:height}=viewport,numCol=Math.ceil(width/cellSize),numRow=Math.ceil(height/cellSize);this.allocateResources(numRow,numCol),this.setState({scaling:[width/2,-height/2,1],gridOffset:{xOffset:cellSize,yOffset:cellSize},width:width,height:height,numCol:numCol,numRow:numRow})}aggregationWeightsDirty&&this._updateAccessors(opts),(aggregationDataDirty||aggregationWeightsDirty)&&this._resetResults()}_updateAccessors(opts){const{getWeight:getWeight,aggregation:aggregation,data:data}=opts.props,{count:count}=this.state.weights;count&&(count.getWeight=getWeight,count.operation=AGGREGATION_OPERATION[aggregation]),this.setState({getValue:getValueFunc(aggregation,getWeight,{data:data})})}_resetResults(){const{count:count}=this.state.weights;count&&(count.aggregationData=null)}}(0,defineProperty.Z)(ScreenGridLayer,"layerName","ScreenGridLayer"),(0,defineProperty.Z)(ScreenGridLayer,"defaultProps",screen_grid_layer_defaultProps);var grid_cell_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/column-layer/grid-cell-layer.js");function nop(){}const dimensionSteps=["getBins","getDomain","getScaleFunc"],defaultDimensions=[{key:"fillColor",accessor:"getFillColor",pickingInfo:"colorValue",getBins:{triggers:{value:{prop:"getColorValue",updateTrigger:"getColorValue"},weight:{prop:"getColorWeight",updateTrigger:"getColorWeight"},aggregation:{prop:"colorAggregation"},filterData:{prop:"_filterData",updateTrigger:"_filterData"}}},getDomain:{triggers:{lowerPercentile:{prop:"lowerPercentile"},upperPercentile:{prop:"upperPercentile"},scaleType:{prop:"colorScaleType"}}},getScaleFunc:{triggers:{domain:{prop:"colorDomain"},range:{prop:"colorRange"}},onSet:{props:"onSetColorDomain"}},nullValue:[0,0,0,0]},{key:"elevation",accessor:"getElevation",pickingInfo:"elevationValue",getBins:{triggers:{value:{prop:"getElevationValue",updateTrigger:"getElevationValue"},weight:{prop:"getElevationWeight",updateTrigger:"getElevationWeight"},aggregation:{prop:"elevationAggregation"},filterData:{prop:"_filterData",updateTrigger:"_filterData"}}},getDomain:{triggers:{lowerPercentile:{prop:"elevationLowerPercentile"},upperPercentile:{prop:"elevationUpperPercentile"},scaleType:{prop:"elevationScaleType"}}},getScaleFunc:{triggers:{domain:{prop:"elevationDomain"},range:{prop:"elevationRange"}},onSet:{props:"onSetElevationDomain"}},nullValue:-1}],defaultGetCellSize=props=>props.cellSize;class CPUAggregator{constructor(opts){this.state={layerData:{},dimensions:{}},this.changeFlags={},this.dimensionUpdaters={},this._getCellSize=opts.getCellSize||defaultGetCellSize,this._getAggregator=opts.getAggregator,this._addDimension(opts.dimensions||defaultDimensions)}static defaultDimensions(){return defaultDimensions}updateState(opts,aggregationParams){const{oldProps:oldProps,props:props,changeFlags:changeFlags}=opts;this.updateGetValueFuncs(oldProps,props,changeFlags);const reprojectNeeded=this.needsReProjectPoints(oldProps,props,changeFlags);let aggregationDirty=!1;if(changeFlags.dataChanged||reprojectNeeded)this.getAggregatedData(props,aggregationParams),aggregationDirty=!0;else{(this.getDimensionChanges(oldProps,props,changeFlags)||[]).forEach((f=>"function"==typeof f&&f())),aggregationDirty=!0}return this.setState({aggregationDirty:aggregationDirty}),this.state}setState(updateObject){this.state={...this.state,...updateObject}}setDimensionState(key,updateObject){this.setState({dimensions:{...this.state.dimensions,[key]:{...this.state.dimensions[key],...updateObject}}})}normalizeResult(result={}){return result.hexagons?{data:result.hexagons,...result}:result.layerData?{data:result.layerData,...result}:result}getAggregatedData(props,aggregationParams){const result=this._getAggregator(props)(props,aggregationParams);this.setState({layerData:this.normalizeResult(result)}),this.changeFlags={layerData:!0},this.getSortedBins(props)}updateGetValueFuncs(oldProps,props,changeFlags){for(const key in this.dimensionUpdaters){const{value:value,weight:weight,aggregation:aggregation}=this.dimensionUpdaters[key].getBins.triggers;let getValue=props[value.prop];this.needUpdateDimensionStep(this.dimensionUpdaters[key].getBins,oldProps,props,changeFlags)&&(getValue=getValue?wrapGetValueFunc(getValue,{data:props.data}):getValueFunc(props[aggregation.prop],props[weight.prop],{data:props.data})),getValue&&this.setDimensionState(key,{getValue:getValue})}}needsReProjectPoints(oldProps,props,changeFlags){return this._getCellSize(oldProps)!==this._getCellSize(props)||this._getAggregator(oldProps)!==this._getAggregator(props)||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getPosition)}addDimension(dimensions){this._addDimension(dimensions)}_addDimension(dimensions=[]){dimensions.forEach((dimension=>{const{key:key}=dimension;this.dimensionUpdaters[key]=this.getDimensionUpdaters(dimension),this.state.dimensions[key]={getValue:null,domain:null,sortedBins:null,scaleFunc:nop}}))}getDimensionUpdaters({key:key,accessor:accessor,pickingInfo:pickingInfo,getBins:getBins,getDomain:getDomain,getScaleFunc:getScaleFunc,nullValue:nullValue}){return{key:key,accessor:accessor,pickingInfo:pickingInfo,getBins:{updater:this.getDimensionSortedBins,...getBins},getDomain:{updater:this.getDimensionValueDomain,...getDomain},getScaleFunc:{updater:this.getDimensionScale,...getScaleFunc},attributeAccessor:this.getSubLayerDimensionAttribute(key,nullValue)}}needUpdateDimensionStep(dimensionStep,oldProps,props,changeFlags){return Object.values(dimensionStep.triggers).some((item=>item.updateTrigger?changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged[item.updateTrigger]):oldProps[item.prop]!==props[item.prop]))}getDimensionChanges(oldProps,props,changeFlags){const updaters=[];for(const key in this.dimensionUpdaters){const needUpdate=dimensionSteps.find((step=>this.needUpdateDimensionStep(this.dimensionUpdaters[key][step],oldProps,props,changeFlags)));needUpdate&&updaters.push(this.dimensionUpdaters[key][needUpdate].updater.bind(this,props,this.dimensionUpdaters[key]))}return updaters.length?updaters:null}getUpdateTriggers(props){const _updateTriggers=props.updateTriggers||{},updateTriggers={};for(const key in this.dimensionUpdaters){const{accessor:accessor}=this.dimensionUpdaters[key];updateTriggers[accessor]={},dimensionSteps.forEach((step=>{Object.values(this.dimensionUpdaters[key][step].triggers).forEach((({prop:prop,updateTrigger:updateTrigger})=>{if(updateTrigger){const fromProp=_updateTriggers[updateTrigger];"object"!=typeof fromProp||Array.isArray(fromProp)?void 0!==fromProp&&(updateTriggers[accessor][prop]=fromProp):Object.assign(updateTriggers[accessor],fromProp)}else updateTriggers[accessor][prop]=props[prop]}))}))}return updateTriggers}getSortedBins(props){for(const key in this.dimensionUpdaters)this.getDimensionSortedBins(props,this.dimensionUpdaters[key])}getDimensionSortedBins(props,dimensionUpdater){const{key:key}=dimensionUpdater,{getValue:getValue}=this.state.dimensions[key],sortedBins=new BinSorter(this.state.layerData.data||[],{getValue:getValue,filterData:props._filterData});this.setDimensionState(key,{sortedBins:sortedBins}),this.getDimensionValueDomain(props,dimensionUpdater)}getDimensionValueDomain(props,dimensionUpdater){const{getDomain:getDomain,key:key}=dimensionUpdater,{triggers:{lowerPercentile:lowerPercentile,upperPercentile:upperPercentile,scaleType:scaleType}}=getDomain,valueDomain=this.state.dimensions[key].sortedBins.getValueDomainByScale(props[scaleType.prop],[props[lowerPercentile.prop],props[upperPercentile.prop]]);this.setDimensionState(key,{valueDomain:valueDomain}),this.getDimensionScale(props,dimensionUpdater)}getDimensionScale(props,dimensionUpdater){const{key:key,getScaleFunc:getScaleFunc,getDomain:getDomain}=dimensionUpdater,{domain:domain,range:range}=getScaleFunc.triggers,{scaleType:scaleType}=getDomain.triggers,{onSet:onSet}=getScaleFunc,dimensionRange=props[range.prop],dimensionDomain=props[domain.prop]||this.state.dimensions[key].valueDomain,getScaleFunction=function getScaleFunctionByScaleType(scaleType){switch(scaleType){case"quantize":default:return getQuantizeScale;case"linear":return getLinearScale;case"quantile":return getQuantileScale;case"ordinal":return getOrdinalScale}}(scaleType&&props[scaleType.prop]),scaleFunc=getScaleFunction(dimensionDomain,dimensionRange);"object"==typeof onSet&&"function"==typeof props[onSet.props]&&props[onSet.props](scaleFunc.domain()),this.setDimensionState(key,{scaleFunc:scaleFunc})}getSubLayerDimensionAttribute(key,nullValue){return cell=>{const{sortedBins:sortedBins,scaleFunc:scaleFunc}=this.state.dimensions[key],bin=sortedBins.binMap[cell.index];if(bin&&0===bin.counts)return nullValue;const cv=bin&&bin.value,domain=scaleFunc.domain();return cv>=domain[0]&&cv<=domain[domain.length-1]?scaleFunc(cv):nullValue}}getSubLayerAccessors(props){const accessors={};for(const key in this.dimensionUpdaters){const{accessor:accessor}=this.dimensionUpdaters[key];accessors[accessor]=this.getSubLayerDimensionAttribute(props,key)}return accessors}getPickingInfo({info:info}){let object=null;if(info.picked&&info.index>-1){const cell=this.state.layerData.data[info.index],binInfo={};for(const key in this.dimensionUpdaters){const{pickingInfo:pickingInfo}=this.dimensionUpdaters[key],{sortedBins:sortedBins}=this.state.dimensions[key],value=sortedBins.binMap[cell.index]&&sortedBins.binMap[cell.index].value;binInfo[pickingInfo]=value}object=Object.assign(binInfo,cell,{points:cell.filteredPoints||cell.points})}return info.picked=Boolean(object),info.object=object,info}getAccessor(dimensionKey){return this.dimensionUpdaters.hasOwnProperty(dimensionKey)?this.dimensionUpdaters[dimensionKey].attributeAccessor:nop}}function cpu_grid_layer_nop(){}const cpu_grid_layer_defaultProps={colorDomain:null,colorRange:defaultColorRange,getColorValue:{type:"accessor",value:null},getColorWeight:{type:"accessor",value:1},colorAggregation:"SUM",lowerPercentile:{type:"number",min:0,max:100,value:0},upperPercentile:{type:"number",min:0,max:100,value:100},colorScaleType:"quantize",onSetColorDomain:cpu_grid_layer_nop,elevationDomain:null,elevationRange:[0,1e3],getElevationValue:{type:"accessor",value:null},getElevationWeight:{type:"accessor",value:1},elevationAggregation:"SUM",elevationLowerPercentile:{type:"number",min:0,max:100,value:0},elevationUpperPercentile:{type:"number",min:0,max:100,value:100},elevationScale:{type:"number",min:0,value:1},elevationScaleType:"linear",onSetElevationDomain:cpu_grid_layer_nop,gridAggregator:pointToDensityGridDataCPU,cellSize:{type:"number",min:0,max:1e3,value:1e3},coverage:{type:"number",min:0,max:1,value:1},getPosition:{type:"accessor",value:x=>x.position},extruded:!1,material:!0,_filterData:{type:"function",value:null,optional:!0}};class CPUGridLayer extends AggregationLayer{initializeState(){const cpuAggregator=new CPUAggregator({getAggregator:props=>props.gridAggregator,getCellSize:props=>props.cellSize});this.state={cpuAggregator:cpuAggregator,aggregatorState:cpuAggregator.state};this.getAttributeManager().add({positions:{size:3,type:5130,accessor:"getPosition"}})}updateState(opts){super.updateState(opts),this.setState({aggregatorState:this.state.cpuAggregator.updateState(opts,{viewport:this.context.viewport,attributes:this.getAttributes(),numInstances:this.getNumInstances()})})}getPickingInfo({info:info}){return this.state.cpuAggregator.getPickingInfo({info:info})}_onGetSublayerColor(cell){return this.state.cpuAggregator.getAccessor("fillColor")(cell)}_onGetSublayerElevation(cell){return this.state.cpuAggregator.getAccessor("elevation")(cell)}_getSublayerUpdateTriggers(){return this.state.cpuAggregator.getUpdateTriggers(this.props)}renderLayers(){const{elevationScale:elevationScale,extruded:extruded,cellSize:cellSize,coverage:coverage,material:material,transitions:transitions}=this.props,{cpuAggregator:cpuAggregator}=this.state,SubLayerClass=this.getSubLayerClass("grid-cell",grid_cell_layer.Z),updateTriggers=this._getSublayerUpdateTriggers();return new SubLayerClass({cellSize:cellSize,coverage:coverage,material:material,elevationScale:elevationScale,extruded:extruded,getFillColor:this._onGetSublayerColor.bind(this),getElevation:this._onGetSublayerElevation.bind(this),transitions:transitions&&{getFillColor:transitions.getColorValue||transitions.getColorWeight,getElevation:transitions.getElevationValue||transitions.getElevationWeight}},this.getSubLayerProps({id:"grid-cell",updateTriggers:updateTriggers}),{data:cpuAggregator.state.layerData.data})}}(0,defineProperty.Z)(CPUGridLayer,"layerName","CPUGridLayer"),(0,defineProperty.Z)(CPUGridLayer,"defaultProps",cpu_grid_layer_defaultProps);var column_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/column-layer/column-layer.js"),thirdPi=Math.PI/3,angles=[0,thirdPi,2*thirdPi,3*thirdPi,4*thirdPi,5*thirdPi];function pointX(d){return d[0]}function pointY(d){return d[1]}function hexagon_layer_nop(){}const hexagon_layer_defaultProps={colorDomain:null,colorRange:defaultColorRange,getColorValue:{type:"accessor",value:null},getColorWeight:{type:"accessor",value:1},colorAggregation:"SUM",lowerPercentile:{type:"number",value:0,min:0,max:100},upperPercentile:{type:"number",value:100,min:0,max:100},colorScaleType:"quantize",onSetColorDomain:hexagon_layer_nop,elevationDomain:null,elevationRange:[0,1e3],getElevationValue:{type:"accessor",value:null},getElevationWeight:{type:"accessor",value:1},elevationAggregation:"SUM",elevationLowerPercentile:{type:"number",value:0,min:0,max:100},elevationUpperPercentile:{type:"number",value:100,min:0,max:100},elevationScale:{type:"number",min:0,value:1},elevationScaleType:"linear",onSetElevationDomain:hexagon_layer_nop,radius:{type:"number",value:1e3,min:1},coverage:{type:"number",min:0,max:1,value:1},extruded:!1,hexagonAggregator:function pointToHexbin(props,aggregationParams){const{data:data,radius:radius}=props,{viewport:viewport,attributes:attributes}=aggregationParams,centerLngLat=data.length?function getPointsCenter(data,aggregationParams){const{attributes:attributes}=aggregationParams,positions=attributes.positions.value,{size:size}=attributes.positions.getAccessor();let i,minX=1/0,minY=1/0,maxX=-1/0,maxY=-1/0;for(i=0;i1){var px1=px-pi,pi2=pi+(pxpx2*px2+py2*py2&&(pi=pi2+(1&pj?1:-1)/2,pj=pj2)}var id=pi+"-"+pj,bin=binsById[id];bin?bin.push(point):(bins.push(bin=binsById[id]=[point]),bin.x=(pi+(1&pj)/2)*dx,bin.y=pj*dy)}return bins}function hexagon(radius){var x0=0,y0=0;return angles.map((function(angle){var x1=Math.sin(angle)*radius,y1=-Math.cos(angle)*radius,dx=x1-x0,dy=y1-y0;return x0=x1,y0=y1,[dx,dy]}))}return hexbin.hexagon=function(radius){return"m"+hexagon(null==radius?r:+radius).join("l")+"z"},hexbin.centers=function(){for(var centers=[],j=Math.round(y0/dy),i=Math.round(x0/dx),y=j*dy;yd.screenCoord[0])).y((d=>d.screenCoord[1]));return{hexagons:newHexbin(screenPoints).map(((hex,index)=>({position:viewport.unprojectFlat([hex.x,hex.y]),points:hex,index:index}))),radiusCommon:radiusCommon}},getPosition:{type:"accessor",value:x=>x.position},material:!0,_filterData:{type:"function",value:null,optional:!0}};class HexagonLayer extends AggregationLayer{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){const cpuAggregator=new CPUAggregator({getAggregator:props=>props.hexagonAggregator,getCellSize:props=>props.radius});this.state={cpuAggregator:cpuAggregator,aggregatorState:cpuAggregator.state,vertices:null};this.getAttributeManager().add({positions:{size:3,type:5130,accessor:"getPosition"}})}updateState(opts){if(super.updateState(opts),opts.changeFlags.propsOrDataChanged){const aggregatorState=this.state.cpuAggregator.updateState(opts,{viewport:this.context.viewport,attributes:this.getAttributes()});if(this.state.aggregatorState.layerData!==aggregatorState.layerData){const{hexagonVertices:hexagonVertices}=aggregatorState.layerData||{};this.setState({vertices:hexagonVertices&&this.convertLatLngToMeterOffset(hexagonVertices)})}this.setState({aggregatorState:aggregatorState})}}convertLatLngToMeterOffset(hexagonVertices){const{viewport:viewport}=this.context;if(Array.isArray(hexagonVertices)&&6===hexagonVertices.length){const vertex0=hexagonVertices[0],vertex3=hexagonVertices[3],centroid=[(vertex0[0]+vertex3[0])/2,(vertex0[1]+vertex3[1])/2],centroidFlat=viewport.projectFlat(centroid),{metersPerUnit:metersPerUnit}=viewport.getDistanceScales(centroid);return hexagonVertices.map((vt=>{const vtFlat=viewport.projectFlat(vt);return[(vtFlat[0]-centroidFlat[0])*metersPerUnit[0],(vtFlat[1]-centroidFlat[1])*metersPerUnit[1]]}))}return log.Z.error("HexagonLayer: hexagonVertices needs to be an array of 6 points")(),null}getPickingInfo({info:info}){return this.state.cpuAggregator.getPickingInfo({info:info})}_onGetSublayerColor(cell){return this.state.cpuAggregator.getAccessor("fillColor")(cell)}_onGetSublayerElevation(cell){return this.state.cpuAggregator.getAccessor("elevation")(cell)}_getSublayerUpdateTriggers(){return this.state.cpuAggregator.getUpdateTriggers(this.props)}renderLayers(){const{elevationScale:elevationScale,extruded:extruded,coverage:coverage,material:material,transitions:transitions}=this.props,{aggregatorState:aggregatorState,vertices:vertices}=this.state,SubLayerClass=this.getSubLayerClass("hexagon-cell",column_layer.Z),updateTriggers=this._getSublayerUpdateTriggers();return new SubLayerClass({...vertices?{vertices:vertices,radius:1}:{radius:aggregatorState.layerData.radiusCommon||1,radiusUnits:"common",angle:90},diskResolution:6,elevationScale:elevationScale,extruded:extruded,coverage:coverage,material:material,getFillColor:this._onGetSublayerColor.bind(this),getElevation:this._onGetSublayerElevation.bind(this),transitions:transitions&&{getFillColor:transitions.getColorValue||transitions.getColorWeight,getElevation:transitions.getElevationValue||transitions.getElevationWeight}},this.getSubLayerProps({id:"hexagon-cell",updateTriggers:updateTriggers}),{data:aggregatorState.layerData.data})}}(0,defineProperty.Z)(HexagonLayer,"layerName","HexagonLayer"),(0,defineProperty.Z)(HexagonLayer,"defaultProps",hexagon_layer_defaultProps);var line_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/line-layer/line-layer.js"),solid_polygon_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/solid-polygon-layer.js");const ONE6TH=1/6,OFFSET={N:[0,.5],E:[.5,0],S:[0,-.5],W:[-.5,0],NE:[.5,.5],NW:[-.5,.5],SE:[.5,-.5],SW:[-.5,-.5]},SW_TRIANGLE=[OFFSET.W,OFFSET.SW,OFFSET.S],SE_TRIANGLE=[OFFSET.S,OFFSET.SE,OFFSET.E],NE_TRIANGLE=[OFFSET.E,OFFSET.NE,OFFSET.N],NW_TRIANGLE=[OFFSET.NW,OFFSET.W,OFFSET.N],SW_TRAPEZOID=[[-.5,ONE6TH],[-.5,-ONE6TH],[-ONE6TH,-.5],[ONE6TH,-.5]],SE_TRAPEZOID=[[-ONE6TH,-.5],[ONE6TH,-.5],[.5,-ONE6TH],[.5,ONE6TH]],NE_TRAPEZOID=[[.5,-ONE6TH],[.5,ONE6TH],[ONE6TH,.5],[-ONE6TH,.5]],NW_TRAPEZOID=[[-.5,ONE6TH],[-.5,-ONE6TH],[ONE6TH,.5],[-ONE6TH,.5]],S_RECTANGLE=[OFFSET.W,OFFSET.SW,OFFSET.SE,OFFSET.E],E_RECTANGLE=[OFFSET.S,OFFSET.SE,OFFSET.NE,OFFSET.N],N_RECTANGLE=[OFFSET.NW,OFFSET.W,OFFSET.E,OFFSET.NE],W_RECTANGLE=[OFFSET.NW,OFFSET.SW,OFFSET.S,OFFSET.N],EW_RECTANGEL=[[-.5,ONE6TH],[-.5,-ONE6TH],[.5,-ONE6TH],[.5,ONE6TH]],SN_RECTANGEL=[[-ONE6TH,-.5],[ONE6TH,-.5],[ONE6TH,.5],[-ONE6TH,.5]],SQUARE=[OFFSET.NW,OFFSET.SW,OFFSET.SE,OFFSET.NE],SW_PENTAGON=[OFFSET.NW,OFFSET.SW,OFFSET.SE,OFFSET.E,OFFSET.N],SE_PENTAGON=[OFFSET.W,OFFSET.SW,OFFSET.SE,OFFSET.NE,OFFSET.N],NE_PENTAGON=[OFFSET.NW,OFFSET.W,OFFSET.S,OFFSET.SE,OFFSET.NE],NW_PENTAGON=[OFFSET.NW,OFFSET.SW,OFFSET.S,OFFSET.E,OFFSET.NE],NW_N_PENTAGON=[OFFSET.NW,OFFSET.W,[.5,-ONE6TH],[.5,ONE6TH],OFFSET.N],NE_E_PENTAGON=[[-ONE6TH,-.5],[ONE6TH,-.5],OFFSET.E,OFFSET.NE,OFFSET.N],SE_S_PENTAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],OFFSET.S,OFFSET.SE,OFFSET.E],SW_W_PENTAGON=[OFFSET.W,OFFSET.SW,OFFSET.S,[ONE6TH,.5],[-ONE6TH,.5]],NW_W_PENTAGON=[OFFSET.NW,OFFSET.W,[-ONE6TH,-.5],[ONE6TH,-.5],OFFSET.N],NE_N_PENTAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],OFFSET.E,OFFSET.NE,OFFSET.N],SE_E_PENTAGON=[OFFSET.S,OFFSET.SE,OFFSET.E,[ONE6TH,.5],[-ONE6TH,.5]],SW_S_PENTAGON=[OFFSET.W,OFFSET.SW,OFFSET.S,[.5,-ONE6TH],[.5,ONE6TH]],S_HEXAGON=[OFFSET.W,OFFSET.SW,OFFSET.SE,OFFSET.E,[ONE6TH,.5],[-ONE6TH,.5]],E_HEXAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],OFFSET.S,OFFSET.SE,OFFSET.NE,OFFSET.N],N_HEXAGON=[OFFSET.NW,OFFSET.W,[-ONE6TH,-.5],[ONE6TH,-.5],OFFSET.E,OFFSET.NE],W_HEXAGON=[OFFSET.NW,OFFSET.SW,OFFSET.S,[.5,-ONE6TH],[.5,ONE6TH],OFFSET.N],SW_NE_HEXAGON=[OFFSET.W,OFFSET.SW,OFFSET.S,OFFSET.E,OFFSET.NE,OFFSET.N],NW_SE_HEXAGON=[OFFSET.NW,OFFSET.W,OFFSET.S,OFFSET.SE,OFFSET.E,OFFSET.N],NE_HEPTAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],[-ONE6TH,-.5],[ONE6TH,-.5],OFFSET.E,OFFSET.NE,OFFSET.N],SW_HEPTAGON=[OFFSET.W,OFFSET.SW,OFFSET.S,[.5,-ONE6TH],[.5,ONE6TH],[ONE6TH,.5],[-ONE6TH,.5]],NW_HEPTAGON=[OFFSET.NW,OFFSET.W,[-ONE6TH,-.5],[ONE6TH,-.5],[.5,-ONE6TH],[.5,ONE6TH],OFFSET.N],SE_HEPTAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],OFFSET.S,OFFSET.SE,OFFSET.E,[ONE6TH,.5],[-ONE6TH,.5]],OCTAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],[-ONE6TH,-.5],[ONE6TH,-.5],[.5,-ONE6TH],[.5,ONE6TH],[ONE6TH,.5],[-ONE6TH,.5]],ISOLINES_CODE_OFFSET_MAP={0:[],1:[[OFFSET.W,OFFSET.S]],2:[[OFFSET.S,OFFSET.E]],3:[[OFFSET.W,OFFSET.E]],4:[[OFFSET.N,OFFSET.E]],5:{0:[[OFFSET.W,OFFSET.S],[OFFSET.N,OFFSET.E]],1:[[OFFSET.W,OFFSET.N],[OFFSET.S,OFFSET.E]]},6:[[OFFSET.N,OFFSET.S]],7:[[OFFSET.W,OFFSET.N]],8:[[OFFSET.W,OFFSET.N]],9:[[OFFSET.N,OFFSET.S]],10:{0:[[OFFSET.W,OFFSET.N],[OFFSET.S,OFFSET.E]],1:[[OFFSET.W,OFFSET.S],[OFFSET.N,OFFSET.E]]},11:[[OFFSET.N,OFFSET.E]],12:[[OFFSET.W,OFFSET.E]],13:[[OFFSET.S,OFFSET.E]],14:[[OFFSET.W,OFFSET.S]],15:[]};function ternaryToIndex(ternary){return parseInt(ternary,4)}const ISOBANDS_CODE_OFFSET_MAP={[ternaryToIndex("0000")]:[],[ternaryToIndex("2222")]:[],[ternaryToIndex("2221")]:[SW_TRIANGLE],[ternaryToIndex("2212")]:[SE_TRIANGLE],[ternaryToIndex("2122")]:[NE_TRIANGLE],[ternaryToIndex("1222")]:[NW_TRIANGLE],[ternaryToIndex("0001")]:[SW_TRIANGLE],[ternaryToIndex("0010")]:[SE_TRIANGLE],[ternaryToIndex("0100")]:[NE_TRIANGLE],[ternaryToIndex("1000")]:[NW_TRIANGLE],[ternaryToIndex("2220")]:[SW_TRAPEZOID],[ternaryToIndex("2202")]:[SE_TRAPEZOID],[ternaryToIndex("2022")]:[NE_TRAPEZOID],[ternaryToIndex("0222")]:[NW_TRAPEZOID],[ternaryToIndex("0002")]:[SW_TRAPEZOID],[ternaryToIndex("0020")]:[SE_TRAPEZOID],[ternaryToIndex("0200")]:[NE_TRAPEZOID],[ternaryToIndex("2000")]:[NW_TRAPEZOID],[ternaryToIndex("0011")]:[S_RECTANGLE],[ternaryToIndex("0110")]:[E_RECTANGLE],[ternaryToIndex("1100")]:[N_RECTANGLE],[ternaryToIndex("1001")]:[W_RECTANGLE],[ternaryToIndex("2211")]:[S_RECTANGLE],[ternaryToIndex("2112")]:[E_RECTANGLE],[ternaryToIndex("1122")]:[N_RECTANGLE],[ternaryToIndex("1221")]:[W_RECTANGLE],[ternaryToIndex("2200")]:[EW_RECTANGEL],[ternaryToIndex("2002")]:[SN_RECTANGEL],[ternaryToIndex("0022")]:[EW_RECTANGEL],[ternaryToIndex("0220")]:[SN_RECTANGEL],[ternaryToIndex("1111")]:[SQUARE],[ternaryToIndex("1211")]:[SW_PENTAGON],[ternaryToIndex("2111")]:[SE_PENTAGON],[ternaryToIndex("1112")]:[NE_PENTAGON],[ternaryToIndex("1121")]:[NW_PENTAGON],[ternaryToIndex("1011")]:[SW_PENTAGON],[ternaryToIndex("0111")]:[SE_PENTAGON],[ternaryToIndex("1110")]:[NE_PENTAGON],[ternaryToIndex("1101")]:[NW_PENTAGON],[ternaryToIndex("1200")]:[NW_N_PENTAGON],[ternaryToIndex("0120")]:[NE_E_PENTAGON],[ternaryToIndex("0012")]:[SE_S_PENTAGON],[ternaryToIndex("2001")]:[SW_W_PENTAGON],[ternaryToIndex("1022")]:[NW_N_PENTAGON],[ternaryToIndex("2102")]:[NE_E_PENTAGON],[ternaryToIndex("2210")]:[SE_S_PENTAGON],[ternaryToIndex("0221")]:[SW_W_PENTAGON],[ternaryToIndex("1002")]:[NW_W_PENTAGON],[ternaryToIndex("2100")]:[NE_N_PENTAGON],[ternaryToIndex("0210")]:[SE_E_PENTAGON],[ternaryToIndex("0021")]:[SW_S_PENTAGON],[ternaryToIndex("1220")]:[NW_W_PENTAGON],[ternaryToIndex("0122")]:[NE_N_PENTAGON],[ternaryToIndex("2012")]:[SE_E_PENTAGON],[ternaryToIndex("2201")]:[SW_S_PENTAGON],[ternaryToIndex("0211")]:[S_HEXAGON],[ternaryToIndex("2110")]:[E_HEXAGON],[ternaryToIndex("1102")]:[N_HEXAGON],[ternaryToIndex("1021")]:[W_HEXAGON],[ternaryToIndex("2011")]:[S_HEXAGON],[ternaryToIndex("0112")]:[E_HEXAGON],[ternaryToIndex("1120")]:[N_HEXAGON],[ternaryToIndex("1201")]:[W_HEXAGON],[ternaryToIndex("2101")]:[SW_NE_HEXAGON],[ternaryToIndex("0121")]:[SW_NE_HEXAGON],[ternaryToIndex("1012")]:[NW_SE_HEXAGON],[ternaryToIndex("1210")]:[NW_SE_HEXAGON],[ternaryToIndex("0101")]:{0:[SW_TRIANGLE,NE_TRIANGLE],1:[SW_NE_HEXAGON],2:[SW_NE_HEXAGON]},[ternaryToIndex("1010")]:{0:[NW_TRIANGLE,SE_TRIANGLE],1:[NW_SE_HEXAGON],2:[NW_SE_HEXAGON]},[ternaryToIndex("2121")]:{0:[SW_NE_HEXAGON],1:[SW_NE_HEXAGON],2:[SW_TRIANGLE,NE_TRIANGLE]},[ternaryToIndex("1212")]:{0:[NW_SE_HEXAGON],1:[NW_SE_HEXAGON],2:[NW_TRIANGLE,SE_TRIANGLE]},[ternaryToIndex("2120")]:{0:[NE_HEPTAGON],1:[NE_HEPTAGON],2:[SW_TRAPEZOID,NE_TRIANGLE]},[ternaryToIndex("2021")]:{0:[SW_HEPTAGON],1:[SW_HEPTAGON],2:[SW_TRIANGLE,NE_TRAPEZOID]},[ternaryToIndex("1202")]:{0:[NW_HEPTAGON],1:[NW_HEPTAGON],2:[NW_TRIANGLE,SE_TRAPEZOID]},[ternaryToIndex("0212")]:{0:[SE_HEPTAGON],1:[SE_HEPTAGON],2:[SE_TRIANGLE,NW_TRAPEZOID]},[ternaryToIndex("0102")]:{0:[SW_TRAPEZOID,NE_TRIANGLE],1:[NE_HEPTAGON],2:[NE_HEPTAGON]},[ternaryToIndex("0201")]:{0:[SW_TRIANGLE,NE_TRAPEZOID],1:[SW_HEPTAGON],2:[SW_HEPTAGON]},[ternaryToIndex("1020")]:{0:[NW_TRIANGLE,SE_TRAPEZOID],1:[NW_HEPTAGON],2:[NW_HEPTAGON]},[ternaryToIndex("2010")]:{0:[SE_TRIANGLE,NW_TRAPEZOID],1:[SE_HEPTAGON],2:[SE_HEPTAGON]},[ternaryToIndex("2020")]:{0:[NW_TRAPEZOID,SE_TRAPEZOID],1:[OCTAGON],2:[SW_TRAPEZOID,NE_TRAPEZOID]},[ternaryToIndex("0202")]:{0:[NE_TRAPEZOID,SW_TRAPEZOID],1:[OCTAGON],2:[NW_TRAPEZOID,SE_TRAPEZOID]}},CONTOUR_TYPE={ISO_LINES:1,ISO_BANDS:2},DEFAULT_THRESHOLD_DATA={zIndex:0,zOffset:.005};function getVertexCode(weight,threshold){return Array.isArray(threshold)?weight=threshold?1:0}function getCode(opts){const{cellWeights:cellWeights,x:x,y:y,width:width,height:height}=opts;let threshold=opts.threshold;opts.thresholdValue&&(log.Z.deprecated("thresholdValue","threshold")(),threshold=opts.thresholdValue);const isLeftBoundary=x<0,isRightBoundary=x>=width-1,isBottomBoundary=y<0,isTopBoundary=y>=height-1,isBoundary=isLeftBoundary||isRightBoundary||isBottomBoundary||isTopBoundary,weights={},codes={};isLeftBoundary||isTopBoundary?codes.top=0:(weights.top=cellWeights[(y+1)*width+x],codes.top=getVertexCode(weights.top,threshold)),isRightBoundary||isTopBoundary?codes.topRight=0:(weights.topRight=cellWeights[(y+1)*width+x+1],codes.topRight=getVertexCode(weights.topRight,threshold)),isRightBoundary||isBottomBoundary?codes.right=0:(weights.right=cellWeights[y*width+x+1],codes.right=getVertexCode(weights.right,threshold)),isLeftBoundary||isBottomBoundary?codes.current=0:(weights.current=cellWeights[y*width+x],codes.current=getVertexCode(weights.current,threshold));const{top:top,topRight:topRight,right:right,current:current}=codes;let code=-1;Number.isFinite(threshold)&&(code=top<<3|topRight<<2|right<<1|current),Array.isArray(threshold)&&(code=top<<6|topRight<<4|right<<2|current);let meanCode=0;return isBoundary||(meanCode=getVertexCode((weights.top+weights.topRight+weights.right+weights.current)/4,threshold)),{code:code,meanCode:meanCode}}function getVertices(opts){const{gridOrigin:gridOrigin,cellSize:cellSize,x:x,y:y,code:code,meanCode:meanCode,type:type=CONTOUR_TYPE.ISO_LINES}=opts,thresholdData={...DEFAULT_THRESHOLD_DATA,...opts.thresholdData};let offsets=type===CONTOUR_TYPE.ISO_BANDS?ISOBANDS_CODE_OFFSET_MAP[code]:ISOLINES_CODE_OFFSET_MAP[code];Array.isArray(offsets)||(offsets=offsets[meanCode]);const vZ=thresholdData.zIndex*thresholdData.zOffset,rX=(x+1)*cellSize[0],rY=(y+1)*cellSize[1],refVertexX=gridOrigin[0]+rX,refVertexY=gridOrigin[1]+rY;if(type===CONTOUR_TYPE.ISO_BANDS){const polygons=[];return offsets.forEach((polygonOffsets=>{const polygon=[];polygonOffsets.forEach((xyOffset=>{const vX=refVertexX+xyOffset[0]*cellSize[0],vY=refVertexY+xyOffset[1]*cellSize[1];polygon.push([vX,vY,vZ])})),polygons.push(polygon)})),polygons}const lines=[];return offsets.forEach((xyOffsets=>{xyOffsets.forEach((offset=>{const vX=refVertexX+offset[0]*cellSize[0],vY=refVertexY+offset[1]*cellSize[1];lines.push([vX,vY,vZ])}))})),lines}const DEFAULT_COLOR=[255,255,255,255],contour_layer_defaultProps={cellSize:{type:"number",min:1,max:1e3,value:1e3},getPosition:{type:"accessor",value:x=>x.position},getWeight:{type:"accessor",value:1},gpuAggregation:!0,aggregation:"SUM",contours:{type:"object",value:[{threshold:1}],optional:!0,compare:3},zOffset:.005},contour_layer_DIMENSIONS={data:{props:["cellSize"]},weights:{props:["aggregation"],accessors:["getWeight"]}};class ContourLayer extends GridAggregationLayer{initializeState(){super.initializeAggregationLayer({dimensions:contour_layer_DIMENSIONS}),this.setState({contourData:{},projectPoints:!1,weights:{count:{size:1,operation:AGGREGATION_OPERATION.SUM}}});this.getAttributeManager().add({positions:{size:3,accessor:"getPosition",type:5130,fp64:this.use64bitPositions()},count:{size:3,accessor:"getWeight"}})}updateState(opts){super.updateState(opts);let contoursChanged=!1;const{oldProps:oldProps,props:props}=opts,{aggregationDirty:aggregationDirty}=this.state;oldProps.contours===props.contours&&oldProps.zOffset===props.zOffset||(contoursChanged=!0,this._updateThresholdData(opts.props)),this.getNumInstances()>0&&(aggregationDirty||contoursChanged)&&this._generateContours()}renderLayers(){const{contourSegments:contourSegments,contourPolygons:contourPolygons}=this.state.contourData,LinesSubLayerClass=this.getSubLayerClass("lines",line_layer.Z),BandsSubLayerClass=this.getSubLayerClass("bands",solid_polygon_layer.Z);return[contourSegments&&contourSegments.length>0&&new LinesSubLayerClass(this.getSubLayerProps({id:"lines"}),{data:this.state.contourData.contourSegments,getSourcePosition:d=>d.start,getTargetPosition:d=>d.end,getColor:d=>d.contour.color||DEFAULT_COLOR,getWidth:d=>d.contour.strokeWidth||1}),contourPolygons&&contourPolygons.length>0&&new BandsSubLayerClass(this.getSubLayerProps({id:"bands"}),{data:this.state.contourData.contourPolygons,getPolygon:d=>d.vertices,getFillColor:d=>d.contour.color||DEFAULT_COLOR})]}updateAggregationState(opts){const{props:props,oldProps:oldProps}=opts,{cellSize:cellSize,coordinateSystem:coordinateSystem}=props,{viewport:viewport}=this.context,cellSizeChanged=oldProps.cellSize!==cellSize;let gpuAggregation=props.gpuAggregation;this.state.gpuAggregation!==props.gpuAggregation&&gpuAggregation&&!GPUGridAggregator.isSupported(this.context.gl)&&(log.Z.warn("GPU Grid Aggregation not supported, falling back to CPU")(),gpuAggregation=!1);const gpuAggregationChanged=gpuAggregation!==this.state.gpuAggregation;this.setState({gpuAggregation:gpuAggregation});const{dimensions:dimensions}=this.state,positionsChanged=this.isAttributeChanged("positions"),{data:data,weights:weights}=dimensions;let{boundingBox:boundingBox}=this.state;if(positionsChanged&&(boundingBox=getBoundingBox(this.getAttributes(),this.getNumInstances()),this.setState({boundingBox:boundingBox})),positionsChanged||cellSizeChanged){const{gridOffset:gridOffset,translation:translation,width:width,height:height,numCol:numCol,numRow:numRow}=getGridParams(boundingBox,cellSize,viewport,coordinateSystem);this.allocateResources(numRow,numCol),this.setState({gridOffset:gridOffset,boundingBox:boundingBox,translation:translation,posOffset:translation.slice(),gridOrigin:[-1*translation[0],-1*translation[1]],width:width,height:height,numCol:numCol,numRow:numRow})}const aggregationDataDirty=positionsChanged||gpuAggregationChanged||this.isAggregationDirty(opts,{dimension:data,compareAll:gpuAggregation}),aggregationWeightsDirty=this.isAggregationDirty(opts,{dimension:weights});aggregationWeightsDirty&&this._updateAccessors(opts),(aggregationDataDirty||aggregationWeightsDirty)&&this._resetResults(),this.setState({aggregationDataDirty:aggregationDataDirty,aggregationWeightsDirty:aggregationWeightsDirty})}_updateAccessors(opts){const{getWeight:getWeight,aggregation:aggregation,data:data}=opts.props,{count:count}=this.state.weights;count&&(count.getWeight=getWeight,count.operation=AGGREGATION_OPERATION[aggregation]),this.setState({getValue:getValueFunc(aggregation,getWeight,{data:data})})}_resetResults(){const{count:count}=this.state.weights;count&&(count.aggregationData=null)}_generateContours(){const{numCol:numCol,numRow:numRow,gridOrigin:gridOrigin,gridOffset:gridOffset,thresholdData:thresholdData}=this.state,{count:count}=this.state.weights;let{aggregationData:aggregationData}=count;aggregationData||(aggregationData=count.aggregationBuffer.getData(),count.aggregationData=aggregationData);const{cellWeights:cellWeights}=GPUGridAggregator.getCellData({countsData:aggregationData}),contourData=function generateContours({thresholdData:thresholdData,cellWeights:cellWeights,gridSize:gridSize,gridOrigin:gridOrigin,cellSize:cellSize}){const contourSegments=[],contourPolygons=[],width=gridSize[0],height=gridSize[1];let segmentIndex=0,polygonIndex=0;for(const data of thresholdData){const{contour:contour}=data,{threshold:threshold}=contour;for(let x=-1;x= (domain.x - EPSILON) && value <= (domain.y + EPSILON)) {\n float domainRange = domain.y - domain.x;\n if (domainRange <= 0.) {\n outColor = colorRange[0];\n } else {\n float rangeCount = float(RANGE_COUNT);\n float rangeStep = domainRange / rangeCount;\n float idx = floor((value - domain.x) / rangeStep);\n idx = clamp(idx, 0., rangeCount - 1.);\n int intIdx = int(idx);\n outColor = colorRange[intIdx];\n }\n }\n return outColor;\n}\n\nfloat linearScale(vec2 domain, vec2 range, float value) {\n if (value >= (domain.x - EPSILON) && value <= (domain.y + EPSILON)) {\n return ((value - domain.x) / (domain.y - domain.x)) * (range.y - range.x) + range.x;\n }\n return -1.;\n}\n\nvoid main(void) {\n vec2 clrDomain = colorDomainValid ? colorDomain : vec2(colorData.maxMinCount.a, colorData.maxMinCount.r);\n vec4 color = quantizeScale(clrDomain, colorRange, colors.r);\n\n float elevation = 0.0;\n\n if (extruded) {\n vec2 elvDomain = elevationDomainValid ? elevationDomain : vec2(elevationData.maxMinCount.a, elevationData.maxMinCount.r);\n elevation = linearScale(elvDomain, elevationRange, elevations.r);\n elevation = elevation * (positions.z + 1.0) / 2.0 * elevationScale;\n }\n float shouldRender = float(color.r > 0.0 && elevations.r >= 0.0);\n float dotRadius = cellSize / 2. * coverage * shouldRender;\n\n int yIndex = (gl_InstanceID / gridSize[0]);\n int xIndex = gl_InstanceID - (yIndex * gridSize[0]);\n\n vec2 instancePositionXFP64 = mul_fp64(vec2(gridOffset[0], gridOffsetLow[0]), vec2(float(xIndex), 0.));\n instancePositionXFP64 = sum_fp64(instancePositionXFP64, vec2(gridOrigin[0], gridOriginLow[0]));\n vec2 instancePositionYFP64 = mul_fp64(vec2(gridOffset[1], gridOffsetLow[1]), vec2(float(yIndex), 0.));\n instancePositionYFP64 = sum_fp64(instancePositionYFP64, vec2(gridOrigin[1], gridOriginLow[1]));\n\n vec3 centroidPosition = vec3(instancePositionXFP64[0], instancePositionYFP64[0], elevation);\n vec3 centroidPosition64Low = vec3(instancePositionXFP64[1], instancePositionYFP64[1], 0.0);\n geometry.worldPosition = centroidPosition;\n vec3 pos = vec3(project_size(positions.xy + offset) * dotRadius, 0.);\n picking_setPickingColor(instancePickingColors);\n\n gl_Position = project_position_to_clipspace(centroidPosition, centroidPosition64Low, pos, geometry.position);\n\n vec3 normals_commonspace = project_normal(normals);\n\n if (extruded) {\n vec3 lightColor = lighting_getLightColor(color.rgb, project_uCameraPosition, geometry.position.xyz, normals_commonspace);\n vColor = vec4(lightColor, color.a * opacity) / 255.;\n } else {\n vColor = vec4(color.rgb, color.a * opacity) / 255.;\n }\n}\n",fs:"#version 300 es\n#define SHADER_NAME gpu-grid-cell-layer-fragment-shader\n\nprecision highp float;\n\nin vec4 vColor;\n\nout vec4 fragColor;\n\nvoid main(void) {\n fragColor = vColor;\n fragColor = picking_filterColor(fragColor);\n}\n",modules:[project32.Z,phong_lighting.N,picking.Z,fp64.n2]})}initializeState({gl:gl}){this.getAttributeManager().addInstanced({colors:{size:4,noAlloc:!0},elevations:{size:4,noAlloc:!0}});const model=this._getModel(gl);this._setupUniformBuffer(model),this.setState({model:model})}_getModel(gl){return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new cube_geometry.Z,isInstanced:!0})}draw({uniforms:uniforms}){const{cellSize:cellSize,offset:offset,extruded:extruded,elevationScale:elevationScale,coverage:coverage,gridSize:gridSize,gridOrigin:gridOrigin,gridOffset:gridOffset,elevationRange:elevationRange,colorMaxMinBuffer:colorMaxMinBuffer,elevationMaxMinBuffer:elevationMaxMinBuffer}=this.props,gridOriginLow=[(0,math_utils.Ks)(gridOrigin[0]),(0,math_utils.Ks)(gridOrigin[1])],gridOffsetLow=[(0,math_utils.Ks)(gridOffset[0]),(0,math_utils.Ks)(gridOffset[1])],domainUniforms=this.getDomainUniforms(),colorRange=colorRangeToFlatArray(this.props.colorRange);this.bindUniformBuffers(colorMaxMinBuffer,elevationMaxMinBuffer),this.state.model.setUniforms(uniforms).setUniforms(domainUniforms).setUniforms({cellSize:cellSize,offset:offset,extruded:extruded,elevationScale:elevationScale,coverage:coverage,gridSize:gridSize,gridOrigin:gridOrigin,gridOriginLow:gridOriginLow,gridOffset:gridOffset,gridOffsetLow:gridOffsetLow,colorRange:colorRange,elevationRange:elevationRange}).draw(),this.unbindUniformBuffers(colorMaxMinBuffer,elevationMaxMinBuffer)}bindUniformBuffers(colorMaxMinBuffer,elevationMaxMinBuffer){colorMaxMinBuffer.bind({target:35345,index:0}),elevationMaxMinBuffer.bind({target:35345,index:1})}unbindUniformBuffers(colorMaxMinBuffer,elevationMaxMinBuffer){colorMaxMinBuffer.unbind({target:35345,index:0}),elevationMaxMinBuffer.unbind({target:35345,index:1})}getDomainUniforms(){const{colorDomain:colorDomain,elevationDomain:elevationDomain}=this.props,domainUniforms={};return null!==colorDomain?(domainUniforms.colorDomainValid=!0,domainUniforms.colorDomain=colorDomain):domainUniforms.colorDomainValid=!1,null!==elevationDomain?(domainUniforms.elevationDomainValid=!0,domainUniforms.elevationDomain=elevationDomain):domainUniforms.elevationDomainValid=!1,domainUniforms}_setupUniformBuffer(model){const gl=this.context.gl,programHandle=model.program.handle,colorIndex=gl.getUniformBlockIndex(programHandle,"ColorData"),elevationIndex=gl.getUniformBlockIndex(programHandle,"ElevationData");gl.uniformBlockBinding(programHandle,colorIndex,0),gl.uniformBlockBinding(programHandle,elevationIndex,1)}}(0,defineProperty.Z)(GPUGridCellLayer,"layerName","GPUGridCellLayer"),(0,defineProperty.Z)(GPUGridCellLayer,"defaultProps",gpu_grid_cell_layer_defaultProps);const gpu_grid_layer_defaultProps={colorDomain:null,colorRange:defaultColorRange,getColorWeight:{type:"accessor",value:1},colorAggregation:"SUM",elevationDomain:null,elevationRange:[0,1e3],getElevationWeight:{type:"accessor",value:1},elevationAggregation:"SUM",elevationScale:{type:"number",min:0,value:1},cellSize:{type:"number",min:1,max:1e3,value:1e3},coverage:{type:"number",min:0,max:1,value:1},getPosition:{type:"accessor",value:x=>x.position},extruded:!1,material:!0},gpu_grid_layer_DIMENSIONS={data:{props:["cellSize","colorAggregation","elevationAggregation"]}};class GPUGridLayer extends GridAggregationLayer{initializeState({gl:gl}){const isSupported=GPUGridAggregator.isSupported(gl);isSupported||log.Z.error("GPUGridLayer is not supported on this browser, use GridLayer instead")(),super.initializeAggregationLayer({dimensions:gpu_grid_layer_DIMENSIONS}),this.setState({gpuAggregation:!0,projectPoints:!1,isSupported:isSupported,weights:{color:{needMin:!0,needMax:!0,combineMaxMin:!0,maxMinBuffer:new buffer.Z(gl,{byteLength:16,accessor:{size:4,type:5126,divisor:1}})},elevation:{needMin:!0,needMax:!0,combineMaxMin:!0,maxMinBuffer:new buffer.Z(gl,{byteLength:16,accessor:{size:4,type:5126,divisor:1}})}},positionAttributeName:"positions"});this.getAttributeManager().add({positions:{size:3,accessor:"getPosition",type:5130,fp64:this.use64bitPositions()},color:{size:3,accessor:"getColorWeight"},elevation:{size:3,accessor:"getElevationWeight"}})}updateState(opts){if(!1===this.state.isSupported)return;super.updateState(opts);const{aggregationDirty:aggregationDirty}=this.state;aggregationDirty&&this.setState({gridHash:null})}getHashKeyForIndex(index){const{numRow:numRow,numCol:numCol,boundingBox:boundingBox,gridOffset:gridOffset}=this.state,gridSize=[numCol,numRow],gridOrigin=[boundingBox.xMin,boundingBox.yMin],cellSize=[gridOffset.xOffset,gridOffset.yOffset],yIndex=Math.floor(index/gridSize[0]),xIndex=index-yIndex*gridSize[0],latIdx=Math.floor((yIndex*cellSize[1]+gridOrigin[1]+90+cellSize[1]/2)/cellSize[1]),lonIdx=Math.floor((xIndex*cellSize[0]+gridOrigin[0]+180+cellSize[0]/2)/cellSize[0]);return"".concat(latIdx,"-").concat(lonIdx)}getPositionForIndex(index){const{numRow:numRow,numCol:numCol,boundingBox:boundingBox,gridOffset:gridOffset}=this.state,gridSize=[numCol,numRow],gridOrigin=[boundingBox.xMin,boundingBox.yMin],cellSize=[gridOffset.xOffset,gridOffset.yOffset],yIndex=Math.floor(index/gridSize[0]);return[(index-yIndex*gridSize[0])*cellSize[0]+gridOrigin[0],yIndex*cellSize[1]+gridOrigin[1]]}getPickingInfo({info:info,mode:mode}){const{index:index}=info;let object=null;if(index>=0){const{gpuGridAggregator:gpuGridAggregator}=this.state,position=this.getPositionForIndex(index),colorInfo=GPUGridAggregator.getAggregationData({pixelIndex:index,...gpuGridAggregator.getData("color")}),elevationInfo=GPUGridAggregator.getAggregationData({pixelIndex:index,...gpuGridAggregator.getData("elevation")});if(object={colorValue:colorInfo.cellWeight,elevationValue:elevationInfo.cellWeight,count:colorInfo.cellCount||elevationInfo.cellCount,position:position,totalCount:colorInfo.totalCount||elevationInfo.totalCount},"hover"!==mode){const{props:props}=this;let{gridHash:gridHash}=this.state;if(!gridHash){const{gridOffset:gridOffset,translation:translation,boundingBox:boundingBox}=this.state,{viewport:viewport}=this.context;gridHash=pointToDensityGridDataCPU(props,{gridOffset:gridOffset,attributes:this.getAttributes(),viewport:viewport,translation:translation,boundingBox:boundingBox}).gridHash,this.setState({gridHash:gridHash})}const cpuAggregationData=gridHash[this.getHashKeyForIndex(index)];Object.assign(object,cpuAggregationData)}}return info.picked=Boolean(object),info.object=object,info}renderLayers(){if(!this.state.isSupported)return null;const{elevationScale:elevationScale,extruded:extruded,cellSize:cellSizeMeters,coverage:coverage,material:material,elevationRange:elevationRange,colorDomain:colorDomain,elevationDomain:elevationDomain}=this.props,{weights:weights,numRow:numRow,numCol:numCol,gridOrigin:gridOrigin,gridOffset:gridOffset}=this.state,{color:color,elevation:elevation}=weights,colorRange=colorRangeToFlatArray(this.props.colorRange);return new(this.getSubLayerClass("gpu-grid-cell",GPUGridCellLayer))({gridSize:[numCol,numRow],gridOrigin:gridOrigin,gridOffset:[gridOffset.xOffset,gridOffset.yOffset],colorRange:colorRange,elevationRange:elevationRange,colorDomain:colorDomain,elevationDomain:elevationDomain,cellSize:cellSizeMeters,coverage:coverage,material:material,elevationScale:elevationScale,extruded:extruded},this.getSubLayerProps({id:"gpu-grid-cell"}),{data:{attributes:{colors:color.aggregationBuffer,elevations:elevation.aggregationBuffer}},colorMaxMinBuffer:color.maxMinBuffer,elevationMaxMinBuffer:elevation.maxMinBuffer,numInstances:numCol*numRow})}finalizeState(context){const{color:color,elevation:elevation}=this.state.weights;[color,elevation].forEach((weight=>{const{aggregationBuffer:aggregationBuffer,maxMinBuffer:maxMinBuffer}=weight;maxMinBuffer.delete(),null==aggregationBuffer||aggregationBuffer.delete()})),super.finalizeState(context)}updateAggregationState(opts){const{props:props,oldProps:oldProps}=opts,{cellSize:cellSize,coordinateSystem:coordinateSystem}=props,{viewport:viewport}=this.context,cellSizeChanged=oldProps.cellSize!==cellSize,{dimensions:dimensions}=this.state,positionsChanged=this.isAttributeChanged("positions"),attributesChanged=positionsChanged||this.isAttributeChanged();let{boundingBox:boundingBox}=this.state;if(positionsChanged&&(boundingBox=getBoundingBox(this.getAttributes(),this.getNumInstances()),this.setState({boundingBox:boundingBox})),positionsChanged||cellSizeChanged){const{gridOffset:gridOffset,translation:translation,width:width,height:height,numCol:numCol,numRow:numRow}=getGridParams(boundingBox,cellSize,viewport,coordinateSystem);this.allocateResources(numRow,numCol),this.setState({gridOffset:gridOffset,translation:translation,gridOrigin:[-1*translation[0],-1*translation[1]],width:width,height:height,numCol:numCol,numRow:numRow})}const aggregationDataDirty=attributesChanged||this.isAggregationDirty(opts,{dimension:dimensions.data,compareAll:!0});aggregationDataDirty&&this._updateAccessors(opts),this.setState({aggregationDataDirty:aggregationDataDirty})}_updateAccessors(opts){const{colorAggregation:colorAggregation,elevationAggregation:elevationAggregation}=opts.props,{color:color,elevation:elevation}=this.state.weights;color.operation=AGGREGATION_OPERATION[colorAggregation],elevation.operation=AGGREGATION_OPERATION[elevationAggregation]}}(0,defineProperty.Z)(GPUGridLayer,"layerName","GPUGridLayer"),(0,defineProperty.Z)(GPUGridLayer,"defaultProps",gpu_grid_layer_defaultProps);const grid_layer_defaultProps={...GPUGridLayer.defaultProps,...CPUGridLayer.defaultProps,gpuAggregation:!1};class GridLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){this.state={useGPUAggregation:!0}}updateState({props:props}){this.setState({useGPUAggregation:this.canUseGPUAggregation(props)})}renderLayers(){const{data:data,updateTriggers:updateTriggers}=this.props,id=this.state.useGPUAggregation?"GPU":"CPU";return new(this.state.useGPUAggregation?this.getSubLayerClass("GPU",GPUGridLayer):this.getSubLayerClass("CPU",CPUGridLayer))(this.props,this.getSubLayerProps({id:id,updateTriggers:updateTriggers}),{data:data})}canUseGPUAggregation(props){const{gpuAggregation:gpuAggregation,lowerPercentile:lowerPercentile,upperPercentile:upperPercentile,getColorValue:getColorValue,getElevationValue:getElevationValue,colorScaleType:colorScaleType}=props;return!!gpuAggregation&&(!!GPUGridAggregator.isSupported(this.context.gl)&&(0===lowerPercentile&&100===upperPercentile&&(null===getColorValue&&null===getElevationValue&&("quantile"!==colorScaleType&&"ordinal"!==colorScaleType))))}}(0,defineProperty.Z)(GridLayer,"layerName","GridLayer"),(0,defineProperty.Z)(GridLayer,"defaultProps",grid_layer_defaultProps);const scratchArray=new Float32Array(12);function packVertices(points,dimensions=2){let index=0;for(const point of points)for(let i=0;i 0.) {\n maxValue = colorDomain[1];\n minValue = colorDomain[0];\n }\n vIntensityMax = intensity / maxValue;\n vIntensityMin = intensity / minValue;\n}\n",fs:"#define SHADER_NAME triangle-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D texture;\nuniform sampler2D colorTexture;\nuniform float aggregationMode;\n\nvarying vec2 vTexCoords;\nvarying float vIntensityMin;\nvarying float vIntensityMax;\n\nvec4 getLinearColor(float value) {\n float factor = clamp(value * vIntensityMax, 0., 1.);\n vec4 color = texture2D(colorTexture, vec2(factor, 0.5));\n color.a *= min(value * vIntensityMin, 1.0);\n return color;\n}\n\nvoid main(void) {\n vec4 weights = texture2D(texture, vTexCoords);\n float weight = weights.r;\n\n if (aggregationMode > 0.5) {\n weight /= max(1.0, weights.a);\n }\n if (weight <= 0.) {\n discard;\n }\n\n vec4 linearColor = getLinearColor(weight);\n linearColor.a *= opacity;\n gl_FragColor =linearColor;\n}\n",modules:[project32.Z]}}initializeState({gl:gl}){this.getAttributeManager().add({positions:{size:3,noAlloc:!0},texCoords:{size:2,noAlloc:!0}}),this.setState({model:this._getModel(gl)})}_getModel(gl){const{vertexCount:vertexCount}=this.props;return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:6,vertexCount:vertexCount})})}draw({uniforms:uniforms}){const{model:model}=this.state,{texture:texture,maxTexture:maxTexture,colorTexture:colorTexture,intensity:intensity,threshold:threshold,aggregationMode:aggregationMode,colorDomain:colorDomain}=this.props;model.setUniforms({...uniforms,texture:texture,maxTexture:maxTexture,colorTexture:colorTexture,intensity:intensity,threshold:threshold,aggregationMode:aggregationMode,colorDomain:colorDomain}).draw()}}(0,defineProperty.Z)(TriangleLayer,"layerName","TriangleLayer");const TEXTURE_OPTIONS={mipmaps:!1,parameters:{10240:9729,10241:9729,10242:33071,10243:33071},dataFormat:6408},DEFAULT_COLOR_DOMAIN=[0,0],AGGREGATION_MODE={SUM:0,MEAN:1},heatmap_layer_defaultProps={getPosition:{type:"accessor",value:x=>x.position},getWeight:{type:"accessor",value:1},intensity:{type:"number",min:0,value:1},radiusPixels:{type:"number",min:1,max:100,value:50},colorRange:defaultColorRange,threshold:{type:"number",min:0,max:1,value:.05},colorDomain:{type:"array",value:null,optional:!0},aggregation:"SUM",weightsTextureSize:{type:"number",min:128,max:2048,value:2048},debounceTimeout:{type:"number",min:0,max:1e3,value:500}},heatmap_layer_REQUIRED_FEATURES=[webgl_features_table.h.BLEND_EQUATION_MINMAX,webgl_features_table.h.TEXTURE_FLOAT],FLOAT_TARGET_FEATURES=[webgl_features_table.h.COLOR_ATTACHMENT_RGBA32F,webgl_features_table.h.FLOAT_BLEND],heatmap_layer_DIMENSIONS={data:{props:["radiusPixels"]}};class HeatmapLayer extends AggregationLayer{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){const{gl:gl}=this.context;if(!(0,features.ag)(gl,heatmap_layer_REQUIRED_FEATURES))return this.setState({supported:!1}),void log.Z.error("HeatmapLayer: ".concat(this.id," is not supported on this browser"))();super.initializeAggregationLayer(heatmap_layer_DIMENSIONS),this.setState({supported:!0,colorDomain:DEFAULT_COLOR_DOMAIN}),this._setupTextureParams(),this._setupAttributes(),this._setupResources()}shouldUpdateState({changeFlags:changeFlags}){return changeFlags.somethingChanged}updateState(opts){this.state.supported&&(super.updateState(opts),this._updateHeatmapState(opts))}_updateHeatmapState(opts){const{props:props,oldProps:oldProps}=opts,changeFlags=this._getChangeFlags(opts);(changeFlags.dataChanged||changeFlags.viewportChanged)&&(changeFlags.boundsChanged=this._updateBounds(changeFlags.dataChanged),this._updateTextureRenderingBounds()),changeFlags.dataChanged||changeFlags.boundsChanged?(clearTimeout(this.state.updateTimer),this.setState({isWeightMapDirty:!0})):changeFlags.viewportZoomChanged&&this._debouncedUpdateWeightmap(),props.colorRange!==oldProps.colorRange&&this._updateColorTexture(opts),this.state.isWeightMapDirty&&this._updateWeightmap(),this.setState({zoom:opts.context.viewport.zoom})}renderLayers(){if(!this.state.supported)return[];const{weightsTexture:weightsTexture,triPositionBuffer:triPositionBuffer,triTexCoordBuffer:triTexCoordBuffer,maxWeightsTexture:maxWeightsTexture,colorTexture:colorTexture,colorDomain:colorDomain}=this.state,{updateTriggers:updateTriggers,intensity:intensity,threshold:threshold,aggregation:aggregation}=this.props;return new(this.getSubLayerClass("triangle",TriangleLayer))(this.getSubLayerProps({id:"triangle-layer",updateTriggers:updateTriggers}),{coordinateSystem:constants.COORDINATE_SYSTEM.DEFAULT,data:{attributes:{positions:triPositionBuffer,texCoords:triTexCoordBuffer}},vertexCount:4,maxTexture:maxWeightsTexture,colorTexture:colorTexture,aggregationMode:AGGREGATION_MODE[aggregation]||0,texture:weightsTexture,intensity:intensity,threshold:threshold,colorDomain:colorDomain})}finalizeState(context){super.finalizeState(context);const{weightsTransform:weightsTransform,weightsTexture:weightsTexture,maxWeightTransform:maxWeightTransform,maxWeightsTexture:maxWeightsTexture,triPositionBuffer:triPositionBuffer,triTexCoordBuffer:triTexCoordBuffer,colorTexture:colorTexture,updateTimer:updateTimer}=this.state;null==weightsTransform||weightsTransform.delete(),null==weightsTexture||weightsTexture.delete(),null==maxWeightTransform||maxWeightTransform.delete(),null==maxWeightsTexture||maxWeightsTexture.delete(),null==triPositionBuffer||triPositionBuffer.delete(),null==triTexCoordBuffer||triTexCoordBuffer.delete(),null==colorTexture||colorTexture.delete(),updateTimer&&clearTimeout(updateTimer)}_getAttributeManager(){return new attribute_manager.Z(this.context.gl,{id:this.props.id,stats:this.context.stats})}_getChangeFlags(opts){const changeFlags={},{dimensions:dimensions}=this.state;changeFlags.dataChanged=this.isAttributeChanged()||this.isAggregationDirty(opts,{compareAll:!0,dimension:dimensions.data}),changeFlags.viewportChanged=opts.changeFlags.viewportChanged;const{zoom:zoom}=this.state;return opts.context.viewport&&opts.context.viewport.zoom===zoom||(changeFlags.viewportZoomChanged=!0),changeFlags}_createTextures(){const{gl:gl}=this.context,{textureSize:textureSize,format:format,type:type}=this.state;this.setState({weightsTexture:new texture_2d.Z(gl,{width:textureSize,height:textureSize,format:format,type:type,...TEXTURE_OPTIONS}),maxWeightsTexture:new texture_2d.Z(gl,{format:format,type:type,...TEXTURE_OPTIONS})})}_setupAttributes(){this.getAttributeManager().add({positions:{size:3,type:5130,accessor:"getPosition"},weights:{size:1,accessor:"getWeight"}}),this.setState({positionAttributeName:"positions"})}_setupTextureParams(){const{gl:gl}=this.context,{weightsTextureSize:weightsTextureSize}=this.props,textureSize=Math.min(weightsTextureSize,(0,esm.ZS)(gl,3379)),floatTargetSupport=(0,features.ag)(gl,FLOAT_TARGET_FEATURES),{format:format,type:type}=function getTextureParams({gl:gl,floatTargetSupport:floatTargetSupport}){return floatTargetSupport?{format:(0,esm.D0)(gl)?34836:6408,type:5126}:{format:6408,type:5121}}({gl:gl,floatTargetSupport:floatTargetSupport}),weightsScale=floatTargetSupport?1:1/255;this.setState({textureSize:textureSize,format:format,type:type,weightsScale:weightsScale}),floatTargetSupport||log.Z.warn("HeatmapLayer: ".concat(this.id," rendering to float texture not supported, fallingback to low precession format"))()}getShaders(type){return super.getShaders("max-weights-transform"===type?{vs:"attribute vec4 inTexture;\nvarying vec4 outTexture;\n\nvoid main()\n{\noutTexture = inTexture;\ngl_Position = vec4(0, 0, 0, 1.);\ngl_PointSize = 1.0;\n}\n",_fs:"varying vec4 outTexture;\nvoid main() {\n gl_FragColor = outTexture;\n gl_FragColor.g = outTexture.r / max(1.0, outTexture.a);\n}\n"}:{vs:"attribute vec3 positions;\nattribute vec3 positions64Low;\nattribute float weights;\nvarying vec4 weightsTexture;\nuniform float radiusPixels;\nuniform float textureWidth;\nuniform vec4 commonBounds;\nuniform float weightsScale;\nvoid main()\n{\n weightsTexture = vec4(weights * weightsScale, 0., 0., 1.);\n\n float radiusTexels = project_pixel_size(radiusPixels) * textureWidth / (commonBounds.z - commonBounds.x);\n gl_PointSize = radiusTexels * 2.;\n\n vec3 commonPosition = project_position(positions, positions64Low);\n gl_Position.xy = (commonPosition.xy - commonBounds.xy) / (commonBounds.zw - commonBounds.xy) ;\n gl_Position.xy = (gl_Position.xy * 2.) - (1.);\n}\n",_fs:"varying vec4 weightsTexture;\nfloat gaussianKDE(float u){\n return pow(2.71828, -u*u/0.05555)/(1.77245385*0.166666);\n}\nvoid main()\n{\n float dist = length(gl_PointCoord - vec2(0.5, 0.5));\n if (dist > 0.5) {\n discard;\n }\n gl_FragColor = weightsTexture * gaussianKDE(2. * dist);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n"})}_createWeightsTransform(shaders={}){var _weightsTransform;const{gl:gl}=this.context;let{weightsTransform:weightsTransform}=this.state;const{weightsTexture:weightsTexture}=this.state;null===(_weightsTransform=weightsTransform)||void 0===_weightsTransform||_weightsTransform.delete(),weightsTransform=new transform.Z(gl,{id:"".concat(this.id,"-weights-transform"),elementCount:1,_targetTexture:weightsTexture,_targetTextureVarying:"weightsTexture",...shaders}),this.setState({weightsTransform:weightsTransform})}_setupResources(){const{gl:gl}=this.context;this._createTextures();const{textureSize:textureSize,weightsTexture:weightsTexture,maxWeightsTexture:maxWeightsTexture}=this.state,weightsTransformShaders=this.getShaders("weights-transform");this._createWeightsTransform(weightsTransformShaders);const maxWeightsTransformShaders=this.getShaders("max-weights-transform"),maxWeightTransform=new transform.Z(gl,{id:"".concat(this.id,"-max-weights-transform"),_sourceTextures:{inTexture:weightsTexture},_targetTexture:maxWeightsTexture,_targetTextureVarying:"outTexture",...maxWeightsTransformShaders,elementCount:textureSize*textureSize});this.setState({weightsTexture:weightsTexture,maxWeightsTexture:maxWeightsTexture,maxWeightTransform:maxWeightTransform,zoom:null,triPositionBuffer:new buffer.Z(gl,{byteLength:48,accessor:{size:3}}),triTexCoordBuffer:new buffer.Z(gl,{byteLength:48,accessor:{size:2}})})}updateShaders(shaderOptions){this._createWeightsTransform(shaderOptions)}_updateMaxWeightValue(){const{maxWeightTransform:maxWeightTransform}=this.state;maxWeightTransform.run({parameters:{blend:!0,depthTest:!1,blendFunc:[1,1],blendEquation:32776}})}_updateBounds(forceUpdate=!1){const{viewport:viewport}=this.context,viewportCorners=[viewport.unproject([0,0]),viewport.unproject([viewport.width,0]),viewport.unproject([viewport.width,viewport.height]),viewport.unproject([0,viewport.height])].map((p=>p.map(Math.fround))),visibleWorldBounds=function getBounds(points){const x=points.map((p=>p[0])),y=points.map((p=>p[1])),xMin=Math.min.apply(null,x),xMax=Math.max.apply(null,x);return[xMin,Math.min.apply(null,y),xMax,Math.max.apply(null,y)]}(viewportCorners),newState={visibleWorldBounds:visibleWorldBounds,viewportCorners:viewportCorners};let boundsChanged=!1;if(forceUpdate||!this.state.worldBounds||!function boundsContain(currentBounds,targetBounds){return targetBounds[0]>=currentBounds[0]&&targetBounds[2]<=currentBounds[2]&&targetBounds[1]>=currentBounds[1]&&targetBounds[3]<=currentBounds[3]}(this.state.worldBounds,visibleWorldBounds)){const scaledCommonBounds=this._worldToCommonBounds(visibleWorldBounds),worldBounds=this._commonToWorldBounds(scaledCommonBounds);this.props.coordinateSystem===constants.COORDINATE_SYSTEM.LNGLAT&&(worldBounds[1]=Math.max(worldBounds[1],-85.051129),worldBounds[3]=Math.min(worldBounds[3],85.051129),worldBounds[0]=Math.max(worldBounds[0],-360),worldBounds[2]=Math.min(worldBounds[2],360));const normalizedCommonBounds=this._worldToCommonBounds(worldBounds);newState.worldBounds=worldBounds,newState.normalizedCommonBounds=normalizedCommonBounds,boundsChanged=!0}return this.setState(newState),boundsChanged}_updateTextureRenderingBounds(){const{triPositionBuffer:triPositionBuffer,triTexCoordBuffer:triTexCoordBuffer,normalizedCommonBounds:normalizedCommonBounds,viewportCorners:viewportCorners}=this.state,{viewport:viewport}=this.context;triPositionBuffer.subData(packVertices(viewportCorners,3));const textureBounds=viewportCorners.map((p=>function getTextureCoordinates(point,bounds){const[xMin,yMin,xMax,yMax]=bounds;return[(point[0]-xMin)/(xMax-xMin),(point[1]-yMin)/(yMax-yMin)]}(viewport.projectPosition(p),normalizedCommonBounds)));triTexCoordBuffer.subData(packVertices(textureBounds,2))}_updateColorTexture(opts){const{colorRange:colorRange}=opts.props;let{colorTexture:colorTexture}=this.state;const colors=colorRangeToFlatArray(colorRange,!1,Uint8Array);colorTexture?colorTexture.setImageData({data:colors,width:colorRange.length}):colorTexture=new texture_2d.Z(this.context.gl,{data:colors,width:colorRange.length,height:1,...TEXTURE_OPTIONS}),this.setState({colorTexture:colorTexture})}_updateWeightmap(){const{radiusPixels:radiusPixels,colorDomain:colorDomain,aggregation:aggregation}=this.props,{weightsTransform:weightsTransform,worldBounds:worldBounds,textureSize:textureSize,weightsTexture:weightsTexture,weightsScale:weightsScale}=this.state;this.state.isWeightMapDirty=!1;const commonBounds=this._worldToCommonBounds(worldBounds,{useLayerCoordinateSystem:!0});if(colorDomain&&"SUM"===aggregation){const{viewport:viewport}=this.context,metersPerPixel=viewport.distanceScales.metersPerUnit[2]*(commonBounds[2]-commonBounds[0])/textureSize;this.state.colorDomain=colorDomain.map((x=>x*metersPerPixel*weightsScale))}else this.state.colorDomain=colorDomain||DEFAULT_COLOR_DOMAIN;const uniforms={radiusPixels:radiusPixels,commonBounds:commonBounds,textureWidth:textureSize,weightsScale:weightsScale};weightsTransform.update({elementCount:this.getNumInstances()}),(0,esm.s8)(this.context.gl,{clearColor:[0,0,0,0]},(()=>{weightsTransform.run({uniforms:uniforms,parameters:{blend:!0,depthTest:!1,blendFunc:[1,1],blendEquation:32774},clearRenderTarget:!0,attributes:this.getAttributes(),moduleSettings:this.getModuleSettings()})})),this._updateMaxWeightValue(),weightsTexture.setParameters({10240:9729,10241:9729})}_debouncedUpdateWeightmap(fromTimer=!1){let{updateTimer:updateTimer}=this.state;const{debounceTimeout:debounceTimeout}=this.props;fromTimer?(updateTimer=null,this._updateBounds(!0),this._updateTextureRenderingBounds(),this.setState({isWeightMapDirty:!0})):(this.setState({isWeightMapDirty:!1}),clearTimeout(updateTimer),updateTimer=setTimeout(this._debouncedUpdateWeightmap.bind(this,!0),debounceTimeout)),this.setState({updateTimer:updateTimer})}_worldToCommonBounds(worldBounds,opts={}){const{useLayerCoordinateSystem:useLayerCoordinateSystem=!1}=opts,[minLong,minLat,maxLong,maxLat]=worldBounds,{viewport:viewport}=this.context,{textureSize:textureSize}=this.state,{coordinateSystem:coordinateSystem}=this.props,offsetMode=useLayerCoordinateSystem&&(coordinateSystem===constants.COORDINATE_SYSTEM.LNGLAT_OFFSETS||coordinateSystem===constants.COORDINATE_SYSTEM.METER_OFFSETS),offsetOriginCommon=offsetMode?viewport.projectPosition(this.props.coordinateOrigin):[0,0],size=2*textureSize/viewport.scale;let bottomLeftCommon,topRightCommon;return useLayerCoordinateSystem&&!offsetMode?(bottomLeftCommon=this.projectPosition([minLong,minLat,0]),topRightCommon=this.projectPosition([maxLong,maxLat,0])):(bottomLeftCommon=viewport.projectPosition([minLong,minLat,0]),topRightCommon=viewport.projectPosition([maxLong,maxLat,0])),function scaleToAspectRatio(boundingBox,width,height){const[xMin,yMin,xMax,yMax]=boundingBox,currentWidth=xMax-xMin,currentHeight=yMax-yMin;let newWidth=currentWidth,newHeight=currentHeight;currentWidth/currentHeight180&&(props.bearing=bearing<0?bearing+360:bearing-360),null!==longitude&&null!==fromProps.longitude&&Math.abs(longitude-fromProps.longitude)>180&&(props.longitude=longitude<0?longitude+360:longitude-360),props}_move(direction,speed,fromPosition=this.getViewportProps().position){const delta=direction.scale(speed);return this._getUpdatedState({position:new _math_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z(fromPosition).add(delta)})}getDirection(use2D=!1){return new _math_gl_core__WEBPACK_IMPORTED_MODULE_2__.Z({bearing:this.getViewportProps().bearing,pitch:use2D?90:90+this.getViewportProps().pitch}).toVector3().normalize()}_getUpdatedState(newProps){return new FirstPersonState({...this.getViewportProps(),...this.getState(),...newProps})}applyConstraints(props){const{pitch:pitch,maxPitch:maxPitch,minPitch:minPitch,longitude:longitude,bearing:bearing}=props;return props.pitch=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_3__.uZ)(pitch,minPitch,maxPitch),null!==longitude&&(longitude<-180||longitude>180)&&(props.longitude=(0,_utils_math_utils__WEBPACK_IMPORTED_MODULE_4__.wQ)(longitude+180,360)-180),(bearing<-180||bearing>180)&&(props.bearing=(0,_utils_math_utils__WEBPACK_IMPORTED_MODULE_4__.wQ)(bearing+180,360)-180),props}}class FirstPersonController extends _controller__WEBPACK_IMPORTED_MODULE_5__.Z{constructor(...args){super(...args),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__.Z)(this,"ControllerState",FirstPersonState),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new _transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_7__.Z(["position","pitch","bearing"])})}}},"./node_modules/@deck.gl/core/dist/esm/effects/lighting/camera-light.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return CameraLight}});var _point_light__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/point-light.js"),_shaderlib_project_viewport_uniforms__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/viewport-uniforms.js");class CameraLight extends _point_light__WEBPACK_IMPORTED_MODULE_0__.c{getProjectedLight({layer:layer}){const{projectedLight:projectedLight}=this,viewport=layer.context.viewport,{coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,modelMatrix:modelMatrix}=layer.props,{project_uCameraPosition:project_uCameraPosition}=(0,_shaderlib_project_viewport_uniforms__WEBPACK_IMPORTED_MODULE_1__.C)({viewport:viewport,modelMatrix:modelMatrix,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin});return projectedLight.color=this.color,projectedLight.intensity=this.intensity,projectedLight.position=project_uCameraPosition,projectedLight}}},"./node_modules/@deck.gl/core/dist/esm/effects/lighting/point-light.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return PointLight}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_shaderlib_project_project_functions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project-functions.js"),_lib_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");const DEFAULT_LIGHT_COLOR=[255,255,255],DEFAULT_LIGHT_INTENSITY=1,DEFAULT_ATTENUATION=[0,0,1],DEFAULT_LIGHT_POSITION=[0,0,1];let idCount=0;class PointLight{constructor(props={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"id",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"color",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"intensity",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"type","point"),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"position",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"attenuation",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"projectedLight",void 0);const{color:color=DEFAULT_LIGHT_COLOR}=props,{intensity:intensity=DEFAULT_LIGHT_INTENSITY}=props,{position:position=DEFAULT_LIGHT_POSITION}=props;this.id=props.id||"point-".concat(idCount++),this.color=color,this.intensity=intensity,this.type="point",this.position=position,this.attenuation=function getAttenuation(props){if(props.attenuation)return props.attenuation;if("intensity"in props)return[0,0,props.intensity||0];return DEFAULT_ATTENUATION}(props),this.projectedLight={...this}}getProjectedLight({layer:layer}){const{projectedLight:projectedLight}=this,viewport=layer.context.viewport,{coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin}=layer.props,position=(0,_shaderlib_project_project_functions__WEBPACK_IMPORTED_MODULE_1__.D)(this.position,{viewport:viewport,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,fromCoordinateSystem:viewport.isGeospatial?_lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.LNGLAT:_lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.CARTESIAN,fromCoordinateOrigin:[0,0,0]});return projectedLight.color=this.color,projectedLight.intensity=this.intensity,projectedLight.position=position,projectedLight}}},"./node_modules/@deck.gl/core/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AmbientLight:function(){return ambient_light.M},AttributeManager:function(){return attribute_manager.Z},COORDINATE_SYSTEM:function(){return constants.COORDINATE_SYSTEM},CompositeLayer:function(){return composite_layer.Z},Controller:function(){return controller.Z},Deck:function(){return deck.Z},DeckRenderer:function(){return deck_renderer.Z},DirectionalLight:function(){return directional_light.O},FirstPersonController:function(){return first_person_controller.Z},FirstPersonView:function(){return first_person_view.Z},FirstPersonViewport:function(){return first_person_viewport.Z},FlyToInterpolator:function(){return FlyToInterpolator},Layer:function(){return lib_layer.Z},LayerExtension:function(){return layer_extension.Z},LayerManager:function(){return layer_manager.Z},LightingEffect:function(){return lighting_effect.Z},LinearInterpolator:function(){return linear_interpolator.Z},MapController:function(){return map_controller.Z},MapView:function(){return map_view.Z},OPERATION:function(){return constants.k8},OrbitController:function(){return orbit_controller.Z},OrbitView:function(){return orbit_view.Z},OrbitViewport:function(){return orbit_viewport.Z},OrthographicController:function(){return orthographic_controller.Z},OrthographicView:function(){return orthographic_view.Z},OrthographicViewport:function(){return orthographic_viewport.Z},PointLight:function(){return point_light.c},PostProcessEffect:function(){return PostProcessEffect},TRANSITION_EVENTS:function(){return transition_manager.r},Tesselator:function(){return tesselator.Z},TransitionInterpolator:function(){return transition_interpolator.Z},UNIT:function(){return constants.iI},VERSION:function(){return init.q},View:function(){return view.Z},Viewport:function(){return viewport.Z},WebMercatorViewport:function(){return web_mercator_viewport.Z},_CameraLight:function(){return camera_light.Z},_GlobeController:function(){return GlobeController},_GlobeView:function(){return GlobeView},_GlobeViewport:function(){return globe_viewport.Z},_LayersPass:function(){return layers_pass.Z},_PickLayersPass:function(){return pick_layers_pass.Z},_SunLight:function(){return SunLight},_compareProps:function(){return props.tg},_count:function(){return count.Q},_deepEqual:function(){return deep_equal.v},_fillArray:function(){return flatten.k},_flatten:function(){return flatten.x},_memoize:function(){return memoize.Z},_mergeShaders:function(){return shader.l},assert:function(){return assert.Z},createIterable:function(){return iterable_utils.jB},fp64LowPart:function(){return math_utils.Ks},gouraudLighting:function(){return phong_lighting.N},log:function(){return log.Z},phongLighting:function(){return phong_lighting.s},picking:function(){return picking.Z},project:function(){return project.Z},project32:function(){return project32.Z},shadow:function(){return shadow.Z}});var init=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/init.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lighting_effect=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/lighting-effect.js"),ambient_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/ambient-light.js"),directional_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/directional-light.js"),point_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/point-light.js"),camera_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/camera-light.js"),defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");const DEGREES_TO_RADIANS=Math.PI/180,DAY_IN_MS=864e5,JD1970=2440588,JD2000=2451545,e=23.4397*DEGREES_TO_RADIANS,M0=357.5291,M1=.98560028,THETA0=280.147,THETA1=360.9856235;function getSunPosition(timestamp,latitude,longitude){const longitudeWestInRadians=DEGREES_TO_RADIANS*-longitude,phi=DEGREES_TO_RADIANS*latitude,d=function toDays(timestamp){return function toJulianDay(timestamp){const ts="number"==typeof timestamp?timestamp:timestamp.getTime();return ts/DAY_IN_MS-.5+JD1970}(timestamp)-JD2000}(timestamp),c=function getSunCoords(dates){const L=function getEclipticLongitude(meanAnomaly){const M=meanAnomaly,C=DEGREES_TO_RADIANS*(1.9148*Math.sin(M)+.02*Math.sin(2*M)+3e-4*Math.sin(3*M));return M+C+102.9372*DEGREES_TO_RADIANS+Math.PI}(function getSolarMeanAnomaly(days){return DEGREES_TO_RADIANS*(M0+M1*days)}(dates));return{declination:getDeclination(L,0),rightAscension:getRightAscension(L,0)}}(d),H=function getSiderealTime(dates,longitudeWestInRadians){return DEGREES_TO_RADIANS*(THETA0+THETA1*dates)-longitudeWestInRadians}(d,longitudeWestInRadians)-c.rightAscension;return{azimuth:getAzimuth(H,phi,c.declination),altitude:getAltitude(H,phi,c.declination)}}function getSunDirection(timestamp,latitude,longitude){const{azimuth:azimuth,altitude:altitude}=getSunPosition(timestamp,latitude,longitude);return[Math.sin(azimuth)*Math.cos(altitude),Math.cos(azimuth)*Math.cos(altitude),-Math.sin(altitude)]}function getRightAscension(eclipticLongitude,b){const lambda=eclipticLongitude;return Math.atan2(Math.sin(lambda)*Math.cos(e)-Math.tan(b)*Math.sin(e),Math.cos(lambda))}function getDeclination(eclipticLongitude,b){const lambda=eclipticLongitude;return Math.asin(Math.sin(b)*Math.cos(e)+Math.cos(b)*Math.sin(e)*Math.sin(lambda))}function getAzimuth(hourAngle,latitudeInRadians,declination){const H=hourAngle,phi=latitudeInRadians,delta=declination;return Math.atan2(Math.sin(H),Math.cos(H)*Math.sin(phi)-Math.tan(delta)*Math.cos(phi))}function getAltitude(hourAngle,latitudeInRadians,declination){const H=hourAngle,phi=latitudeInRadians,delta=declination;return Math.asin(Math.sin(phi)*Math.sin(delta)+Math.cos(phi)*Math.cos(delta)*Math.cos(H))}class SunLight extends directional_light.O{constructor(opts){super(opts),(0,defineProperty.Z)(this,"timestamp",void 0),this.timestamp=opts.timestamp}getProjectedLight({layer:layer}){const{viewport:viewport}=layer.context;if(viewport.resolution&&viewport.resolution>0){const[x,y,z]=getSunDirection(this.timestamp,0,0);this.direction=[x,-z,y]}else{const{latitude:latitude,longitude:longitude}=viewport;this.direction=getSunDirection(this.timestamp,latitude,longitude)}return this}}var clip_space=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/utils/clip-space.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),clear=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/clear.js"),pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/pass.js");class ScreenPass extends pass.Z{constructor(gl,props){super(gl,props),(0,defineProperty.Z)(this,"model",void 0);const{module:module,fs:fs,id:id}=props;this.model=new clip_space.Z(gl,{id:id,fs:fs,modules:[module]})}render(params){const gl=this.gl;(0,esm.dR)(gl,{viewport:[0,0,gl.drawingBufferWidth,gl.drawingBufferHeight]}),(0,esm.s8)(gl,{framebuffer:params.outputBuffer,clearColor:[0,0,0,0]},(()=>this._renderPass(gl,params)))}delete(){this.model.delete(),this.model=null}_renderPass(gl,options){const{inputBuffer:inputBuffer}=options;(0,clear.Z)(gl,{color:!0}),this.model.draw({moduleSettings:options.moduleSettings,uniforms:{texture:inputBuffer,texSize:[inputBuffer.width,inputBuffer.height]},parameters:{depthWrite:!1,depthTest:!1}})}}var shader_module=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/shader-module.js");class PostProcessEffect{constructor(module,props={}){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"module",void 0),(0,defineProperty.Z)(this,"passes",void 0),this.id="".concat(module.name,"-pass"),this.props=props,(0,shader_module.v)(module),this.module=module}setProps(props){this.props=props}preRender(){}postRender(gl,params){const passes=this.passes||function createPasses(gl,module,id){if(!module.passes){const fs=getFragmentShaderForRenderPass(module);return[new ScreenPass(gl,{id:id,module:module,fs:fs})]}return module.passes.map(((pass,index)=>{const fs=getFragmentShaderForRenderPass(module,pass),idn="".concat(id,"-").concat(index);return new ScreenPass(gl,{id:idn,module:module,fs:fs})}))}(gl,this.module,this.id);this.passes=passes;const{target:target}=params;let inputBuffer=params.inputBuffer,outputBuffer=params.swapBuffer;for(let index=0;index"uniform sampler2D texture;\nuniform vec2 texSize;\n\nvarying vec2 position;\nvarying vec2 coordinate;\nvarying vec2 uv;\n\nvoid main() {\n vec2 texCoord = coordinate;\n\n gl_FragColor = texture2D(texture, texCoord);\n gl_FragColor = ".concat(func,"(gl_FragColor, texSize, texCoord);\n}\n"),SAMPLER_FS_TEMPLATE=func=>"uniform sampler2D texture;\nuniform vec2 texSize;\n\nvarying vec2 position;\nvarying vec2 coordinate;\nvarying vec2 uv;\n\nvoid main() {\n vec2 texCoord = coordinate;\n\n gl_FragColor = ".concat(func,"(texture, texSize, texCoord);\n}\n");function getFragmentShaderForRenderPass(module,pass=module){if(pass.filter){const func="string"==typeof pass.filter?pass.filter:"".concat(module.name,"_filterColor");return FILTER_FS_TEMPLATE(func)}if(pass.sampler){const func="string"==typeof pass.sampler?pass.sampler:"".concat(module.name,"_sampleColor");return SAMPLER_FS_TEMPLATE(func)}return null}var layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/layers-pass.js"),pick_layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/pick-layers-pass.js"),deck=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/deck.js"),layer_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer-manager.js"),attribute_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/attribute/attribute-manager.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),deck_renderer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/deck-renderer.js"),viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js"),web_mercator_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/web-mercator-viewport.js"),globe_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/globe-viewport.js"),orbit_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orbit-viewport.js"),orthographic_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orthographic-viewport.js"),first_person_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/first-person-viewport.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),phong_lighting=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js"),shadow=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/shadow/shadow.js"),view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/view.js"),map_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/map-view.js"),first_person_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/first-person-view.js"),orbit_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/orbit-view.js"),orthographic_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/orthographic-view.js"),common=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/controller.js"),map_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/map-controller.js"),math_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/math-utils.js"),linear_interpolator=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/linear-interpolator.js");class GlobeState extends map_controller.U{applyConstraints(props){const{maxZoom:maxZoom,minZoom:minZoom,zoom:zoom}=props;props.zoom=(0,common.uZ)(zoom,minZoom,maxZoom);const{longitude:longitude,latitude:latitude}=props;return(longitude<-180||longitude>180)&&(props.longitude=(0,math_utils.wQ)(longitude+180,360)-180),props.latitude=(0,common.uZ)(latitude,-89,89),props}}class GlobeController extends controller.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"ControllerState",GlobeState),(0,defineProperty.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new linear_interpolator.Z(["longitude","latitude","zoom"])}),(0,defineProperty.Z)(this,"dragMode","pan")}setProps(props){super.setProps(props),this.dragRotate=!1,this.touchRotate=!1}}class GlobeView extends view.Z{get ViewportType(){return globe_viewport.Z}get ControllerType(){return GlobeController}}(0,defineProperty.Z)(GlobeView,"displayName","GlobeView");var first_person_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/first-person-controller.js"),orbit_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orbit-controller.js"),orthographic_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orthographic-controller.js"),layer_extension=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer-extension.js"),transition_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/transition-manager.js"),transition_interpolator=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/transition-interpolator.js"),dist_esm=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js");const LINEARLY_INTERPOLATED_PROPS={bearing:0,pitch:0,position:[0,0,0]},DEFAULT_OPTS={speed:1.2,curve:1.414};class FlyToInterpolator extends transition_interpolator.Z{constructor(opts={}){super({compare:["longitude","latitude","zoom","bearing","pitch","position"],extract:["width","height","longitude","latitude","zoom","bearing","pitch","position"],required:["width","height","latitude","longitude","zoom"]}),(0,defineProperty.Z)(this,"opts",void 0),this.opts={...DEFAULT_OPTS,...opts}}interpolateProps(startProps,endProps,t){const viewport=(0,dist_esm.if)(startProps,endProps,t,this.opts);for(const key in LINEARLY_INTERPOLATED_PROPS)viewport[key]=(0,common.t7)(startProps[key]||LINEARLY_INTERPOLATED_PROPS[key],endProps[key]||LINEARLY_INTERPOLATED_PROPS[key],t);return viewport}getDuration(startProps,endProps){let{transitionDuration:transitionDuration}=endProps;return"auto"===transitionDuration&&(transitionDuration=(0,dist_esm.up)(startProps,endProps,this.opts)),transitionDuration}}var log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),assert=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js"),iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),tesselator=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/tesselator.js"),flatten=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/flatten.js"),count=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/count.js"),deep_equal=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js"),memoize=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/memoize.js"),shader=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/shader.js"),props=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/props.js")},"./node_modules/@deck.gl/core/dist/esm/lib/layer-extension.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return LayerExtension}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_utils_deep_equal__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js");class LayerExtension{static get componentName(){return Object.prototype.hasOwnProperty.call(this,"extensionName")?this.extensionName:""}constructor(opts){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"opts",void 0),opts&&(this.opts=opts)}equals(extension){return this===extension||this.constructor===extension.constructor&&(0,_utils_deep_equal__WEBPACK_IMPORTED_MODULE_1__.v)(this.opts,extension.opts,1)}getShaders(extension){return null}getSubLayerProps(extension){const{defaultProps:defaultProps}=extension.constructor,newProps={updateTriggers:{}};for(const key in defaultProps)if(key in this.props){const propDef=defaultProps[key],propValue=this.props[key];newProps[key]=propValue,propDef&&"accessor"===propDef.type&&(newProps.updateTriggers[key]=this.props.updateTriggers[key],"function"==typeof propValue&&(newProps[key]=this.getSubLayerAccessor(propValue)))}return newProps}initializeState(context,extension){}updateState(params,extension){}onNeedsRedraw(extension){}getNeedsPickingBuffer(extension){return!1}draw(params,extension){}finalizeState(context,extension){}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(LayerExtension,"defaultProps",{}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(LayerExtension,"extensionName","LayerExtension")},"./node_modules/@deck.gl/core/dist/esm/utils/tesselator.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Tesselator}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_iterable_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),_typed_array_manager__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/typed-array-manager.js"),_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js");class Tesselator{constructor(opts){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"opts",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"typedArrayManager",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"indexStarts",[0]),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"vertexStarts",[0]),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"vertexCount",0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"instanceCount",0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"attributes",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_attributeDefs",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"data",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"getGeometry",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"geometryBuffer",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"buffers",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"positionSize",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"normalize",void 0);const{attributes:attributes={}}=opts;this.typedArrayManager=_typed_array_manager__WEBPACK_IMPORTED_MODULE_1__.Z,this.attributes={},this._attributeDefs=attributes,this.opts=opts,this.updateGeometry(opts)}updateGeometry(opts){Object.assign(this.opts,opts);const{data:data,buffers:buffers={},getGeometry:getGeometry,geometryBuffer:geometryBuffer,positionFormat:positionFormat,dataChanged:dataChanged,normalize:normalize=!0}=this.opts;if(this.data=data,this.getGeometry=getGeometry,this.positionSize=geometryBuffer&&geometryBuffer.size||("XY"===positionFormat?2:3),this.buffers=buffers,this.normalize=normalize,geometryBuffer&&((0,_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(data.startIndices),this.getGeometry=this.getGeometryFromBuffer(geometryBuffer),normalize||(buffers.positions=geometryBuffer)),this.geometryBuffer=buffers.positions,Array.isArray(dataChanged))for(const dataRange of dataChanged)this._rebuildGeometry(dataRange);else this._rebuildGeometry()}updatePartialGeometry({startRow:startRow,endRow:endRow}){this._rebuildGeometry({startRow:startRow,endRow:endRow})}getGeometryFromBuffer(geometryBuffer){const value=geometryBuffer.value||geometryBuffer;return ArrayBuffer.isView(value)?(0,_iterable_utils__WEBPACK_IMPORTED_MODULE_3__.jr)(value,{size:this.positionSize,offset:geometryBuffer.offset,stride:geometryBuffer.stride,startIndices:this.data.startIndices}):null}_allocate(instanceCount,copy){const{attributes:attributes,buffers:buffers,_attributeDefs:_attributeDefs,typedArrayManager:typedArrayManager}=this;for(const name in _attributeDefs)if(name in buffers)typedArrayManager.release(attributes[name]),attributes[name]=null;else{const def=_attributeDefs[name];def.copy=copy,attributes[name]=typedArrayManager.allocate(attributes[name],instanceCount,def)}}_forEachGeometry(visitor,startRow,endRow){const{data:data,getGeometry:getGeometry}=this,{iterable:iterable,objectInfo:objectInfo}=(0,_iterable_utils__WEBPACK_IMPORTED_MODULE_3__.jB)(data,startRow,endRow);for(const object of iterable){objectInfo.index++;visitor(getGeometry?getGeometry(object,objectInfo):null,objectInfo.index)}}_rebuildGeometry(dataRange){if(!this.data)return;let{indexStarts:indexStarts,vertexStarts:vertexStarts,instanceCount:instanceCount}=this;const{data:data,geometryBuffer:geometryBuffer}=this,{startRow:startRow=0,endRow:endRow=1/0}=dataRange||{},normalizedData={};if(dataRange||(indexStarts=[0],vertexStarts=[0]),this.normalize||!geometryBuffer)this._forEachGeometry(((geometry,dataIndex)=>{const normalizedGeometry=geometry&&this.normalizeGeometry(geometry);normalizedData[dataIndex]=normalizedGeometry,vertexStarts[dataIndex+1]=vertexStarts[dataIndex]+(normalizedGeometry?this.getGeometrySize(normalizedGeometry):0)}),startRow,endRow),instanceCount=vertexStarts[vertexStarts.length-1];else if(vertexStarts=data.startIndices,instanceCount=vertexStarts[data.length]||0,ArrayBuffer.isView(geometryBuffer))instanceCount=instanceCount||geometryBuffer.length/this.positionSize;else if(geometryBuffer instanceof _luma_gl_webgl__WEBPACK_IMPORTED_MODULE_4__.Z){const byteStride=geometryBuffer.accessor.stride||4*this.positionSize;instanceCount=instanceCount||geometryBuffer.byteLength/byteStride}else if(geometryBuffer.buffer){const byteStride=geometryBuffer.stride||4*this.positionSize;instanceCount=instanceCount||geometryBuffer.buffer.byteLength/byteStride}else if(geometryBuffer.value){const bufferValue=geometryBuffer.value,elementStride=geometryBuffer.stride/bufferValue.BYTES_PER_ELEMENT||this.positionSize;instanceCount=instanceCount||bufferValue.length/elementStride}this._allocate(instanceCount,Boolean(dataRange)),this.indexStarts=indexStarts,this.vertexStarts=vertexStarts,this.instanceCount=instanceCount;const context={};this._forEachGeometry(((geometry,dataIndex)=>{const normalizedGeometry=normalizedData[dataIndex]||geometry;context.vertexStart=vertexStarts[dataIndex],context.indexStart=indexStarts[dataIndex];const vertexEnd=dataIndexthis.longitude&&(left[0]-=360),[Math.min(left[0],right[0],top[0],bottom[0]),Math.min(left[1],right[1],top[1],bottom[1]),Math.max(left[0],right[0],top[0],bottom[0]),Math.max(left[1],right[1],top[1],bottom[1])]}unproject(xyz,{topLeft:topLeft=!0,targetZ:targetZ}={}){const[x,y,z]=xyz,y2=topLeft?y:this.height-y,{pixelUnprojectionMatrix:pixelUnprojectionMatrix}=this;let coord;if(Number.isFinite(z))coord=transformVector(pixelUnprojectionMatrix,[x,y2,z,1]);else{const coord0=transformVector(pixelUnprojectionMatrix,[x,y2,-1,1]),coord1=transformVector(pixelUnprojectionMatrix,[x,y2,1,1]),lt=256*((targetZ||0)/6370972+1),lSqr=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.x9(gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.lu([],coord0,coord1)),l0Sqr=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.x9(coord0),l1Sqr=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.x9(coord1),dSqr=4*((4*l0Sqr*l1Sqr-(lSqr-l0Sqr-l1Sqr)**2)/16)/lSqr,t=(Math.sqrt(l0Sqr-dSqr)-Math.sqrt(Math.max(0,lt*lt-dSqr)))/Math.sqrt(lSqr);coord=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.t7([],coord0,coord1,t)}const[X,Y,Z]=this.unprojectPosition(coord);return Number.isFinite(z)?[X,Y,Z]:Number.isFinite(targetZ)?[X,Y,targetZ]:[X,Y]}projectPosition(xyz){const[lng,lat,Z=0]=xyz,lambda=lng*DEGREES_TO_RADIANS,phi=lat*DEGREES_TO_RADIANS,cosPhi=Math.cos(phi),D=256*(Z/6370972+1);return[Math.sin(lambda)*cosPhi*D,-Math.cos(lambda)*cosPhi*D,Math.sin(phi)*D]}unprojectPosition(xyz){const[x,y,z]=xyz,D=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.Zh(xyz),phi=Math.asin(z/D);return[Math.atan2(x,-y)*RADIANS_TO_DEGREES,phi*RADIANS_TO_DEGREES,6370972*(D/256-1)]}projectFlat(xyz){return xyz}unprojectFlat(xyz){return xyz}panByPosition(coords,pixel){const fromPosition=this.unproject(pixel);return{longitude:coords[0]-fromPosition[0]+this.longitude,latitude:coords[1]-fromPosition[1]+this.latitude}}}function transformVector(matrix,vector){const result=gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_5__.fF([],vector,matrix);return gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_5__.bA(result,result,1/result[3]),result}},"./node_modules/@deck.gl/core/dist/esm/viewports/orbit-viewport.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return OrbitViewport}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_viewports_viewport__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js");const DEGREES_TO_RADIANS=Math.PI/180;function getViewMatrix({height:height,focalDistance:focalDistance,orbitAxis:orbitAxis,rotationX:rotationX,rotationOrbit:rotationOrbit,zoom:zoom}){const up="Z"===orbitAxis?[0,0,1]:[0,1,0],eye="Z"===orbitAxis?[0,-focalDistance,0]:[0,0,focalDistance],viewMatrix=(new _math_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z).lookAt({eye:eye,up:up});viewMatrix.rotateX(rotationX*DEGREES_TO_RADIANS),"Z"===orbitAxis?viewMatrix.rotateZ(rotationOrbit*DEGREES_TO_RADIANS):viewMatrix.rotateY(rotationOrbit*DEGREES_TO_RADIANS);const projectionScale=Math.pow(2,zoom)/height;return viewMatrix.scale(projectionScale),viewMatrix}class OrbitViewport extends _viewports_viewport__WEBPACK_IMPORTED_MODULE_2__.Z{constructor(props){const{height:height,projectionMatrix:projectionMatrix,fovy:fovy=50,orbitAxis:orbitAxis="Z",target:target=[0,0,0],rotationX:rotationX=0,rotationOrbit:rotationOrbit=0,zoom:zoom=0}=props,focalDistance=projectionMatrix?projectionMatrix[5]/2:(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.sj)(fovy);super({...props,longitude:void 0,viewMatrix:getViewMatrix({height:height||1,focalDistance:focalDistance,orbitAxis:orbitAxis,rotationX:rotationX,rotationOrbit:rotationOrbit,zoom:zoom}),fovy:fovy,focalDistance:focalDistance,position:target,zoom:zoom}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(this,"projectedCenter",void 0),this.projectedCenter=this.project(this.center)}unproject(xyz,{topLeft:topLeft=!0}={}){const[x,y,z=this.projectedCenter[2]]=xyz,y2=topLeft?y:this.height-y,[X,Y,Z]=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.CT)([x,y2,z],this.pixelUnprojectionMatrix);return[X,Y,Z]}panByPosition(coords,pixel){const p0=this.project(coords),nextCenter=[this.width/2+p0[0]-pixel[0],this.height/2+p0[1]-pixel[1],this.projectedCenter[2]];return{target:this.unproject(nextCenter)}}}},"./node_modules/@deck.gl/core/dist/esm/views/first-person-view.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return FirstPersonView}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_view__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/view.js"),_viewports_first_person_viewport__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/first-person-viewport.js"),_controllers_first_person_controller__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/first-person-controller.js");class FirstPersonView extends _view__WEBPACK_IMPORTED_MODULE_0__.Z{get ViewportType(){return _viewports_first_person_viewport__WEBPACK_IMPORTED_MODULE_1__.Z}get ControllerType(){return _controllers_first_person_controller__WEBPACK_IMPORTED_MODULE_2__.Z}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(FirstPersonView,"displayName","FirstPersonView")},"./node_modules/@deck.gl/core/dist/esm/views/orbit-view.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return OrbitView}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_view__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/view.js"),_viewports_orbit_viewport__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orbit-viewport.js"),_controllers_orbit_controller__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orbit-controller.js");class OrbitView extends _view__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(props={}){super(props),this.props.orbitAxis=props.orbitAxis||"Z"}get ViewportType(){return _viewports_orbit_viewport__WEBPACK_IMPORTED_MODULE_1__.Z}get ControllerType(){return _controllers_orbit_controller__WEBPACK_IMPORTED_MODULE_2__.Z}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(OrbitView,"displayName","OrbitView")},"./node_modules/@deck.gl/extensions/dist/esm/clip/clip-extension.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ClipExtension}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_deck_gl_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer-extension.js");const defaultProps={clipBounds:[0,0,1,1],clipByInstance:void 0},shaderFunction="\nuniform vec4 clip_bounds;\n\nbool clip_isInBounds(vec2 position) {\n return position.x >= clip_bounds[0] && position.y >= clip_bounds[1] && position.x < clip_bounds[2] && position.y < clip_bounds[3];\n}\n",shaderModuleVs={name:"clip-vs",vs:shaderFunction},injectionVs={"vs:#decl":"\nvarying float clip_isVisible;\n","vs:DECKGL_FILTER_GL_POSITION":"\n clip_isVisible = float(clip_isInBounds(geometry.worldPosition.xy));\n","fs:#decl":"\nvarying float clip_isVisible;\n","fs:DECKGL_FILTER_COLOR":"\n if (clip_isVisible < 0.5) discard;\n"},shaderModuleFs={name:"clip-fs",fs:shaderFunction},injectionFs={"vs:#decl":"\nvarying vec2 clip_commonPosition;\n","vs:DECKGL_FILTER_GL_POSITION":"\n clip_commonPosition = geometry.position.xy;\n","fs:#decl":"\nvarying vec2 clip_commonPosition;\n","fs:DECKGL_FILTER_COLOR":"\n if (!clip_isInBounds(clip_commonPosition)) discard;\n"};class ClipExtension extends _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__.Z{getShaders(){let clipByInstance="instancePositions"in this.getAttributeManager().attributes;return void 0!==this.props.clipByInstance&&(clipByInstance=Boolean(this.props.clipByInstance)),this.state.clipByInstance=clipByInstance,clipByInstance?{modules:[shaderModuleVs],inject:injectionVs}:{modules:[shaderModuleFs],inject:injectionFs}}draw({uniforms:uniforms}){const{clipBounds:clipBounds}=this.props;if(this.state.clipByInstance)uniforms.clip_bounds=clipBounds;else{const corner0=this.projectPosition([clipBounds[0],clipBounds[1],0]),corner1=this.projectPosition([clipBounds[2],clipBounds[3],0]);uniforms.clip_bounds=[Math.min(corner0[0],corner1[0]),Math.min(corner0[1],corner1[1]),Math.max(corner0[0],corner1[0]),Math.max(corner0[1],corner1[1])]}}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(ClipExtension,"defaultProps",defaultProps),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(ClipExtension,"extensionName","ClipExtension")},"./node_modules/@deck.gl/extensions/dist/esm/path-style/path-style-extension.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return PathStyleExtension}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),layer_extension=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer-extension.js"),shader=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/shader.js");const dashShaders={inject:{"vs:#decl":"\nattribute vec2 instanceDashArrays;\nattribute float instanceDashOffsets;\nvarying vec2 vDashArray;\nvarying float vDashOffset;\n","vs:#main-end":"\nvDashArray = instanceDashArrays;\nvDashOffset = instanceDashOffsets / width.x;\n","fs:#decl":"\nuniform float dashAlignMode;\nuniform float capType;\nuniform bool dashGapPickable;\nvarying vec2 vDashArray;\nvarying float vDashOffset;\n\nfloat round(float x) {\n return floor(x + 0.5);\n}\n","fs:#main-start":"\n float solidLength = vDashArray.x;\n float gapLength = vDashArray.y;\n float unitLength = solidLength + gapLength;\n\n float offset;\n\n if (unitLength > 0.0) {\n if (dashAlignMode == 0.0) {\n offset = vDashOffset;\n } else {\n unitLength = vPathLength / round(vPathLength / unitLength);\n offset = solidLength / 2.0;\n }\n\n float unitOffset = mod(vPathPosition.y + offset, unitLength);\n\n if (gapLength > 0.0 && unitOffset > solidLength) {\n if (capType <= 0.5) {\n if (!(dashGapPickable && picking_uActive)) {\n discard;\n }\n } else {\n float distToEnd = length(vec2(\n min(unitOffset - solidLength, unitLength - unitOffset),\n vPathPosition.x\n ));\n if (distToEnd > 1.0) {\n if (!(dashGapPickable && picking_uActive)) {\n discard;\n }\n }\n }\n }\n }\n"}},offsetShaders={inject:{"vs:#decl":"\nattribute float instanceOffsets;\n","vs:DECKGL_FILTER_SIZE":"\n float offsetWidth = abs(instanceOffsets * 2.0) + 1.0;\n size *= offsetWidth;\n","vs:#main-end":"\n float offsetWidth = abs(instanceOffsets * 2.0) + 1.0;\n float offsetDir = sign(instanceOffsets);\n vPathPosition.x = (vPathPosition.x + offsetDir) * offsetWidth - offsetDir;\n vPathPosition.y *= offsetWidth;\n vPathLength *= offsetWidth;\n","fs:#main-start":"\n float isInside;\n isInside = step(-1.0, vPathPosition.x) * step(vPathPosition.x, 1.0);\n if (isInside == 0.0) {\n discard;\n }\n"}};var vec3=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js");class PathStyleExtension extends layer_extension.Z{constructor({dash:dash=!1,offset:offset=!1,highPrecisionDash:highPrecisionDash=!1}={}){super({dash:dash||highPrecisionDash,offset:offset,highPrecisionDash:highPrecisionDash})}isEnabled(layer){return"pathTesselator"in layer.state}getShaders(extension){if(!extension.isEnabled(this))return null;let result={};return extension.opts.dash&&(result=(0,shader.l)(result,dashShaders)),extension.opts.offset&&(result=(0,shader.l)(result,offsetShaders)),result}initializeState(context,extension){const attributeManager=this.getAttributeManager();attributeManager&&extension.isEnabled(this)&&(extension.opts.dash&&attributeManager.addInstanced({instanceDashArrays:{size:2,accessor:"getDashArray"}}),extension.opts.highPrecisionDash&&attributeManager.addInstanced({instanceDashOffsets:{size:1,accessor:"getPath",transform:extension.getDashOffsets.bind(this)}}),extension.opts.offset&&attributeManager.addInstanced({instanceOffsets:{size:1,accessor:"getOffset"}}))}updateState(params,extension){if(!extension.isEnabled(this))return;const uniforms={};extension.opts.dash&&(uniforms.dashAlignMode=this.props.dashJustified?1:0,uniforms.dashGapPickable=Boolean(this.props.dashGapPickable)),this.state.model.setUniforms(uniforms)}getDashOffsets(path){const result=[0],positionSize="XY"===this.props.positionFormat?2:3,isNested=Array.isArray(path[0]),geometrySize=isNested?path.length:path.length/positionSize;let p,prevP;for(let i=0;i0&&(result[i]=result[i-1]+(0,vec3.TK)(prevP,p)),prevP=p;return result}}(0,defineProperty.Z)(PathStyleExtension,"defaultProps",{getDashArray:{type:"accessor",value:[0,0]},getOffset:{type:"accessor",value:0},dashJustified:!1,dashGapPickable:!1}),(0,defineProperty.Z)(PathStyleExtension,"extensionName","PathStyleExtension")},"./node_modules/@deck.gl/geo-layers/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{GeohashLayer:function(){return GeohashLayer},GreatCircleLayer:function(){return GreatCircleLayer},H3ClusterLayer:function(){return H3ClusterLayer},H3HexagonLayer:function(){return H3HexagonLayer},MVTLayer:function(){return MVTLayer},QuadkeyLayer:function(){return QuadkeyLayer},S2Layer:function(){return S2Layer},TerrainLayer:function(){return TerrainLayer},Tile3DLayer:function(){return Tile3DLayer},TileLayer:function(){return TileLayer},TripsLayer:function(){return TripsLayer},_GeoCellLayer:function(){return GeoCellLayer},_Tile2DHeader:function(){return Tile2DHeader},_Tileset2D:function(){return Tileset2D},_WMSLayer:function(){return WMSLayer},_getURLFromTemplate:function(){return getURLFromTemplate}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),deep_equal=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),bitmap_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/bitmap-layer/bitmap-layer.js");class DataSource{constructor(props){(0,defineProperty.Z)(this,"fetch",void 0),(0,defineProperty.Z)(this,"loadOptions",void 0),(0,defineProperty.Z)(this,"_needsRefresh",!0),(0,defineProperty.Z)(this,"props",void 0),this.props={...props},this.loadOptions={...props.loadOptions},this.fetch=function getFetchFunction(options){const fetchFunction=null==options?void 0:options.fetch;if(fetchFunction&&"function"==typeof fetchFunction)return(url,fetchOptions)=>fetchFunction(url,fetchOptions);const fetchOptions=null==options?void 0:options.fetch;if(fetchOptions&&"function"!=typeof fetchOptions)return url=>fetch(url,fetchOptions);return url=>fetch(url)}(this.loadOptions)}setProps(props){this.props=Object.assign(this.props,props),this.setNeedsRefresh()}setNeedsRefresh(){this._needsRefresh=!0}getNeedsRefresh(){let clear=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const needsRefresh=this._needsRefresh;return clear&&(this._needsRefresh=!1),needsRefresh}}class ImageSource extends DataSource{}var image_loader=__webpack_require__("./node_modules/@loaders.gl/images/dist/esm/image-loader.js");class ImageService extends ImageSource{constructor(props){super(props)}async getMetadata(){throw new Error("ImageSource.getMetadata not implemented")}async getImage(parameters){const granularParameters=this.getGranularParameters(parameters),url=this.getURLFromTemplate(granularParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();return await image_loader.S.parse(arrayBuffer)}getGranularParameters(parameters){const[east,north,west,south]=parameters.bbox;return{...parameters,east:east,north:north,south:south,west:west}}getURLFromTemplate(parameters){let url=this.props.url;for(const[key,value]of Object.entries(parameters))url=url.replace("${".concat(key,"}"),String(value)),url=url.replace("{".concat(key,"}"),String(value));return url}}(0,defineProperty.Z)(ImageService,"type","template"),(0,defineProperty.Z)(ImageService,"testURL",(url=>url.toLowerCase().includes("{")));var fxp=__webpack_require__("./node_modules/fast-xml-parser/src/fxp.js");function uncapitalizeKeys(object){if(Array.isArray(object))return object.map((element=>uncapitalizeKeys(element)));if(object&&"object"==typeof object){const newObject={};for(const[key,value]of Object.entries(object))newObject[(str=key,"string"==typeof str?str.charAt(0).toLowerCase()+str.slice(1):str)]=uncapitalizeKeys(value);return newObject}var str;return object}const XMLLoader={name:"XML",id:"xml",module:"xml",version:"3.4.15",worker:!1,extensions:["xml"],mimeTypes:["application/xml","text/xml"],testText:function testXMLFile(text){return text.startsWith("parseTextSync((new TextDecoder).decode(arrayBuffer),options),parseTextSync:(text,options)=>parseTextSync(text,options)};function parseTextSync(text,options){var _options$xml;const xmlOptions={...XMLLoader.options.xml,...null==options?void 0:options.xml};if("fast-xml-parser"===xmlOptions.parser){const fastXMLOptions={allowBooleanAttributes:!0,ignoreDeclaration:!0,removeNSPrefix:xmlOptions.removeNSPrefix,textNodeName:xmlOptions.textNodeName,isArray:(name,jpath,isLeafNode,isAttribute)=>{var _xmlOptions$arrayPath;const array=Boolean(null==xmlOptions||null===(_xmlOptions$arrayPath=xmlOptions.arrayPaths)||void 0===_xmlOptions$arrayPath?void 0:_xmlOptions$arrayPath.some((path=>jpath===path)));return array},...null==options?void 0:options._fastXML},xml=function fastParseXML(text,options){return new fxp.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"",...options}).parse(text)}(text,fastXMLOptions);return xmlOptions.uncapitalizeKeys?uncapitalizeKeys(xml):xml}throw new Error(null==options||null===(_options$xml=options.xml)||void 0===_options$xml?void 0:_options$xml.parser)}function getXMLArray(xmlValue){return Array.isArray(xmlValue)?xmlValue:xmlValue?[xmlValue]:[]}function getXMLStringArray(xmlValue){const xmlArray=getXMLArray(xmlValue);return xmlArray.length>0&&xmlArray.every((_=>"string"==typeof _))?xmlArray:[]}function getXMLFloat(xmlValue){switch(typeof xmlValue){case"number":return xmlValue;case"string":return parseFloat(xmlValue);default:return}}function getXMLInteger(xmlValue){switch(typeof xmlValue){case"number":return xmlValue;case"string":return parseInt(xmlValue,10);default:return}}function getXMLBoolean(xmlValue){switch(xmlValue){case"true":case"1":return!0;default:return!1}}function parseWMSCapabilities(xmlText,options){const parsedXML=XMLLoader.parseTextSync(xmlText,options),xmlCapabilities=parsedXML.WMT_MS_Capabilities||parsedXML.WMS_Capabilities||parsedXML,capabilities=function extractCapabilities(xml){var _xml$Service,_xml$Service2,_xml$Service3,_xml$Service4,_xml$Service5,_xml$Service6,_xml$Service6$Keyword,_xml$Service7,_xml$Service8,_xml$Service9,_xml$Service10,_xml$Service11,_xml$Service12,_xml$Service13,_xml$Capability,_xml$Capability2;const capabilities={version:String(xml.version||""),name:String((null===(_xml$Service=xml.Service)||void 0===_xml$Service?void 0:_xml$Service.Name)||"unnamed"),title:null!==(_xml$Service2=xml.Service)&&void 0!==_xml$Service2&&_xml$Service2.Title?String(null===(_xml$Service3=xml.Service)||void 0===_xml$Service3?void 0:_xml$Service3.Title):void 0,abstract:null!==(_xml$Service4=xml.Service)&&void 0!==_xml$Service4&&_xml$Service4.Abstract?String(null===(_xml$Service5=xml.Service)||void 0===_xml$Service5?void 0:_xml$Service5.Abstract):void 0,keywords:getXMLStringArray(null===(_xml$Service6=xml.Service)||void 0===_xml$Service6||null===(_xml$Service6$Keyword=_xml$Service6.KeywordList)||void 0===_xml$Service6$Keyword?void 0:_xml$Service6$Keyword.Keyword),fees:null!==(_xml$Service7=xml.Service)&&void 0!==_xml$Service7&&_xml$Service7.Fees?JSON.stringify(null===(_xml$Service8=xml.Service)||void 0===_xml$Service8?void 0:_xml$Service8.Fees):void 0,accessConstraints:null!==(_xml$Service9=xml.Service)&&void 0!==_xml$Service9&&_xml$Service9.AccessConstraints?JSON.stringify(null===(_xml$Service10=xml.Service)||void 0===_xml$Service10?void 0:_xml$Service10.AccessConstraints):void 0,layerLimit:getXMLInteger(null===(_xml$Service11=xml.Service)||void 0===_xml$Service11?void 0:_xml$Service11.LayerLimit),maxWidth:getXMLInteger(null===(_xml$Service12=xml.Service)||void 0===_xml$Service12?void 0:_xml$Service12.maxWidth),maxHeight:getXMLInteger(null===(_xml$Service13=xml.Service)||void 0===_xml$Service13?void 0:_xml$Service13.maxHeight),layers:[],requests:extractRequests(null===(_xml$Capability=xml.Capability)||void 0===_xml$Capability?void 0:_xml$Capability.Request),exceptions:extractExceptions(xml.Exception)},xmlLayers=getXMLArray(null===(_xml$Capability2=xml.Capability)||void 0===_xml$Capability2?void 0:_xml$Capability2.Layer);for(const xmlSubLayer of xmlLayers)capabilities.layers.push(extractLayer(xmlSubLayer));for(const[key,value]of Object.entries(capabilities))void 0===value&&delete capabilities[key];return capabilities}(xmlCapabilities);if(null!=options&&options.inheritedLayerProps)for(const layer of capabilities.layers)addInheritedLayerProps(layer,null);return(null!=options&&options.includeRawData||null!=options&&options.raw)&&(capabilities.raw=xmlCapabilities),null!=options&&options.includeXMLText&&(capabilities.xml=xmlText),capabilities}function extractRequests(xmlRequests){const requests={};for(const[name,xmlRequest]of Object.entries(xmlRequests||{})){const mimeTypes=getXMLStringArray(null==xmlRequest?void 0:xmlRequest.Format);requests[name]={mimeTypes:mimeTypes}}return requests}function extractExceptions(xmlException){if(getXMLArray(null==xmlException?void 0:xmlException.Format).length>0)return{mimeTypes:getXMLStringArray(xmlException)}}function extractLayer(xmlLayer){var _xmlLayer$KeywordList;const layer={title:String((null==xmlLayer?void 0:xmlLayer.Title)||""),name:(null==xmlLayer?void 0:xmlLayer.Name)&&String(null==xmlLayer?void 0:xmlLayer.Name),abstract:(null==xmlLayer?void 0:xmlLayer.Name)&&String(null==xmlLayer?void 0:xmlLayer.Abstract),keywords:getXMLStringArray(null===(_xmlLayer$KeywordList=xmlLayer.KeywordList)||void 0===_xmlLayer$KeywordList?void 0:_xmlLayer$KeywordList.Keyword)},crs=(null==xmlLayer?void 0:xmlLayer.CRS)||(null==xmlLayer?void 0:xmlLayer.SRS);crs&&Array.isArray(crs)&&crs.every((_=>"string"==typeof _))&&(layer.crs=crs);let geographicBoundingBox=(null==xmlLayer?void 0:xmlLayer.EX_GeographicBoundingBox)&&function extractEXBoundingBox(xmlBoundingBox){const{westBoundLongitude:w,northBoundLatitude:n,eastBoundLongitude:e,southBoundLatitude:s}=xmlBoundingBox;return[[w,s],[e,n]]}(null==xmlLayer?void 0:xmlLayer.EX_GeographicBoundingBox);geographicBoundingBox&&(layer.geographicBoundingBox=geographicBoundingBox),geographicBoundingBox=(null==xmlLayer?void 0:xmlLayer.LatLonBoundingBox)&&function extractLatLonBoundingBox(xmlBoundingBox){const{minx:minx,miny:miny,maxx:maxx,maxy:maxy}=xmlBoundingBox;return[[minx,miny],[maxx,maxy]]}(null==xmlLayer?void 0:xmlLayer.LatLonBoundingBox),geographicBoundingBox&&(layer.geographicBoundingBox=geographicBoundingBox);const boundingBoxes=(null==xmlLayer?void 0:xmlLayer.BoundingBox)&&function extractWMSBoundingBoxes(xmlBoundingBoxes){return getXMLArray(xmlBoundingBoxes).map((xmlBox=>function extractWMSBoundingBox(xmlBoundingBox){const{CRS:CRS,SRS:SRS,minx:minx,miny:miny,maxx:maxx,maxy:maxy,resx:resx,resy:resy}=xmlBoundingBox,boundingBox={crs:CRS||SRS,boundingBox:[[getXMLFloat(minx),getXMLFloat(miny)],[getXMLFloat(maxx),getXMLFloat(maxy)]]};resx&&(boundingBox.xResolution=resx);resy&&(boundingBox.yResolution=resy);return boundingBox}(xmlBox)))}(null==xmlLayer?void 0:xmlLayer.BoundingBox);boundingBoxes&&boundingBoxes.length>0&&(layer.boundingBoxes=boundingBoxes);const dimensions=getXMLArray(null==xmlLayer?void 0:xmlLayer.Dimension).map((xml=>function extractDimension(xmlDimension){const{name:name,units:units,value:extent}=xmlDimension,dimension={name:name,units:units,extent:extent};xmlDimension.unitSymbol&&(dimension.unitSymbol=xmlDimension.unitSymbol);xmlDimension.default&&(dimension.defaultValue=xmlDimension.default);xmlDimension.multipleValues&&(dimension.multipleValues=getXMLBoolean(xmlDimension.multipleValues));xmlDimension.nearestValue&&(dimension.nearestValue=getXMLBoolean(xmlDimension.nearestValue));xmlDimension.current&&(dimension.current=getXMLBoolean(xmlDimension.current));return dimension}(xml)));dimensions.length&&(layer.dimensions=dimensions),null!=xmlLayer&&xmlLayer.opaque&&(layer.opaque=getXMLBoolean(null==xmlLayer?void 0:xmlLayer.opaque)),null!=xmlLayer&&xmlLayer.cascaded&&(layer.cascaded=getXMLBoolean(null==xmlLayer?void 0:xmlLayer.cascaded)),null!=xmlLayer&&xmlLayer.queryable&&(layer.queryable=getXMLBoolean(null==xmlLayer?void 0:xmlLayer.queryable));const xmlLayers=getXMLArray(null==xmlLayer?void 0:xmlLayer.Layer),layers=[];for(const xmlSubLayer of xmlLayers)layers.push(extractLayer(xmlSubLayer));layers.length>0&&(layer.layers=layers);for(const[key,value]of Object.entries(layer))void 0===value&&delete layer[key];return layer}function addInheritedLayerProps(layer,parent){null!=parent&&parent.geographicBoundingBox&&!layer.geographicBoundingBox&&(layer.geographicBoundingBox=[...parent.geographicBoundingBox]),null!=parent&&parent.crs&&!layer.crs&&(layer.crs=[...parent.crs]),null!=parent&&parent.boundingBoxes&&!layer.boundingBoxes&&(layer.boundingBoxes=[...parent.boundingBoxes]),null!=parent&&parent.dimensions&&!layer.dimensions&&(layer.dimensions=[...parent.dimensions]);for(const subLayer of layer.layers||[])addInheritedLayerProps(subLayer,layer)}const WMSCapabilitiesLoader={id:"wms-capabilities",name:"WMS Capabilities",module:"wms",version:"3.4.15",worker:!1,extensions:["xml"],mimeTypes:["application/vnd.ogc.wms_xml","application/xml","text/xml"],testText:function wms_capabilities_loader_testXMLFile(text){return text.startsWith("parseWMSCapabilities((new TextDecoder).decode(arrayBuffer),null==options?void 0:options.wms),parseTextSync:(text,options)=>parseWMSCapabilities(text,null==options?void 0:options.wms)};function parseWMSFeatureInfo(text,options){var _parsedXML$FeatureInf;const xmlFeatureInfo=(null===(_parsedXML$FeatureInf=XMLLoader.parseTextSync(text,options).FeatureInfoResponse)||void 0===_parsedXML$FeatureInf?void 0:_parsedXML$FeatureInf.FIELDS)||[];return{features:(Array.isArray(xmlFeatureInfo)?xmlFeatureInfo:[xmlFeatureInfo]).map((xmlFeature=>function extractFeature(xmlFeature){const xmlFields=xmlFeature||{};return{attributes:xmlFields,type:"",bounds:{bottom:0,top:0,left:0,right:0}}}(xmlFeature)))}}const WMSFeatureInfoLoader={...WMSCapabilitiesLoader,id:"wms-feature-info",name:"WMS FeatureInfo",parse:async(arrayBuffer,options)=>parseWMSFeatureInfo((new TextDecoder).decode(arrayBuffer),options),parseTextSync:(text,options)=>parseWMSFeatureInfo(text,options)};function parseWMSLayerDescription(text,options){var _XMLLoader$parseTextS;return null===(_XMLLoader$parseTextS=XMLLoader.parseTextSync)||void 0===_XMLLoader$parseTextS?void 0:_XMLLoader$parseTextS.call(XMLLoader,text,options)}const WMSLayerDescriptionLoader={...WMSCapabilitiesLoader,id:"wms-layer-description",name:"WMS DescribeLayer",parse:async(arrayBuffer,options)=>parseWMSLayerDescription((new TextDecoder).decode(arrayBuffer),options),parseTextSync:(text,options)=>parseWMSLayerDescription(text,options)};const WMSErrorLoader={id:"wms-error",name:"WMS Error",module:"wms",version:"3.4.15",worker:!1,extensions:["xml"],mimeTypes:["application/vnd.ogc.se_xml","application/xml","text/xml"],testText:function wms_error_loader_testXMLFile(text){return text.startsWith("wms_error_loader_parseTextSync((new TextDecoder).decode(arrayBuffer),options),parseSync:(arrayBuffer,options)=>wms_error_loader_parseTextSync((new TextDecoder).decode(arrayBuffer),options),parseTextSync:(text,options)=>wms_error_loader_parseTextSync(text,options)};function wms_error_loader_parseTextSync(text,options){const wmsOptions={...WMSErrorLoader.options.wms,...null==options?void 0:options.wms},error=function parseWMSError(text,options){var _XMLLoader$parseTextS,_parsedXML$ServiceExc,_parsedXML$ogcServic;const parsedXML=null===(_XMLLoader$parseTextS=XMLLoader.parseTextSync)||void 0===_XMLLoader$parseTextS?void 0:_XMLLoader$parseTextS.call(XMLLoader,text,options),serviceExceptionXML=(null==parsedXML||null===(_parsedXML$ServiceExc=parsedXML.ServiceExceptionReport)||void 0===_parsedXML$ServiceExc?void 0:_parsedXML$ServiceExc.ServiceException)||(null==parsedXML||null===(_parsedXML$ogcServic=parsedXML["ogc:ServiceExceptionReport"])||void 0===_parsedXML$ogcServic?void 0:_parsedXML$ogcServic["ogc:ServiceException"]);return"string"==typeof serviceExceptionXML?serviceExceptionXML:serviceExceptionXML.value||serviceExceptionXML.code||"Unknown error"}(text,wmsOptions),message=wmsOptions.minimalErrors?error:"WMS Service error: ".concat(error);if(wmsOptions.throwOnError)throw new Error(message);return message}class WMSService extends ImageSource{constructor(props){var _props$substituteCRS;super(props),(0,defineProperty.Z)(this,"url",void 0),(0,defineProperty.Z)(this,"substituteCRS84",void 0),(0,defineProperty.Z)(this,"flipCRS",void 0),(0,defineProperty.Z)(this,"wmsParameters",void 0),(0,defineProperty.Z)(this,"vendorParameters",void 0),(0,defineProperty.Z)(this,"capabilities",null),this.url=props.url,this.substituteCRS84=null!==(_props$substituteCRS=props.substituteCRS84)&&void 0!==_props$substituteCRS&&_props$substituteCRS,this.flipCRS=["EPSG:4326"],this.wmsParameters={layers:void 0,query_layers:void 0,styles:void 0,version:"1.3.0",crs:"EPSG:4326",format:"image/png",info_format:"text/plain",transparent:void 0,time:void 0,elevation:void 0,...props.wmsParameters},this.vendorParameters=props.vendorParameters||{}}async getMetadata(){const capabilities=await this.getCapabilities();return this.normalizeMetadata(capabilities)}async getImage(parameters){return await this.getMap(parameters)}normalizeMetadata(capabilities){return capabilities}async getCapabilities(wmsParameters,vendorParameters){const url=this.getCapabilitiesURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();this._checkResponse(response,arrayBuffer);const capabilities=await WMSCapabilitiesLoader.parse(arrayBuffer,this.loadOptions);return this.capabilities=capabilities,capabilities}async getMap(wmsParameters,vendorParameters){const url=this.getMapURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();this._checkResponse(response,arrayBuffer);try{return await image_loader.S.parse(arrayBuffer,this.loadOptions)}catch{throw this._parseError(arrayBuffer)}}async getFeatureInfo(wmsParameters,vendorParameters){const url=this.getFeatureInfoURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();return this._checkResponse(response,arrayBuffer),await WMSFeatureInfoLoader.parse(arrayBuffer,this.loadOptions)}async getFeatureInfoText(wmsParameters,vendorParameters){const url=this.getFeatureInfoURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();return this._checkResponse(response,arrayBuffer),(new TextDecoder).decode(arrayBuffer)}async describeLayer(wmsParameters,vendorParameters){const url=this.describeLayerURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();return this._checkResponse(response,arrayBuffer),await WMSLayerDescriptionLoader.parse(arrayBuffer,this.loadOptions)}async getLegendGraphic(wmsParameters,vendorParameters){const url=this.getLegendGraphicURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();this._checkResponse(response,arrayBuffer);try{return await image_loader.S.parse(arrayBuffer,this.loadOptions)}catch{throw this._parseError(arrayBuffer)}}getCapabilitiesURL(wmsParameters,vendorParameters){const options={version:this.wmsParameters.version,...wmsParameters};return this._getWMSUrl("GetCapabilities",options,vendorParameters)}getMapURL(wmsParameters,vendorParameters){wmsParameters=this._getWMS130Parameters(wmsParameters);const options={version:this.wmsParameters.version,format:this.wmsParameters.format,transparent:this.wmsParameters.transparent,time:this.wmsParameters.time,elevation:this.wmsParameters.elevation,layers:this.wmsParameters.layers,styles:this.wmsParameters.styles,crs:this.wmsParameters.crs,...wmsParameters};return this._getWMSUrl("GetMap",options,vendorParameters)}getFeatureInfoURL(wmsParameters,vendorParameters){const options={version:this.wmsParameters.version,info_format:this.wmsParameters.info_format,layers:this.wmsParameters.layers,query_layers:this.wmsParameters.query_layers,styles:this.wmsParameters.styles,crs:this.wmsParameters.crs,...wmsParameters};return this._getWMSUrl("GetFeatureInfo",options,vendorParameters)}describeLayerURL(wmsParameters,vendorParameters){const options={version:this.wmsParameters.version,...wmsParameters};return this._getWMSUrl("DescribeLayer",options,vendorParameters)}getLegendGraphicURL(wmsParameters,vendorParameters){const options={version:this.wmsParameters.version,...wmsParameters};return this._getWMSUrl("GetLegendGraphic",options,vendorParameters)}_parseWMSUrl(url){const[baseUrl,search]=url.split("?"),searchParams=search.split("&"),parameters={};for(const parameter of searchParams){const[key,value]=parameter.split("=");parameters[key]=value}return{url:baseUrl,parameters:parameters}}_getWMSUrl(request,wmsParameters,vendorParameters){let url=this.url,first=!0;const allParameters={service:"WMS",version:wmsParameters.version,request:request,...wmsParameters,...this.vendorParameters,...vendorParameters},IGNORE_EMPTY_KEYS=["transparent","time","elevation"];for(const[key,value]of Object.entries(allParameters))IGNORE_EMPTY_KEYS.includes(key)&&!value||(url+=first?"?":"&",first=!1,url+=this._getURLParameter(key,value,wmsParameters));return encodeURI(url)}_getWMS130Parameters(wmsParameters){const newParameters={...wmsParameters};return newParameters.srs&&(newParameters.crs=newParameters.crs||newParameters.srs,delete newParameters.srs),newParameters}_getURLParameter(key,value,wmsParameters){switch(key){case"crs":"1.3.0"!==wmsParameters.version?key="srs":this.substituteCRS84&&"EPSG:4326"===value&&(value="CRS:84");break;case"srs":"1.3.0"===wmsParameters.version&&(key="crs");break;case"bbox":const bbox=this._flipBoundingBox(value,wmsParameters);bbox&&(value=bbox)}return key=key.toUpperCase(),Array.isArray(value)?"".concat(key,"=").concat(value.join(",")):"".concat(key,"=").concat(value?String(value):"")}_flipBoundingBox(bboxValue,wmsParameters){if(!Array.isArray(bboxValue)||4!==bboxValue.length)return null;const bbox=bboxValue;return"1.3.0"===wmsParameters.version&&this.flipCRS.includes(wmsParameters.crs||"")&&!(this.substituteCRS84&&"EPSG:4326"===wmsParameters.crs)?[bbox[1],bbox[0],bbox[3],bbox[2]]:bbox}async _fetchArrayBuffer(url){const response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();return this._checkResponse(response,arrayBuffer),arrayBuffer}_checkResponse(response,arrayBuffer){const contentType=response.headers["content-type"];if(!response.ok||WMSErrorLoader.mimeTypes.includes(contentType)){const loadOptions=function mergeLoaderOptions(baseOptions,newOptions){const options={...baseOptions};for(const[key,newValue]of Object.entries(newOptions))newValue&&"object"==typeof newValue?(options[key]=options[key]||{},Object.assign(options[key],newOptions[key])):options[key]=newOptions[key];return options}(this.loadOptions,{wms:{throwOnError:!0}}),error=WMSErrorLoader.parseSync(arrayBuffer,loadOptions);throw new Error(error)}}_parseError(arrayBuffer){const error=WMSErrorLoader.parseSync(arrayBuffer,this.loadOptions);return new Error(error)}}(0,defineProperty.Z)(WMSService,"type","wms"),(0,defineProperty.Z)(WMSService,"testURL",(url=>url.toLowerCase().includes("wms")));class ArcGISImageServer extends ImageSource{constructor(props){super(props)}async getMetadata(){return await this.metadata()}async getImage(parameters){throw new Error("not implemented")}async metadata(){throw new Error("not implemented")}exportImage(options){throw new Error("not implemented")}metadataURL(options){return"".concat(this.props.url,"?f=pjson")}exportImageURL(options){const bbox="bbox=".concat(options.bbox[0],",").concat(options.bbox[1],",").concat(options.bbox[2],",").concat(options.bbox[3]),size="size=".concat(options.width,",").concat(options.height),arcgisOptions={...options,bbox:bbox,size:size};return delete arcgisOptions.width,delete arcgisOptions.height,this.getUrl("exportImage",arcgisOptions)}getUrl(path,options,extra){let url="".concat(this.props.url,"/").concat(path),first=!0;for(const[key,value]of Object.entries(options))url+=first?"?":"&",first=!1,Array.isArray(value)?url+="".concat(key.toUpperCase(),"=").concat(value.join(",")):url+="".concat(key.toUpperCase(),"=").concat(value?String(value):"");return url}async checkResponse(response){if(!response.ok)throw new Error("error")}}(0,defineProperty.Z)(ArcGISImageServer,"type","arcgis-image-server"),(0,defineProperty.Z)(ArcGISImageServer,"testURL",(url=>url.toLowerCase().includes("ImageServer")));const SERVICES=[WMSService,ArcGISImageServer,ImageService];function createImageSource(props){const{type:type="auto"}=props;switch("auto"===type?function guessServiceType(url){for(const Service of SERVICES)if(Service.testURL&&Service.testURL(url))return Service.type;return"wms"}(props.url):type){case"template":return new ImageService(props);case"wms":return new WMSService(props);default:throw new Error("Not a valid image source type")}}var esm=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js");const HALF_EARTH_CIRCUMFERENCE=6378137*Math.PI;function WGS84ToPseudoMercator(coord){const mercator=(0,esm.w5)(coord);return mercator[0]=(mercator[0]/256-1)*HALF_EARTH_CIRCUMFERENCE,mercator[1]=(mercator[1]/256-1)*HALF_EARTH_CIRCUMFERENCE,mercator}const defaultProps={id:"imagery-layer",data:"",serviceType:"auto",srs:"auto",layers:{type:"array",compare:!0,value:[]},onMetadataLoad:{type:"function",value:()=>{}},onMetadataLoadError:{type:"function",value:console.error},onImageLoadStart:{type:"function",value:()=>{}},onImageLoad:{type:"function",value:()=>{}},onImageLoadError:{type:"function",compare:!1,value:(requestId,error)=>console.error(error,requestId)}};class WMSLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}get isLoaded(){var _this$state;return 0===(null===(_this$state=this.state)||void 0===_this$state?void 0:_this$state.loadCounter)&&super.isLoaded}shouldUpdateState(){return!0}initializeState(){this.state._nextRequestId=0,this.state.lastRequestId=-1,this.state.loadCounter=0}updateState({changeFlags:changeFlags,props:props,oldProps:oldProps}){const{viewport:viewport}=this.context;changeFlags.dataChanged||props.serviceType!==oldProps.serviceType?(this.state.imageSource=this._createImageSource(props),this._loadMetadata(),this.debounce((()=>this.loadImage(viewport,"image source changed")),0)):(0,deep_equal.v)(props.layers,oldProps.layers,1)?changeFlags.viewportChanged&&this.debounce((()=>this.loadImage(viewport,"viewport changed"))):this.debounce((()=>this.loadImage(viewport,"layers changed")),0)}finalizeState(){}renderLayers(){const{bounds:bounds,image:image,lastRequestParameters:lastRequestParameters}=this.state;return image&&new bitmap_layer.Z({...this.getSubLayerProps({id:"bitmap"}),_imageCoordinateSystem:"EPSG:4326"===lastRequestParameters.srs?constants.COORDINATE_SYSTEM.LNGLAT:constants.COORDINATE_SYSTEM.CARTESIAN,bounds:bounds,image:image})}async getFeatureInfoText(x,y){const{lastRequestParameters:lastRequestParameters}=this.state;if(lastRequestParameters){var _this$state$imageSour,_this$state$imageSour2;return await(null===(_this$state$imageSour=(_this$state$imageSour2=this.state.imageSource).getFeatureInfoText)||void 0===_this$state$imageSour?void 0:_this$state$imageSour.call(_this$state$imageSour2,{...lastRequestParameters,query_layers:lastRequestParameters.layers,x:x,y:y,info_format:"application/vnd.ogc.gml"}))}return""}_createImageSource(props){if(props.data instanceof ImageSource)return props.data;if("string"==typeof props.data)return createImageSource({url:props.data,loadOptions:props.loadOptions,type:props.serviceType});throw new Error("invalid image source in props.data")}async _loadMetadata(){const{imageSource:imageSource}=this.state;try{this.state.loadCounter++;const metadata=await imageSource.getMetadata();var _this$getCurrentLayer;if(this.state.imageSource===imageSource)null===(_this$getCurrentLayer=this.getCurrentLayer())||void 0===_this$getCurrentLayer||_this$getCurrentLayer.props.onMetadataLoad(metadata)}catch(error){var _this$getCurrentLayer2;null===(_this$getCurrentLayer2=this.getCurrentLayer())||void 0===_this$getCurrentLayer2||_this$getCurrentLayer2.props.onMetadataLoadError(error)}finally{this.state.loadCounter--}}async loadImage(viewport,reason){const{layers:layers,serviceType:serviceType}=this.props;if("wms"===serviceType&&0===layers.length)return;const bounds=viewport.getBounds(),{width:width,height:height}=viewport,requestId=this.getRequestId();let{srs:srs}=this.props;"auto"===srs&&(srs=viewport.resolution?"EPSG:4326":"EPSG:3857");const requestParams={width:width,height:height,bbox:bounds,layers:layers,srs:srs};if("EPSG:3857"===srs){const[minX,minY]=WGS84ToPseudoMercator([bounds[0],bounds[1]]),[maxX,maxY]=WGS84ToPseudoMercator([bounds[2],bounds[3]]);requestParams.bbox=[minX,minY,maxX,maxY]}try{this.state.loadCounter++,this.props.onImageLoadStart(requestId);const image=await this.state.imageSource.getImage(requestParams);var _this$getCurrentLayer3;if(this.state.lastRequestIdfn()),ms)}}(0,defineProperty.Z)(WMSLayer,"layerName","WMSLayer"),(0,defineProperty.Z)(WMSLayer,"defaultProps",defaultProps);var arc_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/arc-layer/arc-layer.js");class GreatCircleLayer extends arc_layer.Z{}(0,defineProperty.Z)(GreatCircleLayer,"layerName","GreatCircleLayer"),(0,defineProperty.Z)(GreatCircleLayer,"defaultProps",{getHeight:{type:"accessor",value:0},greatCircle:!0});var polygon_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/polygon-layer/polygon-layer.js");const GeoCellLayer_defaultProps={...polygon_layer.Z.defaultProps};class GeoCellLayer extends composite_layer.Z{indexToBounds(){return null}renderLayers(){const{elevationScale:elevationScale,extruded:extruded,wireframe:wireframe,filled:filled,stroked:stroked,lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels,lineJointRounded:lineJointRounded,lineMiterLimit:lineMiterLimit,lineDashJustified:lineDashJustified,getElevation:getElevation,getFillColor:getFillColor,getLineColor:getLineColor,getLineWidth:getLineWidth}=this.props,{updateTriggers:updateTriggers,material:material,transitions:transitions}=this.props,CellLayer=this.getSubLayerClass("cell",polygon_layer.Z),{updateTriggers:boundsUpdateTriggers,...boundsProps}=this.indexToBounds()||{};return new CellLayer({filled:filled,wireframe:wireframe,extruded:extruded,elevationScale:elevationScale,stroked:stroked,lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels,lineJointRounded:lineJointRounded,lineMiterLimit:lineMiterLimit,lineDashJustified:lineDashJustified,material:material,transitions:transitions,getElevation:getElevation,getFillColor:getFillColor,getLineColor:getLineColor,getLineWidth:getLineWidth},this.getSubLayerProps({id:"cell",updateTriggers:updateTriggers&&{...boundsUpdateTriggers,getElevation:updateTriggers.getElevation,getFillColor:updateTriggers.getFillColor,getLineColor:updateTriggers.getLineColor,getLineWidth:updateTriggers.getLineWidth}}),boundsProps)}}(0,defineProperty.Z)(GeoCellLayer,"layerName","GeoCellLayer"),(0,defineProperty.Z)(GeoCellLayer,"defaultProps",GeoCellLayer_defaultProps);var dist_long=__webpack_require__("./node_modules/long/dist/long.js"),long_default=__webpack_require__.n(dist_long);const FACE_BITS=3,POS_BITS=61,RADIAN_TO_DEGREE=180/Math.PI;function IJToST(ij,order,offsets){const maxSize=1<=.5?1/3*(4*st*st-1):1/3*(1-4*(1-st)*(1-st))}function STToUV(st){return[singleSTtoUV(st[0]),singleSTtoUV(st[1])]}function FaceUVToXYZ(face,[u,v]){switch(face){case 0:return[1,u,v];case 1:return[-u,1,v];case 2:return[-u,-v,1];case 3:return[-1,-v,-u];case 4:return[v,-1,-u];case 5:return[v,u,-1];default:throw new Error("Invalid face")}}function XYZToLngLat([x,y,z]){const lat=Math.atan2(z,Math.sqrt(x*x+y*y));return[Math.atan2(y,x)*RADIAN_TO_DEGREE,lat*RADIAN_TO_DEGREE]}function rotateAndFlipQuadrant(n,point,rx,ry){if(0===ry){1===rx&&(point[0]=n-1-point[0],point[1]=n-1-point[1]);const x=point[0];point[0]=point[1],point[1]=x}}const MAX_RESOLUTION=100;function getS2QuadKey(token){if("string"==typeof token){if(token.indexOf("/")>0)return token;token=function getIdFromToken(token){const paddedToken=token.padEnd(16,"0");return long_default().fromString(paddedToken,16)}(token)}return function toHilbertQuadkey(idS){let bin=long_default().fromString(idS,!0,10).toString(2);for(;bin.length=0;i--){level=maxLevel-i;const bit=position[i];let rx=0,ry=0;"1"===bit?ry=1:"2"===bit?(rx=1,ry=1):"3"===bit&&(rx=1);const val=Math.pow(2,level-1);rotateAndFlipQuadrant(val,point,rx,ry),point[0]+=val*rx,point[1]+=val*ry}if(face%2==1){const t=point[0];point[0]=point[1],point[1]=t}return{face:face,ij:point,level:level}}(getS2QuadKey(token));return function getGeoBounds({face:face,ij:ij,level:level}){const offsets=[[0,0],[0,1],[1,1],[1,0],[0,0]],resolution=Math.max(1,Math.ceil(MAX_RESOLUTION*Math.pow(2,-level))),result=new Float64Array(4*resolution*2+2);let ptIndex=0,prevLng=0;for(let i=0;i<4;i++){const offset=offsets[i].slice(0),nextOffset=offsets[i+1],stepI=(nextOffset[0]-offset[0])/resolution,stepJ=(nextOffset[1]-offset[1])/resolution;for(let j=0;j89.999&&(lngLat[0]=prevLng);const deltaLng=lngLat[0]-prevLng;lngLat[0]+=deltaLng>180?-360:deltaLng<-180?360:0,result[ptIndex++]=lngLat[0],result[ptIndex++]=lngLat[1],prevLng=lngLat[0]}}return result[ptIndex++]=result[0],result[ptIndex++]=result[1],result}(s2cell)}class S2Layer extends GeoCellLayer{indexToBounds(){const{data:data,getS2Token:getS2Token}=this.props;return{data:data,_normalize:!1,positionFormat:"XY",getPolygon:(x,objectInfo)=>getS2Polygon(getS2Token(x,objectInfo))}}}(0,defineProperty.Z)(S2Layer,"layerName","S2Layer"),(0,defineProperty.Z)(S2Layer,"defaultProps",{getS2Token:{type:"accessor",value:d=>d.token}});const TILE_SIZE=512;function getQuadkeyPolygon(quadkey,coverage=1){const[topLeft,bottomRight]=function quadkeyToWorldBounds(quadkey,coverage){let x=0,y=0,mask=1<>=1;const q=parseInt(quadkey[i]);q%2&&(x|=mask),q>1&&(y|=mask)}return[[x/scale,TILE_SIZE-y/scale],[(x+coverage)/scale,TILE_SIZE-(y+coverage)/scale]]}(quadkey,coverage),[w,n]=(0,esm.es)(topLeft),[e,s]=(0,esm.es)(bottomRight);return[e,n,e,s,w,s,w,n,e,n]}class QuadkeyLayer extends GeoCellLayer{indexToBounds(){const{data:data,extruded:extruded,getQuadkey:getQuadkey}=this.props,coverage=extruded?.99:1;return{data:data,_normalize:!1,positionFormat:"XY",getPolygon:(x,objectInfo)=>getQuadkeyPolygon(getQuadkey(x,objectInfo),coverage),updateTriggers:{getPolygon:coverage}}}}(0,defineProperty.Z)(QuadkeyLayer,"layerName","QuadkeyLayer"),(0,defineProperty.Z)(QuadkeyLayer,"defaultProps",{getQuadkey:{type:"accessor",value:d=>d.quadkey}});var flatten=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/flatten.js"),geojson_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/geojson-layer/geojson-layer.js"),dist_esm=__webpack_require__("./node_modules/@probe.gl/stats/dist/esm/index.js");const DEFAULT_PROPS={id:"request-scheduler",throttleRequests:!0,maxRequests:6};class RequestScheduler{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"stats",void 0),(0,defineProperty.Z)(this,"activeRequestCount",0),(0,defineProperty.Z)(this,"requestQueue",[]),(0,defineProperty.Z)(this,"requestMap",new Map),(0,defineProperty.Z)(this,"deferredUpdate",null),this.props={...DEFAULT_PROPS,...props},this.stats=new dist_esm.jk({id:this.props.id}),this.stats.get("Queued Requests"),this.stats.get("Active Requests"),this.stats.get("Cancelled Requests"),this.stats.get("Queued Requests Ever"),this.stats.get("Active Requests Ever")}scheduleRequest(handle){let getPriority=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>0;if(!this.props.throttleRequests)return Promise.resolve({done:()=>{}});if(this.requestMap.has(handle))return this.requestMap.get(handle);const request={handle:handle,priority:0,getPriority:getPriority},promise=new Promise((resolve=>(request.resolve=resolve,request)));return this.requestQueue.push(request),this.requestMap.set(handle,promise),this._issueNewRequests(),promise}_issueRequest(request){const{handle:handle,resolve:resolve}=request;let isDone=!1;const done=()=>{isDone||(isDone=!0,this.requestMap.delete(handle),this.activeRequestCount--,this._issueNewRequests())};return this.activeRequestCount++,resolve?resolve({done:done}):Promise.resolve({done:done})}_issueNewRequests(){this.deferredUpdate||(this.deferredUpdate=setTimeout((()=>this._issueNewRequestsAsync()),0))}_issueNewRequestsAsync(){this.deferredUpdate=null;const freeSlots=Math.max(this.props.maxRequests-this.activeRequestCount,0);if(0!==freeSlots){this._updateAllRequests();for(let i=0;ia.priority-b.priority))}_updateRequest(request){return request.priority=request.getPriority(request.handle),!(request.priority<0)||(request.resolve(null),!1)}}var matrix4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),common=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js");class Tile2DHeader{constructor(index){(0,defineProperty.Z)(this,"index",void 0),(0,defineProperty.Z)(this,"isVisible",void 0),(0,defineProperty.Z)(this,"isSelected",void 0),(0,defineProperty.Z)(this,"parent",void 0),(0,defineProperty.Z)(this,"children",void 0),(0,defineProperty.Z)(this,"content",void 0),(0,defineProperty.Z)(this,"state",void 0),(0,defineProperty.Z)(this,"layers",void 0),(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"zoom",void 0),(0,defineProperty.Z)(this,"userData",void 0),(0,defineProperty.Z)(this,"boundingBox",void 0),(0,defineProperty.Z)(this,"_abortController",void 0),(0,defineProperty.Z)(this,"_loader",void 0),(0,defineProperty.Z)(this,"_loaderId",void 0),(0,defineProperty.Z)(this,"_isLoaded",void 0),(0,defineProperty.Z)(this,"_isCancelled",void 0),(0,defineProperty.Z)(this,"_needsReload",void 0),(0,defineProperty.Z)(this,"_bbox",void 0),this.index=index,this.isVisible=!1,this.isSelected=!1,this.parent=null,this.children=[],this.content=null,this._loader=void 0,this._abortController=null,this._loaderId=0,this._isLoaded=!1,this._isCancelled=!1,this._needsReload=!1}get bbox(){return this._bbox}set bbox(value){this._bbox||(this._bbox=value,this.boundingBox="west"in value?[[value.west,value.south],[value.east,value.north]]:[[value.left,value.top],[value.right,value.bottom]])}get data(){return this.isLoading&&this._loader?this._loader.then((()=>this.data)):this.content}get isLoaded(){return this._isLoaded&&!this._needsReload}get isLoading(){return Boolean(this._loader)&&!this._isCancelled}get needsReload(){return this._needsReload||this._isCancelled}get byteLength(){const result=this.content?this.content.byteLength:0;return Number.isFinite(result)||console.error("byteLength not defined in tile data"),result}async _loadData({getData:getData,requestScheduler:requestScheduler,onLoad:onLoad,onError:onError}){const{index:index,id:id,bbox:bbox,userData:userData,zoom:zoom}=this,loaderId=this._loaderId;this._abortController=new AbortController;const{signal:signal}=this._abortController,requestToken=await requestScheduler.scheduleRequest(this,(tile=>tile.isSelected?1:-1));if(!requestToken)return void(this._isCancelled=!0);if(this._isCancelled)return void requestToken.done();let error,tileData=null;try{tileData=await getData({index:index,id:id,bbox:bbox,userData:userData,zoom:zoom,signal:signal})}catch(err){error=err||!0}finally{requestToken.done()}loaderId===this._loaderId&&(this._loader=void 0,this.content=tileData,!this._isCancelled||tileData?(this._isLoaded=!0,this._isCancelled=!1,error?onError(error,this):onLoad(this)):this._isLoaded=!1)}loadData(opts){return this._isLoaded=!1,this._isCancelled=!1,this._needsReload=!1,this._loaderId++,this._loader=this._loadData(opts),this._loader}setNeedsReload(){this.isLoading&&(this.abort(),this._loader=void 0),this._needsReload=!0}abort(){var _this$_abortControlle;this.isLoaded||(this._isCancelled=!0,null===(_this$_abortControlle=this._abortController)||void 0===_this$_abortControlle||_this$_abortControlle.abort())}}var globe_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/globe-viewport.js"),web_mercator_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/web-mercator-viewport.js");const INTERSECTION_OUTSIDE=-1,INTERSECTION_INTERSECTING=0,INTERSECTION_INSIDE=1;var vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js");const scratchVector=new vector3.Z,scratchNormal=new vector3.Z;class axis_aligned_bounding_box_AxisAlignedBoundingBox{constructor(minimum=[0,0,0],maximum=[0,0,0],center){(0,defineProperty.Z)(this,"center",void 0),(0,defineProperty.Z)(this,"halfDiagonal",void 0),(0,defineProperty.Z)(this,"minimum",void 0),(0,defineProperty.Z)(this,"maximum",void 0),center=center||scratchVector.copy(minimum).add(maximum).scale(.5),this.center=new vector3.Z(center),this.halfDiagonal=new vector3.Z(maximum).subtract(this.center),this.minimum=new vector3.Z(minimum),this.maximum=new vector3.Z(maximum)}clone(){return new axis_aligned_bounding_box_AxisAlignedBoundingBox(this.minimum,this.maximum,this.center)}equals(right){return this===right||Boolean(right)&&this.minimum.equals(right.minimum)&&this.maximum.equals(right.maximum)}transform(transform){return this.center.transformAsPoint(transform),this.halfDiagonal.transform(transform),this.minimum.transform(transform),this.maximum.transform(transform),this}intersectPlane(plane){const{halfDiagonal:halfDiagonal}=this,normal=scratchNormal.from(plane.normal),e=halfDiagonal.x*Math.abs(normal.x)+halfDiagonal.y*Math.abs(normal.y)+halfDiagonal.z*Math.abs(normal.z),s=this.center.dot(normal)+plane.distance;return s-e>0?INTERSECTION_INSIDE:s+e<0?INTERSECTION_OUTSIDE:INTERSECTION_INTERSECTING}distanceTo(point){return Math.sqrt(this.distanceSquaredTo(point))}distanceSquaredTo(point){const offset=scratchVector.from(point).subtract(this.center),{halfDiagonal:halfDiagonal}=this;let d,distanceSquared=0;return d=Math.abs(offset.x)-halfDiagonal.x,d>0&&(distanceSquared+=d*d),d=Math.abs(offset.y)-halfDiagonal.y,d>0&&(distanceSquared+=d*d),d=Math.abs(offset.z)-halfDiagonal.z,d>0&&(distanceSquared+=d*d),distanceSquared}}var mat4=__webpack_require__("./node_modules/gl-matrix/esm/mat4.js");const bounding_sphere_scratchVector=new vector3.Z,scratchVector2=new vector3.Z;class bounding_sphere_BoundingSphere{constructor(center=[0,0,0],radius=0){(0,defineProperty.Z)(this,"center",void 0),(0,defineProperty.Z)(this,"radius",void 0),this.radius=-0,this.center=new vector3.Z,this.fromCenterRadius(center,radius)}fromCenterRadius(center,radius){return this.center.from(center),this.radius=radius,this}fromCornerPoints(corner,oppositeCorner){return oppositeCorner=bounding_sphere_scratchVector.from(oppositeCorner),this.center=(new vector3.Z).from(corner).add(oppositeCorner).scale(.5),this.radius=this.center.distance(oppositeCorner),this}equals(right){return this===right||Boolean(right)&&this.center.equals(right.center)&&this.radius===right.radius}clone(){return new bounding_sphere_BoundingSphere(this.center,this.radius)}union(boundingSphere){const leftCenter=this.center,leftRadius=this.radius,rightCenter=boundingSphere.center,rightRadius=boundingSphere.radius,toRightCenter=bounding_sphere_scratchVector.copy(rightCenter).subtract(leftCenter),centerSeparation=toRightCenter.magnitude();if(leftRadius>=centerSeparation+rightRadius)return this.clone();if(rightRadius>=centerSeparation+leftRadius)return boundingSphere.clone();const halfDistanceBetweenTangentPoints=.5*(leftRadius+centerSeparation+rightRadius);return scratchVector2.copy(toRightCenter).scale((-leftRadius+halfDistanceBetweenTangentPoints)/centerSeparation).add(leftCenter),this.center.copy(scratchVector2),this.radius=halfDistanceBetweenTangentPoints,this}expand(point){const radius=bounding_sphere_scratchVector.from(point).subtract(this.center).magnitude();return radius>this.radius&&(this.radius=radius),this}transform(transform){this.center.transform(transform);const scale=mat4.Q$(bounding_sphere_scratchVector,transform);return this.radius=Math.max(scale[0],Math.max(scale[1],scale[2]))*this.radius,this}distanceSquaredTo(point){const d=this.distanceTo(point);return d*d}distanceTo(point){const delta=bounding_sphere_scratchVector.from(point).subtract(this.center);return Math.max(0,delta.len()-this.radius)}intersectPlane(plane){const center=this.center,radius=this.radius,distanceToPlane=plane.normal.dot(center)+plane.distance;return distanceToPlane<-radius?INTERSECTION_OUTSIDE:distanceToPlane=radEffective?INTERSECTION_INSIDE:INTERSECTION_INTERSECTING}distanceTo(point){return Math.sqrt(this.distanceSquaredTo(point))}distanceSquaredTo(point){const offset=scratchOffset.from(point).subtract(this.center),halfAxes=this.halfAxes,u=halfAxes.getColumn(0,scratchVectorU),v=halfAxes.getColumn(1,scratchVectorV),w=halfAxes.getColumn(2,scratchVectorW),uHalf=u.magnitude(),vHalf=v.magnitude(),wHalf=w.magnitude();u.normalize(),v.normalize(),w.normalize();let d,distanceSquared=0;return d=Math.abs(offset.dot(u))-uHalf,d>0&&(distanceSquared+=d*d),d=Math.abs(offset.dot(v))-vHalf,d>0&&(distanceSquared+=d*d),d=Math.abs(offset.dot(w))-wHalf,d>0&&(distanceSquared+=d*d),distanceSquared}computePlaneDistances(position,direction,result=[-0,-0]){let minDist=Number.POSITIVE_INFINITY,maxDist=Number.NEGATIVE_INFINITY;const center=this.center,halfAxes=this.halfAxes,u=halfAxes.getColumn(0,scratchVectorU),v=halfAxes.getColumn(1,scratchVectorV),w=halfAxes.getColumn(2,scratchVectorW),corner=scratchCorner.copy(u).add(v).add(w).add(center),toCenter=scratchToCenter.copy(corner).subtract(position);let mag=direction.dot(toCenter);return minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),corner.copy(center).add(u).add(v).subtract(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),corner.copy(center).add(u).subtract(v).add(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),corner.copy(center).add(u).subtract(v).subtract(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),center.copy(corner).subtract(u).add(v).add(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),center.copy(corner).subtract(u).add(v).subtract(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),center.copy(corner).subtract(u).subtract(v).add(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),center.copy(corner).subtract(u).subtract(v).subtract(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),result[0]=minDist,result[1]=maxDist,result}transform(transformation){this.center.transformAsPoint(transformation);const xAxis=this.halfAxes.getColumn(0,scratchVectorU);xAxis.transformAsPoint(transformation);const yAxis=this.halfAxes.getColumn(1,scratchVectorV);yAxis.transformAsPoint(transformation);const zAxis=this.halfAxes.getColumn(2,scratchVectorW);return zAxis.transformAsPoint(transformation),this.halfAxes=new matrix3.Z([...xAxis,...yAxis,...zAxis]),this}getTransform(){throw new Error("not implemented")}}var lib_assert=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/assert.js");const scratchPosition=new vector3.Z,plane_scratchNormal=new vector3.Z;class plane_Plane{constructor(normal=[0,0,1],distance=0){(0,defineProperty.Z)(this,"normal",void 0),(0,defineProperty.Z)(this,"distance",void 0),this.normal=new vector3.Z,this.distance=-0,this.fromNormalDistance(normal,distance)}fromNormalDistance(normal,distance){return(0,lib_assert.Z)(Number.isFinite(distance)),this.normal.from(normal).normalize(),this.distance=distance,this}fromPointNormal(point,normal){point=scratchPosition.from(point),this.normal.from(normal).normalize();const distance=-this.normal.dot(point);return this.distance=distance,this}fromCoefficients(a,b,c,d){return this.normal.set(a,b,c),(0,lib_assert.Z)((0,common.fS)(this.normal.len(),1)),this.distance=d,this}clone(){return new plane_Plane(this.normal,this.distance)}equals(right){return(0,common.fS)(this.distance,right.distance)&&(0,common.fS)(this.normal,right.normal)}getPointDistance(point){return this.normal.dot(point)+this.distance}transform(matrix4){const normal=plane_scratchNormal.copy(this.normal).transformAsVector(matrix4).normalize(),point=this.normal.scale(-this.distance).transform(matrix4);return this.fromPointNormal(point,normal)}projectPointOntoPlane(point,result=[0,0,0]){point=scratchPosition.from(point);const pointDistance=this.getPointDistance(point),scaledNormal=plane_scratchNormal.copy(this.normal).scale(pointDistance);return point.subtract(scaledNormal).to(result)}}const faces=[new vector3.Z([1,0,0]),new vector3.Z([0,1,0]),new vector3.Z([0,0,1])],scratchPlaneCenter=new vector3.Z,scratchPlaneNormal=new vector3.Z;new plane_Plane(new vector3.Z(1,0,0),0);class culling_volume_CullingVolume{constructor(planes=[]){(0,defineProperty.Z)(this,"planes",void 0),this.planes=planes}fromBoundingSphere(boundingSphere){this.planes.length=2*faces.length;const center=boundingSphere.center,radius=boundingSphere.radius;let planeIndex=0;for(const faceNormal of faces){let plane0=this.planes[planeIndex],plane1=this.planes[planeIndex+1];plane0||(plane0=this.planes[planeIndex]=new plane_Plane),plane1||(plane1=this.planes[planeIndex+1]=new plane_Plane);const plane0Center=scratchPlaneCenter.copy(faceNormal).scale(-radius).add(center);faceNormal.dot(plane0Center);plane0.fromPointNormal(plane0Center,faceNormal);const plane1Center=scratchPlaneCenter.copy(faceNormal).scale(radius).add(center),negatedFaceNormal=scratchPlaneNormal.copy(faceNormal).negate();negatedFaceNormal.dot(plane1Center);plane1.fromPointNormal(plane1Center,negatedFaceNormal),planeIndex+=2}return this}computeVisibility(boundingVolume){let intersect=INTERSECTION_INSIDE;for(const plane of this.planes){switch(boundingVolume.intersectPlane(plane)){case INTERSECTION_OUTSIDE:return INTERSECTION_OUTSIDE;case INTERSECTION_INTERSECTING:intersect=INTERSECTION_INTERSECTING}}return intersect}computeVisibilityWithPlaneMask(boundingVolume,parentPlaneMask){if((0,lib_assert.Z)(Number.isFinite(parentPlaneMask),"parentPlaneMask is required."),parentPlaneMask===culling_volume_CullingVolume.MASK_OUTSIDE||parentPlaneMask===culling_volume_CullingVolume.MASK_INSIDE)return parentPlaneMask;let mask=culling_volume_CullingVolume.MASK_INSIDE;const planes=this.planes;for(let k=0;kepsilon;)shurDecomposition(diagonalMatrix,jMatrix),jMatrixTranspose.copy(jMatrix).transpose(),diagonalMatrix.multiplyRight(jMatrix),diagonalMatrix.multiplyLeft(jMatrixTranspose),unitaryMatrix.multiplyRight(jMatrix),++count>2&&(++sweep,count=0);return result.unitary=unitaryMatrix.toTarget(result.unitary),result.diagonal=diagonalMatrix.toTarget(result.diagonal),result}const rowVal=[1,0,0],colVal=[2,2,1];function offDiagonalFrobeniusNorm(matrix){let norm=0;for(let i=0;i<3;++i){const temp=matrix[scratchMatrix.getElementIndex(colVal[i],rowVal[i])];norm+=2*temp*temp}return Math.sqrt(norm)}function shurDecomposition(matrix,result){const tolerance=math_utils.Z.EPSILON15;let maxDiagonal=0,rotAxis=1;for(let i=0;i<3;++i){const temp=Math.abs(matrix[scratchMatrix.getElementIndex(colVal[i],rowVal[i])]);temp>maxDiagonal&&(rotAxis=i,maxDiagonal=temp)}const p=rowVal[rotAxis],q=colVal[rotAxis];let c=1,s=0;if(Math.abs(matrix[scratchMatrix.getElementIndex(q,p)])>tolerance){const tau=(matrix[scratchMatrix.getElementIndex(q,q)]-matrix[scratchMatrix.getElementIndex(p,p)])/2/matrix[scratchMatrix.getElementIndex(q,p)];let t;t=tau<0?-1/(-tau+Math.sqrt(1+tau*tau)):1/(tau+Math.sqrt(1+tau*tau)),c=1/Math.sqrt(1+t*t),s=t*c}return matrix3.Z.IDENTITY.to(result),result[scratchMatrix.getElementIndex(p,p)]=result[scratchMatrix.getElementIndex(q,q)]=c,result[scratchMatrix.getElementIndex(q,p)]=s,result[scratchMatrix.getElementIndex(p,q)]=-s,result}const bounding_box_from_points_scratchVector2=new vector3.Z,bounding_box_from_points_scratchVector3=new vector3.Z,scratchVector4=new vector3.Z,scratchVector5=new vector3.Z,scratchVector6=new vector3.Z,scratchCovarianceResult=new matrix3.Z,scratchEigenResult={diagonal:new matrix3.Z,unitary:new matrix3.Z};function makeOrientedBoundingBoxFromPoints(positions,result=new OrientedBoundingBox){if(!positions||0===positions.length)return result.halfAxes=new matrix3.Z([0,0,0,0,0,0,0,0,0]),result.center=new vector3.Z,result;const length=positions.length,meanPoint=new vector3.Z(0,0,0);for(const position of positions)meanPoint.add(position);const invLength=1/length;meanPoint.multiplyByScalar(invLength);let exx=0,exy=0,exz=0,eyy=0,eyz=0,ezz=0;for(const position of positions){const p=bounding_box_from_points_scratchVector2.copy(position).subtract(meanPoint);exx+=p.x*p.x,exy+=p.x*p.y,exz+=p.x*p.z,eyy+=p.y*p.y,eyz+=p.y*p.z,ezz+=p.z*p.z}exx*=invLength,exy*=invLength,exz*=invLength,eyy*=invLength,eyz*=invLength,ezz*=invLength;const covarianceMatrix=scratchCovarianceResult;covarianceMatrix[0]=exx,covarianceMatrix[1]=exy,covarianceMatrix[2]=exz,covarianceMatrix[3]=exy,covarianceMatrix[4]=eyy,covarianceMatrix[5]=eyz,covarianceMatrix[6]=exz,covarianceMatrix[7]=eyz,covarianceMatrix[8]=ezz;const{unitary:unitary}=computeEigenDecomposition(covarianceMatrix,scratchEigenResult),rotation=result.halfAxes.copy(unitary);let v1=rotation.getColumn(0,scratchVector4),v2=rotation.getColumn(1,scratchVector5),v3=rotation.getColumn(2,scratchVector6),u1=-Number.MAX_VALUE,u2=-Number.MAX_VALUE,u3=-Number.MAX_VALUE,l1=Number.MAX_VALUE,l2=Number.MAX_VALUE,l3=Number.MAX_VALUE;for(const position of positions)bounding_box_from_points_scratchVector2.copy(position),u1=Math.max(bounding_box_from_points_scratchVector2.dot(v1),u1),u2=Math.max(bounding_box_from_points_scratchVector2.dot(v2),u2),u3=Math.max(bounding_box_from_points_scratchVector2.dot(v3),u3),l1=Math.min(bounding_box_from_points_scratchVector2.dot(v1),l1),l2=Math.min(bounding_box_from_points_scratchVector2.dot(v2),l2),l3=Math.min(bounding_box_from_points_scratchVector2.dot(v3),l3);v1=v1.multiplyByScalar(.5*(l1+u1)),v2=v2.multiplyByScalar(.5*(l2+u2)),v3=v3.multiplyByScalar(.5*(l3+u3)),result.center.copy(v1).add(v2).add(v3);const scale=bounding_box_from_points_scratchVector3.set(u1-l1,u2-l2,u3-l3).multiplyByScalar(.5),scaleMatrix=new matrix3.Z([scale[0],0,0,0,scale[1],0,0,0,scale[2]]);return result.halfAxes.multiplyRight(scaleMatrix),result}const tile_2d_traversal_TILE_SIZE=512,MAX_MAPS=3,REF_POINTS_5=[[.5,.5],[0,0],[0,1],[1,0],[1,1]],REF_POINTS_9=REF_POINTS_5.concat([[0,.5],[.5,0],[1,.5],[.5,1]]),REF_POINTS_11=REF_POINTS_9.concat([[.25,.5],[.75,.5]]);class OSMNode{constructor(x,y,z){(0,defineProperty.Z)(this,"x",void 0),(0,defineProperty.Z)(this,"y",void 0),(0,defineProperty.Z)(this,"z",void 0),(0,defineProperty.Z)(this,"childVisible",void 0),(0,defineProperty.Z)(this,"selected",void 0),(0,defineProperty.Z)(this,"_children",void 0),this.x=x,this.y=y,this.z=z}get children(){if(!this._children){const x=2*this.x,y=2*this.y,z=this.z+1;this._children=[new OSMNode(x,y,z),new OSMNode(x,y+1,z),new OSMNode(x+1,y,z),new OSMNode(x+1,y+1,z)]}return this._children}update(params){const{viewport:viewport,cullingVolume:cullingVolume,elevationBounds:elevationBounds,minZ:minZ,maxZ:maxZ,bounds:bounds,offset:offset,project:project}=params,boundingVolume=this.getBoundingVolume(elevationBounds,offset,project);if(bounds&&!this.insideBounds(bounds))return!1;if(cullingVolume.computeVisibility(boundingVolume)<0)return!1;if(!this.childVisible){let{z:z}=this;if(z=minZ){const distance=boundingVolume.distanceTo(viewport.cameraPosition)*viewport.scale/viewport.height;z+=Math.floor(Math.log2(distance))}if(z>=maxZ)return this.selected=!0,!0}this.selected=!1,this.childVisible=!0;for(const child of this.children)child.update(params);return!0}getSelected(result=[]){if(this.selected&&result.push(this),this._children)for(const node of this._children)node.getSelected(result);return result}insideBounds([minX,minY,maxX,maxY]){const scale=Math.pow(2,this.z),extent=tile_2d_traversal_TILE_SIZE/scale;return this.x*extentminX&&(this.y+1)*extent>minY}getBoundingVolume(zRange,worldOffset,project){if(project){const refPoints=this.z<1?REF_POINTS_11:this.z<2?REF_POINTS_9:REF_POINTS_5,refPointPositions=[];for(const p of refPoints){const lngLat=osmTile2lngLat(this.x+p[0],this.y+p[1],this.z);lngLat[2]=zRange[0],refPointPositions.push(project(lngLat)),zRange[0]!==zRange[1]&&(lngLat[2]=zRange[1],refPointPositions.push(project(lngLat)))}return makeOrientedBoundingBoxFromPoints(refPointPositions)}const scale=Math.pow(2,this.z),extent=tile_2d_traversal_TILE_SIZE/scale,originX=this.x*extent+worldOffset*tile_2d_traversal_TILE_SIZE,originY=tile_2d_traversal_TILE_SIZE-(this.y+1)*extent;return new axis_aligned_bounding_box_AxisAlignedBoundingBox([originX,originY,zRange[0]],[originX+extent,originY+extent,zRange[1]])}}const utils_TILE_SIZE=512,DEFAULT_EXTENT=[-1/0,-1/0,1/0,1/0],urlType={type:"object",value:null,validate:(value,propType)=>propType.optional&&null===value||"string"==typeof value||Array.isArray(value)&&value.every((url=>"string"==typeof url)),equal:(value1,value2)=>{if(value1===value2)return!0;if(!Array.isArray(value1)||!Array.isArray(value2))return!1;const len=value1.length;if(len!==value2.length)return!1;for(let i=0;ii[0]))),Math.min(...transformedCoords.map((i=>i[1]))),Math.max(...transformedCoords.map((i=>i[0]))),Math.max(...transformedCoords.map((i=>i[1])))];return transformedBox}function getURLFromTemplate(template,tile){if(!template||!template.length)return null;const{index:index,id:id}=tile;if(Array.isArray(template)){template=template[function stringHash(s){return Math.abs(s.split("").reduce(((a,b)=>(a<<5)-a+b.charCodeAt(0)|0),0))}(id)%template.length]}let url=template;for(const key of Object.keys(index)){const regex=new RegExp("{".concat(key,"}"),"g");url=url.replace(regex,String(index[key]))}return Number.isInteger(index.y)&&Number.isInteger(index.z)&&(url=url.replace(/\{-y\}/g,String(Math.pow(2,index.z)-index.y-1))),url}function getCullBounds({viewport:viewport,z:z=0,cullRect:cullRect}){return(viewport.subViewports||[viewport]).map((v=>getCullBoundsInViewport(v,z||0,cullRect)))}function getCullBoundsInViewport(viewport,z,cullRect){if(!Array.isArray(z)){const x=cullRect.x-viewport.x,y=cullRect.y-viewport.y,{width:width,height:height}=cullRect,unprojectOption={targetZ:z},topLeft=viewport.unproject([x,y],unprojectOption),topRight=viewport.unproject([x+width,y],unprojectOption),bottomLeft=viewport.unproject([x,y+height],unprojectOption),bottomRight=viewport.unproject([x+width,y+height],unprojectOption);return[Math.min(topLeft[0],topRight[0],bottomLeft[0],bottomRight[0]),Math.min(topLeft[1],topRight[1],bottomLeft[1],bottomRight[1]),Math.max(topLeft[0],topRight[0],bottomLeft[0],bottomRight[0]),Math.max(topLeft[1],topRight[1],bottomLeft[1],bottomRight[1])]}const bounds0=getCullBoundsInViewport(viewport,z[0],cullRect),bounds1=getCullBoundsInViewport(viewport,z[1],cullRect);return[Math.min(bounds0[0],bounds1[0]),Math.min(bounds0[1],bounds1[1]),Math.max(bounds0[2],bounds1[2]),Math.max(bounds0[3],bounds1[3])]}function getScale(z,tileSize){return Math.pow(2,z)*utils_TILE_SIZE/tileSize}function osmTile2lngLat(x,y,z){const scale=getScale(z,utils_TILE_SIZE),lng=x/scale*360-180,n=Math.PI-2*Math.PI*y/scale;return[lng,180/Math.PI*Math.atan(.5*(Math.exp(n)-Math.exp(-n)))]}function tile2XY(x,y,z,tileSize){const scale=getScale(z,tileSize);return[x/scale*utils_TILE_SIZE,y/scale*utils_TILE_SIZE]}function tileToBoundingBox(viewport,x,y,z,tileSize=utils_TILE_SIZE){if(viewport.isGeospatial){const[west,north]=osmTile2lngLat(x,y,z),[east,south]=osmTile2lngLat(x+1,y+1,z);return{west:west,north:north,east:east,south:south}}const[left,top]=tile2XY(x,y,z,tileSize),[right,bottom]=tile2XY(x+1,y+1,z,tileSize);return{left:left,top:top,right:right,bottom:bottom}}function getIdentityTileIndices(viewport,z,tileSize,extent,modelMatrixInverse){const bbox=function getBoundingBox(viewport,zRange,extent){let bounds;if(zRange&&2===zRange.length){const[minZ,maxZ]=zRange,bounds0=viewport.getBounds({z:minZ}),bounds1=viewport.getBounds({z:maxZ});bounds=[Math.min(bounds0[0],bounds1[0]),Math.min(bounds0[1],bounds1[1]),Math.max(bounds0[2],bounds1[2]),Math.max(bounds0[3],bounds1[3])]}else bounds=viewport.getBounds();return viewport.isGeospatial?[Math.max(bounds[0],extent[0]),Math.max(bounds[1],extent[1]),Math.min(bounds[2],extent[2]),Math.min(bounds[3],extent[3])]:[Math.max(Math.min(bounds[0],extent[2]),extent[0]),Math.max(Math.min(bounds[1],extent[3]),extent[1]),Math.min(Math.max(bounds[2],extent[0]),extent[2]),Math.min(Math.max(bounds[3],extent[1]),extent[3])]}(viewport,null,extent),scale=getScale(z,tileSize),[minX,minY,maxX,maxY]=function getIndexingCoords(bbox,scale,modelMatrixInverse){if(modelMatrixInverse){const transformedTileIndex=transformBox(bbox,modelMatrixInverse).map((i=>i*scale/utils_TILE_SIZE));return transformedTileIndex}return bbox.map((i=>i*scale/utils_TILE_SIZE))}(bbox,scale,modelMatrixInverse),indices=[];for(let x=Math.floor(minX);xmaxZoom&&(z=maxZoom);let transformedExtent=extent;return modelMatrix&&modelMatrixInverse&&extent&&!viewport.isGeospatial&&(transformedExtent=transformBox(extent,modelMatrix)),viewport.isGeospatial?function getOSMTileIndices(viewport,maxZ,zRange,bounds){const project=viewport instanceof globe_viewport.Z&&viewport.resolution?viewport.projectPosition:null,planes=Object.values(viewport.getFrustumPlanes()).map((({normal:normal,distance:distance})=>new plane_Plane(normal.clone().negate(),distance))),cullingVolume=new culling_volume_CullingVolume(planes),unitsPerMeter=viewport.distanceScales.unitsPerMeter[2],elevationMin=zRange&&zRange[0]*unitsPerMeter||0,elevationMax=zRange&&zRange[1]*unitsPerMeter||0,minZ=viewport instanceof web_mercator_viewport.Z&&viewport.pitch<=60?maxZ:0;if(bounds){const[minLng,minLat,maxLng,maxLat]=bounds,topLeft=(0,esm.w5)([minLng,maxLat]),bottomRight=(0,esm.w5)([maxLng,minLat]);bounds=[topLeft[0],tile_2d_traversal_TILE_SIZE-topLeft[1],bottomRight[0],tile_2d_traversal_TILE_SIZE-bottomRight[1]]}const root=new OSMNode(0,0,0),traversalParams={viewport:viewport,project:project,cullingVolume:cullingVolume,elevationBounds:[elevationMin,elevationMax],minZ:minZ,maxZ:maxZ,bounds:bounds,offset:0};if(root.update(traversalParams),viewport instanceof web_mercator_viewport.Z&&viewport.subViewports&&viewport.subViewports.length>1){for(traversalParams.offset=-1;root.update(traversalParams)&&!(--traversalParams.offset<-MAX_MAPS););for(traversalParams.offset=1;root.update(traversalParams)&&!(++traversalParams.offset>MAX_MAPS););}return root.getSelected()}(viewport,z,zRange,extent):getIdentityTileIndices(viewport,z,tileSize,transformedExtent||DEFAULT_EXTENT,modelMatrixInverse)}function isEqual(a,b){if(a===b)return!0;if(Array.isArray(a)){const len=a.length;if(!b||b.length!==len)return!1;for(let i=0;it1.zoom-t2.zoom));for(const tile of sortedTiles)if(tile.isVisible=Boolean(tile.state&TILE_STATE_VISIBLE),tile.children&&(tile.isVisible||1&tile.state))for(const child of tile.children)child.state=1;else tile.isSelected&&getPlaceholderInChildren(tile)},never:()=>{}},DEFAULT_TILESET2D_PROPS={extent:null,tileSize:512,maxZoom:null,minZoom:null,maxCacheSize:null,maxCacheByteSize:null,refinementStrategy:"best-available",zRange:null,maxRequests:6,zoomOffset:0,onTileLoad:()=>{},onTileUnload:()=>{},onTileError:()=>{}};class Tileset2D{constructor(opts){(0,defineProperty.Z)(this,"opts",void 0),(0,defineProperty.Z)(this,"_requestScheduler",void 0),(0,defineProperty.Z)(this,"_cache",void 0),(0,defineProperty.Z)(this,"_dirty",void 0),(0,defineProperty.Z)(this,"_tiles",void 0),(0,defineProperty.Z)(this,"_cacheByteSize",void 0),(0,defineProperty.Z)(this,"_viewport",void 0),(0,defineProperty.Z)(this,"_zRange",void 0),(0,defineProperty.Z)(this,"_selectedTiles",void 0),(0,defineProperty.Z)(this,"_frameNumber",void 0),(0,defineProperty.Z)(this,"_modelMatrix",void 0),(0,defineProperty.Z)(this,"_modelMatrixInverse",void 0),(0,defineProperty.Z)(this,"_maxZoom",void 0),(0,defineProperty.Z)(this,"_minZoom",void 0),(0,defineProperty.Z)(this,"onTileLoad",void 0),(0,defineProperty.Z)(this,"_getCullBounds",function memoize(compute){let cachedResult,cachedArgs={};return args=>{for(const key in args)if(!isEqual(args[key],cachedArgs[key])){cachedResult=compute(args),cachedArgs=args;break}return cachedResult}}(getCullBounds)),this.opts={...DEFAULT_TILESET2D_PROPS,...opts},this.onTileLoad=tile=>{var _this$opts$onTileLoad,_this$opts;null===(_this$opts$onTileLoad=(_this$opts=this.opts).onTileLoad)||void 0===_this$opts$onTileLoad||_this$opts$onTileLoad.call(_this$opts,tile),this.opts.maxCacheByteSize&&(this._cacheByteSize+=tile.byteLength,this._resizeCache())},this._requestScheduler=new RequestScheduler({maxRequests:opts.maxRequests,throttleRequests:Boolean(opts.maxRequests&&opts.maxRequests>0)}),this._cache=new Map,this._tiles=[],this._dirty=!1,this._cacheByteSize=0,this._viewport=null,this._zRange=null,this._selectedTiles=null,this._frameNumber=0,this._modelMatrix=new matrix4.Z,this._modelMatrixInverse=new matrix4.Z,this.setOptions(opts)}get tiles(){return this._tiles}get selectedTiles(){return this._selectedTiles}get isLoaded(){return null!==this._selectedTiles&&this._selectedTiles.every((tile=>tile.isLoaded))}get needsReload(){return null!==this._selectedTiles&&this._selectedTiles.some((tile=>tile.needsReload))}setOptions(opts){Object.assign(this.opts,opts),Number.isFinite(opts.maxZoom)&&(this._maxZoom=Math.floor(opts.maxZoom)),Number.isFinite(opts.minZoom)&&(this._minZoom=Math.ceil(opts.minZoom))}finalize(){for(const tile of this._cache.values())tile.isLoading&&tile.abort();this._cache.clear(),this._tiles=[],this._selectedTiles=null}reloadAll(){for(const id of this._cache.keys()){const tile=this._cache.get(id);this._selectedTiles&&this._selectedTiles.includes(tile)?tile.setNeedsReload():this._cache.delete(id)}}update(viewport,{zRange:zRange,modelMatrix:modelMatrix}={zRange:null,modelMatrix:null}){const modelMatrixAsMatrix4=modelMatrix?new matrix4.Z(modelMatrix):new matrix4.Z,isModelMatrixNew=!modelMatrixAsMatrix4.equals(this._modelMatrix);if(this._viewport&&viewport.equals(this._viewport)&&(0,common.fS)(this._zRange,zRange)&&!isModelMatrixNew)this.needsReload&&(this._selectedTiles=this._selectedTiles.map((tile=>this._getTile(tile.index,!0))));else{isModelMatrixNew&&(this._modelMatrixInverse=modelMatrixAsMatrix4.clone().invert(),this._modelMatrix=modelMatrixAsMatrix4),this._viewport=viewport,this._zRange=zRange;const tileIndices=this.getTileIndices({viewport:viewport,maxZoom:this._maxZoom,minZoom:this._minZoom,zRange:zRange,modelMatrix:this._modelMatrix,modelMatrixInverse:this._modelMatrixInverse});this._selectedTiles=tileIndices.map((index=>this._getTile(index,!0))),this._dirty&&this._rebuildTree()}const changed=this.updateTileStates();return this._pruneRequests(),this._dirty&&this._resizeCache(),changed&&this._frameNumber++,this._frameNumber}isTileVisible(tile,cullRect){if(!tile.isVisible)return!1;if(cullRect&&this._viewport){const boundsArr=this._getCullBounds({viewport:this._viewport,z:this._zRange,cullRect:cullRect}),{bbox:bbox}=tile;for(const[minX,minY,maxX,maxY]of boundsArr){let overlaps;if("west"in bbox)overlaps=bbox.westminX&&bbox.southminY;else{const y0=Math.min(bbox.top,bbox.bottom),y1=Math.max(bbox.top,bbox.bottom);overlaps=bbox.leftminX&&y0minY}if(overlaps)return!0}return!1}return!0}getTileIndices({viewport:viewport,maxZoom:maxZoom,minZoom:minZoom,zRange:zRange,modelMatrix:modelMatrix,modelMatrixInverse:modelMatrixInverse}){const{tileSize:tileSize,extent:extent,zoomOffset:zoomOffset}=this.opts;return getTileIndices({viewport:viewport,maxZoom:maxZoom,minZoom:minZoom,zRange:zRange,tileSize:tileSize,extent:extent,modelMatrix:modelMatrix,modelMatrixInverse:modelMatrixInverse,zoomOffset:zoomOffset})}getTileId(index){return"".concat(index.x,"-").concat(index.y,"-").concat(index.z)}getTileZoom(index){return index.z}getTileMetadata(index){const{tileSize:tileSize}=this.opts;return{bbox:tileToBoundingBox(this._viewport,index.x,index.y,index.z,tileSize)}}getParentIndex(index){return{x:Math.floor(index.x/2),y:Math.floor(index.y/2),z:index.z-1}}updateTileStates(){const refinementStrategy=this.opts.refinementStrategy||"best-available",visibilities=new Array(this._cache.size);let i=0;for(const tile of this._cache.values())visibilities[i++]=tile.isVisible,tile.isSelected=!1,tile.isVisible=!1;for(const tile of this._selectedTiles)tile.isSelected=!0,tile.isVisible=!0;("function"==typeof refinementStrategy?refinementStrategy:STRATEGIES[refinementStrategy])(Array.from(this._cache.values())),i=0;for(const tile of this._cache.values())if(visibilities[i++]!==tile.isVisible)return!0;return!1}_pruneRequests(){const{maxRequests:maxRequests=0}=this.opts,abortCandidates=[];let ongoingRequestCount=0;for(const tile of this._cache.values())tile.isLoading&&(ongoingRequestCount++,tile.isSelected||tile.isVisible||abortCandidates.push(tile));for(;maxRequests>0&&ongoingRequestCount>maxRequests&&abortCandidates.length>0;){abortCandidates.shift().abort(),ongoingRequestCount--}}_rebuildTree(){const{_cache:_cache}=this;for(const tile of _cache.values())tile.parent=null,tile.children&&(tile.children.length=0);for(const tile of _cache.values()){const parent=this._getNearestAncestor(tile);tile.parent=parent,null!=parent&&parent.children&&parent.children.push(tile)}}_resizeCache(){const{_cache:_cache,opts:opts}=this,maxCacheSize=opts.maxCacheSize||(opts.maxCacheByteSize?1/0:5*this.selectedTiles.length),maxCacheByteSize=opts.maxCacheByteSize||1/0;if(_cache.size>maxCacheSize||this._cacheByteSize>maxCacheByteSize){for(const[id,tile]of _cache){var _this$opts$onTileUnlo,_this$opts2;if(!tile.isVisible&&!tile.isSelected)this._cacheByteSize-=opts.maxCacheByteSize?tile.byteLength:0,_cache.delete(id),null===(_this$opts$onTileUnlo=(_this$opts2=this.opts).onTileUnload)||void 0===_this$opts$onTileUnlo||_this$opts$onTileUnlo.call(_this$opts2,tile);if(_cache.size<=maxCacheSize&&this._cacheByteSize<=maxCacheByteSize)break}this._rebuildTree(),this._dirty=!0}this._dirty&&(this._tiles=Array.from(this._cache.values()).sort(((t1,t2)=>t1.zoom-t2.zoom)),this._dirty=!1)}_getTile(index,create){const id=this.getTileId(index);let tile=this._cache.get(id),needsReload=!1;return!tile&&create?(tile=new Tile2DHeader(index),Object.assign(tile,this.getTileMetadata(tile.index)),Object.assign(tile,{id:id,zoom:this.getTileZoom(tile.index)}),needsReload=!0,this._cache.set(id,tile),this._dirty=!0):tile&&tile.needsReload&&(needsReload=!0),tile&&needsReload&&tile.loadData({getData:this.opts.getTileData,requestScheduler:this._requestScheduler,onLoad:this.onTileLoad,onError:this.opts.onTileError}),tile}_getNearestAncestor(tile){const{_minZoom:_minZoom=0}=this;let index=tile.index;for(;this.getTileZoom(index)>_minZoom;){index=this.getParentIndex(index);const parent=this._getTile(index);if(parent)return parent}return null}}function getPlaceholderInAncestors(startTile){let tile=startTile;for(;tile;){if(tile.isLoaded||tile.content)return tile.state|=TILE_STATE_VISIBLE,!0;tile=tile.parent}return!1}function getPlaceholderInChildren(tile){for(const child of tile.children)child.isLoaded||child.content?child.state|=TILE_STATE_VISIBLE:getPlaceholderInChildren(child)}const tile_layer_defaultProps={TilesetClass:Tileset2D,data:{type:"data",value:[]},dataComparator:urlType.equal,renderSubLayers:{type:"function",value:props=>new geojson_layer.Z(props)},getTileData:{type:"function",optional:!0,value:null},onViewportLoad:{type:"function",optional:!0,value:null},onTileLoad:{type:"function",value:tile=>{}},onTileUnload:{type:"function",value:tile=>{}},onTileError:{type:"function",value:err=>console.error(err)},extent:{type:"array",optional:!0,value:null,compare:!0},tileSize:512,maxZoom:null,minZoom:0,maxCacheSize:null,maxCacheByteSize:null,refinementStrategy:"best-available",zRange:null,maxRequests:6,zoomOffset:0};class TileLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){this.state={tileset:null,isLoaded:!1}}finalizeState(){var _this$state,_this$state$tileset;null===(_this$state=this.state)||void 0===_this$state||null===(_this$state$tileset=_this$state.tileset)||void 0===_this$state$tileset||_this$state$tileset.finalize()}get isLoaded(){var _this$state2,_this$state2$tileset,_this$state2$tileset$;return Boolean(null===(_this$state2=this.state)||void 0===_this$state2||null===(_this$state2$tileset=_this$state2.tileset)||void 0===_this$state2$tileset||null===(_this$state2$tileset$=_this$state2$tileset.selectedTiles)||void 0===_this$state2$tileset$?void 0:_this$state2$tileset$.every((tile=>tile.isLoaded&&tile.layers&&tile.layers.every((layer=>layer.isLoaded)))))}shouldUpdateState({changeFlags:changeFlags}){return changeFlags.somethingChanged}updateState({changeFlags:changeFlags}){let{tileset:tileset}=this.state;const propsChanged=changeFlags.propsOrDataChanged||changeFlags.updateTriggersChanged,dataChanged=changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getTileData);tileset?propsChanged&&(tileset.setOptions(this._getTilesetOptions()),dataChanged?tileset.reloadAll():tileset.tiles.forEach((tile=>{tile.layers=null}))):(tileset=new this.props.TilesetClass(this._getTilesetOptions()),this.setState({tileset:tileset})),this._updateTileset()}_getTilesetOptions(){const{tileSize:tileSize,maxCacheSize:maxCacheSize,maxCacheByteSize:maxCacheByteSize,refinementStrategy:refinementStrategy,extent:extent,maxZoom:maxZoom,minZoom:minZoom,maxRequests:maxRequests,zoomOffset:zoomOffset}=this.props;return{maxCacheSize:maxCacheSize,maxCacheByteSize:maxCacheByteSize,maxZoom:maxZoom,minZoom:minZoom,tileSize:tileSize,refinementStrategy:refinementStrategy,extent:extent,maxRequests:maxRequests,zoomOffset:zoomOffset,getTileData:this.getTileData.bind(this),onTileLoad:this._onTileLoad.bind(this),onTileError:this._onTileError.bind(this),onTileUnload:this._onTileUnload.bind(this)}}_updateTileset(){const tileset=this.state.tileset,{zRange:zRange,modelMatrix:modelMatrix}=this.props,frameNumber=tileset.update(this.context.viewport,{zRange:zRange,modelMatrix:modelMatrix}),{isLoaded:isLoaded}=tileset,loadingStateChanged=this.state.isLoaded!==isLoaded,tilesetChanged=this.state.frameNumber!==frameNumber;isLoaded&&(loadingStateChanged||tilesetChanged)&&this._onViewportLoad(),tilesetChanged&&this.setState({frameNumber:frameNumber}),this.state.isLoaded=isLoaded}_onViewportLoad(){const{tileset:tileset}=this.state,{onViewportLoad:onViewportLoad}=this.props;onViewportLoad&&onViewportLoad(tileset.selectedTiles)}_onTileLoad(tile){this.props.onTileLoad(tile),tile.layers=null,this.setNeedsUpdate()}_onTileError(error,tile){this.props.onTileError(error),tile.layers=null,this.setNeedsUpdate()}_onTileUnload(tile){this.props.onTileUnload(tile)}getTileData(tile){const{data:data,getTileData:getTileData,fetch:fetch}=this.props,{signal:signal}=tile;return tile.url="string"==typeof data||Array.isArray(data)?getURLFromTemplate(data,tile):null,getTileData?getTileData(tile):fetch&&tile.url?fetch(tile.url,{propName:"data",layer:this,signal:signal}):null}renderSubLayers(props){return this.props.renderSubLayers(props)}getSubLayerPropsByTile(tile){return null}getPickingInfo({info:info,sourceLayer:sourceLayer}){const sourceTile=sourceLayer.props.tile;return info.picked&&(info.tile=sourceTile),info.sourceTile=sourceTile,info}_updateAutoHighlight(info){const sourceTile=info.sourceTile;if(sourceTile&&sourceTile.layers)for(const layer of sourceTile.layers)layer.updateAutoHighlight(info)}renderLayers(){return this.state.tileset.tiles.map((tile=>{const subLayerProps=this.getSubLayerPropsByTile(tile);if(tile.isLoaded||tile.content)if(tile.layers)subLayerProps&&tile.layers[0]&&Object.keys(subLayerProps).some((propName=>tile.layers[0].props[propName]!==subLayerProps[propName]))&&(tile.layers=tile.layers.map((layer=>layer.clone(subLayerProps))));else{const layers=this.renderSubLayers({...this.props,...this.getSubLayerProps({id:tile.id,updateTriggers:this.props.updateTriggers}),data:tile.content,_offset:0,tile:tile});tile.layers=(0,flatten.x)(layers,Boolean).map((layer=>layer.clone({tile:tile,...subLayerProps})))}else;return tile.layers}))}filterSubLayer({layer:layer,cullRect:cullRect}){const{tile:tile}=layer.props;return this.state.tileset.isTileVisible(tile,cullRect)}}(0,defineProperty.Z)(TileLayer,"defaultProps",tile_layer_defaultProps),(0,defineProperty.Z)(TileLayer,"layerName","TileLayer");var path_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js");class TripsLayer extends path_layer.Z{getShaders(){const shaders=super.getShaders();return shaders.inject={"vs:#decl":"uniform float trailLength;\nattribute float instanceTimestamps;\nattribute float instanceNextTimestamps;\nvarying float vTime;\n","vs:#main-end":"vTime = instanceTimestamps + (instanceNextTimestamps - instanceTimestamps) * vPathPosition.y / vPathLength;\n","fs:#decl":"uniform bool fadeTrail;\nuniform float trailLength;\nuniform float currentTime;\nvarying float vTime;\n","fs:#main-start":"if(vTime > currentTime || (fadeTrail && (vTime < currentTime - trailLength))) {\n discard;\n}\n","fs:DECKGL_FILTER_COLOR":"if(fadeTrail) {\n color.a *= 1.0 - (currentTime - vTime) / trailLength;\n}\n"},shaders}initializeState(){super.initializeState();this.getAttributeManager().addInstanced({timestamps:{size:1,accessor:"getTimestamps",shaderAttributes:{instanceTimestamps:{vertexOffset:0},instanceNextTimestamps:{vertexOffset:1}}}})}draw(params){const{fadeTrail:fadeTrail,trailLength:trailLength,currentTime:currentTime}=this.props;params.uniforms={...params.uniforms,fadeTrail:fadeTrail,trailLength:trailLength,currentTime:currentTime},super.draw(params)}}(0,defineProperty.Z)(TripsLayer,"layerName","TripsLayer"),(0,defineProperty.Z)(TripsLayer,"defaultProps",{fadeTrail:!0,trailLength:{type:"number",value:120,min:0},currentTime:{type:"number",value:0,min:0},getTimestamps:{type:"accessor",value:d=>d.timestamps}});var h3_js_es=__webpack_require__("./node_modules/h3-js/dist/browser/h3-js.es.js"),iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),column_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/column-layer/column-layer.js");function normalizeLongitudes(vertices,refLng){refLng=void 0===refLng?vertices[0][0]:refLng;for(const pt of vertices){const deltaLng=pt[0]-refLng;deltaLng>180?pt[0]-=360:deltaLng<-180&&(pt[0]+=360)}}function getHexagonCentroid(getHexagon,object,objectInfo){const hexagonId=getHexagon(object,objectInfo),[lat,lng]=(0,h3_js_es.h3ToGeo)(hexagonId);return[lng,lat]}function h3ToPolygon(hexId,coverage=1){const vertices=(0,h3_js_es.h3ToGeoBoundary)(hexId,!0);return 1!==coverage?function scalePolygon(hexId,vertices,factor){const[lat,lng]=(0,h3_js_es.h3ToGeo)(hexId),actualCount=vertices.length;normalizeLongitudes(vertices,lng);const vertexCount=vertices[0]===vertices[actualCount-1]?actualCount-1:actualCount;for(let i=0;ix.hexagon},extruded:!0};class H3HexagonLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){H3HexagonLayer._checkH3Lib(),this.state={edgeLengthKM:0,resolution:-1}}shouldUpdateState({changeFlags:changeFlags}){return this._shouldUseHighPrecision()?changeFlags.propsOrDataChanged:changeFlags.somethingChanged}updateState({props:props,changeFlags:changeFlags}){if(!0!==props.highPrecision&&(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&changeFlags.updateTriggersChanged.getHexagon)){const dataProps=this._calculateH3DataProps();this.setState(dataProps)}this._updateVertices(this.context.viewport)}_calculateH3DataProps(){let resolution=-1,hasPentagon=!1,hasMultipleRes=!1;const{iterable:iterable,objectInfo:objectInfo}=(0,iterable_utils.jB)(this.props.data);for(const object of iterable){objectInfo.index++;const hexId=this.props.getHexagon(object,objectInfo),hexResolution=(0,h3_js_es.h3GetResolution)(hexId);if(resolution<0){if(resolution=hexResolution,!this.props.highPrecision)break}else if(resolution!==hexResolution){hasMultipleRes=!0;break}if((0,h3_js_es.h3IsPentagon)(hexId)){hasPentagon=!0;break}}return{resolution:resolution,edgeLengthKM:resolution>=0?(0,h3_js_es.edgeLength)(resolution,"km"):0,hasMultipleRes:hasMultipleRes,hasPentagon:hasPentagon}}_shouldUseHighPrecision(){if("auto"===this.props.highPrecision){const{resolution:resolution,hasPentagon:hasPentagon,hasMultipleRes:hasMultipleRes}=this.state,{viewport:viewport}=this.context;return Boolean(null==viewport?void 0:viewport.resolution)||hasMultipleRes||hasPentagon||resolution>=0&&resolution<=5}return this.props.highPrecision}_updateVertices(viewport){if(this._shouldUseHighPrecision())return;const{resolution:resolution,edgeLengthKM:edgeLengthKM,centerHex:centerHex}=this.state;if(resolution<0)return;const hex=this.props.centerHexagon||(0,h3_js_es.geoToH3)(viewport.latitude,viewport.longitude,resolution);if(centerHex===hex)return;if(centerHex){const distance=(0,h3_js_es.h3Distance)(centerHex,hex);if(distance>=0&&distance*edgeLengthKM<10)return}const{unitsPerMeter:unitsPerMeter}=viewport.distanceScales;let vertices=h3ToPolygon(hex);const[centerLat,centerLng]=(0,h3_js_es.h3ToGeo)(hex),[centerX,centerY]=viewport.projectFlat([centerLng,centerLat]);vertices=vertices.map((p=>{const worldPosition=viewport.projectFlat(p);return[(worldPosition[0]-centerX)/unitsPerMeter[0],(worldPosition[1]-centerY)/unitsPerMeter[1]]})),this.setState({centerHex:hex,vertices:vertices})}renderLayers(){return this._shouldUseHighPrecision()?this._renderPolygonLayer():this._renderColumnLayer()}_getForwardProps(){const{elevationScale:elevationScale,material:material,coverage:coverage,extruded:extruded,wireframe:wireframe,stroked:stroked,filled:filled,lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels,getFillColor:getFillColor,getElevation:getElevation,getLineColor:getLineColor,getLineWidth:getLineWidth,transitions:transitions,updateTriggers:updateTriggers}=this.props;return{elevationScale:elevationScale,extruded:extruded,coverage:coverage,wireframe:wireframe,stroked:stroked,filled:filled,lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels,material:material,getElevation:getElevation,getFillColor:getFillColor,getLineColor:getLineColor,getLineWidth:getLineWidth,transitions:transitions,updateTriggers:{getFillColor:updateTriggers.getFillColor,getElevation:updateTriggers.getElevation,getLineColor:updateTriggers.getLineColor,getLineWidth:updateTriggers.getLineWidth}}}_renderPolygonLayer(){const{data:data,getHexagon:getHexagon,updateTriggers:updateTriggers,coverage:coverage}=this.props,SubLayerClass=this.getSubLayerClass("hexagon-cell-hifi",polygon_layer.Z),forwardProps=this._getForwardProps();return forwardProps.updateTriggers.getPolygon=function mergeTriggers(getHexagon,coverage){let trigger;return trigger=null==getHexagon?coverage:"object"==typeof getHexagon?{...getHexagon,coverage:coverage}:{getHexagon:getHexagon,coverage:coverage},trigger}(updateTriggers.getHexagon,coverage),new SubLayerClass(forwardProps,this.getSubLayerProps({id:"hexagon-cell-hifi",updateTriggers:forwardProps.updateTriggers}),{data:data,_normalize:!1,_windingOrder:"CCW",positionFormat:"XY",getPolygon:(object,objectInfo)=>function flattenPolygon(vertices){const positions=new Float64Array(2*vertices.length);let i=0;for(const pt of vertices)positions[i++]=pt[0],positions[i++]=pt[1];return positions}(h3ToPolygon(getHexagon(object,objectInfo),coverage))})}_renderColumnLayer(){const{data:data,getHexagon:getHexagon,updateTriggers:updateTriggers}=this.props,SubLayerClass=this.getSubLayerClass("hexagon-cell",column_layer.Z),forwardProps=this._getForwardProps();return forwardProps.updateTriggers.getPosition=updateTriggers.getHexagon,new SubLayerClass(forwardProps,this.getSubLayerProps({id:"hexagon-cell",flatShading:!0,updateTriggers:forwardProps.updateTriggers}),{data:data,diskResolution:6,radius:1,vertices:this.state.vertices,getPosition:getHexagonCentroid.bind(null,getHexagon)})}}(0,defineProperty.Z)(H3HexagonLayer,"defaultProps",h3_hexagon_layer_defaultProps),(0,defineProperty.Z)(H3HexagonLayer,"layerName","H3HexagonLayer"),(0,defineProperty.Z)(H3HexagonLayer,"_checkH3Lib",(()=>{}));class H3ClusterLayer extends GeoCellLayer{initializeState(){H3HexagonLayer._checkH3Lib()}updateState({props:props,changeFlags:changeFlags}){if(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&changeFlags.updateTriggersChanged.getHexagons){const{data:data,getHexagons:getHexagons}=props,polygons=[],{iterable:iterable,objectInfo:objectInfo}=(0,iterable_utils.jB)(data);for(const object of iterable){objectInfo.index++;const hexagons=getHexagons(object,objectInfo),multiPolygon=(0,h3_js_es.h3SetToMultiPolygon)(hexagons,!0);for(const polygon of multiPolygon)polygons.push(this.getSubLayerRow({polygon:polygon},object,objectInfo.index))}this.setState({polygons:polygons})}}indexToBounds(){const{getElevation:getElevation,getFillColor:getFillColor,getLineColor:getLineColor,getLineWidth:getLineWidth}=this.props;return{data:this.state.polygons,getPolygon:d=>d.polygon,getElevation:this.getSubLayerAccessor(getElevation),getFillColor:this.getSubLayerAccessor(getFillColor),getLineColor:this.getSubLayerAccessor(getLineColor),getLineWidth:this.getSubLayerAccessor(getLineWidth)}}}(0,defineProperty.Z)(H3ClusterLayer,"layerName","H3ClusterLayer"),(0,defineProperty.Z)(H3ClusterLayer,"defaultProps",{getHexagons:{type:"accessor",value:d=>d.hexagons}});var geometry_geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),point_cloud_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/point-cloud-layer/point-cloud-layer.js"),scenegraph_layer=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/scenegraph-layer/scenegraph-layer.js"),gltf_material_parser=__webpack_require__("./node_modules/@luma.gl/experimental/dist/esm/gltf/gltf-material-parser.js"),pbr=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/pbr/pbr.js"),lib_model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),simple_mesh_layer=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/simple-mesh-layer/simple-mesh-layer.js");class MeshLayer extends simple_mesh_layer.Z{getShaders(){const shaders=super.getShaders();return shaders.modules.push(pbr.b),{...shaders,vs:"#version 300 es\n#define SHADER_NAME simple-mesh-layer-vs\nuniform float sizeScale;\nuniform bool composeModelMatrix;\nuniform bool pickFeatureIds;\nin vec3 positions;\nin vec3 normals;\nin vec3 colors;\nin vec2 texCoords;\nin vec4 uvRegions;\nin vec3 featureIdsPickingColors;\nin vec4 instanceColors;\nin vec3 instancePickingColors;\nin mat3 instanceModelMatrix;\nout vec2 vTexCoord;\nout vec3 cameraPosition;\nout vec3 normals_commonspace;\nout vec4 position_commonspace;\nout vec4 vColor;\n\nvec2 applyUVRegion(vec2 uv) {\n #ifdef HAS_UV_REGIONS\n return fract(uv) * (uvRegions.zw - uvRegions.xy) + uvRegions.xy;\n #else\n return uv;\n #endif\n}\n\nvoid main(void) {\n vec2 uv = applyUVRegion(texCoords);\n geometry.uv = uv;\n\n if (pickFeatureIds) {\n geometry.pickingColor = featureIdsPickingColors;\n } else {\n geometry.pickingColor = instancePickingColors;\n }\n\n vTexCoord = uv;\n cameraPosition = project_uCameraPosition;\n vColor = vec4(colors * instanceColors.rgb, instanceColors.a);\n\n vec3 pos = (instanceModelMatrix * positions) * sizeScale;\n vec3 projectedPosition = project_position(positions);\n position_commonspace = vec4(projectedPosition, 1.0);\n gl_Position = project_common_position_to_clipspace(position_commonspace);\n\n geometry.position = position_commonspace;\n normals_commonspace = project_normal(instanceModelMatrix * normals);\n geometry.normal = normals_commonspace;\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n #ifdef MODULE_PBR\n pbr_vPosition = geometry.position.xyz;\n #ifdef HAS_NORMALS\n pbr_vNormal = geometry.normal;\n #endif\n\n #ifdef HAS_UV\n pbr_vUV = uv;\n #else\n pbr_vUV = vec2(0., 0.);\n #endif\n geometry.uv = pbr_vUV;\n #endif\n\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#version 300 es\n#define SHADER_NAME simple-mesh-layer-fs\n\nprecision highp float;\n\nuniform bool hasTexture;\nuniform sampler2D sampler;\nuniform bool flatShading;\nuniform float opacity;\n\nin vec2 vTexCoord;\nin vec3 cameraPosition;\nin vec3 normals_commonspace;\nin vec4 position_commonspace;\nin vec4 vColor;\n\nout vec4 fragColor;\n\nvoid main(void) {\n \n#ifdef MODULE_PBR\n\n fragColor = vColor * pbr_filterColor(vec4(0));\n geometry.uv = pbr_vUV;\n fragColor.a *= opacity;\n\n#else\n\n geometry.uv = vTexCoord;\n\n vec3 normal;\n if (flatShading) {\n#ifdef DERIVATIVES_AVAILABLE\n normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n#else\n normal = vec3(0.0, 0.0, 1.0);\n#endif\n } else {\n normal = normals_commonspace;\n }\n\n vec4 color = hasTexture ? texture(sampler, vTexCoord) : vColor;\n vec3 lightColor = lighting_getLightColor(color.rgb, cameraPosition, position_commonspace.xyz, normal);\n fragColor = vec4(lightColor, color.a * opacity);\n\n#endif\n\n DECKGL_FILTER_COLOR(fragColor, geometry);\n}\n"}}initializeState(){const{featureIds:featureIds}=this.props;super.initializeState();const attributeManager=this.getAttributeManager();featureIds&&attributeManager.add({featureIdsPickingColors:{type:5121,size:3,noAlloc:!0,update:this.calculateFeatureIdsPickingColors}})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps}=params;props.pbrMaterial!==oldProps.pbrMaterial&&this.updatePbrMaterialUniforms(props.pbrMaterial)}draw(opts){const{featureIds:featureIds}=this.props;this.state.model&&(this.state.model.setUniforms({u_Camera:this.state.model.getUniforms().project_uCameraPosition,pickFeatureIds:Boolean(featureIds)}),super.draw(opts))}getModel(mesh){const{id:id,pbrMaterial:pbrMaterial}=this.props,materialParser=this.parseMaterial(pbrMaterial,mesh);this.setState({materialParser:materialParser});const shaders=this.getShaders();!function validateGeometryAttributes(attributes){attributes.COLOR_0||attributes.colors||(attributes.colors={constant:!0,value:new Float32Array([1,1,1])})}(mesh.attributes);return new lib_model.Z(this.context.gl,{...this.getShaders(),id:id,geometry:mesh,defines:{...shaders.defines,...null==materialParser?void 0:materialParser.defines,HAS_UV_REGIONS:mesh.attributes.uvRegions},parameters:null==materialParser?void 0:materialParser.parameters,isInstanced:!0})}updatePbrMaterialUniforms(pbrMaterial){const{model:model}=this.state;if(model){const{mesh:mesh}=this.props,materialParser=this.parseMaterial(pbrMaterial,mesh);this.setState({materialParser:materialParser}),model.setUniforms(materialParser.uniforms)}}parseMaterial(pbrMaterial,mesh){var _this$state$materialP;const unlit=Boolean(pbrMaterial.pbrMetallicRoughness&&pbrMaterial.pbrMetallicRoughness.baseColorTexture);return null===(_this$state$materialP=this.state.materialParser)||void 0===_this$state$materialP||_this$state$materialP.delete(),new gltf_material_parser.Z(this.context.gl,{attributes:{NORMAL:mesh.attributes.normals,TEXCOORD_0:mesh.attributes.texCoords},material:{unlit:unlit,...pbrMaterial},pbrDebug:!1,imageBasedLightingEnvironment:null,lights:!0,useTangents:!1})}calculateFeatureIdsPickingColors(attribute){const featureIds=this.props.featureIds,value=new Uint8ClampedArray(featureIds.length*attribute.size),pickingColor=[];for(let index=0;index=0),(0,lib_assert.Z)(y>=0),(0,lib_assert.Z)(z>=0),this.radii=new vector3.Z(x,y,z),this.radiiSquared=new vector3.Z(x*x,y*y,z*z),this.radiiToTheFourth=new vector3.Z(x*x*x*x,y*y*y*y,z*z*z*z),this.oneOverRadii=new vector3.Z(0===x?0:1/x,0===y?0:1/y,0===z?0:1/z),this.oneOverRadiiSquared=new vector3.Z(0===x?0:1/(x*x),0===y?0:1/(y*y),0===z?0:1/(z*z)),this.minimumRadius=Math.min(x,y,z),this.maximumRadius=Math.max(x,y,z),0!==this.radiiSquared.z&&(this.squaredXOverSquaredZ=this.radiiSquared.x/this.radiiSquared.z),Object.freeze(this)}equals(right){return this===right||Boolean(right&&this.radii.equals(right.radii))}toString(){return this.radii.toString()}cartographicToCartesian(cartographic,result=[0,0,0]){const normal=ellipsoid_scratchNormal,k=scratchK,[,,height]=cartographic;this.geodeticSurfaceNormalCartographic(cartographic,normal),k.copy(this.radiiSquared).scale(normal);const gamma=Math.sqrt(normal.dot(k));return k.scale(1/gamma),normal.scale(height),k.add(normal),k.to(result)}cartesianToCartographic(cartesian,result=[0,0,0]){scratchCartesian.from(cartesian);const point=this.scaleToGeodeticSurface(scratchCartesian,ellipsoid_scratchPosition);if(!point)return;const normal=this.geodeticSurfaceNormal(point,ellipsoid_scratchNormal),h=scratchHeight;h.copy(scratchCartesian).subtract(point);return function toCartographicFromRadians(vector,cartographic){return toCartographic(vector,cartographic,common.vc._cartographicRadians?identity:common.Ux)}([Math.atan2(normal.y,normal.x),Math.asin(normal.z),Math.sign(vec3.AK(h,scratchCartesian))*vec3.kE(h)],result)}eastNorthUpToFixedFrame(origin,result=new matrix4.Z){return localFrameToFixedFrame(this,"east","north","up",origin,result)}localFrameToFixedFrame(firstAxis,secondAxis,thirdAxis,origin,result=new matrix4.Z){return localFrameToFixedFrame(this,firstAxis,secondAxis,thirdAxis,origin,result)}geocentricSurfaceNormal(cartesian,result=[0,0,0]){return ellipsoid_scratchVector.from(cartesian).normalize().to(result)}geodeticSurfaceNormalCartographic(cartographic,result=[0,0,0]){const cartographicVectorRadians=function fromCartographicToRadians(cartographic,vector=[]){return fromCartographic(cartographic,vector,common.vc._cartographicRadians?identity:common.Yr)}(cartographic),longitude=cartographicVectorRadians[0],latitude=cartographicVectorRadians[1],cosLatitude=Math.cos(latitude);return ellipsoid_scratchVector.set(cosLatitude*Math.cos(longitude),cosLatitude*Math.sin(longitude),Math.sin(latitude)).normalize(),ellipsoid_scratchVector.to(result)}geodeticSurfaceNormal(cartesian,result=[0,0,0]){return ellipsoid_scratchVector.from(cartesian).scale(this.oneOverRadiiSquared).normalize().to(result)}scaleToGeodeticSurface(cartesian,result){return function scaleToGeodeticSurface(cartesian,ellipsoid,result=[]){const{oneOverRadii:oneOverRadii,oneOverRadiiSquared:oneOverRadiiSquared,centerToleranceSquared:centerToleranceSquared}=ellipsoid;scale_to_geodetic_surface_scratchVector.from(cartesian);const positionX=scale_to_geodetic_surface_scratchVector.x,positionY=scale_to_geodetic_surface_scratchVector.y,positionZ=scale_to_geodetic_surface_scratchVector.z,oneOverRadiiX=oneOverRadii.x,oneOverRadiiY=oneOverRadii.y,oneOverRadiiZ=oneOverRadii.z,x2=positionX*positionX*oneOverRadiiX*oneOverRadiiX,y2=positionY*positionY*oneOverRadiiY*oneOverRadiiY,z2=positionZ*positionZ*oneOverRadiiZ*oneOverRadiiZ,squaredNorm=x2+y2+z2,ratio=Math.sqrt(1/squaredNorm);if(!Number.isFinite(ratio))return;const intersection=scaleToGeodeticSurfaceIntersection;if(intersection.copy(cartesian).scale(ratio),squaredNormmath_utils.Z.EPSILON12);return scale_to_geodetic_surface_scratchVector.scale([xMultiplier,yMultiplier,zMultiplier]).to(result)}(cartesian,this,result)}scaleToGeocentricSurface(cartesian,result=[0,0,0]){ellipsoid_scratchPosition.from(cartesian);const positionX=ellipsoid_scratchPosition.x,positionY=ellipsoid_scratchPosition.y,positionZ=ellipsoid_scratchPosition.z,oneOverRadiiSquared=this.oneOverRadiiSquared,beta=1/Math.sqrt(positionX*positionX*oneOverRadiiSquared.x+positionY*positionY*oneOverRadiiSquared.y+positionZ*positionZ*oneOverRadiiSquared.z);return ellipsoid_scratchPosition.multiplyScalar(beta).to(result)}transformPositionToScaledSpace(position,result=[0,0,0]){return ellipsoid_scratchPosition.from(position).scale(this.oneOverRadii).to(result)}transformPositionFromScaledSpace(position,result=[0,0,0]){return ellipsoid_scratchPosition.from(position).scale(this.radii).to(result)}getSurfaceNormalIntersectionWithZAxis(position,buffer=0,result=[0,0,0]){(0,lib_assert.Z)((0,common.fS)(this.radii.x,this.radii.y,math_utils.Z.EPSILON15)),(0,lib_assert.Z)(this.radii.z>0),ellipsoid_scratchPosition.from(position);const z=ellipsoid_scratchPosition.z*(1-this.squaredXOverSquaredZ);if(!(Math.abs(z)>=this.radii.z-buffer))return ellipsoid_scratchPosition.set(0,0,z).to(result)}}(0,defineProperty.Z)(Ellipsoid,"WGS84",new Ellipsoid(6378137,6378137,6356752.314245179));var path=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/path-utils/path.js");class DoublyLinkedListNode{constructor(item,previous,next){(0,defineProperty.Z)(this,"item",void 0),(0,defineProperty.Z)(this,"previous",void 0),(0,defineProperty.Z)(this,"next",void 0),this.item=item,this.previous=previous,this.next=next}}class DoublyLinkedList{constructor(){(0,defineProperty.Z)(this,"head",null),(0,defineProperty.Z)(this,"tail",null),(0,defineProperty.Z)(this,"_length",0)}get length(){return this._length}add(item){const node=new DoublyLinkedListNode(item,this.tail,null);return this.tail?(this.tail.next=node,this.tail=node):(this.head=node,this.tail=node),++this._length,node}remove(node){node&&(node.previous&&node.next?(node.previous.next=node.next,node.next.previous=node.previous):node.previous?(node.previous.next=null,this.tail=node.previous):node.next?(node.next.previous=null,this.head=node.next):(this.head=null,this.tail=null),node.next=null,node.previous=null,--this._length)}splice(node,nextNode){node!==nextNode&&(this.remove(nextNode),this._insert(node,nextNode))}_insert(node,nextNode){const oldNodeNext=node.next;node.next=nextNode,this.tail===node?this.tail=nextNode:oldNodeNext.previous=nextNode,nextNode.next=oldNodeNext,nextNode.previous=node,++this._length}}class TilesetCache{constructor(){(0,defineProperty.Z)(this,"_list",void 0),(0,defineProperty.Z)(this,"_sentinel",void 0),(0,defineProperty.Z)(this,"_trimTiles",void 0),this._list=new DoublyLinkedList,this._sentinel=this._list.add("sentinel"),this._trimTiles=!1}reset(){this._list.splice(this._list.tail,this._sentinel)}touch(tile){const node=tile._cacheNode;node&&this._list.splice(this._sentinel,node)}add(tileset,tile,addCallback){tile._cacheNode||(tile._cacheNode=this._list.add(tile),addCallback&&addCallback(tileset,tile))}unloadTile(tileset,tile,unloadCallback){const node=tile._cacheNode;node&&(this._list.remove(node),tile._cacheNode=null,unloadCallback&&unloadCallback(tileset,tile))}unloadTiles(tileset,unloadCallback){const trimTiles=this._trimTiles;this._trimTiles=!1;const list=this._list,maximumMemoryUsageInBytes=1024*tileset.maximumMemoryUsage*1024,sentinel=this._sentinel;let node=list.head;for(;node!==sentinel&&(tileset.gpuMemoryUsageInBytes>maximumMemoryUsageInBytes||trimTiles);){const tile=node.item;node=node.next,this.unloadTile(tileset,tile,unloadCallback)}}trim(){this._trimTiles=!0}}var env_utils_assert=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/assert.js");const frame_state_scratchVector=new vector3.Z,frame_state_scratchPosition=new vector3.Z,cullingVolume=new culling_volume_CullingVolume([new plane_Plane,new plane_Plane,new plane_Plane,new plane_Plane,new plane_Plane,new plane_Plane]);function getFrameState(viewport,frameNumber){const{cameraDirection:cameraDirection,cameraUp:cameraUp,height:height}=viewport,{metersPerUnit:metersPerUnit}=viewport.distanceScales,viewportCenterCartesian=worldToCartesian(viewport,viewport.center),enuToFixedTransform=Ellipsoid.WGS84.eastNorthUpToFixedFrame(viewportCenterCartesian),cameraPositionCartographic=viewport.unprojectPosition(viewport.cameraPosition),cameraPositionCartesian=Ellipsoid.WGS84.cartographicToCartesian(cameraPositionCartographic,new vector3.Z),cameraDirectionCartesian=new vector3.Z(enuToFixedTransform.transformAsVector(new vector3.Z(cameraDirection).scale(metersPerUnit))).normalize(),cameraUpCartesian=new vector3.Z(enuToFixedTransform.transformAsVector(new vector3.Z(cameraUp).scale(metersPerUnit))).normalize();!function commonSpacePlanesToWGS84(viewport){const frustumPlanes=viewport.getFrustumPlanes(),nearCenterCommon=closestPointOnPlane(frustumPlanes.near,viewport.cameraPosition),nearCenterCartesian=worldToCartesian(viewport,nearCenterCommon),cameraCartesian=worldToCartesian(viewport,viewport.cameraPosition,frame_state_scratchPosition);let i=0;cullingVolume.planes[i++].fromPointNormal(nearCenterCartesian,frame_state_scratchVector.copy(nearCenterCartesian).subtract(cameraCartesian));for(const dir in frustumPlanes){if("near"===dir)continue;const cartesianPos=worldToCartesian(viewport,closestPointOnPlane(frustumPlanes[dir],nearCenterCommon,frame_state_scratchPosition),frame_state_scratchPosition);cullingVolume.planes[i++].fromPointNormal(cartesianPos,frame_state_scratchVector.copy(nearCenterCartesian).subtract(cartesianPos))}}(viewport);const ViewportClass=viewport.constructor,{longitude:longitude,latitude:latitude,width:width,bearing:bearing,zoom:zoom}=viewport;return{camera:{position:cameraPositionCartesian,direction:cameraDirectionCartesian,up:cameraUpCartesian},viewport:viewport,topDownViewport:new ViewportClass({longitude:longitude,latitude:latitude,height:height,width:width,bearing:bearing,zoom:zoom,pitch:0}),height:height,cullingVolume:cullingVolume,frameNumber:frameNumber,sseDenominator:1.15}}function closestPointOnPlane(plane,refPoint){let out=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new vector3.Z;const distanceToRef=plane.normal.dot(refPoint);return out.copy(plane.normal).scale(plane.distance-distanceToRef).add(refPoint),out}function worldToCartesian(viewport,point){let out=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new vector3.Z;const cartographicPos=viewport.unprojectPosition(point);return Ellipsoid.WGS84.cartographicToCartesian(cartographicPos,out)}const zoom_WGS84_RADIUS_Z=6356752.314245179,zoom_scratchVector=new vector3.Z;function getZoomFromBoundingVolume(boundingVolume,cartorgraphicCenter){if(boundingVolume instanceof OrientedBoundingBox){const{halfAxes:halfAxes}=boundingVolume,obbSize=function getObbSize(halfAxes){halfAxes.getColumn(0,zoom_scratchVector);const axeY=halfAxes.getColumn(1),axeZ=halfAxes.getColumn(2),farthestVertex=zoom_scratchVector.add(axeY).add(axeZ);return farthestVertex.len()}(halfAxes);return Math.log2(zoom_WGS84_RADIUS_Z/(obbSize+cartorgraphicCenter[2]))}if(boundingVolume instanceof bounding_sphere_BoundingSphere){const{radius:radius}=boundingVolume;return Math.log2(zoom_WGS84_RADIUS_Z/(radius+cartorgraphicCenter[2]))}if(boundingVolume.width&&boundingVolume.height){const{width:width,height:height}=boundingVolume;return(Math.log2(6378137/width)+Math.log2(6378137/height))/2}return 1}function getZoomFromFullExtent(fullExtent,cartorgraphicCenter,cartesianCenter){const extentVertex=Ellipsoid.WGS84.cartographicToCartesian([fullExtent.xmax,fullExtent.ymax,fullExtent.zmax],new vector3.Z),extentSize=Math.sqrt(Math.pow(extentVertex[0]-cartesianCenter[0],2)+Math.pow(extentVertex[1]-cartesianCenter[1],2)+Math.pow(extentVertex[2]-cartesianCenter[2],2));return Math.log2(zoom_WGS84_RADIUS_Z/(extentSize+cartorgraphicCenter[2]))}const TILE_CONTENT_STATE_UNLOADED=0,TILE_CONTENT_STATE_LOADING=1,TILE_CONTENT_STATE_READY=3,TILE_CONTENT_STATE_EXPIRED=4,TILE_CONTENT_STATE_FAILED=5,TILE_REFINEMENT={ADD:1,REPLACE:2},TILE_TYPE={EMPTY:"empty",SCENEGRAPH:"scenegraph",POINTCLOUD:"pointcloud",MESH:"mesh"},TILESET_TYPE={I3S:"I3S",TILES3D:"TILES3D"},LOD_METRIC_TYPE={GEOMETRIC_ERROR:"geometricError",MAX_SCREEN_THRESHOLD:"maxScreenThreshold"},TILE3D_OPTIMIZATION_HINT_USE_OPTIMIZATION=1;function bounding_volume_defined(x){return null!=x}const scratchPoint=new vector3.Z,scratchScale=new vector3.Z,scratchNorthWest=new vector3.Z,scratchSouthEast=new vector3.Z;function createBoundingVolume(boundingVolumeHeader,transform,result){if((0,env_utils_assert.h)(boundingVolumeHeader,"3D Tile: boundingVolume must be defined"),boundingVolumeHeader.box)return function createBox(box,transform,result){const center=new vector3.Z(box[0],box[1],box[2]);transform.transform(center,center);let origin=[];if(10===box.length){const halfSize=box.slice(3,6),quaternion=new classes_quaternion.Z;quaternion.fromArray(box,6);const x=new vector3.Z([1,0,0]),y=new vector3.Z([0,1,0]),z=new vector3.Z([0,0,1]);x.transformByQuaternion(quaternion),x.scale(halfSize[0]),y.transformByQuaternion(quaternion),y.scale(halfSize[1]),z.transformByQuaternion(quaternion),z.scale(halfSize[2]),origin=[...x.toArray(),...y.toArray(),...z.toArray()]}else origin=[...box.slice(3,6),...box.slice(6,9),...box.slice(9,12)];const xAxis=transform.transformAsVector(origin.slice(0,3)),yAxis=transform.transformAsVector(origin.slice(3,6)),zAxis=transform.transformAsVector(origin.slice(6,9)),halfAxes=new matrix3.Z([xAxis[0],xAxis[1],xAxis[2],yAxis[0],yAxis[1],yAxis[2],zAxis[0],zAxis[1],zAxis[2]]);if(bounding_volume_defined(result))return result.center=center,result.halfAxes=halfAxes,result;return new OrientedBoundingBox(center,halfAxes)}(boundingVolumeHeader.box,transform,result);if(boundingVolumeHeader.region){const[west,south,east,north,minHeight,maxHeight]=boundingVolumeHeader.region,northWest=Ellipsoid.WGS84.cartographicToCartesian([(0,common.RW)(west),(0,common.RW)(north),minHeight],scratchNorthWest),southEast=Ellipsoid.WGS84.cartographicToCartesian([(0,common.RW)(east),(0,common.RW)(south),maxHeight],scratchSouthEast),centerInCartesian=(new vector3.Z).addVectors(northWest,southEast).multiplyScalar(.5),radius=(new vector3.Z).subVectors(northWest,southEast).len()/2;return createSphere([centerInCartesian[0],centerInCartesian[1],centerInCartesian[2],radius],new matrix4.Z)}if(boundingVolumeHeader.sphere)return createSphere(boundingVolumeHeader.sphere,transform,result);throw new Error("3D Tile: boundingVolume must contain a sphere, region, or box")}function getCartographicBounds(boundingVolumeHeader,boundingVolume){if(boundingVolumeHeader.box)return function orientedBoundingBoxToCartographicBounds(boundingVolume){const result=emptyCartographicBounds(),{halfAxes:halfAxes}=boundingVolume,xAxis=new vector3.Z(halfAxes.getColumn(0)),yAxis=new vector3.Z(halfAxes.getColumn(1)),zAxis=new vector3.Z(halfAxes.getColumn(2));for(let x=0;x<2;x++){for(let y=0;y<2;y++){for(let z=0;z<2;z++)scratchPoint.copy(boundingVolume.center),scratchPoint.add(xAxis),scratchPoint.add(yAxis),scratchPoint.add(zAxis),addToCartographicBounds(result,scratchPoint),zAxis.negate();yAxis.negate()}xAxis.negate()}return result}(boundingVolume);if(boundingVolumeHeader.region){const[west,south,east,north,minHeight,maxHeight]=boundingVolumeHeader.region;return[[(0,common.RW)(west),(0,common.RW)(south),minHeight],[(0,common.RW)(east),(0,common.RW)(north),maxHeight]]}if(boundingVolumeHeader.sphere)return function boundingSphereToCartographicBounds(boundingVolume){const result=emptyCartographicBounds(),{center:center,radius:radius}=boundingVolume,point=Ellipsoid.WGS84.scaleToGeodeticSurface(center,scratchPoint);let zAxis;zAxis=point?Ellipsoid.WGS84.geodeticSurfaceNormal(point):new vector3.Z(0,0,1);let xAxis=new vector3.Z(zAxis[2],-zAxis[1],0);xAxis.len()>0?xAxis.normalize():xAxis=new vector3.Z(0,1,0);const yAxis=xAxis.clone().cross(zAxis);for(const axis of[xAxis,yAxis,zAxis]){scratchScale.copy(axis).scale(radius);for(let dir=0;dir<2;dir++)scratchPoint.copy(center),scratchPoint.add(scratchScale),addToCartographicBounds(result,scratchPoint),scratchScale.negate()}return result}(boundingVolume);throw new Error("Unkown boundingVolume type")}function createSphere(sphere,transform,result){const center=new vector3.Z(sphere[0],sphere[1],sphere[2]);transform.transform(center,center);const scale=transform.getScale(scratchScale),uniformScale=Math.max(Math.max(scale[0],scale[1]),scale[2]),radius=sphere[3]*uniformScale;return bounding_volume_defined(result)?(result.center=center,result.radius=radius,result):new bounding_sphere_BoundingSphere(center,radius)}function emptyCartographicBounds(){return[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]]}function addToCartographicBounds(target,cartesian){Ellipsoid.WGS84.cartesianToCartographic(cartesian,scratchPoint),target[0][0]=Math.min(target[0][0],scratchPoint[0]),target[0][1]=Math.min(target[0][1],scratchPoint[1]),target[0][2]=Math.min(target[0][2],scratchPoint[2]),target[1][0]=Math.max(target[1][0],scratchPoint[0]),target[1][1]=Math.max(target[1][1],scratchPoint[1]),target[1][2]=Math.max(target[1][2],scratchPoint[2])}new vector3.Z,new vector3.Z,new matrix4.Z,new vector3.Z,new vector3.Z,new vector3.Z;function getDynamicScreenSpaceError(tileset,distanceToCamera){if(tileset.dynamicScreenSpaceError&&tileset.dynamicScreenSpaceErrorComputedDensity){const density=tileset.dynamicScreenSpaceErrorComputedDensity,factor=tileset.dynamicScreenSpaceErrorFactor,dynamicError=function fog(distanceToCamera,density){const scalar=distanceToCamera*density;return 1-Math.exp(-scalar*scalar)}(distanceToCamera,density)*factor;return dynamicError}return 0}const cameraPositionCartesian=new vector3.Z,toEye=new vector3.Z,cameraPositionEnu=new vector3.Z,extraVertexEnu=new vector3.Z,projectedOriginVector=new vector3.Z,enuToCartesianMatrix=new matrix4.Z,cartesianToEnuMatrix=new matrix4.Z;function getProjectedRadius(tile,frameState){const{topDownViewport:viewport}=frameState,mbsLat=tile.header.mbs[1],mbsLon=tile.header.mbs[0],mbsZ=tile.header.mbs[2],mbsR=tile.header.mbs[3],mbsCenterCartesian=[...tile.boundingVolume.center],cameraPositionCartographic=viewport.unprojectPosition(viewport.cameraPosition);Ellipsoid.WGS84.cartographicToCartesian(cameraPositionCartographic,cameraPositionCartesian),toEye.copy(cameraPositionCartesian).subtract(mbsCenterCartesian).normalize(),Ellipsoid.WGS84.eastNorthUpToFixedFrame(mbsCenterCartesian,enuToCartesianMatrix),cartesianToEnuMatrix.copy(enuToCartesianMatrix).invert(),cameraPositionEnu.copy(cameraPositionCartesian).transform(cartesianToEnuMatrix);const projection=Math.sqrt(cameraPositionEnu[0]*cameraPositionEnu[0]+cameraPositionEnu[1]*cameraPositionEnu[1]),extraZ=projection*projection/cameraPositionEnu[2];extraVertexEnu.copy([cameraPositionEnu[0],cameraPositionEnu[1],extraZ]);const extraVectorCartesian=extraVertexEnu.transform(enuToCartesianMatrix).subtract(mbsCenterCartesian).normalize(),sphereMbsBorderVertexCartesian=toEye.cross(extraVectorCartesian).normalize().scale(mbsR).add(mbsCenterCartesian),sphereMbsBorderVertexCartographic=Ellipsoid.WGS84.cartesianToCartographic(sphereMbsBorderVertexCartesian),projectedOrigin=viewport.project([mbsLon,mbsLat,mbsZ]),projectedMbsBorderVertex=viewport.project(sphereMbsBorderVertexCartographic);return projectedOriginVector.copy(projectedOrigin).subtract(projectedMbsBorderVertex).magnitude()}class ManagedArray{constructor(){let length=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;(0,defineProperty.Z)(this,"_map",new Map),(0,defineProperty.Z)(this,"_array",void 0),(0,defineProperty.Z)(this,"_length",void 0),this._array=new Array(length),this._length=length}get length(){return this._length}set length(length){this._length=length,length>this._array.length&&(this._array.length=length)}get values(){return this._array}get(index){return(0,env_utils_assert.h)(index=0),index>=this.length&&(this.length=index+1),this._map.has(this._array[index])&&this._map.delete(this._array[index]),this._array[index]=element,this._map.set(element,index)}delete(element){const index=this._map.get(element);index>=0&&(this._array.splice(index,1),this._map.delete(element),this.length--)}peek(){return this._array[this._length-1]}push(element){if(!this._map.has(element)){const index=this.length++;this._array[index]=element,this._map.set(element,index)}}pop(){const element=this._array[--this.length];return this._map.delete(element),element}reserve(length){(0,env_utils_assert.h)(length>=0),length>this._array.length&&(this._array.length=length)}resize(length){(0,env_utils_assert.h)(length>=0),this.length=length}trim(length){null==length&&(length=this.length),this._array.length=length}reset(){this._array=[],this._map=new Map,this._length=0}find(target){return this._map.has(target)}}const tileset_traverser_DEFAULT_PROPS={loadSiblings:!1,skipLevelOfDetail:!1,maximumScreenSpaceError:2,updateTransforms:!0,onTraversalEnd:()=>{},viewportTraversersMap:{},basePath:""};class TilesetTraverser{traversalFinished(frameState){return!0}constructor(options){(0,defineProperty.Z)(this,"options",void 0),(0,defineProperty.Z)(this,"root",null),(0,defineProperty.Z)(this,"selectedTiles",{}),(0,defineProperty.Z)(this,"requestedTiles",{}),(0,defineProperty.Z)(this,"emptyTiles",{}),(0,defineProperty.Z)(this,"lastUpdate",(new Date).getTime()),(0,defineProperty.Z)(this,"updateDebounceTime",1e3),(0,defineProperty.Z)(this,"_traversalStack",new ManagedArray),(0,defineProperty.Z)(this,"_emptyTraversalStack",new ManagedArray),(0,defineProperty.Z)(this,"_frameNumber",null),this.options={...tileset_traverser_DEFAULT_PROPS,...options}}traverse(root,frameState,options){this.root=root,this.options={...this.options,...options},this.reset(),this.updateTile(root,frameState),this._frameNumber=frameState.frameNumber,this.executeTraversal(root,frameState)}reset(){this.requestedTiles={},this.selectedTiles={},this.emptyTiles={},this._traversalStack.reset(),this._emptyTraversalStack.reset()}executeTraversal(root,frameState){const stack=this._traversalStack;for(root._selectionDepth=1,stack.push(root);stack.length>0;){const tile=stack.pop();let shouldRefine=!1;this.canTraverse(tile,frameState)&&(this.updateChildTiles(tile,frameState),shouldRefine=this.updateAndPushChildren(tile,frameState,stack,tile.hasRenderContent?tile._selectionDepth+1:tile._selectionDepth));const parent=tile.parent,parentRefines=Boolean(!parent||parent._shouldRefine),stoppedRefining=!shouldRefine;tile.hasRenderContent?tile.refine===TILE_REFINEMENT.ADD?(this.loadTile(tile,frameState),this.selectTile(tile,frameState)):tile.refine===TILE_REFINEMENT.REPLACE&&(this.loadTile(tile,frameState),stoppedRefining&&this.selectTile(tile,frameState)):(this.emptyTiles[tile.id]=tile,this.loadTile(tile,frameState),stoppedRefining&&this.selectTile(tile,frameState)),this.touchTile(tile,frameState),tile._shouldRefine=shouldRefine&&parentRefines}const newTime=(new Date).getTime();(this.traversalFinished(frameState)||newTime-this.lastUpdate>this.updateDebounceTime)&&(this.lastUpdate=newTime,this.options.onTraversalEnd(frameState))}updateChildTiles(tile,frameState){const children=tile.children;for(const child of children)this.updateTile(child,frameState)}updateAndPushChildren(tile,frameState,stack,depth){const{loadSiblings:loadSiblings,skipLevelOfDetail:skipLevelOfDetail}=this.options,children=tile.children;children.sort(this.compareDistanceToCamera.bind(this));const checkRefines=tile.refine===TILE_REFINEMENT.REPLACE&&tile.hasRenderContent&&!skipLevelOfDetail;let hasVisibleChild=!1,refines=!0;for(const child of children)if(child._selectionDepth=depth,child.isVisibleAndInRequestVolume?(stack.find(child)&&stack.delete(child),stack.push(child),hasVisibleChild=!0):(checkRefines||loadSiblings)&&(this.loadTile(child,frameState),this.touchTile(child,frameState)),checkRefines){let childRefines;if(childRefines=!!child._inRequestVolume&&(child.hasRenderContent?child.contentAvailable:this.executeEmptyTraversal(child,frameState)),refines=refines&&childRefines,!refines)return!1}return hasVisibleChild||(refines=!1),refines}updateTile(tile,frameState){this.updateTileVisibility(tile,frameState)}selectTile(tile,frameState){this.shouldSelectTile(tile)&&(tile._selectedFrame=frameState.frameNumber,this.selectedTiles[tile.id]=tile)}loadTile(tile,frameState){this.shouldLoadTile(tile)&&(tile._requestedFrame=frameState.frameNumber,tile._priority=tile._getPriority(),this.requestedTiles[tile.id]=tile)}touchTile(tile,frameState){tile.tileset._cache.touch(tile),tile._touchedFrame=frameState.frameNumber}canTraverse(tile,frameState){let useParentMetric=arguments.length>2&&void 0!==arguments[2]&&arguments[2],ignoreVisibility=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return!!tile.hasChildren&&(tile.hasTilesetContent?!tile.contentExpired:!(!ignoreVisibility&&!tile.isVisibleAndInRequestVolume)&&this.shouldRefine(tile,frameState,useParentMetric))}shouldLoadTile(tile){return tile.hasUnloadedContent||tile.contentExpired}shouldSelectTile(tile){return tile.contentAvailable&&!this.options.skipLevelOfDetail}shouldRefine(tile,frameState){let useParentMetric=arguments.length>2&&void 0!==arguments[2]&&arguments[2],screenSpaceError=tile._screenSpaceError;return useParentMetric&&(screenSpaceError=tile.getScreenSpaceError(frameState,!0)),screenSpaceError>this.options.maximumScreenSpaceError}updateTileVisibility(tile,frameState){const viewportIds=[];if(this.options.viewportTraversersMap)for(const key in this.options.viewportTraversersMap){this.options.viewportTraversersMap[key]===frameState.viewport.id&&viewportIds.push(key)}else viewportIds.push(frameState.viewport.id);tile.updateVisibility(frameState,viewportIds)}compareDistanceToCamera(b,a){return b._distanceToCamera-a._distanceToCamera}anyChildrenVisible(tile,frameState){let anyVisible=!1;for(const child of tile.children)child.updateVisibility(frameState),anyVisible=anyVisible||child.isVisibleAndInRequestVolume;return anyVisible}executeEmptyTraversal(root,frameState){let allDescendantsLoaded=!0;const stack=this._emptyTraversalStack;for(stack.push(root);stack.length>0&&allDescendantsLoaded;){const tile=stack.pop();this.updateTile(tile,frameState),tile.isVisibleAndInRequestVolume||this.loadTile(tile,frameState),this.touchTile(tile,frameState);if(!tile.hasRenderContent&&this.canTraverse(tile,frameState,!1,!0)){const children=tile.children;for(const child of children)stack.find(child)&&stack.delete(child),stack.push(child)}else tile.contentAvailable||tile.hasEmptyContent||(allDescendantsLoaded=!1)}return allDescendantsLoaded}}const tile_3d_scratchVector=new vector3.Z;class Tile3D{constructor(tileset,header,parentHeader){let extendedId=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";(0,defineProperty.Z)(this,"tileset",void 0),(0,defineProperty.Z)(this,"header",void 0),(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"url",void 0),(0,defineProperty.Z)(this,"parent",void 0),(0,defineProperty.Z)(this,"refine",void 0),(0,defineProperty.Z)(this,"type",void 0),(0,defineProperty.Z)(this,"contentUrl",void 0),(0,defineProperty.Z)(this,"lodMetricType","geometricError"),(0,defineProperty.Z)(this,"lodMetricValue",0),(0,defineProperty.Z)(this,"boundingVolume",null),(0,defineProperty.Z)(this,"content",null),(0,defineProperty.Z)(this,"contentState",TILE_CONTENT_STATE_UNLOADED),(0,defineProperty.Z)(this,"gpuMemoryUsageInBytes",0),(0,defineProperty.Z)(this,"children",[]),(0,defineProperty.Z)(this,"depth",0),(0,defineProperty.Z)(this,"viewportIds",[]),(0,defineProperty.Z)(this,"transform",new matrix4.Z),(0,defineProperty.Z)(this,"extensions",null),(0,defineProperty.Z)(this,"implicitTiling",null),(0,defineProperty.Z)(this,"userData",{}),(0,defineProperty.Z)(this,"computedTransform",void 0),(0,defineProperty.Z)(this,"hasEmptyContent",!1),(0,defineProperty.Z)(this,"hasTilesetContent",!1),(0,defineProperty.Z)(this,"traverser",new TilesetTraverser({})),(0,defineProperty.Z)(this,"_cacheNode",null),(0,defineProperty.Z)(this,"_frameNumber",null),(0,defineProperty.Z)(this,"_expireDate",null),(0,defineProperty.Z)(this,"_expiredContent",null),(0,defineProperty.Z)(this,"_boundingBox",void 0),(0,defineProperty.Z)(this,"_distanceToCamera",0),(0,defineProperty.Z)(this,"_screenSpaceError",0),(0,defineProperty.Z)(this,"_visibilityPlaneMask",void 0),(0,defineProperty.Z)(this,"_visible",void 0),(0,defineProperty.Z)(this,"_contentBoundingVolume",void 0),(0,defineProperty.Z)(this,"_viewerRequestVolume",void 0),(0,defineProperty.Z)(this,"_initialTransform",new matrix4.Z),(0,defineProperty.Z)(this,"_priority",0),(0,defineProperty.Z)(this,"_selectedFrame",0),(0,defineProperty.Z)(this,"_requestedFrame",0),(0,defineProperty.Z)(this,"_selectionDepth",0),(0,defineProperty.Z)(this,"_touchedFrame",0),(0,defineProperty.Z)(this,"_centerZDepth",0),(0,defineProperty.Z)(this,"_shouldRefine",!1),(0,defineProperty.Z)(this,"_stackLength",0),(0,defineProperty.Z)(this,"_visitedFrame",0),(0,defineProperty.Z)(this,"_inRequestVolume",!1),(0,defineProperty.Z)(this,"_lodJudge",null),this.header=header,this.tileset=tileset,this.id=extendedId||header.id,this.url=header.url,this.parent=parentHeader,this.refine=this._getRefine(header.refine),this.type=header.type,this.contentUrl=header.contentUrl,this._initializeLodMetric(header),this._initializeTransforms(header),this._initializeBoundingVolumes(header),this._initializeContent(header),this._initializeRenderingState(header),Object.seal(this)}destroy(){this.header=null}isDestroyed(){return null===this.header}get selected(){return this._selectedFrame===this.tileset._frameNumber}get isVisible(){return this._visible}get isVisibleAndInRequestVolume(){return this._visible&&this._inRequestVolume}get hasRenderContent(){return!this.hasEmptyContent&&!this.hasTilesetContent}get hasChildren(){return this.children.length>0||this.header.children&&this.header.children.length>0}get contentReady(){return this.contentState===TILE_CONTENT_STATE_READY||this.hasEmptyContent}get contentAvailable(){return Boolean(this.contentReady&&this.hasRenderContent||this._expiredContent&&!this.contentFailed)}get hasUnloadedContent(){return this.hasRenderContent&&this.contentUnloaded}get contentUnloaded(){return this.contentState===TILE_CONTENT_STATE_UNLOADED}get contentExpired(){return this.contentState===TILE_CONTENT_STATE_EXPIRED}get contentFailed(){return this.contentState===TILE_CONTENT_STATE_FAILED}get distanceToCamera(){return this._distanceToCamera}get screenSpaceError(){return this._screenSpaceError}get boundingBox(){return this._boundingBox||(this._boundingBox=getCartographicBounds(this.header.boundingVolume,this.boundingVolume)),this._boundingBox}getScreenSpaceError(frameState,useParentLodMetric){switch(this.tileset.type){case TILESET_TYPE.I3S:return getProjectedRadius(this,frameState);case TILESET_TYPE.TILES3D:return function getTiles3DScreenSpaceError(tile,frameState,useParentLodMetric){const tileset=tile.tileset,parentLodMetricValue=tile.parent&&tile.parent.lodMetricValue||tile.lodMetricValue,lodMetricValue=useParentLodMetric?parentLodMetricValue:tile.lodMetricValue;if(0===lodMetricValue)return 0;const distance=Math.max(tile._distanceToCamera,1e-7),{height:height,sseDenominator:sseDenominator}=frameState,{viewDistanceScale:viewDistanceScale}=tileset.options;let error=lodMetricValue*height*(viewDistanceScale||1)/(distance*sseDenominator);return error-=getDynamicScreenSpaceError(tileset,distance),error}(this,frameState,useParentLodMetric);default:throw new Error("Unsupported tileset type")}}unselect(){this._selectedFrame=0}_getGpuMemoryUsageInBytes(){return this.content.gpuMemoryUsageInBytes||this.content.byteLength||0}_getPriority(){const traverser=this.tileset._traverser,{skipLevelOfDetail:skipLevelOfDetail}=traverser.options,maySkipTile=this.refine===TILE_REFINEMENT.ADD||skipLevelOfDetail;if(maySkipTile&&!this.isVisible&&void 0!==this._visible)return-1;if(this.tileset._frameNumber-this._touchedFrame>=1)return-1;if(this.contentState===TILE_CONTENT_STATE_UNLOADED)return-1;const parent=this.parent,screenSpaceError=parent&&(!maySkipTile||0===this._screenSpaceError||parent.hasTilesetContent)?parent._screenSpaceError:this._screenSpaceError,rootScreenSpaceError=traverser.root?traverser.root._screenSpaceError:0;return Math.max(rootScreenSpaceError-screenSpaceError,0)}async loadContent(){if(this.hasEmptyContent)return!1;if(this.content)return!0;this.contentExpired&&(this._expireDate=null),this.contentState=TILE_CONTENT_STATE_LOADING;const requestToken=await this.tileset._requestScheduler.scheduleRequest(this.id,this._getPriority.bind(this));if(!requestToken)return this.contentState=TILE_CONTENT_STATE_UNLOADED,!1;try{const contentUrl=this.tileset.getTileUrl(this.contentUrl),loader=this.tileset.loader,options={...this.tileset.loadOptions,[loader.id]:{...this.tileset.loadOptions[loader.id],isTileset:"json"===this.type,...this._getLoaderSpecificOptions(loader.id)}};return this.content=await(0,load.z)(contentUrl,loader,options),this.tileset.options.contentLoader&&await this.tileset.options.contentLoader(this),this._isTileset()&&this.tileset._initializeTileHeaders(this.content,this),this.contentState=TILE_CONTENT_STATE_READY,this._onContentLoaded(),!0}catch(error){throw this.contentState=TILE_CONTENT_STATE_FAILED,error}finally{requestToken.done()}}unloadContent(){return this.content&&this.content.destroy&&this.content.destroy(),this.content=null,this.header.content&&this.header.content.destroy&&this.header.content.destroy(),this.header.content=null,this.contentState=TILE_CONTENT_STATE_UNLOADED,!0}updateVisibility(frameState,viewportIds){if(this._frameNumber===frameState.frameNumber)return;const parent=this.parent,parentVisibilityPlaneMask=parent?parent._visibilityPlaneMask:culling_volume_CullingVolume.MASK_INDETERMINATE;if(this.tileset._traverser.options.updateTransforms){const parentTransform=parent?parent.computedTransform:this.tileset.modelMatrix;this._updateTransform(parentTransform)}this._distanceToCamera=this.distanceToTile(frameState),this._screenSpaceError=this.getScreenSpaceError(frameState,!1),this._visibilityPlaneMask=this.visibility(frameState,parentVisibilityPlaneMask),this._visible=this._visibilityPlaneMask!==culling_volume_CullingVolume.MASK_OUTSIDE,this._inRequestVolume=this.insideViewerRequestVolume(frameState),this._frameNumber=frameState.frameNumber,this.viewportIds=viewportIds}visibility(frameState,parentVisibilityPlaneMask){const{cullingVolume:cullingVolume}=frameState,{boundingVolume:boundingVolume}=this;return cullingVolume.computeVisibilityWithPlaneMask(boundingVolume,parentVisibilityPlaneMask)}contentVisibility(){return!0}distanceToTile(frameState){const boundingVolume=this.boundingVolume;return Math.sqrt(Math.max(boundingVolume.distanceSquaredTo(frameState.camera.position),0))}cameraSpaceZDepth(_ref){let{camera:camera}=_ref;const boundingVolume=this.boundingVolume;return tile_3d_scratchVector.subVectors(boundingVolume.center,camera.position),camera.direction.dot(tile_3d_scratchVector)}insideViewerRequestVolume(frameState){const viewerRequestVolume=this._viewerRequestVolume;return!viewerRequestVolume||viewerRequestVolume.distanceSquaredTo(frameState.camera.position)<=0}updateExpiration(){if(function tile_3d_defined(x){return null!=x}(this._expireDate)&&this.contentReady&&!this.hasEmptyContent){const now=Date.now();Date.lessThan(this._expireDate,now)&&(this.contentState=TILE_CONTENT_STATE_EXPIRED,this._expiredContent=this.content)}}get extras(){return this.header.extras}_initializeLodMetric(header){"lodMetricType"in header?this.lodMetricType=header.lodMetricType:(this.lodMetricType=this.parent&&this.parent.lodMetricType||this.tileset.lodMetricType,console.warn("3D Tile: Required prop lodMetricType is undefined. Using parent lodMetricType")),"lodMetricValue"in header?this.lodMetricValue=header.lodMetricValue:(this.lodMetricValue=this.parent&&this.parent.lodMetricValue||this.tileset.lodMetricValue,console.warn("3D Tile: Required prop lodMetricValue is undefined. Using parent lodMetricValue"))}_initializeTransforms(tileHeader){this.transform=tileHeader.transform?new matrix4.Z(tileHeader.transform):new matrix4.Z;const parent=this.parent,tileset=this.tileset,parentTransform=parent&&parent.computedTransform?parent.computedTransform.clone():tileset.modelMatrix.clone();this.computedTransform=new matrix4.Z(parentTransform).multiplyRight(this.transform);const parentInitialTransform=parent&&parent._initialTransform?parent._initialTransform.clone():new matrix4.Z;this._initialTransform=new matrix4.Z(parentInitialTransform).multiplyRight(this.transform)}_initializeBoundingVolumes(tileHeader){this._contentBoundingVolume=null,this._viewerRequestVolume=null,this._updateBoundingVolume(tileHeader)}_initializeContent(tileHeader){this.content={_tileset:this.tileset,_tile:this},this.hasEmptyContent=!0,this.contentState=TILE_CONTENT_STATE_UNLOADED,this.hasTilesetContent=!1,tileHeader.contentUrl&&(this.content=null,this.hasEmptyContent=!1)}_initializeRenderingState(header){this.depth=header.level||(this.parent?this.parent.depth+1:0),this._shouldRefine=!1,this._distanceToCamera=0,this._centerZDepth=0,this._screenSpaceError=0,this._visibilityPlaneMask=culling_volume_CullingVolume.MASK_INDETERMINATE,this._visible=void 0,this._inRequestVolume=!1,this._stackLength=0,this._selectionDepth=0,this._frameNumber=0,this._touchedFrame=0,this._visitedFrame=0,this._selectedFrame=0,this._requestedFrame=0,this._priority=0}_getRefine(refine){return refine||this.parent&&this.parent.refine||TILE_REFINEMENT.REPLACE}_isTileset(){return-1!==this.contentUrl.indexOf(".json")}_onContentLoaded(){switch(this.content&&this.content.type){case"vctr":case"geom":this.tileset._traverser.disableSkipLevelOfDetail=!0}this._isTileset()?this.hasTilesetContent=!0:this.gpuMemoryUsageInBytes=this._getGpuMemoryUsageInBytes()}_updateBoundingVolume(header){this.boundingVolume=createBoundingVolume(header.boundingVolume,this.computedTransform,this.boundingVolume);const content=header.content;content&&(content.boundingVolume&&(this._contentBoundingVolume=createBoundingVolume(content.boundingVolume,this.computedTransform,this._contentBoundingVolume)),header.viewerRequestVolume&&(this._viewerRequestVolume=createBoundingVolume(header.viewerRequestVolume,this.computedTransform,this._viewerRequestVolume)))}_updateTransform(){const computedTransform=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:new matrix4.Z).clone().multiplyRight(this.transform);!computedTransform.equals(this.computedTransform)&&(this.computedTransform=computedTransform,this._updateBoundingVolume(this.header))}_getLoaderSpecificOptions(loaderId){return"i3s"===loaderId?{...this.tileset.options.i3s,_tileOptions:{attributeUrls:this.header.attributeUrls,textureUrl:this.header.textureUrl,textureFormat:this.header.textureFormat,textureLoaderOptions:this.header.textureLoaderOptions,materialDefinition:this.header.materialDefinition,isDracoGeometry:this.header.isDracoGeometry,mbs:this.header.mbs},_tilesetOptions:{store:this.tileset.tileset.store,attributeStorageInfo:this.tileset.tileset.attributeStorageInfo,fields:this.tileset.tileset.fields},isTileHeader:!1}:function get3dTilesOptions(tileset){return{assetGltfUpAxis:tileset.asset&&tileset.asset.gltfUpAxis||"Y"}}(this.tileset.tileset)}}class Tileset3DTraverser extends TilesetTraverser{compareDistanceToCamera(a,b){return 0===b._distanceToCamera&&0===a._distanceToCamera?b._centerZDepth-a._centerZDepth:b._distanceToCamera-a._distanceToCamera}updateTileVisibility(tile,frameState){if(super.updateTileVisibility(tile,frameState),!tile.isVisibleAndInRequestVolume)return;const hasChildren=tile.children.length>0;if(tile.hasTilesetContent&&hasChildren){const firstChild=tile.children[0];return this.updateTileVisibility(firstChild,frameState),void(tile._visible=firstChild._visible)}if(this.meetsScreenSpaceErrorEarly(tile,frameState))return void(tile._visible=!1);const replace=tile.refine===TILE_REFINEMENT.REPLACE,useOptimization=tile._optimChildrenWithinParent===TILE3D_OPTIMIZATION_HINT_USE_OPTIMIZATION;replace&&useOptimization&&hasChildren&&!this.anyChildrenVisible(tile,frameState)&&(tile._visible=!1)}meetsScreenSpaceErrorEarly(tile,frameState){const{parent:parent}=tile;return!(!parent||parent.hasTilesetContent||parent.refine!==TILE_REFINEMENT.ADD)&&!this.shouldRefine(tile,frameState,!0)}}class I3SPendingTilesRegister{constructor(){(0,defineProperty.Z)(this,"frameNumberMap",new Map)}register(viewportId,frameNumber){const viewportMap=this.frameNumberMap.get(viewportId)||new Map,oldCount=viewportMap.get(frameNumber)||0;viewportMap.set(frameNumber,oldCount+1),this.frameNumberMap.set(viewportId,viewportMap)}deregister(viewportId,frameNumber){const viewportMap=this.frameNumberMap.get(viewportId);if(!viewportMap)return;const oldCount=viewportMap.get(frameNumber)||1;viewportMap.set(frameNumber,oldCount-1)}isZero(viewportId,frameNumber){var _this$frameNumberMap$;return 0===((null===(_this$frameNumberMap$=this.frameNumberMap.get(viewportId))||void 0===_this$frameNumberMap$?void 0:_this$frameNumberMap$.get(frameNumber))||0)}}const STATUS_REQUESTED="REQUESTED",STATUS_COMPLETED="COMPLETED",STATUS_ERROR="ERROR";class I3STileManager{constructor(){(0,defineProperty.Z)(this,"_statusMap",void 0),(0,defineProperty.Z)(this,"pendingTilesRegister",new I3SPendingTilesRegister),this._statusMap={}}add(request,key,callback,frameState){if(!this._statusMap[key]){const{frameNumber:frameNumber,viewport:{id:id}}=frameState;this._statusMap[key]={request:request,callback:callback,key:key,frameState:frameState,status:STATUS_REQUESTED},this.pendingTilesRegister.register(id,frameNumber),request().then((data=>{this._statusMap[key].status=STATUS_COMPLETED;const{frameNumber:actualFrameNumber,viewport:{id:id}}=this._statusMap[key].frameState;this.pendingTilesRegister.deregister(id,actualFrameNumber),this._statusMap[key].callback(data,frameState)})).catch((error=>{this._statusMap[key].status=STATUS_ERROR;const{frameNumber:actualFrameNumber,viewport:{id:id}}=this._statusMap[key].frameState;this.pendingTilesRegister.deregister(id,actualFrameNumber),callback(error)}))}}update(key,frameState){if(this._statusMap[key]){const{frameNumber:frameNumber,viewport:{id:id}}=this._statusMap[key].frameState;this.pendingTilesRegister.deregister(id,frameNumber);const{frameNumber:newFrameNumber,viewport:{id:newViewportId}}=frameState;this.pendingTilesRegister.register(newViewportId,newFrameNumber),this._statusMap[key].frameState=frameState}}find(key){return this._statusMap[key]}hasPendingTiles(viewportId,frameNumber){return!this.pendingTilesRegister.isZero(viewportId,frameNumber)}}class I3STilesetTraverser extends TilesetTraverser{constructor(options){super(options),(0,defineProperty.Z)(this,"_tileManager",void 0),this._tileManager=new I3STileManager}traversalFinished(frameState){return!this._tileManager.hasPendingTiles(frameState.viewport.id,this._frameNumber||0)}shouldRefine(tile,frameState){return tile._lodJudge=function getLodStatus(tile,frameState){if(0===tile.lodMetricValue||isNaN(tile.lodMetricValue))return"DIG";const screenSize=2*getProjectedRadius(tile,frameState);return screenSize<2?"OUT":!tile.header.children||screenSize<=tile.lodMetricValue?"DRAW":tile.header.children?"DIG":"OUT"}(tile,frameState),"DIG"===tile._lodJudge}updateChildTiles(tile,frameState){const children=tile.header.children||[],childTiles=tile.children,tileset=tile.tileset;for(const child of children){const extendedId="".concat(child.id,"-").concat(frameState.viewport.id),childTile=childTiles&&childTiles.find((t=>t.id===extendedId));if(childTile)childTile&&this.updateTile(childTile,frameState);else{let request=()=>this._loadTile(child.id,tileset);this._tileManager.find(extendedId)?this._tileManager.update(extendedId,frameState):(tileset.tileset.nodePages&&(request=()=>tileset.tileset.nodePagesTile.formTileFromNodePages(child.id)),this._tileManager.add(request,extendedId,(header=>this._onTileLoad(header,tile,extendedId)),frameState))}}return!1}async _loadTile(nodeId,tileset){const{loader:loader}=tileset,nodeUrl=tileset.getTileUrl("".concat(tileset.url,"/nodes/").concat(nodeId)),options={...tileset.loadOptions,i3s:{...tileset.loadOptions.i3s,isTileHeader:!0}};return await(0,load.z)(nodeUrl,loader,options)}_onTileLoad(header,tile,extendedId){const childTile=new Tile3D(tile.tileset,header,tile,extendedId);tile.children.push(childTile);const frameState=this._tileManager.find(childTile.id).frameState;this.updateTile(childTile,frameState),this._frameNumber===frameState.frameNumber&&(this.traversalFinished(frameState)||(new Date).getTime()-this.lastUpdate>this.updateDebounceTime)&&this.executeTraversal(childTile,frameState)}}const tileset_3d_DEFAULT_PROPS={description:"",ellipsoid:Ellipsoid.WGS84,modelMatrix:new matrix4.Z,throttleRequests:!0,maxRequests:64,maximumMemoryUsage:32,maximumTilesSelected:0,debounceTime:0,onTileLoad:()=>{},onTileUnload:()=>{},onTileError:()=>{},onTraversalComplete:selectedTiles=>selectedTiles,contentLoader:void 0,viewDistanceScale:1,maximumScreenSpaceError:8,loadTiles:!0,updateTransforms:!0,viewportTraversersMap:null,loadOptions:{fetch:{}},attributions:[],basePath:"",i3s:{}},TILES_TOTAL="Tiles In Tileset(s)";class Tileset3D{constructor(tileset,options){(0,defineProperty.Z)(this,"options",void 0),(0,defineProperty.Z)(this,"loadOptions",void 0),(0,defineProperty.Z)(this,"type",void 0),(0,defineProperty.Z)(this,"tileset",void 0),(0,defineProperty.Z)(this,"loader",void 0),(0,defineProperty.Z)(this,"url",void 0),(0,defineProperty.Z)(this,"basePath",void 0),(0,defineProperty.Z)(this,"modelMatrix",void 0),(0,defineProperty.Z)(this,"ellipsoid",void 0),(0,defineProperty.Z)(this,"lodMetricType",void 0),(0,defineProperty.Z)(this,"lodMetricValue",void 0),(0,defineProperty.Z)(this,"refine",void 0),(0,defineProperty.Z)(this,"root",null),(0,defineProperty.Z)(this,"roots",{}),(0,defineProperty.Z)(this,"asset",{}),(0,defineProperty.Z)(this,"description",""),(0,defineProperty.Z)(this,"properties",void 0),(0,defineProperty.Z)(this,"extras",null),(0,defineProperty.Z)(this,"attributions",{}),(0,defineProperty.Z)(this,"credits",{}),(0,defineProperty.Z)(this,"stats",void 0),(0,defineProperty.Z)(this,"contentFormats",{draco:!1,meshopt:!1,dds:!1,ktx2:!1}),(0,defineProperty.Z)(this,"cartographicCenter",null),(0,defineProperty.Z)(this,"cartesianCenter",null),(0,defineProperty.Z)(this,"zoom",1),(0,defineProperty.Z)(this,"boundingVolume",null),(0,defineProperty.Z)(this,"dynamicScreenSpaceErrorComputedDensity",0),(0,defineProperty.Z)(this,"maximumMemoryUsage",32),(0,defineProperty.Z)(this,"gpuMemoryUsageInBytes",0),(0,defineProperty.Z)(this,"_frameNumber",0),(0,defineProperty.Z)(this,"_queryParams",{}),(0,defineProperty.Z)(this,"_extensionsUsed",[]),(0,defineProperty.Z)(this,"_tiles",{}),(0,defineProperty.Z)(this,"_pendingCount",0),(0,defineProperty.Z)(this,"selectedTiles",[]),(0,defineProperty.Z)(this,"traverseCounter",0),(0,defineProperty.Z)(this,"geometricError",0),(0,defineProperty.Z)(this,"lastUpdatedVieports",null),(0,defineProperty.Z)(this,"_requestedTiles",[]),(0,defineProperty.Z)(this,"_emptyTiles",[]),(0,defineProperty.Z)(this,"frameStateData",{}),(0,defineProperty.Z)(this,"_traverser",void 0),(0,defineProperty.Z)(this,"_cache",new TilesetCache),(0,defineProperty.Z)(this,"_requestScheduler",void 0),(0,defineProperty.Z)(this,"updatePromise",null),(0,defineProperty.Z)(this,"tilesetInitializationPromise",void 0),this.options={...tileset_3d_DEFAULT_PROPS,...options},this.tileset=tileset,this.loader=tileset.loader,this.type=tileset.type,this.url=tileset.url,this.basePath=tileset.basePath||path.XX(this.url),this.modelMatrix=this.options.modelMatrix,this.ellipsoid=this.options.ellipsoid,this.lodMetricType=tileset.lodMetricType,this.lodMetricValue=tileset.lodMetricValue,this.refine=tileset.root.refine,this.loadOptions=this.options.loadOptions||{},this._traverser=this._initializeTraverser(),this._requestScheduler=new RequestScheduler({throttleRequests:this.options.throttleRequests,maxRequests:this.options.maxRequests}),this.stats=new dist_esm.jk({id:this.url}),this._initializeStats(),this.tilesetInitializationPromise=this._initializeTileSet(tileset)}destroy(){this._destroy()}isLoaded(){return 0===this._pendingCount&&0!==this._frameNumber&&0===this._requestedTiles.length}get tiles(){return Object.values(this._tiles)}get frameNumber(){return this._frameNumber}get queryParams(){return new URLSearchParams(this._queryParams).toString()}setProps(props){this.options={...this.options,...props}}setOptions(options){this.options={...this.options,...options}}getTileUrl(tilePath){return tilePath.startsWith("data:")?tilePath:"".concat(tilePath).concat(tilePath.includes("?")?"&":"?").concat(this.queryParams)}hasExtension(extensionName){return Boolean(this._extensionsUsed.indexOf(extensionName)>-1)}update(){let viewports=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.tilesetInitializationPromise.then((()=>{!viewports&&this.lastUpdatedVieports?viewports=this.lastUpdatedVieports:this.lastUpdatedVieports=viewports,viewports&&this.doUpdate(viewports)}))}async selectTiles(){let viewports=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return await this.tilesetInitializationPromise,viewports&&(this.lastUpdatedVieports=viewports),this.updatePromise||(this.updatePromise=new Promise((resolve=>{setTimeout((()=>{this.lastUpdatedVieports&&this.doUpdate(this.lastUpdatedVieports),resolve(this._frameNumber),this.updatePromise=null}),this.options.debounceTime)}))),this.updatePromise}doUpdate(viewports){if("loadTiles"in this.options&&!this.options.loadTiles)return;if(this.traverseCounter>0)return;const preparedViewports=viewports instanceof Array?viewports:[viewports];this._cache.reset(),this._frameNumber++,this.traverseCounter=preparedViewports.length;const viewportsToTraverse=[];for(const viewport of preparedViewports){const id=viewport.id;this._needTraverse(id)?viewportsToTraverse.push(id):this.traverseCounter--}for(const viewport of preparedViewports){const id=viewport.id;if(this.roots[id]||(this.roots[id]=this._initializeTileHeaders(this.tileset,null)),!viewportsToTraverse.includes(id))continue;const frameState=getFrameState(viewport,this._frameNumber);this._traverser.traverse(this.roots[id],frameState,this.options)}}_needTraverse(viewportId){let traverserId=viewportId;return this.options.viewportTraversersMap&&(traverserId=this.options.viewportTraversersMap[viewportId]),traverserId===viewportId}_onTraversalEnd(frameState){const id=frameState.viewport.id;this.frameStateData[id]||(this.frameStateData[id]={selectedTiles:[],_requestedTiles:[],_emptyTiles:[]});const currentFrameStateData=this.frameStateData[id],selectedTiles=Object.values(this._traverser.selectedTiles),[filteredSelectedTiles,unselectedTiles]=function limitSelectedTiles(tiles,frameState,maximumTilesSelected){if(0===maximumTilesSelected||tiles.length<=maximumTilesSelected)return[tiles,[]];const tuples=[],{longitude:viewportLongitude,latitude:viewportLatitude}=frameState.viewport;for(const[index,tile]of tiles.entries()){const[longitude,latitude]=tile.header.mbs,deltaLon=Math.abs(viewportLongitude-longitude),deltaLat=Math.abs(viewportLatitude-latitude),distance=Math.sqrt(deltaLat*deltaLat+deltaLon*deltaLon);tuples.push([index,distance])}const tuplesSorted=tuples.sort(((a,b)=>a[1]-b[1])),selectedTiles=[];for(let i=0;i0||this._updateTiles()}_updateTiles(){this.selectedTiles=[],this._requestedTiles=[],this._emptyTiles=[];for(const frameStateKey in this.frameStateData){const frameStateDataValue=this.frameStateData[frameStateKey];this.selectedTiles=this.selectedTiles.concat(frameStateDataValue.selectedTiles),this._requestedTiles=this._requestedTiles.concat(frameStateDataValue._requestedTiles),this._emptyTiles=this._emptyTiles.concat(frameStateDataValue._emptyTiles)}this.selectedTiles=this.options.onTraversalComplete(this.selectedTiles);for(const tile of this.selectedTiles)this._tiles[tile.id]=tile;this._loadTiles(),this._unloadTiles(),this._updateStats()}_tilesChanged(oldSelectedTiles,selectedTiles){if(oldSelectedTiles.length!==selectedTiles.length)return!0;const set1=new Set(oldSelectedTiles.map((t=>t.id))),set2=new Set(selectedTiles.map((t=>t.id)));let changed=oldSelectedTiles.filter((x=>!set2.has(x.id))).length>0;return changed=changed||selectedTiles.filter((x=>!set1.has(x.id))).length>0,changed}_loadTiles(){for(const tile of this._requestedTiles)tile.contentUnloaded&&this._loadTile(tile)}_unloadTiles(){this._cache.unloadTiles(this,((tileset,tile)=>tileset._unloadTile(tile)))}_updateStats(){let tilesRenderable=0,pointsRenderable=0;for(const tile of this.selectedTiles)tile.contentAvailable&&tile.content&&(tilesRenderable++,tile.content.pointCount?pointsRenderable+=tile.content.pointCount:pointsRenderable+=tile.content.vertexCount);this.stats.get("Tiles In View").count=this.selectedTiles.length,this.stats.get("Tiles To Render").count=tilesRenderable,this.stats.get("Points/Vertices").count=pointsRenderable}async _initializeTileSet(tilesetJson){this.type===TILESET_TYPE.I3S&&(this.calculateViewPropsI3S(),tilesetJson.root=await tilesetJson.root),this.root=this._initializeTileHeaders(tilesetJson,null),this.type===TILESET_TYPE.TILES3D&&(this._initializeTiles3DTileset(tilesetJson),this.calculateViewPropsTiles3D()),this.type===TILESET_TYPE.I3S&&this._initializeI3STileset()}calculateViewPropsI3S(){var _this$tileset$store;const fullExtent=this.tileset.fullExtent;if(fullExtent){const{xmin:xmin,xmax:xmax,ymin:ymin,ymax:ymax,zmin:zmin,zmax:zmax}=fullExtent;return this.cartographicCenter=new vector3.Z(xmin+(xmax-xmin)/2,ymin+(ymax-ymin)/2,zmin+(zmax-zmin)/2),this.cartesianCenter=Ellipsoid.WGS84.cartographicToCartesian(this.cartographicCenter,new vector3.Z),void(this.zoom=getZoomFromFullExtent(fullExtent,this.cartographicCenter,this.cartesianCenter))}const extent=null===(_this$tileset$store=this.tileset.store)||void 0===_this$tileset$store?void 0:_this$tileset$store.extent;if(extent){const[xmin,ymin,xmax,ymax]=extent;return this.cartographicCenter=new vector3.Z(xmin+(xmax-xmin)/2,ymin+(ymax-ymin)/2,0),this.cartesianCenter=Ellipsoid.WGS84.cartographicToCartesian(this.cartographicCenter,new vector3.Z),void(this.zoom=function getZoomFromExtent(extent,cartorgraphicCenter,cartesianCenter){const[xmin,ymin,xmax,ymax]=extent;return getZoomFromFullExtent({xmin:xmin,xmax:xmax,ymin:ymin,ymax:ymax,zmin:0,zmax:0},cartorgraphicCenter,cartesianCenter)}(extent,this.cartographicCenter,this.cartesianCenter))}console.warn("Extent is not defined in the tileset header"),this.cartographicCenter=new vector3.Z,this.zoom=1}calculateViewPropsTiles3D(){const root=this.root,{center:center}=root.boundingVolume;if(!center)return console.warn("center was not pre-calculated for the root tile"),this.cartographicCenter=new vector3.Z,void(this.zoom=1);0!==center[0]||0!==center[1]||0!==center[2]?this.cartographicCenter=Ellipsoid.WGS84.cartesianToCartographic(center,new vector3.Z):this.cartographicCenter=new vector3.Z(0,0,-Ellipsoid.WGS84.radii[0]),this.cartesianCenter=center,this.zoom=getZoomFromBoundingVolume(root.boundingVolume,this.cartographicCenter)}_initializeStats(){this.stats.get(TILES_TOTAL),this.stats.get("Tiles Loading"),this.stats.get("Tiles In Memory"),this.stats.get("Tiles In View"),this.stats.get("Tiles To Render"),this.stats.get("Tiles Loaded"),this.stats.get("Tiles Unloaded"),this.stats.get("Failed Tile Loads"),this.stats.get("Points/Vertices"),this.stats.get("Tile Memory Use","memory")}_initializeTileHeaders(tilesetJson,parentTileHeader){const rootTile=new Tile3D(this,tilesetJson.root,parentTileHeader);if(parentTileHeader&&(parentTileHeader.children.push(rootTile),rootTile.depth=parentTileHeader.depth+1),this.type===TILESET_TYPE.TILES3D){const stack=[];for(stack.push(rootTile);stack.length>0;){const tile=stack.pop();this.stats.get(TILES_TOTAL).incrementCount();const children=tile.header.children||[];for(const childHeader of children){var _childTile$contentUrl;const childTile=new Tile3D(this,childHeader,tile);if(null!==(_childTile$contentUrl=childTile.contentUrl)&&void 0!==_childTile$contentUrl&&_childTile$contentUrl.includes("?session=")){const session=new URL(childTile.contentUrl).searchParams.get("session");session&&(this._queryParams.session=session)}tile.children.push(childTile),childTile.depth=tile.depth+1,stack.push(childTile)}}}return rootTile}_initializeTraverser(){let TraverserClass;switch(this.type){case TILESET_TYPE.TILES3D:TraverserClass=Tileset3DTraverser;break;case TILESET_TYPE.I3S:TraverserClass=I3STilesetTraverser;break;default:TraverserClass=TilesetTraverser}return new TraverserClass({basePath:this.basePath,onTraversalEnd:this._onTraversalEnd.bind(this)})}_destroyTileHeaders(parentTile){this._destroySubtree(parentTile)}async _loadTile(tile){let loaded;try{this._onStartTileLoading(),loaded=await tile.loadContent()}catch(error){this._onTileLoadError(tile,error instanceof Error?error:new Error("load failed"))}finally{this._onEndTileLoading(),this._onTileLoad(tile,loaded)}}_onTileLoadError(tile,error){this.stats.get("Failed Tile Loads").incrementCount();const message=error.message||error.toString(),url=tile.url;console.error("A 3D tile failed to load: ".concat(tile.url," ").concat(message)),this.options.onTileError(tile,message,url)}_onTileLoad(tile,loaded){if(loaded){if(this.type===TILESET_TYPE.I3S){var _this$tileset,_this$tileset$nodePag;const nodesInNodePages=(null===(_this$tileset=this.tileset)||void 0===_this$tileset||null===(_this$tileset$nodePag=_this$tileset.nodePagesTile)||void 0===_this$tileset$nodePag?void 0:_this$tileset$nodePag.nodesInNodePages)||0;this.stats.get(TILES_TOTAL).reset(),this.stats.get(TILES_TOTAL).addCount(nodesInNodePages)}tile&&tile.content&&function calculateTransformProps(tileHeader,tile){(0,env_utils_assert.h)(tileHeader),(0,env_utils_assert.h)(tile);const{rtcCenter:rtcCenter,gltfUpAxis:gltfUpAxis}=tile,{computedTransform:computedTransform,boundingVolume:{center:center}}=tileHeader;let modelMatrix=new matrix4.Z(computedTransform);switch(rtcCenter&&modelMatrix.translate(rtcCenter),gltfUpAxis){case"Z":default:break;case"Y":const rotationY=(new matrix4.Z).rotateX(Math.PI/2);modelMatrix=modelMatrix.multiplyRight(rotationY);break;case"X":const rotationX=(new matrix4.Z).rotateY(-Math.PI/2);modelMatrix=modelMatrix.multiplyRight(rotationX)}tile.isQuantized&&modelMatrix.translate(tile.quantizedVolumeOffset).scale(tile.quantizedVolumeScale);const cartesianOrigin=new vector3.Z(center);tile.cartesianModelMatrix=modelMatrix,tile.cartesianOrigin=cartesianOrigin;const cartographicOrigin=Ellipsoid.WGS84.cartesianToCartographic(cartesianOrigin,new vector3.Z),toFixedFrameMatrix=Ellipsoid.WGS84.eastNorthUpToFixedFrame(cartesianOrigin).invert();tile.cartographicModelMatrix=toFixedFrameMatrix.multiplyRight(modelMatrix),tile.cartographicOrigin=cartographicOrigin,tile.coordinateSystem||(tile.modelMatrix=tile.cartographicModelMatrix)}(tile,tile.content),this.updateContentTypes(tile),this._addTileToCache(tile),this.options.onTileLoad(tile)}}updateContentTypes(tile){if(this.type===TILESET_TYPE.I3S)switch(tile.header.isDracoGeometry&&(this.contentFormats.draco=!0),tile.header.textureFormat){case"dds":this.contentFormats.dds=!0;break;case"ktx2":this.contentFormats.ktx2=!0}else if(this.type===TILESET_TYPE.TILES3D){var _tile$content;const{extensionsRemoved:extensionsRemoved=[]}=(null===(_tile$content=tile.content)||void 0===_tile$content?void 0:_tile$content.gltf)||{};extensionsRemoved.includes("KHR_draco_mesh_compression")&&(this.contentFormats.draco=!0),extensionsRemoved.includes("EXT_meshopt_compression")&&(this.contentFormats.meshopt=!0),extensionsRemoved.includes("KHR_texture_basisu")&&(this.contentFormats.ktx2=!0)}}_onStartTileLoading(){this._pendingCount++,this.stats.get("Tiles Loading").incrementCount()}_onEndTileLoading(){this._pendingCount--,this.stats.get("Tiles Loading").decrementCount()}_addTileToCache(tile){this._cache.add(this,tile,(tileset=>tileset._updateCacheStats(tile)))}_updateCacheStats(tile){this.stats.get("Tiles Loaded").incrementCount(),this.stats.get("Tiles In Memory").incrementCount(),this.gpuMemoryUsageInBytes+=tile.gpuMemoryUsageInBytes||0,this.stats.get("Tile Memory Use").count=this.gpuMemoryUsageInBytes}_unloadTile(tile){this.gpuMemoryUsageInBytes-=tile.gpuMemoryUsageInBytes||0,this.stats.get("Tiles In Memory").decrementCount(),this.stats.get("Tiles Unloaded").incrementCount(),this.stats.get("Tile Memory Use").count=this.gpuMemoryUsageInBytes,this.options.onTileUnload(tile),tile.unloadContent()}_destroy(){const stack=[];for(this.root&&stack.push(this.root);stack.length>0;){const tile=stack.pop();for(const child of tile.children)stack.push(child);this._destroyTile(tile)}this.root=null}_destroySubtree(tile){const root=tile,stack=[];for(stack.push(root);stack.length>0;){tile=stack.pop();for(const child of tile.children)stack.push(child);tile!==root&&this._destroyTile(tile)}root.children=[]}_destroyTile(tile){this._cache.unloadTile(this,tile),this._unloadTile(tile),tile.destroy()}_initializeTiles3DTileset(tilesetJson){if(tilesetJson.queryString){const searchParams=new URLSearchParams(tilesetJson.queryString),queryParams=Object.fromEntries(searchParams.entries());this._queryParams={...this._queryParams,...queryParams}}if(this.asset=tilesetJson.asset,!this.asset)throw new Error("Tileset must have an asset property.");if("0.0"!==this.asset.version&&"1.0"!==this.asset.version)throw new Error("The tileset must be 3D Tiles version 0.0 or 1.0.");"tilesetVersion"in this.asset&&(this._queryParams.v=this.asset.tilesetVersion),this.credits={attributions:this.options.attributions||[]},this.description=this.options.description||"",this.properties=tilesetJson.properties,this.geometricError=tilesetJson.geometricError,this._extensionsUsed=tilesetJson.extensionsUsed||[],this.extras=tilesetJson.extras}_initializeI3STileset(){this.loadOptions.i3s&&"token"in this.loadOptions.i3s&&(this._queryParams.token=this.loadOptions.i3s.token)}}const TILE3D_TYPE={COMPOSITE:"cmpt",POINT_CLOUD:"pnts",BATCHED_3D_MODEL:"b3dm",INSTANCED_3D_MODEL:"i3dm",GEOMETRY:"geom",VECTOR:"vect",GLTF:"glTF"};Object.keys(TILE3D_TYPE);function getStringFromArrayBuffer(arrayBuffer,byteOffset,byteLength){(0,env_utils_assert.h)(arrayBuffer instanceof ArrayBuffer);const textDecoder=new TextDecoder("utf8"),typedArray=new Uint8Array(arrayBuffer,byteOffset,byteLength);return textDecoder.decode(typedArray)}var draco_dist_esm=__webpack_require__("./node_modules/@loaders.gl/draco/dist/esm/index.js");const GL_TYPE={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DOUBLE:5130},constants_GL={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,...GL_TYPE},GL_TYPE_TO_ARRAY_TYPE={[GL_TYPE.DOUBLE]:Float64Array,[GL_TYPE.FLOAT]:Float32Array,[GL_TYPE.UNSIGNED_SHORT]:Uint16Array,[GL_TYPE.UNSIGNED_INT]:Uint32Array,[GL_TYPE.UNSIGNED_BYTE]:Uint8Array,[GL_TYPE.BYTE]:Int8Array,[GL_TYPE.SHORT]:Int16Array,[GL_TYPE.INT]:Int32Array},NAME_TO_GL_TYPE={DOUBLE:GL_TYPE.DOUBLE,FLOAT:GL_TYPE.FLOAT,UNSIGNED_SHORT:GL_TYPE.UNSIGNED_SHORT,UNSIGNED_INT:GL_TYPE.UNSIGNED_INT,UNSIGNED_BYTE:GL_TYPE.UNSIGNED_BYTE,BYTE:GL_TYPE.BYTE,SHORT:GL_TYPE.SHORT,INT:GL_TYPE.INT};class GLType{static fromTypedArray(arrayOrType){arrayOrType=ArrayBuffer.isView(arrayOrType)?arrayOrType.constructor:arrayOrType;for(const glType in GL_TYPE_TO_ARRAY_TYPE){if(GL_TYPE_TO_ARRAY_TYPE[glType]===arrayOrType)return glType}throw new Error("Failed to convert GL type")}static fromName(name){const glType=NAME_TO_GL_TYPE[name];if(!glType)throw new Error("Failed to convert GL type");return glType}static getArrayType(glType){switch(glType){case GL_TYPE.UNSIGNED_SHORT_5_6_5:case GL_TYPE.UNSIGNED_SHORT_4_4_4_4:case GL_TYPE.UNSIGNED_SHORT_5_5_5_1:return Uint16Array;default:const ArrayType=GL_TYPE_TO_ARRAY_TYPE[glType];if(!ArrayType)throw new Error("Failed to convert GL type");return ArrayType}}static getByteSize(glType){return GLType.getArrayType(glType).BYTES_PER_ELEMENT}static validate(glType){return Boolean(GLType.getArrayType(glType))}static createTypedArray(glType,buffer){let byteOffset=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,length=arguments.length>3?arguments[3]:void 0;void 0===length&&(length=(buffer.byteLength-byteOffset)/GLType.getByteSize(glType));return new(GLType.getArrayType(glType))(buffer,byteOffset,length)}}class Tile3DFeatureTable{constructor(featureTableJson,featureTableBinary){(0,defineProperty.Z)(this,"json",void 0),(0,defineProperty.Z)(this,"buffer",void 0),(0,defineProperty.Z)(this,"featuresLength",0),(0,defineProperty.Z)(this,"_cachedTypedArrays",{}),this.json=featureTableJson,this.buffer=featureTableBinary}getExtension(extensionName){return this.json.extensions&&this.json.extensions[extensionName]}hasProperty(propertyName){return Boolean(this.json[propertyName])}getGlobalProperty(propertyName){let componentType=arguments.length>1&&void 0!==arguments[1]?arguments[1]:constants_GL.UNSIGNED_INT,componentLength=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const jsonValue=this.json[propertyName];return jsonValue&&Number.isFinite(jsonValue.byteOffset)?this._getTypedArrayFromBinary(propertyName,componentType,componentLength,1,jsonValue.byteOffset):jsonValue}getPropertyArray(propertyName,componentType,componentLength){const jsonValue=this.json[propertyName];return jsonValue&&Number.isFinite(jsonValue.byteOffset)?("componentType"in jsonValue&&(componentType=GLType.fromName(jsonValue.componentType)),this._getTypedArrayFromBinary(propertyName,componentType,componentLength,this.featuresLength,jsonValue.byteOffset)):this._getTypedArrayFromArray(propertyName,componentType,jsonValue)}getProperty(propertyName,componentType,componentLength,featureId,result){const jsonValue=this.json[propertyName];if(!jsonValue)return jsonValue;const typedArray=this.getPropertyArray(propertyName,componentType,componentLength);if(1===componentLength)return typedArray[featureId];for(let i=0;ivalues[i],VEC2:(values,i)=>[values[2*i+0],values[2*i+1]],VEC3:(values,i)=>[values[3*i+0],values[3*i+1],values[3*i+2]],VEC4:(values,i)=>[values[4*i+0],values[4*i+1],values[4*i+2],values[4*i+3]],MAT2:(values,i)=>[values[4*i+0],values[4*i+1],values[4*i+2],values[4*i+3]],MAT3:(values,i)=>[values[9*i+0],values[9*i+1],values[9*i+2],values[9*i+3],values[9*i+4],values[9*i+5],values[9*i+6],values[9*i+7],values[9*i+8]],MAT4:(values,i)=>[values[16*i+0],values[16*i+1],values[16*i+2],values[16*i+3],values[16*i+4],values[16*i+5],values[16*i+6],values[16*i+7],values[16*i+8],values[16*i+9],values[16*i+10],values[16*i+11],values[16*i+12],values[16*i+13],values[16*i+14],values[16*i+15]]},PACKER={SCALAR:(x,values,i)=>{values[i]=x},VEC2:(x,values,i)=>{values[2*i+0]=x[0],values[2*i+1]=x[1]},VEC3:(x,values,i)=>{values[3*i+0]=x[0],values[3*i+1]=x[1],values[3*i+2]=x[2]},VEC4:(x,values,i)=>{values[4*i+0]=x[0],values[4*i+1]=x[1],values[4*i+2]=x[2],values[4*i+3]=x[3]},MAT2:(x,values,i)=>{values[4*i+0]=x[0],values[4*i+1]=x[1],values[4*i+2]=x[2],values[4*i+3]=x[3]},MAT3:(x,values,i)=>{values[9*i+0]=x[0],values[9*i+1]=x[1],values[9*i+2]=x[2],values[9*i+3]=x[3],values[9*i+4]=x[4],values[9*i+5]=x[5],values[9*i+6]=x[6],values[9*i+7]=x[7],values[9*i+8]=x[8],values[9*i+9]=x[9]},MAT4:(x,values,i)=>{values[16*i+0]=x[0],values[16*i+1]=x[1],values[16*i+2]=x[2],values[16*i+3]=x[3],values[16*i+4]=x[4],values[16*i+5]=x[5],values[16*i+6]=x[6],values[16*i+7]=x[7],values[16*i+8]=x[8],values[16*i+9]=x[9],values[16*i+10]=x[10],values[16*i+11]=x[11],values[16*i+12]=x[12],values[16*i+13]=x[13],values[16*i+14]=x[14],values[16*i+15]=x[15]}};const tile_3d_batch_table_hierarchy_defined=x=>void 0!==x;function initializeHierarchy(batchTable,jsonHeader,binaryBody){if(!jsonHeader)return null;let hierarchy=batchTable.getExtension("3DTILES_batch_table_hierarchy");const legacyHierarchy=jsonHeader.HIERARCHY;return legacyHierarchy&&(console.warn("3D Tile Parser: HIERARCHY is deprecated. Use 3DTILES_batch_table_hierarchy."),jsonHeader.extensions=jsonHeader.extensions||{},jsonHeader.extensions["3DTILES_batch_table_hierarchy"]=legacyHierarchy,hierarchy=legacyHierarchy),hierarchy?function initializeHierarchyValues(hierarchyJson,binaryBody){let i,classId,binaryAccessor;const instancesLength=hierarchyJson.instancesLength,classes=hierarchyJson.classes;let parentIndexes,classIds=hierarchyJson.classIds,parentCounts=hierarchyJson.parentCounts,parentIds=hierarchyJson.parentIds,parentIdsLength=instancesLength;tile_3d_batch_table_hierarchy_defined(classIds.byteOffset)&&(classIds.componentType=defaultValue(classIds.componentType,GL.UNSIGNED_SHORT),classIds.type=AttributeType.SCALAR,binaryAccessor=getBinaryAccessor(classIds),classIds=binaryAccessor.createArrayBufferView(binaryBody.buffer,binaryBody.byteOffset+classIds.byteOffset,instancesLength));if(tile_3d_batch_table_hierarchy_defined(parentCounts))for(tile_3d_batch_table_hierarchy_defined(parentCounts.byteOffset)&&(parentCounts.componentType=defaultValue(parentCounts.componentType,GL.UNSIGNED_SHORT),parentCounts.type=AttributeType.SCALAR,binaryAccessor=getBinaryAccessor(parentCounts),parentCounts=binaryAccessor.createArrayBufferView(binaryBody.buffer,binaryBody.byteOffset+parentCounts.byteOffset,instancesLength)),parentIndexes=new Uint16Array(instancesLength),parentIdsLength=0,i=0;i0?function traverseHierarchyMultipleParents(hierarchy,instanceIndex,endConditionCallback){const classIds=hierarchy.classIds,parentCounts=hierarchy.parentCounts,parentIds=hierarchy.parentIds,parentIndexes=hierarchy.parentIndexes,instancesLength=classIds.length,visited=scratchVisited;visited.length=Math.max(visited.length,instancesLength);const visitedMarker=++marker,stack=scratchStack;stack.length=0,stack.push(instanceIndex);for(;stack.length>0;){if(visited[instanceIndex=stack.pop()]===visitedMarker)continue;visited[instanceIndex]=visitedMarker;const result=endConditionCallback(hierarchy,instanceIndex);if(tile_3d_batch_table_hierarchy_defined(result))return result;const parentCount=parentCounts[instanceIndex],parentIndex=parentIndexes[instanceIndex];for(let i=0;ix,IGNORED_PROPERTY_FIELDS={HIERARCHY:!0,extensions:!0,extras:!0};class Tile3DBatchTableParser{constructor(json,binary,featureCount){var _this$json;let options=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,defineProperty.Z)(this,"json",void 0),(0,defineProperty.Z)(this,"binary",void 0),(0,defineProperty.Z)(this,"featureCount",void 0),(0,defineProperty.Z)(this,"_extensions",void 0),(0,defineProperty.Z)(this,"_properties",void 0),(0,defineProperty.Z)(this,"_binaryProperties",void 0),(0,defineProperty.Z)(this,"_hierarchy",void 0),(0,env_utils_assert.h)(featureCount>=0),this.json=json||{},this.binary=binary,this.featureCount=featureCount,this._extensions=(null===(_this$json=this.json)||void 0===_this$json?void 0:_this$json.extensions)||{},this._properties={};for(const propertyName in this.json)IGNORED_PROPERTY_FIELDS[propertyName]||(this._properties[propertyName]=this.json[propertyName]);this._binaryProperties=this._initializeBinaryProperties(),options["3DTILES_batch_table_hierarchy"]&&(this._hierarchy=initializeHierarchy(this,this.json,this.binary))}getExtension(extensionName){return this.json&&this.json.extensions&&this.json.extensions[extensionName]}memorySizeInBytes(){return 0}isClass(batchId,className){if(this._checkBatchId(batchId),(0,env_utils_assert.h)("string"==typeof className,className),this._hierarchy){return tile_3d_batch_table_defined(traverseHierarchy(this._hierarchy,batchId,((hierarchy,instanceIndex)=>{const classId=hierarchy.classIds[instanceIndex];return hierarchy.classes[classId].name===className})))}return!1}isExactClass(batchId,className){return(0,env_utils_assert.h)("string"==typeof className,className),this.getExactClassName(batchId)===className}getExactClassName(batchId){if(this._checkBatchId(batchId),this._hierarchy){const classId=this._hierarchy.classIds[batchId];return this._hierarchy.classes[classId].name}}hasProperty(batchId,name){return this._checkBatchId(batchId),(0,env_utils_assert.h)("string"==typeof name,name),tile_3d_batch_table_defined(this._properties[name])||this._hasPropertyInHierarchy(batchId,name)}getPropertyNames(batchId,results){this._checkBatchId(batchId),(results=tile_3d_batch_table_defined(results)?results:[]).length=0;const propertyNames=Object.keys(this._properties);return results.push(...propertyNames),this._hierarchy&&this._getPropertyNamesInHierarchy(batchId,results),results}getProperty(batchId,name){if(this._checkBatchId(batchId),(0,env_utils_assert.h)("string"==typeof name,name),this._binaryProperties){const binaryProperty=this._binaryProperties[name];if(tile_3d_batch_table_defined(binaryProperty))return this._getBinaryProperty(binaryProperty,batchId)}const propertyValues=this._properties[name];if(tile_3d_batch_table_defined(propertyValues))return clone(propertyValues[batchId]);if(this._hierarchy){const hierarchyProperty=this._getHierarchyProperty(batchId,name);if(tile_3d_batch_table_defined(hierarchyProperty))return hierarchyProperty}}setProperty(batchId,name,value){const featureCount=this.featureCount;if(this._checkBatchId(batchId),(0,env_utils_assert.h)("string"==typeof name,name),this._binaryProperties){const binaryProperty=this._binaryProperties[name];if(binaryProperty)return void this._setBinaryProperty(binaryProperty,batchId,value)}if(this._hierarchy&&this._setHierarchyProperty(this,batchId,name,value))return;let propertyValues=this._properties[name];tile_3d_batch_table_defined(propertyValues)||(this._properties[name]=new Array(featureCount),propertyValues=this._properties[name]),propertyValues[batchId]=clone(value)}_checkBatchId(batchId){if(!(batchId>=0&&batchId{const classId=hierarchy.classIds[instanceIndex];return tile_3d_batch_table_defined(hierarchy.classes[classId].instances[name])}));return tile_3d_batch_table_defined(result)}_getPropertyNamesInHierarchy(batchId,results){traverseHierarchy(this._hierarchy,batchId,((hierarchy,instanceIndex)=>{const classId=hierarchy.classIds[instanceIndex],instances=hierarchy.classes[classId].instances;for(const name in instances)instances.hasOwnProperty(name)&&-1===results.indexOf(name)&&results.push(name)}))}_getHierarchyProperty(batchId,name){return traverseHierarchy(this._hierarchy,batchId,((hierarchy,instanceIndex)=>{const classId=hierarchy.classIds[instanceIndex],instanceClass=hierarchy.classes[classId],indexInClass=hierarchy.classIndexes[instanceIndex],propertyValues=instanceClass.instances[name];return tile_3d_batch_table_defined(propertyValues)?tile_3d_batch_table_defined(propertyValues.typedArray)?this._getBinaryProperty(propertyValues,indexInClass):clone(propertyValues[indexInClass]):null}))}_setHierarchyProperty(batchTable,batchId,name,value){const result=traverseHierarchy(this._hierarchy,batchId,((hierarchy,instanceIndex)=>{const classId=hierarchy.classIds[instanceIndex],instanceClass=hierarchy.classes[classId],indexInClass=hierarchy.classIndexes[instanceIndex],propertyValues=instanceClass.instances[name];return!!tile_3d_batch_table_defined(propertyValues)&&((0,env_utils_assert.h)(instanceIndex===batchId,'Inherited property "'.concat(name,'" is read-only.')),tile_3d_batch_table_defined(propertyValues.typedArray)?this._setBinaryProperty(propertyValues,indexInClass,value):propertyValues[indexInClass]=clone(value),!0)}));return tile_3d_batch_table_defined(result)}}const SIZEOF_UINT32=4;function parse3DTileHeaderSync(tile,arrayBuffer){let byteOffset=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const view=new DataView(arrayBuffer);if(tile.magic=view.getUint32(byteOffset,!0),byteOffset+=SIZEOF_UINT32,tile.version=view.getUint32(byteOffset,!0),byteOffset+=SIZEOF_UINT32,tile.byteLength=view.getUint32(byteOffset,!0),byteOffset+=SIZEOF_UINT32,1!==tile.version)throw new Error("3D Tile Version ".concat(tile.version," not supported"));return byteOffset}const parse_3d_tile_tables_SIZEOF_UINT32=4,DEPRECATION_WARNING="b3dm tile in legacy format.";function parse3DTileTablesHeaderSync(tile,arrayBuffer,byteOffset){const view=new DataView(arrayBuffer);let batchLength;tile.header=tile.header||{};let featureTableJsonByteLength=view.getUint32(byteOffset,!0);byteOffset+=parse_3d_tile_tables_SIZEOF_UINT32;let featureTableBinaryByteLength=view.getUint32(byteOffset,!0);byteOffset+=parse_3d_tile_tables_SIZEOF_UINT32;let batchTableJsonByteLength=view.getUint32(byteOffset,!0);byteOffset+=parse_3d_tile_tables_SIZEOF_UINT32;let batchTableBinaryByteLength=view.getUint32(byteOffset,!0);return byteOffset+=parse_3d_tile_tables_SIZEOF_UINT32,batchTableJsonByteLength>=570425344?(byteOffset-=2*parse_3d_tile_tables_SIZEOF_UINT32,batchLength=featureTableJsonByteLength,batchTableJsonByteLength=featureTableBinaryByteLength,batchTableBinaryByteLength=0,featureTableJsonByteLength=0,featureTableBinaryByteLength=0,console.warn(DEPRECATION_WARNING)):batchTableBinaryByteLength>=570425344&&(byteOffset-=parse_3d_tile_tables_SIZEOF_UINT32,batchLength=batchTableJsonByteLength,batchTableJsonByteLength=featureTableJsonByteLength,batchTableBinaryByteLength=featureTableBinaryByteLength,featureTableJsonByteLength=0,featureTableBinaryByteLength=0,console.warn(DEPRECATION_WARNING)),tile.header.featureTableJsonByteLength=featureTableJsonByteLength,tile.header.featureTableBinaryByteLength=featureTableBinaryByteLength,tile.header.batchTableJsonByteLength=batchTableJsonByteLength,tile.header.batchTableBinaryByteLength=batchTableBinaryByteLength,tile.header.batchLength=batchLength,byteOffset}function parse3DTileTablesSync(tile,arrayBuffer,byteOffset,options){return byteOffset=function parse3DTileFeatureTable(tile,arrayBuffer,byteOffset,options){const{featureTableJsonByteLength:featureTableJsonByteLength,featureTableBinaryByteLength:featureTableBinaryByteLength,batchLength:batchLength}=tile.header;if(tile.featureTableJson={BATCH_LENGTH:batchLength||0},featureTableJsonByteLength>0){const featureTableString=getStringFromArrayBuffer(arrayBuffer,byteOffset,featureTableJsonByteLength);tile.featureTableJson=JSON.parse(featureTableString)}return byteOffset+=featureTableJsonByteLength,tile.featureTableBinary=new Uint8Array(arrayBuffer,byteOffset,featureTableBinaryByteLength),byteOffset+=featureTableBinaryByteLength,byteOffset}(tile,arrayBuffer,byteOffset),byteOffset=function parse3DTileBatchTable(tile,arrayBuffer,byteOffset,options){const{batchTableJsonByteLength:batchTableJsonByteLength,batchTableBinaryByteLength:batchTableBinaryByteLength}=tile.header;if(batchTableJsonByteLength>0){const batchTableString=getStringFromArrayBuffer(arrayBuffer,byteOffset,batchTableJsonByteLength);tile.batchTableJson=JSON.parse(batchTableString),byteOffset+=batchTableJsonByteLength,batchTableBinaryByteLength>0&&(tile.batchTableBinary=new Uint8Array(arrayBuffer,byteOffset,batchTableBinaryByteLength),tile.batchTableBinary=new Uint8Array(tile.batchTableBinary),byteOffset+=batchTableBinaryByteLength)}return byteOffset}(tile,arrayBuffer,byteOffset),byteOffset}function decodeRGB565(rgb565){let target=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];const r5=rgb565>>11&31,g6=rgb565>>5&63,b5=31&rgb565;return target[0]=r5<<3,target[1]=g6<<2,target[2]=b5<<3,target}function normalize3DTileColorAttribute(tile,colors,batchTable){if(!(colors||tile&&tile.batchIds&&batchTable))return null;const{batchIds:batchIds,isRGB565:isRGB565,pointCount:pointCount}=tile;if(batchIds&&batchTable){const colorArray=new Uint8ClampedArray(3*pointCount);for(let i=0;i255*d));colorArray[3*i]=color[0],colorArray[3*i+1]=color[1],colorArray[3*i+2]=color[2]}return{type:constants_GL.UNSIGNED_BYTE,value:colorArray,size:3,normalized:!0}}if(isRGB565){const colorArray=new Uint8ClampedArray(3*pointCount);for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:255;return(0,common.uZ)(value,0,rangeMaximum)/rangeMaximum*2-1}function signNotZero(value){return value<0?-1:1}function octDecodeInRange(x,y,rangeMax,result){if(function assert_assert(condition,message){if(!condition)throw new Error("math.gl assertion failed. ".concat(message))}(result),x<0||x>rangeMax||y<0||y>rangeMax)throw new Error("x and y must be unsigned normalized integers between 0 and ".concat(rangeMax));if(result.x=fromSNorm(x,rangeMax),result.y=fromSNorm(y,rangeMax),result.z=1-(Math.abs(result.x)+Math.abs(result.y)),result.z<0){const oldVX=result.x;result.x=(1-Math.abs(result.y))*signNotZero(oldVX),result.y=(1-Math.abs(oldVX))*signNotZero(result.y)}return result.normalize()}function octDecode(x,y,result){return octDecodeInRange(x,y,255,result)}const normalize_3d_tile_normals_scratchNormal=new vector3.Z;function normalize3DTilePositionAttribute(tile,positions,options){return tile.isQuantized?options["3d-tiles"]&&options["3d-tiles"].decodeQuantizedPositions?(tile.isQuantized=!1,function decodeQuantizedPositions(tile,positions){const scratchPosition=new vector3.Z,decodedArray=new Float32Array(3*tile.pointCount);for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:0,options=arguments.length>2?arguments[2]:void 0,context=arguments.length>3?arguments[3]:void 0,tile=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};switch(tile.byteOffset=byteOffset,tile.type=function getMagicString(arrayBuffer){let byteOffset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const dataView=new DataView(arrayBuffer);return"".concat(String.fromCharCode(dataView.getUint8(byteOffset+0))).concat(String.fromCharCode(dataView.getUint8(byteOffset+1))).concat(String.fromCharCode(dataView.getUint8(byteOffset+2))).concat(String.fromCharCode(dataView.getUint8(byteOffset+3)))}(arrayBuffer,byteOffset),tile.type){case TILE3D_TYPE.COMPOSITE:return await async function parseComposite3DTile(tile,arrayBuffer,byteOffset,options,context,parse3DTile){byteOffset=parse3DTileHeaderSync(tile,arrayBuffer,byteOffset);const view=new DataView(arrayBuffer);for(tile.tilesLength=view.getUint32(byteOffset,!0),byteOffset+=4,tile.tiles=[];tile.tiles.length12;){const subtile={};tile.tiles.push(subtile),byteOffset=await parse3DTile(arrayBuffer,byteOffset,options,context,subtile)}return byteOffset}(tile,arrayBuffer,byteOffset,options,context,parse3DTile);case TILE3D_TYPE.BATCHED_3D_MODEL:return await parseBatchedModel3DTile(tile,arrayBuffer,byteOffset,options,context);case TILE3D_TYPE.GLTF:return await async function parseGltf3DTile(tile,arrayBuffer,options,context){tile.rotateYtoZ=!0,tile.gltfUpAxis=options["3d-tiles"]&&options["3d-tiles"].assetGltfUpAxis?options["3d-tiles"].assetGltfUpAxis:"Y";const{parse:parse}=context;tile.gltf=await parse(arrayBuffer,gltf_loader.E,options,context),tile.gpuMemoryUsageInBytes=(0,gltf_utils.Xr)(tile.gltf)}(tile,arrayBuffer,options,context);case TILE3D_TYPE.INSTANCED_3D_MODEL:return await parseInstancedModel3DTile(tile,arrayBuffer,byteOffset,options,context);case TILE3D_TYPE.POINT_CLOUD:return await parsePointCloud3DTile(tile,arrayBuffer,byteOffset,options,context);default:throw new Error("3DTileLoader: unknown type ".concat(tile.type))}}async function getExplicitBitstream(subtree,name,internalBinaryBuffer,context){const bufferViewIndex=subtree[name].bufferView,bufferView=subtree.bufferViews[bufferViewIndex],buffer=subtree.buffers[bufferView.buffer];if(null==context||!context.url||!context.fetch)throw new Error("Url is not provided");if(!context.fetch)throw new Error("fetch is not provided");if(buffer.uri){const bufferUri=function resolveBufferUri(bitstreamRelativeUri,basePath){if(basePath.startsWith("http")){const resolvedUri=new URL(bitstreamRelativeUri,basePath);return decodeURI(resolvedUri.toString())}const basePathWithProtocol="http://".concat(basePath),resolvedUri=new URL(bitstreamRelativeUri,basePathWithProtocol);return"/".concat(resolvedUri.host).concat(resolvedUri.pathname)}(buffer.uri,null==context?void 0:context.url),response=await context.fetch(bufferUri),data=await response.arrayBuffer();return new Uint8Array(data,bufferView.byteOffset,bufferView.byteLength)}return new Uint8Array(internalBinaryBuffer,bufferView.byteOffset,bufferView.byteLength)}function parseUint64Value(buffer){const dataView=new DataView(buffer);return dataView.getUint32(0,!0)+2**32*dataView.getUint32(4,!0)}const Tile3DSubtreeLoader={id:"3d-tiles-subtree",name:"3D Tiles Subtree",module:"3d-tiles",version:"3.4.15",extensions:["subtree"],mimeTypes:["application/octet-stream"],tests:["subtree"],parse:async function parse3DTilesSubtree(data,options,context){if(1952609651!==new Uint32Array(data.slice(0,4))[0])throw new Error("Wrong subtree file magic number");if(1!==new Uint32Array(data.slice(4,8))[0])throw new Error("Wrong subtree file verson, must be 1");const jsonByteLength=parseUint64Value(data.slice(8,16)),stringAttribute=new Uint8Array(data,24,jsonByteLength),string=new TextDecoder("utf8").decode(stringAttribute),subtree=JSON.parse(string),binaryByteLength=parseUint64Value(data.slice(16,24));let internalBinaryBuffer=new ArrayBuffer(0);return binaryByteLength&&(internalBinaryBuffer=data.slice(24+jsonByteLength)),"bufferView"in subtree.tileAvailability&&(subtree.tileAvailability.explicitBitstream=await getExplicitBitstream(subtree,"tileAvailability",internalBinaryBuffer,context)),"bufferView"in subtree.contentAvailability&&(subtree.contentAvailability.explicitBitstream=await getExplicitBitstream(subtree,"contentAvailability",internalBinaryBuffer,context)),"bufferView"in subtree.childSubtreeAvailability&&(subtree.childSubtreeAvailability.explicitBitstream=await getExplicitBitstream(subtree,"childSubtreeAvailability",internalBinaryBuffer,context)),subtree},options:{}};var wasm=null;try{wasm=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function long_Long(low,high,unsigned){this.low=0|low,this.high=0|high,this.unsigned=!!unsigned}function isLong(obj){return!0===(obj&&obj.__isLong__)}function ctz32(value){var c=Math.clz32(value&-value);return value?31-c:c}long_Long.prototype.__isLong__,Object.defineProperty(long_Long.prototype,"__isLong__",{value:!0}),long_Long.isLong=isLong;var INT_CACHE={},UINT_CACHE={};function fromInt(value,unsigned){var obj,cachedObj,cache;return unsigned?(cache=0<=(value>>>=0)&&value<256)&&(cachedObj=UINT_CACHE[value])?cachedObj:(obj=fromBits(value,0,!0),cache&&(UINT_CACHE[value]=obj),obj):(cache=-128<=(value|=0)&&value<128)&&(cachedObj=INT_CACHE[value])?cachedObj:(obj=fromBits(value,value<0?-1:0,!1),cache&&(INT_CACHE[value]=obj),obj)}function fromNumber(value,unsigned){if(isNaN(value))return unsigned?UZERO:ZERO;if(unsigned){if(value<0)return UZERO;if(value>=TWO_PWR_64_DBL)return MAX_UNSIGNED_VALUE}else{if(value<=-TWO_PWR_63_DBL)return MIN_VALUE;if(value+1>=TWO_PWR_63_DBL)return MAX_VALUE}return value<0?fromNumber(-value,unsigned).neg():fromBits(value%TWO_PWR_32_DBL|0,value/TWO_PWR_32_DBL|0,unsigned)}function fromBits(lowBits,highBits,unsigned){return new long_Long(lowBits,highBits,unsigned)}long_Long.fromInt=fromInt,long_Long.fromNumber=fromNumber,long_Long.fromBits=fromBits;var pow_dbl=Math.pow;function fromString(str,unsigned,radix){if(0===str.length)throw Error("empty string");if("number"==typeof unsigned?(radix=unsigned,unsigned=!1):unsigned=!!unsigned,"NaN"===str||"Infinity"===str||"+Infinity"===str||"-Infinity"===str)return unsigned?UZERO:ZERO;if((radix=radix||10)<2||360)throw Error("interior hyphen");if(0===p)return fromString(str.substring(1),unsigned,radix).neg();for(var radixToPower=fromNumber(pow_dbl(radix,8)),result=ZERO,i=0;i>>0:this.low},LongPrototype.toNumber=function toNumber(){return this.unsigned?(this.high>>>0)*TWO_PWR_32_DBL+(this.low>>>0):this.high*TWO_PWR_32_DBL+(this.low>>>0)},LongPrototype.toString=function toString(radix){if((radix=radix||10)<2||36>>0).toString(radix);if((rem=remDiv).isZero())return digits+result;for(;digits.length<6;)digits="0"+digits;result=""+digits+result}},LongPrototype.getHighBits=function getHighBits(){return this.high},LongPrototype.getHighBitsUnsigned=function getHighBitsUnsigned(){return this.high>>>0},LongPrototype.getLowBits=function getLowBits(){return this.low},LongPrototype.getLowBitsUnsigned=function getLowBitsUnsigned(){return this.low>>>0},LongPrototype.getNumBitsAbs=function getNumBitsAbs(){if(this.isNegative())return this.eq(MIN_VALUE)?64:this.neg().getNumBitsAbs();for(var val=0!=this.high?this.high:this.low,bit=31;bit>0&&0==(val&1<=0},LongPrototype.isOdd=function isOdd(){return 1==(1&this.low)},LongPrototype.isEven=function isEven(){return 0==(1&this.low)},LongPrototype.equals=function equals(other){return isLong(other)||(other=fromValue(other)),(this.unsigned===other.unsigned||this.high>>>31!=1||other.high>>>31!=1)&&(this.high===other.high&&this.low===other.low)},LongPrototype.eq=LongPrototype.equals,LongPrototype.notEquals=function notEquals(other){return!this.eq(other)},LongPrototype.neq=LongPrototype.notEquals,LongPrototype.ne=LongPrototype.notEquals,LongPrototype.lessThan=function lessThan(other){return this.comp(other)<0},LongPrototype.lt=LongPrototype.lessThan,LongPrototype.lessThanOrEqual=function lessThanOrEqual(other){return this.comp(other)<=0},LongPrototype.lte=LongPrototype.lessThanOrEqual,LongPrototype.le=LongPrototype.lessThanOrEqual,LongPrototype.greaterThan=function greaterThan(other){return this.comp(other)>0},LongPrototype.gt=LongPrototype.greaterThan,LongPrototype.greaterThanOrEqual=function greaterThanOrEqual(other){return this.comp(other)>=0},LongPrototype.gte=LongPrototype.greaterThanOrEqual,LongPrototype.ge=LongPrototype.greaterThanOrEqual,LongPrototype.compare=function compare(other){if(isLong(other)||(other=fromValue(other)),this.eq(other))return 0;var thisNeg=this.isNegative(),otherNeg=other.isNegative();return thisNeg&&!otherNeg?-1:!thisNeg&&otherNeg?1:this.unsigned?other.high>>>0>this.high>>>0||other.high===this.high&&other.low>>>0>this.low>>>0?-1:1:this.sub(other).isNegative()?-1:1},LongPrototype.comp=LongPrototype.compare,LongPrototype.negate=function negate(){return!this.unsigned&&this.eq(MIN_VALUE)?MIN_VALUE:this.not().add(ONE)},LongPrototype.neg=LongPrototype.negate,LongPrototype.add=function add(addend){isLong(addend)||(addend=fromValue(addend));var a48=this.high>>>16,a32=65535&this.high,a16=this.low>>>16,a00=65535&this.low,b48=addend.high>>>16,b32=65535&addend.high,b16=addend.low>>>16,c48=0,c32=0,c16=0,c00=0;return c16+=(c00+=a00+(65535&addend.low))>>>16,c32+=(c16+=a16+b16)>>>16,c48+=(c32+=a32+b32)>>>16,c48+=a48+b48,fromBits((c16&=65535)<<16|(c00&=65535),(c48&=65535)<<16|(c32&=65535),this.unsigned)},LongPrototype.subtract=function subtract(subtrahend){return isLong(subtrahend)||(subtrahend=fromValue(subtrahend)),this.add(subtrahend.neg())},LongPrototype.sub=LongPrototype.subtract,LongPrototype.multiply=function multiply(multiplier){if(this.isZero())return this;if(isLong(multiplier)||(multiplier=fromValue(multiplier)),wasm)return fromBits(wasm.mul(this.low,this.high,multiplier.low,multiplier.high),wasm.get_high(),this.unsigned);if(multiplier.isZero())return this.unsigned?UZERO:ZERO;if(this.eq(MIN_VALUE))return multiplier.isOdd()?MIN_VALUE:ZERO;if(multiplier.eq(MIN_VALUE))return this.isOdd()?MIN_VALUE:ZERO;if(this.isNegative())return multiplier.isNegative()?this.neg().mul(multiplier.neg()):this.neg().mul(multiplier).neg();if(multiplier.isNegative())return this.mul(multiplier.neg()).neg();if(this.lt(TWO_PWR_24)&&multiplier.lt(TWO_PWR_24))return fromNumber(this.toNumber()*multiplier.toNumber(),this.unsigned);var a48=this.high>>>16,a32=65535&this.high,a16=this.low>>>16,a00=65535&this.low,b48=multiplier.high>>>16,b32=65535&multiplier.high,b16=multiplier.low>>>16,b00=65535&multiplier.low,c48=0,c32=0,c16=0,c00=0;return c16+=(c00+=a00*b00)>>>16,c32+=(c16+=a16*b00)>>>16,c16&=65535,c32+=(c16+=a00*b16)>>>16,c48+=(c32+=a32*b00)>>>16,c32&=65535,c48+=(c32+=a16*b16)>>>16,c32&=65535,c48+=(c32+=a00*b32)>>>16,c48+=a48*b00+a32*b16+a16*b32+a00*b48,fromBits((c16&=65535)<<16|(c00&=65535),(c48&=65535)<<16|(c32&=65535),this.unsigned)},LongPrototype.mul=LongPrototype.multiply,LongPrototype.divide=function divide(divisor){if(isLong(divisor)||(divisor=fromValue(divisor)),divisor.isZero())throw Error("division by zero");var approx,rem,res;if(wasm)return this.unsigned||-2147483648!==this.high||-1!==divisor.low||-1!==divisor.high?fromBits((this.unsigned?wasm.div_u:wasm.div_s)(this.low,this.high,divisor.low,divisor.high),wasm.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?UZERO:ZERO;if(this.unsigned){if(divisor.unsigned||(divisor=divisor.toUnsigned()),divisor.gt(this))return UZERO;if(divisor.gt(this.shru(1)))return UONE;res=UZERO}else{if(this.eq(MIN_VALUE))return divisor.eq(ONE)||divisor.eq(NEG_ONE)?MIN_VALUE:divisor.eq(MIN_VALUE)?ONE:(approx=this.shr(1).div(divisor).shl(1)).eq(ZERO)?divisor.isNegative()?ONE:NEG_ONE:(rem=this.sub(divisor.mul(approx)),res=approx.add(rem.div(divisor)));if(divisor.eq(MIN_VALUE))return this.unsigned?UZERO:ZERO;if(this.isNegative())return divisor.isNegative()?this.neg().div(divisor.neg()):this.neg().div(divisor).neg();if(divisor.isNegative())return this.div(divisor.neg()).neg();res=ZERO}for(rem=this;rem.gte(divisor);){approx=Math.max(1,Math.floor(rem.toNumber()/divisor.toNumber()));for(var log2=Math.ceil(Math.log(approx)/Math.LN2),delta=log2<=48?1:pow_dbl(2,log2-48),approxRes=fromNumber(approx),approxRem=approxRes.mul(divisor);approxRem.isNegative()||approxRem.gt(rem);)approxRem=(approxRes=fromNumber(approx-=delta,this.unsigned)).mul(divisor);approxRes.isZero()&&(approxRes=ONE),res=res.add(approxRes),rem=rem.sub(approxRem)}return res},LongPrototype.div=LongPrototype.divide,LongPrototype.modulo=function modulo(divisor){return isLong(divisor)||(divisor=fromValue(divisor)),wasm?fromBits((this.unsigned?wasm.rem_u:wasm.rem_s)(this.low,this.high,divisor.low,divisor.high),wasm.get_high(),this.unsigned):this.sub(this.div(divisor).mul(divisor))},LongPrototype.mod=LongPrototype.modulo,LongPrototype.rem=LongPrototype.modulo,LongPrototype.not=function not(){return fromBits(~this.low,~this.high,this.unsigned)},LongPrototype.countLeadingZeros=function countLeadingZeros(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},LongPrototype.clz=LongPrototype.countLeadingZeros,LongPrototype.countTrailingZeros=function countTrailingZeros(){return this.low?ctz32(this.low):ctz32(this.high)+32},LongPrototype.ctz=LongPrototype.countTrailingZeros,LongPrototype.and=function and(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low&other.low,this.high&other.high,this.unsigned)},LongPrototype.or=function or(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low|other.low,this.high|other.high,this.unsigned)},LongPrototype.xor=function xor(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low^other.low,this.high^other.high,this.unsigned)},LongPrototype.shiftLeft=function shiftLeft(numBits){return isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63)?this:numBits<32?fromBits(this.low<>>32-numBits,this.unsigned):fromBits(0,this.low<>>numBits|this.high<<32-numBits,this.high>>numBits,this.unsigned):fromBits(this.high>>numBits-32,this.high>=0?0:-1,this.unsigned)},LongPrototype.shr=LongPrototype.shiftRight,LongPrototype.shiftRightUnsigned=function shiftRightUnsigned(numBits){return isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63)?this:numBits<32?fromBits(this.low>>>numBits|this.high<<32-numBits,this.high>>>numBits,this.unsigned):fromBits(32===numBits?this.high:this.high>>>numBits-32,0,this.unsigned)},LongPrototype.shru=LongPrototype.shiftRightUnsigned,LongPrototype.shr_u=LongPrototype.shiftRightUnsigned,LongPrototype.rotateLeft=function rotateLeft(numBits){var b;return isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63)?this:32===numBits?fromBits(this.high,this.low,this.unsigned):numBits<32?(b=32-numBits,fromBits(this.low<>>b,this.high<>>b,this.unsigned)):(b=32-(numBits-=32),fromBits(this.high<>>b,this.low<>>b,this.unsigned))},LongPrototype.rotl=LongPrototype.rotateLeft,LongPrototype.rotateRight=function rotateRight(numBits){var b;return isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63)?this:32===numBits?fromBits(this.high,this.low,this.unsigned):numBits<32?(b=32-numBits,fromBits(this.high<>>numBits,this.low<>>numBits,this.unsigned)):(b=32-(numBits-=32),fromBits(this.low<>>numBits,this.high<>>numBits,this.unsigned))},LongPrototype.rotr=LongPrototype.rotateRight,LongPrototype.toSigned=function toSigned(){return this.unsigned?fromBits(this.low,this.high,!1):this},LongPrototype.toUnsigned=function toUnsigned(){return this.unsigned?this:fromBits(this.low,this.high,!0)},LongPrototype.toBytes=function toBytes(le){return le?this.toBytesLE():this.toBytesBE()},LongPrototype.toBytesLE=function toBytesLE(){var hi=this.high,lo=this.low;return[255&lo,lo>>>8&255,lo>>>16&255,lo>>>24,255&hi,hi>>>8&255,hi>>>16&255,hi>>>24]},LongPrototype.toBytesBE=function toBytesBE(){var hi=this.high,lo=this.low;return[hi>>>24,hi>>>16&255,hi>>>8&255,255&hi,lo>>>24,lo>>>16&255,lo>>>8&255,255&lo]},long_Long.fromBytes=function fromBytes(bytes,unsigned,le){return le?long_Long.fromBytesLE(bytes,unsigned):long_Long.fromBytesBE(bytes,unsigned)},long_Long.fromBytesLE=function fromBytesLE(bytes,unsigned){return new long_Long(bytes[0]|bytes[1]<<8|bytes[2]<<16|bytes[3]<<24,bytes[4]|bytes[5]<<8|bytes[6]<<16|bytes[7]<<24,unsigned)},long_Long.fromBytesBE=function fromBytesBE(bytes,unsigned){return new long_Long(bytes[4]<<24|bytes[5]<<16|bytes[6]<<8|bytes[7],bytes[0]<<24|bytes[1]<<16|bytes[2]<<8|bytes[3],unsigned)};var node_modules_long=long_Long;const MAXIMUM_TOKEN_LENGTH=16;function getS2CellIdFromToken(token){"X"===token&&(token="");const paddedToken=token.padEnd(MAXIMUM_TOKEN_LENGTH,"0");return node_modules_long.fromString(paddedToken,!0,16)}const s2_geometry_FACE_BITS=3,s2_geometry_POS_BITS=61,s2_geometry_RADIAN_TO_DEGREE=180/Math.PI;function s2_geometry_IJToST(ij,level,offsets){const maxSize=1<=.5?1/3*(4*st*st-1):1/3*(1-4*(1-st)*(1-st))}function s2_geometry_STToUV(st){return[s2_geometry_singleSTtoUV(st[0]),s2_geometry_singleSTtoUV(st[1])]}function s2_geometry_FaceUVToXYZ(face,_ref){let[u,v]=_ref;switch(face){case 0:return[1,u,v];case 1:return[-u,1,v];case 2:return[-u,-v,1];case 3:return[-1,-v,-u];case 4:return[v,-1,-u];case 5:return[v,u,-1];default:throw new Error("Invalid face")}}function s2_geometry_XYZToLngLat(_ref2){let[x,y,z]=_ref2;const lat=Math.atan2(z,Math.sqrt(x*x+y*y));return[Math.atan2(y,x)*s2_geometry_RADIAN_TO_DEGREE,lat*s2_geometry_RADIAN_TO_DEGREE]}function s2_geometry_rotateAndFlipQuadrant(n,point,rx,ry){if(0===ry){1===rx&&(point[0]=n-1-point[0],point[1]=n-1-point[1]);const x=point[0];point[0]=point[1],point[1]=x}}function s2_cell_utils_getS2Cell(tokenOrKey){const key=function s2_cell_utils_getS2QuadKey(tokenOrKey){if(tokenOrKey.indexOf("/")>0)return tokenOrKey;const id=getS2CellIdFromToken(tokenOrKey);return function getS2QuadkeyFromCellId(cellId){if(cellId.isZero())return"";let bin=cellId.toString(2);for(;bin.length=0;i--){level=maxLevel-i;const bit=position[i];let rx=0,ry=0;"1"===bit?ry=1:"2"===bit?(rx=1,ry=1):"3"===bit&&(rx=1);const val=Math.pow(2,level-1);s2_geometry_rotateAndFlipQuadrant(val,point,rx,ry),point[0]+=val*rx,point[1]+=val*ry}if(face%2==1){const t=point[0];point[0]=point[1],point[1]=t}return{face:face,ij:point,level:level}}(key);return s2cell}const s2_to_boundary_MAX_RESOLUTION=100;function s2_to_boundary_getS2BoundaryFlatFromS2Cell(s2cell){const{face:face,ij:ij,level:level}=s2cell,offsets=[[0,0],[0,1],[1,1],[1,0],[0,0]],resolution=Math.max(1,Math.ceil(s2_to_boundary_MAX_RESOLUTION*Math.pow(2,-level))),result=new Float64Array(4*resolution*2+2);let ptIndex=0,prevLng=0;for(let i=0;i<4;i++){const offset=offsets[i].slice(0),nextOffset=offsets[i+1],stepI=(nextOffset[0]-offset[0])/resolution,stepJ=(nextOffset[1]-offset[1])/resolution;for(let j=0;j89.999&&(lngLat[0]=prevLng);const deltaLng=lngLat[0]-prevLng;lngLat[0]+=deltaLng>180?-360:deltaLng<-180?360:0,result[ptIndex++]=lngLat[0],result[ptIndex++]=lngLat[1],prevLng=lngLat[0]}}return result[ptIndex++]=result[0],result[ptIndex++]=result[1],result}function get2DRegionFromS2Corners(corners){if(corners.length%2!=0)throw new Error("Invalid corners");const longitudes=[],latitudes=[];for(let i=0;ia-b)),latitudes.sort(((a,b)=>a-b)),{west:longitudes[0],east:longitudes[longitudes.length-1],north:latitudes[latitudes.length-1],south:latitudes[0]}}function getS2OrientedBoundingBoxCornerPoints(tokenOrKey,heightInfo){const min=(null==heightInfo?void 0:heightInfo.minimumHeight)||0,max=(null==heightInfo?void 0:heightInfo.maximumHeight)||0,region=function getS2Region(s2cell){let region;if(2===s2cell.face||5===s2cell.face){let corners=null,len=0;for(let i=0;i<4;i++){const corns=s2_to_boundary_getS2BoundaryFlatFromS2Cell(s2_cell_utils_getS2Cell("".concat(s2cell.face,"/").concat(i)));null==corners&&(corners=new Float64Array(4*corns.length)),corners.set(corns,len),len+=corns.length}region=get2DRegionFromS2Corners(corners)}else region=get2DRegionFromS2Corners(s2_to_boundary_getS2BoundaryFlatFromS2Cell(s2cell));return region}(s2_cell_utils_getS2Cell(tokenOrKey)),W=region.west,S=region.south,E=region.east,N=region.north,points=[];return points.push(new vector3.Z(W,N,min)),points.push(new vector3.Z(E,N,min)),points.push(new vector3.Z(E,S,min)),points.push(new vector3.Z(W,S,min)),points.push(new vector3.Z(W,N,max)),points.push(new vector3.Z(E,N,max)),points.push(new vector3.Z(E,S,max)),points.push(new vector3.Z(W,S,max)),points}function getS2LngLat(s2Token){return function getS2LngLatFromS2Cell(s2Cell){const uv=s2_geometry_STToUV(s2_geometry_IJToST(s2Cell.ij,s2Cell.level,[.5,.5]));return s2_geometry_XYZToLngLat(s2_geometry_FaceUVToXYZ(s2Cell.face,uv))}(s2_cell_utils_getS2Cell(s2Token))}function convertS2BoundingVolumetoOBB(s2VolumeInfo){const token=s2VolumeInfo.token,heightInfo={minimumHeight:s2VolumeInfo.minimumHeight,maximumHeight:s2VolumeInfo.maximumHeight},corners=getS2OrientedBoundingBoxCornerPoints(token,heightInfo),center=getS2LngLat(token),centerLng=center[0],centerLat=center[1],point=Ellipsoid.WGS84.cartographicToCartesian([centerLng,centerLat,heightInfo.maximumHeight]),centerPointAdditional=new vector3.Z(point[0],point[1],point[2]);corners.push(centerPointAdditional);const obb=makeOrientedBoundingBoxFromPoints(corners);return[...obb.center,...obb.halfAxes]}const SUBDIVISION_COUNT_MAP={QUADTREE:4,OCTREE:8};function getChildS2VolumeBox(s2VolumeBox,index,subdivisionScheme){if(null!=s2VolumeBox&&s2VolumeBox.box){const childCellId=function getS2ChildCellId(cellId,index){const newLsb=function lsb(cellId){return cellId.and(cellId.not().add(1))}(cellId).shiftRightUnsigned(2);return cellId.add(node_modules_long.fromNumber(2*index+1-4).multiply(newLsb))}(getS2CellIdFromToken(s2VolumeBox.s2VolumeInfo.token),index),childToken=function getS2TokenFromCellId(cellId){if(cellId.isZero())return"X";let numZeroDigits=cellId.countTrailingZeros();numZeroDigits=(numZeroDigits-numZeroDigits%4)/4;const trailingZeroHexChars=numZeroDigits;numZeroDigits*=4;const hexString=cellId.shiftRightUnsigned(numZeroDigits).toString(16).replace(/0+$/,"");return Array(17-trailingZeroHexChars-hexString.length).join("0")+hexString}(childCellId),s2ChildVolumeInfo={...s2VolumeBox.s2VolumeInfo};if(s2ChildVolumeInfo.token=childToken,"OCTREE"===subdivisionScheme){const s2VolumeInfo=s2VolumeBox.s2VolumeInfo,delta=s2VolumeInfo.maximumHeight-s2VolumeInfo.minimumHeight,sizeZ=delta/2,midZ=s2VolumeInfo.minimumHeight+delta/2;s2VolumeInfo.minimumHeight=midZ-sizeZ,s2VolumeInfo.maximumHeight=midZ+sizeZ}return{box:convertS2BoundingVolumetoOBB(s2ChildVolumeInfo),s2VolumeInfo:s2ChildVolumeInfo}}}async function parseImplicitTiles(params){const{options:options,parentData:parentData={mortonIndex:0,x:0,y:0,z:0},childIndex:childIndex=0,globalData:globalData={level:0,mortonIndex:0,x:0,y:0,z:0},s2VolumeBox:s2VolumeBox}=params;let{subtree:subtree,level:level=0}=params;const{subdivisionScheme:subdivisionScheme,subtreeLevels:subtreeLevels,maximumLevel:maximumLevel,contentUrlTemplate:contentUrlTemplate,subtreesUriTemplate:subtreesUriTemplate,basePath:basePath}=options,tile={children:[],lodMetricValue:0,contentUrl:""},childrenPerTile=SUBDIVISION_COUNT_MAP[subdivisionScheme],childX=1&childIndex,childY=childIndex>>1&1,childZ=childIndex>>2&1,levelOffset=(childrenPerTile**level-1)/(childrenPerTile-1);let childTileMortonIndex=concatBits(parentData.mortonIndex,childIndex),tileAvailabilityIndex=levelOffset+childTileMortonIndex,childTileX=concatBits(parentData.x,childX),childTileY=concatBits(parentData.y,childY),childTileZ=concatBits(parentData.z,childZ),isChildSubtreeAvailable=!1;level+1>subtreeLevels&&(isChildSubtreeAvailable=getAvailabilityResult(subtree.childSubtreeAvailability,childTileMortonIndex));const x=concatBits(globalData.x,childTileX),y=concatBits(globalData.y,childTileY),z=concatBits(globalData.z,childTileZ),lev=level+globalData.level;if(isChildSubtreeAvailable){const childSubtreeUrl=replaceContentUrlTemplate("".concat(basePath,"/").concat(subtreesUriTemplate),lev,x,y,z);subtree=await(0,load.z)(childSubtreeUrl,Tile3DSubtreeLoader),globalData.mortonIndex=childTileMortonIndex,globalData.x=childTileX,globalData.y=childTileY,globalData.z=childTileZ,globalData.level=level,childTileMortonIndex=0,tileAvailabilityIndex=0,childTileX=0,childTileY=0,childTileZ=0,level=0}if(!getAvailabilityResult(subtree.tileAvailability,tileAvailabilityIndex)||level>maximumLevel)return tile;getAvailabilityResult(subtree.contentAvailability,tileAvailabilityIndex)&&(tile.contentUrl=replaceContentUrlTemplate(contentUrlTemplate,lev,x,y,z));const childTileLevel=level+1,pData={mortonIndex:childTileMortonIndex,x:childTileX,y:childTileY,z:childTileZ};for(let index=0;index>bitIndex&1)}(index,availabilityData.explicitBitstream)}function formatTileData(tile,level,childCoordinates,options,s2VolumeBox){const{basePath:basePath,refine:refine,getRefine:getRefine,lodMetricType:lodMetricType,getTileType:getTileType,rootLodMetricValue:rootLodMetricValue,rootBoundingVolume:rootBoundingVolume}=options,uri=tile.contentUrl&&tile.contentUrl.replace("".concat(basePath,"/"),""),lodMetricValue=rootLodMetricValue/2**level,boundingVolumeForChildTile=function calculateBoundingVolumeForChildTile(level,rootBoundingVolume,childCoordinates){if(rootBoundingVolume.region){const{childTileX:childTileX,childTileY:childTileY,childTileZ:childTileZ}=childCoordinates,[west,south,east,north,minimumHeight,maximumHeight]=rootBoundingVolume.region,boundingVolumesCount=2**level,sizeX=(east-west)/boundingVolumesCount,sizeY=(north-south)/boundingVolumesCount,sizeZ=(maximumHeight-minimumHeight)/boundingVolumesCount,[childWest,childEast]=[west+sizeX*childTileX,west+sizeX*(childTileX+1)],[childSouth,childNorth]=[south+sizeY*childTileY,south+sizeY*(childTileY+1)],[childMinimumHeight,childMaximumHeight]=[minimumHeight+sizeZ*childTileZ,minimumHeight+sizeZ*(childTileZ+1)];return{region:[childWest,childSouth,childEast,childNorth,childMinimumHeight,childMaximumHeight]}}if(rootBoundingVolume.box)return rootBoundingVolume;throw new Error("Unsupported bounding volume type ".concat(rootBoundingVolume))}(level,null!=s2VolumeBox&&s2VolumeBox.box?{box:s2VolumeBox.box}:rootBoundingVolume,childCoordinates);return{children:tile.children,contentUrl:tile.contentUrl,content:{uri:uri},id:tile.contentUrl,refine:getRefine(refine),type:getTileType(tile),lodMetricType:lodMetricType,lodMetricValue:lodMetricValue,geometricError:lodMetricValue,transform:tile.transform,boundingVolume:boundingVolumeForChildTile}}function concatBits(first,second){return parseInt(first.toString(2)+second.toString(2),2)}function replaceContentUrlTemplate(templateUrl,level,x,y,z){const mapUrl=function generateMapUrl(items){const mapUrl={};for(const key in items)mapUrl["{".concat(key,"}")]=items[key];return mapUrl}({level:level,x:x,y:y,z:z});return templateUrl.replace(/{level}|{x}|{y}|{z}/gi,(matched=>mapUrl[matched]))}function getTileType(tile){if(!tile.contentUrl)return TILE_TYPE.EMPTY;const fileExtension=tile.contentUrl.split("?")[0].split(".").pop();switch(fileExtension){case"pnts":return TILE_TYPE.POINTCLOUD;case"i3dm":case"b3dm":case"glb":case"gltf":return TILE_TYPE.SCENEGRAPH;default:return fileExtension}}function getRefine(refine){switch(refine){case"REPLACE":case"replace":return TILE_REFINEMENT.REPLACE;case"ADD":case"add":return TILE_REFINEMENT.ADD;default:return refine}}function resolveUri(uri,basePath){if(/^[a-z][0-9a-z+.-]*:/i.test(basePath)){const url=new URL(uri,"".concat(basePath,"/"));return decodeURI(url.toString())}return uri.startsWith("/")?uri:"".concat(basePath,"/").concat(uri)}function normalizeTileData(tile,options){if(!tile)return null;if(tile.content){const contentUri=tile.content.uri||tile.content.url;tile.contentUrl=resolveUri(contentUri,options.basePath)}return tile.id=tile.contentUrl,tile.lodMetricType=LOD_METRIC_TYPE.GEOMETRIC_ERROR,tile.lodMetricValue=tile.geometricError,tile.transformMatrix=tile.transform,tile.type=getTileType(tile),tile.refine=getRefine(tile.refine),tile}async function normalizeImplicitTileHeaders(tile,tileset,implicitTilingExtension,options){var _tileset$root,_tile$boundingVolume$;const basePath=tileset.basePath,{subdivisionScheme:subdivisionScheme,maximumLevel:maximumLevel,subtreeLevels:subtreeLevels,subtrees:{uri:subtreesUriTemplate}}=implicitTilingExtension,subtreeUrl=resolveUri(replaceContentUrlTemplate(subtreesUriTemplate,0,0,0,0),basePath),subtree=await(0,load.z)(subtreeUrl,Tile3DSubtreeLoader,options),contentUrlTemplate=resolveUri(tile.content.uri,basePath),refine=null==tileset||null===(_tileset$root=tileset.root)||void 0===_tileset$root?void 0:_tileset$root.refine,rootLodMetricValue=tile.geometricError,s2VolumeInfo=null===(_tile$boundingVolume$=tile.boundingVolume.extensions)||void 0===_tile$boundingVolume$?void 0:_tile$boundingVolume$["3DTILES_bounding_volume_S2"];if(s2VolumeInfo){const s2VolumeBox={box:convertS2BoundingVolumetoOBB(s2VolumeInfo),s2VolumeInfo:s2VolumeInfo};tile.boundingVolume=s2VolumeBox}const rootBoundingVolume=tile.boundingVolume,implicitOptions={contentUrlTemplate:contentUrlTemplate,subtreesUriTemplate:subtreesUriTemplate,subdivisionScheme:subdivisionScheme,subtreeLevels:subtreeLevels,maximumLevel:maximumLevel,refine:refine,basePath:basePath,lodMetricType:LOD_METRIC_TYPE.GEOMETRIC_ERROR,rootLodMetricValue:rootLodMetricValue,rootBoundingVolume:rootBoundingVolume,getTileType:getTileType,getRefine:getRefine};return await async function normalizeImplicitTileData(tile,rootSubtree,options){if(!tile)return null;tile.lodMetricType=LOD_METRIC_TYPE.GEOMETRIC_ERROR,tile.lodMetricValue=tile.geometricError,tile.transformMatrix=tile.transform;const{children:children,contentUrl:contentUrl}=await parseImplicitTiles({subtree:rootSubtree,options:options,s2VolumeBox:tile});contentUrl&&(tile.contentUrl=contentUrl,tile.content={uri:contentUrl.replace("".concat(options.basePath,"/"),"")});return tile.refine=getRefine(tile.refine),tile.type=getTileType(tile),tile.children=children,tile.id=tile.contentUrl,tile}(tile,subtree,implicitOptions)}function getImplicitTilingExtensionData(tile){var _tile$extensions;return(null==tile||null===(_tile$extensions=tile.extensions)||void 0===_tile$extensions?void 0:_tile$extensions["3DTILES_implicit_tiling"])||(null==tile?void 0:tile.implicitTiling)}const Tiles3DLoader={id:"3d-tiles",name:"3D Tiles",module:"3d-tiles",version:"3.4.15",extensions:["cmpt","pnts","b3dm","i3dm"],mimeTypes:["application/octet-stream"],tests:["cmpt","pnts","b3dm","i3dm"],parse:async function parse(data,options,context){const loaderOptions=options["3d-tiles"]||{};let isTileset;isTileset="auto"===loaderOptions.isTileset?context.url&&-1!==context.url.indexOf(".json"):loaderOptions.isTileset;data=isTileset?await async function parseTileset(data,options,context){var _tilesetJson$root;const tilesetJson=JSON.parse((new TextDecoder).decode(data));return tilesetJson.loader=options.loader||Tiles3DLoader,tilesetJson.url=context.url,tilesetJson.queryString=context.queryString,tilesetJson.basePath=function getBaseUri(tileset){return path.XX(tileset.url)}(tilesetJson),tilesetJson.root=await async function normalizeTileHeaders(tileset,options){const basePath=tileset.basePath;let root;const rootImplicitTilingExtension=getImplicitTilingExtensionData(null==tileset?void 0:tileset.root);root=rootImplicitTilingExtension&&tileset.root?await normalizeImplicitTileHeaders(tileset.root,tileset,rootImplicitTilingExtension,options):normalizeTileData(tileset.root,tileset);const stack=[];for(stack.push(root);stack.length>0;){const children=(stack.pop()||{}).children||[];for(let childHeader of children){const childImplicitTilingExtension=getImplicitTilingExtensionData(childHeader);childImplicitTilingExtension?childHeader=await normalizeImplicitTileHeaders(childHeader,tileset,childImplicitTilingExtension,options):normalizeTileData(childHeader,{basePath:basePath}),stack.push(childHeader)}}return root}(tilesetJson,options),tilesetJson.type=TILESET_TYPE.TILES3D,tilesetJson.lodMetricType=LOD_METRIC_TYPE.GEOMETRIC_ERROR,tilesetJson.lodMetricValue=(null===(_tilesetJson$root=tilesetJson.root)||void 0===_tilesetJson$root?void 0:_tilesetJson$root.lodMetricValue)||0,tilesetJson}(data,options,context):await async function parseTile(arrayBuffer,options,context){const tile={content:{featureIds:null}},byteOffset=0;return await parse3DTile(arrayBuffer,byteOffset,options,context,tile.content),tile.content}(data,options,context);return data},options:{"3d-tiles":{loadGLTF:!0,decodeQuantizedPositions:!1,isTileset:"auto",assetGltfUpAxis:null}}};const SINGLE_DATA=[0],tile_3d_layer_defaultProps={getPointColor:{type:"accessor",value:[0,0,0,255]},pointSize:1,data:"",loader:Tiles3DLoader,onTilesetLoad:{type:"function",value:tileset3d=>{}},onTileLoad:{type:"function",value:tileHeader=>{}},onTileUnload:{type:"function",value:tileHeader=>{}},onTileError:{type:"function",value:(tile,message,url)=>{}},_getMeshColor:{type:"function",value:tileHeader=>[255,255,255]}};class Tile3DLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){"onTileLoadFail"in this.props&&log.Z.removed("onTileLoadFail","onTileError")(),this.state={layerMap:{},tileset3d:null,activeViewports:{},lastUpdatedViewports:null}}get isLoaded(){var _this$state,_this$state$tileset3d;return Boolean((null===(_this$state=this.state)||void 0===_this$state||null===(_this$state$tileset3d=_this$state.tileset3d)||void 0===_this$state$tileset3d?void 0:_this$state$tileset3d.isLoaded())&&super.isLoaded)}shouldUpdateState({changeFlags:changeFlags}){return changeFlags.somethingChanged}updateState({props:props,oldProps:oldProps,changeFlags:changeFlags}){if(props.data&&props.data!==oldProps.data&&this._loadTileset(props.data),changeFlags.viewportChanged){const{activeViewports:activeViewports}=this.state;Object.keys(activeViewports).length&&(this._updateTileset(activeViewports),this.state.lastUpdatedViewports=activeViewports,this.state.activeViewports={})}if(changeFlags.propsChanged){const{layerMap:layerMap}=this.state;for(const key in layerMap)layerMap[key].needsUpdate=!0}}activateViewport(viewport){const{activeViewports:activeViewports,lastUpdatedViewports:lastUpdatedViewports}=this.state;this.internalState.viewport=viewport,activeViewports[viewport.id]=viewport;const lastViewport=null==lastUpdatedViewports?void 0:lastUpdatedViewports[viewport.id];lastViewport&&viewport.equals(lastViewport)||(this.setChangeFlags({viewportChanged:!0}),this.setNeedsUpdate())}getPickingInfo({info:info,sourceLayer:sourceLayer}){const sourceTile=sourceLayer&&sourceLayer.props.tile;return info.picked&&(info.object=sourceTile),info.sourceTile=sourceTile,info}filterSubLayer({layer:layer,viewport:viewport}){const{tile:tile}=layer.props,{id:viewportId}=viewport;return tile.selected&&tile.viewportIds.includes(viewportId)}_updateAutoHighlight(info){const sourceTile=info.sourceTile,layerCache=this.state.layerMap[null==sourceTile?void 0:sourceTile.id];layerCache&&layerCache.layer&&layerCache.layer.updateAutoHighlight(info)}async _loadTileset(tilesetUrl){const{loadOptions:loadOptions={}}=this.props;let loader=this.props.loader||this.props.loaders;Array.isArray(loader)&&(loader=loader[0]);const options={loadOptions:{...loadOptions}};let actualTilesetUrl=tilesetUrl;if(loader.preload){const preloadOptions=await loader.preload(tilesetUrl,loadOptions);preloadOptions.url&&(actualTilesetUrl=preloadOptions.url),preloadOptions.headers&&(options.loadOptions.fetch={...options.loadOptions.fetch,headers:preloadOptions.headers}),Object.assign(options,preloadOptions)}const tilesetJson=await(0,load.z)(actualTilesetUrl,loader,options.loadOptions),tileset3d=new Tileset3D(tilesetJson,{onTileLoad:this._onTileLoad.bind(this),onTileUnload:this._onTileUnload.bind(this),onTileError:this.props.onTileError,...options});this.setState({tileset3d:tileset3d,layerMap:{}}),this._updateTileset(this.state.activeViewports),this.props.onTilesetLoad(tileset3d)}_onTileLoad(tileHeader){const{lastUpdatedViewports:lastUpdatedViewports}=this.state;this.props.onTileLoad(tileHeader),this._updateTileset(lastUpdatedViewports),this.setNeedsUpdate()}_onTileUnload(tileHeader){delete this.state.layerMap[tileHeader.id],this.props.onTileUnload(tileHeader)}_updateTileset(viewports){if(!viewports)return;const{tileset3d:tileset3d}=this.state,{timeline:timeline}=this.context,viewportsNumber=Object.keys(viewports).length;timeline&&viewportsNumber&&tileset3d&&tileset3d.selectTiles(Object.values(viewports)).then((frameNumber=>{this.state.frameNumber!==frameNumber&&this.setState({frameNumber:frameNumber})}))}_getSubLayer(tileHeader,oldLayer){if(!tileHeader.content)return null;switch(tileHeader.type){case TILE_TYPE.POINTCLOUD:return this._makePointCloudLayer(tileHeader,oldLayer);case TILE_TYPE.SCENEGRAPH:return this._make3DModelLayer(tileHeader);case TILE_TYPE.MESH:return this._makeSimpleMeshLayer(tileHeader,oldLayer);default:throw new Error("Tile3DLayer: Failed to render layer of type ".concat(tileHeader.content.type))}}_makePointCloudLayer(tileHeader,oldLayer){const{attributes:attributes,pointCount:pointCount,constantRGBA:constantRGBA,cartographicOrigin:cartographicOrigin,modelMatrix:modelMatrix}=tileHeader.content,{positions:positions,normals:normals,colors:colors}=attributes;if(!positions)return null;const data=oldLayer&&oldLayer.props.data||{header:{vertexCount:pointCount},attributes:{POSITION:positions,NORMAL:normals,COLOR_0:colors}},{pointSize:pointSize,getPointColor:getPointColor}=this.props;return new(this.getSubLayerClass("pointcloud",point_cloud_layer.Z))({pointSize:pointSize},this.getSubLayerProps({id:"pointcloud"}),{id:"".concat(this.id,"-pointcloud-").concat(tileHeader.id),tile:tileHeader,data:data,coordinateSystem:constants.COORDINATE_SYSTEM.METER_OFFSETS,coordinateOrigin:cartographicOrigin,modelMatrix:modelMatrix,getColor:constantRGBA||getPointColor,_offset:0})}_make3DModelLayer(tileHeader){const{gltf:gltf,instances:instances,cartographicOrigin:cartographicOrigin,modelMatrix:modelMatrix}=tileHeader.content;return new(this.getSubLayerClass("scenegraph",scenegraph_layer.Z))({_lighting:"pbr"},this.getSubLayerProps({id:"scenegraph"}),{id:"".concat(this.id,"-scenegraph-").concat(tileHeader.id),tile:tileHeader,data:instances||SINGLE_DATA,scenegraph:gltf,coordinateSystem:constants.COORDINATE_SYSTEM.METER_OFFSETS,coordinateOrigin:cartographicOrigin,modelMatrix:modelMatrix,getTransformMatrix:instance=>instance.modelMatrix,getPosition:[0,0,0],_offset:0})}_makeSimpleMeshLayer(tileHeader,oldLayer){const content=tileHeader.content,{attributes:attributes,indices:indices,modelMatrix:modelMatrix,cartographicOrigin:cartographicOrigin,coordinateSystem:coordinateSystem=constants.COORDINATE_SYSTEM.METER_OFFSETS,material:material,featureIds:featureIds}=content,{_getMeshColor:_getMeshColor}=this.props,geometry=oldLayer&&oldLayer.props.mesh||new geometry_geometry.Z({drawMode:4,attributes:getMeshGeometry(attributes),indices:indices});return new(this.getSubLayerClass("mesh",MeshLayer))(this.getSubLayerProps({id:"mesh"}),{id:"".concat(this.id,"-mesh-").concat(tileHeader.id),tile:tileHeader,mesh:geometry,data:SINGLE_DATA,getColor:_getMeshColor(tileHeader),pbrMaterial:material,modelMatrix:modelMatrix,coordinateOrigin:cartographicOrigin,coordinateSystem:coordinateSystem,featureIds:featureIds,_offset:0})}renderLayers(){const{tileset3d:tileset3d,layerMap:layerMap}=this.state;return tileset3d?tileset3d.tiles.map((tile=>{const layerCache=layerMap[tile.id]=layerMap[tile.id]||{tile:tile};let{layer:layer}=layerCache;return tile.selected&&(layer?layerCache.needsUpdate&&(layer=this._getSubLayer(tile,layer),layerCache.needsUpdate=!1):layer=this._getSubLayer(tile)),layerCache.layer=layer,layer})).filter(Boolean):null}}function getMeshGeometry(contentAttributes){const attributes={};return attributes.positions={...contentAttributes.positions,value:new Float32Array(contentAttributes.positions.value)},contentAttributes.normals&&(attributes.normals=contentAttributes.normals),contentAttributes.texCoords&&(attributes.texCoords=contentAttributes.texCoords),contentAttributes.colors&&(attributes.colors=contentAttributes.colors),contentAttributes.uvRegions&&(attributes.uvRegions=contentAttributes.uvRegions),attributes}(0,defineProperty.Z)(Tile3DLayer,"defaultProps",tile_3d_layer_defaultProps),(0,defineProperty.Z)(Tile3DLayer,"layerName","Tile3DLayer");const TerrainLoader={name:"Terrain",id:"terrain",module:"terrain",version:"3.4.15",worker:!0,extensions:["png","pngraw","jpg","jpeg","gif","webp","bmp"],mimeTypes:["image/png","image/jpeg","image/gif","image/webp","image/bmp"],options:{terrain:{tesselator:"auto",bounds:null,meshMaxError:10,elevationDecoder:{rScaler:1,gScaler:0,bScaler:0,offset:0},skirtHeight:null}}},DUMMY_DATA=[1],terrain_layer_defaultProps={...TileLayer.defaultProps,elevationData:urlType,texture:{...urlType,optional:!0},meshMaxError:{type:"number",value:4},bounds:{type:"array",value:null,optional:!0,compare:!0},color:{type:"color",value:[255,255,255]},elevationDecoder:{type:"object",value:{rScaler:1,gScaler:0,bScaler:0,offset:0}},workerUrl:"",wireframe:!1,material:!0,loaders:[TerrainLoader]};function urlTemplateToUpdateTrigger(template){return Array.isArray(template)?template.join(";"):template||""}class TerrainLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}updateState({props:props,oldProps:oldProps}){const elevationDataChanged=props.elevationData!==oldProps.elevationData;if(elevationDataChanged){const{elevationData:elevationData}=props,isTiled=elevationData&&(Array.isArray(elevationData)||elevationData.includes("{x}")&&elevationData.includes("{y}"));this.setState({isTiled:isTiled})}const shouldReload=elevationDataChanged||props.meshMaxError!==oldProps.meshMaxError||props.elevationDecoder!==oldProps.elevationDecoder||props.bounds!==oldProps.bounds;if(!this.state.isTiled&&shouldReload){const terrain=this.loadTerrain(props);this.setState({terrain:terrain})}props.workerUrl&&log.Z.removed("workerUrl","loadOptions.terrain.workerUrl")()}loadTerrain({elevationData:elevationData,bounds:bounds,elevationDecoder:elevationDecoder,meshMaxError:meshMaxError,signal:signal}){var _loadOptions;if(!elevationData)return null;let loadOptions=this.getLoadOptions();loadOptions={...loadOptions,terrain:{skirtHeight:this.state.isTiled?2*meshMaxError:0,...null===(_loadOptions=loadOptions)||void 0===_loadOptions?void 0:_loadOptions.terrain,bounds:bounds,meshMaxError:meshMaxError,elevationDecoder:elevationDecoder}};const{fetch:fetch}=this.props;return fetch(elevationData,{propName:"elevationData",layer:this,loadOptions:loadOptions,signal:signal})}getTiledTerrainData(tile){const{elevationData:elevationData,fetch:fetch,texture:texture,elevationDecoder:elevationDecoder,meshMaxError:meshMaxError}=this.props,{viewport:viewport}=this.context,dataUrl=getURLFromTemplate(elevationData,tile),textureUrl=texture&&getURLFromTemplate(texture,tile),{signal:signal}=tile;let bottomLeft=[0,0],topRight=[0,0];if(viewport.isGeospatial){const bbox=tile.bbox;bottomLeft=viewport.projectFlat([bbox.west,bbox.south]),topRight=viewport.projectFlat([bbox.east,bbox.north])}else{const bbox=tile.bbox;bottomLeft=[bbox.left,bbox.bottom],topRight=[bbox.right,bbox.top]}const bounds=[bottomLeft[0],bottomLeft[1],topRight[0],topRight[1]],terrain=this.loadTerrain({elevationData:dataUrl,bounds:bounds,elevationDecoder:elevationDecoder,meshMaxError:meshMaxError,signal:signal}),surface=textureUrl?fetch(textureUrl,{propName:"texture",layer:this,loaders:[],signal:signal}).catch((_=>null)):Promise.resolve(null);return Promise.all([terrain,surface])}renderSubLayers(props){const SubLayerClass=this.getSubLayerClass("mesh",simple_mesh_layer.Z),{color:color,wireframe:wireframe,material:material}=this.props,{data:data}=props;if(!data)return null;const[mesh,texture]=data;return new SubLayerClass(props,{data:DUMMY_DATA,mesh:mesh,texture:texture,_instanced:!1,coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,getPosition:d=>[0,0,0],getColor:color,wireframe:wireframe,material:material})}onViewportLoad(tiles){if(!tiles)return;const{zRange:zRange}=this.state,ranges=tiles.map((tile=>tile.content)).filter(Boolean).map((arr=>arr[0].header.boundingBox.map((bound=>bound[2]))));if(0===ranges.length)return;const minZ=Math.min(...ranges.map((x=>x[0]))),maxZ=Math.max(...ranges.map((x=>x[1])));(!zRange||minZzRange[1])&&this.setState({zRange:[minZ,maxZ]})}renderLayers(){const{color:color,material:material,elevationData:elevationData,texture:texture,wireframe:wireframe,meshMaxError:meshMaxError,elevationDecoder:elevationDecoder,tileSize:tileSize,maxZoom:maxZoom,minZoom:minZoom,extent:extent,maxRequests:maxRequests,onTileLoad:onTileLoad,onTileUnload:onTileUnload,onTileError:onTileError,maxCacheSize:maxCacheSize,maxCacheByteSize:maxCacheByteSize,refinementStrategy:refinementStrategy}=this.props;if(this.state.isTiled)return new TileLayer(this.getSubLayerProps({id:"tiles"}),{getTileData:this.getTiledTerrainData.bind(this),renderSubLayers:this.renderSubLayers.bind(this),updateTriggers:{getTileData:{elevationData:urlTemplateToUpdateTrigger(elevationData),texture:urlTemplateToUpdateTrigger(texture),meshMaxError:meshMaxError,elevationDecoder:elevationDecoder}},onViewportLoad:this.onViewportLoad.bind(this),zRange:this.state.zRange||null,tileSize:tileSize,maxZoom:maxZoom,minZoom:minZoom,extent:extent,maxRequests:maxRequests,onTileLoad:onTileLoad,onTileUnload:onTileUnload,onTileError:onTileError,maxCacheSize:maxCacheSize,maxCacheByteSize:maxCacheByteSize,refinementStrategy:refinementStrategy});if(!elevationData)return null;return new(this.getSubLayerClass("mesh",simple_mesh_layer.Z))(this.getSubLayerProps({id:"mesh"}),{data:DUMMY_DATA,mesh:this.state.terrain,texture:texture,_instanced:!1,getPosition:d=>[0,0,0],getColor:color,material:material,wireframe:wireframe})}}(0,defineProperty.Z)(TerrainLayer,"defaultProps",terrain_layer_defaultProps),(0,defineProperty.Z)(TerrainLayer,"layerName","TerrainLayer");var clip_extension=__webpack_require__("./node_modules/@deck.gl/extensions/dist/esm/clip/clip-extension.js"),polygon_dist_esm=__webpack_require__("./node_modules/@math.gl/polygon/dist/esm/index.js");function flatGeojsonToBinary(features,geometryInfo,options){const propArrayTypes=extractNumericPropTypes(features),numericPropKeys=Object.keys(propArrayTypes).filter((k=>propArrayTypes[k]!==Array));return function fillArrays(features,geometryInfo,options){const{pointPositionsCount:pointPositionsCount,pointFeaturesCount:pointFeaturesCount,linePositionsCount:linePositionsCount,linePathsCount:linePathsCount,lineFeaturesCount:lineFeaturesCount,polygonPositionsCount:polygonPositionsCount,polygonObjectsCount:polygonObjectsCount,polygonRingsCount:polygonRingsCount,polygonFeaturesCount:polygonFeaturesCount,propArrayTypes:propArrayTypes,coordLength:coordLength}=geometryInfo,{numericPropKeys:numericPropKeys=[],PositionDataType:PositionDataType=Float32Array,triangulate:triangulate=!0}=options,hasGlobalId=features[0]&&"id"in features[0],GlobalFeatureIdsDataType=features.length>65535?Uint32Array:Uint16Array,points={type:"Point",positions:new PositionDataType(pointPositionsCount*coordLength),globalFeatureIds:new GlobalFeatureIdsDataType(pointPositionsCount),featureIds:pointFeaturesCount>65535?new Uint32Array(pointPositionsCount):new Uint16Array(pointPositionsCount),numericProps:{},properties:[],fields:[]},lines={type:"LineString",pathIndices:linePositionsCount>65535?new Uint32Array(linePathsCount+1):new Uint16Array(linePathsCount+1),positions:new PositionDataType(linePositionsCount*coordLength),globalFeatureIds:new GlobalFeatureIdsDataType(linePositionsCount),featureIds:lineFeaturesCount>65535?new Uint32Array(linePositionsCount):new Uint16Array(linePositionsCount),numericProps:{},properties:[],fields:[]},polygons={type:"Polygon",polygonIndices:polygonPositionsCount>65535?new Uint32Array(polygonObjectsCount+1):new Uint16Array(polygonObjectsCount+1),primitivePolygonIndices:polygonPositionsCount>65535?new Uint32Array(polygonRingsCount+1):new Uint16Array(polygonRingsCount+1),positions:new PositionDataType(polygonPositionsCount*coordLength),globalFeatureIds:new GlobalFeatureIdsDataType(polygonPositionsCount),featureIds:polygonFeaturesCount>65535?new Uint32Array(polygonPositionsCount):new Uint16Array(polygonPositionsCount),numericProps:{},properties:[],fields:[]};triangulate&&(polygons.triangles=[]);for(const object of[points,lines,polygons])for(const propName of numericPropKeys){const T=propArrayTypes[propName];object.numericProps[propName]=new T(object.positions.length/coordLength)}lines.pathIndices[linePathsCount]=linePositionsCount,polygons.polygonIndices[polygonObjectsCount]=polygonPositionsCount,polygons.primitivePolygonIndices[polygonRingsCount]=polygonPositionsCount;const indexMap={pointPosition:0,pointFeature:0,linePosition:0,linePath:0,lineFeature:0,polygonPosition:0,polygonObject:0,polygonRing:0,polygonFeature:0,feature:0};for(const feature of features){const geometry=feature.geometry,properties=feature.properties||{};switch(geometry.type){case"Point":handlePoint(geometry,points,indexMap,coordLength,properties),points.properties.push(keepStringProperties(properties,numericPropKeys)),hasGlobalId&&points.fields.push({id:feature.id}),indexMap.pointFeature++;break;case"LineString":handleLineString(geometry,lines,indexMap,coordLength,properties),lines.properties.push(keepStringProperties(properties,numericPropKeys)),hasGlobalId&&lines.fields.push({id:feature.id}),indexMap.lineFeature++;break;case"Polygon":handlePolygon(geometry,polygons,indexMap,coordLength,properties),polygons.properties.push(keepStringProperties(properties,numericPropKeys)),hasGlobalId&&polygons.fields.push({id:feature.id}),indexMap.polygonFeature++;break;default:throw new Error("Invalid geometry type")}indexMap.feature++}return function makeAccessorObjects(points,lines,polygons,coordLength){const binaryFeatures={points:{...points,positions:{value:points.positions,size:coordLength},globalFeatureIds:{value:points.globalFeatureIds,size:1},featureIds:{value:points.featureIds,size:1},numericProps:wrapProps(points.numericProps,1)},lines:{...lines,positions:{value:lines.positions,size:coordLength},pathIndices:{value:lines.pathIndices,size:1},globalFeatureIds:{value:lines.globalFeatureIds,size:1},featureIds:{value:lines.featureIds,size:1},numericProps:wrapProps(lines.numericProps,1)},polygons:{...polygons,positions:{value:polygons.positions,size:coordLength},polygonIndices:{value:polygons.polygonIndices,size:1},primitivePolygonIndices:{value:polygons.primitivePolygonIndices,size:1},globalFeatureIds:{value:polygons.globalFeatureIds,size:1},featureIds:{value:polygons.featureIds,size:1},numericProps:wrapProps(polygons.numericProps,1)}};polygons.triangles&&(binaryFeatures.polygons.triangles={value:new Uint32Array(polygons.triangles),size:1});return binaryFeatures}(points,lines,polygons,coordLength)}(features,{propArrayTypes:propArrayTypes,...geometryInfo},{numericPropKeys:options&&options.numericPropKeys||numericPropKeys,PositionDataType:options?options.PositionDataType:Float32Array,triangulate:!options||options.triangulate})}function extractNumericPropTypes(features){const propArrayTypes={};for(const feature of features)if(feature.properties)for(const key in feature.properties){const val=feature.properties[key];propArrayTypes[key]=deduceArrayType(val,propArrayTypes[key])}return propArrayTypes}function handlePoint(geometry,points,indexMap,coordLength,properties){points.positions.set(geometry.data,indexMap.pointPosition*coordLength);const nPositions=geometry.data.length/coordLength;fillNumericProperties(points,properties,indexMap.pointPosition,nPositions),points.globalFeatureIds.fill(indexMap.feature,indexMap.pointPosition,indexMap.pointPosition+nPositions),points.featureIds.fill(indexMap.pointFeature,indexMap.pointPosition,indexMap.pointPosition+nPositions),indexMap.pointPosition+=nPositions}function handleLineString(geometry,lines,indexMap,coordLength,properties){lines.positions.set(geometry.data,indexMap.linePosition*coordLength);const nPositions=geometry.data.length/coordLength;fillNumericProperties(lines,properties,indexMap.linePosition,nPositions),lines.globalFeatureIds.fill(indexMap.feature,indexMap.linePosition,indexMap.linePosition+nPositions),lines.featureIds.fill(indexMap.lineFeature,indexMap.linePosition,indexMap.linePosition+nPositions);for(let i=0,il=geometry.indices.length;i(n-offset)/coordLength)),triangles=(0,polygon_dist_esm.OT)(polygonPositions,holes,coordLength,areas);for(let t=0,tl=triangles.length;t>3}if(length--,1===cmd||2===cmd)x+=pbf.readSVarint(),y+=pbf.readSVarint(),1===cmd&&(line&&lines.push(line),line=[]),line&&line.push([x,y]);else{if(7!==cmd)throw new Error("unknown command ".concat(cmd));line&&line.push(line[0].slice())}}return line&&lines.push(line),lines}bbox(){const pbf=this._pbf;pbf.pos=this._geometry;const end=pbf.readVarint()+pbf.pos;let cmd=1,length=0,x=0,y=0,x1=1/0,x2=-1/0,y1=1/0,y2=-1/0;for(;pbf.pos>3}if(length--,1===cmd||2===cmd)x+=pbf.readSVarint(),y+=pbf.readSVarint(),xx2&&(x2=x),yy2&&(y2=y);else if(7!==cmd)throw new Error("unknown command ".concat(cmd))}return[x1,y1,x2,y2]}_toGeoJSON(transform){let i,j,coords=this.loadGeometry(),type=VectorTileFeature.types[this.type];switch(this.type){case 1:const points=[];for(i=0;i=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[i];const end=this._pbf.readVarint()+this._pbf.pos;return new VectorTileFeature(this._pbf,end,this.extent,this._keys,this._values)}}function readLayer(tag,layer,pbf){layer&&pbf&&(15===tag?layer.version=pbf.readVarint():1===tag?layer.name=pbf.readString():5===tag?layer.extent=pbf.readVarint():2===tag?layer._features.push(pbf.pos):3===tag?layer._keys.push(pbf.readString()):4===tag&&layer._values.push(function readValueMessage(pbf){let value=null;const end=pbf.readVarint()+pbf.pos;for(;pbf.pos>3;value=1===tag?pbf.readString():2===tag?pbf.readFloat():3===tag?pbf.readDouble():4===tag?pbf.readVarint64():5===tag?pbf.readVarint():6===tag?pbf.readSVarint():7===tag?pbf.readBoolean():null}return value}(pbf)))}class VectorTile{constructor(pbf,end){(0,defineProperty.Z)(this,"layers",void 0),this.layers=pbf.readFields(readTile,{},end)}}function readTile(tag,layers,pbf){if(3===tag&&pbf){const layer=new VectorTileLayer(pbf,pbf.readVarint()+pbf.pos);layer.length&&layers&&(layers[layer.name]=layer)}}function binary_util_functions_classifyRings(geom){const len=geom.indices.length;if(len<=1)return{type:"Polygon",data:geom.data,areas:[[(0,polygon_dist_esm.ap)(geom.data)]],indices:[geom.indices]};const areas=[],polygons=[];let ccw,ringAreas=[],polygon=[],offset=0;for(let endIndex,startIndex,i=0;i>3),vector_tile_feature_length--,1===cmd||2===cmd)x+=pbf.readSVarint(),y+=pbf.readSVarint(),1===cmd&&indices.push(i),data.push(x,y),i+=2;else{if(7!==cmd)throw new Error("unknown command ".concat(cmd));if(i>0){const start=indices[indices.length-1];data.push(data[start],data[start+1]),i+=2}}return{data:data,indices:indices}}_toBinaryCoordinates(transform){const geom=this.loadGeometry();let geometry;transform(geom.data,this);switch(this.type){case 1:this._geometryInfo.pointFeaturesCount++,this._geometryInfo.pointPositionsCount+=geom.indices.length,geometry={type:"Point",...geom};break;case 2:this._geometryInfo.lineFeaturesCount++,this._geometryInfo.linePathsCount+=geom.indices.length,this._geometryInfo.linePositionsCount+=geom.data.length/2,geometry={type:"LineString",...geom};break;case 3:geometry=binary_util_functions_classifyRings(geom),this._geometryInfo.polygonFeaturesCount++,this._geometryInfo.polygonObjectsCount+=geometry.indices.length;for(const indices of geometry.indices)this._geometryInfo.polygonRingsCount+=indices.length;this._geometryInfo.polygonPositionsCount+=geometry.data.length/2;break;default:throw new Error("Invalid geometry type: ".concat(this.type))}const result={type:"Feature",geometry:geometry,properties:this.properties};return null!==this.id&&(result.id=this.id),result}toBinaryCoordinates(options){if("function"==typeof options)return this._toBinaryCoordinates(options);const{x:x,y:y,z:z}=options,size=this.extent*Math.pow(2,z),x0=this.extent*x,y0=this.extent*y;return this._toBinaryCoordinates((data=>function project(data,x0,y0,size){for(let j=0,jl=data.length;j=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[i];const end=this._pbf.readVarint()+this._pbf.pos;return new vector_tile_feature_VectorTileFeature(this._pbf,end,this.extent,this._keys,this._values,geometryInfo)}}function vector_tile_layer_readLayer(tag,layer,pbf){layer&&pbf&&(15===tag?layer.version=pbf.readVarint():1===tag?layer.name=pbf.readString():5===tag?layer.extent=pbf.readVarint():2===tag?layer._features.push(pbf.pos):3===tag?layer._keys.push(pbf.readString()):4===tag&&layer._values.push(function vector_tile_layer_readValueMessage(pbf){let value=null;const end=pbf.readVarint()+pbf.pos;for(;pbf.pos>3;value=1===tag?pbf.readString():2===tag?pbf.readFloat():3===tag?pbf.readDouble():4===tag?pbf.readVarint64():5===tag?pbf.readVarint():6===tag?pbf.readSVarint():7===tag?pbf.readBoolean():null}return value}(pbf)))}class vector_tile_VectorTile{constructor(pbf,end){(0,defineProperty.Z)(this,"layers",void 0),this.layers=pbf.readFields(vector_tile_readTile,{},end)}}function vector_tile_readTile(tag,layers,pbf){if(3===tag&&pbf){const layer=new vector_tile_layer_VectorTileLayer(pbf,pbf.readVarint()+pbf.pos);layer.length&&layers&&(layers[layer.name]=layer)}}function parseMVT(arrayBuffer,options){var _options$gis,_options$mvt;const mvtOptions=function normalizeOptions(options){var _options$mvt2;if(null==options||!options.mvt)throw new Error("mvt options required");const wgs84Coordinates="wgs84"===(null===(_options$mvt2=options.mvt)||void 0===_options$mvt2?void 0:_options$mvt2.coordinates),{tileIndex:tileIndex}=options.mvt,hasTileIndex=tileIndex&&Number.isFinite(tileIndex.x)&&Number.isFinite(tileIndex.y)&&Number.isFinite(tileIndex.z);if(wgs84Coordinates&&!hasTileIndex)throw new Error("MVT Loader: WGS84 coordinates need tileIndex property");return options.mvt}(options),shape=(null==options||null===(_options$gis=options.gis)||void 0===_options$gis?void 0:_options$gis.format)||(null==options||null===(_options$mvt=options.mvt)||void 0===_options$mvt?void 0:_options$mvt.shape);switch(shape){case"columnar-table":return{shape:"columnar-table",data:parseToBinary(arrayBuffer,mvtOptions)};case"geojson-row-table":return{shape:"geojson-row-table",data:parseToGeojson(arrayBuffer,mvtOptions)};case"geojson":return parseToGeojson(arrayBuffer,mvtOptions);case"binary-geometry":case"binary":return parseToBinary(arrayBuffer,mvtOptions);default:throw new Error(shape)}}function parseToBinary(arrayBuffer,options){const[flatGeoJsonFeatures,geometryInfo]=function parseToFlatGeoJson(arrayBuffer,options){const features=[],geometryInfo={coordLength:2,pointPositionsCount:0,pointFeaturesCount:0,linePositionsCount:0,linePathsCount:0,lineFeaturesCount:0,polygonPositionsCount:0,polygonObjectsCount:0,polygonRingsCount:0,polygonFeaturesCount:0};if(arrayBuffer.byteLength<=0)return[features,geometryInfo];const tile=new vector_tile_VectorTile(new(pbf_default())(arrayBuffer)),selectedLayers=options&&Array.isArray(options.layers)?options.layers:Object.keys(tile.layers);return selectedLayers.forEach((layerName=>{const vectorTileLayer=tile.layers[layerName];if(vectorTileLayer)for(let i=0;i{const vectorTileLayer=tile.layers[layerName];if(vectorTileLayer)for(let i=0;i1)return{type:"MultiPoint",coordinates:coordinates};return{type:"Point",coordinates:coordinates[0]}}(data,startIndex,endIndex);case"LineString":return function lineStringToGeoJson(data){let startIndex=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1/0,endIndex=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;const{positions:positions}=data,pathIndices=data.pathIndices.value.filter((x=>x>=startIndex&&x<=endIndex));if(!(pathIndices.length>2)){return{type:"LineString",coordinates:ringToGeoJson(positions,pathIndices[0],pathIndices[1])}}const coordinates=[];for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:0;const properties=Object.assign({},data.properties[data.featureIds.value[startIndex]]);for(const key in data.numericProps)properties[key]=data.numericProps[key].value[startIndex];return properties}(data,startIndex,endIndex),fields=function parseFields(data){let startIndex=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return data.fields&&data.fields[data.featureIds.value[startIndex]]}(data,startIndex,endIndex);return{type:"Feature",geometry:geometry,properties:properties,...fields}}function polygonToGeoJson(data){let startIndex=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1/0,endIndex=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;const{positions:positions}=data,polygonIndices=data.polygonIndices.value.filter((x=>x>=startIndex&&x<=endIndex)),primitivePolygonIndices=data.primitivePolygonIndices.value.filter((x=>x>=startIndex&&x<=endIndex));if(!(polygonIndices.length>2)){const coordinates=[];for(let i=0;iLineString(lineString,bbox,viewport)))},Polygon:Polygon,MultiPolygon:function MultiPolygon(multiPolygon,bbox,viewport){return multiPolygon.map((polygon=>Polygon(polygon,bbox,viewport)))}};function Point([pointX,pointY],[nw,se],viewport){const x=(0,common.t7)(nw[0],se[0],pointX),y=(0,common.t7)(nw[1],se[1],pointY);return viewport.unprojectFlat([x,y])}function getPoints(geometry,bbox,viewport){return geometry.map((g=>Point(g,bbox,viewport)))}function LineString(line,bbox,viewport){return getPoints(line,bbox,viewport)}function Polygon(polygon,bbox,viewport){return polygon.map((polygonRing=>getPoints(polygonRing,bbox,viewport)))}const GEOM_TYPES=["points","lines","polygons"];function findIndexByType(geomData,uniqueIdProperty,featureId,layerName){const featureIds=geomData.featureIds.value;if(!featureIds.length)return-1;let startFeatureIndex=0,endFeatureIndex=featureIds[featureIds.length-1]+1;if(layerName){const layerRange=function getLayerRange(geomData,layerName){if(!geomData.__layers){const layerNames={},{properties:properties}=geomData;for(let i=0;ix===featureId&&featureIds[i]>=startFeatureIndex&&featureIds[i]=0?geomData.globalFeatureIds.value[vertexIndex]:-1}return uniqueIdProperty?featureIndex=findIndex(geomData.properties,(elem=>elem[uniqueIdProperty]===featureId),startFeatureIndex,endFeatureIndex):geomData.fields&&(featureIndex=findIndex(geomData.fields,(elem=>elem.id===featureId),startFeatureIndex,endFeatureIndex)),featureIndex>=0?function getGlobalFeatureId(geomData,featureIndex){if(!geomData.__ids){const result=[],featureIds=geomData.featureIds.value,globalFeatureIds=geomData.globalFeatureIds.value;for(let i=0;iminZoom&&(opts.minZoom=tileJSON.minzoom),Number.isFinite(tileJSON.maxzoom)&&(!Number.isFinite(maxZoom)||tileJSON.maxzoom{const isMatchingId=getFeatureUniqueId(feature,uniqueIdProperty)===featureIdToHighlight,isMatchingLayer=isHighlighted||getFeatureLayerName(feature)===hoveredFeatureLayerName;return isMatchingId&&isMatchingLayer})):data&&binary?function findIndexBinary(data,uniqueIdProperty,featureId,layerName){for(const gt of GEOM_TYPES){const index=data[gt]&&findIndexByType(data[gt],uniqueIdProperty,featureId,layerName);if(index>=0)return index}return-1}(data,uniqueIdProperty,featureIdToHighlight,isHighlighted?"":hoveredFeatureLayerName):-1}_pickObjects(maxObjects){const{deck:deck,viewport:viewport}=this.context,width=viewport.width,height=viewport.height,x=viewport.x,y=viewport.y,layerIds=[this.id];return deck.pickObjects({x:x,y:y,width:width,height:height,layerIds:layerIds,maxObjects:maxObjects})}getRenderedFeatures(maxFeatures=null){const features=this._pickObjects(maxFeatures),featureCache=new Set,renderedFeatures=[];for(const f of features){const featureId=getFeatureUniqueId(f.object,this.props.uniqueIdProperty);void 0===featureId?renderedFeatures.push(f.object):featureCache.has(featureId)||(featureCache.add(featureId),renderedFeatures.push(f.object))}return renderedFeatures}_setWGS84PropertyForTiles(){this.state.tileset.selectedTiles.forEach((tile=>{tile.hasOwnProperty("dataInWGS84")||Object.defineProperty(tile,"dataInWGS84",{get:()=>{if(!tile.content)return null;if(this.state.binary&&Array.isArray(tile.content)&&!tile.content.length)return[];const{bbox:bbox}=tile;if(void 0===tile._contentWGS84&&function isGeoBoundingBox(v){return Number.isFinite(v.west)&&Number.isFinite(v.north)&&Number.isFinite(v.east)&&Number.isFinite(v.south)}(bbox)){const content=this.state.binary?binaryToGeojson(tile.content):tile.content;tile._contentWGS84=content.map((feature=>transformTileCoordsToWGS84(feature,bbox,this.context.viewport)))}return tile._contentWGS84}})}))}}function getFeatureUniqueId(feature,uniqueIdProperty){return feature.properties&&uniqueIdProperty?feature.properties[uniqueIdProperty]:"id"in feature?feature.id:void 0}function getFeatureLayerName(feature){var _feature$properties;return(null===(_feature$properties=feature.properties)||void 0===_feature$properties?void 0:_feature$properties.layerName)||null}function isFeatureIdDefined(value){return null!=value&&""!==value}function transformTileCoordsToWGS84(object,bbox,viewport){const feature={...object,geometry:{type:object.geometry.type}};return Object.defineProperty(feature.geometry,"coordinates",{get:()=>{const wgs84Geom=function transform(geometry,bbox,viewport){const projectedBbox=[viewport.projectFlat([bbox.west,bbox.north]),viewport.projectFlat([bbox.east,bbox.south])];return{...geometry,coordinates:availableTransformations[geometry.type](geometry.coordinates,projectedBbox,viewport)}}(object.geometry,bbox,viewport);return wgs84Geom.coordinates}}),feature}(0,defineProperty.Z)(MVTLayer,"layerName","MVTLayer"),(0,defineProperty.Z)(MVTLayer,"defaultProps",mvt_layer_defaultProps);const BASE32_CODES_DICT={};for(let i=0;i<32;i++)BASE32_CODES_DICT["0123456789bcdefghjkmnpqrstuvwxyz".charAt(i)]=i;const MIN_LAT=-90,MAX_LAT=90,MIN_LON=-180,MAX_LON=180;function getGeohashPolygon(geohash){const[s,w,n,e]=function getGeohashBounds(geohash){let mid,isLon=!0,maxLat=MAX_LAT,minLat=MIN_LAT,maxLon=MAX_LON,minLon=MIN_LON,hashValue=0;for(let i=0,l=geohash.length;i=0;bits--){const bit=hashValue>>bits&1;isLon?(mid=(maxLon+minLon)/2,1===bit?minLon=mid:maxLon=mid):(mid=(maxLat+minLat)/2,1===bit?minLat=mid:maxLat=mid),isLon=!isLon}}return[minLat,minLon,maxLat,maxLon]}(geohash);return[e,n,e,s,w,s,w,n,e,n]}class GeohashLayer extends GeoCellLayer{indexToBounds(){const{data:data,getGeohash:getGeohash}=this.props;return{data:data,_normalize:!1,positionFormat:"XY",getPolygon:(x,objectInfo)=>getGeohashPolygon(getGeohash(x,objectInfo))}}}(0,defineProperty.Z)(GeohashLayer,"layerName","GeohashLayer"),(0,defineProperty.Z)(GeohashLayer,"defaultProps",{getGeohash:{type:"accessor",value:d=>d.geohash}})},"./node_modules/@deck.gl/json/dist/esm/helpers/parse-expression-string.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function get(container,compositeKey){const keyList=function getKeys(compositeKey){if("string"==typeof compositeKey){let keyList=keyMap[compositeKey];return keyList||(keyList=compositeKey.split("."),keyMap[compositeKey]=keyList),keyList}return Array.isArray(compositeKey)?compositeKey:[compositeKey]}(compositeKey);let value=container;for(const key of keyList)value=isObject(value)?value[key]:void 0;return value}function isObject(value){return null!==value&&"object"==typeof value}__webpack_require__.d(__webpack_exports__,{Z:function(){return parseExpressionString}});const keyMap={};var expression_eval=__webpack_require__("./node_modules/expression-eval/index.js"),expression_eval_default=__webpack_require__.n(expression_eval);const cachedExpressionMap={"-":object=>object};function parseExpressionString(propValue,configuration){if(propValue in cachedExpressionMap)return cachedExpressionMap[propValue];let func;const ast=expression_eval_default().parse(propValue);return ast.right||ast.left||"Identifier"!==ast.type?(traverse(ast,(node=>{if("CallExpression"===node.type)throw new Error("Function calls not allowed in JSON expressions")})),func=row=>expression_eval_default().eval(ast,row)):func=row=>get(row,propValue),cachedExpressionMap[propValue]=func,func}function traverse(node,visitor){if(Array.isArray(node))node.forEach((element=>traverse(element,visitor)));else if(node&&"object"==typeof node){node.type&&visitor(node);for(const key in node)traverse(node[key],visitor)}}},"./node_modules/@deck.gl/json/dist/esm/json-configuration.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return JSONConfiguration}});var _helpers_parse_expression_string__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/helpers/parse-expression-string.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/utils/assert.js"),_syntactic_sugar__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/syntactic-sugar.js");const isObject=value=>value&&"object"==typeof value;class JSONConfiguration{constructor(...configurations){this.typeKey=_syntactic_sugar__WEBPACK_IMPORTED_MODULE_0__.YJ,this.functionKey=_syntactic_sugar__WEBPACK_IMPORTED_MODULE_0__.Bu,this.log=console,this.classes={},this.reactComponents={},this.enumerations={},this.constants={},this.functions={},this.React=null,this.convertFunction=_helpers_parse_expression_string__WEBPACK_IMPORTED_MODULE_1__.Z,this.preProcessClassProps=(Class,props)=>props,this.postProcessConvertedJson=json=>json;for(const configuration of configurations)this.merge(configuration)}merge(configuration){for(const key in configuration)switch(key){case"layers":case"views":Object.assign(this.classes,configuration[key]);break;default:if(key in this){const value=configuration[key];this[key]=isObject(this[key])?Object.assign(this[key],value):value}}}validate(configuration){return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(!this.typeKey||"string"==typeof this.typeKey),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(isObject(this.classes)),!0}}},"./node_modules/@deck.gl/json/dist/esm/json-converter.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return JSONConverter}});var assert=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/utils/assert.js"),json_configuration=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/json-configuration.js"),parse_expression_string=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/helpers/parse-expression-string.js"),syntactic_sugar=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/syntactic-sugar.js");function trimFunctionIdentifier(value){return value.replace(syntactic_sugar.QT,"")}function convertFunctions(props,configuration){const replacedProps={};for(const propName in props){let propValue=props[propName];"string"==typeof(value=propValue)&&value.startsWith(syntactic_sugar.QT)&&(propValue=trimFunctionIdentifier(propValue),propValue=(0,parse_expression_string.Z)(propValue,configuration)),replacedProps[propName]=propValue}var value;return replacedProps}function instantiateClass(type,props,configuration){const Class=configuration.classes[type],Component=configuration.reactComponents[type];if(!Class&&!Component){const{log:log}=configuration;if(log){const stringProps=JSON.stringify(props,null,0).slice(0,40);log.warn("JSON converter: No registered class of type ".concat(type,"(").concat(stringProps,"...) "))}return null}return Class?function instantiateJavaScriptClass(Class,props,configuration){configuration.preProcessClassProps&&(props=configuration.preProcessClassProps(Class,props,configuration));return props=convertFunctions(props,configuration),new Class(props)}(Class,props,configuration):function instantiateReactComponent(Component,props,configuration){const{React:React}=configuration,{children:children=[]}=props;delete props.children,configuration.preProcessClassProps&&(props=configuration.preProcessClassProps(Component,props,configuration));return props=convertFunctions(props,configuration),React.createElement(Component,props,children)}(Component,props,configuration)}const isObject=value=>value&&"object"==typeof value;class JSONConverter{constructor(props){this.log=console,this.configuration={},this.onJSONChange=()=>{},this.json=null,this.convertedJson=null,this.setProps(props)}finalize(){}setProps(props){"configuration"in props&&(this.configuration=props.configuration instanceof json_configuration.Z?props.configuration:new json_configuration.Z(props.configuration)),"onJSONChange"in props&&(this.onJSONChange=props.onJSONChange)}mergeConfiguration(config){this.configuration.merge(config)}convert(json){if(!json||json===this.json)return this.convertedJson;this.json=json;const parsedJSON=function parseJSON(json){return"string"==typeof json?JSON.parse(json):json}(json);let convertedJson=function convertJSON(json,configuration){return configuration=new json_configuration.Z(configuration),convertJSONRecursively(json,"",configuration)}(parsedJSON,this.configuration);return convertedJson=this.configuration.postProcessConvertedJson(convertedJson),this.convertedJson=convertedJson,convertedJson}convertJson(json){return this.convert(json)}}function convertJSONRecursively(json,key,configuration){return Array.isArray(json)?json.map(((element,i)=>convertJSONRecursively(element,String(i),configuration))):function isClassInstance(json,configuration){const{typeKey:typeKey}=configuration,isClass=isObject(json)&&Boolean(json[typeKey]);return isClass}(json,configuration)?function convertClassInstance(json,configuration){const{typeKey:typeKey}=configuration,type=json[typeKey];let props={...json};return delete props[typeKey],props=convertPlainObject(props,configuration),instantiateClass(type,props,configuration)}(json,configuration):isObject(json)?syntactic_sugar.Bu in json?function convertFunctionObject(json,configuration){const{functionKey:functionKey}=configuration,targetFunction=json[functionKey];let props={...json};return delete props[functionKey],props=convertPlainObject(props,configuration),function executeFunction(targetFunction,props,configuration){const matchedFunction=configuration.functions[targetFunction];if(!matchedFunction){const{log:log}=configuration;if(log){const stringProps=JSON.stringify(props,null,0).slice(0,40);log.warn("JSON converter: No registered function ".concat(targetFunction,"(").concat(stringProps,"...) "))}return null}return matchedFunction(props)}(targetFunction,props,configuration)}(json,configuration):convertPlainObject(json,configuration):"string"==typeof json?function convertString(string,key,configuration){if(string.startsWith(syntactic_sugar.QT)&&configuration.convertFunction)return string=string.replace(syntactic_sugar.QT,""),configuration.convertFunction(string,configuration);if(string.startsWith(syntactic_sugar.tZ)){if(string=string.replace(syntactic_sugar.tZ,""),configuration.constants[string])return configuration.constants[string];const[enumVarName,enumValName]=string.split(".");return configuration.enumerations[enumVarName][enumValName]}return string}(json,0,configuration):json}function convertPlainObject(json,configuration){(0,assert.Z)(isObject(json));const result={};for(const key in json){const value=json[key];result[key]=convertJSONRecursively(value,0,configuration)}return result}},"./node_modules/@deck.gl/json/dist/esm/syntactic-sugar.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Bu:function(){return FUNCTION_KEY},QT:function(){return FUNCTION_IDENTIFIER},YJ:function(){return TYPE_KEY},tZ:function(){return CONSTANT_IDENTIFIER}});const FUNCTION_IDENTIFIER="@@=",CONSTANT_IDENTIFIER="@@#",TYPE_KEY="@@type",FUNCTION_KEY="@@function"},"./node_modules/@deck.gl/json/dist/esm/utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message=""){if(!condition)throw new Error("JSON conversion error ".concat(message))}__webpack_require__.d(__webpack_exports__,{Z:function(){return assert}})},"./node_modules/@deck.gl/layers/dist/esm/arc-layer/arc-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ArcLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lib_model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const DEFAULT_COLOR=[0,0,0,255],defaultProps={getSourcePosition:{type:"accessor",value:x=>x.sourcePosition},getTargetPosition:{type:"accessor",value:x=>x.targetPosition},getSourceColor:{type:"accessor",value:DEFAULT_COLOR},getTargetColor:{type:"accessor",value:DEFAULT_COLOR},getWidth:{type:"accessor",value:1},getHeight:{type:"accessor",value:1},getTilt:{type:"accessor",value:0},greatCircle:!1,numSegments:{type:"number",value:50,min:1},widthUnits:"pixels",widthScale:{type:"number",value:1,min:0},widthMinPixels:{type:"number",value:0,min:0},widthMaxPixels:{type:"number",value:Number.MAX_SAFE_INTEGER,min:0}};class ArcLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getBounds(){var _this$getAttributeMan;return null===(_this$getAttributeMan=this.getAttributeManager())||void 0===_this$getAttributeMan?void 0:_this$getAttributeMan.getBounds(["instanceSourcePositions","instanceTargetPositions"])}getShaders(){return super.getShaders({vs:"#define SHADER_NAME arc-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec4 instanceSourceColors;\nattribute vec4 instanceTargetColors;\nattribute vec3 instanceSourcePositions;\nattribute vec3 instanceSourcePositions64Low;\nattribute vec3 instanceTargetPositions;\nattribute vec3 instanceTargetPositions64Low;\nattribute vec3 instancePickingColors;\nattribute float instanceWidths;\nattribute float instanceHeights;\nattribute float instanceTilts;\n\nuniform bool greatCircle;\nuniform bool useShortestPath;\nuniform float numSegments;\nuniform float opacity;\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform int widthUnits;\n\nvarying vec4 vColor;\nvarying vec2 uv;\nvarying float isValid;\n\nfloat paraboloid(float distance, float sourceZ, float targetZ, float ratio) {\n\n float deltaZ = targetZ - sourceZ;\n float dh = distance * instanceHeights;\n if (dh == 0.0) {\n return sourceZ + deltaZ * ratio;\n }\n float unitZ = deltaZ / dh;\n float p2 = unitZ * unitZ + 1.0;\n float dir = step(deltaZ, 0.0);\n float z0 = mix(sourceZ, targetZ, dir);\n float r = mix(ratio, 1.0 - ratio, dir);\n return sqrt(r * (p2 - r)) * dh + z0;\n}\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction, float width) {\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n return dir_screenspace * offset_direction * width / 2.0;\n}\n\nfloat getSegmentRatio(float index) {\n return smoothstep(0.0, 1.0, index / (numSegments - 1.0));\n}\n\nvec3 interpolateFlat(vec3 source, vec3 target, float segmentRatio) {\n float distance = length(source.xy - target.xy);\n float z = paraboloid(distance, source.z, target.z, segmentRatio);\n\n float tiltAngle = radians(instanceTilts);\n vec2 tiltDirection = normalize(target.xy - source.xy);\n vec2 tilt = vec2(-tiltDirection.y, tiltDirection.x) * z * sin(tiltAngle);\n\n return vec3(\n mix(source.xy, target.xy, segmentRatio) + tilt,\n z * cos(tiltAngle)\n );\n}\nfloat getAngularDist (vec2 source, vec2 target) {\n vec2 sourceRadians = radians(source);\n vec2 targetRadians = radians(target);\n vec2 sin_half_delta = sin((sourceRadians - targetRadians) / 2.0);\n vec2 shd_sq = sin_half_delta * sin_half_delta;\n\n float a = shd_sq.y + cos(sourceRadians.y) * cos(targetRadians.y) * shd_sq.x;\n return 2.0 * asin(sqrt(a));\n}\n\nvec3 interpolateGreatCircle(vec3 source, vec3 target, vec3 source3D, vec3 target3D, float angularDist, float t) {\n vec2 lngLat;\n if(abs(angularDist - PI) < 0.001) {\n lngLat = (1.0 - t) * source.xy + t * target.xy;\n } else {\n float a = sin((1.0 - t) * angularDist);\n float b = sin(t * angularDist);\n vec3 p = source3D.yxz * a + target3D.yxz * b;\n lngLat = degrees(vec2(atan(p.y, -p.x), atan(p.z, length(p.xy))));\n }\n\n float z = paraboloid(angularDist * EARTH_RADIUS, source.z, target.z, t);\n\n return vec3(lngLat, z);\n}\n\nvoid main(void) {\n geometry.worldPosition = instanceSourcePositions;\n geometry.worldPositionAlt = instanceTargetPositions;\n\n float segmentIndex = positions.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n float prevSegmentRatio = getSegmentRatio(max(0.0, segmentIndex - 1.0));\n float nextSegmentRatio = getSegmentRatio(min(numSegments - 1.0, segmentIndex + 1.0));\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n isValid = 1.0;\n\n uv = vec2(segmentRatio, positions.y);\n geometry.uv = uv;\n geometry.pickingColor = instancePickingColors;\n\n vec4 curr;\n vec4 next;\n vec3 source;\n vec3 target;\n\n if ((greatCircle || project_uProjectionMode == PROJECTION_MODE_GLOBE) && project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n source = project_globe_(vec3(instanceSourcePositions.xy, 0.0));\n target = project_globe_(vec3(instanceTargetPositions.xy, 0.0));\n float angularDist = getAngularDist(instanceSourcePositions.xy, instanceTargetPositions.xy);\n\n vec3 prevPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, prevSegmentRatio);\n vec3 currPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, segmentRatio);\n vec3 nextPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, nextSegmentRatio);\n\n if (abs(currPos.x - prevPos.x) > 180.0) {\n indexDir = -1.0;\n isValid = 0.0;\n } else if (abs(currPos.x - nextPos.x) > 180.0) {\n indexDir = 1.0;\n isValid = 0.0;\n }\n nextPos = indexDir < 0.0 ? prevPos : nextPos;\n nextSegmentRatio = indexDir < 0.0 ? prevSegmentRatio : nextSegmentRatio;\n\n if (isValid == 0.0) {\n nextPos.x += nextPos.x > 0.0 ? -360.0 : 360.0;\n float t = ((currPos.x > 0.0 ? 180.0 : -180.0) - currPos.x) / (nextPos.x - currPos.x);\n currPos = mix(currPos, nextPos, t);\n segmentRatio = mix(segmentRatio, nextSegmentRatio, t);\n }\n\n vec3 currPos64Low = mix(instanceSourcePositions64Low, instanceTargetPositions64Low, segmentRatio);\n vec3 nextPos64Low = mix(instanceSourcePositions64Low, instanceTargetPositions64Low, nextSegmentRatio);\n \n curr = project_position_to_clipspace(currPos, currPos64Low, vec3(0.0), geometry.position);\n next = project_position_to_clipspace(nextPos, nextPos64Low, vec3(0.0));\n \n } else {\n vec3 source_world = instanceSourcePositions;\n vec3 target_world = instanceTargetPositions;\n if (useShortestPath) {\n source_world.x = mod(source_world.x + 180., 360.0) - 180.;\n target_world.x = mod(target_world.x + 180., 360.0) - 180.;\n\n float deltaLng = target_world.x - source_world.x;\n if (deltaLng > 180.) target_world.x -= 360.;\n if (deltaLng < -180.) source_world.x -= 360.;\n }\n source = project_position(source_world, instanceSourcePositions64Low);\n target = project_position(target_world, instanceTargetPositions64Low);\n float antiMeridianX = 0.0;\n\n if (useShortestPath) {\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {\n antiMeridianX = -(project_uCoordinateOrigin.x + 180.) / 360. * TILE_SIZE;\n }\n float thresholdRatio = (antiMeridianX - source.x) / (target.x - source.x);\n\n if (prevSegmentRatio <= thresholdRatio && nextSegmentRatio > thresholdRatio) {\n isValid = 0.0;\n indexDir = sign(segmentRatio - thresholdRatio);\n segmentRatio = thresholdRatio;\n }\n }\n\n nextSegmentRatio = indexDir < 0.0 ? prevSegmentRatio : nextSegmentRatio;\n vec3 currPos = interpolateFlat(source, target, segmentRatio);\n vec3 nextPos = interpolateFlat(source, target, nextSegmentRatio);\n\n if (useShortestPath) {\n if (nextPos.x < antiMeridianX) {\n currPos.x += TILE_SIZE;\n nextPos.x += TILE_SIZE;\n }\n }\n\n curr = project_common_position_to_clipspace(vec4(currPos, 1.0));\n next = project_common_position_to_clipspace(vec4(nextPos, 1.0));\n geometry.position = vec4(currPos, 1.0);\n }\n float widthPixels = clamp(\n project_size_to_pixel(instanceWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels\n );\n vec3 offset = vec3(\n getExtrusionOffset((next.xy - curr.xy) * indexDir, positions.y, widthPixels),\n 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n DECKGL_FILTER_GL_POSITION(curr, geometry);\n gl_Position = curr + vec4(project_pixel_size_to_clipspace(offset.xy), 0.0, 0.0);\n\n vec4 color = mix(instanceSourceColors, instanceTargetColors, segmentRatio);\n vColor = vec4(color.rgb, color.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME arc-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 uv;\nvarying float isValid;\n\nvoid main(void) {\n if (isValid == 0.0) {\n discard;\n }\n\n gl_FragColor = vColor;\n geometry.uv = uv;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}get wrapLongitude(){return!1}initializeState(){this.getAttributeManager().addInstanced({instanceSourcePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getSourcePosition"},instanceTargetPositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getTargetPosition"},instanceSourceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getSourceColor",defaultValue:DEFAULT_COLOR},instanceTargetColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getTargetColor",defaultValue:DEFAULT_COLOR},instanceWidths:{size:1,transition:!0,accessor:"getWidth",defaultValue:1},instanceHeights:{size:1,transition:!0,accessor:"getHeight",defaultValue:1},instanceTilts:{size:1,transition:!0,accessor:"getTilt",defaultValue:0}})}updateState(opts){super.updateState(opts);const{props:props,oldProps:oldProps,changeFlags:changeFlags}=opts;if(changeFlags.extensionsChanged||changeFlags.propsChanged&&props.numSegments!==oldProps.numSegments){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}}draw({uniforms:uniforms}){const{widthUnits:widthUnits,widthScale:widthScale,widthMinPixels:widthMinPixels,widthMaxPixels:widthMaxPixels,greatCircle:greatCircle,wrapLongitude:wrapLongitude}=this.props;this.state.model.setUniforms(uniforms).setUniforms({greatCircle:greatCircle,widthUnits:constants.iI[widthUnits],widthScale:widthScale,widthMinPixels:widthMinPixels,widthMaxPixels:widthMaxPixels,useShortestPath:wrapLongitude}).draw()}_getModel(gl){const{id:id,numSegments:numSegments}=this.props;let positions=[];for(let i=0;i0&&v>0&&(indices[index++]=vertex-vCount,indices[index++]=vertex-vCount-1,indices[index++]=vertex-1,indices[index++]=vertex-vCount,indices[index++]=vertex-1,indices[index++]=vertex),vertex++}}return{vertexCount:vertexCount,positions:positions,indices:indices,texCoords:texCoords}}function interpolateQuad(quad,ut,vt){return(0,common.t7)((0,common.t7)(quad[0],quad[1],vt),(0,common.t7)(quad[3],quad[2],vt),ut)}var bitmap_layer_fragment="\n#define SHADER_NAME bitmap-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nuniform sampler2D bitmapTexture;\n\nvarying vec2 vTexCoord;\nvarying vec2 vTexPos;\n\nuniform float desaturate;\nuniform vec4 transparentColor;\nuniform vec3 tintColor;\nuniform float opacity;\n\nuniform float coordinateConversion;\nuniform vec4 bounds;\n\n/* projection utils */\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / PI / 2.0;\n\n// from degrees to Web Mercator\nvec2 lnglat_to_mercator(vec2 lnglat) {\n float x = lnglat.x;\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\n// from Web Mercator to degrees\nvec2 mercator_to_lnglat(vec2 xy) {\n xy /= WORLD_SCALE;\n return degrees(vec2(\n xy.x - PI,\n atan(exp(xy.y - PI)) * 2.0 - PI * 0.5\n ));\n}\n/* End projection utils */\n\n// apply desaturation\nvec3 color_desaturate(vec3 color) {\n float luminance = (color.r + color.g + color.b) * 0.333333333;\n return mix(color, vec3(luminance), desaturate);\n}\n\n// apply tint\nvec3 color_tint(vec3 color) {\n return color * tintColor;\n}\n\n// blend with background color\nvec4 apply_opacity(vec3 color, float alpha) {\n if (transparentColor.a == 0.0) {\n return vec4(color, alpha);\n }\n float blendedAlpha = alpha + transparentColor.a * (1.0 - alpha);\n float highLightRatio = alpha / blendedAlpha;\n vec3 blendedRGB = mix(transparentColor.rgb, color, highLightRatio);\n return vec4(blendedRGB, blendedAlpha);\n}\n\nvec2 getUV(vec2 pos) {\n return vec2(\n (pos.x - bounds[0]) / (bounds[2] - bounds[0]),\n (pos.y - bounds[3]) / (bounds[1] - bounds[3])\n );\n}\n\n".concat("\nvec3 packUVsIntoRGB(vec2 uv) {\n // Extract the top 8 bits. We want values to be truncated down so we can add a fraction\n vec2 uv8bit = floor(uv * 256.);\n\n // Calculate the normalized remainders of u and v parts that do not fit into 8 bits\n // Scale and clamp to 0-1 range\n vec2 uvFraction = fract(uv * 256.);\n vec2 uvFraction4bit = floor(uvFraction * 16.);\n\n // Remainder can be encoded in blue channel, encode as 4 bits for pixel coordinates\n float fractions = uvFraction4bit.x + uvFraction4bit.y * 16.;\n\n return vec3(uv8bit, fractions) / 255.;\n}\n","\n\nvoid main(void) {\n vec2 uv = vTexCoord;\n if (coordinateConversion < -0.5) {\n vec2 lnglat = mercator_to_lnglat(vTexPos);\n uv = getUV(lnglat);\n } else if (coordinateConversion > 0.5) {\n vec2 commonPos = lnglat_to_mercator(vTexPos);\n uv = getUV(commonPos);\n }\n vec4 bitmapColor = texture2D(bitmapTexture, uv);\n\n gl_FragColor = apply_opacity(color_tint(color_desaturate(bitmapColor.rgb)), bitmapColor.a * opacity);\n\n geometry.uv = uv;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n\n if (picking_uActive && !picking_uAttribute) {\n // Since instance information is not used, we can use picking color for pixel index\n gl_FragColor.rgb = packUVsIntoRGB(uv);\n }\n}\n");const defaultProps={image:{type:"image",value:null,async:!0},bounds:{type:"array",value:[1,0,0,1],compare:!0},_imageCoordinateSystem:constants.COORDINATE_SYSTEM.DEFAULT,desaturate:{type:"number",min:0,max:1,value:0},transparentColor:{type:"color",value:[0,0,0,0]},tintColor:{type:"color",value:[255,255,255]},textureParameters:{type:"object",ignore:!0}};class BitmapLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){return super.getShaders({vs:"\n#define SHADER_NAME bitmap-layer-vertex-shader\n\nattribute vec2 texCoords;\nattribute vec3 positions;\nattribute vec3 positions64Low;\n\nvarying vec2 vTexCoord;\nvarying vec2 vTexPos;\n\nuniform float coordinateConversion;\n\nconst vec3 pickingColor = vec3(1.0, 0.0, 0.0);\n\nvoid main(void) {\n geometry.worldPosition = positions;\n geometry.uv = texCoords;\n geometry.pickingColor = pickingColor;\n\n gl_Position = project_position_to_clipspace(positions, positions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vTexCoord = texCoords;\n\n if (coordinateConversion < -0.5) {\n vTexPos = geometry.position.xy + project_uCommonOrigin.xy;\n } else if (coordinateConversion > 0.5) {\n vTexPos = geometry.worldPosition.xy;\n }\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n",fs:bitmap_layer_fragment,modules:[project32.Z,picking.Z]})}initializeState(){const attributeManager=this.getAttributeManager();attributeManager.remove(["instancePickingColors"]);attributeManager.add({indices:{size:1,isIndexed:!0,update:attribute=>attribute.value=this.state.mesh.indices,noAlloc:true},positions:{size:3,type:5130,fp64:this.use64bitPositions(),update:attribute=>attribute.value=this.state.mesh.positions,noAlloc:true},texCoords:{size:2,update:attribute=>attribute.value=this.state.mesh.texCoords,noAlloc:true}})}updateState({props:props,oldProps:oldProps,changeFlags:changeFlags}){const attributeManager=this.getAttributeManager();if(changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),attributeManager.invalidateAll()}if(props.bounds!==oldProps.bounds){const oldMesh=this.state.mesh,mesh=this._createMesh();this.state.model.setVertexCount(mesh.vertexCount);for(const key in mesh)oldMesh&&oldMesh[key]!==mesh[key]&&attributeManager.invalidate(key);this.setState({mesh:mesh,...this._getCoordinateUniforms()})}else props._imageCoordinateSystem!==oldProps._imageCoordinateSystem&&this.setState(this._getCoordinateUniforms())}getPickingInfo(params){const{image:image}=this.props,info=params.info;if(!info.color||!image)return info.bitmap=null,info;const{width:width,height:height}=image;info.index=0;const uv=function unpackUVsFromRGB(color){const[u,v,fracUV]=color;return[(u+(15&fracUV)/16)/256,(v+(240&fracUV)/256)/256]}(info.color),pixel=[Math.floor(uv[0]*width),Math.floor(uv[1]*height)];return info.bitmap={size:{width:width,height:height},uv:uv,pixel:pixel},info}disablePickingIndex(){this.setState({disablePicking:!0})}restorePickingColors(){this.setState({disablePicking:!1})}_updateAutoHighlight(info){super._updateAutoHighlight({...info,color:this.encodePickingColor(0)})}_createMesh(){const{bounds:bounds}=this.props;let normalizedBounds=bounds;return isRectangularBounds(bounds)&&(normalizedBounds=[[bounds[0],bounds[1]],[bounds[0],bounds[3]],[bounds[2],bounds[3]],[bounds[2],bounds[1]]]),createMesh(normalizedBounds,this.context.viewport.resolution)}_getModel(gl){return gl?new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:4,vertexCount:6}),isInstanced:!1}):null}draw(opts){const{uniforms:uniforms,moduleParameters:moduleParameters}=opts,{model:model,coordinateConversion:coordinateConversion,bounds:bounds,disablePicking:disablePicking}=this.state,{image:image,desaturate:desaturate,transparentColor:transparentColor,tintColor:tintColor}=this.props;moduleParameters.pickingActive&&disablePicking||image&&model&&model.setUniforms(uniforms).setUniforms({bitmapTexture:image,desaturate:desaturate,transparentColor:transparentColor.map((x=>x/255)),tintColor:tintColor.slice(0,3).map((x=>x/255)),coordinateConversion:coordinateConversion,bounds:bounds}).draw()}_getCoordinateUniforms(){const{LNGLAT:LNGLAT,CARTESIAN:CARTESIAN,DEFAULT:DEFAULT}=constants.COORDINATE_SYSTEM;let{_imageCoordinateSystem:imageCoordinateSystem}=this.props;if(imageCoordinateSystem!==DEFAULT){const{bounds:bounds}=this.props;if(!isRectangularBounds(bounds))throw new Error("_imageCoordinateSystem only supports rectangular bounds");const defaultImageCoordinateSystem=this.context.viewport.resolution?LNGLAT:CARTESIAN;if(imageCoordinateSystem=imageCoordinateSystem===LNGLAT?LNGLAT:CARTESIAN,imageCoordinateSystem===LNGLAT&&defaultImageCoordinateSystem===CARTESIAN)return{coordinateConversion:-1,bounds:bounds};if(imageCoordinateSystem===CARTESIAN&&defaultImageCoordinateSystem===LNGLAT){const bottomLeft=(0,esm.w5)([bounds[0],bounds[1]]),topRight=(0,esm.w5)([bounds[2],bounds[3]]);return{coordinateConversion:1,bounds:[bottomLeft[0],bottomLeft[1],topRight[0],topRight[1]]}}}return{coordinateConversion:0,bounds:[0,0,0,0]}}}function isRectangularBounds(bounds){return Number.isFinite(bounds[0])}(0,defineProperty.Z)(BitmapLayer,"layerName","BitmapLayer"),(0,defineProperty.Z)(BitmapLayer,"defaultProps",defaultProps)},"./node_modules/@deck.gl/layers/dist/esm/column-layer/column-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ColumnLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),phong_lighting=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),features=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),webgl_features_table=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js"),dist_esm=__webpack_require__("./node_modules/@math.gl/polygon/dist/esm/index.js");class ColumnGeometry extends geometry.Z{constructor(props){const{id:id=(0,utils.hQ)("column-geometry")}=props,{indices:indices,attributes:attributes}=function tesselateColumn(props){const{radius:radius,height:height=1,nradial:nradial=10}=props;let{vertices:vertices}=props;vertices&&(log.Z.assert(vertices.length>=nradial),vertices=vertices.flatMap((v=>[v[0],v[1]])),(0,dist_esm.Ny)(vertices,dist_esm.wG.COUNTER_CLOCKWISE));const isExtruded=height>0,vertsAroundEdge=nradial+1,numVertices=isExtruded?3*vertsAroundEdge+1:nradial,stepAngle=2*Math.PI/nradial,indices=new Uint16Array(isExtruded?3*nradial*2:0),positions=new Float32Array(3*numVertices),normals=new Float32Array(3*numVertices);let i=0;if(isExtruded){for(let j=0;jx.position},getFillColor:{type:"accessor",value:DEFAULT_COLOR},getLineColor:{type:"accessor",value:DEFAULT_COLOR},getLineWidth:{type:"accessor",value:1},getElevation:{type:"accessor",value:1e3},material:!0,getColor:{deprecatedFor:["getFillColor","getLineColor"]}};class ColumnLayer extends lib_layer.Z{getShaders(){const{gl:gl}=this.context,transpileToGLSL100=!(0,esm.D0)(gl),defines={},useDerivatives=this.props.flatShading&&(0,features.U6)(gl,webgl_features_table.h.GLSL_DERIVATIVES);return useDerivatives&&(defines.FLAT_SHADING=1),super.getShaders({vs:"#version 300 es\n\n#define SHADER_NAME column-layer-vertex-shader\n\nin vec3 positions;\nin vec3 normals;\n\nin vec3 instancePositions;\nin float instanceElevations;\nin vec3 instancePositions64Low;\nin vec4 instanceFillColors;\nin vec4 instanceLineColors;\nin float instanceStrokeWidths;\n\nin vec3 instancePickingColors;\nuniform float opacity;\nuniform float radius;\nuniform float angle;\nuniform vec2 offset;\nuniform bool extruded;\nuniform bool stroked;\nuniform bool isStroke;\nuniform float coverage;\nuniform float elevationScale;\nuniform float edgeDistance;\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform int radiusUnits;\nuniform int widthUnits;\nout vec4 vColor;\n#ifdef FLAT_SHADING\nout vec4 position_commonspace;\n#endif\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n\n vec4 color = isStroke ? instanceLineColors : instanceFillColors;\n mat2 rotationMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n float elevation = 0.0;\n float strokeOffsetRatio = 1.0;\n\n if (extruded) {\n elevation = instanceElevations * (positions.z + 1.0) / 2.0 * elevationScale;\n } else if (stroked) {\n float widthPixels = clamp(\n project_size_to_pixel(instanceStrokeWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels) / 2.0;\n float halfOffset = project_pixel_size(widthPixels) / project_size(edgeDistance * coverage * radius);\n if (isStroke) {\n strokeOffsetRatio -= sign(positions.z) * halfOffset;\n } else {\n strokeOffsetRatio -= halfOffset;\n }\n }\n float shouldRender = float(color.a > 0.0 && instanceElevations >= 0.0);\n float dotRadius = radius * coverage * shouldRender;\n\n geometry.pickingColor = instancePickingColors;\n vec3 centroidPosition = vec3(instancePositions.xy, instancePositions.z + elevation);\n vec3 centroidPosition64Low = instancePositions64Low;\n vec2 offset = (rotationMatrix * positions.xy * strokeOffsetRatio + offset) * dotRadius;\n if (radiusUnits == UNIT_METERS) {\n offset = project_size(offset);\n }\n vec3 pos = vec3(offset, 0.);\n DECKGL_FILTER_SIZE(pos, geometry);\n\n gl_Position = project_position_to_clipspace(centroidPosition, centroidPosition64Low, pos, geometry.position);\n geometry.normal = project_normal(vec3(rotationMatrix * normals.xy, normals.z));\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n if (extruded && !isStroke) {\n#ifdef FLAT_SHADING\n position_commonspace = geometry.position;\n vColor = vec4(color.rgb, color.a * opacity);\n#else\n vec3 lightColor = lighting_getLightColor(color.rgb, project_uCameraPosition, geometry.position.xyz, geometry.normal);\n vColor = vec4(lightColor, color.a * opacity);\n#endif\n } else {\n vColor = vec4(color.rgb, color.a * opacity);\n }\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#version 300 es\n#define SHADER_NAME column-layer-fragment-shader\n\nprecision highp float;\n\nuniform vec3 project_uCameraPosition;\nuniform bool extruded;\nuniform bool isStroke;\n\nout vec4 fragColor;\n\nin vec4 vColor;\n#ifdef FLAT_SHADING\nin vec4 position_commonspace;\n#endif\n\nvoid main(void) {\n fragColor = vColor;\n#ifdef FLAT_SHADING\n if (extruded && !isStroke && !picking_uActive) {\n vec3 normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n fragColor.rgb = lighting_getLightColor(vColor.rgb, project_uCameraPosition, position_commonspace.xyz, normal);\n }\n#endif\n DECKGL_FILTER_COLOR(fragColor, geometry);\n}\n",defines:defines,transpileToGLSL100:transpileToGLSL100,modules:[project32.Z,useDerivatives?phong_lighting.s:phong_lighting.N,picking.Z]})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceElevations:{size:1,transition:!0,accessor:"getElevation"},instanceFillColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getFillColor",defaultValue:DEFAULT_COLOR},instanceLineColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getLineColor",defaultValue:DEFAULT_COLOR},instanceStrokeWidths:{size:1,accessor:"getLineWidth",transition:!0}})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps,changeFlags:changeFlags}=params,regenerateModels=changeFlags.extensionsChanged||props.flatShading!==oldProps.flatShading;if(regenerateModels){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}(regenerateModels||props.diskResolution!==oldProps.diskResolution||props.vertices!==oldProps.vertices||(props.extruded||props.stroked)!==(oldProps.extruded||oldProps.stroked))&&this._updateGeometry(props)}getGeometry(diskResolution,vertices,hasThinkness){const geometry=new ColumnGeometry({radius:1,height:hasThinkness?2:0,vertices:vertices,nradial:diskResolution});let meanVertexDistance=0;if(vertices)for(let i=0;i0;)coordinates=coordinates[0];return coordinates&&Number.isFinite(coordinates[0])}(type,coordinates))switch(type){case"Point":pointFeatures.push(wrapFeature({geometry:geometry},sourceFeature,sourceFeatureIndex));break;case"MultiPoint":coordinates.forEach((point=>{pointFeatures.push(wrapFeature({geometry:{type:"Point",coordinates:point}},sourceFeature,sourceFeatureIndex))}));break;case"LineString":lineFeatures.push(wrapFeature({geometry:geometry},sourceFeature,sourceFeatureIndex));break;case"MultiLineString":coordinates.forEach((path=>{lineFeatures.push(wrapFeature({geometry:{type:"LineString",coordinates:path}},sourceFeature,sourceFeatureIndex))}));break;case"Polygon":polygonFeatures.push(wrapFeature({geometry:geometry},sourceFeature,sourceFeatureIndex)),coordinates.forEach((path=>{polygonOutlineFeatures.push(wrapFeature({geometry:{type:"LineString",coordinates:path}},sourceFeature,sourceFeatureIndex))}));break;case"MultiPolygon":coordinates.forEach((polygon=>{polygonFeatures.push(wrapFeature({geometry:{type:"Polygon",coordinates:polygon}},sourceFeature,sourceFeatureIndex)),polygon.forEach((path=>{polygonOutlineFeatures.push(wrapFeature({geometry:{type:"LineString",coordinates:path}},sourceFeature,sourceFeatureIndex))}))}))}else log.Z.warn("".concat(type," coordinates are malformed"))()}const COORDINATE_NEST_LEVEL={Point:1,MultiPoint:2,LineString:2,MultiLineString:3,Polygon:3,MultiPolygon:4};function getCoordinates(f){return f.geometry.coordinates}function createLayerPropsFromBinary(geojsonBinary,encodePickingColor){const layerProps={points:{},lines:{},polygons:{},polygonsOutline:{}},{points:points,lines:lines,polygons:polygons}=geojsonBinary,customPickingColors=function calculatePickingColors(geojsonBinary,encodePickingColor){const pickingColors={points:null,lines:null,polygons:null};for(const key in pickingColors){const featureIds=geojsonBinary[key].globalFeatureIds.value;pickingColors[key]=new Uint8ClampedArray(3*featureIds.length);const pickingColor=[];for(let i=0;if.properties.icon},getText:{type:"accessor",value:f=>f.properties.text},pointType:"circle",getRadius:{deprecatedFor:"getPointRadius"}};class GeoJsonLayer extends composite_layer.Z{initializeState(){this.state={layerProps:{},features:{}}}updateState({props:props,changeFlags:changeFlags}){if(!changeFlags.dataChanged)return;const{data:data}=this.props,binary=data&&"points"in data&&"polygons"in data&&"lines"in data;this.setState({binary:binary}),binary?this._updateStateBinary({props:props,changeFlags:changeFlags}):this._updateStateJSON({props:props,changeFlags:changeFlags})}_updateStateBinary({props:props,changeFlags:changeFlags}){const layerProps=createLayerPropsFromBinary(props.data,this.encodePickingColor);this.setState({layerProps:layerProps})}_updateStateJSON({props:props,changeFlags:changeFlags}){const features=function getGeojsonFeatures(geojson){if(Array.isArray(geojson))return geojson;switch(log.Z.assert(geojson.type,"GeoJSON does not have type"),geojson.type){case"Feature":return[geojson];case"FeatureCollection":return log.Z.assert(Array.isArray(geojson.features),"GeoJSON does not have features array"),geojson.features;default:return[{geometry:geojson}]}}(props.data),wrapFeature=this.getSubLayerRow.bind(this);let newFeatures={};const featuresDiff={};if(Array.isArray(changeFlags.dataChanged)){const oldFeatures=this.state.features;for(const key in oldFeatures)newFeatures[key]=oldFeatures[key].slice(),featuresDiff[key]=[];for(const dataRange of changeFlags.dataChanged){const partialFeatures=separateGeojsonFeatures(features,wrapFeature,dataRange);for(const key in oldFeatures)featuresDiff[key].push((0,utils.b)({data:newFeatures[key],getIndex:f=>f.__source.index,dataRange:dataRange,replace:partialFeatures[key]}))}}else newFeatures=separateGeojsonFeatures(features,wrapFeature);const layerProps=function createLayerPropsFromFeatures(features,featuresDiff){const layerProps={points:{},lines:{},polygons:{},polygonsOutline:{}},{pointFeatures:pointFeatures,lineFeatures:lineFeatures,polygonFeatures:polygonFeatures,polygonOutlineFeatures:polygonOutlineFeatures}=features;return layerProps.points.data=pointFeatures,layerProps.points._dataDiff=featuresDiff.pointFeatures&&(()=>featuresDiff.pointFeatures),layerProps.points.getPosition=getCoordinates,layerProps.lines.data=lineFeatures,layerProps.lines._dataDiff=featuresDiff.lineFeatures&&(()=>featuresDiff.lineFeatures),layerProps.lines.getPath=getCoordinates,layerProps.polygons.data=polygonFeatures,layerProps.polygons._dataDiff=featuresDiff.polygonFeatures&&(()=>featuresDiff.polygonFeatures),layerProps.polygons.getPolygon=getCoordinates,layerProps.polygonsOutline.data=polygonOutlineFeatures,layerProps.polygonsOutline._dataDiff=featuresDiff.polygonOutlineFeatures&&(()=>featuresDiff.polygonOutlineFeatures),layerProps.polygonsOutline.getPath=getCoordinates,layerProps}(newFeatures,featuresDiff);this.setState({features:newFeatures,featuresDiff:featuresDiff,layerProps:layerProps})}getPickingInfo(params){const info=super.getPickingInfo(params),{index:index,sourceLayer:sourceLayer}=info;return info.featureType=FEATURE_TYPES.find((ft=>sourceLayer.id.startsWith("".concat(this.id,"-").concat(ft,"-")))),index>=0&&sourceLayer.id.startsWith("".concat(this.id,"-points-text"))&&this.state.binary&&(info.index=this.props.data.points.globalFeatureIds.value[index]),info}_updateAutoHighlight(info){const pointLayerIdPrefix="".concat(this.id,"-points-"),sourceIsPoints="points"===info.featureType;for(const layer of this.getSubLayers())layer.id.startsWith(pointLayerIdPrefix)===sourceIsPoints&&layer.updateAutoHighlight(info)}_renderPolygonLayer(){const{extruded:extruded,wireframe:wireframe}=this.props,{layerProps:layerProps}=this.state,id="polygons-fill",PolygonFillLayer=this.shouldRenderSubLayer(id,layerProps.polygons.data)&&this.getSubLayerClass(id,POLYGON_LAYER.type);if(PolygonFillLayer){const forwardedProps=forwardProps(this,POLYGON_LAYER.props),useLineColor=extruded&&wireframe;return useLineColor||delete forwardedProps.getLineColor,forwardedProps.updateTriggers.lineColors=useLineColor,new PolygonFillLayer(forwardedProps,this.getSubLayerProps({id:id,updateTriggers:forwardedProps.updateTriggers}),layerProps.polygons)}return null}_renderLineLayers(){const{extruded:extruded,stroked:stroked}=this.props,{layerProps:layerProps}=this.state,PolygonStrokeLayer=!extruded&&stroked&&this.shouldRenderSubLayer("polygons-stroke",layerProps.polygonsOutline.data)&&this.getSubLayerClass("polygons-stroke",LINE_LAYER.type),LineStringsLayer=this.shouldRenderSubLayer("linestrings",layerProps.lines.data)&&this.getSubLayerClass("linestrings",LINE_LAYER.type);if(PolygonStrokeLayer||LineStringsLayer){const forwardedProps=forwardProps(this,LINE_LAYER.props);return[PolygonStrokeLayer&&new PolygonStrokeLayer(forwardedProps,this.getSubLayerProps({id:"polygons-stroke",updateTriggers:forwardedProps.updateTriggers}),layerProps.polygonsOutline),LineStringsLayer&&new LineStringsLayer(forwardedProps,this.getSubLayerProps({id:"linestrings",updateTriggers:forwardedProps.updateTriggers}),layerProps.lines)]}return null}_renderPointLayers(){const{pointType:pointType}=this.props,{layerProps:layerProps,binary:binary}=this.state;let{highlightedObjectIndex:highlightedObjectIndex}=this.props;!binary&&Number.isFinite(highlightedObjectIndex)&&(highlightedObjectIndex=layerProps.points.data.findIndex((d=>d.__source.index===highlightedObjectIndex)));const types=new Set(pointType.split("+")),pointLayers=[];for(const type of types){const id="points-".concat(type),PointLayerMapping=POINT_LAYER[type],PointsLayer=PointLayerMapping&&this.shouldRenderSubLayer(id,layerProps.points.data)&&this.getSubLayerClass(id,PointLayerMapping.type);if(PointsLayer){const forwardedProps=forwardProps(this,PointLayerMapping.props);let pointsLayerProps=layerProps.points;if("text"===type&&binary){const{instancePickingColors:instancePickingColors,...rest}=pointsLayerProps.data.attributes;pointsLayerProps={...pointsLayerProps,data:{...pointsLayerProps.data,attributes:rest}}}pointLayers.push(new PointsLayer(forwardedProps,this.getSubLayerProps({id:id,updateTriggers:forwardedProps.updateTriggers,highlightedObjectIndex:highlightedObjectIndex}),pointsLayerProps))}}return pointLayers}renderLayers(){const{extruded:extruded}=this.props,polygonFillLayer=this._renderPolygonLayer();return[!extruded&&polygonFillLayer,this._renderLineLayers(),this._renderPointLayers(),extruded&&polygonFillLayer]}getSubLayerAccessor(accessor){const{binary:binary}=this.state;return binary&&"function"==typeof accessor?(object,info)=>{const{data:data,index:index}=info,feature=function binaryToFeatureForAccesor(data,index){if(!data)return null;const featureIndex="startIndices"in data?data.startIndices[index]:index,geometryIndex=data.featureIds.value[featureIndex];return-1!==featureIndex?function getPropertiesForIndex(data,propertiesIndex,numericPropsIndex){const feature={properties:{...data.properties[propertiesIndex]}};for(const prop in data.numericProps)feature.properties[prop]=data.numericProps[prop].value[numericPropsIndex];return feature}(data,geometryIndex,featureIndex):null}(data,index);return accessor(feature,info)}:super.getSubLayerAccessor(accessor)}}(0,defineProperty.Z)(GeoJsonLayer,"layerName","GeoJsonLayer"),(0,defineProperty.Z)(GeoJsonLayer,"defaultProps",defaultProps)},"./node_modules/@deck.gl/layers/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ArcLayer:function(){return _arc_layer_arc_layer__WEBPACK_IMPORTED_MODULE_0__.Z},BitmapLayer:function(){return _bitmap_layer_bitmap_layer__WEBPACK_IMPORTED_MODULE_1__.Z},ColumnLayer:function(){return _column_layer_column_layer__WEBPACK_IMPORTED_MODULE_6__.Z},GeoJsonLayer:function(){return _geojson_layer_geojson_layer__WEBPACK_IMPORTED_MODULE_10__.Z},GridCellLayer:function(){return _column_layer_grid_cell_layer__WEBPACK_IMPORTED_MODULE_7__.Z},IconLayer:function(){return _icon_layer_icon_layer__WEBPACK_IMPORTED_MODULE_2__.Z},LineLayer:function(){return _line_layer_line_layer__WEBPACK_IMPORTED_MODULE_3__.Z},PathLayer:function(){return _path_layer_path_layer__WEBPACK_IMPORTED_MODULE_8__.Z},PointCloudLayer:function(){return _point_cloud_layer_point_cloud_layer__WEBPACK_IMPORTED_MODULE_4__.Z},PolygonLayer:function(){return _polygon_layer_polygon_layer__WEBPACK_IMPORTED_MODULE_9__.Z},ScatterplotLayer:function(){return _scatterplot_layer_scatterplot_layer__WEBPACK_IMPORTED_MODULE_5__.Z},SolidPolygonLayer:function(){return _solid_polygon_layer_solid_polygon_layer__WEBPACK_IMPORTED_MODULE_12__.Z},TextLayer:function(){return _text_layer_text_layer__WEBPACK_IMPORTED_MODULE_11__.Z},_MultiIconLayer:function(){return _text_layer_multi_icon_layer_multi_icon_layer__WEBPACK_IMPORTED_MODULE_13__.Z},_TextBackgroundLayer:function(){return _text_layer_text_background_layer_text_background_layer__WEBPACK_IMPORTED_MODULE_14__.Z}});var _arc_layer_arc_layer__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/arc-layer/arc-layer.js"),_bitmap_layer_bitmap_layer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/bitmap-layer/bitmap-layer.js"),_icon_layer_icon_layer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/icon-layer/icon-layer.js"),_line_layer_line_layer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/line-layer/line-layer.js"),_point_cloud_layer_point_cloud_layer__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/point-cloud-layer/point-cloud-layer.js"),_scatterplot_layer_scatterplot_layer__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/scatterplot-layer/scatterplot-layer.js"),_column_layer_column_layer__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/column-layer/column-layer.js"),_column_layer_grid_cell_layer__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/column-layer/grid-cell-layer.js"),_path_layer_path_layer__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js"),_polygon_layer_polygon_layer__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/polygon-layer/polygon-layer.js"),_geojson_layer_geojson_layer__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/geojson-layer/geojson-layer.js"),_text_layer_text_layer__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/text-layer.js"),_solid_polygon_layer_solid_polygon_layer__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/solid-polygon-layer.js"),_text_layer_multi_icon_layer_multi_icon_layer__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/multi-icon-layer/multi-icon-layer.js"),_text_layer_text_background_layer_text_background_layer__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/text-background-layer/text-background-layer.js")},"./node_modules/@deck.gl/layers/dist/esm/line-layer/line-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return LineLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const defaultProps={getSourcePosition:{type:"accessor",value:x=>x.sourcePosition},getTargetPosition:{type:"accessor",value:x=>x.targetPosition},getColor:{type:"accessor",value:[0,0,0,255]},getWidth:{type:"accessor",value:1},widthUnits:"pixels",widthScale:{type:"number",value:1,min:0},widthMinPixels:{type:"number",value:0,min:0},widthMaxPixels:{type:"number",value:Number.MAX_SAFE_INTEGER,min:0}};class LineLayer extends lib_layer.Z{getBounds(){var _this$getAttributeMan;return null===(_this$getAttributeMan=this.getAttributeManager())||void 0===_this$getAttributeMan?void 0:_this$getAttributeMan.getBounds(["instanceSourcePositions","instanceTargetPositions"])}getShaders(){return super.getShaders({vs:"#define SHADER_NAME line-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 instanceSourcePositions;\nattribute vec3 instanceTargetPositions;\nattribute vec3 instanceSourcePositions64Low;\nattribute vec3 instanceTargetPositions64Low;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute float instanceWidths;\n\nuniform float opacity;\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float useShortestPath;\nuniform int widthUnits;\n\nvarying vec4 vColor;\nvarying vec2 uv;\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction, float width) {\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n return dir_screenspace * offset_direction * width / 2.0;\n}\n\nvec3 splitLine(vec3 a, vec3 b, float x) {\n float t = (x - a.x) / (b.x - a.x);\n return vec3(x, mix(a.yz, b.yz, t));\n}\n\nvoid main(void) {\n geometry.worldPosition = instanceSourcePositions;\n geometry.worldPositionAlt = instanceTargetPositions;\n\n vec3 source_world = instanceSourcePositions;\n vec3 target_world = instanceTargetPositions;\n vec3 source_world_64low = instanceSourcePositions64Low;\n vec3 target_world_64low = instanceTargetPositions64Low;\n\n if (useShortestPath > 0.5 || useShortestPath < -0.5) {\n source_world.x = mod(source_world.x + 180., 360.0) - 180.;\n target_world.x = mod(target_world.x + 180., 360.0) - 180.;\n float deltaLng = target_world.x - source_world.x;\n\n if (deltaLng * useShortestPath > 180.) {\n source_world.x += 360. * useShortestPath;\n source_world = splitLine(source_world, target_world, 180. * useShortestPath);\n source_world_64low = vec3(0.0);\n } else if (deltaLng * useShortestPath < -180.) {\n target_world.x += 360. * useShortestPath;\n target_world = splitLine(source_world, target_world, 180. * useShortestPath);\n target_world_64low = vec3(0.0);\n } else if (useShortestPath < 0.) {\n gl_Position = vec4(0.);\n return;\n }\n }\n vec4 source_commonspace;\n vec4 target_commonspace;\n vec4 source = project_position_to_clipspace(source_world, source_world_64low, vec3(0.), source_commonspace);\n vec4 target = project_position_to_clipspace(target_world, target_world_64low, vec3(0.), target_commonspace);\n float segmentIndex = positions.x;\n vec4 p = mix(source, target, segmentIndex);\n geometry.position = mix(source_commonspace, target_commonspace, segmentIndex);\n uv = positions.xy;\n geometry.uv = uv;\n geometry.pickingColor = instancePickingColors;\n float widthPixels = clamp(\n project_size_to_pixel(instanceWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels\n );\n vec3 offset = vec3(\n getExtrusionOffset(target.xy - source.xy, positions.y, widthPixels),\n 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n DECKGL_FILTER_GL_POSITION(p, geometry);\n gl_Position = p + vec4(project_pixel_size_to_clipspace(offset.xy), 0.0, 0.0);\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME line-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}get wrapLongitude(){return!1}initializeState(){this.getAttributeManager().addInstanced({instanceSourcePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getSourcePosition"},instanceTargetPositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getTargetPosition"},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getColor",defaultValue:[0,0,0,255]},instanceWidths:{size:1,transition:!0,accessor:"getWidth",defaultValue:1}})}updateState(params){if(super.updateState(params),params.changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}}draw({uniforms:uniforms}){const{widthUnits:widthUnits,widthScale:widthScale,widthMinPixels:widthMinPixels,widthMaxPixels:widthMaxPixels,wrapLongitude:wrapLongitude}=this.props;this.state.model.setUniforms(uniforms).setUniforms({widthUnits:constants.iI[widthUnits],widthScale:widthScale,widthMinPixels:widthMinPixels,widthMaxPixels:widthMaxPixels,useShortestPath:wrapLongitude?1:0}).draw(),wrapLongitude&&this.state.model.setUniforms({useShortestPath:-1}).draw()}_getModel(gl){return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:5,attributes:{positions:new Float32Array([0,-1,0,0,1,0,1,-1,0,1,1,0])}}),isInstanced:!0})}}(0,defineProperty.Z)(LineLayer,"layerName","LineLayer"),(0,defineProperty.Z)(LineLayer,"defaultProps",defaultProps)},"./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return PathLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),tesselator=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/tesselator.js"),esm=__webpack_require__("./node_modules/@math.gl/polygon/dist/esm/index.js");class PathTesselator extends tesselator.Z{constructor(opts){super({...opts,attributes:{positions:{size:3,padding:18,initialize:!0,type:opts.fp64?Float64Array:Float32Array},segmentTypes:{size:1,type:Uint8ClampedArray}}})}get(attributeName){return this.attributes[attributeName]}getGeometryFromBuffer(buffer){return this.normalize?super.getGeometryFromBuffer(buffer):null}normalizeGeometry(path){return this.normalize?function normalizePath(path,size,gridResolution,wrapLongitude){let flatPath;if(Array.isArray(path[0])){const length=path.length*size;flatPath=new Array(length);for(let i=0;i=path.length&&(index+=1-path.length/positionSize);const i=index*positionSize;return target[0]=path[i],target[1]=path[i+1],target[2]=3===positionSize&&path[i+2]||0,target}isClosed(path){if(!this.normalize)return Boolean(this.opts.loop);const{positionSize:positionSize}=this,lastPointIndex=path.length-positionSize;return path[0]===path[lastPointIndex]&&path[1]===path[lastPointIndex+1]&&(2===positionSize||path[2]===path[lastPointIndex+2])}}function isCut(path){return Array.isArray(path[0])}const DEFAULT_COLOR=[0,0,0,255],defaultProps={widthUnits:"meters",widthScale:{type:"number",min:0,value:1},widthMinPixels:{type:"number",min:0,value:0},widthMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},jointRounded:!1,capRounded:!1,miterLimit:{type:"number",min:0,value:4},billboard:!1,_pathType:null,getPath:{type:"accessor",value:object=>object.path},getColor:{type:"accessor",value:DEFAULT_COLOR},getWidth:{type:"accessor",value:1},rounded:{deprecatedFor:["jointRounded","capRounded"]}},ATTRIBUTE_TRANSITION={enter:(value,chunk)=>chunk.length?chunk.subarray(chunk.length-value.length):value};class PathLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){return super.getShaders({vs:"#define SHADER_NAME path-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute float instanceTypes;\nattribute vec3 instanceStartPositions;\nattribute vec3 instanceEndPositions;\nattribute vec3 instanceLeftPositions;\nattribute vec3 instanceRightPositions;\nattribute vec3 instanceLeftPositions64Low;\nattribute vec3 instanceStartPositions64Low;\nattribute vec3 instanceEndPositions64Low;\nattribute vec3 instanceRightPositions64Low;\nattribute float instanceStrokeWidths;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float jointType;\nuniform float capType;\nuniform float miterLimit;\nuniform bool billboard;\nuniform int widthUnits;\n\nuniform float opacity;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vPathPosition;\nvarying float vPathLength;\nvarying float vJointType;\n\nconst float EPSILON = 0.001;\nconst vec3 ZERO_OFFSET = vec3(0.0);\n\nfloat flipIfTrue(bool flag) {\n return -(float(flag) * 2. - 1.);\n}\nvec3 getLineJoinOffset(\n vec3 prevPoint, vec3 currPoint, vec3 nextPoint,\n vec2 width\n) {\n bool isEnd = positions.x > 0.0;\n float sideOfPath = positions.y;\n float isJoint = float(sideOfPath == 0.0);\n\n vec3 deltaA3 = (currPoint - prevPoint);\n vec3 deltaB3 = (nextPoint - currPoint);\n\n mat3 rotationMatrix;\n bool needsRotation = !billboard && project_needs_rotation(currPoint, rotationMatrix);\n if (needsRotation) {\n deltaA3 = deltaA3 * rotationMatrix;\n deltaB3 = deltaB3 * rotationMatrix;\n }\n vec2 deltaA = deltaA3.xy / width;\n vec2 deltaB = deltaB3.xy / width;\n\n float lenA = length(deltaA);\n float lenB = length(deltaB);\n\n vec2 dirA = lenA > 0. ? normalize(deltaA) : vec2(0.0, 0.0);\n vec2 dirB = lenB > 0. ? normalize(deltaB) : vec2(0.0, 0.0);\n\n vec2 perpA = vec2(-dirA.y, dirA.x);\n vec2 perpB = vec2(-dirB.y, dirB.x);\n vec2 tangent = dirA + dirB;\n tangent = length(tangent) > 0. ? normalize(tangent) : perpA;\n vec2 miterVec = vec2(-tangent.y, tangent.x);\n vec2 dir = isEnd ? dirA : dirB;\n vec2 perp = isEnd ? perpA : perpB;\n float L = isEnd ? lenA : lenB;\n float sinHalfA = abs(dot(miterVec, perp));\n float cosHalfA = abs(dot(dirA, miterVec));\n float turnDirection = flipIfTrue(dirA.x * dirB.y >= dirA.y * dirB.x);\n float cornerPosition = sideOfPath * turnDirection;\n\n float miterSize = 1.0 / max(sinHalfA, EPSILON);\n miterSize = mix(\n min(miterSize, max(lenA, lenB) / max(cosHalfA, EPSILON)),\n miterSize,\n step(0.0, cornerPosition)\n );\n\n vec2 offsetVec = mix(miterVec * miterSize, perp, step(0.5, cornerPosition))\n * (sideOfPath + isJoint * turnDirection);\n bool isStartCap = lenA == 0.0 || (!isEnd && (instanceTypes == 1.0 || instanceTypes == 3.0));\n bool isEndCap = lenB == 0.0 || (isEnd && (instanceTypes == 2.0 || instanceTypes == 3.0));\n bool isCap = isStartCap || isEndCap;\n if (isCap) {\n offsetVec = mix(perp * sideOfPath, dir * capType * 4.0 * flipIfTrue(isStartCap), isJoint);\n vJointType = capType;\n } else {\n vJointType = jointType;\n }\n vPathLength = L;\n vCornerOffset = offsetVec;\n vMiterLength = dot(vCornerOffset, miterVec * turnDirection);\n vMiterLength = isCap ? isJoint : vMiterLength;\n\n vec2 offsetFromStartOfPath = vCornerOffset + deltaA * float(isEnd);\n vPathPosition = vec2(\n dot(offsetFromStartOfPath, perp),\n dot(offsetFromStartOfPath, dir)\n );\n geometry.uv = vPathPosition;\n\n float isValid = step(instanceTypes, 3.5);\n vec3 offset = vec3(offsetVec * width * isValid, 0.0);\n\n if (needsRotation) {\n offset = rotationMatrix * offset;\n }\n return offset;\n}\nvoid clipLine(inout vec4 position, vec4 refPosition) {\n if (position.w < EPSILON) {\n float r = (EPSILON - refPosition.w) / (position.w - refPosition.w);\n position = refPosition + (position - refPosition) * r;\n }\n}\n\nvoid main() {\n geometry.pickingColor = instancePickingColors;\n\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n\n float isEnd = positions.x;\n\n vec3 prevPosition = mix(instanceLeftPositions, instanceStartPositions, isEnd);\n vec3 prevPosition64Low = mix(instanceLeftPositions64Low, instanceStartPositions64Low, isEnd);\n\n vec3 currPosition = mix(instanceStartPositions, instanceEndPositions, isEnd);\n vec3 currPosition64Low = mix(instanceStartPositions64Low, instanceEndPositions64Low, isEnd);\n\n vec3 nextPosition = mix(instanceEndPositions, instanceRightPositions, isEnd);\n vec3 nextPosition64Low = mix(instanceEndPositions64Low, instanceRightPositions64Low, isEnd);\n\n geometry.worldPosition = currPosition;\n vec2 widthPixels = vec2(clamp(\n project_size_to_pixel(instanceStrokeWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels) / 2.0);\n vec3 width;\n\n if (billboard) {\n vec4 prevPositionScreen = project_position_to_clipspace(prevPosition, prevPosition64Low, ZERO_OFFSET);\n vec4 currPositionScreen = project_position_to_clipspace(currPosition, currPosition64Low, ZERO_OFFSET, geometry.position);\n vec4 nextPositionScreen = project_position_to_clipspace(nextPosition, nextPosition64Low, ZERO_OFFSET);\n\n clipLine(prevPositionScreen, currPositionScreen);\n clipLine(nextPositionScreen, currPositionScreen);\n clipLine(currPositionScreen, mix(nextPositionScreen, prevPositionScreen, isEnd));\n\n width = vec3(widthPixels, 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec3 offset = getLineJoinOffset(\n prevPositionScreen.xyz / prevPositionScreen.w,\n currPositionScreen.xyz / currPositionScreen.w,\n nextPositionScreen.xyz / nextPositionScreen.w,\n project_pixel_size_to_clipspace(width.xy)\n );\n\n DECKGL_FILTER_GL_POSITION(currPositionScreen, geometry);\n gl_Position = vec4(currPositionScreen.xyz + offset * currPositionScreen.w, currPositionScreen.w);\n } else {\n prevPosition = project_position(prevPosition, prevPosition64Low);\n currPosition = project_position(currPosition, currPosition64Low);\n nextPosition = project_position(nextPosition, nextPosition64Low);\n\n width = vec3(project_pixel_size(widthPixels), 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec3 offset = getLineJoinOffset(prevPosition, currPosition, nextPosition, width.xy);\n geometry.position = vec4(currPosition + offset, 1.0);\n gl_Position = project_common_position_to_clipspace(geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n }\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME path-layer-fragment-shader\n\nprecision highp float;\n\nuniform float miterLimit;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vPathPosition;\nvarying float vPathLength;\nvarying float vJointType;\n\nvoid main(void) {\n geometry.uv = vPathPosition;\n\n if (vPathPosition.y < 0.0 || vPathPosition.y > vPathLength) {\n if (vJointType > 0.5 && length(vCornerOffset) > 1.0) {\n discard;\n }\n if (vJointType < 0.5 && vMiterLength > miterLimit + 1.0) {\n discard;\n }\n }\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}get wrapLongitude(){return!1}initializeState(){this.getAttributeManager().addInstanced({positions:{size:3,vertexOffset:1,type:5130,fp64:this.use64bitPositions(),transition:ATTRIBUTE_TRANSITION,accessor:"getPath",update:this.calculatePositions,noAlloc:true,shaderAttributes:{instanceLeftPositions:{vertexOffset:0},instanceStartPositions:{vertexOffset:1},instanceEndPositions:{vertexOffset:2},instanceRightPositions:{vertexOffset:3}}},instanceTypes:{size:1,type:5121,update:this.calculateSegmentTypes,noAlloc:true},instanceStrokeWidths:{size:1,accessor:"getWidth",transition:ATTRIBUTE_TRANSITION,defaultValue:1},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,accessor:"getColor",transition:ATTRIBUTE_TRANSITION,defaultValue:DEFAULT_COLOR},instancePickingColors:{size:3,type:5121,accessor:(object,{index:index,target:value})=>this.encodePickingColor(object&&object.__source?object.__source.index:index,value)}}),this.setState({pathTesselator:new PathTesselator({fp64:this.use64bitPositions()})})}updateState(params){super.updateState(params);const{props:props,changeFlags:changeFlags}=params,attributeManager=this.getAttributeManager();if(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getPath)){const{pathTesselator:pathTesselator}=this.state,buffers=props.data.attributes||{};pathTesselator.updateGeometry({data:props.data,geometryBuffer:buffers.getPath,buffers:buffers,normalize:!props._pathType,loop:"loop"===props._pathType,getGeometry:props.getPath,positionFormat:props.positionFormat,wrapLongitude:props.wrapLongitude,resolution:this.context.viewport.resolution,dataChanged:changeFlags.dataChanged}),this.setState({numInstances:pathTesselator.instanceCount,startIndices:pathTesselator.vertexStarts}),changeFlags.dataChanged||attributeManager.invalidateAll()}if(changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),attributeManager.invalidateAll()}}getPickingInfo(params){const info=super.getPickingInfo(params),{index:index}=info,{data:data}=this.props;return data[0]&&data[0].__source&&(info.object=data.find((d=>d.__source.index===index))),info}disablePickingIndex(objectIndex){const{data:data}=this.props;if(data[0]&&data[0].__source)for(let i=0;ix.position},getNormal:{type:"accessor",value:DEFAULT_NORMAL},getColor:{type:"accessor",value:DEFAULT_COLOR},material:!0,radiusPixels:{deprecatedFor:"pointSize"}};class PointCloudLayer extends lib_layer.Z{getShaders(){return super.getShaders({vs:"#define SHADER_NAME point-cloud-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 instanceNormals;\nattribute vec4 instanceColors;\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusPixels;\nuniform int sizeUnits;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.normal = project_normal(instanceNormals);\n unitPosition = positions.xy;\n geometry.uv = unitPosition;\n geometry.pickingColor = instancePickingColors;\n vec3 offset = vec3(positions.xy * project_size_to_pixel(radiusPixels, sizeUnits), 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n vec3 lightColor = lighting_getLightColor(instanceColors.rgb, project_uCameraPosition, geometry.position.xyz, geometry.normal);\n vColor = vec4(lightColor, instanceColors.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME point-cloud-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n geometry.uv = unitPosition;\n\n float distToCenter = length(unitPosition);\n\n if (distToCenter > 1.0) {\n discard;\n }\n\n gl_FragColor = vColor;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,phong_lighting.N,picking.Z]})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceNormals:{size:3,transition:!0,accessor:"getNormal",defaultValue:DEFAULT_NORMAL},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getColor",defaultValue:DEFAULT_COLOR}})}updateState(params){const{changeFlags:changeFlags,props:props}=params;if(super.updateState(params),changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}changeFlags.dataChanged&&function normalizeData(data){const{header:header,attributes:attributes}=data;header&&attributes&&(data.length=header.vertexCount,attributes.POSITION&&(attributes.instancePositions=attributes.POSITION),attributes.NORMAL&&(attributes.instanceNormals=attributes.NORMAL),attributes.COLOR_0&&(attributes.instanceColors=attributes.COLOR_0))}(props.data)}draw({uniforms:uniforms}){const{pointSize:pointSize,sizeUnits:sizeUnits}=this.props;this.state.model.setUniforms(uniforms).setUniforms({sizeUnits:constants.iI[sizeUnits],radiusPixels:pointSize}).draw()}_getModel(gl){const positions=[];for(let i=0;i<3;i++){const angle=i/3*Math.PI*2;positions.push(2*Math.cos(angle),2*Math.sin(angle),0)}return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:4,attributes:{positions:new Float32Array(positions)}}),isInstanced:!0})}}(0,defineProperty.Z)(PointCloudLayer,"layerName","PointCloudLayer"),(0,defineProperty.Z)(PointCloudLayer,"defaultProps",defaultProps)},"./node_modules/@deck.gl/layers/dist/esm/polygon-layer/polygon-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return PolygonLayer}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_deck_gl_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),_deck_gl_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),_solid_polygon_layer_solid_polygon_layer__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/solid-polygon-layer.js"),_path_layer_path_layer__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js"),_solid_polygon_layer_polygon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/polygon.js"),_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/utils.js");const defaultLineColor=[0,0,0,255],defaultProps={stroked:!0,filled:!0,extruded:!1,elevationScale:1,wireframe:!1,_normalize:!0,_windingOrder:"CW",lineWidthUnits:"meters",lineWidthScale:1,lineWidthMinPixels:0,lineWidthMaxPixels:Number.MAX_SAFE_INTEGER,lineJointRounded:!1,lineMiterLimit:4,getPolygon:{type:"accessor",value:f=>f.polygon},getFillColor:{type:"accessor",value:[0,0,0,255]},getLineColor:{type:"accessor",value:defaultLineColor},getLineWidth:{type:"accessor",value:1},getElevation:{type:"accessor",value:1e3},material:!0};class PolygonLayer extends _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__.Z{initializeState(){this.state={paths:[]},this.props.getLineDashArray&&_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z.removed("getLineDashArray","PathStyleExtension")()}updateState({changeFlags:changeFlags}){const geometryChanged=changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getPolygon);if(geometryChanged&&Array.isArray(changeFlags.dataChanged)){const paths=this.state.paths.slice(),pathsDiff=changeFlags.dataChanged.map((dataRange=>(0,_utils__WEBPACK_IMPORTED_MODULE_2__.b)({data:paths,getIndex:p=>p.__source.index,dataRange:dataRange,replace:this._getPaths(dataRange)})));this.setState({paths:paths,pathsDiff:pathsDiff})}else geometryChanged&&this.setState({paths:this._getPaths(),pathsDiff:null})}_getPaths(dataRange={}){const{data:data,getPolygon:getPolygon,positionFormat:positionFormat,_normalize:_normalize}=this.props,paths=[],positionSize="XY"===positionFormat?2:3,{startRow:startRow,endRow:endRow}=dataRange,{iterable:iterable,objectInfo:objectInfo}=(0,_deck_gl_core__WEBPACK_IMPORTED_MODULE_3__.jB)(data,startRow,endRow);for(const object of iterable){objectInfo.index++;let polygon=getPolygon(object,objectInfo);_normalize&&(polygon=_solid_polygon_layer_polygon__WEBPACK_IMPORTED_MODULE_4__.Fv(polygon,positionSize));const{holeIndices:holeIndices}=polygon,positions=polygon.positions||polygon;if(holeIndices)for(let i=0;i<=holeIndices.length;i++){const path=positions.slice(holeIndices[i-1]||0,holeIndices[i]||positions.length);paths.push(this.getSubLayerRow({path:path},object,objectInfo.index))}else paths.push(this.getSubLayerRow({path:positions},object,objectInfo.index))}return paths}renderLayers(){const{data:data,_dataDiff:_dataDiff,stroked:stroked,filled:filled,extruded:extruded,wireframe:wireframe,_normalize:_normalize,_windingOrder:_windingOrder,elevationScale:elevationScale,transitions:transitions,positionFormat:positionFormat}=this.props,{lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels,lineJointRounded:lineJointRounded,lineMiterLimit:lineMiterLimit,lineDashJustified:lineDashJustified}=this.props,{getFillColor:getFillColor,getLineColor:getLineColor,getLineWidth:getLineWidth,getLineDashArray:getLineDashArray,getElevation:getElevation,getPolygon:getPolygon,updateTriggers:updateTriggers,material:material}=this.props,{paths:paths,pathsDiff:pathsDiff}=this.state,FillLayer=this.getSubLayerClass("fill",_solid_polygon_layer_solid_polygon_layer__WEBPACK_IMPORTED_MODULE_5__.Z),StrokeLayer=this.getSubLayerClass("stroke",_path_layer_path_layer__WEBPACK_IMPORTED_MODULE_6__.Z),polygonLayer=this.shouldRenderSubLayer("fill",paths)&&new FillLayer({_dataDiff:_dataDiff,extruded:extruded,elevationScale:elevationScale,filled:filled,wireframe:wireframe,_normalize:_normalize,_windingOrder:_windingOrder,getElevation:getElevation,getFillColor:getFillColor,getLineColor:extruded&&wireframe?getLineColor:defaultLineColor,material:material,transitions:transitions},this.getSubLayerProps({id:"fill",updateTriggers:updateTriggers&&{getPolygon:updateTriggers.getPolygon,getElevation:updateTriggers.getElevation,getFillColor:updateTriggers.getFillColor,lineColors:extruded&&wireframe,getLineColor:updateTriggers.getLineColor}}),{data:data,positionFormat:positionFormat,getPolygon:getPolygon});return[!extruded&&polygonLayer,!extruded&&stroked&&this.shouldRenderSubLayer("stroke",paths)&&new StrokeLayer({_dataDiff:pathsDiff&&(()=>pathsDiff),widthUnits:lineWidthUnits,widthScale:lineWidthScale,widthMinPixels:lineWidthMinPixels,widthMaxPixels:lineWidthMaxPixels,jointRounded:lineJointRounded,miterLimit:lineMiterLimit,dashJustified:lineDashJustified,_pathType:"loop",transitions:transitions&&{getWidth:transitions.getLineWidth,getColor:transitions.getLineColor,getPath:transitions.getPolygon},getColor:this.getSubLayerAccessor(getLineColor),getWidth:this.getSubLayerAccessor(getLineWidth),getDashArray:this.getSubLayerAccessor(getLineDashArray)},this.getSubLayerProps({id:"stroke",updateTriggers:updateTriggers&&{getWidth:updateTriggers.getLineWidth,getColor:updateTriggers.getLineColor,getDashArray:updateTriggers.getLineDashArray}}),{data:paths,positionFormat:positionFormat,getPath:x=>x.path}),extruded&&polygonLayer]}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__.Z)(PolygonLayer,"layerName","PolygonLayer"),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__.Z)(PolygonLayer,"defaultProps",defaultProps)},"./node_modules/@deck.gl/layers/dist/esm/scatterplot-layer/scatterplot-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ScatterplotLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const DEFAULT_COLOR=[0,0,0,255],defaultProps={radiusUnits:"meters",radiusScale:{type:"number",min:0,value:1},radiusMinPixels:{type:"number",min:0,value:0},radiusMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},lineWidthUnits:"meters",lineWidthScale:{type:"number",min:0,value:1},lineWidthMinPixels:{type:"number",min:0,value:0},lineWidthMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},stroked:!1,filled:!0,billboard:!1,antialiasing:!0,getPosition:{type:"accessor",value:x=>x.position},getRadius:{type:"accessor",value:1},getFillColor:{type:"accessor",value:DEFAULT_COLOR},getLineColor:{type:"accessor",value:DEFAULT_COLOR},getLineWidth:{type:"accessor",value:1},strokeWidth:{deprecatedFor:"getLineWidth"},outline:{deprecatedFor:"stroked"},getColor:{deprecatedFor:["getFillColor","getLineColor"]}};class ScatterplotLayer extends lib_layer.Z{getShaders(){return super.getShaders({vs:"#define SHADER_NAME scatterplot-layer-vertex-shader\n\nattribute vec3 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute float instanceRadius;\nattribute float instanceLineWidths;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusScale;\nuniform float radiusMinPixels;\nuniform float radiusMaxPixels;\nuniform float lineWidthScale;\nuniform float lineWidthMinPixels;\nuniform float lineWidthMaxPixels;\nuniform float stroked;\nuniform bool filled;\nuniform bool antialiasing;\nuniform bool billboard;\nuniform int radiusUnits;\nuniform int lineWidthUnits;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n outerRadiusPixels = clamp(\n project_size_to_pixel(radiusScale * instanceRadius, radiusUnits),\n radiusMinPixels, radiusMaxPixels\n );\n float lineWidthPixels = clamp(\n project_size_to_pixel(lineWidthScale * instanceLineWidths, lineWidthUnits),\n lineWidthMinPixels, lineWidthMaxPixels\n );\n outerRadiusPixels += stroked * lineWidthPixels / 2.0;\n float edgePadding = antialiasing ? (outerRadiusPixels + SMOOTH_EDGE_RADIUS) / outerRadiusPixels : 1.0;\n unitPosition = edgePadding * positions.xy;\n geometry.uv = unitPosition;\n geometry.pickingColor = instancePickingColors;\n\n innerUnitRadius = 1.0 - stroked * lineWidthPixels / outerRadiusPixels;\n \n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n vec3 offset = edgePadding * positions * outerRadiusPixels;\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n } else {\n vec3 offset = edgePadding * positions * project_pixel_size(outerRadiusPixels);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset, geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n }\n vFillColor = vec4(instanceFillColors.rgb, instanceFillColors.a * opacity);\n DECKGL_FILTER_COLOR(vFillColor, geometry);\n vLineColor = vec4(instanceLineColors.rgb, instanceLineColors.a * opacity);\n DECKGL_FILTER_COLOR(vLineColor, geometry);\n}\n",fs:"#define SHADER_NAME scatterplot-layer-fragment-shader\n\nprecision highp float;\n\nuniform bool filled;\nuniform float stroked;\nuniform bool antialiasing;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\nvoid main(void) {\n geometry.uv = unitPosition;\n\n float distToCenter = length(unitPosition) * outerRadiusPixels;\n float inCircle = antialiasing ? \n smoothedge(distToCenter, outerRadiusPixels) : \n step(distToCenter, outerRadiusPixels);\n\n if (inCircle == 0.0) {\n discard;\n }\n\n if (stroked > 0.5) {\n float isLine = antialiasing ? \n smoothedge(innerUnitRadius * outerRadiusPixels, distToCenter) :\n step(innerUnitRadius * outerRadiusPixels, distToCenter);\n\n if (filled) {\n gl_FragColor = mix(vFillColor, vLineColor, isLine);\n } else {\n if (isLine == 0.0) {\n discard;\n }\n gl_FragColor = vec4(vLineColor.rgb, vLineColor.a * isLine);\n }\n } else if (!filled) {\n discard;\n } else {\n gl_FragColor = vFillColor;\n }\n\n gl_FragColor.a *= inCircle;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceRadius:{size:1,transition:!0,accessor:"getRadius",defaultValue:1},instanceFillColors:{size:this.props.colorFormat.length,transition:!0,normalized:!0,type:5121,accessor:"getFillColor",defaultValue:[0,0,0,255]},instanceLineColors:{size:this.props.colorFormat.length,transition:!0,normalized:!0,type:5121,accessor:"getLineColor",defaultValue:[0,0,0,255]},instanceLineWidths:{size:1,transition:!0,accessor:"getLineWidth",defaultValue:1}})}updateState(params){if(super.updateState(params),params.changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}}draw({uniforms:uniforms}){const{radiusUnits:radiusUnits,radiusScale:radiusScale,radiusMinPixels:radiusMinPixels,radiusMaxPixels:radiusMaxPixels,stroked:stroked,filled:filled,billboard:billboard,antialiasing:antialiasing,lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels}=this.props;this.state.model.setUniforms(uniforms).setUniforms({stroked:stroked?1:0,filled:filled,billboard:billboard,antialiasing:antialiasing,radiusUnits:constants.iI[radiusUnits],radiusScale:radiusScale,radiusMinPixels:radiusMinPixels,radiusMaxPixels:radiusMaxPixels,lineWidthUnits:constants.iI[lineWidthUnits],lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels}).draw()}_getModel(gl){return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:6,vertexCount:4,attributes:{positions:{size:3,value:new Float32Array([-1,-1,0,1,-1,0,1,1,0,-1,1,0])}}}),isInstanced:!0})}}(0,defineProperty.Z)(ScatterplotLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(ScatterplotLayer,"layerName","ScatterplotLayer")},"./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/polygon.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Fv:function(){return normalize},Gd:function(){return getHoleIndices},k8:function(){return getPositions},mD:function(){return getSurfaceIndices}});var earcut__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/earcut/src/earcut.js"),earcut__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(earcut__WEBPACK_IMPORTED_MODULE_0__),_math_gl_polygon__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/polygon/dist/esm/index.js");const OUTER_POLYGON_WINDING=_math_gl_polygon__WEBPACK_IMPORTED_MODULE_1__.wG.CLOCKWISE,HOLE_POLYGON_WINDING=_math_gl_polygon__WEBPACK_IMPORTED_MODULE_1__.wG.COUNTER_CLOCKWISE,windingOptions={isClosed:!0};function getPositions(polygon){return"positions"in polygon?polygon.positions:polygon}function getHoleIndices(polygon){return"holeIndices"in polygon?polygon.holeIndices:null}function copyNestedRing(target,targetStartIndex,simplePolygon,size,windingDirection){let targetIndex=targetStartIndex;const len=simplePolygon.length;for(let i=0;i=1&&polygon[0].length>=2&&Number.isFinite(polygon[0][0])}(polygon)){let targetIndex=0;for(const[polygonIndex,simplePolygon]of polygon.entries())targetIndex=copyNestedRing(positions,targetIndex,simplePolygon,positionSize,0===polygonIndex?OUTER_POLYGON_WINDING:HOLE_POLYGON_WINDING),holeIndices.push(targetIndex);return holeIndices.pop(),{positions:positions,holeIndices:holeIndices}}return copyNestedRing(positions,0,polygon,positionSize,OUTER_POLYGON_WINDING),positions}function getPlaneArea(positions,xIndex,yIndex){const numVerts=positions.length/3;let area=0;for(let i=0;ipositionIndex/positionSize)));let positions=getPositions(polygon);const is3d=full3d&&3===positionSize;if(preproject){const n=positions.length;positions=positions.slice();const p=[];for(let i=0;ixzArea&&xyArea>yzArea||(xzArea>yzArea?(preproject||(positions=positions.slice()),permutePositions(positions,0,2,1)):(preproject||(positions=positions.slice()),permutePositions(positions,2,0,1)))}return earcut__WEBPACK_IMPORTED_MODULE_0___default()(positions,holeIndices,positionSize)}},"./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/solid-polygon-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return SolidPolygonLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),phong_lighting=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),features=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),webgl_features_table=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),solid_polygon_layer_polygon=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/polygon.js"),tesselator=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/tesselator.js"),esm=__webpack_require__("./node_modules/@math.gl/polygon/dist/esm/index.js");class PolygonTesselator extends tesselator.Z{constructor(opts){const{fp64:fp64,IndexType:IndexType=Uint32Array}=opts;super({...opts,attributes:{positions:{size:3,type:fp64?Float64Array:Float32Array},vertexValid:{type:Uint8ClampedArray,size:1},indices:{type:IndexType,size:1}}})}get(attributeName){const{attributes:attributes}=this;return"indices"===attributeName?attributes.indices&&attributes.indices.subarray(0,this.vertexCount):attributes[attributeName]}updateGeometry(opts){super.updateGeometry(opts);const externalIndices=this.buffers.indices;if(externalIndices)this.vertexCount=(externalIndices.value||externalIndices).length;else if(this.data&&!this.getGeometry)throw new Error("missing indices buffer")}normalizeGeometry(polygon){if(this.normalize){const normalizedPolygon=solid_polygon_layer_polygon.Fv(polygon,this.positionSize);return this.opts.resolution?(0,esm.WZ)(solid_polygon_layer_polygon.k8(normalizedPolygon),solid_polygon_layer_polygon.Gd(normalizedPolygon),{size:this.positionSize,gridResolution:this.opts.resolution,edgeTypes:!0}):this.opts.wrapLongitude?(0,esm.GU)(solid_polygon_layer_polygon.k8(normalizedPolygon),solid_polygon_layer_polygon.Gd(normalizedPolygon),{size:this.positionSize,maxLatitude:86,edgeTypes:!0}):normalizedPolygon}return polygon}getGeometrySize(polygon){if(isCut(polygon)){let size=0;for(const subPolygon of polygon)size+=this.getGeometrySize(subPolygon);return size}return solid_polygon_layer_polygon.k8(polygon).length/this.positionSize}getGeometryFromBuffer(buffer){return this.normalize||!this.buffers.indices?super.getGeometryFromBuffer(buffer):null}updateGeometryAttributes(polygon,context){if(polygon&&isCut(polygon))for(const subPolygon of polygon){const geometrySize=this.getGeometrySize(subPolygon);context.geometrySize=geometrySize,this.updateGeometryAttributes(subPolygon,context),context.vertexStart+=geometrySize,context.indexStart=this.indexStarts[context.geometryIndex+1]}else this._updateIndices(polygon,context),this._updatePositions(polygon,context),this._updateVertexValid(polygon,context)}_updateIndices(polygon,{geometryIndex:geometryIndex,vertexStart:offset,indexStart:indexStart}){const{attributes:attributes,indexStarts:indexStarts,typedArrayManager:typedArrayManager}=this;let target=attributes.indices;if(!target||!polygon)return;let i=indexStart;const indices=solid_polygon_layer_polygon.mD(polygon,this.positionSize,this.opts.preproject,this.opts.full3d);target=typedArrayManager.allocate(target,indexStart+indices.length,{copy:!0});for(let j=0;j2?polygonPositions[j*positionSize+2]:0;positions[3*i]=x,positions[3*i+1]=y,positions[3*i+2]=z}}_updateVertexValid(polygon,{vertexStart:vertexStart,geometrySize:geometrySize}){const{positionSize:positionSize}=this,vertexValid=this.attributes.vertexValid,holeIndices=polygon&&solid_polygon_layer_polygon.Gd(polygon);if(polygon&&polygon.edgeTypes?vertexValid.set(polygon.edgeTypes,vertexStart):vertexValid.fill(1,vertexStart,vertexStart+geometrySize),holeIndices)for(let j=0;j0&&!Number.isFinite(polygon[0])}var solid_polygon_layer_vertex_main_glsl="\nattribute vec2 vertexPositions;\nattribute float vertexValid;\n\nuniform bool extruded;\nuniform bool isWireframe;\nuniform float elevationScale;\nuniform float opacity;\n\nvarying vec4 vColor;\n\nstruct PolygonProps {\n vec4 fillColors;\n vec4 lineColors;\n vec3 positions;\n vec3 nextPositions;\n vec3 pickingColors;\n vec3 positions64Low;\n vec3 nextPositions64Low;\n float elevations;\n};\n\nvec3 project_offset_normal(vec3 vector) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSETS) {\n return normalize(vector * project_uCommonUnitsPerWorldUnit);\n }\n return project_normal(vector);\n}\n\nvoid calculatePosition(PolygonProps props) {\n#ifdef IS_SIDE_VERTEX\n if(vertexValid < 0.5){\n gl_Position = vec4(0.);\n return;\n }\n#endif\n\n vec3 pos;\n vec3 pos64Low;\n vec3 normal;\n vec4 colors = isWireframe ? props.lineColors : props.fillColors;\n\n geometry.worldPosition = props.positions;\n geometry.worldPositionAlt = props.nextPositions;\n geometry.pickingColor = props.pickingColors;\n\n#ifdef IS_SIDE_VERTEX\n pos = mix(props.positions, props.nextPositions, vertexPositions.x);\n pos64Low = mix(props.positions64Low, props.nextPositions64Low, vertexPositions.x);\n#else\n pos = props.positions;\n pos64Low = props.positions64Low;\n#endif\n\n if (extruded) {\n pos.z += props.elevations * vertexPositions.y * elevationScale;\n }\n gl_Position = project_position_to_clipspace(pos, pos64Low, vec3(0.), geometry.position);\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n if (extruded) {\n #ifdef IS_SIDE_VERTEX\n normal = vec3(\n props.positions.y - props.nextPositions.y + (props.positions64Low.y - props.nextPositions64Low.y),\n props.nextPositions.x - props.positions.x + (props.nextPositions64Low.x - props.positions64Low.x),\n 0.0);\n normal = project_offset_normal(normal);\n #else\n normal = project_normal(vec3(0.0, 0.0, 1.0));\n #endif\n geometry.normal = normal;\n vec3 lightColor = lighting_getLightColor(colors.rgb, project_uCameraPosition, geometry.position.xyz, normal);\n vColor = vec4(lightColor, colors.a * opacity);\n } else {\n vColor = vec4(colors.rgb, colors.a * opacity);\n }\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",solid_polygon_layer_vertex_top_glsl="#define SHADER_NAME solid-polygon-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 positions64Low;\nattribute float elevations;\nattribute vec4 fillColors;\nattribute vec4 lineColors;\nattribute vec3 pickingColors;\n\n".concat(solid_polygon_layer_vertex_main_glsl,"\n\nvoid main(void) {\n PolygonProps props;\n\n props.positions = positions;\n props.positions64Low = positions64Low;\n props.elevations = elevations;\n props.fillColors = fillColors;\n props.lineColors = lineColors;\n props.pickingColors = pickingColors;\n\n calculatePosition(props);\n}\n"),solid_polygon_layer_vertex_side_glsl="#define SHADER_NAME solid-polygon-layer-vertex-shader-side\n#define IS_SIDE_VERTEX\n\n\nattribute vec3 instancePositions;\nattribute vec3 nextPositions;\nattribute vec3 instancePositions64Low;\nattribute vec3 nextPositions64Low;\nattribute float instanceElevations;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\n".concat(solid_polygon_layer_vertex_main_glsl,"\n\nvoid main(void) {\n PolygonProps props;\n\n #if RING_WINDING_ORDER_CW == 1\n props.positions = instancePositions;\n props.positions64Low = instancePositions64Low;\n props.nextPositions = nextPositions;\n props.nextPositions64Low = nextPositions64Low;\n #else\n props.positions = nextPositions;\n props.positions64Low = nextPositions64Low;\n props.nextPositions = instancePositions;\n props.nextPositions64Low = instancePositions64Low;\n #endif\n props.elevations = instanceElevations;\n props.fillColors = instanceFillColors;\n props.lineColors = instanceLineColors;\n props.pickingColors = instancePickingColors;\n\n calculatePosition(props);\n}\n");const DEFAULT_COLOR=[0,0,0,255],defaultProps={filled:!0,extruded:!1,wireframe:!1,_normalize:!0,_windingOrder:"CW",_full3d:!1,elevationScale:{type:"number",min:0,value:1},getPolygon:{type:"accessor",value:f=>f.polygon},getElevation:{type:"accessor",value:1e3},getFillColor:{type:"accessor",value:DEFAULT_COLOR},getLineColor:{type:"accessor",value:DEFAULT_COLOR},material:!0},ATTRIBUTE_TRANSITION={enter:(value,chunk)=>chunk.length?chunk.subarray(chunk.length-value.length):value};class SolidPolygonLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(type){return super.getShaders({vs:"top"===type?solid_polygon_layer_vertex_top_glsl:solid_polygon_layer_vertex_side_glsl,fs:"#define SHADER_NAME solid-polygon-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",defines:{RING_WINDING_ORDER_CW:this.props._normalize||"CCW"!==this.props._windingOrder?1:0},modules:[project32.Z,phong_lighting.N,picking.Z]})}get wrapLongitude(){return!1}initializeState(){const{gl:gl,viewport:viewport}=this.context;let{coordinateSystem:coordinateSystem}=this.props;const{_full3d:_full3d}=this.props;let preproject;viewport.isGeospatial&&coordinateSystem===constants.COORDINATE_SYSTEM.DEFAULT&&(coordinateSystem=constants.COORDINATE_SYSTEM.LNGLAT),coordinateSystem===constants.COORDINATE_SYSTEM.LNGLAT&&(preproject=_full3d?viewport.projectPosition.bind(viewport):viewport.projectFlat.bind(viewport)),this.setState({numInstances:0,polygonTesselator:new PolygonTesselator({preproject:preproject,fp64:this.use64bitPositions(),IndexType:!gl||(0,features.ag)(gl,webgl_features_table.h.ELEMENT_INDEX_UINT32)?Uint32Array:Uint16Array})});const attributeManager=this.getAttributeManager();attributeManager.remove(["instancePickingColors"]),attributeManager.add({indices:{size:1,isIndexed:!0,update:this.calculateIndices,noAlloc:true},positions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:ATTRIBUTE_TRANSITION,accessor:"getPolygon",update:this.calculatePositions,noAlloc:true,shaderAttributes:{positions:{vertexOffset:0,divisor:0},instancePositions:{vertexOffset:0,divisor:1},nextPositions:{vertexOffset:1,divisor:1}}},vertexValid:{size:1,divisor:1,type:5121,update:this.calculateVertexValid,noAlloc:true},elevations:{size:1,transition:ATTRIBUTE_TRANSITION,accessor:"getElevation",shaderAttributes:{elevations:{divisor:0},instanceElevations:{divisor:1}}},fillColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:ATTRIBUTE_TRANSITION,accessor:"getFillColor",defaultValue:DEFAULT_COLOR,shaderAttributes:{fillColors:{divisor:0},instanceFillColors:{divisor:1}}},lineColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:ATTRIBUTE_TRANSITION,accessor:"getLineColor",defaultValue:DEFAULT_COLOR,shaderAttributes:{lineColors:{divisor:0},instanceLineColors:{divisor:1}}},pickingColors:{size:3,type:5121,accessor:(object,{index:index,target:value})=>this.encodePickingColor(object&&object.__source?object.__source.index:index,value),shaderAttributes:{pickingColors:{divisor:0},instancePickingColors:{divisor:1}}}})}getPickingInfo(params){const info=super.getPickingInfo(params),{index:index}=info,{data:data}=this.props;return data[0]&&data[0].__source&&(info.object=data.find((d=>d.__source.index===index))),info}disablePickingIndex(objectIndex){const{data:data}=this.props;if(data[0]&&data[0].__source)for(let i=0;imodel.delete())),this.setState(this._getModels(this.context.gl)),attributeManager.invalidateAll())}updateGeometry({props:props,oldProps:oldProps,changeFlags:changeFlags}){if(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getPolygon)){const{polygonTesselator:polygonTesselator}=this.state,buffers=props.data.attributes||{};polygonTesselator.updateGeometry({data:props.data,normalize:props._normalize,geometryBuffer:buffers.getPolygon,buffers:buffers,getGeometry:props.getPolygon,positionFormat:props.positionFormat,wrapLongitude:props.wrapLongitude,resolution:this.context.viewport.resolution,fp64:this.use64bitPositions(),dataChanged:changeFlags.dataChanged,full3d:props._full3d}),this.setState({numInstances:polygonTesselator.instanceCount,startIndices:polygonTesselator.vertexStarts}),changeFlags.dataChanged||this.getAttributeManager().invalidateAll()}}_getModels(gl){const{id:id,filled:filled,extruded:extruded}=this.props;let topModel,sideModel;if(filled){const shaders=this.getShaders("top");shaders.defines.NON_INSTANCED_MODEL=1,topModel=new model.Z(gl,{...shaders,id:"".concat(id,"-top"),drawMode:4,attributes:{vertexPositions:new Float32Array([0,1])},uniforms:{isWireframe:!1,isSideVertex:!1},vertexCount:0,isIndexed:!0})}return extruded&&(sideModel=new model.Z(gl,{...this.getShaders("side"),id:"".concat(id,"-side"),geometry:new geometry.Z({drawMode:1,vertexCount:4,attributes:{vertexPositions:{size:2,value:new Float32Array([1,0,0,0,0,1,1,1])}}}),instanceCount:0,isInstanced:1}),sideModel.userData.excludeAttributes={indices:!0}),{models:[sideModel,topModel].filter(Boolean),topModel:topModel,sideModel:sideModel}}calculateIndices(attribute){const{polygonTesselator:polygonTesselator}=this.state;attribute.startIndices=polygonTesselator.indexStarts,attribute.value=polygonTesselator.get("indices")}calculatePositions(attribute){const{polygonTesselator:polygonTesselator}=this.state;attribute.startIndices=polygonTesselator.vertexStarts,attribute.value=polygonTesselator.get("positions")}calculateVertexValid(attribute){attribute.value=this.state.polygonTesselator.get("vertexValid")}}(0,defineProperty.Z)(SolidPolygonLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(SolidPolygonLayer,"layerName","SolidPolygonLayer")},"./node_modules/@deck.gl/layers/dist/esm/utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function replaceInRange({data:data,getIndex:getIndex,dataRange:dataRange,replace:replace}){const{startRow:startRow=0,endRow:endRow=1/0}=dataRange,count=data.length;let replaceStart=count,replaceEnd=count;for(let i=0;ii&&row>=startRow&&(replaceStart=i),row>=endRow){replaceEnd=i;break}}let index=replaceStart;const endChunk=replaceEnd-replaceStart!==replace.length?data.slice(replaceEnd):void 0;for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:{};const{id:id}=props;this.id=id||(0,utils.hQ)(this.constructor.name),this.display=!0,this.position=new vector3.Z,this.rotation=new vector3.Z,this.scale=new vector3.Z(1,1,1),this.matrix=new matrix4.Z,this.userData={},this.props={},this._setScenegraphNodeProps(props)}delete(){}setProps(props){return this._setScenegraphNodeProps(props),this}toString(){return"{type: ScenegraphNode, id: ".concat(this.id,")}")}getBounds(){return null}setPosition(position){return(0,assert.h)(3===position.length,"setPosition requires vector argument"),this.position=position,this}setRotation(rotation){return(0,assert.h)(3===rotation.length,"setRotation requires vector argument"),this.rotation=rotation,this}setScale(scale){return(0,assert.h)(3===scale.length,"setScale requires vector argument"),this.scale=scale,this}setMatrix(matrix){!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?this.matrix.copy(matrix):this.matrix=matrix}setMatrixComponents(_ref){let{position:position,rotation:rotation,scale:scale,update:update=!0}=_ref;return position&&this.setPosition(position),rotation&&this.setRotation(rotation),scale&&this.setScale(scale),update&&this.updateMatrix(),this}updateMatrix(){const pos=this.position,rot=this.rotation,scale=this.scale;return this.matrix.identity(),this.matrix.translate(pos),this.matrix.rotateXYZ(rot),this.matrix.scale(scale),this}update(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{position:position,rotation:rotation,scale:scale}=options;return position&&this.setPosition(position),rotation&&this.setRotation(rotation),scale&&this.setScale(scale),this.updateMatrix(),this}getCoordinateUniforms(viewMatrix,modelMatrix){(0,assert.h)(viewMatrix),modelMatrix=modelMatrix||this.matrix;const worldMatrix=new matrix4.Z(viewMatrix).multiplyRight(modelMatrix),worldInverse=worldMatrix.invert(),worldInverseTranspose=worldInverse.transpose();return{viewMatrix:viewMatrix,modelMatrix:modelMatrix,objectMatrix:modelMatrix,worldMatrix:worldMatrix,worldInverseMatrix:worldInverse,worldInverseTransposeMatrix:worldInverseTranspose}}_setScenegraphNodeProps(props){"display"in props&&(this.display=props.display),"position"in props&&this.setPosition(props.position),"rotation"in props&&this.setRotation(props.rotation),"scale"in props&&this.setScale(props.scale),"matrix"in props&&this.setMatrix(props.matrix),Object.assign(this.props,props)}}var buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),classes_accessor=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/accessor.js");class GroupNode extends ScenegraphNode{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};props=Array.isArray(props)?{children:props}:props;const{children:children=[]}=props;esm.cM.assert(children.every((child=>child instanceof ScenegraphNode)),"every child must an instance of ScenegraphNode"),super(props),this.children=children}add(){for(var _len=arguments.length,children=new Array(_len),_key=0;_key<_len;_key++)children[_key]=arguments[_key];for(const child of children)Array.isArray(child)?this.add(...child):this.children.push(child);return this}remove(child){const children=this.children,indexOf=children.indexOf(child);return indexOf>-1&&children.splice(indexOf,1),this}removeAll(){return this.children=[],this}delete(){this.children.forEach((child=>child.delete())),this.removeAll(),super.delete()}getBounds(){const result=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];return this.traverse(((node,_ref)=>{let{worldMatrix:worldMatrix}=_ref;const bounds=node.getBounds();if(!bounds)return;const[min,max]=bounds,center=new vector3.Z(min).add(max).divide([2,2,2]);worldMatrix.transformAsPoint(center,center);const halfSize=new vector3.Z(max).subtract(min).divide([2,2,2]);worldMatrix.transformAsVector(halfSize,halfSize);for(let v=0;v<8;v++){const position=new vector3.Z(1&v?-1:1,2&v?-1:1,4&v?-1:1).multiply(halfSize).add(center);for(let i=0;i<3;i++)result[0][i]=Math.min(result[0][i],position[i]),result[1][i]=Math.max(result[1][i],position[i])}})),Number.isFinite(result[0][0])?result:null}traverse(visitor){let{worldMatrix:worldMatrix=new matrix4.Z}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const modelMatrix=new matrix4.Z(worldMatrix).multiplyRight(this.matrix);for(const child of this.children)child instanceof GroupNode?child.traverse(visitor,{worldMatrix:modelMatrix}):visitor(child,{worldMatrix:modelMatrix})}}var quaternion=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/quaternion.js");const ATTRIBUTE_TYPE_TO_COMPONENTS={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array};function accessorToJsArray(accessor){if(!accessor._animation){const ArrayType=ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY[accessor.componentType],components=ATTRIBUTE_TYPE_TO_COMPONENTS[accessor.type],length=components*accessor.count,{buffer:buffer,byteOffset:byteOffset}=accessor.bufferView.data,array=new ArrayType(buffer,byteOffset+(accessor.byteOffset||0),length);if(1===components)accessor._animation=Array.from(array);else{const slicedArray=[];for(let i=0;it>=animationTime)),previousIndex=Math.max(0,nextIndex-1);if(!Array.isArray(target[path]))switch(path){case"translation":target[path]=[0,0,0];break;case"rotation":target[path]=[0,0,0,1];break;case"scale":target[path]=[1,1,1];break;default:esm.cM.warn("Bad animation path ".concat(path))()}(0,assert.h)(target[path].length===output[previousIndex].length);const previousTime=input[previousIndex],nextTime=input[nextIndex];switch(interpolation){case"STEP":!function stepInterpolate(target,path,value){for(let i=0;ipreviousTime){const ratio=(animationTime-previousTime)/(nextTime-previousTime);!function linearInterpolate(target,path,start,stop,ratio){if("rotation"===path){gltf_animator_quaternion.slerp({start:start,target:stop,ratio:ratio});for(let i=0;ipreviousTime){const ratio=(animationTime-previousTime)/(nextTime-previousTime),tDiff=nextTime-previousTime;!function cubicsplineInterpolate(target,path,_ref){let{p0:p0,outTangent0:outTangent0,inTangent1:inTangent1,p1:p1,tDiff:tDiff,ratio:t}=_ref;for(let i=0;i{let{sampler:sampler,target:target,path:path}=_ref3;interpolate(time,sampler,target,path),function applyTranslationRotationScale(gltfNode,node){if(node.matrix.identity(),gltfNode.translation&&node.matrix.translate(gltfNode.translation),gltfNode.rotation){const rotationMatrix=helperMatrix.fromQuaternion(gltfNode.rotation);node.matrix.multiplyRight(rotationMatrix)}gltfNode.scale&&node.matrix.scale(gltfNode.scale)}(target,target._node)}))}}class GLTFAnimator{constructor(gltf){this.animations=gltf.animations.map(((animation,index)=>{const name=animation.name||"Animation-".concat(index),samplers=animation.samplers.map((_ref4=>{let{input:input,interpolation:interpolation="LINEAR",output:output}=_ref4;return{input:accessorToJsArray(gltf.accessors[input]),interpolation:interpolation,output:accessorToJsArray(gltf.accessors[output])}})),channels=animation.channels.map((_ref5=>{let{sampler:sampler,target:target}=_ref5;return{sampler:samplers[sampler],target:gltf.nodes[target.node],path:target.path}}));return new GLTFAnimation({name:name,channels:channels})}))}animate(time){this.setTime(time)}setTime(time){this.animations.forEach((animation=>animation.animate(time)))}getAnimations(){return this.animations}}var model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js");class ModelNode extends ScenegraphNode{constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(props),this.onBeforeRender=null,this.AfterRender=null,gl instanceof model.Z?(this.model=gl,this._setModelNodeProps(props)):this.model=new model.Z(gl,props),this.bounds=null,this.managedResources=props.managedResources||[]}setProps(props){return super.setProps(props),this._setModelNodeProps(props),this}getBounds(){return this.bounds}delete(){this.model&&(this.model.delete(),this.model=null),this.managedResources.forEach((resource=>resource.delete())),this.managedResources=[]}draw(){return this.model.draw(...arguments)}setUniforms(){return this.model.setUniforms(...arguments),this}setAttributes(){return this.model.setAttributes(...arguments),this}updateModuleSettings(){return this.model.updateModuleSettings(...arguments),this}_setModelNodeProps(props){this.model.setProps(props)}}var gltf_material_parser=__webpack_require__("./node_modules/@luma.gl/experimental/dist/esm/gltf/gltf-material-parser.js");function addVersionToShader(gl,source){return(0,esm.D0)(gl)?"#version 300 es\n".concat(source):source}const gltf_instantiator_ATTRIBUTE_TYPE_TO_COMPONENTS={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},DEFAULT_OPTIONS={modelOptions:{},pbrDebug:!1,imageBasedLightingEnvironment:null,lights:!0,useTangents:!1};class GLTFInstantiator{constructor(gl){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=gl,this.options=Object.assign({},DEFAULT_OPTIONS,options)}instantiate(gltf){this.gltf=gltf;return(gltf.scenes||[]).map((scene=>this.createScene(scene)))}createAnimator(){return Array.isArray(this.gltf.animations)?new GLTFAnimator(this.gltf):null}createScene(gltfScene){const nodes=(gltfScene.nodes||[]).map((node=>this.createNode(node)));return new GroupNode({id:gltfScene.name||gltfScene.id,children:nodes})}createNode(gltfNode){if(!gltfNode._node){const children=(gltfNode.children||[]).map((child=>this.createNode(child)));gltfNode.mesh&&children.push(this.createMesh(gltfNode.mesh));const node=new GroupNode({id:gltfNode.name||gltfNode.id,children:children});if(gltfNode.matrix)node.setMatrix(gltfNode.matrix);else{if(node.matrix.identity(),gltfNode.translation&&node.matrix.translate(gltfNode.translation),gltfNode.rotation){const rotationMatrix=(new matrix4.Z).fromQuaternion(gltfNode.rotation);node.matrix.multiplyRight(rotationMatrix)}gltfNode.scale&&node.matrix.scale(gltfNode.scale)}gltfNode._node=node}return gltfNode._node}createMesh(gltfMesh){if(!gltfMesh._mesh){const primitives=(gltfMesh.primitives||[]).map(((gltfPrimitive,i)=>this.createPrimitive(gltfPrimitive,i,gltfMesh))),mesh=new GroupNode({id:gltfMesh.name||gltfMesh.id,children:primitives});gltfMesh._mesh=mesh}return gltfMesh._mesh}getVertexCount(attributes){esm.cM.warn("getVertexCount() not found")()}createPrimitive(gltfPrimitive,i,gltfMesh){const model=function createGLTFModel(gl,options){const{id:id,drawMode:drawMode,vertexCount:vertexCount,attributes:attributes,modelOptions:modelOptions}=options,materialParser=new gltf_material_parser.Z(gl,options);esm.cM.info(4,"createGLTFModel defines: ",materialParser.defines)();const managedResources=[];managedResources.push(...materialParser.generatedTextures),managedResources.push(...Object.values(attributes).map((attribute=>attribute.buffer)));const model=new ModelNode(gl,{id:id,drawMode:drawMode,vertexCount:vertexCount,modules:[pbr.b],parameters:materialParser.parameters,vs:addVersionToShader(gl,"\n#if (__VERSION__ < 300)\n #define _attr attribute\n#else\n #define _attr in\n#endif\n\n _attr vec4 POSITION;\n\n #ifdef HAS_NORMALS\n _attr vec4 NORMAL;\n #endif\n\n #ifdef HAS_TANGENTS\n _attr vec4 TANGENT;\n #endif\n\n #ifdef HAS_UV\n _attr vec2 TEXCOORD_0;\n #endif\n\n void main(void) {\n vec4 _NORMAL = vec4(0.);\n vec4 _TANGENT = vec4(0.);\n vec2 _TEXCOORD_0 = vec2(0.);\n\n #ifdef HAS_NORMALS\n _NORMAL = NORMAL;\n #endif\n\n #ifdef HAS_TANGENTS\n _TANGENT = TANGENT;\n #endif\n\n #ifdef HAS_UV\n _TEXCOORD_0 = TEXCOORD_0;\n #endif\n\n pbr_setPositionNormalTangentUV(POSITION, _NORMAL, _TANGENT, _TEXCOORD_0);\n gl_Position = u_MVPMatrix * POSITION;\n }\n"),fs:addVersionToShader(gl,"\n#if (__VERSION__ < 300)\n #define fragmentColor gl_FragColor\n#else\n out vec4 fragmentColor;\n#endif\n\n void main(void) {\n fragmentColor = pbr_filterColor(vec4(0));\n }\n"),managedResources:managedResources,...modelOptions,defines:{...materialParser.defines,...modelOptions.defines}});return model.setProps({attributes:attributes}),model.setUniforms(materialParser.uniforms),model}(this.gl,Object.assign({id:gltfPrimitive.name||"".concat(gltfMesh.name||gltfMesh.id,"-primitive-").concat(i),drawMode:gltfPrimitive.mode||4,vertexCount:gltfPrimitive.indices?gltfPrimitive.indices.count:this.getVertexCount(gltfPrimitive.attributes),attributes:this.createAttributes(gltfPrimitive.attributes,gltfPrimitive.indices),material:gltfPrimitive.material},this.options));return model.bounds=[gltfPrimitive.attributes.POSITION.min,gltfPrimitive.attributes.POSITION.max],model}createAttributes(attributes,indices){const loadedAttributes={};return Object.keys(attributes).forEach((attrName=>{loadedAttributes[attrName]=this.createAccessor(attributes[attrName],this.createBuffer(attributes[attrName],this.gl.ARRAY_BUFFER))})),indices&&(loadedAttributes.indices=this.createAccessor(indices,this.createBuffer(indices,this.gl.ELEMENT_ARRAY_BUFFER))),esm.cM.info(4,"glTF Attributes",{attributes:attributes,indices:indices,generated:loadedAttributes})(),loadedAttributes}createBuffer(attribute,target){attribute.bufferView||(attribute.bufferView={});const{bufferView:bufferView}=attribute;return bufferView.lumaBuffers||(bufferView.lumaBuffers={}),bufferView.lumaBuffers[target]||(bufferView.lumaBuffers[target]=new buffer.Z(this.gl,{id:"from-".concat(bufferView.id),data:bufferView.data||attribute.value,target:target})),bufferView.lumaBuffers[target]}createAccessor(accessor,buffer){return new classes_accessor.Z({buffer:buffer,offset:accessor.byteOffset||0,stride:accessor.bufferView.byteStride||0,type:accessor.componentType,size:gltf_instantiator_ATTRIBUTE_TYPE_TO_COMPONENTS[accessor.type]})}createSampler(gltfSampler){return gltfSampler}needsPOT(){return!1}}var gltf_loader=__webpack_require__("./node_modules/@loaders.gl/gltf/dist/esm/gltf-loader.js");async function waitForGLTFAssets(gltfObjects){const remaining=[];return gltfObjects.scenes.forEach((scene=>{scene.traverse((model=>{Object.values(model.model.getUniforms()).forEach((uniform=>{!1===uniform.loaded&&remaining.push(uniform)}))}))})),await async function waitWhileCondition(condition){for(;condition();)await new Promise((resolve=>requestAnimationFrame(resolve)))}((()=>remaining.some((uniform=>!uniform.loaded))))}var matrix=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/utils/matrix.js");const DEFAULT_COLOR=[255,255,255,255],defaultProps={scenegraph:{type:"object",value:null,async:!0},getScene:gltf=>gltf&&gltf.scenes?"object"==typeof gltf.scene?gltf.scene:gltf.scenes[gltf.scene||0]:gltf,getAnimator:scenegraph=>scenegraph&&scenegraph.animator,_animations:null,sizeScale:{type:"number",value:1,min:0},sizeMinPixels:{type:"number",min:0,value:0},sizeMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},getPosition:{type:"accessor",value:x=>x.position},getColor:{type:"accessor",value:DEFAULT_COLOR},_lighting:"flat",_imageBasedLightingEnvironment:null,getOrientation:{type:"accessor",value:[0,0,0]},getScale:{type:"accessor",value:[1,1,1]},getTranslation:{type:"accessor",value:[0,0,0]},getTransformMatrix:{type:"accessor",value:[]},loaders:[gltf_loader.E]};class ScenegraphLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){const modules=[project32.Z,picking.Z];return"pbr"===this.props._lighting&&modules.push(pbr.b),super.getShaders({vs:"#version 300 es\nin vec3 instancePositions;\nin vec3 instancePositions64Low;\nin vec4 instanceColors;\nin vec3 instancePickingColors;\nin mat3 instanceModelMatrix;\nin vec3 instanceTranslation;\nuniform float sizeScale;\nuniform float sizeMinPixels;\nuniform float sizeMaxPixels;\nuniform mat4 sceneModelMatrix;\nuniform bool composeModelMatrix;\nin vec4 POSITION;\n\n#ifdef HAS_UV\n in vec2 TEXCOORD_0;\n#endif\n\n#ifdef MODULE_PBR\n #ifdef HAS_NORMALS\n in vec4 NORMAL;\n #endif\n#endif\nout vec4 vColor;\n#ifndef MODULE_PBR\n #ifdef HAS_UV\n out vec2 vTEXCOORD_0;\n #endif\n#endif\nvoid main(void) {\n #if defined(HAS_UV) && !defined(MODULE_PBR)\n vTEXCOORD_0 = TEXCOORD_0;\n geometry.uv = vTEXCOORD_0;\n #endif\n\n geometry.worldPosition = instancePositions;\n geometry.pickingColor = instancePickingColors;\n\n vec3 normal = vec3(0.0, 0.0, 1.0);\n #ifdef MODULE_PBR\n #ifdef HAS_NORMALS\n normal = instanceModelMatrix * (sceneModelMatrix * vec4(NORMAL.xyz, 0.0)).xyz;\n #endif\n #endif\n\n float originalSize = project_size_to_pixel(sizeScale);\n float clampedSize = clamp(originalSize, sizeMinPixels, sizeMaxPixels);\n\n vec3 pos = (instanceModelMatrix * (sceneModelMatrix * POSITION).xyz) * sizeScale * (clampedSize / originalSize) + instanceTranslation;\n if(composeModelMatrix) {\n DECKGL_FILTER_SIZE(pos, geometry);\n geometry.normal = project_normal(normal);\n geometry.worldPosition += pos;\n gl_Position = project_position_to_clipspace(pos + instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n }\n else {\n pos = project_size(pos);\n DECKGL_FILTER_SIZE(pos, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, pos, geometry.position);\n geometry.normal = project_normal(normal);\n }\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n #ifdef MODULE_PBR\n pbr_vPosition = geometry.position.xyz;\n #ifdef HAS_NORMALS\n pbr_vNormal = geometry.normal;\n #endif\n\n #ifdef HAS_UV\n pbr_vUV = TEXCOORD_0;\n #else\n pbr_vUV = vec2(0., 0.);\n #endif\n geometry.uv = pbr_vUV;\n #endif\n\n vColor = instanceColors;\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#version 300 es\nuniform float opacity;\nin vec4 vColor;\n\nout vec4 fragmentColor;\n#ifndef MODULE_PBR\n #if defined(HAS_UV) && defined(HAS_BASECOLORMAP)\n in vec2 vTEXCOORD_0;\n uniform sampler2D u_BaseColorSampler;\n #endif\n#endif\n\nvoid main(void) {\n #ifdef MODULE_PBR\n fragmentColor = vColor * pbr_filterColor(vec4(0));\n geometry.uv = pbr_vUV;\n #else\n #if defined(HAS_UV) && defined(HAS_BASECOLORMAP)\n fragmentColor = vColor * texture2D(u_BaseColorSampler, vTEXCOORD_0);\n geometry.uv = vTEXCOORD_0;\n #else\n fragmentColor = vColor;\n #endif\n #endif\n\n fragmentColor.a *= opacity;\n DECKGL_FILTER_COLOR(fragmentColor, geometry);\n}\n",modules:modules})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),accessor:"getPosition",transition:!0},instanceColors:{type:5121,size:this.props.colorFormat.length,accessor:"getColor",normalized:!0,defaultValue:DEFAULT_COLOR,transition:!0},instanceModelMatrix:matrix.P})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps}=params;props.scenegraph!==oldProps.scenegraph?this._updateScenegraph():props._animations!==oldProps._animations&&this._applyAnimationsProp(this.state.scenegraph,this.state.animator,props._animations)}finalizeState(context){super.finalizeState(context),this._deleteScenegraph()}get isLoaded(){var _this$state;return(null===(_this$state=this.state)||void 0===_this$state?void 0:_this$state.scenegraph)&&super.isLoaded}_updateScenegraph(){const props=this.props,{gl:gl}=this.context;let scenegraphData=null;if(props.scenegraph instanceof ScenegraphNode)scenegraphData={scenes:[props.scenegraph]};else if(props.scenegraph&&!props.scenegraph.gltf){const gltf=props.scenegraph,gltfObjects=function createGLTFObjects(gl,gltf,options){const instantiator=new GLTFInstantiator(gl,options);return{scenes:instantiator.instantiate(gltf),animator:instantiator.createAnimator()}}(gl,gltf,this._getModelOptions());scenegraphData={gltf:gltf,...gltfObjects},waitForGLTFAssets(gltfObjects).then((()=>this.setNeedsRedraw()))}else props.scenegraph&&(log.Z.deprecated("ScenegraphLayer.props.scenegraph","Use GLTFLoader instead of GLTFScenegraphLoader")(),scenegraphData=props.scenegraph);const options={layer:this,gl:gl},scenegraph=props.getScene(scenegraphData,options),animator=props.getAnimator(scenegraphData,options);scenegraph instanceof ScenegraphNode?(this._deleteScenegraph(),this._applyAllAttributes(scenegraph),this._applyAnimationsProp(scenegraph,animator,props._animations),this.setState({scenegraph:scenegraph,animator:animator})):null!==scenegraph&&log.Z.warn("invalid scenegraph:",scenegraph)()}_applyAllAttributes(scenegraph){if(this.state.attributesAvailable){const allAttributes=this.getAttributeManager().getAttributes();scenegraph.traverse((model=>{this._setModelAttributes(model.model,allAttributes)}))}}_applyAnimationsProp(scenegraph,animator,animationsProp){if(!scenegraph||!animator||!animationsProp)return;const animations=animator.getAnimations();Object.keys(animationsProp).sort().forEach((key=>{const value=animationsProp[key];if("*"===key)animations.forEach((animation=>{Object.assign(animation,value)}));else if(Number.isFinite(Number(key))){const number=Number(key);number>=0&&numbername===key));findResult?Object.assign(findResult,value):log.Z.warn("animation ".concat(key," not found"))()}}))}_deleteScenegraph(){const{scenegraph:scenegraph}=this.state;scenegraph instanceof ScenegraphNode&&scenegraph.delete()}_getModelOptions(){const{_imageBasedLightingEnvironment:_imageBasedLightingEnvironment}=this.props;let env=null;return _imageBasedLightingEnvironment&&(env="function"==typeof _imageBasedLightingEnvironment?_imageBasedLightingEnvironment({gl:this.context.gl,layer:this}):_imageBasedLightingEnvironment),{gl:this.context.gl,waitForFullLoad:!0,imageBasedLightingEnvironment:env,modelOptions:{isInstanced:!0,transpileToGLSL100:!(0,esm.D0)(this.context.gl),...this.getShaders()},useTangents:!1}}updateAttributes(changedAttributes){this.setState({attributesAvailable:!0}),this.state.scenegraph&&this.state.scenegraph.traverse((model=>{this._setModelAttributes(model.model,changedAttributes)}))}draw({moduleParameters:moduleParameters=null,parameters:parameters={},context:context}){if(!this.state.scenegraph)return;this.props._animations&&this.state.animator&&(this.state.animator.animate(context.timeline.getTime()),this.setNeedsRedraw());const{viewport:viewport}=this.context,{sizeScale:sizeScale,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels,opacity:opacity,coordinateSystem:coordinateSystem}=this.props,numInstances=this.getNumInstances();this.state.scenegraph.traverse(((model,{worldMatrix:worldMatrix})=>{model.model.setInstanceCount(numInstances),model.updateModuleSettings(moduleParameters),model.draw({parameters:parameters,uniforms:{sizeScale:sizeScale,opacity:opacity,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels,composeModelMatrix:(0,matrix.X)(viewport,coordinateSystem),sceneModelMatrix:worldMatrix,u_Camera:model.model.getUniforms().project_uCameraPosition}})}))}}(0,defineProperty.Z)(ScenegraphLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(ScenegraphLayer,"layerName","ScenegraphLayer")},"./node_modules/@deck.gl/mesh-layers/dist/esm/simple-mesh-layer/simple-mesh-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return SimpleMeshLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),phong_lighting=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),lib_model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),features=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),webgl_features_table=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),matrix=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/utils/matrix.js"),mesh_utils=__webpack_require__("./node_modules/@loaders.gl/schema/dist/esm/category/mesh/mesh-utils.js");function validateGeometryAttributes(attributes,useMeshColors){(attributes.COLOR_0||attributes.colors)&&useMeshColors||(attributes.colors={constant:!0,value:new Float32Array([1,1,1])}),log.Z.assert(attributes.positions||attributes.POSITION,'no "postions" or "POSITION" attribute in mesh')}function getGeometry(data,useMeshColors){if(data.attributes)return validateGeometryAttributes(data.attributes,useMeshColors),data instanceof geometry.Z?data:new geometry.Z(data);if(data.positions||data.POSITION)return validateGeometryAttributes(data,useMeshColors),new geometry.Z({attributes:data});throw Error("Invalid mesh")}const defaultProps={mesh:{type:"object",value:null,async:!0},texture:{type:"image",value:null,async:!0},sizeScale:{type:"number",value:1,min:0},_useMeshColors:{type:"boolean",value:!1},_instanced:!0,wireframe:!1,material:!0,getPosition:{type:"accessor",value:x=>x.position},getColor:{type:"accessor",value:[0,0,0,255]},getOrientation:{type:"accessor",value:[0,0,0]},getScale:{type:"accessor",value:[1,1,1]},getTranslation:{type:"accessor",value:[0,0,0]},getTransformMatrix:{type:"accessor",value:[]},textureParameters:{type:"object",ignore:!0}};class SimpleMeshLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){const transpileToGLSL100=!(0,esm.D0)(this.context.gl),defines={};return(0,features.U6)(this.context.gl,webgl_features_table.h.GLSL_DERIVATIVES)&&(defines.DERIVATIVES_AVAILABLE=1),super.getShaders({vs:"#version 300 es\n#define SHADER_NAME simple-mesh-layer-vs\nuniform float sizeScale;\nuniform bool composeModelMatrix;\nin vec3 positions;\nin vec3 normals;\nin vec3 colors;\nin vec2 texCoords;\nin vec3 instancePositions;\nin vec3 instancePositions64Low;\nin vec4 instanceColors;\nin vec3 instancePickingColors;\nin mat3 instanceModelMatrix;\nin vec3 instanceTranslation;\nout vec2 vTexCoord;\nout vec3 cameraPosition;\nout vec3 normals_commonspace;\nout vec4 position_commonspace;\nout vec4 vColor;\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.uv = texCoords;\n geometry.pickingColor = instancePickingColors;\n\n vTexCoord = texCoords;\n cameraPosition = project_uCameraPosition;\n vColor = vec4(colors * instanceColors.rgb, instanceColors.a);\n\n vec3 pos = (instanceModelMatrix * positions) * sizeScale + instanceTranslation;\n\n if (composeModelMatrix) {\n DECKGL_FILTER_SIZE(pos, geometry);\n normals_commonspace = project_normal(instanceModelMatrix * normals);\n geometry.worldPosition += pos;\n gl_Position = project_position_to_clipspace(pos + instancePositions, instancePositions64Low, vec3(0.0), position_commonspace);\n geometry.position = position_commonspace;\n }\n else {\n pos = project_size(pos);\n DECKGL_FILTER_SIZE(pos, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, pos, position_commonspace);\n geometry.position = position_commonspace;\n normals_commonspace = project_normal(instanceModelMatrix * normals);\n }\n\n geometry.normal = normals_commonspace;\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#version 300 es\n#define SHADER_NAME simple-mesh-layer-fs\n\nprecision highp float;\n\nuniform bool hasTexture;\nuniform sampler2D sampler;\nuniform bool flatShading;\nuniform float opacity;\n\nin vec2 vTexCoord;\nin vec3 cameraPosition;\nin vec3 normals_commonspace;\nin vec4 position_commonspace;\nin vec4 vColor;\n\nout vec4 fragColor;\n\nvoid main(void) {\n geometry.uv = vTexCoord;\n\n vec3 normal;\n if (flatShading) {\n#ifdef DERIVATIVES_AVAILABLE\n normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n#else\n normal = vec3(0.0, 0.0, 1.0);\n#endif\n } else {\n normal = normals_commonspace;\n }\n\n vec4 color = hasTexture ? texture(sampler, vTexCoord) : vColor;\n DECKGL_FILTER_COLOR(color, geometry);\n\n vec3 lightColor = lighting_getLightColor(color.rgb, cameraPosition, position_commonspace.xyz, normal);\n fragColor = vec4(lightColor, color.a * opacity);\n}\n",modules:[project32.Z,phong_lighting.s,picking.Z],transpileToGLSL100:transpileToGLSL100,defines:defines})}getBounds(){var _mesh$header;if(this.props._instanced)return super.getBounds();let result=this.state.positionBounds;if(result)return result;const{mesh:mesh}=this.props;if(!mesh)return null;if(result=null===(_mesh$header=mesh.header)||void 0===_mesh$header?void 0:_mesh$header.boundingBox,!result){const{attributes:attributes}=getGeometry(mesh,this.props._useMeshColors);attributes.POSITION=attributes.POSITION||attributes.positions,result=(0,mesh_utils.v)(attributes)}return this.state.positionBounds=result,result}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{transition:!0,type:5130,fp64:this.use64bitPositions(),size:3,accessor:"getPosition"},instanceColors:{type:5121,transition:!0,size:this.props.colorFormat.length,normalized:!0,accessor:"getColor",defaultValue:[0,0,0,255]},instanceModelMatrix:matrix.P}),this.setState({emptyTexture:new texture_2d.Z(this.context.gl,{data:new Uint8Array(4),width:1,height:1})})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps,changeFlags:changeFlags}=params;if(props.mesh!==oldProps.mesh||changeFlags.extensionsChanged){var _this$state$model;if(this.state.positionBounds=null,null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),props.mesh){this.state.model=this.getModel(props.mesh);const attributes=props.mesh.attributes||props.mesh;this.setState({hasNormals:Boolean(attributes.NORMAL||attributes.normals)})}this.getAttributeManager().invalidateAll()}props.texture!==oldProps.texture&&this.setTexture(props.texture),this.state.model&&this.state.model.setDrawMode(this.props.wireframe?3:4)}finalizeState(context){super.finalizeState(context),this.state.emptyTexture.delete()}draw({uniforms:uniforms}){if(!this.state.model)return;const{viewport:viewport}=this.context,{sizeScale:sizeScale,coordinateSystem:coordinateSystem,_instanced:_instanced}=this.props;this.state.model.setUniforms(uniforms).setUniforms({sizeScale:sizeScale,composeModelMatrix:!_instanced||(0,matrix.X)(viewport,coordinateSystem),flatShading:!this.state.hasNormals}).draw()}get isLoaded(){var _this$state;return(null===(_this$state=this.state)||void 0===_this$state?void 0:_this$state.model)&&super.isLoaded}getModel(mesh){const model=new lib_model.Z(this.context.gl,{...this.getShaders(),id:this.props.id,geometry:getGeometry(mesh,this.props._useMeshColors),isInstanced:!0}),{texture:texture}=this.props,{emptyTexture:emptyTexture}=this.state;return model.setUniforms({sampler:texture||emptyTexture,hasTexture:Boolean(texture)}),model}setTexture(texture){const{emptyTexture:emptyTexture,model:model}=this.state;model&&model.setUniforms({sampler:texture||emptyTexture,hasTexture:Boolean(texture)})}}(0,defineProperty.Z)(SimpleMeshLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(SimpleMeshLayer,"layerName","SimpleMeshLayer")},"./node_modules/@deck.gl/mesh-layers/dist/esm/utils/matrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return MATRIX_ATTRIBUTES},X:function(){return shouldComposeModelMatrix}});var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");const RADIAN_PER_DEGREE=Math.PI/180,modelMatrix=new Float32Array(16),valueArray=new Float32Array(12);function calculateTransformMatrix(targetMatrix,orientation,scale){const pitch=orientation[0]*RADIAN_PER_DEGREE,yaw=orientation[1]*RADIAN_PER_DEGREE,roll=orientation[2]*RADIAN_PER_DEGREE,sr=Math.sin(roll),sp=Math.sin(pitch),sw=Math.sin(yaw),cr=Math.cos(roll),cp=Math.cos(pitch),cw=Math.cos(yaw),scx=scale[0],scy=scale[1],scz=scale[2];targetMatrix[0]=scx*cw*cp,targetMatrix[1]=scx*sw*cp,targetMatrix[2]=scx*-sp,targetMatrix[3]=scy*(-sw*cr+cw*sp*sr),targetMatrix[4]=scy*(cw*cr+sw*sp*sr),targetMatrix[5]=scy*cp*sr,targetMatrix[6]=scz*(sw*sr+cw*sp*cr),targetMatrix[7]=scz*(-cw*sr+sw*sp*cr),targetMatrix[8]=scz*cp*cr}function getExtendedMat3FromMat4(mat4){return mat4[0]=mat4[0],mat4[1]=mat4[1],mat4[2]=mat4[2],mat4[3]=mat4[4],mat4[4]=mat4[5],mat4[5]=mat4[6],mat4[6]=mat4[8],mat4[7]=mat4[9],mat4[8]=mat4[10],mat4[9]=mat4[12],mat4[10]=mat4[13],mat4[11]=mat4[14],mat4.subarray(0,12)}const MATRIX_ATTRIBUTES={size:12,accessor:["getOrientation","getScale","getTranslation","getTransformMatrix"],shaderAttributes:{instanceModelMatrix__LOCATION_0:{size:3,elementOffset:0},instanceModelMatrix__LOCATION_1:{size:3,elementOffset:3},instanceModelMatrix__LOCATION_2:{size:3,elementOffset:6},instanceTranslation:{size:3,elementOffset:9}},update(attribute,{startRow:startRow,endRow:endRow}){const{data:data,getOrientation:getOrientation,getScale:getScale,getTranslation:getTranslation,getTransformMatrix:getTransformMatrix}=this.props,arrayMatrix=Array.isArray(getTransformMatrix),constantMatrix=arrayMatrix&&16===getTransformMatrix.length,constantScale=Array.isArray(getScale),constantOrientation=Array.isArray(getOrientation),constantTranslation=Array.isArray(getTranslation),hasMatrix=constantMatrix||!arrayMatrix&&Boolean(getTransformMatrix(data[0]));attribute.constant=hasMatrix?constantMatrix:constantOrientation&&constantScale&&constantTranslation;const instanceModelMatrixData=attribute.value;if(attribute.constant){let matrix;if(hasMatrix)modelMatrix.set(getTransformMatrix),matrix=getExtendedMat3FromMat4(modelMatrix);else{matrix=valueArray;calculateTransformMatrix(matrix,getOrientation,getScale),matrix.set(getTranslation,9)}attribute.value=new Float32Array(matrix)}else{let i=startRow*attribute.size;const{iterable:iterable,objectInfo:objectInfo}=(0,_deck_gl_core__WEBPACK_IMPORTED_MODULE_0__.jB)(data,startRow,endRow);for(const object of iterable){let matrix;if(objectInfo.index++,hasMatrix)modelMatrix.set(constantMatrix?getTransformMatrix:getTransformMatrix(object,objectInfo)),matrix=getExtendedMat3FromMat4(modelMatrix);else{matrix=valueArray;calculateTransformMatrix(matrix,constantOrientation?getOrientation:getOrientation(object,objectInfo),constantScale?getScale:getScale(object,objectInfo)),matrix.set(constantTranslation?getTranslation:getTranslation(object,objectInfo),9)}instanceModelMatrixData[i++]=matrix[0],instanceModelMatrixData[i++]=matrix[1],instanceModelMatrixData[i++]=matrix[2],instanceModelMatrixData[i++]=matrix[3],instanceModelMatrixData[i++]=matrix[4],instanceModelMatrixData[i++]=matrix[5],instanceModelMatrixData[i++]=matrix[6],instanceModelMatrixData[i++]=matrix[7],instanceModelMatrixData[i++]=matrix[8],instanceModelMatrixData[i++]=matrix[9],instanceModelMatrixData[i++]=matrix[10],instanceModelMatrixData[i++]=matrix[11]}}}};function shouldComposeModelMatrix(viewport,coordinateSystem){return coordinateSystem===_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.CARTESIAN||coordinateSystem===_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.METER_OFFSETS||coordinateSystem===_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.DEFAULT&&!viewport.isGeospatial}},"./node_modules/@loaders.gl/draco/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{VJ:function(){return esm_DracoLoader}});var globals=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/globals.js");const DEFAULT_DRACO_OPTIONS={draco:{decoderType:"object"==typeof WebAssembly?"wasm":"js",libraryPath:"libs/",extraAttributes:{},attributeNameEntry:void 0}},DracoLoader={name:"Draco",id:globals.jU?"draco":"draco-nodejs",module:"draco",shapes:["mesh"],version:"3.4.15",worker:!0,extensions:["drc"],mimeTypes:["application/octet-stream"],binary:!0,tests:["DRACO"],options:DEFAULT_DRACO_OPTIONS};var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),mesh_utils=__webpack_require__("./node_modules/@loaders.gl/schema/dist/esm/category/mesh/mesh-utils.js");class Field{constructor(name,type){let nullable=arguments.length>2&&void 0!==arguments[2]&&arguments[2],metadata=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map;(0,defineProperty.Z)(this,"name",void 0),(0,defineProperty.Z)(this,"type",void 0),(0,defineProperty.Z)(this,"nullable",void 0),(0,defineProperty.Z)(this,"metadata",void 0),this.name=name,this.type=type,this.nullable=nullable,this.metadata=metadata}get typeId(){return this.type&&this.type.typeId}clone(){return new Field(this.name,this.type,this.nullable,this.metadata)}compareTo(other){return this.name===other.name&&this.type===other.type&&this.nullable===other.nullable&&this.metadata===other.metadata}toString(){return"".concat(this.type).concat(this.nullable?", nullable":"").concat(this.metadata?", metadata: ".concat(this.metadata):"")}}let _Symbol$toStringTag,_Symbol$toStringTag2,_Symbol$toStringTag3,_Symbol$toStringTag4,_Symbol$toStringTag5,_Symbol$toStringTag6,_Symbol$toStringTag7,_Symbol$toStringTag8,enum_Type=function(Type){return Type[Type.NONE=0]="NONE",Type[Type.Null=1]="Null",Type[Type.Int=2]="Int",Type[Type.Float=3]="Float",Type[Type.Binary=4]="Binary",Type[Type.Utf8=5]="Utf8",Type[Type.Bool=6]="Bool",Type[Type.Decimal=7]="Decimal",Type[Type.Date=8]="Date",Type[Type.Time=9]="Time",Type[Type.Timestamp=10]="Timestamp",Type[Type.Interval=11]="Interval",Type[Type.List=12]="List",Type[Type.Struct=13]="Struct",Type[Type.Union=14]="Union",Type[Type.FixedSizeBinary=15]="FixedSizeBinary",Type[Type.FixedSizeList=16]="FixedSizeList",Type[Type.Map=17]="Map",Type[Type.Dictionary=-1]="Dictionary",Type[Type.Int8=-2]="Int8",Type[Type.Int16=-3]="Int16",Type[Type.Int32=-4]="Int32",Type[Type.Int64=-5]="Int64",Type[Type.Uint8=-6]="Uint8",Type[Type.Uint16=-7]="Uint16",Type[Type.Uint32=-8]="Uint32",Type[Type.Uint64=-9]="Uint64",Type[Type.Float16=-10]="Float16",Type[Type.Float32=-11]="Float32",Type[Type.Float64=-12]="Float64",Type[Type.DateDay=-13]="DateDay",Type[Type.DateMillisecond=-14]="DateMillisecond",Type[Type.TimestampSecond=-15]="TimestampSecond",Type[Type.TimestampMillisecond=-16]="TimestampMillisecond",Type[Type.TimestampMicrosecond=-17]="TimestampMicrosecond",Type[Type.TimestampNanosecond=-18]="TimestampNanosecond",Type[Type.TimeSecond=-19]="TimeSecond",Type[Type.TimeMillisecond=-20]="TimeMillisecond",Type[Type.TimeMicrosecond=-21]="TimeMicrosecond",Type[Type.TimeNanosecond=-22]="TimeNanosecond",Type[Type.DenseUnion=-23]="DenseUnion",Type[Type.SparseUnion=-24]="SparseUnion",Type[Type.IntervalDayTime=-25]="IntervalDayTime",Type[Type.IntervalYearMonth=-26]="IntervalYearMonth",Type}({});class DataType{static isNull(x){return x&&x.typeId===enum_Type.Null}static isInt(x){return x&&x.typeId===enum_Type.Int}static isFloat(x){return x&&x.typeId===enum_Type.Float}static isBinary(x){return x&&x.typeId===enum_Type.Binary}static isUtf8(x){return x&&x.typeId===enum_Type.Utf8}static isBool(x){return x&&x.typeId===enum_Type.Bool}static isDecimal(x){return x&&x.typeId===enum_Type.Decimal}static isDate(x){return x&&x.typeId===enum_Type.Date}static isTime(x){return x&&x.typeId===enum_Type.Time}static isTimestamp(x){return x&&x.typeId===enum_Type.Timestamp}static isInterval(x){return x&&x.typeId===enum_Type.Interval}static isList(x){return x&&x.typeId===enum_Type.List}static isStruct(x){return x&&x.typeId===enum_Type.Struct}static isUnion(x){return x&&x.typeId===enum_Type.Union}static isFixedSizeBinary(x){return x&&x.typeId===enum_Type.FixedSizeBinary}static isFixedSizeList(x){return x&&x.typeId===enum_Type.FixedSizeList}static isMap(x){return x&&x.typeId===enum_Type.Map}static isDictionary(x){return x&&x.typeId===enum_Type.Dictionary}get typeId(){return enum_Type.NONE}compareTo(other){return this===other}}Symbol.toStringTag;Symbol.toStringTag;_Symbol$toStringTag=Symbol.toStringTag;class Int extends DataType{constructor(isSigned,bitWidth){super(),(0,defineProperty.Z)(this,"isSigned",void 0),(0,defineProperty.Z)(this,"bitWidth",void 0),this.isSigned=isSigned,this.bitWidth=bitWidth}get typeId(){return enum_Type.Int}get[_Symbol$toStringTag](){return"Int"}toString(){return"".concat(this.isSigned?"I":"Ui","nt").concat(this.bitWidth)}}class Int8 extends Int{constructor(){super(!0,8)}}class Int16 extends Int{constructor(){super(!0,16)}}class Int32 extends Int{constructor(){super(!0,32)}}class Uint8 extends Int{constructor(){super(!1,8)}}class Uint16 extends Int{constructor(){super(!1,16)}}class Uint32 extends Int{constructor(){super(!1,32)}}const Precision_SINGLE=32,Precision_DOUBLE=64;_Symbol$toStringTag2=Symbol.toStringTag;class Float extends DataType{constructor(precision){super(),(0,defineProperty.Z)(this,"precision",void 0),this.precision=precision}get typeId(){return enum_Type.Float}get[_Symbol$toStringTag2](){return"Float"}toString(){return"Float".concat(this.precision)}}class Float32 extends Float{constructor(){super(Precision_SINGLE)}}class Float64 extends Float{constructor(){super(Precision_DOUBLE)}}Symbol.toStringTag;Symbol.toStringTag;_Symbol$toStringTag3=Symbol.toStringTag;_Symbol$toStringTag4=Symbol.toStringTag;_Symbol$toStringTag5=Symbol.toStringTag;_Symbol$toStringTag6=Symbol.toStringTag;_Symbol$toStringTag7=Symbol.toStringTag;class FixedSizeList extends DataType{constructor(listSize,child){super(),(0,defineProperty.Z)(this,"listSize",void 0),(0,defineProperty.Z)(this,"children",void 0),this.listSize=listSize,this.children=[child]}get typeId(){return enum_Type.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get[_Symbol$toStringTag7](){return"FixedSizeList"}toString(){return"FixedSizeList[".concat(this.listSize,"]<").concat(this.valueType,">")}}_Symbol$toStringTag8=Symbol.toStringTag;function deduceMeshField(attributeName,attribute,optionalMetadata){const type=function getArrowTypeFromTypedArray(array){switch(array.constructor){case Int8Array:return new Int8;case Uint8Array:return new Uint8;case Int16Array:return new Int16;case Uint16Array:return new Uint16;case Int32Array:return new Int32;case Uint32Array:return new Uint32;case Float32Array:return new Float32;case Float64Array:return new Float64;default:throw new Error("array type not supported")}}(attribute.value),metadata=optionalMetadata||function makeMeshAttributeMetadata(attribute){const result=new Map;"byteOffset"in attribute&&result.set("byteOffset",attribute.byteOffset.toString(10));"byteStride"in attribute&&result.set("byteStride",attribute.byteStride.toString(10));"normalized"in attribute&&result.set("normalized",attribute.normalized.toString());return result}(attribute);return new Field(attributeName,new FixedSizeList(attribute.size,new Field("value",type)),!1,metadata)}class schema_Schema{constructor(fields,metadata){(0,defineProperty.Z)(this,"fields",void 0),(0,defineProperty.Z)(this,"metadata",void 0),function assert(condition,message){if(!condition)throw new Error(message||"loader assertion failed.")}(Array.isArray(fields)),function checkNames(fields){const usedNames={};for(const field of fields)usedNames[field.name]&&console.warn("Schema: duplicated field name",field.name,field),usedNames[field.name]=!0}(fields),this.fields=fields,this.metadata=metadata||new Map}compareTo(other){if(this.metadata!==other.metadata)return!1;if(this.fields.length!==other.fields.length)return!1;for(let i=0;inameMap[field.name]));return new schema_Schema(selectedFields,this.metadata)}selectAt(){for(var _len2=arguments.length,columnIndices=new Array(_len2),_key2=0;_key2<_len2;_key2++)columnIndices[_key2]=arguments[_key2];const selectedFields=columnIndices.map((index=>this.fields[index])).filter(Boolean);return new schema_Schema(selectedFields,this.metadata)}assign(schemaOrFields){let fields,metadata=this.metadata;if(schemaOrFields instanceof schema_Schema){const otherSchema=schemaOrFields;fields=otherSchema.fields,metadata=mergeMaps(mergeMaps(new Map,this.metadata),otherSchema.metadata)}else fields=schemaOrFields;const fieldMap=Object.create(null);for(const field of this.fields)fieldMap[field.name]=field;for(const field of fields)fieldMap[field.name]=field;const mergedFields=Object.values(fieldMap);return new schema_Schema(mergedFields,metadata)}}function mergeMaps(m1,m2){return new Map([...m1||new Map,...m2||new Map])}function getArrowFieldFromAttribute(attributeName,attribute,loaderData){return deduceMeshField(attributeName,attribute,loaderData?makeMetadata(loaderData.metadata):void 0)}function makeMetadata(metadata){const metadataMap=new Map;for(const key in metadata)metadataMap.set("".concat(key,".string"),JSON.stringify(metadata[key]));return metadataMap}const DRACO_TO_GLTF_ATTRIBUTE_NAME_MAP={POSITION:"POSITION",NORMAL:"NORMAL",COLOR:"COLOR_0",TEX_COORD:"TEXCOORD_0"},DRACO_DATA_TYPE_TO_TYPED_ARRAY_MAP={1:Int8Array,2:Uint8Array,3:Int16Array,4:Uint16Array,5:Int32Array,6:Uint32Array,9:Float32Array};class DracoParser{constructor(draco){(0,defineProperty.Z)(this,"draco",void 0),(0,defineProperty.Z)(this,"decoder",void 0),(0,defineProperty.Z)(this,"metadataQuerier",void 0),this.draco=draco,this.decoder=new this.draco.Decoder,this.metadataQuerier=new this.draco.MetadataQuerier}destroy(){this.draco.destroy(this.decoder),this.draco.destroy(this.metadataQuerier)}parseSync(arrayBuffer){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const buffer=new this.draco.DecoderBuffer;buffer.Init(new Int8Array(arrayBuffer),arrayBuffer.byteLength),this._disableAttributeTransforms(options);const geometry_type=this.decoder.GetEncodedGeometryType(buffer),dracoGeometry=geometry_type===this.draco.TRIANGULAR_MESH?new this.draco.Mesh:new this.draco.PointCloud;try{let dracoStatus;switch(geometry_type){case this.draco.TRIANGULAR_MESH:dracoStatus=this.decoder.DecodeBufferToMesh(buffer,dracoGeometry);break;case this.draco.POINT_CLOUD:dracoStatus=this.decoder.DecodeBufferToPointCloud(buffer,dracoGeometry);break;default:throw new Error("DRACO: Unknown geometry type.")}if(!dracoStatus.ok()||!dracoGeometry.ptr){const message="DRACO decompression failed: ".concat(dracoStatus.error_msg());throw new Error(message)}const loaderData=this._getDracoLoaderData(dracoGeometry,geometry_type,options),geometry=this._getMeshData(dracoGeometry,loaderData,options),boundingBox=(0,mesh_utils.v)(geometry.attributes),schema=function getDracoSchema(attributes,loaderData,indices){const metadataMap=makeMetadata(loaderData.metadata),fields=[],namedLoaderDataAttributes=function transformAttributesLoaderData(loaderData){const result={};for(const key in loaderData){const dracoAttribute=loaderData[key];result[dracoAttribute.name||"undefined"]=dracoAttribute}return result}(loaderData.attributes);for(const attributeName in attributes){const field=getArrowFieldFromAttribute(attributeName,attributes[attributeName],namedLoaderDataAttributes[attributeName]);fields.push(field)}if(indices){const indicesField=getArrowFieldFromAttribute("indices",indices);fields.push(indicesField)}return new schema_Schema(fields,metadataMap)}(geometry.attributes,loaderData,geometry.indices);return{loader:"draco",loaderData:loaderData,header:{vertexCount:dracoGeometry.num_points(),boundingBox:boundingBox},...geometry,schema:schema}}finally{this.draco.destroy(buffer),dracoGeometry&&this.draco.destroy(dracoGeometry)}}_getDracoLoaderData(dracoGeometry,geometry_type,options){const metadata=this._getTopLevelMetadata(dracoGeometry),attributes=this._getDracoAttributes(dracoGeometry,options);return{geometry_type:geometry_type,num_attributes:dracoGeometry.num_attributes(),num_points:dracoGeometry.num_points(),num_faces:dracoGeometry instanceof this.draco.Mesh?dracoGeometry.num_faces():0,metadata:metadata,attributes:attributes}}_getDracoAttributes(dracoGeometry,options){const dracoAttributes={};for(let attributeId=0;attributeIdthis.decoder[type])).includes(attribute_type)){const transform=new this.draco.AttributeQuantizationTransform;try{if(transform.InitFromAttribute(dracoAttribute))return{quantization_bits:transform.quantization_bits(),range:transform.range(),min_values:new Float32Array([1,2,3]).map((i=>transform.min_value(i)))}}finally{this.draco.destroy(transform)}}return null}_getOctahedronTransform(dracoAttribute,options){const{octahedronAttributes:octahedronAttributes=[]}=options,attribute_type=dracoAttribute.attribute_type();if(octahedronAttributes.map((type=>this.decoder[type])).includes(attribute_type)){const transform=new this.draco.AttributeQuantizationTransform;try{if(transform.InitFromAttribute(dracoAttribute))return{quantization_bits:transform.quantization_bits()}}finally{this.draco.destroy(transform)}}return null}}var library_utils=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/library-utils/library-utils.js");const STATIC_DECODER_URL="https://www.gstatic.com/draco/versioned/decoders/".concat("1.5.5"),DRACO_JS_DECODER_URL="".concat(STATIC_DECODER_URL,"/draco_decoder.js"),DRACO_WASM_WRAPPER_URL="".concat(STATIC_DECODER_URL,"/draco_wasm_wrapper.js"),DRACO_WASM_DECODER_URL="".concat(STATIC_DECODER_URL,"/draco_decoder.wasm");"https://raw.githubusercontent.com/google/draco/".concat("1.4.1","/javascript/draco_encoder.js");let loadDecoderPromise;async function loadDracoDecoderModule(options){const modules=options.modules||{};return loadDecoderPromise=modules.draco3d?loadDecoderPromise||modules.draco3d.createDecoderModule({}).then((draco=>({draco:draco}))):loadDecoderPromise||async function loadDracoDecoder(options){let DracoDecoderModule,wasmBinary;if("js"===(options.draco&&options.draco.decoderType))DracoDecoderModule=await(0,library_utils.Y)(DRACO_JS_DECODER_URL,"draco",options);else[DracoDecoderModule,wasmBinary]=await Promise.all([await(0,library_utils.Y)(DRACO_WASM_WRAPPER_URL,"draco",options),await(0,library_utils.Y)(DRACO_WASM_DECODER_URL,"draco",options)]);return DracoDecoderModule=DracoDecoderModule||globalThis.DracoDecoderModule,await function initializeDracoDecoder(DracoDecoderModule,wasmBinary){const options={};wasmBinary&&(options.wasmBinary=wasmBinary);return new Promise((resolve=>{DracoDecoderModule({...options,onModuleLoaded:draco=>resolve({draco:draco})})}))}(DracoDecoderModule,wasmBinary)}(options),await loadDecoderPromise}globals.jU;const esm_DracoLoader={...DracoLoader,parse:async function parse(arrayBuffer,options){const{draco:draco}=await loadDracoDecoderModule(options),dracoParser=new DracoParser(draco);try{return dracoParser.parseSync(arrayBuffer,null==options?void 0:options.draco)}finally{dracoParser.destroy()}}}},"./node_modules/@loaders.gl/gltf/dist/esm/gltf-loader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return GLTFLoader}});var EXT_meshopt_compression_namespaceObject={};__webpack_require__.r(EXT_meshopt_compression_namespaceObject),__webpack_require__.d(EXT_meshopt_compression_namespaceObject,{decode:function(){return EXT_meshopt_compression_decode},name:function(){return EXT_meshopt_compression_name}});var EXT_texture_webp_namespaceObject={};__webpack_require__.r(EXT_texture_webp_namespaceObject),__webpack_require__.d(EXT_texture_webp_namespaceObject,{name:function(){return EXT_texture_webp_name},preprocess:function(){return preprocess}});var KHR_texture_basisu_namespaceObject={};__webpack_require__.r(KHR_texture_basisu_namespaceObject),__webpack_require__.d(KHR_texture_basisu_namespaceObject,{name:function(){return KHR_texture_basisu_name},preprocess:function(){return KHR_texture_basisu_preprocess}});var KHR_draco_mesh_compression_namespaceObject={};__webpack_require__.r(KHR_draco_mesh_compression_namespaceObject),__webpack_require__.d(KHR_draco_mesh_compression_namespaceObject,{decode:function(){return KHR_draco_mesh_compression_decode},encode:function(){return encode},name:function(){return KHR_draco_mesh_compression_name},preprocess:function(){return KHR_draco_mesh_compression_preprocess}});var KHR_texture_transform_namespaceObject={};__webpack_require__.r(KHR_texture_transform_namespaceObject),__webpack_require__.d(KHR_texture_transform_namespaceObject,{decode:function(){return KHR_texture_transform_decode},name:function(){return KHR_texture_transform_name}});var KHR_lights_punctual_namespaceObject={};__webpack_require__.r(KHR_lights_punctual_namespaceObject),__webpack_require__.d(KHR_lights_punctual_namespaceObject,{decode:function(){return KHR_lights_punctual_decode},encode:function(){return KHR_lights_punctual_encode},name:function(){return KHR_lights_punctual_name}});var KHR_materials_unlit_namespaceObject={};__webpack_require__.r(KHR_materials_unlit_namespaceObject),__webpack_require__.d(KHR_materials_unlit_namespaceObject,{decode:function(){return KHR_materials_unlit_decode},encode:function(){return KHR_materials_unlit_encode},name:function(){return KHR_materials_unlit_name}});var KHR_techniques_webgl_namespaceObject={};__webpack_require__.r(KHR_techniques_webgl_namespaceObject),__webpack_require__.d(KHR_techniques_webgl_namespaceObject,{decode:function(){return KHR_techniques_webgl_decode},encode:function(){return KHR_techniques_webgl_encode},name:function(){return KHR_techniques_webgl_name}});var EXT_feature_metadata_namespaceObject={};__webpack_require__.r(EXT_feature_metadata_namespaceObject),__webpack_require__.d(EXT_feature_metadata_namespaceObject,{decode:function(){return EXT_feature_metadata_decode},name:function(){return EXT_feature_metadata_name}});var globals=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/globals.js");var library_utils=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/library-utils/library-utils.js");const BASIS_CDN_ENCODER_WASM="https://unpkg.com/@loaders.gl/textures@".concat("3.4.15","/dist/libs/basis_encoder.wasm"),BASIS_CDN_ENCODER_JS="https://unpkg.com/@loaders.gl/textures@".concat("3.4.15","/dist/libs/basis_encoder.js");let loadBasisTranscoderPromise,loadBasisEncoderPromise;async function loadBasisTrascoderModule(options){const modules=options.modules||{};return modules.basis?modules.basis:(loadBasisTranscoderPromise=loadBasisTranscoderPromise||async function loadBasisTrascoder(options){let BASIS=null,wasmBinary=null;return[BASIS,wasmBinary]=await Promise.all([await(0,library_utils.Y)("basis_transcoder.js","textures",options),await(0,library_utils.Y)("basis_transcoder.wasm","textures",options)]),BASIS=BASIS||globalThis.BASIS,await function initializeBasisTrascoderModule(BasisModule,wasmBinary){const options={};wasmBinary&&(options.wasmBinary=wasmBinary);return new Promise((resolve=>{BasisModule(options).then((module=>{const{BasisFile:BasisFile,initializeBasis:initializeBasis}=module;initializeBasis(),resolve({BasisFile:BasisFile})}))}))}(BASIS,wasmBinary)}(options),await loadBasisTranscoderPromise)}async function loadBasisEncoderModule(options){const modules=options.modules||{};return modules.basisEncoder?modules.basisEncoder:(loadBasisEncoderPromise=loadBasisEncoderPromise||async function loadBasisEncoder(options){let BASIS_ENCODER=null,wasmBinary=null;return[BASIS_ENCODER,wasmBinary]=await Promise.all([await(0,library_utils.Y)(BASIS_CDN_ENCODER_JS,"textures",options),await(0,library_utils.Y)(BASIS_CDN_ENCODER_WASM,"textures",options)]),BASIS_ENCODER=BASIS_ENCODER||globalThis.BASIS,await function initializeBasisEncoderModule(BasisEncoderModule,wasmBinary){const options={};wasmBinary&&(options.wasmBinary=wasmBinary);return new Promise((resolve=>{BasisEncoderModule(options).then((module=>{const{BasisFile:BasisFile,KTX2File:KTX2File,initializeBasis:initializeBasis,BasisEncoder:BasisEncoder}=module;initializeBasis(),resolve({BasisFile:BasisFile,KTX2File:KTX2File,BasisEncoder:BasisEncoder})}))}))}(BASIS_ENCODER,wasmBinary)}(options),await loadBasisEncoderPromise)}const GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_S3TC_DXT1_EXT=33776,GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_S3TC_DXT5_EXT=33779,GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840,GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842,GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_ETC1_WEBGL=36196,GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_ASTC_4X4_KHR=37808,BROWSER_PREFIXES=["","WEBKIT_","MOZ_"],WEBGL_EXTENSIONS={WEBGL_compressed_texture_s3tc:"dxt",WEBGL_compressed_texture_s3tc_srgb:"dxt-srgb",WEBGL_compressed_texture_etc1:"etc1",WEBGL_compressed_texture_etc:"etc2",WEBGL_compressed_texture_pvrtc:"pvrtc",WEBGL_compressed_texture_atc:"atc",WEBGL_compressed_texture_astc:"astc",EXT_texture_compression_rgtc:"rgtc"};let formats=null;function getSupportedGPUTextureFormats(gl){if(!formats){gl=gl||function getWebGLContext(){try{return document.createElement("canvas").getContext("webgl")}catch(error){return null}}()||void 0,formats=new Set;for(const prefix of BROWSER_PREFIXES)for(const extension in WEBGL_EXTENSIONS)if(gl&&gl.getExtension("".concat(prefix).concat(extension))){const gpuTextureFormat=WEBGL_EXTENSIONS[extension];formats.add(gpuTextureFormat)}}return formats}new Uint8Array([0]);var n,i,s,a,r,o,l,f;!function(t){t[t.NONE=0]="NONE",t[t.BASISLZ=1]="BASISLZ",t[t.ZSTD=2]="ZSTD",t[t.ZLIB=3]="ZLIB"}(n||(n={})),function(t){t[t.BASICFORMAT=0]="BASICFORMAT"}(i||(i={})),function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.ETC1S=163]="ETC1S",t[t.UASTC=166]="UASTC"}(s||(s={})),function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.SRGB=1]="SRGB"}(a||(a={})),function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.LINEAR=1]="LINEAR",t[t.SRGB=2]="SRGB",t[t.ITU=3]="ITU",t[t.NTSC=4]="NTSC",t[t.SLOG=5]="SLOG",t[t.SLOG2=6]="SLOG2"}(r||(r={})),function(t){t[t.ALPHA_STRAIGHT=0]="ALPHA_STRAIGHT",t[t.ALPHA_PREMULTIPLIED=1]="ALPHA_PREMULTIPLIED"}(o||(o={})),function(t){t[t.RGB=0]="RGB",t[t.RRR=3]="RRR",t[t.GGG=4]="GGG",t[t.AAA=15]="AAA"}(l||(l={})),function(t){t[t.RGB=0]="RGB",t[t.RGBA=3]="RGBA",t[t.RRR=4]="RRR",t[t.RRRG=5]="RRRG"}(f||(f={}));const KTX2_ID=[171,75,84,88,32,50,48,187,13,10,26,10];const OutputFormat={etc1:{basisFormat:0,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_ETC1_WEBGL},etc2:{basisFormat:1,compressed:!0},bc1:{basisFormat:2,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_S3TC_DXT1_EXT},bc3:{basisFormat:3,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_S3TC_DXT5_EXT},bc4:{basisFormat:4,compressed:!0},bc5:{basisFormat:5,compressed:!0},"bc7-m6-opaque-only":{basisFormat:6,compressed:!0},"bc7-m5":{basisFormat:7,compressed:!0},"pvrtc1-4-rgb":{basisFormat:8,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_PVRTC_4BPPV1_IMG},"pvrtc1-4-rgba":{basisFormat:9,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG},"astc-4x4":{basisFormat:10,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_ASTC_4X4_KHR},"atc-rgb":{basisFormat:11,compressed:!0},"atc-rgba-interpolated-alpha":{basisFormat:12,compressed:!0},rgba32:{basisFormat:13,compressed:!1},rgb565:{basisFormat:14,compressed:!1},bgr565:{basisFormat:15,compressed:!1},rgba4444:{basisFormat:16,compressed:!1}};function parseBasisFile(BasisFile,data,options){const basisFile=new BasisFile(new Uint8Array(data));try{if(!basisFile.startTranscoding())throw new Error("Failed to start basis transcoding");const imageCount=basisFile.getNumImages(),images=[];for(let imageIndex=0;imageIndex1&&void 0!==arguments[1]?arguments[1]:5;if("string"==typeof data)return data.slice(0,length);if(ArrayBuffer.isView(data))return getMagicString(data.buffer,data.byteOffset,length);if(data instanceof ArrayBuffer)return getMagicString(data,0,length);return""}(string),'"'))}}var array_buffer_utils=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/binary-utils/array-buffer-utils.js"),assert=__webpack_require__("./node_modules/@loaders.gl/gltf/dist/esm/lib/utils/assert.js");function resolveUrl(url,options){if(url.startsWith("data:")||url.startsWith("http:")||url.startsWith("https:"))return url;const baseUrl=options.baseUri||options.uri;if(!baseUrl)throw new Error("'baseUri' must be provided to resolve relative url ".concat(url));return baseUrl.substr(0,baseUrl.lastIndexOf("/")+1)+url}function getTypedArrayForBufferView(json,buffers,bufferViewIndex){const bufferView=json.bufferViews[bufferViewIndex];(0,assert.h)(bufferView);const binChunk=buffers[bufferView.buffer];(0,assert.h)(binChunk);const byteOffset=(bufferView.byteOffset||0)+binChunk.byteOffset;return new Uint8Array(binChunk.arrayBuffer,byteOffset,bufferView.byteLength)}var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),binary_image_api=__webpack_require__("./node_modules/@loaders.gl/images/dist/esm/lib/category-api/binary-image-api.js"),env_utils_assert=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/assert.js");function padToNBytes(byteLength,padding){return(0,env_utils_assert.h)(byteLength>=0),(0,env_utils_assert.h)(padding>0),byteLength+(padding-1)&~(padding-1)}function copyToArray(source,target,targetOffset){let sourceArray;if(source instanceof ArrayBuffer)sourceArray=new Uint8Array(source);else{const srcByteOffset=source.byteOffset,srcByteLength=source.byteLength;sourceArray=new Uint8Array(source.buffer||source.arrayBuffer,srcByteOffset,srcByteLength)}return target.set(sourceArray,targetOffset),targetOffset+padToNBytes(sourceArray.byteLength,4)}var gltf_utils=__webpack_require__("./node_modules/@loaders.gl/gltf/dist/esm/lib/gltf-utils/gltf-utils.js");const DEFAULT_GLTF_JSON={asset:{version:"2.0",generator:"loaders.gl"},buffers:[]};class GLTFScenegraph{constructor(gltf){(0,defineProperty.Z)(this,"gltf",void 0),(0,defineProperty.Z)(this,"sourceBuffers",void 0),(0,defineProperty.Z)(this,"byteLength",void 0),this.gltf=gltf||{json:{...DEFAULT_GLTF_JSON},buffers:[]},this.sourceBuffers=[],this.byteLength=0,this.gltf.buffers&&this.gltf.buffers[0]&&(this.byteLength=this.gltf.buffers[0].byteLength,this.sourceBuffers=[this.gltf.buffers[0]])}get json(){return this.gltf.json}getApplicationData(key){return this.json[key]}getExtraData(key){return(this.json.extras||{})[key]}getExtension(extensionName){const isExtension=this.getUsedExtensions().find((name=>name===extensionName)),extensions=this.json.extensions||{};return isExtension?extensions[extensionName]||!0:null}getRequiredExtension(extensionName){return this.getRequiredExtensions().find((name=>name===extensionName))?this.getExtension(extensionName):null}getRequiredExtensions(){return this.json.extensionsRequired||[]}getUsedExtensions(){return this.json.extensionsUsed||[]}getRemovedExtensions(){return this.json.extensionsRemoved||[]}getObjectExtension(object,extensionName){return(object.extensions||{})[extensionName]}getScene(index){return this.getObject("scenes",index)}getNode(index){return this.getObject("nodes",index)}getSkin(index){return this.getObject("skins",index)}getMesh(index){return this.getObject("meshes",index)}getMaterial(index){return this.getObject("materials",index)}getAccessor(index){return this.getObject("accessors",index)}getTexture(index){return this.getObject("textures",index)}getSampler(index){return this.getObject("samplers",index)}getImage(index){return this.getObject("images",index)}getBufferView(index){return this.getObject("bufferViews",index)}getBuffer(index){return this.getObject("buffers",index)}getObject(array,index){if("object"==typeof index)return index;const object=this.json[array]&&this.json[array][index];if(!object)throw new Error("glTF file error: Could not find ".concat(array,"[").concat(index,"]"));return object}getTypedArrayForBufferView(bufferView){const bufferIndex=(bufferView=this.getBufferView(bufferView)).buffer,binChunk=this.gltf.buffers[bufferIndex];(0,assert.h)(binChunk);const byteOffset=(bufferView.byteOffset||0)+binChunk.byteOffset;return new Uint8Array(binChunk.arrayBuffer,byteOffset,bufferView.byteLength)}getTypedArrayForAccessor(accessor){accessor=this.getAccessor(accessor);const bufferView=this.getBufferView(accessor.bufferView),arrayBuffer=this.getBuffer(bufferView.buffer).data,{ArrayType:ArrayType,length:length}=(0,gltf_utils.pN)(accessor,bufferView);return new ArrayType(arrayBuffer,bufferView.byteOffset+accessor.byteOffset,length)}getTypedArrayForImageData(image){image=this.getAccessor(image);const bufferView=this.getBufferView(image.bufferView),arrayBuffer=this.getBuffer(bufferView.buffer).data,byteOffset=bufferView.byteOffset||0;return new Uint8Array(arrayBuffer,byteOffset,bufferView.byteLength)}addApplicationData(key,data){return this.json[key]=data,this}addExtraData(key,data){return this.json.extras=this.json.extras||{},this.json.extras[key]=data,this}addObjectExtension(object,extensionName,data){return object.extensions=object.extensions||{},object.extensions[extensionName]=data,this.registerUsedExtension(extensionName),this}setObjectExtension(object,extensionName,data){(object.extensions||{})[extensionName]=data}removeObjectExtension(object,extensionName){const extensions=object.extensions||{},extension=extensions[extensionName];return delete extensions[extensionName],extension}addExtension(extensionName){let extensionData=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,assert.h)(extensionData),this.json.extensions=this.json.extensions||{},this.json.extensions[extensionName]=extensionData,this.registerUsedExtension(extensionName),extensionData}addRequiredExtension(extensionName){let extensionData=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,assert.h)(extensionData),this.addExtension(extensionName,extensionData),this.registerRequiredExtension(extensionName),extensionData}registerUsedExtension(extensionName){this.json.extensionsUsed=this.json.extensionsUsed||[],this.json.extensionsUsed.find((ext=>ext===extensionName))||this.json.extensionsUsed.push(extensionName)}registerRequiredExtension(extensionName){this.registerUsedExtension(extensionName),this.json.extensionsRequired=this.json.extensionsRequired||[],this.json.extensionsRequired.find((ext=>ext===extensionName))||this.json.extensionsRequired.push(extensionName)}removeExtension(extensionName){if(!this.getExtension(extensionName))return;this.json.extensionsRequired&&this._removeStringFromArray(this.json.extensionsRequired,extensionName),this.json.extensionsUsed&&this._removeStringFromArray(this.json.extensionsUsed,extensionName),this.json.extensions&&delete this.json.extensions[extensionName],Array.isArray(this.json.extensionsRemoved)||(this.json.extensionsRemoved=[]);const extensionsRemoved=this.json.extensionsRemoved;extensionsRemoved.includes(extensionName)||extensionsRemoved.push(extensionName)}setDefaultScene(sceneIndex){this.json.scene=sceneIndex}addScene(scene){const{nodeIndices:nodeIndices}=scene;return this.json.scenes=this.json.scenes||[],this.json.scenes.push({nodes:nodeIndices}),this.json.scenes.length-1}addNode(node){const{meshIndex:meshIndex,matrix:matrix}=node;this.json.nodes=this.json.nodes||[];const nodeData={mesh:meshIndex};return matrix&&(nodeData.matrix=matrix),this.json.nodes.push(nodeData),this.json.nodes.length-1}addMesh(mesh){const{attributes:attributes,indices:indices,material:material,mode:mode=4}=mesh,glTFMesh={primitives:[{attributes:this._addAttributes(attributes),mode:mode}]};if(indices){const indicesAccessor=this._addIndices(indices);glTFMesh.primitives[0].indices=indicesAccessor}return Number.isFinite(material)&&(glTFMesh.primitives[0].material=material),this.json.meshes=this.json.meshes||[],this.json.meshes.push(glTFMesh),this.json.meshes.length-1}addPointCloud(attributes){const glTFMesh={primitives:[{attributes:this._addAttributes(attributes),mode:0}]};return this.json.meshes=this.json.meshes||[],this.json.meshes.push(glTFMesh),this.json.meshes.length-1}addImage(imageData,mimeTypeOpt){const metadata=(0,binary_image_api.I)(imageData),mimeType=mimeTypeOpt||(null==metadata?void 0:metadata.mimeType),glTFImage={bufferView:this.addBufferView(imageData),mimeType:mimeType};return this.json.images=this.json.images||[],this.json.images.push(glTFImage),this.json.images.length-1}addBufferView(buffer){const byteLength=buffer.byteLength;(0,assert.h)(Number.isFinite(byteLength)),this.sourceBuffers=this.sourceBuffers||[],this.sourceBuffers.push(buffer);const glTFBufferView={buffer:0,byteOffset:this.byteLength,byteLength:byteLength};return this.byteLength+=padToNBytes(byteLength,4),this.json.bufferViews=this.json.bufferViews||[],this.json.bufferViews.push(glTFBufferView),this.json.bufferViews.length-1}addAccessor(bufferViewIndex,accessor){const glTFAccessor={bufferView:bufferViewIndex,type:(0,gltf_utils.dl)(accessor.size),componentType:accessor.componentType,count:accessor.count,max:accessor.max,min:accessor.min};return this.json.accessors=this.json.accessors||[],this.json.accessors.push(glTFAccessor),this.json.accessors.length-1}addBinaryBuffer(sourceBuffer){let accessor=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{size:3};const bufferViewIndex=this.addBufferView(sourceBuffer);let minMax={min:accessor.min,max:accessor.max};minMax.min&&minMax.max||(minMax=this._getAccessorMinMax(sourceBuffer,accessor.size));const accessorDefaults={size:accessor.size,componentType:(0,gltf_utils.x$)(sourceBuffer),count:Math.round(sourceBuffer.length/accessor.size),min:minMax.min,max:minMax.max};return this.addAccessor(bufferViewIndex,Object.assign(accessorDefaults,accessor))}addTexture(texture){const{imageIndex:imageIndex}=texture,glTFTexture={source:imageIndex};return this.json.textures=this.json.textures||[],this.json.textures.push(glTFTexture),this.json.textures.length-1}addMaterial(pbrMaterialInfo){return this.json.materials=this.json.materials||[],this.json.materials.push(pbrMaterialInfo),this.json.materials.length-1}createBinaryChunk(){var _this$json,_this$json$buffers;this.gltf.buffers=[];const totalByteLength=this.byteLength,arrayBuffer=new ArrayBuffer(totalByteLength),targetArray=new Uint8Array(arrayBuffer);let dstByteOffset=0;for(const sourceBuffer of this.sourceBuffers||[])dstByteOffset=copyToArray(sourceBuffer,targetArray,dstByteOffset);null!==(_this$json=this.json)&&void 0!==_this$json&&null!==(_this$json$buffers=_this$json.buffers)&&void 0!==_this$json$buffers&&_this$json$buffers[0]?this.json.buffers[0].byteLength=totalByteLength:this.json.buffers=[{byteLength:totalByteLength}],this.gltf.binary=arrayBuffer,this.sourceBuffers=[arrayBuffer]}_removeStringFromArray(array,string){let found=!0;for(;found;){const index=array.indexOf(string);index>-1?array.splice(index,1):found=!1}}_addAttributes(){let attributes=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const result={};for(const attributeKey in attributes){const attributeData=attributes[attributeKey],attrName=this._getGltfAttributeName(attributeKey),accessor=this.addBinaryBuffer(attributeData.value,attributeData);result[attrName]=accessor}return result}_addIndices(indices){return this.addBinaryBuffer(indices,{size:1})}_getGltfAttributeName(attributeName){switch(attributeName.toLowerCase()){case"position":case"positions":case"vertices":return"POSITION";case"normal":case"normals":return"NORMAL";case"color":case"colors":return"COLOR_0";case"texcoord":case"texcoords":return"TEXCOORD_0";default:return attributeName}}_getAccessorMinMax(buffer,size){const result={min:null,max:null};if(buffer.length96?ch-71:ch>64?ch-65:ch>47?ch+4:ch>46?63:62}let write=0;for(let i=0;i5&&void 0!==arguments[5]?arguments[5]:"NONE";const instance=await loadWasmInstance();decode(instance,instance.exports[DECODERS[mode]],target,count,size,source,instance.exports[FILTERS[filter||"NONE"]])}(result,count,byteStride,source,mode,filter),result}return null}var env_utils_globals=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/globals.js");const mimeTypeSupportedSync={};function isImageFormatSupported(mimeType){if(void 0===mimeTypeSupportedSync[mimeType]){const supported=env_utils_globals.jU?function checkBrowserImageFormatSupport(mimeType){switch(mimeType){case"image/avif":case"image/webp":return function testBrowserImageFormatSupport(mimeType){try{const element=document.createElement("canvas");return 0===element.toDataURL(mimeType).indexOf("data:".concat(mimeType))}catch{return!1}}(mimeType);default:return!0}}(mimeType):checkNodeImageFormatSupport(mimeType);mimeTypeSupportedSync[mimeType]=supported}return mimeTypeSupportedSync[mimeType]}function checkNodeImageFormatSupport(mimeType){const NODE_FORMAT_SUPPORT=["image/png","image/jpeg","image/gif"],{_parseImageNode:_parseImageNode,_imageFormatsNode:_imageFormatsNode=NODE_FORMAT_SUPPORT}=globalThis;return Boolean(_parseImageNode)&&_imageFormatsNode.includes(mimeType)}const EXT_TEXTURE_WEBP="EXT_texture_webp",EXT_texture_webp_name=EXT_TEXTURE_WEBP;function preprocess(gltfData,options){const scenegraph=new GLTFScenegraph(gltfData);if(!isImageFormatSupported("image/webp")){if(scenegraph.getRequiredExtensions().includes(EXT_TEXTURE_WEBP))throw new Error("gltf: Required extension ".concat(EXT_TEXTURE_WEBP," not supported by browser"));return}const{json:json}=scenegraph;for(const texture of json.textures||[]){const extension=scenegraph.getObjectExtension(texture,EXT_TEXTURE_WEBP);extension&&(texture.source=extension.source),scenegraph.removeObjectExtension(texture,EXT_TEXTURE_WEBP)}scenegraph.removeExtension(EXT_TEXTURE_WEBP)}const KHR_TEXTURE_BASISU="KHR_texture_basisu",KHR_texture_basisu_name=KHR_TEXTURE_BASISU;function KHR_texture_basisu_preprocess(gltfData,options){const scene=new GLTFScenegraph(gltfData),{json:json}=scene;for(const texture of json.textures||[]){const extension=scene.getObjectExtension(texture,KHR_TEXTURE_BASISU);extension&&(texture.source=extension.source),scene.removeObjectExtension(texture,KHR_TEXTURE_BASISU)}scene.removeExtension(KHR_TEXTURE_BASISU)}var esm=__webpack_require__("./node_modules/@loaders.gl/draco/dist/esm/index.js");function getGLTFAccessor(attribute){const{buffer:buffer,size:size,count:count}=function getAccessorData(attribute){let buffer=attribute,size=1,count=0;attribute&&attribute.value&&(buffer=attribute.value,size=attribute.size||1);buffer&&(ArrayBuffer.isView(buffer)||(buffer=function toTypedArray(array,ArrayType){let convertTypedArrays=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!array)return null;if(Array.isArray(array))return new ArrayType(array);if(convertTypedArrays&&!(array instanceof ArrayType))return new ArrayType(array);return array}(buffer,Float32Array)),count=buffer.length/size);return{buffer:buffer,size:size,count:count}}(attribute);return{value:buffer,size:size,byteOffset:0,count:count,type:(0,gltf_utils.dl)(size),componentType:(0,gltf_utils.x$)(buffer)}}const KHR_DRACO_MESH_COMPRESSION="KHR_draco_mesh_compression",KHR_draco_mesh_compression_name=KHR_DRACO_MESH_COMPRESSION;function KHR_draco_mesh_compression_preprocess(gltfData,options,context){const scenegraph=new GLTFScenegraph(gltfData);for(const primitive of makeMeshPrimitiveIterator(scenegraph))scenegraph.getObjectExtension(primitive,KHR_DRACO_MESH_COMPRESSION)}async function KHR_draco_mesh_compression_decode(gltfData,options,context){var _options$gltf;if(null==options||null===(_options$gltf=options.gltf)||void 0===_options$gltf||!_options$gltf.decompressMeshes)return;const scenegraph=new GLTFScenegraph(gltfData),promises=[];for(const primitive of makeMeshPrimitiveIterator(scenegraph))scenegraph.getObjectExtension(primitive,KHR_DRACO_MESH_COMPRESSION)&&promises.push(decompressPrimitive(scenegraph,primitive,options,context));await Promise.all(promises),scenegraph.removeExtension(KHR_DRACO_MESH_COMPRESSION)}function encode(gltfData){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const scenegraph=new GLTFScenegraph(gltfData);for(const mesh of scenegraph.json.meshes||[])compressMesh(mesh,options),scenegraph.addRequiredExtension(KHR_DRACO_MESH_COMPRESSION)}async function decompressPrimitive(scenegraph,primitive,options,context){const dracoExtension=scenegraph.getObjectExtension(primitive,KHR_DRACO_MESH_COMPRESSION);if(!dracoExtension)return;const buffer=scenegraph.getTypedArrayForBufferView(dracoExtension.bufferView),bufferCopy=(0,array_buffer_utils.qv)(buffer.buffer,buffer.byteOffset),{parse:parse}=context,dracoOptions={...options};delete dracoOptions["3d-tiles"];const decodedData=await parse(bufferCopy,esm.VJ,dracoOptions,context),decodedAttributes=function getGLTFAccessors(attributes){const accessors={};for(const name in attributes){const attribute=attributes[name];if("indices"!==name){const glTFAccessor=getGLTFAccessor(attribute);accessors[name]=glTFAccessor}}return accessors}(decodedData.attributes);for(const[attributeName,decodedAttribute]of Object.entries(decodedAttributes))if(attributeName in primitive.attributes){const accessorIndex=primitive.attributes[attributeName],accessor=scenegraph.getAccessor(accessorIndex);null!=accessor&&accessor.min&&null!=accessor&&accessor.max&&(decodedAttribute.min=accessor.min,decodedAttribute.max=accessor.max)}primitive.attributes=decodedAttributes,decodedData.indices&&(primitive.indices=getGLTFAccessor(decodedData.indices)),function checkPrimitive(primitive){if(!primitive.attributes&&Object.keys(primitive.attributes).length>0)throw new Error("glTF: Empty primitive detected: Draco decompression failure?")}(primitive)}function compressMesh(attributes,indices){var _context$parseSync;let mode=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,options=arguments.length>3?arguments[3]:void 0,context=arguments.length>4?arguments[4]:void 0;if(!options.DracoWriter)throw new Error("options.gltf.DracoWriter not provided");const compressedData=options.DracoWriter.encodeSync({attributes:attributes}),decodedData=null==context||null===(_context$parseSync=context.parseSync)||void 0===_context$parseSync?void 0:_context$parseSync.call(context,{attributes:attributes}),fauxAccessors=options._addFauxAttributes(decodedData.attributes),bufferViewIndex=options.addBufferView(compressedData);return{primitives:[{attributes:fauxAccessors,mode:mode,extensions:{[KHR_DRACO_MESH_COMPRESSION]:{bufferView:bufferViewIndex,attributes:fauxAccessors}}}]}}function*makeMeshPrimitiveIterator(scenegraph){for(const mesh of scenegraph.json.meshes||[])for(const primitive of mesh.primitives)yield primitive}var vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),matrix3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix3.js");const COMPONENTS={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},BYTES={5120:1,5121:1,5122:2,5123:2,5125:4,5126:4};const EXT_MESHOPT_TRANSFORM="KHR_texture_transform",KHR_texture_transform_name=EXT_MESHOPT_TRANSFORM,scratchVector=new vector3.Z,scratchRotationMatrix=new matrix3.Z,scratchScaleMatrix=new matrix3.Z;async function KHR_texture_transform_decode(gltfData,options){if(!new GLTFScenegraph(gltfData).getExtension(EXT_MESHOPT_TRANSFORM))return;const materials=gltfData.json.materials||[];for(let i=0;i{let[original,newTexCoord]=_ref;return original===originalTexCoord&&newTexCoord===texCoord}));if(!isProcessed){const matrix=function makeTransformationMatrix(extensionData){const{offset:offset=[0,0],rotation:rotation=0,scale:scale=[1,1]}=extensionData,translationMatirx=(new matrix3.Z).set(1,0,0,0,1,0,offset[0],offset[1],1),rotationMatirx=scratchRotationMatrix.set(Math.cos(rotation),Math.sin(rotation),0,-Math.sin(rotation),Math.cos(rotation),0,0,0,1),scaleMatrix=scratchScaleMatrix.set(scale[0],0,0,0,scale[1],0,0,0,1);return translationMatirx.multiplyRight(rotationMatirx).multiplyRight(scaleMatrix)}(textureInfo);return originalTexCoord!==texCoord&&(texture.texCoord=texCoord),processedTexCoords.push([originalTexCoord,texCoord]),{originalTexCoord:originalTexCoord,texCoord:texCoord,matrix:matrix}}return null}(texture,processedTexCoords);if(!transformParameters)return;const meshes=gltfData.json.meshes||[];for(const mesh of meshes)for(const primitive of mesh.primitives){const material=primitive.material;Number.isFinite(material)&&materialIndex===material&&transformPrimitive(gltfData,primitive,transformParameters)}}function transformPrimitive(gltfData,primitive,transformParameters){const{originalTexCoord:originalTexCoord,texCoord:texCoord,matrix:matrix}=transformParameters,texCoordAccessor=primitive.attributes["TEXCOORD_".concat(originalTexCoord)];if(Number.isFinite(texCoordAccessor)){var _gltfData$json$access;const accessor=null===(_gltfData$json$access=gltfData.json.accessors)||void 0===_gltfData$json$access?void 0:_gltfData$json$access[texCoordAccessor];if(accessor&&accessor.bufferView){var _gltfData$json$buffer;const bufferView=null===(_gltfData$json$buffer=gltfData.json.bufferViews)||void 0===_gltfData$json$buffer?void 0:_gltfData$json$buffer[accessor.bufferView];if(bufferView){const{arrayBuffer:arrayBuffer,byteOffset:bufferByteOffset}=gltfData.buffers[bufferView.buffer],byteOffset=(bufferByteOffset||0)+(accessor.byteOffset||0)+(bufferView.byteOffset||0),{ArrayType:ArrayType,length:length}=(0,gltf_utils.pN)(accessor,bufferView),bytes=BYTES[accessor.componentType],components=COMPONENTS[accessor.type],elementAddressScale=bufferView.byteStride||bytes*components,result=new Float32Array(length);for(let i=0;i{if(!Number.isFinite(shader.bufferView))throw new Error("KHR_techniques_webgl: no shader code");shader.code=textDecoder.decode(gltfScenegraph.getTypedArrayForBufferView(shader.bufferView))})),programs.forEach((program=>{program.fragmentShader=shaders[program.fragmentShader],program.vertexShader=shaders[program.vertexShader]})),techniques.forEach((technique=>{technique.program=programs[technique.program]})),techniques}(extension,gltfScenegraph);for(const material of json.materials||[]){const materialExtension=gltfScenegraph.getObjectExtension(material,KHR_TECHNIQUES_WEBGL);materialExtension&&(material.technique=Object.assign({},materialExtension,techniques[materialExtension.technique]),material.technique.values=resolveValues(material.technique,gltfScenegraph)),gltfScenegraph.removeObjectExtension(material,KHR_TECHNIQUES_WEBGL)}gltfScenegraph.removeExtension(KHR_TECHNIQUES_WEBGL)}}async function KHR_techniques_webgl_encode(gltfData,options){}function resolveValues(technique,gltfScenegraph){const values=Object.assign({},technique.values);return Object.keys(technique.uniforms||{}).forEach((uniform=>{technique.uniforms[uniform].value&&!(uniform in values)&&(values[uniform]=technique.uniforms[uniform].value)})),Object.keys(values).forEach((uniform=>{"object"==typeof values[uniform]&&void 0!==values[uniform].index&&(values[uniform].texture=gltfScenegraph.getTexture(values[uniform].index))})),values}const EXT_FEATURE_METADATA="EXT_feature_metadata",EXT_feature_metadata_name=EXT_FEATURE_METADATA;async function EXT_feature_metadata_decode(gltfData){!function decodeExtFeatureMetadata(scenegraph){var _extension$schema;const extension=scenegraph.getExtension(EXT_FEATURE_METADATA),schemaClasses=null==extension||null===(_extension$schema=extension.schema)||void 0===_extension$schema?void 0:_extension$schema.classes,featureTables=null==extension?void 0:extension.featureTables;(null==extension?void 0:extension.featureTextures)&&console.warn('featureTextures is not yet supported in the "EXT_feature_metadata" extension.');if(schemaClasses&&featureTables)for(const schemaName in schemaClasses){const schemaClass=schemaClasses[schemaName],featureTable=findFeatureTableByName(featureTables,schemaName);featureTable&&handleFeatureTableProperties(scenegraph,featureTable,schemaClass)}}(new GLTFScenegraph(gltfData))}function handleFeatureTableProperties(scenegraph,featureTable,schemaClass){for(const propertyName in schemaClass.properties){var _featureTable$propert;const schemaProperty=schemaClass.properties[propertyName],featureTableProperty=null==featureTable||null===(_featureTable$propert=featureTable.properties)||void 0===_featureTable$propert?void 0:_featureTable$propert[propertyName],numberOfFeatures=featureTable.count;if(featureTableProperty){const data=getPropertyDataFromBinarySource(scenegraph,schemaProperty,numberOfFeatures,featureTableProperty);featureTableProperty.data=data}}}function getPropertyDataFromBinarySource(scenegraph,schemaProperty,numberOfFeatures,featureTableProperty){const bufferView=featureTableProperty.bufferView;let data=scenegraph.getTypedArrayForBufferView(bufferView);switch(schemaProperty.type){case"STRING":{const stringOffsetBufferView=featureTableProperty.stringOffsetBufferView;data=function getStringAttributes(data,offsetsData,stringsCount){const stringsArray=[],textDecoder=new TextDecoder("utf8");let stringOffset=0;const bytesPerStringSize=4;for(let index=0;indexthis._convertIdToIndex(child,"node")))),node.meshes&&(node.meshes=node.meshes.map((mesh=>this._convertIdToIndex(mesh,"mesh"))))}_convertSceneIds(scene){scene.nodes&&(scene.nodes=scene.nodes.map((node=>this._convertIdToIndex(node,"node"))))}_convertIdsToIndices(json,topLevelArrayName){json[topLevelArrayName]||(console.warn("gltf v1: json doesn't contain attribute ".concat(topLevelArrayName)),json[topLevelArrayName]=[]);for(const object of json[topLevelArrayName])for(const key in object){const id=object[key],index=this._convertIdToIndex(id,key);object[key]=index}}_convertIdToIndex(id,key){const arrayName=GLTF_KEYS[key];if(arrayName in this.idToIndexMap){const index=this.idToIndexMap[arrayName][id];if(!Number.isFinite(index))throw new Error("gltf v1: failed to resolve ".concat(key," with id ").concat(id));return index}return id}_updateObjects(json){for(const buffer of this.json.buffers)delete buffer.type}_updateMaterial(json){for(const material of json.materials){var _material$values,_material$values2,_material$values3;material.pbrMetallicRoughness={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1};const textureId=(null===(_material$values=material.values)||void 0===_material$values?void 0:_material$values.tex)||(null===(_material$values2=material.values)||void 0===_material$values2?void 0:_material$values2.texture2d_0)||(null===(_material$values3=material.values)||void 0===_material$values3?void 0:_material$values3.diffuseTex),textureIndex=json.textures.findIndex((texture=>texture.id===textureId));-1!==textureIndex&&(material.pbrMetallicRoughness.baseColorTexture={index:textureIndex})}}}const post_process_gltf_COMPONENTS={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},post_process_gltf_BYTES={5120:1,5121:1,5122:2,5123:2,5125:4,5126:4},GL_SAMPLER_TEXTURE_MAG_FILTER=10240,GL_SAMPLER_TEXTURE_MIN_FILTER=10241,GL_SAMPLER_TEXTURE_WRAP_S=10242,GL_SAMPLER_TEXTURE_WRAP_T=10243,GL_SAMPLER_REPEAT=10497,SAMPLER_PARAMETER_GLTF_TO_GL={magFilter:GL_SAMPLER_TEXTURE_MAG_FILTER,minFilter:GL_SAMPLER_TEXTURE_MIN_FILTER,wrapS:GL_SAMPLER_TEXTURE_WRAP_S,wrapT:GL_SAMPLER_TEXTURE_WRAP_T},DEFAULT_SAMPLER={[GL_SAMPLER_TEXTURE_MAG_FILTER]:9729,[GL_SAMPLER_TEXTURE_MIN_FILTER]:9986,[GL_SAMPLER_TEXTURE_WRAP_S]:GL_SAMPLER_REPEAT,[GL_SAMPLER_TEXTURE_WRAP_T]:GL_SAMPLER_REPEAT};class GLTFPostProcessor{constructor(){(0,defineProperty.Z)(this,"baseUri",""),(0,defineProperty.Z)(this,"json",{}),(0,defineProperty.Z)(this,"buffers",[]),(0,defineProperty.Z)(this,"images",[])}postProcess(gltf){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{json:json,buffers:buffers=[],images:images=[],baseUri:baseUri=""}=gltf;return(0,assert.h)(json),this.baseUri=baseUri,this.json=json,this.buffers=buffers,this.images=images,this._resolveTree(this.json,options),this.json}_resolveTree(json){json.bufferViews&&(json.bufferViews=json.bufferViews.map(((bufView,i)=>this._resolveBufferView(bufView,i)))),json.images&&(json.images=json.images.map(((image,i)=>this._resolveImage(image,i)))),json.samplers&&(json.samplers=json.samplers.map(((sampler,i)=>this._resolveSampler(sampler,i)))),json.textures&&(json.textures=json.textures.map(((texture,i)=>this._resolveTexture(texture,i)))),json.accessors&&(json.accessors=json.accessors.map(((accessor,i)=>this._resolveAccessor(accessor,i)))),json.materials&&(json.materials=json.materials.map(((material,i)=>this._resolveMaterial(material,i)))),json.meshes&&(json.meshes=json.meshes.map(((mesh,i)=>this._resolveMesh(mesh,i)))),json.nodes&&(json.nodes=json.nodes.map(((node,i)=>this._resolveNode(node,i)))),json.skins&&(json.skins=json.skins.map(((skin,i)=>this._resolveSkin(skin,i)))),json.scenes&&(json.scenes=json.scenes.map(((scene,i)=>this._resolveScene(scene,i)))),void 0!==json.scene&&(json.scene=json.scenes[this.json.scene])}getScene(index){return this._get("scenes",index)}getNode(index){return this._get("nodes",index)}getSkin(index){return this._get("skins",index)}getMesh(index){return this._get("meshes",index)}getMaterial(index){return this._get("materials",index)}getAccessor(index){return this._get("accessors",index)}getCamera(index){return null}getTexture(index){return this._get("textures",index)}getSampler(index){return this._get("samplers",index)}getImage(index){return this._get("images",index)}getBufferView(index){return this._get("bufferViews",index)}getBuffer(index){return this._get("buffers",index)}_get(array,index){if("object"==typeof index)return index;const object=this.json[array]&&this.json[array][index];return object||console.warn("glTF file error: Could not find ".concat(array,"[").concat(index,"]")),object}_resolveScene(scene,index){return scene.id=scene.id||"scene-".concat(index),scene.nodes=(scene.nodes||[]).map((node=>this.getNode(node))),scene}_resolveNode(node,index){return node.id=node.id||"node-".concat(index),node.children&&(node.children=node.children.map((child=>this.getNode(child)))),void 0!==node.mesh?node.mesh=this.getMesh(node.mesh):void 0!==node.meshes&&node.meshes.length&&(node.mesh=node.meshes.reduce(((accum,meshIndex)=>{const mesh=this.getMesh(meshIndex);return accum.id=mesh.id,accum.primitives=accum.primitives.concat(mesh.primitives),accum}),{primitives:[]})),void 0!==node.camera&&(node.camera=this.getCamera(node.camera)),void 0!==node.skin&&(node.skin=this.getSkin(node.skin)),node}_resolveSkin(skin,index){return skin.id=skin.id||"skin-".concat(index),skin.inverseBindMatrices=this.getAccessor(skin.inverseBindMatrices),skin}_resolveMesh(mesh,index){return mesh.id=mesh.id||"mesh-".concat(index),mesh.primitives&&(mesh.primitives=mesh.primitives.map((primitive=>{const attributes=(primitive={...primitive}).attributes;primitive.attributes={};for(const attribute in attributes)primitive.attributes[attribute]=this.getAccessor(attributes[attribute]);return void 0!==primitive.indices&&(primitive.indices=this.getAccessor(primitive.indices)),void 0!==primitive.material&&(primitive.material=this.getMaterial(primitive.material)),primitive}))),mesh}_resolveMaterial(material,index){if(material.id=material.id||"material-".concat(index),material.normalTexture&&(material.normalTexture={...material.normalTexture},material.normalTexture.texture=this.getTexture(material.normalTexture.index)),material.occlusionTexture&&(material.occlustionTexture={...material.occlustionTexture},material.occlusionTexture.texture=this.getTexture(material.occlusionTexture.index)),material.emissiveTexture&&(material.emmisiveTexture={...material.emmisiveTexture},material.emissiveTexture.texture=this.getTexture(material.emissiveTexture.index)),material.emissiveFactor||(material.emissiveFactor=material.emmisiveTexture?[1,1,1]:[0,0,0]),material.pbrMetallicRoughness){material.pbrMetallicRoughness={...material.pbrMetallicRoughness};const mr=material.pbrMetallicRoughness;mr.baseColorTexture&&(mr.baseColorTexture={...mr.baseColorTexture},mr.baseColorTexture.texture=this.getTexture(mr.baseColorTexture.index)),mr.metallicRoughnessTexture&&(mr.metallicRoughnessTexture={...mr.metallicRoughnessTexture},mr.metallicRoughnessTexture.texture=this.getTexture(mr.metallicRoughnessTexture.index))}return material}_resolveAccessor(accessor,index){if(accessor.id=accessor.id||"accessor-".concat(index),void 0!==accessor.bufferView&&(accessor.bufferView=this.getBufferView(accessor.bufferView)),accessor.bytesPerComponent=function post_process_gltf_getBytesFromComponentType(componentType){return post_process_gltf_BYTES[componentType]}(accessor.componentType),accessor.components=function post_process_gltf_getSizeFromAccessorType(type){return post_process_gltf_COMPONENTS[type]}(accessor.type),accessor.bytesPerElement=accessor.bytesPerComponent*accessor.components,accessor.bufferView){const buffer=accessor.bufferView.buffer,{ArrayType:ArrayType,byteLength:byteLength}=(0,gltf_utils.pN)(accessor,accessor.bufferView),byteOffset=(accessor.bufferView.byteOffset||0)+(accessor.byteOffset||0)+buffer.byteOffset;let cutBuffer=buffer.arrayBuffer.slice(byteOffset,byteOffset+byteLength);accessor.bufferView.byteStride&&(cutBuffer=this._getValueFromInterleavedBuffer(buffer,byteOffset,accessor.bufferView.byteStride,accessor.bytesPerElement,accessor.count)),accessor.value=new ArrayType(cutBuffer)}return accessor}_getValueFromInterleavedBuffer(buffer,byteOffset,byteStride,bytesPerElement,count){const result=new Uint8Array(count*bytesPerElement);for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:0,options=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const dataView=new DataView(arrayBuffer),type=function parse_glb_getMagicString(dataView){let byteOffset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"".concat(String.fromCharCode(dataView.getUint8(byteOffset+0))).concat(String.fromCharCode(dataView.getUint8(byteOffset+1))).concat(String.fromCharCode(dataView.getUint8(byteOffset+2))).concat(String.fromCharCode(dataView.getUint8(byteOffset+3)))}(dataView,byteOffset+0),version=dataView.getUint32(byteOffset+4,LE),byteLength=dataView.getUint32(byteOffset+8,LE);switch(Object.assign(glb,{header:{byteOffset:byteOffset,byteLength:byteLength,hasBinChunk:!1},type:type,version:version,json:{},binChunks:[]}),byteOffset+=GLB_FILE_HEADER_SIZE,glb.version){case 1:return function parseGLBV1(glb,dataView,byteOffset){(0,env_utils_assert.h)(glb.header.byteLength>GLB_FILE_HEADER_SIZE+GLB_CHUNK_HEADER_SIZE);const contentLength=dataView.getUint32(byteOffset+0,LE),contentFormat=dataView.getUint32(byteOffset+4,LE);return byteOffset+=GLB_CHUNK_HEADER_SIZE,(0,env_utils_assert.h)(contentFormat===GLB_V1_CONTENT_FORMAT_JSON),parseJSONChunk(glb,dataView,byteOffset,contentLength),byteOffset+=contentLength,byteOffset+=parseBINChunk(glb,dataView,byteOffset,glb.header.byteLength),byteOffset}(glb,dataView,byteOffset);case 2:return function parseGLBV2(glb,dataView,byteOffset,options){return(0,env_utils_assert.h)(glb.header.byteLength>GLB_FILE_HEADER_SIZE+GLB_CHUNK_HEADER_SIZE),function parseGLBChunksSync(glb,dataView,byteOffset,options){for(;byteOffset+8<=glb.header.byteLength;){const chunkLength=dataView.getUint32(byteOffset+0,LE),chunkFormat=dataView.getUint32(byteOffset+4,LE);switch(byteOffset+=GLB_CHUNK_HEADER_SIZE,chunkFormat){case GLB_CHUNK_TYPE_JSON:parseJSONChunk(glb,dataView,byteOffset,chunkLength);break;case GLB_CHUNK_TYPE_BIN:parseBINChunk(glb,dataView,byteOffset,chunkLength);break;case GLB_CHUNK_TYPE_JSON_XVIZ_DEPRECATED:options.strict||parseJSONChunk(glb,dataView,byteOffset,chunkLength);break;case GLB_CHUNK_TYPE_BIX_XVIZ_DEPRECATED:options.strict||parseBINChunk(glb,dataView,byteOffset,chunkLength)}byteOffset+=padToNBytes(chunkLength,4)}return byteOffset}(glb,dataView,byteOffset,options),byteOffset+glb.header.byteLength}(glb,dataView,byteOffset,options={});default:throw new Error("Invalid GLB version ".concat(glb.version,". Only supports v1 and v2."))}}function parseJSONChunk(glb,dataView,byteOffset,chunkLength){const jsonChunk=new Uint8Array(dataView.buffer,byteOffset,chunkLength),jsonText=new TextDecoder("utf8").decode(jsonChunk);return glb.json=JSON.parse(jsonText),padToNBytes(chunkLength,4)}function parseBINChunk(glb,dataView,byteOffset,chunkLength){return glb.header.hasBinChunk=!0,glb.binChunks.push({byteOffset:byteOffset,byteLength:chunkLength,arrayBuffer:dataView.buffer}),padToNBytes(chunkLength,4)}async function parseGLTF(gltf,arrayBufferOrString){var _options$gltf,_options$gltf2,_options$gltf3,_options$gltf4;let options=arguments.length>3?arguments[3]:void 0,context=arguments.length>4?arguments[4]:void 0;!function parseGLTFContainerSync(gltf,data,byteOffset,options){options.uri&&(gltf.baseUri=options.uri);if(data instanceof ArrayBuffer&&!function parse_glb_isGLB(arrayBuffer){let byteOffset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const dataView=new DataView(arrayBuffer),{magic:magic=MAGIC_glTF}=options,magic1=dataView.getUint32(byteOffset,!1);return magic1===magic||magic1===MAGIC_glTF}(data,byteOffset,options)){data=(new TextDecoder).decode(data)}if("string"==typeof data)gltf.json=parseJSON(data);else if(data instanceof ArrayBuffer){const glb={};byteOffset=parseGLBSync(glb,data,byteOffset,options.glb),(0,assert.h)("glTF"===glb.type,"Invalid GLB magic string ".concat(glb.type)),gltf._glb=glb,gltf.json=glb.json}else(0,assert.h)(!1,"GLTF: must be ArrayBuffer or string");const buffers=gltf.json.buffers||[];if(gltf.buffers=new Array(buffers.length).fill(null),gltf._glb&&gltf._glb.header.hasBinChunk){const{binChunks:binChunks}=gltf._glb;gltf.buffers[0]={arrayBuffer:binChunks[0].arrayBuffer,byteOffset:binChunks[0].byteOffset,byteLength:binChunks[0].byteLength}}const images=gltf.json.images||[];gltf.images=new Array(images.length).fill({})}(gltf,arrayBufferOrString,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,options),function normalizeGLTFV1(gltf){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(new GLTFV1Normalizer).normalize(gltf,options)}(gltf,{normalize:null==options||null===(_options$gltf=options.gltf)||void 0===_options$gltf?void 0:_options$gltf.normalize}),function preprocessExtensions(gltf){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},context=arguments.length>2?arguments[2]:void 0;const extensions=EXTENSIONS.filter((extension=>useExtension(extension.name,options)));for(const extension of extensions){var _extension$preprocess;null===(_extension$preprocess=extension.preprocess)||void 0===_extension$preprocess||_extension$preprocess.call(extension,gltf,options,context)}}(gltf,options,context);const promises=[];if(null!=options&&null!==(_options$gltf2=options.gltf)&&void 0!==_options$gltf2&&_options$gltf2.loadBuffers&&gltf.json.buffers&&await async function loadBuffers(gltf,options,context){const buffers=gltf.json.buffers||[];for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:{},context=arguments.length>2?arguments[2]:void 0;const extensions=EXTENSIONS.filter((extension=>useExtension(extension.name,options)));for(const extension of extensions){var _extension$decode;await(null===(_extension$decode=extension.decode)||void 0===_extension$decode?void 0:_extension$decode.call(extension,gltf,options,context))}}(gltf,options,context);return promises.push(promise),await Promise.all(promises),null!=options&&null!==(_options$gltf4=options.gltf)&&void 0!==_options$gltf4&&_options$gltf4.postProcess?function postProcessGLTF(gltf,options){return(new GLTFPostProcessor).postProcess(gltf,options)}(gltf,options):gltf}async function loadImage(gltf,image,index,options,context){const{fetch:fetch,parse:parse}=context;let arrayBuffer;if(image.uri&&!image.hasOwnProperty("bufferView")){const uri=resolveUrl(image.uri,options),response=await fetch(uri);arrayBuffer=await response.arrayBuffer(),image.bufferView={data:arrayBuffer}}if(Number.isFinite(image.bufferView)){const array=getTypedArrayForBufferView(gltf.json,gltf.buffers,image.bufferView);arrayBuffer=(0,array_buffer_utils.qv)(array.buffer,array.byteOffset,array.byteLength)}(0,assert.h)(arrayBuffer,"glTF image has no data");let parsedImage=await parse(arrayBuffer,[image_loader.S,BasisLoader],{mimeType:image.mimeType,basis:options.basis||{format:selectSupportedBasisFormat()}},context);parsedImage&&parsedImage[0]&&(parsedImage={compressed:!0,mipmaps:!1,width:parsedImage[0].width,height:parsedImage[0].height,data:parsedImage[0]}),gltf.images=gltf.images||[],gltf.images[index]=parsedImage}const GLTFLoader={name:"glTF",id:"gltf",module:"gltf",version:"3.4.15",extensions:["gltf","glb"],mimeTypes:["model/gltf+json","model/gltf-binary"],text:!0,binary:!0,tests:["glTF"],parse:async function parse(arrayBuffer){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},context=arguments.length>2?arguments[2]:void 0;options={...GLTFLoader.options,...options},options.gltf={...GLTFLoader.options.gltf,...options.gltf};const{byteOffset:byteOffset=0}=options;return await parseGLTF({},arrayBuffer,byteOffset,options,context)},options:{gltf:{normalize:!0,loadBuffers:!0,loadImages:!0,decompressMeshes:!0,postProcess:!0},log:console},deprecatedOptions:{fetchImages:"gltf.loadImages",createImages:"gltf.loadImages",decompress:"gltf.decompressMeshes",postProcess:"gltf.postProcess",gltf:{decompress:"gltf.decompressMeshes"}}}},"./node_modules/@loaders.gl/gltf/dist/esm/lib/gltf-utils/gltf-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Xr:function(){return getMemoryUsageGLTF},dl:function(){return getAccessorTypeFromSize},pN:function(){return getAccessorArrayTypeAndLength},x$:function(){return getComponentTypeFromArray}});var _utils_assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@loaders.gl/gltf/dist/esm/lib/utils/assert.js");const TYPES=["SCALAR","VEC2","VEC3","VEC4"],ARRAY_CONSTRUCTOR_TO_WEBGL_CONSTANT=[[Int8Array,5120],[Uint8Array,5121],[Int16Array,5122],[Uint16Array,5123],[Uint32Array,5125],[Float32Array,5126],[Float64Array,5130]],ARRAY_TO_COMPONENT_TYPE=new Map(ARRAY_CONSTRUCTOR_TO_WEBGL_CONSTANT),ATTRIBUTE_TYPE_TO_COMPONENTS={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},ATTRIBUTE_COMPONENT_TYPE_TO_BYTE_SIZE={5120:1,5121:1,5122:2,5123:2,5125:4,5126:4},ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array};function getAccessorTypeFromSize(size){return TYPES[size-1]||TYPES[0]}function getComponentTypeFromArray(typedArray){const componentType=ARRAY_TO_COMPONENT_TYPE.get(typedArray.constructor);if(!componentType)throw new Error("Illegal typed array");return componentType}function getAccessorArrayTypeAndLength(accessor,bufferView){const ArrayType=ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY[accessor.componentType],components=ATTRIBUTE_TYPE_TO_COMPONENTS[accessor.type],bytesPerComponent=ATTRIBUTE_COMPONENT_TYPE_TO_BYTE_SIZE[accessor.componentType],length=accessor.count*components,byteLength=accessor.count*components*bytesPerComponent;return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_0__.h)(byteLength>=0&&byteLength<=bufferView.byteLength),{ArrayType:ArrayType,length:length,byteLength:byteLength}}function getMemoryUsageGLTF(gltf){let{images:images,bufferViews:bufferViews}=gltf;images=images||[],bufferViews=bufferViews||[];const imageBufferViews=images.map((i=>i.bufferView));bufferViews=bufferViews.filter((view=>!imageBufferViews.includes(view)));const bufferMemory=bufferViews.reduce(((acc,view)=>acc+view.byteLength),0),pixelCount=images.reduce(((acc,image)=>{const{width:width,height:height}=image.image;return acc+width*height}),0);return bufferMemory+Math.ceil(4*pixelCount*1.33)}},"./node_modules/@loaders.gl/gltf/dist/esm/lib/utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"assert failed: gltf")}__webpack_require__.d(__webpack_exports__,{h:function(){return assert}})},"./node_modules/@loaders.gl/loader-utils/dist/esm/json-loader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return JSONLoader}});const JSONLoader={name:"JSON",id:"json",module:"json",version:"3.4.15",extensions:["json","geojson"],mimeTypes:["application/json"],category:"json",text:!0,parseTextSync:parseTextSync,parse:async arrayBuffer=>parseTextSync((new TextDecoder).decode(arrayBuffer)),options:{}};function parseTextSync(text){return JSON.parse(text)}},"./node_modules/@loaders.gl/schema/dist/esm/category/mesh/mesh-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function getMeshBoundingBox(attributes){let minX=1/0,minY=1/0,minZ=1/0,maxX=-1/0,maxY=-1/0,maxZ=-1/0;const positions=attributes.POSITION?attributes.POSITION.value:[],len=positions&&positions.length;for(let i=0;imaxX?x:maxX,maxY=y>maxY?y:maxY,maxZ=z>maxZ?z:maxZ}return[[minX,minY,minZ],[maxX,maxY,maxZ]]}__webpack_require__.d(__webpack_exports__,{v:function(){return getMeshBoundingBox}})},"./node_modules/@loaders.gl/worker-utils/dist/esm/lib/library-utils/library-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return loadLibrary}});var require_utils_browser_namespaceObject={};__webpack_require__.r(require_utils_browser_namespaceObject),__webpack_require__.d(require_utils_browser_namespaceObject,{readFileAsArrayBuffer:function(){return readFileAsArrayBuffer},readFileAsText:function(){return readFileAsText},requireFromFile:function(){return requireFromFile},requireFromString:function(){return requireFromString}});var globals=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/globals.js");const readFileAsArrayBuffer=null,readFileAsText=null,requireFromFile=null,requireFromString=null;var assert=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/assert.js");const VERSION="3.4.15",loadLibraryPromises={};async function loadLibrary(libraryUrl){let moduleName=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return moduleName&&(libraryUrl=function getLibraryUrl(library,moduleName,options){if(library.startsWith("http"))return library;const modules=options.modules||{};if(modules[library])return modules[library];if(!globals.jU)return"modules/".concat(moduleName,"/dist/libs/").concat(library);if(options.CDN)return(0,assert.h)(options.CDN.startsWith("http")),"".concat(options.CDN,"/").concat(moduleName,"@").concat(VERSION,"/dist/libs/").concat(library);if(globals.hJ)return"../src/libs/".concat(library);return"modules/".concat(moduleName,"/src/libs/").concat(library)}(libraryUrl,moduleName,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})),loadLibraryPromises[libraryUrl]=loadLibraryPromises[libraryUrl]||async function loadLibraryFromFile(libraryUrl){if(libraryUrl.endsWith("wasm")){const response=await fetch(libraryUrl);return await response.arrayBuffer()}if(!globals.jU)try{return require_utils_browser_namespaceObject&&requireFromFile&&await requireFromFile(libraryUrl)}catch{return null}if(globals.hJ)return importScripts(libraryUrl);const response=await fetch(libraryUrl);return function loadLibraryFromString(scriptSource,id){if(!globals.jU)return requireFromString&&requireFromString(scriptSource,id);if(globals.hJ)return eval.call(globals.CO,scriptSource),null;const script=document.createElement("script");script.id=id;try{script.appendChild(document.createTextNode(scriptSource))}catch(e){script.text=scriptSource}return document.body.appendChild(script),null}(await response.text(),libraryUrl)}(libraryUrl),await loadLibraryPromises[libraryUrl]}},"./node_modules/@luma.gl/core/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AnimationLoop:function(){return animation_loop.Z},Buffer:function(){return buffer.Z},ClipSpace:function(){return clip_space.Z},ConeGeometry:function(){return ConeGeometry},CubeGeometry:function(){return cube_geometry.Z},CylinderGeometry:function(){return CylinderGeometry},FEATURES:function(){return webgl_features_table.h},FragmentShader:function(){return shader.gs},Framebuffer:function(){return framebuffer.Z},Geometry:function(){return geometry.Z},IcoSphereGeometry:function(){return IcoSphereGeometry},Model:function(){return model.Z},PlaneGeometry:function(){return PlaneGeometry},Program:function(){return program.Z},ProgramManager:function(){return program_manager.Z},Renderbuffer:function(){return renderbuffer.Z},SphereGeometry:function(){return sphere_geometry.Z},Texture2D:function(){return texture_2d.Z},Texture3D:function(){return texture_3d.Z},TextureCube:function(){return texture_cube.Z},Timeline:function(){return timeline.T},Transform:function(){return transform.Z},TransformFeedback:function(){return transform_feedback.Z},TruncatedConeGeometry:function(){return TruncatedConeGeometry},VertexShader:function(){return shader.Qh},assert:function(){return assert.h},clear:function(){return clear.Z},cloneTextureFrom:function(){return texture_utils.h},copyToTexture:function(){return copy_and_blit.Lv},createGLContext:function(){return esm.s9},cssToDevicePixels:function(){return esm.JY},cssToDeviceRatio:function(){return esm.w},dirlight:function(){return dirlight},fp32:function(){return fp32.O},fp64:function(){return fp64.hO},getParameters:function(){return esm.ZS},gouraudLighting:function(){return phong_lighting.N},hasFeature:function(){return features.U6},hasFeatures:function(){return features.ag},instrumentGLContext:function(){return esm.yW},isWebGL:function(){return esm.UF},isWebGL2:function(){return esm.D0},log:function(){return esm.cM},lumaStats:function(){return init.lR},normalizeShaderModule:function(){return shader_module.v},pbr:function(){return pbr.b},phongLighting:function(){return phong_lighting.s},picking:function(){return picking.q},project:function(){return project},readPixelsToArray:function(){return copy_and_blit.z6},readPixelsToBuffer:function(){return copy_and_blit.Jb},resetParameters:function(){return esm.kL},setParameters:function(){return esm.dR},uid:function(){return utils.hQ},withParameters:function(){return esm.s8}});var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),init=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/init.js"),webgl_features_table=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),features=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),program=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/program.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),renderbuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/renderbuffer.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),texture_cube=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-cube.js"),shader=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/shader.js"),clear=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/clear.js"),copy_and_blit=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),texture_utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/texture-utils.js"),texture_3d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-3d.js"),transform_feedback=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/transform-feedback.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");const INDEX_OFFSETS={x:[2,0,1],y:[0,1,2],z:[1,2,0]};class TruncatedConeGeometry extends geometry.Z{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,utils.hQ)("truncated-code-geometry")}=props,{indices:indices,attributes:attributes}=function tesselateTruncatedCone(props){const{bottomRadius:bottomRadius=0,topRadius:topRadius=0,height:height=1,nradial:nradial=10,nvertical:nvertical=10,verticalAxis:verticalAxis="y",topCap:topCap=!1,bottomCap:bottomCap=!1}=props,extra=(topCap?2:0)+(bottomCap?2:0),numVertices=(nradial+1)*(nvertical+1+extra),slant=Math.atan2(bottomRadius-topRadius,height),msin=Math.sin,mcos=Math.cos,mpi=Math.PI,cosSlant=mcos(slant),sinSlant=msin(slant),start=topCap?-2:0,end=nvertical+(bottomCap?2:0),vertsAroundEdge=nradial+1,indices=new Uint16Array(nradial*(nvertical+extra)*6),indexOffset=INDEX_OFFSETS[verticalAxis],positions=new Float32Array(3*numVertices),normals=new Float32Array(3*numVertices),texCoords=new Float32Array(2*numVertices);let i3=0,i2=0;for(let i=start;i<=end;i++){let ringRadius,v=i/nvertical,y=height*v;i<0?(y=0,v=1,ringRadius=bottomRadius):i>nvertical?(y=height,v=1,ringRadius=topRadius):ringRadius=bottomRadius+i/nvertical*(topRadius-bottomRadius),-2!==i&&i!==nvertical+2||(ringRadius=0,v=0),y-=height/2;for(let j=0;jnvertical?0:sin*cosSlant,normals[i3+indexOffset[1]]=i<0?-1:i>nvertical?1:sinSlant,normals[i3+indexOffset[2]]=i<0||i>nvertical?0:cos*cosSlant,texCoords[i2+0]=j/nradial,texCoords[i2+1]=v,i2+=2,i3+=3}}for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,utils.hQ)("cone-geometry"),radius:radius=1,cap:cap=!0}=props;super({...props,id:id,topRadius:0,topCap:Boolean(cap),bottomCap:Boolean(cap),bottomRadius:radius})}}class CylinderGeometry extends TruncatedConeGeometry{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,utils.hQ)("cylinder-geometry"),radius:radius=1}=props;super({...props,id:id,bottomRadius:radius,topRadius:radius})}}var vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js");const ICO_POSITIONS=[-1,0,0,0,1,0,0,0,-1,0,0,1,0,-1,0,1,0,0],ICO_INDICES=[3,4,5,3,5,1,3,1,0,3,0,4,4,0,2,4,2,5,2,0,1,5,2,1];class IcoSphereGeometry extends geometry.Z{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,utils.hQ)("ico-sphere-geometry")}=props,{indices:indices,attributes:attributes}=function tesselateIcosaHedron(props){const{iterations:iterations=0}=props,PI=Math.PI,PI2=2*PI,positions=[...ICO_POSITIONS];let indices=[...ICO_INDICES];positions.push(),indices.push();const getMiddlePoint=(()=>{const pointMemo={};return(i1,i2)=>{const maxi=(i1*=3)>(i2*=3)?i1:i2,key="".concat(i1=0;i-=3){const i1=indices[i+0],i2=indices[i+1],i3=indices[i+2],in1=3*i1,in2=3*i2,in3=3*i3,iu1=2*i1,iu2=2*i2,iu3=2*i3,x1=positions[in1+0],y1=positions[in1+1],z1=positions[in1+2],v1=Math.acos(z1/Math.sqrt(x1*x1+y1*y1+z1*z1))/PI,u1=1-(Math.atan2(y1,x1)+PI)/PI2,x2=positions[in2+0],y2=positions[in2+1],z2=positions[in2+2],v2=Math.acos(z2/Math.sqrt(x2*x2+y2*y2+z2*z2))/PI,u2=1-(Math.atan2(y2,x2)+PI)/PI2,x3=positions[in3+0],y3=positions[in3+1],z3=positions[in3+2],v3=Math.acos(z3/Math.sqrt(x3*x3+y3*y3+z3*z3))/PI,u3=1-(Math.atan2(y3,x3)+PI)/PI2,vec1=[x3-x2,y3-y2,z3-z2],vec2=[x1-x2,y1-y2,z1-z2],normal=new vector3.Z(vec1).cross(vec2).normalize();let newIndex;(0===u1||0===u2||0===u3)&&(0===u1||u1>.5)&&(0===u2||u2>.5)&&(0===u3||u3>.5)&&(positions.push(positions[in1+0],positions[in1+1],positions[in1+2]),newIndex=positions.length/3-1,indices.push(newIndex),texCoords[2*newIndex+0]=1,texCoords[2*newIndex+1]=v1,normals[3*newIndex+0]=normal.x,normals[3*newIndex+1]=normal.y,normals[3*newIndex+2]=normal.z,positions.push(positions[in2+0],positions[in2+1],positions[in2+2]),newIndex=positions.length/3-1,indices.push(newIndex),texCoords[2*newIndex+0]=1,texCoords[2*newIndex+1]=v2,normals[3*newIndex+0]=normal.x,normals[3*newIndex+1]=normal.y,normals[3*newIndex+2]=normal.z,positions.push(positions[in3+0],positions[in3+1],positions[in3+2]),newIndex=positions.length/3-1,indices.push(newIndex),texCoords[2*newIndex+0]=1,texCoords[2*newIndex+1]=v3,normals[3*newIndex+0]=normal.x,normals[3*newIndex+1]=normal.y,normals[3*newIndex+2]=normal.z),normals[in1+0]=normals[in2+0]=normals[in3+0]=normal.x,normals[in1+1]=normals[in2+1]=normals[in3+1]=normal.y,normals[in1+2]=normals[in2+2]=normals[in3+2]=normal.z,texCoords[iu1+0]=u1,texCoords[iu1+1]=v1,texCoords[iu2+0]=u2,texCoords[iu2+1]=v2,texCoords[iu3+0]=u3,texCoords[iu3+1]=v3}return{indices:{size:1,value:new Uint16Array(indices)},attributes:{POSITION:{size:3,value:new Float32Array(positions)},NORMAL:{size:3,value:new Float32Array(normals)},TEXCOORD_0:{size:2,value:new Float32Array(texCoords)}}}}(props);super({...props,id:id,indices:indices,attributes:{...attributes,...props.attributes}})}}class PlaneGeometry extends geometry.Z{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,utils.hQ)("plane-geometry")}=props,{indices:indices,attributes:attributes}=function tesselatePlane(props){const{type:type="x,y",offset:offset=0,flipCull:flipCull=!1,unpack:unpack=!1}=props,coords=type.split(",");let c1len=props["".concat(coords[0],"len")]||1;const c2len=props["".concat(coords[1],"len")]||1,subdivisions1=props["n".concat(coords[0])]||1,subdivisions2=props["n".concat(coords[1])]||1,numVertices=(subdivisions1+1)*(subdivisions2+1),positions=new Float32Array(3*numVertices),normals=new Float32Array(3*numVertices),texCoords=new Float32Array(2*numVertices);flipCull&&(c1len=-c1len);let i2=0,i3=0;for(let z=0;z<=subdivisions2;z++)for(let x=0;x<=subdivisions1;x++){const u=x/subdivisions1,v=z/subdivisions2;switch(texCoords[i2+0]=flipCull?1-u:u,texCoords[i2+1]=v,type){case"x,y":positions[i3+0]=c1len*u-.5*c1len,positions[i3+1]=c2len*v-.5*c2len,positions[i3+2]=offset,normals[i3+0]=0,normals[i3+1]=0,normals[i3+2]=flipCull?1:-1;break;case"x,z":positions[i3+0]=c1len*u-.5*c1len,positions[i3+1]=offset,positions[i3+2]=c2len*v-.5*c2len,normals[i3+0]=0,normals[i3+1]=flipCull?1:-1,normals[i3+2]=0;break;case"y,z":positions[i3+0]=offset,positions[i3+1]=c1len*u-.5*c1len,positions[i3+2]=c2len*v-.5*c2len,normals[i3+0]=flipCull?1:-1,normals[i3+1]=0,normals[i3+2]=0;break;default:throw new Error("PlaneGeometry: unknown type")}i2+=2,i3+=3}const numVertsAcross=subdivisions1+1,indices=new Uint16Array(subdivisions1*subdivisions2*6);for(let z=0;z0&&void 0!==arguments[0]?arguments[0]:DEFAULT_MODULE_OPTIONS;const uniforms={};return void 0!==opts.modelMatrix&&(uniforms.modelMatrix=opts.modelMatrix),void 0!==opts.viewMatrix&&(uniforms.viewMatrix=opts.viewMatrix),void 0!==opts.projectionMatrix&&(uniforms.projectionMatrix=opts.projectionMatrix),void 0!==opts.cameraPositionWorld&&(uniforms.cameraPositionWorld=opts.cameraPositionWorld),void 0===opts.projectionMatrix&&void 0===opts.viewMatrix||(uniforms.viewProjectionMatrix=new matrix4.Z(opts.projectionMatrix).multiplyRight(opts.viewMatrix)),uniforms},vs:"".concat(common,"\nuniform mat4 modelMatrix;\nuniform mat4 viewMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewProjectionMatrix;\nuniform vec3 cameraPositionWorld;\n\nstruct World {\n vec3 position;\n vec3 normal;\n};\n\nWorld world;\n\nvoid project_setPosition(vec4 position) {\n project_vPositionWorld = position;\n}\n\nvoid project_setNormal(vec3 normal) {\n project_vNormalWorld = normal;\n}\n\nvoid project_setPositionAndNormal_World(vec3 position, vec3 normal) {\n world.position = position;\n world.normal = normal;\n}\n\nvoid project_setPositionAndNormal_Model(vec3 position, vec3 normal) {\n world.position = (modelMatrix * vec4(position, 1.)).xyz;\n world.normal = mat3(modelMatrix) * normal;\n}\n\nvec4 project_model_to_clipspace(vec4 position) {\n return viewProjectionMatrix * modelMatrix * position;\n}\n\nvec4 project_model_to_clipspace(vec3 position) {\n return viewProjectionMatrix * modelMatrix * vec4(position, 1.);\n}\n\nvec4 project_world_to_clipspace(vec3 position) {\n return viewProjectionMatrix * vec4(position, 1.);\n}\n\nvec4 project_view_to_clipspace(vec3 position) {\n return projectionMatrix * vec4(position, 1.);\n}\n\nvec4 project_to_clipspace(vec3 position) {\n return viewProjectionMatrix * vec4(position, 1.);\n}\n"),fs:"\n".concat(common)},dirlight_DEFAULT_MODULE_OPTIONS={lightDirection:new Float32Array([1,1,2])};const dirlight={name:"dirlight",vs:null,fs:"uniform vec3 dirlight_uLightDirection;\nvec4 dirlight_filterColor(vec4 color) {\n vec3 normal = project_getNormal_World();\n float d = abs(dot(normalize(normal), normalize(dirlight_uLightDirection)));\n return vec4(color.rgb * d, color.a);\n}\n",getUniforms:function dirlight_getUniforms(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dirlight_DEFAULT_MODULE_OPTIONS;const uniforms={};return opts.lightDirection&&(uniforms.dirlight_uLightDirection=opts.lightDirection),uniforms},dependencies:[project]};var shader_module=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/shader-module.js"),fp32=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/fp32/fp32.js"),fp64=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/fp64/fp64.js"),picking=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/picking/picking.js"),phong_lighting=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js"),pbr=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/pbr/pbr.js"),assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js")},"./node_modules/@luma.gl/engine/dist/esm/geometries/cube-geometry.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return CubeGeometry}});var _geometry_geometry__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");const CUBE_INDICES=new Uint16Array([0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]),CUBE_POSITIONS=new Float32Array([-1,-1,1,1,-1,1,1,1,1,-1,1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1]),CUBE_NORMALS=new Float32Array([0,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0]),CUBE_TEX_COORDS=new Float32Array([0,0,1,0,1,1,0,1,1,0,1,1,0,1,0,0,0,1,0,0,1,0,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,0,1]),ATTRIBUTES={POSITION:{size:3,value:new Float32Array(CUBE_POSITIONS)},NORMAL:{size:3,value:new Float32Array(CUBE_NORMALS)},TEXCOORD_0:{size:2,value:new Float32Array(CUBE_TEX_COORDS)}};class CubeGeometry extends _geometry_geometry__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.hQ)("cube-geometry")}=props;super({...props,id:id,indices:{size:1,value:new Uint16Array(CUBE_INDICES)},attributes:{...ATTRIBUTES,...props.attributes}})}}},"./node_modules/@luma.gl/engine/dist/esm/geometries/sphere-geometry.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return SphereGeometry}});var _geometry_geometry__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");class SphereGeometry extends _geometry_geometry__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.hQ)("sphere-geometry")}=props,{indices:indices,attributes:attributes}=function tesselateSphere(props){const{nlat:nlat=10,nlong:nlong=10}=props;let{radius:radius=1}=props;const startLat=0,latRange=Math.PI-startLat,startLong=0,longRange=2*Math.PI-startLong,numVertices=(nlat+1)*(nlong+1);if("number"==typeof radius){const value=radius;radius=(n1,n2,n3,u,v)=>value}const positions=new Float32Array(3*numVertices),normals=new Float32Array(3*numVertices),texCoords=new Float32Array(2*numVertices),indices=new(numVertices>65535?Uint32Array:Uint16Array)(nlat*nlong*6);for(let y=0;y<=nlat;y++)for(let x=0;x<=nlong;x++){const u=x/nlong,v=y/nlat,index=x+y*(nlong+1),i2=2*index,i3=3*index,theta=longRange*u,phi=latRange*v,sinTheta=Math.sin(theta),cosTheta=Math.cos(theta),sinPhi=Math.sin(phi),ux=cosTheta*sinPhi,uy=Math.cos(phi),uz=sinTheta*sinPhi,r=radius(ux,uy,uz,u,v);positions[i3+0]=r*ux,positions[i3+1]=r*uy,positions[i3+2]=r*uz,normals[i3+0]=ux,normals[i3+1]=uy,normals[i3+2]=uz,texCoords[i2+0]=u,texCoords[i2+1]=1-v}const numVertsAround=nlong+1;for(let x=0;x-1===coord?0:coord));super(gl,Object.assign({},opts,{vs:"attribute vec2 aClipSpacePosition;\nattribute vec2 aTexCoord;\nattribute vec2 aCoordinate;\n\nvarying vec2 position;\nvarying vec2 coordinate;\nvarying vec2 uv;\n\nvoid main(void) {\n gl_Position = vec4(aClipSpacePosition, 0., 1.);\n position = aClipSpacePosition;\n coordinate = aCoordinate;\n uv = aTexCoord;\n}\n",geometry:new _geometry_geometry__WEBPACK_IMPORTED_MODULE_1__.Z({drawMode:5,vertexCount:4,attributes:{aClipSpacePosition:{size:2,value:new Float32Array(POSITIONS)},aTexCoord:{size:2,value:new Float32Array(TEX_COORDS)},aCoordinate:{size:2,value:new Float32Array(TEX_COORDS)}}})})),this.setVertexCount(4)}}},"./node_modules/@luma.gl/experimental/dist/esm/gltf/gltf-material-parser.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return GLTFMaterialParser}});var _luma_gl_webgl__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");class GLTFMaterialParser{constructor(gl,_ref){let{attributes:attributes,material:material,pbrDebug:pbrDebug,imageBasedLightingEnvironment:imageBasedLightingEnvironment,lights:lights,useTangents:useTangents}=_ref;this.gl=gl,this.defines={MANUAL_SRGB:1,SRGB_FAST_APPROXIMATION:1},(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_0__.U6)(gl,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.h.GLSL_TEXTURE_LOD)&&(this.defines.USE_TEX_LOD=1),this.uniforms={u_Camera:[0,0,0],u_MetallicRoughnessValues:[1,1]},this.parameters={},this.generatedTextures=[],imageBasedLightingEnvironment&&(this.uniforms.u_DiffuseEnvSampler=imageBasedLightingEnvironment.getDiffuseEnvSampler(),this.uniforms.u_SpecularEnvSampler=imageBasedLightingEnvironment.getSpecularEnvSampler(),this.uniforms.u_brdfLUT=imageBasedLightingEnvironment.getBrdfTexture(),this.uniforms.u_ScaleIBLAmbient=[1,1]),pbrDebug&&(this.uniforms.u_ScaleDiffBaseMR=[0,0,0,0],this.uniforms.u_ScaleFGDSpec=[0,0,0,0]),this.defineIfPresent(attributes.NORMAL,"HAS_NORMALS"),this.defineIfPresent(attributes.TANGENT&&useTangents,"HAS_TANGENTS"),this.defineIfPresent(attributes.TEXCOORD_0,"HAS_UV"),this.defineIfPresent(imageBasedLightingEnvironment,"USE_IBL"),this.defineIfPresent(lights,"USE_LIGHTS"),this.defineIfPresent(pbrDebug,"PBR_DEBUG"),material&&this.parseMaterial(material)}defineIfPresent(value,name){value&&(this.defines[name]=1)}parseTexture(gltfTexture,name){let define=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const parameters=gltfTexture.texture&&gltfTexture.texture.sampler&&gltfTexture.texture.sampler.parameters||{},image=gltfTexture.texture.source.image;let textureOptions,specialTextureParameters={};image.compressed?(textureOptions=image,specialTextureParameters={[this.gl.TEXTURE_MIN_FILTER]:image.data.length>1?this.gl.LINEAR_MIPMAP_NEAREST:this.gl.LINEAR}):textureOptions={data:image};const texture=new _luma_gl_webgl__WEBPACK_IMPORTED_MODULE_2__.Z(this.gl,{id:gltfTexture.name||gltfTexture.id,parameters:{...parameters,...specialTextureParameters},pixelStore:{[this.gl.UNPACK_FLIP_Y_WEBGL]:!1},...textureOptions});this.uniforms[name]=texture,this.defineIfPresent(define,define),this.generatedTextures.push(texture)}parsePbrMetallicRoughness(pbrMetallicRoughness){pbrMetallicRoughness.baseColorTexture&&this.parseTexture(pbrMetallicRoughness.baseColorTexture,"u_BaseColorSampler","HAS_BASECOLORMAP"),this.uniforms.u_BaseColorFactor=pbrMetallicRoughness.baseColorFactor||[1,1,1,1],pbrMetallicRoughness.metallicRoughnessTexture&&this.parseTexture(pbrMetallicRoughness.metallicRoughnessTexture,"u_MetallicRoughnessSampler","HAS_METALROUGHNESSMAP");const{metallicFactor:metallicFactor=1,roughnessFactor:roughnessFactor=1}=pbrMetallicRoughness;this.uniforms.u_MetallicRoughnessValues=[metallicFactor,roughnessFactor]}parseMaterial(material){if(this.uniforms.pbr_uUnlit=Boolean(material.unlit),material.pbrMetallicRoughness&&this.parsePbrMetallicRoughness(material.pbrMetallicRoughness),material.normalTexture){this.parseTexture(material.normalTexture,"u_NormalSampler","HAS_NORMALMAP");const{scale:scale=1}=material.normalTexture;this.uniforms.u_NormalScale=scale}if(material.occlusionTexture){this.parseTexture(material.occlusionTexture,"u_OcclusionSampler","HAS_OCCLUSIONMAP");const{strength:strength=1}=material.occlusionTexture;this.uniforms.u_OcclusionStrength=strength}if(material.emissiveTexture&&(this.parseTexture(material.emissiveTexture,"u_EmissiveSampler","HAS_EMISSIVEMAP"),this.uniforms.u_EmissiveFactor=material.emissiveFactor||[0,0,0]),"MASK"===material.alphaMode){const{alphaCutoff:alphaCutoff=.5}=material;this.defines.ALPHA_CUTOFF=1,this.uniforms.u_AlphaCutoff=alphaCutoff}else"BLEND"===material.alphaMode&&(_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_3__.cM.warn("BLEND alphaMode might not work well because it requires mesh sorting")(),Object.assign(this.parameters,{blend:!0,blendEquation:this.gl.FUNC_ADD,blendFunc:[this.gl.SRC_ALPHA,this.gl.ONE_MINUS_SRC_ALPHA,this.gl.ONE,this.gl.ONE_MINUS_SRC_ALPHA]}))}delete(){this.generatedTextures.forEach((texture=>texture.delete()))}}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/fp64/fp64.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function fp64ify(a){let out=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],startIndex=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const hiPart=Math.fround(a),loPart=a-hiPart;return out[startIndex]=hiPart,out[startIndex+1]=loPart,out}function fp64LowPart(a){return a-Math.fround(a)}function fp64ifyMatrix4(matrix){const matrixFP64=new Float32Array(32);for(let i=0;i<4;++i)for(let j=0;j<4;++j){const index=4*i+j;fp64ify(matrix[4*j+i],matrixFP64,2*index)}return matrixFP64}__webpack_require__.d(__webpack_exports__,{hO:function(){return fp64},n2:function(){return fp64arithmetic}});const CONST_UNIFORMS={ONE:1};const fp64arithmetic={name:"fp64-arithmetic",vs:"uniform float ONE;\nvec2 split(float a) {\n const float SPLIT = 4097.0;\n float t = a * SPLIT;\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float a_hi = t * ONE - (t - a);\n float a_lo = a * ONE - a_hi;\n#else\n float a_hi = t - (t - a);\n float a_lo = a - a_hi;\n#endif\n return vec2(a_hi, a_lo);\n}\nvec2 split2(vec2 a) {\n vec2 b = split(a.x);\n b.y += a.y;\n return b;\n}\nvec2 quickTwoSum(float a, float b) {\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float sum = (a + b) * ONE;\n float err = b - (sum - a) * ONE;\n#else\n float sum = a + b;\n float err = b - (sum - a);\n#endif\n return vec2(sum, err);\n}\nvec2 twoSum(float a, float b) {\n float s = (a + b);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float v = (s * ONE - a) * ONE;\n float err = (a - (s - v) * ONE) * ONE * ONE * ONE + (b - v);\n#else\n float v = s - a;\n float err = (a - (s - v)) + (b - v);\n#endif\n return vec2(s, err);\n}\n\nvec2 twoSub(float a, float b) {\n float s = (a - b);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float v = (s * ONE - a) * ONE;\n float err = (a - (s - v) * ONE) * ONE * ONE * ONE - (b + v);\n#else\n float v = s - a;\n float err = (a - (s - v)) - (b + v);\n#endif\n return vec2(s, err);\n}\n\nvec2 twoSqr(float a) {\n float prod = a * a;\n vec2 a_fp64 = split(a);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float err = ((a_fp64.x * a_fp64.x - prod) * ONE + 2.0 * a_fp64.x *\n a_fp64.y * ONE * ONE) + a_fp64.y * a_fp64.y * ONE * ONE * ONE;\n#else\n float err = ((a_fp64.x * a_fp64.x - prod) + 2.0 * a_fp64.x * a_fp64.y) + a_fp64.y * a_fp64.y;\n#endif\n return vec2(prod, err);\n}\n\nvec2 twoProd(float a, float b) {\n float prod = a * b;\n vec2 a_fp64 = split(a);\n vec2 b_fp64 = split(b);\n float err = ((a_fp64.x * b_fp64.x - prod) + a_fp64.x * b_fp64.y +\n a_fp64.y * b_fp64.x) + a_fp64.y * b_fp64.y;\n return vec2(prod, err);\n}\n\nvec2 sum_fp64(vec2 a, vec2 b) {\n vec2 s, t;\n s = twoSum(a.x, b.x);\n t = twoSum(a.y, b.y);\n s.y += t.x;\n s = quickTwoSum(s.x, s.y);\n s.y += t.y;\n s = quickTwoSum(s.x, s.y);\n return s;\n}\n\nvec2 sub_fp64(vec2 a, vec2 b) {\n vec2 s, t;\n s = twoSub(a.x, b.x);\n t = twoSub(a.y, b.y);\n s.y += t.x;\n s = quickTwoSum(s.x, s.y);\n s.y += t.y;\n s = quickTwoSum(s.x, s.y);\n return s;\n}\n\nvec2 mul_fp64(vec2 a, vec2 b) {\n vec2 prod = twoProd(a.x, b.x);\n prod.y += a.x * b.y;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n prod = split2(prod);\n#endif\n prod = quickTwoSum(prod.x, prod.y);\n prod.y += a.y * b.x;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n prod = split2(prod);\n#endif\n prod = quickTwoSum(prod.x, prod.y);\n return prod;\n}\n\nvec2 div_fp64(vec2 a, vec2 b) {\n float xn = 1.0 / b.x;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n vec2 yn = mul_fp64(a, vec2(xn, 0));\n#else\n vec2 yn = a * xn;\n#endif\n float diff = (sub_fp64(a, mul_fp64(b, yn))).x;\n vec2 prod = twoProd(xn, diff);\n return sum_fp64(yn, prod);\n}\n\nvec2 sqrt_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) return vec2(0.0, 0.0);\n if (a.x < 0.0) return vec2(0.0 / 0.0, 0.0 / 0.0);\n\n float x = 1.0 / sqrt(a.x);\n float yn = a.x * x;\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n vec2 yn_sqr = twoSqr(yn) * ONE;\n#else\n vec2 yn_sqr = twoSqr(yn);\n#endif\n float diff = sub_fp64(a, yn_sqr).x;\n vec2 prod = twoProd(x * 0.5, diff);\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n return sum_fp64(split(yn), prod);\n#else\n return sum_fp64(vec2(yn, 0.0), prod);\n#endif\n}\n",fs:null,getUniforms:function getUniforms(){return CONST_UNIFORMS},fp64ify:fp64ify,fp64LowPart:fp64LowPart,fp64ifyMatrix4:fp64ifyMatrix4},fp64={name:"fp64",vs:"const vec2 E_FP64 = vec2(2.7182817459106445e+00, 8.254840366817007e-08);\nconst vec2 LOG2_FP64 = vec2(0.6931471824645996e+00, -1.9046542121259336e-09);\nconst vec2 PI_FP64 = vec2(3.1415927410125732, -8.742278012618954e-8);\nconst vec2 TWO_PI_FP64 = vec2(6.2831854820251465, -1.7484556025237907e-7);\nconst vec2 PI_2_FP64 = vec2(1.5707963705062866, -4.371139006309477e-8);\nconst vec2 PI_4_FP64 = vec2(0.7853981852531433, -2.1855695031547384e-8);\nconst vec2 PI_16_FP64 = vec2(0.19634954631328583, -5.463923757886846e-9);\nconst vec2 PI_16_2_FP64 = vec2(0.39269909262657166, -1.0927847515773692e-8);\nconst vec2 PI_16_3_FP64 = vec2(0.5890486240386963, -1.4906100798128818e-9);\nconst vec2 PI_180_FP64 = vec2(0.01745329238474369, 1.3519960498364902e-10);\n\nconst vec2 SIN_TABLE_0_FP64 = vec2(0.19509032368659973, -1.6704714833615242e-9);\nconst vec2 SIN_TABLE_1_FP64 = vec2(0.3826834261417389, 6.22335089017767e-9);\nconst vec2 SIN_TABLE_2_FP64 = vec2(0.5555702447891235, -1.1769521357507529e-8);\nconst vec2 SIN_TABLE_3_FP64 = vec2(0.7071067690849304, 1.2101617041793133e-8);\n\nconst vec2 COS_TABLE_0_FP64 = vec2(0.9807852506637573, 2.9739473106360492e-8);\nconst vec2 COS_TABLE_1_FP64 = vec2(0.9238795042037964, 2.8307490351764386e-8);\nconst vec2 COS_TABLE_2_FP64 = vec2(0.8314695954322815, 1.6870263741530778e-8);\nconst vec2 COS_TABLE_3_FP64 = vec2(0.7071067690849304, 1.2101617152815436e-8);\n\nconst vec2 INVERSE_FACTORIAL_3_FP64 = vec2(1.666666716337204e-01, -4.967053879312289e-09);\nconst vec2 INVERSE_FACTORIAL_4_FP64 = vec2(4.16666679084301e-02, -1.2417634698280722e-09);\nconst vec2 INVERSE_FACTORIAL_5_FP64 = vec2(8.333333767950535e-03, -4.34617203337595e-10);\nconst vec2 INVERSE_FACTORIAL_6_FP64 = vec2(1.3888889225199819e-03, -3.3631094437103215e-11);\nconst vec2 INVERSE_FACTORIAL_7_FP64 = vec2(1.9841270113829523e-04, -2.725596874933456e-12);\nconst vec2 INVERSE_FACTORIAL_8_FP64 = vec2(2.4801587642286904e-05, -3.406996025904184e-13);\nconst vec2 INVERSE_FACTORIAL_9_FP64 = vec2(2.75573188446287533e-06, 3.7935713937038186e-14);\nconst vec2 INVERSE_FACTORIAL_10_FP64 = vec2(2.755731998149713e-07, -7.575112367869873e-15);\n\nfloat nint(float d) {\n if (d == floor(d)) return d;\n return floor(d + 0.5);\n}\n\nvec2 nint_fp64(vec2 a) {\n float hi = nint(a.x);\n float lo;\n vec2 tmp;\n if (hi == a.x) {\n lo = nint(a.y);\n tmp = quickTwoSum(hi, lo);\n } else {\n lo = 0.0;\n if (abs(hi - a.x) == 0.5 && a.y < 0.0) {\n hi -= 1.0;\n }\n tmp = vec2(hi, lo);\n }\n return tmp;\n}\n\nvec2 exp_fp64(vec2 a) {\n\n const int k_power = 4;\n const float k = 16.0;\n\n const float inv_k = 1.0 / k;\n\n if (a.x <= -88.0) return vec2(0.0, 0.0);\n if (a.x >= 88.0) return vec2(1.0 / 0.0, 1.0 / 0.0);\n if (a.x == 0.0 && a.y == 0.0) return vec2(1.0, 0.0);\n if (a.x == 1.0 && a.y == 0.0) return E_FP64;\n\n float m = floor(a.x / LOG2_FP64.x + 0.5);\n vec2 r = sub_fp64(a, mul_fp64(LOG2_FP64, vec2(m, 0.0))) * inv_k;\n vec2 s, t, p;\n\n p = mul_fp64(r, r);\n s = sum_fp64(r, p * 0.5);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_3_FP64);\n\n s = sum_fp64(s, t);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_4_FP64);\n\n s = sum_fp64(s, t);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_5_FP64);\n\n\n\n\n\n\n s = sum_fp64(s, t);\n for (int i = 0; i < k_power; i++) {\n s = sum_fp64(s * 2.0, mul_fp64(s, s));\n }\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n s = sum_fp64(s, vec2(ONE, 0.0));\n#else\n s = sum_fp64(s, vec2(1.0, 0.0));\n#endif\n\n return s * pow(2.0, m);\n}\n\nvec2 log_fp64(vec2 a)\n{\n if (a.x == 1.0 && a.y == 0.0) return vec2(0.0, 0.0);\n if (a.x <= 0.0) return vec2(0.0 / 0.0, 0.0 / 0.0);\n vec2 x = vec2(log(a.x), 0.0);\n vec2 s;\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n s = vec2(ONE, 0.0);\n#else\n s = vec2(1.0, 0.0);\n#endif\n\n x = sub_fp64(sum_fp64(x, mul_fp64(a, exp_fp64(-x))), s);\n return x;\n}\n\nvec2 sin_taylor_fp64(vec2 a) {\n vec2 r, s, t, x;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n\n x = -mul_fp64(a, a);\n s = a;\n r = a;\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_3_FP64);\n s = sum_fp64(s, t);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_5_FP64);\n s = sum_fp64(s, t);\n\n\n\n\n\n\n return s;\n}\n\nvec2 cos_taylor_fp64(vec2 a) {\n vec2 r, s, t, x;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(1.0, 0.0);\n }\n\n x = -mul_fp64(a, a);\n r = x;\n s = sum_fp64(vec2(1.0, 0.0), r * 0.5);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_4_FP64);\n s = sum_fp64(s, t);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_6_FP64);\n s = sum_fp64(s, t);\n\n\n\n\n\n\n return s;\n}\n\nvoid sincos_taylor_fp64(vec2 a, out vec2 sin_t, out vec2 cos_t) {\n if (a.x == 0.0 && a.y == 0.0) {\n sin_t = vec2(0.0, 0.0);\n cos_t = vec2(1.0, 0.0);\n }\n\n sin_t = sin_taylor_fp64(a);\n cos_t = sqrt_fp64(sub_fp64(vec2(1.0, 0.0), mul_fp64(sin_t, sin_t)));\n}\n\nvec2 sin_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n\n if (k == 0) {\n if (j == 0) {\n return sin_taylor_fp64(t);\n } else if (j == 1) {\n return cos_taylor_fp64(t);\n } else if (j == -1) {\n return -cos_taylor_fp64(t);\n } else {\n return -sin_taylor_fp64(t);\n }\n }\n\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n\n vec2 sin_t, cos_t;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n\n\n vec2 result = vec2(0.0, 0.0);\n if (j == 0) {\n if (k > 0) {\n result = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n }\n } else if (j == 1) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n result = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n } else if (j == -1) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n } else {\n result = -sum_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n }\n } else {\n if (k > 0) {\n result = -sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(v, cos_t), mul_fp64(u, sin_t));\n }\n }\n\n return result;\n}\n\nvec2 cos_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(1.0, 0.0);\n }\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n\n if (k == 0) {\n if (j == 0) {\n return cos_taylor_fp64(t);\n } else if (j == 1) {\n return -sin_taylor_fp64(t);\n } else if (j == -1) {\n return sin_taylor_fp64(t);\n } else {\n return -cos_taylor_fp64(t);\n }\n }\n\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n\n vec2 sin_t, cos_t;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n vec2 result = vec2(0.0, 0.0);\n if (j == 0) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n result = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n } else if (j == 1) {\n if (k > 0) {\n result = -sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(v, cos_t), mul_fp64(u, sin_t));\n }\n } else if (j == -1) {\n if (k > 0) {\n result = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n }\n } else {\n if (k > 0) {\n result = sub_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n } else {\n result = -sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n }\n\n return result;\n}\n\nvec2 tan_fp64(vec2 a) {\n vec2 sin_a;\n vec2 cos_a;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n vec2 sin_t, cos_t;\n vec2 s, c;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n if (k == 0) {\n s = sin_t;\n c = cos_t;\n } else {\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n if (k > 0) {\n s = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n c = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n s = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n c = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n }\n\n if (j == 0) {\n sin_a = s;\n cos_a = c;\n } else if (j == 1) {\n sin_a = c;\n cos_a = -s;\n } else if (j == -1) {\n sin_a = -c;\n cos_a = s;\n } else {\n sin_a = -s;\n cos_a = -c;\n }\n return div_fp64(sin_a, cos_a);\n}\n\nvec2 radians_fp64(vec2 degree) {\n return mul_fp64(degree, PI_180_FP64);\n}\n\nvec2 mix_fp64(vec2 a, vec2 b, float x) {\n vec2 range = sub_fp64(b, a);\n return sum_fp64(a, mul_fp64(range, vec2(x, 0.0)));\n}\n\nvoid vec2_sum_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = sum_fp64(a[0], b[0]);\n out_val[1] = sum_fp64(a[1], b[1]);\n}\n\nvoid vec2_sub_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = sub_fp64(a[0], b[0]);\n out_val[1] = sub_fp64(a[1], b[1]);\n}\n\nvoid vec2_mul_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = mul_fp64(a[0], b[0]);\n out_val[1] = mul_fp64(a[1], b[1]);\n}\n\nvoid vec2_div_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = div_fp64(a[0], b[0]);\n out_val[1] = div_fp64(a[1], b[1]);\n}\n\nvoid vec2_mix_fp64(vec2 x[2], vec2 y[2], float a, out vec2 out_val[2]) {\n vec2 range[2];\n vec2_sub_fp64(y, x, range);\n vec2 portion[2];\n portion[0] = range[0] * a;\n portion[1] = range[1] * a;\n vec2_sum_fp64(x, portion, out_val);\n}\n\nvec2 vec2_length_fp64(vec2 x[2]) {\n return sqrt_fp64(sum_fp64(mul_fp64(x[0], x[0]), mul_fp64(x[1], x[1])));\n}\n\nvoid vec2_normalize_fp64(vec2 x[2], out vec2 out_val[2]) {\n vec2 length = vec2_length_fp64(x);\n vec2 length_vec2[2];\n length_vec2[0] = length;\n length_vec2[1] = length;\n\n vec2_div_fp64(x, length_vec2, out_val);\n}\n\nvec2 vec2_distance_fp64(vec2 x[2], vec2 y[2]) {\n vec2 diff[2];\n vec2_sub_fp64(x, y, diff);\n return vec2_length_fp64(diff);\n}\n\nvec2 vec2_dot_fp64(vec2 a[2], vec2 b[2]) {\n vec2 v[2];\n\n v[0] = mul_fp64(a[0], b[0]);\n v[1] = mul_fp64(a[1], b[1]);\n\n return sum_fp64(v[0], v[1]);\n}\nvoid vec3_sub_fp64(vec2 a[3], vec2 b[3], out vec2 out_val[3]) {\n for (int i = 0; i < 3; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvoid vec3_sum_fp64(vec2 a[3], vec2 b[3], out vec2 out_val[3]) {\n for (int i = 0; i < 3; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvec2 vec3_length_fp64(vec2 x[3]) {\n return sqrt_fp64(sum_fp64(sum_fp64(mul_fp64(x[0], x[0]), mul_fp64(x[1], x[1])),\n mul_fp64(x[2], x[2])));\n}\n\nvec2 vec3_distance_fp64(vec2 x[3], vec2 y[3]) {\n vec2 diff[3];\n vec3_sub_fp64(x, y, diff);\n return vec3_length_fp64(diff);\n}\nvoid vec4_fp64(vec4 a, out vec2 out_val[4]) {\n out_val[0].x = a[0];\n out_val[0].y = 0.0;\n\n out_val[1].x = a[1];\n out_val[1].y = 0.0;\n\n out_val[2].x = a[2];\n out_val[2].y = 0.0;\n\n out_val[3].x = a[3];\n out_val[3].y = 0.0;\n}\n\nvoid vec4_scalar_mul_fp64(vec2 a[4], vec2 b, out vec2 out_val[4]) {\n out_val[0] = mul_fp64(a[0], b);\n out_val[1] = mul_fp64(a[1], b);\n out_val[2] = mul_fp64(a[2], b);\n out_val[3] = mul_fp64(a[3], b);\n}\n\nvoid vec4_sum_fp64(vec2 a[4], vec2 b[4], out vec2 out_val[4]) {\n for (int i = 0; i < 4; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvoid vec4_dot_fp64(vec2 a[4], vec2 b[4], out vec2 out_val) {\n vec2 v[4];\n\n v[0] = mul_fp64(a[0], b[0]);\n v[1] = mul_fp64(a[1], b[1]);\n v[2] = mul_fp64(a[2], b[2]);\n v[3] = mul_fp64(a[3], b[3]);\n\n out_val = sum_fp64(sum_fp64(v[0], v[1]), sum_fp64(v[2], v[3]));\n}\n\nvoid mat4_vec4_mul_fp64(vec2 b[16], vec2 a[4], out vec2 out_val[4]) {\n vec2 tmp[4];\n\n for (int i = 0; i < 4; i++)\n {\n for (int j = 0; j < 4; j++)\n {\n tmp[j] = b[j + i * 4];\n }\n vec4_dot_fp64(a, tmp, out_val[i]);\n }\n}\n",fs:null,dependencies:[fp64arithmetic],fp64ify:fp64ify,fp64LowPart:fp64LowPart,fp64ifyMatrix4:fp64ifyMatrix4}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/lights/lights.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return lights}});var lights_glsl="#if (defined(SHADER_TYPE_FRAGMENT) && defined(LIGHTING_FRAGMENT)) || (defined(SHADER_TYPE_VERTEX) && defined(LIGHTING_VERTEX))\n\nstruct AmbientLight {\n vec3 color;\n};\n\nstruct PointLight {\n vec3 color;\n vec3 position;\n vec3 attenuation;\n};\n\nstruct DirectionalLight {\n vec3 color;\n vec3 direction;\n};\n\nuniform AmbientLight lighting_uAmbientLight;\nuniform PointLight lighting_uPointLight[MAX_LIGHTS];\nuniform DirectionalLight lighting_uDirectionalLight[MAX_LIGHTS];\nuniform int lighting_uPointLightCount;\nuniform int lighting_uDirectionalLightCount;\n\nuniform bool lighting_uEnabled;\n\nfloat getPointLightAttenuation(PointLight pointLight, float distance) {\n return pointLight.attenuation.x\n + pointLight.attenuation.y * distance\n + pointLight.attenuation.z * distance * distance;\n}\n\n#endif\n";const INITIAL_MODULE_OPTIONS={lightSources:{}};function convertColor(){let{color:color=[0,0,0],intensity:intensity=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return color.map((component=>component*intensity/255))}const lights={name:"lights",vs:lights_glsl,fs:lights_glsl,getUniforms:function getUniforms(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:INITIAL_MODULE_OPTIONS;if("lightSources"in opts){const{ambientLight:ambientLight,pointLights:pointLights,directionalLights:directionalLights}=opts.lightSources||{};return ambientLight||pointLights&&pointLights.length>0||directionalLights&&directionalLights.length>0?Object.assign({},function getLightSourceUniforms(_ref){let{ambientLight:ambientLight,pointLights:pointLights=[],directionalLights:directionalLights=[]}=_ref;const lightSourceUniforms={};return lightSourceUniforms["lighting_uAmbientLight.color"]=ambientLight?convertColor(ambientLight):[0,0,0],pointLights.forEach(((pointLight,index)=>{lightSourceUniforms["lighting_uPointLight[".concat(index,"].color")]=convertColor(pointLight),lightSourceUniforms["lighting_uPointLight[".concat(index,"].position")]=pointLight.position,lightSourceUniforms["lighting_uPointLight[".concat(index,"].attenuation")]=pointLight.attenuation||[1,0,0]})),lightSourceUniforms.lighting_uPointLightCount=pointLights.length,directionalLights.forEach(((directionalLight,index)=>{lightSourceUniforms["lighting_uDirectionalLight[".concat(index,"].color")]=convertColor(directionalLight),lightSourceUniforms["lighting_uDirectionalLight[".concat(index,"].direction")]=directionalLight.direction})),lightSourceUniforms.lighting_uDirectionalLightCount=directionalLights.length,lightSourceUniforms}({ambientLight:ambientLight,pointLights:pointLights,directionalLights:directionalLights}),{lighting_uEnabled:!0}):{lighting_uEnabled:!1}}if("lights"in opts){const lightSources={pointLights:[],directionalLights:[]};for(const light of opts.lights||[])switch(light.type){case"ambient":lightSources.ambientLight=light;break;case"directional":lightSources.directionalLights.push(light);break;case"point":lightSources.pointLights.push(light)}return getUniforms({lightSources:lightSources})}return{}},defines:{MAX_LIGHTS:3}}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/pbr/pbr.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return pbr}});const pbr={name:"pbr",vs:"uniform mat4 u_MVPMatrix;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_NormalMatrix;\n\nvarying vec3 pbr_vPosition;\nvarying vec2 pbr_vUV;\n\n#ifdef HAS_NORMALS\n# ifdef HAS_TANGENTS\nvarying mat3 pbr_vTBN;\n# else\nvarying vec3 pbr_vNormal;\n# endif\n#endif\n\nvoid pbr_setPositionNormalTangentUV(vec4 position, vec4 normal, vec4 tangent, vec2 uv)\n{\n vec4 pos = u_ModelMatrix * position;\n pbr_vPosition = vec3(pos.xyz) / pos.w;\n\n#ifdef HAS_NORMALS\n#ifdef HAS_TANGENTS\n vec3 normalW = normalize(vec3(u_NormalMatrix * vec4(normal.xyz, 0.0)));\n vec3 tangentW = normalize(vec3(u_ModelMatrix * vec4(tangent.xyz, 0.0)));\n vec3 bitangentW = cross(normalW, tangentW) * tangent.w;\n pbr_vTBN = mat3(tangentW, bitangentW, normalW);\n#else\n pbr_vNormal = normalize(vec3(u_ModelMatrix * vec4(normal.xyz, 0.0)));\n#endif\n#endif\n\n#ifdef HAS_UV\n pbr_vUV = uv;\n#else\n pbr_vUV = vec2(0.,0.);\n#endif\n}\n",fs:"#if defined(USE_TEX_LOD) && !defined(FEATURE_GLSL_TEXTURE_LOD)\n# error PBR fragment shader: Texture LOD is not available\n#endif\n\n#if !defined(HAS_TANGENTS) && !defined(FEATURE_GLSL_DERIVATIVES)\n# error PBR fragment shader: Derivatives are not available\n#endif\n\n\n#if (__VERSION__ < 300)\n #define SMART_FOR(INIT, WEBGL1COND, WEBGL2COND, INCR) for (INIT; WEBGL1COND; INCR)\n#else\n #define SMART_FOR(INIT, WEBGL1COND, WEBGL2COND, INCR) for (INIT; WEBGL2COND; INCR)\n#endif\n\nprecision highp float;\n\nuniform bool pbr_uUnlit;\n\n#ifdef USE_IBL\nuniform samplerCube u_DiffuseEnvSampler;\nuniform samplerCube u_SpecularEnvSampler;\nuniform sampler2D u_brdfLUT;\nuniform vec2 u_ScaleIBLAmbient;\n#endif\n\n#ifdef HAS_BASECOLORMAP\nuniform sampler2D u_BaseColorSampler;\n#endif\n#ifdef HAS_NORMALMAP\nuniform sampler2D u_NormalSampler;\nuniform float u_NormalScale;\n#endif\n#ifdef HAS_EMISSIVEMAP\nuniform sampler2D u_EmissiveSampler;\nuniform vec3 u_EmissiveFactor;\n#endif\n#ifdef HAS_METALROUGHNESSMAP\nuniform sampler2D u_MetallicRoughnessSampler;\n#endif\n#ifdef HAS_OCCLUSIONMAP\nuniform sampler2D u_OcclusionSampler;\nuniform float u_OcclusionStrength;\n#endif\n\n#ifdef ALPHA_CUTOFF\nuniform float u_AlphaCutoff;\n#endif\n\nuniform vec2 u_MetallicRoughnessValues;\nuniform vec4 u_BaseColorFactor;\n\nuniform vec3 u_Camera;\n#ifdef PBR_DEBUG\nuniform vec4 u_ScaleDiffBaseMR;\nuniform vec4 u_ScaleFGDSpec;\n#endif\n\nvarying vec3 pbr_vPosition;\n\nvarying vec2 pbr_vUV;\n\n#ifdef HAS_NORMALS\n#ifdef HAS_TANGENTS\nvarying mat3 pbr_vTBN;\n#else\nvarying vec3 pbr_vNormal;\n#endif\n#endif\n\n\nstruct PBRInfo\n{\n float NdotL;\n float NdotV;\n float NdotH;\n float LdotH;\n float VdotH;\n float perceptualRoughness;\n float metalness;\n vec3 reflectance0;\n vec3 reflectance90;\n float alphaRoughness;\n vec3 diffuseColor;\n vec3 specularColor;\n vec3 n;\n vec3 v;\n};\n\nconst float M_PI = 3.141592653589793;\nconst float c_MinRoughness = 0.04;\n\nvec4 SRGBtoLINEAR(vec4 srgbIn)\n{\n#ifdef MANUAL_SRGB\n#ifdef SRGB_FAST_APPROXIMATION\n vec3 linOut = pow(srgbIn.xyz,vec3(2.2));\n#else\n vec3 bLess = step(vec3(0.04045),srgbIn.xyz);\n vec3 linOut = mix( srgbIn.xyz/vec3(12.92), pow((srgbIn.xyz+vec3(0.055))/vec3(1.055),vec3(2.4)), bLess );\n#endif\n return vec4(linOut,srgbIn.w);;\n#else\n return srgbIn;\n#endif\n}\n\nvec3 getNormal()\n{\n#ifndef HAS_TANGENTS\n vec3 pos_dx = dFdx(pbr_vPosition);\n vec3 pos_dy = dFdy(pbr_vPosition);\n vec3 tex_dx = dFdx(vec3(pbr_vUV, 0.0));\n vec3 tex_dy = dFdy(vec3(pbr_vUV, 0.0));\n vec3 t = (tex_dy.t * pos_dx - tex_dx.t * pos_dy) / (tex_dx.s * tex_dy.t - tex_dy.s * tex_dx.t);\n\n#ifdef HAS_NORMALS\n vec3 ng = normalize(pbr_vNormal);\n#else\n vec3 ng = cross(pos_dx, pos_dy);\n#endif\n\n t = normalize(t - ng * dot(ng, t));\n vec3 b = normalize(cross(ng, t));\n mat3 tbn = mat3(t, b, ng);\n#else\n mat3 tbn = pbr_vTBN;\n#endif\n\n#ifdef HAS_NORMALMAP\n vec3 n = texture2D(u_NormalSampler, pbr_vUV).rgb;\n n = normalize(tbn * ((2.0 * n - 1.0) * vec3(u_NormalScale, u_NormalScale, 1.0)));\n#else\n vec3 n = normalize(tbn[2].xyz);\n#endif\n\n return n;\n}\n\n\n#ifdef USE_IBL\nvec3 getIBLContribution(PBRInfo pbrInputs, vec3 n, vec3 reflection)\n{\n float mipCount = 9.0;\n float lod = (pbrInputs.perceptualRoughness * mipCount);\n vec3 brdf = SRGBtoLINEAR(texture2D(u_brdfLUT,\n vec2(pbrInputs.NdotV, 1.0 - pbrInputs.perceptualRoughness))).rgb;\n vec3 diffuseLight = SRGBtoLINEAR(textureCube(u_DiffuseEnvSampler, n)).rgb;\n\n#ifdef USE_TEX_LOD\n vec3 specularLight = SRGBtoLINEAR(textureCubeLod(u_SpecularEnvSampler, reflection, lod)).rgb;\n#else\n vec3 specularLight = SRGBtoLINEAR(textureCube(u_SpecularEnvSampler, reflection)).rgb;\n#endif\n\n vec3 diffuse = diffuseLight * pbrInputs.diffuseColor;\n vec3 specular = specularLight * (pbrInputs.specularColor * brdf.x + brdf.y);\n diffuse *= u_ScaleIBLAmbient.x;\n specular *= u_ScaleIBLAmbient.y;\n\n return diffuse + specular;\n}\n#endif\n\n\nvec3 diffuse(PBRInfo pbrInputs)\n{\n return pbrInputs.diffuseColor / M_PI;\n}\n\nvec3 specularReflection(PBRInfo pbrInputs)\n{\n return pbrInputs.reflectance0 +\n (pbrInputs.reflectance90 - pbrInputs.reflectance0) *\n pow(clamp(1.0 - pbrInputs.VdotH, 0.0, 1.0), 5.0);\n}\n\n\n\nfloat geometricOcclusion(PBRInfo pbrInputs)\n{\n float NdotL = pbrInputs.NdotL;\n float NdotV = pbrInputs.NdotV;\n float r = pbrInputs.alphaRoughness;\n\n float attenuationL = 2.0 * NdotL / (NdotL + sqrt(r * r + (1.0 - r * r) * (NdotL * NdotL)));\n float attenuationV = 2.0 * NdotV / (NdotV + sqrt(r * r + (1.0 - r * r) * (NdotV * NdotV)));\n return attenuationL * attenuationV;\n}\n\n\n\n\n\nfloat microfacetDistribution(PBRInfo pbrInputs)\n{\n float roughnessSq = pbrInputs.alphaRoughness * pbrInputs.alphaRoughness;\n float f = (pbrInputs.NdotH * roughnessSq - pbrInputs.NdotH) * pbrInputs.NdotH + 1.0;\n return roughnessSq / (M_PI * f * f);\n}\n\nvoid PBRInfo_setAmbientLight(inout PBRInfo pbrInputs) {\n pbrInputs.NdotL = 1.0;\n pbrInputs.NdotH = 0.0;\n pbrInputs.LdotH = 0.0;\n pbrInputs.VdotH = 1.0;\n}\n\nvoid PBRInfo_setDirectionalLight(inout PBRInfo pbrInputs, vec3 lightDirection) {\n vec3 n = pbrInputs.n;\n vec3 v = pbrInputs.v;\n vec3 l = normalize(lightDirection);\n vec3 h = normalize(l+v);\n\n pbrInputs.NdotL = clamp(dot(n, l), 0.001, 1.0);\n pbrInputs.NdotH = clamp(dot(n, h), 0.0, 1.0);\n pbrInputs.LdotH = clamp(dot(l, h), 0.0, 1.0);\n pbrInputs.VdotH = clamp(dot(v, h), 0.0, 1.0);\n}\n\nvoid PBRInfo_setPointLight(inout PBRInfo pbrInputs, PointLight pointLight) {\n vec3 light_direction = normalize(pointLight.position - pbr_vPosition);\n PBRInfo_setDirectionalLight(pbrInputs, light_direction);\n}\n\nvec3 calculateFinalColor(PBRInfo pbrInputs, vec3 lightColor) {\n vec3 F = specularReflection(pbrInputs);\n float G = geometricOcclusion(pbrInputs);\n float D = microfacetDistribution(pbrInputs);\n vec3 diffuseContrib = (1.0 - F) * diffuse(pbrInputs);\n vec3 specContrib = F * G * D / (4.0 * pbrInputs.NdotL * pbrInputs.NdotV);\n return pbrInputs.NdotL * lightColor * (diffuseContrib + specContrib);\n}\n\nvec4 pbr_filterColor(vec4 colorUnused)\n{\n#ifdef HAS_BASECOLORMAP\n vec4 baseColor = SRGBtoLINEAR(texture2D(u_BaseColorSampler, pbr_vUV)) * u_BaseColorFactor;\n#else\n vec4 baseColor = u_BaseColorFactor;\n#endif\n\n#ifdef ALPHA_CUTOFF\n if (baseColor.a < u_AlphaCutoff) {\n discard;\n }\n#endif\n\n vec3 color = vec3(0, 0, 0);\n\n if(pbr_uUnlit){\n color.rgb = baseColor.rgb;\n }\n else{\n\n\n float perceptualRoughness = u_MetallicRoughnessValues.y;\n float metallic = u_MetallicRoughnessValues.x;\n#ifdef HAS_METALROUGHNESSMAP\n\n vec4 mrSample = texture2D(u_MetallicRoughnessSampler, pbr_vUV);\n perceptualRoughness = mrSample.g * perceptualRoughness;\n metallic = mrSample.b * metallic;\n#endif\n perceptualRoughness = clamp(perceptualRoughness, c_MinRoughness, 1.0);\n metallic = clamp(metallic, 0.0, 1.0);\n\n float alphaRoughness = perceptualRoughness * perceptualRoughness;\n\n vec3 f0 = vec3(0.04);\n vec3 diffuseColor = baseColor.rgb * (vec3(1.0) - f0);\n diffuseColor *= 1.0 - metallic;\n vec3 specularColor = mix(f0, baseColor.rgb, metallic);\n float reflectance = max(max(specularColor.r, specularColor.g), specularColor.b);\n\n\n\n float reflectance90 = clamp(reflectance * 25.0, 0.0, 1.0);\n vec3 specularEnvironmentR0 = specularColor.rgb;\n vec3 specularEnvironmentR90 = vec3(1.0, 1.0, 1.0) * reflectance90;\n\n vec3 n = getNormal();\n vec3 v = normalize(u_Camera - pbr_vPosition);\n\n float NdotV = clamp(abs(dot(n, v)), 0.001, 1.0);\n vec3 reflection = -normalize(reflect(v, n));\n\n PBRInfo pbrInputs = PBRInfo(\n 0.0,\n NdotV,\n 0.0,\n 0.0,\n 0.0,\n perceptualRoughness,\n metallic,\n specularEnvironmentR0,\n specularEnvironmentR90,\n alphaRoughness,\n diffuseColor,\n specularColor,\n n,\n v\n );\n\n#ifdef USE_LIGHTS\n PBRInfo_setAmbientLight(pbrInputs);\n color += calculateFinalColor(pbrInputs, lighting_uAmbientLight.color);\n SMART_FOR(int i = 0, i < MAX_LIGHTS, i < lighting_uDirectionalLightCount, i++) {\n if (i < lighting_uDirectionalLightCount) {\n PBRInfo_setDirectionalLight(pbrInputs, lighting_uDirectionalLight[i].direction);\n color += calculateFinalColor(pbrInputs, lighting_uDirectionalLight[i].color);\n }\n }\n SMART_FOR(int i = 0, i < MAX_LIGHTS, i < lighting_uPointLightCount, i++) {\n if (i < lighting_uPointLightCount) {\n PBRInfo_setPointLight(pbrInputs, lighting_uPointLight[i]);\n float attenuation = getPointLightAttenuation(lighting_uPointLight[i], distance(lighting_uPointLight[i].position, pbr_vPosition));\n color += calculateFinalColor(pbrInputs, lighting_uPointLight[i].color / attenuation);\n }\n }\n#endif\n#ifdef USE_IBL\n color += getIBLContribution(pbrInputs, n, reflection);\n#endif\n#ifdef HAS_OCCLUSIONMAP\n float ao = texture2D(u_OcclusionSampler, pbr_vUV).r;\n color = mix(color, color * ao, u_OcclusionStrength);\n#endif\n\n#ifdef HAS_EMISSIVEMAP\n vec3 emissive = SRGBtoLINEAR(texture2D(u_EmissiveSampler, pbr_vUV)).rgb * u_EmissiveFactor;\n color += emissive;\n#endif\n\n#ifdef PBR_DEBUG\n\n\n\n\n\n color = mix(color, baseColor.rgb, u_ScaleDiffBaseMR.y);\n color = mix(color, vec3(metallic), u_ScaleDiffBaseMR.z);\n color = mix(color, vec3(perceptualRoughness), u_ScaleDiffBaseMR.w);\n#endif\n\n }\n\n return vec4(pow(color,vec3(1.0/2.2)), baseColor.a);\n}\n",defines:{LIGHTING_FRAGMENT:1},dependencies:[__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/lights/lights.js").H]}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return gouraudLighting},s:function(){return phongLighting}});var lights=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/lights/lights.js"),phong_lighting_glsl="\nuniform float lighting_uAmbient;\nuniform float lighting_uDiffuse;\nuniform float lighting_uShininess;\nuniform vec3 lighting_uSpecularColor;\n\nvec3 lighting_getLightColor(vec3 surfaceColor, vec3 light_direction, vec3 view_direction, vec3 normal_worldspace, vec3 color) {\n vec3 halfway_direction = normalize(light_direction + view_direction);\n float lambertian = dot(light_direction, normal_worldspace);\n float specular = 0.0;\n if (lambertian > 0.0) {\n float specular_angle = max(dot(normal_worldspace, halfway_direction), 0.0);\n specular = pow(specular_angle, lighting_uShininess);\n }\n lambertian = max(lambertian, 0.0);\n return (lambertian * lighting_uDiffuse * surfaceColor + specular * lighting_uSpecularColor) * color;\n}\n\nvec3 lighting_getLightColor(vec3 surfaceColor, vec3 cameraPosition, vec3 position_worldspace, vec3 normal_worldspace) {\n vec3 lightColor = surfaceColor;\n\n if (lighting_uEnabled) {\n vec3 view_direction = normalize(cameraPosition - position_worldspace);\n lightColor = lighting_uAmbient * surfaceColor * lighting_uAmbientLight.color;\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uPointLightCount) {\n break;\n }\n PointLight pointLight = lighting_uPointLight[i];\n vec3 light_position_worldspace = pointLight.position;\n vec3 light_direction = normalize(light_position_worldspace - position_worldspace);\n lightColor += lighting_getLightColor(surfaceColor, light_direction, view_direction, normal_worldspace, pointLight.color);\n }\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uDirectionalLightCount) {\n break;\n }\n DirectionalLight directionalLight = lighting_uDirectionalLight[i];\n lightColor += lighting_getLightColor(surfaceColor, -directionalLight.direction, view_direction, normal_worldspace, directionalLight.color);\n }\n }\n return lightColor;\n}\n\nvec3 lighting_getSpecularLightColor(vec3 cameraPosition, vec3 position_worldspace, vec3 normal_worldspace) {\n vec3 lightColor = vec3(0, 0, 0);\n vec3 surfaceColor = vec3(0, 0, 0);\n\n if (lighting_uEnabled) {\n vec3 view_direction = normalize(cameraPosition - position_worldspace);\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uPointLightCount) {\n break;\n }\n PointLight pointLight = lighting_uPointLight[i];\n vec3 light_position_worldspace = pointLight.position;\n vec3 light_direction = normalize(light_position_worldspace - position_worldspace);\n lightColor += lighting_getLightColor(surfaceColor, light_direction, view_direction, normal_worldspace, pointLight.color);\n }\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uDirectionalLightCount) {\n break;\n }\n DirectionalLight directionalLight = lighting_uDirectionalLight[i];\n lightColor += lighting_getLightColor(surfaceColor, -directionalLight.direction, view_direction, normal_worldspace, directionalLight.color);\n }\n }\n return lightColor;\n}\n";const INITIAL_MODULE_OPTIONS={};function getUniforms(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:INITIAL_MODULE_OPTIONS;if(!("material"in opts))return{};const{material:material}=opts;return material?function getMaterialUniforms(material){const{ambient:ambient=.35,diffuse:diffuse=.6,shininess:shininess=32,specularColor:specularColor=[30,30,30]}=material;return{lighting_uAmbient:ambient,lighting_uDiffuse:diffuse,lighting_uShininess:shininess,lighting_uSpecularColor:specularColor.map((x=>x/255))}}(material):{lighting_uEnabled:!1}}const gouraudLighting={name:"gouraud-lighting",dependencies:[lights.H],vs:phong_lighting_glsl,defines:{LIGHTING_VERTEX:1},getUniforms:getUniforms},phongLighting={name:"phong-lighting",dependencies:[lights.H],fs:phong_lighting_glsl,defines:{LIGHTING_FRAGMENT:1},getUniforms:getUniforms}},"./node_modules/@math.gl/core/dist/esm/classes/matrix3.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Matrix3}});var INDICES,_base_matrix__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/matrix.js"),_lib_validators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js"),_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/gl-matrix-extras.js"),gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/gl-matrix/esm/mat3.js"),gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/gl-matrix/esm/vec2.js"),gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js");!function(INDICES){INDICES[INDICES.COL0ROW0=0]="COL0ROW0",INDICES[INDICES.COL0ROW1=1]="COL0ROW1",INDICES[INDICES.COL0ROW2=2]="COL0ROW2",INDICES[INDICES.COL1ROW0=3]="COL1ROW0",INDICES[INDICES.COL1ROW1=4]="COL1ROW1",INDICES[INDICES.COL1ROW2=5]="COL1ROW2",INDICES[INDICES.COL2ROW0=6]="COL2ROW0",INDICES[INDICES.COL2ROW1=7]="COL2ROW1",INDICES[INDICES.COL2ROW2=8]="COL2ROW2"}(INDICES||(INDICES={}));const IDENTITY_MATRIX=Object.freeze([1,0,0,0,1,0,0,0,1]);class Matrix3 extends _base_matrix__WEBPACK_IMPORTED_MODULE_0__.Z{static get IDENTITY(){return function getIdentityMatrix(){IDENTITY_MATRIX3||(IDENTITY_MATRIX3=new Matrix3,Object.freeze(IDENTITY_MATRIX3));return IDENTITY_MATRIX3}()}static get ZERO(){return function getZeroMatrix(){ZERO_MATRIX3||(ZERO_MATRIX3=new Matrix3([0,0,0,0,0,0,0,0,0]),Object.freeze(ZERO_MATRIX3));return ZERO_MATRIX3}()}get ELEMENTS(){return 9}get RANK(){return 3}get INDICES(){return INDICES}constructor(array,...args){super(-0,-0,-0,-0,-0,-0,-0,-0,-0),1===arguments.length&&Array.isArray(array)?this.copy(array):args.length>0?this.copy([array,...args]):this.identity()}copy(array){return this[0]=array[0],this[1]=array[1],this[2]=array[2],this[3]=array[3],this[4]=array[4],this[5]=array[5],this[6]=array[6],this[7]=array[7],this[8]=array[8],this.check()}identity(){return this.copy(IDENTITY_MATRIX)}fromObject(object){return this.check()}fromQuaternion(q){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.en(this,q),this.check()}set(m00,m10,m20,m01,m11,m21,m02,m12,m22){return this[0]=m00,this[1]=m10,this[2]=m20,this[3]=m01,this[4]=m11,this[5]=m21,this[6]=m02,this[7]=m12,this[8]=m22,this.check()}setRowMajor(m00,m01,m02,m10,m11,m12,m20,m21,m22){return this[0]=m00,this[1]=m10,this[2]=m20,this[3]=m01,this[4]=m11,this[5]=m21,this[6]=m02,this[7]=m12,this[8]=m22,this.check()}determinant(){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.GH(this)}transpose(){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.p4(this,this),this.check()}invert(){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.U_(this,this),this.check()}multiplyLeft(a){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.Jp(this,a,this),this.check()}multiplyRight(a){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.Jp(this,this,a),this.check()}rotate(radians){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.U1(this,this,radians),this.check()}scale(factor){return Array.isArray(factor)?gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.bA(this,this,factor):gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.bA(this,this,[factor,factor]),this.check()}translate(vec){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.Iu(this,this,vec),this.check()}transform(vector,result){let out;switch(vector.length){case 2:out=gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_2__.kK(result||[-0,-0],vector,this);break;case 3:out=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.kK(result||[-0,-0,-0],vector,this);break;case 4:out=(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__._x)(result||[-0,-0,-0,-0],vector,this);break;default:throw new Error("Illegal vector")}return(0,_lib_validators__WEBPACK_IMPORTED_MODULE_5__.IL)(out,vector.length),out}transformVector(vector,result){return this.transform(vector,result)}transformVector2(vector,result){return this.transform(vector,result)}transformVector3(vector,result){return this.transform(vector,result)}}let ZERO_MATRIX3,IDENTITY_MATRIX3},"./node_modules/@math.gl/core/dist/esm/classes/quaternion.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Quaternion}});var math_array=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/math-array.js"),validators=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js"),vector4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector4.js"),common=__webpack_require__("./node_modules/gl-matrix/esm/common.js"),mat3=__webpack_require__("./node_modules/gl-matrix/esm/mat3.js"),vec3=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js"),vec4=__webpack_require__("./node_modules/gl-matrix/esm/vec4.js");function create(){var out=new common.WT(4);return common.WT!=Float32Array&&(out[0]=0,out[1]=0,out[2]=0),out[3]=1,out}function setAxisAngle(out,axis,rad){rad*=.5;var s=Math.sin(rad);return out[0]=s*axis[0],out[1]=s*axis[1],out[2]=s*axis[2],out[3]=Math.cos(rad),out}function multiply(out,a,b){var ax=a[0],ay=a[1],az=a[2],aw=a[3],bx=b[0],by=b[1],bz=b[2],bw=b[3];return out[0]=ax*bw+aw*bx+ay*bz-az*by,out[1]=ay*bw+aw*by+az*bx-ax*bz,out[2]=az*bw+aw*bz+ax*by-ay*bx,out[3]=aw*bw-ax*bx-ay*by-az*bz,out}function slerp(out,a,b,t){var omega,cosom,sinom,scale0,scale1,ax=a[0],ay=a[1],az=a[2],aw=a[3],bx=b[0],by=b[1],bz=b[2],bw=b[3];return(cosom=ax*bx+ay*by+az*bz+aw*bw)<0&&(cosom=-cosom,bx=-bx,by=-by,bz=-bz,bw=-bw),1-cosom>common.Ib?(omega=Math.acos(cosom),sinom=Math.sin(omega),scale0=Math.sin((1-t)*omega)/sinom,scale1=Math.sin(t*omega)/sinom):(scale0=1-t,scale1=t),out[0]=scale0*ax+scale1*bx,out[1]=scale0*ay+scale1*by,out[2]=scale0*az+scale1*bz,out[3]=scale0*aw+scale1*bw,out}function fromMat3(out,m){var fRoot,fTrace=m[0]+m[4]+m[8];if(fTrace>0)fRoot=Math.sqrt(fTrace+1),out[3]=.5*fRoot,fRoot=.5/fRoot,out[0]=(m[5]-m[7])*fRoot,out[1]=(m[6]-m[2])*fRoot,out[2]=(m[1]-m[3])*fRoot;else{var i=0;m[4]>m[0]&&(i=1),m[8]>m[3*i+i]&&(i=2);var j=(i+1)%3,k=(i+2)%3;fRoot=Math.sqrt(m[3*i+i]-m[3*j+j]-m[3*k+k]+1),out[i]=.5*fRoot,fRoot=.5/fRoot,out[3]=(m[3*j+k]-m[3*k+j])*fRoot,out[j]=(m[3*j+i]+m[3*i+j])*fRoot,out[k]=(m[3*k+i]+m[3*i+k])*fRoot}return out}vec4.d9,vec4.al,vec4.JG,vec4.t8;var tmpvec3,xUnitVec3,yUnitVec3,temp1,temp2,matr,add=vec4.IH,scale=vec4.bA,dot=vec4.AK,lerp=vec4.t7,quat_length=vec4.kE,squaredLength=vec4.we,normalize=vec4.Fv,rotationTo=(vec4.I6,vec4.fS,tmpvec3=vec3.Ue(),xUnitVec3=vec3.al(1,0,0),yUnitVec3=vec3.al(0,1,0),function(out,a,b){var dot=vec3.AK(a,b);return dot<-.999999?(vec3.kC(tmpvec3,xUnitVec3,a),vec3.Zh(tmpvec3)<1e-6&&vec3.kC(tmpvec3,yUnitVec3,a),vec3.Fv(tmpvec3,tmpvec3),setAxisAngle(out,tmpvec3,Math.PI),out):dot>.999999?(out[0]=0,out[1]=0,out[2]=0,out[3]=1,out):(vec3.kC(tmpvec3,a,b),out[0]=tmpvec3[0],out[1]=tmpvec3[1],out[2]=tmpvec3[2],out[3]=1+dot,normalize(out,out))});temp1=create(),temp2=create(),matr=mat3.Ue();const IDENTITY_QUATERNION=[0,0,0,1];class Quaternion extends math_array.Z{constructor(x=0,y=0,z=0,w=1){super(-0,-0,-0,-0),Array.isArray(x)&&1===arguments.length?this.copy(x):this.set(x,y,z,w)}copy(array){return this[0]=array[0],this[1]=array[1],this[2]=array[2],this[3]=array[3],this.check()}set(x,y,z,w){return this[0]=x,this[1]=y,this[2]=z,this[3]=w,this.check()}fromObject(object){return this[0]=object.x,this[1]=object.y,this[2]=object.z,this[3]=object.w,this.check()}fromMatrix3(m){return fromMat3(this,m),this.check()}fromAxisRotation(axis,rad){return setAxisAngle(this,axis,rad),this.check()}identity(){return function identity(out){return out[0]=0,out[1]=0,out[2]=0,out[3]=1,out}(this),this.check()}setAxisAngle(axis,rad){return this.fromAxisRotation(axis,rad)}get ELEMENTS(){return 4}get x(){return this[0]}set x(value){this[0]=(0,validators.u5)(value)}get y(){return this[1]}set y(value){this[1]=(0,validators.u5)(value)}get z(){return this[2]}set z(value){this[2]=(0,validators.u5)(value)}get w(){return this[3]}set w(value){this[3]=(0,validators.u5)(value)}len(){return quat_length(this)}lengthSquared(){return squaredLength(this)}dot(a){return dot(this,a)}rotationTo(vectorA,vectorB){return rotationTo(this,vectorA,vectorB),this.check()}add(a){return add(this,this,a),this.check()}calculateW(){return function calculateW(out,a){var x=a[0],y=a[1],z=a[2];return out[0]=x,out[1]=y,out[2]=z,out[3]=Math.sqrt(Math.abs(1-x*x-y*y-z*z)),out}(this,this),this.check()}conjugate(){return function conjugate(out,a){return out[0]=-a[0],out[1]=-a[1],out[2]=-a[2],out[3]=a[3],out}(this,this),this.check()}invert(){return function invert(out,a){var a0=a[0],a1=a[1],a2=a[2],a3=a[3],dot=a0*a0+a1*a1+a2*a2+a3*a3,invDot=dot?1/dot:0;return out[0]=-a0*invDot,out[1]=-a1*invDot,out[2]=-a2*invDot,out[3]=a3*invDot,out}(this,this),this.check()}lerp(a,b,t){return void 0===t?this.lerp(this,a,b):(lerp(this,a,b,t),this.check())}multiplyRight(a){return multiply(this,this,a),this.check()}multiplyLeft(a){return multiply(this,a,this),this.check()}normalize(){const length=this.len(),l=length>0?1/length:0;return this[0]=this[0]*l,this[1]=this[1]*l,this[2]=this[2]*l,this[3]=this[3]*l,0===length&&(this[3]=1),this.check()}rotateX(rad){return function rotateX(out,a,rad){rad*=.5;var ax=a[0],ay=a[1],az=a[2],aw=a[3],bx=Math.sin(rad),bw=Math.cos(rad);return out[0]=ax*bw+aw*bx,out[1]=ay*bw+az*bx,out[2]=az*bw-ay*bx,out[3]=aw*bw-ax*bx,out}(this,this,rad),this.check()}rotateY(rad){return function rotateY(out,a,rad){rad*=.5;var ax=a[0],ay=a[1],az=a[2],aw=a[3],by=Math.sin(rad),bw=Math.cos(rad);return out[0]=ax*bw-az*by,out[1]=ay*bw+aw*by,out[2]=az*bw+ax*by,out[3]=aw*bw-ay*by,out}(this,this,rad),this.check()}rotateZ(rad){return function rotateZ(out,a,rad){rad*=.5;var ax=a[0],ay=a[1],az=a[2],aw=a[3],bz=Math.sin(rad),bw=Math.cos(rad);return out[0]=ax*bw+ay*bz,out[1]=ay*bw-ax*bz,out[2]=az*bw+aw*bz,out[3]=aw*bw-az*bz,out}(this,this,rad),this.check()}scale(b){return scale(this,this,b),this.check()}slerp(arg0,arg1,arg2){let start,target,ratio;switch(arguments.length){case 1:({start:start=IDENTITY_QUATERNION,target:target,ratio:ratio}=arg0);break;case 2:start=this,target=arg0,ratio=arg1;break;default:start=arg0,target=arg1,ratio=arg2}return slerp(this,start,target,ratio),this.check()}transformVector4(vector,result=new vector4.Z){return vec4.VC(result,vector,this),(0,validators.IL)(result,4)}lengthSq(){return this.lengthSquared()}setFromAxisAngle(axis,rad){return this.setAxisAngle(axis,rad)}premultiply(a){return this.multiplyLeft(a)}multiply(a){return this.multiplyRight(a)}}},"./node_modules/@math.gl/core/dist/esm/classes/spherical-coordinates.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return SphericalCoordinates}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_vector3__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),_lib_common__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js");class SphericalCoordinates{constructor({phi:phi=0,theta:theta=0,radius:radius=1,bearing:bearing,pitch:pitch,altitude:altitude,radiusScale:radiusScale=6371e3}={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"phi",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"theta",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"radius",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"radiusScale",void 0),this.phi=phi,this.theta=theta,this.radius=radius||altitude||1,this.radiusScale=radiusScale||1,void 0!==bearing&&(this.bearing=bearing),void 0!==pitch&&(this.pitch=pitch),this.check()}toString(){return this.formatString(_lib_common__WEBPACK_IMPORTED_MODULE_1__.vc)}formatString({printTypes:printTypes=!1}){const f=_lib_common__WEBPACK_IMPORTED_MODULE_1__.Bw;return"".concat(printTypes?"Spherical":"","[rho:").concat(f(this.radius),",theta:").concat(f(this.theta),",phi:").concat(f(this.phi),"]")}equals(other){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.fS)(this.radius,other.radius)&&(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.fS)(this.theta,other.theta)&&(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.fS)(this.phi,other.phi)}exactEquals(other){return this.radius===other.radius&&this.theta===other.theta&&this.phi===other.phi}get bearing(){return 180-(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.phi)}set bearing(v){this.phi=Math.PI-(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.uR)(v)}get pitch(){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.theta)}set pitch(v){this.theta=(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.uR)(v)}get longitude(){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.phi)}get latitude(){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.theta)}get lng(){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.phi)}get lat(){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.theta)}get z(){return(this.radius-1)*this.radiusScale}set(radius,phi,theta){return this.radius=radius,this.phi=phi,this.theta=theta,this.check()}clone(){return(new SphericalCoordinates).copy(this)}copy(other){return this.radius=other.radius,this.phi=other.phi,this.theta=other.theta,this.check()}fromLngLatZ([lng,lat,z]){return this.radius=1+z/this.radiusScale,this.phi=(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.uR)(lat),this.theta=(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.uR)(lng),this.check()}fromVector3(v){return this.radius=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_2__.kE(v),this.radius>0&&(this.theta=Math.atan2(v[0],v[1]),this.phi=Math.acos((0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.uZ)(v[2]/this.radius,-1,1))),this.check()}toVector3(){return new _vector3__WEBPACK_IMPORTED_MODULE_3__.Z(0,0,this.radius).rotateX({radians:this.theta}).rotateZ({radians:this.phi})}makeSafe(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this}check(){if(!(Number.isFinite(this.phi)&&Number.isFinite(this.theta)&&this.radius>0))throw new Error("SphericalCoordinates: some fields set to invalid numbers");return this}}},"./node_modules/@math.gl/core/dist/esm/classes/vector2.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Vector2}});var _base_vector__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/vector.js"),_lib_common__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_lib_validators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js"),gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/vec2.js"),_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/gl-matrix-extras.js");class Vector2 extends _base_vector__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(x=0,y=0){super(2),(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.kJ)(x)&&1===arguments.length?this.copy(x):(_lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(y)),this[0]=x,this[1]=y)}set(x,y){return this[0]=x,this[1]=y,this.check()}copy(array){return this[0]=array[0],this[1]=array[1],this.check()}fromObject(object){return _lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.y)),this[0]=object.x,this[1]=object.y,this.check()}toObject(object){return object.x=this[0],object.y=this[1],object}get ELEMENTS(){return 2}horizontalAngle(){return Math.atan2(this.y,this.x)}verticalAngle(){return Math.atan2(this.x,this.y)}transform(matrix4){return this.transformAsPoint(matrix4)}transformAsPoint(matrix4){return gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_3__.fF(this,this,matrix4),this.check()}transformAsVector(matrix4){return(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__.pb)(this,this,matrix4),this.check()}transformByMatrix3(matrix3){return gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_3__.kK(this,this,matrix3),this.check()}transformByMatrix2x3(matrix2x3){return gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_3__.iu(this,this,matrix2x3),this.check()}transformByMatrix2(matrix2){return gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_3__.c(this,this,matrix2),this.check()}}},"./node_modules/@math.gl/core/dist/esm/classes/vector4.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Vector4}});var _base_vector__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/vector.js"),_lib_common__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_lib_validators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js"),gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js"),_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/gl-matrix-extras.js");let ZERO;class Vector4 extends _base_vector__WEBPACK_IMPORTED_MODULE_0__.Z{static get ZERO(){return ZERO||(ZERO=new Vector4(0,0,0,0),Object.freeze(ZERO)),ZERO}constructor(x=0,y=0,z=0,w=0){super(-0,-0,-0,-0),(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.kJ)(x)&&1===arguments.length?this.copy(x):(_lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(y),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(z),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(w)),this[0]=x,this[1]=y,this[2]=z,this[3]=w)}set(x,y,z,w){return this[0]=x,this[1]=y,this[2]=z,this[3]=w,this.check()}copy(array){return this[0]=array[0],this[1]=array[1],this[2]=array[2],this[3]=array[3],this.check()}fromObject(object){return _lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.y),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.z),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.w)),this[0]=object.x,this[1]=object.y,this[2]=object.z,this[3]=object.w,this}toObject(object){return object.x=this[0],object.y=this[1],object.z=this[2],object.w=this[3],object}get ELEMENTS(){return 4}get z(){return this[2]}set z(value){this[2]=(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(value)}get w(){return this[3]}set w(value){this[3]=(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(value)}transform(matrix4){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.fF(this,this,matrix4),this.check()}transformByMatrix3(matrix3){return(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__._x)(this,this,matrix3),this.check()}transformByMatrix2(matrix2){return(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__.G7)(this,this,matrix2),this.check()}transformByQuaternion(quaternion){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.VC(this,this,quaternion),this.check()}applyMatrix4(m){return m.transform(this,this),this}}},"./node_modules/@math.gl/core/dist/esm/lib/math-utils.js":function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z={EPSILON1:.1,EPSILON2:.01,EPSILON3:.001,EPSILON4:1e-4,EPSILON5:1e-5,EPSILON6:1e-6,EPSILON7:1e-7,EPSILON8:1e-8,EPSILON9:1e-9,EPSILON10:1e-10,EPSILON11:1e-11,EPSILON12:1e-12,EPSILON13:1e-13,EPSILON14:1e-14,EPSILON15:1e-15,EPSILON16:1e-16,EPSILON17:1e-17,EPSILON18:1e-18,EPSILON19:1e-19,EPSILON20:1e-20,PI_OVER_TWO:Math.PI/2,PI_OVER_FOUR:Math.PI/4,PI_OVER_SIX:Math.PI/6,TWO_PI:2*Math.PI}},"./node_modules/@math.gl/polygon/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{wG:function(){return WINDING},WZ:function(){return cutPolygonByGrid},GU:function(){return cutPolygonByMercatorBounds},dj:function(){return cutPolylineByGrid},ct:function(){return cutPolylineByMercatorBounds},OT:function(){return earcut},ap:function(){return polygon_utils_getPolygonSignedArea},Ny:function(){return polygon_utils_modifyPolygonWindingDirection}});const WINDING={CLOCKWISE:1,COUNTER_CLOCKWISE:-1};function polygon_utils_modifyPolygonWindingDirection(points,direction,options={}){const windingDirection=function getPolygonWindingDirection(points,options={}){return Math.sign(polygon_utils_getPolygonSignedArea(points,options))}(points,options);return windingDirection!==direction&&(function reversePolygon(points,options){const{start:start=0,end:end=points.length,size:size=2}=options,numPoints=(end-start)/size,numSwaps=Math.floor(numPoints/2);for(let i=0;i80*dim){minX=maxX=positions[0],minY=maxY=positions[1];for(let i=dim;imaxX&&(maxX=x),y>maxY&&(maxY=y);invSize=Math.max(maxX-minX,maxY-minY),invSize=0!==invSize?1/invSize:0}return earcutLinked(outerNode,triangles,dim,minX,minY,invSize),triangles}function linkedList(data,start,end,dim,clockwise,area){let i,last;if(void 0===area&&(area=polygon_utils_getPolygonSignedArea(data,{start:start,end:end,size:dim})),clockwise===area<0)for(i=start;i=start;i-=dim)last=insertNode(i,data[i],data[i+1],last);return last&&earcut_equals(last,last.next)&&(removeNode(last),last=last.next),last}function filterPoints(start,end){if(!start)return start;end||(end=start);let again,p=start;do{if(again=!1,p.steiner||!earcut_equals(p,p.next)&&0!==earcut_area(p.prev,p,p.next))p=p.next;else{if(removeNode(p),p=end=p.prev,p===p.next)break;again=!0}}while(again||p!==end);return end}function earcutLinked(ear,triangles,dim,minX,minY,invSize,pass){if(!ear)return;!pass&&invSize&&function indexCurve(start,minX,minY,invSize){let p=start;do{null===p.z&&(p.z=zOrder(p.x,p.y,minX,minY,invSize)),p.prevZ=p.prev,p.nextZ=p.next,p=p.next}while(p!==start);p.prevZ.nextZ=null,p.prevZ=null,function sortLinked(list){let e,i,numMerges,p,pSize,q,qSize,tail,inSize=1;do{for(p=list,list=null,tail=null,numMerges=0;p;){for(numMerges++,q=p,pSize=0,i=0;i0||qSize>0&&q;)0!==pSize&&(0===qSize||!q||p.z<=q.z)?(e=p,p=p.nextZ,pSize--):(e=q,q=q.nextZ,qSize--),tail?tail.nextZ=e:list=e,e.prevZ=tail,tail=e;p=q}tail.nextZ=null,inSize*=2}while(numMerges>1);return list}(p)}(ear,minX,minY,invSize);let prev,next,stop=ear;for(;ear.prev!==ear.next;)if(prev=ear.prev,next=ear.next,invSize?isEarHashed(ear,minX,minY,invSize):isEar(ear))triangles.push(prev.i/dim),triangles.push(ear.i/dim),triangles.push(next.i/dim),removeNode(ear),ear=next.next,stop=next.next;else if((ear=next)===stop){pass?1===pass?earcutLinked(ear=cureLocalIntersections(filterPoints(ear),triangles,dim),triangles,dim,minX,minY,invSize,2):2===pass&&splitEarcut(ear,triangles,dim,minX,minY,invSize):earcutLinked(filterPoints(ear),triangles,dim,minX,minY,invSize,1);break}}function isEar(ear){const a=ear.prev,b=ear,c=ear.next;if(earcut_area(a,b,c)>=0)return!1;let p=ear.next.next;for(;p!==ear.prev;){if(pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,p.x,p.y)&&earcut_area(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function isEarHashed(ear,minX,minY,invSize){const a=ear.prev,b=ear,c=ear.next;if(earcut_area(a,b,c)>=0)return!1;const minTX=a.xb.x?a.x>c.x?a.x:c.x:b.x>c.x?b.x:c.x,maxTY=a.y>b.y?a.y>c.y?a.y:c.y:b.y>c.y?b.y:c.y,minZ=zOrder(minTX,minTY,minX,minY,invSize),maxZ=zOrder(maxTX,maxTY,minX,minY,invSize);let p=ear.prevZ,n=ear.nextZ;for(;p&&p.z>=minZ&&n&&n.z<=maxZ;){if(p!==ear.prev&&p!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,p.x,p.y)&&earcut_area(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,n!==ear.prev&&n!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,n.x,n.y)&&earcut_area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}for(;p&&p.z>=minZ;){if(p!==ear.prev&&p!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,p.x,p.y)&&earcut_area(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;n&&n.z<=maxZ;){if(n!==ear.prev&&n!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,n.x,n.y)&&earcut_area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}return!0}function cureLocalIntersections(start,triangles,dim){let p=start;do{const a=p.prev,b=p.next.next;!earcut_equals(a,b)&&intersects(a,p,p.next,b)&&locallyInside(a,b)&&locallyInside(b,a)&&(triangles.push(a.i/dim),triangles.push(p.i/dim),triangles.push(b.i/dim),removeNode(p),removeNode(p.next),p=start=b),p=p.next}while(p!==start);return filterPoints(p)}function splitEarcut(start,triangles,dim,minX,minY,invSize){let a=start;do{let b=a.next.next;for(;b!==a.prev;){if(a.i!==b.i&&isValidDiagonal(a,b)){let c=splitPolygon(a,b);return a=filterPoints(a,a.next),c=filterPoints(c,c.next),earcutLinked(a,triangles,dim,minX,minY,invSize),void earcutLinked(c,triangles,dim,minX,minY,invSize)}b=b.next}a=a.next}while(a!==start)}function compareX(a,b){return a.x-b.x}function eliminateHole(hole,outerNode){if(outerNode=function findHoleBridge(hole,outerNode){let p=outerNode;const hx=hole.x,hy=hole.y;let m,qx=-1/0;do{if(hy<=p.y&&hy>=p.next.y&&p.next.y!==p.y){const x=p.x+(hy-p.y)*(p.next.x-p.x)/(p.next.y-p.y);if(x<=hx&&x>qx){if(qx=x,x===hx){if(hy===p.y)return p;if(hy===p.next.y)return p.next}m=p.x=p.x&&p.x>=mx&&hx!==p.x&&pointInTriangle(hym.x||p.x===m.x&§orContainsSector(m,p)))&&(m=p,tanMin=tan)),p=p.next}while(p!==stop);return m}(hole,outerNode),outerNode){const b=splitPolygon(outerNode,hole);filterPoints(outerNode,outerNode.next),filterPoints(b,b.next)}}function sectorContainsSector(m,p){return earcut_area(m.prev,m,p.prev)<0&&earcut_area(p.next,m,m.next)<0}function zOrder(x,y,minX,minY,invSize){return(x=1431655765&((x=858993459&((x=252645135&((x=16711935&((x=32767*(x-minX)*invSize)|x<<8))|x<<4))|x<<2))|x<<1))|(y=1431655765&((y=858993459&((y=252645135&((y=16711935&((y=32767*(y-minY)*invSize)|y<<8))|y<<4))|y<<2))|y<<1))<<1}function getLeftmost(start){let p=start,leftmost=start;do{(p.x=0&&(ax-px)*(by-py)-(bx-px)*(ay-py)>=0&&(bx-px)*(cy-py)-(cx-px)*(by-py)>=0}function isValidDiagonal(a,b){return a.next.i!==b.i&&a.prev.i!==b.i&&!function intersectsPolygon(a,b){let p=a;do{if(p.i!==a.i&&p.next.i!==a.i&&p.i!==b.i&&p.next.i!==b.i&&intersects(p,p.next,a,b))return!0;p=p.next}while(p!==a);return!1}(a,b)&&(locallyInside(a,b)&&locallyInside(b,a)&&function middleInside(a,b){let p=a,inside=!1;const px=(a.x+b.x)/2,py=(a.y+b.y)/2;do{p.y>py!=p.next.y>py&&p.next.y!==p.y&&px<(p.next.x-p.x)*(py-p.y)/(p.next.y-p.y)+p.x&&(inside=!inside),p=p.next}while(p!==a);return inside}(a,b)&&(earcut_area(a.prev,a,b.prev)||earcut_area(a,b.prev,b))||earcut_equals(a,b)&&earcut_area(a.prev,a,a.next)>0&&earcut_area(b.prev,b,b.next)>0)}function earcut_area(p,q,r){return(q.y-p.y)*(r.x-q.x)-(q.x-p.x)*(r.y-q.y)}function earcut_equals(p1,p2){return p1.x===p2.x&&p1.y===p2.y}function intersects(p1,q1,p2,q2){const o1=sign(earcut_area(p1,q1,p2)),o2=sign(earcut_area(p1,q1,q2)),o3=sign(earcut_area(p2,q2,p1)),o4=sign(earcut_area(p2,q2,q1));return o1!==o2&&o3!==o4||(!(0!==o1||!onSegment(p1,p2,q1))||(!(0!==o2||!onSegment(p1,q2,q1))||(!(0!==o3||!onSegment(p2,p1,q2))||!(0!==o4||!onSegment(p2,q1,q2)))))}function onSegment(p,q,r){return q.x<=Math.max(p.x,r.x)&&q.x>=Math.min(p.x,r.x)&&q.y<=Math.max(p.y,r.y)&&q.y>=Math.min(p.y,r.y)}function sign(num){return num>0?1:num<0?-1:0}function locallyInside(a,b){return earcut_area(a.prev,a,a.next)<0?earcut_area(a,b,a.next)>=0&&earcut_area(a,a.prev,b)>=0:earcut_area(a,b,a.prev)<0||earcut_area(a,a.next,b)<0}function splitPolygon(a,b){const a2=new Node(a.i,a.x,a.y),b2=new Node(b.i,b.x,b.y),an=a.next,bp=b.prev;return a.next=b,b.prev=a,a2.next=an,an.prev=a2,b2.next=a2,a2.prev=b2,bp.next=b2,b2.prev=bp,b2}function insertNode(i,x,y,last){const p=new Node(i,x,y);return last?(p.next=last.next,p.prev=last,last.next.prev=p,last.next=p):(p.prev=p,p.next=p),p}function removeNode(p){p.next.prev=p.prev,p.prev.next=p.next,p.prevZ&&(p.prevZ.nextZ=p.nextZ),p.nextZ&&(p.nextZ.prevZ=p.prevZ)}function Node(i,x,y){this.i=i,this.x=x,this.y=y,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function intersect(a,b,edge,bbox,out=[]){let t,snap;if(8&edge)t=(bbox[3]-a[1])/(b[1]-a[1]),snap=3;else if(4&edge)t=(bbox[1]-a[1])/(b[1]-a[1]),snap=1;else if(2&edge)t=(bbox[2]-a[0])/(b[0]-a[0]),snap=2;else{if(!(1&edge))return null;t=(bbox[0]-a[0])/(b[0]-a[0]),snap=0}for(let i=0;ibbox[2]&&(code|=2),p[1]bbox[3]&&(code|=8),code}function utils_push(target,source){const size=source.length,startIndex=target.length;if(startIndex>0){let isDuplicate=!0;for(let i=0;isize&&(part=[],result.push(part),utils_push(part,a)),codeB=bitCode(b,cell)}utils_push(part,b),utils_copy(a,b)}return broken?result:result[0]}const TYPE_INSIDE=0,TYPE_BORDER=1;function concatInPlace(arr1,arr2){for(let i=0;i=0?(utils_push(resultHigh,p)&&typesHigh.push(type),highPointCount+=side):typesHigh.length&&(typesHigh[typesHigh.length-1]=TYPE_INSIDE),utils_copy(prev,p),prevSide=side,prevType=type;return[lowPointCount?{pos:resultLow,types:edgeTypes&&typesLow}:null,highPointCount?{pos:resultHigh,types:edgeTypes&&typesHigh}:null]}function getGridCell(p,gridResolution,gridOffset,out){const left=Math.floor((p[0]-gridOffset[0])/gridResolution)*gridResolution+gridOffset[0],bottom=Math.floor((p[1]-gridOffset[1])/gridResolution)*gridResolution+gridOffset[1];return out[0]=left,out[1]=bottom,out[2]=left+gridResolution,out[3]=bottom+gridResolution,out}function moveToNeighborCell(cell,gridResolution,edge){8&edge?(cell[1]+=gridResolution,cell[3]+=gridResolution):4&edge?(cell[1]-=gridResolution,cell[3]-=gridResolution):2&edge?(cell[0]+=gridResolution,cell[2]+=gridResolution):1&edge&&(cell[0]-=gridResolution,cell[2]-=gridResolution)}function getBoundingBox(positions,size,endIndex,out){let minX=1/0,maxX=-1/0,minY=1/0,maxY=-1/0;for(let i=0;imaxX?x:maxX,minY=ymaxY?y:maxY}return out[0][0]=minX,out[0][1]=minY,out[1][0]=maxX,out[1][1]=maxY,out}const DEFAULT_MAX_LATITUDE=85.051129;function cutPolylineByMercatorBounds(positions,options){const{size:size=2,startIndex:startIndex=0,endIndex:endIndex=positions.length,normalize:normalize=!0}=options||{},newPositions=positions.slice(startIndex,endIndex);wrapLongitudesForShortestPath(newPositions,size,0,endIndex-startIndex);const parts=cutPolylineByGrid(newPositions,{size:size,broken:!0,gridResolution:360,gridOffset:[-180,-180]});if(normalize)for(const part of parts)shiftLongitudesIntoRange(part,size);return parts}function cutPolygonByMercatorBounds(positions,holeIndices=null,options){const{size:size=2,normalize:normalize=!0,edgeTypes:edgeTypes=!1}=options||{};holeIndices=holeIndices||[];const newPositions=[],newHoleIndices=[];let srcStartIndex=0,targetIndex=0;for(let ringIndex=0;ringIndex<=holeIndices.length;ringIndex++){const srcEndIndex=holeIndices[ringIndex]||positions.length,targetStartIndex=targetIndex,splitIndex=findSplitIndex(positions,size,srcStartIndex,srcEndIndex);for(let i=splitIndex;imaxLat&&(maxLat=lat,pointIndex=i-1)}return pointIndex}function insertPoleVertices(positions,size,startIndex,endIndex,maxLatitude=DEFAULT_MAX_LATITUDE){const firstLng=positions[startIndex],lastLng=positions[endIndex-size];if(Math.abs(firstLng-lastLng)>180){const p=utils_getPointAtIndex(positions,0,size,startIndex);p[0]+=360*Math.round((lastLng-firstLng)/360),utils_push(positions,p),p[1]=Math.sign(p[1])*maxLatitude,utils_push(positions,p),p[0]=firstLng,utils_push(positions,p)}}function wrapLongitudesForShortestPath(positions,size,startIndex,endIndex){let lng,prevLng=positions[0];for(let i=startIndex;i180||delta<-180)&&(lng-=360*Math.round(delta/360)),positions[i]=prevLng=lng}}function shiftLongitudesIntoRange(positions,size){let refLng;const pointCount=positions.length/size;for(let i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:null,i=0;i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}(this._modes);try{for(_iterator.s();!(_step=_iterator.n()).done;){var mode=_step.value;allGuides.push.apply(allGuides,_toConsumableArray(mode.getGuides(props).features))}}catch(err){_iterator.e(err)}finally{_iterator.f()}return{type:"FeatureCollection",features:allGuides}}}]),CompositeMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.CompositeMode=CompositeMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-90degree-polygon-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Draw90DegreePolygonMode=void 0;var _destination=_interopRequireDefault(__webpack_require__("./node_modules/@turf/destination/dist/js/index.js")),_bearing=_interopRequireDefault(__webpack_require__("./node_modules/@turf/bearing/dist/js/index.js")),_lineIntersect=_interopRequireDefault(__webpack_require__("./node_modules/@turf/line-intersect/dist/js/index.js")),_distance=_interopRequireDefault(__webpack_require__("./node_modules/@turf/distance/dist/js/index.js")),_helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i3&&"Polygon"===tentativeFeature.geometry.type){var polygon=tentativeFeature.geometry;clickSequence[clickSequence.length-1]=polygon.coordinates[0][polygon.coordinates[0].length-2];var clickedEditHandle=(0,_utils.getPickedEditHandle)(picks);if(clickedEditHandle&&Array.isArray(clickedEditHandle.properties.positionIndexes)&&(0===clickedEditHandle.properties.positionIndexes[1]||clickedEditHandle.properties.positionIndexes[1]===polygon.coordinates[0].length-3)){var polygonToAdd={type:"Polygon",coordinates:this.finalizedCoordinates(_toConsumableArray(polygon.coordinates[0]))};this.resetClickSequence();var editAction=this.getAddFeatureOrBooleanPolygonAction(polygonToAdd,props);editAction&&props.onEdit(editAction)}}var fakePointerMoveEvent={screenCoords:[-1,-1],mapCoords:event.mapCoords,picks:[],pointerDownPicks:null,pointerDownScreenCoords:null,pointerDownMapCoords:null,cancelPan:function cancelPan(){},sourceEvent:null};this.handlePointerMove(fakePointerMoveEvent,props)}}},{key:"finalizedCoordinates",value:function finalizedCoordinates(coords){var coordinates=[[].concat(_toConsumableArray(coords.slice(0,-2)),[coords[0]])],pt=this.getIntermediatePoint(_toConsumableArray(coords));if(pt)coordinates=[[].concat(_toConsumableArray(coords.slice(0,-2)),[pt,coords[0]])];else{var tc=_toConsumableArray(coords);tc.splice(-3,1),(pt=this.getIntermediatePoint(_toConsumableArray(tc)))&&(coordinates=[[].concat(_toConsumableArray(coords.slice(0,-3)),[pt,coords[0]])])}return coordinates}},{key:"getIntermediatePoint",value:function getIntermediatePoint(coordinates){var pt;if(coordinates.length>4){var _ref=_toConsumableArray(coordinates),p1=_ref[0],p2=_ref[1],angle1=(0,_bearing.default)(p1,p2),p3=coordinates[coordinates.length-3],p4=coordinates[coordinates.length-4],angle2=(0,_bearing.default)(p3,p4),angles={first:[],second:[]};[1,2,3].forEach((function(factor){var newAngle1=angle1+90*factor;angles.first.push(newAngle1>180?newAngle1-360:newAngle1);var newAngle2=angle2+90*factor;angles.second.push(newAngle2>180?newAngle2-360:newAngle2)}));var distance=(0,_distance.default)((0,_helpers.point)(p1),(0,_helpers.point)(p3));[0,1,2].forEach((function(indexFirst){var line1=(0,_helpers.lineString)([p1,(0,_destination.default)(p1,distance,angles.first[indexFirst]).geometry.coordinates]);[0,1,2].forEach((function(indexSecond){var line2=(0,_helpers.lineString)([p3,(0,_destination.default)(p3,distance,angles.second[indexSecond]).geometry.coordinates]),fc=(0,_lineIntersect.default)(line1,line2);fc&&fc.features.length&&(pt=fc.features[0].geometry.coordinates)}))}))}return pt}}]),Draw90DegreePolygonMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.Draw90DegreePolygonMode=Draw90DegreePolygonMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-circle-by-diameter-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawCircleByDiameterMode=void 0;var _circle=_interopRequireDefault(__webpack_require__("./node_modules/@turf/circle/dist/js/index.js")),_distance=_interopRequireDefault(__webpack_require__("./node_modules/@turf/distance/dist/js/index.js")),_geojsonEditMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&clickedEditHandle&&Array.isArray(clickedEditHandle.properties.positionIndexes)&&clickedEditHandle.properties.positionIndexes[0]===clickSequence.length-1){var lineStringToAdd={type:"LineString",coordinates:_toConsumableArray(clickSequence)};this.resetClickSequence();var editAction=this.getAddFeatureAction(lineStringToAdd,props.data);editAction&&props.onEdit(editAction)}else positionAdded&&props.onEdit({updatedData:props.data,editType:"addTentativePosition",editContext:{position:event.mapCoords}})}},{key:"handleKeyUp",value:function handleKeyUp(event,props){if("Enter"===event.key){var clickSequence=this.getClickSequence();if(clickSequence.length>1){var lineStringToAdd={type:"LineString",coordinates:_toConsumableArray(clickSequence)};this.resetClickSequence();var editAction=this.getAddFeatureAction(lineStringToAdd,props.data);editAction&&props.onEdit(editAction)}}}},{key:"getGuides",value:function getGuides(props){var _guides$features,tentativeFeature,lastPointerMoveEvent=props.lastPointerMoveEvent,clickSequence=this.getClickSequence(),lastCoords=lastPointerMoveEvent?[lastPointerMoveEvent.mapCoords]:[],guides={type:"FeatureCollection",features:[]};clickSequence.length>0&&(tentativeFeature={type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[].concat(_toConsumableArray(clickSequence),lastCoords)}}),tentativeFeature&&guides.features.push(tentativeFeature);var editHandles=clickSequence.map((function(clickedCoord,index){return{type:"Feature",properties:{guideType:"editHandle",editHandleType:"existing",featureIndex:-1,positionIndexes:[index]},geometry:{type:"Point",coordinates:clickedCoord}}}));return(_guides$features=guides.features).push.apply(_guides$features,_toConsumableArray(editHandles)),guides}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell")}}]),DrawLineStringMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.DrawLineStringMode=DrawLineStringMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-point-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2){var polygonToAdd={type:"Polygon",coordinates:[[].concat(_toConsumableArray(clickSequence),[clickSequence[0]])]};this.resetClickSequence();var editAction=this.getAddFeatureOrBooleanPolygonAction(polygonToAdd,props);editAction&&props.onEdit(editAction)}}},{key:"handleDraggingAux",value:function handleDraggingAux(event,props){var picks=event.picks;(0,_utils.getPickedEditHandle)(picks)||this.addClickSequence(event)}},{key:"handleDragging",value:function handleDragging(event,props){this.handleDraggingThrottled&&this.handleDraggingThrottled(event,props)}}]),DrawPolygonByDraggingMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-polygon-mode.js").DrawPolygonMode);exports.DrawPolygonByDraggingMode=DrawPolygonByDraggingMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-polygon-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawPolygonMode=void 0;var _lineIntersect=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("./node_modules/@turf/line-intersect/dist/js/index.js")),_helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2&&(tentativeFeature={type:"Feature",properties:{guideType:"tentative"},geometry:{type:"Polygon",coordinates:[[].concat(_toConsumableArray(clickSequence),lastCoords,[clickSequence[0]])]}}),tentativeFeature}},{key:"getGuides",value:function getGuides(props){var _guides$features,clickSequence=this.getClickSequence(),guides={type:"FeatureCollection",features:[]},tentativeFeature=this.createTentativeFeature(props);tentativeFeature&&guides.features.push(tentativeFeature);var editHandles=clickSequence.map((function(clickedCoord,index){return{type:"Feature",properties:{guideType:"editHandle",editHandleType:"existing",featureIndex:-1,positionIndexes:[index]},geometry:{type:"Point",coordinates:clickedCoord}}}));return(_guides$features=guides.features).push.apply(_guides$features,_toConsumableArray(editHandles)),guides}},{key:"handleClick",value:function handleClick(event,props){var picks=event.picks,clickedEditHandle=(0,_utils.getPickedEditHandle)(picks),clickSequence=this.getClickSequence(),overlappingLines=!1;if(clickSequence.length>2&&props.modeConfig&&props.modeConfig.preventOverlappingLines){var currentLine=(0,_helpers.lineString)([clickSequence[clickSequence.length-1],event.mapCoords]),otherLines=(0,_helpers.lineString)(_toConsumableArray(clickSequence.slice(0,clickSequence.length-1)));(0,_lineIntersect.default)(currentLine,otherLines).features.length>0&&(overlappingLines=!0)}var positionAdded=!1;if(clickedEditHandle||overlappingLines||(this.addClickSequence(event),positionAdded=!0),clickSequence.length>2&&clickedEditHandle&&Array.isArray(clickedEditHandle.properties.positionIndexes)&&(0===clickedEditHandle.properties.positionIndexes[0]||clickedEditHandle.properties.positionIndexes[0]===clickSequence.length-1)){var polygonToAdd={type:"Polygon",coordinates:[[].concat(_toConsumableArray(clickSequence),[clickSequence[0]])]};this.resetClickSequence();var editAction=this.getAddFeatureOrBooleanPolygonAction(polygonToAdd,props);editAction&&props.onEdit(editAction)}else positionAdded&&props.onEdit({updatedData:props.data,editType:"addTentativePosition",editContext:{position:event.mapCoords}})}},{key:"handleKeyUp",value:function handleKeyUp(event,props){if("Enter"===event.key){var clickSequence=this.getClickSequence();if(clickSequence.length>2){var polygonToAdd={type:"Polygon",coordinates:[[].concat(_toConsumableArray(clickSequence),[clickSequence[0]])]};this.resetClickSequence();var editAction=this.getAddFeatureOrBooleanPolygonAction(polygonToAdd,props);editAction&&props.onEdit(editAction)}}}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell"),_get(_getPrototypeOf(DrawPolygonMode.prototype),"handlePointerMove",this).call(this,event,props)}}]),DrawPolygonMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.DrawPolygonMode=DrawPolygonMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-rectangle-from-center-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawRectangleFromCenterMode=void 0;var _bboxPolygon=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("./node_modules/@turf/bbox-polygon/dist/js/index.js"));function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;icoord2[0]?coord1[0]+Math.abs(coord1[0]-coord2[0]):coord1[0]-Math.abs(coord1[0]-coord2[0]),latitude=coord1[1]>coord2[1]?coord1[1]+Math.abs(coord1[1]-coord2[1]):coord1[1]-Math.abs(coord1[1]-coord2[1]),rectangle=(0,_bboxPolygon.default)([longitude,latitude,coord2[0],coord2[1]]);return rectangle.properties=rectangle.properties||{},rectangle.properties.shape="Rectangle",rectangle}}]),DrawRectangleFromCenterMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/two-click-polygon-mode.js").TwoClickPolygonMode);exports.DrawRectangleFromCenterMode=DrawRectangleFromCenterMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-rectangle-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawRectangleMode=void 0;var _bboxPolygon=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("./node_modules/@turf/bbox-polygon/dist/js/index.js"));function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);icorner[0]?coord1[0]+Math.abs(coord1[0]-corner[0]):coord1[0]-Math.abs(coord1[0]-corner[0]),latitude=coord1[1]>corner[1]?coord1[1]+Math.abs(coord1[1]-corner[1]):coord1[1]-Math.abs(coord1[1]-corner[1]),square=(0,_bboxPolygon.default)([longitude,latitude,corner[0],corner[1]]);return square.properties=square.properties||{},square.properties.shape="Square",square}}]),DrawSquareFromCenterMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/two-click-polygon-mode.js").TwoClickPolygonMode);exports.DrawSquareFromCenterMode=DrawSquareFromCenterMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-square-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawSquareMode=void 0;var _bboxPolygon=_interopRequireDefault(__webpack_require__("./node_modules/@turf/bbox-polygon/dist/js/index.js")),_distance=_interopRequireDefault(__webpack_require__("./node_modules/@turf/distance/dist/js/index.js")),_along=_interopRequireDefault(__webpack_require__("./node_modules/@turf/along/dist/js/index.js")),_helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}(featuresToAdd);try{for(_iterator.s();!(_step=_iterator.n()).done;){var feature=_step.value,properties=feature.properties,geometryAsAny=feature.geometry;updatedData=updatedData.addFeature({type:"Feature",properties:properties,geometry:geometryAsAny}),updatedIndexes.push(initialIndex+updatedIndexes.length)}}catch(err){_iterator.e(err)}finally{_iterator.f()}return{updatedData:updatedData.getObject(),editType:"addFeature",editContext:{featureIndexes:updatedIndexes}}}},{key:"getAddFeatureOrBooleanPolygonAction",value:function getAddFeatureOrBooleanPolygonAction(featureOrGeometry,props){var featureOrGeometryAsAny=featureOrGeometry,selectedFeature=this.getSelectedFeature(props),modeConfig=props.modeConfig;if(modeConfig&&modeConfig.booleanOperation){if(!selectedFeature||"Polygon"!==selectedFeature.geometry.type&&"MultiPolygon"!==selectedFeature.geometry.type)return console.warn("booleanOperation only supported for single Polygon or MultiPolygon selection"),null;var updatedGeometry,feature="Feature"===featureOrGeometryAsAny.type?featureOrGeometryAsAny:{type:"Feature",geometry:featureOrGeometryAsAny};if("union"===modeConfig.booleanOperation)updatedGeometry=(0,_union.default)(selectedFeature,feature);else if("difference"===modeConfig.booleanOperation)updatedGeometry=(0,_difference.default)(selectedFeature,feature);else{if("intersection"!==modeConfig.booleanOperation)return console.warn("Invalid booleanOperation ".concat(modeConfig.booleanOperation)),null;updatedGeometry=(0,_intersect.default)(selectedFeature,feature)}if(!updatedGeometry)return console.warn("Canceling edit. Boolean operation erased entire polygon."),null;var featureIndex=props.selectedIndexes[0];return{updatedData:new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replaceGeometry(featureIndex,updatedGeometry.geometry).getObject(),editType:"unionGeometry",editContext:{featureIndexes:[featureIndex]}}}return this.getAddFeatureAction(featureOrGeometry,props.data)}},{key:"createTentativeFeature",value:function createTentativeFeature(props){return null}},{key:"handleClick",value:function handleClick(event,props){}},{key:"handlePointerMove",value:function handlePointerMove(event,props){var tentativeFeature=this.createTentativeFeature(props);tentativeFeature&&props.onEdit({updatedData:props.data,editType:"updateTentativeFeature",editContext:{feature:tentativeFeature}})}},{key:"handleStartDragging",value:function handleStartDragging(event,props){}},{key:"handleStopDragging",value:function handleStopDragging(event,props){}},{key:"handleDragging",value:function handleDragging(event,props){}},{key:"handleKeyUp",value:function handleKeyUp(event,props){"Escape"===event.key&&(this.resetClickSequence(),props.onEdit({updatedData:props.data,editType:"cancelFeature",editContext:{}}))}}]),GeoJsonEditMode}();exports.GeoJsonEditMode=GeoJsonEditMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/immutable-feature-collection.js":function(__unused_webpack_module,exports){"use strict";function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0;i--){var featureIndex=featureIndexes[i];featureIndex>=0&&featureIndexarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i180&&(angle=360-angle),text=formatTooltip?formatTooltip(angle):"".concat(parseFloat(angle).toFixed(2)," ").concat("deg"),measurementCallback&&measurementCallback(angle),tooltips=[{position:(0,_center.default)({type:"FeatureCollection",features:[point1,point2].map((function(p){return{type:"Feature",geometry:{type:"Point",coordinates:p}}}))}).geometry.coordinates,text:text}]}return tooltips}))),_this}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(MeasureAngleMode,[{key:"handleClick",value:function handleClick(event,props){this.getClickSequence().length>=3&&this.resetClickSequence(),this.addClickSequence(event)}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell")}},{key:"getPoints",value:function getPoints(props){var clickSequence=this.getClickSequence(),points=_toConsumableArray(clickSequence);return clickSequence.length<3&&props.lastPointerMoveEvent&&points.push(props.lastPointerMoveEvent.mapCoords),points}},{key:"getGuides",value:function getGuides(props){var guides={type:"FeatureCollection",features:[]},features=guides.features,points=this.getPoints(props);return points.length>2?features.push({type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[points[1],points[0],points[2]]}}):points.length>1&&features.push({type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[points[1],points[0]]}}),guides}},{key:"getTooltips",value:function getTooltips(props){var points=this.getPoints(props);return this._getTooltips({modeConfig:props.modeConfig,vertex:points[0],point1:points[1],point2:points[2]})}}]),MeasureAngleMode}(_geojsonEditMode.GeoJsonEditMode);exports.MeasureAngleMode=MeasureAngleMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/measure-area-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MeasureAreaMode=void 0;var _area=_interopRequireDefault(__webpack_require__("./node_modules/@turf/area/dist/js/index.js")),_centroid=_interopRequireDefault(__webpack_require__("./node_modules/@turf/centroid/dist/js/index.js")),_drawPolygonMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-polygon-mode.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&clickedEditHandle&&Array.isArray(clickedEditHandle.properties.positionIndexes)&&clickedEditHandle.properties.positionIndexes[0]===clickSequence.length-1)this._isMeasuringSessionFinished=!0;else if(positionAdded){if(clickSequence.length>1){this._currentDistance+=this._calculateDistanceForTooltip({positionA:clickSequence[clickSequence.length-2],positionB:clickSequence[clickSequence.length-1],modeConfig:modeConfig});var tooltipPosition=centerTooltipsOnLine?(0,_midpoint.default)(clickSequence[clickSequence.length-2],clickSequence[clickSequence.length-1]).geometry.coordinates:event.mapCoords;this._currentTooltips.push({position:tooltipPosition,text:this._formatTooltip(this._currentDistance,modeConfig)})}onEdit({updatedData:data,editType:"addTentativePosition",editContext:{position:event.mapCoords}})}}},{key:"handleKeyUp",value:function handleKeyUp(event,props){if(!this._isMeasuringSessionFinished){event.stopPropagation();var key=event.key,clickSequenceLength=this.getClickSequence().length;switch(key){case"Escape":this._isMeasuringSessionFinished=!0,1===clickSequenceLength&&(this.resetClickSequence(),this._currentTooltips=[]),props.onUpdateCursor("cell");break;case"Enter":this.handleClick(props.lastPointerMoveEvent,props),this._isMeasuringSessionFinished=!0}}}},{key:"getGuides",value:function getGuides(props){var _guides$features,lastPointerMoveEvent=props.lastPointerMoveEvent,clickSequence=this.getClickSequence(),lastCoords=lastPointerMoveEvent&&!this._isMeasuringSessionFinished?[lastPointerMoveEvent.mapCoords]:[],guides={type:"FeatureCollection",features:[]};clickSequence.length>0&&guides.features.push({type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[].concat(_toConsumableArray(clickSequence),lastCoords)}});var editHandles=clickSequence.map((function(clickedCoord,index){return{type:"Feature",properties:{guideType:"editHandle",editHandleType:"existing",featureIndex:-1,positionIndexes:[index]},geometry:{type:"Point",coordinates:clickedCoord}}}));return(_guides$features=guides.features).push.apply(_guides$features,_toConsumableArray(editHandles)),guides}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell")}},{key:"getTooltips",value:function getTooltips(props){var lastPointerMoveEvent=props.lastPointerMoveEvent,modeConfig=props.modeConfig,_ref5$centerTooltipsO=(modeConfig||{}).centerTooltipsOnLine,centerTooltipsOnLine=void 0!==_ref5$centerTooltipsO&&_ref5$centerTooltipsO,positions=this.getClickSequence();if(positions.length>0&&lastPointerMoveEvent&&!this._isMeasuringSessionFinished){var distance=this._calculateDistanceForTooltip({positionA:positions[positions.length-1],positionB:lastPointerMoveEvent.mapCoords,modeConfig:props.modeConfig}),tooltipPosition=centerTooltipsOnLine?(0,_midpoint.default)(positions[positions.length-1],lastPointerMoveEvent.mapCoords).geometry.coordinates:lastPointerMoveEvent.mapCoords;return[].concat(_toConsumableArray(this._currentTooltips),[{position:tooltipPosition,text:this._formatTooltip(this._currentDistance+distance,modeConfig)}])}return this._currentTooltips}}]),MeasureDistanceMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.MeasureDistanceMode=MeasureDistanceMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/modify-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ModifyMode=void 0;var _helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js"),_geojsonEditMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js"),_immutableFeatureCollection=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/immutable-feature-collection.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}(props.selectedIndexes);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _index=_step.value;if(_index2}))){if(viewport)return(0,_utils.nearestPointOnProjectedLine)(line,inPoint,viewport);console.log("Editing 3D point but modeConfig.viewport not provided. Falling back to 2D logic.")}return(0,_utils.nearestPointOnLine)(line,inPoint,viewport)}},{key:"handleClick",value:function handleClick(event,props){var pickedExistingHandle=(0,_utils.getPickedExistingEditHandle)(event.picks),pickedIntermediateHandle=(0,_utils.getPickedIntermediateEditHandle)(event.picks);if(pickedExistingHandle){var updatedData,_pickedExistingHandle=pickedExistingHandle.properties,featureIndex=_pickedExistingHandle.featureIndex,positionIndexes=_pickedExistingHandle.positionIndexes;try{updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).removePosition(featureIndex,positionIndexes).getObject()}catch(ignored){}updatedData&&props.onEdit({updatedData:updatedData,editType:"removePosition",editContext:{featureIndexes:[featureIndex],positionIndexes:positionIndexes,position:pickedExistingHandle.geometry.coordinates}})}else if(pickedIntermediateHandle){var _props$modeConfig2,_pickedIntermediateHa=pickedIntermediateHandle.properties,_featureIndex=_pickedIntermediateHa.featureIndex,_positionIndexes=_pickedIntermediateHa.positionIndexes,feature=props.data.features[_featureIndex];if(!((null===(_props$modeConfig2=props.modeConfig)||void 0===_props$modeConfig2?void 0:_props$modeConfig2.lockRectangles)&&"Rectangle"===(null==feature?void 0:feature.properties.shape))){var _updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).addPosition(_featureIndex,_positionIndexes,pickedIntermediateHandle.geometry.coordinates).getObject();_updatedData&&props.onEdit({updatedData:_updatedData,editType:"addPosition",editContext:{featureIndexes:[_featureIndex],positionIndexes:_positionIndexes,position:pickedIntermediateHandle.geometry.coordinates}})}}}},{key:"handleDragging",value:function handleDragging(event,props){var editHandle=(0,_utils.getPickedEditHandle)(event.pointerDownPicks);editHandle&&(event.cancelPan(),this._dragEditHandle("movePosition",props,editHandle,event))}},{key:"_dragEditHandle",value:function _dragEditHandle(editType,props,editHandle,event){var _props$modeConfig3,updatedData,editHandleProperties=editHandle.properties,editedFeature=props.data.features[editHandleProperties.featureIndex];if((null===(_props$modeConfig3=props.modeConfig)||void 0===_props$modeConfig3?void 0:_props$modeConfig3.lockRectangles)&&"Rectangle"===editedFeature.properties.shape){var coordinates=(0,_utils.updateRectanglePosition)(editedFeature,editHandleProperties.positionIndexes[1],event.mapCoords);updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replaceGeometry(editHandleProperties.featureIndex,{coordinates:coordinates,type:"Polygon"}).getObject()}else updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(editHandleProperties.featureIndex,editHandleProperties.positionIndexes,event.mapCoords).getObject();props.onEdit({updatedData:updatedData,editType:editType,editContext:{featureIndexes:[editHandleProperties.featureIndex],positionIndexes:editHandleProperties.positionIndexes,position:event.mapCoords}})}},{key:"handlePointerMove",value:function handlePointerMove(event,props){var cursor=this.getCursor(event);props.onUpdateCursor(cursor)}},{key:"handleStartDragging",value:function handleStartDragging(event,props){var selectedFeatureIndexes=props.selectedIndexes,editHandle=(0,_utils.getPickedIntermediateEditHandle)(event.picks);if(selectedFeatureIndexes.length&&editHandle){var editHandleProperties=editHandle.properties,updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).addPosition(editHandleProperties.featureIndex,editHandleProperties.positionIndexes,event.mapCoords).getObject();props.onEdit({updatedData:updatedData,editType:"addPosition",editContext:{featureIndexes:[editHandleProperties.featureIndex],positionIndexes:editHandleProperties.positionIndexes,position:event.mapCoords}})}}},{key:"handleStopDragging",value:function handleStopDragging(event,props){var selectedFeatureIndexes=props.selectedIndexes,editHandle=(0,_utils.getPickedEditHandle)(event.picks);selectedFeatureIndexes.length&&editHandle&&this._dragEditHandle("finishMovePosition",props,editHandle,event)}},{key:"getCursor",value:function getCursor(event){var picks=event&&event.picks||[];return(0,_utils.getPickedEditHandles)(picks).length?"cell":null}}]),ModifyMode}(_geojsonEditMode.GeoJsonEditMode);exports.ModifyMode=ModifyMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/resize-circle-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ResizeCircleMode=void 0;var _nearestPointOnLine=_interopRequireDefault(__webpack_require__("./node_modules/@turf/nearest-point-on-line/dist/js/index.js")),_helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_circle=_interopRequireDefault(__webpack_require__("./node_modules/@turf/circle/dist/js/index.js")),_distance=_interopRequireDefault(__webpack_require__("./node_modules/@turf/distance/dist/js/index.js")),_center=_interopRequireDefault(__webpack_require__("./node_modules/@turf/center/dist/js/index.js")),_utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js"),_geojsonEditMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js"),_immutableFeatureCollection=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/immutable-feature-collection.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2}))){if(viewport)return(0,_utils.nearestPointOnProjectedLine)(line,inPoint,viewport);console.log("Editing 3D point but modeConfig.viewport not provided. Falling back to 2D logic.")}return(0,_nearestPointOnLine.default)(line,inPoint)}},{key:"handleDragging",value:function handleDragging(event,props){var editHandle=(0,_utils.getPickedEditHandle)(event.pointerDownPicks);if(editHandle){event.cancelPan();var editHandleProperties=editHandle.properties,feature=this.getSelectedFeature(props),center=(0,_center.default)(feature).geometry.coordinates,numberOfSteps=Object.entries(feature.geometry.coordinates[0]).length-1,radius=Math.max((0,_distance.default)(center,event.mapCoords),.001),_ref$steps={}.steps,options={steps:void 0===_ref$steps?numberOfSteps:_ref$steps},geometry=(0,_circle.default)(center,radius,options).geometry,updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replaceGeometry(editHandleProperties.featureIndex,geometry).getObject();props.onEdit({updatedData:updatedData,editType:"unionGeometry",editContext:{featureIndexes:[editHandleProperties.featureIndex]}})}}},{key:"handlePointerMove",value:function handlePointerMove(event,props){if(!this._isResizing){var selectedEditHandle=(0,_utils.getPickedEditHandle)(event.picks);this._selectedEditHandle=selectedEditHandle&&"intermediate"===selectedEditHandle.properties.editHandleType?selectedEditHandle:null}var cursor=this.getCursor(event);props.onUpdateCursor(cursor)}},{key:"handleStartDragging",value:function handleStartDragging(event,props){this._selectedEditHandle&&(this._isResizing=!0)}},{key:"handleStopDragging",value:function handleStopDragging(event,props){this._isResizing&&(this._selectedEditHandle=null,this._isResizing=!1)}},{key:"getCursor",value:function getCursor(event){var picks=event&&event.picks||[];return(0,_utils.getPickedEditHandles)(picks).length?"cell":null}}]),ResizeCircleMode}(_geojsonEditMode.GeoJsonEditMode);exports.ResizeCircleMode=ResizeCircleMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/rotate-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RotateMode=void 0;var _bbox=_interopRequireDefault(__webpack_require__("./node_modules/@turf/bbox/dist/js/index.js")),_centroid=_interopRequireDefault(__webpack_require__("./node_modules/@turf/centroid/dist/js/index.js")),_bearing=_interopRequireDefault(__webpack_require__("./node_modules/@turf/bearing/dist/js/index.js")),_bboxPolygon=_interopRequireDefault(__webpack_require__("./node_modules/@turf/bbox-polygon/dist/js/index.js")),_distance=_interopRequireDefault(__webpack_require__("./node_modules/@turf/distance/dist/js/index.js")),_meta=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),_invariant=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),_helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_transformRotate=_interopRequireDefault(__webpack_require__("./node_modules/@turf/transform-rotate/dist/js/index.js")),_polygonToLine=_interopRequireDefault(__webpack_require__("./node_modules/@turf/polygon-to-line/dist/js/index.js")),_utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js"),_geojsonEditMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js"),_immutableFeatureCollection=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/immutable-feature-collection.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;itopEdgeMidpointCoords[1])&&(topEdgeMidpointCoords=edgeMidpoint);var edgeDistance=(0,_distance.default)(coord,previousCoord);longestEdgeLength=Math.max(longestEdgeLength,edgeDistance)}previousCoord=coord}));var rotateHandleCoords=topEdgeMidpointCoords&&[topEdgeMidpointCoords[0],topEdgeMidpointCoords[1]+longestEdgeLength/1e3],lineFromEnvelopeToRotateHandle=(0,_helpers.lineString)([topEdgeMidpointCoords,rotateHandleCoords]),rotateHandle=(0,_helpers.point)(rotateHandleCoords,{guideType:"editHandle",editHandleType:"rotate"});return(0,_helpers.featureCollection)([(0,_polygonToLine.default)(boundingBox),rotateHandle,lineFromEnvelopeToRotateHandle])}},{key:"handleDragging",value:function handleDragging(event,props){if(this._isRotating){var rotateAction=this.getRotateAction(event.pointerDownMapCoords,event.mapCoords,"rotating",props);rotateAction&&props.onEdit(rotateAction),event.cancelPan()}}},{key:"handlePointerMove",value:function handlePointerMove(event,props){if(!this._isRotating){var selectedEditHandle=(0,_utils.getPickedEditHandle)(event.picks);this._selectedEditHandle=selectedEditHandle&&"rotate"===selectedEditHandle.properties.editHandleType?selectedEditHandle:null}this.updateCursor(props)}},{key:"handleStartDragging",value:function handleStartDragging(event,props){this._selectedEditHandle&&(this._isRotating=!0,this._geometryBeingRotated=this.getSelectedFeaturesAsFeatureCollection(props))}},{key:"handleStopDragging",value:function handleStopDragging(event,props){if(this._isRotating){var rotateAction=this.getRotateAction(event.pointerDownMapCoords,event.mapCoords,"rotated",props);rotateAction&&props.onEdit(rotateAction),this._geometryBeingRotated=null,this._selectedEditHandle=null,this._isRotating=!1}}},{key:"updateCursor",value:function updateCursor(props){this._selectedEditHandle?props.onUpdateCursor("crosshair"):props.onUpdateCursor(null)}},{key:"getRotateAction",value:function getRotateAction(startDragPoint,currentPoint,editType,props){if(!this._geometryBeingRotated)return null;for(var centroid=(0,_centroid.default)(this._geometryBeingRotated),angle=function getRotationAngle(centroid,startDragPoint,currentPoint){var bearing1=(0,_bearing.default)(centroid,startDragPoint),bearing2=(0,_bearing.default)(centroid,currentPoint);return bearing2-bearing1}(centroid,startDragPoint,currentPoint),rotatedFeatures=(0,_transformRotate.default)(this._geometryBeingRotated,angle,{pivot:centroid}),updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data),selectedIndexes=props.selectedIndexes,i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0&&positiveBearing<=90||positiveBearing>=180&&positiveBearing<=270?(_this._cursor="nesw-resize",props.onUpdateCursor("nesw-resize")):(_this._cursor="nwse-resize",props.onUpdateCursor("nwse-resize"))}else props.onUpdateCursor(null),_this._cursor=null})),_this}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(ScaleMode,[{key:"handlePointerMove",value:function handlePointerMove(event,props){if(!this._isScaling){var selectedEditHandle=(0,_utils.getPickedEditHandle)(event.picks);this._selectedEditHandle=selectedEditHandle&&"scale"===selectedEditHandle.properties.editHandleType?selectedEditHandle:null,this.updateCursor(props)}}},{key:"handleStartDragging",value:function handleStartDragging(event,props){this._selectedEditHandle&&(this._isScaling=!0,this._geometryBeingScaled=this.getSelectedFeaturesAsFeatureCollection(props))}},{key:"handleDragging",value:function handleDragging(event,props){if(this._isScaling){props.onUpdateCursor(this._cursor);var scaleAction=this.getScaleAction(event.pointerDownMapCoords,event.mapCoords,"scaling",props);scaleAction&&props.onEdit(scaleAction),event.cancelPan()}}},{key:"handleStopDragging",value:function handleStopDragging(event,props){if(this._isScaling){var scaleAction=this.getScaleAction(event.pointerDownMapCoords,event.mapCoords,"scaled",props);scaleAction&&props.onEdit(scaleAction),props.onUpdateCursor(null),this._geometryBeingScaled=null,this._selectedEditHandle=null,this._cursor=null,this._isScaling=!1}}},{key:"getGuides",value:function getGuides(props){this._cornerGuidePoints=[];var selectedGeometry=this.getSelectedFeaturesAsFeatureCollection(props);if(this._isSinglePointGeometrySelected(selectedGeometry))return{type:"FeatureCollection",features:[]};var boundingBox=(0,_bboxPolygon.default)((0,_bbox.default)(selectedGeometry));boundingBox.properties.mode="scale";var cornerGuidePoints=[];return(0,_meta.coordEach)(boundingBox,(function(coord,coordIndex){if(coordIndex<4){var cornerPoint=(0,_helpers.point)(coord,{guideType:"editHandle",editHandleType:"scale",positionIndexes:[coordIndex]});cornerGuidePoints.push(cornerPoint)}})),this._cornerGuidePoints=cornerGuidePoints,(0,_helpers.featureCollection)([(0,_polygonToLine.default)(boundingBox)].concat(_toConsumableArray(this._cornerGuidePoints)))}}]),ScaleMode}(_geojsonEditMode.GeoJsonEditMode);exports.ScaleMode=ScaleMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/snappable-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SnappableMode=void 0;var _utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}(props.selectedIndexes);try{for(_iterator.s();!(_step=_iterator.n()).done;){var index=_step.value;if(indexarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);idistanceFromOrigin&&(minDistance=distanceFromOrigin,closestPoint=snapPoint)})),closestPoint){var lastBearing=(0,_bearing.default)(firstPoint,closestPoint),currentDistance=(0,_distance.default)(firstPoint,mapCoords,{units:"meters"});return(0,_destination.default)(firstPoint,currentDistance,lastBearing,{units:"meters"}).geometry.coordinates}return mapCoords}var lastPoint=clickSequence[clickSequence.length-1],approximatePoint=_slicedToArray((0,_utils.generatePointsParallelToLinePoints)(clickSequence[clickSequence.length-2],lastPoint,mapCoords),1)[0];return(0,_nearestPointOnLine.default)((0,_helpers.lineString)([lastPoint,approximatePoint]),mapCoords).geometry.coordinates}},{key:"getGuides",value:function getGuides(props){var clickSequence=this.getClickSequence(),guides={type:"FeatureCollection",features:[]};if(0===clickSequence.length||!props.lastPointerMoveEvent)return guides;var mapCoords=props.lastPointerMoveEvent.mapCoords;return guides.features.push({type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[].concat(_toConsumableArray(clickSequence),[this.calculateMapCoords(clickSequence,mapCoords,props)])}}),guides}},{key:"handleClick",value:function handleClick(event,props){var tentativeFeature=this.getTentativeGuide(props),selectedGeometry=this.getSelectedGeometry(props);if(selectedGeometry){var clickSequence=this.getClickSequence();tentativeFeature&&"LineString"===tentativeFeature.geometry.type?clickSequence.push(tentativeFeature.geometry.coordinates[tentativeFeature.geometry.coordinates.length-1]):this.addClickSequence(event);var pt={type:"Point",coordinates:clickSequence[clickSequence.length-1]},isPointInPolygon=(0,_booleanPointInPolygon.default)(pt,selectedGeometry);if(clickSequence.length>1&&tentativeFeature&&!isPointInPolygon){if(this.resetClickSequence(),0===(0,_lineIntersect.default)(tentativeFeature,selectedGeometry).features.length)return;var editAction=this.splitPolygon(tentativeFeature,props);editAction&&props.onEdit(editAction)}}else console.warn("A polygon must be selected for splitting")}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell")}},{key:"splitPolygon",value:function splitPolygon(tentativeFeature,props){var selectedGeometry=this.getSelectedGeometry(props),featureIndex=props.selectedIndexes[0],modeConfig=props.modeConfig||{},_modeConfig$gap=modeConfig.gap,gap=void 0===_modeConfig$gap?.1:_modeConfig$gap,_modeConfig$units=modeConfig.units,units=void 0===_modeConfig$units?"centimeters":_modeConfig$units;0===gap&&(gap=.1,units="centimeters");var buffer=(0,_buffer.default)(tentativeFeature,gap,{units:units}),updatedGeometry=(0,_difference.default)(selectedGeometry,buffer);if(!updatedGeometry)return console.warn("Canceling edit. Split Polygon erased"),null;var _updatedGeometry$geom=updatedGeometry.geometry,type=_updatedGeometry$geom.type,coordinates=_updatedGeometry$geom.coordinates,updatedCoordinates=[];return updatedCoordinates="Polygon"===type?coordinates.map((function(c){return[c]})):coordinates.reduce((function(agg,prev){return prev.forEach((function(p){agg.push([p])})),agg}),[]),{updatedData:new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replaceGeometry(featureIndex,{type:"MultiPolygon",coordinates:updatedCoordinates}).getObject(),editType:"split",editContext:{featureIndexes:[featureIndex]}}}}]),SplitPolygonMode}(_geojsonEditMode.GeoJsonEditMode);exports.SplitPolygonMode=SplitPolygonMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/three-click-polygon-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;i2&&tentativeFeature&&"Polygon"===tentativeFeature.geometry.type){var editAction=this.getAddFeatureOrBooleanPolygonAction(tentativeFeature.geometry,props);this.resetClickSequence(),editAction&&props.onEdit(editAction)}}},{key:"getGuides",value:function getGuides(props){var lastPointerMoveEvent=props.lastPointerMoveEvent,modeConfig=props.modeConfig,clickSequence=this.getClickSequence(),guides={type:"FeatureCollection",features:[]};if(0===clickSequence.length)return guides;var hoveredCoord=lastPointerMoveEvent.mapCoords;if(1===clickSequence.length)guides.features.push({type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[clickSequence[0],hoveredCoord]}});else{var polygon=this.getThreeClickPolygon(clickSequence[0],clickSequence[1],hoveredCoord,modeConfig);polygon&&guides.features.push({type:"Feature",properties:{guideType:"tentative"},geometry:polygon.geometry})}return guides}},{key:"getThreeClickPolygon",value:function getThreeClickPolygon(coord1,coord2,coord3,modeConfig){return null}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell"),_get(_getPrototypeOf(ThreeClickPolygonMode.prototype),"handlePointerMove",this).call(this,event,props)}},{key:"createTentativeFeature",value:function createTentativeFeature(props){var tentativeFeature,lastPointerMoveEvent=props.lastPointerMoveEvent,clickSequence=this.getClickSequence(),lastCoords=lastPointerMoveEvent?[lastPointerMoveEvent.mapCoords]:[];return 2===clickSequence.length&&(tentativeFeature=this.getThreeClickPolygon(clickSequence[0],clickSequence[1],lastCoords[0],props.modeConfig)),tentativeFeature}}]),ThreeClickPolygonMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.ThreeClickPolygonMode=ThreeClickPolygonMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/transform-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TransformMode=void 0;var _helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_translateMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/translate-mode.js"),_scaleMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/scale-mode.js"),_rotateMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/rotate-mode.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _defineProperties(target,props){for(var i=0;i1&&tentativeFeature&&"Polygon"===tentativeFeature.geometry.type){var feature={type:"Feature",properties:{shape:tentativeFeature.properties.shape},geometry:{type:"Polygon",coordinates:tentativeFeature.geometry.coordinates}},editAction=this.getAddFeatureOrBooleanPolygonAction(feature,props);this.resetClickSequence(),editAction&&props.onEdit(editAction)}}},{key:"getGuides",value:function getGuides(props){var lastPointerMoveEvent=props.lastPointerMoveEvent,modeConfig=props.modeConfig,clickSequence=this.getClickSequence(),guides={type:"FeatureCollection",features:[]};if(0===clickSequence.length)return guides;var corner1=clickSequence[0],corner2=lastPointerMoveEvent.mapCoords,polygon=this.getTwoClickPolygon(corner1,corner2,modeConfig);return polygon&&guides.features.push({type:"Feature",properties:{shape:polygon.properties&&polygon.properties.shape,guideType:"tentative"},geometry:polygon.geometry}),guides}},{key:"getTwoClickPolygon",value:function getTwoClickPolygon(coord1,coord2,modeConfig){return null}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell"),_get(_getPrototypeOf(TwoClickPolygonMode.prototype),"handlePointerMove",this).call(this,event,props)}},{key:"createTentativeFeature",value:function createTentativeFeature(props){var tentativeFeature,lastPointerMoveEvent=props.lastPointerMoveEvent,clickSequence=this.getClickSequence(),lastCoords=lastPointerMoveEvent?[lastPointerMoveEvent.mapCoords]:[];return 1===clickSequence.length&&(tentativeFeature=this.getTwoClickPolygon(clickSequence[0],lastCoords[0],props.modeConfig)),tentativeFeature}}]),TwoClickPolygonMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.TwoClickPolygonMode=TwoClickPolygonMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/view-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _createSuper(Derived){return function(){var result,Super=_getPrototypeOf(Derived);if(function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;return function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}(this,result)}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ViewMode=void 0;var ViewMode=function(_GeoJsonEditMode){!function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}(ViewMode,_GeoJsonEditMode);var _super=_createSuper(ViewMode);function ViewMode(){return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,ViewMode),_super.apply(this,arguments)}return ViewMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.ViewMode=ViewMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/memoize.js":function(__unused_webpack_module,exports){"use strict";function isEqual(a,b){if(a===b)return!0;if(Array.isArray(a)){var len=a.length;if(!b||b.length!==len)return!1;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:[255,0,0,255];if(!Array.isArray(color))return defaultColor;return[255*color[0],255*color[1],255*color[2],255*color[3]]},exports.recursivelyTraverseNestedArrays=function recursivelyTraverseNestedArrays(array,prefix,fn){if(!Array.isArray(array[0]))return!0;for(var i=0;i1&&pointCoords.length){var lineCoordinates,pointCoordinate;mercator?(lineCoordinates=coords.map((function(lineCoordinate){return mercator.project(lineCoordinate)})),pointCoordinate=mercator.project(pointCoords)):(lineCoordinates=coords,pointCoordinate=pointCoords);for(var n=1;nrl2&&(dist=Math.sqrt(Math.min(ln2,lnm12))),(null==minDist||minDist>dist)&&(calcrl2>rl2?lnm12=0&&"existing"===properties.editHandleType}))},exports.getPickedIntermediateEditHandle=function getPickedIntermediateEditHandle(picks){return getPickedEditHandles(picks).find((function(_ref6){var properties=_ref6.properties;return properties.featureIndex>=0&&"intermediate"===properties.editHandleType}))},exports.getPickedEditHandles=getPickedEditHandles,exports.getEditHandlesForGeometry=function getEditHandlesForGeometry(geometry,featureIndex){var editHandleType=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"existing",handles=[];switch(geometry.type){case"Point":handles=[{type:"Feature",properties:{guideType:"editHandle",editHandleType:editHandleType,positionIndexes:[],featureIndex:featureIndex},geometry:{type:"Point",coordinates:geometry.coordinates}}];break;case"MultiPoint":case"LineString":handles=handles.concat(getEditHandlesForCoordinates(geometry.coordinates,[],featureIndex,editHandleType));break;case"Polygon":case"MultiLineString":for(var a=0;aarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i3&&void 0!==arguments[3]?arguments[3]:"existing",editHandles=[],i=0;i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{};return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Arrow2DGeometry),_super.call(this,Object.assign({},opts,{attributes:getArrowAttributes(opts)}))}return Arrow2DGeometry}(__webpack_require__("./node_modules/@luma.gl/core/dist/esm/index.js").Geometry);function getArrowAttributes(_ref){for(var _ref$length=_ref.length,length=void 0===_ref$length?1:_ref$length,_ref$headSize=_ref.headSize,headSize=void 0===_ref$headSize?.2:_ref$headSize,_ref$tailWidth=_ref.tailWidth,tailWidth=void 0===_ref$tailWidth?.05:_ref$tailWidth,_ref$tailStart=_ref.tailStart,tailStart=void 0===_ref$tailStart?.05:_ref$tailStart,texCoords=[.5,1,0,.5-headSize/2,1-headSize,0,.5+headSize/2,1-headSize,0,.5-tailWidth/2,tailStart,0,.5+tailWidth/2,1-headSize,0,.5+tailWidth/2,tailStart,0,.5-tailWidth/2,tailStart,0,.5-tailWidth/2,1-headSize,0,.5+tailWidth/2,1-headSize,0],positions=new Array(texCoords.length),i=0;i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);idistanceAlong);i++)previousDistance=currentDistance;i===path.length-1&&(i-=1);var along=distanceAlong-previousDistance,vCenter=path[i+1].clone().subtract(path[i]).normalize().clone().multiply(new _math.Vector2(along,along)).add(path[i]),angle=180*new _math.Vector2(projectFlat(path[i+1])).subtract(projectFlat(path[i])).verticalAngle()/Math.PI;return{position:[vCenter.x,vCenter.y,0],angle:angle,color:color,object:object}}},"./node_modules/@nebula.gl/layers/dist-es6/layers/path-marker-layer/path-marker-layer.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _core=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/index.js"),_layers=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/index.js"),_meshLayers=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/index.js"),_pathOutlineLayer=_interopRequireDefault(__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/layers/path-outline-layer/path-outline-layer.js")),_arrow2dGeometry=_interopRequireDefault(__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/layers/path-marker-layer/arrow-2d-geometry.js")),_createPathMarkers=_interopRequireDefault(__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/layers/path-marker-layer/create-path-markers.js")),_polyline=__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/layers/path-marker-layer/polyline.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i.1?[.25,.5,.75]:[.5]}}),PathMarkerLayer=function(_CompositeLayer){!function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}(PathMarkerLayer,_CompositeLayer);var _super=_createSuper(PathMarkerLayer);function PathMarkerLayer(){return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,PathMarkerLayer),_super.apply(this,arguments)}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(PathMarkerLayer,[{key:"initializeState",value:function initializeState(){this.state={markers:[],mesh:new _arrow2dGeometry.default({headSize:.2,tailWidth:.05}),closestPoint:null}}},{key:"projectFlat",value:function projectFlat(xyz,viewport,coordinateSystem,coordinateOrigin){if(coordinateSystem===_core.COORDINATE_SYSTEM.METER_OFFSETS){var _viewport$metersToLng2=_slicedToArray(viewport.metersToLngLatDelta(xyz),2),dx=_viewport$metersToLng2[0],dy=_viewport$metersToLng2[1],_coordinateOrigin=_slicedToArray(coordinateOrigin,2),_x=_coordinateOrigin[0],y=_coordinateOrigin[1];return viewport.projectFlat([_x+dx,dy+y])}if(coordinateSystem===_core.COORDINATE_SYSTEM.LNGLAT_OFFSETS){var _xyz=_slicedToArray(xyz,2),_dx=_xyz[0],_dy=_xyz[1],_coordinateOrigin2=_slicedToArray(coordinateOrigin,2),_x2=_coordinateOrigin2[0],_y=_coordinateOrigin2[1];return viewport.projectFlat([_x2+_dx,_dy+_y])}return viewport.projectFlat(xyz)}},{key:"updateState",value:function updateState(_ref2){var _this=this,props=_ref2.props,oldProps=_ref2.oldProps,changeFlags=_ref2.changeFlags;if(changeFlags.dataChanged||changeFlags.updateTriggersChanged){var _this$props=this.props,data=_this$props.data,getPath=_this$props.getPath,getDirection=_this$props.getDirection,getMarkerColor=_this$props.getMarkerColor,getMarkerPercentages=_this$props.getMarkerPercentages,coordinateSystem=_this$props.coordinateSystem,coordinateOrigin=_this$props.coordinateOrigin,viewport=this.context.viewport;this.state.markers=(0,_createPathMarkers.default)({data:data,getPath:getPath,getDirection:getDirection,getColor:getMarkerColor,getMarkerPercentages:getMarkerPercentages,projectFlat:function projectFlat(o){return _this.projectFlat(o,viewport,coordinateSystem,coordinateOrigin)}}),this._recalculateClosestPoint()}changeFlags.propsChanged&&props.point!==oldProps.point&&this._recalculateClosestPoint()}},{key:"_recalculateClosestPoint",value:function _recalculateClosestPoint(){var _this$props2=this.props,highlightPoint=_this$props2.highlightPoint,highlightIndex=_this$props2.highlightIndex;if(highlightPoint&&highlightIndex>=0){var object=this.props.data[highlightIndex],points=this.props.getPath(object),point=(0,_polyline.getClosestPointOnPolyline)({points:points,p:highlightPoint}).point;this.state.closestPoints=[{position:point}]}else this.state.closestPoints=[]}},{key:"getPickingInfo",value:function getPickingInfo(_ref3){var info=_ref3.info;return Object.assign(info,{object:info.object&&info.object.path||info.object})}},{key:"renderLayers",value:function renderLayers(){return[new _pathOutlineLayer.default(this.props,this.getSubLayerProps({id:"paths",data:this.props.data})),new this.props.MarkerLayer(this.getSubLayerProps(Object.assign({},this.props.markerLayerProps,{id:"markers",data:this.state.markers,getOrientation:function getOrientation(x){return[0,-x.angle,0]},getColor:function getColor(x){return x.color},sizeScale:this.props.sizeScale,fp64:this.props.fp64,pickable:!1,parameters:{blend:!1,depthTest:!1}}))),this.state.closestPoints&&new _layers.ScatterplotLayer({id:"".concat(this.props.id,"-highlight"),data:this.state.closestPoints,fp64:this.props.fp64})]}}]),PathMarkerLayer}(_core.CompositeLayer);exports.default=PathMarkerLayer,_defineProperty(PathMarkerLayer,"layerName","PathMarkerLayer"),_defineProperty(PathMarkerLayer,"defaultProps",defaultProps)},"./node_modules/@nebula.gl/layers/dist-es6/layers/path-marker-layer/polyline.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getClosestPointOnLine=getClosestPointOnLine,exports.getClosestPointOnPolyline=function getClosestPointOnPolyline(_ref2){var p=_ref2.p,points=_ref2.points;p=new _math.Vector3(p);for(var pClosest=null,distanceSquared=1/0,index=-1,i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i 0.0) {\n maxZLevel = texture2DProj(outline_uShadowmap, outline_vPosition).r * 255.;\n } else {\n discard;\n }\n if (maxZLevel < outline_vzLevel + OUTLINE_Z_LEVEL_ERROR) {\n vec4(color.rgb * 0.5, color.a);\n } else {\n discard;\n }\n }\n return color;\n}\n\n// if enabled and rendering outlines - Render depth to shadowmap\n// if enabled and rendering colors - Return a darker color if in shadowmap\n// if disabled, just return color\nvec4 outline_filterColor(vec4 color) {\n if (outline_uEnabled) {\n return outline_uRenderOutlines ?\n outline_filterShadowColor(color) :\n outline_filterDarkenColor(color);\n }\n return color;\n}\n",getUniforms:function getUniforms(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:INITIAL_STATE,outlineEnabled=_ref.outlineEnabled,outlineRenderShadowmap=_ref.outlineRenderShadowmap,outlineShadowmap=_ref.outlineShadowmap,uniforms={};return void 0!==outlineEnabled&&(uniforms.outline_uEnabled=outlineEnabled),void 0!==outlineRenderShadowmap&&(uniforms.outline_uRenderOutlines=outlineRenderShadowmap),void 0!==outlineShadowmap&&(uniforms.outline_uShadowmap=outlineShadowmap),uniforms}};exports.default=_default},"./node_modules/@nebula.gl/layers/dist-es6/style.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_ARROWS=exports.DEFAULT_ARROWS=exports.ArrowStyles=void 0;exports.ArrowStyles={NONE:0,FORWARD:1,BACKWARD:2,BOTH:3};exports.DEFAULT_ARROWS=1;exports.MAX_ARROWS=3},"./node_modules/@nebula.gl/layers/dist-es6/utils.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toDeckColor=function toDeckColor(color){var defaultColor=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[255,0,0,255];if(!Array.isArray(color))return defaultColor;return[255*color[0],255*color[1],255*color[2],255*color[3]]},exports.recursivelyTraverseNestedArrays=function recursivelyTraverseNestedArrays(array,prefix,fn){if(!Array.isArray(array[0]))return!0;for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=travelled&&i===coords.length-1);i++){if(travelled>=distance){var overshot=distance-travelled;if(overshot){var direction=bearing_1.default(coords[i],coords[i-1])-180;return destination_1.default(coords[i],overshot,direction,options)}return helpers_1.point(coords[i])}travelled+=distance_1.default(coords[i],coords[i+1],options)}return helpers_1.point(coords[coords.length-1])}},"./node_modules/@turf/area/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var meta_1=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),RADIUS=6378137;function polygonArea(coords){var total=0;if(coords&&coords.length>0){total+=Math.abs(ringArea(coords[0]));for(var i=1;i2){for(i=0;icoord[0]&&(result[0]=coord[0]),result[1]>coord[1]&&(result[1]=coord[1]),result[2]pt[1]!=yj>pt[1]&&pt[0]<(xj-xi)*(pt[1]-yi)/(yj-yi)+xi&&(isInside=!isInside)}return isInside}exports.default=function booleanPointInPolygon(point,polygon,options){if(void 0===options&&(options={}),!point)throw new Error("point is required");if(!polygon)throw new Error("polygon is required");var pt=invariant_1.getCoord(point),geom=invariant_1.getGeom(polygon),type=geom.type,bbox=polygon.bbox,polys=geom.coordinates;if(bbox&&!1===function inBBox(pt,bbox){return bbox[0]<=pt[0]&&bbox[1]<=pt[1]&&bbox[2]>=pt[0]&&bbox[3]>=pt[1]}(pt,bbox))return!1;"Polygon"===type&&(polys=[polys]);for(var insidePoly=!1,i=0;i=-270&&(x=-x),stepAngle<-180&&stepAngle>=-360&&(y=-y),"degrees"===units){var newx=x*Math.cos(angleRad)+y*Math.sin(angleRad),newy=y*Math.cos(angleRad)-x*Math.sin(angleRad);x=newx,y=newy}coordinates.push([x+centerCoords[0],y+centerCoords[1]])}return coordinates.push(coordinates[0]),"degrees"===units?helpers.polygon([coordinates],properties):transformRotate__default.default(helpers.polygon([coordinates],properties),angle,{pivot:pivot})}function getTanDeg(deg){var rad=deg*Math.PI/180;return Math.tan(rad)}module.exports=ellipse,module.exports.default=ellipse},"./node_modules/@turf/helpers/dist/es/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Kn:function(){return isObject},Tu:function(){return lineString},zL:function(){return feature}});function feature(geom,properties,options){void 0===options&&(options={});var feat={type:"Feature"};return(0===options.id||options.id)&&(feat.id=options.id),options.bbox&&(feat.bbox=options.bbox),feat.properties=properties||{},feat.geometry=geom,feat}function lineString(coordinates,properties,options){if(void 0===options&&(options={}),coordinates.length<2)throw new Error("coordinates must be an array of two or more positions");return feature({type:"LineString",coordinates:coordinates},properties,options)}function isObject(input){return!!input&&input.constructor===Object}},"./node_modules/@turf/helpers/dist/js/index.js":function(__unused_webpack_module,exports){"use strict";function feature(geom,properties,options){void 0===options&&(options={});var feat={type:"Feature"};return(0===options.id||options.id)&&(feat.id=options.id),options.bbox&&(feat.bbox=options.bbox),feat.properties=properties||{},feat.geometry=geom,feat}function point(coordinates,properties,options){if(void 0===options&&(options={}),!coordinates)throw new Error("coordinates is required");if(!Array.isArray(coordinates))throw new Error("coordinates must be an Array");if(coordinates.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!isNumber(coordinates[0])||!isNumber(coordinates[1]))throw new Error("coordinates must contain numbers");return feature({type:"Point",coordinates:coordinates},properties,options)}function polygon(coordinates,properties,options){void 0===options&&(options={});for(var _i=0,coordinates_1=coordinates;_i=0))throw new Error("precision must be a positive number");var multiplier=Math.pow(10,precision||0);return Math.round(num*multiplier)/multiplier},exports.radiansToLength=radiansToLength,exports.lengthToRadians=lengthToRadians,exports.lengthToDegrees=function lengthToDegrees(distance,units){return radiansToDegrees(lengthToRadians(distance,units))},exports.bearingToAzimuth=function bearingToAzimuth(bearing){var angle=bearing%360;return angle<0&&(angle+=360),angle},exports.radiansToDegrees=radiansToDegrees,exports.degreesToRadians=function degreesToRadians(degrees){return degrees%360*Math.PI/180},exports.convertLength=function convertLength(length,originalUnit,finalUnit){if(void 0===originalUnit&&(originalUnit="kilometers"),void 0===finalUnit&&(finalUnit="kilometers"),!(length>=0))throw new Error("length must be a positive number");return radiansToLength(lengthToRadians(length,originalUnit),finalUnit)},exports.convertArea=function convertArea(area,originalUnit,finalUnit){if(void 0===originalUnit&&(originalUnit="meters"),void 0===finalUnit&&(finalUnit="kilometers"),!(area>=0))throw new Error("area must be a positive number");var startFactor=exports.areaFactors[originalUnit];if(!startFactor)throw new Error("invalid original units");var finalFactor=exports.areaFactors[finalUnit];if(!finalFactor)throw new Error("invalid final units");return area/startFactor*finalFactor},exports.isNumber=isNumber,exports.isObject=function isObject(input){return!!input&&input.constructor===Object},exports.validateBBox=function validateBBox(bbox){if(!bbox)throw new Error("bbox is required");if(!Array.isArray(bbox))throw new Error("bbox must be an Array");if(4!==bbox.length&&6!==bbox.length)throw new Error("bbox must be an Array of 4 or 6 numbers");bbox.forEach((function(num){if(!isNumber(num))throw new Error("bbox must only contain numbers")}))},exports.validateId=function validateId(id){if(!id)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof id))throw new Error("id must be a number or a string")}},"./node_modules/@turf/intersect/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),polygon_clipping_1=__importDefault(__webpack_require__("./node_modules/polygon-clipping/dist/polygon-clipping.umd.js"));exports.default=function intersect(poly1,poly2,options){void 0===options&&(options={});var geom1=invariant_1.getGeom(poly1),geom2=invariant_1.getGeom(poly2),intersection=polygon_clipping_1.default.intersection(geom1.coordinates,geom2.coordinates);return 0===intersection.length?null:1===intersection.length?helpers_1.polygon(intersection[0],options.properties):helpers_1.multiPolygon(intersection,options.properties)}},"./node_modules/@turf/invariant/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");exports.getCoord=function getCoord(coord){if(!coord)throw new Error("coord is required");if(!Array.isArray(coord)){if("Feature"===coord.type&&null!==coord.geometry&&"Point"===coord.geometry.type)return coord.geometry.coordinates;if("Point"===coord.type)return coord.coordinates}if(Array.isArray(coord)&&coord.length>=2&&!Array.isArray(coord[0])&&!Array.isArray(coord[1]))return coord;throw new Error("coord must be GeoJSON Point or an Array of numbers")},exports.getCoords=function getCoords(coords){if(Array.isArray(coords))return coords;if("Feature"===coords.type){if(null!==coords.geometry)return coords.geometry.coordinates}else if(coords.coordinates)return coords.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")},exports.containsNumber=function containsNumber(coordinates){if(coordinates.length>1&&helpers_1.isNumber(coordinates[0])&&helpers_1.isNumber(coordinates[1]))return!0;if(Array.isArray(coordinates[0])&&coordinates[0].length)return containsNumber(coordinates[0]);throw new Error("coordinates must only contain numbers")},exports.geojsonType=function geojsonType(value,type,name){if(!type||!name)throw new Error("type and name required");if(!value||value.type!==type)throw new Error("Invalid input to "+name+": must be a "+type+", given "+value.type)},exports.featureOf=function featureOf(feature,type,name){if(!feature)throw new Error("No feature passed");if(!name)throw new Error(".featureOf() requires a name");if(!feature||"Feature"!==feature.type||!feature.geometry)throw new Error("Invalid input to "+name+", Feature with geometry required");if(!feature.geometry||feature.geometry.type!==type)throw new Error("Invalid input to "+name+": must be a "+type+", given "+feature.geometry.type)},exports.collectionOf=function collectionOf(featureCollection,type,name){if(!featureCollection)throw new Error("No featureCollection passed");if(!name)throw new Error(".collectionOf() requires a name");if(!featureCollection||"FeatureCollection"!==featureCollection.type)throw new Error("Invalid input to "+name+", FeatureCollection required");for(var _i=0,_a=featureCollection.features;_i<_a.length;_i++){var feature=_a[_i];if(!feature||"Feature"!==feature.type||!feature.geometry)throw new Error("Invalid input to "+name+", Feature with geometry required");if(!feature.geometry||feature.geometry.type!==type)throw new Error("Invalid input to "+name+": must be a "+type+", given "+feature.geometry.type)}},exports.getGeom=function getGeom(geojson){return"Feature"===geojson.type?geojson.geometry:geojson},exports.getType=function getType(geojson,_name){return"FeatureCollection"===geojson.type?"FeatureCollection":"GeometryCollection"===geojson.type?"GeometryCollection":"Feature"===geojson.type&&null!==geojson.geometry?geojson.geometry.type:geojson.type}},"./node_modules/@turf/line-intersect/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),line_segment_1=__importDefault(__webpack_require__("./node_modules/@turf/line-segment/dist/js/index.js")),meta_1=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),geojson_rbush_1=__importDefault(__webpack_require__("./node_modules/geojson-rbush/index.js"));function intersects(line1,line2){var coords1=invariant_1.getCoords(line1),coords2=invariant_1.getCoords(line2);if(2!==coords1.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==coords2.length)throw new Error(" line2 must only contain 2 coordinates");var x1=coords1[0][0],y1=coords1[0][1],x2=coords1[1][0],y2=coords1[1][1],x3=coords2[0][0],y3=coords2[0][1],x4=coords2[1][0],y4=coords2[1][1],denom=(y4-y3)*(x2-x1)-(x4-x3)*(y2-y1),numeA=(x4-x3)*(y1-y3)-(y4-y3)*(x1-x3),numeB=(x2-x1)*(y1-y3)-(y2-y1)*(x1-x3);if(0===denom)return null;var uA=numeA/denom,uB=numeB/denom;if(uA>=0&&uA<=1&&uB>=0&&uB<=1){var x=x1+uA*(x2-x1),y=y1+uA*(y2-y1);return helpers_1.point([x,y])}return null}exports.default=function lineIntersect(line1,line2){var unique={},results=[];if("LineString"===line1.type&&(line1=helpers_1.feature(line1)),"LineString"===line2.type&&(line2=helpers_1.feature(line2)),"Feature"===line1.type&&"Feature"===line2.type&&null!==line1.geometry&&null!==line2.geometry&&"LineString"===line1.geometry.type&&"LineString"===line2.geometry.type&&2===line1.geometry.coordinates.length&&2===line2.geometry.coordinates.length){var intersect=intersects(line1,line2);return intersect&&results.push(intersect),helpers_1.featureCollection(results)}var tree=geojson_rbush_1.default();return tree.load(line_segment_1.default(line2)),meta_1.featureEach(line_segment_1.default(line1),(function(segment){meta_1.featureEach(tree.search(segment),(function(match){var intersect=intersects(segment,match);if(intersect){var key=invariant_1.getCoords(intersect).join(",");unique[key]||(unique[key]=!0,results.push(intersect))}}))})),helpers_1.featureCollection(results)}},"./node_modules/@turf/line-segment/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),meta_1=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js");exports.default=function lineSegment(geojson){if(!geojson)throw new Error("geojson is required");var results=[];return meta_1.flattenEach(geojson,(function(feature){!function lineSegmentFeature(geojson,results){var coords=[],geometry=geojson.geometry;if(null!==geometry){switch(geometry.type){case"Polygon":coords=invariant_1.getCoords(geometry);break;case"LineString":coords=[invariant_1.getCoords(geometry)]}coords.forEach((function(coord){var segments=function createSegments(coords,properties){var segments=[];return coords.reduce((function(previousCoords,currentCoords){var segment=helpers_1.lineString([previousCoords,currentCoords],properties);return segment.bbox=function bbox(coords1,coords2){var x1=coords1[0],y1=coords1[1],x2=coords2[0],y2=coords2[1];return[x1x2?x1:x2,y1>y2?y1:y2]}(previousCoords,currentCoords),segments.push(segment),currentCoords})),segments}(coord,geojson.properties);segments.forEach((function(segment){segment.id=results.length,results.push(segment)}))}))}}(feature,results)})),helpers_1.featureCollection(results)}},"./node_modules/@turf/meta/dist/es/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{hE:function(){return segmentReduce},mm:function(){return geomReduce},on:function(){return geomEach}});var _turf_helpers__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@turf/helpers/dist/es/index.js");function coordEach(geojson,callback,excludeWrapCoord){if(null!==geojson)for(var j,k,l,geometry,stopG,coords,geometryMaybeCollection,isGeometryCollection,wrapShrink=0,coordIndex=0,type=geojson.type,isFeatureCollection="FeatureCollection"===type,isFeature="Feature"===type,stop=isFeatureCollection?geojson.features.length:1,featureIndex=0;featureIndexpreviousFeatureIndex||multiPartIndexCoord>previousMultiIndex||geometryIndex>prevGeomIndex)return previousCoords=currentCoord,previousFeatureIndex=featureIndex,previousMultiIndex=multiPartIndexCoord,prevGeomIndex=geometryIndex,void(segmentIndex=0);var currentSegment=(0,_turf_helpers__WEBPACK_IMPORTED_MODULE_0__.Tu)([previousCoords,currentCoord],feature.properties);if(!1===callback(currentSegment,featureIndex,multiFeatureIndex,geometryIndex,segmentIndex))return!1;segmentIndex++,previousCoords=currentCoord}))&&void 0}}}))}(geojson,(function(currentSegment,featureIndex,multiFeatureIndex,geometryIndex,segmentIndex){previousValue=!1===started&&void 0===initialValue?currentSegment:callback(previousValue,currentSegment,featureIndex,multiFeatureIndex,geometryIndex,segmentIndex),started=!0})),previousValue}},"./node_modules/@turf/meta/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");function coordEach(geojson,callback,excludeWrapCoord){if(null!==geojson)for(var j,k,l,geometry,stopG,coords,geometryMaybeCollection,isGeometryCollection,wrapShrink=0,coordIndex=0,type=geojson.type,isFeatureCollection="FeatureCollection"===type,isFeature="Feature"===type,stop=isFeatureCollection?geojson.features.length:1,featureIndex=0;featureIndexpreviousFeatureIndex||multiPartIndexCoord>previousMultiIndex||geometryIndex>prevGeomIndex)return previousCoords=currentCoord,previousFeatureIndex=featureIndex,previousMultiIndex=multiPartIndexCoord,prevGeomIndex=geometryIndex,void(segmentIndex=0);var currentSegment=helpers.lineString([previousCoords,currentCoord],feature.properties);if(!1===callback(currentSegment,featureIndex,multiFeatureIndex,geometryIndex,segmentIndex))return!1;segmentIndex++,previousCoords=currentCoord}))&&void 0}}}))}function lineEach(geojson,callback){if(!geojson)throw new Error("geojson is required");flattenEach(geojson,(function(feature,featureIndex,multiFeatureIndex){if(null!==feature.geometry){var type=feature.geometry.type,coords=feature.geometry.coordinates;switch(type){case"LineString":if(!1===callback(feature,featureIndex,multiFeatureIndex,0,0))return!1;break;case"Polygon":for(var geometryIndex=0;geometryIndex0&&((intersectPt=intersect.features[0]).properties.dist=distance_1.default(pt,intersectPt,options),intersectPt.properties.location=length+distance_1.default(start,intersectPt,options)),start.properties.dist1?helpers_1.multiLineString(coords,properties):helpers_1.lineString(coords[0],properties)}exports.default=function default_1(poly,options){void 0===options&&(options={});var geom=invariant_1.getGeom(poly);switch(options.properties||"Feature"!==poly.type||(options.properties=poly.properties),geom.type){case"Polygon":return polygonToLine(geom,options);case"MultiPolygon":return multiPolygonToLine(geom,options);default:throw new Error("invalid poly")}},exports.polygonToLine=polygonToLine,exports.multiPolygonToLine=multiPolygonToLine,exports.coordsToLine=coordsToLine},"./node_modules/@turf/rewind/main.es.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function cloneFeature(geojson){var cloned={type:"Feature"};return Object.keys(geojson).forEach((function(key){switch(key){case"type":case"properties":case"geometry":return;default:cloned[key]=geojson[key]}})),cloned.properties=cloneProperties(geojson.properties),cloned.geometry=cloneGeometry(geojson.geometry),cloned}function cloneProperties(properties){var cloned={};return properties?(Object.keys(properties).forEach((function(key){var value=properties[key];"object"==typeof value?null===value?cloned[key]=null:value.length?cloned[key]=value.map((function(item){return item})):cloned[key]=cloneProperties(value):cloned[key]=value})),cloned):cloned}function cloneGeometry(geometry){var geom={type:geometry.type};return geometry.bbox&&(geom.bbox=geometry.bbox),"GeometryCollection"===geometry.type?(geom.geometries=geometry.geometries.map((function(geom){return cloneGeometry(geom)})),geom):(geom.coordinates=deepSlice(geometry.coordinates),geom)}function deepSlice(coords){return"object"!=typeof coords[0]?coords.slice():coords.map((function(coord){return deepSlice(coord)}))}__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return rewind_main_es}});var main_es=function clone(geojson){if(!geojson)throw new Error("geojson is required");switch(geojson.type){case"Feature":return cloneFeature(geojson);case"FeatureCollection":return function cloneFeatureCollection(geojson){var cloned={type:"FeatureCollection"};return Object.keys(geojson).forEach((function(key){switch(key){case"type":case"features":return;default:cloned[key]=geojson[key]}})),cloned.features=geojson.features.map((function(feature){return cloneFeature(feature)})),cloned}(geojson);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return cloneGeometry(geojson);default:throw new Error("unknown GeoJSON type")}};var boolean_clockwise_main_es=function booleanClockwise(line){if(!line)throw new Error("line is required");var type=line.geometry?line.geometry.type:line.type;if(!Array.isArray(line)&&"LineString"!==type)throw new Error("geometry must be a LineString");for(var prev,cur,ring=function getCoords(coords){if(!coords)throw new Error("coords is required");if("Feature"===coords.type&&null!==coords.geometry)return coords.geometry.coordinates;if(coords.coordinates)return coords.coordinates;if(Array.isArray(coords))return coords;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}(line),sum=0,i=1;i0};function main_es_featureCollection(features,options){if(!helpers_main_es_isObject(options=options||{}))throw new Error("options is invalid");var bbox=options.bbox,id=options.id;if(!features)throw new Error("No features passed");if(!Array.isArray(features))throw new Error("features must be an Array");bbox&&main_es_validateBBox(bbox),id&&main_es_validateId(id);var fc={type:"FeatureCollection"};return id&&(fc.id=id),bbox&&(fc.bbox=bbox),fc.features=features,fc}function helpers_main_es_isNumber(num){return!isNaN(num)&&null!==num&&!Array.isArray(num)}function helpers_main_es_isObject(input){return!!input&&input.constructor===Object}function main_es_validateBBox(bbox){if(!bbox)throw new Error("bbox is required");if(!Array.isArray(bbox))throw new Error("bbox must be an Array");if(4!==bbox.length&&6!==bbox.length)throw new Error("bbox must be an Array of 4 or 6 numbers");bbox.forEach((function(num){if(!helpers_main_es_isNumber(num))throw new Error("bbox must only contain numbers")}))}function main_es_validateId(id){if(!id)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof id))throw new Error("id must be a number or a string")}function featureEach(geojson,callback){if("Feature"===geojson.type)callback(geojson,0);else if("FeatureCollection"===geojson.type)for(var i=0;i is required");if("boolean"!=typeof reverse)throw new Error(" must be a boolean");if("boolean"!=typeof mutate)throw new Error(" must be a boolean");!1===mutate&&(geojson=main_es(geojson));var results=[];switch(geojson.type){case"GeometryCollection":return geomEach(geojson,(function(geometry){rewindFeature(geometry,reverse)})),geojson;case"FeatureCollection":return featureEach(geojson,(function(feature){featureEach(rewindFeature(feature,reverse),(function(result){results.push(result)}))})),main_es_featureCollection(results)}return rewindFeature(geojson,reverse)}},"./node_modules/@turf/rhumb-bearing/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js");function calculateRhumbBearing(from,to){var phi1=helpers_1.degreesToRadians(from[1]),phi2=helpers_1.degreesToRadians(to[1]),deltaLambda=helpers_1.degreesToRadians(to[0]-from[0]);deltaLambda>Math.PI&&(deltaLambda-=2*Math.PI),deltaLambda<-Math.PI&&(deltaLambda+=2*Math.PI);var deltaPsi=Math.log(Math.tan(phi2/2+Math.PI/4)/Math.tan(phi1/2+Math.PI/4)),theta=Math.atan2(deltaLambda,deltaPsi);return(helpers_1.radiansToDegrees(theta)+360)%360}exports.default=function rhumbBearing(start,end,options){var bear360;return void 0===options&&(options={}),(bear360=options.final?calculateRhumbBearing(invariant_1.getCoord(end),invariant_1.getCoord(start)):calculateRhumbBearing(invariant_1.getCoord(start),invariant_1.getCoord(end)))>180?-(360-bear360):bear360}},"./node_modules/@turf/rhumb-destination/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js");exports.default=function rhumbDestination(origin,distance,bearing,options){void 0===options&&(options={});var wasNegativeDistance=distance<0,distanceInMeters=helpers_1.convertLength(Math.abs(distance),options.units,"meters");wasNegativeDistance&&(distanceInMeters=-Math.abs(distanceInMeters));var coords=invariant_1.getCoord(origin),destination=function calculateRhumbDestination(origin,distance,bearing,radius){radius=void 0===radius?helpers_1.earthRadius:Number(radius);var delta=distance/radius,lambda1=origin[0]*Math.PI/180,phi1=helpers_1.degreesToRadians(origin[1]),theta=helpers_1.degreesToRadians(bearing),DeltaPhi=delta*Math.cos(theta),phi2=phi1+DeltaPhi;Math.abs(phi2)>Math.PI/2&&(phi2=phi2>0?Math.PI-phi2:-Math.PI-phi2);var DeltaPsi=Math.log(Math.tan(phi2/2+Math.PI/4)/Math.tan(phi1/2+Math.PI/4)),q=Math.abs(DeltaPsi)>1e-11?DeltaPhi/DeltaPsi:Math.cos(phi1),DeltaLambda=delta*Math.sin(theta)/q;return[(180*(lambda1+DeltaLambda)/Math.PI+540)%360-180,180*phi2/Math.PI]}(coords,distanceInMeters,bearing);return destination[0]+=destination[0]-coords[0]>180?-360:coords[0]-destination[0]>180?360:0,helpers_1.point(destination,options.properties)}},"./node_modules/@turf/rhumb-distance/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js");exports.default=function rhumbDistance(from,to,options){void 0===options&&(options={});var origin=invariant_1.getCoord(from),destination=invariant_1.getCoord(to);destination[0]+=destination[0]-origin[0]>180?-360:origin[0]-destination[0]>180?360:0;var distanceInMeters=function calculateRhumbDistance(origin,destination,radius){var R=radius=void 0===radius?helpers_1.earthRadius:Number(radius),phi1=origin[1]*Math.PI/180,phi2=destination[1]*Math.PI/180,DeltaPhi=phi2-phi1,DeltaLambda=Math.abs(destination[0]-origin[0])*Math.PI/180;DeltaLambda>Math.PI&&(DeltaLambda-=2*Math.PI);var DeltaPsi=Math.log(Math.tan(phi2/2+Math.PI/4)/Math.tan(phi1/2+Math.PI/4)),q=Math.abs(DeltaPsi)>1e-11?DeltaPhi/DeltaPsi:Math.cos(phi1);return Math.sqrt(DeltaPhi*DeltaPhi+q*q*DeltaLambda*DeltaLambda)*R}(origin,destination);return helpers_1.convertLength(distanceInMeters,"meters",options.units)}},"./node_modules/@turf/simplify/dist/es/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return simplify_dist_es}});var es=__webpack_require__("./node_modules/@turf/helpers/dist/es/index.js");function getCoords(coords){if(Array.isArray(coords))return coords;if("Feature"===coords.type){if(null!==coords.geometry)return coords.geometry.coordinates}else if(coords.coordinates)return coords.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function cleanLine(line){var points=getCoords(line);if(2===points.length&&!equals(points[0],points[1]))return points;var newPoints=[],secondToLast=points.length-1,newPointsLength=newPoints.length;newPoints.push(points[0]);for(var i=1;i2&&isPointOnLineSegment(newPoints[newPointsLength-3],newPoints[newPointsLength-1],newPoints[newPointsLength-2])&&newPoints.splice(newPoints.length-2,1))}if(newPoints.push(points[points.length-1]),newPointsLength=newPoints.length,equals(points[0],points[points.length-1])&&newPointsLength<4)throw new Error("invalid polygon");return isPointOnLineSegment(newPoints[newPointsLength-3],newPoints[newPointsLength-1],newPoints[newPointsLength-2])&&newPoints.splice(newPoints.length-2,1),newPoints}function equals(pt1,pt2){return pt1[0]===pt2[0]&&pt1[1]===pt2[1]}function isPointOnLineSegment(start,end,point){var x=point[0],y=point[1],startX=start[0],startY=start[1],endX=end[0],endY=end[1],dxl=endX-startX,dyl=endY-startY;return 0===(x-startX)*dyl-(y-startY)*dxl&&(Math.abs(dxl)>=Math.abs(dyl)?dxl>0?startX<=x&&x<=endX:endX<=x&&x<=startX:dyl>0?startY<=y&&y<=endY:endY<=y&&y<=startY)}var dist_es=function cleanCoords(geojson,options){void 0===options&&(options={});var mutate="object"==typeof options?options.mutate:options;if(!geojson)throw new Error("geojson is required");var type=function getType(geojson,_name){return"FeatureCollection"===geojson.type?"FeatureCollection":"GeometryCollection"===geojson.type?"GeometryCollection":"Feature"===geojson.type&&null!==geojson.geometry?geojson.geometry.type:geojson.type}(geojson),newCoords=[];switch(type){case"LineString":newCoords=cleanLine(geojson);break;case"MultiLineString":case"Polygon":getCoords(geojson).forEach((function(line){newCoords.push(cleanLine(line))}));break;case"MultiPolygon":getCoords(geojson).forEach((function(polygons){var polyPoints=[];polygons.forEach((function(ring){polyPoints.push(cleanLine(ring))})),newCoords.push(polyPoints)}));break;case"Point":return geojson;case"MultiPoint":var existing={};getCoords(geojson).forEach((function(coord){var key=coord.join("-");Object.prototype.hasOwnProperty.call(existing,key)||(newCoords.push(coord),existing[key]=!0)}));break;default:throw new Error(type+" geometry not supported")}return geojson.coordinates?!0===mutate?(geojson.coordinates=newCoords,geojson):{type:type,coordinates:newCoords}:!0===mutate?(geojson.geometry.coordinates=newCoords,geojson):(0,es.zL)({type:type,coordinates:newCoords},geojson.properties,{bbox:geojson.bbox,id:geojson.id})};function cloneFeature(geojson){var cloned={type:"Feature"};return Object.keys(geojson).forEach((function(key){switch(key){case"type":case"properties":case"geometry":return;default:cloned[key]=geojson[key]}})),cloned.properties=cloneProperties(geojson.properties),cloned.geometry=cloneGeometry(geojson.geometry),cloned}function cloneProperties(properties){var cloned={};return properties?(Object.keys(properties).forEach((function(key){var value=properties[key];"object"==typeof value?null===value?cloned[key]=null:Array.isArray(value)?cloned[key]=value.map((function(item){return item})):cloned[key]=cloneProperties(value):cloned[key]=value})),cloned):cloned}function cloneGeometry(geometry){var geom={type:geometry.type};return geometry.bbox&&(geom.bbox=geometry.bbox),"GeometryCollection"===geometry.type?(geom.geometries=geometry.geometries.map((function(g){return cloneGeometry(g)})),geom):(geom.coordinates=deepSlice(geometry.coordinates),geom)}function deepSlice(coords){var cloned=coords;return"object"!=typeof cloned[0]?cloned.slice():cloned.map((function(coord){return deepSlice(coord)}))}var clone_dist_es=function clone(geojson){if(!geojson)throw new Error("geojson is required");switch(geojson.type){case"Feature":return cloneFeature(geojson);case"FeatureCollection":return function cloneFeatureCollection(geojson){var cloned={type:"FeatureCollection"};return Object.keys(geojson).forEach((function(key){switch(key){case"type":case"features":return;default:cloned[key]=geojson[key]}})),cloned.features=geojson.features.map((function(feature){return cloneFeature(feature)})),cloned}(geojson);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return cloneGeometry(geojson);default:throw new Error("unknown GeoJSON type")}},meta_dist_es=__webpack_require__("./node_modules/@turf/meta/dist/es/index.js");function getSqSegDist(p,p1,p2){var x=p1.x,y=p1.y,dx=p2.x-x,dy=p2.y-y;if(0!==dx||0!==dy){var t=((p.x-x)*dx+(p.y-y)*dy)/(dx*dx+dy*dy);t>1?(x=p2.x,y=p2.y):t>0&&(x+=dx*t,y+=dy*t)}return(dx=p.x-x)*dx+(dy=p.y-y)*dy}function simplifyDPStep(points,first,last,sqTolerance,simplified){for(var index,maxSqDist=sqTolerance,i=first+1;imaxSqDist&&(index=i,maxSqDist=sqDist)}maxSqDist>sqTolerance&&(index-first>1&&simplifyDPStep(points,first,index,sqTolerance,simplified),simplified.push(points[index]),last-index>1&&simplifyDPStep(points,index,last,sqTolerance,simplified))}function simplifyDouglasPeucker(points,sqTolerance){var last=points.length-1,simplified=[points[0]];return simplifyDPStep(points,0,last,sqTolerance,simplified),simplified.push(points[last]),simplified}function simplify(points,tolerance,highestQuality){if(points.length<=2)return points;var sqTolerance=void 0!==tolerance?tolerance*tolerance:1;return points=highestQuality?points:function simplifyRadialDist(points,sqTolerance){for(var point,p1,p2,dx,dy,prevPoint=points[0],newPoints=[prevPoint],i=1,len=points.length;isqTolerance&&(newPoints.push(point),prevPoint=point);return prevPoint!==point&&newPoints.push(point),newPoints}(points,sqTolerance),points=simplifyDouglasPeucker(points,sqTolerance)}function simplifyLine(coordinates,tolerance,highQuality){return simplify(coordinates.map((function(coord){return{x:coord[0],y:coord[1],z:coord[2]}})),tolerance,highQuality).map((function(coords){return coords.z?[coords.x,coords.y,coords.z]:[coords.x,coords.y]}))}function simplifyPolygon(coordinates,tolerance,highQuality){return coordinates.map((function(ring){var pts=ring.map((function(coord){return{x:coord[0],y:coord[1]}}));if(pts.length<4)throw new Error("invalid polygon");for(var simpleRing=simplify(pts,tolerance,highQuality).map((function(coords){return[coords.x,coords.y]}));!checkValidity(simpleRing);)simpleRing=simplify(pts,tolerance-=.01*tolerance,highQuality).map((function(coords){return[coords.x,coords.y]}));return simpleRing[simpleRing.length-1][0]===simpleRing[0][0]&&simpleRing[simpleRing.length-1][1]===simpleRing[0][1]||simpleRing.push(simpleRing[0]),simpleRing}))}function checkValidity(ring){return!(ring.length<3)&&!(3===ring.length&&ring[2][0]===ring[0][0]&&ring[2][1]===ring[0][1])}var simplify_dist_es=function simplify$1(geojson,options){if(options=options||{},!(0,es.Kn)(options))throw new Error("options is invalid");var tolerance=void 0!==options.tolerance?options.tolerance:1,highQuality=options.highQuality||!1,mutate=options.mutate||!1;if(!geojson)throw new Error("geojson is required");if(tolerance&&tolerance<0)throw new Error("invalid tolerance");return!0!==mutate&&(geojson=clone_dist_es(geojson)),(0,meta_dist_es.on)(geojson,(function(geom){!function simplifyGeom(geometry,tolerance,highQuality){var type=geometry.type;if("Point"===type||"MultiPoint"===type)return geometry;dist_es(geometry,!0);var coordinates=geometry.coordinates;switch(type){case"LineString":geometry.coordinates=simplifyLine(coordinates,tolerance,highQuality);break;case"MultiLineString":geometry.coordinates=coordinates.map((function(lines){return simplifyLine(lines,tolerance,highQuality)}));break;case"Polygon":geometry.coordinates=simplifyPolygon(coordinates,tolerance,highQuality);break;case"MultiPolygon":geometry.coordinates=coordinates.map((function(rings){return simplifyPolygon(rings,tolerance,highQuality)}))}return geometry}(geom,tolerance,highQuality)})),geojson}},"./node_modules/@turf/transform-rotate/dist/js/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var centroid=__webpack_require__("./node_modules/@turf/centroid/dist/js/index.js"),rhumbBearing=__webpack_require__("./node_modules/@turf/rhumb-bearing/dist/js/index.js"),rhumbDistance=__webpack_require__("./node_modules/@turf/rhumb-distance/dist/js/index.js"),rhumbDestination=__webpack_require__("./node_modules/@turf/rhumb-destination/dist/js/index.js"),clone=__webpack_require__("./node_modules/@turf/clone/dist/js/index.js"),meta=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),invariant=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var centroid__default=_interopDefaultLegacy(centroid),rhumbBearing__default=_interopDefaultLegacy(rhumbBearing),rhumbDistance__default=_interopDefaultLegacy(rhumbDistance),rhumbDestination__default=_interopDefaultLegacy(rhumbDestination),clone__default=_interopDefaultLegacy(clone);function transformRotate(geojson,angle,options){if(options=options||{},!helpers.isObject(options))throw new Error("options is invalid");var pivot=options.pivot,mutate=options.mutate;if(!geojson)throw new Error("geojson is required");if(null==angle||isNaN(angle))throw new Error("angle is required");return 0===angle||(pivot||(pivot=centroid__default.default(geojson)),!1!==mutate&&void 0!==mutate||(geojson=clone__default.default(geojson)),meta.coordEach(geojson,(function(pointCoords){var finalAngle=rhumbBearing__default.default(pivot,pointCoords)+angle,distance=rhumbDistance__default.default(pivot,pointCoords),newCoords=invariant.getCoords(rhumbDestination__default.default(pivot,distance,finalAngle));pointCoords[0]=newCoords[0],pointCoords[1]=newCoords[1]}))),geojson}module.exports=transformRotate,module.exports.default=transformRotate},"./node_modules/@turf/transform-scale/dist/js/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var clone=__webpack_require__("./node_modules/@turf/clone/dist/js/index.js"),center=__webpack_require__("./node_modules/@turf/center/dist/js/index.js"),centroid=__webpack_require__("./node_modules/@turf/centroid/dist/js/index.js"),turfBBox=__webpack_require__("./node_modules/@turf/bbox/dist/js/index.js"),rhumbBearing=__webpack_require__("./node_modules/@turf/rhumb-bearing/dist/js/index.js"),rhumbDistance=__webpack_require__("./node_modules/@turf/rhumb-distance/dist/js/index.js"),rhumbDestination=__webpack_require__("./node_modules/@turf/rhumb-destination/dist/js/index.js"),meta=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var clone__default=_interopDefaultLegacy(clone),center__default=_interopDefaultLegacy(center),centroid__default=_interopDefaultLegacy(centroid),turfBBox__default=_interopDefaultLegacy(turfBBox),rhumbBearing__default=_interopDefaultLegacy(rhumbBearing),rhumbDistance__default=_interopDefaultLegacy(rhumbDistance),rhumbDestination__default=_interopDefaultLegacy(rhumbDestination);function transformScale(geojson,factor,options){if(options=options||{},!helpers.isObject(options))throw new Error("options is invalid");var origin=options.origin,mutate=options.mutate;if(!geojson)throw new Error("geojson required");if("number"!=typeof factor||0===factor)throw new Error("invalid factor");var originIsPoint=Array.isArray(origin)||"object"==typeof origin;return!0!==mutate&&(geojson=clone__default.default(geojson)),"FeatureCollection"!==geojson.type||originIsPoint?scale(geojson,factor,origin):(meta.featureEach(geojson,(function(feature,index){geojson.features[index]=scale(feature,factor,origin)})),geojson)}function scale(feature,factor,origin){var isPoint="Point"===invariant.getType(feature);return origin=function defineOrigin(geojson,origin){null==origin&&(origin="centroid");if(Array.isArray(origin)||"object"==typeof origin)return invariant.getCoord(origin);var bbox=geojson.bbox?geojson.bbox:turfBBox__default.default(geojson),west=bbox[0],south=bbox[1],east=bbox[2],north=bbox[3];switch(origin){case"sw":case"southwest":case"westsouth":case"bottomleft":return helpers.point([west,south]);case"se":case"southeast":case"eastsouth":case"bottomright":return helpers.point([east,south]);case"nw":case"northwest":case"westnorth":case"topleft":return helpers.point([west,north]);case"ne":case"northeast":case"eastnorth":case"topright":return helpers.point([east,north]);case"center":return center__default.default(geojson);case void 0:case null:case"centroid":return centroid__default.default(geojson);default:throw new Error("invalid origin")}}(feature,origin),1===factor||isPoint||meta.coordEach(feature,(function(coord){var originalDistance=rhumbDistance__default.default(origin,coord),bearing=rhumbBearing__default.default(origin,coord),newDistance=originalDistance*factor,newCoord=invariant.getCoords(rhumbDestination__default.default(origin,newDistance,bearing));coord[0]=newCoord[0],coord[1]=newCoord[1],3===coord.length&&(coord[2]*=factor)})),feature}module.exports=transformScale,module.exports.default=transformScale},"./node_modules/@turf/transform-translate/dist/js/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var meta=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),clone=__webpack_require__("./node_modules/@turf/clone/dist/js/index.js"),rhumbDestination=__webpack_require__("./node_modules/@turf/rhumb-destination/dist/js/index.js");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var clone__default=_interopDefaultLegacy(clone),rhumbDestination__default=_interopDefaultLegacy(rhumbDestination);function transformTranslate(geojson,distance,direction,options){if(options=options||{},!helpers.isObject(options))throw new Error("options is invalid");var units=options.units,zTranslation=options.zTranslation,mutate=options.mutate;if(!geojson)throw new Error("geojson is required");if(null==distance||isNaN(distance))throw new Error("distance is required");if(zTranslation&&"number"!=typeof zTranslation&&isNaN(zTranslation))throw new Error("zTranslation is not a number");if(zTranslation=void 0!==zTranslation?zTranslation:0,0===distance&&0===zTranslation)return geojson;if(null==direction||isNaN(direction))throw new Error("direction is required");return distance<0&&(distance=-distance,direction+=180),!1!==mutate&&void 0!==mutate||(geojson=clone__default.default(geojson)),meta.coordEach(geojson,(function(pointCoords){var newCoords=invariant.getCoords(rhumbDestination__default.default(pointCoords,distance,direction,{units:units}));pointCoords[0]=newCoords[0],pointCoords[1]=newCoords[1],zTranslation&&3===pointCoords.length&&(pointCoords[2]+=zTranslation)})),geojson}module.exports=transformTranslate,module.exports.default=transformTranslate},"./node_modules/@turf/union/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var polygon_clipping_1=__importDefault(__webpack_require__("./node_modules/polygon-clipping/dist/polygon-clipping.umd.js")),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");exports.default=function union(poly1,poly2,options){void 0===options&&(options={});var geom1=invariant_1.getGeom(poly1),geom2=invariant_1.getGeom(poly2),unioned=polygon_clipping_1.default.union(geom1.coordinates,geom2.coordinates);return 0===unioned.length?null:1===unioned.length?helpers_1.polygon(unioned[0],options.properties):helpers_1.multiPolygon(unioned,options.properties)}},"./node_modules/@vivaxy/png/lib/decode/decode-idat.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const pako=__webpack_require__("./node_modules/pako/index.js"),color_types_1=__webpack_require__("./node_modules/@vivaxy/png/lib/helpers/color-types.js"),filters_1=__webpack_require__("./node_modules/@vivaxy/png/lib/helpers/filters.js"),rescale_sample_1=__webpack_require__("./node_modules/@vivaxy/png/lib/helpers/rescale-sample.js"),channels_1=__webpack_require__("./node_modules/@vivaxy/png/lib/helpers/channels.js"),interlace_1=__webpack_require__("./node_modules/@vivaxy/png/lib/helpers/interlace.js");exports.default=function decodeIDAT(deflatedData,interlace,colorType,width,height,depth,palette,transparent){let pixels=[];const inflatedData=pako.inflate(deflatedData),images=interlace_1.buildImages(interlace,width,height),bitPerPixel=color_types_1.COLOR_TYPES_TO_CHANNEL_PER_PIXEL[colorType]*depth,bytePerPixel=bitPerPixel>>3||1;let dataIndex=0,prevUnfilteredLine=new Uint8Array;for(let imageIndex=0;imageIndex>3)+filters_1.FILTER_LENGTH,filterType=inflatedData[dataIndex];if(!(filterType in filters_1.FILTER_TYPES))throw new Error("Unsupported filter type: "+filterType);const unfilteredLine=(0,filters_1.unfilters[filterType])(inflatedData.slice(dataIndex+1,dataIndex+scanlineWidth),bytePerPixel,prevUnfilteredLine);prevUnfilteredLine=unfilteredLine;let channelIndex=0;const channels=channels_1.typedArrayToChannels(unfilteredLine,depth);function getPixelFromChannels(){if(colorType===color_types_1.COLOR_TYPES.GRAYSCALE){const color=rescale_sample_1.default(channels[channelIndex++],depth,8);return[color,color,color,255]}if(colorType===color_types_1.COLOR_TYPES.TRUE_COLOR)return[rescale_sample_1.default(channels[channelIndex++],depth,8),rescale_sample_1.default(channels[channelIndex++],depth,8),rescale_sample_1.default(channels[channelIndex++],depth,8),255];if(colorType===color_types_1.COLOR_TYPES.PALETTE){const paletteIndex=channels[channelIndex++];if(!palette)throw new Error("Mising chunk: PLTE");return palette[paletteIndex]}if(colorType===color_types_1.COLOR_TYPES.GRAYSCALE_WITH_ALPHA){const color=rescale_sample_1.default(channels[channelIndex++],depth,8);return[color,color,color,rescale_sample_1.default(channels[channelIndex++],depth,8)]}if(colorType===color_types_1.COLOR_TYPES.TRUE_COLOR_WITH_ALPHA)return[rescale_sample_1.default(channels[channelIndex++],depth,8),rescale_sample_1.default(channels[channelIndex++],depth,8),rescale_sample_1.default(channels[channelIndex++],depth,8),rescale_sample_1.default(channels[channelIndex++],depth,8)];throw new Error("Unsupported color type: "+colorType)}for(let widthIndex=0;widthIndex>3||1,images=interlace_1.buildImages(interlace,width,height);for(let imageIndex=0;imageIndex>3)+filters_1.FILTER_LENGTH;for(let heightIndex=0;heightIndex>24&255,value>>16&255,value>>8&255,255&value])}function packUInt8(value){return new Uint8Array([255&value])}function packString(name){const data=new Uint8Array(name.length);for(let i=0;i>8&255,data[1]=255&year,data[2]=date.getUTCMonth()+1,data[3]=date.getUTCDate(),data[4]=date.getUTCHours(),data[5]=date.getUTCMinutes(),data[6]=date.getUTCSeconds(),data},sRGB:function packSRGB(){if(void 0!==metadata.sRGB)return packUInt8(metadata.sRGB);return new Uint8Array},pHYs:function packPHYS(){let data=new Uint8Array;metadata.physicalDimensions&&(data=typed_array_1.concatUInt8Array(data,packUInt32BE(metadata.physicalDimensions.pixelPerUnitX)),data=typed_array_1.concatUInt8Array(data,packUInt32BE(metadata.physicalDimensions.pixelPerUnitY)),data=typed_array_1.concatUInt8Array(data,packUInt8(metadata.physicalDimensions.unit)));return data},sPLT:function packSPLT(){if(!metadata.suggestedPalette)return new Uint8Array;let data=typed_array_1.concatUInt8Array(packString(metadata.suggestedPalette.name),packUInt8(0));data=typed_array_1.concatUInt8Array(data,packUInt8(metadata.suggestedPalette.depth));for(let i=0;i>8&255,255&palette[4]]);data=typed_array_1.concatUInt8Array(data,paletteData)}else if(16===metadata.suggestedPalette.depth){const paletteData=new Uint8Array(10);for(let i=0;i<5;i++)paletteData[2*i]=palette[i]>>8&255,paletteData[2*i+1]=255&palette[i];data=typed_array_1.concatUInt8Array(data,paletteData)}}return data},iCCP:function packICCP(){if(!metadata.icc)return new Uint8Array;let data=packString(metadata.icc.name);return data=typed_array_1.concatUInt8Array(data,packUInt8(0)),data=typed_array_1.concatUInt8Array(data,packUInt8(0)),data=typed_array_1.concatUInt8Array(data,pako.deflate(metadata.icc.profile)),data},sBIT:function packSBIT(){if(!metadata.significantBits)return new Uint8Array;if(metadata.colorType===color_types_1.COLOR_TYPES.GRAYSCALE)return packUInt8(metadata.significantBits[0]);if(metadata.colorType===color_types_1.COLOR_TYPES.TRUE_COLOR||metadata.colorType===color_types_1.COLOR_TYPES.PALETTE){const data=new Uint8Array(3);for(let i=0;i<3;i++)data[i]=metadata.significantBits[i];return data}if(metadata.colorType===color_types_1.COLOR_TYPES.GRAYSCALE_WITH_ALPHA)return typed_array_1.concatUInt8Array(packUInt8(metadata.significantBits[0]),packUInt8(metadata.significantBits[3]));if(metadata.colorType===color_types_1.COLOR_TYPES.TRUE_COLOR_WITH_ALPHA){const data=new Uint8Array(4);for(let i=0;i<4;i++)data[i]=metadata.significantBits[i];return data}return new Uint8Array},gAMA:function packGAMA(){if(void 0!==metadata.gamma)return packUInt32BE(metadata.gamma*gamma_1.GAMMA_DIVISION);return new Uint8Array},cHRM:function packCHRM(){if(!metadata.chromaticities)return new Uint8Array;const{chromaticities:chromaticities}=metadata;let data=new Uint8Array;return["white","red","green","blue"].forEach((function(color){["x","y"].forEach((function(axis){data=typed_array_1.concatUInt8Array(data,packUInt32BE(chromaticities[color][axis]*chromaticities_1.CHROMATICITIES_DIVISION))}))})),data},PLTE:function packPLTE(){const data=[];if(metadata.palette)for(let i=0;i>8&255,255&color)}}else if(metadata.colorType===color_types_1.COLOR_TYPES.TRUE_COLOR){if(metadata.transparent)for(let i=0;i<3;i++){const color=rescale_sample_1.default(metadata.transparent[i],8,metadata.depth);data.push(color>>8&255,255&color)}}else if(metadata.colorType===color_types_1.COLOR_TYPES.PALETTE){if(!metadata.palette)throw new Error("Palette is required");const{palette:palette}=metadata;let transparent=!1;for(let i=0;i>8&255,255&value)}));return new Uint8Array},bKGD:function packBKGD(){if(!metadata.background)return new Uint8Array;if((3&metadata.colorType)===color_types_1.COLOR_TYPES.GRAYSCALE){return function packUInt16BE(value){return new Uint8Array([value>>8&255,255&value])}(rescale_sample_1.default(metadata.background[0],8,metadata.depth))}if((3&metadata.colorType)===color_types_1.COLOR_TYPES.TRUE_COLOR){const data=new Uint8Array(6);for(let i=0;i<3;i++){const color=rescale_sample_1.default(metadata.background[i],8,metadata.depth);data[2*i]=color>>8&255,data[2*i+1]=255&color}return data}if(metadata.colorType===color_types_1.COLOR_TYPES.PALETTE){if(!metadata.palette)throw new Error("Missing chunk: PLTE");let index=-1;for(let paletteIndex=0;paletteIndex0||"IEND"===chunkName)&&addChunk(chunkName,data)})),typedArray}},"./node_modules/@vivaxy/png/lib/helpers/channels.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.typedArrayToChannels=function typedArrayToChannels(typedArray,depth){const channels=[];let typedArrayIndex=0;for(;typedArrayIndex>7&1,uint8>>6&1,uint8>>5&1,uint8>>4&1,uint8>>3&1,uint8>>2&1,uint8>>1&1,1&uint8)}else if(2===depth){const uint8=typedArray[typedArrayIndex++];channels.push(uint8>>6&3,uint8>>4&3,uint8>>2&3,3&uint8)}else if(4===depth){const uint8=typedArray[typedArrayIndex++];channels.push(uint8>>4&15,15&uint8)}else if(8===depth){const uint8=typedArray[typedArrayIndex++];channels.push(uint8)}else{if(16!==depth)throw new Error("Unsupported depth: "+depth);channels.push(typedArray[typedArrayIndex++]<<8|typedArray[typedArrayIndex++])}return channels},exports.channelsToTypedArray=function channelsToTypedArray(channels,depth,dataLength){const typedArray=new Uint8Array(dataLength);let typedArrayIndex=0,channelIndex=0;for(;channelIndex>8&255,typedArray[typedArrayIndex++]=255&channel}}return typedArray}},"./node_modules/@vivaxy/png/lib/helpers/chromaticities.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CHROMATICITIES_DIVISION=1e5},"./node_modules/@vivaxy/png/lib/helpers/color-types.js":function(__unused_webpack_module,exports){"use strict";var COLOR_TYPES;Object.defineProperty(exports,"__esModule",{value:!0}),function(COLOR_TYPES){COLOR_TYPES[COLOR_TYPES.GRAYSCALE=0]="GRAYSCALE",COLOR_TYPES[COLOR_TYPES.TRUE_COLOR=2]="TRUE_COLOR",COLOR_TYPES[COLOR_TYPES.PALETTE=3]="PALETTE",COLOR_TYPES[COLOR_TYPES.GRAYSCALE_WITH_ALPHA=4]="GRAYSCALE_WITH_ALPHA",COLOR_TYPES[COLOR_TYPES.TRUE_COLOR_WITH_ALPHA=6]="TRUE_COLOR_WITH_ALPHA"}(COLOR_TYPES=exports.COLOR_TYPES||(exports.COLOR_TYPES={})),exports.COLOR_TYPES_TO_CHANNEL_PER_PIXEL={[COLOR_TYPES.GRAYSCALE]:1,[COLOR_TYPES.TRUE_COLOR]:3,[COLOR_TYPES.PALETTE]:1,[COLOR_TYPES.GRAYSCALE_WITH_ALPHA]:2,[COLOR_TYPES.TRUE_COLOR_WITH_ALPHA]:4}},"./node_modules/@vivaxy/png/lib/helpers/crc32.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const crcTable=[];for(let i=0;i<256;i++){let currentCrc=i;for(let j=0;j<8;j++)1¤tCrc?currentCrc=3988292384^currentCrc>>>1:currentCrc>>>=1;crcTable[i]=currentCrc}exports.default=function crc32(buf){let crc=-1;for(let i=0;i>>8;return-1^crc}},"./node_modules/@vivaxy/png/lib/helpers/filters.js":function(__unused_webpack_module,exports){"use strict";var FILTER_TYPES;function paeth(left,above,upperLeft){const p=left+above-upperLeft,pa=Math.abs(p-left),pb=Math.abs(p-above),pc=Math.abs(p-upperLeft);return pa<=pb&&pa<=pc?left:pb<=pc?above:upperLeft}Object.defineProperty(exports,"__esModule",{value:!0}),exports.FILTER_LENGTH=1,function(FILTER_TYPES){FILTER_TYPES[FILTER_TYPES.NONE=0]="NONE",FILTER_TYPES[FILTER_TYPES.SUB=1]="SUB",FILTER_TYPES[FILTER_TYPES.UP=2]="UP",FILTER_TYPES[FILTER_TYPES.AVERAGE=3]="AVERAGE",FILTER_TYPES[FILTER_TYPES.PAETH=4]="PAETH"}(FILTER_TYPES=exports.FILTER_TYPES||(exports.FILTER_TYPES={})),exports.unfilters={[FILTER_TYPES.NONE](data){return data},[FILTER_TYPES.SUB](data,bytePerPixel){const unfiltered=new Uint8Array(data.length);for(let i=0;i>1;unfilteredLine[i]=data[i]+avg}return unfilteredLine},[FILTER_TYPES.PAETH](data,bytePerPixel,prevUnfilteredLine){const unfilteredLine=new Uint8Array(data.length);for(let i=0;i>1;filtered[i]=data[i]-avg,sum+=filtered[i]}return{sum:sum,filtered:filtered}},[FILTER_TYPES.PAETH](data,bytePerPixel,prevUnfilteredLine){let sum=0;const filtered=new Uint8Array(data.length);for(let i=0;i>3;let passWidth=(width-remainingX>>3)*x.length;for(let i=0;i>6|192;else{if(c>55295&&c<56320){if(++ci>=string.length)throw new Error("UTF-8 encode: incomplete surrogate pair");const c2=string.charCodeAt(ci);if(c2<56320||c2>57343)throw new Error("UTF-8 encode: second surrogate character 0x"+c2.toString(16)+" at index "+ci+" out of range");c=65536+((1023&c)<<10)+(1023&c2),bytes[i++]=c>>18|240,bytes[i++]=c>>12&63|128}else bytes[i++]=c>>12|224;bytes[i++]=c>>6&63|128}bytes[i++]=63&c|128}}return bytes.subarray(0,i)},exports.decode=function decode(bytes){let i=0,s="";for(;i127)if(c>191&&c<224){if(i>=bytes.length)throw new Error("UTF-8 decode: incomplete 2-byte sequence");c=(31&c)<<6|63&bytes[i++]}else if(c>223&&c<240){if(i+1>=bytes.length)throw new Error("UTF-8 decode: incomplete 3-byte sequence");c=(15&c)<<12|(63&bytes[i++])<<6|63&bytes[i++]}else{if(!(c>239&&c<248))throw new Error("UTF-8 decode: unknown multibyte start 0x"+c.toString(16)+" at index "+(i-1));if(i+2>=bytes.length)throw new Error("UTF-8 decode: incomplete 4-byte sequence");c=(7&c)<<18|(63&bytes[i++])<<12|(63&bytes[i++])<<6|63&bytes[i++]}if(c<=65535)s+=String.fromCharCode(c);else{if(!(c<=1114111))throw new Error("UTF-8 decode: code point 0x"+c.toString(16)+" exceeds UTF-16 reach");c-=65536,s+=String.fromCharCode(c>>10|55296),s+=String.fromCharCode(1023&c|56320)}}return s}},"./node_modules/@vivaxy/png/lib/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";const decode_1=__webpack_require__("./node_modules/@vivaxy/png/lib/decode/index.js");exports.Jx=decode_1.default;__webpack_require__("./node_modules/@vivaxy/png/lib/encode/index.js").default},"./node_modules/complex.js/complex.js":function(module,exports){var __WEBPACK_AMD_DEFINE_RESULT__;!function(root){"use strict";var cosh=Math.cosh||function(x){return Math.abs(x)<1e-9?1-x:.5*(Math.exp(x)+Math.exp(-x))},sinh=Math.sinh||function(x){return Math.abs(x)<1e-9?x:.5*(Math.exp(x)-Math.exp(-x))},parser_exit=function(){throw SyntaxError("Invalid Param")};function logHypot(a,b){var _a=Math.abs(a),_b=Math.abs(b);return 0===a?Math.log(_b):0===b?Math.log(_a):_a<3e3&&_b<3e3?.5*Math.log(a*a+b*b):(a/=2,b/=2,.5*Math.log(a*a+b*b)+Math.LN2)}function Complex(a,b){if(!(this instanceof Complex))return new Complex(a,b);var z=function(a,b){var z={re:0,im:0};if(null==a)z.re=z.im=0;else if(void 0!==b)z.re=a,z.im=b;else switch(typeof a){case"object":if("im"in a&&"re"in a)z.re=a.re,z.im=a.im;else if("abs"in a&&"arg"in a){if(!Number.isFinite(a.abs)&&Number.isFinite(a.arg))return Complex.INFINITY;z.re=a.abs*Math.cos(a.arg),z.im=a.abs*Math.sin(a.arg)}else if("r"in a&&"phi"in a){if(!Number.isFinite(a.r)&&Number.isFinite(a.phi))return Complex.INFINITY;z.re=a.r*Math.cos(a.phi),z.im=a.r*Math.sin(a.phi)}else 2===a.length?(z.re=a[0],z.im=a[1]):parser_exit();break;case"string":z.im=z.re=0;var tokens=a.match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),plus=1,minus=0;null===tokens&&parser_exit();for(var i=0;i0&&parser_exit();break;case"number":z.im=0,z.re=a;break;default:parser_exit()}return isNaN(z.re)||isNaN(z.im),z}(a,b);this.re=z.re,this.im=z.im}Complex.prototype={re:0,im:0,sign:function(){var abs=this.abs();return new Complex(this.re/abs,this.im/abs)},add:function(a,b){var z=new Complex(a,b);return this.isInfinite()&&z.isInfinite()?Complex.NAN:this.isInfinite()||z.isInfinite()?Complex.INFINITY:new Complex(this.re+z.re,this.im+z.im)},sub:function(a,b){var z=new Complex(a,b);return this.isInfinite()&&z.isInfinite()?Complex.NAN:this.isInfinite()||z.isInfinite()?Complex.INFINITY:new Complex(this.re-z.re,this.im-z.im)},mul:function(a,b){var z=new Complex(a,b);return this.isInfinite()&&z.isZero()||this.isZero()&&z.isInfinite()?Complex.NAN:this.isInfinite()||z.isInfinite()?Complex.INFINITY:0===z.im&&0===this.im?new Complex(this.re*z.re,0):new Complex(this.re*z.re-this.im*z.im,this.re*z.im+this.im*z.re)},div:function(a,b){var z=new Complex(a,b);if(this.isZero()&&z.isZero()||this.isInfinite()&&z.isInfinite())return Complex.NAN;if(this.isInfinite()||z.isZero())return Complex.INFINITY;if(this.isZero()||z.isInfinite())return Complex.ZERO;a=this.re,b=this.im;var t,x,c=z.re,d=z.im;return 0===d?new Complex(a/c,b/c):Math.abs(c)0)return new Complex(Math.pow(a,z.re),0);if(0===a)switch((z.re%4+4)%4){case 0:return new Complex(Math.pow(b,z.re),0);case 1:return new Complex(0,Math.pow(b,z.re));case 2:return new Complex(-Math.pow(b,z.re),0);case 3:return new Complex(0,-Math.pow(b,z.re))}}if(0===a&&0===b&&z.re>0&&z.im>=0)return Complex.ZERO;var arg=Math.atan2(b,a),loh=logHypot(a,b);return a=Math.exp(z.re*loh-z.im*arg),b=z.im*loh+z.re*arg,new Complex(a*Math.cos(b),a*Math.sin(b))},sqrt:function(){var re,im,a=this.re,b=this.im,r=this.abs();if(a>=0){if(0===b)return new Complex(Math.sqrt(a),0);re=.5*Math.sqrt(2*(r+a))}else re=Math.abs(b)/Math.sqrt(2*(r-a));return im=a<=0?.5*Math.sqrt(2*(r-a)):Math.abs(b)/Math.sqrt(2*(r+a)),new Complex(re,b<0?-im:im)},exp:function(){var tmp=Math.exp(this.re);return this.im,new Complex(tmp*Math.cos(this.im),tmp*Math.sin(this.im))},expm1:function(){var a=this.re,b=this.im;return new Complex(Math.expm1(a)*Math.cos(b)+function(x){var b=Math.PI/4;if(-b>x||x>b)return Math.cos(x)-1;var xx=x*x;return xx*(xx*(xx*(xx*(xx*(xx*(xx*(xx/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5)}(b),Math.exp(a)*Math.sin(b))},log:function(){var a=this.re,b=this.im;return new Complex(logHypot(a,b),Math.atan2(b,a))},abs:function(){return x=this.re,y=this.im,a=Math.abs(x),b=Math.abs(y),a<3e3&&b<3e3?Math.sqrt(a*a+b*b):(a1&&0===b,oneMinus=1-a,onePlus=1+a,d=oneMinus*oneMinus+b*b,x=0!==d?new Complex((onePlus*oneMinus-b*b)/d,(b*oneMinus+onePlus*b)/d):new Complex(-1!==a?a/0:0,0!==b?b/0:0),temp=x.re;return x.re=logHypot(x.re,x.im)/2,x.im=Math.atan2(x.im,temp)/2,noIM&&(x.im=-x.im),x},acoth:function(){var a=this.re,b=this.im;if(0===a&&0===b)return new Complex(0,Math.PI/2);var d=a*a+b*b;return 0!==d?new Complex(a/d,-b/d).atanh():new Complex(0!==a?a/0:0,0!==b?-b/0:0).atanh()},acsch:function(){var a=this.re,b=this.im;if(0===b)return new Complex(0!==a?Math.log(a+Math.sqrt(a*a+1)):1/0,0);var d=a*a+b*b;return 0!==d?new Complex(a/d,-b/d).asinh():new Complex(0!==a?a/0:0,0!==b?-b/0:0).asinh()},asech:function(){var a=this.re,b=this.im;if(this.isZero())return Complex.INFINITY;var d=a*a+b*b;return 0!==d?new Complex(a/d,-b/d).acosh():new Complex(0!==a?a/0:0,0!==b?-b/0:0).acosh()},inverse:function(){if(this.isZero())return Complex.INFINITY;if(this.isInfinite())return Complex.ZERO;var a=this.re,b=this.im,d=a*a+b*b;return new Complex(a/d,-b/d)},conjugate:function(){return new Complex(this.re,-this.im)},neg:function(){return new Complex(-this.re,-this.im)},ceil:function(places){return places=Math.pow(10,places||0),new Complex(Math.ceil(this.re*places)/places,Math.ceil(this.im*places)/places)},floor:function(places){return places=Math.pow(10,places||0),new Complex(Math.floor(this.re*places)/places,Math.floor(this.im*places)/places)},round:function(places){return places=Math.pow(10,places||0),new Complex(Math.round(this.re*places)/places,Math.round(this.im*places)/places)},equals:function(a,b){var z=new Complex(a,b);return Math.abs(z.re-this.re)<=Complex.EPSILON&&Math.abs(z.im-this.im)<=Complex.EPSILON},clone:function(){return new Complex(this.re,this.im)},toString:function(){var a=this.re,b=this.im,ret="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(a)0?1:x<0?-1:0},sqrt=Math.sqrt,tan=Math.tan;function acos(x){return x>1?0:x<-1?pi:Math.acos(x)}function asin(x){return x>1?halfPi:x<-1?-halfPi:Math.asin(x)}function haversin(x){return(x=sin(x/2))*x}function noop(){}function streamGeometry(geometry,stream){geometry&&streamGeometryType.hasOwnProperty(geometry.type)&&streamGeometryType[geometry.type](geometry,stream)}var streamObjectType={Feature:function(object,stream){streamGeometry(object.geometry,stream)},FeatureCollection:function(object,stream){for(var features=object.features,i=-1,n=features.length;++i=0?1:-1,adLambda=sdLambda*dLambda,cosPhi=cos(phi=(phi*=radians)/2+quarterPi),sinPhi=sin(phi),k=sinPhi0*sinPhi,u=cosPhi0*cosPhi+k*cos(adLambda),v=k*sdLambda*sin(adLambda);areaRingSum.add(atan2(v,u)),lambda0=lambda,cosPhi0=cosPhi,sinPhi0=sinPhi}function src_area(object){return areaSum.reset(),stream(object,areaStream),2*areaSum}function spherical(cartesian){return[atan2(cartesian[1],cartesian[0]),asin(cartesian[2])]}function cartesian(spherical){var lambda=spherical[0],phi=spherical[1],cosPhi=cos(phi);return[cosPhi*cos(lambda),cosPhi*sin(lambda),sin(phi)]}function cartesianDot(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]}function cartesianCross(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function cartesianAddInPlace(a,b){a[0]+=b[0],a[1]+=b[1],a[2]+=b[2]}function cartesianScale(vector,k){return[vector[0]*k,vector[1]*k,vector[2]*k]}function cartesianNormalizeInPlace(d){var l=sqrt(d[0]*d[0]+d[1]*d[1]+d[2]*d[2]);d[0]/=l,d[1]/=l,d[2]/=l}var bounds_lambda0,phi0,lambda1,phi1,lambda2,bounds_lambda00,bounds_phi00,p0,ranges,bounds_range,W0,W1,X0,Y0,Z0,X1,Y1,Z1,X2,Y2,Z2,centroid_lambda00,centroid_phi00,x0,y0,z0,deltaSum=adder(),boundsStream={point:boundsPoint,lineStart:boundsLineStart,lineEnd:boundsLineEnd,polygonStart:function(){boundsStream.point=boundsRingPoint,boundsStream.lineStart=boundsRingStart,boundsStream.lineEnd=boundsRingEnd,deltaSum.reset(),areaStream.polygonStart()},polygonEnd:function(){areaStream.polygonEnd(),boundsStream.point=boundsPoint,boundsStream.lineStart=boundsLineStart,boundsStream.lineEnd=boundsLineEnd,areaRingSum<0?(bounds_lambda0=-(lambda1=180),phi0=-(phi1=90)):deltaSum>epsilon?phi1=90:deltaSum<-epsilon&&(phi0=-90),bounds_range[0]=bounds_lambda0,bounds_range[1]=lambda1}};function boundsPoint(lambda,phi){ranges.push(bounds_range=[bounds_lambda0=lambda,lambda1=lambda]),phiphi1&&(phi1=phi)}function linePoint(lambda,phi){var p=cartesian([lambda*radians,phi*radians]);if(p0){var normal=cartesianCross(p0,p),inflection=cartesianCross([normal[1],-normal[0],0],normal);cartesianNormalizeInPlace(inflection),inflection=spherical(inflection);var phii,delta=lambda-lambda2,sign=delta>0?1:-1,lambdai=inflection[0]*degrees*sign,antimeridian=abs(delta)>180;antimeridian^(sign*lambda2phi1&&(phi1=phii):antimeridian^(sign*lambda2<(lambdai=(lambdai+360)%360-180)&&lambdaiphi1&&(phi1=phi)),antimeridian?lambdaangle(bounds_lambda0,lambda1)&&(lambda1=lambda):angle(lambda,lambda1)>angle(bounds_lambda0,lambda1)&&(bounds_lambda0=lambda):lambda1>=bounds_lambda0?(lambdalambda1&&(lambda1=lambda)):lambda>lambda2?angle(bounds_lambda0,lambda)>angle(bounds_lambda0,lambda1)&&(lambda1=lambda):angle(lambda,lambda1)>angle(bounds_lambda0,lambda1)&&(bounds_lambda0=lambda)}else ranges.push(bounds_range=[bounds_lambda0=lambda,lambda1=lambda]);phiphi1&&(phi1=phi),p0=p,lambda2=lambda}function boundsLineStart(){boundsStream.point=linePoint}function boundsLineEnd(){bounds_range[0]=bounds_lambda0,bounds_range[1]=lambda1,boundsStream.point=boundsPoint,p0=null}function boundsRingPoint(lambda,phi){if(p0){var delta=lambda-lambda2;deltaSum.add(abs(delta)>180?delta+(delta>0?360:-360):delta)}else bounds_lambda00=lambda,bounds_phi00=phi;areaStream.point(lambda,phi),linePoint(lambda,phi)}function boundsRingStart(){areaStream.lineStart()}function boundsRingEnd(){boundsRingPoint(bounds_lambda00,bounds_phi00),areaStream.lineEnd(),abs(deltaSum)>epsilon&&(bounds_lambda0=-(lambda1=180)),bounds_range[0]=bounds_lambda0,bounds_range[1]=lambda1,p0=null}function angle(lambda0,lambda1){return(lambda1-=lambda0)<0?lambda1+360:lambda1}function rangeCompare(a,b){return a[0]-b[0]}function rangeContains(range,x){return range[0]<=range[1]?range[0]<=x&&x<=range[1]:xangle(a[0],a[1])&&(a[1]=b[1]),angle(b[0],a[1])>angle(a[0],a[1])&&(a[0]=b[0])):merged.push(a=b);for(deltaMax=-1/0,i=0,a=merged[n=merged.length-1];i<=n;a=b,++i)b=merged[i],(delta=angle(a[1],b[0]))>deltaMax&&(deltaMax=delta,bounds_lambda0=b[0],lambda1=a[1])}return ranges=bounds_range=null,bounds_lambda0===1/0||phi0===1/0?[[NaN,NaN],[NaN,NaN]]:[[bounds_lambda0,phi0],[lambda1,phi1]]}var centroidStream={sphere:noop,point:centroidPoint,lineStart:centroidLineStart,lineEnd:centroidLineEnd,polygonStart:function(){centroidStream.lineStart=centroidRingStart,centroidStream.lineEnd=centroidRingEnd},polygonEnd:function(){centroidStream.lineStart=centroidLineStart,centroidStream.lineEnd=centroidLineEnd}};function centroidPoint(lambda,phi){lambda*=radians;var cosPhi=cos(phi*=radians);centroidPointCartesian(cosPhi*cos(lambda),cosPhi*sin(lambda),sin(phi))}function centroidPointCartesian(x,y,z){++W0,X0+=(x-X0)/W0,Y0+=(y-Y0)/W0,Z0+=(z-Z0)/W0}function centroidLineStart(){centroidStream.point=centroidLinePointFirst}function centroidLinePointFirst(lambda,phi){lambda*=radians;var cosPhi=cos(phi*=radians);x0=cosPhi*cos(lambda),y0=cosPhi*sin(lambda),z0=sin(phi),centroidStream.point=centroidLinePoint,centroidPointCartesian(x0,y0,z0)}function centroidLinePoint(lambda,phi){lambda*=radians;var cosPhi=cos(phi*=radians),x=cosPhi*cos(lambda),y=cosPhi*sin(lambda),z=sin(phi),w=atan2(sqrt((w=y0*z-z0*y)*w+(w=z0*x-x0*z)*w+(w=x0*y-y0*x)*w),x0*x+y0*y+z0*z);W1+=w,X1+=w*(x0+(x0=x)),Y1+=w*(y0+(y0=y)),Z1+=w*(z0+(z0=z)),centroidPointCartesian(x0,y0,z0)}function centroidLineEnd(){centroidStream.point=centroidPoint}function centroidRingStart(){centroidStream.point=centroidRingPointFirst}function centroidRingEnd(){centroidRingPoint(centroid_lambda00,centroid_phi00),centroidStream.point=centroidPoint}function centroidRingPointFirst(lambda,phi){centroid_lambda00=lambda,centroid_phi00=phi,lambda*=radians,phi*=radians,centroidStream.point=centroidRingPoint;var cosPhi=cos(phi);x0=cosPhi*cos(lambda),y0=cosPhi*sin(lambda),z0=sin(phi),centroidPointCartesian(x0,y0,z0)}function centroidRingPoint(lambda,phi){lambda*=radians;var cosPhi=cos(phi*=radians),x=cosPhi*cos(lambda),y=cosPhi*sin(lambda),z=sin(phi),cx=y0*z-z0*y,cy=z0*x-x0*z,cz=x0*y-y0*x,m=sqrt(cx*cx+cy*cy+cz*cz),w=asin(m),v=m&&-w/m;X2+=v*cx,Y2+=v*cy,Z2+=v*cz,W1+=w,X1+=w*(x0+(x0=x)),Y1+=w*(y0+(y0=y)),Z1+=w*(z0+(z0=z)),centroidPointCartesian(x0,y0,z0)}function centroid(object){W0=W1=X0=Y0=Z0=X1=Y1=Z1=X2=Y2=Z2=0,stream(object,centroidStream);var x=X2,y=Y2,z=Z2,m=x*x+y*y+z*z;return mpi?lambda-tau:lambda<-pi?lambda+tau:lambda,phi]}function rotateRadians(deltaLambda,deltaPhi,deltaGamma){return(deltaLambda%=tau)?deltaPhi||deltaGamma?compose(rotationLambda(deltaLambda),rotationPhiGamma(deltaPhi,deltaGamma)):rotationLambda(deltaLambda):deltaPhi||deltaGamma?rotationPhiGamma(deltaPhi,deltaGamma):rotationIdentity}function forwardRotationLambda(deltaLambda){return function(lambda,phi){return[(lambda+=deltaLambda)>pi?lambda-tau:lambda<-pi?lambda+tau:lambda,phi]}}function rotationLambda(deltaLambda){var rotation=forwardRotationLambda(deltaLambda);return rotation.invert=forwardRotationLambda(-deltaLambda),rotation}function rotationPhiGamma(deltaPhi,deltaGamma){var cosDeltaPhi=cos(deltaPhi),sinDeltaPhi=sin(deltaPhi),cosDeltaGamma=cos(deltaGamma),sinDeltaGamma=sin(deltaGamma);function rotation(lambda,phi){var cosPhi=cos(phi),x=cos(lambda)*cosPhi,y=sin(lambda)*cosPhi,z=sin(phi),k=z*cosDeltaPhi+x*sinDeltaPhi;return[atan2(y*cosDeltaGamma-k*sinDeltaGamma,x*cosDeltaPhi-z*sinDeltaPhi),asin(k*cosDeltaGamma+y*sinDeltaGamma)]}return rotation.invert=function(lambda,phi){var cosPhi=cos(phi),x=cos(lambda)*cosPhi,y=sin(lambda)*cosPhi,z=sin(phi),k=z*cosDeltaGamma-y*sinDeltaGamma;return[atan2(y*cosDeltaGamma+z*sinDeltaGamma,x*cosDeltaPhi+k*sinDeltaPhi),asin(k*cosDeltaPhi-x*sinDeltaPhi)]},rotation}function rotation(rotate){function forward(coordinates){return(coordinates=rotate(coordinates[0]*radians,coordinates[1]*radians))[0]*=degrees,coordinates[1]*=degrees,coordinates}return rotate=rotateRadians(rotate[0]*radians,rotate[1]*radians,rotate.length>2?rotate[2]*radians:0),forward.invert=function(coordinates){return(coordinates=rotate.invert(coordinates[0]*radians,coordinates[1]*radians))[0]*=degrees,coordinates[1]*=degrees,coordinates},forward}function circleStream(stream,radius,delta,direction,t0,t1){if(delta){var cosRadius=cos(radius),sinRadius=sin(radius),step=direction*delta;null==t0?(t0=radius+direction*tau,t1=radius-step/2):(t0=circleRadius(cosRadius,t0),t1=circleRadius(cosRadius,t1),(direction>0?t0t1)&&(t0+=direction*tau));for(var point,t=t0;direction>0?t>t1:t1&&lines.push(lines.pop().concat(lines.shift()))},result:function(){var result=lines;return lines=[],line=null,result}}}function pointEqual(a,b){return abs(a[0]-b[0])=0;--i)stream.point((point=points[i])[0],point[1]);else interpolate(current.x,current.p.x,-1,stream);current=current.p}points=(current=current.o).z,isSubject=!isSubject}while(!current.v);stream.lineEnd()}}}function polygon_link(array){if(n=array.length){for(var n,b,i=0,a=array[0];++ib?1:a>=b?0:NaN}rotationIdentity.invert=rotationIdentity;var ascendingBisect=function bisector(compare){return 1===compare.length&&(compare=function ascendingComparator(f){return function(d,x){return src_ascending(f(d),x)}}(compare)),{left:function(a,x,lo,hi){for(null==lo&&(lo=0),null==hi&&(hi=a.length);lo>>1;compare(a[mid],x)<0?lo=mid+1:hi=mid}return lo},right:function(a,x,lo,hi){for(null==lo&&(lo=0),null==hi&&(hi=a.length);lo>>1;compare(a[mid],x)>0?hi=mid:lo=mid+1}return lo}}}(src_ascending),array=(ascendingBisect.right,ascendingBisect.left,Array.prototype);array.slice,array.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);function merge(arrays){for(var m,merged,array,n=arrays.length,i=-1,j=0;++i=0;)for(m=(array=arrays[n]).length;--m>=0;)merged[--j]=array[m];return merged}function src_range(start,stop,step){start=+start,stop=+stop,step=(n=arguments.length)<2?(stop=start,start=0,1):n<3?1:+step;for(var i=-1,n=0|Math.max(0,Math.ceil((stop-start)/step)),range=new Array(n);++i0)do{stream.point(0===a||3===a?x0:x1,a>1?y1:y0)}while((a=(a+direction+4)%4)!==a1);else stream.point(to[0],to[1])}function corner(p,direction){return abs(p[0]-x0)0?0:3:abs(p[0]-x1)0?2:1:abs(p[1]-y0)0?1:0:direction>0?3:2}function compareIntersection(a,b){return comparePoint(a.x,b.x)}function comparePoint(a,b){var ca=corner(a,1),cb=corner(b,1);return ca!==cb?ca-cb:0===ca?b[1]-a[1]:1===ca?a[0]-b[0]:2===ca?a[1]-b[1]:b[0]-a[0]}return function(stream){var segments,polygon,ring,x__,y__,v__,x_,y_,v_,first,clean,activeStream=stream,bufferStream=buffer(),clipStream={point:point,lineStart:function lineStart(){clipStream.point=linePoint,polygon&&polygon.push(ring=[]);first=!0,v_=!1,x_=y_=NaN},lineEnd:function lineEnd(){segments&&(linePoint(x__,y__),v__&&v_&&bufferStream.rejoin(),segments.push(bufferStream.result()));clipStream.point=point,v_&&activeStream.lineEnd()},polygonStart:function polygonStart(){activeStream=bufferStream,segments=[],polygon=[],clean=!0},polygonEnd:function polygonEnd(){var startInside=function polygonInside(){for(var winding=0,i=0,n=polygon.length;iy1&&(b0-a0)*(y1-a1)>(b1-a1)*(x0-a0)&&++winding:b1<=y1&&(b0-a0)*(y1-a1)<(b1-a1)*(x0-a0)&&--winding;return winding}(),cleanInside=clean&&startInside,visible=(segments=merge(segments)).length;(cleanInside||visible)&&(stream.polygonStart(),cleanInside&&(stream.lineStart(),interpolate(null,null,1,stream),stream.lineEnd()),visible&&clip_polygon(segments,compareIntersection,startInside,interpolate,stream),stream.polygonEnd());activeStream=stream,segments=polygon=ring=null}};function point(x,y){visible(x,y)&&activeStream.point(x,y)}function linePoint(x,y){var v=visible(x,y);if(polygon&&ring.push([x,y]),first)x__=x,y__=y,v__=v,first=!1,v&&(activeStream.lineStart(),activeStream.point(x,y));else if(v&&v_)activeStream.point(x,y);else{var a=[x_=Math.max(clipMin,Math.min(clipMax,x_)),y_=Math.max(clipMin,Math.min(clipMax,y_))],b=[x=Math.max(clipMin,Math.min(clipMax,x)),y=Math.max(clipMin,Math.min(clipMax,y))];!function line(a,b,x0,y0,x1,y1){var r,ax=a[0],ay=a[1],t0=0,t1=1,dx=b[0]-ax,dy=b[1]-ay;if(r=x0-ax,dx||!(r>0)){if(r/=dx,dx<0){if(r0){if(r>t1)return;r>t0&&(t0=r)}if(r=x1-ax,dx||!(r<0)){if(r/=dx,dx<0){if(r>t1)return;r>t0&&(t0=r)}else if(dx>0){if(r0)){if(r/=dy,dy<0){if(r0){if(r>t1)return;r>t0&&(t0=r)}if(r=y1-ay,dy||!(r<0)){if(r/=dy,dy<0){if(r>t1)return;r>t0&&(t0=r)}else if(dy>0){if(r0&&(a[0]=ax+t0*dx,a[1]=ay+t0*dy),t1<1&&(b[0]=ax+t1*dx,b[1]=ay+t1*dy),!0}}}}}(a,b,x0,y0,x1,y1)?v&&(activeStream.lineStart(),activeStream.point(x,y),clean=!1):(v_||(activeStream.lineStart(),activeStream.point(a[0],a[1])),activeStream.point(b[0],b[1]),v||activeStream.lineEnd(),clean=!1)}x_=x,y_=y,v_=v}return clipStream}}function clip_extent(){var cache,cacheStream,clip,x0=0,y0=0,x1=960,y1=500;return clip={stream:function(stream){return cache&&cacheStream===stream?cache:cache=clipExtent(x0,y0,x1,y1)(cacheStream=stream)},extent:function(_){return arguments.length?(x0=+_[0][0],y0=+_[0][1],x1=+_[1][0],y1=+_[1][1],cache=cacheStream=null,clip):[[x0,y0],[x1,y1]]}}}var sum=adder();function polygonContains(polygon,point){var lambda=point[0],phi=point[1],normal=[sin(lambda),-cos(lambda),0],angle=0,winding=0;sum.reset();for(var i=0,n=polygon.length;i=0?1:-1,absDelta=sign*delta,antimeridian=absDelta>pi,k=sinPhi0*sinPhi1;if(sum.add(atan2(k*sign*sin(absDelta),cosPhi0*cosPhi1+k*cos(absDelta))),angle+=antimeridian?delta+sign*tau:delta,antimeridian^lambda0>=lambda^lambda1>=lambda){var arc=cartesianCross(cartesian(point0),cartesian(point1));cartesianNormalizeInPlace(arc);var intersection=cartesianCross(normal,arc);cartesianNormalizeInPlace(intersection);var phiArc=(antimeridian^delta>=0?-1:1)*asin(intersection[2]);(phi>phiArc||phi===phiArc&&(arc[0]||arc[1]))&&(winding+=antimeridian^delta>=0?1:-1)}}return(angle<-epsilon||angleepsilon})).map(x)).concat(src_range(ceil(y0/dy)*dy,y1,dy).filter((function(y){return abs(y%DY)>epsilon})).map(y))}return graticule.lines=function(){return lines().map((function(coordinates){return{type:"LineString",coordinates:coordinates}}))},graticule.outline=function(){return{type:"Polygon",coordinates:[X(X0).concat(Y(Y1).slice(1),X(X1).reverse().slice(1),Y(Y0).reverse().slice(1))]}},graticule.extent=function(_){return arguments.length?graticule.extentMajor(_).extentMinor(_):graticule.extentMinor()},graticule.extentMajor=function(_){return arguments.length?(X0=+_[0][0],X1=+_[1][0],Y0=+_[0][1],Y1=+_[1][1],X0>X1&&(_=X0,X0=X1,X1=_),Y0>Y1&&(_=Y0,Y0=Y1,Y1=_),graticule.precision(precision)):[[X0,Y0],[X1,Y1]]},graticule.extentMinor=function(_){return arguments.length?(x0=+_[0][0],x1=+_[1][0],y0=+_[0][1],y1=+_[1][1],x0>x1&&(_=x0,x0=x1,x1=_),y0>y1&&(_=y0,y0=y1,y1=_),graticule.precision(precision)):[[x0,y0],[x1,y1]]},graticule.step=function(_){return arguments.length?graticule.stepMajor(_).stepMinor(_):graticule.stepMinor()},graticule.stepMajor=function(_){return arguments.length?(DX=+_[0],DY=+_[1],graticule):[DX,DY]},graticule.stepMinor=function(_){return arguments.length?(dx=+_[0],dy=+_[1],graticule):[dx,dy]},graticule.precision=function(_){return arguments.length?(precision=+_,x=graticuleX(y0,y1,90),y=graticuleY(x0,x1,precision),X=graticuleX(Y0,Y1,90),Y=graticuleY(X0,X1,precision),graticule):precision},graticule.extentMajor([[-180,-90+epsilon],[180,90-epsilon]]).extentMinor([[-180,-80-epsilon],[180,80+epsilon]])}function graticule10(){return graticule()()}function interpolate(a,b){var x0=a[0]*radians,y0=a[1]*radians,x1=b[0]*radians,y1=b[1]*radians,cy0=cos(y0),sy0=sin(y0),cy1=cos(y1),sy1=sin(y1),kx0=cy0*cos(x0),ky0=cy0*sin(x0),kx1=cy1*cos(x1),ky1=cy1*sin(x1),d=2*asin(sqrt(haversin(y1-y0)+cy0*cy1*haversin(x1-x0))),k=sin(d),interpolate=d?function(t){var B=sin(t*=d)/k,A=sin(d-t)/k,x=A*kx0+B*kx1,y=A*ky0+B*ky1,z=A*sy0+B*sy1;return[atan2(y,x)*degrees,atan2(z,sqrt(x*x+y*y))*degrees]}:function(){return[x0*degrees,y0*degrees]};return interpolate.distance=d,interpolate}function src_identity(x){return x}var x00,y00,area_x0,area_y0,area_areaSum=adder(),area_areaRingSum=adder(),area_areaStream={point:noop,lineStart:noop,lineEnd:noop,polygonStart:function(){area_areaStream.lineStart=area_areaRingStart,area_areaStream.lineEnd=area_areaRingEnd},polygonEnd:function(){area_areaStream.lineStart=area_areaStream.lineEnd=area_areaStream.point=noop,area_areaSum.add(abs(area_areaRingSum)),area_areaRingSum.reset()},result:function(){var area=area_areaSum/2;return area_areaSum.reset(),area}};function area_areaRingStart(){area_areaStream.point=area_areaPointFirst}function area_areaPointFirst(x,y){area_areaStream.point=area_areaPoint,x00=area_x0=x,y00=area_y0=y}function area_areaPoint(x,y){area_areaRingSum.add(area_y0*x-area_x0*y),area_x0=x,area_y0=y}function area_areaRingEnd(){area_areaPoint(x00,y00)}var path_area=area_areaStream,bounds_x0=1/0,bounds_y0=bounds_x0,x1=-bounds_x0,y1=x1,bounds_boundsStream={point:function bounds_boundsPoint(x,y){xx1&&(x1=x);yy1&&(y1=y)},lineStart:noop,lineEnd:noop,polygonStart:noop,polygonEnd:noop,result:function(){var bounds=[[bounds_x0,bounds_y0],[x1,y1]];return x1=y1=-(bounds_y0=bounds_x0=1/0),bounds}};var centroid_x00,centroid_y00,centroid_x0,centroid_y0,path_bounds=bounds_boundsStream,centroid_X0=0,centroid_Y0=0,centroid_Z0=0,centroid_X1=0,centroid_Y1=0,centroid_Z1=0,centroid_X2=0,centroid_Y2=0,centroid_Z2=0,centroid_centroidStream={point:centroid_centroidPoint,lineStart:centroid_centroidLineStart,lineEnd:centroid_centroidLineEnd,polygonStart:function(){centroid_centroidStream.lineStart=centroid_centroidRingStart,centroid_centroidStream.lineEnd=centroid_centroidRingEnd},polygonEnd:function(){centroid_centroidStream.point=centroid_centroidPoint,centroid_centroidStream.lineStart=centroid_centroidLineStart,centroid_centroidStream.lineEnd=centroid_centroidLineEnd},result:function(){var centroid=centroid_Z2?[centroid_X2/centroid_Z2,centroid_Y2/centroid_Z2]:centroid_Z1?[centroid_X1/centroid_Z1,centroid_Y1/centroid_Z1]:centroid_Z0?[centroid_X0/centroid_Z0,centroid_Y0/centroid_Z0]:[NaN,NaN];return centroid_X0=centroid_Y0=centroid_Z0=centroid_X1=centroid_Y1=centroid_Z1=centroid_X2=centroid_Y2=centroid_Z2=0,centroid}};function centroid_centroidPoint(x,y){centroid_X0+=x,centroid_Y0+=y,++centroid_Z0}function centroid_centroidLineStart(){centroid_centroidStream.point=centroidPointFirstLine}function centroidPointFirstLine(x,y){centroid_centroidStream.point=centroidPointLine,centroid_centroidPoint(centroid_x0=x,centroid_y0=y)}function centroidPointLine(x,y){var dx=x-centroid_x0,dy=y-centroid_y0,z=sqrt(dx*dx+dy*dy);centroid_X1+=z*(centroid_x0+x)/2,centroid_Y1+=z*(centroid_y0+y)/2,centroid_Z1+=z,centroid_centroidPoint(centroid_x0=x,centroid_y0=y)}function centroid_centroidLineEnd(){centroid_centroidStream.point=centroid_centroidPoint}function centroid_centroidRingStart(){centroid_centroidStream.point=centroidPointFirstRing}function centroid_centroidRingEnd(){centroidPointRing(centroid_x00,centroid_y00)}function centroidPointFirstRing(x,y){centroid_centroidStream.point=centroidPointRing,centroid_centroidPoint(centroid_x00=centroid_x0=x,centroid_y00=centroid_y0=y)}function centroidPointRing(x,y){var dx=x-centroid_x0,dy=y-centroid_y0,z=sqrt(dx*dx+dy*dy);centroid_X1+=z*(centroid_x0+x)/2,centroid_Y1+=z*(centroid_y0+y)/2,centroid_Z1+=z,centroid_X2+=(z=centroid_y0*x-centroid_x0*y)*(centroid_x0+x),centroid_Y2+=z*(centroid_y0+y),centroid_Z2+=3*z,centroid_centroidPoint(centroid_x0=x,centroid_y0=y)}var path_centroid=centroid_centroidStream;function PathContext(context){this._context=context}PathContext.prototype={_radius:4.5,pointRadius:function(_){return this._radius=_,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(x,y){switch(this._point){case 0:this._context.moveTo(x,y),this._point=1;break;case 1:this._context.lineTo(x,y);break;default:this._context.moveTo(x+this._radius,y),this._context.arc(x,y,this._radius,0,tau)}},result:noop};var lengthRing,measure_x00,measure_y00,measure_x0,measure_y0,measure_lengthSum=adder(),measure_lengthStream={point:noop,lineStart:function(){measure_lengthStream.point=measure_lengthPointFirst},lineEnd:function(){lengthRing&&measure_lengthPoint(measure_x00,measure_y00),measure_lengthStream.point=noop},polygonStart:function(){lengthRing=!0},polygonEnd:function(){lengthRing=null},result:function(){var length=+measure_lengthSum;return measure_lengthSum.reset(),length}};function measure_lengthPointFirst(x,y){measure_lengthStream.point=measure_lengthPoint,measure_x00=measure_x0=x,measure_y00=measure_y0=y}function measure_lengthPoint(x,y){measure_x0-=x,measure_y0-=y,measure_lengthSum.add(sqrt(measure_x0*measure_x0+measure_y0*measure_y0)),measure_x0=x,measure_y0=y}var measure=measure_lengthStream;function PathString(){this._string=[]}function string_circle(radius){return"m0,"+radius+"a"+radius+","+radius+" 0 1,1 0,"+-2*radius+"a"+radius+","+radius+" 0 1,1 0,"+2*radius+"z"}function path(projection,context){var projectionStream,contextStream,pointRadius=4.5;function path(object){return object&&("function"==typeof pointRadius&&contextStream.pointRadius(+pointRadius.apply(this,arguments)),stream(object,projectionStream(contextStream))),contextStream.result()}return path.area=function(object){return stream(object,projectionStream(path_area)),path_area.result()},path.measure=function(object){return stream(object,projectionStream(measure)),measure.result()},path.bounds=function(object){return stream(object,projectionStream(path_bounds)),path_bounds.result()},path.centroid=function(object){return stream(object,projectionStream(path_centroid)),path_centroid.result()},path.projection=function(_){return arguments.length?(projectionStream=null==_?(projection=null,src_identity):(projection=_).stream,path):projection},path.context=function(_){return arguments.length?(contextStream=null==_?(context=null,new PathString):new PathContext(context=_),"function"!=typeof pointRadius&&contextStream.pointRadius(pointRadius),path):context},path.pointRadius=function(_){return arguments.length?(pointRadius="function"==typeof _?_:(contextStream.pointRadius(+_),+_),path):pointRadius},path.projection(projection).context(context)}function clip(pointVisible,clipLine,interpolate,start){return function(rotate,sink){var polygon,segments,ring,line=clipLine(sink),rotatedStart=rotate.invert(start[0],start[1]),ringBuffer=buffer(),ringSink=clipLine(ringBuffer),polygonStarted=!1,clip={point:point,lineStart:lineStart,lineEnd:lineEnd,polygonStart:function(){clip.point=pointRing,clip.lineStart=ringStart,clip.lineEnd=ringEnd,segments=[],polygon=[]},polygonEnd:function(){clip.point=point,clip.lineStart=lineStart,clip.lineEnd=lineEnd,segments=merge(segments);var startInside=polygonContains(polygon,rotatedStart);segments.length?(polygonStarted||(sink.polygonStart(),polygonStarted=!0),clip_polygon(segments,compareIntersection,startInside,interpolate,sink)):startInside&&(polygonStarted||(sink.polygonStart(),polygonStarted=!0),sink.lineStart(),interpolate(null,null,1,sink),sink.lineEnd()),polygonStarted&&(sink.polygonEnd(),polygonStarted=!1),segments=polygon=null},sphere:function(){sink.polygonStart(),sink.lineStart(),interpolate(null,null,1,sink),sink.lineEnd(),sink.polygonEnd()}};function point(lambda,phi){var point=rotate(lambda,phi);pointVisible(lambda=point[0],phi=point[1])&&sink.point(lambda,phi)}function pointLine(lambda,phi){var point=rotate(lambda,phi);line.point(point[0],point[1])}function lineStart(){clip.point=pointLine,line.lineStart()}function lineEnd(){clip.point=point,line.lineEnd()}function pointRing(lambda,phi){ring.push([lambda,phi]);var point=rotate(lambda,phi);ringSink.point(point[0],point[1])}function ringStart(){ringSink.lineStart(),ring=[]}function ringEnd(){pointRing(ring[0][0],ring[0][1]),ringSink.lineEnd();var i,m,segment,point,clean=ringSink.clean(),ringSegments=ringBuffer.result(),n=ringSegments.length;if(ring.pop(),polygon.push(ring),ring=null,n)if(1&clean){if((m=(segment=ringSegments[0]).length-1)>0){for(polygonStarted||(sink.polygonStart(),polygonStarted=!0),sink.lineStart(),i=0;i1&&2&clean&&ringSegments.push(ringSegments.pop().concat(ringSegments.shift())),segments.push(ringSegments.filter(validSegment))}return clip}}function validSegment(segment){return segment.length>1}function compareIntersection(a,b){return((a=a.x)[0]<0?a[1]-halfPi-epsilon:halfPi-a[1])-((b=b.x)[0]<0?b[1]-halfPi-epsilon:halfPi-b[1])}PathString.prototype={_radius:4.5,_circle:string_circle(4.5),pointRadius:function(_){return(_=+_)!==this._radius&&(this._radius=_,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(x,y){switch(this._point){case 0:this._string.push("M",x,",",y),this._point=1;break;case 1:this._string.push("L",x,",",y);break;default:null==this._circle&&(this._circle=string_circle(this._radius)),this._string.push("M",x,",",y,this._circle)}},result:function(){if(this._string.length){var result=this._string.join("");return this._string=[],result}return null}};var antimeridian=clip((function(){return!0}),(function clipAntimeridianLine(stream){var clean,lambda0=NaN,phi0=NaN,sign0=NaN;return{lineStart:function(){stream.lineStart(),clean=1},point:function(lambda1,phi1){var sign1=lambda1>0?pi:-pi,delta=abs(lambda1-lambda0);abs(delta-pi)0?halfPi:-halfPi),stream.point(sign0,phi0),stream.lineEnd(),stream.lineStart(),stream.point(sign1,phi0),stream.point(lambda1,phi0),clean=0):sign0!==sign1&&delta>=pi&&(abs(lambda0-sign0)epsilon?atan((sin(phi0)*(cosPhi1=cos(phi1))*sin(lambda1)-sin(phi1)*(cosPhi0=cos(phi0))*sin(lambda0))/(cosPhi0*cosPhi1*sinLambda0Lambda1)):(phi0+phi1)/2}(lambda0,phi0,lambda1,phi1),stream.point(sign0,phi0),stream.lineEnd(),stream.lineStart(),stream.point(sign1,phi0),clean=0),stream.point(lambda0=lambda1,phi0=phi1),sign0=sign1},lineEnd:function(){stream.lineEnd(),lambda0=phi0=NaN},clean:function(){return 2-clean}}}),(function clipAntimeridianInterpolate(from,to,direction,stream){var phi;if(null==from)phi=direction*halfPi,stream.point(-pi,phi),stream.point(0,phi),stream.point(pi,phi),stream.point(pi,0),stream.point(pi,-phi),stream.point(0,-phi),stream.point(-pi,-phi),stream.point(-pi,0),stream.point(-pi,phi);else if(abs(from[0]-to[0])>epsilon){var lambda=from[0]4*delta2&&depth--){var a=a0+a1,b=b0+b1,c=c0+c1,m=sqrt(a*a+b*b+c*c),phi2=asin(c/=m),lambda2=abs(abs(c)-1)delta2||abs((dx*dx2+dy*dy2)/d2-.5)>.3||a0*a1+b0*b1+c0*c10,notHemisphere=abs(cr)>epsilon;function visible(lambda,phi){return cos(lambda)*cos(phi)>cr}function intersect(a,b,two){var n1=[1,0,0],n2=cartesianCross(cartesian(a),cartesian(b)),n2n2=cartesianDot(n2,n2),n1n2=n2[0],determinant=n2n2-n1n2*n1n2;if(!determinant)return!two&&a;var c1=cr*n2n2/determinant,c2=-cr*n1n2/determinant,n1xn2=cartesianCross(n1,n2),A=cartesianScale(n1,c1);cartesianAddInPlace(A,cartesianScale(n2,c2));var u=n1xn2,w=cartesianDot(A,u),uu=cartesianDot(u,u),t2=w*w-uu*(cartesianDot(A,A)-1);if(!(t2<0)){var t=sqrt(t2),q=cartesianScale(u,(-w-t)/uu);if(cartesianAddInPlace(q,A),q=spherical(q),!two)return q;var z,lambda0=a[0],lambda1=b[0],phi0=a[1],phi1=b[1];lambda10^q[1]<(abs(q[0]-lambda0)pi^(lambda0<=q[0]&&q[0]<=lambda1)){var q1=cartesianScale(u,(-w+t)/uu);return cartesianAddInPlace(q1,A),[q,spherical(q1)]}}}function code(lambda,phi){var r=smallRadius?radius:pi-radius,code=0;return lambda<-r?code|=1:lambda>r&&(code|=2),phi<-r?code|=4:phi>r&&(code|=8),code}return clip(visible,(function clipLine(stream){var point0,c0,v0,v00,clean;return{lineStart:function(){v00=v0=!1,clean=1},point:function(lambda,phi){var point2,point1=[lambda,phi],v=visible(lambda,phi),c=smallRadius?v?0:code(lambda,phi):v?code(lambda+(lambda<0?pi:-pi),phi):0;if(!point0&&(v00=v0=v)&&stream.lineStart(),v!==v0&&(!(point2=intersect(point0,point1))||pointEqual(point0,point2)||pointEqual(point1,point2))&&(point1[0]+=epsilon,point1[1]+=epsilon,v=visible(point1[0],point1[1])),v!==v0)clean=0,v?(stream.lineStart(),point2=intersect(point1,point0),stream.point(point2[0],point2[1])):(point2=intersect(point0,point1),stream.point(point2[0],point2[1]),stream.lineEnd()),point0=point2;else if(notHemisphere&&point0&&smallRadius^v){var t;c&c0||!(t=intersect(point1,point0,!0))||(clean=0,smallRadius?(stream.lineStart(),stream.point(t[0][0],t[0][1]),stream.point(t[1][0],t[1][1]),stream.lineEnd()):(stream.point(t[1][0],t[1][1]),stream.lineEnd(),stream.lineStart(),stream.point(t[0][0],t[0][1])))}!v||point0&&pointEqual(point0,point1)||stream.point(point1[0],point1[1]),point0=point1,v0=v,c0=c},lineEnd:function(){v0&&stream.lineEnd(),point0=null},clean:function(){return clean|(v00&&v0)<<1}}}),(function interpolate(from,to,direction,stream){circleStream(stream,radius,delta,direction,from,to)}),smallRadius?[0,-radius]:[-pi,radius-pi])}(theta=_*radians,6*radians):(theta=null,antimeridian),reset()):theta*degrees},projection.clipExtent=function(_){return arguments.length?(postclip=null==_?(x0=y0=x1=y1=null,src_identity):clipExtent(x0=+_[0][0],y0=+_[0][1],x1=+_[1][0],y1=+_[1][1]),reset()):null==x0?null:[[x0,y0],[x1,y1]]},projection.scale=function(_){return arguments.length?(k=+_,recenter()):k},projection.translate=function(_){return arguments.length?(x=+_[0],y=+_[1],recenter()):[x,y]},projection.center=function(_){return arguments.length?(lambda=_[0]%360*radians,phi=_[1]%360*radians,recenter()):[lambda*degrees,phi*degrees]},projection.rotate=function(_){return arguments.length?(deltaLambda=_[0]%360*radians,deltaPhi=_[1]%360*radians,deltaGamma=_.length>2?_[2]%360*radians:0,recenter()):[deltaLambda*degrees,deltaPhi*degrees,deltaGamma*degrees]},projection.precision=function(_){return arguments.length?(projectResample=resample(projectTransform,delta2=_*_),reset()):sqrt(delta2)},projection.fitExtent=function(extent,object){return fitExtent(projection,extent,object)},projection.fitSize=function(size,object){return fitSize(projection,size,object)},function(){return project=projectAt.apply(this,arguments),projection.invert=project.invert&&invert,recenter()}}function conicProjection(projectAt){var phi0=0,phi1=pi/3,m=projectionMutator(projectAt),p=m(phi0,phi1);return p.parallels=function(_){return arguments.length?m(phi0=_[0]*radians,phi1=_[1]*radians):[phi0*degrees,phi1*degrees]},p}function conicEqualAreaRaw(y0,y1){var sy0=sin(y0),n=(sy0+sin(y1))/2;if(abs(n)=.12&&y<.234&&x>=-.425&&x<-.214?alaska:y>=.166&&y<.234&&x>=-.214&&x<-.115?hawaii:lower48).invert(coordinates)},albersUsa.stream=function(stream){return cache&&cacheStream===stream?cache:cache=function multiplex(streams){var n=streams.length;return{point:function(x,y){for(var i=-1;++i0?y<-halfPi+epsilon&&(y=-halfPi+epsilon):y>halfPi-epsilon&&(y=halfPi-epsilon);var r=f/pow(tany(y),n);return[r*sin(n*x),f-r*cos(n*x)]}return project.invert=function(x,y){var fy=f-y,r=sign(n)*sqrt(x*x+fy*fy);return[atan2(x,abs(fy))/n*sign(fy),2*atan(pow(f/r,1/n))-halfPi]},project}function conicConformal(){return conicProjection(conicConformalRaw).scale(109.5).parallels([30,30])}function equirectangularRaw(lambda,phi){return[lambda,phi]}function equirectangular(){return projection(equirectangularRaw).scale(152.63)}function conicEquidistantRaw(y0,y1){var cy0=cos(y0),n=y0===y1?sin(y0):(cy0-cos(y1))/(y1-y0),g=cy0/n+y0;if(abs(n)2?_[2]+90:90]):[(_=rotate())[0],_[1],_[2]-90]},rotate([0,0,90]).scale(159.155)}azimuthalEquidistantRaw.invert=azimuthalInvert((function(z){return z})),mercatorRaw.invert=function(x,y){return[x,2*atan(exp(y))-halfPi]},equirectangularRaw.invert=equirectangularRaw,gnomonicRaw.invert=azimuthalInvert(atan),naturalEarth1Raw.invert=function(x,y){var delta,phi=y,i=25;do{var phi2=phi*phi,phi4=phi2*phi2;phi-=delta=(phi*(1.007226+phi2*(.015085+phi4*(.028874*phi2-.044475-.005916*phi4)))-y)/(1.007226+phi2*(.045255+phi4*(.259866*phi2-.311325-.005916*11*phi4)))}while(abs(delta)>epsilon&&--i>0);return[x/(.8707+(phi2=phi*phi)*(phi2*(phi2*phi2*phi2*(.003971-.001529*phi2)-.013791)-.131979)),phi]},orthographicRaw.invert=azimuthalInvert(asin),stereographicRaw.invert=azimuthalInvert((function(z){return 2*atan(z)})),transverseMercatorRaw.invert=function(x,y){return[-y,2*atan(exp(x))-halfPi]}},"./node_modules/decimal.js/decimal.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var inexact,quadrant,EXP_LIMIT=9e15,MAX_DIGITS=1e9,NUMERALS="0123456789abcdef",LN10="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",PI="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",DEFAULTS={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-EXP_LIMIT,maxE:EXP_LIMIT,crypto:!1},external=!0,decimalError="[DecimalError] ",invalidArgument=decimalError+"Invalid argument: ",precisionLimitExceeded=decimalError+"Precision limit exceeded",cryptoUnavailable=decimalError+"crypto unavailable",tag="[object Decimal]",mathfloor=Math.floor,mathpow=Math.pow,isBinary=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,isHex=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,isOctal=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,isDecimal=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,BASE=1e7,LOG_BASE=7,LN10_PRECISION=LN10.length-1,PI_PRECISION=PI.length-1,P={toStringTag:tag};function digitsToString(d){var i,k,ws,indexOfLastWord=d.length-1,str="",w=d[0];if(indexOfLastWord>0){for(str+=w,i=1;imax)throw Error(invalidArgument+i)}function checkRoundingDigits(d,i,rm,repeating){var di,k,r,rd;for(k=d[0];k>=10;k/=10)--i;return--i<0?(i+=LOG_BASE,di=0):(di=Math.ceil((i+1)/LOG_BASE),i%=LOG_BASE),k=mathpow(10,LOG_BASE-i),rd=d[di]%k|0,null==repeating?i<3?(0==i?rd=rd/100|0:1==i&&(rd=rd/10|0),r=rm<4&&99999==rd||rm>3&&49999==rd||5e4==rd||0==rd):r=(rm<4&&rd+1==k||rm>3&&rd+1==k/2)&&(d[di+1]/k/100|0)==mathpow(10,i-2)-1||(rd==k/2||0==rd)&&0==(d[di+1]/k/100|0):i<4?(0==i?rd=rd/1e3|0:1==i?rd=rd/100|0:2==i&&(rd=rd/10|0),r=(repeating||rm<4)&&9999==rd||!repeating&&rm>3&&4999==rd):r=((repeating||rm<4)&&rd+1==k||!repeating&&rm>3&&rd+1==k/2)&&(d[di+1]/k/1e3|0)==mathpow(10,i-3)-1,r}function convertBase(str,baseIn,baseOut){for(var j,arrL,arr=[0],i=0,strL=str.length;ibaseOut-1&&(void 0===arr[j+1]&&(arr[j+1]=0),arr[j+1]+=arr[j]/baseOut|0,arr[j]%=baseOut)}return arr.reverse()}P.absoluteValue=P.abs=function(){var x=new this.constructor(this);return x.s<0&&(x.s=1),finalise(x)},P.ceil=function(){return finalise(new this.constructor(this),this.e+1,2)},P.clampedTo=P.clamp=function(min,max){var x=this,Ctor=x.constructor;if(min=new Ctor(min),max=new Ctor(max),!min.s||!max.s)return new Ctor(NaN);if(min.gt(max))throw Error(invalidArgument+max);return x.cmp(min)<0?min:x.cmp(max)>0?max:new Ctor(x)},P.comparedTo=P.cmp=function(y){var i,j,xdL,ydL,x=this,xd=x.d,yd=(y=new x.constructor(y)).d,xs=x.s,ys=y.s;if(!xd||!yd)return xs&&ys?xs!==ys?xs:xd===yd?0:!xd^xs<0?1:-1:NaN;if(!xd[0]||!yd[0])return xd[0]?xs:yd[0]?-ys:0;if(xs!==ys)return xs;if(x.e!==y.e)return x.e>y.e^xs<0?1:-1;for(i=0,j=(xdL=xd.length)<(ydL=yd.length)?xdL:ydL;iyd[i]^xs<0?1:-1;return xdL===ydL?0:xdL>ydL^xs<0?1:-1},P.cosine=P.cos=function(){var pr,rm,x=this,Ctor=x.constructor;return x.d?x.d[0]?(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+LOG_BASE,Ctor.rounding=1,x=function cosine(Ctor,x){var k,len,y;if(x.isZero())return x;len=x.d.length,len<32?y=(1/tinyPow(4,k=Math.ceil(len/3))).toString():(k=16,y="2.3283064365386962890625e-10");Ctor.precision+=k,x=taylorSeries(Ctor,1,x.times(y),new Ctor(1));for(var i=k;i--;){var cos2x=x.times(x);x=cos2x.times(cos2x).minus(cos2x).times(8).plus(1)}return Ctor.precision-=k,x}(Ctor,toLessThanHalfPi(Ctor,x)),Ctor.precision=pr,Ctor.rounding=rm,finalise(2==quadrant||3==quadrant?x.neg():x,pr,rm,!0)):new Ctor(1):new Ctor(NaN)},P.cubeRoot=P.cbrt=function(){var e,m,n,r,rep,s,sd,t,t3,t3plusx,x=this,Ctor=x.constructor;if(!x.isFinite()||x.isZero())return new Ctor(x);for(external=!1,(s=x.s*mathpow(x.s*x,1/3))&&Math.abs(s)!=1/0?r=new Ctor(s.toString()):(n=digitsToString(x.d),(s=((e=x.e)-n.length+1)%3)&&(n+=1==s||-2==s?"0":"00"),s=mathpow(n,1/3),e=mathfloor((e+1)/3)-(e%3==(e<0?-1:2)),(r=new Ctor(n=s==1/0?"5e"+e:(n=s.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=x.s),sd=(e=Ctor.precision)+3;;)if(t3plusx=(t3=(t=r).times(t).times(t)).plus(x),r=divide(t3plusx.plus(x).times(t),t3plusx.plus(t3),sd+2,1),digitsToString(t.d).slice(0,sd)===(n=digitsToString(r.d)).slice(0,sd)){if("9999"!=(n=n.slice(sd-3,sd+1))&&(rep||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(finalise(r,e+1,1),m=!r.times(r).times(r).eq(x));break}if(!rep&&(finalise(t,e+1,0),t.times(t).times(t).eq(x))){r=t;break}sd+=4,rep=1}return external=!0,finalise(r,e,Ctor.rounding,m)},P.decimalPlaces=P.dp=function(){var w,d=this.d,n=NaN;if(d){if(n=((w=d.length-1)-mathfloor(this.e/LOG_BASE))*LOG_BASE,w=d[w])for(;w%10==0;w/=10)n--;n<0&&(n=0)}return n},P.dividedBy=P.div=function(y){return divide(this,new this.constructor(y))},P.dividedToIntegerBy=P.divToInt=function(y){var Ctor=this.constructor;return finalise(divide(this,new Ctor(y),0,1,1),Ctor.precision,Ctor.rounding)},P.equals=P.eq=function(y){return 0===this.cmp(y)},P.floor=function(){return finalise(new this.constructor(this),this.e+1,3)},P.greaterThan=P.gt=function(y){return this.cmp(y)>0},P.greaterThanOrEqualTo=P.gte=function(y){var k=this.cmp(y);return 1==k||0===k},P.hyperbolicCosine=P.cosh=function(){var k,n,pr,rm,len,x=this,Ctor=x.constructor,one=new Ctor(1);if(!x.isFinite())return new Ctor(x.s?1/0:NaN);if(x.isZero())return one;pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+4,Ctor.rounding=1,(len=x.d.length)<32?n=(1/tinyPow(4,k=Math.ceil(len/3))).toString():(k=16,n="2.3283064365386962890625e-10"),x=taylorSeries(Ctor,1,x.times(n),new Ctor(1),!0);for(var cosh2_x,i=k,d8=new Ctor(8);i--;)cosh2_x=x.times(x),x=one.minus(cosh2_x.times(d8.minus(cosh2_x.times(d8))));return finalise(x,Ctor.precision=pr,Ctor.rounding=rm,!0)},P.hyperbolicSine=P.sinh=function(){var k,pr,rm,len,x=this,Ctor=x.constructor;if(!x.isFinite()||x.isZero())return new Ctor(x);if(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+4,Ctor.rounding=1,(len=x.d.length)<3)x=taylorSeries(Ctor,2,x,x,!0);else{k=(k=1.4*Math.sqrt(len))>16?16:0|k,x=taylorSeries(Ctor,2,x=x.times(1/tinyPow(5,k)),x,!0);for(var sinh2_x,d5=new Ctor(5),d16=new Ctor(16),d20=new Ctor(20);k--;)sinh2_x=x.times(x),x=x.times(d5.plus(sinh2_x.times(d16.times(sinh2_x).plus(d20))))}return Ctor.precision=pr,Ctor.rounding=rm,finalise(x,pr,rm,!0)},P.hyperbolicTangent=P.tanh=function(){var pr,rm,x=this,Ctor=x.constructor;return x.isFinite()?x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+7,Ctor.rounding=1,divide(x.sinh(),x.cosh(),Ctor.precision=pr,Ctor.rounding=rm)):new Ctor(x.s)},P.inverseCosine=P.acos=function(){var halfPi,x=this,Ctor=x.constructor,k=x.abs().cmp(1),pr=Ctor.precision,rm=Ctor.rounding;return-1!==k?0===k?x.isNeg()?getPi(Ctor,pr,rm):new Ctor(0):new Ctor(NaN):x.isZero()?getPi(Ctor,pr+4,rm).times(.5):(Ctor.precision=pr+6,Ctor.rounding=1,x=x.asin(),halfPi=getPi(Ctor,pr+4,rm).times(.5),Ctor.precision=pr,Ctor.rounding=rm,halfPi.minus(x))},P.inverseHyperbolicCosine=P.acosh=function(){var pr,rm,x=this,Ctor=x.constructor;return x.lte(1)?new Ctor(x.eq(1)?0:NaN):x.isFinite()?(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(Math.abs(x.e),x.sd())+4,Ctor.rounding=1,external=!1,x=x.times(x).minus(1).sqrt().plus(x),external=!0,Ctor.precision=pr,Ctor.rounding=rm,x.ln()):new Ctor(x)},P.inverseHyperbolicSine=P.asinh=function(){var pr,rm,x=this,Ctor=x.constructor;return!x.isFinite()||x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+2*Math.max(Math.abs(x.e),x.sd())+6,Ctor.rounding=1,external=!1,x=x.times(x).plus(1).sqrt().plus(x),external=!0,Ctor.precision=pr,Ctor.rounding=rm,x.ln())},P.inverseHyperbolicTangent=P.atanh=function(){var pr,rm,wpr,xsd,x=this,Ctor=x.constructor;return x.isFinite()?x.e>=0?new Ctor(x.abs().eq(1)?x.s/0:x.isZero()?x:NaN):(pr=Ctor.precision,rm=Ctor.rounding,xsd=x.sd(),Math.max(xsd,pr)<2*-x.e-1?finalise(new Ctor(x),pr,rm,!0):(Ctor.precision=wpr=xsd-x.e,x=divide(x.plus(1),new Ctor(1).minus(x),wpr+pr,1),Ctor.precision=pr+4,Ctor.rounding=1,x=x.ln(),Ctor.precision=pr,Ctor.rounding=rm,x.times(.5))):new Ctor(NaN)},P.inverseSine=P.asin=function(){var halfPi,k,pr,rm,x=this,Ctor=x.constructor;return x.isZero()?new Ctor(x):(k=x.abs().cmp(1),pr=Ctor.precision,rm=Ctor.rounding,-1!==k?0===k?((halfPi=getPi(Ctor,pr+4,rm).times(.5)).s=x.s,halfPi):new Ctor(NaN):(Ctor.precision=pr+6,Ctor.rounding=1,x=x.div(new Ctor(1).minus(x.times(x)).sqrt().plus(1)).atan(),Ctor.precision=pr,Ctor.rounding=rm,x.times(2)))},P.inverseTangent=P.atan=function(){var i,j,k,n,px,t,r,wpr,x2,x=this,Ctor=x.constructor,pr=Ctor.precision,rm=Ctor.rounding;if(x.isFinite()){if(x.isZero())return new Ctor(x);if(x.abs().eq(1)&&pr+4<=PI_PRECISION)return(r=getPi(Ctor,pr+4,rm).times(.25)).s=x.s,r}else{if(!x.s)return new Ctor(NaN);if(pr+4<=PI_PRECISION)return(r=getPi(Ctor,pr+4,rm).times(.5)).s=x.s,r}for(Ctor.precision=wpr=pr+10,Ctor.rounding=1,i=k=Math.min(28,wpr/LOG_BASE+2|0);i;--i)x=x.div(x.times(x).plus(1).sqrt().plus(1));for(external=!1,j=Math.ceil(wpr/LOG_BASE),n=1,x2=x.times(x),r=new Ctor(x),px=x;-1!==i;)if(px=px.times(x2),t=r.minus(px.div(n+=2)),px=px.times(x2),void 0!==(r=t.plus(px.div(n+=2))).d[j])for(i=j;r.d[i]===t.d[i]&&i--;);return k&&(r=r.times(2<this.d.length-2},P.isNaN=function(){return!this.s},P.isNegative=P.isNeg=function(){return this.s<0},P.isPositive=P.isPos=function(){return this.s>0},P.isZero=function(){return!!this.d&&0===this.d[0]},P.lessThan=P.lt=function(y){return this.cmp(y)<0},P.lessThanOrEqualTo=P.lte=function(y){return this.cmp(y)<1},P.logarithm=P.log=function(base){var isBase10,d,denominator,k,inf,num,sd,r,Ctor=this.constructor,pr=Ctor.precision,rm=Ctor.rounding;if(null==base)base=new Ctor(10),isBase10=!0;else{if(d=(base=new Ctor(base)).d,base.s<0||!d||!d[0]||base.eq(1))return new Ctor(NaN);isBase10=base.eq(10)}if(d=this.d,this.s<0||!d||!d[0]||this.eq(1))return new Ctor(d&&!d[0]?-1/0:1!=this.s?NaN:d?0:1/0);if(isBase10)if(d.length>1)inf=!0;else{for(k=d[0];k%10==0;)k/=10;inf=1!==k}if(external=!1,num=naturalLogarithm(this,sd=pr+5),denominator=isBase10?getLn10(Ctor,sd+10):naturalLogarithm(base,sd),checkRoundingDigits((r=divide(num,denominator,sd,1)).d,k=pr,rm))do{if(num=naturalLogarithm(this,sd+=10),denominator=isBase10?getLn10(Ctor,sd+10):naturalLogarithm(base,sd),r=divide(num,denominator,sd,1),!inf){+digitsToString(r.d).slice(k+1,k+15)+1==1e14&&(r=finalise(r,pr+1,0));break}}while(checkRoundingDigits(r.d,k+=10,rm));return external=!0,finalise(r,pr,rm)},P.minus=P.sub=function(y){var d,e,i,j,k,len,pr,rm,xd,xe,xLTy,yd,x=this,Ctor=x.constructor;if(y=new Ctor(y),!x.d||!y.d)return x.s&&y.s?x.d?y.s=-y.s:y=new Ctor(y.d||x.s!==y.s?x:NaN):y=new Ctor(NaN),y;if(x.s!=y.s)return y.s=-y.s,x.plus(y);if(xd=x.d,yd=y.d,pr=Ctor.precision,rm=Ctor.rounding,!xd[0]||!yd[0]){if(yd[0])y.s=-y.s;else{if(!xd[0])return new Ctor(3===rm?-0:0);y=new Ctor(x)}return external?finalise(y,pr,rm):y}if(e=mathfloor(y.e/LOG_BASE),xe=mathfloor(x.e/LOG_BASE),xd=xd.slice(),k=xe-e){for((xLTy=k<0)?(d=xd,k=-k,len=yd.length):(d=yd,e=xe,len=xd.length),k>(i=Math.max(Math.ceil(pr/LOG_BASE),len)+2)&&(k=i,d.length=1),d.reverse(),i=k;i--;)d.push(0);d.reverse()}else{for((xLTy=(i=xd.length)<(len=yd.length))&&(len=i),i=0;i0;--i)xd[len++]=0;for(i=yd.length;i>k;){if(xd[--i](len=(k=Math.ceil(pr/LOG_BASE))>len?k+1:len+1)&&(i=len,d.length=1),d.reverse();i--;)d.push(0);d.reverse()}for((len=xd.length)-(i=yd.length)<0&&(i=len,d=yd,yd=xd,xd=d),carry=0;i;)carry=(xd[--i]=xd[i]+yd[i]+carry)/BASE|0,xd[i]%=BASE;for(carry&&(xd.unshift(carry),++e),len=xd.length;0==xd[--len];)xd.pop();return y.d=xd,y.e=getBase10Exponent(xd,e),external?finalise(y,pr,rm):y},P.precision=P.sd=function(z){var k,x=this;if(void 0!==z&&z!==!!z&&1!==z&&0!==z)throw Error(invalidArgument+z);return x.d?(k=getPrecision(x.d),z&&x.e+1>k&&(k=x.e+1)):k=NaN,k},P.round=function(){var x=this,Ctor=x.constructor;return finalise(new Ctor(x),x.e+1,Ctor.rounding)},P.sine=P.sin=function(){var pr,rm,x=this,Ctor=x.constructor;return x.isFinite()?x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+LOG_BASE,Ctor.rounding=1,x=function sine(Ctor,x){var k,len=x.d.length;if(len<3)return x.isZero()?x:taylorSeries(Ctor,2,x,x);k=(k=1.4*Math.sqrt(len))>16?16:0|k,x=x.times(1/tinyPow(5,k)),x=taylorSeries(Ctor,2,x,x);for(var sin2_x,d5=new Ctor(5),d16=new Ctor(16),d20=new Ctor(20);k--;)sin2_x=x.times(x),x=x.times(d5.plus(sin2_x.times(d16.times(sin2_x).minus(d20))));return x}(Ctor,toLessThanHalfPi(Ctor,x)),Ctor.precision=pr,Ctor.rounding=rm,finalise(quadrant>2?x.neg():x,pr,rm,!0)):new Ctor(NaN)},P.squareRoot=P.sqrt=function(){var m,n,sd,r,rep,t,x=this,d=x.d,e=x.e,s=x.s,Ctor=x.constructor;if(1!==s||!d||!d[0])return new Ctor(!s||s<0&&(!d||d[0])?NaN:d?x:1/0);for(external=!1,0==(s=Math.sqrt(+x))||s==1/0?(((n=digitsToString(d)).length+e)%2==0&&(n+="0"),s=Math.sqrt(n),e=mathfloor((e+1)/2)-(e<0||e%2),r=new Ctor(n=s==1/0?"5e"+e:(n=s.toExponential()).slice(0,n.indexOf("e")+1)+e)):r=new Ctor(s.toString()),sd=(e=Ctor.precision)+3;;)if(r=(t=r).plus(divide(x,t,sd+2,1)).times(.5),digitsToString(t.d).slice(0,sd)===(n=digitsToString(r.d)).slice(0,sd)){if("9999"!=(n=n.slice(sd-3,sd+1))&&(rep||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(finalise(r,e+1,1),m=!r.times(r).eq(x));break}if(!rep&&(finalise(t,e+1,0),t.times(t).eq(x))){r=t;break}sd+=4,rep=1}return external=!0,finalise(r,e,Ctor.rounding,m)},P.tangent=P.tan=function(){var pr,rm,x=this,Ctor=x.constructor;return x.isFinite()?x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+10,Ctor.rounding=1,(x=x.sin()).s=1,x=divide(x,new Ctor(1).minus(x.times(x)).sqrt(),pr+10,0),Ctor.precision=pr,Ctor.rounding=rm,finalise(2==quadrant||4==quadrant?x.neg():x,pr,rm,!0)):new Ctor(NaN)},P.times=P.mul=function(y){var carry,e,i,k,r,rL,t,xdL,ydL,x=this,Ctor=x.constructor,xd=x.d,yd=(y=new Ctor(y)).d;if(y.s*=x.s,!(xd&&xd[0]&&yd&&yd[0]))return new Ctor(!y.s||xd&&!xd[0]&&!yd||yd&&!yd[0]&&!xd?NaN:xd&&yd?0*y.s:y.s/0);for(e=mathfloor(x.e/LOG_BASE)+mathfloor(y.e/LOG_BASE),(xdL=xd.length)<(ydL=yd.length)&&(r=xd,xd=yd,yd=r,rL=xdL,xdL=ydL,ydL=rL),r=[],i=rL=xdL+ydL;i--;)r.push(0);for(i=ydL;--i>=0;){for(carry=0,k=xdL+i;k>i;)t=r[k]+yd[i]*xd[k-i-1]+carry,r[k--]=t%BASE|0,carry=t/BASE|0;r[k]=(r[k]+carry)%BASE|0}for(;!r[--rL];)r.pop();return carry?++e:r.shift(),y.d=r,y.e=getBase10Exponent(r,e),external?finalise(y,Ctor.precision,Ctor.rounding):y},P.toBinary=function(sd,rm){return toStringBinary(this,2,sd,rm)},P.toDecimalPlaces=P.toDP=function(dp,rm){var x=this,Ctor=x.constructor;return x=new Ctor(x),void 0===dp?x:(checkInt32(dp,0,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),finalise(x,dp+x.e+1,rm))},P.toExponential=function(dp,rm){var str,x=this,Ctor=x.constructor;return void 0===dp?str=finiteToString(x,!0):(checkInt32(dp,0,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),str=finiteToString(x=finalise(new Ctor(x),dp+1,rm),!0,dp+1)),x.isNeg()&&!x.isZero()?"-"+str:str},P.toFixed=function(dp,rm){var str,y,x=this,Ctor=x.constructor;return void 0===dp?str=finiteToString(x):(checkInt32(dp,0,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),str=finiteToString(y=finalise(new Ctor(x),dp+x.e+1,rm),!1,dp+y.e+1)),x.isNeg()&&!x.isZero()?"-"+str:str},P.toFraction=function(maxD){var d,d0,d1,d2,e,k,n,n0,n1,pr,q,r,x=this,xd=x.d,Ctor=x.constructor;if(!xd)return new Ctor(x);if(n1=d0=new Ctor(1),d1=n0=new Ctor(0),k=(e=(d=new Ctor(d1)).e=getPrecision(xd)-x.e-1)%LOG_BASE,d.d[0]=mathpow(10,k<0?LOG_BASE+k:k),null==maxD)maxD=e>0?d:n1;else{if(!(n=new Ctor(maxD)).isInt()||n.lt(n1))throw Error(invalidArgument+n);maxD=n.gt(d)?e>0?d:n1:n}for(external=!1,n=new Ctor(digitsToString(xd)),pr=Ctor.precision,Ctor.precision=e=xd.length*LOG_BASE*2;q=divide(n,d,0,1,1),1!=(d2=d0.plus(q.times(d1))).cmp(maxD);)d0=d1,d1=d2,d2=n1,n1=n0.plus(q.times(d2)),n0=d2,d2=d,d=n.minus(q.times(d2)),n=d2;return d2=divide(maxD.minus(d0),d1,0,1,1),n0=n0.plus(d2.times(n1)),d0=d0.plus(d2.times(d1)),n0.s=n1.s=x.s,r=divide(n1,d1,e,1).minus(x).abs().cmp(divide(n0,d0,e,1).minus(x).abs())<1?[n1,d1]:[n0,d0],Ctor.precision=pr,external=!0,r},P.toHexadecimal=P.toHex=function(sd,rm){return toStringBinary(this,16,sd,rm)},P.toNearest=function(y,rm){var x=this,Ctor=x.constructor;if(x=new Ctor(x),null==y){if(!x.d)return x;y=new Ctor(1),rm=Ctor.rounding}else{if(y=new Ctor(y),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),!x.d)return y.s?x:y;if(!y.d)return y.s&&(y.s=x.s),y}return y.d[0]?(external=!1,x=divide(x,y,0,rm,1).times(y),external=!0,finalise(x)):(y.s=x.s,x=y),x},P.toNumber=function(){return+this},P.toOctal=function(sd,rm){return toStringBinary(this,8,sd,rm)},P.toPower=P.pow=function(y){var e,k,pr,r,rm,s,x=this,Ctor=x.constructor,yn=+(y=new Ctor(y));if(!(x.d&&y.d&&x.d[0]&&y.d[0]))return new Ctor(mathpow(+x,yn));if((x=new Ctor(x)).eq(1))return x;if(pr=Ctor.precision,rm=Ctor.rounding,y.eq(1))return finalise(x,pr,rm);if((e=mathfloor(y.e/LOG_BASE))>=y.d.length-1&&(k=yn<0?-yn:yn)<=9007199254740991)return r=intPow(Ctor,x,k,pr),y.s<0?new Ctor(1).div(r):finalise(r,pr,rm);if((s=x.s)<0){if(eCtor.maxE+1||e0?s/0:0):(external=!1,Ctor.rounding=x.s=1,k=Math.min(12,(e+"").length),(r=naturalExponential(y.times(naturalLogarithm(x,pr+k)),pr)).d&&checkRoundingDigits((r=finalise(r,pr+5,1)).d,pr,rm)&&(e=pr+10,+digitsToString((r=finalise(naturalExponential(y.times(naturalLogarithm(x,e+k)),e),e+5,1)).d).slice(pr+1,pr+15)+1==1e14&&(r=finalise(r,pr+1,0))),r.s=s,external=!0,Ctor.rounding=rm,finalise(r,pr,rm))},P.toPrecision=function(sd,rm){var str,x=this,Ctor=x.constructor;return void 0===sd?str=finiteToString(x,x.e<=Ctor.toExpNeg||x.e>=Ctor.toExpPos):(checkInt32(sd,1,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),str=finiteToString(x=finalise(new Ctor(x),sd,rm),sd<=x.e||x.e<=Ctor.toExpNeg,sd)),x.isNeg()&&!x.isZero()?"-"+str:str},P.toSignificantDigits=P.toSD=function(sd,rm){var Ctor=this.constructor;return void 0===sd?(sd=Ctor.precision,rm=Ctor.rounding):(checkInt32(sd,1,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8)),finalise(new Ctor(this),sd,rm)},P.toString=function(){var x=this,Ctor=x.constructor,str=finiteToString(x,x.e<=Ctor.toExpNeg||x.e>=Ctor.toExpPos);return x.isNeg()&&!x.isZero()?"-"+str:str},P.truncated=P.trunc=function(){return finalise(new this.constructor(this),this.e+1,1)},P.valueOf=P.toJSON=function(){var x=this,Ctor=x.constructor,str=finiteToString(x,x.e<=Ctor.toExpNeg||x.e>=Ctor.toExpPos);return x.isNeg()?"-"+str:str};var divide=function(){function multiplyInteger(x,k,base){var temp,carry=0,i=x.length;for(x=x.slice();i--;)temp=x[i]*k+carry,x[i]=temp%base|0,carry=temp/base|0;return carry&&x.unshift(carry),x}function compare(a,b,aL,bL){var i,r;if(aL!=bL)r=aL>bL?1:-1;else for(i=r=0;ib[i]?1:-1;break}return r}function subtract(a,b,aL,base){for(var i=0;aL--;)a[aL]-=i,i=a[aL]1;)a.shift()}return function(x,y,pr,rm,dp,base){var cmp,e,i,k,logBase,more,prod,prodL,q,qd,rem,remL,rem0,sd,t,xi,xL,yd0,yL,yz,Ctor=x.constructor,sign=x.s==y.s?1:-1,xd=x.d,yd=y.d;if(!(xd&&xd[0]&&yd&&yd[0]))return new Ctor(x.s&&y.s&&(xd?!yd||xd[0]!=yd[0]:yd)?xd&&0==xd[0]||!yd?0*sign:sign/0:NaN);for(base?(logBase=1,e=x.e-y.e):(base=BASE,logBase=LOG_BASE,e=mathfloor(x.e/logBase)-mathfloor(y.e/logBase)),yL=yd.length,xL=xd.length,qd=(q=new Ctor(sign)).d=[],i=0;yd[i]==(xd[i]||0);i++);if(yd[i]>(xd[i]||0)&&e--,null==pr?(sd=pr=Ctor.precision,rm=Ctor.rounding):sd=dp?pr+(x.e-y.e)+1:pr,sd<0)qd.push(1),more=!0;else{if(sd=sd/logBase+2|0,i=0,1==yL){for(k=0,yd=yd[0],sd++;(i1&&(yd=multiplyInteger(yd,k,base),xd=multiplyInteger(xd,k,base),yL=yd.length,xL=xd.length),xi=yL,remL=(rem=xd.slice(0,yL)).length;remL=base/2&&++yd0;do{k=0,(cmp=compare(yd,rem,yL,remL))<0?(rem0=rem[0],yL!=remL&&(rem0=rem0*base+(rem[1]||0)),(k=rem0/yd0|0)>1?(k>=base&&(k=base-1),1==(cmp=compare(prod=multiplyInteger(yd,k,base),rem,prodL=prod.length,remL=rem.length))&&(k--,subtract(prod,yL=10;k/=10)i++;q.e=i+e*logBase-1,finalise(q,dp?pr+q.e+1:pr,rm,more)}return q}}();function finalise(x,sd,rm,isTruncated){var digits,i,j,k,rd,roundUp,w,xd,xdi,Ctor=x.constructor;out:if(null!=sd){if(!(xd=x.d))return x;for(digits=1,k=xd[0];k>=10;k/=10)digits++;if((i=sd-digits)<0)i+=LOG_BASE,j=sd,rd=(w=xd[xdi=0])/mathpow(10,digits-j-1)%10|0;else if((xdi=Math.ceil((i+1)/LOG_BASE))>=(k=xd.length)){if(!isTruncated)break out;for(;k++<=xdi;)xd.push(0);w=rd=0,digits=1,j=(i%=LOG_BASE)-LOG_BASE+1}else{for(w=k=xd[xdi],digits=1;k>=10;k/=10)digits++;rd=(j=(i%=LOG_BASE)-LOG_BASE+digits)<0?0:w/mathpow(10,digits-j-1)%10|0}if(isTruncated=isTruncated||sd<0||void 0!==xd[xdi+1]||(j<0?w:w%mathpow(10,digits-j-1)),roundUp=rm<4?(rd||isTruncated)&&(0==rm||rm==(x.s<0?3:2)):rd>5||5==rd&&(4==rm||isTruncated||6==rm&&(i>0?j>0?w/mathpow(10,digits-j):0:xd[xdi-1])%10&1||rm==(x.s<0?8:7)),sd<1||!xd[0])return xd.length=0,roundUp?(sd-=x.e+1,xd[0]=mathpow(10,(LOG_BASE-sd%LOG_BASE)%LOG_BASE),x.e=-sd||0):xd[0]=x.e=0,x;if(0==i?(xd.length=xdi,k=1,xdi--):(xd.length=xdi+1,k=mathpow(10,LOG_BASE-i),xd[xdi]=j>0?(w/mathpow(10,digits-j)%mathpow(10,j)|0)*k:0),roundUp)for(;;){if(0==xdi){for(i=1,j=xd[0];j>=10;j/=10)i++;for(j=xd[0]+=k,k=1;j>=10;j/=10)k++;i!=k&&(x.e++,xd[0]==BASE&&(xd[0]=1));break}if(xd[xdi]+=k,xd[xdi]!=BASE)break;xd[xdi--]=0,k=1}for(i=xd.length;0===xd[--i];)xd.pop()}return external&&(x.e>Ctor.maxE?(x.d=null,x.e=NaN):x.e0?str=str.charAt(0)+"."+str.slice(1)+getZeroString(k):len>1&&(str=str.charAt(0)+"."+str.slice(1)),str=str+(x.e<0?"e":"e+")+x.e):e<0?(str="0."+getZeroString(-e-1)+str,sd&&(k=sd-len)>0&&(str+=getZeroString(k))):e>=len?(str+=getZeroString(e+1-len),sd&&(k=sd-e-1)>0&&(str=str+"."+getZeroString(k))):((k=e+1)0&&(e+1===len&&(str+="."),str+=getZeroString(k))),str}function getBase10Exponent(digits,e){var w=digits[0];for(e*=LOG_BASE;w>=10;w/=10)e++;return e}function getLn10(Ctor,sd,pr){if(sd>LN10_PRECISION)throw external=!0,pr&&(Ctor.precision=pr),Error(precisionLimitExceeded);return finalise(new Ctor(LN10),sd,1,!0)}function getPi(Ctor,sd,rm){if(sd>PI_PRECISION)throw Error(precisionLimitExceeded);return finalise(new Ctor(PI),sd,rm,!0)}function getPrecision(digits){var w=digits.length-1,len=w*LOG_BASE+1;if(w=digits[w]){for(;w%10==0;w/=10)len--;for(w=digits[0];w>=10;w/=10)len++}return len}function getZeroString(k){for(var zs="";k--;)zs+="0";return zs}function intPow(Ctor,x,n,pr){var isTruncated,r=new Ctor(1),k=Math.ceil(pr/LOG_BASE+4);for(external=!1;;){if(n%2&&truncate((r=r.times(x)).d,k)&&(isTruncated=!0),0===(n=mathfloor(n/2))){n=r.d.length-1,isTruncated&&0===r.d[n]&&++r.d[n];break}truncate((x=x.times(x)).d,k)}return external=!0,r}function isOdd(n){return 1&n.d[n.d.length-1]}function maxOrMin(Ctor,args,ltgt){for(var y,x=new Ctor(args[0]),i=0;++i17)return new Ctor(x.d?x.d[0]?x.s<0?0:1/0:1:x.s?x.s<0?0:x:NaN);for(null==sd?(external=!1,wpr=pr):wpr=sd,t=new Ctor(.03125);x.e>-2;)x=x.times(t),k+=5;for(wpr+=guard=Math.log(mathpow(2,k))/Math.LN10*2+5|0,denominator=pow=sum=new Ctor(1),Ctor.precision=wpr;;){if(pow=finalise(pow.times(x),wpr,1),denominator=denominator.times(++i),digitsToString((t=sum.plus(divide(pow,denominator,wpr,1))).d).slice(0,wpr)===digitsToString(sum.d).slice(0,wpr)){for(j=k;j--;)sum=finalise(sum.times(sum),wpr,1);if(null!=sd)return Ctor.precision=pr,sum;if(!(rep<3&&checkRoundingDigits(sum.d,wpr-guard,rm,rep)))return finalise(sum,Ctor.precision=pr,rm,external=!0);Ctor.precision=wpr+=10,denominator=pow=t=new Ctor(1),i=0,rep++}sum=t}}function naturalLogarithm(y,sd){var c,c0,denominator,e,numerator,rep,sum,t,wpr,x1,x2,n=1,x=y,xd=x.d,Ctor=x.constructor,rm=Ctor.rounding,pr=Ctor.precision;if(x.s<0||!xd||!xd[0]||!x.e&&1==xd[0]&&1==xd.length)return new Ctor(xd&&!xd[0]?-1/0:1!=x.s?NaN:xd?0:x);if(null==sd?(external=!1,wpr=pr):wpr=sd,Ctor.precision=wpr+=10,c0=(c=digitsToString(xd)).charAt(0),!(Math.abs(e=x.e)<15e14))return t=getLn10(Ctor,wpr+2,pr).times(e+""),x=naturalLogarithm(new Ctor(c0+"."+c.slice(1)),wpr-10).plus(t),Ctor.precision=pr,null==sd?finalise(x,pr,rm,external=!0):x;for(;c0<7&&1!=c0||1==c0&&c.charAt(1)>3;)c0=(c=digitsToString((x=x.times(y)).d)).charAt(0),n++;for(e=x.e,c0>1?(x=new Ctor("0."+c),e++):x=new Ctor(c0+"."+c.slice(1)),x1=x,sum=numerator=x=divide(x.minus(1),x.plus(1),wpr,1),x2=finalise(x.times(x),wpr,1),denominator=3;;){if(numerator=finalise(numerator.times(x2),wpr,1),digitsToString((t=sum.plus(divide(numerator,new Ctor(denominator),wpr,1))).d).slice(0,wpr)===digitsToString(sum.d).slice(0,wpr)){if(sum=sum.times(2),0!==e&&(sum=sum.plus(getLn10(Ctor,wpr+2,pr).times(e+""))),sum=divide(sum,new Ctor(n),wpr,1),null!=sd)return Ctor.precision=pr,sum;if(!checkRoundingDigits(sum.d,wpr-10,rm,rep))return finalise(sum,Ctor.precision=pr,rm,external=!0);Ctor.precision=wpr+=10,t=numerator=x=divide(x1.minus(1),x1.plus(1),wpr,1),x2=finalise(x.times(x),wpr,1),denominator=rep=1}sum=t,denominator+=2}}function nonFiniteToString(x){return String(x.s*x.s/0)}function parseDecimal(x,str){var e,i,len;for((e=str.indexOf("."))>-1&&(str=str.replace(".","")),(i=str.search(/e/i))>0?(e<0&&(e=i),e+=+str.slice(i+1),str=str.substring(0,i)):e<0&&(e=str.length),i=0;48===str.charCodeAt(i);i++);for(len=str.length;48===str.charCodeAt(len-1);--len);if(str=str.slice(i,len)){if(len-=i,x.e=e=e-i-1,x.d=[],i=(e+1)%LOG_BASE,e<0&&(i+=LOG_BASE),ix.constructor.maxE?(x.d=null,x.e=NaN):x.e-1){if(str=str.replace(/(\d)_(?=\d)/g,"$1"),isDecimal.test(str))return parseDecimal(x,str)}else if("Infinity"===str||"NaN"===str)return+str||(x.s=NaN),x.e=NaN,x.d=null,x;if(isHex.test(str))base=16,str=str.toLowerCase();else if(isBinary.test(str))base=2;else{if(!isOctal.test(str))throw Error(invalidArgument+str);base=8}for((i=str.search(/p/i))>0?(p=+str.slice(i+1),str=str.substring(2,i)):str=str.slice(2),isFloat=(i=str.indexOf("."))>=0,Ctor=x.constructor,isFloat&&(i=(len=(str=str.replace(".","")).length)-i,divisor=intPow(Ctor,new Ctor(base),i,2*i)),i=xe=(xd=convertBase(str,base,BASE)).length-1;0===xd[i];--i)xd.pop();return i<0?new Ctor(0*x.s):(x.e=getBase10Exponent(xd,xe),x.d=xd,external=!1,isFloat&&(x=divide(x,divisor,4*len)),p&&(x=x.times(Math.abs(p)<54?mathpow(2,p):Decimal.pow(2,p))),external=!0,x)}function taylorSeries(Ctor,n,x,y,isHyperbolic){var j,t,u,x2,pr=Ctor.precision,k=Math.ceil(pr/LOG_BASE);for(external=!1,x2=x.times(x),u=new Ctor(y);;){if(t=divide(u.times(x2),new Ctor(n++*n++),pr,1),u=isHyperbolic?y.plus(t):y.minus(t),y=divide(t.times(x2),new Ctor(n++*n++),pr,1),void 0!==(t=u.plus(y)).d[k]){for(j=k;t.d[j]===u.d[j]&&j--;);if(-1==j)break}j=u,u=y,y=t,t=j}return external=!0,t.d.length=k+1,t}function tinyPow(b,e){for(var n=b;--e;)n*=b;return n}function toLessThanHalfPi(Ctor,x){var t,isNeg=x.s<0,pi=getPi(Ctor,Ctor.precision,1),halfPi=pi.times(.5);if((x=x.abs()).lte(halfPi))return quadrant=isNeg?4:1,x;if((t=x.divToInt(pi)).isZero())quadrant=isNeg?3:2;else{if((x=x.minus(t.times(pi))).lte(halfPi))return quadrant=isOdd(t)?isNeg?2:3:isNeg?4:1,x;quadrant=isOdd(t)?isNeg?1:4:isNeg?3:2}return x.minus(pi).abs()}function toStringBinary(x,baseOut,sd,rm){var base,e,i,k,len,roundUp,str,xd,y,Ctor=x.constructor,isExp=void 0!==sd;if(isExp?(checkInt32(sd,1,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8)):(sd=Ctor.precision,rm=Ctor.rounding),x.isFinite()){for(isExp?(base=2,16==baseOut?sd=4*sd-3:8==baseOut&&(sd=3*sd-2)):base=baseOut,(i=(str=finiteToString(x)).indexOf("."))>=0&&(str=str.replace(".",""),(y=new Ctor(1)).e=str.length-i,y.d=convertBase(finiteToString(y),10,base),y.e=y.d.length),e=len=(xd=convertBase(str,10,base)).length;0==xd[--len];)xd.pop();if(xd[0]){if(i<0?e--:((x=new Ctor(x)).d=xd,x.e=e,xd=(x=divide(x,y,sd,rm,0,base)).d,e=x.e,roundUp=inexact),i=xd[sd],k=base/2,roundUp=roundUp||void 0!==xd[sd+1],roundUp=rm<4?(void 0!==i||roundUp)&&(0===rm||rm===(x.s<0?3:2)):i>k||i===k&&(4===rm||roundUp||6===rm&&1&xd[sd-1]||rm===(x.s<0?8:7)),xd.length=sd,roundUp)for(;++xd[--sd]>base-1;)xd[sd]=0,sd||(++e,xd.unshift(1));for(len=xd.length;!xd[len-1];--len);for(i=0,str="";i1)if(16==baseOut||8==baseOut){for(i=16==baseOut?4:3,--len;len%i;len++)str+="0";for(len=(xd=convertBase(str,base,baseOut)).length;!xd[len-1];--len);for(i=1,str="1.";ilen)for(e-=len;e--;)str+="0";else elen)return arr.length=len,!0}function abs(x){return new this(x).abs()}function acos(x){return new this(x).acos()}function acosh(x){return new this(x).acosh()}function add(x,y){return new this(x).plus(y)}function asin(x){return new this(x).asin()}function asinh(x){return new this(x).asinh()}function atan(x){return new this(x).atan()}function atanh(x){return new this(x).atanh()}function atan2(y,x){y=new this(y),x=new this(x);var r,pr=this.precision,rm=this.rounding,wpr=pr+4;return y.s&&x.s?y.d||x.d?!x.d||y.isZero()?(r=x.s<0?getPi(this,pr,rm):new this(0)).s=y.s:!y.d||x.isZero()?(r=getPi(this,wpr,1).times(.5)).s=y.s:x.s<0?(this.precision=wpr,this.rounding=1,r=this.atan(divide(y,x,wpr,1)),x=getPi(this,wpr,1),this.precision=pr,this.rounding=rm,r=y.s<0?r.minus(x):r.plus(x)):r=this.atan(divide(y,x,wpr,1)):(r=getPi(this,wpr,1).times(x.s>0?.25:.75)).s=y.s:r=new this(NaN),r}function cbrt(x){return new this(x).cbrt()}function ceil(x){return finalise(x=new this(x),x.e+1,2)}function clamp(x,min,max){return new this(x).clamp(min,max)}function config(obj){if(!obj||"object"!=typeof obj)throw Error(decimalError+"Object expected");var i,p,v,useDefaults=!0===obj.defaults,ps=["precision",1,MAX_DIGITS,"rounding",0,8,"toExpNeg",-EXP_LIMIT,0,"toExpPos",0,EXP_LIMIT,"maxE",0,EXP_LIMIT,"minE",-EXP_LIMIT,0,"modulo",0,9];for(i=0;i=ps[i+1]&&v<=ps[i+2]))throw Error(invalidArgument+p+": "+v);this[p]=v}if(p="crypto",useDefaults&&(this[p]=DEFAULTS[p]),void 0!==(v=obj[p])){if(!0!==v&&!1!==v&&0!==v&&1!==v)throw Error(invalidArgument+p+": "+v);if(v){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(cryptoUnavailable);this[p]=!0}else this[p]=!1}return this}function cos(x){return new this(x).cos()}function cosh(x){return new this(x).cosh()}function div(x,y){return new this(x).div(y)}function exp(x){return new this(x).exp()}function floor(x){return finalise(x=new this(x),x.e+1,3)}function hypot(){var i,n,t=new this(0);for(external=!1,i=0;i=429e7?d[i]=crypto.getRandomValues(new Uint32Array(1))[0]:rd[i++]=n%1e7;else{if(!crypto.randomBytes)throw Error(cryptoUnavailable);for(d=crypto.randomBytes(k*=4);i=214e7?crypto.randomBytes(4).copy(d,i):(rd.push(n%1e7),i+=4);i=k/4}else for(;i=10;n/=10)k++;kDecimal.maxE?(x.e=NaN,x.d=null):v.e=10;i/=10)e++;return void(external?e>Decimal.maxE?(x.e=NaN,x.d=null):e80*dim){minX=maxX=data[0],minY=maxY=data[1];for(var i=dim;imaxX&&(maxX=x),y>maxY&&(maxY=y);invSize=0!==(invSize=Math.max(maxX-minX,maxY-minY))?32767/invSize:0}return earcutLinked(outerNode,triangles,dim,minX,minY,invSize,0),triangles}function linkedList(data,start,end,dim,clockwise){var i,last;if(clockwise===signedArea(data,start,end,dim)>0)for(i=start;i=start;i-=dim)last=insertNode(i,data[i],data[i+1],last);return last&&equals(last,last.next)&&(removeNode(last),last=last.next),last}function filterPoints(start,end){if(!start)return start;end||(end=start);var again,p=start;do{if(again=!1,p.steiner||!equals(p,p.next)&&0!==area(p.prev,p,p.next))p=p.next;else{if(removeNode(p),(p=end=p.prev)===p.next)break;again=!0}}while(again||p!==end);return end}function earcutLinked(ear,triangles,dim,minX,minY,invSize,pass){if(ear){!pass&&invSize&&function indexCurve(start,minX,minY,invSize){var p=start;do{0===p.z&&(p.z=zOrder(p.x,p.y,minX,minY,invSize)),p.prevZ=p.prev,p.nextZ=p.next,p=p.next}while(p!==start);p.prevZ.nextZ=null,p.prevZ=null,function sortLinked(list){var i,p,q,e,tail,numMerges,pSize,qSize,inSize=1;do{for(p=list,list=null,tail=null,numMerges=0;p;){for(numMerges++,q=p,pSize=0,i=0;i0||qSize>0&&q;)0!==pSize&&(0===qSize||!q||p.z<=q.z)?(e=p,p=p.nextZ,pSize--):(e=q,q=q.nextZ,qSize--),tail?tail.nextZ=e:list=e,e.prevZ=tail,tail=e;p=q}tail.nextZ=null,inSize*=2}while(numMerges>1);return list}(p)}(ear,minX,minY,invSize);for(var prev,next,stop=ear;ear.prev!==ear.next;)if(prev=ear.prev,next=ear.next,invSize?isEarHashed(ear,minX,minY,invSize):isEar(ear))triangles.push(prev.i/dim|0),triangles.push(ear.i/dim|0),triangles.push(next.i/dim|0),removeNode(ear),ear=next.next,stop=next.next;else if((ear=next)===stop){pass?1===pass?earcutLinked(ear=cureLocalIntersections(filterPoints(ear),triangles,dim),triangles,dim,minX,minY,invSize,2):2===pass&&splitEarcut(ear,triangles,dim,minX,minY,invSize):earcutLinked(filterPoints(ear),triangles,dim,minX,minY,invSize,1);break}}}function isEar(ear){var a=ear.prev,b=ear,c=ear.next;if(area(a,b,c)>=0)return!1;for(var ax=a.x,bx=b.x,cx=c.x,ay=a.y,by=b.y,cy=c.y,x0=axbx?ax>cx?ax:cx:bx>cx?bx:cx,y1=ay>by?ay>cy?ay:cy:by>cy?by:cy,p=c.next;p!==a;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function isEarHashed(ear,minX,minY,invSize){var a=ear.prev,b=ear,c=ear.next;if(area(a,b,c)>=0)return!1;for(var ax=a.x,bx=b.x,cx=c.x,ay=a.y,by=b.y,cy=c.y,x0=axbx?ax>cx?ax:cx:bx>cx?bx:cx,y1=ay>by?ay>cy?ay:cy:by>cy?by:cy,minZ=zOrder(x0,y0,minX,minY,invSize),maxZ=zOrder(x1,y1,minX,minY,invSize),p=ear.prevZ,n=ear.nextZ;p&&p.z>=minZ&&n&&n.z<=maxZ;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&p!==a&&p!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,n.x>=x0&&n.x<=x1&&n.y>=y0&&n.y<=y1&&n!==a&&n!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,n.x,n.y)&&area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}for(;p&&p.z>=minZ;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&p!==a&&p!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;n&&n.z<=maxZ;){if(n.x>=x0&&n.x<=x1&&n.y>=y0&&n.y<=y1&&n!==a&&n!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,n.x,n.y)&&area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}return!0}function cureLocalIntersections(start,triangles,dim){var p=start;do{var a=p.prev,b=p.next.next;!equals(a,b)&&intersects(a,p,p.next,b)&&locallyInside(a,b)&&locallyInside(b,a)&&(triangles.push(a.i/dim|0),triangles.push(p.i/dim|0),triangles.push(b.i/dim|0),removeNode(p),removeNode(p.next),p=start=b),p=p.next}while(p!==start);return filterPoints(p)}function splitEarcut(start,triangles,dim,minX,minY,invSize){var a=start;do{for(var b=a.next.next;b!==a.prev;){if(a.i!==b.i&&isValidDiagonal(a,b)){var c=splitPolygon(a,b);return a=filterPoints(a,a.next),c=filterPoints(c,c.next),earcutLinked(a,triangles,dim,minX,minY,invSize,0),void earcutLinked(c,triangles,dim,minX,minY,invSize,0)}b=b.next}a=a.next}while(a!==start)}function compareX(a,b){return a.x-b.x}function eliminateHole(hole,outerNode){var bridge=function findHoleBridge(hole,outerNode){var m,p=outerNode,hx=hole.x,hy=hole.y,qx=-1/0;do{if(hy<=p.y&&hy>=p.next.y&&p.next.y!==p.y){var x=p.x+(hy-p.y)*(p.next.x-p.x)/(p.next.y-p.y);if(x<=hx&&x>qx&&(qx=x,m=p.x=p.x&&p.x>=mx&&hx!==p.x&&pointInTriangle(hym.x||p.x===m.x&§orContainsSector(m,p)))&&(m=p,tanMin=tan)),p=p.next}while(p!==stop);return m}(hole,outerNode);if(!bridge)return outerNode;var bridgeReverse=splitPolygon(bridge,hole);return filterPoints(bridgeReverse,bridgeReverse.next),filterPoints(bridge,bridge.next)}function sectorContainsSector(m,p){return area(m.prev,m,p.prev)<0&&area(p.next,m,m.next)<0}function zOrder(x,y,minX,minY,invSize){return(x=1431655765&((x=858993459&((x=252645135&((x=16711935&((x=(x-minX)*invSize|0)|x<<8))|x<<4))|x<<2))|x<<1))|(y=1431655765&((y=858993459&((y=252645135&((y=16711935&((y=(y-minY)*invSize|0)|y<<8))|y<<4))|y<<2))|y<<1))<<1}function getLeftmost(start){var p=start,leftmost=start;do{(p.x=(ax-px)*(cy-py)&&(ax-px)*(by-py)>=(bx-px)*(ay-py)&&(bx-px)*(cy-py)>=(cx-px)*(by-py)}function isValidDiagonal(a,b){return a.next.i!==b.i&&a.prev.i!==b.i&&!function intersectsPolygon(a,b){var p=a;do{if(p.i!==a.i&&p.next.i!==a.i&&p.i!==b.i&&p.next.i!==b.i&&intersects(p,p.next,a,b))return!0;p=p.next}while(p!==a);return!1}(a,b)&&(locallyInside(a,b)&&locallyInside(b,a)&&function middleInside(a,b){var p=a,inside=!1,px=(a.x+b.x)/2,py=(a.y+b.y)/2;do{p.y>py!=p.next.y>py&&p.next.y!==p.y&&px<(p.next.x-p.x)*(py-p.y)/(p.next.y-p.y)+p.x&&(inside=!inside),p=p.next}while(p!==a);return inside}(a,b)&&(area(a.prev,a,b.prev)||area(a,b.prev,b))||equals(a,b)&&area(a.prev,a,a.next)>0&&area(b.prev,b,b.next)>0)}function area(p,q,r){return(q.y-p.y)*(r.x-q.x)-(q.x-p.x)*(r.y-q.y)}function equals(p1,p2){return p1.x===p2.x&&p1.y===p2.y}function intersects(p1,q1,p2,q2){var o1=sign(area(p1,q1,p2)),o2=sign(area(p1,q1,q2)),o3=sign(area(p2,q2,p1)),o4=sign(area(p2,q2,q1));return o1!==o2&&o3!==o4||(!(0!==o1||!onSegment(p1,p2,q1))||(!(0!==o2||!onSegment(p1,q2,q1))||(!(0!==o3||!onSegment(p2,p1,q2))||!(0!==o4||!onSegment(p2,q1,q2)))))}function onSegment(p,q,r){return q.x<=Math.max(p.x,r.x)&&q.x>=Math.min(p.x,r.x)&&q.y<=Math.max(p.y,r.y)&&q.y>=Math.min(p.y,r.y)}function sign(num){return num>0?1:num<0?-1:0}function locallyInside(a,b){return area(a.prev,a,a.next)<0?area(a,b,a.next)>=0&&area(a,a.prev,b)>=0:area(a,b,a.prev)<0||area(a,a.next,b)<0}function splitPolygon(a,b){var a2=new Node(a.i,a.x,a.y),b2=new Node(b.i,b.x,b.y),an=a.next,bp=b.prev;return a.next=b,b.prev=a,a2.next=an,an.prev=a2,b2.next=a2,a2.prev=b2,bp.next=b2,b2.prev=bp,b2}function insertNode(i,x,y,last){var p=new Node(i,x,y);return last?(p.next=last.next,p.prev=last,last.next.prev=p,last.next=p):(p.prev=p,p.next=p),p}function removeNode(p){p.next.prev=p.prev,p.prev.next=p.next,p.prevZ&&(p.prevZ.nextZ=p.nextZ),p.nextZ&&(p.nextZ.prevZ=p.prevZ)}function Node(i,x,y){this.i=i,this.x=x,this.y=y,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function signedArea(data,start,end,dim){for(var sum=0,i=start,j=end-dim;i0&&(holeIndex+=data[i-1].length,result.holes.push(holeIndex))}return result}},"./node_modules/expression-eval/index.js":function(module,__unused_webpack_exports,__webpack_require__){const jsep=__webpack_require__("./node_modules/jsep/build/jsep.js"),binops={"||":function(a,b){return a||b},"&&":function(a,b){return a&&b},"|":function(a,b){return a|b},"^":function(a,b){return a^b},"&":function(a,b){return a&b},"==":function(a,b){return a==b},"!=":function(a,b){return a!=b},"===":function(a,b){return a===b},"!==":function(a,b){return a!==b},"<":function(a,b){return a":function(a,b){return a>b},"<=":function(a,b){return a<=b},">=":function(a,b){return a>=b},"<<":function(a,b){return a<>":function(a,b){return a>>b},">>>":function(a,b){return a>>>b},"+":function(a,b){return a+b},"-":function(a,b){return a-b},"*":function(a,b){return a*b},"/":function(a,b){return a/b},"%":function(a,b){return a%b}},unops={"-":function(a){return-a},"+":function(a){return+a},"~":function(a){return~a},"!":function(a){return!a}};function evaluateArray(list,context){return list.map((function(v){return evaluate(v,context)}))}async function evaluateArrayAsync(list,context){return await Promise.all(list.map((v=>evaluateAsync(v,context))))}function evaluateMember(node,context){const object=evaluate(node.object,context);return node.computed?[object,object[evaluate(node.property,context)]]:[object,object[node.property.name]]}async function evaluateMemberAsync(node,context){const object=await evaluateAsync(node.object,context);return node.computed?[object,object[await evaluateAsync(node.property,context)]]:[object,object[node.property.name]]}function evaluate(node,context){switch(node.type){case"ArrayExpression":return evaluateArray(node.elements,context);case"BinaryExpression":return binops[node.operator](evaluate(node.left,context),evaluate(node.right,context));case"CallExpression":let caller,fn,assign;if("MemberExpression"===node.callee.type?(assign=evaluateMember(node.callee,context),caller=assign[0],fn=assign[1]):fn=evaluate(node.callee,context),"function"!=typeof fn)return;return fn.apply(caller,evaluateArray(node.arguments,context));case"ConditionalExpression":return evaluate(node.test,context)?evaluate(node.consequent,context):evaluate(node.alternate,context);case"Identifier":return context[node.name];case"Literal":return node.value;case"LogicalExpression":return"||"===node.operator?evaluate(node.left,context)||evaluate(node.right,context):"&&"===node.operator?evaluate(node.left,context)&&evaluate(node.right,context):binops[node.operator](evaluate(node.left,context),evaluate(node.right,context));case"MemberExpression":return evaluateMember(node,context)[1];case"ThisExpression":return context;case"UnaryExpression":return unops[node.operator](evaluate(node.argument,context));default:return}}async function evaluateAsync(node,context){switch(node.type){case"ArrayExpression":return await evaluateArrayAsync(node.elements,context);case"BinaryExpression":{const[left,right]=await Promise.all([evaluateAsync(node.left,context),evaluateAsync(node.right,context)]);return binops[node.operator](left,right)}case"CallExpression":let caller,fn,assign;if("MemberExpression"===node.callee.type?(assign=await evaluateMemberAsync(node.callee,context),caller=assign[0],fn=assign[1]):fn=await evaluateAsync(node.callee,context),"function"!=typeof fn)return;return await fn.apply(caller,await evaluateArrayAsync(node.arguments,context));case"ConditionalExpression":return await evaluateAsync(node.test,context)?await evaluateAsync(node.consequent,context):await evaluateAsync(node.alternate,context);case"Identifier":return context[node.name];case"Literal":return node.value;case"LogicalExpression":{if("||"===node.operator)return await evaluateAsync(node.left,context)||await evaluateAsync(node.right,context);if("&&"===node.operator)return await evaluateAsync(node.left,context)&&await evaluateAsync(node.right,context);const[left,right]=await Promise.all([evaluateAsync(node.left,context),evaluateAsync(node.right,context)]);return binops[node.operator](left,right)}case"MemberExpression":return(await evaluateMemberAsync(node,context))[1];case"ThisExpression":return context;case"UnaryExpression":return unops[node.operator](await evaluateAsync(node.argument,context));default:return}}module.exports={parse:jsep,eval:evaluate,evalAsync:evaluateAsync,compile:function compile(expression){return evaluate.bind(null,jsep(expression))},compileAsync:function compileAsync(expression){return evaluateAsync.bind(null,jsep(expression))}}},"./node_modules/fast-xml-parser/src/fxp.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";const validator=__webpack_require__("./node_modules/fast-xml-parser/src/validator.js"),XMLParser=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),XMLBuilder=__webpack_require__("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");module.exports={XMLParser:XMLParser,XMLValidator:validator,XMLBuilder:XMLBuilder}},"./node_modules/fast-xml-parser/src/util.js":function(__unused_webpack_module,exports){"use strict";const nameStartChar=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",nameRegexp="["+nameStartChar+"]["+(nameStartChar+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*",regexName=new RegExp("^"+nameRegexp+"$");exports.isExist=function(v){return void 0!==v},exports.isEmptyObject=function(obj){return 0===Object.keys(obj).length},exports.merge=function(target,a,arrayMode){if(a){const keys=Object.keys(a),len=keys.length;for(let i=0;i5&&"xml"===tagname)return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(xmlData,i));if("?"==xmlData[i]&&">"==xmlData[i+1]){i++;break}}return i}function readCommentAndCDATA(xmlData,i){if(xmlData.length>i+5&&"-"===xmlData[i+1]&&"-"===xmlData[i+2]){for(i+=3;i"===xmlData[i+2]){i+=2;break}}else if(xmlData.length>i+8&&"D"===xmlData[i+1]&&"O"===xmlData[i+2]&&"C"===xmlData[i+3]&&"T"===xmlData[i+4]&&"Y"===xmlData[i+5]&&"P"===xmlData[i+6]&&"E"===xmlData[i+7]){let angleBracketsCount=1;for(i+=8;i"===xmlData[i]&&(angleBracketsCount--,0===angleBracketsCount))break}else if(xmlData.length>i+9&&"["===xmlData[i+1]&&"C"===xmlData[i+2]&&"D"===xmlData[i+3]&&"A"===xmlData[i+4]&&"T"===xmlData[i+5]&&"A"===xmlData[i+6]&&"["===xmlData[i+7])for(i+=8;i"===xmlData[i+2]){i+=2;break}return i}exports.validate=function(xmlData,options){options=Object.assign({},defaultOptions,options);const tags=[];let tagFound=!1,reachedRoot=!1;"\ufeff"===xmlData[0]&&(xmlData=xmlData.substr(1));for(let i=0;i"!==xmlData[i]&&" "!==xmlData[i]&&"\t"!==xmlData[i]&&"\n"!==xmlData[i]&&"\r"!==xmlData[i];i++)tagName+=xmlData[i];if(tagName=tagName.trim(),"/"===tagName[tagName.length-1]&&(tagName=tagName.substring(0,tagName.length-1),i--),tagname=tagName,!util.isName(tagname)){let msg;return msg=0===tagName.trim().length?"Invalid space after '<'.":"Tag '"+tagName+"' is an invalid name.",getErrorObject("InvalidTag",msg,getLineNumberForPosition(xmlData,i))}const result=readAttributeStr(xmlData,i);if(!1===result)return getErrorObject("InvalidAttr","Attributes for '"+tagName+"' have open quote.",getLineNumberForPosition(xmlData,i));let attrStr=result.value;if(i=result.index,"/"===attrStr[attrStr.length-1]){const attrStrStart=i-attrStr.length;attrStr=attrStr.substring(0,attrStr.length-1);const isValid=validateAttributeString(attrStr,options);if(!0!==isValid)return getErrorObject(isValid.err.code,isValid.err.msg,getLineNumberForPosition(xmlData,attrStrStart+isValid.err.line));tagFound=!0}else if(closingTag){if(!result.tagClosed)return getErrorObject("InvalidTag","Closing tag '"+tagName+"' doesn't have proper closing.",getLineNumberForPosition(xmlData,i));if(attrStr.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+tagName+"' can't have attributes or invalid starting.",getLineNumberForPosition(xmlData,tagStartPos));if(0===tags.length)return getErrorObject("InvalidTag","Closing tag '"+tagName+"' has not been opened.",getLineNumberForPosition(xmlData,tagStartPos));{const otg=tags.pop();if(tagName!==otg.tagName){let openPos=getLineNumberForPosition(xmlData,otg.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+otg.tagName+"' (opened in line "+openPos.line+", col "+openPos.col+") instead of closing tag '"+tagName+"'.",getLineNumberForPosition(xmlData,tagStartPos))}0==tags.length&&(reachedRoot=!0)}}else{const isValid=validateAttributeString(attrStr,options);if(!0!==isValid)return getErrorObject(isValid.err.code,isValid.err.msg,getLineNumberForPosition(xmlData,i-attrStr.length+isValid.err.line));if(!0===reachedRoot)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(xmlData,i));-1!==options.unpairedTags.indexOf(tagName)||tags.push({tagName:tagName,tagStartPos:tagStartPos}),tagFound=!0}for(i++;i0)||getErrorObject("InvalidXml","Invalid '"+JSON.stringify(tags.map((t=>t.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):getErrorObject("InvalidXml","Start tag expected.",1)};const doubleQuote='"',singleQuote="'";function readAttributeStr(xmlData,i){let attrStr="",startChar="",tagClosed=!1;for(;i"===xmlData[i]&&""===startChar){tagClosed=!0;break}attrStr+=xmlData[i]}return""===startChar&&{value:attrStr,index:i,tagClosed:tagClosed}}const validAttrStrRegxp=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(attrStr,options){const matches=util.getAllMatches(attrStr,validAttrStrRegxp),attrNames={};for(let i=0;i","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Builder(options){this.options=Object.assign({},defaultOptions,options),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=isAttribute),this.processTextOrObjNode=processTextOrObjNode,this.options.format?(this.indentate=indentate,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function processTextOrObjNode(object,key,level){const result=this.j2x(object,level+1);return void 0!==object[this.options.textNodeName]&&1===Object.keys(object).length?this.buildTextValNode(object[this.options.textNodeName],key,result.attrStr,level):this.buildObjectNode(result.val,key,result.attrStr,level)}function indentate(level){return this.options.indentBy.repeat(level)}function isAttribute(name){return!(!name.startsWith(this.options.attributeNamePrefix)||name===this.options.textNodeName)&&name.substr(this.attrPrefixLen)}Builder.prototype.build=function(jObj){return this.options.preserveOrder?buildFromOrderedJs(jObj,this.options):(Array.isArray(jObj)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(jObj={[this.options.arrayNodeName]:jObj}),this.j2x(jObj,0).val)},Builder.prototype.j2x=function(jObj,level){let attrStr="",val="";for(let key in jObj)if(Object.prototype.hasOwnProperty.call(jObj,key))if(void 0===jObj[key])this.isAttribute(key)&&(val+="");else if(null===jObj[key])this.isAttribute(key)?val+="":"?"===key[0]?val+=this.indentate(level)+"<"+key+"?"+this.tagEndChar:val+=this.indentate(level)+"<"+key+"/"+this.tagEndChar;else if(jObj[key]instanceof Date)val+=this.buildTextValNode(jObj[key],key,"",level);else if("object"!=typeof jObj[key]){const attr=this.isAttribute(key);if(attr)attrStr+=this.buildAttrPairStr(attr,""+jObj[key]);else if(key===this.options.textNodeName){let newval=this.options.tagValueProcessor(key,""+jObj[key]);val+=this.replaceEntitiesValue(newval)}else val+=this.buildTextValNode(jObj[key],key,"",level)}else if(Array.isArray(jObj[key])){const arrLen=jObj[key].length;let listTagVal="";for(let j=0;j"+val+tagEndExp}},Builder.prototype.closeTag=function(key){let closeTag="";return-1!==this.options.unpairedTags.indexOf(key)?this.options.suppressUnpairedNode||(closeTag="/"):closeTag=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&key===this.options.commentPropName)return this.indentate(level)+`\x3c!--${val}--\x3e`+this.newLine;if("?"===key[0])return this.indentate(level)+"<"+key+attrStr+"?"+this.tagEndChar;{let textValue=this.options.tagValueProcessor(key,val);return textValue=this.replaceEntitiesValue(textValue),""===textValue?this.indentate(level)+"<"+key+attrStr+this.closeTag(key)+this.tagEndChar:this.indentate(level)+"<"+key+attrStr+">"+textValue+"0&&this.options.processEntities)for(let i=0;i`,isPreviousElementTag=!1;continue}if(tagName===options.commentPropName){xmlStr+=indentation+`\x3c!--${tagObj[tagName][0][options.textNodeName]}--\x3e`,isPreviousElementTag=!0;continue}if("?"===tagName[0]){const attStr=attr_to_str(tagObj[":@"],options),tempInd="?xml"===tagName?"":indentation;let piTextNodeName=tagObj[tagName][0][options.textNodeName];piTextNodeName=0!==piTextNodeName.length?" "+piTextNodeName:"",xmlStr+=tempInd+`<${tagName}${piTextNodeName}${attStr}?>`,isPreviousElementTag=!0;continue}let newIdentation=indentation;""!==newIdentation&&(newIdentation+=options.indentBy);const tagStart=indentation+`<${tagName}${attr_to_str(tagObj[":@"],options)}`,tagValue=arrToStr(tagObj[tagName],options,newJPath,newIdentation);-1!==options.unpairedTags.indexOf(tagName)?options.suppressUnpairedNode?xmlStr+=tagStart+">":xmlStr+=tagStart+"/>":tagValue&&0!==tagValue.length||!options.suppressEmptyNode?tagValue&&tagValue.endsWith(">")?xmlStr+=tagStart+`>${tagValue}${indentation}`:(xmlStr+=tagStart+">",tagValue&&""!==indentation&&(tagValue.includes("/>")||tagValue.includes("`):xmlStr+=tagStart+"/>",isPreviousElementTag=!0}return xmlStr}function propName(obj){const keys=Object.keys(obj);for(let i=0;i0&&options.processEntities)for(let i=0;i0&&(indentation="\n"),arrToStr(jArray,options,"",indentation)}},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(module,__unused_webpack_exports,__webpack_require__){const util=__webpack_require__("./node_modules/fast-xml-parser/src/util.js");function readEntityExp(xmlData,i){let entityName="";for(;i"===xmlData[i]){if(comment?"-"===xmlData[i-1]&&"-"===xmlData[i-2]&&(comment=!1,angleBracketsCount--):angleBracketsCount--,0===angleBracketsCount)break}else"["===xmlData[i]?hasBody=!0:exp+=xmlData[i];else{if(hasBody&&isEntity(xmlData,i))i+=7,[entityName,val,i]=readEntityExp(xmlData,i+1),-1===val.indexOf("&")&&(entities[validateEntityName(entityName)]={regx:RegExp(`&${entityName};`,"g"),val:val});else if(hasBody&&isElement(xmlData,i))i+=8;else if(hasBody&&isAttlist(xmlData,i))i+=8;else if(hasBody&&isNotation(xmlData,i))i+=9;else{if(!isComment)throw new Error("Invalid DOCTYPE");comment=!0}angleBracketsCount++,exp=""}if(0!==angleBracketsCount)throw new Error("Unclosed DOCTYPE")}return{entities:entities,i:i}}},"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(__unused_webpack_module,exports){const defaultOptions={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(tagName,val){return val},attributeValueProcessor:function(attrName,val){return val},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(tagName,jPath,attrs){return tagName}};exports.buildOptions=function(options){return Object.assign({},defaultOptions,options)},exports.defaultOptions=defaultOptions},"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";const util=__webpack_require__("./node_modules/fast-xml-parser/src/util.js"),xmlNode=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"),readDocType=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"),toNumber=__webpack_require__("./node_modules/strnum/strnum.js");function addExternalEntities(externalEntities){const entKeys=Object.keys(externalEntities);for(let i=0;i0)){escapeEntities||(val=this.replaceEntitiesValue(val));const newval=this.options.tagValueProcessor(tagName,val,jPath,hasAttributes,isLeafNode);if(null==newval)return val;if(typeof newval!=typeof val||newval!==val)return newval;if(this.options.trimValues)return parseValue(val,this.options.parseTagValue,this.options.numberParseOptions);return val.trim()===val?parseValue(val,this.options.parseTagValue,this.options.numberParseOptions):val}}function resolveNameSpace(tagname){if(this.options.removeNSPrefix){const tags=tagname.split(":"),prefix="/"===tagname.charAt(0)?"/":"";if("xmlns"===tags[0])return"";2===tags.length&&(tagname=prefix+tags[1])}return tagname}const attrsRegx=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(attrStr,jPath,tagName){if(!this.options.ignoreAttributes&&"string"==typeof attrStr){const matches=util.getAllMatches(attrStr,attrsRegx),len=matches.length,attrs={};for(let i=0;i",i,"Closing Tag is not closed.");let tagName=xmlData.substring(i+2,closeIndex).trim();if(this.options.removeNSPrefix){const colonIndex=tagName.indexOf(":");-1!==colonIndex&&(tagName=tagName.substr(colonIndex+1))}this.options.transformTagName&&(tagName=this.options.transformTagName(tagName)),currentNode&&(textData=this.saveTextToParentTag(textData,currentNode,jPath));const lastTagName=jPath.substring(jPath.lastIndexOf(".")+1);if(tagName&&-1!==this.options.unpairedTags.indexOf(tagName))throw new Error(`Unpaired tag can not be used as closing tag: `);let propIndex=0;lastTagName&&-1!==this.options.unpairedTags.indexOf(lastTagName)?(propIndex=jPath.lastIndexOf(".",jPath.lastIndexOf(".")-1),this.tagsNodeStack.pop()):propIndex=jPath.lastIndexOf("."),jPath=jPath.substring(0,propIndex),currentNode=this.tagsNodeStack.pop(),textData="",i=closeIndex}else if("?"===xmlData[i+1]){let tagData=readTagExp(xmlData,i,!1,"?>");if(!tagData)throw new Error("Pi Tag is not closed.");if(textData=this.saveTextToParentTag(textData,currentNode,jPath),this.options.ignoreDeclaration&&"?xml"===tagData.tagName||this.options.ignorePiTags);else{const childNode=new xmlNode(tagData.tagName);childNode.add(this.options.textNodeName,""),tagData.tagName!==tagData.tagExp&&tagData.attrExpPresent&&(childNode[":@"]=this.buildAttributesMap(tagData.tagExp,jPath,tagData.tagName)),this.addChild(currentNode,childNode,jPath)}i=tagData.closeIndex+1}else if("!--"===xmlData.substr(i+1,3)){const endIndex=findClosingIndex(xmlData,"--\x3e",i+4,"Comment is not closed.");if(this.options.commentPropName){const comment=xmlData.substring(i+4,endIndex-2);textData=this.saveTextToParentTag(textData,currentNode,jPath),currentNode.add(this.options.commentPropName,[{[this.options.textNodeName]:comment}])}i=endIndex}else if("!D"===xmlData.substr(i+1,2)){const result=readDocType(xmlData,i);this.docTypeEntities=result.entities,i=result.i}else if("!["===xmlData.substr(i+1,2)){const closeIndex=findClosingIndex(xmlData,"]]>",i,"CDATA is not closed.")-2,tagExp=xmlData.substring(i+9,closeIndex);textData=this.saveTextToParentTag(textData,currentNode,jPath);let val=this.parseTextData(tagExp,currentNode.tagname,jPath,!0,!1,!0,!0);null==val&&(val=""),this.options.cdataPropName?currentNode.add(this.options.cdataPropName,[{[this.options.textNodeName]:tagExp}]):currentNode.add(this.options.textNodeName,val),i=closeIndex+2}else{let result=readTagExp(xmlData,i,this.options.removeNSPrefix),tagName=result.tagName;const rawTagName=result.rawTagName;let tagExp=result.tagExp,attrExpPresent=result.attrExpPresent,closeIndex=result.closeIndex;this.options.transformTagName&&(tagName=this.options.transformTagName(tagName)),currentNode&&textData&&"!xml"!==currentNode.tagname&&(textData=this.saveTextToParentTag(textData,currentNode,jPath,!1));const lastTag=currentNode;if(lastTag&&-1!==this.options.unpairedTags.indexOf(lastTag.tagname)&&(currentNode=this.tagsNodeStack.pop(),jPath=jPath.substring(0,jPath.lastIndexOf("."))),tagName!==xmlObj.tagname&&(jPath+=jPath?"."+tagName:tagName),this.isItStopNode(this.options.stopNodes,jPath,tagName)){let tagContent="";if(tagExp.length>0&&tagExp.lastIndexOf("/")===tagExp.length-1)"/"===tagName[tagName.length-1]?(tagName=tagName.substr(0,tagName.length-1),jPath=jPath.substr(0,jPath.length-1),tagExp=tagName):tagExp=tagExp.substr(0,tagExp.length-1),i=result.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(tagName))i=result.closeIndex;else{const result=this.readStopNodeData(xmlData,rawTagName,closeIndex+1);if(!result)throw new Error(`Unexpected end of ${rawTagName}`);i=result.i,tagContent=result.tagContent}const childNode=new xmlNode(tagName);tagName!==tagExp&&attrExpPresent&&(childNode[":@"]=this.buildAttributesMap(tagExp,jPath,tagName)),tagContent&&(tagContent=this.parseTextData(tagContent,tagName,jPath,!0,attrExpPresent,!0,!0)),jPath=jPath.substr(0,jPath.lastIndexOf(".")),childNode.add(this.options.textNodeName,tagContent),this.addChild(currentNode,childNode,jPath)}else{if(tagExp.length>0&&tagExp.lastIndexOf("/")===tagExp.length-1){"/"===tagName[tagName.length-1]?(tagName=tagName.substr(0,tagName.length-1),jPath=jPath.substr(0,jPath.length-1),tagExp=tagName):tagExp=tagExp.substr(0,tagExp.length-1),this.options.transformTagName&&(tagName=this.options.transformTagName(tagName));const childNode=new xmlNode(tagName);tagName!==tagExp&&attrExpPresent&&(childNode[":@"]=this.buildAttributesMap(tagExp,jPath,tagName)),this.addChild(currentNode,childNode,jPath),jPath=jPath.substr(0,jPath.lastIndexOf("."))}else{const childNode=new xmlNode(tagName);this.tagsNodeStack.push(currentNode),tagName!==tagExp&&attrExpPresent&&(childNode[":@"]=this.buildAttributesMap(tagExp,jPath,tagName)),this.addChild(currentNode,childNode,jPath),currentNode=childNode}textData="",i=closeIndex}}else textData+=xmlData[i]}return xmlObj.child};function addChild(currentNode,childNode,jPath){const result=this.options.updateTag(childNode.tagname,jPath,childNode[":@"]);!1===result||("string"==typeof result?(childNode.tagname=result,currentNode.addChild(childNode)):currentNode.addChild(childNode))}const replaceEntitiesValue=function(val){if(this.options.processEntities){for(let entityName in this.docTypeEntities){const entity=this.docTypeEntities[entityName];val=val.replace(entity.regx,entity.val)}for(let entityName in this.lastEntities){const entity=this.lastEntities[entityName];val=val.replace(entity.regex,entity.val)}if(this.options.htmlEntities)for(let entityName in this.htmlEntities){const entity=this.htmlEntities[entityName];val=val.replace(entity.regex,entity.val)}val=val.replace(this.ampEntity.regex,this.ampEntity.val)}return val};function saveTextToParentTag(textData,currentNode,jPath,isLeafNode){return textData&&(void 0===isLeafNode&&(isLeafNode=0===Object.keys(currentNode.child).length),void 0!==(textData=this.parseTextData(textData,currentNode.tagname,jPath,!1,!!currentNode[":@"]&&0!==Object.keys(currentNode[":@"]).length,isLeafNode))&&""!==textData&¤tNode.add(this.options.textNodeName,textData),textData=""),textData}function isItStopNode(stopNodes,jPath,currentTagName){const allNodesExp="*."+currentTagName;for(const stopNodePath in stopNodes){const stopNodeExp=stopNodes[stopNodePath];if(allNodesExp===stopNodeExp||jPath===stopNodeExp)return!0}return!1}function findClosingIndex(xmlData,str,i,errMsg){const closingIndex=xmlData.indexOf(str,i);if(-1===closingIndex)throw new Error(errMsg);return closingIndex+str.length-1}function readTagExp(xmlData,i,removeNSPrefix,closingChar=">"){const result=function tagExpWithClosingIndex(xmlData,i,closingChar=">"){let attrBoundary,tagExp="";for(let index=i;index",i,`${tagName} is not closed`);if(xmlData.substring(i+2,closeIndex).trim()===tagName&&(openTagCount--,0===openTagCount))return{tagContent:xmlData.substring(startIndex,i),i:closeIndex};i=closeIndex}else if("?"===xmlData[i+1]){i=findClosingIndex(xmlData,"?>",i+1,"StopNode is not closed.")}else if("!--"===xmlData.substr(i+1,3)){i=findClosingIndex(xmlData,"--\x3e",i+3,"StopNode is not closed.")}else if("!["===xmlData.substr(i+1,2)){i=findClosingIndex(xmlData,"]]>",i,"StopNode is not closed.")-2}else{const tagData=readTagExp(xmlData,i,">");if(tagData){(tagData&&tagData.tagName)===tagName&&"/"!==tagData.tagExp[tagData.tagExp.length-1]&&openTagCount++,i=tagData.closeIndex}}}function parseValue(val,shouldParse,options){if(shouldParse&&"string"==typeof val){const newval=val.trim();return"true"===newval||"false"!==newval&&toNumber(val,options)}return util.isExist(val)?val:""}module.exports=class OrderedObjParser{constructor(options){this.options=options,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"Â¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(_,str)=>String.fromCharCode(Number.parseInt(str,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(_,str)=>String.fromCharCode(Number.parseInt(str,16))}},this.addExternalEntities=addExternalEntities,this.parseXml=parseXml,this.parseTextData=parseTextData,this.resolveNameSpace=resolveNameSpace,this.buildAttributesMap=buildAttributesMap,this.isItStopNode=isItStopNode,this.replaceEntitiesValue=replaceEntitiesValue,this.readStopNodeData=readStopNodeData,this.saveTextToParentTag=saveTextToParentTag,this.addChild=addChild}}},"./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js":function(module,__unused_webpack_exports,__webpack_require__){const{buildOptions:buildOptions}=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"),OrderedObjParser=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"),{prettify:prettify}=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/node2json.js"),validator=__webpack_require__("./node_modules/fast-xml-parser/src/validator.js");module.exports=class XMLParser{constructor(options){this.externalEntities={},this.options=buildOptions(options)}parse(xmlData,validationOption){if("string"==typeof xmlData);else{if(!xmlData.toString)throw new Error("XML data is accepted in String or Bytes[] form.");xmlData=xmlData.toString()}if(validationOption){!0===validationOption&&(validationOption={});const result=validator.validate(xmlData,validationOption);if(!0!==result)throw Error(`${result.err.msg}:${result.err.line}:${result.err.col}`)}const orderedObjParser=new OrderedObjParser(this.options);orderedObjParser.addExternalEntities(this.externalEntities);const orderedResult=orderedObjParser.parseXml(xmlData);return this.options.preserveOrder||void 0===orderedResult?orderedResult:prettify(orderedResult,this.options)}addEntity(key,value){if(-1!==value.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==key.indexOf("&")||-1!==key.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===value)throw new Error("An entity with value '&' is not permitted");this.externalEntities[key]=value}}},"./node_modules/fast-xml-parser/src/xmlparser/node2json.js":function(__unused_webpack_module,exports){"use strict";function compress(arr,options,jPath){let text;const compressedObj={};for(let i=0;i0&&(compressedObj[options.textNodeName]=text):void 0!==text&&(compressedObj[options.textNodeName]=text),compressedObj}function propName(obj){const keys=Object.keys(obj);for(let i=0;i0?this.child.push({[node.tagname]:node.child,":@":node[":@"]}):this.child.push({[node.tagname]:node.child})}}},"./node_modules/geojson-rbush/index.js":function(module,__unused_webpack_exports,__webpack_require__){var rbush=__webpack_require__("./node_modules/rbush/rbush.min.js"),helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),meta=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),turfBBox=__webpack_require__("./node_modules/@turf/bbox/dist/js/index.js").default,featureEach=meta.featureEach,featureCollection=(meta.coordEach,helpers.polygon,helpers.featureCollection);function geojsonRbush(maxEntries){var tree=new rbush(maxEntries);return tree.insert=function(feature){if("Feature"!==feature.type)throw new Error("invalid feature");return feature.bbox=feature.bbox?feature.bbox:turfBBox(feature),rbush.prototype.insert.call(this,feature)},tree.load=function(features){var load=[];return Array.isArray(features)?features.forEach((function(feature){if("Feature"!==feature.type)throw new Error("invalid features");feature.bbox=feature.bbox?feature.bbox:turfBBox(feature),load.push(feature)})):featureEach(features,(function(feature){if("Feature"!==feature.type)throw new Error("invalid features");feature.bbox=feature.bbox?feature.bbox:turfBBox(feature),load.push(feature)})),rbush.prototype.load.call(this,load)},tree.remove=function(feature,equals){if("Feature"!==feature.type)throw new Error("invalid feature");return feature.bbox=feature.bbox?feature.bbox:turfBBox(feature),rbush.prototype.remove.call(this,feature,equals)},tree.clear=function(){return rbush.prototype.clear.call(this)},tree.search=function(geojson){var features=rbush.prototype.search.call(this,this.toBBox(geojson));return featureCollection(features)},tree.collides=function(geojson){return rbush.prototype.collides.call(this,this.toBBox(geojson))},tree.all=function(){var features=rbush.prototype.all.call(this);return featureCollection(features)},tree.toJSON=function(){return rbush.prototype.toJSON.call(this)},tree.fromJSON=function(json){return rbush.prototype.fromJSON.call(this,json)},tree.toBBox=function(geojson){var bbox;if(geojson.bbox)bbox=geojson.bbox;else if(Array.isArray(geojson)&&4===geojson.length)bbox=geojson;else if(Array.isArray(geojson)&&6===geojson.length)bbox=[geojson[0],geojson[1],geojson[3],geojson[4]];else if("Feature"===geojson.type)bbox=turfBBox(geojson);else{if("FeatureCollection"!==geojson.type)throw new Error("invalid geojson");bbox=turfBBox(geojson)}return{minX:bbox[0],minY:bbox[1],maxX:bbox[2],maxY:bbox[3]}},tree}module.exports=geojsonRbush,module.exports.default=geojsonRbush},"./node_modules/gl-matrix/esm/mat3.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{GH:function(){return determinant},Iu:function(){return translate},Jp:function(){return multiply},U1:function(){return rotate},U_:function(){return invert},Ue:function(){return create},bA:function(){return scale},en:function(){return fromQuat},p4:function(){return transpose}});var _common_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/gl-matrix/esm/common.js");function create(){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(9);return _common_js__WEBPACK_IMPORTED_MODULE_0__.WT!=Float32Array&&(out[1]=0,out[2]=0,out[3]=0,out[5]=0,out[6]=0,out[7]=0),out[0]=1,out[4]=1,out[8]=1,out}function transpose(out,a){if(out===a){var a01=a[1],a02=a[2],a12=a[5];out[1]=a[3],out[2]=a[6],out[3]=a01,out[5]=a[7],out[6]=a02,out[7]=a12}else out[0]=a[0],out[1]=a[3],out[2]=a[6],out[3]=a[1],out[4]=a[4],out[5]=a[7],out[6]=a[2],out[7]=a[5],out[8]=a[8];return out}function invert(out,a){var a00=a[0],a01=a[1],a02=a[2],a10=a[3],a11=a[4],a12=a[5],a20=a[6],a21=a[7],a22=a[8],b01=a22*a11-a12*a21,b11=-a22*a10+a12*a20,b21=a21*a10-a11*a20,det=a00*b01+a01*b11+a02*b21;return det?(det=1/det,out[0]=b01*det,out[1]=(-a22*a01+a02*a21)*det,out[2]=(a12*a01-a02*a11)*det,out[3]=b11*det,out[4]=(a22*a00-a02*a20)*det,out[5]=(-a12*a00+a02*a10)*det,out[6]=b21*det,out[7]=(-a21*a00+a01*a20)*det,out[8]=(a11*a00-a01*a10)*det,out):null}function determinant(a){var a00=a[0],a01=a[1],a02=a[2],a10=a[3],a11=a[4],a12=a[5],a20=a[6],a21=a[7],a22=a[8];return a00*(a22*a11-a12*a21)+a01*(-a22*a10+a12*a20)+a02*(a21*a10-a11*a20)}function multiply(out,a,b){var a00=a[0],a01=a[1],a02=a[2],a10=a[3],a11=a[4],a12=a[5],a20=a[6],a21=a[7],a22=a[8],b00=b[0],b01=b[1],b02=b[2],b10=b[3],b11=b[4],b12=b[5],b20=b[6],b21=b[7],b22=b[8];return out[0]=b00*a00+b01*a10+b02*a20,out[1]=b00*a01+b01*a11+b02*a21,out[2]=b00*a02+b01*a12+b02*a22,out[3]=b10*a00+b11*a10+b12*a20,out[4]=b10*a01+b11*a11+b12*a21,out[5]=b10*a02+b11*a12+b12*a22,out[6]=b20*a00+b21*a10+b22*a20,out[7]=b20*a01+b21*a11+b22*a21,out[8]=b20*a02+b21*a12+b22*a22,out}function translate(out,a,v){var a00=a[0],a01=a[1],a02=a[2],a10=a[3],a11=a[4],a12=a[5],a20=a[6],a21=a[7],a22=a[8],x=v[0],y=v[1];return out[0]=a00,out[1]=a01,out[2]=a02,out[3]=a10,out[4]=a11,out[5]=a12,out[6]=x*a00+y*a10+a20,out[7]=x*a01+y*a11+a21,out[8]=x*a02+y*a12+a22,out}function rotate(out,a,rad){var a00=a[0],a01=a[1],a02=a[2],a10=a[3],a11=a[4],a12=a[5],a20=a[6],a21=a[7],a22=a[8],s=Math.sin(rad),c=Math.cos(rad);return out[0]=c*a00+s*a10,out[1]=c*a01+s*a11,out[2]=c*a02+s*a12,out[3]=c*a10-s*a00,out[4]=c*a11-s*a01,out[5]=c*a12-s*a02,out[6]=a20,out[7]=a21,out[8]=a22,out}function scale(out,a,v){var x=v[0],y=v[1];return out[0]=x*a[0],out[1]=x*a[1],out[2]=x*a[2],out[3]=y*a[3],out[4]=y*a[4],out[5]=y*a[5],out[6]=a[6],out[7]=a[7],out[8]=a[8],out}function fromQuat(out,q){var x=q[0],y=q[1],z=q[2],w=q[3],x2=x+x,y2=y+y,z2=z+z,xx=x*x2,yx=y*x2,yy=y*y2,zx=z*x2,zy=z*y2,zz=z*z2,wx=w*x2,wy=w*y2,wz=w*z2;return out[0]=1-yy-zz,out[3]=yx-wz,out[6]=zx+wy,out[1]=yx+wz,out[4]=1-xx-zz,out[7]=zy-wx,out[2]=zx-wy,out[5]=zy+wx,out[8]=1-xx-yy,out}},"./node_modules/h3-js/dist/browser/h3-js.es.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{UNITS:function(){return UNITS},cellArea:function(){return cellArea},compact:function(){return compact},degsToRads:function(){return degsToRads},edgeLength:function(){return edgeLength},exactEdgeLength:function(){return exactEdgeLength},experimentalH3ToLocalIj:function(){return experimentalH3ToLocalIj},experimentalLocalIjToH3:function(){return experimentalLocalIjToH3},geoToH3:function(){return geoToH3},getDestinationH3IndexFromUnidirectionalEdge:function(){return getDestinationH3IndexFromUnidirectionalEdge},getH3IndexesFromUnidirectionalEdge:function(){return getH3IndexesFromUnidirectionalEdge},getH3UnidirectionalEdge:function(){return getH3UnidirectionalEdge},getH3UnidirectionalEdgeBoundary:function(){return getH3UnidirectionalEdgeBoundary},getH3UnidirectionalEdgesFromHexagon:function(){return getH3UnidirectionalEdgesFromHexagon},getOriginH3IndexFromUnidirectionalEdge:function(){return getOriginH3IndexFromUnidirectionalEdge},getPentagonIndexes:function(){return getPentagonIndexes},getRes0Indexes:function(){return getRes0Indexes},h3Distance:function(){return h3Distance},h3GetBaseCell:function(){return h3GetBaseCell},h3GetFaces:function(){return h3GetFaces},h3GetResolution:function(){return h3GetResolution},h3IndexToSplitLong:function(){return h3IndexToSplitLong},h3IndexesAreNeighbors:function(){return h3IndexesAreNeighbors},h3IsPentagon:function(){return h3IsPentagon},h3IsResClassIII:function(){return h3IsResClassIII},h3IsValid:function(){return h3IsValid},h3Line:function(){return h3Line},h3SetToMultiPolygon:function(){return h3SetToMultiPolygon},h3ToCenterChild:function(){return h3ToCenterChild},h3ToChildren:function(){return h3ToChildren},h3ToGeo:function(){return h3ToGeo},h3ToGeoBoundary:function(){return h3ToGeoBoundary},h3ToParent:function(){return h3ToParent},h3UnidirectionalEdgeIsValid:function(){return h3UnidirectionalEdgeIsValid},hexArea:function(){return hexArea},hexRing:function(){return hexRing},kRing:function(){return kRing},kRingDistances:function(){return kRingDistances},numHexagons:function(){return numHexagons},pointDist:function(){return pointDist},polyfill:function(){return polyfill},radsToDegs:function(){return radsToDegs},splitLongToh3Index:function(){return splitLongToh3Index},uncompact:function(){return uncompact}});var libh3=function(libh3){var key,Module=void 0!==(libh3=libh3||{})?libh3:{},moduleOverrides={};for(key in Module)Module.hasOwnProperty(key)&&(moduleOverrides[key]=Module[key]);var readAsync,arguments_=[],scriptDirectory="";document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1):"",readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,!0),xhr.responseType="arraybuffer",xhr.onload=function xhr_onload(){if(200==xhr.status||0==xhr.status&&xhr.response)onload(xhr.response);else{var data=tryParseAsDataURI(url);data?onload(data.buffer):onerror()}},xhr.onerror=onerror,xhr.send(null)};var out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);for(key in moduleOverrides)moduleOverrides.hasOwnProperty(key)&&(Module[key]=moduleOverrides[key]);moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments);var tempRet0=0,getTempRet0=function(){return tempRet0};var ABORT=!1;function getCFunc(ident){var func=Module["_"+ident];return function assert(condition,text){condition||abort("Assertion failed: "+text)}(func,"Cannot call unknown function "+ident+", make sure it is exported"),func}function ccall(ident,returnType,argTypes,args,opts){var toC={string:function(str){var ret=0;if(null!=str&&0!==str){var len=1+(str.length<<2);(function stringToUTF8(str,outPtr,maxBytesToWrite){return function stringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;for(var startIdx=outIdx,endIdx=outIdx+maxBytesToWrite-1,i=0;i=55296&&u<=57343)u=65536+((1023&u)<<10)|1023&str.charCodeAt(++i);if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6,outU8Array[outIdx++]=128|63&u}else if(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12,outU8Array[outIdx++]=128|u>>6&63,outU8Array[outIdx++]=128|63&u}else{if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18,outU8Array[outIdx++]=128|u>>12&63,outU8Array[outIdx++]=128|u>>6&63,outU8Array[outIdx++]=128|63&u}}return outU8Array[outIdx]=0,outIdx-startIdx}(str,HEAPU8,outPtr,maxBytesToWrite)})(str,ret=stackAlloc(len),len)}return ret},array:function(arr){var ret=stackAlloc(arr.length);return function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}(arr,ret),ret}};var func=getCFunc(ident),cArgs=[],stack=0;if(args)for(var i=0;i=endIdx);)++endPtr;if(endPtr-idx>16&&u8Array.subarray&&UTF8Decoder)return UTF8Decoder.decode(u8Array.subarray(idx,endPtr));for(var str="";idx>10,56320|1023&ch)}}else str+=String.fromCharCode((31&u0)<<6|u1)}else str+=String.fromCharCode(u0)}return str}(HEAPU8,ptr,maxBytesToRead):""}var buffer,HEAP8,HEAPU8,HEAP16,HEAP32,HEAPF32,HEAPF64;"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");function alignUp(x,multiple){return x%multiple>0&&(x+=multiple-x%multiple),x}function updateGlobalBufferAndViews(buf){buffer=buf,Module.HEAP8=HEAP8=new Int8Array(buf),Module.HEAP16=HEAP16=new Int16Array(buf),Module.HEAP32=HEAP32=new Int32Array(buf),Module.HEAPU8=HEAPU8=new Uint8Array(buf),Module.HEAPU16=new Uint16Array(buf),Module.HEAPU32=new Uint32Array(buf),Module.HEAPF32=HEAPF32=new Float32Array(buf),Module.HEAPF64=HEAPF64=new Float64Array(buf)}var INITIAL_TOTAL_MEMORY=Module.TOTAL_MEMORY||33554432;function callRuntimeCallbacks(callbacks){for(;callbacks.length>0;){var callback=callbacks.shift();if("function"!=typeof callback){var func=callback.func;"number"==typeof func?void 0===callback.arg?Module.dynCall_v(func):Module.dynCall_vi(func,callback.arg):func(void 0===callback.arg?null:callback.arg)}else callback()}}INITIAL_TOTAL_MEMORY=(buffer=Module.buffer?Module.buffer:new ArrayBuffer(INITIAL_TOTAL_MEMORY)).byteLength,updateGlobalBufferAndViews(buffer),HEAP32[6004]=5266928;var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[];var Math_abs=Math.abs,Math_ceil=Math.ceil,Math_floor=Math.floor,Math_min=Math.min,runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;Module.preloadedImages={},Module.preloadedAudios={};var tempDouble,tempI64,memoryInitializer=null,dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return String.prototype.startsWith?filename.startsWith(dataURIPrefix):0===filename.indexOf(dataURIPrefix)}memoryInitializer="data:application/octet-stream;base64,AAAAAAAAAAACAAAAAwAAAAEAAAAFAAAABAAAAAYAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAABAAAABAAAAAMAAAAGAAAABQAAAAIAAAAAAAAAAgAAAAMAAAABAAAABAAAAAYAAAAAAAAABQAAAAMAAAAGAAAABAAAAAUAAAAAAAAAAQAAAAIAAAAEAAAABQAAAAYAAAAAAAAAAgAAAAMAAAABAAAABQAAAAIAAAAAAAAAAQAAAAMAAAAGAAAABAAAAAYAAAAAAAAABQAAAAIAAAABAAAABAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAgAAAAMAAAAAAAAAAAAAAAIAAAAAAAAAAQAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAABgAAAAAAAAAFAAAAAAAAAAAAAAAEAAAABQAAAAAAAAAAAAAAAAAAAAIAAAAAAAAABgAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAAAAAACAAAAAwAAAAQAAAAFAAAABgAAAAAAAAABAAAAAwAAAAQAAAAFAAAABgAAAAAAAAABAAAAAgAAAAQAAAAFAAAABgAAAAAAAAABAAAAAgAAAAMAAAAFAAAABgAAAAAAAAABAAAAAgAAAAMAAAAEAAAABgAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAgAAAAAAAAAAAAAABgAAAAAAAAADAAAAAgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAUAAAAEAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAEAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAUAAAACAAAABAAAAAMAAAAIAAAAAQAAAAcAAAAGAAAACQAAAAAAAAADAAAAAgAAAAIAAAAGAAAACgAAAAsAAAAAAAAAAQAAAAUAAAADAAAADQAAAAEAAAAHAAAABAAAAAwAAAAAAAAABAAAAH8AAAAPAAAACAAAAAMAAAAAAAAADAAAAAUAAAACAAAAEgAAAAoAAAAIAAAAAAAAABAAAAAGAAAADgAAAAsAAAARAAAAAQAAAAkAAAACAAAABwAAABUAAAAJAAAAEwAAAAMAAAANAAAAAQAAAAgAAAAFAAAAFgAAABAAAAAEAAAAAAAAAA8AAAAJAAAAEwAAAA4AAAAUAAAAAQAAAAcAAAAGAAAACgAAAAsAAAAYAAAAFwAAAAUAAAACAAAAEgAAAAsAAAARAAAAFwAAABkAAAACAAAABgAAAAoAAAAMAAAAHAAAAA0AAAAaAAAABAAAAA8AAAADAAAADQAAABoAAAAVAAAAHQAAAAMAAAAMAAAABwAAAA4AAAB/AAAAEQAAABsAAAAJAAAAFAAAAAYAAAAPAAAAFgAAABwAAAAfAAAABAAAAAgAAAAMAAAAEAAAABIAAAAhAAAAHgAAAAgAAAAFAAAAFgAAABEAAAALAAAADgAAAAYAAAAjAAAAGQAAABsAAAASAAAAGAAAAB4AAAAgAAAABQAAAAoAAAAQAAAAEwAAACIAAAAUAAAAJAAAAAcAAAAVAAAACQAAABQAAAAOAAAAEwAAAAkAAAAoAAAAGwAAACQAAAAVAAAAJgAAABMAAAAiAAAADQAAAB0AAAAHAAAAFgAAABAAAAApAAAAIQAAAA8AAAAIAAAAHwAAABcAAAAYAAAACwAAAAoAAAAnAAAAJQAAABkAAAAYAAAAfwAAACAAAAAlAAAACgAAABcAAAASAAAAGQAAABcAAAARAAAACwAAAC0AAAAnAAAAIwAAABoAAAAqAAAAHQAAACsAAAAMAAAAHAAAAA0AAAAbAAAAKAAAACMAAAAuAAAADgAAABQAAAARAAAAHAAAAB8AAAAqAAAALAAAAAwAAAAPAAAAGgAAAB0AAAArAAAAJgAAAC8AAAANAAAAGgAAABUAAAAeAAAAIAAAADAAAAAyAAAAEAAAABIAAAAhAAAAHwAAACkAAAAsAAAANQAAAA8AAAAWAAAAHAAAACAAAAAeAAAAGAAAABIAAAA0AAAAMgAAACUAAAAhAAAAHgAAADEAAAAwAAAAFgAAABAAAAApAAAAIgAAABMAAAAmAAAAFQAAADYAAAAkAAAAMwAAACMAAAAuAAAALQAAADgAAAARAAAAGwAAABkAAAAkAAAAFAAAACIAAAATAAAANwAAACgAAAA2AAAAJQAAACcAAAA0AAAAOQAAABgAAAAXAAAAIAAAACYAAAB/AAAAIgAAADMAAAAdAAAALwAAABUAAAAnAAAAJQAAABkAAAAXAAAAOwAAADkAAAAtAAAAKAAAABsAAAAkAAAAFAAAADwAAAAuAAAANwAAACkAAAAxAAAANQAAAD0AAAAWAAAAIQAAAB8AAAAqAAAAOgAAACsAAAA+AAAAHAAAACwAAAAaAAAAKwAAAD4AAAAvAAAAQAAAABoAAAAqAAAAHQAAACwAAAA1AAAAOgAAAEEAAAAcAAAAHwAAACoAAAAtAAAAJwAAACMAAAAZAAAAPwAAADsAAAA4AAAALgAAADwAAAA4AAAARAAAABsAAAAoAAAAIwAAAC8AAAAmAAAAKwAAAB0AAABFAAAAMwAAAEAAAAAwAAAAMQAAAB4AAAAhAAAAQwAAAEIAAAAyAAAAMQAAAH8AAAA9AAAAQgAAACEAAAAwAAAAKQAAADIAAAAwAAAAIAAAAB4AAABGAAAAQwAAADQAAAAzAAAARQAAADYAAABHAAAAJgAAAC8AAAAiAAAANAAAADkAAABGAAAASgAAACAAAAAlAAAAMgAAADUAAAA9AAAAQQAAAEsAAAAfAAAAKQAAACwAAAA2AAAARwAAADcAAABJAAAAIgAAADMAAAAkAAAANwAAACgAAAA2AAAAJAAAAEgAAAA8AAAASQAAADgAAABEAAAAPwAAAE0AAAAjAAAALgAAAC0AAAA5AAAAOwAAAEoAAABOAAAAJQAAACcAAAA0AAAAOgAAAH8AAAA+AAAATAAAACwAAABBAAAAKgAAADsAAAA/AAAATgAAAE8AAAAnAAAALQAAADkAAAA8AAAASAAAAEQAAABQAAAAKAAAADcAAAAuAAAAPQAAADUAAAAxAAAAKQAAAFEAAABLAAAAQgAAAD4AAAArAAAAOgAAACoAAABSAAAAQAAAAEwAAAA/AAAAfwAAADgAAAAtAAAATwAAADsAAABNAAAAQAAAAC8AAAA+AAAAKwAAAFQAAABFAAAAUgAAAEEAAAA6AAAANQAAACwAAABWAAAATAAAAEsAAABCAAAAQwAAAFEAAABVAAAAMQAAADAAAAA9AAAAQwAAAEIAAAAyAAAAMAAAAFcAAABVAAAARgAAAEQAAAA4AAAAPAAAAC4AAABaAAAATQAAAFAAAABFAAAAMwAAAEAAAAAvAAAAWQAAAEcAAABUAAAARgAAAEMAAAA0AAAAMgAAAFMAAABXAAAASgAAAEcAAABZAAAASQAAAFsAAAAzAAAARQAAADYAAABIAAAAfwAAAEkAAAA3AAAAUAAAADwAAABYAAAASQAAAFsAAABIAAAAWAAAADYAAABHAAAANwAAAEoAAABOAAAAUwAAAFwAAAA0AAAAOQAAAEYAAABLAAAAQQAAAD0AAAA1AAAAXgAAAFYAAABRAAAATAAAAFYAAABSAAAAYAAAADoAAABBAAAAPgAAAE0AAAA/AAAARAAAADgAAABdAAAATwAAAFoAAABOAAAASgAAADsAAAA5AAAAXwAAAFwAAABPAAAATwAAAE4AAAA/AAAAOwAAAF0AAABfAAAATQAAAFAAAABEAAAASAAAADwAAABjAAAAWgAAAFgAAABRAAAAVQAAAF4AAABlAAAAPQAAAEIAAABLAAAAUgAAAGAAAABUAAAAYgAAAD4AAABMAAAAQAAAAFMAAAB/AAAASgAAAEYAAABkAAAAVwAAAFwAAABUAAAARQAAAFIAAABAAAAAYQAAAFkAAABiAAAAVQAAAFcAAABlAAAAZgAAAEIAAABDAAAAUQAAAFYAAABMAAAASwAAAEEAAABoAAAAYAAAAF4AAABXAAAAUwAAAGYAAABkAAAAQwAAAEYAAABVAAAAWAAAAEgAAABbAAAASQAAAGMAAABQAAAAaQAAAFkAAABhAAAAWwAAAGcAAABFAAAAVAAAAEcAAABaAAAATQAAAFAAAABEAAAAagAAAF0AAABjAAAAWwAAAEkAAABZAAAARwAAAGkAAABYAAAAZwAAAFwAAABTAAAATgAAAEoAAABsAAAAZAAAAF8AAABdAAAATwAAAFoAAABNAAAAbQAAAF8AAABqAAAAXgAAAFYAAABRAAAASwAAAGsAAABoAAAAZQAAAF8AAABcAAAATwAAAE4AAABtAAAAbAAAAF0AAABgAAAAaAAAAGIAAABuAAAATAAAAFYAAABSAAAAYQAAAH8AAABiAAAAVAAAAGcAAABZAAAAbwAAAGIAAABuAAAAYQAAAG8AAABSAAAAYAAAAFQAAABjAAAAUAAAAGkAAABYAAAAagAAAFoAAABxAAAAZAAAAGYAAABTAAAAVwAAAGwAAAByAAAAXAAAAGUAAABmAAAAawAAAHAAAABRAAAAVQAAAF4AAABmAAAAZQAAAFcAAABVAAAAcgAAAHAAAABkAAAAZwAAAFsAAABhAAAAWQAAAHQAAABpAAAAbwAAAGgAAABrAAAAbgAAAHMAAABWAAAAXgAAAGAAAABpAAAAWAAAAGcAAABbAAAAcQAAAGMAAAB0AAAAagAAAF0AAABjAAAAWgAAAHUAAABtAAAAcQAAAGsAAAB/AAAAZQAAAF4AAABzAAAAaAAAAHAAAABsAAAAZAAAAF8AAABcAAAAdgAAAHIAAABtAAAAbQAAAGwAAABdAAAAXwAAAHUAAAB2AAAAagAAAG4AAABiAAAAaAAAAGAAAAB3AAAAbwAAAHMAAABvAAAAYQAAAG4AAABiAAAAdAAAAGcAAAB3AAAAcAAAAGsAAABmAAAAZQAAAHgAAABzAAAAcgAAAHEAAABjAAAAdAAAAGkAAAB1AAAAagAAAHkAAAByAAAAcAAAAGQAAABmAAAAdgAAAHgAAABsAAAAcwAAAG4AAABrAAAAaAAAAHgAAAB3AAAAcAAAAHQAAABnAAAAdwAAAG8AAABxAAAAaQAAAHkAAAB1AAAAfwAAAG0AAAB2AAAAcQAAAHkAAABqAAAAdgAAAHgAAABsAAAAcgAAAHUAAAB5AAAAbQAAAHcAAABvAAAAcwAAAG4AAAB5AAAAdAAAAHgAAAB4AAAAcwAAAHIAAABwAAAAeQAAAHcAAAB2AAAAeQAAAHQAAAB4AAAAdwAAAHUAAABxAAAAdgAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAEAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAIAAAAFAAAAAQAAAAAAAAD/////AQAAAAAAAAADAAAABAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAUAAAABAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAQAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAADAAAABQAAAAEAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAEAAAABQAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAgAAAAUAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAABQAAAAAAAAAAAAAABQAAAAUAAAAAAAAAAAAAAP////8BAAAAAAAAAAMAAAAEAAAAAgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAABQAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAQAAAP//////////AQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAIAAAAAAAAAAAAAAAEAAAACAAAABgAAAAQAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAoAAAACAAAAAAAAAAAAAAABAAAAAQAAAAUAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAIAAAAAAAAAAAAAAAEAAAADAAAABwAAAAYAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAHAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAgAAAAAAAAAAAAAAAQAAAAAAAAAJAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAwAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAgAAAAAAAAAAAAAAAQAAAAQAAAAIAAAACgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAsAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAACAAAAAAAAAAAAAAABAAAACwAAAA8AAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA4AAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAgAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAACAAAAAAAAAAAAAAABAAAADAAAABAAAAAMAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAEAAAAKAAAAEwAAAAgAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAJAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAgAAAAAAAAAAAAAAAQAAAA0AAAARAAAADQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABEAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABMAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAIAAAAAAAAAAAAAAAEAAAAOAAAAEgAAAA8AAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABMAAAACAAAAAAAAAAAAAAABAAAA//////////8TAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAASAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABIAAAAAAAAAGAAAAAAAAAAhAAAAAAAAAB4AAAAAAAAAIAAAAAMAAAAxAAAAAQAAADAAAAADAAAAMgAAAAMAAAAIAAAAAAAAAAUAAAAFAAAACgAAAAUAAAAWAAAAAAAAABAAAAAAAAAAEgAAAAAAAAApAAAAAQAAACEAAAAAAAAAHgAAAAAAAAAEAAAAAAAAAAAAAAAFAAAAAgAAAAUAAAAPAAAAAQAAAAgAAAAAAAAABQAAAAUAAAAfAAAAAQAAABYAAAAAAAAAEAAAAAAAAAACAAAAAAAAAAYAAAAAAAAADgAAAAAAAAAKAAAAAAAAAAsAAAAAAAAAEQAAAAMAAAAYAAAAAQAAABcAAAADAAAAGQAAAAMAAAAAAAAAAAAAAAEAAAAFAAAACQAAAAUAAAAFAAAAAAAAAAIAAAAAAAAABgAAAAAAAAASAAAAAQAAAAoAAAAAAAAACwAAAAAAAAAEAAAAAQAAAAMAAAAFAAAABwAAAAUAAAAIAAAAAQAAAAAAAAAAAAAAAQAAAAUAAAAQAAAAAQAAAAUAAAAAAAAAAgAAAAAAAAAHAAAAAAAAABUAAAAAAAAAJgAAAAAAAAAJAAAAAAAAABMAAAAAAAAAIgAAAAMAAAAOAAAAAQAAABQAAAADAAAAJAAAAAMAAAADAAAAAAAAAA0AAAAFAAAAHQAAAAUAAAABAAAAAAAAAAcAAAAAAAAAFQAAAAAAAAAGAAAAAQAAAAkAAAAAAAAAEwAAAAAAAAAEAAAAAgAAAAwAAAAFAAAAGgAAAAUAAAAAAAAAAQAAAAMAAAAAAAAADQAAAAUAAAACAAAAAQAAAAEAAAAAAAAABwAAAAAAAAAaAAAAAAAAACoAAAAAAAAAOgAAAAAAAAAdAAAAAAAAACsAAAAAAAAAPgAAAAMAAAAmAAAAAQAAAC8AAAADAAAAQAAAAAMAAAAMAAAAAAAAABwAAAAFAAAALAAAAAUAAAANAAAAAAAAABoAAAAAAAAAKgAAAAAAAAAVAAAAAQAAAB0AAAAAAAAAKwAAAAAAAAAEAAAAAwAAAA8AAAAFAAAAHwAAAAUAAAADAAAAAQAAAAwAAAAAAAAAHAAAAAUAAAAHAAAAAQAAAA0AAAAAAAAAGgAAAAAAAAAfAAAAAAAAACkAAAAAAAAAMQAAAAAAAAAsAAAAAAAAADUAAAAAAAAAPQAAAAMAAAA6AAAAAQAAAEEAAAADAAAASwAAAAMAAAAPAAAAAAAAABYAAAAFAAAAIQAAAAUAAAAcAAAAAAAAAB8AAAAAAAAAKQAAAAAAAAAqAAAAAQAAACwAAAAAAAAANQAAAAAAAAAEAAAABAAAAAgAAAAFAAAAEAAAAAUAAAAMAAAAAQAAAA8AAAAAAAAAFgAAAAUAAAAaAAAAAQAAABwAAAAAAAAAHwAAAAAAAAAyAAAAAAAAADAAAAAAAAAAMQAAAAMAAAAgAAAAAAAAAB4AAAADAAAAIQAAAAMAAAAYAAAAAwAAABIAAAADAAAAEAAAAAMAAABGAAAAAAAAAEMAAAAAAAAAQgAAAAMAAAA0AAAAAwAAADIAAAAAAAAAMAAAAAAAAAAlAAAAAwAAACAAAAAAAAAAHgAAAAMAAABTAAAAAAAAAFcAAAADAAAAVQAAAAMAAABKAAAAAwAAAEYAAAAAAAAAQwAAAAAAAAA5AAAAAQAAADQAAAADAAAAMgAAAAAAAAAZAAAAAAAAABcAAAAAAAAAGAAAAAMAAAARAAAAAAAAAAsAAAADAAAACgAAAAMAAAAOAAAAAwAAAAYAAAADAAAAAgAAAAMAAAAtAAAAAAAAACcAAAAAAAAAJQAAAAMAAAAjAAAAAwAAABkAAAAAAAAAFwAAAAAAAAAbAAAAAwAAABEAAAAAAAAACwAAAAMAAAA/AAAAAAAAADsAAAADAAAAOQAAAAMAAAA4AAAAAwAAAC0AAAAAAAAAJwAAAAAAAAAuAAAAAwAAACMAAAADAAAAGQAAAAAAAAAkAAAAAAAAABQAAAAAAAAADgAAAAMAAAAiAAAAAAAAABMAAAADAAAACQAAAAMAAAAmAAAAAwAAABUAAAADAAAABwAAAAMAAAA3AAAAAAAAACgAAAAAAAAAGwAAAAMAAAA2AAAAAwAAACQAAAAAAAAAFAAAAAAAAAAzAAAAAwAAACIAAAAAAAAAEwAAAAMAAABIAAAAAAAAADwAAAADAAAALgAAAAMAAABJAAAAAwAAADcAAAAAAAAAKAAAAAAAAABHAAAAAwAAADYAAAADAAAAJAAAAAAAAABAAAAAAAAAAC8AAAAAAAAAJgAAAAMAAAA+AAAAAAAAACsAAAADAAAAHQAAAAMAAAA6AAAAAwAAACoAAAADAAAAGgAAAAMAAABUAAAAAAAAAEUAAAAAAAAAMwAAAAMAAABSAAAAAwAAAEAAAAAAAAAALwAAAAAAAABMAAAAAwAAAD4AAAAAAAAAKwAAAAMAAABhAAAAAAAAAFkAAAADAAAARwAAAAMAAABiAAAAAwAAAFQAAAAAAAAARQAAAAAAAABgAAAAAwAAAFIAAAADAAAAQAAAAAAAAABLAAAAAAAAAEEAAAAAAAAAOgAAAAMAAAA9AAAAAAAAADUAAAADAAAALAAAAAMAAAAxAAAAAwAAACkAAAADAAAAHwAAAAMAAABeAAAAAAAAAFYAAAAAAAAATAAAAAMAAABRAAAAAwAAAEsAAAAAAAAAQQAAAAAAAABCAAAAAwAAAD0AAAAAAAAANQAAAAMAAABrAAAAAAAAAGgAAAADAAAAYAAAAAMAAABlAAAAAwAAAF4AAAAAAAAAVgAAAAAAAABVAAAAAwAAAFEAAAADAAAASwAAAAAAAAA5AAAAAAAAADsAAAAAAAAAPwAAAAMAAABKAAAAAAAAAE4AAAADAAAATwAAAAMAAABTAAAAAwAAAFwAAAADAAAAXwAAAAMAAAAlAAAAAAAAACcAAAADAAAALQAAAAMAAAA0AAAAAAAAADkAAAAAAAAAOwAAAAAAAABGAAAAAwAAAEoAAAAAAAAATgAAAAMAAAAYAAAAAAAAABcAAAADAAAAGQAAAAMAAAAgAAAAAwAAACUAAAAAAAAAJwAAAAMAAAAyAAAAAwAAADQAAAAAAAAAOQAAAAAAAAAuAAAAAAAAADwAAAAAAAAASAAAAAMAAAA4AAAAAAAAAEQAAAADAAAAUAAAAAMAAAA/AAAAAwAAAE0AAAADAAAAWgAAAAMAAAAbAAAAAAAAACgAAAADAAAANwAAAAMAAAAjAAAAAAAAAC4AAAAAAAAAPAAAAAAAAAAtAAAAAwAAADgAAAAAAAAARAAAAAMAAAAOAAAAAAAAABQAAAADAAAAJAAAAAMAAAARAAAAAwAAABsAAAAAAAAAKAAAAAMAAAAZAAAAAwAAACMAAAAAAAAALgAAAAAAAABHAAAAAAAAAFkAAAAAAAAAYQAAAAMAAABJAAAAAAAAAFsAAAADAAAAZwAAAAMAAABIAAAAAwAAAFgAAAADAAAAaQAAAAMAAAAzAAAAAAAAAEUAAAADAAAAVAAAAAMAAAA2AAAAAAAAAEcAAAAAAAAAWQAAAAAAAAA3AAAAAwAAAEkAAAAAAAAAWwAAAAMAAAAmAAAAAAAAAC8AAAADAAAAQAAAAAMAAAAiAAAAAwAAADMAAAAAAAAARQAAAAMAAAAkAAAAAwAAADYAAAAAAAAARwAAAAAAAABgAAAAAAAAAGgAAAAAAAAAawAAAAMAAABiAAAAAAAAAG4AAAADAAAAcwAAAAMAAABhAAAAAwAAAG8AAAADAAAAdwAAAAMAAABMAAAAAAAAAFYAAAADAAAAXgAAAAMAAABSAAAAAAAAAGAAAAAAAAAAaAAAAAAAAABUAAAAAwAAAGIAAAAAAAAAbgAAAAMAAAA6AAAAAAAAAEEAAAADAAAASwAAAAMAAAA+AAAAAwAAAEwAAAAAAAAAVgAAAAMAAABAAAAAAwAAAFIAAAAAAAAAYAAAAAAAAABVAAAAAAAAAFcAAAAAAAAAUwAAAAMAAABlAAAAAAAAAGYAAAADAAAAZAAAAAMAAABrAAAAAwAAAHAAAAADAAAAcgAAAAMAAABCAAAAAAAAAEMAAAADAAAARgAAAAMAAABRAAAAAAAAAFUAAAAAAAAAVwAAAAAAAABeAAAAAwAAAGUAAAAAAAAAZgAAAAMAAAAxAAAAAAAAADAAAAADAAAAMgAAAAMAAAA9AAAAAwAAAEIAAAAAAAAAQwAAAAMAAABLAAAAAwAAAFEAAAAAAAAAVQAAAAAAAABfAAAAAAAAAFwAAAAAAAAAUwAAAAAAAABPAAAAAAAAAE4AAAAAAAAASgAAAAMAAAA/AAAAAQAAADsAAAADAAAAOQAAAAMAAABtAAAAAAAAAGwAAAAAAAAAZAAAAAUAAABdAAAAAQAAAF8AAAAAAAAAXAAAAAAAAABNAAAAAQAAAE8AAAAAAAAATgAAAAAAAAB1AAAABAAAAHYAAAAFAAAAcgAAAAUAAABqAAAAAQAAAG0AAAAAAAAAbAAAAAAAAABaAAAAAQAAAF0AAAABAAAAXwAAAAAAAABaAAAAAAAAAE0AAAAAAAAAPwAAAAAAAABQAAAAAAAAAEQAAAAAAAAAOAAAAAMAAABIAAAAAQAAADwAAAADAAAALgAAAAMAAABqAAAAAAAAAF0AAAAAAAAATwAAAAUAAABjAAAAAQAAAFoAAAAAAAAATQAAAAAAAABYAAAAAQAAAFAAAAAAAAAARAAAAAAAAAB1AAAAAwAAAG0AAAAFAAAAXwAAAAUAAABxAAAAAQAAAGoAAAAAAAAAXQAAAAAAAABpAAAAAQAAAGMAAAABAAAAWgAAAAAAAABpAAAAAAAAAFgAAAAAAAAASAAAAAAAAABnAAAAAAAAAFsAAAAAAAAASQAAAAMAAABhAAAAAQAAAFkAAAADAAAARwAAAAMAAABxAAAAAAAAAGMAAAAAAAAAUAAAAAUAAAB0AAAAAQAAAGkAAAAAAAAAWAAAAAAAAABvAAAAAQAAAGcAAAAAAAAAWwAAAAAAAAB1AAAAAgAAAGoAAAAFAAAAWgAAAAUAAAB5AAAAAQAAAHEAAAAAAAAAYwAAAAAAAAB3AAAAAQAAAHQAAAABAAAAaQAAAAAAAAB3AAAAAAAAAG8AAAAAAAAAYQAAAAAAAABzAAAAAAAAAG4AAAAAAAAAYgAAAAMAAABrAAAAAQAAAGgAAAADAAAAYAAAAAMAAAB5AAAAAAAAAHQAAAAAAAAAZwAAAAUAAAB4AAAAAQAAAHcAAAAAAAAAbwAAAAAAAABwAAAAAQAAAHMAAAAAAAAAbgAAAAAAAAB1AAAAAQAAAHEAAAAFAAAAaQAAAAUAAAB2AAAAAQAAAHkAAAAAAAAAdAAAAAAAAAByAAAAAQAAAHgAAAABAAAAdwAAAAAAAAByAAAAAAAAAHAAAAAAAAAAawAAAAAAAABkAAAAAAAAAGYAAAAAAAAAZQAAAAMAAABTAAAAAQAAAFcAAAADAAAAVQAAAAMAAAB2AAAAAAAAAHgAAAAAAAAAcwAAAAUAAABsAAAAAQAAAHIAAAAAAAAAcAAAAAAAAABcAAAAAQAAAGQAAAAAAAAAZgAAAAAAAAB1AAAAAAAAAHkAAAAFAAAAdwAAAAUAAABtAAAAAQAAAHYAAAAAAAAAeAAAAAAAAABfAAAAAQAAAGwAAAABAAAAcgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAEAAAABAAAAAAAAAAAAAAABAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAB+ogX28rbpPxqumpJv+fM/165tC4ns9D+XaEnTqUsEQFrOtNlC4PA/3U+0XG6P9b9TdUUBxTTjP4PUp8ex1ty/B1rD/EN43z+lcDi6LLrZP/a45NWEHMY/oJ5ijLDZ+j/xw3rjxWPjP2B8A46ioQdAotff3wla2z+FMSpA1jj+v6b5Y1mtPbS/cIu8K0F457/2esiyJpDNv98k5Ts2NeA/pvljWa09tD88ClUJ60MDQPZ6yLImkM0/4ONKxa0UBcD2uOTVhBzGv5G7JRxGave/8cN648Vj47+HCwtkjAXIv6LX398JWtu/qyheaCAL9D9TdUUBxTTjv4gyTxslhwVAB1rD/EN4378EH/28teoFwH6iBfbytum/F6ztFYdK/r/Xrm0Liez0vwcS6wNGWeO/Ws602ULg8L9TCtRLiLT8P8pi5RexJsw/BlIKPVwR5T95Wyu0/QjnP5PjoT7YYcu/mBhKZ6zrwj8wRYS7NebuP3qW6geh+Ls/SLrixebL3r+pcyymN9XrPwmkNHp7xec/GWNMZVAA17+82s+x2BLiPwn2ytbJ9ek/LgEH1sMS1j8yp/2LhTfeP+SnWwtQBbu/d38gkp5X7z8ytsuHaADGPzUYObdf1+m/7IauECWhwz+cjSACjzniP76Z+wUhN9K/1+GEKzup67+/GYr/04baPw6idWOvsuc/ZedTWsRa5b/EJQOuRzi0v/OncYhHPes/h49PixY53j+i8wWfC03Nvw2idWOvsue/ZedTWsRa5T/EJQOuRzi0P/KncYhHPeu/iY9PixY53r+i8wWfC03NP9anWwtQBbs/d38gkp5X778ytsuHaADGvzUYObdf1+k/74auECWhw7+cjSACjzniv8CZ+wUhN9I/1uGEKzup6z+/GYr/04bavwmkNHp7xee/F2NMZVAA1z+82s+x2BLivwr2ytbJ9em/KwEH1sMS1r8yp/2LhTfev81i5RexJsy/BlIKPVwR5b95Wyu0/Qjnv5DjoT7YYcs/nBhKZ6zrwr8wRYS7Nebuv3OW6geh+Lu/SLrixebL3j+pcyymN9Xrv8rHIFfWehZAMBwUdlo0DECTUc17EOb2PxpVB1SWChdAzjbhb9pTDUDQhmdvECX5P9FlMKCC9+g/IIAzjELgE0DajDngMv8GQFhWDmDPjNs/y1guLh96EkAxPi8k7DIEQJCc4URlhRhA3eLKKLwkEECqpNAyTBD/P6xpjXcDiwVAFtl//cQm4z+Ibt3XKiYTQM7mCLUb3QdAoM1t8yVv7D8aLZv2Nk8UQEAJPV5nQwxAtSsfTCoE9z9TPjXLXIIWQBVanC5W9AtAYM3d7Adm9j++5mQz1FoWQBUThyaVBghAwH5muQsV7T89Q1qv82MUQJoWGOfNuBdAzrkClkmwDkDQjKq77t37Py+g0dtitsE/ZwAMTwVPEUBojepluNwBQGYbtuW+t9w/HNWIJs6MEkDTNuQUSlgEQKxktPP5TcQ/ixbLB8JjEUCwuWjXMQYCQAS/R09FkRdAowpiZjhhDkB7LmlczD/7P01iQmhhsAVAnrtTwDy84z/Z6jfQ2TgTQChOCXMnWwpAhrW3daoz8z/HYJvVPI4VQLT3ik5FcA5Angi7LOZd+z+NNVzDy5gXQBXdvVTFUA1AYNMgOeYe+T8+qHXGCwkXQKQTOKwa5AJA8gFVoEMW0T+FwzJyttIRQAEAAAD/////BwAAAP////8xAAAA/////1cBAAD/////YQkAAP////+nQQAA/////5HLAQD/////95AMAP/////B9lcAAAAAAAAAAAAAAAAAAgAAAP////8OAAAA/////2IAAAD/////rgIAAP/////CEgAA/////06DAAD/////IpcDAP/////uIRkA/////4LtrwAAAAAAAAAAAAAAAAAAAAAAAgAAAP//////////AQAAAAMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////wIAAAD//////////wEAAAAAAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA/////////////////////wEAAAD///////////////8CAAAA////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD///////////////////////////////8CAAAA////////////////AQAAAP////////////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAAAQAAAP//////////AgAAAP//////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAAEAAAD//////////wIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAgAAAAAAAAACAAAAAQAAAAEAAAACAAAAAgAAAAAAAAAFAAAABQAAAAAAAAACAAAAAgAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAIAAAABAAAAAgAAAAIAAAACAAAAAAAAAAUAAAAGAAAAAAAAAAIAAAACAAAAAwAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAAAAAAAAgAAAAEAAAADAAAAAgAAAAIAAAAAAAAABQAAAAcAAAAAAAAAAgAAAAIAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAgAAAAAAAAACAAAAAQAAAAQAAAACAAAAAgAAAAAAAAAFAAAACAAAAAAAAAACAAAAAgAAAAMAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAACAAAAAAAAAAIAAAABAAAAAAAAAAIAAAACAAAAAAAAAAUAAAAJAAAAAAAAAAIAAAACAAAAAwAAAAUAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAIAAAACAAAAAAAAAAMAAAAOAAAAAgAAAAAAAAACAAAAAwAAAAAAAAAAAAAAAgAAAAIAAAADAAAABgAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAgAAAAIAAAAAAAAAAwAAAAoAAAACAAAAAAAAAAIAAAADAAAAAQAAAAAAAAACAAAAAgAAAAMAAAAHAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAACAAAAAgAAAAAAAAADAAAACwAAAAIAAAAAAAAAAgAAAAMAAAACAAAAAAAAAAIAAAACAAAAAwAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAIAAAACAAAAAAAAAAMAAAAMAAAAAgAAAAAAAAACAAAAAwAAAAMAAAAAAAAAAgAAAAIAAAADAAAACQAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAgAAAAIAAAAAAAAAAwAAAA0AAAACAAAAAAAAAAIAAAADAAAABAAAAAAAAAACAAAAAgAAAAMAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAACAAAAAgAAAAAAAAADAAAABgAAAAIAAAAAAAAAAgAAAAMAAAAPAAAAAAAAAAIAAAACAAAAAwAAAAsAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAIAAAACAAAAAAAAAAMAAAAHAAAAAgAAAAAAAAACAAAAAwAAABAAAAAAAAAAAgAAAAIAAAADAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAgAAAAIAAAAAAAAAAwAAAAgAAAACAAAAAAAAAAIAAAADAAAAEQAAAAAAAAACAAAAAgAAAAMAAAANAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAACAAAAAgAAAAAAAAADAAAACQAAAAIAAAAAAAAAAgAAAAMAAAASAAAAAAAAAAIAAAACAAAAAwAAAA4AAAAAAAAAAAAAAAAAAAAAAAAACQAAAAIAAAACAAAAAAAAAAMAAAAFAAAAAgAAAAAAAAACAAAAAwAAABMAAAAAAAAAAgAAAAIAAAADAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAgAAAAAAAAACAAAAAQAAABMAAAACAAAAAgAAAAAAAAAFAAAACgAAAAAAAAACAAAAAgAAAAMAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABEAAAACAAAAAAAAAAIAAAABAAAADwAAAAIAAAACAAAAAAAAAAUAAAALAAAAAAAAAAIAAAACAAAAAwAAABEAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAIAAAAAAAAAAgAAAAEAAAAQAAAAAgAAAAIAAAAAAAAABQAAAAwAAAAAAAAAAgAAAAIAAAADAAAAEgAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAgAAAAAAAAACAAAAAQAAABEAAAACAAAAAgAAAAAAAAAFAAAADQAAAAAAAAACAAAAAgAAAAMAAAATAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAACAAAAAAAAAAIAAAABAAAAEgAAAAIAAAACAAAAAAAAAAUAAAAOAAAAAAAAAAIAAAACAAAAAwAAAAIAAAABAAAAAAAAAAEAAAACAAAAAAAAAAAAAAACAAAAAQAAAAAAAAABAAAAAgAAAAEAAAAAAAAAAgAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAAAAAAAAAAABQAAAAQAAAAAAAAAAQAAAAUAAAAEAAAAAAAAAAUAAAAAAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAEAAAACAAAAAQAAAAAAAAACAAAAAgAAAAAAAAABAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAAAAAAAAAAABQAAAAQAAAAAAAAAAQAAAAUAAAAEAAAAAAAAAAUAAAAFAAAAAAAAAAEAAAAAAAAAAAAAAMuhRbbsNlBBYqHW9OmHIkF9XBuqnS31QAK37uYhNMhAOSo3UUupm0DC+6pc6JxvQHV9eseEEEJAzURsCyqlFEB8BQ4NMJjnPyy3tBoS97o/xawXQznRjj89J2K2CZxhP6vX43RIIDQ/S8isgygEBz+LvFHQkmzaPjFFFO7wMq4+AADMLkTtjkIAAOgkJqxhQgAAU7B0MjRCAADwpBcVB0IAAACYP2HaQQAAAIn/Ja5BzczM4Eg6gUHNzMxMU7BTQTMzMzNfgCZBAAAAAEi3+UAAAAAAwGPNQDMzMzMzy6BAmpmZmZkxc0AzMzMzM/NFQDMzMzMzMxlAzczMzMzM7D+ygXSx2U6RQKimJOvQKnpA23hmONTHY0A/AGcxyudNQNb3K647mzZA+S56rrwWIUAm4kUQ+9UJQKre9hGzh/M/BLvoy9WG3T+LmqMf8VHGP2m3nYNV37A/gbFHcyeCmT+cBPWBckiDP61tZACjKW0/q2RbYVUYVj8uDypVyLNAP6jGS5cA5zBBwcqhBdCNGUEGEhQ/JVEDQT6WPnRbNO1AB/AWSJgT1kDfUWNCNLDAQNk+5C33OqlAchWL34QSk0DKvtDIrNV8QNF0G3kFzGVASSeWhBl6UED+/0mNGuk4QGjA/dm/1CJALPLPMql6DEDSHoDrwpP1P2jouzWST+A/egAAAAAAAABKAwAAAAAAAPoWAAAAAAAAyqAAAAAAAAB6ZQQAAAAAAErGHgAAAAAA+mvXAAAAAADK8+MFAAAAAHqqOykAAAAASqmhIAEAAAD6oGvkBwAAAMpm8T43AAAAes+ZuIIBAABKrDQMkwoAAPq1cFUFSgAAyvkUViUGAgAAAAAAAwAAAAYAAAACAAAABQAAAAEAAAAEAAAAAAAAAAAAAAAFAAAAAwAAAAEAAAAGAAAABAAAAAIAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAA/////wAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAP////8AAAAAAAAAAAEAAAABAAAAAAAAAAAAAAD/////AAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAA/////wUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////AAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////wAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAUAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAQAAAAAAAAAFAAAAAQAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAAAAAAABAAEAAAEBAAAAAAABAAAAAQAAAAEAAQAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAACAAAAAQAAAAMAAAAOAAAABgAAAAsAAAACAAAABwAAAAEAAAAYAAAABQAAAAoAAAABAAAABgAAAAAAAAAmAAAABwAAAAwAAAADAAAACAAAAAIAAAAxAAAACQAAAA4AAAAAAAAABQAAAAQAAAA6AAAACAAAAA0AAAAEAAAACQAAAAMAAAA/AAAACwAAAAYAAAAPAAAACgAAABAAAABIAAAADAAAAAcAAAAQAAAACwAAABEAAABTAAAACgAAAAUAAAATAAAADgAAAA8AAABhAAAADQAAAAgAAAARAAAADAAAABIAAABrAAAADgAAAAkAAAASAAAADQAAABMAAAB1AAAADwAAABMAAAARAAAAEgAAABAAAAAHAAAABwAAAAEAAAACAAAABAAAAAMAAAAAAAAAAAAAAAcAAAADAAAAAQAAAAIAAAAFAAAABAAAAAAAAAAAAAAAYWxnb3MuYwBfcG9seWZpbGxJbnRlcm5hbABhZGphY2VudEZhY2VEaXJbdG1wRmlqay5mYWNlXVtmaWprLmZhY2VdID09IEtJAGZhY2VpamsuYwBfZmFjZUlqa1BlbnRUb0dlb0JvdW5kYXJ5AGFkamFjZW50RmFjZURpcltjZW50ZXJJSksuZmFjZV1bZmFjZTJdID09IEtJAF9mYWNlSWprVG9HZW9Cb3VuZGFyeQBwb2x5Z29uLT5uZXh0ID09IE5VTEwAbGlua2VkR2VvLmMAYWRkTmV3TGlua2VkUG9seWdvbgBuZXh0ICE9IE5VTEwAbG9vcCAhPSBOVUxMAGFkZE5ld0xpbmtlZExvb3AAcG9seWdvbi0+Zmlyc3QgPT0gTlVMTABhZGRMaW5rZWRMb29wAGNvb3JkICE9IE5VTEwAYWRkTGlua2VkQ29vcmQAbG9vcC0+Zmlyc3QgPT0gTlVMTABpbm5lckxvb3BzICE9IE5VTEwAbm9ybWFsaXplTXVsdGlQb2x5Z29uAGJib3hlcyAhPSBOVUxMAGNhbmRpZGF0ZXMgIT0gTlVMTABmaW5kUG9seWdvbkZvckhvbGUAY2FuZGlkYXRlQkJveGVzICE9IE5VTEwAcmV2RGlyICE9IElOVkFMSURfRElHSVQAbG9jYWxpai5jAGgzVG9Mb2NhbElqawBiYXNlQ2VsbCAhPSBvcmlnaW5CYXNlQ2VsbAAhKG9yaWdpbk9uUGVudCAmJiBpbmRleE9uUGVudCkAcGVudGFnb25Sb3RhdGlvbnMgPj0gMABkaXJlY3Rpb25Sb3RhdGlvbnMgPj0gMABiYXNlQ2VsbCA9PSBvcmlnaW5CYXNlQ2VsbABiYXNlQ2VsbCAhPSBJTlZBTElEX0JBU0VfQ0VMTABsb2NhbElqa1RvSDMAIV9pc0Jhc2VDZWxsUGVudGFnb24oYmFzZUNlbGwpAGJhc2VDZWxsUm90YXRpb25zID49IDAAd2l0aGluUGVudGFnb25Sb3RhdGlvbnMgPj0gMABncmFwaC0+YnVja2V0cyAhPSBOVUxMAHZlcnRleEdyYXBoLmMAaW5pdFZlcnRleEdyYXBoAG5vZGUgIT0gTlVMTABhZGRWZXJ0ZXhOb2Rl";function demangle(func){return func}function demangleAll(text){return text.replace(/\b__Z[\w\d_]+/g,(function(x){return x===x?x:x+" ["+x+"]"}))}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error(0)}catch(e){err=e}if(!err.stack)return"(no stack trace available)"}return err.stack.toString()}function _emscripten_get_heap_size(){return HEAP8.length}function emscripten_realloc_buffer(size){try{var newBuffer=new ArrayBuffer(size);if(newBuffer.byteLength!=size)return;return new Int8Array(newBuffer).set(HEAP8),_emscripten_replace_memory(newBuffer),updateGlobalBufferAndViews(newBuffer),1}catch(e){}}var decodeBase64="function"==typeof atob?atob:function(input){var chr1,chr2,chr3,enc2,enc3,enc4,keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",output="",i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{chr1=keyStr.indexOf(input.charAt(i++))<<2|(enc2=keyStr.indexOf(input.charAt(i++)))>>4,chr2=(15&enc2)<<4|(enc3=keyStr.indexOf(input.charAt(i++)))>>2,chr3=(3&enc3)<<6|(enc4=keyStr.indexOf(input.charAt(i++))),output+=String.fromCharCode(chr1),64!==enc3&&(output+=String.fromCharCode(chr2)),64!==enc4&&(output+=String.fromCharCode(chr3))}while(i>2]=a,b[g+4>>2]=c,(g=0!=(0|f))&&(b[f>>2]=0),0|Fb(a,c))return S=o,0|(n=1);b[n>>2]=0;a:do{if((0|d)>=1)if(g)for(k=0,l=1,m=1,h=0,g=a;;){if(!(h|k)){if(0==(0|(g=0|da(g,c,4,n)))&0==(0|(c=0|G()))){g=2;break a}if(0|Fb(g,c)){g=1;break a}}if(0==(0|(g=0|da(g,c,0|b[16+(k<<2)>>2],n)))&0==(0|(c=0|G()))){g=2;break a}if(b[(a=e+(m<<3)|0)>>2]=g,b[a+4>>2]=c,b[f+(m<<2)>>2]=l,a=(0|(h=h+1|0))==(0|l),j=6==(0|(i=k+1|0)),0|Fb(g,c)){g=1;break a}if((0|(l=l+(j&a&1)|0))>(0|d)){g=0;break}k=a?j?0:i:k,m=m+1|0,h=a?0:h}else for(k=0,l=1,m=1,h=0,g=a;;){if(!(h|k)){if(0==(0|(g=0|da(g,c,4,n)))&0==(0|(c=0|G()))){g=2;break a}if(0|Fb(g,c)){g=1;break a}}if(0==(0|(g=0|da(g,c,0|b[16+(k<<2)>>2],n)))&0==(0|(c=0|G()))){g=2;break a}if(b[(a=e+(m<<3)|0)>>2]=g,b[a+4>>2]=c,a=(0|(h=h+1|0))==(0|l),j=6==(0|(i=k+1|0)),0|Fb(g,c)){g=1;break a}if((0|(l=l+(j&a&1)|0))>(0|d)){g=0;break}k=a?j?0:i:k,m=m+1|0,h=a?0:h}else g=0}while(0);return S=o,0|(n=g)}function ca(a,c,d,e,f,g,h){d|=0,e|=0,f|=0,g|=0,h|=0;var l,m,i=0,j=0,k=0,n=0,o=0;if(m=S,S=S+16|0,l=m,0==(0|(a|=0))&0==(0|(c|=0)))S=m;else{if(i=0|bd(0|a,0|c,0|g,((0|g)<0)<<31>>31|0),G(),!(0==(0|(o=0|b[(n=j=e+(i<<3)|0)>>2]))&0==(0|(n=0|b[n+4>>2]))|(k=(0|o)==(0|a)&(0|n)==(0|c))))do{k=(0|(n=0|b[(o=j=e+((i=(i+1|0)%(0|g)|0)<<3)|0)>>2]))==(0|a)&(0|(o=0|b[o+4>>2]))==(0|c)}while(!(0==(0|n)&0==(0|o)|k));i=f+(i<<2)|0,k&&(0|b[i>>2])<=(0|h)||(b[(o=j)>>2]=a,b[o+4>>2]=c,b[i>>2]=h,(0|h)>=(0|d)||(o=h+1|0,b[l>>2]=0,ca(n=0|da(a,c,2,l),0|G(),d,e,f,g,o),b[l>>2]=0,ca(n=0|da(a,c,3,l),0|G(),d,e,f,g,o),b[l>>2]=0,ca(n=0|da(a,c,1,l),0|G(),d,e,f,g,o),b[l>>2]=0,ca(n=0|da(a,c,5,l),0|G(),d,e,f,g,o),b[l>>2]=0,ca(n=0|da(a,c,4,l),0|G(),d,e,f,g,o),b[l>>2]=0,ca(n=0|da(a,c,6,l),0|G(),d,e,f,g,o))),S=m}}function da(a,c,d,e){a|=0,c|=0,d|=0;var i,j,f=0,g=0,h=0,l=0,m=0,n=0,o=0;if((0|b[(e|=0)>>2])>0){f=0;do{d=0|Pa(d),f=f+1|0}while((0|f)<(0|b[e>>2]))}i=0|cd(0|a,0|c,45),G(),j=127&i,g=0|Lb(a,c),f=0|cd(0|a,0|c,52),G(),f&=15;a:do{if(f)for(;;){if(n=0|cd(0|a,0|c,0|(m=3*(15-f|0)|0)),G(),n&=7,o=0==(0|Rb(f)),f=f+-1|0,l=0|dd(7,0,0|m),c&=~(0|G()),a=(m=0|dd(0|b[(o?464:48)+(28*n|0)+(d<<2)>>2],0,0|m))|a&~l,c|=0|G(),!(d=0|b[(o?672:256)+(28*n|0)+(d<<2)>>2])){d=0;break a}if(!f){h=6;break}}else h=6}while(0);6==(0|h)&&(a|=n=0|dd(0|(o=0|b[880+(28*j|0)+(d<<2)>>2]),0,45),c=0|G()|-1040385&c,d=0|b[4304+(28*j|0)+(d<<2)>>2],127==(127&o|0)&&(o=0|dd(0|b[880+(28*j|0)+20>>2],0,45),c=0|G()|-1040385&c,d=0|b[4304+(28*j|0)+20>>2],a=0|Nb(o|a,c),c=0|G(),b[e>>2]=1+(0|b[e>>2]))),h=0|cd(0|a,0|c,45),G(),h&=127;b:do{if(0|la(h)){c:do{if(1==(0|Lb(a,c))){if((0|j)!=(0|h)){if(0|ra(h,0|b[7728+(28*j|0)>>2])){a=0|Pb(a,c),g=1,c=0|G();break}a=0|Nb(a,c),g=1,c=0|G();break}switch(0|g){case 5:a=0|Pb(a,c),c=0|G(),b[e>>2]=5+(0|b[e>>2]),g=0;break c;case 3:a=0|Nb(a,c),c=0|G(),b[e>>2]=1+(0|b[e>>2]),g=0;break c;default:return o=0,F(0|(n=0)),0|o}}else g=0}while(0);if((0|d)>0){f=0;do{a=0|Mb(a,c),c=0|G(),f=f+1|0}while((0|f)!=(0|d))}if((0|j)!=(0|h)){if(!(0|ma(h))){if(0!=(0|g)|5!=(0|Lb(a,c)))break;b[e>>2]=1+(0|b[e>>2]);break}switch(127&i){case 8:case 118:break b}3!=(0|Lb(a,c))&&(b[e>>2]=1+(0|b[e>>2]))}}else if((0|d)>0){f=0;do{a=0|Nb(a,c),c=0|G(),f=f+1|0}while((0|f)!=(0|d))}}while(0);return b[e>>2]=((0|b[e>>2])+d|0)%6|0,o=a,F(0|(n=c)),0|o}function ia(a,c,d,f,g,h){c|=0,d|=0,f|=0,g|=0,h|=0;var t,u,v,w,x,y,z,A,C,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,B=0,D=0,E=0;if(C=S,S=S+48|0,y=C+32|0,z=C+16|0,A=C,(0|(i=0|b[(a|=0)>>2]))<=0)return S=C,0|(B=0);t=a+4|0,u=y+8|0,v=z+8|0,w=A+8|0,x=((0|c)<0)<<31>>31,s=0;a:for(;;){q=(j=0|b[t>>2])+(s<<4)|0,b[y>>2]=b[q>>2],b[y+4>>2]=b[q+4>>2],b[y+8>>2]=b[q+8>>2],b[y+12>>2]=b[q+12>>2],(0|s)==(i+-1|0)?(b[z>>2]=b[j>>2],b[z+4>>2]=b[j+4>>2],b[z+8>>2]=b[j+8>>2],b[z+12>>2]=b[j+12>>2]):(q=j+(s+1<<4)|0,b[z>>2]=b[q>>2],b[z+4>>2]=b[q+4>>2],b[z+8>>2]=b[q+8>>2],b[z+12>>2]=b[q+12>>2]),q=0|za(y,z,d);b:do{if((0|q)>0){r=+(0|q),p=0;c:for(;;){E=+(q-p|0),D=+(0|p),e[A>>3]=+e[y>>3]*E/r+ +e[z>>3]*D/r,e[w>>3]=+e[u>>3]*E/r+ +e[v>>3]*D/r,j=0|bd(0|(n=0|Sb(A,d)),0|(o=0|G()),0|c,0|x),G(),l=0|b[(k=i=h+(j<<3)|0)>>2],k=0|b[k+4>>2];d:do{if(0==(0|l)&0==(0|k))B=14;else for(m=0;;){if((0|m)>(0|c)){i=1;break d}if((0|l)==(0|n)&(0|k)==(0|o)){i=7;break d}if(0==(0|(l=0|b[(k=i=h+((j=(j+1|0)%(0|c)|0)<<3)|0)>>2]))&0==(0|(k=0|b[k+4>>2]))){B=14;break}m=m+1|0}}while(0);switch(14==(0|B)&&(B=0,0==(0|n)&0==(0|o)?i=7:(b[i>>2]=n,b[i+4>>2]=o,i=0|b[f>>2],b[(m=g+(i<<3)|0)>>2]=n,b[m+4>>2]=o,b[f>>2]=i+1,i=0)),7&i){case 7:case 0:break;default:break c}if((0|q)<=(0|(p=p+1|0))){B=8;break b}}if(0|i){i=-1,B=20;break a}}else B=8}while(0);if(8==(0|B)&&(B=0),(0|(s=s+1|0))>=(0|(i=0|b[a>>2]))){i=0,B=20;break}}return 20==(0|B)?(S=C,0|i):0}function la(a){return 0|b[7728+(28*(a|=0)|0)+16>>2]}function ma(a){return 4==(0|(a|=0))|117==(0|a)|0}function na(a){return 0|b[11152+(216*(0|b[(a|=0)>>2])|0)+(72*(0|b[a+4>>2])|0)+(24*(0|b[a+8>>2])|0)+(b[a+12>>2]<<3)>>2]}function oa(a){return 0|b[11152+(216*(0|b[(a|=0)>>2])|0)+(72*(0|b[a+4>>2])|0)+(24*(0|b[a+8>>2])|0)+(b[a+12>>2]<<3)+4>>2]}function ra(a,c){return c|=0,(0|b[7728+(28*(a|=0)|0)+20>>2])==(0|c)?0|(c=1):0|(c=(0|b[7728+(28*a|0)+24>>2])==(0|c))}function sa(a,c){return 0|b[880+(28*(a|=0)|0)+((c|=0)<<2)>>2]}function ta(a,c){return c|=0,(0|b[880+(28*(a|=0)|0)>>2])==(0|c)?0|(c=0):(0|b[880+(28*a|0)+4>>2])==(0|c)?0|(c=1):(0|b[880+(28*a|0)+8>>2])==(0|c)?0|(c=2):(0|b[880+(28*a|0)+12>>2])==(0|c)?0|(c=3):(0|b[880+(28*a|0)+16>>2])==(0|c)?0|(c=4):(0|b[880+(28*a|0)+20>>2])==(0|c)?0|(c=5):0|((0|b[880+(28*a|0)+24>>2])==(0|c)?6:7)}function wa(a){return+e[(a|=0)+16>>3]<+e[a+24>>3]|0}function xa(a,b){a|=0;var d,f,c=0;return(c=+e[(b|=0)>>3])>=+e[a+8>>3]&&c<=+e[a>>3]?(d=+e[a+16>>3],c=+e[a+24>>3],b=(f=+e[b+8>>3])>=c,a=f<=d&1,d>2]=0,h=h+4|0}while((0|h)<(0|j));return _b(c,g),Vb(j=0|b[(h=g)>>2],h=0|b[h+4>>2],d),Wb(j,h,f),k=+jb(d,f+8|0),e[d>>3]=+e[a>>3],e[(h=d+8|0)>>3]=+e[a+16>>3],e[f>>3]=+e[a+8>>3],e[(j=f+8|0)>>3]=+e[a+24>>3],l=+jb(d,f),j=~~+A(+l*l/+ed(+ +q(+(+e[h>>3]-+e[j>>3])/(+e[d>>3]-+e[f>>3])),3)/(k*(2.59807621135*k)*.8)),S=i,0|(0==(0|j)?1:j)}function za(a,c,d){a|=0,c|=0,d|=0;var e,f,g,i,k,h=0,j=0;i=S,S=S+288|0,e=i+264|0,f=i+96|0,j=(h=g=i)+96|0;do{b[h>>2]=0,h=h+4|0}while((0|h)<(0|j));return _b(d,g),Vb(h=0|b[(j=g)>>2],j=0|b[j+4>>2],e),Wb(h,j,f),k=+jb(e,f+8|0),j=~~+A(+ +jb(a,c)/(2*k)),S=i,0|(0==(0|j)?1:j)}function Aa(a,c,d,e){c|=0,d|=0,e|=0,b[(a|=0)>>2]=c,b[a+4>>2]=d,b[a+8>>2]=e}function Ba(a,c){a|=0;var h,k,l,n,d=0,f=0,g=0,i=0,j=0,m=0,o=0;b[(n=(c|=0)+8|0)>>2]=0,k=+e[a>>3],i=+q(+k),l=+e[a+8>>3],i+=.5*(j=+q(+l)/.8660254037844386),i-=+(0|(d=~~i)),j-=+(0|(a=~~j));do{if(i<.5){if(i<.3333333333333333){if(b[c>>2]=d,j<.5*(i+1)){b[c+4>>2]=a;break}a=a+1|0,b[c+4>>2]=a;break}if(a=(1&!(j<(o=1-i)))+a|0,b[c+4>>2]=a,o<=j&j<2*i){d=d+1|0,b[c>>2]=d;break}b[c>>2]=d;break}if(!(i<.6666666666666666)){if(d=d+1|0,b[c>>2]=d,j<.5*i){b[c+4>>2]=a;break}a=a+1|0,b[c+4>>2]=a;break}if(j<1-i){if(b[c+4>>2]=a,2*i-1>2]=d;break}}else a=a+1|0,b[c+4>>2]=a;d=d+1|0,b[c>>2]=d}while(0);do{if(k<0){if(1&a){d=~~(+(0|d)-(2*(+((m=0|_c(0|d,((0|d)<0)<<31>>31|0,0|(m=(a+1|0)/2|0),((0|m)<0)<<31>>31|0))>>>0)+4294967296*+(0|G()))+1)),b[c>>2]=d;break}d=~~(+(0|d)-2*(+((m=0|_c(0|d,((0|d)<0)<<31>>31|0,0|(m=(0|a)/2|0),((0|m)<0)<<31>>31|0))>>>0)+4294967296*+(0|G()))),b[c>>2]=d;break}}while(0);m=c+4|0,l<0&&(d=d-((1|a<<1)/2|0)|0,b[c>>2]=d,a=0-a|0,b[m>>2]=a),f=a-d|0,(0|d)<0?(g=0-d|0,b[m>>2]=f,b[n>>2]=g,b[c>>2]=0,a=f,d=0):g=0,(0|a)<0&&(d=d-a|0,b[c>>2]=d,g=g-a|0,b[n>>2]=g,b[m>>2]=0,a=0),h=d-g|0,f=a-g|0,(0|g)<0&&(b[c>>2]=h,b[m>>2]=f,b[n>>2]=0,a=f,d=h,g=0),(0|(f=(0|g)<(0|(f=(0|a)<(0|d)?a:d))?g:f))<=0||(b[c>>2]=d-f,b[m>>2]=a-f,b[n>>2]=g-f)}function Ca(a){var h,c=0,d=0,e=0,f=0,g=0;c=0|b[(a|=0)>>2],d=0|b[(h=a+4|0)>>2],(0|c)<0&&(d=d-c|0,b[h>>2]=d,b[(g=a+8|0)>>2]=(0|b[g>>2])-c,b[a>>2]=0,c=0),(0|d)<0?(c=c-d|0,b[a>>2]=c,f=(0|b[(g=a+8|0)>>2])-d|0,b[g>>2]=f,b[h>>2]=0,d=0):(g=f=a+8|0,f=0|b[f>>2]),(0|f)<0&&(c=c-f|0,b[a>>2]=c,d=d-f|0,b[h>>2]=d,b[g>>2]=0,f=0),(0|(e=(0|f)<(0|(e=(0|d)<(0|c)?d:c))?f:e))<=0||(b[a>>2]=c-e,b[h>>2]=d-e,b[g>>2]=f-e)}function Da(a,c){c|=0;var d,f;f=0|b[(a|=0)+8>>2],d=+((0|b[a+4>>2])-f|0),e[c>>3]=+((0|b[a>>2])-f|0)-.5*d,e[c+8>>3]=.8660254037844386*d}function Ea(a,c,d){a|=0,c|=0,b[(d|=0)>>2]=(0|b[c>>2])+(0|b[a>>2]),b[d+4>>2]=(0|b[c+4>>2])+(0|b[a+4>>2]),b[d+8>>2]=(0|b[c+8>>2])+(0|b[a+8>>2])}function Fa(a,c,d){a|=0,c|=0,b[(d|=0)>>2]=(0|b[a>>2])-(0|b[c>>2]),b[d+4>>2]=(0|b[a+4>>2])-(0|b[c+4>>2]),b[d+8>>2]=(0|b[a+8>>2])-(0|b[c+8>>2])}function Ga(a,c){c|=0;var e,d=0;d=0|B(0|b[(a|=0)>>2],c),b[a>>2]=d,e=0|B(0|b[(d=a+4|0)>>2],c),b[d>>2]=e,c=0|B(0|b[(a=a+8|0)>>2],c),b[a>>2]=c}function Ha(a){var g,h,c=0,d=0,e=0,f=0,i=0;i=(0|(h=0|b[(a|=0)>>2]))<0,a=(a=(d=(0|(f=((g=(0|(e=(0|b[a+4>>2])-(i?h:0)|0))<0)?0-e|0:0)+((0|b[a+8>>2])-(i?h:0))|0))<0)?0:f)-((e=(0|(d=(0|a)<(0|(d=(0|(c=(g?0:e)-(d?f:0)|0))<(0|(f=(i?0:h)-(g?e:0)-(d?f:0)|0))?c:f))?a:d))>0)?d:0)|0,c=c-(e?d:0)|0;a:do{switch(f-(e?d:0)|0){case 0:switch(0|c){case 0:return 0|(i=0==(0|a)?0:1==(0|a)?1:7);case 1:return 0|(i=0==(0|a)?2:1==(0|a)?3:7);default:break a}case 1:switch(0|c){case 0:return 0|(i=0==(0|a)?4:1==(0|a)?5:7);case 1:if(a)break a;return 0|(a=6);default:break a}}}while(0);return 0|(i=7)}function Ia(a){var h,i,c=0,d=0,e=0,f=0,g=0;d=0|b[(h=(a|=0)+8|0)>>2],e=0|Vc(+((3*(c=(0|b[a>>2])-d|0)|0)-(d=(0|b[(i=a+4|0)>>2])-d|0)|0)/7),b[a>>2]=e,c=0|Vc(+((d<<1)+c|0)/7),b[i>>2]=c,b[h>>2]=0,d=c-e|0,(0|e)<0?(g=0-e|0,b[i>>2]=d,b[h>>2]=g,b[a>>2]=0,c=d,e=0,d=g):d=0,(0|c)<0&&(e=e-c|0,b[a>>2]=e,d=d-c|0,b[h>>2]=d,b[i>>2]=0,c=0),g=e-d|0,f=c-d|0,(0|d)<0?(b[a>>2]=g,b[i>>2]=f,b[h>>2]=0,c=f,f=g,d=0):f=e,(0|(e=(0|d)<(0|(e=(0|c)<(0|f)?c:f))?d:e))<=0||(b[a>>2]=f-e,b[i>>2]=c-e,b[h>>2]=d-e)}function Ja(a){var h,i,c=0,d=0,e=0,f=0,g=0;d=0|b[(h=(a|=0)+8|0)>>2],e=0|Vc(+(((c=(0|b[a>>2])-d|0)<<1)+(d=(0|b[(i=a+4|0)>>2])-d|0)|0)/7),b[a>>2]=e,c=0|Vc(+((3*d|0)-c|0)/7),b[i>>2]=c,b[h>>2]=0,d=c-e|0,(0|e)<0?(g=0-e|0,b[i>>2]=d,b[h>>2]=g,b[a>>2]=0,c=d,e=0,d=g):d=0,(0|c)<0&&(e=e-c|0,b[a>>2]=e,d=d-c|0,b[h>>2]=d,b[i>>2]=0,c=0),g=e-d|0,f=c-d|0,(0|d)<0?(b[a>>2]=g,b[i>>2]=f,b[h>>2]=0,c=f,f=g,d=0):f=e,(0|(e=(0|d)<(0|(e=(0|c)<(0|f)?c:f))?d:e))<=0||(b[a>>2]=f-e,b[i>>2]=c-e,b[h>>2]=d-e)}function Ka(a){var g,h,i,c=0,d=0,e=0,f=0;c=0|b[(a|=0)>>2],d=0|b[(h=a+4|0)>>2],e=0|b[(i=a+8|0)>>2],f=d+(3*c|0)|0,b[a>>2]=f,d=e+(3*d|0)|0,b[h>>2]=d,c=(3*e|0)+c|0,b[i>>2]=c,e=d-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=e,b[i>>2]=c,b[a>>2]=0,d=e,e=0):e=f,(0|d)<0&&(e=e-d|0,b[a>>2]=e,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=e-c|0,f=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=f,b[i>>2]=0,e=g,c=0):f=d,(0|(d=(0|c)<(0|(d=(0|f)<(0|e)?f:e))?c:d))<=0||(b[a>>2]=e-d,b[h>>2]=f-d,b[i>>2]=c-d)}function La(a){var g,h,i,c=0,d=0,e=0,f=0;f=0|b[(a|=0)>>2],e=(3*(c=0|b[(h=a+4|0)>>2])|0)+f|0,f=(d=0|b[(i=a+8|0)>>2])+(3*f|0)|0,b[a>>2]=f,b[h>>2]=e,c=(3*d|0)+c|0,b[i>>2]=c,d=e-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=d,b[i>>2]=c,b[a>>2]=0,f=0):d=e,(0|d)<0&&(f=f-d|0,b[a>>2]=f,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=f-c|0,e=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=e,b[i>>2]=0,f=g,c=0):e=d,(0|(d=(0|c)<(0|(d=(0|e)<(0|f)?e:f))?c:d))<=0||(b[a>>2]=f-d,b[h>>2]=e-d,b[i>>2]=c-d)}function Ma(a,c){a|=0;var g,h,i,d=0,e=0,f=0;((c|=0)+-1|0)>>>0>=6||(f=(0|b[15472+(12*c|0)>>2])+(0|b[a>>2])|0,b[a>>2]=f,i=a+4|0,e=(0|b[15472+(12*c|0)+4>>2])+(0|b[i>>2])|0,b[i>>2]=e,h=a+8|0,c=(0|b[15472+(12*c|0)+8>>2])+(0|b[h>>2])|0,b[h>>2]=c,d=e-f|0,(0|f)<0?(c=c-f|0,b[i>>2]=d,b[h>>2]=c,b[a>>2]=0,e=0):(d=e,e=f),(0|d)<0&&(e=e-d|0,b[a>>2]=e,c=c-d|0,b[h>>2]=c,b[i>>2]=0,d=0),g=e-c|0,f=d-c|0,(0|c)<0?(b[a>>2]=g,b[i>>2]=f,b[h>>2]=0,e=g,c=0):f=d,(0|(d=(0|c)<(0|(d=(0|f)<(0|e)?f:e))?c:d))<=0||(b[a>>2]=e-d,b[i>>2]=f-d,b[h>>2]=c-d))}function Na(a){var g,h,i,c=0,d=0,e=0,f=0;f=0|b[(a|=0)>>2],e=(c=0|b[(h=a+4|0)>>2])+f|0,f=(d=0|b[(i=a+8|0)>>2])+f|0,b[a>>2]=f,b[h>>2]=e,c=d+c|0,b[i>>2]=c,d=e-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=d,b[i>>2]=c,b[a>>2]=0,e=0):(d=e,e=f),(0|d)<0&&(e=e-d|0,b[a>>2]=e,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=e-c|0,f=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=f,b[i>>2]=0,e=g,c=0):f=d,(0|(d=(0|c)<(0|(d=(0|f)<(0|e)?f:e))?c:d))<=0||(b[a>>2]=e-d,b[h>>2]=f-d,b[i>>2]=c-d)}function Oa(a){var g,h,i,c=0,d=0,e=0,f=0;c=0|b[(a|=0)>>2],e=0|b[(h=a+4|0)>>2],d=0|b[(i=a+8|0)>>2],f=e+c|0,b[a>>2]=f,e=d+e|0,b[h>>2]=e,c=d+c|0,b[i>>2]=c,d=e-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=d,b[i>>2]=c,b[a>>2]=0,e=0):(d=e,e=f),(0|d)<0&&(e=e-d|0,b[a>>2]=e,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=e-c|0,f=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=f,b[i>>2]=0,e=g,c=0):f=d,(0|(d=(0|c)<(0|(d=(0|f)<(0|e)?f:e))?c:d))<=0||(b[a>>2]=e-d,b[h>>2]=f-d,b[i>>2]=c-d)}function Pa(a){switch(0|(a|=0)){case 1:a=5;break;case 5:a=4;break;case 4:a=6;break;case 6:a=2;break;case 2:a=3;break;case 3:a=1}return 0|a}function Qa(a){switch(0|(a|=0)){case 1:a=3;break;case 3:a=2;break;case 2:a=6;break;case 6:a=4;break;case 4:a=5;break;case 5:a=1}return 0|a}function Ra(a){var g,h,i,c=0,d=0,e=0,f=0;c=0|b[(a|=0)>>2],d=0|b[(h=a+4|0)>>2],e=0|b[(i=a+8|0)>>2],f=d+(c<<1)|0,b[a>>2]=f,d=e+(d<<1)|0,b[h>>2]=d,c=(e<<1)+c|0,b[i>>2]=c,e=d-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=e,b[i>>2]=c,b[a>>2]=0,d=e,e=0):e=f,(0|d)<0&&(e=e-d|0,b[a>>2]=e,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=e-c|0,f=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=f,b[i>>2]=0,e=g,c=0):f=d,(0|(d=(0|c)<(0|(d=(0|f)<(0|e)?f:e))?c:d))<=0||(b[a>>2]=e-d,b[h>>2]=f-d,b[i>>2]=c-d)}function Sa(a){var g,h,i,c=0,d=0,e=0,f=0;f=0|b[(a|=0)>>2],e=((c=0|b[(h=a+4|0)>>2])<<1)+f|0,f=(d=0|b[(i=a+8|0)>>2])+(f<<1)|0,b[a>>2]=f,b[h>>2]=e,c=(d<<1)+c|0,b[i>>2]=c,d=e-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=d,b[i>>2]=c,b[a>>2]=0,f=0):d=e,(0|d)<0&&(f=f-d|0,b[a>>2]=f,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=f-c|0,e=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=e,b[i>>2]=0,f=g,c=0):e=d,(0|(d=(0|c)<(0|(d=(0|e)<(0|f)?e:f))?c:d))<=0||(b[a>>2]=f-d,b[h>>2]=e-d,b[i>>2]=c-d)}function Ta(a,c){c|=0;var g,h,i,d=0,e=0,f=0;return i=(0|(h=(0|b[(a|=0)>>2])-(0|b[c>>2])|0))<0,g=(0|(e=(0|b[a+4>>2])-(0|b[c+4>>2])-(i?h:0)|0))<0,c=(c=(a=(0|(f=(i?0-h|0:0)+(0|b[a+8>>2])-(0|b[c+8>>2])+(g?0-e|0:0)|0))<0)?0:f)-((e=(0|(a=(0|c)<(0|(a=(0|(d=(g?0:e)-(a?f:0)|0))<(0|(f=(i?0:h)-(g?e:0)-(a?f:0)|0))?d:f))?c:a))>0)?a:0)|0,d=d-(e?a:0)|0,0|((0|(a=(0|(a=f-(e?a:0)|0))>-1?a:0-a|0))>(0|(c=(0|(d=(0|d)>-1?d:0-d|0))>(0|(c=(0|c)>-1?c:0-c|0))?d:c))?a:c)}function Ua(a,c){c|=0;var d;d=0|b[(a|=0)+8>>2],b[c>>2]=(0|b[a>>2])-d,b[c+4>>2]=(0|b[a+4>>2])-d}function Va(a,c){c|=0;var g,h,i,d=0,e=0,f=0;e=0|b[(a|=0)>>2],b[c>>2]=e,a=0|b[a+4>>2],b[(h=c+4|0)>>2]=a,b[(i=c+8|0)>>2]=0,d=a-e|0,(0|e)<0?(a=0-e|0,b[h>>2]=d,b[i>>2]=a,b[c>>2]=0,e=0):(d=a,a=0),(0|d)<0&&(e=e-d|0,b[c>>2]=e,a=a-d|0,b[i>>2]=a,b[h>>2]=0,d=0),g=e-a|0,f=d-a|0,(0|a)<0?(b[c>>2]=g,b[h>>2]=f,b[i>>2]=0,d=f,f=g,a=0):f=e,(0|(e=(0|a)<(0|(e=(0|d)<(0|f)?d:f))?a:e))<=0||(b[c>>2]=f-e,b[h>>2]=d-e,b[i>>2]=a-e)}function Wa(a){var c,d,e,f;d=(f=0|b[(c=(a|=0)+8|0)>>2])-(0|b[a>>2])|0,b[a>>2]=d,a=(0|b[(e=a+4|0)>>2])-f|0,b[e>>2]=a,b[c>>2]=0-(a+d)}function Xa(a){var h,i,c=0,d=0,e=0,f=0,g=0;c=0-(d=0|b[(a|=0)>>2])|0,b[a>>2]=c,b[(h=a+8|0)>>2]=0,f=(e=0|b[(i=a+4|0)>>2])+d|0,(0|d)>0?(b[i>>2]=f,b[h>>2]=d,b[a>>2]=0,c=0,e=f):d=0,(0|e)<0?(g=c-e|0,b[a>>2]=g,d=d-e|0,b[h>>2]=d,b[i>>2]=0,f=g-d|0,c=0-d|0,(0|d)<0?(b[a>>2]=f,b[i>>2]=c,b[h>>2]=0,e=c,d=0):(e=0,f=g)):f=c,(0|(c=(0|d)<(0|(c=(0|e)<(0|f)?e:f))?d:c))<=0||(b[a>>2]=f-c,b[i>>2]=e-c,b[h>>2]=d-c)}function Za(a,c,d,f){c|=0,d|=0,f|=0;var k,g=0,h=0,i=0,j=0;if(k=S,S=S+32|0,function Jc(a,b){a|=0,b|=0;var c=0,d=0,f=0;return c=+e[a>>3],d=+t(+c),c=+u(+c),e[b+16>>3]=c,c=+e[a+8>>3],f=d*+t(+c),e[b>>3]=f,c=d*+u(+c),void(e[b+8>>3]=c)}(a|=0,h=k),b[d>>2]=0,g=+Ic(15888,h),(i=+Ic(15912,h))>2]=1,g=i),(i=+Ic(15936,h))>2]=2,g=i),(i=+Ic(15960,h))>2]=3,g=i),(i=+Ic(15984,h))>2]=4,g=i),(i=+Ic(16008,h))>2]=5,g=i),(i=+Ic(16032,h))>2]=6,g=i),(i=+Ic(16056,h))>2]=7,g=i),(i=+Ic(16080,h))>2]=8,g=i),(i=+Ic(16104,h))>2]=9,g=i),(i=+Ic(16128,h))>2]=10,g=i),(i=+Ic(16152,h))>2]=11,g=i),(i=+Ic(16176,h))>2]=12,g=i),(i=+Ic(16200,h))>2]=13,g=i),(i=+Ic(16224,h))>2]=14,g=i),(i=+Ic(16248,h))>2]=15,g=i),(i=+Ic(16272,h))>2]=16,g=i),(i=+Ic(16296,h))>2]=17,g=i),(i=+Ic(16320,h))>2]=18,g=i),(i=+Ic(16344,h))>2]=19,g=i),(i=+w(+(1-.5*g)))<1e-16)return b[f>>2]=0,b[f+4>>2]=0,b[f+8>>2]=0,b[f+12>>2]=0,void(S=k);if(d=0|b[d>>2],g=+gb((g=+e[16368+(24*d|0)>>3])-+gb(+function lb(a,b){a|=0,b|=0;var c=0,d=0,f=0,g=0,h=0;return g=+e[b>>3],d=+t(+g),f=+e[b+8>>3]-+e[a+8>>3],h=d*+u(+f),c=+e[a>>3],+ +z(+h,+(+u(+g)*+t(+c)-+t(+f)*(d*+u(+c))))}(15568+(d<<4)|0,a))),j=0|Rb(c)?+gb(g+-.3334731722518321):g,g=+v(+i)/.381966011250105,(0|c)>0){h=0;do{g*=2.6457513110645907,h=h+1|0}while((0|h)!=(0|c))}i=+t(+j)*g,e[f>>3]=i,j=+u(+j)*g,e[f+8>>3]=j,S=k}function _a(a,c,d,f,g){c|=0,d|=0,f|=0,g|=0;var h=0,i=0;if(h=+function Fc(a){a|=0;var b=0,c=0;return c=+e[a>>3],b=+e[a+8>>3],+ +r(+(c*c+b*b))}(a|=0),h<1e-16)return c=15568+(c<<4)|0,b[g>>2]=b[c>>2],b[g+4>>2]=b[c+4>>2],b[g+8>>2]=b[c+8>>2],void(b[g+12>>2]=b[c+12>>2]);if(i=+z(+ +e[a+8>>3],+ +e[a>>3]),(0|d)>0){a=0;do{h/=2.6457513110645907,a=a+1|0}while((0|a)!=(0|d))}f?(h/=3,d=0==(0|Rb(d)),h=+y(.381966011250105*(d?h:h/2.6457513110645907))):(h=+y(.381966011250105*h),0|Rb(d)&&(i=+gb(i+.3334731722518321))),function mb(a,c,d,f){a|=0,c=+c,d=+d,f|=0;var g=0,h=0,i=0,j=0;if(d<1e-16)return b[f>>2]=b[a>>2],b[f+4>>2]=b[a+4>>2],b[f+8>>2]=b[a+8>>2],void(b[f+12>>2]=b[a+12>>2]);h=c<0?c+6.283185307179586:c,h=c>=6.283185307179586?h+-6.283185307179586:h;do{if(!(h<1e-16)){if(g=+q(+(h+-3.141592653589793))<1e-16,c=+e[a>>3],g){c-=d,e[f>>3]=c,g=f;break}if(i=+t(+d),d=+u(+d),c=i*+u(+c)+ +t(+h)*(d*+t(+c)),c=+x(+((c=c>1?1:c)<-1?-1:c)),e[f>>3]=c,+q(+(c+-1.5707963267948966))<1e-16)return e[f>>3]=1.5707963267948966,void(e[f+8>>3]=0);if(+q(+(c+1.5707963267948966))<1e-16)return e[f>>3]=-1.5707963267948966,void(e[f+8>>3]=0);if(j=+t(+c),h=d*+u(+h)/j,d=+e[a>>3],c=(i-+u(+c)*+u(+d))/+t(+d)/j,i=h>1?1:h,c=c>1?1:c,(c=+e[a+8>>3]+ +z(+(i<-1?-1:i),+(c<-1?-1:c)))>3.141592653589793)do{c+=-6.283185307179586}while(c>3.141592653589793);if(c<-3.141592653589793)do{c+=6.283185307179586}while(c<-3.141592653589793);return void(e[f+8>>3]=c)}c=+e[a>>3]+d,e[f>>3]=c,g=f}while(0);if(+q(+(c+-1.5707963267948966))<1e-16)return e[g>>3]=1.5707963267948966,void(e[f+8>>3]=0);if(+q(+(c+1.5707963267948966))<1e-16)return e[g>>3]=-1.5707963267948966,void(e[f+8>>3]=0);if(c=+e[a+8>>3],c>3.141592653589793)do{c+=-6.283185307179586}while(c>3.141592653589793);if(c<-3.141592653589793)do{c+=6.283185307179586}while(c<-3.141592653589793);return void(e[f+8>>3]=c)}(15568+(c<<4)|0,+gb(+e[16368+(24*c|0)>>3]-i),h,g)}function $a(a,c,d){c|=0,d|=0;var e,f;e=S,S=S+16|0,Da((a|=0)+4|0,f=e),_a(f,0|b[a>>2],c,0,d),S=e}function ab(a,c,d,f,g){a|=0,c|=0,d|=0,f|=0,g|=0;var k,l,m,n,o,p,q,r,s,t,v,w,x,y,z,A,B,C,D,E,F,G,h=0,i=0,j=0,u=0,I=0,J=0;if(G=S,S=S+272|0,u=G+240|0,D=G,E=G+224|0,F=G+208|0,v=G+176|0,w=G+160|0,x=G+192|0,y=G+144|0,z=G+128|0,A=G+112|0,B=G+96|0,C=G+80|0,b[(h=G+256|0)>>2]=c,b[u>>2]=b[a>>2],b[u+4>>2]=b[a+4>>2],b[u+8>>2]=b[a+8>>2],b[u+12>>2]=b[a+12>>2],bb(u,h,D),b[g>>2]=0,(0|(u=f+d+(5==(0|f)&1)|0))<=(0|d))S=G;else{l=E+4|0,m=v+4|0,n=d+5|0,o=16848+((k=0|b[h>>2])<<2)|0,p=16928+(k<<2)|0,q=z+8|0,r=A+8|0,s=B+8|0,t=F+4|0,j=d;a:for(;;){i=D+(((0|j)%5|0)<<4)|0,b[F>>2]=b[i>>2],b[F+4>>2]=b[i+4>>2],b[F+8>>2]=b[i+8>>2],b[F+12>>2]=b[i+12>>2];do{}while(2==(0|cb(F,k,0,1)));if((0|j)>(0|d)&0!=(0|Rb(c))){if(b[v>>2]=b[F>>2],b[v+4>>2]=b[F+4>>2],b[v+8>>2]=b[F+8>>2],b[v+12>>2]=b[F+12>>2],Da(l,w),f=0|b[v>>2],h=0|b[17008+(80*f|0)+(b[E>>2]<<2)>>2],b[v>>2]=b[18608+(80*f|0)+(20*h|0)>>2],(0|(i=0|b[18608+(80*f|0)+(20*h|0)+16>>2]))>0){a=0;do{Na(m),a=a+1|0}while((0|a)<(0|i))}switch(i=18608+(80*f|0)+(20*h|0)+4|0,b[x>>2]=b[i>>2],b[x+4>>2]=b[i+4>>2],b[x+8>>2]=b[i+8>>2],Ga(x,3*(0|b[o>>2])|0),Ea(m,x,m),Ca(m),Da(m,y),I=+(0|b[p>>2]),e[z>>3]=3*I,e[q>>3]=0,J=-1.5*I,e[A>>3]=J,e[r>>3]=2.598076211353316*I,e[B>>3]=J,e[s>>3]=-2.598076211353316*I,0|b[17008+(80*(0|b[v>>2])|0)+(b[F>>2]<<2)>>2]){case 1:a=A,f=z;break;case 3:a=B,f=A;break;case 2:a=z,f=B;break;default:a=12;break a}Gc(w,y,f,a,C),_a(C,0|b[v>>2],k,1,g+8+(b[g>>2]<<4)|0),b[g>>2]=1+(0|b[g>>2])}if((0|j)<(0|n)&&(Da(t,v),_a(v,0|b[F>>2],k,1,g+8+(b[g>>2]<<4)|0),b[g>>2]=1+(0|b[g>>2])),b[E>>2]=b[F>>2],b[E+4>>2]=b[F+4>>2],b[E+8>>2]=b[F+8>>2],b[E+12>>2]=b[F+12>>2],(0|(j=j+1|0))>=(0|u)){a=3;break}}3!=(0|a)?12==(0|a)&&H(22474,22521,581,22531):S=G}}function bb(a,c,d){a|=0,c|=0,d|=0;var j,e=0,f=0,g=0,h=0,i=0;j=S,S=S+128|0,f=j,h=20208,i=(g=e=j+64|0)+60|0;do{b[g>>2]=b[h>>2],g=g+4|0,h=h+4|0}while((0|g)<(0|i));h=20272,i=(g=f)+60|0;do{b[g>>2]=b[h>>2],g=g+4|0,h=h+4|0}while((0|g)<(0|i));e=(i=0==(0|Rb(0|b[c>>2])))?e:f,Ra(f=a+4|0),Sa(f),0|Rb(0|b[c>>2])&&(La(f),b[c>>2]=1+(0|b[c>>2])),b[d>>2]=b[a>>2],Ea(f,e,c=d+4|0),Ca(c),b[d+16>>2]=b[a>>2],Ea(f,e+12|0,c=d+20|0),Ca(c),b[d+32>>2]=b[a>>2],Ea(f,e+24|0,c=d+36|0),Ca(c),b[d+48>>2]=b[a>>2],Ea(f,e+36|0,c=d+52|0),Ca(c),b[d+64>>2]=b[a>>2],Ea(f,e+48|0,d=d+68|0),Ca(d),S=j}function cb(a,c,d,e){d|=0,e|=0;var h,i,k,l,n,p,f=0,g=0,j=0,m=0,o=0;if(p=S,S=S+32|0,n=p+12|0,i=p,o=(a|=0)+4|0,m=0|b[16928+((c|=0)<<2)>>2],m=(l=0!=(0|e))?3*m|0:m,f=0|b[o>>2],h=0|b[(k=a+8|0)>>2],l){if((0|(f=h+f+(e=0|b[(g=a+12|0)>>2])|0))==(0|m))return S=p,0|(o=1);j=g}else f=h+f+(e=0|b[(j=a+12|0)>>2])|0;if((0|f)<=(0|m))return S=p,0|(o=0);do{if((0|e)>0){if(e=0|b[a>>2],(0|h)>0){g=18608+(80*e|0)+60|0,e=a;break}e=18608+(80*e|0)+40|0,d?(Aa(n,m,0,0),Fa(o,n,i),Oa(i),Ea(i,n,o),g=e,e=a):(g=e,e=a)}else g=18608+(80*(0|b[a>>2])|0)+20|0,e=a}while(0);if(b[e>>2]=b[g>>2],(0|b[(f=g+16|0)>>2])>0){e=0;do{Na(o),e=e+1|0}while((0|e)<(0|b[f>>2]))}return a=g+4|0,b[n>>2]=b[a>>2],b[n+4>>2]=b[a+4>>2],b[n+8>>2]=b[a+8>>2],c=0|b[16848+(c<<2)>>2],Ga(n,l?3*c|0:c),Ea(o,n,o),Ca(o),e=l&&((0|b[k>>2])+(0|b[o>>2])+(0|b[j>>2])|0)==(0|m)?1:2,S=p,0|(o=e)}function db(a,b){a|=0,b|=0;var c=0;do{c=0|cb(a,b,0,1)}while(2==(0|c));return 0|c}function eb(a,c,d,f,g){a|=0,c|=0,d|=0,f|=0,g|=0;var k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,h=0,i=0,j=0,C=0,D=0;if(B=S,S=S+240|0,x=B+208|0,y=B,z=B+192|0,A=B+176|0,s=B+160|0,t=B+144|0,u=B+128|0,v=B+112|0,w=B+96|0,b[(h=B+224|0)>>2]=c,b[x>>2]=b[a>>2],b[x+4>>2]=b[a+4>>2],b[x+8>>2]=b[a+8>>2],b[x+12>>2]=b[a+12>>2],fb(x,h,y),b[g>>2]=0,(0|(r=f+d+(6==(0|f)&1)|0))<=(0|d))S=B;else{l=d+6|0,m=16928+((k=0|b[h>>2])<<2)|0,n=t+8|0,o=u+8|0,p=v+8|0,q=z+4|0,i=0,j=d,f=-1;a:for(;;){if(a=y+((h=(0|j)%6|0)<<4)|0,b[z>>2]=b[a>>2],b[z+4>>2]=b[a+4>>2],b[z+8>>2]=b[a+8>>2],b[z+12>>2]=b[a+12>>2],a=i,i=0|cb(z,k,0,1),(0|j)>(0|d)&0!=(0|Rb(c))&&(1!=(0|a)&&(0|b[z>>2])!=(0|f))){switch(Da(y+(((h+5|0)%6|0)<<4)+4|0,A),Da(y+(h<<4)+4|0,s),C=+(0|b[m>>2]),e[t>>3]=3*C,e[n>>3]=0,D=-1.5*C,e[u>>3]=D,e[o>>3]=2.598076211353316*C,e[v>>3]=D,e[p>>3]=-2.598076211353316*C,h=0|b[x>>2],0|b[17008+(80*h|0)+(((0|f)==(0|h)?0|b[z>>2]:f)<<2)>>2]){case 1:a=u,f=t;break;case 3:a=v,f=u;break;case 2:a=t,f=v;break;default:a=8;break a}Gc(A,s,f,a,w),0|Hc(A,w)||0|Hc(s,w)||(_a(w,0|b[x>>2],k,1,g+8+(b[g>>2]<<4)|0),b[g>>2]=1+(0|b[g>>2]))}if((0|j)<(0|l)&&(Da(q,A),_a(A,0|b[z>>2],k,1,g+8+(b[g>>2]<<4)|0),b[g>>2]=1+(0|b[g>>2])),(0|(j=j+1|0))>=(0|r)){a=3;break}f=0|b[z>>2]}3!=(0|a)?8==(0|a)&&H(22557,22521,746,22602):S=B}}function fb(a,c,d){a|=0,c|=0,d|=0;var j,e=0,f=0,g=0,h=0,i=0;j=S,S=S+160|0,f=j,h=20336,i=(g=e=j+80|0)+72|0;do{b[g>>2]=b[h>>2],g=g+4|0,h=h+4|0}while((0|g)<(0|i));h=20416,i=(g=f)+72|0;do{b[g>>2]=b[h>>2],g=g+4|0,h=h+4|0}while((0|g)<(0|i));e=(i=0==(0|Rb(0|b[c>>2])))?e:f,Ra(f=a+4|0),Sa(f),0|Rb(0|b[c>>2])&&(La(f),b[c>>2]=1+(0|b[c>>2])),b[d>>2]=b[a>>2],Ea(f,e,c=d+4|0),Ca(c),b[d+16>>2]=b[a>>2],Ea(f,e+12|0,c=d+20|0),Ca(c),b[d+32>>2]=b[a>>2],Ea(f,e+24|0,c=d+36|0),Ca(c),b[d+48>>2]=b[a>>2],Ea(f,e+36|0,c=d+52|0),Ca(c),b[d+64>>2]=b[a>>2],Ea(f,e+48|0,c=d+68|0),Ca(c),b[d+80>>2]=b[a>>2],Ea(f,e+60|0,d=d+84|0),Ca(d),S=j}function gb(a){var b;return b=(a=+a)<0?a+6.283185307179586:a,+(a>=6.283185307179586?b+-6.283185307179586:b)}function hb(a,b){return b|=0,+q(+(+e[(a|=0)>>3]-+e[b>>3]))<17453292519943298e-27?0|(b=+q(+(+e[a+8>>3]-+e[b+8>>3]))<17453292519943298e-27):0|(b=0)}function jb(a,b){a|=0;var d,f,g,c=0;return f=+e[(b|=0)>>3],d=+e[a>>3],c=(g=+u(.5*(f-d)))*g+(c=+u(.5*(+e[b+8>>3]-+e[a+8>>3])))*(+t(+f)*+t(+d)*c),2*+z(+ +r(+c),+ +r(+(1-c)))*6371.007180918475}function sb(a,b,c){a|=0,c|=0;var i,k,l,m,d=0,f=0,g=0,h=0,j=0,n=0;return n=+e[(b|=0)>>3],l=+e[a>>3],j=+u(.5*(n-l)),g=+e[b+8>>3],k=+e[a+8>>3],h=+u(.5*(g-k)),i=+t(+l),m=+t(+n),h=2*+z(+ +r(+(h=j*j+h*(m*i*h))),+ +r(+(1-h))),j=+e[c>>3],n=+u(.5*(j-n)),d=+e[c+8>>3],g=+u(.5*(d-g)),f=+t(+j),g=2*+z(+ +r(+(g=n*n+g*(m*f*g))),+ +r(+(1-g))),j=+u(.5*(l-j)),d=+u(.5*(k-d)),d=2*+z(+ +r(+(d=j*j+d*(i*f*d))),+ +r(+(1-d))),4*+y(+ +r(+ +v(.5*(f=.5*(h+g+d)))*+v(.5*(f-h))*+v(.5*(f-g))*+v(.5*(f-d))))}function Ab(a,b){return b=0|cd(0|(a|=0),0|(b|=0),45),G(),127&b|0}function Bb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(!(!0&134217728==(-16777216&(b|=0)|0)))return 0|(b=0);if(g=0|cd(0|(a|=0),0|b,45),G(),(g&=127)>>>0>121)return 0|(b=0);c=0|cd(0|a,0|b,52),G(),c&=15;do{if(0|c){for(e=1,d=0;;){if(f=0|cd(0|a,0|b,3*(15-e|0)|0),G(),0!=(0|(f&=7))&(1^d)){if(1==(0|f)&0!=(0|la(g))){h=0,d=13;break}d=1}if(7==(0|f)){h=0,d=13;break}if(!(e>>>0>>0)){d=9;break}e=e+1|0}if(9==(0|d)){if(15!=(0|c))break;return 0|(h=1)}if(13==(0|d))return 0|h}}while(0);for(;;){if(h=0|cd(0|a,0|b,3*(14-c|0)|0),G(),!(7==(7&h|0)&!0)){h=0,d=13;break}if(!(c>>>0<14)){h=1,d=13;break}c=c+1|0}return 13==(0|d)?0|h:0}function Cb(a,b,c){c|=0;var d=0,e=0;if(d=0|cd(0|(a|=0),0|(b|=0),52),G(),(0|(d&=15))>=(0|c)){if((0|d)!=(0|c))if(c>>>0<=15){if(a|=e=0|dd(0|c,0,52),b=0|G()|-15728641&b,(0|d)>(0|c))do{e=0|dd(7,0,3*(14-c|0)|0),c=c+1|0,a|=e,b=0|G()|b}while((0|c)<(0|d))}else b=0,a=0}else b=0,a=0;return F(0|b),0|a}function Eb(a,c,d,e){d|=0,e|=0;var k,f=0,g=0,h=0,i=0,j=0,l=0;if(h=0|cd(0|(a|=0),0|(c|=0),52),G(),(0|d)<16&(0|(h&=15))<=(0|d)){if((0|h)==(0|d))return b[(d=e)>>2]=a,void(b[d+4>>2]=c);if(k=(0|(j=0|tc(7,d-h|0)))/7|0,i=0|cd(0|a,0|c,45),G(),0|la(127&i)){a:do{if(h)for(g=1;;){if(f=0|cd(0|a,0|c,3*(15-g|0)|0),G(),0|(f&=7))break a;if(!(g>>>0>>0)){f=0;break}g=g+1|0}else f=0}while(0);g=0==(0|f)}else g=0;if(l=0|dd(h+1|0,0,52),f=0|G()|-15728641&c,Eb(c=(l|a)&~(c=0|dd(7,0,0|(i=3*(14-h|0)|0))),h=f&~(0|G()),d,e),f=e+(k<<3)|0,!g)return Eb((l=0|dd(1,0,0|i))|c,0|G()|h,d,f),l=f+(k<<3)|0,Eb((j=0|dd(2,0,0|i))|c,0|G()|h,d,l),l=l+(k<<3)|0,Eb((j=0|dd(3,0,0|i))|c,0|G()|h,d,l),l=l+(k<<3)|0,Eb((j=0|dd(4,0,0|i))|c,0|G()|h,d,l),l=l+(k<<3)|0,Eb((j=0|dd(5,0,0|i))|c,0|G()|h,d,l),void Eb((j=0|dd(6,0,0|i))|c,0|G()|h,d,l+(k<<3)|0);g=f+(k<<3)|0,(0|j)>6&&(hd(0|f,0,(l=(g>>>0>(j=f+8|0)>>>0?g:j)+-1+(0-f)|0)+8&-8|0),f=j+(l>>>3<<3)|0),Eb((l=0|dd(2,0,0|i))|c,0|G()|h,d,f),l=f+(k<<3)|0,Eb((j=0|dd(3,0,0|i))|c,0|G()|h,d,l),l=l+(k<<3)|0,Eb((j=0|dd(4,0,0|i))|c,0|G()|h,d,l),l=l+(k<<3)|0,Eb((j=0|dd(5,0,0|i))|c,0|G()|h,d,l),Eb((j=0|dd(6,0,0|i))|c,0|G()|h,d,l+(k<<3)|0)}}function Fb(a,b){var c=0,d=0,e=0;if(e=0|cd(0|(a|=0),0|(b|=0),45),G(),!(0|la(127&e)))return 0|(e=0);e=0|cd(0|a,0|b,52),G(),e&=15;a:do{if(e)for(d=1;;){if(c=0|cd(0|a,0|b,3*(15-d|0)|0),G(),0|(c&=7))break a;if(!(d>>>0>>0)){c=0;break}d=d+1|0}else c=0}while(0);return 0|(e=0==(0|c)&1)}function Lb(a,b){var c=0,d=0,e=0;if(e=0|cd(0|(a|=0),0|(b|=0),52),G(),!(e&=15))return 0|(e=0);for(d=1;;){if(c=0|cd(0|a,0|b,3*(15-d|0)|0),G(),0|(c&=7)){d=5;break}if(!(d>>>0>>0)){c=0,d=5;break}d=d+1|0}return 5==(0|d)?0|c:0}function Mb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(i=0|cd(0|(a|=0),0|(b|=0),52),G(),!(i&=15))return i=a,F(0|(h=b)),0|i;for(h=1,c=0;;){d=0|dd(7,0,0|(f=3*(15-h|0)|0)),e=0|G(),g=0|cd(0|a,0|b,0|f),G(),a=(f=0|dd(0|Pa(7&g),0,0|f))|a&~d,b=(g=0|G())|b&~e;a:do{if(!c)if(0==(f&d|0)&0==(g&e|0))c=0;else if(d=0|cd(0|a,0|b,52),G(),d&=15){c=1;b:for(;;){switch(g=0|cd(0|a,0|b,3*(15-c|0)|0),G(),7&g){case 1:break b;case 0:break;default:c=1;break a}if(!(c>>>0>>0)){c=1;break a}c=c+1|0}for(c=1;;){if(e=0|cd(0|a,0|b,0|(g=3*(15-c|0)|0)),G(),f=0|dd(7,0,0|g),b&=~(0|G()),a=a&~f|(g=0|dd(0|Pa(7&e),0,0|g)),b=0|b|G(),!(c>>>0>>0)){c=1;break}c=c+1|0}}else c=1}while(0);if(!(h>>>0>>0))break;h=h+1|0}return F(0|b),0|a}function Nb(a,b){var c=0,d=0,e=0,f=0,g=0;if(d=0|cd(0|(a|=0),0|(b|=0),52),G(),!(d&=15))return d=a,F(0|(c=b)),0|d;for(c=1;g=0|cd(0|a,0|b,0|(f=3*(15-c|0)|0)),G(),e=0|dd(7,0,0|f),b&=~(0|G()),a=(f=0|dd(0|Pa(7&g),0,0|f))|a&~e,b=0|G()|b,c>>>0>>0;)c=c+1|0;return F(0|b),0|a}function Ob(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(i=0|cd(0|(a|=0),0|(b|=0),52),G(),!(i&=15))return i=a,F(0|(h=b)),0|i;for(h=1,c=0;;){d=0|dd(7,0,0|(f=3*(15-h|0)|0)),e=0|G(),g=0|cd(0|a,0|b,0|f),G(),a=(f=0|dd(0|Qa(7&g),0,0|f))|a&~d,b=(g=0|G())|b&~e;a:do{if(!c)if(0==(f&d|0)&0==(g&e|0))c=0;else if(d=0|cd(0|a,0|b,52),G(),d&=15){c=1;b:for(;;){switch(g=0|cd(0|a,0|b,3*(15-c|0)|0),G(),7&g){case 1:break b;case 0:break;default:c=1;break a}if(!(c>>>0>>0)){c=1;break a}c=c+1|0}for(c=1;;){if(f=0|dd(7,0,0|(e=3*(15-c|0)|0)),g=b&~(0|G()),b=0|cd(0|a,0|b,0|e),G(),a=a&~f|(b=0|dd(0|Qa(7&b),0,0|e)),b=0|g|G(),!(c>>>0>>0)){c=1;break}c=c+1|0}}else c=1}while(0);if(!(h>>>0>>0))break;h=h+1|0}return F(0|b),0|a}function Pb(a,b){var c=0,d=0,e=0,f=0,g=0;if(d=0|cd(0|(a|=0),0|(b|=0),52),G(),!(d&=15))return d=a,F(0|(c=b)),0|d;for(c=1;f=0|dd(7,0,0|(g=3*(15-c|0)|0)),e=b&~(0|G()),b=0|cd(0|a,0|b,0|g),G(),a=(b=0|dd(0|Qa(7&b),0,0|g))|a&~f,b=0|G()|e,c>>>0>>0;)c=c+1|0;return F(0|b),0|a}function Rb(a){return 0|(0|(a|=0))%2}function Sb(a,c){a|=0;var d,e;return e=S,S=S+16|0,d=e,(c|=0)>>>0<=15&&2146435072!=(2146435072&b[a+4>>2]|0)&&2146435072!=(2146435072&b[a+8+4>>2]|0)?(!function Ya(a,b,c){var d,e;d=S,S=S+16|0,Za(a|=0,b|=0,c|=0,e=d),Ba(e,c+4|0),S=d}(a,c,d),c=0|function Qb(a,c){a|=0;var j,d=0,e=0,f=0,g=0,h=0,i=0,k=0,l=0;if(j=S,S=S+64|0,i=j+40|0,e=j+24|0,f=j+12|0,g=j,dd(0|(c|=0),0,52),d=134225919|G(),!c)return(0|b[a+4>>2])>2||(0|b[a+8>>2])>2||(0|b[a+12>>2])>2?(i=0,F(0|(h=0)),S=j,0|i):(dd(0|na(a),0,45),h=0|G()|d,i=-1,F(0|h),S=j,0|i);if(b[i>>2]=b[a>>2],b[i+4>>2]=b[a+4>>2],b[i+8>>2]=b[a+8>>2],b[i+12>>2]=b[a+12>>2],h=i+4|0,(0|c)>0)for(a=-1;b[e>>2]=b[h>>2],b[e+4>>2]=b[h+4>>2],b[e+8>>2]=b[h+8>>2],1&c?(Ia(h),b[f>>2]=b[h>>2],b[f+4>>2]=b[h+4>>2],b[f+8>>2]=b[h+8>>2],Ka(f)):(Ja(h),b[f>>2]=b[h>>2],b[f+4>>2]=b[h+4>>2],b[f+8>>2]=b[h+8>>2],La(f)),Fa(e,f,g),Ca(g),k=0|dd(7,0,0|(l=3*(15-c|0)|0)),d&=~(0|G()),a=(l=0|dd(0|Ha(g),0,0|l))|a&~k,d=0|G()|d,(0|c)>1;)c=c+-1|0;else a=-1;a:do{if((0|b[h>>2])<=2&&(0|b[i+8>>2])<=2&&(0|b[i+12>>2])<=2){if(c=0|dd(0|(e=0|na(i)),0,45),c|=a,a=0|G()|-1040385&d,g=0|oa(i),!(0|la(e))){if((0|g)<=0)break;for(f=0;;){if(e=0|cd(0|c,0|a,52),G(),e&=15)for(d=1;i=0|cd(0|c,0|a,0|(l=3*(15-d|0)|0)),G(),k=0|dd(7,0,0|l),a&=~(0|G()),c=c&~k|(l=0|dd(0|Pa(7&i),0,0|l)),a=0|a|G(),d>>>0>>0;)d=d+1|0;if((0|(f=f+1|0))==(0|g))break a}}f=0|cd(0|c,0|a,52),G(),f&=15;b:do{if(f){d=1;c:for(;;){switch(l=0|cd(0|c,0|a,3*(15-d|0)|0),G(),7&l){case 1:break c;case 0:break;default:break b}if(!(d>>>0>>0))break b;d=d+1|0}if(0|ra(e,0|b[i>>2]))for(d=1;k=0|dd(7,0,0|(i=3*(15-d|0)|0)),l=a&~(0|G()),a=0|cd(0|c,0|a,0|i),G(),c=c&~k|(a=0|dd(0|Qa(7&a),0,0|i)),a=0|l|G(),d>>>0>>0;)d=d+1|0;else for(d=1;i=0|cd(0|c,0|a,0|(l=3*(15-d|0)|0)),G(),k=0|dd(7,0,0|l),a&=~(0|G()),c=c&~k|(l=0|dd(0|Pa(7&i),0,0|l)),a=0|a|G(),d>>>0>>0;)d=d+1|0}}while(0);if((0|g)>0){d=0;do{c=0|Mb(c,a),a=0|G(),d=d+1|0}while((0|d)!=(0|g))}}else c=0,a=0}while(0);return l=c,F(0|(k=a)),S=j,0|l}(d,c),a=0|G()):(a=0,c=0),F(0|a),S=e,0|c}function Tb(a,c,d){var f,e=0,g=0,h=0;if(f=(d|=0)+4|0,g=0|cd(0|(a|=0),0|(c|=0),52),G(),g&=15,h=0|cd(0|a,0|c,45),G(),e=0==(0|g),0|la(127&h)){if(e)return 0|(h=1);e=1}else{if(e)return 0|(h=0);e=0==(0|b[f>>2])&&0==(0|b[d+8>>2])?0!=(0|b[d+12>>2])&1:1}for(d=1;1&d?Ka(f):La(f),h=0|cd(0|a,0|c,3*(15-d|0)|0),G(),Ma(f,7&h),d>>>0>>0;)d=d+1|0;return 0|e}function Ub(a,c,d){d|=0;var j,l,e=0,f=0,g=0,h=0,i=0,k=0;l=S,S=S+16|0,j=l,k=0|cd(0|(a|=0),0|(c|=0),45),G(),k&=127;a:do{if(0!=(0|la(k))&&(g=0|cd(0|a,0|c,52),G(),0!=(0|(g&=15)))){e=1;b:for(;;){switch(i=0|cd(0|a,0|c,3*(15-e|0)|0),G(),7&i){case 5:break b;case 0:break;default:e=c;break a}if(!(e>>>0>>0)){e=c;break a}e=e+1|0}for(f=1,e=c;h=0|dd(7,0,0|(c=3*(15-f|0)|0)),i=e&~(0|G()),e=0|cd(0|a,0|e,0|c),G(),a=a&~h|(e=0|dd(0|Qa(7&e),0,0|c)),e=0|i|G(),f>>>0>>0;)f=f+1|0}else e=c}while(0);if(i=7728+(28*k|0)|0,b[d>>2]=b[i>>2],b[d+4>>2]=b[i+4>>2],b[d+8>>2]=b[i+8>>2],b[d+12>>2]=b[i+12>>2],0|Tb(a,e,d)){if(h=d+4|0,b[j>>2]=b[h>>2],b[j+4>>2]=b[h+4>>2],b[j+8>>2]=b[h+8>>2],g=0|cd(0|a,0|e,52),G(),i=15&g,1&g?(La(h),g=i+1|0):g=i,0|la(k)){c:do{if(i)for(c=1;;){if(f=0|cd(0|a,0|e,3*(15-c|0)|0),G(),0|(f&=7)){e=f;break c}if(!(c>>>0>>0)){e=0;break}c=c+1|0}else e=0}while(0);e=4==(0|e)&1}else e=0;if(0|cb(d,g,e,0)){if(0|la(k))do{}while(0!=(0|cb(d,g,0,0)));(0|g)!=(0|i)&&Ja(h)}else(0|g)!=(0|i)&&(b[h>>2]=b[j>>2],b[h+4>>2]=b[j+4>>2],b[h+8>>2]=b[j+8>>2]);S=l}else S=l}function Vb(a,b,c){c|=0;var d,e;d=S,S=S+16|0,Ub(a|=0,b|=0,e=d),b=0|cd(0|a,0|b,52),G(),$a(e,15&b,c),S=d}function Wb(a,b,c){c|=0;var f,g,d=0,e=0;g=S,S=S+16|0,Ub(a|=0,b|=0,f=g),d=0|cd(0|a,0|b,45),G(),d=0==(0|la(127&d)),e=0|cd(0|a,0|b,52),G(),e&=15;a:do{if(!d){if(0|e)for(d=1;;){if(!(0==((0|dd(7,0,3*(15-d|0)|0))&a|0)&0==((0|G())&b|0)))break a;if(!(d>>>0>>0))break;d=d+1|0}return ab(f,e,0,5,c),void(S=g)}}while(0);eb(f,e,0,6,c),S=g}function _b(a,c){c|=0;var i,d=0,e=0,f=0,g=0,h=0,j=0;if(dd(0|(a|=0),0,52),i=134225919|G(),(0|a)<1){e=0,d=0;do{0|la(e)&&(dd(0|e,0,45),h=0|i|G(),b[(a=c+(d<<3)|0)>>2]=-1,b[a+4>>2]=h,d=d+1|0),e=e+1|0}while(122!=(0|e))}else{h=0,d=0;do{if(0|la(h)){for(dd(0|h,0,45),e=1,f=-1,g=0|i|G();f&=~(j=0|dd(7,0,3*(15-e|0)|0)),g&=~(0|G()),(0|e)!=(0|a);)e=e+1|0;b[(j=c+(d<<3)|0)>>2]=f,b[j+4>>2]=g,d=d+1|0}h=h+1|0}while(122!=(0|h))}}function $b(a,c,d,e){var i,f=0,g=0,h=0,j=0,k=0;if(i=S,S=S+64|0,h=i,(0|(a|=0))==(0|(d|=0))&(0|(c|=0))==(0|(e|=0))|!1|134217728!=(2013265920&c|0)|!1|134217728!=(2013265920&e|0))return S=i,0|(h=0);if(f=0|cd(0|a,0|c,52),G(),f&=15,g=0|cd(0|d,0|e,52),G(),(0|f)!=(15&g|0))return S=i,0|(h=0);if(g=f+-1|0,f>>>0>1&&(k=0|Cb(a,c,g),j=0|G(),(0|k)==(0|(g=0|Cb(d,e,g)))&(0|j)==(0|G()))){if(f=0|cd(0|a,0|c,0|(g=3*(15^f)|0)),G(),f&=7,g=0|cd(0|d,0|e,0|g),G(),0==(0|f)|0==(0|(g&=7)))return S=i,0|(k=1);if((0|b[21136+(f<<2)>>2])==(0|g))return S=i,0|(k=1);if((0|b[21168+(f<<2)>>2])==(0|g))return S=i,0|(k=1)}g=(f=h)+56|0;do{b[f>>2]=0,f=f+4|0}while((0|f)<(0|g));return $(a,c,1,h),f=(0|b[(k=h)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)||(0|b[(k=h+8|0)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)||(0|b[(k=h+16|0)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)||(0|b[(k=h+24|0)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)||(0|b[(k=h+32|0)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)||(0|b[(k=h+40|0)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)?1:1&((0|b[(f=h+48|0)>>2])==(0|d)?(0|b[f+4>>2])==(0|e):0),S=i,0|(k=f)}function gc(a,c,d){d|=0;var f,g,h,i,e=0;if(h=S,S=S+16|0,g=h,e=0|cd(0|(a|=0),0|(c|=0),56),G(),c=0|function Lc(a,c,d){a|=0,c|=0,d|=0;var e=0,f=0;if(e=0|Fb(a,c),(d+-1|0)>>>0>5)return 0|(d=-1);if(f=0!=(0|e),1==(0|d)&f)return 0|(d=-1);return e=0|function Kc(a,c){a|=0,c|=0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(k=S,S=S+32|0,f=k+16|0,g=k,Ub(a,c,f),h=0|Ab(a,c),j=0|Lb(a,c),function pa(a,c){a=7728+(28*(a|=0)|0)|0,b[(c|=0)>>2]=b[a>>2],b[c+4>>2]=b[a+4>>2],b[c+8>>2]=b[a+8>>2],b[c+12>>2]=b[a+12>>2]}(h,g),c=0|function qa(a,c){a|=0;var d=0,e=0;if((c|=0)>>>0>20)return-1;do{if((0|b[11152+(216*c|0)>>2])!=(0|a))if((0|b[11152+(216*c|0)+8>>2])!=(0|a))if((0|b[11152+(216*c|0)+16>>2])!=(0|a))if((0|b[11152+(216*c|0)+24>>2])!=(0|a))if((0|b[11152+(216*c|0)+32>>2])!=(0|a))if((0|b[11152+(216*c|0)+40>>2])!=(0|a))if((0|b[11152+(216*c|0)+48>>2])!=(0|a))if((0|b[11152+(216*c|0)+56>>2])!=(0|a))if((0|b[11152+(216*c|0)+64>>2])!=(0|a))if((0|b[11152+(216*c|0)+72>>2])!=(0|a))if((0|b[11152+(216*c|0)+80>>2])!=(0|a))if((0|b[11152+(216*c|0)+88>>2])!=(0|a))if((0|b[11152+(216*c|0)+96>>2])!=(0|a))if((0|b[11152+(216*c|0)+104>>2])!=(0|a))if((0|b[11152+(216*c|0)+112>>2])!=(0|a))if((0|b[11152+(216*c|0)+120>>2])!=(0|a))if((0|b[11152+(216*c|0)+128>>2])!=(0|a)){if((0|b[11152+(216*c|0)+136>>2])!=(0|a)){if((0|b[11152+(216*c|0)+144>>2])==(0|a)){a=0,d=2,e=0;break}if((0|b[11152+(216*c|0)+152>>2])==(0|a)){a=0,d=2,e=1;break}if((0|b[11152+(216*c|0)+160>>2])==(0|a)){a=0,d=2,e=2;break}if((0|b[11152+(216*c|0)+168>>2])==(0|a)){a=1,d=2,e=0;break}if((0|b[11152+(216*c|0)+176>>2])==(0|a)){a=1,d=2,e=1;break}if((0|b[11152+(216*c|0)+184>>2])==(0|a)){a=1,d=2,e=2;break}if((0|b[11152+(216*c|0)+192>>2])==(0|a)){a=2,d=2,e=0;break}if((0|b[11152+(216*c|0)+200>>2])==(0|a)){a=2,d=2,e=1;break}if((0|b[11152+(216*c|0)+208>>2])==(0|a)){a=2,d=2,e=2;break}return-1}a=2,d=1,e=2}else a=2,d=1,e=1;else a=2,d=1,e=0;else a=1,d=1,e=2;else a=1,d=1,e=1;else a=1,d=1,e=0;else a=0,d=1,e=2;else a=0,d=1,e=1;else a=0,d=1,e=0;else a=2,d=0,e=2;else a=2,d=0,e=1;else a=2,d=0,e=0;else a=1,d=0,e=2;else a=1,d=0,e=1;else a=1,d=0,e=0;else a=0,d=0,e=2;else a=0,d=0,e=1;else a=0,d=0,e=0}while(0);return 0|b[11152+(216*c|0)+(72*d|0)+(24*a|0)+(e<<3)+4>>2]}(h,0|b[f>>2]),!(0|la(h)))return S=k,0|(j=c);switch(0|h){case 4:a=0,d=14;break;case 14:a=1,d=14;break;case 24:a=2,d=14;break;case 38:a=3,d=14;break;case 49:a=4,d=14;break;case 58:a=5,d=14;break;case 63:a=6,d=14;break;case 72:a=7,d=14;break;case 83:a=8,d=14;break;case 97:a=9,d=14;break;case 107:a=10,d=14;break;case 117:a=11,d=14;break;default:i=0,e=0}14==(0|d)&&(i=0|b[22096+(24*a|0)+8>>2],e=0|b[22096+(24*a|0)+16>>2]);a=0|b[f>>2],(0|a)!=(0|b[g>>2])&&(h=0|ma(h))|(0|(a=0|b[f>>2]))==(0|e)&&(c=(c+1|0)%6|0);if(3==(0|j)&(0|a)==(0|e))return S=k,0|(j=(c+5|0)%6|0);if(!(5==(0|j)&(0|a)==(0|i)))return S=k,0|(j=c);return j=(c+1|0)%6|0,S=k,0|j}(a,c),f?0|(d=(5-e+(0|b[22384+(d<<2)>>2])|0)%5|0):0|(d=(6-e+(0|b[22416+(d<<2)>>2])|0)%6|0)}(f=(i=!0&268435456==(2013265920&c|0))?a:0,a=i?-2130706433&c|134217728:0,7&e),-1==(0|c))return b[d>>2]=0,void(S=h);Ub(f,a,g),e=0|cd(0|f,0|a,52),G(),e&=15,0|Fb(f,a)?ab(g,e,c,2,d):eb(g,e,c,2,d),S=h}function hc(a){a|=0;var c,d,e=0;return(c=0|Yc(1,12))||H(22691,22646,49,22704),0|(e=0|b[(d=a+4|0)>>2])?(b[(e=e+8|0)>>2]=c,b[d>>2]=c,0|c):(0|b[a>>2]&&H(22721,22646,61,22744),b[(e=a)>>2]=c,b[d>>2]=c,0|c)}function ic(a,c){a|=0,c|=0;var d,e;return(e=0|Wc(24))||H(22758,22646,78,22772),b[e>>2]=b[c>>2],b[e+4>>2]=b[c+4>>2],b[e+8>>2]=b[c+8>>2],b[e+12>>2]=b[c+12>>2],b[e+16>>2]=0,0|(d=0|b[(c=a+4|0)>>2])?(b[d+16>>2]=e,b[c>>2]=e,0|e):(0|b[a>>2]&&H(22787,22646,82,22772),b[a>>2]=e,b[c>>2]=e,0|e)}function kc(a){var G,I,c=0,d=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,J=0,K=0;if(0|b[(g=(a|=0)+8|0)>>2])return 0|(K=1);if(!(f=0|b[a>>2]))return 0|(K=0);c=f,d=0;do{d=d+1|0,c=0|b[c+8>>2]}while(0!=(0|c));if(d>>>0<2)return 0|(K=0);(I=0|Wc(d<<2))||H(22807,22646,317,22826),(G=0|Wc(d<<5))||H(22848,22646,321,22826),b[a>>2]=0,b[(z=a+4|0)>>2]=0,b[g>>2]=0,d=0,F=0,y=0,n=0;a:for(;;){if(m=0|b[f>>2]){h=0,i=m;do{if(k=+e[i+8>>3],c=i,i=0|b[i+16>>2],j=+e[(g=(l=0==(0|i))?m:i)+8>>3],+q(+(k-j))>3.141592653589793){K=14;break}h+=(j-k)*(+e[c>>3]+ +e[g>>3])}while(!l);if(14==(0|K)){K=0,h=0,c=m;do{x=+e[c+8>>3],D=0|b[(E=c+16|0)>>2],w=+e[(D=0==(0|D)?m:D)+8>>3],h+=(+e[c>>3]+ +e[D>>3])*((w<0?w+6.283185307179586:w)-(x<0?x+6.283185307179586:x)),c=0|b[(0==(0|c)?f:E)>>2]}while(0!=(0|c))}h>0?(b[I+(F<<2)>>2]=f,F=F+1|0,g=y,c=n):K=19}else K=19;if(19==(0|K)){K=0;do{if(!d){if(n){g=z,i=n+8|0,c=f,d=a;break}if(0|b[a>>2]){K=27;break a}g=z,i=a,c=f,d=a;break}if(0|b[(c=d+8|0)>>2]){K=21;break a}if(!(d=0|Yc(1,12))){K=23;break a}b[c>>2]=d,g=d+4|0,i=d,c=n}while(0);if(b[i>>2]=f,b[g>>2]=f,i=G+(y<<5)|0,l=0|b[f>>2]){for(e[(m=G+(y<<5)+8|0)>>3]=17976931348623157e292,e[(n=G+(y<<5)+24|0)>>3]=17976931348623157e292,e[i>>3]=-17976931348623157e292,e[(o=G+(y<<5)+16|0)>>3]=-17976931348623157e292,u=17976931348623157e292,v=-17976931348623157e292,g=0,p=l,k=17976931348623157e292,s=17976931348623157e292,t=-17976931348623157e292,j=-17976931348623157e292;h=+e[p>>3],x=+e[p+8>>3],p=0|b[p+16>>2],w=+e[((r=0==(0|p))?l:p)+8>>3],h>3]=h,k=h),x>3]=x,s=x),h>t?e[i>>3]=h:h=t,x>j&&(e[o>>3]=x,j=x),u=x>0&xv?x:v,g|=+q(+(x-w))>3.141592653589793,!r;)t=h;g&&(e[o>>3]=v,e[n>>3]=u)}else b[i>>2]=0,b[i+4>>2]=0,b[i+8>>2]=0,b[i+12>>2]=0,b[i+16>>2]=0,b[i+20>>2]=0,b[i+24>>2]=0,b[i+28>>2]=0;g=y+1|0}if(f=0|b[(E=f+8|0)>>2],b[E>>2]=0,!f){K=45;break}y=g,n=c}if(21==(0|K))H(22624,22646,35,22658);else if(23==(0|K))H(22678,22646,37,22658);else if(27==(0|K))H(22721,22646,61,22744);else if(45==(0|K)){b:do{if((0|F)>0){for(E=0==(0|g),C=g<<2,D=0==(0|a),B=0,c=0;;){if(A=0|b[I+(B<<2)>>2],E)K=73;else{if(!(y=0|Wc(C))){K=50;break}if(!(z=0|Wc(C))){K=52;break}c:do{if(D)d=0;else{for(g=0,d=0,i=a;f=G+(g<<5)|0,0|lc(0|b[i>>2],f,0|b[A>>2])?(b[y+(d<<2)>>2]=i,b[z+(d<<2)>>2]=f,r=d+1|0):r=d,i=0|b[i+8>>2];)g=g+1|0,d=r;if((0|r)>0)if(f=0|b[y>>2],1==(0|r))d=f;else for(o=0,p=-1,d=f,n=f;;){for(l=0|b[n>>2],f=0,i=0;m=(0|(g=0|b[b[y+(i<<2)>>2]>>2]))==(0|l)?f:f+(1&(0|lc(g,0|b[z+(i<<2)>>2],0|b[l>>2])))|0,(0|(i=i+1|0))!=(0|r);)f=m;if(d=(g=(0|m)>(0|p))?n:d,(0|(f=o+1|0))==(0|r))break c;o=f,p=g?m:p,n=0|b[y+(f<<2)>>2]}else d=0}}while(0);if(Xc(y),Xc(z),d){if(f=0|b[(g=d+4|0)>>2])d=f+8|0;else if(0|b[d>>2]){K=70;break}b[d>>2]=A,b[g>>2]=A}else K=73}if(73==(0|K)){if(K=0,0|(c=0|b[A>>2]))do{z=c,c=0|b[c+16>>2],Xc(z)}while(0!=(0|c));Xc(A),c=2}if((0|(B=B+1|0))>=(0|F)){J=c;break b}}50==(0|K)?H(22863,22646,249,22882):52==(0|K)?H(22901,22646,252,22882):70==(0|K)&&H(22721,22646,61,22744)}else J=0}while(0);return Xc(I),Xc(G),0|(K=J)}return 0}function lc(a,c,d){a|=0;var l,f=0,g=0,h=0,i=0,j=0,k=0,m=0;if(!(0|xa(c|=0,d|=0)))return 0|(a=0);if(c=0|wa(c),l=+e[d>>3],f=c&(f=+e[d+8>>3])<0?f+6.283185307179586:f,!(a=0|b[a>>2]))return 0|(a=0);if(c){c=0,d=a;a:for(;;){for(;i=+e[d>>3],k=+e[d+8>>3],m=0|b[(d=d+16|0)>>2],h=+e[(m=0==(0|m)?a:m)>>3],g=+e[m+8>>3],i>h?(j=i,i=k):(j=h,h=i,i=g,g=k),lj;)if(!(d=0|b[d>>2])){d=22;break a}if(f=(i=i<0?i+6.283185307179586:i)==f|(k=g<0?g+6.283185307179586:g)==f?f+-2220446049250313e-31:f,((k+=(l-h)/(j-h)*(i-k))<0?k+6.283185307179586:k)>f&&(c^=1),!(d=0|b[d>>2])){d=22;break}}if(22==(0|d))return 0|c}else{c=0,d=a;b:for(;;){for(;i=+e[d>>3],k=+e[d+8>>3],m=0|b[(d=d+16|0)>>2],h=+e[(m=0==(0|m)?a:m)>>3],g=+e[m+8>>3],i>h?(j=i,i=k):(j=h,h=i,i=g,g=k),lj;)if(!(d=0|b[d>>2])){d=22;break b}if(g+(l-h)/(j-h)*(i-g)>(f=i==f|g==f?f+-2220446049250313e-31:f)&&(c^=1),!(d=0|b[d>>2])){d=22;break}}if(22==(0|d))return 0|c}return 0}function mc(c,d,e,f,g){e|=0,f|=0,g|=0;var n,o,s,u,h=0,i=0,j=0,k=0,l=0,m=0,p=0,q=0,r=0,t=0;if(u=S,S=S+32|0,t=u+16|0,s=u,h=0|cd(0|(c|=0),0|(d|=0),52),G(),h&=15,p=0|cd(0|e,0|f,52),G(),(0|h)!=(15&p|0))return S=u,0|(t=1);if(l=0|cd(0|c,0|d,45),G(),l&=127,m=0|cd(0|e,0|f,45),G(),p=(0|l)!=(0|(m&=127))){if(7==(0|(j=0|ta(l,m))))return S=u,0|(t=2);7==(0|(k=0|ta(m,l)))?H(22925,22949,151,22959):(q=j,i=k)}else q=0,i=0;n=0|la(l),o=0|la(m),b[t>>2]=0,b[t+4>>2]=0,b[t+8>>2]=0,b[t+12>>2]=0;do{if(q){if(j=(0|(m=0|b[4304+(28*l|0)+(q<<2)>>2]))>0,o)if(j){l=0,k=e,j=f;do{k=0|Ob(k,j),j=0|G(),1==(0|(i=0|Qa(i)))&&(i=0|Qa(1)),l=l+1|0}while((0|l)!=(0|m));m=i,l=k,k=j}else m=i,l=e,k=f;else if(j){l=0,k=e,j=f;do{k=0|Pb(k,j),j=0|G(),i=0|Qa(i),l=l+1|0}while((0|l)!=(0|m));m=i,l=k,k=j}else m=i,l=e,k=f;if(Tb(l,k,t),p||H(22972,22949,181,22959),(j=0!=(0|n))&(i=0!=(0|o))&&H(22999,22949,182,22959),j){if(i=0|Lb(c,d),0|a[22032+(7*i|0)+q>>0]){h=3;break}l=k=0|b[21200+(28*i|0)+(q<<2)>>2],r=26}else if(i){if(i=0|Lb(l,k),0|a[22032+(7*i|0)+m>>0]){h=4;break}l=0,k=0|b[21200+(28*m|0)+(i<<2)>>2],r=26}else i=0;if(26==(0|r))if((0|k)<=-1&&H(23030,22949,212,22959),(0|l)<=-1&&H(23053,22949,213,22959),(0|k)>0){j=t+4|0,i=0;do{Oa(j),i=i+1|0}while((0|i)!=(0|k));i=l}else i=l;if(b[s>>2]=0,b[s+4>>2]=0,b[s+8>>2]=0,Ma(s,q),0|h)for(;0|Rb(h)?Ka(s):La(s),(0|h)>1;)h=h+-1|0;if((0|i)>0){h=0;do{Oa(s),h=h+1|0}while((0|h)!=(0|i))}Ea(r=t+4|0,s,r),Ca(r),r=50}else if(Tb(e,f,t),0!=(0|n)&0!=(0|o))if((0|m)!=(0|l)&&H(23077,22949,243,22959),i=0|Lb(c,d),h=0|Lb(e,f),0|a[22032+(7*i|0)+h>>0])h=5;else if((0|(i=0|b[21200+(28*i|0)+(h<<2)>>2]))>0){j=t+4|0,h=0;do{Oa(j),h=h+1|0}while((0|h)!=(0|i));r=50}else r=50;else r=50}while(0);return 50==(0|r)&&(h=t+4|0,b[g>>2]=b[h>>2],b[g+4>>2]=b[h+4>>2],b[g+8>>2]=b[h+8>>2],h=0),S=u,0|(t=h)}function nc(a,c,d,e){d|=0,e|=0;var l,p,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;if(p=S,S=S+48|0,h=p+36|0,i=p+24|0,j=p+12|0,k=p,g=0|cd(0|(a|=0),0|(c|=0),52),G(),g&=15,n=0|cd(0|a,0|c,45),G(),l=0|la(n&=127),dd(0|g,0,52),r=134225919|G(),b[(q=e)>>2]=-1,b[q+4>>2]=r,!g)return(0|b[d>>2])>1||(0|b[d+4>>2])>1||(0|b[d+8>>2])>1||127==(0|(f=0|sa(n,0|Ha(d))))?(S=p,0|(r=1)):(o=0|dd(0|f,0,45),q=0|G(),q=-1040385&b[(n=e)+4>>2]|q,b[(r=e)>>2]=b[n>>2]|o,b[r+4>>2]=q,S=p,0|(r=0));for(b[h>>2]=b[d>>2],b[h+4>>2]=b[d+4>>2],b[h+8>>2]=b[d+8>>2];b[i>>2]=b[h>>2],b[i+4>>2]=b[h+4>>2],b[i+8>>2]=b[h+8>>2],0|Rb(g)?(Ia(h),b[j>>2]=b[h>>2],b[j+4>>2]=b[h+4>>2],b[j+8>>2]=b[h+8>>2],Ka(j)):(Ja(h),b[j>>2]=b[h>>2],b[j+4>>2]=b[h+4>>2],b[j+8>>2]=b[h+8>>2],La(j)),Fa(i,j,k),Ca(k),s=0|b[(q=e)>>2],q=0|b[q+4>>2],d=0|dd(7,0,0|(t=3*(15-g|0)|0)),q&=~(0|G()),t=0|dd(0|Ha(k),0,0|t),q=0|G()|q,b[(r=e)>>2]=t|s&~d,b[r+4>>2]=q,(0|g)>1;)g=g+-1|0;a:do{if((0|b[h>>2])<=1&&(0|b[h+4>>2])<=1&&(0|b[h+8>>2])<=1){k=127==(0|(i=0|sa(n,g=0|Ha(h))))?0:0|la(i);b:do{if(g){if(l){if(h=21408+(28*(0|Lb(a,c))|0)+(g<<2)|0,(0|(h=0|b[h>>2]))>0){d=0;do{g=0|Pa(g),d=d+1|0}while((0|d)!=(0|h))}if(1==(0|g)){f=3;break a}127==(0|(d=0|sa(n,g)))&&H(23104,22949,376,23134),0|la(d)?H(23147,22949,377,23134):(o=h,m=g,f=d)}else o=0,m=g,f=i;if((0|(j=0|b[4304+(28*n|0)+(m<<2)>>2]))<=-1&&H(23178,22949,384,23134),!k){if((0|o)<=-1&&H(23030,22949,417,23134),0|o){g=0,d=0|b[(h=e)>>2],h=0|b[h+4>>2];do{d=0|Nb(d,h),h=0|G(),b[(t=e)>>2]=d,b[t+4>>2]=h,g=g+1|0}while((0|g)<(0|o))}if((0|j)<=0){g=54;break}for(g=0,d=0|b[(h=e)>>2],h=0|b[h+4>>2];;)if(d=0|Nb(d,h),h=0|G(),b[(t=e)>>2]=d,b[t+4>>2]=h,(0|(g=g+1|0))==(0|j)){g=54;break b}}if(7==(0|(i=0|ta(f,n)))&&H(22925,22949,393,23134),d=0|b[(g=e)>>2],g=0|b[g+4>>2],(0|j)>0){h=0;do{d=0|Nb(d,g),g=0|G(),b[(t=e)>>2]=d,b[t+4>>2]=g,h=h+1|0}while((0|h)!=(0|j))}if(d=0|Lb(d,g),t=0|ma(f),(0|(d=0|b[(t?21824:21616)+(28*i|0)+(d<<2)>>2]))<=-1&&H(23030,22949,412,23134),d){g=0,h=0|b[(i=e)>>2],i=0|b[i+4>>2];do{h=0|Mb(h,i),i=0|G(),b[(t=e)>>2]=h,b[t+4>>2]=i,g=g+1|0}while((0|g)<(0|d));g=54}else g=54}else if(0!=(0|l)&0!=(0|k))if(g=21408+(28*(t=0|Lb(a,c))|0)+((0|Lb(0|b[(g=e)>>2],0|b[g+4>>2]))<<2)|0,(0|(g=0|b[g>>2]))<=-1&&H(23201,22949,433,23134),g){f=0,d=0|b[(h=e)>>2],h=0|b[h+4>>2];do{d=0|Nb(d,h),h=0|G(),b[(t=e)>>2]=d,b[t+4>>2]=h,f=f+1|0}while((0|f)<(0|g));f=i,g=54}else f=i,g=55;else f=i,g=54}while(0);if(54==(0|g)&&k&&(g=55),55==(0|g)&&1==(0|Lb(0|b[(t=e)>>2],0|b[t+4>>2]))){f=4;break}r=0|b[(t=e)>>2],t=-1040385&b[t+4>>2],s=0|dd(0|f,0,45),t=0|t|G(),b[(f=e)>>2]=r|s,b[f+4>>2]=t,f=0}else f=2}while(0);return S=p,0|(t=f)}function tc(a,b){var c=0;if(!(b|=0))return 0|(c=1);c=a|=0,a=1;do{a=0|B(0==(1&b|0)?1:c,a),b>>=1,c=0|B(c,c)}while(0!=(0|b));return 0|a}function uc(a,c,d){a|=0;var m,o,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0;if(!(0|xa(c|=0,d|=0)))return 0|(n=0);if(c=0|wa(c),o=+e[d>>3],f=c&(f=+e[d+8>>3])<0?f+6.283185307179586:f,(0|(n=0|b[a>>2]))<=0)return 0|(n=0);if(m=0|b[a+4>>2],c){c=0,d=-1,a=0;a:for(;;){for(l=a;i=+e[m+(l<<4)>>3],k=+e[m+(l<<4)+8>>3],h=+e[m+((a=(d+2|0)%(0|n)|0)<<4)>>3],g=+e[m+(a<<4)+8>>3],i>h?(j=i,i=k):(j=h,h=i,i=g,g=k),oj;){if(!((0|(d=l+1|0))<(0|n))){d=22;break a}a=l,l=d,d=a}if(f=(i=i<0?i+6.283185307179586:i)==f|(k=g<0?g+6.283185307179586:g)==f?f+-2220446049250313e-31:f,((k+=(o-h)/(j-h)*(i-k))<0?k+6.283185307179586:k)>f&&(c^=1),(0|(a=l+1|0))>=(0|n)){d=22;break}d=l}if(22==(0|d))return 0|c}else{c=0,d=-1,a=0;b:for(;;){for(l=a;i=+e[m+(l<<4)>>3],k=+e[m+(l<<4)+8>>3],h=+e[m+((a=(d+2|0)%(0|n)|0)<<4)>>3],g=+e[m+(a<<4)+8>>3],i>h?(j=i,i=k):(j=h,h=i,i=g,g=k),oj;){if(!((0|(d=l+1|0))<(0|n))){d=22;break b}a=l,l=d,d=a}if(g+(o-h)/(j-h)*(i-g)>(f=i==f|g==f?f+-2220446049250313e-31:f)&&(c^=1),(0|(a=l+1|0))>=(0|n)){d=22;break}d=l}if(22==(0|d))return 0|c}return 0}function vc(a,c){c|=0;var o,r,s,t,u,d=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,v=0;if(!(r=0|b[(a|=0)>>2]))return b[c>>2]=0,b[c+4>>2]=0,b[c+8>>2]=0,b[c+12>>2]=0,b[c+16>>2]=0,b[c+20>>2]=0,b[c+24>>2]=0,void(b[c+28>>2]=0);if(e[(s=c+8|0)>>3]=17976931348623157e292,e[(t=c+24|0)>>3]=17976931348623157e292,e[c>>3]=-17976931348623157e292,e[(u=c+16|0)>>3]=-17976931348623157e292,!((0|r)<=0)){for(o=0|b[a+4>>2],l=17976931348623157e292,m=-17976931348623157e292,n=0,a=-1,h=17976931348623157e292,i=17976931348623157e292,k=-17976931348623157e292,f=-17976931348623157e292,p=0;d=+e[o+(p<<4)>>3],j=+e[o+(p<<4)+8>>3],g=+e[o+(((0|(a=a+2|0))==(0|r)?0:a)<<4)+8>>3],d>3]=d,h=d),j>3]=j,i=j),d>k?e[c>>3]=d:d=k,j>f&&(e[u>>3]=j,f=j),l=j>0&jm?j:m,n|=+q(+(j-g))>3.141592653589793,(0|(a=p+1|0))!=(0|r);)v=p,k=d,p=a,a=v;n&&(e[u>>3]=m,e[t>>3]=l)}}function wc(a,c){c|=0;var y,d=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,z=0,A=0;if(r=0|b[(a|=0)>>2]){if(e[(s=c+8|0)>>3]=17976931348623157e292,e[(t=c+24|0)>>3]=17976931348623157e292,e[c>>3]=-17976931348623157e292,e[(u=c+16|0)>>3]=-17976931348623157e292,(0|r)>0){for(g=0|b[a+4>>2],o=17976931348623157e292,p=-17976931348623157e292,f=0,d=-1,k=17976931348623157e292,l=17976931348623157e292,n=-17976931348623157e292,i=-17976931348623157e292,v=0;h=+e[g+(v<<4)>>3],m=+e[g+(v<<4)+8>>3],j=+e[g+(((0|(z=d+2|0))==(0|r)?0:z)<<4)+8>>3],h>3]=h,k=h),m>3]=m,l=m),h>n?e[c>>3]=h:h=n,m>i&&(e[u>>3]=m,i=m),o=m>0&mp?m:p,f|=+q(+(m-j))>3.141592653589793,(0|(d=v+1|0))!=(0|r);)z=v,n=h,v=d,d=z;f&&(e[u>>3]=p,e[t>>3]=o)}}else b[c>>2]=0,b[c+4>>2]=0,b[c+8>>2]=0,b[c+12>>2]=0,b[c+16>>2]=0,b[c+20>>2]=0,b[c+24>>2]=0,b[c+28>>2]=0;if(!((0|(d=0|b[(z=a+8|0)>>2]))<=0)){y=a+12|0,x=0;do{if(g=0|b[y>>2],f=x,t=c+((x=x+1|0)<<5)|0,u=0|b[g+(f<<3)>>2]){if(e[(v=c+(x<<5)+8|0)>>3]=17976931348623157e292,e[(a=c+(x<<5)+24|0)>>3]=17976931348623157e292,e[t>>3]=-17976931348623157e292,e[(w=c+(x<<5)+16|0)>>3]=-17976931348623157e292,(0|u)>0){for(r=0|b[g+(f<<3)+4>>2],o=17976931348623157e292,p=-17976931348623157e292,g=0,f=-1,s=0,k=17976931348623157e292,l=17976931348623157e292,m=-17976931348623157e292,i=-17976931348623157e292;h=+e[r+(s<<4)>>3],n=+e[r+(s<<4)+8>>3],j=+e[r+(((0|(f=f+2|0))==(0|u)?0:f)<<4)+8>>3],h>3]=h,k=h),n>3]=n,l=n),h>m?e[t>>3]=h:h=m,n>i&&(e[w>>3]=n,i=n),o=n>0&np?n:p,g|=+q(+(n-j))>3.141592653589793,(0|(f=s+1|0))!=(0|u);)A=s,s=f,m=h,f=A;g&&(e[w>>3]=p,e[a>>3]=o)}}else b[t>>2]=0,b[t+4>>2]=0,b[t+8>>2]=0,b[t+12>>2]=0,b[t+16>>2]=0,b[t+20>>2]=0,b[t+24>>2]=0,b[t+28>>2]=0,d=0|b[z>>2]}while((0|x)<(0|d))}}function xc(a,c,d){var e=0,f=0,g=0;if(!(0|uc(a|=0,c|=0,d|=0)))return 0|(f=0);if((0|b[(f=a+8|0)>>2])<=0)return 0|(f=1);for(e=a+12|0,a=0;;){if(g=a,a=a+1|0,0|uc((0|b[e>>2])+(g<<3)|0,c+(a<<5)|0,d)){a=0,e=6;break}if((0|a)>=(0|b[f>>2])){a=1,e=6;break}}return 6==(0|e)?0|a:0}function Gc(a,b,c,d,f){b|=0,c|=0,d|=0,f|=0;var h,i,j,k,l,m,n,g=0;k=+e[(a|=0)>>3],j=+e[b>>3]-k,i=+e[a+8>>3],h=+e[b+8>>3]-i,m=+e[c>>3],g=((g=+e[d>>3]-m)*(i-(n=+e[c+8>>3]))-(k-m)*(l=+e[d+8>>3]-n))/(j*l-h*g),e[f>>3]=k+j*g,e[f+8>>3]=i+h*g}function Hc(a,b){return b|=0,+e[(a|=0)>>3]!=+e[b>>3]?0|(b=0):0|(b=+e[a+8>>3]==+e[b+8>>3])}function Ic(a,b){b|=0;var c,d,f;return+((f=+e[(a|=0)>>3]-+e[b>>3])*f+(d=+e[a+8>>3]-+e[b+8>>3])*d+(c=+e[a+16>>3]-+e[b+16>>3])*c)}function Mc(a,c,d){a|=0,d|=0;var e=0;(0|(c|=0))>0?(e=0|Yc(c,4),b[a>>2]=e,e||H(23230,23253,40,23267)):b[a>>2]=0,b[a+4>>2]=c,b[a+8>>2]=0,b[a+12>>2]=d}function Nc(a){var g,h,i,c=0,d=0,f=0,j=0;g=(a|=0)+4|0,h=a+12|0,i=a+8|0;a:for(;;){for(d=0|b[g>>2],c=0;;){if((0|c)>=(0|d))break a;if(f=0|b[a>>2],j=0|b[f+(c<<2)>>2])break;c=c+1|0}c=f+(~~(+q(+ +s(10,+ +(15-(0|b[h>>2])|0))*(+e[j>>3]+ +e[j+8>>3]))%+(0|d))>>>0<<2)|0,d=0|b[c>>2];b:do{if(0|d){if(f=j+32|0,(0|d)==(0|j))b[c>>2]=b[f>>2];else{if(!(c=0|b[(d=d+32|0)>>2]))break;for(;(0|c)!=(0|j);)if(!(c=0|b[(d=c+32|0)>>2]))break b;b[d>>2]=b[f>>2]}Xc(j),b[i>>2]=(0|b[i>>2])-1}}while(0)}Xc(0|b[a>>2])}function Oc(a){var e,c=0,d=0;for(e=0|b[(a|=0)+4>>2],d=0;;){if((0|d)>=(0|e)){c=0,d=4;break}if(c=0|b[(0|b[a>>2])+(d<<2)>>2]){d=4;break}d=d+1|0}return 4==(0|d)?0|c:0}function Pc(a,c){c|=0;var d=0,f=0,g=0,h=0;if(d=~~(+q(+ +s(10,+ +(15-(0|b[(a|=0)+12>>2])|0))*(+e[c>>3]+ +e[c+8>>3]))%+(0|b[a+4>>2]))>>>0,d=(0|b[a>>2])+(d<<2)|0,!(f=0|b[d>>2]))return 0|(h=1);h=c+32|0;do{if((0|f)!=(0|c)){if(!(d=0|b[f+32>>2]))return 0|(h=1);for(g=d;;){if((0|g)==(0|c)){g=8;break}if(!(d=0|b[g+32>>2])){d=1,g=10;break}f=g,g=d}if(8==(0|g)){b[f+32>>2]=b[h>>2];break}if(10==(0|g))return 0|d}else b[d>>2]=b[h>>2]}while(0);return Xc(c),b[(h=a+8|0)>>2]=(0|b[h>>2])-1,0|(h=0)}function Qc(a,c,d){a|=0,c|=0,d|=0;var h,f=0,g=0,i=0;(h=0|Wc(40))||H(23283,23253,98,23296),b[h>>2]=b[c>>2],b[h+4>>2]=b[c+4>>2],b[h+8>>2]=b[c+8>>2],b[h+12>>2]=b[c+12>>2],b[(g=h+16|0)>>2]=b[d>>2],b[g+4>>2]=b[d+4>>2],b[g+8>>2]=b[d+8>>2],b[g+12>>2]=b[d+12>>2],b[h+32>>2]=0,g=~~(+q(+ +s(10,+ +(15-(0|b[a+12>>2])|0))*(+e[c>>3]+ +e[c+8>>3]))%+(0|b[a+4>>2]))>>>0,g=(0|b[a>>2])+(g<<2)|0,f=0|b[g>>2];do{if(f){for(;!(0|hb(f,c)&&0|hb(f+16|0,d));)if(g=0|b[f+32>>2],!(0|b[(f=0==(0|g)?f:g)+32>>2])){i=10;break}if(10==(0|i)){b[f+32>>2]=h;break}return Xc(h),0|(i=f)}b[g>>2]=h}while(0);return b[(i=a+8|0)>>2]=1+(0|b[i>>2]),0|(i=h)}function Rc(a,c,d){c|=0,d|=0;var f=0,g=0;if(g=~~(+q(+ +s(10,+ +(15-(0|b[(a|=0)+12>>2])|0))*(+e[c>>3]+ +e[c+8>>3]))%+(0|b[a+4>>2]))>>>0,!(g=0|b[(0|b[a>>2])+(g<<2)>>2]))return 0|(d=0);if(!d){for(a=g;;){if(0|hb(a,c)){f=10;break}if(!(a=0|b[a+32>>2])){a=0,f=10;break}}if(10==(0|f))return 0|a}for(a=g;;){if(0|hb(a,c)&&0|hb(a+16|0,d)){f=10;break}if(!(a=0|b[a+32>>2])){a=0,f=10;break}}return 10==(0|f)?0|a:0}function Sc(a,c){c|=0;var d=0;if(d=~~(+q(+ +s(10,+ +(15-(0|b[(a|=0)+12>>2])|0))*(+e[c>>3]+ +e[c+8>>3]))%+(0|b[a+4>>2]))>>>0,!(a=0|b[(0|b[a>>2])+(d<<2)>>2]))return 0|(d=0);for(;;){if(0|hb(a,c)){c=5;break}if(!(a=0|b[a+32>>2])){a=0,c=5;break}}return 5==(0|c)?0|a:0}function Vc(a){return 0|~~+function Uc(a){return+ +id(+(a=+a))}(a=+a)}function Wc(a){a|=0;var w,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;w=S,S=S+16|0,n=w;do{if(a>>>0<245){if(a=(k=a>>>0<11?16:a+11&-8)>>>3,3&(d=(m=0|b[5829])>>>a)|0)return e=0|b[(d=(a=23356+((c=(1&d^1)+a|0)<<1<<2)|0)+8|0)>>2],(0|(g=0|b[(f=e+8|0)>>2]))==(0|a)?b[5829]=m&~(1<>2]=a,b[d>>2]=g),v=c<<3,b[e+4>>2]=3|v,b[(v=e+v+4|0)>>2]=1|b[v>>2],S=w,0|(v=f);if(k>>>0>(l=0|b[5831])>>>0){if(0|d)return c=((c=d<>>=i=c>>>12&16)>>>5&8)|i|(g=(c>>>=d)>>>2&4)|(a=(c>>>=g)>>>1&2)|(e=(c>>>=a)>>>1&1))+(c>>>e)|0)<<1<<2)|0)+8|0)>>2],(0|(d=0|b[(i=g+8|0)>>2]))==(0|c)?(a=m&~(1<>2]=c,b[a>>2]=d,a=m),h=(v=e<<3)-k|0,b[g+4>>2]=3|k,b[(f=g+k|0)+4>>2]=1|h,b[g+v>>2]=h,0|l&&(e=0|b[5834],d=23356+((c=l>>>3)<<1<<2)|0,a&(c=1<>2]:(b[5829]=a|c,c=d,a=d+8|0),b[a>>2]=e,b[c+12>>2]=e,b[e+8>>2]=c,b[e+12>>2]=d),b[5831]=h,b[5834]=f,S=w,0|(v=i);if(g=0|b[5830]){for(d=(g&0-g)-1|0,d=j=0|b[23620+(((e=(d>>>=f=d>>>12&16)>>>5&8)|f|(h=(d>>>=e)>>>2&4)|(i=(d>>>=h)>>>1&2)|(j=(d>>>=i)>>>1&1))+(d>>>j)<<2)>>2],i=j,j=(-8&b[j+4>>2])-k|0;(a=0|b[d+16>>2])||(a=0|b[d+20>>2]);)d=a,i=(f=(h=(-8&b[a+4>>2])-k|0)>>>0>>0)?a:i,j=f?h:j;if((h=i+k|0)>>>0>i>>>0){f=0|b[i+24>>2],c=0|b[i+12>>2];do{if((0|c)==(0|i)){if(!(c=0|b[(a=i+20|0)>>2])&&!(c=0|b[(a=i+16|0)>>2])){d=0;break}for(;;)if(d=0|b[(e=c+20|0)>>2])c=d,a=e;else{if(!(d=0|b[(e=c+16|0)>>2]))break;c=d,a=e}b[a>>2]=0,d=c}else d=0|b[i+8>>2],b[d+12>>2]=c,b[c+8>>2]=d,d=c}while(0);do{if(0|f){if(c=0|b[i+28>>2],(0|i)==(0|b[(a=23620+(c<<2)|0)>>2])){if(b[a>>2]=d,!d){b[5830]=g&~(1<>2])==(0|i)?v:f+20|0)>>2]=d,!d)break;b[d+24>>2]=f,0|(c=0|b[i+16>>2])&&(b[d+16>>2]=c,b[c+24>>2]=d),0|(c=0|b[i+20>>2])&&(b[d+20>>2]=c,b[c+24>>2]=d)}}while(0);return j>>>0<16?(v=j+k|0,b[i+4>>2]=3|v,b[(v=i+v+4|0)>>2]=1|b[v>>2]):(b[i+4>>2]=3|k,b[h+4>>2]=1|j,b[h+j>>2]=j,0|l&&(e=0|b[5834],d=23356+((c=l>>>3)<<1<<2)|0,(c=1<>2]:(b[5829]=c|m,c=d,a=d+8|0),b[a>>2]=e,b[c+12>>2]=e,b[e+8>>2]=c,b[e+12>>2]=d),b[5831]=j,b[5834]=h),S=w,0|(v=i+8|0)}m=k}else m=k}else m=k}else if(a>>>0<=4294967231)if(k=-8&(a=a+11|0),e=0|b[5830]){f=0-k|0,j=(a>>>=8)?k>>>0>16777215?31:k>>>((j=14-((i=((q=a<<(m=(a+1048320|0)>>>16&8))+520192|0)>>>16&4)|m|(j=((q<<=i)+245760|0)>>>16&2))+(q<>>15)|0)+7|0)&1|j<<1:0,d=0|b[23620+(j<<2)>>2];a:do{if(d)for(a=0,i=k<<(31==(0|j)?0:25-(j>>>1)|0),g=0;;){if((h=(-8&b[d+4>>2])-k|0)>>>0>>0){if(!h){a=d,f=0,q=65;break a}a=d,f=h}if(g=0==(0|(q=0|b[d+20>>2]))|(0|q)==(0|(d=0|b[d+16+(i>>>31<<2)>>2]))?g:q,!d){d=g,q=61;break}i<<=1}else d=0,a=0,q=61}while(0);if(61==(0|q)){if(0==(0|d)&0==(0|a)){if(!(a=((a=2<>>=h=m>>>12&16)>>>5&8)|h|(i=(m>>>=g)>>>2&4)|(j=(m>>>=i)>>>1&2)|(d=(m>>>=j)>>>1&1))+(m>>>d)<<2)>>2]}d?q=65:(i=a,h=f)}if(65==(0|q))for(g=d;;){if(f=(d=(m=(-8&b[g+4>>2])-k|0)>>>0>>0)?m:f,a=d?g:a,(d=0|b[g+16>>2])||(d=0|b[g+20>>2]),!d){i=a,h=f;break}g=d}if(0!=(0|i)&&h>>>0<((0|b[5831])-k|0)>>>0&&(l=i+k|0)>>>0>i>>>0){g=0|b[i+24>>2],c=0|b[i+12>>2];do{if((0|c)==(0|i)){if(!(c=0|b[(a=i+20|0)>>2])&&!(c=0|b[(a=i+16|0)>>2])){c=0;break}for(;;)if(d=0|b[(f=c+20|0)>>2])c=d,a=f;else{if(!(d=0|b[(f=c+16|0)>>2]))break;c=d,a=f}b[a>>2]=0}else v=0|b[i+8>>2],b[v+12>>2]=c,b[c+8>>2]=v}while(0);do{if(g){if(a=0|b[i+28>>2],(0|i)==(0|b[(d=23620+(a<<2)|0)>>2])){if(b[d>>2]=c,!c){e&=~(1<>2])==(0|i)?v:g+20|0)>>2]=c,!c)break;b[c+24>>2]=g,0|(a=0|b[i+16>>2])&&(b[c+16>>2]=a,b[a+24>>2]=c),(a=0|b[i+20>>2])&&(b[c+20>>2]=a,b[a+24>>2]=c)}}while(0);b:do{if(h>>>0<16)v=h+k|0,b[i+4>>2]=3|v,b[(v=i+v+4|0)>>2]=1|b[v>>2];else{if(b[i+4>>2]=3|k,b[l+4>>2]=1|h,b[l+h>>2]=h,c=h>>>3,h>>>0<256){d=23356+(c<<1<<2)|0,(a=0|b[5829])&(c=1<>2]:(b[5829]=a|c,c=d,a=d+8|0),b[a>>2]=l,b[c+12>>2]=l,b[l+8>>2]=c,b[l+12>>2]=d;break}if(c=23620+((d=(c=h>>>8)?h>>>0>16777215?31:h>>>((d=14-((t=((v=c<<(u=(c+1048320|0)>>>16&8))+520192|0)>>>16&4)|u|(d=((v<<=t)+245760|0)>>>16&2))+(v<>>15)|0)+7|0)&1|d<<1:0)<<2)|0,b[l+28>>2]=d,b[(a=l+16|0)+4>>2]=0,b[a>>2]=0,!(e&(a=1<>2]=l,b[l+24>>2]=c,b[l+12>>2]=l,b[l+8>>2]=l;break}c=0|b[c>>2];c:do{if((-8&b[c+4>>2]|0)!=(0|h)){for(e=h<<(31==(0|d)?0:25-(d>>>1)|0);a=0|b[(d=c+16+(e>>>31<<2)|0)>>2];){if((-8&b[a+4>>2]|0)==(0|h)){c=a;break c}e<<=1,c=a}b[d>>2]=l,b[l+24>>2]=c,b[l+12>>2]=l,b[l+8>>2]=l;break b}}while(0);v=0|b[(u=c+8|0)>>2],b[v+12>>2]=l,b[u>>2]=l,b[l+8>>2]=v,b[l+12>>2]=c,b[l+24>>2]=0}}while(0);return S=w,0|(v=i+8|0)}m=k}else m=k;else m=-1}while(0);if((d=0|b[5831])>>>0>=m>>>0)return c=d-m|0,a=0|b[5834],c>>>0>15?(v=a+m|0,b[5834]=v,b[5831]=c,b[v+4>>2]=1|c,b[a+d>>2]=c,b[a+4>>2]=3|m):(b[5831]=0,b[5834]=0,b[a+4>>2]=3|d,b[(v=a+d+4|0)>>2]=1|b[v>>2]),S=w,0|(v=a+8|0);if((h=0|b[5832])>>>0>m>>>0)return t=h-m|0,b[5832]=t,u=(v=0|b[5835])+m|0,b[5835]=u,b[u+4>>2]=1|t,b[v+4>>2]=3|m,S=w,0|(v=v+8|0);if(0|b[5947]?a=0|b[5949]:(b[5949]=4096,b[5948]=4096,b[5950]=-1,b[5951]=-1,b[5952]=0,b[5940]=0,b[5947]=-16&n^1431655768,a=4096),i=m+48|0,(k=(g=a+(j=m+47|0)|0)&(f=0-a|0))>>>0<=m>>>0)return S=w,0|(v=0);if(0|(a=0|b[5939])&&(n=(l=0|b[5937])+k|0)>>>0<=l>>>0|n>>>0>a>>>0)return S=w,0|(v=0);d:do{if(4&b[5940])c=0,q=143;else{d=0|b[5835];e:do{if(d){for(e=23764;!((n=0|b[e>>2])>>>0<=d>>>0&&(n+(0|b[e+4>>2])|0)>>>0>d>>>0);){if(!(a=0|b[e+8>>2])){q=128;break e}e=a}if((c=g-h&f)>>>0<2147483647)if((0|(a=0|jd(0|c)))==((0|b[e>>2])+(0|b[e+4>>2])|0)){if(-1!=(0|a)){h=c,g=a,q=145;break d}}else e=a,q=136;else c=0}else q=128}while(0);do{if(128==(0|q))if(-1!=(0|(d=0|jd(0)))&&(c=d,p=(c=(0==((p=(o=0|b[5948])+-1|0)&c|0)?0:(p+c&0-o)-c|0)+k|0)+(o=0|b[5937])|0,c>>>0>m>>>0&c>>>0<2147483647)){if(0|(n=0|b[5939])&&p>>>0<=o>>>0|p>>>0>n>>>0){c=0;break}if((0|(a=0|jd(0|c)))==(0|d)){h=c,g=d,q=145;break d}e=a,q=136}else c=0}while(0);do{if(136==(0|q)){if(d=0-c|0,!(i>>>0>c>>>0&c>>>0<2147483647&-1!=(0|e))){if(-1==(0|e)){c=0;break}h=c,g=e,q=145;break d}if((a=j-c+(a=0|b[5949])&0-a)>>>0>=2147483647){h=c,g=e,q=145;break d}if(-1==(0|jd(0|a))){jd(0|d),c=0;break}h=a+c|0,g=e,q=145;break d}}while(0);b[5940]=4|b[5940],q=143}}while(0);if(143==(0|q)&&k>>>0<2147483647&&!(-1==(0|(t=0|jd(0|k)))|1^(s=(r=(p=0|jd(0))-t|0)>>>0>(m+40|0)>>>0)|t>>>0

>>0&-1!=(0|t)&-1!=(0|p)^1)&&(h=s?r:c,g=t,q=145),145==(0|q)){c=(0|b[5937])+h|0,b[5937]=c,c>>>0>(0|b[5938])>>>0&&(b[5938]=c),j=0|b[5835];f:do{if(j){for(c=23764;;){if((0|g)==((a=0|b[c>>2])+(d=0|b[c+4>>2])|0)){q=154;break}if(!(e=0|b[c+8>>2]))break;c=e}if(154==(0|q)&&(u=c+4|0,0==(8&b[c+12>>2]|0))&&g>>>0>j>>>0&a>>>0<=j>>>0){b[u>>2]=d+h,u=j+(t=0==(7&(t=j+8|0)|0)?0:0-t&7)|0,t=(v=(0|b[5832])+h|0)-t|0,b[5835]=u,b[5832]=t,b[u+4>>2]=1|t,b[j+v+4>>2]=40,b[5836]=b[5951];break}for(g>>>0<(0|b[5833])>>>0&&(b[5833]=g),d=g+h|0,c=23764;;){if((0|b[c>>2])==(0|d)){q=162;break}if(!(a=0|b[c+8>>2]))break;c=a}if(162==(0|q)&&0==(8&b[c+12>>2]|0)){b[c>>2]=g,b[(l=c+4|0)>>2]=(0|b[l>>2])+h,k=(l=g+(0==(7&(l=g+8|0)|0)?0:0-l&7)|0)+m|0,i=(c=d+(0==(7&(c=d+8|0)|0)?0:0-c&7)|0)-l-m|0,b[l+4>>2]=3|m;g:do{if((0|j)==(0|c))v=(0|b[5832])+i|0,b[5832]=v,b[5835]=k,b[k+4>>2]=1|v;else{if((0|b[5834])==(0|c)){v=(0|b[5831])+i|0,b[5831]=v,b[5834]=k,b[k+4>>2]=1|v,b[k+v>>2]=v;break}if(1==(3&(a=0|b[c+4>>2])|0)){h=-8&a,e=a>>>3;h:do{if(a>>>0<256){if(a=0|b[c+8>>2],(0|(d=0|b[c+12>>2]))==(0|a)){b[5829]=b[5829]&~(1<>2]=d,b[d+8>>2]=a;break}g=0|b[c+24>>2],a=0|b[c+12>>2];do{if((0|a)==(0|c)){if(a=0|b[(e=(d=c+16|0)+4|0)>>2])d=e;else if(!(a=0|b[d>>2])){a=0;break}for(;;)if(e=0|b[(f=a+20|0)>>2])a=e,d=f;else{if(!(e=0|b[(f=a+16|0)>>2]))break;a=e,d=f}b[d>>2]=0}else v=0|b[c+8>>2],b[v+12>>2]=a,b[a+8>>2]=v}while(0);if(!g)break;e=23620+((d=0|b[c+28>>2])<<2)|0;do{if((0|b[e>>2])==(0|c)){if(b[e>>2]=a,0|a)break;b[5830]=b[5830]&~(1<>2])==(0|c)?v:g+20|0)>>2]=a,!a)break h}while(0);if(b[a+24>>2]=g,0|(e=0|b[(d=c+16|0)>>2])&&(b[a+16>>2]=e,b[e+24>>2]=a),!(d=0|b[d+4>>2]))break;b[a+20>>2]=d,b[d+24>>2]=a}while(0);c=c+h|0,f=h+i|0}else f=i;if(b[(c=c+4|0)>>2]=-2&b[c>>2],b[k+4>>2]=1|f,b[k+f>>2]=f,c=f>>>3,f>>>0<256){d=23356+(c<<1<<2)|0,(a=0|b[5829])&(c=1<>2]:(b[5829]=a|c,c=d,a=d+8|0),b[a>>2]=k,b[c+12>>2]=k,b[k+8>>2]=c,b[k+12>>2]=d;break}c=f>>>8;do{if(c){if(f>>>0>16777215){e=31;break}e=f>>>((e=14-((t=((v=c<<(u=(c+1048320|0)>>>16&8))+520192|0)>>>16&4)|u|(e=((v<<=t)+245760|0)>>>16&2))+(v<>>15)|0)+7|0)&1|e<<1}else e=0}while(0);if(c=23620+(e<<2)|0,b[k+28>>2]=e,b[(a=k+16|0)+4>>2]=0,b[a>>2]=0,!((a=0|b[5830])&(d=1<>2]=k,b[k+24>>2]=c,b[k+12>>2]=k,b[k+8>>2]=k;break}c=0|b[c>>2];i:do{if((-8&b[c+4>>2]|0)!=(0|f)){for(e=f<<(31==(0|e)?0:25-(e>>>1)|0);a=0|b[(d=c+16+(e>>>31<<2)|0)>>2];){if((-8&b[a+4>>2]|0)==(0|f)){c=a;break i}e<<=1,c=a}b[d>>2]=k,b[k+24>>2]=c,b[k+12>>2]=k,b[k+8>>2]=k;break g}}while(0);v=0|b[(u=c+8|0)>>2],b[v+12>>2]=k,b[u>>2]=k,b[k+8>>2]=v,b[k+12>>2]=c,b[k+24>>2]=0}}while(0);return S=w,0|(v=l+8|0)}for(c=23764;!((a=0|b[c>>2])>>>0<=j>>>0&&(v=a+(0|b[c+4>>2])|0)>>>0>j>>>0);)c=0|b[c+8>>2];c=(a=(a=(f=v+-47|0)+(0==(7&(a=f+8|0)|0)?0:0-a&7)|0)>>>0<(f=j+16|0)>>>0?j:a)+8|0,u=g+(t=0==(7&(t=g+8|0)|0)?0:0-t&7)|0,t=(d=h+-40|0)-t|0,b[5835]=u,b[5832]=t,b[u+4>>2]=1|t,b[g+d+4>>2]=40,b[5836]=b[5951],b[(d=a+4|0)>>2]=27,b[c>>2]=b[5941],b[c+4>>2]=b[5942],b[c+8>>2]=b[5943],b[c+12>>2]=b[5944],b[5941]=g,b[5942]=h,b[5944]=0,b[5943]=c,c=a+24|0;do{u=c,b[(c=c+4|0)>>2]=7}while((u+8|0)>>>0>>0);if((0|a)!=(0|j)){if(g=a-j|0,b[d>>2]=-2&b[d>>2],b[j+4>>2]=1|g,b[a>>2]=g,c=g>>>3,g>>>0<256){d=23356+(c<<1<<2)|0,(a=0|b[5829])&(c=1<>2]:(b[5829]=a|c,c=d,a=d+8|0),b[a>>2]=j,b[c+12>>2]=j,b[j+8>>2]=c,b[j+12>>2]=d;break}if(d=23620+((e=(c=g>>>8)?g>>>0>16777215?31:g>>>((e=14-((t=((v=c<<(u=(c+1048320|0)>>>16&8))+520192|0)>>>16&4)|u|(e=((v<<=t)+245760|0)>>>16&2))+(v<>>15)|0)+7|0)&1|e<<1:0)<<2)|0,b[j+28>>2]=e,b[j+20>>2]=0,b[f>>2]=0,!((c=0|b[5830])&(a=1<>2]=j,b[j+24>>2]=d,b[j+12>>2]=j,b[j+8>>2]=j;break}c=0|b[d>>2];j:do{if((-8&b[c+4>>2]|0)!=(0|g)){for(e=g<<(31==(0|e)?0:25-(e>>>1)|0);a=0|b[(d=c+16+(e>>>31<<2)|0)>>2];){if((-8&b[a+4>>2]|0)==(0|g)){c=a;break j}e<<=1,c=a}b[d>>2]=j,b[j+24>>2]=c,b[j+12>>2]=j,b[j+8>>2]=j;break f}}while(0);v=0|b[(u=c+8|0)>>2],b[v+12>>2]=j,b[u>>2]=j,b[j+8>>2]=v,b[j+12>>2]=c,b[j+24>>2]=0}}else 0==(0|(v=0|b[5833]))|g>>>0>>0&&(b[5833]=g),b[5941]=g,b[5942]=h,b[5944]=0,b[5838]=b[5947],b[5837]=-1,b[5842]=23356,b[5841]=23356,b[5844]=23364,b[5843]=23364,b[5846]=23372,b[5845]=23372,b[5848]=23380,b[5847]=23380,b[5850]=23388,b[5849]=23388,b[5852]=23396,b[5851]=23396,b[5854]=23404,b[5853]=23404,b[5856]=23412,b[5855]=23412,b[5858]=23420,b[5857]=23420,b[5860]=23428,b[5859]=23428,b[5862]=23436,b[5861]=23436,b[5864]=23444,b[5863]=23444,b[5866]=23452,b[5865]=23452,b[5868]=23460,b[5867]=23460,b[5870]=23468,b[5869]=23468,b[5872]=23476,b[5871]=23476,b[5874]=23484,b[5873]=23484,b[5876]=23492,b[5875]=23492,b[5878]=23500,b[5877]=23500,b[5880]=23508,b[5879]=23508,b[5882]=23516,b[5881]=23516,b[5884]=23524,b[5883]=23524,b[5886]=23532,b[5885]=23532,b[5888]=23540,b[5887]=23540,b[5890]=23548,b[5889]=23548,b[5892]=23556,b[5891]=23556,b[5894]=23564,b[5893]=23564,b[5896]=23572,b[5895]=23572,b[5898]=23580,b[5897]=23580,b[5900]=23588,b[5899]=23588,b[5902]=23596,b[5901]=23596,b[5904]=23604,b[5903]=23604,u=g+(t=0==(7&(t=g+8|0)|0)?0:0-t&7)|0,t=(v=h+-40|0)-t|0,b[5835]=u,b[5832]=t,b[u+4>>2]=1|t,b[g+v+4>>2]=40,b[5836]=b[5951]}while(0);if((c=0|b[5832])>>>0>m>>>0)return t=c-m|0,b[5832]=t,u=(v=0|b[5835])+m|0,b[5835]=u,b[u+4>>2]=1|t,b[v+4>>2]=3|m,S=w,0|(v=v+8|0)}return b[(v=23312)>>2]=12,S=w,0|(v=0)}function Xc(a){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;if(a|=0){d=a+-8|0,f=0|b[5833],j=d+(c=-8&(a=0|b[a+-4>>2]))|0;do{if(1&a)i=d,h=d;else{if(e=0|b[d>>2],!(3&a))return;if(g=e+c|0,(h=d+(0-e)|0)>>>0>>0)return;if((0|b[5834])==(0|h)){if(3!=(3&(c=0|b[(a=j+4|0)>>2])|0)){i=h,c=g;break}return b[5831]=g,b[a>>2]=-2&c,b[h+4>>2]=1|g,void(b[h+g>>2]=g)}if(d=e>>>3,e>>>0<256){if(a=0|b[h+8>>2],(0|(c=0|b[h+12>>2]))==(0|a)){b[5829]=b[5829]&~(1<>2]=c,b[c+8>>2]=a,i=h,c=g;break}f=0|b[h+24>>2],a=0|b[h+12>>2];do{if((0|a)==(0|h)){if(a=0|b[(d=(c=h+16|0)+4|0)>>2])c=d;else if(!(a=0|b[c>>2])){a=0;break}for(;;)if(d=0|b[(e=a+20|0)>>2])a=d,c=e;else{if(!(d=0|b[(e=a+16|0)>>2]))break;a=d,c=e}b[c>>2]=0}else i=0|b[h+8>>2],b[i+12>>2]=a,b[a+8>>2]=i}while(0);if(f){if(c=0|b[h+28>>2],(0|b[(d=23620+(c<<2)|0)>>2])==(0|h)){if(b[d>>2]=a,!a){b[5830]=b[5830]&~(1<>2])==(0|h)?i:f+20|0)>>2]=a,!a){i=h,c=g;break}b[a+24>>2]=f,0|(d=0|b[(c=h+16|0)>>2])&&(b[a+16>>2]=d,b[d+24>>2]=a),(c=0|b[c+4>>2])?(b[a+20>>2]=c,b[c+24>>2]=a,i=h,c=g):(i=h,c=g)}else i=h,c=g}}while(0);if(!(h>>>0>=j>>>0)&&1&(e=0|b[(a=j+4|0)>>2])){if(2&e)b[a>>2]=-2&e,b[i+4>>2]=1|c,b[h+c>>2]=c,f=c;else{if((0|b[5835])==(0|j)){if(j=(0|b[5832])+c|0,b[5832]=j,b[5835]=i,b[i+4>>2]=1|j,(0|i)!=(0|b[5834]))return;return b[5834]=0,void(b[5831]=0)}if((0|b[5834])==(0|j))return j=(0|b[5831])+c|0,b[5831]=j,b[5834]=h,b[i+4>>2]=1|j,void(b[h+j>>2]=j);f=(-8&e)+c|0,d=e>>>3;do{if(e>>>0<256){if(c=0|b[j+8>>2],(0|(a=0|b[j+12>>2]))==(0|c)){b[5829]=b[5829]&~(1<>2]=a,b[a+8>>2]=c;break}g=0|b[j+24>>2],a=0|b[j+12>>2];do{if((0|a)==(0|j)){if(a=0|b[(d=(c=j+16|0)+4|0)>>2])c=d;else if(!(a=0|b[c>>2])){d=0;break}for(;;)if(d=0|b[(e=a+20|0)>>2])a=d,c=e;else{if(!(d=0|b[(e=a+16|0)>>2]))break;a=d,c=e}b[c>>2]=0,d=a}else d=0|b[j+8>>2],b[d+12>>2]=a,b[a+8>>2]=d,d=a}while(0);if(0|g){if(a=0|b[j+28>>2],(0|b[(c=23620+(a<<2)|0)>>2])==(0|j)){if(b[c>>2]=d,!d){b[5830]=b[5830]&~(1<>2])==(0|j)?e:g+20|0)>>2]=d,!d)break;b[d+24>>2]=g,0|(c=0|b[(a=j+16|0)>>2])&&(b[d+16>>2]=c,b[c+24>>2]=d),0|(a=0|b[a+4>>2])&&(b[d+20>>2]=a,b[a+24>>2]=d)}}while(0);if(b[i+4>>2]=1|f,b[h+f>>2]=f,(0|i)==(0|b[5834]))return void(b[5831]=f)}if(a=f>>>3,f>>>0<256)return d=23356+(a<<1<<2)|0,(c=0|b[5829])&(a=1<>2]:(b[5829]=c|a,a=d,c=d+8|0),b[c>>2]=i,b[a+12>>2]=i,b[i+8>>2]=a,void(b[i+12>>2]=d);a=23620+((e=(a=f>>>8)?f>>>0>16777215?31:f>>>((e=14-((g=((j=a<<(h=(a+1048320|0)>>>16&8))+520192|0)>>>16&4)|h|(e=((j<<=g)+245760|0)>>>16&2))+(j<>>15)|0)+7|0)&1|e<<1:0)<<2)|0,b[i+28>>2]=e,b[i+20>>2]=0,b[i+16>>2]=0,c=0|b[5830],d=1<>2];b:do{if((-8&b[a+4>>2]|0)!=(0|f)){for(e=f<<(31==(0|e)?0:25-(e>>>1)|0);c=0|b[(d=a+16+(e>>>31<<2)|0)>>2];){if((-8&b[c+4>>2]|0)==(0|f)){a=c;break b}e<<=1,a=c}b[d>>2]=i,b[i+24>>2]=a,b[i+12>>2]=i,b[i+8>>2]=i;break a}}while(0);j=0|b[(h=a+8|0)>>2],b[j+12>>2]=i,b[h>>2]=i,b[i+8>>2]=j,b[i+12>>2]=a,b[i+24>>2]=0}else b[5830]=c|d,b[a>>2]=i,b[i+24>>2]=a,b[i+12>>2]=i,b[i+8>>2]=i}while(0);if(j=(0|b[5837])-1|0,b[5837]=j,!(0|j)){for(a=23772;a=0|b[a>>2];)a=a+8|0;b[5837]=-1}}}}function Yc(a,c){c|=0;var d=0;return(a|=0)?(d=0|B(c,a),(c|a)>>>0>65535&&(d=(0|(d>>>0)/(a>>>0))==(0|c)?d:-1)):d=0,(a=0|Wc(d))&&3&b[a+-4>>2]?(hd(0|a,0,0|d),0|a):0|a}function _c(a,b,c,d){return 0|(F(0|(d=(b|=0)-(d|=0)-((c|=0)>>>0>(a|=0)>>>0|0)>>>0)),a-c>>>0|0)}function $c(a){return 0|((a|=0)?31-(0|D(a^a-1))|0:32)}function ad(a,c,d,e,f){f|=0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(l=a|=0,h=d|=0,i=n=e|=0,!(k=j=c|=0))return g=0!=(0|f),i?g?(b[f>>2]=0|a,b[f+4>>2]=0&c,f=0,0|(F(0|(n=0)),f)):(f=0,0|(F(0|(n=0)),f)):(g&&(b[f>>2]=(l>>>0)%(h>>>0),b[f+4>>2]=0),f=(l>>>0)/(h>>>0)>>>0,0|(F(0|(n=0)),f));g=0==(0|i);do{if(h){if(!g){if((g=(0|D(0|i))-(0|D(0|k))|0)>>>0<=31){h=m=g+1|0,a=l>>>(m>>>0)&(c=g-31>>31)|k<<(i=31-g|0),c&=k>>>(m>>>0),g=0,i=l<>2]=0|a,b[f+4>>2]=j|0&c,f=0,0|(F(0|(n=0)),f)):(f=0,0|(F(0|(n=0)),f))}if((g=h-1|0)&h|0){h=i=33+(0|D(0|h))-(0|D(0|k))|0,a=(m=32-i|0)-1>>31&k>>>((o=i-32|0)>>>0)|(k<>>(i>>>0))&(c=o>>31),c&=k>>>(i>>>0),g=l<<(p=64-i|0)&(j=m>>31),i=(k<>>(o>>>0))&j|l<>31;break}return 0|f&&(b[f>>2]=g&l,b[f+4>>2]=0),1==(0|h)?(p=0|a,0|(F(0|(o=j|0&c)),p)):(o=k>>>((p=0|$c(0|h))>>>0)|0,p=k<<32-p|l>>>(p>>>0)|0,0|(F(0|o),p))}if(g)return 0|f&&(b[f>>2]=(k>>>0)%(h>>>0),b[f+4>>2]=0),p=(k>>>0)/(h>>>0)>>>0,0|(F(0|(o=0)),p);if(!l)return 0|f&&(b[f>>2]=0,b[f+4>>2]=(k>>>0)%(i>>>0)),p=(k>>>0)/(i>>>0)>>>0,0|(F(0|(o=0)),p);if(!((g=i-1|0)&i))return 0|f&&(b[f>>2]=0|a,b[f+4>>2]=g&k|0&c),o=0,p=k>>>((0|$c(0|i))>>>0),0|(F(0|o),p);if((g=(0|D(0|i))-(0|D(0|k))|0)>>>0<=30){h=c=g+1|0,a=k<<(i=31-g|0)|l>>>(c>>>0),c=k>>>(c>>>0),g=0,i=l<>2]=0|a,b[f+4>>2]=j|0&c,p=0,0|(F(0|(o=0)),p)):(p=0,0|(F(0|(o=0)),p))}while(0);if(h){k=0|function Zc(a,b,c,d){return 0|(F((b|=0)+(d|=0)+((c=(a|=0)+(c|=0)>>>0)>>>0>>0|0)>>>0|0),0|c)}(0|(m=0|d),0|(l=n|0&e),-1,-1),d=0|G(),j=i,i=0;do{e=j,j=g>>>31|j<<1,g=i|g<<1,_c(0|k,0|d,0|(e=a<<1|e>>>31|0),0|(n=a>>>31|c<<1|0)),i=1&(o=(p=0|G())>>31|((0|p)<0?-1:0)<<1),a=0|_c(0|e,0|n,o&m|0,(((0|p)<0?-1:0)>>31|((0|p)<0?-1:0)<<1)&l|0),c=0|G(),h=h-1|0}while(0!=(0|h));k=j,j=0}else k=i,j=0,i=0;return h=0,0|f&&(b[f>>2]=a,b[f+4>>2]=c),p=-2&(g<<1|0)|i,0|(F(0|(o=(0|g)>>>31|(k|h)<<1|0&(h<<1|g>>>31)|j)),p)}function bd(a,c,d,e){var f,g;return g=S,S=S+16|0,ad(a|=0,c|=0,d|=0,e|=0,f=0|g),S=g,0|(F(0|b[f+4>>2]),0|b[f>>2])}function cd(a,b,c){return a|=0,b|=0,(0|(c|=0))<32?(F(b>>>c|0),a>>>c|(b&(1<>>c-32|0)}function dd(a,b,c){return a|=0,b|=0,(0|(c|=0))<32?(F(b<>>32-c|0),a<=0?+p(a+.5):+A(a-.5)}function gd(c,d,e){c|=0,d|=0;var g,h,f=0;if((0|(e|=0))>=8192)return K(0|c,0|d,0|e),0|c;if(h=0|c,g=c+e|0,(3&c)==(3&d)){for(;3&c;){if(!e)return 0|h;a[c>>0]=0|a[d>>0],c=c+1|0,d=d+1|0,e=e-1|0}for(f=(e=-4&g|0)-64|0;(0|c)<=(0|f);)b[c>>2]=b[d>>2],b[c+4>>2]=b[d+4>>2],b[c+8>>2]=b[d+8>>2],b[c+12>>2]=b[d+12>>2],b[c+16>>2]=b[d+16>>2],b[c+20>>2]=b[d+20>>2],b[c+24>>2]=b[d+24>>2],b[c+28>>2]=b[d+28>>2],b[c+32>>2]=b[d+32>>2],b[c+36>>2]=b[d+36>>2],b[c+40>>2]=b[d+40>>2],b[c+44>>2]=b[d+44>>2],b[c+48>>2]=b[d+48>>2],b[c+52>>2]=b[d+52>>2],b[c+56>>2]=b[d+56>>2],b[c+60>>2]=b[d+60>>2],c=c+64|0,d=d+64|0;for(;(0|c)<(0|e);)b[c>>2]=b[d>>2],c=c+4|0,d=d+4|0}else for(e=g-4|0;(0|c)<(0|e);)a[c>>0]=0|a[d>>0],a[c+1>>0]=0|a[d+1>>0],a[c+2>>0]=0|a[d+2>>0],a[c+3>>0]=0|a[d+3>>0],c=c+4|0,d=d+4|0;for(;(0|c)<(0|g);)a[c>>0]=0|a[d>>0],c=c+1|0,d=d+1|0;return 0|h}function hd(c,d,e){d|=0;var h,f=0,g=0,i=0;if(h=(c|=0)+(e|=0)|0,d&=255,(0|e)>=67){for(;3&c;)a[c>>0]=d,c=c+1|0;for(i=d|d<<8|d<<16|d<<24,g=(f=-4&h|0)-64|0;(0|c)<=(0|g);)b[c>>2]=i,b[c+4>>2]=i,b[c+8>>2]=i,b[c+12>>2]=i,b[c+16>>2]=i,b[c+20>>2]=i,b[c+24>>2]=i,b[c+28>>2]=i,b[c+32>>2]=i,b[c+36>>2]=i,b[c+40>>2]=i,b[c+44>>2]=i,b[c+48>>2]=i,b[c+52>>2]=i,b[c+56>>2]=i,b[c+60>>2]=i,c=c+64|0;for(;(0|c)<(0|f);)b[c>>2]=i,c=c+4|0}for(;(0|c)<(0|h);)a[c>>0]=d,c=c+1|0;return h-e|0}function id(a){return(a=+a)>=0?+p(a+.5):+A(a-.5)}function jd(a){a|=0;var c,d,e;return e=0|J(),(0|a)>0&(0|(c=(d=0|b[g>>2])+a|0))<(0|d)|(0|c)<0?(M(0|c),I(12),-1):(0|c)>(0|e)&&!(0|L(0|c))?(I(12),-1):(b[g>>2]=c,0|d)}return{___uremdi3:bd,_bitshift64Lshr:cd,_bitshift64Shl:dd,_calloc:Yc,_cellAreaKm2:function ub(a,c){var e,f,g,d=0;if(g=S,S=S+192|0,f=g,Vb(a|=0,c|=0,e=g+168|0),Wb(a,c,f),(0|(c=0|b[f>>2]))>0){if(d=+sb(f+8|0,f+8+((1!=(0|c)&1)<<4)|0,e)+0,1!=(0|c)){a=1;do{d+=+sb(f+8+(a<<4)|0,f+8+(((0|(a=a+1|0))%(0|c)|0)<<4)|0,e)}while((0|a)<(0|c))}}else d=0;return S=g,6371.007180918475*d*6371.007180918475},_cellAreaM2:function vb(a,c){var e,f,g,d=0;if(g=S,S=S+192|0,f=g,Vb(a|=0,c|=0,e=g+168|0),Wb(a,c,f),(0|(c=0|b[f>>2]))>0){if(d=+sb(f+8|0,f+8+((1!=(0|c)&1)<<4)|0,e)+0,1!=(0|c)){a=1;do{d+=+sb(f+8+(a<<4)|0,f+8+(((0|(a=a+1|0))%(0|c)|0)<<4)|0,e)}while((0|a)<(0|c))}}else d=0;return S=g,6371.007180918475*d*6371.007180918475*1e3*1e3},_cellAreaRads2:function tb(a,c){var e,f,g,d=0;if(g=S,S=S+192|0,f=g,Vb(a|=0,c|=0,e=g+168|0),Wb(a,c,f),(0|(c=0|b[f>>2]))<=0)return S=g,+(d=0);if(d=+sb(f+8|0,f+8+((1!=(0|c)&1)<<4)|0,e)+0,1==(0|c))return S=g,+d;a=1;do{d+=+sb(f+8+(a<<4)|0,f+8+(((0|(a=a+1|0))%(0|c)|0)<<4)|0,e)}while((0|a)<(0|c));return S=g,+d},_compact:function Hb(a,c,d){c|=0;var v,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,w=0,x=0,y=0,z=0;if(!(d|=0))return 0|(y=0);if(e=0|b[(f=a|=0)>>2],!0&0==(15728640&(f=0|b[f+4>>2])|0)){if((0|d)<=0)return 0|(y=0);if(b[(y=c)>>2]=e,b[y+4>>2]=f,1==(0|d))return 0|(y=0);e=1;do{x=0|b[(w=a+(e<<3)|0)+4>>2],b[(y=c+(e<<3)|0)>>2]=b[w>>2],b[y+4>>2]=x,e=e+1|0}while((0|e)!=(0|d));return 0|(e=0)}if(!(x=0|Wc(w=d<<3)))return 0|(y=-3);if(gd(0|x,0|a,0|w),!(v=0|Yc(d,8)))return Xc(x),0|(y=-3);e=d;a:for(;;){t=0|cd(0|(l=0|b[(h=x)>>2]),0|(h=0|b[h+4>>2]),52),G(),u=(t&=15)+-1|0,s=(0|e)>0;b:do{if(s){if(r=((0|e)<0)<<31>>31,p=0|dd(0|u,0,52),q=0|G(),u>>>0>15)for(f=0,a=l,d=h;;){if(!(0==(0|a)&0==(0|d))){if(g=0|cd(0|a,0|d,52),G(),i=(0|(g&=15))<(0|u),g=(0|g)==(0|u),d=0|bd(0|(k=i?0:g?a:0),0|(a=i?0:g?d:0),0|e,0|r),G(),0==(0|(j=0|b[(i=g=v+(d<<3)|0)>>2]))&0==(0|(i=0|b[i+4>>2])))d=k;else for(p=0,o=d,n=i,d=k;;){if((0|p)>(0|e)){y=41;break a}if((0|j)==(0|d)&(-117440513&n|0)==(0|a)){k=0|cd(0|j,0|n,56),G(),m=(k&=7)+1|0,q=0|cd(0|j,0|n,45),G();c:do{if(0|la(127&q)){if(j=0|cd(0|j,0|n,52),G(),!(j&=15)){i=6;break}for(i=1;;){if(!(0==((q=0|dd(7,0,3*(15-i|0)|0))&d|0)&0==((0|G())&a|0))){i=7;break c}if(!(i>>>0>>0)){i=6;break}i=i+1|0}}else i=7}while(0);if((k+2|0)>>>0>i>>>0){y=51;break a}q=0|dd(0|m,0,56),a=0|G()|-117440513&a,b[(i=g)>>2]=0,b[i+4>>2]=0,i=o,d|=q}else i=(o+1|0)%(0|e)|0;if(0==(0|(j=0|b[(n=g=v+(i<<3)|0)>>2]))&0==(0|(n=0|b[n+4>>2])))break;p=p+1|0,o=i}b[(q=g)>>2]=d,b[q+4>>2]=a}if((0|(f=f+1|0))>=(0|e))break b;a=0|b[(d=x+(f<<3)|0)>>2],d=0|b[d+4>>2]}for(f=0,a=l,d=h;;){if(!(0==(0|a)&0==(0|d))){if(i=0|cd(0|a,0|d,52),G(),(0|(i&=15))>=(0|u)){if((0|i)!=(0|u)&&(a|=p,d=-15728641&d|q,i>>>0>=t>>>0)){g=u;do{o=0|dd(7,0,3*(14-g|0)|0),g=g+1|0,a|=o,d=0|G()|d}while(g>>>0>>0)}}else a=0,d=0;if(i=0|bd(0|a,0|d,0|e,0|r),G(),!(0==(0|(k=0|b[(j=g=v+(i<<3)|0)>>2]))&0==(0|(j=0|b[j+4>>2]))))for(o=0;;){if((0|o)>(0|e)){y=41;break a}if((0|k)==(0|a)&(-117440513&j|0)==(0|d)){m=0|cd(0|k,0|j,56),G(),n=(m&=7)+1|0,z=0|cd(0|k,0|j,45),G();d:do{if(0|la(127&z)){if(k=0|cd(0|k,0|j,52),G(),!(k&=15)){j=6;break}for(j=1;;){if(!(0==((z=0|dd(7,0,3*(15-j|0)|0))&a|0)&0==((0|G())&d|0))){j=7;break d}if(!(j>>>0>>0)){j=6;break}j=j+1|0}}else j=7}while(0);if((m+2|0)>>>0>j>>>0){y=51;break a}z=0|dd(0|n,0,56),d=0|G()|-117440513&d,b[(n=g)>>2]=0,b[n+4>>2]=0,a|=z}else i=(i+1|0)%(0|e)|0;if(0==(0|(k=0|b[(j=g=v+(i<<3)|0)>>2]))&0==(0|(j=0|b[j+4>>2])))break;o=o+1|0}b[(z=g)>>2]=a,b[z+4>>2]=d}if((0|(f=f+1|0))>=(0|e))break b;a=0|b[(d=x+(f<<3)|0)>>2],d=0|b[d+4>>2]}}}while(0);if((e+5|0)>>>0<11){y=99;break}if(!(q=0|Yc((0|e)/6|0,8))){y=58;break}e:do{if(s){o=0,n=0;do{if(!(0==(0|(f=0|b[(a=i=v+(o<<3)|0)>>2]))&0==(0|(a=0|b[a+4>>2])))){j=0|cd(0|f,0|a,56),G(),d=(j&=7)+1|0,k=-117440513&a,z=0|cd(0|f,0|a,45),G();f:do{if(0|la(127&z)){if(m=0|cd(0|f,0|a,52),G(),0|(m&=15))for(g=1;;){if(!(0==(f&(z=0|dd(7,0,3*(15-g|0)|0))|0)&0==(k&(0|G())|0)))break f;if(!(g>>>0>>0))break;g=g+1|0}f|=a=0|dd(0|d,0,56),a=0|G()|k,b[(d=i)>>2]=f,b[d+4>>2]=a,d=j+2|0}}while(0);7==(0|d)&&(b[(z=q+(n<<3)|0)>>2]=f,b[z+4>>2]=-117440513&a,n=n+1|0)}o=o+1|0}while((0|o)!=(0|e));if(s){if(p=((0|e)<0)<<31>>31,m=0|dd(0|u,0,52),o=0|G(),u>>>0>15)for(a=0,f=0;;){do{if(!(0==(0|l)&0==(0|h))){for(j=0|cd(0|l,0|h,52),G(),g=(0|(j&=15))<(0|u),j=(0|j)==(0|u),g=0|bd(0|(i=g?0:j?l:0),0|(j=g?0:j?h:0),0|e,0|p),G(),d=0;;){if((0|d)>(0|e)){y=98;break a}if((-117440513&(k=0|b[(z=v+(g<<3)|0)+4>>2])|0)==(0|j)&&(0|b[z>>2])==(0|i)){y=70;break}if((0|b[(z=v+((g=(g+1|0)%(0|e)|0)<<3)|0)>>2])==(0|i)&&(0|b[z+4>>2])==(0|j))break;d=d+1|0}if(70==(0|y)&&(y=0,!0&100663296==(117440512&k|0)))break;b[(z=c+(f<<3)|0)>>2]=l,b[z+4>>2]=h,f=f+1|0}}while(0);if((0|(a=a+1|0))>=(0|e)){e=n;break e}l=0|b[(h=x+(a<<3)|0)>>2],h=0|b[h+4>>2]}for(a=0,f=0;;){do{if(!(0==(0|l)&0==(0|h))){if(j=0|cd(0|l,0|h,52),G(),(0|(j&=15))>=(0|u))if((0|j)!=(0|u))if(d=l|m,g=-15728641&h|o,j>>>0>>0)j=g;else{i=u;do{z=0|dd(7,0,3*(14-i|0)|0),i=i+1|0,d|=z,g=0|G()|g}while(i>>>0>>0);j=g}else d=l,j=h;else d=0,j=0;for(i=0|bd(0|d,0|j,0|e,0|p),G(),g=0;;){if((0|g)>(0|e)){y=98;break a}if((-117440513&(k=0|b[(z=v+(i<<3)|0)+4>>2])|0)==(0|j)&&(0|b[z>>2])==(0|d)){y=93;break}if((0|b[(z=v+((i=(i+1|0)%(0|e)|0)<<3)|0)>>2])==(0|d)&&(0|b[z+4>>2])==(0|j))break;g=g+1|0}if(93==(0|y)&&(y=0,!0&100663296==(117440512&k|0)))break;b[(z=c+(f<<3)|0)>>2]=l,b[z+4>>2]=h,f=f+1|0}}while(0);if((0|(a=a+1|0))>=(0|e)){e=n;break e}l=0|b[(h=x+(a<<3)|0)>>2],h=0|b[h+4>>2]}}else f=0,e=n}else f=0,e=0}while(0);if(hd(0|v,0,0|w),gd(0|x,0|q,e<<3|0),Xc(q),!e)break;c=c+(f<<3)|0}return 41==(0|y)?(Xc(x),Xc(v),0|(z=-1)):51==(0|y)?(Xc(x),Xc(v),0|(z=-2)):58==(0|y)?(Xc(x),Xc(v),0|(z=-3)):98==(0|y)?(Xc(q),Xc(x),Xc(v),0|(z=-1)):(99==(0|y)&&gd(0|c,0|x,e<<3|0),Xc(x),Xc(v),0|(z=0))},_destroyLinkedPolygon:function jc(a){var c=0,d=0,e=0,f=0;if(a|=0)for(e=1;;){if(0|(c=0|b[a>>2]))do{if(0|(d=0|b[c>>2]))do{f=d,d=0|b[d+16>>2],Xc(f)}while(0!=(0|d));f=c,c=0|b[c+8>>2],Xc(f)}while(0!=(0|c));if(c=a,a=0|b[a+8>>2],e||Xc(c),!a)break;e=0}},_edgeLengthKm:function pb(a){return+ +e[20752+((a|=0)<<3)>>3]},_edgeLengthM:function qb(a){return+ +e[20880+((a|=0)<<3)>>3]},_emscripten_replace_memory:function V(newBuffer){return a=new Int8Array(newBuffer),new Uint8Array(newBuffer),b=new Int32Array(newBuffer),new Float32Array(newBuffer),e=new Float64Array(newBuffer),buffer=newBuffer,!0},_exactEdgeLengthKm:function xb(a,c){var h,i,d=0,f=0,g=0,j=0,k=0,l=0;if(i=S,S=S+176|0,gc(a|=0,c|=0,h=i),(0|(a=0|b[h>>2]))<=1)return S=i,+(g=0);c=a+-1|0,a=0,d=0,f=+e[h+8>>3],g=+e[h+16>>3];do{k=f,f=+e[h+8+((a=a+1|0)<<4)>>3],l=+u(.5*(f-k)),j=g,g=+e[h+8+(a<<4)+8>>3],j=l*l+(j=+u(.5*(g-j)))*(+t(+k)*+t(+f)*j),d+=2*+z(+ +r(+j),+ +r(+(1-j)))}while((0|a)!=(0|c));return S=i,+(l=6371.007180918475*d)},_exactEdgeLengthM:function yb(a,c){var h,i,d=0,f=0,g=0,j=0,k=0,l=0;if(i=S,S=S+176|0,gc(a|=0,c|=0,h=i),(0|(a=0|b[h>>2]))<=1)return S=i,+(g=0);c=a+-1|0,a=0,d=0,f=+e[h+8>>3],g=+e[h+16>>3];do{k=f,f=+e[h+8+((a=a+1|0)<<4)>>3],l=+u(.5*(f-k)),j=g,g=+e[h+8+(a<<4)+8>>3],j=l*l+(j=+u(.5*(g-j)))*(+t(+k)*+t(+f)*j),d+=2*+z(+ +r(+j),+ +r(+(1-j)))}while((0|a)!=(0|c));return S=i,+(l=6371.007180918475*d*1e3)},_exactEdgeLengthRads:function wb(a,c){var h,i,d=0,f=0,g=0,j=0,k=0,l=0;if(i=S,S=S+176|0,gc(a|=0,c|=0,h=i),(0|(a=0|b[h>>2]))<=1)return S=i,+(g=0);c=a+-1|0,a=0,d=0,f=+e[h+8>>3],g=+e[h+16>>3];do{k=f,f=+e[h+8+((a=a+1|0)<<4)>>3],l=+u(.5*(f-k)),j=g,g=+e[h+8+(a<<4)+8>>3],j=l*l+(j=+u(.5*(g-j)))*(+t(+f)*+t(+k)*j),d+=2*+z(+ +r(+j),+ +r(+(1-j)))}while((0|a)<(0|c));return S=i,+d},_experimentalH3ToLocalIj:function oc(a,b,c,d,e){var f,g;return e|=0,g=S,S=S+16|0,(a=0|mc(a|=0,b|=0,c|=0,d|=0,f=g))||(Ua(f,e),a=0),S=g,0|a},_experimentalLocalIjToH3:function pc(a,b,c,d){var e,f;return a|=0,b|=0,d|=0,e=S,S=S+16|0,Va(c|=0,f=e),d=0|nc(a,b,f,d),S=e,0|d},_free:Xc,_geoToH3:Sb,_getDestinationH3IndexFromUnidirectionalEdge:function cc(a,c){a|=0;var e,f,d=0;return e=S,S=S+16|0,d=e,!0&268435456==(2013265920&(c|=0)|0)?(f=0|cd(0|a,0|c,56),G(),b[d>>2]=0,d=0|da(a,-2130706433&c|134217728,7&f,d),c=0|G(),F(0|c),S=e,0|d):(d=0,F(0|(c=0)),S=e,0|d)},_getH3IndexesFromUnidirectionalEdge:function ec(a,c,d){a|=0;var e,f,g,h,i=0;g=S,S=S+16|0,e=g,h=!0&268435456==(2013265920&(c|=0)|0),f=-2130706433&c|134217728,b[(i=d|=0)>>2]=h?a:0,b[i+4>>2]=h?f:0,h?(c=0|cd(0|a,0|c,56),G(),b[e>>2]=0,a=0|da(a,f,7&c,e),c=0|G()):(a=0,c=0),b[(i=d+8|0)>>2]=a,b[i+4>>2]=c,S=g},_getH3UnidirectionalEdge:function ac(a,c,d,e){var h,k,f=0,g=0,i=0,j=0,l=0;if(k=S,S=S+16|0,h=k,!(0|$b(a|=0,c|=0,d|=0,e|=0)))return j=0,F(0|(i=0)),S=k,0|j;for(i=-2130706433&c,f=(f=0==(0|Fb(a,c)))?1:2;b[h>>2]=0,g=f+1|0,!((0|(l=0|da(a,c,f,h)))==(0|d)&(0|G())==(0|e));){if(!(g>>>0<7)){f=0,a=0,j=6;break}f=g}return 6==(0|j)?(F(0|f),S=k,0|a):(l=0|dd(0|f,0,56),j=0|i|G()|268435456,l|=a,F(0|j),S=k,0|l)},_getH3UnidirectionalEdgeBoundary:gc,_getH3UnidirectionalEdgesFromHexagon:function fc(a,c,d){d|=0;var f,e=0;f=0==(0|Fb(a|=0,c|=0)),c&=-2130706433,b[(e=d)>>2]=f?a:0,b[e+4>>2]=f?285212672|c:0,b[(e=d+8|0)>>2]=a,b[e+4>>2]=301989888|c,b[(e=d+16|0)>>2]=a,b[e+4>>2]=318767104|c,b[(e=d+24|0)>>2]=a,b[e+4>>2]=335544320|c,b[(e=d+32|0)>>2]=a,b[e+4>>2]=352321536|c,b[(d=d+40|0)>>2]=a,b[d+4>>2]=369098752|c},_getOriginH3IndexFromUnidirectionalEdge:function bc(a,b){var c;return a|=0,F(0|((c=!0&268435456==(2013265920&(b|=0)|0))?-2130706433&b|134217728:0)),0|(c?a:0)},_getPentagonIndexes:_b,_getRes0Indexes:function va(a){a|=0;var c=0,d=0,e=0;c=0;do{dd(0|c,0,45),e=134225919|G(),b[(d=a+(c<<3)|0)>>2]=-1,b[d+4>>2]=e,c=c+1|0}while(122!=(0|c))},_h3Distance:function qc(a,b,c,d){var e,f,g;return c|=0,d|=0,g=S,S=S+32|0,f=g,a=0==(0|mc(a|=0,b|=0,a,b,e=g+12|0))&&0==(0|mc(a,b,c,d,f))?0|Ta(e,f):-1,S=g,0|a},_h3GetBaseCell:Ab,_h3GetFaces:function Yb(a,c,d){d|=0;var m,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;m=S,S=S+128|0,k=m+112|0,g=m+96|0,l=m,f=0|cd(0|(a|=0),0|(c|=0),52),G(),i=15&f,b[k>>2]=i,h=0|cd(0|a,0|c,45),G(),h&=127;a:do{if(0|la(h)){if(0|i)for(e=1;;){if(!(0==((j=0|dd(7,0,3*(15-e|0)|0))&a|0)&0==((0|G())&c|0))){f=0;break a}if(!(e>>>0>>0))break;e=e+1|0}if(!(1&f))return j=0|dd(i+1|0,0,52),l=0|G()|-15728641&c,Yb((j|a)&~(k=0|dd(7,0,3*(14-i|0)|0)),l&~(0|G()),d),void(S=m);f=1}else f=0}while(0);Ub(a,c,g),f?(bb(g,k,l),j=5):(fb(g,k,l),j=6);b:do{if(0|la(h))if(i)for(e=1;;){if(!(0==((h=0|dd(7,0,3*(15-e|0)|0))&a|0)&0==((0|G())&c|0))){e=8;break b}if(!(e>>>0>>0)){e=20;break}e=e+1|0}else e=20;else e=8}while(0);if(hd(0|d,-1,0|e),f){f=0;do{for(db(g=l+(f<<4)|0,0|b[k>>2]),g=0|b[g>>2],e=0;!(-1==(0|(i=0|b[(h=d+(e<<2)|0)>>2]))|(0|i)==(0|g));)e=e+1|0;b[h>>2]=g,f=f+1|0}while((0|f)!=(0|j))}else{f=0;do{for(cb(g=l+(f<<4)|0,0|b[k>>2],0,1),g=0|b[g>>2],e=0;!(-1==(0|(i=0|b[(h=d+(e<<2)|0)>>2]))|(0|i)==(0|g));)e=e+1|0;b[h>>2]=g,f=f+1|0}while((0|f)!=(0|j))}S=m},_h3GetResolution:function zb(a,b){return b=0|cd(0|(a|=0),0|(b|=0),52),G(),15&b|0},_h3IndexesAreNeighbors:$b,_h3IsPentagon:Fb,_h3IsResClassIII:function Kb(a,b){return b=0|cd(0|(a|=0),0|(b|=0),52),G(),1&b|0},_h3IsValid:Bb,_h3Line:function sc(a,c,d,e,f){d|=0,e|=0,f|=0;var x,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;if(x=S,S=S+48|0,h=x+12|0,w=x,0==(0|mc(a|=0,c|=0,a,c,g=x+24|0))&&0==(0|mc(a,c,d,e,h))){if((0|(v=0|Ta(g,h)))<0)return S=x,0|(w=v);for(b[g>>2]=0,b[g+4>>2]=0,b[g+8>>2]=0,b[h>>2]=0,b[h+4>>2]=0,b[h+8>>2]=0,mc(a,c,a,c,g),mc(a,c,d,e,h),Wa(g),Wa(h),v?(o=+(0|v),u=g,d=l=0|b[g>>2],e=m=0|b[(s=g+4|0)>>2],g=n=0|b[(t=g+8|0)>>2],p=+((0|b[h>>2])-l|0)/o,r=+((0|b[h+4>>2])-m|0)/o,o=+((0|b[h+8>>2])-n|0)/o):(s=e=g+4|0,t=n=g+8|0,u=g,d=0|b[g>>2],e=0|b[e>>2],g=0|b[n>>2],p=0,r=0,o=0),b[w>>2]=d,b[(n=w+4|0)>>2]=e,b[(m=w+8|0)>>2]=g,l=0;;){y=p*(j=+(0|l))+ +(0|d),i=r*j+ +(0|b[s>>2]),j=o*j+ +(0|b[t>>2]),e=~~+fd(+y),h=~~+fd(+i),d=~~+fd(+j),y=+q(+(+(0|e)-y)),i=+q(+(+(0|h)-i)),j=+q(+(+(0|d)-j));do{if(!(y>i&y>j)){if(k=0-e|0,i>j){g=k-d|0;break}g=h,d=k-h|0;break}e=0-(h+d)|0,g=h}while(0);if(b[w>>2]=e,b[n>>2]=g,b[m>>2]=d,Xa(w),nc(a,c,w,f+(l<<3)|0),(0|l)==(0|v))break;l=l+1|0,d=0|b[u>>2]}return S=x,0|(w=0)}return S=x,0|(w=-1)},_h3LineSize:function rc(a,b,c,d){var e,f,g;return c|=0,d|=0,g=S,S=S+32|0,f=g,a=0==(0|mc(a|=0,b|=0,a,b,e=g+12|0))&&0==(0|mc(a,b,c,d,f))?0|Ta(e,f):-1,S=g,(a>>>31^1)+a|0},_h3SetToLinkedGeo:function ka(a,c,d){d|=0;var e,f,g,h=0;if(g=S,S=S+32|0,e=g,function ja(a,c,d){a|=0,d|=0;var j,k,e=0,f=0,g=0,h=0,i=0;if(k=S,S=S+176|0,j=k,(0|(c|=0))<1)return Mc(d,0,0),void(S=k);h=0|cd(0|b[(h=a)>>2],0|b[h+4>>2],52),G(),Mc(d,(0|c)>6?c:6,15&h),h=0;do{if(Wb(0|b[(e=a+(h<<3)|0)>>2],0|b[e+4>>2],j),(0|(e=0|b[j>>2]))>0){i=0;do{g=j+8+(i<<4)|0,(f=0|Rc(d,e=j+8+(((0|(i=i+1|0))%(0|e)|0)<<4)|0,g))?Pc(d,f):Qc(d,g,e),e=0|b[j>>2]}while((0|i)<(0|e))}h=h+1|0}while((0|h)!=(0|c));S=k}(a|=0,c|=0,f=g+16|0),b[d>>2]=0,b[d+4>>2]=0,b[d+8>>2]=0,!(a=0|Oc(f)))return kc(d),Nc(f),void(S=g);do{c=0|hc(d);do{ic(c,a),h=a+16|0,b[e>>2]=b[h>>2],b[e+4>>2]=b[h+4>>2],b[e+8>>2]=b[h+8>>2],b[e+12>>2]=b[h+12>>2],Pc(f,a),a=0|Sc(f,e)}while(0!=(0|a));a=0|Oc(f)}while(0!=(0|a));kc(d),Nc(f),S=g},_h3ToCenterChild:function Gb(a,b,c){c|=0;var d=0,e=0;if(d=0|cd(0|(a|=0),0|(b|=0),52),G(),(0|c)<16&(0|(d&=15))<=(0|c)){if((0|d)!=(0|c)&&(a|=e=0|dd(0|c,0,52),b=0|G()|-15728641&b,(0|d)<(0|c)))do{e=0|dd(7,0,3*(14-d|0)|0),d=d+1|0,a&=~e,b&=~(0|G())}while((0|d)<(0|c))}else b=0,a=0;return F(0|b),0|a},_h3ToChildren:Eb,_h3ToGeo:Vb,_h3ToGeoBoundary:Wb,_h3ToParent:Cb,_h3UnidirectionalEdgeIsValid:function dc(a,b){var c=0;if(!(!0&268435456==(2013265920&(b|=0)|0)))return 0|(c=0);switch(c=0|cd(0|(a|=0),0|b,56),G(),7&c){case 0:case 7:return 0|(c=0)}return!0&16777216==(117440512&b|0)&0!=(0|Fb(a,c=-2130706433&b|134217728))?0|(c=0):0|(c=0|Bb(a,c))},_hexAreaKm2:function nb(a){return+ +e[20496+((a|=0)<<3)>>3]},_hexAreaM2:function ob(a){return+ +e[20624+((a|=0)<<3)>>3]},_hexRing:function ea(a,c,d,e){a|=0,c|=0,e|=0;var m,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(m=S,S=S+16|0,l=m,!(d|=0))return b[(l=e)>>2]=a,b[l+4>>2]=c,S=m,0|(l=0);b[l>>2]=0;a:do{if(0|Fb(a,c))a=1;else{if(g=(0|d)>0){f=0,k=a;do{if(0==(0|(k=0|da(k,c,4,l)))&0==(0|(c=0|G()))){a=2;break a}if(f=f+1|0,0|Fb(k,c)){a=1;break a}}while((0|f)<(0|d));if(b[(j=e)>>2]=k,b[j+4>>2]=c,j=d+-1|0,g){g=0,h=1,f=k,a=c;do{if(0==(0|(f=0|da(f,a,2,l)))&0==(0|(a=0|G()))){a=2;break a}if(b[(i=e+(h<<3)|0)>>2]=f,b[i+4>>2]=a,h=h+1|0,0|Fb(f,a)){a=1;break a}g=g+1|0}while((0|g)<(0|d));i=0,g=h;do{if(0==(0|(f=0|da(f,a,3,l)))&0==(0|(a=0|G()))){a=2;break a}if(b[(h=e+(g<<3)|0)>>2]=f,b[h+4>>2]=a,g=g+1|0,0|Fb(f,a)){a=1;break a}i=i+1|0}while((0|i)<(0|d));h=0;do{if(0==(0|(f=0|da(f,a,1,l)))&0==(0|(a=0|G()))){a=2;break a}if(b[(i=e+(g<<3)|0)>>2]=f,b[i+4>>2]=a,g=g+1|0,0|Fb(f,a)){a=1;break a}h=h+1|0}while((0|h)<(0|d));h=0;do{if(0==(0|(f=0|da(f,a,5,l)))&0==(0|(a=0|G()))){a=2;break a}if(b[(i=e+(g<<3)|0)>>2]=f,b[i+4>>2]=a,g=g+1|0,0|Fb(f,a)){a=1;break a}h=h+1|0}while((0|h)<(0|d));h=0;do{if(0==(0|(f=0|da(f,a,4,l)))&0==(0|(a=0|G()))){a=2;break a}if(b[(i=e+(g<<3)|0)>>2]=f,b[i+4>>2]=a,g=g+1|0,0|Fb(f,a)){a=1;break a}h=h+1|0}while((0|h)<(0|d));for(h=0;;){if(0==(0|(f=0|da(f,a,6,l)))&0==(0|(a=0|G()))){a=2;break a}if((0|h)!=(0|j)){if(b[(i=e+(g<<3)|0)>>2]=f,b[i+4>>2]=a,0|Fb(f,a)){a=1;break a}g=g+1|0}if((0|(h=h+1|0))>=(0|d)){h=k,g=c;break}}}else h=k,f=k,g=c,a=c}else b[(h=e)>>2]=a,b[h+4>>2]=c,h=a,f=a,g=c,a=c;a=1&((0|h)!=(0|f)|(0|g)!=(0|a))}}while(0);return S=m,0|(l=a)},_i64Subtract:_c,_kRing:$,_kRingDistances:function aa(a,b,c,d,e){var f;if(0|ba(a|=0,b|=0,c|=0,d|=0,e|=0)){if(hd(0|d,0,(f=1+(0|B(3*c|0,c+1|0))|0)<<3|0),0|e)return hd(0|e,0,f<<2|0),void ca(a,b,c,d,e,f,0);(e=0|Yc(f,4))&&(ca(a,b,c,d,e,f,0),Xc(e))}},_llvm_minnum_f64:ed,_llvm_round_f64:fd,_malloc:Wc,_maxFaceCount:function Xb(a,b){var c=0,d=0;if(d=0|cd(0|(a|=0),0|(b|=0),45),G(),!(0|la(127&d)))return 0|(d=2);if(d=0|cd(0|a,0|b,52),G(),!(d&=15))return 0|(d=5);for(c=1;;){if(!(0==((0|dd(7,0,3*(15-c|0)|0))&a|0)&0==((0|G())&b|0))){c=2,a=6;break}if(!(c>>>0>>0)){c=5,a=6;break}c=c+1|0}return 6==(0|a)?0|c:0},_maxH3ToChildrenSize:function Db(a,b,c){return c|=0,a=0|cd(0|(a|=0),0|(b|=0),52),G(),(0|c)<16&(0|(a&=15))<=(0|c)?0|(c=0|tc(7,c-a|0)):0|(c=0)},_maxKringSize:function _(a){return 1+(0|B(3*(a|=0)|0,a+1|0))|0},_maxPolyfillSize:function fa(a,c){c|=0;var g,d=0,e=0,f=0,h=0,i=0;if(g=S,S=S+48|0,f=g+8|0,e=g,h=0|b[(i=a|=0)+4>>2],b[(d=e)>>2]=b[i>>2],b[d+4>>2]=h,vc(e,f),f=0|ya(f,c),c=0|b[e>>2],(0|(e=0|b[a+8>>2]))<=0)return S=g,0|(i=(i=(h=(0|f)<(0|(i=c)))?i:f)+12|0);d=0|b[a+12>>2],a=0;do{c=(0|b[d+(a<<3)>>2])+c|0,a=a+1|0}while((0|a)<(0|e));return S=g,0|(i=(i=(i=(0|f)<(0|c))?c:f)+12|0)},_maxUncompactSize:function Jb(a,c,d){a|=0,d|=0;var e=0,f=0,g=0,h=0;if((0|(c|=0))<=0)return 0|(d=0);if((0|d)>=16){for(e=0;;){if(!(0==(0|b[(h=a+(e<<3)|0)>>2])&0==(0|b[h+4>>2]))){e=-1,f=13;break}if((0|(e=e+1|0))>=(0|c)){e=0,f=13;break}}if(13==(0|f))return 0|e}e=0,h=0;a:for(;;){g=0|b[(f=a+(h<<3)|0)>>2],f=0|b[f+4>>2];do{if(!(0==(0|g)&0==(0|f))){if(f=0|cd(0|g,0|f,52),G(),(0|(f&=15))>(0|d)){e=-1,f=13;break a}if((0|f)==(0|d)){e=e+1|0;break}e=(0|tc(7,d-f|0))+e|0;break}}while(0);if((0|(h=h+1|0))>=(0|c)){f=13;break}}return 13==(0|f)?0|e:0},_memcpy:gd,_memset:hd,_numHexagons:function rb(a){var c;return a=0|b[(c=21008+((a|=0)<<3)|0)>>2],F(0|b[c+4>>2]),0|a},_pentagonIndexCount:function Zb(){return 12},_pointDistKm:jb,_pointDistM:function kb(a,b){a|=0;var d,f,g,c=0;return f=+e[(b|=0)>>3],d=+e[a>>3],c=(g=+u(.5*(f-d)))*g+(c=+u(.5*(+e[b+8>>3]-+e[a+8>>3])))*(+t(+f)*+t(+d)*c),2*+z(+ +r(+c),+ +r(+(1-c)))*6371.007180918475*1e3},_pointDistRads:function ib(a,b){a|=0;var d,f,g,c=0;return f=+e[(b|=0)>>3],d=+e[a>>3],c=(g=+u(.5*(f-d)))*g+(c=+u(.5*(+e[b+8>>3]-+e[a+8>>3])))*(+t(+f)*+t(+d)*c),2*+z(+ +r(+c),+ +r(+(1-c)))},_polyfill:function ga(a,c,d){var i,e=0,f=0,g=0,h=0,j=0;if(i=S,S=S+48|0,e=i+8|0,f=i,0|function ha(a,c,d){a|=0,c|=0,d|=0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,I=0,J=0;J=S,S=S+112|0,D=J+80|0,j=J+72|0,E=J,F=J+56|0,k=a+8|0,I=0|Wc(32+(b[k>>2]<<5)|0),I||H(22848,22448,800,22456);if(wc(a,I),g=a,e=0|b[g+4>>2],i=j,b[i>>2]=b[g>>2],b[i+4>>2]=e,vc(j,D),i=0|ya(D,c),e=0|b[j>>2],g=0|b[k>>2],(0|g)>0){h=0|b[a+12>>2],f=0;do{e=(0|b[h+(f<<3)>>2])+e|0,f=f+1|0}while((0|f)!=(0|g))}if(i=(0|i)<(0|e)?e:i,C=i+12|0,f=0|Yc(C,8),l=0|Yc(C,8),b[D>>2]=0,A=a,B=0|b[A+4>>2],e=j,b[e>>2]=b[A>>2],b[e+4>>2]=B,e=0|ia(j,C,c,D,f,l),0|e)return Xc(f),Xc(l),Xc(I),S=J,0|(I=e);a:do{if((0|b[k>>2])>0){for(g=a+12|0,e=0;h=0|ia((0|b[g>>2])+(e<<3)|0,C,c,D,f,l),e=e+1|0,!(0|h);)if((0|e)>=(0|b[k>>2]))break a;return Xc(f),Xc(l),Xc(I),S=J,0|(I=h)}}while(0);(0|i)>-12&&hd(0|l,0,((0|C)>1?C:1)<<3|0);b:do{if((0|b[D>>2])>0){B=((0|C)<0)<<31>>31,v=f,w=l,x=f,y=f,z=l,A=f,e=f,r=f,s=l,t=l,u=l,f=l;c:for(;;){for(q=0|b[D>>2],o=0,p=0,g=0;;){i=(h=E)+56|0;do{b[h>>2]=0,h=h+4|0}while((0|h)<(0|i));if(0|ba(j=0|b[(c=v+(o<<3)|0)>>2],c=0|b[c+4>>2],1,E,0)){i=(h=E)+56|0;do{b[h>>2]=0,h=h+4|0}while((0|h)<(0|i));0|(h=0|Yc(7,4))&&(ca(j,c,1,E,h,7,0),Xc(h))}n=0;do{l=0|b[(m=E+(n<<3)|0)>>2],m=0|b[m+4>>2];d:do{if(!(0==(0|l)&0==(0|m))){if(j=0|bd(0|l,0|m,0|C,0|B),G(),!(0==(0|(c=0|b[(i=h=d+(j<<3)|0)>>2]))&0==(0|(i=0|b[i+4>>2]))))for(k=0;;){if((0|k)>(0|C))break c;if((0|c)==(0|l)&(0|i)==(0|m))break d;if(0==(0|(c=0|b[(i=h=d+((j=(j+1|0)%(0|C)|0)<<3)|0)>>2]))&0==(0|(i=0|b[i+4>>2])))break;k=k+1|0}0==(0|l)&0==(0|m)||(Vb(l,m,F),0|xc(a,I,F)&&(b[(k=h)>>2]=l,b[k+4>>2]=m,b[(k=w+(g<<3)|0)>>2]=l,b[k+4>>2]=m,g=g+1|0))}}while(0);n=n+1|0}while(n>>>0<7);if((0|(p=p+1|0))>=(0|q))break;o=o+1|0}if((0|q)>0&&hd(0|x,0,q<<3|0),b[D>>2]=g,!((0|g)>0))break b;l=f,m=u,n=A,o=t,p=s,q=w,f=r,u=e,t=y,s=x,r=l,e=m,A=z,z=n,y=o,x=p,w=v,v=q}return Xc(y),Xc(z),Xc(I),S=J,0|(I=-1)}e=l}while(0);return Xc(I),Xc(f),Xc(e),I=0,S=J,0|I}(a|=0,c|=0,d|=0)){if(g=0|b[(j=a)+4>>2],b[(h=f)>>2]=b[j>>2],b[h+4>>2]=g,vc(f,e),h=0|ya(e,c),c=0|b[f>>2],(0|(g=0|b[a+8>>2]))>0){f=0|b[a+12>>2],e=0;do{c=(0|b[f+(e<<3)>>2])+c|0,e=e+1|0}while((0|e)!=(0|g))}(0|(c=(0|h)<(0|c)?c:h))<=-12||hd(0|d,0,8+(((0|(j=c+11|0))>0?j:0)<<3)|0),S=i}else S=i},_res0IndexCount:function ua(){return 122},_round:id,_sbrk:jd,_sizeOfCoordIJ:function Ec(){return 8},_sizeOfGeoBoundary:function Ac(){return 168},_sizeOfGeoCoord:function zc(){return 16},_sizeOfGeoPolygon:function Cc(){return 16},_sizeOfGeofence:function Bc(){return 8},_sizeOfH3Index:function yc(){return 8},_sizeOfLinkedGeoPolygon:function Dc(){return 12},_uncompact:function Ib(a,c,d,e,f){a|=0,d|=0,e|=0,f|=0;var g=0,h=0,i=0,j=0,k=0,l=0;if((0|(c|=0))<=0)return 0|(f=0);if((0|f)>=16){for(g=0;;){if(!(0==(0|b[(l=a+(g<<3)|0)>>2])&0==(0|b[l+4>>2]))){g=14;break}if((0|(g=g+1|0))>=(0|c)){h=0,g=16;break}}if(14==(0|g))return 0|((0|e)>0?-2:-1);if(16==(0|g))return 0|h}g=0,l=0;a:for(;;){h=0|b[(i=k=a+(l<<3)|0)>>2],i=0|b[i+4>>2];do{if(!(0==(0|h)&0==(0|i))){if((0|g)>=(0|e)){h=-1,g=16;break a}if(j=0|cd(0|h,0|i,52),G(),(0|(j&=15))>(0|f)){h=-2,g=16;break a}if((0|j)==(0|f)){b[(k=d+(g<<3)|0)>>2]=h,b[k+4>>2]=i,g=g+1|0;break}if((0|(h=(0|tc(7,f-j|0))+g|0))>(0|e)){h=-1,g=16;break a}Eb(0|b[k>>2],0|b[k+4>>2],f,d+(g<<3)|0),g=h}}while(0);if((0|(l=l+1|0))>=(0|c)){h=0,g=16;break}}return 16==(0|g)?0|h:0},establishStackSpace:function Z(a,b){S=a|=0},stackAlloc:function W(a){var b;return b=S,S=(S=S+(a|=0)|0)+15&-16,0|b},stackRestore:function Y(a){S=a|=0},stackSave:function X(){return 0|S}}}({Math:Math,Int8Array:Int8Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Float32Array:Float32Array,Float64Array:Float64Array},{a:abort,b:function(value){tempRet0=value},c:getTempRet0,d:function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"])},e:function ___setErrNo(value){return Module.___errno_location&&(HEAP32[Module.___errno_location()>>2]=value),value},f:_emscripten_get_heap_size,g:function _emscripten_memcpy_big(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest)},h:function _emscripten_resize_heap(requestedSize){var oldSize=_emscripten_get_heap_size();if(requestedSize>2130706432)return!1;for(var newSize=Math.max(oldSize,16777216);newSize>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=1?tempDouble>0?(0|Math_min(+Math_floor(tempDouble/4294967296),4294967295))>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}},Module.getValue=function getValue(ptr,type,noSafe){switch("*"===(type=type||"i8").charAt(type.length-1)&&(type="i32"),type){case"i1":case"i8":return HEAP8[ptr>>0];case"i16":return HEAP16[ptr>>1];case"i32":case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return HEAPF64[ptr>>3];default:abort("invalid type for getValue: "+type)}return null},Module.getTempRet0=getTempRet0,memoryInitializer){isDataURI(memoryInitializer)||(memoryInitializer=function locateFile(path){return Module.locateFile?Module.locateFile(path,scriptDirectory):scriptDirectory+path}(memoryInitializer)),function addRunDependency(id){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}();var applyMemoryInitializer=function(data){data.byteLength&&(data=new Uint8Array(data)),HEAPU8.set(data,8),Module.memoryInitializerRequest&&delete Module.memoryInitializerRequest.response,function removeRunDependency(id){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var callback=dependenciesFulfilled;dependenciesFulfilled=null,callback()}}()},doBrowserLoad=function(){readAsync(memoryInitializer,applyMemoryInitializer,(function(){throw"could not load memory initializer "+memoryInitializer}))},memoryInitializerBytes=tryParseAsDataURI(memoryInitializer);if(memoryInitializerBytes)applyMemoryInitializer(memoryInitializerBytes.buffer);else if(Module.memoryInitializerRequest){var useRequest=function(){var request=Module.memoryInitializerRequest,response=request.response;if(200!==request.status&&0!==request.status){var data=tryParseAsDataURI(Module.memoryInitializerRequestURL);if(!data)return console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+request.status+", retrying "+memoryInitializer),void doBrowserLoad();response=data.buffer}applyMemoryInitializer(response)};Module.memoryInitializerRequest.response?setTimeout(useRequest,0):Module.memoryInitializerRequest.addEventListener("load",useRequest)}else doBrowserLoad()}function run(args){function doRun(){calledRun||(calledRun=!0,ABORT||(!function initRuntime(){callRuntimeCallbacks(__ATINIT__)}(),function preMain(){callRuntimeCallbacks(__ATMAIN__)}(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)cb=Module.postRun.shift(),__ATPOSTRUN__.unshift(cb);var cb;callRuntimeCallbacks(__ATPOSTRUN__)}()))}args=args||arguments_,runDependencies>0||(!function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)cb=Module.preRun.shift(),__ATPRERUN__.unshift(cb);var cb;callRuntimeCallbacks(__ATPRERUN__)}(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),doRun()}),1)):doRun()))}function abort(what){throw Module.onAbort&&Module.onAbort(what),out(what+=""),err(what),ABORT=!0,"abort("+what+"). Build with -s ASSERTIONS=1 for more info."}if(dependenciesFulfilled=function runCaller(){calledRun||run(),calledRun||(dependenciesFulfilled=runCaller)},Module.run=run,Module.abort=abort,Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();return run(),libh3}("object"==typeof libh3?libh3:{}),NUMBER="number",H3={};[["sizeOfH3Index",NUMBER],["sizeOfGeoCoord",NUMBER],["sizeOfGeoBoundary",NUMBER],["sizeOfGeoPolygon",NUMBER],["sizeOfGeofence",NUMBER],["sizeOfLinkedGeoPolygon",NUMBER],["sizeOfCoordIJ",NUMBER],["h3IsValid",NUMBER,[NUMBER,NUMBER]],["geoToH3",NUMBER,[NUMBER,NUMBER,NUMBER]],["h3ToGeo",null,[NUMBER,NUMBER,NUMBER]],["h3ToGeoBoundary",null,[NUMBER,NUMBER,NUMBER]],["maxKringSize",NUMBER,[NUMBER]],["kRing",null,[NUMBER,NUMBER,NUMBER,NUMBER]],["kRingDistances",null,[NUMBER,NUMBER,NUMBER,NUMBER,NUMBER]],["hexRing",null,[NUMBER,NUMBER,NUMBER,NUMBER]],["maxPolyfillSize",NUMBER,[NUMBER,NUMBER]],["polyfill",null,[NUMBER,NUMBER,NUMBER]],["h3SetToLinkedGeo",null,[NUMBER,NUMBER,NUMBER]],["destroyLinkedPolygon",null,[NUMBER]],["compact",NUMBER,[NUMBER,NUMBER,NUMBER]],["uncompact",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER,NUMBER]],["maxUncompactSize",NUMBER,[NUMBER,NUMBER,NUMBER]],["h3IsPentagon",NUMBER,[NUMBER,NUMBER]],["h3IsResClassIII",NUMBER,[NUMBER,NUMBER]],["h3GetBaseCell",NUMBER,[NUMBER,NUMBER]],["h3GetResolution",NUMBER,[NUMBER,NUMBER]],["maxFaceCount",NUMBER,[NUMBER,NUMBER]],["h3GetFaces",null,[NUMBER,NUMBER,NUMBER]],["h3ToParent",NUMBER,[NUMBER,NUMBER,NUMBER]],["h3ToChildren",null,[NUMBER,NUMBER,NUMBER,NUMBER]],["h3ToCenterChild",NUMBER,[NUMBER,NUMBER,NUMBER]],["maxH3ToChildrenSize",NUMBER,[NUMBER,NUMBER,NUMBER]],["h3IndexesAreNeighbors",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER]],["getH3UnidirectionalEdge",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER]],["getOriginH3IndexFromUnidirectionalEdge",NUMBER,[NUMBER,NUMBER]],["getDestinationH3IndexFromUnidirectionalEdge",NUMBER,[NUMBER,NUMBER]],["h3UnidirectionalEdgeIsValid",NUMBER,[NUMBER,NUMBER]],["getH3IndexesFromUnidirectionalEdge",null,[NUMBER,NUMBER,NUMBER]],["getH3UnidirectionalEdgesFromHexagon",null,[NUMBER,NUMBER,NUMBER]],["getH3UnidirectionalEdgeBoundary",null,[NUMBER,NUMBER,NUMBER]],["h3Distance",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER]],["h3Line",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER,NUMBER]],["h3LineSize",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER]],["experimentalH3ToLocalIj",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER,NUMBER]],["experimentalLocalIjToH3",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER]],["hexAreaM2",NUMBER,[NUMBER]],["hexAreaKm2",NUMBER,[NUMBER]],["edgeLengthM",NUMBER,[NUMBER]],["edgeLengthKm",NUMBER,[NUMBER]],["pointDistM",NUMBER,[NUMBER,NUMBER]],["pointDistKm",NUMBER,[NUMBER,NUMBER]],["pointDistRads",NUMBER,[NUMBER,NUMBER]],["cellAreaM2",NUMBER,[NUMBER,NUMBER]],["cellAreaKm2",NUMBER,[NUMBER,NUMBER]],["cellAreaRads2",NUMBER,[NUMBER,NUMBER]],["exactEdgeLengthM",NUMBER,[NUMBER,NUMBER]],["exactEdgeLengthKm",NUMBER,[NUMBER,NUMBER]],["exactEdgeLengthRads",NUMBER,[NUMBER,NUMBER]],["numHexagons",NUMBER,[NUMBER]],["getRes0Indexes",null,[NUMBER]],["res0IndexCount",NUMBER],["getPentagonIndexes",null,[NUMBER,NUMBER]],["pentagonIndexCount",NUMBER]].forEach((function bind(def){H3[def[0]]=libh3.cwrap.apply(libh3,def)}));var BASE_16=16,SZ_INT=4,SZ_PTR=4,SZ_DBL=8,SZ_H3INDEX=H3.sizeOfH3Index(),SZ_GEOCOORD=H3.sizeOfGeoCoord(),SZ_GEOBOUNDARY=H3.sizeOfGeoBoundary(),SZ_GEOPOLYGON=H3.sizeOfGeoPolygon(),SZ_GEOFENCE=H3.sizeOfGeofence(),SZ_LINKED_GEOPOLYGON=H3.sizeOfLinkedGeoPolygon(),SZ_COORDIJ=H3.sizeOfCoordIJ(),UNITS={m:"m",m2:"m2",km:"km",km2:"km2",rads:"rads",rads2:"rads2"};function validateRes(res){if("number"!=typeof res||res<0||res>15||Math.floor(res)!==res)throw new Error("Invalid resolution: "+res)}var INVALID_HEXIDECIMAL_CHAR=/[^0-9a-fA-F]/;function h3IndexToSplitLong(h3Index){if(Array.isArray(h3Index)&&2===h3Index.length&&Number.isInteger(h3Index[0])&&Number.isInteger(h3Index[1]))return h3Index;if("string"!=typeof h3Index||INVALID_HEXIDECIMAL_CHAR.test(h3Index))return[0,0];var upper=parseInt(h3Index.substring(0,h3Index.length-8),BASE_16);return[parseInt(h3Index.substring(h3Index.length-8),BASE_16),upper]}function hexFrom32Bit(num){if(num>=0)return num.toString(BASE_16);var tempStr=zeroPad(8,(num&=2147483647).toString(BASE_16));return tempStr=(parseInt(tempStr[0],BASE_16)+8).toString(BASE_16)+tempStr.substring(1)}function splitLongToh3Index(lower,upper){return hexFrom32Bit(upper)+zeroPad(8,hexFrom32Bit(lower))}function zeroPad(fullLen,numStr){for(var numZeroes=fullLen-numStr.length,outStr="",i=0;i=0&&out.push(int)}return out}(faces,count);return libh3._free(faces),out}function h3GetResolution(h3Index){var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1];return H3.h3IsValid(lower,upper)?H3.h3GetResolution(lower,upper):-1}function geoToH3(lat,lng,res){var latlng=libh3._malloc(SZ_GEOCOORD);libh3.HEAPF64.set([lat,lng].map(degsToRads),latlng/SZ_DBL);var h3Index=readH3Index(H3.geoToH3(latlng,res));return libh3._free(latlng),h3Index}function h3ToGeo(h3Index){var latlng=libh3._malloc(SZ_GEOCOORD),ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1];H3.h3ToGeo(lower,upper,latlng);var out=readGeoCoord(latlng);return libh3._free(latlng),out}function h3ToGeoBoundary(h3Index,formatAsGeoJson){var geoBoundary=libh3._malloc(SZ_GEOBOUNDARY),ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1];H3.h3ToGeoBoundary(lower,upper,geoBoundary);var out=readGeoBoundary(geoBoundary,formatAsGeoJson,formatAsGeoJson);return libh3._free(geoBoundary),out}function h3ToParent(h3Index,res){var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1];return readH3Index(H3.h3ToParent(lower,upper,res))}function h3ToChildren(h3Index,res){if(!h3IsValid(h3Index))return[];var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1],maxCount=H3.maxH3ToChildrenSize(lower,upper,res),hexagons=libh3._calloc(maxCount,SZ_H3INDEX);H3.h3ToChildren(lower,upper,res,hexagons);var out=readArrayOfHexagons(hexagons,maxCount);return libh3._free(hexagons),out}function h3ToCenterChild(h3Index,res){var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1];return readH3Index(H3.h3ToCenterChild(lower,upper,res))}function kRing(h3Index,ringSize){var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1],maxCount=H3.maxKringSize(ringSize),hexagons=libh3._calloc(maxCount,SZ_H3INDEX);H3.kRing(lower,upper,ringSize,hexagons);var out=readArrayOfHexagons(hexagons,maxCount);return libh3._free(hexagons),out}function kRingDistances(h3Index,ringSize){var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1],maxCount=H3.maxKringSize(ringSize),kRings=libh3._calloc(maxCount,SZ_H3INDEX),distances=libh3._calloc(maxCount,SZ_INT);H3.kRingDistances(lower,upper,ringSize,kRings,distances);for(var out=[],i=0;i0){holes=libh3._calloc(numHoles,SZ_GEOFENCE);for(var i=0;i0){for(var holes=libh3.getValue(geoPolygon+holesOffset,"i32"),i=0;i>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)return m?NaN:1/0*(s?-1:1);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=8*nBytes-mLen-1,eMax=(1<>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||0===value&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),(value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias))*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e+=eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<0;buffer[offset+i]=255&e,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=128*s}},"./node_modules/javascript-natural-sort/naturalSort.js":function(module){module.exports=function naturalSort(a,b){"use strict";var oFxNcL,oFyNcL,re=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,sre=/(^[ ]*|[ ]*$)/g,dre=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,hre=/^0x[0-9a-f]+$/i,ore=/^0/,i=function(s){return naturalSort.insensitive&&(""+s).toLowerCase()||""+s},x=i(a).replace(sre,"")||"",y=i(b).replace(sre,"")||"",xN=x.replace(re,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),yN=y.replace(re,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),xD=parseInt(x.match(hre),16)||1!==xN.length&&x.match(dre)&&Date.parse(x),yD=parseInt(y.match(hre),16)||xD&&y.match(dre)&&Date.parse(y)||null;if(yD){if(xDyD)return 1}for(var cLoc=0,numS=Math.max(xN.length,yN.length);cLocoFyNcL)return 1}return 0}},"./node_modules/jsep/build/jsep.js":function(module,exports){!function(root){"use strict";var throwError=function(message,index){var error=new Error(message+" at character "+index);throw error.index=index,error.description=message,error},t=!0,unary_ops={"-":t,"!":t,"~":t,"+":t},binary_ops={"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},getMaxKeyLen=function(obj){var len,max_len=0;for(var key in obj)(len=key.length)>max_len&&obj.hasOwnProperty(key)&&(max_len=len);return max_len},max_unop_len=getMaxKeyLen(unary_ops),max_binop_len=getMaxKeyLen(binary_ops),literals={true:!0,false:!1,null:null},binaryPrecedence=function(op_val){return binary_ops[op_val]||0},createBinaryExpression=function(operator,left,right){return{type:"||"===operator||"&&"===operator?"LogicalExpression":"BinaryExpression",operator:operator,left:left,right:right}},isDecimalDigit=function(ch){return ch>=48&&ch<=57},isIdentifierStart=function(ch){return 36===ch||95===ch||ch>=65&&ch<=90||ch>=97&&ch<=122||ch>=128&&!binary_ops[String.fromCharCode(ch)]},isIdentifierPart=function(ch){return 36===ch||95===ch||ch>=65&&ch<=90||ch>=97&&ch<=122||ch>=48&&ch<=57||ch>=128&&!binary_ops[String.fromCharCode(ch)]},jsep=function(expr){for(var ch_i,node,index=0,charAtFunc=expr.charAt,charCodeAtFunc=expr.charCodeAt,exprI=function(i){return charAtFunc.call(expr,i)},exprICode=function(i){return charCodeAtFunc.call(expr,i)},length=expr.length,gobbleSpaces=function(){for(var ch=exprICode(index);32===ch||9===ch||10===ch||13===ch;)ch=exprICode(++index)},gobbleExpression=function(){var consequent,alternate,test=gobbleBinaryExpression();return gobbleSpaces(),63!==exprICode(index)?test:(index++,(consequent=gobbleExpression())||throwError("Expected expression",index),gobbleSpaces(),58===exprICode(index)?(index++,(alternate=gobbleExpression())||throwError("Expected expression",index),{type:"ConditionalExpression",test:test,consequent:consequent,alternate:alternate}):void throwError("Expected :",index))},gobbleBinaryOp=function(){gobbleSpaces();for(var to_check=expr.substr(index,max_binop_len),tc_len=to_check.length;tc_len>0;){if(binary_ops.hasOwnProperty(to_check)&&(!isIdentifierStart(exprICode(index))||index+to_check.length2&&prec<=stack[stack.length-2].prec;)right=stack.pop(),biop=stack.pop().value,left=stack.pop(),node=createBinaryExpression(biop,left,right),stack.push(node);(node=gobbleToken())||throwError("Expected expression after "+cur_biop,index),stack.push(biop_info,node)}for(node=stack[i=stack.length-1];i>1;)node=createBinaryExpression(stack[i-1].value,stack[i-2],node),i-=2;return node},gobbleToken=function(){var ch,to_check,tc_len;if(gobbleSpaces(),ch=exprICode(index),isDecimalDigit(ch)||46===ch)return gobbleNumericLiteral();if(39===ch||34===ch)return gobbleStringLiteral();if(91===ch)return gobbleArray();for(tc_len=(to_check=expr.substr(index,max_unop_len)).length;tc_len>0;){if(unary_ops.hasOwnProperty(to_check)&&(!isIdentifierStart(exprICode(index))||index+to_check.length=args.length&&throwError("Unexpected token "+String.fromCharCode(termination),index);break}if(44===ch_i){if(index++,++separator_count!==args.length)if(41===termination)throwError("Unexpected token ,",index);else if(93===termination)for(var arg=args.length;arg=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var result=wait-(time-lastCallTime);return maxing?nativeMin(result,maxWait-(time-lastInvokeTime)):result}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(now())},debounced}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function toNumber(value){if("number"==typeof value)return value;if(function isSymbol(value){return"symbol"==typeof value||function isObjectLike(value){return!!value&&"object"==typeof value}(value)&&objectToString.call(value)==symbolTag}(value))return NAN;if(isObject(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=value.replace(reTrim,"");var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}module.exports=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})}},"./node_modules/long/dist/long.js":function(module,exports){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function(){"use strict";function Long(low,high,unsigned){this.low=0|low,this.high=0|high,this.unsigned=!!unsigned}function isLong(obj){return!0===(obj&&obj.__isLong__)}Long.prototype.__isLong__,Object.defineProperty(Long.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),Long.isLong=isLong;var INT_CACHE={},UINT_CACHE={};function fromInt(value,unsigned){var obj,cachedObj,cache;return unsigned?(cache=0<=(value>>>=0)&&value<256)&&(cachedObj=UINT_CACHE[value])?cachedObj:(obj=fromBits(value,(0|value)<0?-1:0,!0),cache&&(UINT_CACHE[value]=obj),obj):(cache=-128<=(value|=0)&&value<128)&&(cachedObj=INT_CACHE[value])?cachedObj:(obj=fromBits(value,value<0?-1:0,!1),cache&&(INT_CACHE[value]=obj),obj)}function fromNumber(value,unsigned){if(isNaN(value)||!isFinite(value))return unsigned?UZERO:ZERO;if(unsigned){if(value<0)return UZERO;if(value>=TWO_PWR_64_DBL)return MAX_UNSIGNED_VALUE}else{if(value<=-TWO_PWR_63_DBL)return MIN_VALUE;if(value+1>=TWO_PWR_63_DBL)return MAX_VALUE}return value<0?fromNumber(-value,unsigned).neg():fromBits(value%TWO_PWR_32_DBL|0,value/TWO_PWR_32_DBL|0,unsigned)}function fromBits(lowBits,highBits,unsigned){return new Long(lowBits,highBits,unsigned)}Long.fromInt=fromInt,Long.fromNumber=fromNumber,Long.fromBits=fromBits;var pow_dbl=Math.pow;function fromString(str,unsigned,radix){if(0===str.length)throw Error("empty string");if("NaN"===str||"Infinity"===str||"+Infinity"===str||"-Infinity"===str)return ZERO;if("number"==typeof unsigned?(radix=unsigned,unsigned=!1):unsigned=!!unsigned,(radix=radix||10)<2||360)throw Error("interior hyphen");if(0===p)return fromString(str.substring(1),unsigned,radix).neg();for(var radixToPower=fromNumber(pow_dbl(radix,8)),result=ZERO,i=0;i>>0:this.low},LongPrototype.toNumber=function toNumber(){return this.unsigned?(this.high>>>0)*TWO_PWR_32_DBL+(this.low>>>0):this.high*TWO_PWR_32_DBL+(this.low>>>0)},LongPrototype.toString=function toString(radix){if((radix=radix||10)<2||36>>0).toString(radix);if((rem=remDiv).isZero())return digits+result;for(;digits.length<6;)digits="0"+digits;result=""+digits+result}},LongPrototype.getHighBits=function getHighBits(){return this.high},LongPrototype.getHighBitsUnsigned=function getHighBitsUnsigned(){return this.high>>>0},LongPrototype.getLowBits=function getLowBits(){return this.low},LongPrototype.getLowBitsUnsigned=function getLowBitsUnsigned(){return this.low>>>0},LongPrototype.getNumBitsAbs=function getNumBitsAbs(){if(this.isNegative())return this.eq(MIN_VALUE)?64:this.neg().getNumBitsAbs();for(var val=0!=this.high?this.high:this.low,bit=31;bit>0&&0==(val&1<=0},LongPrototype.isOdd=function isOdd(){return 1==(1&this.low)},LongPrototype.isEven=function isEven(){return 0==(1&this.low)},LongPrototype.equals=function equals(other){return isLong(other)||(other=fromValue(other)),(this.unsigned===other.unsigned||this.high>>>31!=1||other.high>>>31!=1)&&this.high===other.high&&this.low===other.low},LongPrototype.eq=LongPrototype.equals,LongPrototype.notEquals=function notEquals(other){return!this.eq(other)},LongPrototype.neq=LongPrototype.notEquals,LongPrototype.lessThan=function lessThan(other){return this.comp(other)<0},LongPrototype.lt=LongPrototype.lessThan,LongPrototype.lessThanOrEqual=function lessThanOrEqual(other){return this.comp(other)<=0},LongPrototype.lte=LongPrototype.lessThanOrEqual,LongPrototype.greaterThan=function greaterThan(other){return this.comp(other)>0},LongPrototype.gt=LongPrototype.greaterThan,LongPrototype.greaterThanOrEqual=function greaterThanOrEqual(other){return this.comp(other)>=0},LongPrototype.gte=LongPrototype.greaterThanOrEqual,LongPrototype.compare=function compare(other){if(isLong(other)||(other=fromValue(other)),this.eq(other))return 0;var thisNeg=this.isNegative(),otherNeg=other.isNegative();return thisNeg&&!otherNeg?-1:!thisNeg&&otherNeg?1:this.unsigned?other.high>>>0>this.high>>>0||other.high===this.high&&other.low>>>0>this.low>>>0?-1:1:this.sub(other).isNegative()?-1:1},LongPrototype.comp=LongPrototype.compare,LongPrototype.negate=function negate(){return!this.unsigned&&this.eq(MIN_VALUE)?MIN_VALUE:this.not().add(ONE)},LongPrototype.neg=LongPrototype.negate,LongPrototype.add=function add(addend){isLong(addend)||(addend=fromValue(addend));var a48=this.high>>>16,a32=65535&this.high,a16=this.low>>>16,a00=65535&this.low,b48=addend.high>>>16,b32=65535&addend.high,b16=addend.low>>>16,c48=0,c32=0,c16=0,c00=0;return c16+=(c00+=a00+(65535&addend.low))>>>16,c32+=(c16+=a16+b16)>>>16,c48+=(c32+=a32+b32)>>>16,c48+=a48+b48,fromBits((c16&=65535)<<16|(c00&=65535),(c48&=65535)<<16|(c32&=65535),this.unsigned)},LongPrototype.subtract=function subtract(subtrahend){return isLong(subtrahend)||(subtrahend=fromValue(subtrahend)),this.add(subtrahend.neg())},LongPrototype.sub=LongPrototype.subtract,LongPrototype.multiply=function multiply(multiplier){if(this.isZero())return ZERO;if(isLong(multiplier)||(multiplier=fromValue(multiplier)),multiplier.isZero())return ZERO;if(this.eq(MIN_VALUE))return multiplier.isOdd()?MIN_VALUE:ZERO;if(multiplier.eq(MIN_VALUE))return this.isOdd()?MIN_VALUE:ZERO;if(this.isNegative())return multiplier.isNegative()?this.neg().mul(multiplier.neg()):this.neg().mul(multiplier).neg();if(multiplier.isNegative())return this.mul(multiplier.neg()).neg();if(this.lt(TWO_PWR_24)&&multiplier.lt(TWO_PWR_24))return fromNumber(this.toNumber()*multiplier.toNumber(),this.unsigned);var a48=this.high>>>16,a32=65535&this.high,a16=this.low>>>16,a00=65535&this.low,b48=multiplier.high>>>16,b32=65535&multiplier.high,b16=multiplier.low>>>16,b00=65535&multiplier.low,c48=0,c32=0,c16=0,c00=0;return c16+=(c00+=a00*b00)>>>16,c32+=(c16+=a16*b00)>>>16,c16&=65535,c32+=(c16+=a00*b16)>>>16,c48+=(c32+=a32*b00)>>>16,c32&=65535,c48+=(c32+=a16*b16)>>>16,c32&=65535,c48+=(c32+=a00*b32)>>>16,c48+=a48*b00+a32*b16+a16*b32+a00*b48,fromBits((c16&=65535)<<16|(c00&=65535),(c48&=65535)<<16|(c32&=65535),this.unsigned)},LongPrototype.mul=LongPrototype.multiply,LongPrototype.divide=function divide(divisor){if(isLong(divisor)||(divisor=fromValue(divisor)),divisor.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?UZERO:ZERO;var approx,rem,res;if(this.unsigned){if(divisor.unsigned||(divisor=divisor.toUnsigned()),divisor.gt(this))return UZERO;if(divisor.gt(this.shru(1)))return UONE;res=UZERO}else{if(this.eq(MIN_VALUE))return divisor.eq(ONE)||divisor.eq(NEG_ONE)?MIN_VALUE:divisor.eq(MIN_VALUE)?ONE:(approx=this.shr(1).div(divisor).shl(1)).eq(ZERO)?divisor.isNegative()?ONE:NEG_ONE:(rem=this.sub(divisor.mul(approx)),res=approx.add(rem.div(divisor)));if(divisor.eq(MIN_VALUE))return this.unsigned?UZERO:ZERO;if(this.isNegative())return divisor.isNegative()?this.neg().div(divisor.neg()):this.neg().div(divisor).neg();if(divisor.isNegative())return this.div(divisor.neg()).neg();res=ZERO}for(rem=this;rem.gte(divisor);){approx=Math.max(1,Math.floor(rem.toNumber()/divisor.toNumber()));for(var log2=Math.ceil(Math.log(approx)/Math.LN2),delta=log2<=48?1:pow_dbl(2,log2-48),approxRes=fromNumber(approx),approxRem=approxRes.mul(divisor);approxRem.isNegative()||approxRem.gt(rem);)approxRem=(approxRes=fromNumber(approx-=delta,this.unsigned)).mul(divisor);approxRes.isZero()&&(approxRes=ONE),res=res.add(approxRes),rem=rem.sub(approxRem)}return res},LongPrototype.div=LongPrototype.divide,LongPrototype.modulo=function modulo(divisor){return isLong(divisor)||(divisor=fromValue(divisor)),this.sub(this.div(divisor).mul(divisor))},LongPrototype.mod=LongPrototype.modulo,LongPrototype.not=function not(){return fromBits(~this.low,~this.high,this.unsigned)},LongPrototype.and=function and(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low&other.low,this.high&other.high,this.unsigned)},LongPrototype.or=function or(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low|other.low,this.high|other.high,this.unsigned)},LongPrototype.xor=function xor(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low^other.low,this.high^other.high,this.unsigned)},LongPrototype.shiftLeft=function shiftLeft(numBits){return isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63)?this:numBits<32?fromBits(this.low<>>32-numBits,this.unsigned):fromBits(0,this.low<>>numBits|this.high<<32-numBits,this.high>>numBits,this.unsigned):fromBits(this.high>>numBits-32,this.high>=0?0:-1,this.unsigned)},LongPrototype.shr=LongPrototype.shiftRight,LongPrototype.shiftRightUnsigned=function shiftRightUnsigned(numBits){if(isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63))return this;var high=this.high;return numBits<32?fromBits(this.low>>>numBits|high<<32-numBits,high>>>numBits,this.unsigned):fromBits(32===numBits?high:high>>>numBits-32,0,this.unsigned)},LongPrototype.shru=LongPrototype.shiftRightUnsigned,LongPrototype.toSigned=function toSigned(){return this.unsigned?fromBits(this.low,this.high,!1):this},LongPrototype.toUnsigned=function toUnsigned(){return this.unsigned?this:fromBits(this.low,this.high,!0)},LongPrototype.toBytes=function(le){return le?this.toBytesLE():this.toBytesBE()},LongPrototype.toBytesLE=function(){var hi=this.high,lo=this.low;return[255&lo,lo>>>8&255,lo>>>16&255,lo>>>24&255,255&hi,hi>>>8&255,hi>>>16&255,hi>>>24&255]},LongPrototype.toBytesBE=function(){var hi=this.high,lo=this.low;return[hi>>>24&255,hi>>>16&255,hi>>>8&255,255&hi,lo>>>24&255,lo>>>16&255,lo>>>8&255,255&lo]},Long})?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},"./node_modules/math.gl/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Euler:function(){return Euler},Matrix3:function(){return matrix3.Z},Matrix4:function(){return matrix4.Z},Pose:function(){return Pose},Quaternion:function(){return quaternion.Z},SphericalCoordinates:function(){return spherical_coordinates.Z},Vector2:function(){return vector2.Z},Vector3:function(){return vector3.Z},Vector4:function(){return vector4.Z},_Euler:function(){return Euler},_MathUtils:function(){return math_utils.Z},_Pose:function(){return Pose},_SphericalCoordinates:function(){return spherical_coordinates.Z},acos:function(){return common.Kh},asin:function(){return common.ZR},assert:function(){return assert.Z},atan:function(){return common.z4},clamp:function(){return common.uZ},clone:function(){return common.d9},config:function(){return common.vc},configure:function(){return common.jQ},cos:function(){return common.mC},degrees:function(){return common.RW},equals:function(){return common.fS},exactEquals:function(){return common.I6},formatValue:function(){return common.Bw},isArray:function(){return common.kJ},lerp:function(){return common.t7},radians:function(){return common.uR},sin:function(){return common.O$},tan:function(){return common.OR},toDegrees:function(){return common.Ux},toRadians:function(){return common.Yr},withEpsilon:function(){return common.BJ}});var vector2=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector2.js"),vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),vector4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector4.js"),matrix3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix3.js"),matrix4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),quaternion=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/quaternion.js"),spherical_coordinates=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/spherical-coordinates.js"),defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),math_array=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/math-array.js"),common=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),validators=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js");const ERR_UNKNOWN_ORDER="Unknown Euler angle order";var RotationOrder;!function(RotationOrder){RotationOrder[RotationOrder.ZYX=0]="ZYX",RotationOrder[RotationOrder.YXZ=1]="YXZ",RotationOrder[RotationOrder.XZY=2]="XZY",RotationOrder[RotationOrder.ZXY=3]="ZXY",RotationOrder[RotationOrder.YZX=4]="YZX",RotationOrder[RotationOrder.XYZ=5]="XYZ"}(RotationOrder||(RotationOrder={}));class Euler extends math_array.Z{static get ZYX(){return RotationOrder.ZYX}static get YXZ(){return RotationOrder.YXZ}static get XZY(){return RotationOrder.XZY}static get ZXY(){return RotationOrder.ZXY}static get YZX(){return RotationOrder.YZX}static get XYZ(){return RotationOrder.XYZ}static get RollPitchYaw(){return RotationOrder.ZYX}static get DefaultOrder(){return RotationOrder.ZYX}static get RotationOrders(){return RotationOrder}static rotationOrder(order){return RotationOrder[order]}get ELEMENTS(){return 4}constructor(x=0,y=0,z=0,order=Euler.DefaultOrder){super(-0,-0,-0,-0),arguments.length>0&&Array.isArray(arguments[0])?this.fromVector3(...arguments):this.set(x,y,z,order)}fromQuaternion(quaternion){const[x,y,z,w]=quaternion,ysqr=y*y,t0=-2*(ysqr+z*z)+1,t1=2*(x*y+w*z);let t2=-2*(x*z-w*y);const t3=2*(y*z+w*x),t4=-2*(x*x+ysqr)+1;t2=t2>1?1:t2,t2=t2<-1?-1:t2;const roll=Math.atan2(t3,t4),pitch=Math.asin(t2),yaw=Math.atan2(t1,t0);return this.set(roll,pitch,yaw,Euler.RollPitchYaw)}fromObject(object){throw new Error("not implemented")}copy(array){return this[0]=array[0],this[1]=array[1],this[2]=array[2],this[3]=Number.isFinite(array[3])||this.order,this.check()}set(x=0,y=0,z=0,order){return this[0]=x,this[1]=y,this[2]=z,this[3]=Number.isFinite(order)?order:this[3],this.check()}validate(){return function validateOrder(value){return value>=0&&value<6}(this[3])&&Number.isFinite(this[0])&&Number.isFinite(this[1])&&Number.isFinite(this[2])}toArray(array=[],offset=0){return array[offset]=this[0],array[offset+1]=this[1],array[offset+2]=this[2],array}toArray4(array=[],offset=0){return array[offset]=this[0],array[offset+1]=this[1],array[offset+2]=this[2],array[offset+3]=this[3],array}toVector3(result=[-0,-0,-0]){return result[0]=this[0],result[1]=this[1],result[2]=this[2],result}get x(){return this[0]}set x(value){this[0]=(0,validators.u5)(value)}get y(){return this[1]}set y(value){this[1]=(0,validators.u5)(value)}get z(){return this[2]}set z(value){this[2]=(0,validators.u5)(value)}get alpha(){return this[0]}set alpha(value){this[0]=(0,validators.u5)(value)}get beta(){return this[1]}set beta(value){this[1]=(0,validators.u5)(value)}get gamma(){return this[2]}set gamma(value){this[2]=(0,validators.u5)(value)}get phi(){return this[0]}set phi(value){this[0]=(0,validators.u5)(value)}get theta(){return this[1]}set theta(value){this[1]=(0,validators.u5)(value)}get psi(){return this[2]}set psi(value){this[2]=(0,validators.u5)(value)}get roll(){return this[0]}set roll(value){this[0]=(0,validators.u5)(value)}get pitch(){return this[1]}set pitch(value){this[1]=(0,validators.u5)(value)}get yaw(){return this[2]}set yaw(value){this[2]=(0,validators.u5)(value)}get order(){return this[3]}set order(value){this[3]=function checkOrder(value){if(value<0&&value>=6)throw new Error(ERR_UNKNOWN_ORDER);return value}(value)}fromVector3(v,order){return this.set(v[0],v[1],v[2],Number.isFinite(order)?order:this[3])}fromArray(array,offset=0){return this[0]=array[0+offset],this[1]=array[1+offset],this[2]=array[2+offset],void 0!==array[3]&&(this[3]=array[3]),this.check()}fromRollPitchYaw(roll,pitch,yaw){return this.set(roll,pitch,yaw,RotationOrder.ZYX)}fromRotationMatrix(m,order=Euler.DefaultOrder){return this._fromRotationMatrix(m,order),this.check()}getRotationMatrix(m){return this._getRotationMatrix(m)}getQuaternion(){const q=new quaternion.Z;switch(this[4]){case RotationOrder.XYZ:return q.rotateX(this[0]).rotateY(this[1]).rotateZ(this[2]);case RotationOrder.YXZ:return q.rotateY(this[0]).rotateX(this[1]).rotateZ(this[2]);case RotationOrder.ZXY:return q.rotateZ(this[0]).rotateX(this[1]).rotateY(this[2]);case RotationOrder.ZYX:return q.rotateZ(this[0]).rotateY(this[1]).rotateX(this[2]);case RotationOrder.YZX:return q.rotateY(this[0]).rotateZ(this[1]).rotateX(this[2]);case RotationOrder.XZY:return q.rotateX(this[0]).rotateZ(this[1]).rotateY(this[2]);default:throw new Error(ERR_UNKNOWN_ORDER)}}_fromRotationMatrix(m,order=Euler.DefaultOrder){const m11=m[0],m12=m[4],m13=m[8],m21=m[1],m22=m[5],m23=m[9],m31=m[2],m32=m[6],m33=m[10];switch(order=order||this[3]){case Euler.XYZ:this[1]=Math.asin((0,common.uZ)(m13,-1,1)),Math.abs(m13)<.99999?(this[0]=Math.atan2(-m23,m33),this[2]=Math.atan2(-m12,m11)):(this[0]=Math.atan2(m32,m22),this[2]=0);break;case Euler.YXZ:this[0]=Math.asin(-(0,common.uZ)(m23,-1,1)),Math.abs(m23)<.99999?(this[1]=Math.atan2(m13,m33),this[2]=Math.atan2(m21,m22)):(this[1]=Math.atan2(-m31,m11),this[2]=0);break;case Euler.ZXY:this[0]=Math.asin((0,common.uZ)(m32,-1,1)),Math.abs(m32)<.99999?(this[1]=Math.atan2(-m31,m33),this[2]=Math.atan2(-m12,m22)):(this[1]=0,this[2]=Math.atan2(m21,m11));break;case Euler.ZYX:this[1]=Math.asin(-(0,common.uZ)(m31,-1,1)),Math.abs(m31)<.99999?(this[0]=Math.atan2(m32,m33),this[2]=Math.atan2(m21,m11)):(this[0]=0,this[2]=Math.atan2(-m12,m22));break;case Euler.YZX:this[2]=Math.asin((0,common.uZ)(m21,-1,1)),Math.abs(m21)<.99999?(this[0]=Math.atan2(-m23,m22),this[1]=Math.atan2(-m31,m11)):(this[0]=0,this[1]=Math.atan2(m13,m33));break;case Euler.XZY:this[2]=Math.asin(-(0,common.uZ)(m12,-1,1)),Math.abs(m12)<.99999?(this[0]=Math.atan2(m32,m22),this[1]=Math.atan2(m13,m11)):(this[0]=Math.atan2(-m23,m33),this[1]=0);break;default:throw new Error(ERR_UNKNOWN_ORDER)}return this[3]=order,this}_getRotationMatrix(result){const te=result||[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],x=this.x,y=this.y,z=this.z,a=Math.cos(x),c=Math.cos(y),e=Math.cos(z),b=Math.sin(x),d=Math.sin(y),f=Math.sin(z);switch(this[3]){case Euler.XYZ:{const ae=a*e,af=a*f,be=b*e,bf=b*f;te[0]=c*e,te[4]=-c*f,te[8]=d,te[1]=af+be*d,te[5]=ae-bf*d,te[9]=-b*c,te[2]=bf-ae*d,te[6]=be+af*d,te[10]=a*c;break}case Euler.YXZ:{const ce=c*e,cf=c*f,de=d*e,df=d*f;te[0]=ce+df*b,te[4]=de*b-cf,te[8]=a*d,te[1]=a*f,te[5]=a*e,te[9]=-b,te[2]=cf*b-de,te[6]=df+ce*b,te[10]=a*c;break}case Euler.ZXY:{const ce=c*e,cf=c*f,de=d*e,df=d*f;te[0]=ce-df*b,te[4]=-a*f,te[8]=de+cf*b,te[1]=cf+de*b,te[5]=a*e,te[9]=df-ce*b,te[2]=-a*d,te[6]=b,te[10]=a*c;break}case Euler.ZYX:{const ae=a*e,af=a*f,be=b*e,bf=b*f;te[0]=c*e,te[4]=be*d-af,te[8]=ae*d+bf,te[1]=c*f,te[5]=bf*d+ae,te[9]=af*d-be,te[2]=-d,te[6]=b*c,te[10]=a*c;break}case Euler.YZX:{const ac=a*c,ad=a*d,bc=b*c,bd=b*d;te[0]=c*e,te[4]=bd-ac*f,te[8]=bc*f+ad,te[1]=f,te[5]=a*e,te[9]=-b*e,te[2]=-d*e,te[6]=ad*f+bc,te[10]=ac-bd*f;break}case Euler.XZY:{const ac=a*c,ad=a*d,bc=b*c,bd=b*d;te[0]=c*e,te[4]=-f,te[8]=d*e,te[1]=ac*f+bd,te[5]=a*e,te[9]=ad*f-bc,te[2]=bc*f-ad,te[6]=b*e,te[10]=bd*f+ac;break}default:throw new Error(ERR_UNKNOWN_ORDER)}return te[3]=0,te[7]=0,te[11]=0,te[12]=0,te[13]=0,te[14]=0,te[15]=1,te}toQuaternion(){const cy=Math.cos(.5*this.yaw),sy=Math.sin(.5*this.yaw),cr=Math.cos(.5*this.roll),sr=Math.sin(.5*this.roll),cp=Math.cos(.5*this.pitch),sp=Math.sin(.5*this.pitch),w=cy*cr*cp+sy*sr*sp,x=cy*sr*cp-sy*cr*sp,y=cy*cr*sp+sy*sr*cp,z=sy*cr*cp-cy*sr*sp;return new quaternion.Z(x,y,z,w)}}class Pose{constructor({x:x=0,y:y=0,z:z=0,roll:roll=0,pitch:pitch=0,yaw:yaw=0,position:position,orientation:orientation}={}){(0,defineProperty.Z)(this,"position",void 0),(0,defineProperty.Z)(this,"orientation",void 0),Array.isArray(position)&&3===position.length?this.position=new vector3.Z(position):this.position=new vector3.Z(x,y,z),Array.isArray(orientation)&&4===orientation.length?this.orientation=new Euler(orientation,orientation[3]):this.orientation=new Euler(roll,pitch,yaw,Euler.RollPitchYaw)}get x(){return this.position.x}set x(value){this.position.x=value}get y(){return this.position.y}set y(value){this.position.y=value}get z(){return this.position.z}set z(value){this.position.z=value}get roll(){return this.orientation.roll}set roll(value){this.orientation.roll=value}get pitch(){return this.orientation.pitch}set pitch(value){this.orientation.pitch=value}get yaw(){return this.orientation.yaw}set yaw(value){this.orientation.yaw=value}getPosition(){return this.position}getOrientation(){return this.orientation}equals(pose){return!!pose&&(this.position.equals(pose.position)&&this.orientation.equals(pose.orientation))}exactEquals(pose){return!!pose&&(this.position.exactEquals(pose.position)&&this.orientation.exactEquals(pose.orientation))}getTransformationMatrix(){const sr=Math.sin(this.roll),sp=Math.sin(this.pitch),sw=Math.sin(this.yaw),cr=Math.cos(this.roll),cp=Math.cos(this.pitch),cw=Math.cos(this.yaw);return(new matrix4.Z).setRowMajor(cw*cp,-sw*cr+cw*sp*sr,sw*sr+cw*sp*cr,this.x,sw*cp,cw*cr+sw*sp*sr,-cw*sr+sw*sp*cr,this.y,-sp,cp*sr,cp*cr,this.z,0,0,0,1)}getTransformationMatrixFromPose(pose){return(new matrix4.Z).multiplyRight(this.getTransformationMatrix()).multiplyRight(pose.getTransformationMatrix().invert())}getTransformationMatrixToPose(pose){return(new matrix4.Z).multiplyRight(pose.getTransformationMatrix()).multiplyRight(this.getTransformationMatrix().invert())}}var math_utils=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/math-utils.js"),assert=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/assert.js")},"./node_modules/merge-refs/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function mergeRefs(){for(var inputRefs=[],_i=0;_i0?opt.windowBits=-opt.windowBits:opt.gzip&&opt.windowBits>0&&opt.windowBits<16&&(opt.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;var status=zlib_deflate.deflateInit2(this.strm,opt.level,opt.method,opt.windowBits,opt.memLevel,opt.strategy);if(status!==Z_OK)throw new Error(msg[status]);if(opt.header&&zlib_deflate.deflateSetHeader(this.strm,opt.header),opt.dictionary){var dict;if(dict="string"==typeof opt.dictionary?strings.string2buf(opt.dictionary):"[object ArrayBuffer]"===toString.call(opt.dictionary)?new Uint8Array(opt.dictionary):opt.dictionary,(status=zlib_deflate.deflateSetDictionary(this.strm,dict))!==Z_OK)throw new Error(msg[status]);this._dict_set=!0}}function deflate(input,options){var deflator=new Deflate(options);if(deflator.push(input,!0),deflator.err)throw deflator.msg||msg[deflator.err];return deflator.result}Deflate.prototype.push=function(data,mode){var status,_mode,strm=this.strm,chunkSize=this.options.chunkSize;if(this.ended)return!1;_mode=mode===~~mode?mode:!0===mode?4:0,"string"==typeof data?strm.input=strings.string2buf(data):"[object ArrayBuffer]"===toString.call(data)?strm.input=new Uint8Array(data):strm.input=data,strm.next_in=0,strm.avail_in=strm.input.length;do{if(0===strm.avail_out&&(strm.output=new utils.Buf8(chunkSize),strm.next_out=0,strm.avail_out=chunkSize),1!==(status=zlib_deflate.deflate(strm,_mode))&&status!==Z_OK)return this.onEnd(status),this.ended=!0,!1;0!==strm.avail_out&&(0!==strm.avail_in||4!==_mode&&2!==_mode)||("string"===this.options.to?this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output,strm.next_out))):this.onData(utils.shrinkBuf(strm.output,strm.next_out)))}while((strm.avail_in>0||0===strm.avail_out)&&1!==status);return 4===_mode?(status=zlib_deflate.deflateEnd(this.strm),this.onEnd(status),this.ended=!0,status===Z_OK):2!==_mode||(this.onEnd(Z_OK),strm.avail_out=0,!0)},Deflate.prototype.onData=function(chunk){this.chunks.push(chunk)},Deflate.prototype.onEnd=function(status){status===Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=utils.flattenChunks(this.chunks)),this.chunks=[],this.err=status,this.msg=this.strm.msg},exports.Deflate=Deflate,exports.deflate=deflate,exports.deflateRaw=function deflateRaw(input,options){return(options=options||{}).raw=!0,deflate(input,options)},exports.gzip=function gzip(input,options){return(options=options||{}).gzip=!0,deflate(input,options)}},"./node_modules/pako/lib/inflate.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var zlib_inflate=__webpack_require__("./node_modules/pako/lib/zlib/inflate.js"),utils=__webpack_require__("./node_modules/pako/lib/utils/common.js"),strings=__webpack_require__("./node_modules/pako/lib/utils/strings.js"),c=__webpack_require__("./node_modules/pako/lib/zlib/constants.js"),msg=__webpack_require__("./node_modules/pako/lib/zlib/messages.js"),ZStream=__webpack_require__("./node_modules/pako/lib/zlib/zstream.js"),GZheader=__webpack_require__("./node_modules/pako/lib/zlib/gzheader.js"),toString=Object.prototype.toString;function Inflate(options){if(!(this instanceof Inflate))return new Inflate(options);this.options=utils.assign({chunkSize:16384,windowBits:0,to:""},options||{});var opt=this.options;opt.raw&&opt.windowBits>=0&&opt.windowBits<16&&(opt.windowBits=-opt.windowBits,0===opt.windowBits&&(opt.windowBits=-15)),!(opt.windowBits>=0&&opt.windowBits<16)||options&&options.windowBits||(opt.windowBits+=32),opt.windowBits>15&&opt.windowBits<48&&0==(15&opt.windowBits)&&(opt.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;var status=zlib_inflate.inflateInit2(this.strm,opt.windowBits);if(status!==c.Z_OK)throw new Error(msg[status]);if(this.header=new GZheader,zlib_inflate.inflateGetHeader(this.strm,this.header),opt.dictionary&&("string"==typeof opt.dictionary?opt.dictionary=strings.string2buf(opt.dictionary):"[object ArrayBuffer]"===toString.call(opt.dictionary)&&(opt.dictionary=new Uint8Array(opt.dictionary)),opt.raw&&(status=zlib_inflate.inflateSetDictionary(this.strm,opt.dictionary))!==c.Z_OK))throw new Error(msg[status])}function inflate(input,options){var inflator=new Inflate(options);if(inflator.push(input,!0),inflator.err)throw inflator.msg||msg[inflator.err];return inflator.result}Inflate.prototype.push=function(data,mode){var status,_mode,next_out_utf8,tail,utf8str,strm=this.strm,chunkSize=this.options.chunkSize,dictionary=this.options.dictionary,allowBufError=!1;if(this.ended)return!1;_mode=mode===~~mode?mode:!0===mode?c.Z_FINISH:c.Z_NO_FLUSH,"string"==typeof data?strm.input=strings.binstring2buf(data):"[object ArrayBuffer]"===toString.call(data)?strm.input=new Uint8Array(data):strm.input=data,strm.next_in=0,strm.avail_in=strm.input.length;do{if(0===strm.avail_out&&(strm.output=new utils.Buf8(chunkSize),strm.next_out=0,strm.avail_out=chunkSize),(status=zlib_inflate.inflate(strm,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&dictionary&&(status=zlib_inflate.inflateSetDictionary(this.strm,dictionary)),status===c.Z_BUF_ERROR&&!0===allowBufError&&(status=c.Z_OK,allowBufError=!1),status!==c.Z_STREAM_END&&status!==c.Z_OK)return this.onEnd(status),this.ended=!0,!1;strm.next_out&&(0!==strm.avail_out&&status!==c.Z_STREAM_END&&(0!==strm.avail_in||_mode!==c.Z_FINISH&&_mode!==c.Z_SYNC_FLUSH)||("string"===this.options.to?(next_out_utf8=strings.utf8border(strm.output,strm.next_out),tail=strm.next_out-next_out_utf8,utf8str=strings.buf2string(strm.output,next_out_utf8),strm.next_out=tail,strm.avail_out=chunkSize-tail,tail&&utils.arraySet(strm.output,strm.output,next_out_utf8,tail,0),this.onData(utf8str)):this.onData(utils.shrinkBuf(strm.output,strm.next_out)))),0===strm.avail_in&&0===strm.avail_out&&(allowBufError=!0)}while((strm.avail_in>0||0===strm.avail_out)&&status!==c.Z_STREAM_END);return status===c.Z_STREAM_END&&(_mode=c.Z_FINISH),_mode===c.Z_FINISH?(status=zlib_inflate.inflateEnd(this.strm),this.onEnd(status),this.ended=!0,status===c.Z_OK):_mode!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),strm.avail_out=0,!0)},Inflate.prototype.onData=function(chunk){this.chunks.push(chunk)},Inflate.prototype.onEnd=function(status){status===c.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=utils.flattenChunks(this.chunks)),this.chunks=[],this.err=status,this.msg=this.strm.msg},exports.Inflate=Inflate,exports.inflate=inflate,exports.inflateRaw=function inflateRaw(input,options){return(options=options||{}).raw=!0,inflate(input,options)},exports.ungzip=inflate},"./node_modules/pako/lib/utils/common.js":function(__unused_webpack_module,exports){"use strict";var TYPED_OK="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function _has(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}exports.assign=function(obj){for(var sources=Array.prototype.slice.call(arguments,1);sources.length;){var source=sources.shift();if(source){if("object"!=typeof source)throw new TypeError(source+"must be non-object");for(var p in source)_has(source,p)&&(obj[p]=source[p])}}return obj},exports.shrinkBuf=function(buf,size){return buf.length===size?buf:buf.subarray?buf.subarray(0,size):(buf.length=size,buf)};var fnTyped={arraySet:function(dest,src,src_offs,len,dest_offs){if(src.subarray&&dest.subarray)dest.set(src.subarray(src_offs,src_offs+len),dest_offs);else for(var i=0;i=252?6:q>=248?5:q>=240?4:q>=224?3:q>=192?2:1;function buf2binstring(buf,len){if(len<65534&&(buf.subarray&&STR_APPLY_UIA_OK||!buf.subarray&&STR_APPLY_OK))return String.fromCharCode.apply(null,utils.shrinkBuf(buf,len));for(var result="",i=0;i>>6,buf[i++]=128|63&c):c<65536?(buf[i++]=224|c>>>12,buf[i++]=128|c>>>6&63,buf[i++]=128|63&c):(buf[i++]=240|c>>>18,buf[i++]=128|c>>>12&63,buf[i++]=128|c>>>6&63,buf[i++]=128|63&c);return buf},exports.buf2binstring=function(buf){return buf2binstring(buf,buf.length)},exports.binstring2buf=function(str){for(var buf=new utils.Buf8(str.length),i=0,len=buf.length;i4)utf16buf[out++]=65533,i+=c_len-1;else{for(c&=2===c_len?31:3===c_len?15:7;c_len>1&&i1?utf16buf[out++]=65533:c<65536?utf16buf[out++]=c:(c-=65536,utf16buf[out++]=55296|c>>10&1023,utf16buf[out++]=56320|1023&c)}return buf2binstring(utf16buf,out)},exports.utf8border=function(buf,max){var pos;for((max=max||buf.length)>buf.length&&(max=buf.length),pos=max-1;pos>=0&&128==(192&buf[pos]);)pos--;return pos<0||0===pos?max:pos+_utf8len[buf[pos]]>max?pos:max}},"./node_modules/pako/lib/zlib/adler32.js":function(module){"use strict";module.exports=function adler32(adler,buf,len,pos){for(var s1=65535&adler|0,s2=adler>>>16&65535|0,n=0;0!==len;){len-=n=len>2e3?2e3:len;do{s2=s2+(s1=s1+buf[pos++]|0)|0}while(--n);s1%=65521,s2%=65521}return s1|s2<<16|0}},"./node_modules/pako/lib/zlib/constants.js":function(module){"use strict";module.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},"./node_modules/pako/lib/zlib/crc32.js":function(module){"use strict";var crcTable=function makeTable(){for(var c,table=[],n=0;n<256;n++){c=n;for(var k=0;k<8;k++)c=1&c?3988292384^c>>>1:c>>>1;table[n]=c}return table}();module.exports=function crc32(crc,buf,len,pos){var t=crcTable,end=pos+len;crc^=-1;for(var i=pos;i>>8^t[255&(crc^buf[i])];return-1^crc}},"./node_modules/pako/lib/zlib/deflate.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var configuration_table,utils=__webpack_require__("./node_modules/pako/lib/utils/common.js"),trees=__webpack_require__("./node_modules/pako/lib/zlib/trees.js"),adler32=__webpack_require__("./node_modules/pako/lib/zlib/adler32.js"),crc32=__webpack_require__("./node_modules/pako/lib/zlib/crc32.js"),msg=__webpack_require__("./node_modules/pako/lib/zlib/messages.js"),Z_NO_FLUSH=0,Z_FINISH=4,Z_OK=0,Z_STREAM_ERROR=-2,Z_DEFAULT_COMPRESSION=-1,Z_FIXED=4,Z_UNKNOWN=2,Z_DEFLATED=8,MAX_MEM_LEVEL=9,L_CODES=286,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,INIT_STATE=42,BUSY_STATE=113,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4;function err(strm,errorCode){return strm.msg=msg[errorCode],errorCode}function rank(f){return(f<<1)-(f>4?9:0)}function zero(buf){for(var len=buf.length;--len>=0;)buf[len]=0}function flush_pending(strm){var s=strm.state,len=s.pending;len>strm.avail_out&&(len=strm.avail_out),0!==len&&(utils.arraySet(strm.output,s.pending_buf,s.pending_out,len,strm.next_out),strm.next_out+=len,s.pending_out+=len,strm.total_out+=len,strm.avail_out-=len,s.pending-=len,0===s.pending&&(s.pending_out=0))}function flush_block_only(s,last){trees._tr_flush_block(s,s.block_start>=0?s.block_start:-1,s.strstart-s.block_start,last),s.block_start=s.strstart,flush_pending(s.strm)}function put_byte(s,b){s.pending_buf[s.pending++]=b}function putShortMSB(s,b){s.pending_buf[s.pending++]=b>>>8&255,s.pending_buf[s.pending++]=255&b}function longest_match(s,cur_match){var match,len,chain_length=s.max_chain_length,scan=s.strstart,best_len=s.prev_length,nice_match=s.nice_match,limit=s.strstart>s.w_size-MIN_LOOKAHEAD?s.strstart-(s.w_size-MIN_LOOKAHEAD):0,_win=s.window,wmask=s.w_mask,prev=s.prev,strend=s.strstart+MAX_MATCH,scan_end1=_win[scan+best_len-1],scan_end=_win[scan+best_len];s.prev_length>=s.good_match&&(chain_length>>=2),nice_match>s.lookahead&&(nice_match=s.lookahead);do{if(_win[(match=cur_match)+best_len]===scan_end&&_win[match+best_len-1]===scan_end1&&_win[match]===_win[scan]&&_win[++match]===_win[scan+1]){scan+=2,match++;do{}while(_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&scanbest_len){if(s.match_start=cur_match,best_len=len,len>=nice_match)break;scan_end1=_win[scan+best_len-1],scan_end=_win[scan+best_len]}}}while((cur_match=prev[cur_match&wmask])>limit&&0!=--chain_length);return best_len<=s.lookahead?best_len:s.lookahead}function fill_window(s){var p,n,m,more,str,strm,buf,start,size,len,_w_size=s.w_size;do{if(more=s.window_size-s.lookahead-s.strstart,s.strstart>=_w_size+(_w_size-MIN_LOOKAHEAD)){utils.arraySet(s.window,s.window,_w_size,_w_size,0),s.match_start-=_w_size,s.strstart-=_w_size,s.block_start-=_w_size,p=n=s.hash_size;do{m=s.head[--p],s.head[p]=m>=_w_size?m-_w_size:0}while(--n);p=n=_w_size;do{m=s.prev[--p],s.prev[p]=m>=_w_size?m-_w_size:0}while(--n);more+=_w_size}if(0===s.strm.avail_in)break;if(strm=s.strm,buf=s.window,start=s.strstart+s.lookahead,size=more,len=void 0,(len=strm.avail_in)>size&&(len=size),n=0===len?0:(strm.avail_in-=len,utils.arraySet(buf,strm.input,strm.next_in,len,start),1===strm.state.wrap?strm.adler=adler32(strm.adler,buf,len,start):2===strm.state.wrap&&(strm.adler=crc32(strm.adler,buf,len,start)),strm.next_in+=len,strm.total_in+=len,len),s.lookahead+=n,s.lookahead+s.insert>=MIN_MATCH)for(str=s.strstart-s.insert,s.ins_h=s.window[str],s.ins_h=(s.ins_h<=MIN_MATCH&&(s.ins_h=(s.ins_h<=MIN_MATCH)if(bflush=trees._tr_tally(s,s.strstart-s.match_start,s.match_length-MIN_MATCH),s.lookahead-=s.match_length,s.match_length<=s.max_lazy_match&&s.lookahead>=MIN_MATCH){s.match_length--;do{s.strstart++,s.ins_h=(s.ins_h<=MIN_MATCH&&(s.ins_h=(s.ins_h<4096)&&(s.match_length=MIN_MATCH-1)),s.prev_length>=MIN_MATCH&&s.match_length<=s.prev_length){max_insert=s.strstart+s.lookahead-MIN_MATCH,bflush=trees._tr_tally(s,s.strstart-1-s.prev_match,s.prev_length-MIN_MATCH),s.lookahead-=s.prev_length-1,s.prev_length-=2;do{++s.strstart<=max_insert&&(s.ins_h=(s.ins_h<15&&(wrap=2,windowBits-=16),memLevel<1||memLevel>MAX_MEM_LEVEL||method!==Z_DEFLATED||windowBits<8||windowBits>15||level<0||level>9||strategy<0||strategy>Z_FIXED)return err(strm,Z_STREAM_ERROR);8===windowBits&&(windowBits=9);var s=new DeflateState;return strm.state=s,s.strm=strm,s.wrap=wrap,s.gzhead=null,s.w_bits=windowBits,s.w_size=1<s.pending_buf_size-5&&(max_block_size=s.pending_buf_size-5);;){if(s.lookahead<=1){if(fill_window(s),0===s.lookahead&&flush===Z_NO_FLUSH)return BS_NEED_MORE;if(0===s.lookahead)break}s.strstart+=s.lookahead,s.lookahead=0;var max_start=s.block_start+max_block_size;if((0===s.strstart||s.strstart>=max_start)&&(s.lookahead=s.strstart-max_start,s.strstart=max_start,flush_block_only(s,!1),0===s.strm.avail_out))return BS_NEED_MORE;if(s.strstart-s.block_start>=s.w_size-MIN_LOOKAHEAD&&(flush_block_only(s,!1),0===s.strm.avail_out))return BS_NEED_MORE}return s.insert=0,flush===Z_FINISH?(flush_block_only(s,!0),0===s.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):(s.strstart>s.block_start&&(flush_block_only(s,!1),s.strm.avail_out),BS_NEED_MORE)})),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],exports.deflateInit=function deflateInit(strm,level){return deflateInit2(strm,level,Z_DEFLATED,15,8,0)},exports.deflateInit2=deflateInit2,exports.deflateReset=deflateReset,exports.deflateResetKeep=deflateResetKeep,exports.deflateSetHeader=function deflateSetHeader(strm,head){return strm&&strm.state?2!==strm.state.wrap?Z_STREAM_ERROR:(strm.state.gzhead=head,Z_OK):Z_STREAM_ERROR},exports.deflate=function deflate(strm,flush){var old_flush,s,beg,val;if(!strm||!strm.state||flush>5||flush<0)return strm?err(strm,Z_STREAM_ERROR):Z_STREAM_ERROR;if(s=strm.state,!strm.output||!strm.input&&0!==strm.avail_in||666===s.status&&flush!==Z_FINISH)return err(strm,0===strm.avail_out?-5:Z_STREAM_ERROR);if(s.strm=strm,old_flush=s.last_flush,s.last_flush=flush,s.status===INIT_STATE)if(2===s.wrap)strm.adler=0,put_byte(s,31),put_byte(s,139),put_byte(s,8),s.gzhead?(put_byte(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),put_byte(s,255&s.gzhead.time),put_byte(s,s.gzhead.time>>8&255),put_byte(s,s.gzhead.time>>16&255),put_byte(s,s.gzhead.time>>24&255),put_byte(s,9===s.level?2:s.strategy>=2||s.level<2?4:0),put_byte(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(put_byte(s,255&s.gzhead.extra.length),put_byte(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=69):(put_byte(s,0),put_byte(s,0),put_byte(s,0),put_byte(s,0),put_byte(s,0),put_byte(s,9===s.level?2:s.strategy>=2||s.level<2?4:0),put_byte(s,3),s.status=BUSY_STATE);else{var header=Z_DEFLATED+(s.w_bits-8<<4)<<8;header|=(s.strategy>=2||s.level<2?0:s.level<6?1:6===s.level?2:3)<<6,0!==s.strstart&&(header|=32),header+=31-header%31,s.status=BUSY_STATE,putShortMSB(s,header),0!==s.strstart&&(putShortMSB(s,strm.adler>>>16),putShortMSB(s,65535&strm.adler)),strm.adler=1}if(69===s.status)if(s.gzhead.extra){for(beg=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),flush_pending(strm),beg=s.pending,s.pending!==s.pending_buf_size));)put_byte(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=73)}else s.status=73;if(73===s.status)if(s.gzhead.name){beg=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),flush_pending(strm),beg=s.pending,s.pending===s.pending_buf_size)){val=1;break}val=s.gzindexbeg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),0===val&&(s.gzindex=0,s.status=91)}else s.status=91;if(91===s.status)if(s.gzhead.comment){beg=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),flush_pending(strm),beg=s.pending,s.pending===s.pending_buf_size)){val=1;break}val=s.gzindexbeg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),0===val&&(s.status=103)}else s.status=103;if(103===s.status&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&flush_pending(strm),s.pending+2<=s.pending_buf_size&&(put_byte(s,255&strm.adler),put_byte(s,strm.adler>>8&255),strm.adler=0,s.status=BUSY_STATE)):s.status=BUSY_STATE),0!==s.pending){if(flush_pending(strm),0===strm.avail_out)return s.last_flush=-1,Z_OK}else if(0===strm.avail_in&&rank(flush)<=rank(old_flush)&&flush!==Z_FINISH)return err(strm,-5);if(666===s.status&&0!==strm.avail_in)return err(strm,-5);if(0!==strm.avail_in||0!==s.lookahead||flush!==Z_NO_FLUSH&&666!==s.status){var bstate=2===s.strategy?function deflate_huff(s,flush){for(var bflush;;){if(0===s.lookahead&&(fill_window(s),0===s.lookahead)){if(flush===Z_NO_FLUSH)return BS_NEED_MORE;break}if(s.match_length=0,bflush=trees._tr_tally(s,0,s.window[s.strstart]),s.lookahead--,s.strstart++,bflush&&(flush_block_only(s,!1),0===s.strm.avail_out))return BS_NEED_MORE}return s.insert=0,flush===Z_FINISH?(flush_block_only(s,!0),0===s.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):s.last_lit&&(flush_block_only(s,!1),0===s.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}(s,flush):3===s.strategy?function deflate_rle(s,flush){for(var bflush,prev,scan,strend,_win=s.window;;){if(s.lookahead<=MAX_MATCH){if(fill_window(s),s.lookahead<=MAX_MATCH&&flush===Z_NO_FLUSH)return BS_NEED_MORE;if(0===s.lookahead)break}if(s.match_length=0,s.lookahead>=MIN_MATCH&&s.strstart>0&&(prev=_win[scan=s.strstart-1])===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]){strend=s.strstart+MAX_MATCH;do{}while(prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&scans.lookahead&&(s.match_length=s.lookahead)}if(s.match_length>=MIN_MATCH?(bflush=trees._tr_tally(s,1,s.match_length-MIN_MATCH),s.lookahead-=s.match_length,s.strstart+=s.match_length,s.match_length=0):(bflush=trees._tr_tally(s,0,s.window[s.strstart]),s.lookahead--,s.strstart++),bflush&&(flush_block_only(s,!1),0===s.strm.avail_out))return BS_NEED_MORE}return s.insert=0,flush===Z_FINISH?(flush_block_only(s,!0),0===s.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):s.last_lit&&(flush_block_only(s,!1),0===s.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}(s,flush):configuration_table[s.level].func(s,flush);if(bstate!==BS_FINISH_STARTED&&bstate!==BS_FINISH_DONE||(s.status=666),bstate===BS_NEED_MORE||bstate===BS_FINISH_STARTED)return 0===strm.avail_out&&(s.last_flush=-1),Z_OK;if(bstate===BS_BLOCK_DONE&&(1===flush?trees._tr_align(s):5!==flush&&(trees._tr_stored_block(s,0,0,!1),3===flush&&(zero(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),flush_pending(strm),0===strm.avail_out))return s.last_flush=-1,Z_OK}return flush!==Z_FINISH?Z_OK:s.wrap<=0?1:(2===s.wrap?(put_byte(s,255&strm.adler),put_byte(s,strm.adler>>8&255),put_byte(s,strm.adler>>16&255),put_byte(s,strm.adler>>24&255),put_byte(s,255&strm.total_in),put_byte(s,strm.total_in>>8&255),put_byte(s,strm.total_in>>16&255),put_byte(s,strm.total_in>>24&255)):(putShortMSB(s,strm.adler>>>16),putShortMSB(s,65535&strm.adler)),flush_pending(strm),s.wrap>0&&(s.wrap=-s.wrap),0!==s.pending?Z_OK:1)},exports.deflateEnd=function deflateEnd(strm){var status;return strm&&strm.state?(status=strm.state.status)!==INIT_STATE&&69!==status&&73!==status&&91!==status&&103!==status&&status!==BUSY_STATE&&666!==status?err(strm,Z_STREAM_ERROR):(strm.state=null,status===BUSY_STATE?err(strm,-3):Z_OK):Z_STREAM_ERROR},exports.deflateSetDictionary=function deflateSetDictionary(strm,dictionary){var s,str,n,wrap,avail,next,input,tmpDict,dictLength=dictionary.length;if(!strm||!strm.state)return Z_STREAM_ERROR;if(2===(wrap=(s=strm.state).wrap)||1===wrap&&s.status!==INIT_STATE||s.lookahead)return Z_STREAM_ERROR;for(1===wrap&&(strm.adler=adler32(strm.adler,dictionary,dictLength,0)),s.wrap=0,dictLength>=s.w_size&&(0===wrap&&(zero(s.head),s.strstart=0,s.block_start=0,s.insert=0),tmpDict=new utils.Buf8(s.w_size),utils.arraySet(tmpDict,dictionary,dictLength-s.w_size,s.w_size,0),dictionary=tmpDict,dictLength=s.w_size),avail=strm.avail_in,next=strm.next_in,input=strm.input,strm.avail_in=dictLength,strm.next_in=0,strm.input=dictionary,fill_window(s);s.lookahead>=MIN_MATCH;){str=s.strstart,n=s.lookahead-(MIN_MATCH-1);do{s.ins_h=(s.ins_h<>>=op=here>>>24,bits-=op,0===(op=here>>>16&255))output[_out++]=65535&here;else{if(!(16&op)){if(0==(64&op)){here=lcode[(65535&here)+(hold&(1<>>=op,bits-=op),bits<15&&(hold+=input[_in++]<>>=op=here>>>24,bits-=op,!(16&(op=here>>>16&255))){if(0==(64&op)){here=dcode[(65535&here)+(hold&(1<dmax){strm.msg="invalid distance too far back",state.mode=30;break top}if(hold>>>=op,bits-=op,dist>(op=_out-beg)){if((op=dist-op)>whave&&state.sane){strm.msg="invalid distance too far back",state.mode=30;break top}if(from=0,from_source=s_window,0===wnext){if(from+=wsize-op,op2;)output[_out++]=from_source[from++],output[_out++]=from_source[from++],output[_out++]=from_source[from++],len-=3;len&&(output[_out++]=from_source[from++],len>1&&(output[_out++]=from_source[from++]))}else{from=_out-dist;do{output[_out++]=output[from++],output[_out++]=output[from++],output[_out++]=output[from++],len-=3}while(len>2);len&&(output[_out++]=output[from++],len>1&&(output[_out++]=output[from++]))}break}}break}}while(_in>3,hold&=(1<<(bits-=len<<3))-1,strm.next_in=_in,strm.next_out=_out,strm.avail_in=_in>>24&255)+(q>>>8&65280)+((65280&q)<<8)+((255&q)<<24)}function InflateState(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new utils.Buf16(320),this.work=new utils.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function inflateResetKeep(strm){var state;return strm&&strm.state?(state=strm.state,strm.total_in=strm.total_out=state.total=0,strm.msg="",state.wrap&&(strm.adler=1&state.wrap),state.mode=HEAD,state.last=0,state.havedict=0,state.dmax=32768,state.head=null,state.hold=0,state.bits=0,state.lencode=state.lendyn=new utils.Buf32(ENOUGH_LENS),state.distcode=state.distdyn=new utils.Buf32(ENOUGH_DISTS),state.sane=1,state.back=-1,Z_OK):Z_STREAM_ERROR}function inflateReset(strm){var state;return strm&&strm.state?((state=strm.state).wsize=0,state.whave=0,state.wnext=0,inflateResetKeep(strm)):Z_STREAM_ERROR}function inflateReset2(strm,windowBits){var wrap,state;return strm&&strm.state?(state=strm.state,windowBits<0?(wrap=0,windowBits=-windowBits):(wrap=1+(windowBits>>4),windowBits<48&&(windowBits&=15)),windowBits&&(windowBits<8||windowBits>15)?Z_STREAM_ERROR:(null!==state.window&&state.wbits!==windowBits&&(state.window=null),state.wrap=wrap,state.wbits=windowBits,inflateReset(strm))):Z_STREAM_ERROR}function inflateInit2(strm,windowBits){var ret,state;return strm?(state=new InflateState,strm.state=state,state.window=null,(ret=inflateReset2(strm,windowBits))!==Z_OK&&(strm.state=null),ret):Z_STREAM_ERROR}var lenfix,distfix,virgin=!0;function fixedtables(state){if(virgin){var sym;for(lenfix=new utils.Buf32(512),distfix=new utils.Buf32(32),sym=0;sym<144;)state.lens[sym++]=8;for(;sym<256;)state.lens[sym++]=9;for(;sym<280;)state.lens[sym++]=7;for(;sym<288;)state.lens[sym++]=8;for(inflate_table(LENS,state.lens,0,288,lenfix,0,state.work,{bits:9}),sym=0;sym<32;)state.lens[sym++]=5;inflate_table(DISTS,state.lens,0,32,distfix,0,state.work,{bits:5}),virgin=!1}state.lencode=lenfix,state.lenbits=9,state.distcode=distfix,state.distbits=5}function updatewindow(strm,src,end,copy){var dist,state=strm.state;return null===state.window&&(state.wsize=1<=state.wsize?(utils.arraySet(state.window,src,end-state.wsize,state.wsize,0),state.wnext=0,state.whave=state.wsize):((dist=state.wsize-state.wnext)>copy&&(dist=copy),utils.arraySet(state.window,src,end-copy,dist,state.wnext),(copy-=dist)?(utils.arraySet(state.window,src,end-copy,copy,0),state.wnext=copy,state.whave=state.wsize):(state.wnext+=dist,state.wnext===state.wsize&&(state.wnext=0),state.whave>>8&255,state.check=crc32(state.check,hbuf,2,0),hold=0,bits=0,state.mode=2;break}if(state.flags=0,state.head&&(state.head.done=!1),!(1&state.wrap)||(((255&hold)<<8)+(hold>>8))%31){strm.msg="incorrect header check",state.mode=30;break}if(8!=(15&hold)){strm.msg="unknown compression method",state.mode=30;break}if(bits-=4,len=8+(15&(hold>>>=4)),0===state.wbits)state.wbits=len;else if(len>state.wbits){strm.msg="invalid window size",state.mode=30;break}state.dmax=1<>8&1),512&state.flags&&(hbuf[0]=255&hold,hbuf[1]=hold>>>8&255,state.check=crc32(state.check,hbuf,2,0)),hold=0,bits=0,state.mode=3;case 3:for(;bits<32;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>8&255,hbuf[2]=hold>>>16&255,hbuf[3]=hold>>>24&255,state.check=crc32(state.check,hbuf,4,0)),hold=0,bits=0,state.mode=4;case 4:for(;bits<16;){if(0===have)break inf_leave;have--,hold+=input[next++]<>8),512&state.flags&&(hbuf[0]=255&hold,hbuf[1]=hold>>>8&255,state.check=crc32(state.check,hbuf,2,0)),hold=0,bits=0,state.mode=5;case 5:if(1024&state.flags){for(;bits<16;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>8&255,state.check=crc32(state.check,hbuf,2,0)),hold=0,bits=0}else state.head&&(state.head.extra=null);state.mode=6;case 6:if(1024&state.flags&&((copy=state.length)>have&&(copy=have),copy&&(state.head&&(len=state.head.extra_len-state.length,state.head.extra||(state.head.extra=new Array(state.head.extra_len)),utils.arraySet(state.head.extra,input,next,copy,len)),512&state.flags&&(state.check=crc32(state.check,input,copy,next)),have-=copy,next+=copy,state.length-=copy),state.length))break inf_leave;state.length=0,state.mode=7;case 7:if(2048&state.flags){if(0===have)break inf_leave;copy=0;do{len=input[next+copy++],state.head&&len&&state.length<65536&&(state.head.name+=String.fromCharCode(len))}while(len&©>9&1,state.head.done=!0),strm.adler=state.check=0,state.mode=12;break;case 10:for(;bits<32;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=7&bits,bits-=7&bits,state.mode=27;break}for(;bits<3;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=1)){case 0:state.mode=14;break;case 1:if(fixedtables(state),state.mode=20,6===flush){hold>>>=2,bits-=2;break inf_leave}break;case 2:state.mode=17;break;case 3:strm.msg="invalid block type",state.mode=30}hold>>>=2,bits-=2;break;case 14:for(hold>>>=7&bits,bits-=7&bits;bits<32;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>16^65535)){strm.msg="invalid stored block lengths",state.mode=30;break}if(state.length=65535&hold,hold=0,bits=0,state.mode=15,6===flush)break inf_leave;case 15:state.mode=16;case 16:if(copy=state.length){if(copy>have&&(copy=have),copy>left&&(copy=left),0===copy)break inf_leave;utils.arraySet(output,input,next,copy,put),have-=copy,next+=copy,left-=copy,put+=copy,state.length-=copy;break}state.mode=12;break;case 17:for(;bits<14;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=5,bits-=5,state.ndist=1+(31&hold),hold>>>=5,bits-=5,state.ncode=4+(15&hold),hold>>>=4,bits-=4,state.nlen>286||state.ndist>30){strm.msg="too many length or distance symbols",state.mode=30;break}state.have=0,state.mode=18;case 18:for(;state.have>>=3,bits-=3}for(;state.have<19;)state.lens[order[state.have++]]=0;if(state.lencode=state.lendyn,state.lenbits=7,opts={bits:state.lenbits},ret=inflate_table(0,state.lens,0,19,state.lencode,0,state.work,opts),state.lenbits=opts.bits,ret){strm.msg="invalid code lengths set",state.mode=30;break}state.have=0,state.mode=19;case 19:for(;state.have>>16&255,here_val=65535&here,!((here_bits=here>>>24)<=bits);){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=here_bits,bits-=here_bits,state.lens[state.have++]=here_val;else{if(16===here_val){for(n=here_bits+2;bits>>=here_bits,bits-=here_bits,0===state.have){strm.msg="invalid bit length repeat",state.mode=30;break}len=state.lens[state.have-1],copy=3+(3&hold),hold>>>=2,bits-=2}else if(17===here_val){for(n=here_bits+3;bits>>=here_bits)),hold>>>=3,bits-=3}else{for(n=here_bits+7;bits>>=here_bits)),hold>>>=7,bits-=7}if(state.have+copy>state.nlen+state.ndist){strm.msg="invalid bit length repeat",state.mode=30;break}for(;copy--;)state.lens[state.have++]=len}}if(30===state.mode)break;if(0===state.lens[256]){strm.msg="invalid code -- missing end-of-block",state.mode=30;break}if(state.lenbits=9,opts={bits:state.lenbits},ret=inflate_table(LENS,state.lens,0,state.nlen,state.lencode,0,state.work,opts),state.lenbits=opts.bits,ret){strm.msg="invalid literal/lengths set",state.mode=30;break}if(state.distbits=6,state.distcode=state.distdyn,opts={bits:state.distbits},ret=inflate_table(DISTS,state.lens,state.nlen,state.ndist,state.distcode,0,state.work,opts),state.distbits=opts.bits,ret){strm.msg="invalid distances set",state.mode=30;break}if(state.mode=20,6===flush)break inf_leave;case 20:state.mode=21;case 21:if(have>=6&&left>=258){strm.next_out=put,strm.avail_out=left,strm.next_in=next,strm.avail_in=have,state.hold=hold,state.bits=bits,inflate_fast(strm,_out),put=strm.next_out,output=strm.output,left=strm.avail_out,next=strm.next_in,input=strm.input,have=strm.avail_in,hold=state.hold,bits=state.bits,12===state.mode&&(state.back=-1);break}for(state.back=0;here_op=(here=state.lencode[hold&(1<>>16&255,here_val=65535&here,!((here_bits=here>>>24)<=bits);){if(0===have)break inf_leave;have--,hold+=input[next++]<>last_bits)])>>>16&255,here_val=65535&here,!(last_bits+(here_bits=here>>>24)<=bits);){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=last_bits,bits-=last_bits,state.back+=last_bits}if(hold>>>=here_bits,bits-=here_bits,state.back+=here_bits,state.length=here_val,0===here_op){state.mode=26;break}if(32&here_op){state.back=-1,state.mode=12;break}if(64&here_op){strm.msg="invalid literal/length code",state.mode=30;break}state.extra=15&here_op,state.mode=22;case 22:if(state.extra){for(n=state.extra;bits>>=state.extra,bits-=state.extra,state.back+=state.extra}state.was=state.length,state.mode=23;case 23:for(;here_op=(here=state.distcode[hold&(1<>>16&255,here_val=65535&here,!((here_bits=here>>>24)<=bits);){if(0===have)break inf_leave;have--,hold+=input[next++]<>last_bits)])>>>16&255,here_val=65535&here,!(last_bits+(here_bits=here>>>24)<=bits);){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=last_bits,bits-=last_bits,state.back+=last_bits}if(hold>>>=here_bits,bits-=here_bits,state.back+=here_bits,64&here_op){strm.msg="invalid distance code",state.mode=30;break}state.offset=here_val,state.extra=15&here_op,state.mode=24;case 24:if(state.extra){for(n=state.extra;bits>>=state.extra,bits-=state.extra,state.back+=state.extra}if(state.offset>state.dmax){strm.msg="invalid distance too far back",state.mode=30;break}state.mode=25;case 25:if(0===left)break inf_leave;if(copy=_out-left,state.offset>copy){if((copy=state.offset-copy)>state.whave&&state.sane){strm.msg="invalid distance too far back",state.mode=30;break}copy>state.wnext?(copy-=state.wnext,from=state.wsize-copy):from=state.wnext-copy,copy>state.length&&(copy=state.length),from_source=state.window}else from_source=output,from=put-state.offset,copy=state.length;copy>left&&(copy=left),left-=copy,state.length-=copy;do{output[put++]=from_source[from++]}while(--copy);0===state.length&&(state.mode=21);break;case 26:if(0===left)break inf_leave;output[put++]=state.length,left--,state.mode=21;break;case 27:if(state.wrap){for(;bits<32;){if(0===have)break inf_leave;have--,hold|=input[next++]<=1&&0===count[max];max--);if(root>max&&(root=max),0===max)return table[table_index++]=20971520,table[table_index++]=20971520,opts.bits=1,0;for(min=1;min0&&(0===type||1!==max))return-1;for(offs[1]=0,len=1;len<15;len++)offs[len+1]=offs[len]+count[len];for(sym=0;sym852||2===type&&used>592)return 1;for(;;){here_bits=len-drop,work[sym]end?(here_op=extra[extra_index+work[sym]],here_val=base[base_index+work[sym]]):(here_op=96,here_val=0),incr=1<>drop)+(fill-=incr)]=here_bits<<24|here_op<<16|here_val|0}while(0!==fill);for(incr=1<>=1;if(0!==incr?(huff&=incr-1,huff+=incr):huff=0,sym++,0==--count[len]){if(len===max)break;len=lens[lens_index+work[sym]]}if(len>root&&(huff&mask)!==low){for(0===drop&&(drop=root),next+=min,left=1<<(curr=len-drop);curr+drop852||2===type&&used>592)return 1;table[low=huff&mask]=root<<24|curr<<16|next-table_index|0}}return 0!==huff&&(table[next+huff]=len-drop<<24|64<<16|0),opts.bits=root,0}},"./node_modules/pako/lib/zlib/messages.js":function(module){"use strict";module.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},"./node_modules/pako/lib/zlib/trees.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var utils=__webpack_require__("./node_modules/pako/lib/utils/common.js"),Z_BINARY=0,Z_TEXT=1;function zero(buf){for(var len=buf.length;--len>=0;)buf[len]=0}var STORED_BLOCK=0,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],static_ltree=new Array(2*(L_CODES+2));zero(static_ltree);var static_dtree=new Array(2*D_CODES);zero(static_dtree);var _dist_code=new Array(512);zero(_dist_code);var _length_code=new Array(256);zero(_length_code);var base_length=new Array(LENGTH_CODES);zero(base_length);var static_l_desc,static_d_desc,static_bl_desc,base_dist=new Array(D_CODES);function StaticTreeDesc(static_tree,extra_bits,extra_base,elems,max_length){this.static_tree=static_tree,this.extra_bits=extra_bits,this.extra_base=extra_base,this.elems=elems,this.max_length=max_length,this.has_stree=static_tree&&static_tree.length}function TreeDesc(dyn_tree,stat_desc){this.dyn_tree=dyn_tree,this.max_code=0,this.stat_desc=stat_desc}function d_code(dist){return dist<256?_dist_code[dist]:_dist_code[256+(dist>>>7)]}function put_short(s,w){s.pending_buf[s.pending++]=255&w,s.pending_buf[s.pending++]=w>>>8&255}function send_bits(s,value,length){s.bi_valid>Buf_size-length?(s.bi_buf|=value<>Buf_size-s.bi_valid,s.bi_valid+=length-Buf_size):(s.bi_buf|=value<>>=1,res<<=1}while(--len>0);return res>>>1}function gen_codes(tree,max_code,bl_count){var bits,n,next_code=new Array(MAX_BITS+1),code=0;for(bits=1;bits<=MAX_BITS;bits++)next_code[bits]=code=code+bl_count[bits-1]<<1;for(n=0;n<=max_code;n++){var len=tree[2*n+1];0!==len&&(tree[2*n]=bi_reverse(next_code[len]++,len))}}function init_block(s){var n;for(n=0;n8?put_short(s,s.bi_buf):s.bi_valid>0&&(s.pending_buf[s.pending++]=s.bi_buf),s.bi_buf=0,s.bi_valid=0}function smaller(tree,n,m,depth){var _n2=2*n,_m2=2*m;return tree[_n2]>1;n>=1;n--)pqdownheap(s,tree,n);node=elems;do{n=s.heap[1],s.heap[1]=s.heap[s.heap_len--],pqdownheap(s,tree,1),m=s.heap[1],s.heap[--s.heap_max]=n,s.heap[--s.heap_max]=m,tree[2*node]=tree[2*n]+tree[2*m],s.depth[node]=(s.depth[n]>=s.depth[m]?s.depth[n]:s.depth[m])+1,tree[2*n+1]=tree[2*m+1]=node,s.heap[1]=node++,pqdownheap(s,tree,1)}while(s.heap_len>=2);s.heap[--s.heap_max]=s.heap[1],function gen_bitlen(s,desc){var h,n,m,bits,xbits,f,tree=desc.dyn_tree,max_code=desc.max_code,stree=desc.stat_desc.static_tree,has_stree=desc.stat_desc.has_stree,extra=desc.stat_desc.extra_bits,base=desc.stat_desc.extra_base,max_length=desc.stat_desc.max_length,overflow=0;for(bits=0;bits<=MAX_BITS;bits++)s.bl_count[bits]=0;for(tree[2*s.heap[s.heap_max]+1]=0,h=s.heap_max+1;hmax_length&&(bits=max_length,overflow++),tree[2*n+1]=bits,n>max_code||(s.bl_count[bits]++,xbits=0,n>=base&&(xbits=extra[n-base]),f=tree[2*n],s.opt_len+=f*(bits+xbits),has_stree&&(s.static_len+=f*(stree[2*n+1]+xbits)));if(0!==overflow){do{for(bits=max_length-1;0===s.bl_count[bits];)bits--;s.bl_count[bits]--,s.bl_count[bits+1]+=2,s.bl_count[max_length]--,overflow-=2}while(overflow>0);for(bits=max_length;0!==bits;bits--)for(n=s.bl_count[bits];0!==n;)(m=s.heap[--h])>max_code||(tree[2*m+1]!==bits&&(s.opt_len+=(bits-tree[2*m+1])*tree[2*m],tree[2*m+1]=bits),n--)}}(s,desc),gen_codes(tree,max_code,s.bl_count)}function scan_tree(s,tree,max_code){var n,curlen,prevlen=-1,nextlen=tree[1],count=0,max_count=7,min_count=4;for(0===nextlen&&(max_count=138,min_count=3),tree[2*(max_code+1)+1]=65535,n=0;n<=max_code;n++)curlen=nextlen,nextlen=tree[2*(n+1)+1],++count>=7;code0?(2===s.strm.data_type&&(s.strm.data_type=function detect_data_type(s){var n,black_mask=4093624447;for(n=0;n<=31;n++,black_mask>>>=1)if(1&black_mask&&0!==s.dyn_ltree[2*n])return Z_BINARY;if(0!==s.dyn_ltree[18]||0!==s.dyn_ltree[20]||0!==s.dyn_ltree[26])return Z_TEXT;for(n=32;n=3&&0===s.bl_tree[2*bl_order[max_blindex]+1];max_blindex--);return s.opt_len+=3*(max_blindex+1)+5+5+4,max_blindex}(s),opt_lenb=s.opt_len+3+7>>>3,(static_lenb=s.static_len+3+7>>>3)<=opt_lenb&&(opt_lenb=static_lenb)):opt_lenb=static_lenb=stored_len+5,stored_len+4<=opt_lenb&&-1!==buf?_tr_stored_block(s,buf,stored_len,last):4===s.strategy||static_lenb===opt_lenb?(send_bits(s,2+(last?1:0),3),compress_block(s,static_ltree,static_dtree)):(send_bits(s,4+(last?1:0),3),function send_all_trees(s,lcodes,dcodes,blcodes){var rank;for(send_bits(s,lcodes-257,5),send_bits(s,dcodes-1,5),send_bits(s,blcodes-4,4),rank=0;rank>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&dist,s.pending_buf[s.l_buf+s.last_lit]=255&lc,s.last_lit++,0===dist?s.dyn_ltree[2*lc]++:(s.matches++,dist--,s.dyn_ltree[2*(_length_code[lc]+LITERALS+1)]++,s.dyn_dtree[2*d_code(dist)]++),s.last_lit===s.lit_bufsize-1},exports._tr_align=function _tr_align(s){send_bits(s,2,3),send_code(s,END_BLOCK,static_ltree),function bi_flush(s){16===s.bi_valid?(put_short(s,s.bi_buf),s.bi_buf=0,s.bi_valid=0):s.bi_valid>=8&&(s.pending_buf[s.pending++]=255&s.bi_buf,s.bi_buf>>=8,s.bi_valid-=8)}(s)}},"./node_modules/pako/lib/zlib/zstream.js":function(module){"use strict";module.exports=function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"./node_modules/pbf/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";module.exports=Pbf;var ieee754=__webpack_require__("./node_modules/ieee754/index.js");function Pbf(buf){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(buf)?buf:new Uint8Array(buf||0),this.pos=0,this.type=0,this.length=this.buf.length}Pbf.Varint=0,Pbf.Fixed64=1,Pbf.Bytes=2,Pbf.Fixed32=5;var utf8TextDecoder="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function readPackedEnd(pbf){return pbf.type===Pbf.Bytes?pbf.readVarint()+pbf.pos:pbf.pos+1}function toNum(low,high,isSigned){return isSigned?4294967296*high+(low>>>0):4294967296*(high>>>0)+(low>>>0)}function makeRoomForExtraLength(startPos,len,pbf){var extraLen=len<=16383?1:len<=2097151?2:len<=268435455?3:Math.floor(Math.log(len)/(7*Math.LN2));pbf.realloc(extraLen);for(var i=pbf.pos-1;i>=startPos;i--)pbf.buf[i+extraLen]=pbf.buf[i]}function writePackedVarint(arr,pbf){for(var i=0;i>>8,buf[pos+2]=val>>>16,buf[pos+3]=val>>>24}function readInt32(buf,pos){return(buf[pos]|buf[pos+1]<<8|buf[pos+2]<<16)+(buf[pos+3]<<24)}Pbf.prototype={destroy:function(){this.buf=null},readFields:function(readField,result,end){for(end=end||this.length;this.pos>3,startPos=this.pos;this.type=7&val,readField(tag,result,this),this.pos===startPos&&this.skip(val)}return result},readMessage:function(readField,result){return this.readFields(readField,result,this.readVarint()+this.pos)},readFixed32:function(){var val=readUInt32(this.buf,this.pos);return this.pos+=4,val},readSFixed32:function(){var val=readInt32(this.buf,this.pos);return this.pos+=4,val},readFixed64:function(){var val=readUInt32(this.buf,this.pos)+4294967296*readUInt32(this.buf,this.pos+4);return this.pos+=8,val},readSFixed64:function(){var val=readUInt32(this.buf,this.pos)+4294967296*readInt32(this.buf,this.pos+4);return this.pos+=8,val},readFloat:function(){var val=ieee754.read(this.buf,this.pos,!0,23,4);return this.pos+=4,val},readDouble:function(){var val=ieee754.read(this.buf,this.pos,!0,52,8);return this.pos+=8,val},readVarint:function(isSigned){var val,b,buf=this.buf;return val=127&(b=buf[this.pos++]),b<128?val:(val|=(127&(b=buf[this.pos++]))<<7,b<128?val:(val|=(127&(b=buf[this.pos++]))<<14,b<128?val:(val|=(127&(b=buf[this.pos++]))<<21,b<128?val:function readVarintRemainder(l,s,p){var h,b,buf=p.buf;if(b=buf[p.pos++],h=(112&b)>>4,b<128)return toNum(l,h,s);if(b=buf[p.pos++],h|=(127&b)<<3,b<128)return toNum(l,h,s);if(b=buf[p.pos++],h|=(127&b)<<10,b<128)return toNum(l,h,s);if(b=buf[p.pos++],h|=(127&b)<<17,b<128)return toNum(l,h,s);if(b=buf[p.pos++],h|=(127&b)<<24,b<128)return toNum(l,h,s);if(b=buf[p.pos++],h|=(1&b)<<31,b<128)return toNum(l,h,s);throw new Error("Expected varint not more than 10 bytes")}(val|=(15&(b=buf[this.pos]))<<28,isSigned,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var num=this.readVarint();return num%2==1?(num+1)/-2:num/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var end=this.readVarint()+this.pos,pos=this.pos;return this.pos=end,end-pos>=12&&utf8TextDecoder?function readUtf8TextDecoder(buf,pos,end){return utf8TextDecoder.decode(buf.subarray(pos,end))}(this.buf,pos,end):function readUtf8(buf,pos,end){var str="",i=pos;for(;i239?4:b0>223?3:b0>191?2:1;if(i+bytesPerSequence>end)break;1===bytesPerSequence?b0<128&&(c=b0):2===bytesPerSequence?128==(192&(b1=buf[i+1]))&&(c=(31&b0)<<6|63&b1)<=127&&(c=null):3===bytesPerSequence?(b1=buf[i+1],b2=buf[i+2],128==(192&b1)&&128==(192&b2)&&((c=(15&b0)<<12|(63&b1)<<6|63&b2)<=2047||c>=55296&&c<=57343)&&(c=null)):4===bytesPerSequence&&(b1=buf[i+1],b2=buf[i+2],b3=buf[i+3],128==(192&b1)&&128==(192&b2)&&128==(192&b3)&&((c=(15&b0)<<18|(63&b1)<<12|(63&b2)<<6|63&b3)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,bytesPerSequence=1):c>65535&&(c-=65536,str+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),str+=String.fromCharCode(c),i+=bytesPerSequence}return str}(this.buf,pos,end)},readBytes:function(){var end=this.readVarint()+this.pos,buffer=this.buf.subarray(this.pos,end);return this.pos=end,buffer},readPackedVarint:function(arr,isSigned){if(this.type!==Pbf.Bytes)return arr.push(this.readVarint(isSigned));var end=readPackedEnd(this);for(arr=arr||[];this.pos127;);else if(type===Pbf.Bytes)this.pos=this.readVarint()+this.pos;else if(type===Pbf.Fixed32)this.pos+=4;else{if(type!==Pbf.Fixed64)throw new Error("Unimplemented type: "+type);this.pos+=8}},writeTag:function(tag,type){this.writeVarint(tag<<3|type)},realloc:function(min){for(var length=this.length||16;length268435455||val<0?function writeBigVarint(val,pbf){var low,high;val>=0?(low=val%4294967296|0,high=val/4294967296|0):(high=~(-val/4294967296),4294967295^(low=~(-val%4294967296))?low=low+1|0:(low=0,high=high+1|0));if(val>=0x10000000000000000||val<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");pbf.realloc(10),function writeBigVarintLow(low,high,pbf){pbf.buf[pbf.pos++]=127&low|128,low>>>=7,pbf.buf[pbf.pos++]=127&low|128,low>>>=7,pbf.buf[pbf.pos++]=127&low|128,low>>>=7,pbf.buf[pbf.pos++]=127&low|128,low>>>=7,pbf.buf[pbf.pos]=127&low}(low,0,pbf),function writeBigVarintHigh(high,pbf){var lsb=(7&high)<<4;if(pbf.buf[pbf.pos++]|=lsb|((high>>>=3)?128:0),!high)return;if(pbf.buf[pbf.pos++]=127&high|((high>>>=7)?128:0),!high)return;if(pbf.buf[pbf.pos++]=127&high|((high>>>=7)?128:0),!high)return;if(pbf.buf[pbf.pos++]=127&high|((high>>>=7)?128:0),!high)return;if(pbf.buf[pbf.pos++]=127&high|((high>>>=7)?128:0),!high)return;pbf.buf[pbf.pos++]=127&high}(high,pbf)}(val,this):(this.realloc(4),this.buf[this.pos++]=127&val|(val>127?128:0),val<=127||(this.buf[this.pos++]=127&(val>>>=7)|(val>127?128:0),val<=127||(this.buf[this.pos++]=127&(val>>>=7)|(val>127?128:0),val<=127||(this.buf[this.pos++]=val>>>7&127))))},writeSVarint:function(val){this.writeVarint(val<0?2*-val-1:2*val)},writeBoolean:function(val){this.writeVarint(Boolean(val))},writeString:function(str){str=String(str),this.realloc(4*str.length),this.pos++;var startPos=this.pos;this.pos=function writeUtf8(buf,str,pos){for(var c,lead,i=0;i55295&&c<57344){if(!lead){c>56319||i+1===str.length?(buf[pos++]=239,buf[pos++]=191,buf[pos++]=189):lead=c;continue}if(c<56320){buf[pos++]=239,buf[pos++]=191,buf[pos++]=189,lead=c;continue}c=lead-55296<<10|c-56320|65536,lead=null}else lead&&(buf[pos++]=239,buf[pos++]=191,buf[pos++]=189,lead=null);c<128?buf[pos++]=c:(c<2048?buf[pos++]=c>>6|192:(c<65536?buf[pos++]=c>>12|224:(buf[pos++]=c>>18|240,buf[pos++]=c>>12&63|128),buf[pos++]=c>>6&63|128),buf[pos++]=63&c|128)}return pos}(this.buf,str,this.pos);var len=this.pos-startPos;len>=128&&makeRoomForExtraLength(startPos,len,this),this.pos=startPos-1,this.writeVarint(len),this.pos+=len},writeFloat:function(val){this.realloc(4),ieee754.write(this.buf,val,this.pos,!0,23,4),this.pos+=4},writeDouble:function(val){this.realloc(8),ieee754.write(this.buf,val,this.pos,!0,52,8),this.pos+=8},writeBytes:function(buffer){var len=buffer.length;this.writeVarint(len),this.realloc(len);for(var i=0;i=128&&makeRoomForExtraLength(startPos,len,this),this.pos=startPos-1,this.writeVarint(len),this.pos+=len},writeMessage:function(tag,fn,obj){this.writeTag(tag,Pbf.Bytes),this.writeRawMessage(fn,obj)},writePackedVarint:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedVarint,arr)},writePackedSVarint:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedSVarint,arr)},writePackedBoolean:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedBoolean,arr)},writePackedFloat:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedFloat,arr)},writePackedDouble:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedDouble,arr)},writePackedFixed32:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedFixed32,arr)},writePackedSFixed32:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedSFixed32,arr)},writePackedFixed64:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedFixed64,arr)},writePackedSFixed64:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedSFixed64,arr)},writeBytesField:function(tag,buffer){this.writeTag(tag,Pbf.Bytes),this.writeBytes(buffer)},writeFixed32Field:function(tag,val){this.writeTag(tag,Pbf.Fixed32),this.writeFixed32(val)},writeSFixed32Field:function(tag,val){this.writeTag(tag,Pbf.Fixed32),this.writeSFixed32(val)},writeFixed64Field:function(tag,val){this.writeTag(tag,Pbf.Fixed64),this.writeFixed64(val)},writeSFixed64Field:function(tag,val){this.writeTag(tag,Pbf.Fixed64),this.writeSFixed64(val)},writeVarintField:function(tag,val){this.writeTag(tag,Pbf.Varint),this.writeVarint(val)},writeSVarintField:function(tag,val){this.writeTag(tag,Pbf.Varint),this.writeSVarint(val)},writeStringField:function(tag,str){this.writeTag(tag,Pbf.Bytes),this.writeString(str)},writeFloatField:function(tag,val){this.writeTag(tag,Pbf.Fixed32),this.writeFloat(val)},writeDoubleField:function(tag,val){this.writeTag(tag,Pbf.Fixed64),this.writeDouble(val)},writeBooleanField:function(tag,val){this.writeVarintField(tag,Boolean(val))}}},"./node_modules/polygon-clipping/dist/polygon-clipping.umd.js":function(module,__unused_webpack_exports,__webpack_require__){var process=__webpack_require__("./node_modules/process/browser.js");module.exports=function(){"use strict";function __generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!((t=(t=_.trys).length>0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]b?1:a0))break;if(null===t.right)break;if(comparator(i,t.right.key)>0&&(y=t.right,t.right=y.left,y.left=t,null===(t=y).right))break;l.right=t,l=t,t=t.right}}return l.right=t.left,r.left=t.right,t.left=N.right,t.right=N.left,t}function insert(i,data,t,comparator){var node=new Node(i,data);if(null===t)return node.left=node.right=null,node;var cmp=comparator(i,(t=splay(i,t,comparator)).key);return cmp<0?(node.left=t.left,node.right=t,t.left=null):cmp>=0&&(node.right=t.right,node.left=t,t.right=null),node}function split(key,v,comparator){var left=null,right=null;if(v){var cmp=comparator((v=splay(key,v,comparator)).key,key);0===cmp?(left=v.left,right=v.right):cmp<0?(right=v.right,v.right=null,left=v):(left=v.left,v.left=null,right=v)}return{left:left,right:right}}function merge(left,right,comparator){return null===right?left:(null===left||((right=splay(left.key,right,comparator)).left=left),right)}function printRow(root,prefix,isTail,out,printNode){if(root){out(prefix+(isTail?"└── ":"├── ")+printNode(root)+"\n");var indent=prefix+(isTail?" ":"│ ");root.left&&printRow(root.left,indent,!1,out,printNode),root.right&&printRow(root.right,indent,!0,out,printNode)}}var Tree=function(){function Tree(comparator){void 0===comparator&&(comparator=DEFAULT_COMPARE),this._root=null,this._size=0,this._comparator=comparator}return Tree.prototype.insert=function(key,data){return this._size++,this._root=insert(key,data,this._root,this._comparator)},Tree.prototype.add=function(key,data){var node=new Node(key,data);null===this._root&&(node.left=node.right=null,this._size++,this._root=node);var comparator=this._comparator,t=splay(key,this._root,comparator),cmp=comparator(key,t.key);return 0===cmp?this._root=t:(cmp<0?(node.left=t.left,node.right=t,t.left=null):cmp>0&&(node.right=t.right,node.left=t,t.right=null),this._size++,this._root=node),this._root},Tree.prototype.remove=function(key){this._root=this._remove(key,this._root,this._comparator)},Tree.prototype._remove=function(i,t,comparator){var x;return null===t?null:0===comparator(i,(t=splay(i,t,comparator)).key)?(null===t.left?x=t.right:(x=splay(i,t.left,comparator)).right=t.right,this._size--,x):t},Tree.prototype.pop=function(){var node=this._root;if(node){for(;node.left;)node=node.left;return this._root=splay(node.key,this._root,this._comparator),this._root=this._remove(node.key,this._root,this._comparator),{key:node.key,data:node.data}}return null},Tree.prototype.findStatic=function(key){for(var current=this._root,compare=this._comparator;current;){var cmp=compare(key,current.key);if(0===cmp)return current;current=cmp<0?current.left:current.right}return null},Tree.prototype.find=function(key){return this._root&&(this._root=splay(key,this._root,this._comparator),0!==this._comparator(key,this._root.key))?null:this._root},Tree.prototype.contains=function(key){for(var current=this._root,compare=this._comparator;current;){var cmp=compare(key,current.key);if(0===cmp)return!0;current=cmp<0?current.left:current.right}return!1},Tree.prototype.forEach=function(visitor,ctx){for(var current=this._root,Q=[],done=!1;!done;)null!==current?(Q.push(current),current=current.left):0!==Q.length?(current=Q.pop(),visitor.call(ctx,current),current=current.right):done=!0;return this},Tree.prototype.range=function(low,high,fn,ctx){for(var Q=[],compare=this._comparator,node=this._root;0!==Q.length||node;)if(node)Q.push(node),node=node.left;else{if(compare((node=Q.pop()).key,high)>0)break;if(compare(node.key,low)>=0&&fn.call(ctx,node))return this;node=node.right}return this},Tree.prototype.keys=function(){var keys=[];return this.forEach((function(_a){var key=_a.key;return keys.push(key)})),keys},Tree.prototype.values=function(){var values=[];return this.forEach((function(_a){var data=_a.data;return values.push(data)})),values},Tree.prototype.min=function(){return this._root?this.minNode(this._root).key:null},Tree.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},Tree.prototype.minNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.left;)t=t.left;return t},Tree.prototype.maxNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.right;)t=t.right;return t},Tree.prototype.at=function(index){for(var current=this._root,done=!1,i=0,Q=[];!done;)if(current)Q.push(current),current=current.left;else if(Q.length>0){if(current=Q.pop(),i===index)return current;i++,current=current.right}else done=!0;return null},Tree.prototype.next=function(d){var root=this._root,successor=null;if(d.right){for(successor=d.right;successor.left;)successor=successor.left;return successor}for(var comparator=this._comparator;root;){var cmp=comparator(d.key,root.key);if(0===cmp)break;cmp<0?(successor=root,root=root.left):root=root.right}return successor},Tree.prototype.prev=function(d){var root=this._root,predecessor=null;if(null!==d.left){for(predecessor=d.left;predecessor.right;)predecessor=predecessor.right;return predecessor}for(var comparator=this._comparator;root;){var cmp=comparator(d.key,root.key);if(0===cmp)break;cmp<0?root=root.left:(predecessor=root,root=root.right)}return predecessor},Tree.prototype.clear=function(){return this._root=null,this._size=0,this},Tree.prototype.toList=function(){return toList(this._root)},Tree.prototype.load=function(keys,values,presort){void 0===values&&(values=[]),void 0===presort&&(presort=!1);var size=keys.length,comparator=this._comparator;if(presort&&sort(keys,values,0,size-1,comparator),null===this._root)this._root=loadRecursive(keys,values,0,size),this._size=size;else{var mergedList=mergeLists(this.toList(),createList(keys,values),comparator);size=this._size+size,this._root=sortedListToBST({head:mergedList},0,size)}return this},Tree.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(Tree.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(Tree.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),Tree.prototype.toString=function(printNode){void 0===printNode&&(printNode=function(n){return String(n.key)});var out=[];return printRow(this._root,"",!0,(function(v){return out.push(v)}),printNode),out.join("")},Tree.prototype.update=function(key,newKey,newData){var comparator=this._comparator,_a=split(key,this._root,comparator),left=_a.left,right=_a.right;comparator(key,newKey)<0?right=insert(newKey,newData,right,comparator):left=insert(newKey,newData,left,comparator),this._root=merge(left,right,comparator)},Tree.prototype.split=function(key){return split(key,this._root,this._comparator)},Tree.prototype[Symbol.iterator]=function(){var current,Q,done;return __generator(this,(function(_a){switch(_a.label){case 0:current=this._root,Q=[],done=!1,_a.label=1;case 1:return done?[3,6]:null===current?[3,2]:(Q.push(current),current=current.left,[3,5]);case 2:return 0===Q.length?[3,4]:[4,current=Q.pop()];case 3:return _a.sent(),current=current.right,[3,5];case 4:done=!0,_a.label=5;case 5:return[3,1];case 6:return[2]}}))},Tree}();function loadRecursive(keys,values,start,end){var size=end-start;if(size>0){var middle=start+Math.floor(size/2),key=keys[middle],data=values[middle],node=new Node(key,data);return node.left=loadRecursive(keys,values,start,middle),node.right=loadRecursive(keys,values,middle+1,end),node}return null}function createList(keys,values){for(var head=new Node(null,null),p=head,i=0;i0?current=(current=p=p.next=Q.pop()).right:done=!0;return p.next=null,head.next}function sortedListToBST(list,start,end){var size=end-start;if(size>0){var middle=start+Math.floor(size/2),left=sortedListToBST(list,start,middle),root=list.head;return root.left=left,list.head=list.head.next,root.right=sortedListToBST(list,middle+1,end),root}return null}function mergeLists(l1,l2,compare){for(var head=new Node(null,null),p=head,p1=l1,p2=l2;null!==p1&&null!==p2;)compare(p1.key,p2.key)<0?(p.next=p1,p1=p1.next):(p.next=p2,p2=p2.next),p=p.next;return null!==p1?p.next=p1:null!==p2&&(p.next=p2),head.next}function sort(keys,values,left,right,compare){if(!(left>=right)){for(var pivot=keys[left+right>>1],i=left-1,j=right+1;;){do{i++}while(compare(keys[i],pivot)<0);do{j--}while(compare(keys[j],pivot)>0);if(i>=j)break;var tmp=keys[i];keys[i]=keys[j],keys[j]=tmp,tmp=values[i],values[i]=values[j],values[j]=tmp}sort(keys,values,left,j,compare),sort(keys,values,j+1,right,compare)}}const isInBbox=(bbox,point)=>bbox.ll.x<=point.x&&point.x<=bbox.ur.x&&bbox.ll.y<=point.y&&point.y<=bbox.ur.y,getBboxOverlap=(b1,b2)=>{if(b2.ur.x{if(-epsilon$1enow==fnow>-enow?(Q=enow,enow=e[++eindex]):(Q=fnow,fnow=f[++findex]);let hindex=0;if(eindexenow==fnow>-enow?(Qnew=enow+Q,hh=Q-(Qnew-enow),enow=e[++eindex]):(Qnew=fnow+Q,hh=Q-(Qnew-fnow),fnow=f[++findex]),Q=Qnew,0!==hh&&(h[hindex++]=hh);eindexenow==fnow>-enow?(Qnew=Q+enow,bvirt=Qnew-Q,hh=Q-(Qnew-bvirt)+(enow-bvirt),enow=e[++eindex]):(Qnew=Q+fnow,bvirt=Qnew-Q,hh=Q-(Qnew-bvirt)+(fnow-bvirt),fnow=f[++findex]),Q=Qnew,0!==hh&&(h[hindex++]=hh);for(;eindex=errbound||-det>=errbound)return det;if(bvirt=ax-acx,acxtail=ax-(acx+bvirt)+(bvirt-cx),bvirt=bx-bcx,bcxtail=bx-(bcx+bvirt)+(bvirt-cx),bvirt=ay-acy,acytail=ay-(acy+bvirt)+(bvirt-cy),bvirt=by-bcy,bcytail=by-(bcy+bvirt)+(bvirt-cy),0===acxtail&&0===acytail&&0===bcxtail&&0===bcytail)return det;if(errbound=ccwerrboundC*detsum+resulterrbound*Math.abs(det),det+=acx*bcytail+bcy*acxtail-(acy*bcxtail+bcx*acytail),det>=errbound||-det>=errbound)return det;s1=acxtail*bcy,c=splitter*acxtail,ahi=c-(c-acxtail),alo=acxtail-ahi,c=splitter*bcy,bhi=c-(c-bcy),blo=bcy-bhi,s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo),t1=acytail*bcx,c=splitter*acytail,ahi=c-(c-acytail),alo=acytail-ahi,c=splitter*bcx,bhi=c-(c-bcx),blo=bcx-bhi,t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo),_i=s0-t0,bvirt=s0-_i,u[0]=s0-(_i+bvirt)+(bvirt-t0),_j=s1+_i,bvirt=_j-s1,_0=s1-(_j-bvirt)+(_i-bvirt),_i=_0-t1,bvirt=_0-_i,u[1]=_0-(_i+bvirt)+(bvirt-t1),u3=_j+_i,bvirt=u3-_j,u[2]=_j-(u3-bvirt)+(_i-bvirt),u[3]=u3;const C1len=sum(4,B,4,u,C1);s1=acx*bcytail,c=splitter*acx,ahi=c-(c-acx),alo=acx-ahi,c=splitter*bcytail,bhi=c-(c-bcytail),blo=bcytail-bhi,s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo),t1=acy*bcxtail,c=splitter*acy,ahi=c-(c-acy),alo=acy-ahi,c=splitter*bcxtail,bhi=c-(c-bcxtail),blo=bcxtail-bhi,t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo),_i=s0-t0,bvirt=s0-_i,u[0]=s0-(_i+bvirt)+(bvirt-t0),_j=s1+_i,bvirt=_j-s1,_0=s1-(_j-bvirt)+(_i-bvirt),_i=_0-t1,bvirt=_0-_i,u[1]=_0-(_i+bvirt)+(bvirt-t1),u3=_j+_i,bvirt=u3-_j,u[2]=_j-(u3-bvirt)+(_i-bvirt),u[3]=u3;const C2len=sum(C1len,C1,4,u,C2);s1=acxtail*bcytail,c=splitter*acxtail,ahi=c-(c-acxtail),alo=acxtail-ahi,c=splitter*bcytail,bhi=c-(c-bcytail),blo=bcytail-bhi,s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo),t1=acytail*bcxtail,c=splitter*acytail,ahi=c-(c-acytail),alo=acytail-ahi,c=splitter*bcxtail,bhi=c-(c-bcxtail),blo=bcxtail-bhi,t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo),_i=s0-t0,bvirt=s0-_i,u[0]=s0-(_i+bvirt)+(bvirt-t0),_j=s1+_i,bvirt=_j-s1,_0=s1-(_j-bvirt)+(_i-bvirt),_i=_0-t1,bvirt=_0-_i,u[1]=_0-(_i+bvirt)+(bvirt-t1),u3=_j+_i,bvirt=u3-_j,u[2]=_j-(u3-bvirt)+(_i-bvirt),u[3]=u3;const Dlen=sum(C2len,C2,4,u,D);return D[Dlen-1]}function orient2d(ax,ay,bx,by,cx,cy){const detleft=(ay-cy)*(bx-cx),detright=(ax-cx)*(by-cy),det=detleft-detright,detsum=Math.abs(detleft+detright);return Math.abs(det)>=ccwerrboundA*detsum?det:-orient2dadapt(ax,ay,bx,by,cx,cy,detsum)}const crossProduct=(a,b)=>a.x*b.y-a.y*b.x,dotProduct=(a,b)=>a.x*b.x+a.y*b.y,compareVectorAngles=(basePt,endPt1,endPt2)=>{const res=orient2d(basePt.x,basePt.y,endPt1.x,endPt1.y,endPt2.x,endPt2.y);return res>0?-1:res<0?1:0},length=v=>Math.sqrt(dotProduct(v,v)),sineOfAngle=(pShared,pBase,pAngle)=>{const vBase={x:pBase.x-pShared.x,y:pBase.y-pShared.y},vAngle={x:pAngle.x-pShared.x,y:pAngle.y-pShared.y};return crossProduct(vAngle,vBase)/length(vAngle)/length(vBase)},cosineOfAngle=(pShared,pBase,pAngle)=>{const vBase={x:pBase.x-pShared.x,y:pBase.y-pShared.y},vAngle={x:pAngle.x-pShared.x,y:pAngle.y-pShared.y};return dotProduct(vAngle,vBase)/length(vAngle)/length(vBase)},horizontalIntersection=(pt,v,y)=>0===v.y?null:{x:pt.x+v.x/v.y*(y-pt.y),y:y},verticalIntersection=(pt,v,x)=>0===v.x?null:{x:x,y:pt.y+v.y/v.x*(x-pt.x)},intersection$1=(pt1,v1,pt2,v2)=>{if(0===v1.x)return verticalIntersection(pt2,v2,pt1.x);if(0===v2.x)return verticalIntersection(pt1,v1,pt2.x);if(0===v1.y)return horizontalIntersection(pt2,v2,pt1.y);if(0===v2.y)return horizontalIntersection(pt1,v1,pt2.y);const kross=crossProduct(v1,v2);if(0==kross)return null;const ve={x:pt2.x-pt1.x,y:pt2.y-pt1.y},d1=crossProduct(ve,v1)/kross,d2=crossProduct(ve,v2)/kross;return{x:(pt1.x+d2*v1.x+(pt2.x+d1*v2.x))/2,y:(pt1.y+d2*v1.y+(pt2.y+d1*v2.y))/2}};class SweepEvent{static compare(a,b){const ptCmp=SweepEvent.comparePoints(a.point,b.point);return 0!==ptCmp?ptCmp:(a.point!==b.point&&a.link(b),a.isLeft!==b.isLeft?a.isLeft?1:-1:Segment.compare(a.segment,b.segment))}static comparePoints(aPt,bPt){return aPt.xbPt.x?1:aPt.ybPt.y?1:0}constructor(point,isLeft){void 0===point.events?point.events=[this]:point.events.push(this),this.point=point,this.isLeft=isLeft}link(other){if(other.point===this.point)throw new Error("Tried to link already linked events");const otherEvents=other.point.events;for(let i=0,iMax=otherEvents.length;i{const nextEvent=linkedEvent.otherSE;cache.set(linkedEvent,{sine:sineOfAngle(this.point,baseEvent.point,nextEvent.point),cosine:cosineOfAngle(this.point,baseEvent.point,nextEvent.point)})};return(a,b)=>{cache.has(a)||fillCache(a),cache.has(b)||fillCache(b);const{sine:asine,cosine:acosine}=cache.get(a),{sine:bsine,cosine:bcosine}=cache.get(b);return asine>=0&&bsine>=0?acosinebcosine?-1:0:asine<0&&bsine<0?acosinebcosine?1:0:bsineasine?1:0}}}let segmentId=0;class Segment{static compare(a,b){const alx=a.leftSE.point.x,blx=b.leftSE.point.x,arx=a.rightSE.point.x,brx=b.rightSE.point.x;if(brxaly&&bly>ary)return-1;const aCmpBLeft=a.comparePoint(b.leftSE.point);if(aCmpBLeft<0)return 1;if(aCmpBLeft>0)return-1;const bCmpARight=b.comparePoint(a.rightSE.point);return 0!==bCmpARight?bCmpARight:-1}if(alx>blx){if(alybly&&aly>bry)return 1;const bCmpALeft=b.comparePoint(a.leftSE.point);if(0!==bCmpALeft)return bCmpALeft;const aCmpBRight=a.comparePoint(b.rightSE.point);return aCmpBRight<0?1:aCmpBRight>0?-1:1}if(alybly)return 1;if(arxbrx){const aCmpBRight=a.comparePoint(b.rightSE.point);if(aCmpBRight<0)return 1;if(aCmpBRight>0)return-1}if(arx!==brx){const ay=ary-aly,ax=arx-alx,by=bry-bly,bx=brx-blx;if(ay>ax&&bybx)return-1}return arx>brx?1:arxbry?1:a.idb.id?1:0}constructor(leftSE,rightSE,rings,windings){this.id=++segmentId,this.leftSE=leftSE,leftSE.segment=this,leftSE.otherSE=rightSE,this.rightSE=rightSE,rightSE.segment=this,rightSE.otherSE=leftSE,this.rings=rings,this.windings=windings}static fromRing(pt1,pt2,ring){let leftPt,rightPt,winding;const cmpPts=SweepEvent.comparePoints(pt1,pt2);if(cmpPts<0)leftPt=pt1,rightPt=pt2,winding=1;else{if(!(cmpPts>0))throw new Error(`Tried to create degenerate segment at [${pt1.x}, ${pt1.y}]`);leftPt=pt2,rightPt=pt1,winding=-1}const leftSE=new SweepEvent(leftPt,!0),rightSE=new SweepEvent(rightPt,!1);return new Segment(leftSE,rightSE,[ring],[winding])}replaceRightSE(newRightSE){this.rightSE=newRightSE,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){const y1=this.leftSE.point.y,y2=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:y1y2?y1:y2}}}vector(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}isAnEndpoint(pt){return pt.x===this.leftSE.point.x&&pt.y===this.leftSE.point.y||pt.x===this.rightSE.point.x&&pt.y===this.rightSE.point.y}comparePoint(point){if(this.isAnEndpoint(point))return 0;const lPt=this.leftSE.point,rPt=this.rightSE.point,v=this.vector();if(lPt.x===rPt.x)return point.x===lPt.x?0:point.x0&&newSeg.swapEvents(),SweepEvent.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),alreadyLinked&&(newLeftSE.checkForConsuming(),newRightSE.checkForConsuming()),newEvents}swapEvents(){const tmpEvt=this.rightSE;this.rightSE=this.leftSE,this.leftSE=tmpEvt,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let i=0,iMax=this.windings.length;i0){const tmp=consumer;consumer=consumee,consumee=tmp}if(consumer.prev===consumee){const tmp=consumer;consumer=consumee,consumee=tmp}for(let i=0,iMax=consumee.rings.length;i1===mps.length&&mps[0].isSubject;this._isInResult=isJustSubject(mpsBefore)!==isJustSubject(mpsAfter);break}default:throw new Error(`Unrecognized operation type found ${operation.type}`)}return this._isInResult}}class RingIn{constructor(geomRing,poly,isExterior){if(!Array.isArray(geomRing)||0===geomRing.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=poly,this.isExterior=isExterior,this.segments=[],"number"!=typeof geomRing[0][0]||"number"!=typeof geomRing[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const firstPoint=rounder.round(geomRing[0][0],geomRing[0][1]);this.bbox={ll:{x:firstPoint.x,y:firstPoint.y},ur:{x:firstPoint.x,y:firstPoint.y}};let prevPoint=firstPoint;for(let i=1,iMax=geomRing.length;ithis.bbox.ur.x&&(this.bbox.ur.x=point.x),point.y>this.bbox.ur.y&&(this.bbox.ur.y=point.y),prevPoint=point)}firstPoint.x===prevPoint.x&&firstPoint.y===prevPoint.y||this.segments.push(Segment.fromRing(prevPoint,firstPoint,this))}getSweepEvents(){const sweepEvents=[];for(let i=0,iMax=this.segments.length;ithis.bbox.ur.x&&(this.bbox.ur.x=ring.bbox.ur.x),ring.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=ring.bbox.ur.y),this.interiorRings.push(ring)}this.multiPoly=multiPoly}getSweepEvents(){const sweepEvents=this.exteriorRing.getSweepEvents();for(let i=0,iMax=this.interiorRings.length;ithis.bbox.ur.x&&(this.bbox.ur.x=poly.bbox.ur.x),poly.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=poly.bbox.ur.y),this.polys.push(poly)}this.isSubject=isSubject}getSweepEvents(){const sweepEvents=[];for(let i=0,iMax=this.polys.length;i0&&(leftMostEvt=evt)}let prevSeg=leftMostEvt.segment.prevInResult(),prevPrevSeg=prevSeg?prevSeg.prevInResult():null;for(;;){if(!prevSeg)return null;if(!prevPrevSeg)return prevSeg.ringOut;if(prevPrevSeg.ringOut!==prevSeg.ringOut)return prevPrevSeg.ringOut.enclosingRing()!==prevSeg.ringOut?prevSeg.ringOut:prevSeg.ringOut.enclosingRing();prevSeg=prevPrevSeg.prevInResult(),prevPrevSeg=prevSeg?prevSeg.prevInResult():null}}}class PolyOut{constructor(exteriorRing){this.exteriorRing=exteriorRing,exteriorRing.poly=this,this.interiorRings=[]}addInterior(ring){this.interiorRings.push(ring),ring.poly=this}getGeom(){const geom=[this.exteriorRing.getGeom()];if(null===geom[0])return null;for(let i=0,iMax=this.interiorRings.length;i1&&void 0!==arguments[1]?arguments[1]:Segment.compare;this.queue=queue,this.tree=new Tree(comparator),this.segments=[]}process(event){const segment=event.segment,newEvents=[];if(event.consumedBy)return event.isLeft?this.queue.remove(event.otherSE):this.tree.remove(segment),newEvents;const node=event.isLeft?this.tree.add(segment):this.tree.find(segment);if(!node)throw new Error(`Unable to find segment #${segment.id} [${segment.leftSE.point.x}, ${segment.leftSE.point.y}] -> [${segment.rightSE.point.x}, ${segment.rightSE.point.y}] in SweepLine tree.`);let prevSeg,nextSeg,prevNode=node,nextNode=node;for(;void 0===prevSeg;)prevNode=this.tree.prev(prevNode),null===prevNode?prevSeg=null:void 0===prevNode.key.consumedBy&&(prevSeg=prevNode.key);for(;void 0===nextSeg;)nextNode=this.tree.next(nextNode),null===nextNode?nextSeg=null:void 0===nextNode.key.consumedBy&&(nextSeg=nextNode.key);if(event.isLeft){let prevMySplitter=null;if(prevSeg){const prevInter=prevSeg.getIntersection(segment);if(null!==prevInter&&(segment.isAnEndpoint(prevInter)||(prevMySplitter=prevInter),!prevSeg.isAnEndpoint(prevInter))){const newEventsFromSplit=this._splitSafely(prevSeg,prevInter);for(let i=0,iMax=newEventsFromSplit.length;i0?(this.tree.remove(segment),newEvents.push(event)):(this.segments.push(segment),segment.prev=prevSeg)}else{if(prevSeg&&nextSeg){const inter=prevSeg.getIntersection(nextSeg);if(null!==inter){if(!prevSeg.isAnEndpoint(inter)){const newEventsFromSplit=this._splitSafely(prevSeg,inter);for(let i=0,iMax=newEventsFromSplit.length;iPOLYGON_CLIPPING_MAX_QUEUE_SIZE)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).")}const sweepLine=new SweepLine(queue);let prevQueueSize=queue.size,node=queue.pop();for(;node;){const evt=node.key;if(queue.size===prevQueueSize){const seg=evt.segment;throw new Error(`Unable to pop() ${evt.isLeft?"left":"right"} SweepEvent [${evt.point.x}, ${evt.point.y}] from segment #${seg.id} [${seg.leftSE.point.x}, ${seg.leftSE.point.y}] -> [${seg.rightSE.point.x}, ${seg.rightSE.point.y}] from queue.`)}if(queue.size>POLYGON_CLIPPING_MAX_QUEUE_SIZE)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");if(sweepLine.segments.length>POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");const newEvents=sweepLine.process(evt);for(let i=0,iMax=newEvents.length;i1?_len-1:0),_key=1;_key<_len;_key++)moreGeoms[_key-1]=arguments[_key];return operation.run("union",geom,moreGeoms)},intersection=function(geom){for(var _len2=arguments.length,moreGeoms=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)moreGeoms[_key2-1]=arguments[_key2];return operation.run("intersection",geom,moreGeoms)},xor=function(geom){for(var _len3=arguments.length,moreGeoms=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)moreGeoms[_key3-1]=arguments[_key3];return operation.run("xor",geom,moreGeoms)},difference=function(subjectGeom){for(var _len4=arguments.length,clippingGeoms=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)clippingGeoms[_key4-1]=arguments[_key4];return operation.run("difference",subjectGeom,clippingGeoms)};return{union:union,intersection:intersection,xor:xor,difference:difference}}()},"./node_modules/rbush/rbush.min.js":function(module){module.exports=function(){"use strict";function t(t,r,e,a,h){!function t(n,r,e,a,h){for(;a>e;){if(a-e>600){var o=a-e+1,s=r-e+1,l=Math.log(o),f=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*f*(o-f)/o)*(s-o/2<0?-1:1);t(n,r,Math.max(e,Math.floor(r-s*f/o+u)),Math.min(a,Math.floor(r+(o-s)*f/o+u)),h)}var p=n[r],d=e,x=a;for(i(n,e,r),h(n[a],p)>0&&i(n,e,a);d0;)x--}0===h(n[e],p)?i(n,e,x):i(n,++x,a),x<=r&&(e=x+1),r<=x&&(a=x-1)}}(t,r,e||0,a||t.length-1,h||n)}function i(t,i,n){var r=t[i];t[i]=t[n],t[n]=r}function n(t,i){return ti?1:0}var r=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function e(t,i,n){if(!n)return i.indexOf(t);for(var r=0;r=t.minX&&i.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function d(i,n,r,e,a){for(var h=[n,r];h.length;)if(!((r=h.pop())-(n=h.pop())<=e)){var o=n+Math.ceil((r-n)/e/2)*e;t(i,o,n,r,a),h.push(n,o,o,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var i=this.data,n=[];if(!c(t,i))return n;for(var r=this.toBBox,e=[];i;){for(var a=0;a=0&&e[i].children.length>this._maxEntries;)this._split(e,i),i--;this._adjustParentBBoxes(r,e,i)},r.prototype._split=function(t,i){var n=t[i],r=n.children.length,e=this._minEntries;this._chooseSplitAxis(n,e,r);var h=this._chooseSplitIndex(n,e,r),o=p(n.children.splice(h,n.children.length-h));o.height=n.height,o.leaf=n.leaf,a(n,this.toBBox),a(o,this.toBBox),i?t[i-1].children.push(o):this._splitRoot(n,o)},r.prototype._splitRoot=function(t,i){this.data=p([t,i]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,i,n){for(var r,e,a,o,s,l,u,m=1/0,c=1/0,p=i;p<=n-i;p++){var d=h(t,0,p,this.toBBox),x=h(t,p,n,this.toBBox),v=(e=d,a=x,o=void 0,s=void 0,l=void 0,u=void 0,o=Math.max(e.minX,a.minX),s=Math.max(e.minY,a.minY),l=Math.min(e.maxX,a.maxX),u=Math.min(e.maxY,a.maxY),Math.max(0,l-o)*Math.max(0,u-s)),M=f(d)+f(x);v=i;c--){var p=t.children[c];o(s,t.leaf?e(p):p),l+=u(s)}return l},r.prototype._adjustParentBBoxes=function(t,i,n){for(var r=n;r>=0;r--)o(i[r],t)},r.prototype._condense=function(t){for(var i=t.length-1,n=void 0;i>=0;i--)0===t[i].children.length?i>0?(n=t[i-1].children).splice(n.indexOf(t[i]),1):this.clear():a(t[i],this.toBBox)},r}()},"./node_modules/seedrandom/index.js":function(module,__unused_webpack_exports,__webpack_require__){var alea=__webpack_require__("./node_modules/seedrandom/lib/alea.js"),xor128=__webpack_require__("./node_modules/seedrandom/lib/xor128.js"),xorwow=__webpack_require__("./node_modules/seedrandom/lib/xorwow.js"),xorshift7=__webpack_require__("./node_modules/seedrandom/lib/xorshift7.js"),xor4096=__webpack_require__("./node_modules/seedrandom/lib/xor4096.js"),tychei=__webpack_require__("./node_modules/seedrandom/lib/tychei.js"),sr=__webpack_require__("./node_modules/seedrandom/seedrandom.js");sr.alea=alea,sr.xor128=xor128,sr.xorwow=xorwow,sr.xorshift7=xorshift7,sr.xor4096=xor4096,sr.tychei=tychei,module.exports=sr},"./node_modules/seedrandom/lib/alea.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function Alea(seed){var me=this,mash=function Mash(){var n=4022871197,mash=function(data){data=String(data);for(var i=0;i>>0,n=(h*=n)>>>0,n+=4294967296*(h-=n)}return 2.3283064365386963e-10*(n>>>0)};return mash}();me.next=function(){var t=2091639*me.s0+2.3283064365386963e-10*me.c;return me.s0=me.s1,me.s1=me.s2,me.s2=t-(me.c=0|t)},me.c=1,me.s0=mash(" "),me.s1=mash(" "),me.s2=mash(" "),me.s0-=mash(seed),me.s0<0&&(me.s0+=1),me.s1-=mash(seed),me.s1<0&&(me.s1+=1),me.s2-=mash(seed),me.s2<0&&(me.s2+=1),mash=null}function copy(f,t){return t.c=f.c,t.s0=f.s0,t.s1=f.s1,t.s2=f.s2,t}function impl(seed,opts){var xg=new Alea(seed),state=opts&&opts.state,prng=xg.next;return prng.int32=function(){return 4294967296*xg.next()|0},prng.double=function(){return prng()+11102230246251565e-32*(2097152*prng()|0)},prng.quick=prng,state&&("object"==typeof state&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.alea=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/lib/tychei.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function XorGen(seed){var me=this,strseed="";me.next=function(){var b=me.b,c=me.c,d=me.d,a=me.a;return b=b<<25^b>>>7^c,c=c-d|0,d=d<<24^d>>>8^a,a=a-b|0,me.b=b=b<<20^b>>>12^c,me.c=c=c-d|0,me.d=d<<16^c>>>16^a,me.a=a-b|0},me.a=0,me.b=0,me.c=-1640531527,me.d=1367130551,seed===Math.floor(seed)?(me.a=seed/4294967296|0,me.b=0|seed):strseed+=seed;for(var k=0;k>>0)/4294967296};return prng.double=function(){do{var result=((xg.next()>>>11)+(xg.next()>>>0)/4294967296)/(1<<21)}while(0===result);return result},prng.int32=xg.next,prng.quick=prng,state&&("object"==typeof state&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.tychei=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/lib/xor128.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function XorGen(seed){var me=this,strseed="";me.x=0,me.y=0,me.z=0,me.w=0,me.next=function(){var t=me.x^me.x<<11;return me.x=me.y,me.y=me.z,me.z=me.w,me.w^=me.w>>>19^t^t>>>8},seed===(0|seed)?me.x=seed:strseed+=seed;for(var k=0;k>>0)/4294967296};return prng.double=function(){do{var result=((xg.next()>>>11)+(xg.next()>>>0)/4294967296)/(1<<21)}while(0===result);return result},prng.int32=xg.next,prng.quick=prng,state&&("object"==typeof state&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.xor128=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/lib/xor4096.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function XorGen(seed){var me=this;me.next=function(){var t,v,w=me.w,X=me.X,i=me.i;return me.w=w=w+1640531527|0,v=X[i+34&127],t=X[i=i+1&127],v^=v<<13,t^=t<<17,v^=v>>>15,t^=t>>>12,v=X[i]=v^t,me.i=i,v+(w^w>>>16)|0},function init(me,seed){var t,v,i,j,w,X=[],limit=128;for(seed===(0|seed)?(v=seed,seed=null):(seed+="\0",v=0,limit=Math.max(limit,seed.length)),i=0,j=-32;j>>15,v^=v<<4,v^=v>>>13,j>=0&&(w=w+1640531527|0,i=0==(t=X[127&j]^=v+w)?i+1:0);for(i>=128&&(X[127&(seed&&seed.length||0)]=-1),i=127,j=512;j>0;--j)v=X[i+34&127],t=X[i=i+1&127],v^=v<<13,t^=t<<17,v^=v>>>15,t^=t>>>12,X[i]=v^t;me.w=w,me.X=X,me.i=i}(me,seed)}function copy(f,t){return t.i=f.i,t.w=f.w,t.X=f.X.slice(),t}function impl(seed,opts){null==seed&&(seed=+new Date);var xg=new XorGen(seed),state=opts&&opts.state,prng=function(){return(xg.next()>>>0)/4294967296};return prng.double=function(){do{var result=((xg.next()>>>11)+(xg.next()>>>0)/4294967296)/(1<<21)}while(0===result);return result},prng.int32=xg.next,prng.quick=prng,state&&(state.X&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.xor4096=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/lib/xorshift7.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function XorGen(seed){var me=this;me.next=function(){var t,v,X=me.x,i=me.i;return t=X[i],v=(t^=t>>>7)^t<<24,v^=(t=X[i+1&7])^t>>>10,v^=(t=X[i+3&7])^t>>>3,v^=(t=X[i+4&7])^t<<7,t=X[i+7&7],v^=(t^=t<<13)^t<<9,X[i]=v,me.i=i+1&7,v},function init(me,seed){var j,X=[];if(seed===(0|seed))X[0]=seed;else for(seed=""+seed,j=0;j0;--j)me.next()}(me,seed)}function copy(f,t){return t.x=f.x.slice(),t.i=f.i,t}function impl(seed,opts){null==seed&&(seed=+new Date);var xg=new XorGen(seed),state=opts&&opts.state,prng=function(){return(xg.next()>>>0)/4294967296};return prng.double=function(){do{var result=((xg.next()>>>11)+(xg.next()>>>0)/4294967296)/(1<<21)}while(0===result);return result},prng.int32=xg.next,prng.quick=prng,state&&(state.x&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.xorshift7=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/lib/xorwow.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function XorGen(seed){var me=this,strseed="";me.next=function(){var t=me.x^me.x>>>2;return me.x=me.y,me.y=me.z,me.z=me.w,me.w=me.v,(me.d=me.d+362437|0)+(me.v=me.v^me.v<<4^t^t<<1)|0},me.x=0,me.y=0,me.z=0,me.w=0,me.v=0,seed===(0|seed)?me.x=seed:strseed+=seed;for(var k=0;k>>4),me.next()}function copy(f,t){return t.x=f.x,t.y=f.y,t.z=f.z,t.w=f.w,t.v=f.v,t.d=f.d,t}function impl(seed,opts){var xg=new XorGen(seed),state=opts&&opts.state,prng=function(){return(xg.next()>>>0)/4294967296};return prng.double=function(){do{var result=((xg.next()>>>11)+(xg.next()>>>0)/4294967296)/(1<<21)}while(0===result);return result},prng.int32=xg.next,prng.quick=prng,state&&("object"==typeof state&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.xorwow=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/seedrandom.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,pool,math){var nodecrypto,width=256,startdenom=math.pow(width,6),significance=math.pow(2,52),overflow=2*significance,mask=width-1;function seedrandom(seed,options,callback){var key=[],shortseed=mixkey(flatten((options=1==options?{entropy:!0}:options||{}).entropy?[seed,tostring(pool)]:null==seed?function autoseed(){try{var out;return nodecrypto&&(out=nodecrypto.randomBytes)?out=out(width):(out=new Uint8Array(width),(global.crypto||global.msCrypto).getRandomValues(out)),tostring(out)}catch(e){var browser=global.navigator,plugins=browser&&browser.plugins;return[+new Date,global,plugins,global.screen,tostring(pool)]}}():seed,3),key),arc4=new ARC4(key),prng=function(){for(var n=arc4.g(6),d=startdenom,x=0;n=overflow;)n/=2,d/=2,x>>>=1;return(n+x)/d};return prng.int32=function(){return 0|arc4.g(4)},prng.quick=function(){return arc4.g(4)/4294967296},prng.double=prng,mixkey(tostring(arc4.S),pool),(options.pass||callback||function(prng,seed,is_math_call,state){return state&&(state.S&©(state,arc4),prng.state=function(){return copy(arc4,{})}),is_math_call?(math.random=prng,seed):prng})(prng,shortseed,"global"in options?options.global:this==math,options.state)}function ARC4(key){var t,keylen=key.length,me=this,i=0,j=me.i=me.j=0,s=me.S=[];for(keylen||(key=[keylen++]);i0&&sign&&"."!==trimmedStr[2])return str;if(!options.leadingZeros&&leadingZeros.length>0&&!sign&&"."!==trimmedStr[1])return str;{const num=Number(trimmedStr),numStr=""+num;return-1!==numStr.search(/[eE]/)||eNotation?options.eNotation?num:str:-1!==trimmedStr.indexOf(".")?"0"===numStr&&""===numTrimmedByZeros||numStr===numTrimmedByZeros||sign&&numStr==="-"+numTrimmedByZeros?num:str:leadingZeros?numTrimmedByZeros===numStr||sign+numTrimmedByZeros===numStr?num:str:trimmedStr===numStr||trimmedStr===sign+numStr?num:str}}return str}}},"./node_modules/turf-jsts/jsts.min.js":function(__unused_webpack_module,exports){!function(t){"use strict";function e(){}function n(t){this.message=t||""}function i(t){this.message=t||""}function r(t){this.message=t||""}function o(){}function s(t){return null===t?Mt:t.color}function a(t){return null===t?null:t.parent}function u(t,e){null!==t&&(t.color=e)}function l(t){return null===t?null:t.left}function c(t){return null===t?null:t.right}function p(){this.root_=null,this.size_=0}function h(){}function f(){this.array_=[],arguments[0]instanceof It&&this.addAll(arguments[0])}function g(){}function d(t){this.message=t||""}function y(){this.array_=[]}"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(null==this)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,i=1 in arguments&&parseInt(Number(arguments[1]),10)||0;i=i<0?Math.max(n+i,0):Math.min(i,n);var r=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(r=r<0?Math.max(n+arguments[2],0):Math.min(r,n);ie.x?1:this.ye.y?1:0},C.prototype.clone=function(){},C.prototype.copy=function(){return new C(this)},C.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},C.prototype.distance3D=function(t){var e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return Math.sqrt(e*e+n*n+i*i)},C.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},C.prototype.hashCode=function(){var t=17;return 37*(t=37*t+C.hashCode(this.x))+C.hashCode(this.y)},C.prototype.setCoordinate=function(t){this.x=t.x,this.y=t.y,this.z=t.z},C.prototype.interfaces_=function(){return[E,x,e]},C.prototype.getClass=function(){return C},C.hashCode=function(){if(1===arguments.length){var t=arguments[0],e=v.doubleToLongBits(t);return Math.trunc((e^e)>>>32)}},S.DimensionalComparator.get=function(){return L},S.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},S.NULL_ORDINATE.get=function(){return v.NaN},S.X.get=function(){return 0},S.Y.get=function(){return 1},S.Z.get=function(){return 2},Object.defineProperties(C,S);var L=function(t){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var e=arguments[0];if(2!==e&&3!==e)throw new m("only 2 or 3 dimensions may be specified");this._dimensionsToTest=e}};L.prototype.compare=function(t,e){var n=t,i=e,r=L.compare(n.x,i.x);if(0!==r)return r;var o=L.compare(n.y,i.y);return 0!==o?o:this._dimensionsToTest<=2?0:L.compare(n.z,i.z)},L.prototype.interfaces_=function(){return[N]},L.prototype.getClass=function(){return L},L.compare=function(t,e){return te?1:v.isNaN(t)?v.isNaN(e)?0:-1:v.isNaN(e)?1:0};var b=function(){};b.prototype.create=function(){},b.prototype.interfaces_=function(){return[]},b.prototype.getClass=function(){return b};var w=function(){},O={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};w.prototype.interfaces_=function(){return[]},w.prototype.getClass=function(){return w},w.toLocationSymbol=function(t){switch(t){case w.EXTERIOR:return"e";case w.BOUNDARY:return"b";case w.INTERIOR:return"i";case w.NONE:return"-"}throw new m("Unknown location value: "+t)},O.INTERIOR.get=function(){return 0},O.BOUNDARY.get=function(){return 1},O.EXTERIOR.get=function(){return 2},O.NONE.get=function(){return-1},Object.defineProperties(w,O);var T=function(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1},R=function(){},P={LOG_10:{configurable:!0}};R.prototype.interfaces_=function(){return[]},R.prototype.getClass=function(){return R},R.log10=function(t){var e=Math.log(t);return v.isInfinite(e)||v.isNaN(e)?e:e/R.LOG_10},R.min=function(t,e,n,i){var r=t;return en?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var i=arguments[0],r=arguments[1],o=arguments[2];return io?o:i}},R.wrap=function(t,e){return t<0?e- -t%e:t%e},R.max=function(){if(3===arguments.length){var e=arguments[1],n=arguments[2],i=arguments[0];return e>i&&(i=e),n>i&&(i=n),i}if(4===arguments.length){var o=arguments[1],s=arguments[2],a=arguments[3],u=arguments[0];return o>u&&(u=o),s>u&&(u=s),a>u&&(u=a),u}},R.average=function(t,e){return(t+e)/2},P.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(R,P);var D=function(t){this.str=t};D.prototype.append=function(t){this.str+=t},D.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},D.prototype.toString=function(t){return this.str};var M=function(t){this.value=t};M.prototype.intValue=function(){return this.value},M.prototype.compareTo=function(t){return this.valuet?1:0},M.isNaN=function(t){return Number.isNaN(t)};var A=function(){};A.isWhitespace=function(t){return t<=32&&t>=0||127===t},A.toUpperCase=function(t){return t.toUpperCase()};var F=function t(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length)if("number"==typeof arguments[0]){var e=arguments[0];this.init(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}else"string"==typeof arguments[0]&&t.call(this,t.parse(arguments[0]));else if(2===arguments.length){var r=arguments[0],o=arguments[1];this.init(r,o)}},G={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};F.prototype.le=function(t){return(this._hi9?(c=!0,p="9"):p="0"+l,s.append(p),n=n.subtract(F.valueOf(l)).multiply(F.TEN),c&&n.selfAdd(F.TEN);var h=!0,f=F.magnitude(n._hi);if(f<0&&Math.abs(f)>=a-u&&(h=!1),!h)break}return e[0]=i,s.toString()},F.prototype.sqr=function(){return this.multiply(this)},F.prototype.doubleValue=function(){return this._hi+this._lo},F.prototype.subtract=function(){if(arguments[0]instanceof F){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var e=arguments[0];return this.add(-e)}},F.prototype.equals=function(){if(1===arguments.length){var t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}},F.prototype.isZero=function(){return 0===this._hi&&0===this._lo},F.prototype.selfSubtract=function(){if(arguments[0]instanceof F){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t._hi,-t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e,0)}},F.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},F.prototype.min=function(t){return this.le(t)?this:t},F.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof F){var t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfDivide(e,0)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=null,o=null,s=null,a=null,u=null,l=null,c=null,p=null;return u=this._hi/n,p=(r=(l=F.SPLIT*u)-(r=l-u))*(s=(p=F.SPLIT*n)-(s=p-n))-(c=u*n)+r*(a=n-s)+(o=u-r)*s+o*a,p=u+(l=(this._hi-c-p+this._lo-u*i)/n),this._hi=p,this._lo=u-p+l,this}},F.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},F.prototype.divide=function(){if(arguments[0]instanceof F){var t=arguments[0],e=null,n=null,i=null,r=null,o=null,s=null,a=null,u=null;return n=(o=this._hi/t._hi)-(e=(s=F.SPLIT*o)-(e=s-o)),u=e*(i=(u=F.SPLIT*t._hi)-(i=u-t._hi))-(a=o*t._hi)+e*(r=t._hi-i)+n*i+n*r,s=(this._hi-a-u+this._lo-o*t._lo)/t._hi,new F(u=o+s,o-u+s)}if("number"==typeof arguments[0]){var l=arguments[0];return v.isNaN(l)?F.createNaN():F.copy(this).selfDivide(l,0)}},F.prototype.ge=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>=t._lo},F.prototype.pow=function(t){if(0===t)return F.valueOf(1);var e=new F(this),n=F.valueOf(1),i=Math.abs(t);if(i>1)for(;i>0;)i%2==1&&n.selfMultiply(e),(i/=2)>0&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n},F.prototype.ceil=function(){if(this.isNaN())return F.NaN;var t=Math.ceil(this._hi),e=0;return t===this._hi&&(e=Math.ceil(this._lo)),new F(t,e)},F.prototype.compareTo=function(t){var e=t;return this._hie._hi?1:this._loe._lo?1:0},F.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},F.prototype.setValue=function(){if(arguments[0]instanceof F){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var e=arguments[0];return this.init(e),this}},F.prototype.max=function(t){return this.ge(t)?this:t},F.prototype.sqrt=function(){if(this.isZero())return F.valueOf(0);if(this.isNegative())return F.NaN;var t=1/Math.sqrt(this._hi),e=this._hi*t,n=F.valueOf(e),i=this.subtract(n.sqr())._hi*(.5*t);return n.add(i)},F.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof F){var t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0],n=null,i=null,r=null,o=null,s=null,a=null;return o=(r=this._hi+e)-(s=r-this._hi),i=(a=(o=e-s+(this._hi-o))+this._lo)+(r-(n=r+a)),this._hi=n+i,this._lo=i+(n-this._hi),this}}else if(2===arguments.length){var u=arguments[0],l=arguments[1],c=null,p=null,h=null,f=null,g=null,d=null,y=null;f=this._hi+u,p=this._lo+l,g=f-(d=f-this._hi),h=p-(y=p-this._lo);var _=(c=f+(d=(g=u-d+(this._hi-g))+p))+(d=(h=l-y+(this._lo-h))+(d+(f-c))),m=d+(c-_);return this._hi=_,this._lo=m,this}},F.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof F){var t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfMultiply(e,0)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=null,o=null,s=null,a=null,u=null,l=null;r=(u=F.SPLIT*this._hi)-this._hi,l=F.SPLIT*n,r=u-r,o=this._hi-r,s=l-n;var c=(u=this._hi*n)+(l=r*(s=l-s)-u+r*(a=n-s)+o*s+o*a+(this._hi*i+this._lo*n)),p=l+(r=u-c);return this._hi=c,this._lo=p,this}},F.prototype.selfSqr=function(){return this.selfMultiply(this)},F.prototype.floor=function(){if(this.isNaN())return F.NaN;var t=Math.floor(this._hi),e=0;return t===this._hi&&(e=Math.floor(this._lo)),new F(t,e)},F.prototype.negate=function(){return this.isNaN()?this:new F(-this._hi,-this._lo)},F.prototype.clone=function(){},F.prototype.multiply=function(){if(arguments[0]instanceof F){var t=arguments[0];return t.isNaN()?F.createNaN():F.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var e=arguments[0];return v.isNaN(e)?F.createNaN():F.copy(this).selfMultiply(e,0)}},F.prototype.isNaN=function(){return v.isNaN(this._hi)},F.prototype.intValue=function(){return Math.trunc(this._hi)},F.prototype.toString=function(){var t=F.magnitude(this._hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()},F.prototype.toStandardNotation=function(){var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),i=e[0]+1,r=n;if("."===n.charAt(0))r="0"+n;else if(i<0)r="0."+F.stringOfChar("0",-i)+n;else if(-1===n.indexOf(".")){var o=i-n.length;r=n+F.stringOfChar("0",o)+".0"}return this.isNegative()?"-"+r:r},F.prototype.reciprocal=function(){var t=null,e=null,n=null,i=null,r=null,o=null,s=null,a=null;e=(r=1/this._hi)-(t=(o=F.SPLIT*r)-(t=o-r)),n=(a=F.SPLIT*this._hi)-this._hi;var u=r+(o=(1-(s=r*this._hi)-(a=t*(n=a-n)-s+t*(i=this._hi-n)+e*n+e*i)-r*this._lo)/this._hi);return new F(u,r-u+o)},F.prototype.toSciNotation=function(){if(this.isZero())return F.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),i=F.SCI_NOT_EXPONENT_CHAR+e[0];if("0"===n.charAt(0))throw new Error("Found leading zero: "+n);var r="";n.length>1&&(r=n.substring(1));var o=n.charAt(0)+"."+r;return this.isNegative()?"-"+o+i:o+i},F.prototype.abs=function(){return this.isNaN()?F.NaN:this.isNegative()?this.negate():new F(this)},F.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},F.prototype.lt=function(t){return(this._hit._hi||this._hi===t._hi)&&this._lo>t._lo},F.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},F.prototype.trunc=function(){return this.isNaN()?F.NaN:this.isPositive()?this.floor():this.ceil()},F.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},F.prototype.interfaces_=function(){return[e,E,x]},F.prototype.getClass=function(){return F},F.sqr=function(t){return F.valueOf(t).selfMultiply(t)},F.valueOf=function(){if("string"==typeof arguments[0]){var t=arguments[0];return F.parse(t)}if("number"==typeof arguments[0])return new F(arguments[0])},F.sqrt=function(t){return F.valueOf(t).sqrt()},F.parse=function(t){for(var e=0,n=t.length;A.isWhitespace(t.charAt(e));)e++;var i=!1;if(e=n);){var l=t.charAt(e);if(e++,A.isDigit(l)){var c=l-"0";o.selfMultiply(F.TEN),o.selfAdd(c),s++}else{if("."!==l){if("e"===l||"E"===l){var p=t.substring(e);try{u=M.parseInt(p)}catch(e){throw e instanceof Error?new Error("Invalid exponent "+p+" in string "+t):e}break}throw new Error("Unexpected character '"+l+"' at position "+e+" in string "+t)}a=s}}var h=o,f=s-a-u;if(0===f)h=o;else if(f>0){var g=F.TEN.pow(f);h=o.divide(g)}else if(f<0){var d=F.TEN.pow(-f);h=o.multiply(d)}return i?h.negate():h},F.createNaN=function(){return new F(v.NaN,v.NaN)},F.copy=function(t){return new F(t)},F.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),i=Math.trunc(Math.floor(n));return 10*Math.pow(10,i)<=e&&(i+=1),i},F.stringOfChar=function(t,e){for(var n=new D,i=0;i0){if(o<=0)return q.signum(s);i=r+o}else{if(!(r<0))return q.signum(s);if(o>=0)return q.signum(s);i=-r-o}var a=q.DP_SAFE_EPSILON*i;return s>=a||-s>=a?q.signum(s):2},q.signum=function(t){return t>0?1:t<0?-1:0},B.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(q,B);var V=function(){},U={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};U.X.get=function(){return 0},U.Y.get=function(){return 1},U.Z.get=function(){return 2},U.M.get=function(){return 3},V.prototype.setOrdinate=function(t,e,n){},V.prototype.size=function(){},V.prototype.getOrdinate=function(t,e){},V.prototype.getCoordinate=function(){},V.prototype.getCoordinateCopy=function(t){},V.prototype.getDimension=function(){},V.prototype.getX=function(t){},V.prototype.clone=function(){},V.prototype.expandEnvelope=function(t){},V.prototype.copy=function(){},V.prototype.getY=function(t){},V.prototype.toCoordinateArray=function(){},V.prototype.interfaces_=function(){return[x]},V.prototype.getClass=function(){return V},Object.defineProperties(V,U);var z=function(){},X=function(t){function e(){t.call(this,"Projective point not representable on the Cartesian plane.")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(z),Y=function(){};Y.arraycopy=function(t,e,n,i,r){for(var o=0,s=e;st._minx?this._minx:t._minx,n=this._miny>t._miny?this._miny:t._miny,i=this._maxx=this._minx&&e.getMaxX()<=this._maxx&&e.getMinY()>=this._miny&&e.getMaxY()<=this._maxy}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return!this.isNull()&&n>=this._minx&&n<=this._maxx&&i>=this._miny&&i<=this._maxy}},j.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof j){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxxthis._maxy||t._maxythis._maxx||nthis._maxy||ithis._maxx&&(this._maxx=e._maxx),e._minythis._maxy&&(this._maxy=e._maxy))}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.isNull()?(this._minx=n,this._maxx=n,this._miny=i,this._maxy=i):(nthis._maxx&&(this._maxx=n),ithis._maxy&&(this._maxy=i))}},j.prototype.minExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return te._minx?1:this._minye._miny?1:this._maxxe._maxx?1:this._maxye._maxy?1:0},j.prototype.translate=function(t,e){if(this.isNull())return null;this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)},j.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},j.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},j.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},j.prototype.maxExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t>e?t:e},j.prototype.expandBy=function(){if(1===arguments.length){var t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=e,this._maxx+=e,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},j.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof j){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof C){var e=arguments[0];return this.covers(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return this.covers(n,i)}},j.prototype.centre=function(){return this.isNull()?null:new C((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},j.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof C){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof j){var e=arguments[0];this._minx=e._minx,this._maxx=e._maxx,this._miny=e._miny,this._maxy=e._maxy}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.init(n.x,i.x,n.y,i.y)}else if(4===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];rt._maxx&&(e=this._minx-t._maxx);var n=0;return this._maxyt._maxy&&(n=this._miny-t._maxy),0===e?n:0===n?e:Math.sqrt(e*e+n*n)},j.prototype.hashCode=function(){var t=17;return 37*(t=37*(t=37*(t=37*t+C.hashCode(this._minx))+C.hashCode(this._maxx))+C.hashCode(this._miny))+C.hashCode(this._maxy)},j.prototype.interfaces_=function(){return[E,e]},j.prototype.getClass=function(){return j},j.intersects=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.xe.x?t.x:e.x)&&n.y>=(t.ye.y?t.y:e.y)}if(4===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2],s=arguments[3],a=Math.min(o.x,s.x),u=Math.max(o.x,s.x),l=Math.min(i.x,r.x),c=Math.max(i.x,r.x);return!(l>u||cu||cthis.getEdgeDistance(t,1)?(this._intLineIndex[t][0]=0,this._intLineIndex[t][1]=1):(this._intLineIndex[t][0]=1,this._intLineIndex[t][1]=0)}},nt.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},nt.prototype.setPrecisionModel=function(t){this._precisionModel=t},nt.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var t=arguments[0],e=0;er?i:r;else{var s=Math.abs(t.x-e.x),a=Math.abs(t.y-e.y);0!==(o=i>r?s:a)||t.equals(e)||(o=Math.max(s,a))}return et.isTrue(!(0===o&&!t.equals(e)),"Bad distance calculation"),o},nt.nonRobustComputeEdgeDistance=function(t,e,n){var i=t.x-e.x,r=t.y-e.y,o=Math.sqrt(i*i+r*r);return et.isTrue(!(0===o&&!t.equals(e)),"Invalid distance calculation"),o},it.DONT_INTERSECT.get=function(){return 0},it.DO_INTERSECT.get=function(){return 1},it.COLLINEAR.get=function(){return 2},it.NO_INTERSECTION.get=function(){return 0},it.POINT_INTERSECTION.get=function(){return 1},it.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(nt,it);var rt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isInSegmentEnvelopes=function(t){var e=new j(this._inputLines[0][0],this._inputLines[0][1]),n=new j(this._inputLines[1][0],this._inputLines[1][1]);return e.contains(t)&&n.contains(t)},e.prototype.computeIntersection=function(){if(3!==arguments.length)return t.prototype.computeIntersection.apply(this,arguments);var e=arguments[0],n=arguments[1],i=arguments[2];if(this._isProper=!1,j.intersects(n,i,e)&&0===at.orientationIndex(n,i,e)&&0===at.orientationIndex(i,n,e))return this._isProper=!0,(e.equals(n)||e.equals(i))&&(this._isProper=!1),this._result=t.POINT_INTERSECTION,null;this._result=t.NO_INTERSECTION},e.prototype.normalizeToMinimum=function(t,e,n,i,r){r.x=this.smallestInAbsValue(t.x,e.x,n.x,i.x),r.y=this.smallestInAbsValue(t.y,e.y,n.y,i.y),t.x-=r.x,t.y-=r.y,e.x-=r.x,e.y-=r.y,n.x-=r.x,n.y-=r.y,i.x-=r.x,i.y-=r.y},e.prototype.safeHCoordinateIntersection=function(t,n,i,r){var o=null;try{o=k.intersection(t,n,i,r)}catch(s){if(!(s instanceof X))throw s;o=e.nearestEndpoint(t,n,i,r)}return o},e.prototype.intersection=function(t,n,i,r){var o=this.intersectionWithNormalization(t,n,i,r);return this.isInSegmentEnvelopes(o)||(o=new C(e.nearestEndpoint(t,n,i,r))),null!==this._precisionModel&&this._precisionModel.makePrecise(o),o},e.prototype.smallestInAbsValue=function(t,e,n,i){var r=t,o=Math.abs(r);return Math.abs(e)1e-4&&Y.out.println("Distance = "+r.distance(o))},e.prototype.intersectionWithNormalization=function(t,e,n,i){var r=new C(t),o=new C(e),s=new C(n),a=new C(i),u=new C;this.normalizeToEnvCentre(r,o,s,a,u);var l=this.safeHCoordinateIntersection(r,o,s,a);return l.x+=u.x,l.y+=u.y,l},e.prototype.computeCollinearIntersection=function(e,n,i,r){var o=j.intersects(e,n,i),s=j.intersects(e,n,r),a=j.intersects(i,r,e),u=j.intersects(i,r,n);return o&&s?(this._intPt[0]=i,this._intPt[1]=r,t.COLLINEAR_INTERSECTION):a&&u?(this._intPt[0]=e,this._intPt[1]=n,t.COLLINEAR_INTERSECTION):o&&a?(this._intPt[0]=i,this._intPt[1]=e,!i.equals(e)||s||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):o&&u?(this._intPt[0]=i,this._intPt[1]=n,!i.equals(n)||s||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):s&&a?(this._intPt[0]=r,this._intPt[1]=e,!r.equals(e)||o||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):s&&u?(this._intPt[0]=r,this._intPt[1]=n,!r.equals(n)||o||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):t.NO_INTERSECTION},e.prototype.normalizeToEnvCentre=function(t,e,n,i,r){var o=t.xe.x?t.x:e.x,u=t.y>e.y?t.y:e.y,l=n.xi.x?n.x:i.x,h=n.y>i.y?n.y:i.y,f=((o>l?o:l)+(ac?s:c)+(u0&&s>0||o<0&&s<0)return t.NO_INTERSECTION;var a=at.orientationIndex(i,r,e),u=at.orientationIndex(i,r,n);return a>0&&u>0||a<0&&u<0?t.NO_INTERSECTION:0===o&&0===s&&0===a&&0===u?this.computeCollinearIntersection(e,n,i,r):(0===o||0===s||0===a||0===u?(this._isProper=!1,e.equals2D(i)||e.equals2D(r)?this._intPt[0]=e:n.equals2D(i)||n.equals2D(r)?this._intPt[0]=n:0===o?this._intPt[0]=new C(i):0===s?this._intPt[0]=new C(r):0===a?this._intPt[0]=new C(e):0===u&&(this._intPt[0]=new C(n))):(this._isProper=!0,this._intPt[0]=this.intersection(e,n,i,r)),t.POINT_INTERSECTION)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.nearestEndpoint=function(t,e,n,i){var r=t,o=at.distancePointLine(t,n,i),s=at.distancePointLine(e,n,i);return s0?n>0?-r:r:n>0?r:-r;if(0===e||0===n)return i>0?t>0?r:-r:t>0?-r:r;if(e>0?i>0?e<=i||(r=-r,o=t,t=n,n=o,o=e,e=i,i=o):e<=-i?(r=-r,n=-n,i=-i):(o=t,t=-n,n=o,o=e,e=-i,i=o):i>0?-e<=i?(r=-r,t=-t,e=-e):(o=-t,t=n,n=o,o=-e,e=i,i=o):e>=i?(t=-t,e=-e,n=-n,i=-i):(r=-r,o=-t,t=-n,n=o,o=-e,e=-i,i=o),t>0){if(!(n>0))return r;if(!(t<=n))return r}else{if(n>0)return-r;if(!(t>=n))return-r;r=-r,t=-t,n=-n}for(;;){if((i-=(s=Math.floor(n/t))*e)<0)return-r;if(i>e)return r;if(t>(n-=s*t)+n){if(ei+i)return-r;n=t-n,i=e-i,r=-r}if(0===i)return 0===n?0:-r;if(0===n)return r;if((e-=(s=Math.floor(t/n))*i)<0)return r;if(e>i)return-r;if(n>(t-=s*n)+t){if(ie+e)return r;t=n-t,e=i-e,r=-r}if(0===e)return 0===t?0:r;if(0===t)return-r}};var st=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var t=arguments[0];this._p=t};st.prototype.countSegment=function(t,e){if(t.xi&&(n=e.x,i=t.x),this._p.x>=n&&this._p.x<=i&&(this._isPointOnSegment=!0),null}if(t.y>this._p.y&&e.y<=this._p.y||e.y>this._p.y&&t.y<=this._p.y){var r=t.x-this._p.x,o=t.y-this._p.y,s=e.x-this._p.x,a=e.y-this._p.y,u=ot.signOfDet2x2(r,o,s,a);if(0===u)return this._isPointOnSegment=!0,null;a0&&this._crossingCount++}},st.prototype.isPointInPolygon=function(){return this.getLocation()!==w.EXTERIOR},st.prototype.getLocation=function(){return this._isPointOnSegment?w.BOUNDARY:this._crossingCount%2==1?w.INTERIOR:w.EXTERIOR},st.prototype.isOnSegment=function(){return this._isPointOnSegment},st.prototype.interfaces_=function(){return[]},st.prototype.getClass=function(){return st},st.locatePointInRing=function(){if(arguments[0]instanceof C&&T(arguments[1],V)){for(var e=arguments[1],n=new st(arguments[0]),i=new C,r=new C,o=1;o1||a<0||a>1)&&(r=!0)}}else r=!0;return r?R.min(at.distancePointLine(t,n,i),at.distancePointLine(e,n,i),at.distancePointLine(n,t,e),at.distancePointLine(i,t,e)):0},at.isPointInRing=function(t,e){return at.locatePointInRing(t,e)!==w.EXTERIOR},at.computeLength=function(t){var e=t.size();if(e<=1)return 0;var n=0,i=new C;t.getCoordinate(0,i);for(var r=i.x,o=i.y,s=1;sn.y&&(n=o,i=r)}var s=i;do{(s-=1)<0&&(s=e)}while(t[s].equals2D(n)&&s!==i);var a=i;do{a=(a+1)%e}while(t[a].equals2D(n)&&a!==i);var u=t[s],l=t[a];if(u.equals2D(n)||l.equals2D(n)||u.equals2D(l))return!1;var c=at.computeOrientation(u,n,l);return 0===c?u.x>l.x:c>0},at.locatePointInRing=function(t,e){return st.locatePointInRing(t,e)},at.distancePointLinePerpendicular=function(t,e,n){var i=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),r=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/i;return Math.abs(r)*Math.sqrt(i)},at.computeOrientation=function(t,e,n){return at.orientationIndex(t,e,n)},at.distancePointLine=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(0===e.length)throw new m("Line array must contain at least one vertex");for(var n=t.distance(e[0]),i=0;i=1)return o.distance(a);var c=((s.y-o.y)*(a.x-s.x)-(s.x-o.x)*(a.y-s.y))/u;return Math.abs(c)*Math.sqrt(u)}},at.isOnLine=function(t,e){for(var n=new rt,i=1;i0},_t.prototype.interfaces_=function(){return[gt]},_t.prototype.getClass=function(){return _t};var mt=function(){};mt.prototype.isInBoundary=function(t){return t>1},mt.prototype.interfaces_=function(){return[gt]},mt.prototype.getClass=function(){return mt};var vt=function(){};vt.prototype.isInBoundary=function(t){return 1===t},vt.prototype.interfaces_=function(){return[gt]},vt.prototype.getClass=function(){return vt};var It=function(){};It.prototype.add=function(){},It.prototype.addAll=function(){},It.prototype.isEmpty=function(){},It.prototype.iterator=function(){},It.prototype.size=function(){},It.prototype.toArray=function(){},It.prototype.remove=function(){},(n.prototype=new Error).name="IndexOutOfBoundsException";var Et=function(){};Et.prototype.hasNext=function(){},Et.prototype.next=function(){},Et.prototype.remove=function(){};var xt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(){},e.prototype.set=function(){},e.prototype.isEmpty=function(){},e}(It);(i.prototype=new Error).name="NoSuchElementException";var Nt=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof It&&this.addAll(arguments[0])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.ensureCapacity=function(){},e.prototype.interfaces_=function(){return[t,It]},e.prototype.add=function(t){return 1===arguments.length?this.array_.push(t):this.array_.splice(arguments[0],arguments[1]),!0},e.prototype.clear=function(){this.array_=[]},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},e.prototype.iterator=function(){return new Ct(this)},e.prototype.get=function(t){if(t<0||t>=this.size())throw new n;return this.array_[t]},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.size=function(){return this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e=1&&this.get(this.size()-1).equals2D(r))return null;t.prototype.add.call(this,r)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var o=arguments[0],s=arguments[1];return this.add(o,s),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var a=arguments[0],u=arguments[1];if(arguments[2])for(var l=0;l=0;c--)this.add(a[c],u);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof C){var p=arguments[0],h=arguments[1];if(!arguments[2]){var f=this.size();if(f>0){if(p>0&&this.get(p-1).equals2D(h))return null;if(p_&&(m=-1);for(var v=y;v!==_;v+=m)this.add(g[v],d);return!0}},e.prototype.closeRing=function(){this.size()>0&&this.add(new C(this.get(0)),!1)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},Object.defineProperties(e,n),e}(Nt),Lt=function(){},bt={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};bt.ForwardComparator.get=function(){return wt},bt.BidirectionalComparator.get=function(){return Ot},bt.coordArrayType.get=function(){return new Array(0).fill(null)},Lt.prototype.interfaces_=function(){return[]},Lt.prototype.getClass=function(){return Lt},Lt.isRing=function(t){return!(t.length<4||!t[0].equals2D(t[t.length-1]))},Lt.ptNotInList=function(t,e){for(var n=0;n=t?e:[]},Lt.indexOf=function(t,e){for(var n=0;n0)&&(e=t[n]);return e},Lt.extract=function(t,e,n){e=R.clamp(e,0,t.length);var i=(n=R.clamp(n,-1,t.length))-e+1;n<0&&(i=0),e>=t.length&&(i=0),ni.length)return 1;if(0===n.length)return 0;var r=Lt.compare(n,i);return Lt.isEqualReversed(n,i)?0:r},Ot.prototype.OLDcompare=function(t,e){var n=t,i=e;if(n.lengthi.length)return 1;if(0===n.length)return 0;for(var r=Lt.increasingDirection(n),o=Lt.increasingDirection(i),s=r>0?0:n.length-1,a=o>0?0:n.length-1,u=0;u0))return e.value;e=e.right}}return null},p.prototype.put=function(t,e){if(null===this.root_)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:Mt,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,i,r=this.root_;do{if(n=r,(i=t.compareTo(r.key))<0)r=r.left;else{if(!(i>0)){var o=r.value;return r.value=e,o}r=r.right}}while(null!==r);var s={key:t,left:null,right:null,value:e,parent:n,color:Mt,getValue:function(){return this.value},getKey:function(){return this.key}};return i<0?n.left=s:n.right=s,this.fixAfterInsertion(s),this.size_++,null},p.prototype.fixAfterInsertion=function(t){for(t.color=1;null!=t&&t!==this.root_&&1===t.parent.color;)if(a(t)===l(a(a(t)))){var e=c(a(a(t)));1===s(e)?(u(a(t),Mt),u(e,Mt),u(a(a(t)),1),t=a(a(t))):(t===c(a(t))&&(t=a(t),this.rotateLeft(t)),u(a(t),Mt),u(a(a(t)),1),this.rotateRight(a(a(t))))}else{var n=l(a(a(t)));1===s(n)?(u(a(t),Mt),u(n,Mt),u(a(a(t)),1),t=a(a(t))):(t===l(a(t))&&(t=a(t),this.rotateRight(t)),u(a(t),Mt),u(a(a(t)),1),this.rotateLeft(a(a(t))))}this.root_.color=Mt},p.prototype.values=function(){var t=new Nt,e=this.getFirstEntry();if(null!==e)for(t.add(e.value);null!==(e=p.successor(e));)t.add(e.value);return t},p.prototype.entrySet=function(){var t=new Pt,e=this.getFirstEntry();if(null!==e)for(t.add(e);null!==(e=p.successor(e));)t.add(e);return t},p.prototype.rotateLeft=function(t){if(null!=t){var e=t.right;t.right=e.left,null!=e.left&&(e.left.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.left===t?t.parent.left=e:t.parent.right=e,e.left=t,t.parent=e}},p.prototype.rotateRight=function(t){if(null!=t){var e=t.left;t.left=e.right,null!=e.right&&(e.right.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.right===t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}},p.prototype.getFirstEntry=function(){var t=this.root_;if(null!=t)for(;null!=t.left;)t=t.left;return t},p.successor=function(t){if(null===t)return null;if(null!==t.right){for(var e=t.right;null!==e.left;)e=e.left;return e}for(var n=t.parent,i=t;null!==n&&i===n.right;)i=n,n=n.parent;return n},p.prototype.size=function(){return this.size_};var At=function(){};At.prototype.interfaces_=function(){return[]},At.prototype.getClass=function(){return At},h.prototype=new o,(f.prototype=new h).contains=function(t){for(var e=0,n=this.array_.length;e=0;){var s=r.substring(0,o);i.add(s),o=(r=r.substring(o+n)).indexOf(e)}r.length>0&&i.add(r);for(var a=new Array(i.size()).fill(null),u=0;u0)for(var o=r;o0&&i.append(" ");for(var o=0;o0&&i.append(","),i.append(jt.toString(t.getOrdinate(r,o)))}return i.append(")"),i.toString()}},Wt.ensureValidRing=function(t,e){var n=e.size();return 0===n?e:n<=3?Wt.createClosedRing(t,e,4):e.getOrdinate(0,V.X)===e.getOrdinate(n-1,V.X)&&e.getOrdinate(0,V.Y)===e.getOrdinate(n-1,V.Y)?e:Wt.createClosedRing(t,e,n+1)},Wt.createClosedRing=function(t,e,n){var i=t.create(n,e.getDimension()),r=e.size();Wt.copy(e,0,i,0,r);for(var o=r;o0&&Wt.reverse(this._points),null}},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?qt.FALSE:0},e.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},e.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},e.prototype.getDimension=function(){return 1},e.prototype.getLength=function(){return at.computeLength(this._points)},e.prototype.getNumPoints=function(){return this._points.size()},e.prototype.reverse=function(){var t=this._points.copy();return Wt.reverse(t),this.getFactory().createLineString(t)},e.prototype.compareToSameClass=function(){if(1===arguments.length){for(var t=arguments[0],e=0,n=0;e= 2)");this._points=t},e.prototype.isCoordinate=function(t){for(var e=0;e=1&&this.getCoordinateSequence().size()= 4)")},e.prototype.getGeometryType=function(){return"LinearRing"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.MINIMUM_VALID_SIZE.get=function(){return 4},n.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(e,n),e}(Kt),ne=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return ct.SORTINDEX_MULTIPOLYGON},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n0?e.createPoint(n[0]):e.createPoint():t},se.prototype.interfaces_=function(){return[ie.GeometryEditorOperation]},se.prototype.getClass=function(){return se};var ae=function(){};ae.prototype.edit=function(t,e){return t instanceof ee?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof Kt?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof Qt?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},ae.prototype.interfaces_=function(){return[ie.GeometryEditorOperation]},ae.prototype.getClass=function(){return ae};var ue=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var t=arguments[0];this._coordinates=new Array(t).fill(null);for(var e=0;e0){var t=new D(17*this._coordinates.length);t.append("("),t.append(this._coordinates[0]);for(var e=1;e3&&(i=3),i<2?new ue(n):new ue(n,i)}},ce.prototype.interfaces_=function(){return[b,e]},ce.prototype.getClass=function(){return ce},ce.instance=function(){return ce.instanceObject},pe.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},pe.instanceObject.get=function(){return new ce},Object.defineProperties(ce,pe);var he=function(t){function e(){t.call(this),this.map_=new Map}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return this.map_.get(t)||null},e.prototype.put=function(t,e){return this.map_.set(t,e),e},e.prototype.values=function(){for(var t=new Nt,e=this.map_.values(),n=e.next();!n.done;)t.add(n.value),n=e.next();return t},e.prototype.entrySet=function(){var t=new Pt;return this.map_.entries().forEach((function(e){return t.add(e)})),t},e.prototype.size=function(){return this.map_.size()},e}(Tt),fe=function t(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=t.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof de){var e=arguments[0];this._modelType=e,e===t.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var n=arguments[0];this._modelType=t.FIXED,this.setScale(n)}else if(arguments[0]instanceof t){var i=arguments[0];this._modelType=i._modelType,this._scale=i._scale}},ge={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};fe.prototype.equals=function(t){if(!(t instanceof fe))return!1;var e=t;return this._modelType===e._modelType&&this._scale===e._scale},fe.prototype.compareTo=function(t){var e=t,n=this.getMaximumSignificantDigits(),i=e.getMaximumSignificantDigits();return new M(n).compareTo(new M(i))},fe.prototype.getScale=function(){return this._scale},fe.prototype.isFloating=function(){return this._modelType===fe.FLOATING||this._modelType===fe.FLOATING_SINGLE},fe.prototype.getType=function(){return this._modelType},fe.prototype.toString=function(){var t="UNKNOWN";return this._modelType===fe.FLOATING?t="Floating":this._modelType===fe.FLOATING_SINGLE?t="Floating-Single":this._modelType===fe.FIXED&&(t="Fixed (Scale="+this.getScale()+")"),t},fe.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var t=arguments[0];return v.isNaN(t)||this._modelType===fe.FLOATING_SINGLE?t:this._modelType===fe.FIXED?Math.round(t*this._scale)/this._scale:t}if(arguments[0]instanceof C){var e=arguments[0];if(this._modelType===fe.FLOATING)return null;e.x=this.makePrecise(e.x),e.y=this.makePrecise(e.y)}},fe.prototype.getMaximumSignificantDigits=function(){var t=16;return this._modelType===fe.FLOATING?t=16:this._modelType===fe.FLOATING_SINGLE?t=6:this._modelType===fe.FIXED&&(t=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),t},fe.prototype.setScale=function(t){this._scale=Math.abs(t)},fe.prototype.interfaces_=function(){return[e,E]},fe.prototype.getClass=function(){return fe},fe.mostPrecise=function(t,e){return t.compareTo(e)>=0?t:e},ge.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},ge.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(fe,ge);var de=function t(e){this._name=e||null,t.nameToTypeMap.put(e,this)},ye={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};de.prototype.readResolve=function(){return de.nameToTypeMap.get(this._name)},de.prototype.toString=function(){return this._name},de.prototype.interfaces_=function(){return[e]},de.prototype.getClass=function(){return de},ye.serialVersionUID.get=function(){return-552860263173159e4},ye.nameToTypeMap.get=function(){return new he},Object.defineProperties(de,ye),fe.Type=de,fe.FIXED=new de("FIXED"),fe.FLOATING=new de("FLOATING"),fe.FLOATING_SINGLE=new de("FLOATING SINGLE");var _e=function t(){this._precisionModel=new fe,this._SRID=0,this._coordinateSequenceFactory=t.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?T(arguments[0],b)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof fe&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},me={serialVersionUID:{configurable:!0}};_e.prototype.toGeometry=function(t){return t.isNull()?this.createPoint(null):t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new C(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new C(t.getMinX(),t.getMinY()),new C(t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new C(t.getMinX(),t.getMinY()),new C(t.getMinX(),t.getMaxY()),new C(t.getMaxX(),t.getMaxY()),new C(t.getMaxX(),t.getMinY()),new C(t.getMinX(),t.getMinY())]),null)},_e.prototype.createLineString=function(t){return t?t instanceof Array?new Kt(this.getCoordinateSequenceFactory().create(t),this):T(t,V)?new Kt(t,this):void 0:new Kt(this.getCoordinateSequenceFactory().create([]),this)},_e.prototype.createMultiLineString=function(){return 0===arguments.length?new Xt(null,this):1===arguments.length?new Xt(arguments[0],this):void 0},_e.prototype.buildGeometry=function(t){for(var e=null,n=!1,i=!1,r=t.iterator();r.hasNext();){var o=r.next(),s=o.getClass();null===e&&(e=s),s!==e&&(n=!0),o.isGeometryCollectionOrDerived()&&(i=!0)}if(null===e)return this.createGeometryCollection();if(n||i)return this.createGeometryCollection(_e.toGeometryArray(t));var a=t.iterator().next();if(t.size()>1){if(a instanceof $t)return this.createMultiPolygon(_e.toPolygonArray(t));if(a instanceof Kt)return this.createMultiLineString(_e.toLineStringArray(t));if(a instanceof Qt)return this.createMultiPoint(_e.toPointArray(t));et.shouldNeverReachHere("Unhandled class: "+a.getClass().getName())}return a},_e.prototype.createMultiPointFromCoords=function(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)},_e.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof C){var t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if(T(arguments[0],V))return new Qt(arguments[0],this)}},_e.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},_e.prototype.createPolygon=function(){if(0===arguments.length)return new $t(null,null,this);if(1===arguments.length){if(T(arguments[0],V)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof ee){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length)return new $t(arguments[0],arguments[1],this)},_e.prototype.getSRID=function(){return this._SRID},_e.prototype.createGeometryCollection=function(){return 0===arguments.length?new zt(null,this):1===arguments.length?new zt(arguments[0],this):void 0},_e.prototype.createGeometry=function(t){return new ie(this).edit(t,{edit:function(){if(2===arguments.length){var t=arguments[0];return this._coordinateSequenceFactory.create(t)}}})},_e.prototype.getPrecisionModel=function(){return this._precisionModel},_e.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(T(arguments[0],V))return new ee(arguments[0],this)}},_e.prototype.createMultiPolygon=function(){return 0===arguments.length?new ne(null,this):1===arguments.length?new ne(arguments[0],this):void 0},_e.prototype.createMultiPoint=function(){if(0===arguments.length)return new te(null,this);if(1===arguments.length){if(arguments[0]instanceof Array)return new te(arguments[0],this);if(arguments[0]instanceof Array){var e=arguments[0];return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(T(arguments[0],V)){var n=arguments[0];if(null===n)return this.createMultiPoint(new Array(0).fill(null));for(var i=new Array(n.size()).fill(null),r=0;r=this.size())throw new Error;return this.array_[t]},y.prototype.push=function(t){return this.array_.push(t),t},y.prototype.pop=function(t){if(0===this.array_.length)throw new d;return this.array_.pop()},y.prototype.peek=function(){if(0===this.array_.length)throw new d;return this.array_[this.array_.length-1]},y.prototype.empty=function(){return 0===this.array_.length},y.prototype.isEmpty=function(){return this.empty()},y.prototype.search=function(t){return this.array_.indexOf(t)},y.prototype.size=function(){return this.array_.length},y.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e0&&this._minIndexthis._minCoord.y&&n.y>this._minCoord.y&&i===at.CLOCKWISE)&&(r=!0),r&&(this._minIndex=this._minIndex-1)},be.prototype.getRightmostSideOfSegment=function(t,e){var n=t.getEdge().getCoordinates();if(e<0||e+1>=n.length)return-1;if(n[e].y===n[e+1].y)return-1;var i=Se.LEFT;return n[e].ythis._minCoord.x)&&(this._minDe=t,this._minIndex=n,this._minCoord=e[n])},be.prototype.findRightmostEdgeAtNode=function(){var t=this._minDe.getNode().getEdges();this._minDe=t.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},be.prototype.findEdge=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.isForward()&&this.checkForRightmostCoordinate(n)}et.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Se.LEFT&&(this._orientedDe=this._minDe.getSym())},be.prototype.interfaces_=function(){return[]},be.prototype.getClass=function(){return be};var we=function(t){function e(n,i){t.call(this,e.msgWithCoord(n,i)),this.pt=i?new C(i):null,this.name="TopologyException"}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCoordinate=function(){return this.pt},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.msgWithCoord=function(t,e){return e?t:t+" [ "+e+" ]"},e}($),Oe=function(){this.array_=[]};Oe.prototype.addLast=function(t){this.array_.push(t)},Oe.prototype.removeFirst=function(){return this.array_.shift()},Oe.prototype.isEmpty=function(){return 0===this.array_.length};var Te=function(){this._finder=null,this._dirEdgeList=new Nt,this._nodes=new Nt,this._rightMostCoord=null,this._env=null,this._finder=new be};Te.prototype.clearVisitedEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();)t.next().setVisited(!1)},Te.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},Te.prototype.computeNodeDepth=function(t){for(var e=null,n=t.getEdges().iterator();n.hasNext();){var i=n.next();if(i.isVisited()||i.getSym().isVisited()){e=i;break}}if(null===e)throw new we("unable to find edge to compute depths at "+t.getCoordinate());t.getEdges().computeDepths(e);for(var r=t.getEdges().iterator();r.hasNext();){var o=r.next();o.setVisited(!0),this.copySymDepths(o)}},Te.prototype.computeDepth=function(t){this.clearVisitedEdges();var e=this._finder.getEdge();e.setEdgeDepths(Se.RIGHT,t),this.copySymDepths(e),this.computeDepths(e)},Te.prototype.create=function(t){this.addReachable(t),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},Te.prototype.findResultEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();){var e=t.next();e.getDepth(Se.RIGHT)>=1&&e.getDepth(Se.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},Te.prototype.computeDepths=function(t){var e=new Pt,n=new Oe,i=t.getNode();for(n.addLast(i),e.add(i),t.setVisited(!0);!n.isEmpty();){var r=n.removeFirst();e.add(r),this.computeNodeDepth(r);for(var o=r.getEdges().iterator();o.hasNext();){var s=o.next().getSym();if(!s.isVisited()){var a=s.getNode();e.contains(a)||(n.addLast(a),e.add(a))}}}},Te.prototype.compareTo=function(t){var e=t;return this._rightMostCoord.xe._rightMostCoord.x?1:0},Te.prototype.getEnvelope=function(){if(null===this._env){for(var t=new j,e=this._dirEdgeList.iterator();e.hasNext();)for(var n=e.next().getEdge().getCoordinates(),i=0;ithis.location.length){var e=new Array(3).fill(null);e[Se.ON]=this.location[Se.ON],e[Se.LEFT]=w.NONE,e[Se.RIGHT]=w.NONE,this.location=e}for(var n=0;n1&&t.append(w.toLocationSymbol(this.location[Se.LEFT])),t.append(w.toLocationSymbol(this.location[Se.ON])),this.location.length>1&&t.append(w.toLocationSymbol(this.location[Se.RIGHT])),t.toString()},Re.prototype.setLocations=function(t,e,n){this.location[Se.ON]=t,this.location[Se.LEFT]=e,this.location[Se.RIGHT]=n},Re.prototype.get=function(t){return t1},Re.prototype.isAnyNull=function(){for(var t=0;tthis._maxNodeDegree&&(this._maxNodeDegree=e),t=this.getNext(t)}while(t!==this._startDe);this._maxNodeDegree*=2},De.prototype.addPoints=function(t,e,n){var i=t.getCoordinates();if(e){var r=1;n&&(r=0);for(var o=r;o=0;a--)this._pts.add(i[a])}},De.prototype.isHole=function(){return this._isHole},De.prototype.setInResult=function(){var t=this._startDe;do{t.getEdge().setInResult(!0),t=t.getNext()}while(t!==this._startDe)},De.prototype.containsPoint=function(t){var e=this.getLinearRing();if(!e.getEnvelopeInternal().contains(t))return!1;if(!at.isPointInRing(t,e.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(t))return!1;return!0},De.prototype.addHole=function(t){this._holes.add(t)},De.prototype.isShell=function(){return null===this._shell},De.prototype.getLabel=function(){return this._label},De.prototype.getEdges=function(){return this._edges},De.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},De.prototype.getShell=function(){return this._shell},De.prototype.mergeLabel=function(){if(1===arguments.length){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(2===arguments.length){var n=arguments[1],i=arguments[0].getLocation(n,Se.RIGHT);if(i===w.NONE)return null;if(this._label.getLocation(n)===w.NONE)return this._label.setLocation(n,i),null}},De.prototype.setShell=function(t){this._shell=t,null!==t&&t.addHole(this)},De.prototype.toPolygon=function(t){for(var e=new Array(this._holes.size()).fill(null),n=0;n=2,"found partial label"),this.computeIM(t)},Fe.prototype.isInResult=function(){return this._isInResult},Fe.prototype.isVisited=function(){return this._isVisited},Fe.prototype.interfaces_=function(){return[]},Fe.prototype.getClass=function(){return Fe};var Ge=function(t){function e(){t.call(this),this._coord=null,this._edges=null;var e=arguments[0],n=arguments[1];this._coord=e,this._edges=n,this._label=new Pe(0,w.NONE)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isIncidentEdgeInResult=function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();)if(t.next().getEdge().isInResult())return!0;return!1},e.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},e.prototype.getCoordinate=function(){return this._coord},e.prototype.print=function(t){t.println("node "+this._coord+" lbl: "+this._label)},e.prototype.computeIM=function(t){},e.prototype.computeMergedLocation=function(t,e){var n=w.NONE;if(n=this._label.getLocation(e),!t.isNull(e)){var i=t.getLocation(e);n!==w.BOUNDARY&&(n=i)}return n},e.prototype.setLabel=function(){if(2!==arguments.length)return t.prototype.setLabel.apply(this,arguments);var e=arguments[0],n=arguments[1];null===this._label?this._label=new Pe(e,n):this._label.setLocation(e,n)},e.prototype.getEdges=function(){return this._edges},e.prototype.mergeLabel=function(){if(arguments[0]instanceof e){var t=arguments[0];this.mergeLabel(t._label)}else if(arguments[0]instanceof Pe)for(var n=arguments[0],i=0;i<2;i++){var r=this.computeMergedLocation(n,i);this._label.getLocation(i)===w.NONE&&this._label.setLocation(i,r)}},e.prototype.add=function(t){this._edges.insert(t),t.setNode(this)},e.prototype.setLabelBoundary=function(t){if(null===this._label)return null;var e=w.NONE;null!==this._label&&(e=this._label.getLocation(t));var n=null;switch(e){case w.BOUNDARY:n=w.INTERIOR;break;case w.INTERIOR:default:n=w.BOUNDARY}this._label.setLocation(t,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Fe),qe=function(){this.nodeMap=new p,this.nodeFact=null;var t=arguments[0];this.nodeFact=t};qe.prototype.find=function(t){return this.nodeMap.get(t)},qe.prototype.addNode=function(){if(arguments[0]instanceof C){var t=arguments[0],e=this.nodeMap.get(t);return null===e&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof Ge){var n=arguments[0],i=this.nodeMap.get(n.getCoordinate());return null===i?(this.nodeMap.put(n.getCoordinate(),n),n):(i.mergeLabel(n),i)}},qe.prototype.print=function(t){for(var e=this.iterator();e.hasNext();)e.next().print(t)},qe.prototype.iterator=function(){return this.nodeMap.values().iterator()},qe.prototype.values=function(){return this.nodeMap.values()},qe.prototype.getBoundaryNodes=function(t){for(var e=new Nt,n=this.iterator();n.hasNext();){var i=n.next();i.getLabel().getLocation(t)===w.BOUNDARY&&e.add(i)}return e},qe.prototype.add=function(t){var e=t.getCoordinate();this.addNode(e).add(t)},qe.prototype.interfaces_=function(){return[]},qe.prototype.getClass=function(){return qe};var Be=function(){},Ve={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};Be.prototype.interfaces_=function(){return[]},Be.prototype.getClass=function(){return Be},Be.isNorthern=function(t){return t===Be.NE||t===Be.NW},Be.isOpposite=function(t,e){return t!==e&&2==(t-e+4)%4},Be.commonHalfPlane=function(t,e){if(t===e)return t;if(2==(t-e+4)%4)return-1;var n=te?t:e)?3:n},Be.isInHalfPlane=function(t,e){return e===Be.SE?t===Be.SE||t===Be.SW:t===e||t===e+1},Be.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new m("Cannot compute the quadrant for point ( "+t+", "+e+" )");return t>=0?e>=0?Be.NE:Be.SE:e>=0?Be.NW:Be.SW}if(arguments[0]instanceof C&&arguments[1]instanceof C){var n=arguments[0],i=arguments[1];if(i.x===n.x&&i.y===n.y)throw new m("Cannot compute the quadrant for two identical points "+n);return i.x>=n.x?i.y>=n.y?Be.NE:Be.SE:i.y>=n.y?Be.NW:Be.SW}},Ve.NE.get=function(){return 0},Ve.NW.get=function(){return 1},Ve.SW.get=function(){return 2},Ve.SE.get=function(){return 3},Object.defineProperties(Be,Ve);var Ue=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var t=arguments[0];this._edge=t}else if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2];this._edge=e,this.init(n,i),this._label=null}else if(4===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this._edge=r,this.init(o,s),this._label=a}};Ue.prototype.compareDirection=function(t){return this._dx===t._dx&&this._dy===t._dy?0:this._quadrant>t._quadrant?1:this._quadrant2){o.linkDirectedEdgesForMinimalEdgeRings();var s=o.buildMinimalRings(),a=this.findShell(s);null!==a?(this.placePolygonHoles(a,s),e.add(a)):n.addAll(s)}else i.add(o)}return i},ke.prototype.containsPoint=function(t){for(var e=this._shellList.iterator();e.hasNext();)if(e.next().containsPoint(t))return!0;return!1},ke.prototype.buildMaximalEdgeRings=function(t){for(var e=new Nt,n=t.iterator();n.hasNext();){var i=n.next();if(i.isInResult()&&i.getLabel().isArea()&&null===i.getEdgeRing()){var r=new Ae(i,this._geometryFactory);e.add(r),r.setInResult()}}return e},ke.prototype.placePolygonHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();i.isHole()&&i.setShell(t)}},ke.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},ke.prototype.findEdgeRingContaining=function(t,e){for(var n=t.getLinearRing(),i=n.getEnvelopeInternal(),r=n.getCoordinateN(0),o=null,s=null,a=e.iterator();a.hasNext();){var u=a.next(),l=u.getLinearRing(),c=l.getEnvelopeInternal();null!==o&&(s=o.getLinearRing().getEnvelopeInternal());var p=!1;c.contains(i)&&at.isPointInRing(r,l.getCoordinates())&&(p=!0),p&&(null===o||s.contains(c))&&(o=u)}return o},ke.prototype.findShell=function(t){for(var e=0,n=null,i=t.iterator();i.hasNext();){var r=i.next();r.isHole()||(n=r,e++)}return et.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n},ke.prototype.add=function(){if(1===arguments.length){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){var e=arguments[0],n=arguments[1];Ye.linkResultDirectedEdges(n);var i=this.buildMaximalEdgeRings(e),r=new Nt,o=this.buildMinimalEdgeRings(i,this._shellList,r);this.sortShellsAndHoles(o,this._shellList,r),this.placeFreeHoles(this._shellList,r)}},ke.prototype.interfaces_=function(){return[]},ke.prototype.getClass=function(){return ke};var je=function(){};je.prototype.getBounds=function(){},je.prototype.interfaces_=function(){return[]},je.prototype.getClass=function(){return je};var He=function(){this._bounds=null,this._item=null;var t=arguments[0],e=arguments[1];this._bounds=t,this._item=e};He.prototype.getItem=function(){return this._item},He.prototype.getBounds=function(){return this._bounds},He.prototype.interfaces_=function(){return[je,e]},He.prototype.getClass=function(){return He};var We=function(){this._size=null,this._items=null,this._size=0,this._items=new Nt,this._items.add(null)};We.prototype.poll=function(){if(this.isEmpty())return null;var t=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),t},We.prototype.size=function(){return this._size},We.prototype.reorder=function(t){for(var e=null,n=this._items.get(t);2*t<=this._size&&((e=2*t)!==this._size&&this._items.get(e+1).compareTo(this._items.get(e))<0&&e++,this._items.get(e).compareTo(n)<0);t=e)this._items.set(t,this._items.get(e));this._items.set(t,n)},We.prototype.clear=function(){this._size=0,this._items.clear()},We.prototype.isEmpty=function(){return 0===this._size},We.prototype.add=function(t){this._items.add(null),this._size+=1;var e=this._size;for(this._items.set(0,t);t.compareTo(this._items.get(Math.trunc(e/2)))<0;e/=2)this._items.set(e,this._items.get(Math.trunc(e/2)));this._items.set(e,t)},We.prototype.interfaces_=function(){return[]},We.prototype.getClass=function(){return We};var Ke=function(){};Ke.prototype.visitItem=function(t){},Ke.prototype.interfaces_=function(){return[]},Ke.prototype.getClass=function(){return Ke};var Je=function(){};Je.prototype.insert=function(t,e){},Je.prototype.remove=function(t,e){},Je.prototype.query=function(){},Je.prototype.interfaces_=function(){return[]},Je.prototype.getClass=function(){return Je};var Qe=function(){if(this._childBoundables=new Nt,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._level=t}},Ze={serialVersionUID:{configurable:!0}};Qe.prototype.getLevel=function(){return this._level},Qe.prototype.size=function(){return this._childBoundables.size()},Qe.prototype.getChildBoundables=function(){return this._childBoundables},Qe.prototype.addChildBoundable=function(t){et.isTrue(null===this._bounds),this._childBoundables.add(t)},Qe.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},Qe.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},Qe.prototype.interfaces_=function(){return[je,e]},Qe.prototype.getClass=function(){return Qe},Ze.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties(Qe,Ze);var $e=function(){};$e.reverseOrder=function(){return{compare:function(t,e){return e.compareTo(t)}}},$e.min=function(t){return $e.sort(t),t.get(0)},$e.sort=function(t,e){var n=t.toArray();e?Gt.sort(n,e):Gt.sort(n);for(var i=t.iterator(),r=0,o=n.length;rtn.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,t,e),null):(this.expand(this._boundable2,this._boundable1,t,e),null);if(n)return this.expand(this._boundable1,this._boundable2,t,e),null;if(i)return this.expand(this._boundable2,this._boundable1,t,e),null;throw new m("neither boundable is composite")},tn.prototype.isLeaves=function(){return!(tn.isComposite(this._boundable1)||tn.isComposite(this._boundable2))},tn.prototype.compareTo=function(t){var e=t;return this._distancee._distance?1:0},tn.prototype.expand=function(t,e,n,i){for(var r=t.getChildBoundables().iterator();r.hasNext();){var o=r.next(),s=new tn(o,e,this._itemDistance);s.getDistance()1,"Node capacity must be greater than 1"),this._nodeCapacity=n}},nn={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};en.prototype.getNodeCapacity=function(){return this._nodeCapacity},en.prototype.lastNode=function(t){return t.get(t.size()-1)},en.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();n instanceof Qe?t+=this.size(n):n instanceof He&&(t+=1)}return t}},en.prototype.removeItem=function(t,e){for(var n=null,i=t.getChildBoundables().iterator();i.hasNext();){var r=i.next();r instanceof He&&r.getItem()===e&&(n=r)}return null!==n&&(t.getChildBoundables().remove(n),!0)},en.prototype.itemsTree=function(){if(0===arguments.length){this.build();var t=this.itemsTree(this._root);return null===t?new Nt:t}if(1===arguments.length){for(var e=arguments[0],n=new Nt,i=e.getChildBoundables().iterator();i.hasNext();){var r=i.next();if(r instanceof Qe){var o=this.itemsTree(r);null!==o&&n.add(o)}else r instanceof He?n.add(r.getItem()):et.shouldNeverReachHere()}return n.size()<=0?null:n}},en.prototype.insert=function(t,e){et.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new He(t,e))},en.prototype.boundablesAtLevel=function(){if(1===arguments.length){var t=arguments[0],e=new Nt;return this.boundablesAtLevel(t,this._root,e),e}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];if(et.isTrue(n>-2),i.getLevel()===n)return r.add(i),null;for(var o=i.getChildBoundables().iterator();o.hasNext();){var s=o.next();s instanceof Qe?this.boundablesAtLevel(n,s,r):(et.isTrue(s instanceof He),-1===n&&r.add(s))}return null}},en.prototype.query=function(){if(1===arguments.length){var t=arguments[0];this.build();var e=new Nt;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.query(t,this._root,e),e}if(2===arguments.length){var n=arguments[0],i=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.query(n,this._root,i)}else if(3===arguments.length)if(T(arguments[2],Ke)&&arguments[0]instanceof Object&&arguments[1]instanceof Qe)for(var r=arguments[0],s=arguments[2],a=arguments[1].getChildBoundables(),u=0;ut&&(t=i)}}return t+1}},en.prototype.createParentBoundables=function(t,e){et.isTrue(!t.isEmpty());var n=new Nt;n.add(this.createNode(e));var i=new Nt(t);$e.sort(i,this.getComparator());for(var r=i.iterator();r.hasNext();){var o=r.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(o)}return n},en.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},en.prototype.interfaces_=function(){return[e]},en.prototype.getClass=function(){return en},en.compareDoubles=function(t,e){return t>e?1:t0);for(var n=new Nt,i=0;i0;){var p=c.poll(),h=p.getDistance();if(h>=u)break;p.isLeaves()?(u=h,l=p):p.expandToQueue(c,u)}return[l.getBoundable(0).getItem(),l.getBoundable(1).getItem()]}}else if(3===arguments.length){var d=arguments[2],y=new He(arguments[0],arguments[1]),_=new tn(this.getRoot(),y,d);return this.nearestNeighbour(_)[0]}},n.prototype.interfaces_=function(){return[Je,e]},n.prototype.getClass=function(){return n},n.centreX=function(t){return n.avg(t.getMinX(),t.getMaxX())},n.avg=function(t,e){return(t+e)/2},n.centreY=function(t){return n.avg(t.getMinY(),t.getMaxY())},i.STRtreeNode.get=function(){return an},i.serialVersionUID.get=function(){return 0x39920f7d5f261e0},i.xComparator.get=function(){return{interfaces_:function(){return[N]},compare:function(e,i){return t.compareDoubles(n.centreX(e.getBounds()),n.centreX(i.getBounds()))}}},i.yComparator.get=function(){return{interfaces_:function(){return[N]},compare:function(e,i){return t.compareDoubles(n.centreY(e.getBounds()),n.centreY(i.getBounds()))}}},i.intersectsOp.get=function(){return{interfaces_:function(){return[t.IntersectsOp]},intersects:function(t,e){return t.intersects(e)}}},i.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(n,i),n}(en),an=function(t){function e(){var e=arguments[0];t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeBounds=function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();null===t?t=new j(n.getBounds()):t.expandToInclude(n.getBounds())}return t},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Qe),un=function(){};un.prototype.interfaces_=function(){return[]},un.prototype.getClass=function(){return un},un.relativeSign=function(t,e){return te?1:0},un.compare=function(t,e,n){if(e.equals2D(n))return 0;var i=un.relativeSign(e.x,n.x),r=un.relativeSign(e.y,n.y);switch(t){case 0:return un.compareValue(i,r);case 1:return un.compareValue(r,i);case 2:return un.compareValue(r,-i);case 3:return un.compareValue(-i,r);case 4:return un.compareValue(-i,-r);case 5:return un.compareValue(-r,-i);case 6:return un.compareValue(-r,i);case 7:return un.compareValue(i,-r)}return et.shouldNeverReachHere("invalid octant value"),0},un.compareValue=function(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0};var ln=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._segString=t,this.coord=new C(e),this.segmentIndex=n,this._segmentOctant=i,this._isInterior=!e.equals2D(t.getCoordinate(n))};ln.prototype.getCoordinate=function(){return this.coord},ln.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)},ln.prototype.compareTo=function(t){var e=t;return this.segmentIndexe.segmentIndex?1:this.coord.equals2D(e.coord)?0:un.compare(this._segmentOctant,this.coord,e.coord)},ln.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t},ln.prototype.isInterior=function(){return this._isInterior},ln.prototype.interfaces_=function(){return[E]},ln.prototype.getClass=function(){return ln};var cn=function(){this._nodeMap=new p,this._edge=null;var t=arguments[0];this._edge=t};cn.prototype.getSplitCoordinates=function(){var t=new St;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var i=e.next();this.addEdgeCoordinates(n,i,t),n=i}return t.toCoordinateArray()},cn.prototype.addCollapsedNodes=function(){var t=new Nt;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var n=e.next().intValue();this.add(this._edge.getCoordinate(n),n)}},cn.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},cn.prototype.findCollapsesFromExistingVertices=function(t){for(var e=0;e=0?e>=0?n>=i?0:1:n>=i?7:6:e>=0?n>=i?3:2:n>=i?4:5}if(arguments[0]instanceof C&&arguments[1]instanceof C){var r=arguments[0],o=arguments[1],s=o.x-r.x,a=o.y-r.y;if(0===s&&0===a)throw new m("Cannot compute the octant for two identical points "+r);return pn.octant(s,a)}};var hn=function(){};hn.prototype.getCoordinates=function(){},hn.prototype.size=function(){},hn.prototype.getCoordinate=function(t){},hn.prototype.isClosed=function(){},hn.prototype.setData=function(t){},hn.prototype.getData=function(){},hn.prototype.interfaces_=function(){return[]},hn.prototype.getClass=function(){return hn};var fn=function(){};fn.prototype.addIntersection=function(t,e){},fn.prototype.interfaces_=function(){return[hn]},fn.prototype.getClass=function(){return fn};var gn=function(){this._nodeList=new cn(this),this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};gn.prototype.getCoordinates=function(){return this._pts},gn.prototype.size=function(){return this._pts.length},gn.prototype.getCoordinate=function(t){return this._pts[t]},gn.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},gn.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))},gn.prototype.setData=function(t){this._data=t},gn.prototype.safeOctant=function(t,e){return t.equals2D(e)?0:pn.octant(t,e)},gn.prototype.getData=function(){return this._data},gn.prototype.addIntersection=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(4===arguments.length){var i=arguments[1],r=arguments[3],o=new C(arguments[0].getIntersection(r));this.addIntersection(o,i)}},gn.prototype.toString=function(){return Z.toLineString(new ue(this._pts))},gn.prototype.getNodeList=function(){return this._nodeList},gn.prototype.addIntersectionNode=function(t,e){var n=e,i=n+1;if(i=0&&n>=0||e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof C){var i=arguments[0];return at.orientationIndex(this.p0,this.p1,i)}},dn.prototype.toGeometry=function(t){return t.createLineString([this.p0,this.p1])},dn.prototype.isVertical=function(){return this.p0.x===this.p1.x},dn.prototype.equals=function(t){if(!(t instanceof dn))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},dn.prototype.intersection=function(t){var e=new rt;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},dn.prototype.project=function(){if(arguments[0]instanceof C){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new C(t);var e=this.projectionFactor(t),n=new C;return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof dn){var i=arguments[0],r=this.projectionFactor(i.p0),o=this.projectionFactor(i.p1);if(r>=1&&o>=1)return null;if(r<=0&&o<=0)return null;var s=this.project(i.p0);r<0&&(s=this.p0),r>1&&(s=this.p1);var a=this.project(i.p1);return o<0&&(a=this.p0),o>1&&(a=this.p1),new dn(s,a)}},dn.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},dn.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},dn.prototype.getCoordinate=function(t){return 0===t?this.p0:this.p1},dn.prototype.distancePerpendicular=function(t){return at.distancePointLinePerpendicular(t,this.p0,this.p1)},dn.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},dn.prototype.midPoint=function(){return dn.midPoint(this.p0,this.p1)},dn.prototype.projectionFactor=function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,i=e*e+n*n;return i<=0?v.NaN:((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/i},dn.prototype.closestPoints=function(t){var e=this.intersection(t);if(null!==e)return[e,e];var n=new Array(2).fill(null),i=v.MAX_VALUE,r=null,o=this.closestPoint(t.p0);i=o.distance(t.p0),n[0]=o,n[1]=t.p0;var s=this.closestPoint(t.p1);(r=s.distance(t.p1))0&&e<1?this.project(t):this.p0.distance(t)1||v.isNaN(e))&&(e=1),e},dn.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},dn.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},dn.prototype.distance=function(){if(arguments[0]instanceof dn){var t=arguments[0];return at.distanceLineLine(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof C){var e=arguments[0];return at.distancePointLine(e,this.p0,this.p1)}},dn.prototype.pointAlong=function(t){var e=new C;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e},dn.prototype.hashCode=function(){var t=v.doubleToLongBits(this.p0.x);t^=31*v.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),n=v.doubleToLongBits(this.p1.x);return n^=31*v.doubleToLongBits(this.p1.y),e^Math.trunc(n)^Math.trunc(n>>32)},dn.prototype.interfaces_=function(){return[E,e]},dn.prototype.getClass=function(){return dn},dn.midPoint=function(t,e){return new C((t.x+e.x)/2,(t.y+e.y)/2)},yn.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(dn,yn);var _n=function(){this.tempEnv1=new j,this.tempEnv2=new j,this._overlapSeg1=new dn,this._overlapSeg2=new dn};_n.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var e=arguments[1],n=arguments[2],i=arguments[3];arguments[0].getLineSegment(e,this._overlapSeg1),n.getLineSegment(i,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},_n.prototype.interfaces_=function(){return[]},_n.prototype.getClass=function(){return _n};var mn=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._pts=t,this._start=e,this._end=n,this._context=i};mn.prototype.getLineSegment=function(t,e){e.p0=this._pts[t],e.p1=this._pts[t+1]},mn.prototype.computeSelect=function(t,e,n,i){var r=this._pts[e],o=this._pts[n];if(i.tempEnv1.init(r,o),n-e==1)return i.select(this,e),null;if(!t.intersects(i.tempEnv1))return null;var s=Math.trunc((e+n)/2);e=t.length-1)return t.length-1;for(var i=Be.quadrant(t[n],t[n+1]),r=e+1;rn.getId()&&(n.computeOverlaps(r,t),this._nOverlaps++),this._segInt.isDone())return null}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.SegmentOverlapAction.get=function(){return Nn},Object.defineProperties(e,n),e}(En),Nn=function(t){function e(){t.call(this),this._si=null;var e=arguments[0];this._si=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.overlap=function(){if(4!==arguments.length)return t.prototype.overlap.apply(this,arguments);var n=arguments[1],i=arguments[2],r=arguments[3],o=arguments[0].getContext(),s=i.getContext();this._si.processIntersections(o,n,s,r)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(_n),Cn=function t(){if(this._quadrantSegments=t.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=t.CAP_ROUND,this._joinStyle=t.JOIN_ROUND,this._mitreLimit=t.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=t.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.setQuadrantSegments(e)}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(i)}else if(4===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this.setQuadrantSegments(r),this.setEndCapStyle(o),this.setJoinStyle(s),this.setMitreLimit(a)}},Sn={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};Cn.prototype.getEndCapStyle=function(){return this._endCapStyle},Cn.prototype.isSingleSided=function(){return this._isSingleSided},Cn.prototype.setQuadrantSegments=function(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=Cn.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=Cn.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==Cn.JOIN_ROUND&&(this._quadrantSegments=Cn.DEFAULT_QUADRANT_SEGMENTS)},Cn.prototype.getJoinStyle=function(){return this._joinStyle},Cn.prototype.setJoinStyle=function(t){this._joinStyle=t},Cn.prototype.setSimplifyFactor=function(t){this._simplifyFactor=t<0?0:t},Cn.prototype.getSimplifyFactor=function(){return this._simplifyFactor},Cn.prototype.getQuadrantSegments=function(){return this._quadrantSegments},Cn.prototype.setEndCapStyle=function(t){this._endCapStyle=t},Cn.prototype.getMitreLimit=function(){return this._mitreLimit},Cn.prototype.setMitreLimit=function(t){this._mitreLimit=t},Cn.prototype.setSingleSided=function(t){this._isSingleSided=t},Cn.prototype.interfaces_=function(){return[]},Cn.prototype.getClass=function(){return Cn},Cn.bufferDistanceError=function(t){var e=Math.PI/2/t;return 1-Math.cos(e/2)},Sn.CAP_ROUND.get=function(){return 1},Sn.CAP_FLAT.get=function(){return 2},Sn.CAP_SQUARE.get=function(){return 3},Sn.JOIN_ROUND.get=function(){return 1},Sn.JOIN_MITRE.get=function(){return 2},Sn.JOIN_BEVEL.get=function(){return 3},Sn.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},Sn.DEFAULT_MITRE_LIMIT.get=function(){return 5},Sn.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(Cn,Sn);var Ln=function(t){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=at.COUNTERCLOCKWISE,this._inputLine=t||null},bn={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Ln.prototype.isDeletable=function(t,e,n,i){var r=this._inputLine[t],o=this._inputLine[e],s=this._inputLine[n];return!!this.isConcave(r,o,s)&&!!this.isShallow(r,o,s,i)&&this.isShallowSampled(r,o,t,n,i)},Ln.prototype.deleteShallowConcavities=function(){for(var t=1,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e),i=!1;n=0;i--)this.addPt(t[i])},wn.prototype.isRedundant=function(t){if(this._ptList.size()<1)return!1;var e=this._ptList.get(this._ptList.size()-1);return t.distance(e)Math.PI;)t-=Tn.PI_TIMES_2;for(;t<=-Math.PI;)t+=Tn.PI_TIMES_2;return t},Tn.angle=function(){if(1===arguments.length){var t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){var e=arguments[0],n=arguments[1],i=n.x-e.x,r=n.y-e.y;return Math.atan2(r,i)}},Tn.isAcute=function(t,e,n){var i=t.x-e.x,r=t.y-e.y;return i*(n.x-e.x)+r*(n.y-e.y)>0},Tn.isObtuse=function(t,e,n){var i=t.x-e.x,r=t.y-e.y;return i*(n.x-e.x)+r*(n.y-e.y)<0},Tn.interiorAngle=function(t,e,n){var i=Tn.angle(e,t),r=Tn.angle(e,n);return Math.abs(r-i)},Tn.normalizePositive=function(t){if(t<0){for(;t<0;)t+=Tn.PI_TIMES_2;t>=Tn.PI_TIMES_2&&(t=0)}else{for(;t>=Tn.PI_TIMES_2;)t-=Tn.PI_TIMES_2;t<0&&(t=0)}return t},Tn.angleBetween=function(t,e,n){var i=Tn.angle(e,t),r=Tn.angle(e,n);return Tn.diff(i,r)},Tn.diff=function(t,e){var n=null;return(n=tMath.PI&&(n=2*Math.PI-n),n},Tn.toRadians=function(t){return t*Math.PI/180},Tn.getTurn=function(t,e){var n=Math.sin(e-t);return n>0?Tn.COUNTERCLOCKWISE:n<0?Tn.CLOCKWISE:Tn.NONE},Tn.angleBetweenOriented=function(t,e,n){var i=Tn.angle(e,t),r=Tn.angle(e,n)-i;return r<=-Math.PI?r+Tn.PI_TIMES_2:r>Math.PI?r-Tn.PI_TIMES_2:r},Rn.PI_TIMES_2.get=function(){return 2*Math.PI},Rn.PI_OVER_2.get=function(){return Math.PI/2},Rn.PI_OVER_4.get=function(){return Math.PI/4},Rn.COUNTERCLOCKWISE.get=function(){return at.COUNTERCLOCKWISE},Rn.CLOCKWISE.get=function(){return at.CLOCKWISE},Rn.NONE.get=function(){return at.COLLINEAR},Object.defineProperties(Tn,Rn);var Pn=function t(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new dn,this._seg1=new dn,this._offset0=new dn,this._offset1=new dn,this._side=0,this._hasNarrowConcaveAngle=!1;var e=arguments[0],n=arguments[1],i=arguments[2];this._precisionModel=e,this._bufParams=n,this._li=new rt,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),n.getQuadrantSegments()>=8&&n.getJoinStyle()===Cn.JOIN_ROUND&&(this._closingSegLengthFactor=t.MAX_CLOSING_SEG_LEN_FACTOR),this.init(i)},Dn={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};Pn.prototype.addNextSegment=function(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=at.computeOrientation(this._s0,this._s1,this._s2),i=n===at.CLOCKWISE&&this._side===Se.LEFT||n===at.COUNTERCLOCKWISE&&this._side===Se.RIGHT;0===n?this.addCollinear(e):i?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)},Pn.prototype.addLineEndCap=function(t,e){var n=new dn(t,e),i=new dn;this.computeOffsetSegment(n,Se.LEFT,this._distance,i);var r=new dn;this.computeOffsetSegment(n,Se.RIGHT,this._distance,r);var o=e.x-t.x,s=e.y-t.y,a=Math.atan2(s,o);switch(this._bufParams.getEndCapStyle()){case Cn.CAP_ROUND:this._segList.addPt(i.p1),this.addFilletArc(e,a+Math.PI/2,a-Math.PI/2,at.CLOCKWISE,this._distance),this._segList.addPt(r.p1);break;case Cn.CAP_FLAT:this._segList.addPt(i.p1),this._segList.addPt(r.p1);break;case Cn.CAP_SQUARE:var u=new C;u.x=Math.abs(this._distance)*Math.cos(a),u.y=Math.abs(this._distance)*Math.sin(a);var l=new C(i.p1.x+u.x,i.p1.y+u.y),c=new C(r.p1.x+u.x,r.p1.y+u.y);this._segList.addPt(l),this._segList.addPt(c)}},Pn.prototype.getCoordinates=function(){return this._segList.getCoordinates()},Pn.prototype.addMitreJoin=function(t,e,n,i){var r=!0,o=null;try{o=k.intersection(e.p0,e.p1,n.p0,n.p1),(i<=0?1:o.distance(t)/Math.abs(i))>this._bufParams.getMitreLimit()&&(r=!1)}catch(t){if(!(t instanceof X))throw t;o=new C(0,0),r=!1}r?this._segList.addPt(o):this.addLimitedMitreJoin(e,n,i,this._bufParams.getMitreLimit())},Pn.prototype.addFilletCorner=function(t,e,n,i,r){var o=e.x-t.x,s=e.y-t.y,a=Math.atan2(s,o),u=n.x-t.x,l=n.y-t.y,c=Math.atan2(l,u);i===at.CLOCKWISE?a<=c&&(a+=2*Math.PI):a>=c&&(a-=2*Math.PI),this._segList.addPt(e),this.addFilletArc(t,a,c,i,r),this._segList.addPt(n)},Pn.prototype.addOutsideTurn=function(t,e){if(this._offset0.p1.distance(this._offset1.p0)0){var n=new C((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n);var i=new C((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(i)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},Pn.prototype.createCircle=function(t){var e=new C(t.x+this._distance,t.y);this._segList.addPt(e),this.addFilletArc(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},Pn.prototype.addBevelJoin=function(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)},Pn.prototype.init=function(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new wn,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*Pn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},Pn.prototype.addCollinear=function(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===Cn.JOIN_BEVEL||this._bufParams.getJoinStyle()===Cn.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,at.CLOCKWISE,this._distance))},Pn.prototype.closeRing=function(){this._segList.closeRing()},Pn.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},Pn.prototype.interfaces_=function(){return[]},Pn.prototype.getClass=function(){return Pn},Dn.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},Dn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},Dn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},Dn.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(Pn,Dn);var Mn=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e};Mn.prototype.getOffsetCurve=function(t,e){if(this._distance=e,0===e)return null;var n=e<0,i=Math.abs(e),r=this.getSegGen(i);t.length<=1?this.computePointCurve(t[0],r):this.computeOffsetCurve(t,n,r);var o=r.getCoordinates();return n&&Lt.reverse(o),o},Mn.prototype.computeSingleSidedBufferCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);if(e){n.addSegments(t,!0);var r=Ln.simplify(t,-i),o=r.length-1;n.initSideSegments(r[o],r[o-1],Se.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(r[s],!0)}else{n.addSegments(t,!1);var a=Ln.simplify(t,i),u=a.length-1;n.initSideSegments(a[0],a[1],Se.LEFT),n.addFirstSegment();for(var l=2;l<=u;l++)n.addNextSegment(a[l],!0)}n.addLastSegment(),n.closeRing()},Mn.prototype.computeRingBufferCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);e===Se.RIGHT&&(i=-i);var r=Ln.simplify(t,i),o=r.length-1;n.initSideSegments(r[o-1],r[0],e);for(var s=1;s<=o;s++){var a=1!==s;n.addNextSegment(r[s],a)}n.closeRing()},Mn.prototype.computeLineBufferCurve=function(t,e){var n=this.simplifyTolerance(this._distance),i=Ln.simplify(t,n),r=i.length-1;e.initSideSegments(i[0],i[1],Se.LEFT);for(var o=2;o<=r;o++)e.addNextSegment(i[o],!0);e.addLastSegment(),e.addLineEndCap(i[r-1],i[r]);var s=Ln.simplify(t,-n),a=s.length-1;e.initSideSegments(s[a],s[a-1],Se.LEFT);for(var u=a-2;u>=0;u--)e.addNextSegment(s[u],!0);e.addLastSegment(),e.addLineEndCap(s[1],s[0]),e.closeRing()},Mn.prototype.computePointCurve=function(t,e){switch(this._bufParams.getEndCapStyle()){case Cn.CAP_ROUND:e.createCircle(t);break;case Cn.CAP_SQUARE:e.createSquare(t)}},Mn.prototype.getLineCurve=function(t,e){if(this._distance=e,e<0&&!this._bufParams.isSingleSided())return null;if(0===e)return null;var n=Math.abs(e),i=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],i);else if(this._bufParams.isSingleSided()){var r=e<0;this.computeSingleSidedBufferCurve(t,r,i)}else this.computeLineBufferCurve(t,i);return i.getCoordinates()},Mn.prototype.getBufferParameters=function(){return this._bufParams},Mn.prototype.simplifyTolerance=function(t){return t*this._bufParams.getSimplifyFactor()},Mn.prototype.getRingCurve=function(t,e,n){if(this._distance=n,t.length<=2)return this.getLineCurve(t,n);if(0===n)return Mn.copyCoordinates(t);var i=this.getSegGen(n);return this.computeRingBufferCurve(t,e,i),i.getCoordinates()},Mn.prototype.computeOffsetCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);if(e){var r=Ln.simplify(t,-i),o=r.length-1;n.initSideSegments(r[o],r[o-1],Se.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(r[s],!0)}else{var a=Ln.simplify(t,i),u=a.length-1;n.initSideSegments(a[0],a[1],Se.LEFT),n.addFirstSegment();for(var l=2;l<=u;l++)n.addNextSegment(a[l],!0)}n.addLastSegment()},Mn.prototype.getSegGen=function(t){return new Pn(this._precisionModel,this._bufParams,t)},Mn.prototype.interfaces_=function(){return[]},Mn.prototype.getClass=function(){return Mn},Mn.copyCoordinates=function(t){for(var e=new Array(t.length).fill(null),n=0;nr.getMaxY()||this.findStabbedSegments(t,i.getDirectedEdges(),e)}return e}if(3===arguments.length)if(T(arguments[2],xt)&&arguments[0]instanceof C&&arguments[1]instanceof ze){for(var o=arguments[0],s=arguments[1],a=arguments[2],u=s.getEdge().getCoordinates(),l=0;lthis._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)this._seg.p1.y||at.computeOrientation(this._seg.p0,this._seg.p1,o)===at.RIGHT)){var c=s.getDepth(Se.LEFT);this._seg.p0.equals(u[l])||(c=s.getDepth(Se.RIGHT));var p=new Gn(this._seg,c);a.add(p)}}else if(T(arguments[2],xt)&&arguments[0]instanceof C&&T(arguments[1],xt))for(var h=arguments[0],g=arguments[2],d=arguments[1].iterator();d.hasNext();){var y=d.next();y.isForward()&&this.findStabbedSegments(h,y,g)}},An.prototype.getDepth=function(t){var e=this.findStabbedSegments(t);return 0===e.size()?0:$e.min(e)._leftDepth},An.prototype.interfaces_=function(){return[]},An.prototype.getClass=function(){return An},Fn.DepthSegment.get=function(){return Gn},Object.defineProperties(An,Fn);var Gn=function(){this._upwardSeg=null,this._leftDepth=null;var t=arguments[0],e=arguments[1];this._upwardSeg=new dn(t),this._leftDepth=e};Gn.prototype.compareTo=function(t){var e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==n||0!=(n=-1*e._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(e._upwardSeg)},Gn.prototype.compareX=function(t,e){var n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)},Gn.prototype.toString=function(){return this._upwardSeg.toString()},Gn.prototype.interfaces_=function(){return[E]},Gn.prototype.getClass=function(){return Gn};var qn=function(t,e,n){this.p0=t||null,this.p1=e||null,this.p2=n||null};qn.prototype.area=function(){return qn.area(this.p0,this.p1,this.p2)},qn.prototype.signedArea=function(){return qn.signedArea(this.p0,this.p1,this.p2)},qn.prototype.interpolateZ=function(t){if(null===t)throw new m("Supplied point is null.");return qn.interpolateZ(t,this.p0,this.p1,this.p2)},qn.prototype.longestSideLength=function(){return qn.longestSideLength(this.p0,this.p1,this.p2)},qn.prototype.isAcute=function(){return qn.isAcute(this.p0,this.p1,this.p2)},qn.prototype.circumcentre=function(){return qn.circumcentre(this.p0,this.p1,this.p2)},qn.prototype.area3D=function(){return qn.area3D(this.p0,this.p1,this.p2)},qn.prototype.centroid=function(){return qn.centroid(this.p0,this.p1,this.p2)},qn.prototype.inCentre=function(){return qn.inCentre(this.p0,this.p1,this.p2)},qn.prototype.interfaces_=function(){return[]},qn.prototype.getClass=function(){return qn},qn.area=function(t,e,n){return Math.abs(((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2)},qn.signedArea=function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2},qn.det=function(t,e,n,i){return t*i-e*n},qn.interpolateZ=function(t,e,n,i){var r=e.x,o=e.y,s=n.x-r,a=i.x-r,u=n.y-o,l=i.y-o,c=s*l-a*u,p=t.x-r,h=t.y-o,f=(l*p-a*h)/c,g=(-u*p+s*h)/c;return e.z+f*(n.z-e.z)+g*(i.z-e.z)},qn.longestSideLength=function(t,e,n){var i=t.distance(e),r=e.distance(n),o=n.distance(t),s=i;return r>s&&(s=r),o>s&&(s=o),s},qn.isAcute=function(t,e,n){return!!Tn.isAcute(t,e,n)&&!!Tn.isAcute(e,n,t)&&!!Tn.isAcute(n,t,e)},qn.circumcentre=function(t,e,n){var i=n.x,r=n.y,o=t.x-i,s=t.y-r,a=e.x-i,u=e.y-r,l=2*qn.det(o,s,a,u),c=qn.det(s,o*o+s*s,u,a*a+u*u),p=qn.det(o,o*o+s*s,a,a*a+u*u);return new C(i-c/l,r+p/l)},qn.perpendicularBisector=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=new k(t.x+n/2,t.y+i/2,1),o=new k(t.x-i+n/2,t.y+n+i/2,1);return new k(r,o)},qn.angleBisector=function(t,e,n){var i=e.distance(t),r=i/(i+e.distance(n)),o=n.x-t.x,s=n.y-t.y;return new C(t.x+r*o,t.y+r*s)},qn.area3D=function(t,e,n){var i=e.x-t.x,r=e.y-t.y,o=e.z-t.z,s=n.x-t.x,a=n.y-t.y,u=n.z-t.z,l=r*u-o*a,c=o*s-i*u,p=i*a-r*s,h=l*l+c*c+p*p;return Math.sqrt(h)/2},qn.centroid=function(t,e,n){var i=(t.x+e.x+n.x)/3,r=(t.y+e.y+n.y)/3;return new C(i,r)},qn.inCentre=function(t,e,n){var i=e.distance(n),r=t.distance(n),o=t.distance(e),s=i+r+o,a=(i*t.x+r*e.x+o*n.x)/s,u=(i*t.y+r*e.y+o*n.y)/s;return new C(a,u)};var Bn=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new Nt;var t=arguments[0],e=arguments[1],n=arguments[2];this._inputGeom=t,this._distance=e,this._curveBuilder=n};Bn.prototype.addPoint=function(t){if(this._distance<=0)return null;var e=t.getCoordinates(),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,w.EXTERIOR,w.INTERIOR)},Bn.prototype.addPolygon=function(t){var e=this._distance,n=Se.LEFT;this._distance<0&&(e=-this._distance,n=Se.RIGHT);var i=t.getExteriorRing(),r=Lt.removeRepeatedPoints(i.getCoordinates());if(this._distance<0&&this.isErodedCompletely(i,this._distance))return null;if(this._distance<=0&&r.length<3)return null;this.addPolygonRing(r,e,n,w.EXTERIOR,w.INTERIOR);for(var o=0;o0&&this.isErodedCompletely(s,-this._distance)||this.addPolygonRing(a,e,Se.opposite(n),w.INTERIOR,w.EXTERIOR)}},Bn.prototype.isTriangleErodedCompletely=function(t,e){var n=new qn(t[0],t[1],t[2]),i=n.inCentre();return at.distancePointLine(i,n.p0,n.p1)=ee.MINIMUM_VALID_SIZE&&at.isCCW(t)&&(o=r,s=i,n=Se.opposite(n));var a=this._curveBuilder.getRingCurve(t,n,e);this.addCurve(a,o,s)},Bn.prototype.add=function(t){if(t.isEmpty())return null;t instanceof $t?this.addPolygon(t):t instanceof Kt?this.addLineString(t):t instanceof Qt?this.addPoint(t):(t instanceof te||t instanceof Xt||t instanceof ne||t instanceof zt)&&this.addCollection(t)},Bn.prototype.isErodedCompletely=function(t,e){var n=t.getCoordinates();if(n.length<4)return e<0;if(4===n.length)return this.isTriangleErodedCompletely(n,e);var i=t.getEnvelopeInternal(),r=Math.min(i.getHeight(),i.getWidth());return e<0&&2*Math.abs(e)>r},Bn.prototype.addCollection=function(t){for(var e=0;e=this._max)throw new i;var t=this._parent.getGeometryN(this._index++);return t instanceof zt?(this._subcollectionIterator=new Un(t),this._subcollectionIterator.next()):t},Un.prototype.remove=function(){throw new Error(this.getClass().getName())},Un.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},Un.prototype.interfaces_=function(){return[Et]},Un.prototype.getClass=function(){return Un},Un.isAtomic=function(t){return!(t instanceof zt)};var zn=function(){this._geom=null;var t=arguments[0];this._geom=t};zn.prototype.locate=function(t){return zn.locate(t,this._geom)},zn.prototype.interfaces_=function(){return[Vn]},zn.prototype.getClass=function(){return zn},zn.isPointInRing=function(t,e){return!!e.getEnvelopeInternal().intersects(t)&&at.isPointInRing(t,e.getCoordinates())},zn.containsPointInPolygon=function(t,e){if(e.isEmpty())return!1;var n=e.getExteriorRing();if(!zn.isPointInRing(t,n))return!1;for(var i=0;i=0;n--){var i=this._edgeList.get(n),r=i.getSym();null===e&&(e=r),null!==t&&r.setNext(t),t=i}e.setNext(t)},e.prototype.computeDepths=function(){if(1===arguments.length){var t=arguments[0],e=this.findIndex(t),n=t.getDepth(Se.LEFT),i=t.getDepth(Se.RIGHT),r=this.computeDepths(e+1,this._edgeList.size(),n);if(this.computeDepths(0,e,r)!==i)throw new we("depth mismatch at "+t.getCoordinate())}else if(3===arguments.length){for(var s=arguments[1],a=arguments[2],u=arguments[0];u=0;r--){var o=this._resultAreaEdgeList.get(r),s=o.getSym();switch(null===e&&o.getEdgeRing()===t&&(e=o),i){case this._SCANNING_FOR_INCOMING:if(s.getEdgeRing()!==t)continue;n=s,i=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(o.getEdgeRing()!==t)continue;n.setNextMin(o),i=this._SCANNING_FOR_INCOMING}}i===this._LINKING_TO_OUTGOING&&(et.isTrue(null!==e,"found null for first outgoing dirEdge"),et.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),n.setNextMin(e))},e.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var t=0,e=this.iterator();e.hasNext();)e.next().isInResult()&&t++;return t}if(1===arguments.length){for(var n=arguments[0],i=0,r=this.iterator();r.hasNext();)r.next().getEdgeRing()===n&&i++;return i}},e.prototype.getLabel=function(){return this._label},e.prototype.findCoveredLineEdges=function(){for(var t=w.NONE,e=this.iterator();e.hasNext();){var n=e.next(),i=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){t=w.INTERIOR;break}if(i.isInResult()){t=w.EXTERIOR;break}}}if(t===w.NONE)return null;for(var r=t,o=this.iterator();o.hasNext();){var s=o.next(),a=s.getSym();s.isLineEdge()?s.getEdge().setCovered(r===w.INTERIOR):(s.isInResult()&&(r=w.EXTERIOR),a.isInResult()&&(r=w.INTERIOR))}},e.prototype.computeLabelling=function(e){t.prototype.computeLabelling.call(this,e),this._label=new Pe(w.NONE);for(var n=this.iterator();n.hasNext();)for(var i=n.next().getEdge().getLabel(),r=0;r<2;r++){var o=i.getLocation(r);o!==w.INTERIOR&&o!==w.BOUNDARY||this._label.setLocation(r,w.INTERIOR)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Xn),kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createNode=function(t){return new Ge(t,new Yn)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Xe),jn=function t(){this._pts=null,this._orientation=null;var e=arguments[0];this._pts=e,this._orientation=t.orientation(e)};jn.prototype.compareTo=function(t){var e=t;return jn.compareOriented(this._pts,this._orientation,e._pts,e._orientation)},jn.prototype.interfaces_=function(){return[E]},jn.prototype.getClass=function(){return jn},jn.orientation=function(t){return 1===Lt.increasingDirection(t)},jn.compareOriented=function(t,e,n,i){for(var r=e?1:-1,o=i?1:-1,s=e?t.length:-1,a=i?n.length:-1,u=e?0:t.length-1,l=i?0:n.length-1;;){var c=t[u].compareTo(n[l]);if(0!==c)return c;var p=(u+=r)===s,h=(l+=o)===a;if(p&&!h)return-1;if(!p&&h)return 1;if(p&&h)return 0}};var Hn=function(){this._edges=new Nt,this._ocaMap=new p};Hn.prototype.print=function(t){t.print("MULTILINESTRING ( ");for(var e=0;e0&&t.print(","),t.print("(");for(var i=n.getCoordinates(),r=0;r0&&t.print(","),t.print(i[r].x+" "+i[r].y);t.println(")")}t.print(") ")},Hn.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())},Hn.prototype.findEdgeIndex=function(t){for(var e=0;e0||!e.coord.equals2D(i);r||n--;var o=new Array(n).fill(null),s=0;o[s++]=new C(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)o[s++]=this.edge.pts[a];return r&&(o[s]=e.coord),new ni(o,new Pe(this.edge._label))},Qn.prototype.add=function(t,e,n){var i=new Jn(t,e,n),r=this._nodeMap.get(i);return null!==r?r:(this._nodeMap.put(i,i),i)},Qn.prototype.isIntersection=function(t){for(var e=this.iterator();e.hasNext();)if(e.next().coord.equals(t))return!0;return!1},Qn.prototype.interfaces_=function(){return[]},Qn.prototype.getClass=function(){return Qn};var Zn=function(){};Zn.prototype.getChainStartIndices=function(t){var e=0,n=new Nt;n.add(new M(e));do{var i=this.findChainEnd(t,e);n.add(new M(i)),e=i}while(en?e:n},$n.prototype.getMinX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return ee&&(i=1),this._depth[t][n]=i}}},ti.prototype.getDelta=function(t){return this._depth[t][Se.RIGHT]-this._depth[t][Se.LEFT]},ti.prototype.getLocation=function(t,e){return this._depth[t][e]<=0?w.EXTERIOR:w.INTERIOR},ti.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},ti.prototype.add=function(){if(1===arguments.length)for(var t=arguments[0],e=0;e<2;e++)for(var n=1;n<3;n++){var i=t.getLocation(e,n);i!==w.EXTERIOR&&i!==w.INTERIOR||(this.isNull(e,n)?this._depth[e][n]=ti.depthAtLocation(i):this._depth[e][n]+=ti.depthAtLocation(i))}else if(3===arguments.length){var r=arguments[0],o=arguments[1];arguments[2]===w.INTERIOR&&this._depth[r][o]++}},ti.prototype.interfaces_=function(){return[]},ti.prototype.getClass=function(){return ti},ti.depthAtLocation=function(t){return t===w.EXTERIOR?0:t===w.INTERIOR?1:ti.NULL_VALUE},ei.NULL_VALUE.get=function(){return-1},Object.defineProperties(ti,ei);var ni=function(t){function e(){if(t.call(this),this.pts=null,this._env=null,this.eiList=new Qn(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new ti,this._depthDelta=0,1===arguments.length){var n=arguments[0];e.call(this,n,null)}else if(2===arguments.length){var i=arguments[0],r=arguments[1];this.pts=i,this._label=r}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDepth=function(){return this._depth},e.prototype.getCollapsedEdge=function(){var t=new Array(2).fill(null);return t[0]=this.pts[0],t[1]=this.pts[1],new e(t,Pe.toLineLabel(this._label))},e.prototype.isIsolated=function(){return this._isIsolated},e.prototype.getCoordinates=function(){return this.pts},e.prototype.setIsolated=function(t){this._isIsolated=t},e.prototype.setName=function(t){this._name=t},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;if(this.pts.length!==n.pts.length)return!1;for(var i=!0,r=!0,o=this.pts.length,s=0;s0?this.pts[0]:null;if(1===arguments.length){var t=arguments[0];return this.pts[t]}},e.prototype.print=function(t){t.print("edge "+this._name+": "),t.print("LINESTRING (");for(var e=0;e0&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(") "+this._label+" "+this._depthDelta)},e.prototype.computeIM=function(t){e.updateIM(this._label,t)},e.prototype.isCollapsed=function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},e.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},e.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},e.prototype.getDepthDelta=function(){return this._depthDelta},e.prototype.getNumPoints=function(){return this.pts.length},e.prototype.printReverse=function(t){t.print("edge "+this._name+": ");for(var e=this.pts.length-1;e>=0;e--)t.print(this.pts[e]+" ");t.println("")},e.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new $n(this)),this._mce},e.prototype.getEnvelope=function(){if(null===this._env){this._env=new j;for(var t=0;t0&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(") "+this._label+" "+this._depthDelta),t.toString()},e.prototype.isPointwiseEqual=function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;ei||this._maxyo;if(s)return!1;var a=this.intersectsToleranceSquare(t,e);return et.isTrue(!(s&&a),"Found bad envelope test"),a},ai.prototype.initCorners=function(t){this._minx=t.x-.5,this._maxx=t.x+.5,this._miny=t.y-.5,this._maxy=t.y+.5,this._corner[0]=new C(this._maxx,this._maxy),this._corner[1]=new C(this._minx,this._maxy),this._corner[2]=new C(this._minx,this._miny),this._corner[3]=new C(this._maxx,this._miny)},ai.prototype.intersects=function(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},ai.prototype.scale=function(t){return Math.round(t*this._scaleFactor)},ai.prototype.getCoordinate=function(){return this._originalPt},ai.prototype.copyScaled=function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)},ai.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var t=ai.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new j(this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv},ai.prototype.intersectsPixelClosure=function(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!(this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),this._li.hasIntersection()))))},ai.prototype.intersectsToleranceSquare=function(t,e){var n=!1,i=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!(this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),this._li.isProper()||(this._li.hasIntersection()&&(i=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),this._li.isProper()||n&&i||t.equals(this._pt)||e.equals(this._pt)))))},ai.prototype.addSnappedNode=function(t,e){var n=t.getCoordinate(e),i=t.getCoordinate(e+1);return!!this.intersects(n,i)&&(t.addIntersection(this.getCoordinate(),e),!0)},ai.prototype.interfaces_=function(){return[]},ai.prototype.getClass=function(){return ai},ui.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(ai,ui);var li=function(){this.tempEnv1=new j,this.selectedSegment=new dn};li.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var e=arguments[1];arguments[0].getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}},li.prototype.interfaces_=function(){return[]},li.prototype.getClass=function(){return li};var ci=function(){this._index=null;var t=arguments[0];this._index=t},pi={HotPixelSnapAction:{configurable:!0}};ci.prototype.snap=function(){if(1===arguments.length){var t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2],r=e.getSafeEnvelope(),o=new hi(e,n,i);return this._index.query(r,{interfaces_:function(){return[Ke]},visitItem:function(t){t.select(r,o)}}),o.isNodeAdded()}},ci.prototype.interfaces_=function(){return[]},ci.prototype.getClass=function(){return ci},pi.HotPixelSnapAction.get=function(){return hi},Object.defineProperties(ci,pi);var hi=function(t){function e(){t.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var e=arguments[0],n=arguments[1],i=arguments[2];this._hotPixel=e,this._parentEdge=n,this._hotPixelVertexIndex=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isNodeAdded=function(){return this._isNodeAdded},e.prototype.select=function(){if(2!==arguments.length)return t.prototype.select.apply(this,arguments);var n=arguments[1],i=arguments[0].getContext();if(null!==this._parentEdge&&i===this._parentEdge&&n===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(i,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(li),fi=function(){this._li=null,this._interiorIntersections=null;var t=arguments[0];this._li=t,this._interiorIntersections=new Nt};fi.prototype.processIntersections=function(t,e,n,i){if(t===n&&e===i)return null;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[i],a=n.getCoordinates()[i+1];if(this._li.computeIntersection(r,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var u=0;u=0;e--){try{t.bufferReducedPrecision(e)}catch(e){if(!(e instanceof we))throw e;t._saveException=e}if(null!==t._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var n=arguments[0],i=di.precisionScaleFactor(this._argGeom,this._distance,n),r=new fe(i);this.bufferFixedPrecision(r)}},di.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var t=this._argGeom.getFactory().getPrecisionModel();t.getType()===fe.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},di.prototype.setQuadrantSegments=function(t){this._bufParams.setQuadrantSegments(t)},di.prototype.bufferOriginalPrecision=function(){try{var t=new ii(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof $))throw t;this._saveException=t}},di.prototype.getResultGeometry=function(t){return this._distance=t,this.computeGeometry(),this._resultGeometry},di.prototype.setEndCapStyle=function(t){this._bufParams.setEndCapStyle(t)},di.prototype.interfaces_=function(){return[]},di.prototype.getClass=function(){return di},di.bufferOp=function(){if(2===arguments.length){var e=arguments[1];return new di(arguments[0]).getResultGeometry(e)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof ct&&"number"==typeof arguments[1]){var i=arguments[1],r=arguments[2],o=new di(arguments[0]);return o.setQuadrantSegments(r),o.getResultGeometry(i)}if(arguments[2]instanceof Cn&&arguments[0]instanceof ct&&"number"==typeof arguments[1]){var a=arguments[1];return new di(arguments[0],arguments[2]).getResultGeometry(a)}}else if(4===arguments.length){var c=arguments[1],p=arguments[2],h=arguments[3],f=new di(arguments[0]);return f.setQuadrantSegments(p),f.setEndCapStyle(h),f.getResultGeometry(c)}},di.precisionScaleFactor=function(t,e,n){var i=t.getEnvelopeInternal(),r=R.max(Math.abs(i.getMaxX()),Math.abs(i.getMaxY()),Math.abs(i.getMinX()),Math.abs(i.getMinY()))+2*(e>0?e:0),o=n-Math.trunc(Math.log(r)/Math.log(10)+1);return Math.pow(10,o)},yi.CAP_ROUND.get=function(){return Cn.CAP_ROUND},yi.CAP_BUTT.get=function(){return Cn.CAP_FLAT},yi.CAP_FLAT.get=function(){return Cn.CAP_FLAT},yi.CAP_SQUARE.get=function(){return Cn.CAP_SQUARE},yi.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(di,yi);var _i=function(){this._pt=[new C,new C],this._distance=v.NaN,this._isNull=!0};_i.prototype.getCoordinates=function(){return this._pt},_i.prototype.getCoordinate=function(t){return this._pt[t]},_i.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);ithis._distance&&this.initialize(e,n,i)}},_i.prototype.interfaces_=function(){return[]},_i.prototype.getClass=function(){return _i};var mi=function(){};mi.prototype.interfaces_=function(){return[]},mi.prototype.getClass=function(){return mi},mi.computeDistance=function(){if(arguments[2]instanceof _i&&arguments[0]instanceof Kt&&arguments[1]instanceof C)for(var e=arguments[1],n=arguments[2],i=arguments[0].getCoordinates(),r=new dn,o=0;o0||this._isIn?w.INTERIOR:w.EXTERIOR)},Si.prototype.interfaces_=function(){return[]},Si.prototype.getClass=function(){return Si};var Li=function t(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length)t.call(this,arguments[0],t.INSIDE_AREA,arguments[1]);else if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this._component=i,this._segIndex=r,this._pt=o}},bi={INSIDE_AREA:{configurable:!0}};Li.prototype.isInsideArea=function(){return this._segIndex===Li.INSIDE_AREA},Li.prototype.getCoordinate=function(){return this._pt},Li.prototype.getGeometryComponent=function(){return this._component},Li.prototype.getSegmentIndex=function(){return this._segIndex},Li.prototype.interfaces_=function(){return[]},Li.prototype.getClass=function(){return Li},bi.INSIDE_AREA.get=function(){return-1},Object.defineProperties(Li,bi);var wi=function(t){this._pts=t||null};wi.prototype.filter=function(t){t instanceof Qt&&this._pts.add(t)},wi.prototype.interfaces_=function(){return[Vt]},wi.prototype.getClass=function(){return wi},wi.getPoints=function(){if(1===arguments.length){var t=arguments[0];return t instanceof Qt?$e.singletonList(t):wi.getPoints(t,new Nt)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof Qt?n.add(e):e instanceof zt&&e.apply(new wi(n)),n}};var Oi=function(){this._locations=null;var t=arguments[0];this._locations=t};Oi.prototype.filter=function(t){(t instanceof Qt||t instanceof Kt||t instanceof $t)&&this._locations.add(new Li(t,0,t.getCoordinate()))},Oi.prototype.interfaces_=function(){return[Vt]},Oi.prototype.getClass=function(){return Oi},Oi.getLocations=function(t){var e=new Nt;return t.apply(new Oi(e)),e};var Ti=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Si,this._minDistanceLocation=null,this._minDistance=v.MAX_VALUE,2===arguments.length){var t=arguments[0],e=arguments[1];this._geom=[t,e],this._terminateDistance=0}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=n,this._geom[1]=i,this._terminateDistance=r}};Ti.prototype.computeContainmentDistance=function(){if(0===arguments.length){var t=new Array(2).fill(null);if(this.computeContainmentDistance(0,t),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=1-e,r=Ni.getPolygons(this._geom[e]);if(r.size()>0){var o=Oi.getLocations(this._geom[i]);if(this.computeContainmentDistance(o,r,n),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[i]=n[0],this._minDistanceLocation[e]=n[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&T(arguments[0],xt)&&T(arguments[1],xt)){for(var s=arguments[0],a=arguments[1],u=arguments[2],l=0;lthis._minDistance)return null;for(var i=t.getCoordinates(),r=e.getCoordinate(),o=0;othis._minDistance)return null;for(var p=u.getCoordinates(),h=l.getCoordinates(),f=0;fthis._distance&&this.initialize(e,n,i)}},Ri.prototype.interfaces_=function(){return[]},Ri.prototype.getClass=function(){return Ri};var Pi=function(){};Pi.prototype.interfaces_=function(){return[]},Pi.prototype.getClass=function(){return Pi},Pi.computeDistance=function(){if(arguments[2]instanceof Ri&&arguments[0]instanceof Kt&&arguments[1]instanceof C)for(var t=arguments[0],e=arguments[1],n=arguments[2],i=new dn,r=t.getCoordinates(),o=0;o1||t<=0)throw new m("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=t},Di.prototype.compute=function(t,e){this.computeOrientedDistance(t,e,this._ptDist),this.computeOrientedDistance(e,t,this._ptDist)},Di.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},Di.prototype.computeOrientedDistance=function(t,e,n){var i=new Ai(e);if(t.apply(i),n.setMaximum(i.getMaxPointDistance()),this._densifyFrac>0){var r=new Fi(e,this._densifyFrac);t.apply(r),n.setMaximum(r.getMaxPointDistance())}},Di.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},Di.prototype.interfaces_=function(){return[]},Di.prototype.getClass=function(){return Di},Di.distance=function(){if(2===arguments.length)return new Di(arguments[0],arguments[1]).distance();if(3===arguments.length){var r=arguments[2],o=new Di(arguments[0],arguments[1]);return o.setDensifyFraction(r),o.distance()}},Mi.MaxPointDistanceFilter.get=function(){return Ai},Mi.MaxDensifiedByFractionDistanceFilter.get=function(){return Fi},Object.defineProperties(Di,Mi);var Ai=function(){this._maxPtDist=new Ri,this._minPtDist=new Ri,this._euclideanDist=new Pi,this._geom=null;var t=arguments[0];this._geom=t};Ai.prototype.filter=function(t){this._minPtDist.initialize(),Pi.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Ai.prototype.getMaxPointDistance=function(){return this._maxPtDist},Ai.prototype.interfaces_=function(){return[ft]},Ai.prototype.getClass=function(){return Ai};var Fi=function(){this._maxPtDist=new Ri,this._minPtDist=new Ri,this._geom=null,this._numSubSegs=0;var t=arguments[0],e=arguments[1];this._geom=t,this._numSubSegs=Math.trunc(Math.round(1/e))};Fi.prototype.filter=function(t,e){if(0===e)return null;for(var n=t.getCoordinate(e-1),i=t.getCoordinate(e),r=(i.x-n.x)/this._numSubSegs,o=(i.y-n.y)/this._numSubSegs,s=0;sn){this._isValid=!1;var r=i.getCoordinates();this._errorLocation=r[1],this._errorIndicator=t.getFactory().createLineString(r),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+Z.toLineString(r[0],r[1])+")"}},Gi.prototype.isValid=function(){var t=Math.abs(this._bufDistance),e=Gi.MAX_DISTANCE_DIFF_FRAC*t;return this._minValidDistance=t-e,this._maxValidDistance=t+e,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),Gi.VERBOSE&&Y.out.println("Min Dist= "+this._minDistanceFound+" err= "+(1-this._minDistanceFound/this._bufDistance)+" Max Dist= "+this._maxDistanceFound+" err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},Gi.prototype.checkNegativeValid=function(){if(!(this._input instanceof $t||this._input instanceof ne||this._input instanceof zt))return null;var t=this.getPolygonLines(this._input);if(this.checkMinimumDistance(t,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(t,this._result,this._maxValidDistance)},Gi.prototype.getErrorIndicator=function(){return this._errorIndicator},Gi.prototype.checkMinimumDistance=function(t,e,n){var i=new Ti(t,e,n);if(this._minDistanceFound=i.distance(),this._minDistanceFound0&&t>e&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&t=2||this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},Bi.prototype.report=function(t){if(!Bi.VERBOSE)return null;Y.out.println("Check "+t+": "+(this._isValid?"passed":"FAILED"))},Bi.prototype.getErrorMessage=function(){return this._errorMsg},Bi.prototype.interfaces_=function(){return[]},Bi.prototype.getClass=function(){return Bi},Bi.isValidMsg=function(t,e,n){var i=new Bi(t,e,n);return i.isValid()?null:i.getErrorMessage()},Bi.isValid=function(t,e,n){return!!new Bi(t,e,n).isValid()},Vi.VERBOSE.get=function(){return!1},Vi.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(Bi,Vi);var Ui=function(){this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};Ui.prototype.getCoordinates=function(){return this._pts},Ui.prototype.size=function(){return this._pts.length},Ui.prototype.getCoordinate=function(t){return this._pts[t]},Ui.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},Ui.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:pn.octant(this.getCoordinate(t),this.getCoordinate(t+1))},Ui.prototype.setData=function(t){this._data=t},Ui.prototype.getData=function(){return this._data},Ui.prototype.toString=function(){return Z.toLineString(new ue(this._pts))},Ui.prototype.interfaces_=function(){return[hn]},Ui.prototype.getClass=function(){return Ui};var zi=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new Nt,this._intersectionCount=0,this._keepIntersections=!0;var t=arguments[0];this._li=t,this._interiorIntersection=null};zi.prototype.getInteriorIntersection=function(){return this._interiorIntersection},zi.prototype.setCheckEndSegmentsOnly=function(t){this._isCheckEndSegmentsOnly=t},zi.prototype.getIntersectionSegments=function(){return this._intSegments},zi.prototype.count=function(){return this._intersectionCount},zi.prototype.getIntersections=function(){return this._intersections},zi.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},zi.prototype.setKeepIntersections=function(t){this._keepIntersections=t},zi.prototype.processIntersections=function(t,e,n,i){if(!this._findAllIntersections&&this.hasIntersection())return null;if(t===n&&e===i)return null;if(this._isCheckEndSegmentsOnly&&!this.isEndSegment(t,e)&&!this.isEndSegment(n,i))return null;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[i],a=n.getCoordinates()[i+1];this._li.computeIntersection(r,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=r,this._intSegments[1]=o,this._intSegments[2]=s,this._intSegments[3]=a,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},zi.prototype.isEndSegment=function(t,e){return 0===e||e>=t.size()-2},zi.prototype.hasIntersection=function(){return null!==this._interiorIntersection},zi.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},zi.prototype.interfaces_=function(){return[Wn]},zi.prototype.getClass=function(){return zi},zi.createAllIntersectionsFinder=function(t){var e=new zi(t);return e.setFindAllIntersections(!0),e},zi.createAnyIntersectionFinder=function(t){return new zi(t)},zi.createIntersectionCounter=function(t){var e=new zi(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e};var Xi=function(){this._li=new rt,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var t=arguments[0];this._segStrings=t};Xi.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},Xi.prototype.getIntersections=function(){return this._segInt.getIntersections()},Xi.prototype.isValid=function(){return this.execute(),this._isValid},Xi.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},Xi.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new zi(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var t=new xn;if(t.setSegmentIntersector(this._segInt),t.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},Xi.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new we(this.getErrorMessage(),this._segInt.getInteriorIntersection())},Xi.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var t=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+Z.toLineString(t[0],t[1])+" and "+Z.toLineString(t[2],t[3])},Xi.prototype.interfaces_=function(){return[]},Xi.prototype.getClass=function(){return Xi},Xi.computeIntersections=function(t){var e=new Xi(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()};var Yi=function t(){this._nv=null;var e=arguments[0];this._nv=new Xi(t.toSegmentStrings(e))};Yi.prototype.checkValid=function(){this._nv.checkValid()},Yi.prototype.interfaces_=function(){return[]},Yi.prototype.getClass=function(){return Yi},Yi.toSegmentStrings=function(t){for(var e=new Nt,n=t.iterator();n.hasNext();){var i=n.next();e.add(new Ui(i.getCoordinates(),i))}return e},Yi.checkValid=function(t){new Yi(t).checkValid()};var ki=function(t){this._mapOp=t};ki.prototype.map=function(t){for(var e=new Nt,n=0;n0&&i<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)},Wi.prototype.interfaces_=function(){return[]},Wi.prototype.getClass=function(){return Wi};var Ki=function t(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new dn,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Kt&&"number"==typeof arguments[1]){var n=arguments[1];t.call(this,arguments[0].getCoordinates(),n)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var i=arguments[0],r=arguments[1];this._srcPts=i,this._isClosed=t.isClosed(i),this._snapTolerance=r}};Ki.prototype.snapVertices=function(t,e){for(var n=this._isClosed?t.size()-1:t.size(),i=0;i=0&&t.add(o+1,new C(r),!1)}},Ki.prototype.findSegmentIndexToSnap=function(t,e){for(var n=v.MAX_VALUE,i=-1,r=0;re&&(e=i)}return e}if(2===arguments.length){var r=arguments[0],o=arguments[1];return Math.min(Ji.computeOverlaySnapTolerance(r),Ji.computeOverlaySnapTolerance(o))}},Ji.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal();return Math.min(e.getHeight(),e.getWidth())*Ji.SNAP_PRECISION_FACTOR},Ji.snapToSelf=function(t,e,n){return new Ji(t).snapToSelf(e,n)},Qi.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(Ji,Qi);var Zi=function(t){function e(e,n,i){t.call(this),this._snapTolerance=e||null,this._snapPts=n||null,this._isSelfSnap=void 0!==i&&i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.snapLine=function(t,e){var n=new Ki(t,this._snapTolerance);return n.setAllowSnappingToSourceVertices(this._isSelfSnap),n.snapTo(e)},e.prototype.transformCoordinates=function(t,e){var n=t.toCoordinateArray(),i=this.snapLine(n,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(i)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Wi),$i=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};$i.prototype.getCommon=function(){return v.longBitsToDouble(this._commonBits)},$i.prototype.add=function(t){var e=v.doubleToLongBits(t);return this._isFirst?(this._commonBits=e,this._commonSignExp=$i.signExpBits(this._commonBits),this._isFirst=!1,null):$i.signExpBits(e)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=$i.numCommonMostSigMantissaBits(this._commonBits,e),void(this._commonBits=$i.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},$i.prototype.toString=function(){if(1===arguments.length){var t=arguments[0],e=v.longBitsToDouble(t),n="0000000000000000000000000000000000000000000000000000000000000000"+v.toBinaryString(t),i=n.substring(n.length-64);return i.substring(0,1)+" "+i.substring(1,12)+"(exp) "+i.substring(12)+" [ "+e+" ]"}},$i.prototype.interfaces_=function(){return[]},$i.prototype.getClass=function(){return $i},$i.getBit=function(t,e){return 0!=(t&1<>52},$i.zeroLowerBits=function(t,e){return t&~((1<=0;i--){if($i.getBit(t,i)!==$i.getBit(e,i))return n;n++}return 52};var tr=function(){this._commonCoord=null,this._ccFilter=new nr},er={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};tr.prototype.addCommonBits=function(t){var e=new ir(this._commonCoord);t.apply(e),t.geometryChanged()},tr.prototype.removeCommonBits=function(t){if(0===this._commonCoord.x&&0===this._commonCoord.y)return t;var e=new C(this._commonCoord);e.x=-e.x,e.y=-e.y;var n=new ir(e);return t.apply(n),t.geometryChanged(),t},tr.prototype.getCommonCoordinate=function(){return this._commonCoord},tr.prototype.add=function(t){t.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},tr.prototype.interfaces_=function(){return[]},tr.prototype.getClass=function(){return tr},er.CommonCoordinateFilter.get=function(){return nr},er.Translater.get=function(){return ir},Object.defineProperties(tr,er);var nr=function(){this._commonBitsX=new $i,this._commonBitsY=new $i};nr.prototype.filter=function(t){this._commonBitsX.add(t.x),this._commonBitsY.add(t.y)},nr.prototype.getCommonCoordinate=function(){return new C(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},nr.prototype.interfaces_=function(){return[ft]},nr.prototype.getClass=function(){return nr};var ir=function(){this.trans=null;var t=arguments[0];this.trans=t};ir.prototype.filter=function(t,e){var n=t.getOrdinate(e,0)+this.trans.x,i=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,i)},ir.prototype.isDone=function(){return!1},ir.prototype.isGeometryChanged=function(){return!0},ir.prototype.interfaces_=function(){return[Ut]},ir.prototype.getClass=function(){return ir};var rr=function(t,e){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=t,this._geom[1]=e,this.computeSnapTolerance()};rr.prototype.selfSnap=function(t){return new Ji(t).snapTo(t,this._snapTolerance)},rr.prototype.removeCommonBits=function(t){this._cbr=new tr,this._cbr.add(t[0]),this._cbr.add(t[1]);var e=new Array(2).fill(null);return e[0]=this._cbr.removeCommonBits(t[0].copy()),e[1]=this._cbr.removeCommonBits(t[1].copy()),e},rr.prototype.prepareResult=function(t){return this._cbr.addCommonBits(t),t},rr.prototype.getResultGeometry=function(t){var e=this.snap(this._geom),n=Lr.overlayOp(e[0],e[1],t);return this.prepareResult(n)},rr.prototype.checkValid=function(t){t.isValid()||Y.out.println("Snapped geometry is invalid")},rr.prototype.computeSnapTolerance=function(){this._snapTolerance=Ji.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},rr.prototype.snap=function(t){var e=this.removeCommonBits(t);return Ji.snap(e[0],e[1],this._snapTolerance)},rr.prototype.interfaces_=function(){return[]},rr.prototype.getClass=function(){return rr},rr.overlayOp=function(t,e,n){return new rr(t,e).getResultGeometry(n)},rr.union=function(t,e){return rr.overlayOp(t,e,Lr.UNION)},rr.intersection=function(t,e){return rr.overlayOp(t,e,Lr.INTERSECTION)},rr.symDifference=function(t,e){return rr.overlayOp(t,e,Lr.SYMDIFFERENCE)},rr.difference=function(t,e){return rr.overlayOp(t,e,Lr.DIFFERENCE)};var or=function(t,e){this._geom=new Array(2).fill(null),this._geom[0]=t,this._geom[1]=e};or.prototype.getResultGeometry=function(t){var e=null,n=!1,i=null;try{e=Lr.overlayOp(this._geom[0],this._geom[1],t),n=!0}catch(t){if(!(t instanceof $))throw t;i=t}if(!n)try{e=rr.overlayOp(this._geom[0],this._geom[1],t)}catch(t){throw t instanceof $?i:t}return e},or.prototype.interfaces_=function(){return[]},or.prototype.getClass=function(){return or},or.overlayOp=function(t,e,n){return new or(t,e).getResultGeometry(n)},or.union=function(t,e){return or.overlayOp(t,e,Lr.UNION)},or.intersection=function(t,e){return or.overlayOp(t,e,Lr.INTERSECTION)},or.symDifference=function(t,e){return or.overlayOp(t,e,Lr.SYMDIFFERENCE)},or.difference=function(t,e){return or.overlayOp(t,e,Lr.DIFFERENCE)};var sr=function(){this.mce=null,this.chainIndex=null;var t=arguments[0],e=arguments[1];this.mce=t,this.chainIndex=e};sr.prototype.computeIntersections=function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,t.mce,t.chainIndex,e)},sr.prototype.interfaces_=function(){return[]},sr.prototype.getClass=function(){return sr};var ar=function t(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var e=arguments[0],n=arguments[1];this._eventType=t.DELETE,this._xValue=e,this._insertEvent=n}else if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this._eventType=t.INSERT,this._label=i,this._xValue=r,this._obj=o}},ur={INSERT:{configurable:!0},DELETE:{configurable:!0}};ar.prototype.isDelete=function(){return this._eventType===ar.DELETE},ar.prototype.setDeleteEventIndex=function(t){this._deleteEventIndex=t},ar.prototype.getObject=function(){return this._obj},ar.prototype.compareTo=function(t){var e=t;return this._xValuee._xValue?1:this._eventTypee._eventType?1:0},ar.prototype.getInsertEvent=function(){return this._insertEvent},ar.prototype.isInsert=function(){return this._eventType===ar.INSERT},ar.prototype.isSameLabel=function(t){return null!==this._label&&this._label===t._label},ar.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},ar.prototype.interfaces_=function(){return[E]},ar.prototype.getClass=function(){return ar},ur.INSERT.get=function(){return 1},ur.DELETE.get=function(){return 2},Object.defineProperties(ar,ur);var lr=function(){};lr.prototype.interfaces_=function(){return[]},lr.prototype.getClass=function(){return lr};var cr=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._li=t,this._includeProper=e,this._recordIsolated=n};cr.prototype.isTrivialIntersection=function(t,e,n,i){if(t===n&&1===this._li.getIntersectionNum()){if(cr.isAdjacentSegments(e,i))return!0;if(t.isClosed()){var r=t.getNumPoints()-1;if(0===e&&i===r||0===i&&e===r)return!0}}return!1},cr.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},cr.prototype.setIsDoneIfProperInt=function(t){this._isDoneWhenProperInt=t},cr.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},cr.prototype.isBoundaryPointInternal=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next().getCoordinate();if(t.isIntersection(i))return!0}return!1},cr.prototype.hasProperIntersection=function(){return this._hasProper},cr.prototype.hasIntersection=function(){return this._hasIntersection},cr.prototype.isDone=function(){return this._isDone},cr.prototype.isBoundaryPoint=function(t,e){return!(null===e||!this.isBoundaryPointInternal(t,e[0])&&!this.isBoundaryPointInternal(t,e[1]))},cr.prototype.setBoundaryNodes=function(t,e){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=t,this._bdyNodes[1]=e},cr.prototype.addIntersections=function(t,e,n,i){if(t===n&&e===i)return null;this.numTests++;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[i],a=n.getCoordinates()[i+1];this._li.computeIntersection(r,o,s,a),this._li.hasIntersection()&&(this._recordIsolated&&(t.setIsolated(!1),n.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(t,e,n,i)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(t.addIntersections(this._li,e,0),n.addIntersections(this._li,i,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},cr.prototype.interfaces_=function(){return[]},cr.prototype.getClass=function(){return cr},cr.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var pr=function(t){function e(){t.call(this),this.events=new Nt,this.nOverlaps=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.prepareEvents=function(){$e.sort(this.events);for(var t=0;te||this._maxo?1:0},gr.prototype.interfaces_=function(){return[N]},gr.prototype.getClass=function(){return gr};var dr=function(t){function e(){t.call(this),this._item=null;var e=arguments[0],n=arguments[1],i=arguments[2];this._min=e,this._max=n,this._item=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;n.visitItem(this._item)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(hr),yr=function(t){function e(){t.call(this),this._node1=null,this._node2=null;var e=arguments[0],n=arguments[1];this._node1=e,this._node2=n,this.buildExtent(this._node1,this._node2)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.buildExtent=function(t,e){this._min=Math.min(t._min,e._min),this._max=Math.max(t._max,e._max)},e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;null!==this._node1&&this._node1.query(t,e,n),null!==this._node2&&this._node2.query(t,e,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(hr),_r=function(){this._leaves=new Nt,this._root=null,this._level=0};_r.prototype.buildTree=function(){$e.sort(this._leaves,new hr.NodeComparator);for(var t=this._leaves,e=null,n=new Nt;;){if(this.buildLevel(t,n),1===n.size())return n.get(0);e=t,t=n,n=e}},_r.prototype.insert=function(t,e,n){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new dr(t,e,n))},_r.prototype.query=function(t,e,n){this.init(),this._root.query(t,e,n)},_r.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},_r.prototype.printNode=function(t){Y.out.println(Z.toLineString(new C(t._min,this._level),new C(t._max,this._level)))},_r.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},_r.prototype.buildLevel=function(t,e){this._level++,e.clear();for(var n=0;n=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,e[0]),this.insertBoundaryPoint(this._argIndex,e[e.length-1])},e.prototype.getInvalidPoint=function(){return this._invalidPoint},e.prototype.getBoundaryPoints=function(){for(var t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null),n=0,i=t.iterator();i.hasNext();){var r=i.next();e[n++]=r.getCoordinate().copy()}return e},e.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},e.prototype.addSelfIntersectionNode=function(t,e,n){if(this.isBoundaryNode(t,e))return null;n===w.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n)},e.prototype.addPolygonRing=function(t,e,n){if(t.isEmpty())return null;var i=Lt.removeRepeatedPoints(t.getCoordinates());if(i.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=i[0],null;var r=e,o=n;at.isCCW(i)&&(r=n,o=e);var s=new ni(i,new Pe(this._argIndex,w.BOUNDARY,r,o));this._lineEdgeMap.put(t,s),this.insertEdge(s),this.insertPoint(this._argIndex,i[0],w.BOUNDARY)},e.prototype.insertPoint=function(t,e,n){var i=this._nodes.addNode(e),r=i.getLabel();null===r?i._label=new Pe(t,n):r.setLocation(t,n)},e.prototype.createEdgeSetIntersector=function(){return new pr},e.prototype.addSelfIntersectionNodes=function(t){for(var e=this._edges.iterator();e.hasNext();)for(var n=e.next(),i=n.getLabel().getLocation(t),r=n.eiList.iterator();r.hasNext();){var o=r.next();this.addSelfIntersectionNode(t,o.coord,i)}},e.prototype.add=function(){if(1!==arguments.length)return t.prototype.add.apply(this,arguments);var e=arguments[0];if(e.isEmpty())return null;if(e instanceof ne&&(this._useBoundaryDeterminationRule=!1),e instanceof $t)this.addPolygon(e);else if(e instanceof Kt)this.addLineString(e);else if(e instanceof Qt)this.addPoint(e);else if(e instanceof te)this.addCollection(e);else if(e instanceof Xt)this.addCollection(e);else if(e instanceof ne)this.addCollection(e);else{if(!(e instanceof zt))throw new Error(e.getClass().getName());this.addCollection(e)}},e.prototype.addCollection=function(t){for(var e=0;e50?(null===this._areaPtLocator&&(this._areaPtLocator=new vr(this._parentGeom)),this._areaPtLocator.locate(t)):this._ptLocator.locate(t,this._parentGeom)},e.prototype.findEdge=function(){if(1===arguments.length){var e=arguments[0];return this._lineEdgeMap.get(e)}return t.prototype.findEdge.apply(this,arguments)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.determineBoundary=function(t,e){return t.isInBoundary(e)?w.BOUNDARY:w.INTERIOR},e}(Ye),Cr=function(){if(this._li=new rt,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var t=arguments[0];this.setComputationPrecision(t.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new Nr(0,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=gt.OGC_SFS_BOUNDARY_RULE;e.getPrecisionModel().compareTo(n.getPrecisionModel())>=0?this.setComputationPrecision(e.getPrecisionModel()):this.setComputationPrecision(n.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Nr(0,e,i),this._arg[1]=new Nr(1,n,i)}else if(3===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2];r.getPrecisionModel().compareTo(o.getPrecisionModel())>=0?this.setComputationPrecision(r.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Nr(0,r,s),this._arg[1]=new Nr(1,o,s)}};Cr.prototype.getArgGeometry=function(t){return this._arg[t].getGeometry()},Cr.prototype.setComputationPrecision=function(t){this._resultPrecisionModel=t,this._li.setPrecisionModel(this._resultPrecisionModel)},Cr.prototype.interfaces_=function(){return[]},Cr.prototype.getClass=function(){return Cr};var Sr=function(){};Sr.prototype.interfaces_=function(){return[]},Sr.prototype.getClass=function(){return Sr},Sr.map=function(){if(arguments[0]instanceof ct&&T(arguments[1],Sr.MapOp)){for(var t=arguments[0],e=arguments[1],n=new Nt,i=0;i=t.size()?null:t.get(e)},Dr.union=function(t){return new Dr(t).union()},Mr.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(Dr,Mr);var Ar=function(){};Ar.prototype.interfaces_=function(){return[]},Ar.prototype.getClass=function(){return Ar},Ar.union=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Lr.createEmptyResult(Lr.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),or.overlayOp(t,e,Lr.UNION)},t.GeoJSONReader=Ne,t.GeoJSONWriter=Ce,t.OverlayOp=Lr,t.UnionOp=Ar,t.BufferOp=di,Object.defineProperty(t,"__esModule",{value:!0})}(exports)},"./node_modules/viewport-mercator-project/module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{MAX_LATITUDE:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.LO},WebMercatorViewport:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.DW},addMetersToLngLat:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.eG},altitudeToFovy:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.Lu},default:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.DW},fitBounds:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.Xg},flyToViewport:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.if},fovyToAltitude:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.sj},getBounds:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.zX},getDistanceScales:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.ro},getFlyToDuration:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.up},getMeterZoom:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.Bf},getProjectionMatrix:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.c7},getProjectionParameters:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.wl},getViewMatrix:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.lf},lngLatToWorld:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.w5},normalizeViewportProps:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.QA},pixelsToWorld:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.CT},scaleToZoom:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.sO},unitsPerMeter:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.NC},worldToLngLat:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.es},worldToPixels:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.aW},zoomToScale:function(){return _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.EO}});var _math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js")},"./node_modules/workerpool/dist/workerpool.js":function(__unused_webpack_module,exports,__webpack_require__){var process=__webpack_require__("./node_modules/process/browser.js");!function(exports){"use strict";var src={},environment={exports:{}};!function(module){var isNode=function(nodeProcess){return void 0!==nodeProcess&&null!=nodeProcess.versions&&null!=nodeProcess.versions.node&&nodeProcess+""=="[object process]"};module.exports.isNode=isNode,module.exports.platform=void 0!==process&&isNode(process)?"node":"browser";var worker_threads="node"===module.exports.platform&&__webpack_require__("?5693");module.exports.isMainThread="node"===module.exports.platform?(!worker_threads||worker_threads.isMainThread)&&!process.connected:"undefined"!=typeof Window,module.exports.cpus="browser"===module.exports.platform?self.navigator.hardwareConcurrency:__webpack_require__("?90e7").cpus().length}(environment);var hasRequired_Promise,environmentExports=environment.exports,_Promise$1={};function require_Promise(){if(hasRequired_Promise)return _Promise$1;function Promise(handler,parent){var me=this;if(!(this instanceof Promise))throw new SyntaxError("Constructor must be called with the new operator");if("function"!=typeof handler)throw new SyntaxError("Function parameter handler(resolve, reject) missing");var _onSuccess=[],_onFail=[];this.resolved=!1,this.rejected=!1,this.pending=!0;var _process=function(onSuccess,onFail){_onSuccess.push(onSuccess),_onFail.push(onFail)};this.then=function(onSuccess,onFail){return new Promise((function(resolve,reject){var s=onSuccess?_then(onSuccess,resolve,reject):resolve,f=onFail?_then(onFail,resolve,reject):reject;_process(s,f)}),me)};var _resolve=function(result){return me.resolved=!0,me.rejected=!1,me.pending=!1,_onSuccess.forEach((function(fn){fn(result)})),_process=function(onSuccess,onFail){onSuccess(result)},_resolve=_reject=function(){},me},_reject=function(error){return me.resolved=!1,me.rejected=!0,me.pending=!1,_onFail.forEach((function(fn){fn(error)})),_process=function(onSuccess,onFail){onFail(error)},_resolve=_reject=function(){},me};this.cancel=function(){return parent?parent.cancel():_reject(new CancellationError),me},this.timeout=function(delay){if(parent)parent.timeout(delay);else{var timer=setTimeout((function(){_reject(new TimeoutError("Promise timed out after "+delay+" ms"))}),delay);me.always((function(){clearTimeout(timer)}))}return me},handler((function(result){_resolve(result)}),(function(error){_reject(error)}))}function _then(callback,resolve,reject){return function(result){try{var res=callback(result);res&&"function"==typeof res.then&&"function"==typeof res.catch?res.then(resolve,reject):resolve(res)}catch(error){reject(error)}}}function CancellationError(message){this.message=message||"promise cancelled",this.stack=(new Error).stack}function TimeoutError(message){this.message=message||"timeout exceeded",this.stack=(new Error).stack}return hasRequired_Promise=1,Promise.prototype.catch=function(onFail){return this.then(null,onFail)},Promise.prototype.always=function(fn){return this.then(fn,fn)},Promise.all=function(promises){return new Promise((function(resolve,reject){var remaining=promises.length,results=[];remaining?promises.forEach((function(p,i){p.then((function(result){results[i]=result,0==--remaining&&resolve(results)}),(function(error){remaining=0,reject(error)}))})):resolve(results)}))},Promise.defer=function(){var resolver={};return resolver.promise=new Promise((function(resolve,reject){resolver.resolve=resolve,resolver.reject=reject})),resolver},CancellationError.prototype=new Error,CancellationError.prototype.constructor=Error,CancellationError.prototype.name="CancellationError",Promise.CancellationError=CancellationError,TimeoutError.prototype=new Error,TimeoutError.prototype.constructor=Error,TimeoutError.prototype.name="TimeoutError",Promise.TimeoutError=TimeoutError,_Promise$1.Promise=Promise,_Promise$1}var hasRequiredValidateOptions,embeddedWorker,hasRequiredEmbeddedWorker,hasRequiredWorkerHandler,debugPortAllocator,hasRequiredDebugPortAllocator,Pool_1,hasRequiredPool,WorkerHandler={exports:{}},validateOptions={};function requireValidateOptions(){return hasRequiredValidateOptions||(hasRequiredValidateOptions=1,validateOptions.validateOptions=function validateOptions(options,allowedOptionNames,objectName){if(options){var optionNames=options?Object.keys(options):[],unknownOptionName=optionNames.find((optionName=>!allowedOptionNames.includes(optionName)));if(unknownOptionName)throw new Error('Object "'+objectName+'" contains an unknown option "'+unknownOptionName+'"');var illegalOptionName=allowedOptionNames.find((allowedOptionName=>Object.prototype[allowedOptionName]&&!optionNames.includes(allowedOptionName)));if(illegalOptionName)throw new Error('Object "'+objectName+'" contains an inherited option "'+illegalOptionName+'" which is not defined in the object itself but in its prototype. Only plain objects are allowed. Please remove the option from the prototype or override it with a value "undefined".');return options}},validateOptions.workerOptsNames=["credentials","name","type"],validateOptions.forkOptsNames=["cwd","detached","env","execPath","execArgv","gid","serialization","signal","killSignal","silent","stdio","uid","windowsVerbatimArguments","timeout"],validateOptions.workerThreadOptsNames=["argv","env","eval","execArgv","stdin","stdout","stderr","workerData","trackUnmanagedFds","transferList","resourceLimits","name"]),validateOptions}function requireEmbeddedWorker(){return hasRequiredEmbeddedWorker?embeddedWorker:(hasRequiredEmbeddedWorker=1,embeddedWorker='!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).worker=n()}(this,(function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={};var t=function(e,n){this.message=e,this.transfer=n};return function(e){var n=t,r={exit:function(){}};if("undefined"!=typeof self&&"function"==typeof postMessage&&"function"==typeof addEventListener)r.on=function(e,n){addEventListener(e,(function(e){n(e.data)}))},r.send=function(e){postMessage(e)};else{if("undefined"==typeof process)throw new Error("Script must be executed as a worker");var o;try{o=require("worker_threads")}catch(e){if("object"!=typeof e||null===e||"MODULE_NOT_FOUND"!==e.code)throw e}if(o&&null!==o.parentPort){var i=o.parentPort;r.send=i.postMessage.bind(i),r.on=i.on.bind(i),r.exit=process.exit.bind(process)}else r.on=process.on.bind(process),r.send=function(e){process.send(e)},r.on("disconnect",(function(){process.exit(1)})),r.exit=process.exit.bind(process)}function s(e){return Object.getOwnPropertyNames(e).reduce((function(n,t){return Object.defineProperty(n,t,{value:e[t],enumerable:!0})}),{})}function d(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}r.methods={},r.methods.run=function(e,n){var t=new Function("return ("+e+").apply(null, arguments);");return t.apply(t,n)},r.methods.methods=function(){return Object.keys(r.methods)},r.terminationHandler=void 0,r.cleanupAndExit=function(e){var n=function(){r.exit(e)};if(!r.terminationHandler)return n();var t=r.terminationHandler(e);d(t)?t.then(n,n):n()};var u=null;r.on("message",(function(e){if("__workerpool-terminate__"===e)return r.cleanupAndExit(0);try{var t=r.methods[e.method];if(!t)throw new Error(\'Unknown method "\'+e.method+\'"\');u=e.id;var o=t.apply(t,e.params);d(o)?o.then((function(t){t instanceof n?r.send({id:e.id,result:t.message,error:null},t.transfer):r.send({id:e.id,result:t,error:null}),u=null})).catch((function(n){r.send({id:e.id,result:null,error:s(n)}),u=null})):(o instanceof n?r.send({id:e.id,result:o.message,error:null},o.transfer):r.send({id:e.id,result:o,error:null}),u=null)}catch(n){r.send({id:e.id,result:null,error:s(n)})}})),r.register=function(e,n){if(e)for(var t in e)e.hasOwnProperty(t)&&(r.methods[t]=e[t]);n&&(r.terminationHandler=n.onTerminate),r.send("ready")},r.emit=function(e){if(u){if(e instanceof n)return void r.send({id:u,isEvent:!0,payload:e.message},e.transfer);r.send({id:u,isEvent:!0,payload:e})}},e.add=r.register,e.emit=r.emit}(n),e(n)}));\n//# sourceMappingURL=worker.min.js.map\n')}function requireWorkerHandler(){if(hasRequiredWorkerHandler)return WorkerHandler.exports;hasRequiredWorkerHandler=1;var{Promise:Promise}=require_Promise(),environment=environmentExports;const{validateOptions:validateOptions,forkOptsNames:forkOptsNames,workerThreadOptsNames:workerThreadOptsNames,workerOptsNames:workerOptsNames}=requireValidateOptions();var TERMINATE_METHOD_ID="__workerpool-terminate__";function ensureWorkerThreads(){var WorkerThreads=tryRequireWorkerThreads();if(!WorkerThreads)throw new Error("WorkerPool: workerType = 'thread' is not supported, Node >= 11.7.0 required");return WorkerThreads}function ensureWebWorker(){if("function"!=typeof Worker&&("object"!=typeof Worker||"function"!=typeof Worker.prototype.constructor))throw new Error("WorkerPool: Web Workers not supported")}function tryRequireWorkerThreads(){try{return __webpack_require__("?5693")}catch(error){if("object"==typeof error&&null!==error&&"MODULE_NOT_FOUND"===error.code)return null;throw error}}function getDefaultWorker(){if("browser"===environment.platform){if("undefined"==typeof Blob)throw new Error("Blob not supported by the browser");if(!window.URL||"function"!=typeof window.URL.createObjectURL)throw new Error("URL.createObjectURL not supported by the browser");var blob=new Blob([requireEmbeddedWorker()],{type:"text/javascript"});return window.URL.createObjectURL(blob)}return"//worker.js"}function setupWorker(script,options){if("web"===options.workerType)return ensureWebWorker(),setupBrowserWorker(script,options.workerOpts,Worker);if("thread"===options.workerType)return setupWorkerThreadWorker(script,WorkerThreads=ensureWorkerThreads(),options);if("process"!==options.workerType&&options.workerType){if("browser"===environment.platform)return ensureWebWorker(),setupBrowserWorker(script,options.workerOpts,Worker);var WorkerThreads=tryRequireWorkerThreads();return WorkerThreads?setupWorkerThreadWorker(script,WorkerThreads,options):setupProcessWorker(script,resolveForkOptions(options),__webpack_require__("?ccfa"))}return setupProcessWorker(script,resolveForkOptions(options),__webpack_require__("?ccfa"))}function setupBrowserWorker(script,workerOpts,Worker){validateOptions(workerOpts,workerOptsNames,"workerOpts");var worker=new Worker(script,workerOpts);return worker.isBrowserWorker=!0,worker.on=function(event,callback){this.addEventListener(event,(function(message){callback(message.data)}))},worker.send=function(message,transfer){this.postMessage(message,transfer)},worker}function setupWorkerThreadWorker(script,WorkerThreads,options){validateOptions(options?.workerThreadOpts,workerThreadOptsNames,"workerThreadOpts");var worker=new WorkerThreads.Worker(script,{stdout:options?.emitStdStreams??!1,stderr:options?.emitStdStreams??!1,...options?.workerThreadOpts});return worker.isWorkerThread=!0,worker.send=function(message,transfer){this.postMessage(message,transfer)},worker.kill=function(){return this.terminate(),!0},worker.disconnect=function(){this.terminate()},options?.emitStdStreams&&(worker.stdout.on("data",(data=>worker.emit("stdout",data))),worker.stderr.on("data",(data=>worker.emit("stderr",data)))),worker}function setupProcessWorker(script,options,child_process){validateOptions(options.forkOpts,forkOptsNames,"forkOpts");var worker=child_process.fork(script,options.forkArgs,options.forkOpts),send=worker.send;return worker.send=function(message){return send.call(worker,message)},options.emitStdStreams&&(worker.stdout.on("data",(data=>worker.emit("stdout",data))),worker.stderr.on("data",(data=>worker.emit("stderr",data)))),worker.isChildProcess=!0,worker}function resolveForkOptions(opts){opts=opts||{};var processExecArgv=process.execArgv.join(" "),inspectorActive=-1!==processExecArgv.indexOf("--inspect"),debugBrk=-1!==processExecArgv.indexOf("--debug-brk"),execArgv=[];return inspectorActive&&(execArgv.push("--inspect="+opts.debugPort),debugBrk&&execArgv.push("--debug-brk")),process.execArgv.forEach((function(arg){arg.indexOf("--max-old-space-size")>-1&&execArgv.push(arg)})),Object.assign({},opts,{forkArgs:opts.forkArgs,forkOpts:Object.assign({},opts.forkOpts,{execArgv:(opts.forkOpts&&opts.forkOpts.execArgv||[]).concat(execArgv),stdio:opts.emitStdStreams?"pipe":void 0})})}function objectToError(obj){for(var temp=new Error(""),props=Object.keys(obj),i=0;i0},WorkerHandler$1.prototype.terminate=function(force,callback){var me=this;if(force){for(var id in this.processing)void 0!==this.processing[id]&&this.processing[id].resolver.reject(new Error("Worker terminated"));this.processing=Object.create(null)}if("function"==typeof callback&&(this.terminationHandler=callback),this.busy())this.terminating=!0;else{var cleanup=function(err){if(me.terminated=!0,me.cleaning=!1,null!=me.worker&&me.worker.removeAllListeners&&me.worker.removeAllListeners("message"),me.worker=null,me.terminating=!1,me.terminationHandler)me.terminationHandler(err,me);else if(err)throw err};if(this.worker){if("function"==typeof this.worker.kill){if(this.worker.killed)return void cleanup(new Error("worker already killed!"));var cleanExitTimeout=setTimeout((function(){me.worker&&me.worker.kill()}),this.workerTerminateTimeout);return this.worker.once("exit",(function(){clearTimeout(cleanExitTimeout),me.worker&&(me.worker.killed=!0),cleanup()})),this.worker.ready?this.worker.send(TERMINATE_METHOD_ID):this.requestQueue.push({message:TERMINATE_METHOD_ID}),void(this.cleaning=!0)}if("function"!=typeof this.worker.terminate)throw new Error("Failed to terminate worker");this.worker.terminate(),this.worker.killed=!0}cleanup()}},WorkerHandler$1.prototype.terminateAndNotify=function(force,timeout){var resolver=Promise.defer();return timeout&&resolver.promise.timeout(timeout),this.terminate(force,(function(err,worker){err?resolver.reject(err):resolver.resolve(worker)})),resolver.promise},WorkerHandler.exports=WorkerHandler$1,WorkerHandler.exports._tryRequireWorkerThreads=tryRequireWorkerThreads,WorkerHandler.exports._setupProcessWorker=setupProcessWorker,WorkerHandler.exports._setupBrowserWorker=setupBrowserWorker,WorkerHandler.exports._setupWorkerThreadWorker=setupWorkerThreadWorker,WorkerHandler.exports.ensureWorkerThreads=ensureWorkerThreads,WorkerHandler.exports}function requireDebugPortAllocator(){if(hasRequiredDebugPortAllocator)return debugPortAllocator;hasRequiredDebugPortAllocator=1;var MAX_PORTS=65535;function DebugPortAllocator(){this.ports=Object.create(null),this.length=0}return debugPortAllocator=DebugPortAllocator,DebugPortAllocator.prototype.nextAvailableStartingAt=function(starting){for(;!0===this.ports[starting];)starting++;if(starting>=MAX_PORTS)throw new Error("WorkerPool debug port limit reached: "+starting+">= "+MAX_PORTS);return this.ports[starting]=!0,this.length++,starting},DebugPortAllocator.prototype.releasePort=function(port){delete this.ports[port],this.length--},debugPortAllocator}function requirePool(){if(hasRequiredPool)return Pool_1;hasRequiredPool=1;var{Promise:Promise}=require_Promise(),WorkerHandler=requireWorkerHandler(),environment=environmentExports,DEBUG_PORT_ALLOCATOR=new(requireDebugPortAllocator());function Pool(script,options){"string"==typeof script?this.script=script||null:(this.script=null,options=script),this.workers=[],this.tasks=[],options=options||{},this.forkArgs=Object.freeze(options.forkArgs||[]),this.forkOpts=Object.freeze(options.forkOpts||{}),this.workerOpts=Object.freeze(options.workerOpts||{}),this.workerThreadOpts=Object.freeze(options.workerThreadOpts||{}),this.debugPortStart=options.debugPortStart||43210,this.nodeWorker=options.nodeWorker,this.workerType=options.workerType||options.nodeWorker||"auto",this.maxQueueSize=options.maxQueueSize||1/0,this.workerTerminateTimeout=options.workerTerminateTimeout||1e3,this.onCreateWorker=options.onCreateWorker||(()=>null),this.onTerminateWorker=options.onTerminateWorker||(()=>null),this.emitStdStreams=options.emitStdStreams||!1,options&&"maxWorkers"in options?(validateMaxWorkers(options.maxWorkers),this.maxWorkers=options.maxWorkers):this.maxWorkers=Math.max((environment.cpus||4)-1,1),options&&"minWorkers"in options&&("max"===options.minWorkers?this.minWorkers=this.maxWorkers:(validateMinWorkers(options.minWorkers),this.minWorkers=options.minWorkers,this.maxWorkers=Math.max(this.minWorkers,this.maxWorkers)),this._ensureMinWorkers()),this._boundNext=this._next.bind(this),"thread"===this.workerType&&WorkerHandler.ensureWorkerThreads()}function validateMaxWorkers(maxWorkers){if(!isNumber(maxWorkers)||!isInteger(maxWorkers)||maxWorkers<1)throw new TypeError("Option maxWorkers must be an integer number >= 1")}function validateMinWorkers(minWorkers){if(!isNumber(minWorkers)||!isInteger(minWorkers)||minWorkers<0)throw new TypeError("Option minWorkers must be an integer number >= 0")}function isNumber(value){return"number"==typeof value}function isInteger(value){return Math.round(value)==value}return Pool.prototype.exec=function(method,params,options){if(params&&!Array.isArray(params))throw new TypeError('Array expected as argument "params"');if("string"==typeof method){var resolver=Promise.defer();if(this.tasks.length>=this.maxQueueSize)throw new Error("Max queue size of "+this.maxQueueSize+" reached");var tasks=this.tasks,task={method:method,params:params,resolver:resolver,timeout:null,options:options};tasks.push(task);var originalTimeout=resolver.promise.timeout;return resolver.promise.timeout=function timeout(delay){return-1!==tasks.indexOf(task)?(task.timeout=delay,resolver.promise):originalTimeout.call(resolver.promise,delay)},this._next(),resolver.promise}if("function"==typeof method)return this.exec("run",[String(method),params],options);throw new TypeError('Function or string expected as argument "method"')},Pool.prototype.proxy=function(){if(arguments.length>0)throw new Error("No arguments expected");var pool=this;return this.exec("methods").then((function(methods){var proxy={};return methods.forEach((function(method){proxy[method]=function(){return pool.exec(method,Array.prototype.slice.call(arguments))}})),proxy}))},Pool.prototype._next=function(){if(this.tasks.length>0){var worker=this._getWorker();if(worker){var me=this,task=this.tasks.shift();if(task.resolver.promise.pending){var promise=worker.exec(task.method,task.params,task.resolver,task.options).then(me._boundNext).catch((function(){if(worker.terminated)return me._removeWorker(worker)})).then((function(){me._next()}));"number"==typeof task.timeout&&promise.timeout(task.timeout)}else me._next()}}},Pool.prototype._getWorker=function(){for(var workers=this.workers,i=0;i"indeterminate"===$variant?(0,styled_components_browser_esm.iv)(["animation:"," 1.4s linear infinite;"],indeterminate):(0,styled_components_browser_esm.iv)(["transform:rotate(-90deg);"]))),SrOnlyOutput=styled_components_browser_esm.ZP.output.withConfig({displayName:"CircularProgress__SrOnlyOutput",componentId:"sc-hib054-1"})(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]),TrackCircle=styled_components_browser_esm.ZP.circle.withConfig({displayName:"CircularProgress__TrackCircle",componentId:"sc-hib054-2"})([""]),ProgressCircle=styled_components_browser_esm.ZP.circle.withConfig({displayName:"CircularProgress__ProgressCircle",componentId:"sc-hib054-3"})([""]),CircularProgress=(0,react.forwardRef)((function CircularProgress({variant:variant="indeterminate",value:value=null,size:size=48,color:color="primary",...rest},ref){const progress=Math.round(value),trackStyle={},props={...rest,ref:ref,$variant:variant},token=(color=>CircularProgress_tokens_namespaceObject[color]?CircularProgress_tokens_namespaceObject[color]:{background:"transparent",entities:{progress:{background:color}}})(color),[srProgress,setSrProgress]=(0,react.useState)(0),circumference=2*Math.PI*22;"determinate"===variant&&(trackStyle.stroke=circumference.toFixed(3),trackStyle.strokeDashoffset=`${((100-progress)/100*circumference).toFixed(3)}px`,props["aria-valuenow"]=progress,void 0!==value&&(props["aria-valuenow"]=progress,props["aria-valuemin"]=0,props["aria-valuemax"]=100)),(0,react.useEffect)((()=>{"indeterminate"!==variant&&(progress>=25&&progress<50?setSrProgress(25):progress>=50&&progress<75?setSrProgress(50):progress>=75&&progress<100?setSrProgress(75):100===progress&&setSrProgress(100))}),[progress,variant]);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsxs)(Svg,{...props,viewBox:"24 24 48 48",role:"progressbar",height:size,width:size,preserveAspectRatio:"xMidYMid meet",children:[(0,jsx_runtime.jsx)(TrackCircle,{style:trackStyle,cx:48,cy:48,r:22,fill:"none",strokeWidth:4,stroke:token.background}),(0,jsx_runtime.jsx)(ProgressCircle,{style:trackStyle,cx:48,cy:48,r:22,fill:"none",strokeLinecap:"round",strokeWidth:4,strokeDasharray:"determinate"===variant?circumference:48,stroke:token.entities.progress.background})]}),"determinate"===variant&&(0,jsx_runtime.jsx)(SrOnlyOutput,{children:`Loading ${srProgress}%`})]})}))},"./packages/subsurface-viewer/node_modules/fraction.js/fraction.js":function(module){!function(root){"use strict";var P={s:1,n:0,d:1};function assign(n,s){if(isNaN(n=parseInt(n,10)))throw InvalidParameter();return n*s}function newFraction(n,d){if(0===d)throw DivisionByZero();var f=Object.create(Fraction.prototype);f.s=n<0?-1:1;var a=gcd(n=n<0?-n:n,d);return f.n=n/a,f.d=d/a,f}function factorize(num){for(var factors={},n=num,i=2,s=4;s<=n;){for(;n%i==0;)n/=i,factors[i]=(factors[i]||0)+1;s+=1+2*i++}return n!==num?n>1&&(factors[n]=(factors[n]||0)+1):factors[num]=(factors[num]||0)+1,factors}var parse=function(p1,p2){var M,n=0,d=1,s=1,v=0,w=0,x=0,y=1,z=1,A=0,B=1,C=1,D=1,N=1e7;if(null==p1);else if(void 0!==p2){if(s=(n=p1)*(d=p2),n%1!=0||d%1!=0)throw NonIntegerParameter()}else switch(typeof p1){case"object":if("d"in p1&&"n"in p1)n=p1.n,d=p1.d,"s"in p1&&(n*=p1.s);else{if(!(0 in p1))throw InvalidParameter();n=p1[0],1 in p1&&(d=p1[1])}s=n*d;break;case"number":if(p1<0&&(s=p1,p1=-p1),p1%1==0)n=p1;else if(p1>0){for(p1>=1&&(p1/=z=Math.pow(10,Math.floor(1+Math.log(p1)/Math.LN10)));B<=N&&D<=N;){if(p1===(M=(A+C)/(B+D))){B+D<=N?(n=A+C,d=B+D):D>B?(n=C,d=D):(n=A,d=B);break}p1>M?(A+=C,B+=D):(C+=A,D+=B),B>N?(n=C,d=D):(n=A,d=B)}n*=z}else(isNaN(p1)||isNaN(p2))&&(d=n=NaN);break;case"string":if(null===(B=p1.match(/\d+|./g)))throw InvalidParameter();if("-"===B[A]?(s=-1,A++):"+"===B[A]&&A++,B.length===A+1?w=assign(B[A++],s):"."===B[A+1]||"."===B[A]?("."!==B[A]&&(v=assign(B[A++],s)),(++A+1===B.length||"("===B[A+1]&&")"===B[A+3]||"'"===B[A+1]&&"'"===B[A+3])&&(w=assign(B[A],s),y=Math.pow(10,B[A].length),A++),("("===B[A]&&")"===B[A+2]||"'"===B[A]&&"'"===B[A+2])&&(x=assign(B[A+1],s),z=Math.pow(10,B[A+1].length)-1,A+=3)):"/"===B[A+1]||":"===B[A+1]?(w=assign(B[A],s),y=assign(B[A+2],1),A+=3):"/"===B[A+3]&&" "===B[A+1]&&(v=assign(B[A],s),w=assign(B[A+2],s),y=assign(B[A+4],1),A+=5),B.length<=A){s=n=x+(d=y*z)*v+z*w;break}default:throw InvalidParameter()}if(0===d)throw DivisionByZero();P.s=s<0?-1:1,P.n=Math.abs(n),P.d=Math.abs(d)};function gcd(a,b){if(!a)return b;if(!b)return a;for(;;){if(!(a%=b))return b;if(!(b%=a))return a}}function Fraction(a,b){if(parse(a,b),!(this instanceof Fraction))return newFraction(P.s*P.n,P.d);a=gcd(P.d,P.n),this.s=P.s,this.n=P.n/a,this.d=P.d/a}var DivisionByZero=function(){return new Error("Division by Zero")},InvalidParameter=function(){return new Error("Invalid argument")},NonIntegerParameter=function(){return new Error("Parameters must be integer")};Fraction.prototype={s:1,n:0,d:1,abs:function(){return newFraction(this.n,this.d)},neg:function(){return newFraction(-this.s*this.n,this.d)},add:function(a,b){return parse(a,b),newFraction(this.s*this.n*P.d+P.s*this.d*P.n,this.d*P.d)},sub:function(a,b){return parse(a,b),newFraction(this.s*this.n*P.d-P.s*this.d*P.n,this.d*P.d)},mul:function(a,b){return parse(a,b),newFraction(this.s*P.s*this.n*P.n,this.d*P.d)},div:function(a,b){return parse(a,b),newFraction(this.s*P.s*this.n*P.d,this.d*P.n)},clone:function(){return newFraction(this.s*this.n,this.d)},mod:function(a,b){if(isNaN(this.n)||isNaN(this.d))return new Fraction(NaN);if(void 0===a)return newFraction(this.s*this.n%this.d,1);if(parse(a,b),0===P.n&&0===this.d)throw DivisionByZero();return newFraction(this.s*(P.d*this.n)%(P.n*this.d),P.d*this.d)},gcd:function(a,b){return parse(a,b),newFraction(gcd(P.n,this.n)*gcd(P.d,this.d),P.d*this.d)},lcm:function(a,b){return parse(a,b),0===P.n&&0===this.n?newFraction(0,1):newFraction(P.n*this.n,gcd(P.n,this.n)*gcd(P.d,this.d))},ceil:function(places){return places=Math.pow(10,places||0),isNaN(this.n)||isNaN(this.d)?new Fraction(NaN):newFraction(Math.ceil(places*this.s*this.n/this.d),places)},floor:function(places){return places=Math.pow(10,places||0),isNaN(this.n)||isNaN(this.d)?new Fraction(NaN):newFraction(Math.floor(places*this.s*this.n/this.d),places)},round:function(places){return places=Math.pow(10,places||0),isNaN(this.n)||isNaN(this.d)?new Fraction(NaN):newFraction(Math.round(places*this.s*this.n/this.d),places)},inverse:function(){return newFraction(this.s*this.d,this.n)},pow:function(a,b){if(parse(a,b),1===P.d)return P.s<0?newFraction(Math.pow(this.s*this.d,P.n),Math.pow(this.n,P.n)):newFraction(Math.pow(this.s*this.n,P.n),Math.pow(this.d,P.n));if(this.s<0)return null;var N=factorize(this.n),D=factorize(this.d),n=1,d=1;for(var k in N)if("1"!==k){if("0"===k){n=0;break}if(N[k]*=P.n,N[k]%P.d!=0)return null;N[k]/=P.d,n*=Math.pow(k,N[k])}for(var k in D)if("1"!==k){if(D[k]*=P.n,D[k]%P.d!=0)return null;D[k]/=P.d,d*=Math.pow(k,D[k])}return P.s<0?newFraction(d,n):newFraction(n,d)},equals:function(a,b){return parse(a,b),this.s*this.n*P.d==P.s*P.n*this.d},compare:function(a,b){parse(a,b);var t=this.s*this.n*P.d-P.s*P.n*this.d;return(0=0;k--)s=s.inverse().add(cont[k]);if(Math.abs(s.sub(thisABS).valueOf())0&&(str+=whole,str+=" ",n%=d),str+=n,str+="/",str+=d),str},toLatex:function(excludeWhole){var whole,str="",n=this.n,d=this.d;return this.s<0&&(str+="-"),1===d?str+=n:(excludeWhole&&(whole=Math.floor(n/d))>0&&(str+=whole,n%=d),str+="\\frac{",str+=n,str+="}{",str+=d,str+="}"),str},toContinued:function(){var t,a=this.n,b=this.d,res=[];if(isNaN(a)||isNaN(b))return res;do{res.push(Math.floor(a/b)),t=a%b,a=b,b=t}while(1!==a);return res},toString:function(dec){var N=this.n,D=this.d;if(isNaN(N)||isNaN(D))return"NaN";dec=dec||15;var cycLen=function cycleLen(n,d){for(;d%2==0;d/=2);for(;d%5==0;d/=5);if(1===d)return 0;for(var rem=10%d,t=1;1!==rem;t++)if(rem=10*rem%d,t>2e3)return 0;return t}(0,D),cycOff=function cycleStart(n,d,len){for(var rem1=1,rem2=function modpow(b,e,m){for(var r=1;e>0;b=b*b%m,e>>=1)1&e&&(r=r*b%m);return r}(10,len,d),t=0;t<300;t++){if(rem1===rem2)return t;rem1=10*rem1%d,rem2=10*rem2%d}return 0}(0,D,cycLen),str=this.s<0?"-":"";if(str+=N/D|0,N%=D,(N*=10)&&(str+="."),cycLen){for(var i=cycOff;i--;)str+=N/D|0,N%=D,N*=10;str+="(";for(i=cycLen;i--;)str+=N/D|0,N%=D,N*=10;str+=")"}else for(i=dec;N&&i--;)str+=N/D|0,N%=D,N*=10;return str}},Object.defineProperty(Fraction,"__esModule",{value:!0}),Fraction.default=Fraction,Fraction.Fraction=Fraction,module.exports=Fraction}()},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{IK:function(){return createE},Yb:function(){return createFalse},oL:function(){return createI},Ir:function(){return createInfinity},ur:function(){return createLN10},Cc:function(){return createLN2},q_:function(){return createLOG10E},p9:function(){return createLOG2E},t$:function(){return createNaN},VG:function(){return createNull},Ii:function(){return createPhi},up:function(){return createPi},JE:function(){return createSQRT1_2},rN:function(){return createSQRT2},ci:function(){return createTau},jy:function(){return createTrue},Iu:function(){return createUppercaseE},lO:function(){return createUppercasePi},hT:function(){return createVersion}});var factory=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),constants=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/constants.js"),pi=Math.PI,tau=2*Math.PI,e=Math.E,createTrue=(0,factory.d5)("true",[],(()=>!0)),createFalse=(0,factory.d5)("false",[],(()=>!1)),createNull=(0,factory.d5)("null",[],(()=>null)),createInfinity=recreateFactory("Infinity",["config","?BigNumber"],(_ref=>{var{config:config,BigNumber:BigNumber}=_ref;return"BigNumber"===config.number?new BigNumber(1/0):1/0})),createNaN=recreateFactory("NaN",["config","?BigNumber"],(_ref2=>{var{config:config,BigNumber:BigNumber}=_ref2;return"BigNumber"===config.number?new BigNumber(NaN):NaN})),createPi=recreateFactory("pi",["config","?BigNumber"],(_ref3=>{var{config:config,BigNumber:BigNumber}=_ref3;return"BigNumber"===config.number?(0,constants.wY)(BigNumber):pi})),createTau=recreateFactory("tau",["config","?BigNumber"],(_ref4=>{var{config:config,BigNumber:BigNumber}=_ref4;return"BigNumber"===config.number?(0,constants.j_)(BigNumber):tau})),createE=recreateFactory("e",["config","?BigNumber"],(_ref5=>{var{config:config,BigNumber:BigNumber}=_ref5;return"BigNumber"===config.number?(0,constants.vu)(BigNumber):e})),createPhi=recreateFactory("phi",["config","?BigNumber"],(_ref6=>{var{config:config,BigNumber:BigNumber}=_ref6;return"BigNumber"===config.number?(0,constants.zm)(BigNumber):1.618033988749895})),createLN2=recreateFactory("LN2",["config","?BigNumber"],(_ref7=>{var{config:config,BigNumber:BigNumber}=_ref7;return"BigNumber"===config.number?new BigNumber(2).ln():Math.LN2})),createLN10=recreateFactory("LN10",["config","?BigNumber"],(_ref8=>{var{config:config,BigNumber:BigNumber}=_ref8;return"BigNumber"===config.number?new BigNumber(10).ln():Math.LN10})),createLOG2E=recreateFactory("LOG2E",["config","?BigNumber"],(_ref9=>{var{config:config,BigNumber:BigNumber}=_ref9;return"BigNumber"===config.number?new BigNumber(1).div(new BigNumber(2).ln()):Math.LOG2E})),createLOG10E=recreateFactory("LOG10E",["config","?BigNumber"],(_ref10=>{var{config:config,BigNumber:BigNumber}=_ref10;return"BigNumber"===config.number?new BigNumber(1).div(new BigNumber(10).ln()):Math.LOG10E})),createSQRT1_2=recreateFactory("SQRT1_2",["config","?BigNumber"],(_ref11=>{var{config:config,BigNumber:BigNumber}=_ref11;return"BigNumber"===config.number?new BigNumber("0.5").sqrt():Math.SQRT1_2})),createSQRT2=recreateFactory("SQRT2",["config","?BigNumber"],(_ref12=>{var{config:config,BigNumber:BigNumber}=_ref12;return"BigNumber"===config.number?new BigNumber(2).sqrt():Math.SQRT2})),createI=recreateFactory("i",["Complex"],(_ref13=>{var{Complex:Complex}=_ref13;return Complex.I})),createUppercasePi=(0,factory.d5)("PI",["pi"],(_ref14=>{var{pi:pi}=_ref14;return pi})),createUppercaseE=(0,factory.d5)("E",["e"],(_ref15=>{var{e:e}=_ref15;return e})),createVersion=(0,factory.d5)("version",[],(()=>"12.4.2"));function recreateFactory(name,dependencies,create){return(0,factory.d5)(name,dependencies,create,{recreateOnConfigChange:!0})}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/config.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{g:function(){return DEFAULT_CONFIG}});var DEFAULT_CONFIG={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/function/config.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ll:function(){return configFactory},qK:function(){return MATRIX_OPTIONS},x9:function(){return NUMBER_OPTIONS}});var _utils_object_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_config_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/config.js"),MATRIX_OPTIONS=["Matrix","Array"],NUMBER_OPTIONS=["number","BigNumber","Fraction"];function configFactory(config,emit){function _config(options){if(options){var prev=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.Xc)(config,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.d9);validateOption(options,"matrix",MATRIX_OPTIONS),validateOption(options,"number",NUMBER_OPTIONS),(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.ZB)(config,options);var curr=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.Xc)(config,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.d9),changes=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.Xc)(options,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.d9);return emit("config",curr,prev,changes),curr}return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.Xc)(config,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.d9)}return _config.MATRIX_OPTIONS=MATRIX_OPTIONS,_config.NUMBER_OPTIONS=NUMBER_OPTIONS,Object.keys(_config_js__WEBPACK_IMPORTED_MODULE_1__.g).forEach((key=>{Object.defineProperty(_config,key,{get:()=>config[key],enumerable:!0,configurable:!0})})),_config}function validateOption(options,name,values){void 0===options[name]||function contains(array,item){return-1!==array.indexOf(item)}(values,options[name])||console.warn('Warning: Unknown value "'+options[name]+'" for configuration option "'+name+'". Available options: '+values.map((value=>JSON.stringify(value))).join(", ")+".")}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/function/typed.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createTyped}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),typed_function__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/typed-function/lib/umd/typed-function.js"),typed_function__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(typed_function__WEBPACK_IMPORTED_MODULE_0__),_utils_number_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_map_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/map.js"),_createTyped2=function _createTyped(){return _createTyped2=typed_function__WEBPACK_IMPORTED_MODULE_0___default().create,typed_function__WEBPACK_IMPORTED_MODULE_0___default()},dependencies=["?BigNumber","?Complex","?DenseMatrix","?Fraction"],createTyped=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)("typed",dependencies,(function createTyped(_ref){var{BigNumber:BigNumber,Complex:Complex,DenseMatrix:DenseMatrix,Fraction:Fraction}=_ref,typed=_createTyped2();return typed.clear(),typed.addTypes([{name:"number",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.hj},{name:"Complex",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Mc},{name:"BigNumber",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9},{name:"Fraction",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.yQ},{name:"Unit",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr},{name:"identifier",test:s=>_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.HD&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(s)},{name:"string",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.HD},{name:"Chain",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.qg},{name:"Array",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kJ},{name:"Matrix",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW},{name:"DenseMatrix",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.jH},{name:"SparseMatrix",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.sA},{name:"Range",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.bR},{name:"Index",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.dh},{name:"boolean",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.jn},{name:"ResultSet",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.cB},{name:"Help",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.x1},{name:"function",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.mf},{name:"Date",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.J_},{name:"RegExp",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Kj},{name:"null",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Ft},{name:"undefined",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.o8},{name:"AccessorNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Yz},{name:"ArrayNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.j0},{name:"AssignmentNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Bp},{name:"BlockNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.zh},{name:"ConditionalNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.tS},{name:"ConstantNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.nu},{name:"FunctionNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.VO},{name:"FunctionAssignmentNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l7},{name:"IndexNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Cl},{name:"Node",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.UG},{name:"ObjectNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Lr},{name:"OperatorNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.bV},{name:"ParenthesisNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Ig},{name:"RangeNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.ex},{name:"RelationalNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Zi},{name:"SymbolNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.FG},{name:"Map",test:_utils_map_js__WEBPACK_IMPORTED_MODULE_3__._N},{name:"Object",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Kn}]),typed.addConversions([{from:"number",to:"BigNumber",convert:function convert(x){if(BigNumber||throwNoBignumber(x),(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_4__.nz)(x)>15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+x+"). Use function bignumber(x) to convert to BigNumber.");return new BigNumber(x)}},{from:"number",to:"Complex",convert:function convert(x){return Complex||throwNoComplex(x),new Complex(x,0)}},{from:"BigNumber",to:"Complex",convert:function convert(x){return Complex||throwNoComplex(x),new Complex(x.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function convert(x){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function convert(x){return Complex||throwNoComplex(x),new Complex(x.valueOf(),0)}},{from:"number",to:"Fraction",convert:function convert(x){Fraction||throwNoFraction(x);var f=new Fraction(x);if(f.valueOf()!==x)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+x+"). Use function fraction(x) to convert to Fraction.");return f}},{from:"string",to:"number",convert:function convert(x){var n=Number(x);if(isNaN(n))throw new Error('Cannot convert "'+x+'" to a number');return n}},{from:"string",to:"BigNumber",convert:function convert(x){BigNumber||throwNoBignumber(x);try{return new BigNumber(x)}catch(err){throw new Error('Cannot convert "'+x+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function convert(x){Fraction||throwNoFraction(x);try{return new Fraction(x)}catch(err){throw new Error('Cannot convert "'+x+'" to Fraction')}}},{from:"string",to:"Complex",convert:function convert(x){Complex||throwNoComplex(x);try{return new Complex(x)}catch(err){throw new Error('Cannot convert "'+x+'" to Complex')}}},{from:"boolean",to:"number",convert:function convert(x){return+x}},{from:"boolean",to:"BigNumber",convert:function convert(x){return BigNumber||throwNoBignumber(x),new BigNumber(+x)}},{from:"boolean",to:"Fraction",convert:function convert(x){return Fraction||throwNoFraction(x),new Fraction(+x)}},{from:"boolean",to:"string",convert:function convert(x){return String(x)}},{from:"Array",to:"Matrix",convert:function convert(array){return DenseMatrix||function throwNoMatrix(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new DenseMatrix(array)}},{from:"Matrix",to:"Array",convert:function convert(matrix){return matrix.valueOf()}}]),typed.onMismatch=(name,args,signatures)=>{var usualError=typed.createError(name,args,signatures);if(["wrongType","mismatch"].includes(usualError.data.category)&&1===args.length&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.uZ)(args[0])&&signatures.some((sig=>!sig.params.includes(",")))){var err=new TypeError("Function '".concat(name,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(name,")'."));throw err.data=usualError.data,err}throw usualError},typed.onMismatch=(name,args,signatures)=>{var usualError=typed.createError(name,args,signatures);if(["wrongType","mismatch"].includes(usualError.data.category)&&1===args.length&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.uZ)(args[0])&&signatures.some((sig=>!sig.params.includes(",")))){var err=new TypeError("Function '".concat(name,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(name,")'."));throw err.data=usualError.data,err}throw usualError},typed}));function throwNoBignumber(x){throw new Error("Cannot convert value ".concat(x," into a BigNumber: no class 'BigNumber' provided"))}function throwNoComplex(x){throw new Error("Cannot convert value ".concat(x," into a Complex number: no class 'Complex' provided"))}function throwNoFraction(x){throw new Error("Cannot convert value ".concat(x," into a Fraction, no class 'Fraction' provided."))}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/entry/pureFunctionsAny.generated.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{TE$:function(){return pureFunctionsAny_generated_distance},AKD:function(){return pureFunctionsAny_generated_dot},$XF:function(){return pureFunctionsAny_generated_subtract}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),core_config=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/config.js"),config=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/function/config.js"),configReadonly_config=function config(options){if(options)throw new Error("The global config is readonly. \nPlease create a mathjs instance if you want to change the default configuration. \nExample:\n\n import { create, all } from 'mathjs';\n const mathjs = create(all);\n mathjs.config({ number: 'BigNumber' });\n");return Object.freeze(core_config.g)};(0,esm_extends.Z)(configReadonly_config,core_config.g,{MATRIX_OPTIONS:config.qK,NUMBER_OPTIONS:config.x9});var BigNumber=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/bignumber/BigNumber.js"),Complex=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/complex/Complex.js"),Fraction=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/constants.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/physicalConstants.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/fraction/Fraction.js")),Matrix=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/Matrix.js"),DenseMatrix=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/Range.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/resultset/ResultSet.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/DenseMatrix.js")),typed=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/json/replacer.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/function/typed.js")),abs=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/unaryPlus.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/abs.js")),addScalar=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acos.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acot.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acsc.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/addScalar.js")),bignumber=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/arg.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asech.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asinh.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/atan.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/atanh.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/bignumber/function/bignumber.js")),conj=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitNot.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/boolean.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/clone.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/combinations.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/complex/function/complex.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/conj.js")),equalScalar=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/cos.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/cot.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/csc.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/cube.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/equalScalar.js")),isInteger=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/special/erf.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/exp.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/expm1.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/filter.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/forEach.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/format.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/getMatrixDataType.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/hex.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/im.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isInteger.js")),multiplyScalar=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isNegative.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isPositive.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isZero.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/lgamma.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log10.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log2.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/map.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/multiplyScalar.js")),number=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/not.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/number.js")),SparseMatrix=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/oct.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/pickRandom.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/print.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/random.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/re.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sec.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/sign.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sin.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/SparseMatrix.js")),subtractScalar=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/function/splitUnit.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/square.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/string.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/subtractScalar.js")),sqrt=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/tan.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/typeOf.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acosh.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acsch.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/apply.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asec.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/bin.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/combinationsWithRep.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/cosh.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/csch.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isNaN.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isPrime.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/randomInt.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sech.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sinh.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/function/sparse.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/sqrt.js")),unaryMinus=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/tanh.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/unaryMinus.js")),fraction=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acoth.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/coth.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/fraction/function/fraction.js")),matrix=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isNumeric.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/function/matrix.js")),numeric=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/matrixFromFunction.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/mode.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/numeric.js")),size=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/prod.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/reshape.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/size.js")),concat=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/squeeze.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/transpose.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/xgcd.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/zeros.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asin.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/cbrt.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/concat.js")),divideScalar=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/count.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/ctranspose.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/diag.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/divideScalar.js")),equal=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/dotDivide.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/equal.js")),subtract=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/flatten.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/hasNumericValue.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/identity.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/kron.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/largerEq.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/leftShift.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/lsolve.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/matrixFromColumns.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/nthRoot.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/ones.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/decomposition/qr.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/resize.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/rightArithShift.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/round.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/smaller.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/subtract.js")),deepEqual=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/unit/to.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/unequal.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/usolve.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/xor.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/add.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/atan2.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitAnd.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitOr.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitXor.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/catalan.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compare.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compareText.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/cumsum.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/deepEqual.js")),distance=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/diff.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/geometry/distance.js")),dot=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/dot.js"),pureFunctionsAny_generated_BigNumber=(__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/equalText.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/floor.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/gcd.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/hypot.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/ImmutableDenseMatrix.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/MatrixIndex.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/larger.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/lsolveAll.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/matrixFromRows.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/min.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/mod.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/multiply.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/nthRoots.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/or.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/partitionSelect.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/rightLogShift.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/decomposition/slu.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/subset.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/sum.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/trace.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/usolveAll.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/signal/zpk2tf.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/ceil.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compareNatural.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/composition.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/cross.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/det.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/dotMultiply.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/FibonacciHeap.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/fix.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/function/index.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/geometry/intersect.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/invmod.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/lcm.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log1p.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/max.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setCartesian.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setDistinct.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setIsSubset.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setPowerset.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/smallerEq.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/sort.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/and.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/range.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/row.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setDifference.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setMultiplicity.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setSymDifference.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/Spa.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/column.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/inv.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/decomposition/lup.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/pinv.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/pow.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setIntersect.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setUnion.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/sqrtm.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/Unit.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/dotPow.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/expm.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/fft.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/gamma.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/ifft.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/function/createUnit.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/divide.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/factorial.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/lusolve.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/multinomial.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/permutations.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/polynomialRoot.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setSize.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/numeric/solveODE.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/stirlingS2.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/function/unit.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/bellNumbers.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/eigs.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/kldivergence.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/mean.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/quantileSeq.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/variance.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/median.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/corr.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/signal/freqz.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/mad.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/std.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/special/zeta.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/norm.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/rotationMatrix.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/decomposition/schur.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/rotate.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/sylvester.js"),__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/lyap.js"),(0,BigNumber.w)({config:configReadonly_config})),pureFunctionsAny_generated_Complex=(0,Complex.w)({}),pureFunctionsAny_generated_Fraction=(0,Fraction.u)({}),pureFunctionsAny_generated_Matrix=(0,Matrix.K)({}),pureFunctionsAny_generated_DenseMatrix=(0,DenseMatrix.D)({Matrix:pureFunctionsAny_generated_Matrix}),pureFunctionsAny_generated_typed=(0,typed.d)({BigNumber:pureFunctionsAny_generated_BigNumber,Complex:pureFunctionsAny_generated_Complex,DenseMatrix:pureFunctionsAny_generated_DenseMatrix,Fraction:pureFunctionsAny_generated_Fraction}),pureFunctionsAny_generated_abs=(0,abs.E)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_addScalar=(0,addScalar.A)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_bignumber=(0,bignumber.p)({BigNumber:pureFunctionsAny_generated_BigNumber,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_conj=(0,conj.b)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_equalScalar=(0,equalScalar.f)({config:configReadonly_config,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_isInteger=(0,isInteger.u)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_multiplyScalar=(0,multiplyScalar.x)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_number=(0,number.k)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_SparseMatrix=(0,SparseMatrix.C)({Matrix:pureFunctionsAny_generated_Matrix,equalScalar:pureFunctionsAny_generated_equalScalar,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_subtractScalar=(0,subtractScalar.A)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_sqrt=(0,sqrt.M)({Complex:pureFunctionsAny_generated_Complex,config:configReadonly_config,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_unaryMinus=(0,unaryMinus.x)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_fraction=(0,fraction.v)({Fraction:pureFunctionsAny_generated_Fraction,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_matrix=(0,matrix.w)({DenseMatrix:pureFunctionsAny_generated_DenseMatrix,Matrix:pureFunctionsAny_generated_Matrix,SparseMatrix:pureFunctionsAny_generated_SparseMatrix,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_numeric=(0,numeric.d)({bignumber:pureFunctionsAny_generated_bignumber,fraction:pureFunctionsAny_generated_fraction,number:pureFunctionsAny_generated_number}),pureFunctionsAny_generated_size=(0,size.s)({matrix:pureFunctionsAny_generated_matrix,config:configReadonly_config,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_concat=(0,concat.k)({isInteger:pureFunctionsAny_generated_isInteger,matrix:pureFunctionsAny_generated_matrix,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_divideScalar=(0,divideScalar.L)({numeric:pureFunctionsAny_generated_numeric,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_equal=(0,equal.Z)({DenseMatrix:pureFunctionsAny_generated_DenseMatrix,concat:pureFunctionsAny_generated_concat,equalScalar:pureFunctionsAny_generated_equalScalar,matrix:pureFunctionsAny_generated_matrix,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_subtract=(0,subtract.p)({DenseMatrix:pureFunctionsAny_generated_DenseMatrix,concat:pureFunctionsAny_generated_concat,equalScalar:pureFunctionsAny_generated_equalScalar,matrix:pureFunctionsAny_generated_matrix,subtractScalar:pureFunctionsAny_generated_subtractScalar,typed:pureFunctionsAny_generated_typed,unaryMinus:pureFunctionsAny_generated_unaryMinus}),pureFunctionsAny_generated_deepEqual=(0,deepEqual.s)({equal:pureFunctionsAny_generated_equal,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_distance=(0,distance.v)({abs:pureFunctionsAny_generated_abs,addScalar:pureFunctionsAny_generated_addScalar,deepEqual:pureFunctionsAny_generated_deepEqual,divideScalar:pureFunctionsAny_generated_divideScalar,multiplyScalar:pureFunctionsAny_generated_multiplyScalar,sqrt:pureFunctionsAny_generated_sqrt,subtractScalar:pureFunctionsAny_generated_subtractScalar,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_dot=(0,dot.W)({addScalar:pureFunctionsAny_generated_addScalar,conj:pureFunctionsAny_generated_conj,multiplyScalar:pureFunctionsAny_generated_multiplyScalar,size:pureFunctionsAny_generated_size,typed:pureFunctionsAny_generated_typed})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/ArgumentsError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function ArgumentsError(fn,count,min,max){if(!(this instanceof ArgumentsError))throw new SyntaxError("Constructor must be called with the new operator");this.fn=fn,this.count=count,this.min=min,this.max=max,this.message="Wrong number of arguments in function "+fn+" ("+count+" provided, "+min+(null!=max?"-"+max:"")+" expected)",this.stack=(new Error).stack}__webpack_require__.d(__webpack_exports__,{u:function(){return ArgumentsError}}),ArgumentsError.prototype=new Error,ArgumentsError.prototype.constructor=Error,ArgumentsError.prototype.name="ArgumentsError",ArgumentsError.prototype.isArgumentsError=!0},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/DimensionError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function DimensionError(actual,expected,relation){if(!(this instanceof DimensionError))throw new SyntaxError("Constructor must be called with the new operator");this.actual=actual,this.expected=expected,this.relation=relation,this.message="Dimension mismatch ("+(Array.isArray(actual)?"["+actual.join(", ")+"]":actual)+" "+(this.relation||"!=")+" "+(Array.isArray(expected)?"["+expected.join(", ")+"]":expected)+")",this.stack=(new Error).stack}__webpack_require__.d(__webpack_exports__,{m:function(){return DimensionError}}),DimensionError.prototype=new RangeError,DimensionError.prototype.constructor=RangeError,DimensionError.prototype.name="DimensionError",DimensionError.prototype.isDimensionError=!0},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/IndexError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function IndexError(index,min,max){if(!(this instanceof IndexError))throw new SyntaxError("Constructor must be called with the new operator");this.index=index,arguments.length<3?(this.min=0,this.max=min):(this.min=min,this.max=max),void 0!==this.min&&this.index=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=(new Error).stack}__webpack_require__.d(__webpack_exports__,{c:function(){return IndexError}}),IndexError.prototype=new RangeError,IndexError.prototype.constructor=RangeError,IndexError.prototype.name="IndexError",IndexError.prototype.isIndexError=!0},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/decomposition/lup.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createLup}});var _utils_object_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","abs","addScalar","divideScalar","multiplyScalar","subtractScalar","larger","equalScalar","unaryMinus","DenseMatrix","SparseMatrix","Spa"],createLup=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("lup",dependencies,(_ref=>{var{typed:typed,matrix:matrix,abs:abs,addScalar:addScalar,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,larger:larger,equalScalar:equalScalar,unaryMinus:unaryMinus,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix,Spa:Spa}=_ref;return typed("lup",{DenseMatrix:function DenseMatrix(m){return _denseLUP(m)},SparseMatrix:function SparseMatrix(m){return _sparseLUP(m)},Array:function Array(a){var r=_denseLUP(matrix(a));return{L:r.L.valueOf(),U:r.U.valueOf(),p:r.p}}});function _denseLUP(m){var i,j,k,rows=m._size[0],columns=m._size[1],n=Math.min(rows,columns),data=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(m._data),ldata=[],lsize=[rows,n],udata=[],usize=[n,columns],p=[];for(i=0;i0)for(i=0;i0&&spa.forEach(0,j-1,(function(k,vkj){SparseMatrix._forEachRow(k,lvalues,lindex,lptr,(function(i,vik){i>k&&spa.accumulate(i,unaryMinus(multiplyScalar(vik,vkj)))}))}));var pi=j,vjj=spa.get(j),pabsv=abs(vjj);spa.forEach(j+1,rows-1,(function(x,v){var absv=abs(v);larger(absv,pabsv)&&(pi=x,pabsv=absv,vjj=v)})),j!==pi&&(SparseMatrix._swapRows(j,pi,lsize[1],lvalues,lindex,lptr),SparseMatrix._swapRows(j,pi,usize[1],uvalues,uindex,uptr),spa.swap(j,pi),function swapIndeces(x,y){var kx=pvOc[x],ky=pvOc[y];pvCo[kx]=y,pvCo[ky]=x,pvOc[x]=ky,pvOc[y]=kx}(j,pi)),spa.forEach(0,rows-1,(function(x,v){x<=j?(uvalues.push(v),uindex.push(x)):(v=divideScalar(v,vjj),equalScalar(v,0)||(lvalues.push(v),lindex.push(x)))}))};for(j=0;j{var{typed:typed,matrix:matrix,zeros:zeros,identity:identity,isZero:isZero,equal:equal,sign:sign,sqrt:sqrt,conj:conj,unaryMinus:unaryMinus,addScalar:addScalar,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,complex:complex}=_ref;return(0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__.Z)(typed("qr",{DenseMatrix:function DenseMatrix(m){return _denseQR(m)},SparseMatrix:function SparseMatrix(m){return function _sparseQR(m){throw new Error("qr not implemented for sparse matrices yet")}()},Array:function Array(a){var r=_denseQR(matrix(a));return{Q:r.Q.valueOf(),R:r.R.valueOf()}}}),{_denseQRimpl:_denseQRimpl});function _denseQRimpl(m){var i,j,k,rows=m._size[0],cols=m._size[1],Q=identity([rows],"dense"),Qdata=Q._data,R=m.clone(),Rdata=R._data,w=zeros([rows],"");for(k=0;k0)for(var zero="Complex"===Rdata[0][0].type?complex(0):0,i=0;i{var{typed:typed,matrix:matrix,identity:identity,multiply:multiply,qr:qr,norm:norm,subtract:subtract}=_ref;return typed("schur",{Array:function Array(X){var r=_schur(matrix(X));return{U:r.U.valueOf(),T:r.T.valueOf()}},Matrix:function Matrix(X){return _schur(X)}});function _schur(X){var A0,n=X.size()[0],A=X,U=identity(n),k=0;do{A0=A;var QR=qr(A),Q=QR.Q,R=QR.R;if(A=multiply(R,Q),U=multiply(U,Q),k++>100)break}while(norm(subtract(A,A0))>1e-4);return{U:U,T:A}}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/decomposition/slu.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:function(){return createSlu}});var number=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),factory=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js");function csTdfs(j,k,w,head,next,post,stack){var top=0;for(w[stack]=j;top>=0;){var p=w[stack+top],i=w[head+p];-1===i?(top--,post[k++]=p):(w[head+p]=w[next+i],w[stack+ ++top]=i)}return k}function csFlip(i){return-i-2}var dependencies=["add","multiply","transpose"],createCsAmd=(0,factory.d5)("csAmd",dependencies,(_ref=>{var{add:add,multiply:multiply,transpose:transpose}=_ref;return function csAmd(order,a){if(!a||order<=0||order>3)return null;var asize=a._size,m=asize[0],n=asize[1],lemax=0,dense=Math.max(16,10*Math.sqrt(n)),cm=function _createTargetMatrix(order,a,m,n,dense){var at=transpose(a);if(1===order&&n===m)return add(a,at);if(2===order){for(var tindex=at._index,tptr=at._ptr,p2=0,j=0;jdense))for(var p1=tptr[j+1];pdense)W[nv+i]=0,W[elen+i]=-1,nel++,cptr[i]=csFlip(n),W[nv+n]++;else{var h=W[head+d];-1!==h&&(last[h]=i),W[next+i]=W[head+d],W[head+d]=i}}return nel}(n,cptr,W,degree,elen,w,dense,nv,head,last,next),mindeg=0;nelelenk?(e=k,pj=p,ln=W[0+k]-elenk):(pj=cptr[e=cindex[p++]],ln=W[0+e]),k2=1;k2<=ln;k2++)(nvi=W[nv+(i=cindex[pj++])])<=0||(dk+=nvi,W[nv+i]=-nvi,cindex[pk2++]=i,-1!==W[next+i]&&(last[W[next+i]]=last[i]),-1!==last[i]?W[next+last[i]]=W[next+i]:W[head+W[degree+i]]=W[next+i]);e!==k&&(cptr[e]=csFlip(k),W[w+e]=0)}for(0!==elenk&&(cnz=pk2),W[degree+k]=dk,cptr[k]=pk1,W[0+k]=pk2-pk1,W[elen+k]=-2,mark=_wclear(mark,lemax,W,w,n),pk=pk1;pk=mark?W[w+e]-=nvi:0!==W[w+e]&&(W[w+e]=W[degree+e]+wnvi)}for(pk=pk1;pk0?(d+=dext,cindex[pn++]=e,h+=e):(cptr[e]=csFlip(k),W[w+e]=0)}W[elen+i]=pn-p1+1;var p3=pn,p4=p1+W[0+i];for(p=p2+1;p=0))for(i=W[hhead+(h=last[i])],W[hhead+h]=-1;-1!==i&&-1!==W[next+i];i=W[next+i],mark++){for(ln=W[0+i],eln=W[elen+i],p=cptr[i]+1;p<=cptr[i]+ln-1;p++)W[w+cindex[p]]=mark;var jlast=i;for(j=W[next+i];-1!==j;){var ok=W[0+j]===ln&&W[elen+j]===eln;for(p=cptr[j]+1;ok&&p<=cptr[j]+ln-1;p++)W[w+cindex[p]]!==mark&&(ok=0);ok?(cptr[j]=csFlip(i),W[nv+i]+=W[nv+j],W[nv+j]=0,W[elen+j]=-1,j=W[next+j],W[next+jlast]=j):(jlast=j,j=W[next+j])}}for(p=pk1,pk=pk1;pk=0;j--)W[nv+j]>0||(W[next+j]=W[head+cptr[j]],W[head+cptr[j]]=j);for(e=n;e>=0;e--)W[nv+e]<=0||-1!==cptr[e]&&(W[next+e]=W[head+cptr[e]],W[head+cptr[e]]=e);for(k=0,i=0;i<=n;i++)-1===cptr[i]&&(k=csTdfs(i,k,W,head,next,P,w));return P.splice(P.length-1,1),P};function _wclear(mark,lemax,W,w,n){if(mark<2||mark+lemax<0){for(var k=0;k{var{transpose:transpose}=_ref;return function(a,parent,post,ata){if(!a||!parent||!post)return null;var i,j,k,J,p,p0,p1,asize=a._size,m=asize[0],n=asize[1],s=4*n+(ata?n+m+1:0),w=[],maxfirst=n,prevleaf=2*n,first=3*n,head=4*n,next=5*n+1;for(k=0;k=1&&colcount[j]++,2===r.jleaf&&colcount[r.q]--}-1!==parent[j]&&(w[0+j]=parent[j])}for(j=0;j{var{add:add,multiply:multiply,transpose:transpose}=_ref,csAmd=createCsAmd({add:add,multiply:multiply,transpose:transpose}),csCounts=createCsCounts({transpose:transpose});return function csSqr(order,a,qr){var k,aptr=a._ptr,n=a._size[1],s={};if(s.q=csAmd(order,a),order&&!s.q)return null;if(qr){var c=order?function csPermute(a,pinv,q,values){for(var avalues=a._values,aindex=a._index,aptr=a._ptr,asize=a._size,adt=a._datatype,m=asize[0],n=asize[1],cvalues=values&&a._values?[]:null,cindex=[],cptr=[],nz=0,k=0;k=0;j--)-1!==parent[j]&&(w[next+j]=w[0+parent[j]],w[0+parent[j]]=j);for(j=0;j=0;k--)for(p0=aptr[k],p1=aptr[k+1],p=p0;p=0;i--)pinv[i]=-1,-1!==(k=leftmost[i])&&(0==w[nque+k]++&&(w[tail+k]=i),w[next+i]=w[head+k],w[head+k]=i);for(s.lnz=0,s.m2=m,k=0;k=0;){j=xi[head];var jnew=pinv?pinv[j]:j;csMarked(ptr,j)||(csMark(ptr,j),xi[n+head]=jnew<0?0:csUnflip(ptr[jnew]));var done=1;for(p=xi[n+head],p2=jnew<0?0:csUnflip(ptr[jnew+1]);p{var{divideScalar:divideScalar,multiply:multiply,subtract:subtract}=_ref;return function csSpsolve(g,b,k,xi,x,pinv,lo){var p,p0,p1,q,gvalues=g._values,gindex=g._index,gptr=g._ptr,n=g._size[1],bvalues=b._values,bindex=b._index,bptr=b._ptr,top=function csReach(g,b,k,xi,pinv){var p,p0,p1,gptr=g._ptr,gsize=g._size,bindex=b._index,bptr=b._ptr,n=gsize[1],top=n;for(p0=bptr[k],p1=bptr[k+1],p=p0;p{var{abs:abs,divideScalar:divideScalar,multiply:multiply,subtract:subtract,larger:larger,largerEq:largerEq,SparseMatrix:SparseMatrix}=_ref,csSpsolve=createCsSpsolve({divideScalar:divideScalar,multiply:multiply,subtract:subtract});return function csLu(m,s,tol){if(!m)return null;var q,n=m._size[1],lnz=100,unz=100;s&&(q=s.q,lnz=s.lnz||lnz,unz=s.unz||unz);var i,p,lvalues=[],lindex=[],lptr=[],L=new SparseMatrix({values:lvalues,index:lindex,ptr:lptr,size:[n,n]}),uvalues=[],uindex=[],uptr=[],U=new SparseMatrix({values:uvalues,index:uindex,ptr:uptr,size:[n,n]}),pinv=[],x=[],xi=[];for(i=0;i{var{typed:typed,abs:abs,add:add,multiply:multiply,transpose:transpose,divideScalar:divideScalar,subtract:subtract,larger:larger,largerEq:largerEq,SparseMatrix:SparseMatrix}=_ref,csSqr=createCsSqr({add:add,multiply:multiply,transpose:transpose}),csLu=createCsLu({abs:abs,divideScalar:divideScalar,multiply:multiply,subtract:subtract,larger:larger,largerEq:largerEq,SparseMatrix:SparseMatrix});return typed("slu",{"SparseMatrix, number, number":function SparseMatrixNumberNumber(a,order,threshold){if(!(0,number.U)(order)||order<0||order>3)throw new Error("Symbolic Ordering and Analysis order must be an integer number in the interval [0, 3]");if(threshold<0||threshold>1)throw new Error("Partial pivoting threshold must be a number from 0 to 1");var s=csSqr(order,a,!1),f=csLu(a,s,threshold);return{L:f.L,U:f.U,p:f.pinv,q:s.q,toString:function toString(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\np: "+this.p.toString()+(this.q?"\nq: "+this.q.toString():"")+"\n"}}}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/lyap.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createLyap}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","sylvester","multiply","transpose"],createLyap=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("lyap",dependencies,(_ref=>{var{typed:typed,matrix:matrix,sylvester:sylvester,multiply:multiply,transpose:transpose}=_ref;return typed("lyap",{"Matrix, Matrix":function MatrixMatrix(A,Q){return sylvester(A,transpose(A),multiply(-1,Q))},"Array, Matrix":function ArrayMatrix(A,Q){return sylvester(matrix(A),transpose(matrix(A)),multiply(-1,Q))},"Matrix, Array":function MatrixArray(A,Q){return sylvester(A,transpose(matrix(A)),matrix(multiply(-1,Q)))},"Array, Array":function ArrayArray(A,Q){return sylvester(matrix(A),transpose(matrix(A)),matrix(multiply(-1,Q))).toArray()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/polynomialRoot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return createPolynomialRoot}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),name="polynomialRoot",dependencies=["typed","isZero","equalScalar","add","subtract","multiply","divide","sqrt","unaryMinus","cbrt","typeOf","im","re"],createPolynomialRoot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,isZero:isZero,equalScalar:equalScalar,add:add,subtract:subtract,multiply:multiply,divide:divide,sqrt:sqrt,unaryMinus:unaryMinus,cbrt:cbrt,typeOf:typeOf,im:im,re:re}=_ref;return typed(name,{"number|Complex, ...number|Complex":(constant,restCoeffs)=>{for(var coeffs=[constant,...restCoeffs];coeffs.length>0&&isZero(coeffs[coeffs.length-1]);)coeffs.pop();if(coeffs.length<2)throw new RangeError("Polynomial [".concat(constant,", ").concat(restCoeffs,"] must have a non-zero non-constant coefficient"));switch(coeffs.length){case 2:return[unaryMinus(divide(coeffs[0],coeffs[1]))];case 3:var[c,b,a]=coeffs,denom=multiply(2,a),d1=multiply(b,b),d2=multiply(4,a,c);if(equalScalar(d1,d2))return[divide(unaryMinus(b),denom)];var discriminant=sqrt(subtract(d1,d2));return[divide(subtract(discriminant,b),denom),divide(subtract(unaryMinus(discriminant),b),denom)];case 4:var[d,_c,_b,_a]=coeffs,_denom=unaryMinus(multiply(3,_a)),D0_1=multiply(_b,_b),D0_2=multiply(3,_a,_c),D1_1=add(multiply(2,_b,_b,_b),multiply(27,_a,_a,d)),D1_2=multiply(9,_a,_b,_c);if(equalScalar(D0_1,D0_2)&&equalScalar(D1_1,D1_2))return[divide(_b,_denom)];var Ccubed,Delta0=subtract(D0_1,D0_2),Delta1=subtract(D1_1,D1_2),discriminant1=add(multiply(18,_a,_b,_c,d),multiply(_b,_b,_c,_c)),discriminant2=add(multiply(4,_b,_b,_b,d),multiply(4,_a,_c,_c,_c),multiply(27,_a,_a,d,d));if(equalScalar(discriminant1,discriminant2))return[divide(subtract(multiply(4,_a,_b,_c),add(multiply(9,_a,_a,d),multiply(_b,_b,_b))),multiply(_a,Delta0)),divide(subtract(multiply(9,_a,d),multiply(_b,_c)),multiply(2,Delta0))];Ccubed=equalScalar(D0_1,D0_2)?Delta1:divide(add(Delta1,sqrt(subtract(multiply(Delta1,Delta1),multiply(4,Delta0,Delta0,Delta0)))),2);return cbrt(Ccubed,!0).toArray().map((C=>divide(add(_b,C,divide(Delta0,C)),_denom))).map((r=>"Complex"===typeOf(r)&&equalScalar(re(r),re(r)+im(r))?re(r):r));default:throw new RangeError("only implemented for cubic or lower-order polynomials, not ".concat(coeffs))}}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/lsolve.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createLsolve}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/utils/solveValidation.js"),dependencies=["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],createLsolve=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("lsolve",dependencies,(_ref=>{var{typed:typed,matrix:matrix,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,equalScalar:equalScalar,DenseMatrix:DenseMatrix}=_ref,solveValidation=(0,_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__.v)({DenseMatrix:DenseMatrix});return typed("lsolve",{"SparseMatrix, Array | Matrix":function SparseMatrixArrayMatrix(m,b){return function _sparseForwardSubstitution(m,b){for(var bdata=(b=solveValidation(m,b,!0))._data,rows=m._size[0],columns=m._size[1],values=m._values,index=m._index,ptr=m._ptr,x=[],j=0;jj&&(jValues.push(values[k]),jIndices.push(i))}if(equalScalar(vjj,0))throw new Error("Linear system cannot be solved since matrix is singular");for(var xj=divideScalar(bj,vjj),_k=0,l=jIndices.length;_k{var{typed:typed,matrix:matrix,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,equalScalar:equalScalar,DenseMatrix:DenseMatrix}=_ref,solveValidation=(0,_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__.v)({DenseMatrix:DenseMatrix});return typed("lsolveAll",{"SparseMatrix, Array | Matrix":function SparseMatrixArrayMatrix(m,b){return function _sparseForwardSubstitution(m,b_){for(var B=[solveValidation(m,b_,!0)._data.map((e=>e[0]))],rows=m._size[0],columns=m._size[1],values=m._values,index=m._index,ptr=m._ptr,i=0;ii&&(iValues.push(values[j]),iIndices.push(J))}if(equalScalar(Mii,0))if(equalScalar(b[i],0)){if(0===k){var bNew=[...b];bNew[i]=1;for(var _j3=0,_lastIndex2=iIndices.length;_j3<_lastIndex2;_j3++){var _J2=iIndices[_j3];bNew[_J2]=subtractScalar(bNew[_J2],iValues[_j3])}B.push(bNew)}}else{if(0===k)return[];B.splice(k,1),k-=1,L-=1}else{b[i]=divideScalar(b[i],Mii);for(var _j2=0,_lastIndex=iIndices.length;_j2<_lastIndex;_j2++){var _J=iIndices[_j2];b[_J]=subtractScalar(b[_J],multiplyScalar(b[i],iValues[_j2]))}}}return B.map((x=>new DenseMatrix({data:x.map((e=>[e])),size:[rows,1]})))}(m,b)},"DenseMatrix, Array | Matrix":function DenseMatrixArrayMatrix(m,b){return _denseForwardSubstitution(m,b)},"Array, Array | Matrix":function ArrayArrayMatrix(a,b){return _denseForwardSubstitution(matrix(a),b).map((r=>r.valueOf()))}});function _denseForwardSubstitution(m,b_){for(var B=[solveValidation(m,b_,!0)._data.map((e=>e[0]))],M=m._data,rows=m._size[0],columns=m._size[1],i=0;inew DenseMatrix({data:x.map((e=>[e])),size:[rows,1]})))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/lusolve.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{A:function(){return createLusolve}});var is=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),factory=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),utils_solveValidation=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/utils/solveValidation.js");function csIpvec(p,b){var k,n=b.length,x=[];if(p)for(k=0;k{var{typed:typed,matrix:matrix,lup:lup,slu:slu,usolve:usolve,lsolve:lsolve,DenseMatrix:DenseMatrix}=_ref,solveValidation=(0,utils_solveValidation.v)({DenseMatrix:DenseMatrix});return typed("lusolve",{"Array, Array | Matrix":function ArrayArrayMatrix(a,b){a=matrix(a);var d=lup(a);return _lusolve(d.L,d.U,d.p,null,b).valueOf()},"DenseMatrix, Array | Matrix":function DenseMatrixArrayMatrix(a,b){var d=lup(a);return _lusolve(d.L,d.U,d.p,null,b)},"SparseMatrix, Array | Matrix":function SparseMatrixArrayMatrix(a,b){var d=lup(a);return _lusolve(d.L,d.U,d.p,null,b)},"SparseMatrix, Array | Matrix, number, number":function SparseMatrixArrayMatrixNumberNumber(a,b,order,threshold){var d=slu(a,order,threshold);return _lusolve(d.L,d.U,d.p,d.q,b)},"Object, Array | Matrix":function ObjectArrayMatrix(d,b){return _lusolve(d.L,d.U,d.p,d.q,b)}});function _toMatrix(a){if((0,is.SW)(a))return a;if((0,is.kJ)(a))return matrix(a);throw new TypeError("Invalid Matrix LU decomposition")}function _lusolve(l,u,p,q,b){l=_toMatrix(l),u=_toMatrix(u),p&&((b=solveValidation(l,b,!0))._data=csIpvec(p,b._data));var y=lsolve(l,b),x=usolve(u,y);return q&&(x._data=csIpvec(q,x._data)),x}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/usolve.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return createUsolve}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/utils/solveValidation.js"),dependencies=["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],createUsolve=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("usolve",dependencies,(_ref=>{var{typed:typed,matrix:matrix,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,equalScalar:equalScalar,DenseMatrix:DenseMatrix}=_ref,solveValidation=(0,_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__.v)({DenseMatrix:DenseMatrix});return typed("usolve",{"SparseMatrix, Array | Matrix":function SparseMatrixArrayMatrix(m,b){return function _sparseBackwardSubstitution(m,b){for(var bdata=(b=solveValidation(m,b,!0))._data,rows=m._size[0],columns=m._size[1],values=m._values,index=m._index,ptr=m._ptr,x=[],j=columns-1;j>=0;j--){var bj=bdata[j][0]||0;if(equalScalar(bj,0))x[j]=[0];else{for(var vjj=0,jValues=[],jIndices=[],firstIndex=ptr[j],k=ptr[j+1]-1;k>=firstIndex;k--){var i=index[k];i===j?vjj=values[k]:i=0;j--){var bj=bdata[j][0]||0,xj=void 0;if(equalScalar(bj,0))xj=0;else{var vjj=mdata[j][j];if(equalScalar(vjj,0))throw new Error("Linear system cannot be solved since matrix is singular");xj=divideScalar(bj,vjj);for(var i=j-1;i>=0;i--)bdata[i]=[subtractScalar(bdata[i][0]||0,multiplyScalar(xj,mdata[i][j]))]}x[j]=[xj]}return new DenseMatrix({data:x,size:[rows,1]})}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/usolveAll.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return createUsolveAll}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/utils/solveValidation.js"),dependencies=["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],createUsolveAll=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("usolveAll",dependencies,(_ref=>{var{typed:typed,matrix:matrix,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,equalScalar:equalScalar,DenseMatrix:DenseMatrix}=_ref,solveValidation=(0,_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__.v)({DenseMatrix:DenseMatrix});return typed("usolveAll",{"SparseMatrix, Array | Matrix":function SparseMatrixArrayMatrix(m,b){return function _sparseBackwardSubstitution(m,b_){for(var B=[solveValidation(m,b_,!0)._data.map((e=>e[0]))],rows=m._size[0],columns=m._size[1],values=m._values,index=m._index,ptr=m._ptr,i=columns-1;i>=0;i--)for(var L=B.length,k=0;k=firstIndex;j--){var J=index[j];J===i?Mii=values[j]:Jnew DenseMatrix({data:x.map((e=>[e])),size:[rows,1]})))}(m,b)},"DenseMatrix, Array | Matrix":function DenseMatrixArrayMatrix(m,b){return _denseBackwardSubstitution(m,b)},"Array, Array | Matrix":function ArrayArrayMatrix(a,b){return _denseBackwardSubstitution(matrix(a),b).map((r=>r.valueOf()))}});function _denseBackwardSubstitution(m,b_){for(var B=[solveValidation(m,b_,!0)._data.map((e=>e[0]))],M=m._data,rows=m._size[0],i=m._size[1]-1;i>=0;i--)for(var L=B.length,k=0;k=0;_j--)bNew[_j]=subtractScalar(bNew[_j],M[_j][i]);B.push(bNew)}}else{if(0===k)return[];B.splice(k,1),k-=1,L-=1}else{b[i]=divideScalar(b[i],M[i][i]);for(var j=i-1;j>=0;j--)b[j]=subtractScalar(b[j],multiplyScalar(b[i],M[j][i]))}}return B.map((x=>new DenseMatrix({data:x.map((e=>[e])),size:[rows,1]})))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/utils/solveValidation.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createSolveValidation}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js");function createSolveValidation(_ref){var{DenseMatrix:DenseMatrix}=_ref;return function solveValidation(m,b,copy){var mSize=m.size();if(2!==mSize.length)throw new RangeError("Matrix must be two dimensional (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_0__.WU)(mSize)+")");var rows=mSize[0];if(rows!==mSize[1])throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_0__.WU)(mSize)+")");var data=[];if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(b)){var bSize=b.size(),bdata=b._data;if(1===bSize.length){if(bSize[0]!==rows)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var i=0;i{var{typed:typed,schur:schur,matrixFromColumns:matrixFromColumns,matrix:matrix,multiply:multiply,range:range,concat:concat,transpose:transpose,index:index,subset:subset,add:add,subtract:subtract,identity:identity,lusolve:lusolve,abs:abs}=_ref;return typed("sylvester",{"Matrix, Matrix, Matrix":_sylvester,"Array, Matrix, Matrix":function ArrayMatrixMatrix(A,B,C){return _sylvester(matrix(A),B,C)},"Array, Array, Matrix":function ArrayArrayMatrix(A,B,C){return _sylvester(matrix(A),matrix(B),C)},"Array, Matrix, Array":function ArrayMatrixArray(A,B,C){return _sylvester(matrix(A),B,matrix(C))},"Matrix, Array, Matrix":function MatrixArrayMatrix(A,B,C){return _sylvester(A,matrix(B),C)},"Matrix, Array, Array":function MatrixArrayArray(A,B,C){return _sylvester(A,matrix(B),matrix(C))},"Matrix, Matrix, Array":function MatrixMatrixArray(A,B,C){return _sylvester(A,B,matrix(C))},"Array, Array, Array":function ArrayArrayArray(A,B,C){return _sylvester(matrix(A),matrix(B),matrix(C)).toArray()}});function _sylvester(A,B,C){for(var n=B.size()[0],m=A.size()[0],sA=schur(A),F=sA.T,U=sA.U,sB=schur(multiply(-1,B)),G=sB.T,V=sB.U,D=multiply(multiply(transpose(U),C),V),all=range(0,m),y=[],hc=(a,b)=>concat(a,b,1),vc=(a,b)=>concat(a,b,0),k=0;k1e-5){for(var RHS=vc(subset(D,index(all,k)),subset(D,index(all,k+1))),j=0;j{var{typed:typed}=_ref;return typed("abs",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Q1,"Complex | BigNumber | Fraction | Unit":x=>x.abs(),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self,!0)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/add.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{e:function(){return createAdd}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo04xSidSid.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","addScalar","equalScalar","DenseMatrix","SparseMatrix","concat"],createAdd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("add",dependencies,(_ref=>{var{typed:typed,matrix:matrix,addScalar:addScalar,equalScalar:equalScalar,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo04xSidSid=(0,_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_3__.H)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("add",{"any, any":addScalar,"any, any, ...any":typed.referToSelf((self=>(x,y,rest)=>{for(var result=self(x,y),i=0;i{var{typed:typed}=_ref;return typed("addScalar",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Ft,"Complex, Complex":function ComplexComplex(x,y){return x.add(y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.plus(y)},"Fraction, Fraction":function FractionFraction(x,y){return x.add(y)},"Unit, Unit":typed.referToSelf((self=>(x,y)=>{if(null===x.value||void 0===x.value)throw new Error("Parameter x contains a unit with undefined value");if(null===y.value||void 0===y.value)throw new Error("Parameter y contains a unit with undefined value");if(!x.equalBase(y))throw new Error("Units do not match");var res=x.clone();return res.value=typed.find(self,[res.valueType(),y.valueType()])(res.value,y.value),res.fixPrefix=!1,res}))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/cbrt.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{S:function(){return createCbrt}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["config","typed","isNegative","unaryMinus","matrix","Complex","BigNumber","Fraction"],createCbrt=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cbrt",dependencies,(_ref=>{var{config:config,typed:typed,isNegative:isNegative,unaryMinus:unaryMinus,matrix:matrix,Complex:Complex,BigNumber:BigNumber,Fraction:Fraction}=_ref;return typed("cbrt",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.ih,Complex:_cbrtComplex,"Complex, boolean":_cbrtComplex,BigNumber:function BigNumber(x){return x.cbrt()},Unit:function _cbrtUnit(x){if(x.value&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Mc)(x.value)){var result=x.clone();return result.value=1,(result=result.pow(1/3)).value=_cbrtComplex(x.value),result}var third,negate=isNegative(x.value);negate&&(x.value=unaryMinus(x.value)),third=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(x.value)?new BigNumber(1).div(3):(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.yQ)(x.value)?new Fraction(1,3):1/3;var _result=x.pow(third);return negate&&(_result.value=unaryMinus(_result.value)),_result}});function _cbrtComplex(x,allRoots){var arg3=x.arg()/3,abs=x.abs(),principal=new Complex((0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.ih)(abs),0).mul(new Complex(0,arg3).exp());if(allRoots){var all=[principal,new Complex((0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.ih)(abs),0).mul(new Complex(0,arg3+2*Math.PI/3).exp()),new Complex((0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.ih)(abs),0).mul(new Complex(0,arg3-2*Math.PI/3).exp())];return"Array"===config.matrix?all:matrix(all)}return principal}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/ceil.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{l:function(){return createCeil}});var decimal_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/decimal.js/decimal.mjs"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),dependencies=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],createCeilNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)("ceil",["typed","config","round"],(_ref=>{var{typed:typed,config:config,round:round}=_ref;return typed("ceil",{number:function number(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.RI)(x,round(x),config.epsilon)?round(x):Math.ceil(x)},"number, number":function numberNumber(x,n){if((0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.RI)(x,round(x,n),config.epsilon))return round(x,n);var[number,exponent]="".concat(x,"e").split("e"),result=Math.ceil(Number("".concat(number,"e").concat(Number(exponent)+n)));return[number,exponent]="".concat(result,"e").split("e"),Number("".concat(number,"e").concat(Number(exponent)-n))}})})),createCeil=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)("ceil",dependencies,(_ref2=>{var{typed:typed,config:config,round:round,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix}=_ref2,matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__.O)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_5__.R)({typed:typed}),ceilNumber=createCeilNumber({typed:typed,config:config,round:round});return typed("ceil",{number:ceilNumber.signatures.number,"number,number":ceilNumber.signatures["number,number"],Complex:function Complex(x){return x.ceil()},"Complex, number":function ComplexNumber(x,n){return x.ceil(n)},"Complex, BigNumber":function ComplexBigNumber(x,n){return x.ceil(n.toNumber())},BigNumber:function BigNumber(x){return(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,round(x),config.epsilon)?round(x):x.ceil()},"BigNumber, BigNumber":function BigNumberBigNumber(x,n){return(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,round(x,n),config.epsilon)?round(x,n):x.toDecimalPlaces(n.toNumber(),decimal_js__WEBPACK_IMPORTED_MODULE_0__.Z.ROUND_CEIL)},Fraction:function Fraction(x){return x.ceil()},"Fraction, number":function FractionNumber(x,n){return x.ceil(n)},"Fraction, BigNumber":function FractionBigNumber(x,n){return x.ceil(n.toNumber())},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,self,!0))),"Array, number | BigNumber":typed.referToSelf((self=>(x,n)=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,(i=>self(i,n)),!0))),"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>matAlgo14xDs(x,y,self,!1))),"number | Complex | Fraction | BigNumber, Array":typed.referToSelf((self=>(x,y)=>matAlgo14xDs(matrix(y),x,self,!0).valueOf())),"number | Complex | Fraction | BigNumber, Matrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):"dense"===y.storage()?matAlgo14xDs(y,x,self,!0):matAlgo12xSfs(y,x,self,!0)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/cube.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return createCube}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed"],createCube=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cube",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("cube",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Dv,Complex:function Complex(x){return x.mul(x).mul(x)},BigNumber:function BigNumber(x){return x.times(x).times(x)},Fraction:function Fraction(x){return x.pow(3)},Unit:function Unit(x){return x.pow(3)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/divide.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{_:function(){return createDivide}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),dependencies=["typed","matrix","multiply","equalScalar","divideScalar","inv"],createDivide=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("divide",dependencies,(_ref=>{var{typed:typed,matrix:matrix,multiply:multiply,equalScalar:equalScalar,divideScalar:divideScalar,inv:inv}=_ref,matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__.R)({typed:typed});return typed("divide",(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_3__.l7)({"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(x,y){return multiply(x,inv(y))},"DenseMatrix, any":function DenseMatrixAny(x,y){return matAlgo14xDs(x,y,divideScalar,!1)},"SparseMatrix, any":function SparseMatrixAny(x,y){return matAlgo11xS0s(x,y,divideScalar,!1)},"Array, any":function ArrayAny(x,y){return matAlgo14xDs(matrix(x),y,divideScalar,!1).valueOf()},"any, Array | Matrix":function anyArrayMatrix(x,y){return multiply(x,inv(y))}},divideScalar.signatures))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/divideScalar.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return createDivideScalar}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","numeric"],createDivideScalar=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("divideScalar",dependencies,(_ref=>{var{typed:typed,numeric:numeric}=_ref;return typed("divideScalar",{"number, number":function numberNumber(x,y){return x/y},"Complex, Complex":function ComplexComplex(x,y){return x.div(y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.div(y)},"Fraction, Fraction":function FractionFraction(x,y){return x.div(y)},"Unit, number | Complex | Fraction | BigNumber | Unit":(x,y)=>x.divide(y),"number | Fraction | Complex | BigNumber, Unit":(x,y)=>y.divideInto(x)})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/dotDivide.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return createDotDivide}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","equalScalar","divideScalar","DenseMatrix","concat"],createDotDivide=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("dotDivide",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,divideScalar:divideScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_3__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__.O)({typed:typed,DenseMatrix:DenseMatrix});return typed("dotDivide",(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__.L)({typed:typed,matrix:matrix,concat:concat})({elop:divideScalar,SS:matAlgo07xSSf,DS:matAlgo03xDSf,SD:matAlgo02xDS0,Ss:matAlgo11xS0s,sS:matAlgo12xSfs}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/dotMultiply.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return createDotMultiply}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo09xS0Sf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo09xS0Sf.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","equalScalar","multiplyScalar","concat"],createDotMultiply=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("dotMultiply",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,multiplyScalar:multiplyScalar,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo09xS0Sf=(0,_type_matrix_utils_matAlgo09xS0Sf_js__WEBPACK_IMPORTED_MODULE_2__.r)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar});return typed("dotMultiply",(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat})({elop:multiplyScalar,SS:matAlgo09xS0Sf,DS:matAlgo02xDS0,Ss:matAlgo11xS0s}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/dotPow.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createDotPow}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","equalScalar","matrix","pow","DenseMatrix","concat"],createDotPow=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("dotPow",dependencies,(_ref=>{var{typed:typed,equalScalar:equalScalar,matrix:matrix,pow:pow,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__.L)({typed:typed,matrix:matrix,concat:concat}),powScalarSignatures={};for(var signature in pow.signatures)Object.prototype.hasOwnProperty.call(pow.signatures,signature)&&(signature.includes("Matrix")||signature.includes("Array")||(powScalarSignatures[signature]=pow.signatures[signature]));var powScalar=typed(powScalarSignatures);return typed("dotPow",matrixAlgorithmSuite({elop:powScalar,SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo11xS0s,sS:matAlgo12xSfs}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/exp.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return createExp}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed"],createExp=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("exp",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("exp",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.qX,Complex:function Complex(x){return x.exp()},BigNumber:function BigNumber(x){return x.exp()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/expm1.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j:function(){return createExpm1}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","Complex"],createExpm1=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("expm1",dependencies,(_ref=>{var{typed:typed,Complex:_Complex}=_ref;return typed("expm1",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.B,Complex:function Complex(x){var r=Math.exp(x.re);return new _Complex(r*Math.cos(x.im)-1,r*Math.sin(x.im))},BigNumber:function BigNumber(x){return x.exp().minus(1)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/fix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return createFix}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),dependencies=["typed","Complex","matrix","ceil","floor","equalScalar","zeros","DenseMatrix"],createFixNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("fix",["typed","ceil","floor"],(_ref=>{var{typed:typed,ceil:ceil,floor:floor}=_ref;return typed("fix",{number:function number(x){return x>0?floor(x):ceil(x)},"number, number":function numberNumber(x,n){return x>0?floor(x,n):ceil(x,n)}})})),createFix=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("fix",dependencies,(_ref2=>{var{typed:typed,Complex:_Complex,matrix:matrix,ceil:ceil,floor:floor,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix}=_ref2,matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_1__.O)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__.R)({typed:typed}),fixNumber=createFixNumber({typed:typed,ceil:ceil,floor:floor});return typed("fix",{number:fixNumber.signatures.number,"number, number | BigNumber":fixNumber.signatures["number,number"],Complex:function Complex(x){return new _Complex(x.re>0?Math.floor(x.re):Math.ceil(x.re),x.im>0?Math.floor(x.im):Math.ceil(x.im))},"Complex, number":function ComplexNumber(x,n){return new _Complex(x.re>0?floor(x.re,n):ceil(x.re,n),x.im>0?floor(x.im,n):ceil(x.im,n))},"Complex, BigNumber":function ComplexBigNumber(x,bn){var n=bn.toNumber();return new _Complex(x.re>0?floor(x.re,n):ceil(x.re,n),x.im>0?floor(x.im,n):ceil(x.im,n))},BigNumber:function BigNumber(x){return x.isNegative()?ceil(x):floor(x)},"BigNumber, number | BigNumber":function BigNumberNumberBigNumber(x,n){return x.isNegative()?ceil(x,n):floor(x,n)},Fraction:function Fraction(x){return x.s<0?x.ceil():x.floor()},"Fraction, number | BigNumber":function FractionNumberBigNumber(x,n){return x.s<0?ceil(x,n):floor(x,n)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__.Fh)(x,self,!0))),"Array | Matrix, number | BigNumber":typed.referToSelf((self=>(x,n)=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__.Fh)(x,(i=>self(i,n)),!0))),"number | Complex | Fraction | BigNumber, Array":typed.referToSelf((self=>(x,y)=>matAlgo14xDs(matrix(y),x,self,!0).valueOf())),"number | Complex | Fraction | BigNumber, Matrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):"dense"===y.storage()?matAlgo14xDs(y,x,self,!0):matAlgo12xSfs(y,x,self,!0)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/floor.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return createFloor}});var decimal_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/decimal.js/decimal.mjs"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),dependencies=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],createFloorNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)("floor",["typed","config","round"],(_ref=>{var{typed:typed,config:config,round:round}=_ref;return typed("floor",{number:function number(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.RI)(x,round(x),config.epsilon)?round(x):Math.floor(x)},"number, number":function numberNumber(x,n){if((0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.RI)(x,round(x,n),config.epsilon))return round(x,n);var[number,exponent]="".concat(x,"e").split("e"),result=Math.floor(Number("".concat(number,"e").concat(Number(exponent)+n)));return[number,exponent]="".concat(result,"e").split("e"),Number("".concat(number,"e").concat(Number(exponent)-n))}})})),createFloor=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)("floor",dependencies,(_ref2=>{var{typed:typed,config:config,round:round,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix}=_ref2,matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__.O)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_5__.R)({typed:typed}),floorNumber=createFloorNumber({typed:typed,config:config,round:round});return typed("floor",{number:floorNumber.signatures.number,"number,number":floorNumber.signatures["number,number"],Complex:function Complex(x){return x.floor()},"Complex, number":function ComplexNumber(x,n){return x.floor(n)},"Complex, BigNumber":function ComplexBigNumber(x,n){return x.floor(n.toNumber())},BigNumber:function BigNumber(x){return(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,round(x),config.epsilon)?round(x):x.floor()},"BigNumber, BigNumber":function BigNumberBigNumber(x,n){return(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,round(x,n),config.epsilon)?round(x,n):x.toDecimalPlaces(n.toNumber(),decimal_js__WEBPACK_IMPORTED_MODULE_0__.Z.ROUND_FLOOR)},Fraction:function Fraction(x){return x.floor()},"Fraction, number":function FractionNumber(x,n){return x.floor(n)},"Fraction, BigNumber":function FractionBigNumber(x,n){return x.floor(n.toNumber())},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,self,!0))),"Array, number | BigNumber":typed.referToSelf((self=>(x,n)=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,(i=>self(i,n)),!0))),"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>matAlgo14xDs(x,y,self,!1))),"number | Complex | Fraction | BigNumber, Array":typed.referToSelf((self=>(x,y)=>matAlgo14xDs(matrix(y),x,self,!0).valueOf())),"number | Complex | Fraction | BigNumber, Matrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):"dense"===y.storage()?matAlgo14xDs(y,x,self,!0):matAlgo12xSfs(y,x,self,!0)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/gcd.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{f:function(){return createGcd}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_mod_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/mod.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo04xSidSid.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_error_ArgumentsError_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/ArgumentsError.js"),dependencies=["typed","config","round","matrix","equalScalar","zeros","BigNumber","DenseMatrix","concat"],gcdTypes="number | BigNumber | Fraction | Matrix | Array",gcdManyTypesSignature="".concat(gcdTypes,", ").concat(gcdTypes,", ...").concat(gcdTypes);function is1d(array){return!array.some((element=>Array.isArray(element)))}var createGcd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("gcd",dependencies,(_ref=>{var{typed:typed,matrix:matrix,config:config,round:round,equalScalar:equalScalar,zeros:zeros,BigNumber:BigNumber,DenseMatrix:DenseMatrix,concat:concat}=_ref,mod=(0,_mod_js__WEBPACK_IMPORTED_MODULE_1__.J)({typed:typed,config:config,round:round,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix,concat:concat}),matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_2__.M)({typed:typed}),matAlgo04xSidSid=(0,_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_3__.v)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__.H)({typed:typed,DenseMatrix:DenseMatrix});return typed("gcd",{"number, number":function _gcdNumber(a,b){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.U)(a)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.U)(b))throw new Error("Parameters in function gcd must be integer numbers");var r;for(;0!==b;)r=mod(a,b),a=b,b=r;return a<0?-a:a},"BigNumber, BigNumber":function _gcdBigNumber(a,b){if(!a.isInt()||!b.isInt())throw new Error("Parameters in function gcd must be integer numbers");var zero=new BigNumber(0);for(;!b.isZero();){var r=mod(a,b);a=b,b=r}return a.lt(zero)?a.neg():a},"Fraction, Fraction":(x,y)=>x.gcd(y)},(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__.L)({typed:typed,matrix:matrix,concat:concat})({SS:matAlgo04xSidSid,DS:matAlgo01xDSid,Ss:matAlgo10xSids}),{[gcdManyTypesSignature]:typed.referToSelf((self=>(a,b,args)=>{for(var res=self(a,b),i=0;iarray=>{if(1===array.length&&Array.isArray(array[0])&&is1d(array[0]))return self(...array[0]);if(is1d(array))return self(...array);throw new _error_ArgumentsError_js__WEBPACK_IMPORTED_MODULE_6__.u("gcd() supports only 1d matrices!")})),Matrix:typed.referToSelf((self=>matrix=>self(matrix.toArray())))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/hypot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return createHypot}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),dependencies=["typed","abs","addScalar","divideScalar","multiplyScalar","sqrt","smaller","isPositive"],createHypot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("hypot",dependencies,(_ref=>{var{typed:typed,abs:abs,addScalar:addScalar,divideScalar:divideScalar,multiplyScalar:multiplyScalar,sqrt:sqrt,smaller:smaller,isPositive:isPositive}=_ref;return typed("hypot",{"... number | BigNumber":_hypot,Array:_hypot,Matrix:M=>_hypot((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(M.toArray()))});function _hypot(args){for(var result=0,largest=0,i=0;i{var{typed:typed,config:config,BigNumber:BigNumber,xgcd:xgcd,equal:equal,smaller:smaller,mod:mod,add:add,isInteger:isInteger}=_ref;return typed("invmod",{"number, number":invmod,"BigNumber, BigNumber":invmod});function invmod(a,b){if(!isInteger(a)||!isInteger(b))throw new Error("Parameters in function invmod must be integer numbers");if(a=mod(a,b),equal(b,0))throw new Error("Divisor must be non zero");var res=xgcd(a,b);res=res.valueOf();var[gcd,inv]=res;return equal(gcd,BigNumber(1))?(inv=mod(inv,b),smaller(inv,BigNumber(0))&&(inv=add(inv,b)),inv):NaN}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/lcm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return createLcm}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo06xS0S0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","matrix","equalScalar","concat"],createLcm=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("lcm",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo06xS0S0=(0,_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__.X)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),lcmTypes="number | BigNumber | Fraction | Matrix | Array",lcmManySignature={};return lcmManySignature["".concat(lcmTypes,", ").concat(lcmTypes,", ...").concat(lcmTypes)]=typed.referToSelf((self=>(a,b,args)=>{for(var res=self(a,b),i=0;ix.lcm(y)},matrixAlgorithmSuite({SS:matAlgo06xS0S0,DS:matAlgo02xDS0,Ss:matAlgo11xS0s}),lcmManySignature)}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return createLog}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["config","typed","divideScalar","Complex"],createLog=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("log",dependencies,(_ref=>{var{typed:typed,config:config,divideScalar:divideScalar,Complex:Complex}=_ref;return typed("log",{number:function number(x){return x>=0||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.OS)(x):new Complex(x,0).log()},Complex:function Complex(x){return x.log()},BigNumber:function BigNumber(x){return!x.isNegative()||config.predictable?x.ln():new Complex(x.toNumber(),0).log()},"any, any":typed.referToSelf((self=>(x,base)=>divideScalar(self(x),self(base))))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log10.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return createLog10}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","config","Complex"],createLog10=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("log10",dependencies,(_ref=>{var{typed:typed,config:config,Complex:_Complex}=_ref;return typed("log10",{number:function number(x){return x>=0||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.vU)(x):new _Complex(x,0).log().div(Math.LN10)},Complex:function Complex(x){return new _Complex(x).log().div(Math.LN10)},BigNumber:function BigNumber(x){return!x.isNegative()||config.predictable?x.log():new _Complex(x.toNumber(),0).log().div(Math.LN10)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log1p.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createLog1p}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["typed","config","divideScalar","log","Complex"],createLog1p=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("log1p",dependencies,(_ref=>{var{typed:typed,config:config,divideScalar:divideScalar,log:log,Complex:Complex}=_ref;return typed("log1p",{number:function number(x){return x>=-1||config.predictable?(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.Kr)(x):_log1pComplex(new Complex(x,0))},Complex:_log1pComplex,BigNumber:function BigNumber(x){var y=x.plus(1);return!y.isNegative()||config.predictable?y.ln():_log1pComplex(new Complex(x.toNumber(),0))},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self))),"any, any":typed.referToSelf((self=>(x,base)=>divideScalar(self(x),log(base))))});function _log1pComplex(x){var xRe1p=x.re+1;return new Complex(Math.log(Math.sqrt(xRe1p*xRe1p+x.im*x.im)),Math.atan2(x.im,xRe1p))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log2.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createLog2}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","config","Complex"],createLog2=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("log2",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex}=_ref;return typed("log2",{number:function number(x){return x>=0||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.iO)(x):_log2Complex(new Complex(x,0))},Complex:_log2Complex,BigNumber:function BigNumber(x){return!x.isNegative()||config.predictable?x.log(2):_log2Complex(new Complex(x.toNumber(),0))},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))});function _log2Complex(x){var newX=Math.sqrt(x.re*x.re+x.im*x.im);return new Complex(Math.log2?Math.log2(newX):Math.log(newX)/Math.LN2,Math.atan2(x.im,x.re)/Math.LN2)}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/mod.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return createMod}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_floor_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/floor.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo05xSfSf.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix","concat"],createMod=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("mod",dependencies,(_ref=>{var{typed:typed,config:config,round:round,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix,concat:concat}=_ref,floor=(0,_floor_js__WEBPACK_IMPORTED_MODULE_1__.B)({typed:typed,config:config,round:round,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix}),matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_3__.$)({typed:typed}),matAlgo05xSfSf=(0,_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_4__.b)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_6__.O)({typed:typed,DenseMatrix:DenseMatrix});return typed("mod",{"number, number":function _modNumber(x,y){return 0===y?x:x-y*floor(x/y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return y.isZero()?x:x.sub(y.mul(floor(x.div(y))))},"Fraction, Fraction":function FractionFraction(x,y){return y.equals(0)?x:x.sub(y.mul(floor(x.div(y))))}},(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__.L)({typed:typed,matrix:matrix,concat:concat})({SS:matAlgo05xSfSf,DS:matAlgo03xDSf,SD:matAlgo02xDS0,Ss:matAlgo11xS0s,sS:matAlgo12xSfs}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/multiply.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:function(){return createMultiply}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),dependencies=["typed","matrix","addScalar","multiplyScalar","equalScalar","dot"],createMultiply=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("multiply",dependencies,(_ref=>{var{typed:typed,matrix:matrix,addScalar:addScalar,multiplyScalar:multiplyScalar,equalScalar:equalScalar,dot:dot}=_ref,matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__.R)({typed:typed});function _validateMatrixDimensions(size1,size2){switch(size1.length){case 1:switch(size2.length){case 1:if(size1[0]!==size2[0])throw new RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(size1[0]!==size2[0])throw new RangeError("Dimension mismatch in multiplication. Vector length ("+size1[0]+") must match Matrix rows ("+size2[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+size2.length+" dimensions)")}break;case 2:switch(size2.length){case 1:if(size1[1]!==size2[0])throw new RangeError("Dimension mismatch in multiplication. Matrix columns ("+size1[1]+") must match Vector length ("+size2[0]+")");break;case 2:if(size1[1]!==size2[0])throw new RangeError("Dimension mismatch in multiplication. Matrix A columns ("+size1[1]+") must match Matrix B rows ("+size2[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+size2.length+" dimensions)")}break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+size1.length+" dimensions)")}}function _multiplyVectorMatrix(a,b){if("dense"!==b.storage())throw new Error("Support for SparseMatrix not implemented");return function _multiplyVectorDenseMatrix(a,b){var dt,adata=a._data,asize=a._size,adt=a._datatype||a.getDataType(),bdata=b._data,bsize=b._size,bdt=b._datatype||b.getDataType(),alength=asize[0],bcolumns=bsize[1],af=addScalar,mf=multiplyScalar;adt&&bdt&&adt===bdt&&"string"==typeof adt&&"mixed"!==adt&&(dt=adt,af=typed.find(addScalar,[dt,dt]),mf=typed.find(multiplyScalar,[dt,dt]));for(var c=[],j=0;jkb0)for(var last=0,i=0;i(x,y)=>{_validateMatrixDimensions((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.aJ)(x),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.aJ)(y));var m=selfMM(matrix(x),matrix(y));return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_4__.SW)(m)?m.valueOf():m})),"Matrix, Matrix":function MatrixMatrix(x,y){var xsize=x.size(),ysize=y.size();return _validateMatrixDimensions(xsize,ysize),1===xsize.length?1===ysize.length?function _multiplyVectorVector(a,b,n){if(0===n)throw new Error("Cannot multiply two empty vectors");return dot(a,b)}(x,y,xsize[0]):_multiplyVectorMatrix(x,y):1===ysize.length?_multiplyMatrixVector(x,y):_multiplyMatrixMatrix(x,y)},"Matrix, Array":typed.referTo("Matrix,Matrix",(selfMM=>(x,y)=>selfMM(x,matrix(y)))),"Array, Matrix":typed.referToSelf((self=>(x,y)=>self(matrix(x,y.storage()),y))),"SparseMatrix, any":function SparseMatrixAny(x,y){return matAlgo11xS0s(x,y,multiplyScalar,!1)},"DenseMatrix, any":function DenseMatrixAny(x,y){return matAlgo14xDs(x,y,multiplyScalar,!1)},"any, SparseMatrix":function anySparseMatrix(x,y){return matAlgo11xS0s(y,x,multiplyScalar,!0)},"any, DenseMatrix":function anyDenseMatrix(x,y){return matAlgo14xDs(y,x,multiplyScalar,!0)},"Array, any":function ArrayAny(x,y){return matAlgo14xDs(matrix(x),y,multiplyScalar,!1).valueOf()},"any, Array":function anyArray(x,y){return matAlgo14xDs(matrix(y),x,multiplyScalar,!0).valueOf()},"any, any":multiplyScalar,"any, any, ...any":typed.referToSelf((self=>(x,y,rest)=>{for(var result=self(x,y),i=0;i{var{typed:typed}=_ref;return typed("multiplyScalar",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.G6,"Complex, Complex":function ComplexComplex(x,y){return x.mul(y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.times(y)},"Fraction, Fraction":function FractionFraction(x,y){return x.mul(y)},"number | Fraction | BigNumber | Complex, Unit":(x,y)=>y.multiply(x),"Unit, number | Fraction | BigNumber | Complex | Unit":(x,y)=>x.multiply(y)})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/norm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return createNorm}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","abs","add","pow","conj","sqrt","multiply","equalScalar","larger","smaller","matrix","ctranspose","eigs"],createNorm=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("norm",dependencies,(_ref=>{var{typed:typed,abs:abs,add:add,pow:pow,conj:conj,sqrt:sqrt,multiply:multiply,equalScalar:equalScalar,larger:larger,smaller:smaller,matrix:matrix,ctranspose:ctranspose,eigs:eigs}=_ref;return typed("norm",{number:Math.abs,Complex:function Complex(x){return x.abs()},BigNumber:function BigNumber(x){return x.abs()},boolean:function boolean(x){return Math.abs(x)},Array:function Array(x){return _norm(matrix(x),2)},Matrix:function Matrix(x){return _norm(x,2)},"Array, number | BigNumber | string":function ArrayNumberBigNumberString(x,p){return _norm(matrix(x),p)},"Matrix, number | BigNumber | string":function MatrixNumberBigNumberString(x,p){return _norm(x,p)}});function _vectorNorm(x,p){if(p===Number.POSITIVE_INFINITY||"inf"===p)return function _vectorNormPlusInfinity(x){var pinf=0;return x.forEach((function(value){var v=abs(value);larger(v,pinf)&&(pinf=v)}),!0),pinf}(x);if(p===Number.NEGATIVE_INFINITY||"-inf"===p)return function _vectorNormMinusInfinity(x){var ninf;return x.forEach((function(value){var v=abs(value);ninf&&!smaller(v,ninf)||(ninf=v)}),!0),ninf||0}(x);if("fro"===p)return _norm(x,2);if("number"==typeof p&&!isNaN(p)){if(!equalScalar(p,0)){var n=0;return x.forEach((function(value){n=add(pow(abs(value),p),n)}),!0),pow(n,1/p)}return Number.POSITIVE_INFINITY}throw new Error("Unsupported parameter value")}function _matrixNorm(x,p){if(1===p)return function _matrixNormOne(x){var c=[],maxc=0;return x.forEach((function(value,index){var j=index[1],cj=add(c[j]||0,abs(value));larger(cj,maxc)&&(maxc=cj),c[j]=cj}),!0),maxc}(x);if(p===Number.POSITIVE_INFINITY||"inf"===p)return function _matrixNormInfinity(x){var r=[],maxr=0;return x.forEach((function(value,index){var i=index[0],ri=add(r[i]||0,abs(value));larger(ri,maxr)&&(maxr=ri),r[i]=ri}),!0),maxr}(x);if("fro"===p)return function _matrixNormFrobenius(x){var fro=0;return x.forEach((function(value,index){fro=add(fro,multiply(value,conj(value)))})),abs(sqrt(fro))}(x);if(2===p)return function _matrixNormTwo(x){var sizeX=x.size();if(sizeX[0]!==sizeX[1])throw new RangeError("Invalid matrix dimensions");var tx=ctranspose(x),squaredX=multiply(tx,x),eigenVals=eigs(squaredX).values.toArray(),rho=eigenVals[eigenVals.length-1];return abs(sqrt(rho))}(x);throw new Error("Unsupported parameter value "+p)}function _norm(x,p){var sizeX=x.size();if(1===sizeX.length)return _vectorNorm(x,p);if(2===sizeX.length){if(sizeX[0]&&sizeX[1])return _matrixNorm(x,p);throw new RangeError("Invalid matrix dimensions")}}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/nthRoot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{l:function(){return createNthRoot}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo06xS0S0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),name="nthRoot",dependencies=["typed","matrix","equalScalar","BigNumber","concat"],createNthRoot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,BigNumber:_BigNumber,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo06xS0S0=(0,_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_3__.X)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__.e)({typed:typed,equalScalar:equalScalar}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__.L)({typed:typed,matrix:matrix,concat:concat});function complexErr(){throw new Error("Complex number not supported in function nthRoot. Use nthRoots instead.")}return typed(name,{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_6__.YS,"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_6__.YS,BigNumber:x=>_bigNthRoot(x,new _BigNumber(2)),"BigNumber, BigNumber":_bigNthRoot,Complex:complexErr,"Complex, number":complexErr,Array:typed.referTo("DenseMatrix,number",(selfDn=>x=>selfDn(matrix(x),2).valueOf())),DenseMatrix:typed.referTo("DenseMatrix,number",(selfDn=>x=>selfDn(x,2))),SparseMatrix:typed.referTo("SparseMatrix,number",(selfSn=>x=>selfSn(x,2))),"SparseMatrix, SparseMatrix":typed.referToSelf((self=>(x,y)=>{if(1===y.density())return matAlgo06xS0S0(x,y,self);throw new Error("Root must be non-zero")})),"DenseMatrix, SparseMatrix":typed.referToSelf((self=>(x,y)=>{if(1===y.density())return matAlgo01xDSid(x,y,self,!1);throw new Error("Root must be non-zero")})),"Array, SparseMatrix":typed.referTo("DenseMatrix,SparseMatrix",(selfDS=>(x,y)=>selfDS(matrix(x),y))),"number | BigNumber, SparseMatrix":typed.referToSelf((self=>(x,y)=>{if(1===y.density())return matAlgo11xS0s(y,x,self,!0);throw new Error("Root must be non-zero")}))},matrixAlgorithmSuite({scalar:"number | BigNumber",SD:matAlgo02xDS0,Ss:matAlgo11xS0s,sS:!1}));function _bigNthRoot(a,root){var precision=_BigNumber.precision,Big=_BigNumber.clone({precision:precision+2}),zero=new _BigNumber(0),one=new Big(1),inv=root.isNegative();if(inv&&(root=root.neg()),root.isZero())throw new Error("Root must be non-zero");if(a.isNegative()&&!root.abs().mod(2).equals(1))throw new Error("Root must be odd when a is negative.");if(a.isZero())return inv?new Big(1/0):0;if(!a.isFinite())return inv?zero:a;var x=a.abs().pow(one.div(root));return x=a.isNeg()?x.neg():x,new _BigNumber((inv?one.div(x):x).toPrecision(precision))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/nthRoots.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{f:function(){return createNthRoots}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["config","typed","divideScalar","Complex"],createNthRoots=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("nthRoots",dependencies,(_ref=>{var{typed:typed,config:config,divideScalar:divideScalar,Complex:Complex}=_ref,_calculateExactResult=[function realPos(val){return new Complex(val,0)},function imagPos(val){return new Complex(0,val)},function realNeg(val){return new Complex(-val,0)},function imagNeg(val){return new Complex(0,-val)}];function _nthComplexRoots(a,root){if(root<0)throw new Error("Root must be greater than zero");if(0===root)throw new Error("Root must be non-zero");if(root%1!=0)throw new Error("Root must be an integer");if(0===a||0===a.abs())return[new Complex(0,0)];var offset,aIsNumeric="number"==typeof a;(aIsNumeric||0===a.re||0===a.im)&&(offset=aIsNumeric?2*+(a<0):0===a.im?2*+(a.re<0):2*+(a.im<0)+1);for(var arg=a.arg(),abs=a.abs(),roots=[],r=Math.pow(abs,1/root),k=0;k{var{typed:typed,config:config,identity:identity,multiply:multiply,matrix:matrix,inv:inv,number:number,fraction:fraction,Complex:Complex}=_ref;return typed("pow",{"number, number":_pow,"Complex, Complex":function ComplexComplex(x,y){return x.pow(y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return y.isInteger()||x>=0||config.predictable?x.pow(y):new Complex(x.toNumber(),0).pow(y.toNumber(),0)},"Fraction, Fraction":function FractionFraction(x,y){var result=x.pow(y);if(null!=result)return result;if(config.predictable)throw new Error("Result of pow is non-rational and cannot be expressed as a fraction");return _pow(x.valueOf(),y.valueOf())},"Array, number":_powArray,"Array, BigNumber":function ArrayBigNumber(x,y){return _powArray(x,y.toNumber())},"Matrix, number":_powMatrix,"Matrix, BigNumber":function MatrixBigNumber(x,y){return _powMatrix(x,y.toNumber())},"Unit, number | BigNumber":function UnitNumberBigNumber(x,y){return x.pow(y)}});function _pow(x,y){if(config.predictable&&!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(y)&&x<0)try{var yFrac=fraction(y),yNum=number(yFrac);if((y===yNum||Math.abs((y-yNum)/y)<1e-14)&&yFrac.d%2==1)return(yFrac.n%2==0?1:-1)*Math.pow(-x,y)}catch(ex){}return config.predictable&&(x<-1&&y===1/0||x>-1&&x<0&&y===-1/0)?NaN:(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(y)||x>=0||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__.Ue)(x,y):x*x<1&&y===1/0||x*x>1&&y===-1/0?0:new Complex(x,0).pow(y,0)}function _powArray(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(y))throw new TypeError("For A^b, b must be an integer (value is "+y+")");var s=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.aJ)(x);if(2!==s.length)throw new Error("For A^b, A must be 2 dimensional (A has "+s.length+" dimensions)");if(s[0]!==s[1])throw new Error("For A^b, A must be square (size is "+s[0]+"x"+s[1]+")");if(y<0)try{return _powArray(inv(x),-y)}catch(error){if("Cannot calculate inverse, determinant is zero"===error.message)throw new TypeError("For A^b, when A is not invertible, b must be a positive integer (value is "+y+")");throw error}for(var res=identity(s[0]).valueOf(),px=x;y>=1;)1==(1&y)&&(res=multiply(px,res)),y>>=1,px=multiply(px,px);return res}function _powMatrix(x,y){return matrix(_powArray(x.valueOf(),y))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/round.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{V:function(){return createRound}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),NO_INT="Number of decimals in function round must be an integer",dependencies=["typed","config","matrix","equalScalar","zeros","BigNumber","DenseMatrix"],createRound=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("round",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,equalScalar:equalScalar,zeros:zeros,BigNumber:_BigNumber,DenseMatrix:DenseMatrix}=_ref,matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_2__.O)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_3__.R)({typed:typed});function toExponent(epsilon){return Math.abs((0,_utils_number_js__WEBPACK_IMPORTED_MODULE_4__.wV)(epsilon).exponent)}return typed("round",{number:function number(x){var xEpsilon=(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.QV)(x,toExponent(config.epsilon)),xSelected=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_4__.RI)(x,xEpsilon,config.epsilon)?xEpsilon:x;return(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.QV)(xSelected)},"number, number":function numberNumber(x,n){var epsilonExponent=toExponent(config.epsilon);if(n>=epsilonExponent)return(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.QV)(x,n);var xEpsilon=(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.QV)(x,epsilonExponent),xSelected=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_4__.RI)(x,xEpsilon,config.epsilon)?xEpsilon:x;return(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.QV)(xSelected,n)},"number, BigNumber":function numberBigNumber(x,n){if(!n.isInteger())throw new TypeError(NO_INT);return new _BigNumber(x).toDecimalPlaces(n.toNumber())},Complex:function Complex(x){return x.round()},"Complex, number":function ComplexNumber(x,n){if(n%1)throw new TypeError(NO_INT);return x.round(n)},"Complex, BigNumber":function ComplexBigNumber(x,n){if(!n.isInteger())throw new TypeError(NO_INT);var _n=n.toNumber();return x.round(_n)},BigNumber:function BigNumber(x){var xEpsilon=new _BigNumber(x).toDecimalPlaces(toExponent(config.epsilon));return((0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,xEpsilon,config.epsilon)?xEpsilon:x).toDecimalPlaces(0)},"BigNumber, BigNumber":function BigNumberBigNumber(x,n){if(!n.isInteger())throw new TypeError(NO_INT);var epsilonExponent=toExponent(config.epsilon);if(n>=epsilonExponent)return x.toDecimalPlaces(n.toNumber());var xEpsilon=x.toDecimalPlaces(epsilonExponent);return((0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,xEpsilon,config.epsilon)?xEpsilon:x).toDecimalPlaces(n.toNumber())},Fraction:function Fraction(x){return x.round()},"Fraction, number":function FractionNumber(x,n){if(n%1)throw new TypeError(NO_INT);return x.round(n)},"Fraction, BigNumber":function FractionBigNumber(x,n){if(!n.isInteger())throw new TypeError(NO_INT);return x.round(n.toNumber())},"Unit, number, Unit":typed.referToSelf((self=>function(x,n,unit){var valueless=x.toNumeric(unit);return unit.multiply(self(valueless,n))})),"Unit, BigNumber, Unit":typed.referToSelf((self=>(x,n,unit)=>self(x,n.toNumber(),unit))),"Unit, Unit":typed.referToSelf((self=>(x,unit)=>self(x,0,unit))),"Array | Matrix, number, Unit":typed.referToSelf((self=>(x,n,unit)=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,(value=>self(value,n,unit)),!0))),"Array | Matrix, BigNumber, Unit":typed.referToSelf((self=>(x,n,unit)=>self(x,n.toNumber(),unit))),"Array | Matrix, Unit":typed.referToSelf((self=>(x,unit)=>self(x,0,unit))),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,self,!0))),"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,n)=>matAlgo11xS0s(x,n,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,n)=>matAlgo14xDs(x,n,self,!1))),"Array, number | BigNumber":typed.referToSelf((self=>(x,n)=>matAlgo14xDs(matrix(x),n,self,!1).valueOf())),"number | Complex | BigNumber | Fraction, SparseMatrix":typed.referToSelf((self=>(x,n)=>equalScalar(x,0)?zeros(n.size(),n.storage()):matAlgo12xSfs(n,x,self,!0))),"number | Complex | BigNumber | Fraction, DenseMatrix":typed.referToSelf((self=>(x,n)=>equalScalar(x,0)?zeros(n.size(),n.storage()):matAlgo14xDs(n,x,self,!0))),"number | Complex | BigNumber | Fraction, Array":typed.referToSelf((self=>(x,n)=>matAlgo14xDs(matrix(n),x,self,!0).valueOf()))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/sign.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return createSign}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","BigNumber","Fraction","complex"],createSign=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sign",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber,complex:complex,Fraction:_Fraction}=_ref;return typed("sign",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.$y,Complex:function Complex(x){return 0===x.im?complex((0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.$y)(x.re)):x.sign()},BigNumber:function BigNumber(x){return new _BigNumber(x.cmp(0))},Fraction:function Fraction(x){return new _Fraction(x.s,1)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self,!0))),Unit:typed.referToSelf((self=>x=>{if(!x._isDerived()&&0!==x.units[0].unit.offset)throw new TypeError("sign is ambiguous for units with offset");return typed.find(self,x.valueType())(x.value)}))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/sqrt.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createSqrt}});var dependencies=["config","typed","Complex"],createSqrt=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("sqrt",dependencies,(_ref=>{var{config:config,typed:typed,Complex:Complex}=_ref;return typed("sqrt",{number:_sqrtNumber,Complex:function Complex(x){return x.sqrt()},BigNumber:function BigNumber(x){return!x.isNegative()||config.predictable?x.sqrt():_sqrtNumber(x.toNumber())},Unit:function Unit(x){return x.pow(.5)}});function _sqrtNumber(x){return isNaN(x)?NaN:x>=0||config.predictable?Math.sqrt(x):new Complex(x,0).sqrt()}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/square.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{y:function(){return createSquare}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed"],createSquare=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("square",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("square",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__._$,Complex:function Complex(x){return x.mul(x)},BigNumber:function BigNumber(x){return x.times(x)},Fraction:function Fraction(x){return x.mul(x)},Unit:function Unit(x){return x.pow(2)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/subtract.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:function(){return createSubtract}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo05xSfSf.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","equalScalar","subtractScalar","unaryMinus","DenseMatrix","concat"],createSubtract=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("subtract",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,subtractScalar:subtractScalar,unaryMinus:unaryMinus,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__.$)({typed:typed}),matAlgo05xSfSf=(0,_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_3__.b)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__.H)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__.O)({typed:typed,DenseMatrix:DenseMatrix});return typed("subtract",{"any, any":subtractScalar},(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__.L)({typed:typed,matrix:matrix,concat:concat})({elop:subtractScalar,SS:matAlgo05xSfSf,DS:matAlgo01xDSid,SD:matAlgo03xDSf,Ss:matAlgo12xSfs,sS:matAlgo10xSids}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/subtractScalar.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{A:function(){return createSubtractScalar}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),name="subtractScalar",dependencies=["typed"],createSubtractScalar=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed}=_ref;return typed(name,{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.hz,"Complex, Complex":function ComplexComplex(x,y){return x.sub(y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.minus(y)},"Fraction, Fraction":function FractionFraction(x,y){return x.sub(y)},"Unit, Unit":typed.referToSelf((self=>(x,y)=>{if(null===x.value||void 0===x.value)throw new Error("Parameter x contains a unit with undefined value");if(null===y.value||void 0===y.value)throw new Error("Parameter y contains a unit with undefined value");if(!x.equalBase(y))throw new Error("Units do not match");var res=x.clone();return res.value=typed.find(self,[res.valueType(),y.valueType()])(res.value,y.value),res.fixPrefix=!1,res}))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/unaryMinus.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return createUnaryMinus}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed"],createUnaryMinus=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("unaryMinus",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("unaryMinus",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.GC,"Complex | BigNumber | Fraction":x=>x.neg(),Unit:typed.referToSelf((self=>x=>{var res=x.clone();return res.value=typed.find(self,res.valueType())(x.value),res})),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self,!0)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/unaryPlus.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return createUnaryPlus}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","config","BigNumber"],createUnaryPlus=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("unaryPlus",dependencies,(_ref=>{var{typed:typed,config:config,BigNumber:BigNumber}=_ref;return typed("unaryPlus",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.iU,Complex:function Complex(x){return x},BigNumber:function BigNumber(x){return x},Fraction:function Fraction(x){return x},Unit:function Unit(x){return x.clone()},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self,!0))),"boolean | string":function booleanString(x){return"BigNumber"===config.number?new BigNumber(+x):+x}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/xgcd.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:function(){return createXgcd}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","config","matrix","BigNumber"],createXgcd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("xgcd",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,BigNumber:BigNumber}=_ref;return typed("xgcd",{"number, number":function numberNumber(a,b){var res=(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.y9)(a,b);return"Array"===config.matrix?res:matrix(res)},"BigNumber, BigNumber":function _xgcdBigNumber(a,b){var t,q,r,res,zero=new BigNumber(0),one=new BigNumber(1),x=zero,lastx=one,y=one,lasty=zero;if(!a.isInt()||!b.isInt())throw new Error("Parameters in function xgcd must be integer numbers");for(;!b.isZero();)q=a.div(b).floor(),r=a.mod(b),t=x,x=lastx.minus(q.times(x)),lastx=t,t=y,y=lasty.minus(q.times(y)),lasty=t,a=b,b=r;res=a.lt(zero)?[a.neg(),lastx.neg(),lasty.neg()]:[a,a.isZero()?0:lastx,lasty];return"Array"===config.matrix?res:matrix(res)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitAnd.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return createBitAnd}});var _utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo06xS0S0.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/bitwise.js"),dependencies=["typed","matrix","equalScalar","concat"],createBitAnd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bitAnd",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo06xS0S0=(0,_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__.X)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("bitAnd",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.qC,"BigNumber, BigNumber":_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__.hi},matrixAlgorithmSuite({SS:matAlgo06xS0S0,DS:matAlgo02xDS0,Ss:matAlgo11xS0s}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitNot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{e:function(){return createBitNot}});var _utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/bitwise.js"),dependencies=["typed"],createBitNot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bitNot",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("bitNot",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.NA,BigNumber:_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_2__.Xc,"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitOr.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j:function(){return createBitOr}});var _utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo04xSidSid.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/bitwise.js"),dependencies=["typed","matrix","equalScalar","DenseMatrix","concat"],createBitOr=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bitOr",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo04xSidSid=(0,_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_3__.H)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("bitOr",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.LE,"BigNumber, BigNumber":_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__.Vq},matrixAlgorithmSuite({SS:matAlgo04xSidSid,DS:matAlgo01xDSid,Ss:matAlgo10xSids}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitXor.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{g:function(){return createBitXor}});var _utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/bitwise.js"),dependencies=["typed","matrix","DenseMatrix","concat"],createBitXor=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bitXor",dependencies,(_ref=>{var{typed:typed,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("bitXor",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.xS,"BigNumber, BigNumber":_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__.nN},matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/leftShift.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return createLeftShift}});var _type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo08xS0Sid.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/useMatrixForArrayScalar.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/bitwise.js"),_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),dependencies=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],createLeftShift=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("leftShift",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo08xS0Sid=(0,_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__.i)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__.H)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__.R)({typed:typed}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__.L)({typed:typed,matrix:matrix,concat:concat}),useMatrixForArrayScalar=(0,_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__.H)({typed:typed,matrix:matrix});return typed("leftShift",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__.ZG,"BigNumber, BigNumber":_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_10__.Mw,"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo14xDs(x,y,self,!1))),"number | BigNumber, SparseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo10xSids(y,x,self,!0))),"number | BigNumber, DenseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo14xDs(y,x,self,!0)))},useMatrixForArrayScalar,matrixAlgorithmSuite({SS:matAlgo08xS0Sid,DS:matAlgo01xDSid,SD:matAlgo02xDS0}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/rightArithShift.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:function(){return createRightArithShift}});var _utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo08xS0Sid.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/useMatrixForArrayScalar.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/bitwise.js"),name="rightArithShift",dependencies=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],createRightArithShift=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo08xS0Sid=(0,_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__.i)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__.H)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__.R)({typed:typed}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__.L)({typed:typed,matrix:matrix,concat:concat}),useMatrixForArrayScalar=(0,_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__.H)({typed:typed,matrix:matrix});return typed(name,{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__.Lz,"BigNumber, BigNumber":_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_10__.ti,"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo14xDs(x,y,self,!1))),"number | BigNumber, SparseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo10xSids(y,x,self,!0))),"number | BigNumber, DenseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo14xDs(y,x,self,!0)))},useMatrixForArrayScalar,matrixAlgorithmSuite({SS:matAlgo08xS0Sid,DS:matAlgo01xDSid,SD:matAlgo02xDS0}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/rightLogShift.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createRightLogShift}});var _type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo08xS0Sid.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/bitwise.js"),_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/useMatrixForArrayScalar.js"),name="rightLogShift",dependencies=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],createRightLogShift=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo08xS0Sid=(0,_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__.i)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__.H)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__.R)({typed:typed}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__.L)({typed:typed,matrix:matrix,concat:concat}),useMatrixForArrayScalar=(0,_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__.H)({typed:typed,matrix:matrix});return typed(name,{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__.ji,"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo14xDs(x,y,self,!1))),"number | BigNumber, SparseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo10xSids(y,x,self,!0))),"number | BigNumber, DenseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo14xDs(y,x,self,!0)))},useMatrixForArrayScalar,matrixAlgorithmSuite({SS:matAlgo08xS0Sid,DS:matAlgo01xDSid,SD:matAlgo02xDS0}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/useMatrixForArrayScalar.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return createUseMatrixForArrayScalar}});var createUseMatrixForArrayScalar=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("useMatrixForArrayScalar",["typed","matrix"],(_ref=>{var{typed:typed,matrix:matrix}=_ref;return{"Array, number":typed.referTo("DenseMatrix, number",(selfDn=>(x,y)=>selfDn(matrix(x),y).valueOf())),"Array, BigNumber":typed.referTo("DenseMatrix, BigNumber",(selfDB=>(x,y)=>selfDB(matrix(x),y).valueOf())),"number, Array":typed.referTo("number, DenseMatrix",(selfnD=>(x,y)=>selfnD(x,matrix(y)).valueOf())),"BigNumber, Array":typed.referTo("BigNumber, DenseMatrix",(selfBD=>(x,y)=>selfBD(x,matrix(y)).valueOf()))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/bellNumbers.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createBellNumbers}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","addScalar","isNegative","isInteger","stirlingS2"],createBellNumbers=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bellNumbers",dependencies,(_ref=>{var{typed:typed,addScalar:addScalar,isNegative:isNegative,isInteger:isInteger,stirlingS2:stirlingS2}=_ref;return typed("bellNumbers",{"number | BigNumber":function numberBigNumber(n){if(!isInteger(n)||isNegative(n))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var result=0,i=0;i<=n;i++)result=addScalar(result,stirlingS2(n,i));return result}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/catalan.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return createCatalan}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],createCatalan=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("catalan",dependencies,(_ref=>{var{typed:typed,addScalar:addScalar,divideScalar:divideScalar,multiplyScalar:multiplyScalar,combinations:combinations,isNegative:isNegative,isInteger:isInteger}=_ref;return typed("catalan",{"number | BigNumber":function numberBigNumber(n){if(!isInteger(n)||isNegative(n))throw new TypeError("Non-negative integer value expected in function catalan");return divideScalar(combinations(multiplyScalar(n,2),n),addScalar(n,1))}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/composition.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createComposition}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],createComposition=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("composition",dependencies,(_ref=>{var{typed:typed,addScalar:addScalar,combinations:combinations,isPositive:isPositive,isNegative:isNegative,isInteger:isInteger,larger:larger}=_ref;return typed("composition",{"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(n,k){if(!(isInteger(n)&&isPositive(n)&&isInteger(k)&&isPositive(k)))throw new TypeError("Positive integer value expected in function composition");if(larger(k,n))throw new TypeError("k must be less than or equal to n in function composition");return combinations(addScalar(n,-1),addScalar(k,-1))}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/stirlingS2.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createStirlingS2}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),dependencies=["typed","addScalar","subtractScalar","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","number","?bignumber","larger"],createStirlingS2=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("stirlingS2",dependencies,(_ref=>{var{typed:typed,addScalar:addScalar,subtractScalar:subtractScalar,multiplyScalar:multiplyScalar,divideScalar:divideScalar,pow:pow,factorial:factorial,combinations:combinations,isNegative:isNegative,isInteger:isInteger,number:number,bignumber:bignumber,larger:larger}=_ref,smallCache=[],bigCache=[];return typed("stirlingS2",{"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(n,k){if(!isInteger(n)||isNegative(n)||!isInteger(k)||isNegative(k))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(larger(k,n))throw new TypeError("k must be less than or equal to n in function stirlingS2");var big=!((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(n)&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(k)),cache=big?bigCache:smallCache,make=big?bignumber:number,nn=number(n),nk=number(k);if(cache[nn]&&cache[nn].length>nk)return cache[nn][nk];for(var m=0;m<=nn;++m)if(cache[m]||(cache[m]=[make(0===m?1:0)]),0!==m)for(var row=cache[m],prev=cache[m-1],i=row.length;i<=m&&i<=nk;++i)row[i]=i===m?1:addScalar(multiplyScalar(make(i),prev[i]),prev[i-1]);return cache[nn][nk]}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/arg.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return createArg}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"],createArg=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("arg",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("arg",{number:function number(x){return Math.atan2(0,x)},BigNumber:function BigNumber(x){return x.constructor.atan2(0,x)},Complex:function Complex(x){return x.arg()},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/conj.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return createConj}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"],createConj=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("conj",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("conj",{"number | BigNumber | Fraction":x=>x,Complex:x=>x.conjugate(),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/im.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{R:function(){return createIm}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"],createIm=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("im",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("im",{number:()=>0,"BigNumber | Fraction":x=>x.mul(0),Complex:x=>x.im,"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/re.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{m:function(){return createRe}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"],createRe=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("re",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("re",{"number | BigNumber | Fraction":x=>x,Complex:x=>x.re,"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/geometry/distance.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createDistance}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","addScalar","subtractScalar","divideScalar","multiplyScalar","deepEqual","sqrt","abs"],createDistance=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("distance",dependencies,(_ref=>{var{typed:typed,addScalar:addScalar,subtractScalar:subtractScalar,multiplyScalar:multiplyScalar,divideScalar:divideScalar,deepEqual:deepEqual,sqrt:sqrt,abs:abs}=_ref;return typed("distance",{"Array, Array, Array":function ArrayArrayArray(x,y,z){if(2===x.length&&2===y.length&&2===z.length){if(!_2d(x))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!_2d(y))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!_2d(z))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(deepEqual(y,z))throw new TypeError("LinePoint1 should not be same with LinePoint2");var xCoeff=subtractScalar(z[1],y[1]),yCoeff=subtractScalar(y[0],z[0]),constant=subtractScalar(multiplyScalar(z[0],y[1]),multiplyScalar(y[0],z[1]));return _distancePointLine2D(x[0],x[1],xCoeff,yCoeff,constant)}throw new TypeError("Invalid Arguments: Try again")},"Object, Object, Object":function ObjectObjectObject(x,y,z){if(2===Object.keys(x).length&&2===Object.keys(y).length&&2===Object.keys(z).length){if(!_2d(x))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!_2d(y))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!_2d(z))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if(deepEqual(_objectToArray(y),_objectToArray(z)))throw new TypeError("LinePoint1 should not be same with LinePoint2");if("pointX"in x&&"pointY"in x&&"lineOnePtX"in y&&"lineOnePtY"in y&&"lineTwoPtX"in z&&"lineTwoPtY"in z){var xCoeff=subtractScalar(z.lineTwoPtY,y.lineOnePtY),yCoeff=subtractScalar(y.lineOnePtX,z.lineTwoPtX),constant=subtractScalar(multiplyScalar(z.lineTwoPtX,y.lineOnePtY),multiplyScalar(y.lineOnePtX,z.lineTwoPtY));return _distancePointLine2D(x.pointX,x.pointY,xCoeff,yCoeff,constant)}throw new TypeError("Key names do not match")}throw new TypeError("Invalid Arguments: Try again")},"Array, Array":function ArrayArray(x,y){if(2===x.length&&3===y.length){if(!_2d(x))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!_3d(y))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return _distancePointLine2D(x[0],x[1],y[0],y[1],y[2])}if(3===x.length&&6===y.length){if(!_3d(x))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!_parametricLine(y))throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument");return _distancePointLine3D(x[0],x[1],x[2],y[0],y[1],y[2],y[3],y[4],y[5])}if(x.length===y.length&&x.length>0){if(!_containsOnlyNumbers(x))throw new TypeError("All values of an array should be numbers or BigNumbers");if(!_containsOnlyNumbers(y))throw new TypeError("All values of an array should be numbers or BigNumbers");return _euclideanDistance(x,y)}throw new TypeError("Invalid Arguments: Try again")},"Object, Object":function ObjectObject(x,y){if(2===Object.keys(x).length&&3===Object.keys(y).length){if(!_2d(x))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!_3d(y))throw new TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if("pointX"in x&&"pointY"in x&&"xCoeffLine"in y&&"yCoeffLine"in y&&"constant"in y)return _distancePointLine2D(x.pointX,x.pointY,y.xCoeffLine,y.yCoeffLine,y.constant);throw new TypeError("Key names do not match")}if(3===Object.keys(x).length&&6===Object.keys(y).length){if(!_3d(x))throw new TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!_parametricLine(y))throw new TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if("pointX"in x&&"pointY"in x&&"x0"in y&&"y0"in y&&"z0"in y&&"a"in y&&"b"in y&&"c"in y)return _distancePointLine3D(x.pointX,x.pointY,x.pointZ,y.x0,y.y0,y.z0,y.a,y.b,y.c);throw new TypeError("Key names do not match")}if(2===Object.keys(x).length&&2===Object.keys(y).length){if(!_2d(x))throw new TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!_2d(y))throw new TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if("pointOneX"in x&&"pointOneY"in x&&"pointTwoX"in y&&"pointTwoY"in y)return _euclideanDistance([x.pointOneX,x.pointOneY],[y.pointTwoX,y.pointTwoY]);throw new TypeError("Key names do not match")}if(3===Object.keys(x).length&&3===Object.keys(y).length){if(!_3d(x))throw new TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!_3d(y))throw new TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if("pointOneX"in x&&"pointOneY"in x&&"pointOneZ"in x&&"pointTwoX"in y&&"pointTwoY"in y&&"pointTwoZ"in y)return _euclideanDistance([x.pointOneX,x.pointOneY,x.pointOneZ],[y.pointTwoX,y.pointTwoY,y.pointTwoZ]);throw new TypeError("Key names do not match")}throw new TypeError("Invalid Arguments: Try again")},Array:function Array(arr){if(!function _pairwise(a){if(2===a[0].length&&_isNumber(a[0][0])&&_isNumber(a[0][1])){if(a.some((aI=>2!==aI.length||!_isNumber(aI[0])||!_isNumber(aI[1]))))return!1}else{if(!(3===a[0].length&&_isNumber(a[0][0])&&_isNumber(a[0][1])&&_isNumber(a[0][2])))return!1;if(a.some((aI=>3!==aI.length||!_isNumber(aI[0])||!_isNumber(aI[1])||!_isNumber(aI[2]))))return!1}return!0}(arr))throw new TypeError("Incorrect array format entered for pairwise distance calculation");return function _distancePairwise(a){for(var result=[],pointA=[],pointB=[],i=0;i{var{typed:typed,config:config,abs:abs,add:add,addScalar:addScalar,matrix:matrix,multiply:multiply,multiplyScalar:multiplyScalar,divideScalar:divideScalar,subtract:subtract,smaller:smaller,equalScalar:equalScalar,flatten:flatten,isZero:isZero,isNumeric:isNumeric}=_ref;return typed("intersect",{"Array, Array, Array":_AAA,"Array, Array, Array, Array":_AAAA,"Matrix, Matrix, Matrix":function MatrixMatrixMatrix(x,y,plane){var arr=_AAA(x.valueOf(),y.valueOf(),plane.valueOf());return null===arr?null:matrix(arr)},"Matrix, Matrix, Matrix, Matrix":function MatrixMatrixMatrixMatrix(w,x,y,z){var arr=_AAAA(w.valueOf(),x.valueOf(),y.valueOf(),z.valueOf());return null===arr?null:matrix(arr)}});function _AAA(x,y,plane){if(x=_coerceArr(x),y=_coerceArr(y),plane=_coerceArr(plane),!_3d(x))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!_3d(y))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!function _4d(x){return 4===x.length&&isNumeric(x[0])&&isNumeric(x[1])&&isNumeric(x[2])&&isNumeric(x[3])}(plane))throw new TypeError("Array with 4 numbers expected as third argument");return function _intersectLinePlane(x1,y1,z1,x2,y2,z2,x,y,z,c){var x1x=multiplyScalar(x1,x),x2x=multiplyScalar(x2,x),y1y=multiplyScalar(y1,y),y2y=multiplyScalar(y2,y),z1z=multiplyScalar(z1,z),z2z=multiplyScalar(z2,z),numerator=subtract(subtract(subtract(c,x1x),y1y),z1z),denominator=subtract(subtract(subtract(addScalar(addScalar(x2x,y2y),z2z),x1x),y1y),z1z),t=divideScalar(numerator,denominator),px=addScalar(x1,multiplyScalar(t,subtract(x2,x1))),py=addScalar(y1,multiplyScalar(t,subtract(y2,y1))),pz=addScalar(z1,multiplyScalar(t,subtract(z2,z1)));return[px,py,pz]}(x[0],x[1],x[2],y[0],y[1],y[2],plane[0],plane[1],plane[2],plane[3])}function _AAAA(w,x,y,z){if(w=_coerceArr(w),x=_coerceArr(x),y=_coerceArr(y),z=_coerceArr(z),2===w.length){if(!_2d(w))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!_2d(x))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!_2d(y))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!_2d(z))throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return function _intersect2d(p1a,p1b,p2a,p2b){var o1=p1a,o2=p2a,d1=subtract(o1,p1b),d2=subtract(o2,p2b),det=subtract(multiplyScalar(d1[0],d2[1]),multiplyScalar(d2[0],d1[1]));if(isZero(det))return null;if(smaller(abs(det),config.epsilon))return null;var d20o11=multiplyScalar(d2[0],o1[1]),d21o10=multiplyScalar(d2[1],o1[0]),d20o21=multiplyScalar(d2[0],o2[1]),d21o20=multiplyScalar(d2[1],o2[0]),t=divideScalar(addScalar(subtract(subtract(d20o11,d21o10),d20o21),d21o20),det);return add(multiply(d1,t),o1)}(w,x,y,z)}if(3===w.length){if(!_3d(w))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!_3d(x))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!_3d(y))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!_3d(z))throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return function _intersect3d(x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4){var d1343=_intersect3dHelper(x1,x3,x4,x3,y1,y3,y4,y3,z1,z3,z4,z3),d4321=_intersect3dHelper(x4,x3,x2,x1,y4,y3,y2,y1,z4,z3,z2,z1),d1321=_intersect3dHelper(x1,x3,x2,x1,y1,y3,y2,y1,z1,z3,z2,z1),d4343=_intersect3dHelper(x4,x3,x4,x3,y4,y3,y4,y3,z4,z3,z4,z3),d2121=_intersect3dHelper(x2,x1,x2,x1,y2,y1,y2,y1,z2,z1,z2,z1),numerator=subtract(multiplyScalar(d1343,d4321),multiplyScalar(d1321,d4343)),denominator=subtract(multiplyScalar(d2121,d4343),multiplyScalar(d4321,d4321));if(isZero(denominator))return null;var ta=divideScalar(numerator,denominator),tb=divideScalar(addScalar(d1343,multiplyScalar(ta,d4321)),d4343),pax=addScalar(x1,multiplyScalar(ta,subtract(x2,x1))),pay=addScalar(y1,multiplyScalar(ta,subtract(y2,y1))),paz=addScalar(z1,multiplyScalar(ta,subtract(z2,z1))),pbx=addScalar(x3,multiplyScalar(tb,subtract(x4,x3))),pby=addScalar(y3,multiplyScalar(tb,subtract(y4,y3))),pbz=addScalar(z3,multiplyScalar(tb,subtract(z4,z3)));return equalScalar(pax,pbx)&&equalScalar(pay,pby)&&equalScalar(paz,pbz)?[pax,pay,paz]:null}(w[0],w[1],w[2],x[0],x[1],x[2],y[0],y[1],y[2],z[0],z[1],z[2])}throw new TypeError("Arrays with two or thee dimensional points expected")}function _coerceArr(arr){return 1===arr.length?arr[0]:arr.length>1&&Array.isArray(arr[0])&&arr.every((el=>Array.isArray(el)&&1===el.length))?flatten(arr):arr}function _2d(x){return 2===x.length&&isNumeric(x[0])&&isNumeric(x[1])}function _3d(x){return 3===x.length&&isNumeric(x[0])&&isNumeric(x[1])&&isNumeric(x[2])}function _intersect3dHelper(a,b,c,d,e,f,g,h,i,j,k,l){var add1=multiplyScalar(subtract(a,b),subtract(c,d)),add2=multiplyScalar(subtract(e,f),subtract(g,h)),add3=multiplyScalar(subtract(i,j),subtract(k,l));return addScalar(addScalar(add1,add2),add3)}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/and.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{I:function(){return createAnd}});var _type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo06xS0S0.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/logical.js"),dependencies=["typed","matrix","equalScalar","zeros","not","concat"],createAnd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("and",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,not:not,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo06xS0S0=(0,_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__.X)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_4__.R)({typed:typed}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__.L)({typed:typed,matrix:matrix,concat:concat});return typed("and",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_6__.FO,"Complex, Complex":function ComplexComplex(x,y){return!(0===x.re&&0===x.im||0===y.re&&0===y.im)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return!(x.isZero()||y.isZero()||x.isNaN()||y.isNaN())},"Unit, Unit":typed.referToSelf((self=>(x,y)=>self(x.value||0,y.value||0))),"SparseMatrix, any":typed.referToSelf((self=>(x,y)=>not(y)?zeros(x.size(),x.storage()):matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, any":typed.referToSelf((self=>(x,y)=>not(y)?zeros(x.size(),x.storage()):matAlgo14xDs(x,y,self,!1))),"any, SparseMatrix":typed.referToSelf((self=>(x,y)=>not(x)?zeros(x.size(),x.storage()):matAlgo11xS0s(y,x,self,!0))),"any, DenseMatrix":typed.referToSelf((self=>(x,y)=>not(x)?zeros(x.size(),x.storage()):matAlgo14xDs(y,x,self,!0))),"Array, any":typed.referToSelf((self=>(x,y)=>self(matrix(x),y).valueOf())),"any, Array":typed.referToSelf((self=>(x,y)=>self(x,matrix(y)).valueOf()))},matrixAlgorithmSuite({SS:matAlgo06xS0S0,DS:matAlgo02xDS0}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/not.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return createNot}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/logical.js"),dependencies=["typed"],createNot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("not",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("not",{"null | undefined":()=>!0,number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.xY,Complex:function Complex(x){return 0===x.re&&0===x.im},BigNumber:function BigNumber(x){return x.isZero()||x.isNaN()},Unit:typed.referToSelf((self=>x=>typed.find(self,x.valueType())(x.value))),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/or.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return createOr}});var _type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo05xSfSf.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/logical.js"),dependencies=["typed","matrix","equalScalar","DenseMatrix","concat"],createOr=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("or",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo05xSfSf=(0,_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_2__.b)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("or",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.RY,"Complex, Complex":function ComplexComplex(x,y){return 0!==x.re||0!==x.im||0!==y.re||0!==y.im},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return!x.isZero()&&!x.isNaN()||!y.isZero()&&!y.isNaN()},"Unit, Unit":typed.referToSelf((self=>(x,y)=>self(x.value||0,y.value||0)))},matrixAlgorithmSuite({SS:matAlgo05xSfSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/xor.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return createXor}});var _type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/logical.js"),dependencies=["typed","matrix","DenseMatrix","concat"],createXor=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("xor",dependencies,(_ref=>{var{typed:typed,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("xor",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.kl,"Complex, Complex":function ComplexComplex(x,y){return(0!==x.re||0!==x.im)!=(0!==y.re||0!==y.im)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return(!x.isZero()&&!x.isNaN())!=(!y.isZero()&&!y.isNaN())},"Unit, Unit":typed.referToSelf((self=>(x,y)=>self(x.value||0,y.value||0)))},matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/apply.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j:function(){return createApply}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/IndexError.js"),dependencies=["typed","isInteger"],createApply=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("apply",dependencies,(_ref=>{var{typed:typed,isInteger:isInteger}=_ref;return typed("apply",{"Array | Matrix, number | BigNumber, function":function ArrayMatrixNumberBigNumberFunction(mat,dim,callback){if(!isInteger(dim))throw new TypeError("Integer number expected for dimension");var size=Array.isArray(mat)?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(mat):mat.size();if(dim<0||dim>=size.length)throw new _error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__.c(dim,size.length);return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(mat)?mat.create(_apply(mat.valueOf(),dim,callback)):_apply(mat,dim,callback)}})}));function _apply(mat,dim,callback){var i,ret,tran;if(dim<=0){if(Array.isArray(mat[0])){for(tran=function _switch(mat){var i,j,I=mat.length,J=mat[0].length,ret=[];for(j=0;j{var{typed:typed,Index:Index,matrix:matrix,range:range}=_ref;return typed("column",{"Matrix, number":_column,"Array, number":function ArrayNumber(value,column){return _column(matrix((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(value)),column).valueOf()}});function _column(value,column){if(2!==value.size().length)throw new Error("Only two dimensional matrix is supported");(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.Ls)(column,value.size()[1]);var rowRange=range(0,value.size()[0]),index=new Index(rowRange,column),result=value.subset(index);return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(result)?result:matrix([[result]])}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/concat.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return createConcat}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/IndexError.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/DimensionError.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","isInteger"],createConcat=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("concat",dependencies,(_ref=>{var{typed:typed,matrix:matrix,isInteger:isInteger}=_ref;return typed("concat",{"...Array | Matrix | number | BigNumber":function ArrayMatrixNumberBigNumber(args){var i,prevDim,len=args.length,dim=-1,asMatrix=!1,matrices=[];for(i=0;i0&&dim>prevDim)throw new _error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__.c(dim,prevDim+1)}else{var m=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_3__.d9)(arg).valueOf(),size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_4__.aJ)(m);if(matrices[i]=m,prevDim=dim,dim=size.length-1,i>0&&dim!==prevDim)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_5__.m(prevDim+1,dim+1)}}if(0===matrices.length)throw new SyntaxError("At least one matrix expected");for(var res=matrices.shift();matrices.length;)res=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_4__.zo)(res,matrices.shift(),dim);return asMatrix?matrix(res):res},"...string":function string(args){return args.join("")}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/count.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{l:function(){return createCount}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","size","prod"],createCount=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("count",dependencies,(_ref=>{var{typed:typed,size:size,prod:prod}=_ref;return typed("count",{string:function string(x){return x.length},"Matrix | Array":function MatrixArray(x){return prod(size(x))}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/cross.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return createCross}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","subtract","multiply"],createCross=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cross",dependencies,(_ref=>{var{typed:typed,matrix:matrix,subtract:subtract,multiply:multiply}=_ref;return typed("cross",{"Matrix, Matrix":function MatrixMatrix(x,y){return matrix(_cross(x.toArray(),y.toArray()))},"Matrix, Array":function MatrixArray(x,y){return matrix(_cross(x.toArray(),y))},"Array, Matrix":function ArrayMatrix(x,y){return matrix(_cross(x,y.toArray()))},"Array, Array":_cross});function _cross(x,y){var highestDimension=Math.max((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x).length,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(y).length);x=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.L9)(x),y=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.L9)(y);var xSize=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),ySize=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(y);if(1!==xSize.length||1!==ySize.length||3!==xSize[0]||3!==ySize[0])throw new RangeError("Vectors with length 3 expected (Size A = ["+xSize.join(", ")+"], B = ["+ySize.join(", ")+"])");var product=[subtract(multiply(x[1],y[2]),multiply(x[2],y[1])),subtract(multiply(x[2],y[0]),multiply(x[0],y[2])),subtract(multiply(x[0],y[1]),multiply(x[1],y[0]))];return highestDimension>1?[product]:product}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/ctranspose.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{t:function(){return createCtranspose}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","transpose","conj"],createCtranspose=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("ctranspose",dependencies,(_ref=>{var{typed:typed,transpose:transpose,conj:conj}=_ref;return typed("ctranspose",{any:function any(x){return conj(transpose(x))}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/det.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{S:function(){return createDet}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","subtractScalar","multiply","divideScalar","isZero","unaryMinus"],createDet=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("det",dependencies,(_ref=>{var{typed:typed,matrix:matrix,subtractScalar:subtractScalar,multiply:multiply,divideScalar:divideScalar,isZero:isZero,unaryMinus:unaryMinus}=_ref;return typed("det",{any:function any(x){return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(x)},"Array | Matrix":function det(x){var size;switch((size=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(x)?x.size():Array.isArray(x)?(x=matrix(x)).size():[]).length){case 0:return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(x);case 1:if(1===size[0])return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(x.valueOf()[0]);if(0===size[0])return 1;throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")");case 2:var rows=size[0],cols=size[1];if(rows===cols)return function _det(matrix,rows,cols){if(1===rows)return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(matrix[0][0]);if(2===rows)return subtractScalar(multiply(matrix[0][0],matrix[1][1]),multiply(matrix[1][0],matrix[0][1]));for(var negated=!1,rowIndices=new Array(rows).fill(0).map(((_,i)=>i)),k=0;k{var{typed:typed,matrix:matrix,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix}=_ref;return typed("diag",{Array:function Array(x){return _diag(x,0,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),null)},"Array, number":function ArrayNumber(x,k){return _diag(x,k,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),null)},"Array, BigNumber":function ArrayBigNumber(x,k){return _diag(x,k.toNumber(),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),null)},"Array, string":function ArrayString(x,format){return _diag(x,0,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),format)},"Array, number, string":function ArrayNumberString(x,k,format){return _diag(x,k,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),format)},"Array, BigNumber, string":function ArrayBigNumberString(x,k,format){return _diag(x,k.toNumber(),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),format)},Matrix:function Matrix(x){return _diag(x,0,x.size(),x.storage())},"Matrix, number":function MatrixNumber(x,k){return _diag(x,k,x.size(),x.storage())},"Matrix, BigNumber":function MatrixBigNumber(x,k){return _diag(x,k.toNumber(),x.size(),x.storage())},"Matrix, string":function MatrixString(x,format){return _diag(x,0,x.size(),format)},"Matrix, number, string":function MatrixNumberString(x,k,format){return _diag(x,k,x.size(),format)},"Matrix, BigNumber, string":function MatrixBigNumberString(x,k,format){return _diag(x,k.toNumber(),x.size(),format)}});function _diag(x,k,size,format){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.U)(k))throw new TypeError("Second parameter in function diag must be an integer");var kSuper=k>0?k:0,kSub=k<0?-k:0;switch(size.length){case 1:return function _createDiagonalMatrix(x,k,format,l,kSub,kSuper){var ms=[l+kSub,l+kSuper];if(format&&"sparse"!==format&&"dense"!==format)throw new TypeError("Unknown matrix type ".concat(format,'"'));var m="sparse"===format?SparseMatrix.diagonal(ms,x,k):DenseMatrix.diagonal(ms,x,k);return null!==format?m:m.valueOf()}(x,k,format,size[0],kSub,kSuper);case 2:return function _getDiagonal(x,k,format,s,kSub,kSuper){if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(x)){var dm=x.diagonal(k);return null!==format?format!==dm.storage()?matrix(dm,format):dm:dm.valueOf()}for(var n=Math.min(s[0]-kSub,s[1]-kSuper),vector=[],i=0;i{var{typed:typed,matrix:matrix,subtract:subtract,number:number}=_ref;return typed("diff",{"Array | Matrix":function ArrayMatrix(arr){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(arr)?matrix(_diff(arr.toArray())):_diff(arr)},"Array | Matrix, number":function ArrayMatrixNumber(arr,dim){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.U)(dim))throw new RangeError("Dimension must be a whole number");return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(arr)?matrix(_recursive(arr.toArray(),dim)):_recursive(arr,dim)},"Array, BigNumber":typed.referTo("Array,number",(selfAn=>(arr,dim)=>selfAn(arr,number(dim)))),"Matrix, BigNumber":typed.referTo("Matrix,number",(selfMn=>(arr,dim)=>selfMn(arr,number(dim))))});function _recursive(arr,dim){if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(arr)&&(arr=arr.toArray()),!Array.isArray(arr))throw RangeError("Array/Matrix does not have that many dimensions");if(dim>0){var result=[];return arr.forEach((element=>{result.push(_recursive(element,dim-1))})),result}if(0===dim)return _diff(arr);throw RangeError("Cannot have negative dimension")}function _diff(arr){for(var result=[],size=arr.length,i=1;i{var{typed:typed,addScalar:addScalar,multiplyScalar:multiplyScalar,conj:conj,size:size}=_ref;return typed("dot",{"Array | DenseMatrix, Array | DenseMatrix":function _denseDot(a,b){var N=_validateDim(a,b),adata=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(a)?a._data:a,adt=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(a)?a._datatype||a.getDataType():void 0,bdata=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(b)?b._data:b,bdt=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(b)?b._datatype||b.getDataType():void 0,aIsColumn=2===_size(a).length,bIsColumn=2===_size(b).length,add=addScalar,mul=multiplyScalar;if(adt&&bdt&&adt===bdt&&"string"==typeof adt&&"mixed"!==adt){var dt=adt;add=typed.find(addScalar,[dt,dt]),mul=typed.find(multiplyScalar,[dt,dt])}if(!aIsColumn&&!bIsColumn){for(var c=mul(conj(adata[0]),bdata[0]),i=1;iJ?j++:I===J&&(c=add(c,mul(xvalues[i],yvalues[j])),i++,j++)}return c}});function _validateDim(x,y){var xLen,yLen,xSize=_size(x),ySize=_size(y);if(1===xSize.length)xLen=xSize[0];else{if(2!==xSize.length||1!==xSize[1])throw new RangeError("Expected a column vector, instead got a matrix of size ("+xSize.join(", ")+")");xLen=xSize[0]}if(1===ySize.length)yLen=ySize[0];else{if(2!==ySize.length||1!==ySize[1])throw new RangeError("Expected a column vector, instead got a matrix of size ("+ySize.join(", ")+")");yLen=ySize[0]}if(xLen!==yLen)throw new RangeError("Vectors must have equal length ("+xLen+" != "+yLen+")");if(0===xLen)throw new RangeError("Cannot calculate the dot product of empty vectors");return xLen}function _size(x){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?x.size():size(x)}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/eigs.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return createEigs}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),factory=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),string=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),object=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js");function createComplexEigs(_ref){var{addScalar:addScalar,subtract:subtract,flatten:flatten,multiply:multiply,multiplyScalar:multiplyScalar,divideScalar:divideScalar,sqrt:sqrt,abs:abs,bignumber:bignumber,diag:diag,size:size,reshape:reshape,inv:inv,qr:qr,usolve:usolve,usolveAll:usolveAll,equal:equal,complex:complex,larger:larger,smaller:smaller,matrixFromColumns:matrixFromColumns,dot:dot}=_ref;function eigenvalues2x2(a,b,c,d){var trA=addScalar(a,d),detA=subtract(multiplyScalar(a,d),multiplyScalar(b,c)),x=multiplyScalar(trA,.5),y=multiplyScalar(sqrt(subtract(multiplyScalar(trA,trA),multiplyScalar(4,detA))),.5);return[addScalar(x,y),subtract(x,y)]}function jordanBase2x2(a,b,c,d,l1,l2,prec,type){var big="BigNumber"===type,cplx="Complex"===type,zero=big?bignumber(0):cplx?complex(0):0,one=big?bignumber(1):cplx?complex(1):1;if(smaller(abs(c),prec))return[[one,zero],[zero,one]];if(larger(abs(subtract(l1,l2)),prec))return[[subtract(l1,d),subtract(l2,d)],[c,c]];var na=subtract(a,l1),nd=subtract(d,l1);return smaller(abs(b),prec)&&smaller(abs(nd),prec)?[[na,one],[c,zero]]:[[b,zero],[nd,one]]}function inflateMatrix(arr,N){for(var i=0;i=5)return null;for(i=0;;){var c=usolve(A,b);if(smaller(norm(orthogonalComplement(b,[c])),prec))break;if(++i>=10)return null;b=normalize(c)}return b}function randomOrthogonalVector(N,orthog,type){var big="BigNumber"===type,cplx="Complex"===type,v=Array(N).fill(0).map((_=>2*Math.random()-1));return big&&(v=v.map((n=>bignumber(n)))),cplx&&(v=v.map((n=>complex(n)))),normalize(v=orthogonalComplement(v,orthog),type)}function orthogonalComplement(v,orthog){var vectorShape=size(v);for(var w of orthog)w=reshape(w,vectorShape),v=subtract(v,multiply(divideScalar(dot(w,v),dot(w,w)),w));return v}function norm(v){return abs(sqrt(dot(v,v)))}function normalize(v,type){var cplx="Complex"===type,one="BigNumber"===type?bignumber(1):cplx?complex(1):1;return multiply(divideScalar(one,norm(v)),v)}return function complexEigs(arr,N,prec,type){var findVectors=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],R=function balance(arr,N,prec,type,findVectors){var Rdiag,big="BigNumber"===type,cplx="Complex"===type,realzero=big?bignumber(0):0,one=big?bignumber(1):cplx?complex(1):1,realone=big?bignumber(1):1,radix=big?bignumber(10):2,radixSq=multiplyScalar(radix,radix);findVectors&&(Rdiag=Array(N).fill(one));var last=!1;for(;!last;){last=!0;for(var i=0;i1&&(Qpartial=diag(Array(n-1).fill(one)))),n-=1,arr.pop();for(var _i2=0;_i22&&(Qpartial=diag(Array(n-2).fill(one)))),n-=2,arr.pop(),arr.pop();for(var _i3=0;_i3+subtract(abs(a),abs(b)))),lastConvergenceBefore>100){var err=Error("The eigenvalues failed to converge. Only found these eigenvalues: "+lambdas.join(", "));throw err.values=lambdas,err.vectors=[],err}var C=findVectors?multiply(Qtotal,function blockDiag(arr,N){for(var M=[],i=0;imultiply(correction,v))),vectors.push(...solutions.map((v=>({value:lambda,vector:flatten(v)}))))},_i4=0;_i4({value:values[i],vector:vector})));return{values:values,eigenvectors:eigenvectors}}return function main(arr,N){var prec=arguments.length>2&&void 0!==arguments[2]?arguments[2]:config.epsilon,type=arguments.length>3?arguments[3]:void 0,computeVectors=arguments.length>4?arguments[4]:void 0;if("number"===type)return function diag(x,precision,computeVectors){var psi,Sij,N=x.length,e0=Math.abs(precision/N);if(computeVectors){Sij=new Array(N);for(var i=0;i=Math.abs(e0);){var _i=Vab[0][0],j=Vab[0][1];x=x1(x,psi=getTheta(x[_i][_i],x[j][j],x[_i][j]),_i,j),computeVectors&&(Sij=Sij1(Sij,psi,_i,j)),Vab=getAij(x)}for(var Ei=Array(N).fill(0),_i2=0;_i2=abs(e0);){var _i3=Vab[0][0],j=Vab[0][1];x=x1Big(x,psi=getThetaBig(x[_i3][_i3],x[j][j],x[_i3][j]),_i3,j),computeVectors&&(Sij=Sij1Big(Sij,psi,_i3,j)),Vab=getAijBig(x)}for(var Ei=Array(N).fill(0),_i4=0;_i4{var{config:config,typed:typed,matrix:matrix,addScalar:addScalar,subtract:subtract,equal:equal,abs:abs,atan:atan,cos:cos,sin:sin,multiplyScalar:multiplyScalar,divideScalar:divideScalar,inv:inv,bignumber:bignumber,multiply:multiply,add:add,larger:larger,column:column,flatten:flatten,number:number,complex:complex,sqrt:sqrt,diag:diag,size:size,reshape:reshape,qr:qr,usolve:usolve,usolveAll:usolveAll,im:im,re:re,smaller:smaller,matrixFromColumns:matrixFromColumns,dot:dot}=_ref,doRealSymmetric=createRealSymmetric({config:config,addScalar:addScalar,subtract:subtract,column:column,flatten:flatten,equal:equal,abs:abs,atan:atan,cos:cos,sin:sin,multiplyScalar:multiplyScalar,inv:inv,bignumber:bignumber,complex:complex,multiply:multiply,add:add}),doComplexEigs=createComplexEigs({config:config,addScalar:addScalar,subtract:subtract,multiply:multiply,multiplyScalar:multiplyScalar,flatten:flatten,divideScalar:divideScalar,sqrt:sqrt,abs:abs,bignumber:bignumber,diag:diag,size:size,reshape:reshape,qr:qr,inv:inv,usolve:usolve,usolveAll:usolveAll,equal:equal,complex:complex,larger:larger,smaller:smaller,matrixFromColumns:matrixFromColumns,dot:dot});return typed("eigs",{Array:function Array(x){return doEigs(matrix(x))},"Array, number|BigNumber":function ArrayNumberBigNumber(x,prec){return doEigs(matrix(x),{precision:prec})},"Array, Object"(x,opts){return doEigs(matrix(x),opts)},Matrix:function Matrix(mat){return doEigs(mat,{matricize:!0})},"Matrix, number|BigNumber":function MatrixNumberBigNumber(mat,prec){return doEigs(mat,{precision:prec,matricize:!0})},"Matrix, Object":function MatrixObject(mat,opts){var useOpts={matricize:!0};return(0,esm_extends.Z)(useOpts,opts),doEigs(mat,useOpts)}});function doEigs(mat){var _opts$precision,opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},computeVectors=!("eigenvectors"in opts)||opts.eigenvectors,result=function computeValuesAndVectors(mat,prec,computeVectors){var arr=mat.toArray(),asize=mat.size();if(2!==asize.length||asize[0]!==asize[1])throw new RangeError("Matrix must be square (size: ".concat((0,string.WU)(asize),")"));var N=asize[0];if(function isReal(arr,N,prec){for(var i=0;i{var{value:value,vector:vector}=_ref2;return{value:value,vector:matrix(vector)}})))),computeVectors&&Object.defineProperty(result,"vectors",{enumerable:!1,get:()=>{throw new Error("eigs(M).vectors replaced with eigs(M).eigenvectors")}}),result}function coerceTypes(mat,arr,N){var type=mat.datatype();if("number"===type||"BigNumber"===type||"Complex"===type)return type;for(var hasNumber=!1,hasBig=!1,hasComplex=!1,i=0;i{var{typed:typed,abs:abs,add:add,identity:identity,inv:inv,multiply:multiply}=_ref;return typed("expm",{Matrix:function Matrix(A){var size=A.size();if(2!==size.length||size[0]!==size[1])throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_1__.WU)(size)+")");for(var n=size[0],infNorm=function infinityNorm(A){for(var n=A.size()[0],infNorm=0,i=0;i1&&(AposToI=multiply(AposToI,Apos),alternate=-alternate),N=add(N,multiply(factor=factor*(q-i+1)/((2*q-i+1)*i),AposToI)),D=add(D,multiply(factor*alternate,AposToI));for(var R=multiply(inv(D),N),_i=0;_i{var{typed:typed,matrix:matrix,addScalar:addScalar,multiplyScalar:multiplyScalar,divideScalar:divideScalar,exp:exp,tau:tau,i:I,dotDivide:dotDivide,conj:conj,pow:pow,ceil:ceil,log2:log2}=_ref;return typed("fft",{Array:_ndFft,Matrix:function Matrix(matrix){return matrix.create(_ndFft(matrix.toArray()))}});function _ndFft(arr){var size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(arr);return 1===size.length?_fft(arr,size[0]):_1dFft(arr.map((slice=>_ndFft(slice,size.slice(1)))),0)}function _1dFft(arr,dim){var size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(arr);if(0!==dim)return new Array(size[0]).fill(0).map(((_,i)=>_1dFft(arr[i],dim-1)));if(1===size.length)return _fft(arr);function _transpose(arr){var size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(arr);return new Array(size[1]).fill(0).map(((_,j)=>new Array(size[0]).fill(0).map(((_,i)=>arr[i][j]))))}return _transpose(_1dFft(_transpose(arr),1))}function _fft(arr){var len=arr.length;if(1===len)return[arr[0]];if(len%2==0){for(var ret=[..._fft(arr.filter(((_,i)=>i%2==0))),..._fft(arr.filter(((_,i)=>i%2==1)))],k=0;kmultiplyScalar(arr[i],chirp[n-1+i]))),...new Array(N2-n).fill(0)],ichirp=[...new Array(n+n-1).fill(0).map(((_,i)=>divideScalar(1,chirp[i]))),...new Array(N2-(n+n-1)).fill(0)],fftXp=_fft(xp),fftIchirp=_fft(ichirp),fftProduct=new Array(N2).fill(0).map(((_,i)=>multiplyScalar(fftXp[i],fftIchirp[i]))),ifftProduct=dotDivide(conj(_ndFft(conj(fftProduct))),N2),ret=[],_i=n-1;_i{var{typed:typed}=_ref;return typed("filter",{"Array, function":_filterCallback,"Matrix, function":function MatrixFunction(x,test){return x.create(_filterCallback(x.toArray(),test))},"Array, RegExp":_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.U_,"Matrix, RegExp":function MatrixRegExp(x,test){return x.create((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.U_)(x.toArray(),test))}})}));function _filterCallback(x,callback){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.hX)(x,(function(value,index,array){return(0,_utils_applyCallback_js__WEBPACK_IMPORTED_MODULE_2__.i)(callback,value,[index],array,"filter")}))}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/flatten.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createFlatten}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix"],createFlatten=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("flatten",dependencies,(_ref=>{var{typed:typed,matrix:matrix}=_ref;return typed("flatten",{Array:function Array(x){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(x)},Matrix:function Matrix(x){var flat=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(x.toArray());return matrix(flat)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/forEach.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{I:function(){return createForEach}});var _utils_applyCallback_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/applyCallback.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createForEach=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("forEach",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("forEach",{"Array, function":_forEach,"Matrix, function":function MatrixFunction(x,callback){x.forEach(callback)}})}));function _forEach(array,callback){!function recurse(value,index){if(!Array.isArray(value))return(0,_utils_applyCallback_js__WEBPACK_IMPORTED_MODULE_2__.i)(callback,value,index,array,"forEach");(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.Ed)(value,(function(child,i){recurse(child,index.concat(i))}))}(array,[])}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/getMatrixDataType.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createGetMatrixDataType}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),name="getMatrixDataType",dependencies=["typed"],createGetMatrixDataType=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed}=_ref;return typed(name,{Array:function Array(x){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.$q)(x,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kM)},Matrix:function Matrix(x){return x.getDataType()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/identity.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return createIdentity}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],createIdentity=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("identity",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,BigNumber:BigNumber,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix}=_ref;return typed("identity",{"":function _(){return"Matrix"===config.matrix?matrix([]):[]},string:function string(format){return matrix(format)},"number | BigNumber":function numberBigNumber(rows){return _identity(rows,rows,"Matrix"===config.matrix?"dense":void 0)},"number | BigNumber, string":function numberBigNumberString(rows,format){return _identity(rows,rows,format)},"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(rows,cols){return _identity(rows,cols,"Matrix"===config.matrix?"dense":void 0)},"number | BigNumber, number | BigNumber, string":function numberBigNumberNumberBigNumberString(rows,cols,format){return _identity(rows,cols,format)},Array:function Array(size){return _identityVector(size)},"Array, string":function ArrayString(size,format){return _identityVector(size,format)},Matrix:function Matrix(size){return _identityVector(size.valueOf(),size.storage())},"Matrix, string":function MatrixString(size,format){return _identityVector(size.valueOf(),format)}});function _identityVector(size,format){switch(size.length){case 0:return format?matrix(format):[];case 1:return _identity(size[0],size[0],format);case 2:return _identity(size[0],size[1],format);default:throw new Error("Vector containing two values expected")}}function _identity(rows,cols,format){var Big=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(rows)||(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(cols)?BigNumber:null;if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(rows)&&(rows=rows.toNumber()),(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(cols)&&(cols=cols.toNumber()),!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.U)(rows)||rows<1)throw new Error("Parameters in function identity must be positive integers");if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.U)(cols)||cols<1)throw new Error("Parameters in function identity must be positive integers");var one=Big?new BigNumber(1):1,defaultValue=Big?new Big(0):0,size=[rows,cols];if(format){if("sparse"===format)return SparseMatrix.diagonal(size,one,0,defaultValue);if("dense"===format)return DenseMatrix.diagonal(size,one,0,defaultValue);throw new TypeError('Unknown matrix type "'.concat(format,'"'))}for(var res=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.SI)([],size,defaultValue),minimum=rows{var{typed:typed,fft:fft,dotDivide:dotDivide,conj:conj}=_ref;return typed("ifft",{"Array | Matrix":function ArrayMatrix(arr){var size=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(arr)?arr.size():(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.aJ)(arr);return dotDivide(conj(fft(conj(arr))),size.reduce(((acc,curr)=>acc*curr),1))}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/inv.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return createInv}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),dependencies=["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],createInv=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("inv",dependencies,(_ref=>{var{typed:typed,matrix:matrix,divideScalar:divideScalar,addScalar:addScalar,multiply:multiply,unaryMinus:unaryMinus,det:det,identity:identity,abs:abs}=_ref;return typed("inv",{"Array | Matrix":function ArrayMatrix(x){var size=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?x.size():(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.aJ)(x);switch(size.length){case 1:if(1===size[0])return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?matrix([divideScalar(1,x.valueOf()[0])]):[divideScalar(1,x[0])];throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")");case 2:var rows=size[0],cols=size[1];if(rows===cols)return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?matrix(_inv(x.valueOf(),rows,cols),x.storage()):_inv(x,rows,cols);throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")")}},any:function any(x){return divideScalar(1,x)}});function _inv(mat,rows,cols){var r,s,f,value,temp;if(1===rows){if(0===(value=mat[0][0]))throw Error("Cannot calculate inverse, determinant is zero");return[[divideScalar(1,value)]]}if(2===rows){var d=det(mat);if(0===d)throw Error("Cannot calculate inverse, determinant is zero");return[[divideScalar(mat[1][1],d),divideScalar(unaryMinus(mat[0][1]),d)],[divideScalar(unaryMinus(mat[1][0]),d),divideScalar(mat[0][0],d)]]}var A=mat.concat();for(r=0;rABig&&(ABig=abs(A[r][c]),rBig=r),r++;if(0===ABig)throw Error("Cannot calculate inverse, determinant is zero");(r=rBig)!==c&&(temp=A[c],A[c]=A[r],A[r]=temp,temp=B[c],B[c]=B[r],B[r]=temp);var Ac=A[c],Bc=B[c];for(r=0;r{var{typed:typed,matrix:matrix,multiplyScalar:multiplyScalar}=_ref;return typed("kron",{"Matrix, Matrix":function MatrixMatrix(x,y){return matrix(_kron(x.toArray(),y.toArray()))},"Matrix, Array":function MatrixArray(x,y){return matrix(_kron(x.toArray(),y))},"Array, Matrix":function ArrayMatrix(x,y){return matrix(_kron(x,y.toArray()))},"Array, Array":_kron});function _kron(a,b){if(1===(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(a).length&&(a=[a]),1===(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(b).length&&(b=[b]),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(a).length>2||(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(b).length>2)throw new RangeError("Vectors with dimensions greater then 2 are not supported expected (Size x = "+JSON.stringify(a.length)+", y = "+JSON.stringify(b.length)+")");var t=[],r=[];return a.map((function(a){return b.map((function(b){return r=[],t.push(r),a.map((function(y){return b.map((function(x){return r.push(multiplyScalar(y,x))}))}))}))}))&&t}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/map.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createMap}});var _utils_applyCallback_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/applyCallback.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createMap=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("map",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("map",{"Array, function":_map,"Matrix, function":function MatrixFunction(x,callback){return x.map(callback)}})}));function _map(array,callback){return function recurse(value,index){return Array.isArray(value)?value.map((function(child,i){return recurse(child,index.concat(i))})):(0,_utils_applyCallback_js__WEBPACK_IMPORTED_MODULE_1__.i)(callback,value,index,array,"map")}(array,[])}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/matrixFromColumns.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return createMatrixFromColumns}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),name="matrixFromColumns",dependencies=["typed","matrix","flatten","size"],createMatrixFromColumns=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,matrix:matrix,flatten:flatten,size:size}=_ref;return typed(name,{"...Array":function Array(arr){return _createArray(arr)},"...Matrix":function Matrix(arr){return matrix(_createArray(arr.map((m=>m.toArray()))))}});function _createArray(arr){if(0===arr.length)throw new TypeError("At least one column is needed to construct a matrix.");for(var N=checkVectorTypeAndReturnLength(arr[0]),result=[],i=0;i{var{typed:typed,matrix:matrix,isZero:isZero}=_ref;return typed(name,{"Array | Matrix, function, string, string":function ArrayMatrixFunctionStringString(size,fn,format,datatype){return _create(size,fn,format,datatype)},"Array | Matrix, function, string":function ArrayMatrixFunctionString(size,fn,format){return _create(size,fn,format)},"Matrix, function":function MatrixFunction(size,fn){return _create(size,fn,"dense")},"Array, function":function ArrayFunction(size,fn){return _create(size,fn,"dense").toArray()},"Array | Matrix, string, function":function ArrayMatrixStringFunction(size,format,fn){return _create(size,fn,format)},"Array | Matrix, string, string, function":function ArrayMatrixStringStringFunction(size,format,datatype,fn){return _create(size,fn,format,datatype)}});function _create(size,fn,format,datatype){var m;return(m=void 0!==datatype?matrix(format,datatype):matrix(format)).resize(size),m.forEach((function(_,index){var val=fn(index);isZero(val)||m.set(index,val)})),m}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/matrixFromRows.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{_:function(){return createMatrixFromRows}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),name="matrixFromRows",dependencies=["typed","matrix","flatten","size"],createMatrixFromRows=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,matrix:matrix,flatten:flatten,size:size}=_ref;return typed(name,{"...Array":function Array(arr){return _createArray(arr)},"...Matrix":function Matrix(arr){return matrix(_createArray(arr.map((m=>m.toArray()))))}});function _createArray(arr){if(0===arr.length)throw new TypeError("At least one row is needed to construct a matrix.");var N=checkVectorTypeAndReturnLength(arr[0]),result=[];for(var row of arr){var rowLength=checkVectorTypeAndReturnLength(row);if(rowLength!==N)throw new TypeError("The vectors had different length: "+(0|N)+" ≠ "+(0|rowLength));result.push(flatten(row))}return result}function checkVectorTypeAndReturnLength(vec){var s=size(vec);if(1===s.length)return s[0];if(2===s.length){if(1===s[0])return s[1];if(1===s[1])return s[0];throw new TypeError("At least one of the arguments is not a vector.")}throw new TypeError("Only one- or two-dimensional vectors are supported.")}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/ones.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createOnes}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),dependencies=["typed","config","matrix","BigNumber"],createOnes=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("ones",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,BigNumber:BigNumber}=_ref;return typed("ones",{"":function _(){return"Array"===config.matrix?_ones([]):_ones([],"default")},"...number | BigNumber | string":function numberBigNumberString(size){if("string"==typeof size[size.length-1]){var format=size.pop();return _ones(size,format)}return"Array"===config.matrix?_ones(size):_ones(size,"default")},Array:_ones,Matrix:function Matrix(size){var format=size.storage();return _ones(size.valueOf(),format)},"Array | Matrix, string":function ArrayMatrixString(size,format){return _ones(size.valueOf(),format)}});function _ones(size,format){var hasBigNumbers=function _normalize(size){var hasBigNumbers=!1;return size.forEach((function(value,index,arr){(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(value)&&(hasBigNumbers=!0,arr[index]=value.toNumber())})),hasBigNumbers}(size),defaultValue=hasBigNumbers?new BigNumber(1):1;if(function _validate(size){size.forEach((function(value){if("number"!=typeof value||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_3__.U)(value)||value<0)throw new Error("Parameters in function ones must be positive integers")}))}(size),format){var m=matrix(format);return size.length>0?m.resize(size,defaultValue):m}var arr=[];return size.length>0?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.SI)(arr,size,defaultValue):arr}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/partitionSelect.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return createPartitionSelect}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),name="partitionSelect",dependencies=["typed","isNumeric","isNaN","compare"],createPartitionSelect=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,isNumeric:isNumeric,isNaN:isNaN,compare:compare}=_ref,asc=compare,desc=(a,b)=>-compare(a,b);return typed(name,{"Array | Matrix, number":function ArrayMatrixNumber(x,k){return _partitionSelect(x,k,asc)},"Array | Matrix, number, string":function ArrayMatrixNumberString(x,k,compare){if("asc"===compare)return _partitionSelect(x,k,asc);if("desc"===compare)return _partitionSelect(x,k,desc);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":_partitionSelect});function _partitionSelect(x,k,compare){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(k)||k<0)throw new Error("k must be a non-negative integer");if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(x)){if(x.size().length>1)throw new Error("Only one dimensional matrices supported");return quickSelect(x.valueOf(),k,compare)}if(Array.isArray(x))return quickSelect(x,k,compare)}function quickSelect(arr,k,compare){if(k>=arr.length)throw new Error("k out of bounds");for(var i=0;i=0){var tmp=arr[w];arr[w]=arr[r],arr[r]=tmp,--w}else++r;compare(arr[r],pivot)>0&&--r,k<=r?to=r:from=r+1}return arr[k]}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/pinv.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createPinv}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),dependencies=["typed","matrix","inv","deepEqual","equal","dotDivide","dot","ctranspose","divideScalar","multiply","add","Complex"],createPinv=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("pinv",dependencies,(_ref=>{var{typed:typed,matrix:matrix,inv:inv,deepEqual:deepEqual,equal:equal,dotDivide:dotDivide,dot:dot,ctranspose:ctranspose,divideScalar:divideScalar,multiply:multiply,add:add,Complex:Complex}=_ref;return typed("pinv",{"Array | Matrix":function ArrayMatrix(x){var size=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?x.size():(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.aJ)(x);switch(size.length){case 1:return _isZeros(x)?ctranspose(x):1===size[0]?inv(x):dotDivide(ctranspose(x),dot(x,x));case 2:if(_isZeros(x))return ctranspose(x);var rows=size[0],cols=size[1];if(rows===cols)try{return inv(x)}catch(err){if(!(err instanceof Error&&err.message.match(/Cannot calculate inverse, determinant is zero/)))throw err}return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?matrix(_pinv(x.valueOf(),rows,cols),x.storage()):_pinv(x,rows,cols);default:throw new RangeError("Matrix must be two dimensional (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")")}},any:function any(x){return equal(x,0)?(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.d9)(x):divideScalar(1,x)}});function _pinv(mat,rows,cols){var{C:C,F:F}=function _rankFact(mat,rows,cols){var rref=function _rref(mat,rows,cols){for(var M=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.d9)(mat),lead=0,r=0;r_.filter(((_,j)=>j!_isZero(dot(rref[i],rref[i]))));return{C:C,F:F}}(mat,rows,cols),Cpinv=multiply(inv(multiply(ctranspose(C),C)),ctranspose(C)),Fpinv=multiply(ctranspose(F),inv(multiply(F,ctranspose(F))));return multiply(Fpinv,Cpinv)}function _isZero(x){return equal(add(x,Complex(1,1)),add(0,Complex(1,1)))}function _isZeros(arr){return deepEqual(add(arr,Complex(1,1)),add(multiply(arr,0),Complex(1,1)))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/range.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createRange}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/noop.js"),dependencies=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq","add","isPositive"],createRange=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("range",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,bignumber:bignumber,smaller:smaller,smallerEq:smallerEq,larger:larger,largerEq:largerEq,add:add,isPositive:isPositive}=_ref;return typed("range",{string:_strRange,"string, boolean":_strRange,"number, number":function numberNumber(start,end){return _out(_range(start,end,1,!1))},"number, number, number":function numberNumberNumber(start,end,step){return _out(_range(start,end,step,!1))},"number, number, boolean":function numberNumberBoolean(start,end,includeEnd){return _out(_range(start,end,1,includeEnd))},"number, number, number, boolean":function numberNumberNumberBoolean(start,end,step,includeEnd){return _out(_range(start,end,step,includeEnd))},"BigNumber, BigNumber":function BigNumberBigNumber(start,end){return _out(_range(start,end,new(0,start.constructor)(1),!1))},"BigNumber, BigNumber, BigNumber":function BigNumberBigNumberBigNumber(start,end,step){return _out(_range(start,end,step,!1))},"BigNumber, BigNumber, boolean":function BigNumberBigNumberBoolean(start,end,includeEnd){return _out(_range(start,end,new(0,start.constructor)(1),includeEnd))},"BigNumber, BigNumber, BigNumber, boolean":function BigNumberBigNumberBigNumberBoolean(start,end,step,includeEnd){return _out(_range(start,end,step,includeEnd))},"Unit, Unit, Unit":function UnitUnitUnit(start,end,step){return _out(_range(start,end,step,!1))},"Unit, Unit, Unit, boolean":function UnitUnitUnitBoolean(start,end,step,includeEnd){return _out(_range(start,end,step,includeEnd))}});function _out(arr){return"Matrix"===config.matrix?matrix?matrix(arr):(0,_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__.kX)():arr}function _strRange(str,includeEnd){var r=function _parse(str){var args=str.split(":"),nums=args.map((function(arg){return Number(arg)}));if(nums.some((function(num){return isNaN(num)})))return null;switch(nums.length){case 2:return{start:nums[0],end:nums[1],step:1};case 3:return{start:nums[0],end:nums[2],step:nums[1]};default:return null}}(str);if(!r)throw new SyntaxError('String "'+str+'" is no valid range');return"BigNumber"===config.number?(void 0===bignumber&&(0,_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__.R3)(),_out(_range(bignumber(r.start),bignumber(r.end),bignumber(r.step)))):_out(_range(r.start,r.end,r.step,includeEnd))}function _range(start,end,step,includeEnd){for(var array=[],ongoing=isPositive(step)?includeEnd?smallerEq:smaller:includeEnd?largerEq:larger,x=start;ongoing(x,end);)array.push(x),x=add(x,step);return array}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/reshape.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return createReshape}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","isInteger","matrix"],createReshape=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("reshape",dependencies,(_ref=>{var{typed:typed,isInteger:isInteger}=_ref;return typed("reshape",{"Matrix, Array":function MatrixArray(x,sizes){return x.reshape(sizes,!0)},"Array, Array":function ArrayArray(x,sizes){return sizes.forEach((function(size){if(!isInteger(size))throw new TypeError("Invalid size for dimension: "+size)})),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.XL)(x,sizes)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/resize.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{y:function(){return createResize}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/DimensionError.js"),_error_ArgumentsError_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/ArgumentsError.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),dependencies=["config","matrix"],createResize=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("resize",dependencies,(_ref=>{var{config:config,matrix:matrix}=_ref;return function resize(x,size,defaultValue){if(2!==arguments.length&&3!==arguments.length)throw new _error_ArgumentsError_js__WEBPACK_IMPORTED_MODULE_1__.u("resize",arguments.length,2,3);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(size)&&(size=size.valueOf()),(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(size[0])&&(size=size.map((function(value){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(value)?value.toNumber():value}))),(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(x))return x.resize(size,defaultValue,!0);if("string"==typeof x)return function _resizeString(str,size,defaultChar){if(void 0!==defaultChar){if("string"!=typeof defaultChar||1!==defaultChar.length)throw new TypeError("Single character expected as defaultValue")}else defaultChar=" ";if(1!==size.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_5__.m(size.length,1);var len=size[0];if("number"!=typeof len||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_6__.U)(len))throw new TypeError("Invalid size, must contain positive integers (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_7__.WU)(size)+")");if(str.length>len)return str.substring(0,len);if(str.length{var{typed:typed,multiply:multiply,rotationMatrix:rotationMatrix}=_ref;return typed("rotate",{"Array , number | BigNumber | Complex | Unit":function ArrayNumberBigNumberComplexUnit(w,theta){return _validateSize(w,2),multiply(rotationMatrix(theta),w).toArray()},"Matrix , number | BigNumber | Complex | Unit":function MatrixNumberBigNumberComplexUnit(w,theta){return _validateSize(w,2),multiply(rotationMatrix(theta),w)},"Array, number | BigNumber | Complex | Unit, Array | Matrix":function ArrayNumberBigNumberComplexUnitArrayMatrix(w,theta,v){return _validateSize(w,3),multiply(rotationMatrix(theta,v),w)},"Matrix, number | BigNumber | Complex | Unit, Array | Matrix":function MatrixNumberBigNumberComplexUnitArrayMatrix(w,theta,v){return _validateSize(w,3),multiply(rotationMatrix(theta,v),w)}});function _validateSize(v,expectedSize){var actualSize=Array.isArray(v)?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(v):v.size();if(actualSize.length>2)throw new RangeError("Vector must be of dimensions 1x".concat(expectedSize));if(2===actualSize.length&&1!==actualSize[1])throw new RangeError("Vector must be of dimensions 1x".concat(expectedSize));if(actualSize[0]!==expectedSize)throw new RangeError("Vector must be of dimensions 1x".concat(expectedSize))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/rotationMatrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:function(){return createRotationMatrix}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),name="rotationMatrix",dependencies=["typed","config","multiplyScalar","addScalar","unaryMinus","norm","matrix","BigNumber","DenseMatrix","SparseMatrix","cos","sin"],createRotationMatrix=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,config:config,multiplyScalar:multiplyScalar,addScalar:addScalar,unaryMinus:unaryMinus,norm:norm,BigNumber:BigNumber,matrix:matrix,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix,cos:cos,sin:sin}=_ref;return typed(name,{"":function _(){return"Matrix"===config.matrix?matrix([]):[]},string:function string(format){return matrix(format)},"number | BigNumber | Complex | Unit":function numberBigNumberComplexUnit(theta){return _rotationMatrix2x2(theta,"Matrix"===config.matrix?"dense":void 0)},"number | BigNumber | Complex | Unit, string":function numberBigNumberComplexUnitString(theta,format){return _rotationMatrix2x2(theta,format)},"number | BigNumber | Complex | Unit, Array":function numberBigNumberComplexUnitArray(theta,v){var matrixV=matrix(v);return _validateVector(matrixV),_rotationMatrix3x3(theta,matrixV,void 0)},"number | BigNumber | Complex | Unit, Matrix":function numberBigNumberComplexUnitMatrix(theta,v){_validateVector(v);var storageType=v.storage()||("Matrix"===config.matrix?"dense":void 0);return _rotationMatrix3x3(theta,v,storageType)},"number | BigNumber | Complex | Unit, Array, string":function numberBigNumberComplexUnitArrayString(theta,v,format){var matrixV=matrix(v);return _validateVector(matrixV),_rotationMatrix3x3(theta,matrixV,format)},"number | BigNumber | Complex | Unit, Matrix, string":function numberBigNumberComplexUnitMatrixString(theta,v,format){return _validateVector(v),_rotationMatrix3x3(theta,v,format)}});function _rotationMatrix2x2(theta,format){var minusOne=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(theta)?new BigNumber(-1):-1,cosTheta=cos(theta),sinTheta=sin(theta);return _convertToFormat([[cosTheta,multiplyScalar(minusOne,sinTheta)],[sinTheta,cosTheta]],format)}function _validateVector(v){var size=v.size();if(size.length<1||3!==size[0])throw new RangeError("Vector must be of dimensions 1x3")}function _mul(array){return array.reduce(((p,curr)=>multiplyScalar(p,curr)))}function _convertToFormat(data,format){if(format){if("sparse"===format)return new SparseMatrix(data);if("dense"===format)return new DenseMatrix(data);throw new TypeError('Unknown matrix type "'.concat(format,'"'))}return data}function _rotationMatrix3x3(theta,v,format){var normV=norm(v);if(0===normV)throw new RangeError("Rotation around zero vector");var Big=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(theta)?BigNumber:null,one=Big?new Big(1):1,minusOne=Big?new Big(-1):-1,vx=Big?new Big(v.get([0])/normV):v.get([0])/normV,vy=Big?new Big(v.get([1])/normV):v.get([1])/normV,vz=Big?new Big(v.get([2])/normV):v.get([2])/normV,c=cos(theta),oneMinusC=addScalar(one,unaryMinus(c)),s=sin(theta);return _convertToFormat([[addScalar(c,_mul([vx,vx,oneMinusC])),addScalar(_mul([vx,vy,oneMinusC]),_mul([minusOne,vz,s])),addScalar(_mul([vx,vz,oneMinusC]),_mul([vy,s]))],[addScalar(_mul([vx,vy,oneMinusC]),_mul([vz,s])),addScalar(c,_mul([vy,vy,oneMinusC])),addScalar(_mul([vy,vz,oneMinusC]),_mul([minusOne,vx,s]))],[addScalar(_mul([vx,vz,oneMinusC]),_mul([minusOne,vy,s])),addScalar(_mul([vy,vz,oneMinusC]),_mul([vx,s])),addScalar(c,_mul([vz,vz,oneMinusC]))]],format)}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/row.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createRow}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),dependencies=["typed","Index","matrix","range"],createRow=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("row",dependencies,(_ref=>{var{typed:typed,Index:Index,matrix:matrix,range:range}=_ref;return typed("row",{"Matrix, number":_row,"Array, number":function ArrayNumber(value,row){return _row(matrix((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(value)),row).valueOf()}});function _row(value,row){if(2!==value.size().length)throw new Error("Only two dimensional matrix is supported");(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.Ls)(row,value.size()[0]);var columnRange=range(0,value.size()[1]),index=new Index(row,columnRange),result=value.subset(index);return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(result)?result:matrix([[result]])}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/size.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createSize}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_noop_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/noop.js"),dependencies=["typed","config","?matrix"],createSize=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("size",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix}=_ref;return typed("size",{Matrix:function Matrix(x){return x.create(x.size())},Array:_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ,string:function string(x){return"Array"===config.matrix?[x.length]:matrix([x.length])},"number | Complex | BigNumber | Unit | boolean | null":function numberComplexBigNumberUnitBooleanNull(x){return"Array"===config.matrix?[]:matrix?matrix([]):(0,_utils_noop_js__WEBPACK_IMPORTED_MODULE_2__.kX)()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/sort.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{l:function(){return createSort}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","compare","compareNatural"],createSort=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sort",dependencies,(_ref=>{var{typed:typed,matrix:matrix,compare:compare,compareNatural:compareNatural}=_ref,compareAsc=compare,compareDesc=(a,b)=>-compare(a,b);return typed("sort",{Array:function Array(x){return _arrayIsVector(x),x.sort(compareAsc)},Matrix:function Matrix(x){return _matrixIsVector(x),matrix(x.toArray().sort(compareAsc),x.storage())},"Array, function":function ArrayFunction(x,_comparator){return _arrayIsVector(x),x.sort(_comparator)},"Matrix, function":function MatrixFunction(x,_comparator){return _matrixIsVector(x),matrix(x.toArray().sort(_comparator),x.storage())},"Array, string":function ArrayString(x,order){return _arrayIsVector(x),x.sort(_comparator(order))},"Matrix, string":function MatrixString(x,order){return _matrixIsVector(x),matrix(x.toArray().sort(_comparator(order)),x.storage())}});function _comparator(order){if("asc"===order)return compareAsc;if("desc"===order)return compareDesc;if("natural"===order)return compareNatural;throw new Error('String "asc", "desc", or "natural" expected')}function _arrayIsVector(array){if(1!==(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(array).length)throw new Error("One dimensional array expected")}function _matrixIsVector(matrix){if(1!==matrix.size().length)throw new Error("One dimensional matrix expected")}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/sqrtm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{m:function(){return createSqrtm}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","abs","add","multiply","map","sqrt","subtract","inv","size","max","identity"],createSqrtm=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sqrtm",dependencies,(_ref=>{var{typed:typed,abs:abs,add:add,multiply:multiply,map:map,sqrt:sqrt,subtract:subtract,inv:inv,size:size,max:max,identity:identity}=_ref;function _denmanBeavers(A){var error,iterations=0,Y=A,Z=identity(size(A));do{var Yk=Y;if(Y=multiply(.5,add(Yk,inv(Z))),Z=multiply(.5,add(Z,inv(Yk))),(error=max(abs(subtract(Y,Yk))))>1e-6&&++iterations>1e3)throw new Error("computing square root of matrix: iterative method could not converge")}while(error>1e-6);return Y}return typed("sqrtm",{"Array | Matrix":function ArrayMatrix(A){var size=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(A)?A.size():(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.aJ)(A);switch(size.length){case 1:if(1===size[0])return map(A,sqrt);throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")");case 2:if(size[0]===size[1])return _denmanBeavers(A);throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")");default:throw new RangeError("Matrix must be at most two dimensional (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")")}}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/squeeze.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{a:function(){return createSqueeze}});var _utils_object_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix"],createSqueeze=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("squeeze",dependencies,(_ref=>{var{typed:typed,matrix:matrix}=_ref;return typed("squeeze",{Array:function Array(x){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.L9)((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(x))},Matrix:function Matrix(x){var res=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.L9)(x.toArray());return Array.isArray(res)?matrix(res):res},any:function any(x){return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(x)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/subset.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return createSubset}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_customs_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/customs.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/DimensionError.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","zeros","add"],createSubset=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("subset",dependencies,(_ref=>{var{typed:typed,matrix:matrix,zeros:zeros,add:add}=_ref;return typed("subset",{"Matrix, Index":function MatrixIndex(value,index){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index)?matrix():((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.bc)(value,index),value.subset(index))},"Array, Index":typed.referTo("Matrix, Index",(function(subsetRef){return function(value,index){var subsetResult=subsetRef(matrix(value),index);return index.isScalar()?subsetResult:subsetResult.valueOf()}})),"Object, Index":_getObjectProperty,"string, Index":_getSubstring,"Matrix, Index, any, any":function MatrixIndexAnyAny(value,index,replacement,defaultValue){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index)?value:((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.bc)(value,index),value.clone().subset(index,function _broadcastReplacement(replacement,index){if("string"==typeof replacement)throw new Error("can't boradcast a string");if(index._isScalar)return replacement;var indexSize=index.size();if(!indexSize.every((d=>d>0)))return replacement;try{return add(replacement,zeros(indexSize))}catch(error){return replacement}}(replacement,index),defaultValue))},"Array, Index, any, any":typed.referTo("Matrix, Index, any, any",(function(subsetRef){return function(value,index,replacement,defaultValue){var subsetResult=subsetRef(matrix(value),index,replacement,defaultValue);return subsetResult.isMatrix?subsetResult.valueOf():subsetResult}})),"Array, Index, any":typed.referTo("Matrix, Index, any, any",(function(subsetRef){return function(value,index,replacement){return subsetRef(matrix(value),index,replacement,void 0).valueOf()}})),"Matrix, Index, any":typed.referTo("Matrix, Index, any, any",(function(subsetRef){return function(value,index,replacement){return subsetRef(value,index,replacement,void 0)}})),"string, Index, string":_setSubstring,"string, Index, string, string":_setSubstring,"Object, Index, any":_setObjectProperty})}));function _getSubstring(str,index){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.dh)(index))throw new TypeError("Index expected");if((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index))return"";if((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.bc)(Array.from(str),index),1!==index.size().length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__.m(index.size().length,1);var strLen=str.length;(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.Ls)(index.min()[0],strLen),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.Ls)(index.max()[0],strLen);var range=index.dimension(0),substr="";return range.forEach((function(v){substr+=str.charAt(v)})),substr}function _setSubstring(str,index,replacement,defaultValue){if(!index||!0!==index.isIndex)throw new TypeError("Index expected");if((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index))return str;if((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.bc)(Array.from(str),index),1!==index.size().length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__.m(index.size().length,1);if(void 0!==defaultValue){if("string"!=typeof defaultValue||1!==defaultValue.length)throw new TypeError("Single character expected as defaultValue")}else defaultValue=" ";var range=index.dimension(0);if(range.size()[0]!==replacement.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__.m(range.size()[0],replacement.length);var strLen=str.length;(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.Ls)(index.min()[0]),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.Ls)(index.max()[0]);for(var chars=[],i=0;istrLen)for(var _i=strLen-1,_len=chars.length;_i<_len;_i++)chars[_i]||(chars[_i]=defaultValue);return chars.join("")}function _getObjectProperty(object,index){if(!(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index)){if(1!==index.size().length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__.m(index.size(),1);var key=index.dimension(0);if("string"!=typeof key)throw new TypeError("String expected as index to retrieve an object property");return(0,_utils_customs_js__WEBPACK_IMPORTED_MODULE_4__.YF)(object,key)}}function _setObjectProperty(object,index,replacement){if((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index))return object;if(1!==index.size().length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__.m(index.size(),1);var key=index.dimension(0);if("string"!=typeof key)throw new TypeError("String expected as index to retrieve an object property");var updated=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_5__.d9)(object);return(0,_utils_customs_js__WEBPACK_IMPORTED_MODULE_4__.nI)(updated,key,replacement),updated}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/trace.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return createTrace}});var _utils_object_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),dependencies=["typed","matrix","add"],createTrace=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("trace",dependencies,(_ref=>{var{typed:typed,matrix:matrix,add:add}=_ref;return typed("trace",{Array:function _arrayTrace(x){return _denseTrace(matrix(x))},SparseMatrix:function _sparseTrace(m){var values=m._values,index=m._index,ptr=m._ptr,size=m._size,rows=size[0],columns=size[1];if(rows===columns){var sum=0;if(values.length>0)for(var j=0;jj)break}return sum}throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_2__.WU)(size)+")")},DenseMatrix:_denseTrace,any:_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9});function _denseTrace(m){var size=m._size,data=m._data;switch(size.length){case 1:if(1===size[0])return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(data[0]);throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_2__.WU)(size)+")");case 2:var rows=size[0];if(rows===size[1]){for(var sum=0,i=0;i{var{typed:typed,matrix:matrix}=_ref;return typed("transpose",{Array:x=>transposeMatrix(matrix(x)).valueOf(),Matrix:transposeMatrix,any:_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9});function transposeMatrix(x){var c,size=x.size();switch(size.length){case 1:c=x.clone();break;case 2:var rows=size[0],columns=size[1];if(0===columns)throw new RangeError("Cannot transpose a 2D matrix with no columns (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_2__.WU)(size)+")");switch(x.storage()){case"dense":c=function _denseTranspose(m,rows,columns){for(var transposedRow,data=m._data,transposed=[],j=0;j{var{typed:typed,config:config,matrix:matrix,BigNumber:BigNumber}=_ref;return typed("zeros",{"":function _(){return"Array"===config.matrix?_zeros([]):_zeros([],"default")},"...number | BigNumber | string":function numberBigNumberString(size){if("string"==typeof size[size.length-1]){var format=size.pop();return _zeros(size,format)}return"Array"===config.matrix?_zeros(size):_zeros(size,"default")},Array:_zeros,Matrix:function Matrix(size){var format=size.storage();return _zeros(size.valueOf(),format)},"Array | Matrix, string":function ArrayMatrixString(size,format){return _zeros(size.valueOf(),format)}});function _zeros(size,format){var hasBigNumbers=function _normalize(size){var hasBigNumbers=!1;return size.forEach((function(value,index,arr){(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(value)&&(hasBigNumbers=!0,arr[index]=value.toNumber())})),hasBigNumbers}(size),defaultValue=hasBigNumbers?new BigNumber(0):0;if(function _validate(size){size.forEach((function(value){if("number"!=typeof value||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_3__.U)(value)||value<0)throw new Error("Parameters in function zeros must be positive integers")}))}(size),format){var m=matrix(format);return size.length>0?m.resize(size,defaultValue):m}var arr=[];return size.length>0?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.SI)(arr,size,defaultValue):arr}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/numeric/solveODE.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return createSolveODE}});var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}var dependencies=["typed","add","subtract","multiply","divide","max","map","abs","isPositive","isNegative","larger","smaller","matrix","bignumber","unaryMinus"],createSolveODE=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("solveODE",dependencies,(_ref=>{var{typed:typed,add:add,subtract:subtract,multiply:multiply,divide:divide,max:max,map:map,abs:abs,isPositive:isPositive,isNegative:isNegative,larger:larger,smaller:smaller,matrix:matrix,bignumber:bignumber,unaryMinus:unaryMinus}=_ref;function _rk(butcherTableau){return function(f,tspan,y0,options){if(!(2===tspan.length&&(tspan.every(isNumOrBig)||tspan.every(_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr))))throw new Error('"tspan" must be an Array of two numeric values or two units [tStart, tEnd]');var t0=tspan[0],tf=tspan[1],isForwards=larger(tf,t0),firstStep=options.firstStep;if(void 0!==firstStep&&!isPositive(firstStep))throw new Error('"firstStep" must be positive');var maxStep=options.maxStep;if(void 0!==maxStep&&!isPositive(maxStep))throw new Error('"maxStep" must be positive');var minStep=options.minStep;if(minStep&&isNegative(minStep))throw new Error('"minStep" must be positive or zero');var timeVars=[t0,tf,firstStep,minStep,maxStep].filter((x=>void 0!==x));if(!timeVars.every(isNumOrBig)&&!timeVars.every(_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr))throw new Error('Inconsistent type of "t" dependant variables');for(var tol=options.tol?options.tol:1e-4,minDelta=options.minDelta?options.minDelta:.2,maxDelta=options.maxDelta?options.maxDelta:5,maxIter=options.maxIter?options.maxIter:1e4,hasBigNumbers=[t0,tf,...y0,maxStep,minStep].some(_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9),[a,c,b,bp]=hasBigNumbers?[bignumber(butcherTableau.a),bignumber(butcherTableau.c),bignumber(butcherTableau.b),bignumber(butcherTableau.bp)]:[butcherTableau.a,butcherTableau.c,butcherTableau.b,butcherTableau.bp],h=firstStep?isForwards?firstStep:unaryMinus(firstStep):divide(subtract(tf,t0),1),t=[t0],y=[y0],deltaB=subtract(b,bp),n=0,iter=0,ongoing=function _createOngoing(isForwards){return isForwards?smaller:larger}(isForwards),trimStep=function _createTrimStep(isForwards){var outOfBounds=isForwards?larger:smaller;return function(t,tf,h){var next=add(t,h);return outOfBounds(next,tf)?subtract(tf,t):h}}(isForwards);ongoing(t[n],tf);){var k=[];h=trimStep(t[n],tf,h),k.push(f(t[n],y[n]));for(var i=1;i(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr)(X)?X.value:X))));TE1/4&&(t.push(add(t[n],h)),y.push(add(y[n],multiply(h,b,k))),n++);var delta=.84*(tol/TE)**.2;if(smaller(delta,minDelta)?delta=minDelta:larger(delta,maxDelta)&&(delta=maxDelta),delta=hasBigNumbers?bignumber(delta):delta,h=multiply(h,delta),maxStep&&larger(abs(h),maxStep)?h=isForwards?maxStep:unaryMinus(maxStep):minStep&&smaller(abs(h),minStep)&&(h=isForwards?minStep:unaryMinus(minStep)),++iter>maxIter)throw new Error("Maximum number of iterations reached, try changing options")}return{t:t,y:y}}}function _rk23(f,tspan,y0,options){return _rk({a:[[],[.5],[0,3/4],[2/9,1/3,4/9]],c:[null,.5,3/4,1],b:[2/9,1/3,4/9,0],bp:[7/24,1/4,1/3,1/8]})(f,tspan,y0,options)}function _rk45(f,tspan,y0,options){return _rk({a:[[],[.2],[3/40,9/40],[44/45,-56/15,32/9],[19372/6561,-25360/2187,64448/6561,-212/729],[9017/3168,-355/33,46732/5247,49/176,-5103/18656],[35/384,0,500/1113,125/192,-2187/6784,11/84]],c:[null,.2,.3,.8,8/9,1,1],b:[35/384,0,500/1113,125/192,-2187/6784,11/84,0],bp:[5179/57600,0,7571/16695,393/640,-92097/339200,187/2100,1/40]})(f,tspan,y0,options)}function _solveODE(f,tspan,y0,opt){var method=opt.method?opt.method:"RK45",methods={RK23:_rk23,RK45:_rk45};if(method.toUpperCase()in methods){var methodOptions=function _objectSpread(e){for(var r=1;r'"'.concat(x,'"'))),availableMethodsString="".concat(methodsWithQuotes.slice(0,-1).join(", ")," and ").concat(methodsWithQuotes.slice(-1));throw new Error('Unavailable method "'.concat(method,'". Available methods are ').concat(availableMethodsString))}function isNumOrBig(x){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(x)||(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.hj)(x)}function _matrixSolveODE(f,T,y0,options){var sol=_solveODE(f,T.toArray(),y0.toArray(),options);return{t:matrix(sol.t),y:matrix(sol.y)}}return typed("solveODE",{"function, Array, Array, Object":_solveODE,"function, Matrix, Matrix, Object":_matrixSolveODE,"function, Array, Array":(f,T,y0)=>_solveODE(f,T,y0,{}),"function, Matrix, Matrix":(f,T,y0)=>_matrixSolveODE(f,T,y0,{}),"function, Array, number | BigNumber | Unit":(f,T,y0)=>{var sol=_solveODE(f,T,[y0],{});return{t:sol.t,y:sol.y.map((Y=>Y[0]))}},"function, Matrix, number | BigNumber | Unit":(f,T,y0)=>{var sol=_solveODE(f,T.toArray(),[y0],{});return{t:matrix(sol.t),y:matrix(sol.y.map((Y=>Y[0])))}},"function, Array, number | BigNumber | Unit, Object":(f,T,y0,options)=>{var sol=_solveODE(f,T,[y0],options);return{t:sol.t,y:sol.y.map((Y=>Y[0]))}},"function, Matrix, number | BigNumber | Unit, Object":(f,T,y0,options)=>{var sol=_solveODE(f,T.toArray(),[y0],options);return{t:matrix(sol.t),y:matrix(sol.y.map((Y=>Y[0])))}}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/combinations.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return createCombinations}});var factory=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),number=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),product=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/product.js");function combinationsNumber(n,k){if(!(0,number.U)(n)||n<0)throw new TypeError("Positive integer value expected in function combinations");if(!(0,number.U)(k)||k<0)throw new TypeError("Positive integer value expected in function combinations");if(k>n)throw new TypeError("k must be less than or equal to n");for(var nMinusk=n-k,answer=1,nextdivisor=2,lastdivisor=k{var{typed:typed}=_ref;return typed("combinations",{"number, number":combinationsNumber,"BigNumber, BigNumber":function BigNumberBigNumber(n,k){var result,i,BigNumber=n.constructor,nMinusk=n.minus(k),one=new BigNumber(1);if(!isPositiveInteger(n)||!isPositiveInteger(k))throw new TypeError("Positive integer value expected in function combinations");if(k.gt(n))throw new TypeError("k must be less than n in function combinations");if(result=one,k.lt(nMinusk))for(i=one;i.lte(nMinusk);i=i.plus(one))result=result.times(k.plus(i)).dividedBy(i);else for(i=one;i.lte(k);i=i.plus(one))result=result.times(nMinusk.plus(i)).dividedBy(i);return result}})}));function isPositiveInteger(n){return n.isInteger()&&n.gte(0)}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/combinationsWithRep.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return createCombinationsWithRep}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_product_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/product.js"),name="combinationsWithRep",dependencies=["typed"],createCombinationsWithRep=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed}=_ref;return typed(name,{"number, number":function numberNumber(n,k){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(n)||n<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(k)||k<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(n<1)throw new TypeError("k must be less than or equal to n + k - 1");return k{var{typed:typed,gamma:gamma}=_ref;return typed("factorial",{number:function number(n){if(n<0)throw new Error("Value must be non-negative");return gamma(n+1)},BigNumber:function BigNumber(n){if(n.isNegative())throw new Error("Value must be non-negative");return gamma(n.plus(1))},"Array | Matrix":typed.referToSelf((self=>n=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(n,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/gamma.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return createGamma}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/probability.js"),dependencies=["typed","config","multiplyScalar","pow","BigNumber","Complex"],createGamma=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("gamma",dependencies,(_ref=>{var{typed:typed,config:config,multiplyScalar:multiplyScalar,pow:pow,BigNumber:_BigNumber,Complex:Complex}=_ref;return typed("gamma",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.wZ,Complex:function gammaComplex(n){if(0===n.im)return(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.wZ)(n.re);if(n.re<.5){var _t=new Complex(1-n.re,-n.im),r=new Complex(Math.PI*n.re,Math.PI*n.im);return new Complex(Math.PI).div(r.sin()).div(gammaComplex(_t))}n=new Complex(n.re-1,n.im);for(var x=new Complex(_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.lG[0],0),i=1;i<_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.lG.length;++i){var gammaPval=new Complex(_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.lG[i],0);x=x.add(gammaPval.div(n.add(i)))}var t=new Complex(n.re+_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Yc+.5,n.im),twoPiSqrt=Math.sqrt(2*Math.PI),tpow=t.pow(n.add(.5)),expt=t.neg().exp();return x.mul(twoPiSqrt).mul(tpow).mul(expt)},BigNumber:function BigNumber(n){if(n.isInteger())return n.isNegative()||n.isZero()?new _BigNumber(1/0):bigFactorial(n.minus(1));if(!n.isFinite())return new _BigNumber(n.isNegative()?NaN:1/0);throw new Error("Integer BigNumber expected")}});function bigFactorial(n){if(n<8)return new _BigNumber([1,1,2,6,24,120,720,5040][n]);var precision=config.precision+(0|Math.log(n.toNumber())),Big=_BigNumber.clone({precision:precision});if(n%2==1)return n.times(bigFactorial(new _BigNumber(n-1)));for(var p=n,prod=new Big(n),sum=n.toNumber();p>2;)sum+=p-=2,prod=prod.times(sum);return new _BigNumber(prod.toPrecision(_BigNumber.precision))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/kldivergence.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createKldivergence}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","divide","sum","multiply","map","dotDivide","log","isNumeric"],createKldivergence=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("kldivergence",dependencies,(_ref=>{var{typed:typed,matrix:matrix,divide:divide,sum:sum,multiply:multiply,map:map,dotDivide:dotDivide,log:log,isNumeric:isNumeric}=_ref;return typed("kldivergence",{"Array, Array":function ArrayArray(q,p){return _kldiv(matrix(q),matrix(p))},"Matrix, Array":function MatrixArray(q,p){return _kldiv(q,matrix(p))},"Array, Matrix":function ArrayMatrix(q,p){return _kldiv(matrix(q),p)},"Matrix, Matrix":function MatrixMatrix(q,p){return _kldiv(q,p)}});function _kldiv(q,p){var plength=p.size().length,qlength=q.size().length;if(plength>1)throw new Error("first object must be one dimensional");if(qlength>1)throw new Error("second object must be one dimensional");if(plength!==qlength)throw new Error("Length of two vectors must be equal");if(0===sum(q))throw new Error("Sum of elements in first object must be non zero");if(0===sum(p))throw new Error("Sum of elements in second object must be non zero");var qnorm=divide(q,sum(q)),pnorm=divide(p,sum(p)),result=sum(multiply(qnorm,map(dotDivide(qnorm,pnorm),(x=>log(x)))));return isNumeric(result)?result:Number.NaN}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/lgamma.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{e:function(){return createLgamma}});var _plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/probability.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["Complex","typed"],createLgamma=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("lgamma",dependencies,(_ref=>{var{Complex:Complex,typed:typed}=_ref,SMALL_RE=7,coeffs=[-.029550653594771242,.00641025641025641,-.0019175269175269176,.0008417508417508417,-.0005952380952380953,.0007936507936507937,-.002777777777777778,.08333333333333333];return typed("lgamma",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Oo,Complex:function lgammaComplex(n){if(n.isNaN())return new Complex(NaN,NaN);if(0===n.im)return new Complex((0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Oo)(n.re),0);if(n.re>=SMALL_RE||Math.abs(n.im)>=7)return lgammaStirling(n);if(n.re<=.1){var tmp=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.JG)(6.283185307179586,n.im)*Math.floor(.5*n.re+.25),a=n.mul(Math.PI).sin().log(),b=lgammaComplex(new Complex(1-n.re,-n.im));return new Complex(1.1447298858494002,tmp).sub(a).sub(b)}return n.im>=0?lgammaRecurrence(n):lgammaRecurrence(n.conjugate()).conjugate()},BigNumber:function BigNumber(){throw new Error("mathjs doesn't yet provide an implementation of the algorithm lgamma for BigNumber")}});function lgammaStirling(z){for(var leftPart=z.sub(.5).mul(z.log()).sub(z).add(_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.uS),rz=new Complex(1,0).div(z),rzz=rz.div(z),a=coeffs[0],b=coeffs[1],r=2*rzz.re,s=rzz.re*rzz.re+rzz.im*rzz.im,i=2;i<8;i++){var tmp=b;b=-s*a+coeffs[i],a=r*a+tmp}var rightPart=rz.mul(rzz.mul(a).add(b));return leftPart.add(rightPart)}function lgammaRecurrence(z){var signflips=0,sb=0,shiftprod=z;for(z=z.add(1);z.re<=SMALL_RE;){var nsb=(shiftprod=shiftprod.mul(z)).im<0?1:0;0!==nsb&&0===sb&&signflips++,sb=nsb,z=z.add(1)}return lgammaStirling(z).sub(shiftprod.log()).sub(new Complex(0,2*signflips*Math.PI*1))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/multinomial.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return createMultinomial}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","add","divide","multiply","factorial","isInteger","isPositive"],createMultinomial=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("multinomial",dependencies,(_ref=>{var{typed:typed,add:add,divide:divide,multiply:multiply,factorial:factorial,isInteger:isInteger,isPositive:isPositive}=_ref;return typed("multinomial",{"Array | Matrix":function ArrayMatrix(a){var sum=0,denom=1;return(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(a,(function(ai){if(!isInteger(ai)||!isPositive(ai))throw new TypeError("Positive integer value expected in function multinomial");sum=add(sum,ai),denom=multiply(denom,factorial(ai))})),divide(factorial(sum),denom)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/permutations.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return createPermutations}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_product_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/product.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","factorial"],createPermutations=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("permutations",dependencies,(_ref=>{var{typed:typed,factorial:factorial}=_ref;return typed("permutations",{"number | BigNumber":factorial,"number, number":function numberNumber(n,k){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(n)||n<0)throw new TypeError("Positive integer value expected in function permutations");if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(k)||k<0)throw new TypeError("Positive integer value expected in function permutations");if(k>n)throw new TypeError("second argument k must be less than or equal to first argument n");return(0,_utils_product_js__WEBPACK_IMPORTED_MODULE_2__.O)(n-k+1,n)},"BigNumber, BigNumber":function BigNumberBigNumber(n,k){var result,i;if(!isPositiveInteger(n)||!isPositiveInteger(k))throw new TypeError("Positive integer value expected in function permutations");if(k.gt(n))throw new TypeError("second argument k must be less than or equal to first argument n");for(result=n.mul(0).add(1),i=n.minus(k).plus(1);i.lte(n);i=i.plus(1))result=result.times(i);return result}})}));function isPositiveInteger(n){return n.isInteger()&&n.gte(0)}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/pickRandom.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return createPickRandom}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/util/seededRNG.js"),dependencies=["typed","config","?on"],createPickRandom=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("pickRandom",dependencies,(_ref=>{var{typed:typed,config:config,on:on}=_ref,rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(config.randomSeed);return on&&on("config",(function(curr,prev){curr.randomSeed!==prev.randomSeed&&(rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(curr.randomSeed))})),typed("pickRandom",{"Array | Matrix":function ArrayMatrix(possibles){return _pickRandom(possibles,{})},"Array | Matrix, Object":function ArrayMatrixObject(possibles,options){return _pickRandom(possibles,options)},"Array | Matrix, number":function ArrayMatrixNumber(possibles,number){return _pickRandom(possibles,{number:number})},"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(possibles,weights){return _pickRandom(possibles,{weights:weights})},"Array | Matrix, Array | Matrix, number":function ArrayMatrixArrayMatrixNumber(possibles,weights,number){return _pickRandom(possibles,{number:number,weights:weights})},"Array | Matrix, number, Array | Matrix":function ArrayMatrixNumberArrayMatrix(possibles,number,weights){return _pickRandom(possibles,{number:number,weights:weights})}});function _pickRandom(possibles,_ref2){var{number:number,weights:weights,elementWise:elementWise=!0}=_ref2,single=void 0===number;single&&(number=1);var createMatrix=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(possibles)?possibles.create:(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(weights)?weights.create:null;possibles=possibles.valueOf(),weights&&(weights=weights.valueOf()),!0===elementWise&&(possibles=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.xH)(possibles),weights=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.xH)(weights));var totalWeights=0;if(void 0!==weights){if(weights.length!==possibles.length)throw new Error("Weights must have the same length as possibles");for(var i=0,len=weights.length;i{var{typed:typed,config:config,on:on}=_ref,rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(config.randomSeed);return on&&on("config",(function(curr,prev){curr.randomSeed!==prev.randomSeed&&(rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(curr.randomSeed))})),typed(name,{"":()=>_random(0,1),number:max=>_random(0,max),"number, number":(min,max)=>_random(min,max),"Array | Matrix":size=>_randomMatrix(size,0,1),"Array | Matrix, number":(size,max)=>_randomMatrix(size,0,max),"Array | Matrix, number, number":(size,min,max)=>_randomMatrix(size,min,max)});function _randomMatrix(size,min,max){var res=(0,_util_randomMatrix_js__WEBPACK_IMPORTED_MODULE_2__.A)(size.valueOf(),(()=>_random(min,max)));return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(size)?size.create(res):res}function _random(min,max){return min+rng()*(max-min)}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/randomInt.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return createRandomInt}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_util_randomMatrix_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/util/randomMatrix.js"),_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/util/seededRNG.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),dependencies=["typed","config","?on"],createRandomInt=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("randomInt",dependencies,(_ref=>{var{typed:typed,config:config,on:on}=_ref,rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(config.randomSeed);return on&&on("config",(function(curr,prev){curr.randomSeed!==prev.randomSeed&&(rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(curr.randomSeed))})),typed("randomInt",{"":()=>_randomInt(0,1),number:max=>_randomInt(0,max),"number, number":(min,max)=>_randomInt(min,max),"Array | Matrix":size=>_randomIntMatrix(size,0,1),"Array | Matrix, number":(size,max)=>_randomIntMatrix(size,0,max),"Array | Matrix, number, number":(size,min,max)=>_randomIntMatrix(size,min,max)});function _randomIntMatrix(size,min,max){var res=(0,_util_randomMatrix_js__WEBPACK_IMPORTED_MODULE_2__.A)(size.valueOf(),(()=>_randomInt(min,max)));return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(size)?size.create(res):res}function _randomInt(min,max){return Math.floor(min+rng()*(max-min))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/util/randomMatrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function randomMatrix(size,random){var data=[];if((size=size.slice(0)).length>1)for(var i=0,length=size.shift();i{var{typed:typed,config:config,equalScalar:equalScalar,matrix:matrix,BigNumber:BigNumber,Fraction:Fraction,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo05xSfSf=(0,_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_2__.b)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),compareUnits=(0,_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__.g)({typed:typed});return typed(name,createCompareNumber({typed:typed,config:config}),{"boolean, boolean":function booleanBoolean(x,y){return x===y?0:x>y?1:-1},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,y,config.epsilon)?new BigNumber(0):new BigNumber(x.cmp(y))},"Fraction, Fraction":function FractionFraction(x,y){return new Fraction(x.compare(y))},"Complex, Complex":function ComplexComplex(){throw new TypeError("No ordering relation is defined for complex numbers")}},compareUnits,matrixAlgorithmSuite({SS:matAlgo05xSfSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createCompareNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed(name,{"number, number":function numberNumber(x,y){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.RI)(x,y,config.epsilon)?0:x>y?1:-1}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compareNatural.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createCompareNatural}});var javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/javascript-natural-sort/naturalSort.js"),javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0__),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),name="compareNatural",dependencies=["typed","compare"],createCompareNatural=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)(name,dependencies,(_ref=>{var{typed:typed,compare:compare}=_ref,compareBooleans=compare.signatures["boolean,boolean"];return typed(name,{"any, any":function _compareNatural(x,y){var c,typeX=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kM)(x),typeY=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kM)(y);if(!("number"!==typeX&&"BigNumber"!==typeX&&"Fraction"!==typeX||"number"!==typeY&&"BigNumber"!==typeY&&"Fraction"!==typeY))return"0"!==(c=compare(x,y)).toString()?c>0?1:-1:javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0___default()(typeX,typeY);var matTypes=["Array","DenseMatrix","SparseMatrix"];if(matTypes.includes(typeX)||matTypes.includes(typeY))return 0!==(c=compareMatricesAndArrays(_compareNatural,x,y))?c:javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0___default()(typeX,typeY);if(typeX!==typeY)return javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0___default()(typeX,typeY);if("Complex"===typeX)return function compareComplexNumbers(x,y){if(x.re>y.re)return 1;if(x.rey.im)return 1;if(x.imy.length?1:x.length{var{typed:typed,matrix:matrix,concat:concat}=_ref,matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_2__.L)({typed:typed,matrix:matrix,concat:concat});return typed(name,_utils_string_js__WEBPACK_IMPORTED_MODULE_0__.cd,matrixAlgorithmSuite({elop:_utils_string_js__WEBPACK_IMPORTED_MODULE_0__.cd,Ds:!0}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compareUnits.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{g:function(){return createCompareUnits}});var createCompareUnits=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("compareUnits",["typed"],(_ref=>{var{typed:typed}=_ref;return{"Unit, Unit":typed.referToSelf((self=>(x,y)=>{if(!x.equalBase(y))throw new Error("Cannot compare units with different base");return typed.find(self,[x.valueType(),y.valueType()])(x.value,y.value)}))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/deepEqual.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createDeepEqual}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","equal"],createDeepEqual=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("deepEqual",dependencies,(_ref=>{var{typed:typed,equal:equal}=_ref;return typed("deepEqual",{"any, any":function anyAny(x,y){return _deepEqual(x.valueOf(),y.valueOf())}});function _deepEqual(x,y){if(Array.isArray(x)){if(Array.isArray(y)){var len=x.length;if(len!==y.length)return!1;for(var i=0;i{var{typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("equal",createEqualNumber({typed:typed,equalScalar:equalScalar}),matrixAlgorithmSuite({elop:equalScalar,SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createEqualNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("equal",["typed","equalScalar"],(_ref2=>{var{typed:typed,equalScalar:equalScalar}=_ref2;return typed("equal",{"any, any":function anyAny(x,y){return null===x?null===y:null===y?null===x:void 0===x?void 0===y:void 0===y?void 0===x:equalScalar(x,y)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/equalScalar.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{f:function(){return createEqualScalar}});var nearlyEqual=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),number=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),factory=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js");var relational_compareUnits=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compareUnits.js"),dependencies=["typed","config"],createEqualScalar=(0,factory.d5)("equalScalar",dependencies,(_ref=>{var{typed:typed,config:config}=_ref;return typed("equalScalar",{"boolean, boolean":function booleanBoolean(x,y){return x===y},"number, number":function numberNumber(x,y){return(0,number.RI)(x,y,config.epsilon)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.eq(y)||(0,nearlyEqual.R)(x,y,config.epsilon)},"Fraction, Fraction":function FractionFraction(x,y){return x.equals(y)},"Complex, Complex":function ComplexComplex(x,y){return function complexEquals(x,y,epsilon){return(0,number.RI)(x.re,y.re,epsilon)&&(0,number.RI)(x.im,y.im,epsilon)}(x,y,config.epsilon)}},(0,relational_compareUnits.g)({typed:typed}))}));(0,factory.d5)("equalScalar",["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed("equalScalar",{"number, number":function numberNumber(x,y){return(0,number.RI)(x,y,config.epsilon)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/equalText.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createEqualText}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","compareText","isZero"],createEqualText=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("equalText",dependencies,(_ref=>{var{typed:typed,compareText:compareText,isZero:isZero}=_ref;return typed("equalText",{"any, any":function anyAny(x,y){return isZero(compareText(x,y))}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/larger.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createLarger}});var _utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compareUnits.js"),name="larger",dependencies=["typed","config","matrix","DenseMatrix","concat"],createLarger=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),compareUnits=(0,_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__.g)({typed:typed});return typed(name,createLargerNumber({typed:typed,config:config}),{"boolean, boolean":(x,y)=>x>y,"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.gt(y)&&!(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,y,config.epsilon)},"Fraction, Fraction":(x,y)=>1===x.compare(y),"Complex, Complex":function ComplexComplex(){throw new TypeError("No ordering relation is defined for complex numbers")}},compareUnits,matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createLargerNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed(name,{"number, number":function numberNumber(x,y){return x>y&&!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.RI)(x,y,config.epsilon)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/largerEq.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{A:function(){return createLargerEq}});var _utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compareUnits.js"),name="largerEq",dependencies=["typed","config","matrix","DenseMatrix","concat"],createLargerEq=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),compareUnits=(0,_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__.g)({typed:typed});return typed(name,createLargerEqNumber({typed:typed,config:config}),{"boolean, boolean":(x,y)=>x>=y,"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.gte(y)||(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,y,config.epsilon)},"Fraction, Fraction":(x,y)=>-1!==x.compare(y),"Complex, Complex":function ComplexComplex(){throw new TypeError("No ordering relation is defined for complex numbers")}},compareUnits,matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createLargerEqNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed(name,{"number, number":function numberNumber(x,y){return x>=y||(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.RI)(x,y,config.epsilon)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/smaller.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{r:function(){return createSmaller}});var _utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compareUnits.js"),name="smaller",dependencies=["typed","config","matrix","DenseMatrix","concat"],createSmaller=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),compareUnits=(0,_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__.g)({typed:typed});return typed(name,createSmallerNumber({typed:typed,config:config}),{"boolean, boolean":(x,y)=>x-1===x.compare(y),"Complex, Complex":function ComplexComplex(x,y){throw new TypeError("No ordering relation is defined for complex numbers")}},compareUnits,matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createSmallerNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed(name,{"number, number":function numberNumber(x,y){return x{var{typed:typed,config:config,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),compareUnits=(0,_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__.g)({typed:typed});return typed(name,createSmallerEqNumber({typed:typed,config:config}),{"boolean, boolean":(x,y)=>x<=y,"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.lte(y)||(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,y,config.epsilon)},"Fraction, Fraction":(x,y)=>1!==x.compare(y),"Complex, Complex":function ComplexComplex(){throw new TypeError("No ordering relation is defined for complex numbers")}},compareUnits,matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createSmallerEqNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed(name,{"number, number":function numberNumber(x,y){return x<=y||(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.RI)(x,y,config.epsilon)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/unequal.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{I:function(){return createUnequal}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),name="unequal",dependencies=["typed","config","equalScalar","matrix","DenseMatrix","concat"],createUnequal=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,config:config,equalScalar:equalScalar,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed(name,createUnequalNumber({typed:typed,equalScalar:equalScalar}),matrixAlgorithmSuite({elop:function _unequal(x,y){return!equalScalar(x,y)},SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createUnequalNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","equalScalar"],(_ref2=>{var{typed:typed,equalScalar:equalScalar}=_ref2;return typed(name,{"any, any":function anyAny(x,y){return null===x?null!==y:null===y?null!==x:void 0===x?void 0!==y:void 0===y?void 0!==x:!equalScalar(x,y)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setCartesian.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createSetCartesian}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","size","subset","compareNatural","Index","DenseMatrix"],createSetCartesian=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("setCartesian",dependencies,(_ref=>{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index,DenseMatrix:DenseMatrix}=_ref;return typed("setCartesian",{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){var result=[];if(0!==subset(size(a1),new Index(0))&&0!==subset(size(a2),new Index(0))){var b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a1)?a1:a1.toArray()).sort(compareNatural),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a2)?a2:a2.toArray()).sort(compareNatural);result=[];for(var i=0;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index,DenseMatrix:DenseMatrix}=_ref;return typed(name,{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){var result;if(0===subset(size(a1),new Index(0)))result=[];else{if(0===subset(size(a2),new Index(0)))return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a1.toArray());var inb2,b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a1)?a1:a1.toArray()).sort(compareNatural)),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a2)?a2:a2.toArray()).sort(compareNatural));result=[];for(var i=0;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index,DenseMatrix:DenseMatrix}=_ref;return typed("setDistinct",{"Array | Matrix":function ArrayMatrix(a){var result;if(0===subset(size(a),new Index(0)))result=[];else{var b=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a)?a:a.toArray()).sort(compareNatural);(result=[]).push(b[0]);for(var i=1;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index,DenseMatrix:DenseMatrix}=_ref;return typed("setIntersect",{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){var result;if(0===subset(size(a1),new Index(0))||0===subset(size(a2),new Index(0)))result=[];else{var b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a1)?a1:a1.toArray()).sort(compareNatural)),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a2)?a2:a2.toArray()).sort(compareNatural));result=[];for(var i=0;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index}=_ref;return typed("setIsSubset",{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){if(0===subset(size(a1),new Index(0)))return!0;if(0===subset(size(a2),new Index(0)))return!1;for(var inb2,b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a1)?a1:a1.toArray()).sort(compareNatural)),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a2)?a2:a2.toArray()).sort(compareNatural)),i=0;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index}=_ref;return typed(name,{"number | BigNumber | Fraction | Complex, Array | Matrix":function numberBigNumberFractionComplexArrayMatrix(e,a){if(0===subset(size(a),new Index(0)))return 0;for(var b=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a)?a:a.toArray()),count=0,i=0;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index}=_ref;return typed("setPowerset",{"Array | Matrix":function ArrayMatrix(a){if(0===subset(size(a),new Index(0)))return[];for(var b=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a)?a:a.toArray()).sort(compareNatural),result=[],number=0;number.toString(2).length<=b.length;)result.push(_subset(b,number.toString(2).split("").reverse())),number++;return function _sort(array){for(var temp=[],i=array.length-1;i>0;i--)for(var j=0;jarray[j+1].length&&(temp=array[j],array[j]=array[j+1],array[j+1]=temp);return array}(result)}});function _subset(array,bitarray){for(var result=[],i=0;i{var{typed:typed,compareNatural:compareNatural}=_ref;return typed("setSize",{"Array | Matrix":function ArrayMatrix(a){return Array.isArray(a)?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a).length:(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a.toArray()).length},"Array | Matrix, boolean":function ArrayMatrixBoolean(a,unique){if(!1===unique||0===a.length)return Array.isArray(a)?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a).length:(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a.toArray()).length;for(var b=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a)?a:a.toArray()).sort(compareNatural),count=1,i=1;i{var{typed:typed,size:size,concat:concat,subset:subset,setDifference:setDifference,Index:Index}=_ref;return typed(name,{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){if(0===subset(size(a1),new Index(0)))return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a2);if(0===subset(size(a2),new Index(0)))return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a1);var b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a1),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a2);return concat(setDifference(b1,b2),setDifference(b2,b1))}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setUnion.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{r:function(){return createSetUnion}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","size","concat","subset","setIntersect","setSymDifference","Index"],createSetUnion=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("setUnion",dependencies,(_ref=>{var{typed:typed,size:size,concat:concat,subset:subset,setIntersect:setIntersect,setSymDifference:setSymDifference,Index:Index}=_ref;return typed("setUnion",{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){if(0===subset(size(a1),new Index(0)))return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a2);if(0===subset(size(a2),new Index(0)))return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a1);var b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a1),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a2);return concat(setSymDifference(b1,b2),setIntersect(b1,b2))}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/signal/freqz.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createFreqz}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","add","multiply","Complex","divide","matrix"],createFreqz=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("freqz",dependencies,(_ref=>{var{typed:typed,add:add,multiply:multiply,Complex:Complex,divide:divide,matrix:matrix}=_ref;return typed("freqz",{"Array, Array":function ArrayArray(b,a){return _freqz(b,a,createBins(512))},"Array, Array, Array":function ArrayArrayArray(b,a,w){return _freqz(b,a,w)},"Array, Array, number":function ArrayArrayNumber(b,a,w){if(w<0)throw new Error("w must be a positive number");return _freqz(b,a,createBins(w))},"Matrix, Matrix":function MatrixMatrix(b,a){var _w=createBins(512),{w:w,h:h}=_freqz(b.valueOf(),a.valueOf(),_w);return{w:matrix(w),h:matrix(h)}},"Matrix, Matrix, Matrix":function MatrixMatrixMatrix(b,a,w){var{h:h}=_freqz(b.valueOf(),a.valueOf(),w.valueOf());return{h:matrix(h),w:matrix(w)}},"Matrix, Matrix, number":function MatrixMatrixNumber(b,a,w){if(w<0)throw new Error("w must be a positive number");var _w=createBins(w),{h:h}=_freqz(b.valueOf(),a.valueOf(),_w);return{h:matrix(h),w:matrix(_w)}}});function _freqz(b,a,w){for(var num=[],den=[],i=0;i{var{typed:typed,add:add,multiply:multiply,Complex:Complex,number:number}=_ref;return typed("zpk2tf",{"Array,Array,number":function ArrayArrayNumber(z,p,k){return _zpk2tf(z,p,k)},"Array,Array":function ArrayArray(z,p){return _zpk2tf(z,p,1)},"Matrix,Matrix,number":function MatrixMatrixNumber(z,p,k){return _zpk2tf(z.valueOf(),p.valueOf(),k)},"Matrix,Matrix":function MatrixMatrix(z,p){return _zpk2tf(z.valueOf(),p.valueOf(),1)}});function _zpk2tf(z,p,k){z.some((el=>"BigNumber"===el.type))&&(z=z.map((el=>number(el)))),p.some((el=>"BigNumber"===el.type))&&(p=p.map((el=>number(el))));for(var num=[Complex(1,0)],den=[Complex(1,0)],i=0;i=0&&i-j{var{typed:typed}=_ref;return typed("name",{number:function number(x){var y=Math.abs(x);return y>=MAX_NUM?(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.Xx)(x):y<=THRESH?(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.Xx)(x)*function erf1(y){var i,ysq=y*y,xnum=P[0][4]*ysq,xden=ysq;for(i=0;i<3;i+=1)xnum=(xnum+P[0][i])*ysq,xden=(xden+Q[0][i])*ysq;return y*(xnum+P[0][3])/(xden+Q[0][3])}(y):y<=4?(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.Xx)(x)*(1-function erfc2(y){var i,xnum=P[1][8]*y,xden=y;for(i=0;i<7;i+=1)xnum=(xnum+P[1][i])*y,xden=(xden+Q[1][i])*y;var result=(xnum+P[1][7])/(xden+Q[1][7]),ysq=parseInt(16*y)/16,del=(y-ysq)*(y+ysq);return Math.exp(-ysq*ysq)*Math.exp(-del)*result}(y)):(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.Xx)(x)*(1-function erfc3(y){var i,ysq=1/(y*y),xnum=P[2][5]*ysq,xden=ysq;for(i=0;i<4;i+=1)xnum=(xnum+P[2][i])*ysq,xden=(xden+Q[2][i])*ysq;var result=ysq*(xnum+P[2][4])/(xden+Q[2][4]);result=(SQRPI-result)/y,ysq=parseInt(16*y)/16;var del=(y-ysq)*(y+ysq);return Math.exp(-ysq*ysq)*Math.exp(-del)*result}(y))},"Array | Matrix":typed.referToSelf((self=>n=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(n,self)))})})),THRESH=.46875,SQRPI=.5641895835477563,P=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,2.1531153547440383e-8],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,.0006587491615298378,.016315387137302097]],Q=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],MAX_NUM=Math.pow(2,53)},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/special/zeta.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{I:function(){return createZeta}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","config","multiply","pow","divide","factorial","equal","smallerEq","isNegative","gamma","sin","subtract","add","?Complex","?BigNumber","pi"],createZeta=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("zeta",dependencies,(_ref=>{var{typed:typed,config:config,multiply:multiply,pow:pow,divide:divide,factorial:factorial,equal:equal,smallerEq:smallerEq,isNegative:isNegative,gamma:gamma,sin:sin,subtract:subtract,add:add,Complex:Complex,BigNumber:_BigNumber,pi:pi}=_ref;return typed("zeta",{number:s=>zetaNumeric(s,(value=>value),(()=>20)),BigNumber:s=>zetaNumeric(s,(value=>new _BigNumber(value)),(()=>Math.abs(Math.log10(config.epsilon)))),Complex:function zetaComplex(s){if(0===s.re&&0===s.im)return new Complex(-.5);if(1===s.re)return new Complex(NaN,NaN);if(s.re===1/0&&0===s.im)return new Complex(1);if(s.im===1/0||s.re===-1/0)return new Complex(NaN,NaN);return zeta(s,(value=>value),(s=>Math.round(19.5+.9*Math.abs(s.im))),(s=>s.re))}});function zetaNumeric(s,createValue,determineDigits){return equal(s,0)?createValue(-.5):equal(s,1)?createValue(NaN):isFinite(s)?zeta(s,createValue,determineDigits,(s=>s)):isNegative(s)?createValue(NaN):createValue(1)}function zeta(s,createValue,determineDigits,getRe){var n=determineDigits(s);if(getRe(s)>-(n-1)/2)return function f(s,n,createValue){for(var c=divide(1,multiply(d(createValue(0),n),subtract(1,pow(2,subtract(1,s))))),S=createValue(0),k=createValue(1);smallerEq(k,n);k=add(k,1))S=add(S,divide(multiply((-1)**(k-1),d(k,n)),pow(k,s)));return multiply(c,S)}(s,createValue(n),createValue);var c=multiply(pow(2,s),pow(createValue(pi),subtract(s,1)));return c=multiply(c,sin(multiply(divide(createValue(pi),2),s))),c=multiply(c,gamma(subtract(1,s))),multiply(c,zeta(subtract(1,s),createValue,determineDigits,getRe))}function d(k,n){for(var S=k,j=k;smallerEq(j,n);j=add(j,1)){var factor=divide(multiply(factorial(add(n,subtract(j,1))),pow(4,j)),multiply(factorial(subtract(n,j)),factorial(multiply(2,j))));S=add(S,factor)}return multiply(n,S)}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/corr.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return createCorr}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","mean","sqrt","sum","add","subtract","multiply","pow","divide"],createCorr=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("corr",dependencies,(_ref=>{var{typed:typed,matrix:matrix,sqrt:sqrt,sum:sum,add:add,subtract:subtract,multiply:multiply,pow:pow,divide:divide}=_ref;return typed("corr",{"Array, Array":function ArrayArray(A,B){return _corr(A,B)},"Matrix, Matrix":function MatrixMatrix(A,B){var res=_corr(A.toArray(),B.toArray());return Array.isArray(res)?matrix(res):res}});function _corr(A,B){var correlations=[];if(Array.isArray(A[0])&&Array.isArray(B[0])){if(A.length!==B.length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same length.");for(var i=0;iadd(acc,multiply(x,B[index]))),0),sumXSquare=sum(A.map((x=>pow(x,2)))),sumYSquare=sum(B.map((y=>pow(y,2)))),numerator=subtract(multiply(n,sumXY),multiply(sumX,sumY)),denominator=sqrt(multiply(subtract(multiply(n,sumXSquare),pow(sumX,2)),subtract(multiply(n,sumYSquare),pow(sumY,2))));return divide(numerator,denominator)}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/cumsum.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:function(){return createCumSum}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_switch_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/switch.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_error_IndexError_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/IndexError.js"),name="cumsum",dependencies=["typed","add","unaryPlus"],createCumSum=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,add:add,unaryPlus:unaryPlus}=_ref;return typed(name,{Array:_cumsum,Matrix:function Matrix(matrix){return matrix.create(_cumsum(matrix.valueOf()))},"Array, number | BigNumber":_ncumSumDim,"Matrix, number | BigNumber":function MatrixNumberBigNumber(matrix,dim){return matrix.create(_ncumSumDim(matrix.valueOf(),dim))},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.CQ)(args))throw new TypeError("All values expected to be scalar in function cumsum");return _cumsum(args)}});function _cumsum(array){try{return _cumsummap(array)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,name)}}function _cumsummap(array){if(0===array.length)return[];for(var sums=[unaryPlus(array[0])],i=1;i=size.length)throw new _error_IndexError_js__WEBPACK_IMPORTED_MODULE_4__.c(dim,size.length);try{return _cumsumDimensional(array,dim)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,name)}}function _cumsumDimensional(mat,dim){var i,ret,tran;if(dim<=0){var initialValue=mat[0][0];if(Array.isArray(initialValue)){for(tran=(0,_utils_switch_js__WEBPACK_IMPORTED_MODULE_5__.c)(mat),ret=[],i=0;i{var{typed:typed,abs:abs,map:map,median:median,subtract:subtract}=_ref;return typed("mad",{"Array | Matrix":_mad,"...":function _(args){return _mad(args)}});function _mad(array){if(0===(array=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(array.valueOf())).length)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var med=median(array);return median(map(array,(function(value){return abs(subtract(value,med))})))}catch(err){throw err instanceof TypeError&&-1!==err.message.indexOf("median")?new TypeError(err.message.replace("median","mad")):(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"mad")}}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/max.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return createMax}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","config","numeric","larger"],createMax=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("max",dependencies,(_ref=>{var{typed:typed,config:config,numeric:numeric,larger:larger}=_ref;return typed("max",{"Array | Matrix":_max,"Array | Matrix, number | BigNumber":function ArrayMatrixNumberBigNumber(array,dim){return(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.u4)(array,dim.valueOf(),_largest)},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.CQ)(args))throw new TypeError("Scalar values expected in function max");return _max(args)}});function _largest(x,y){try{return larger(x,y)?x:y}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"max",y)}}function _max(array){var res;if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{isNaN(value)&&"number"==typeof value?res=NaN:(void 0===res||larger(value,res))&&(res=value)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"max",value)}})),void 0===res)throw new Error("Cannot calculate max of an empty array");return"string"==typeof res&&(res=numeric(res,config.number)),res}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/mean.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return createMean}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","add","divide"],createMean=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("mean",dependencies,(_ref=>{var{typed:typed,add:add,divide:divide}=_ref;return typed("mean",{"Array | Matrix":_mean,"Array | Matrix, number | BigNumber":function _nmeanDim(array,dim){try{var sum=(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.u4)(array,dim,add),s=Array.isArray(array)?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.aJ)(array):array.size();return divide(sum,s[dim])}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_3__.x)(err,"mean")}},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.CQ)(args))throw new TypeError("Scalar values expected in function mean");return _mean(args)}});function _mean(array){var sum,num=0;if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{sum=void 0===sum?value:add(sum,value),num++}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_3__.x)(err,"mean",value)}})),0===num)throw new Error("Cannot calculate the mean of an empty array");return divide(sum,num)}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/median.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return createMedian}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","add","divide","compare","partitionSelect"],createMedian=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("median",dependencies,(_ref=>{var{typed:typed,add:add,divide:divide,compare:compare,partitionSelect:partitionSelect}=_ref;function _median(array){try{var num=(array=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(array.valueOf())).length;if(0===num)throw new Error("Cannot calculate median of an empty array");if(num%2==0){for(var mid=num/2-1,right=partitionSelect(array,mid+1),left=array[mid],i=0;i0&&(left=array[i]);return middle2(left,right)}var m=partitionSelect(array,(num-1)/2);return middle(m)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"median")}}var middle=typed({"number | BigNumber | Complex | Unit":function numberBigNumberComplexUnit(value){return value}}),middle2=typed({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function numberBigNumberComplexUnitNumberBigNumberComplexUnit(left,right){return divide(add(left,right),2)}});return typed("median",{"Array | Matrix":_median,"Array | Matrix, number | BigNumber":function ArrayMatrixNumberBigNumber(array,dim){throw new Error("median(A, dim) is not yet supported")},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__.CQ)(args))throw new TypeError("Scalar values expected in function median");return _median(args)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/min.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return createMin}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","config","numeric","smaller"],createMin=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("min",dependencies,(_ref=>{var{typed:typed,config:config,numeric:numeric,smaller:smaller}=_ref;return typed("min",{"Array | Matrix":_min,"Array | Matrix, number | BigNumber":function ArrayMatrixNumberBigNumber(array,dim){return(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.u4)(array,dim.valueOf(),_smallest)},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.CQ)(args))throw new TypeError("Scalar values expected in function min");return _min(args)}});function _smallest(x,y){try{return smaller(x,y)?x:y}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"min",y)}}function _min(array){var min;if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{isNaN(value)&&"number"==typeof value?min=NaN:(void 0===min||smaller(value,min))&&(min=value)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"min",value)}})),void 0===min)throw new Error("Cannot calculate min of an empty array");return"string"==typeof min&&(min=numeric(min,config.number)),min}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/mode.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return createMode}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","isNaN","isNumeric"],createMode=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("mode",dependencies,(_ref=>{var{typed:typed,isNaN:isNaN,isNumeric:isNumeric}=_ref;return typed("mode",{"Array | Matrix":_mode,"...":function _(args){return _mode(args)}});function _mode(values){if(0===(values=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(values.valueOf())).length)throw new Error("Cannot calculate mode of an empty array");for(var count={},mode=[],max=0,i=0;imax&&(max=count[value],mode=[value])}return mode}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/prod.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return createProd}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","config","multiplyScalar","numeric"],createProd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("prod",dependencies,(_ref=>{var{typed:typed,config:config,multiplyScalar:multiplyScalar,numeric:numeric}=_ref;return typed("prod",{"Array | Matrix":_prod,"Array | Matrix, number | BigNumber":function ArrayMatrixNumberBigNumber(array,dim){throw new Error("prod(A, dim) is not yet supported")},"...":function _(args){return _prod(args)}});function _prod(array){var prod;if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{prod=void 0===prod?value:multiplyScalar(prod,value)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"prod",value)}})),"string"==typeof prod&&(prod=numeric(prod,config.number)),void 0===prod)throw new Error("Cannot calculate prod of an empty array");return prod}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/quantileSeq.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{y:function(){return createQuantileSeq}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_matrix_apply_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/apply.js"),dependencies=["typed","?bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],createQuantileSeq=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("quantileSeq",dependencies,(_ref=>{var{typed:typed,bignumber:bignumber,add:add,subtract:subtract,divide:divide,multiply:multiply,partitionSelect:partitionSelect,compare:compare,isInteger:isInteger,smaller:smaller,smallerEq:smallerEq,larger:larger}=_ref,apply=(0,_matrix_apply_js__WEBPACK_IMPORTED_MODULE_1__.j)({typed:typed,isInteger:isInteger});return typed("quantileSeq",{"Array | Matrix, number | BigNumber":(data,p)=>_quantileSeqProbNumber(data,p,!1),"Array | Matrix, number | BigNumber, number":(data,prob,dim)=>_quantileSeqDim(data,prob,!1,dim,_quantileSeqProbNumber),"Array | Matrix, number | BigNumber, boolean":_quantileSeqProbNumber,"Array | Matrix, number | BigNumber, boolean, number":(data,prob,sorted,dim)=>_quantileSeqDim(data,prob,sorted,dim,_quantileSeqProbNumber),"Array | Matrix, Array | Matrix":(data,p)=>_quantileSeqProbCollection(data,p,!1),"Array | Matrix, Array | Matrix, number":(data,prob,dim)=>_quantileSeqDim(data,prob,!1,dim,_quantileSeqProbCollection),"Array | Matrix, Array | Matrix, boolean":_quantileSeqProbCollection,"Array | Matrix, Array | Matrix, boolean, number":(data,prob,sorted,dim)=>_quantileSeqDim(data,prob,sorted,dim,_quantileSeqProbCollection)});function _quantileSeqDim(data,prob,sorted,dim,fn){return apply(data,dim,(x=>fn(x,prob,sorted)))}function _quantileSeqProbNumber(data,probOrN,sorted){var probArr,dataArr=data.valueOf();if(smaller(probOrN,0))throw new Error("N/prob must be non-negative");if(smallerEq(probOrN,1))return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.hj)(probOrN)?_quantileSeq(dataArr,probOrN,sorted):bignumber(_quantileSeq(dataArr,probOrN,sorted));if(larger(probOrN,1)){if(!isInteger(probOrN))throw new Error("N must be a positive integer");if(larger(probOrN,4294967295))throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var nPlusOne=add(probOrN,1);probArr=[];for(var i=0;smaller(i,probOrN);i++){var prob=divide(i+1,nPlusOne);probArr.push(_quantileSeq(dataArr,prob,sorted))}return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.hj)(probOrN)?probArr:bignumber(probArr)}}function _quantileSeqProbCollection(data,probOrN,sorted){for(var dataArr=data.valueOf(),probOrNArr=probOrN.valueOf(),probArr=[],i=0;i0&&(left=flat[i])}return add(multiply(left,subtract(1,fracPart)),multiply(right,fracPart))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/std.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return createStd}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),dependencies=["typed","map","sqrt","variance"],createStd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("std",dependencies,(_ref=>{var{typed:typed,map:map,sqrt:sqrt,variance:variance}=_ref;return typed("std",{"Array | Matrix":_std,"Array | Matrix, string":_std,"Array | Matrix, number | BigNumber":_std,"Array | Matrix, number | BigNumber, string":_std,"...":function _(args){return _std(args)}});function _std(array,normalization){if(0===array.length)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{var v=variance.apply(null,arguments);return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.uZ)(v)?map(v,sqrt):sqrt(v)}catch(err){throw err instanceof TypeError&&-1!==err.message.indexOf(" variance")?new TypeError(err.message.replace(" variance"," std")):err}}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/sum.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return createSum}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","config","add","numeric"],createSum=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sum",dependencies,(_ref=>{var{typed:typed,config:config,add:add,numeric:numeric}=_ref;return typed("sum",{"Array | Matrix":_sum,"Array | Matrix, number | BigNumber":function _nsumDim(array,dim){try{return(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.u4)(array,dim,add)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"sum")}},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.CQ)(args))throw new TypeError("Scalar values expected in function sum");return _sum(args)}});function _sum(array){var sum;return(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{sum=void 0===sum?value:add(sum,value)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"sum",value)}})),void 0===sum&&(sum=numeric(0,config.number)),"string"==typeof sum&&(sum=numeric(sum,config.number)),sum}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return improveErrorMessage}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js");function improveErrorMessage(err,fnName,value){var details;return-1!==String(err).indexOf("Unexpected type")?(details=arguments.length>2?" (type: "+(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_0__.kM)(value)+", value: "+JSON.stringify(value)+")":" (type: "+err.data.actual+")",new TypeError("Cannot calculate "+fnName+", unexpected type of argument"+details)):-1!==String(err).indexOf("complex numbers")?(details=arguments.length>2?" (type: "+(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_0__.kM)(value)+", value: "+JSON.stringify(value)+")":"",new TypeError("Cannot calculate "+fnName+", no ordering relation is defined for complex numbers"+details)):err}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/variance.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:function(){return createVariance}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","add","subtract","multiply","divide","apply","isNaN"],createVariance=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("variance",dependencies,(_ref=>{var{typed:typed,add:add,subtract:subtract,multiply:multiply,divide:divide,apply:apply,isNaN:isNaN}=_ref;return typed("variance",{"Array | Matrix":function ArrayMatrix(array){return _var(array,"unbiased")},"Array | Matrix, string":_var,"Array | Matrix, number | BigNumber":function ArrayMatrixNumberBigNumber(array,dim){return _varDim(array,dim,"unbiased")},"Array | Matrix, number | BigNumber, string":_varDim,"...":function _(args){return _var(args,"unbiased")}});function _var(array,normalization){var sum,num=0;if(0===array.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{sum=void 0===sum?value:add(sum,value),num++}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"variance",value)}})),0===num)throw new Error("Cannot calculate variance of an empty array");var mean=divide(sum,num);if(sum=void 0,(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){var diff=subtract(value,mean);sum=void 0===sum?multiply(diff,diff):add(sum,multiply(diff,diff))})),isNaN(sum))return sum;switch(normalization){case"uncorrected":return divide(sum,num);case"biased":return divide(sum,num+1);case"unbiased":var zero=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.l9)(sum)?sum.mul(0):0;return 1===num?zero:divide(sum,num-1);default:throw new Error('Unknown normalization "'+normalization+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function _varDim(array,dim,normalization){try{if(0===array.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return apply(array,dim,(x=>_var(x,normalization)))}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"variance")}}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/bin.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return createBin}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),createBin=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bin",["typed","format"],(_ref=>{var{typed:typed,format:format}=_ref;return typed("bin",{"number | BigNumber":function numberBigNumber(n){return format(n,{notation:"bin"})},"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(n,wordSize){return format(n,{notation:"bin",wordSize:wordSize})}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/format.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{l:function(){return createFormat}});var _utils_string_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createFormat=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("format",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("format",{any:_utils_string_js__WEBPACK_IMPORTED_MODULE_1__.WU,"any, Object | function | number | BigNumber":_utils_string_js__WEBPACK_IMPORTED_MODULE_1__.WU})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/hex.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createHex}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),createHex=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("hex",["typed","format"],(_ref=>{var{typed:typed,format:format}=_ref;return typed("hex",{"number | BigNumber":function numberBigNumber(n){return format(n,{notation:"hex"})},"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(n,wordSize){return format(n,{notation:"hex",wordSize:wordSize})}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/oct.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return createOct}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),createOct=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("oct",["typed","format"],(_ref=>{var{typed:typed,format:format}=_ref;return typed("oct",{"number | BigNumber":function numberBigNumber(n){return format(n,{notation:"oct"})},"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(n,wordSize){return format(n,{notation:"oct",wordSize:wordSize})}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/print.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return createPrint}});var _utils_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_print_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/print.js"),dependencies=["typed"],createPrint=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("print",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("print",{"string, Object | Array":_print,"string, Object | Array, number | Object":_print})}));function _print(template,values,options){return template.replace(_utils_print_js__WEBPACK_IMPORTED_MODULE_1__.k,(function(original,key){var keys=key.split("."),value=values[keys.shift()];for(void 0!==value&&value.isMatrix&&(value=value.toArray());keys.length&&void 0!==value;){var k=keys.shift();value=k?value[k]:value+"."}return void 0!==value?(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.HD)(value)?value:(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(value,options):original}))}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acos.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return createAcos}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","config","Complex"],createAcos=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acos",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex}=_ref;return typed("acos",{number:function number(x){return x>=-1&&x<=1||config.predictable?Math.acos(x):new Complex(x,0).acos()},Complex:function Complex(x){return x.acos()},BigNumber:function BigNumber(x){return x.acos()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acosh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return createAcosh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex"],createAcosh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acosh",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex}=_ref;return typed("acosh",{number:function number(x){return x>=1||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.cw)(x):x<=-1?new Complex(Math.log(Math.sqrt(x*x-1)-x),Math.PI):new Complex(x,0).acosh()},Complex:function Complex(x){return x.acosh()},BigNumber:function BigNumber(x){return x.acosh()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{_:function(){return createAcot}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","BigNumber"],createAcot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acot",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref;return typed("acot",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.y,Complex:function Complex(x){return x.acot()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).atan()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acoth.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createAcoth}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex","BigNumber"],createAcoth=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acoth",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex,BigNumber:_BigNumber}=_ref;return typed("acoth",{number:function number(x){return x>=1||x<=-1||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.LJ)(x):new Complex(x,0).acoth()},Complex:function Complex(x){return x.acoth()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).atanh()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acsc.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return createAcsc}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex","BigNumber"],createAcsc=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acsc",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex,BigNumber:_BigNumber}=_ref;return typed("acsc",{number:function number(x){return x<=-1||x>=1||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.VL)(x):new Complex(x,0).acsc()},Complex:function Complex(x){return x.acsc()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).asin()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acsch.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return createAcsch}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","BigNumber"],createAcsch=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acsch",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref;return typed("acsch",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.F4,Complex:function Complex(x){return x.acsch()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).asinh()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asec.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return createAsec}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex","BigNumber"],createAsec=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("asec",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex,BigNumber:_BigNumber}=_ref;return typed("asec",{number:function number(x){return x<=-1||x>=1||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.zq)(x):new Complex(x,0).asec()},Complex:function Complex(x){return x.asec()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).acos()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asech.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return createAsech}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex","BigNumber"],createAsech=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("asech",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex,BigNumber:_BigNumber}=_ref;return typed("asech",{number:function number(x){if(x<=1&&x>=-1||config.predictable){var xInv=1/x;if(xInv>0||config.predictable)return(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Pe)(x);var ret=Math.sqrt(xInv*xInv-1);return new Complex(Math.log(ret-xInv),Math.PI)}return new Complex(x,0).asech()},Complex:function Complex(x){return x.asech()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).acosh()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asin.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{K:function(){return createAsin}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","config","Complex"],createAsin=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("asin",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex}=_ref;return typed("asin",{number:function number(x){return x>=-1&&x<=1||config.predictable?Math.asin(x):new Complex(x,0).asin()},Complex:function Complex(x){return x.asin()},BigNumber:function BigNumber(x){return x.asin()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asinh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createAsinh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed"],createAsinh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("asinh",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("asinh",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Rm,Complex:function Complex(x){return x.asinh()},BigNumber:function BigNumber(x){return x.asinh()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/atan.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{a:function(){return createAtan}});var dependencies=["typed"],createAtan=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("atan",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("atan",{number:function number(x){return Math.atan(x)},Complex:function Complex(x){return x.atan()},BigNumber:function BigNumber(x){return x.atan()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/atan2.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return createAtan2}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo09xS0Sf_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo09xS0Sf.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","equalScalar","BigNumber","DenseMatrix","concat"],createAtan2=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("atan2",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,BigNumber:BigNumber,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__.$)({typed:typed}),matAlgo09xS0Sf=(0,_type_matrix_utils_matAlgo09xS0Sf_js__WEBPACK_IMPORTED_MODULE_3__.r)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__.L)({typed:typed,matrix:matrix,concat:concat});return typed("atan2",{"number, number":Math.atan2,"BigNumber, BigNumber":(y,x)=>BigNumber.atan2(y,x)},matrixAlgorithmSuite({scalar:"number | BigNumber",SS:matAlgo09xS0Sf,DS:matAlgo03xDSf,SD:matAlgo02xDS0,Ss:matAlgo11xS0s,sS:matAlgo12xSfs}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/atanh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{m:function(){return createAtanh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex"],createAtanh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("atanh",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex}=_ref;return typed("atanh",{number:function number(x){return x<=1&&x>=-1||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Sz)(x):new Complex(x,0).atanh()},Complex:function Complex(x){return x.atanh()},BigNumber:function BigNumber(x){return x.atanh()}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/cos.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createCos}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed"],createCos=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cos",dependencies,(_ref=>{var{typed:typed}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("cos",{number:Math.cos,"Complex | BigNumber":x=>x.cos()},trigUnit)}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/cosh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createCosh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["typed"],createCosh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cosh",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("cosh",{number:_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.f9,"Complex | BigNumber":x=>x.cosh()})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/cot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j:function(){return createCot}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed","BigNumber"],createCot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cot",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("cot",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__.Nw,Complex:x=>x.cot(),BigNumber:x=>new _BigNumber(1).div(x.tan())},trigUnit)}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/coth.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createCoth}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","BigNumber"],createCoth=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("coth",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref;return typed("coth",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.ws,Complex:x=>x.coth(),BigNumber:x=>new _BigNumber(1).div(x.tanh())})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/csc.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return createCsc}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed","BigNumber"],createCsc=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("csc",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("csc",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__.c$,Complex:x=>x.csc(),BigNumber:x=>new _BigNumber(1).div(x.sin())},trigUnit)}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/csch.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{_:function(){return createCsch}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","BigNumber"],createCsch=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("csch",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref;return typed("csch",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.zr,Complex:x=>x.csch(),BigNumber:x=>new _BigNumber(1).div(x.sinh())})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sec.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return createSec}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed","BigNumber"],createSec=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sec",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("sec",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__.wX,Complex:x=>x.sec(),BigNumber:x=>new _BigNumber(1).div(x.cos())},trigUnit)}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sech.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{g:function(){return createSech}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","BigNumber"],createSech=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sech",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref;return typed("sech",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.pL,Complex:x=>x.sech(),BigNumber:x=>new _BigNumber(1).div(x.cosh())})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sin.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return createSin}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed"],createSin=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sin",dependencies,(_ref=>{var{typed:typed}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("sin",{number:Math.sin,"Complex | BigNumber":x=>x.sin()},trigUnit)}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sinh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return createSinh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed"],createSinh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sinh",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("sinh",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.T$,"Complex | BigNumber":x=>x.sinh()})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/tan.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return createTan}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed"],createTan=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("tan",dependencies,(_ref=>{var{typed:typed}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("tan",{number:Math.tan,"Complex | BigNumber":x=>x.tan()},trigUnit)}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/tanh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return createTanh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["typed"],createTanh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("tanh",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("tanh",{number:_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.AE,"Complex | BigNumber":x=>x.tanh()})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return createTrigUnit}});var createTrigUnit=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("trigUnit",["typed"],(_ref=>{var{typed:typed}=_ref;return{Unit:typed.referToSelf((self=>x=>{if(!x.hasBase(x.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cot is no angle");return typed.find(self,x.valueType())(x.value)}))}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/unit/to.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createTo}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","concat"],createTo=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("to",dependencies,(_ref=>{var{typed:typed,matrix:matrix,concat:concat}=_ref;return typed("to",{"Unit, Unit | string":(x,unit)=>x.to(unit)},(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_1__.L)({typed:typed,matrix:matrix,concat:concat})({Ds:!0}))}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/clone.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createClone}});var _utils_object_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createClone=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("clone",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("clone",{any:_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/hasNumericValue.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return createHasNumericValue}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),name="hasNumericValue",dependencies=["typed","isNumeric"],createHasNumericValue=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,isNumeric:isNumeric}=_ref;return typed(name,{boolean:()=>!0,string:function string(x){return x.trim().length>0&&!isNaN(Number(x))},any:function any(x){return isNumeric(x)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isInteger.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return createIsInteger}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createIsInteger=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isInteger",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isInteger",{number:_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U,BigNumber:function BigNumber(x){return x.isInt()},Fraction:function Fraction(x){return 1===x.d&&isFinite(x.n)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isNaN.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return createIsNaN}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/utils.js"),dependencies=["typed"],createIsNaN=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isNaN",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isNaN",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.kU,BigNumber:function BigNumber(x){return x.isNaN()},Fraction:function Fraction(x){return!1},Complex:function Complex(x){return x.isNaN()},Unit:function Unit(x){return Number.isNaN(x.value)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isNegative.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return createIsNegative}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/utils.js"),dependencies=["typed"],createIsNegative=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isNegative",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isNegative",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Tk,BigNumber:function BigNumber(x){return x.isNeg()&&!x.isZero()&&!x.isNaN()},Fraction:function Fraction(x){return x.s<0},Unit:typed.referToSelf((self=>x=>typed.find(self,x.valueType())(x.value))),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isNumeric.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return createIsNumeric}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createIsNumeric=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isNumeric",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isNumeric",{"number | BigNumber | Fraction | boolean":()=>!0,"Complex | Unit | string | null | undefined | Node":()=>!1,"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isPositive.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return createIsPositive}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/utils.js"),dependencies=["typed"],createIsPositive=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isPositive",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isPositive",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.r,BigNumber:function BigNumber(x){return!x.isNeg()&&!x.isZero()&&!x.isNaN()},Fraction:function Fraction(x){return x.s>0&&x.n>0},Unit:typed.referToSelf((self=>x=>typed.find(self,x.valueType())(x.value))),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isPrime.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return createIsPrime}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createIsPrime=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isPrime",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isPrime",{number:function number(x){if(0*x!=0)return!1;if(x<=3)return x>1;if(x%2==0||x%3==0)return!1;for(var i=5;i*i<=x;i+=6)if(x%i==0||x%(i+2)==0)return!1;return!0},BigNumber:function BigNumber(n){if(0*n.toNumber()!=0)return!1;if(n.lte(3))return n.gt(1);if(n.mod(2).eq(0)||n.mod(3).eq(0))return!1;if(n.lt(Math.pow(2,32))){for(var x=n.toNumber(),i=5;i*i<=x;i+=6)if(x%i==0||x%(i+2)==0)return!1;return!0}function modPow(base,exponent,modulus){for(var accumulator=1;!exponent.eq(0);)exponent.mod(2).eq(0)?(exponent=exponent.div(2),base=base.mul(base).mod(modulus)):(exponent=exponent.sub(1),accumulator=base.mul(accumulator).mod(modulus));return accumulator}for(var Decimal=n.constructor.clone({precision:2*n.toFixed(0).length}),r=0,d=(n=new Decimal(n)).sub(1);d.mod(2).eq(0);)d=d.div(2),r+=1;var bases=null;if(n.lt("3317044064679887385961981"))bases=[2,3,5,7,11,13,17,19,23,29,31,37,41].filter((x=>xx=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isZero.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{t:function(){return createIsZero}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/utils.js"),dependencies=["typed"],createIsZero=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isZero",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isZero",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.hG,BigNumber:function BigNumber(x){return x.isZero()},Complex:function Complex(x){return 0===x.re&&0===x.im},Fraction:function Fraction(x){return 1===x.d&&0===x.n},Unit:typed.referToSelf((self=>x=>typed.find(self,x.valueType())(x.value))),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/numeric.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createNumeric}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/noop.js"),dependencies=["number","?bignumber","?fraction"],createNumeric=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("numeric",dependencies,(_ref=>{var{number:_number,bignumber:bignumber,fraction:fraction}=_ref,validInputTypes={string:!0,number:!0,BigNumber:!0,Fraction:!0},validOutputTypes={number:x=>_number(x),BigNumber:bignumber?x=>bignumber(x):_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__.R3,Fraction:fraction?x=>fraction(x):_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__.nG};return function numeric(value){var outputType=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(void 0!==(arguments.length>2?arguments[2]:void 0))throw new SyntaxError("numeric() takes one or two arguments");var inputType=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kM)(value);if(!(inputType in validInputTypes))throw new TypeError("Cannot convert "+value+' of type "'+inputType+'"; valid input types are '+Object.keys(validInputTypes).join(", "));if(!(outputType in validOutputTypes))throw new TypeError("Cannot convert "+value+' to type "'+outputType+'"; valid output types are '+Object.keys(validOutputTypes).join(", "));return outputType===inputType?value:validOutputTypes[outputType](value)}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/typeOf.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return createTypeOf}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),dependencies=["typed"],createTypeOf=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("typeOf",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("typeOf",{any:_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/json/replacer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createReplacer}});var dependencies=[],createReplacer=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("replacer",dependencies,(()=>function replacer(key,value){return"number"!=typeof value||isFinite(value)&&!isNaN(value)?value:{mathjs:"number",value:String(value)}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/arithmetic.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$y:function(){return signNumber},B:function(){return expm1Number},Dv:function(){return cubeNumber},Ft:function(){return addNumber},G6:function(){return multiplyNumber},GC:function(){return unaryMinusNumber},K4:function(){return lcmNumber},OS:function(){return logNumber},Q1:function(){return absNumber},QV:function(){return roundNumber},Ue:function(){return powNumber},YS:function(){return nthRootNumber},_$:function(){return squareNumber},hz:function(){return subtractNumber},iO:function(){return log2Number},iU:function(){return unaryPlusNumber},ih:function(){return cbrtNumber},qX:function(){return expNumber},vU:function(){return log10Number},y9:function(){return xgcdNumber}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),n1="number",n2="number, number";function absNumber(a){return Math.abs(a)}function addNumber(a,b){return a+b}function subtractNumber(a,b){return a-b}function multiplyNumber(a,b){return a*b}function unaryMinusNumber(x){return-x}function unaryPlusNumber(x){return x}function cbrtNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.eK)(x)}function cubeNumber(x){return x*x*x}function expNumber(x){return Math.exp(x)}function expm1Number(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.t$)(x)}function lcmNumber(a,b){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(a)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(b))throw new Error("Parameters in function lcm must be integer numbers");if(0===a||0===b)return 0;for(var t,prod=a*b;0!==b;)b=a%(t=b),a=t;return Math.abs(prod/a)}function logNumber(x,y){return y?Math.log(x)/Math.log(y):Math.log(x)}function log10Number(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.mv)(x)}function log2Number(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.k3)(x)}function nthRootNumber(a){var root=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,inv=root<0;if(inv&&(root=-root),0===root)throw new Error("Root must be non-zero");if(a<0&&Math.abs(root)%2!=1)throw new Error("Root must be odd when a is negative.");if(0===a)return inv?1/0:0;if(!isFinite(a))return inv?0:a;var x=Math.pow(Math.abs(a),1/root);return x=a<0?-x:x,inv?1/x:x}function signNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.Xx)(x)}function squareNumber(x){return x*x}function xgcdNumber(a,b){var t,q,r,x=0,lastx=1,y=1,lasty=0;if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(a)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(b))throw new Error("Parameters in function xgcd must be integer numbers");for(;b;)r=a-(q=Math.floor(a/b))*b,t=x,x=lastx-q*x,lastx=t,t=y,y=lasty-q*y,lasty=t,a=b,b=r;return a<0?[-a,-lastx,-lasty]:[a,a?lastx:0,lasty]}function powNumber(x,y){return x*x<1&&y===1/0||x*x>1&&y===-1/0?0:Math.pow(x,y)}function roundNumber(value){var decimals=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(decimals)||decimals<0||decimals>15)throw new Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat((0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.FH)(value,decimals))}absNumber.signature=n1,addNumber.signature=n2,subtractNumber.signature=n2,multiplyNumber.signature=n2,unaryMinusNumber.signature=n1,unaryPlusNumber.signature=n1,cbrtNumber.signature=n1,cubeNumber.signature=n1,expNumber.signature=n1,expm1Number.signature=n1,lcmNumber.signature=n2,log10Number.signature=n1,log2Number.signature=n1,signNumber.signature=n1,squareNumber.signature=n1,xgcdNumber.signature=n2,powNumber.signature=n2},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/bitwise.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{LE:function(){return bitOrNumber},Lz:function(){return rightArithShiftNumber},NA:function(){return bitNotNumber},ZG:function(){return leftShiftNumber},ji:function(){return rightLogShiftNumber},qC:function(){return bitAndNumber},xS:function(){return bitXorNumber}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),n2="number, number";function bitAndNumber(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(y))throw new Error("Integers expected in function bitAnd");return x&y}function bitNotNumber(x){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x))throw new Error("Integer expected in function bitNot");return~x}function bitOrNumber(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(y))throw new Error("Integers expected in function bitOr");return x|y}function bitXorNumber(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(y))throw new Error("Integers expected in function bitXor");return x^y}function leftShiftNumber(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(y))throw new Error("Integers expected in function leftShift");return x<>y}function rightLogShiftNumber(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(y))throw new Error("Integers expected in function rightLogShift");return x>>>y}bitAndNumber.signature=n2,bitNotNumber.signature="number",bitOrNumber.signature=n2,bitXorNumber.signature=n2,leftShiftNumber.signature=n2,rightArithShiftNumber.signature=n2,rightLogShiftNumber.signature=n2},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/logical.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{FO:function(){return andNumber},RY:function(){return orNumber},kl:function(){return xorNumber},xY:function(){return notNumber}});var n2="number, number";function notNumber(x){return!x}function orNumber(x,y){return!(!x&&!y)}function xorNumber(x,y){return!!x!=!!y}function andNumber(x,y){return!(!x||!y)}notNumber.signature="number",orNumber.signature=n2,xorNumber.signature=n2,andNumber.signature=n2},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/probability.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Oo:function(){return lgammaNumber},Yc:function(){return gammaG},lG:function(){return gammaP},uS:function(){return lnSqrt2PI},wZ:function(){return gammaNumber}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_product_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/product.js");function gammaNumber(n){var x;if((0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(n))return n<=0?isFinite(n)?1/0:NaN:n>171?1/0:(0,_utils_product_js__WEBPACK_IMPORTED_MODULE_1__.O)(1,n-1);if(n<.5)return Math.PI/(Math.sin(Math.PI*n)*gammaNumber(1-n));if(n>=171.35)return 1/0;if(n>85){var twoN=n*n,threeN=twoN*n,fourN=threeN*n,fiveN=fourN*n;return Math.sqrt(2*Math.PI/n)*Math.pow(n/Math.E,n)*(1+1/(12*n)+1/(288*twoN)-139/(51840*threeN)-571/(2488320*fourN)+163879/(209018880*fiveN)+5246819/(75246796800*fiveN*n))}--n,x=gammaP[0];for(var i=1;i=1;i--)sum+=lgammaSeries[i]/(n+i);return lnSqrt2PI+(n+.5)*Math.log(base)-base+Math.log(sum)}lgammaNumber.signature="number"},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/trigonometry.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F4:function(){return acschNumber},LJ:function(){return acothNumber},Nw:function(){return cotNumber},Pe:function(){return asechNumber},Rm:function(){return asinhNumber},Sz:function(){return atanhNumber},T$:function(){return sinhNumber},VL:function(){return acscNumber},c$:function(){return cscNumber},cw:function(){return acoshNumber},pL:function(){return sechNumber},wX:function(){return secNumber},ws:function(){return cothNumber},y:function(){return acotNumber},zq:function(){return asecNumber},zr:function(){return cschNumber}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),n1="number";function acoshNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.__)(x)}function acotNumber(x){return Math.atan(1/x)}function acothNumber(x){return isFinite(x)?(Math.log((x+1)/x)+Math.log(x/(x-1)))/2:0}function acscNumber(x){return Math.asin(1/x)}function acschNumber(x){var xInv=1/x;return Math.log(xInv+Math.sqrt(xInv*xInv+1))}function asecNumber(x){return Math.acos(1/x)}function asechNumber(x){var xInv=1/x,ret=Math.sqrt(xInv*xInv-1);return Math.log(ret+xInv)}function asinhNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.Vf)(x)}function atanhNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.C8)(x)}function cotNumber(x){return 1/Math.tan(x)}function cothNumber(x){var e=Math.exp(2*x);return(e+1)/(e-1)}function cscNumber(x){return 1/Math.sin(x)}function cschNumber(x){return 0===x?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(x)-Math.exp(-x)))*(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.Xx)(x)}function secNumber(x){return 1/Math.cos(x)}function sechNumber(x){return 2/(Math.exp(x)+Math.exp(-x))}function sinhNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.R_)(x)}acoshNumber.signature=n1,acotNumber.signature=n1,acothNumber.signature=n1,acscNumber.signature=n1,acschNumber.signature=n1,asecNumber.signature=n1,asechNumber.signature=n1,asinhNumber.signature=n1,atanhNumber.signature=n1,cotNumber.signature=n1,cothNumber.signature=n1,cscNumber.signature=n1,cschNumber.signature=n1,secNumber.signature=n1,sechNumber.signature=n1,sinhNumber.signature=n1},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/plain/number/utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Tk:function(){return isNegativeNumber},hG:function(){return isZeroNumber},kU:function(){return isNaNNumber},r:function(){return isPositiveNumber}});__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js");var n1="number";function isNegativeNumber(x){return x<0}function isPositiveNumber(x){return x>0}function isZeroNumber(x){return 0===x}function isNaNNumber(x){return Number.isNaN(x)}isNegativeNumber.signature=n1,isPositiveNumber.signature=n1,isZeroNumber.signature=n1,isNaNNumber.signature=n1},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/bignumber/BigNumber.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createBigNumberClass}});var decimal_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/decimal.js/decimal.mjs"),dependencies=["?on","config"],createBigNumberClass=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("BigNumber",dependencies,(_ref=>{var{on:on,config:config}=_ref,BigNumber=decimal_js__WEBPACK_IMPORTED_MODULE_0__.Z.clone({precision:config.precision,modulo:decimal_js__WEBPACK_IMPORTED_MODULE_0__.Z.EUCLID});return BigNumber.prototype=Object.create(BigNumber.prototype),BigNumber.prototype.type="BigNumber",BigNumber.prototype.isBigNumber=!0,BigNumber.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},BigNumber.fromJSON=function(json){return new BigNumber(json.value)},on&&on("config",(function(curr,prev){curr.precision!==prev.precision&&BigNumber.config({precision:curr.precision})})),BigNumber}),{isClass:!0})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/bignumber/function/bignumber.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:function(){return createBignumber}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed","BigNumber"],createBignumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bignumber",dependencies,(_ref=>{var{typed:typed,BigNumber:BigNumber}=_ref;return typed("bignumber",{"":function _(){return new BigNumber(0)},number:function number(x){return new BigNumber(x+"")},string:function string(x){var wordSizeSuffixMatch=x.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(wordSizeSuffixMatch){var size=wordSizeSuffixMatch[2],n=BigNumber(wordSizeSuffixMatch[1]),twoPowSize=new BigNumber(2).pow(Number(size));if(n.gt(twoPowSize.sub(1)))throw new SyntaxError('String "'.concat(x,'" is out of range'));var twoPowSizeSubOne=new BigNumber(2).pow(Number(size)-1);return n.gte(twoPowSizeSubOne)?n.sub(twoPowSize):n}return new BigNumber(x)},BigNumber:function BigNumber(x){return x},Unit:typed.referToSelf((self=>x=>{var clone=x.clone();return clone.value=self(x.value),clone})),Fraction:function Fraction(x){return new BigNumber(x.n).div(x.d).times(x.s)},null:function _null(x){return new BigNumber(0)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/boolean.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return createBoolean}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"],createBoolean=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("boolean",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("boolean",{"":function _(){return!1},boolean:function boolean(x){return x},number:function number(x){return!!x},null:function _null(x){return!1},BigNumber:function BigNumber(x){return!x.isZero()},string:function string(x){var lcase=x.toLowerCase();if("true"===lcase)return!0;if("false"===lcase)return!1;var num=Number(x);if(""!==x&&!isNaN(num))return!!num;throw new Error('Cannot convert "'+x+'" to a boolean')},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/complex/Complex.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createComplexClass}});var complex_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/complex.js/complex.js"),complex_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(complex_js__WEBPACK_IMPORTED_MODULE_0__),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),dependencies=[],createComplexClass=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("Complex",dependencies,(()=>(Object.defineProperty(complex_js__WEBPACK_IMPORTED_MODULE_0___default(),"name",{value:"Complex"}),complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.constructor=complex_js__WEBPACK_IMPORTED_MODULE_0___default(),complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.type="Complex",complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.isComplex=!0,complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.format=function(options){var im=this.im,re=this.re,strRe=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.WU)(this.re,options),strIm=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.WU)(this.im,options),precision=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.hj)(options)?options:options?options.precision:null;if(null!==precision){var epsilon=Math.pow(10,-precision);Math.abs(re/im)b.re?1:a.reb.im?1:a.im{var{typed:typed,Complex:Complex}=_ref;return typed("complex",{"":function _(){return Complex.ZERO},number:function number(x){return new Complex(x,0)},"number, number":function numberNumber(re,im){return new Complex(re,im)},"BigNumber, BigNumber":function BigNumberBigNumber(re,im){return new Complex(re.toNumber(),im.toNumber())},Fraction:function Fraction(x){return new Complex(x.valueOf(),0)},Complex:function Complex(x){return x.clone()},string:function string(x){return Complex(x)},null:function _null(x){return Complex(0)},Object:function Object(x){if("re"in x&&"im"in x)return new Complex(x.re,x.im);if("r"in x&&"phi"in x||"abs"in x&&"arg"in x)return new Complex(x);throw new Error("Expected object with properties (re and im) or (r and phi) or (abs and arg)")},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/fraction/Fraction.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return createFractionClass}});var fraction_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/fraction.js/fraction.js"),fraction_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(fraction_js__WEBPACK_IMPORTED_MODULE_0__),dependencies=[],createFractionClass=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("Fraction",dependencies,(()=>(Object.defineProperty(fraction_js__WEBPACK_IMPORTED_MODULE_0___default(),"name",{value:"Fraction"}),fraction_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.constructor=fraction_js__WEBPACK_IMPORTED_MODULE_0___default(),fraction_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.type="Fraction",fraction_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.isFraction=!0,fraction_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},fraction_js__WEBPACK_IMPORTED_MODULE_0___default().fromJSON=function(json){return new(fraction_js__WEBPACK_IMPORTED_MODULE_0___default())(json)},fraction_js__WEBPACK_IMPORTED_MODULE_0___default())),{isClass:!0})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/fraction/function/fraction.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createFraction}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed","Fraction"],createFraction=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("fraction",dependencies,(_ref=>{var{typed:typed,Fraction:Fraction}=_ref;return typed("fraction",{number:function number(x){if(!isFinite(x)||isNaN(x))throw new Error(x+" cannot be represented as a fraction");return new Fraction(x)},string:function string(x){return new Fraction(x)},"number, number":function numberNumber(numerator,denominator){return new Fraction(numerator,denominator)},null:function _null(x){return new Fraction(0)},BigNumber:function BigNumber(x){return new Fraction(x.toString())},Fraction:function Fraction(x){return x},Unit:typed.referToSelf((self=>x=>{var clone=x.clone();return clone.value=self(x.value),clone})),Object:function Object(x){return new Fraction(x)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/DenseMatrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return createDenseMatrixClass}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/DimensionError.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_function_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/function.js"),dependencies=["Matrix"],createDenseMatrixClass=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("DenseMatrix",dependencies,(_ref=>{var{Matrix:Matrix}=_ref;function DenseMatrix(data,datatype){if(!(this instanceof DenseMatrix))throw new SyntaxError("Constructor must be called with the new operator");if(datatype&&!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.HD)(datatype))throw new Error("Invalid datatype: "+datatype);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(data))"DenseMatrix"===data.type?(this._data=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(data._data),this._size=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(data._size),this._datatype=datatype||data._datatype):(this._data=data.toArray(),this._size=data.size(),this._datatype=datatype||data._datatype);else if(data&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.data)&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.size))this._data=data.data,this._size=data.size,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Gu)(this._data,this._size),this._datatype=datatype||data.datatype;else if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data))this._data=preprocess(data),this._size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.aJ)(this._data),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Gu)(this._data,this._size),this._datatype=datatype;else{if(data)throw new TypeError("Unsupported type of data ("+(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(data)+")");this._data=[],this._size=[0],this._datatype=datatype}}function _getSubmatrix(data,index,dims,dim){var last=dim===dims-1,range=index.dimension(dim);return last?range.map((function(i){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(i,data.length),data[i]})).valueOf():range.map((function(i){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(i,data.length),_getSubmatrix(data[i],index,dims,dim+1)})).valueOf()}function _setSubmatrix(data,index,submatrix,dims,dim){var last=dim===dims-1,range=index.dimension(dim);last?range.forEach((function(dataIndex,subIndex){(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(dataIndex),data[dataIndex]=submatrix[subIndex[0]]})):range.forEach((function(dataIndex,subIndex){(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(dataIndex),_setSubmatrix(data[dataIndex],index,submatrix[subIndex[0]],dims,dim+1)}))}function _resize(matrix,size,defaultValue){if(0===size.length){for(var v=matrix._data;(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(v);)v=v[0];return v}return matrix._size=size.slice(0),matrix._data=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.SI)(matrix._data,matrix._size,defaultValue),matrix}function _fit(matrix,size,defaultValue){for(var newSize=matrix._size.slice(0),changed=!1;newSize.lengthnewSize[i]&&(newSize[i]=size[i],changed=!0);changed&&_resize(matrix,newSize,defaultValue)}function preprocess(data){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(data)?preprocess(data.valueOf()):(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data)?data.map(preprocess):data}return DenseMatrix.prototype=new Matrix,DenseMatrix.prototype.createDenseMatrix=function(data,datatype){return new DenseMatrix(data,datatype)},Object.defineProperty(DenseMatrix,"name",{value:"DenseMatrix"}),DenseMatrix.prototype.constructor=DenseMatrix,DenseMatrix.prototype.type="DenseMatrix",DenseMatrix.prototype.isDenseMatrix=!0,DenseMatrix.prototype.getDataType=function(){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.$q)(this._data,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)},DenseMatrix.prototype.storage=function(){return"dense"},DenseMatrix.prototype.datatype=function(){return this._datatype},DenseMatrix.prototype.create=function(data,datatype){return new DenseMatrix(data,datatype)},DenseMatrix.prototype.subset=function(index,replacement,defaultValue){switch(arguments.length){case 1:return function _get(matrix,index){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.dh)(index))throw new TypeError("Invalid index");var isScalar=index.isScalar();if(isScalar)return matrix.get(index.min());var size=index.size();if(size.length!==matrix._size.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_4__.m(size.length,matrix._size.length);for(var min=index.min(),max=index.max(),i=0,ii=matrix._size.length;i");var size=index.max().map((function(i){return i+1}));_fit(matrix,size,defaultValue);var dims=iSize.length,dim=0;_setSubmatrix(matrix._data,index,submatrix,dims,dim)}return matrix}(this,index,replacement,defaultValue);default:throw new SyntaxError("Wrong number of arguments")}},DenseMatrix.prototype.get=function(index){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(index))throw new TypeError("Array expected");if(index.length!==this._size.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_4__.m(index.length,this._size.length);for(var x=0;xArray.isArray(value)&&1===value.length?value[0]:value));return _resize(copy?this.clone():this,sizeArray,defaultValue)},DenseMatrix.prototype.reshape=function(size,copy){var m=copy?this.clone():this;m._data=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.XL)(m._data,size);var currentLength=m._size.reduce(((length,size)=>length*size));return m._size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.eu)(size,currentLength),m},DenseMatrix.prototype.clone=function(){return new DenseMatrix({data:(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(this._data),size:(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(this._size),datatype:this._datatype})},DenseMatrix.prototype.size=function(){return this._size.slice(0)},DenseMatrix.prototype.map=function(callback){var me=this,args=(0,_utils_function_js__WEBPACK_IMPORTED_MODULE_5__.oV)(callback),data=function recurse(value,index){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(value)?value.map((function(child,i){return recurse(child,index.concat(i))})):1===args?callback(value):2===args?callback(value,index):callback(value,index,me)}(this._data,[]);return new DenseMatrix(data,void 0!==this._datatype?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.$q)(data,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM):void 0)},DenseMatrix.prototype.forEach=function(callback){var me=this;!function recurse(value,index){(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(value)?value.forEach((function(child,i){recurse(child,index.concat(i))})):callback(value,index,me)}(this._data,[])},DenseMatrix.prototype[Symbol.iterator]=function*(){yield*function*recurse(value,index){if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(value))for(var i=0;i[row[i]]));result.push(new DenseMatrix(col,_this._datatype))},i=0;i0?k:0,kSub=k<0?-k:0,rows=this._size[0],columns=this._size[1],n=Math.min(rows-kSub,columns-kSuper),data=[],i=0;i0?k:0,kSub=k<0?-k:0,rows=size[0],columns=size[1],n=Math.min(rows-kSub,columns-kSuper);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(value)){if(value.length!==n)throw new Error("Invalid value array length");_value=function _value(i){return value[i]}}else if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(value)){var ms=value.size();if(1!==ms.length||ms[0]!==n)throw new Error("Invalid matrix length");_value=function _value(i){return value.get([i])}}else _value=function _value(){return value};defaultValue||(defaultValue=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(_value(0))?_value(0).mul(0):0);var data=[];if(size.length>0){data=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.SI)(data,size,defaultValue);for(var d=0;d{var{smaller:smaller,larger:larger}=_ref,oneOverLogPhi=1/Math.log((1+Math.sqrt(5))/2);function FibonacciHeap(){if(!(this instanceof FibonacciHeap))throw new SyntaxError("Constructor must be called with the new operator");this._minimum=null,this._size=0}function _cut(minimum,node,parent){node.left.right=node.right,node.right.left=node.left,parent.degree--,parent.child===node&&(parent.child=node.right),0===parent.degree&&(parent.child=null),node.left=minimum,node.right=minimum.right,minimum.right=node,node.right.left=node,node.parent=null,node.mark=!1}function _cascadingCut(minimum,node){var parent=node.parent;parent&&(node.mark?(_cut(minimum,node,parent),_cascadingCut(parent)):node.mark=!0)}FibonacciHeap.prototype.type="FibonacciHeap",FibonacciHeap.prototype.isFibonacciHeap=!0,FibonacciHeap.prototype.insert=function(key,value){var node={key:key,value:value,degree:0};if(this._minimum){var minimum=this._minimum;node.left=minimum,node.right=minimum.right,minimum.right=node,node.right.left=node,smaller(key,minimum.key)&&(this._minimum=node)}else node.left=node,node.right=node,this._minimum=node;return this._size++,node},FibonacciHeap.prototype.size=function(){return this._size},FibonacciHeap.prototype.clear=function(){this._minimum=null,this._size=0},FibonacciHeap.prototype.isEmpty=function(){return 0===this._size},FibonacciHeap.prototype.extractMinimum=function(){var node=this._minimum;if(null===node)return node;for(var minimum=this._minimum,numberOfChildren=node.degree,x=node.child;numberOfChildren>0;){var tempRight=x.right;x.left.right=x.right,x.right.left=x.left,x.left=minimum,x.right=minimum.right,minimum.right=x,x.right.left=x,x.parent=null,x=tempRight,numberOfChildren--}return node.left.right=node.right,node.right.left=node.left,minimum=node===node.right?null:function _findMinimumNode(minimum,size){var y,arraySize=Math.floor(Math.log(size)*oneOverLogPhi)+1,array=new Array(arraySize),numRoots=0,x=minimum;if(x)for(numRoots++,x=x.right;x!==minimum;)numRoots++,x=x.right;for(;numRoots>0;){for(var d=x.degree,next=x.right;y=array[d];){if(larger(x.key,y.key)){var temp=y;y=x,x=temp}_linkNodes(y,x),array[d]=null,d++}array[d]=x,x=next,numRoots--}minimum=null;for(var i=0;i{var{smaller:smaller,DenseMatrix:DenseMatrix}=_ref;function ImmutableDenseMatrix(data,datatype){if(!(this instanceof ImmutableDenseMatrix))throw new SyntaxError("Constructor must be called with the new operator");if(datatype&&!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.HD)(datatype))throw new Error("Invalid datatype: "+datatype);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(data)||(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data)){var matrix=new DenseMatrix(data,datatype);this._data=matrix._data,this._size=matrix._size,this._datatype=matrix._datatype,this._min=null,this._max=null}else if(data&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.data)&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.size))this._data=data.data,this._size=data.size,this._datatype=data.datatype,this._min=void 0!==data.min?data.min:null,this._max=void 0!==data.max?data.max:null;else{if(data)throw new TypeError("Unsupported type of data ("+(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(data)+")");this._data=[],this._size=[0],this._datatype=datatype,this._min=null,this._max=null}}return ImmutableDenseMatrix.prototype=new DenseMatrix,ImmutableDenseMatrix.prototype.type="ImmutableDenseMatrix",ImmutableDenseMatrix.prototype.isImmutableDenseMatrix=!0,ImmutableDenseMatrix.prototype.subset=function(index){switch(arguments.length){case 1:var m=DenseMatrix.prototype.subset.call(this,index);return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(m)?new ImmutableDenseMatrix({data:m._data,size:m._size,datatype:m._datatype}):m;case 2:case 3:throw new Error("Cannot invoke set subset on an Immutable Matrix instance");default:throw new SyntaxError("Wrong number of arguments")}},ImmutableDenseMatrix.prototype.set=function(){throw new Error("Cannot invoke set on an Immutable Matrix instance")},ImmutableDenseMatrix.prototype.resize=function(){throw new Error("Cannot invoke resize on an Immutable Matrix instance")},ImmutableDenseMatrix.prototype.reshape=function(){throw new Error("Cannot invoke reshape on an Immutable Matrix instance")},ImmutableDenseMatrix.prototype.clone=function(){return new ImmutableDenseMatrix({data:(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(this._data),size:(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(this._size),datatype:this._datatype})},ImmutableDenseMatrix.prototype.toJSON=function(){return{mathjs:"ImmutableDenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},ImmutableDenseMatrix.fromJSON=function(json){return new ImmutableDenseMatrix(json)},ImmutableDenseMatrix.prototype.swapRows=function(){throw new Error("Cannot invoke swapRows on an Immutable Matrix instance")},ImmutableDenseMatrix.prototype.min=function(){if(null===this._min){var m=null;this.forEach((function(v){(null===m||smaller(v,m))&&(m=v)})),this._min=null!==m?m:void 0}return this._min},ImmutableDenseMatrix.prototype.max=function(){if(null===this._max){var m=null;this.forEach((function(v){(null===m||smaller(m,v))&&(m=v)})),this._max=null!==m?m:void 0}return this._max},ImmutableDenseMatrix}),{isClass:!0})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/Matrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{K:function(){return createMatrixClass}});var dependencies=[],createMatrixClass=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("Matrix",dependencies,(()=>{function Matrix(){if(!(this instanceof Matrix))throw new SyntaxError("Constructor must be called with the new operator")}return Matrix.prototype.type="Matrix",Matrix.prototype.isMatrix=!0,Matrix.prototype.storage=function(){throw new Error("Cannot invoke storage on a Matrix interface")},Matrix.prototype.datatype=function(){throw new Error("Cannot invoke datatype on a Matrix interface")},Matrix.prototype.create=function(data,datatype){throw new Error("Cannot invoke create on a Matrix interface")},Matrix.prototype.subset=function(index,replacement,defaultValue){throw new Error("Cannot invoke subset on a Matrix interface")},Matrix.prototype.get=function(index){throw new Error("Cannot invoke get on a Matrix interface")},Matrix.prototype.set=function(index,value,defaultValue){throw new Error("Cannot invoke set on a Matrix interface")},Matrix.prototype.resize=function(size,defaultValue){throw new Error("Cannot invoke resize on a Matrix interface")},Matrix.prototype.reshape=function(size,defaultValue){throw new Error("Cannot invoke reshape on a Matrix interface")},Matrix.prototype.clone=function(){throw new Error("Cannot invoke clone on a Matrix interface")},Matrix.prototype.size=function(){throw new Error("Cannot invoke size on a Matrix interface")},Matrix.prototype.map=function(callback,skipZeros){throw new Error("Cannot invoke map on a Matrix interface")},Matrix.prototype.forEach=function(callback){throw new Error("Cannot invoke forEach on a Matrix interface")},Matrix.prototype[Symbol.iterator]=function(){throw new Error("Cannot iterate a Matrix interface")},Matrix.prototype.toArray=function(){throw new Error("Cannot invoke toArray on a Matrix interface")},Matrix.prototype.valueOf=function(){throw new Error("Cannot invoke valueOf on a Matrix interface")},Matrix.prototype.format=function(options){throw new Error("Cannot invoke format on a Matrix interface")},Matrix.prototype.toString=function(){throw new Error("Cannot invoke toString on a Matrix interface")},Matrix}),{isClass:!0})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/MatrixIndex.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return createIndexClass}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["ImmutableDenseMatrix","getMatrixDataType"],createIndexClass=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("Index",dependencies,(_ref=>{var{ImmutableDenseMatrix:ImmutableDenseMatrix,getMatrixDataType:getMatrixDataType}=_ref;function Index(ranges){if(!(this instanceof Index))throw new SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._sourceSize=[],this._isScalar=!0;for(var i=0,ii=arguments.length;i{bool&&indexOfNumbers.push(idx)})),indexOfNumbers}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/Range.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return createRangeClass}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),dependencies=[],createRangeClass=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("Range",dependencies,(()=>{function Range(start,end,step){if(!(this instanceof Range))throw new SyntaxError("Constructor must be called with the new operator");var hasStart=null!=start,hasEnd=null!=end,hasStep=null!=step;if(hasStart)if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(start))start=start.toNumber();else if("number"!=typeof start)throw new TypeError("Parameter start must be a number");if(hasEnd)if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(end))end=end.toNumber();else if("number"!=typeof end)throw new TypeError("Parameter end must be a number");if(hasStep)if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(step))step=step.toNumber();else if("number"!=typeof step)throw new TypeError("Parameter step must be a number");this.start=hasStart?parseFloat(start):0,this.end=hasEnd?parseFloat(end):0,this.step=hasStep?parseFloat(step):1}return Range.prototype.type="Range",Range.prototype.isRange=!0,Range.parse=function(str){if("string"!=typeof str)return null;var nums=str.split(":").map((function(arg){return parseFloat(arg)}));if(nums.some((function(num){return isNaN(num)})))return null;switch(nums.length){case 2:return new Range(nums[0],nums[1]);case 3:return new Range(nums[0],nums[2],nums[1]);default:return null}},Range.prototype.clone=function(){return new Range(this.start,this.end,this.step)},Range.prototype.size=function(){var len=0,start=this.start,step=this.step,diff=this.end-start;return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.Xx)(step)===(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.Xx)(diff)?len=Math.ceil(diff/step):0===diff&&(len=0),isNaN(len)&&(len=0),[len]},Range.prototype.min=function(){var size=this.size()[0];return size>0?this.step>0?this.start:this.start+(size-1)*this.step:void 0},Range.prototype.max=function(){var size=this.size()[0];return size>0?this.step>0?this.start+(size-1)*this.step:this.start:void 0},Range.prototype.forEach=function(callback){var x=this.start,step=this.step,end=this.end,i=0;if(step>0)for(;xend;)callback(x,[i],this),x+=step,i++},Range.prototype.map=function(callback){var array=[];return this.forEach((function(value,index,obj){array[index[0]]=callback(value,index,obj)})),array},Range.prototype.toArray=function(){var array=[];return this.forEach((function(value,index){array[index[0]]=value})),array},Range.prototype.valueOf=function(){return this.toArray()},Range.prototype.format=function(options){var str=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.WU)(this.start,options);return 1!==this.step&&(str+=":"+(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.WU)(this.step,options)),str+=":"+(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.WU)(this.end,options)},Range.prototype.toString=function(){return this.format()},Range.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},Range.fromJSON=function(json){return new Range(json.start,json.end,json.step)},Range}),{isClass:!0})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/Spa.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{W:function(){return createSpaClass}});var dependencies=["addScalar","equalScalar","FibonacciHeap"],createSpaClass=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("Spa",dependencies,(_ref=>{var{addScalar:addScalar,equalScalar:equalScalar,FibonacciHeap:FibonacciHeap}=_ref;function Spa(){if(!(this instanceof Spa))throw new SyntaxError("Constructor must be called with the new operator");this._values=[],this._heap=new FibonacciHeap}return Spa.prototype.type="Spa",Spa.prototype.isSpa=!0,Spa.prototype.set=function(i,v){if(this._values[i])this._values[i].value=v;else{var node=this._heap.insert(i,v);this._values[i]=node}},Spa.prototype.get=function(i){var node=this._values[i];return node?node.value:0},Spa.prototype.accumulate=function(i,v){var node=this._values[i];node?node.value=addScalar(node.value,v):(node=this._heap.insert(i,v),this._values[i]=node)},Spa.prototype.forEach=function(from,to,callback){var heap=this._heap,values=this._values,nodes=[],node=heap.extractMinimum();for(node&&nodes.push(node);node&&node.key<=to;)node.key>=from&&(equalScalar(node.value,0)||callback(node.key,node.value,this)),(node=heap.extractMinimum())&&nodes.push(node);for(var i=0;i{var{typed:typed,equalScalar:equalScalar,Matrix:Matrix}=_ref;function SparseMatrix(data,datatype){if(!(this instanceof SparseMatrix))throw new SyntaxError("Constructor must be called with the new operator");if(datatype&&!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.HD)(datatype))throw new Error("Invalid datatype: "+datatype);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(data))!function _createFromMatrix(matrix,source,datatype){"SparseMatrix"===source.type?(matrix._values=source._values?(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(source._values):void 0,matrix._index=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(source._index),matrix._ptr=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(source._ptr),matrix._size=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(source._size),matrix._datatype=datatype||source._datatype):_createFromArray(matrix,source.valueOf(),datatype||source._datatype)}(this,data,datatype);else if(data&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.index)&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.ptr)&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.size))this._values=data.values,this._index=data.index,this._ptr=data.ptr,this._size=data.size,this._datatype=datatype||data.datatype;else if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data))_createFromArray(this,data,datatype);else{if(data)throw new TypeError("Unsupported type of data ("+(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(data)+")");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=datatype}}function _createFromArray(matrix,data,datatype){matrix._values=[],matrix._index=[],matrix._ptr=[],matrix._datatype=datatype;var rows=data.length,columns=0,eq=equalScalar,zero=0;if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.HD)(datatype)&&(eq=typed.find(equalScalar,[datatype,datatype])||equalScalar,zero=typed.convert(0,datatype)),rows>0){var j=0;do{matrix._ptr.push(matrix._index.length);for(var i=0;ic){for(j=c;jr){if(ins){var n=0;for(j=0;jrows-1&&(matrix._values.splice(k,1),matrix._index.splice(k,1),d++)}matrix._ptr[j]=matrix._values.length}return matrix._size[0]=rows,matrix._size[1]=columns,matrix}function _toArray(values,index,ptr,size,copy){var i,j,rows=size[0],columns=size[1],a=[];for(i=0;i");if(1===iSize.length){index.dimension(0).forEach((function(dataIndex,subIndex){(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(dataIndex),matrix.set([dataIndex,0],submatrix[subIndex[0]],defaultValue)}))}else{var firstDimensionRange=index.dimension(0),secondDimensionRange=index.dimension(1);firstDimensionRange.forEach((function(firstDataIndex,firstSubIndex){(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(firstDataIndex),secondDimensionRange.forEach((function(secondDataIndex,secondSubIndex){(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(secondDataIndex),matrix.set([firstDataIndex,secondDataIndex],submatrix[firstSubIndex[0]][secondSubIndex[0]],defaultValue)}))}))}}return matrix}(this,index,replacement,defaultValue);default:throw new SyntaxError("Wrong number of arguments")}},SparseMatrix.prototype.get=function(index){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(index))throw new TypeError("Array expected");if(index.length!==this._size.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_4__.m(index.length,this._size.length);if(!this._values)throw new Error("Cannot invoke get on a Pattern only matrix");var i=index[0],j=index[1];(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(i,this._size[0]),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(j,this._size[1]);var k=_getValueIndex(i,this._ptr[j],this._ptr[j+1],this._index);return krows-1||j>columns-1)&&(_resize(this,Math.max(i+1,rows),Math.max(j+1,columns),defaultValue),rows=this._size[0],columns=this._size[1]),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(i,rows),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(j,columns);var k=_getValueIndex(i,this._ptr[j],this._ptr[j+1],this._index);return kArray.isArray(value)&&1===value.length?value[0]:value));if(2!==sizeArray.length)throw new Error("Only two dimensions matrix are supported");return sizeArray.forEach((function(value){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(value)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_5__.U)(value)||value<0)throw new TypeError("Invalid size, must contain positive integers (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_6__.WU)(sizeArray)+")")})),_resize(copy?this.clone():this,sizeArray[0],sizeArray[1],defaultValue)},SparseMatrix.prototype.reshape=function(sizes,copy){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(sizes))throw new TypeError("Array expected");if(2!==sizes.length)throw new Error("Sparse matrices can only be reshaped in two dimensions");sizes.forEach((function(value){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(value)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_5__.U)(value)||value<=-2||0===value)throw new TypeError("Invalid size, must contain positive integers or -1 (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_6__.WU)(sizes)+")")}));var currentLength=this._size[0]*this._size[1];if(currentLength!==(sizes=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.eu)(sizes,currentLength))[0]*sizes[1])throw new Error("Reshaping sparse matrix will result in the wrong number of elements");var m=copy?this.clone():this;if(this._size[0]===sizes[0]&&this._size[1]===sizes[1])return m;for(var colIndex=[],i=0;i=minRow&&i<=maxRow&&invoke(matrix._values[k],i-minRow,j-minColumn)}else{for(var _values={},_k=k0;_k "+(this._values?(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_6__.WU)(this._values[k],options):"X")}return str},SparseMatrix.prototype.toString=function(){return(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_6__.WU)(this.toArray())},SparseMatrix.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},SparseMatrix.prototype.diagonal=function(k){if(k){if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(k)&&(k=k.toNumber()),!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(k)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_5__.U)(k))throw new TypeError("The parameter k must be an integer number")}else k=0;var kSuper=k>0?k:0,kSub=k<0?-k:0,rows=this._size[0],columns=this._size[1],n=Math.min(rows-kSub,columns-kSuper),values=[],index=[],ptr=[];ptr[0]=0;for(var j=kSuper;j0?k:0,kSub=k<0?-k:0,rows=size[0],columns=size[1],n=Math.min(rows-kSub,columns-kSuper);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(value)){if(value.length!==n)throw new Error("Invalid value array length");_value=function _value(i){return value[i]}}else if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(value)){var ms=value.size();if(1!==ms.length||ms[0]!==n)throw new Error("Invalid matrix length");_value=function _value(i){return value.get([i])}}else _value=function _value(){return value};for(var values=[],index=[],ptr=[],j=0;j=0&&i=k1||index[ky]!==y)){var vx=values?values[kx]:void 0;index.splice(ky,0,y),values&&values.splice(ky,0,vx),index.splice(ky<=kx?kx+1:kx,1),values&&values.splice(ky<=kx?kx+1:kx,1)}else if(ky=k1||index[kx]!==x)){var vy=values?values[ky]:void 0;index.splice(kx,0,x),values&&values.splice(kx,0,vy),index.splice(kx<=ky?ky+1:ky,1),values&&values.splice(kx<=ky?ky+1:ky,1)}}},SparseMatrix}),{isClass:!0})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/function/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return createIndex}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","Index"],createIndex=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("index",dependencies,(_ref=>{var{typed:typed,Index:Index}=_ref;return typed("index",{"...number | string | BigNumber | Range | Array | Matrix":function numberStringBigNumberRangeArrayMatrix(args){var ranges=args.map((function(arg){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(arg)?arg.toNumber():(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(arg)||(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(arg)?arg.map((function(elem){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(elem)?elem.toNumber():elem})):arg})),res=new Index;return Index.apply(res,ranges),res}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/function/matrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createMatrix}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","Matrix","DenseMatrix","SparseMatrix"],createMatrix=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("matrix",dependencies,(_ref=>{var{typed:typed,Matrix:Matrix,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix}=_ref;return typed("matrix",{"":function _(){return _create([])},string:function string(format){return _create([],format)},"string, string":function stringString(format,datatype){return _create([],format,datatype)},Array:function Array(data){return _create(data)},Matrix:function Matrix(data){return _create(data,data.storage())},"Array | Matrix, string":_create,"Array | Matrix, string, string":_create});function _create(data,format,datatype){if("dense"===format||"default"===format||void 0===format)return new DenseMatrix(data,datatype);if("sparse"===format)return new SparseMatrix(data,datatype);throw new TypeError("Unknown matrix type "+JSON.stringify(format)+".")}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/function/sparse.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return createSparse}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","SparseMatrix"],createSparse=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sparse",dependencies,(_ref=>{var{typed:typed,SparseMatrix:SparseMatrix}=_ref;return typed("sparse",{"":function _(){return new SparseMatrix([])},string:function string(datatype){return new SparseMatrix([],datatype)},"Array | Matrix":function ArrayMatrix(data){return new SparseMatrix(data)},"Array | Matrix, string":function ArrayMatrixString(data,datatype){return new SparseMatrix(data,datatype)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createMatAlgo01xDSid}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/DimensionError.js"),dependencies=["typed"],createMatAlgo01xDSid=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("matAlgo01xDSid",dependencies,(_ref=>{var{typed:typed}=_ref;return function algorithm1(denseMatrix,sparseMatrix,callback,inverse){var adata=denseMatrix._data,asize=denseMatrix._size,adt=denseMatrix._datatype||denseMatrix.getDataType(),bvalues=sparseMatrix._values,bindex=sparseMatrix._index,bptr=sparseMatrix._ptr,bsize=sparseMatrix._size,bdt=sparseMatrix._datatype||void 0===sparseMatrix._data?sparseMatrix._datatype:sparseMatrix.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");if(!bvalues)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var i,j,rows=asize[0],columns=asize[1],dt="string"==typeof adt&&"mixed"!==adt&&adt===bdt?adt:void 0,cf=dt?typed.find(callback,[dt,dt]):callback,cdata=[];for(i=0;i{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo02xDS0(denseMatrix,sparseMatrix,callback,inverse){var adata=denseMatrix._data,asize=denseMatrix._size,adt=denseMatrix._datatype||denseMatrix.getDataType(),bvalues=sparseMatrix._values,bindex=sparseMatrix._index,bptr=sparseMatrix._ptr,bsize=sparseMatrix._size,bdt=sparseMatrix._datatype||void 0===sparseMatrix._data?sparseMatrix._datatype:sparseMatrix.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");if(!bvalues)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));for(var cvalues=[],cindex=[],cptr=[],j=0;j{var{typed:typed}=_ref;return function matAlgo03xDSf(denseMatrix,sparseMatrix,callback,inverse){var adata=denseMatrix._data,asize=denseMatrix._size,adt=denseMatrix._datatype||denseMatrix.getDataType(),bvalues=sparseMatrix._values,bindex=sparseMatrix._index,bptr=sparseMatrix._ptr,bsize=sparseMatrix._size,bdt=sparseMatrix._datatype||void 0===sparseMatrix._data?sparseMatrix._datatype:sparseMatrix.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");if(!bvalues)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var dt,rows=asize[0],columns=asize[1],zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));for(var cdata=[],z=0;z{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo04xSidSid(a,b,callback){var avalues=a._values,aindex=a._index,aptr=a._ptr,asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bvalues=b._values,bindex=b._index,bptr=b._ptr,bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));var i,j,k,k0,k1,cvalues=avalues&&bvalues?[]:void 0,cindex=[],cptr=[],xa=avalues&&bvalues?[]:void 0,xb=avalues&&bvalues?[]:void 0,wa=[],wb=[];for(j=0;j{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo05xSfSf(a,b,callback){var avalues=a._values,aindex=a._index,aptr=a._ptr,asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bvalues=b._values,bindex=b._index,bptr=b._ptr,bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));var i,j,k,k1,cvalues=avalues&&bvalues?[]:void 0,cindex=[],cptr=[],xa=cvalues?[]:void 0,xb=cvalues?[]:void 0,wa=[],wb=[];for(j=0;j{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo06xS0S0(a,b,callback){var avalues=a._values,asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bvalues=b._values,bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));for(var cvalues=avalues&&bvalues?[]:void 0,cindex=[],cptr=[],x=cvalues?[]:void 0,w=[],u=[],j=0;j{var{typed:typed,DenseMatrix:DenseMatrix}=_ref;return function matAlgo07xSSf(a,b,callback){var asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");var dt,i,j,rows=asize[0],columns=asize[1],zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));var cdata=[];for(i=0;i{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo08xS0Sid(a,b,callback){var avalues=a._values,aindex=a._index,aptr=a._ptr,asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bvalues=b._values,bindex=b._index,bptr=b._ptr,bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");if(!avalues||!bvalues)throw new Error("Cannot perform operation on Pattern Sparse Matrices");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));for(var k,k0,k1,i,cvalues=[],cindex=[],cptr=[],x=[],w=[],j=0;j{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo09xS0Sf(a,b,callback){var avalues=a._values,aindex=a._index,aptr=a._ptr,asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bvalues=b._values,bindex=b._index,bptr=b._ptr,bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));var i,j,k,k0,k1,cvalues=avalues&&bvalues?[]:void 0,cindex=[],cptr=[],x=cvalues?[]:void 0,w=[];for(j=0;j{var{typed:typed,DenseMatrix:DenseMatrix}=_ref;return function matAlgo10xSids(s,b,callback,inverse){var avalues=s._values,aindex=s._index,aptr=s._ptr,asize=s._size,adt=s._datatype;if(!avalues)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var dt,rows=asize[0],columns=asize[1],cf=callback;"string"==typeof adt&&(dt=adt,b=typed.convert(b,dt),cf=typed.find(callback,[dt,dt]));for(var cdata=[],x=[],w=[],j=0;j{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo11xS0s(s,b,callback,inverse){var avalues=s._values,aindex=s._index,aptr=s._ptr,asize=s._size,adt=s._datatype;if(!avalues)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),b=typed.convert(b,dt),cf=typed.find(callback,[dt,dt]));for(var cvalues=[],cindex=[],cptr=[],j=0;j{var{typed:typed,DenseMatrix:DenseMatrix}=_ref;return function matAlgo12xSfs(s,b,callback,inverse){var avalues=s._values,aindex=s._index,aptr=s._ptr,asize=s._size,adt=s._datatype;if(!avalues)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var dt,rows=asize[0],columns=asize[1],cf=callback;"string"==typeof adt&&(dt=adt,b=typed.convert(b,dt),cf=typed.find(callback,[dt,dt]));for(var cdata=[],x=[],w=[],j=0;j{var{typed:typed}=_ref;return function matAlgo14xDs(a,b,callback,inverse){var dt,adata=a._data,asize=a._size,adt=a._datatype,cf=callback;"string"==typeof adt&&(dt=adt,b=typed.convert(b,dt),cf=typed.find(callback,[dt,dt]));var cdata=asize.length>0?_iterate(cf,0,asize,asize[0],adata,b,inverse):[];return a.createDenseMatrix({data:cdata,size:(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(asize),datatype:dt})};function _iterate(f,level,s,n,av,bv,inverse){var cv=[];if(level===s.length-1)for(var i=0;i{var{typed:typed}=_ref;return function matAlgo13xDD(a,b,callback){var dt,adata=a._data,asize=a._size,adt=a._datatype,bdata=b._data,bsize=b._size,bdt=b._datatype,csize=[];if(asize.length!==bsize.length)throw new DimensionError.m(asize.length,bsize.length);for(var s=0;s0?_iterate(cf,0,csize,csize[0],adata,bdata):[];return a.createDenseMatrix({data:cdata,size:csize,datatype:dt})};function _iterate(f,level,s,n,av,bv){var cv=[];if(level===s.length-1)for(var i=0;i{var{concat:concat}=_ref;return function(A,B){var N=Math.max(A._size.length,B._size.length);if(A._size.length===B._size.length&&A._size.every(((dim,i)=>dim===B._size[i])))return[A,B];for(var sizeA=_padLeft(A._size,N,0),sizeB=_padLeft(B._size,N,0),sizeMax=[],dim=0;dim{var{typed:typed,matrix:matrix,concat:concat}=_ref,matAlgo13xDD=createMatAlgo13xDD({typed:typed}),matAlgo14xDs=(0,utils_matAlgo14xDs.R)({typed:typed}),broadcast=createBroadcast({concat:concat});return function matrixAlgorithmSuite(options){var matrixSignatures,elop=options.elop,SD=options.SD||options.DS;elop?(matrixSignatures={"DenseMatrix, DenseMatrix":(x,y)=>matAlgo13xDD(...broadcast(x,y),elop),"Array, Array":(x,y)=>matAlgo13xDD(...broadcast(matrix(x),matrix(y)),elop).valueOf(),"Array, DenseMatrix":(x,y)=>matAlgo13xDD(...broadcast(matrix(x),y),elop),"DenseMatrix, Array":(x,y)=>matAlgo13xDD(...broadcast(x,matrix(y)),elop)},options.SS&&(matrixSignatures["SparseMatrix, SparseMatrix"]=(x,y)=>options.SS(...broadcast(x,y),elop,!1)),options.DS&&(matrixSignatures["DenseMatrix, SparseMatrix"]=(x,y)=>options.DS(...broadcast(x,y),elop,!1),matrixSignatures["Array, SparseMatrix"]=(x,y)=>options.DS(...broadcast(matrix(x),y),elop,!1)),SD&&(matrixSignatures["SparseMatrix, DenseMatrix"]=(x,y)=>SD(...broadcast(y,x),elop,!0),matrixSignatures["SparseMatrix, Array"]=(x,y)=>SD(...broadcast(matrix(y),x),elop,!0))):(matrixSignatures={"DenseMatrix, DenseMatrix":typed.referToSelf((self=>(x,y)=>matAlgo13xDD(...broadcast(x,y),self))),"Array, Array":typed.referToSelf((self=>(x,y)=>matAlgo13xDD(...broadcast(matrix(x),matrix(y)),self).valueOf())),"Array, DenseMatrix":typed.referToSelf((self=>(x,y)=>matAlgo13xDD(...broadcast(matrix(x),y),self))),"DenseMatrix, Array":typed.referToSelf((self=>(x,y)=>matAlgo13xDD(...broadcast(x,matrix(y)),self)))},options.SS&&(matrixSignatures["SparseMatrix, SparseMatrix"]=typed.referToSelf((self=>(x,y)=>options.SS(...broadcast(x,y),self,!1)))),options.DS&&(matrixSignatures["DenseMatrix, SparseMatrix"]=typed.referToSelf((self=>(x,y)=>options.DS(...broadcast(x,y),self,!1))),matrixSignatures["Array, SparseMatrix"]=typed.referToSelf((self=>(x,y)=>options.DS(...broadcast(matrix(x),y),self,!1)))),SD&&(matrixSignatures["SparseMatrix, DenseMatrix"]=typed.referToSelf((self=>(x,y)=>SD(...broadcast(y,x),self,!0))),matrixSignatures["SparseMatrix, Array"]=typed.referToSelf((self=>(x,y)=>SD(...broadcast(matrix(y),x),self,!0)))));var scalar=options.scalar||"any";(options.Ds||options.Ss)&&(elop?(matrixSignatures["DenseMatrix,"+scalar]=(x,y)=>matAlgo14xDs(x,y,elop,!1),matrixSignatures[scalar+", DenseMatrix"]=(x,y)=>matAlgo14xDs(y,x,elop,!0),matrixSignatures["Array,"+scalar]=(x,y)=>matAlgo14xDs(matrix(x),y,elop,!1).valueOf(),matrixSignatures[scalar+", Array"]=(x,y)=>matAlgo14xDs(matrix(y),x,elop,!0).valueOf()):(matrixSignatures["DenseMatrix,"+scalar]=typed.referToSelf((self=>(x,y)=>matAlgo14xDs(x,y,self,!1))),matrixSignatures[scalar+", DenseMatrix"]=typed.referToSelf((self=>(x,y)=>matAlgo14xDs(y,x,self,!0))),matrixSignatures["Array,"+scalar]=typed.referToSelf((self=>(x,y)=>matAlgo14xDs(matrix(x),y,self,!1).valueOf())),matrixSignatures[scalar+", Array"]=typed.referToSelf((self=>(x,y)=>matAlgo14xDs(matrix(y),x,self,!0).valueOf()))));var sS=void 0!==options.sS?options.sS:options.Ss;return elop?(options.Ss&&(matrixSignatures["SparseMatrix,"+scalar]=(x,y)=>options.Ss(x,y,elop,!1)),sS&&(matrixSignatures[scalar+", SparseMatrix"]=(x,y)=>sS(y,x,elop,!0))):(options.Ss&&(matrixSignatures["SparseMatrix,"+scalar]=typed.referToSelf((self=>(x,y)=>options.Ss(x,y,self,!1)))),sS&&(matrixSignatures[scalar+", SparseMatrix"]=typed.referToSelf((self=>(x,y)=>sS(y,x,self,!0))))),elop&&elop.signatures&&(0,object.l7)(matrixSignatures,elop.signatures),matrixSignatures}}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/number.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return createNumber}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"];var createNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("number",dependencies,(_ref=>{var{typed:typed}=_ref,number=typed("number",{"":function _(){return 0},number:function number(x){return x},string:function string(x){if("NaN"===x)return NaN;var nonDecimalNumberParts=function getNonDecimalNumberParts(input){var nonDecimalWithRadixMatch=input.match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/);return nonDecimalWithRadixMatch?{input:input,radix:{"0b":2,"0o":8,"0x":16}[nonDecimalWithRadixMatch[1]],integerPart:nonDecimalWithRadixMatch[2],fractionalPart:nonDecimalWithRadixMatch[3]}:null}(x);if(nonDecimalNumberParts)return function makeNumberFromNonDecimalParts(parts){for(var n=parseInt(parts.integerPart,parts.radix),f=0,i=0;i2**size-1)throw new SyntaxError('String "'.concat(x,'" is out of range'));num>=2**(size-1)&&(num-=2**size)}return num},BigNumber:function BigNumber(x){return x.toNumber()},Fraction:function Fraction(x){return x.valueOf()},Unit:typed.referToSelf((self=>x=>{var clone=x.clone();return clone.value=self(x.value),clone})),null:function _null(x){return 0},"Unit, string | Unit":function UnitStringUnit(unit,valuelessUnit){return unit.toNumber(valuelessUnit)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))});return number.fromJSON=function(json){return parseFloat(json.value)},number}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/resultset/ResultSet.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{R:function(){return createResultSet}});var dependencies=[],createResultSet=(0,__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js").d5)("ResultSet",dependencies,(()=>{function ResultSet(entries){if(!(this instanceof ResultSet))throw new SyntaxError("Constructor must be called with the new operator");this.entries=entries||[]}return ResultSet.prototype.type="ResultSet",ResultSet.prototype.isResultSet=!0,ResultSet.prototype.valueOf=function(){return this.entries},ResultSet.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},ResultSet.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},ResultSet.fromJSON=function(json){return new ResultSet(json.entries)},ResultSet}),{isClass:!0})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/string.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return createString}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["typed"],createString=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("string",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("string",{"":function _(){return""},number:_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.WU,null:function _null(x){return"null"},boolean:function boolean(x){return x+""},string:function string(x){return x},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self))),any:function any(x){return String(x)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/Unit.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createUnitClass}});var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_function_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/function.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),_utils_bignumber_constants_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/constants.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r{var text,index,c,{on:on,config:config,addScalar:addScalar,subtractScalar:subtractScalar,multiplyScalar:multiplyScalar,divideScalar:divideScalar,pow:pow,abs:abs,fix:fix,round:round,equal:equal,isNumeric:isNumeric,format:format,number:_number,Complex:Complex,BigNumber:_BigNumber,Fraction:_Fraction}=_ref,toNumber=_number;function Unit(value,valuelessUnit){if(!(this instanceof Unit))throw new Error("Constructor must be called with the new operator");if(null!=value&&!isNumeric(value)&&!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Mc)(value))throw new TypeError("First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined");if(this.fixPrefix=!1,this.skipAutomaticSimplification=!0,void 0===valuelessUnit)this.units=[],this.dimensions=BASE_DIMENSIONS.map((x=>0));else if("string"==typeof valuelessUnit){var u=Unit.parse(valuelessUnit);this.units=u.units,this.dimensions=u.dimensions}else{if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr)(valuelessUnit)||null!==valuelessUnit.value)throw new TypeError("Second parameter in Unit constructor must be a string or valueless Unit");this.fixPrefix=valuelessUnit.fixPrefix,this.skipAutomaticSimplification=valuelessUnit.skipAutomaticSimplification,this.dimensions=valuelessUnit.dimensions.slice(0),this.units=valuelessUnit.units.map((u=>(0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},u)))}this.value=this._normalize(value)}function skipWhitespace(){for(;" "===c||"\t"===c;)next()}function isDigit(c){return c>="0"&&c<="9"}function next(){index++,c=text.charAt(index)}function revert(oldIndex){index=oldIndex,c=text.charAt(index)}function parseNumber(){var number="",oldIndex=index;if("+"===c?next():"-"===c&&(number+=c,next()),!function isDigitDot(c){return c>="0"&&c<="9"||"."===c}(c))return revert(oldIndex),null;if("."===c){if(number+=c,next(),!isDigit(c))return revert(oldIndex),null}else{for(;isDigit(c);)number+=c,next();"."===c&&(number+=c,next())}for(;isDigit(c);)number+=c,next();if("E"===c||"e"===c){var tentativeNumber="",tentativeIndex=index;if(tentativeNumber+=c,next(),"+"!==c&&"-"!==c||(tentativeNumber+=c,next()),!isDigit(c))return revert(tentativeIndex),number;for(number+=tentativeNumber;isDigit(c);)number+=c,next()}return number}function parseUnit(){for(var unitName="";isDigit(c)||Unit.isValidAlpha(c);)unitName+=c,next();var firstC=unitName.charAt(0);return Unit.isValidAlpha(firstC)?unitName:null}function parseCharacter(toFind){return c===toFind?(next(),toFind):null}Object.defineProperty(Unit,"name",{value:"Unit"}),Unit.prototype.constructor=Unit,Unit.prototype.type="Unit",Unit.prototype.isUnit=!0,Unit.parse=function(str,options){if(options=options||{},index=-1,c="","string"!=typeof(text=str))throw new TypeError("Invalid argument in Unit.parse, string expected");var unit=new Unit;unit.units=[];var powerMultiplierCurrent=1,expectingUnit=!1;next(),skipWhitespace();var valueStr=parseNumber(),value=null;if(valueStr){if("BigNumber"===config.number)value=new _BigNumber(valueStr);else if("Fraction"===config.number)try{value=new _Fraction(valueStr)}catch(err){value=parseFloat(valueStr)}else value=parseFloat(valueStr);skipWhitespace(),parseCharacter("*")?(powerMultiplierCurrent=1,expectingUnit=!0):parseCharacter("/")&&(powerMultiplierCurrent=-1,expectingUnit=!0)}for(var powerMultiplierStack=[],powerMultiplierStackProduct=1;;){for(skipWhitespace();"("===c;)powerMultiplierStack.push(powerMultiplierCurrent),powerMultiplierStackProduct*=powerMultiplierCurrent,powerMultiplierCurrent=1,next(),skipWhitespace();var uStr=void 0;if(!c)break;var oldC=c;if(null===(uStr=parseUnit()))throw new SyntaxError('Unexpected "'+oldC+'" in "'+text+'" at index '+index.toString());var res=_findUnit(uStr);if(null===res)throw new SyntaxError('Unit "'+uStr+'" not found.');var power=powerMultiplierCurrent*powerMultiplierStackProduct;if(skipWhitespace(),parseCharacter("^")){skipWhitespace();var p=parseNumber();if(null===p)throw new SyntaxError('In "'+str+'", "^" must be followed by a floating-point number');power*=p}unit.units.push({unit:res.unit,prefix:res.prefix,power:power});for(var i=0;i1||Math.abs(this.units[0].power-1)>1e-15)},Unit.prototype._normalize=function(value){if(null==value||0===this.units.length)return value;for(var res=value,convert=Unit._getNumberConverter((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kM)(value)),i=0;i{if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNITS,str)){var unit=UNITS[str];return{unit:unit,prefix:unit.prefixes[""]}}for(var _name in UNITS)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNITS,_name)&&(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_6__.pn)(str,_name)){var _unit=UNITS[_name],prefixLen=str.length-_name.length,prefixName=str.substring(0,prefixLen),_prefix=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(_unit.prefixes,prefixName)?_unit.prefixes[prefixName]:void 0;if(void 0!==_prefix)return{unit:_unit,prefix:_prefix}}return null}),{hasher:args=>args[0],limit:100});function getNumericIfUnitless(unit){return unit.equalBase(BASE_UNITS.NONE)&&null!==unit.value&&!config.predictable?unit.value:unit}Unit.isValuelessUnit=function(name){return null!==_findUnit(name)},Unit.prototype.hasBase=function(base){if("string"==typeof base&&(base=BASE_UNITS[base]),!base)return!1;for(var i=0;i1e-12)return!1;return!0},Unit.prototype.equalBase=function(other){for(var i=0;i1e-12)return!1;return!0},Unit.prototype.equals=function(other){return this.equalBase(other)&&equal(this.value,other.value)},Unit.prototype.multiply=function(_other){for(var res=this.clone(),other=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr)(_other)?_other:new Unit(_other),i=0;i1e-12&&((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(currentUnitSystem,baseDim)?proposedUnitList.push({unit:currentUnitSystem[baseDim].unit,prefix:currentUnitSystem[baseDim].prefix,power:ret.dimensions[i]||0}):missingBaseDim=!0)}proposedUnitList.length1e-12){if(!(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNIT_SYSTEMS.si,baseDim))throw new Error("Cannot express custom unit "+baseDim+" in SI units");proposedUnitList.push({unit:UNIT_SYSTEMS.si[baseDim].unit,prefix:UNIT_SYSTEMS.si[baseDim].prefix,power:ret.dimensions[i]||0})}}return ret.units=proposedUnitList,ret.fixPrefix=!0,ret.skipAutomaticSimplification=!0,null!==this.value?(ret.value=null,this.to(ret)):ret},Unit.prototype.formatUnits=function(){for(var strNum="",strDen="",nNum=0,nDen=0,i=0;i0?(nNum++,strNum+=" "+this.units[i].prefix.name+this.units[i].unit.name,Math.abs(this.units[i].power-1)>1e-15&&(strNum+="^"+this.units[i].power)):this.units[i].power<0&&nDen++;if(nDen>0)for(var _i4=0;_i40?(strDen+=" "+this.units[_i4].prefix.name+this.units[_i4].unit.name,Math.abs(this.units[_i4].power+1)>1e-15&&(strDen+="^"+-this.units[_i4].power)):(strDen+=" "+this.units[_i4].prefix.name+this.units[_i4].unit.name,strDen+="^"+this.units[_i4].power));strNum=strNum.substr(1),strDen=strDen.substr(1),nNum>1&&nDen>0&&(strNum="("+strNum+")"),nDen>1&&nNum>0&&(strDen="("+strDen+")");var str=strNum;return nNum>0&&nDen>0&&(str+=" / "),str+=strDen},Unit.prototype.format=function(options){var simp=this.skipAutomaticSimplification||null===this.value?this.clone():this.simplify(),isImaginary=!1;for(var i in void 0!==simp.value&&null!==simp.value&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Mc)(simp.value)&&(isImaginary=Math.abs(simp.value.re)<1e-14),simp.units)(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(simp.units,i)&&simp.units[i].unit&&("VA"===simp.units[i].unit.name&&isImaginary?simp.units[i].unit=UNITS.VAR:"VAR"!==simp.units[i].unit.name||isImaginary||(simp.units[i].unit=UNITS.VA));1!==simp.units.length||simp.fixPrefix||Math.abs(simp.units[0].power-Math.round(simp.units[0].power))<1e-14&&(simp.units[0].prefix=simp._bestPrefix());var value=simp._denormalize(simp.value),str=null!==simp.value?format(value,options||{}):"",unitStr=simp.formatUnits();return simp.value&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Mc)(simp.value)&&(str="("+str+")"),unitStr.length>0&&str.length>0&&(str+=" "),str+=unitStr},Unit.prototype._bestPrefix=function(){if(1!==this.units.length)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");if(Math.abs(this.units[0].power-Math.round(this.units[0].power))>=1e-14)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");var absValue=null!==this.value?abs(this.value):0,absUnitValue=abs(this.units[0].unit.value),bestPrefix=this.units[0].prefix;if(0===absValue)return bestPrefix;var power=this.units[0].power,bestDiff=Math.log(absValue/Math.pow(bestPrefix.value*absUnitValue,power))/Math.LN10-1.2;if(bestDiff>-2.200001&&bestDiff<1.800001)return bestPrefix;bestDiff=Math.abs(bestDiff);var prefixes=this.units[0].unit.prefixes;for(var p in prefixes)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(prefixes,p)){var prefix=prefixes[p];if(prefix.scientific){var diff=Math.abs(Math.log(absValue/Math.pow(prefix.value*absUnitValue,power))/Math.LN10-1.2);(diff0))},UNITS={meter:{name:"meter",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.LONG,value:1,offset:0},inch:{name:"inch",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.0254,offset:0},foot:{name:"foot",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.3048,offset:0},yard:{name:"yard",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.9144,offset:0},mile:{name:"mile",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:1609.344,offset:0},link:{name:"link",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.201168,offset:0},rod:{name:"rod",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:5.0292,offset:0},chain:{name:"chain",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:20.1168,offset:0},angstrom:{name:"angstrom",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:1e-10,offset:0},m:{name:"m",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.SHORT,value:1,offset:0},in:{name:"in",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.0254,offset:0},ft:{name:"ft",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.3048,offset:0},yd:{name:"yd",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.9144,offset:0},mi:{name:"mi",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:1609.344,offset:0},li:{name:"li",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.201168,offset:0},rd:{name:"rd",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:5.02921,offset:0},ch:{name:"ch",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:20.1168,offset:0},mil:{name:"mil",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:254e-7,offset:0},m2:{name:"m2",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.SQUARED,value:1,offset:0},sqin:{name:"sqin",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:64516e-8,offset:0},sqft:{name:"sqft",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:.09290304,offset:0},sqyd:{name:"sqyd",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:.83612736,offset:0},sqmi:{name:"sqmi",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:2589988.110336,offset:0},sqrd:{name:"sqrd",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:25.29295,offset:0},sqch:{name:"sqch",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:404.6873,offset:0},sqmil:{name:"sqmil",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:6.4516e-10,offset:0},acre:{name:"acre",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:4046.86,offset:0},hectare:{name:"hectare",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:1e4,offset:0},m3:{name:"m3",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.CUBIC,value:1,offset:0},L:{name:"L",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.SHORT,value:.001,offset:0},l:{name:"l",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.SHORT,value:.001,offset:0},litre:{name:"litre",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.LONG,value:.001,offset:0},cuin:{name:"cuin",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:16387064e-12,offset:0},cuft:{name:"cuft",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.028316846592,offset:0},cuyd:{name:"cuyd",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.764554857984,offset:0},teaspoon:{name:"teaspoon",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:5e-6,offset:0},tablespoon:{name:"tablespoon",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:15e-6,offset:0},drop:{name:"drop",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:5e-8,offset:0},gtt:{name:"gtt",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:5e-8,offset:0},minim:{name:"minim",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:6.161152e-8,offset:0},fluiddram:{name:"fluiddram",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:36966911e-13,offset:0},fluidounce:{name:"fluidounce",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:2957353e-11,offset:0},gill:{name:"gill",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0001182941,offset:0},cc:{name:"cc",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:1e-6,offset:0},cup:{name:"cup",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0002365882,offset:0},pint:{name:"pint",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0004731765,offset:0},quart:{name:"quart",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0009463529,offset:0},gallon:{name:"gallon",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.003785412,offset:0},beerbarrel:{name:"beerbarrel",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.1173478,offset:0},oilbarrel:{name:"oilbarrel",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.1589873,offset:0},hogshead:{name:"hogshead",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.238481,offset:0},fldr:{name:"fldr",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:36966911e-13,offset:0},floz:{name:"floz",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:2957353e-11,offset:0},gi:{name:"gi",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0001182941,offset:0},cp:{name:"cp",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0002365882,offset:0},pt:{name:"pt",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0004731765,offset:0},qt:{name:"qt",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0009463529,offset:0},gal:{name:"gal",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.003785412,offset:0},bbl:{name:"bbl",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.1173478,offset:0},obl:{name:"obl",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.1589873,offset:0},g:{name:"g",base:BASE_UNITS.MASS,prefixes:PREFIXES.SHORT,value:.001,offset:0},gram:{name:"gram",base:BASE_UNITS.MASS,prefixes:PREFIXES.LONG,value:.001,offset:0},ton:{name:"ton",base:BASE_UNITS.MASS,prefixes:PREFIXES.SHORT,value:907.18474,offset:0},t:{name:"t",base:BASE_UNITS.MASS,prefixes:PREFIXES.SHORT,value:1e3,offset:0},tonne:{name:"tonne",base:BASE_UNITS.MASS,prefixes:PREFIXES.LONG,value:1e3,offset:0},grain:{name:"grain",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:6479891e-11,offset:0},dram:{name:"dram",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.0017718451953125,offset:0},ounce:{name:"ounce",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.028349523125,offset:0},poundmass:{name:"poundmass",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.45359237,offset:0},hundredweight:{name:"hundredweight",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:45.359237,offset:0},stick:{name:"stick",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.115,offset:0},stone:{name:"stone",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:6.35029318,offset:0},gr:{name:"gr",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:6479891e-11,offset:0},dr:{name:"dr",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.0017718451953125,offset:0},oz:{name:"oz",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.028349523125,offset:0},lbm:{name:"lbm",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.45359237,offset:0},cwt:{name:"cwt",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:45.359237,offset:0},s:{name:"s",base:BASE_UNITS.TIME,prefixes:PREFIXES.SHORT,value:1,offset:0},min:{name:"min",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:60,offset:0},h:{name:"h",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:3600,offset:0},second:{name:"second",base:BASE_UNITS.TIME,prefixes:PREFIXES.LONG,value:1,offset:0},sec:{name:"sec",base:BASE_UNITS.TIME,prefixes:PREFIXES.LONG,value:1,offset:0},minute:{name:"minute",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:60,offset:0},hour:{name:"hour",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:3600,offset:0},day:{name:"day",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:86400,offset:0},week:{name:"week",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:604800,offset:0},month:{name:"month",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:2629800,offset:0},year:{name:"year",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:31557600,offset:0},decade:{name:"decade",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:315576e3,offset:0},century:{name:"century",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:315576e4,offset:0},millennium:{name:"millennium",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:315576e5,offset:0},hertz:{name:"Hertz",base:BASE_UNITS.FREQUENCY,prefixes:PREFIXES.LONG,value:1,offset:0,reciprocal:!0},Hz:{name:"Hz",base:BASE_UNITS.FREQUENCY,prefixes:PREFIXES.SHORT,value:1,offset:0,reciprocal:!0},rad:{name:"rad",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.SHORT,value:1,offset:0},radian:{name:"radian",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.LONG,value:1,offset:0},deg:{name:"deg",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.SHORT,value:null,offset:0},degree:{name:"degree",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.LONG,value:null,offset:0},grad:{name:"grad",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.SHORT,value:null,offset:0},gradian:{name:"gradian",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.LONG,value:null,offset:0},cycle:{name:"cycle",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.NONE,value:null,offset:0},arcsec:{name:"arcsec",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.NONE,value:null,offset:0},arcmin:{name:"arcmin",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.NONE,value:null,offset:0},A:{name:"A",base:BASE_UNITS.CURRENT,prefixes:PREFIXES.SHORT,value:1,offset:0},ampere:{name:"ampere",base:BASE_UNITS.CURRENT,prefixes:PREFIXES.LONG,value:1,offset:0},K:{name:"K",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.SHORT,value:1,offset:0},degC:{name:"degC",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.SHORT,value:1,offset:273.15},degF:{name:"degF",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.SHORT,value:new _Fraction(5,9),offset:459.67},degR:{name:"degR",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.SHORT,value:new _Fraction(5,9),offset:0},kelvin:{name:"kelvin",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.LONG,value:1,offset:0},celsius:{name:"celsius",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.LONG,value:1,offset:273.15},fahrenheit:{name:"fahrenheit",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.LONG,value:new _Fraction(5,9),offset:459.67},rankine:{name:"rankine",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.LONG,value:new _Fraction(5,9),offset:0},mol:{name:"mol",base:BASE_UNITS.AMOUNT_OF_SUBSTANCE,prefixes:PREFIXES.SHORT,value:1,offset:0},mole:{name:"mole",base:BASE_UNITS.AMOUNT_OF_SUBSTANCE,prefixes:PREFIXES.LONG,value:1,offset:0},cd:{name:"cd",base:BASE_UNITS.LUMINOUS_INTENSITY,prefixes:PREFIXES.SHORT,value:1,offset:0},candela:{name:"candela",base:BASE_UNITS.LUMINOUS_INTENSITY,prefixes:PREFIXES.LONG,value:1,offset:0},N:{name:"N",base:BASE_UNITS.FORCE,prefixes:PREFIXES.SHORT,value:1,offset:0},newton:{name:"newton",base:BASE_UNITS.FORCE,prefixes:PREFIXES.LONG,value:1,offset:0},dyn:{name:"dyn",base:BASE_UNITS.FORCE,prefixes:PREFIXES.SHORT,value:1e-5,offset:0},dyne:{name:"dyne",base:BASE_UNITS.FORCE,prefixes:PREFIXES.LONG,value:1e-5,offset:0},lbf:{name:"lbf",base:BASE_UNITS.FORCE,prefixes:PREFIXES.NONE,value:4.4482216152605,offset:0},poundforce:{name:"poundforce",base:BASE_UNITS.FORCE,prefixes:PREFIXES.NONE,value:4.4482216152605,offset:0},kip:{name:"kip",base:BASE_UNITS.FORCE,prefixes:PREFIXES.LONG,value:4448.2216,offset:0},kilogramforce:{name:"kilogramforce",base:BASE_UNITS.FORCE,prefixes:PREFIXES.NONE,value:9.80665,offset:0},J:{name:"J",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.SHORT,value:1,offset:0},joule:{name:"joule",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.LONG,value:1,offset:0},erg:{name:"erg",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.SHORTLONG,value:1e-7,offset:0},Wh:{name:"Wh",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.SHORT,value:3600,offset:0},BTU:{name:"BTU",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.BTU,value:1055.05585262,offset:0},eV:{name:"eV",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.SHORT,value:1602176565e-28,offset:0},electronvolt:{name:"electronvolt",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.LONG,value:1602176565e-28,offset:0},W:{name:"W",base:BASE_UNITS.POWER,prefixes:PREFIXES.SHORT,value:1,offset:0},watt:{name:"watt",base:BASE_UNITS.POWER,prefixes:PREFIXES.LONG,value:1,offset:0},hp:{name:"hp",base:BASE_UNITS.POWER,prefixes:PREFIXES.NONE,value:745.6998715386,offset:0},VAR:{name:"VAR",base:BASE_UNITS.POWER,prefixes:PREFIXES.SHORT,value:Complex.I,offset:0},VA:{name:"VA",base:BASE_UNITS.POWER,prefixes:PREFIXES.SHORT,value:1,offset:0},Pa:{name:"Pa",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.SHORT,value:1,offset:0},psi:{name:"psi",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:6894.75729276459,offset:0},atm:{name:"atm",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:101325,offset:0},bar:{name:"bar",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.SHORTLONG,value:1e5,offset:0},torr:{name:"torr",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:133.322,offset:0},mmHg:{name:"mmHg",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:133.322,offset:0},mmH2O:{name:"mmH2O",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:9.80665,offset:0},cmH2O:{name:"cmH2O",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:98.0665,offset:0},coulomb:{name:"coulomb",base:BASE_UNITS.ELECTRIC_CHARGE,prefixes:PREFIXES.LONG,value:1,offset:0},C:{name:"C",base:BASE_UNITS.ELECTRIC_CHARGE,prefixes:PREFIXES.SHORT,value:1,offset:0},farad:{name:"farad",base:BASE_UNITS.ELECTRIC_CAPACITANCE,prefixes:PREFIXES.LONG,value:1,offset:0},F:{name:"F",base:BASE_UNITS.ELECTRIC_CAPACITANCE,prefixes:PREFIXES.SHORT,value:1,offset:0},volt:{name:"volt",base:BASE_UNITS.ELECTRIC_POTENTIAL,prefixes:PREFIXES.LONG,value:1,offset:0},V:{name:"V",base:BASE_UNITS.ELECTRIC_POTENTIAL,prefixes:PREFIXES.SHORT,value:1,offset:0},ohm:{name:"ohm",base:BASE_UNITS.ELECTRIC_RESISTANCE,prefixes:PREFIXES.SHORTLONG,value:1,offset:0},henry:{name:"henry",base:BASE_UNITS.ELECTRIC_INDUCTANCE,prefixes:PREFIXES.LONG,value:1,offset:0},H:{name:"H",base:BASE_UNITS.ELECTRIC_INDUCTANCE,prefixes:PREFIXES.SHORT,value:1,offset:0},siemens:{name:"siemens",base:BASE_UNITS.ELECTRIC_CONDUCTANCE,prefixes:PREFIXES.LONG,value:1,offset:0},S:{name:"S",base:BASE_UNITS.ELECTRIC_CONDUCTANCE,prefixes:PREFIXES.SHORT,value:1,offset:0},weber:{name:"weber",base:BASE_UNITS.MAGNETIC_FLUX,prefixes:PREFIXES.LONG,value:1,offset:0},Wb:{name:"Wb",base:BASE_UNITS.MAGNETIC_FLUX,prefixes:PREFIXES.SHORT,value:1,offset:0},tesla:{name:"tesla",base:BASE_UNITS.MAGNETIC_FLUX_DENSITY,prefixes:PREFIXES.LONG,value:1,offset:0},T:{name:"T",base:BASE_UNITS.MAGNETIC_FLUX_DENSITY,prefixes:PREFIXES.SHORT,value:1,offset:0},b:{name:"b",base:BASE_UNITS.BIT,prefixes:PREFIXES.BINARY_SHORT,value:1,offset:0},bits:{name:"bits",base:BASE_UNITS.BIT,prefixes:PREFIXES.BINARY_LONG,value:1,offset:0},B:{name:"B",base:BASE_UNITS.BIT,prefixes:PREFIXES.BINARY_SHORT,value:8,offset:0},bytes:{name:"bytes",base:BASE_UNITS.BIT,prefixes:PREFIXES.BINARY_LONG,value:8,offset:0}},ALIASES={meters:"meter",inches:"inch",feet:"foot",yards:"yard",miles:"mile",links:"link",rods:"rod",chains:"chain",angstroms:"angstrom",lt:"l",litres:"litre",liter:"litre",liters:"litre",teaspoons:"teaspoon",tablespoons:"tablespoon",minims:"minim",fluiddrams:"fluiddram",fluidounces:"fluidounce",gills:"gill",cups:"cup",pints:"pint",quarts:"quart",gallons:"gallon",beerbarrels:"beerbarrel",oilbarrels:"oilbarrel",hogsheads:"hogshead",gtts:"gtt",grams:"gram",tons:"ton",tonnes:"tonne",grains:"grain",drams:"dram",ounces:"ounce",poundmasses:"poundmass",hundredweights:"hundredweight",sticks:"stick",lb:"lbm",lbs:"lbm",kips:"kip",kgf:"kilogramforce",acres:"acre",hectares:"hectare",sqfeet:"sqft",sqyard:"sqyd",sqmile:"sqmi",sqmiles:"sqmi",mmhg:"mmHg",mmh2o:"mmH2O",cmh2o:"cmH2O",seconds:"second",secs:"second",minutes:"minute",mins:"minute",hours:"hour",hr:"hour",hrs:"hour",days:"day",weeks:"week",months:"month",years:"year",decades:"decade",centuries:"century",millennia:"millennium",hertz:"hertz",radians:"radian",degrees:"degree",gradians:"gradian",cycles:"cycle",arcsecond:"arcsec",arcseconds:"arcsec",arcminute:"arcmin",arcminutes:"arcmin",BTUs:"BTU",watts:"watt",joules:"joule",amperes:"ampere",amps:"ampere",amp:"ampere",coulombs:"coulomb",volts:"volt",ohms:"ohm",farads:"farad",webers:"weber",teslas:"tesla",electronvolts:"electronvolt",moles:"mole",bit:"bits",byte:"bytes"};function calculateAngleValues(config){if("BigNumber"===config.number){var pi=(0,_utils_bignumber_constants_js__WEBPACK_IMPORTED_MODULE_7__.wY)(_BigNumber);UNITS.rad.value=new _BigNumber(1),UNITS.deg.value=pi.div(180),UNITS.grad.value=pi.div(200),UNITS.cycle.value=pi.times(2),UNITS.arcsec.value=pi.div(648e3),UNITS.arcmin.value=pi.div(10800)}else UNITS.rad.value=1,UNITS.deg.value=Math.PI/180,UNITS.grad.value=Math.PI/200,UNITS.cycle.value=2*Math.PI,UNITS.arcsec.value=Math.PI/648e3,UNITS.arcmin.value=Math.PI/10800;UNITS.radian.value=UNITS.rad.value,UNITS.degree.value=UNITS.deg.value,UNITS.gradian.value=UNITS.grad.value}calculateAngleValues(config),on&&on("config",(function(curr,prev){curr.number!==prev.number&&calculateAngleValues(curr)}));var UNIT_SYSTEMS={si:{NONE:{unit:UNIT_NONE,prefix:PREFIXES.NONE[""]},LENGTH:{unit:UNITS.m,prefix:PREFIXES.SHORT[""]},MASS:{unit:UNITS.g,prefix:PREFIXES.SHORT.k},TIME:{unit:UNITS.s,prefix:PREFIXES.SHORT[""]},CURRENT:{unit:UNITS.A,prefix:PREFIXES.SHORT[""]},TEMPERATURE:{unit:UNITS.K,prefix:PREFIXES.SHORT[""]},LUMINOUS_INTENSITY:{unit:UNITS.cd,prefix:PREFIXES.SHORT[""]},AMOUNT_OF_SUBSTANCE:{unit:UNITS.mol,prefix:PREFIXES.SHORT[""]},ANGLE:{unit:UNITS.rad,prefix:PREFIXES.SHORT[""]},BIT:{unit:UNITS.bits,prefix:PREFIXES.SHORT[""]},FORCE:{unit:UNITS.N,prefix:PREFIXES.SHORT[""]},ENERGY:{unit:UNITS.J,prefix:PREFIXES.SHORT[""]},POWER:{unit:UNITS.W,prefix:PREFIXES.SHORT[""]},PRESSURE:{unit:UNITS.Pa,prefix:PREFIXES.SHORT[""]},ELECTRIC_CHARGE:{unit:UNITS.C,prefix:PREFIXES.SHORT[""]},ELECTRIC_CAPACITANCE:{unit:UNITS.F,prefix:PREFIXES.SHORT[""]},ELECTRIC_POTENTIAL:{unit:UNITS.V,prefix:PREFIXES.SHORT[""]},ELECTRIC_RESISTANCE:{unit:UNITS.ohm,prefix:PREFIXES.SHORT[""]},ELECTRIC_INDUCTANCE:{unit:UNITS.H,prefix:PREFIXES.SHORT[""]},ELECTRIC_CONDUCTANCE:{unit:UNITS.S,prefix:PREFIXES.SHORT[""]},MAGNETIC_FLUX:{unit:UNITS.Wb,prefix:PREFIXES.SHORT[""]},MAGNETIC_FLUX_DENSITY:{unit:UNITS.T,prefix:PREFIXES.SHORT[""]},FREQUENCY:{unit:UNITS.Hz,prefix:PREFIXES.SHORT[""]}}};UNIT_SYSTEMS.cgs=JSON.parse(JSON.stringify(UNIT_SYSTEMS.si)),UNIT_SYSTEMS.cgs.LENGTH={unit:UNITS.m,prefix:PREFIXES.SHORT.c},UNIT_SYSTEMS.cgs.MASS={unit:UNITS.g,prefix:PREFIXES.SHORT[""]},UNIT_SYSTEMS.cgs.FORCE={unit:UNITS.dyn,prefix:PREFIXES.SHORT[""]},UNIT_SYSTEMS.cgs.ENERGY={unit:UNITS.erg,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us=JSON.parse(JSON.stringify(UNIT_SYSTEMS.si)),UNIT_SYSTEMS.us.LENGTH={unit:UNITS.ft,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us.MASS={unit:UNITS.lbm,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us.TEMPERATURE={unit:UNITS.degF,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us.FORCE={unit:UNITS.lbf,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us.ENERGY={unit:UNITS.BTU,prefix:PREFIXES.BTU[""]},UNIT_SYSTEMS.us.POWER={unit:UNITS.hp,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us.PRESSURE={unit:UNITS.psi,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.auto=JSON.parse(JSON.stringify(UNIT_SYSTEMS.si));var currentUnitSystem=UNIT_SYSTEMS.auto;for(var _key2 in Unit.setUnitSystem=function(name){if(!(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNIT_SYSTEMS,name))throw new Error("Unit system "+name+" does not exist. Choices are: "+Object.keys(UNIT_SYSTEMS).join(", "));currentUnitSystem=UNIT_SYSTEMS[name]},Unit.getUnitSystem=function(){for(var _key in UNIT_SYSTEMS)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNIT_SYSTEMS,_key)&&UNIT_SYSTEMS[_key]===currentUnitSystem)return _key},Unit.typeConverters={BigNumber:function BigNumber(x){return null!=x&&x.isFraction?new _BigNumber(x.n).div(x.d).times(x.s):new _BigNumber(x+"")},Fraction:function Fraction(x){return new _Fraction(x)},Complex:function Complex(x){return x},number:function number(x){return null!=x&&x.isFraction?_number(x):x}},Unit.prototype._numberConverter=function(){var convert=Unit.typeConverters[this.valueType()];if(convert)return convert;throw new TypeError('Unsupported Unit value type "'+this.valueType()+'"')},Unit._getNumberConverter=function(type){if(!Unit.typeConverters[type])throw new TypeError('Unsupported type "'+type+'"');return Unit.typeConverters[type]},UNITS)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNITS,_key2)){var unit=UNITS[_key2];unit.dimensions=unit.base.dimensions}for(var _name2 in ALIASES)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(ALIASES,_name2)){var _unit2=UNITS[ALIASES[_name2]],alias={};for(var _key3 in _unit2)(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(_unit2,_key3)&&(alias[_key3]=_unit2[_key3]);alias.name=_name2,UNITS[_name2]=alias}return Unit.isValidAlpha=function isValidAlpha(c){return/^[a-zA-Z]$/.test(c)},Unit.createUnit=function(obj,options){if("object"!=typeof obj)throw new TypeError("createUnit expects first parameter to be of type 'Object'");if(options&&options.override)for(var _key4 in obj)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(obj,_key4)&&Unit.deleteUnit(_key4),obj[_key4].aliases)for(var i=0;i0&&!Unit.isValidAlpha(c)&&!isDigit(c))throw new Error('Invalid unit name (only alphanumeric characters are allowed): "'+name+'"')}}(name);var definition,prefixes,baseName,defUnit=null,aliases=[],offset=0;if(obj&&"Unit"===obj.type)defUnit=obj.clone();else if("string"==typeof obj)""!==obj&&(definition=obj);else{if("object"!=typeof obj)throw new TypeError('Cannot create unit "'+name+'" from "'+obj.toString()+'": expecting "string" or "Unit" or "Object"');definition=obj.definition,prefixes=obj.prefixes,offset=obj.offset,baseName=obj.baseName,obj.aliases&&(aliases=obj.aliases.valueOf())}if(aliases)for(var i=0;i1e-12){match=!1;break}if(match){anyMatch=!0,newUnit.base=BASE_UNITS[_i7];break}}if(!anyMatch){baseName=baseName||name+"_STUFF";var _newBaseUnit={dimensions:defUnit.dimensions.slice(0)};_newBaseUnit.key=baseName,BASE_UNITS[baseName]=_newBaseUnit,currentUnitSystem[baseName]={unit:newUnit,prefix:PREFIXES.NONE[""]},newUnit.base=BASE_UNITS[baseName]}}else{if(baseName=baseName||name+"_STUFF",BASE_DIMENSIONS.indexOf(baseName)>=0)throw new Error('Cannot create new base unit "'+name+'": a base unit with that name already exists (and cannot be overridden)');for(var b in BASE_DIMENSIONS.push(baseName),BASE_UNITS)(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(BASE_UNITS,b)&&(BASE_UNITS[b].dimensions[BASE_DIMENSIONS.length-1]=0);for(var newBaseUnit={dimensions:[]},_i6=0;_i6{var{typed:typed,Unit:Unit}=_ref;return typed("createUnit",{"Object, Object":function ObjectObject(obj,options){return Unit.createUnit(obj,options)},Object:function Object(obj){return Unit.createUnit(obj,{})},"string, Unit | string | Object, Object":function stringUnitStringObjectObject(name,def,options){var obj={};return obj[name]=def,Unit.createUnit(obj,options)},"string, Unit | string | Object":function stringUnitStringObject(name,def){var obj={};return obj[name]=def,Unit.createUnit(obj,{})},string:function string(name){var obj={};return obj[name]={},Unit.createUnit(obj,{})}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/function/splitUnit.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return createSplitUnit}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createSplitUnit=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("splitUnit",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("splitUnit",{"Unit, Array":function UnitArray(unit,parts){return unit.splitUnit(parts)}})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/function/unit.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return createUnitFunction}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed","Unit"],createUnitFunction=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("unit",dependencies,(_ref=>{var{typed:typed,Unit:Unit}=_ref;return typed("unit",{Unit:function Unit(x){return x.clone()},string:function string(x){return Unit.isValuelessUnit(x)?new Unit(null,x):Unit.parse(x,{allowNoUnits:!0})},"number | BigNumber | Fraction | Complex, string | Unit":function numberBigNumberFractionComplexStringUnit(value,unit){return new Unit(value,unit)},"number | BigNumber | Fraction":function numberBigNumberFraction(value){return new Unit(value)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/physicalConstants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$M:function(){return createPlanckConstant},A0:function(){return createRydberg},B7:function(){return createPlanckCharge},BL:function(){return createProtonMass},CQ:function(){return createGravity},Dg:function(){return createWeakMixingAngle},GI:function(){return createSecondRadiation},Go:function(){return createFaraday},Gw:function(){return createBoltzmann},IW:function(){return createElementaryCharge},JS:function(){return createElectricConstant},Km:function(){return createInverseConductanceQuantum},Oz:function(){return createPlanckTemperature},Ps:function(){return createPlanckLength},Qr:function(){return createMolarMassC12},RZ:function(){return createMagneticFluxQuantum},Rw:function(){return createFineStructure},Uu:function(){return createFirstRadiation},V9:function(){return createThomsonCrossSection},VL:function(){return createKlitzing},Vv:function(){return createGasConstant},W5:function(){return createWienDisplacement},Yv:function(){return createReducedPlanckConstant},Zu:function(){return createFermiCoupling},_C:function(){return createAtomicMass},ax:function(){return createMagneticConstant},c0:function(){return createHartreeEnergy},cn:function(){return createMolarPlanckConstant},d:function(){return createNuclearMagneton},ir:function(){return createCoulomb},j5:function(){return createNeutronMass},jp:function(){return createClassicalElectronRadius},kL:function(){return createQuantumOfCirculation},lR:function(){return createMolarVolume},lr:function(){return createSackurTetrode},nH:function(){return createGravitationConstant},o8:function(){return createElectronMass},of:function(){return createPlanckTime},pz:function(){return createBohrRadius},rK:function(){return createAvogadro},ri:function(){return createBohrMagneton},sD:function(){return createLoschmidt},sW:function(){return createEfimovFactor},ss:function(){return createSpeedOfLight},u1:function(){return createConductanceQuantum},v0:function(){return createPlanckMass},xt:function(){return createMolarMass},xx:function(){return createVacuumImpedance},zP:function(){return createDeuteronMass},zt:function(){return createStefanBoltzmann}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),createSpeedOfLight=unitFactory("speedOfLight","299792458","m s^-1"),createGravitationConstant=unitFactory("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),createPlanckConstant=unitFactory("planckConstant","6.62607015e-34","J s"),createReducedPlanckConstant=unitFactory("reducedPlanckConstant","1.0545718176461565e-34","J s"),createMagneticConstant=unitFactory("magneticConstant","1.25663706212e-6","N A^-2"),createElectricConstant=unitFactory("electricConstant","8.8541878128e-12","F m^-1"),createVacuumImpedance=unitFactory("vacuumImpedance","376.730313667","ohm"),createCoulomb=unitFactory("coulomb","8.987551792261171e9","N m^2 C^-2"),createElementaryCharge=unitFactory("elementaryCharge","1.602176634e-19","C"),createBohrMagneton=unitFactory("bohrMagneton","9.2740100783e-24","J T^-1"),createConductanceQuantum=unitFactory("conductanceQuantum","7.748091729863649e-5","S"),createInverseConductanceQuantum=unitFactory("inverseConductanceQuantum","12906.403729652257","ohm"),createMagneticFluxQuantum=unitFactory("magneticFluxQuantum","2.0678338484619295e-15","Wb"),createNuclearMagneton=unitFactory("nuclearMagneton","5.0507837461e-27","J T^-1"),createKlitzing=unitFactory("klitzing","25812.807459304513","ohm"),createBohrRadius=unitFactory("bohrRadius","5.29177210903e-11","m"),createClassicalElectronRadius=unitFactory("classicalElectronRadius","2.8179403262e-15","m"),createElectronMass=unitFactory("electronMass","9.1093837015e-31","kg"),createFermiCoupling=unitFactory("fermiCoupling","1.1663787e-5","GeV^-2"),createFineStructure=numberFactory("fineStructure",.0072973525693),createHartreeEnergy=unitFactory("hartreeEnergy","4.3597447222071e-18","J"),createProtonMass=unitFactory("protonMass","1.67262192369e-27","kg"),createDeuteronMass=unitFactory("deuteronMass","3.3435830926e-27","kg"),createNeutronMass=unitFactory("neutronMass","1.6749271613e-27","kg"),createQuantumOfCirculation=unitFactory("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),createRydberg=unitFactory("rydberg","10973731.568160","m^-1"),createThomsonCrossSection=unitFactory("thomsonCrossSection","6.6524587321e-29","m^2"),createWeakMixingAngle=numberFactory("weakMixingAngle",.2229),createEfimovFactor=numberFactory("efimovFactor",22.7),createAtomicMass=unitFactory("atomicMass","1.66053906660e-27","kg"),createAvogadro=unitFactory("avogadro","6.02214076e23","mol^-1"),createBoltzmann=unitFactory("boltzmann","1.380649e-23","J K^-1"),createFaraday=unitFactory("faraday","96485.33212331001","C mol^-1"),createFirstRadiation=unitFactory("firstRadiation","3.7417718521927573e-16","W m^2"),createLoschmidt=unitFactory("loschmidt","2.686780111798444e25","m^-3"),createGasConstant=unitFactory("gasConstant","8.31446261815324","J K^-1 mol^-1"),createMolarPlanckConstant=unitFactory("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),createMolarVolume=unitFactory("molarVolume","0.022413969545014137","m^3 mol^-1"),createSackurTetrode=numberFactory("sackurTetrode",-1.16487052358),createSecondRadiation=unitFactory("secondRadiation","0.014387768775039337","m K"),createStefanBoltzmann=unitFactory("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),createWienDisplacement=unitFactory("wienDisplacement","2.897771955e-3","m K"),createMolarMass=unitFactory("molarMass","0.99999999965e-3","kg mol^-1"),createMolarMassC12=unitFactory("molarMassC12","11.9999999958e-3","kg mol^-1"),createGravity=unitFactory("gravity","9.80665","m s^-2"),createPlanckLength=unitFactory("planckLength","1.616255e-35","m"),createPlanckMass=unitFactory("planckMass","2.176435e-8","kg"),createPlanckTime=unitFactory("planckTime","5.391245e-44","s"),createPlanckCharge=unitFactory("planckCharge","1.87554603778e-18","C"),createPlanckTemperature=unitFactory("planckTemperature","1.416785e+32","K");function unitFactory(name,valueStr,unitStr){return(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["config","Unit","BigNumber"],(_ref=>{var{config:config,Unit:Unit,BigNumber:BigNumber}=_ref,unit=new Unit("BigNumber"===config.number?new BigNumber(valueStr):parseFloat(valueStr),unitStr);return unit.fixPrefix=!0,unit}))}function numberFactory(name,value){return(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["config","BigNumber"],(_ref2=>{var{config:config,BigNumber:BigNumber}=_ref2;return"BigNumber"===config.number?new BigNumber(value):value}))}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/applyCallback.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return applyCallback}});var typed_function__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/typed-function/lib/umd/typed-function.js"),typed_function__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(typed_function__WEBPACK_IMPORTED_MODULE_0__),_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js");function applyCallback(callback,value,index,array,mappingFnName){if(typed_function__WEBPACK_IMPORTED_MODULE_0___default().isTypedFunction(callback)){var args3=[value,index,array],signature3=typed_function__WEBPACK_IMPORTED_MODULE_0___default().resolve(callback,args3);if(signature3)return tryWithArgs(signature3.implementation,args3);var args2=[value,index],signature2=typed_function__WEBPACK_IMPORTED_MODULE_0___default().resolve(callback,args2);if(signature2)return tryWithArgs(signature2.implementation,args2);var args1=[value],signature1=typed_function__WEBPACK_IMPORTED_MODULE_0___default().resolve(callback,args1);return signature1?tryWithArgs(signature1.implementation,args1):tryWithArgs(callback,args3)}return callback(value,index,array);function tryWithArgs(signature,args){try{return signature.apply(signature,args)}catch(err){var _err$data;if(err instanceof TypeError&&"wrongType"===(null===(_err$data=err.data)||void 0===_err$data?void 0:_err$data.category)){var argsDesc=[];throw argsDesc.push("value: ".concat((0,_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(value))),args.length>=2&&argsDesc.push("index: ".concat((0,_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(index))),args.length>=3&&argsDesc.push("array: ".concat((0,_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(array))),new TypeError("Function ".concat(mappingFnName," cannot apply callback arguments ")+"".concat(callback.name,"(").concat(argsDesc.join(", "),") at index ").concat(JSON.stringify(index)))}throw new TypeError("Function ".concat(mappingFnName," cannot apply callback arguments ")+"to function ".concat(callback.name,": ").concat(err.message))}}}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$q:function(){return getArrayDataType},D$:function(){return generalize},Ed:function(){return forEach},Gu:function(){return validate},JD:function(){return isEmptyIndex},L9:function(){return squeeze},Ls:function(){return validateIndex},SI:function(){return resize},UF:function(){return broadcastTo},UI:function(){return map},U_:function(){return filterRegExp},XL:function(){return reshape},aJ:function(){return arraySize},bc:function(){return validateIndexSourceSize},cV:function(){return checkBroadcastingRules},eu:function(){return processSizesWildcard},f4:function(){return unsqueeze},hX:function(){return filter},r3:function(){return contains},v_:function(){return join},xH:function(){return flatten},yV:function(){return identify},zo:function(){return concat}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_string_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/DimensionError.js"),_error_IndexError_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/IndexError.js"),_object_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js");function arraySize(x){for(var s=[];Array.isArray(x);)s.push(x.length),x=x[0];return s}function _validate(array,size,dim){var i,len=array.length;if(len!==size[dim])throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_0__.m(len,size[dim]);if(dim")}function validate(array,size){if(0===size.length){if(Array.isArray(array))throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_0__.m(array.length,0)}else _validate(array,size,0)}function validateIndexSourceSize(value,index){var valueSize=value.isMatrix?value._size:arraySize(value);index._sourceSize.forEach(((sourceDim,i)=>{if(null!==sourceDim&&sourceDim!==valueSize[i])throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_0__.m(sourceDim,valueSize[i])}))}function validateIndex(index,length){if(void 0!==index){if(!(0,_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(index)||!(0,_number_js__WEBPACK_IMPORTED_MODULE_2__.U)(index))throw new TypeError("Index must be an integer (value: "+index+")");if(index<0||"number"==typeof length&&index>=length)throw new _error_IndexError_js__WEBPACK_IMPORTED_MODULE_3__.c(index,length)}}function isEmptyIndex(index){for(var i=0;i=0){if(!(currentLength%newLength==0))throw new Error("Could not replace wildcard, since "+currentLength+" is no multiple of "+-newLength);processedSizes[wildCardIndex]=-currentLength/newLength}return processedSizes}function product(array){return array.reduce(((prev,curr)=>prev*curr),1)}function squeeze(array,size){for(var s=size||arraySize(array);Array.isArray(array)&&1===array.length;)array=array[0],s.shift();for(var dims=s.length;1===s[dims-1];)dims--;return dimsregexp.test(entry)))}function join(array,separator){return Array.prototype.join.call(array,separator)}function identify(a){if(!Array.isArray(a))throw new TypeError("Array input expected");if(0===a.length)return a;var b=[],count=0;b[0]={value:a[0],identifier:0};for(var i=1;i1)return arrays.slice(1).reduce((function(A,B){return concatRecursive(A,B,concatDim,0)}),arrays[0]);throw new Error("Wrong number of arguments in function concat")}function broadcastSizes(){for(var _len=arguments.length,sizes=new Array(_len),_key=0;_key<_len;_key++)sizes[_key]=arguments[_key];for(var dimensions=sizes.map((s=>s.length)),N=Math.max(...dimensions),sizeMax=new Array(N).fill(null),i=0;isizeMax[n]&&(sizeMax[n]=size[j])}for(var _i=0;_i1||size[j]>toSize[n])throw new Error("shape missmatch: missmatch is found in arg with shape (".concat(size,") not possible to broadcast dimension ").concat(dim," with size ").concat(size[j]," to size ").concat(toSize[n]))}}function broadcastTo(array,toSize){var Asize=arraySize(array);if((0,_object_js__WEBPACK_IMPORTED_MODULE_5__.J5)(Asize,toSize))return array;checkBroadcastingRules(Asize,toSize);var arrayToStretch,sizeToStretch,dimToStretch,broadcastedSize=broadcastSizes(Asize,toSize),N=broadcastedSize.length,paddedSize=[...Array(N-Asize.length).fill(1),...Asize],A=function clone(array){return(0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_6__.Z)([],array)}(array);Asize.length0;)func(minBits[--shortLen],maxBits[--longLen])===expFuncVal&&(outVal=outVal.plus(twoPower)),twoPower=twoPower.times(two);for(;longLen>0;)func(minSign,maxBits[--longLen])===expFuncVal&&(outVal=outVal.plus(twoPower)),twoPower=twoPower.times(two);return BigNumber.config({precision:prevPrec}),0===expFuncVal&&(outVal.s=-outVal.s),outVal}function decCoefficientToBinaryString(x){for(var a=x.d,r=a[0]+"",i=1;i0)if(++xe>strL)for(xe-=strL;xe--;)str+="0";else xe1&&(null!==arr[_j+1]&&void 0!==arr[_j+1]||(arr[_j+1]=0),arr[_j+1]+=arr[_j]>>1,arr[_j]&=1)}return arr.reverse()}function bitXor(x,y){if(x.isFinite()&&!x.isInteger()||y.isFinite()&&!y.isInteger())throw new Error("Integers expected in function bitXor");var BigNumber=x.constructor;if(x.isNaN()||y.isNaN())return new BigNumber(NaN);if(x.isZero())return y;if(y.isZero())return x;if(x.eq(y))return new BigNumber(0);var negOne=new BigNumber(-1);return x.eq(negOne)?bitNotBigNumber(y):y.eq(negOne)?bitNotBigNumber(x):x.isFinite()&&y.isFinite()?bitwise(x,y,(function(a,b){return a^b})):x.isFinite()||y.isFinite()?new BigNumber(x.isNegative()===y.isNegative()?1/0:-1/0):negOne}function leftShiftBigNumber(x,y){if(x.isFinite()&&!x.isInteger()||y.isFinite()&&!y.isInteger())throw new Error("Integers expected in function leftShift");var BigNumber=x.constructor;return x.isNaN()||y.isNaN()||y.isNegative()&&!y.isZero()?new BigNumber(NaN):x.isZero()||y.isZero()?x:x.isFinite()||y.isFinite()?y.lt(55)?x.times(Math.pow(2,y.toNumber())+""):x.times(new BigNumber(2).pow(y)):new BigNumber(NaN)}function rightArithShiftBigNumber(x,y){if(x.isFinite()&&!x.isInteger()||y.isFinite()&&!y.isInteger())throw new Error("Integers expected in function rightArithShift");var BigNumber=x.constructor;return x.isNaN()||y.isNaN()||y.isNegative()&&!y.isZero()?new BigNumber(NaN):x.isZero()||y.isZero()?x:y.isFinite()?y.lt(55)?x.div(Math.pow(2,y.toNumber())+"").floor():x.div(new BigNumber(2).pow(y)).floor():x.isNegative()?new BigNumber(-1):x.isFinite()?new BigNumber(0):new BigNumber(NaN)}__webpack_require__.d(__webpack_exports__,{Mw:function(){return leftShiftBigNumber},Vq:function(){return bitOrBigNumber},Xc:function(){return bitNotBigNumber},hi:function(){return bitAndBigNumber},nN:function(){return bitXor},ti:function(){return rightArithShiftBigNumber}})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j_:function(){return createBigNumberTau},vu:function(){return createBigNumberE},wY:function(){return createBigNumberPi},zm:function(){return createBigNumberPhi}});var _function_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/function.js"),createBigNumberE=(0,_function_js__WEBPACK_IMPORTED_MODULE_0__.HP)((function(BigNumber){return new BigNumber(1).exp()}),{hasher:hasher}),createBigNumberPhi=(0,_function_js__WEBPACK_IMPORTED_MODULE_0__.HP)((function(BigNumber){return new BigNumber(1).plus(new BigNumber(5).sqrt()).div(2)}),{hasher:hasher}),createBigNumberPi=(0,_function_js__WEBPACK_IMPORTED_MODULE_0__.HP)((function(BigNumber){return BigNumber.acos(-1)}),{hasher:hasher}),createBigNumberTau=(0,_function_js__WEBPACK_IMPORTED_MODULE_0__.HP)((function(BigNumber){return createBigNumberPi(BigNumber).times(2)}),{hasher:hasher});function hasher(args){return args[0].precision}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function nearlyEqual(x,y,epsilon){if(null==epsilon)return x.eq(y);if(x.eq(y))return!0;if(x.isNaN()||y.isNaN())return!1;if(x.isFinite()&&y.isFinite()){var diff=x.minus(y).abs();if(diff.isZero())return!0;var max=x.constructor.max(x.abs(),y.abs());return diff.lte(max.times(epsilon))}return!1}__webpack_require__.d(__webpack_exports__,{R:function(){return nearlyEqual}})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{CQ:function(){return containsCollections},Et:function(){return deepForEach},Fh:function(){return deepMap},U6:function(){return scatter},u4:function(){return reduce}});var _is_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),_error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/IndexError.js"),_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),_switch_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/switch.js");function containsCollections(array){for(var i=0;i=size.length)throw new _error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__.c(dim,size.length);return(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.SW)(mat)?mat.create(_reduce(mat.valueOf(),dim,callback)):_reduce(mat,dim,callback)}function _reduce(mat,dim,callback){var i,ret,val,tran;if(dim<=0){if(Array.isArray(mat[0])){for(tran=(0,_switch_js__WEBPACK_IMPORTED_MODULE_3__.c)(mat),ret=[],i=0;i!function isOptionalDependency(dependency){return dependency&&"?"===dependency[0]}(dependency))).every((dependency=>void 0!==scope[dependency]));if(!allDefined){var missingDependencies=dependencies.filter((dependency=>void 0===scope[dependency]));throw new Error('Cannot create function "'.concat(name,'", ')+"some dependencies are missing: ".concat(missingDependencies.map((d=>'"'.concat(d,'"'))).join(", "),"."))}}(name,dependencies,scope),create(deps)}return assertAndCreate.isFactory=!0,assertAndCreate.fn=name,assertAndCreate.dependencies=dependencies.slice().sort(),meta&&(assertAndCreate.meta=meta),assertAndCreate}function isFactory(obj){return"function"==typeof obj&&"string"==typeof obj.fn&&Array.isArray(obj.dependencies)}function stripOptionalNotation(dependency){return dependency&&"?"===dependency[0]?dependency.slice(1):dependency}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/function.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function lruQueue(limit){var size=0,base=1,queue=Object.create(null),map=Object.create(null),index=0,del=function del(id){var oldIndex=map[id];if(oldIndex&&(delete queue[oldIndex],delete map[id],--size,base===oldIndex)){if(!size)return index=0,void(base=1);for(;!Object.prototype.hasOwnProperty.call(queue,++base););}};return limit=Math.abs(limit),{hit:function hit(id){var oldIndex=map[id],nuIndex=++index;if(queue[nuIndex]=id,map[id]=nuIndex,!oldIndex){if(++size<=limit)return;return id=queue[base],del(id),id}if(delete queue[oldIndex],base===oldIndex)for(;!Object.prototype.hasOwnProperty.call(queue,++base););},delete:del,clear:function clear(){size=index=0,base=1,queue=Object.create(null),map=Object.create(null)}}}function memoize(fn){var{hasher:hasher,limit:limit}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return limit=null==limit?Number.POSITIVE_INFINITY:limit,hasher=null==hasher?JSON.stringify:hasher,function memoize(){"object"!=typeof memoize.cache&&(memoize.cache={values:new Map,lru:lruQueue(limit||Number.POSITIVE_INFINITY)});for(var args=[],i=0;i[key,this.get(key)]))}forEach(callback){for(var key of this.keys())callback(this.get(key),key,this)}delete(key){delete this.wrappedObject[key]}clear(){for(var key of this.keys())this.delete(key)}get size(){return Object.keys(this.wrappedObject).length}}class PartitionedMap{constructor(a,b,bKeys){this.a=a,this.b=b,this.bKeys=bKeys,this[Symbol.iterator]=this.entries}get(key){return this.bKeys.has(key)?this.b.get(key):this.a.get(key)}set(key,value){return this.bKeys.has(key)?this.b.set(key,value):this.a.set(key,value),this}has(key){return this.b.has(key)||this.a.has(key)}keys(){return new Set([...this.a.keys(),...this.b.keys()])[Symbol.iterator]()}entries(){return mapIterator(this.keys(),(key=>[key,this.get(key)]))}forEach(callback){for(var key of this.keys())callback(this.get(key),key,this)}delete(key){return this.bKeys.has(key)?this.b.delete(key):this.a.delete(key)}clear(){this.a.clear(),this.b.clear()}get size(){return[...this.keys()].length}}function mapIterator(it,callback){return{next:()=>{var n=it.next();return n.done?n:{value:callback(n.value),done:!1}}}}function createEmptyMap(){return new Map}function createMap(mapOrObject){if(!mapOrObject)return createEmptyMap();if(isMap(mapOrObject))return mapOrObject;if((0,_is_js__WEBPACK_IMPORTED_MODULE_1__.Kn)(mapOrObject))return new ObjectWrappingMap(mapOrObject);throw new Error("createMap can create maps from objects or Maps")}function toObject(map){if(map instanceof ObjectWrappingMap)return map.wrappedObject;var object={};for(var key of map.keys()){var value=map.get(key);(0,_customs_js__WEBPACK_IMPORTED_MODULE_0__.nI)(object,key,value)}return object}function isMap(object){return!!object&&(object instanceof Map||object instanceof ObjectWrappingMap||"function"==typeof object.set&&"function"==typeof object.get&&"function"==typeof object.keys&&"function"==typeof object.has)}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/noop.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function noBignumber(){throw new Error('No "bignumber" implementation available')}function noFraction(){throw new Error('No "fraction" implementation available')}function noMatrix(){throw new Error('No "matrix" implementation available')}__webpack_require__.d(__webpack_exports__,{R3:function(){return noBignumber},kX:function(){return noMatrix},nG:function(){return noFraction}})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AE:function(){return tanh},C8:function(){return atanh},FH:function(){return toFixed},JG:function(){return copysign},Kr:function(){return log1p},RI:function(){return nearlyEqual},R_:function(){return sinh},U:function(){return isInteger},Vf:function(){return asinh},WU:function(){return format},Xx:function(){return sign},__:function(){return acosh},eK:function(){return cbrt},f9:function(){return cosh},k3:function(){return log2},mv:function(){return log10},nz:function(){return digits},t$:function(){return expm1},uR:function(){return normalizeFormatOptions},wV:function(){return splitNumber}});var _is_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js");function isInteger(value){return"boolean"==typeof value||!!isFinite(value)&&value===Math.round(value)}var sign=Math.sign||function(x){return x>0?1:x<0?-1:0},log2=Math.log2||function log2(x){return Math.log(x)/Math.LN2},log10=Math.log10||function log10(x){return Math.log(x)/Math.LN10},log1p=Math.log1p||function(x){return Math.log(x+1)},cbrt=Math.cbrt||function cbrt(x){if(0===x)return x;var result,negate=x<0;return negate&&(x=-x),result=isFinite(x)?(x/((result=Math.exp(Math.log(x)/3))*result)+2*result)/3:x,negate?-result:result},expm1=Math.expm1||function expm1(x){return x>=2e-4||x<=-2e-4?Math.exp(x)-1:x+x*x/2+x*x*x/6};function formatNumberToBase(n,base,size){var prefix={2:"0b",8:"0o",16:"0x"}[base],suffix="";if(size){if(size<1)throw new Error("size must be in greater than 0");if(!isInteger(size))throw new Error("size must be an integer");if(n>2**(size-1)-1||n<-(2**(size-1)))throw new Error("Value must be in range [-2^".concat(size-1,", 2^").concat(size-1,"-1]"));if(!isInteger(n))throw new Error("Value must be an integer");n<0&&(n+=2**size),suffix="i".concat(size)}var sign="";return n<0&&(n=-n,sign="-"),"".concat(sign).concat(prefix).concat(n.toString(base)).concat(suffix)}function format(value,options){if("function"==typeof options)return options(value);if(value===1/0)return"Infinity";if(value===-1/0)return"-Infinity";if(isNaN(value))return"NaN";var{notation:notation,precision:precision,wordSize:wordSize}=normalizeFormatOptions(options);switch(notation){case"fixed":return toFixed(value,precision);case"exponential":return toExponential(value,precision);case"engineering":return function toEngineering(value,precision){if(isNaN(value)||!isFinite(value))return String(value);var split=splitNumber(value),rounded=roundDigits(split,precision),e=rounded.exponent,c=rounded.coefficients,newExp=e%3==0?e:e<0?e-3-e%3:e-e%3;if((0,_is_js__WEBPACK_IMPORTED_MODULE_0__.hj)(precision))for(;precision>c.length||e-newExp+1>c.length;)c.push(0);else for(var missingZeros=Math.abs(e-newExp)-(c.length-1),i=0;i0;)decimalIdx++,expDiff--;var decimals=c.slice(decimalIdx).join(""),decimalVal=(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.hj)(precision)&&decimals.length||decimals.match(/[1-9]/)?"."+decimals:"",str=c.slice(0,decimalIdx).join("")+decimalVal+"e"+(e>=0?"+":"")+newExp.toString();return rounded.sign+str}(value,precision);case"bin":return formatNumberToBase(value,2,wordSize);case"oct":return formatNumberToBase(value,8,wordSize);case"hex":return formatNumberToBase(value,16,wordSize);case"auto":return function toPrecision(value,precision,options){if(isNaN(value)||!isFinite(value))return String(value);var lowerExp=_toNumberOrDefault(null==options?void 0:options.lowerExp,-3),upperExp=_toNumberOrDefault(null==options?void 0:options.upperExp,5),split=splitNumber(value),rounded=precision?roundDigits(split,precision):split;if(rounded.exponent=upperExp)return toExponential(value,precision);var c=rounded.coefficients,e=rounded.exponent;c.length0?e:0;return dot<(c=zeros(-e).concat(c)).length-1&&c.splice(dot+1,0,"."),rounded.sign+c.join("")}(value,precision,options).replace(/((\.\d*?)(0+))($|e)/,(function(){var digits=arguments[2],e=arguments[4];return"."!==digits?digits+e:e}));default:throw new Error('Unknown notation "'+notation+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function normalizeFormatOptions(options){var precision,wordSize,notation="auto";if(void 0!==options)if((0,_is_js__WEBPACK_IMPORTED_MODULE_0__.hj)(options))precision=options;else if((0,_is_js__WEBPACK_IMPORTED_MODULE_0__.l9)(options))precision=options.toNumber();else{if(!(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.Kn)(options))throw new Error("Unsupported type of options, number, BigNumber, or object expected");void 0!==options.precision&&(precision=_toNumberOrThrow(options.precision,(()=>{throw new Error('Option "precision" must be a number or BigNumber')}))),void 0!==options.wordSize&&(wordSize=_toNumberOrThrow(options.wordSize,(()=>{throw new Error('Option "wordSize" must be a number or BigNumber')}))),options.notation&&(notation=options.notation)}return{notation:notation,precision:precision,wordSize:wordSize}}function splitNumber(value){var match=String(value).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!match)throw new SyntaxError("Invalid number "+value);var sign=match[1],digits=match[2],exponent=parseFloat(match[4]||"0"),dot=digits.indexOf(".");exponent+=-1!==dot?dot-1:digits.length-1;var coefficients=digits.replace(".","").replace(/^0*/,(function(zeros){return exponent-=zeros.length,""})).replace(/0*$/,"").split("").map((function(d){return parseInt(d)}));return 0===coefficients.length&&(coefficients.push(0),exponent++),{sign:sign,coefficients:coefficients,exponent:exponent}}function toFixed(value,precision){if(isNaN(value)||!isFinite(value))return String(value);var splitValue=splitNumber(value),rounded="number"==typeof precision?roundDigits(splitValue,splitValue.exponent+1+precision):splitValue,c=rounded.coefficients,p=rounded.exponent+1,pp=p+(precision||0);return c.length0?"."+c.join(""):"")+"e"+(e>=0?"+":"")+e}function roundDigits(split,precision){for(var rounded={sign:split.sign,coefficients:split.coefficients,exponent:split.exponent},c=rounded.coefficients;precision<=0;)c.unshift(0),rounded.exponent++,precision++;if(c.length>precision&&c.splice(precision,c.length-precision)[0]>=5){var i=precision-1;for(c[i]++;10===c[i];)c.pop(),0===i&&(c.unshift(0),rounded.exponent++,i++),c[--i]++}return rounded}function zeros(length){for(var arr=[],i=0;i0||!(x<0)&&1/x==1/0)^(y>0||!(y<0)&&1/y==1/0)?-x:x}function _toNumberOrThrow(value,onError){return(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.hj)(value)?value:(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.l9)(value)?value.toNumber():void onError()}function _toNumberOrDefault(value,defaultValue){return(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.hj)(value)?value:(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.l9)(value)?value.toNumber():defaultValue}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J5:function(){return deepStrictEqual},Vo:function(){return lazy},W6:function(){return pickShallow},Xc:function(){return mapObject},Yo:function(){return isLegacyFactory},ZB:function(){return deepExtend},d9:function(){return clone},l7:function(){return extend},nr:function(){return hasOwnProperty},oO:function(){return deepFlatten}});var _is_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js");function clone(x){var type=typeof x;if("number"===type||"string"===type||"boolean"===type||null==x)return x;if("function"==typeof x.clone)return x.clone();if(Array.isArray(x))return x.map((function(value){return clone(value)}));if(x instanceof Date)return new Date(x.valueOf());if((0,_is_js__WEBPACK_IMPORTED_MODULE_0__.l9)(x))return x;if((0,_is_js__WEBPACK_IMPORTED_MODULE_0__.Kn)(x))return mapObject(x,clone);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(x,")"))}function mapObject(object,callback){var clone={};for(var key in object)hasOwnProperty(object,key)&&(clone[key]=callback(object[key]));return clone}function extend(a,b){for(var prop in b)hasOwnProperty(b,prop)&&(a[prop]=b[prop]);return a}function deepExtend(a,b){if(Array.isArray(b))throw new TypeError("Arrays are not supported by deepExtend");for(var prop in b)if(hasOwnProperty(b,prop)&&!(prop in Object.prototype)&&!(prop in Function.prototype))if(b[prop]&&b[prop].constructor===Object)void 0===a[prop]&&(a[prop]={}),a[prop]&&a[prop].constructor===Object?deepExtend(a[prop],b[prop]):a[prop]=b[prop];else{if(Array.isArray(b[prop]))throw new TypeError("Arrays are not supported by deepExtend");a[prop]=b[prop]}return a}function deepStrictEqual(a,b){var prop,i,len;if(Array.isArray(a)){if(!Array.isArray(b))return!1;if(a.length!==b.length)return!1;for(i=0,len=a.length;i>1;return product(i,half)*product(half+1,n)}__webpack_require__.d(__webpack_exports__,{O:function(){return product}})},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{cd:function(){return compareText},pn:function(){return endsWith},YU:function(){return string_escape},WU:function(){return string_format},Pz:function(){return stringify}});var is=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),number=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js");function formatBigNumberToBase(n,base,size){var big2=new(0,n.constructor)(2),suffix="";if(size){if(size<1)throw new Error("size must be in greater than 0");if(!(0,number.U)(size))throw new Error("size must be an integer");if(n.greaterThan(big2.pow(size-1).sub(1))||n.lessThan(big2.pow(size-1).mul(-1)))throw new Error("Value must be in range [-2^".concat(size-1,", 2^").concat(size-1,"-1]"));if(!n.isInteger())throw new Error("Value must be an integer");n.lessThan(0)&&(n=n.add(big2.pow(size))),suffix="i".concat(size)}switch(base){case 2:return"".concat(n.toBinary()).concat(suffix);case 8:return"".concat(n.toOctal()).concat(suffix);case 16:return"".concat(n.toHexadecimal()).concat(suffix);default:throw new Error("Base ".concat(base," not supported "))}}function format(value,options){if("function"==typeof options)return options(value);if(!value.isFinite())return value.isNaN()?"NaN":value.gt(0)?"Infinity":"-Infinity";var{notation:notation,precision:precision,wordSize:wordSize}=(0,number.uR)(options);switch(notation){case"fixed":return function toFixed(value,precision){return value.toFixed(precision)}(value,precision);case"exponential":return toExponential(value,precision);case"engineering":return function toEngineering(value,precision){var e=value.e,newExp=e%3==0?e:e<0?e-3-e%3:e-e%3,valueWithoutExp=value.mul(Math.pow(10,-newExp)),valueStr=valueWithoutExp.toPrecision(precision);if(-1!==valueStr.indexOf("e")){valueStr=new(0,value.constructor)(valueStr).toFixed()}return valueStr+"e"+(e>=0?"+":"")+newExp.toString()}(value,precision);case"bin":return formatBigNumberToBase(value,2,wordSize);case"oct":return formatBigNumberToBase(value,8,wordSize);case"hex":return formatBigNumberToBase(value,16,wordSize);case"auto":var lowerExp=_toNumberOrDefault(null==options?void 0:options.lowerExp,-3),upperExp=_toNumberOrDefault(null==options?void 0:options.upperExp,5);if(value.isZero())return"0";var rounded=value.toSignificantDigits(precision),exp=rounded.e;return(exp>=lowerExp&&expstringify(key)+": "+string_format(value[key],options))).join(", ")+"}"}return String(value)}(value,options);return options&&"object"==typeof options&&"truncate"in options&&result.length>options.truncate?result.substring(0,options.truncate-3)+"...":result}function stringify(value){for(var text=String(value),escaped="",i=0;i/g,">")}function formatArray(array,options){if(Array.isArray(array)){for(var str="[",len=array.length,i=0;iy?1:-1}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/switch.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function _switch(mat){var i,j,I=mat.length,J=mat[0].length,ret=[];for(j=0;j1&&void 0!==arguments[1]?arguments[1]:"any";const beforeIndex=beforeSpec?findType(beforeSpec).index:typeList.length,newTypes=[];for(let i=0;i{const type=typeMap.get(name);return!type.isAny&&type.test(value)}));return matches.length?matches:["any"]}function isTypedFunction(entity){return entity&&"function"==typeof entity&&"_typedFunctionData"in entity}function findSignature(fn,signature,options){if(!isTypedFunction(fn))throw new TypeError(NOT_TYPED_FUNCTION);const exact=options&&options.exact,params=parseSignature(Array.isArray(signature)?signature.join(","):signature),canonicalSignature=stringifyParams(params);if(!exact||canonicalSignature in fn.signatures){const match=fn._typedFunctionData.signatureMap.get(canonicalSignature);if(match)return match}const nParams=params.length;let remainingSignatures,candidate;if(exact){let name;for(name in remainingSignatures=[],fn.signatures)remainingSignatures.push(fn._typedFunctionData.signatureMap.get(name))}else remainingSignatures=fn._typedFunctionData.signatures;for(let i=0;i!haveTypes.has(wtype.name))))continue}filteredSignatures.push(possibility)}}if(remainingSignatures=filteredSignatures,0===remainingSignatures.length)break}for(candidate of remainingSignatures)if(candidate.params.length<=nParams)return candidate;throw new TypeError("Signature not found (signature: "+(fn.name||"unnamed")+"("+stringifyParams(params,", ")+"))")}function find(fn,signature,options){return findSignature(fn,signature,options).implementation}function convert(value,typeName){const type=findType(typeName);if(type.test(value))return value;const conversions=type.conversionsTo;if(0===conversions.length)throw new Error("There are no conversions to "+typeName+" defined.");for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:",";return params.map((p=>p.name)).join(separator)}function parseParam(param){const restParam=0===param.indexOf("..."),typeDefs=(restParam?param.length>3?param.slice(3):"any":param).split("|").map((s=>findType(s.trim())));let hasAny=!1,paramName=restParam?"...":"";return{types:typeDefs.map((function(type){return hasAny=type.isAny||hasAny,paramName+=type.name+"|",{name:type.name,typeIndex:type.index,test:type.test,isAny:type.isAny,conversion:null,conversionIndex:-1}})),name:paramName.slice(0,-1),hasAny:hasAny,hasConversion:!1,restParam:restParam}}function expandParam(param){const matchingConversions=availableConversions(param.types.map((t=>t.name)));let hasAny=param.hasAny,newName=param.name;const convertibleTypes=matchingConversions.map((function(conversion){const type=findType(conversion.from);return hasAny=type.isAny||hasAny,newName+="|"+conversion.from,{name:conversion.from,typeIndex:type.index,test:type.test,isAny:type.isAny,conversion:conversion,conversionIndex:conversion.index}}));return{types:param.types.concat(convertibleTypes),name:newName,hasAny:hasAny,hasConversion:convertibleTypes.length>0,restParam:param.restParam}}function paramTypeSet(param){return param.typeSet||(param.typeSet=new Set,param.types.forEach((type=>param.typeSet.add(type.name)))),param.typeSet}function parseSignature(rawSignature){const params=[];if("string"!=typeof rawSignature)throw new TypeError("Signatures must be strings");const signature=rawSignature.trim();if(""===signature)return params;const rawParams=signature.split(",");for(let i=0;i=varIndex+1}}return 0===params.length?function testArgs(args){return 0===args.length}:1===params.length?(test0=compileTest(params[0]),function testArgs(args){return test0(args[0])&&1===args.length}):2===params.length?(test0=compileTest(params[0]),test1=compileTest(params[1]),function testArgs(args){return test0(args[0])&&test1(args[1])&&2===args.length}):(tests=params.map(compileTest),function testArgs(args){for(let i=0;i{const paramSet=getTypeSetAtIndex(signature.params,index);let name;for(name of paramSet)typeSet.add(name)})),typeSet.has("any")?["any"]:Array.from(typeSet)}function createError(name,args,signatures){let err,expected;const _name=name||"unnamed";let index,matchingSignatures=signatures;for(index=0;index{const test=compileTest(getParamAtIndex(signature.params,index));(index0){const actualTypes=findTypeNames(args[index]);return err=new TypeError("Unexpected type of argument in function "+_name+" (expected: "+expected.join(" or ")+", actual: "+actualTypes.join(" | ")+", index: "+index+")"),err.data={category:"wrongType",fn:_name,index:index,actual:actualTypes,expected:expected},err}}else matchingSignatures=nextMatchingDefs}const lengths=matchingSignatures.map((function(signature){return hasRestParam(signature.params)?1/0:signature.params.length}));if(args.lengthmaxLength)return err=new TypeError("Too many arguments in function "+_name+" (expected: "+maxLength+", actual: "+args.length+")"),err.data={category:"tooManyArgs",fn:_name,index:args.length,expectedLength:maxLength},err;const argTypes=[];for(let i=0;i0)return 1;const convDiff=getLowestConversionIndex(param1)-getLowestConversionIndex(param2);return convDiff<0?-1:convDiff>0?1:0}function compareSignatures(signature1,signature2){const pars1=signature1.params,pars2=signature2.params,last1=last(pars1),last2=last(pars2),hasRest1=hasRestParam(pars1),hasRest2=hasRestParam(pars2);if(hasRest1&&last1.hasAny){if(!hasRest2||!last2.hasAny)return 1}else if(hasRest2&&last2.hasAny)return-1;let par,any1=0,conv1=0;for(par of pars1)par.hasAny&&++any1,par.hasConversion&&++conv1;let any2=0,conv2=0;for(par of pars2)par.hasAny&&++any2,par.hasConversion&&++conv2;if(any1!==any2)return any1-any2;if(hasRest1&&last1.hasConversion){if(!hasRest2||!last2.hasConversion)return 1}else if(hasRest2&&last2.hasConversion)return-1;if(conv1!==conv2)return conv1-conv2;if(hasRest1){if(!hasRest2)return 1}else if(hasRest2)return-1;const lengthCriterion=(pars1.length-pars2.length)*(hasRest1?-1:1);if(0!==lengthCriterion)return lengthCriterion;const comparisons=[];let c,tc=0;for(let i=0;i1&&types.sort(((t1,t2)=>t1.index-t2.index));let matches=types[0].conversionsTo;if(1===typeNames.length)return matches;matches=matches.concat([]);const knownTypes=new Set(typeNames);for(let i=1;ip.hasConversion))){const restParam=hasRestParam(params),compiledConversions=params.map(compileArgConversion);fnConvert=function convertArgs(){const args=[],last=restParam?arguments.length-1:arguments.length;for(let i=0;it.name)).join("|"),hasAny:exactTypes.some((t=>t.isAny)),hasConversion:!1,restParam:!0}),resultingParams.push(param)}else resultingParams=param.types.map((function(type){return{types:[type],name:type.name,hasAny:type.isAny,hasConversion:type.conversion,restParam:!1}}));return flatMap(resultingParams,(function(nextParam){return _splitParams(params,index+1,paramsSoFar.concat([nextParam]))}))}return[paramsSoFar]}return _splitParams(params,0,[])}function conflicting(params1,params2){const ii=Math.max(params1.length,params2.length);for(let i=0;i=len1:restParam2?len1>=len2:len1===len2}function clearResolutions(functionList){return functionList.map((fn=>isReferToSelf(fn)?referToSelf(fn.referToSelf.callback):isReferTo(fn)?makeReferTo(fn.referTo.references,fn.referTo.callback):fn))}function collectResolutions(references,functionList,signatureMap){const resolvedReferences=[];let reference;for(reference of references){let resolution=signatureMap[reference];if("number"!=typeof resolution)throw new TypeError('No definition for referenced signature "'+reference+'"');if(resolution=functionList[resolution],"function"!=typeof resolution)return!1;resolvedReferences.push(resolution)}return resolvedReferences}function resolveReferences(functionList,signatureMap,self){const resolvedFunctions=clearResolutions(functionList),isResolved=new Array(resolvedFunctions.length).fill(!1);let leftUnresolved=!0;for(;leftUnresolved;){leftUnresolved=!1;let nothingResolved=!0;for(let i=0;i{const fn=signaturesMap[signature];if(deprecatedThisRegex.test(fn.toString()))throw new SyntaxError("Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.")}))}function createTypedFunction(name,rawSignaturesMap){if(typed.createCount++,0===Object.keys(rawSignaturesMap).length)throw new SyntaxError("No signatures provided");typed.warnAgainstDeprecatedThis&&validateDeprecatedThis(rawSignaturesMap);const parsedParams=[],originalFunctions=[],signaturesMap={},preliminarySignatures=[];let signature;for(signature in rawSignaturesMap){if(!Object.prototype.hasOwnProperty.call(rawSignaturesMap,signature))continue;const params=parseSignature(signature);if(!params)continue;parsedParams.forEach((function(pp){if(conflicting(pp,params))throw new TypeError('Conflicting signatures "'+stringifyParams(pp)+'" and "'+stringifyParams(params)+'".')})),parsedParams.push(params);const functionIndex=originalFunctions.length;originalFunctions.push(rawSignaturesMap[signature]);const conversionParams=params.map(expandParam);let sp;for(sp of splitParams(conversionParams)){const spName=stringifyParams(sp);preliminarySignatures.push({params:sp,name:spName,fn:functionIndex}),sp.every((p=>!p.hasConversion))&&(signaturesMap[spName]=functionIndex)}}preliminarySignatures.sort(compareSignatures);const resolvedFunctions=resolveReferences(originalFunctions,signaturesMap,theTypedFn);let s;for(s in signaturesMap)Object.prototype.hasOwnProperty.call(signaturesMap,s)&&(signaturesMap[s]=resolvedFunctions[signaturesMap[s]]);const signatures=[],internalSignatureMap=new Map;for(s of preliminarySignatures)internalSignatureMap.has(s.name)||(s.fn=resolvedFunctions[s.fn],signatures.push(s),internalSignatureMap.set(s.name,s));const ok0=signatures[0]&&signatures[0].params.length<=2&&!hasRestParam(signatures[0].params),ok1=signatures[1]&&signatures[1].params.length<=2&&!hasRestParam(signatures[1].params),ok2=signatures[2]&&signatures[2].params.length<=2&&!hasRestParam(signatures[2].params),ok3=signatures[3]&&signatures[3].params.length<=2&&!hasRestParam(signatures[3].params),ok4=signatures[4]&&signatures[4].params.length<=2&&!hasRestParam(signatures[4].params),ok5=signatures[5]&&signatures[5].params.length<=2&&!hasRestParam(signatures[5].params),allOk=ok0&&ok1&&ok2&&ok3&&ok4&&ok5;for(let i=0;is.test)),fns=signatures.map((s=>s.implementation)),generic=function generic(){for(let i=iStart;istringifyParams(parseSignature(s)))),callback=last(arguments);if("function"!=typeof callback)throw new TypeError("Callback function expected as last argument");return makeReferTo(references,callback)}function makeReferTo(references,callback){return{referTo:{references:references,callback:callback}}}function referToSelf(callback){if("function"!=typeof callback)throw new TypeError("Callback function expected as first argument");return{referToSelf:{callback:callback}}}function isReferTo(objectOrFn){return objectOrFn&&"object"==typeof objectOrFn.referTo&&Array.isArray(objectOrFn.referTo.references)&&"function"==typeof objectOrFn.referTo.callback}function isReferToSelf(objectOrFn){return objectOrFn&&"object"==typeof objectOrFn.referToSelf&&"function"==typeof objectOrFn.referToSelf.callback}function checkName(nameSoFar,newName){if(!nameSoFar)return newName;if(newName&&newName!==nameSoFar){const err=new Error("Function names do not match (expected: "+nameSoFar+", actual: "+newName+")");throw err.data={actual:newName,expected:nameSoFar},err}return nameSoFar}function getObjectName(obj){let name;for(const key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&(isTypedFunction(obj[key])||"string"==typeof obj[key].signature)&&(name=checkName(name,obj[key].name));return name}function mergeSignatures(dest,source){let key;for(key in source)if(Object.prototype.hasOwnProperty.call(source,key)){if(key in dest&&source[key]!==dest[key]){const err=new Error('Signature "'+key+'" is defined twice');throw err.data={signature:key,sourceFunction:source[key],destFunction:dest[key]},err}dest[key]=source[key]}}clear(),addTypes(_types);const saveTyped=typed;function _validateConversion(conversion){if(!conversion||"string"!=typeof conversion.from||"string"!=typeof conversion.to||"function"!=typeof conversion.convert)throw new TypeError("Object with properties {from: string, to: string, convert: function} expected");if(conversion.to===conversion.from)throw new SyntaxError('Illegal to define conversion from "'+conversion.from+'" to itself.')}return typed=function(maybeName){const named="string"==typeof maybeName;let name=named?maybeName:"";const allSignatures={};for(let i=named?1:0;ic.from===conversion.from));if(!existingConversion)throw new Error("Attempt to remove nonexistent conversion from "+conversion.from+" to "+conversion.to);if(existingConversion.convert!==conversion.convert)throw new Error("Conversion to remove does not match existing conversion");const index=to.conversionsTo.indexOf(existingConversion);to.conversionsTo.splice(index,1)},typed.resolve=function(tf,argList){if(!isTypedFunction(tf))throw new TypeError(NOT_TYPED_FUNCTION);const sigs=tf._typedFunctionData.signatures;for(let i=0;i */ /** - * splaytree v3.1.0 - * Fast Splay tree for Node and browser - * - * @author Alexander Milevski - * @license MIT - * @preserve - */ + * splaytree v3.1.2 + * Fast Splay tree for Node and browser + * + * @author Alexander Milevski + * @license MIT + * @preserve + */ /** * @license diff --git a/storybook-static/2117.168fb347.iframe.bundle.js b/storybook-static/2117.168fb347.iframe.bundle.js new file mode 100644 index 000000000..f98d24bf0 --- /dev/null +++ b/storybook-static/2117.168fb347.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[2117],{"./node_modules/@mui/icons-material/ArrowDownward.js":function(__unused_webpack_module,exports,__webpack_require__){var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.Z=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},"./node_modules/@mui/icons-material/FormatListBulleted.js":function(__unused_webpack_module,exports,__webpack_require__){var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.Z=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"}),"FormatListBulleted")},"./node_modules/@mui/material/MenuItem/MenuItem.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return MenuItem_MenuItem}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),colorManipulator=__webpack_require__("./node_modules/@mui/system/colorManipulator.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),rootShouldForwardProp=__webpack_require__("./node_modules/@mui/material/styles/rootShouldForwardProp.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),ListContext=__webpack_require__("./node_modules/@mui/material/List/ListContext.js"),ButtonBase=__webpack_require__("./node_modules/@mui/material/ButtonBase/ButtonBase.js"),useEnhancedEffect=__webpack_require__("./node_modules/@mui/material/utils/useEnhancedEffect.js"),useForkRef=__webpack_require__("./node_modules/@mui/material/utils/useForkRef.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js");var Divider_dividerClasses=(0,generateUtilityClasses.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var ListItemIcon_listItemIconClasses=(0,generateUtilityClasses.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var ListItemText_listItemTextClasses=(0,generateUtilityClasses.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),generateUtilityClass_generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getMenuItemUtilityClass(slot){return(0,generateUtilityClass_generateUtilityClass.ZP)("MuiMenuItem",slot)}var MenuItem_menuItemClasses=(0,generateUtilityClasses.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],MenuItemRoot=(0,styled.ZP)(ButtonBase.Z,{shouldForwardProp:prop=>(0,rootShouldForwardProp.Z)(prop)||"classes"===prop,name:"MuiMenuItem",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,ownerState.dense&&styles.dense,ownerState.divider&&styles.divider,!ownerState.disableGutters&&styles.gutters]}})((({theme:theme,ownerState:ownerState})=>(0,esm_extends.Z)({},theme.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!ownerState.disableGutters&&{paddingLeft:16,paddingRight:16},ownerState.divider&&{borderBottom:`1px solid ${(theme.vars||theme).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(theme.vars||theme).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${MenuItem_menuItemClasses.selected}`]:{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity),[`&.${MenuItem_menuItemClasses.focusVisible}`]:{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity+theme.palette.action.focusOpacity)}},[`&.${MenuItem_menuItemClasses.selected}:hover`]:{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity+theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity)}},[`&.${MenuItem_menuItemClasses.focusVisible}`]:{backgroundColor:(theme.vars||theme).palette.action.focus},[`&.${MenuItem_menuItemClasses.disabled}`]:{opacity:(theme.vars||theme).palette.action.disabledOpacity},[`& + .${Divider_dividerClasses.root}`]:{marginTop:theme.spacing(1),marginBottom:theme.spacing(1)},[`& + .${Divider_dividerClasses.inset}`]:{marginLeft:52},[`& .${ListItemText_listItemTextClasses.root}`]:{marginTop:0,marginBottom:0},[`& .${ListItemText_listItemTextClasses.inset}`]:{paddingLeft:36},[`& .${ListItemIcon_listItemIconClasses.root}`]:{minWidth:36}},!ownerState.dense&&{[theme.breakpoints.up("sm")]:{minHeight:"auto"}},ownerState.dense&&(0,esm_extends.Z)({minHeight:32,paddingTop:4,paddingBottom:4},theme.typography.body2,{[`& .${ListItemIcon_listItemIconClasses.root} svg`]:{fontSize:"1.25rem"}}))));var MenuItem_MenuItem=react.forwardRef((function MenuItem(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiMenuItem"}),{autoFocus:autoFocus=!1,component:component="li",dense:dense=!1,divider:divider=!1,disableGutters:disableGutters=!1,focusVisibleClassName:focusVisibleClassName,role:role="menuitem",tabIndex:tabIndexProp,className:className}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),context=react.useContext(ListContext.Z),childContext=react.useMemo((()=>({dense:dense||context.dense||!1,disableGutters:disableGutters})),[context.dense,dense,disableGutters]),menuItemRef=react.useRef(null);(0,useEnhancedEffect.Z)((()=>{autoFocus&&menuItemRef.current&&menuItemRef.current.focus()}),[autoFocus]);const ownerState=(0,esm_extends.Z)({},props,{dense:childContext.dense,divider:divider,disableGutters:disableGutters}),classes=(ownerState=>{const{disabled:disabled,dense:dense,divider:divider,disableGutters:disableGutters,selected:selected,classes:classes}=ownerState,slots={root:["root",dense&&"dense",disabled&&"disabled",!disableGutters&&"gutters",divider&&"divider",selected&&"selected"]},composedClasses=(0,composeClasses.Z)(slots,getMenuItemUtilityClass,classes);return(0,esm_extends.Z)({},classes,composedClasses)})(props),handleRef=(0,useForkRef.Z)(menuItemRef,ref);let tabIndex;return props.disabled||(tabIndex=void 0!==tabIndexProp?tabIndexProp:-1),(0,jsx_runtime.jsx)(ListContext.Z.Provider,{value:childContext,children:(0,jsx_runtime.jsx)(MenuItemRoot,(0,esm_extends.Z)({ref:handleRef,role:role,tabIndex:tabIndex,component:component,focusVisibleClassName:(0,clsx.Z)(classes.focusVisible,focusVisibleClassName),className:(0,clsx.Z)(classes.root,className)},other,{ownerState:ownerState,classes:classes}))})}))},"./node_modules/@mui/material/ToggleButton/ToggleButton.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return ToggleButton_ToggleButton}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),resolveProps=__webpack_require__("./node_modules/@mui/utils/resolveProps/resolveProps.js"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),formatMuiErrorMessage=__webpack_require__("./node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js"),clamp=__webpack_require__("./node_modules/@mui/utils/clamp/clamp.js");function clampWrapper(value,min=0,max=1){return(0,clamp.Z)(value,min,max)}function decomposeColor(color){if(color.type)return color;if("#"===color.charAt(0))return decomposeColor(function hexToRgb(color){color=color.slice(1);const re=new RegExp(`.{1,${color.length>=6?2:1}}`,"g");let colors=color.match(re);return colors&&1===colors[0].length&&(colors=colors.map((n=>n+n))),colors?`rgb${4===colors.length?"a":""}(${colors.map(((n,index)=>index<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3)).join(", ")})`:""}(color));const marker=color.indexOf("("),type=color.substring(0,marker);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(type))throw new Error((0,formatMuiErrorMessage.Z)(9,color));let colorSpace,values=color.substring(marker+1,color.length-1);if("color"===type){if(values=values.split(" "),colorSpace=values.shift(),4===values.length&&"/"===values[3].charAt(0)&&(values[3]=values[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(colorSpace))throw new Error((0,formatMuiErrorMessage.Z)(10,colorSpace))}else values=values.split(",");return values=values.map((value=>parseFloat(value))),{type:type,values:values,colorSpace:colorSpace}}function recomposeColor(color){const{type:type,colorSpace:colorSpace}=color;let{values:values}=color;return-1!==type.indexOf("rgb")?values=values.map(((n,i)=>i<3?parseInt(n,10):n)):-1!==type.indexOf("hsl")&&(values[1]=`${values[1]}%`,values[2]=`${values[2]}%`),values=-1!==type.indexOf("color")?`${colorSpace} ${values.join(" ")}`:`${values.join(", ")}`,`${type}(${values})`}function alpha(color,value){return color=decomposeColor(color),value=clampWrapper(value),"rgb"!==color.type&&"hsl"!==color.type||(color.type+="a"),"color"===color.type?color.values[3]=`/${value}`:color.values[3]=value,recomposeColor(color)}var ButtonBase=__webpack_require__("./node_modules/@mui/material/ButtonBase/ButtonBase.js"),capitalize=__webpack_require__("./node_modules/@mui/material/utils/capitalize.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getToggleButtonUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiToggleButton",slot)}var ToggleButton_toggleButtonClasses=(0,generateUtilityClasses.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]);var ToggleButtonGroup_ToggleButtonGroupContext=react.createContext({});var ToggleButtonGroup_ToggleButtonGroupButtonContext=react.createContext(void 0);function isValueSelected(value,candidate){return void 0!==candidate&&void 0!==value&&(Array.isArray(candidate)?candidate.indexOf(value)>=0:value===candidate)}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["value"],_excluded2=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],ToggleButtonRoot=(0,styled.ZP)(ButtonBase.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,styles[`size${(0,capitalize.Z)(ownerState.size)}`]]}})((({theme:theme,ownerState:ownerState})=>{let selectedColorChannel,selectedColor="standard"===ownerState.color?theme.palette.text.primary:theme.palette[ownerState.color].main;return theme.vars&&(selectedColor="standard"===ownerState.color?theme.vars.palette.text.primary:theme.vars.palette[ownerState.color].main,selectedColorChannel="standard"===ownerState.color?theme.vars.palette.text.primaryChannel:theme.vars.palette[ownerState.color].mainChannel),(0,esm_extends.Z)({},theme.typography.button,{borderRadius:(theme.vars||theme).shape.borderRadius,padding:11,border:`1px solid ${(theme.vars||theme).palette.divider}`,color:(theme.vars||theme).palette.action.active},ownerState.fullWidth&&{width:"100%"},{[`&.${ToggleButton_toggleButtonClasses.disabled}`]:{color:(theme.vars||theme).palette.action.disabled,border:`1px solid ${(theme.vars||theme).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:theme.vars?`rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})`:alpha(theme.palette.text.primary,theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ToggleButton_toggleButtonClasses.selected}`]:{color:selectedColor,backgroundColor:theme.vars?`rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})`:alpha(selectedColor,theme.palette.action.selectedOpacity),"&:hover":{backgroundColor:theme.vars?`rgba(${selectedColorChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))`:alpha(selectedColor,theme.palette.action.selectedOpacity+theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:theme.vars?`rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})`:alpha(selectedColor,theme.palette.action.selectedOpacity)}}}},"small"===ownerState.size&&{padding:7,fontSize:theme.typography.pxToRem(13)},"large"===ownerState.size&&{padding:15,fontSize:theme.typography.pxToRem(15)})}));var ToggleButton_ToggleButton=react.forwardRef((function ToggleButton(inProps,ref){const _React$useContext=react.useContext(ToggleButtonGroup_ToggleButtonGroupContext),{value:contextValue}=_React$useContext,contextProps=(0,objectWithoutPropertiesLoose.Z)(_React$useContext,_excluded),toggleButtonGroupButtonContextPositionClassName=react.useContext(ToggleButtonGroup_ToggleButtonGroupButtonContext),resolvedProps=(0,resolveProps.Z)((0,esm_extends.Z)({},contextProps,{selected:isValueSelected(inProps.value,contextValue)}),inProps),props=(0,useThemeProps.Z)({props:resolvedProps,name:"MuiToggleButton"}),{children:children,className:className,color:color="standard",disabled:disabled=!1,disableFocusRipple:disableFocusRipple=!1,fullWidth:fullWidth=!1,onChange:onChange,onClick:onClick,selected:selected,size:size="medium",value:value}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded2),ownerState=(0,esm_extends.Z)({},props,{color:color,disabled:disabled,disableFocusRipple:disableFocusRipple,fullWidth:fullWidth,size:size}),classes=(ownerState=>{const{classes:classes,fullWidth:fullWidth,selected:selected,disabled:disabled,size:size,color:color}=ownerState,slots={root:["root",selected&&"selected",disabled&&"disabled",fullWidth&&"fullWidth",`size${(0,capitalize.Z)(size)}`,color]};return(0,composeClasses.Z)(slots,getToggleButtonUtilityClass,classes)})(ownerState),positionClassName=toggleButtonGroupButtonContextPositionClassName||"";return(0,jsx_runtime.jsx)(ToggleButtonRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(contextProps.className,classes.root,className,positionClassName),disabled:disabled,focusRipple:!disableFocusRipple,ref:ref,onClick:event=>{onClick&&(onClick(event,value),event.defaultPrevented)||onChange&&onChange(event,value)},onChange:onChange,value:value,ownerState:ownerState,"aria-pressed":selected},other,{children:children}))}))}}]); \ No newline at end of file diff --git a/storybook-static/2117.7d92982a.iframe.bundle.js b/storybook-static/2117.7d92982a.iframe.bundle.js deleted file mode 100644 index 08f3ffed0..000000000 --- a/storybook-static/2117.7d92982a.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[2117],{"./node_modules/@mui/icons-material/ArrowDownward.js":function(__unused_webpack_module,exports,__webpack_require__){var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");exports.Z=_default},"./node_modules/@mui/icons-material/FormatListBulleted.js":function(__unused_webpack_module,exports,__webpack_require__){var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"}),"FormatListBulleted");exports.Z=_default},"./node_modules/@mui/material/MenuItem/MenuItem.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return MenuItem_MenuItem}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),colorManipulator=__webpack_require__("./node_modules/@mui/system/colorManipulator.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),rootShouldForwardProp=__webpack_require__("./node_modules/@mui/material/styles/rootShouldForwardProp.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),ListContext=__webpack_require__("./node_modules/@mui/material/List/ListContext.js"),ButtonBase=__webpack_require__("./node_modules/@mui/material/ButtonBase/ButtonBase.js"),useEnhancedEffect=__webpack_require__("./node_modules/@mui/material/utils/useEnhancedEffect.js"),useForkRef=__webpack_require__("./node_modules/@mui/material/utils/useForkRef.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js");var Divider_dividerClasses=(0,generateUtilityClasses.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var ListItemIcon_listItemIconClasses=(0,generateUtilityClasses.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var ListItemText_listItemTextClasses=(0,generateUtilityClasses.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),generateUtilityClass_generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getMenuItemUtilityClass(slot){return(0,generateUtilityClass_generateUtilityClass.ZP)("MuiMenuItem",slot)}var MenuItem_menuItemClasses=(0,generateUtilityClasses.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],MenuItemRoot=(0,styled.ZP)(ButtonBase.Z,{shouldForwardProp:prop=>(0,rootShouldForwardProp.Z)(prop)||"classes"===prop,name:"MuiMenuItem",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,ownerState.dense&&styles.dense,ownerState.divider&&styles.divider,!ownerState.disableGutters&&styles.gutters]}})((({theme:theme,ownerState:ownerState})=>(0,esm_extends.Z)({},theme.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!ownerState.disableGutters&&{paddingLeft:16,paddingRight:16},ownerState.divider&&{borderBottom:`1px solid ${(theme.vars||theme).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(theme.vars||theme).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${MenuItem_menuItemClasses.selected}`]:{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity),[`&.${MenuItem_menuItemClasses.focusVisible}`]:{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity+theme.palette.action.focusOpacity)}},[`&.${MenuItem_menuItemClasses.selected}:hover`]:{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity+theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity)}},[`&.${MenuItem_menuItemClasses.focusVisible}`]:{backgroundColor:(theme.vars||theme).palette.action.focus},[`&.${MenuItem_menuItemClasses.disabled}`]:{opacity:(theme.vars||theme).palette.action.disabledOpacity},[`& + .${Divider_dividerClasses.root}`]:{marginTop:theme.spacing(1),marginBottom:theme.spacing(1)},[`& + .${Divider_dividerClasses.inset}`]:{marginLeft:52},[`& .${ListItemText_listItemTextClasses.root}`]:{marginTop:0,marginBottom:0},[`& .${ListItemText_listItemTextClasses.inset}`]:{paddingLeft:36},[`& .${ListItemIcon_listItemIconClasses.root}`]:{minWidth:36}},!ownerState.dense&&{[theme.breakpoints.up("sm")]:{minHeight:"auto"}},ownerState.dense&&(0,esm_extends.Z)({minHeight:32,paddingTop:4,paddingBottom:4},theme.typography.body2,{[`& .${ListItemIcon_listItemIconClasses.root} svg`]:{fontSize:"1.25rem"}}))));var MenuItem_MenuItem=react.forwardRef((function MenuItem(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiMenuItem"}),{autoFocus:autoFocus=!1,component:component="li",dense:dense=!1,divider:divider=!1,disableGutters:disableGutters=!1,focusVisibleClassName:focusVisibleClassName,role:role="menuitem",tabIndex:tabIndexProp,className:className}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),context=react.useContext(ListContext.Z),childContext=react.useMemo((()=>({dense:dense||context.dense||!1,disableGutters:disableGutters})),[context.dense,dense,disableGutters]),menuItemRef=react.useRef(null);(0,useEnhancedEffect.Z)((()=>{autoFocus&&menuItemRef.current&&menuItemRef.current.focus()}),[autoFocus]);const ownerState=(0,esm_extends.Z)({},props,{dense:childContext.dense,divider:divider,disableGutters:disableGutters}),classes=(ownerState=>{const{disabled:disabled,dense:dense,divider:divider,disableGutters:disableGutters,selected:selected,classes:classes}=ownerState,slots={root:["root",dense&&"dense",disabled&&"disabled",!disableGutters&&"gutters",divider&&"divider",selected&&"selected"]},composedClasses=(0,composeClasses.Z)(slots,getMenuItemUtilityClass,classes);return(0,esm_extends.Z)({},classes,composedClasses)})(props),handleRef=(0,useForkRef.Z)(menuItemRef,ref);let tabIndex;return props.disabled||(tabIndex=void 0!==tabIndexProp?tabIndexProp:-1),(0,jsx_runtime.jsx)(ListContext.Z.Provider,{value:childContext,children:(0,jsx_runtime.jsx)(MenuItemRoot,(0,esm_extends.Z)({ref:handleRef,role:role,tabIndex:tabIndex,component:component,focusVisibleClassName:(0,clsx.Z)(classes.focusVisible,focusVisibleClassName),className:(0,clsx.Z)(classes.root,className)},other,{ownerState:ownerState,classes:classes}))})}))},"./node_modules/@mui/material/ToggleButton/ToggleButton.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return ToggleButton_ToggleButton}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),resolveProps=__webpack_require__("./node_modules/@mui/utils/resolveProps/resolveProps.js"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),formatMuiErrorMessage=__webpack_require__("./node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js"),clamp=__webpack_require__("./node_modules/@mui/utils/clamp/clamp.js");function clampWrapper(value,min=0,max=1){return(0,clamp.Z)(value,min,max)}function decomposeColor(color){if(color.type)return color;if("#"===color.charAt(0))return decomposeColor(function hexToRgb(color){color=color.slice(1);const re=new RegExp(`.{1,${color.length>=6?2:1}}`,"g");let colors=color.match(re);return colors&&1===colors[0].length&&(colors=colors.map((n=>n+n))),colors?`rgb${4===colors.length?"a":""}(${colors.map(((n,index)=>index<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3)).join(", ")})`:""}(color));const marker=color.indexOf("("),type=color.substring(0,marker);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(type))throw new Error((0,formatMuiErrorMessage.Z)(9,color));let colorSpace,values=color.substring(marker+1,color.length-1);if("color"===type){if(values=values.split(" "),colorSpace=values.shift(),4===values.length&&"/"===values[3].charAt(0)&&(values[3]=values[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(colorSpace))throw new Error((0,formatMuiErrorMessage.Z)(10,colorSpace))}else values=values.split(",");return values=values.map((value=>parseFloat(value))),{type:type,values:values,colorSpace:colorSpace}}function recomposeColor(color){const{type:type,colorSpace:colorSpace}=color;let{values:values}=color;return-1!==type.indexOf("rgb")?values=values.map(((n,i)=>i<3?parseInt(n,10):n)):-1!==type.indexOf("hsl")&&(values[1]=`${values[1]}%`,values[2]=`${values[2]}%`),values=-1!==type.indexOf("color")?`${colorSpace} ${values.join(" ")}`:`${values.join(", ")}`,`${type}(${values})`}function alpha(color,value){return color=decomposeColor(color),value=clampWrapper(value),"rgb"!==color.type&&"hsl"!==color.type||(color.type+="a"),"color"===color.type?color.values[3]=`/${value}`:color.values[3]=value,recomposeColor(color)}var ButtonBase=__webpack_require__("./node_modules/@mui/material/ButtonBase/ButtonBase.js"),capitalize=__webpack_require__("./node_modules/@mui/material/utils/capitalize.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getToggleButtonUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiToggleButton",slot)}var ToggleButton_toggleButtonClasses=(0,generateUtilityClasses.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]);var ToggleButtonGroup_ToggleButtonGroupContext=react.createContext({});var ToggleButtonGroup_ToggleButtonGroupButtonContext=react.createContext(void 0);function isValueSelected(value,candidate){return void 0!==candidate&&void 0!==value&&(Array.isArray(candidate)?candidate.indexOf(value)>=0:value===candidate)}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["value"],_excluded2=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],ToggleButtonRoot=(0,styled.ZP)(ButtonBase.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,styles[`size${(0,capitalize.Z)(ownerState.size)}`]]}})((({theme:theme,ownerState:ownerState})=>{let selectedColorChannel,selectedColor="standard"===ownerState.color?theme.palette.text.primary:theme.palette[ownerState.color].main;return theme.vars&&(selectedColor="standard"===ownerState.color?theme.vars.palette.text.primary:theme.vars.palette[ownerState.color].main,selectedColorChannel="standard"===ownerState.color?theme.vars.palette.text.primaryChannel:theme.vars.palette[ownerState.color].mainChannel),(0,esm_extends.Z)({},theme.typography.button,{borderRadius:(theme.vars||theme).shape.borderRadius,padding:11,border:`1px solid ${(theme.vars||theme).palette.divider}`,color:(theme.vars||theme).palette.action.active},ownerState.fullWidth&&{width:"100%"},{[`&.${ToggleButton_toggleButtonClasses.disabled}`]:{color:(theme.vars||theme).palette.action.disabled,border:`1px solid ${(theme.vars||theme).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:theme.vars?`rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})`:alpha(theme.palette.text.primary,theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ToggleButton_toggleButtonClasses.selected}`]:{color:selectedColor,backgroundColor:theme.vars?`rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})`:alpha(selectedColor,theme.palette.action.selectedOpacity),"&:hover":{backgroundColor:theme.vars?`rgba(${selectedColorChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))`:alpha(selectedColor,theme.palette.action.selectedOpacity+theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:theme.vars?`rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})`:alpha(selectedColor,theme.palette.action.selectedOpacity)}}}},"small"===ownerState.size&&{padding:7,fontSize:theme.typography.pxToRem(13)},"large"===ownerState.size&&{padding:15,fontSize:theme.typography.pxToRem(15)})}));var ToggleButton_ToggleButton=react.forwardRef((function ToggleButton(inProps,ref){const _React$useContext=react.useContext(ToggleButtonGroup_ToggleButtonGroupContext),{value:contextValue}=_React$useContext,contextProps=(0,objectWithoutPropertiesLoose.Z)(_React$useContext,_excluded),toggleButtonGroupButtonContextPositionClassName=react.useContext(ToggleButtonGroup_ToggleButtonGroupButtonContext),resolvedProps=(0,resolveProps.Z)((0,esm_extends.Z)({},contextProps,{selected:isValueSelected(inProps.value,contextValue)}),inProps),props=(0,useThemeProps.Z)({props:resolvedProps,name:"MuiToggleButton"}),{children:children,className:className,color:color="standard",disabled:disabled=!1,disableFocusRipple:disableFocusRipple=!1,fullWidth:fullWidth=!1,onChange:onChange,onClick:onClick,selected:selected,size:size="medium",value:value}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded2),ownerState=(0,esm_extends.Z)({},props,{color:color,disabled:disabled,disableFocusRipple:disableFocusRipple,fullWidth:fullWidth,size:size}),classes=(ownerState=>{const{classes:classes,fullWidth:fullWidth,selected:selected,disabled:disabled,size:size,color:color}=ownerState,slots={root:["root",selected&&"selected",disabled&&"disabled",fullWidth&&"fullWidth",`size${(0,capitalize.Z)(size)}`,color]};return(0,composeClasses.Z)(slots,getToggleButtonUtilityClass,classes)})(ownerState),positionClassName=toggleButtonGroupButtonContextPositionClassName||"";return(0,jsx_runtime.jsx)(ToggleButtonRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(contextProps.className,classes.root,className,positionClassName),disabled:disabled,focusRipple:!disableFocusRipple,ref:ref,onClick:event=>{onClick&&(onClick(event,value),event.defaultPrevented)||onChange&&onChange(event,value)},onChange:onChange,value:value,ownerState:ownerState,"aria-pressed":selected},other,{children:children}))}))}}]); \ No newline at end of file diff --git a/storybook-static/2618.38c5e2aa.iframe.bundle.js b/storybook-static/2618.38c5e2aa.iframe.bundle.js deleted file mode 100644 index 1cbe86e40..000000000 --- a/storybook-static/2618.38c5e2aa.iframe.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2618.38c5e2aa.iframe.bundle.js.LICENSE.txt */ -(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[2618],{"./node_modules/@deck.gl/aggregation-layers/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AGGREGATION_OPERATION:function(){return AGGREGATION_OPERATION},CPUGridLayer:function(){return CPUGridLayer},ContourLayer:function(){return ContourLayer},GPUGridLayer:function(){return GPUGridLayer},GridLayer:function(){return GridLayer},HeatmapLayer:function(){return HeatmapLayer},HexagonLayer:function(){return HexagonLayer},ScreenGridLayer:function(){return ScreenGridLayer},_AggregationLayer:function(){return AggregationLayer},_BinSorter:function(){return BinSorter},_CPUAggregator:function(){return CPUAggregator},_GPUGridAggregator:function(){return GPUGridAggregator}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),webgl_features_table=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),features=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),copy_and_blit=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),transform=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/transform/transform.js"),fp64=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/fp64/fp64.js"),shader=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/shader.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js");const AGGREGATION_OPERATION={SUM:1,MEAN:2,MIN:3,MAX:4};function sumReducer(accu,cur){return accu+cur}function maxReducer(accu,cur){return cur>accu?cur:accu}function minReducer(accu,cur){return cur(context.index=pt.index,accessor(pt.source,context))}(accessor,context),op){case AGGREGATION_OPERATION.MIN:return pts=>function getMin(pts,accessor){if(Number.isFinite(accessor))return pts.length?accessor:null;const filtered=pts.map(accessor).filter(Number.isFinite);return filtered.length?filtered.reduce(minReducer,1/0):null}(pts,accessor);case AGGREGATION_OPERATION.SUM:return pts=>function getSum(pts,accessor){if(Number.isFinite(accessor))return pts.length?pts.length*accessor:null;const filtered=pts.map(accessor).filter(Number.isFinite);return filtered.length?filtered.reduce(sumReducer,0):null}(pts,accessor);case AGGREGATION_OPERATION.MEAN:return pts=>function getMean(pts,accessor){if(Number.isFinite(accessor))return pts.length?accessor:null;const filtered=pts.map(accessor).filter(Number.isFinite);return filtered.length?filtered.reduce(sumReducer,0)/filtered.length:null}(pts,accessor);case AGGREGATION_OPERATION.MAX:return pts=>function getMax(pts,accessor){if(Number.isFinite(accessor))return pts.length?accessor:null;const filtered=pts.map(accessor).filter(Number.isFinite);return filtered.length?filtered.reduce(maxReducer,-1/0):null}(pts,accessor);default:return null}}function wrapGetValueFunc(getValue,context={}){return pts=>(context.indices=pts.map((pt=>pt.index)),getValue(pts.map((pt=>pt.source)),context))}const DEFAULT_RUN_PARAMS={projectPoints:!1,viewport:null,createBufferObjects:!0,moduleSettings:{}},MAX_32_BIT_FLOAT=3402823466e29,MIN_BLEND_EQUATION=[32775,32774],MAX_BLEND_EQUATION=[32776,32774],MAX_MIN_BLEND_EQUATION=[32776,32775],EQUATION_MAP={[AGGREGATION_OPERATION.SUM]:32774,[AGGREGATION_OPERATION.MEAN]:32774,[AGGREGATION_OPERATION.MIN]:MIN_BLEND_EQUATION,[AGGREGATION_OPERATION.MAX]:MAX_BLEND_EQUATION},DEFAULT_WEIGHT_PARAMS={size:1,operation:AGGREGATION_OPERATION.SUM,needMin:!1,needMax:!1,combineMaxMin:!1};var aggregate_to_grid_vs_glsl="#define SHADER_NAME gpu-aggregation-to-grid-vs\n\nattribute vec3 positions;\nattribute vec3 positions64Low;\nattribute vec3 weights;\nuniform vec2 cellSize;\nuniform vec2 gridSize;\nuniform bool projectPoints;\nuniform vec2 translation;\nuniform vec3 scaling;\n\nvarying vec3 vWeights;\n\nvec2 project_to_pixel(vec4 pos) {\n vec4 result;\n pos.xy = pos.xy/pos.w;\n result = pos + vec4(translation, 0., 0.);\n result.xy = scaling.z > 0. ? result.xy * scaling.xy : result.xy;\n return result.xy;\n}\n\nvoid main(void) {\n\n vWeights = weights;\n\n vec4 windowPos = vec4(positions, 1.);\n if (projectPoints) {\n windowPos = project_position_to_clipspace(positions, positions64Low, vec3(0));\n }\n\n vec2 pos = project_to_pixel(windowPos);\n\n vec2 pixelXY64[2];\n pixelXY64[0] = vec2(pos.x, 0.);\n pixelXY64[1] = vec2(pos.y, 0.);\n vec2 gridXY64[2];\n gridXY64[0] = div_fp64(pixelXY64[0], vec2(cellSize.x, 0));\n gridXY64[1] = div_fp64(pixelXY64[1], vec2(cellSize.y, 0));\n float x = floor(gridXY64[0].x);\n float y = floor(gridXY64[1].x);\n pos = vec2(x, y);\n pos = (pos * (2., 2.) / (gridSize)) - (1., 1.);\n vec2 offset = 1.0 / gridSize;\n pos = pos + offset;\n\n gl_Position = vec4(pos, 0.0, 1.0);\n gl_PointSize = 1.0;\n}\n",aggregate_to_grid_fs_glsl="#define SHADER_NAME gpu-aggregation-to-grid-fs\n\nprecision highp float;\n\nvarying vec3 vWeights;\n\nvoid main(void) {\n gl_FragColor = vec4(vWeights, 1.0);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",aggregate_all_vs_glsl="#version 300 es\n#define SHADER_NAME gpu-aggregation-all-vs-64\n\nin vec2 position;\nuniform ivec2 gridSize;\nout vec2 vTextureCoord;\n\nvoid main(void) {\n vec2 pos = vec2(-1.0, -1.0);\n vec2 offset = 1.0 / vec2(gridSize);\n pos = pos + offset;\n\n gl_Position = vec4(pos, 0.0, 1.0);\n\n int yIndex = gl_InstanceID / gridSize[0];\n int xIndex = gl_InstanceID - (yIndex * gridSize[0]);\n\n vec2 yIndexFP64 = vec2(float(yIndex), 0.);\n vec2 xIndexFP64 = vec2(float(xIndex), 0.);\n vec2 gridSizeYFP64 = vec2(gridSize[1], 0.);\n vec2 gridSizeXFP64 = vec2(gridSize[0], 0.);\n\n vec2 texCoordXFP64 = div_fp64(yIndexFP64, gridSizeYFP64);\n vec2 texCoordYFP64 = div_fp64(xIndexFP64, gridSizeXFP64);\n\n vTextureCoord = vec2(texCoordYFP64.x, texCoordXFP64.x);\n gl_PointSize = 1.0;\n}\n",aggregate_all_fs_glsl="#version 300 es\n#define SHADER_NAME gpu-aggregation-all-fs\n\nprecision highp float;\n\nin vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform bool combineMaxMin;\nout vec4 fragColor;\nvoid main(void) {\n vec4 textureColor = texture(uSampler, vec2(vTextureCoord.s, vTextureCoord.t));\n if (textureColor.a == 0.) {\n discard;\n }\n fragColor.rgb = textureColor.rgb;\n fragColor.a = combineMaxMin ? textureColor.r : textureColor.a;\n}\n",transform_mean_vs_glsl="#define SHADER_NAME gpu-aggregation-transform-mean-vs\nattribute vec4 aggregationValues;\nvarying vec4 meanValues;\n\nvoid main()\n{\n bool isCellValid = bool(aggregationValues.w > 0.);\n meanValues.xyz = isCellValid ? aggregationValues.xyz/aggregationValues.w : vec3(0, 0, 0);\n meanValues.w = aggregationValues.w;\n gl_PointSize = 1.0;\n}\n",texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js");const DEFAULT_PARAMETERS={10240:9728,10241:9728};function getFloatTexture(gl,opts={}){const{width:width=1,height:height=1,data:data=null,unpackFlipY:unpackFlipY=!0,parameters:parameters=DEFAULT_PARAMETERS}=opts;return new texture_2d.Z(gl,{data:data,format:(0,esm.D0)(gl)?34836:6408,type:5126,border:0,mipmaps:!1,parameters:parameters,dataFormat:6408,width:width,height:height,unpackFlipY:unpackFlipY})}function getFramebuffer(gl,opts){const{id:id,width:width=1,height:height=1,texture:texture}=opts;return new framebuffer.Z(gl,{id:id,width:width,height:height,attachments:{36064:texture}})}const BUFFER_NAMES=["aggregationBuffer","maxMinBuffer","minBuffer","maxBuffer"],ARRAY_BUFFER_MAP={maxData:"maxBuffer",minData:"minBuffer",maxMinData:"maxMinBuffer"},REQUIRED_FEATURES=[webgl_features_table.h.WEBGL2,webgl_features_table.h.COLOR_ATTACHMENT_RGBA32F,webgl_features_table.h.BLEND_EQUATION_MINMAX,webgl_features_table.h.FLOAT_BLEND,webgl_features_table.h.TEXTURE_FLOAT];class GPUGridAggregator{static getAggregationData({aggregationData:aggregationData,maxData:maxData,minData:minData,maxMinData:maxMinData,pixelIndex:pixelIndex}){const index=4*pixelIndex,results={};return aggregationData&&(results.cellCount=aggregationData[index+3],results.cellWeight=aggregationData[index]),maxMinData?(results.maxCellWieght=maxMinData[0],results.minCellWeight=maxMinData[3]):(maxData&&(results.maxCellWieght=maxData[0],results.totalCount=maxData[3]),minData&&(results.minCellWeight=minData[0],results.totalCount=maxData[3])),results}static getCellData({countsData:countsData,size:size=1}){const numCells=countsData.length/4,cellWeights=new Float32Array(numCells*size),cellCounts=new Uint32Array(numCells);for(let i=0;i{for(const name in obj)obj[name].delete()}))}([framebuffers,textures,maxMinFramebuffers,minFramebuffers,maxFramebuffers,meanTextures,resources])}run(opts={}){this.setState({results:{}});const aggregationParams=this._normalizeAggregationParams(opts);return this._hasGPUSupport||log.Z.log(1,"GPUGridAggregator: not supported")(),this._runAggregation(aggregationParams)}getData(weightId){const data={},results=this.state.results;results[weightId].aggregationData||(results[weightId].aggregationData=results[weightId].aggregationBuffer.getData()),data.aggregationData=results[weightId].aggregationData;for(const arrayName in ARRAY_BUFFER_MAP){const bufferName=ARRAY_BUFFER_MAP[arrayName];(results[weightId][arrayName]||results[weightId][bufferName])&&(results[weightId][arrayName]=results[weightId][arrayName]||results[weightId][bufferName].getData(),data[arrayName]=results[weightId][arrayName])}return data}updateShaders(shaderOptions={}){this.setState({shaderOptions:shaderOptions,modelDirty:!0})}_normalizeAggregationParams(opts){const aggregationParams={...DEFAULT_RUN_PARAMS,...opts},{weights:weights}=aggregationParams;return weights&&(aggregationParams.weights=function normalizeWeightParams(weights){const result={};for(const id in weights)result[id]={...DEFAULT_WEIGHT_PARAMS,...weights[id]};return result}(weights)),aggregationParams}setState(updateObject){Object.assign(this.state,updateObject)}_getAggregateData(opts){const results={},{textures:textures,framebuffers:framebuffers,maxMinFramebuffers:maxMinFramebuffers,minFramebuffers:minFramebuffers,maxFramebuffers:maxFramebuffers,resources:resources}=this.state,{weights:weights}=opts;for(const id in weights){results[id]={};const{needMin:needMin,needMax:needMax,combineMaxMin:combineMaxMin}=weights[id];results[id].aggregationTexture=textures[id],results[id].aggregationBuffer=(0,copy_and_blit.Jb)(framebuffers[id],{target:weights[id].aggregationBuffer,sourceType:5126}),needMin&&needMax&&combineMaxMin?(results[id].maxMinBuffer=(0,copy_and_blit.Jb)(maxMinFramebuffers[id],{target:weights[id].maxMinBuffer,sourceType:5126}),results[id].maxMinTexture=resources["".concat(id,"-maxMinTexture")]):(needMin&&(results[id].minBuffer=(0,copy_and_blit.Jb)(minFramebuffers[id],{target:weights[id].minBuffer,sourceType:5126}),results[id].minTexture=resources["".concat(id,"-minTexture")]),needMax&&(results[id].maxBuffer=(0,copy_and_blit.Jb)(maxFramebuffers[id],{target:weights[id].maxBuffer,sourceType:5126}),results[id].maxTexture=resources["".concat(id,"-maxTexture")]))}return this._trackGPUResultBuffers(results,weights),results}_renderAggregateData(opts){const{cellSize:cellSize,projectPoints:projectPoints,attributes:attributes,moduleSettings:moduleSettings,numCol:numCol,numRow:numRow,weights:weights,translation:translation,scaling:scaling}=opts,{maxMinFramebuffers:maxMinFramebuffers,minFramebuffers:minFramebuffers,maxFramebuffers:maxFramebuffers}=this.state,gridSize=[numCol,numRow],parameters={blend:!0,depthTest:!1,blendFunc:[1,1]},uniforms={cellSize:cellSize,gridSize:gridSize,projectPoints:projectPoints,translation:translation,scaling:scaling};for(const id in weights){const{needMin:needMin,needMax:needMax}=weights[id],combineMaxMin=needMin&&needMax&&weights[id].combineMaxMin;this._renderToWeightsTexture({id:id,parameters:parameters,moduleSettings:moduleSettings,uniforms:uniforms,gridSize:gridSize,attributes:attributes,weights:weights}),combineMaxMin?this._renderToMaxMinTexture({id:id,parameters:{...parameters,blendEquation:MAX_MIN_BLEND_EQUATION},gridSize:gridSize,minOrMaxFb:maxMinFramebuffers[id],clearParams:{clearColor:[0,0,0,MAX_32_BIT_FLOAT]},combineMaxMin:combineMaxMin}):(needMin&&this._renderToMaxMinTexture({id:id,parameters:{...parameters,blendEquation:MIN_BLEND_EQUATION},gridSize:gridSize,minOrMaxFb:minFramebuffers[id],clearParams:{clearColor:[MAX_32_BIT_FLOAT,MAX_32_BIT_FLOAT,MAX_32_BIT_FLOAT,0]},combineMaxMin:combineMaxMin}),needMax&&this._renderToMaxMinTexture({id:id,parameters:{...parameters,blendEquation:MAX_BLEND_EQUATION},gridSize:gridSize,minOrMaxFb:maxFramebuffers[id],clearParams:{clearColor:[0,0,0,0]},combineMaxMin:combineMaxMin}))}}_renderToMaxMinTexture(opts){const{id:id,parameters:parameters,gridSize:gridSize,minOrMaxFb:minOrMaxFb,combineMaxMin:combineMaxMin,clearParams:clearParams={}}=opts,{framebuffers:framebuffers}=this.state,{gl:gl,allAggregationModel:allAggregationModel}=this;(0,esm.s8)(gl,{...clearParams,framebuffer:minOrMaxFb,viewport:[0,0,gridSize[0],gridSize[1]]},(()=>{gl.clear(16384),allAggregationModel.draw({parameters:parameters,uniforms:{uSampler:framebuffers[id].texture,gridSize:gridSize,combineMaxMin:combineMaxMin}})}))}_renderToWeightsTexture(opts){const{id:id,parameters:parameters,moduleSettings:moduleSettings,uniforms:uniforms,gridSize:gridSize,weights:weights}=opts,{framebuffers:framebuffers,equations:equations,weightAttributes:weightAttributes}=this.state,{gl:gl,gridAggregationModel:gridAggregationModel}=this,{operation:operation}=weights[id],clearColor=operation===AGGREGATION_OPERATION.MIN?[MAX_32_BIT_FLOAT,MAX_32_BIT_FLOAT,MAX_32_BIT_FLOAT,0]:[0,0,0,0];if((0,esm.s8)(gl,{framebuffer:framebuffers[id],viewport:[0,0,gridSize[0],gridSize[1]],clearColor:clearColor},(()=>{gl.clear(16384);const attributes={weights:weightAttributes[id]};gridAggregationModel.draw({parameters:{...parameters,blendEquation:equations[id]},moduleSettings:moduleSettings,uniforms:uniforms,attributes:attributes})})),operation===AGGREGATION_OPERATION.MEAN){const{meanTextures:meanTextures,textures:textures}=this.state,transformOptions={_sourceTextures:{aggregationValues:meanTextures[id]},_targetTexture:textures[id],elementCount:textures[id].width*textures[id].height};this.meanTransform?this.meanTransform.update(transformOptions):this.meanTransform=function getMeanTransform(gl,opts){return new transform.Z(gl,{vs:transform_mean_vs_glsl,_targetTextureVarying:"meanValues",...opts})}(gl,transformOptions),this.meanTransform.run({parameters:{blend:!1,depthTest:!1}}),framebuffers[id].attach({36064:textures[id]})}}_runAggregation(opts){this._updateModels(opts),this._setupFramebuffers(opts),this._renderAggregateData(opts);const results=this._getAggregateData(opts);return this.setState({results:results}),results}_setupFramebuffers(opts){const{textures:textures,framebuffers:framebuffers,maxMinFramebuffers:maxMinFramebuffers,minFramebuffers:minFramebuffers,maxFramebuffers:maxFramebuffers,meanTextures:meanTextures,equations:equations}=this.state,{weights:weights}=opts,{numCol:numCol,numRow:numRow}=opts,framebufferSize={width:numCol,height:numRow};for(const id in weights){const{needMin:needMin,needMax:needMax,combineMaxMin:combineMaxMin,operation:operation}=weights[id];textures[id]=weights[id].aggregationTexture||textures[id]||getFloatTexture(this.gl,{id:"".concat(id,"-texture"),width:numCol,height:numRow}),textures[id].resize(framebufferSize);let texture=textures[id];operation===AGGREGATION_OPERATION.MEAN&&(meanTextures[id]=meanTextures[id]||getFloatTexture(this.gl,{id:"".concat(id,"-mean-texture"),width:numCol,height:numRow}),meanTextures[id].resize(framebufferSize),texture=meanTextures[id]),framebuffers[id]?framebuffers[id].attach({36064:texture}):framebuffers[id]=getFramebuffer(this.gl,{id:"".concat(id,"-fb"),width:numCol,height:numRow,texture:texture}),framebuffers[id].resize(framebufferSize),equations[id]=EQUATION_MAP[operation]||EQUATION_MAP.SUM,(needMin||needMax)&&(needMin&&needMax&&combineMaxMin?maxMinFramebuffers[id]||(texture=weights[id].maxMinTexture||this._getMinMaxTexture("".concat(id,"-maxMinTexture")),maxMinFramebuffers[id]=getFramebuffer(this.gl,{id:"".concat(id,"-maxMinFb"),texture:texture})):(needMin&&(minFramebuffers[id]||(texture=weights[id].minTexture||this._getMinMaxTexture("".concat(id,"-minTexture")),minFramebuffers[id]=getFramebuffer(this.gl,{id:"".concat(id,"-minFb"),texture:texture}))),needMax&&(maxFramebuffers[id]||(texture=weights[id].maxTexture||this._getMinMaxTexture("".concat(id,"-maxTexture")),maxFramebuffers[id]=getFramebuffer(this.gl,{id:"".concat(id,"-maxFb"),texture:texture})))))}}_getMinMaxTexture(name){const{resources:resources}=this.state;return resources[name]||(resources[name]=getFloatTexture(this.gl,{id:"resourceName"})),resources[name]}_setupModels({numCol:numCol=0,numRow:numRow=0}={}){var _this$gridAggregation;const{gl:gl}=this,{shaderOptions:shaderOptions}=this.state;if(null===(_this$gridAggregation=this.gridAggregationModel)||void 0===_this$gridAggregation||_this$gridAggregation.delete(),this.gridAggregationModel=function getAggregationModel(gl,shaderOptions){const shaders=(0,shader.l)({vs:aggregate_to_grid_vs_glsl,fs:aggregate_to_grid_fs_glsl,modules:[fp64.n2,project32.Z]},shaderOptions);return new model.Z(gl,{id:"Gird-Aggregation-Model",vertexCount:1,drawMode:0,...shaders})}(gl,shaderOptions),!this.allAggregationModel){const instanceCount=numCol*numRow;this.allAggregationModel=function getAllAggregationModel(gl,instanceCount){return new model.Z(gl,{id:"All-Aggregation-Model",vs:aggregate_all_vs_glsl,fs:aggregate_all_fs_glsl,modules:[fp64.n2],vertexCount:1,drawMode:0,isInstanced:!0,instanceCount:instanceCount,attributes:{position:[0,0]}})}(gl,instanceCount)}}_setupWeightAttributes(opts){const{weightAttributes:weightAttributes}=this.state,{weights:weights}=opts;for(const id in weights)weightAttributes[id]=opts.attributes[id]}_trackGPUResultBuffers(results,weights){const{resources:resources}=this.state;for(const id in results)if(results[id])for(const bufferName of BUFFER_NAMES)if(results[id][bufferName]&&weights[id][bufferName]!==results[id][bufferName]){const name="gpu-result-".concat(id,"-").concat(bufferName);resources[name]&&resources[name].delete(),resources[name]=results[id][bufferName]}}_updateModels(opts){const{vertexCount:vertexCount,attributes:attributes,numCol:numCol,numRow:numRow}=opts,{modelDirty:modelDirty}=this.state;modelDirty&&(this._setupModels(opts),this.setState({modelDirty:!1})),this._setupWeightAttributes(opts),this.gridAggregationModel.setVertexCount(vertexCount),this.gridAggregationModel.setAttributes(attributes),this.allAggregationModel.setInstanceCount(numCol*numRow)}}var geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js");const defaultColorRange=[[255,255,178],[254,217,118],[254,178,76],[253,141,60],[240,59,32],[189,0,38]];function colorRangeToFlatArray(colorRange,normalize=!1,ArrayType=Float32Array){let flatArray;if(Number.isFinite(colorRange[0]))flatArray=new ArrayType(colorRange);else{flatArray=new ArrayType(4*colorRange.length);let index=0;for(let i=0;i= domain.x && value <= domain.y) {\n float domainRange = domain.y - domain.x;\n if (domainRange <= 0.) {\n outColor = colorRange[0];\n } else {\n float rangeCount = float(RANGE_COUNT);\n float rangeStep = domainRange / rangeCount;\n float idx = floor((value - domain.x) / rangeStep);\n idx = clamp(idx, 0., rangeCount - 1.);\n int intIdx = int(idx);\n outColor = colorRange[intIdx];\n }\n }\n outColor = outColor / 255.;\n return outColor;\n}\n\nvoid main(void) {\n vSampleCount = instanceCounts.a;\n\n float weight = instanceCounts.r;\n float maxWeight = texture2D(maxTexture, vec2(0.5)).r;\n\n float step = weight / maxWeight;\n vec4 minMaxColor = mix(minColor, maxColor, step) / 255.;\n\n vec2 domain = colorDomain;\n float domainMaxValid = float(colorDomain.y != 0.);\n domain.y = mix(maxWeight, colorDomain.y, domainMaxValid);\n vec4 rangeColor = quantizeScale(domain, colorRange, weight);\n\n float rangeMinMax = float(shouldUseMinMax);\n vec4 color = mix(rangeColor, minMaxColor, rangeMinMax);\n vColor = vec4(color.rgb, color.a * opacity);\n picking_setPickingColor(instancePickingColors);\n\n gl_Position = vec4(instancePositions + positions * cellScale, 1.);\n}\n",fs:"#define SHADER_NAME screen-grid-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying float vSampleCount;\n\nvoid main(void) {\n if (vSampleCount <= 0.0) {\n discard;\n }\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[picking.Z]}}initializeState(){const{gl:gl}=this.context;this.getAttributeManager().addInstanced({instancePositions:{size:3,update:this.calculateInstancePositions},instanceCounts:{size:4,noAlloc:!0}}),this.setState({model:this._getModel(gl)})}shouldUpdateState({changeFlags:changeFlags}){return changeFlags.somethingChanged}updateState(params){super.updateState(params);const{oldProps:oldProps,props:props,changeFlags:changeFlags}=params,attributeManager=this.getAttributeManager();props.numInstances!==oldProps.numInstances?attributeManager.invalidateAll():oldProps.cellSizePixels!==props.cellSizePixels&&attributeManager.invalidate("instancePositions"),this._updateUniforms(oldProps,props,changeFlags)}draw({uniforms:uniforms}){const{parameters:parameters,maxTexture:maxTexture}=this.props,minColor=this.props.minColor||DEFAULT_MINCOLOR,maxColor=this.props.maxColor||DEFAULT_MAXCOLOR,colorDomain=this.props.colorDomain||[1,0],{model:model}=this.state;model.setUniforms(uniforms).setUniforms({minColor:minColor,maxColor:maxColor,maxTexture:maxTexture,colorDomain:colorDomain}).draw({parameters:{depthTest:!1,depthMask:!1,...parameters}})}calculateInstancePositions(attribute,{numInstances:numInstances}){const{width:width,height:height}=this.context.viewport,{cellSizePixels:cellSizePixels}=this.props,numCol=Math.ceil(width/cellSizePixels),{value:value,size:size}=attribute;for(let i=0;ioldProps[key]!==props[key]))&&model.setUniforms({shouldUseMinMax:this._shouldUseMinMax()}),oldProps.colorRange!==props.colorRange&&model.setUniforms({colorRange:colorRangeToFlatArray(props.colorRange)}),oldProps.cellMarginPixels!==props.cellMarginPixels||oldProps.cellSizePixels!==props.cellSizePixels||changeFlags.viewportChanged){const{width:width,height:height}=this.context.viewport,{cellSizePixels:cellSizePixels,cellMarginPixels:cellMarginPixels}=this.props,margin=cellSizePixels>cellMarginPixels?cellMarginPixels:0,cellScale=new Float32Array([(cellSizePixels-margin)/width*2,-(cellSizePixels-margin)/height*2,1]);model.setUniforms({cellScale:cellScale})}}}(0,defineProperty.Z)(ScreenGridCellLayer,"layerName","ScreenGridCellLayer"),(0,defineProperty.Z)(ScreenGridCellLayer,"defaultProps",defaultProps);var composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),lifecycle_props=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/props.js"),attribute_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/attribute/attribute-manager.js");function filterProps(props,filterKeys){const filteredProps={};for(const key in props)filterKeys.includes(key)||(filteredProps[key]=props[key]);return filteredProps}class AggregationLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeAggregationLayer(dimensions){super.initializeState(this.context),this.setState({ignoreProps:filterProps(this.constructor._propTypes,dimensions.data.props),dimensions:dimensions})}updateState(opts){super.updateState(opts);const{changeFlags:changeFlags}=opts;if(changeFlags.extensionsChanged){const shaders=this.getShaders({});shaders&&shaders.defines&&(shaders.defines.NON_INSTANCED_MODEL=1),this.updateShaders(shaders)}this._updateAttributes()}updateAttributes(changedAttributes){this.setState({changedAttributes:changedAttributes})}getAttributes(){return this.getAttributeManager().getShaderAttributes()}getModuleSettings(){const{viewport:viewport,mousePosition:mousePosition,gl:gl}=this.context;return Object.assign(Object.create(this.props),{viewport:viewport,mousePosition:mousePosition,pickingActive:0,devicePixelRatio:(0,esm.w)(gl)})}updateShaders(shaders){}isAggregationDirty(updateOpts,params={}){const{props:props,oldProps:oldProps,changeFlags:changeFlags}=updateOpts,{compareAll:compareAll=!1,dimension:dimension}=params,{ignoreProps:ignoreProps}=this.state,{props:dataProps,accessors:accessors=[]}=dimension,{updateTriggersChanged:updateTriggersChanged}=changeFlags;if(changeFlags.dataChanged)return!0;if(updateTriggersChanged){if(updateTriggersChanged.all)return!0;for(const accessor of accessors)if(updateTriggersChanged[accessor])return!0}if(compareAll)return!!changeFlags.extensionsChanged||(0,lifecycle_props.tg)({oldProps:oldProps,newProps:props,ignoreProps:ignoreProps,propTypes:this.constructor._propTypes});for(const name of dataProps)if(props[name]!==oldProps[name])return!0;return!1}isAttributeChanged(name){const{changedAttributes:changedAttributes}=this.state;return name?changedAttributes&&void 0!==changedAttributes[name]:!function isObjectEmpty(obj){let isEmpty=!0;for(const key in obj){isEmpty=!1;break}return isEmpty}(changedAttributes)}_getAttributeManager(){return new attribute_manager.Z(this.context.gl,{id:this.props.id,stats:this.context.stats})}}(0,defineProperty.Z)(AggregationLayer,"layerName","AggregationLayer");var buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js");function getScale(domain,range,scaleFunction){const scale=scaleFunction;return scale.domain=()=>domain,scale.range=()=>range,scale}function getQuantizeScale(domain,range){return getScale(domain,range,(value=>function quantizeScale(domain,range,value){const domainRange=domain[1]-domain[0];if(domainRange<=0)return log.Z.warn("quantizeScale: invalid domain, returning range[0]")(),range[0];const step=domainRange/range.length,idx=Math.floor((value-domain[0])/step),clampIdx=Math.max(Math.min(idx,range.length-1),0);return range[clampIdx]}(domain,range,value)))}function getLinearScale(domain,range){return getScale(domain,range,(value=>function linearScale(domain,range,value){return(value-domain[0])/(domain[1]-domain[0])*(range[1]-range[0])+range[0]}(domain,range,value)))}function getQuantileScale(domain,range){const sortedDomain=domain.sort(ascending);let i=0;const n=Math.max(1,range.length),thresholds=new Array(n-1);for(;++ifunction thresholdsScale(thresholds,range,value){return range[function bisectRight(a,x){let lo=0,hi=a.length;for(;lo>>1;ascending(a[mid],x)>0?hi=mid:lo=mid+1}return lo}(thresholds,value)]}(thresholds,range,value);return scaleFunction.thresholds=()=>thresholds,getScale(domain,range,scaleFunction)}function ascending(a,b){return a-b}function threshold(domain,fraction){const domainLength=domain.length;if(fraction<=0||domainLength<2)return domain[0];if(fraction>=1)return domain[domainLength-1];const domainFraction=(domainLength-1)*fraction,lowIndex=Math.floor(domainFraction),low=domain[lowIndex];return low+(domain[lowIndex+1]-low)*(domainFraction-lowIndex)}function getOrdinalScale(domain,range){const domainMap=new Map,uniqueDomain=[];for(const d of domain){const key="".concat(d);domainMap.has(key)||domainMap.set(key,uniqueDomain.push(d))}return getScale(domain,range,(value=>function ordinalScale(domain,domainMap,range,value){const key="".concat(value);let d=domainMap.get(key);return void 0===d&&(d=domain.push(value),domainMap.set(key,d)),range[(d-1)%range.length]}(uniqueDomain,domainMap,range,value)))}function notNullOrUndefined(d){return null!=d}function getTruthyValues(data,valueAccessor){return("function"==typeof valueAccessor?data.map(valueAccessor):data).filter(notNullOrUndefined)}function getQuantileDomain(data,valueAccessor){return getTruthyValues(data,valueAccessor)}function getOrdinalDomain(data,valueAccessor){return function unique(values){const results=[];return values.forEach((v=>{!results.includes(v)&¬NullOrUndefined(v)&&results.push(v)})),results}(getTruthyValues(data,valueAccessor))}const defaultGetValue=points=>points.length,defaultGetPoints=bin=>bin.points,defaultGetIndex=bin=>bin.index,bin_sorter_ascending=(a,b)=>ab?1:a>=b?0:NaN,bin_sorter_defaultProps={getValue:defaultGetValue,getPoints:defaultGetPoints,getIndex:defaultGetIndex,filterData:null};class BinSorter{constructor(bins=[],props=bin_sorter_defaultProps){(0,defineProperty.Z)(this,"maxCount",void 0),(0,defineProperty.Z)(this,"maxValue",void 0),(0,defineProperty.Z)(this,"minValue",void 0),(0,defineProperty.Z)(this,"totalCount",void 0),(0,defineProperty.Z)(this,"aggregatedBins",void 0),(0,defineProperty.Z)(this,"sortedBins",void 0),(0,defineProperty.Z)(this,"binMap",void 0),this.aggregatedBins=this.getAggregatedBins(bins,props),this._updateMinMaxValues(),this.binMap=this.getBinMap()}getAggregatedBins(bins,props){const{getValue:getValue=defaultGetValue,getPoints:getPoints=defaultGetPoints,getIndex:getIndex=defaultGetIndex,filterData:filterData}=props,hasFilter="function"==typeof filterData,binCount=bins.length,aggregatedBins=[];let index=0;for(let binIndex=0;binIndexfunction clamp(value,min,max){return Math.max(min,Math.min(max,value))}(n,0,100)));return[Math.ceil(lower/100*(len-1)),Math.floor(upper/100*(len-1))]}getBinMap(){const binMap={};for(const bin of this.aggregatedBins)binMap[bin.i]=bin;return binMap}_updateMinMaxValues(){let maxCount=0,maxValue=0,minValue=3402823466e29,totalCount=0;for(const x of this.aggregatedBins)maxCount=maxCount>x.counts?maxCount:x.counts,maxValue=maxValue>x.value?maxValue:x.value,minValue=minValuebin_sorter_ascending(a.value,b.value)))),!this.sortedBins.length)return[];let lowerIdx=0,upperIdx=this.sortedBins.length-1;if(Array.isArray(percentileRange)){const idxRange=this._percentileToIndex(percentileRange);lowerIdx=idxRange[0],upperIdx=idxRange[1]}return[this.sortedBins[lowerIdx].value,this.sortedBins[upperIdx].value]}getValueDomainByScale(scale,[lower=0,upper=100]=[]){if(this.sortedBins||(this.sortedBins=this.aggregatedBins.sort(((a,b)=>bin_sorter_ascending(a.value,b.value)))),!this.sortedBins.length)return[];const indexEdge=this._percentileToIndex([lower,upper]);return this._getScaleDomain(scale,indexEdge)}_getScaleDomain(scaleType,[lowerIdx,upperIdx]){const bins=this.sortedBins;switch(scaleType){case"quantize":case"linear":default:return[bins[lowerIdx].value,bins[upperIdx].value];case"quantile":return getQuantileDomain(bins.slice(lowerIdx,upperIdx+1),(d=>d.value));case"ordinal":return getOrdinalDomain(bins,(d=>d.value))}}}var iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");const R_EARTH=6378e3;function toFinite(n){return Number.isFinite(n)?n:0}function getBoundingBox(attributes,vertexCount){const positions=attributes.positions.value;let y,x,yMin=1/0,yMax=-1/0,xMin=1/0,xMax=-1/0;for(let i=0;iyMax?y:yMax,xMin=xxMax?x:xMax;return{xMin:toFinite(xMin),xMax:toFinite(xMax),yMin:toFinite(yMin),yMax:toFinite(yMax)}}function alignToCell(inValue,cellSize){const sign=inValue<0?-1:1;let value=sign<0?Math.abs(inValue)+cellSize:Math.abs(inValue);return value=Math.floor(value/cellSize)*cellSize,value*sign}function getGridOffset(boundingBox,cellSize,convertToMeters=!0){if(!convertToMeters)return{xOffset:cellSize,yOffset:cellSize};const{yMin:yMin,yMax:yMax}=boundingBox;return function calculateGridLatLonOffset(cellSize,latitude){const yOffset=function calculateLatOffset(dy){return dy/R_EARTH*(180/Math.PI)}(cellSize),xOffset=function calculateLonOffset(lat,dx){return dx/R_EARTH*(180/Math.PI)/Math.cos(lat*Math.PI/180)}(latitude,cellSize);return{yOffset:yOffset,xOffset:xOffset}}(cellSize,(yMin+yMax)/2)}function getGridParams(boundingBox,cellSize,viewport,coordinateSystem){const gridOffset=getGridOffset(boundingBox,cellSize,coordinateSystem!==constants.COORDINATE_SYSTEM.CARTESIAN),translation=function getTranslation(boundingBox,gridOffset,coordinateSystem,viewport){const{width:width,height:height}=viewport,worldOrigin=coordinateSystem===constants.COORDINATE_SYSTEM.CARTESIAN?[-width/2,-height/2]:[-180,-90];log.Z.assert(coordinateSystem===constants.COORDINATE_SYSTEM.CARTESIAN||coordinateSystem===constants.COORDINATE_SYSTEM.LNGLAT||coordinateSystem===constants.COORDINATE_SYSTEM.DEFAULT);const{xMin:xMin,yMin:yMin}=boundingBox;return[-1*(alignToCell(xMin-worldOrigin[0],gridOffset.xOffset)+worldOrigin[0]),-1*(alignToCell(yMin-worldOrigin[1],gridOffset.yOffset)+worldOrigin[1])]}(boundingBox,gridOffset,coordinateSystem,viewport),{xMin:xMin,yMin:yMin,xMax:xMax,yMax:yMax}=boundingBox,width=xMax-xMin+gridOffset.xOffset,height=yMax-yMin+gridOffset.yOffset;return{gridOffset:gridOffset,translation:translation,width:width,height:height,numCol:Math.ceil(width/gridOffset.xOffset),numRow:Math.ceil(height/gridOffset.yOffset)}}function pointToDensityGridDataCPU(props,aggregationParams){const hashInfo=function pointsToGridHashing(props,aggregationParams){const{data:data=[],cellSize:cellSize}=props,{attributes:attributes,viewport:viewport,projectPoints:projectPoints,numInstances:numInstances}=aggregationParams,positions=attributes.positions.value,{size:size}=attributes.positions.getAccessor(),boundingBox=aggregationParams.boundingBox||function getPositionBoundingBox(positionAttribute,numInstance){const positions=positionAttribute.value,{size:size}=positionAttribute.getAccessor();let y,x,yMin=1/0,yMax=-1/0,xMin=1/0,xMax=-1/0;for(let i=0;iyMax?y:yMax,xMin=xxMax?x:xMax);return{xMin:xMin,xMax:xMax,yMin:yMin,yMax:yMax}}(attributes.positions,numInstances),offsets=aggregationParams.posOffset||[180,90],gridOffset=aggregationParams.gridOffset||getGridOffset(boundingBox,cellSize);if(gridOffset.xOffset<=0||gridOffset.yOffset<=0)return{gridHash:{},gridOffset:gridOffset};const{width:width,height:height}=viewport,numCol=Math.ceil(width/gridOffset.xOffset),numRow=Math.ceil(height/gridOffset.yOffset),gridHash={},{iterable:iterable,objectInfo:objectInfo}=(0,iterable_utils.jB)(data),position=new Array(3);for(const pt of iterable){objectInfo.index++,position[0]=positions[objectInfo.index*size],position[1]=positions[objectInfo.index*size+1],position[2]=size>=3?positions[objectInfo.index*size+2]:0;const[x,y]=projectPoints?viewport.project(position):position;if(Number.isFinite(x)&&Number.isFinite(y)){const yIndex=Math.floor((y+offsets[1])/gridOffset.yOffset),xIndex=Math.floor((x+offsets[0])/gridOffset.xOffset);if(!projectPoints||xIndex>=0&&xIndex=0&&yIndexd.position},getWeight:{type:"accessor",value:1},gpuAggregation:!0,aggregation:"SUM"},DIMENSIONS={data:{props:["cellSizePixels"]},weights:{props:["aggregation"],accessors:["getWeight"]}};class ScreenGridLayer extends GridAggregationLayer{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){const{gl:gl}=this.context;if(!ScreenGridCellLayer.isSupported(gl))return this.setState({supported:!1}),void log.Z.error("ScreenGridLayer: ".concat(this.id," is not supported on this browser"))();super.initializeAggregationLayer({dimensions:DIMENSIONS,getCellSize:props=>props.cellSizePixels});const weights={count:{size:1,operation:AGGREGATION_OPERATION.SUM,needMax:!0,maxTexture:getFloatTexture(gl,{id:"".concat(this.id,"-max-texture")})}};this.setState({supported:!0,projectPoints:!0,weights:weights,subLayerData:{attributes:{}},maxTexture:weights.count.maxTexture,positionAttributeName:"positions",posOffset:[0,0],translation:[1,-1]});this.getAttributeManager().add({positions:{size:3,accessor:"getPosition",type:5130,fp64:this.use64bitPositions()},count:{size:3,accessor:"getWeight"}})}shouldUpdateState({changeFlags:changeFlags}){return this.state.supported&&changeFlags.somethingChanged}updateState(opts){super.updateState(opts)}renderLayers(){if(!this.state.supported)return[];const{maxTexture:maxTexture,numRow:numRow,numCol:numCol,weights:weights}=this.state,{updateTriggers:updateTriggers}=this.props,{aggregationBuffer:aggregationBuffer}=weights.count;return new(this.getSubLayerClass("cells",ScreenGridCellLayer))(this.props,this.getSubLayerProps({id:"cell-layer",updateTriggers:updateTriggers}),{data:{attributes:{instanceCounts:aggregationBuffer}},maxTexture:maxTexture,numInstances:numRow*numCol})}finalizeState(context){super.finalizeState(context);const{aggregationBuffer:aggregationBuffer,maxBuffer:maxBuffer,maxTexture:maxTexture}=this.state;null==aggregationBuffer||aggregationBuffer.delete(),null==maxBuffer||maxBuffer.delete(),null==maxTexture||maxTexture.delete()}getPickingInfo({info:info}){const{index:index}=info;if(index>=0){const{gpuGridAggregator:gpuGridAggregator,gpuAggregation:gpuAggregation,weights:weights}=this.state,aggregationResults=gpuAggregation?gpuGridAggregator.getData("count"):weights.count;info.object=GPUGridAggregator.getAggregationData({pixelIndex:index,...aggregationResults})}return info}updateResults({aggregationData:aggregationData,maxData:maxData}){const{count:count}=this.state.weights;count.aggregationData=aggregationData,count.aggregationBuffer.setData({data:aggregationData}),count.maxData=maxData,count.maxTexture.setImageData({data:maxData})}updateAggregationState(opts){const cellSize=opts.props.cellSizePixels,cellSizeChanged=opts.oldProps.cellSizePixels!==cellSize,{viewportChanged:viewportChanged}=opts.changeFlags;let gpuAggregation=opts.props.gpuAggregation;this.state.gpuAggregation!==opts.props.gpuAggregation&&gpuAggregation&&!GPUGridAggregator.isSupported(this.context.gl)&&(log.Z.warn("GPU Grid Aggregation not supported, falling back to CPU")(),gpuAggregation=!1);const gpuAggregationChanged=gpuAggregation!==this.state.gpuAggregation;this.setState({gpuAggregation:gpuAggregation});const positionsChanged=this.isAttributeChanged("positions"),{dimensions:dimensions}=this.state,{data:data,weights:weights}=dimensions,aggregationDataDirty=positionsChanged||gpuAggregationChanged||viewportChanged||this.isAggregationDirty(opts,{compareAll:gpuAggregation,dimension:data}),aggregationWeightsDirty=this.isAggregationDirty(opts,{dimension:weights});this.setState({aggregationDataDirty:aggregationDataDirty,aggregationWeightsDirty:aggregationWeightsDirty});const{viewport:viewport}=this.context;if(viewportChanged||cellSizeChanged){const{width:width,height:height}=viewport,numCol=Math.ceil(width/cellSize),numRow=Math.ceil(height/cellSize);this.allocateResources(numRow,numCol),this.setState({scaling:[width/2,-height/2,1],gridOffset:{xOffset:cellSize,yOffset:cellSize},width:width,height:height,numCol:numCol,numRow:numRow})}aggregationWeightsDirty&&this._updateAccessors(opts),(aggregationDataDirty||aggregationWeightsDirty)&&this._resetResults()}_updateAccessors(opts){const{getWeight:getWeight,aggregation:aggregation,data:data}=opts.props,{count:count}=this.state.weights;count&&(count.getWeight=getWeight,count.operation=AGGREGATION_OPERATION[aggregation]),this.setState({getValue:getValueFunc(aggregation,getWeight,{data:data})})}_resetResults(){const{count:count}=this.state.weights;count&&(count.aggregationData=null)}}(0,defineProperty.Z)(ScreenGridLayer,"layerName","ScreenGridLayer"),(0,defineProperty.Z)(ScreenGridLayer,"defaultProps",screen_grid_layer_defaultProps);var grid_cell_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/column-layer/grid-cell-layer.js");function nop(){}const dimensionSteps=["getBins","getDomain","getScaleFunc"],defaultDimensions=[{key:"fillColor",accessor:"getFillColor",pickingInfo:"colorValue",getBins:{triggers:{value:{prop:"getColorValue",updateTrigger:"getColorValue"},weight:{prop:"getColorWeight",updateTrigger:"getColorWeight"},aggregation:{prop:"colorAggregation"},filterData:{prop:"_filterData",updateTrigger:"_filterData"}}},getDomain:{triggers:{lowerPercentile:{prop:"lowerPercentile"},upperPercentile:{prop:"upperPercentile"},scaleType:{prop:"colorScaleType"}}},getScaleFunc:{triggers:{domain:{prop:"colorDomain"},range:{prop:"colorRange"}},onSet:{props:"onSetColorDomain"}},nullValue:[0,0,0,0]},{key:"elevation",accessor:"getElevation",pickingInfo:"elevationValue",getBins:{triggers:{value:{prop:"getElevationValue",updateTrigger:"getElevationValue"},weight:{prop:"getElevationWeight",updateTrigger:"getElevationWeight"},aggregation:{prop:"elevationAggregation"},filterData:{prop:"_filterData",updateTrigger:"_filterData"}}},getDomain:{triggers:{lowerPercentile:{prop:"elevationLowerPercentile"},upperPercentile:{prop:"elevationUpperPercentile"},scaleType:{prop:"elevationScaleType"}}},getScaleFunc:{triggers:{domain:{prop:"elevationDomain"},range:{prop:"elevationRange"}},onSet:{props:"onSetElevationDomain"}},nullValue:-1}],defaultGetCellSize=props=>props.cellSize;class CPUAggregator{constructor(opts){this.state={layerData:{},dimensions:{}},this.changeFlags={},this.dimensionUpdaters={},this._getCellSize=opts.getCellSize||defaultGetCellSize,this._getAggregator=opts.getAggregator,this._addDimension(opts.dimensions||defaultDimensions)}static defaultDimensions(){return defaultDimensions}updateState(opts,aggregationParams){const{oldProps:oldProps,props:props,changeFlags:changeFlags}=opts;this.updateGetValueFuncs(oldProps,props,changeFlags);const reprojectNeeded=this.needsReProjectPoints(oldProps,props,changeFlags);let aggregationDirty=!1;if(changeFlags.dataChanged||reprojectNeeded)this.getAggregatedData(props,aggregationParams),aggregationDirty=!0;else{(this.getDimensionChanges(oldProps,props,changeFlags)||[]).forEach((f=>"function"==typeof f&&f())),aggregationDirty=!0}return this.setState({aggregationDirty:aggregationDirty}),this.state}setState(updateObject){this.state={...this.state,...updateObject}}setDimensionState(key,updateObject){this.setState({dimensions:{...this.state.dimensions,[key]:{...this.state.dimensions[key],...updateObject}}})}normalizeResult(result={}){return result.hexagons?{data:result.hexagons,...result}:result.layerData?{data:result.layerData,...result}:result}getAggregatedData(props,aggregationParams){const result=this._getAggregator(props)(props,aggregationParams);this.setState({layerData:this.normalizeResult(result)}),this.changeFlags={layerData:!0},this.getSortedBins(props)}updateGetValueFuncs(oldProps,props,changeFlags){for(const key in this.dimensionUpdaters){const{value:value,weight:weight,aggregation:aggregation}=this.dimensionUpdaters[key].getBins.triggers;let getValue=props[value.prop];this.needUpdateDimensionStep(this.dimensionUpdaters[key].getBins,oldProps,props,changeFlags)&&(getValue=getValue?wrapGetValueFunc(getValue,{data:props.data}):getValueFunc(props[aggregation.prop],props[weight.prop],{data:props.data})),getValue&&this.setDimensionState(key,{getValue:getValue})}}needsReProjectPoints(oldProps,props,changeFlags){return this._getCellSize(oldProps)!==this._getCellSize(props)||this._getAggregator(oldProps)!==this._getAggregator(props)||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getPosition)}addDimension(dimensions){this._addDimension(dimensions)}_addDimension(dimensions=[]){dimensions.forEach((dimension=>{const{key:key}=dimension;this.dimensionUpdaters[key]=this.getDimensionUpdaters(dimension),this.state.dimensions[key]={getValue:null,domain:null,sortedBins:null,scaleFunc:nop}}))}getDimensionUpdaters({key:key,accessor:accessor,pickingInfo:pickingInfo,getBins:getBins,getDomain:getDomain,getScaleFunc:getScaleFunc,nullValue:nullValue}){return{key:key,accessor:accessor,pickingInfo:pickingInfo,getBins:{updater:this.getDimensionSortedBins,...getBins},getDomain:{updater:this.getDimensionValueDomain,...getDomain},getScaleFunc:{updater:this.getDimensionScale,...getScaleFunc},attributeAccessor:this.getSubLayerDimensionAttribute(key,nullValue)}}needUpdateDimensionStep(dimensionStep,oldProps,props,changeFlags){return Object.values(dimensionStep.triggers).some((item=>item.updateTrigger?changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged[item.updateTrigger]):oldProps[item.prop]!==props[item.prop]))}getDimensionChanges(oldProps,props,changeFlags){const updaters=[];for(const key in this.dimensionUpdaters){const needUpdate=dimensionSteps.find((step=>this.needUpdateDimensionStep(this.dimensionUpdaters[key][step],oldProps,props,changeFlags)));needUpdate&&updaters.push(this.dimensionUpdaters[key][needUpdate].updater.bind(this,props,this.dimensionUpdaters[key]))}return updaters.length?updaters:null}getUpdateTriggers(props){const _updateTriggers=props.updateTriggers||{},updateTriggers={};for(const key in this.dimensionUpdaters){const{accessor:accessor}=this.dimensionUpdaters[key];updateTriggers[accessor]={},dimensionSteps.forEach((step=>{Object.values(this.dimensionUpdaters[key][step].triggers).forEach((({prop:prop,updateTrigger:updateTrigger})=>{if(updateTrigger){const fromProp=_updateTriggers[updateTrigger];"object"!=typeof fromProp||Array.isArray(fromProp)?void 0!==fromProp&&(updateTriggers[accessor][prop]=fromProp):Object.assign(updateTriggers[accessor],fromProp)}else updateTriggers[accessor][prop]=props[prop]}))}))}return updateTriggers}getSortedBins(props){for(const key in this.dimensionUpdaters)this.getDimensionSortedBins(props,this.dimensionUpdaters[key])}getDimensionSortedBins(props,dimensionUpdater){const{key:key}=dimensionUpdater,{getValue:getValue}=this.state.dimensions[key],sortedBins=new BinSorter(this.state.layerData.data||[],{getValue:getValue,filterData:props._filterData});this.setDimensionState(key,{sortedBins:sortedBins}),this.getDimensionValueDomain(props,dimensionUpdater)}getDimensionValueDomain(props,dimensionUpdater){const{getDomain:getDomain,key:key}=dimensionUpdater,{triggers:{lowerPercentile:lowerPercentile,upperPercentile:upperPercentile,scaleType:scaleType}}=getDomain,valueDomain=this.state.dimensions[key].sortedBins.getValueDomainByScale(props[scaleType.prop],[props[lowerPercentile.prop],props[upperPercentile.prop]]);this.setDimensionState(key,{valueDomain:valueDomain}),this.getDimensionScale(props,dimensionUpdater)}getDimensionScale(props,dimensionUpdater){const{key:key,getScaleFunc:getScaleFunc,getDomain:getDomain}=dimensionUpdater,{domain:domain,range:range}=getScaleFunc.triggers,{scaleType:scaleType}=getDomain.triggers,{onSet:onSet}=getScaleFunc,dimensionRange=props[range.prop],dimensionDomain=props[domain.prop]||this.state.dimensions[key].valueDomain,getScaleFunction=function getScaleFunctionByScaleType(scaleType){switch(scaleType){case"quantize":default:return getQuantizeScale;case"linear":return getLinearScale;case"quantile":return getQuantileScale;case"ordinal":return getOrdinalScale}}(scaleType&&props[scaleType.prop]),scaleFunc=getScaleFunction(dimensionDomain,dimensionRange);"object"==typeof onSet&&"function"==typeof props[onSet.props]&&props[onSet.props](scaleFunc.domain()),this.setDimensionState(key,{scaleFunc:scaleFunc})}getSubLayerDimensionAttribute(key,nullValue){return cell=>{const{sortedBins:sortedBins,scaleFunc:scaleFunc}=this.state.dimensions[key],bin=sortedBins.binMap[cell.index];if(bin&&0===bin.counts)return nullValue;const cv=bin&&bin.value,domain=scaleFunc.domain();return cv>=domain[0]&&cv<=domain[domain.length-1]?scaleFunc(cv):nullValue}}getSubLayerAccessors(props){const accessors={};for(const key in this.dimensionUpdaters){const{accessor:accessor}=this.dimensionUpdaters[key];accessors[accessor]=this.getSubLayerDimensionAttribute(props,key)}return accessors}getPickingInfo({info:info}){let object=null;if(info.picked&&info.index>-1){const cell=this.state.layerData.data[info.index],binInfo={};for(const key in this.dimensionUpdaters){const{pickingInfo:pickingInfo}=this.dimensionUpdaters[key],{sortedBins:sortedBins}=this.state.dimensions[key],value=sortedBins.binMap[cell.index]&&sortedBins.binMap[cell.index].value;binInfo[pickingInfo]=value}object=Object.assign(binInfo,cell,{points:cell.filteredPoints||cell.points})}return info.picked=Boolean(object),info.object=object,info}getAccessor(dimensionKey){return this.dimensionUpdaters.hasOwnProperty(dimensionKey)?this.dimensionUpdaters[dimensionKey].attributeAccessor:nop}}function cpu_grid_layer_nop(){}const cpu_grid_layer_defaultProps={colorDomain:null,colorRange:defaultColorRange,getColorValue:{type:"accessor",value:null},getColorWeight:{type:"accessor",value:1},colorAggregation:"SUM",lowerPercentile:{type:"number",min:0,max:100,value:0},upperPercentile:{type:"number",min:0,max:100,value:100},colorScaleType:"quantize",onSetColorDomain:cpu_grid_layer_nop,elevationDomain:null,elevationRange:[0,1e3],getElevationValue:{type:"accessor",value:null},getElevationWeight:{type:"accessor",value:1},elevationAggregation:"SUM",elevationLowerPercentile:{type:"number",min:0,max:100,value:0},elevationUpperPercentile:{type:"number",min:0,max:100,value:100},elevationScale:{type:"number",min:0,value:1},elevationScaleType:"linear",onSetElevationDomain:cpu_grid_layer_nop,gridAggregator:pointToDensityGridDataCPU,cellSize:{type:"number",min:0,max:1e3,value:1e3},coverage:{type:"number",min:0,max:1,value:1},getPosition:{type:"accessor",value:x=>x.position},extruded:!1,material:!0,_filterData:{type:"function",value:null,optional:!0}};class CPUGridLayer extends AggregationLayer{initializeState(){const cpuAggregator=new CPUAggregator({getAggregator:props=>props.gridAggregator,getCellSize:props=>props.cellSize});this.state={cpuAggregator:cpuAggregator,aggregatorState:cpuAggregator.state};this.getAttributeManager().add({positions:{size:3,type:5130,accessor:"getPosition"}})}updateState(opts){super.updateState(opts),this.setState({aggregatorState:this.state.cpuAggregator.updateState(opts,{viewport:this.context.viewport,attributes:this.getAttributes(),numInstances:this.getNumInstances()})})}getPickingInfo({info:info}){return this.state.cpuAggregator.getPickingInfo({info:info})}_onGetSublayerColor(cell){return this.state.cpuAggregator.getAccessor("fillColor")(cell)}_onGetSublayerElevation(cell){return this.state.cpuAggregator.getAccessor("elevation")(cell)}_getSublayerUpdateTriggers(){return this.state.cpuAggregator.getUpdateTriggers(this.props)}renderLayers(){const{elevationScale:elevationScale,extruded:extruded,cellSize:cellSize,coverage:coverage,material:material,transitions:transitions}=this.props,{cpuAggregator:cpuAggregator}=this.state,SubLayerClass=this.getSubLayerClass("grid-cell",grid_cell_layer.Z),updateTriggers=this._getSublayerUpdateTriggers();return new SubLayerClass({cellSize:cellSize,coverage:coverage,material:material,elevationScale:elevationScale,extruded:extruded,getFillColor:this._onGetSublayerColor.bind(this),getElevation:this._onGetSublayerElevation.bind(this),transitions:transitions&&{getFillColor:transitions.getColorValue||transitions.getColorWeight,getElevation:transitions.getElevationValue||transitions.getElevationWeight}},this.getSubLayerProps({id:"grid-cell",updateTriggers:updateTriggers}),{data:cpuAggregator.state.layerData.data})}}(0,defineProperty.Z)(CPUGridLayer,"layerName","CPUGridLayer"),(0,defineProperty.Z)(CPUGridLayer,"defaultProps",cpu_grid_layer_defaultProps);var column_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/column-layer/column-layer.js"),thirdPi=Math.PI/3,angles=[0,thirdPi,2*thirdPi,3*thirdPi,4*thirdPi,5*thirdPi];function pointX(d){return d[0]}function pointY(d){return d[1]}function hexagon_layer_nop(){}const hexagon_layer_defaultProps={colorDomain:null,colorRange:defaultColorRange,getColorValue:{type:"accessor",value:null},getColorWeight:{type:"accessor",value:1},colorAggregation:"SUM",lowerPercentile:{type:"number",value:0,min:0,max:100},upperPercentile:{type:"number",value:100,min:0,max:100},colorScaleType:"quantize",onSetColorDomain:hexagon_layer_nop,elevationDomain:null,elevationRange:[0,1e3],getElevationValue:{type:"accessor",value:null},getElevationWeight:{type:"accessor",value:1},elevationAggregation:"SUM",elevationLowerPercentile:{type:"number",value:0,min:0,max:100},elevationUpperPercentile:{type:"number",value:100,min:0,max:100},elevationScale:{type:"number",min:0,value:1},elevationScaleType:"linear",onSetElevationDomain:hexagon_layer_nop,radius:{type:"number",value:1e3,min:1},coverage:{type:"number",min:0,max:1,value:1},extruded:!1,hexagonAggregator:function pointToHexbin(props,aggregationParams){const{data:data,radius:radius}=props,{viewport:viewport,attributes:attributes}=aggregationParams,centerLngLat=data.length?function getPointsCenter(data,aggregationParams){const{attributes:attributes}=aggregationParams,positions=attributes.positions.value,{size:size}=attributes.positions.getAccessor();let i,minX=1/0,minY=1/0,maxX=-1/0,maxY=-1/0;for(i=0;i1){var px1=px-pi,pi2=pi+(pxpx2*px2+py2*py2&&(pi=pi2+(1&pj?1:-1)/2,pj=pj2)}var id=pi+"-"+pj,bin=binsById[id];bin?bin.push(point):(bins.push(bin=binsById[id]=[point]),bin.x=(pi+(1&pj)/2)*dx,bin.y=pj*dy)}return bins}function hexagon(radius){var x0=0,y0=0;return angles.map((function(angle){var x1=Math.sin(angle)*radius,y1=-Math.cos(angle)*radius,dx=x1-x0,dy=y1-y0;return x0=x1,y0=y1,[dx,dy]}))}return hexbin.hexagon=function(radius){return"m"+hexagon(null==radius?r:+radius).join("l")+"z"},hexbin.centers=function(){for(var centers=[],j=Math.round(y0/dy),i=Math.round(x0/dx),y=j*dy;yd.screenCoord[0])).y((d=>d.screenCoord[1]));return{hexagons:newHexbin(screenPoints).map(((hex,index)=>({position:viewport.unprojectFlat([hex.x,hex.y]),points:hex,index:index}))),radiusCommon:radiusCommon}},getPosition:{type:"accessor",value:x=>x.position},material:!0,_filterData:{type:"function",value:null,optional:!0}};class HexagonLayer extends AggregationLayer{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){const cpuAggregator=new CPUAggregator({getAggregator:props=>props.hexagonAggregator,getCellSize:props=>props.radius});this.state={cpuAggregator:cpuAggregator,aggregatorState:cpuAggregator.state,vertices:null};this.getAttributeManager().add({positions:{size:3,type:5130,accessor:"getPosition"}})}updateState(opts){if(super.updateState(opts),opts.changeFlags.propsOrDataChanged){const aggregatorState=this.state.cpuAggregator.updateState(opts,{viewport:this.context.viewport,attributes:this.getAttributes()});if(this.state.aggregatorState.layerData!==aggregatorState.layerData){const{hexagonVertices:hexagonVertices}=aggregatorState.layerData||{};this.setState({vertices:hexagonVertices&&this.convertLatLngToMeterOffset(hexagonVertices)})}this.setState({aggregatorState:aggregatorState})}}convertLatLngToMeterOffset(hexagonVertices){const{viewport:viewport}=this.context;if(Array.isArray(hexagonVertices)&&6===hexagonVertices.length){const vertex0=hexagonVertices[0],vertex3=hexagonVertices[3],centroid=[(vertex0[0]+vertex3[0])/2,(vertex0[1]+vertex3[1])/2],centroidFlat=viewport.projectFlat(centroid),{metersPerUnit:metersPerUnit}=viewport.getDistanceScales(centroid);return hexagonVertices.map((vt=>{const vtFlat=viewport.projectFlat(vt);return[(vtFlat[0]-centroidFlat[0])*metersPerUnit[0],(vtFlat[1]-centroidFlat[1])*metersPerUnit[1]]}))}return log.Z.error("HexagonLayer: hexagonVertices needs to be an array of 6 points")(),null}getPickingInfo({info:info}){return this.state.cpuAggregator.getPickingInfo({info:info})}_onGetSublayerColor(cell){return this.state.cpuAggregator.getAccessor("fillColor")(cell)}_onGetSublayerElevation(cell){return this.state.cpuAggregator.getAccessor("elevation")(cell)}_getSublayerUpdateTriggers(){return this.state.cpuAggregator.getUpdateTriggers(this.props)}renderLayers(){const{elevationScale:elevationScale,extruded:extruded,coverage:coverage,material:material,transitions:transitions}=this.props,{aggregatorState:aggregatorState,vertices:vertices}=this.state,SubLayerClass=this.getSubLayerClass("hexagon-cell",column_layer.Z),updateTriggers=this._getSublayerUpdateTriggers();return new SubLayerClass({...vertices?{vertices:vertices,radius:1}:{radius:aggregatorState.layerData.radiusCommon||1,radiusUnits:"common",angle:90},diskResolution:6,elevationScale:elevationScale,extruded:extruded,coverage:coverage,material:material,getFillColor:this._onGetSublayerColor.bind(this),getElevation:this._onGetSublayerElevation.bind(this),transitions:transitions&&{getFillColor:transitions.getColorValue||transitions.getColorWeight,getElevation:transitions.getElevationValue||transitions.getElevationWeight}},this.getSubLayerProps({id:"hexagon-cell",updateTriggers:updateTriggers}),{data:aggregatorState.layerData.data})}}(0,defineProperty.Z)(HexagonLayer,"layerName","HexagonLayer"),(0,defineProperty.Z)(HexagonLayer,"defaultProps",hexagon_layer_defaultProps);var line_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/line-layer/line-layer.js"),solid_polygon_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/solid-polygon-layer.js");const ONE6TH=1/6,OFFSET={N:[0,.5],E:[.5,0],S:[0,-.5],W:[-.5,0],NE:[.5,.5],NW:[-.5,.5],SE:[.5,-.5],SW:[-.5,-.5]},SW_TRIANGLE=[OFFSET.W,OFFSET.SW,OFFSET.S],SE_TRIANGLE=[OFFSET.S,OFFSET.SE,OFFSET.E],NE_TRIANGLE=[OFFSET.E,OFFSET.NE,OFFSET.N],NW_TRIANGLE=[OFFSET.NW,OFFSET.W,OFFSET.N],SW_TRAPEZOID=[[-.5,ONE6TH],[-.5,-ONE6TH],[-ONE6TH,-.5],[ONE6TH,-.5]],SE_TRAPEZOID=[[-ONE6TH,-.5],[ONE6TH,-.5],[.5,-ONE6TH],[.5,ONE6TH]],NE_TRAPEZOID=[[.5,-ONE6TH],[.5,ONE6TH],[ONE6TH,.5],[-ONE6TH,.5]],NW_TRAPEZOID=[[-.5,ONE6TH],[-.5,-ONE6TH],[ONE6TH,.5],[-ONE6TH,.5]],S_RECTANGLE=[OFFSET.W,OFFSET.SW,OFFSET.SE,OFFSET.E],E_RECTANGLE=[OFFSET.S,OFFSET.SE,OFFSET.NE,OFFSET.N],N_RECTANGLE=[OFFSET.NW,OFFSET.W,OFFSET.E,OFFSET.NE],W_RECTANGLE=[OFFSET.NW,OFFSET.SW,OFFSET.S,OFFSET.N],EW_RECTANGEL=[[-.5,ONE6TH],[-.5,-ONE6TH],[.5,-ONE6TH],[.5,ONE6TH]],SN_RECTANGEL=[[-ONE6TH,-.5],[ONE6TH,-.5],[ONE6TH,.5],[-ONE6TH,.5]],SQUARE=[OFFSET.NW,OFFSET.SW,OFFSET.SE,OFFSET.NE],SW_PENTAGON=[OFFSET.NW,OFFSET.SW,OFFSET.SE,OFFSET.E,OFFSET.N],SE_PENTAGON=[OFFSET.W,OFFSET.SW,OFFSET.SE,OFFSET.NE,OFFSET.N],NE_PENTAGON=[OFFSET.NW,OFFSET.W,OFFSET.S,OFFSET.SE,OFFSET.NE],NW_PENTAGON=[OFFSET.NW,OFFSET.SW,OFFSET.S,OFFSET.E,OFFSET.NE],NW_N_PENTAGON=[OFFSET.NW,OFFSET.W,[.5,-ONE6TH],[.5,ONE6TH],OFFSET.N],NE_E_PENTAGON=[[-ONE6TH,-.5],[ONE6TH,-.5],OFFSET.E,OFFSET.NE,OFFSET.N],SE_S_PENTAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],OFFSET.S,OFFSET.SE,OFFSET.E],SW_W_PENTAGON=[OFFSET.W,OFFSET.SW,OFFSET.S,[ONE6TH,.5],[-ONE6TH,.5]],NW_W_PENTAGON=[OFFSET.NW,OFFSET.W,[-ONE6TH,-.5],[ONE6TH,-.5],OFFSET.N],NE_N_PENTAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],OFFSET.E,OFFSET.NE,OFFSET.N],SE_E_PENTAGON=[OFFSET.S,OFFSET.SE,OFFSET.E,[ONE6TH,.5],[-ONE6TH,.5]],SW_S_PENTAGON=[OFFSET.W,OFFSET.SW,OFFSET.S,[.5,-ONE6TH],[.5,ONE6TH]],S_HEXAGON=[OFFSET.W,OFFSET.SW,OFFSET.SE,OFFSET.E,[ONE6TH,.5],[-ONE6TH,.5]],E_HEXAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],OFFSET.S,OFFSET.SE,OFFSET.NE,OFFSET.N],N_HEXAGON=[OFFSET.NW,OFFSET.W,[-ONE6TH,-.5],[ONE6TH,-.5],OFFSET.E,OFFSET.NE],W_HEXAGON=[OFFSET.NW,OFFSET.SW,OFFSET.S,[.5,-ONE6TH],[.5,ONE6TH],OFFSET.N],SW_NE_HEXAGON=[OFFSET.W,OFFSET.SW,OFFSET.S,OFFSET.E,OFFSET.NE,OFFSET.N],NW_SE_HEXAGON=[OFFSET.NW,OFFSET.W,OFFSET.S,OFFSET.SE,OFFSET.E,OFFSET.N],NE_HEPTAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],[-ONE6TH,-.5],[ONE6TH,-.5],OFFSET.E,OFFSET.NE,OFFSET.N],SW_HEPTAGON=[OFFSET.W,OFFSET.SW,OFFSET.S,[.5,-ONE6TH],[.5,ONE6TH],[ONE6TH,.5],[-ONE6TH,.5]],NW_HEPTAGON=[OFFSET.NW,OFFSET.W,[-ONE6TH,-.5],[ONE6TH,-.5],[.5,-ONE6TH],[.5,ONE6TH],OFFSET.N],SE_HEPTAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],OFFSET.S,OFFSET.SE,OFFSET.E,[ONE6TH,.5],[-ONE6TH,.5]],OCTAGON=[[-.5,ONE6TH],[-.5,-ONE6TH],[-ONE6TH,-.5],[ONE6TH,-.5],[.5,-ONE6TH],[.5,ONE6TH],[ONE6TH,.5],[-ONE6TH,.5]],ISOLINES_CODE_OFFSET_MAP={0:[],1:[[OFFSET.W,OFFSET.S]],2:[[OFFSET.S,OFFSET.E]],3:[[OFFSET.W,OFFSET.E]],4:[[OFFSET.N,OFFSET.E]],5:{0:[[OFFSET.W,OFFSET.S],[OFFSET.N,OFFSET.E]],1:[[OFFSET.W,OFFSET.N],[OFFSET.S,OFFSET.E]]},6:[[OFFSET.N,OFFSET.S]],7:[[OFFSET.W,OFFSET.N]],8:[[OFFSET.W,OFFSET.N]],9:[[OFFSET.N,OFFSET.S]],10:{0:[[OFFSET.W,OFFSET.N],[OFFSET.S,OFFSET.E]],1:[[OFFSET.W,OFFSET.S],[OFFSET.N,OFFSET.E]]},11:[[OFFSET.N,OFFSET.E]],12:[[OFFSET.W,OFFSET.E]],13:[[OFFSET.S,OFFSET.E]],14:[[OFFSET.W,OFFSET.S]],15:[]};function ternaryToIndex(ternary){return parseInt(ternary,4)}const ISOBANDS_CODE_OFFSET_MAP={[ternaryToIndex("0000")]:[],[ternaryToIndex("2222")]:[],[ternaryToIndex("2221")]:[SW_TRIANGLE],[ternaryToIndex("2212")]:[SE_TRIANGLE],[ternaryToIndex("2122")]:[NE_TRIANGLE],[ternaryToIndex("1222")]:[NW_TRIANGLE],[ternaryToIndex("0001")]:[SW_TRIANGLE],[ternaryToIndex("0010")]:[SE_TRIANGLE],[ternaryToIndex("0100")]:[NE_TRIANGLE],[ternaryToIndex("1000")]:[NW_TRIANGLE],[ternaryToIndex("2220")]:[SW_TRAPEZOID],[ternaryToIndex("2202")]:[SE_TRAPEZOID],[ternaryToIndex("2022")]:[NE_TRAPEZOID],[ternaryToIndex("0222")]:[NW_TRAPEZOID],[ternaryToIndex("0002")]:[SW_TRAPEZOID],[ternaryToIndex("0020")]:[SE_TRAPEZOID],[ternaryToIndex("0200")]:[NE_TRAPEZOID],[ternaryToIndex("2000")]:[NW_TRAPEZOID],[ternaryToIndex("0011")]:[S_RECTANGLE],[ternaryToIndex("0110")]:[E_RECTANGLE],[ternaryToIndex("1100")]:[N_RECTANGLE],[ternaryToIndex("1001")]:[W_RECTANGLE],[ternaryToIndex("2211")]:[S_RECTANGLE],[ternaryToIndex("2112")]:[E_RECTANGLE],[ternaryToIndex("1122")]:[N_RECTANGLE],[ternaryToIndex("1221")]:[W_RECTANGLE],[ternaryToIndex("2200")]:[EW_RECTANGEL],[ternaryToIndex("2002")]:[SN_RECTANGEL],[ternaryToIndex("0022")]:[EW_RECTANGEL],[ternaryToIndex("0220")]:[SN_RECTANGEL],[ternaryToIndex("1111")]:[SQUARE],[ternaryToIndex("1211")]:[SW_PENTAGON],[ternaryToIndex("2111")]:[SE_PENTAGON],[ternaryToIndex("1112")]:[NE_PENTAGON],[ternaryToIndex("1121")]:[NW_PENTAGON],[ternaryToIndex("1011")]:[SW_PENTAGON],[ternaryToIndex("0111")]:[SE_PENTAGON],[ternaryToIndex("1110")]:[NE_PENTAGON],[ternaryToIndex("1101")]:[NW_PENTAGON],[ternaryToIndex("1200")]:[NW_N_PENTAGON],[ternaryToIndex("0120")]:[NE_E_PENTAGON],[ternaryToIndex("0012")]:[SE_S_PENTAGON],[ternaryToIndex("2001")]:[SW_W_PENTAGON],[ternaryToIndex("1022")]:[NW_N_PENTAGON],[ternaryToIndex("2102")]:[NE_E_PENTAGON],[ternaryToIndex("2210")]:[SE_S_PENTAGON],[ternaryToIndex("0221")]:[SW_W_PENTAGON],[ternaryToIndex("1002")]:[NW_W_PENTAGON],[ternaryToIndex("2100")]:[NE_N_PENTAGON],[ternaryToIndex("0210")]:[SE_E_PENTAGON],[ternaryToIndex("0021")]:[SW_S_PENTAGON],[ternaryToIndex("1220")]:[NW_W_PENTAGON],[ternaryToIndex("0122")]:[NE_N_PENTAGON],[ternaryToIndex("2012")]:[SE_E_PENTAGON],[ternaryToIndex("2201")]:[SW_S_PENTAGON],[ternaryToIndex("0211")]:[S_HEXAGON],[ternaryToIndex("2110")]:[E_HEXAGON],[ternaryToIndex("1102")]:[N_HEXAGON],[ternaryToIndex("1021")]:[W_HEXAGON],[ternaryToIndex("2011")]:[S_HEXAGON],[ternaryToIndex("0112")]:[E_HEXAGON],[ternaryToIndex("1120")]:[N_HEXAGON],[ternaryToIndex("1201")]:[W_HEXAGON],[ternaryToIndex("2101")]:[SW_NE_HEXAGON],[ternaryToIndex("0121")]:[SW_NE_HEXAGON],[ternaryToIndex("1012")]:[NW_SE_HEXAGON],[ternaryToIndex("1210")]:[NW_SE_HEXAGON],[ternaryToIndex("0101")]:{0:[SW_TRIANGLE,NE_TRIANGLE],1:[SW_NE_HEXAGON],2:[SW_NE_HEXAGON]},[ternaryToIndex("1010")]:{0:[NW_TRIANGLE,SE_TRIANGLE],1:[NW_SE_HEXAGON],2:[NW_SE_HEXAGON]},[ternaryToIndex("2121")]:{0:[SW_NE_HEXAGON],1:[SW_NE_HEXAGON],2:[SW_TRIANGLE,NE_TRIANGLE]},[ternaryToIndex("1212")]:{0:[NW_SE_HEXAGON],1:[NW_SE_HEXAGON],2:[NW_TRIANGLE,SE_TRIANGLE]},[ternaryToIndex("2120")]:{0:[NE_HEPTAGON],1:[NE_HEPTAGON],2:[SW_TRAPEZOID,NE_TRIANGLE]},[ternaryToIndex("2021")]:{0:[SW_HEPTAGON],1:[SW_HEPTAGON],2:[SW_TRIANGLE,NE_TRAPEZOID]},[ternaryToIndex("1202")]:{0:[NW_HEPTAGON],1:[NW_HEPTAGON],2:[NW_TRIANGLE,SE_TRAPEZOID]},[ternaryToIndex("0212")]:{0:[SE_HEPTAGON],1:[SE_HEPTAGON],2:[SE_TRIANGLE,NW_TRAPEZOID]},[ternaryToIndex("0102")]:{0:[SW_TRAPEZOID,NE_TRIANGLE],1:[NE_HEPTAGON],2:[NE_HEPTAGON]},[ternaryToIndex("0201")]:{0:[SW_TRIANGLE,NE_TRAPEZOID],1:[SW_HEPTAGON],2:[SW_HEPTAGON]},[ternaryToIndex("1020")]:{0:[NW_TRIANGLE,SE_TRAPEZOID],1:[NW_HEPTAGON],2:[NW_HEPTAGON]},[ternaryToIndex("2010")]:{0:[SE_TRIANGLE,NW_TRAPEZOID],1:[SE_HEPTAGON],2:[SE_HEPTAGON]},[ternaryToIndex("2020")]:{0:[NW_TRAPEZOID,SE_TRAPEZOID],1:[OCTAGON],2:[SW_TRAPEZOID,NE_TRAPEZOID]},[ternaryToIndex("0202")]:{0:[NE_TRAPEZOID,SW_TRAPEZOID],1:[OCTAGON],2:[NW_TRAPEZOID,SE_TRAPEZOID]}},CONTOUR_TYPE={ISO_LINES:1,ISO_BANDS:2},DEFAULT_THRESHOLD_DATA={zIndex:0,zOffset:.005};function getVertexCode(weight,threshold){return Array.isArray(threshold)?weight=threshold?1:0}function getCode(opts){const{cellWeights:cellWeights,x:x,y:y,width:width,height:height}=opts;let threshold=opts.threshold;opts.thresholdValue&&(log.Z.deprecated("thresholdValue","threshold")(),threshold=opts.thresholdValue);const isLeftBoundary=x<0,isRightBoundary=x>=width-1,isBottomBoundary=y<0,isTopBoundary=y>=height-1,isBoundary=isLeftBoundary||isRightBoundary||isBottomBoundary||isTopBoundary,weights={},codes={};isLeftBoundary||isTopBoundary?codes.top=0:(weights.top=cellWeights[(y+1)*width+x],codes.top=getVertexCode(weights.top,threshold)),isRightBoundary||isTopBoundary?codes.topRight=0:(weights.topRight=cellWeights[(y+1)*width+x+1],codes.topRight=getVertexCode(weights.topRight,threshold)),isRightBoundary||isBottomBoundary?codes.right=0:(weights.right=cellWeights[y*width+x+1],codes.right=getVertexCode(weights.right,threshold)),isLeftBoundary||isBottomBoundary?codes.current=0:(weights.current=cellWeights[y*width+x],codes.current=getVertexCode(weights.current,threshold));const{top:top,topRight:topRight,right:right,current:current}=codes;let code=-1;Number.isFinite(threshold)&&(code=top<<3|topRight<<2|right<<1|current),Array.isArray(threshold)&&(code=top<<6|topRight<<4|right<<2|current);let meanCode=0;return isBoundary||(meanCode=getVertexCode((weights.top+weights.topRight+weights.right+weights.current)/4,threshold)),{code:code,meanCode:meanCode}}function getVertices(opts){const{gridOrigin:gridOrigin,cellSize:cellSize,x:x,y:y,code:code,meanCode:meanCode,type:type=CONTOUR_TYPE.ISO_LINES}=opts,thresholdData={...DEFAULT_THRESHOLD_DATA,...opts.thresholdData};let offsets=type===CONTOUR_TYPE.ISO_BANDS?ISOBANDS_CODE_OFFSET_MAP[code]:ISOLINES_CODE_OFFSET_MAP[code];Array.isArray(offsets)||(offsets=offsets[meanCode]);const vZ=thresholdData.zIndex*thresholdData.zOffset,rX=(x+1)*cellSize[0],rY=(y+1)*cellSize[1],refVertexX=gridOrigin[0]+rX,refVertexY=gridOrigin[1]+rY;if(type===CONTOUR_TYPE.ISO_BANDS){const polygons=[];return offsets.forEach((polygonOffsets=>{const polygon=[];polygonOffsets.forEach((xyOffset=>{const vX=refVertexX+xyOffset[0]*cellSize[0],vY=refVertexY+xyOffset[1]*cellSize[1];polygon.push([vX,vY,vZ])})),polygons.push(polygon)})),polygons}const lines=[];return offsets.forEach((xyOffsets=>{xyOffsets.forEach((offset=>{const vX=refVertexX+offset[0]*cellSize[0],vY=refVertexY+offset[1]*cellSize[1];lines.push([vX,vY,vZ])}))})),lines}const DEFAULT_COLOR=[255,255,255,255],contour_layer_defaultProps={cellSize:{type:"number",min:1,max:1e3,value:1e3},getPosition:{type:"accessor",value:x=>x.position},getWeight:{type:"accessor",value:1},gpuAggregation:!0,aggregation:"SUM",contours:{type:"object",value:[{threshold:1}],optional:!0,compare:3},zOffset:.005},contour_layer_DIMENSIONS={data:{props:["cellSize"]},weights:{props:["aggregation"],accessors:["getWeight"]}};class ContourLayer extends GridAggregationLayer{initializeState(){super.initializeAggregationLayer({dimensions:contour_layer_DIMENSIONS}),this.setState({contourData:{},projectPoints:!1,weights:{count:{size:1,operation:AGGREGATION_OPERATION.SUM}}});this.getAttributeManager().add({positions:{size:3,accessor:"getPosition",type:5130,fp64:this.use64bitPositions()},count:{size:3,accessor:"getWeight"}})}updateState(opts){super.updateState(opts);let contoursChanged=!1;const{oldProps:oldProps,props:props}=opts,{aggregationDirty:aggregationDirty}=this.state;oldProps.contours===props.contours&&oldProps.zOffset===props.zOffset||(contoursChanged=!0,this._updateThresholdData(opts.props)),this.getNumInstances()>0&&(aggregationDirty||contoursChanged)&&this._generateContours()}renderLayers(){const{contourSegments:contourSegments,contourPolygons:contourPolygons}=this.state.contourData,LinesSubLayerClass=this.getSubLayerClass("lines",line_layer.Z),BandsSubLayerClass=this.getSubLayerClass("bands",solid_polygon_layer.Z);return[contourSegments&&contourSegments.length>0&&new LinesSubLayerClass(this.getSubLayerProps({id:"lines"}),{data:this.state.contourData.contourSegments,getSourcePosition:d=>d.start,getTargetPosition:d=>d.end,getColor:d=>d.contour.color||DEFAULT_COLOR,getWidth:d=>d.contour.strokeWidth||1}),contourPolygons&&contourPolygons.length>0&&new BandsSubLayerClass(this.getSubLayerProps({id:"bands"}),{data:this.state.contourData.contourPolygons,getPolygon:d=>d.vertices,getFillColor:d=>d.contour.color||DEFAULT_COLOR})]}updateAggregationState(opts){const{props:props,oldProps:oldProps}=opts,{cellSize:cellSize,coordinateSystem:coordinateSystem}=props,{viewport:viewport}=this.context,cellSizeChanged=oldProps.cellSize!==cellSize;let gpuAggregation=props.gpuAggregation;this.state.gpuAggregation!==props.gpuAggregation&&gpuAggregation&&!GPUGridAggregator.isSupported(this.context.gl)&&(log.Z.warn("GPU Grid Aggregation not supported, falling back to CPU")(),gpuAggregation=!1);const gpuAggregationChanged=gpuAggregation!==this.state.gpuAggregation;this.setState({gpuAggregation:gpuAggregation});const{dimensions:dimensions}=this.state,positionsChanged=this.isAttributeChanged("positions"),{data:data,weights:weights}=dimensions;let{boundingBox:boundingBox}=this.state;if(positionsChanged&&(boundingBox=getBoundingBox(this.getAttributes(),this.getNumInstances()),this.setState({boundingBox:boundingBox})),positionsChanged||cellSizeChanged){const{gridOffset:gridOffset,translation:translation,width:width,height:height,numCol:numCol,numRow:numRow}=getGridParams(boundingBox,cellSize,viewport,coordinateSystem);this.allocateResources(numRow,numCol),this.setState({gridOffset:gridOffset,boundingBox:boundingBox,translation:translation,posOffset:translation.slice(),gridOrigin:[-1*translation[0],-1*translation[1]],width:width,height:height,numCol:numCol,numRow:numRow})}const aggregationDataDirty=positionsChanged||gpuAggregationChanged||this.isAggregationDirty(opts,{dimension:data,compareAll:gpuAggregation}),aggregationWeightsDirty=this.isAggregationDirty(opts,{dimension:weights});aggregationWeightsDirty&&this._updateAccessors(opts),(aggregationDataDirty||aggregationWeightsDirty)&&this._resetResults(),this.setState({aggregationDataDirty:aggregationDataDirty,aggregationWeightsDirty:aggregationWeightsDirty})}_updateAccessors(opts){const{getWeight:getWeight,aggregation:aggregation,data:data}=opts.props,{count:count}=this.state.weights;count&&(count.getWeight=getWeight,count.operation=AGGREGATION_OPERATION[aggregation]),this.setState({getValue:getValueFunc(aggregation,getWeight,{data:data})})}_resetResults(){const{count:count}=this.state.weights;count&&(count.aggregationData=null)}_generateContours(){const{numCol:numCol,numRow:numRow,gridOrigin:gridOrigin,gridOffset:gridOffset,thresholdData:thresholdData}=this.state,{count:count}=this.state.weights;let{aggregationData:aggregationData}=count;aggregationData||(aggregationData=count.aggregationBuffer.getData(),count.aggregationData=aggregationData);const{cellWeights:cellWeights}=GPUGridAggregator.getCellData({countsData:aggregationData}),contourData=function generateContours({thresholdData:thresholdData,cellWeights:cellWeights,gridSize:gridSize,gridOrigin:gridOrigin,cellSize:cellSize}){const contourSegments=[],contourPolygons=[],width=gridSize[0],height=gridSize[1];let segmentIndex=0,polygonIndex=0;for(const data of thresholdData){const{contour:contour}=data,{threshold:threshold}=contour;for(let x=-1;x= (domain.x - EPSILON) && value <= (domain.y + EPSILON)) {\n float domainRange = domain.y - domain.x;\n if (domainRange <= 0.) {\n outColor = colorRange[0];\n } else {\n float rangeCount = float(RANGE_COUNT);\n float rangeStep = domainRange / rangeCount;\n float idx = floor((value - domain.x) / rangeStep);\n idx = clamp(idx, 0., rangeCount - 1.);\n int intIdx = int(idx);\n outColor = colorRange[intIdx];\n }\n }\n return outColor;\n}\n\nfloat linearScale(vec2 domain, vec2 range, float value) {\n if (value >= (domain.x - EPSILON) && value <= (domain.y + EPSILON)) {\n return ((value - domain.x) / (domain.y - domain.x)) * (range.y - range.x) + range.x;\n }\n return -1.;\n}\n\nvoid main(void) {\n vec2 clrDomain = colorDomainValid ? colorDomain : vec2(colorData.maxMinCount.a, colorData.maxMinCount.r);\n vec4 color = quantizeScale(clrDomain, colorRange, colors.r);\n\n float elevation = 0.0;\n\n if (extruded) {\n vec2 elvDomain = elevationDomainValid ? elevationDomain : vec2(elevationData.maxMinCount.a, elevationData.maxMinCount.r);\n elevation = linearScale(elvDomain, elevationRange, elevations.r);\n elevation = elevation * (positions.z + 1.0) / 2.0 * elevationScale;\n }\n float shouldRender = float(color.r > 0.0 && elevations.r >= 0.0);\n float dotRadius = cellSize / 2. * coverage * shouldRender;\n\n int yIndex = (gl_InstanceID / gridSize[0]);\n int xIndex = gl_InstanceID - (yIndex * gridSize[0]);\n\n vec2 instancePositionXFP64 = mul_fp64(vec2(gridOffset[0], gridOffsetLow[0]), vec2(float(xIndex), 0.));\n instancePositionXFP64 = sum_fp64(instancePositionXFP64, vec2(gridOrigin[0], gridOriginLow[0]));\n vec2 instancePositionYFP64 = mul_fp64(vec2(gridOffset[1], gridOffsetLow[1]), vec2(float(yIndex), 0.));\n instancePositionYFP64 = sum_fp64(instancePositionYFP64, vec2(gridOrigin[1], gridOriginLow[1]));\n\n vec3 centroidPosition = vec3(instancePositionXFP64[0], instancePositionYFP64[0], elevation);\n vec3 centroidPosition64Low = vec3(instancePositionXFP64[1], instancePositionYFP64[1], 0.0);\n geometry.worldPosition = centroidPosition;\n vec3 pos = vec3(project_size(positions.xy + offset) * dotRadius, 0.);\n picking_setPickingColor(instancePickingColors);\n\n gl_Position = project_position_to_clipspace(centroidPosition, centroidPosition64Low, pos, geometry.position);\n\n vec3 normals_commonspace = project_normal(normals);\n\n if (extruded) {\n vec3 lightColor = lighting_getLightColor(color.rgb, project_uCameraPosition, geometry.position.xyz, normals_commonspace);\n vColor = vec4(lightColor, color.a * opacity) / 255.;\n } else {\n vColor = vec4(color.rgb, color.a * opacity) / 255.;\n }\n}\n",fs:"#version 300 es\n#define SHADER_NAME gpu-grid-cell-layer-fragment-shader\n\nprecision highp float;\n\nin vec4 vColor;\n\nout vec4 fragColor;\n\nvoid main(void) {\n fragColor = vColor;\n fragColor = picking_filterColor(fragColor);\n}\n",modules:[project32.Z,phong_lighting.N,picking.Z,fp64.n2]})}initializeState({gl:gl}){this.getAttributeManager().addInstanced({colors:{size:4,noAlloc:!0},elevations:{size:4,noAlloc:!0}});const model=this._getModel(gl);this._setupUniformBuffer(model),this.setState({model:model})}_getModel(gl){return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new cube_geometry.Z,isInstanced:!0})}draw({uniforms:uniforms}){const{cellSize:cellSize,offset:offset,extruded:extruded,elevationScale:elevationScale,coverage:coverage,gridSize:gridSize,gridOrigin:gridOrigin,gridOffset:gridOffset,elevationRange:elevationRange,colorMaxMinBuffer:colorMaxMinBuffer,elevationMaxMinBuffer:elevationMaxMinBuffer}=this.props,gridOriginLow=[(0,math_utils.Ks)(gridOrigin[0]),(0,math_utils.Ks)(gridOrigin[1])],gridOffsetLow=[(0,math_utils.Ks)(gridOffset[0]),(0,math_utils.Ks)(gridOffset[1])],domainUniforms=this.getDomainUniforms(),colorRange=colorRangeToFlatArray(this.props.colorRange);this.bindUniformBuffers(colorMaxMinBuffer,elevationMaxMinBuffer),this.state.model.setUniforms(uniforms).setUniforms(domainUniforms).setUniforms({cellSize:cellSize,offset:offset,extruded:extruded,elevationScale:elevationScale,coverage:coverage,gridSize:gridSize,gridOrigin:gridOrigin,gridOriginLow:gridOriginLow,gridOffset:gridOffset,gridOffsetLow:gridOffsetLow,colorRange:colorRange,elevationRange:elevationRange}).draw(),this.unbindUniformBuffers(colorMaxMinBuffer,elevationMaxMinBuffer)}bindUniformBuffers(colorMaxMinBuffer,elevationMaxMinBuffer){colorMaxMinBuffer.bind({target:35345,index:0}),elevationMaxMinBuffer.bind({target:35345,index:1})}unbindUniformBuffers(colorMaxMinBuffer,elevationMaxMinBuffer){colorMaxMinBuffer.unbind({target:35345,index:0}),elevationMaxMinBuffer.unbind({target:35345,index:1})}getDomainUniforms(){const{colorDomain:colorDomain,elevationDomain:elevationDomain}=this.props,domainUniforms={};return null!==colorDomain?(domainUniforms.colorDomainValid=!0,domainUniforms.colorDomain=colorDomain):domainUniforms.colorDomainValid=!1,null!==elevationDomain?(domainUniforms.elevationDomainValid=!0,domainUniforms.elevationDomain=elevationDomain):domainUniforms.elevationDomainValid=!1,domainUniforms}_setupUniformBuffer(model){const gl=this.context.gl,programHandle=model.program.handle,colorIndex=gl.getUniformBlockIndex(programHandle,"ColorData"),elevationIndex=gl.getUniformBlockIndex(programHandle,"ElevationData");gl.uniformBlockBinding(programHandle,colorIndex,0),gl.uniformBlockBinding(programHandle,elevationIndex,1)}}(0,defineProperty.Z)(GPUGridCellLayer,"layerName","GPUGridCellLayer"),(0,defineProperty.Z)(GPUGridCellLayer,"defaultProps",gpu_grid_cell_layer_defaultProps);const gpu_grid_layer_defaultProps={colorDomain:null,colorRange:defaultColorRange,getColorWeight:{type:"accessor",value:1},colorAggregation:"SUM",elevationDomain:null,elevationRange:[0,1e3],getElevationWeight:{type:"accessor",value:1},elevationAggregation:"SUM",elevationScale:{type:"number",min:0,value:1},cellSize:{type:"number",min:1,max:1e3,value:1e3},coverage:{type:"number",min:0,max:1,value:1},getPosition:{type:"accessor",value:x=>x.position},extruded:!1,material:!0},gpu_grid_layer_DIMENSIONS={data:{props:["cellSize","colorAggregation","elevationAggregation"]}};class GPUGridLayer extends GridAggregationLayer{initializeState({gl:gl}){const isSupported=GPUGridAggregator.isSupported(gl);isSupported||log.Z.error("GPUGridLayer is not supported on this browser, use GridLayer instead")(),super.initializeAggregationLayer({dimensions:gpu_grid_layer_DIMENSIONS}),this.setState({gpuAggregation:!0,projectPoints:!1,isSupported:isSupported,weights:{color:{needMin:!0,needMax:!0,combineMaxMin:!0,maxMinBuffer:new buffer.Z(gl,{byteLength:16,accessor:{size:4,type:5126,divisor:1}})},elevation:{needMin:!0,needMax:!0,combineMaxMin:!0,maxMinBuffer:new buffer.Z(gl,{byteLength:16,accessor:{size:4,type:5126,divisor:1}})}},positionAttributeName:"positions"});this.getAttributeManager().add({positions:{size:3,accessor:"getPosition",type:5130,fp64:this.use64bitPositions()},color:{size:3,accessor:"getColorWeight"},elevation:{size:3,accessor:"getElevationWeight"}})}updateState(opts){if(!1===this.state.isSupported)return;super.updateState(opts);const{aggregationDirty:aggregationDirty}=this.state;aggregationDirty&&this.setState({gridHash:null})}getHashKeyForIndex(index){const{numRow:numRow,numCol:numCol,boundingBox:boundingBox,gridOffset:gridOffset}=this.state,gridSize=[numCol,numRow],gridOrigin=[boundingBox.xMin,boundingBox.yMin],cellSize=[gridOffset.xOffset,gridOffset.yOffset],yIndex=Math.floor(index/gridSize[0]),xIndex=index-yIndex*gridSize[0],latIdx=Math.floor((yIndex*cellSize[1]+gridOrigin[1]+90+cellSize[1]/2)/cellSize[1]),lonIdx=Math.floor((xIndex*cellSize[0]+gridOrigin[0]+180+cellSize[0]/2)/cellSize[0]);return"".concat(latIdx,"-").concat(lonIdx)}getPositionForIndex(index){const{numRow:numRow,numCol:numCol,boundingBox:boundingBox,gridOffset:gridOffset}=this.state,gridSize=[numCol,numRow],gridOrigin=[boundingBox.xMin,boundingBox.yMin],cellSize=[gridOffset.xOffset,gridOffset.yOffset],yIndex=Math.floor(index/gridSize[0]);return[(index-yIndex*gridSize[0])*cellSize[0]+gridOrigin[0],yIndex*cellSize[1]+gridOrigin[1]]}getPickingInfo({info:info,mode:mode}){const{index:index}=info;let object=null;if(index>=0){const{gpuGridAggregator:gpuGridAggregator}=this.state,position=this.getPositionForIndex(index),colorInfo=GPUGridAggregator.getAggregationData({pixelIndex:index,...gpuGridAggregator.getData("color")}),elevationInfo=GPUGridAggregator.getAggregationData({pixelIndex:index,...gpuGridAggregator.getData("elevation")});if(object={colorValue:colorInfo.cellWeight,elevationValue:elevationInfo.cellWeight,count:colorInfo.cellCount||elevationInfo.cellCount,position:position,totalCount:colorInfo.totalCount||elevationInfo.totalCount},"hover"!==mode){const{props:props}=this;let{gridHash:gridHash}=this.state;if(!gridHash){const{gridOffset:gridOffset,translation:translation,boundingBox:boundingBox}=this.state,{viewport:viewport}=this.context;gridHash=pointToDensityGridDataCPU(props,{gridOffset:gridOffset,attributes:this.getAttributes(),viewport:viewport,translation:translation,boundingBox:boundingBox}).gridHash,this.setState({gridHash:gridHash})}const cpuAggregationData=gridHash[this.getHashKeyForIndex(index)];Object.assign(object,cpuAggregationData)}}return info.picked=Boolean(object),info.object=object,info}renderLayers(){if(!this.state.isSupported)return null;const{elevationScale:elevationScale,extruded:extruded,cellSize:cellSizeMeters,coverage:coverage,material:material,elevationRange:elevationRange,colorDomain:colorDomain,elevationDomain:elevationDomain}=this.props,{weights:weights,numRow:numRow,numCol:numCol,gridOrigin:gridOrigin,gridOffset:gridOffset}=this.state,{color:color,elevation:elevation}=weights,colorRange=colorRangeToFlatArray(this.props.colorRange);return new(this.getSubLayerClass("gpu-grid-cell",GPUGridCellLayer))({gridSize:[numCol,numRow],gridOrigin:gridOrigin,gridOffset:[gridOffset.xOffset,gridOffset.yOffset],colorRange:colorRange,elevationRange:elevationRange,colorDomain:colorDomain,elevationDomain:elevationDomain,cellSize:cellSizeMeters,coverage:coverage,material:material,elevationScale:elevationScale,extruded:extruded},this.getSubLayerProps({id:"gpu-grid-cell"}),{data:{attributes:{colors:color.aggregationBuffer,elevations:elevation.aggregationBuffer}},colorMaxMinBuffer:color.maxMinBuffer,elevationMaxMinBuffer:elevation.maxMinBuffer,numInstances:numCol*numRow})}finalizeState(context){const{color:color,elevation:elevation}=this.state.weights;[color,elevation].forEach((weight=>{const{aggregationBuffer:aggregationBuffer,maxMinBuffer:maxMinBuffer}=weight;maxMinBuffer.delete(),null==aggregationBuffer||aggregationBuffer.delete()})),super.finalizeState(context)}updateAggregationState(opts){const{props:props,oldProps:oldProps}=opts,{cellSize:cellSize,coordinateSystem:coordinateSystem}=props,{viewport:viewport}=this.context,cellSizeChanged=oldProps.cellSize!==cellSize,{dimensions:dimensions}=this.state,positionsChanged=this.isAttributeChanged("positions"),attributesChanged=positionsChanged||this.isAttributeChanged();let{boundingBox:boundingBox}=this.state;if(positionsChanged&&(boundingBox=getBoundingBox(this.getAttributes(),this.getNumInstances()),this.setState({boundingBox:boundingBox})),positionsChanged||cellSizeChanged){const{gridOffset:gridOffset,translation:translation,width:width,height:height,numCol:numCol,numRow:numRow}=getGridParams(boundingBox,cellSize,viewport,coordinateSystem);this.allocateResources(numRow,numCol),this.setState({gridOffset:gridOffset,translation:translation,gridOrigin:[-1*translation[0],-1*translation[1]],width:width,height:height,numCol:numCol,numRow:numRow})}const aggregationDataDirty=attributesChanged||this.isAggregationDirty(opts,{dimension:dimensions.data,compareAll:!0});aggregationDataDirty&&this._updateAccessors(opts),this.setState({aggregationDataDirty:aggregationDataDirty})}_updateAccessors(opts){const{colorAggregation:colorAggregation,elevationAggregation:elevationAggregation}=opts.props,{color:color,elevation:elevation}=this.state.weights;color.operation=AGGREGATION_OPERATION[colorAggregation],elevation.operation=AGGREGATION_OPERATION[elevationAggregation]}}(0,defineProperty.Z)(GPUGridLayer,"layerName","GPUGridLayer"),(0,defineProperty.Z)(GPUGridLayer,"defaultProps",gpu_grid_layer_defaultProps);const grid_layer_defaultProps={...GPUGridLayer.defaultProps,...CPUGridLayer.defaultProps,gpuAggregation:!1};class GridLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){this.state={useGPUAggregation:!0}}updateState({props:props}){this.setState({useGPUAggregation:this.canUseGPUAggregation(props)})}renderLayers(){const{data:data,updateTriggers:updateTriggers}=this.props,id=this.state.useGPUAggregation?"GPU":"CPU";return new(this.state.useGPUAggregation?this.getSubLayerClass("GPU",GPUGridLayer):this.getSubLayerClass("CPU",CPUGridLayer))(this.props,this.getSubLayerProps({id:id,updateTriggers:updateTriggers}),{data:data})}canUseGPUAggregation(props){const{gpuAggregation:gpuAggregation,lowerPercentile:lowerPercentile,upperPercentile:upperPercentile,getColorValue:getColorValue,getElevationValue:getElevationValue,colorScaleType:colorScaleType}=props;return!!gpuAggregation&&(!!GPUGridAggregator.isSupported(this.context.gl)&&(0===lowerPercentile&&100===upperPercentile&&(null===getColorValue&&null===getElevationValue&&("quantile"!==colorScaleType&&"ordinal"!==colorScaleType))))}}(0,defineProperty.Z)(GridLayer,"layerName","GridLayer"),(0,defineProperty.Z)(GridLayer,"defaultProps",grid_layer_defaultProps);const scratchArray=new Float32Array(12);function packVertices(points,dimensions=2){let index=0;for(const point of points)for(let i=0;i 0.) {\n maxValue = colorDomain[1];\n minValue = colorDomain[0];\n }\n vIntensityMax = intensity / maxValue;\n vIntensityMin = intensity / minValue;\n}\n",fs:"#define SHADER_NAME triangle-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D texture;\nuniform sampler2D colorTexture;\nuniform float aggregationMode;\n\nvarying vec2 vTexCoords;\nvarying float vIntensityMin;\nvarying float vIntensityMax;\n\nvec4 getLinearColor(float value) {\n float factor = clamp(value * vIntensityMax, 0., 1.);\n vec4 color = texture2D(colorTexture, vec2(factor, 0.5));\n color.a *= min(value * vIntensityMin, 1.0);\n return color;\n}\n\nvoid main(void) {\n vec4 weights = texture2D(texture, vTexCoords);\n float weight = weights.r;\n\n if (aggregationMode > 0.5) {\n weight /= max(1.0, weights.a);\n }\n if (weight <= 0.) {\n discard;\n }\n\n vec4 linearColor = getLinearColor(weight);\n linearColor.a *= opacity;\n gl_FragColor =linearColor;\n}\n",modules:[project32.Z]}}initializeState({gl:gl}){this.getAttributeManager().add({positions:{size:3,noAlloc:!0},texCoords:{size:2,noAlloc:!0}}),this.setState({model:this._getModel(gl)})}_getModel(gl){const{vertexCount:vertexCount}=this.props;return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:6,vertexCount:vertexCount})})}draw({uniforms:uniforms}){const{model:model}=this.state,{texture:texture,maxTexture:maxTexture,colorTexture:colorTexture,intensity:intensity,threshold:threshold,aggregationMode:aggregationMode,colorDomain:colorDomain}=this.props;model.setUniforms({...uniforms,texture:texture,maxTexture:maxTexture,colorTexture:colorTexture,intensity:intensity,threshold:threshold,aggregationMode:aggregationMode,colorDomain:colorDomain}).draw()}}(0,defineProperty.Z)(TriangleLayer,"layerName","TriangleLayer");const TEXTURE_OPTIONS={mipmaps:!1,parameters:{10240:9729,10241:9729,10242:33071,10243:33071},dataFormat:6408},DEFAULT_COLOR_DOMAIN=[0,0],AGGREGATION_MODE={SUM:0,MEAN:1},heatmap_layer_defaultProps={getPosition:{type:"accessor",value:x=>x.position},getWeight:{type:"accessor",value:1},intensity:{type:"number",min:0,value:1},radiusPixels:{type:"number",min:1,max:100,value:50},colorRange:defaultColorRange,threshold:{type:"number",min:0,max:1,value:.05},colorDomain:{type:"array",value:null,optional:!0},aggregation:"SUM",weightsTextureSize:{type:"number",min:128,max:2048,value:2048},debounceTimeout:{type:"number",min:0,max:1e3,value:500}},heatmap_layer_REQUIRED_FEATURES=[webgl_features_table.h.BLEND_EQUATION_MINMAX,webgl_features_table.h.TEXTURE_FLOAT],FLOAT_TARGET_FEATURES=[webgl_features_table.h.COLOR_ATTACHMENT_RGBA32F,webgl_features_table.h.FLOAT_BLEND],heatmap_layer_DIMENSIONS={data:{props:["radiusPixels"]}};class HeatmapLayer extends AggregationLayer{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){const{gl:gl}=this.context;if(!(0,features.ag)(gl,heatmap_layer_REQUIRED_FEATURES))return this.setState({supported:!1}),void log.Z.error("HeatmapLayer: ".concat(this.id," is not supported on this browser"))();super.initializeAggregationLayer(heatmap_layer_DIMENSIONS),this.setState({supported:!0,colorDomain:DEFAULT_COLOR_DOMAIN}),this._setupTextureParams(),this._setupAttributes(),this._setupResources()}shouldUpdateState({changeFlags:changeFlags}){return changeFlags.somethingChanged}updateState(opts){this.state.supported&&(super.updateState(opts),this._updateHeatmapState(opts))}_updateHeatmapState(opts){const{props:props,oldProps:oldProps}=opts,changeFlags=this._getChangeFlags(opts);(changeFlags.dataChanged||changeFlags.viewportChanged)&&(changeFlags.boundsChanged=this._updateBounds(changeFlags.dataChanged),this._updateTextureRenderingBounds()),changeFlags.dataChanged||changeFlags.boundsChanged?(clearTimeout(this.state.updateTimer),this.setState({isWeightMapDirty:!0})):changeFlags.viewportZoomChanged&&this._debouncedUpdateWeightmap(),props.colorRange!==oldProps.colorRange&&this._updateColorTexture(opts),this.state.isWeightMapDirty&&this._updateWeightmap(),this.setState({zoom:opts.context.viewport.zoom})}renderLayers(){if(!this.state.supported)return[];const{weightsTexture:weightsTexture,triPositionBuffer:triPositionBuffer,triTexCoordBuffer:triTexCoordBuffer,maxWeightsTexture:maxWeightsTexture,colorTexture:colorTexture,colorDomain:colorDomain}=this.state,{updateTriggers:updateTriggers,intensity:intensity,threshold:threshold,aggregation:aggregation}=this.props;return new(this.getSubLayerClass("triangle",TriangleLayer))(this.getSubLayerProps({id:"triangle-layer",updateTriggers:updateTriggers}),{coordinateSystem:constants.COORDINATE_SYSTEM.DEFAULT,data:{attributes:{positions:triPositionBuffer,texCoords:triTexCoordBuffer}},vertexCount:4,maxTexture:maxWeightsTexture,colorTexture:colorTexture,aggregationMode:AGGREGATION_MODE[aggregation]||0,texture:weightsTexture,intensity:intensity,threshold:threshold,colorDomain:colorDomain})}finalizeState(context){super.finalizeState(context);const{weightsTransform:weightsTransform,weightsTexture:weightsTexture,maxWeightTransform:maxWeightTransform,maxWeightsTexture:maxWeightsTexture,triPositionBuffer:triPositionBuffer,triTexCoordBuffer:triTexCoordBuffer,colorTexture:colorTexture,updateTimer:updateTimer}=this.state;null==weightsTransform||weightsTransform.delete(),null==weightsTexture||weightsTexture.delete(),null==maxWeightTransform||maxWeightTransform.delete(),null==maxWeightsTexture||maxWeightsTexture.delete(),null==triPositionBuffer||triPositionBuffer.delete(),null==triTexCoordBuffer||triTexCoordBuffer.delete(),null==colorTexture||colorTexture.delete(),updateTimer&&clearTimeout(updateTimer)}_getAttributeManager(){return new attribute_manager.Z(this.context.gl,{id:this.props.id,stats:this.context.stats})}_getChangeFlags(opts){const changeFlags={},{dimensions:dimensions}=this.state;changeFlags.dataChanged=this.isAttributeChanged()||this.isAggregationDirty(opts,{compareAll:!0,dimension:dimensions.data}),changeFlags.viewportChanged=opts.changeFlags.viewportChanged;const{zoom:zoom}=this.state;return opts.context.viewport&&opts.context.viewport.zoom===zoom||(changeFlags.viewportZoomChanged=!0),changeFlags}_createTextures(){const{gl:gl}=this.context,{textureSize:textureSize,format:format,type:type}=this.state;this.setState({weightsTexture:new texture_2d.Z(gl,{width:textureSize,height:textureSize,format:format,type:type,...TEXTURE_OPTIONS}),maxWeightsTexture:new texture_2d.Z(gl,{format:format,type:type,...TEXTURE_OPTIONS})})}_setupAttributes(){this.getAttributeManager().add({positions:{size:3,type:5130,accessor:"getPosition"},weights:{size:1,accessor:"getWeight"}}),this.setState({positionAttributeName:"positions"})}_setupTextureParams(){const{gl:gl}=this.context,{weightsTextureSize:weightsTextureSize}=this.props,textureSize=Math.min(weightsTextureSize,(0,esm.ZS)(gl,3379)),floatTargetSupport=(0,features.ag)(gl,FLOAT_TARGET_FEATURES),{format:format,type:type}=function getTextureParams({gl:gl,floatTargetSupport:floatTargetSupport}){return floatTargetSupport?{format:(0,esm.D0)(gl)?34836:6408,type:5126}:{format:6408,type:5121}}({gl:gl,floatTargetSupport:floatTargetSupport}),weightsScale=floatTargetSupport?1:1/255;this.setState({textureSize:textureSize,format:format,type:type,weightsScale:weightsScale}),floatTargetSupport||log.Z.warn("HeatmapLayer: ".concat(this.id," rendering to float texture not supported, fallingback to low precession format"))()}getShaders(type){return super.getShaders("max-weights-transform"===type?{vs:"attribute vec4 inTexture;\nvarying vec4 outTexture;\n\nvoid main()\n{\noutTexture = inTexture;\ngl_Position = vec4(0, 0, 0, 1.);\ngl_PointSize = 1.0;\n}\n",_fs:"varying vec4 outTexture;\nvoid main() {\n gl_FragColor = outTexture;\n gl_FragColor.g = outTexture.r / max(1.0, outTexture.a);\n}\n"}:{vs:"attribute vec3 positions;\nattribute vec3 positions64Low;\nattribute float weights;\nvarying vec4 weightsTexture;\nuniform float radiusPixels;\nuniform float textureWidth;\nuniform vec4 commonBounds;\nuniform float weightsScale;\nvoid main()\n{\n weightsTexture = vec4(weights * weightsScale, 0., 0., 1.);\n\n float radiusTexels = project_pixel_size(radiusPixels) * textureWidth / (commonBounds.z - commonBounds.x);\n gl_PointSize = radiusTexels * 2.;\n\n vec3 commonPosition = project_position(positions, positions64Low);\n gl_Position.xy = (commonPosition.xy - commonBounds.xy) / (commonBounds.zw - commonBounds.xy) ;\n gl_Position.xy = (gl_Position.xy * 2.) - (1.);\n}\n",_fs:"varying vec4 weightsTexture;\nfloat gaussianKDE(float u){\n return pow(2.71828, -u*u/0.05555)/(1.77245385*0.166666);\n}\nvoid main()\n{\n float dist = length(gl_PointCoord - vec2(0.5, 0.5));\n if (dist > 0.5) {\n discard;\n }\n gl_FragColor = weightsTexture * gaussianKDE(2. * dist);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n"})}_createWeightsTransform(shaders={}){var _weightsTransform;const{gl:gl}=this.context;let{weightsTransform:weightsTransform}=this.state;const{weightsTexture:weightsTexture}=this.state;null===(_weightsTransform=weightsTransform)||void 0===_weightsTransform||_weightsTransform.delete(),weightsTransform=new transform.Z(gl,{id:"".concat(this.id,"-weights-transform"),elementCount:1,_targetTexture:weightsTexture,_targetTextureVarying:"weightsTexture",...shaders}),this.setState({weightsTransform:weightsTransform})}_setupResources(){const{gl:gl}=this.context;this._createTextures();const{textureSize:textureSize,weightsTexture:weightsTexture,maxWeightsTexture:maxWeightsTexture}=this.state,weightsTransformShaders=this.getShaders("weights-transform");this._createWeightsTransform(weightsTransformShaders);const maxWeightsTransformShaders=this.getShaders("max-weights-transform"),maxWeightTransform=new transform.Z(gl,{id:"".concat(this.id,"-max-weights-transform"),_sourceTextures:{inTexture:weightsTexture},_targetTexture:maxWeightsTexture,_targetTextureVarying:"outTexture",...maxWeightsTransformShaders,elementCount:textureSize*textureSize});this.setState({weightsTexture:weightsTexture,maxWeightsTexture:maxWeightsTexture,maxWeightTransform:maxWeightTransform,zoom:null,triPositionBuffer:new buffer.Z(gl,{byteLength:48,accessor:{size:3}}),triTexCoordBuffer:new buffer.Z(gl,{byteLength:48,accessor:{size:2}})})}updateShaders(shaderOptions){this._createWeightsTransform(shaderOptions)}_updateMaxWeightValue(){const{maxWeightTransform:maxWeightTransform}=this.state;maxWeightTransform.run({parameters:{blend:!0,depthTest:!1,blendFunc:[1,1],blendEquation:32776}})}_updateBounds(forceUpdate=!1){const{viewport:viewport}=this.context,viewportCorners=[viewport.unproject([0,0]),viewport.unproject([viewport.width,0]),viewport.unproject([viewport.width,viewport.height]),viewport.unproject([0,viewport.height])].map((p=>p.map(Math.fround))),visibleWorldBounds=function getBounds(points){const x=points.map((p=>p[0])),y=points.map((p=>p[1])),xMin=Math.min.apply(null,x),xMax=Math.max.apply(null,x);return[xMin,Math.min.apply(null,y),xMax,Math.max.apply(null,y)]}(viewportCorners),newState={visibleWorldBounds:visibleWorldBounds,viewportCorners:viewportCorners};let boundsChanged=!1;if(forceUpdate||!this.state.worldBounds||!function boundsContain(currentBounds,targetBounds){return targetBounds[0]>=currentBounds[0]&&targetBounds[2]<=currentBounds[2]&&targetBounds[1]>=currentBounds[1]&&targetBounds[3]<=currentBounds[3]}(this.state.worldBounds,visibleWorldBounds)){const scaledCommonBounds=this._worldToCommonBounds(visibleWorldBounds),worldBounds=this._commonToWorldBounds(scaledCommonBounds);this.props.coordinateSystem===constants.COORDINATE_SYSTEM.LNGLAT&&(worldBounds[1]=Math.max(worldBounds[1],-85.051129),worldBounds[3]=Math.min(worldBounds[3],85.051129),worldBounds[0]=Math.max(worldBounds[0],-360),worldBounds[2]=Math.min(worldBounds[2],360));const normalizedCommonBounds=this._worldToCommonBounds(worldBounds);newState.worldBounds=worldBounds,newState.normalizedCommonBounds=normalizedCommonBounds,boundsChanged=!0}return this.setState(newState),boundsChanged}_updateTextureRenderingBounds(){const{triPositionBuffer:triPositionBuffer,triTexCoordBuffer:triTexCoordBuffer,normalizedCommonBounds:normalizedCommonBounds,viewportCorners:viewportCorners}=this.state,{viewport:viewport}=this.context;triPositionBuffer.subData(packVertices(viewportCorners,3));const textureBounds=viewportCorners.map((p=>function getTextureCoordinates(point,bounds){const[xMin,yMin,xMax,yMax]=bounds;return[(point[0]-xMin)/(xMax-xMin),(point[1]-yMin)/(yMax-yMin)]}(viewport.projectPosition(p),normalizedCommonBounds)));triTexCoordBuffer.subData(packVertices(textureBounds,2))}_updateColorTexture(opts){const{colorRange:colorRange}=opts.props;let{colorTexture:colorTexture}=this.state;const colors=colorRangeToFlatArray(colorRange,!1,Uint8Array);colorTexture?colorTexture.setImageData({data:colors,width:colorRange.length}):colorTexture=new texture_2d.Z(this.context.gl,{data:colors,width:colorRange.length,height:1,...TEXTURE_OPTIONS}),this.setState({colorTexture:colorTexture})}_updateWeightmap(){const{radiusPixels:radiusPixels,colorDomain:colorDomain,aggregation:aggregation}=this.props,{weightsTransform:weightsTransform,worldBounds:worldBounds,textureSize:textureSize,weightsTexture:weightsTexture,weightsScale:weightsScale}=this.state;this.state.isWeightMapDirty=!1;const commonBounds=this._worldToCommonBounds(worldBounds,{useLayerCoordinateSystem:!0});if(colorDomain&&"SUM"===aggregation){const{viewport:viewport}=this.context,metersPerPixel=viewport.distanceScales.metersPerUnit[2]*(commonBounds[2]-commonBounds[0])/textureSize;this.state.colorDomain=colorDomain.map((x=>x*metersPerPixel*weightsScale))}else this.state.colorDomain=colorDomain||DEFAULT_COLOR_DOMAIN;const uniforms={radiusPixels:radiusPixels,commonBounds:commonBounds,textureWidth:textureSize,weightsScale:weightsScale};weightsTransform.update({elementCount:this.getNumInstances()}),(0,esm.s8)(this.context.gl,{clearColor:[0,0,0,0]},(()=>{weightsTransform.run({uniforms:uniforms,parameters:{blend:!0,depthTest:!1,blendFunc:[1,1],blendEquation:32774},clearRenderTarget:!0,attributes:this.getAttributes(),moduleSettings:this.getModuleSettings()})})),this._updateMaxWeightValue(),weightsTexture.setParameters({10240:9729,10241:9729})}_debouncedUpdateWeightmap(fromTimer=!1){let{updateTimer:updateTimer}=this.state;const{debounceTimeout:debounceTimeout}=this.props;fromTimer?(updateTimer=null,this._updateBounds(!0),this._updateTextureRenderingBounds(),this.setState({isWeightMapDirty:!0})):(this.setState({isWeightMapDirty:!1}),clearTimeout(updateTimer),updateTimer=setTimeout(this._debouncedUpdateWeightmap.bind(this,!0),debounceTimeout)),this.setState({updateTimer:updateTimer})}_worldToCommonBounds(worldBounds,opts={}){const{useLayerCoordinateSystem:useLayerCoordinateSystem=!1}=opts,[minLong,minLat,maxLong,maxLat]=worldBounds,{viewport:viewport}=this.context,{textureSize:textureSize}=this.state,{coordinateSystem:coordinateSystem}=this.props,offsetMode=useLayerCoordinateSystem&&(coordinateSystem===constants.COORDINATE_SYSTEM.LNGLAT_OFFSETS||coordinateSystem===constants.COORDINATE_SYSTEM.METER_OFFSETS),offsetOriginCommon=offsetMode?viewport.projectPosition(this.props.coordinateOrigin):[0,0],size=2*textureSize/viewport.scale;let bottomLeftCommon,topRightCommon;return useLayerCoordinateSystem&&!offsetMode?(bottomLeftCommon=this.projectPosition([minLong,minLat,0]),topRightCommon=this.projectPosition([maxLong,maxLat,0])):(bottomLeftCommon=viewport.projectPosition([minLong,minLat,0]),topRightCommon=viewport.projectPosition([maxLong,maxLat,0])),function scaleToAspectRatio(boundingBox,width,height){const[xMin,yMin,xMax,yMax]=boundingBox,currentWidth=xMax-xMin,currentHeight=yMax-yMin;let newWidth=currentWidth,newHeight=currentHeight;currentWidth/currentHeight180&&(props.bearing=bearing<0?bearing+360:bearing-360),null!==longitude&&null!==fromProps.longitude&&Math.abs(longitude-fromProps.longitude)>180&&(props.longitude=longitude<0?longitude+360:longitude-360),props}_move(direction,speed,fromPosition=this.getViewportProps().position){const delta=direction.scale(speed);return this._getUpdatedState({position:new _math_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z(fromPosition).add(delta)})}getDirection(use2D=!1){return new _math_gl_core__WEBPACK_IMPORTED_MODULE_2__.Z({bearing:this.getViewportProps().bearing,pitch:use2D?90:90+this.getViewportProps().pitch}).toVector3().normalize()}_getUpdatedState(newProps){return new FirstPersonState({...this.getViewportProps(),...this.getState(),...newProps})}applyConstraints(props){const{pitch:pitch,maxPitch:maxPitch,minPitch:minPitch,longitude:longitude,bearing:bearing}=props;return props.pitch=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_3__.uZ)(pitch,minPitch,maxPitch),null!==longitude&&(longitude<-180||longitude>180)&&(props.longitude=(0,_utils_math_utils__WEBPACK_IMPORTED_MODULE_4__.wQ)(longitude+180,360)-180),(bearing<-180||bearing>180)&&(props.bearing=(0,_utils_math_utils__WEBPACK_IMPORTED_MODULE_4__.wQ)(bearing+180,360)-180),props}}class FirstPersonController extends _controller__WEBPACK_IMPORTED_MODULE_5__.Z{constructor(...args){super(...args),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__.Z)(this,"ControllerState",FirstPersonState),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new _transitions_linear_interpolator__WEBPACK_IMPORTED_MODULE_7__.Z(["position","pitch","bearing"])})}}},"./node_modules/@deck.gl/core/dist/esm/effects/lighting/camera-light.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return CameraLight}});var _point_light__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/point-light.js"),_shaderlib_project_viewport_uniforms__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/viewport-uniforms.js");class CameraLight extends _point_light__WEBPACK_IMPORTED_MODULE_0__.c{getProjectedLight({layer:layer}){const{projectedLight:projectedLight}=this,viewport=layer.context.viewport,{coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,modelMatrix:modelMatrix}=layer.props,{project_uCameraPosition:project_uCameraPosition}=(0,_shaderlib_project_viewport_uniforms__WEBPACK_IMPORTED_MODULE_1__.C)({viewport:viewport,modelMatrix:modelMatrix,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin});return projectedLight.color=this.color,projectedLight.intensity=this.intensity,projectedLight.position=project_uCameraPosition,projectedLight}}},"./node_modules/@deck.gl/core/dist/esm/effects/lighting/point-light.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return PointLight}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_shaderlib_project_project_functions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project-functions.js"),_lib_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");const DEFAULT_LIGHT_COLOR=[255,255,255],DEFAULT_LIGHT_INTENSITY=1,DEFAULT_ATTENUATION=[0,0,1],DEFAULT_LIGHT_POSITION=[0,0,1];let idCount=0;class PointLight{constructor(props={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"id",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"color",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"intensity",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"type","point"),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"position",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"attenuation",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"projectedLight",void 0);const{color:color=DEFAULT_LIGHT_COLOR}=props,{intensity:intensity=DEFAULT_LIGHT_INTENSITY}=props,{position:position=DEFAULT_LIGHT_POSITION}=props;this.id=props.id||"point-".concat(idCount++),this.color=color,this.intensity=intensity,this.type="point",this.position=position,this.attenuation=function getAttenuation(props){if(props.attenuation)return props.attenuation;if("intensity"in props)return[0,0,props.intensity||0];return DEFAULT_ATTENUATION}(props),this.projectedLight={...this}}getProjectedLight({layer:layer}){const{projectedLight:projectedLight}=this,viewport=layer.context.viewport,{coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin}=layer.props,position=(0,_shaderlib_project_project_functions__WEBPACK_IMPORTED_MODULE_1__.D)(this.position,{viewport:viewport,coordinateSystem:coordinateSystem,coordinateOrigin:coordinateOrigin,fromCoordinateSystem:viewport.isGeospatial?_lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.LNGLAT:_lib_constants__WEBPACK_IMPORTED_MODULE_2__.COORDINATE_SYSTEM.CARTESIAN,fromCoordinateOrigin:[0,0,0]});return projectedLight.color=this.color,projectedLight.intensity=this.intensity,projectedLight.position=position,projectedLight}}},"./node_modules/@deck.gl/core/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AmbientLight:function(){return ambient_light.M},AttributeManager:function(){return attribute_manager.Z},COORDINATE_SYSTEM:function(){return constants.COORDINATE_SYSTEM},CompositeLayer:function(){return composite_layer.Z},Controller:function(){return controller.Z},Deck:function(){return deck.Z},DeckRenderer:function(){return deck_renderer.Z},DirectionalLight:function(){return directional_light.O},FirstPersonController:function(){return first_person_controller.Z},FirstPersonView:function(){return first_person_view.Z},FirstPersonViewport:function(){return first_person_viewport.Z},FlyToInterpolator:function(){return FlyToInterpolator},Layer:function(){return lib_layer.Z},LayerExtension:function(){return layer_extension.Z},LayerManager:function(){return layer_manager.Z},LightingEffect:function(){return lighting_effect.Z},LinearInterpolator:function(){return linear_interpolator.Z},MapController:function(){return map_controller.Z},MapView:function(){return map_view.Z},OPERATION:function(){return constants.k8},OrbitController:function(){return orbit_controller.Z},OrbitView:function(){return orbit_view.Z},OrbitViewport:function(){return orbit_viewport.Z},OrthographicController:function(){return orthographic_controller.Z},OrthographicView:function(){return orthographic_view.Z},OrthographicViewport:function(){return orthographic_viewport.Z},PointLight:function(){return point_light.c},PostProcessEffect:function(){return PostProcessEffect},TRANSITION_EVENTS:function(){return transition_manager.r},Tesselator:function(){return tesselator.Z},TransitionInterpolator:function(){return transition_interpolator.Z},UNIT:function(){return constants.iI},VERSION:function(){return init.q},View:function(){return view.Z},Viewport:function(){return viewport.Z},WebMercatorViewport:function(){return web_mercator_viewport.Z},_CameraLight:function(){return camera_light.Z},_GlobeController:function(){return GlobeController},_GlobeView:function(){return GlobeView},_GlobeViewport:function(){return globe_viewport.Z},_LayersPass:function(){return layers_pass.Z},_PickLayersPass:function(){return pick_layers_pass.Z},_SunLight:function(){return SunLight},_compareProps:function(){return props.tg},_count:function(){return count.Q},_deepEqual:function(){return deep_equal.v},_fillArray:function(){return flatten.k},_flatten:function(){return flatten.x},_memoize:function(){return memoize.Z},_mergeShaders:function(){return shader.l},assert:function(){return assert.Z},createIterable:function(){return iterable_utils.jB},fp64LowPart:function(){return math_utils.Ks},gouraudLighting:function(){return phong_lighting.N},log:function(){return log.Z},phongLighting:function(){return phong_lighting.s},picking:function(){return picking.Z},project:function(){return project.Z},project32:function(){return project32.Z},shadow:function(){return shadow.Z}});var init=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/init.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lighting_effect=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/lighting-effect.js"),ambient_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/ambient-light.js"),directional_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/directional-light.js"),point_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/point-light.js"),camera_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/camera-light.js"),defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");const DEGREES_TO_RADIANS=Math.PI/180,DAY_IN_MS=864e5,JD1970=2440588,JD2000=2451545,e=23.4397*DEGREES_TO_RADIANS,M0=357.5291,M1=.98560028,THETA0=280.147,THETA1=360.9856235;function getSunPosition(timestamp,latitude,longitude){const longitudeWestInRadians=DEGREES_TO_RADIANS*-longitude,phi=DEGREES_TO_RADIANS*latitude,d=function toDays(timestamp){return function toJulianDay(timestamp){const ts="number"==typeof timestamp?timestamp:timestamp.getTime();return ts/DAY_IN_MS-.5+JD1970}(timestamp)-JD2000}(timestamp),c=function getSunCoords(dates){const L=function getEclipticLongitude(meanAnomaly){const M=meanAnomaly,C=DEGREES_TO_RADIANS*(1.9148*Math.sin(M)+.02*Math.sin(2*M)+3e-4*Math.sin(3*M));return M+C+102.9372*DEGREES_TO_RADIANS+Math.PI}(function getSolarMeanAnomaly(days){return DEGREES_TO_RADIANS*(M0+M1*days)}(dates));return{declination:getDeclination(L,0),rightAscension:getRightAscension(L,0)}}(d),H=function getSiderealTime(dates,longitudeWestInRadians){return DEGREES_TO_RADIANS*(THETA0+THETA1*dates)-longitudeWestInRadians}(d,longitudeWestInRadians)-c.rightAscension;return{azimuth:getAzimuth(H,phi,c.declination),altitude:getAltitude(H,phi,c.declination)}}function getSunDirection(timestamp,latitude,longitude){const{azimuth:azimuth,altitude:altitude}=getSunPosition(timestamp,latitude,longitude);return[Math.sin(azimuth)*Math.cos(altitude),Math.cos(azimuth)*Math.cos(altitude),-Math.sin(altitude)]}function getRightAscension(eclipticLongitude,b){const lambda=eclipticLongitude;return Math.atan2(Math.sin(lambda)*Math.cos(e)-Math.tan(b)*Math.sin(e),Math.cos(lambda))}function getDeclination(eclipticLongitude,b){const lambda=eclipticLongitude;return Math.asin(Math.sin(b)*Math.cos(e)+Math.cos(b)*Math.sin(e)*Math.sin(lambda))}function getAzimuth(hourAngle,latitudeInRadians,declination){const H=hourAngle,phi=latitudeInRadians,delta=declination;return Math.atan2(Math.sin(H),Math.cos(H)*Math.sin(phi)-Math.tan(delta)*Math.cos(phi))}function getAltitude(hourAngle,latitudeInRadians,declination){const H=hourAngle,phi=latitudeInRadians,delta=declination;return Math.asin(Math.sin(phi)*Math.sin(delta)+Math.cos(phi)*Math.cos(delta)*Math.cos(H))}class SunLight extends directional_light.O{constructor(opts){super(opts),(0,defineProperty.Z)(this,"timestamp",void 0),this.timestamp=opts.timestamp}getProjectedLight({layer:layer}){const{viewport:viewport}=layer.context;if(viewport.resolution&&viewport.resolution>0){const[x,y,z]=getSunDirection(this.timestamp,0,0);this.direction=[x,-z,y]}else{const{latitude:latitude,longitude:longitude}=viewport;this.direction=getSunDirection(this.timestamp,latitude,longitude)}return this}}var clip_space=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/utils/clip-space.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),clear=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/clear.js"),pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/pass.js");class ScreenPass extends pass.Z{constructor(gl,props){super(gl,props),(0,defineProperty.Z)(this,"model",void 0);const{module:module,fs:fs,id:id}=props;this.model=new clip_space.Z(gl,{id:id,fs:fs,modules:[module]})}render(params){const gl=this.gl;(0,esm.dR)(gl,{viewport:[0,0,gl.drawingBufferWidth,gl.drawingBufferHeight]}),(0,esm.s8)(gl,{framebuffer:params.outputBuffer,clearColor:[0,0,0,0]},(()=>this._renderPass(gl,params)))}delete(){this.model.delete(),this.model=null}_renderPass(gl,options){const{inputBuffer:inputBuffer}=options;(0,clear.Z)(gl,{color:!0}),this.model.draw({moduleSettings:options.moduleSettings,uniforms:{texture:inputBuffer,texSize:[inputBuffer.width,inputBuffer.height]},parameters:{depthWrite:!1,depthTest:!1}})}}var shader_module=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/shader-module.js");class PostProcessEffect{constructor(module,props={}){(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"module",void 0),(0,defineProperty.Z)(this,"passes",void 0),this.id="".concat(module.name,"-pass"),this.props=props,(0,shader_module.v)(module),this.module=module}setProps(props){this.props=props}preRender(){}postRender(gl,params){const passes=this.passes||function createPasses(gl,module,id){if(!module.passes){const fs=getFragmentShaderForRenderPass(module);return[new ScreenPass(gl,{id:id,module:module,fs:fs})]}return module.passes.map(((pass,index)=>{const fs=getFragmentShaderForRenderPass(module,pass),idn="".concat(id,"-").concat(index);return new ScreenPass(gl,{id:idn,module:module,fs:fs})}))}(gl,this.module,this.id);this.passes=passes;const{target:target}=params;let inputBuffer=params.inputBuffer,outputBuffer=params.swapBuffer;for(let index=0;index"uniform sampler2D texture;\nuniform vec2 texSize;\n\nvarying vec2 position;\nvarying vec2 coordinate;\nvarying vec2 uv;\n\nvoid main() {\n vec2 texCoord = coordinate;\n\n gl_FragColor = texture2D(texture, texCoord);\n gl_FragColor = ".concat(func,"(gl_FragColor, texSize, texCoord);\n}\n"),SAMPLER_FS_TEMPLATE=func=>"uniform sampler2D texture;\nuniform vec2 texSize;\n\nvarying vec2 position;\nvarying vec2 coordinate;\nvarying vec2 uv;\n\nvoid main() {\n vec2 texCoord = coordinate;\n\n gl_FragColor = ".concat(func,"(texture, texSize, texCoord);\n}\n");function getFragmentShaderForRenderPass(module,pass=module){if(pass.filter){const func="string"==typeof pass.filter?pass.filter:"".concat(module.name,"_filterColor");return FILTER_FS_TEMPLATE(func)}if(pass.sampler){const func="string"==typeof pass.sampler?pass.sampler:"".concat(module.name,"_sampleColor");return SAMPLER_FS_TEMPLATE(func)}return null}var layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/layers-pass.js"),pick_layers_pass=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/passes/pick-layers-pass.js"),deck=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/deck.js"),layer_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer-manager.js"),attribute_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/attribute/attribute-manager.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),deck_renderer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/deck-renderer.js"),viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js"),web_mercator_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/web-mercator-viewport.js"),globe_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/globe-viewport.js"),orbit_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orbit-viewport.js"),orthographic_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orthographic-viewport.js"),first_person_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/first-person-viewport.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),phong_lighting=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js"),shadow=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/shadow/shadow.js"),view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/view.js"),map_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/map-view.js"),first_person_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/first-person-view.js"),orbit_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/orbit-view.js"),orthographic_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/orthographic-view.js"),common=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/controller.js"),map_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/map-controller.js"),math_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/math-utils.js"),linear_interpolator=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/linear-interpolator.js");class GlobeState extends map_controller.U{applyConstraints(props){const{maxZoom:maxZoom,minZoom:minZoom,zoom:zoom}=props;props.zoom=(0,common.uZ)(zoom,minZoom,maxZoom);const{longitude:longitude,latitude:latitude}=props;return(longitude<-180||longitude>180)&&(props.longitude=(0,math_utils.wQ)(longitude+180,360)-180),props.latitude=(0,common.uZ)(latitude,-89,89),props}}class GlobeController extends controller.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"ControllerState",GlobeState),(0,defineProperty.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new linear_interpolator.Z(["longitude","latitude","zoom"])}),(0,defineProperty.Z)(this,"dragMode","pan")}setProps(props){super.setProps(props),this.dragRotate=!1,this.touchRotate=!1}}class GlobeView extends view.Z{get ViewportType(){return globe_viewport.Z}get ControllerType(){return GlobeController}}(0,defineProperty.Z)(GlobeView,"displayName","GlobeView");var first_person_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/first-person-controller.js"),orbit_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orbit-controller.js"),orthographic_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orthographic-controller.js"),layer_extension=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer-extension.js"),transition_manager=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/transition-manager.js"),transition_interpolator=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/transitions/transition-interpolator.js"),dist_esm=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js");const LINEARLY_INTERPOLATED_PROPS={bearing:0,pitch:0,position:[0,0,0]},DEFAULT_OPTS={speed:1.2,curve:1.414};class FlyToInterpolator extends transition_interpolator.Z{constructor(opts={}){super({compare:["longitude","latitude","zoom","bearing","pitch","position"],extract:["width","height","longitude","latitude","zoom","bearing","pitch","position"],required:["width","height","latitude","longitude","zoom"]}),(0,defineProperty.Z)(this,"opts",void 0),this.opts={...DEFAULT_OPTS,...opts}}interpolateProps(startProps,endProps,t){const viewport=(0,dist_esm.if)(startProps,endProps,t,this.opts);for(const key in LINEARLY_INTERPOLATED_PROPS)viewport[key]=(0,common.t7)(startProps[key]||LINEARLY_INTERPOLATED_PROPS[key],endProps[key]||LINEARLY_INTERPOLATED_PROPS[key],t);return viewport}getDuration(startProps,endProps){let{transitionDuration:transitionDuration}=endProps;return"auto"===transitionDuration&&(transitionDuration=(0,dist_esm.up)(startProps,endProps,this.opts)),transitionDuration}}var log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),assert=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js"),iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),tesselator=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/tesselator.js"),flatten=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/flatten.js"),count=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/count.js"),deep_equal=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js"),memoize=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/memoize.js"),shader=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/shader.js"),props=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lifecycle/props.js")},"./node_modules/@deck.gl/core/dist/esm/lib/layer-extension.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return LayerExtension}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_utils_deep_equal__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js");class LayerExtension{static get componentName(){return Object.prototype.hasOwnProperty.call(this,"extensionName")?this.extensionName:""}constructor(opts){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"opts",void 0),opts&&(this.opts=opts)}equals(extension){return this===extension||this.constructor===extension.constructor&&(0,_utils_deep_equal__WEBPACK_IMPORTED_MODULE_1__.v)(this.opts,extension.opts,1)}getShaders(extension){return null}getSubLayerProps(extension){const{defaultProps:defaultProps}=extension.constructor,newProps={updateTriggers:{}};for(const key in defaultProps)if(key in this.props){const propDef=defaultProps[key],propValue=this.props[key];newProps[key]=propValue,propDef&&"accessor"===propDef.type&&(newProps.updateTriggers[key]=this.props.updateTriggers[key],"function"==typeof propValue&&(newProps[key]=this.getSubLayerAccessor(propValue)))}return newProps}initializeState(context,extension){}updateState(params,extension){}onNeedsRedraw(extension){}getNeedsPickingBuffer(extension){return!1}draw(params,extension){}finalizeState(context,extension){}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(LayerExtension,"defaultProps",{}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(LayerExtension,"extensionName","LayerExtension")},"./node_modules/@deck.gl/core/dist/esm/utils/tesselator.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Tesselator}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_iterable_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),_typed_array_manager__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/typed-array-manager.js"),_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/assert.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js");class Tesselator{constructor(opts){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"opts",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"typedArrayManager",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"indexStarts",[0]),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"vertexStarts",[0]),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"vertexCount",0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"instanceCount",0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"attributes",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"_attributeDefs",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"data",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"getGeometry",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"geometryBuffer",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"buffers",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"positionSize",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"normalize",void 0);const{attributes:attributes={}}=opts;this.typedArrayManager=_typed_array_manager__WEBPACK_IMPORTED_MODULE_1__.Z,this.attributes={},this._attributeDefs=attributes,this.opts=opts,this.updateGeometry(opts)}updateGeometry(opts){Object.assign(this.opts,opts);const{data:data,buffers:buffers={},getGeometry:getGeometry,geometryBuffer:geometryBuffer,positionFormat:positionFormat,dataChanged:dataChanged,normalize:normalize=!0}=this.opts;if(this.data=data,this.getGeometry=getGeometry,this.positionSize=geometryBuffer&&geometryBuffer.size||("XY"===positionFormat?2:3),this.buffers=buffers,this.normalize=normalize,geometryBuffer&&((0,_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(data.startIndices),this.getGeometry=this.getGeometryFromBuffer(geometryBuffer),normalize||(buffers.positions=geometryBuffer)),this.geometryBuffer=buffers.positions,Array.isArray(dataChanged))for(const dataRange of dataChanged)this._rebuildGeometry(dataRange);else this._rebuildGeometry()}updatePartialGeometry({startRow:startRow,endRow:endRow}){this._rebuildGeometry({startRow:startRow,endRow:endRow})}getGeometryFromBuffer(geometryBuffer){const value=geometryBuffer.value||geometryBuffer;return ArrayBuffer.isView(value)?(0,_iterable_utils__WEBPACK_IMPORTED_MODULE_3__.jr)(value,{size:this.positionSize,offset:geometryBuffer.offset,stride:geometryBuffer.stride,startIndices:this.data.startIndices}):null}_allocate(instanceCount,copy){const{attributes:attributes,buffers:buffers,_attributeDefs:_attributeDefs,typedArrayManager:typedArrayManager}=this;for(const name in _attributeDefs)if(name in buffers)typedArrayManager.release(attributes[name]),attributes[name]=null;else{const def=_attributeDefs[name];def.copy=copy,attributes[name]=typedArrayManager.allocate(attributes[name],instanceCount,def)}}_forEachGeometry(visitor,startRow,endRow){const{data:data,getGeometry:getGeometry}=this,{iterable:iterable,objectInfo:objectInfo}=(0,_iterable_utils__WEBPACK_IMPORTED_MODULE_3__.jB)(data,startRow,endRow);for(const object of iterable){objectInfo.index++;visitor(getGeometry?getGeometry(object,objectInfo):null,objectInfo.index)}}_rebuildGeometry(dataRange){if(!this.data)return;let{indexStarts:indexStarts,vertexStarts:vertexStarts,instanceCount:instanceCount}=this;const{data:data,geometryBuffer:geometryBuffer}=this,{startRow:startRow=0,endRow:endRow=1/0}=dataRange||{},normalizedData={};if(dataRange||(indexStarts=[0],vertexStarts=[0]),this.normalize||!geometryBuffer)this._forEachGeometry(((geometry,dataIndex)=>{const normalizedGeometry=geometry&&this.normalizeGeometry(geometry);normalizedData[dataIndex]=normalizedGeometry,vertexStarts[dataIndex+1]=vertexStarts[dataIndex]+(normalizedGeometry?this.getGeometrySize(normalizedGeometry):0)}),startRow,endRow),instanceCount=vertexStarts[vertexStarts.length-1];else if(vertexStarts=data.startIndices,instanceCount=vertexStarts[data.length]||0,ArrayBuffer.isView(geometryBuffer))instanceCount=instanceCount||geometryBuffer.length/this.positionSize;else if(geometryBuffer instanceof _luma_gl_webgl__WEBPACK_IMPORTED_MODULE_4__.Z){const byteStride=geometryBuffer.accessor.stride||4*this.positionSize;instanceCount=instanceCount||geometryBuffer.byteLength/byteStride}else if(geometryBuffer.buffer){const byteStride=geometryBuffer.stride||4*this.positionSize;instanceCount=instanceCount||geometryBuffer.buffer.byteLength/byteStride}else if(geometryBuffer.value){const bufferValue=geometryBuffer.value,elementStride=geometryBuffer.stride/bufferValue.BYTES_PER_ELEMENT||this.positionSize;instanceCount=instanceCount||bufferValue.length/elementStride}this._allocate(instanceCount,Boolean(dataRange)),this.indexStarts=indexStarts,this.vertexStarts=vertexStarts,this.instanceCount=instanceCount;const context={};this._forEachGeometry(((geometry,dataIndex)=>{const normalizedGeometry=normalizedData[dataIndex]||geometry;context.vertexStart=vertexStarts[dataIndex],context.indexStart=indexStarts[dataIndex];const vertexEnd=dataIndexthis.longitude&&(left[0]-=360),[Math.min(left[0],right[0],top[0],bottom[0]),Math.min(left[1],right[1],top[1],bottom[1]),Math.max(left[0],right[0],top[0],bottom[0]),Math.max(left[1],right[1],top[1],bottom[1])]}unproject(xyz,{topLeft:topLeft=!0,targetZ:targetZ}={}){const[x,y,z]=xyz,y2=topLeft?y:this.height-y,{pixelUnprojectionMatrix:pixelUnprojectionMatrix}=this;let coord;if(Number.isFinite(z))coord=transformVector(pixelUnprojectionMatrix,[x,y2,z,1]);else{const coord0=transformVector(pixelUnprojectionMatrix,[x,y2,-1,1]),coord1=transformVector(pixelUnprojectionMatrix,[x,y2,1,1]),lt=256*((targetZ||0)/6370972+1),lSqr=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.x9(gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.lu([],coord0,coord1)),l0Sqr=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.x9(coord0),l1Sqr=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.x9(coord1),dSqr=4*((4*l0Sqr*l1Sqr-(lSqr-l0Sqr-l1Sqr)**2)/16)/lSqr,t=(Math.sqrt(l0Sqr-dSqr)-Math.sqrt(Math.max(0,lt*lt-dSqr)))/Math.sqrt(lSqr);coord=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.t7([],coord0,coord1,t)}const[X,Y,Z]=this.unprojectPosition(coord);return Number.isFinite(z)?[X,Y,Z]:Number.isFinite(targetZ)?[X,Y,targetZ]:[X,Y]}projectPosition(xyz){const[lng,lat,Z=0]=xyz,lambda=lng*DEGREES_TO_RADIANS,phi=lat*DEGREES_TO_RADIANS,cosPhi=Math.cos(phi),D=256*(Z/6370972+1);return[Math.sin(lambda)*cosPhi*D,-Math.cos(lambda)*cosPhi*D,Math.sin(phi)*D]}unprojectPosition(xyz){const[x,y,z]=xyz,D=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_4__.Zh(xyz),phi=Math.asin(z/D);return[Math.atan2(x,-y)*RADIANS_TO_DEGREES,phi*RADIANS_TO_DEGREES,6370972*(D/256-1)]}projectFlat(xyz){return xyz}unprojectFlat(xyz){return xyz}panByPosition(coords,pixel){const fromPosition=this.unproject(pixel);return{longitude:coords[0]-fromPosition[0]+this.longitude,latitude:coords[1]-fromPosition[1]+this.latitude}}}function transformVector(matrix,vector){const result=gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_5__.fF([],vector,matrix);return gl_matrix_vec4__WEBPACK_IMPORTED_MODULE_5__.bA(result,result,1/result[3]),result}},"./node_modules/@deck.gl/core/dist/esm/viewports/orbit-viewport.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return OrbitViewport}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_viewports_viewport__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js");const DEGREES_TO_RADIANS=Math.PI/180;function getViewMatrix({height:height,focalDistance:focalDistance,orbitAxis:orbitAxis,rotationX:rotationX,rotationOrbit:rotationOrbit,zoom:zoom}){const up="Z"===orbitAxis?[0,0,1]:[0,1,0],eye="Z"===orbitAxis?[0,-focalDistance,0]:[0,0,focalDistance],viewMatrix=(new _math_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z).lookAt({eye:eye,up:up});viewMatrix.rotateX(rotationX*DEGREES_TO_RADIANS),"Z"===orbitAxis?viewMatrix.rotateZ(rotationOrbit*DEGREES_TO_RADIANS):viewMatrix.rotateY(rotationOrbit*DEGREES_TO_RADIANS);const projectionScale=Math.pow(2,zoom)/height;return viewMatrix.scale(projectionScale),viewMatrix}class OrbitViewport extends _viewports_viewport__WEBPACK_IMPORTED_MODULE_2__.Z{constructor(props){const{height:height,projectionMatrix:projectionMatrix,fovy:fovy=50,orbitAxis:orbitAxis="Z",target:target=[0,0,0],rotationX:rotationX=0,rotationOrbit:rotationOrbit=0,zoom:zoom=0}=props,focalDistance=projectionMatrix?projectionMatrix[5]/2:(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.sj)(fovy);super({...props,longitude:void 0,viewMatrix:getViewMatrix({height:height||1,focalDistance:focalDistance,orbitAxis:orbitAxis,rotationX:rotationX,rotationOrbit:rotationOrbit,zoom:zoom}),fovy:fovy,focalDistance:focalDistance,position:target,zoom:zoom}),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(this,"projectedCenter",void 0),this.projectedCenter=this.project(this.center)}unproject(xyz,{topLeft:topLeft=!0}={}){const[x,y,z=this.projectedCenter[2]]=xyz,y2=topLeft?y:this.height-y,[X,Y,Z]=(0,_math_gl_web_mercator__WEBPACK_IMPORTED_MODULE_0__.CT)([x,y2,z],this.pixelUnprojectionMatrix);return[X,Y,Z]}panByPosition(coords,pixel){const p0=this.project(coords),nextCenter=[this.width/2+p0[0]-pixel[0],this.height/2+p0[1]-pixel[1],this.projectedCenter[2]];return{target:this.unproject(nextCenter)}}}},"./node_modules/@deck.gl/core/dist/esm/views/first-person-view.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return FirstPersonView}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_view__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/view.js"),_viewports_first_person_viewport__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/first-person-viewport.js"),_controllers_first_person_controller__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/first-person-controller.js");class FirstPersonView extends _view__WEBPACK_IMPORTED_MODULE_0__.Z{get ViewportType(){return _viewports_first_person_viewport__WEBPACK_IMPORTED_MODULE_1__.Z}get ControllerType(){return _controllers_first_person_controller__WEBPACK_IMPORTED_MODULE_2__.Z}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(FirstPersonView,"displayName","FirstPersonView")},"./node_modules/@deck.gl/core/dist/esm/views/orbit-view.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return OrbitView}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_view__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/view.js"),_viewports_orbit_viewport__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orbit-viewport.js"),_controllers_orbit_controller__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orbit-controller.js");class OrbitView extends _view__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(props={}){super(props),this.props.orbitAxis=props.orbitAxis||"Z"}get ViewportType(){return _viewports_orbit_viewport__WEBPACK_IMPORTED_MODULE_1__.Z}get ControllerType(){return _controllers_orbit_controller__WEBPACK_IMPORTED_MODULE_2__.Z}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__.Z)(OrbitView,"displayName","OrbitView")},"./node_modules/@deck.gl/extensions/dist/esm/clip/clip-extension.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ClipExtension}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_deck_gl_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer-extension.js");const defaultProps={clipBounds:[0,0,1,1],clipByInstance:void 0},shaderFunction="\nuniform vec4 clip_bounds;\n\nbool clip_isInBounds(vec2 position) {\n return position.x >= clip_bounds[0] && position.y >= clip_bounds[1] && position.x < clip_bounds[2] && position.y < clip_bounds[3];\n}\n",shaderModuleVs={name:"clip-vs",vs:shaderFunction},injectionVs={"vs:#decl":"\nvarying float clip_isVisible;\n","vs:DECKGL_FILTER_GL_POSITION":"\n clip_isVisible = float(clip_isInBounds(geometry.worldPosition.xy));\n","fs:#decl":"\nvarying float clip_isVisible;\n","fs:DECKGL_FILTER_COLOR":"\n if (clip_isVisible < 0.5) discard;\n"},shaderModuleFs={name:"clip-fs",fs:shaderFunction},injectionFs={"vs:#decl":"\nvarying vec2 clip_commonPosition;\n","vs:DECKGL_FILTER_GL_POSITION":"\n clip_commonPosition = geometry.position.xy;\n","fs:#decl":"\nvarying vec2 clip_commonPosition;\n","fs:DECKGL_FILTER_COLOR":"\n if (!clip_isInBounds(clip_commonPosition)) discard;\n"};class ClipExtension extends _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__.Z{getShaders(){let clipByInstance="instancePositions"in this.getAttributeManager().attributes;return void 0!==this.props.clipByInstance&&(clipByInstance=Boolean(this.props.clipByInstance)),this.state.clipByInstance=clipByInstance,clipByInstance?{modules:[shaderModuleVs],inject:injectionVs}:{modules:[shaderModuleFs],inject:injectionFs}}draw({uniforms:uniforms}){const{clipBounds:clipBounds}=this.props;if(this.state.clipByInstance)uniforms.clip_bounds=clipBounds;else{const corner0=this.projectPosition([clipBounds[0],clipBounds[1],0]),corner1=this.projectPosition([clipBounds[2],clipBounds[3],0]);uniforms.clip_bounds=[Math.min(corner0[0],corner1[0]),Math.min(corner0[1],corner1[1]),Math.max(corner0[0],corner1[0]),Math.max(corner0[1],corner1[1])]}}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(ClipExtension,"defaultProps",defaultProps),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__.Z)(ClipExtension,"extensionName","ClipExtension")},"./node_modules/@deck.gl/extensions/dist/esm/path-style/path-style-extension.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return PathStyleExtension}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),layer_extension=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer-extension.js"),shader=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/shader.js");const dashShaders={inject:{"vs:#decl":"\nattribute vec2 instanceDashArrays;\nattribute float instanceDashOffsets;\nvarying vec2 vDashArray;\nvarying float vDashOffset;\n","vs:#main-end":"\nvDashArray = instanceDashArrays;\nvDashOffset = instanceDashOffsets / width.x;\n","fs:#decl":"\nuniform float dashAlignMode;\nuniform float capType;\nuniform bool dashGapPickable;\nvarying vec2 vDashArray;\nvarying float vDashOffset;\n\nfloat round(float x) {\n return floor(x + 0.5);\n}\n","fs:#main-start":"\n float solidLength = vDashArray.x;\n float gapLength = vDashArray.y;\n float unitLength = solidLength + gapLength;\n\n float offset;\n\n if (unitLength > 0.0) {\n if (dashAlignMode == 0.0) {\n offset = vDashOffset;\n } else {\n unitLength = vPathLength / round(vPathLength / unitLength);\n offset = solidLength / 2.0;\n }\n\n float unitOffset = mod(vPathPosition.y + offset, unitLength);\n\n if (gapLength > 0.0 && unitOffset > solidLength) {\n if (capType <= 0.5) {\n if (!(dashGapPickable && picking_uActive)) {\n discard;\n }\n } else {\n float distToEnd = length(vec2(\n min(unitOffset - solidLength, unitLength - unitOffset),\n vPathPosition.x\n ));\n if (distToEnd > 1.0) {\n if (!(dashGapPickable && picking_uActive)) {\n discard;\n }\n }\n }\n }\n }\n"}},offsetShaders={inject:{"vs:#decl":"\nattribute float instanceOffsets;\n","vs:DECKGL_FILTER_SIZE":"\n float offsetWidth = abs(instanceOffsets * 2.0) + 1.0;\n size *= offsetWidth;\n","vs:#main-end":"\n float offsetWidth = abs(instanceOffsets * 2.0) + 1.0;\n float offsetDir = sign(instanceOffsets);\n vPathPosition.x = (vPathPosition.x + offsetDir) * offsetWidth - offsetDir;\n vPathPosition.y *= offsetWidth;\n vPathLength *= offsetWidth;\n","fs:#main-start":"\n float isInside;\n isInside = step(-1.0, vPathPosition.x) * step(vPathPosition.x, 1.0);\n if (isInside == 0.0) {\n discard;\n }\n"}};var vec3=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js");class PathStyleExtension extends layer_extension.Z{constructor({dash:dash=!1,offset:offset=!1,highPrecisionDash:highPrecisionDash=!1}={}){super({dash:dash||highPrecisionDash,offset:offset,highPrecisionDash:highPrecisionDash})}isEnabled(layer){return"pathTesselator"in layer.state}getShaders(extension){if(!extension.isEnabled(this))return null;let result={};return extension.opts.dash&&(result=(0,shader.l)(result,dashShaders)),extension.opts.offset&&(result=(0,shader.l)(result,offsetShaders)),result}initializeState(context,extension){const attributeManager=this.getAttributeManager();attributeManager&&extension.isEnabled(this)&&(extension.opts.dash&&attributeManager.addInstanced({instanceDashArrays:{size:2,accessor:"getDashArray"}}),extension.opts.highPrecisionDash&&attributeManager.addInstanced({instanceDashOffsets:{size:1,accessor:"getPath",transform:extension.getDashOffsets.bind(this)}}),extension.opts.offset&&attributeManager.addInstanced({instanceOffsets:{size:1,accessor:"getOffset"}}))}updateState(params,extension){if(!extension.isEnabled(this))return;const uniforms={};extension.opts.dash&&(uniforms.dashAlignMode=this.props.dashJustified?1:0,uniforms.dashGapPickable=Boolean(this.props.dashGapPickable)),this.state.model.setUniforms(uniforms)}getDashOffsets(path){const result=[0],positionSize="XY"===this.props.positionFormat?2:3,isNested=Array.isArray(path[0]),geometrySize=isNested?path.length:path.length/positionSize;let p,prevP;for(let i=0;i0&&(result[i]=result[i-1]+(0,vec3.TK)(prevP,p)),prevP=p;return result}}(0,defineProperty.Z)(PathStyleExtension,"defaultProps",{getDashArray:{type:"accessor",value:[0,0]},getOffset:{type:"accessor",value:0},dashJustified:!1,dashGapPickable:!1}),(0,defineProperty.Z)(PathStyleExtension,"extensionName","PathStyleExtension")},"./node_modules/@deck.gl/geo-layers/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{GeohashLayer:function(){return GeohashLayer},GreatCircleLayer:function(){return GreatCircleLayer},H3ClusterLayer:function(){return H3ClusterLayer},H3HexagonLayer:function(){return H3HexagonLayer},MVTLayer:function(){return MVTLayer},QuadkeyLayer:function(){return QuadkeyLayer},S2Layer:function(){return S2Layer},TerrainLayer:function(){return TerrainLayer},Tile3DLayer:function(){return Tile3DLayer},TileLayer:function(){return TileLayer},TripsLayer:function(){return TripsLayer},_GeoCellLayer:function(){return GeoCellLayer},_Tile2DHeader:function(){return Tile2DHeader},_Tileset2D:function(){return Tileset2D},_WMSLayer:function(){return WMSLayer},_getURLFromTemplate:function(){return getURLFromTemplate}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),deep_equal=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/deep-equal.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),bitmap_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/bitmap-layer/bitmap-layer.js");class DataSource{constructor(props){(0,defineProperty.Z)(this,"fetch",void 0),(0,defineProperty.Z)(this,"loadOptions",void 0),(0,defineProperty.Z)(this,"_needsRefresh",!0),(0,defineProperty.Z)(this,"props",void 0),this.props={...props},this.loadOptions={...props.loadOptions},this.fetch=function getFetchFunction(options){const fetchFunction=null==options?void 0:options.fetch;if(fetchFunction&&"function"==typeof fetchFunction)return(url,fetchOptions)=>fetchFunction(url,fetchOptions);const fetchOptions=null==options?void 0:options.fetch;if(fetchOptions&&"function"!=typeof fetchOptions)return url=>fetch(url,fetchOptions);return url=>fetch(url)}(this.loadOptions)}setProps(props){this.props=Object.assign(this.props,props),this.setNeedsRefresh()}setNeedsRefresh(){this._needsRefresh=!0}getNeedsRefresh(){let clear=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const needsRefresh=this._needsRefresh;return clear&&(this._needsRefresh=!1),needsRefresh}}class ImageSource extends DataSource{}var image_loader=__webpack_require__("./node_modules/@loaders.gl/images/dist/esm/image-loader.js");class ImageService extends ImageSource{constructor(props){super(props)}async getMetadata(){throw new Error("ImageSource.getMetadata not implemented")}async getImage(parameters){const granularParameters=this.getGranularParameters(parameters),url=this.getURLFromTemplate(granularParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();return await image_loader.S.parse(arrayBuffer)}getGranularParameters(parameters){const[east,north,west,south]=parameters.bbox;return{...parameters,east:east,north:north,south:south,west:west}}getURLFromTemplate(parameters){let url=this.props.url;for(const[key,value]of Object.entries(parameters))url=url.replace("${".concat(key,"}"),String(value)),url=url.replace("{".concat(key,"}"),String(value));return url}}(0,defineProperty.Z)(ImageService,"type","template"),(0,defineProperty.Z)(ImageService,"testURL",(url=>url.toLowerCase().includes("{")));var fxp=__webpack_require__("./node_modules/fast-xml-parser/src/fxp.js");function uncapitalizeKeys(object){if(Array.isArray(object))return object.map((element=>uncapitalizeKeys(element)));if(object&&"object"==typeof object){const newObject={};for(const[key,value]of Object.entries(object))newObject[(str=key,"string"==typeof str?str.charAt(0).toLowerCase()+str.slice(1):str)]=uncapitalizeKeys(value);return newObject}var str;return object}const XMLLoader={name:"XML",id:"xml",module:"xml",version:"3.4.14",worker:!1,extensions:["xml"],mimeTypes:["application/xml","text/xml"],testText:function testXMLFile(text){return text.startsWith("parseTextSync((new TextDecoder).decode(arrayBuffer),options),parseTextSync:(text,options)=>parseTextSync(text,options)};function parseTextSync(text,options){var _options$xml;const xmlOptions={...XMLLoader.options.xml,...null==options?void 0:options.xml};if("fast-xml-parser"===xmlOptions.parser){const fastXMLOptions={allowBooleanAttributes:!0,ignoreDeclaration:!0,removeNSPrefix:xmlOptions.removeNSPrefix,textNodeName:xmlOptions.textNodeName,isArray:(name,jpath,isLeafNode,isAttribute)=>{var _xmlOptions$arrayPath;const array=Boolean(null==xmlOptions||null===(_xmlOptions$arrayPath=xmlOptions.arrayPaths)||void 0===_xmlOptions$arrayPath?void 0:_xmlOptions$arrayPath.some((path=>jpath===path)));return array},...null==options?void 0:options._fastXML},xml=function fastParseXML(text,options){return new fxp.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"",...options}).parse(text)}(text,fastXMLOptions);return xmlOptions.uncapitalizeKeys?uncapitalizeKeys(xml):xml}throw new Error(null==options||null===(_options$xml=options.xml)||void 0===_options$xml?void 0:_options$xml.parser)}function getXMLArray(xmlValue){return Array.isArray(xmlValue)?xmlValue:xmlValue?[xmlValue]:[]}function getXMLStringArray(xmlValue){const xmlArray=getXMLArray(xmlValue);return xmlArray.length>0&&xmlArray.every((_=>"string"==typeof _))?xmlArray:[]}function getXMLFloat(xmlValue){switch(typeof xmlValue){case"number":return xmlValue;case"string":return parseFloat(xmlValue);default:return}}function getXMLInteger(xmlValue){switch(typeof xmlValue){case"number":return xmlValue;case"string":return parseInt(xmlValue,10);default:return}}function getXMLBoolean(xmlValue){switch(xmlValue){case"true":case"1":return!0;default:return!1}}function parseWMSCapabilities(xmlText,options){const parsedXML=XMLLoader.parseTextSync(xmlText,options),xmlCapabilities=parsedXML.WMT_MS_Capabilities||parsedXML.WMS_Capabilities||parsedXML,capabilities=function extractCapabilities(xml){var _xml$Service,_xml$Service2,_xml$Service3,_xml$Service4,_xml$Service5,_xml$Service6,_xml$Service6$Keyword,_xml$Service7,_xml$Service8,_xml$Service9,_xml$Service10,_xml$Service11,_xml$Service12,_xml$Service13,_xml$Capability,_xml$Capability2;const capabilities={version:String(xml.version||""),name:String((null===(_xml$Service=xml.Service)||void 0===_xml$Service?void 0:_xml$Service.Name)||"unnamed"),title:null!==(_xml$Service2=xml.Service)&&void 0!==_xml$Service2&&_xml$Service2.Title?String(null===(_xml$Service3=xml.Service)||void 0===_xml$Service3?void 0:_xml$Service3.Title):void 0,abstract:null!==(_xml$Service4=xml.Service)&&void 0!==_xml$Service4&&_xml$Service4.Abstract?String(null===(_xml$Service5=xml.Service)||void 0===_xml$Service5?void 0:_xml$Service5.Abstract):void 0,keywords:getXMLStringArray(null===(_xml$Service6=xml.Service)||void 0===_xml$Service6||null===(_xml$Service6$Keyword=_xml$Service6.KeywordList)||void 0===_xml$Service6$Keyword?void 0:_xml$Service6$Keyword.Keyword),fees:null!==(_xml$Service7=xml.Service)&&void 0!==_xml$Service7&&_xml$Service7.Fees?JSON.stringify(null===(_xml$Service8=xml.Service)||void 0===_xml$Service8?void 0:_xml$Service8.Fees):void 0,accessConstraints:null!==(_xml$Service9=xml.Service)&&void 0!==_xml$Service9&&_xml$Service9.AccessConstraints?JSON.stringify(null===(_xml$Service10=xml.Service)||void 0===_xml$Service10?void 0:_xml$Service10.AccessConstraints):void 0,layerLimit:getXMLInteger(null===(_xml$Service11=xml.Service)||void 0===_xml$Service11?void 0:_xml$Service11.LayerLimit),maxWidth:getXMLInteger(null===(_xml$Service12=xml.Service)||void 0===_xml$Service12?void 0:_xml$Service12.maxWidth),maxHeight:getXMLInteger(null===(_xml$Service13=xml.Service)||void 0===_xml$Service13?void 0:_xml$Service13.maxHeight),layers:[],requests:extractRequests(null===(_xml$Capability=xml.Capability)||void 0===_xml$Capability?void 0:_xml$Capability.Request),exceptions:extractExceptions(xml.Exception)},xmlLayers=getXMLArray(null===(_xml$Capability2=xml.Capability)||void 0===_xml$Capability2?void 0:_xml$Capability2.Layer);for(const xmlSubLayer of xmlLayers)capabilities.layers.push(extractLayer(xmlSubLayer));for(const[key,value]of Object.entries(capabilities))void 0===value&&delete capabilities[key];return capabilities}(xmlCapabilities);if(null!=options&&options.inheritedLayerProps)for(const layer of capabilities.layers)addInheritedLayerProps(layer,null);return(null!=options&&options.includeRawData||null!=options&&options.raw)&&(capabilities.raw=xmlCapabilities),null!=options&&options.includeXMLText&&(capabilities.xml=xmlText),capabilities}function extractRequests(xmlRequests){const requests={};for(const[name,xmlRequest]of Object.entries(xmlRequests||{})){const mimeTypes=getXMLStringArray(null==xmlRequest?void 0:xmlRequest.Format);requests[name]={mimeTypes:mimeTypes}}return requests}function extractExceptions(xmlException){if(getXMLArray(null==xmlException?void 0:xmlException.Format).length>0)return{mimeTypes:getXMLStringArray(xmlException)}}function extractLayer(xmlLayer){var _xmlLayer$KeywordList;const layer={title:String((null==xmlLayer?void 0:xmlLayer.Title)||""),name:(null==xmlLayer?void 0:xmlLayer.Name)&&String(null==xmlLayer?void 0:xmlLayer.Name),abstract:(null==xmlLayer?void 0:xmlLayer.Name)&&String(null==xmlLayer?void 0:xmlLayer.Abstract),keywords:getXMLStringArray(null===(_xmlLayer$KeywordList=xmlLayer.KeywordList)||void 0===_xmlLayer$KeywordList?void 0:_xmlLayer$KeywordList.Keyword)},crs=(null==xmlLayer?void 0:xmlLayer.CRS)||(null==xmlLayer?void 0:xmlLayer.SRS);crs&&Array.isArray(crs)&&crs.every((_=>"string"==typeof _))&&(layer.crs=crs);let geographicBoundingBox=(null==xmlLayer?void 0:xmlLayer.EX_GeographicBoundingBox)&&function extractEXBoundingBox(xmlBoundingBox){const{westBoundLongitude:w,northBoundLatitude:n,eastBoundLongitude:e,southBoundLatitude:s}=xmlBoundingBox;return[[w,s],[e,n]]}(null==xmlLayer?void 0:xmlLayer.EX_GeographicBoundingBox);geographicBoundingBox&&(layer.geographicBoundingBox=geographicBoundingBox),geographicBoundingBox=(null==xmlLayer?void 0:xmlLayer.LatLonBoundingBox)&&function extractLatLonBoundingBox(xmlBoundingBox){const{minx:minx,miny:miny,maxx:maxx,maxy:maxy}=xmlBoundingBox;return[[minx,miny],[maxx,maxy]]}(null==xmlLayer?void 0:xmlLayer.LatLonBoundingBox),geographicBoundingBox&&(layer.geographicBoundingBox=geographicBoundingBox);const boundingBoxes=(null==xmlLayer?void 0:xmlLayer.BoundingBox)&&function extractWMSBoundingBoxes(xmlBoundingBoxes){return getXMLArray(xmlBoundingBoxes).map((xmlBox=>function extractWMSBoundingBox(xmlBoundingBox){const{CRS:CRS,SRS:SRS,minx:minx,miny:miny,maxx:maxx,maxy:maxy,resx:resx,resy:resy}=xmlBoundingBox,boundingBox={crs:CRS||SRS,boundingBox:[[getXMLFloat(minx),getXMLFloat(miny)],[getXMLFloat(maxx),getXMLFloat(maxy)]]};resx&&(boundingBox.xResolution=resx);resy&&(boundingBox.yResolution=resy);return boundingBox}(xmlBox)))}(null==xmlLayer?void 0:xmlLayer.BoundingBox);boundingBoxes&&boundingBoxes.length>0&&(layer.boundingBoxes=boundingBoxes);const dimensions=getXMLArray(null==xmlLayer?void 0:xmlLayer.Dimension).map((xml=>function extractDimension(xmlDimension){const{name:name,units:units,value:extent}=xmlDimension,dimension={name:name,units:units,extent:extent};xmlDimension.unitSymbol&&(dimension.unitSymbol=xmlDimension.unitSymbol);xmlDimension.default&&(dimension.defaultValue=xmlDimension.default);xmlDimension.multipleValues&&(dimension.multipleValues=getXMLBoolean(xmlDimension.multipleValues));xmlDimension.nearestValue&&(dimension.nearestValue=getXMLBoolean(xmlDimension.nearestValue));xmlDimension.current&&(dimension.current=getXMLBoolean(xmlDimension.current));return dimension}(xml)));dimensions.length&&(layer.dimensions=dimensions),null!=xmlLayer&&xmlLayer.opaque&&(layer.opaque=getXMLBoolean(null==xmlLayer?void 0:xmlLayer.opaque)),null!=xmlLayer&&xmlLayer.cascaded&&(layer.cascaded=getXMLBoolean(null==xmlLayer?void 0:xmlLayer.cascaded)),null!=xmlLayer&&xmlLayer.queryable&&(layer.queryable=getXMLBoolean(null==xmlLayer?void 0:xmlLayer.queryable));const xmlLayers=getXMLArray(null==xmlLayer?void 0:xmlLayer.Layer),layers=[];for(const xmlSubLayer of xmlLayers)layers.push(extractLayer(xmlSubLayer));layers.length>0&&(layer.layers=layers);for(const[key,value]of Object.entries(layer))void 0===value&&delete layer[key];return layer}function addInheritedLayerProps(layer,parent){null!=parent&&parent.geographicBoundingBox&&!layer.geographicBoundingBox&&(layer.geographicBoundingBox=[...parent.geographicBoundingBox]),null!=parent&&parent.crs&&!layer.crs&&(layer.crs=[...parent.crs]),null!=parent&&parent.boundingBoxes&&!layer.boundingBoxes&&(layer.boundingBoxes=[...parent.boundingBoxes]),null!=parent&&parent.dimensions&&!layer.dimensions&&(layer.dimensions=[...parent.dimensions]);for(const subLayer of layer.layers||[])addInheritedLayerProps(subLayer,layer)}const WMSCapabilitiesLoader={id:"wms-capabilities",name:"WMS Capabilities",module:"wms",version:"3.4.14",worker:!1,extensions:["xml"],mimeTypes:["application/vnd.ogc.wms_xml","application/xml","text/xml"],testText:function wms_capabilities_loader_testXMLFile(text){return text.startsWith("parseWMSCapabilities((new TextDecoder).decode(arrayBuffer),null==options?void 0:options.wms),parseTextSync:(text,options)=>parseWMSCapabilities(text,null==options?void 0:options.wms)};function parseWMSFeatureInfo(text,options){var _parsedXML$FeatureInf;const xmlFeatureInfo=(null===(_parsedXML$FeatureInf=XMLLoader.parseTextSync(text,options).FeatureInfoResponse)||void 0===_parsedXML$FeatureInf?void 0:_parsedXML$FeatureInf.FIELDS)||[];return{features:(Array.isArray(xmlFeatureInfo)?xmlFeatureInfo:[xmlFeatureInfo]).map((xmlFeature=>function extractFeature(xmlFeature){const xmlFields=xmlFeature||{};return{attributes:xmlFields,type:"",bounds:{bottom:0,top:0,left:0,right:0}}}(xmlFeature)))}}const WMSFeatureInfoLoader={...WMSCapabilitiesLoader,id:"wms-feature-info",name:"WMS FeatureInfo",parse:async(arrayBuffer,options)=>parseWMSFeatureInfo((new TextDecoder).decode(arrayBuffer),options),parseTextSync:(text,options)=>parseWMSFeatureInfo(text,options)};function parseWMSLayerDescription(text,options){var _XMLLoader$parseTextS;return null===(_XMLLoader$parseTextS=XMLLoader.parseTextSync)||void 0===_XMLLoader$parseTextS?void 0:_XMLLoader$parseTextS.call(XMLLoader,text,options)}const WMSLayerDescriptionLoader={...WMSCapabilitiesLoader,id:"wms-layer-description",name:"WMS DescribeLayer",parse:async(arrayBuffer,options)=>parseWMSLayerDescription((new TextDecoder).decode(arrayBuffer),options),parseTextSync:(text,options)=>parseWMSLayerDescription(text,options)};const WMSErrorLoader={id:"wms-error",name:"WMS Error",module:"wms",version:"3.4.14",worker:!1,extensions:["xml"],mimeTypes:["application/vnd.ogc.se_xml","application/xml","text/xml"],testText:function wms_error_loader_testXMLFile(text){return text.startsWith("wms_error_loader_parseTextSync((new TextDecoder).decode(arrayBuffer),options),parseSync:(arrayBuffer,options)=>wms_error_loader_parseTextSync((new TextDecoder).decode(arrayBuffer),options),parseTextSync:(text,options)=>wms_error_loader_parseTextSync(text,options)};function wms_error_loader_parseTextSync(text,options){const wmsOptions={...WMSErrorLoader.options.wms,...null==options?void 0:options.wms},error=function parseWMSError(text,options){var _XMLLoader$parseTextS,_parsedXML$ServiceExc,_parsedXML$ogcServic;const parsedXML=null===(_XMLLoader$parseTextS=XMLLoader.parseTextSync)||void 0===_XMLLoader$parseTextS?void 0:_XMLLoader$parseTextS.call(XMLLoader,text,options),serviceExceptionXML=(null==parsedXML||null===(_parsedXML$ServiceExc=parsedXML.ServiceExceptionReport)||void 0===_parsedXML$ServiceExc?void 0:_parsedXML$ServiceExc.ServiceException)||(null==parsedXML||null===(_parsedXML$ogcServic=parsedXML["ogc:ServiceExceptionReport"])||void 0===_parsedXML$ogcServic?void 0:_parsedXML$ogcServic["ogc:ServiceException"]);return"string"==typeof serviceExceptionXML?serviceExceptionXML:serviceExceptionXML.value||serviceExceptionXML.code||"Unknown error"}(text,wmsOptions),message=wmsOptions.minimalErrors?error:"WMS Service error: ".concat(error);if(wmsOptions.throwOnError)throw new Error(message);return message}class WMSService extends ImageSource{constructor(props){var _props$substituteCRS;super(props),(0,defineProperty.Z)(this,"url",void 0),(0,defineProperty.Z)(this,"substituteCRS84",void 0),(0,defineProperty.Z)(this,"flipCRS",void 0),(0,defineProperty.Z)(this,"wmsParameters",void 0),(0,defineProperty.Z)(this,"vendorParameters",void 0),(0,defineProperty.Z)(this,"capabilities",null),this.url=props.url,this.substituteCRS84=null!==(_props$substituteCRS=props.substituteCRS84)&&void 0!==_props$substituteCRS&&_props$substituteCRS,this.flipCRS=["EPSG:4326"],this.wmsParameters={layers:void 0,query_layers:void 0,styles:void 0,version:"1.3.0",crs:"EPSG:4326",format:"image/png",info_format:"text/plain",transparent:void 0,time:void 0,elevation:void 0,...props.wmsParameters},this.vendorParameters=props.vendorParameters||{}}async getMetadata(){const capabilities=await this.getCapabilities();return this.normalizeMetadata(capabilities)}async getImage(parameters){return await this.getMap(parameters)}normalizeMetadata(capabilities){return capabilities}async getCapabilities(wmsParameters,vendorParameters){const url=this.getCapabilitiesURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();this._checkResponse(response,arrayBuffer);const capabilities=await WMSCapabilitiesLoader.parse(arrayBuffer,this.loadOptions);return this.capabilities=capabilities,capabilities}async getMap(wmsParameters,vendorParameters){const url=this.getMapURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();this._checkResponse(response,arrayBuffer);try{return await image_loader.S.parse(arrayBuffer,this.loadOptions)}catch{throw this._parseError(arrayBuffer)}}async getFeatureInfo(wmsParameters,vendorParameters){const url=this.getFeatureInfoURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();return this._checkResponse(response,arrayBuffer),await WMSFeatureInfoLoader.parse(arrayBuffer,this.loadOptions)}async getFeatureInfoText(wmsParameters,vendorParameters){const url=this.getFeatureInfoURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();return this._checkResponse(response,arrayBuffer),(new TextDecoder).decode(arrayBuffer)}async describeLayer(wmsParameters,vendorParameters){const url=this.describeLayerURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();return this._checkResponse(response,arrayBuffer),await WMSLayerDescriptionLoader.parse(arrayBuffer,this.loadOptions)}async getLegendGraphic(wmsParameters,vendorParameters){const url=this.getLegendGraphicURL(wmsParameters,vendorParameters),response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();this._checkResponse(response,arrayBuffer);try{return await image_loader.S.parse(arrayBuffer,this.loadOptions)}catch{throw this._parseError(arrayBuffer)}}getCapabilitiesURL(wmsParameters,vendorParameters){const options={version:this.wmsParameters.version,...wmsParameters};return this._getWMSUrl("GetCapabilities",options,vendorParameters)}getMapURL(wmsParameters,vendorParameters){wmsParameters=this._getWMS130Parameters(wmsParameters);const options={version:this.wmsParameters.version,format:this.wmsParameters.format,transparent:this.wmsParameters.transparent,time:this.wmsParameters.time,elevation:this.wmsParameters.elevation,layers:this.wmsParameters.layers,styles:this.wmsParameters.styles,crs:this.wmsParameters.crs,...wmsParameters};return this._getWMSUrl("GetMap",options,vendorParameters)}getFeatureInfoURL(wmsParameters,vendorParameters){const options={version:this.wmsParameters.version,info_format:this.wmsParameters.info_format,layers:this.wmsParameters.layers,query_layers:this.wmsParameters.query_layers,styles:this.wmsParameters.styles,crs:this.wmsParameters.crs,...wmsParameters};return this._getWMSUrl("GetFeatureInfo",options,vendorParameters)}describeLayerURL(wmsParameters,vendorParameters){const options={version:this.wmsParameters.version,...wmsParameters};return this._getWMSUrl("DescribeLayer",options,vendorParameters)}getLegendGraphicURL(wmsParameters,vendorParameters){const options={version:this.wmsParameters.version,...wmsParameters};return this._getWMSUrl("GetLegendGraphic",options,vendorParameters)}_parseWMSUrl(url){const[baseUrl,search]=url.split("?"),searchParams=search.split("&"),parameters={};for(const parameter of searchParams){const[key,value]=parameter.split("=");parameters[key]=value}return{url:baseUrl,parameters:parameters}}_getWMSUrl(request,wmsParameters,vendorParameters){let url=this.url,first=!0;const allParameters={service:"WMS",version:wmsParameters.version,request:request,...wmsParameters,...this.vendorParameters,...vendorParameters},IGNORE_EMPTY_KEYS=["transparent","time","elevation"];for(const[key,value]of Object.entries(allParameters))IGNORE_EMPTY_KEYS.includes(key)&&!value||(url+=first?"?":"&",first=!1,url+=this._getURLParameter(key,value,wmsParameters));return encodeURI(url)}_getWMS130Parameters(wmsParameters){const newParameters={...wmsParameters};return newParameters.srs&&(newParameters.crs=newParameters.crs||newParameters.srs,delete newParameters.srs),newParameters}_getURLParameter(key,value,wmsParameters){switch(key){case"crs":"1.3.0"!==wmsParameters.version?key="srs":this.substituteCRS84&&"EPSG:4326"===value&&(value="CRS:84");break;case"srs":"1.3.0"===wmsParameters.version&&(key="crs");break;case"bbox":const bbox=this._flipBoundingBox(value,wmsParameters);bbox&&(value=bbox)}return key=key.toUpperCase(),Array.isArray(value)?"".concat(key,"=").concat(value.join(",")):"".concat(key,"=").concat(value?String(value):"")}_flipBoundingBox(bboxValue,wmsParameters){if(!Array.isArray(bboxValue)||4!==bboxValue.length)return null;const bbox=bboxValue;return"1.3.0"===wmsParameters.version&&this.flipCRS.includes(wmsParameters.crs||"")&&!(this.substituteCRS84&&"EPSG:4326"===wmsParameters.crs)?[bbox[1],bbox[0],bbox[3],bbox[2]]:bbox}async _fetchArrayBuffer(url){const response=await this.fetch(url),arrayBuffer=await response.arrayBuffer();return this._checkResponse(response,arrayBuffer),arrayBuffer}_checkResponse(response,arrayBuffer){const contentType=response.headers["content-type"];if(!response.ok||WMSErrorLoader.mimeTypes.includes(contentType)){const loadOptions=function mergeLoaderOptions(baseOptions,newOptions){const options={...baseOptions};for(const[key,newValue]of Object.entries(newOptions))newValue&&"object"==typeof newValue?(options[key]=options[key]||{},Object.assign(options[key],newOptions[key])):options[key]=newOptions[key];return options}(this.loadOptions,{wms:{throwOnError:!0}}),error=WMSErrorLoader.parseSync(arrayBuffer,loadOptions);throw new Error(error)}}_parseError(arrayBuffer){const error=WMSErrorLoader.parseSync(arrayBuffer,this.loadOptions);return new Error(error)}}(0,defineProperty.Z)(WMSService,"type","wms"),(0,defineProperty.Z)(WMSService,"testURL",(url=>url.toLowerCase().includes("wms")));class ArcGISImageServer extends ImageSource{constructor(props){super(props)}async getMetadata(){return await this.metadata()}async getImage(parameters){throw new Error("not implemented")}async metadata(){throw new Error("not implemented")}exportImage(options){throw new Error("not implemented")}metadataURL(options){return"".concat(this.props.url,"?f=pjson")}exportImageURL(options){const bbox="bbox=".concat(options.bbox[0],",").concat(options.bbox[1],",").concat(options.bbox[2],",").concat(options.bbox[3]),size="size=".concat(options.width,",").concat(options.height),arcgisOptions={...options,bbox:bbox,size:size};return delete arcgisOptions.width,delete arcgisOptions.height,this.getUrl("exportImage",arcgisOptions)}getUrl(path,options,extra){let url="".concat(this.props.url,"/").concat(path),first=!0;for(const[key,value]of Object.entries(options))url+=first?"?":"&",first=!1,Array.isArray(value)?url+="".concat(key.toUpperCase(),"=").concat(value.join(",")):url+="".concat(key.toUpperCase(),"=").concat(value?String(value):"");return url}async checkResponse(response){if(!response.ok)throw new Error("error")}}(0,defineProperty.Z)(ArcGISImageServer,"type","arcgis-image-server"),(0,defineProperty.Z)(ArcGISImageServer,"testURL",(url=>url.toLowerCase().includes("ImageServer")));const SERVICES=[WMSService,ArcGISImageServer,ImageService];function createImageSource(props){const{type:type="auto"}=props;switch("auto"===type?function guessServiceType(url){for(const Service of SERVICES)if(Service.testURL&&Service.testURL(url))return Service.type;return"wms"}(props.url):type){case"template":return new ImageService(props);case"wms":return new WMSService(props);default:throw new Error("Not a valid image source type")}}var esm=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js");const HALF_EARTH_CIRCUMFERENCE=6378137*Math.PI;function WGS84ToPseudoMercator(coord){const mercator=(0,esm.w5)(coord);return mercator[0]=(mercator[0]/256-1)*HALF_EARTH_CIRCUMFERENCE,mercator[1]=(mercator[1]/256-1)*HALF_EARTH_CIRCUMFERENCE,mercator}const defaultProps={id:"imagery-layer",data:"",serviceType:"auto",srs:"auto",layers:{type:"array",compare:!0,value:[]},onMetadataLoad:{type:"function",value:()=>{}},onMetadataLoadError:{type:"function",value:console.error},onImageLoadStart:{type:"function",value:()=>{}},onImageLoad:{type:"function",value:()=>{}},onImageLoadError:{type:"function",compare:!1,value:(requestId,error)=>console.error(error,requestId)}};class WMSLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}get isLoaded(){var _this$state;return 0===(null===(_this$state=this.state)||void 0===_this$state?void 0:_this$state.loadCounter)&&super.isLoaded}shouldUpdateState(){return!0}initializeState(){this.state._nextRequestId=0,this.state.lastRequestId=-1,this.state.loadCounter=0}updateState({changeFlags:changeFlags,props:props,oldProps:oldProps}){const{viewport:viewport}=this.context;changeFlags.dataChanged||props.serviceType!==oldProps.serviceType?(this.state.imageSource=this._createImageSource(props),this._loadMetadata(),this.debounce((()=>this.loadImage(viewport,"image source changed")),0)):(0,deep_equal.v)(props.layers,oldProps.layers,1)?changeFlags.viewportChanged&&this.debounce((()=>this.loadImage(viewport,"viewport changed"))):this.debounce((()=>this.loadImage(viewport,"layers changed")),0)}finalizeState(){}renderLayers(){const{bounds:bounds,image:image,lastRequestParameters:lastRequestParameters}=this.state;return image&&new bitmap_layer.Z({...this.getSubLayerProps({id:"bitmap"}),_imageCoordinateSystem:"EPSG:4326"===lastRequestParameters.srs?constants.COORDINATE_SYSTEM.LNGLAT:constants.COORDINATE_SYSTEM.CARTESIAN,bounds:bounds,image:image})}async getFeatureInfoText(x,y){const{lastRequestParameters:lastRequestParameters}=this.state;if(lastRequestParameters){var _this$state$imageSour,_this$state$imageSour2;return await(null===(_this$state$imageSour=(_this$state$imageSour2=this.state.imageSource).getFeatureInfoText)||void 0===_this$state$imageSour?void 0:_this$state$imageSour.call(_this$state$imageSour2,{...lastRequestParameters,query_layers:lastRequestParameters.layers,x:x,y:y,info_format:"application/vnd.ogc.gml"}))}return""}_createImageSource(props){if(props.data instanceof ImageSource)return props.data;if("string"==typeof props.data)return createImageSource({url:props.data,loadOptions:props.loadOptions,type:props.serviceType});throw new Error("invalid image source in props.data")}async _loadMetadata(){const{imageSource:imageSource}=this.state;try{this.state.loadCounter++;const metadata=await imageSource.getMetadata();var _this$getCurrentLayer;if(this.state.imageSource===imageSource)null===(_this$getCurrentLayer=this.getCurrentLayer())||void 0===_this$getCurrentLayer||_this$getCurrentLayer.props.onMetadataLoad(metadata)}catch(error){var _this$getCurrentLayer2;null===(_this$getCurrentLayer2=this.getCurrentLayer())||void 0===_this$getCurrentLayer2||_this$getCurrentLayer2.props.onMetadataLoadError(error)}finally{this.state.loadCounter--}}async loadImage(viewport,reason){const{layers:layers,serviceType:serviceType}=this.props;if("wms"===serviceType&&0===layers.length)return;const bounds=viewport.getBounds(),{width:width,height:height}=viewport,requestId=this.getRequestId();let{srs:srs}=this.props;"auto"===srs&&(srs=viewport.resolution?"EPSG:4326":"EPSG:3857");const requestParams={width:width,height:height,bbox:bounds,layers:layers,srs:srs};if("EPSG:3857"===srs){const[minX,minY]=WGS84ToPseudoMercator([bounds[0],bounds[1]]),[maxX,maxY]=WGS84ToPseudoMercator([bounds[2],bounds[3]]);requestParams.bbox=[minX,minY,maxX,maxY]}try{this.state.loadCounter++,this.props.onImageLoadStart(requestId);const image=await this.state.imageSource.getImage(requestParams);var _this$getCurrentLayer3;if(this.state.lastRequestIdfn()),ms)}}(0,defineProperty.Z)(WMSLayer,"layerName","WMSLayer"),(0,defineProperty.Z)(WMSLayer,"defaultProps",defaultProps);var arc_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/arc-layer/arc-layer.js");class GreatCircleLayer extends arc_layer.Z{}(0,defineProperty.Z)(GreatCircleLayer,"layerName","GreatCircleLayer"),(0,defineProperty.Z)(GreatCircleLayer,"defaultProps",{getHeight:{type:"accessor",value:0},greatCircle:!0});var polygon_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/polygon-layer/polygon-layer.js");const GeoCellLayer_defaultProps={...polygon_layer.Z.defaultProps};class GeoCellLayer extends composite_layer.Z{indexToBounds(){return null}renderLayers(){const{elevationScale:elevationScale,extruded:extruded,wireframe:wireframe,filled:filled,stroked:stroked,lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels,lineJointRounded:lineJointRounded,lineMiterLimit:lineMiterLimit,lineDashJustified:lineDashJustified,getElevation:getElevation,getFillColor:getFillColor,getLineColor:getLineColor,getLineWidth:getLineWidth}=this.props,{updateTriggers:updateTriggers,material:material,transitions:transitions}=this.props,CellLayer=this.getSubLayerClass("cell",polygon_layer.Z),{updateTriggers:boundsUpdateTriggers,...boundsProps}=this.indexToBounds()||{};return new CellLayer({filled:filled,wireframe:wireframe,extruded:extruded,elevationScale:elevationScale,stroked:stroked,lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels,lineJointRounded:lineJointRounded,lineMiterLimit:lineMiterLimit,lineDashJustified:lineDashJustified,material:material,transitions:transitions,getElevation:getElevation,getFillColor:getFillColor,getLineColor:getLineColor,getLineWidth:getLineWidth},this.getSubLayerProps({id:"cell",updateTriggers:updateTriggers&&{...boundsUpdateTriggers,getElevation:updateTriggers.getElevation,getFillColor:updateTriggers.getFillColor,getLineColor:updateTriggers.getLineColor,getLineWidth:updateTriggers.getLineWidth}}),boundsProps)}}(0,defineProperty.Z)(GeoCellLayer,"layerName","GeoCellLayer"),(0,defineProperty.Z)(GeoCellLayer,"defaultProps",GeoCellLayer_defaultProps);var dist_long=__webpack_require__("./node_modules/long/dist/long.js"),long_default=__webpack_require__.n(dist_long);const FACE_BITS=3,POS_BITS=61,RADIAN_TO_DEGREE=180/Math.PI;function IJToST(ij,order,offsets){const maxSize=1<=.5?1/3*(4*st*st-1):1/3*(1-4*(1-st)*(1-st))}function STToUV(st){return[singleSTtoUV(st[0]),singleSTtoUV(st[1])]}function FaceUVToXYZ(face,[u,v]){switch(face){case 0:return[1,u,v];case 1:return[-u,1,v];case 2:return[-u,-v,1];case 3:return[-1,-v,-u];case 4:return[v,-1,-u];case 5:return[v,u,-1];default:throw new Error("Invalid face")}}function XYZToLngLat([x,y,z]){const lat=Math.atan2(z,Math.sqrt(x*x+y*y));return[Math.atan2(y,x)*RADIAN_TO_DEGREE,lat*RADIAN_TO_DEGREE]}function rotateAndFlipQuadrant(n,point,rx,ry){if(0===ry){1===rx&&(point[0]=n-1-point[0],point[1]=n-1-point[1]);const x=point[0];point[0]=point[1],point[1]=x}}const MAX_RESOLUTION=100;function getS2QuadKey(token){if("string"==typeof token){if(token.indexOf("/")>0)return token;token=function getIdFromToken(token){const paddedToken=token.padEnd(16,"0");return long_default().fromString(paddedToken,16)}(token)}return function toHilbertQuadkey(idS){let bin=long_default().fromString(idS,!0,10).toString(2);for(;bin.length=0;i--){level=maxLevel-i;const bit=position[i];let rx=0,ry=0;"1"===bit?ry=1:"2"===bit?(rx=1,ry=1):"3"===bit&&(rx=1);const val=Math.pow(2,level-1);rotateAndFlipQuadrant(val,point,rx,ry),point[0]+=val*rx,point[1]+=val*ry}if(face%2==1){const t=point[0];point[0]=point[1],point[1]=t}return{face:face,ij:point,level:level}}(getS2QuadKey(token));return function getGeoBounds({face:face,ij:ij,level:level}){const offsets=[[0,0],[0,1],[1,1],[1,0],[0,0]],resolution=Math.max(1,Math.ceil(MAX_RESOLUTION*Math.pow(2,-level))),result=new Float64Array(4*resolution*2+2);let ptIndex=0,prevLng=0;for(let i=0;i<4;i++){const offset=offsets[i].slice(0),nextOffset=offsets[i+1],stepI=(nextOffset[0]-offset[0])/resolution,stepJ=(nextOffset[1]-offset[1])/resolution;for(let j=0;j89.999&&(lngLat[0]=prevLng);const deltaLng=lngLat[0]-prevLng;lngLat[0]+=deltaLng>180?-360:deltaLng<-180?360:0,result[ptIndex++]=lngLat[0],result[ptIndex++]=lngLat[1],prevLng=lngLat[0]}}return result[ptIndex++]=result[0],result[ptIndex++]=result[1],result}(s2cell)}class S2Layer extends GeoCellLayer{indexToBounds(){const{data:data,getS2Token:getS2Token}=this.props;return{data:data,_normalize:!1,positionFormat:"XY",getPolygon:(x,objectInfo)=>getS2Polygon(getS2Token(x,objectInfo))}}}(0,defineProperty.Z)(S2Layer,"layerName","S2Layer"),(0,defineProperty.Z)(S2Layer,"defaultProps",{getS2Token:{type:"accessor",value:d=>d.token}});const TILE_SIZE=512;function getQuadkeyPolygon(quadkey,coverage=1){const[topLeft,bottomRight]=function quadkeyToWorldBounds(quadkey,coverage){let x=0,y=0,mask=1<>=1;const q=parseInt(quadkey[i]);q%2&&(x|=mask),q>1&&(y|=mask)}return[[x/scale,TILE_SIZE-y/scale],[(x+coverage)/scale,TILE_SIZE-(y+coverage)/scale]]}(quadkey,coverage),[w,n]=(0,esm.es)(topLeft),[e,s]=(0,esm.es)(bottomRight);return[e,n,e,s,w,s,w,n,e,n]}class QuadkeyLayer extends GeoCellLayer{indexToBounds(){const{data:data,extruded:extruded,getQuadkey:getQuadkey}=this.props,coverage=extruded?.99:1;return{data:data,_normalize:!1,positionFormat:"XY",getPolygon:(x,objectInfo)=>getQuadkeyPolygon(getQuadkey(x,objectInfo),coverage),updateTriggers:{getPolygon:coverage}}}}(0,defineProperty.Z)(QuadkeyLayer,"layerName","QuadkeyLayer"),(0,defineProperty.Z)(QuadkeyLayer,"defaultProps",{getQuadkey:{type:"accessor",value:d=>d.quadkey}});var flatten=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/flatten.js"),geojson_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/geojson-layer/geojson-layer.js"),process=__webpack_require__("./node_modules/process/browser.js");function getHiResTimestamp(){let timestamp;if("undefined"!=typeof window&&window.performance)timestamp=window.performance.now();else if(void 0!==process&&process.hrtime){const timeParts=process.hrtime();timestamp=1e3*timeParts[0]+timeParts[1]/1e6}else timestamp=Date.now();return timestamp}class Stat{constructor(name,type){this.name=void 0,this.type=void 0,this.sampleSize=1,this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this.name=name,this.type=type,this.reset()}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}setSampleSize(samples){return this.sampleSize=samples,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(value){return this._count+=value,this._samples++,this._checkSampling(),this}subtractCount(value){return this._count-=value,this._samples++,this._checkSampling(),this}addTime(time){return this._time+=time,this.lastTiming=time,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=getHiResTimestamp(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(getHiResTimestamp()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}_checkSampling(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}class Stats{constructor(options){this.id=void 0,this.stats={},this.id=options.id,this.stats={},this._initializeStats(options.stats),Object.seal(this)}get(name){let type=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count";return this._getOrCreate({name:name,type:type})}get size(){return Object.keys(this.stats).length}reset(){for(const stat of Object.values(this.stats))stat.reset();return this}forEach(fn){for(const stat of Object.values(this.stats))fn(stat)}getTable(){const table={};return this.forEach((stat=>{table[stat.name]={time:stat.time||0,count:stat.count||0,average:stat.getAverageTime()||0,hz:stat.getHz()||0}})),table}_initializeStats(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((stat=>this._getOrCreate(stat)))}_getOrCreate(stat){const{name:name,type:type}=stat;let result=this.stats[name];return result||(result=stat instanceof Stat?stat:new Stat(name,type),this.stats[name]=result),result}}const DEFAULT_PROPS={id:"request-scheduler",throttleRequests:!0,maxRequests:6};class RequestScheduler{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,defineProperty.Z)(this,"props",void 0),(0,defineProperty.Z)(this,"stats",void 0),(0,defineProperty.Z)(this,"activeRequestCount",0),(0,defineProperty.Z)(this,"requestQueue",[]),(0,defineProperty.Z)(this,"requestMap",new Map),(0,defineProperty.Z)(this,"deferredUpdate",null),this.props={...DEFAULT_PROPS,...props},this.stats=new Stats({id:this.props.id}),this.stats.get("Queued Requests"),this.stats.get("Active Requests"),this.stats.get("Cancelled Requests"),this.stats.get("Queued Requests Ever"),this.stats.get("Active Requests Ever")}scheduleRequest(handle){let getPriority=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>0;if(!this.props.throttleRequests)return Promise.resolve({done:()=>{}});if(this.requestMap.has(handle))return this.requestMap.get(handle);const request={handle:handle,priority:0,getPriority:getPriority},promise=new Promise((resolve=>(request.resolve=resolve,request)));return this.requestQueue.push(request),this.requestMap.set(handle,promise),this._issueNewRequests(),promise}_issueRequest(request){const{handle:handle,resolve:resolve}=request;let isDone=!1;const done=()=>{isDone||(isDone=!0,this.requestMap.delete(handle),this.activeRequestCount--,this._issueNewRequests())};return this.activeRequestCount++,resolve?resolve({done:done}):Promise.resolve({done:done})}_issueNewRequests(){this.deferredUpdate||(this.deferredUpdate=setTimeout((()=>this._issueNewRequestsAsync()),0))}_issueNewRequestsAsync(){this.deferredUpdate=null;const freeSlots=Math.max(this.props.maxRequests-this.activeRequestCount,0);if(0!==freeSlots){this._updateAllRequests();for(let i=0;ia.priority-b.priority))}_updateRequest(request){return request.priority=request.getPriority(request.handle),!(request.priority<0)||(request.resolve(null),!1)}}var matrix4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),common=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js");class Tile2DHeader{constructor(index){(0,defineProperty.Z)(this,"index",void 0),(0,defineProperty.Z)(this,"isVisible",void 0),(0,defineProperty.Z)(this,"isSelected",void 0),(0,defineProperty.Z)(this,"parent",void 0),(0,defineProperty.Z)(this,"children",void 0),(0,defineProperty.Z)(this,"content",void 0),(0,defineProperty.Z)(this,"state",void 0),(0,defineProperty.Z)(this,"layers",void 0),(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"zoom",void 0),(0,defineProperty.Z)(this,"userData",void 0),(0,defineProperty.Z)(this,"boundingBox",void 0),(0,defineProperty.Z)(this,"_abortController",void 0),(0,defineProperty.Z)(this,"_loader",void 0),(0,defineProperty.Z)(this,"_loaderId",void 0),(0,defineProperty.Z)(this,"_isLoaded",void 0),(0,defineProperty.Z)(this,"_isCancelled",void 0),(0,defineProperty.Z)(this,"_needsReload",void 0),(0,defineProperty.Z)(this,"_bbox",void 0),this.index=index,this.isVisible=!1,this.isSelected=!1,this.parent=null,this.children=[],this.content=null,this._loader=void 0,this._abortController=null,this._loaderId=0,this._isLoaded=!1,this._isCancelled=!1,this._needsReload=!1}get bbox(){return this._bbox}set bbox(value){this._bbox||(this._bbox=value,this.boundingBox="west"in value?[[value.west,value.south],[value.east,value.north]]:[[value.left,value.top],[value.right,value.bottom]])}get data(){return this.isLoading&&this._loader?this._loader.then((()=>this.data)):this.content}get isLoaded(){return this._isLoaded&&!this._needsReload}get isLoading(){return Boolean(this._loader)&&!this._isCancelled}get needsReload(){return this._needsReload||this._isCancelled}get byteLength(){const result=this.content?this.content.byteLength:0;return Number.isFinite(result)||console.error("byteLength not defined in tile data"),result}async _loadData({getData:getData,requestScheduler:requestScheduler,onLoad:onLoad,onError:onError}){const{index:index,id:id,bbox:bbox,userData:userData,zoom:zoom}=this,loaderId=this._loaderId;this._abortController=new AbortController;const{signal:signal}=this._abortController,requestToken=await requestScheduler.scheduleRequest(this,(tile=>tile.isSelected?1:-1));if(!requestToken)return void(this._isCancelled=!0);if(this._isCancelled)return void requestToken.done();let error,tileData=null;try{tileData=await getData({index:index,id:id,bbox:bbox,userData:userData,zoom:zoom,signal:signal})}catch(err){error=err||!0}finally{requestToken.done()}loaderId===this._loaderId&&(this._loader=void 0,this.content=tileData,!this._isCancelled||tileData?(this._isLoaded=!0,this._isCancelled=!1,error?onError(error,this):onLoad(this)):this._isLoaded=!1)}loadData(opts){return this._isLoaded=!1,this._isCancelled=!1,this._needsReload=!1,this._loaderId++,this._loader=this._loadData(opts),this._loader}setNeedsReload(){this.isLoading&&(this.abort(),this._loader=void 0),this._needsReload=!0}abort(){var _this$_abortControlle;this.isLoaded||(this._isCancelled=!0,null===(_this$_abortControlle=this._abortController)||void 0===_this$_abortControlle||_this$_abortControlle.abort())}}var globe_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/globe-viewport.js"),web_mercator_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/web-mercator-viewport.js");const INTERSECTION_OUTSIDE=-1,INTERSECTION_INTERSECTING=0,INTERSECTION_INSIDE=1;var vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js");const scratchVector=new vector3.Z,scratchNormal=new vector3.Z;class axis_aligned_bounding_box_AxisAlignedBoundingBox{constructor(minimum=[0,0,0],maximum=[0,0,0],center){(0,defineProperty.Z)(this,"center",void 0),(0,defineProperty.Z)(this,"halfDiagonal",void 0),(0,defineProperty.Z)(this,"minimum",void 0),(0,defineProperty.Z)(this,"maximum",void 0),center=center||scratchVector.copy(minimum).add(maximum).scale(.5),this.center=new vector3.Z(center),this.halfDiagonal=new vector3.Z(maximum).subtract(this.center),this.minimum=new vector3.Z(minimum),this.maximum=new vector3.Z(maximum)}clone(){return new axis_aligned_bounding_box_AxisAlignedBoundingBox(this.minimum,this.maximum,this.center)}equals(right){return this===right||Boolean(right)&&this.minimum.equals(right.minimum)&&this.maximum.equals(right.maximum)}transform(transform){return this.center.transformAsPoint(transform),this.halfDiagonal.transform(transform),this.minimum.transform(transform),this.maximum.transform(transform),this}intersectPlane(plane){const{halfDiagonal:halfDiagonal}=this,normal=scratchNormal.from(plane.normal),e=halfDiagonal.x*Math.abs(normal.x)+halfDiagonal.y*Math.abs(normal.y)+halfDiagonal.z*Math.abs(normal.z),s=this.center.dot(normal)+plane.distance;return s-e>0?INTERSECTION_INSIDE:s+e<0?INTERSECTION_OUTSIDE:INTERSECTION_INTERSECTING}distanceTo(point){return Math.sqrt(this.distanceSquaredTo(point))}distanceSquaredTo(point){const offset=scratchVector.from(point).subtract(this.center),{halfDiagonal:halfDiagonal}=this;let d,distanceSquared=0;return d=Math.abs(offset.x)-halfDiagonal.x,d>0&&(distanceSquared+=d*d),d=Math.abs(offset.y)-halfDiagonal.y,d>0&&(distanceSquared+=d*d),d=Math.abs(offset.z)-halfDiagonal.z,d>0&&(distanceSquared+=d*d),distanceSquared}}var mat4=__webpack_require__("./node_modules/gl-matrix/esm/mat4.js");const bounding_sphere_scratchVector=new vector3.Z,scratchVector2=new vector3.Z;class bounding_sphere_BoundingSphere{constructor(center=[0,0,0],radius=0){(0,defineProperty.Z)(this,"center",void 0),(0,defineProperty.Z)(this,"radius",void 0),this.radius=-0,this.center=new vector3.Z,this.fromCenterRadius(center,radius)}fromCenterRadius(center,radius){return this.center.from(center),this.radius=radius,this}fromCornerPoints(corner,oppositeCorner){return oppositeCorner=bounding_sphere_scratchVector.from(oppositeCorner),this.center=(new vector3.Z).from(corner).add(oppositeCorner).scale(.5),this.radius=this.center.distance(oppositeCorner),this}equals(right){return this===right||Boolean(right)&&this.center.equals(right.center)&&this.radius===right.radius}clone(){return new bounding_sphere_BoundingSphere(this.center,this.radius)}union(boundingSphere){const leftCenter=this.center,leftRadius=this.radius,rightCenter=boundingSphere.center,rightRadius=boundingSphere.radius,toRightCenter=bounding_sphere_scratchVector.copy(rightCenter).subtract(leftCenter),centerSeparation=toRightCenter.magnitude();if(leftRadius>=centerSeparation+rightRadius)return this.clone();if(rightRadius>=centerSeparation+leftRadius)return boundingSphere.clone();const halfDistanceBetweenTangentPoints=.5*(leftRadius+centerSeparation+rightRadius);return scratchVector2.copy(toRightCenter).scale((-leftRadius+halfDistanceBetweenTangentPoints)/centerSeparation).add(leftCenter),this.center.copy(scratchVector2),this.radius=halfDistanceBetweenTangentPoints,this}expand(point){const radius=bounding_sphere_scratchVector.from(point).subtract(this.center).magnitude();return radius>this.radius&&(this.radius=radius),this}transform(transform){this.center.transform(transform);const scale=mat4.Q$(bounding_sphere_scratchVector,transform);return this.radius=Math.max(scale[0],Math.max(scale[1],scale[2]))*this.radius,this}distanceSquaredTo(point){const d=this.distanceTo(point);return d*d}distanceTo(point){const delta=bounding_sphere_scratchVector.from(point).subtract(this.center);return Math.max(0,delta.len()-this.radius)}intersectPlane(plane){const center=this.center,radius=this.radius,distanceToPlane=plane.normal.dot(center)+plane.distance;return distanceToPlane<-radius?INTERSECTION_OUTSIDE:distanceToPlane=radEffective?INTERSECTION_INSIDE:INTERSECTION_INTERSECTING}distanceTo(point){return Math.sqrt(this.distanceSquaredTo(point))}distanceSquaredTo(point){const offset=scratchOffset.from(point).subtract(this.center),halfAxes=this.halfAxes,u=halfAxes.getColumn(0,scratchVectorU),v=halfAxes.getColumn(1,scratchVectorV),w=halfAxes.getColumn(2,scratchVectorW),uHalf=u.magnitude(),vHalf=v.magnitude(),wHalf=w.magnitude();u.normalize(),v.normalize(),w.normalize();let d,distanceSquared=0;return d=Math.abs(offset.dot(u))-uHalf,d>0&&(distanceSquared+=d*d),d=Math.abs(offset.dot(v))-vHalf,d>0&&(distanceSquared+=d*d),d=Math.abs(offset.dot(w))-wHalf,d>0&&(distanceSquared+=d*d),distanceSquared}computePlaneDistances(position,direction,result=[-0,-0]){let minDist=Number.POSITIVE_INFINITY,maxDist=Number.NEGATIVE_INFINITY;const center=this.center,halfAxes=this.halfAxes,u=halfAxes.getColumn(0,scratchVectorU),v=halfAxes.getColumn(1,scratchVectorV),w=halfAxes.getColumn(2,scratchVectorW),corner=scratchCorner.copy(u).add(v).add(w).add(center),toCenter=scratchToCenter.copy(corner).subtract(position);let mag=direction.dot(toCenter);return minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),corner.copy(center).add(u).add(v).subtract(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),corner.copy(center).add(u).subtract(v).add(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),corner.copy(center).add(u).subtract(v).subtract(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),center.copy(corner).subtract(u).add(v).add(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),center.copy(corner).subtract(u).add(v).subtract(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),center.copy(corner).subtract(u).subtract(v).add(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),center.copy(corner).subtract(u).subtract(v).subtract(w),toCenter.copy(corner).subtract(position),mag=direction.dot(toCenter),minDist=Math.min(mag,minDist),maxDist=Math.max(mag,maxDist),result[0]=minDist,result[1]=maxDist,result}transform(transformation){this.center.transformAsPoint(transformation);const xAxis=this.halfAxes.getColumn(0,scratchVectorU);xAxis.transformAsPoint(transformation);const yAxis=this.halfAxes.getColumn(1,scratchVectorV);yAxis.transformAsPoint(transformation);const zAxis=this.halfAxes.getColumn(2,scratchVectorW);return zAxis.transformAsPoint(transformation),this.halfAxes=new matrix3.Z([...xAxis,...yAxis,...zAxis]),this}getTransform(){throw new Error("not implemented")}}var lib_assert=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/assert.js");const scratchPosition=new vector3.Z,plane_scratchNormal=new vector3.Z;class plane_Plane{constructor(normal=[0,0,1],distance=0){(0,defineProperty.Z)(this,"normal",void 0),(0,defineProperty.Z)(this,"distance",void 0),this.normal=new vector3.Z,this.distance=-0,this.fromNormalDistance(normal,distance)}fromNormalDistance(normal,distance){return(0,lib_assert.Z)(Number.isFinite(distance)),this.normal.from(normal).normalize(),this.distance=distance,this}fromPointNormal(point,normal){point=scratchPosition.from(point),this.normal.from(normal).normalize();const distance=-this.normal.dot(point);return this.distance=distance,this}fromCoefficients(a,b,c,d){return this.normal.set(a,b,c),(0,lib_assert.Z)((0,common.fS)(this.normal.len(),1)),this.distance=d,this}clone(){return new plane_Plane(this.normal,this.distance)}equals(right){return(0,common.fS)(this.distance,right.distance)&&(0,common.fS)(this.normal,right.normal)}getPointDistance(point){return this.normal.dot(point)+this.distance}transform(matrix4){const normal=plane_scratchNormal.copy(this.normal).transformAsVector(matrix4).normalize(),point=this.normal.scale(-this.distance).transform(matrix4);return this.fromPointNormal(point,normal)}projectPointOntoPlane(point,result=[0,0,0]){point=scratchPosition.from(point);const pointDistance=this.getPointDistance(point),scaledNormal=plane_scratchNormal.copy(this.normal).scale(pointDistance);return point.subtract(scaledNormal).to(result)}}const faces=[new vector3.Z([1,0,0]),new vector3.Z([0,1,0]),new vector3.Z([0,0,1])],scratchPlaneCenter=new vector3.Z,scratchPlaneNormal=new vector3.Z;new plane_Plane(new vector3.Z(1,0,0),0);class culling_volume_CullingVolume{constructor(planes=[]){(0,defineProperty.Z)(this,"planes",void 0),this.planes=planes}fromBoundingSphere(boundingSphere){this.planes.length=2*faces.length;const center=boundingSphere.center,radius=boundingSphere.radius;let planeIndex=0;for(const faceNormal of faces){let plane0=this.planes[planeIndex],plane1=this.planes[planeIndex+1];plane0||(plane0=this.planes[planeIndex]=new plane_Plane),plane1||(plane1=this.planes[planeIndex+1]=new plane_Plane);const plane0Center=scratchPlaneCenter.copy(faceNormal).scale(-radius).add(center);faceNormal.dot(plane0Center);plane0.fromPointNormal(plane0Center,faceNormal);const plane1Center=scratchPlaneCenter.copy(faceNormal).scale(radius).add(center),negatedFaceNormal=scratchPlaneNormal.copy(faceNormal).negate();negatedFaceNormal.dot(plane1Center);plane1.fromPointNormal(plane1Center,negatedFaceNormal),planeIndex+=2}return this}computeVisibility(boundingVolume){let intersect=INTERSECTION_INSIDE;for(const plane of this.planes){switch(boundingVolume.intersectPlane(plane)){case INTERSECTION_OUTSIDE:return INTERSECTION_OUTSIDE;case INTERSECTION_INTERSECTING:intersect=INTERSECTION_INTERSECTING}}return intersect}computeVisibilityWithPlaneMask(boundingVolume,parentPlaneMask){if((0,lib_assert.Z)(Number.isFinite(parentPlaneMask),"parentPlaneMask is required."),parentPlaneMask===culling_volume_CullingVolume.MASK_OUTSIDE||parentPlaneMask===culling_volume_CullingVolume.MASK_INSIDE)return parentPlaneMask;let mask=culling_volume_CullingVolume.MASK_INSIDE;const planes=this.planes;for(let k=0;kepsilon;)shurDecomposition(diagonalMatrix,jMatrix),jMatrixTranspose.copy(jMatrix).transpose(),diagonalMatrix.multiplyRight(jMatrix),diagonalMatrix.multiplyLeft(jMatrixTranspose),unitaryMatrix.multiplyRight(jMatrix),++count>2&&(++sweep,count=0);return result.unitary=unitaryMatrix.toTarget(result.unitary),result.diagonal=diagonalMatrix.toTarget(result.diagonal),result}const rowVal=[1,0,0],colVal=[2,2,1];function offDiagonalFrobeniusNorm(matrix){let norm=0;for(let i=0;i<3;++i){const temp=matrix[scratchMatrix.getElementIndex(colVal[i],rowVal[i])];norm+=2*temp*temp}return Math.sqrt(norm)}function shurDecomposition(matrix,result){const tolerance=math_utils.Z.EPSILON15;let maxDiagonal=0,rotAxis=1;for(let i=0;i<3;++i){const temp=Math.abs(matrix[scratchMatrix.getElementIndex(colVal[i],rowVal[i])]);temp>maxDiagonal&&(rotAxis=i,maxDiagonal=temp)}const p=rowVal[rotAxis],q=colVal[rotAxis];let c=1,s=0;if(Math.abs(matrix[scratchMatrix.getElementIndex(q,p)])>tolerance){const tau=(matrix[scratchMatrix.getElementIndex(q,q)]-matrix[scratchMatrix.getElementIndex(p,p)])/2/matrix[scratchMatrix.getElementIndex(q,p)];let t;t=tau<0?-1/(-tau+Math.sqrt(1+tau*tau)):1/(tau+Math.sqrt(1+tau*tau)),c=1/Math.sqrt(1+t*t),s=t*c}return matrix3.Z.IDENTITY.to(result),result[scratchMatrix.getElementIndex(p,p)]=result[scratchMatrix.getElementIndex(q,q)]=c,result[scratchMatrix.getElementIndex(q,p)]=s,result[scratchMatrix.getElementIndex(p,q)]=-s,result}const bounding_box_from_points_scratchVector2=new vector3.Z,bounding_box_from_points_scratchVector3=new vector3.Z,scratchVector4=new vector3.Z,scratchVector5=new vector3.Z,scratchVector6=new vector3.Z,scratchCovarianceResult=new matrix3.Z,scratchEigenResult={diagonal:new matrix3.Z,unitary:new matrix3.Z};function makeOrientedBoundingBoxFromPoints(positions,result=new OrientedBoundingBox){if(!positions||0===positions.length)return result.halfAxes=new matrix3.Z([0,0,0,0,0,0,0,0,0]),result.center=new vector3.Z,result;const length=positions.length,meanPoint=new vector3.Z(0,0,0);for(const position of positions)meanPoint.add(position);const invLength=1/length;meanPoint.multiplyByScalar(invLength);let exx=0,exy=0,exz=0,eyy=0,eyz=0,ezz=0;for(const position of positions){const p=bounding_box_from_points_scratchVector2.copy(position).subtract(meanPoint);exx+=p.x*p.x,exy+=p.x*p.y,exz+=p.x*p.z,eyy+=p.y*p.y,eyz+=p.y*p.z,ezz+=p.z*p.z}exx*=invLength,exy*=invLength,exz*=invLength,eyy*=invLength,eyz*=invLength,ezz*=invLength;const covarianceMatrix=scratchCovarianceResult;covarianceMatrix[0]=exx,covarianceMatrix[1]=exy,covarianceMatrix[2]=exz,covarianceMatrix[3]=exy,covarianceMatrix[4]=eyy,covarianceMatrix[5]=eyz,covarianceMatrix[6]=exz,covarianceMatrix[7]=eyz,covarianceMatrix[8]=ezz;const{unitary:unitary}=computeEigenDecomposition(covarianceMatrix,scratchEigenResult),rotation=result.halfAxes.copy(unitary);let v1=rotation.getColumn(0,scratchVector4),v2=rotation.getColumn(1,scratchVector5),v3=rotation.getColumn(2,scratchVector6),u1=-Number.MAX_VALUE,u2=-Number.MAX_VALUE,u3=-Number.MAX_VALUE,l1=Number.MAX_VALUE,l2=Number.MAX_VALUE,l3=Number.MAX_VALUE;for(const position of positions)bounding_box_from_points_scratchVector2.copy(position),u1=Math.max(bounding_box_from_points_scratchVector2.dot(v1),u1),u2=Math.max(bounding_box_from_points_scratchVector2.dot(v2),u2),u3=Math.max(bounding_box_from_points_scratchVector2.dot(v3),u3),l1=Math.min(bounding_box_from_points_scratchVector2.dot(v1),l1),l2=Math.min(bounding_box_from_points_scratchVector2.dot(v2),l2),l3=Math.min(bounding_box_from_points_scratchVector2.dot(v3),l3);v1=v1.multiplyByScalar(.5*(l1+u1)),v2=v2.multiplyByScalar(.5*(l2+u2)),v3=v3.multiplyByScalar(.5*(l3+u3)),result.center.copy(v1).add(v2).add(v3);const scale=bounding_box_from_points_scratchVector3.set(u1-l1,u2-l2,u3-l3).multiplyByScalar(.5),scaleMatrix=new matrix3.Z([scale[0],0,0,0,scale[1],0,0,0,scale[2]]);return result.halfAxes.multiplyRight(scaleMatrix),result}const tile_2d_traversal_TILE_SIZE=512,MAX_MAPS=3,REF_POINTS_5=[[.5,.5],[0,0],[0,1],[1,0],[1,1]],REF_POINTS_9=REF_POINTS_5.concat([[0,.5],[.5,0],[1,.5],[.5,1]]),REF_POINTS_11=REF_POINTS_9.concat([[.25,.5],[.75,.5]]);class OSMNode{constructor(x,y,z){(0,defineProperty.Z)(this,"x",void 0),(0,defineProperty.Z)(this,"y",void 0),(0,defineProperty.Z)(this,"z",void 0),(0,defineProperty.Z)(this,"childVisible",void 0),(0,defineProperty.Z)(this,"selected",void 0),(0,defineProperty.Z)(this,"_children",void 0),this.x=x,this.y=y,this.z=z}get children(){if(!this._children){const x=2*this.x,y=2*this.y,z=this.z+1;this._children=[new OSMNode(x,y,z),new OSMNode(x,y+1,z),new OSMNode(x+1,y,z),new OSMNode(x+1,y+1,z)]}return this._children}update(params){const{viewport:viewport,cullingVolume:cullingVolume,elevationBounds:elevationBounds,minZ:minZ,maxZ:maxZ,bounds:bounds,offset:offset,project:project}=params,boundingVolume=this.getBoundingVolume(elevationBounds,offset,project);if(bounds&&!this.insideBounds(bounds))return!1;if(cullingVolume.computeVisibility(boundingVolume)<0)return!1;if(!this.childVisible){let{z:z}=this;if(z=minZ){const distance=boundingVolume.distanceTo(viewport.cameraPosition)*viewport.scale/viewport.height;z+=Math.floor(Math.log2(distance))}if(z>=maxZ)return this.selected=!0,!0}this.selected=!1,this.childVisible=!0;for(const child of this.children)child.update(params);return!0}getSelected(result=[]){if(this.selected&&result.push(this),this._children)for(const node of this._children)node.getSelected(result);return result}insideBounds([minX,minY,maxX,maxY]){const scale=Math.pow(2,this.z),extent=tile_2d_traversal_TILE_SIZE/scale;return this.x*extentminX&&(this.y+1)*extent>minY}getBoundingVolume(zRange,worldOffset,project){if(project){const refPoints=this.z<1?REF_POINTS_11:this.z<2?REF_POINTS_9:REF_POINTS_5,refPointPositions=[];for(const p of refPoints){const lngLat=osmTile2lngLat(this.x+p[0],this.y+p[1],this.z);lngLat[2]=zRange[0],refPointPositions.push(project(lngLat)),zRange[0]!==zRange[1]&&(lngLat[2]=zRange[1],refPointPositions.push(project(lngLat)))}return makeOrientedBoundingBoxFromPoints(refPointPositions)}const scale=Math.pow(2,this.z),extent=tile_2d_traversal_TILE_SIZE/scale,originX=this.x*extent+worldOffset*tile_2d_traversal_TILE_SIZE,originY=tile_2d_traversal_TILE_SIZE-(this.y+1)*extent;return new axis_aligned_bounding_box_AxisAlignedBoundingBox([originX,originY,zRange[0]],[originX+extent,originY+extent,zRange[1]])}}const utils_TILE_SIZE=512,DEFAULT_EXTENT=[-1/0,-1/0,1/0,1/0],urlType={type:"object",value:null,validate:(value,propType)=>propType.optional&&null===value||"string"==typeof value||Array.isArray(value)&&value.every((url=>"string"==typeof url)),equal:(value1,value2)=>{if(value1===value2)return!0;if(!Array.isArray(value1)||!Array.isArray(value2))return!1;const len=value1.length;if(len!==value2.length)return!1;for(let i=0;ii[0]))),Math.min(...transformedCoords.map((i=>i[1]))),Math.max(...transformedCoords.map((i=>i[0]))),Math.max(...transformedCoords.map((i=>i[1])))];return transformedBox}function getURLFromTemplate(template,tile){if(!template||!template.length)return null;const{index:index,id:id}=tile;if(Array.isArray(template)){template=template[function stringHash(s){return Math.abs(s.split("").reduce(((a,b)=>(a<<5)-a+b.charCodeAt(0)|0),0))}(id)%template.length]}let url=template;for(const key of Object.keys(index)){const regex=new RegExp("{".concat(key,"}"),"g");url=url.replace(regex,String(index[key]))}return Number.isInteger(index.y)&&Number.isInteger(index.z)&&(url=url.replace(/\{-y\}/g,String(Math.pow(2,index.z)-index.y-1))),url}function getCullBounds({viewport:viewport,z:z=0,cullRect:cullRect}){return(viewport.subViewports||[viewport]).map((v=>getCullBoundsInViewport(v,z||0,cullRect)))}function getCullBoundsInViewport(viewport,z,cullRect){if(!Array.isArray(z)){const x=cullRect.x-viewport.x,y=cullRect.y-viewport.y,{width:width,height:height}=cullRect,unprojectOption={targetZ:z},topLeft=viewport.unproject([x,y],unprojectOption),topRight=viewport.unproject([x+width,y],unprojectOption),bottomLeft=viewport.unproject([x,y+height],unprojectOption),bottomRight=viewport.unproject([x+width,y+height],unprojectOption);return[Math.min(topLeft[0],topRight[0],bottomLeft[0],bottomRight[0]),Math.min(topLeft[1],topRight[1],bottomLeft[1],bottomRight[1]),Math.max(topLeft[0],topRight[0],bottomLeft[0],bottomRight[0]),Math.max(topLeft[1],topRight[1],bottomLeft[1],bottomRight[1])]}const bounds0=getCullBoundsInViewport(viewport,z[0],cullRect),bounds1=getCullBoundsInViewport(viewport,z[1],cullRect);return[Math.min(bounds0[0],bounds1[0]),Math.min(bounds0[1],bounds1[1]),Math.max(bounds0[2],bounds1[2]),Math.max(bounds0[3],bounds1[3])]}function getScale(z,tileSize){return Math.pow(2,z)*utils_TILE_SIZE/tileSize}function osmTile2lngLat(x,y,z){const scale=getScale(z,utils_TILE_SIZE),lng=x/scale*360-180,n=Math.PI-2*Math.PI*y/scale;return[lng,180/Math.PI*Math.atan(.5*(Math.exp(n)-Math.exp(-n)))]}function tile2XY(x,y,z,tileSize){const scale=getScale(z,tileSize);return[x/scale*utils_TILE_SIZE,y/scale*utils_TILE_SIZE]}function tileToBoundingBox(viewport,x,y,z,tileSize=utils_TILE_SIZE){if(viewport.isGeospatial){const[west,north]=osmTile2lngLat(x,y,z),[east,south]=osmTile2lngLat(x+1,y+1,z);return{west:west,north:north,east:east,south:south}}const[left,top]=tile2XY(x,y,z,tileSize),[right,bottom]=tile2XY(x+1,y+1,z,tileSize);return{left:left,top:top,right:right,bottom:bottom}}function getIdentityTileIndices(viewport,z,tileSize,extent,modelMatrixInverse){const bbox=function getBoundingBox(viewport,zRange,extent){let bounds;if(zRange&&2===zRange.length){const[minZ,maxZ]=zRange,bounds0=viewport.getBounds({z:minZ}),bounds1=viewport.getBounds({z:maxZ});bounds=[Math.min(bounds0[0],bounds1[0]),Math.min(bounds0[1],bounds1[1]),Math.max(bounds0[2],bounds1[2]),Math.max(bounds0[3],bounds1[3])]}else bounds=viewport.getBounds();return viewport.isGeospatial?[Math.max(bounds[0],extent[0]),Math.max(bounds[1],extent[1]),Math.min(bounds[2],extent[2]),Math.min(bounds[3],extent[3])]:[Math.max(Math.min(bounds[0],extent[2]),extent[0]),Math.max(Math.min(bounds[1],extent[3]),extent[1]),Math.min(Math.max(bounds[2],extent[0]),extent[2]),Math.min(Math.max(bounds[3],extent[1]),extent[3])]}(viewport,null,extent),scale=getScale(z,tileSize),[minX,minY,maxX,maxY]=function getIndexingCoords(bbox,scale,modelMatrixInverse){if(modelMatrixInverse){const transformedTileIndex=transformBox(bbox,modelMatrixInverse).map((i=>i*scale/utils_TILE_SIZE));return transformedTileIndex}return bbox.map((i=>i*scale/utils_TILE_SIZE))}(bbox,scale,modelMatrixInverse),indices=[];for(let x=Math.floor(minX);xmaxZoom&&(z=maxZoom);let transformedExtent=extent;return modelMatrix&&modelMatrixInverse&&extent&&!viewport.isGeospatial&&(transformedExtent=transformBox(extent,modelMatrix)),viewport.isGeospatial?function getOSMTileIndices(viewport,maxZ,zRange,bounds){const project=viewport instanceof globe_viewport.Z&&viewport.resolution?viewport.projectPosition:null,planes=Object.values(viewport.getFrustumPlanes()).map((({normal:normal,distance:distance})=>new plane_Plane(normal.clone().negate(),distance))),cullingVolume=new culling_volume_CullingVolume(planes),unitsPerMeter=viewport.distanceScales.unitsPerMeter[2],elevationMin=zRange&&zRange[0]*unitsPerMeter||0,elevationMax=zRange&&zRange[1]*unitsPerMeter||0,minZ=viewport instanceof web_mercator_viewport.Z&&viewport.pitch<=60?maxZ:0;if(bounds){const[minLng,minLat,maxLng,maxLat]=bounds,topLeft=(0,esm.w5)([minLng,maxLat]),bottomRight=(0,esm.w5)([maxLng,minLat]);bounds=[topLeft[0],tile_2d_traversal_TILE_SIZE-topLeft[1],bottomRight[0],tile_2d_traversal_TILE_SIZE-bottomRight[1]]}const root=new OSMNode(0,0,0),traversalParams={viewport:viewport,project:project,cullingVolume:cullingVolume,elevationBounds:[elevationMin,elevationMax],minZ:minZ,maxZ:maxZ,bounds:bounds,offset:0};if(root.update(traversalParams),viewport instanceof web_mercator_viewport.Z&&viewport.subViewports&&viewport.subViewports.length>1){for(traversalParams.offset=-1;root.update(traversalParams)&&!(--traversalParams.offset<-MAX_MAPS););for(traversalParams.offset=1;root.update(traversalParams)&&!(++traversalParams.offset>MAX_MAPS););}return root.getSelected()}(viewport,z,zRange,extent):getIdentityTileIndices(viewport,z,tileSize,transformedExtent||DEFAULT_EXTENT,modelMatrixInverse)}function isEqual(a,b){if(a===b)return!0;if(Array.isArray(a)){const len=a.length;if(!b||b.length!==len)return!1;for(let i=0;it1.zoom-t2.zoom));for(const tile of sortedTiles)if(tile.isVisible=Boolean(tile.state&TILE_STATE_VISIBLE),tile.children&&(tile.isVisible||1&tile.state))for(const child of tile.children)child.state=1;else tile.isSelected&&getPlaceholderInChildren(tile)},never:()=>{}},DEFAULT_TILESET2D_PROPS={extent:null,tileSize:512,maxZoom:null,minZoom:null,maxCacheSize:null,maxCacheByteSize:null,refinementStrategy:"best-available",zRange:null,maxRequests:6,zoomOffset:0,onTileLoad:()=>{},onTileUnload:()=>{},onTileError:()=>{}};class Tileset2D{constructor(opts){(0,defineProperty.Z)(this,"opts",void 0),(0,defineProperty.Z)(this,"_requestScheduler",void 0),(0,defineProperty.Z)(this,"_cache",void 0),(0,defineProperty.Z)(this,"_dirty",void 0),(0,defineProperty.Z)(this,"_tiles",void 0),(0,defineProperty.Z)(this,"_cacheByteSize",void 0),(0,defineProperty.Z)(this,"_viewport",void 0),(0,defineProperty.Z)(this,"_zRange",void 0),(0,defineProperty.Z)(this,"_selectedTiles",void 0),(0,defineProperty.Z)(this,"_frameNumber",void 0),(0,defineProperty.Z)(this,"_modelMatrix",void 0),(0,defineProperty.Z)(this,"_modelMatrixInverse",void 0),(0,defineProperty.Z)(this,"_maxZoom",void 0),(0,defineProperty.Z)(this,"_minZoom",void 0),(0,defineProperty.Z)(this,"onTileLoad",void 0),(0,defineProperty.Z)(this,"_getCullBounds",function memoize(compute){let cachedResult,cachedArgs={};return args=>{for(const key in args)if(!isEqual(args[key],cachedArgs[key])){cachedResult=compute(args),cachedArgs=args;break}return cachedResult}}(getCullBounds)),this.opts={...DEFAULT_TILESET2D_PROPS,...opts},this.onTileLoad=tile=>{var _this$opts$onTileLoad,_this$opts;null===(_this$opts$onTileLoad=(_this$opts=this.opts).onTileLoad)||void 0===_this$opts$onTileLoad||_this$opts$onTileLoad.call(_this$opts,tile),this.opts.maxCacheByteSize&&(this._cacheByteSize+=tile.byteLength,this._resizeCache())},this._requestScheduler=new RequestScheduler({maxRequests:opts.maxRequests,throttleRequests:Boolean(opts.maxRequests&&opts.maxRequests>0)}),this._cache=new Map,this._tiles=[],this._dirty=!1,this._cacheByteSize=0,this._viewport=null,this._zRange=null,this._selectedTiles=null,this._frameNumber=0,this._modelMatrix=new matrix4.Z,this._modelMatrixInverse=new matrix4.Z,this.setOptions(opts)}get tiles(){return this._tiles}get selectedTiles(){return this._selectedTiles}get isLoaded(){return null!==this._selectedTiles&&this._selectedTiles.every((tile=>tile.isLoaded))}get needsReload(){return null!==this._selectedTiles&&this._selectedTiles.some((tile=>tile.needsReload))}setOptions(opts){Object.assign(this.opts,opts),Number.isFinite(opts.maxZoom)&&(this._maxZoom=Math.floor(opts.maxZoom)),Number.isFinite(opts.minZoom)&&(this._minZoom=Math.ceil(opts.minZoom))}finalize(){for(const tile of this._cache.values())tile.isLoading&&tile.abort();this._cache.clear(),this._tiles=[],this._selectedTiles=null}reloadAll(){for(const id of this._cache.keys()){const tile=this._cache.get(id);this._selectedTiles&&this._selectedTiles.includes(tile)?tile.setNeedsReload():this._cache.delete(id)}}update(viewport,{zRange:zRange,modelMatrix:modelMatrix}={zRange:null,modelMatrix:null}){const modelMatrixAsMatrix4=modelMatrix?new matrix4.Z(modelMatrix):new matrix4.Z,isModelMatrixNew=!modelMatrixAsMatrix4.equals(this._modelMatrix);if(this._viewport&&viewport.equals(this._viewport)&&(0,common.fS)(this._zRange,zRange)&&!isModelMatrixNew)this.needsReload&&(this._selectedTiles=this._selectedTiles.map((tile=>this._getTile(tile.index,!0))));else{isModelMatrixNew&&(this._modelMatrixInverse=modelMatrixAsMatrix4.clone().invert(),this._modelMatrix=modelMatrixAsMatrix4),this._viewport=viewport,this._zRange=zRange;const tileIndices=this.getTileIndices({viewport:viewport,maxZoom:this._maxZoom,minZoom:this._minZoom,zRange:zRange,modelMatrix:this._modelMatrix,modelMatrixInverse:this._modelMatrixInverse});this._selectedTiles=tileIndices.map((index=>this._getTile(index,!0))),this._dirty&&this._rebuildTree()}const changed=this.updateTileStates();return this._pruneRequests(),this._dirty&&this._resizeCache(),changed&&this._frameNumber++,this._frameNumber}isTileVisible(tile,cullRect){if(!tile.isVisible)return!1;if(cullRect&&this._viewport){const boundsArr=this._getCullBounds({viewport:this._viewport,z:this._zRange,cullRect:cullRect}),{bbox:bbox}=tile;for(const[minX,minY,maxX,maxY]of boundsArr){let overlaps;if("west"in bbox)overlaps=bbox.westminX&&bbox.southminY;else{const y0=Math.min(bbox.top,bbox.bottom),y1=Math.max(bbox.top,bbox.bottom);overlaps=bbox.leftminX&&y0minY}if(overlaps)return!0}return!1}return!0}getTileIndices({viewport:viewport,maxZoom:maxZoom,minZoom:minZoom,zRange:zRange,modelMatrix:modelMatrix,modelMatrixInverse:modelMatrixInverse}){const{tileSize:tileSize,extent:extent,zoomOffset:zoomOffset}=this.opts;return getTileIndices({viewport:viewport,maxZoom:maxZoom,minZoom:minZoom,zRange:zRange,tileSize:tileSize,extent:extent,modelMatrix:modelMatrix,modelMatrixInverse:modelMatrixInverse,zoomOffset:zoomOffset})}getTileId(index){return"".concat(index.x,"-").concat(index.y,"-").concat(index.z)}getTileZoom(index){return index.z}getTileMetadata(index){const{tileSize:tileSize}=this.opts;return{bbox:tileToBoundingBox(this._viewport,index.x,index.y,index.z,tileSize)}}getParentIndex(index){return{x:Math.floor(index.x/2),y:Math.floor(index.y/2),z:index.z-1}}updateTileStates(){const refinementStrategy=this.opts.refinementStrategy||"best-available",visibilities=new Array(this._cache.size);let i=0;for(const tile of this._cache.values())visibilities[i++]=tile.isVisible,tile.isSelected=!1,tile.isVisible=!1;for(const tile of this._selectedTiles)tile.isSelected=!0,tile.isVisible=!0;("function"==typeof refinementStrategy?refinementStrategy:STRATEGIES[refinementStrategy])(Array.from(this._cache.values())),i=0;for(const tile of this._cache.values())if(visibilities[i++]!==tile.isVisible)return!0;return!1}_pruneRequests(){const{maxRequests:maxRequests=0}=this.opts,abortCandidates=[];let ongoingRequestCount=0;for(const tile of this._cache.values())tile.isLoading&&(ongoingRequestCount++,tile.isSelected||tile.isVisible||abortCandidates.push(tile));for(;maxRequests>0&&ongoingRequestCount>maxRequests&&abortCandidates.length>0;){abortCandidates.shift().abort(),ongoingRequestCount--}}_rebuildTree(){const{_cache:_cache}=this;for(const tile of _cache.values())tile.parent=null,tile.children&&(tile.children.length=0);for(const tile of _cache.values()){const parent=this._getNearestAncestor(tile);tile.parent=parent,null!=parent&&parent.children&&parent.children.push(tile)}}_resizeCache(){const{_cache:_cache,opts:opts}=this,maxCacheSize=opts.maxCacheSize||(opts.maxCacheByteSize?1/0:5*this.selectedTiles.length),maxCacheByteSize=opts.maxCacheByteSize||1/0;if(_cache.size>maxCacheSize||this._cacheByteSize>maxCacheByteSize){for(const[id,tile]of _cache){var _this$opts$onTileUnlo,_this$opts2;if(!tile.isVisible&&!tile.isSelected)this._cacheByteSize-=opts.maxCacheByteSize?tile.byteLength:0,_cache.delete(id),null===(_this$opts$onTileUnlo=(_this$opts2=this.opts).onTileUnload)||void 0===_this$opts$onTileUnlo||_this$opts$onTileUnlo.call(_this$opts2,tile);if(_cache.size<=maxCacheSize&&this._cacheByteSize<=maxCacheByteSize)break}this._rebuildTree(),this._dirty=!0}this._dirty&&(this._tiles=Array.from(this._cache.values()).sort(((t1,t2)=>t1.zoom-t2.zoom)),this._dirty=!1)}_getTile(index,create){const id=this.getTileId(index);let tile=this._cache.get(id),needsReload=!1;return!tile&&create?(tile=new Tile2DHeader(index),Object.assign(tile,this.getTileMetadata(tile.index)),Object.assign(tile,{id:id,zoom:this.getTileZoom(tile.index)}),needsReload=!0,this._cache.set(id,tile),this._dirty=!0):tile&&tile.needsReload&&(needsReload=!0),tile&&needsReload&&tile.loadData({getData:this.opts.getTileData,requestScheduler:this._requestScheduler,onLoad:this.onTileLoad,onError:this.opts.onTileError}),tile}_getNearestAncestor(tile){const{_minZoom:_minZoom=0}=this;let index=tile.index;for(;this.getTileZoom(index)>_minZoom;){index=this.getParentIndex(index);const parent=this._getTile(index);if(parent)return parent}return null}}function getPlaceholderInAncestors(startTile){let tile=startTile;for(;tile;){if(tile.isLoaded||tile.content)return tile.state|=TILE_STATE_VISIBLE,!0;tile=tile.parent}return!1}function getPlaceholderInChildren(tile){for(const child of tile.children)child.isLoaded||child.content?child.state|=TILE_STATE_VISIBLE:getPlaceholderInChildren(child)}const tile_layer_defaultProps={TilesetClass:Tileset2D,data:{type:"data",value:[]},dataComparator:urlType.equal,renderSubLayers:{type:"function",value:props=>new geojson_layer.Z(props)},getTileData:{type:"function",optional:!0,value:null},onViewportLoad:{type:"function",optional:!0,value:null},onTileLoad:{type:"function",value:tile=>{}},onTileUnload:{type:"function",value:tile=>{}},onTileError:{type:"function",value:err=>console.error(err)},extent:{type:"array",optional:!0,value:null,compare:!0},tileSize:512,maxZoom:null,minZoom:0,maxCacheSize:null,maxCacheByteSize:null,refinementStrategy:"best-available",zRange:null,maxRequests:6,zoomOffset:0};class TileLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){this.state={tileset:null,isLoaded:!1}}finalizeState(){var _this$state,_this$state$tileset;null===(_this$state=this.state)||void 0===_this$state||null===(_this$state$tileset=_this$state.tileset)||void 0===_this$state$tileset||_this$state$tileset.finalize()}get isLoaded(){var _this$state2,_this$state2$tileset,_this$state2$tileset$;return Boolean(null===(_this$state2=this.state)||void 0===_this$state2||null===(_this$state2$tileset=_this$state2.tileset)||void 0===_this$state2$tileset||null===(_this$state2$tileset$=_this$state2$tileset.selectedTiles)||void 0===_this$state2$tileset$?void 0:_this$state2$tileset$.every((tile=>tile.isLoaded&&tile.layers&&tile.layers.every((layer=>layer.isLoaded)))))}shouldUpdateState({changeFlags:changeFlags}){return changeFlags.somethingChanged}updateState({changeFlags:changeFlags}){let{tileset:tileset}=this.state;const propsChanged=changeFlags.propsOrDataChanged||changeFlags.updateTriggersChanged,dataChanged=changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getTileData);tileset?propsChanged&&(tileset.setOptions(this._getTilesetOptions()),dataChanged?tileset.reloadAll():tileset.tiles.forEach((tile=>{tile.layers=null}))):(tileset=new this.props.TilesetClass(this._getTilesetOptions()),this.setState({tileset:tileset})),this._updateTileset()}_getTilesetOptions(){const{tileSize:tileSize,maxCacheSize:maxCacheSize,maxCacheByteSize:maxCacheByteSize,refinementStrategy:refinementStrategy,extent:extent,maxZoom:maxZoom,minZoom:minZoom,maxRequests:maxRequests,zoomOffset:zoomOffset}=this.props;return{maxCacheSize:maxCacheSize,maxCacheByteSize:maxCacheByteSize,maxZoom:maxZoom,minZoom:minZoom,tileSize:tileSize,refinementStrategy:refinementStrategy,extent:extent,maxRequests:maxRequests,zoomOffset:zoomOffset,getTileData:this.getTileData.bind(this),onTileLoad:this._onTileLoad.bind(this),onTileError:this._onTileError.bind(this),onTileUnload:this._onTileUnload.bind(this)}}_updateTileset(){const tileset=this.state.tileset,{zRange:zRange,modelMatrix:modelMatrix}=this.props,frameNumber=tileset.update(this.context.viewport,{zRange:zRange,modelMatrix:modelMatrix}),{isLoaded:isLoaded}=tileset,loadingStateChanged=this.state.isLoaded!==isLoaded,tilesetChanged=this.state.frameNumber!==frameNumber;isLoaded&&(loadingStateChanged||tilesetChanged)&&this._onViewportLoad(),tilesetChanged&&this.setState({frameNumber:frameNumber}),this.state.isLoaded=isLoaded}_onViewportLoad(){const{tileset:tileset}=this.state,{onViewportLoad:onViewportLoad}=this.props;onViewportLoad&&onViewportLoad(tileset.selectedTiles)}_onTileLoad(tile){this.props.onTileLoad(tile),tile.layers=null,this.setNeedsUpdate()}_onTileError(error,tile){this.props.onTileError(error),tile.layers=null,this.setNeedsUpdate()}_onTileUnload(tile){this.props.onTileUnload(tile)}getTileData(tile){const{data:data,getTileData:getTileData,fetch:fetch}=this.props,{signal:signal}=tile;return tile.url="string"==typeof data||Array.isArray(data)?getURLFromTemplate(data,tile):null,getTileData?getTileData(tile):fetch&&tile.url?fetch(tile.url,{propName:"data",layer:this,signal:signal}):null}renderSubLayers(props){return this.props.renderSubLayers(props)}getSubLayerPropsByTile(tile){return null}getPickingInfo({info:info,sourceLayer:sourceLayer}){const sourceTile=sourceLayer.props.tile;return info.picked&&(info.tile=sourceTile),info.sourceTile=sourceTile,info}_updateAutoHighlight(info){const sourceTile=info.sourceTile;if(sourceTile&&sourceTile.layers)for(const layer of sourceTile.layers)layer.updateAutoHighlight(info)}renderLayers(){return this.state.tileset.tiles.map((tile=>{const subLayerProps=this.getSubLayerPropsByTile(tile);if(tile.isLoaded||tile.content)if(tile.layers)subLayerProps&&tile.layers[0]&&Object.keys(subLayerProps).some((propName=>tile.layers[0].props[propName]!==subLayerProps[propName]))&&(tile.layers=tile.layers.map((layer=>layer.clone(subLayerProps))));else{const layers=this.renderSubLayers({...this.props,...this.getSubLayerProps({id:tile.id,updateTriggers:this.props.updateTriggers}),data:tile.content,_offset:0,tile:tile});tile.layers=(0,flatten.x)(layers,Boolean).map((layer=>layer.clone({tile:tile,...subLayerProps})))}else;return tile.layers}))}filterSubLayer({layer:layer,cullRect:cullRect}){const{tile:tile}=layer.props;return this.state.tileset.isTileVisible(tile,cullRect)}}(0,defineProperty.Z)(TileLayer,"defaultProps",tile_layer_defaultProps),(0,defineProperty.Z)(TileLayer,"layerName","TileLayer");var path_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js");class TripsLayer extends path_layer.Z{getShaders(){const shaders=super.getShaders();return shaders.inject={"vs:#decl":"uniform float trailLength;\nattribute float instanceTimestamps;\nattribute float instanceNextTimestamps;\nvarying float vTime;\n","vs:#main-end":"vTime = instanceTimestamps + (instanceNextTimestamps - instanceTimestamps) * vPathPosition.y / vPathLength;\n","fs:#decl":"uniform bool fadeTrail;\nuniform float trailLength;\nuniform float currentTime;\nvarying float vTime;\n","fs:#main-start":"if(vTime > currentTime || (fadeTrail && (vTime < currentTime - trailLength))) {\n discard;\n}\n","fs:DECKGL_FILTER_COLOR":"if(fadeTrail) {\n color.a *= 1.0 - (currentTime - vTime) / trailLength;\n}\n"},shaders}initializeState(){super.initializeState();this.getAttributeManager().addInstanced({timestamps:{size:1,accessor:"getTimestamps",shaderAttributes:{instanceTimestamps:{vertexOffset:0},instanceNextTimestamps:{vertexOffset:1}}}})}draw(params){const{fadeTrail:fadeTrail,trailLength:trailLength,currentTime:currentTime}=this.props;params.uniforms={...params.uniforms,fadeTrail:fadeTrail,trailLength:trailLength,currentTime:currentTime},super.draw(params)}}(0,defineProperty.Z)(TripsLayer,"layerName","TripsLayer"),(0,defineProperty.Z)(TripsLayer,"defaultProps",{fadeTrail:!0,trailLength:{type:"number",value:120,min:0},currentTime:{type:"number",value:0,min:0},getTimestamps:{type:"accessor",value:d=>d.timestamps}});var h3_js_es=__webpack_require__("./node_modules/h3-js/dist/browser/h3-js.es.js"),iterable_utils=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),column_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/column-layer/column-layer.js");function normalizeLongitudes(vertices,refLng){refLng=void 0===refLng?vertices[0][0]:refLng;for(const pt of vertices){const deltaLng=pt[0]-refLng;deltaLng>180?pt[0]-=360:deltaLng<-180&&(pt[0]+=360)}}function getHexagonCentroid(getHexagon,object,objectInfo){const hexagonId=getHexagon(object,objectInfo),[lat,lng]=(0,h3_js_es.h3ToGeo)(hexagonId);return[lng,lat]}function h3ToPolygon(hexId,coverage=1){const vertices=(0,h3_js_es.h3ToGeoBoundary)(hexId,!0);return 1!==coverage?function scalePolygon(hexId,vertices,factor){const[lat,lng]=(0,h3_js_es.h3ToGeo)(hexId),actualCount=vertices.length;normalizeLongitudes(vertices,lng);const vertexCount=vertices[0]===vertices[actualCount-1]?actualCount-1:actualCount;for(let i=0;ix.hexagon},extruded:!0};class H3HexagonLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){H3HexagonLayer._checkH3Lib(),this.state={edgeLengthKM:0,resolution:-1}}shouldUpdateState({changeFlags:changeFlags}){return this._shouldUseHighPrecision()?changeFlags.propsOrDataChanged:changeFlags.somethingChanged}updateState({props:props,changeFlags:changeFlags}){if(!0!==props.highPrecision&&(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&changeFlags.updateTriggersChanged.getHexagon)){const dataProps=this._calculateH3DataProps();this.setState(dataProps)}this._updateVertices(this.context.viewport)}_calculateH3DataProps(){let resolution=-1,hasPentagon=!1,hasMultipleRes=!1;const{iterable:iterable,objectInfo:objectInfo}=(0,iterable_utils.jB)(this.props.data);for(const object of iterable){objectInfo.index++;const hexId=this.props.getHexagon(object,objectInfo),hexResolution=(0,h3_js_es.h3GetResolution)(hexId);if(resolution<0){if(resolution=hexResolution,!this.props.highPrecision)break}else if(resolution!==hexResolution){hasMultipleRes=!0;break}if((0,h3_js_es.h3IsPentagon)(hexId)){hasPentagon=!0;break}}return{resolution:resolution,edgeLengthKM:resolution>=0?(0,h3_js_es.edgeLength)(resolution,"km"):0,hasMultipleRes:hasMultipleRes,hasPentagon:hasPentagon}}_shouldUseHighPrecision(){if("auto"===this.props.highPrecision){const{resolution:resolution,hasPentagon:hasPentagon,hasMultipleRes:hasMultipleRes}=this.state,{viewport:viewport}=this.context;return Boolean(null==viewport?void 0:viewport.resolution)||hasMultipleRes||hasPentagon||resolution>=0&&resolution<=5}return this.props.highPrecision}_updateVertices(viewport){if(this._shouldUseHighPrecision())return;const{resolution:resolution,edgeLengthKM:edgeLengthKM,centerHex:centerHex}=this.state;if(resolution<0)return;const hex=this.props.centerHexagon||(0,h3_js_es.geoToH3)(viewport.latitude,viewport.longitude,resolution);if(centerHex===hex)return;if(centerHex){const distance=(0,h3_js_es.h3Distance)(centerHex,hex);if(distance>=0&&distance*edgeLengthKM<10)return}const{unitsPerMeter:unitsPerMeter}=viewport.distanceScales;let vertices=h3ToPolygon(hex);const[centerLat,centerLng]=(0,h3_js_es.h3ToGeo)(hex),[centerX,centerY]=viewport.projectFlat([centerLng,centerLat]);vertices=vertices.map((p=>{const worldPosition=viewport.projectFlat(p);return[(worldPosition[0]-centerX)/unitsPerMeter[0],(worldPosition[1]-centerY)/unitsPerMeter[1]]})),this.setState({centerHex:hex,vertices:vertices})}renderLayers(){return this._shouldUseHighPrecision()?this._renderPolygonLayer():this._renderColumnLayer()}_getForwardProps(){const{elevationScale:elevationScale,material:material,coverage:coverage,extruded:extruded,wireframe:wireframe,stroked:stroked,filled:filled,lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels,getFillColor:getFillColor,getElevation:getElevation,getLineColor:getLineColor,getLineWidth:getLineWidth,transitions:transitions,updateTriggers:updateTriggers}=this.props;return{elevationScale:elevationScale,extruded:extruded,coverage:coverage,wireframe:wireframe,stroked:stroked,filled:filled,lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels,material:material,getElevation:getElevation,getFillColor:getFillColor,getLineColor:getLineColor,getLineWidth:getLineWidth,transitions:transitions,updateTriggers:{getFillColor:updateTriggers.getFillColor,getElevation:updateTriggers.getElevation,getLineColor:updateTriggers.getLineColor,getLineWidth:updateTriggers.getLineWidth}}}_renderPolygonLayer(){const{data:data,getHexagon:getHexagon,updateTriggers:updateTriggers,coverage:coverage}=this.props,SubLayerClass=this.getSubLayerClass("hexagon-cell-hifi",polygon_layer.Z),forwardProps=this._getForwardProps();return forwardProps.updateTriggers.getPolygon=function mergeTriggers(getHexagon,coverage){let trigger;return trigger=null==getHexagon?coverage:"object"==typeof getHexagon?{...getHexagon,coverage:coverage}:{getHexagon:getHexagon,coverage:coverage},trigger}(updateTriggers.getHexagon,coverage),new SubLayerClass(forwardProps,this.getSubLayerProps({id:"hexagon-cell-hifi",updateTriggers:forwardProps.updateTriggers}),{data:data,_normalize:!1,_windingOrder:"CCW",positionFormat:"XY",getPolygon:(object,objectInfo)=>function flattenPolygon(vertices){const positions=new Float64Array(2*vertices.length);let i=0;for(const pt of vertices)positions[i++]=pt[0],positions[i++]=pt[1];return positions}(h3ToPolygon(getHexagon(object,objectInfo),coverage))})}_renderColumnLayer(){const{data:data,getHexagon:getHexagon,updateTriggers:updateTriggers}=this.props,SubLayerClass=this.getSubLayerClass("hexagon-cell",column_layer.Z),forwardProps=this._getForwardProps();return forwardProps.updateTriggers.getPosition=updateTriggers.getHexagon,new SubLayerClass(forwardProps,this.getSubLayerProps({id:"hexagon-cell",flatShading:!0,updateTriggers:forwardProps.updateTriggers}),{data:data,diskResolution:6,radius:1,vertices:this.state.vertices,getPosition:getHexagonCentroid.bind(null,getHexagon)})}}(0,defineProperty.Z)(H3HexagonLayer,"defaultProps",h3_hexagon_layer_defaultProps),(0,defineProperty.Z)(H3HexagonLayer,"layerName","H3HexagonLayer"),(0,defineProperty.Z)(H3HexagonLayer,"_checkH3Lib",(()=>{}));class H3ClusterLayer extends GeoCellLayer{initializeState(){H3HexagonLayer._checkH3Lib()}updateState({props:props,changeFlags:changeFlags}){if(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&changeFlags.updateTriggersChanged.getHexagons){const{data:data,getHexagons:getHexagons}=props,polygons=[],{iterable:iterable,objectInfo:objectInfo}=(0,iterable_utils.jB)(data);for(const object of iterable){objectInfo.index++;const hexagons=getHexagons(object,objectInfo),multiPolygon=(0,h3_js_es.h3SetToMultiPolygon)(hexagons,!0);for(const polygon of multiPolygon)polygons.push(this.getSubLayerRow({polygon:polygon},object,objectInfo.index))}this.setState({polygons:polygons})}}indexToBounds(){const{getElevation:getElevation,getFillColor:getFillColor,getLineColor:getLineColor,getLineWidth:getLineWidth}=this.props;return{data:this.state.polygons,getPolygon:d=>d.polygon,getElevation:this.getSubLayerAccessor(getElevation),getFillColor:this.getSubLayerAccessor(getFillColor),getLineColor:this.getSubLayerAccessor(getLineColor),getLineWidth:this.getSubLayerAccessor(getLineWidth)}}}(0,defineProperty.Z)(H3ClusterLayer,"layerName","H3ClusterLayer"),(0,defineProperty.Z)(H3ClusterLayer,"defaultProps",{getHexagons:{type:"accessor",value:d=>d.hexagons}});var geometry_geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),point_cloud_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/point-cloud-layer/point-cloud-layer.js"),scenegraph_layer=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/scenegraph-layer/scenegraph-layer.js"),gltf_material_parser=__webpack_require__("./node_modules/@luma.gl/experimental/dist/esm/gltf/gltf-material-parser.js"),pbr=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/pbr/pbr.js"),lib_model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),simple_mesh_layer=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/simple-mesh-layer/simple-mesh-layer.js");class MeshLayer extends simple_mesh_layer.Z{getShaders(){const shaders=super.getShaders();return shaders.modules.push(pbr.b),{...shaders,vs:"#version 300 es\n#define SHADER_NAME simple-mesh-layer-vs\nuniform float sizeScale;\nuniform bool composeModelMatrix;\nuniform bool pickFeatureIds;\nin vec3 positions;\nin vec3 normals;\nin vec3 colors;\nin vec2 texCoords;\nin vec4 uvRegions;\nin vec3 featureIdsPickingColors;\nin vec4 instanceColors;\nin vec3 instancePickingColors;\nin mat3 instanceModelMatrix;\nout vec2 vTexCoord;\nout vec3 cameraPosition;\nout vec3 normals_commonspace;\nout vec4 position_commonspace;\nout vec4 vColor;\n\nvec2 applyUVRegion(vec2 uv) {\n #ifdef HAS_UV_REGIONS\n return fract(uv) * (uvRegions.zw - uvRegions.xy) + uvRegions.xy;\n #else\n return uv;\n #endif\n}\n\nvoid main(void) {\n vec2 uv = applyUVRegion(texCoords);\n geometry.uv = uv;\n\n if (pickFeatureIds) {\n geometry.pickingColor = featureIdsPickingColors;\n } else {\n geometry.pickingColor = instancePickingColors;\n }\n\n vTexCoord = uv;\n cameraPosition = project_uCameraPosition;\n vColor = vec4(colors * instanceColors.rgb, instanceColors.a);\n\n vec3 pos = (instanceModelMatrix * positions) * sizeScale;\n vec3 projectedPosition = project_position(positions);\n position_commonspace = vec4(projectedPosition, 1.0);\n gl_Position = project_common_position_to_clipspace(position_commonspace);\n\n geometry.position = position_commonspace;\n normals_commonspace = project_normal(instanceModelMatrix * normals);\n geometry.normal = normals_commonspace;\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n #ifdef MODULE_PBR\n pbr_vPosition = geometry.position.xyz;\n #ifdef HAS_NORMALS\n pbr_vNormal = geometry.normal;\n #endif\n\n #ifdef HAS_UV\n pbr_vUV = uv;\n #else\n pbr_vUV = vec2(0., 0.);\n #endif\n geometry.uv = pbr_vUV;\n #endif\n\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#version 300 es\n#define SHADER_NAME simple-mesh-layer-fs\n\nprecision highp float;\n\nuniform bool hasTexture;\nuniform sampler2D sampler;\nuniform bool flatShading;\nuniform float opacity;\n\nin vec2 vTexCoord;\nin vec3 cameraPosition;\nin vec3 normals_commonspace;\nin vec4 position_commonspace;\nin vec4 vColor;\n\nout vec4 fragColor;\n\nvoid main(void) {\n \n#ifdef MODULE_PBR\n\n fragColor = vColor * pbr_filterColor(vec4(0));\n geometry.uv = pbr_vUV;\n fragColor.a *= opacity;\n\n#else\n\n geometry.uv = vTexCoord;\n\n vec3 normal;\n if (flatShading) {\n#ifdef DERIVATIVES_AVAILABLE\n normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n#else\n normal = vec3(0.0, 0.0, 1.0);\n#endif\n } else {\n normal = normals_commonspace;\n }\n\n vec4 color = hasTexture ? texture(sampler, vTexCoord) : vColor;\n vec3 lightColor = lighting_getLightColor(color.rgb, cameraPosition, position_commonspace.xyz, normal);\n fragColor = vec4(lightColor, color.a * opacity);\n\n#endif\n\n DECKGL_FILTER_COLOR(fragColor, geometry);\n}\n"}}initializeState(){const{featureIds:featureIds}=this.props;super.initializeState();const attributeManager=this.getAttributeManager();featureIds&&attributeManager.add({featureIdsPickingColors:{type:5121,size:3,noAlloc:!0,update:this.calculateFeatureIdsPickingColors}})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps}=params;props.pbrMaterial!==oldProps.pbrMaterial&&this.updatePbrMaterialUniforms(props.pbrMaterial)}draw(opts){const{featureIds:featureIds}=this.props;this.state.model&&(this.state.model.setUniforms({u_Camera:this.state.model.getUniforms().project_uCameraPosition,pickFeatureIds:Boolean(featureIds)}),super.draw(opts))}getModel(mesh){const{id:id,pbrMaterial:pbrMaterial}=this.props,materialParser=this.parseMaterial(pbrMaterial,mesh);this.setState({materialParser:materialParser});const shaders=this.getShaders();!function validateGeometryAttributes(attributes){attributes.COLOR_0||attributes.colors||(attributes.colors={constant:!0,value:new Float32Array([1,1,1])})}(mesh.attributes);return new lib_model.Z(this.context.gl,{...this.getShaders(),id:id,geometry:mesh,defines:{...shaders.defines,...null==materialParser?void 0:materialParser.defines,HAS_UV_REGIONS:mesh.attributes.uvRegions},parameters:null==materialParser?void 0:materialParser.parameters,isInstanced:!0})}updatePbrMaterialUniforms(pbrMaterial){const{model:model}=this.state;if(model){const{mesh:mesh}=this.props,materialParser=this.parseMaterial(pbrMaterial,mesh);this.setState({materialParser:materialParser}),model.setUniforms(materialParser.uniforms)}}parseMaterial(pbrMaterial,mesh){var _this$state$materialP;const unlit=Boolean(pbrMaterial.pbrMetallicRoughness&&pbrMaterial.pbrMetallicRoughness.baseColorTexture);return null===(_this$state$materialP=this.state.materialParser)||void 0===_this$state$materialP||_this$state$materialP.delete(),new gltf_material_parser.Z(this.context.gl,{attributes:{NORMAL:mesh.attributes.normals,TEXCOORD_0:mesh.attributes.texCoords},material:{unlit:unlit,...pbrMaterial},pbrDebug:!1,imageBasedLightingEnvironment:null,lights:!0,useTangents:!1})}calculateFeatureIdsPickingColors(attribute){const featureIds=this.props.featureIds,value=new Uint8ClampedArray(featureIds.length*attribute.size),pickingColor=[];for(let index=0;index=0),(0,lib_assert.Z)(y>=0),(0,lib_assert.Z)(z>=0),this.radii=new vector3.Z(x,y,z),this.radiiSquared=new vector3.Z(x*x,y*y,z*z),this.radiiToTheFourth=new vector3.Z(x*x*x*x,y*y*y*y,z*z*z*z),this.oneOverRadii=new vector3.Z(0===x?0:1/x,0===y?0:1/y,0===z?0:1/z),this.oneOverRadiiSquared=new vector3.Z(0===x?0:1/(x*x),0===y?0:1/(y*y),0===z?0:1/(z*z)),this.minimumRadius=Math.min(x,y,z),this.maximumRadius=Math.max(x,y,z),0!==this.radiiSquared.z&&(this.squaredXOverSquaredZ=this.radiiSquared.x/this.radiiSquared.z),Object.freeze(this)}equals(right){return this===right||Boolean(right&&this.radii.equals(right.radii))}toString(){return this.radii.toString()}cartographicToCartesian(cartographic,result=[0,0,0]){const normal=ellipsoid_scratchNormal,k=scratchK,[,,height]=cartographic;this.geodeticSurfaceNormalCartographic(cartographic,normal),k.copy(this.radiiSquared).scale(normal);const gamma=Math.sqrt(normal.dot(k));return k.scale(1/gamma),normal.scale(height),k.add(normal),k.to(result)}cartesianToCartographic(cartesian,result=[0,0,0]){scratchCartesian.from(cartesian);const point=this.scaleToGeodeticSurface(scratchCartesian,ellipsoid_scratchPosition);if(!point)return;const normal=this.geodeticSurfaceNormal(point,ellipsoid_scratchNormal),h=scratchHeight;h.copy(scratchCartesian).subtract(point);return function toCartographicFromRadians(vector,cartographic){return toCartographic(vector,cartographic,common.vc._cartographicRadians?identity:common.Ux)}([Math.atan2(normal.y,normal.x),Math.asin(normal.z),Math.sign(vec3.AK(h,scratchCartesian))*vec3.kE(h)],result)}eastNorthUpToFixedFrame(origin,result=new matrix4.Z){return localFrameToFixedFrame(this,"east","north","up",origin,result)}localFrameToFixedFrame(firstAxis,secondAxis,thirdAxis,origin,result=new matrix4.Z){return localFrameToFixedFrame(this,firstAxis,secondAxis,thirdAxis,origin,result)}geocentricSurfaceNormal(cartesian,result=[0,0,0]){return ellipsoid_scratchVector.from(cartesian).normalize().to(result)}geodeticSurfaceNormalCartographic(cartographic,result=[0,0,0]){const cartographicVectorRadians=function fromCartographicToRadians(cartographic,vector=[]){return fromCartographic(cartographic,vector,common.vc._cartographicRadians?identity:common.Yr)}(cartographic),longitude=cartographicVectorRadians[0],latitude=cartographicVectorRadians[1],cosLatitude=Math.cos(latitude);return ellipsoid_scratchVector.set(cosLatitude*Math.cos(longitude),cosLatitude*Math.sin(longitude),Math.sin(latitude)).normalize(),ellipsoid_scratchVector.to(result)}geodeticSurfaceNormal(cartesian,result=[0,0,0]){return ellipsoid_scratchVector.from(cartesian).scale(this.oneOverRadiiSquared).normalize().to(result)}scaleToGeodeticSurface(cartesian,result){return function scaleToGeodeticSurface(cartesian,ellipsoid,result=[]){const{oneOverRadii:oneOverRadii,oneOverRadiiSquared:oneOverRadiiSquared,centerToleranceSquared:centerToleranceSquared}=ellipsoid;scale_to_geodetic_surface_scratchVector.from(cartesian);const positionX=scale_to_geodetic_surface_scratchVector.x,positionY=scale_to_geodetic_surface_scratchVector.y,positionZ=scale_to_geodetic_surface_scratchVector.z,oneOverRadiiX=oneOverRadii.x,oneOverRadiiY=oneOverRadii.y,oneOverRadiiZ=oneOverRadii.z,x2=positionX*positionX*oneOverRadiiX*oneOverRadiiX,y2=positionY*positionY*oneOverRadiiY*oneOverRadiiY,z2=positionZ*positionZ*oneOverRadiiZ*oneOverRadiiZ,squaredNorm=x2+y2+z2,ratio=Math.sqrt(1/squaredNorm);if(!Number.isFinite(ratio))return;const intersection=scaleToGeodeticSurfaceIntersection;if(intersection.copy(cartesian).scale(ratio),squaredNormmath_utils.Z.EPSILON12);return scale_to_geodetic_surface_scratchVector.scale([xMultiplier,yMultiplier,zMultiplier]).to(result)}(cartesian,this,result)}scaleToGeocentricSurface(cartesian,result=[0,0,0]){ellipsoid_scratchPosition.from(cartesian);const positionX=ellipsoid_scratchPosition.x,positionY=ellipsoid_scratchPosition.y,positionZ=ellipsoid_scratchPosition.z,oneOverRadiiSquared=this.oneOverRadiiSquared,beta=1/Math.sqrt(positionX*positionX*oneOverRadiiSquared.x+positionY*positionY*oneOverRadiiSquared.y+positionZ*positionZ*oneOverRadiiSquared.z);return ellipsoid_scratchPosition.multiplyScalar(beta).to(result)}transformPositionToScaledSpace(position,result=[0,0,0]){return ellipsoid_scratchPosition.from(position).scale(this.oneOverRadii).to(result)}transformPositionFromScaledSpace(position,result=[0,0,0]){return ellipsoid_scratchPosition.from(position).scale(this.radii).to(result)}getSurfaceNormalIntersectionWithZAxis(position,buffer=0,result=[0,0,0]){(0,lib_assert.Z)((0,common.fS)(this.radii.x,this.radii.y,math_utils.Z.EPSILON15)),(0,lib_assert.Z)(this.radii.z>0),ellipsoid_scratchPosition.from(position);const z=ellipsoid_scratchPosition.z*(1-this.squaredXOverSquaredZ);if(!(Math.abs(z)>=this.radii.z-buffer))return ellipsoid_scratchPosition.set(0,0,z).to(result)}}(0,defineProperty.Z)(Ellipsoid,"WGS84",new Ellipsoid(6378137,6378137,6356752.314245179));var hi_res_timestamp_process=__webpack_require__("./node_modules/process/browser.js");function hi_res_timestamp_getHiResTimestamp(){let timestamp;if("undefined"!=typeof window&&window.performance)timestamp=window.performance.now();else if(void 0!==hi_res_timestamp_process&&hi_res_timestamp_process.hrtime){const timeParts=hi_res_timestamp_process.hrtime();timestamp=1e3*timeParts[0]+timeParts[1]/1e6}else timestamp=Date.now();return timestamp}class stat_Stat{constructor(name,type){this.name=void 0,this.type=void 0,this.sampleSize=1,this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this.name=name,this.type=type,this.reset()}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}setSampleSize(samples){return this.sampleSize=samples,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(value){return this._count+=value,this._samples++,this._checkSampling(),this}subtractCount(value){return this._count-=value,this._samples++,this._checkSampling(),this}addTime(time){return this._time+=time,this.lastTiming=time,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=hi_res_timestamp_getHiResTimestamp(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(hi_res_timestamp_getHiResTimestamp()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}_checkSampling(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}class stats_Stats{constructor(options){this.id=void 0,this.stats={},this.id=options.id,this.stats={},this._initializeStats(options.stats),Object.seal(this)}get(name){let type=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count";return this._getOrCreate({name:name,type:type})}get size(){return Object.keys(this.stats).length}reset(){for(const stat of Object.values(this.stats))stat.reset();return this}forEach(fn){for(const stat of Object.values(this.stats))fn(stat)}getTable(){const table={};return this.forEach((stat=>{table[stat.name]={time:stat.time||0,count:stat.count||0,average:stat.getAverageTime()||0,hz:stat.getHz()||0}})),table}_initializeStats(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((stat=>this._getOrCreate(stat)))}_getOrCreate(stat){const{name:name,type:type}=stat;let result=this.stats[name];return result||(result=stat instanceof stat_Stat?stat:new stat_Stat(name,type),this.stats[name]=result),result}}var path=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/path-utils/path.js");class DoublyLinkedListNode{constructor(item,previous,next){(0,defineProperty.Z)(this,"item",void 0),(0,defineProperty.Z)(this,"previous",void 0),(0,defineProperty.Z)(this,"next",void 0),this.item=item,this.previous=previous,this.next=next}}class DoublyLinkedList{constructor(){(0,defineProperty.Z)(this,"head",null),(0,defineProperty.Z)(this,"tail",null),(0,defineProperty.Z)(this,"_length",0)}get length(){return this._length}add(item){const node=new DoublyLinkedListNode(item,this.tail,null);return this.tail?(this.tail.next=node,this.tail=node):(this.head=node,this.tail=node),++this._length,node}remove(node){node&&(node.previous&&node.next?(node.previous.next=node.next,node.next.previous=node.previous):node.previous?(node.previous.next=null,this.tail=node.previous):node.next?(node.next.previous=null,this.head=node.next):(this.head=null,this.tail=null),node.next=null,node.previous=null,--this._length)}splice(node,nextNode){node!==nextNode&&(this.remove(nextNode),this._insert(node,nextNode))}_insert(node,nextNode){const oldNodeNext=node.next;node.next=nextNode,this.tail===node?this.tail=nextNode:oldNodeNext.previous=nextNode,nextNode.next=oldNodeNext,nextNode.previous=node,++this._length}}class TilesetCache{constructor(){(0,defineProperty.Z)(this,"_list",void 0),(0,defineProperty.Z)(this,"_sentinel",void 0),(0,defineProperty.Z)(this,"_trimTiles",void 0),this._list=new DoublyLinkedList,this._sentinel=this._list.add("sentinel"),this._trimTiles=!1}reset(){this._list.splice(this._list.tail,this._sentinel)}touch(tile){const node=tile._cacheNode;node&&this._list.splice(this._sentinel,node)}add(tileset,tile,addCallback){tile._cacheNode||(tile._cacheNode=this._list.add(tile),addCallback&&addCallback(tileset,tile))}unloadTile(tileset,tile,unloadCallback){const node=tile._cacheNode;node&&(this._list.remove(node),tile._cacheNode=null,unloadCallback&&unloadCallback(tileset,tile))}unloadTiles(tileset,unloadCallback){const trimTiles=this._trimTiles;this._trimTiles=!1;const list=this._list,maximumMemoryUsageInBytes=1024*tileset.maximumMemoryUsage*1024,sentinel=this._sentinel;let node=list.head;for(;node!==sentinel&&(tileset.gpuMemoryUsageInBytes>maximumMemoryUsageInBytes||trimTiles);){const tile=node.item;node=node.next,this.unloadTile(tileset,tile,unloadCallback)}}trim(){this._trimTiles=!0}}var env_utils_assert=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/assert.js");const frame_state_scratchVector=new vector3.Z,frame_state_scratchPosition=new vector3.Z,cullingVolume=new culling_volume_CullingVolume([new plane_Plane,new plane_Plane,new plane_Plane,new plane_Plane,new plane_Plane,new plane_Plane]);function getFrameState(viewport,frameNumber){const{cameraDirection:cameraDirection,cameraUp:cameraUp,height:height}=viewport,{metersPerUnit:metersPerUnit}=viewport.distanceScales,viewportCenterCartesian=worldToCartesian(viewport,viewport.center),enuToFixedTransform=Ellipsoid.WGS84.eastNorthUpToFixedFrame(viewportCenterCartesian),cameraPositionCartographic=viewport.unprojectPosition(viewport.cameraPosition),cameraPositionCartesian=Ellipsoid.WGS84.cartographicToCartesian(cameraPositionCartographic,new vector3.Z),cameraDirectionCartesian=new vector3.Z(enuToFixedTransform.transformAsVector(new vector3.Z(cameraDirection).scale(metersPerUnit))).normalize(),cameraUpCartesian=new vector3.Z(enuToFixedTransform.transformAsVector(new vector3.Z(cameraUp).scale(metersPerUnit))).normalize();!function commonSpacePlanesToWGS84(viewport){const frustumPlanes=viewport.getFrustumPlanes(),nearCenterCommon=closestPointOnPlane(frustumPlanes.near,viewport.cameraPosition),nearCenterCartesian=worldToCartesian(viewport,nearCenterCommon),cameraCartesian=worldToCartesian(viewport,viewport.cameraPosition,frame_state_scratchPosition);let i=0;cullingVolume.planes[i++].fromPointNormal(nearCenterCartesian,frame_state_scratchVector.copy(nearCenterCartesian).subtract(cameraCartesian));for(const dir in frustumPlanes){if("near"===dir)continue;const cartesianPos=worldToCartesian(viewport,closestPointOnPlane(frustumPlanes[dir],nearCenterCommon,frame_state_scratchPosition),frame_state_scratchPosition);cullingVolume.planes[i++].fromPointNormal(cartesianPos,frame_state_scratchVector.copy(nearCenterCartesian).subtract(cartesianPos))}}(viewport);const ViewportClass=viewport.constructor,{longitude:longitude,latitude:latitude,width:width,bearing:bearing,zoom:zoom}=viewport;return{camera:{position:cameraPositionCartesian,direction:cameraDirectionCartesian,up:cameraUpCartesian},viewport:viewport,topDownViewport:new ViewportClass({longitude:longitude,latitude:latitude,height:height,width:width,bearing:bearing,zoom:zoom,pitch:0}),height:height,cullingVolume:cullingVolume,frameNumber:frameNumber,sseDenominator:1.15}}function closestPointOnPlane(plane,refPoint){let out=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new vector3.Z;const distanceToRef=plane.normal.dot(refPoint);return out.copy(plane.normal).scale(plane.distance-distanceToRef).add(refPoint),out}function worldToCartesian(viewport,point){let out=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new vector3.Z;const cartographicPos=viewport.unprojectPosition(point);return Ellipsoid.WGS84.cartographicToCartesian(cartographicPos,out)}const zoom_WGS84_RADIUS_Z=6356752.314245179,zoom_scratchVector=new vector3.Z;function getZoomFromBoundingVolume(boundingVolume,cartorgraphicCenter){if(boundingVolume instanceof OrientedBoundingBox){const{halfAxes:halfAxes}=boundingVolume,obbSize=function getObbSize(halfAxes){halfAxes.getColumn(0,zoom_scratchVector);const axeY=halfAxes.getColumn(1),axeZ=halfAxes.getColumn(2),farthestVertex=zoom_scratchVector.add(axeY).add(axeZ);return farthestVertex.len()}(halfAxes);return Math.log2(zoom_WGS84_RADIUS_Z/(obbSize+cartorgraphicCenter[2]))}if(boundingVolume instanceof bounding_sphere_BoundingSphere){const{radius:radius}=boundingVolume;return Math.log2(zoom_WGS84_RADIUS_Z/(radius+cartorgraphicCenter[2]))}if(boundingVolume.width&&boundingVolume.height){const{width:width,height:height}=boundingVolume;return(Math.log2(6378137/width)+Math.log2(6378137/height))/2}return 1}function getZoomFromFullExtent(fullExtent,cartorgraphicCenter,cartesianCenter){const extentVertex=Ellipsoid.WGS84.cartographicToCartesian([fullExtent.xmax,fullExtent.ymax,fullExtent.zmax],new vector3.Z),extentSize=Math.sqrt(Math.pow(extentVertex[0]-cartesianCenter[0],2)+Math.pow(extentVertex[1]-cartesianCenter[1],2)+Math.pow(extentVertex[2]-cartesianCenter[2],2));return Math.log2(zoom_WGS84_RADIUS_Z/(extentSize+cartorgraphicCenter[2]))}const TILE_CONTENT_STATE_UNLOADED=0,TILE_CONTENT_STATE_LOADING=1,TILE_CONTENT_STATE_READY=3,TILE_CONTENT_STATE_EXPIRED=4,TILE_CONTENT_STATE_FAILED=5,TILE_REFINEMENT={ADD:1,REPLACE:2},TILE_TYPE={EMPTY:"empty",SCENEGRAPH:"scenegraph",POINTCLOUD:"pointcloud",MESH:"mesh"},TILESET_TYPE={I3S:"I3S",TILES3D:"TILES3D"},LOD_METRIC_TYPE={GEOMETRIC_ERROR:"geometricError",MAX_SCREEN_THRESHOLD:"maxScreenThreshold"},TILE3D_OPTIMIZATION_HINT_USE_OPTIMIZATION=1;function bounding_volume_defined(x){return null!=x}const scratchPoint=new vector3.Z,scratchScale=new vector3.Z,scratchNorthWest=new vector3.Z,scratchSouthEast=new vector3.Z;function createBoundingVolume(boundingVolumeHeader,transform,result){if((0,env_utils_assert.h)(boundingVolumeHeader,"3D Tile: boundingVolume must be defined"),boundingVolumeHeader.box)return function createBox(box,transform,result){const center=new vector3.Z(box[0],box[1],box[2]);transform.transform(center,center);let origin=[];if(10===box.length){const halfSize=box.slice(3,6),quaternion=new classes_quaternion.Z;quaternion.fromArray(box,6);const x=new vector3.Z([1,0,0]),y=new vector3.Z([0,1,0]),z=new vector3.Z([0,0,1]);x.transformByQuaternion(quaternion),x.scale(halfSize[0]),y.transformByQuaternion(quaternion),y.scale(halfSize[1]),z.transformByQuaternion(quaternion),z.scale(halfSize[2]),origin=[...x.toArray(),...y.toArray(),...z.toArray()]}else origin=[...box.slice(3,6),...box.slice(6,9),...box.slice(9,12)];const xAxis=transform.transformAsVector(origin.slice(0,3)),yAxis=transform.transformAsVector(origin.slice(3,6)),zAxis=transform.transformAsVector(origin.slice(6,9)),halfAxes=new matrix3.Z([xAxis[0],xAxis[1],xAxis[2],yAxis[0],yAxis[1],yAxis[2],zAxis[0],zAxis[1],zAxis[2]]);if(bounding_volume_defined(result))return result.center=center,result.halfAxes=halfAxes,result;return new OrientedBoundingBox(center,halfAxes)}(boundingVolumeHeader.box,transform,result);if(boundingVolumeHeader.region){const[west,south,east,north,minHeight,maxHeight]=boundingVolumeHeader.region,northWest=Ellipsoid.WGS84.cartographicToCartesian([(0,common.RW)(west),(0,common.RW)(north),minHeight],scratchNorthWest),southEast=Ellipsoid.WGS84.cartographicToCartesian([(0,common.RW)(east),(0,common.RW)(south),maxHeight],scratchSouthEast),centerInCartesian=(new vector3.Z).addVectors(northWest,southEast).multiplyScalar(.5),radius=(new vector3.Z).subVectors(northWest,southEast).len()/2;return createSphere([centerInCartesian[0],centerInCartesian[1],centerInCartesian[2],radius],new matrix4.Z)}if(boundingVolumeHeader.sphere)return createSphere(boundingVolumeHeader.sphere,transform,result);throw new Error("3D Tile: boundingVolume must contain a sphere, region, or box")}function getCartographicBounds(boundingVolumeHeader,boundingVolume){if(boundingVolumeHeader.box)return function orientedBoundingBoxToCartographicBounds(boundingVolume){const result=emptyCartographicBounds(),{halfAxes:halfAxes}=boundingVolume,xAxis=new vector3.Z(halfAxes.getColumn(0)),yAxis=new vector3.Z(halfAxes.getColumn(1)),zAxis=new vector3.Z(halfAxes.getColumn(2));for(let x=0;x<2;x++){for(let y=0;y<2;y++){for(let z=0;z<2;z++)scratchPoint.copy(boundingVolume.center),scratchPoint.add(xAxis),scratchPoint.add(yAxis),scratchPoint.add(zAxis),addToCartographicBounds(result,scratchPoint),zAxis.negate();yAxis.negate()}xAxis.negate()}return result}(boundingVolume);if(boundingVolumeHeader.region){const[west,south,east,north,minHeight,maxHeight]=boundingVolumeHeader.region;return[[(0,common.RW)(west),(0,common.RW)(south),minHeight],[(0,common.RW)(east),(0,common.RW)(north),maxHeight]]}if(boundingVolumeHeader.sphere)return function boundingSphereToCartographicBounds(boundingVolume){const result=emptyCartographicBounds(),{center:center,radius:radius}=boundingVolume,point=Ellipsoid.WGS84.scaleToGeodeticSurface(center,scratchPoint);let zAxis;zAxis=point?Ellipsoid.WGS84.geodeticSurfaceNormal(point):new vector3.Z(0,0,1);let xAxis=new vector3.Z(zAxis[2],-zAxis[1],0);xAxis.len()>0?xAxis.normalize():xAxis=new vector3.Z(0,1,0);const yAxis=xAxis.clone().cross(zAxis);for(const axis of[xAxis,yAxis,zAxis]){scratchScale.copy(axis).scale(radius);for(let dir=0;dir<2;dir++)scratchPoint.copy(center),scratchPoint.add(scratchScale),addToCartographicBounds(result,scratchPoint),scratchScale.negate()}return result}(boundingVolume);throw new Error("Unkown boundingVolume type")}function createSphere(sphere,transform,result){const center=new vector3.Z(sphere[0],sphere[1],sphere[2]);transform.transform(center,center);const scale=transform.getScale(scratchScale),uniformScale=Math.max(Math.max(scale[0],scale[1]),scale[2]),radius=sphere[3]*uniformScale;return bounding_volume_defined(result)?(result.center=center,result.radius=radius,result):new bounding_sphere_BoundingSphere(center,radius)}function emptyCartographicBounds(){return[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]]}function addToCartographicBounds(target,cartesian){Ellipsoid.WGS84.cartesianToCartographic(cartesian,scratchPoint),target[0][0]=Math.min(target[0][0],scratchPoint[0]),target[0][1]=Math.min(target[0][1],scratchPoint[1]),target[0][2]=Math.min(target[0][2],scratchPoint[2]),target[1][0]=Math.max(target[1][0],scratchPoint[0]),target[1][1]=Math.max(target[1][1],scratchPoint[1]),target[1][2]=Math.max(target[1][2],scratchPoint[2])}new vector3.Z,new vector3.Z,new matrix4.Z,new vector3.Z,new vector3.Z,new vector3.Z;function getDynamicScreenSpaceError(tileset,distanceToCamera){if(tileset.dynamicScreenSpaceError&&tileset.dynamicScreenSpaceErrorComputedDensity){const density=tileset.dynamicScreenSpaceErrorComputedDensity,factor=tileset.dynamicScreenSpaceErrorFactor,dynamicError=function fog(distanceToCamera,density){const scalar=distanceToCamera*density;return 1-Math.exp(-scalar*scalar)}(distanceToCamera,density)*factor;return dynamicError}return 0}const cameraPositionCartesian=new vector3.Z,toEye=new vector3.Z,cameraPositionEnu=new vector3.Z,extraVertexEnu=new vector3.Z,projectedOriginVector=new vector3.Z,enuToCartesianMatrix=new matrix4.Z,cartesianToEnuMatrix=new matrix4.Z;function getProjectedRadius(tile,frameState){const{topDownViewport:viewport}=frameState,mbsLat=tile.header.mbs[1],mbsLon=tile.header.mbs[0],mbsZ=tile.header.mbs[2],mbsR=tile.header.mbs[3],mbsCenterCartesian=[...tile.boundingVolume.center],cameraPositionCartographic=viewport.unprojectPosition(viewport.cameraPosition);Ellipsoid.WGS84.cartographicToCartesian(cameraPositionCartographic,cameraPositionCartesian),toEye.copy(cameraPositionCartesian).subtract(mbsCenterCartesian).normalize(),Ellipsoid.WGS84.eastNorthUpToFixedFrame(mbsCenterCartesian,enuToCartesianMatrix),cartesianToEnuMatrix.copy(enuToCartesianMatrix).invert(),cameraPositionEnu.copy(cameraPositionCartesian).transform(cartesianToEnuMatrix);const projection=Math.sqrt(cameraPositionEnu[0]*cameraPositionEnu[0]+cameraPositionEnu[1]*cameraPositionEnu[1]),extraZ=projection*projection/cameraPositionEnu[2];extraVertexEnu.copy([cameraPositionEnu[0],cameraPositionEnu[1],extraZ]);const extraVectorCartesian=extraVertexEnu.transform(enuToCartesianMatrix).subtract(mbsCenterCartesian).normalize(),sphereMbsBorderVertexCartesian=toEye.cross(extraVectorCartesian).normalize().scale(mbsR).add(mbsCenterCartesian),sphereMbsBorderVertexCartographic=Ellipsoid.WGS84.cartesianToCartographic(sphereMbsBorderVertexCartesian),projectedOrigin=viewport.project([mbsLon,mbsLat,mbsZ]),projectedMbsBorderVertex=viewport.project(sphereMbsBorderVertexCartographic);return projectedOriginVector.copy(projectedOrigin).subtract(projectedMbsBorderVertex).magnitude()}class ManagedArray{constructor(){let length=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;(0,defineProperty.Z)(this,"_map",new Map),(0,defineProperty.Z)(this,"_array",void 0),(0,defineProperty.Z)(this,"_length",void 0),this._array=new Array(length),this._length=length}get length(){return this._length}set length(length){this._length=length,length>this._array.length&&(this._array.length=length)}get values(){return this._array}get(index){return(0,env_utils_assert.h)(index=0),index>=this.length&&(this.length=index+1),this._map.has(this._array[index])&&this._map.delete(this._array[index]),this._array[index]=element,this._map.set(element,index)}delete(element){const index=this._map.get(element);index>=0&&(this._array.splice(index,1),this._map.delete(element),this.length--)}peek(){return this._array[this._length-1]}push(element){if(!this._map.has(element)){const index=this.length++;this._array[index]=element,this._map.set(element,index)}}pop(){const element=this._array[--this.length];return this._map.delete(element),element}reserve(length){(0,env_utils_assert.h)(length>=0),length>this._array.length&&(this._array.length=length)}resize(length){(0,env_utils_assert.h)(length>=0),this.length=length}trim(length){null==length&&(length=this.length),this._array.length=length}reset(){this._array=[],this._map=new Map,this._length=0}find(target){return this._map.has(target)}}const tileset_traverser_DEFAULT_PROPS={loadSiblings:!1,skipLevelOfDetail:!1,maximumScreenSpaceError:2,updateTransforms:!0,onTraversalEnd:()=>{},viewportTraversersMap:{},basePath:""};class TilesetTraverser{traversalFinished(frameState){return!0}constructor(options){(0,defineProperty.Z)(this,"options",void 0),(0,defineProperty.Z)(this,"root",null),(0,defineProperty.Z)(this,"selectedTiles",{}),(0,defineProperty.Z)(this,"requestedTiles",{}),(0,defineProperty.Z)(this,"emptyTiles",{}),(0,defineProperty.Z)(this,"lastUpdate",(new Date).getTime()),(0,defineProperty.Z)(this,"updateDebounceTime",1e3),(0,defineProperty.Z)(this,"_traversalStack",new ManagedArray),(0,defineProperty.Z)(this,"_emptyTraversalStack",new ManagedArray),(0,defineProperty.Z)(this,"_frameNumber",null),this.options={...tileset_traverser_DEFAULT_PROPS,...options}}traverse(root,frameState,options){this.root=root,this.options={...this.options,...options},this.reset(),this.updateTile(root,frameState),this._frameNumber=frameState.frameNumber,this.executeTraversal(root,frameState)}reset(){this.requestedTiles={},this.selectedTiles={},this.emptyTiles={},this._traversalStack.reset(),this._emptyTraversalStack.reset()}executeTraversal(root,frameState){const stack=this._traversalStack;for(root._selectionDepth=1,stack.push(root);stack.length>0;){const tile=stack.pop();let shouldRefine=!1;this.canTraverse(tile,frameState)&&(this.updateChildTiles(tile,frameState),shouldRefine=this.updateAndPushChildren(tile,frameState,stack,tile.hasRenderContent?tile._selectionDepth+1:tile._selectionDepth));const parent=tile.parent,parentRefines=Boolean(!parent||parent._shouldRefine),stoppedRefining=!shouldRefine;tile.hasRenderContent?tile.refine===TILE_REFINEMENT.ADD?(this.loadTile(tile,frameState),this.selectTile(tile,frameState)):tile.refine===TILE_REFINEMENT.REPLACE&&(this.loadTile(tile,frameState),stoppedRefining&&this.selectTile(tile,frameState)):(this.emptyTiles[tile.id]=tile,this.loadTile(tile,frameState),stoppedRefining&&this.selectTile(tile,frameState)),this.touchTile(tile,frameState),tile._shouldRefine=shouldRefine&&parentRefines}const newTime=(new Date).getTime();(this.traversalFinished(frameState)||newTime-this.lastUpdate>this.updateDebounceTime)&&(this.lastUpdate=newTime,this.options.onTraversalEnd(frameState))}updateChildTiles(tile,frameState){const children=tile.children;for(const child of children)this.updateTile(child,frameState)}updateAndPushChildren(tile,frameState,stack,depth){const{loadSiblings:loadSiblings,skipLevelOfDetail:skipLevelOfDetail}=this.options,children=tile.children;children.sort(this.compareDistanceToCamera.bind(this));const checkRefines=tile.refine===TILE_REFINEMENT.REPLACE&&tile.hasRenderContent&&!skipLevelOfDetail;let hasVisibleChild=!1,refines=!0;for(const child of children)if(child._selectionDepth=depth,child.isVisibleAndInRequestVolume?(stack.find(child)&&stack.delete(child),stack.push(child),hasVisibleChild=!0):(checkRefines||loadSiblings)&&(this.loadTile(child,frameState),this.touchTile(child,frameState)),checkRefines){let childRefines;if(childRefines=!!child._inRequestVolume&&(child.hasRenderContent?child.contentAvailable:this.executeEmptyTraversal(child,frameState)),refines=refines&&childRefines,!refines)return!1}return hasVisibleChild||(refines=!1),refines}updateTile(tile,frameState){this.updateTileVisibility(tile,frameState)}selectTile(tile,frameState){this.shouldSelectTile(tile)&&(tile._selectedFrame=frameState.frameNumber,this.selectedTiles[tile.id]=tile)}loadTile(tile,frameState){this.shouldLoadTile(tile)&&(tile._requestedFrame=frameState.frameNumber,tile._priority=tile._getPriority(),this.requestedTiles[tile.id]=tile)}touchTile(tile,frameState){tile.tileset._cache.touch(tile),tile._touchedFrame=frameState.frameNumber}canTraverse(tile,frameState){let useParentMetric=arguments.length>2&&void 0!==arguments[2]&&arguments[2],ignoreVisibility=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return!!tile.hasChildren&&(tile.hasTilesetContent?!tile.contentExpired:!(!ignoreVisibility&&!tile.isVisibleAndInRequestVolume)&&this.shouldRefine(tile,frameState,useParentMetric))}shouldLoadTile(tile){return tile.hasUnloadedContent||tile.contentExpired}shouldSelectTile(tile){return tile.contentAvailable&&!this.options.skipLevelOfDetail}shouldRefine(tile,frameState){let useParentMetric=arguments.length>2&&void 0!==arguments[2]&&arguments[2],screenSpaceError=tile._screenSpaceError;return useParentMetric&&(screenSpaceError=tile.getScreenSpaceError(frameState,!0)),screenSpaceError>this.options.maximumScreenSpaceError}updateTileVisibility(tile,frameState){const viewportIds=[];if(this.options.viewportTraversersMap)for(const key in this.options.viewportTraversersMap){this.options.viewportTraversersMap[key]===frameState.viewport.id&&viewportIds.push(key)}else viewportIds.push(frameState.viewport.id);tile.updateVisibility(frameState,viewportIds)}compareDistanceToCamera(b,a){return b._distanceToCamera-a._distanceToCamera}anyChildrenVisible(tile,frameState){let anyVisible=!1;for(const child of tile.children)child.updateVisibility(frameState),anyVisible=anyVisible||child.isVisibleAndInRequestVolume;return anyVisible}executeEmptyTraversal(root,frameState){let allDescendantsLoaded=!0;const stack=this._emptyTraversalStack;for(stack.push(root);stack.length>0&&allDescendantsLoaded;){const tile=stack.pop();this.updateTile(tile,frameState),tile.isVisibleAndInRequestVolume||this.loadTile(tile,frameState),this.touchTile(tile,frameState);if(!tile.hasRenderContent&&this.canTraverse(tile,frameState,!1,!0)){const children=tile.children;for(const child of children)stack.find(child)&&stack.delete(child),stack.push(child)}else tile.contentAvailable||tile.hasEmptyContent||(allDescendantsLoaded=!1)}return allDescendantsLoaded}}const tile_3d_scratchVector=new vector3.Z;class Tile3D{constructor(tileset,header,parentHeader){let extendedId=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";(0,defineProperty.Z)(this,"tileset",void 0),(0,defineProperty.Z)(this,"header",void 0),(0,defineProperty.Z)(this,"id",void 0),(0,defineProperty.Z)(this,"url",void 0),(0,defineProperty.Z)(this,"parent",void 0),(0,defineProperty.Z)(this,"refine",void 0),(0,defineProperty.Z)(this,"type",void 0),(0,defineProperty.Z)(this,"contentUrl",void 0),(0,defineProperty.Z)(this,"lodMetricType","geometricError"),(0,defineProperty.Z)(this,"lodMetricValue",0),(0,defineProperty.Z)(this,"boundingVolume",null),(0,defineProperty.Z)(this,"content",null),(0,defineProperty.Z)(this,"contentState",TILE_CONTENT_STATE_UNLOADED),(0,defineProperty.Z)(this,"gpuMemoryUsageInBytes",0),(0,defineProperty.Z)(this,"children",[]),(0,defineProperty.Z)(this,"depth",0),(0,defineProperty.Z)(this,"viewportIds",[]),(0,defineProperty.Z)(this,"transform",new matrix4.Z),(0,defineProperty.Z)(this,"extensions",null),(0,defineProperty.Z)(this,"implicitTiling",null),(0,defineProperty.Z)(this,"userData",{}),(0,defineProperty.Z)(this,"computedTransform",void 0),(0,defineProperty.Z)(this,"hasEmptyContent",!1),(0,defineProperty.Z)(this,"hasTilesetContent",!1),(0,defineProperty.Z)(this,"traverser",new TilesetTraverser({})),(0,defineProperty.Z)(this,"_cacheNode",null),(0,defineProperty.Z)(this,"_frameNumber",null),(0,defineProperty.Z)(this,"_expireDate",null),(0,defineProperty.Z)(this,"_expiredContent",null),(0,defineProperty.Z)(this,"_boundingBox",void 0),(0,defineProperty.Z)(this,"_distanceToCamera",0),(0,defineProperty.Z)(this,"_screenSpaceError",0),(0,defineProperty.Z)(this,"_visibilityPlaneMask",void 0),(0,defineProperty.Z)(this,"_visible",void 0),(0,defineProperty.Z)(this,"_contentBoundingVolume",void 0),(0,defineProperty.Z)(this,"_viewerRequestVolume",void 0),(0,defineProperty.Z)(this,"_initialTransform",new matrix4.Z),(0,defineProperty.Z)(this,"_priority",0),(0,defineProperty.Z)(this,"_selectedFrame",0),(0,defineProperty.Z)(this,"_requestedFrame",0),(0,defineProperty.Z)(this,"_selectionDepth",0),(0,defineProperty.Z)(this,"_touchedFrame",0),(0,defineProperty.Z)(this,"_centerZDepth",0),(0,defineProperty.Z)(this,"_shouldRefine",!1),(0,defineProperty.Z)(this,"_stackLength",0),(0,defineProperty.Z)(this,"_visitedFrame",0),(0,defineProperty.Z)(this,"_inRequestVolume",!1),(0,defineProperty.Z)(this,"_lodJudge",null),this.header=header,this.tileset=tileset,this.id=extendedId||header.id,this.url=header.url,this.parent=parentHeader,this.refine=this._getRefine(header.refine),this.type=header.type,this.contentUrl=header.contentUrl,this._initializeLodMetric(header),this._initializeTransforms(header),this._initializeBoundingVolumes(header),this._initializeContent(header),this._initializeRenderingState(header),Object.seal(this)}destroy(){this.header=null}isDestroyed(){return null===this.header}get selected(){return this._selectedFrame===this.tileset._frameNumber}get isVisible(){return this._visible}get isVisibleAndInRequestVolume(){return this._visible&&this._inRequestVolume}get hasRenderContent(){return!this.hasEmptyContent&&!this.hasTilesetContent}get hasChildren(){return this.children.length>0||this.header.children&&this.header.children.length>0}get contentReady(){return this.contentState===TILE_CONTENT_STATE_READY||this.hasEmptyContent}get contentAvailable(){return Boolean(this.contentReady&&this.hasRenderContent||this._expiredContent&&!this.contentFailed)}get hasUnloadedContent(){return this.hasRenderContent&&this.contentUnloaded}get contentUnloaded(){return this.contentState===TILE_CONTENT_STATE_UNLOADED}get contentExpired(){return this.contentState===TILE_CONTENT_STATE_EXPIRED}get contentFailed(){return this.contentState===TILE_CONTENT_STATE_FAILED}get distanceToCamera(){return this._distanceToCamera}get screenSpaceError(){return this._screenSpaceError}get boundingBox(){return this._boundingBox||(this._boundingBox=getCartographicBounds(this.header.boundingVolume,this.boundingVolume)),this._boundingBox}getScreenSpaceError(frameState,useParentLodMetric){switch(this.tileset.type){case TILESET_TYPE.I3S:return getProjectedRadius(this,frameState);case TILESET_TYPE.TILES3D:return function getTiles3DScreenSpaceError(tile,frameState,useParentLodMetric){const tileset=tile.tileset,parentLodMetricValue=tile.parent&&tile.parent.lodMetricValue||tile.lodMetricValue,lodMetricValue=useParentLodMetric?parentLodMetricValue:tile.lodMetricValue;if(0===lodMetricValue)return 0;const distance=Math.max(tile._distanceToCamera,1e-7),{height:height,sseDenominator:sseDenominator}=frameState,{viewDistanceScale:viewDistanceScale}=tileset.options;let error=lodMetricValue*height*(viewDistanceScale||1)/(distance*sseDenominator);return error-=getDynamicScreenSpaceError(tileset,distance),error}(this,frameState,useParentLodMetric);default:throw new Error("Unsupported tileset type")}}unselect(){this._selectedFrame=0}_getGpuMemoryUsageInBytes(){return this.content.gpuMemoryUsageInBytes||this.content.byteLength||0}_getPriority(){const traverser=this.tileset._traverser,{skipLevelOfDetail:skipLevelOfDetail}=traverser.options,maySkipTile=this.refine===TILE_REFINEMENT.ADD||skipLevelOfDetail;if(maySkipTile&&!this.isVisible&&void 0!==this._visible)return-1;if(this.tileset._frameNumber-this._touchedFrame>=1)return-1;if(this.contentState===TILE_CONTENT_STATE_UNLOADED)return-1;const parent=this.parent,screenSpaceError=parent&&(!maySkipTile||0===this._screenSpaceError||parent.hasTilesetContent)?parent._screenSpaceError:this._screenSpaceError,rootScreenSpaceError=traverser.root?traverser.root._screenSpaceError:0;return Math.max(rootScreenSpaceError-screenSpaceError,0)}async loadContent(){if(this.hasEmptyContent)return!1;if(this.content)return!0;this.contentExpired&&(this._expireDate=null),this.contentState=TILE_CONTENT_STATE_LOADING;const requestToken=await this.tileset._requestScheduler.scheduleRequest(this.id,this._getPriority.bind(this));if(!requestToken)return this.contentState=TILE_CONTENT_STATE_UNLOADED,!1;try{const contentUrl=this.tileset.getTileUrl(this.contentUrl),loader=this.tileset.loader,options={...this.tileset.loadOptions,[loader.id]:{...this.tileset.loadOptions[loader.id],isTileset:"json"===this.type,...this._getLoaderSpecificOptions(loader.id)}};return this.content=await(0,load.z)(contentUrl,loader,options),this.tileset.options.contentLoader&&await this.tileset.options.contentLoader(this),this._isTileset()&&this.tileset._initializeTileHeaders(this.content,this),this.contentState=TILE_CONTENT_STATE_READY,this._onContentLoaded(),!0}catch(error){throw this.contentState=TILE_CONTENT_STATE_FAILED,error}finally{requestToken.done()}}unloadContent(){return this.content&&this.content.destroy&&this.content.destroy(),this.content=null,this.header.content&&this.header.content.destroy&&this.header.content.destroy(),this.header.content=null,this.contentState=TILE_CONTENT_STATE_UNLOADED,!0}updateVisibility(frameState,viewportIds){if(this._frameNumber===frameState.frameNumber)return;const parent=this.parent,parentVisibilityPlaneMask=parent?parent._visibilityPlaneMask:culling_volume_CullingVolume.MASK_INDETERMINATE;if(this.tileset._traverser.options.updateTransforms){const parentTransform=parent?parent.computedTransform:this.tileset.modelMatrix;this._updateTransform(parentTransform)}this._distanceToCamera=this.distanceToTile(frameState),this._screenSpaceError=this.getScreenSpaceError(frameState,!1),this._visibilityPlaneMask=this.visibility(frameState,parentVisibilityPlaneMask),this._visible=this._visibilityPlaneMask!==culling_volume_CullingVolume.MASK_OUTSIDE,this._inRequestVolume=this.insideViewerRequestVolume(frameState),this._frameNumber=frameState.frameNumber,this.viewportIds=viewportIds}visibility(frameState,parentVisibilityPlaneMask){const{cullingVolume:cullingVolume}=frameState,{boundingVolume:boundingVolume}=this;return cullingVolume.computeVisibilityWithPlaneMask(boundingVolume,parentVisibilityPlaneMask)}contentVisibility(){return!0}distanceToTile(frameState){const boundingVolume=this.boundingVolume;return Math.sqrt(Math.max(boundingVolume.distanceSquaredTo(frameState.camera.position),0))}cameraSpaceZDepth(_ref){let{camera:camera}=_ref;const boundingVolume=this.boundingVolume;return tile_3d_scratchVector.subVectors(boundingVolume.center,camera.position),camera.direction.dot(tile_3d_scratchVector)}insideViewerRequestVolume(frameState){const viewerRequestVolume=this._viewerRequestVolume;return!viewerRequestVolume||viewerRequestVolume.distanceSquaredTo(frameState.camera.position)<=0}updateExpiration(){if(function tile_3d_defined(x){return null!=x}(this._expireDate)&&this.contentReady&&!this.hasEmptyContent){const now=Date.now();Date.lessThan(this._expireDate,now)&&(this.contentState=TILE_CONTENT_STATE_EXPIRED,this._expiredContent=this.content)}}get extras(){return this.header.extras}_initializeLodMetric(header){"lodMetricType"in header?this.lodMetricType=header.lodMetricType:(this.lodMetricType=this.parent&&this.parent.lodMetricType||this.tileset.lodMetricType,console.warn("3D Tile: Required prop lodMetricType is undefined. Using parent lodMetricType")),"lodMetricValue"in header?this.lodMetricValue=header.lodMetricValue:(this.lodMetricValue=this.parent&&this.parent.lodMetricValue||this.tileset.lodMetricValue,console.warn("3D Tile: Required prop lodMetricValue is undefined. Using parent lodMetricValue"))}_initializeTransforms(tileHeader){this.transform=tileHeader.transform?new matrix4.Z(tileHeader.transform):new matrix4.Z;const parent=this.parent,tileset=this.tileset,parentTransform=parent&&parent.computedTransform?parent.computedTransform.clone():tileset.modelMatrix.clone();this.computedTransform=new matrix4.Z(parentTransform).multiplyRight(this.transform);const parentInitialTransform=parent&&parent._initialTransform?parent._initialTransform.clone():new matrix4.Z;this._initialTransform=new matrix4.Z(parentInitialTransform).multiplyRight(this.transform)}_initializeBoundingVolumes(tileHeader){this._contentBoundingVolume=null,this._viewerRequestVolume=null,this._updateBoundingVolume(tileHeader)}_initializeContent(tileHeader){this.content={_tileset:this.tileset,_tile:this},this.hasEmptyContent=!0,this.contentState=TILE_CONTENT_STATE_UNLOADED,this.hasTilesetContent=!1,tileHeader.contentUrl&&(this.content=null,this.hasEmptyContent=!1)}_initializeRenderingState(header){this.depth=header.level||(this.parent?this.parent.depth+1:0),this._shouldRefine=!1,this._distanceToCamera=0,this._centerZDepth=0,this._screenSpaceError=0,this._visibilityPlaneMask=culling_volume_CullingVolume.MASK_INDETERMINATE,this._visible=void 0,this._inRequestVolume=!1,this._stackLength=0,this._selectionDepth=0,this._frameNumber=0,this._touchedFrame=0,this._visitedFrame=0,this._selectedFrame=0,this._requestedFrame=0,this._priority=0}_getRefine(refine){return refine||this.parent&&this.parent.refine||TILE_REFINEMENT.REPLACE}_isTileset(){return-1!==this.contentUrl.indexOf(".json")}_onContentLoaded(){switch(this.content&&this.content.type){case"vctr":case"geom":this.tileset._traverser.disableSkipLevelOfDetail=!0}this._isTileset()?this.hasTilesetContent=!0:this.gpuMemoryUsageInBytes=this._getGpuMemoryUsageInBytes()}_updateBoundingVolume(header){this.boundingVolume=createBoundingVolume(header.boundingVolume,this.computedTransform,this.boundingVolume);const content=header.content;content&&(content.boundingVolume&&(this._contentBoundingVolume=createBoundingVolume(content.boundingVolume,this.computedTransform,this._contentBoundingVolume)),header.viewerRequestVolume&&(this._viewerRequestVolume=createBoundingVolume(header.viewerRequestVolume,this.computedTransform,this._viewerRequestVolume)))}_updateTransform(){const computedTransform=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:new matrix4.Z).clone().multiplyRight(this.transform);!computedTransform.equals(this.computedTransform)&&(this.computedTransform=computedTransform,this._updateBoundingVolume(this.header))}_getLoaderSpecificOptions(loaderId){return"i3s"===loaderId?{...this.tileset.options.i3s,_tileOptions:{attributeUrls:this.header.attributeUrls,textureUrl:this.header.textureUrl,textureFormat:this.header.textureFormat,textureLoaderOptions:this.header.textureLoaderOptions,materialDefinition:this.header.materialDefinition,isDracoGeometry:this.header.isDracoGeometry,mbs:this.header.mbs},_tilesetOptions:{store:this.tileset.tileset.store,attributeStorageInfo:this.tileset.tileset.attributeStorageInfo,fields:this.tileset.tileset.fields},isTileHeader:!1}:function get3dTilesOptions(tileset){return{assetGltfUpAxis:tileset.asset&&tileset.asset.gltfUpAxis||"Y"}}(this.tileset.tileset)}}class Tileset3DTraverser extends TilesetTraverser{compareDistanceToCamera(a,b){return 0===b._distanceToCamera&&0===a._distanceToCamera?b._centerZDepth-a._centerZDepth:b._distanceToCamera-a._distanceToCamera}updateTileVisibility(tile,frameState){if(super.updateTileVisibility(tile,frameState),!tile.isVisibleAndInRequestVolume)return;const hasChildren=tile.children.length>0;if(tile.hasTilesetContent&&hasChildren){const firstChild=tile.children[0];return this.updateTileVisibility(firstChild,frameState),void(tile._visible=firstChild._visible)}if(this.meetsScreenSpaceErrorEarly(tile,frameState))return void(tile._visible=!1);const replace=tile.refine===TILE_REFINEMENT.REPLACE,useOptimization=tile._optimChildrenWithinParent===TILE3D_OPTIMIZATION_HINT_USE_OPTIMIZATION;replace&&useOptimization&&hasChildren&&!this.anyChildrenVisible(tile,frameState)&&(tile._visible=!1)}meetsScreenSpaceErrorEarly(tile,frameState){const{parent:parent}=tile;return!(!parent||parent.hasTilesetContent||parent.refine!==TILE_REFINEMENT.ADD)&&!this.shouldRefine(tile,frameState,!0)}}class I3SPendingTilesRegister{constructor(){(0,defineProperty.Z)(this,"frameNumberMap",new Map)}register(viewportId,frameNumber){const viewportMap=this.frameNumberMap.get(viewportId)||new Map,oldCount=viewportMap.get(frameNumber)||0;viewportMap.set(frameNumber,oldCount+1),this.frameNumberMap.set(viewportId,viewportMap)}deregister(viewportId,frameNumber){const viewportMap=this.frameNumberMap.get(viewportId);if(!viewportMap)return;const oldCount=viewportMap.get(frameNumber)||1;viewportMap.set(frameNumber,oldCount-1)}isZero(viewportId,frameNumber){var _this$frameNumberMap$;return 0===((null===(_this$frameNumberMap$=this.frameNumberMap.get(viewportId))||void 0===_this$frameNumberMap$?void 0:_this$frameNumberMap$.get(frameNumber))||0)}}const STATUS_REQUESTED="REQUESTED",STATUS_COMPLETED="COMPLETED",STATUS_ERROR="ERROR";class I3STileManager{constructor(){(0,defineProperty.Z)(this,"_statusMap",void 0),(0,defineProperty.Z)(this,"pendingTilesRegister",new I3SPendingTilesRegister),this._statusMap={}}add(request,key,callback,frameState){if(!this._statusMap[key]){const{frameNumber:frameNumber,viewport:{id:id}}=frameState;this._statusMap[key]={request:request,callback:callback,key:key,frameState:frameState,status:STATUS_REQUESTED},this.pendingTilesRegister.register(id,frameNumber),request().then((data=>{this._statusMap[key].status=STATUS_COMPLETED;const{frameNumber:actualFrameNumber,viewport:{id:id}}=this._statusMap[key].frameState;this.pendingTilesRegister.deregister(id,actualFrameNumber),this._statusMap[key].callback(data,frameState)})).catch((error=>{this._statusMap[key].status=STATUS_ERROR;const{frameNumber:actualFrameNumber,viewport:{id:id}}=this._statusMap[key].frameState;this.pendingTilesRegister.deregister(id,actualFrameNumber),callback(error)}))}}update(key,frameState){if(this._statusMap[key]){const{frameNumber:frameNumber,viewport:{id:id}}=this._statusMap[key].frameState;this.pendingTilesRegister.deregister(id,frameNumber);const{frameNumber:newFrameNumber,viewport:{id:newViewportId}}=frameState;this.pendingTilesRegister.register(newViewportId,newFrameNumber),this._statusMap[key].frameState=frameState}}find(key){return this._statusMap[key]}hasPendingTiles(viewportId,frameNumber){return!this.pendingTilesRegister.isZero(viewportId,frameNumber)}}class I3STilesetTraverser extends TilesetTraverser{constructor(options){super(options),(0,defineProperty.Z)(this,"_tileManager",void 0),this._tileManager=new I3STileManager}traversalFinished(frameState){return!this._tileManager.hasPendingTiles(frameState.viewport.id,this._frameNumber||0)}shouldRefine(tile,frameState){return tile._lodJudge=function getLodStatus(tile,frameState){if(0===tile.lodMetricValue||isNaN(tile.lodMetricValue))return"DIG";const screenSize=2*getProjectedRadius(tile,frameState);return screenSize<2?"OUT":!tile.header.children||screenSize<=tile.lodMetricValue?"DRAW":tile.header.children?"DIG":"OUT"}(tile,frameState),"DIG"===tile._lodJudge}updateChildTiles(tile,frameState){const children=tile.header.children||[],childTiles=tile.children,tileset=tile.tileset;for(const child of children){const extendedId="".concat(child.id,"-").concat(frameState.viewport.id),childTile=childTiles&&childTiles.find((t=>t.id===extendedId));if(childTile)childTile&&this.updateTile(childTile,frameState);else{let request=()=>this._loadTile(child.id,tileset);this._tileManager.find(extendedId)?this._tileManager.update(extendedId,frameState):(tileset.tileset.nodePages&&(request=()=>tileset.tileset.nodePagesTile.formTileFromNodePages(child.id)),this._tileManager.add(request,extendedId,(header=>this._onTileLoad(header,tile,extendedId)),frameState))}}return!1}async _loadTile(nodeId,tileset){const{loader:loader}=tileset,nodeUrl=tileset.getTileUrl("".concat(tileset.url,"/nodes/").concat(nodeId)),options={...tileset.loadOptions,i3s:{...tileset.loadOptions.i3s,isTileHeader:!0}};return await(0,load.z)(nodeUrl,loader,options)}_onTileLoad(header,tile,extendedId){const childTile=new Tile3D(tile.tileset,header,tile,extendedId);tile.children.push(childTile);const frameState=this._tileManager.find(childTile.id).frameState;this.updateTile(childTile,frameState),this._frameNumber===frameState.frameNumber&&(this.traversalFinished(frameState)||(new Date).getTime()-this.lastUpdate>this.updateDebounceTime)&&this.executeTraversal(childTile,frameState)}}const tileset_3d_DEFAULT_PROPS={description:"",ellipsoid:Ellipsoid.WGS84,modelMatrix:new matrix4.Z,throttleRequests:!0,maxRequests:64,maximumMemoryUsage:32,maximumTilesSelected:0,debounceTime:0,onTileLoad:()=>{},onTileUnload:()=>{},onTileError:()=>{},onTraversalComplete:selectedTiles=>selectedTiles,contentLoader:void 0,viewDistanceScale:1,maximumScreenSpaceError:8,loadTiles:!0,updateTransforms:!0,viewportTraversersMap:null,loadOptions:{fetch:{}},attributions:[],basePath:"",i3s:{}},TILES_TOTAL="Tiles In Tileset(s)";class Tileset3D{constructor(tileset,options){(0,defineProperty.Z)(this,"options",void 0),(0,defineProperty.Z)(this,"loadOptions",void 0),(0,defineProperty.Z)(this,"type",void 0),(0,defineProperty.Z)(this,"tileset",void 0),(0,defineProperty.Z)(this,"loader",void 0),(0,defineProperty.Z)(this,"url",void 0),(0,defineProperty.Z)(this,"basePath",void 0),(0,defineProperty.Z)(this,"modelMatrix",void 0),(0,defineProperty.Z)(this,"ellipsoid",void 0),(0,defineProperty.Z)(this,"lodMetricType",void 0),(0,defineProperty.Z)(this,"lodMetricValue",void 0),(0,defineProperty.Z)(this,"refine",void 0),(0,defineProperty.Z)(this,"root",null),(0,defineProperty.Z)(this,"roots",{}),(0,defineProperty.Z)(this,"asset",{}),(0,defineProperty.Z)(this,"description",""),(0,defineProperty.Z)(this,"properties",void 0),(0,defineProperty.Z)(this,"extras",null),(0,defineProperty.Z)(this,"attributions",{}),(0,defineProperty.Z)(this,"credits",{}),(0,defineProperty.Z)(this,"stats",void 0),(0,defineProperty.Z)(this,"contentFormats",{draco:!1,meshopt:!1,dds:!1,ktx2:!1}),(0,defineProperty.Z)(this,"cartographicCenter",null),(0,defineProperty.Z)(this,"cartesianCenter",null),(0,defineProperty.Z)(this,"zoom",1),(0,defineProperty.Z)(this,"boundingVolume",null),(0,defineProperty.Z)(this,"dynamicScreenSpaceErrorComputedDensity",0),(0,defineProperty.Z)(this,"maximumMemoryUsage",32),(0,defineProperty.Z)(this,"gpuMemoryUsageInBytes",0),(0,defineProperty.Z)(this,"_frameNumber",0),(0,defineProperty.Z)(this,"_queryParams",{}),(0,defineProperty.Z)(this,"_extensionsUsed",[]),(0,defineProperty.Z)(this,"_tiles",{}),(0,defineProperty.Z)(this,"_pendingCount",0),(0,defineProperty.Z)(this,"selectedTiles",[]),(0,defineProperty.Z)(this,"traverseCounter",0),(0,defineProperty.Z)(this,"geometricError",0),(0,defineProperty.Z)(this,"lastUpdatedVieports",null),(0,defineProperty.Z)(this,"_requestedTiles",[]),(0,defineProperty.Z)(this,"_emptyTiles",[]),(0,defineProperty.Z)(this,"frameStateData",{}),(0,defineProperty.Z)(this,"_traverser",void 0),(0,defineProperty.Z)(this,"_cache",new TilesetCache),(0,defineProperty.Z)(this,"_requestScheduler",void 0),(0,defineProperty.Z)(this,"updatePromise",null),(0,defineProperty.Z)(this,"tilesetInitializationPromise",void 0),this.options={...tileset_3d_DEFAULT_PROPS,...options},this.tileset=tileset,this.loader=tileset.loader,this.type=tileset.type,this.url=tileset.url,this.basePath=tileset.basePath||path.XX(this.url),this.modelMatrix=this.options.modelMatrix,this.ellipsoid=this.options.ellipsoid,this.lodMetricType=tileset.lodMetricType,this.lodMetricValue=tileset.lodMetricValue,this.refine=tileset.root.refine,this.loadOptions=this.options.loadOptions||{},this._traverser=this._initializeTraverser(),this._requestScheduler=new RequestScheduler({throttleRequests:this.options.throttleRequests,maxRequests:this.options.maxRequests}),this.stats=new stats_Stats({id:this.url}),this._initializeStats(),this.tilesetInitializationPromise=this._initializeTileSet(tileset)}destroy(){this._destroy()}isLoaded(){return 0===this._pendingCount&&0!==this._frameNumber&&0===this._requestedTiles.length}get tiles(){return Object.values(this._tiles)}get frameNumber(){return this._frameNumber}get queryParams(){return new URLSearchParams(this._queryParams).toString()}setProps(props){this.options={...this.options,...props}}setOptions(options){this.options={...this.options,...options}}getTileUrl(tilePath){return tilePath.startsWith("data:")?tilePath:"".concat(tilePath).concat(tilePath.includes("?")?"&":"?").concat(this.queryParams)}hasExtension(extensionName){return Boolean(this._extensionsUsed.indexOf(extensionName)>-1)}update(){let viewports=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.tilesetInitializationPromise.then((()=>{!viewports&&this.lastUpdatedVieports?viewports=this.lastUpdatedVieports:this.lastUpdatedVieports=viewports,viewports&&this.doUpdate(viewports)}))}async selectTiles(){let viewports=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return await this.tilesetInitializationPromise,viewports&&(this.lastUpdatedVieports=viewports),this.updatePromise||(this.updatePromise=new Promise((resolve=>{setTimeout((()=>{this.lastUpdatedVieports&&this.doUpdate(this.lastUpdatedVieports),resolve(this._frameNumber),this.updatePromise=null}),this.options.debounceTime)}))),this.updatePromise}doUpdate(viewports){if("loadTiles"in this.options&&!this.options.loadTiles)return;if(this.traverseCounter>0)return;const preparedViewports=viewports instanceof Array?viewports:[viewports];this._cache.reset(),this._frameNumber++,this.traverseCounter=preparedViewports.length;const viewportsToTraverse=[];for(const viewport of preparedViewports){const id=viewport.id;this._needTraverse(id)?viewportsToTraverse.push(id):this.traverseCounter--}for(const viewport of preparedViewports){const id=viewport.id;if(this.roots[id]||(this.roots[id]=this._initializeTileHeaders(this.tileset,null)),!viewportsToTraverse.includes(id))continue;const frameState=getFrameState(viewport,this._frameNumber);this._traverser.traverse(this.roots[id],frameState,this.options)}}_needTraverse(viewportId){let traverserId=viewportId;return this.options.viewportTraversersMap&&(traverserId=this.options.viewportTraversersMap[viewportId]),traverserId===viewportId}_onTraversalEnd(frameState){const id=frameState.viewport.id;this.frameStateData[id]||(this.frameStateData[id]={selectedTiles:[],_requestedTiles:[],_emptyTiles:[]});const currentFrameStateData=this.frameStateData[id],selectedTiles=Object.values(this._traverser.selectedTiles),[filteredSelectedTiles,unselectedTiles]=function limitSelectedTiles(tiles,frameState,maximumTilesSelected){if(0===maximumTilesSelected||tiles.length<=maximumTilesSelected)return[tiles,[]];const tuples=[],{longitude:viewportLongitude,latitude:viewportLatitude}=frameState.viewport;for(const[index,tile]of tiles.entries()){const[longitude,latitude]=tile.header.mbs,deltaLon=Math.abs(viewportLongitude-longitude),deltaLat=Math.abs(viewportLatitude-latitude),distance=Math.sqrt(deltaLat*deltaLat+deltaLon*deltaLon);tuples.push([index,distance])}const tuplesSorted=tuples.sort(((a,b)=>a[1]-b[1])),selectedTiles=[];for(let i=0;i0||this._updateTiles()}_updateTiles(){this.selectedTiles=[],this._requestedTiles=[],this._emptyTiles=[];for(const frameStateKey in this.frameStateData){const frameStateDataValue=this.frameStateData[frameStateKey];this.selectedTiles=this.selectedTiles.concat(frameStateDataValue.selectedTiles),this._requestedTiles=this._requestedTiles.concat(frameStateDataValue._requestedTiles),this._emptyTiles=this._emptyTiles.concat(frameStateDataValue._emptyTiles)}this.selectedTiles=this.options.onTraversalComplete(this.selectedTiles);for(const tile of this.selectedTiles)this._tiles[tile.id]=tile;this._loadTiles(),this._unloadTiles(),this._updateStats()}_tilesChanged(oldSelectedTiles,selectedTiles){if(oldSelectedTiles.length!==selectedTiles.length)return!0;const set1=new Set(oldSelectedTiles.map((t=>t.id))),set2=new Set(selectedTiles.map((t=>t.id)));let changed=oldSelectedTiles.filter((x=>!set2.has(x.id))).length>0;return changed=changed||selectedTiles.filter((x=>!set1.has(x.id))).length>0,changed}_loadTiles(){for(const tile of this._requestedTiles)tile.contentUnloaded&&this._loadTile(tile)}_unloadTiles(){this._cache.unloadTiles(this,((tileset,tile)=>tileset._unloadTile(tile)))}_updateStats(){let tilesRenderable=0,pointsRenderable=0;for(const tile of this.selectedTiles)tile.contentAvailable&&tile.content&&(tilesRenderable++,tile.content.pointCount?pointsRenderable+=tile.content.pointCount:pointsRenderable+=tile.content.vertexCount);this.stats.get("Tiles In View").count=this.selectedTiles.length,this.stats.get("Tiles To Render").count=tilesRenderable,this.stats.get("Points/Vertices").count=pointsRenderable}async _initializeTileSet(tilesetJson){this.type===TILESET_TYPE.I3S&&(this.calculateViewPropsI3S(),tilesetJson.root=await tilesetJson.root),this.root=this._initializeTileHeaders(tilesetJson,null),this.type===TILESET_TYPE.TILES3D&&(this._initializeTiles3DTileset(tilesetJson),this.calculateViewPropsTiles3D()),this.type===TILESET_TYPE.I3S&&this._initializeI3STileset()}calculateViewPropsI3S(){var _this$tileset$store;const fullExtent=this.tileset.fullExtent;if(fullExtent){const{xmin:xmin,xmax:xmax,ymin:ymin,ymax:ymax,zmin:zmin,zmax:zmax}=fullExtent;return this.cartographicCenter=new vector3.Z(xmin+(xmax-xmin)/2,ymin+(ymax-ymin)/2,zmin+(zmax-zmin)/2),this.cartesianCenter=Ellipsoid.WGS84.cartographicToCartesian(this.cartographicCenter,new vector3.Z),void(this.zoom=getZoomFromFullExtent(fullExtent,this.cartographicCenter,this.cartesianCenter))}const extent=null===(_this$tileset$store=this.tileset.store)||void 0===_this$tileset$store?void 0:_this$tileset$store.extent;if(extent){const[xmin,ymin,xmax,ymax]=extent;return this.cartographicCenter=new vector3.Z(xmin+(xmax-xmin)/2,ymin+(ymax-ymin)/2,0),this.cartesianCenter=Ellipsoid.WGS84.cartographicToCartesian(this.cartographicCenter,new vector3.Z),void(this.zoom=function getZoomFromExtent(extent,cartorgraphicCenter,cartesianCenter){const[xmin,ymin,xmax,ymax]=extent;return getZoomFromFullExtent({xmin:xmin,xmax:xmax,ymin:ymin,ymax:ymax,zmin:0,zmax:0},cartorgraphicCenter,cartesianCenter)}(extent,this.cartographicCenter,this.cartesianCenter))}console.warn("Extent is not defined in the tileset header"),this.cartographicCenter=new vector3.Z,this.zoom=1}calculateViewPropsTiles3D(){const root=this.root,{center:center}=root.boundingVolume;if(!center)return console.warn("center was not pre-calculated for the root tile"),this.cartographicCenter=new vector3.Z,void(this.zoom=1);0!==center[0]||0!==center[1]||0!==center[2]?this.cartographicCenter=Ellipsoid.WGS84.cartesianToCartographic(center,new vector3.Z):this.cartographicCenter=new vector3.Z(0,0,-Ellipsoid.WGS84.radii[0]),this.cartesianCenter=center,this.zoom=getZoomFromBoundingVolume(root.boundingVolume,this.cartographicCenter)}_initializeStats(){this.stats.get(TILES_TOTAL),this.stats.get("Tiles Loading"),this.stats.get("Tiles In Memory"),this.stats.get("Tiles In View"),this.stats.get("Tiles To Render"),this.stats.get("Tiles Loaded"),this.stats.get("Tiles Unloaded"),this.stats.get("Failed Tile Loads"),this.stats.get("Points/Vertices"),this.stats.get("Tile Memory Use","memory")}_initializeTileHeaders(tilesetJson,parentTileHeader){const rootTile=new Tile3D(this,tilesetJson.root,parentTileHeader);if(parentTileHeader&&(parentTileHeader.children.push(rootTile),rootTile.depth=parentTileHeader.depth+1),this.type===TILESET_TYPE.TILES3D){const stack=[];for(stack.push(rootTile);stack.length>0;){const tile=stack.pop();this.stats.get(TILES_TOTAL).incrementCount();const children=tile.header.children||[];for(const childHeader of children){var _childTile$contentUrl;const childTile=new Tile3D(this,childHeader,tile);if(null!==(_childTile$contentUrl=childTile.contentUrl)&&void 0!==_childTile$contentUrl&&_childTile$contentUrl.includes("?session=")){const session=new URL(childTile.contentUrl).searchParams.get("session");session&&(this._queryParams.session=session)}tile.children.push(childTile),childTile.depth=tile.depth+1,stack.push(childTile)}}}return rootTile}_initializeTraverser(){let TraverserClass;switch(this.type){case TILESET_TYPE.TILES3D:TraverserClass=Tileset3DTraverser;break;case TILESET_TYPE.I3S:TraverserClass=I3STilesetTraverser;break;default:TraverserClass=TilesetTraverser}return new TraverserClass({basePath:this.basePath,onTraversalEnd:this._onTraversalEnd.bind(this)})}_destroyTileHeaders(parentTile){this._destroySubtree(parentTile)}async _loadTile(tile){let loaded;try{this._onStartTileLoading(),loaded=await tile.loadContent()}catch(error){this._onTileLoadError(tile,error instanceof Error?error:new Error("load failed"))}finally{this._onEndTileLoading(),this._onTileLoad(tile,loaded)}}_onTileLoadError(tile,error){this.stats.get("Failed Tile Loads").incrementCount();const message=error.message||error.toString(),url=tile.url;console.error("A 3D tile failed to load: ".concat(tile.url," ").concat(message)),this.options.onTileError(tile,message,url)}_onTileLoad(tile,loaded){if(loaded){if(this.type===TILESET_TYPE.I3S){var _this$tileset,_this$tileset$nodePag;const nodesInNodePages=(null===(_this$tileset=this.tileset)||void 0===_this$tileset||null===(_this$tileset$nodePag=_this$tileset.nodePagesTile)||void 0===_this$tileset$nodePag?void 0:_this$tileset$nodePag.nodesInNodePages)||0;this.stats.get(TILES_TOTAL).reset(),this.stats.get(TILES_TOTAL).addCount(nodesInNodePages)}tile&&tile.content&&function calculateTransformProps(tileHeader,tile){(0,env_utils_assert.h)(tileHeader),(0,env_utils_assert.h)(tile);const{rtcCenter:rtcCenter,gltfUpAxis:gltfUpAxis}=tile,{computedTransform:computedTransform,boundingVolume:{center:center}}=tileHeader;let modelMatrix=new matrix4.Z(computedTransform);switch(rtcCenter&&modelMatrix.translate(rtcCenter),gltfUpAxis){case"Z":default:break;case"Y":const rotationY=(new matrix4.Z).rotateX(Math.PI/2);modelMatrix=modelMatrix.multiplyRight(rotationY);break;case"X":const rotationX=(new matrix4.Z).rotateY(-Math.PI/2);modelMatrix=modelMatrix.multiplyRight(rotationX)}tile.isQuantized&&modelMatrix.translate(tile.quantizedVolumeOffset).scale(tile.quantizedVolumeScale);const cartesianOrigin=new vector3.Z(center);tile.cartesianModelMatrix=modelMatrix,tile.cartesianOrigin=cartesianOrigin;const cartographicOrigin=Ellipsoid.WGS84.cartesianToCartographic(cartesianOrigin,new vector3.Z),toFixedFrameMatrix=Ellipsoid.WGS84.eastNorthUpToFixedFrame(cartesianOrigin).invert();tile.cartographicModelMatrix=toFixedFrameMatrix.multiplyRight(modelMatrix),tile.cartographicOrigin=cartographicOrigin,tile.coordinateSystem||(tile.modelMatrix=tile.cartographicModelMatrix)}(tile,tile.content),this.updateContentTypes(tile),this._addTileToCache(tile),this.options.onTileLoad(tile)}}updateContentTypes(tile){if(this.type===TILESET_TYPE.I3S)switch(tile.header.isDracoGeometry&&(this.contentFormats.draco=!0),tile.header.textureFormat){case"dds":this.contentFormats.dds=!0;break;case"ktx2":this.contentFormats.ktx2=!0}else if(this.type===TILESET_TYPE.TILES3D){var _tile$content;const{extensionsRemoved:extensionsRemoved=[]}=(null===(_tile$content=tile.content)||void 0===_tile$content?void 0:_tile$content.gltf)||{};extensionsRemoved.includes("KHR_draco_mesh_compression")&&(this.contentFormats.draco=!0),extensionsRemoved.includes("EXT_meshopt_compression")&&(this.contentFormats.meshopt=!0),extensionsRemoved.includes("KHR_texture_basisu")&&(this.contentFormats.ktx2=!0)}}_onStartTileLoading(){this._pendingCount++,this.stats.get("Tiles Loading").incrementCount()}_onEndTileLoading(){this._pendingCount--,this.stats.get("Tiles Loading").decrementCount()}_addTileToCache(tile){this._cache.add(this,tile,(tileset=>tileset._updateCacheStats(tile)))}_updateCacheStats(tile){this.stats.get("Tiles Loaded").incrementCount(),this.stats.get("Tiles In Memory").incrementCount(),this.gpuMemoryUsageInBytes+=tile.gpuMemoryUsageInBytes||0,this.stats.get("Tile Memory Use").count=this.gpuMemoryUsageInBytes}_unloadTile(tile){this.gpuMemoryUsageInBytes-=tile.gpuMemoryUsageInBytes||0,this.stats.get("Tiles In Memory").decrementCount(),this.stats.get("Tiles Unloaded").incrementCount(),this.stats.get("Tile Memory Use").count=this.gpuMemoryUsageInBytes,this.options.onTileUnload(tile),tile.unloadContent()}_destroy(){const stack=[];for(this.root&&stack.push(this.root);stack.length>0;){const tile=stack.pop();for(const child of tile.children)stack.push(child);this._destroyTile(tile)}this.root=null}_destroySubtree(tile){const root=tile,stack=[];for(stack.push(root);stack.length>0;){tile=stack.pop();for(const child of tile.children)stack.push(child);tile!==root&&this._destroyTile(tile)}root.children=[]}_destroyTile(tile){this._cache.unloadTile(this,tile),this._unloadTile(tile),tile.destroy()}_initializeTiles3DTileset(tilesetJson){if(tilesetJson.queryString){const searchParams=new URLSearchParams(tilesetJson.queryString),queryParams=Object.fromEntries(searchParams.entries());this._queryParams={...this._queryParams,...queryParams}}if(this.asset=tilesetJson.asset,!this.asset)throw new Error("Tileset must have an asset property.");if("0.0"!==this.asset.version&&"1.0"!==this.asset.version)throw new Error("The tileset must be 3D Tiles version 0.0 or 1.0.");"tilesetVersion"in this.asset&&(this._queryParams.v=this.asset.tilesetVersion),this.credits={attributions:this.options.attributions||[]},this.description=this.options.description||"",this.properties=tilesetJson.properties,this.geometricError=tilesetJson.geometricError,this._extensionsUsed=tilesetJson.extensionsUsed||[],this.extras=tilesetJson.extras}_initializeI3STileset(){this.loadOptions.i3s&&"token"in this.loadOptions.i3s&&(this._queryParams.token=this.loadOptions.i3s.token)}}const TILE3D_TYPE={COMPOSITE:"cmpt",POINT_CLOUD:"pnts",BATCHED_3D_MODEL:"b3dm",INSTANCED_3D_MODEL:"i3dm",GEOMETRY:"geom",VECTOR:"vect",GLTF:"glTF"};Object.keys(TILE3D_TYPE);function getStringFromArrayBuffer(arrayBuffer,byteOffset,byteLength){(0,env_utils_assert.h)(arrayBuffer instanceof ArrayBuffer);const textDecoder=new TextDecoder("utf8"),typedArray=new Uint8Array(arrayBuffer,byteOffset,byteLength);return textDecoder.decode(typedArray)}var dist_esm=__webpack_require__("./node_modules/@loaders.gl/draco/dist/esm/index.js");const GL_TYPE={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DOUBLE:5130},constants_GL={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,...GL_TYPE},GL_TYPE_TO_ARRAY_TYPE={[GL_TYPE.DOUBLE]:Float64Array,[GL_TYPE.FLOAT]:Float32Array,[GL_TYPE.UNSIGNED_SHORT]:Uint16Array,[GL_TYPE.UNSIGNED_INT]:Uint32Array,[GL_TYPE.UNSIGNED_BYTE]:Uint8Array,[GL_TYPE.BYTE]:Int8Array,[GL_TYPE.SHORT]:Int16Array,[GL_TYPE.INT]:Int32Array},NAME_TO_GL_TYPE={DOUBLE:GL_TYPE.DOUBLE,FLOAT:GL_TYPE.FLOAT,UNSIGNED_SHORT:GL_TYPE.UNSIGNED_SHORT,UNSIGNED_INT:GL_TYPE.UNSIGNED_INT,UNSIGNED_BYTE:GL_TYPE.UNSIGNED_BYTE,BYTE:GL_TYPE.BYTE,SHORT:GL_TYPE.SHORT,INT:GL_TYPE.INT};class GLType{static fromTypedArray(arrayOrType){arrayOrType=ArrayBuffer.isView(arrayOrType)?arrayOrType.constructor:arrayOrType;for(const glType in GL_TYPE_TO_ARRAY_TYPE){if(GL_TYPE_TO_ARRAY_TYPE[glType]===arrayOrType)return glType}throw new Error("Failed to convert GL type")}static fromName(name){const glType=NAME_TO_GL_TYPE[name];if(!glType)throw new Error("Failed to convert GL type");return glType}static getArrayType(glType){switch(glType){case GL_TYPE.UNSIGNED_SHORT_5_6_5:case GL_TYPE.UNSIGNED_SHORT_4_4_4_4:case GL_TYPE.UNSIGNED_SHORT_5_5_5_1:return Uint16Array;default:const ArrayType=GL_TYPE_TO_ARRAY_TYPE[glType];if(!ArrayType)throw new Error("Failed to convert GL type");return ArrayType}}static getByteSize(glType){return GLType.getArrayType(glType).BYTES_PER_ELEMENT}static validate(glType){return Boolean(GLType.getArrayType(glType))}static createTypedArray(glType,buffer){let byteOffset=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,length=arguments.length>3?arguments[3]:void 0;void 0===length&&(length=(buffer.byteLength-byteOffset)/GLType.getByteSize(glType));return new(GLType.getArrayType(glType))(buffer,byteOffset,length)}}class Tile3DFeatureTable{constructor(featureTableJson,featureTableBinary){(0,defineProperty.Z)(this,"json",void 0),(0,defineProperty.Z)(this,"buffer",void 0),(0,defineProperty.Z)(this,"featuresLength",0),(0,defineProperty.Z)(this,"_cachedTypedArrays",{}),this.json=featureTableJson,this.buffer=featureTableBinary}getExtension(extensionName){return this.json.extensions&&this.json.extensions[extensionName]}hasProperty(propertyName){return Boolean(this.json[propertyName])}getGlobalProperty(propertyName){let componentType=arguments.length>1&&void 0!==arguments[1]?arguments[1]:constants_GL.UNSIGNED_INT,componentLength=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const jsonValue=this.json[propertyName];return jsonValue&&Number.isFinite(jsonValue.byteOffset)?this._getTypedArrayFromBinary(propertyName,componentType,componentLength,1,jsonValue.byteOffset):jsonValue}getPropertyArray(propertyName,componentType,componentLength){const jsonValue=this.json[propertyName];return jsonValue&&Number.isFinite(jsonValue.byteOffset)?("componentType"in jsonValue&&(componentType=GLType.fromName(jsonValue.componentType)),this._getTypedArrayFromBinary(propertyName,componentType,componentLength,this.featuresLength,jsonValue.byteOffset)):this._getTypedArrayFromArray(propertyName,componentType,jsonValue)}getProperty(propertyName,componentType,componentLength,featureId,result){const jsonValue=this.json[propertyName];if(!jsonValue)return jsonValue;const typedArray=this.getPropertyArray(propertyName,componentType,componentLength);if(1===componentLength)return typedArray[featureId];for(let i=0;ivalues[i],VEC2:(values,i)=>[values[2*i+0],values[2*i+1]],VEC3:(values,i)=>[values[3*i+0],values[3*i+1],values[3*i+2]],VEC4:(values,i)=>[values[4*i+0],values[4*i+1],values[4*i+2],values[4*i+3]],MAT2:(values,i)=>[values[4*i+0],values[4*i+1],values[4*i+2],values[4*i+3]],MAT3:(values,i)=>[values[9*i+0],values[9*i+1],values[9*i+2],values[9*i+3],values[9*i+4],values[9*i+5],values[9*i+6],values[9*i+7],values[9*i+8]],MAT4:(values,i)=>[values[16*i+0],values[16*i+1],values[16*i+2],values[16*i+3],values[16*i+4],values[16*i+5],values[16*i+6],values[16*i+7],values[16*i+8],values[16*i+9],values[16*i+10],values[16*i+11],values[16*i+12],values[16*i+13],values[16*i+14],values[16*i+15]]},PACKER={SCALAR:(x,values,i)=>{values[i]=x},VEC2:(x,values,i)=>{values[2*i+0]=x[0],values[2*i+1]=x[1]},VEC3:(x,values,i)=>{values[3*i+0]=x[0],values[3*i+1]=x[1],values[3*i+2]=x[2]},VEC4:(x,values,i)=>{values[4*i+0]=x[0],values[4*i+1]=x[1],values[4*i+2]=x[2],values[4*i+3]=x[3]},MAT2:(x,values,i)=>{values[4*i+0]=x[0],values[4*i+1]=x[1],values[4*i+2]=x[2],values[4*i+3]=x[3]},MAT3:(x,values,i)=>{values[9*i+0]=x[0],values[9*i+1]=x[1],values[9*i+2]=x[2],values[9*i+3]=x[3],values[9*i+4]=x[4],values[9*i+5]=x[5],values[9*i+6]=x[6],values[9*i+7]=x[7],values[9*i+8]=x[8],values[9*i+9]=x[9]},MAT4:(x,values,i)=>{values[16*i+0]=x[0],values[16*i+1]=x[1],values[16*i+2]=x[2],values[16*i+3]=x[3],values[16*i+4]=x[4],values[16*i+5]=x[5],values[16*i+6]=x[6],values[16*i+7]=x[7],values[16*i+8]=x[8],values[16*i+9]=x[9],values[16*i+10]=x[10],values[16*i+11]=x[11],values[16*i+12]=x[12],values[16*i+13]=x[13],values[16*i+14]=x[14],values[16*i+15]=x[15]}};const tile_3d_batch_table_hierarchy_defined=x=>void 0!==x;function initializeHierarchy(batchTable,jsonHeader,binaryBody){if(!jsonHeader)return null;let hierarchy=batchTable.getExtension("3DTILES_batch_table_hierarchy");const legacyHierarchy=jsonHeader.HIERARCHY;return legacyHierarchy&&(console.warn("3D Tile Parser: HIERARCHY is deprecated. Use 3DTILES_batch_table_hierarchy."),jsonHeader.extensions=jsonHeader.extensions||{},jsonHeader.extensions["3DTILES_batch_table_hierarchy"]=legacyHierarchy,hierarchy=legacyHierarchy),hierarchy?function initializeHierarchyValues(hierarchyJson,binaryBody){let i,classId,binaryAccessor;const instancesLength=hierarchyJson.instancesLength,classes=hierarchyJson.classes;let parentIndexes,classIds=hierarchyJson.classIds,parentCounts=hierarchyJson.parentCounts,parentIds=hierarchyJson.parentIds,parentIdsLength=instancesLength;tile_3d_batch_table_hierarchy_defined(classIds.byteOffset)&&(classIds.componentType=defaultValue(classIds.componentType,GL.UNSIGNED_SHORT),classIds.type=AttributeType.SCALAR,binaryAccessor=getBinaryAccessor(classIds),classIds=binaryAccessor.createArrayBufferView(binaryBody.buffer,binaryBody.byteOffset+classIds.byteOffset,instancesLength));if(tile_3d_batch_table_hierarchy_defined(parentCounts))for(tile_3d_batch_table_hierarchy_defined(parentCounts.byteOffset)&&(parentCounts.componentType=defaultValue(parentCounts.componentType,GL.UNSIGNED_SHORT),parentCounts.type=AttributeType.SCALAR,binaryAccessor=getBinaryAccessor(parentCounts),parentCounts=binaryAccessor.createArrayBufferView(binaryBody.buffer,binaryBody.byteOffset+parentCounts.byteOffset,instancesLength)),parentIndexes=new Uint16Array(instancesLength),parentIdsLength=0,i=0;i0?function traverseHierarchyMultipleParents(hierarchy,instanceIndex,endConditionCallback){const classIds=hierarchy.classIds,parentCounts=hierarchy.parentCounts,parentIds=hierarchy.parentIds,parentIndexes=hierarchy.parentIndexes,instancesLength=classIds.length,visited=scratchVisited;visited.length=Math.max(visited.length,instancesLength);const visitedMarker=++marker,stack=scratchStack;stack.length=0,stack.push(instanceIndex);for(;stack.length>0;){if(visited[instanceIndex=stack.pop()]===visitedMarker)continue;visited[instanceIndex]=visitedMarker;const result=endConditionCallback(hierarchy,instanceIndex);if(tile_3d_batch_table_hierarchy_defined(result))return result;const parentCount=parentCounts[instanceIndex],parentIndex=parentIndexes[instanceIndex];for(let i=0;ix,IGNORED_PROPERTY_FIELDS={HIERARCHY:!0,extensions:!0,extras:!0};class Tile3DBatchTableParser{constructor(json,binary,featureCount){var _this$json;let options=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,defineProperty.Z)(this,"json",void 0),(0,defineProperty.Z)(this,"binary",void 0),(0,defineProperty.Z)(this,"featureCount",void 0),(0,defineProperty.Z)(this,"_extensions",void 0),(0,defineProperty.Z)(this,"_properties",void 0),(0,defineProperty.Z)(this,"_binaryProperties",void 0),(0,defineProperty.Z)(this,"_hierarchy",void 0),(0,env_utils_assert.h)(featureCount>=0),this.json=json||{},this.binary=binary,this.featureCount=featureCount,this._extensions=(null===(_this$json=this.json)||void 0===_this$json?void 0:_this$json.extensions)||{},this._properties={};for(const propertyName in this.json)IGNORED_PROPERTY_FIELDS[propertyName]||(this._properties[propertyName]=this.json[propertyName]);this._binaryProperties=this._initializeBinaryProperties(),options["3DTILES_batch_table_hierarchy"]&&(this._hierarchy=initializeHierarchy(this,this.json,this.binary))}getExtension(extensionName){return this.json&&this.json.extensions&&this.json.extensions[extensionName]}memorySizeInBytes(){return 0}isClass(batchId,className){if(this._checkBatchId(batchId),(0,env_utils_assert.h)("string"==typeof className,className),this._hierarchy){return tile_3d_batch_table_defined(traverseHierarchy(this._hierarchy,batchId,((hierarchy,instanceIndex)=>{const classId=hierarchy.classIds[instanceIndex];return hierarchy.classes[classId].name===className})))}return!1}isExactClass(batchId,className){return(0,env_utils_assert.h)("string"==typeof className,className),this.getExactClassName(batchId)===className}getExactClassName(batchId){if(this._checkBatchId(batchId),this._hierarchy){const classId=this._hierarchy.classIds[batchId];return this._hierarchy.classes[classId].name}}hasProperty(batchId,name){return this._checkBatchId(batchId),(0,env_utils_assert.h)("string"==typeof name,name),tile_3d_batch_table_defined(this._properties[name])||this._hasPropertyInHierarchy(batchId,name)}getPropertyNames(batchId,results){this._checkBatchId(batchId),(results=tile_3d_batch_table_defined(results)?results:[]).length=0;const propertyNames=Object.keys(this._properties);return results.push(...propertyNames),this._hierarchy&&this._getPropertyNamesInHierarchy(batchId,results),results}getProperty(batchId,name){if(this._checkBatchId(batchId),(0,env_utils_assert.h)("string"==typeof name,name),this._binaryProperties){const binaryProperty=this._binaryProperties[name];if(tile_3d_batch_table_defined(binaryProperty))return this._getBinaryProperty(binaryProperty,batchId)}const propertyValues=this._properties[name];if(tile_3d_batch_table_defined(propertyValues))return clone(propertyValues[batchId]);if(this._hierarchy){const hierarchyProperty=this._getHierarchyProperty(batchId,name);if(tile_3d_batch_table_defined(hierarchyProperty))return hierarchyProperty}}setProperty(batchId,name,value){const featureCount=this.featureCount;if(this._checkBatchId(batchId),(0,env_utils_assert.h)("string"==typeof name,name),this._binaryProperties){const binaryProperty=this._binaryProperties[name];if(binaryProperty)return void this._setBinaryProperty(binaryProperty,batchId,value)}if(this._hierarchy&&this._setHierarchyProperty(this,batchId,name,value))return;let propertyValues=this._properties[name];tile_3d_batch_table_defined(propertyValues)||(this._properties[name]=new Array(featureCount),propertyValues=this._properties[name]),propertyValues[batchId]=clone(value)}_checkBatchId(batchId){if(!(batchId>=0&&batchId{const classId=hierarchy.classIds[instanceIndex];return tile_3d_batch_table_defined(hierarchy.classes[classId].instances[name])}));return tile_3d_batch_table_defined(result)}_getPropertyNamesInHierarchy(batchId,results){traverseHierarchy(this._hierarchy,batchId,((hierarchy,instanceIndex)=>{const classId=hierarchy.classIds[instanceIndex],instances=hierarchy.classes[classId].instances;for(const name in instances)instances.hasOwnProperty(name)&&-1===results.indexOf(name)&&results.push(name)}))}_getHierarchyProperty(batchId,name){return traverseHierarchy(this._hierarchy,batchId,((hierarchy,instanceIndex)=>{const classId=hierarchy.classIds[instanceIndex],instanceClass=hierarchy.classes[classId],indexInClass=hierarchy.classIndexes[instanceIndex],propertyValues=instanceClass.instances[name];return tile_3d_batch_table_defined(propertyValues)?tile_3d_batch_table_defined(propertyValues.typedArray)?this._getBinaryProperty(propertyValues,indexInClass):clone(propertyValues[indexInClass]):null}))}_setHierarchyProperty(batchTable,batchId,name,value){const result=traverseHierarchy(this._hierarchy,batchId,((hierarchy,instanceIndex)=>{const classId=hierarchy.classIds[instanceIndex],instanceClass=hierarchy.classes[classId],indexInClass=hierarchy.classIndexes[instanceIndex],propertyValues=instanceClass.instances[name];return!!tile_3d_batch_table_defined(propertyValues)&&((0,env_utils_assert.h)(instanceIndex===batchId,'Inherited property "'.concat(name,'" is read-only.')),tile_3d_batch_table_defined(propertyValues.typedArray)?this._setBinaryProperty(propertyValues,indexInClass,value):propertyValues[indexInClass]=clone(value),!0)}));return tile_3d_batch_table_defined(result)}}const SIZEOF_UINT32=4;function parse3DTileHeaderSync(tile,arrayBuffer){let byteOffset=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const view=new DataView(arrayBuffer);if(tile.magic=view.getUint32(byteOffset,!0),byteOffset+=SIZEOF_UINT32,tile.version=view.getUint32(byteOffset,!0),byteOffset+=SIZEOF_UINT32,tile.byteLength=view.getUint32(byteOffset,!0),byteOffset+=SIZEOF_UINT32,1!==tile.version)throw new Error("3D Tile Version ".concat(tile.version," not supported"));return byteOffset}const parse_3d_tile_tables_SIZEOF_UINT32=4,DEPRECATION_WARNING="b3dm tile in legacy format.";function parse3DTileTablesHeaderSync(tile,arrayBuffer,byteOffset){const view=new DataView(arrayBuffer);let batchLength;tile.header=tile.header||{};let featureTableJsonByteLength=view.getUint32(byteOffset,!0);byteOffset+=parse_3d_tile_tables_SIZEOF_UINT32;let featureTableBinaryByteLength=view.getUint32(byteOffset,!0);byteOffset+=parse_3d_tile_tables_SIZEOF_UINT32;let batchTableJsonByteLength=view.getUint32(byteOffset,!0);byteOffset+=parse_3d_tile_tables_SIZEOF_UINT32;let batchTableBinaryByteLength=view.getUint32(byteOffset,!0);return byteOffset+=parse_3d_tile_tables_SIZEOF_UINT32,batchTableJsonByteLength>=570425344?(byteOffset-=2*parse_3d_tile_tables_SIZEOF_UINT32,batchLength=featureTableJsonByteLength,batchTableJsonByteLength=featureTableBinaryByteLength,batchTableBinaryByteLength=0,featureTableJsonByteLength=0,featureTableBinaryByteLength=0,console.warn(DEPRECATION_WARNING)):batchTableBinaryByteLength>=570425344&&(byteOffset-=parse_3d_tile_tables_SIZEOF_UINT32,batchLength=batchTableJsonByteLength,batchTableJsonByteLength=featureTableJsonByteLength,batchTableBinaryByteLength=featureTableBinaryByteLength,featureTableJsonByteLength=0,featureTableBinaryByteLength=0,console.warn(DEPRECATION_WARNING)),tile.header.featureTableJsonByteLength=featureTableJsonByteLength,tile.header.featureTableBinaryByteLength=featureTableBinaryByteLength,tile.header.batchTableJsonByteLength=batchTableJsonByteLength,tile.header.batchTableBinaryByteLength=batchTableBinaryByteLength,tile.header.batchLength=batchLength,byteOffset}function parse3DTileTablesSync(tile,arrayBuffer,byteOffset,options){return byteOffset=function parse3DTileFeatureTable(tile,arrayBuffer,byteOffset,options){const{featureTableJsonByteLength:featureTableJsonByteLength,featureTableBinaryByteLength:featureTableBinaryByteLength,batchLength:batchLength}=tile.header;if(tile.featureTableJson={BATCH_LENGTH:batchLength||0},featureTableJsonByteLength>0){const featureTableString=getStringFromArrayBuffer(arrayBuffer,byteOffset,featureTableJsonByteLength);tile.featureTableJson=JSON.parse(featureTableString)}return byteOffset+=featureTableJsonByteLength,tile.featureTableBinary=new Uint8Array(arrayBuffer,byteOffset,featureTableBinaryByteLength),byteOffset+=featureTableBinaryByteLength,byteOffset}(tile,arrayBuffer,byteOffset),byteOffset=function parse3DTileBatchTable(tile,arrayBuffer,byteOffset,options){const{batchTableJsonByteLength:batchTableJsonByteLength,batchTableBinaryByteLength:batchTableBinaryByteLength}=tile.header;if(batchTableJsonByteLength>0){const batchTableString=getStringFromArrayBuffer(arrayBuffer,byteOffset,batchTableJsonByteLength);tile.batchTableJson=JSON.parse(batchTableString),byteOffset+=batchTableJsonByteLength,batchTableBinaryByteLength>0&&(tile.batchTableBinary=new Uint8Array(arrayBuffer,byteOffset,batchTableBinaryByteLength),tile.batchTableBinary=new Uint8Array(tile.batchTableBinary),byteOffset+=batchTableBinaryByteLength)}return byteOffset}(tile,arrayBuffer,byteOffset),byteOffset}function decodeRGB565(rgb565){let target=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];const r5=rgb565>>11&31,g6=rgb565>>5&63,b5=31&rgb565;return target[0]=r5<<3,target[1]=g6<<2,target[2]=b5<<3,target}function normalize3DTileColorAttribute(tile,colors,batchTable){if(!(colors||tile&&tile.batchIds&&batchTable))return null;const{batchIds:batchIds,isRGB565:isRGB565,pointCount:pointCount}=tile;if(batchIds&&batchTable){const colorArray=new Uint8ClampedArray(3*pointCount);for(let i=0;i255*d));colorArray[3*i]=color[0],colorArray[3*i+1]=color[1],colorArray[3*i+2]=color[2]}return{type:constants_GL.UNSIGNED_BYTE,value:colorArray,size:3,normalized:!0}}if(isRGB565){const colorArray=new Uint8ClampedArray(3*pointCount);for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:255;return(0,common.uZ)(value,0,rangeMaximum)/rangeMaximum*2-1}function signNotZero(value){return value<0?-1:1}function octDecodeInRange(x,y,rangeMax,result){if(function assert_assert(condition,message){if(!condition)throw new Error("math.gl assertion failed. ".concat(message))}(result),x<0||x>rangeMax||y<0||y>rangeMax)throw new Error("x and y must be unsigned normalized integers between 0 and ".concat(rangeMax));if(result.x=fromSNorm(x,rangeMax),result.y=fromSNorm(y,rangeMax),result.z=1-(Math.abs(result.x)+Math.abs(result.y)),result.z<0){const oldVX=result.x;result.x=(1-Math.abs(result.y))*signNotZero(oldVX),result.y=(1-Math.abs(oldVX))*signNotZero(result.y)}return result.normalize()}function octDecode(x,y,result){return octDecodeInRange(x,y,255,result)}const normalize_3d_tile_normals_scratchNormal=new vector3.Z;function normalize3DTilePositionAttribute(tile,positions,options){return tile.isQuantized?options["3d-tiles"]&&options["3d-tiles"].decodeQuantizedPositions?(tile.isQuantized=!1,function decodeQuantizedPositions(tile,positions){const scratchPosition=new vector3.Z,decodedArray=new Float32Array(3*tile.pointCount);for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:0,options=arguments.length>2?arguments[2]:void 0,context=arguments.length>3?arguments[3]:void 0,tile=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};switch(tile.byteOffset=byteOffset,tile.type=function getMagicString(arrayBuffer){let byteOffset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const dataView=new DataView(arrayBuffer);return"".concat(String.fromCharCode(dataView.getUint8(byteOffset+0))).concat(String.fromCharCode(dataView.getUint8(byteOffset+1))).concat(String.fromCharCode(dataView.getUint8(byteOffset+2))).concat(String.fromCharCode(dataView.getUint8(byteOffset+3)))}(arrayBuffer,byteOffset),tile.type){case TILE3D_TYPE.COMPOSITE:return await async function parseComposite3DTile(tile,arrayBuffer,byteOffset,options,context,parse3DTile){byteOffset=parse3DTileHeaderSync(tile,arrayBuffer,byteOffset);const view=new DataView(arrayBuffer);for(tile.tilesLength=view.getUint32(byteOffset,!0),byteOffset+=4,tile.tiles=[];tile.tiles.length12;){const subtile={};tile.tiles.push(subtile),byteOffset=await parse3DTile(arrayBuffer,byteOffset,options,context,subtile)}return byteOffset}(tile,arrayBuffer,byteOffset,options,context,parse3DTile);case TILE3D_TYPE.BATCHED_3D_MODEL:return await parseBatchedModel3DTile(tile,arrayBuffer,byteOffset,options,context);case TILE3D_TYPE.GLTF:return await async function parseGltf3DTile(tile,arrayBuffer,options,context){tile.rotateYtoZ=!0,tile.gltfUpAxis=options["3d-tiles"]&&options["3d-tiles"].assetGltfUpAxis?options["3d-tiles"].assetGltfUpAxis:"Y";const{parse:parse}=context;tile.gltf=await parse(arrayBuffer,gltf_loader.E,options,context),tile.gpuMemoryUsageInBytes=(0,gltf_utils.Xr)(tile.gltf)}(tile,arrayBuffer,options,context);case TILE3D_TYPE.INSTANCED_3D_MODEL:return await parseInstancedModel3DTile(tile,arrayBuffer,byteOffset,options,context);case TILE3D_TYPE.POINT_CLOUD:return await parsePointCloud3DTile(tile,arrayBuffer,byteOffset,options,context);default:throw new Error("3DTileLoader: unknown type ".concat(tile.type))}}async function getExplicitBitstream(subtree,name,internalBinaryBuffer,context){const bufferViewIndex=subtree[name].bufferView,bufferView=subtree.bufferViews[bufferViewIndex],buffer=subtree.buffers[bufferView.buffer];if(null==context||!context.url||!context.fetch)throw new Error("Url is not provided");if(!context.fetch)throw new Error("fetch is not provided");if(buffer.uri){const bufferUri=function resolveBufferUri(bitstreamRelativeUri,basePath){if(basePath.startsWith("http")){const resolvedUri=new URL(bitstreamRelativeUri,basePath);return decodeURI(resolvedUri.toString())}const basePathWithProtocol="http://".concat(basePath),resolvedUri=new URL(bitstreamRelativeUri,basePathWithProtocol);return"/".concat(resolvedUri.host).concat(resolvedUri.pathname)}(buffer.uri,null==context?void 0:context.url),response=await context.fetch(bufferUri),data=await response.arrayBuffer();return new Uint8Array(data,bufferView.byteOffset,bufferView.byteLength)}return new Uint8Array(internalBinaryBuffer,bufferView.byteOffset,bufferView.byteLength)}function parseUint64Value(buffer){const dataView=new DataView(buffer);return dataView.getUint32(0,!0)+2**32*dataView.getUint32(4,!0)}const Tile3DSubtreeLoader={id:"3d-tiles-subtree",name:"3D Tiles Subtree",module:"3d-tiles",version:"3.4.14",extensions:["subtree"],mimeTypes:["application/octet-stream"],tests:["subtree"],parse:async function parse3DTilesSubtree(data,options,context){if(1952609651!==new Uint32Array(data.slice(0,4))[0])throw new Error("Wrong subtree file magic number");if(1!==new Uint32Array(data.slice(4,8))[0])throw new Error("Wrong subtree file verson, must be 1");const jsonByteLength=parseUint64Value(data.slice(8,16)),stringAttribute=new Uint8Array(data,24,jsonByteLength),string=new TextDecoder("utf8").decode(stringAttribute),subtree=JSON.parse(string),binaryByteLength=parseUint64Value(data.slice(16,24));let internalBinaryBuffer=new ArrayBuffer(0);return binaryByteLength&&(internalBinaryBuffer=data.slice(24+jsonByteLength)),"bufferView"in subtree.tileAvailability&&(subtree.tileAvailability.explicitBitstream=await getExplicitBitstream(subtree,"tileAvailability",internalBinaryBuffer,context)),"bufferView"in subtree.contentAvailability&&(subtree.contentAvailability.explicitBitstream=await getExplicitBitstream(subtree,"contentAvailability",internalBinaryBuffer,context)),"bufferView"in subtree.childSubtreeAvailability&&(subtree.childSubtreeAvailability.explicitBitstream=await getExplicitBitstream(subtree,"childSubtreeAvailability",internalBinaryBuffer,context)),subtree},options:{}};var wasm=null;try{wasm=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function long_Long(low,high,unsigned){this.low=0|low,this.high=0|high,this.unsigned=!!unsigned}function isLong(obj){return!0===(obj&&obj.__isLong__)}function ctz32(value){var c=Math.clz32(value&-value);return value?31-c:c}long_Long.prototype.__isLong__,Object.defineProperty(long_Long.prototype,"__isLong__",{value:!0}),long_Long.isLong=isLong;var INT_CACHE={},UINT_CACHE={};function fromInt(value,unsigned){var obj,cachedObj,cache;return unsigned?(cache=0<=(value>>>=0)&&value<256)&&(cachedObj=UINT_CACHE[value])?cachedObj:(obj=fromBits(value,0,!0),cache&&(UINT_CACHE[value]=obj),obj):(cache=-128<=(value|=0)&&value<128)&&(cachedObj=INT_CACHE[value])?cachedObj:(obj=fromBits(value,value<0?-1:0,!1),cache&&(INT_CACHE[value]=obj),obj)}function fromNumber(value,unsigned){if(isNaN(value))return unsigned?UZERO:ZERO;if(unsigned){if(value<0)return UZERO;if(value>=TWO_PWR_64_DBL)return MAX_UNSIGNED_VALUE}else{if(value<=-TWO_PWR_63_DBL)return MIN_VALUE;if(value+1>=TWO_PWR_63_DBL)return MAX_VALUE}return value<0?fromNumber(-value,unsigned).neg():fromBits(value%TWO_PWR_32_DBL|0,value/TWO_PWR_32_DBL|0,unsigned)}function fromBits(lowBits,highBits,unsigned){return new long_Long(lowBits,highBits,unsigned)}long_Long.fromInt=fromInt,long_Long.fromNumber=fromNumber,long_Long.fromBits=fromBits;var pow_dbl=Math.pow;function fromString(str,unsigned,radix){if(0===str.length)throw Error("empty string");if("number"==typeof unsigned?(radix=unsigned,unsigned=!1):unsigned=!!unsigned,"NaN"===str||"Infinity"===str||"+Infinity"===str||"-Infinity"===str)return unsigned?UZERO:ZERO;if((radix=radix||10)<2||360)throw Error("interior hyphen");if(0===p)return fromString(str.substring(1),unsigned,radix).neg();for(var radixToPower=fromNumber(pow_dbl(radix,8)),result=ZERO,i=0;i>>0:this.low},LongPrototype.toNumber=function toNumber(){return this.unsigned?(this.high>>>0)*TWO_PWR_32_DBL+(this.low>>>0):this.high*TWO_PWR_32_DBL+(this.low>>>0)},LongPrototype.toString=function toString(radix){if((radix=radix||10)<2||36>>0).toString(radix);if((rem=remDiv).isZero())return digits+result;for(;digits.length<6;)digits="0"+digits;result=""+digits+result}},LongPrototype.getHighBits=function getHighBits(){return this.high},LongPrototype.getHighBitsUnsigned=function getHighBitsUnsigned(){return this.high>>>0},LongPrototype.getLowBits=function getLowBits(){return this.low},LongPrototype.getLowBitsUnsigned=function getLowBitsUnsigned(){return this.low>>>0},LongPrototype.getNumBitsAbs=function getNumBitsAbs(){if(this.isNegative())return this.eq(MIN_VALUE)?64:this.neg().getNumBitsAbs();for(var val=0!=this.high?this.high:this.low,bit=31;bit>0&&0==(val&1<=0},LongPrototype.isOdd=function isOdd(){return 1==(1&this.low)},LongPrototype.isEven=function isEven(){return 0==(1&this.low)},LongPrototype.equals=function equals(other){return isLong(other)||(other=fromValue(other)),(this.unsigned===other.unsigned||this.high>>>31!=1||other.high>>>31!=1)&&(this.high===other.high&&this.low===other.low)},LongPrototype.eq=LongPrototype.equals,LongPrototype.notEquals=function notEquals(other){return!this.eq(other)},LongPrototype.neq=LongPrototype.notEquals,LongPrototype.ne=LongPrototype.notEquals,LongPrototype.lessThan=function lessThan(other){return this.comp(other)<0},LongPrototype.lt=LongPrototype.lessThan,LongPrototype.lessThanOrEqual=function lessThanOrEqual(other){return this.comp(other)<=0},LongPrototype.lte=LongPrototype.lessThanOrEqual,LongPrototype.le=LongPrototype.lessThanOrEqual,LongPrototype.greaterThan=function greaterThan(other){return this.comp(other)>0},LongPrototype.gt=LongPrototype.greaterThan,LongPrototype.greaterThanOrEqual=function greaterThanOrEqual(other){return this.comp(other)>=0},LongPrototype.gte=LongPrototype.greaterThanOrEqual,LongPrototype.ge=LongPrototype.greaterThanOrEqual,LongPrototype.compare=function compare(other){if(isLong(other)||(other=fromValue(other)),this.eq(other))return 0;var thisNeg=this.isNegative(),otherNeg=other.isNegative();return thisNeg&&!otherNeg?-1:!thisNeg&&otherNeg?1:this.unsigned?other.high>>>0>this.high>>>0||other.high===this.high&&other.low>>>0>this.low>>>0?-1:1:this.sub(other).isNegative()?-1:1},LongPrototype.comp=LongPrototype.compare,LongPrototype.negate=function negate(){return!this.unsigned&&this.eq(MIN_VALUE)?MIN_VALUE:this.not().add(ONE)},LongPrototype.neg=LongPrototype.negate,LongPrototype.add=function add(addend){isLong(addend)||(addend=fromValue(addend));var a48=this.high>>>16,a32=65535&this.high,a16=this.low>>>16,a00=65535&this.low,b48=addend.high>>>16,b32=65535&addend.high,b16=addend.low>>>16,c48=0,c32=0,c16=0,c00=0;return c16+=(c00+=a00+(65535&addend.low))>>>16,c32+=(c16+=a16+b16)>>>16,c48+=(c32+=a32+b32)>>>16,c48+=a48+b48,fromBits((c16&=65535)<<16|(c00&=65535),(c48&=65535)<<16|(c32&=65535),this.unsigned)},LongPrototype.subtract=function subtract(subtrahend){return isLong(subtrahend)||(subtrahend=fromValue(subtrahend)),this.add(subtrahend.neg())},LongPrototype.sub=LongPrototype.subtract,LongPrototype.multiply=function multiply(multiplier){if(this.isZero())return this;if(isLong(multiplier)||(multiplier=fromValue(multiplier)),wasm)return fromBits(wasm.mul(this.low,this.high,multiplier.low,multiplier.high),wasm.get_high(),this.unsigned);if(multiplier.isZero())return this.unsigned?UZERO:ZERO;if(this.eq(MIN_VALUE))return multiplier.isOdd()?MIN_VALUE:ZERO;if(multiplier.eq(MIN_VALUE))return this.isOdd()?MIN_VALUE:ZERO;if(this.isNegative())return multiplier.isNegative()?this.neg().mul(multiplier.neg()):this.neg().mul(multiplier).neg();if(multiplier.isNegative())return this.mul(multiplier.neg()).neg();if(this.lt(TWO_PWR_24)&&multiplier.lt(TWO_PWR_24))return fromNumber(this.toNumber()*multiplier.toNumber(),this.unsigned);var a48=this.high>>>16,a32=65535&this.high,a16=this.low>>>16,a00=65535&this.low,b48=multiplier.high>>>16,b32=65535&multiplier.high,b16=multiplier.low>>>16,b00=65535&multiplier.low,c48=0,c32=0,c16=0,c00=0;return c16+=(c00+=a00*b00)>>>16,c32+=(c16+=a16*b00)>>>16,c16&=65535,c32+=(c16+=a00*b16)>>>16,c48+=(c32+=a32*b00)>>>16,c32&=65535,c48+=(c32+=a16*b16)>>>16,c32&=65535,c48+=(c32+=a00*b32)>>>16,c48+=a48*b00+a32*b16+a16*b32+a00*b48,fromBits((c16&=65535)<<16|(c00&=65535),(c48&=65535)<<16|(c32&=65535),this.unsigned)},LongPrototype.mul=LongPrototype.multiply,LongPrototype.divide=function divide(divisor){if(isLong(divisor)||(divisor=fromValue(divisor)),divisor.isZero())throw Error("division by zero");var approx,rem,res;if(wasm)return this.unsigned||-2147483648!==this.high||-1!==divisor.low||-1!==divisor.high?fromBits((this.unsigned?wasm.div_u:wasm.div_s)(this.low,this.high,divisor.low,divisor.high),wasm.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?UZERO:ZERO;if(this.unsigned){if(divisor.unsigned||(divisor=divisor.toUnsigned()),divisor.gt(this))return UZERO;if(divisor.gt(this.shru(1)))return UONE;res=UZERO}else{if(this.eq(MIN_VALUE))return divisor.eq(ONE)||divisor.eq(NEG_ONE)?MIN_VALUE:divisor.eq(MIN_VALUE)?ONE:(approx=this.shr(1).div(divisor).shl(1)).eq(ZERO)?divisor.isNegative()?ONE:NEG_ONE:(rem=this.sub(divisor.mul(approx)),res=approx.add(rem.div(divisor)));if(divisor.eq(MIN_VALUE))return this.unsigned?UZERO:ZERO;if(this.isNegative())return divisor.isNegative()?this.neg().div(divisor.neg()):this.neg().div(divisor).neg();if(divisor.isNegative())return this.div(divisor.neg()).neg();res=ZERO}for(rem=this;rem.gte(divisor);){approx=Math.max(1,Math.floor(rem.toNumber()/divisor.toNumber()));for(var log2=Math.ceil(Math.log(approx)/Math.LN2),delta=log2<=48?1:pow_dbl(2,log2-48),approxRes=fromNumber(approx),approxRem=approxRes.mul(divisor);approxRem.isNegative()||approxRem.gt(rem);)approxRem=(approxRes=fromNumber(approx-=delta,this.unsigned)).mul(divisor);approxRes.isZero()&&(approxRes=ONE),res=res.add(approxRes),rem=rem.sub(approxRem)}return res},LongPrototype.div=LongPrototype.divide,LongPrototype.modulo=function modulo(divisor){return isLong(divisor)||(divisor=fromValue(divisor)),wasm?fromBits((this.unsigned?wasm.rem_u:wasm.rem_s)(this.low,this.high,divisor.low,divisor.high),wasm.get_high(),this.unsigned):this.sub(this.div(divisor).mul(divisor))},LongPrototype.mod=LongPrototype.modulo,LongPrototype.rem=LongPrototype.modulo,LongPrototype.not=function not(){return fromBits(~this.low,~this.high,this.unsigned)},LongPrototype.countLeadingZeros=function countLeadingZeros(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},LongPrototype.clz=LongPrototype.countLeadingZeros,LongPrototype.countTrailingZeros=function countTrailingZeros(){return this.low?ctz32(this.low):ctz32(this.high)+32},LongPrototype.ctz=LongPrototype.countTrailingZeros,LongPrototype.and=function and(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low&other.low,this.high&other.high,this.unsigned)},LongPrototype.or=function or(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low|other.low,this.high|other.high,this.unsigned)},LongPrototype.xor=function xor(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low^other.low,this.high^other.high,this.unsigned)},LongPrototype.shiftLeft=function shiftLeft(numBits){return isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63)?this:numBits<32?fromBits(this.low<>>32-numBits,this.unsigned):fromBits(0,this.low<>>numBits|this.high<<32-numBits,this.high>>numBits,this.unsigned):fromBits(this.high>>numBits-32,this.high>=0?0:-1,this.unsigned)},LongPrototype.shr=LongPrototype.shiftRight,LongPrototype.shiftRightUnsigned=function shiftRightUnsigned(numBits){return isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63)?this:numBits<32?fromBits(this.low>>>numBits|this.high<<32-numBits,this.high>>>numBits,this.unsigned):fromBits(32===numBits?this.high:this.high>>>numBits-32,0,this.unsigned)},LongPrototype.shru=LongPrototype.shiftRightUnsigned,LongPrototype.shr_u=LongPrototype.shiftRightUnsigned,LongPrototype.rotateLeft=function rotateLeft(numBits){var b;return isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63)?this:32===numBits?fromBits(this.high,this.low,this.unsigned):numBits<32?(b=32-numBits,fromBits(this.low<>>b,this.high<>>b,this.unsigned)):(b=32-(numBits-=32),fromBits(this.high<>>b,this.low<>>b,this.unsigned))},LongPrototype.rotl=LongPrototype.rotateLeft,LongPrototype.rotateRight=function rotateRight(numBits){var b;return isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63)?this:32===numBits?fromBits(this.high,this.low,this.unsigned):numBits<32?(b=32-numBits,fromBits(this.high<>>numBits,this.low<>>numBits,this.unsigned)):(b=32-(numBits-=32),fromBits(this.low<>>numBits,this.high<>>numBits,this.unsigned))},LongPrototype.rotr=LongPrototype.rotateRight,LongPrototype.toSigned=function toSigned(){return this.unsigned?fromBits(this.low,this.high,!1):this},LongPrototype.toUnsigned=function toUnsigned(){return this.unsigned?this:fromBits(this.low,this.high,!0)},LongPrototype.toBytes=function toBytes(le){return le?this.toBytesLE():this.toBytesBE()},LongPrototype.toBytesLE=function toBytesLE(){var hi=this.high,lo=this.low;return[255&lo,lo>>>8&255,lo>>>16&255,lo>>>24,255&hi,hi>>>8&255,hi>>>16&255,hi>>>24]},LongPrototype.toBytesBE=function toBytesBE(){var hi=this.high,lo=this.low;return[hi>>>24,hi>>>16&255,hi>>>8&255,255&hi,lo>>>24,lo>>>16&255,lo>>>8&255,255&lo]},long_Long.fromBytes=function fromBytes(bytes,unsigned,le){return le?long_Long.fromBytesLE(bytes,unsigned):long_Long.fromBytesBE(bytes,unsigned)},long_Long.fromBytesLE=function fromBytesLE(bytes,unsigned){return new long_Long(bytes[0]|bytes[1]<<8|bytes[2]<<16|bytes[3]<<24,bytes[4]|bytes[5]<<8|bytes[6]<<16|bytes[7]<<24,unsigned)},long_Long.fromBytesBE=function fromBytesBE(bytes,unsigned){return new long_Long(bytes[4]<<24|bytes[5]<<16|bytes[6]<<8|bytes[7],bytes[0]<<24|bytes[1]<<16|bytes[2]<<8|bytes[3],unsigned)};var node_modules_long=long_Long;const MAXIMUM_TOKEN_LENGTH=16;function getS2CellIdFromToken(token){"X"===token&&(token="");const paddedToken=token.padEnd(MAXIMUM_TOKEN_LENGTH,"0");return node_modules_long.fromString(paddedToken,!0,16)}const s2_geometry_FACE_BITS=3,s2_geometry_POS_BITS=61,s2_geometry_RADIAN_TO_DEGREE=180/Math.PI;function s2_geometry_IJToST(ij,level,offsets){const maxSize=1<=.5?1/3*(4*st*st-1):1/3*(1-4*(1-st)*(1-st))}function s2_geometry_STToUV(st){return[s2_geometry_singleSTtoUV(st[0]),s2_geometry_singleSTtoUV(st[1])]}function s2_geometry_FaceUVToXYZ(face,_ref){let[u,v]=_ref;switch(face){case 0:return[1,u,v];case 1:return[-u,1,v];case 2:return[-u,-v,1];case 3:return[-1,-v,-u];case 4:return[v,-1,-u];case 5:return[v,u,-1];default:throw new Error("Invalid face")}}function s2_geometry_XYZToLngLat(_ref2){let[x,y,z]=_ref2;const lat=Math.atan2(z,Math.sqrt(x*x+y*y));return[Math.atan2(y,x)*s2_geometry_RADIAN_TO_DEGREE,lat*s2_geometry_RADIAN_TO_DEGREE]}function s2_geometry_rotateAndFlipQuadrant(n,point,rx,ry){if(0===ry){1===rx&&(point[0]=n-1-point[0],point[1]=n-1-point[1]);const x=point[0];point[0]=point[1],point[1]=x}}function s2_cell_utils_getS2Cell(tokenOrKey){const key=function s2_cell_utils_getS2QuadKey(tokenOrKey){if(tokenOrKey.indexOf("/")>0)return tokenOrKey;const id=getS2CellIdFromToken(tokenOrKey);return function getS2QuadkeyFromCellId(cellId){if(cellId.isZero())return"";let bin=cellId.toString(2);for(;bin.length=0;i--){level=maxLevel-i;const bit=position[i];let rx=0,ry=0;"1"===bit?ry=1:"2"===bit?(rx=1,ry=1):"3"===bit&&(rx=1);const val=Math.pow(2,level-1);s2_geometry_rotateAndFlipQuadrant(val,point,rx,ry),point[0]+=val*rx,point[1]+=val*ry}if(face%2==1){const t=point[0];point[0]=point[1],point[1]=t}return{face:face,ij:point,level:level}}(key);return s2cell}const s2_to_boundary_MAX_RESOLUTION=100;function s2_to_boundary_getS2BoundaryFlatFromS2Cell(s2cell){const{face:face,ij:ij,level:level}=s2cell,offsets=[[0,0],[0,1],[1,1],[1,0],[0,0]],resolution=Math.max(1,Math.ceil(s2_to_boundary_MAX_RESOLUTION*Math.pow(2,-level))),result=new Float64Array(4*resolution*2+2);let ptIndex=0,prevLng=0;for(let i=0;i<4;i++){const offset=offsets[i].slice(0),nextOffset=offsets[i+1],stepI=(nextOffset[0]-offset[0])/resolution,stepJ=(nextOffset[1]-offset[1])/resolution;for(let j=0;j89.999&&(lngLat[0]=prevLng);const deltaLng=lngLat[0]-prevLng;lngLat[0]+=deltaLng>180?-360:deltaLng<-180?360:0,result[ptIndex++]=lngLat[0],result[ptIndex++]=lngLat[1],prevLng=lngLat[0]}}return result[ptIndex++]=result[0],result[ptIndex++]=result[1],result}function get2DRegionFromS2Corners(corners){if(corners.length%2!=0)throw new Error("Invalid corners");const longitudes=[],latitudes=[];for(let i=0;ia-b)),latitudes.sort(((a,b)=>a-b)),{west:longitudes[0],east:longitudes[longitudes.length-1],north:latitudes[latitudes.length-1],south:latitudes[0]}}function getS2OrientedBoundingBoxCornerPoints(tokenOrKey,heightInfo){const min=(null==heightInfo?void 0:heightInfo.minimumHeight)||0,max=(null==heightInfo?void 0:heightInfo.maximumHeight)||0,region=function getS2Region(s2cell){let region;if(2===s2cell.face||5===s2cell.face){let corners=null,len=0;for(let i=0;i<4;i++){const corns=s2_to_boundary_getS2BoundaryFlatFromS2Cell(s2_cell_utils_getS2Cell("".concat(s2cell.face,"/").concat(i)));null==corners&&(corners=new Float64Array(4*corns.length)),corners.set(corns,len),len+=corns.length}region=get2DRegionFromS2Corners(corners)}else region=get2DRegionFromS2Corners(s2_to_boundary_getS2BoundaryFlatFromS2Cell(s2cell));return region}(s2_cell_utils_getS2Cell(tokenOrKey)),W=region.west,S=region.south,E=region.east,N=region.north,points=[];return points.push(new vector3.Z(W,N,min)),points.push(new vector3.Z(E,N,min)),points.push(new vector3.Z(E,S,min)),points.push(new vector3.Z(W,S,min)),points.push(new vector3.Z(W,N,max)),points.push(new vector3.Z(E,N,max)),points.push(new vector3.Z(E,S,max)),points.push(new vector3.Z(W,S,max)),points}function getS2LngLat(s2Token){return function getS2LngLatFromS2Cell(s2Cell){const uv=s2_geometry_STToUV(s2_geometry_IJToST(s2Cell.ij,s2Cell.level,[.5,.5]));return s2_geometry_XYZToLngLat(s2_geometry_FaceUVToXYZ(s2Cell.face,uv))}(s2_cell_utils_getS2Cell(s2Token))}function convertS2BoundingVolumetoOBB(s2VolumeInfo){const token=s2VolumeInfo.token,heightInfo={minimumHeight:s2VolumeInfo.minimumHeight,maximumHeight:s2VolumeInfo.maximumHeight},corners=getS2OrientedBoundingBoxCornerPoints(token,heightInfo),center=getS2LngLat(token),centerLng=center[0],centerLat=center[1],point=Ellipsoid.WGS84.cartographicToCartesian([centerLng,centerLat,heightInfo.maximumHeight]),centerPointAdditional=new vector3.Z(point[0],point[1],point[2]);corners.push(centerPointAdditional);const obb=makeOrientedBoundingBoxFromPoints(corners);return[...obb.center,...obb.halfAxes]}const SUBDIVISION_COUNT_MAP={QUADTREE:4,OCTREE:8};function getChildS2VolumeBox(s2VolumeBox,index,subdivisionScheme){if(null!=s2VolumeBox&&s2VolumeBox.box){const childCellId=function getS2ChildCellId(cellId,index){const newLsb=function lsb(cellId){return cellId.and(cellId.not().add(1))}(cellId).shiftRightUnsigned(2);return cellId.add(node_modules_long.fromNumber(2*index+1-4).multiply(newLsb))}(getS2CellIdFromToken(s2VolumeBox.s2VolumeInfo.token),index),childToken=function getS2TokenFromCellId(cellId){if(cellId.isZero())return"X";let numZeroDigits=cellId.countTrailingZeros();numZeroDigits=(numZeroDigits-numZeroDigits%4)/4;const trailingZeroHexChars=numZeroDigits;numZeroDigits*=4;const hexString=cellId.shiftRightUnsigned(numZeroDigits).toString(16).replace(/0+$/,"");return Array(17-trailingZeroHexChars-hexString.length).join("0")+hexString}(childCellId),s2ChildVolumeInfo={...s2VolumeBox.s2VolumeInfo};if(s2ChildVolumeInfo.token=childToken,"OCTREE"===subdivisionScheme){const s2VolumeInfo=s2VolumeBox.s2VolumeInfo,delta=s2VolumeInfo.maximumHeight-s2VolumeInfo.minimumHeight,sizeZ=delta/2,midZ=s2VolumeInfo.minimumHeight+delta/2;s2VolumeInfo.minimumHeight=midZ-sizeZ,s2VolumeInfo.maximumHeight=midZ+sizeZ}return{box:convertS2BoundingVolumetoOBB(s2ChildVolumeInfo),s2VolumeInfo:s2ChildVolumeInfo}}}async function parseImplicitTiles(params){const{options:options,parentData:parentData={mortonIndex:0,x:0,y:0,z:0},childIndex:childIndex=0,globalData:globalData={level:0,mortonIndex:0,x:0,y:0,z:0},s2VolumeBox:s2VolumeBox}=params;let{subtree:subtree,level:level=0}=params;const{subdivisionScheme:subdivisionScheme,subtreeLevels:subtreeLevels,maximumLevel:maximumLevel,contentUrlTemplate:contentUrlTemplate,subtreesUriTemplate:subtreesUriTemplate,basePath:basePath}=options,tile={children:[],lodMetricValue:0,contentUrl:""},childrenPerTile=SUBDIVISION_COUNT_MAP[subdivisionScheme],childX=1&childIndex,childY=childIndex>>1&1,childZ=childIndex>>2&1,levelOffset=(childrenPerTile**level-1)/(childrenPerTile-1);let childTileMortonIndex=concatBits(parentData.mortonIndex,childIndex),tileAvailabilityIndex=levelOffset+childTileMortonIndex,childTileX=concatBits(parentData.x,childX),childTileY=concatBits(parentData.y,childY),childTileZ=concatBits(parentData.z,childZ),isChildSubtreeAvailable=!1;level+1>subtreeLevels&&(isChildSubtreeAvailable=getAvailabilityResult(subtree.childSubtreeAvailability,childTileMortonIndex));const x=concatBits(globalData.x,childTileX),y=concatBits(globalData.y,childTileY),z=concatBits(globalData.z,childTileZ),lev=level+globalData.level;if(isChildSubtreeAvailable){const childSubtreeUrl=replaceContentUrlTemplate("".concat(basePath,"/").concat(subtreesUriTemplate),lev,x,y,z);subtree=await(0,load.z)(childSubtreeUrl,Tile3DSubtreeLoader),globalData.mortonIndex=childTileMortonIndex,globalData.x=childTileX,globalData.y=childTileY,globalData.z=childTileZ,globalData.level=level,childTileMortonIndex=0,tileAvailabilityIndex=0,childTileX=0,childTileY=0,childTileZ=0,level=0}if(!getAvailabilityResult(subtree.tileAvailability,tileAvailabilityIndex)||level>maximumLevel)return tile;getAvailabilityResult(subtree.contentAvailability,tileAvailabilityIndex)&&(tile.contentUrl=replaceContentUrlTemplate(contentUrlTemplate,lev,x,y,z));const childTileLevel=level+1,pData={mortonIndex:childTileMortonIndex,x:childTileX,y:childTileY,z:childTileZ};for(let index=0;index>bitIndex&1)}(index,availabilityData.explicitBitstream)}function formatTileData(tile,level,childCoordinates,options,s2VolumeBox){const{basePath:basePath,refine:refine,getRefine:getRefine,lodMetricType:lodMetricType,getTileType:getTileType,rootLodMetricValue:rootLodMetricValue,rootBoundingVolume:rootBoundingVolume}=options,uri=tile.contentUrl&&tile.contentUrl.replace("".concat(basePath,"/"),""),lodMetricValue=rootLodMetricValue/2**level,boundingVolumeForChildTile=function calculateBoundingVolumeForChildTile(level,rootBoundingVolume,childCoordinates){if(rootBoundingVolume.region){const{childTileX:childTileX,childTileY:childTileY,childTileZ:childTileZ}=childCoordinates,[west,south,east,north,minimumHeight,maximumHeight]=rootBoundingVolume.region,boundingVolumesCount=2**level,sizeX=(east-west)/boundingVolumesCount,sizeY=(north-south)/boundingVolumesCount,sizeZ=(maximumHeight-minimumHeight)/boundingVolumesCount,[childWest,childEast]=[west+sizeX*childTileX,west+sizeX*(childTileX+1)],[childSouth,childNorth]=[south+sizeY*childTileY,south+sizeY*(childTileY+1)],[childMinimumHeight,childMaximumHeight]=[minimumHeight+sizeZ*childTileZ,minimumHeight+sizeZ*(childTileZ+1)];return{region:[childWest,childSouth,childEast,childNorth,childMinimumHeight,childMaximumHeight]}}if(rootBoundingVolume.box)return rootBoundingVolume;throw new Error("Unsupported bounding volume type ".concat(rootBoundingVolume))}(level,null!=s2VolumeBox&&s2VolumeBox.box?{box:s2VolumeBox.box}:rootBoundingVolume,childCoordinates);return{children:tile.children,contentUrl:tile.contentUrl,content:{uri:uri},id:tile.contentUrl,refine:getRefine(refine),type:getTileType(tile),lodMetricType:lodMetricType,lodMetricValue:lodMetricValue,geometricError:lodMetricValue,transform:tile.transform,boundingVolume:boundingVolumeForChildTile}}function concatBits(first,second){return parseInt(first.toString(2)+second.toString(2),2)}function replaceContentUrlTemplate(templateUrl,level,x,y,z){const mapUrl=function generateMapUrl(items){const mapUrl={};for(const key in items)mapUrl["{".concat(key,"}")]=items[key];return mapUrl}({level:level,x:x,y:y,z:z});return templateUrl.replace(/{level}|{x}|{y}|{z}/gi,(matched=>mapUrl[matched]))}function getTileType(tile){if(!tile.contentUrl)return TILE_TYPE.EMPTY;const fileExtension=tile.contentUrl.split("?")[0].split(".").pop();switch(fileExtension){case"pnts":return TILE_TYPE.POINTCLOUD;case"i3dm":case"b3dm":case"glb":case"gltf":return TILE_TYPE.SCENEGRAPH;default:return fileExtension}}function getRefine(refine){switch(refine){case"REPLACE":case"replace":return TILE_REFINEMENT.REPLACE;case"ADD":case"add":return TILE_REFINEMENT.ADD;default:return refine}}function resolveUri(uri,basePath){if(/^[a-z][0-9a-z+.-]*:/i.test(basePath)){const url=new URL(uri,"".concat(basePath,"/"));return decodeURI(url.toString())}return uri.startsWith("/")?uri:"".concat(basePath,"/").concat(uri)}function normalizeTileData(tile,options){if(!tile)return null;if(tile.content){const contentUri=tile.content.uri||tile.content.url;tile.contentUrl=resolveUri(contentUri,options.basePath)}return tile.id=tile.contentUrl,tile.lodMetricType=LOD_METRIC_TYPE.GEOMETRIC_ERROR,tile.lodMetricValue=tile.geometricError,tile.transformMatrix=tile.transform,tile.type=getTileType(tile),tile.refine=getRefine(tile.refine),tile}async function normalizeImplicitTileHeaders(tile,tileset,implicitTilingExtension,options){var _tileset$root,_tile$boundingVolume$;const basePath=tileset.basePath,{subdivisionScheme:subdivisionScheme,maximumLevel:maximumLevel,subtreeLevels:subtreeLevels,subtrees:{uri:subtreesUriTemplate}}=implicitTilingExtension,subtreeUrl=resolveUri(replaceContentUrlTemplate(subtreesUriTemplate,0,0,0,0),basePath),subtree=await(0,load.z)(subtreeUrl,Tile3DSubtreeLoader,options),contentUrlTemplate=resolveUri(tile.content.uri,basePath),refine=null==tileset||null===(_tileset$root=tileset.root)||void 0===_tileset$root?void 0:_tileset$root.refine,rootLodMetricValue=tile.geometricError,s2VolumeInfo=null===(_tile$boundingVolume$=tile.boundingVolume.extensions)||void 0===_tile$boundingVolume$?void 0:_tile$boundingVolume$["3DTILES_bounding_volume_S2"];if(s2VolumeInfo){const s2VolumeBox={box:convertS2BoundingVolumetoOBB(s2VolumeInfo),s2VolumeInfo:s2VolumeInfo};tile.boundingVolume=s2VolumeBox}const rootBoundingVolume=tile.boundingVolume,implicitOptions={contentUrlTemplate:contentUrlTemplate,subtreesUriTemplate:subtreesUriTemplate,subdivisionScheme:subdivisionScheme,subtreeLevels:subtreeLevels,maximumLevel:maximumLevel,refine:refine,basePath:basePath,lodMetricType:LOD_METRIC_TYPE.GEOMETRIC_ERROR,rootLodMetricValue:rootLodMetricValue,rootBoundingVolume:rootBoundingVolume,getTileType:getTileType,getRefine:getRefine};return await async function normalizeImplicitTileData(tile,rootSubtree,options){if(!tile)return null;tile.lodMetricType=LOD_METRIC_TYPE.GEOMETRIC_ERROR,tile.lodMetricValue=tile.geometricError,tile.transformMatrix=tile.transform;const{children:children,contentUrl:contentUrl}=await parseImplicitTiles({subtree:rootSubtree,options:options,s2VolumeBox:tile});contentUrl&&(tile.contentUrl=contentUrl,tile.content={uri:contentUrl.replace("".concat(options.basePath,"/"),"")});return tile.refine=getRefine(tile.refine),tile.type=getTileType(tile),tile.children=children,tile.id=tile.contentUrl,tile}(tile,subtree,implicitOptions)}function getImplicitTilingExtensionData(tile){var _tile$extensions;return(null==tile||null===(_tile$extensions=tile.extensions)||void 0===_tile$extensions?void 0:_tile$extensions["3DTILES_implicit_tiling"])||(null==tile?void 0:tile.implicitTiling)}const Tiles3DLoader={id:"3d-tiles",name:"3D Tiles",module:"3d-tiles",version:"3.4.14",extensions:["cmpt","pnts","b3dm","i3dm"],mimeTypes:["application/octet-stream"],tests:["cmpt","pnts","b3dm","i3dm"],parse:async function parse(data,options,context){const loaderOptions=options["3d-tiles"]||{};let isTileset;isTileset="auto"===loaderOptions.isTileset?context.url&&-1!==context.url.indexOf(".json"):loaderOptions.isTileset;data=isTileset?await async function parseTileset(data,options,context){var _tilesetJson$root;const tilesetJson=JSON.parse((new TextDecoder).decode(data));return tilesetJson.loader=options.loader||Tiles3DLoader,tilesetJson.url=context.url,tilesetJson.queryString=context.queryString,tilesetJson.basePath=function getBaseUri(tileset){return path.XX(tileset.url)}(tilesetJson),tilesetJson.root=await async function normalizeTileHeaders(tileset,options){const basePath=tileset.basePath;let root;const rootImplicitTilingExtension=getImplicitTilingExtensionData(null==tileset?void 0:tileset.root);root=rootImplicitTilingExtension&&tileset.root?await normalizeImplicitTileHeaders(tileset.root,tileset,rootImplicitTilingExtension,options):normalizeTileData(tileset.root,tileset);const stack=[];for(stack.push(root);stack.length>0;){const children=(stack.pop()||{}).children||[];for(let childHeader of children){const childImplicitTilingExtension=getImplicitTilingExtensionData(childHeader);childImplicitTilingExtension?childHeader=await normalizeImplicitTileHeaders(childHeader,tileset,childImplicitTilingExtension,options):normalizeTileData(childHeader,{basePath:basePath}),stack.push(childHeader)}}return root}(tilesetJson,options),tilesetJson.type=TILESET_TYPE.TILES3D,tilesetJson.lodMetricType=LOD_METRIC_TYPE.GEOMETRIC_ERROR,tilesetJson.lodMetricValue=(null===(_tilesetJson$root=tilesetJson.root)||void 0===_tilesetJson$root?void 0:_tilesetJson$root.lodMetricValue)||0,tilesetJson}(data,options,context):await async function parseTile(arrayBuffer,options,context){const tile={content:{featureIds:null}},byteOffset=0;return await parse3DTile(arrayBuffer,byteOffset,options,context,tile.content),tile.content}(data,options,context);return data},options:{"3d-tiles":{loadGLTF:!0,decodeQuantizedPositions:!1,isTileset:"auto",assetGltfUpAxis:null}}};const SINGLE_DATA=[0],tile_3d_layer_defaultProps={getPointColor:{type:"accessor",value:[0,0,0,255]},pointSize:1,data:"",loader:Tiles3DLoader,onTilesetLoad:{type:"function",value:tileset3d=>{}},onTileLoad:{type:"function",value:tileHeader=>{}},onTileUnload:{type:"function",value:tileHeader=>{}},onTileError:{type:"function",value:(tile,message,url)=>{}},_getMeshColor:{type:"function",value:tileHeader=>[255,255,255]}};class Tile3DLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}initializeState(){"onTileLoadFail"in this.props&&log.Z.removed("onTileLoadFail","onTileError")(),this.state={layerMap:{},tileset3d:null,activeViewports:{},lastUpdatedViewports:null}}get isLoaded(){var _this$state,_this$state$tileset3d;return Boolean((null===(_this$state=this.state)||void 0===_this$state||null===(_this$state$tileset3d=_this$state.tileset3d)||void 0===_this$state$tileset3d?void 0:_this$state$tileset3d.isLoaded())&&super.isLoaded)}shouldUpdateState({changeFlags:changeFlags}){return changeFlags.somethingChanged}updateState({props:props,oldProps:oldProps,changeFlags:changeFlags}){if(props.data&&props.data!==oldProps.data&&this._loadTileset(props.data),changeFlags.viewportChanged){const{activeViewports:activeViewports}=this.state;Object.keys(activeViewports).length&&(this._updateTileset(activeViewports),this.state.lastUpdatedViewports=activeViewports,this.state.activeViewports={})}if(changeFlags.propsChanged){const{layerMap:layerMap}=this.state;for(const key in layerMap)layerMap[key].needsUpdate=!0}}activateViewport(viewport){const{activeViewports:activeViewports,lastUpdatedViewports:lastUpdatedViewports}=this.state;this.internalState.viewport=viewport,activeViewports[viewport.id]=viewport;const lastViewport=null==lastUpdatedViewports?void 0:lastUpdatedViewports[viewport.id];lastViewport&&viewport.equals(lastViewport)||(this.setChangeFlags({viewportChanged:!0}),this.setNeedsUpdate())}getPickingInfo({info:info,sourceLayer:sourceLayer}){const sourceTile=sourceLayer&&sourceLayer.props.tile;return info.picked&&(info.object=sourceTile),info.sourceTile=sourceTile,info}filterSubLayer({layer:layer,viewport:viewport}){const{tile:tile}=layer.props,{id:viewportId}=viewport;return tile.selected&&tile.viewportIds.includes(viewportId)}_updateAutoHighlight(info){const sourceTile=info.sourceTile,layerCache=this.state.layerMap[null==sourceTile?void 0:sourceTile.id];layerCache&&layerCache.layer&&layerCache.layer.updateAutoHighlight(info)}async _loadTileset(tilesetUrl){const{loadOptions:loadOptions={}}=this.props;let loader=this.props.loader||this.props.loaders;Array.isArray(loader)&&(loader=loader[0]);const options={loadOptions:{...loadOptions}};let actualTilesetUrl=tilesetUrl;if(loader.preload){const preloadOptions=await loader.preload(tilesetUrl,loadOptions);preloadOptions.url&&(actualTilesetUrl=preloadOptions.url),preloadOptions.headers&&(options.loadOptions.fetch={...options.loadOptions.fetch,headers:preloadOptions.headers}),Object.assign(options,preloadOptions)}const tilesetJson=await(0,load.z)(actualTilesetUrl,loader,options.loadOptions),tileset3d=new Tileset3D(tilesetJson,{onTileLoad:this._onTileLoad.bind(this),onTileUnload:this._onTileUnload.bind(this),onTileError:this.props.onTileError,...options});this.setState({tileset3d:tileset3d,layerMap:{}}),this._updateTileset(this.state.activeViewports),this.props.onTilesetLoad(tileset3d)}_onTileLoad(tileHeader){const{lastUpdatedViewports:lastUpdatedViewports}=this.state;this.props.onTileLoad(tileHeader),this._updateTileset(lastUpdatedViewports),this.setNeedsUpdate()}_onTileUnload(tileHeader){delete this.state.layerMap[tileHeader.id],this.props.onTileUnload(tileHeader)}_updateTileset(viewports){if(!viewports)return;const{tileset3d:tileset3d}=this.state,{timeline:timeline}=this.context,viewportsNumber=Object.keys(viewports).length;timeline&&viewportsNumber&&tileset3d&&tileset3d.selectTiles(Object.values(viewports)).then((frameNumber=>{this.state.frameNumber!==frameNumber&&this.setState({frameNumber:frameNumber})}))}_getSubLayer(tileHeader,oldLayer){if(!tileHeader.content)return null;switch(tileHeader.type){case TILE_TYPE.POINTCLOUD:return this._makePointCloudLayer(tileHeader,oldLayer);case TILE_TYPE.SCENEGRAPH:return this._make3DModelLayer(tileHeader);case TILE_TYPE.MESH:return this._makeSimpleMeshLayer(tileHeader,oldLayer);default:throw new Error("Tile3DLayer: Failed to render layer of type ".concat(tileHeader.content.type))}}_makePointCloudLayer(tileHeader,oldLayer){const{attributes:attributes,pointCount:pointCount,constantRGBA:constantRGBA,cartographicOrigin:cartographicOrigin,modelMatrix:modelMatrix}=tileHeader.content,{positions:positions,normals:normals,colors:colors}=attributes;if(!positions)return null;const data=oldLayer&&oldLayer.props.data||{header:{vertexCount:pointCount},attributes:{POSITION:positions,NORMAL:normals,COLOR_0:colors}},{pointSize:pointSize,getPointColor:getPointColor}=this.props;return new(this.getSubLayerClass("pointcloud",point_cloud_layer.Z))({pointSize:pointSize},this.getSubLayerProps({id:"pointcloud"}),{id:"".concat(this.id,"-pointcloud-").concat(tileHeader.id),tile:tileHeader,data:data,coordinateSystem:constants.COORDINATE_SYSTEM.METER_OFFSETS,coordinateOrigin:cartographicOrigin,modelMatrix:modelMatrix,getColor:constantRGBA||getPointColor,_offset:0})}_make3DModelLayer(tileHeader){const{gltf:gltf,instances:instances,cartographicOrigin:cartographicOrigin,modelMatrix:modelMatrix}=tileHeader.content;return new(this.getSubLayerClass("scenegraph",scenegraph_layer.Z))({_lighting:"pbr"},this.getSubLayerProps({id:"scenegraph"}),{id:"".concat(this.id,"-scenegraph-").concat(tileHeader.id),tile:tileHeader,data:instances||SINGLE_DATA,scenegraph:gltf,coordinateSystem:constants.COORDINATE_SYSTEM.METER_OFFSETS,coordinateOrigin:cartographicOrigin,modelMatrix:modelMatrix,getTransformMatrix:instance=>instance.modelMatrix,getPosition:[0,0,0],_offset:0})}_makeSimpleMeshLayer(tileHeader,oldLayer){const content=tileHeader.content,{attributes:attributes,indices:indices,modelMatrix:modelMatrix,cartographicOrigin:cartographicOrigin,coordinateSystem:coordinateSystem=constants.COORDINATE_SYSTEM.METER_OFFSETS,material:material,featureIds:featureIds}=content,{_getMeshColor:_getMeshColor}=this.props,geometry=oldLayer&&oldLayer.props.mesh||new geometry_geometry.Z({drawMode:4,attributes:getMeshGeometry(attributes),indices:indices});return new(this.getSubLayerClass("mesh",MeshLayer))(this.getSubLayerProps({id:"mesh"}),{id:"".concat(this.id,"-mesh-").concat(tileHeader.id),tile:tileHeader,mesh:geometry,data:SINGLE_DATA,getColor:_getMeshColor(tileHeader),pbrMaterial:material,modelMatrix:modelMatrix,coordinateOrigin:cartographicOrigin,coordinateSystem:coordinateSystem,featureIds:featureIds,_offset:0})}renderLayers(){const{tileset3d:tileset3d,layerMap:layerMap}=this.state;return tileset3d?tileset3d.tiles.map((tile=>{const layerCache=layerMap[tile.id]=layerMap[tile.id]||{tile:tile};let{layer:layer}=layerCache;return tile.selected&&(layer?layerCache.needsUpdate&&(layer=this._getSubLayer(tile,layer),layerCache.needsUpdate=!1):layer=this._getSubLayer(tile)),layerCache.layer=layer,layer})).filter(Boolean):null}}function getMeshGeometry(contentAttributes){const attributes={};return attributes.positions={...contentAttributes.positions,value:new Float32Array(contentAttributes.positions.value)},contentAttributes.normals&&(attributes.normals=contentAttributes.normals),contentAttributes.texCoords&&(attributes.texCoords=contentAttributes.texCoords),contentAttributes.colors&&(attributes.colors=contentAttributes.colors),contentAttributes.uvRegions&&(attributes.uvRegions=contentAttributes.uvRegions),attributes}(0,defineProperty.Z)(Tile3DLayer,"defaultProps",tile_3d_layer_defaultProps),(0,defineProperty.Z)(Tile3DLayer,"layerName","Tile3DLayer");const TerrainLoader={name:"Terrain",id:"terrain",module:"terrain",version:"3.4.14",worker:!0,extensions:["png","pngraw","jpg","jpeg","gif","webp","bmp"],mimeTypes:["image/png","image/jpeg","image/gif","image/webp","image/bmp"],options:{terrain:{tesselator:"auto",bounds:null,meshMaxError:10,elevationDecoder:{rScaler:1,gScaler:0,bScaler:0,offset:0},skirtHeight:null}}},DUMMY_DATA=[1],terrain_layer_defaultProps={...TileLayer.defaultProps,elevationData:urlType,texture:{...urlType,optional:!0},meshMaxError:{type:"number",value:4},bounds:{type:"array",value:null,optional:!0,compare:!0},color:{type:"color",value:[255,255,255]},elevationDecoder:{type:"object",value:{rScaler:1,gScaler:0,bScaler:0,offset:0}},workerUrl:"",wireframe:!1,material:!0,loaders:[TerrainLoader]};function urlTemplateToUpdateTrigger(template){return Array.isArray(template)?template.join(";"):template||""}class TerrainLayer extends composite_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}updateState({props:props,oldProps:oldProps}){const elevationDataChanged=props.elevationData!==oldProps.elevationData;if(elevationDataChanged){const{elevationData:elevationData}=props,isTiled=elevationData&&(Array.isArray(elevationData)||elevationData.includes("{x}")&&elevationData.includes("{y}"));this.setState({isTiled:isTiled})}const shouldReload=elevationDataChanged||props.meshMaxError!==oldProps.meshMaxError||props.elevationDecoder!==oldProps.elevationDecoder||props.bounds!==oldProps.bounds;if(!this.state.isTiled&&shouldReload){const terrain=this.loadTerrain(props);this.setState({terrain:terrain})}props.workerUrl&&log.Z.removed("workerUrl","loadOptions.terrain.workerUrl")()}loadTerrain({elevationData:elevationData,bounds:bounds,elevationDecoder:elevationDecoder,meshMaxError:meshMaxError,signal:signal}){var _loadOptions;if(!elevationData)return null;let loadOptions=this.getLoadOptions();loadOptions={...loadOptions,terrain:{skirtHeight:this.state.isTiled?2*meshMaxError:0,...null===(_loadOptions=loadOptions)||void 0===_loadOptions?void 0:_loadOptions.terrain,bounds:bounds,meshMaxError:meshMaxError,elevationDecoder:elevationDecoder}};const{fetch:fetch}=this.props;return fetch(elevationData,{propName:"elevationData",layer:this,loadOptions:loadOptions,signal:signal})}getTiledTerrainData(tile){const{elevationData:elevationData,fetch:fetch,texture:texture,elevationDecoder:elevationDecoder,meshMaxError:meshMaxError}=this.props,{viewport:viewport}=this.context,dataUrl=getURLFromTemplate(elevationData,tile),textureUrl=texture&&getURLFromTemplate(texture,tile),{signal:signal}=tile;let bottomLeft=[0,0],topRight=[0,0];if(viewport.isGeospatial){const bbox=tile.bbox;bottomLeft=viewport.projectFlat([bbox.west,bbox.south]),topRight=viewport.projectFlat([bbox.east,bbox.north])}else{const bbox=tile.bbox;bottomLeft=[bbox.left,bbox.bottom],topRight=[bbox.right,bbox.top]}const bounds=[bottomLeft[0],bottomLeft[1],topRight[0],topRight[1]],terrain=this.loadTerrain({elevationData:dataUrl,bounds:bounds,elevationDecoder:elevationDecoder,meshMaxError:meshMaxError,signal:signal}),surface=textureUrl?fetch(textureUrl,{propName:"texture",layer:this,loaders:[],signal:signal}).catch((_=>null)):Promise.resolve(null);return Promise.all([terrain,surface])}renderSubLayers(props){const SubLayerClass=this.getSubLayerClass("mesh",simple_mesh_layer.Z),{color:color,wireframe:wireframe,material:material}=this.props,{data:data}=props;if(!data)return null;const[mesh,texture]=data;return new SubLayerClass(props,{data:DUMMY_DATA,mesh:mesh,texture:texture,_instanced:!1,coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,getPosition:d=>[0,0,0],getColor:color,wireframe:wireframe,material:material})}onViewportLoad(tiles){if(!tiles)return;const{zRange:zRange}=this.state,ranges=tiles.map((tile=>tile.content)).filter(Boolean).map((arr=>arr[0].header.boundingBox.map((bound=>bound[2]))));if(0===ranges.length)return;const minZ=Math.min(...ranges.map((x=>x[0]))),maxZ=Math.max(...ranges.map((x=>x[1])));(!zRange||minZzRange[1])&&this.setState({zRange:[minZ,maxZ]})}renderLayers(){const{color:color,material:material,elevationData:elevationData,texture:texture,wireframe:wireframe,meshMaxError:meshMaxError,elevationDecoder:elevationDecoder,tileSize:tileSize,maxZoom:maxZoom,minZoom:minZoom,extent:extent,maxRequests:maxRequests,onTileLoad:onTileLoad,onTileUnload:onTileUnload,onTileError:onTileError,maxCacheSize:maxCacheSize,maxCacheByteSize:maxCacheByteSize,refinementStrategy:refinementStrategy}=this.props;if(this.state.isTiled)return new TileLayer(this.getSubLayerProps({id:"tiles"}),{getTileData:this.getTiledTerrainData.bind(this),renderSubLayers:this.renderSubLayers.bind(this),updateTriggers:{getTileData:{elevationData:urlTemplateToUpdateTrigger(elevationData),texture:urlTemplateToUpdateTrigger(texture),meshMaxError:meshMaxError,elevationDecoder:elevationDecoder}},onViewportLoad:this.onViewportLoad.bind(this),zRange:this.state.zRange||null,tileSize:tileSize,maxZoom:maxZoom,minZoom:minZoom,extent:extent,maxRequests:maxRequests,onTileLoad:onTileLoad,onTileUnload:onTileUnload,onTileError:onTileError,maxCacheSize:maxCacheSize,maxCacheByteSize:maxCacheByteSize,refinementStrategy:refinementStrategy});if(!elevationData)return null;return new(this.getSubLayerClass("mesh",simple_mesh_layer.Z))(this.getSubLayerProps({id:"mesh"}),{data:DUMMY_DATA,mesh:this.state.terrain,texture:texture,_instanced:!1,getPosition:d=>[0,0,0],getColor:color,material:material,wireframe:wireframe})}}(0,defineProperty.Z)(TerrainLayer,"defaultProps",terrain_layer_defaultProps),(0,defineProperty.Z)(TerrainLayer,"layerName","TerrainLayer");var clip_extension=__webpack_require__("./node_modules/@deck.gl/extensions/dist/esm/clip/clip-extension.js"),polygon_dist_esm=__webpack_require__("./node_modules/@math.gl/polygon/dist/esm/index.js");function flatGeojsonToBinary(features,geometryInfo,options){const propArrayTypes=extractNumericPropTypes(features),numericPropKeys=Object.keys(propArrayTypes).filter((k=>propArrayTypes[k]!==Array));return function fillArrays(features,geometryInfo,options){const{pointPositionsCount:pointPositionsCount,pointFeaturesCount:pointFeaturesCount,linePositionsCount:linePositionsCount,linePathsCount:linePathsCount,lineFeaturesCount:lineFeaturesCount,polygonPositionsCount:polygonPositionsCount,polygonObjectsCount:polygonObjectsCount,polygonRingsCount:polygonRingsCount,polygonFeaturesCount:polygonFeaturesCount,propArrayTypes:propArrayTypes,coordLength:coordLength}=geometryInfo,{numericPropKeys:numericPropKeys=[],PositionDataType:PositionDataType=Float32Array,triangulate:triangulate=!0}=options,hasGlobalId=features[0]&&"id"in features[0],GlobalFeatureIdsDataType=features.length>65535?Uint32Array:Uint16Array,points={type:"Point",positions:new PositionDataType(pointPositionsCount*coordLength),globalFeatureIds:new GlobalFeatureIdsDataType(pointPositionsCount),featureIds:pointFeaturesCount>65535?new Uint32Array(pointPositionsCount):new Uint16Array(pointPositionsCount),numericProps:{},properties:[],fields:[]},lines={type:"LineString",pathIndices:linePositionsCount>65535?new Uint32Array(linePathsCount+1):new Uint16Array(linePathsCount+1),positions:new PositionDataType(linePositionsCount*coordLength),globalFeatureIds:new GlobalFeatureIdsDataType(linePositionsCount),featureIds:lineFeaturesCount>65535?new Uint32Array(linePositionsCount):new Uint16Array(linePositionsCount),numericProps:{},properties:[],fields:[]},polygons={type:"Polygon",polygonIndices:polygonPositionsCount>65535?new Uint32Array(polygonObjectsCount+1):new Uint16Array(polygonObjectsCount+1),primitivePolygonIndices:polygonPositionsCount>65535?new Uint32Array(polygonRingsCount+1):new Uint16Array(polygonRingsCount+1),positions:new PositionDataType(polygonPositionsCount*coordLength),globalFeatureIds:new GlobalFeatureIdsDataType(polygonPositionsCount),featureIds:polygonFeaturesCount>65535?new Uint32Array(polygonPositionsCount):new Uint16Array(polygonPositionsCount),numericProps:{},properties:[],fields:[]};triangulate&&(polygons.triangles=[]);for(const object of[points,lines,polygons])for(const propName of numericPropKeys){const T=propArrayTypes[propName];object.numericProps[propName]=new T(object.positions.length/coordLength)}lines.pathIndices[linePathsCount]=linePositionsCount,polygons.polygonIndices[polygonObjectsCount]=polygonPositionsCount,polygons.primitivePolygonIndices[polygonRingsCount]=polygonPositionsCount;const indexMap={pointPosition:0,pointFeature:0,linePosition:0,linePath:0,lineFeature:0,polygonPosition:0,polygonObject:0,polygonRing:0,polygonFeature:0,feature:0};for(const feature of features){const geometry=feature.geometry,properties=feature.properties||{};switch(geometry.type){case"Point":handlePoint(geometry,points,indexMap,coordLength,properties),points.properties.push(keepStringProperties(properties,numericPropKeys)),hasGlobalId&&points.fields.push({id:feature.id}),indexMap.pointFeature++;break;case"LineString":handleLineString(geometry,lines,indexMap,coordLength,properties),lines.properties.push(keepStringProperties(properties,numericPropKeys)),hasGlobalId&&lines.fields.push({id:feature.id}),indexMap.lineFeature++;break;case"Polygon":handlePolygon(geometry,polygons,indexMap,coordLength,properties),polygons.properties.push(keepStringProperties(properties,numericPropKeys)),hasGlobalId&&polygons.fields.push({id:feature.id}),indexMap.polygonFeature++;break;default:throw new Error("Invalid geometry type")}indexMap.feature++}return function makeAccessorObjects(points,lines,polygons,coordLength){const binaryFeatures={points:{...points,positions:{value:points.positions,size:coordLength},globalFeatureIds:{value:points.globalFeatureIds,size:1},featureIds:{value:points.featureIds,size:1},numericProps:wrapProps(points.numericProps,1)},lines:{...lines,positions:{value:lines.positions,size:coordLength},pathIndices:{value:lines.pathIndices,size:1},globalFeatureIds:{value:lines.globalFeatureIds,size:1},featureIds:{value:lines.featureIds,size:1},numericProps:wrapProps(lines.numericProps,1)},polygons:{...polygons,positions:{value:polygons.positions,size:coordLength},polygonIndices:{value:polygons.polygonIndices,size:1},primitivePolygonIndices:{value:polygons.primitivePolygonIndices,size:1},globalFeatureIds:{value:polygons.globalFeatureIds,size:1},featureIds:{value:polygons.featureIds,size:1},numericProps:wrapProps(polygons.numericProps,1)}};polygons.triangles&&(binaryFeatures.polygons.triangles={value:new Uint32Array(polygons.triangles),size:1});return binaryFeatures}(points,lines,polygons,coordLength)}(features,{propArrayTypes:propArrayTypes,...geometryInfo},{numericPropKeys:options&&options.numericPropKeys||numericPropKeys,PositionDataType:options?options.PositionDataType:Float32Array,triangulate:!options||options.triangulate})}function extractNumericPropTypes(features){const propArrayTypes={};for(const feature of features)if(feature.properties)for(const key in feature.properties){const val=feature.properties[key];propArrayTypes[key]=deduceArrayType(val,propArrayTypes[key])}return propArrayTypes}function handlePoint(geometry,points,indexMap,coordLength,properties){points.positions.set(geometry.data,indexMap.pointPosition*coordLength);const nPositions=geometry.data.length/coordLength;fillNumericProperties(points,properties,indexMap.pointPosition,nPositions),points.globalFeatureIds.fill(indexMap.feature,indexMap.pointPosition,indexMap.pointPosition+nPositions),points.featureIds.fill(indexMap.pointFeature,indexMap.pointPosition,indexMap.pointPosition+nPositions),indexMap.pointPosition+=nPositions}function handleLineString(geometry,lines,indexMap,coordLength,properties){lines.positions.set(geometry.data,indexMap.linePosition*coordLength);const nPositions=geometry.data.length/coordLength;fillNumericProperties(lines,properties,indexMap.linePosition,nPositions),lines.globalFeatureIds.fill(indexMap.feature,indexMap.linePosition,indexMap.linePosition+nPositions),lines.featureIds.fill(indexMap.lineFeature,indexMap.linePosition,indexMap.linePosition+nPositions);for(let i=0,il=geometry.indices.length;i(n-offset)/coordLength)),triangles=(0,polygon_dist_esm.OT)(polygonPositions,holes,coordLength,areas);for(let t=0,tl=triangles.length;t>3}if(length--,1===cmd||2===cmd)x+=pbf.readSVarint(),y+=pbf.readSVarint(),1===cmd&&(line&&lines.push(line),line=[]),line&&line.push([x,y]);else{if(7!==cmd)throw new Error("unknown command ".concat(cmd));line&&line.push(line[0].slice())}}return line&&lines.push(line),lines}bbox(){const pbf=this._pbf;pbf.pos=this._geometry;const end=pbf.readVarint()+pbf.pos;let cmd=1,length=0,x=0,y=0,x1=1/0,x2=-1/0,y1=1/0,y2=-1/0;for(;pbf.pos>3}if(length--,1===cmd||2===cmd)x+=pbf.readSVarint(),y+=pbf.readSVarint(),xx2&&(x2=x),yy2&&(y2=y);else if(7!==cmd)throw new Error("unknown command ".concat(cmd))}return[x1,y1,x2,y2]}_toGeoJSON(transform){let i,j,coords=this.loadGeometry(),type=VectorTileFeature.types[this.type];switch(this.type){case 1:const points=[];for(i=0;i=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[i];const end=this._pbf.readVarint()+this._pbf.pos;return new VectorTileFeature(this._pbf,end,this.extent,this._keys,this._values)}}function readLayer(tag,layer,pbf){layer&&pbf&&(15===tag?layer.version=pbf.readVarint():1===tag?layer.name=pbf.readString():5===tag?layer.extent=pbf.readVarint():2===tag?layer._features.push(pbf.pos):3===tag?layer._keys.push(pbf.readString()):4===tag&&layer._values.push(function readValueMessage(pbf){let value=null;const end=pbf.readVarint()+pbf.pos;for(;pbf.pos>3;value=1===tag?pbf.readString():2===tag?pbf.readFloat():3===tag?pbf.readDouble():4===tag?pbf.readVarint64():5===tag?pbf.readVarint():6===tag?pbf.readSVarint():7===tag?pbf.readBoolean():null}return value}(pbf)))}class VectorTile{constructor(pbf,end){(0,defineProperty.Z)(this,"layers",void 0),this.layers=pbf.readFields(readTile,{},end)}}function readTile(tag,layers,pbf){if(3===tag&&pbf){const layer=new VectorTileLayer(pbf,pbf.readVarint()+pbf.pos);layer.length&&layers&&(layers[layer.name]=layer)}}function binary_util_functions_classifyRings(geom){const len=geom.indices.length;if(len<=1)return{type:"Polygon",data:geom.data,areas:[[(0,polygon_dist_esm.ap)(geom.data)]],indices:[geom.indices]};const areas=[],polygons=[];let ccw,ringAreas=[],polygon=[],offset=0;for(let endIndex,startIndex,i=0;i>3),vector_tile_feature_length--,1===cmd||2===cmd)x+=pbf.readSVarint(),y+=pbf.readSVarint(),1===cmd&&indices.push(i),data.push(x,y),i+=2;else{if(7!==cmd)throw new Error("unknown command ".concat(cmd));if(i>0){const start=indices[indices.length-1];data.push(data[start],data[start+1]),i+=2}}return{data:data,indices:indices}}_toBinaryCoordinates(transform){const geom=this.loadGeometry();let geometry;transform(geom.data,this);switch(this.type){case 1:this._geometryInfo.pointFeaturesCount++,this._geometryInfo.pointPositionsCount+=geom.indices.length,geometry={type:"Point",...geom};break;case 2:this._geometryInfo.lineFeaturesCount++,this._geometryInfo.linePathsCount+=geom.indices.length,this._geometryInfo.linePositionsCount+=geom.data.length/2,geometry={type:"LineString",...geom};break;case 3:geometry=binary_util_functions_classifyRings(geom),this._geometryInfo.polygonFeaturesCount++,this._geometryInfo.polygonObjectsCount+=geometry.indices.length;for(const indices of geometry.indices)this._geometryInfo.polygonRingsCount+=indices.length;this._geometryInfo.polygonPositionsCount+=geometry.data.length/2;break;default:throw new Error("Invalid geometry type: ".concat(this.type))}const result={type:"Feature",geometry:geometry,properties:this.properties};return null!==this.id&&(result.id=this.id),result}toBinaryCoordinates(options){if("function"==typeof options)return this._toBinaryCoordinates(options);const{x:x,y:y,z:z}=options,size=this.extent*Math.pow(2,z),x0=this.extent*x,y0=this.extent*y;return this._toBinaryCoordinates((data=>function project(data,x0,y0,size){for(let j=0,jl=data.length;j=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[i];const end=this._pbf.readVarint()+this._pbf.pos;return new vector_tile_feature_VectorTileFeature(this._pbf,end,this.extent,this._keys,this._values,geometryInfo)}}function vector_tile_layer_readLayer(tag,layer,pbf){layer&&pbf&&(15===tag?layer.version=pbf.readVarint():1===tag?layer.name=pbf.readString():5===tag?layer.extent=pbf.readVarint():2===tag?layer._features.push(pbf.pos):3===tag?layer._keys.push(pbf.readString()):4===tag&&layer._values.push(function vector_tile_layer_readValueMessage(pbf){let value=null;const end=pbf.readVarint()+pbf.pos;for(;pbf.pos>3;value=1===tag?pbf.readString():2===tag?pbf.readFloat():3===tag?pbf.readDouble():4===tag?pbf.readVarint64():5===tag?pbf.readVarint():6===tag?pbf.readSVarint():7===tag?pbf.readBoolean():null}return value}(pbf)))}class vector_tile_VectorTile{constructor(pbf,end){(0,defineProperty.Z)(this,"layers",void 0),this.layers=pbf.readFields(vector_tile_readTile,{},end)}}function vector_tile_readTile(tag,layers,pbf){if(3===tag&&pbf){const layer=new vector_tile_layer_VectorTileLayer(pbf,pbf.readVarint()+pbf.pos);layer.length&&layers&&(layers[layer.name]=layer)}}function parseMVT(arrayBuffer,options){var _options$gis,_options$mvt;const mvtOptions=function normalizeOptions(options){var _options$mvt2;if(null==options||!options.mvt)throw new Error("mvt options required");const wgs84Coordinates="wgs84"===(null===(_options$mvt2=options.mvt)||void 0===_options$mvt2?void 0:_options$mvt2.coordinates),{tileIndex:tileIndex}=options.mvt,hasTileIndex=tileIndex&&Number.isFinite(tileIndex.x)&&Number.isFinite(tileIndex.y)&&Number.isFinite(tileIndex.z);if(wgs84Coordinates&&!hasTileIndex)throw new Error("MVT Loader: WGS84 coordinates need tileIndex property");return options.mvt}(options),shape=(null==options||null===(_options$gis=options.gis)||void 0===_options$gis?void 0:_options$gis.format)||(null==options||null===(_options$mvt=options.mvt)||void 0===_options$mvt?void 0:_options$mvt.shape);switch(shape){case"columnar-table":return{shape:"columnar-table",data:parseToBinary(arrayBuffer,mvtOptions)};case"geojson-row-table":return{shape:"geojson-row-table",data:parseToGeojson(arrayBuffer,mvtOptions)};case"geojson":return parseToGeojson(arrayBuffer,mvtOptions);case"binary-geometry":case"binary":return parseToBinary(arrayBuffer,mvtOptions);default:throw new Error(shape)}}function parseToBinary(arrayBuffer,options){const[flatGeoJsonFeatures,geometryInfo]=function parseToFlatGeoJson(arrayBuffer,options){const features=[],geometryInfo={coordLength:2,pointPositionsCount:0,pointFeaturesCount:0,linePositionsCount:0,linePathsCount:0,lineFeaturesCount:0,polygonPositionsCount:0,polygonObjectsCount:0,polygonRingsCount:0,polygonFeaturesCount:0};if(arrayBuffer.byteLength<=0)return[features,geometryInfo];const tile=new vector_tile_VectorTile(new(pbf_default())(arrayBuffer)),selectedLayers=options&&Array.isArray(options.layers)?options.layers:Object.keys(tile.layers);return selectedLayers.forEach((layerName=>{const vectorTileLayer=tile.layers[layerName];if(vectorTileLayer)for(let i=0;i{const vectorTileLayer=tile.layers[layerName];if(vectorTileLayer)for(let i=0;i1)return{type:"MultiPoint",coordinates:coordinates};return{type:"Point",coordinates:coordinates[0]}}(data,startIndex,endIndex);case"LineString":return function lineStringToGeoJson(data){let startIndex=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1/0,endIndex=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;const{positions:positions}=data,pathIndices=data.pathIndices.value.filter((x=>x>=startIndex&&x<=endIndex));if(!(pathIndices.length>2)){return{type:"LineString",coordinates:ringToGeoJson(positions,pathIndices[0],pathIndices[1])}}const coordinates=[];for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:0;const properties=Object.assign({},data.properties[data.featureIds.value[startIndex]]);for(const key in data.numericProps)properties[key]=data.numericProps[key].value[startIndex];return properties}(data,startIndex,endIndex),fields=function parseFields(data){let startIndex=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return data.fields&&data.fields[data.featureIds.value[startIndex]]}(data,startIndex,endIndex);return{type:"Feature",geometry:geometry,properties:properties,...fields}}function polygonToGeoJson(data){let startIndex=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1/0,endIndex=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;const{positions:positions}=data,polygonIndices=data.polygonIndices.value.filter((x=>x>=startIndex&&x<=endIndex)),primitivePolygonIndices=data.primitivePolygonIndices.value.filter((x=>x>=startIndex&&x<=endIndex));if(!(polygonIndices.length>2)){const coordinates=[];for(let i=0;iLineString(lineString,bbox,viewport)))},Polygon:Polygon,MultiPolygon:function MultiPolygon(multiPolygon,bbox,viewport){return multiPolygon.map((polygon=>Polygon(polygon,bbox,viewport)))}};function Point([pointX,pointY],[nw,se],viewport){const x=(0,common.t7)(nw[0],se[0],pointX),y=(0,common.t7)(nw[1],se[1],pointY);return viewport.unprojectFlat([x,y])}function getPoints(geometry,bbox,viewport){return geometry.map((g=>Point(g,bbox,viewport)))}function LineString(line,bbox,viewport){return getPoints(line,bbox,viewport)}function Polygon(polygon,bbox,viewport){return polygon.map((polygonRing=>getPoints(polygonRing,bbox,viewport)))}const GEOM_TYPES=["points","lines","polygons"];function findIndexByType(geomData,uniqueIdProperty,featureId,layerName){const featureIds=geomData.featureIds.value;if(!featureIds.length)return-1;let startFeatureIndex=0,endFeatureIndex=featureIds[featureIds.length-1]+1;if(layerName){const layerRange=function getLayerRange(geomData,layerName){if(!geomData.__layers){const layerNames={},{properties:properties}=geomData;for(let i=0;ix===featureId&&featureIds[i]>=startFeatureIndex&&featureIds[i]=0?geomData.globalFeatureIds.value[vertexIndex]:-1}return uniqueIdProperty?featureIndex=findIndex(geomData.properties,(elem=>elem[uniqueIdProperty]===featureId),startFeatureIndex,endFeatureIndex):geomData.fields&&(featureIndex=findIndex(geomData.fields,(elem=>elem.id===featureId),startFeatureIndex,endFeatureIndex)),featureIndex>=0?function getGlobalFeatureId(geomData,featureIndex){if(!geomData.__ids){const result=[],featureIds=geomData.featureIds.value,globalFeatureIds=geomData.globalFeatureIds.value;for(let i=0;iminZoom&&(opts.minZoom=tileJSON.minzoom),Number.isFinite(tileJSON.maxzoom)&&(!Number.isFinite(maxZoom)||tileJSON.maxzoom{const isMatchingId=getFeatureUniqueId(feature,uniqueIdProperty)===featureIdToHighlight,isMatchingLayer=isHighlighted||getFeatureLayerName(feature)===hoveredFeatureLayerName;return isMatchingId&&isMatchingLayer})):data&&binary?function findIndexBinary(data,uniqueIdProperty,featureId,layerName){for(const gt of GEOM_TYPES){const index=data[gt]&&findIndexByType(data[gt],uniqueIdProperty,featureId,layerName);if(index>=0)return index}return-1}(data,uniqueIdProperty,featureIdToHighlight,isHighlighted?"":hoveredFeatureLayerName):-1}_pickObjects(maxObjects){const{deck:deck,viewport:viewport}=this.context,width=viewport.width,height=viewport.height,x=viewport.x,y=viewport.y,layerIds=[this.id];return deck.pickObjects({x:x,y:y,width:width,height:height,layerIds:layerIds,maxObjects:maxObjects})}getRenderedFeatures(maxFeatures=null){const features=this._pickObjects(maxFeatures),featureCache=new Set,renderedFeatures=[];for(const f of features){const featureId=getFeatureUniqueId(f.object,this.props.uniqueIdProperty);void 0===featureId?renderedFeatures.push(f.object):featureCache.has(featureId)||(featureCache.add(featureId),renderedFeatures.push(f.object))}return renderedFeatures}_setWGS84PropertyForTiles(){this.state.tileset.selectedTiles.forEach((tile=>{tile.hasOwnProperty("dataInWGS84")||Object.defineProperty(tile,"dataInWGS84",{get:()=>{if(!tile.content)return null;if(this.state.binary&&Array.isArray(tile.content)&&!tile.content.length)return[];const{bbox:bbox}=tile;if(void 0===tile._contentWGS84&&function isGeoBoundingBox(v){return Number.isFinite(v.west)&&Number.isFinite(v.north)&&Number.isFinite(v.east)&&Number.isFinite(v.south)}(bbox)){const content=this.state.binary?binaryToGeojson(tile.content):tile.content;tile._contentWGS84=content.map((feature=>transformTileCoordsToWGS84(feature,bbox,this.context.viewport)))}return tile._contentWGS84}})}))}}function getFeatureUniqueId(feature,uniqueIdProperty){return feature.properties&&uniqueIdProperty?feature.properties[uniqueIdProperty]:"id"in feature?feature.id:void 0}function getFeatureLayerName(feature){var _feature$properties;return(null===(_feature$properties=feature.properties)||void 0===_feature$properties?void 0:_feature$properties.layerName)||null}function isFeatureIdDefined(value){return null!=value&&""!==value}function transformTileCoordsToWGS84(object,bbox,viewport){const feature={...object,geometry:{type:object.geometry.type}};return Object.defineProperty(feature.geometry,"coordinates",{get:()=>{const wgs84Geom=function transform(geometry,bbox,viewport){const projectedBbox=[viewport.projectFlat([bbox.west,bbox.north]),viewport.projectFlat([bbox.east,bbox.south])];return{...geometry,coordinates:availableTransformations[geometry.type](geometry.coordinates,projectedBbox,viewport)}}(object.geometry,bbox,viewport);return wgs84Geom.coordinates}}),feature}(0,defineProperty.Z)(MVTLayer,"layerName","MVTLayer"),(0,defineProperty.Z)(MVTLayer,"defaultProps",mvt_layer_defaultProps);const BASE32_CODES_DICT={};for(let i=0;i<32;i++)BASE32_CODES_DICT["0123456789bcdefghjkmnpqrstuvwxyz".charAt(i)]=i;const MIN_LAT=-90,MAX_LAT=90,MIN_LON=-180,MAX_LON=180;function getGeohashPolygon(geohash){const[s,w,n,e]=function getGeohashBounds(geohash){let mid,isLon=!0,maxLat=MAX_LAT,minLat=MIN_LAT,maxLon=MAX_LON,minLon=MIN_LON,hashValue=0;for(let i=0,l=geohash.length;i=0;bits--){const bit=hashValue>>bits&1;isLon?(mid=(maxLon+minLon)/2,1===bit?minLon=mid:maxLon=mid):(mid=(maxLat+minLat)/2,1===bit?minLat=mid:maxLat=mid),isLon=!isLon}}return[minLat,minLon,maxLat,maxLon]}(geohash);return[e,n,e,s,w,s,w,n,e,n]}class GeohashLayer extends GeoCellLayer{indexToBounds(){const{data:data,getGeohash:getGeohash}=this.props;return{data:data,_normalize:!1,positionFormat:"XY",getPolygon:(x,objectInfo)=>getGeohashPolygon(getGeohash(x,objectInfo))}}}(0,defineProperty.Z)(GeohashLayer,"layerName","GeohashLayer"),(0,defineProperty.Z)(GeohashLayer,"defaultProps",{getGeohash:{type:"accessor",value:d=>d.geohash}})},"./node_modules/@deck.gl/json/dist/esm/helpers/parse-expression-string.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function get(container,compositeKey){const keyList=function getKeys(compositeKey){if("string"==typeof compositeKey){let keyList=keyMap[compositeKey];return keyList||(keyList=compositeKey.split("."),keyMap[compositeKey]=keyList),keyList}return Array.isArray(compositeKey)?compositeKey:[compositeKey]}(compositeKey);let value=container;for(const key of keyList)value=isObject(value)?value[key]:void 0;return value}function isObject(value){return null!==value&&"object"==typeof value}__webpack_require__.d(__webpack_exports__,{Z:function(){return parseExpressionString}});const keyMap={};var expression_eval=__webpack_require__("./node_modules/expression-eval/index.js"),expression_eval_default=__webpack_require__.n(expression_eval);const cachedExpressionMap={"-":object=>object};function parseExpressionString(propValue,configuration){if(propValue in cachedExpressionMap)return cachedExpressionMap[propValue];let func;const ast=expression_eval_default().parse(propValue);return ast.right||ast.left||"Identifier"!==ast.type?(traverse(ast,(node=>{if("CallExpression"===node.type)throw new Error("Function calls not allowed in JSON expressions")})),func=row=>expression_eval_default().eval(ast,row)):func=row=>get(row,propValue),cachedExpressionMap[propValue]=func,func}function traverse(node,visitor){if(Array.isArray(node))node.forEach((element=>traverse(element,visitor)));else if(node&&"object"==typeof node){node.type&&visitor(node);for(const key in node)traverse(node[key],visitor)}}},"./node_modules/@deck.gl/json/dist/esm/json-configuration.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return JSONConfiguration}});var _helpers_parse_expression_string__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/helpers/parse-expression-string.js"),_utils_assert__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/utils/assert.js"),_syntactic_sugar__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/syntactic-sugar.js");const isObject=value=>value&&"object"==typeof value;class JSONConfiguration{constructor(...configurations){this.typeKey=_syntactic_sugar__WEBPACK_IMPORTED_MODULE_0__.YJ,this.functionKey=_syntactic_sugar__WEBPACK_IMPORTED_MODULE_0__.Bu,this.log=console,this.classes={},this.reactComponents={},this.enumerations={},this.constants={},this.functions={},this.React=null,this.convertFunction=_helpers_parse_expression_string__WEBPACK_IMPORTED_MODULE_1__.Z,this.preProcessClassProps=(Class,props)=>props,this.postProcessConvertedJson=json=>json;for(const configuration of configurations)this.merge(configuration)}merge(configuration){for(const key in configuration)switch(key){case"layers":case"views":Object.assign(this.classes,configuration[key]);break;default:if(key in this){const value=configuration[key];this[key]=isObject(this[key])?Object.assign(this[key],value):value}}}validate(configuration){return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(!this.typeKey||"string"==typeof this.typeKey),(0,_utils_assert__WEBPACK_IMPORTED_MODULE_2__.Z)(isObject(this.classes)),!0}}},"./node_modules/@deck.gl/json/dist/esm/json-converter.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return JSONConverter}});var assert=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/utils/assert.js"),json_configuration=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/json-configuration.js"),parse_expression_string=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/helpers/parse-expression-string.js"),syntactic_sugar=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/syntactic-sugar.js");function trimFunctionIdentifier(value){return value.replace(syntactic_sugar.QT,"")}function convertFunctions(props,configuration){const replacedProps={};for(const propName in props){let propValue=props[propName];"string"==typeof(value=propValue)&&value.startsWith(syntactic_sugar.QT)&&(propValue=trimFunctionIdentifier(propValue),propValue=(0,parse_expression_string.Z)(propValue,configuration)),replacedProps[propName]=propValue}var value;return replacedProps}function instantiateClass(type,props,configuration){const Class=configuration.classes[type],Component=configuration.reactComponents[type];if(!Class&&!Component){const{log:log}=configuration;if(log){const stringProps=JSON.stringify(props,null,0).slice(0,40);log.warn("JSON converter: No registered class of type ".concat(type,"(").concat(stringProps,"...) "))}return null}return Class?function instantiateJavaScriptClass(Class,props,configuration){configuration.preProcessClassProps&&(props=configuration.preProcessClassProps(Class,props,configuration));return props=convertFunctions(props,configuration),new Class(props)}(Class,props,configuration):function instantiateReactComponent(Component,props,configuration){const{React:React}=configuration,{children:children=[]}=props;delete props.children,configuration.preProcessClassProps&&(props=configuration.preProcessClassProps(Component,props,configuration));return props=convertFunctions(props,configuration),React.createElement(Component,props,children)}(Component,props,configuration)}const isObject=value=>value&&"object"==typeof value;class JSONConverter{constructor(props){this.log=console,this.configuration={},this.onJSONChange=()=>{},this.json=null,this.convertedJson=null,this.setProps(props)}finalize(){}setProps(props){"configuration"in props&&(this.configuration=props.configuration instanceof json_configuration.Z?props.configuration:new json_configuration.Z(props.configuration)),"onJSONChange"in props&&(this.onJSONChange=props.onJSONChange)}mergeConfiguration(config){this.configuration.merge(config)}convert(json){if(!json||json===this.json)return this.convertedJson;this.json=json;const parsedJSON=function parseJSON(json){return"string"==typeof json?JSON.parse(json):json}(json);let convertedJson=function convertJSON(json,configuration){return configuration=new json_configuration.Z(configuration),convertJSONRecursively(json,"",configuration)}(parsedJSON,this.configuration);return convertedJson=this.configuration.postProcessConvertedJson(convertedJson),this.convertedJson=convertedJson,convertedJson}convertJson(json){return this.convert(json)}}function convertJSONRecursively(json,key,configuration){return Array.isArray(json)?json.map(((element,i)=>convertJSONRecursively(element,String(i),configuration))):function isClassInstance(json,configuration){const{typeKey:typeKey}=configuration,isClass=isObject(json)&&Boolean(json[typeKey]);return isClass}(json,configuration)?function convertClassInstance(json,configuration){const{typeKey:typeKey}=configuration,type=json[typeKey];let props={...json};return delete props[typeKey],props=convertPlainObject(props,configuration),instantiateClass(type,props,configuration)}(json,configuration):isObject(json)?syntactic_sugar.Bu in json?function convertFunctionObject(json,configuration){const{functionKey:functionKey}=configuration,targetFunction=json[functionKey];let props={...json};return delete props[functionKey],props=convertPlainObject(props,configuration),function executeFunction(targetFunction,props,configuration){const matchedFunction=configuration.functions[targetFunction];if(!matchedFunction){const{log:log}=configuration;if(log){const stringProps=JSON.stringify(props,null,0).slice(0,40);log.warn("JSON converter: No registered function ".concat(targetFunction,"(").concat(stringProps,"...) "))}return null}return matchedFunction(props)}(targetFunction,props,configuration)}(json,configuration):convertPlainObject(json,configuration):"string"==typeof json?function convertString(string,key,configuration){if(string.startsWith(syntactic_sugar.QT)&&configuration.convertFunction)return string=string.replace(syntactic_sugar.QT,""),configuration.convertFunction(string,configuration);if(string.startsWith(syntactic_sugar.tZ)){if(string=string.replace(syntactic_sugar.tZ,""),configuration.constants[string])return configuration.constants[string];const[enumVarName,enumValName]=string.split(".");return configuration.enumerations[enumVarName][enumValName]}return string}(json,0,configuration):json}function convertPlainObject(json,configuration){(0,assert.Z)(isObject(json));const result={};for(const key in json){const value=json[key];result[key]=convertJSONRecursively(value,0,configuration)}return result}},"./node_modules/@deck.gl/json/dist/esm/syntactic-sugar.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Bu:function(){return FUNCTION_KEY},QT:function(){return FUNCTION_IDENTIFIER},YJ:function(){return TYPE_KEY},tZ:function(){return CONSTANT_IDENTIFIER}});const FUNCTION_IDENTIFIER="@@=",CONSTANT_IDENTIFIER="@@#",TYPE_KEY="@@type",FUNCTION_KEY="@@function"},"./node_modules/@deck.gl/json/dist/esm/utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message=""){if(!condition)throw new Error("JSON conversion error ".concat(message))}__webpack_require__.d(__webpack_exports__,{Z:function(){return assert}})},"./node_modules/@deck.gl/layers/dist/esm/arc-layer/arc-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ArcLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lib_model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const DEFAULT_COLOR=[0,0,0,255],defaultProps={getSourcePosition:{type:"accessor",value:x=>x.sourcePosition},getTargetPosition:{type:"accessor",value:x=>x.targetPosition},getSourceColor:{type:"accessor",value:DEFAULT_COLOR},getTargetColor:{type:"accessor",value:DEFAULT_COLOR},getWidth:{type:"accessor",value:1},getHeight:{type:"accessor",value:1},getTilt:{type:"accessor",value:0},greatCircle:!1,numSegments:{type:"number",value:50,min:1},widthUnits:"pixels",widthScale:{type:"number",value:1,min:0},widthMinPixels:{type:"number",value:0,min:0},widthMaxPixels:{type:"number",value:Number.MAX_SAFE_INTEGER,min:0}};class ArcLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getBounds(){var _this$getAttributeMan;return null===(_this$getAttributeMan=this.getAttributeManager())||void 0===_this$getAttributeMan?void 0:_this$getAttributeMan.getBounds(["instanceSourcePositions","instanceTargetPositions"])}getShaders(){return super.getShaders({vs:"#define SHADER_NAME arc-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec4 instanceSourceColors;\nattribute vec4 instanceTargetColors;\nattribute vec3 instanceSourcePositions;\nattribute vec3 instanceSourcePositions64Low;\nattribute vec3 instanceTargetPositions;\nattribute vec3 instanceTargetPositions64Low;\nattribute vec3 instancePickingColors;\nattribute float instanceWidths;\nattribute float instanceHeights;\nattribute float instanceTilts;\n\nuniform bool greatCircle;\nuniform bool useShortestPath;\nuniform float numSegments;\nuniform float opacity;\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform int widthUnits;\n\nvarying vec4 vColor;\nvarying vec2 uv;\nvarying float isValid;\n\nfloat paraboloid(float distance, float sourceZ, float targetZ, float ratio) {\n\n float deltaZ = targetZ - sourceZ;\n float dh = distance * instanceHeights;\n if (dh == 0.0) {\n return sourceZ + deltaZ * ratio;\n }\n float unitZ = deltaZ / dh;\n float p2 = unitZ * unitZ + 1.0;\n float dir = step(deltaZ, 0.0);\n float z0 = mix(sourceZ, targetZ, dir);\n float r = mix(ratio, 1.0 - ratio, dir);\n return sqrt(r * (p2 - r)) * dh + z0;\n}\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction, float width) {\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n return dir_screenspace * offset_direction * width / 2.0;\n}\n\nfloat getSegmentRatio(float index) {\n return smoothstep(0.0, 1.0, index / (numSegments - 1.0));\n}\n\nvec3 interpolateFlat(vec3 source, vec3 target, float segmentRatio) {\n float distance = length(source.xy - target.xy);\n float z = paraboloid(distance, source.z, target.z, segmentRatio);\n\n float tiltAngle = radians(instanceTilts);\n vec2 tiltDirection = normalize(target.xy - source.xy);\n vec2 tilt = vec2(-tiltDirection.y, tiltDirection.x) * z * sin(tiltAngle);\n\n return vec3(\n mix(source.xy, target.xy, segmentRatio) + tilt,\n z * cos(tiltAngle)\n );\n}\nfloat getAngularDist (vec2 source, vec2 target) {\n vec2 sourceRadians = radians(source);\n vec2 targetRadians = radians(target);\n vec2 sin_half_delta = sin((sourceRadians - targetRadians) / 2.0);\n vec2 shd_sq = sin_half_delta * sin_half_delta;\n\n float a = shd_sq.y + cos(sourceRadians.y) * cos(targetRadians.y) * shd_sq.x;\n return 2.0 * asin(sqrt(a));\n}\n\nvec3 interpolateGreatCircle(vec3 source, vec3 target, vec3 source3D, vec3 target3D, float angularDist, float t) {\n vec2 lngLat;\n if(abs(angularDist - PI) < 0.001) {\n lngLat = (1.0 - t) * source.xy + t * target.xy;\n } else {\n float a = sin((1.0 - t) * angularDist);\n float b = sin(t * angularDist);\n vec3 p = source3D.yxz * a + target3D.yxz * b;\n lngLat = degrees(vec2(atan(p.y, -p.x), atan(p.z, length(p.xy))));\n }\n\n float z = paraboloid(angularDist * EARTH_RADIUS, source.z, target.z, t);\n\n return vec3(lngLat, z);\n}\n\nvoid main(void) {\n geometry.worldPosition = instanceSourcePositions;\n geometry.worldPositionAlt = instanceTargetPositions;\n\n float segmentIndex = positions.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n float prevSegmentRatio = getSegmentRatio(max(0.0, segmentIndex - 1.0));\n float nextSegmentRatio = getSegmentRatio(min(numSegments - 1.0, segmentIndex + 1.0));\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n isValid = 1.0;\n\n uv = vec2(segmentRatio, positions.y);\n geometry.uv = uv;\n geometry.pickingColor = instancePickingColors;\n\n vec4 curr;\n vec4 next;\n vec3 source;\n vec3 target;\n\n if ((greatCircle || project_uProjectionMode == PROJECTION_MODE_GLOBE) && project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n source = project_globe_(vec3(instanceSourcePositions.xy, 0.0));\n target = project_globe_(vec3(instanceTargetPositions.xy, 0.0));\n float angularDist = getAngularDist(instanceSourcePositions.xy, instanceTargetPositions.xy);\n\n vec3 prevPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, prevSegmentRatio);\n vec3 currPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, segmentRatio);\n vec3 nextPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, nextSegmentRatio);\n\n if (abs(currPos.x - prevPos.x) > 180.0) {\n indexDir = -1.0;\n isValid = 0.0;\n } else if (abs(currPos.x - nextPos.x) > 180.0) {\n indexDir = 1.0;\n isValid = 0.0;\n }\n nextPos = indexDir < 0.0 ? prevPos : nextPos;\n nextSegmentRatio = indexDir < 0.0 ? prevSegmentRatio : nextSegmentRatio;\n\n if (isValid == 0.0) {\n nextPos.x += nextPos.x > 0.0 ? -360.0 : 360.0;\n float t = ((currPos.x > 0.0 ? 180.0 : -180.0) - currPos.x) / (nextPos.x - currPos.x);\n currPos = mix(currPos, nextPos, t);\n segmentRatio = mix(segmentRatio, nextSegmentRatio, t);\n }\n\n vec3 currPos64Low = mix(instanceSourcePositions64Low, instanceTargetPositions64Low, segmentRatio);\n vec3 nextPos64Low = mix(instanceSourcePositions64Low, instanceTargetPositions64Low, nextSegmentRatio);\n \n curr = project_position_to_clipspace(currPos, currPos64Low, vec3(0.0), geometry.position);\n next = project_position_to_clipspace(nextPos, nextPos64Low, vec3(0.0));\n \n } else {\n vec3 source_world = instanceSourcePositions;\n vec3 target_world = instanceTargetPositions;\n if (useShortestPath) {\n source_world.x = mod(source_world.x + 180., 360.0) - 180.;\n target_world.x = mod(target_world.x + 180., 360.0) - 180.;\n\n float deltaLng = target_world.x - source_world.x;\n if (deltaLng > 180.) target_world.x -= 360.;\n if (deltaLng < -180.) source_world.x -= 360.;\n }\n source = project_position(source_world, instanceSourcePositions64Low);\n target = project_position(target_world, instanceTargetPositions64Low);\n float antiMeridianX = 0.0;\n\n if (useShortestPath) {\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {\n antiMeridianX = -(project_uCoordinateOrigin.x + 180.) / 360. * TILE_SIZE;\n }\n float thresholdRatio = (antiMeridianX - source.x) / (target.x - source.x);\n\n if (prevSegmentRatio <= thresholdRatio && nextSegmentRatio > thresholdRatio) {\n isValid = 0.0;\n indexDir = sign(segmentRatio - thresholdRatio);\n segmentRatio = thresholdRatio;\n }\n }\n\n nextSegmentRatio = indexDir < 0.0 ? prevSegmentRatio : nextSegmentRatio;\n vec3 currPos = interpolateFlat(source, target, segmentRatio);\n vec3 nextPos = interpolateFlat(source, target, nextSegmentRatio);\n\n if (useShortestPath) {\n if (nextPos.x < antiMeridianX) {\n currPos.x += TILE_SIZE;\n nextPos.x += TILE_SIZE;\n }\n }\n\n curr = project_common_position_to_clipspace(vec4(currPos, 1.0));\n next = project_common_position_to_clipspace(vec4(nextPos, 1.0));\n geometry.position = vec4(currPos, 1.0);\n }\n float widthPixels = clamp(\n project_size_to_pixel(instanceWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels\n );\n vec3 offset = vec3(\n getExtrusionOffset((next.xy - curr.xy) * indexDir, positions.y, widthPixels),\n 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n DECKGL_FILTER_GL_POSITION(curr, geometry);\n gl_Position = curr + vec4(project_pixel_size_to_clipspace(offset.xy), 0.0, 0.0);\n\n vec4 color = mix(instanceSourceColors, instanceTargetColors, segmentRatio);\n vColor = vec4(color.rgb, color.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME arc-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 uv;\nvarying float isValid;\n\nvoid main(void) {\n if (isValid == 0.0) {\n discard;\n }\n\n gl_FragColor = vColor;\n geometry.uv = uv;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}get wrapLongitude(){return!1}initializeState(){this.getAttributeManager().addInstanced({instanceSourcePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getSourcePosition"},instanceTargetPositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getTargetPosition"},instanceSourceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getSourceColor",defaultValue:DEFAULT_COLOR},instanceTargetColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getTargetColor",defaultValue:DEFAULT_COLOR},instanceWidths:{size:1,transition:!0,accessor:"getWidth",defaultValue:1},instanceHeights:{size:1,transition:!0,accessor:"getHeight",defaultValue:1},instanceTilts:{size:1,transition:!0,accessor:"getTilt",defaultValue:0}})}updateState(opts){super.updateState(opts);const{props:props,oldProps:oldProps,changeFlags:changeFlags}=opts;if(changeFlags.extensionsChanged||changeFlags.propsChanged&&props.numSegments!==oldProps.numSegments){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}}draw({uniforms:uniforms}){const{widthUnits:widthUnits,widthScale:widthScale,widthMinPixels:widthMinPixels,widthMaxPixels:widthMaxPixels,greatCircle:greatCircle,wrapLongitude:wrapLongitude}=this.props;this.state.model.setUniforms(uniforms).setUniforms({greatCircle:greatCircle,widthUnits:constants.iI[widthUnits],widthScale:widthScale,widthMinPixels:widthMinPixels,widthMaxPixels:widthMaxPixels,useShortestPath:wrapLongitude}).draw()}_getModel(gl){const{id:id,numSegments:numSegments}=this.props;let positions=[];for(let i=0;i0&&v>0&&(indices[index++]=vertex-vCount,indices[index++]=vertex-vCount-1,indices[index++]=vertex-1,indices[index++]=vertex-vCount,indices[index++]=vertex-1,indices[index++]=vertex),vertex++}}return{vertexCount:vertexCount,positions:positions,indices:indices,texCoords:texCoords}}function interpolateQuad(quad,ut,vt){return(0,common.t7)((0,common.t7)(quad[0],quad[1],vt),(0,common.t7)(quad[3],quad[2],vt),ut)}var bitmap_layer_fragment="\n#define SHADER_NAME bitmap-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nuniform sampler2D bitmapTexture;\n\nvarying vec2 vTexCoord;\nvarying vec2 vTexPos;\n\nuniform float desaturate;\nuniform vec4 transparentColor;\nuniform vec3 tintColor;\nuniform float opacity;\n\nuniform float coordinateConversion;\nuniform vec4 bounds;\n\n/* projection utils */\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / PI / 2.0;\n\n// from degrees to Web Mercator\nvec2 lnglat_to_mercator(vec2 lnglat) {\n float x = lnglat.x;\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\n// from Web Mercator to degrees\nvec2 mercator_to_lnglat(vec2 xy) {\n xy /= WORLD_SCALE;\n return degrees(vec2(\n xy.x - PI,\n atan(exp(xy.y - PI)) * 2.0 - PI * 0.5\n ));\n}\n/* End projection utils */\n\n// apply desaturation\nvec3 color_desaturate(vec3 color) {\n float luminance = (color.r + color.g + color.b) * 0.333333333;\n return mix(color, vec3(luminance), desaturate);\n}\n\n// apply tint\nvec3 color_tint(vec3 color) {\n return color * tintColor;\n}\n\n// blend with background color\nvec4 apply_opacity(vec3 color, float alpha) {\n if (transparentColor.a == 0.0) {\n return vec4(color, alpha);\n }\n float blendedAlpha = alpha + transparentColor.a * (1.0 - alpha);\n float highLightRatio = alpha / blendedAlpha;\n vec3 blendedRGB = mix(transparentColor.rgb, color, highLightRatio);\n return vec4(blendedRGB, blendedAlpha);\n}\n\nvec2 getUV(vec2 pos) {\n return vec2(\n (pos.x - bounds[0]) / (bounds[2] - bounds[0]),\n (pos.y - bounds[3]) / (bounds[1] - bounds[3])\n );\n}\n\n".concat("\nvec3 packUVsIntoRGB(vec2 uv) {\n // Extract the top 8 bits. We want values to be truncated down so we can add a fraction\n vec2 uv8bit = floor(uv * 256.);\n\n // Calculate the normalized remainders of u and v parts that do not fit into 8 bits\n // Scale and clamp to 0-1 range\n vec2 uvFraction = fract(uv * 256.);\n vec2 uvFraction4bit = floor(uvFraction * 16.);\n\n // Remainder can be encoded in blue channel, encode as 4 bits for pixel coordinates\n float fractions = uvFraction4bit.x + uvFraction4bit.y * 16.;\n\n return vec3(uv8bit, fractions) / 255.;\n}\n","\n\nvoid main(void) {\n vec2 uv = vTexCoord;\n if (coordinateConversion < -0.5) {\n vec2 lnglat = mercator_to_lnglat(vTexPos);\n uv = getUV(lnglat);\n } else if (coordinateConversion > 0.5) {\n vec2 commonPos = lnglat_to_mercator(vTexPos);\n uv = getUV(commonPos);\n }\n vec4 bitmapColor = texture2D(bitmapTexture, uv);\n\n gl_FragColor = apply_opacity(color_tint(color_desaturate(bitmapColor.rgb)), bitmapColor.a * opacity);\n\n geometry.uv = uv;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n\n if (picking_uActive && !picking_uAttribute) {\n // Since instance information is not used, we can use picking color for pixel index\n gl_FragColor.rgb = packUVsIntoRGB(uv);\n }\n}\n");const defaultProps={image:{type:"image",value:null,async:!0},bounds:{type:"array",value:[1,0,0,1],compare:!0},_imageCoordinateSystem:constants.COORDINATE_SYSTEM.DEFAULT,desaturate:{type:"number",min:0,max:1,value:0},transparentColor:{type:"color",value:[0,0,0,0]},tintColor:{type:"color",value:[255,255,255]},textureParameters:{type:"object",ignore:!0}};class BitmapLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){return super.getShaders({vs:"\n#define SHADER_NAME bitmap-layer-vertex-shader\n\nattribute vec2 texCoords;\nattribute vec3 positions;\nattribute vec3 positions64Low;\n\nvarying vec2 vTexCoord;\nvarying vec2 vTexPos;\n\nuniform float coordinateConversion;\n\nconst vec3 pickingColor = vec3(1.0, 0.0, 0.0);\n\nvoid main(void) {\n geometry.worldPosition = positions;\n geometry.uv = texCoords;\n geometry.pickingColor = pickingColor;\n\n gl_Position = project_position_to_clipspace(positions, positions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vTexCoord = texCoords;\n\n if (coordinateConversion < -0.5) {\n vTexPos = geometry.position.xy + project_uCommonOrigin.xy;\n } else if (coordinateConversion > 0.5) {\n vTexPos = geometry.worldPosition.xy;\n }\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n",fs:bitmap_layer_fragment,modules:[project32.Z,picking.Z]})}initializeState(){const attributeManager=this.getAttributeManager();attributeManager.remove(["instancePickingColors"]);attributeManager.add({indices:{size:1,isIndexed:!0,update:attribute=>attribute.value=this.state.mesh.indices,noAlloc:true},positions:{size:3,type:5130,fp64:this.use64bitPositions(),update:attribute=>attribute.value=this.state.mesh.positions,noAlloc:true},texCoords:{size:2,update:attribute=>attribute.value=this.state.mesh.texCoords,noAlloc:true}})}updateState({props:props,oldProps:oldProps,changeFlags:changeFlags}){const attributeManager=this.getAttributeManager();if(changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),attributeManager.invalidateAll()}if(props.bounds!==oldProps.bounds){const oldMesh=this.state.mesh,mesh=this._createMesh();this.state.model.setVertexCount(mesh.vertexCount);for(const key in mesh)oldMesh&&oldMesh[key]!==mesh[key]&&attributeManager.invalidate(key);this.setState({mesh:mesh,...this._getCoordinateUniforms()})}else props._imageCoordinateSystem!==oldProps._imageCoordinateSystem&&this.setState(this._getCoordinateUniforms())}getPickingInfo(params){const{image:image}=this.props,info=params.info;if(!info.color||!image)return info.bitmap=null,info;const{width:width,height:height}=image;info.index=0;const uv=function unpackUVsFromRGB(color){const[u,v,fracUV]=color;return[(u+(15&fracUV)/16)/256,(v+(240&fracUV)/256)/256]}(info.color),pixel=[Math.floor(uv[0]*width),Math.floor(uv[1]*height)];return info.bitmap={size:{width:width,height:height},uv:uv,pixel:pixel},info}disablePickingIndex(){this.setState({disablePicking:!0})}restorePickingColors(){this.setState({disablePicking:!1})}_updateAutoHighlight(info){super._updateAutoHighlight({...info,color:this.encodePickingColor(0)})}_createMesh(){const{bounds:bounds}=this.props;let normalizedBounds=bounds;return isRectangularBounds(bounds)&&(normalizedBounds=[[bounds[0],bounds[1]],[bounds[0],bounds[3]],[bounds[2],bounds[3]],[bounds[2],bounds[1]]]),createMesh(normalizedBounds,this.context.viewport.resolution)}_getModel(gl){return gl?new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:4,vertexCount:6}),isInstanced:!1}):null}draw(opts){const{uniforms:uniforms,moduleParameters:moduleParameters}=opts,{model:model,coordinateConversion:coordinateConversion,bounds:bounds,disablePicking:disablePicking}=this.state,{image:image,desaturate:desaturate,transparentColor:transparentColor,tintColor:tintColor}=this.props;moduleParameters.pickingActive&&disablePicking||image&&model&&model.setUniforms(uniforms).setUniforms({bitmapTexture:image,desaturate:desaturate,transparentColor:transparentColor.map((x=>x/255)),tintColor:tintColor.slice(0,3).map((x=>x/255)),coordinateConversion:coordinateConversion,bounds:bounds}).draw()}_getCoordinateUniforms(){const{LNGLAT:LNGLAT,CARTESIAN:CARTESIAN,DEFAULT:DEFAULT}=constants.COORDINATE_SYSTEM;let{_imageCoordinateSystem:imageCoordinateSystem}=this.props;if(imageCoordinateSystem!==DEFAULT){const{bounds:bounds}=this.props;if(!isRectangularBounds(bounds))throw new Error("_imageCoordinateSystem only supports rectangular bounds");const defaultImageCoordinateSystem=this.context.viewport.resolution?LNGLAT:CARTESIAN;if(imageCoordinateSystem=imageCoordinateSystem===LNGLAT?LNGLAT:CARTESIAN,imageCoordinateSystem===LNGLAT&&defaultImageCoordinateSystem===CARTESIAN)return{coordinateConversion:-1,bounds:bounds};if(imageCoordinateSystem===CARTESIAN&&defaultImageCoordinateSystem===LNGLAT){const bottomLeft=(0,esm.w5)([bounds[0],bounds[1]]),topRight=(0,esm.w5)([bounds[2],bounds[3]]);return{coordinateConversion:1,bounds:[bottomLeft[0],bottomLeft[1],topRight[0],topRight[1]]}}}return{coordinateConversion:0,bounds:[0,0,0,0]}}}function isRectangularBounds(bounds){return Number.isFinite(bounds[0])}(0,defineProperty.Z)(BitmapLayer,"layerName","BitmapLayer"),(0,defineProperty.Z)(BitmapLayer,"defaultProps",defaultProps)},"./node_modules/@deck.gl/layers/dist/esm/column-layer/column-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ColumnLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),phong_lighting=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),features=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),webgl_features_table=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js"),dist_esm=__webpack_require__("./node_modules/@math.gl/polygon/dist/esm/index.js");class ColumnGeometry extends geometry.Z{constructor(props){const{id:id=(0,utils.hQ)("column-geometry")}=props,{indices:indices,attributes:attributes}=function tesselateColumn(props){const{radius:radius,height:height=1,nradial:nradial=10}=props;let{vertices:vertices}=props;vertices&&(log.Z.assert(vertices.length>=nradial),vertices=vertices.flatMap((v=>[v[0],v[1]])),(0,dist_esm.Ny)(vertices,dist_esm.wG.COUNTER_CLOCKWISE));const isExtruded=height>0,vertsAroundEdge=nradial+1,numVertices=isExtruded?3*vertsAroundEdge+1:nradial,stepAngle=2*Math.PI/nradial,indices=new Uint16Array(isExtruded?3*nradial*2:0),positions=new Float32Array(3*numVertices),normals=new Float32Array(3*numVertices);let i=0;if(isExtruded){for(let j=0;jx.position},getFillColor:{type:"accessor",value:DEFAULT_COLOR},getLineColor:{type:"accessor",value:DEFAULT_COLOR},getLineWidth:{type:"accessor",value:1},getElevation:{type:"accessor",value:1e3},material:!0,getColor:{deprecatedFor:["getFillColor","getLineColor"]}};class ColumnLayer extends lib_layer.Z{getShaders(){const{gl:gl}=this.context,transpileToGLSL100=!(0,esm.D0)(gl),defines={},useDerivatives=this.props.flatShading&&(0,features.U6)(gl,webgl_features_table.h.GLSL_DERIVATIVES);return useDerivatives&&(defines.FLAT_SHADING=1),super.getShaders({vs:"#version 300 es\n\n#define SHADER_NAME column-layer-vertex-shader\n\nin vec3 positions;\nin vec3 normals;\n\nin vec3 instancePositions;\nin float instanceElevations;\nin vec3 instancePositions64Low;\nin vec4 instanceFillColors;\nin vec4 instanceLineColors;\nin float instanceStrokeWidths;\n\nin vec3 instancePickingColors;\nuniform float opacity;\nuniform float radius;\nuniform float angle;\nuniform vec2 offset;\nuniform bool extruded;\nuniform bool stroked;\nuniform bool isStroke;\nuniform float coverage;\nuniform float elevationScale;\nuniform float edgeDistance;\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform int radiusUnits;\nuniform int widthUnits;\nout vec4 vColor;\n#ifdef FLAT_SHADING\nout vec4 position_commonspace;\n#endif\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n\n vec4 color = isStroke ? instanceLineColors : instanceFillColors;\n mat2 rotationMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n float elevation = 0.0;\n float strokeOffsetRatio = 1.0;\n\n if (extruded) {\n elevation = instanceElevations * (positions.z + 1.0) / 2.0 * elevationScale;\n } else if (stroked) {\n float widthPixels = clamp(\n project_size_to_pixel(instanceStrokeWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels) / 2.0;\n float halfOffset = project_pixel_size(widthPixels) / project_size(edgeDistance * coverage * radius);\n if (isStroke) {\n strokeOffsetRatio -= sign(positions.z) * halfOffset;\n } else {\n strokeOffsetRatio -= halfOffset;\n }\n }\n float shouldRender = float(color.a > 0.0 && instanceElevations >= 0.0);\n float dotRadius = radius * coverage * shouldRender;\n\n geometry.pickingColor = instancePickingColors;\n vec3 centroidPosition = vec3(instancePositions.xy, instancePositions.z + elevation);\n vec3 centroidPosition64Low = instancePositions64Low;\n vec2 offset = (rotationMatrix * positions.xy * strokeOffsetRatio + offset) * dotRadius;\n if (radiusUnits == UNIT_METERS) {\n offset = project_size(offset);\n }\n vec3 pos = vec3(offset, 0.);\n DECKGL_FILTER_SIZE(pos, geometry);\n\n gl_Position = project_position_to_clipspace(centroidPosition, centroidPosition64Low, pos, geometry.position);\n geometry.normal = project_normal(vec3(rotationMatrix * normals.xy, normals.z));\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n if (extruded && !isStroke) {\n#ifdef FLAT_SHADING\n position_commonspace = geometry.position;\n vColor = vec4(color.rgb, color.a * opacity);\n#else\n vec3 lightColor = lighting_getLightColor(color.rgb, project_uCameraPosition, geometry.position.xyz, geometry.normal);\n vColor = vec4(lightColor, color.a * opacity);\n#endif\n } else {\n vColor = vec4(color.rgb, color.a * opacity);\n }\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#version 300 es\n#define SHADER_NAME column-layer-fragment-shader\n\nprecision highp float;\n\nuniform vec3 project_uCameraPosition;\nuniform bool extruded;\nuniform bool isStroke;\n\nout vec4 fragColor;\n\nin vec4 vColor;\n#ifdef FLAT_SHADING\nin vec4 position_commonspace;\n#endif\n\nvoid main(void) {\n fragColor = vColor;\n#ifdef FLAT_SHADING\n if (extruded && !isStroke && !picking_uActive) {\n vec3 normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n fragColor.rgb = lighting_getLightColor(vColor.rgb, project_uCameraPosition, position_commonspace.xyz, normal);\n }\n#endif\n DECKGL_FILTER_COLOR(fragColor, geometry);\n}\n",defines:defines,transpileToGLSL100:transpileToGLSL100,modules:[project32.Z,useDerivatives?phong_lighting.s:phong_lighting.N,picking.Z]})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceElevations:{size:1,transition:!0,accessor:"getElevation"},instanceFillColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getFillColor",defaultValue:DEFAULT_COLOR},instanceLineColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getLineColor",defaultValue:DEFAULT_COLOR},instanceStrokeWidths:{size:1,accessor:"getLineWidth",transition:!0}})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps,changeFlags:changeFlags}=params,regenerateModels=changeFlags.extensionsChanged||props.flatShading!==oldProps.flatShading;if(regenerateModels){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}(regenerateModels||props.diskResolution!==oldProps.diskResolution||props.vertices!==oldProps.vertices||(props.extruded||props.stroked)!==(oldProps.extruded||oldProps.stroked))&&this._updateGeometry(props)}getGeometry(diskResolution,vertices,hasThinkness){const geometry=new ColumnGeometry({radius:1,height:hasThinkness?2:0,vertices:vertices,nradial:diskResolution});let meanVertexDistance=0;if(vertices)for(let i=0;i0;)coordinates=coordinates[0];return coordinates&&Number.isFinite(coordinates[0])}(type,coordinates))switch(type){case"Point":pointFeatures.push(wrapFeature({geometry:geometry},sourceFeature,sourceFeatureIndex));break;case"MultiPoint":coordinates.forEach((point=>{pointFeatures.push(wrapFeature({geometry:{type:"Point",coordinates:point}},sourceFeature,sourceFeatureIndex))}));break;case"LineString":lineFeatures.push(wrapFeature({geometry:geometry},sourceFeature,sourceFeatureIndex));break;case"MultiLineString":coordinates.forEach((path=>{lineFeatures.push(wrapFeature({geometry:{type:"LineString",coordinates:path}},sourceFeature,sourceFeatureIndex))}));break;case"Polygon":polygonFeatures.push(wrapFeature({geometry:geometry},sourceFeature,sourceFeatureIndex)),coordinates.forEach((path=>{polygonOutlineFeatures.push(wrapFeature({geometry:{type:"LineString",coordinates:path}},sourceFeature,sourceFeatureIndex))}));break;case"MultiPolygon":coordinates.forEach((polygon=>{polygonFeatures.push(wrapFeature({geometry:{type:"Polygon",coordinates:polygon}},sourceFeature,sourceFeatureIndex)),polygon.forEach((path=>{polygonOutlineFeatures.push(wrapFeature({geometry:{type:"LineString",coordinates:path}},sourceFeature,sourceFeatureIndex))}))}))}else log.Z.warn("".concat(type," coordinates are malformed"))()}const COORDINATE_NEST_LEVEL={Point:1,MultiPoint:2,LineString:2,MultiLineString:3,Polygon:3,MultiPolygon:4};function getCoordinates(f){return f.geometry.coordinates}function createLayerPropsFromBinary(geojsonBinary,encodePickingColor){const layerProps={points:{},lines:{},polygons:{},polygonsOutline:{}},{points:points,lines:lines,polygons:polygons}=geojsonBinary,customPickingColors=function calculatePickingColors(geojsonBinary,encodePickingColor){const pickingColors={points:null,lines:null,polygons:null};for(const key in pickingColors){const featureIds=geojsonBinary[key].globalFeatureIds.value;pickingColors[key]=new Uint8ClampedArray(3*featureIds.length);const pickingColor=[];for(let i=0;if.properties.icon},getText:{type:"accessor",value:f=>f.properties.text},pointType:"circle",getRadius:{deprecatedFor:"getPointRadius"}};class GeoJsonLayer extends composite_layer.Z{initializeState(){this.state={layerProps:{},features:{}}}updateState({props:props,changeFlags:changeFlags}){if(!changeFlags.dataChanged)return;const{data:data}=this.props,binary=data&&"points"in data&&"polygons"in data&&"lines"in data;this.setState({binary:binary}),binary?this._updateStateBinary({props:props,changeFlags:changeFlags}):this._updateStateJSON({props:props,changeFlags:changeFlags})}_updateStateBinary({props:props,changeFlags:changeFlags}){const layerProps=createLayerPropsFromBinary(props.data,this.encodePickingColor);this.setState({layerProps:layerProps})}_updateStateJSON({props:props,changeFlags:changeFlags}){const features=function getGeojsonFeatures(geojson){if(Array.isArray(geojson))return geojson;switch(log.Z.assert(geojson.type,"GeoJSON does not have type"),geojson.type){case"Feature":return[geojson];case"FeatureCollection":return log.Z.assert(Array.isArray(geojson.features),"GeoJSON does not have features array"),geojson.features;default:return[{geometry:geojson}]}}(props.data),wrapFeature=this.getSubLayerRow.bind(this);let newFeatures={};const featuresDiff={};if(Array.isArray(changeFlags.dataChanged)){const oldFeatures=this.state.features;for(const key in oldFeatures)newFeatures[key]=oldFeatures[key].slice(),featuresDiff[key]=[];for(const dataRange of changeFlags.dataChanged){const partialFeatures=separateGeojsonFeatures(features,wrapFeature,dataRange);for(const key in oldFeatures)featuresDiff[key].push((0,utils.b)({data:newFeatures[key],getIndex:f=>f.__source.index,dataRange:dataRange,replace:partialFeatures[key]}))}}else newFeatures=separateGeojsonFeatures(features,wrapFeature);const layerProps=function createLayerPropsFromFeatures(features,featuresDiff){const layerProps={points:{},lines:{},polygons:{},polygonsOutline:{}},{pointFeatures:pointFeatures,lineFeatures:lineFeatures,polygonFeatures:polygonFeatures,polygonOutlineFeatures:polygonOutlineFeatures}=features;return layerProps.points.data=pointFeatures,layerProps.points._dataDiff=featuresDiff.pointFeatures&&(()=>featuresDiff.pointFeatures),layerProps.points.getPosition=getCoordinates,layerProps.lines.data=lineFeatures,layerProps.lines._dataDiff=featuresDiff.lineFeatures&&(()=>featuresDiff.lineFeatures),layerProps.lines.getPath=getCoordinates,layerProps.polygons.data=polygonFeatures,layerProps.polygons._dataDiff=featuresDiff.polygonFeatures&&(()=>featuresDiff.polygonFeatures),layerProps.polygons.getPolygon=getCoordinates,layerProps.polygonsOutline.data=polygonOutlineFeatures,layerProps.polygonsOutline._dataDiff=featuresDiff.polygonOutlineFeatures&&(()=>featuresDiff.polygonOutlineFeatures),layerProps.polygonsOutline.getPath=getCoordinates,layerProps}(newFeatures,featuresDiff);this.setState({features:newFeatures,featuresDiff:featuresDiff,layerProps:layerProps})}getPickingInfo(params){const info=super.getPickingInfo(params),{index:index,sourceLayer:sourceLayer}=info;return info.featureType=FEATURE_TYPES.find((ft=>sourceLayer.id.startsWith("".concat(this.id,"-").concat(ft,"-")))),index>=0&&sourceLayer.id.startsWith("".concat(this.id,"-points-text"))&&this.state.binary&&(info.index=this.props.data.points.globalFeatureIds.value[index]),info}_updateAutoHighlight(info){const pointLayerIdPrefix="".concat(this.id,"-points-"),sourceIsPoints="points"===info.featureType;for(const layer of this.getSubLayers())layer.id.startsWith(pointLayerIdPrefix)===sourceIsPoints&&layer.updateAutoHighlight(info)}_renderPolygonLayer(){const{extruded:extruded,wireframe:wireframe}=this.props,{layerProps:layerProps}=this.state,id="polygons-fill",PolygonFillLayer=this.shouldRenderSubLayer(id,layerProps.polygons.data)&&this.getSubLayerClass(id,POLYGON_LAYER.type);if(PolygonFillLayer){const forwardedProps=forwardProps(this,POLYGON_LAYER.props),useLineColor=extruded&&wireframe;return useLineColor||delete forwardedProps.getLineColor,forwardedProps.updateTriggers.lineColors=useLineColor,new PolygonFillLayer(forwardedProps,this.getSubLayerProps({id:id,updateTriggers:forwardedProps.updateTriggers}),layerProps.polygons)}return null}_renderLineLayers(){const{extruded:extruded,stroked:stroked}=this.props,{layerProps:layerProps}=this.state,PolygonStrokeLayer=!extruded&&stroked&&this.shouldRenderSubLayer("polygons-stroke",layerProps.polygonsOutline.data)&&this.getSubLayerClass("polygons-stroke",LINE_LAYER.type),LineStringsLayer=this.shouldRenderSubLayer("linestrings",layerProps.lines.data)&&this.getSubLayerClass("linestrings",LINE_LAYER.type);if(PolygonStrokeLayer||LineStringsLayer){const forwardedProps=forwardProps(this,LINE_LAYER.props);return[PolygonStrokeLayer&&new PolygonStrokeLayer(forwardedProps,this.getSubLayerProps({id:"polygons-stroke",updateTriggers:forwardedProps.updateTriggers}),layerProps.polygonsOutline),LineStringsLayer&&new LineStringsLayer(forwardedProps,this.getSubLayerProps({id:"linestrings",updateTriggers:forwardedProps.updateTriggers}),layerProps.lines)]}return null}_renderPointLayers(){const{pointType:pointType}=this.props,{layerProps:layerProps,binary:binary}=this.state;let{highlightedObjectIndex:highlightedObjectIndex}=this.props;!binary&&Number.isFinite(highlightedObjectIndex)&&(highlightedObjectIndex=layerProps.points.data.findIndex((d=>d.__source.index===highlightedObjectIndex)));const types=new Set(pointType.split("+")),pointLayers=[];for(const type of types){const id="points-".concat(type),PointLayerMapping=POINT_LAYER[type],PointsLayer=PointLayerMapping&&this.shouldRenderSubLayer(id,layerProps.points.data)&&this.getSubLayerClass(id,PointLayerMapping.type);if(PointsLayer){const forwardedProps=forwardProps(this,PointLayerMapping.props);let pointsLayerProps=layerProps.points;if("text"===type&&binary){const{instancePickingColors:instancePickingColors,...rest}=pointsLayerProps.data.attributes;pointsLayerProps={...pointsLayerProps,data:{...pointsLayerProps.data,attributes:rest}}}pointLayers.push(new PointsLayer(forwardedProps,this.getSubLayerProps({id:id,updateTriggers:forwardedProps.updateTriggers,highlightedObjectIndex:highlightedObjectIndex}),pointsLayerProps))}}return pointLayers}renderLayers(){const{extruded:extruded}=this.props,polygonFillLayer=this._renderPolygonLayer();return[!extruded&&polygonFillLayer,this._renderLineLayers(),this._renderPointLayers(),extruded&&polygonFillLayer]}getSubLayerAccessor(accessor){const{binary:binary}=this.state;return binary&&"function"==typeof accessor?(object,info)=>{const{data:data,index:index}=info,feature=function binaryToFeatureForAccesor(data,index){if(!data)return null;const featureIndex="startIndices"in data?data.startIndices[index]:index,geometryIndex=data.featureIds.value[featureIndex];return-1!==featureIndex?function getPropertiesForIndex(data,propertiesIndex,numericPropsIndex){const feature={properties:{...data.properties[propertiesIndex]}};for(const prop in data.numericProps)feature.properties[prop]=data.numericProps[prop].value[numericPropsIndex];return feature}(data,geometryIndex,featureIndex):null}(data,index);return accessor(feature,info)}:super.getSubLayerAccessor(accessor)}}(0,defineProperty.Z)(GeoJsonLayer,"layerName","GeoJsonLayer"),(0,defineProperty.Z)(GeoJsonLayer,"defaultProps",defaultProps)},"./node_modules/@deck.gl/layers/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ArcLayer:function(){return _arc_layer_arc_layer__WEBPACK_IMPORTED_MODULE_0__.Z},BitmapLayer:function(){return _bitmap_layer_bitmap_layer__WEBPACK_IMPORTED_MODULE_1__.Z},ColumnLayer:function(){return _column_layer_column_layer__WEBPACK_IMPORTED_MODULE_6__.Z},GeoJsonLayer:function(){return _geojson_layer_geojson_layer__WEBPACK_IMPORTED_MODULE_10__.Z},GridCellLayer:function(){return _column_layer_grid_cell_layer__WEBPACK_IMPORTED_MODULE_7__.Z},IconLayer:function(){return _icon_layer_icon_layer__WEBPACK_IMPORTED_MODULE_2__.Z},LineLayer:function(){return _line_layer_line_layer__WEBPACK_IMPORTED_MODULE_3__.Z},PathLayer:function(){return _path_layer_path_layer__WEBPACK_IMPORTED_MODULE_8__.Z},PointCloudLayer:function(){return _point_cloud_layer_point_cloud_layer__WEBPACK_IMPORTED_MODULE_4__.Z},PolygonLayer:function(){return _polygon_layer_polygon_layer__WEBPACK_IMPORTED_MODULE_9__.Z},ScatterplotLayer:function(){return _scatterplot_layer_scatterplot_layer__WEBPACK_IMPORTED_MODULE_5__.Z},SolidPolygonLayer:function(){return _solid_polygon_layer_solid_polygon_layer__WEBPACK_IMPORTED_MODULE_12__.Z},TextLayer:function(){return _text_layer_text_layer__WEBPACK_IMPORTED_MODULE_11__.Z},_MultiIconLayer:function(){return _text_layer_multi_icon_layer_multi_icon_layer__WEBPACK_IMPORTED_MODULE_13__.Z},_TextBackgroundLayer:function(){return _text_layer_text_background_layer_text_background_layer__WEBPACK_IMPORTED_MODULE_14__.Z}});var _arc_layer_arc_layer__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/arc-layer/arc-layer.js"),_bitmap_layer_bitmap_layer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/bitmap-layer/bitmap-layer.js"),_icon_layer_icon_layer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/icon-layer/icon-layer.js"),_line_layer_line_layer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/line-layer/line-layer.js"),_point_cloud_layer_point_cloud_layer__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/point-cloud-layer/point-cloud-layer.js"),_scatterplot_layer_scatterplot_layer__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/scatterplot-layer/scatterplot-layer.js"),_column_layer_column_layer__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/column-layer/column-layer.js"),_column_layer_grid_cell_layer__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/column-layer/grid-cell-layer.js"),_path_layer_path_layer__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js"),_polygon_layer_polygon_layer__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/polygon-layer/polygon-layer.js"),_geojson_layer_geojson_layer__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/geojson-layer/geojson-layer.js"),_text_layer_text_layer__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/text-layer.js"),_solid_polygon_layer_solid_polygon_layer__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/solid-polygon-layer.js"),_text_layer_multi_icon_layer_multi_icon_layer__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/multi-icon-layer/multi-icon-layer.js"),_text_layer_text_background_layer_text_background_layer__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/text-background-layer/text-background-layer.js")},"./node_modules/@deck.gl/layers/dist/esm/line-layer/line-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return LineLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const defaultProps={getSourcePosition:{type:"accessor",value:x=>x.sourcePosition},getTargetPosition:{type:"accessor",value:x=>x.targetPosition},getColor:{type:"accessor",value:[0,0,0,255]},getWidth:{type:"accessor",value:1},widthUnits:"pixels",widthScale:{type:"number",value:1,min:0},widthMinPixels:{type:"number",value:0,min:0},widthMaxPixels:{type:"number",value:Number.MAX_SAFE_INTEGER,min:0}};class LineLayer extends lib_layer.Z{getBounds(){var _this$getAttributeMan;return null===(_this$getAttributeMan=this.getAttributeManager())||void 0===_this$getAttributeMan?void 0:_this$getAttributeMan.getBounds(["instanceSourcePositions","instanceTargetPositions"])}getShaders(){return super.getShaders({vs:"#define SHADER_NAME line-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 instanceSourcePositions;\nattribute vec3 instanceTargetPositions;\nattribute vec3 instanceSourcePositions64Low;\nattribute vec3 instanceTargetPositions64Low;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute float instanceWidths;\n\nuniform float opacity;\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float useShortestPath;\nuniform int widthUnits;\n\nvarying vec4 vColor;\nvarying vec2 uv;\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction, float width) {\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n return dir_screenspace * offset_direction * width / 2.0;\n}\n\nvec3 splitLine(vec3 a, vec3 b, float x) {\n float t = (x - a.x) / (b.x - a.x);\n return vec3(x, mix(a.yz, b.yz, t));\n}\n\nvoid main(void) {\n geometry.worldPosition = instanceSourcePositions;\n geometry.worldPositionAlt = instanceTargetPositions;\n\n vec3 source_world = instanceSourcePositions;\n vec3 target_world = instanceTargetPositions;\n vec3 source_world_64low = instanceSourcePositions64Low;\n vec3 target_world_64low = instanceTargetPositions64Low;\n\n if (useShortestPath > 0.5 || useShortestPath < -0.5) {\n source_world.x = mod(source_world.x + 180., 360.0) - 180.;\n target_world.x = mod(target_world.x + 180., 360.0) - 180.;\n float deltaLng = target_world.x - source_world.x;\n\n if (deltaLng * useShortestPath > 180.) {\n source_world.x += 360. * useShortestPath;\n source_world = splitLine(source_world, target_world, 180. * useShortestPath);\n source_world_64low = vec3(0.0);\n } else if (deltaLng * useShortestPath < -180.) {\n target_world.x += 360. * useShortestPath;\n target_world = splitLine(source_world, target_world, 180. * useShortestPath);\n target_world_64low = vec3(0.0);\n } else if (useShortestPath < 0.) {\n gl_Position = vec4(0.);\n return;\n }\n }\n vec4 source_commonspace;\n vec4 target_commonspace;\n vec4 source = project_position_to_clipspace(source_world, source_world_64low, vec3(0.), source_commonspace);\n vec4 target = project_position_to_clipspace(target_world, target_world_64low, vec3(0.), target_commonspace);\n float segmentIndex = positions.x;\n vec4 p = mix(source, target, segmentIndex);\n geometry.position = mix(source_commonspace, target_commonspace, segmentIndex);\n uv = positions.xy;\n geometry.uv = uv;\n geometry.pickingColor = instancePickingColors;\n float widthPixels = clamp(\n project_size_to_pixel(instanceWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels\n );\n vec3 offset = vec3(\n getExtrusionOffset(target.xy - source.xy, positions.y, widthPixels),\n 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n DECKGL_FILTER_GL_POSITION(p, geometry);\n gl_Position = p + vec4(project_pixel_size_to_clipspace(offset.xy), 0.0, 0.0);\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME line-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}get wrapLongitude(){return!1}initializeState(){this.getAttributeManager().addInstanced({instanceSourcePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getSourcePosition"},instanceTargetPositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getTargetPosition"},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getColor",defaultValue:[0,0,0,255]},instanceWidths:{size:1,transition:!0,accessor:"getWidth",defaultValue:1}})}updateState(params){if(super.updateState(params),params.changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}}draw({uniforms:uniforms}){const{widthUnits:widthUnits,widthScale:widthScale,widthMinPixels:widthMinPixels,widthMaxPixels:widthMaxPixels,wrapLongitude:wrapLongitude}=this.props;this.state.model.setUniforms(uniforms).setUniforms({widthUnits:constants.iI[widthUnits],widthScale:widthScale,widthMinPixels:widthMinPixels,widthMaxPixels:widthMaxPixels,useShortestPath:wrapLongitude?1:0}).draw(),wrapLongitude&&this.state.model.setUniforms({useShortestPath:-1}).draw()}_getModel(gl){return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:5,attributes:{positions:new Float32Array([0,-1,0,0,1,0,1,-1,0,1,1,0])}}),isInstanced:!0})}}(0,defineProperty.Z)(LineLayer,"layerName","LineLayer"),(0,defineProperty.Z)(LineLayer,"defaultProps",defaultProps)},"./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return PathLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),tesselator=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/tesselator.js"),esm=__webpack_require__("./node_modules/@math.gl/polygon/dist/esm/index.js");class PathTesselator extends tesselator.Z{constructor(opts){super({...opts,attributes:{positions:{size:3,padding:18,initialize:!0,type:opts.fp64?Float64Array:Float32Array},segmentTypes:{size:1,type:Uint8ClampedArray}}})}get(attributeName){return this.attributes[attributeName]}getGeometryFromBuffer(buffer){return this.normalize?super.getGeometryFromBuffer(buffer):null}normalizeGeometry(path){return this.normalize?function normalizePath(path,size,gridResolution,wrapLongitude){let flatPath;if(Array.isArray(path[0])){const length=path.length*size;flatPath=new Array(length);for(let i=0;i=path.length&&(index+=1-path.length/positionSize);const i=index*positionSize;return target[0]=path[i],target[1]=path[i+1],target[2]=3===positionSize&&path[i+2]||0,target}isClosed(path){if(!this.normalize)return Boolean(this.opts.loop);const{positionSize:positionSize}=this,lastPointIndex=path.length-positionSize;return path[0]===path[lastPointIndex]&&path[1]===path[lastPointIndex+1]&&(2===positionSize||path[2]===path[lastPointIndex+2])}}function isCut(path){return Array.isArray(path[0])}const DEFAULT_COLOR=[0,0,0,255],defaultProps={widthUnits:"meters",widthScale:{type:"number",min:0,value:1},widthMinPixels:{type:"number",min:0,value:0},widthMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},jointRounded:!1,capRounded:!1,miterLimit:{type:"number",min:0,value:4},billboard:!1,_pathType:null,getPath:{type:"accessor",value:object=>object.path},getColor:{type:"accessor",value:DEFAULT_COLOR},getWidth:{type:"accessor",value:1},rounded:{deprecatedFor:["jointRounded","capRounded"]}},ATTRIBUTE_TRANSITION={enter:(value,chunk)=>chunk.length?chunk.subarray(chunk.length-value.length):value};class PathLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){return super.getShaders({vs:"#define SHADER_NAME path-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute float instanceTypes;\nattribute vec3 instanceStartPositions;\nattribute vec3 instanceEndPositions;\nattribute vec3 instanceLeftPositions;\nattribute vec3 instanceRightPositions;\nattribute vec3 instanceLeftPositions64Low;\nattribute vec3 instanceStartPositions64Low;\nattribute vec3 instanceEndPositions64Low;\nattribute vec3 instanceRightPositions64Low;\nattribute float instanceStrokeWidths;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float jointType;\nuniform float capType;\nuniform float miterLimit;\nuniform bool billboard;\nuniform int widthUnits;\n\nuniform float opacity;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vPathPosition;\nvarying float vPathLength;\nvarying float vJointType;\n\nconst float EPSILON = 0.001;\nconst vec3 ZERO_OFFSET = vec3(0.0);\n\nfloat flipIfTrue(bool flag) {\n return -(float(flag) * 2. - 1.);\n}\nvec3 getLineJoinOffset(\n vec3 prevPoint, vec3 currPoint, vec3 nextPoint,\n vec2 width\n) {\n bool isEnd = positions.x > 0.0;\n float sideOfPath = positions.y;\n float isJoint = float(sideOfPath == 0.0);\n\n vec3 deltaA3 = (currPoint - prevPoint);\n vec3 deltaB3 = (nextPoint - currPoint);\n\n mat3 rotationMatrix;\n bool needsRotation = !billboard && project_needs_rotation(currPoint, rotationMatrix);\n if (needsRotation) {\n deltaA3 = deltaA3 * rotationMatrix;\n deltaB3 = deltaB3 * rotationMatrix;\n }\n vec2 deltaA = deltaA3.xy / width;\n vec2 deltaB = deltaB3.xy / width;\n\n float lenA = length(deltaA);\n float lenB = length(deltaB);\n\n vec2 dirA = lenA > 0. ? normalize(deltaA) : vec2(0.0, 0.0);\n vec2 dirB = lenB > 0. ? normalize(deltaB) : vec2(0.0, 0.0);\n\n vec2 perpA = vec2(-dirA.y, dirA.x);\n vec2 perpB = vec2(-dirB.y, dirB.x);\n vec2 tangent = dirA + dirB;\n tangent = length(tangent) > 0. ? normalize(tangent) : perpA;\n vec2 miterVec = vec2(-tangent.y, tangent.x);\n vec2 dir = isEnd ? dirA : dirB;\n vec2 perp = isEnd ? perpA : perpB;\n float L = isEnd ? lenA : lenB;\n float sinHalfA = abs(dot(miterVec, perp));\n float cosHalfA = abs(dot(dirA, miterVec));\n float turnDirection = flipIfTrue(dirA.x * dirB.y >= dirA.y * dirB.x);\n float cornerPosition = sideOfPath * turnDirection;\n\n float miterSize = 1.0 / max(sinHalfA, EPSILON);\n miterSize = mix(\n min(miterSize, max(lenA, lenB) / max(cosHalfA, EPSILON)),\n miterSize,\n step(0.0, cornerPosition)\n );\n\n vec2 offsetVec = mix(miterVec * miterSize, perp, step(0.5, cornerPosition))\n * (sideOfPath + isJoint * turnDirection);\n bool isStartCap = lenA == 0.0 || (!isEnd && (instanceTypes == 1.0 || instanceTypes == 3.0));\n bool isEndCap = lenB == 0.0 || (isEnd && (instanceTypes == 2.0 || instanceTypes == 3.0));\n bool isCap = isStartCap || isEndCap;\n if (isCap) {\n offsetVec = mix(perp * sideOfPath, dir * capType * 4.0 * flipIfTrue(isStartCap), isJoint);\n vJointType = capType;\n } else {\n vJointType = jointType;\n }\n vPathLength = L;\n vCornerOffset = offsetVec;\n vMiterLength = dot(vCornerOffset, miterVec * turnDirection);\n vMiterLength = isCap ? isJoint : vMiterLength;\n\n vec2 offsetFromStartOfPath = vCornerOffset + deltaA * float(isEnd);\n vPathPosition = vec2(\n dot(offsetFromStartOfPath, perp),\n dot(offsetFromStartOfPath, dir)\n );\n geometry.uv = vPathPosition;\n\n float isValid = step(instanceTypes, 3.5);\n vec3 offset = vec3(offsetVec * width * isValid, 0.0);\n\n if (needsRotation) {\n offset = rotationMatrix * offset;\n }\n return offset;\n}\nvoid clipLine(inout vec4 position, vec4 refPosition) {\n if (position.w < EPSILON) {\n float r = (EPSILON - refPosition.w) / (position.w - refPosition.w);\n position = refPosition + (position - refPosition) * r;\n }\n}\n\nvoid main() {\n geometry.pickingColor = instancePickingColors;\n\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n\n float isEnd = positions.x;\n\n vec3 prevPosition = mix(instanceLeftPositions, instanceStartPositions, isEnd);\n vec3 prevPosition64Low = mix(instanceLeftPositions64Low, instanceStartPositions64Low, isEnd);\n\n vec3 currPosition = mix(instanceStartPositions, instanceEndPositions, isEnd);\n vec3 currPosition64Low = mix(instanceStartPositions64Low, instanceEndPositions64Low, isEnd);\n\n vec3 nextPosition = mix(instanceEndPositions, instanceRightPositions, isEnd);\n vec3 nextPosition64Low = mix(instanceEndPositions64Low, instanceRightPositions64Low, isEnd);\n\n geometry.worldPosition = currPosition;\n vec2 widthPixels = vec2(clamp(\n project_size_to_pixel(instanceStrokeWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels) / 2.0);\n vec3 width;\n\n if (billboard) {\n vec4 prevPositionScreen = project_position_to_clipspace(prevPosition, prevPosition64Low, ZERO_OFFSET);\n vec4 currPositionScreen = project_position_to_clipspace(currPosition, currPosition64Low, ZERO_OFFSET, geometry.position);\n vec4 nextPositionScreen = project_position_to_clipspace(nextPosition, nextPosition64Low, ZERO_OFFSET);\n\n clipLine(prevPositionScreen, currPositionScreen);\n clipLine(nextPositionScreen, currPositionScreen);\n clipLine(currPositionScreen, mix(nextPositionScreen, prevPositionScreen, isEnd));\n\n width = vec3(widthPixels, 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec3 offset = getLineJoinOffset(\n prevPositionScreen.xyz / prevPositionScreen.w,\n currPositionScreen.xyz / currPositionScreen.w,\n nextPositionScreen.xyz / nextPositionScreen.w,\n project_pixel_size_to_clipspace(width.xy)\n );\n\n DECKGL_FILTER_GL_POSITION(currPositionScreen, geometry);\n gl_Position = vec4(currPositionScreen.xyz + offset * currPositionScreen.w, currPositionScreen.w);\n } else {\n prevPosition = project_position(prevPosition, prevPosition64Low);\n currPosition = project_position(currPosition, currPosition64Low);\n nextPosition = project_position(nextPosition, nextPosition64Low);\n\n width = vec3(project_pixel_size(widthPixels), 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec3 offset = getLineJoinOffset(prevPosition, currPosition, nextPosition, width.xy);\n geometry.position = vec4(currPosition + offset, 1.0);\n gl_Position = project_common_position_to_clipspace(geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n }\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME path-layer-fragment-shader\n\nprecision highp float;\n\nuniform float miterLimit;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vPathPosition;\nvarying float vPathLength;\nvarying float vJointType;\n\nvoid main(void) {\n geometry.uv = vPathPosition;\n\n if (vPathPosition.y < 0.0 || vPathPosition.y > vPathLength) {\n if (vJointType > 0.5 && length(vCornerOffset) > 1.0) {\n discard;\n }\n if (vJointType < 0.5 && vMiterLength > miterLimit + 1.0) {\n discard;\n }\n }\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}get wrapLongitude(){return!1}initializeState(){this.getAttributeManager().addInstanced({positions:{size:3,vertexOffset:1,type:5130,fp64:this.use64bitPositions(),transition:ATTRIBUTE_TRANSITION,accessor:"getPath",update:this.calculatePositions,noAlloc:true,shaderAttributes:{instanceLeftPositions:{vertexOffset:0},instanceStartPositions:{vertexOffset:1},instanceEndPositions:{vertexOffset:2},instanceRightPositions:{vertexOffset:3}}},instanceTypes:{size:1,type:5121,update:this.calculateSegmentTypes,noAlloc:true},instanceStrokeWidths:{size:1,accessor:"getWidth",transition:ATTRIBUTE_TRANSITION,defaultValue:1},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,accessor:"getColor",transition:ATTRIBUTE_TRANSITION,defaultValue:DEFAULT_COLOR},instancePickingColors:{size:3,type:5121,accessor:(object,{index:index,target:value})=>this.encodePickingColor(object&&object.__source?object.__source.index:index,value)}}),this.setState({pathTesselator:new PathTesselator({fp64:this.use64bitPositions()})})}updateState(params){super.updateState(params);const{props:props,changeFlags:changeFlags}=params,attributeManager=this.getAttributeManager();if(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getPath)){const{pathTesselator:pathTesselator}=this.state,buffers=props.data.attributes||{};pathTesselator.updateGeometry({data:props.data,geometryBuffer:buffers.getPath,buffers:buffers,normalize:!props._pathType,loop:"loop"===props._pathType,getGeometry:props.getPath,positionFormat:props.positionFormat,wrapLongitude:props.wrapLongitude,resolution:this.context.viewport.resolution,dataChanged:changeFlags.dataChanged}),this.setState({numInstances:pathTesselator.instanceCount,startIndices:pathTesselator.vertexStarts}),changeFlags.dataChanged||attributeManager.invalidateAll()}if(changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),attributeManager.invalidateAll()}}getPickingInfo(params){const info=super.getPickingInfo(params),{index:index}=info,{data:data}=this.props;return data[0]&&data[0].__source&&(info.object=data.find((d=>d.__source.index===index))),info}disablePickingIndex(objectIndex){const{data:data}=this.props;if(data[0]&&data[0].__source)for(let i=0;ix.position},getNormal:{type:"accessor",value:DEFAULT_NORMAL},getColor:{type:"accessor",value:DEFAULT_COLOR},material:!0,radiusPixels:{deprecatedFor:"pointSize"}};class PointCloudLayer extends lib_layer.Z{getShaders(){return super.getShaders({vs:"#define SHADER_NAME point-cloud-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 instanceNormals;\nattribute vec4 instanceColors;\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusPixels;\nuniform int sizeUnits;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.normal = project_normal(instanceNormals);\n unitPosition = positions.xy;\n geometry.uv = unitPosition;\n geometry.pickingColor = instancePickingColors;\n vec3 offset = vec3(positions.xy * project_size_to_pixel(radiusPixels, sizeUnits), 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n vec3 lightColor = lighting_getLightColor(instanceColors.rgb, project_uCameraPosition, geometry.position.xyz, geometry.normal);\n vColor = vec4(lightColor, instanceColors.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME point-cloud-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n geometry.uv = unitPosition;\n\n float distToCenter = length(unitPosition);\n\n if (distToCenter > 1.0) {\n discard;\n }\n\n gl_FragColor = vColor;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,phong_lighting.N,picking.Z]})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceNormals:{size:3,transition:!0,accessor:"getNormal",defaultValue:DEFAULT_NORMAL},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getColor",defaultValue:DEFAULT_COLOR}})}updateState(params){const{changeFlags:changeFlags,props:props}=params;if(super.updateState(params),changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}changeFlags.dataChanged&&function normalizeData(data){const{header:header,attributes:attributes}=data;header&&attributes&&(data.length=header.vertexCount,attributes.POSITION&&(attributes.instancePositions=attributes.POSITION),attributes.NORMAL&&(attributes.instanceNormals=attributes.NORMAL),attributes.COLOR_0&&(attributes.instanceColors=attributes.COLOR_0))}(props.data)}draw({uniforms:uniforms}){const{pointSize:pointSize,sizeUnits:sizeUnits}=this.props;this.state.model.setUniforms(uniforms).setUniforms({sizeUnits:constants.iI[sizeUnits],radiusPixels:pointSize}).draw()}_getModel(gl){const positions=[];for(let i=0;i<3;i++){const angle=i/3*Math.PI*2;positions.push(2*Math.cos(angle),2*Math.sin(angle),0)}return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:4,attributes:{positions:new Float32Array(positions)}}),isInstanced:!0})}}(0,defineProperty.Z)(PointCloudLayer,"layerName","PointCloudLayer"),(0,defineProperty.Z)(PointCloudLayer,"defaultProps",defaultProps)},"./node_modules/@deck.gl/layers/dist/esm/polygon-layer/polygon-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return PolygonLayer}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_deck_gl_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),_deck_gl_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),_solid_polygon_layer_solid_polygon_layer__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/solid-polygon-layer.js"),_path_layer_path_layer__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js"),_solid_polygon_layer_polygon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/polygon.js"),_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/utils.js");const defaultLineColor=[0,0,0,255],defaultProps={stroked:!0,filled:!0,extruded:!1,elevationScale:1,wireframe:!1,_normalize:!0,_windingOrder:"CW",lineWidthUnits:"meters",lineWidthScale:1,lineWidthMinPixels:0,lineWidthMaxPixels:Number.MAX_SAFE_INTEGER,lineJointRounded:!1,lineMiterLimit:4,getPolygon:{type:"accessor",value:f=>f.polygon},getFillColor:{type:"accessor",value:[0,0,0,255]},getLineColor:{type:"accessor",value:defaultLineColor},getLineWidth:{type:"accessor",value:1},getElevation:{type:"accessor",value:1e3},material:!0};class PolygonLayer extends _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__.Z{initializeState(){this.state={paths:[]},this.props.getLineDashArray&&_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__.Z.removed("getLineDashArray","PathStyleExtension")()}updateState({changeFlags:changeFlags}){const geometryChanged=changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getPolygon);if(geometryChanged&&Array.isArray(changeFlags.dataChanged)){const paths=this.state.paths.slice(),pathsDiff=changeFlags.dataChanged.map((dataRange=>(0,_utils__WEBPACK_IMPORTED_MODULE_2__.b)({data:paths,getIndex:p=>p.__source.index,dataRange:dataRange,replace:this._getPaths(dataRange)})));this.setState({paths:paths,pathsDiff:pathsDiff})}else geometryChanged&&this.setState({paths:this._getPaths(),pathsDiff:null})}_getPaths(dataRange={}){const{data:data,getPolygon:getPolygon,positionFormat:positionFormat,_normalize:_normalize}=this.props,paths=[],positionSize="XY"===positionFormat?2:3,{startRow:startRow,endRow:endRow}=dataRange,{iterable:iterable,objectInfo:objectInfo}=(0,_deck_gl_core__WEBPACK_IMPORTED_MODULE_3__.jB)(data,startRow,endRow);for(const object of iterable){objectInfo.index++;let polygon=getPolygon(object,objectInfo);_normalize&&(polygon=_solid_polygon_layer_polygon__WEBPACK_IMPORTED_MODULE_4__.Fv(polygon,positionSize));const{holeIndices:holeIndices}=polygon,positions=polygon.positions||polygon;if(holeIndices)for(let i=0;i<=holeIndices.length;i++){const path=positions.slice(holeIndices[i-1]||0,holeIndices[i]||positions.length);paths.push(this.getSubLayerRow({path:path},object,objectInfo.index))}else paths.push(this.getSubLayerRow({path:positions},object,objectInfo.index))}return paths}renderLayers(){const{data:data,_dataDiff:_dataDiff,stroked:stroked,filled:filled,extruded:extruded,wireframe:wireframe,_normalize:_normalize,_windingOrder:_windingOrder,elevationScale:elevationScale,transitions:transitions,positionFormat:positionFormat}=this.props,{lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels,lineJointRounded:lineJointRounded,lineMiterLimit:lineMiterLimit,lineDashJustified:lineDashJustified}=this.props,{getFillColor:getFillColor,getLineColor:getLineColor,getLineWidth:getLineWidth,getLineDashArray:getLineDashArray,getElevation:getElevation,getPolygon:getPolygon,updateTriggers:updateTriggers,material:material}=this.props,{paths:paths,pathsDiff:pathsDiff}=this.state,FillLayer=this.getSubLayerClass("fill",_solid_polygon_layer_solid_polygon_layer__WEBPACK_IMPORTED_MODULE_5__.Z),StrokeLayer=this.getSubLayerClass("stroke",_path_layer_path_layer__WEBPACK_IMPORTED_MODULE_6__.Z),polygonLayer=this.shouldRenderSubLayer("fill",paths)&&new FillLayer({_dataDiff:_dataDiff,extruded:extruded,elevationScale:elevationScale,filled:filled,wireframe:wireframe,_normalize:_normalize,_windingOrder:_windingOrder,getElevation:getElevation,getFillColor:getFillColor,getLineColor:extruded&&wireframe?getLineColor:defaultLineColor,material:material,transitions:transitions},this.getSubLayerProps({id:"fill",updateTriggers:updateTriggers&&{getPolygon:updateTriggers.getPolygon,getElevation:updateTriggers.getElevation,getFillColor:updateTriggers.getFillColor,lineColors:extruded&&wireframe,getLineColor:updateTriggers.getLineColor}}),{data:data,positionFormat:positionFormat,getPolygon:getPolygon});return[!extruded&&polygonLayer,!extruded&&stroked&&this.shouldRenderSubLayer("stroke",paths)&&new StrokeLayer({_dataDiff:pathsDiff&&(()=>pathsDiff),widthUnits:lineWidthUnits,widthScale:lineWidthScale,widthMinPixels:lineWidthMinPixels,widthMaxPixels:lineWidthMaxPixels,jointRounded:lineJointRounded,miterLimit:lineMiterLimit,dashJustified:lineDashJustified,_pathType:"loop",transitions:transitions&&{getWidth:transitions.getLineWidth,getColor:transitions.getLineColor,getPath:transitions.getPolygon},getColor:this.getSubLayerAccessor(getLineColor),getWidth:this.getSubLayerAccessor(getLineWidth),getDashArray:this.getSubLayerAccessor(getLineDashArray)},this.getSubLayerProps({id:"stroke",updateTriggers:updateTriggers&&{getWidth:updateTriggers.getLineWidth,getColor:updateTriggers.getLineColor,getDashArray:updateTriggers.getLineDashArray}}),{data:paths,positionFormat:positionFormat,getPath:x=>x.path}),extruded&&polygonLayer]}}(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__.Z)(PolygonLayer,"layerName","PolygonLayer"),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__.Z)(PolygonLayer,"defaultProps",defaultProps)},"./node_modules/@deck.gl/layers/dist/esm/scatterplot-layer/scatterplot-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ScatterplotLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const DEFAULT_COLOR=[0,0,0,255],defaultProps={radiusUnits:"meters",radiusScale:{type:"number",min:0,value:1},radiusMinPixels:{type:"number",min:0,value:0},radiusMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},lineWidthUnits:"meters",lineWidthScale:{type:"number",min:0,value:1},lineWidthMinPixels:{type:"number",min:0,value:0},lineWidthMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},stroked:!1,filled:!0,billboard:!1,antialiasing:!0,getPosition:{type:"accessor",value:x=>x.position},getRadius:{type:"accessor",value:1},getFillColor:{type:"accessor",value:DEFAULT_COLOR},getLineColor:{type:"accessor",value:DEFAULT_COLOR},getLineWidth:{type:"accessor",value:1},strokeWidth:{deprecatedFor:"getLineWidth"},outline:{deprecatedFor:"stroked"},getColor:{deprecatedFor:["getFillColor","getLineColor"]}};class ScatterplotLayer extends lib_layer.Z{getShaders(){return super.getShaders({vs:"#define SHADER_NAME scatterplot-layer-vertex-shader\n\nattribute vec3 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute float instanceRadius;\nattribute float instanceLineWidths;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusScale;\nuniform float radiusMinPixels;\nuniform float radiusMaxPixels;\nuniform float lineWidthScale;\nuniform float lineWidthMinPixels;\nuniform float lineWidthMaxPixels;\nuniform float stroked;\nuniform bool filled;\nuniform bool antialiasing;\nuniform bool billboard;\nuniform int radiusUnits;\nuniform int lineWidthUnits;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n outerRadiusPixels = clamp(\n project_size_to_pixel(radiusScale * instanceRadius, radiusUnits),\n radiusMinPixels, radiusMaxPixels\n );\n float lineWidthPixels = clamp(\n project_size_to_pixel(lineWidthScale * instanceLineWidths, lineWidthUnits),\n lineWidthMinPixels, lineWidthMaxPixels\n );\n outerRadiusPixels += stroked * lineWidthPixels / 2.0;\n float edgePadding = antialiasing ? (outerRadiusPixels + SMOOTH_EDGE_RADIUS) / outerRadiusPixels : 1.0;\n unitPosition = edgePadding * positions.xy;\n geometry.uv = unitPosition;\n geometry.pickingColor = instancePickingColors;\n\n innerUnitRadius = 1.0 - stroked * lineWidthPixels / outerRadiusPixels;\n \n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n vec3 offset = edgePadding * positions * outerRadiusPixels;\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n } else {\n vec3 offset = edgePadding * positions * project_pixel_size(outerRadiusPixels);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset, geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n }\n vFillColor = vec4(instanceFillColors.rgb, instanceFillColors.a * opacity);\n DECKGL_FILTER_COLOR(vFillColor, geometry);\n vLineColor = vec4(instanceLineColors.rgb, instanceLineColors.a * opacity);\n DECKGL_FILTER_COLOR(vLineColor, geometry);\n}\n",fs:"#define SHADER_NAME scatterplot-layer-fragment-shader\n\nprecision highp float;\n\nuniform bool filled;\nuniform float stroked;\nuniform bool antialiasing;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\nvoid main(void) {\n geometry.uv = unitPosition;\n\n float distToCenter = length(unitPosition) * outerRadiusPixels;\n float inCircle = antialiasing ? \n smoothedge(distToCenter, outerRadiusPixels) : \n step(distToCenter, outerRadiusPixels);\n\n if (inCircle == 0.0) {\n discard;\n }\n\n if (stroked > 0.5) {\n float isLine = antialiasing ? \n smoothedge(innerUnitRadius * outerRadiusPixels, distToCenter) :\n step(innerUnitRadius * outerRadiusPixels, distToCenter);\n\n if (filled) {\n gl_FragColor = mix(vFillColor, vLineColor, isLine);\n } else {\n if (isLine == 0.0) {\n discard;\n }\n gl_FragColor = vec4(vLineColor.rgb, vLineColor.a * isLine);\n }\n } else if (!filled) {\n discard;\n } else {\n gl_FragColor = vFillColor;\n }\n\n gl_FragColor.a *= inCircle;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceRadius:{size:1,transition:!0,accessor:"getRadius",defaultValue:1},instanceFillColors:{size:this.props.colorFormat.length,transition:!0,normalized:!0,type:5121,accessor:"getFillColor",defaultValue:[0,0,0,255]},instanceLineColors:{size:this.props.colorFormat.length,transition:!0,normalized:!0,type:5121,accessor:"getLineColor",defaultValue:[0,0,0,255]},instanceLineWidths:{size:1,transition:!0,accessor:"getLineWidth",defaultValue:1}})}updateState(params){if(super.updateState(params),params.changeFlags.extensionsChanged){var _this$state$model;const{gl:gl}=this.context;null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),this.state.model=this._getModel(gl),this.getAttributeManager().invalidateAll()}}draw({uniforms:uniforms}){const{radiusUnits:radiusUnits,radiusScale:radiusScale,radiusMinPixels:radiusMinPixels,radiusMaxPixels:radiusMaxPixels,stroked:stroked,filled:filled,billboard:billboard,antialiasing:antialiasing,lineWidthUnits:lineWidthUnits,lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels}=this.props;this.state.model.setUniforms(uniforms).setUniforms({stroked:stroked?1:0,filled:filled,billboard:billboard,antialiasing:antialiasing,radiusUnits:constants.iI[radiusUnits],radiusScale:radiusScale,radiusMinPixels:radiusMinPixels,radiusMaxPixels:radiusMaxPixels,lineWidthUnits:constants.iI[lineWidthUnits],lineWidthScale:lineWidthScale,lineWidthMinPixels:lineWidthMinPixels,lineWidthMaxPixels:lineWidthMaxPixels}).draw()}_getModel(gl){return new model.Z(gl,{...this.getShaders(),id:this.props.id,geometry:new geometry.Z({drawMode:6,vertexCount:4,attributes:{positions:{size:3,value:new Float32Array([-1,-1,0,1,-1,0,1,1,0,-1,1,0])}}}),isInstanced:!0})}}(0,defineProperty.Z)(ScatterplotLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(ScatterplotLayer,"layerName","ScatterplotLayer")},"./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/polygon.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Fv:function(){return normalize},Gd:function(){return getHoleIndices},k8:function(){return getPositions},mD:function(){return getSurfaceIndices}});var earcut__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/earcut/src/earcut.js"),earcut__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(earcut__WEBPACK_IMPORTED_MODULE_0__),_math_gl_polygon__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/polygon/dist/esm/index.js");const OUTER_POLYGON_WINDING=_math_gl_polygon__WEBPACK_IMPORTED_MODULE_1__.wG.CLOCKWISE,HOLE_POLYGON_WINDING=_math_gl_polygon__WEBPACK_IMPORTED_MODULE_1__.wG.COUNTER_CLOCKWISE,windingOptions={isClosed:!0};function getPositions(polygon){return"positions"in polygon?polygon.positions:polygon}function getHoleIndices(polygon){return"holeIndices"in polygon?polygon.holeIndices:null}function copyNestedRing(target,targetStartIndex,simplePolygon,size,windingDirection){let targetIndex=targetStartIndex;const len=simplePolygon.length;for(let i=0;i=1&&polygon[0].length>=2&&Number.isFinite(polygon[0][0])}(polygon)){let targetIndex=0;for(const[polygonIndex,simplePolygon]of polygon.entries())targetIndex=copyNestedRing(positions,targetIndex,simplePolygon,positionSize,0===polygonIndex?OUTER_POLYGON_WINDING:HOLE_POLYGON_WINDING),holeIndices.push(targetIndex);return holeIndices.pop(),{positions:positions,holeIndices:holeIndices}}return copyNestedRing(positions,0,polygon,positionSize,OUTER_POLYGON_WINDING),positions}function getPlaneArea(positions,xIndex,yIndex){const numVerts=positions.length/3;let area=0;for(let i=0;ipositionIndex/positionSize)));let positions=getPositions(polygon);const is3d=full3d&&3===positionSize;if(preproject){const n=positions.length;positions=positions.slice();const p=[];for(let i=0;ixzArea&&xyArea>yzArea||(xzArea>yzArea?(preproject||(positions=positions.slice()),permutePositions(positions,0,2,1)):(preproject||(positions=positions.slice()),permutePositions(positions,2,0,1)))}return earcut__WEBPACK_IMPORTED_MODULE_0___default()(positions,holeIndices,positionSize)}},"./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/solid-polygon-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return SolidPolygonLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),phong_lighting=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),features=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),webgl_features_table=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),solid_polygon_layer_polygon=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/solid-polygon-layer/polygon.js"),tesselator=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/tesselator.js"),esm=__webpack_require__("./node_modules/@math.gl/polygon/dist/esm/index.js");class PolygonTesselator extends tesselator.Z{constructor(opts){const{fp64:fp64,IndexType:IndexType=Uint32Array}=opts;super({...opts,attributes:{positions:{size:3,type:fp64?Float64Array:Float32Array},vertexValid:{type:Uint8ClampedArray,size:1},indices:{type:IndexType,size:1}}})}get(attributeName){const{attributes:attributes}=this;return"indices"===attributeName?attributes.indices&&attributes.indices.subarray(0,this.vertexCount):attributes[attributeName]}updateGeometry(opts){super.updateGeometry(opts);const externalIndices=this.buffers.indices;if(externalIndices)this.vertexCount=(externalIndices.value||externalIndices).length;else if(this.data&&!this.getGeometry)throw new Error("missing indices buffer")}normalizeGeometry(polygon){if(this.normalize){const normalizedPolygon=solid_polygon_layer_polygon.Fv(polygon,this.positionSize);return this.opts.resolution?(0,esm.WZ)(solid_polygon_layer_polygon.k8(normalizedPolygon),solid_polygon_layer_polygon.Gd(normalizedPolygon),{size:this.positionSize,gridResolution:this.opts.resolution,edgeTypes:!0}):this.opts.wrapLongitude?(0,esm.GU)(solid_polygon_layer_polygon.k8(normalizedPolygon),solid_polygon_layer_polygon.Gd(normalizedPolygon),{size:this.positionSize,maxLatitude:86,edgeTypes:!0}):normalizedPolygon}return polygon}getGeometrySize(polygon){if(isCut(polygon)){let size=0;for(const subPolygon of polygon)size+=this.getGeometrySize(subPolygon);return size}return solid_polygon_layer_polygon.k8(polygon).length/this.positionSize}getGeometryFromBuffer(buffer){return this.normalize||!this.buffers.indices?super.getGeometryFromBuffer(buffer):null}updateGeometryAttributes(polygon,context){if(polygon&&isCut(polygon))for(const subPolygon of polygon){const geometrySize=this.getGeometrySize(subPolygon);context.geometrySize=geometrySize,this.updateGeometryAttributes(subPolygon,context),context.vertexStart+=geometrySize,context.indexStart=this.indexStarts[context.geometryIndex+1]}else this._updateIndices(polygon,context),this._updatePositions(polygon,context),this._updateVertexValid(polygon,context)}_updateIndices(polygon,{geometryIndex:geometryIndex,vertexStart:offset,indexStart:indexStart}){const{attributes:attributes,indexStarts:indexStarts,typedArrayManager:typedArrayManager}=this;let target=attributes.indices;if(!target||!polygon)return;let i=indexStart;const indices=solid_polygon_layer_polygon.mD(polygon,this.positionSize,this.opts.preproject,this.opts.full3d);target=typedArrayManager.allocate(target,indexStart+indices.length,{copy:!0});for(let j=0;j2?polygonPositions[j*positionSize+2]:0;positions[3*i]=x,positions[3*i+1]=y,positions[3*i+2]=z}}_updateVertexValid(polygon,{vertexStart:vertexStart,geometrySize:geometrySize}){const{positionSize:positionSize}=this,vertexValid=this.attributes.vertexValid,holeIndices=polygon&&solid_polygon_layer_polygon.Gd(polygon);if(polygon&&polygon.edgeTypes?vertexValid.set(polygon.edgeTypes,vertexStart):vertexValid.fill(1,vertexStart,vertexStart+geometrySize),holeIndices)for(let j=0;j0&&!Number.isFinite(polygon[0])}var solid_polygon_layer_vertex_main_glsl="\nattribute vec2 vertexPositions;\nattribute float vertexValid;\n\nuniform bool extruded;\nuniform bool isWireframe;\nuniform float elevationScale;\nuniform float opacity;\n\nvarying vec4 vColor;\n\nstruct PolygonProps {\n vec4 fillColors;\n vec4 lineColors;\n vec3 positions;\n vec3 nextPositions;\n vec3 pickingColors;\n vec3 positions64Low;\n vec3 nextPositions64Low;\n float elevations;\n};\n\nvec3 project_offset_normal(vec3 vector) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSETS) {\n return normalize(vector * project_uCommonUnitsPerWorldUnit);\n }\n return project_normal(vector);\n}\n\nvoid calculatePosition(PolygonProps props) {\n#ifdef IS_SIDE_VERTEX\n if(vertexValid < 0.5){\n gl_Position = vec4(0.);\n return;\n }\n#endif\n\n vec3 pos;\n vec3 pos64Low;\n vec3 normal;\n vec4 colors = isWireframe ? props.lineColors : props.fillColors;\n\n geometry.worldPosition = props.positions;\n geometry.worldPositionAlt = props.nextPositions;\n geometry.pickingColor = props.pickingColors;\n\n#ifdef IS_SIDE_VERTEX\n pos = mix(props.positions, props.nextPositions, vertexPositions.x);\n pos64Low = mix(props.positions64Low, props.nextPositions64Low, vertexPositions.x);\n#else\n pos = props.positions;\n pos64Low = props.positions64Low;\n#endif\n\n if (extruded) {\n pos.z += props.elevations * vertexPositions.y * elevationScale;\n }\n gl_Position = project_position_to_clipspace(pos, pos64Low, vec3(0.), geometry.position);\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n if (extruded) {\n #ifdef IS_SIDE_VERTEX\n normal = vec3(\n props.positions.y - props.nextPositions.y + (props.positions64Low.y - props.nextPositions64Low.y),\n props.nextPositions.x - props.positions.x + (props.nextPositions64Low.x - props.positions64Low.x),\n 0.0);\n normal = project_offset_normal(normal);\n #else\n normal = project_normal(vec3(0.0, 0.0, 1.0));\n #endif\n geometry.normal = normal;\n vec3 lightColor = lighting_getLightColor(colors.rgb, project_uCameraPosition, geometry.position.xyz, normal);\n vColor = vec4(lightColor, colors.a * opacity);\n } else {\n vColor = vec4(colors.rgb, colors.a * opacity);\n }\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",solid_polygon_layer_vertex_top_glsl="#define SHADER_NAME solid-polygon-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 positions64Low;\nattribute float elevations;\nattribute vec4 fillColors;\nattribute vec4 lineColors;\nattribute vec3 pickingColors;\n\n".concat(solid_polygon_layer_vertex_main_glsl,"\n\nvoid main(void) {\n PolygonProps props;\n\n props.positions = positions;\n props.positions64Low = positions64Low;\n props.elevations = elevations;\n props.fillColors = fillColors;\n props.lineColors = lineColors;\n props.pickingColors = pickingColors;\n\n calculatePosition(props);\n}\n"),solid_polygon_layer_vertex_side_glsl="#define SHADER_NAME solid-polygon-layer-vertex-shader-side\n#define IS_SIDE_VERTEX\n\n\nattribute vec3 instancePositions;\nattribute vec3 nextPositions;\nattribute vec3 instancePositions64Low;\nattribute vec3 nextPositions64Low;\nattribute float instanceElevations;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\n".concat(solid_polygon_layer_vertex_main_glsl,"\n\nvoid main(void) {\n PolygonProps props;\n\n #if RING_WINDING_ORDER_CW == 1\n props.positions = instancePositions;\n props.positions64Low = instancePositions64Low;\n props.nextPositions = nextPositions;\n props.nextPositions64Low = nextPositions64Low;\n #else\n props.positions = nextPositions;\n props.positions64Low = nextPositions64Low;\n props.nextPositions = instancePositions;\n props.nextPositions64Low = instancePositions64Low;\n #endif\n props.elevations = instanceElevations;\n props.fillColors = instanceFillColors;\n props.lineColors = instanceLineColors;\n props.pickingColors = instancePickingColors;\n\n calculatePosition(props);\n}\n");const DEFAULT_COLOR=[0,0,0,255],defaultProps={filled:!0,extruded:!1,wireframe:!1,_normalize:!0,_windingOrder:"CW",_full3d:!1,elevationScale:{type:"number",min:0,value:1},getPolygon:{type:"accessor",value:f=>f.polygon},getElevation:{type:"accessor",value:1e3},getFillColor:{type:"accessor",value:DEFAULT_COLOR},getLineColor:{type:"accessor",value:DEFAULT_COLOR},material:!0},ATTRIBUTE_TRANSITION={enter:(value,chunk)=>chunk.length?chunk.subarray(chunk.length-value.length):value};class SolidPolygonLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(type){return super.getShaders({vs:"top"===type?solid_polygon_layer_vertex_top_glsl:solid_polygon_layer_vertex_side_glsl,fs:"#define SHADER_NAME solid-polygon-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",defines:{RING_WINDING_ORDER_CW:this.props._normalize||"CCW"!==this.props._windingOrder?1:0},modules:[project32.Z,phong_lighting.N,picking.Z]})}get wrapLongitude(){return!1}initializeState(){const{gl:gl,viewport:viewport}=this.context;let{coordinateSystem:coordinateSystem}=this.props;const{_full3d:_full3d}=this.props;let preproject;viewport.isGeospatial&&coordinateSystem===constants.COORDINATE_SYSTEM.DEFAULT&&(coordinateSystem=constants.COORDINATE_SYSTEM.LNGLAT),coordinateSystem===constants.COORDINATE_SYSTEM.LNGLAT&&(preproject=_full3d?viewport.projectPosition.bind(viewport):viewport.projectFlat.bind(viewport)),this.setState({numInstances:0,polygonTesselator:new PolygonTesselator({preproject:preproject,fp64:this.use64bitPositions(),IndexType:!gl||(0,features.ag)(gl,webgl_features_table.h.ELEMENT_INDEX_UINT32)?Uint32Array:Uint16Array})});const attributeManager=this.getAttributeManager();attributeManager.remove(["instancePickingColors"]),attributeManager.add({indices:{size:1,isIndexed:!0,update:this.calculateIndices,noAlloc:true},positions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:ATTRIBUTE_TRANSITION,accessor:"getPolygon",update:this.calculatePositions,noAlloc:true,shaderAttributes:{positions:{vertexOffset:0,divisor:0},instancePositions:{vertexOffset:0,divisor:1},nextPositions:{vertexOffset:1,divisor:1}}},vertexValid:{size:1,divisor:1,type:5121,update:this.calculateVertexValid,noAlloc:true},elevations:{size:1,transition:ATTRIBUTE_TRANSITION,accessor:"getElevation",shaderAttributes:{elevations:{divisor:0},instanceElevations:{divisor:1}}},fillColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:ATTRIBUTE_TRANSITION,accessor:"getFillColor",defaultValue:DEFAULT_COLOR,shaderAttributes:{fillColors:{divisor:0},instanceFillColors:{divisor:1}}},lineColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:ATTRIBUTE_TRANSITION,accessor:"getLineColor",defaultValue:DEFAULT_COLOR,shaderAttributes:{lineColors:{divisor:0},instanceLineColors:{divisor:1}}},pickingColors:{size:3,type:5121,accessor:(object,{index:index,target:value})=>this.encodePickingColor(object&&object.__source?object.__source.index:index,value),shaderAttributes:{pickingColors:{divisor:0},instancePickingColors:{divisor:1}}}})}getPickingInfo(params){const info=super.getPickingInfo(params),{index:index}=info,{data:data}=this.props;return data[0]&&data[0].__source&&(info.object=data.find((d=>d.__source.index===index))),info}disablePickingIndex(objectIndex){const{data:data}=this.props;if(data[0]&&data[0].__source)for(let i=0;imodel.delete())),this.setState(this._getModels(this.context.gl)),attributeManager.invalidateAll())}updateGeometry({props:props,oldProps:oldProps,changeFlags:changeFlags}){if(changeFlags.dataChanged||changeFlags.updateTriggersChanged&&(changeFlags.updateTriggersChanged.all||changeFlags.updateTriggersChanged.getPolygon)){const{polygonTesselator:polygonTesselator}=this.state,buffers=props.data.attributes||{};polygonTesselator.updateGeometry({data:props.data,normalize:props._normalize,geometryBuffer:buffers.getPolygon,buffers:buffers,getGeometry:props.getPolygon,positionFormat:props.positionFormat,wrapLongitude:props.wrapLongitude,resolution:this.context.viewport.resolution,fp64:this.use64bitPositions(),dataChanged:changeFlags.dataChanged,full3d:props._full3d}),this.setState({numInstances:polygonTesselator.instanceCount,startIndices:polygonTesselator.vertexStarts}),changeFlags.dataChanged||this.getAttributeManager().invalidateAll()}}_getModels(gl){const{id:id,filled:filled,extruded:extruded}=this.props;let topModel,sideModel;if(filled){const shaders=this.getShaders("top");shaders.defines.NON_INSTANCED_MODEL=1,topModel=new model.Z(gl,{...shaders,id:"".concat(id,"-top"),drawMode:4,attributes:{vertexPositions:new Float32Array([0,1])},uniforms:{isWireframe:!1,isSideVertex:!1},vertexCount:0,isIndexed:!0})}return extruded&&(sideModel=new model.Z(gl,{...this.getShaders("side"),id:"".concat(id,"-side"),geometry:new geometry.Z({drawMode:1,vertexCount:4,attributes:{vertexPositions:{size:2,value:new Float32Array([1,0,0,0,0,1,1,1])}}}),instanceCount:0,isInstanced:1}),sideModel.userData.excludeAttributes={indices:!0}),{models:[sideModel,topModel].filter(Boolean),topModel:topModel,sideModel:sideModel}}calculateIndices(attribute){const{polygonTesselator:polygonTesselator}=this.state;attribute.startIndices=polygonTesselator.indexStarts,attribute.value=polygonTesselator.get("indices")}calculatePositions(attribute){const{polygonTesselator:polygonTesselator}=this.state;attribute.startIndices=polygonTesselator.vertexStarts,attribute.value=polygonTesselator.get("positions")}calculateVertexValid(attribute){attribute.value=this.state.polygonTesselator.get("vertexValid")}}(0,defineProperty.Z)(SolidPolygonLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(SolidPolygonLayer,"layerName","SolidPolygonLayer")},"./node_modules/@deck.gl/layers/dist/esm/utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function replaceInRange({data:data,getIndex:getIndex,dataRange:dataRange,replace:replace}){const{startRow:startRow=0,endRow:endRow=1/0}=dataRange,count=data.length;let replaceStart=count,replaceEnd=count;for(let i=0;ii&&row>=startRow&&(replaceStart=i),row>=endRow){replaceEnd=i;break}}let index=replaceStart;const endChunk=replaceEnd-replaceStart!==replace.length?data.slice(replaceEnd):void 0;for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:{};const{id:id}=props;this.id=id||(0,utils.hQ)(this.constructor.name),this.display=!0,this.position=new vector3.Z,this.rotation=new vector3.Z,this.scale=new vector3.Z(1,1,1),this.matrix=new matrix4.Z,this.userData={},this.props={},this._setScenegraphNodeProps(props)}delete(){}setProps(props){return this._setScenegraphNodeProps(props),this}toString(){return"{type: ScenegraphNode, id: ".concat(this.id,")}")}getBounds(){return null}setPosition(position){return(0,assert.h)(3===position.length,"setPosition requires vector argument"),this.position=position,this}setRotation(rotation){return(0,assert.h)(3===rotation.length,"setRotation requires vector argument"),this.rotation=rotation,this}setScale(scale){return(0,assert.h)(3===scale.length,"setScale requires vector argument"),this.scale=scale,this}setMatrix(matrix){!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?this.matrix.copy(matrix):this.matrix=matrix}setMatrixComponents(_ref){let{position:position,rotation:rotation,scale:scale,update:update=!0}=_ref;return position&&this.setPosition(position),rotation&&this.setRotation(rotation),scale&&this.setScale(scale),update&&this.updateMatrix(),this}updateMatrix(){const pos=this.position,rot=this.rotation,scale=this.scale;return this.matrix.identity(),this.matrix.translate(pos),this.matrix.rotateXYZ(rot),this.matrix.scale(scale),this}update(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{position:position,rotation:rotation,scale:scale}=options;return position&&this.setPosition(position),rotation&&this.setRotation(rotation),scale&&this.setScale(scale),this.updateMatrix(),this}getCoordinateUniforms(viewMatrix,modelMatrix){(0,assert.h)(viewMatrix),modelMatrix=modelMatrix||this.matrix;const worldMatrix=new matrix4.Z(viewMatrix).multiplyRight(modelMatrix),worldInverse=worldMatrix.invert(),worldInverseTranspose=worldInverse.transpose();return{viewMatrix:viewMatrix,modelMatrix:modelMatrix,objectMatrix:modelMatrix,worldMatrix:worldMatrix,worldInverseMatrix:worldInverse,worldInverseTransposeMatrix:worldInverseTranspose}}_setScenegraphNodeProps(props){"display"in props&&(this.display=props.display),"position"in props&&this.setPosition(props.position),"rotation"in props&&this.setRotation(props.rotation),"scale"in props&&this.setScale(props.scale),"matrix"in props&&this.setMatrix(props.matrix),Object.assign(this.props,props)}}var buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),classes_accessor=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/accessor.js");class GroupNode extends ScenegraphNode{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};props=Array.isArray(props)?{children:props}:props;const{children:children=[]}=props;esm.cM.assert(children.every((child=>child instanceof ScenegraphNode)),"every child must an instance of ScenegraphNode"),super(props),this.children=children}add(){for(var _len=arguments.length,children=new Array(_len),_key=0;_key<_len;_key++)children[_key]=arguments[_key];for(const child of children)Array.isArray(child)?this.add(...child):this.children.push(child);return this}remove(child){const children=this.children,indexOf=children.indexOf(child);return indexOf>-1&&children.splice(indexOf,1),this}removeAll(){return this.children=[],this}delete(){this.children.forEach((child=>child.delete())),this.removeAll(),super.delete()}getBounds(){const result=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];return this.traverse(((node,_ref)=>{let{worldMatrix:worldMatrix}=_ref;const bounds=node.getBounds();if(!bounds)return;const[min,max]=bounds,center=new vector3.Z(min).add(max).divide([2,2,2]);worldMatrix.transformAsPoint(center,center);const halfSize=new vector3.Z(max).subtract(min).divide([2,2,2]);worldMatrix.transformAsVector(halfSize,halfSize);for(let v=0;v<8;v++){const position=new vector3.Z(1&v?-1:1,2&v?-1:1,4&v?-1:1).multiply(halfSize).add(center);for(let i=0;i<3;i++)result[0][i]=Math.min(result[0][i],position[i]),result[1][i]=Math.max(result[1][i],position[i])}})),Number.isFinite(result[0][0])?result:null}traverse(visitor){let{worldMatrix:worldMatrix=new matrix4.Z}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const modelMatrix=new matrix4.Z(worldMatrix).multiplyRight(this.matrix);for(const child of this.children)child instanceof GroupNode?child.traverse(visitor,{worldMatrix:modelMatrix}):visitor(child,{worldMatrix:modelMatrix})}}var quaternion=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/quaternion.js");const ATTRIBUTE_TYPE_TO_COMPONENTS={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array};function accessorToJsArray(accessor){if(!accessor._animation){const ArrayType=ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY[accessor.componentType],components=ATTRIBUTE_TYPE_TO_COMPONENTS[accessor.type],length=components*accessor.count,{buffer:buffer,byteOffset:byteOffset}=accessor.bufferView.data,array=new ArrayType(buffer,byteOffset+(accessor.byteOffset||0),length);if(1===components)accessor._animation=Array.from(array);else{const slicedArray=[];for(let i=0;it>=animationTime)),previousIndex=Math.max(0,nextIndex-1);if(!Array.isArray(target[path]))switch(path){case"translation":target[path]=[0,0,0];break;case"rotation":target[path]=[0,0,0,1];break;case"scale":target[path]=[1,1,1];break;default:esm.cM.warn("Bad animation path ".concat(path))()}(0,assert.h)(target[path].length===output[previousIndex].length);const previousTime=input[previousIndex],nextTime=input[nextIndex];switch(interpolation){case"STEP":!function stepInterpolate(target,path,value){for(let i=0;ipreviousTime){const ratio=(animationTime-previousTime)/(nextTime-previousTime);!function linearInterpolate(target,path,start,stop,ratio){if("rotation"===path){gltf_animator_quaternion.slerp({start:start,target:stop,ratio:ratio});for(let i=0;ipreviousTime){const ratio=(animationTime-previousTime)/(nextTime-previousTime),tDiff=nextTime-previousTime;!function cubicsplineInterpolate(target,path,_ref){let{p0:p0,outTangent0:outTangent0,inTangent1:inTangent1,p1:p1,tDiff:tDiff,ratio:t}=_ref;for(let i=0;i{let{sampler:sampler,target:target,path:path}=_ref3;interpolate(time,sampler,target,path),function applyTranslationRotationScale(gltfNode,node){if(node.matrix.identity(),gltfNode.translation&&node.matrix.translate(gltfNode.translation),gltfNode.rotation){const rotationMatrix=helperMatrix.fromQuaternion(gltfNode.rotation);node.matrix.multiplyRight(rotationMatrix)}gltfNode.scale&&node.matrix.scale(gltfNode.scale)}(target,target._node)}))}}class GLTFAnimator{constructor(gltf){this.animations=gltf.animations.map(((animation,index)=>{const name=animation.name||"Animation-".concat(index),samplers=animation.samplers.map((_ref4=>{let{input:input,interpolation:interpolation="LINEAR",output:output}=_ref4;return{input:accessorToJsArray(gltf.accessors[input]),interpolation:interpolation,output:accessorToJsArray(gltf.accessors[output])}})),channels=animation.channels.map((_ref5=>{let{sampler:sampler,target:target}=_ref5;return{sampler:samplers[sampler],target:gltf.nodes[target.node],path:target.path}}));return new GLTFAnimation({name:name,channels:channels})}))}animate(time){this.setTime(time)}setTime(time){this.animations.forEach((animation=>animation.animate(time)))}getAnimations(){return this.animations}}var model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js");class ModelNode extends ScenegraphNode{constructor(gl){let props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(props),this.onBeforeRender=null,this.AfterRender=null,gl instanceof model.Z?(this.model=gl,this._setModelNodeProps(props)):this.model=new model.Z(gl,props),this.bounds=null,this.managedResources=props.managedResources||[]}setProps(props){return super.setProps(props),this._setModelNodeProps(props),this}getBounds(){return this.bounds}delete(){this.model&&(this.model.delete(),this.model=null),this.managedResources.forEach((resource=>resource.delete())),this.managedResources=[]}draw(){return this.model.draw(...arguments)}setUniforms(){return this.model.setUniforms(...arguments),this}setAttributes(){return this.model.setAttributes(...arguments),this}updateModuleSettings(){return this.model.updateModuleSettings(...arguments),this}_setModelNodeProps(props){this.model.setProps(props)}}var gltf_material_parser=__webpack_require__("./node_modules/@luma.gl/experimental/dist/esm/gltf/gltf-material-parser.js");function addVersionToShader(gl,source){return(0,esm.D0)(gl)?"#version 300 es\n".concat(source):source}const gltf_instantiator_ATTRIBUTE_TYPE_TO_COMPONENTS={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},DEFAULT_OPTIONS={modelOptions:{},pbrDebug:!1,imageBasedLightingEnvironment:null,lights:!0,useTangents:!1};class GLTFInstantiator{constructor(gl){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=gl,this.options=Object.assign({},DEFAULT_OPTIONS,options)}instantiate(gltf){this.gltf=gltf;return(gltf.scenes||[]).map((scene=>this.createScene(scene)))}createAnimator(){return Array.isArray(this.gltf.animations)?new GLTFAnimator(this.gltf):null}createScene(gltfScene){const nodes=(gltfScene.nodes||[]).map((node=>this.createNode(node)));return new GroupNode({id:gltfScene.name||gltfScene.id,children:nodes})}createNode(gltfNode){if(!gltfNode._node){const children=(gltfNode.children||[]).map((child=>this.createNode(child)));gltfNode.mesh&&children.push(this.createMesh(gltfNode.mesh));const node=new GroupNode({id:gltfNode.name||gltfNode.id,children:children});if(gltfNode.matrix)node.setMatrix(gltfNode.matrix);else{if(node.matrix.identity(),gltfNode.translation&&node.matrix.translate(gltfNode.translation),gltfNode.rotation){const rotationMatrix=(new matrix4.Z).fromQuaternion(gltfNode.rotation);node.matrix.multiplyRight(rotationMatrix)}gltfNode.scale&&node.matrix.scale(gltfNode.scale)}gltfNode._node=node}return gltfNode._node}createMesh(gltfMesh){if(!gltfMesh._mesh){const primitives=(gltfMesh.primitives||[]).map(((gltfPrimitive,i)=>this.createPrimitive(gltfPrimitive,i,gltfMesh))),mesh=new GroupNode({id:gltfMesh.name||gltfMesh.id,children:primitives});gltfMesh._mesh=mesh}return gltfMesh._mesh}getVertexCount(attributes){esm.cM.warn("getVertexCount() not found")()}createPrimitive(gltfPrimitive,i,gltfMesh){const model=function createGLTFModel(gl,options){const{id:id,drawMode:drawMode,vertexCount:vertexCount,attributes:attributes,modelOptions:modelOptions}=options,materialParser=new gltf_material_parser.Z(gl,options);esm.cM.info(4,"createGLTFModel defines: ",materialParser.defines)();const managedResources=[];managedResources.push(...materialParser.generatedTextures),managedResources.push(...Object.values(attributes).map((attribute=>attribute.buffer)));const model=new ModelNode(gl,{id:id,drawMode:drawMode,vertexCount:vertexCount,modules:[pbr.b],parameters:materialParser.parameters,vs:addVersionToShader(gl,"\n#if (__VERSION__ < 300)\n #define _attr attribute\n#else\n #define _attr in\n#endif\n\n _attr vec4 POSITION;\n\n #ifdef HAS_NORMALS\n _attr vec4 NORMAL;\n #endif\n\n #ifdef HAS_TANGENTS\n _attr vec4 TANGENT;\n #endif\n\n #ifdef HAS_UV\n _attr vec2 TEXCOORD_0;\n #endif\n\n void main(void) {\n vec4 _NORMAL = vec4(0.);\n vec4 _TANGENT = vec4(0.);\n vec2 _TEXCOORD_0 = vec2(0.);\n\n #ifdef HAS_NORMALS\n _NORMAL = NORMAL;\n #endif\n\n #ifdef HAS_TANGENTS\n _TANGENT = TANGENT;\n #endif\n\n #ifdef HAS_UV\n _TEXCOORD_0 = TEXCOORD_0;\n #endif\n\n pbr_setPositionNormalTangentUV(POSITION, _NORMAL, _TANGENT, _TEXCOORD_0);\n gl_Position = u_MVPMatrix * POSITION;\n }\n"),fs:addVersionToShader(gl,"\n#if (__VERSION__ < 300)\n #define fragmentColor gl_FragColor\n#else\n out vec4 fragmentColor;\n#endif\n\n void main(void) {\n fragmentColor = pbr_filterColor(vec4(0));\n }\n"),managedResources:managedResources,...modelOptions,defines:{...materialParser.defines,...modelOptions.defines}});return model.setProps({attributes:attributes}),model.setUniforms(materialParser.uniforms),model}(this.gl,Object.assign({id:gltfPrimitive.name||"".concat(gltfMesh.name||gltfMesh.id,"-primitive-").concat(i),drawMode:gltfPrimitive.mode||4,vertexCount:gltfPrimitive.indices?gltfPrimitive.indices.count:this.getVertexCount(gltfPrimitive.attributes),attributes:this.createAttributes(gltfPrimitive.attributes,gltfPrimitive.indices),material:gltfPrimitive.material},this.options));return model.bounds=[gltfPrimitive.attributes.POSITION.min,gltfPrimitive.attributes.POSITION.max],model}createAttributes(attributes,indices){const loadedAttributes={};return Object.keys(attributes).forEach((attrName=>{loadedAttributes[attrName]=this.createAccessor(attributes[attrName],this.createBuffer(attributes[attrName],this.gl.ARRAY_BUFFER))})),indices&&(loadedAttributes.indices=this.createAccessor(indices,this.createBuffer(indices,this.gl.ELEMENT_ARRAY_BUFFER))),esm.cM.info(4,"glTF Attributes",{attributes:attributes,indices:indices,generated:loadedAttributes})(),loadedAttributes}createBuffer(attribute,target){attribute.bufferView||(attribute.bufferView={});const{bufferView:bufferView}=attribute;return bufferView.lumaBuffers||(bufferView.lumaBuffers={}),bufferView.lumaBuffers[target]||(bufferView.lumaBuffers[target]=new buffer.Z(this.gl,{id:"from-".concat(bufferView.id),data:bufferView.data||attribute.value,target:target})),bufferView.lumaBuffers[target]}createAccessor(accessor,buffer){return new classes_accessor.Z({buffer:buffer,offset:accessor.byteOffset||0,stride:accessor.bufferView.byteStride||0,type:accessor.componentType,size:gltf_instantiator_ATTRIBUTE_TYPE_TO_COMPONENTS[accessor.type]})}createSampler(gltfSampler){return gltfSampler}needsPOT(){return!1}}var gltf_loader=__webpack_require__("./node_modules/@loaders.gl/gltf/dist/esm/gltf-loader.js");async function waitForGLTFAssets(gltfObjects){const remaining=[];return gltfObjects.scenes.forEach((scene=>{scene.traverse((model=>{Object.values(model.model.getUniforms()).forEach((uniform=>{!1===uniform.loaded&&remaining.push(uniform)}))}))})),await async function waitWhileCondition(condition){for(;condition();)await new Promise((resolve=>requestAnimationFrame(resolve)))}((()=>remaining.some((uniform=>!uniform.loaded))))}var matrix=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/utils/matrix.js");const DEFAULT_COLOR=[255,255,255,255],defaultProps={scenegraph:{type:"object",value:null,async:!0},getScene:gltf=>gltf&&gltf.scenes?"object"==typeof gltf.scene?gltf.scene:gltf.scenes[gltf.scene||0]:gltf,getAnimator:scenegraph=>scenegraph&&scenegraph.animator,_animations:null,sizeScale:{type:"number",value:1,min:0},sizeMinPixels:{type:"number",min:0,value:0},sizeMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},getPosition:{type:"accessor",value:x=>x.position},getColor:{type:"accessor",value:DEFAULT_COLOR},_lighting:"flat",_imageBasedLightingEnvironment:null,getOrientation:{type:"accessor",value:[0,0,0]},getScale:{type:"accessor",value:[1,1,1]},getTranslation:{type:"accessor",value:[0,0,0]},getTransformMatrix:{type:"accessor",value:[]},loaders:[gltf_loader.E]};class ScenegraphLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){const modules=[project32.Z,picking.Z];return"pbr"===this.props._lighting&&modules.push(pbr.b),super.getShaders({vs:"#version 300 es\nin vec3 instancePositions;\nin vec3 instancePositions64Low;\nin vec4 instanceColors;\nin vec3 instancePickingColors;\nin mat3 instanceModelMatrix;\nin vec3 instanceTranslation;\nuniform float sizeScale;\nuniform float sizeMinPixels;\nuniform float sizeMaxPixels;\nuniform mat4 sceneModelMatrix;\nuniform bool composeModelMatrix;\nin vec4 POSITION;\n\n#ifdef HAS_UV\n in vec2 TEXCOORD_0;\n#endif\n\n#ifdef MODULE_PBR\n #ifdef HAS_NORMALS\n in vec4 NORMAL;\n #endif\n#endif\nout vec4 vColor;\n#ifndef MODULE_PBR\n #ifdef HAS_UV\n out vec2 vTEXCOORD_0;\n #endif\n#endif\nvoid main(void) {\n #if defined(HAS_UV) && !defined(MODULE_PBR)\n vTEXCOORD_0 = TEXCOORD_0;\n geometry.uv = vTEXCOORD_0;\n #endif\n\n geometry.worldPosition = instancePositions;\n geometry.pickingColor = instancePickingColors;\n\n vec3 normal = vec3(0.0, 0.0, 1.0);\n #ifdef MODULE_PBR\n #ifdef HAS_NORMALS\n normal = instanceModelMatrix * (sceneModelMatrix * vec4(NORMAL.xyz, 0.0)).xyz;\n #endif\n #endif\n\n float originalSize = project_size_to_pixel(sizeScale);\n float clampedSize = clamp(originalSize, sizeMinPixels, sizeMaxPixels);\n\n vec3 pos = (instanceModelMatrix * (sceneModelMatrix * POSITION).xyz) * sizeScale * (clampedSize / originalSize) + instanceTranslation;\n if(composeModelMatrix) {\n DECKGL_FILTER_SIZE(pos, geometry);\n geometry.normal = project_normal(normal);\n geometry.worldPosition += pos;\n gl_Position = project_position_to_clipspace(pos + instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n }\n else {\n pos = project_size(pos);\n DECKGL_FILTER_SIZE(pos, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, pos, geometry.position);\n geometry.normal = project_normal(normal);\n }\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n #ifdef MODULE_PBR\n pbr_vPosition = geometry.position.xyz;\n #ifdef HAS_NORMALS\n pbr_vNormal = geometry.normal;\n #endif\n\n #ifdef HAS_UV\n pbr_vUV = TEXCOORD_0;\n #else\n pbr_vUV = vec2(0., 0.);\n #endif\n geometry.uv = pbr_vUV;\n #endif\n\n vColor = instanceColors;\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#version 300 es\nuniform float opacity;\nin vec4 vColor;\n\nout vec4 fragmentColor;\n#ifndef MODULE_PBR\n #if defined(HAS_UV) && defined(HAS_BASECOLORMAP)\n in vec2 vTEXCOORD_0;\n uniform sampler2D u_BaseColorSampler;\n #endif\n#endif\n\nvoid main(void) {\n #ifdef MODULE_PBR\n fragmentColor = vColor * pbr_filterColor(vec4(0));\n geometry.uv = pbr_vUV;\n #else\n #if defined(HAS_UV) && defined(HAS_BASECOLORMAP)\n fragmentColor = vColor * texture2D(u_BaseColorSampler, vTEXCOORD_0);\n geometry.uv = vTEXCOORD_0;\n #else\n fragmentColor = vColor;\n #endif\n #endif\n\n fragmentColor.a *= opacity;\n DECKGL_FILTER_COLOR(fragmentColor, geometry);\n}\n",modules:modules})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),accessor:"getPosition",transition:!0},instanceColors:{type:5121,size:this.props.colorFormat.length,accessor:"getColor",normalized:!0,defaultValue:DEFAULT_COLOR,transition:!0},instanceModelMatrix:matrix.P})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps}=params;props.scenegraph!==oldProps.scenegraph?this._updateScenegraph():props._animations!==oldProps._animations&&this._applyAnimationsProp(this.state.scenegraph,this.state.animator,props._animations)}finalizeState(context){super.finalizeState(context),this._deleteScenegraph()}get isLoaded(){var _this$state;return(null===(_this$state=this.state)||void 0===_this$state?void 0:_this$state.scenegraph)&&super.isLoaded}_updateScenegraph(){const props=this.props,{gl:gl}=this.context;let scenegraphData=null;if(props.scenegraph instanceof ScenegraphNode)scenegraphData={scenes:[props.scenegraph]};else if(props.scenegraph&&!props.scenegraph.gltf){const gltf=props.scenegraph,gltfObjects=function createGLTFObjects(gl,gltf,options){const instantiator=new GLTFInstantiator(gl,options);return{scenes:instantiator.instantiate(gltf),animator:instantiator.createAnimator()}}(gl,gltf,this._getModelOptions());scenegraphData={gltf:gltf,...gltfObjects},waitForGLTFAssets(gltfObjects).then((()=>this.setNeedsRedraw()))}else props.scenegraph&&(log.Z.deprecated("ScenegraphLayer.props.scenegraph","Use GLTFLoader instead of GLTFScenegraphLoader")(),scenegraphData=props.scenegraph);const options={layer:this,gl:gl},scenegraph=props.getScene(scenegraphData,options),animator=props.getAnimator(scenegraphData,options);scenegraph instanceof ScenegraphNode?(this._deleteScenegraph(),this._applyAllAttributes(scenegraph),this._applyAnimationsProp(scenegraph,animator,props._animations),this.setState({scenegraph:scenegraph,animator:animator})):null!==scenegraph&&log.Z.warn("invalid scenegraph:",scenegraph)()}_applyAllAttributes(scenegraph){if(this.state.attributesAvailable){const allAttributes=this.getAttributeManager().getAttributes();scenegraph.traverse((model=>{this._setModelAttributes(model.model,allAttributes)}))}}_applyAnimationsProp(scenegraph,animator,animationsProp){if(!scenegraph||!animator||!animationsProp)return;const animations=animator.getAnimations();Object.keys(animationsProp).sort().forEach((key=>{const value=animationsProp[key];if("*"===key)animations.forEach((animation=>{Object.assign(animation,value)}));else if(Number.isFinite(Number(key))){const number=Number(key);number>=0&&numbername===key));findResult?Object.assign(findResult,value):log.Z.warn("animation ".concat(key," not found"))()}}))}_deleteScenegraph(){const{scenegraph:scenegraph}=this.state;scenegraph instanceof ScenegraphNode&&scenegraph.delete()}_getModelOptions(){const{_imageBasedLightingEnvironment:_imageBasedLightingEnvironment}=this.props;let env=null;return _imageBasedLightingEnvironment&&(env="function"==typeof _imageBasedLightingEnvironment?_imageBasedLightingEnvironment({gl:this.context.gl,layer:this}):_imageBasedLightingEnvironment),{gl:this.context.gl,waitForFullLoad:!0,imageBasedLightingEnvironment:env,modelOptions:{isInstanced:!0,transpileToGLSL100:!(0,esm.D0)(this.context.gl),...this.getShaders()},useTangents:!1}}updateAttributes(changedAttributes){this.setState({attributesAvailable:!0}),this.state.scenegraph&&this.state.scenegraph.traverse((model=>{this._setModelAttributes(model.model,changedAttributes)}))}draw({moduleParameters:moduleParameters=null,parameters:parameters={},context:context}){if(!this.state.scenegraph)return;this.props._animations&&this.state.animator&&(this.state.animator.animate(context.timeline.getTime()),this.setNeedsRedraw());const{viewport:viewport}=this.context,{sizeScale:sizeScale,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels,opacity:opacity,coordinateSystem:coordinateSystem}=this.props,numInstances=this.getNumInstances();this.state.scenegraph.traverse(((model,{worldMatrix:worldMatrix})=>{model.model.setInstanceCount(numInstances),model.updateModuleSettings(moduleParameters),model.draw({parameters:parameters,uniforms:{sizeScale:sizeScale,opacity:opacity,sizeMinPixels:sizeMinPixels,sizeMaxPixels:sizeMaxPixels,composeModelMatrix:(0,matrix.X)(viewport,coordinateSystem),sceneModelMatrix:worldMatrix,u_Camera:model.model.getUniforms().project_uCameraPosition}})}))}}(0,defineProperty.Z)(ScenegraphLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(ScenegraphLayer,"layerName","ScenegraphLayer")},"./node_modules/@deck.gl/mesh-layers/dist/esm/simple-mesh-layer/simple-mesh-layer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return SimpleMeshLayer}});var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),log=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/log.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),phong_lighting=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),lib_model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),features=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),webgl_features_table=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),matrix=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/utils/matrix.js"),mesh_utils=__webpack_require__("./node_modules/@loaders.gl/schema/dist/esm/category/mesh/mesh-utils.js");function validateGeometryAttributes(attributes,useMeshColors){(attributes.COLOR_0||attributes.colors)&&useMeshColors||(attributes.colors={constant:!0,value:new Float32Array([1,1,1])}),log.Z.assert(attributes.positions||attributes.POSITION,'no "postions" or "POSITION" attribute in mesh')}function getGeometry(data,useMeshColors){if(data.attributes)return validateGeometryAttributes(data.attributes,useMeshColors),data instanceof geometry.Z?data:new geometry.Z(data);if(data.positions||data.POSITION)return validateGeometryAttributes(data,useMeshColors),new geometry.Z({attributes:data});throw Error("Invalid mesh")}const defaultProps={mesh:{type:"object",value:null,async:!0},texture:{type:"image",value:null,async:!0},sizeScale:{type:"number",value:1,min:0},_useMeshColors:{type:"boolean",value:!1},_instanced:!0,wireframe:!1,material:!0,getPosition:{type:"accessor",value:x=>x.position},getColor:{type:"accessor",value:[0,0,0,255]},getOrientation:{type:"accessor",value:[0,0,0]},getScale:{type:"accessor",value:[1,1,1]},getTranslation:{type:"accessor",value:[0,0,0]},getTransformMatrix:{type:"accessor",value:[]},textureParameters:{type:"object",ignore:!0}};class SimpleMeshLayer extends lib_layer.Z{constructor(...args){super(...args),(0,defineProperty.Z)(this,"state",void 0)}getShaders(){const transpileToGLSL100=!(0,esm.D0)(this.context.gl),defines={};return(0,features.U6)(this.context.gl,webgl_features_table.h.GLSL_DERIVATIVES)&&(defines.DERIVATIVES_AVAILABLE=1),super.getShaders({vs:"#version 300 es\n#define SHADER_NAME simple-mesh-layer-vs\nuniform float sizeScale;\nuniform bool composeModelMatrix;\nin vec3 positions;\nin vec3 normals;\nin vec3 colors;\nin vec2 texCoords;\nin vec3 instancePositions;\nin vec3 instancePositions64Low;\nin vec4 instanceColors;\nin vec3 instancePickingColors;\nin mat3 instanceModelMatrix;\nin vec3 instanceTranslation;\nout vec2 vTexCoord;\nout vec3 cameraPosition;\nout vec3 normals_commonspace;\nout vec4 position_commonspace;\nout vec4 vColor;\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.uv = texCoords;\n geometry.pickingColor = instancePickingColors;\n\n vTexCoord = texCoords;\n cameraPosition = project_uCameraPosition;\n vColor = vec4(colors * instanceColors.rgb, instanceColors.a);\n\n vec3 pos = (instanceModelMatrix * positions) * sizeScale + instanceTranslation;\n\n if (composeModelMatrix) {\n DECKGL_FILTER_SIZE(pos, geometry);\n normals_commonspace = project_normal(instanceModelMatrix * normals);\n geometry.worldPosition += pos;\n gl_Position = project_position_to_clipspace(pos + instancePositions, instancePositions64Low, vec3(0.0), position_commonspace);\n geometry.position = position_commonspace;\n }\n else {\n pos = project_size(pos);\n DECKGL_FILTER_SIZE(pos, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, pos, position_commonspace);\n geometry.position = position_commonspace;\n normals_commonspace = project_normal(instanceModelMatrix * normals);\n }\n\n geometry.normal = normals_commonspace;\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#version 300 es\n#define SHADER_NAME simple-mesh-layer-fs\n\nprecision highp float;\n\nuniform bool hasTexture;\nuniform sampler2D sampler;\nuniform bool flatShading;\nuniform float opacity;\n\nin vec2 vTexCoord;\nin vec3 cameraPosition;\nin vec3 normals_commonspace;\nin vec4 position_commonspace;\nin vec4 vColor;\n\nout vec4 fragColor;\n\nvoid main(void) {\n geometry.uv = vTexCoord;\n\n vec3 normal;\n if (flatShading) {\n#ifdef DERIVATIVES_AVAILABLE\n normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n#else\n normal = vec3(0.0, 0.0, 1.0);\n#endif\n } else {\n normal = normals_commonspace;\n }\n\n vec4 color = hasTexture ? texture(sampler, vTexCoord) : vColor;\n DECKGL_FILTER_COLOR(color, geometry);\n\n vec3 lightColor = lighting_getLightColor(color.rgb, cameraPosition, position_commonspace.xyz, normal);\n fragColor = vec4(lightColor, color.a * opacity);\n}\n",modules:[project32.Z,phong_lighting.s,picking.Z],transpileToGLSL100:transpileToGLSL100,defines:defines})}getBounds(){var _mesh$header;if(this.props._instanced)return super.getBounds();let result=this.state.positionBounds;if(result)return result;const{mesh:mesh}=this.props;if(!mesh)return null;if(result=null===(_mesh$header=mesh.header)||void 0===_mesh$header?void 0:_mesh$header.boundingBox,!result){const{attributes:attributes}=getGeometry(mesh,this.props._useMeshColors);attributes.POSITION=attributes.POSITION||attributes.positions,result=(0,mesh_utils.v)(attributes)}return this.state.positionBounds=result,result}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{transition:!0,type:5130,fp64:this.use64bitPositions(),size:3,accessor:"getPosition"},instanceColors:{type:5121,transition:!0,size:this.props.colorFormat.length,normalized:!0,accessor:"getColor",defaultValue:[0,0,0,255]},instanceModelMatrix:matrix.P}),this.setState({emptyTexture:new texture_2d.Z(this.context.gl,{data:new Uint8Array(4),width:1,height:1})})}updateState(params){super.updateState(params);const{props:props,oldProps:oldProps,changeFlags:changeFlags}=params;if(props.mesh!==oldProps.mesh||changeFlags.extensionsChanged){var _this$state$model;if(this.state.positionBounds=null,null===(_this$state$model=this.state.model)||void 0===_this$state$model||_this$state$model.delete(),props.mesh){this.state.model=this.getModel(props.mesh);const attributes=props.mesh.attributes||props.mesh;this.setState({hasNormals:Boolean(attributes.NORMAL||attributes.normals)})}this.getAttributeManager().invalidateAll()}props.texture!==oldProps.texture&&this.setTexture(props.texture),this.state.model&&this.state.model.setDrawMode(this.props.wireframe?3:4)}finalizeState(context){super.finalizeState(context),this.state.emptyTexture.delete()}draw({uniforms:uniforms}){if(!this.state.model)return;const{viewport:viewport}=this.context,{sizeScale:sizeScale,coordinateSystem:coordinateSystem,_instanced:_instanced}=this.props;this.state.model.setUniforms(uniforms).setUniforms({sizeScale:sizeScale,composeModelMatrix:!_instanced||(0,matrix.X)(viewport,coordinateSystem),flatShading:!this.state.hasNormals}).draw()}get isLoaded(){var _this$state;return(null===(_this$state=this.state)||void 0===_this$state?void 0:_this$state.model)&&super.isLoaded}getModel(mesh){const model=new lib_model.Z(this.context.gl,{...this.getShaders(),id:this.props.id,geometry:getGeometry(mesh,this.props._useMeshColors),isInstanced:!0}),{texture:texture}=this.props,{emptyTexture:emptyTexture}=this.state;return model.setUniforms({sampler:texture||emptyTexture,hasTexture:Boolean(texture)}),model}setTexture(texture){const{emptyTexture:emptyTexture,model:model}=this.state;model&&model.setUniforms({sampler:texture||emptyTexture,hasTexture:Boolean(texture)})}}(0,defineProperty.Z)(SimpleMeshLayer,"defaultProps",defaultProps),(0,defineProperty.Z)(SimpleMeshLayer,"layerName","SimpleMeshLayer")},"./node_modules/@deck.gl/mesh-layers/dist/esm/utils/matrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return MATRIX_ATTRIBUTES},X:function(){return shouldComposeModelMatrix}});var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/utils/iterable-utils.js"),_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js");const RADIAN_PER_DEGREE=Math.PI/180,modelMatrix=new Float32Array(16),valueArray=new Float32Array(12);function calculateTransformMatrix(targetMatrix,orientation,scale){const pitch=orientation[0]*RADIAN_PER_DEGREE,yaw=orientation[1]*RADIAN_PER_DEGREE,roll=orientation[2]*RADIAN_PER_DEGREE,sr=Math.sin(roll),sp=Math.sin(pitch),sw=Math.sin(yaw),cr=Math.cos(roll),cp=Math.cos(pitch),cw=Math.cos(yaw),scx=scale[0],scy=scale[1],scz=scale[2];targetMatrix[0]=scx*cw*cp,targetMatrix[1]=scx*sw*cp,targetMatrix[2]=scx*-sp,targetMatrix[3]=scy*(-sw*cr+cw*sp*sr),targetMatrix[4]=scy*(cw*cr+sw*sp*sr),targetMatrix[5]=scy*cp*sr,targetMatrix[6]=scz*(sw*sr+cw*sp*cr),targetMatrix[7]=scz*(-cw*sr+sw*sp*cr),targetMatrix[8]=scz*cp*cr}function getExtendedMat3FromMat4(mat4){return mat4[0]=mat4[0],mat4[1]=mat4[1],mat4[2]=mat4[2],mat4[3]=mat4[4],mat4[4]=mat4[5],mat4[5]=mat4[6],mat4[6]=mat4[8],mat4[7]=mat4[9],mat4[8]=mat4[10],mat4[9]=mat4[12],mat4[10]=mat4[13],mat4[11]=mat4[14],mat4.subarray(0,12)}const MATRIX_ATTRIBUTES={size:12,accessor:["getOrientation","getScale","getTranslation","getTransformMatrix"],shaderAttributes:{instanceModelMatrix__LOCATION_0:{size:3,elementOffset:0},instanceModelMatrix__LOCATION_1:{size:3,elementOffset:3},instanceModelMatrix__LOCATION_2:{size:3,elementOffset:6},instanceTranslation:{size:3,elementOffset:9}},update(attribute,{startRow:startRow,endRow:endRow}){const{data:data,getOrientation:getOrientation,getScale:getScale,getTranslation:getTranslation,getTransformMatrix:getTransformMatrix}=this.props,arrayMatrix=Array.isArray(getTransformMatrix),constantMatrix=arrayMatrix&&16===getTransformMatrix.length,constantScale=Array.isArray(getScale),constantOrientation=Array.isArray(getOrientation),constantTranslation=Array.isArray(getTranslation),hasMatrix=constantMatrix||!arrayMatrix&&Boolean(getTransformMatrix(data[0]));attribute.constant=hasMatrix?constantMatrix:constantOrientation&&constantScale&&constantTranslation;const instanceModelMatrixData=attribute.value;if(attribute.constant){let matrix;if(hasMatrix)modelMatrix.set(getTransformMatrix),matrix=getExtendedMat3FromMat4(modelMatrix);else{matrix=valueArray;calculateTransformMatrix(matrix,getOrientation,getScale),matrix.set(getTranslation,9)}attribute.value=new Float32Array(matrix)}else{let i=startRow*attribute.size;const{iterable:iterable,objectInfo:objectInfo}=(0,_deck_gl_core__WEBPACK_IMPORTED_MODULE_0__.jB)(data,startRow,endRow);for(const object of iterable){let matrix;if(objectInfo.index++,hasMatrix)modelMatrix.set(constantMatrix?getTransformMatrix:getTransformMatrix(object,objectInfo)),matrix=getExtendedMat3FromMat4(modelMatrix);else{matrix=valueArray;calculateTransformMatrix(matrix,constantOrientation?getOrientation:getOrientation(object,objectInfo),constantScale?getScale:getScale(object,objectInfo)),matrix.set(constantTranslation?getTranslation:getTranslation(object,objectInfo),9)}instanceModelMatrixData[i++]=matrix[0],instanceModelMatrixData[i++]=matrix[1],instanceModelMatrixData[i++]=matrix[2],instanceModelMatrixData[i++]=matrix[3],instanceModelMatrixData[i++]=matrix[4],instanceModelMatrixData[i++]=matrix[5],instanceModelMatrixData[i++]=matrix[6],instanceModelMatrixData[i++]=matrix[7],instanceModelMatrixData[i++]=matrix[8],instanceModelMatrixData[i++]=matrix[9],instanceModelMatrixData[i++]=matrix[10],instanceModelMatrixData[i++]=matrix[11]}}}};function shouldComposeModelMatrix(viewport,coordinateSystem){return coordinateSystem===_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.CARTESIAN||coordinateSystem===_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.METER_OFFSETS||coordinateSystem===_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__.COORDINATE_SYSTEM.DEFAULT&&!viewport.isGeospatial}},"./node_modules/@loaders.gl/draco/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{VJ:function(){return esm_DracoLoader}});var globals=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/globals.js");const DEFAULT_DRACO_OPTIONS={draco:{decoderType:"object"==typeof WebAssembly?"wasm":"js",libraryPath:"libs/",extraAttributes:{},attributeNameEntry:void 0}},DracoLoader={name:"Draco",id:globals.jU?"draco":"draco-nodejs",module:"draco",shapes:["mesh"],version:"3.4.14",worker:!0,extensions:["drc"],mimeTypes:["application/octet-stream"],binary:!0,tests:["DRACO"],options:DEFAULT_DRACO_OPTIONS};var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),mesh_utils=__webpack_require__("./node_modules/@loaders.gl/schema/dist/esm/category/mesh/mesh-utils.js");class Field{constructor(name,type){let nullable=arguments.length>2&&void 0!==arguments[2]&&arguments[2],metadata=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map;(0,defineProperty.Z)(this,"name",void 0),(0,defineProperty.Z)(this,"type",void 0),(0,defineProperty.Z)(this,"nullable",void 0),(0,defineProperty.Z)(this,"metadata",void 0),this.name=name,this.type=type,this.nullable=nullable,this.metadata=metadata}get typeId(){return this.type&&this.type.typeId}clone(){return new Field(this.name,this.type,this.nullable,this.metadata)}compareTo(other){return this.name===other.name&&this.type===other.type&&this.nullable===other.nullable&&this.metadata===other.metadata}toString(){return"".concat(this.type).concat(this.nullable?", nullable":"").concat(this.metadata?", metadata: ".concat(this.metadata):"")}}let _Symbol$toStringTag,_Symbol$toStringTag2,_Symbol$toStringTag3,_Symbol$toStringTag4,_Symbol$toStringTag5,_Symbol$toStringTag6,_Symbol$toStringTag7,_Symbol$toStringTag8,enum_Type=function(Type){return Type[Type.NONE=0]="NONE",Type[Type.Null=1]="Null",Type[Type.Int=2]="Int",Type[Type.Float=3]="Float",Type[Type.Binary=4]="Binary",Type[Type.Utf8=5]="Utf8",Type[Type.Bool=6]="Bool",Type[Type.Decimal=7]="Decimal",Type[Type.Date=8]="Date",Type[Type.Time=9]="Time",Type[Type.Timestamp=10]="Timestamp",Type[Type.Interval=11]="Interval",Type[Type.List=12]="List",Type[Type.Struct=13]="Struct",Type[Type.Union=14]="Union",Type[Type.FixedSizeBinary=15]="FixedSizeBinary",Type[Type.FixedSizeList=16]="FixedSizeList",Type[Type.Map=17]="Map",Type[Type.Dictionary=-1]="Dictionary",Type[Type.Int8=-2]="Int8",Type[Type.Int16=-3]="Int16",Type[Type.Int32=-4]="Int32",Type[Type.Int64=-5]="Int64",Type[Type.Uint8=-6]="Uint8",Type[Type.Uint16=-7]="Uint16",Type[Type.Uint32=-8]="Uint32",Type[Type.Uint64=-9]="Uint64",Type[Type.Float16=-10]="Float16",Type[Type.Float32=-11]="Float32",Type[Type.Float64=-12]="Float64",Type[Type.DateDay=-13]="DateDay",Type[Type.DateMillisecond=-14]="DateMillisecond",Type[Type.TimestampSecond=-15]="TimestampSecond",Type[Type.TimestampMillisecond=-16]="TimestampMillisecond",Type[Type.TimestampMicrosecond=-17]="TimestampMicrosecond",Type[Type.TimestampNanosecond=-18]="TimestampNanosecond",Type[Type.TimeSecond=-19]="TimeSecond",Type[Type.TimeMillisecond=-20]="TimeMillisecond",Type[Type.TimeMicrosecond=-21]="TimeMicrosecond",Type[Type.TimeNanosecond=-22]="TimeNanosecond",Type[Type.DenseUnion=-23]="DenseUnion",Type[Type.SparseUnion=-24]="SparseUnion",Type[Type.IntervalDayTime=-25]="IntervalDayTime",Type[Type.IntervalYearMonth=-26]="IntervalYearMonth",Type}({});class DataType{static isNull(x){return x&&x.typeId===enum_Type.Null}static isInt(x){return x&&x.typeId===enum_Type.Int}static isFloat(x){return x&&x.typeId===enum_Type.Float}static isBinary(x){return x&&x.typeId===enum_Type.Binary}static isUtf8(x){return x&&x.typeId===enum_Type.Utf8}static isBool(x){return x&&x.typeId===enum_Type.Bool}static isDecimal(x){return x&&x.typeId===enum_Type.Decimal}static isDate(x){return x&&x.typeId===enum_Type.Date}static isTime(x){return x&&x.typeId===enum_Type.Time}static isTimestamp(x){return x&&x.typeId===enum_Type.Timestamp}static isInterval(x){return x&&x.typeId===enum_Type.Interval}static isList(x){return x&&x.typeId===enum_Type.List}static isStruct(x){return x&&x.typeId===enum_Type.Struct}static isUnion(x){return x&&x.typeId===enum_Type.Union}static isFixedSizeBinary(x){return x&&x.typeId===enum_Type.FixedSizeBinary}static isFixedSizeList(x){return x&&x.typeId===enum_Type.FixedSizeList}static isMap(x){return x&&x.typeId===enum_Type.Map}static isDictionary(x){return x&&x.typeId===enum_Type.Dictionary}get typeId(){return enum_Type.NONE}compareTo(other){return this===other}}Symbol.toStringTag;Symbol.toStringTag;_Symbol$toStringTag=Symbol.toStringTag;class Int extends DataType{constructor(isSigned,bitWidth){super(),(0,defineProperty.Z)(this,"isSigned",void 0),(0,defineProperty.Z)(this,"bitWidth",void 0),this.isSigned=isSigned,this.bitWidth=bitWidth}get typeId(){return enum_Type.Int}get[_Symbol$toStringTag](){return"Int"}toString(){return"".concat(this.isSigned?"I":"Ui","nt").concat(this.bitWidth)}}class Int8 extends Int{constructor(){super(!0,8)}}class Int16 extends Int{constructor(){super(!0,16)}}class Int32 extends Int{constructor(){super(!0,32)}}class Uint8 extends Int{constructor(){super(!1,8)}}class Uint16 extends Int{constructor(){super(!1,16)}}class Uint32 extends Int{constructor(){super(!1,32)}}const Precision_SINGLE=32,Precision_DOUBLE=64;_Symbol$toStringTag2=Symbol.toStringTag;class Float extends DataType{constructor(precision){super(),(0,defineProperty.Z)(this,"precision",void 0),this.precision=precision}get typeId(){return enum_Type.Float}get[_Symbol$toStringTag2](){return"Float"}toString(){return"Float".concat(this.precision)}}class Float32 extends Float{constructor(){super(Precision_SINGLE)}}class Float64 extends Float{constructor(){super(Precision_DOUBLE)}}Symbol.toStringTag;Symbol.toStringTag;_Symbol$toStringTag3=Symbol.toStringTag;_Symbol$toStringTag4=Symbol.toStringTag;_Symbol$toStringTag5=Symbol.toStringTag;_Symbol$toStringTag6=Symbol.toStringTag;_Symbol$toStringTag7=Symbol.toStringTag;class FixedSizeList extends DataType{constructor(listSize,child){super(),(0,defineProperty.Z)(this,"listSize",void 0),(0,defineProperty.Z)(this,"children",void 0),this.listSize=listSize,this.children=[child]}get typeId(){return enum_Type.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get[_Symbol$toStringTag7](){return"FixedSizeList"}toString(){return"FixedSizeList[".concat(this.listSize,"]<").concat(this.valueType,">")}}_Symbol$toStringTag8=Symbol.toStringTag;function deduceMeshField(attributeName,attribute,optionalMetadata){const type=function getArrowTypeFromTypedArray(array){switch(array.constructor){case Int8Array:return new Int8;case Uint8Array:return new Uint8;case Int16Array:return new Int16;case Uint16Array:return new Uint16;case Int32Array:return new Int32;case Uint32Array:return new Uint32;case Float32Array:return new Float32;case Float64Array:return new Float64;default:throw new Error("array type not supported")}}(attribute.value),metadata=optionalMetadata||function makeMeshAttributeMetadata(attribute){const result=new Map;"byteOffset"in attribute&&result.set("byteOffset",attribute.byteOffset.toString(10));"byteStride"in attribute&&result.set("byteStride",attribute.byteStride.toString(10));"normalized"in attribute&&result.set("normalized",attribute.normalized.toString());return result}(attribute);return new Field(attributeName,new FixedSizeList(attribute.size,new Field("value",type)),!1,metadata)}class schema_Schema{constructor(fields,metadata){(0,defineProperty.Z)(this,"fields",void 0),(0,defineProperty.Z)(this,"metadata",void 0),function assert(condition,message){if(!condition)throw new Error(message||"loader assertion failed.")}(Array.isArray(fields)),function checkNames(fields){const usedNames={};for(const field of fields)usedNames[field.name]&&console.warn("Schema: duplicated field name",field.name,field),usedNames[field.name]=!0}(fields),this.fields=fields,this.metadata=metadata||new Map}compareTo(other){if(this.metadata!==other.metadata)return!1;if(this.fields.length!==other.fields.length)return!1;for(let i=0;inameMap[field.name]));return new schema_Schema(selectedFields,this.metadata)}selectAt(){for(var _len2=arguments.length,columnIndices=new Array(_len2),_key2=0;_key2<_len2;_key2++)columnIndices[_key2]=arguments[_key2];const selectedFields=columnIndices.map((index=>this.fields[index])).filter(Boolean);return new schema_Schema(selectedFields,this.metadata)}assign(schemaOrFields){let fields,metadata=this.metadata;if(schemaOrFields instanceof schema_Schema){const otherSchema=schemaOrFields;fields=otherSchema.fields,metadata=mergeMaps(mergeMaps(new Map,this.metadata),otherSchema.metadata)}else fields=schemaOrFields;const fieldMap=Object.create(null);for(const field of this.fields)fieldMap[field.name]=field;for(const field of fields)fieldMap[field.name]=field;const mergedFields=Object.values(fieldMap);return new schema_Schema(mergedFields,metadata)}}function mergeMaps(m1,m2){return new Map([...m1||new Map,...m2||new Map])}function getArrowFieldFromAttribute(attributeName,attribute,loaderData){return deduceMeshField(attributeName,attribute,loaderData?makeMetadata(loaderData.metadata):void 0)}function makeMetadata(metadata){const metadataMap=new Map;for(const key in metadata)metadataMap.set("".concat(key,".string"),JSON.stringify(metadata[key]));return metadataMap}const DRACO_TO_GLTF_ATTRIBUTE_NAME_MAP={POSITION:"POSITION",NORMAL:"NORMAL",COLOR:"COLOR_0",TEX_COORD:"TEXCOORD_0"},DRACO_DATA_TYPE_TO_TYPED_ARRAY_MAP={1:Int8Array,2:Uint8Array,3:Int16Array,4:Uint16Array,5:Int32Array,6:Uint32Array,9:Float32Array};class DracoParser{constructor(draco){(0,defineProperty.Z)(this,"draco",void 0),(0,defineProperty.Z)(this,"decoder",void 0),(0,defineProperty.Z)(this,"metadataQuerier",void 0),this.draco=draco,this.decoder=new this.draco.Decoder,this.metadataQuerier=new this.draco.MetadataQuerier}destroy(){this.draco.destroy(this.decoder),this.draco.destroy(this.metadataQuerier)}parseSync(arrayBuffer){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const buffer=new this.draco.DecoderBuffer;buffer.Init(new Int8Array(arrayBuffer),arrayBuffer.byteLength),this._disableAttributeTransforms(options);const geometry_type=this.decoder.GetEncodedGeometryType(buffer),dracoGeometry=geometry_type===this.draco.TRIANGULAR_MESH?new this.draco.Mesh:new this.draco.PointCloud;try{let dracoStatus;switch(geometry_type){case this.draco.TRIANGULAR_MESH:dracoStatus=this.decoder.DecodeBufferToMesh(buffer,dracoGeometry);break;case this.draco.POINT_CLOUD:dracoStatus=this.decoder.DecodeBufferToPointCloud(buffer,dracoGeometry);break;default:throw new Error("DRACO: Unknown geometry type.")}if(!dracoStatus.ok()||!dracoGeometry.ptr){const message="DRACO decompression failed: ".concat(dracoStatus.error_msg());throw new Error(message)}const loaderData=this._getDracoLoaderData(dracoGeometry,geometry_type,options),geometry=this._getMeshData(dracoGeometry,loaderData,options),boundingBox=(0,mesh_utils.v)(geometry.attributes),schema=function getDracoSchema(attributes,loaderData,indices){const metadataMap=makeMetadata(loaderData.metadata),fields=[],namedLoaderDataAttributes=function transformAttributesLoaderData(loaderData){const result={};for(const key in loaderData){const dracoAttribute=loaderData[key];result[dracoAttribute.name||"undefined"]=dracoAttribute}return result}(loaderData.attributes);for(const attributeName in attributes){const field=getArrowFieldFromAttribute(attributeName,attributes[attributeName],namedLoaderDataAttributes[attributeName]);fields.push(field)}if(indices){const indicesField=getArrowFieldFromAttribute("indices",indices);fields.push(indicesField)}return new schema_Schema(fields,metadataMap)}(geometry.attributes,loaderData,geometry.indices);return{loader:"draco",loaderData:loaderData,header:{vertexCount:dracoGeometry.num_points(),boundingBox:boundingBox},...geometry,schema:schema}}finally{this.draco.destroy(buffer),dracoGeometry&&this.draco.destroy(dracoGeometry)}}_getDracoLoaderData(dracoGeometry,geometry_type,options){const metadata=this._getTopLevelMetadata(dracoGeometry),attributes=this._getDracoAttributes(dracoGeometry,options);return{geometry_type:geometry_type,num_attributes:dracoGeometry.num_attributes(),num_points:dracoGeometry.num_points(),num_faces:dracoGeometry instanceof this.draco.Mesh?dracoGeometry.num_faces():0,metadata:metadata,attributes:attributes}}_getDracoAttributes(dracoGeometry,options){const dracoAttributes={};for(let attributeId=0;attributeIdthis.decoder[type])).includes(attribute_type)){const transform=new this.draco.AttributeQuantizationTransform;try{if(transform.InitFromAttribute(dracoAttribute))return{quantization_bits:transform.quantization_bits(),range:transform.range(),min_values:new Float32Array([1,2,3]).map((i=>transform.min_value(i)))}}finally{this.draco.destroy(transform)}}return null}_getOctahedronTransform(dracoAttribute,options){const{octahedronAttributes:octahedronAttributes=[]}=options,attribute_type=dracoAttribute.attribute_type();if(octahedronAttributes.map((type=>this.decoder[type])).includes(attribute_type)){const transform=new this.draco.AttributeQuantizationTransform;try{if(transform.InitFromAttribute(dracoAttribute))return{quantization_bits:transform.quantization_bits()}}finally{this.draco.destroy(transform)}}return null}}var library_utils=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/library-utils/library-utils.js");const STATIC_DECODER_URL="https://www.gstatic.com/draco/versioned/decoders/".concat("1.5.5"),DRACO_JS_DECODER_URL="".concat(STATIC_DECODER_URL,"/draco_decoder.js"),DRACO_WASM_WRAPPER_URL="".concat(STATIC_DECODER_URL,"/draco_wasm_wrapper.js"),DRACO_WASM_DECODER_URL="".concat(STATIC_DECODER_URL,"/draco_decoder.wasm");"https://raw.githubusercontent.com/google/draco/".concat("1.4.1","/javascript/draco_encoder.js");let loadDecoderPromise;async function loadDracoDecoderModule(options){const modules=options.modules||{};return loadDecoderPromise=modules.draco3d?loadDecoderPromise||modules.draco3d.createDecoderModule({}).then((draco=>({draco:draco}))):loadDecoderPromise||async function loadDracoDecoder(options){let DracoDecoderModule,wasmBinary;if("js"===(options.draco&&options.draco.decoderType))DracoDecoderModule=await(0,library_utils.Y)(DRACO_JS_DECODER_URL,"draco",options);else[DracoDecoderModule,wasmBinary]=await Promise.all([await(0,library_utils.Y)(DRACO_WASM_WRAPPER_URL,"draco",options),await(0,library_utils.Y)(DRACO_WASM_DECODER_URL,"draco",options)]);return DracoDecoderModule=DracoDecoderModule||globalThis.DracoDecoderModule,await function initializeDracoDecoder(DracoDecoderModule,wasmBinary){const options={};wasmBinary&&(options.wasmBinary=wasmBinary);return new Promise((resolve=>{DracoDecoderModule({...options,onModuleLoaded:draco=>resolve({draco:draco})})}))}(DracoDecoderModule,wasmBinary)}(options),await loadDecoderPromise}globals.jU;const esm_DracoLoader={...DracoLoader,parse:async function parse(arrayBuffer,options){const{draco:draco}=await loadDracoDecoderModule(options),dracoParser=new DracoParser(draco);try{return dracoParser.parseSync(arrayBuffer,null==options?void 0:options.draco)}finally{dracoParser.destroy()}}}},"./node_modules/@loaders.gl/gltf/dist/esm/gltf-loader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return GLTFLoader}});var EXT_meshopt_compression_namespaceObject={};__webpack_require__.r(EXT_meshopt_compression_namespaceObject),__webpack_require__.d(EXT_meshopt_compression_namespaceObject,{decode:function(){return EXT_meshopt_compression_decode},name:function(){return EXT_meshopt_compression_name}});var EXT_texture_webp_namespaceObject={};__webpack_require__.r(EXT_texture_webp_namespaceObject),__webpack_require__.d(EXT_texture_webp_namespaceObject,{name:function(){return EXT_texture_webp_name},preprocess:function(){return preprocess}});var KHR_texture_basisu_namespaceObject={};__webpack_require__.r(KHR_texture_basisu_namespaceObject),__webpack_require__.d(KHR_texture_basisu_namespaceObject,{name:function(){return KHR_texture_basisu_name},preprocess:function(){return KHR_texture_basisu_preprocess}});var KHR_draco_mesh_compression_namespaceObject={};__webpack_require__.r(KHR_draco_mesh_compression_namespaceObject),__webpack_require__.d(KHR_draco_mesh_compression_namespaceObject,{decode:function(){return KHR_draco_mesh_compression_decode},encode:function(){return encode},name:function(){return KHR_draco_mesh_compression_name},preprocess:function(){return KHR_draco_mesh_compression_preprocess}});var KHR_texture_transform_namespaceObject={};__webpack_require__.r(KHR_texture_transform_namespaceObject),__webpack_require__.d(KHR_texture_transform_namespaceObject,{decode:function(){return KHR_texture_transform_decode},name:function(){return KHR_texture_transform_name}});var KHR_lights_punctual_namespaceObject={};__webpack_require__.r(KHR_lights_punctual_namespaceObject),__webpack_require__.d(KHR_lights_punctual_namespaceObject,{decode:function(){return KHR_lights_punctual_decode},encode:function(){return KHR_lights_punctual_encode},name:function(){return KHR_lights_punctual_name}});var KHR_materials_unlit_namespaceObject={};__webpack_require__.r(KHR_materials_unlit_namespaceObject),__webpack_require__.d(KHR_materials_unlit_namespaceObject,{decode:function(){return KHR_materials_unlit_decode},encode:function(){return KHR_materials_unlit_encode},name:function(){return KHR_materials_unlit_name}});var KHR_techniques_webgl_namespaceObject={};__webpack_require__.r(KHR_techniques_webgl_namespaceObject),__webpack_require__.d(KHR_techniques_webgl_namespaceObject,{decode:function(){return KHR_techniques_webgl_decode},encode:function(){return KHR_techniques_webgl_encode},name:function(){return KHR_techniques_webgl_name}});var EXT_feature_metadata_namespaceObject={};__webpack_require__.r(EXT_feature_metadata_namespaceObject),__webpack_require__.d(EXT_feature_metadata_namespaceObject,{decode:function(){return EXT_feature_metadata_decode},name:function(){return EXT_feature_metadata_name}});var globals=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/globals.js");var library_utils=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/library-utils/library-utils.js");const BASIS_CDN_ENCODER_WASM="https://unpkg.com/@loaders.gl/textures@".concat("3.4.14","/dist/libs/basis_encoder.wasm"),BASIS_CDN_ENCODER_JS="https://unpkg.com/@loaders.gl/textures@".concat("3.4.14","/dist/libs/basis_encoder.js");let loadBasisTranscoderPromise,loadBasisEncoderPromise;async function loadBasisTrascoderModule(options){const modules=options.modules||{};return modules.basis?modules.basis:(loadBasisTranscoderPromise=loadBasisTranscoderPromise||async function loadBasisTrascoder(options){let BASIS=null,wasmBinary=null;return[BASIS,wasmBinary]=await Promise.all([await(0,library_utils.Y)("basis_transcoder.js","textures",options),await(0,library_utils.Y)("basis_transcoder.wasm","textures",options)]),BASIS=BASIS||globalThis.BASIS,await function initializeBasisTrascoderModule(BasisModule,wasmBinary){const options={};wasmBinary&&(options.wasmBinary=wasmBinary);return new Promise((resolve=>{BasisModule(options).then((module=>{const{BasisFile:BasisFile,initializeBasis:initializeBasis}=module;initializeBasis(),resolve({BasisFile:BasisFile})}))}))}(BASIS,wasmBinary)}(options),await loadBasisTranscoderPromise)}async function loadBasisEncoderModule(options){const modules=options.modules||{};return modules.basisEncoder?modules.basisEncoder:(loadBasisEncoderPromise=loadBasisEncoderPromise||async function loadBasisEncoder(options){let BASIS_ENCODER=null,wasmBinary=null;return[BASIS_ENCODER,wasmBinary]=await Promise.all([await(0,library_utils.Y)(BASIS_CDN_ENCODER_JS,"textures",options),await(0,library_utils.Y)(BASIS_CDN_ENCODER_WASM,"textures",options)]),BASIS_ENCODER=BASIS_ENCODER||globalThis.BASIS,await function initializeBasisEncoderModule(BasisEncoderModule,wasmBinary){const options={};wasmBinary&&(options.wasmBinary=wasmBinary);return new Promise((resolve=>{BasisEncoderModule(options).then((module=>{const{BasisFile:BasisFile,KTX2File:KTX2File,initializeBasis:initializeBasis,BasisEncoder:BasisEncoder}=module;initializeBasis(),resolve({BasisFile:BasisFile,KTX2File:KTX2File,BasisEncoder:BasisEncoder})}))}))}(BASIS_ENCODER,wasmBinary)}(options),await loadBasisEncoderPromise)}const GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_S3TC_DXT1_EXT=33776,GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_S3TC_DXT5_EXT=33779,GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840,GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842,GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_ETC1_WEBGL=36196,GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_ASTC_4X4_KHR=37808,BROWSER_PREFIXES=["","WEBKIT_","MOZ_"],WEBGL_EXTENSIONS={WEBGL_compressed_texture_s3tc:"dxt",WEBGL_compressed_texture_s3tc_srgb:"dxt-srgb",WEBGL_compressed_texture_etc1:"etc1",WEBGL_compressed_texture_etc:"etc2",WEBGL_compressed_texture_pvrtc:"pvrtc",WEBGL_compressed_texture_atc:"atc",WEBGL_compressed_texture_astc:"astc",EXT_texture_compression_rgtc:"rgtc"};let formats=null;function getSupportedGPUTextureFormats(gl){if(!formats){gl=gl||function getWebGLContext(){try{return document.createElement("canvas").getContext("webgl")}catch(error){return null}}()||void 0,formats=new Set;for(const prefix of BROWSER_PREFIXES)for(const extension in WEBGL_EXTENSIONS)if(gl&&gl.getExtension("".concat(prefix).concat(extension))){const gpuTextureFormat=WEBGL_EXTENSIONS[extension];formats.add(gpuTextureFormat)}}return formats}new Uint8Array([0]);var n,i,s,a,r,o,l,f;!function(t){t[t.NONE=0]="NONE",t[t.BASISLZ=1]="BASISLZ",t[t.ZSTD=2]="ZSTD",t[t.ZLIB=3]="ZLIB"}(n||(n={})),function(t){t[t.BASICFORMAT=0]="BASICFORMAT"}(i||(i={})),function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.ETC1S=163]="ETC1S",t[t.UASTC=166]="UASTC"}(s||(s={})),function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.SRGB=1]="SRGB"}(a||(a={})),function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.LINEAR=1]="LINEAR",t[t.SRGB=2]="SRGB",t[t.ITU=3]="ITU",t[t.NTSC=4]="NTSC",t[t.SLOG=5]="SLOG",t[t.SLOG2=6]="SLOG2"}(r||(r={})),function(t){t[t.ALPHA_STRAIGHT=0]="ALPHA_STRAIGHT",t[t.ALPHA_PREMULTIPLIED=1]="ALPHA_PREMULTIPLIED"}(o||(o={})),function(t){t[t.RGB=0]="RGB",t[t.RRR=3]="RRR",t[t.GGG=4]="GGG",t[t.AAA=15]="AAA"}(l||(l={})),function(t){t[t.RGB=0]="RGB",t[t.RGBA=3]="RGBA",t[t.RRR=4]="RRR",t[t.RRRG=5]="RRRG"}(f||(f={}));const KTX2_ID=[171,75,84,88,32,50,48,187,13,10,26,10];const OutputFormat={etc1:{basisFormat:0,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_ETC1_WEBGL},etc2:{basisFormat:1,compressed:!0},bc1:{basisFormat:2,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_S3TC_DXT1_EXT},bc3:{basisFormat:3,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_S3TC_DXT5_EXT},bc4:{basisFormat:4,compressed:!0},bc5:{basisFormat:5,compressed:!0},"bc7-m6-opaque-only":{basisFormat:6,compressed:!0},"bc7-m5":{basisFormat:7,compressed:!0},"pvrtc1-4-rgb":{basisFormat:8,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGB_PVRTC_4BPPV1_IMG},"pvrtc1-4-rgba":{basisFormat:9,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG},"astc-4x4":{basisFormat:10,compressed:!0,format:GL_EXTENSIONS_CONSTANTS_COMPRESSED_RGBA_ASTC_4X4_KHR},"atc-rgb":{basisFormat:11,compressed:!0},"atc-rgba-interpolated-alpha":{basisFormat:12,compressed:!0},rgba32:{basisFormat:13,compressed:!1},rgb565:{basisFormat:14,compressed:!1},bgr565:{basisFormat:15,compressed:!1},rgba4444:{basisFormat:16,compressed:!1}};function parseBasisFile(BasisFile,data,options){const basisFile=new BasisFile(new Uint8Array(data));try{if(!basisFile.startTranscoding())throw new Error("Failed to start basis transcoding");const imageCount=basisFile.getNumImages(),images=[];for(let imageIndex=0;imageIndex1&&void 0!==arguments[1]?arguments[1]:5;if("string"==typeof data)return data.slice(0,length);if(ArrayBuffer.isView(data))return getMagicString(data.buffer,data.byteOffset,length);if(data instanceof ArrayBuffer)return getMagicString(data,0,length);return""}(string),'"'))}}var array_buffer_utils=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/binary-utils/array-buffer-utils.js"),assert=__webpack_require__("./node_modules/@loaders.gl/gltf/dist/esm/lib/utils/assert.js");function resolveUrl(url,options){if(url.startsWith("data:")||url.startsWith("http:")||url.startsWith("https:"))return url;const baseUrl=options.baseUri||options.uri;if(!baseUrl)throw new Error("'baseUri' must be provided to resolve relative url ".concat(url));return baseUrl.substr(0,baseUrl.lastIndexOf("/")+1)+url}function getTypedArrayForBufferView(json,buffers,bufferViewIndex){const bufferView=json.bufferViews[bufferViewIndex];(0,assert.h)(bufferView);const binChunk=buffers[bufferView.buffer];(0,assert.h)(binChunk);const byteOffset=(bufferView.byteOffset||0)+binChunk.byteOffset;return new Uint8Array(binChunk.arrayBuffer,byteOffset,bufferView.byteLength)}var defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),binary_image_api=__webpack_require__("./node_modules/@loaders.gl/images/dist/esm/lib/category-api/binary-image-api.js"),env_utils_assert=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/assert.js");function padToNBytes(byteLength,padding){return(0,env_utils_assert.h)(byteLength>=0),(0,env_utils_assert.h)(padding>0),byteLength+(padding-1)&~(padding-1)}function copyToArray(source,target,targetOffset){let sourceArray;if(source instanceof ArrayBuffer)sourceArray=new Uint8Array(source);else{const srcByteOffset=source.byteOffset,srcByteLength=source.byteLength;sourceArray=new Uint8Array(source.buffer||source.arrayBuffer,srcByteOffset,srcByteLength)}return target.set(sourceArray,targetOffset),targetOffset+padToNBytes(sourceArray.byteLength,4)}var gltf_utils=__webpack_require__("./node_modules/@loaders.gl/gltf/dist/esm/lib/gltf-utils/gltf-utils.js");const DEFAULT_GLTF_JSON={asset:{version:"2.0",generator:"loaders.gl"},buffers:[]};class GLTFScenegraph{constructor(gltf){(0,defineProperty.Z)(this,"gltf",void 0),(0,defineProperty.Z)(this,"sourceBuffers",void 0),(0,defineProperty.Z)(this,"byteLength",void 0),this.gltf=gltf||{json:{...DEFAULT_GLTF_JSON},buffers:[]},this.sourceBuffers=[],this.byteLength=0,this.gltf.buffers&&this.gltf.buffers[0]&&(this.byteLength=this.gltf.buffers[0].byteLength,this.sourceBuffers=[this.gltf.buffers[0]])}get json(){return this.gltf.json}getApplicationData(key){return this.json[key]}getExtraData(key){return(this.json.extras||{})[key]}getExtension(extensionName){const isExtension=this.getUsedExtensions().find((name=>name===extensionName)),extensions=this.json.extensions||{};return isExtension?extensions[extensionName]||!0:null}getRequiredExtension(extensionName){return this.getRequiredExtensions().find((name=>name===extensionName))?this.getExtension(extensionName):null}getRequiredExtensions(){return this.json.extensionsRequired||[]}getUsedExtensions(){return this.json.extensionsUsed||[]}getRemovedExtensions(){return this.json.extensionsRemoved||[]}getObjectExtension(object,extensionName){return(object.extensions||{})[extensionName]}getScene(index){return this.getObject("scenes",index)}getNode(index){return this.getObject("nodes",index)}getSkin(index){return this.getObject("skins",index)}getMesh(index){return this.getObject("meshes",index)}getMaterial(index){return this.getObject("materials",index)}getAccessor(index){return this.getObject("accessors",index)}getTexture(index){return this.getObject("textures",index)}getSampler(index){return this.getObject("samplers",index)}getImage(index){return this.getObject("images",index)}getBufferView(index){return this.getObject("bufferViews",index)}getBuffer(index){return this.getObject("buffers",index)}getObject(array,index){if("object"==typeof index)return index;const object=this.json[array]&&this.json[array][index];if(!object)throw new Error("glTF file error: Could not find ".concat(array,"[").concat(index,"]"));return object}getTypedArrayForBufferView(bufferView){const bufferIndex=(bufferView=this.getBufferView(bufferView)).buffer,binChunk=this.gltf.buffers[bufferIndex];(0,assert.h)(binChunk);const byteOffset=(bufferView.byteOffset||0)+binChunk.byteOffset;return new Uint8Array(binChunk.arrayBuffer,byteOffset,bufferView.byteLength)}getTypedArrayForAccessor(accessor){accessor=this.getAccessor(accessor);const bufferView=this.getBufferView(accessor.bufferView),arrayBuffer=this.getBuffer(bufferView.buffer).data,{ArrayType:ArrayType,length:length}=(0,gltf_utils.pN)(accessor,bufferView);return new ArrayType(arrayBuffer,bufferView.byteOffset+accessor.byteOffset,length)}getTypedArrayForImageData(image){image=this.getAccessor(image);const bufferView=this.getBufferView(image.bufferView),arrayBuffer=this.getBuffer(bufferView.buffer).data,byteOffset=bufferView.byteOffset||0;return new Uint8Array(arrayBuffer,byteOffset,bufferView.byteLength)}addApplicationData(key,data){return this.json[key]=data,this}addExtraData(key,data){return this.json.extras=this.json.extras||{},this.json.extras[key]=data,this}addObjectExtension(object,extensionName,data){return object.extensions=object.extensions||{},object.extensions[extensionName]=data,this.registerUsedExtension(extensionName),this}setObjectExtension(object,extensionName,data){(object.extensions||{})[extensionName]=data}removeObjectExtension(object,extensionName){const extensions=object.extensions||{},extension=extensions[extensionName];return delete extensions[extensionName],extension}addExtension(extensionName){let extensionData=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,assert.h)(extensionData),this.json.extensions=this.json.extensions||{},this.json.extensions[extensionName]=extensionData,this.registerUsedExtension(extensionName),extensionData}addRequiredExtension(extensionName){let extensionData=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,assert.h)(extensionData),this.addExtension(extensionName,extensionData),this.registerRequiredExtension(extensionName),extensionData}registerUsedExtension(extensionName){this.json.extensionsUsed=this.json.extensionsUsed||[],this.json.extensionsUsed.find((ext=>ext===extensionName))||this.json.extensionsUsed.push(extensionName)}registerRequiredExtension(extensionName){this.registerUsedExtension(extensionName),this.json.extensionsRequired=this.json.extensionsRequired||[],this.json.extensionsRequired.find((ext=>ext===extensionName))||this.json.extensionsRequired.push(extensionName)}removeExtension(extensionName){if(!this.getExtension(extensionName))return;this.json.extensionsRequired&&this._removeStringFromArray(this.json.extensionsRequired,extensionName),this.json.extensionsUsed&&this._removeStringFromArray(this.json.extensionsUsed,extensionName),this.json.extensions&&delete this.json.extensions[extensionName],Array.isArray(this.json.extensionsRemoved)||(this.json.extensionsRemoved=[]);const extensionsRemoved=this.json.extensionsRemoved;extensionsRemoved.includes(extensionName)||extensionsRemoved.push(extensionName)}setDefaultScene(sceneIndex){this.json.scene=sceneIndex}addScene(scene){const{nodeIndices:nodeIndices}=scene;return this.json.scenes=this.json.scenes||[],this.json.scenes.push({nodes:nodeIndices}),this.json.scenes.length-1}addNode(node){const{meshIndex:meshIndex,matrix:matrix}=node;this.json.nodes=this.json.nodes||[];const nodeData={mesh:meshIndex};return matrix&&(nodeData.matrix=matrix),this.json.nodes.push(nodeData),this.json.nodes.length-1}addMesh(mesh){const{attributes:attributes,indices:indices,material:material,mode:mode=4}=mesh,glTFMesh={primitives:[{attributes:this._addAttributes(attributes),mode:mode}]};if(indices){const indicesAccessor=this._addIndices(indices);glTFMesh.primitives[0].indices=indicesAccessor}return Number.isFinite(material)&&(glTFMesh.primitives[0].material=material),this.json.meshes=this.json.meshes||[],this.json.meshes.push(glTFMesh),this.json.meshes.length-1}addPointCloud(attributes){const glTFMesh={primitives:[{attributes:this._addAttributes(attributes),mode:0}]};return this.json.meshes=this.json.meshes||[],this.json.meshes.push(glTFMesh),this.json.meshes.length-1}addImage(imageData,mimeTypeOpt){const metadata=(0,binary_image_api.I)(imageData),mimeType=mimeTypeOpt||(null==metadata?void 0:metadata.mimeType),glTFImage={bufferView:this.addBufferView(imageData),mimeType:mimeType};return this.json.images=this.json.images||[],this.json.images.push(glTFImage),this.json.images.length-1}addBufferView(buffer){const byteLength=buffer.byteLength;(0,assert.h)(Number.isFinite(byteLength)),this.sourceBuffers=this.sourceBuffers||[],this.sourceBuffers.push(buffer);const glTFBufferView={buffer:0,byteOffset:this.byteLength,byteLength:byteLength};return this.byteLength+=padToNBytes(byteLength,4),this.json.bufferViews=this.json.bufferViews||[],this.json.bufferViews.push(glTFBufferView),this.json.bufferViews.length-1}addAccessor(bufferViewIndex,accessor){const glTFAccessor={bufferView:bufferViewIndex,type:(0,gltf_utils.dl)(accessor.size),componentType:accessor.componentType,count:accessor.count,max:accessor.max,min:accessor.min};return this.json.accessors=this.json.accessors||[],this.json.accessors.push(glTFAccessor),this.json.accessors.length-1}addBinaryBuffer(sourceBuffer){let accessor=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{size:3};const bufferViewIndex=this.addBufferView(sourceBuffer);let minMax={min:accessor.min,max:accessor.max};minMax.min&&minMax.max||(minMax=this._getAccessorMinMax(sourceBuffer,accessor.size));const accessorDefaults={size:accessor.size,componentType:(0,gltf_utils.x$)(sourceBuffer),count:Math.round(sourceBuffer.length/accessor.size),min:minMax.min,max:minMax.max};return this.addAccessor(bufferViewIndex,Object.assign(accessorDefaults,accessor))}addTexture(texture){const{imageIndex:imageIndex}=texture,glTFTexture={source:imageIndex};return this.json.textures=this.json.textures||[],this.json.textures.push(glTFTexture),this.json.textures.length-1}addMaterial(pbrMaterialInfo){return this.json.materials=this.json.materials||[],this.json.materials.push(pbrMaterialInfo),this.json.materials.length-1}createBinaryChunk(){var _this$json,_this$json$buffers;this.gltf.buffers=[];const totalByteLength=this.byteLength,arrayBuffer=new ArrayBuffer(totalByteLength),targetArray=new Uint8Array(arrayBuffer);let dstByteOffset=0;for(const sourceBuffer of this.sourceBuffers||[])dstByteOffset=copyToArray(sourceBuffer,targetArray,dstByteOffset);null!==(_this$json=this.json)&&void 0!==_this$json&&null!==(_this$json$buffers=_this$json.buffers)&&void 0!==_this$json$buffers&&_this$json$buffers[0]?this.json.buffers[0].byteLength=totalByteLength:this.json.buffers=[{byteLength:totalByteLength}],this.gltf.binary=arrayBuffer,this.sourceBuffers=[arrayBuffer]}_removeStringFromArray(array,string){let found=!0;for(;found;){const index=array.indexOf(string);index>-1?array.splice(index,1):found=!1}}_addAttributes(){let attributes=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const result={};for(const attributeKey in attributes){const attributeData=attributes[attributeKey],attrName=this._getGltfAttributeName(attributeKey),accessor=this.addBinaryBuffer(attributeData.value,attributeData);result[attrName]=accessor}return result}_addIndices(indices){return this.addBinaryBuffer(indices,{size:1})}_getGltfAttributeName(attributeName){switch(attributeName.toLowerCase()){case"position":case"positions":case"vertices":return"POSITION";case"normal":case"normals":return"NORMAL";case"color":case"colors":return"COLOR_0";case"texcoord":case"texcoords":return"TEXCOORD_0";default:return attributeName}}_getAccessorMinMax(buffer,size){const result={min:null,max:null};if(buffer.length96?ch-71:ch>64?ch-65:ch>47?ch+4:ch>46?63:62}let write=0;for(let i=0;i5&&void 0!==arguments[5]?arguments[5]:"NONE";const instance=await loadWasmInstance();decode(instance,instance.exports[DECODERS[mode]],target,count,size,source,instance.exports[FILTERS[filter||"NONE"]])}(result,count,byteStride,source,mode,filter),result}return null}var env_utils_globals=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/lib/env-utils/globals.js");const mimeTypeSupportedSync={};function isImageFormatSupported(mimeType){if(void 0===mimeTypeSupportedSync[mimeType]){const supported=env_utils_globals.jU?function checkBrowserImageFormatSupport(mimeType){switch(mimeType){case"image/avif":case"image/webp":return function testBrowserImageFormatSupport(mimeType){try{const element=document.createElement("canvas");return 0===element.toDataURL(mimeType).indexOf("data:".concat(mimeType))}catch{return!1}}(mimeType);default:return!0}}(mimeType):checkNodeImageFormatSupport(mimeType);mimeTypeSupportedSync[mimeType]=supported}return mimeTypeSupportedSync[mimeType]}function checkNodeImageFormatSupport(mimeType){const NODE_FORMAT_SUPPORT=["image/png","image/jpeg","image/gif"],{_parseImageNode:_parseImageNode,_imageFormatsNode:_imageFormatsNode=NODE_FORMAT_SUPPORT}=globalThis;return Boolean(_parseImageNode)&&_imageFormatsNode.includes(mimeType)}const EXT_TEXTURE_WEBP="EXT_texture_webp",EXT_texture_webp_name=EXT_TEXTURE_WEBP;function preprocess(gltfData,options){const scenegraph=new GLTFScenegraph(gltfData);if(!isImageFormatSupported("image/webp")){if(scenegraph.getRequiredExtensions().includes(EXT_TEXTURE_WEBP))throw new Error("gltf: Required extension ".concat(EXT_TEXTURE_WEBP," not supported by browser"));return}const{json:json}=scenegraph;for(const texture of json.textures||[]){const extension=scenegraph.getObjectExtension(texture,EXT_TEXTURE_WEBP);extension&&(texture.source=extension.source),scenegraph.removeObjectExtension(texture,EXT_TEXTURE_WEBP)}scenegraph.removeExtension(EXT_TEXTURE_WEBP)}const KHR_TEXTURE_BASISU="KHR_texture_basisu",KHR_texture_basisu_name=KHR_TEXTURE_BASISU;function KHR_texture_basisu_preprocess(gltfData,options){const scene=new GLTFScenegraph(gltfData),{json:json}=scene;for(const texture of json.textures||[]){const extension=scene.getObjectExtension(texture,KHR_TEXTURE_BASISU);extension&&(texture.source=extension.source),scene.removeObjectExtension(texture,KHR_TEXTURE_BASISU)}scene.removeExtension(KHR_TEXTURE_BASISU)}var esm=__webpack_require__("./node_modules/@loaders.gl/draco/dist/esm/index.js");function getGLTFAccessor(attribute){const{buffer:buffer,size:size,count:count}=function getAccessorData(attribute){let buffer=attribute,size=1,count=0;attribute&&attribute.value&&(buffer=attribute.value,size=attribute.size||1);buffer&&(ArrayBuffer.isView(buffer)||(buffer=function toTypedArray(array,ArrayType){let convertTypedArrays=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!array)return null;if(Array.isArray(array))return new ArrayType(array);if(convertTypedArrays&&!(array instanceof ArrayType))return new ArrayType(array);return array}(buffer,Float32Array)),count=buffer.length/size);return{buffer:buffer,size:size,count:count}}(attribute);return{value:buffer,size:size,byteOffset:0,count:count,type:(0,gltf_utils.dl)(size),componentType:(0,gltf_utils.x$)(buffer)}}const KHR_DRACO_MESH_COMPRESSION="KHR_draco_mesh_compression",KHR_draco_mesh_compression_name=KHR_DRACO_MESH_COMPRESSION;function KHR_draco_mesh_compression_preprocess(gltfData,options,context){const scenegraph=new GLTFScenegraph(gltfData);for(const primitive of makeMeshPrimitiveIterator(scenegraph))scenegraph.getObjectExtension(primitive,KHR_DRACO_MESH_COMPRESSION)}async function KHR_draco_mesh_compression_decode(gltfData,options,context){var _options$gltf;if(null==options||null===(_options$gltf=options.gltf)||void 0===_options$gltf||!_options$gltf.decompressMeshes)return;const scenegraph=new GLTFScenegraph(gltfData),promises=[];for(const primitive of makeMeshPrimitiveIterator(scenegraph))scenegraph.getObjectExtension(primitive,KHR_DRACO_MESH_COMPRESSION)&&promises.push(decompressPrimitive(scenegraph,primitive,options,context));await Promise.all(promises),scenegraph.removeExtension(KHR_DRACO_MESH_COMPRESSION)}function encode(gltfData){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const scenegraph=new GLTFScenegraph(gltfData);for(const mesh of scenegraph.json.meshes||[])compressMesh(mesh,options),scenegraph.addRequiredExtension(KHR_DRACO_MESH_COMPRESSION)}async function decompressPrimitive(scenegraph,primitive,options,context){const dracoExtension=scenegraph.getObjectExtension(primitive,KHR_DRACO_MESH_COMPRESSION);if(!dracoExtension)return;const buffer=scenegraph.getTypedArrayForBufferView(dracoExtension.bufferView),bufferCopy=(0,array_buffer_utils.qv)(buffer.buffer,buffer.byteOffset),{parse:parse}=context,dracoOptions={...options};delete dracoOptions["3d-tiles"];const decodedData=await parse(bufferCopy,esm.VJ,dracoOptions,context),decodedAttributes=function getGLTFAccessors(attributes){const accessors={};for(const name in attributes){const attribute=attributes[name];if("indices"!==name){const glTFAccessor=getGLTFAccessor(attribute);accessors[name]=glTFAccessor}}return accessors}(decodedData.attributes);for(const[attributeName,decodedAttribute]of Object.entries(decodedAttributes))if(attributeName in primitive.attributes){const accessorIndex=primitive.attributes[attributeName],accessor=scenegraph.getAccessor(accessorIndex);null!=accessor&&accessor.min&&null!=accessor&&accessor.max&&(decodedAttribute.min=accessor.min,decodedAttribute.max=accessor.max)}primitive.attributes=decodedAttributes,decodedData.indices&&(primitive.indices=getGLTFAccessor(decodedData.indices)),function checkPrimitive(primitive){if(!primitive.attributes&&Object.keys(primitive.attributes).length>0)throw new Error("glTF: Empty primitive detected: Draco decompression failure?")}(primitive)}function compressMesh(attributes,indices){var _context$parseSync;let mode=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,options=arguments.length>3?arguments[3]:void 0,context=arguments.length>4?arguments[4]:void 0;if(!options.DracoWriter)throw new Error("options.gltf.DracoWriter not provided");const compressedData=options.DracoWriter.encodeSync({attributes:attributes}),decodedData=null==context||null===(_context$parseSync=context.parseSync)||void 0===_context$parseSync?void 0:_context$parseSync.call(context,{attributes:attributes}),fauxAccessors=options._addFauxAttributes(decodedData.attributes),bufferViewIndex=options.addBufferView(compressedData);return{primitives:[{attributes:fauxAccessors,mode:mode,extensions:{[KHR_DRACO_MESH_COMPRESSION]:{bufferView:bufferViewIndex,attributes:fauxAccessors}}}]}}function*makeMeshPrimitiveIterator(scenegraph){for(const mesh of scenegraph.json.meshes||[])for(const primitive of mesh.primitives)yield primitive}var vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),matrix3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix3.js");const COMPONENTS={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},BYTES={5120:1,5121:1,5122:2,5123:2,5125:4,5126:4};const EXT_MESHOPT_TRANSFORM="KHR_texture_transform",KHR_texture_transform_name=EXT_MESHOPT_TRANSFORM,scratchVector=new vector3.Z,scratchRotationMatrix=new matrix3.Z,scratchScaleMatrix=new matrix3.Z;async function KHR_texture_transform_decode(gltfData,options){if(!new GLTFScenegraph(gltfData).getExtension(EXT_MESHOPT_TRANSFORM))return;const materials=gltfData.json.materials||[];for(let i=0;i{let[original,newTexCoord]=_ref;return original===originalTexCoord&&newTexCoord===texCoord}));if(!isProcessed){const matrix=function makeTransformationMatrix(extensionData){const{offset:offset=[0,0],rotation:rotation=0,scale:scale=[1,1]}=extensionData,translationMatirx=(new matrix3.Z).set(1,0,0,0,1,0,offset[0],offset[1],1),rotationMatirx=scratchRotationMatrix.set(Math.cos(rotation),Math.sin(rotation),0,-Math.sin(rotation),Math.cos(rotation),0,0,0,1),scaleMatrix=scratchScaleMatrix.set(scale[0],0,0,0,scale[1],0,0,0,1);return translationMatirx.multiplyRight(rotationMatirx).multiplyRight(scaleMatrix)}(textureInfo);return originalTexCoord!==texCoord&&(texture.texCoord=texCoord),processedTexCoords.push([originalTexCoord,texCoord]),{originalTexCoord:originalTexCoord,texCoord:texCoord,matrix:matrix}}return null}(texture,processedTexCoords);if(!transformParameters)return;const meshes=gltfData.json.meshes||[];for(const mesh of meshes)for(const primitive of mesh.primitives){const material=primitive.material;Number.isFinite(material)&&materialIndex===material&&transformPrimitive(gltfData,primitive,transformParameters)}}function transformPrimitive(gltfData,primitive,transformParameters){const{originalTexCoord:originalTexCoord,texCoord:texCoord,matrix:matrix}=transformParameters,texCoordAccessor=primitive.attributes["TEXCOORD_".concat(originalTexCoord)];if(Number.isFinite(texCoordAccessor)){var _gltfData$json$access;const accessor=null===(_gltfData$json$access=gltfData.json.accessors)||void 0===_gltfData$json$access?void 0:_gltfData$json$access[texCoordAccessor];if(accessor&&accessor.bufferView){var _gltfData$json$buffer;const bufferView=null===(_gltfData$json$buffer=gltfData.json.bufferViews)||void 0===_gltfData$json$buffer?void 0:_gltfData$json$buffer[accessor.bufferView];if(bufferView){const{arrayBuffer:arrayBuffer,byteOffset:bufferByteOffset}=gltfData.buffers[bufferView.buffer],byteOffset=(bufferByteOffset||0)+(accessor.byteOffset||0)+(bufferView.byteOffset||0),{ArrayType:ArrayType,length:length}=(0,gltf_utils.pN)(accessor,bufferView),bytes=BYTES[accessor.componentType],components=COMPONENTS[accessor.type],elementAddressScale=bufferView.byteStride||bytes*components,result=new Float32Array(length);for(let i=0;i{if(!Number.isFinite(shader.bufferView))throw new Error("KHR_techniques_webgl: no shader code");shader.code=textDecoder.decode(gltfScenegraph.getTypedArrayForBufferView(shader.bufferView))})),programs.forEach((program=>{program.fragmentShader=shaders[program.fragmentShader],program.vertexShader=shaders[program.vertexShader]})),techniques.forEach((technique=>{technique.program=programs[technique.program]})),techniques}(extension,gltfScenegraph);for(const material of json.materials||[]){const materialExtension=gltfScenegraph.getObjectExtension(material,KHR_TECHNIQUES_WEBGL);materialExtension&&(material.technique=Object.assign({},materialExtension,techniques[materialExtension.technique]),material.technique.values=resolveValues(material.technique,gltfScenegraph)),gltfScenegraph.removeObjectExtension(material,KHR_TECHNIQUES_WEBGL)}gltfScenegraph.removeExtension(KHR_TECHNIQUES_WEBGL)}}async function KHR_techniques_webgl_encode(gltfData,options){}function resolveValues(technique,gltfScenegraph){const values=Object.assign({},technique.values);return Object.keys(technique.uniforms||{}).forEach((uniform=>{technique.uniforms[uniform].value&&!(uniform in values)&&(values[uniform]=technique.uniforms[uniform].value)})),Object.keys(values).forEach((uniform=>{"object"==typeof values[uniform]&&void 0!==values[uniform].index&&(values[uniform].texture=gltfScenegraph.getTexture(values[uniform].index))})),values}const EXT_FEATURE_METADATA="EXT_feature_metadata",EXT_feature_metadata_name=EXT_FEATURE_METADATA;async function EXT_feature_metadata_decode(gltfData){!function decodeExtFeatureMetadata(scenegraph){var _extension$schema;const extension=scenegraph.getExtension(EXT_FEATURE_METADATA),schemaClasses=null==extension||null===(_extension$schema=extension.schema)||void 0===_extension$schema?void 0:_extension$schema.classes,featureTables=null==extension?void 0:extension.featureTables;(null==extension?void 0:extension.featureTextures)&&console.warn('featureTextures is not yet supported in the "EXT_feature_metadata" extension.');if(schemaClasses&&featureTables)for(const schemaName in schemaClasses){const schemaClass=schemaClasses[schemaName],featureTable=findFeatureTableByName(featureTables,schemaName);featureTable&&handleFeatureTableProperties(scenegraph,featureTable,schemaClass)}}(new GLTFScenegraph(gltfData))}function handleFeatureTableProperties(scenegraph,featureTable,schemaClass){for(const propertyName in schemaClass.properties){var _featureTable$propert;const schemaProperty=schemaClass.properties[propertyName],featureTableProperty=null==featureTable||null===(_featureTable$propert=featureTable.properties)||void 0===_featureTable$propert?void 0:_featureTable$propert[propertyName],numberOfFeatures=featureTable.count;if(featureTableProperty){const data=getPropertyDataFromBinarySource(scenegraph,schemaProperty,numberOfFeatures,featureTableProperty);featureTableProperty.data=data}}}function getPropertyDataFromBinarySource(scenegraph,schemaProperty,numberOfFeatures,featureTableProperty){const bufferView=featureTableProperty.bufferView;let data=scenegraph.getTypedArrayForBufferView(bufferView);switch(schemaProperty.type){case"STRING":{const stringOffsetBufferView=featureTableProperty.stringOffsetBufferView;data=function getStringAttributes(data,offsetsData,stringsCount){const stringsArray=[],textDecoder=new TextDecoder("utf8");let stringOffset=0;const bytesPerStringSize=4;for(let index=0;indexthis._convertIdToIndex(child,"node")))),node.meshes&&(node.meshes=node.meshes.map((mesh=>this._convertIdToIndex(mesh,"mesh"))))}_convertSceneIds(scene){scene.nodes&&(scene.nodes=scene.nodes.map((node=>this._convertIdToIndex(node,"node"))))}_convertIdsToIndices(json,topLevelArrayName){json[topLevelArrayName]||(console.warn("gltf v1: json doesn't contain attribute ".concat(topLevelArrayName)),json[topLevelArrayName]=[]);for(const object of json[topLevelArrayName])for(const key in object){const id=object[key],index=this._convertIdToIndex(id,key);object[key]=index}}_convertIdToIndex(id,key){const arrayName=GLTF_KEYS[key];if(arrayName in this.idToIndexMap){const index=this.idToIndexMap[arrayName][id];if(!Number.isFinite(index))throw new Error("gltf v1: failed to resolve ".concat(key," with id ").concat(id));return index}return id}_updateObjects(json){for(const buffer of this.json.buffers)delete buffer.type}_updateMaterial(json){for(const material of json.materials){var _material$values,_material$values2,_material$values3;material.pbrMetallicRoughness={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1};const textureId=(null===(_material$values=material.values)||void 0===_material$values?void 0:_material$values.tex)||(null===(_material$values2=material.values)||void 0===_material$values2?void 0:_material$values2.texture2d_0)||(null===(_material$values3=material.values)||void 0===_material$values3?void 0:_material$values3.diffuseTex),textureIndex=json.textures.findIndex((texture=>texture.id===textureId));-1!==textureIndex&&(material.pbrMetallicRoughness.baseColorTexture={index:textureIndex})}}}const post_process_gltf_COMPONENTS={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},post_process_gltf_BYTES={5120:1,5121:1,5122:2,5123:2,5125:4,5126:4},GL_SAMPLER_TEXTURE_MAG_FILTER=10240,GL_SAMPLER_TEXTURE_MIN_FILTER=10241,GL_SAMPLER_TEXTURE_WRAP_S=10242,GL_SAMPLER_TEXTURE_WRAP_T=10243,GL_SAMPLER_REPEAT=10497,SAMPLER_PARAMETER_GLTF_TO_GL={magFilter:GL_SAMPLER_TEXTURE_MAG_FILTER,minFilter:GL_SAMPLER_TEXTURE_MIN_FILTER,wrapS:GL_SAMPLER_TEXTURE_WRAP_S,wrapT:GL_SAMPLER_TEXTURE_WRAP_T},DEFAULT_SAMPLER={[GL_SAMPLER_TEXTURE_MAG_FILTER]:9729,[GL_SAMPLER_TEXTURE_MIN_FILTER]:9986,[GL_SAMPLER_TEXTURE_WRAP_S]:GL_SAMPLER_REPEAT,[GL_SAMPLER_TEXTURE_WRAP_T]:GL_SAMPLER_REPEAT};class GLTFPostProcessor{constructor(){(0,defineProperty.Z)(this,"baseUri",""),(0,defineProperty.Z)(this,"json",{}),(0,defineProperty.Z)(this,"buffers",[]),(0,defineProperty.Z)(this,"images",[])}postProcess(gltf){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{json:json,buffers:buffers=[],images:images=[],baseUri:baseUri=""}=gltf;return(0,assert.h)(json),this.baseUri=baseUri,this.json=json,this.buffers=buffers,this.images=images,this._resolveTree(this.json,options),this.json}_resolveTree(json){json.bufferViews&&(json.bufferViews=json.bufferViews.map(((bufView,i)=>this._resolveBufferView(bufView,i)))),json.images&&(json.images=json.images.map(((image,i)=>this._resolveImage(image,i)))),json.samplers&&(json.samplers=json.samplers.map(((sampler,i)=>this._resolveSampler(sampler,i)))),json.textures&&(json.textures=json.textures.map(((texture,i)=>this._resolveTexture(texture,i)))),json.accessors&&(json.accessors=json.accessors.map(((accessor,i)=>this._resolveAccessor(accessor,i)))),json.materials&&(json.materials=json.materials.map(((material,i)=>this._resolveMaterial(material,i)))),json.meshes&&(json.meshes=json.meshes.map(((mesh,i)=>this._resolveMesh(mesh,i)))),json.nodes&&(json.nodes=json.nodes.map(((node,i)=>this._resolveNode(node,i)))),json.skins&&(json.skins=json.skins.map(((skin,i)=>this._resolveSkin(skin,i)))),json.scenes&&(json.scenes=json.scenes.map(((scene,i)=>this._resolveScene(scene,i)))),void 0!==json.scene&&(json.scene=json.scenes[this.json.scene])}getScene(index){return this._get("scenes",index)}getNode(index){return this._get("nodes",index)}getSkin(index){return this._get("skins",index)}getMesh(index){return this._get("meshes",index)}getMaterial(index){return this._get("materials",index)}getAccessor(index){return this._get("accessors",index)}getCamera(index){return null}getTexture(index){return this._get("textures",index)}getSampler(index){return this._get("samplers",index)}getImage(index){return this._get("images",index)}getBufferView(index){return this._get("bufferViews",index)}getBuffer(index){return this._get("buffers",index)}_get(array,index){if("object"==typeof index)return index;const object=this.json[array]&&this.json[array][index];return object||console.warn("glTF file error: Could not find ".concat(array,"[").concat(index,"]")),object}_resolveScene(scene,index){return scene.id=scene.id||"scene-".concat(index),scene.nodes=(scene.nodes||[]).map((node=>this.getNode(node))),scene}_resolveNode(node,index){return node.id=node.id||"node-".concat(index),node.children&&(node.children=node.children.map((child=>this.getNode(child)))),void 0!==node.mesh?node.mesh=this.getMesh(node.mesh):void 0!==node.meshes&&node.meshes.length&&(node.mesh=node.meshes.reduce(((accum,meshIndex)=>{const mesh=this.getMesh(meshIndex);return accum.id=mesh.id,accum.primitives=accum.primitives.concat(mesh.primitives),accum}),{primitives:[]})),void 0!==node.camera&&(node.camera=this.getCamera(node.camera)),void 0!==node.skin&&(node.skin=this.getSkin(node.skin)),node}_resolveSkin(skin,index){return skin.id=skin.id||"skin-".concat(index),skin.inverseBindMatrices=this.getAccessor(skin.inverseBindMatrices),skin}_resolveMesh(mesh,index){return mesh.id=mesh.id||"mesh-".concat(index),mesh.primitives&&(mesh.primitives=mesh.primitives.map((primitive=>{const attributes=(primitive={...primitive}).attributes;primitive.attributes={};for(const attribute in attributes)primitive.attributes[attribute]=this.getAccessor(attributes[attribute]);return void 0!==primitive.indices&&(primitive.indices=this.getAccessor(primitive.indices)),void 0!==primitive.material&&(primitive.material=this.getMaterial(primitive.material)),primitive}))),mesh}_resolveMaterial(material,index){if(material.id=material.id||"material-".concat(index),material.normalTexture&&(material.normalTexture={...material.normalTexture},material.normalTexture.texture=this.getTexture(material.normalTexture.index)),material.occlusionTexture&&(material.occlustionTexture={...material.occlustionTexture},material.occlusionTexture.texture=this.getTexture(material.occlusionTexture.index)),material.emissiveTexture&&(material.emmisiveTexture={...material.emmisiveTexture},material.emissiveTexture.texture=this.getTexture(material.emissiveTexture.index)),material.emissiveFactor||(material.emissiveFactor=material.emmisiveTexture?[1,1,1]:[0,0,0]),material.pbrMetallicRoughness){material.pbrMetallicRoughness={...material.pbrMetallicRoughness};const mr=material.pbrMetallicRoughness;mr.baseColorTexture&&(mr.baseColorTexture={...mr.baseColorTexture},mr.baseColorTexture.texture=this.getTexture(mr.baseColorTexture.index)),mr.metallicRoughnessTexture&&(mr.metallicRoughnessTexture={...mr.metallicRoughnessTexture},mr.metallicRoughnessTexture.texture=this.getTexture(mr.metallicRoughnessTexture.index))}return material}_resolveAccessor(accessor,index){if(accessor.id=accessor.id||"accessor-".concat(index),void 0!==accessor.bufferView&&(accessor.bufferView=this.getBufferView(accessor.bufferView)),accessor.bytesPerComponent=function post_process_gltf_getBytesFromComponentType(componentType){return post_process_gltf_BYTES[componentType]}(accessor.componentType),accessor.components=function post_process_gltf_getSizeFromAccessorType(type){return post_process_gltf_COMPONENTS[type]}(accessor.type),accessor.bytesPerElement=accessor.bytesPerComponent*accessor.components,accessor.bufferView){const buffer=accessor.bufferView.buffer,{ArrayType:ArrayType,byteLength:byteLength}=(0,gltf_utils.pN)(accessor,accessor.bufferView),byteOffset=(accessor.bufferView.byteOffset||0)+(accessor.byteOffset||0)+buffer.byteOffset;let cutBuffer=buffer.arrayBuffer.slice(byteOffset,byteOffset+byteLength);accessor.bufferView.byteStride&&(cutBuffer=this._getValueFromInterleavedBuffer(buffer,byteOffset,accessor.bufferView.byteStride,accessor.bytesPerElement,accessor.count)),accessor.value=new ArrayType(cutBuffer)}return accessor}_getValueFromInterleavedBuffer(buffer,byteOffset,byteStride,bytesPerElement,count){const result=new Uint8Array(count*bytesPerElement);for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:0,options=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const dataView=new DataView(arrayBuffer),type=function parse_glb_getMagicString(dataView){let byteOffset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"".concat(String.fromCharCode(dataView.getUint8(byteOffset+0))).concat(String.fromCharCode(dataView.getUint8(byteOffset+1))).concat(String.fromCharCode(dataView.getUint8(byteOffset+2))).concat(String.fromCharCode(dataView.getUint8(byteOffset+3)))}(dataView,byteOffset+0),version=dataView.getUint32(byteOffset+4,LE),byteLength=dataView.getUint32(byteOffset+8,LE);switch(Object.assign(glb,{header:{byteOffset:byteOffset,byteLength:byteLength,hasBinChunk:!1},type:type,version:version,json:{},binChunks:[]}),byteOffset+=GLB_FILE_HEADER_SIZE,glb.version){case 1:return function parseGLBV1(glb,dataView,byteOffset){(0,env_utils_assert.h)(glb.header.byteLength>GLB_FILE_HEADER_SIZE+GLB_CHUNK_HEADER_SIZE);const contentLength=dataView.getUint32(byteOffset+0,LE),contentFormat=dataView.getUint32(byteOffset+4,LE);return byteOffset+=GLB_CHUNK_HEADER_SIZE,(0,env_utils_assert.h)(contentFormat===GLB_V1_CONTENT_FORMAT_JSON),parseJSONChunk(glb,dataView,byteOffset,contentLength),byteOffset+=contentLength,byteOffset+=parseBINChunk(glb,dataView,byteOffset,glb.header.byteLength),byteOffset}(glb,dataView,byteOffset);case 2:return function parseGLBV2(glb,dataView,byteOffset,options){return(0,env_utils_assert.h)(glb.header.byteLength>GLB_FILE_HEADER_SIZE+GLB_CHUNK_HEADER_SIZE),function parseGLBChunksSync(glb,dataView,byteOffset,options){for(;byteOffset+8<=glb.header.byteLength;){const chunkLength=dataView.getUint32(byteOffset+0,LE),chunkFormat=dataView.getUint32(byteOffset+4,LE);switch(byteOffset+=GLB_CHUNK_HEADER_SIZE,chunkFormat){case GLB_CHUNK_TYPE_JSON:parseJSONChunk(glb,dataView,byteOffset,chunkLength);break;case GLB_CHUNK_TYPE_BIN:parseBINChunk(glb,dataView,byteOffset,chunkLength);break;case GLB_CHUNK_TYPE_JSON_XVIZ_DEPRECATED:options.strict||parseJSONChunk(glb,dataView,byteOffset,chunkLength);break;case GLB_CHUNK_TYPE_BIX_XVIZ_DEPRECATED:options.strict||parseBINChunk(glb,dataView,byteOffset,chunkLength)}byteOffset+=padToNBytes(chunkLength,4)}return byteOffset}(glb,dataView,byteOffset,options),byteOffset+glb.header.byteLength}(glb,dataView,byteOffset,options={});default:throw new Error("Invalid GLB version ".concat(glb.version,". Only supports v1 and v2."))}}function parseJSONChunk(glb,dataView,byteOffset,chunkLength){const jsonChunk=new Uint8Array(dataView.buffer,byteOffset,chunkLength),jsonText=new TextDecoder("utf8").decode(jsonChunk);return glb.json=JSON.parse(jsonText),padToNBytes(chunkLength,4)}function parseBINChunk(glb,dataView,byteOffset,chunkLength){return glb.header.hasBinChunk=!0,glb.binChunks.push({byteOffset:byteOffset,byteLength:chunkLength,arrayBuffer:dataView.buffer}),padToNBytes(chunkLength,4)}async function parseGLTF(gltf,arrayBufferOrString){var _options$gltf,_options$gltf2,_options$gltf3,_options$gltf4;let options=arguments.length>3?arguments[3]:void 0,context=arguments.length>4?arguments[4]:void 0;!function parseGLTFContainerSync(gltf,data,byteOffset,options){options.uri&&(gltf.baseUri=options.uri);if(data instanceof ArrayBuffer&&!function parse_glb_isGLB(arrayBuffer){let byteOffset=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const dataView=new DataView(arrayBuffer),{magic:magic=MAGIC_glTF}=options,magic1=dataView.getUint32(byteOffset,!1);return magic1===magic||magic1===MAGIC_glTF}(data,byteOffset,options)){data=(new TextDecoder).decode(data)}if("string"==typeof data)gltf.json=parseJSON(data);else if(data instanceof ArrayBuffer){const glb={};byteOffset=parseGLBSync(glb,data,byteOffset,options.glb),(0,assert.h)("glTF"===glb.type,"Invalid GLB magic string ".concat(glb.type)),gltf._glb=glb,gltf.json=glb.json}else(0,assert.h)(!1,"GLTF: must be ArrayBuffer or string");const buffers=gltf.json.buffers||[];if(gltf.buffers=new Array(buffers.length).fill(null),gltf._glb&&gltf._glb.header.hasBinChunk){const{binChunks:binChunks}=gltf._glb;gltf.buffers[0]={arrayBuffer:binChunks[0].arrayBuffer,byteOffset:binChunks[0].byteOffset,byteLength:binChunks[0].byteLength}}const images=gltf.json.images||[];gltf.images=new Array(images.length).fill({})}(gltf,arrayBufferOrString,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,options),function normalizeGLTFV1(gltf){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(new GLTFV1Normalizer).normalize(gltf,options)}(gltf,{normalize:null==options||null===(_options$gltf=options.gltf)||void 0===_options$gltf?void 0:_options$gltf.normalize}),function preprocessExtensions(gltf){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},context=arguments.length>2?arguments[2]:void 0;const extensions=EXTENSIONS.filter((extension=>useExtension(extension.name,options)));for(const extension of extensions){var _extension$preprocess;null===(_extension$preprocess=extension.preprocess)||void 0===_extension$preprocess||_extension$preprocess.call(extension,gltf,options,context)}}(gltf,options,context);const promises=[];if(null!=options&&null!==(_options$gltf2=options.gltf)&&void 0!==_options$gltf2&&_options$gltf2.loadBuffers&&gltf.json.buffers&&await async function loadBuffers(gltf,options,context){const buffers=gltf.json.buffers||[];for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:{},context=arguments.length>2?arguments[2]:void 0;const extensions=EXTENSIONS.filter((extension=>useExtension(extension.name,options)));for(const extension of extensions){var _extension$decode;await(null===(_extension$decode=extension.decode)||void 0===_extension$decode?void 0:_extension$decode.call(extension,gltf,options,context))}}(gltf,options,context);return promises.push(promise),await Promise.all(promises),null!=options&&null!==(_options$gltf4=options.gltf)&&void 0!==_options$gltf4&&_options$gltf4.postProcess?function postProcessGLTF(gltf,options){return(new GLTFPostProcessor).postProcess(gltf,options)}(gltf,options):gltf}async function loadImage(gltf,image,index,options,context){const{fetch:fetch,parse:parse}=context;let arrayBuffer;if(image.uri&&!image.hasOwnProperty("bufferView")){const uri=resolveUrl(image.uri,options),response=await fetch(uri);arrayBuffer=await response.arrayBuffer(),image.bufferView={data:arrayBuffer}}if(Number.isFinite(image.bufferView)){const array=getTypedArrayForBufferView(gltf.json,gltf.buffers,image.bufferView);arrayBuffer=(0,array_buffer_utils.qv)(array.buffer,array.byteOffset,array.byteLength)}(0,assert.h)(arrayBuffer,"glTF image has no data");let parsedImage=await parse(arrayBuffer,[image_loader.S,BasisLoader],{mimeType:image.mimeType,basis:options.basis||{format:selectSupportedBasisFormat()}},context);parsedImage&&parsedImage[0]&&(parsedImage={compressed:!0,mipmaps:!1,width:parsedImage[0].width,height:parsedImage[0].height,data:parsedImage[0]}),gltf.images=gltf.images||[],gltf.images[index]=parsedImage}const GLTFLoader={name:"glTF",id:"gltf",module:"gltf",version:"3.4.14",extensions:["gltf","glb"],mimeTypes:["model/gltf+json","model/gltf-binary"],text:!0,binary:!0,tests:["glTF"],parse:async function parse(arrayBuffer){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},context=arguments.length>2?arguments[2]:void 0;options={...GLTFLoader.options,...options},options.gltf={...GLTFLoader.options.gltf,...options.gltf};const{byteOffset:byteOffset=0}=options;return await parseGLTF({},arrayBuffer,byteOffset,options,context)},options:{gltf:{normalize:!0,loadBuffers:!0,loadImages:!0,decompressMeshes:!0,postProcess:!0},log:console},deprecatedOptions:{fetchImages:"gltf.loadImages",createImages:"gltf.loadImages",decompress:"gltf.decompressMeshes",postProcess:"gltf.postProcess",gltf:{decompress:"gltf.decompressMeshes"}}}},"./node_modules/@loaders.gl/gltf/dist/esm/lib/gltf-utils/gltf-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Xr:function(){return getMemoryUsageGLTF},dl:function(){return getAccessorTypeFromSize},pN:function(){return getAccessorArrayTypeAndLength},x$:function(){return getComponentTypeFromArray}});var _utils_assert__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@loaders.gl/gltf/dist/esm/lib/utils/assert.js");const TYPES=["SCALAR","VEC2","VEC3","VEC4"],ARRAY_CONSTRUCTOR_TO_WEBGL_CONSTANT=[[Int8Array,5120],[Uint8Array,5121],[Int16Array,5122],[Uint16Array,5123],[Uint32Array,5125],[Float32Array,5126],[Float64Array,5130]],ARRAY_TO_COMPONENT_TYPE=new Map(ARRAY_CONSTRUCTOR_TO_WEBGL_CONSTANT),ATTRIBUTE_TYPE_TO_COMPONENTS={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},ATTRIBUTE_COMPONENT_TYPE_TO_BYTE_SIZE={5120:1,5121:1,5122:2,5123:2,5125:4,5126:4},ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array};function getAccessorTypeFromSize(size){return TYPES[size-1]||TYPES[0]}function getComponentTypeFromArray(typedArray){const componentType=ARRAY_TO_COMPONENT_TYPE.get(typedArray.constructor);if(!componentType)throw new Error("Illegal typed array");return componentType}function getAccessorArrayTypeAndLength(accessor,bufferView){const ArrayType=ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY[accessor.componentType],components=ATTRIBUTE_TYPE_TO_COMPONENTS[accessor.type],bytesPerComponent=ATTRIBUTE_COMPONENT_TYPE_TO_BYTE_SIZE[accessor.componentType],length=accessor.count*components,byteLength=accessor.count*components*bytesPerComponent;return(0,_utils_assert__WEBPACK_IMPORTED_MODULE_0__.h)(byteLength>=0&&byteLength<=bufferView.byteLength),{ArrayType:ArrayType,length:length,byteLength:byteLength}}function getMemoryUsageGLTF(gltf){let{images:images,bufferViews:bufferViews}=gltf;images=images||[],bufferViews=bufferViews||[];const imageBufferViews=images.map((i=>i.bufferView));bufferViews=bufferViews.filter((view=>!imageBufferViews.includes(view)));const bufferMemory=bufferViews.reduce(((acc,view)=>acc+view.byteLength),0),pixelCount=images.reduce(((acc,image)=>{const{width:width,height:height}=image.image;return acc+width*height}),0);return bufferMemory+Math.ceil(4*pixelCount*1.33)}},"./node_modules/@loaders.gl/gltf/dist/esm/lib/utils/assert.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function assert(condition,message){if(!condition)throw new Error(message||"assert failed: gltf")}__webpack_require__.d(__webpack_exports__,{h:function(){return assert}})},"./node_modules/@loaders.gl/loader-utils/dist/esm/json-loader.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return JSONLoader}});const JSONLoader={name:"JSON",id:"json",module:"json",version:"3.4.14",extensions:["json","geojson"],mimeTypes:["application/json"],category:"json",text:!0,parseTextSync:parseTextSync,parse:async arrayBuffer=>parseTextSync((new TextDecoder).decode(arrayBuffer)),options:{}};function parseTextSync(text){return JSON.parse(text)}},"./node_modules/@loaders.gl/schema/dist/esm/category/mesh/mesh-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function getMeshBoundingBox(attributes){let minX=1/0,minY=1/0,minZ=1/0,maxX=-1/0,maxY=-1/0,maxZ=-1/0;const positions=attributes.POSITION?attributes.POSITION.value:[],len=positions&&positions.length;for(let i=0;imaxX?x:maxX,maxY=y>maxY?y:maxY,maxZ=z>maxZ?z:maxZ}return[[minX,minY,minZ],[maxX,maxY,maxZ]]}__webpack_require__.d(__webpack_exports__,{v:function(){return getMeshBoundingBox}})},"./node_modules/@loaders.gl/worker-utils/dist/esm/lib/library-utils/library-utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return loadLibrary}});var require_utils_browser_namespaceObject={};__webpack_require__.r(require_utils_browser_namespaceObject),__webpack_require__.d(require_utils_browser_namespaceObject,{readFileAsArrayBuffer:function(){return readFileAsArrayBuffer},readFileAsText:function(){return readFileAsText},requireFromFile:function(){return requireFromFile},requireFromString:function(){return requireFromString}});var globals=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/globals.js");const readFileAsArrayBuffer=null,readFileAsText=null,requireFromFile=null,requireFromString=null;var assert=__webpack_require__("./node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/assert.js");const VERSION="3.4.14",loadLibraryPromises={};async function loadLibrary(libraryUrl){let moduleName=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return moduleName&&(libraryUrl=function getLibraryUrl(library,moduleName,options){if(library.startsWith("http"))return library;const modules=options.modules||{};if(modules[library])return modules[library];if(!globals.jU)return"modules/".concat(moduleName,"/dist/libs/").concat(library);if(options.CDN)return(0,assert.h)(options.CDN.startsWith("http")),"".concat(options.CDN,"/").concat(moduleName,"@").concat(VERSION,"/dist/libs/").concat(library);if(globals.hJ)return"../src/libs/".concat(library);return"modules/".concat(moduleName,"/src/libs/").concat(library)}(libraryUrl,moduleName,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})),loadLibraryPromises[libraryUrl]=loadLibraryPromises[libraryUrl]||async function loadLibraryFromFile(libraryUrl){if(libraryUrl.endsWith("wasm")){const response=await fetch(libraryUrl);return await response.arrayBuffer()}if(!globals.jU)try{return require_utils_browser_namespaceObject&&requireFromFile&&await requireFromFile(libraryUrl)}catch{return null}if(globals.hJ)return importScripts(libraryUrl);const response=await fetch(libraryUrl);return function loadLibraryFromString(scriptSource,id){if(!globals.jU)return requireFromString&&requireFromString(scriptSource,id);if(globals.hJ)return eval.call(globals.CO,scriptSource),null;const script=document.createElement("script");script.id=id;try{script.appendChild(document.createTextNode(scriptSource))}catch(e){script.text=scriptSource}return document.body.appendChild(script),null}(await response.text(),libraryUrl)}(libraryUrl),await loadLibraryPromises[libraryUrl]}},"./node_modules/@luma.gl/core/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AnimationLoop:function(){return animation_loop.Z},Buffer:function(){return buffer.Z},ClipSpace:function(){return clip_space.Z},ConeGeometry:function(){return ConeGeometry},CubeGeometry:function(){return cube_geometry.Z},CylinderGeometry:function(){return CylinderGeometry},FEATURES:function(){return webgl_features_table.h},FragmentShader:function(){return shader.gs},Framebuffer:function(){return framebuffer.Z},Geometry:function(){return geometry.Z},IcoSphereGeometry:function(){return IcoSphereGeometry},Model:function(){return model.Z},PlaneGeometry:function(){return PlaneGeometry},Program:function(){return program.Z},ProgramManager:function(){return program_manager.Z},Renderbuffer:function(){return renderbuffer.Z},SphereGeometry:function(){return sphere_geometry.Z},Texture2D:function(){return texture_2d.Z},Texture3D:function(){return texture_3d.Z},TextureCube:function(){return texture_cube.Z},Timeline:function(){return timeline.T},Transform:function(){return transform.Z},TransformFeedback:function(){return transform_feedback.Z},TruncatedConeGeometry:function(){return TruncatedConeGeometry},VertexShader:function(){return shader.Qh},assert:function(){return assert.h},clear:function(){return clear.Z},cloneTextureFrom:function(){return texture_utils.h},copyToTexture:function(){return copy_and_blit.Lv},createGLContext:function(){return esm.s9},cssToDevicePixels:function(){return esm.JY},cssToDeviceRatio:function(){return esm.w},dirlight:function(){return dirlight},fp32:function(){return fp32.O},fp64:function(){return fp64.hO},getParameters:function(){return esm.ZS},gouraudLighting:function(){return phong_lighting.N},hasFeature:function(){return features.U6},hasFeatures:function(){return features.ag},instrumentGLContext:function(){return esm.yW},isWebGL:function(){return esm.UF},isWebGL2:function(){return esm.D0},log:function(){return esm.cM},lumaStats:function(){return init.lR},normalizeShaderModule:function(){return shader_module.v},pbr:function(){return pbr.b},phongLighting:function(){return phong_lighting.s},picking:function(){return picking.q},project:function(){return project},readPixelsToArray:function(){return copy_and_blit.z6},readPixelsToBuffer:function(){return copy_and_blit.Jb},resetParameters:function(){return esm.kL},setParameters:function(){return esm.dR},uid:function(){return utils.hQ},withParameters:function(){return esm.s8}});var esm=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js"),init=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/init.js"),webgl_features_table=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),features=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),buffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/buffer.js"),program=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/program.js"),framebuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/framebuffer.js"),renderbuffer=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/renderbuffer.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),texture_cube=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-cube.js"),shader=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/shader.js"),clear=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/clear.js"),copy_and_blit=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/copy-and-blit.js"),texture_utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/webgl-utils/texture-utils.js"),texture_3d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-3d.js"),transform_feedback=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/transform-feedback.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),utils=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");const INDEX_OFFSETS={x:[2,0,1],y:[0,1,2],z:[1,2,0]};class TruncatedConeGeometry extends geometry.Z{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,utils.hQ)("truncated-code-geometry")}=props,{indices:indices,attributes:attributes}=function tesselateTruncatedCone(props){const{bottomRadius:bottomRadius=0,topRadius:topRadius=0,height:height=1,nradial:nradial=10,nvertical:nvertical=10,verticalAxis:verticalAxis="y",topCap:topCap=!1,bottomCap:bottomCap=!1}=props,extra=(topCap?2:0)+(bottomCap?2:0),numVertices=(nradial+1)*(nvertical+1+extra),slant=Math.atan2(bottomRadius-topRadius,height),msin=Math.sin,mcos=Math.cos,mpi=Math.PI,cosSlant=mcos(slant),sinSlant=msin(slant),start=topCap?-2:0,end=nvertical+(bottomCap?2:0),vertsAroundEdge=nradial+1,indices=new Uint16Array(nradial*(nvertical+extra)*6),indexOffset=INDEX_OFFSETS[verticalAxis],positions=new Float32Array(3*numVertices),normals=new Float32Array(3*numVertices),texCoords=new Float32Array(2*numVertices);let i3=0,i2=0;for(let i=start;i<=end;i++){let ringRadius,v=i/nvertical,y=height*v;i<0?(y=0,v=1,ringRadius=bottomRadius):i>nvertical?(y=height,v=1,ringRadius=topRadius):ringRadius=bottomRadius+i/nvertical*(topRadius-bottomRadius),-2!==i&&i!==nvertical+2||(ringRadius=0,v=0),y-=height/2;for(let j=0;jnvertical?0:sin*cosSlant,normals[i3+indexOffset[1]]=i<0?-1:i>nvertical?1:sinSlant,normals[i3+indexOffset[2]]=i<0||i>nvertical?0:cos*cosSlant,texCoords[i2+0]=j/nradial,texCoords[i2+1]=v,i2+=2,i3+=3}}for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,utils.hQ)("cone-geometry"),radius:radius=1,cap:cap=!0}=props;super({...props,id:id,topRadius:0,topCap:Boolean(cap),bottomCap:Boolean(cap),bottomRadius:radius})}}class CylinderGeometry extends TruncatedConeGeometry{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,utils.hQ)("cylinder-geometry"),radius:radius=1}=props;super({...props,id:id,bottomRadius:radius,topRadius:radius})}}var vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js");const ICO_POSITIONS=[-1,0,0,0,1,0,0,0,-1,0,0,1,0,-1,0,1,0,0],ICO_INDICES=[3,4,5,3,5,1,3,1,0,3,0,4,4,0,2,4,2,5,2,0,1,5,2,1];class IcoSphereGeometry extends geometry.Z{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,utils.hQ)("ico-sphere-geometry")}=props,{indices:indices,attributes:attributes}=function tesselateIcosaHedron(props){const{iterations:iterations=0}=props,PI=Math.PI,PI2=2*PI,positions=[...ICO_POSITIONS];let indices=[...ICO_INDICES];positions.push(),indices.push();const getMiddlePoint=(()=>{const pointMemo={};return(i1,i2)=>{const maxi=(i1*=3)>(i2*=3)?i1:i2,key="".concat(i1=0;i-=3){const i1=indices[i+0],i2=indices[i+1],i3=indices[i+2],in1=3*i1,in2=3*i2,in3=3*i3,iu1=2*i1,iu2=2*i2,iu3=2*i3,x1=positions[in1+0],y1=positions[in1+1],z1=positions[in1+2],v1=Math.acos(z1/Math.sqrt(x1*x1+y1*y1+z1*z1))/PI,u1=1-(Math.atan2(y1,x1)+PI)/PI2,x2=positions[in2+0],y2=positions[in2+1],z2=positions[in2+2],v2=Math.acos(z2/Math.sqrt(x2*x2+y2*y2+z2*z2))/PI,u2=1-(Math.atan2(y2,x2)+PI)/PI2,x3=positions[in3+0],y3=positions[in3+1],z3=positions[in3+2],v3=Math.acos(z3/Math.sqrt(x3*x3+y3*y3+z3*z3))/PI,u3=1-(Math.atan2(y3,x3)+PI)/PI2,vec1=[x3-x2,y3-y2,z3-z2],vec2=[x1-x2,y1-y2,z1-z2],normal=new vector3.Z(vec1).cross(vec2).normalize();let newIndex;(0===u1||0===u2||0===u3)&&(0===u1||u1>.5)&&(0===u2||u2>.5)&&(0===u3||u3>.5)&&(positions.push(positions[in1+0],positions[in1+1],positions[in1+2]),newIndex=positions.length/3-1,indices.push(newIndex),texCoords[2*newIndex+0]=1,texCoords[2*newIndex+1]=v1,normals[3*newIndex+0]=normal.x,normals[3*newIndex+1]=normal.y,normals[3*newIndex+2]=normal.z,positions.push(positions[in2+0],positions[in2+1],positions[in2+2]),newIndex=positions.length/3-1,indices.push(newIndex),texCoords[2*newIndex+0]=1,texCoords[2*newIndex+1]=v2,normals[3*newIndex+0]=normal.x,normals[3*newIndex+1]=normal.y,normals[3*newIndex+2]=normal.z,positions.push(positions[in3+0],positions[in3+1],positions[in3+2]),newIndex=positions.length/3-1,indices.push(newIndex),texCoords[2*newIndex+0]=1,texCoords[2*newIndex+1]=v3,normals[3*newIndex+0]=normal.x,normals[3*newIndex+1]=normal.y,normals[3*newIndex+2]=normal.z),normals[in1+0]=normals[in2+0]=normals[in3+0]=normal.x,normals[in1+1]=normals[in2+1]=normals[in3+1]=normal.y,normals[in1+2]=normals[in2+2]=normals[in3+2]=normal.z,texCoords[iu1+0]=u1,texCoords[iu1+1]=v1,texCoords[iu2+0]=u2,texCoords[iu2+1]=v2,texCoords[iu3+0]=u3,texCoords[iu3+1]=v3}return{indices:{size:1,value:new Uint16Array(indices)},attributes:{POSITION:{size:3,value:new Float32Array(positions)},NORMAL:{size:3,value:new Float32Array(normals)},TEXCOORD_0:{size:2,value:new Float32Array(texCoords)}}}}(props);super({...props,id:id,indices:indices,attributes:{...attributes,...props.attributes}})}}class PlaneGeometry extends geometry.Z{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,utils.hQ)("plane-geometry")}=props,{indices:indices,attributes:attributes}=function tesselatePlane(props){const{type:type="x,y",offset:offset=0,flipCull:flipCull=!1,unpack:unpack=!1}=props,coords=type.split(",");let c1len=props["".concat(coords[0],"len")]||1;const c2len=props["".concat(coords[1],"len")]||1,subdivisions1=props["n".concat(coords[0])]||1,subdivisions2=props["n".concat(coords[1])]||1,numVertices=(subdivisions1+1)*(subdivisions2+1),positions=new Float32Array(3*numVertices),normals=new Float32Array(3*numVertices),texCoords=new Float32Array(2*numVertices);flipCull&&(c1len=-c1len);let i2=0,i3=0;for(let z=0;z<=subdivisions2;z++)for(let x=0;x<=subdivisions1;x++){const u=x/subdivisions1,v=z/subdivisions2;switch(texCoords[i2+0]=flipCull?1-u:u,texCoords[i2+1]=v,type){case"x,y":positions[i3+0]=c1len*u-.5*c1len,positions[i3+1]=c2len*v-.5*c2len,positions[i3+2]=offset,normals[i3+0]=0,normals[i3+1]=0,normals[i3+2]=flipCull?1:-1;break;case"x,z":positions[i3+0]=c1len*u-.5*c1len,positions[i3+1]=offset,positions[i3+2]=c2len*v-.5*c2len,normals[i3+0]=0,normals[i3+1]=flipCull?1:-1,normals[i3+2]=0;break;case"y,z":positions[i3+0]=offset,positions[i3+1]=c1len*u-.5*c1len,positions[i3+2]=c2len*v-.5*c2len,normals[i3+0]=flipCull?1:-1,normals[i3+1]=0,normals[i3+2]=0;break;default:throw new Error("PlaneGeometry: unknown type")}i2+=2,i3+=3}const numVertsAcross=subdivisions1+1,indices=new Uint16Array(subdivisions1*subdivisions2*6);for(let z=0;z0&&void 0!==arguments[0]?arguments[0]:DEFAULT_MODULE_OPTIONS;const uniforms={};return void 0!==opts.modelMatrix&&(uniforms.modelMatrix=opts.modelMatrix),void 0!==opts.viewMatrix&&(uniforms.viewMatrix=opts.viewMatrix),void 0!==opts.projectionMatrix&&(uniforms.projectionMatrix=opts.projectionMatrix),void 0!==opts.cameraPositionWorld&&(uniforms.cameraPositionWorld=opts.cameraPositionWorld),void 0===opts.projectionMatrix&&void 0===opts.viewMatrix||(uniforms.viewProjectionMatrix=new matrix4.Z(opts.projectionMatrix).multiplyRight(opts.viewMatrix)),uniforms},vs:"".concat(common,"\nuniform mat4 modelMatrix;\nuniform mat4 viewMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewProjectionMatrix;\nuniform vec3 cameraPositionWorld;\n\nstruct World {\n vec3 position;\n vec3 normal;\n};\n\nWorld world;\n\nvoid project_setPosition(vec4 position) {\n project_vPositionWorld = position;\n}\n\nvoid project_setNormal(vec3 normal) {\n project_vNormalWorld = normal;\n}\n\nvoid project_setPositionAndNormal_World(vec3 position, vec3 normal) {\n world.position = position;\n world.normal = normal;\n}\n\nvoid project_setPositionAndNormal_Model(vec3 position, vec3 normal) {\n world.position = (modelMatrix * vec4(position, 1.)).xyz;\n world.normal = mat3(modelMatrix) * normal;\n}\n\nvec4 project_model_to_clipspace(vec4 position) {\n return viewProjectionMatrix * modelMatrix * position;\n}\n\nvec4 project_model_to_clipspace(vec3 position) {\n return viewProjectionMatrix * modelMatrix * vec4(position, 1.);\n}\n\nvec4 project_world_to_clipspace(vec3 position) {\n return viewProjectionMatrix * vec4(position, 1.);\n}\n\nvec4 project_view_to_clipspace(vec3 position) {\n return projectionMatrix * vec4(position, 1.);\n}\n\nvec4 project_to_clipspace(vec3 position) {\n return viewProjectionMatrix * vec4(position, 1.);\n}\n"),fs:"\n".concat(common)},dirlight_DEFAULT_MODULE_OPTIONS={lightDirection:new Float32Array([1,1,2])};const dirlight={name:"dirlight",vs:null,fs:"uniform vec3 dirlight_uLightDirection;\nvec4 dirlight_filterColor(vec4 color) {\n vec3 normal = project_getNormal_World();\n float d = abs(dot(normalize(normal), normalize(dirlight_uLightDirection)));\n return vec4(color.rgb * d, color.a);\n}\n",getUniforms:function dirlight_getUniforms(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dirlight_DEFAULT_MODULE_OPTIONS;const uniforms={};return opts.lightDirection&&(uniforms.dirlight_uLightDirection=opts.lightDirection),uniforms},dependencies:[project]};var shader_module=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/lib/shader-module.js"),fp32=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/fp32/fp32.js"),fp64=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/fp64/fp64.js"),picking=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/picking/picking.js"),phong_lighting=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js"),pbr=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/pbr/pbr.js"),assert=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/assert.js")},"./node_modules/@luma.gl/engine/dist/esm/geometries/cube-geometry.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return CubeGeometry}});var _geometry_geometry__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");const CUBE_INDICES=new Uint16Array([0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]),CUBE_POSITIONS=new Float32Array([-1,-1,1,1,-1,1,1,1,1,-1,1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1]),CUBE_NORMALS=new Float32Array([0,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0]),CUBE_TEX_COORDS=new Float32Array([0,0,1,0,1,1,0,1,1,0,1,1,0,1,0,0,0,1,0,0,1,0,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,0,1]),ATTRIBUTES={POSITION:{size:3,value:new Float32Array(CUBE_POSITIONS)},NORMAL:{size:3,value:new Float32Array(CUBE_NORMALS)},TEXCOORD_0:{size:2,value:new Float32Array(CUBE_TEX_COORDS)}};class CubeGeometry extends _geometry_geometry__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.hQ)("cube-geometry")}=props;super({...props,id:id,indices:{size:1,value:new Uint16Array(CUBE_INDICES)},attributes:{...ATTRIBUTES,...props.attributes}})}}},"./node_modules/@luma.gl/engine/dist/esm/geometries/sphere-geometry.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return SphereGeometry}});var _geometry_geometry__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/utils/utils.js");class SphereGeometry extends _geometry_geometry__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:id=(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.hQ)("sphere-geometry")}=props,{indices:indices,attributes:attributes}=function tesselateSphere(props){const{nlat:nlat=10,nlong:nlong=10}=props;let{radius:radius=1}=props;const startLat=0,latRange=Math.PI-startLat,startLong=0,longRange=2*Math.PI-startLong,numVertices=(nlat+1)*(nlong+1);if("number"==typeof radius){const value=radius;radius=(n1,n2,n3,u,v)=>value}const positions=new Float32Array(3*numVertices),normals=new Float32Array(3*numVertices),texCoords=new Float32Array(2*numVertices),indices=new(numVertices>65535?Uint32Array:Uint16Array)(nlat*nlong*6);for(let y=0;y<=nlat;y++)for(let x=0;x<=nlong;x++){const u=x/nlong,v=y/nlat,index=x+y*(nlong+1),i2=2*index,i3=3*index,theta=longRange*u,phi=latRange*v,sinTheta=Math.sin(theta),cosTheta=Math.cos(theta),sinPhi=Math.sin(phi),ux=cosTheta*sinPhi,uy=Math.cos(phi),uz=sinTheta*sinPhi,r=radius(ux,uy,uz,u,v);positions[i3+0]=r*ux,positions[i3+1]=r*uy,positions[i3+2]=r*uz,normals[i3+0]=ux,normals[i3+1]=uy,normals[i3+2]=uz,texCoords[i2+0]=u,texCoords[i2+1]=1-v}const numVertsAround=nlong+1;for(let x=0;x-1===coord?0:coord));super(gl,Object.assign({},opts,{vs:"attribute vec2 aClipSpacePosition;\nattribute vec2 aTexCoord;\nattribute vec2 aCoordinate;\n\nvarying vec2 position;\nvarying vec2 coordinate;\nvarying vec2 uv;\n\nvoid main(void) {\n gl_Position = vec4(aClipSpacePosition, 0., 1.);\n position = aClipSpacePosition;\n coordinate = aCoordinate;\n uv = aTexCoord;\n}\n",geometry:new _geometry_geometry__WEBPACK_IMPORTED_MODULE_1__.Z({drawMode:5,vertexCount:4,attributes:{aClipSpacePosition:{size:2,value:new Float32Array(POSITIONS)},aTexCoord:{size:2,value:new Float32Array(TEX_COORDS)},aCoordinate:{size:2,value:new Float32Array(TEX_COORDS)}}})})),this.setVertexCount(4)}}},"./node_modules/@luma.gl/experimental/dist/esm/gltf/gltf-material-parser.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return GLTFMaterialParser}});var _luma_gl_webgl__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/features.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/features/webgl-features-table.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@luma.gl/gltools/dist/esm/index.js");class GLTFMaterialParser{constructor(gl,_ref){let{attributes:attributes,material:material,pbrDebug:pbrDebug,imageBasedLightingEnvironment:imageBasedLightingEnvironment,lights:lights,useTangents:useTangents}=_ref;this.gl=gl,this.defines={MANUAL_SRGB:1,SRGB_FAST_APPROXIMATION:1},(0,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_0__.U6)(gl,_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_1__.h.GLSL_TEXTURE_LOD)&&(this.defines.USE_TEX_LOD=1),this.uniforms={u_Camera:[0,0,0],u_MetallicRoughnessValues:[1,1]},this.parameters={},this.generatedTextures=[],imageBasedLightingEnvironment&&(this.uniforms.u_DiffuseEnvSampler=imageBasedLightingEnvironment.getDiffuseEnvSampler(),this.uniforms.u_SpecularEnvSampler=imageBasedLightingEnvironment.getSpecularEnvSampler(),this.uniforms.u_brdfLUT=imageBasedLightingEnvironment.getBrdfTexture(),this.uniforms.u_ScaleIBLAmbient=[1,1]),pbrDebug&&(this.uniforms.u_ScaleDiffBaseMR=[0,0,0,0],this.uniforms.u_ScaleFGDSpec=[0,0,0,0]),this.defineIfPresent(attributes.NORMAL,"HAS_NORMALS"),this.defineIfPresent(attributes.TANGENT&&useTangents,"HAS_TANGENTS"),this.defineIfPresent(attributes.TEXCOORD_0,"HAS_UV"),this.defineIfPresent(imageBasedLightingEnvironment,"USE_IBL"),this.defineIfPresent(lights,"USE_LIGHTS"),this.defineIfPresent(pbrDebug,"PBR_DEBUG"),material&&this.parseMaterial(material)}defineIfPresent(value,name){value&&(this.defines[name]=1)}parseTexture(gltfTexture,name){let define=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const parameters=gltfTexture.texture&&gltfTexture.texture.sampler&&gltfTexture.texture.sampler.parameters||{},image=gltfTexture.texture.source.image;let textureOptions,specialTextureParameters={};image.compressed?(textureOptions=image,specialTextureParameters={[this.gl.TEXTURE_MIN_FILTER]:image.data.length>1?this.gl.LINEAR_MIPMAP_NEAREST:this.gl.LINEAR}):textureOptions={data:image};const texture=new _luma_gl_webgl__WEBPACK_IMPORTED_MODULE_2__.Z(this.gl,{id:gltfTexture.name||gltfTexture.id,parameters:{...parameters,...specialTextureParameters},pixelStore:{[this.gl.UNPACK_FLIP_Y_WEBGL]:!1},...textureOptions});this.uniforms[name]=texture,this.defineIfPresent(define,define),this.generatedTextures.push(texture)}parsePbrMetallicRoughness(pbrMetallicRoughness){pbrMetallicRoughness.baseColorTexture&&this.parseTexture(pbrMetallicRoughness.baseColorTexture,"u_BaseColorSampler","HAS_BASECOLORMAP"),this.uniforms.u_BaseColorFactor=pbrMetallicRoughness.baseColorFactor||[1,1,1,1],pbrMetallicRoughness.metallicRoughnessTexture&&this.parseTexture(pbrMetallicRoughness.metallicRoughnessTexture,"u_MetallicRoughnessSampler","HAS_METALROUGHNESSMAP");const{metallicFactor:metallicFactor=1,roughnessFactor:roughnessFactor=1}=pbrMetallicRoughness;this.uniforms.u_MetallicRoughnessValues=[metallicFactor,roughnessFactor]}parseMaterial(material){if(this.uniforms.pbr_uUnlit=Boolean(material.unlit),material.pbrMetallicRoughness&&this.parsePbrMetallicRoughness(material.pbrMetallicRoughness),material.normalTexture){this.parseTexture(material.normalTexture,"u_NormalSampler","HAS_NORMALMAP");const{scale:scale=1}=material.normalTexture;this.uniforms.u_NormalScale=scale}if(material.occlusionTexture){this.parseTexture(material.occlusionTexture,"u_OcclusionSampler","HAS_OCCLUSIONMAP");const{strength:strength=1}=material.occlusionTexture;this.uniforms.u_OcclusionStrength=strength}if(material.emissiveTexture&&(this.parseTexture(material.emissiveTexture,"u_EmissiveSampler","HAS_EMISSIVEMAP"),this.uniforms.u_EmissiveFactor=material.emissiveFactor||[0,0,0]),"MASK"===material.alphaMode){const{alphaCutoff:alphaCutoff=.5}=material;this.defines.ALPHA_CUTOFF=1,this.uniforms.u_AlphaCutoff=alphaCutoff}else"BLEND"===material.alphaMode&&(_luma_gl_webgl__WEBPACK_IMPORTED_MODULE_3__.cM.warn("BLEND alphaMode might not work well because it requires mesh sorting")(),Object.assign(this.parameters,{blend:!0,blendEquation:this.gl.FUNC_ADD,blendFunc:[this.gl.SRC_ALPHA,this.gl.ONE_MINUS_SRC_ALPHA,this.gl.ONE,this.gl.ONE_MINUS_SRC_ALPHA]}))}delete(){this.generatedTextures.forEach((texture=>texture.delete()))}}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/fp64/fp64.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function fp64ify(a){let out=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],startIndex=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const hiPart=Math.fround(a),loPart=a-hiPart;return out[startIndex]=hiPart,out[startIndex+1]=loPart,out}function fp64LowPart(a){return a-Math.fround(a)}function fp64ifyMatrix4(matrix){const matrixFP64=new Float32Array(32);for(let i=0;i<4;++i)for(let j=0;j<4;++j){const index=4*i+j;fp64ify(matrix[4*j+i],matrixFP64,2*index)}return matrixFP64}__webpack_require__.d(__webpack_exports__,{hO:function(){return fp64},n2:function(){return fp64arithmetic}});const CONST_UNIFORMS={ONE:1};const fp64arithmetic={name:"fp64-arithmetic",vs:"uniform float ONE;\nvec2 split(float a) {\n const float SPLIT = 4097.0;\n float t = a * SPLIT;\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float a_hi = t * ONE - (t - a);\n float a_lo = a * ONE - a_hi;\n#else\n float a_hi = t - (t - a);\n float a_lo = a - a_hi;\n#endif\n return vec2(a_hi, a_lo);\n}\nvec2 split2(vec2 a) {\n vec2 b = split(a.x);\n b.y += a.y;\n return b;\n}\nvec2 quickTwoSum(float a, float b) {\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float sum = (a + b) * ONE;\n float err = b - (sum - a) * ONE;\n#else\n float sum = a + b;\n float err = b - (sum - a);\n#endif\n return vec2(sum, err);\n}\nvec2 twoSum(float a, float b) {\n float s = (a + b);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float v = (s * ONE - a) * ONE;\n float err = (a - (s - v) * ONE) * ONE * ONE * ONE + (b - v);\n#else\n float v = s - a;\n float err = (a - (s - v)) + (b - v);\n#endif\n return vec2(s, err);\n}\n\nvec2 twoSub(float a, float b) {\n float s = (a - b);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float v = (s * ONE - a) * ONE;\n float err = (a - (s - v) * ONE) * ONE * ONE * ONE - (b + v);\n#else\n float v = s - a;\n float err = (a - (s - v)) - (b + v);\n#endif\n return vec2(s, err);\n}\n\nvec2 twoSqr(float a) {\n float prod = a * a;\n vec2 a_fp64 = split(a);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float err = ((a_fp64.x * a_fp64.x - prod) * ONE + 2.0 * a_fp64.x *\n a_fp64.y * ONE * ONE) + a_fp64.y * a_fp64.y * ONE * ONE * ONE;\n#else\n float err = ((a_fp64.x * a_fp64.x - prod) + 2.0 * a_fp64.x * a_fp64.y) + a_fp64.y * a_fp64.y;\n#endif\n return vec2(prod, err);\n}\n\nvec2 twoProd(float a, float b) {\n float prod = a * b;\n vec2 a_fp64 = split(a);\n vec2 b_fp64 = split(b);\n float err = ((a_fp64.x * b_fp64.x - prod) + a_fp64.x * b_fp64.y +\n a_fp64.y * b_fp64.x) + a_fp64.y * b_fp64.y;\n return vec2(prod, err);\n}\n\nvec2 sum_fp64(vec2 a, vec2 b) {\n vec2 s, t;\n s = twoSum(a.x, b.x);\n t = twoSum(a.y, b.y);\n s.y += t.x;\n s = quickTwoSum(s.x, s.y);\n s.y += t.y;\n s = quickTwoSum(s.x, s.y);\n return s;\n}\n\nvec2 sub_fp64(vec2 a, vec2 b) {\n vec2 s, t;\n s = twoSub(a.x, b.x);\n t = twoSub(a.y, b.y);\n s.y += t.x;\n s = quickTwoSum(s.x, s.y);\n s.y += t.y;\n s = quickTwoSum(s.x, s.y);\n return s;\n}\n\nvec2 mul_fp64(vec2 a, vec2 b) {\n vec2 prod = twoProd(a.x, b.x);\n prod.y += a.x * b.y;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n prod = split2(prod);\n#endif\n prod = quickTwoSum(prod.x, prod.y);\n prod.y += a.y * b.x;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n prod = split2(prod);\n#endif\n prod = quickTwoSum(prod.x, prod.y);\n return prod;\n}\n\nvec2 div_fp64(vec2 a, vec2 b) {\n float xn = 1.0 / b.x;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n vec2 yn = mul_fp64(a, vec2(xn, 0));\n#else\n vec2 yn = a * xn;\n#endif\n float diff = (sub_fp64(a, mul_fp64(b, yn))).x;\n vec2 prod = twoProd(xn, diff);\n return sum_fp64(yn, prod);\n}\n\nvec2 sqrt_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) return vec2(0.0, 0.0);\n if (a.x < 0.0) return vec2(0.0 / 0.0, 0.0 / 0.0);\n\n float x = 1.0 / sqrt(a.x);\n float yn = a.x * x;\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n vec2 yn_sqr = twoSqr(yn) * ONE;\n#else\n vec2 yn_sqr = twoSqr(yn);\n#endif\n float diff = sub_fp64(a, yn_sqr).x;\n vec2 prod = twoProd(x * 0.5, diff);\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n return sum_fp64(split(yn), prod);\n#else\n return sum_fp64(vec2(yn, 0.0), prod);\n#endif\n}\n",fs:null,getUniforms:function getUniforms(){return CONST_UNIFORMS},fp64ify:fp64ify,fp64LowPart:fp64LowPart,fp64ifyMatrix4:fp64ifyMatrix4},fp64={name:"fp64",vs:"const vec2 E_FP64 = vec2(2.7182817459106445e+00, 8.254840366817007e-08);\nconst vec2 LOG2_FP64 = vec2(0.6931471824645996e+00, -1.9046542121259336e-09);\nconst vec2 PI_FP64 = vec2(3.1415927410125732, -8.742278012618954e-8);\nconst vec2 TWO_PI_FP64 = vec2(6.2831854820251465, -1.7484556025237907e-7);\nconst vec2 PI_2_FP64 = vec2(1.5707963705062866, -4.371139006309477e-8);\nconst vec2 PI_4_FP64 = vec2(0.7853981852531433, -2.1855695031547384e-8);\nconst vec2 PI_16_FP64 = vec2(0.19634954631328583, -5.463923757886846e-9);\nconst vec2 PI_16_2_FP64 = vec2(0.39269909262657166, -1.0927847515773692e-8);\nconst vec2 PI_16_3_FP64 = vec2(0.5890486240386963, -1.4906100798128818e-9);\nconst vec2 PI_180_FP64 = vec2(0.01745329238474369, 1.3519960498364902e-10);\n\nconst vec2 SIN_TABLE_0_FP64 = vec2(0.19509032368659973, -1.6704714833615242e-9);\nconst vec2 SIN_TABLE_1_FP64 = vec2(0.3826834261417389, 6.22335089017767e-9);\nconst vec2 SIN_TABLE_2_FP64 = vec2(0.5555702447891235, -1.1769521357507529e-8);\nconst vec2 SIN_TABLE_3_FP64 = vec2(0.7071067690849304, 1.2101617041793133e-8);\n\nconst vec2 COS_TABLE_0_FP64 = vec2(0.9807852506637573, 2.9739473106360492e-8);\nconst vec2 COS_TABLE_1_FP64 = vec2(0.9238795042037964, 2.8307490351764386e-8);\nconst vec2 COS_TABLE_2_FP64 = vec2(0.8314695954322815, 1.6870263741530778e-8);\nconst vec2 COS_TABLE_3_FP64 = vec2(0.7071067690849304, 1.2101617152815436e-8);\n\nconst vec2 INVERSE_FACTORIAL_3_FP64 = vec2(1.666666716337204e-01, -4.967053879312289e-09);\nconst vec2 INVERSE_FACTORIAL_4_FP64 = vec2(4.16666679084301e-02, -1.2417634698280722e-09);\nconst vec2 INVERSE_FACTORIAL_5_FP64 = vec2(8.333333767950535e-03, -4.34617203337595e-10);\nconst vec2 INVERSE_FACTORIAL_6_FP64 = vec2(1.3888889225199819e-03, -3.3631094437103215e-11);\nconst vec2 INVERSE_FACTORIAL_7_FP64 = vec2(1.9841270113829523e-04, -2.725596874933456e-12);\nconst vec2 INVERSE_FACTORIAL_8_FP64 = vec2(2.4801587642286904e-05, -3.406996025904184e-13);\nconst vec2 INVERSE_FACTORIAL_9_FP64 = vec2(2.75573188446287533e-06, 3.7935713937038186e-14);\nconst vec2 INVERSE_FACTORIAL_10_FP64 = vec2(2.755731998149713e-07, -7.575112367869873e-15);\n\nfloat nint(float d) {\n if (d == floor(d)) return d;\n return floor(d + 0.5);\n}\n\nvec2 nint_fp64(vec2 a) {\n float hi = nint(a.x);\n float lo;\n vec2 tmp;\n if (hi == a.x) {\n lo = nint(a.y);\n tmp = quickTwoSum(hi, lo);\n } else {\n lo = 0.0;\n if (abs(hi - a.x) == 0.5 && a.y < 0.0) {\n hi -= 1.0;\n }\n tmp = vec2(hi, lo);\n }\n return tmp;\n}\n\nvec2 exp_fp64(vec2 a) {\n\n const int k_power = 4;\n const float k = 16.0;\n\n const float inv_k = 1.0 / k;\n\n if (a.x <= -88.0) return vec2(0.0, 0.0);\n if (a.x >= 88.0) return vec2(1.0 / 0.0, 1.0 / 0.0);\n if (a.x == 0.0 && a.y == 0.0) return vec2(1.0, 0.0);\n if (a.x == 1.0 && a.y == 0.0) return E_FP64;\n\n float m = floor(a.x / LOG2_FP64.x + 0.5);\n vec2 r = sub_fp64(a, mul_fp64(LOG2_FP64, vec2(m, 0.0))) * inv_k;\n vec2 s, t, p;\n\n p = mul_fp64(r, r);\n s = sum_fp64(r, p * 0.5);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_3_FP64);\n\n s = sum_fp64(s, t);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_4_FP64);\n\n s = sum_fp64(s, t);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_5_FP64);\n\n\n\n\n\n\n s = sum_fp64(s, t);\n for (int i = 0; i < k_power; i++) {\n s = sum_fp64(s * 2.0, mul_fp64(s, s));\n }\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n s = sum_fp64(s, vec2(ONE, 0.0));\n#else\n s = sum_fp64(s, vec2(1.0, 0.0));\n#endif\n\n return s * pow(2.0, m);\n}\n\nvec2 log_fp64(vec2 a)\n{\n if (a.x == 1.0 && a.y == 0.0) return vec2(0.0, 0.0);\n if (a.x <= 0.0) return vec2(0.0 / 0.0, 0.0 / 0.0);\n vec2 x = vec2(log(a.x), 0.0);\n vec2 s;\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n s = vec2(ONE, 0.0);\n#else\n s = vec2(1.0, 0.0);\n#endif\n\n x = sub_fp64(sum_fp64(x, mul_fp64(a, exp_fp64(-x))), s);\n return x;\n}\n\nvec2 sin_taylor_fp64(vec2 a) {\n vec2 r, s, t, x;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n\n x = -mul_fp64(a, a);\n s = a;\n r = a;\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_3_FP64);\n s = sum_fp64(s, t);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_5_FP64);\n s = sum_fp64(s, t);\n\n\n\n\n\n\n return s;\n}\n\nvec2 cos_taylor_fp64(vec2 a) {\n vec2 r, s, t, x;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(1.0, 0.0);\n }\n\n x = -mul_fp64(a, a);\n r = x;\n s = sum_fp64(vec2(1.0, 0.0), r * 0.5);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_4_FP64);\n s = sum_fp64(s, t);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_6_FP64);\n s = sum_fp64(s, t);\n\n\n\n\n\n\n return s;\n}\n\nvoid sincos_taylor_fp64(vec2 a, out vec2 sin_t, out vec2 cos_t) {\n if (a.x == 0.0 && a.y == 0.0) {\n sin_t = vec2(0.0, 0.0);\n cos_t = vec2(1.0, 0.0);\n }\n\n sin_t = sin_taylor_fp64(a);\n cos_t = sqrt_fp64(sub_fp64(vec2(1.0, 0.0), mul_fp64(sin_t, sin_t)));\n}\n\nvec2 sin_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n\n if (k == 0) {\n if (j == 0) {\n return sin_taylor_fp64(t);\n } else if (j == 1) {\n return cos_taylor_fp64(t);\n } else if (j == -1) {\n return -cos_taylor_fp64(t);\n } else {\n return -sin_taylor_fp64(t);\n }\n }\n\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n\n vec2 sin_t, cos_t;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n\n\n vec2 result = vec2(0.0, 0.0);\n if (j == 0) {\n if (k > 0) {\n result = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n }\n } else if (j == 1) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n result = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n } else if (j == -1) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n } else {\n result = -sum_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n }\n } else {\n if (k > 0) {\n result = -sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(v, cos_t), mul_fp64(u, sin_t));\n }\n }\n\n return result;\n}\n\nvec2 cos_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(1.0, 0.0);\n }\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n\n if (k == 0) {\n if (j == 0) {\n return cos_taylor_fp64(t);\n } else if (j == 1) {\n return -sin_taylor_fp64(t);\n } else if (j == -1) {\n return sin_taylor_fp64(t);\n } else {\n return -cos_taylor_fp64(t);\n }\n }\n\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n\n vec2 sin_t, cos_t;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n vec2 result = vec2(0.0, 0.0);\n if (j == 0) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n result = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n } else if (j == 1) {\n if (k > 0) {\n result = -sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(v, cos_t), mul_fp64(u, sin_t));\n }\n } else if (j == -1) {\n if (k > 0) {\n result = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n }\n } else {\n if (k > 0) {\n result = sub_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n } else {\n result = -sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n }\n\n return result;\n}\n\nvec2 tan_fp64(vec2 a) {\n vec2 sin_a;\n vec2 cos_a;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n vec2 sin_t, cos_t;\n vec2 s, c;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n if (k == 0) {\n s = sin_t;\n c = cos_t;\n } else {\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n if (k > 0) {\n s = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n c = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n s = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n c = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n }\n\n if (j == 0) {\n sin_a = s;\n cos_a = c;\n } else if (j == 1) {\n sin_a = c;\n cos_a = -s;\n } else if (j == -1) {\n sin_a = -c;\n cos_a = s;\n } else {\n sin_a = -s;\n cos_a = -c;\n }\n return div_fp64(sin_a, cos_a);\n}\n\nvec2 radians_fp64(vec2 degree) {\n return mul_fp64(degree, PI_180_FP64);\n}\n\nvec2 mix_fp64(vec2 a, vec2 b, float x) {\n vec2 range = sub_fp64(b, a);\n return sum_fp64(a, mul_fp64(range, vec2(x, 0.0)));\n}\n\nvoid vec2_sum_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = sum_fp64(a[0], b[0]);\n out_val[1] = sum_fp64(a[1], b[1]);\n}\n\nvoid vec2_sub_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = sub_fp64(a[0], b[0]);\n out_val[1] = sub_fp64(a[1], b[1]);\n}\n\nvoid vec2_mul_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = mul_fp64(a[0], b[0]);\n out_val[1] = mul_fp64(a[1], b[1]);\n}\n\nvoid vec2_div_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = div_fp64(a[0], b[0]);\n out_val[1] = div_fp64(a[1], b[1]);\n}\n\nvoid vec2_mix_fp64(vec2 x[2], vec2 y[2], float a, out vec2 out_val[2]) {\n vec2 range[2];\n vec2_sub_fp64(y, x, range);\n vec2 portion[2];\n portion[0] = range[0] * a;\n portion[1] = range[1] * a;\n vec2_sum_fp64(x, portion, out_val);\n}\n\nvec2 vec2_length_fp64(vec2 x[2]) {\n return sqrt_fp64(sum_fp64(mul_fp64(x[0], x[0]), mul_fp64(x[1], x[1])));\n}\n\nvoid vec2_normalize_fp64(vec2 x[2], out vec2 out_val[2]) {\n vec2 length = vec2_length_fp64(x);\n vec2 length_vec2[2];\n length_vec2[0] = length;\n length_vec2[1] = length;\n\n vec2_div_fp64(x, length_vec2, out_val);\n}\n\nvec2 vec2_distance_fp64(vec2 x[2], vec2 y[2]) {\n vec2 diff[2];\n vec2_sub_fp64(x, y, diff);\n return vec2_length_fp64(diff);\n}\n\nvec2 vec2_dot_fp64(vec2 a[2], vec2 b[2]) {\n vec2 v[2];\n\n v[0] = mul_fp64(a[0], b[0]);\n v[1] = mul_fp64(a[1], b[1]);\n\n return sum_fp64(v[0], v[1]);\n}\nvoid vec3_sub_fp64(vec2 a[3], vec2 b[3], out vec2 out_val[3]) {\n for (int i = 0; i < 3; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvoid vec3_sum_fp64(vec2 a[3], vec2 b[3], out vec2 out_val[3]) {\n for (int i = 0; i < 3; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvec2 vec3_length_fp64(vec2 x[3]) {\n return sqrt_fp64(sum_fp64(sum_fp64(mul_fp64(x[0], x[0]), mul_fp64(x[1], x[1])),\n mul_fp64(x[2], x[2])));\n}\n\nvec2 vec3_distance_fp64(vec2 x[3], vec2 y[3]) {\n vec2 diff[3];\n vec3_sub_fp64(x, y, diff);\n return vec3_length_fp64(diff);\n}\nvoid vec4_fp64(vec4 a, out vec2 out_val[4]) {\n out_val[0].x = a[0];\n out_val[0].y = 0.0;\n\n out_val[1].x = a[1];\n out_val[1].y = 0.0;\n\n out_val[2].x = a[2];\n out_val[2].y = 0.0;\n\n out_val[3].x = a[3];\n out_val[3].y = 0.0;\n}\n\nvoid vec4_scalar_mul_fp64(vec2 a[4], vec2 b, out vec2 out_val[4]) {\n out_val[0] = mul_fp64(a[0], b);\n out_val[1] = mul_fp64(a[1], b);\n out_val[2] = mul_fp64(a[2], b);\n out_val[3] = mul_fp64(a[3], b);\n}\n\nvoid vec4_sum_fp64(vec2 a[4], vec2 b[4], out vec2 out_val[4]) {\n for (int i = 0; i < 4; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvoid vec4_dot_fp64(vec2 a[4], vec2 b[4], out vec2 out_val) {\n vec2 v[4];\n\n v[0] = mul_fp64(a[0], b[0]);\n v[1] = mul_fp64(a[1], b[1]);\n v[2] = mul_fp64(a[2], b[2]);\n v[3] = mul_fp64(a[3], b[3]);\n\n out_val = sum_fp64(sum_fp64(v[0], v[1]), sum_fp64(v[2], v[3]));\n}\n\nvoid mat4_vec4_mul_fp64(vec2 b[16], vec2 a[4], out vec2 out_val[4]) {\n vec2 tmp[4];\n\n for (int i = 0; i < 4; i++)\n {\n for (int j = 0; j < 4; j++)\n {\n tmp[j] = b[j + i * 4];\n }\n vec4_dot_fp64(a, tmp, out_val[i]);\n }\n}\n",fs:null,dependencies:[fp64arithmetic],fp64ify:fp64ify,fp64LowPart:fp64LowPart,fp64ifyMatrix4:fp64ifyMatrix4}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/lights/lights.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return lights}});var lights_glsl="#if (defined(SHADER_TYPE_FRAGMENT) && defined(LIGHTING_FRAGMENT)) || (defined(SHADER_TYPE_VERTEX) && defined(LIGHTING_VERTEX))\n\nstruct AmbientLight {\n vec3 color;\n};\n\nstruct PointLight {\n vec3 color;\n vec3 position;\n vec3 attenuation;\n};\n\nstruct DirectionalLight {\n vec3 color;\n vec3 direction;\n};\n\nuniform AmbientLight lighting_uAmbientLight;\nuniform PointLight lighting_uPointLight[MAX_LIGHTS];\nuniform DirectionalLight lighting_uDirectionalLight[MAX_LIGHTS];\nuniform int lighting_uPointLightCount;\nuniform int lighting_uDirectionalLightCount;\n\nuniform bool lighting_uEnabled;\n\nfloat getPointLightAttenuation(PointLight pointLight, float distance) {\n return pointLight.attenuation.x\n + pointLight.attenuation.y * distance\n + pointLight.attenuation.z * distance * distance;\n}\n\n#endif\n";const INITIAL_MODULE_OPTIONS={lightSources:{}};function convertColor(){let{color:color=[0,0,0],intensity:intensity=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return color.map((component=>component*intensity/255))}const lights={name:"lights",vs:lights_glsl,fs:lights_glsl,getUniforms:function getUniforms(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:INITIAL_MODULE_OPTIONS;if("lightSources"in opts){const{ambientLight:ambientLight,pointLights:pointLights,directionalLights:directionalLights}=opts.lightSources||{};return ambientLight||pointLights&&pointLights.length>0||directionalLights&&directionalLights.length>0?Object.assign({},function getLightSourceUniforms(_ref){let{ambientLight:ambientLight,pointLights:pointLights=[],directionalLights:directionalLights=[]}=_ref;const lightSourceUniforms={};return lightSourceUniforms["lighting_uAmbientLight.color"]=ambientLight?convertColor(ambientLight):[0,0,0],pointLights.forEach(((pointLight,index)=>{lightSourceUniforms["lighting_uPointLight[".concat(index,"].color")]=convertColor(pointLight),lightSourceUniforms["lighting_uPointLight[".concat(index,"].position")]=pointLight.position,lightSourceUniforms["lighting_uPointLight[".concat(index,"].attenuation")]=pointLight.attenuation||[1,0,0]})),lightSourceUniforms.lighting_uPointLightCount=pointLights.length,directionalLights.forEach(((directionalLight,index)=>{lightSourceUniforms["lighting_uDirectionalLight[".concat(index,"].color")]=convertColor(directionalLight),lightSourceUniforms["lighting_uDirectionalLight[".concat(index,"].direction")]=directionalLight.direction})),lightSourceUniforms.lighting_uDirectionalLightCount=directionalLights.length,lightSourceUniforms}({ambientLight:ambientLight,pointLights:pointLights,directionalLights:directionalLights}),{lighting_uEnabled:!0}):{lighting_uEnabled:!1}}if("lights"in opts){const lightSources={pointLights:[],directionalLights:[]};for(const light of opts.lights||[])switch(light.type){case"ambient":lightSources.ambientLight=light;break;case"directional":lightSources.directionalLights.push(light);break;case"point":lightSources.pointLights.push(light)}return getUniforms({lightSources:lightSources})}return{}},defines:{MAX_LIGHTS:3}}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/pbr/pbr.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return pbr}});const pbr={name:"pbr",vs:"uniform mat4 u_MVPMatrix;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_NormalMatrix;\n\nvarying vec3 pbr_vPosition;\nvarying vec2 pbr_vUV;\n\n#ifdef HAS_NORMALS\n# ifdef HAS_TANGENTS\nvarying mat3 pbr_vTBN;\n# else\nvarying vec3 pbr_vNormal;\n# endif\n#endif\n\nvoid pbr_setPositionNormalTangentUV(vec4 position, vec4 normal, vec4 tangent, vec2 uv)\n{\n vec4 pos = u_ModelMatrix * position;\n pbr_vPosition = vec3(pos.xyz) / pos.w;\n\n#ifdef HAS_NORMALS\n#ifdef HAS_TANGENTS\n vec3 normalW = normalize(vec3(u_NormalMatrix * vec4(normal.xyz, 0.0)));\n vec3 tangentW = normalize(vec3(u_ModelMatrix * vec4(tangent.xyz, 0.0)));\n vec3 bitangentW = cross(normalW, tangentW) * tangent.w;\n pbr_vTBN = mat3(tangentW, bitangentW, normalW);\n#else\n pbr_vNormal = normalize(vec3(u_ModelMatrix * vec4(normal.xyz, 0.0)));\n#endif\n#endif\n\n#ifdef HAS_UV\n pbr_vUV = uv;\n#else\n pbr_vUV = vec2(0.,0.);\n#endif\n}\n",fs:"#if defined(USE_TEX_LOD) && !defined(FEATURE_GLSL_TEXTURE_LOD)\n# error PBR fragment shader: Texture LOD is not available\n#endif\n\n#if !defined(HAS_TANGENTS) && !defined(FEATURE_GLSL_DERIVATIVES)\n# error PBR fragment shader: Derivatives are not available\n#endif\n\n\n#if (__VERSION__ < 300)\n #define SMART_FOR(INIT, WEBGL1COND, WEBGL2COND, INCR) for (INIT; WEBGL1COND; INCR)\n#else\n #define SMART_FOR(INIT, WEBGL1COND, WEBGL2COND, INCR) for (INIT; WEBGL2COND; INCR)\n#endif\n\nprecision highp float;\n\nuniform bool pbr_uUnlit;\n\n#ifdef USE_IBL\nuniform samplerCube u_DiffuseEnvSampler;\nuniform samplerCube u_SpecularEnvSampler;\nuniform sampler2D u_brdfLUT;\nuniform vec2 u_ScaleIBLAmbient;\n#endif\n\n#ifdef HAS_BASECOLORMAP\nuniform sampler2D u_BaseColorSampler;\n#endif\n#ifdef HAS_NORMALMAP\nuniform sampler2D u_NormalSampler;\nuniform float u_NormalScale;\n#endif\n#ifdef HAS_EMISSIVEMAP\nuniform sampler2D u_EmissiveSampler;\nuniform vec3 u_EmissiveFactor;\n#endif\n#ifdef HAS_METALROUGHNESSMAP\nuniform sampler2D u_MetallicRoughnessSampler;\n#endif\n#ifdef HAS_OCCLUSIONMAP\nuniform sampler2D u_OcclusionSampler;\nuniform float u_OcclusionStrength;\n#endif\n\n#ifdef ALPHA_CUTOFF\nuniform float u_AlphaCutoff;\n#endif\n\nuniform vec2 u_MetallicRoughnessValues;\nuniform vec4 u_BaseColorFactor;\n\nuniform vec3 u_Camera;\n#ifdef PBR_DEBUG\nuniform vec4 u_ScaleDiffBaseMR;\nuniform vec4 u_ScaleFGDSpec;\n#endif\n\nvarying vec3 pbr_vPosition;\n\nvarying vec2 pbr_vUV;\n\n#ifdef HAS_NORMALS\n#ifdef HAS_TANGENTS\nvarying mat3 pbr_vTBN;\n#else\nvarying vec3 pbr_vNormal;\n#endif\n#endif\n\n\nstruct PBRInfo\n{\n float NdotL;\n float NdotV;\n float NdotH;\n float LdotH;\n float VdotH;\n float perceptualRoughness;\n float metalness;\n vec3 reflectance0;\n vec3 reflectance90;\n float alphaRoughness;\n vec3 diffuseColor;\n vec3 specularColor;\n vec3 n;\n vec3 v;\n};\n\nconst float M_PI = 3.141592653589793;\nconst float c_MinRoughness = 0.04;\n\nvec4 SRGBtoLINEAR(vec4 srgbIn)\n{\n#ifdef MANUAL_SRGB\n#ifdef SRGB_FAST_APPROXIMATION\n vec3 linOut = pow(srgbIn.xyz,vec3(2.2));\n#else\n vec3 bLess = step(vec3(0.04045),srgbIn.xyz);\n vec3 linOut = mix( srgbIn.xyz/vec3(12.92), pow((srgbIn.xyz+vec3(0.055))/vec3(1.055),vec3(2.4)), bLess );\n#endif\n return vec4(linOut,srgbIn.w);;\n#else\n return srgbIn;\n#endif\n}\n\nvec3 getNormal()\n{\n#ifndef HAS_TANGENTS\n vec3 pos_dx = dFdx(pbr_vPosition);\n vec3 pos_dy = dFdy(pbr_vPosition);\n vec3 tex_dx = dFdx(vec3(pbr_vUV, 0.0));\n vec3 tex_dy = dFdy(vec3(pbr_vUV, 0.0));\n vec3 t = (tex_dy.t * pos_dx - tex_dx.t * pos_dy) / (tex_dx.s * tex_dy.t - tex_dy.s * tex_dx.t);\n\n#ifdef HAS_NORMALS\n vec3 ng = normalize(pbr_vNormal);\n#else\n vec3 ng = cross(pos_dx, pos_dy);\n#endif\n\n t = normalize(t - ng * dot(ng, t));\n vec3 b = normalize(cross(ng, t));\n mat3 tbn = mat3(t, b, ng);\n#else\n mat3 tbn = pbr_vTBN;\n#endif\n\n#ifdef HAS_NORMALMAP\n vec3 n = texture2D(u_NormalSampler, pbr_vUV).rgb;\n n = normalize(tbn * ((2.0 * n - 1.0) * vec3(u_NormalScale, u_NormalScale, 1.0)));\n#else\n vec3 n = normalize(tbn[2].xyz);\n#endif\n\n return n;\n}\n\n\n#ifdef USE_IBL\nvec3 getIBLContribution(PBRInfo pbrInputs, vec3 n, vec3 reflection)\n{\n float mipCount = 9.0;\n float lod = (pbrInputs.perceptualRoughness * mipCount);\n vec3 brdf = SRGBtoLINEAR(texture2D(u_brdfLUT,\n vec2(pbrInputs.NdotV, 1.0 - pbrInputs.perceptualRoughness))).rgb;\n vec3 diffuseLight = SRGBtoLINEAR(textureCube(u_DiffuseEnvSampler, n)).rgb;\n\n#ifdef USE_TEX_LOD\n vec3 specularLight = SRGBtoLINEAR(textureCubeLod(u_SpecularEnvSampler, reflection, lod)).rgb;\n#else\n vec3 specularLight = SRGBtoLINEAR(textureCube(u_SpecularEnvSampler, reflection)).rgb;\n#endif\n\n vec3 diffuse = diffuseLight * pbrInputs.diffuseColor;\n vec3 specular = specularLight * (pbrInputs.specularColor * brdf.x + brdf.y);\n diffuse *= u_ScaleIBLAmbient.x;\n specular *= u_ScaleIBLAmbient.y;\n\n return diffuse + specular;\n}\n#endif\n\n\nvec3 diffuse(PBRInfo pbrInputs)\n{\n return pbrInputs.diffuseColor / M_PI;\n}\n\nvec3 specularReflection(PBRInfo pbrInputs)\n{\n return pbrInputs.reflectance0 +\n (pbrInputs.reflectance90 - pbrInputs.reflectance0) *\n pow(clamp(1.0 - pbrInputs.VdotH, 0.0, 1.0), 5.0);\n}\n\n\n\nfloat geometricOcclusion(PBRInfo pbrInputs)\n{\n float NdotL = pbrInputs.NdotL;\n float NdotV = pbrInputs.NdotV;\n float r = pbrInputs.alphaRoughness;\n\n float attenuationL = 2.0 * NdotL / (NdotL + sqrt(r * r + (1.0 - r * r) * (NdotL * NdotL)));\n float attenuationV = 2.0 * NdotV / (NdotV + sqrt(r * r + (1.0 - r * r) * (NdotV * NdotV)));\n return attenuationL * attenuationV;\n}\n\n\n\n\n\nfloat microfacetDistribution(PBRInfo pbrInputs)\n{\n float roughnessSq = pbrInputs.alphaRoughness * pbrInputs.alphaRoughness;\n float f = (pbrInputs.NdotH * roughnessSq - pbrInputs.NdotH) * pbrInputs.NdotH + 1.0;\n return roughnessSq / (M_PI * f * f);\n}\n\nvoid PBRInfo_setAmbientLight(inout PBRInfo pbrInputs) {\n pbrInputs.NdotL = 1.0;\n pbrInputs.NdotH = 0.0;\n pbrInputs.LdotH = 0.0;\n pbrInputs.VdotH = 1.0;\n}\n\nvoid PBRInfo_setDirectionalLight(inout PBRInfo pbrInputs, vec3 lightDirection) {\n vec3 n = pbrInputs.n;\n vec3 v = pbrInputs.v;\n vec3 l = normalize(lightDirection);\n vec3 h = normalize(l+v);\n\n pbrInputs.NdotL = clamp(dot(n, l), 0.001, 1.0);\n pbrInputs.NdotH = clamp(dot(n, h), 0.0, 1.0);\n pbrInputs.LdotH = clamp(dot(l, h), 0.0, 1.0);\n pbrInputs.VdotH = clamp(dot(v, h), 0.0, 1.0);\n}\n\nvoid PBRInfo_setPointLight(inout PBRInfo pbrInputs, PointLight pointLight) {\n vec3 light_direction = normalize(pointLight.position - pbr_vPosition);\n PBRInfo_setDirectionalLight(pbrInputs, light_direction);\n}\n\nvec3 calculateFinalColor(PBRInfo pbrInputs, vec3 lightColor) {\n vec3 F = specularReflection(pbrInputs);\n float G = geometricOcclusion(pbrInputs);\n float D = microfacetDistribution(pbrInputs);\n vec3 diffuseContrib = (1.0 - F) * diffuse(pbrInputs);\n vec3 specContrib = F * G * D / (4.0 * pbrInputs.NdotL * pbrInputs.NdotV);\n return pbrInputs.NdotL * lightColor * (diffuseContrib + specContrib);\n}\n\nvec4 pbr_filterColor(vec4 colorUnused)\n{\n#ifdef HAS_BASECOLORMAP\n vec4 baseColor = SRGBtoLINEAR(texture2D(u_BaseColorSampler, pbr_vUV)) * u_BaseColorFactor;\n#else\n vec4 baseColor = u_BaseColorFactor;\n#endif\n\n#ifdef ALPHA_CUTOFF\n if (baseColor.a < u_AlphaCutoff) {\n discard;\n }\n#endif\n\n vec3 color = vec3(0, 0, 0);\n\n if(pbr_uUnlit){\n color.rgb = baseColor.rgb;\n }\n else{\n\n\n float perceptualRoughness = u_MetallicRoughnessValues.y;\n float metallic = u_MetallicRoughnessValues.x;\n#ifdef HAS_METALROUGHNESSMAP\n\n vec4 mrSample = texture2D(u_MetallicRoughnessSampler, pbr_vUV);\n perceptualRoughness = mrSample.g * perceptualRoughness;\n metallic = mrSample.b * metallic;\n#endif\n perceptualRoughness = clamp(perceptualRoughness, c_MinRoughness, 1.0);\n metallic = clamp(metallic, 0.0, 1.0);\n\n float alphaRoughness = perceptualRoughness * perceptualRoughness;\n\n vec3 f0 = vec3(0.04);\n vec3 diffuseColor = baseColor.rgb * (vec3(1.0) - f0);\n diffuseColor *= 1.0 - metallic;\n vec3 specularColor = mix(f0, baseColor.rgb, metallic);\n float reflectance = max(max(specularColor.r, specularColor.g), specularColor.b);\n\n\n\n float reflectance90 = clamp(reflectance * 25.0, 0.0, 1.0);\n vec3 specularEnvironmentR0 = specularColor.rgb;\n vec3 specularEnvironmentR90 = vec3(1.0, 1.0, 1.0) * reflectance90;\n\n vec3 n = getNormal();\n vec3 v = normalize(u_Camera - pbr_vPosition);\n\n float NdotV = clamp(abs(dot(n, v)), 0.001, 1.0);\n vec3 reflection = -normalize(reflect(v, n));\n\n PBRInfo pbrInputs = PBRInfo(\n 0.0,\n NdotV,\n 0.0,\n 0.0,\n 0.0,\n perceptualRoughness,\n metallic,\n specularEnvironmentR0,\n specularEnvironmentR90,\n alphaRoughness,\n diffuseColor,\n specularColor,\n n,\n v\n );\n\n#ifdef USE_LIGHTS\n PBRInfo_setAmbientLight(pbrInputs);\n color += calculateFinalColor(pbrInputs, lighting_uAmbientLight.color);\n SMART_FOR(int i = 0, i < MAX_LIGHTS, i < lighting_uDirectionalLightCount, i++) {\n if (i < lighting_uDirectionalLightCount) {\n PBRInfo_setDirectionalLight(pbrInputs, lighting_uDirectionalLight[i].direction);\n color += calculateFinalColor(pbrInputs, lighting_uDirectionalLight[i].color);\n }\n }\n SMART_FOR(int i = 0, i < MAX_LIGHTS, i < lighting_uPointLightCount, i++) {\n if (i < lighting_uPointLightCount) {\n PBRInfo_setPointLight(pbrInputs, lighting_uPointLight[i]);\n float attenuation = getPointLightAttenuation(lighting_uPointLight[i], distance(lighting_uPointLight[i].position, pbr_vPosition));\n color += calculateFinalColor(pbrInputs, lighting_uPointLight[i].color / attenuation);\n }\n }\n#endif\n#ifdef USE_IBL\n color += getIBLContribution(pbrInputs, n, reflection);\n#endif\n#ifdef HAS_OCCLUSIONMAP\n float ao = texture2D(u_OcclusionSampler, pbr_vUV).r;\n color = mix(color, color * ao, u_OcclusionStrength);\n#endif\n\n#ifdef HAS_EMISSIVEMAP\n vec3 emissive = SRGBtoLINEAR(texture2D(u_EmissiveSampler, pbr_vUV)).rgb * u_EmissiveFactor;\n color += emissive;\n#endif\n\n#ifdef PBR_DEBUG\n\n\n\n\n\n color = mix(color, baseColor.rgb, u_ScaleDiffBaseMR.y);\n color = mix(color, vec3(metallic), u_ScaleDiffBaseMR.z);\n color = mix(color, vec3(perceptualRoughness), u_ScaleDiffBaseMR.w);\n#endif\n\n }\n\n return vec4(pow(color,vec3(1.0/2.2)), baseColor.a);\n}\n",defines:{LIGHTING_FRAGMENT:1},dependencies:[__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/lights/lights.js").H]}},"./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return gouraudLighting},s:function(){return phongLighting}});var lights=__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/lights/lights.js"),phong_lighting_glsl="\nuniform float lighting_uAmbient;\nuniform float lighting_uDiffuse;\nuniform float lighting_uShininess;\nuniform vec3 lighting_uSpecularColor;\n\nvec3 lighting_getLightColor(vec3 surfaceColor, vec3 light_direction, vec3 view_direction, vec3 normal_worldspace, vec3 color) {\n vec3 halfway_direction = normalize(light_direction + view_direction);\n float lambertian = dot(light_direction, normal_worldspace);\n float specular = 0.0;\n if (lambertian > 0.0) {\n float specular_angle = max(dot(normal_worldspace, halfway_direction), 0.0);\n specular = pow(specular_angle, lighting_uShininess);\n }\n lambertian = max(lambertian, 0.0);\n return (lambertian * lighting_uDiffuse * surfaceColor + specular * lighting_uSpecularColor) * color;\n}\n\nvec3 lighting_getLightColor(vec3 surfaceColor, vec3 cameraPosition, vec3 position_worldspace, vec3 normal_worldspace) {\n vec3 lightColor = surfaceColor;\n\n if (lighting_uEnabled) {\n vec3 view_direction = normalize(cameraPosition - position_worldspace);\n lightColor = lighting_uAmbient * surfaceColor * lighting_uAmbientLight.color;\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uPointLightCount) {\n break;\n }\n PointLight pointLight = lighting_uPointLight[i];\n vec3 light_position_worldspace = pointLight.position;\n vec3 light_direction = normalize(light_position_worldspace - position_worldspace);\n lightColor += lighting_getLightColor(surfaceColor, light_direction, view_direction, normal_worldspace, pointLight.color);\n }\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uDirectionalLightCount) {\n break;\n }\n DirectionalLight directionalLight = lighting_uDirectionalLight[i];\n lightColor += lighting_getLightColor(surfaceColor, -directionalLight.direction, view_direction, normal_worldspace, directionalLight.color);\n }\n }\n return lightColor;\n}\n\nvec3 lighting_getSpecularLightColor(vec3 cameraPosition, vec3 position_worldspace, vec3 normal_worldspace) {\n vec3 lightColor = vec3(0, 0, 0);\n vec3 surfaceColor = vec3(0, 0, 0);\n\n if (lighting_uEnabled) {\n vec3 view_direction = normalize(cameraPosition - position_worldspace);\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uPointLightCount) {\n break;\n }\n PointLight pointLight = lighting_uPointLight[i];\n vec3 light_position_worldspace = pointLight.position;\n vec3 light_direction = normalize(light_position_worldspace - position_worldspace);\n lightColor += lighting_getLightColor(surfaceColor, light_direction, view_direction, normal_worldspace, pointLight.color);\n }\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uDirectionalLightCount) {\n break;\n }\n DirectionalLight directionalLight = lighting_uDirectionalLight[i];\n lightColor += lighting_getLightColor(surfaceColor, -directionalLight.direction, view_direction, normal_worldspace, directionalLight.color);\n }\n }\n return lightColor;\n}\n";const INITIAL_MODULE_OPTIONS={};function getUniforms(){let opts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:INITIAL_MODULE_OPTIONS;if(!("material"in opts))return{};const{material:material}=opts;return material?function getMaterialUniforms(material){const{ambient:ambient=.35,diffuse:diffuse=.6,shininess:shininess=32,specularColor:specularColor=[30,30,30]}=material;return{lighting_uAmbient:ambient,lighting_uDiffuse:diffuse,lighting_uShininess:shininess,lighting_uSpecularColor:specularColor.map((x=>x/255))}}(material):{lighting_uEnabled:!1}}const gouraudLighting={name:"gouraud-lighting",dependencies:[lights.H],vs:phong_lighting_glsl,defines:{LIGHTING_VERTEX:1},getUniforms:getUniforms},phongLighting={name:"phong-lighting",dependencies:[lights.H],fs:phong_lighting_glsl,defines:{LIGHTING_FRAGMENT:1},getUniforms:getUniforms}},"./node_modules/@math.gl/core/dist/esm/classes/matrix3.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Matrix3}});var INDICES,_base_matrix__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/matrix.js"),_lib_validators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js"),_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/gl-matrix-extras.js"),gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/gl-matrix/esm/mat3.js"),gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/gl-matrix/esm/vec2.js"),gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js");!function(INDICES){INDICES[INDICES.COL0ROW0=0]="COL0ROW0",INDICES[INDICES.COL0ROW1=1]="COL0ROW1",INDICES[INDICES.COL0ROW2=2]="COL0ROW2",INDICES[INDICES.COL1ROW0=3]="COL1ROW0",INDICES[INDICES.COL1ROW1=4]="COL1ROW1",INDICES[INDICES.COL1ROW2=5]="COL1ROW2",INDICES[INDICES.COL2ROW0=6]="COL2ROW0",INDICES[INDICES.COL2ROW1=7]="COL2ROW1",INDICES[INDICES.COL2ROW2=8]="COL2ROW2"}(INDICES||(INDICES={}));const IDENTITY_MATRIX=Object.freeze([1,0,0,0,1,0,0,0,1]);class Matrix3 extends _base_matrix__WEBPACK_IMPORTED_MODULE_0__.Z{static get IDENTITY(){return function getIdentityMatrix(){IDENTITY_MATRIX3||(IDENTITY_MATRIX3=new Matrix3,Object.freeze(IDENTITY_MATRIX3));return IDENTITY_MATRIX3}()}static get ZERO(){return function getZeroMatrix(){ZERO_MATRIX3||(ZERO_MATRIX3=new Matrix3([0,0,0,0,0,0,0,0,0]),Object.freeze(ZERO_MATRIX3));return ZERO_MATRIX3}()}get ELEMENTS(){return 9}get RANK(){return 3}get INDICES(){return INDICES}constructor(array,...args){super(-0,-0,-0,-0,-0,-0,-0,-0,-0),1===arguments.length&&Array.isArray(array)?this.copy(array):args.length>0?this.copy([array,...args]):this.identity()}copy(array){return this[0]=array[0],this[1]=array[1],this[2]=array[2],this[3]=array[3],this[4]=array[4],this[5]=array[5],this[6]=array[6],this[7]=array[7],this[8]=array[8],this.check()}identity(){return this.copy(IDENTITY_MATRIX)}fromObject(object){return this.check()}fromQuaternion(q){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.en(this,q),this.check()}set(m00,m10,m20,m01,m11,m21,m02,m12,m22){return this[0]=m00,this[1]=m10,this[2]=m20,this[3]=m01,this[4]=m11,this[5]=m21,this[6]=m02,this[7]=m12,this[8]=m22,this.check()}setRowMajor(m00,m01,m02,m10,m11,m12,m20,m21,m22){return this[0]=m00,this[1]=m10,this[2]=m20,this[3]=m01,this[4]=m11,this[5]=m21,this[6]=m02,this[7]=m12,this[8]=m22,this.check()}determinant(){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.GH(this)}transpose(){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.p4(this,this),this.check()}invert(){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.U_(this,this),this.check()}multiplyLeft(a){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.Jp(this,a,this),this.check()}multiplyRight(a){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.Jp(this,this,a),this.check()}rotate(radians){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.U1(this,this,radians),this.check()}scale(factor){return Array.isArray(factor)?gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.bA(this,this,factor):gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.bA(this,this,[factor,factor]),this.check()}translate(vec){return gl_matrix_mat3__WEBPACK_IMPORTED_MODULE_1__.Iu(this,this,vec),this.check()}transform(vector,result){let out;switch(vector.length){case 2:out=gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_2__.kK(result||[-0,-0],vector,this);break;case 3:out=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.kK(result||[-0,-0,-0],vector,this);break;case 4:out=(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__._x)(result||[-0,-0,-0,-0],vector,this);break;default:throw new Error("Illegal vector")}return(0,_lib_validators__WEBPACK_IMPORTED_MODULE_5__.IL)(out,vector.length),out}transformVector(vector,result){return this.transform(vector,result)}transformVector2(vector,result){return this.transform(vector,result)}transformVector3(vector,result){return this.transform(vector,result)}}let ZERO_MATRIX3,IDENTITY_MATRIX3},"./node_modules/@math.gl/core/dist/esm/classes/quaternion.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Quaternion}});var math_array=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/math-array.js"),validators=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js"),vector4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector4.js"),common=__webpack_require__("./node_modules/gl-matrix/esm/common.js"),mat3=__webpack_require__("./node_modules/gl-matrix/esm/mat3.js"),vec3=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js"),vec4=__webpack_require__("./node_modules/gl-matrix/esm/vec4.js");function create(){var out=new common.WT(4);return common.WT!=Float32Array&&(out[0]=0,out[1]=0,out[2]=0),out[3]=1,out}function setAxisAngle(out,axis,rad){rad*=.5;var s=Math.sin(rad);return out[0]=s*axis[0],out[1]=s*axis[1],out[2]=s*axis[2],out[3]=Math.cos(rad),out}function multiply(out,a,b){var ax=a[0],ay=a[1],az=a[2],aw=a[3],bx=b[0],by=b[1],bz=b[2],bw=b[3];return out[0]=ax*bw+aw*bx+ay*bz-az*by,out[1]=ay*bw+aw*by+az*bx-ax*bz,out[2]=az*bw+aw*bz+ax*by-ay*bx,out[3]=aw*bw-ax*bx-ay*by-az*bz,out}function slerp(out,a,b,t){var omega,cosom,sinom,scale0,scale1,ax=a[0],ay=a[1],az=a[2],aw=a[3],bx=b[0],by=b[1],bz=b[2],bw=b[3];return(cosom=ax*bx+ay*by+az*bz+aw*bw)<0&&(cosom=-cosom,bx=-bx,by=-by,bz=-bz,bw=-bw),1-cosom>common.Ib?(omega=Math.acos(cosom),sinom=Math.sin(omega),scale0=Math.sin((1-t)*omega)/sinom,scale1=Math.sin(t*omega)/sinom):(scale0=1-t,scale1=t),out[0]=scale0*ax+scale1*bx,out[1]=scale0*ay+scale1*by,out[2]=scale0*az+scale1*bz,out[3]=scale0*aw+scale1*bw,out}function fromMat3(out,m){var fRoot,fTrace=m[0]+m[4]+m[8];if(fTrace>0)fRoot=Math.sqrt(fTrace+1),out[3]=.5*fRoot,fRoot=.5/fRoot,out[0]=(m[5]-m[7])*fRoot,out[1]=(m[6]-m[2])*fRoot,out[2]=(m[1]-m[3])*fRoot;else{var i=0;m[4]>m[0]&&(i=1),m[8]>m[3*i+i]&&(i=2);var j=(i+1)%3,k=(i+2)%3;fRoot=Math.sqrt(m[3*i+i]-m[3*j+j]-m[3*k+k]+1),out[i]=.5*fRoot,fRoot=.5/fRoot,out[3]=(m[3*j+k]-m[3*k+j])*fRoot,out[j]=(m[3*j+i]+m[3*i+j])*fRoot,out[k]=(m[3*k+i]+m[3*i+k])*fRoot}return out}vec4.d9,vec4.al,vec4.JG,vec4.t8;var tmpvec3,xUnitVec3,yUnitVec3,temp1,temp2,matr,add=vec4.IH,scale=vec4.bA,dot=vec4.AK,lerp=vec4.t7,quat_length=vec4.kE,squaredLength=vec4.we,normalize=vec4.Fv,rotationTo=(vec4.I6,vec4.fS,tmpvec3=vec3.Ue(),xUnitVec3=vec3.al(1,0,0),yUnitVec3=vec3.al(0,1,0),function(out,a,b){var dot=vec3.AK(a,b);return dot<-.999999?(vec3.kC(tmpvec3,xUnitVec3,a),vec3.Zh(tmpvec3)<1e-6&&vec3.kC(tmpvec3,yUnitVec3,a),vec3.Fv(tmpvec3,tmpvec3),setAxisAngle(out,tmpvec3,Math.PI),out):dot>.999999?(out[0]=0,out[1]=0,out[2]=0,out[3]=1,out):(vec3.kC(tmpvec3,a,b),out[0]=tmpvec3[0],out[1]=tmpvec3[1],out[2]=tmpvec3[2],out[3]=1+dot,normalize(out,out))});temp1=create(),temp2=create(),matr=mat3.Ue();const IDENTITY_QUATERNION=[0,0,0,1];class Quaternion extends math_array.Z{constructor(x=0,y=0,z=0,w=1){super(-0,-0,-0,-0),Array.isArray(x)&&1===arguments.length?this.copy(x):this.set(x,y,z,w)}copy(array){return this[0]=array[0],this[1]=array[1],this[2]=array[2],this[3]=array[3],this.check()}set(x,y,z,w){return this[0]=x,this[1]=y,this[2]=z,this[3]=w,this.check()}fromObject(object){return this[0]=object.x,this[1]=object.y,this[2]=object.z,this[3]=object.w,this.check()}fromMatrix3(m){return fromMat3(this,m),this.check()}fromAxisRotation(axis,rad){return setAxisAngle(this,axis,rad),this.check()}identity(){return function identity(out){return out[0]=0,out[1]=0,out[2]=0,out[3]=1,out}(this),this.check()}setAxisAngle(axis,rad){return this.fromAxisRotation(axis,rad)}get ELEMENTS(){return 4}get x(){return this[0]}set x(value){this[0]=(0,validators.u5)(value)}get y(){return this[1]}set y(value){this[1]=(0,validators.u5)(value)}get z(){return this[2]}set z(value){this[2]=(0,validators.u5)(value)}get w(){return this[3]}set w(value){this[3]=(0,validators.u5)(value)}len(){return quat_length(this)}lengthSquared(){return squaredLength(this)}dot(a){return dot(this,a)}rotationTo(vectorA,vectorB){return rotationTo(this,vectorA,vectorB),this.check()}add(a){return add(this,this,a),this.check()}calculateW(){return function calculateW(out,a){var x=a[0],y=a[1],z=a[2];return out[0]=x,out[1]=y,out[2]=z,out[3]=Math.sqrt(Math.abs(1-x*x-y*y-z*z)),out}(this,this),this.check()}conjugate(){return function conjugate(out,a){return out[0]=-a[0],out[1]=-a[1],out[2]=-a[2],out[3]=a[3],out}(this,this),this.check()}invert(){return function invert(out,a){var a0=a[0],a1=a[1],a2=a[2],a3=a[3],dot=a0*a0+a1*a1+a2*a2+a3*a3,invDot=dot?1/dot:0;return out[0]=-a0*invDot,out[1]=-a1*invDot,out[2]=-a2*invDot,out[3]=a3*invDot,out}(this,this),this.check()}lerp(a,b,t){return void 0===t?this.lerp(this,a,b):(lerp(this,a,b,t),this.check())}multiplyRight(a){return multiply(this,this,a),this.check()}multiplyLeft(a){return multiply(this,a,this),this.check()}normalize(){const length=this.len(),l=length>0?1/length:0;return this[0]=this[0]*l,this[1]=this[1]*l,this[2]=this[2]*l,this[3]=this[3]*l,0===length&&(this[3]=1),this.check()}rotateX(rad){return function rotateX(out,a,rad){rad*=.5;var ax=a[0],ay=a[1],az=a[2],aw=a[3],bx=Math.sin(rad),bw=Math.cos(rad);return out[0]=ax*bw+aw*bx,out[1]=ay*bw+az*bx,out[2]=az*bw-ay*bx,out[3]=aw*bw-ax*bx,out}(this,this,rad),this.check()}rotateY(rad){return function rotateY(out,a,rad){rad*=.5;var ax=a[0],ay=a[1],az=a[2],aw=a[3],by=Math.sin(rad),bw=Math.cos(rad);return out[0]=ax*bw-az*by,out[1]=ay*bw+aw*by,out[2]=az*bw+ax*by,out[3]=aw*bw-ay*by,out}(this,this,rad),this.check()}rotateZ(rad){return function rotateZ(out,a,rad){rad*=.5;var ax=a[0],ay=a[1],az=a[2],aw=a[3],bz=Math.sin(rad),bw=Math.cos(rad);return out[0]=ax*bw+ay*bz,out[1]=ay*bw-ax*bz,out[2]=az*bw+aw*bz,out[3]=aw*bw-az*bz,out}(this,this,rad),this.check()}scale(b){return scale(this,this,b),this.check()}slerp(arg0,arg1,arg2){let start,target,ratio;switch(arguments.length){case 1:({start:start=IDENTITY_QUATERNION,target:target,ratio:ratio}=arg0);break;case 2:start=this,target=arg0,ratio=arg1;break;default:start=arg0,target=arg1,ratio=arg2}return slerp(this,start,target,ratio),this.check()}transformVector4(vector,result=new vector4.Z){return vec4.VC(result,vector,this),(0,validators.IL)(result,4)}lengthSq(){return this.lengthSquared()}setFromAxisAngle(axis,rad){return this.setAxisAngle(axis,rad)}premultiply(a){return this.multiplyLeft(a)}multiply(a){return this.multiplyRight(a)}}},"./node_modules/@math.gl/core/dist/esm/classes/spherical-coordinates.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return SphericalCoordinates}});var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_vector3__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),_lib_common__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js");class SphericalCoordinates{constructor({phi:phi=0,theta:theta=0,radius:radius=1,bearing:bearing,pitch:pitch,altitude:altitude,radiusScale:radiusScale=6371e3}={}){(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"phi",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"theta",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"radius",void 0),(0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(this,"radiusScale",void 0),this.phi=phi,this.theta=theta,this.radius=radius||altitude||1,this.radiusScale=radiusScale||1,void 0!==bearing&&(this.bearing=bearing),void 0!==pitch&&(this.pitch=pitch),this.check()}toString(){return this.formatString(_lib_common__WEBPACK_IMPORTED_MODULE_1__.vc)}formatString({printTypes:printTypes=!1}){const f=_lib_common__WEBPACK_IMPORTED_MODULE_1__.Bw;return"".concat(printTypes?"Spherical":"","[rho:").concat(f(this.radius),",theta:").concat(f(this.theta),",phi:").concat(f(this.phi),"]")}equals(other){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.fS)(this.radius,other.radius)&&(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.fS)(this.theta,other.theta)&&(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.fS)(this.phi,other.phi)}exactEquals(other){return this.radius===other.radius&&this.theta===other.theta&&this.phi===other.phi}get bearing(){return 180-(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.phi)}set bearing(v){this.phi=Math.PI-(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.uR)(v)}get pitch(){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.theta)}set pitch(v){this.theta=(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.uR)(v)}get longitude(){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.phi)}get latitude(){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.theta)}get lng(){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.phi)}get lat(){return(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.RW)(this.theta)}get z(){return(this.radius-1)*this.radiusScale}set(radius,phi,theta){return this.radius=radius,this.phi=phi,this.theta=theta,this.check()}clone(){return(new SphericalCoordinates).copy(this)}copy(other){return this.radius=other.radius,this.phi=other.phi,this.theta=other.theta,this.check()}fromLngLatZ([lng,lat,z]){return this.radius=1+z/this.radiusScale,this.phi=(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.uR)(lat),this.theta=(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.uR)(lng),this.check()}fromVector3(v){return this.radius=gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_2__.kE(v),this.radius>0&&(this.theta=Math.atan2(v[0],v[1]),this.phi=Math.acos((0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.uZ)(v[2]/this.radius,-1,1))),this.check()}toVector3(){return new _vector3__WEBPACK_IMPORTED_MODULE_3__.Z(0,0,this.radius).rotateX({radians:this.theta}).rotateZ({radians:this.phi})}makeSafe(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this}check(){if(!(Number.isFinite(this.phi)&&Number.isFinite(this.theta)&&this.radius>0))throw new Error("SphericalCoordinates: some fields set to invalid numbers");return this}}},"./node_modules/@math.gl/core/dist/esm/classes/vector2.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Vector2}});var _base_vector__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/vector.js"),_lib_common__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_lib_validators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js"),gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/vec2.js"),_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/gl-matrix-extras.js");class Vector2 extends _base_vector__WEBPACK_IMPORTED_MODULE_0__.Z{constructor(x=0,y=0){super(2),(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.kJ)(x)&&1===arguments.length?this.copy(x):(_lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(y)),this[0]=x,this[1]=y)}set(x,y){return this[0]=x,this[1]=y,this.check()}copy(array){return this[0]=array[0],this[1]=array[1],this.check()}fromObject(object){return _lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.y)),this[0]=object.x,this[1]=object.y,this.check()}toObject(object){return object.x=this[0],object.y=this[1],object}get ELEMENTS(){return 2}horizontalAngle(){return Math.atan2(this.y,this.x)}verticalAngle(){return Math.atan2(this.x,this.y)}transform(matrix4){return this.transformAsPoint(matrix4)}transformAsPoint(matrix4){return gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_3__.fF(this,this,matrix4),this.check()}transformAsVector(matrix4){return(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__.pb)(this,this,matrix4),this.check()}transformByMatrix3(matrix3){return gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_3__.kK(this,this,matrix3),this.check()}transformByMatrix2x3(matrix2x3){return gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_3__.iu(this,this,matrix2x3),this.check()}transformByMatrix2(matrix2){return gl_matrix_vec2__WEBPACK_IMPORTED_MODULE_3__.c(this,this,matrix2),this.check()}}},"./node_modules/@math.gl/core/dist/esm/classes/vector4.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Vector4}});var _base_vector__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/vector.js"),_lib_common__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),_lib_validators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js"),gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/gl-matrix/esm/vec3.js"),_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/gl-matrix-extras.js");let ZERO;class Vector4 extends _base_vector__WEBPACK_IMPORTED_MODULE_0__.Z{static get ZERO(){return ZERO||(ZERO=new Vector4(0,0,0,0),Object.freeze(ZERO)),ZERO}constructor(x=0,y=0,z=0,w=0){super(-0,-0,-0,-0),(0,_lib_common__WEBPACK_IMPORTED_MODULE_1__.kJ)(x)&&1===arguments.length?this.copy(x):(_lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(y),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(z),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(w)),this[0]=x,this[1]=y,this[2]=z,this[3]=w)}set(x,y,z,w){return this[0]=x,this[1]=y,this[2]=z,this[3]=w,this.check()}copy(array){return this[0]=array[0],this[1]=array[1],this[2]=array[2],this[3]=array[3],this.check()}fromObject(object){return _lib_common__WEBPACK_IMPORTED_MODULE_1__.vc.debug&&((0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.x),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.y),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.z),(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(object.w)),this[0]=object.x,this[1]=object.y,this[2]=object.z,this[3]=object.w,this}toObject(object){return object.x=this[0],object.y=this[1],object.z=this[2],object.w=this[3],object}get ELEMENTS(){return 4}get z(){return this[2]}set z(value){this[2]=(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(value)}get w(){return this[3]}set w(value){this[3]=(0,_lib_validators__WEBPACK_IMPORTED_MODULE_2__.u5)(value)}transform(matrix4){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.fF(this,this,matrix4),this.check()}transformByMatrix3(matrix3){return(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__._x)(this,this,matrix3),this.check()}transformByMatrix2(matrix2){return(0,_lib_gl_matrix_extras__WEBPACK_IMPORTED_MODULE_4__.G7)(this,this,matrix2),this.check()}transformByQuaternion(quaternion){return gl_matrix_vec3__WEBPACK_IMPORTED_MODULE_3__.VC(this,this,quaternion),this.check()}applyMatrix4(m){return m.transform(this,this),this}}},"./node_modules/@math.gl/core/dist/esm/lib/math-utils.js":function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z={EPSILON1:.1,EPSILON2:.01,EPSILON3:.001,EPSILON4:1e-4,EPSILON5:1e-5,EPSILON6:1e-6,EPSILON7:1e-7,EPSILON8:1e-8,EPSILON9:1e-9,EPSILON10:1e-10,EPSILON11:1e-11,EPSILON12:1e-12,EPSILON13:1e-13,EPSILON14:1e-14,EPSILON15:1e-15,EPSILON16:1e-16,EPSILON17:1e-17,EPSILON18:1e-18,EPSILON19:1e-19,EPSILON20:1e-20,PI_OVER_TWO:Math.PI/2,PI_OVER_FOUR:Math.PI/4,PI_OVER_SIX:Math.PI/6,TWO_PI:2*Math.PI}},"./node_modules/@math.gl/polygon/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{wG:function(){return WINDING},WZ:function(){return cutPolygonByGrid},GU:function(){return cutPolygonByMercatorBounds},dj:function(){return cutPolylineByGrid},ct:function(){return cutPolylineByMercatorBounds},OT:function(){return earcut},ap:function(){return polygon_utils_getPolygonSignedArea},Ny:function(){return polygon_utils_modifyPolygonWindingDirection}});const WINDING={CLOCKWISE:1,COUNTER_CLOCKWISE:-1};function polygon_utils_modifyPolygonWindingDirection(points,direction,options={}){const windingDirection=function getPolygonWindingDirection(points,options={}){return Math.sign(polygon_utils_getPolygonSignedArea(points,options))}(points,options);return windingDirection!==direction&&(function reversePolygon(points,options){const{start:start=0,end:end=points.length,size:size=2}=options,numPoints=(end-start)/size,numSwaps=Math.floor(numPoints/2);for(let i=0;i80*dim){minX=maxX=positions[0],minY=maxY=positions[1];for(let i=dim;imaxX&&(maxX=x),y>maxY&&(maxY=y);invSize=Math.max(maxX-minX,maxY-minY),invSize=0!==invSize?1/invSize:0}return earcutLinked(outerNode,triangles,dim,minX,minY,invSize),triangles}function linkedList(data,start,end,dim,clockwise,area){let i,last;if(void 0===area&&(area=polygon_utils_getPolygonSignedArea(data,{start:start,end:end,size:dim})),clockwise===area<0)for(i=start;i=start;i-=dim)last=insertNode(i,data[i],data[i+1],last);return last&&earcut_equals(last,last.next)&&(removeNode(last),last=last.next),last}function filterPoints(start,end){if(!start)return start;end||(end=start);let again,p=start;do{if(again=!1,p.steiner||!earcut_equals(p,p.next)&&0!==earcut_area(p.prev,p,p.next))p=p.next;else{if(removeNode(p),p=end=p.prev,p===p.next)break;again=!0}}while(again||p!==end);return end}function earcutLinked(ear,triangles,dim,minX,minY,invSize,pass){if(!ear)return;!pass&&invSize&&function indexCurve(start,minX,minY,invSize){let p=start;do{null===p.z&&(p.z=zOrder(p.x,p.y,minX,minY,invSize)),p.prevZ=p.prev,p.nextZ=p.next,p=p.next}while(p!==start);p.prevZ.nextZ=null,p.prevZ=null,function sortLinked(list){let e,i,numMerges,p,pSize,q,qSize,tail,inSize=1;do{for(p=list,list=null,tail=null,numMerges=0;p;){for(numMerges++,q=p,pSize=0,i=0;i0||qSize>0&&q;)0!==pSize&&(0===qSize||!q||p.z<=q.z)?(e=p,p=p.nextZ,pSize--):(e=q,q=q.nextZ,qSize--),tail?tail.nextZ=e:list=e,e.prevZ=tail,tail=e;p=q}tail.nextZ=null,inSize*=2}while(numMerges>1);return list}(p)}(ear,minX,minY,invSize);let prev,next,stop=ear;for(;ear.prev!==ear.next;)if(prev=ear.prev,next=ear.next,invSize?isEarHashed(ear,minX,minY,invSize):isEar(ear))triangles.push(prev.i/dim),triangles.push(ear.i/dim),triangles.push(next.i/dim),removeNode(ear),ear=next.next,stop=next.next;else if((ear=next)===stop){pass?1===pass?earcutLinked(ear=cureLocalIntersections(filterPoints(ear),triangles,dim),triangles,dim,minX,minY,invSize,2):2===pass&&splitEarcut(ear,triangles,dim,minX,minY,invSize):earcutLinked(filterPoints(ear),triangles,dim,minX,minY,invSize,1);break}}function isEar(ear){const a=ear.prev,b=ear,c=ear.next;if(earcut_area(a,b,c)>=0)return!1;let p=ear.next.next;for(;p!==ear.prev;){if(pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,p.x,p.y)&&earcut_area(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function isEarHashed(ear,minX,minY,invSize){const a=ear.prev,b=ear,c=ear.next;if(earcut_area(a,b,c)>=0)return!1;const minTX=a.xb.x?a.x>c.x?a.x:c.x:b.x>c.x?b.x:c.x,maxTY=a.y>b.y?a.y>c.y?a.y:c.y:b.y>c.y?b.y:c.y,minZ=zOrder(minTX,minTY,minX,minY,invSize),maxZ=zOrder(maxTX,maxTY,minX,minY,invSize);let p=ear.prevZ,n=ear.nextZ;for(;p&&p.z>=minZ&&n&&n.z<=maxZ;){if(p!==ear.prev&&p!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,p.x,p.y)&&earcut_area(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,n!==ear.prev&&n!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,n.x,n.y)&&earcut_area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}for(;p&&p.z>=minZ;){if(p!==ear.prev&&p!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,p.x,p.y)&&earcut_area(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;n&&n.z<=maxZ;){if(n!==ear.prev&&n!==ear.next&&pointInTriangle(a.x,a.y,b.x,b.y,c.x,c.y,n.x,n.y)&&earcut_area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}return!0}function cureLocalIntersections(start,triangles,dim){let p=start;do{const a=p.prev,b=p.next.next;!earcut_equals(a,b)&&intersects(a,p,p.next,b)&&locallyInside(a,b)&&locallyInside(b,a)&&(triangles.push(a.i/dim),triangles.push(p.i/dim),triangles.push(b.i/dim),removeNode(p),removeNode(p.next),p=start=b),p=p.next}while(p!==start);return filterPoints(p)}function splitEarcut(start,triangles,dim,minX,minY,invSize){let a=start;do{let b=a.next.next;for(;b!==a.prev;){if(a.i!==b.i&&isValidDiagonal(a,b)){let c=splitPolygon(a,b);return a=filterPoints(a,a.next),c=filterPoints(c,c.next),earcutLinked(a,triangles,dim,minX,minY,invSize),void earcutLinked(c,triangles,dim,minX,minY,invSize)}b=b.next}a=a.next}while(a!==start)}function compareX(a,b){return a.x-b.x}function eliminateHole(hole,outerNode){if(outerNode=function findHoleBridge(hole,outerNode){let p=outerNode;const hx=hole.x,hy=hole.y;let m,qx=-1/0;do{if(hy<=p.y&&hy>=p.next.y&&p.next.y!==p.y){const x=p.x+(hy-p.y)*(p.next.x-p.x)/(p.next.y-p.y);if(x<=hx&&x>qx){if(qx=x,x===hx){if(hy===p.y)return p;if(hy===p.next.y)return p.next}m=p.x=p.x&&p.x>=mx&&hx!==p.x&&pointInTriangle(hym.x||p.x===m.x&§orContainsSector(m,p)))&&(m=p,tanMin=tan)),p=p.next}while(p!==stop);return m}(hole,outerNode),outerNode){const b=splitPolygon(outerNode,hole);filterPoints(outerNode,outerNode.next),filterPoints(b,b.next)}}function sectorContainsSector(m,p){return earcut_area(m.prev,m,p.prev)<0&&earcut_area(p.next,m,m.next)<0}function zOrder(x,y,minX,minY,invSize){return(x=1431655765&((x=858993459&((x=252645135&((x=16711935&((x=32767*(x-minX)*invSize)|x<<8))|x<<4))|x<<2))|x<<1))|(y=1431655765&((y=858993459&((y=252645135&((y=16711935&((y=32767*(y-minY)*invSize)|y<<8))|y<<4))|y<<2))|y<<1))<<1}function getLeftmost(start){let p=start,leftmost=start;do{(p.x=0&&(ax-px)*(by-py)-(bx-px)*(ay-py)>=0&&(bx-px)*(cy-py)-(cx-px)*(by-py)>=0}function isValidDiagonal(a,b){return a.next.i!==b.i&&a.prev.i!==b.i&&!function intersectsPolygon(a,b){let p=a;do{if(p.i!==a.i&&p.next.i!==a.i&&p.i!==b.i&&p.next.i!==b.i&&intersects(p,p.next,a,b))return!0;p=p.next}while(p!==a);return!1}(a,b)&&(locallyInside(a,b)&&locallyInside(b,a)&&function middleInside(a,b){let p=a,inside=!1;const px=(a.x+b.x)/2,py=(a.y+b.y)/2;do{p.y>py!=p.next.y>py&&p.next.y!==p.y&&px<(p.next.x-p.x)*(py-p.y)/(p.next.y-p.y)+p.x&&(inside=!inside),p=p.next}while(p!==a);return inside}(a,b)&&(earcut_area(a.prev,a,b.prev)||earcut_area(a,b.prev,b))||earcut_equals(a,b)&&earcut_area(a.prev,a,a.next)>0&&earcut_area(b.prev,b,b.next)>0)}function earcut_area(p,q,r){return(q.y-p.y)*(r.x-q.x)-(q.x-p.x)*(r.y-q.y)}function earcut_equals(p1,p2){return p1.x===p2.x&&p1.y===p2.y}function intersects(p1,q1,p2,q2){const o1=sign(earcut_area(p1,q1,p2)),o2=sign(earcut_area(p1,q1,q2)),o3=sign(earcut_area(p2,q2,p1)),o4=sign(earcut_area(p2,q2,q1));return o1!==o2&&o3!==o4||(!(0!==o1||!onSegment(p1,p2,q1))||(!(0!==o2||!onSegment(p1,q2,q1))||(!(0!==o3||!onSegment(p2,p1,q2))||!(0!==o4||!onSegment(p2,q1,q2)))))}function onSegment(p,q,r){return q.x<=Math.max(p.x,r.x)&&q.x>=Math.min(p.x,r.x)&&q.y<=Math.max(p.y,r.y)&&q.y>=Math.min(p.y,r.y)}function sign(num){return num>0?1:num<0?-1:0}function locallyInside(a,b){return earcut_area(a.prev,a,a.next)<0?earcut_area(a,b,a.next)>=0&&earcut_area(a,a.prev,b)>=0:earcut_area(a,b,a.prev)<0||earcut_area(a,a.next,b)<0}function splitPolygon(a,b){const a2=new Node(a.i,a.x,a.y),b2=new Node(b.i,b.x,b.y),an=a.next,bp=b.prev;return a.next=b,b.prev=a,a2.next=an,an.prev=a2,b2.next=a2,a2.prev=b2,bp.next=b2,b2.prev=bp,b2}function insertNode(i,x,y,last){const p=new Node(i,x,y);return last?(p.next=last.next,p.prev=last,last.next.prev=p,last.next=p):(p.prev=p,p.next=p),p}function removeNode(p){p.next.prev=p.prev,p.prev.next=p.next,p.prevZ&&(p.prevZ.nextZ=p.nextZ),p.nextZ&&(p.nextZ.prevZ=p.prevZ)}function Node(i,x,y){this.i=i,this.x=x,this.y=y,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function intersect(a,b,edge,bbox,out=[]){let t,snap;if(8&edge)t=(bbox[3]-a[1])/(b[1]-a[1]),snap=3;else if(4&edge)t=(bbox[1]-a[1])/(b[1]-a[1]),snap=1;else if(2&edge)t=(bbox[2]-a[0])/(b[0]-a[0]),snap=2;else{if(!(1&edge))return null;t=(bbox[0]-a[0])/(b[0]-a[0]),snap=0}for(let i=0;ibbox[2]&&(code|=2),p[1]bbox[3]&&(code|=8),code}function utils_push(target,source){const size=source.length,startIndex=target.length;if(startIndex>0){let isDuplicate=!0;for(let i=0;isize&&(part=[],result.push(part),utils_push(part,a)),codeB=bitCode(b,cell)}utils_push(part,b),utils_copy(a,b)}return broken?result:result[0]}const TYPE_INSIDE=0,TYPE_BORDER=1;function concatInPlace(arr1,arr2){for(let i=0;i=0?(utils_push(resultHigh,p)&&typesHigh.push(type),highPointCount+=side):typesHigh.length&&(typesHigh[typesHigh.length-1]=TYPE_INSIDE),utils_copy(prev,p),prevSide=side,prevType=type;return[lowPointCount?{pos:resultLow,types:edgeTypes&&typesLow}:null,highPointCount?{pos:resultHigh,types:edgeTypes&&typesHigh}:null]}function getGridCell(p,gridResolution,gridOffset,out){const left=Math.floor((p[0]-gridOffset[0])/gridResolution)*gridResolution+gridOffset[0],bottom=Math.floor((p[1]-gridOffset[1])/gridResolution)*gridResolution+gridOffset[1];return out[0]=left,out[1]=bottom,out[2]=left+gridResolution,out[3]=bottom+gridResolution,out}function moveToNeighborCell(cell,gridResolution,edge){8&edge?(cell[1]+=gridResolution,cell[3]+=gridResolution):4&edge?(cell[1]-=gridResolution,cell[3]-=gridResolution):2&edge?(cell[0]+=gridResolution,cell[2]+=gridResolution):1&edge&&(cell[0]-=gridResolution,cell[2]-=gridResolution)}function getBoundingBox(positions,size,endIndex,out){let minX=1/0,maxX=-1/0,minY=1/0,maxY=-1/0;for(let i=0;imaxX?x:maxX,minY=ymaxY?y:maxY}return out[0][0]=minX,out[0][1]=minY,out[1][0]=maxX,out[1][1]=maxY,out}const DEFAULT_MAX_LATITUDE=85.051129;function cutPolylineByMercatorBounds(positions,options){const{size:size=2,startIndex:startIndex=0,endIndex:endIndex=positions.length,normalize:normalize=!0}=options||{},newPositions=positions.slice(startIndex,endIndex);wrapLongitudesForShortestPath(newPositions,size,0,endIndex-startIndex);const parts=cutPolylineByGrid(newPositions,{size:size,broken:!0,gridResolution:360,gridOffset:[-180,-180]});if(normalize)for(const part of parts)shiftLongitudesIntoRange(part,size);return parts}function cutPolygonByMercatorBounds(positions,holeIndices=null,options){const{size:size=2,normalize:normalize=!0,edgeTypes:edgeTypes=!1}=options||{};holeIndices=holeIndices||[];const newPositions=[],newHoleIndices=[];let srcStartIndex=0,targetIndex=0;for(let ringIndex=0;ringIndex<=holeIndices.length;ringIndex++){const srcEndIndex=holeIndices[ringIndex]||positions.length,targetStartIndex=targetIndex,splitIndex=findSplitIndex(positions,size,srcStartIndex,srcEndIndex);for(let i=splitIndex;imaxLat&&(maxLat=lat,pointIndex=i-1)}return pointIndex}function insertPoleVertices(positions,size,startIndex,endIndex,maxLatitude=DEFAULT_MAX_LATITUDE){const firstLng=positions[startIndex],lastLng=positions[endIndex-size];if(Math.abs(firstLng-lastLng)>180){const p=utils_getPointAtIndex(positions,0,size,startIndex);p[0]+=360*Math.round((lastLng-firstLng)/360),utils_push(positions,p),p[1]=Math.sign(p[1])*maxLatitude,utils_push(positions,p),p[0]=firstLng,utils_push(positions,p)}}function wrapLongitudesForShortestPath(positions,size,startIndex,endIndex){let lng,prevLng=positions[0];for(let i=startIndex;i180||delta<-180)&&(lng-=360*Math.round(delta/360)),positions[i]=prevLng=lng}}function shiftLongitudesIntoRange(positions,size){let refLng;const pointCount=positions.length/size;for(let i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:null,i=0;i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}(this._modes);try{for(_iterator.s();!(_step=_iterator.n()).done;){var mode=_step.value;allGuides.push.apply(allGuides,_toConsumableArray(mode.getGuides(props).features))}}catch(err){_iterator.e(err)}finally{_iterator.f()}return{type:"FeatureCollection",features:allGuides}}}]),CompositeMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.CompositeMode=CompositeMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-90degree-polygon-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Draw90DegreePolygonMode=void 0;var _destination=_interopRequireDefault(__webpack_require__("./node_modules/@turf/destination/dist/js/index.js")),_bearing=_interopRequireDefault(__webpack_require__("./node_modules/@turf/bearing/dist/js/index.js")),_lineIntersect=_interopRequireDefault(__webpack_require__("./node_modules/@turf/line-intersect/dist/js/index.js")),_distance=_interopRequireDefault(__webpack_require__("./node_modules/@turf/distance/dist/js/index.js")),_helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i3&&"Polygon"===tentativeFeature.geometry.type){var polygon=tentativeFeature.geometry;clickSequence[clickSequence.length-1]=polygon.coordinates[0][polygon.coordinates[0].length-2];var clickedEditHandle=(0,_utils.getPickedEditHandle)(picks);if(clickedEditHandle&&Array.isArray(clickedEditHandle.properties.positionIndexes)&&(0===clickedEditHandle.properties.positionIndexes[1]||clickedEditHandle.properties.positionIndexes[1]===polygon.coordinates[0].length-3)){var polygonToAdd={type:"Polygon",coordinates:this.finalizedCoordinates(_toConsumableArray(polygon.coordinates[0]))};this.resetClickSequence();var editAction=this.getAddFeatureOrBooleanPolygonAction(polygonToAdd,props);editAction&&props.onEdit(editAction)}}var fakePointerMoveEvent={screenCoords:[-1,-1],mapCoords:event.mapCoords,picks:[],pointerDownPicks:null,pointerDownScreenCoords:null,pointerDownMapCoords:null,cancelPan:function cancelPan(){},sourceEvent:null};this.handlePointerMove(fakePointerMoveEvent,props)}}},{key:"finalizedCoordinates",value:function finalizedCoordinates(coords){var coordinates=[[].concat(_toConsumableArray(coords.slice(0,-2)),[coords[0]])],pt=this.getIntermediatePoint(_toConsumableArray(coords));if(pt)coordinates=[[].concat(_toConsumableArray(coords.slice(0,-2)),[pt,coords[0]])];else{var tc=_toConsumableArray(coords);tc.splice(-3,1),(pt=this.getIntermediatePoint(_toConsumableArray(tc)))&&(coordinates=[[].concat(_toConsumableArray(coords.slice(0,-3)),[pt,coords[0]])])}return coordinates}},{key:"getIntermediatePoint",value:function getIntermediatePoint(coordinates){var pt;if(coordinates.length>4){var _ref=_toConsumableArray(coordinates),p1=_ref[0],p2=_ref[1],angle1=(0,_bearing.default)(p1,p2),p3=coordinates[coordinates.length-3],p4=coordinates[coordinates.length-4],angle2=(0,_bearing.default)(p3,p4),angles={first:[],second:[]};[1,2,3].forEach((function(factor){var newAngle1=angle1+90*factor;angles.first.push(newAngle1>180?newAngle1-360:newAngle1);var newAngle2=angle2+90*factor;angles.second.push(newAngle2>180?newAngle2-360:newAngle2)}));var distance=(0,_distance.default)((0,_helpers.point)(p1),(0,_helpers.point)(p3));[0,1,2].forEach((function(indexFirst){var line1=(0,_helpers.lineString)([p1,(0,_destination.default)(p1,distance,angles.first[indexFirst]).geometry.coordinates]);[0,1,2].forEach((function(indexSecond){var line2=(0,_helpers.lineString)([p3,(0,_destination.default)(p3,distance,angles.second[indexSecond]).geometry.coordinates]),fc=(0,_lineIntersect.default)(line1,line2);fc&&fc.features.length&&(pt=fc.features[0].geometry.coordinates)}))}))}return pt}}]),Draw90DegreePolygonMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.Draw90DegreePolygonMode=Draw90DegreePolygonMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-circle-by-diameter-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawCircleByDiameterMode=void 0;var _circle=_interopRequireDefault(__webpack_require__("./node_modules/@turf/circle/dist/js/index.js")),_distance=_interopRequireDefault(__webpack_require__("./node_modules/@turf/distance/dist/js/index.js")),_geojsonEditMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&clickedEditHandle&&Array.isArray(clickedEditHandle.properties.positionIndexes)&&clickedEditHandle.properties.positionIndexes[0]===clickSequence.length-1){var lineStringToAdd={type:"LineString",coordinates:_toConsumableArray(clickSequence)};this.resetClickSequence();var editAction=this.getAddFeatureAction(lineStringToAdd,props.data);editAction&&props.onEdit(editAction)}else positionAdded&&props.onEdit({updatedData:props.data,editType:"addTentativePosition",editContext:{position:event.mapCoords}})}},{key:"handleKeyUp",value:function handleKeyUp(event,props){if("Enter"===event.key){var clickSequence=this.getClickSequence();if(clickSequence.length>1){var lineStringToAdd={type:"LineString",coordinates:_toConsumableArray(clickSequence)};this.resetClickSequence();var editAction=this.getAddFeatureAction(lineStringToAdd,props.data);editAction&&props.onEdit(editAction)}}}},{key:"getGuides",value:function getGuides(props){var _guides$features,tentativeFeature,lastPointerMoveEvent=props.lastPointerMoveEvent,clickSequence=this.getClickSequence(),lastCoords=lastPointerMoveEvent?[lastPointerMoveEvent.mapCoords]:[],guides={type:"FeatureCollection",features:[]};clickSequence.length>0&&(tentativeFeature={type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[].concat(_toConsumableArray(clickSequence),lastCoords)}}),tentativeFeature&&guides.features.push(tentativeFeature);var editHandles=clickSequence.map((function(clickedCoord,index){return{type:"Feature",properties:{guideType:"editHandle",editHandleType:"existing",featureIndex:-1,positionIndexes:[index]},geometry:{type:"Point",coordinates:clickedCoord}}}));return(_guides$features=guides.features).push.apply(_guides$features,_toConsumableArray(editHandles)),guides}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell")}}]),DrawLineStringMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.DrawLineStringMode=DrawLineStringMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-point-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2){var polygonToAdd={type:"Polygon",coordinates:[[].concat(_toConsumableArray(clickSequence),[clickSequence[0]])]};this.resetClickSequence();var editAction=this.getAddFeatureOrBooleanPolygonAction(polygonToAdd,props);editAction&&props.onEdit(editAction)}}},{key:"handleDraggingAux",value:function handleDraggingAux(event,props){var picks=event.picks;(0,_utils.getPickedEditHandle)(picks)||this.addClickSequence(event)}},{key:"handleDragging",value:function handleDragging(event,props){this.handleDraggingThrottled&&this.handleDraggingThrottled(event,props)}}]),DrawPolygonByDraggingMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-polygon-mode.js").DrawPolygonMode);exports.DrawPolygonByDraggingMode=DrawPolygonByDraggingMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-polygon-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawPolygonMode=void 0;var _lineIntersect=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("./node_modules/@turf/line-intersect/dist/js/index.js")),_helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2&&(tentativeFeature={type:"Feature",properties:{guideType:"tentative"},geometry:{type:"Polygon",coordinates:[[].concat(_toConsumableArray(clickSequence),lastCoords,[clickSequence[0]])]}}),tentativeFeature}},{key:"getGuides",value:function getGuides(props){var _guides$features,clickSequence=this.getClickSequence(),guides={type:"FeatureCollection",features:[]},tentativeFeature=this.createTentativeFeature(props);tentativeFeature&&guides.features.push(tentativeFeature);var editHandles=clickSequence.map((function(clickedCoord,index){return{type:"Feature",properties:{guideType:"editHandle",editHandleType:"existing",featureIndex:-1,positionIndexes:[index]},geometry:{type:"Point",coordinates:clickedCoord}}}));return(_guides$features=guides.features).push.apply(_guides$features,_toConsumableArray(editHandles)),guides}},{key:"handleClick",value:function handleClick(event,props){var picks=event.picks,clickedEditHandle=(0,_utils.getPickedEditHandle)(picks),clickSequence=this.getClickSequence(),overlappingLines=!1;if(clickSequence.length>2&&props.modeConfig&&props.modeConfig.preventOverlappingLines){var currentLine=(0,_helpers.lineString)([clickSequence[clickSequence.length-1],event.mapCoords]),otherLines=(0,_helpers.lineString)(_toConsumableArray(clickSequence.slice(0,clickSequence.length-1)));(0,_lineIntersect.default)(currentLine,otherLines).features.length>0&&(overlappingLines=!0)}var positionAdded=!1;if(clickedEditHandle||overlappingLines||(this.addClickSequence(event),positionAdded=!0),clickSequence.length>2&&clickedEditHandle&&Array.isArray(clickedEditHandle.properties.positionIndexes)&&(0===clickedEditHandle.properties.positionIndexes[0]||clickedEditHandle.properties.positionIndexes[0]===clickSequence.length-1)){var polygonToAdd={type:"Polygon",coordinates:[[].concat(_toConsumableArray(clickSequence),[clickSequence[0]])]};this.resetClickSequence();var editAction=this.getAddFeatureOrBooleanPolygonAction(polygonToAdd,props);editAction&&props.onEdit(editAction)}else positionAdded&&props.onEdit({updatedData:props.data,editType:"addTentativePosition",editContext:{position:event.mapCoords}})}},{key:"handleKeyUp",value:function handleKeyUp(event,props){if("Enter"===event.key){var clickSequence=this.getClickSequence();if(clickSequence.length>2){var polygonToAdd={type:"Polygon",coordinates:[[].concat(_toConsumableArray(clickSequence),[clickSequence[0]])]};this.resetClickSequence();var editAction=this.getAddFeatureOrBooleanPolygonAction(polygonToAdd,props);editAction&&props.onEdit(editAction)}}}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell"),_get(_getPrototypeOf(DrawPolygonMode.prototype),"handlePointerMove",this).call(this,event,props)}}]),DrawPolygonMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.DrawPolygonMode=DrawPolygonMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-rectangle-from-center-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawRectangleFromCenterMode=void 0;var _bboxPolygon=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("./node_modules/@turf/bbox-polygon/dist/js/index.js"));function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;icoord2[0]?coord1[0]+Math.abs(coord1[0]-coord2[0]):coord1[0]-Math.abs(coord1[0]-coord2[0]),latitude=coord1[1]>coord2[1]?coord1[1]+Math.abs(coord1[1]-coord2[1]):coord1[1]-Math.abs(coord1[1]-coord2[1]),rectangle=(0,_bboxPolygon.default)([longitude,latitude,coord2[0],coord2[1]]);return rectangle.properties=rectangle.properties||{},rectangle.properties.shape="Rectangle",rectangle}}]),DrawRectangleFromCenterMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/two-click-polygon-mode.js").TwoClickPolygonMode);exports.DrawRectangleFromCenterMode=DrawRectangleFromCenterMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-rectangle-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawRectangleMode=void 0;var _bboxPolygon=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("./node_modules/@turf/bbox-polygon/dist/js/index.js"));function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);icorner[0]?coord1[0]+Math.abs(coord1[0]-corner[0]):coord1[0]-Math.abs(coord1[0]-corner[0]),latitude=coord1[1]>corner[1]?coord1[1]+Math.abs(coord1[1]-corner[1]):coord1[1]-Math.abs(coord1[1]-corner[1]),square=(0,_bboxPolygon.default)([longitude,latitude,corner[0],corner[1]]);return square.properties=square.properties||{},square.properties.shape="Square",square}}]),DrawSquareFromCenterMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/two-click-polygon-mode.js").TwoClickPolygonMode);exports.DrawSquareFromCenterMode=DrawSquareFromCenterMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-square-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DrawSquareMode=void 0;var _bboxPolygon=_interopRequireDefault(__webpack_require__("./node_modules/@turf/bbox-polygon/dist/js/index.js")),_distance=_interopRequireDefault(__webpack_require__("./node_modules/@turf/distance/dist/js/index.js")),_along=_interopRequireDefault(__webpack_require__("./node_modules/@turf/along/dist/js/index.js")),_helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}(featuresToAdd);try{for(_iterator.s();!(_step=_iterator.n()).done;){var feature=_step.value,properties=feature.properties,geometryAsAny=feature.geometry;updatedData=updatedData.addFeature({type:"Feature",properties:properties,geometry:geometryAsAny}),updatedIndexes.push(initialIndex+updatedIndexes.length)}}catch(err){_iterator.e(err)}finally{_iterator.f()}return{updatedData:updatedData.getObject(),editType:"addFeature",editContext:{featureIndexes:updatedIndexes}}}},{key:"getAddFeatureOrBooleanPolygonAction",value:function getAddFeatureOrBooleanPolygonAction(featureOrGeometry,props){var featureOrGeometryAsAny=featureOrGeometry,selectedFeature=this.getSelectedFeature(props),modeConfig=props.modeConfig;if(modeConfig&&modeConfig.booleanOperation){if(!selectedFeature||"Polygon"!==selectedFeature.geometry.type&&"MultiPolygon"!==selectedFeature.geometry.type)return console.warn("booleanOperation only supported for single Polygon or MultiPolygon selection"),null;var updatedGeometry,feature="Feature"===featureOrGeometryAsAny.type?featureOrGeometryAsAny:{type:"Feature",geometry:featureOrGeometryAsAny};if("union"===modeConfig.booleanOperation)updatedGeometry=(0,_union.default)(selectedFeature,feature);else if("difference"===modeConfig.booleanOperation)updatedGeometry=(0,_difference.default)(selectedFeature,feature);else{if("intersection"!==modeConfig.booleanOperation)return console.warn("Invalid booleanOperation ".concat(modeConfig.booleanOperation)),null;updatedGeometry=(0,_intersect.default)(selectedFeature,feature)}if(!updatedGeometry)return console.warn("Canceling edit. Boolean operation erased entire polygon."),null;var featureIndex=props.selectedIndexes[0];return{updatedData:new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replaceGeometry(featureIndex,updatedGeometry.geometry).getObject(),editType:"unionGeometry",editContext:{featureIndexes:[featureIndex]}}}return this.getAddFeatureAction(featureOrGeometry,props.data)}},{key:"createTentativeFeature",value:function createTentativeFeature(props){return null}},{key:"handleClick",value:function handleClick(event,props){}},{key:"handlePointerMove",value:function handlePointerMove(event,props){var tentativeFeature=this.createTentativeFeature(props);tentativeFeature&&props.onEdit({updatedData:props.data,editType:"updateTentativeFeature",editContext:{feature:tentativeFeature}})}},{key:"handleStartDragging",value:function handleStartDragging(event,props){}},{key:"handleStopDragging",value:function handleStopDragging(event,props){}},{key:"handleDragging",value:function handleDragging(event,props){}},{key:"handleKeyUp",value:function handleKeyUp(event,props){"Escape"===event.key&&(this.resetClickSequence(),props.onEdit({updatedData:props.data,editType:"cancelFeature",editContext:{}}))}}]),GeoJsonEditMode}();exports.GeoJsonEditMode=GeoJsonEditMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/immutable-feature-collection.js":function(__unused_webpack_module,exports){"use strict";function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0;i--){var featureIndex=featureIndexes[i];featureIndex>=0&&featureIndexarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i180&&(angle=360-angle),text=formatTooltip?formatTooltip(angle):"".concat(parseFloat(angle).toFixed(2)," ").concat("deg"),measurementCallback&&measurementCallback(angle),tooltips=[{position:(0,_center.default)({type:"FeatureCollection",features:[point1,point2].map((function(p){return{type:"Feature",geometry:{type:"Point",coordinates:p}}}))}).geometry.coordinates,text:text}]}return tooltips}))),_this}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(MeasureAngleMode,[{key:"handleClick",value:function handleClick(event,props){this.getClickSequence().length>=3&&this.resetClickSequence(),this.addClickSequence(event)}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell")}},{key:"getPoints",value:function getPoints(props){var clickSequence=this.getClickSequence(),points=_toConsumableArray(clickSequence);return clickSequence.length<3&&props.lastPointerMoveEvent&&points.push(props.lastPointerMoveEvent.mapCoords),points}},{key:"getGuides",value:function getGuides(props){var guides={type:"FeatureCollection",features:[]},features=guides.features,points=this.getPoints(props);return points.length>2?features.push({type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[points[1],points[0],points[2]]}}):points.length>1&&features.push({type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[points[1],points[0]]}}),guides}},{key:"getTooltips",value:function getTooltips(props){var points=this.getPoints(props);return this._getTooltips({modeConfig:props.modeConfig,vertex:points[0],point1:points[1],point2:points[2]})}}]),MeasureAngleMode}(_geojsonEditMode.GeoJsonEditMode);exports.MeasureAngleMode=MeasureAngleMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/measure-area-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MeasureAreaMode=void 0;var _area=_interopRequireDefault(__webpack_require__("./node_modules/@turf/area/dist/js/index.js")),_centroid=_interopRequireDefault(__webpack_require__("./node_modules/@turf/centroid/dist/js/index.js")),_drawPolygonMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/draw-polygon-mode.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&clickedEditHandle&&Array.isArray(clickedEditHandle.properties.positionIndexes)&&clickedEditHandle.properties.positionIndexes[0]===clickSequence.length-1)this._isMeasuringSessionFinished=!0;else if(positionAdded){if(clickSequence.length>1){this._currentDistance+=this._calculateDistanceForTooltip({positionA:clickSequence[clickSequence.length-2],positionB:clickSequence[clickSequence.length-1],modeConfig:modeConfig});var tooltipPosition=centerTooltipsOnLine?(0,_midpoint.default)(clickSequence[clickSequence.length-2],clickSequence[clickSequence.length-1]).geometry.coordinates:event.mapCoords;this._currentTooltips.push({position:tooltipPosition,text:this._formatTooltip(this._currentDistance,modeConfig)})}onEdit({updatedData:data,editType:"addTentativePosition",editContext:{position:event.mapCoords}})}}},{key:"handleKeyUp",value:function handleKeyUp(event,props){if(!this._isMeasuringSessionFinished){event.stopPropagation();var key=event.key,clickSequenceLength=this.getClickSequence().length;switch(key){case"Escape":this._isMeasuringSessionFinished=!0,1===clickSequenceLength&&(this.resetClickSequence(),this._currentTooltips=[]),props.onUpdateCursor("cell");break;case"Enter":this.handleClick(props.lastPointerMoveEvent,props),this._isMeasuringSessionFinished=!0}}}},{key:"getGuides",value:function getGuides(props){var _guides$features,lastPointerMoveEvent=props.lastPointerMoveEvent,clickSequence=this.getClickSequence(),lastCoords=lastPointerMoveEvent&&!this._isMeasuringSessionFinished?[lastPointerMoveEvent.mapCoords]:[],guides={type:"FeatureCollection",features:[]};clickSequence.length>0&&guides.features.push({type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[].concat(_toConsumableArray(clickSequence),lastCoords)}});var editHandles=clickSequence.map((function(clickedCoord,index){return{type:"Feature",properties:{guideType:"editHandle",editHandleType:"existing",featureIndex:-1,positionIndexes:[index]},geometry:{type:"Point",coordinates:clickedCoord}}}));return(_guides$features=guides.features).push.apply(_guides$features,_toConsumableArray(editHandles)),guides}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell")}},{key:"getTooltips",value:function getTooltips(props){var lastPointerMoveEvent=props.lastPointerMoveEvent,modeConfig=props.modeConfig,_ref5$centerTooltipsO=(modeConfig||{}).centerTooltipsOnLine,centerTooltipsOnLine=void 0!==_ref5$centerTooltipsO&&_ref5$centerTooltipsO,positions=this.getClickSequence();if(positions.length>0&&lastPointerMoveEvent&&!this._isMeasuringSessionFinished){var distance=this._calculateDistanceForTooltip({positionA:positions[positions.length-1],positionB:lastPointerMoveEvent.mapCoords,modeConfig:props.modeConfig}),tooltipPosition=centerTooltipsOnLine?(0,_midpoint.default)(positions[positions.length-1],lastPointerMoveEvent.mapCoords).geometry.coordinates:lastPointerMoveEvent.mapCoords;return[].concat(_toConsumableArray(this._currentTooltips),[{position:tooltipPosition,text:this._formatTooltip(this._currentDistance+distance,modeConfig)}])}return this._currentTooltips}}]),MeasureDistanceMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.MeasureDistanceMode=MeasureDistanceMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/modify-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ModifyMode=void 0;var _helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js"),_geojsonEditMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js"),_immutableFeatureCollection=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/immutable-feature-collection.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}(props.selectedIndexes);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _index=_step.value;if(_index2}))){if(viewport)return(0,_utils.nearestPointOnProjectedLine)(line,inPoint,viewport);console.log("Editing 3D point but modeConfig.viewport not provided. Falling back to 2D logic.")}return(0,_utils.nearestPointOnLine)(line,inPoint,viewport)}},{key:"handleClick",value:function handleClick(event,props){var pickedExistingHandle=(0,_utils.getPickedExistingEditHandle)(event.picks),pickedIntermediateHandle=(0,_utils.getPickedIntermediateEditHandle)(event.picks);if(pickedExistingHandle){var updatedData,_pickedExistingHandle=pickedExistingHandle.properties,featureIndex=_pickedExistingHandle.featureIndex,positionIndexes=_pickedExistingHandle.positionIndexes;try{updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).removePosition(featureIndex,positionIndexes).getObject()}catch(ignored){}updatedData&&props.onEdit({updatedData:updatedData,editType:"removePosition",editContext:{featureIndexes:[featureIndex],positionIndexes:positionIndexes,position:pickedExistingHandle.geometry.coordinates}})}else if(pickedIntermediateHandle){var _props$modeConfig2,_pickedIntermediateHa=pickedIntermediateHandle.properties,_featureIndex=_pickedIntermediateHa.featureIndex,_positionIndexes=_pickedIntermediateHa.positionIndexes,feature=props.data.features[_featureIndex];if(!((null===(_props$modeConfig2=props.modeConfig)||void 0===_props$modeConfig2?void 0:_props$modeConfig2.lockRectangles)&&"Rectangle"===(null==feature?void 0:feature.properties.shape))){var _updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).addPosition(_featureIndex,_positionIndexes,pickedIntermediateHandle.geometry.coordinates).getObject();_updatedData&&props.onEdit({updatedData:_updatedData,editType:"addPosition",editContext:{featureIndexes:[_featureIndex],positionIndexes:_positionIndexes,position:pickedIntermediateHandle.geometry.coordinates}})}}}},{key:"handleDragging",value:function handleDragging(event,props){var editHandle=(0,_utils.getPickedEditHandle)(event.pointerDownPicks);editHandle&&(event.cancelPan(),this._dragEditHandle("movePosition",props,editHandle,event))}},{key:"_dragEditHandle",value:function _dragEditHandle(editType,props,editHandle,event){var _props$modeConfig3,updatedData,editHandleProperties=editHandle.properties,editedFeature=props.data.features[editHandleProperties.featureIndex];if((null===(_props$modeConfig3=props.modeConfig)||void 0===_props$modeConfig3?void 0:_props$modeConfig3.lockRectangles)&&"Rectangle"===editedFeature.properties.shape){var coordinates=(0,_utils.updateRectanglePosition)(editedFeature,editHandleProperties.positionIndexes[1],event.mapCoords);updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replaceGeometry(editHandleProperties.featureIndex,{coordinates:coordinates,type:"Polygon"}).getObject()}else updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(editHandleProperties.featureIndex,editHandleProperties.positionIndexes,event.mapCoords).getObject();props.onEdit({updatedData:updatedData,editType:editType,editContext:{featureIndexes:[editHandleProperties.featureIndex],positionIndexes:editHandleProperties.positionIndexes,position:event.mapCoords}})}},{key:"handlePointerMove",value:function handlePointerMove(event,props){var cursor=this.getCursor(event);props.onUpdateCursor(cursor)}},{key:"handleStartDragging",value:function handleStartDragging(event,props){var selectedFeatureIndexes=props.selectedIndexes,editHandle=(0,_utils.getPickedIntermediateEditHandle)(event.picks);if(selectedFeatureIndexes.length&&editHandle){var editHandleProperties=editHandle.properties,updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).addPosition(editHandleProperties.featureIndex,editHandleProperties.positionIndexes,event.mapCoords).getObject();props.onEdit({updatedData:updatedData,editType:"addPosition",editContext:{featureIndexes:[editHandleProperties.featureIndex],positionIndexes:editHandleProperties.positionIndexes,position:event.mapCoords}})}}},{key:"handleStopDragging",value:function handleStopDragging(event,props){var selectedFeatureIndexes=props.selectedIndexes,editHandle=(0,_utils.getPickedEditHandle)(event.picks);selectedFeatureIndexes.length&&editHandle&&this._dragEditHandle("finishMovePosition",props,editHandle,event)}},{key:"getCursor",value:function getCursor(event){var picks=event&&event.picks||[];return(0,_utils.getPickedEditHandles)(picks).length?"cell":null}}]),ModifyMode}(_geojsonEditMode.GeoJsonEditMode);exports.ModifyMode=ModifyMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/resize-circle-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ResizeCircleMode=void 0;var _nearestPointOnLine=_interopRequireDefault(__webpack_require__("./node_modules/@turf/nearest-point-on-line/dist/js/index.js")),_helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_circle=_interopRequireDefault(__webpack_require__("./node_modules/@turf/circle/dist/js/index.js")),_distance=_interopRequireDefault(__webpack_require__("./node_modules/@turf/distance/dist/js/index.js")),_center=_interopRequireDefault(__webpack_require__("./node_modules/@turf/center/dist/js/index.js")),_utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js"),_geojsonEditMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js"),_immutableFeatureCollection=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/immutable-feature-collection.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2}))){if(viewport)return(0,_utils.nearestPointOnProjectedLine)(line,inPoint,viewport);console.log("Editing 3D point but modeConfig.viewport not provided. Falling back to 2D logic.")}return(0,_nearestPointOnLine.default)(line,inPoint)}},{key:"handleDragging",value:function handleDragging(event,props){var editHandle=(0,_utils.getPickedEditHandle)(event.pointerDownPicks);if(editHandle){event.cancelPan();var editHandleProperties=editHandle.properties,feature=this.getSelectedFeature(props),center=(0,_center.default)(feature).geometry.coordinates,numberOfSteps=Object.entries(feature.geometry.coordinates[0]).length-1,radius=Math.max((0,_distance.default)(center,event.mapCoords),.001),_ref$steps={}.steps,options={steps:void 0===_ref$steps?numberOfSteps:_ref$steps},geometry=(0,_circle.default)(center,radius,options).geometry,updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replaceGeometry(editHandleProperties.featureIndex,geometry).getObject();props.onEdit({updatedData:updatedData,editType:"unionGeometry",editContext:{featureIndexes:[editHandleProperties.featureIndex]}})}}},{key:"handlePointerMove",value:function handlePointerMove(event,props){if(!this._isResizing){var selectedEditHandle=(0,_utils.getPickedEditHandle)(event.picks);this._selectedEditHandle=selectedEditHandle&&"intermediate"===selectedEditHandle.properties.editHandleType?selectedEditHandle:null}var cursor=this.getCursor(event);props.onUpdateCursor(cursor)}},{key:"handleStartDragging",value:function handleStartDragging(event,props){this._selectedEditHandle&&(this._isResizing=!0)}},{key:"handleStopDragging",value:function handleStopDragging(event,props){this._isResizing&&(this._selectedEditHandle=null,this._isResizing=!1)}},{key:"getCursor",value:function getCursor(event){var picks=event&&event.picks||[];return(0,_utils.getPickedEditHandles)(picks).length?"cell":null}}]),ResizeCircleMode}(_geojsonEditMode.GeoJsonEditMode);exports.ResizeCircleMode=ResizeCircleMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/rotate-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RotateMode=void 0;var _bbox=_interopRequireDefault(__webpack_require__("./node_modules/@turf/bbox/dist/js/index.js")),_centroid=_interopRequireDefault(__webpack_require__("./node_modules/@turf/centroid/dist/js/index.js")),_bearing=_interopRequireDefault(__webpack_require__("./node_modules/@turf/bearing/dist/js/index.js")),_bboxPolygon=_interopRequireDefault(__webpack_require__("./node_modules/@turf/bbox-polygon/dist/js/index.js")),_distance=_interopRequireDefault(__webpack_require__("./node_modules/@turf/distance/dist/js/index.js")),_meta=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),_invariant=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),_helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_transformRotate=_interopRequireDefault(__webpack_require__("./node_modules/@turf/transform-rotate/dist/js/index.js")),_polygonToLine=_interopRequireDefault(__webpack_require__("./node_modules/@turf/polygon-to-line/dist/js/index.js")),_utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js"),_geojsonEditMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js"),_immutableFeatureCollection=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/immutable-feature-collection.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;itopEdgeMidpointCoords[1])&&(topEdgeMidpointCoords=edgeMidpoint);var edgeDistance=(0,_distance.default)(coord,previousCoord);longestEdgeLength=Math.max(longestEdgeLength,edgeDistance)}previousCoord=coord}));var rotateHandleCoords=topEdgeMidpointCoords&&[topEdgeMidpointCoords[0],topEdgeMidpointCoords[1]+longestEdgeLength/1e3],lineFromEnvelopeToRotateHandle=(0,_helpers.lineString)([topEdgeMidpointCoords,rotateHandleCoords]),rotateHandle=(0,_helpers.point)(rotateHandleCoords,{guideType:"editHandle",editHandleType:"rotate"});return(0,_helpers.featureCollection)([(0,_polygonToLine.default)(boundingBox),rotateHandle,lineFromEnvelopeToRotateHandle])}},{key:"handleDragging",value:function handleDragging(event,props){if(this._isRotating){var rotateAction=this.getRotateAction(event.pointerDownMapCoords,event.mapCoords,"rotating",props);rotateAction&&props.onEdit(rotateAction),event.cancelPan()}}},{key:"handlePointerMove",value:function handlePointerMove(event,props){if(!this._isRotating){var selectedEditHandle=(0,_utils.getPickedEditHandle)(event.picks);this._selectedEditHandle=selectedEditHandle&&"rotate"===selectedEditHandle.properties.editHandleType?selectedEditHandle:null}this.updateCursor(props)}},{key:"handleStartDragging",value:function handleStartDragging(event,props){this._selectedEditHandle&&(this._isRotating=!0,this._geometryBeingRotated=this.getSelectedFeaturesAsFeatureCollection(props))}},{key:"handleStopDragging",value:function handleStopDragging(event,props){if(this._isRotating){var rotateAction=this.getRotateAction(event.pointerDownMapCoords,event.mapCoords,"rotated",props);rotateAction&&props.onEdit(rotateAction),this._geometryBeingRotated=null,this._selectedEditHandle=null,this._isRotating=!1}}},{key:"updateCursor",value:function updateCursor(props){this._selectedEditHandle?props.onUpdateCursor("crosshair"):props.onUpdateCursor(null)}},{key:"getRotateAction",value:function getRotateAction(startDragPoint,currentPoint,editType,props){if(!this._geometryBeingRotated)return null;for(var centroid=(0,_centroid.default)(this._geometryBeingRotated),angle=function getRotationAngle(centroid,startDragPoint,currentPoint){var bearing1=(0,_bearing.default)(centroid,startDragPoint),bearing2=(0,_bearing.default)(centroid,currentPoint);return bearing2-bearing1}(centroid,startDragPoint,currentPoint),rotatedFeatures=(0,_transformRotate.default)(this._geometryBeingRotated,angle,{pivot:centroid}),updatedData=new _immutableFeatureCollection.ImmutableFeatureCollection(props.data),selectedIndexes=props.selectedIndexes,i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0&&positiveBearing<=90||positiveBearing>=180&&positiveBearing<=270?(_this._cursor="nesw-resize",props.onUpdateCursor("nesw-resize")):(_this._cursor="nwse-resize",props.onUpdateCursor("nwse-resize"))}else props.onUpdateCursor(null),_this._cursor=null})),_this}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(ScaleMode,[{key:"handlePointerMove",value:function handlePointerMove(event,props){if(!this._isScaling){var selectedEditHandle=(0,_utils.getPickedEditHandle)(event.picks);this._selectedEditHandle=selectedEditHandle&&"scale"===selectedEditHandle.properties.editHandleType?selectedEditHandle:null,this.updateCursor(props)}}},{key:"handleStartDragging",value:function handleStartDragging(event,props){this._selectedEditHandle&&(this._isScaling=!0,this._geometryBeingScaled=this.getSelectedFeaturesAsFeatureCollection(props))}},{key:"handleDragging",value:function handleDragging(event,props){if(this._isScaling){props.onUpdateCursor(this._cursor);var scaleAction=this.getScaleAction(event.pointerDownMapCoords,event.mapCoords,"scaling",props);scaleAction&&props.onEdit(scaleAction),event.cancelPan()}}},{key:"handleStopDragging",value:function handleStopDragging(event,props){if(this._isScaling){var scaleAction=this.getScaleAction(event.pointerDownMapCoords,event.mapCoords,"scaled",props);scaleAction&&props.onEdit(scaleAction),props.onUpdateCursor(null),this._geometryBeingScaled=null,this._selectedEditHandle=null,this._cursor=null,this._isScaling=!1}}},{key:"getGuides",value:function getGuides(props){this._cornerGuidePoints=[];var selectedGeometry=this.getSelectedFeaturesAsFeatureCollection(props);if(this._isSinglePointGeometrySelected(selectedGeometry))return{type:"FeatureCollection",features:[]};var boundingBox=(0,_bboxPolygon.default)((0,_bbox.default)(selectedGeometry));boundingBox.properties.mode="scale";var cornerGuidePoints=[];return(0,_meta.coordEach)(boundingBox,(function(coord,coordIndex){if(coordIndex<4){var cornerPoint=(0,_helpers.point)(coord,{guideType:"editHandle",editHandleType:"scale",positionIndexes:[coordIndex]});cornerGuidePoints.push(cornerPoint)}})),this._cornerGuidePoints=cornerGuidePoints,(0,_helpers.featureCollection)([(0,_polygonToLine.default)(boundingBox)].concat(_toConsumableArray(this._cornerGuidePoints)))}}]),ScaleMode}(_geojsonEditMode.GeoJsonEditMode);exports.ScaleMode=ScaleMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/snappable-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SnappableMode=void 0;var _utils=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/utils.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}(props.selectedIndexes);try{for(_iterator.s();!(_step=_iterator.n()).done;){var index=_step.value;if(indexarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);idistanceFromOrigin&&(minDistance=distanceFromOrigin,closestPoint=snapPoint)})),closestPoint){var lastBearing=(0,_bearing.default)(firstPoint,closestPoint),currentDistance=(0,_distance.default)(firstPoint,mapCoords,{units:"meters"});return(0,_destination.default)(firstPoint,currentDistance,lastBearing,{units:"meters"}).geometry.coordinates}return mapCoords}var lastPoint=clickSequence[clickSequence.length-1],approximatePoint=_slicedToArray((0,_utils.generatePointsParallelToLinePoints)(clickSequence[clickSequence.length-2],lastPoint,mapCoords),1)[0];return(0,_nearestPointOnLine.default)((0,_helpers.lineString)([lastPoint,approximatePoint]),mapCoords).geometry.coordinates}},{key:"getGuides",value:function getGuides(props){var clickSequence=this.getClickSequence(),guides={type:"FeatureCollection",features:[]};if(0===clickSequence.length||!props.lastPointerMoveEvent)return guides;var mapCoords=props.lastPointerMoveEvent.mapCoords;return guides.features.push({type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[].concat(_toConsumableArray(clickSequence),[this.calculateMapCoords(clickSequence,mapCoords,props)])}}),guides}},{key:"handleClick",value:function handleClick(event,props){var tentativeFeature=this.getTentativeGuide(props),selectedGeometry=this.getSelectedGeometry(props);if(selectedGeometry){var clickSequence=this.getClickSequence();tentativeFeature&&"LineString"===tentativeFeature.geometry.type?clickSequence.push(tentativeFeature.geometry.coordinates[tentativeFeature.geometry.coordinates.length-1]):this.addClickSequence(event);var pt={type:"Point",coordinates:clickSequence[clickSequence.length-1]},isPointInPolygon=(0,_booleanPointInPolygon.default)(pt,selectedGeometry);if(clickSequence.length>1&&tentativeFeature&&!isPointInPolygon){if(this.resetClickSequence(),0===(0,_lineIntersect.default)(tentativeFeature,selectedGeometry).features.length)return;var editAction=this.splitPolygon(tentativeFeature,props);editAction&&props.onEdit(editAction)}}else console.warn("A polygon must be selected for splitting")}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell")}},{key:"splitPolygon",value:function splitPolygon(tentativeFeature,props){var selectedGeometry=this.getSelectedGeometry(props),featureIndex=props.selectedIndexes[0],modeConfig=props.modeConfig||{},_modeConfig$gap=modeConfig.gap,gap=void 0===_modeConfig$gap?.1:_modeConfig$gap,_modeConfig$units=modeConfig.units,units=void 0===_modeConfig$units?"centimeters":_modeConfig$units;0===gap&&(gap=.1,units="centimeters");var buffer=(0,_buffer.default)(tentativeFeature,gap,{units:units}),updatedGeometry=(0,_difference.default)(selectedGeometry,buffer);if(!updatedGeometry)return console.warn("Canceling edit. Split Polygon erased"),null;var _updatedGeometry$geom=updatedGeometry.geometry,type=_updatedGeometry$geom.type,coordinates=_updatedGeometry$geom.coordinates,updatedCoordinates=[];return updatedCoordinates="Polygon"===type?coordinates.map((function(c){return[c]})):coordinates.reduce((function(agg,prev){return prev.forEach((function(p){agg.push([p])})),agg}),[]),{updatedData:new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replaceGeometry(featureIndex,{type:"MultiPolygon",coordinates:updatedCoordinates}).getObject(),editType:"split",editContext:{featureIndexes:[featureIndex]}}}}]),SplitPolygonMode}(_geojsonEditMode.GeoJsonEditMode);exports.SplitPolygonMode=SplitPolygonMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/three-click-polygon-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;i2&&tentativeFeature&&"Polygon"===tentativeFeature.geometry.type){var editAction=this.getAddFeatureOrBooleanPolygonAction(tentativeFeature.geometry,props);this.resetClickSequence(),editAction&&props.onEdit(editAction)}}},{key:"getGuides",value:function getGuides(props){var lastPointerMoveEvent=props.lastPointerMoveEvent,modeConfig=props.modeConfig,clickSequence=this.getClickSequence(),guides={type:"FeatureCollection",features:[]};if(0===clickSequence.length)return guides;var hoveredCoord=lastPointerMoveEvent.mapCoords;if(1===clickSequence.length)guides.features.push({type:"Feature",properties:{guideType:"tentative"},geometry:{type:"LineString",coordinates:[clickSequence[0],hoveredCoord]}});else{var polygon=this.getThreeClickPolygon(clickSequence[0],clickSequence[1],hoveredCoord,modeConfig);polygon&&guides.features.push({type:"Feature",properties:{guideType:"tentative"},geometry:polygon.geometry})}return guides}},{key:"getThreeClickPolygon",value:function getThreeClickPolygon(coord1,coord2,coord3,modeConfig){return null}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell"),_get(_getPrototypeOf(ThreeClickPolygonMode.prototype),"handlePointerMove",this).call(this,event,props)}},{key:"createTentativeFeature",value:function createTentativeFeature(props){var tentativeFeature,lastPointerMoveEvent=props.lastPointerMoveEvent,clickSequence=this.getClickSequence(),lastCoords=lastPointerMoveEvent?[lastPointerMoveEvent.mapCoords]:[];return 2===clickSequence.length&&(tentativeFeature=this.getThreeClickPolygon(clickSequence[0],clickSequence[1],lastCoords[0],props.modeConfig)),tentativeFeature}}]),ThreeClickPolygonMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.ThreeClickPolygonMode=ThreeClickPolygonMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/transform-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TransformMode=void 0;var _helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),_translateMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/translate-mode.js"),_scaleMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/scale-mode.js"),_rotateMode=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/rotate-mode.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _defineProperties(target,props){for(var i=0;i1&&tentativeFeature&&"Polygon"===tentativeFeature.geometry.type){var feature={type:"Feature",properties:{shape:tentativeFeature.properties.shape},geometry:{type:"Polygon",coordinates:tentativeFeature.geometry.coordinates}},editAction=this.getAddFeatureOrBooleanPolygonAction(feature,props);this.resetClickSequence(),editAction&&props.onEdit(editAction)}}},{key:"getGuides",value:function getGuides(props){var lastPointerMoveEvent=props.lastPointerMoveEvent,modeConfig=props.modeConfig,clickSequence=this.getClickSequence(),guides={type:"FeatureCollection",features:[]};if(0===clickSequence.length)return guides;var corner1=clickSequence[0],corner2=lastPointerMoveEvent.mapCoords,polygon=this.getTwoClickPolygon(corner1,corner2,modeConfig);return polygon&&guides.features.push({type:"Feature",properties:{shape:polygon.properties&&polygon.properties.shape,guideType:"tentative"},geometry:polygon.geometry}),guides}},{key:"getTwoClickPolygon",value:function getTwoClickPolygon(coord1,coord2,modeConfig){return null}},{key:"handlePointerMove",value:function handlePointerMove(event,props){props.onUpdateCursor("cell"),_get(_getPrototypeOf(TwoClickPolygonMode.prototype),"handlePointerMove",this).call(this,event,props)}},{key:"createTentativeFeature",value:function createTentativeFeature(props){var tentativeFeature,lastPointerMoveEvent=props.lastPointerMoveEvent,clickSequence=this.getClickSequence(),lastCoords=lastPointerMoveEvent?[lastPointerMoveEvent.mapCoords]:[];return 1===clickSequence.length&&(tentativeFeature=this.getTwoClickPolygon(clickSequence[0],lastCoords[0],props.modeConfig)),tentativeFeature}}]),TwoClickPolygonMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.TwoClickPolygonMode=TwoClickPolygonMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/lib/view-mode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _createSuper(Derived){return function(){var result,Super=_getPrototypeOf(Derived);if(function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;return function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}(this,result)}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ViewMode=void 0;var ViewMode=function(_GeoJsonEditMode){!function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}(ViewMode,_GeoJsonEditMode);var _super=_createSuper(ViewMode);function ViewMode(){return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,ViewMode),_super.apply(this,arguments)}return ViewMode}(__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/lib/geojson-edit-mode.js").GeoJsonEditMode);exports.ViewMode=ViewMode},"./node_modules/@nebula.gl/edit-modes/dist-es6/memoize.js":function(__unused_webpack_module,exports){"use strict";function isEqual(a,b){if(a===b)return!0;if(Array.isArray(a)){var len=a.length;if(!b||b.length!==len)return!1;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:[255,0,0,255];if(!Array.isArray(color))return defaultColor;return[255*color[0],255*color[1],255*color[2],255*color[3]]},exports.recursivelyTraverseNestedArrays=function recursivelyTraverseNestedArrays(array,prefix,fn){if(!Array.isArray(array[0]))return!0;for(var i=0;i1&&pointCoords.length){var lineCoordinates,pointCoordinate;mercator?(lineCoordinates=coords.map((function(lineCoordinate){return mercator.project(lineCoordinate)})),pointCoordinate=mercator.project(pointCoords)):(lineCoordinates=coords,pointCoordinate=pointCoords);for(var n=1;nrl2&&(dist=Math.sqrt(Math.min(ln2,lnm12))),(null==minDist||minDist>dist)&&(calcrl2>rl2?lnm12=0&&"existing"===properties.editHandleType}))},exports.getPickedIntermediateEditHandle=function getPickedIntermediateEditHandle(picks){return getPickedEditHandles(picks).find((function(_ref6){var properties=_ref6.properties;return properties.featureIndex>=0&&"intermediate"===properties.editHandleType}))},exports.getPickedEditHandles=getPickedEditHandles,exports.getEditHandlesForGeometry=function getEditHandlesForGeometry(geometry,featureIndex){var editHandleType=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"existing",handles=[];switch(geometry.type){case"Point":handles=[{type:"Feature",properties:{guideType:"editHandle",editHandleType:editHandleType,positionIndexes:[],featureIndex:featureIndex},geometry:{type:"Point",coordinates:geometry.coordinates}}];break;case"MultiPoint":case"LineString":handles=handles.concat(getEditHandlesForCoordinates(geometry.coordinates,[],featureIndex,editHandleType));break;case"Polygon":case"MultiLineString":for(var a=0;aarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i3&&void 0!==arguments[3]?arguments[3]:"existing",editHandles=[],i=0;i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{};return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Arrow2DGeometry),_super.call(this,Object.assign({},opts,{attributes:getArrowAttributes(opts)}))}return Arrow2DGeometry}(__webpack_require__("./node_modules/@luma.gl/core/dist/esm/index.js").Geometry);function getArrowAttributes(_ref){for(var _ref$length=_ref.length,length=void 0===_ref$length?1:_ref$length,_ref$headSize=_ref.headSize,headSize=void 0===_ref$headSize?.2:_ref$headSize,_ref$tailWidth=_ref.tailWidth,tailWidth=void 0===_ref$tailWidth?.05:_ref$tailWidth,_ref$tailStart=_ref.tailStart,tailStart=void 0===_ref$tailStart?.05:_ref$tailStart,texCoords=[.5,1,0,.5-headSize/2,1-headSize,0,.5+headSize/2,1-headSize,0,.5-tailWidth/2,tailStart,0,.5+tailWidth/2,1-headSize,0,.5+tailWidth/2,tailStart,0,.5-tailWidth/2,tailStart,0,.5-tailWidth/2,1-headSize,0,.5+tailWidth/2,1-headSize,0],positions=new Array(texCoords.length),i=0;i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);idistanceAlong);i++)previousDistance=currentDistance;i===path.length-1&&(i-=1);var along=distanceAlong-previousDistance,vCenter=path[i+1].clone().subtract(path[i]).normalize().clone().multiply(new _math.Vector2(along,along)).add(path[i]),angle=180*new _math.Vector2(projectFlat(path[i+1])).subtract(projectFlat(path[i])).verticalAngle()/Math.PI;return{position:[vCenter.x,vCenter.y,0],angle:angle,color:color,object:object}}},"./node_modules/@nebula.gl/layers/dist-es6/layers/path-marker-layer/path-marker-layer.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _core=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/index.js"),_layers=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/index.js"),_meshLayers=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/index.js"),_pathOutlineLayer=_interopRequireDefault(__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/layers/path-outline-layer/path-outline-layer.js")),_arrow2dGeometry=_interopRequireDefault(__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/layers/path-marker-layer/arrow-2d-geometry.js")),_createPathMarkers=_interopRequireDefault(__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/layers/path-marker-layer/create-path-markers.js")),_polyline=__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/layers/path-marker-layer/polyline.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i.1?[.25,.5,.75]:[.5]}}),PathMarkerLayer=function(_CompositeLayer){!function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}(PathMarkerLayer,_CompositeLayer);var _super=_createSuper(PathMarkerLayer);function PathMarkerLayer(){return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,PathMarkerLayer),_super.apply(this,arguments)}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(PathMarkerLayer,[{key:"initializeState",value:function initializeState(){this.state={markers:[],mesh:new _arrow2dGeometry.default({headSize:.2,tailWidth:.05}),closestPoint:null}}},{key:"projectFlat",value:function projectFlat(xyz,viewport,coordinateSystem,coordinateOrigin){if(coordinateSystem===_core.COORDINATE_SYSTEM.METER_OFFSETS){var _viewport$metersToLng2=_slicedToArray(viewport.metersToLngLatDelta(xyz),2),dx=_viewport$metersToLng2[0],dy=_viewport$metersToLng2[1],_coordinateOrigin=_slicedToArray(coordinateOrigin,2),_x=_coordinateOrigin[0],y=_coordinateOrigin[1];return viewport.projectFlat([_x+dx,dy+y])}if(coordinateSystem===_core.COORDINATE_SYSTEM.LNGLAT_OFFSETS){var _xyz=_slicedToArray(xyz,2),_dx=_xyz[0],_dy=_xyz[1],_coordinateOrigin2=_slicedToArray(coordinateOrigin,2),_x2=_coordinateOrigin2[0],_y=_coordinateOrigin2[1];return viewport.projectFlat([_x2+_dx,_dy+_y])}return viewport.projectFlat(xyz)}},{key:"updateState",value:function updateState(_ref2){var _this=this,props=_ref2.props,oldProps=_ref2.oldProps,changeFlags=_ref2.changeFlags;if(changeFlags.dataChanged||changeFlags.updateTriggersChanged){var _this$props=this.props,data=_this$props.data,getPath=_this$props.getPath,getDirection=_this$props.getDirection,getMarkerColor=_this$props.getMarkerColor,getMarkerPercentages=_this$props.getMarkerPercentages,coordinateSystem=_this$props.coordinateSystem,coordinateOrigin=_this$props.coordinateOrigin,viewport=this.context.viewport;this.state.markers=(0,_createPathMarkers.default)({data:data,getPath:getPath,getDirection:getDirection,getColor:getMarkerColor,getMarkerPercentages:getMarkerPercentages,projectFlat:function projectFlat(o){return _this.projectFlat(o,viewport,coordinateSystem,coordinateOrigin)}}),this._recalculateClosestPoint()}changeFlags.propsChanged&&props.point!==oldProps.point&&this._recalculateClosestPoint()}},{key:"_recalculateClosestPoint",value:function _recalculateClosestPoint(){var _this$props2=this.props,highlightPoint=_this$props2.highlightPoint,highlightIndex=_this$props2.highlightIndex;if(highlightPoint&&highlightIndex>=0){var object=this.props.data[highlightIndex],points=this.props.getPath(object),point=(0,_polyline.getClosestPointOnPolyline)({points:points,p:highlightPoint}).point;this.state.closestPoints=[{position:point}]}else this.state.closestPoints=[]}},{key:"getPickingInfo",value:function getPickingInfo(_ref3){var info=_ref3.info;return Object.assign(info,{object:info.object&&info.object.path||info.object})}},{key:"renderLayers",value:function renderLayers(){return[new _pathOutlineLayer.default(this.props,this.getSubLayerProps({id:"paths",data:this.props.data})),new this.props.MarkerLayer(this.getSubLayerProps(Object.assign({},this.props.markerLayerProps,{id:"markers",data:this.state.markers,getOrientation:function getOrientation(x){return[0,-x.angle,0]},getColor:function getColor(x){return x.color},sizeScale:this.props.sizeScale,fp64:this.props.fp64,pickable:!1,parameters:{blend:!1,depthTest:!1}}))),this.state.closestPoints&&new _layers.ScatterplotLayer({id:"".concat(this.props.id,"-highlight"),data:this.state.closestPoints,fp64:this.props.fp64})]}}]),PathMarkerLayer}(_core.CompositeLayer);exports.default=PathMarkerLayer,_defineProperty(PathMarkerLayer,"layerName","PathMarkerLayer"),_defineProperty(PathMarkerLayer,"defaultProps",defaultProps)},"./node_modules/@nebula.gl/layers/dist-es6/layers/path-marker-layer/polyline.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getClosestPointOnLine=getClosestPointOnLine,exports.getClosestPointOnPolyline=function getClosestPointOnPolyline(_ref2){var p=_ref2.p,points=_ref2.points;p=new _math.Vector3(p);for(var pClosest=null,distanceSquared=1/0,index=-1,i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i 0.0) {\n maxZLevel = texture2DProj(outline_uShadowmap, outline_vPosition).r * 255.;\n } else {\n discard;\n }\n if (maxZLevel < outline_vzLevel + OUTLINE_Z_LEVEL_ERROR) {\n vec4(color.rgb * 0.5, color.a);\n } else {\n discard;\n }\n }\n return color;\n}\n\n// if enabled and rendering outlines - Render depth to shadowmap\n// if enabled and rendering colors - Return a darker color if in shadowmap\n// if disabled, just return color\nvec4 outline_filterColor(vec4 color) {\n if (outline_uEnabled) {\n return outline_uRenderOutlines ?\n outline_filterShadowColor(color) :\n outline_filterDarkenColor(color);\n }\n return color;\n}\n",getUniforms:function getUniforms(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:INITIAL_STATE,outlineEnabled=_ref.outlineEnabled,outlineRenderShadowmap=_ref.outlineRenderShadowmap,outlineShadowmap=_ref.outlineShadowmap,uniforms={};return void 0!==outlineEnabled&&(uniforms.outline_uEnabled=outlineEnabled),void 0!==outlineRenderShadowmap&&(uniforms.outline_uRenderOutlines=outlineRenderShadowmap),void 0!==outlineShadowmap&&(uniforms.outline_uShadowmap=outlineShadowmap),uniforms}};exports.default=_default},"./node_modules/@nebula.gl/layers/dist-es6/style.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_ARROWS=exports.DEFAULT_ARROWS=exports.ArrowStyles=void 0;exports.ArrowStyles={NONE:0,FORWARD:1,BACKWARD:2,BOTH:3};exports.DEFAULT_ARROWS=1;exports.MAX_ARROWS=3},"./node_modules/@nebula.gl/layers/dist-es6/utils.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toDeckColor=function toDeckColor(color){var defaultColor=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[255,0,0,255];if(!Array.isArray(color))return defaultColor;return[255*color[0],255*color[1],255*color[2],255*color[3]]},exports.recursivelyTraverseNestedArrays=function recursivelyTraverseNestedArrays(array,prefix,fn){if(!Array.isArray(array[0]))return!0;for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=travelled&&i===coords.length-1);i++){if(travelled>=distance){var overshot=distance-travelled;if(overshot){var direction=bearing_1.default(coords[i],coords[i-1])-180;return destination_1.default(coords[i],overshot,direction,options)}return helpers_1.point(coords[i])}travelled+=distance_1.default(coords[i],coords[i+1],options)}return helpers_1.point(coords[coords.length-1])}},"./node_modules/@turf/area/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var meta_1=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),RADIUS=6378137;function polygonArea(coords){var total=0;if(coords&&coords.length>0){total+=Math.abs(ringArea(coords[0]));for(var i=1;i2){for(i=0;icoord[0]&&(result[0]=coord[0]),result[1]>coord[1]&&(result[1]=coord[1]),result[2]0}},"./node_modules/@turf/boolean-point-in-polygon/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js");function inRing(pt,ring,ignoreBoundary){var isInside=!1;ring[0][0]===ring[ring.length-1][0]&&ring[0][1]===ring[ring.length-1][1]&&(ring=ring.slice(0,ring.length-1));for(var i=0,j=ring.length-1;ipt[1]!=yj>pt[1]&&pt[0]<(xj-xi)*(pt[1]-yi)/(yj-yi)+xi&&(isInside=!isInside)}return isInside}exports.default=function booleanPointInPolygon(point,polygon,options){if(void 0===options&&(options={}),!point)throw new Error("point is required");if(!polygon)throw new Error("polygon is required");var pt=invariant_1.getCoord(point),geom=invariant_1.getGeom(polygon),type=geom.type,bbox=polygon.bbox,polys=geom.coordinates;if(bbox&&!1===function inBBox(pt,bbox){return bbox[0]<=pt[0]&&bbox[1]<=pt[1]&&bbox[2]>=pt[0]&&bbox[3]>=pt[1]}(pt,bbox))return!1;"Polygon"===type&&(polys=[polys]);for(var insidePoly=!1,i=0;i0?1:x<0?-1:0},sqrt=Math.sqrt,tan=Math.tan;function acos(x){return x>1?0:x<-1?pi:Math.acos(x)}function asin(x){return x>1?halfPi:x<-1?-halfPi:Math.asin(x)}function haversin(x){return(x=sin(x/2))*x}function noop(){}function streamGeometry(geometry,stream){geometry&&streamGeometryType.hasOwnProperty(geometry.type)&&streamGeometryType[geometry.type](geometry,stream)}var streamObjectType={Feature:function(object,stream){streamGeometry(object.geometry,stream)},FeatureCollection:function(object,stream){for(var features=object.features,i=-1,n=features.length;++i=0?1:-1,adLambda=sdLambda*dLambda,cosPhi=cos(phi=(phi*=radians)/2+quarterPi),sinPhi=sin(phi),k=sinPhi0*sinPhi,u=cosPhi0*cosPhi+k*cos(adLambda),v=k*sdLambda*sin(adLambda);areaRingSum.add(atan2(v,u)),lambda0=lambda,cosPhi0=cosPhi,sinPhi0=sinPhi}function src_area(object){return areaSum.reset(),stream(object,areaStream),2*areaSum}function spherical(cartesian){return[atan2(cartesian[1],cartesian[0]),asin(cartesian[2])]}function cartesian(spherical){var lambda=spherical[0],phi=spherical[1],cosPhi=cos(phi);return[cosPhi*cos(lambda),cosPhi*sin(lambda),sin(phi)]}function cartesianDot(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]}function cartesianCross(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function cartesianAddInPlace(a,b){a[0]+=b[0],a[1]+=b[1],a[2]+=b[2]}function cartesianScale(vector,k){return[vector[0]*k,vector[1]*k,vector[2]*k]}function cartesianNormalizeInPlace(d){var l=sqrt(d[0]*d[0]+d[1]*d[1]+d[2]*d[2]);d[0]/=l,d[1]/=l,d[2]/=l}var bounds_lambda0,phi0,lambda1,phi1,lambda2,bounds_lambda00,bounds_phi00,p0,ranges,bounds_range,W0,W1,X0,Y0,Z0,X1,Y1,Z1,X2,Y2,Z2,centroid_lambda00,centroid_phi00,x0,y0,z0,deltaSum=adder(),boundsStream={point:boundsPoint,lineStart:boundsLineStart,lineEnd:boundsLineEnd,polygonStart:function(){boundsStream.point=boundsRingPoint,boundsStream.lineStart=boundsRingStart,boundsStream.lineEnd=boundsRingEnd,deltaSum.reset(),areaStream.polygonStart()},polygonEnd:function(){areaStream.polygonEnd(),boundsStream.point=boundsPoint,boundsStream.lineStart=boundsLineStart,boundsStream.lineEnd=boundsLineEnd,areaRingSum<0?(bounds_lambda0=-(lambda1=180),phi0=-(phi1=90)):deltaSum>epsilon?phi1=90:deltaSum<-epsilon&&(phi0=-90),bounds_range[0]=bounds_lambda0,bounds_range[1]=lambda1}};function boundsPoint(lambda,phi){ranges.push(bounds_range=[bounds_lambda0=lambda,lambda1=lambda]),phiphi1&&(phi1=phi)}function linePoint(lambda,phi){var p=cartesian([lambda*radians,phi*radians]);if(p0){var normal=cartesianCross(p0,p),inflection=cartesianCross([normal[1],-normal[0],0],normal);cartesianNormalizeInPlace(inflection),inflection=spherical(inflection);var phii,delta=lambda-lambda2,sign=delta>0?1:-1,lambdai=inflection[0]*degrees*sign,antimeridian=abs(delta)>180;antimeridian^(sign*lambda2phi1&&(phi1=phii):antimeridian^(sign*lambda2<(lambdai=(lambdai+360)%360-180)&&lambdaiphi1&&(phi1=phi)),antimeridian?lambdaangle(bounds_lambda0,lambda1)&&(lambda1=lambda):angle(lambda,lambda1)>angle(bounds_lambda0,lambda1)&&(bounds_lambda0=lambda):lambda1>=bounds_lambda0?(lambdalambda1&&(lambda1=lambda)):lambda>lambda2?angle(bounds_lambda0,lambda)>angle(bounds_lambda0,lambda1)&&(lambda1=lambda):angle(lambda,lambda1)>angle(bounds_lambda0,lambda1)&&(bounds_lambda0=lambda)}else ranges.push(bounds_range=[bounds_lambda0=lambda,lambda1=lambda]);phiphi1&&(phi1=phi),p0=p,lambda2=lambda}function boundsLineStart(){boundsStream.point=linePoint}function boundsLineEnd(){bounds_range[0]=bounds_lambda0,bounds_range[1]=lambda1,boundsStream.point=boundsPoint,p0=null}function boundsRingPoint(lambda,phi){if(p0){var delta=lambda-lambda2;deltaSum.add(abs(delta)>180?delta+(delta>0?360:-360):delta)}else bounds_lambda00=lambda,bounds_phi00=phi;areaStream.point(lambda,phi),linePoint(lambda,phi)}function boundsRingStart(){areaStream.lineStart()}function boundsRingEnd(){boundsRingPoint(bounds_lambda00,bounds_phi00),areaStream.lineEnd(),abs(deltaSum)>epsilon&&(bounds_lambda0=-(lambda1=180)),bounds_range[0]=bounds_lambda0,bounds_range[1]=lambda1,p0=null}function angle(lambda0,lambda1){return(lambda1-=lambda0)<0?lambda1+360:lambda1}function rangeCompare(a,b){return a[0]-b[0]}function rangeContains(range,x){return range[0]<=range[1]?range[0]<=x&&x<=range[1]:xangle(a[0],a[1])&&(a[1]=b[1]),angle(b[0],a[1])>angle(a[0],a[1])&&(a[0]=b[0])):merged.push(a=b);for(deltaMax=-1/0,i=0,a=merged[n=merged.length-1];i<=n;a=b,++i)b=merged[i],(delta=angle(a[1],b[0]))>deltaMax&&(deltaMax=delta,bounds_lambda0=b[0],lambda1=a[1])}return ranges=bounds_range=null,bounds_lambda0===1/0||phi0===1/0?[[NaN,NaN],[NaN,NaN]]:[[bounds_lambda0,phi0],[lambda1,phi1]]}var centroidStream={sphere:noop,point:centroidPoint,lineStart:centroidLineStart,lineEnd:centroidLineEnd,polygonStart:function(){centroidStream.lineStart=centroidRingStart,centroidStream.lineEnd=centroidRingEnd},polygonEnd:function(){centroidStream.lineStart=centroidLineStart,centroidStream.lineEnd=centroidLineEnd}};function centroidPoint(lambda,phi){lambda*=radians;var cosPhi=cos(phi*=radians);centroidPointCartesian(cosPhi*cos(lambda),cosPhi*sin(lambda),sin(phi))}function centroidPointCartesian(x,y,z){++W0,X0+=(x-X0)/W0,Y0+=(y-Y0)/W0,Z0+=(z-Z0)/W0}function centroidLineStart(){centroidStream.point=centroidLinePointFirst}function centroidLinePointFirst(lambda,phi){lambda*=radians;var cosPhi=cos(phi*=radians);x0=cosPhi*cos(lambda),y0=cosPhi*sin(lambda),z0=sin(phi),centroidStream.point=centroidLinePoint,centroidPointCartesian(x0,y0,z0)}function centroidLinePoint(lambda,phi){lambda*=radians;var cosPhi=cos(phi*=radians),x=cosPhi*cos(lambda),y=cosPhi*sin(lambda),z=sin(phi),w=atan2(sqrt((w=y0*z-z0*y)*w+(w=z0*x-x0*z)*w+(w=x0*y-y0*x)*w),x0*x+y0*y+z0*z);W1+=w,X1+=w*(x0+(x0=x)),Y1+=w*(y0+(y0=y)),Z1+=w*(z0+(z0=z)),centroidPointCartesian(x0,y0,z0)}function centroidLineEnd(){centroidStream.point=centroidPoint}function centroidRingStart(){centroidStream.point=centroidRingPointFirst}function centroidRingEnd(){centroidRingPoint(centroid_lambda00,centroid_phi00),centroidStream.point=centroidPoint}function centroidRingPointFirst(lambda,phi){centroid_lambda00=lambda,centroid_phi00=phi,lambda*=radians,phi*=radians,centroidStream.point=centroidRingPoint;var cosPhi=cos(phi);x0=cosPhi*cos(lambda),y0=cosPhi*sin(lambda),z0=sin(phi),centroidPointCartesian(x0,y0,z0)}function centroidRingPoint(lambda,phi){lambda*=radians;var cosPhi=cos(phi*=radians),x=cosPhi*cos(lambda),y=cosPhi*sin(lambda),z=sin(phi),cx=y0*z-z0*y,cy=z0*x-x0*z,cz=x0*y-y0*x,m=sqrt(cx*cx+cy*cy+cz*cz),w=asin(m),v=m&&-w/m;X2+=v*cx,Y2+=v*cy,Z2+=v*cz,W1+=w,X1+=w*(x0+(x0=x)),Y1+=w*(y0+(y0=y)),Z1+=w*(z0+(z0=z)),centroidPointCartesian(x0,y0,z0)}function centroid(object){W0=W1=X0=Y0=Z0=X1=Y1=Z1=X2=Y2=Z2=0,stream(object,centroidStream);var x=X2,y=Y2,z=Z2,m=x*x+y*y+z*z;return mpi?lambda-tau:lambda<-pi?lambda+tau:lambda,phi]}function rotateRadians(deltaLambda,deltaPhi,deltaGamma){return(deltaLambda%=tau)?deltaPhi||deltaGamma?compose(rotationLambda(deltaLambda),rotationPhiGamma(deltaPhi,deltaGamma)):rotationLambda(deltaLambda):deltaPhi||deltaGamma?rotationPhiGamma(deltaPhi,deltaGamma):rotationIdentity}function forwardRotationLambda(deltaLambda){return function(lambda,phi){return[(lambda+=deltaLambda)>pi?lambda-tau:lambda<-pi?lambda+tau:lambda,phi]}}function rotationLambda(deltaLambda){var rotation=forwardRotationLambda(deltaLambda);return rotation.invert=forwardRotationLambda(-deltaLambda),rotation}function rotationPhiGamma(deltaPhi,deltaGamma){var cosDeltaPhi=cos(deltaPhi),sinDeltaPhi=sin(deltaPhi),cosDeltaGamma=cos(deltaGamma),sinDeltaGamma=sin(deltaGamma);function rotation(lambda,phi){var cosPhi=cos(phi),x=cos(lambda)*cosPhi,y=sin(lambda)*cosPhi,z=sin(phi),k=z*cosDeltaPhi+x*sinDeltaPhi;return[atan2(y*cosDeltaGamma-k*sinDeltaGamma,x*cosDeltaPhi-z*sinDeltaPhi),asin(k*cosDeltaGamma+y*sinDeltaGamma)]}return rotation.invert=function(lambda,phi){var cosPhi=cos(phi),x=cos(lambda)*cosPhi,y=sin(lambda)*cosPhi,z=sin(phi),k=z*cosDeltaGamma-y*sinDeltaGamma;return[atan2(y*cosDeltaGamma+z*sinDeltaGamma,x*cosDeltaPhi+k*sinDeltaPhi),asin(k*cosDeltaPhi-x*sinDeltaPhi)]},rotation}function rotation(rotate){function forward(coordinates){return(coordinates=rotate(coordinates[0]*radians,coordinates[1]*radians))[0]*=degrees,coordinates[1]*=degrees,coordinates}return rotate=rotateRadians(rotate[0]*radians,rotate[1]*radians,rotate.length>2?rotate[2]*radians:0),forward.invert=function(coordinates){return(coordinates=rotate.invert(coordinates[0]*radians,coordinates[1]*radians))[0]*=degrees,coordinates[1]*=degrees,coordinates},forward}function circleStream(stream,radius,delta,direction,t0,t1){if(delta){var cosRadius=cos(radius),sinRadius=sin(radius),step=direction*delta;null==t0?(t0=radius+direction*tau,t1=radius-step/2):(t0=circleRadius(cosRadius,t0),t1=circleRadius(cosRadius,t1),(direction>0?t0t1)&&(t0+=direction*tau));for(var point,t=t0;direction>0?t>t1:t1&&lines.push(lines.pop().concat(lines.shift()))},result:function(){var result=lines;return lines=[],line=null,result}}}function pointEqual(a,b){return abs(a[0]-b[0])=0;--i)stream.point((point=points[i])[0],point[1]);else interpolate(current.x,current.p.x,-1,stream);current=current.p}points=(current=current.o).z,isSubject=!isSubject}while(!current.v);stream.lineEnd()}}}function polygon_link(array){if(n=array.length){for(var n,b,i=0,a=array[0];++ib?1:a>=b?0:NaN}rotationIdentity.invert=rotationIdentity;var ascendingBisect=function bisector(compare){return 1===compare.length&&(compare=function ascendingComparator(f){return function(d,x){return src_ascending(f(d),x)}}(compare)),{left:function(a,x,lo,hi){for(null==lo&&(lo=0),null==hi&&(hi=a.length);lo>>1;compare(a[mid],x)<0?lo=mid+1:hi=mid}return lo},right:function(a,x,lo,hi){for(null==lo&&(lo=0),null==hi&&(hi=a.length);lo>>1;compare(a[mid],x)>0?hi=mid:lo=mid+1}return lo}}}(src_ascending),array=(ascendingBisect.right,ascendingBisect.left,Array.prototype);array.slice,array.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);function merge(arrays){for(var m,merged,array,n=arrays.length,i=-1,j=0;++i=0;)for(m=(array=arrays[n]).length;--m>=0;)merged[--j]=array[m];return merged}function src_range(start,stop,step){start=+start,stop=+stop,step=(n=arguments.length)<2?(stop=start,start=0,1):n<3?1:+step;for(var i=-1,n=0|Math.max(0,Math.ceil((stop-start)/step)),range=new Array(n);++i0)do{stream.point(0===a||3===a?x0:x1,a>1?y1:y0)}while((a=(a+direction+4)%4)!==a1);else stream.point(to[0],to[1])}function corner(p,direction){return abs(p[0]-x0)0?0:3:abs(p[0]-x1)0?2:1:abs(p[1]-y0)0?1:0:direction>0?3:2}function compareIntersection(a,b){return comparePoint(a.x,b.x)}function comparePoint(a,b){var ca=corner(a,1),cb=corner(b,1);return ca!==cb?ca-cb:0===ca?b[1]-a[1]:1===ca?a[0]-b[0]:2===ca?a[1]-b[1]:b[0]-a[0]}return function(stream){var segments,polygon,ring,x__,y__,v__,x_,y_,v_,first,clean,activeStream=stream,bufferStream=buffer(),clipStream={point:point,lineStart:function lineStart(){clipStream.point=linePoint,polygon&&polygon.push(ring=[]);first=!0,v_=!1,x_=y_=NaN},lineEnd:function lineEnd(){segments&&(linePoint(x__,y__),v__&&v_&&bufferStream.rejoin(),segments.push(bufferStream.result()));clipStream.point=point,v_&&activeStream.lineEnd()},polygonStart:function polygonStart(){activeStream=bufferStream,segments=[],polygon=[],clean=!0},polygonEnd:function polygonEnd(){var startInside=function polygonInside(){for(var winding=0,i=0,n=polygon.length;iy1&&(b0-a0)*(y1-a1)>(b1-a1)*(x0-a0)&&++winding:b1<=y1&&(b0-a0)*(y1-a1)<(b1-a1)*(x0-a0)&&--winding;return winding}(),cleanInside=clean&&startInside,visible=(segments=merge(segments)).length;(cleanInside||visible)&&(stream.polygonStart(),cleanInside&&(stream.lineStart(),interpolate(null,null,1,stream),stream.lineEnd()),visible&&clip_polygon(segments,compareIntersection,startInside,interpolate,stream),stream.polygonEnd());activeStream=stream,segments=polygon=ring=null}};function point(x,y){visible(x,y)&&activeStream.point(x,y)}function linePoint(x,y){var v=visible(x,y);if(polygon&&ring.push([x,y]),first)x__=x,y__=y,v__=v,first=!1,v&&(activeStream.lineStart(),activeStream.point(x,y));else if(v&&v_)activeStream.point(x,y);else{var a=[x_=Math.max(clipMin,Math.min(clipMax,x_)),y_=Math.max(clipMin,Math.min(clipMax,y_))],b=[x=Math.max(clipMin,Math.min(clipMax,x)),y=Math.max(clipMin,Math.min(clipMax,y))];!function line(a,b,x0,y0,x1,y1){var r,ax=a[0],ay=a[1],t0=0,t1=1,dx=b[0]-ax,dy=b[1]-ay;if(r=x0-ax,dx||!(r>0)){if(r/=dx,dx<0){if(r0){if(r>t1)return;r>t0&&(t0=r)}if(r=x1-ax,dx||!(r<0)){if(r/=dx,dx<0){if(r>t1)return;r>t0&&(t0=r)}else if(dx>0){if(r0)){if(r/=dy,dy<0){if(r0){if(r>t1)return;r>t0&&(t0=r)}if(r=y1-ay,dy||!(r<0)){if(r/=dy,dy<0){if(r>t1)return;r>t0&&(t0=r)}else if(dy>0){if(r0&&(a[0]=ax+t0*dx,a[1]=ay+t0*dy),t1<1&&(b[0]=ax+t1*dx,b[1]=ay+t1*dy),!0}}}}}(a,b,x0,y0,x1,y1)?v&&(activeStream.lineStart(),activeStream.point(x,y),clean=!1):(v_||(activeStream.lineStart(),activeStream.point(a[0],a[1])),activeStream.point(b[0],b[1]),v||activeStream.lineEnd(),clean=!1)}x_=x,y_=y,v_=v}return clipStream}}function clip_extent(){var cache,cacheStream,clip,x0=0,y0=0,x1=960,y1=500;return clip={stream:function(stream){return cache&&cacheStream===stream?cache:cache=clipExtent(x0,y0,x1,y1)(cacheStream=stream)},extent:function(_){return arguments.length?(x0=+_[0][0],y0=+_[0][1],x1=+_[1][0],y1=+_[1][1],cache=cacheStream=null,clip):[[x0,y0],[x1,y1]]}}}var sum=adder();function polygonContains(polygon,point){var lambda=point[0],phi=point[1],normal=[sin(lambda),-cos(lambda),0],angle=0,winding=0;sum.reset();for(var i=0,n=polygon.length;i=0?1:-1,absDelta=sign*delta,antimeridian=absDelta>pi,k=sinPhi0*sinPhi1;if(sum.add(atan2(k*sign*sin(absDelta),cosPhi0*cosPhi1+k*cos(absDelta))),angle+=antimeridian?delta+sign*tau:delta,antimeridian^lambda0>=lambda^lambda1>=lambda){var arc=cartesianCross(cartesian(point0),cartesian(point1));cartesianNormalizeInPlace(arc);var intersection=cartesianCross(normal,arc);cartesianNormalizeInPlace(intersection);var phiArc=(antimeridian^delta>=0?-1:1)*asin(intersection[2]);(phi>phiArc||phi===phiArc&&(arc[0]||arc[1]))&&(winding+=antimeridian^delta>=0?1:-1)}}return(angle<-epsilon||angleepsilon})).map(x)).concat(src_range(ceil(y0/dy)*dy,y1,dy).filter((function(y){return abs(y%DY)>epsilon})).map(y))}return graticule.lines=function(){return lines().map((function(coordinates){return{type:"LineString",coordinates:coordinates}}))},graticule.outline=function(){return{type:"Polygon",coordinates:[X(X0).concat(Y(Y1).slice(1),X(X1).reverse().slice(1),Y(Y0).reverse().slice(1))]}},graticule.extent=function(_){return arguments.length?graticule.extentMajor(_).extentMinor(_):graticule.extentMinor()},graticule.extentMajor=function(_){return arguments.length?(X0=+_[0][0],X1=+_[1][0],Y0=+_[0][1],Y1=+_[1][1],X0>X1&&(_=X0,X0=X1,X1=_),Y0>Y1&&(_=Y0,Y0=Y1,Y1=_),graticule.precision(precision)):[[X0,Y0],[X1,Y1]]},graticule.extentMinor=function(_){return arguments.length?(x0=+_[0][0],x1=+_[1][0],y0=+_[0][1],y1=+_[1][1],x0>x1&&(_=x0,x0=x1,x1=_),y0>y1&&(_=y0,y0=y1,y1=_),graticule.precision(precision)):[[x0,y0],[x1,y1]]},graticule.step=function(_){return arguments.length?graticule.stepMajor(_).stepMinor(_):graticule.stepMinor()},graticule.stepMajor=function(_){return arguments.length?(DX=+_[0],DY=+_[1],graticule):[DX,DY]},graticule.stepMinor=function(_){return arguments.length?(dx=+_[0],dy=+_[1],graticule):[dx,dy]},graticule.precision=function(_){return arguments.length?(precision=+_,x=graticuleX(y0,y1,90),y=graticuleY(x0,x1,precision),X=graticuleX(Y0,Y1,90),Y=graticuleY(X0,X1,precision),graticule):precision},graticule.extentMajor([[-180,-90+epsilon],[180,90-epsilon]]).extentMinor([[-180,-80-epsilon],[180,80+epsilon]])}function graticule10(){return graticule()()}function interpolate(a,b){var x0=a[0]*radians,y0=a[1]*radians,x1=b[0]*radians,y1=b[1]*radians,cy0=cos(y0),sy0=sin(y0),cy1=cos(y1),sy1=sin(y1),kx0=cy0*cos(x0),ky0=cy0*sin(x0),kx1=cy1*cos(x1),ky1=cy1*sin(x1),d=2*asin(sqrt(haversin(y1-y0)+cy0*cy1*haversin(x1-x0))),k=sin(d),interpolate=d?function(t){var B=sin(t*=d)/k,A=sin(d-t)/k,x=A*kx0+B*kx1,y=A*ky0+B*ky1,z=A*sy0+B*sy1;return[atan2(y,x)*degrees,atan2(z,sqrt(x*x+y*y))*degrees]}:function(){return[x0*degrees,y0*degrees]};return interpolate.distance=d,interpolate}function src_identity(x){return x}var x00,y00,area_x0,area_y0,area_areaSum=adder(),area_areaRingSum=adder(),area_areaStream={point:noop,lineStart:noop,lineEnd:noop,polygonStart:function(){area_areaStream.lineStart=area_areaRingStart,area_areaStream.lineEnd=area_areaRingEnd},polygonEnd:function(){area_areaStream.lineStart=area_areaStream.lineEnd=area_areaStream.point=noop,area_areaSum.add(abs(area_areaRingSum)),area_areaRingSum.reset()},result:function(){var area=area_areaSum/2;return area_areaSum.reset(),area}};function area_areaRingStart(){area_areaStream.point=area_areaPointFirst}function area_areaPointFirst(x,y){area_areaStream.point=area_areaPoint,x00=area_x0=x,y00=area_y0=y}function area_areaPoint(x,y){area_areaRingSum.add(area_y0*x-area_x0*y),area_x0=x,area_y0=y}function area_areaRingEnd(){area_areaPoint(x00,y00)}var path_area=area_areaStream,bounds_x0=1/0,bounds_y0=bounds_x0,x1=-bounds_x0,y1=x1,bounds_boundsStream={point:function bounds_boundsPoint(x,y){xx1&&(x1=x);yy1&&(y1=y)},lineStart:noop,lineEnd:noop,polygonStart:noop,polygonEnd:noop,result:function(){var bounds=[[bounds_x0,bounds_y0],[x1,y1]];return x1=y1=-(bounds_y0=bounds_x0=1/0),bounds}};var centroid_x00,centroid_y00,centroid_x0,centroid_y0,path_bounds=bounds_boundsStream,centroid_X0=0,centroid_Y0=0,centroid_Z0=0,centroid_X1=0,centroid_Y1=0,centroid_Z1=0,centroid_X2=0,centroid_Y2=0,centroid_Z2=0,centroid_centroidStream={point:centroid_centroidPoint,lineStart:centroid_centroidLineStart,lineEnd:centroid_centroidLineEnd,polygonStart:function(){centroid_centroidStream.lineStart=centroid_centroidRingStart,centroid_centroidStream.lineEnd=centroid_centroidRingEnd},polygonEnd:function(){centroid_centroidStream.point=centroid_centroidPoint,centroid_centroidStream.lineStart=centroid_centroidLineStart,centroid_centroidStream.lineEnd=centroid_centroidLineEnd},result:function(){var centroid=centroid_Z2?[centroid_X2/centroid_Z2,centroid_Y2/centroid_Z2]:centroid_Z1?[centroid_X1/centroid_Z1,centroid_Y1/centroid_Z1]:centroid_Z0?[centroid_X0/centroid_Z0,centroid_Y0/centroid_Z0]:[NaN,NaN];return centroid_X0=centroid_Y0=centroid_Z0=centroid_X1=centroid_Y1=centroid_Z1=centroid_X2=centroid_Y2=centroid_Z2=0,centroid}};function centroid_centroidPoint(x,y){centroid_X0+=x,centroid_Y0+=y,++centroid_Z0}function centroid_centroidLineStart(){centroid_centroidStream.point=centroidPointFirstLine}function centroidPointFirstLine(x,y){centroid_centroidStream.point=centroidPointLine,centroid_centroidPoint(centroid_x0=x,centroid_y0=y)}function centroidPointLine(x,y){var dx=x-centroid_x0,dy=y-centroid_y0,z=sqrt(dx*dx+dy*dy);centroid_X1+=z*(centroid_x0+x)/2,centroid_Y1+=z*(centroid_y0+y)/2,centroid_Z1+=z,centroid_centroidPoint(centroid_x0=x,centroid_y0=y)}function centroid_centroidLineEnd(){centroid_centroidStream.point=centroid_centroidPoint}function centroid_centroidRingStart(){centroid_centroidStream.point=centroidPointFirstRing}function centroid_centroidRingEnd(){centroidPointRing(centroid_x00,centroid_y00)}function centroidPointFirstRing(x,y){centroid_centroidStream.point=centroidPointRing,centroid_centroidPoint(centroid_x00=centroid_x0=x,centroid_y00=centroid_y0=y)}function centroidPointRing(x,y){var dx=x-centroid_x0,dy=y-centroid_y0,z=sqrt(dx*dx+dy*dy);centroid_X1+=z*(centroid_x0+x)/2,centroid_Y1+=z*(centroid_y0+y)/2,centroid_Z1+=z,centroid_X2+=(z=centroid_y0*x-centroid_x0*y)*(centroid_x0+x),centroid_Y2+=z*(centroid_y0+y),centroid_Z2+=3*z,centroid_centroidPoint(centroid_x0=x,centroid_y0=y)}var path_centroid=centroid_centroidStream;function PathContext(context){this._context=context}PathContext.prototype={_radius:4.5,pointRadius:function(_){return this._radius=_,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(x,y){switch(this._point){case 0:this._context.moveTo(x,y),this._point=1;break;case 1:this._context.lineTo(x,y);break;default:this._context.moveTo(x+this._radius,y),this._context.arc(x,y,this._radius,0,tau)}},result:noop};var lengthRing,measure_x00,measure_y00,measure_x0,measure_y0,measure_lengthSum=adder(),measure_lengthStream={point:noop,lineStart:function(){measure_lengthStream.point=measure_lengthPointFirst},lineEnd:function(){lengthRing&&measure_lengthPoint(measure_x00,measure_y00),measure_lengthStream.point=noop},polygonStart:function(){lengthRing=!0},polygonEnd:function(){lengthRing=null},result:function(){var length=+measure_lengthSum;return measure_lengthSum.reset(),length}};function measure_lengthPointFirst(x,y){measure_lengthStream.point=measure_lengthPoint,measure_x00=measure_x0=x,measure_y00=measure_y0=y}function measure_lengthPoint(x,y){measure_x0-=x,measure_y0-=y,measure_lengthSum.add(sqrt(measure_x0*measure_x0+measure_y0*measure_y0)),measure_x0=x,measure_y0=y}var measure=measure_lengthStream;function PathString(){this._string=[]}function string_circle(radius){return"m0,"+radius+"a"+radius+","+radius+" 0 1,1 0,"+-2*radius+"a"+radius+","+radius+" 0 1,1 0,"+2*radius+"z"}function path(projection,context){var projectionStream,contextStream,pointRadius=4.5;function path(object){return object&&("function"==typeof pointRadius&&contextStream.pointRadius(+pointRadius.apply(this,arguments)),stream(object,projectionStream(contextStream))),contextStream.result()}return path.area=function(object){return stream(object,projectionStream(path_area)),path_area.result()},path.measure=function(object){return stream(object,projectionStream(measure)),measure.result()},path.bounds=function(object){return stream(object,projectionStream(path_bounds)),path_bounds.result()},path.centroid=function(object){return stream(object,projectionStream(path_centroid)),path_centroid.result()},path.projection=function(_){return arguments.length?(projectionStream=null==_?(projection=null,src_identity):(projection=_).stream,path):projection},path.context=function(_){return arguments.length?(contextStream=null==_?(context=null,new PathString):new PathContext(context=_),"function"!=typeof pointRadius&&contextStream.pointRadius(pointRadius),path):context},path.pointRadius=function(_){return arguments.length?(pointRadius="function"==typeof _?_:(contextStream.pointRadius(+_),+_),path):pointRadius},path.projection(projection).context(context)}function clip(pointVisible,clipLine,interpolate,start){return function(rotate,sink){var polygon,segments,ring,line=clipLine(sink),rotatedStart=rotate.invert(start[0],start[1]),ringBuffer=buffer(),ringSink=clipLine(ringBuffer),polygonStarted=!1,clip={point:point,lineStart:lineStart,lineEnd:lineEnd,polygonStart:function(){clip.point=pointRing,clip.lineStart=ringStart,clip.lineEnd=ringEnd,segments=[],polygon=[]},polygonEnd:function(){clip.point=point,clip.lineStart=lineStart,clip.lineEnd=lineEnd,segments=merge(segments);var startInside=polygonContains(polygon,rotatedStart);segments.length?(polygonStarted||(sink.polygonStart(),polygonStarted=!0),clip_polygon(segments,compareIntersection,startInside,interpolate,sink)):startInside&&(polygonStarted||(sink.polygonStart(),polygonStarted=!0),sink.lineStart(),interpolate(null,null,1,sink),sink.lineEnd()),polygonStarted&&(sink.polygonEnd(),polygonStarted=!1),segments=polygon=null},sphere:function(){sink.polygonStart(),sink.lineStart(),interpolate(null,null,1,sink),sink.lineEnd(),sink.polygonEnd()}};function point(lambda,phi){var point=rotate(lambda,phi);pointVisible(lambda=point[0],phi=point[1])&&sink.point(lambda,phi)}function pointLine(lambda,phi){var point=rotate(lambda,phi);line.point(point[0],point[1])}function lineStart(){clip.point=pointLine,line.lineStart()}function lineEnd(){clip.point=point,line.lineEnd()}function pointRing(lambda,phi){ring.push([lambda,phi]);var point=rotate(lambda,phi);ringSink.point(point[0],point[1])}function ringStart(){ringSink.lineStart(),ring=[]}function ringEnd(){pointRing(ring[0][0],ring[0][1]),ringSink.lineEnd();var i,m,segment,point,clean=ringSink.clean(),ringSegments=ringBuffer.result(),n=ringSegments.length;if(ring.pop(),polygon.push(ring),ring=null,n)if(1&clean){if((m=(segment=ringSegments[0]).length-1)>0){for(polygonStarted||(sink.polygonStart(),polygonStarted=!0),sink.lineStart(),i=0;i1&&2&clean&&ringSegments.push(ringSegments.pop().concat(ringSegments.shift())),segments.push(ringSegments.filter(validSegment))}return clip}}function validSegment(segment){return segment.length>1}function compareIntersection(a,b){return((a=a.x)[0]<0?a[1]-halfPi-epsilon:halfPi-a[1])-((b=b.x)[0]<0?b[1]-halfPi-epsilon:halfPi-b[1])}PathString.prototype={_radius:4.5,_circle:string_circle(4.5),pointRadius:function(_){return(_=+_)!==this._radius&&(this._radius=_,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(x,y){switch(this._point){case 0:this._string.push("M",x,",",y),this._point=1;break;case 1:this._string.push("L",x,",",y);break;default:null==this._circle&&(this._circle=string_circle(this._radius)),this._string.push("M",x,",",y,this._circle)}},result:function(){if(this._string.length){var result=this._string.join("");return this._string=[],result}return null}};var antimeridian=clip((function(){return!0}),(function clipAntimeridianLine(stream){var clean,lambda0=NaN,phi0=NaN,sign0=NaN;return{lineStart:function(){stream.lineStart(),clean=1},point:function(lambda1,phi1){var sign1=lambda1>0?pi:-pi,delta=abs(lambda1-lambda0);abs(delta-pi)0?halfPi:-halfPi),stream.point(sign0,phi0),stream.lineEnd(),stream.lineStart(),stream.point(sign1,phi0),stream.point(lambda1,phi0),clean=0):sign0!==sign1&&delta>=pi&&(abs(lambda0-sign0)epsilon?atan((sin(phi0)*(cosPhi1=cos(phi1))*sin(lambda1)-sin(phi1)*(cosPhi0=cos(phi0))*sin(lambda0))/(cosPhi0*cosPhi1*sinLambda0Lambda1)):(phi0+phi1)/2}(lambda0,phi0,lambda1,phi1),stream.point(sign0,phi0),stream.lineEnd(),stream.lineStart(),stream.point(sign1,phi0),clean=0),stream.point(lambda0=lambda1,phi0=phi1),sign0=sign1},lineEnd:function(){stream.lineEnd(),lambda0=phi0=NaN},clean:function(){return 2-clean}}}),(function clipAntimeridianInterpolate(from,to,direction,stream){var phi;if(null==from)phi=direction*halfPi,stream.point(-pi,phi),stream.point(0,phi),stream.point(pi,phi),stream.point(pi,0),stream.point(pi,-phi),stream.point(0,-phi),stream.point(-pi,-phi),stream.point(-pi,0),stream.point(-pi,phi);else if(abs(from[0]-to[0])>epsilon){var lambda=from[0]4*delta2&&depth--){var a=a0+a1,b=b0+b1,c=c0+c1,m=sqrt(a*a+b*b+c*c),phi2=asin(c/=m),lambda2=abs(abs(c)-1)delta2||abs((dx*dx2+dy*dy2)/d2-.5)>.3||a0*a1+b0*b1+c0*c10,notHemisphere=abs(cr)>epsilon;function visible(lambda,phi){return cos(lambda)*cos(phi)>cr}function intersect(a,b,two){var n1=[1,0,0],n2=cartesianCross(cartesian(a),cartesian(b)),n2n2=cartesianDot(n2,n2),n1n2=n2[0],determinant=n2n2-n1n2*n1n2;if(!determinant)return!two&&a;var c1=cr*n2n2/determinant,c2=-cr*n1n2/determinant,n1xn2=cartesianCross(n1,n2),A=cartesianScale(n1,c1);cartesianAddInPlace(A,cartesianScale(n2,c2));var u=n1xn2,w=cartesianDot(A,u),uu=cartesianDot(u,u),t2=w*w-uu*(cartesianDot(A,A)-1);if(!(t2<0)){var t=sqrt(t2),q=cartesianScale(u,(-w-t)/uu);if(cartesianAddInPlace(q,A),q=spherical(q),!two)return q;var z,lambda0=a[0],lambda1=b[0],phi0=a[1],phi1=b[1];lambda10^q[1]<(abs(q[0]-lambda0)pi^(lambda0<=q[0]&&q[0]<=lambda1)){var q1=cartesianScale(u,(-w+t)/uu);return cartesianAddInPlace(q1,A),[q,spherical(q1)]}}}function code(lambda,phi){var r=smallRadius?radius:pi-radius,code=0;return lambda<-r?code|=1:lambda>r&&(code|=2),phi<-r?code|=4:phi>r&&(code|=8),code}return clip(visible,(function clipLine(stream){var point0,c0,v0,v00,clean;return{lineStart:function(){v00=v0=!1,clean=1},point:function(lambda,phi){var point2,point1=[lambda,phi],v=visible(lambda,phi),c=smallRadius?v?0:code(lambda,phi):v?code(lambda+(lambda<0?pi:-pi),phi):0;if(!point0&&(v00=v0=v)&&stream.lineStart(),v!==v0&&(!(point2=intersect(point0,point1))||pointEqual(point0,point2)||pointEqual(point1,point2))&&(point1[0]+=epsilon,point1[1]+=epsilon,v=visible(point1[0],point1[1])),v!==v0)clean=0,v?(stream.lineStart(),point2=intersect(point1,point0),stream.point(point2[0],point2[1])):(point2=intersect(point0,point1),stream.point(point2[0],point2[1]),stream.lineEnd()),point0=point2;else if(notHemisphere&&point0&&smallRadius^v){var t;c&c0||!(t=intersect(point1,point0,!0))||(clean=0,smallRadius?(stream.lineStart(),stream.point(t[0][0],t[0][1]),stream.point(t[1][0],t[1][1]),stream.lineEnd()):(stream.point(t[1][0],t[1][1]),stream.lineEnd(),stream.lineStart(),stream.point(t[0][0],t[0][1])))}!v||point0&&pointEqual(point0,point1)||stream.point(point1[0],point1[1]),point0=point1,v0=v,c0=c},lineEnd:function(){v0&&stream.lineEnd(),point0=null},clean:function(){return clean|(v00&&v0)<<1}}}),(function interpolate(from,to,direction,stream){circleStream(stream,radius,delta,direction,from,to)}),smallRadius?[0,-radius]:[-pi,radius-pi])}(theta=_*radians,6*radians):(theta=null,antimeridian),reset()):theta*degrees},projection.clipExtent=function(_){return arguments.length?(postclip=null==_?(x0=y0=x1=y1=null,src_identity):clipExtent(x0=+_[0][0],y0=+_[0][1],x1=+_[1][0],y1=+_[1][1]),reset()):null==x0?null:[[x0,y0],[x1,y1]]},projection.scale=function(_){return arguments.length?(k=+_,recenter()):k},projection.translate=function(_){return arguments.length?(x=+_[0],y=+_[1],recenter()):[x,y]},projection.center=function(_){return arguments.length?(lambda=_[0]%360*radians,phi=_[1]%360*radians,recenter()):[lambda*degrees,phi*degrees]},projection.rotate=function(_){return arguments.length?(deltaLambda=_[0]%360*radians,deltaPhi=_[1]%360*radians,deltaGamma=_.length>2?_[2]%360*radians:0,recenter()):[deltaLambda*degrees,deltaPhi*degrees,deltaGamma*degrees]},projection.precision=function(_){return arguments.length?(projectResample=resample(projectTransform,delta2=_*_),reset()):sqrt(delta2)},projection.fitExtent=function(extent,object){return fitExtent(projection,extent,object)},projection.fitSize=function(size,object){return fitSize(projection,size,object)},function(){return project=projectAt.apply(this,arguments),projection.invert=project.invert&&invert,recenter()}}function conicProjection(projectAt){var phi0=0,phi1=pi/3,m=projectionMutator(projectAt),p=m(phi0,phi1);return p.parallels=function(_){return arguments.length?m(phi0=_[0]*radians,phi1=_[1]*radians):[phi0*degrees,phi1*degrees]},p}function conicEqualAreaRaw(y0,y1){var sy0=sin(y0),n=(sy0+sin(y1))/2;if(abs(n)=.12&&y<.234&&x>=-.425&&x<-.214?alaska:y>=.166&&y<.234&&x>=-.214&&x<-.115?hawaii:lower48).invert(coordinates)},albersUsa.stream=function(stream){return cache&&cacheStream===stream?cache:cache=function multiplex(streams){var n=streams.length;return{point:function(x,y){for(var i=-1;++i0?y<-halfPi+epsilon&&(y=-halfPi+epsilon):y>halfPi-epsilon&&(y=halfPi-epsilon);var r=f/pow(tany(y),n);return[r*sin(n*x),f-r*cos(n*x)]}return project.invert=function(x,y){var fy=f-y,r=sign(n)*sqrt(x*x+fy*fy);return[atan2(x,abs(fy))/n*sign(fy),2*atan(pow(f/r,1/n))-halfPi]},project}function conicConformal(){return conicProjection(conicConformalRaw).scale(109.5).parallels([30,30])}function equirectangularRaw(lambda,phi){return[lambda,phi]}function equirectangular(){return projection(equirectangularRaw).scale(152.63)}function conicEquidistantRaw(y0,y1){var cy0=cos(y0),n=y0===y1?sin(y0):(cy0-cos(y1))/(y1-y0),g=cy0/n+y0;if(abs(n)2?_[2]+90:90]):[(_=rotate())[0],_[1],_[2]-90]},rotate([0,0,90]).scale(159.155)}azimuthalEquidistantRaw.invert=azimuthalInvert((function(z){return z})),mercatorRaw.invert=function(x,y){return[x,2*atan(exp(y))-halfPi]},equirectangularRaw.invert=equirectangularRaw,gnomonicRaw.invert=azimuthalInvert(atan),naturalEarth1Raw.invert=function(x,y){var delta,phi=y,i=25;do{var phi2=phi*phi,phi4=phi2*phi2;phi-=delta=(phi*(1.007226+phi2*(.015085+phi4*(.028874*phi2-.044475-.005916*phi4)))-y)/(1.007226+phi2*(.045255+phi4*(.259866*phi2-.311325-.005916*11*phi4)))}while(abs(delta)>epsilon&&--i>0);return[x/(.8707+(phi2=phi*phi)*(phi2*(phi2*phi2*phi2*(.003971-.001529*phi2)-.013791)-.131979)),phi]},orthographicRaw.invert=azimuthalInvert(asin),stereographicRaw.invert=azimuthalInvert((function(z){return 2*atan(z)})),transverseMercatorRaw.invert=function(x,y){return[-y,2*atan(exp(x))-halfPi]}},"./node_modules/@turf/center/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var bbox_1=__importDefault(__webpack_require__("./node_modules/@turf/bbox/dist/js/index.js")),helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");exports.default=function center(geojson,options){void 0===options&&(options={});var ext=bbox_1.default(geojson),x=(ext[0]+ext[2])/2,y=(ext[1]+ext[3])/2;return helpers_1.point([x,y],options.properties,options)}},"./node_modules/@turf/centroid/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var meta_1=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");exports.default=function centroid(geojson,options){void 0===options&&(options={});var xSum=0,ySum=0,len=0;return meta_1.coordEach(geojson,(function(coord){xSum+=coord[0],ySum+=coord[1],len++}),!0),helpers_1.point([xSum/len,ySum/len],options.properties)}},"./node_modules/@turf/circle/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var destination_1=__importDefault(__webpack_require__("./node_modules/@turf/destination/dist/js/index.js")),helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");exports.default=function circle(center,radius,options){void 0===options&&(options={});for(var steps=options.steps||64,properties=options.properties?options.properties:!Array.isArray(center)&&"Feature"===center.type&¢er.properties?center.properties:{},coordinates=[],i=0;i=-270&&(x=-x),stepAngle<-180&&stepAngle>=-360&&(y=-y),"degrees"===units){var newx=x*Math.cos(angleRad)+y*Math.sin(angleRad),newy=y*Math.cos(angleRad)-x*Math.sin(angleRad);x=newx,y=newy}coordinates.push([x+centerCoords[0],y+centerCoords[1]])}return coordinates.push(coordinates[0]),"degrees"===units?helpers.polygon([coordinates],properties):transformRotate__default.default(helpers.polygon([coordinates],properties),angle,{pivot:pivot})}function getTanDeg(deg){var rad=deg*Math.PI/180;return Math.tan(rad)}module.exports=ellipse,module.exports.default=ellipse},"./node_modules/@turf/helpers/dist/es/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Kn:function(){return isObject},Tu:function(){return lineString},zL:function(){return feature}});function feature(geom,properties,options){void 0===options&&(options={});var feat={type:"Feature"};return(0===options.id||options.id)&&(feat.id=options.id),options.bbox&&(feat.bbox=options.bbox),feat.properties=properties||{},feat.geometry=geom,feat}function lineString(coordinates,properties,options){if(void 0===options&&(options={}),coordinates.length<2)throw new Error("coordinates must be an array of two or more positions");return feature({type:"LineString",coordinates:coordinates},properties,options)}function isObject(input){return!!input&&input.constructor===Object}},"./node_modules/@turf/helpers/dist/js/index.js":function(__unused_webpack_module,exports){"use strict";function feature(geom,properties,options){void 0===options&&(options={});var feat={type:"Feature"};return(0===options.id||options.id)&&(feat.id=options.id),options.bbox&&(feat.bbox=options.bbox),feat.properties=properties||{},feat.geometry=geom,feat}function point(coordinates,properties,options){if(void 0===options&&(options={}),!coordinates)throw new Error("coordinates is required");if(!Array.isArray(coordinates))throw new Error("coordinates must be an Array");if(coordinates.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!isNumber(coordinates[0])||!isNumber(coordinates[1]))throw new Error("coordinates must contain numbers");return feature({type:"Point",coordinates:coordinates},properties,options)}function polygon(coordinates,properties,options){void 0===options&&(options={});for(var _i=0,coordinates_1=coordinates;_i=0))throw new Error("precision must be a positive number");var multiplier=Math.pow(10,precision||0);return Math.round(num*multiplier)/multiplier},exports.radiansToLength=radiansToLength,exports.lengthToRadians=lengthToRadians,exports.lengthToDegrees=function lengthToDegrees(distance,units){return radiansToDegrees(lengthToRadians(distance,units))},exports.bearingToAzimuth=function bearingToAzimuth(bearing){var angle=bearing%360;return angle<0&&(angle+=360),angle},exports.radiansToDegrees=radiansToDegrees,exports.degreesToRadians=function degreesToRadians(degrees){return degrees%360*Math.PI/180},exports.convertLength=function convertLength(length,originalUnit,finalUnit){if(void 0===originalUnit&&(originalUnit="kilometers"),void 0===finalUnit&&(finalUnit="kilometers"),!(length>=0))throw new Error("length must be a positive number");return radiansToLength(lengthToRadians(length,originalUnit),finalUnit)},exports.convertArea=function convertArea(area,originalUnit,finalUnit){if(void 0===originalUnit&&(originalUnit="meters"),void 0===finalUnit&&(finalUnit="kilometers"),!(area>=0))throw new Error("area must be a positive number");var startFactor=exports.areaFactors[originalUnit];if(!startFactor)throw new Error("invalid original units");var finalFactor=exports.areaFactors[finalUnit];if(!finalFactor)throw new Error("invalid final units");return area/startFactor*finalFactor},exports.isNumber=isNumber,exports.isObject=function isObject(input){return!!input&&input.constructor===Object},exports.validateBBox=function validateBBox(bbox){if(!bbox)throw new Error("bbox is required");if(!Array.isArray(bbox))throw new Error("bbox must be an Array");if(4!==bbox.length&&6!==bbox.length)throw new Error("bbox must be an Array of 4 or 6 numbers");bbox.forEach((function(num){if(!isNumber(num))throw new Error("bbox must only contain numbers")}))},exports.validateId=function validateId(id){if(!id)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof id))throw new Error("id must be a number or a string")}},"./node_modules/@turf/intersect/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),polygon_clipping_1=__importDefault(__webpack_require__("./node_modules/polygon-clipping/dist/polygon-clipping.umd.js"));exports.default=function intersect(poly1,poly2,options){void 0===options&&(options={});var geom1=invariant_1.getGeom(poly1),geom2=invariant_1.getGeom(poly2),intersection=polygon_clipping_1.default.intersection(geom1.coordinates,geom2.coordinates);return 0===intersection.length?null:1===intersection.length?helpers_1.polygon(intersection[0],options.properties):helpers_1.multiPolygon(intersection,options.properties)}},"./node_modules/@turf/invariant/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");exports.getCoord=function getCoord(coord){if(!coord)throw new Error("coord is required");if(!Array.isArray(coord)){if("Feature"===coord.type&&null!==coord.geometry&&"Point"===coord.geometry.type)return coord.geometry.coordinates;if("Point"===coord.type)return coord.coordinates}if(Array.isArray(coord)&&coord.length>=2&&!Array.isArray(coord[0])&&!Array.isArray(coord[1]))return coord;throw new Error("coord must be GeoJSON Point or an Array of numbers")},exports.getCoords=function getCoords(coords){if(Array.isArray(coords))return coords;if("Feature"===coords.type){if(null!==coords.geometry)return coords.geometry.coordinates}else if(coords.coordinates)return coords.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")},exports.containsNumber=function containsNumber(coordinates){if(coordinates.length>1&&helpers_1.isNumber(coordinates[0])&&helpers_1.isNumber(coordinates[1]))return!0;if(Array.isArray(coordinates[0])&&coordinates[0].length)return containsNumber(coordinates[0]);throw new Error("coordinates must only contain numbers")},exports.geojsonType=function geojsonType(value,type,name){if(!type||!name)throw new Error("type and name required");if(!value||value.type!==type)throw new Error("Invalid input to "+name+": must be a "+type+", given "+value.type)},exports.featureOf=function featureOf(feature,type,name){if(!feature)throw new Error("No feature passed");if(!name)throw new Error(".featureOf() requires a name");if(!feature||"Feature"!==feature.type||!feature.geometry)throw new Error("Invalid input to "+name+", Feature with geometry required");if(!feature.geometry||feature.geometry.type!==type)throw new Error("Invalid input to "+name+": must be a "+type+", given "+feature.geometry.type)},exports.collectionOf=function collectionOf(featureCollection,type,name){if(!featureCollection)throw new Error("No featureCollection passed");if(!name)throw new Error(".collectionOf() requires a name");if(!featureCollection||"FeatureCollection"!==featureCollection.type)throw new Error("Invalid input to "+name+", FeatureCollection required");for(var _i=0,_a=featureCollection.features;_i<_a.length;_i++){var feature=_a[_i];if(!feature||"Feature"!==feature.type||!feature.geometry)throw new Error("Invalid input to "+name+", Feature with geometry required");if(!feature.geometry||feature.geometry.type!==type)throw new Error("Invalid input to "+name+": must be a "+type+", given "+feature.geometry.type)}},exports.getGeom=function getGeom(geojson){return"Feature"===geojson.type?geojson.geometry:geojson},exports.getType=function getType(geojson,_name){return"FeatureCollection"===geojson.type?"FeatureCollection":"GeometryCollection"===geojson.type?"GeometryCollection":"Feature"===geojson.type&&null!==geojson.geometry?geojson.geometry.type:geojson.type}},"./node_modules/@turf/line-intersect/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),line_segment_1=__importDefault(__webpack_require__("./node_modules/@turf/line-segment/dist/js/index.js")),meta_1=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),geojson_rbush_1=__importDefault(__webpack_require__("./node_modules/geojson-rbush/index.js"));function intersects(line1,line2){var coords1=invariant_1.getCoords(line1),coords2=invariant_1.getCoords(line2);if(2!==coords1.length)throw new Error(" line1 must only contain 2 coordinates");if(2!==coords2.length)throw new Error(" line2 must only contain 2 coordinates");var x1=coords1[0][0],y1=coords1[0][1],x2=coords1[1][0],y2=coords1[1][1],x3=coords2[0][0],y3=coords2[0][1],x4=coords2[1][0],y4=coords2[1][1],denom=(y4-y3)*(x2-x1)-(x4-x3)*(y2-y1),numeA=(x4-x3)*(y1-y3)-(y4-y3)*(x1-x3),numeB=(x2-x1)*(y1-y3)-(y2-y1)*(x1-x3);if(0===denom)return null;var uA=numeA/denom,uB=numeB/denom;if(uA>=0&&uA<=1&&uB>=0&&uB<=1){var x=x1+uA*(x2-x1),y=y1+uA*(y2-y1);return helpers_1.point([x,y])}return null}exports.default=function lineIntersect(line1,line2){var unique={},results=[];if("LineString"===line1.type&&(line1=helpers_1.feature(line1)),"LineString"===line2.type&&(line2=helpers_1.feature(line2)),"Feature"===line1.type&&"Feature"===line2.type&&null!==line1.geometry&&null!==line2.geometry&&"LineString"===line1.geometry.type&&"LineString"===line2.geometry.type&&2===line1.geometry.coordinates.length&&2===line2.geometry.coordinates.length){var intersect=intersects(line1,line2);return intersect&&results.push(intersect),helpers_1.featureCollection(results)}var tree=geojson_rbush_1.default();return tree.load(line_segment_1.default(line2)),meta_1.featureEach(line_segment_1.default(line1),(function(segment){meta_1.featureEach(tree.search(segment),(function(match){var intersect=intersects(segment,match);if(intersect){var key=invariant_1.getCoords(intersect).join(",");unique[key]||(unique[key]=!0,results.push(intersect))}}))})),helpers_1.featureCollection(results)}},"./node_modules/@turf/line-segment/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),meta_1=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js");exports.default=function lineSegment(geojson){if(!geojson)throw new Error("geojson is required");var results=[];return meta_1.flattenEach(geojson,(function(feature){!function lineSegmentFeature(geojson,results){var coords=[],geometry=geojson.geometry;if(null!==geometry){switch(geometry.type){case"Polygon":coords=invariant_1.getCoords(geometry);break;case"LineString":coords=[invariant_1.getCoords(geometry)]}coords.forEach((function(coord){var segments=function createSegments(coords,properties){var segments=[];return coords.reduce((function(previousCoords,currentCoords){var segment=helpers_1.lineString([previousCoords,currentCoords],properties);return segment.bbox=function bbox(coords1,coords2){var x1=coords1[0],y1=coords1[1],x2=coords2[0],y2=coords2[1];return[x1x2?x1:x2,y1>y2?y1:y2]}(previousCoords,currentCoords),segments.push(segment),currentCoords})),segments}(coord,geojson.properties);segments.forEach((function(segment){segment.id=results.length,results.push(segment)}))}))}}(feature,results)})),helpers_1.featureCollection(results)}},"./node_modules/@turf/meta/dist/es/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{hE:function(){return segmentReduce},mm:function(){return geomReduce},on:function(){return geomEach}});var _turf_helpers__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@turf/helpers/dist/es/index.js");function coordEach(geojson,callback,excludeWrapCoord){if(null!==geojson)for(var j,k,l,geometry,stopG,coords,geometryMaybeCollection,isGeometryCollection,wrapShrink=0,coordIndex=0,type=geojson.type,isFeatureCollection="FeatureCollection"===type,isFeature="Feature"===type,stop=isFeatureCollection?geojson.features.length:1,featureIndex=0;featureIndexpreviousFeatureIndex||multiPartIndexCoord>previousMultiIndex||geometryIndex>prevGeomIndex)return previousCoords=currentCoord,previousFeatureIndex=featureIndex,previousMultiIndex=multiPartIndexCoord,prevGeomIndex=geometryIndex,void(segmentIndex=0);var currentSegment=(0,_turf_helpers__WEBPACK_IMPORTED_MODULE_0__.Tu)([previousCoords,currentCoord],feature.properties);if(!1===callback(currentSegment,featureIndex,multiFeatureIndex,geometryIndex,segmentIndex))return!1;segmentIndex++,previousCoords=currentCoord}))&&void 0}}}))}(geojson,(function(currentSegment,featureIndex,multiFeatureIndex,geometryIndex,segmentIndex){previousValue=!1===started&&void 0===initialValue?currentSegment:callback(previousValue,currentSegment,featureIndex,multiFeatureIndex,geometryIndex,segmentIndex),started=!0})),previousValue}},"./node_modules/@turf/meta/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");function coordEach(geojson,callback,excludeWrapCoord){if(null!==geojson)for(var j,k,l,geometry,stopG,coords,geometryMaybeCollection,isGeometryCollection,wrapShrink=0,coordIndex=0,type=geojson.type,isFeatureCollection="FeatureCollection"===type,isFeature="Feature"===type,stop=isFeatureCollection?geojson.features.length:1,featureIndex=0;featureIndexpreviousFeatureIndex||multiPartIndexCoord>previousMultiIndex||geometryIndex>prevGeomIndex)return previousCoords=currentCoord,previousFeatureIndex=featureIndex,previousMultiIndex=multiPartIndexCoord,prevGeomIndex=geometryIndex,void(segmentIndex=0);var currentSegment=helpers.lineString([previousCoords,currentCoord],feature.properties);if(!1===callback(currentSegment,featureIndex,multiFeatureIndex,geometryIndex,segmentIndex))return!1;segmentIndex++,previousCoords=currentCoord}))&&void 0}}}))}function lineEach(geojson,callback){if(!geojson)throw new Error("geojson is required");flattenEach(geojson,(function(feature,featureIndex,multiFeatureIndex){if(null!==feature.geometry){var type=feature.geometry.type,coords=feature.geometry.coordinates;switch(type){case"LineString":if(!1===callback(feature,featureIndex,multiFeatureIndex,0,0))return!1;break;case"Polygon":for(var geometryIndex=0;geometryIndex0&&((intersectPt=intersect.features[0]).properties.dist=distance_1.default(pt,intersectPt,options),intersectPt.properties.location=length+distance_1.default(start,intersectPt,options)),start.properties.dist1?helpers_1.multiLineString(coords,properties):helpers_1.lineString(coords[0],properties)}exports.default=function default_1(poly,options){void 0===options&&(options={});var geom=invariant_1.getGeom(poly);switch(options.properties||"Feature"!==poly.type||(options.properties=poly.properties),geom.type){case"Polygon":return polygonToLine(geom,options);case"MultiPolygon":return multiPolygonToLine(geom,options);default:throw new Error("invalid poly")}},exports.polygonToLine=polygonToLine,exports.multiPolygonToLine=multiPolygonToLine,exports.coordsToLine=coordsToLine},"./node_modules/@turf/rewind/dist/js/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var clone=__webpack_require__("./node_modules/@turf/clone/dist/js/index.js"),booleanClockwise=__webpack_require__("./node_modules/@turf/boolean-clockwise/dist/js/index.js"),meta=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),invariant=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var clone__default=_interopDefaultLegacy(clone),booleanClockwise__default=_interopDefaultLegacy(booleanClockwise);function rewind(geojson,options){if(options=options||{},!helpers.isObject(options))throw new Error("options is invalid");var reverse=options.reverse||!1,mutate=options.mutate||!1;if(!geojson)throw new Error(" is required");if("boolean"!=typeof reverse)throw new Error(" must be a boolean");if("boolean"!=typeof mutate)throw new Error(" must be a boolean");!1===mutate&&(geojson=clone__default.default(geojson));var results=[];switch(geojson.type){case"GeometryCollection":return meta.geomEach(geojson,(function(geometry){rewindFeature(geometry,reverse)})),geojson;case"FeatureCollection":return meta.featureEach(geojson,(function(feature){meta.featureEach(rewindFeature(feature,reverse),(function(result){results.push(result)}))})),helpers.featureCollection(results)}return rewindFeature(geojson,reverse)}function rewindFeature(geojson,reverse){switch("Feature"===geojson.type?geojson.geometry.type:geojson.type){case"GeometryCollection":return meta.geomEach(geojson,(function(geometry){rewindFeature(geometry,reverse)})),geojson;case"LineString":return rewindLineString(invariant.getCoords(geojson),reverse),geojson;case"Polygon":return rewindPolygon(invariant.getCoords(geojson),reverse),geojson;case"MultiLineString":return invariant.getCoords(geojson).forEach((function(lineCoords){rewindLineString(lineCoords,reverse)})),geojson;case"MultiPolygon":return invariant.getCoords(geojson).forEach((function(lineCoords){rewindPolygon(lineCoords,reverse)})),geojson;case"Point":case"MultiPoint":return geojson}}function rewindLineString(coords,reverse){booleanClockwise__default.default(coords)===reverse&&coords.reverse()}function rewindPolygon(coords,reverse){booleanClockwise__default.default(coords[0])!==reverse&&coords[0].reverse();for(var i=1;iMath.PI&&(deltaLambda-=2*Math.PI),deltaLambda<-Math.PI&&(deltaLambda+=2*Math.PI);var deltaPsi=Math.log(Math.tan(phi2/2+Math.PI/4)/Math.tan(phi1/2+Math.PI/4)),theta=Math.atan2(deltaLambda,deltaPsi);return(helpers_1.radiansToDegrees(theta)+360)%360}exports.default=function rhumbBearing(start,end,options){var bear360;return void 0===options&&(options={}),(bear360=options.final?calculateRhumbBearing(invariant_1.getCoord(end),invariant_1.getCoord(start)):calculateRhumbBearing(invariant_1.getCoord(start),invariant_1.getCoord(end)))>180?-(360-bear360):bear360}},"./node_modules/@turf/rhumb-destination/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js");exports.default=function rhumbDestination(origin,distance,bearing,options){void 0===options&&(options={});var wasNegativeDistance=distance<0,distanceInMeters=helpers_1.convertLength(Math.abs(distance),options.units,"meters");wasNegativeDistance&&(distanceInMeters=-Math.abs(distanceInMeters));var coords=invariant_1.getCoord(origin),destination=function calculateRhumbDestination(origin,distance,bearing,radius){radius=void 0===radius?helpers_1.earthRadius:Number(radius);var delta=distance/radius,lambda1=origin[0]*Math.PI/180,phi1=helpers_1.degreesToRadians(origin[1]),theta=helpers_1.degreesToRadians(bearing),DeltaPhi=delta*Math.cos(theta),phi2=phi1+DeltaPhi;Math.abs(phi2)>Math.PI/2&&(phi2=phi2>0?Math.PI-phi2:-Math.PI-phi2);var DeltaPsi=Math.log(Math.tan(phi2/2+Math.PI/4)/Math.tan(phi1/2+Math.PI/4)),q=Math.abs(DeltaPsi)>1e-11?DeltaPhi/DeltaPsi:Math.cos(phi1),DeltaLambda=delta*Math.sin(theta)/q;return[(180*(lambda1+DeltaLambda)/Math.PI+540)%360-180,180*phi2/Math.PI]}(coords,distanceInMeters,bearing);return destination[0]+=destination[0]-coords[0]>180?-360:coords[0]-destination[0]>180?360:0,helpers_1.point(destination,options.properties)}},"./node_modules/@turf/rhumb-distance/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js");exports.default=function rhumbDistance(from,to,options){void 0===options&&(options={});var origin=invariant_1.getCoord(from),destination=invariant_1.getCoord(to);destination[0]+=destination[0]-origin[0]>180?-360:origin[0]-destination[0]>180?360:0;var distanceInMeters=function calculateRhumbDistance(origin,destination,radius){var R=radius=void 0===radius?helpers_1.earthRadius:Number(radius),phi1=origin[1]*Math.PI/180,phi2=destination[1]*Math.PI/180,DeltaPhi=phi2-phi1,DeltaLambda=Math.abs(destination[0]-origin[0])*Math.PI/180;DeltaLambda>Math.PI&&(DeltaLambda-=2*Math.PI);var DeltaPsi=Math.log(Math.tan(phi2/2+Math.PI/4)/Math.tan(phi1/2+Math.PI/4)),q=Math.abs(DeltaPsi)>1e-11?DeltaPhi/DeltaPsi:Math.cos(phi1);return Math.sqrt(DeltaPhi*DeltaPhi+q*q*DeltaLambda*DeltaLambda)*R}(origin,destination);return helpers_1.convertLength(distanceInMeters,"meters",options.units)}},"./node_modules/@turf/simplify/dist/es/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return simplify_dist_es}});var es=__webpack_require__("./node_modules/@turf/helpers/dist/es/index.js");function getCoords(coords){if(Array.isArray(coords))return coords;if("Feature"===coords.type){if(null!==coords.geometry)return coords.geometry.coordinates}else if(coords.coordinates)return coords.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function cleanLine(line){var points=getCoords(line);if(2===points.length&&!equals(points[0],points[1]))return points;var newPoints=[],secondToLast=points.length-1,newPointsLength=newPoints.length;newPoints.push(points[0]);for(var i=1;i2&&isPointOnLineSegment(newPoints[newPointsLength-3],newPoints[newPointsLength-1],newPoints[newPointsLength-2])&&newPoints.splice(newPoints.length-2,1))}if(newPoints.push(points[points.length-1]),newPointsLength=newPoints.length,equals(points[0],points[points.length-1])&&newPointsLength<4)throw new Error("invalid polygon");return isPointOnLineSegment(newPoints[newPointsLength-3],newPoints[newPointsLength-1],newPoints[newPointsLength-2])&&newPoints.splice(newPoints.length-2,1),newPoints}function equals(pt1,pt2){return pt1[0]===pt2[0]&&pt1[1]===pt2[1]}function isPointOnLineSegment(start,end,point){var x=point[0],y=point[1],startX=start[0],startY=start[1],endX=end[0],endY=end[1],dxl=endX-startX,dyl=endY-startY;return 0===(x-startX)*dyl-(y-startY)*dxl&&(Math.abs(dxl)>=Math.abs(dyl)?dxl>0?startX<=x&&x<=endX:endX<=x&&x<=startX:dyl>0?startY<=y&&y<=endY:endY<=y&&y<=startY)}var dist_es=function cleanCoords(geojson,options){void 0===options&&(options={});var mutate="object"==typeof options?options.mutate:options;if(!geojson)throw new Error("geojson is required");var type=function getType(geojson,_name){return"FeatureCollection"===geojson.type?"FeatureCollection":"GeometryCollection"===geojson.type?"GeometryCollection":"Feature"===geojson.type&&null!==geojson.geometry?geojson.geometry.type:geojson.type}(geojson),newCoords=[];switch(type){case"LineString":newCoords=cleanLine(geojson);break;case"MultiLineString":case"Polygon":getCoords(geojson).forEach((function(line){newCoords.push(cleanLine(line))}));break;case"MultiPolygon":getCoords(geojson).forEach((function(polygons){var polyPoints=[];polygons.forEach((function(ring){polyPoints.push(cleanLine(ring))})),newCoords.push(polyPoints)}));break;case"Point":return geojson;case"MultiPoint":var existing={};getCoords(geojson).forEach((function(coord){var key=coord.join("-");Object.prototype.hasOwnProperty.call(existing,key)||(newCoords.push(coord),existing[key]=!0)}));break;default:throw new Error(type+" geometry not supported")}return geojson.coordinates?!0===mutate?(geojson.coordinates=newCoords,geojson):{type:type,coordinates:newCoords}:!0===mutate?(geojson.geometry.coordinates=newCoords,geojson):(0,es.zL)({type:type,coordinates:newCoords},geojson.properties,{bbox:geojson.bbox,id:geojson.id})};function cloneFeature(geojson){var cloned={type:"Feature"};return Object.keys(geojson).forEach((function(key){switch(key){case"type":case"properties":case"geometry":return;default:cloned[key]=geojson[key]}})),cloned.properties=cloneProperties(geojson.properties),cloned.geometry=cloneGeometry(geojson.geometry),cloned}function cloneProperties(properties){var cloned={};return properties?(Object.keys(properties).forEach((function(key){var value=properties[key];"object"==typeof value?null===value?cloned[key]=null:Array.isArray(value)?cloned[key]=value.map((function(item){return item})):cloned[key]=cloneProperties(value):cloned[key]=value})),cloned):cloned}function cloneGeometry(geometry){var geom={type:geometry.type};return geometry.bbox&&(geom.bbox=geometry.bbox),"GeometryCollection"===geometry.type?(geom.geometries=geometry.geometries.map((function(g){return cloneGeometry(g)})),geom):(geom.coordinates=deepSlice(geometry.coordinates),geom)}function deepSlice(coords){var cloned=coords;return"object"!=typeof cloned[0]?cloned.slice():cloned.map((function(coord){return deepSlice(coord)}))}var clone_dist_es=function clone(geojson){if(!geojson)throw new Error("geojson is required");switch(geojson.type){case"Feature":return cloneFeature(geojson);case"FeatureCollection":return function cloneFeatureCollection(geojson){var cloned={type:"FeatureCollection"};return Object.keys(geojson).forEach((function(key){switch(key){case"type":case"features":return;default:cloned[key]=geojson[key]}})),cloned.features=geojson.features.map((function(feature){return cloneFeature(feature)})),cloned}(geojson);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return cloneGeometry(geojson);default:throw new Error("unknown GeoJSON type")}},meta_dist_es=__webpack_require__("./node_modules/@turf/meta/dist/es/index.js");function getSqSegDist(p,p1,p2){var x=p1.x,y=p1.y,dx=p2.x-x,dy=p2.y-y;if(0!==dx||0!==dy){var t=((p.x-x)*dx+(p.y-y)*dy)/(dx*dx+dy*dy);t>1?(x=p2.x,y=p2.y):t>0&&(x+=dx*t,y+=dy*t)}return(dx=p.x-x)*dx+(dy=p.y-y)*dy}function simplifyDPStep(points,first,last,sqTolerance,simplified){for(var index,maxSqDist=sqTolerance,i=first+1;imaxSqDist&&(index=i,maxSqDist=sqDist)}maxSqDist>sqTolerance&&(index-first>1&&simplifyDPStep(points,first,index,sqTolerance,simplified),simplified.push(points[index]),last-index>1&&simplifyDPStep(points,index,last,sqTolerance,simplified))}function simplifyDouglasPeucker(points,sqTolerance){var last=points.length-1,simplified=[points[0]];return simplifyDPStep(points,0,last,sqTolerance,simplified),simplified.push(points[last]),simplified}function simplify(points,tolerance,highestQuality){if(points.length<=2)return points;var sqTolerance=void 0!==tolerance?tolerance*tolerance:1;return points=highestQuality?points:function simplifyRadialDist(points,sqTolerance){for(var point,p1,p2,dx,dy,prevPoint=points[0],newPoints=[prevPoint],i=1,len=points.length;isqTolerance&&(newPoints.push(point),prevPoint=point);return prevPoint!==point&&newPoints.push(point),newPoints}(points,sqTolerance),points=simplifyDouglasPeucker(points,sqTolerance)}function simplifyLine(coordinates,tolerance,highQuality){return simplify(coordinates.map((function(coord){return{x:coord[0],y:coord[1],z:coord[2]}})),tolerance,highQuality).map((function(coords){return coords.z?[coords.x,coords.y,coords.z]:[coords.x,coords.y]}))}function simplifyPolygon(coordinates,tolerance,highQuality){return coordinates.map((function(ring){var pts=ring.map((function(coord){return{x:coord[0],y:coord[1]}}));if(pts.length<4)throw new Error("invalid polygon");for(var simpleRing=simplify(pts,tolerance,highQuality).map((function(coords){return[coords.x,coords.y]}));!checkValidity(simpleRing);)simpleRing=simplify(pts,tolerance-=.01*tolerance,highQuality).map((function(coords){return[coords.x,coords.y]}));return simpleRing[simpleRing.length-1][0]===simpleRing[0][0]&&simpleRing[simpleRing.length-1][1]===simpleRing[0][1]||simpleRing.push(simpleRing[0]),simpleRing}))}function checkValidity(ring){return!(ring.length<3)&&!(3===ring.length&&ring[2][0]===ring[0][0]&&ring[2][1]===ring[0][1])}var simplify_dist_es=function simplify$1(geojson,options){if(options=options||{},!(0,es.Kn)(options))throw new Error("options is invalid");var tolerance=void 0!==options.tolerance?options.tolerance:1,highQuality=options.highQuality||!1,mutate=options.mutate||!1;if(!geojson)throw new Error("geojson is required");if(tolerance&&tolerance<0)throw new Error("invalid tolerance");return!0!==mutate&&(geojson=clone_dist_es(geojson)),(0,meta_dist_es.on)(geojson,(function(geom){!function simplifyGeom(geometry,tolerance,highQuality){var type=geometry.type;if("Point"===type||"MultiPoint"===type)return geometry;dist_es(geometry,!0);var coordinates=geometry.coordinates;switch(type){case"LineString":geometry.coordinates=simplifyLine(coordinates,tolerance,highQuality);break;case"MultiLineString":geometry.coordinates=coordinates.map((function(lines){return simplifyLine(lines,tolerance,highQuality)}));break;case"Polygon":geometry.coordinates=simplifyPolygon(coordinates,tolerance,highQuality);break;case"MultiPolygon":geometry.coordinates=coordinates.map((function(rings){return simplifyPolygon(rings,tolerance,highQuality)}))}return geometry}(geom,tolerance,highQuality)})),geojson}},"./node_modules/@turf/transform-rotate/dist/js/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var centroid=__webpack_require__("./node_modules/@turf/centroid/dist/js/index.js"),rhumbBearing=__webpack_require__("./node_modules/@turf/rhumb-bearing/dist/js/index.js"),rhumbDistance=__webpack_require__("./node_modules/@turf/rhumb-distance/dist/js/index.js"),rhumbDestination=__webpack_require__("./node_modules/@turf/rhumb-destination/dist/js/index.js"),clone=__webpack_require__("./node_modules/@turf/clone/dist/js/index.js"),meta=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),invariant=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var centroid__default=_interopDefaultLegacy(centroid),rhumbBearing__default=_interopDefaultLegacy(rhumbBearing),rhumbDistance__default=_interopDefaultLegacy(rhumbDistance),rhumbDestination__default=_interopDefaultLegacy(rhumbDestination),clone__default=_interopDefaultLegacy(clone);function transformRotate(geojson,angle,options){if(options=options||{},!helpers.isObject(options))throw new Error("options is invalid");var pivot=options.pivot,mutate=options.mutate;if(!geojson)throw new Error("geojson is required");if(null==angle||isNaN(angle))throw new Error("angle is required");return 0===angle||(pivot||(pivot=centroid__default.default(geojson)),!1!==mutate&&void 0!==mutate||(geojson=clone__default.default(geojson)),meta.coordEach(geojson,(function(pointCoords){var finalAngle=rhumbBearing__default.default(pivot,pointCoords)+angle,distance=rhumbDistance__default.default(pivot,pointCoords),newCoords=invariant.getCoords(rhumbDestination__default.default(pivot,distance,finalAngle));pointCoords[0]=newCoords[0],pointCoords[1]=newCoords[1]}))),geojson}module.exports=transformRotate,module.exports.default=transformRotate},"./node_modules/@turf/transform-scale/dist/js/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var clone=__webpack_require__("./node_modules/@turf/clone/dist/js/index.js"),center=__webpack_require__("./node_modules/@turf/center/dist/js/index.js"),centroid=__webpack_require__("./node_modules/@turf/centroid/dist/js/index.js"),turfBBox=__webpack_require__("./node_modules/@turf/bbox/dist/js/index.js"),rhumbBearing=__webpack_require__("./node_modules/@turf/rhumb-bearing/dist/js/index.js"),rhumbDistance=__webpack_require__("./node_modules/@turf/rhumb-distance/dist/js/index.js"),rhumbDestination=__webpack_require__("./node_modules/@turf/rhumb-destination/dist/js/index.js"),meta=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var clone__default=_interopDefaultLegacy(clone),center__default=_interopDefaultLegacy(center),centroid__default=_interopDefaultLegacy(centroid),turfBBox__default=_interopDefaultLegacy(turfBBox),rhumbBearing__default=_interopDefaultLegacy(rhumbBearing),rhumbDistance__default=_interopDefaultLegacy(rhumbDistance),rhumbDestination__default=_interopDefaultLegacy(rhumbDestination);function transformScale(geojson,factor,options){if(options=options||{},!helpers.isObject(options))throw new Error("options is invalid");var origin=options.origin,mutate=options.mutate;if(!geojson)throw new Error("geojson required");if("number"!=typeof factor||0===factor)throw new Error("invalid factor");var originIsPoint=Array.isArray(origin)||"object"==typeof origin;return!0!==mutate&&(geojson=clone__default.default(geojson)),"FeatureCollection"!==geojson.type||originIsPoint?scale(geojson,factor,origin):(meta.featureEach(geojson,(function(feature,index){geojson.features[index]=scale(feature,factor,origin)})),geojson)}function scale(feature,factor,origin){var isPoint="Point"===invariant.getType(feature);return origin=function defineOrigin(geojson,origin){null==origin&&(origin="centroid");if(Array.isArray(origin)||"object"==typeof origin)return invariant.getCoord(origin);var bbox=geojson.bbox?geojson.bbox:turfBBox__default.default(geojson),west=bbox[0],south=bbox[1],east=bbox[2],north=bbox[3];switch(origin){case"sw":case"southwest":case"westsouth":case"bottomleft":return helpers.point([west,south]);case"se":case"southeast":case"eastsouth":case"bottomright":return helpers.point([east,south]);case"nw":case"northwest":case"westnorth":case"topleft":return helpers.point([west,north]);case"ne":case"northeast":case"eastnorth":case"topright":return helpers.point([east,north]);case"center":return center__default.default(geojson);case void 0:case null:case"centroid":return centroid__default.default(geojson);default:throw new Error("invalid origin")}}(feature,origin),1===factor||isPoint||meta.coordEach(feature,(function(coord){var originalDistance=rhumbDistance__default.default(origin,coord),bearing=rhumbBearing__default.default(origin,coord),newDistance=originalDistance*factor,newCoord=invariant.getCoords(rhumbDestination__default.default(origin,newDistance,bearing));coord[0]=newCoord[0],coord[1]=newCoord[1],3===coord.length&&(coord[2]*=factor)})),feature}module.exports=transformScale,module.exports.default=transformScale},"./node_modules/@turf/transform-translate/dist/js/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";var meta=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),invariant=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),clone=__webpack_require__("./node_modules/@turf/clone/dist/js/index.js"),rhumbDestination=__webpack_require__("./node_modules/@turf/rhumb-destination/dist/js/index.js");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var clone__default=_interopDefaultLegacy(clone),rhumbDestination__default=_interopDefaultLegacy(rhumbDestination);function transformTranslate(geojson,distance,direction,options){if(options=options||{},!helpers.isObject(options))throw new Error("options is invalid");var units=options.units,zTranslation=options.zTranslation,mutate=options.mutate;if(!geojson)throw new Error("geojson is required");if(null==distance||isNaN(distance))throw new Error("distance is required");if(zTranslation&&"number"!=typeof zTranslation&&isNaN(zTranslation))throw new Error("zTranslation is not a number");if(zTranslation=void 0!==zTranslation?zTranslation:0,0===distance&&0===zTranslation)return geojson;if(null==direction||isNaN(direction))throw new Error("direction is required");return distance<0&&(distance=-distance,direction+=180),!1!==mutate&&void 0!==mutate||(geojson=clone__default.default(geojson)),meta.coordEach(geojson,(function(pointCoords){var newCoords=invariant.getCoords(rhumbDestination__default.default(pointCoords,distance,direction,{units:units}));pointCoords[0]=newCoords[0],pointCoords[1]=newCoords[1],zTranslation&&3===pointCoords.length&&(pointCoords[2]+=zTranslation)})),geojson}module.exports=transformTranslate,module.exports.default=transformTranslate},"./node_modules/@turf/union/dist/js/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});var polygon_clipping_1=__importDefault(__webpack_require__("./node_modules/polygon-clipping/dist/polygon-clipping.umd.js")),invariant_1=__webpack_require__("./node_modules/@turf/invariant/dist/js/index.js"),helpers_1=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js");exports.default=function union(poly1,poly2,options){void 0===options&&(options={});var geom1=invariant_1.getGeom(poly1),geom2=invariant_1.getGeom(poly2),unioned=polygon_clipping_1.default.union(geom1.coordinates,geom2.coordinates);return 0===unioned.length?null:1===unioned.length?helpers_1.polygon(unioned[0],options.properties):helpers_1.multiPolygon(unioned,options.properties)}},"./node_modules/@vivaxy/png/lib/decode/decode-idat.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const pako=__webpack_require__("./node_modules/pako/index.js"),color_types_1=__webpack_require__("./node_modules/@vivaxy/png/lib/helpers/color-types.js"),filters_1=__webpack_require__("./node_modules/@vivaxy/png/lib/helpers/filters.js"),rescale_sample_1=__webpack_require__("./node_modules/@vivaxy/png/lib/helpers/rescale-sample.js"),channels_1=__webpack_require__("./node_modules/@vivaxy/png/lib/helpers/channels.js"),interlace_1=__webpack_require__("./node_modules/@vivaxy/png/lib/helpers/interlace.js");exports.default=function decodeIDAT(deflatedData,interlace,colorType,width,height,depth,palette,transparent){let pixels=[];const inflatedData=pako.inflate(deflatedData),images=interlace_1.buildImages(interlace,width,height),bitPerPixel=color_types_1.COLOR_TYPES_TO_CHANNEL_PER_PIXEL[colorType]*depth,bytePerPixel=bitPerPixel>>3||1;let dataIndex=0,prevUnfilteredLine=new Uint8Array;for(let imageIndex=0;imageIndex>3)+filters_1.FILTER_LENGTH,filterType=inflatedData[dataIndex];if(!(filterType in filters_1.FILTER_TYPES))throw new Error("Unsupported filter type: "+filterType);const unfilteredLine=(0,filters_1.unfilters[filterType])(inflatedData.slice(dataIndex+1,dataIndex+scanlineWidth),bytePerPixel,prevUnfilteredLine);prevUnfilteredLine=unfilteredLine;let channelIndex=0;const channels=channels_1.typedArrayToChannels(unfilteredLine,depth);function getPixelFromChannels(){if(colorType===color_types_1.COLOR_TYPES.GRAYSCALE){const color=rescale_sample_1.default(channels[channelIndex++],depth,8);return[color,color,color,255]}if(colorType===color_types_1.COLOR_TYPES.TRUE_COLOR)return[rescale_sample_1.default(channels[channelIndex++],depth,8),rescale_sample_1.default(channels[channelIndex++],depth,8),rescale_sample_1.default(channels[channelIndex++],depth,8),255];if(colorType===color_types_1.COLOR_TYPES.PALETTE){const paletteIndex=channels[channelIndex++];if(!palette)throw new Error("Mising chunk: PLTE");return palette[paletteIndex]}if(colorType===color_types_1.COLOR_TYPES.GRAYSCALE_WITH_ALPHA){const color=rescale_sample_1.default(channels[channelIndex++],depth,8);return[color,color,color,rescale_sample_1.default(channels[channelIndex++],depth,8)]}if(colorType===color_types_1.COLOR_TYPES.TRUE_COLOR_WITH_ALPHA)return[rescale_sample_1.default(channels[channelIndex++],depth,8),rescale_sample_1.default(channels[channelIndex++],depth,8),rescale_sample_1.default(channels[channelIndex++],depth,8),rescale_sample_1.default(channels[channelIndex++],depth,8)];throw new Error("Unsupported color type: "+colorType)}for(let widthIndex=0;widthIndex>3||1,images=interlace_1.buildImages(interlace,width,height);for(let imageIndex=0;imageIndex>3)+filters_1.FILTER_LENGTH;for(let heightIndex=0;heightIndex>24&255,value>>16&255,value>>8&255,255&value])}function packUInt8(value){return new Uint8Array([255&value])}function packString(name){const data=new Uint8Array(name.length);for(let i=0;i>8&255,data[1]=255&year,data[2]=date.getUTCMonth()+1,data[3]=date.getUTCDate(),data[4]=date.getUTCHours(),data[5]=date.getUTCMinutes(),data[6]=date.getUTCSeconds(),data},sRGB:function packSRGB(){if(void 0!==metadata.sRGB)return packUInt8(metadata.sRGB);return new Uint8Array},pHYs:function packPHYS(){let data=new Uint8Array;metadata.physicalDimensions&&(data=typed_array_1.concatUInt8Array(data,packUInt32BE(metadata.physicalDimensions.pixelPerUnitX)),data=typed_array_1.concatUInt8Array(data,packUInt32BE(metadata.physicalDimensions.pixelPerUnitY)),data=typed_array_1.concatUInt8Array(data,packUInt8(metadata.physicalDimensions.unit)));return data},sPLT:function packSPLT(){if(!metadata.suggestedPalette)return new Uint8Array;let data=typed_array_1.concatUInt8Array(packString(metadata.suggestedPalette.name),packUInt8(0));data=typed_array_1.concatUInt8Array(data,packUInt8(metadata.suggestedPalette.depth));for(let i=0;i>8&255,255&palette[4]]);data=typed_array_1.concatUInt8Array(data,paletteData)}else if(16===metadata.suggestedPalette.depth){const paletteData=new Uint8Array(10);for(let i=0;i<5;i++)paletteData[2*i]=palette[i]>>8&255,paletteData[2*i+1]=255&palette[i];data=typed_array_1.concatUInt8Array(data,paletteData)}}return data},iCCP:function packICCP(){if(!metadata.icc)return new Uint8Array;let data=packString(metadata.icc.name);return data=typed_array_1.concatUInt8Array(data,packUInt8(0)),data=typed_array_1.concatUInt8Array(data,packUInt8(0)),data=typed_array_1.concatUInt8Array(data,pako.deflate(metadata.icc.profile)),data},sBIT:function packSBIT(){if(!metadata.significantBits)return new Uint8Array;if(metadata.colorType===color_types_1.COLOR_TYPES.GRAYSCALE)return packUInt8(metadata.significantBits[0]);if(metadata.colorType===color_types_1.COLOR_TYPES.TRUE_COLOR||metadata.colorType===color_types_1.COLOR_TYPES.PALETTE){const data=new Uint8Array(3);for(let i=0;i<3;i++)data[i]=metadata.significantBits[i];return data}if(metadata.colorType===color_types_1.COLOR_TYPES.GRAYSCALE_WITH_ALPHA)return typed_array_1.concatUInt8Array(packUInt8(metadata.significantBits[0]),packUInt8(metadata.significantBits[3]));if(metadata.colorType===color_types_1.COLOR_TYPES.TRUE_COLOR_WITH_ALPHA){const data=new Uint8Array(4);for(let i=0;i<4;i++)data[i]=metadata.significantBits[i];return data}return new Uint8Array},gAMA:function packGAMA(){if(void 0!==metadata.gamma)return packUInt32BE(metadata.gamma*gamma_1.GAMMA_DIVISION);return new Uint8Array},cHRM:function packCHRM(){if(!metadata.chromaticities)return new Uint8Array;const{chromaticities:chromaticities}=metadata;let data=new Uint8Array;return["white","red","green","blue"].forEach((function(color){["x","y"].forEach((function(axis){data=typed_array_1.concatUInt8Array(data,packUInt32BE(chromaticities[color][axis]*chromaticities_1.CHROMATICITIES_DIVISION))}))})),data},PLTE:function packPLTE(){const data=[];if(metadata.palette)for(let i=0;i>8&255,255&color)}}else if(metadata.colorType===color_types_1.COLOR_TYPES.TRUE_COLOR){if(metadata.transparent)for(let i=0;i<3;i++){const color=rescale_sample_1.default(metadata.transparent[i],8,metadata.depth);data.push(color>>8&255,255&color)}}else if(metadata.colorType===color_types_1.COLOR_TYPES.PALETTE){if(!metadata.palette)throw new Error("Palette is required");const{palette:palette}=metadata;let transparent=!1;for(let i=0;i>8&255,255&value)}));return new Uint8Array},bKGD:function packBKGD(){if(!metadata.background)return new Uint8Array;if((3&metadata.colorType)===color_types_1.COLOR_TYPES.GRAYSCALE){return function packUInt16BE(value){return new Uint8Array([value>>8&255,255&value])}(rescale_sample_1.default(metadata.background[0],8,metadata.depth))}if((3&metadata.colorType)===color_types_1.COLOR_TYPES.TRUE_COLOR){const data=new Uint8Array(6);for(let i=0;i<3;i++){const color=rescale_sample_1.default(metadata.background[i],8,metadata.depth);data[2*i]=color>>8&255,data[2*i+1]=255&color}return data}if(metadata.colorType===color_types_1.COLOR_TYPES.PALETTE){if(!metadata.palette)throw new Error("Missing chunk: PLTE");let index=-1;for(let paletteIndex=0;paletteIndex0||"IEND"===chunkName)&&addChunk(chunkName,data)})),typedArray}},"./node_modules/@vivaxy/png/lib/helpers/channels.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.typedArrayToChannels=function typedArrayToChannels(typedArray,depth){const channels=[];let typedArrayIndex=0;for(;typedArrayIndex>7&1,uint8>>6&1,uint8>>5&1,uint8>>4&1,uint8>>3&1,uint8>>2&1,uint8>>1&1,1&uint8)}else if(2===depth){const uint8=typedArray[typedArrayIndex++];channels.push(uint8>>6&3,uint8>>4&3,uint8>>2&3,3&uint8)}else if(4===depth){const uint8=typedArray[typedArrayIndex++];channels.push(uint8>>4&15,15&uint8)}else if(8===depth){const uint8=typedArray[typedArrayIndex++];channels.push(uint8)}else{if(16!==depth)throw new Error("Unsupported depth: "+depth);channels.push(typedArray[typedArrayIndex++]<<8|typedArray[typedArrayIndex++])}return channels},exports.channelsToTypedArray=function channelsToTypedArray(channels,depth,dataLength){const typedArray=new Uint8Array(dataLength);let typedArrayIndex=0,channelIndex=0;for(;channelIndex>8&255,typedArray[typedArrayIndex++]=255&channel}}return typedArray}},"./node_modules/@vivaxy/png/lib/helpers/chromaticities.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CHROMATICITIES_DIVISION=1e5},"./node_modules/@vivaxy/png/lib/helpers/color-types.js":function(__unused_webpack_module,exports){"use strict";var COLOR_TYPES;Object.defineProperty(exports,"__esModule",{value:!0}),function(COLOR_TYPES){COLOR_TYPES[COLOR_TYPES.GRAYSCALE=0]="GRAYSCALE",COLOR_TYPES[COLOR_TYPES.TRUE_COLOR=2]="TRUE_COLOR",COLOR_TYPES[COLOR_TYPES.PALETTE=3]="PALETTE",COLOR_TYPES[COLOR_TYPES.GRAYSCALE_WITH_ALPHA=4]="GRAYSCALE_WITH_ALPHA",COLOR_TYPES[COLOR_TYPES.TRUE_COLOR_WITH_ALPHA=6]="TRUE_COLOR_WITH_ALPHA"}(COLOR_TYPES=exports.COLOR_TYPES||(exports.COLOR_TYPES={})),exports.COLOR_TYPES_TO_CHANNEL_PER_PIXEL={[COLOR_TYPES.GRAYSCALE]:1,[COLOR_TYPES.TRUE_COLOR]:3,[COLOR_TYPES.PALETTE]:1,[COLOR_TYPES.GRAYSCALE_WITH_ALPHA]:2,[COLOR_TYPES.TRUE_COLOR_WITH_ALPHA]:4}},"./node_modules/@vivaxy/png/lib/helpers/crc32.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const crcTable=[];for(let i=0;i<256;i++){let currentCrc=i;for(let j=0;j<8;j++)1¤tCrc?currentCrc=3988292384^currentCrc>>>1:currentCrc>>>=1;crcTable[i]=currentCrc}exports.default=function crc32(buf){let crc=-1;for(let i=0;i>>8;return-1^crc}},"./node_modules/@vivaxy/png/lib/helpers/filters.js":function(__unused_webpack_module,exports){"use strict";var FILTER_TYPES;function paeth(left,above,upperLeft){const p=left+above-upperLeft,pa=Math.abs(p-left),pb=Math.abs(p-above),pc=Math.abs(p-upperLeft);return pa<=pb&&pa<=pc?left:pb<=pc?above:upperLeft}Object.defineProperty(exports,"__esModule",{value:!0}),exports.FILTER_LENGTH=1,function(FILTER_TYPES){FILTER_TYPES[FILTER_TYPES.NONE=0]="NONE",FILTER_TYPES[FILTER_TYPES.SUB=1]="SUB",FILTER_TYPES[FILTER_TYPES.UP=2]="UP",FILTER_TYPES[FILTER_TYPES.AVERAGE=3]="AVERAGE",FILTER_TYPES[FILTER_TYPES.PAETH=4]="PAETH"}(FILTER_TYPES=exports.FILTER_TYPES||(exports.FILTER_TYPES={})),exports.unfilters={[FILTER_TYPES.NONE](data){return data},[FILTER_TYPES.SUB](data,bytePerPixel){const unfiltered=new Uint8Array(data.length);for(let i=0;i>1;unfilteredLine[i]=data[i]+avg}return unfilteredLine},[FILTER_TYPES.PAETH](data,bytePerPixel,prevUnfilteredLine){const unfilteredLine=new Uint8Array(data.length);for(let i=0;i>1;filtered[i]=data[i]-avg,sum+=filtered[i]}return{sum:sum,filtered:filtered}},[FILTER_TYPES.PAETH](data,bytePerPixel,prevUnfilteredLine){let sum=0;const filtered=new Uint8Array(data.length);for(let i=0;i>3;let passWidth=(width-remainingX>>3)*x.length;for(let i=0;i>6|192;else{if(c>55295&&c<56320){if(++ci>=string.length)throw new Error("UTF-8 encode: incomplete surrogate pair");const c2=string.charCodeAt(ci);if(c2<56320||c2>57343)throw new Error("UTF-8 encode: second surrogate character 0x"+c2.toString(16)+" at index "+ci+" out of range");c=65536+((1023&c)<<10)+(1023&c2),bytes[i++]=c>>18|240,bytes[i++]=c>>12&63|128}else bytes[i++]=c>>12|224;bytes[i++]=c>>6&63|128}bytes[i++]=63&c|128}}return bytes.subarray(0,i)},exports.decode=function decode(bytes){let i=0,s="";for(;i127)if(c>191&&c<224){if(i>=bytes.length)throw new Error("UTF-8 decode: incomplete 2-byte sequence");c=(31&c)<<6|63&bytes[i++]}else if(c>223&&c<240){if(i+1>=bytes.length)throw new Error("UTF-8 decode: incomplete 3-byte sequence");c=(15&c)<<12|(63&bytes[i++])<<6|63&bytes[i++]}else{if(!(c>239&&c<248))throw new Error("UTF-8 decode: unknown multibyte start 0x"+c.toString(16)+" at index "+(i-1));if(i+2>=bytes.length)throw new Error("UTF-8 decode: incomplete 4-byte sequence");c=(7&c)<<18|(63&bytes[i++])<<12|(63&bytes[i++])<<6|63&bytes[i++]}if(c<=65535)s+=String.fromCharCode(c);else{if(!(c<=1114111))throw new Error("UTF-8 decode: code point 0x"+c.toString(16)+" exceeds UTF-16 reach");c-=65536,s+=String.fromCharCode(c>>10|55296),s+=String.fromCharCode(1023&c|56320)}}return s}},"./node_modules/@vivaxy/png/lib/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";const decode_1=__webpack_require__("./node_modules/@vivaxy/png/lib/decode/index.js");exports.Jx=decode_1.default;__webpack_require__("./node_modules/@vivaxy/png/lib/encode/index.js").default},"./node_modules/complex.js/complex.js":function(module,exports){var __WEBPACK_AMD_DEFINE_RESULT__;!function(root){"use strict";var cosh=Math.cosh||function(x){return Math.abs(x)<1e-9?1-x:.5*(Math.exp(x)+Math.exp(-x))},sinh=Math.sinh||function(x){return Math.abs(x)<1e-9?x:.5*(Math.exp(x)-Math.exp(-x))},parser_exit=function(){throw SyntaxError("Invalid Param")};function logHypot(a,b){var _a=Math.abs(a),_b=Math.abs(b);return 0===a?Math.log(_b):0===b?Math.log(_a):_a<3e3&&_b<3e3?.5*Math.log(a*a+b*b):(a/=2,b/=2,.5*Math.log(a*a+b*b)+Math.LN2)}function Complex(a,b){if(!(this instanceof Complex))return new Complex(a,b);var z=function(a,b){var z={re:0,im:0};if(null==a)z.re=z.im=0;else if(void 0!==b)z.re=a,z.im=b;else switch(typeof a){case"object":if("im"in a&&"re"in a)z.re=a.re,z.im=a.im;else if("abs"in a&&"arg"in a){if(!Number.isFinite(a.abs)&&Number.isFinite(a.arg))return Complex.INFINITY;z.re=a.abs*Math.cos(a.arg),z.im=a.abs*Math.sin(a.arg)}else if("r"in a&&"phi"in a){if(!Number.isFinite(a.r)&&Number.isFinite(a.phi))return Complex.INFINITY;z.re=a.r*Math.cos(a.phi),z.im=a.r*Math.sin(a.phi)}else 2===a.length?(z.re=a[0],z.im=a[1]):parser_exit();break;case"string":z.im=z.re=0;var tokens=a.match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),plus=1,minus=0;null===tokens&&parser_exit();for(var i=0;i0&&parser_exit();break;case"number":z.im=0,z.re=a;break;default:parser_exit()}return isNaN(z.re)||isNaN(z.im),z}(a,b);this.re=z.re,this.im=z.im}Complex.prototype={re:0,im:0,sign:function(){var abs=this.abs();return new Complex(this.re/abs,this.im/abs)},add:function(a,b){var z=new Complex(a,b);return this.isInfinite()&&z.isInfinite()?Complex.NAN:this.isInfinite()||z.isInfinite()?Complex.INFINITY:new Complex(this.re+z.re,this.im+z.im)},sub:function(a,b){var z=new Complex(a,b);return this.isInfinite()&&z.isInfinite()?Complex.NAN:this.isInfinite()||z.isInfinite()?Complex.INFINITY:new Complex(this.re-z.re,this.im-z.im)},mul:function(a,b){var z=new Complex(a,b);return this.isInfinite()&&z.isZero()||this.isZero()&&z.isInfinite()?Complex.NAN:this.isInfinite()||z.isInfinite()?Complex.INFINITY:0===z.im&&0===this.im?new Complex(this.re*z.re,0):new Complex(this.re*z.re-this.im*z.im,this.re*z.im+this.im*z.re)},div:function(a,b){var z=new Complex(a,b);if(this.isZero()&&z.isZero()||this.isInfinite()&&z.isInfinite())return Complex.NAN;if(this.isInfinite()||z.isZero())return Complex.INFINITY;if(this.isZero()||z.isInfinite())return Complex.ZERO;a=this.re,b=this.im;var t,x,c=z.re,d=z.im;return 0===d?new Complex(a/c,b/c):Math.abs(c)0)return new Complex(Math.pow(a,z.re),0);if(0===a)switch((z.re%4+4)%4){case 0:return new Complex(Math.pow(b,z.re),0);case 1:return new Complex(0,Math.pow(b,z.re));case 2:return new Complex(-Math.pow(b,z.re),0);case 3:return new Complex(0,-Math.pow(b,z.re))}}if(0===a&&0===b&&z.re>0&&z.im>=0)return Complex.ZERO;var arg=Math.atan2(b,a),loh=logHypot(a,b);return a=Math.exp(z.re*loh-z.im*arg),b=z.im*loh+z.re*arg,new Complex(a*Math.cos(b),a*Math.sin(b))},sqrt:function(){var re,im,a=this.re,b=this.im,r=this.abs();if(a>=0){if(0===b)return new Complex(Math.sqrt(a),0);re=.5*Math.sqrt(2*(r+a))}else re=Math.abs(b)/Math.sqrt(2*(r-a));return im=a<=0?.5*Math.sqrt(2*(r-a)):Math.abs(b)/Math.sqrt(2*(r+a)),new Complex(re,b<0?-im:im)},exp:function(){var tmp=Math.exp(this.re);return this.im,new Complex(tmp*Math.cos(this.im),tmp*Math.sin(this.im))},expm1:function(){var a=this.re,b=this.im;return new Complex(Math.expm1(a)*Math.cos(b)+function(x){var b=Math.PI/4;if(-b>x||x>b)return Math.cos(x)-1;var xx=x*x;return xx*(xx*(xx*(xx*(xx*(xx*(xx*(xx/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5)}(b),Math.exp(a)*Math.sin(b))},log:function(){var a=this.re,b=this.im;return new Complex(logHypot(a,b),Math.atan2(b,a))},abs:function(){return x=this.re,y=this.im,a=Math.abs(x),b=Math.abs(y),a<3e3&&b<3e3?Math.sqrt(a*a+b*b):(a1&&0===b,oneMinus=1-a,onePlus=1+a,d=oneMinus*oneMinus+b*b,x=0!==d?new Complex((onePlus*oneMinus-b*b)/d,(b*oneMinus+onePlus*b)/d):new Complex(-1!==a?a/0:0,0!==b?b/0:0),temp=x.re;return x.re=logHypot(x.re,x.im)/2,x.im=Math.atan2(x.im,temp)/2,noIM&&(x.im=-x.im),x},acoth:function(){var a=this.re,b=this.im;if(0===a&&0===b)return new Complex(0,Math.PI/2);var d=a*a+b*b;return 0!==d?new Complex(a/d,-b/d).atanh():new Complex(0!==a?a/0:0,0!==b?-b/0:0).atanh()},acsch:function(){var a=this.re,b=this.im;if(0===b)return new Complex(0!==a?Math.log(a+Math.sqrt(a*a+1)):1/0,0);var d=a*a+b*b;return 0!==d?new Complex(a/d,-b/d).asinh():new Complex(0!==a?a/0:0,0!==b?-b/0:0).asinh()},asech:function(){var a=this.re,b=this.im;if(this.isZero())return Complex.INFINITY;var d=a*a+b*b;return 0!==d?new Complex(a/d,-b/d).acosh():new Complex(0!==a?a/0:0,0!==b?-b/0:0).acosh()},inverse:function(){if(this.isZero())return Complex.INFINITY;if(this.isInfinite())return Complex.ZERO;var a=this.re,b=this.im,d=a*a+b*b;return new Complex(a/d,-b/d)},conjugate:function(){return new Complex(this.re,-this.im)},neg:function(){return new Complex(-this.re,-this.im)},ceil:function(places){return places=Math.pow(10,places||0),new Complex(Math.ceil(this.re*places)/places,Math.ceil(this.im*places)/places)},floor:function(places){return places=Math.pow(10,places||0),new Complex(Math.floor(this.re*places)/places,Math.floor(this.im*places)/places)},round:function(places){return places=Math.pow(10,places||0),new Complex(Math.round(this.re*places)/places,Math.round(this.im*places)/places)},equals:function(a,b){var z=new Complex(a,b);return Math.abs(z.re-this.re)<=Complex.EPSILON&&Math.abs(z.im-this.im)<=Complex.EPSILON},clone:function(){return new Complex(this.re,this.im)},toString:function(){var a=this.re,b=this.im,ret="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(a)0){for(str+=w,i=1;imax)throw Error(invalidArgument+i)}function checkRoundingDigits(d,i,rm,repeating){var di,k,r,rd;for(k=d[0];k>=10;k/=10)--i;return--i<0?(i+=LOG_BASE,di=0):(di=Math.ceil((i+1)/LOG_BASE),i%=LOG_BASE),k=mathpow(10,LOG_BASE-i),rd=d[di]%k|0,null==repeating?i<3?(0==i?rd=rd/100|0:1==i&&(rd=rd/10|0),r=rm<4&&99999==rd||rm>3&&49999==rd||5e4==rd||0==rd):r=(rm<4&&rd+1==k||rm>3&&rd+1==k/2)&&(d[di+1]/k/100|0)==mathpow(10,i-2)-1||(rd==k/2||0==rd)&&0==(d[di+1]/k/100|0):i<4?(0==i?rd=rd/1e3|0:1==i?rd=rd/100|0:2==i&&(rd=rd/10|0),r=(repeating||rm<4)&&9999==rd||!repeating&&rm>3&&4999==rd):r=((repeating||rm<4)&&rd+1==k||!repeating&&rm>3&&rd+1==k/2)&&(d[di+1]/k/1e3|0)==mathpow(10,i-3)-1,r}function convertBase(str,baseIn,baseOut){for(var j,arrL,arr=[0],i=0,strL=str.length;ibaseOut-1&&(void 0===arr[j+1]&&(arr[j+1]=0),arr[j+1]+=arr[j]/baseOut|0,arr[j]%=baseOut)}return arr.reverse()}P.absoluteValue=P.abs=function(){var x=new this.constructor(this);return x.s<0&&(x.s=1),finalise(x)},P.ceil=function(){return finalise(new this.constructor(this),this.e+1,2)},P.clampedTo=P.clamp=function(min,max){var x=this,Ctor=x.constructor;if(min=new Ctor(min),max=new Ctor(max),!min.s||!max.s)return new Ctor(NaN);if(min.gt(max))throw Error(invalidArgument+max);return x.cmp(min)<0?min:x.cmp(max)>0?max:new Ctor(x)},P.comparedTo=P.cmp=function(y){var i,j,xdL,ydL,x=this,xd=x.d,yd=(y=new x.constructor(y)).d,xs=x.s,ys=y.s;if(!xd||!yd)return xs&&ys?xs!==ys?xs:xd===yd?0:!xd^xs<0?1:-1:NaN;if(!xd[0]||!yd[0])return xd[0]?xs:yd[0]?-ys:0;if(xs!==ys)return xs;if(x.e!==y.e)return x.e>y.e^xs<0?1:-1;for(i=0,j=(xdL=xd.length)<(ydL=yd.length)?xdL:ydL;iyd[i]^xs<0?1:-1;return xdL===ydL?0:xdL>ydL^xs<0?1:-1},P.cosine=P.cos=function(){var pr,rm,x=this,Ctor=x.constructor;return x.d?x.d[0]?(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+LOG_BASE,Ctor.rounding=1,x=function cosine(Ctor,x){var k,len,y;if(x.isZero())return x;len=x.d.length,len<32?y=(1/tinyPow(4,k=Math.ceil(len/3))).toString():(k=16,y="2.3283064365386962890625e-10");Ctor.precision+=k,x=taylorSeries(Ctor,1,x.times(y),new Ctor(1));for(var i=k;i--;){var cos2x=x.times(x);x=cos2x.times(cos2x).minus(cos2x).times(8).plus(1)}return Ctor.precision-=k,x}(Ctor,toLessThanHalfPi(Ctor,x)),Ctor.precision=pr,Ctor.rounding=rm,finalise(2==quadrant||3==quadrant?x.neg():x,pr,rm,!0)):new Ctor(1):new Ctor(NaN)},P.cubeRoot=P.cbrt=function(){var e,m,n,r,rep,s,sd,t,t3,t3plusx,x=this,Ctor=x.constructor;if(!x.isFinite()||x.isZero())return new Ctor(x);for(external=!1,(s=x.s*mathpow(x.s*x,1/3))&&Math.abs(s)!=1/0?r=new Ctor(s.toString()):(n=digitsToString(x.d),(s=((e=x.e)-n.length+1)%3)&&(n+=1==s||-2==s?"0":"00"),s=mathpow(n,1/3),e=mathfloor((e+1)/3)-(e%3==(e<0?-1:2)),(r=new Ctor(n=s==1/0?"5e"+e:(n=s.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=x.s),sd=(e=Ctor.precision)+3;;)if(t3plusx=(t3=(t=r).times(t).times(t)).plus(x),r=divide(t3plusx.plus(x).times(t),t3plusx.plus(t3),sd+2,1),digitsToString(t.d).slice(0,sd)===(n=digitsToString(r.d)).slice(0,sd)){if("9999"!=(n=n.slice(sd-3,sd+1))&&(rep||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(finalise(r,e+1,1),m=!r.times(r).times(r).eq(x));break}if(!rep&&(finalise(t,e+1,0),t.times(t).times(t).eq(x))){r=t;break}sd+=4,rep=1}return external=!0,finalise(r,e,Ctor.rounding,m)},P.decimalPlaces=P.dp=function(){var w,d=this.d,n=NaN;if(d){if(n=((w=d.length-1)-mathfloor(this.e/LOG_BASE))*LOG_BASE,w=d[w])for(;w%10==0;w/=10)n--;n<0&&(n=0)}return n},P.dividedBy=P.div=function(y){return divide(this,new this.constructor(y))},P.dividedToIntegerBy=P.divToInt=function(y){var Ctor=this.constructor;return finalise(divide(this,new Ctor(y),0,1,1),Ctor.precision,Ctor.rounding)},P.equals=P.eq=function(y){return 0===this.cmp(y)},P.floor=function(){return finalise(new this.constructor(this),this.e+1,3)},P.greaterThan=P.gt=function(y){return this.cmp(y)>0},P.greaterThanOrEqualTo=P.gte=function(y){var k=this.cmp(y);return 1==k||0===k},P.hyperbolicCosine=P.cosh=function(){var k,n,pr,rm,len,x=this,Ctor=x.constructor,one=new Ctor(1);if(!x.isFinite())return new Ctor(x.s?1/0:NaN);if(x.isZero())return one;pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+4,Ctor.rounding=1,(len=x.d.length)<32?n=(1/tinyPow(4,k=Math.ceil(len/3))).toString():(k=16,n="2.3283064365386962890625e-10"),x=taylorSeries(Ctor,1,x.times(n),new Ctor(1),!0);for(var cosh2_x,i=k,d8=new Ctor(8);i--;)cosh2_x=x.times(x),x=one.minus(cosh2_x.times(d8.minus(cosh2_x.times(d8))));return finalise(x,Ctor.precision=pr,Ctor.rounding=rm,!0)},P.hyperbolicSine=P.sinh=function(){var k,pr,rm,len,x=this,Ctor=x.constructor;if(!x.isFinite()||x.isZero())return new Ctor(x);if(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+4,Ctor.rounding=1,(len=x.d.length)<3)x=taylorSeries(Ctor,2,x,x,!0);else{k=(k=1.4*Math.sqrt(len))>16?16:0|k,x=taylorSeries(Ctor,2,x=x.times(1/tinyPow(5,k)),x,!0);for(var sinh2_x,d5=new Ctor(5),d16=new Ctor(16),d20=new Ctor(20);k--;)sinh2_x=x.times(x),x=x.times(d5.plus(sinh2_x.times(d16.times(sinh2_x).plus(d20))))}return Ctor.precision=pr,Ctor.rounding=rm,finalise(x,pr,rm,!0)},P.hyperbolicTangent=P.tanh=function(){var pr,rm,x=this,Ctor=x.constructor;return x.isFinite()?x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+7,Ctor.rounding=1,divide(x.sinh(),x.cosh(),Ctor.precision=pr,Ctor.rounding=rm)):new Ctor(x.s)},P.inverseCosine=P.acos=function(){var halfPi,x=this,Ctor=x.constructor,k=x.abs().cmp(1),pr=Ctor.precision,rm=Ctor.rounding;return-1!==k?0===k?x.isNeg()?getPi(Ctor,pr,rm):new Ctor(0):new Ctor(NaN):x.isZero()?getPi(Ctor,pr+4,rm).times(.5):(Ctor.precision=pr+6,Ctor.rounding=1,x=x.asin(),halfPi=getPi(Ctor,pr+4,rm).times(.5),Ctor.precision=pr,Ctor.rounding=rm,halfPi.minus(x))},P.inverseHyperbolicCosine=P.acosh=function(){var pr,rm,x=this,Ctor=x.constructor;return x.lte(1)?new Ctor(x.eq(1)?0:NaN):x.isFinite()?(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(Math.abs(x.e),x.sd())+4,Ctor.rounding=1,external=!1,x=x.times(x).minus(1).sqrt().plus(x),external=!0,Ctor.precision=pr,Ctor.rounding=rm,x.ln()):new Ctor(x)},P.inverseHyperbolicSine=P.asinh=function(){var pr,rm,x=this,Ctor=x.constructor;return!x.isFinite()||x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+2*Math.max(Math.abs(x.e),x.sd())+6,Ctor.rounding=1,external=!1,x=x.times(x).plus(1).sqrt().plus(x),external=!0,Ctor.precision=pr,Ctor.rounding=rm,x.ln())},P.inverseHyperbolicTangent=P.atanh=function(){var pr,rm,wpr,xsd,x=this,Ctor=x.constructor;return x.isFinite()?x.e>=0?new Ctor(x.abs().eq(1)?x.s/0:x.isZero()?x:NaN):(pr=Ctor.precision,rm=Ctor.rounding,xsd=x.sd(),Math.max(xsd,pr)<2*-x.e-1?finalise(new Ctor(x),pr,rm,!0):(Ctor.precision=wpr=xsd-x.e,x=divide(x.plus(1),new Ctor(1).minus(x),wpr+pr,1),Ctor.precision=pr+4,Ctor.rounding=1,x=x.ln(),Ctor.precision=pr,Ctor.rounding=rm,x.times(.5))):new Ctor(NaN)},P.inverseSine=P.asin=function(){var halfPi,k,pr,rm,x=this,Ctor=x.constructor;return x.isZero()?new Ctor(x):(k=x.abs().cmp(1),pr=Ctor.precision,rm=Ctor.rounding,-1!==k?0===k?((halfPi=getPi(Ctor,pr+4,rm).times(.5)).s=x.s,halfPi):new Ctor(NaN):(Ctor.precision=pr+6,Ctor.rounding=1,x=x.div(new Ctor(1).minus(x.times(x)).sqrt().plus(1)).atan(),Ctor.precision=pr,Ctor.rounding=rm,x.times(2)))},P.inverseTangent=P.atan=function(){var i,j,k,n,px,t,r,wpr,x2,x=this,Ctor=x.constructor,pr=Ctor.precision,rm=Ctor.rounding;if(x.isFinite()){if(x.isZero())return new Ctor(x);if(x.abs().eq(1)&&pr+4<=PI_PRECISION)return(r=getPi(Ctor,pr+4,rm).times(.25)).s=x.s,r}else{if(!x.s)return new Ctor(NaN);if(pr+4<=PI_PRECISION)return(r=getPi(Ctor,pr+4,rm).times(.5)).s=x.s,r}for(Ctor.precision=wpr=pr+10,Ctor.rounding=1,i=k=Math.min(28,wpr/LOG_BASE+2|0);i;--i)x=x.div(x.times(x).plus(1).sqrt().plus(1));for(external=!1,j=Math.ceil(wpr/LOG_BASE),n=1,x2=x.times(x),r=new Ctor(x),px=x;-1!==i;)if(px=px.times(x2),t=r.minus(px.div(n+=2)),px=px.times(x2),void 0!==(r=t.plus(px.div(n+=2))).d[j])for(i=j;r.d[i]===t.d[i]&&i--;);return k&&(r=r.times(2<this.d.length-2},P.isNaN=function(){return!this.s},P.isNegative=P.isNeg=function(){return this.s<0},P.isPositive=P.isPos=function(){return this.s>0},P.isZero=function(){return!!this.d&&0===this.d[0]},P.lessThan=P.lt=function(y){return this.cmp(y)<0},P.lessThanOrEqualTo=P.lte=function(y){return this.cmp(y)<1},P.logarithm=P.log=function(base){var isBase10,d,denominator,k,inf,num,sd,r,Ctor=this.constructor,pr=Ctor.precision,rm=Ctor.rounding;if(null==base)base=new Ctor(10),isBase10=!0;else{if(d=(base=new Ctor(base)).d,base.s<0||!d||!d[0]||base.eq(1))return new Ctor(NaN);isBase10=base.eq(10)}if(d=this.d,this.s<0||!d||!d[0]||this.eq(1))return new Ctor(d&&!d[0]?-1/0:1!=this.s?NaN:d?0:1/0);if(isBase10)if(d.length>1)inf=!0;else{for(k=d[0];k%10==0;)k/=10;inf=1!==k}if(external=!1,num=naturalLogarithm(this,sd=pr+5),denominator=isBase10?getLn10(Ctor,sd+10):naturalLogarithm(base,sd),checkRoundingDigits((r=divide(num,denominator,sd,1)).d,k=pr,rm))do{if(num=naturalLogarithm(this,sd+=10),denominator=isBase10?getLn10(Ctor,sd+10):naturalLogarithm(base,sd),r=divide(num,denominator,sd,1),!inf){+digitsToString(r.d).slice(k+1,k+15)+1==1e14&&(r=finalise(r,pr+1,0));break}}while(checkRoundingDigits(r.d,k+=10,rm));return external=!0,finalise(r,pr,rm)},P.minus=P.sub=function(y){var d,e,i,j,k,len,pr,rm,xd,xe,xLTy,yd,x=this,Ctor=x.constructor;if(y=new Ctor(y),!x.d||!y.d)return x.s&&y.s?x.d?y.s=-y.s:y=new Ctor(y.d||x.s!==y.s?x:NaN):y=new Ctor(NaN),y;if(x.s!=y.s)return y.s=-y.s,x.plus(y);if(xd=x.d,yd=y.d,pr=Ctor.precision,rm=Ctor.rounding,!xd[0]||!yd[0]){if(yd[0])y.s=-y.s;else{if(!xd[0])return new Ctor(3===rm?-0:0);y=new Ctor(x)}return external?finalise(y,pr,rm):y}if(e=mathfloor(y.e/LOG_BASE),xe=mathfloor(x.e/LOG_BASE),xd=xd.slice(),k=xe-e){for((xLTy=k<0)?(d=xd,k=-k,len=yd.length):(d=yd,e=xe,len=xd.length),k>(i=Math.max(Math.ceil(pr/LOG_BASE),len)+2)&&(k=i,d.length=1),d.reverse(),i=k;i--;)d.push(0);d.reverse()}else{for((xLTy=(i=xd.length)<(len=yd.length))&&(len=i),i=0;i0;--i)xd[len++]=0;for(i=yd.length;i>k;){if(xd[--i](len=(k=Math.ceil(pr/LOG_BASE))>len?k+1:len+1)&&(i=len,d.length=1),d.reverse();i--;)d.push(0);d.reverse()}for((len=xd.length)-(i=yd.length)<0&&(i=len,d=yd,yd=xd,xd=d),carry=0;i;)carry=(xd[--i]=xd[i]+yd[i]+carry)/BASE|0,xd[i]%=BASE;for(carry&&(xd.unshift(carry),++e),len=xd.length;0==xd[--len];)xd.pop();return y.d=xd,y.e=getBase10Exponent(xd,e),external?finalise(y,pr,rm):y},P.precision=P.sd=function(z){var k,x=this;if(void 0!==z&&z!==!!z&&1!==z&&0!==z)throw Error(invalidArgument+z);return x.d?(k=getPrecision(x.d),z&&x.e+1>k&&(k=x.e+1)):k=NaN,k},P.round=function(){var x=this,Ctor=x.constructor;return finalise(new Ctor(x),x.e+1,Ctor.rounding)},P.sine=P.sin=function(){var pr,rm,x=this,Ctor=x.constructor;return x.isFinite()?x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+Math.max(x.e,x.sd())+LOG_BASE,Ctor.rounding=1,x=function sine(Ctor,x){var k,len=x.d.length;if(len<3)return x.isZero()?x:taylorSeries(Ctor,2,x,x);k=(k=1.4*Math.sqrt(len))>16?16:0|k,x=x.times(1/tinyPow(5,k)),x=taylorSeries(Ctor,2,x,x);for(var sin2_x,d5=new Ctor(5),d16=new Ctor(16),d20=new Ctor(20);k--;)sin2_x=x.times(x),x=x.times(d5.plus(sin2_x.times(d16.times(sin2_x).minus(d20))));return x}(Ctor,toLessThanHalfPi(Ctor,x)),Ctor.precision=pr,Ctor.rounding=rm,finalise(quadrant>2?x.neg():x,pr,rm,!0)):new Ctor(NaN)},P.squareRoot=P.sqrt=function(){var m,n,sd,r,rep,t,x=this,d=x.d,e=x.e,s=x.s,Ctor=x.constructor;if(1!==s||!d||!d[0])return new Ctor(!s||s<0&&(!d||d[0])?NaN:d?x:1/0);for(external=!1,0==(s=Math.sqrt(+x))||s==1/0?(((n=digitsToString(d)).length+e)%2==0&&(n+="0"),s=Math.sqrt(n),e=mathfloor((e+1)/2)-(e<0||e%2),r=new Ctor(n=s==1/0?"5e"+e:(n=s.toExponential()).slice(0,n.indexOf("e")+1)+e)):r=new Ctor(s.toString()),sd=(e=Ctor.precision)+3;;)if(r=(t=r).plus(divide(x,t,sd+2,1)).times(.5),digitsToString(t.d).slice(0,sd)===(n=digitsToString(r.d)).slice(0,sd)){if("9999"!=(n=n.slice(sd-3,sd+1))&&(rep||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(finalise(r,e+1,1),m=!r.times(r).eq(x));break}if(!rep&&(finalise(t,e+1,0),t.times(t).eq(x))){r=t;break}sd+=4,rep=1}return external=!0,finalise(r,e,Ctor.rounding,m)},P.tangent=P.tan=function(){var pr,rm,x=this,Ctor=x.constructor;return x.isFinite()?x.isZero()?new Ctor(x):(pr=Ctor.precision,rm=Ctor.rounding,Ctor.precision=pr+10,Ctor.rounding=1,(x=x.sin()).s=1,x=divide(x,new Ctor(1).minus(x.times(x)).sqrt(),pr+10,0),Ctor.precision=pr,Ctor.rounding=rm,finalise(2==quadrant||4==quadrant?x.neg():x,pr,rm,!0)):new Ctor(NaN)},P.times=P.mul=function(y){var carry,e,i,k,r,rL,t,xdL,ydL,x=this,Ctor=x.constructor,xd=x.d,yd=(y=new Ctor(y)).d;if(y.s*=x.s,!(xd&&xd[0]&&yd&&yd[0]))return new Ctor(!y.s||xd&&!xd[0]&&!yd||yd&&!yd[0]&&!xd?NaN:xd&&yd?0*y.s:y.s/0);for(e=mathfloor(x.e/LOG_BASE)+mathfloor(y.e/LOG_BASE),(xdL=xd.length)<(ydL=yd.length)&&(r=xd,xd=yd,yd=r,rL=xdL,xdL=ydL,ydL=rL),r=[],i=rL=xdL+ydL;i--;)r.push(0);for(i=ydL;--i>=0;){for(carry=0,k=xdL+i;k>i;)t=r[k]+yd[i]*xd[k-i-1]+carry,r[k--]=t%BASE|0,carry=t/BASE|0;r[k]=(r[k]+carry)%BASE|0}for(;!r[--rL];)r.pop();return carry?++e:r.shift(),y.d=r,y.e=getBase10Exponent(r,e),external?finalise(y,Ctor.precision,Ctor.rounding):y},P.toBinary=function(sd,rm){return toStringBinary(this,2,sd,rm)},P.toDecimalPlaces=P.toDP=function(dp,rm){var x=this,Ctor=x.constructor;return x=new Ctor(x),void 0===dp?x:(checkInt32(dp,0,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),finalise(x,dp+x.e+1,rm))},P.toExponential=function(dp,rm){var str,x=this,Ctor=x.constructor;return void 0===dp?str=finiteToString(x,!0):(checkInt32(dp,0,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),str=finiteToString(x=finalise(new Ctor(x),dp+1,rm),!0,dp+1)),x.isNeg()&&!x.isZero()?"-"+str:str},P.toFixed=function(dp,rm){var str,y,x=this,Ctor=x.constructor;return void 0===dp?str=finiteToString(x):(checkInt32(dp,0,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),str=finiteToString(y=finalise(new Ctor(x),dp+x.e+1,rm),!1,dp+y.e+1)),x.isNeg()&&!x.isZero()?"-"+str:str},P.toFraction=function(maxD){var d,d0,d1,d2,e,k,n,n0,n1,pr,q,r,x=this,xd=x.d,Ctor=x.constructor;if(!xd)return new Ctor(x);if(n1=d0=new Ctor(1),d1=n0=new Ctor(0),k=(e=(d=new Ctor(d1)).e=getPrecision(xd)-x.e-1)%LOG_BASE,d.d[0]=mathpow(10,k<0?LOG_BASE+k:k),null==maxD)maxD=e>0?d:n1;else{if(!(n=new Ctor(maxD)).isInt()||n.lt(n1))throw Error(invalidArgument+n);maxD=n.gt(d)?e>0?d:n1:n}for(external=!1,n=new Ctor(digitsToString(xd)),pr=Ctor.precision,Ctor.precision=e=xd.length*LOG_BASE*2;q=divide(n,d,0,1,1),1!=(d2=d0.plus(q.times(d1))).cmp(maxD);)d0=d1,d1=d2,d2=n1,n1=n0.plus(q.times(d2)),n0=d2,d2=d,d=n.minus(q.times(d2)),n=d2;return d2=divide(maxD.minus(d0),d1,0,1,1),n0=n0.plus(d2.times(n1)),d0=d0.plus(d2.times(d1)),n0.s=n1.s=x.s,r=divide(n1,d1,e,1).minus(x).abs().cmp(divide(n0,d0,e,1).minus(x).abs())<1?[n1,d1]:[n0,d0],Ctor.precision=pr,external=!0,r},P.toHexadecimal=P.toHex=function(sd,rm){return toStringBinary(this,16,sd,rm)},P.toNearest=function(y,rm){var x=this,Ctor=x.constructor;if(x=new Ctor(x),null==y){if(!x.d)return x;y=new Ctor(1),rm=Ctor.rounding}else{if(y=new Ctor(y),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),!x.d)return y.s?x:y;if(!y.d)return y.s&&(y.s=x.s),y}return y.d[0]?(external=!1,x=divide(x,y,0,rm,1).times(y),external=!0,finalise(x)):(y.s=x.s,x=y),x},P.toNumber=function(){return+this},P.toOctal=function(sd,rm){return toStringBinary(this,8,sd,rm)},P.toPower=P.pow=function(y){var e,k,pr,r,rm,s,x=this,Ctor=x.constructor,yn=+(y=new Ctor(y));if(!(x.d&&y.d&&x.d[0]&&y.d[0]))return new Ctor(mathpow(+x,yn));if((x=new Ctor(x)).eq(1))return x;if(pr=Ctor.precision,rm=Ctor.rounding,y.eq(1))return finalise(x,pr,rm);if((e=mathfloor(y.e/LOG_BASE))>=y.d.length-1&&(k=yn<0?-yn:yn)<=9007199254740991)return r=intPow(Ctor,x,k,pr),y.s<0?new Ctor(1).div(r):finalise(r,pr,rm);if((s=x.s)<0){if(eCtor.maxE+1||e0?s/0:0):(external=!1,Ctor.rounding=x.s=1,k=Math.min(12,(e+"").length),(r=naturalExponential(y.times(naturalLogarithm(x,pr+k)),pr)).d&&checkRoundingDigits((r=finalise(r,pr+5,1)).d,pr,rm)&&(e=pr+10,+digitsToString((r=finalise(naturalExponential(y.times(naturalLogarithm(x,e+k)),e),e+5,1)).d).slice(pr+1,pr+15)+1==1e14&&(r=finalise(r,pr+1,0))),r.s=s,external=!0,Ctor.rounding=rm,finalise(r,pr,rm))},P.toPrecision=function(sd,rm){var str,x=this,Ctor=x.constructor;return void 0===sd?str=finiteToString(x,x.e<=Ctor.toExpNeg||x.e>=Ctor.toExpPos):(checkInt32(sd,1,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8),str=finiteToString(x=finalise(new Ctor(x),sd,rm),sd<=x.e||x.e<=Ctor.toExpNeg,sd)),x.isNeg()&&!x.isZero()?"-"+str:str},P.toSignificantDigits=P.toSD=function(sd,rm){var Ctor=this.constructor;return void 0===sd?(sd=Ctor.precision,rm=Ctor.rounding):(checkInt32(sd,1,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8)),finalise(new Ctor(this),sd,rm)},P.toString=function(){var x=this,Ctor=x.constructor,str=finiteToString(x,x.e<=Ctor.toExpNeg||x.e>=Ctor.toExpPos);return x.isNeg()&&!x.isZero()?"-"+str:str},P.truncated=P.trunc=function(){return finalise(new this.constructor(this),this.e+1,1)},P.valueOf=P.toJSON=function(){var x=this,Ctor=x.constructor,str=finiteToString(x,x.e<=Ctor.toExpNeg||x.e>=Ctor.toExpPos);return x.isNeg()?"-"+str:str};var divide=function(){function multiplyInteger(x,k,base){var temp,carry=0,i=x.length;for(x=x.slice();i--;)temp=x[i]*k+carry,x[i]=temp%base|0,carry=temp/base|0;return carry&&x.unshift(carry),x}function compare(a,b,aL,bL){var i,r;if(aL!=bL)r=aL>bL?1:-1;else for(i=r=0;ib[i]?1:-1;break}return r}function subtract(a,b,aL,base){for(var i=0;aL--;)a[aL]-=i,i=a[aL]1;)a.shift()}return function(x,y,pr,rm,dp,base){var cmp,e,i,k,logBase,more,prod,prodL,q,qd,rem,remL,rem0,sd,t,xi,xL,yd0,yL,yz,Ctor=x.constructor,sign=x.s==y.s?1:-1,xd=x.d,yd=y.d;if(!(xd&&xd[0]&&yd&&yd[0]))return new Ctor(x.s&&y.s&&(xd?!yd||xd[0]!=yd[0]:yd)?xd&&0==xd[0]||!yd?0*sign:sign/0:NaN);for(base?(logBase=1,e=x.e-y.e):(base=BASE,logBase=LOG_BASE,e=mathfloor(x.e/logBase)-mathfloor(y.e/logBase)),yL=yd.length,xL=xd.length,qd=(q=new Ctor(sign)).d=[],i=0;yd[i]==(xd[i]||0);i++);if(yd[i]>(xd[i]||0)&&e--,null==pr?(sd=pr=Ctor.precision,rm=Ctor.rounding):sd=dp?pr+(x.e-y.e)+1:pr,sd<0)qd.push(1),more=!0;else{if(sd=sd/logBase+2|0,i=0,1==yL){for(k=0,yd=yd[0],sd++;(i1&&(yd=multiplyInteger(yd,k,base),xd=multiplyInteger(xd,k,base),yL=yd.length,xL=xd.length),xi=yL,remL=(rem=xd.slice(0,yL)).length;remL=base/2&&++yd0;do{k=0,(cmp=compare(yd,rem,yL,remL))<0?(rem0=rem[0],yL!=remL&&(rem0=rem0*base+(rem[1]||0)),(k=rem0/yd0|0)>1?(k>=base&&(k=base-1),1==(cmp=compare(prod=multiplyInteger(yd,k,base),rem,prodL=prod.length,remL=rem.length))&&(k--,subtract(prod,yL=10;k/=10)i++;q.e=i+e*logBase-1,finalise(q,dp?pr+q.e+1:pr,rm,more)}return q}}();function finalise(x,sd,rm,isTruncated){var digits,i,j,k,rd,roundUp,w,xd,xdi,Ctor=x.constructor;out:if(null!=sd){if(!(xd=x.d))return x;for(digits=1,k=xd[0];k>=10;k/=10)digits++;if((i=sd-digits)<0)i+=LOG_BASE,j=sd,rd=(w=xd[xdi=0])/mathpow(10,digits-j-1)%10|0;else if((xdi=Math.ceil((i+1)/LOG_BASE))>=(k=xd.length)){if(!isTruncated)break out;for(;k++<=xdi;)xd.push(0);w=rd=0,digits=1,j=(i%=LOG_BASE)-LOG_BASE+1}else{for(w=k=xd[xdi],digits=1;k>=10;k/=10)digits++;rd=(j=(i%=LOG_BASE)-LOG_BASE+digits)<0?0:w/mathpow(10,digits-j-1)%10|0}if(isTruncated=isTruncated||sd<0||void 0!==xd[xdi+1]||(j<0?w:w%mathpow(10,digits-j-1)),roundUp=rm<4?(rd||isTruncated)&&(0==rm||rm==(x.s<0?3:2)):rd>5||5==rd&&(4==rm||isTruncated||6==rm&&(i>0?j>0?w/mathpow(10,digits-j):0:xd[xdi-1])%10&1||rm==(x.s<0?8:7)),sd<1||!xd[0])return xd.length=0,roundUp?(sd-=x.e+1,xd[0]=mathpow(10,(LOG_BASE-sd%LOG_BASE)%LOG_BASE),x.e=-sd||0):xd[0]=x.e=0,x;if(0==i?(xd.length=xdi,k=1,xdi--):(xd.length=xdi+1,k=mathpow(10,LOG_BASE-i),xd[xdi]=j>0?(w/mathpow(10,digits-j)%mathpow(10,j)|0)*k:0),roundUp)for(;;){if(0==xdi){for(i=1,j=xd[0];j>=10;j/=10)i++;for(j=xd[0]+=k,k=1;j>=10;j/=10)k++;i!=k&&(x.e++,xd[0]==BASE&&(xd[0]=1));break}if(xd[xdi]+=k,xd[xdi]!=BASE)break;xd[xdi--]=0,k=1}for(i=xd.length;0===xd[--i];)xd.pop()}return external&&(x.e>Ctor.maxE?(x.d=null,x.e=NaN):x.e0?str=str.charAt(0)+"."+str.slice(1)+getZeroString(k):len>1&&(str=str.charAt(0)+"."+str.slice(1)),str=str+(x.e<0?"e":"e+")+x.e):e<0?(str="0."+getZeroString(-e-1)+str,sd&&(k=sd-len)>0&&(str+=getZeroString(k))):e>=len?(str+=getZeroString(e+1-len),sd&&(k=sd-e-1)>0&&(str=str+"."+getZeroString(k))):((k=e+1)0&&(e+1===len&&(str+="."),str+=getZeroString(k))),str}function getBase10Exponent(digits,e){var w=digits[0];for(e*=LOG_BASE;w>=10;w/=10)e++;return e}function getLn10(Ctor,sd,pr){if(sd>LN10_PRECISION)throw external=!0,pr&&(Ctor.precision=pr),Error(precisionLimitExceeded);return finalise(new Ctor(LN10),sd,1,!0)}function getPi(Ctor,sd,rm){if(sd>PI_PRECISION)throw Error(precisionLimitExceeded);return finalise(new Ctor(PI),sd,rm,!0)}function getPrecision(digits){var w=digits.length-1,len=w*LOG_BASE+1;if(w=digits[w]){for(;w%10==0;w/=10)len--;for(w=digits[0];w>=10;w/=10)len++}return len}function getZeroString(k){for(var zs="";k--;)zs+="0";return zs}function intPow(Ctor,x,n,pr){var isTruncated,r=new Ctor(1),k=Math.ceil(pr/LOG_BASE+4);for(external=!1;;){if(n%2&&truncate((r=r.times(x)).d,k)&&(isTruncated=!0),0===(n=mathfloor(n/2))){n=r.d.length-1,isTruncated&&0===r.d[n]&&++r.d[n];break}truncate((x=x.times(x)).d,k)}return external=!0,r}function isOdd(n){return 1&n.d[n.d.length-1]}function maxOrMin(Ctor,args,ltgt){for(var y,x=new Ctor(args[0]),i=0;++i17)return new Ctor(x.d?x.d[0]?x.s<0?0:1/0:1:x.s?x.s<0?0:x:NaN);for(null==sd?(external=!1,wpr=pr):wpr=sd,t=new Ctor(.03125);x.e>-2;)x=x.times(t),k+=5;for(wpr+=guard=Math.log(mathpow(2,k))/Math.LN10*2+5|0,denominator=pow=sum=new Ctor(1),Ctor.precision=wpr;;){if(pow=finalise(pow.times(x),wpr,1),denominator=denominator.times(++i),digitsToString((t=sum.plus(divide(pow,denominator,wpr,1))).d).slice(0,wpr)===digitsToString(sum.d).slice(0,wpr)){for(j=k;j--;)sum=finalise(sum.times(sum),wpr,1);if(null!=sd)return Ctor.precision=pr,sum;if(!(rep<3&&checkRoundingDigits(sum.d,wpr-guard,rm,rep)))return finalise(sum,Ctor.precision=pr,rm,external=!0);Ctor.precision=wpr+=10,denominator=pow=t=new Ctor(1),i=0,rep++}sum=t}}function naturalLogarithm(y,sd){var c,c0,denominator,e,numerator,rep,sum,t,wpr,x1,x2,n=1,x=y,xd=x.d,Ctor=x.constructor,rm=Ctor.rounding,pr=Ctor.precision;if(x.s<0||!xd||!xd[0]||!x.e&&1==xd[0]&&1==xd.length)return new Ctor(xd&&!xd[0]?-1/0:1!=x.s?NaN:xd?0:x);if(null==sd?(external=!1,wpr=pr):wpr=sd,Ctor.precision=wpr+=10,c0=(c=digitsToString(xd)).charAt(0),!(Math.abs(e=x.e)<15e14))return t=getLn10(Ctor,wpr+2,pr).times(e+""),x=naturalLogarithm(new Ctor(c0+"."+c.slice(1)),wpr-10).plus(t),Ctor.precision=pr,null==sd?finalise(x,pr,rm,external=!0):x;for(;c0<7&&1!=c0||1==c0&&c.charAt(1)>3;)c0=(c=digitsToString((x=x.times(y)).d)).charAt(0),n++;for(e=x.e,c0>1?(x=new Ctor("0."+c),e++):x=new Ctor(c0+"."+c.slice(1)),x1=x,sum=numerator=x=divide(x.minus(1),x.plus(1),wpr,1),x2=finalise(x.times(x),wpr,1),denominator=3;;){if(numerator=finalise(numerator.times(x2),wpr,1),digitsToString((t=sum.plus(divide(numerator,new Ctor(denominator),wpr,1))).d).slice(0,wpr)===digitsToString(sum.d).slice(0,wpr)){if(sum=sum.times(2),0!==e&&(sum=sum.plus(getLn10(Ctor,wpr+2,pr).times(e+""))),sum=divide(sum,new Ctor(n),wpr,1),null!=sd)return Ctor.precision=pr,sum;if(!checkRoundingDigits(sum.d,wpr-10,rm,rep))return finalise(sum,Ctor.precision=pr,rm,external=!0);Ctor.precision=wpr+=10,t=numerator=x=divide(x1.minus(1),x1.plus(1),wpr,1),x2=finalise(x.times(x),wpr,1),denominator=rep=1}sum=t,denominator+=2}}function nonFiniteToString(x){return String(x.s*x.s/0)}function parseDecimal(x,str){var e,i,len;for((e=str.indexOf("."))>-1&&(str=str.replace(".","")),(i=str.search(/e/i))>0?(e<0&&(e=i),e+=+str.slice(i+1),str=str.substring(0,i)):e<0&&(e=str.length),i=0;48===str.charCodeAt(i);i++);for(len=str.length;48===str.charCodeAt(len-1);--len);if(str=str.slice(i,len)){if(len-=i,x.e=e=e-i-1,x.d=[],i=(e+1)%LOG_BASE,e<0&&(i+=LOG_BASE),ix.constructor.maxE?(x.d=null,x.e=NaN):x.e-1){if(str=str.replace(/(\d)_(?=\d)/g,"$1"),isDecimal.test(str))return parseDecimal(x,str)}else if("Infinity"===str||"NaN"===str)return+str||(x.s=NaN),x.e=NaN,x.d=null,x;if(isHex.test(str))base=16,str=str.toLowerCase();else if(isBinary.test(str))base=2;else{if(!isOctal.test(str))throw Error(invalidArgument+str);base=8}for((i=str.search(/p/i))>0?(p=+str.slice(i+1),str=str.substring(2,i)):str=str.slice(2),isFloat=(i=str.indexOf("."))>=0,Ctor=x.constructor,isFloat&&(i=(len=(str=str.replace(".","")).length)-i,divisor=intPow(Ctor,new Ctor(base),i,2*i)),i=xe=(xd=convertBase(str,base,BASE)).length-1;0===xd[i];--i)xd.pop();return i<0?new Ctor(0*x.s):(x.e=getBase10Exponent(xd,xe),x.d=xd,external=!1,isFloat&&(x=divide(x,divisor,4*len)),p&&(x=x.times(Math.abs(p)<54?mathpow(2,p):Decimal.pow(2,p))),external=!0,x)}function taylorSeries(Ctor,n,x,y,isHyperbolic){var j,t,u,x2,pr=Ctor.precision,k=Math.ceil(pr/LOG_BASE);for(external=!1,x2=x.times(x),u=new Ctor(y);;){if(t=divide(u.times(x2),new Ctor(n++*n++),pr,1),u=isHyperbolic?y.plus(t):y.minus(t),y=divide(t.times(x2),new Ctor(n++*n++),pr,1),void 0!==(t=u.plus(y)).d[k]){for(j=k;t.d[j]===u.d[j]&&j--;);if(-1==j)break}j=u,u=y,y=t,t=j}return external=!0,t.d.length=k+1,t}function tinyPow(b,e){for(var n=b;--e;)n*=b;return n}function toLessThanHalfPi(Ctor,x){var t,isNeg=x.s<0,pi=getPi(Ctor,Ctor.precision,1),halfPi=pi.times(.5);if((x=x.abs()).lte(halfPi))return quadrant=isNeg?4:1,x;if((t=x.divToInt(pi)).isZero())quadrant=isNeg?3:2;else{if((x=x.minus(t.times(pi))).lte(halfPi))return quadrant=isOdd(t)?isNeg?2:3:isNeg?4:1,x;quadrant=isOdd(t)?isNeg?1:4:isNeg?3:2}return x.minus(pi).abs()}function toStringBinary(x,baseOut,sd,rm){var base,e,i,k,len,roundUp,str,xd,y,Ctor=x.constructor,isExp=void 0!==sd;if(isExp?(checkInt32(sd,1,MAX_DIGITS),void 0===rm?rm=Ctor.rounding:checkInt32(rm,0,8)):(sd=Ctor.precision,rm=Ctor.rounding),x.isFinite()){for(isExp?(base=2,16==baseOut?sd=4*sd-3:8==baseOut&&(sd=3*sd-2)):base=baseOut,(i=(str=finiteToString(x)).indexOf("."))>=0&&(str=str.replace(".",""),(y=new Ctor(1)).e=str.length-i,y.d=convertBase(finiteToString(y),10,base),y.e=y.d.length),e=len=(xd=convertBase(str,10,base)).length;0==xd[--len];)xd.pop();if(xd[0]){if(i<0?e--:((x=new Ctor(x)).d=xd,x.e=e,xd=(x=divide(x,y,sd,rm,0,base)).d,e=x.e,roundUp=inexact),i=xd[sd],k=base/2,roundUp=roundUp||void 0!==xd[sd+1],roundUp=rm<4?(void 0!==i||roundUp)&&(0===rm||rm===(x.s<0?3:2)):i>k||i===k&&(4===rm||roundUp||6===rm&&1&xd[sd-1]||rm===(x.s<0?8:7)),xd.length=sd,roundUp)for(;++xd[--sd]>base-1;)xd[sd]=0,sd||(++e,xd.unshift(1));for(len=xd.length;!xd[len-1];--len);for(i=0,str="";i1)if(16==baseOut||8==baseOut){for(i=16==baseOut?4:3,--len;len%i;len++)str+="0";for(len=(xd=convertBase(str,base,baseOut)).length;!xd[len-1];--len);for(i=1,str="1.";ilen)for(e-=len;e--;)str+="0";else elen)return arr.length=len,!0}function abs(x){return new this(x).abs()}function acos(x){return new this(x).acos()}function acosh(x){return new this(x).acosh()}function add(x,y){return new this(x).plus(y)}function asin(x){return new this(x).asin()}function asinh(x){return new this(x).asinh()}function atan(x){return new this(x).atan()}function atanh(x){return new this(x).atanh()}function atan2(y,x){y=new this(y),x=new this(x);var r,pr=this.precision,rm=this.rounding,wpr=pr+4;return y.s&&x.s?y.d||x.d?!x.d||y.isZero()?(r=x.s<0?getPi(this,pr,rm):new this(0)).s=y.s:!y.d||x.isZero()?(r=getPi(this,wpr,1).times(.5)).s=y.s:x.s<0?(this.precision=wpr,this.rounding=1,r=this.atan(divide(y,x,wpr,1)),x=getPi(this,wpr,1),this.precision=pr,this.rounding=rm,r=y.s<0?r.minus(x):r.plus(x)):r=this.atan(divide(y,x,wpr,1)):(r=getPi(this,wpr,1).times(x.s>0?.25:.75)).s=y.s:r=new this(NaN),r}function cbrt(x){return new this(x).cbrt()}function ceil(x){return finalise(x=new this(x),x.e+1,2)}function clamp(x,min,max){return new this(x).clamp(min,max)}function config(obj){if(!obj||"object"!=typeof obj)throw Error(decimalError+"Object expected");var i,p,v,useDefaults=!0===obj.defaults,ps=["precision",1,MAX_DIGITS,"rounding",0,8,"toExpNeg",-EXP_LIMIT,0,"toExpPos",0,EXP_LIMIT,"maxE",0,EXP_LIMIT,"minE",-EXP_LIMIT,0,"modulo",0,9];for(i=0;i=ps[i+1]&&v<=ps[i+2]))throw Error(invalidArgument+p+": "+v);this[p]=v}if(p="crypto",useDefaults&&(this[p]=DEFAULTS[p]),void 0!==(v=obj[p])){if(!0!==v&&!1!==v&&0!==v&&1!==v)throw Error(invalidArgument+p+": "+v);if(v){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(cryptoUnavailable);this[p]=!0}else this[p]=!1}return this}function cos(x){return new this(x).cos()}function cosh(x){return new this(x).cosh()}function div(x,y){return new this(x).div(y)}function exp(x){return new this(x).exp()}function floor(x){return finalise(x=new this(x),x.e+1,3)}function hypot(){var i,n,t=new this(0);for(external=!1,i=0;i=429e7?d[i]=crypto.getRandomValues(new Uint32Array(1))[0]:rd[i++]=n%1e7;else{if(!crypto.randomBytes)throw Error(cryptoUnavailable);for(d=crypto.randomBytes(k*=4);i=214e7?crypto.randomBytes(4).copy(d,i):(rd.push(n%1e7),i+=4);i=k/4}else for(;i=10;n/=10)k++;kDecimal.maxE?(x.e=NaN,x.d=null):v.e=10;i/=10)e++;return void(external?e>Decimal.maxE?(x.e=NaN,x.d=null):e80*dim){minX=maxX=data[0],minY=maxY=data[1];for(var i=dim;imaxX&&(maxX=x),y>maxY&&(maxY=y);invSize=0!==(invSize=Math.max(maxX-minX,maxY-minY))?32767/invSize:0}return earcutLinked(outerNode,triangles,dim,minX,minY,invSize,0),triangles}function linkedList(data,start,end,dim,clockwise){var i,last;if(clockwise===signedArea(data,start,end,dim)>0)for(i=start;i=start;i-=dim)last=insertNode(i,data[i],data[i+1],last);return last&&equals(last,last.next)&&(removeNode(last),last=last.next),last}function filterPoints(start,end){if(!start)return start;end||(end=start);var again,p=start;do{if(again=!1,p.steiner||!equals(p,p.next)&&0!==area(p.prev,p,p.next))p=p.next;else{if(removeNode(p),(p=end=p.prev)===p.next)break;again=!0}}while(again||p!==end);return end}function earcutLinked(ear,triangles,dim,minX,minY,invSize,pass){if(ear){!pass&&invSize&&function indexCurve(start,minX,minY,invSize){var p=start;do{0===p.z&&(p.z=zOrder(p.x,p.y,minX,minY,invSize)),p.prevZ=p.prev,p.nextZ=p.next,p=p.next}while(p!==start);p.prevZ.nextZ=null,p.prevZ=null,function sortLinked(list){var i,p,q,e,tail,numMerges,pSize,qSize,inSize=1;do{for(p=list,list=null,tail=null,numMerges=0;p;){for(numMerges++,q=p,pSize=0,i=0;i0||qSize>0&&q;)0!==pSize&&(0===qSize||!q||p.z<=q.z)?(e=p,p=p.nextZ,pSize--):(e=q,q=q.nextZ,qSize--),tail?tail.nextZ=e:list=e,e.prevZ=tail,tail=e;p=q}tail.nextZ=null,inSize*=2}while(numMerges>1);return list}(p)}(ear,minX,minY,invSize);for(var prev,next,stop=ear;ear.prev!==ear.next;)if(prev=ear.prev,next=ear.next,invSize?isEarHashed(ear,minX,minY,invSize):isEar(ear))triangles.push(prev.i/dim|0),triangles.push(ear.i/dim|0),triangles.push(next.i/dim|0),removeNode(ear),ear=next.next,stop=next.next;else if((ear=next)===stop){pass?1===pass?earcutLinked(ear=cureLocalIntersections(filterPoints(ear),triangles,dim),triangles,dim,minX,minY,invSize,2):2===pass&&splitEarcut(ear,triangles,dim,minX,minY,invSize):earcutLinked(filterPoints(ear),triangles,dim,minX,minY,invSize,1);break}}}function isEar(ear){var a=ear.prev,b=ear,c=ear.next;if(area(a,b,c)>=0)return!1;for(var ax=a.x,bx=b.x,cx=c.x,ay=a.y,by=b.y,cy=c.y,x0=axbx?ax>cx?ax:cx:bx>cx?bx:cx,y1=ay>by?ay>cy?ay:cy:by>cy?by:cy,p=c.next;p!==a;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function isEarHashed(ear,minX,minY,invSize){var a=ear.prev,b=ear,c=ear.next;if(area(a,b,c)>=0)return!1;for(var ax=a.x,bx=b.x,cx=c.x,ay=a.y,by=b.y,cy=c.y,x0=axbx?ax>cx?ax:cx:bx>cx?bx:cx,y1=ay>by?ay>cy?ay:cy:by>cy?by:cy,minZ=zOrder(x0,y0,minX,minY,invSize),maxZ=zOrder(x1,y1,minX,minY,invSize),p=ear.prevZ,n=ear.nextZ;p&&p.z>=minZ&&n&&n.z<=maxZ;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&p!==a&&p!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,n.x>=x0&&n.x<=x1&&n.y>=y0&&n.y<=y1&&n!==a&&n!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,n.x,n.y)&&area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}for(;p&&p.z>=minZ;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&p!==a&&p!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;n&&n.z<=maxZ;){if(n.x>=x0&&n.x<=x1&&n.y>=y0&&n.y<=y1&&n!==a&&n!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,n.x,n.y)&&area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}return!0}function cureLocalIntersections(start,triangles,dim){var p=start;do{var a=p.prev,b=p.next.next;!equals(a,b)&&intersects(a,p,p.next,b)&&locallyInside(a,b)&&locallyInside(b,a)&&(triangles.push(a.i/dim|0),triangles.push(p.i/dim|0),triangles.push(b.i/dim|0),removeNode(p),removeNode(p.next),p=start=b),p=p.next}while(p!==start);return filterPoints(p)}function splitEarcut(start,triangles,dim,minX,minY,invSize){var a=start;do{for(var b=a.next.next;b!==a.prev;){if(a.i!==b.i&&isValidDiagonal(a,b)){var c=splitPolygon(a,b);return a=filterPoints(a,a.next),c=filterPoints(c,c.next),earcutLinked(a,triangles,dim,minX,minY,invSize,0),void earcutLinked(c,triangles,dim,minX,minY,invSize,0)}b=b.next}a=a.next}while(a!==start)}function compareX(a,b){return a.x-b.x}function eliminateHole(hole,outerNode){var bridge=function findHoleBridge(hole,outerNode){var m,p=outerNode,hx=hole.x,hy=hole.y,qx=-1/0;do{if(hy<=p.y&&hy>=p.next.y&&p.next.y!==p.y){var x=p.x+(hy-p.y)*(p.next.x-p.x)/(p.next.y-p.y);if(x<=hx&&x>qx&&(qx=x,m=p.x=p.x&&p.x>=mx&&hx!==p.x&&pointInTriangle(hym.x||p.x===m.x&§orContainsSector(m,p)))&&(m=p,tanMin=tan)),p=p.next}while(p!==stop);return m}(hole,outerNode);if(!bridge)return outerNode;var bridgeReverse=splitPolygon(bridge,hole);return filterPoints(bridgeReverse,bridgeReverse.next),filterPoints(bridge,bridge.next)}function sectorContainsSector(m,p){return area(m.prev,m,p.prev)<0&&area(p.next,m,m.next)<0}function zOrder(x,y,minX,minY,invSize){return(x=1431655765&((x=858993459&((x=252645135&((x=16711935&((x=(x-minX)*invSize|0)|x<<8))|x<<4))|x<<2))|x<<1))|(y=1431655765&((y=858993459&((y=252645135&((y=16711935&((y=(y-minY)*invSize|0)|y<<8))|y<<4))|y<<2))|y<<1))<<1}function getLeftmost(start){var p=start,leftmost=start;do{(p.x=(ax-px)*(cy-py)&&(ax-px)*(by-py)>=(bx-px)*(ay-py)&&(bx-px)*(cy-py)>=(cx-px)*(by-py)}function isValidDiagonal(a,b){return a.next.i!==b.i&&a.prev.i!==b.i&&!function intersectsPolygon(a,b){var p=a;do{if(p.i!==a.i&&p.next.i!==a.i&&p.i!==b.i&&p.next.i!==b.i&&intersects(p,p.next,a,b))return!0;p=p.next}while(p!==a);return!1}(a,b)&&(locallyInside(a,b)&&locallyInside(b,a)&&function middleInside(a,b){var p=a,inside=!1,px=(a.x+b.x)/2,py=(a.y+b.y)/2;do{p.y>py!=p.next.y>py&&p.next.y!==p.y&&px<(p.next.x-p.x)*(py-p.y)/(p.next.y-p.y)+p.x&&(inside=!inside),p=p.next}while(p!==a);return inside}(a,b)&&(area(a.prev,a,b.prev)||area(a,b.prev,b))||equals(a,b)&&area(a.prev,a,a.next)>0&&area(b.prev,b,b.next)>0)}function area(p,q,r){return(q.y-p.y)*(r.x-q.x)-(q.x-p.x)*(r.y-q.y)}function equals(p1,p2){return p1.x===p2.x&&p1.y===p2.y}function intersects(p1,q1,p2,q2){var o1=sign(area(p1,q1,p2)),o2=sign(area(p1,q1,q2)),o3=sign(area(p2,q2,p1)),o4=sign(area(p2,q2,q1));return o1!==o2&&o3!==o4||(!(0!==o1||!onSegment(p1,p2,q1))||(!(0!==o2||!onSegment(p1,q2,q1))||(!(0!==o3||!onSegment(p2,p1,q2))||!(0!==o4||!onSegment(p2,q1,q2)))))}function onSegment(p,q,r){return q.x<=Math.max(p.x,r.x)&&q.x>=Math.min(p.x,r.x)&&q.y<=Math.max(p.y,r.y)&&q.y>=Math.min(p.y,r.y)}function sign(num){return num>0?1:num<0?-1:0}function locallyInside(a,b){return area(a.prev,a,a.next)<0?area(a,b,a.next)>=0&&area(a,a.prev,b)>=0:area(a,b,a.prev)<0||area(a,a.next,b)<0}function splitPolygon(a,b){var a2=new Node(a.i,a.x,a.y),b2=new Node(b.i,b.x,b.y),an=a.next,bp=b.prev;return a.next=b,b.prev=a,a2.next=an,an.prev=a2,b2.next=a2,a2.prev=b2,bp.next=b2,b2.prev=bp,b2}function insertNode(i,x,y,last){var p=new Node(i,x,y);return last?(p.next=last.next,p.prev=last,last.next.prev=p,last.next=p):(p.prev=p,p.next=p),p}function removeNode(p){p.next.prev=p.prev,p.prev.next=p.next,p.prevZ&&(p.prevZ.nextZ=p.nextZ),p.nextZ&&(p.nextZ.prevZ=p.prevZ)}function Node(i,x,y){this.i=i,this.x=x,this.y=y,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function signedArea(data,start,end,dim){for(var sum=0,i=start,j=end-dim;i0&&(holeIndex+=data[i-1].length,result.holes.push(holeIndex))}return result}},"./node_modules/expression-eval/index.js":function(module,__unused_webpack_exports,__webpack_require__){const jsep=__webpack_require__("./node_modules/jsep/build/jsep.js"),binops={"||":function(a,b){return a||b},"&&":function(a,b){return a&&b},"|":function(a,b){return a|b},"^":function(a,b){return a^b},"&":function(a,b){return a&b},"==":function(a,b){return a==b},"!=":function(a,b){return a!=b},"===":function(a,b){return a===b},"!==":function(a,b){return a!==b},"<":function(a,b){return a":function(a,b){return a>b},"<=":function(a,b){return a<=b},">=":function(a,b){return a>=b},"<<":function(a,b){return a<>":function(a,b){return a>>b},">>>":function(a,b){return a>>>b},"+":function(a,b){return a+b},"-":function(a,b){return a-b},"*":function(a,b){return a*b},"/":function(a,b){return a/b},"%":function(a,b){return a%b}},unops={"-":function(a){return-a},"+":function(a){return+a},"~":function(a){return~a},"!":function(a){return!a}};function evaluateArray(list,context){return list.map((function(v){return evaluate(v,context)}))}async function evaluateArrayAsync(list,context){return await Promise.all(list.map((v=>evaluateAsync(v,context))))}function evaluateMember(node,context){const object=evaluate(node.object,context);return node.computed?[object,object[evaluate(node.property,context)]]:[object,object[node.property.name]]}async function evaluateMemberAsync(node,context){const object=await evaluateAsync(node.object,context);return node.computed?[object,object[await evaluateAsync(node.property,context)]]:[object,object[node.property.name]]}function evaluate(node,context){switch(node.type){case"ArrayExpression":return evaluateArray(node.elements,context);case"BinaryExpression":return binops[node.operator](evaluate(node.left,context),evaluate(node.right,context));case"CallExpression":let caller,fn,assign;if("MemberExpression"===node.callee.type?(assign=evaluateMember(node.callee,context),caller=assign[0],fn=assign[1]):fn=evaluate(node.callee,context),"function"!=typeof fn)return;return fn.apply(caller,evaluateArray(node.arguments,context));case"ConditionalExpression":return evaluate(node.test,context)?evaluate(node.consequent,context):evaluate(node.alternate,context);case"Identifier":return context[node.name];case"Literal":return node.value;case"LogicalExpression":return"||"===node.operator?evaluate(node.left,context)||evaluate(node.right,context):"&&"===node.operator?evaluate(node.left,context)&&evaluate(node.right,context):binops[node.operator](evaluate(node.left,context),evaluate(node.right,context));case"MemberExpression":return evaluateMember(node,context)[1];case"ThisExpression":return context;case"UnaryExpression":return unops[node.operator](evaluate(node.argument,context));default:return}}async function evaluateAsync(node,context){switch(node.type){case"ArrayExpression":return await evaluateArrayAsync(node.elements,context);case"BinaryExpression":{const[left,right]=await Promise.all([evaluateAsync(node.left,context),evaluateAsync(node.right,context)]);return binops[node.operator](left,right)}case"CallExpression":let caller,fn,assign;if("MemberExpression"===node.callee.type?(assign=await evaluateMemberAsync(node.callee,context),caller=assign[0],fn=assign[1]):fn=await evaluateAsync(node.callee,context),"function"!=typeof fn)return;return await fn.apply(caller,await evaluateArrayAsync(node.arguments,context));case"ConditionalExpression":return await evaluateAsync(node.test,context)?await evaluateAsync(node.consequent,context):await evaluateAsync(node.alternate,context);case"Identifier":return context[node.name];case"Literal":return node.value;case"LogicalExpression":{if("||"===node.operator)return await evaluateAsync(node.left,context)||await evaluateAsync(node.right,context);if("&&"===node.operator)return await evaluateAsync(node.left,context)&&await evaluateAsync(node.right,context);const[left,right]=await Promise.all([evaluateAsync(node.left,context),evaluateAsync(node.right,context)]);return binops[node.operator](left,right)}case"MemberExpression":return(await evaluateMemberAsync(node,context))[1];case"ThisExpression":return context;case"UnaryExpression":return unops[node.operator](await evaluateAsync(node.argument,context));default:return}}module.exports={parse:jsep,eval:evaluate,evalAsync:evaluateAsync,compile:function compile(expression){return evaluate.bind(null,jsep(expression))},compileAsync:function compileAsync(expression){return evaluateAsync.bind(null,jsep(expression))}}},"./node_modules/fast-xml-parser/src/fxp.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";const validator=__webpack_require__("./node_modules/fast-xml-parser/src/validator.js"),XMLParser=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),XMLBuilder=__webpack_require__("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");module.exports={XMLParser:XMLParser,XMLValidator:validator,XMLBuilder:XMLBuilder}},"./node_modules/fast-xml-parser/src/util.js":function(__unused_webpack_module,exports){"use strict";const nameStartChar=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",nameRegexp="["+nameStartChar+"]["+(nameStartChar+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*",regexName=new RegExp("^"+nameRegexp+"$");exports.isExist=function(v){return void 0!==v},exports.isEmptyObject=function(obj){return 0===Object.keys(obj).length},exports.merge=function(target,a,arrayMode){if(a){const keys=Object.keys(a),len=keys.length;for(let i=0;i5&&"xml"===tagname)return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(xmlData,i));if("?"==xmlData[i]&&">"==xmlData[i+1]){i++;break}}return i}function readCommentAndCDATA(xmlData,i){if(xmlData.length>i+5&&"-"===xmlData[i+1]&&"-"===xmlData[i+2]){for(i+=3;i"===xmlData[i+2]){i+=2;break}}else if(xmlData.length>i+8&&"D"===xmlData[i+1]&&"O"===xmlData[i+2]&&"C"===xmlData[i+3]&&"T"===xmlData[i+4]&&"Y"===xmlData[i+5]&&"P"===xmlData[i+6]&&"E"===xmlData[i+7]){let angleBracketsCount=1;for(i+=8;i"===xmlData[i]&&(angleBracketsCount--,0===angleBracketsCount))break}else if(xmlData.length>i+9&&"["===xmlData[i+1]&&"C"===xmlData[i+2]&&"D"===xmlData[i+3]&&"A"===xmlData[i+4]&&"T"===xmlData[i+5]&&"A"===xmlData[i+6]&&"["===xmlData[i+7])for(i+=8;i"===xmlData[i+2]){i+=2;break}return i}exports.validate=function(xmlData,options){options=Object.assign({},defaultOptions,options);const tags=[];let tagFound=!1,reachedRoot=!1;"\ufeff"===xmlData[0]&&(xmlData=xmlData.substr(1));for(let i=0;i"!==xmlData[i]&&" "!==xmlData[i]&&"\t"!==xmlData[i]&&"\n"!==xmlData[i]&&"\r"!==xmlData[i];i++)tagName+=xmlData[i];if(tagName=tagName.trim(),"/"===tagName[tagName.length-1]&&(tagName=tagName.substring(0,tagName.length-1),i--),tagname=tagName,!util.isName(tagname)){let msg;return msg=0===tagName.trim().length?"Invalid space after '<'.":"Tag '"+tagName+"' is an invalid name.",getErrorObject("InvalidTag",msg,getLineNumberForPosition(xmlData,i))}const result=readAttributeStr(xmlData,i);if(!1===result)return getErrorObject("InvalidAttr","Attributes for '"+tagName+"' have open quote.",getLineNumberForPosition(xmlData,i));let attrStr=result.value;if(i=result.index,"/"===attrStr[attrStr.length-1]){const attrStrStart=i-attrStr.length;attrStr=attrStr.substring(0,attrStr.length-1);const isValid=validateAttributeString(attrStr,options);if(!0!==isValid)return getErrorObject(isValid.err.code,isValid.err.msg,getLineNumberForPosition(xmlData,attrStrStart+isValid.err.line));tagFound=!0}else if(closingTag){if(!result.tagClosed)return getErrorObject("InvalidTag","Closing tag '"+tagName+"' doesn't have proper closing.",getLineNumberForPosition(xmlData,i));if(attrStr.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+tagName+"' can't have attributes or invalid starting.",getLineNumberForPosition(xmlData,tagStartPos));{const otg=tags.pop();if(tagName!==otg.tagName){let openPos=getLineNumberForPosition(xmlData,otg.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+otg.tagName+"' (opened in line "+openPos.line+", col "+openPos.col+") instead of closing tag '"+tagName+"'.",getLineNumberForPosition(xmlData,tagStartPos))}0==tags.length&&(reachedRoot=!0)}}else{const isValid=validateAttributeString(attrStr,options);if(!0!==isValid)return getErrorObject(isValid.err.code,isValid.err.msg,getLineNumberForPosition(xmlData,i-attrStr.length+isValid.err.line));if(!0===reachedRoot)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(xmlData,i));-1!==options.unpairedTags.indexOf(tagName)||tags.push({tagName:tagName,tagStartPos:tagStartPos}),tagFound=!0}for(i++;i0)||getErrorObject("InvalidXml","Invalid '"+JSON.stringify(tags.map((t=>t.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):getErrorObject("InvalidXml","Start tag expected.",1)};const doubleQuote='"',singleQuote="'";function readAttributeStr(xmlData,i){let attrStr="",startChar="",tagClosed=!1;for(;i"===xmlData[i]&&""===startChar){tagClosed=!0;break}attrStr+=xmlData[i]}return""===startChar&&{value:attrStr,index:i,tagClosed:tagClosed}}const validAttrStrRegxp=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(attrStr,options){const matches=util.getAllMatches(attrStr,validAttrStrRegxp),attrNames={};for(let i=0;i","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Builder(options){this.options=Object.assign({},defaultOptions,options),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=isAttribute),this.processTextOrObjNode=processTextOrObjNode,this.options.format?(this.indentate=indentate,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function processTextOrObjNode(object,key,level){const result=this.j2x(object,level+1);return void 0!==object[this.options.textNodeName]&&1===Object.keys(object).length?this.buildTextValNode(object[this.options.textNodeName],key,result.attrStr,level):this.buildObjectNode(result.val,key,result.attrStr,level)}function indentate(level){return this.options.indentBy.repeat(level)}function isAttribute(name){return!(!name.startsWith(this.options.attributeNamePrefix)||name===this.options.textNodeName)&&name.substr(this.attrPrefixLen)}Builder.prototype.build=function(jObj){return this.options.preserveOrder?buildFromOrderedJs(jObj,this.options):(Array.isArray(jObj)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(jObj={[this.options.arrayNodeName]:jObj}),this.j2x(jObj,0).val)},Builder.prototype.j2x=function(jObj,level){let attrStr="",val="";for(let key in jObj)if(Object.prototype.hasOwnProperty.call(jObj,key))if(void 0===jObj[key])this.isAttribute(key)&&(val+="");else if(null===jObj[key])this.isAttribute(key)?val+="":"?"===key[0]?val+=this.indentate(level)+"<"+key+"?"+this.tagEndChar:val+=this.indentate(level)+"<"+key+"/"+this.tagEndChar;else if(jObj[key]instanceof Date)val+=this.buildTextValNode(jObj[key],key,"",level);else if("object"!=typeof jObj[key]){const attr=this.isAttribute(key);if(attr)attrStr+=this.buildAttrPairStr(attr,""+jObj[key]);else if(key===this.options.textNodeName){let newval=this.options.tagValueProcessor(key,""+jObj[key]);val+=this.replaceEntitiesValue(newval)}else val+=this.buildTextValNode(jObj[key],key,"",level)}else if(Array.isArray(jObj[key])){const arrLen=jObj[key].length;let listTagVal="";for(let j=0;j"+val+tagEndExp}},Builder.prototype.closeTag=function(key){let closeTag="";return-1!==this.options.unpairedTags.indexOf(key)?this.options.suppressUnpairedNode||(closeTag="/"):closeTag=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&key===this.options.commentPropName)return this.indentate(level)+`\x3c!--${val}--\x3e`+this.newLine;if("?"===key[0])return this.indentate(level)+"<"+key+attrStr+"?"+this.tagEndChar;{let textValue=this.options.tagValueProcessor(key,val);return textValue=this.replaceEntitiesValue(textValue),""===textValue?this.indentate(level)+"<"+key+attrStr+this.closeTag(key)+this.tagEndChar:this.indentate(level)+"<"+key+attrStr+">"+textValue+"0&&this.options.processEntities)for(let i=0;i`,isPreviousElementTag=!1;continue}if(tagName===options.commentPropName){xmlStr+=indentation+`\x3c!--${tagObj[tagName][0][options.textNodeName]}--\x3e`,isPreviousElementTag=!0;continue}if("?"===tagName[0]){const attStr=attr_to_str(tagObj[":@"],options),tempInd="?xml"===tagName?"":indentation;let piTextNodeName=tagObj[tagName][0][options.textNodeName];piTextNodeName=0!==piTextNodeName.length?" "+piTextNodeName:"",xmlStr+=tempInd+`<${tagName}${piTextNodeName}${attStr}?>`,isPreviousElementTag=!0;continue}let newIdentation=indentation;""!==newIdentation&&(newIdentation+=options.indentBy);const tagStart=indentation+`<${tagName}${attr_to_str(tagObj[":@"],options)}`,tagValue=arrToStr(tagObj[tagName],options,newJPath,newIdentation);-1!==options.unpairedTags.indexOf(tagName)?options.suppressUnpairedNode?xmlStr+=tagStart+">":xmlStr+=tagStart+"/>":tagValue&&0!==tagValue.length||!options.suppressEmptyNode?tagValue&&tagValue.endsWith(">")?xmlStr+=tagStart+`>${tagValue}${indentation}`:(xmlStr+=tagStart+">",tagValue&&""!==indentation&&(tagValue.includes("/>")||tagValue.includes("`):xmlStr+=tagStart+"/>",isPreviousElementTag=!0}return xmlStr}function propName(obj){const keys=Object.keys(obj);for(let i=0;i0&&options.processEntities)for(let i=0;i0&&(indentation="\n"),arrToStr(jArray,options,"",indentation)}},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(module,__unused_webpack_exports,__webpack_require__){const util=__webpack_require__("./node_modules/fast-xml-parser/src/util.js");function readEntityExp(xmlData,i){let entityName="";for(;i"===xmlData[i]){if(comment?"-"===xmlData[i-1]&&"-"===xmlData[i-2]&&(comment=!1,angleBracketsCount--):angleBracketsCount--,0===angleBracketsCount)break}else"["===xmlData[i]?hasBody=!0:exp+=xmlData[i];else{if(hasBody&&isEntity(xmlData,i))i+=7,[entityName,val,i]=readEntityExp(xmlData,i+1),-1===val.indexOf("&")&&(entities[validateEntityName(entityName)]={regx:RegExp(`&${entityName};`,"g"),val:val});else if(hasBody&&isElement(xmlData,i))i+=8;else if(hasBody&&isAttlist(xmlData,i))i+=8;else if(hasBody&&isNotation(xmlData,i))i+=9;else{if(!isComment)throw new Error("Invalid DOCTYPE");comment=!0}angleBracketsCount++,exp=""}if(0!==angleBracketsCount)throw new Error("Unclosed DOCTYPE")}return{entities:entities,i:i}}},"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(__unused_webpack_module,exports){const defaultOptions={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(tagName,val){return val},attributeValueProcessor:function(attrName,val){return val},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(tagName,jPath,attrs){return tagName}};exports.buildOptions=function(options){return Object.assign({},defaultOptions,options)},exports.defaultOptions=defaultOptions},"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";const util=__webpack_require__("./node_modules/fast-xml-parser/src/util.js"),xmlNode=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"),readDocType=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"),toNumber=__webpack_require__("./node_modules/strnum/strnum.js");"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,util.nameRegexp);function addExternalEntities(externalEntities){const entKeys=Object.keys(externalEntities);for(let i=0;i0)){escapeEntities||(val=this.replaceEntitiesValue(val));const newval=this.options.tagValueProcessor(tagName,val,jPath,hasAttributes,isLeafNode);if(null==newval)return val;if(typeof newval!=typeof val||newval!==val)return newval;if(this.options.trimValues)return parseValue(val,this.options.parseTagValue,this.options.numberParseOptions);return val.trim()===val?parseValue(val,this.options.parseTagValue,this.options.numberParseOptions):val}}function resolveNameSpace(tagname){if(this.options.removeNSPrefix){const tags=tagname.split(":"),prefix="/"===tagname.charAt(0)?"/":"";if("xmlns"===tags[0])return"";2===tags.length&&(tagname=prefix+tags[1])}return tagname}const attrsRegx=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(attrStr,jPath,tagName){if(!this.options.ignoreAttributes&&"string"==typeof attrStr){const matches=util.getAllMatches(attrStr,attrsRegx),len=matches.length,attrs={};for(let i=0;i",i,"Closing Tag is not closed.");let tagName=xmlData.substring(i+2,closeIndex).trim();if(this.options.removeNSPrefix){const colonIndex=tagName.indexOf(":");-1!==colonIndex&&(tagName=tagName.substr(colonIndex+1))}this.options.transformTagName&&(tagName=this.options.transformTagName(tagName)),currentNode&&(textData=this.saveTextToParentTag(textData,currentNode,jPath));const lastTagName=jPath.substring(jPath.lastIndexOf(".")+1);if(tagName&&-1!==this.options.unpairedTags.indexOf(tagName))throw new Error(`Unpaired tag can not be used as closing tag: `);let propIndex=0;lastTagName&&-1!==this.options.unpairedTags.indexOf(lastTagName)?(propIndex=jPath.lastIndexOf(".",jPath.lastIndexOf(".")-1),this.tagsNodeStack.pop()):propIndex=jPath.lastIndexOf("."),jPath=jPath.substring(0,propIndex),currentNode=this.tagsNodeStack.pop(),textData="",i=closeIndex}else if("?"===xmlData[i+1]){let tagData=readTagExp(xmlData,i,!1,"?>");if(!tagData)throw new Error("Pi Tag is not closed.");if(textData=this.saveTextToParentTag(textData,currentNode,jPath),this.options.ignoreDeclaration&&"?xml"===tagData.tagName||this.options.ignorePiTags);else{const childNode=new xmlNode(tagData.tagName);childNode.add(this.options.textNodeName,""),tagData.tagName!==tagData.tagExp&&tagData.attrExpPresent&&(childNode[":@"]=this.buildAttributesMap(tagData.tagExp,jPath,tagData.tagName)),this.addChild(currentNode,childNode,jPath)}i=tagData.closeIndex+1}else if("!--"===xmlData.substr(i+1,3)){const endIndex=findClosingIndex(xmlData,"--\x3e",i+4,"Comment is not closed.");if(this.options.commentPropName){const comment=xmlData.substring(i+4,endIndex-2);textData=this.saveTextToParentTag(textData,currentNode,jPath),currentNode.add(this.options.commentPropName,[{[this.options.textNodeName]:comment}])}i=endIndex}else if("!D"===xmlData.substr(i+1,2)){const result=readDocType(xmlData,i);this.docTypeEntities=result.entities,i=result.i}else if("!["===xmlData.substr(i+1,2)){const closeIndex=findClosingIndex(xmlData,"]]>",i,"CDATA is not closed.")-2,tagExp=xmlData.substring(i+9,closeIndex);if(textData=this.saveTextToParentTag(textData,currentNode,jPath),this.options.cdataPropName)currentNode.add(this.options.cdataPropName,[{[this.options.textNodeName]:tagExp}]);else{let val=this.parseTextData(tagExp,currentNode.tagname,jPath,!0,!1,!0);null==val&&(val=""),currentNode.add(this.options.textNodeName,val)}i=closeIndex+2}else{let result=readTagExp(xmlData,i,this.options.removeNSPrefix),tagName=result.tagName;const rawTagName=result.rawTagName;let tagExp=result.tagExp,attrExpPresent=result.attrExpPresent,closeIndex=result.closeIndex;this.options.transformTagName&&(tagName=this.options.transformTagName(tagName)),currentNode&&textData&&"!xml"!==currentNode.tagname&&(textData=this.saveTextToParentTag(textData,currentNode,jPath,!1));const lastTag=currentNode;if(lastTag&&-1!==this.options.unpairedTags.indexOf(lastTag.tagname)&&(currentNode=this.tagsNodeStack.pop(),jPath=jPath.substring(0,jPath.lastIndexOf("."))),tagName!==xmlObj.tagname&&(jPath+=jPath?"."+tagName:tagName),this.isItStopNode(this.options.stopNodes,jPath,tagName)){let tagContent="";if(tagExp.length>0&&tagExp.lastIndexOf("/")===tagExp.length-1)i=result.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(tagName))i=result.closeIndex;else{const result=this.readStopNodeData(xmlData,rawTagName,closeIndex+1);if(!result)throw new Error(`Unexpected end of ${rawTagName}`);i=result.i,tagContent=result.tagContent}const childNode=new xmlNode(tagName);tagName!==tagExp&&attrExpPresent&&(childNode[":@"]=this.buildAttributesMap(tagExp,jPath,tagName)),tagContent&&(tagContent=this.parseTextData(tagContent,tagName,jPath,!0,attrExpPresent,!0,!0)),jPath=jPath.substr(0,jPath.lastIndexOf(".")),childNode.add(this.options.textNodeName,tagContent),this.addChild(currentNode,childNode,jPath)}else{if(tagExp.length>0&&tagExp.lastIndexOf("/")===tagExp.length-1){"/"===tagName[tagName.length-1]?(tagName=tagName.substr(0,tagName.length-1),jPath=jPath.substr(0,jPath.length-1),tagExp=tagName):tagExp=tagExp.substr(0,tagExp.length-1),this.options.transformTagName&&(tagName=this.options.transformTagName(tagName));const childNode=new xmlNode(tagName);tagName!==tagExp&&attrExpPresent&&(childNode[":@"]=this.buildAttributesMap(tagExp,jPath,tagName)),this.addChild(currentNode,childNode,jPath),jPath=jPath.substr(0,jPath.lastIndexOf("."))}else{const childNode=new xmlNode(tagName);this.tagsNodeStack.push(currentNode),tagName!==tagExp&&attrExpPresent&&(childNode[":@"]=this.buildAttributesMap(tagExp,jPath,tagName)),this.addChild(currentNode,childNode,jPath),currentNode=childNode}textData="",i=closeIndex}}else textData+=xmlData[i]}return xmlObj.child};function addChild(currentNode,childNode,jPath){const result=this.options.updateTag(childNode.tagname,jPath,childNode[":@"]);!1===result||("string"==typeof result?(childNode.tagname=result,currentNode.addChild(childNode)):currentNode.addChild(childNode))}const replaceEntitiesValue=function(val){if(this.options.processEntities){for(let entityName in this.docTypeEntities){const entity=this.docTypeEntities[entityName];val=val.replace(entity.regx,entity.val)}for(let entityName in this.lastEntities){const entity=this.lastEntities[entityName];val=val.replace(entity.regex,entity.val)}if(this.options.htmlEntities)for(let entityName in this.htmlEntities){const entity=this.htmlEntities[entityName];val=val.replace(entity.regex,entity.val)}val=val.replace(this.ampEntity.regex,this.ampEntity.val)}return val};function saveTextToParentTag(textData,currentNode,jPath,isLeafNode){return textData&&(void 0===isLeafNode&&(isLeafNode=0===Object.keys(currentNode.child).length),void 0!==(textData=this.parseTextData(textData,currentNode.tagname,jPath,!1,!!currentNode[":@"]&&0!==Object.keys(currentNode[":@"]).length,isLeafNode))&&""!==textData&¤tNode.add(this.options.textNodeName,textData),textData=""),textData}function isItStopNode(stopNodes,jPath,currentTagName){const allNodesExp="*."+currentTagName;for(const stopNodePath in stopNodes){const stopNodeExp=stopNodes[stopNodePath];if(allNodesExp===stopNodeExp||jPath===stopNodeExp)return!0}return!1}function findClosingIndex(xmlData,str,i,errMsg){const closingIndex=xmlData.indexOf(str,i);if(-1===closingIndex)throw new Error(errMsg);return closingIndex+str.length-1}function readTagExp(xmlData,i,removeNSPrefix,closingChar=">"){const result=function tagExpWithClosingIndex(xmlData,i,closingChar=">"){let attrBoundary,tagExp="";for(let index=i;index",i,`${tagName} is not closed`);if(xmlData.substring(i+2,closeIndex).trim()===tagName&&(openTagCount--,0===openTagCount))return{tagContent:xmlData.substring(startIndex,i),i:closeIndex};i=closeIndex}else if("?"===xmlData[i+1]){i=findClosingIndex(xmlData,"?>",i+1,"StopNode is not closed.")}else if("!--"===xmlData.substr(i+1,3)){i=findClosingIndex(xmlData,"--\x3e",i+3,"StopNode is not closed.")}else if("!["===xmlData.substr(i+1,2)){i=findClosingIndex(xmlData,"]]>",i,"StopNode is not closed.")-2}else{const tagData=readTagExp(xmlData,i,">");if(tagData){(tagData&&tagData.tagName)===tagName&&"/"!==tagData.tagExp[tagData.tagExp.length-1]&&openTagCount++,i=tagData.closeIndex}}}function parseValue(val,shouldParse,options){if(shouldParse&&"string"==typeof val){const newval=val.trim();return"true"===newval||"false"!==newval&&toNumber(val,options)}return util.isExist(val)?val:""}module.exports=class OrderedObjParser{constructor(options){this.options=options,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"Â¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=addExternalEntities,this.parseXml=parseXml,this.parseTextData=parseTextData,this.resolveNameSpace=resolveNameSpace,this.buildAttributesMap=buildAttributesMap,this.isItStopNode=isItStopNode,this.replaceEntitiesValue=replaceEntitiesValue,this.readStopNodeData=readStopNodeData,this.saveTextToParentTag=saveTextToParentTag,this.addChild=addChild}}},"./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js":function(module,__unused_webpack_exports,__webpack_require__){const{buildOptions:buildOptions}=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"),OrderedObjParser=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"),{prettify:prettify}=__webpack_require__("./node_modules/fast-xml-parser/src/xmlparser/node2json.js"),validator=__webpack_require__("./node_modules/fast-xml-parser/src/validator.js");module.exports=class XMLParser{constructor(options){this.externalEntities={},this.options=buildOptions(options)}parse(xmlData,validationOption){if("string"==typeof xmlData);else{if(!xmlData.toString)throw new Error("XML data is accepted in String or Bytes[] form.");xmlData=xmlData.toString()}if(validationOption){!0===validationOption&&(validationOption={});const result=validator.validate(xmlData,validationOption);if(!0!==result)throw Error(`${result.err.msg}:${result.err.line}:${result.err.col}`)}const orderedObjParser=new OrderedObjParser(this.options);orderedObjParser.addExternalEntities(this.externalEntities);const orderedResult=orderedObjParser.parseXml(xmlData);return this.options.preserveOrder||void 0===orderedResult?orderedResult:prettify(orderedResult,this.options)}addEntity(key,value){if(-1!==value.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==key.indexOf("&")||-1!==key.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===value)throw new Error("An entity with value '&' is not permitted");this.externalEntities[key]=value}}},"./node_modules/fast-xml-parser/src/xmlparser/node2json.js":function(__unused_webpack_module,exports){"use strict";function compress(arr,options,jPath){let text;const compressedObj={};for(let i=0;i0&&(compressedObj[options.textNodeName]=text):void 0!==text&&(compressedObj[options.textNodeName]=text),compressedObj}function propName(obj){const keys=Object.keys(obj);for(let i=0;i0?this.child.push({[node.tagname]:node.child,":@":node[":@"]}):this.child.push({[node.tagname]:node.child})}}},"./node_modules/fraction.js/fraction.js":function(module){!function(root){"use strict";var P={s:1,n:0,d:1};function assign(n,s){if(isNaN(n=parseInt(n,10)))throw InvalidParameter();return n*s}function newFraction(n,d){if(0===d)throw DivisionByZero();var f=Object.create(Fraction.prototype);f.s=n<0?-1:1;var a=gcd(n=n<0?-n:n,d);return f.n=n/a,f.d=d/a,f}function factorize(num){for(var factors={},n=num,i=2,s=4;s<=n;){for(;n%i==0;)n/=i,factors[i]=(factors[i]||0)+1;s+=1+2*i++}return n!==num?n>1&&(factors[n]=(factors[n]||0)+1):factors[num]=(factors[num]||0)+1,factors}var parse=function(p1,p2){var M,n=0,d=1,s=1,v=0,w=0,x=0,y=1,z=1,A=0,B=1,C=1,D=1,N=1e7;if(null==p1);else if(void 0!==p2){if(s=(n=p1)*(d=p2),n%1!=0||d%1!=0)throw NonIntegerParameter()}else switch(typeof p1){case"object":if("d"in p1&&"n"in p1)n=p1.n,d=p1.d,"s"in p1&&(n*=p1.s);else{if(!(0 in p1))throw InvalidParameter();n=p1[0],1 in p1&&(d=p1[1])}s=n*d;break;case"number":if(p1<0&&(s=p1,p1=-p1),p1%1==0)n=p1;else if(p1>0){for(p1>=1&&(p1/=z=Math.pow(10,Math.floor(1+Math.log(p1)/Math.LN10)));B<=N&&D<=N;){if(p1===(M=(A+C)/(B+D))){B+D<=N?(n=A+C,d=B+D):D>B?(n=C,d=D):(n=A,d=B);break}p1>M?(A+=C,B+=D):(C+=A,D+=B),B>N?(n=C,d=D):(n=A,d=B)}n*=z}else(isNaN(p1)||isNaN(p2))&&(d=n=NaN);break;case"string":if(null===(B=p1.match(/\d+|./g)))throw InvalidParameter();if("-"===B[A]?(s=-1,A++):"+"===B[A]&&A++,B.length===A+1?w=assign(B[A++],s):"."===B[A+1]||"."===B[A]?("."!==B[A]&&(v=assign(B[A++],s)),(++A+1===B.length||"("===B[A+1]&&")"===B[A+3]||"'"===B[A+1]&&"'"===B[A+3])&&(w=assign(B[A],s),y=Math.pow(10,B[A].length),A++),("("===B[A]&&")"===B[A+2]||"'"===B[A]&&"'"===B[A+2])&&(x=assign(B[A+1],s),z=Math.pow(10,B[A+1].length)-1,A+=3)):"/"===B[A+1]||":"===B[A+1]?(w=assign(B[A],s),y=assign(B[A+2],1),A+=3):"/"===B[A+3]&&" "===B[A+1]&&(v=assign(B[A],s),w=assign(B[A+2],s),y=assign(B[A+4],1),A+=5),B.length<=A){s=n=x+(d=y*z)*v+z*w;break}default:throw InvalidParameter()}if(0===d)throw DivisionByZero();P.s=s<0?-1:1,P.n=Math.abs(n),P.d=Math.abs(d)};function gcd(a,b){if(!a)return b;if(!b)return a;for(;;){if(!(a%=b))return b;if(!(b%=a))return a}}function Fraction(a,b){if(parse(a,b),!(this instanceof Fraction))return newFraction(P.s*P.n,P.d);a=gcd(P.d,P.n),this.s=P.s,this.n=P.n/a,this.d=P.d/a}var DivisionByZero=function(){return new Error("Division by Zero")},InvalidParameter=function(){return new Error("Invalid argument")},NonIntegerParameter=function(){return new Error("Parameters must be integer")};Fraction.prototype={s:1,n:0,d:1,abs:function(){return newFraction(this.n,this.d)},neg:function(){return newFraction(-this.s*this.n,this.d)},add:function(a,b){return parse(a,b),newFraction(this.s*this.n*P.d+P.s*this.d*P.n,this.d*P.d)},sub:function(a,b){return parse(a,b),newFraction(this.s*this.n*P.d-P.s*this.d*P.n,this.d*P.d)},mul:function(a,b){return parse(a,b),newFraction(this.s*P.s*this.n*P.n,this.d*P.d)},div:function(a,b){return parse(a,b),newFraction(this.s*P.s*this.n*P.d,this.d*P.n)},clone:function(){return newFraction(this.s*this.n,this.d)},mod:function(a,b){if(isNaN(this.n)||isNaN(this.d))return new Fraction(NaN);if(void 0===a)return newFraction(this.s*this.n%this.d,1);if(parse(a,b),0===P.n&&0===this.d)throw DivisionByZero();return newFraction(this.s*(P.d*this.n)%(P.n*this.d),P.d*this.d)},gcd:function(a,b){return parse(a,b),newFraction(gcd(P.n,this.n)*gcd(P.d,this.d),P.d*this.d)},lcm:function(a,b){return parse(a,b),0===P.n&&0===this.n?newFraction(0,1):newFraction(P.n*this.n,gcd(P.n,this.n)*gcd(P.d,this.d))},ceil:function(places){return places=Math.pow(10,places||0),isNaN(this.n)||isNaN(this.d)?new Fraction(NaN):newFraction(Math.ceil(places*this.s*this.n/this.d),places)},floor:function(places){return places=Math.pow(10,places||0),isNaN(this.n)||isNaN(this.d)?new Fraction(NaN):newFraction(Math.floor(places*this.s*this.n/this.d),places)},round:function(places){return places=Math.pow(10,places||0),isNaN(this.n)||isNaN(this.d)?new Fraction(NaN):newFraction(Math.round(places*this.s*this.n/this.d),places)},inverse:function(){return newFraction(this.s*this.d,this.n)},pow:function(a,b){if(parse(a,b),1===P.d)return P.s<0?newFraction(Math.pow(this.s*this.d,P.n),Math.pow(this.n,P.n)):newFraction(Math.pow(this.s*this.n,P.n),Math.pow(this.d,P.n));if(this.s<0)return null;var N=factorize(this.n),D=factorize(this.d),n=1,d=1;for(var k in N)if("1"!==k){if("0"===k){n=0;break}if(N[k]*=P.n,N[k]%P.d!=0)return null;N[k]/=P.d,n*=Math.pow(k,N[k])}for(var k in D)if("1"!==k){if(D[k]*=P.n,D[k]%P.d!=0)return null;D[k]/=P.d,d*=Math.pow(k,D[k])}return P.s<0?newFraction(d,n):newFraction(n,d)},equals:function(a,b){return parse(a,b),this.s*this.n*P.d==P.s*P.n*this.d},compare:function(a,b){parse(a,b);var t=this.s*this.n*P.d-P.s*P.n*this.d;return(0=0;k--)s=s.inverse().add(cont[k]);if(Math.abs(s.sub(thisABS).valueOf())0&&(str+=whole,str+=" ",n%=d),str+=n,str+="/",str+=d),str},toLatex:function(excludeWhole){var whole,str="",n=this.n,d=this.d;return this.s<0&&(str+="-"),1===d?str+=n:(excludeWhole&&(whole=Math.floor(n/d))>0&&(str+=whole,n%=d),str+="\\frac{",str+=n,str+="}{",str+=d,str+="}"),str},toContinued:function(){var t,a=this.n,b=this.d,res=[];if(isNaN(a)||isNaN(b))return res;do{res.push(Math.floor(a/b)),t=a%b,a=b,b=t}while(1!==a);return res},toString:function(dec){var N=this.n,D=this.d;if(isNaN(N)||isNaN(D))return"NaN";dec=dec||15;var cycLen=function cycleLen(n,d){for(;d%2==0;d/=2);for(;d%5==0;d/=5);if(1===d)return 0;for(var rem=10%d,t=1;1!==rem;t++)if(rem=10*rem%d,t>2e3)return 0;return t}(0,D),cycOff=function cycleStart(n,d,len){for(var rem1=1,rem2=function modpow(b,e,m){for(var r=1;e>0;b=b*b%m,e>>=1)1&e&&(r=r*b%m);return r}(10,len,d),t=0;t<300;t++){if(rem1===rem2)return t;rem1=10*rem1%d,rem2=10*rem2%d}return 0}(0,D,cycLen),str=this.s<0?"-":"";if(str+=N/D|0,N%=D,(N*=10)&&(str+="."),cycLen){for(var i=cycOff;i--;)str+=N/D|0,N%=D,N*=10;str+="(";for(i=cycLen;i--;)str+=N/D|0,N%=D,N*=10;str+=")"}else for(i=dec;N&&i--;)str+=N/D|0,N%=D,N*=10;return str}},Object.defineProperty(Fraction,"__esModule",{value:!0}),Fraction.default=Fraction,Fraction.Fraction=Fraction,module.exports=Fraction}()},"./node_modules/geojson-rbush/index.js":function(module,__unused_webpack_exports,__webpack_require__){var rbush=__webpack_require__("./node_modules/rbush/rbush.min.js"),helpers=__webpack_require__("./node_modules/@turf/helpers/dist/js/index.js"),meta=__webpack_require__("./node_modules/@turf/meta/dist/js/index.js"),turfBBox=__webpack_require__("./node_modules/@turf/bbox/dist/js/index.js").default,featureEach=meta.featureEach,featureCollection=(meta.coordEach,helpers.polygon,helpers.featureCollection);function geojsonRbush(maxEntries){var tree=new rbush(maxEntries);return tree.insert=function(feature){if("Feature"!==feature.type)throw new Error("invalid feature");return feature.bbox=feature.bbox?feature.bbox:turfBBox(feature),rbush.prototype.insert.call(this,feature)},tree.load=function(features){var load=[];return Array.isArray(features)?features.forEach((function(feature){if("Feature"!==feature.type)throw new Error("invalid features");feature.bbox=feature.bbox?feature.bbox:turfBBox(feature),load.push(feature)})):featureEach(features,(function(feature){if("Feature"!==feature.type)throw new Error("invalid features");feature.bbox=feature.bbox?feature.bbox:turfBBox(feature),load.push(feature)})),rbush.prototype.load.call(this,load)},tree.remove=function(feature,equals){if("Feature"!==feature.type)throw new Error("invalid feature");return feature.bbox=feature.bbox?feature.bbox:turfBBox(feature),rbush.prototype.remove.call(this,feature,equals)},tree.clear=function(){return rbush.prototype.clear.call(this)},tree.search=function(geojson){var features=rbush.prototype.search.call(this,this.toBBox(geojson));return featureCollection(features)},tree.collides=function(geojson){return rbush.prototype.collides.call(this,this.toBBox(geojson))},tree.all=function(){var features=rbush.prototype.all.call(this);return featureCollection(features)},tree.toJSON=function(){return rbush.prototype.toJSON.call(this)},tree.fromJSON=function(json){return rbush.prototype.fromJSON.call(this,json)},tree.toBBox=function(geojson){var bbox;if(geojson.bbox)bbox=geojson.bbox;else if(Array.isArray(geojson)&&4===geojson.length)bbox=geojson;else if(Array.isArray(geojson)&&6===geojson.length)bbox=[geojson[0],geojson[1],geojson[3],geojson[4]];else if("Feature"===geojson.type)bbox=turfBBox(geojson);else{if("FeatureCollection"!==geojson.type)throw new Error("invalid geojson");bbox=turfBBox(geojson)}return{minX:bbox[0],minY:bbox[1],maxX:bbox[2],maxY:bbox[3]}},tree}module.exports=geojsonRbush,module.exports.default=geojsonRbush},"./node_modules/gl-matrix/esm/mat3.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{GH:function(){return determinant},Iu:function(){return translate},Jp:function(){return multiply},U1:function(){return rotate},U_:function(){return invert},Ue:function(){return create},bA:function(){return scale},en:function(){return fromQuat},p4:function(){return transpose}});var _common_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/gl-matrix/esm/common.js");function create(){var out=new _common_js__WEBPACK_IMPORTED_MODULE_0__.WT(9);return _common_js__WEBPACK_IMPORTED_MODULE_0__.WT!=Float32Array&&(out[1]=0,out[2]=0,out[3]=0,out[5]=0,out[6]=0,out[7]=0),out[0]=1,out[4]=1,out[8]=1,out}function transpose(out,a){if(out===a){var a01=a[1],a02=a[2],a12=a[5];out[1]=a[3],out[2]=a[6],out[3]=a01,out[5]=a[7],out[6]=a02,out[7]=a12}else out[0]=a[0],out[1]=a[3],out[2]=a[6],out[3]=a[1],out[4]=a[4],out[5]=a[7],out[6]=a[2],out[7]=a[5],out[8]=a[8];return out}function invert(out,a){var a00=a[0],a01=a[1],a02=a[2],a10=a[3],a11=a[4],a12=a[5],a20=a[6],a21=a[7],a22=a[8],b01=a22*a11-a12*a21,b11=-a22*a10+a12*a20,b21=a21*a10-a11*a20,det=a00*b01+a01*b11+a02*b21;return det?(det=1/det,out[0]=b01*det,out[1]=(-a22*a01+a02*a21)*det,out[2]=(a12*a01-a02*a11)*det,out[3]=b11*det,out[4]=(a22*a00-a02*a20)*det,out[5]=(-a12*a00+a02*a10)*det,out[6]=b21*det,out[7]=(-a21*a00+a01*a20)*det,out[8]=(a11*a00-a01*a10)*det,out):null}function determinant(a){var a00=a[0],a01=a[1],a02=a[2],a10=a[3],a11=a[4],a12=a[5],a20=a[6],a21=a[7],a22=a[8];return a00*(a22*a11-a12*a21)+a01*(-a22*a10+a12*a20)+a02*(a21*a10-a11*a20)}function multiply(out,a,b){var a00=a[0],a01=a[1],a02=a[2],a10=a[3],a11=a[4],a12=a[5],a20=a[6],a21=a[7],a22=a[8],b00=b[0],b01=b[1],b02=b[2],b10=b[3],b11=b[4],b12=b[5],b20=b[6],b21=b[7],b22=b[8];return out[0]=b00*a00+b01*a10+b02*a20,out[1]=b00*a01+b01*a11+b02*a21,out[2]=b00*a02+b01*a12+b02*a22,out[3]=b10*a00+b11*a10+b12*a20,out[4]=b10*a01+b11*a11+b12*a21,out[5]=b10*a02+b11*a12+b12*a22,out[6]=b20*a00+b21*a10+b22*a20,out[7]=b20*a01+b21*a11+b22*a21,out[8]=b20*a02+b21*a12+b22*a22,out}function translate(out,a,v){var a00=a[0],a01=a[1],a02=a[2],a10=a[3],a11=a[4],a12=a[5],a20=a[6],a21=a[7],a22=a[8],x=v[0],y=v[1];return out[0]=a00,out[1]=a01,out[2]=a02,out[3]=a10,out[4]=a11,out[5]=a12,out[6]=x*a00+y*a10+a20,out[7]=x*a01+y*a11+a21,out[8]=x*a02+y*a12+a22,out}function rotate(out,a,rad){var a00=a[0],a01=a[1],a02=a[2],a10=a[3],a11=a[4],a12=a[5],a20=a[6],a21=a[7],a22=a[8],s=Math.sin(rad),c=Math.cos(rad);return out[0]=c*a00+s*a10,out[1]=c*a01+s*a11,out[2]=c*a02+s*a12,out[3]=c*a10-s*a00,out[4]=c*a11-s*a01,out[5]=c*a12-s*a02,out[6]=a20,out[7]=a21,out[8]=a22,out}function scale(out,a,v){var x=v[0],y=v[1];return out[0]=x*a[0],out[1]=x*a[1],out[2]=x*a[2],out[3]=y*a[3],out[4]=y*a[4],out[5]=y*a[5],out[6]=a[6],out[7]=a[7],out[8]=a[8],out}function fromQuat(out,q){var x=q[0],y=q[1],z=q[2],w=q[3],x2=x+x,y2=y+y,z2=z+z,xx=x*x2,yx=y*x2,yy=y*y2,zx=z*x2,zy=z*y2,zz=z*z2,wx=w*x2,wy=w*y2,wz=w*z2;return out[0]=1-yy-zz,out[3]=yx-wz,out[6]=zx+wy,out[1]=yx+wz,out[4]=1-xx-zz,out[7]=zy-wx,out[2]=zx-wy,out[5]=zy+wx,out[8]=1-xx-yy,out}},"./node_modules/h3-js/dist/browser/h3-js.es.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{UNITS:function(){return UNITS},cellArea:function(){return cellArea},compact:function(){return compact},degsToRads:function(){return degsToRads},edgeLength:function(){return edgeLength},exactEdgeLength:function(){return exactEdgeLength},experimentalH3ToLocalIj:function(){return experimentalH3ToLocalIj},experimentalLocalIjToH3:function(){return experimentalLocalIjToH3},geoToH3:function(){return geoToH3},getDestinationH3IndexFromUnidirectionalEdge:function(){return getDestinationH3IndexFromUnidirectionalEdge},getH3IndexesFromUnidirectionalEdge:function(){return getH3IndexesFromUnidirectionalEdge},getH3UnidirectionalEdge:function(){return getH3UnidirectionalEdge},getH3UnidirectionalEdgeBoundary:function(){return getH3UnidirectionalEdgeBoundary},getH3UnidirectionalEdgesFromHexagon:function(){return getH3UnidirectionalEdgesFromHexagon},getOriginH3IndexFromUnidirectionalEdge:function(){return getOriginH3IndexFromUnidirectionalEdge},getPentagonIndexes:function(){return getPentagonIndexes},getRes0Indexes:function(){return getRes0Indexes},h3Distance:function(){return h3Distance},h3GetBaseCell:function(){return h3GetBaseCell},h3GetFaces:function(){return h3GetFaces},h3GetResolution:function(){return h3GetResolution},h3IndexToSplitLong:function(){return h3IndexToSplitLong},h3IndexesAreNeighbors:function(){return h3IndexesAreNeighbors},h3IsPentagon:function(){return h3IsPentagon},h3IsResClassIII:function(){return h3IsResClassIII},h3IsValid:function(){return h3IsValid},h3Line:function(){return h3Line},h3SetToMultiPolygon:function(){return h3SetToMultiPolygon},h3ToCenterChild:function(){return h3ToCenterChild},h3ToChildren:function(){return h3ToChildren},h3ToGeo:function(){return h3ToGeo},h3ToGeoBoundary:function(){return h3ToGeoBoundary},h3ToParent:function(){return h3ToParent},h3UnidirectionalEdgeIsValid:function(){return h3UnidirectionalEdgeIsValid},hexArea:function(){return hexArea},hexRing:function(){return hexRing},kRing:function(){return kRing},kRingDistances:function(){return kRingDistances},numHexagons:function(){return numHexagons},pointDist:function(){return pointDist},polyfill:function(){return polyfill},radsToDegs:function(){return radsToDegs},splitLongToh3Index:function(){return splitLongToh3Index},uncompact:function(){return uncompact}});var libh3=function(libh3){var key,Module=void 0!==(libh3=libh3||{})?libh3:{},moduleOverrides={};for(key in Module)Module.hasOwnProperty(key)&&(moduleOverrides[key]=Module[key]);var readAsync,arguments_=[],scriptDirectory="";document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1):"",readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,!0),xhr.responseType="arraybuffer",xhr.onload=function xhr_onload(){if(200==xhr.status||0==xhr.status&&xhr.response)onload(xhr.response);else{var data=tryParseAsDataURI(url);data?onload(data.buffer):onerror()}},xhr.onerror=onerror,xhr.send(null)};var out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);for(key in moduleOverrides)moduleOverrides.hasOwnProperty(key)&&(Module[key]=moduleOverrides[key]);moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments);var tempRet0=0,getTempRet0=function(){return tempRet0};var ABORT=!1;function getCFunc(ident){var func=Module["_"+ident];return function assert(condition,text){condition||abort("Assertion failed: "+text)}(func,"Cannot call unknown function "+ident+", make sure it is exported"),func}function ccall(ident,returnType,argTypes,args,opts){var toC={string:function(str){var ret=0;if(null!=str&&0!==str){var len=1+(str.length<<2);(function stringToUTF8(str,outPtr,maxBytesToWrite){return function stringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;for(var startIdx=outIdx,endIdx=outIdx+maxBytesToWrite-1,i=0;i=55296&&u<=57343)u=65536+((1023&u)<<10)|1023&str.charCodeAt(++i);if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6,outU8Array[outIdx++]=128|63&u}else if(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12,outU8Array[outIdx++]=128|u>>6&63,outU8Array[outIdx++]=128|63&u}else{if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18,outU8Array[outIdx++]=128|u>>12&63,outU8Array[outIdx++]=128|u>>6&63,outU8Array[outIdx++]=128|63&u}}return outU8Array[outIdx]=0,outIdx-startIdx}(str,HEAPU8,outPtr,maxBytesToWrite)})(str,ret=stackAlloc(len),len)}return ret},array:function(arr){var ret=stackAlloc(arr.length);return function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}(arr,ret),ret}};var func=getCFunc(ident),cArgs=[],stack=0;if(args)for(var i=0;i=endIdx);)++endPtr;if(endPtr-idx>16&&u8Array.subarray&&UTF8Decoder)return UTF8Decoder.decode(u8Array.subarray(idx,endPtr));for(var str="";idx>10,56320|1023&ch)}}else str+=String.fromCharCode((31&u0)<<6|u1)}else str+=String.fromCharCode(u0)}return str}(HEAPU8,ptr,maxBytesToRead):""}var buffer,HEAP8,HEAPU8,HEAP16,HEAP32,HEAPF32,HEAPF64;"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");function alignUp(x,multiple){return x%multiple>0&&(x+=multiple-x%multiple),x}function updateGlobalBufferAndViews(buf){buffer=buf,Module.HEAP8=HEAP8=new Int8Array(buf),Module.HEAP16=HEAP16=new Int16Array(buf),Module.HEAP32=HEAP32=new Int32Array(buf),Module.HEAPU8=HEAPU8=new Uint8Array(buf),Module.HEAPU16=new Uint16Array(buf),Module.HEAPU32=new Uint32Array(buf),Module.HEAPF32=HEAPF32=new Float32Array(buf),Module.HEAPF64=HEAPF64=new Float64Array(buf)}var INITIAL_TOTAL_MEMORY=Module.TOTAL_MEMORY||33554432;function callRuntimeCallbacks(callbacks){for(;callbacks.length>0;){var callback=callbacks.shift();if("function"!=typeof callback){var func=callback.func;"number"==typeof func?void 0===callback.arg?Module.dynCall_v(func):Module.dynCall_vi(func,callback.arg):func(void 0===callback.arg?null:callback.arg)}else callback()}}INITIAL_TOTAL_MEMORY=(buffer=Module.buffer?Module.buffer:new ArrayBuffer(INITIAL_TOTAL_MEMORY)).byteLength,updateGlobalBufferAndViews(buffer),HEAP32[6004]=5266928;var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[];var Math_abs=Math.abs,Math_ceil=Math.ceil,Math_floor=Math.floor,Math_min=Math.min,runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;Module.preloadedImages={},Module.preloadedAudios={};var tempDouble,tempI64,memoryInitializer=null,dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return String.prototype.startsWith?filename.startsWith(dataURIPrefix):0===filename.indexOf(dataURIPrefix)}memoryInitializer="data:application/octet-stream;base64,AAAAAAAAAAACAAAAAwAAAAEAAAAFAAAABAAAAAYAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAABAAAABAAAAAMAAAAGAAAABQAAAAIAAAAAAAAAAgAAAAMAAAABAAAABAAAAAYAAAAAAAAABQAAAAMAAAAGAAAABAAAAAUAAAAAAAAAAQAAAAIAAAAEAAAABQAAAAYAAAAAAAAAAgAAAAMAAAABAAAABQAAAAIAAAAAAAAAAQAAAAMAAAAGAAAABAAAAAYAAAAAAAAABQAAAAIAAAABAAAABAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAgAAAAMAAAAAAAAAAAAAAAIAAAAAAAAAAQAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAABgAAAAAAAAAFAAAAAAAAAAAAAAAEAAAABQAAAAAAAAAAAAAAAAAAAAIAAAAAAAAABgAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAAAAAACAAAAAwAAAAQAAAAFAAAABgAAAAAAAAABAAAAAwAAAAQAAAAFAAAABgAAAAAAAAABAAAAAgAAAAQAAAAFAAAABgAAAAAAAAABAAAAAgAAAAMAAAAFAAAABgAAAAAAAAABAAAAAgAAAAMAAAAEAAAABgAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAgAAAAAAAAAAAAAABgAAAAAAAAADAAAAAgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAUAAAAEAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAEAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAUAAAACAAAABAAAAAMAAAAIAAAAAQAAAAcAAAAGAAAACQAAAAAAAAADAAAAAgAAAAIAAAAGAAAACgAAAAsAAAAAAAAAAQAAAAUAAAADAAAADQAAAAEAAAAHAAAABAAAAAwAAAAAAAAABAAAAH8AAAAPAAAACAAAAAMAAAAAAAAADAAAAAUAAAACAAAAEgAAAAoAAAAIAAAAAAAAABAAAAAGAAAADgAAAAsAAAARAAAAAQAAAAkAAAACAAAABwAAABUAAAAJAAAAEwAAAAMAAAANAAAAAQAAAAgAAAAFAAAAFgAAABAAAAAEAAAAAAAAAA8AAAAJAAAAEwAAAA4AAAAUAAAAAQAAAAcAAAAGAAAACgAAAAsAAAAYAAAAFwAAAAUAAAACAAAAEgAAAAsAAAARAAAAFwAAABkAAAACAAAABgAAAAoAAAAMAAAAHAAAAA0AAAAaAAAABAAAAA8AAAADAAAADQAAABoAAAAVAAAAHQAAAAMAAAAMAAAABwAAAA4AAAB/AAAAEQAAABsAAAAJAAAAFAAAAAYAAAAPAAAAFgAAABwAAAAfAAAABAAAAAgAAAAMAAAAEAAAABIAAAAhAAAAHgAAAAgAAAAFAAAAFgAAABEAAAALAAAADgAAAAYAAAAjAAAAGQAAABsAAAASAAAAGAAAAB4AAAAgAAAABQAAAAoAAAAQAAAAEwAAACIAAAAUAAAAJAAAAAcAAAAVAAAACQAAABQAAAAOAAAAEwAAAAkAAAAoAAAAGwAAACQAAAAVAAAAJgAAABMAAAAiAAAADQAAAB0AAAAHAAAAFgAAABAAAAApAAAAIQAAAA8AAAAIAAAAHwAAABcAAAAYAAAACwAAAAoAAAAnAAAAJQAAABkAAAAYAAAAfwAAACAAAAAlAAAACgAAABcAAAASAAAAGQAAABcAAAARAAAACwAAAC0AAAAnAAAAIwAAABoAAAAqAAAAHQAAACsAAAAMAAAAHAAAAA0AAAAbAAAAKAAAACMAAAAuAAAADgAAABQAAAARAAAAHAAAAB8AAAAqAAAALAAAAAwAAAAPAAAAGgAAAB0AAAArAAAAJgAAAC8AAAANAAAAGgAAABUAAAAeAAAAIAAAADAAAAAyAAAAEAAAABIAAAAhAAAAHwAAACkAAAAsAAAANQAAAA8AAAAWAAAAHAAAACAAAAAeAAAAGAAAABIAAAA0AAAAMgAAACUAAAAhAAAAHgAAADEAAAAwAAAAFgAAABAAAAApAAAAIgAAABMAAAAmAAAAFQAAADYAAAAkAAAAMwAAACMAAAAuAAAALQAAADgAAAARAAAAGwAAABkAAAAkAAAAFAAAACIAAAATAAAANwAAACgAAAA2AAAAJQAAACcAAAA0AAAAOQAAABgAAAAXAAAAIAAAACYAAAB/AAAAIgAAADMAAAAdAAAALwAAABUAAAAnAAAAJQAAABkAAAAXAAAAOwAAADkAAAAtAAAAKAAAABsAAAAkAAAAFAAAADwAAAAuAAAANwAAACkAAAAxAAAANQAAAD0AAAAWAAAAIQAAAB8AAAAqAAAAOgAAACsAAAA+AAAAHAAAACwAAAAaAAAAKwAAAD4AAAAvAAAAQAAAABoAAAAqAAAAHQAAACwAAAA1AAAAOgAAAEEAAAAcAAAAHwAAACoAAAAtAAAAJwAAACMAAAAZAAAAPwAAADsAAAA4AAAALgAAADwAAAA4AAAARAAAABsAAAAoAAAAIwAAAC8AAAAmAAAAKwAAAB0AAABFAAAAMwAAAEAAAAAwAAAAMQAAAB4AAAAhAAAAQwAAAEIAAAAyAAAAMQAAAH8AAAA9AAAAQgAAACEAAAAwAAAAKQAAADIAAAAwAAAAIAAAAB4AAABGAAAAQwAAADQAAAAzAAAARQAAADYAAABHAAAAJgAAAC8AAAAiAAAANAAAADkAAABGAAAASgAAACAAAAAlAAAAMgAAADUAAAA9AAAAQQAAAEsAAAAfAAAAKQAAACwAAAA2AAAARwAAADcAAABJAAAAIgAAADMAAAAkAAAANwAAACgAAAA2AAAAJAAAAEgAAAA8AAAASQAAADgAAABEAAAAPwAAAE0AAAAjAAAALgAAAC0AAAA5AAAAOwAAAEoAAABOAAAAJQAAACcAAAA0AAAAOgAAAH8AAAA+AAAATAAAACwAAABBAAAAKgAAADsAAAA/AAAATgAAAE8AAAAnAAAALQAAADkAAAA8AAAASAAAAEQAAABQAAAAKAAAADcAAAAuAAAAPQAAADUAAAAxAAAAKQAAAFEAAABLAAAAQgAAAD4AAAArAAAAOgAAACoAAABSAAAAQAAAAEwAAAA/AAAAfwAAADgAAAAtAAAATwAAADsAAABNAAAAQAAAAC8AAAA+AAAAKwAAAFQAAABFAAAAUgAAAEEAAAA6AAAANQAAACwAAABWAAAATAAAAEsAAABCAAAAQwAAAFEAAABVAAAAMQAAADAAAAA9AAAAQwAAAEIAAAAyAAAAMAAAAFcAAABVAAAARgAAAEQAAAA4AAAAPAAAAC4AAABaAAAATQAAAFAAAABFAAAAMwAAAEAAAAAvAAAAWQAAAEcAAABUAAAARgAAAEMAAAA0AAAAMgAAAFMAAABXAAAASgAAAEcAAABZAAAASQAAAFsAAAAzAAAARQAAADYAAABIAAAAfwAAAEkAAAA3AAAAUAAAADwAAABYAAAASQAAAFsAAABIAAAAWAAAADYAAABHAAAANwAAAEoAAABOAAAAUwAAAFwAAAA0AAAAOQAAAEYAAABLAAAAQQAAAD0AAAA1AAAAXgAAAFYAAABRAAAATAAAAFYAAABSAAAAYAAAADoAAABBAAAAPgAAAE0AAAA/AAAARAAAADgAAABdAAAATwAAAFoAAABOAAAASgAAADsAAAA5AAAAXwAAAFwAAABPAAAATwAAAE4AAAA/AAAAOwAAAF0AAABfAAAATQAAAFAAAABEAAAASAAAADwAAABjAAAAWgAAAFgAAABRAAAAVQAAAF4AAABlAAAAPQAAAEIAAABLAAAAUgAAAGAAAABUAAAAYgAAAD4AAABMAAAAQAAAAFMAAAB/AAAASgAAAEYAAABkAAAAVwAAAFwAAABUAAAARQAAAFIAAABAAAAAYQAAAFkAAABiAAAAVQAAAFcAAABlAAAAZgAAAEIAAABDAAAAUQAAAFYAAABMAAAASwAAAEEAAABoAAAAYAAAAF4AAABXAAAAUwAAAGYAAABkAAAAQwAAAEYAAABVAAAAWAAAAEgAAABbAAAASQAAAGMAAABQAAAAaQAAAFkAAABhAAAAWwAAAGcAAABFAAAAVAAAAEcAAABaAAAATQAAAFAAAABEAAAAagAAAF0AAABjAAAAWwAAAEkAAABZAAAARwAAAGkAAABYAAAAZwAAAFwAAABTAAAATgAAAEoAAABsAAAAZAAAAF8AAABdAAAATwAAAFoAAABNAAAAbQAAAF8AAABqAAAAXgAAAFYAAABRAAAASwAAAGsAAABoAAAAZQAAAF8AAABcAAAATwAAAE4AAABtAAAAbAAAAF0AAABgAAAAaAAAAGIAAABuAAAATAAAAFYAAABSAAAAYQAAAH8AAABiAAAAVAAAAGcAAABZAAAAbwAAAGIAAABuAAAAYQAAAG8AAABSAAAAYAAAAFQAAABjAAAAUAAAAGkAAABYAAAAagAAAFoAAABxAAAAZAAAAGYAAABTAAAAVwAAAGwAAAByAAAAXAAAAGUAAABmAAAAawAAAHAAAABRAAAAVQAAAF4AAABmAAAAZQAAAFcAAABVAAAAcgAAAHAAAABkAAAAZwAAAFsAAABhAAAAWQAAAHQAAABpAAAAbwAAAGgAAABrAAAAbgAAAHMAAABWAAAAXgAAAGAAAABpAAAAWAAAAGcAAABbAAAAcQAAAGMAAAB0AAAAagAAAF0AAABjAAAAWgAAAHUAAABtAAAAcQAAAGsAAAB/AAAAZQAAAF4AAABzAAAAaAAAAHAAAABsAAAAZAAAAF8AAABcAAAAdgAAAHIAAABtAAAAbQAAAGwAAABdAAAAXwAAAHUAAAB2AAAAagAAAG4AAABiAAAAaAAAAGAAAAB3AAAAbwAAAHMAAABvAAAAYQAAAG4AAABiAAAAdAAAAGcAAAB3AAAAcAAAAGsAAABmAAAAZQAAAHgAAABzAAAAcgAAAHEAAABjAAAAdAAAAGkAAAB1AAAAagAAAHkAAAByAAAAcAAAAGQAAABmAAAAdgAAAHgAAABsAAAAcwAAAG4AAABrAAAAaAAAAHgAAAB3AAAAcAAAAHQAAABnAAAAdwAAAG8AAABxAAAAaQAAAHkAAAB1AAAAfwAAAG0AAAB2AAAAcQAAAHkAAABqAAAAdgAAAHgAAABsAAAAcgAAAHUAAAB5AAAAbQAAAHcAAABvAAAAcwAAAG4AAAB5AAAAdAAAAHgAAAB4AAAAcwAAAHIAAABwAAAAeQAAAHcAAAB2AAAAeQAAAHQAAAB4AAAAdwAAAHUAAABxAAAAdgAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAEAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAIAAAAFAAAAAQAAAAAAAAD/////AQAAAAAAAAADAAAABAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAUAAAABAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAQAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAADAAAABQAAAAEAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAEAAAABQAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAgAAAAUAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAABQAAAAAAAAAAAAAABQAAAAUAAAAAAAAAAAAAAP////8BAAAAAAAAAAMAAAAEAAAAAgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAABQAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAQAAAP//////////AQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAIAAAAAAAAAAAAAAAEAAAACAAAABgAAAAQAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAoAAAACAAAAAAAAAAAAAAABAAAAAQAAAAUAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAIAAAAAAAAAAAAAAAEAAAADAAAABwAAAAYAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAHAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAgAAAAAAAAAAAAAAAQAAAAAAAAAJAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAwAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAgAAAAAAAAAAAAAAAQAAAAQAAAAIAAAACgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAsAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAACAAAAAAAAAAAAAAABAAAACwAAAA8AAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA4AAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAgAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAACAAAAAAAAAAAAAAABAAAADAAAABAAAAAMAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAEAAAAKAAAAEwAAAAgAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAJAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAgAAAAAAAAAAAAAAAQAAAA0AAAARAAAADQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABEAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABMAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAIAAAAAAAAAAAAAAAEAAAAOAAAAEgAAAA8AAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABMAAAACAAAAAAAAAAAAAAABAAAA//////////8TAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAASAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABIAAAAAAAAAGAAAAAAAAAAhAAAAAAAAAB4AAAAAAAAAIAAAAAMAAAAxAAAAAQAAADAAAAADAAAAMgAAAAMAAAAIAAAAAAAAAAUAAAAFAAAACgAAAAUAAAAWAAAAAAAAABAAAAAAAAAAEgAAAAAAAAApAAAAAQAAACEAAAAAAAAAHgAAAAAAAAAEAAAAAAAAAAAAAAAFAAAAAgAAAAUAAAAPAAAAAQAAAAgAAAAAAAAABQAAAAUAAAAfAAAAAQAAABYAAAAAAAAAEAAAAAAAAAACAAAAAAAAAAYAAAAAAAAADgAAAAAAAAAKAAAAAAAAAAsAAAAAAAAAEQAAAAMAAAAYAAAAAQAAABcAAAADAAAAGQAAAAMAAAAAAAAAAAAAAAEAAAAFAAAACQAAAAUAAAAFAAAAAAAAAAIAAAAAAAAABgAAAAAAAAASAAAAAQAAAAoAAAAAAAAACwAAAAAAAAAEAAAAAQAAAAMAAAAFAAAABwAAAAUAAAAIAAAAAQAAAAAAAAAAAAAAAQAAAAUAAAAQAAAAAQAAAAUAAAAAAAAAAgAAAAAAAAAHAAAAAAAAABUAAAAAAAAAJgAAAAAAAAAJAAAAAAAAABMAAAAAAAAAIgAAAAMAAAAOAAAAAQAAABQAAAADAAAAJAAAAAMAAAADAAAAAAAAAA0AAAAFAAAAHQAAAAUAAAABAAAAAAAAAAcAAAAAAAAAFQAAAAAAAAAGAAAAAQAAAAkAAAAAAAAAEwAAAAAAAAAEAAAAAgAAAAwAAAAFAAAAGgAAAAUAAAAAAAAAAQAAAAMAAAAAAAAADQAAAAUAAAACAAAAAQAAAAEAAAAAAAAABwAAAAAAAAAaAAAAAAAAACoAAAAAAAAAOgAAAAAAAAAdAAAAAAAAACsAAAAAAAAAPgAAAAMAAAAmAAAAAQAAAC8AAAADAAAAQAAAAAMAAAAMAAAAAAAAABwAAAAFAAAALAAAAAUAAAANAAAAAAAAABoAAAAAAAAAKgAAAAAAAAAVAAAAAQAAAB0AAAAAAAAAKwAAAAAAAAAEAAAAAwAAAA8AAAAFAAAAHwAAAAUAAAADAAAAAQAAAAwAAAAAAAAAHAAAAAUAAAAHAAAAAQAAAA0AAAAAAAAAGgAAAAAAAAAfAAAAAAAAACkAAAAAAAAAMQAAAAAAAAAsAAAAAAAAADUAAAAAAAAAPQAAAAMAAAA6AAAAAQAAAEEAAAADAAAASwAAAAMAAAAPAAAAAAAAABYAAAAFAAAAIQAAAAUAAAAcAAAAAAAAAB8AAAAAAAAAKQAAAAAAAAAqAAAAAQAAACwAAAAAAAAANQAAAAAAAAAEAAAABAAAAAgAAAAFAAAAEAAAAAUAAAAMAAAAAQAAAA8AAAAAAAAAFgAAAAUAAAAaAAAAAQAAABwAAAAAAAAAHwAAAAAAAAAyAAAAAAAAADAAAAAAAAAAMQAAAAMAAAAgAAAAAAAAAB4AAAADAAAAIQAAAAMAAAAYAAAAAwAAABIAAAADAAAAEAAAAAMAAABGAAAAAAAAAEMAAAAAAAAAQgAAAAMAAAA0AAAAAwAAADIAAAAAAAAAMAAAAAAAAAAlAAAAAwAAACAAAAAAAAAAHgAAAAMAAABTAAAAAAAAAFcAAAADAAAAVQAAAAMAAABKAAAAAwAAAEYAAAAAAAAAQwAAAAAAAAA5AAAAAQAAADQAAAADAAAAMgAAAAAAAAAZAAAAAAAAABcAAAAAAAAAGAAAAAMAAAARAAAAAAAAAAsAAAADAAAACgAAAAMAAAAOAAAAAwAAAAYAAAADAAAAAgAAAAMAAAAtAAAAAAAAACcAAAAAAAAAJQAAAAMAAAAjAAAAAwAAABkAAAAAAAAAFwAAAAAAAAAbAAAAAwAAABEAAAAAAAAACwAAAAMAAAA/AAAAAAAAADsAAAADAAAAOQAAAAMAAAA4AAAAAwAAAC0AAAAAAAAAJwAAAAAAAAAuAAAAAwAAACMAAAADAAAAGQAAAAAAAAAkAAAAAAAAABQAAAAAAAAADgAAAAMAAAAiAAAAAAAAABMAAAADAAAACQAAAAMAAAAmAAAAAwAAABUAAAADAAAABwAAAAMAAAA3AAAAAAAAACgAAAAAAAAAGwAAAAMAAAA2AAAAAwAAACQAAAAAAAAAFAAAAAAAAAAzAAAAAwAAACIAAAAAAAAAEwAAAAMAAABIAAAAAAAAADwAAAADAAAALgAAAAMAAABJAAAAAwAAADcAAAAAAAAAKAAAAAAAAABHAAAAAwAAADYAAAADAAAAJAAAAAAAAABAAAAAAAAAAC8AAAAAAAAAJgAAAAMAAAA+AAAAAAAAACsAAAADAAAAHQAAAAMAAAA6AAAAAwAAACoAAAADAAAAGgAAAAMAAABUAAAAAAAAAEUAAAAAAAAAMwAAAAMAAABSAAAAAwAAAEAAAAAAAAAALwAAAAAAAABMAAAAAwAAAD4AAAAAAAAAKwAAAAMAAABhAAAAAAAAAFkAAAADAAAARwAAAAMAAABiAAAAAwAAAFQAAAAAAAAARQAAAAAAAABgAAAAAwAAAFIAAAADAAAAQAAAAAAAAABLAAAAAAAAAEEAAAAAAAAAOgAAAAMAAAA9AAAAAAAAADUAAAADAAAALAAAAAMAAAAxAAAAAwAAACkAAAADAAAAHwAAAAMAAABeAAAAAAAAAFYAAAAAAAAATAAAAAMAAABRAAAAAwAAAEsAAAAAAAAAQQAAAAAAAABCAAAAAwAAAD0AAAAAAAAANQAAAAMAAABrAAAAAAAAAGgAAAADAAAAYAAAAAMAAABlAAAAAwAAAF4AAAAAAAAAVgAAAAAAAABVAAAAAwAAAFEAAAADAAAASwAAAAAAAAA5AAAAAAAAADsAAAAAAAAAPwAAAAMAAABKAAAAAAAAAE4AAAADAAAATwAAAAMAAABTAAAAAwAAAFwAAAADAAAAXwAAAAMAAAAlAAAAAAAAACcAAAADAAAALQAAAAMAAAA0AAAAAAAAADkAAAAAAAAAOwAAAAAAAABGAAAAAwAAAEoAAAAAAAAATgAAAAMAAAAYAAAAAAAAABcAAAADAAAAGQAAAAMAAAAgAAAAAwAAACUAAAAAAAAAJwAAAAMAAAAyAAAAAwAAADQAAAAAAAAAOQAAAAAAAAAuAAAAAAAAADwAAAAAAAAASAAAAAMAAAA4AAAAAAAAAEQAAAADAAAAUAAAAAMAAAA/AAAAAwAAAE0AAAADAAAAWgAAAAMAAAAbAAAAAAAAACgAAAADAAAANwAAAAMAAAAjAAAAAAAAAC4AAAAAAAAAPAAAAAAAAAAtAAAAAwAAADgAAAAAAAAARAAAAAMAAAAOAAAAAAAAABQAAAADAAAAJAAAAAMAAAARAAAAAwAAABsAAAAAAAAAKAAAAAMAAAAZAAAAAwAAACMAAAAAAAAALgAAAAAAAABHAAAAAAAAAFkAAAAAAAAAYQAAAAMAAABJAAAAAAAAAFsAAAADAAAAZwAAAAMAAABIAAAAAwAAAFgAAAADAAAAaQAAAAMAAAAzAAAAAAAAAEUAAAADAAAAVAAAAAMAAAA2AAAAAAAAAEcAAAAAAAAAWQAAAAAAAAA3AAAAAwAAAEkAAAAAAAAAWwAAAAMAAAAmAAAAAAAAAC8AAAADAAAAQAAAAAMAAAAiAAAAAwAAADMAAAAAAAAARQAAAAMAAAAkAAAAAwAAADYAAAAAAAAARwAAAAAAAABgAAAAAAAAAGgAAAAAAAAAawAAAAMAAABiAAAAAAAAAG4AAAADAAAAcwAAAAMAAABhAAAAAwAAAG8AAAADAAAAdwAAAAMAAABMAAAAAAAAAFYAAAADAAAAXgAAAAMAAABSAAAAAAAAAGAAAAAAAAAAaAAAAAAAAABUAAAAAwAAAGIAAAAAAAAAbgAAAAMAAAA6AAAAAAAAAEEAAAADAAAASwAAAAMAAAA+AAAAAwAAAEwAAAAAAAAAVgAAAAMAAABAAAAAAwAAAFIAAAAAAAAAYAAAAAAAAABVAAAAAAAAAFcAAAAAAAAAUwAAAAMAAABlAAAAAAAAAGYAAAADAAAAZAAAAAMAAABrAAAAAwAAAHAAAAADAAAAcgAAAAMAAABCAAAAAAAAAEMAAAADAAAARgAAAAMAAABRAAAAAAAAAFUAAAAAAAAAVwAAAAAAAABeAAAAAwAAAGUAAAAAAAAAZgAAAAMAAAAxAAAAAAAAADAAAAADAAAAMgAAAAMAAAA9AAAAAwAAAEIAAAAAAAAAQwAAAAMAAABLAAAAAwAAAFEAAAAAAAAAVQAAAAAAAABfAAAAAAAAAFwAAAAAAAAAUwAAAAAAAABPAAAAAAAAAE4AAAAAAAAASgAAAAMAAAA/AAAAAQAAADsAAAADAAAAOQAAAAMAAABtAAAAAAAAAGwAAAAAAAAAZAAAAAUAAABdAAAAAQAAAF8AAAAAAAAAXAAAAAAAAABNAAAAAQAAAE8AAAAAAAAATgAAAAAAAAB1AAAABAAAAHYAAAAFAAAAcgAAAAUAAABqAAAAAQAAAG0AAAAAAAAAbAAAAAAAAABaAAAAAQAAAF0AAAABAAAAXwAAAAAAAABaAAAAAAAAAE0AAAAAAAAAPwAAAAAAAABQAAAAAAAAAEQAAAAAAAAAOAAAAAMAAABIAAAAAQAAADwAAAADAAAALgAAAAMAAABqAAAAAAAAAF0AAAAAAAAATwAAAAUAAABjAAAAAQAAAFoAAAAAAAAATQAAAAAAAABYAAAAAQAAAFAAAAAAAAAARAAAAAAAAAB1AAAAAwAAAG0AAAAFAAAAXwAAAAUAAABxAAAAAQAAAGoAAAAAAAAAXQAAAAAAAABpAAAAAQAAAGMAAAABAAAAWgAAAAAAAABpAAAAAAAAAFgAAAAAAAAASAAAAAAAAABnAAAAAAAAAFsAAAAAAAAASQAAAAMAAABhAAAAAQAAAFkAAAADAAAARwAAAAMAAABxAAAAAAAAAGMAAAAAAAAAUAAAAAUAAAB0AAAAAQAAAGkAAAAAAAAAWAAAAAAAAABvAAAAAQAAAGcAAAAAAAAAWwAAAAAAAAB1AAAAAgAAAGoAAAAFAAAAWgAAAAUAAAB5AAAAAQAAAHEAAAAAAAAAYwAAAAAAAAB3AAAAAQAAAHQAAAABAAAAaQAAAAAAAAB3AAAAAAAAAG8AAAAAAAAAYQAAAAAAAABzAAAAAAAAAG4AAAAAAAAAYgAAAAMAAABrAAAAAQAAAGgAAAADAAAAYAAAAAMAAAB5AAAAAAAAAHQAAAAAAAAAZwAAAAUAAAB4AAAAAQAAAHcAAAAAAAAAbwAAAAAAAABwAAAAAQAAAHMAAAAAAAAAbgAAAAAAAAB1AAAAAQAAAHEAAAAFAAAAaQAAAAUAAAB2AAAAAQAAAHkAAAAAAAAAdAAAAAAAAAByAAAAAQAAAHgAAAABAAAAdwAAAAAAAAByAAAAAAAAAHAAAAAAAAAAawAAAAAAAABkAAAAAAAAAGYAAAAAAAAAZQAAAAMAAABTAAAAAQAAAFcAAAADAAAAVQAAAAMAAAB2AAAAAAAAAHgAAAAAAAAAcwAAAAUAAABsAAAAAQAAAHIAAAAAAAAAcAAAAAAAAABcAAAAAQAAAGQAAAAAAAAAZgAAAAAAAAB1AAAAAAAAAHkAAAAFAAAAdwAAAAUAAABtAAAAAQAAAHYAAAAAAAAAeAAAAAAAAABfAAAAAQAAAGwAAAABAAAAcgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAEAAAABAAAAAAAAAAAAAAABAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAB+ogX28rbpPxqumpJv+fM/165tC4ns9D+XaEnTqUsEQFrOtNlC4PA/3U+0XG6P9b9TdUUBxTTjP4PUp8ex1ty/B1rD/EN43z+lcDi6LLrZP/a45NWEHMY/oJ5ijLDZ+j/xw3rjxWPjP2B8A46ioQdAotff3wla2z+FMSpA1jj+v6b5Y1mtPbS/cIu8K0F457/2esiyJpDNv98k5Ts2NeA/pvljWa09tD88ClUJ60MDQPZ6yLImkM0/4ONKxa0UBcD2uOTVhBzGv5G7JRxGave/8cN648Vj47+HCwtkjAXIv6LX398JWtu/qyheaCAL9D9TdUUBxTTjv4gyTxslhwVAB1rD/EN4378EH/28teoFwH6iBfbytum/F6ztFYdK/r/Xrm0Liez0vwcS6wNGWeO/Ws602ULg8L9TCtRLiLT8P8pi5RexJsw/BlIKPVwR5T95Wyu0/QjnP5PjoT7YYcu/mBhKZ6zrwj8wRYS7NebuP3qW6geh+Ls/SLrixebL3r+pcyymN9XrPwmkNHp7xec/GWNMZVAA17+82s+x2BLiPwn2ytbJ9ek/LgEH1sMS1j8yp/2LhTfeP+SnWwtQBbu/d38gkp5X7z8ytsuHaADGPzUYObdf1+m/7IauECWhwz+cjSACjzniP76Z+wUhN9K/1+GEKzup67+/GYr/04baPw6idWOvsuc/ZedTWsRa5b/EJQOuRzi0v/OncYhHPes/h49PixY53j+i8wWfC03Nvw2idWOvsue/ZedTWsRa5T/EJQOuRzi0P/KncYhHPeu/iY9PixY53r+i8wWfC03NP9anWwtQBbs/d38gkp5X778ytsuHaADGvzUYObdf1+k/74auECWhw7+cjSACjzniv8CZ+wUhN9I/1uGEKzup6z+/GYr/04bavwmkNHp7xee/F2NMZVAA1z+82s+x2BLivwr2ytbJ9em/KwEH1sMS1r8yp/2LhTfev81i5RexJsy/BlIKPVwR5b95Wyu0/Qjnv5DjoT7YYcs/nBhKZ6zrwr8wRYS7Nebuv3OW6geh+Lu/SLrixebL3j+pcyymN9Xrv8rHIFfWehZAMBwUdlo0DECTUc17EOb2PxpVB1SWChdAzjbhb9pTDUDQhmdvECX5P9FlMKCC9+g/IIAzjELgE0DajDngMv8GQFhWDmDPjNs/y1guLh96EkAxPi8k7DIEQJCc4URlhRhA3eLKKLwkEECqpNAyTBD/P6xpjXcDiwVAFtl//cQm4z+Ibt3XKiYTQM7mCLUb3QdAoM1t8yVv7D8aLZv2Nk8UQEAJPV5nQwxAtSsfTCoE9z9TPjXLXIIWQBVanC5W9AtAYM3d7Adm9j++5mQz1FoWQBUThyaVBghAwH5muQsV7T89Q1qv82MUQJoWGOfNuBdAzrkClkmwDkDQjKq77t37Py+g0dtitsE/ZwAMTwVPEUBojepluNwBQGYbtuW+t9w/HNWIJs6MEkDTNuQUSlgEQKxktPP5TcQ/ixbLB8JjEUCwuWjXMQYCQAS/R09FkRdAowpiZjhhDkB7LmlczD/7P01iQmhhsAVAnrtTwDy84z/Z6jfQ2TgTQChOCXMnWwpAhrW3daoz8z/HYJvVPI4VQLT3ik5FcA5Angi7LOZd+z+NNVzDy5gXQBXdvVTFUA1AYNMgOeYe+T8+qHXGCwkXQKQTOKwa5AJA8gFVoEMW0T+FwzJyttIRQAEAAAD/////BwAAAP////8xAAAA/////1cBAAD/////YQkAAP////+nQQAA/////5HLAQD/////95AMAP/////B9lcAAAAAAAAAAAAAAAAAAgAAAP////8OAAAA/////2IAAAD/////rgIAAP/////CEgAA/////06DAAD/////IpcDAP/////uIRkA/////4LtrwAAAAAAAAAAAAAAAAAAAAAAAgAAAP//////////AQAAAAMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////wIAAAD//////////wEAAAAAAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA/////////////////////wEAAAD///////////////8CAAAA////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD///////////////////////////////8CAAAA////////////////AQAAAP////////////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAAAQAAAP//////////AgAAAP//////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAAEAAAD//////////wIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAgAAAAAAAAACAAAAAQAAAAEAAAACAAAAAgAAAAAAAAAFAAAABQAAAAAAAAACAAAAAgAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAIAAAABAAAAAgAAAAIAAAACAAAAAAAAAAUAAAAGAAAAAAAAAAIAAAACAAAAAwAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAAAAAAAAgAAAAEAAAADAAAAAgAAAAIAAAAAAAAABQAAAAcAAAAAAAAAAgAAAAIAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAgAAAAAAAAACAAAAAQAAAAQAAAACAAAAAgAAAAAAAAAFAAAACAAAAAAAAAACAAAAAgAAAAMAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAACAAAAAAAAAAIAAAABAAAAAAAAAAIAAAACAAAAAAAAAAUAAAAJAAAAAAAAAAIAAAACAAAAAwAAAAUAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAIAAAACAAAAAAAAAAMAAAAOAAAAAgAAAAAAAAACAAAAAwAAAAAAAAAAAAAAAgAAAAIAAAADAAAABgAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAgAAAAIAAAAAAAAAAwAAAAoAAAACAAAAAAAAAAIAAAADAAAAAQAAAAAAAAACAAAAAgAAAAMAAAAHAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAACAAAAAgAAAAAAAAADAAAACwAAAAIAAAAAAAAAAgAAAAMAAAACAAAAAAAAAAIAAAACAAAAAwAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAIAAAACAAAAAAAAAAMAAAAMAAAAAgAAAAAAAAACAAAAAwAAAAMAAAAAAAAAAgAAAAIAAAADAAAACQAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAgAAAAIAAAAAAAAAAwAAAA0AAAACAAAAAAAAAAIAAAADAAAABAAAAAAAAAACAAAAAgAAAAMAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAACAAAAAgAAAAAAAAADAAAABgAAAAIAAAAAAAAAAgAAAAMAAAAPAAAAAAAAAAIAAAACAAAAAwAAAAsAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAIAAAACAAAAAAAAAAMAAAAHAAAAAgAAAAAAAAACAAAAAwAAABAAAAAAAAAAAgAAAAIAAAADAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAgAAAAIAAAAAAAAAAwAAAAgAAAACAAAAAAAAAAIAAAADAAAAEQAAAAAAAAACAAAAAgAAAAMAAAANAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAACAAAAAgAAAAAAAAADAAAACQAAAAIAAAAAAAAAAgAAAAMAAAASAAAAAAAAAAIAAAACAAAAAwAAAA4AAAAAAAAAAAAAAAAAAAAAAAAACQAAAAIAAAACAAAAAAAAAAMAAAAFAAAAAgAAAAAAAAACAAAAAwAAABMAAAAAAAAAAgAAAAIAAAADAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAgAAAAAAAAACAAAAAQAAABMAAAACAAAAAgAAAAAAAAAFAAAACgAAAAAAAAACAAAAAgAAAAMAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABEAAAACAAAAAAAAAAIAAAABAAAADwAAAAIAAAACAAAAAAAAAAUAAAALAAAAAAAAAAIAAAACAAAAAwAAABEAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAIAAAAAAAAAAgAAAAEAAAAQAAAAAgAAAAIAAAAAAAAABQAAAAwAAAAAAAAAAgAAAAIAAAADAAAAEgAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAgAAAAAAAAACAAAAAQAAABEAAAACAAAAAgAAAAAAAAAFAAAADQAAAAAAAAACAAAAAgAAAAMAAAATAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAACAAAAAAAAAAIAAAABAAAAEgAAAAIAAAACAAAAAAAAAAUAAAAOAAAAAAAAAAIAAAACAAAAAwAAAAIAAAABAAAAAAAAAAEAAAACAAAAAAAAAAAAAAACAAAAAQAAAAAAAAABAAAAAgAAAAEAAAAAAAAAAgAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAAAAAAAAAAABQAAAAQAAAAAAAAAAQAAAAUAAAAEAAAAAAAAAAUAAAAAAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAEAAAACAAAAAQAAAAAAAAACAAAAAgAAAAAAAAABAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAAAAAAAAAAABQAAAAQAAAAAAAAAAQAAAAUAAAAEAAAAAAAAAAUAAAAFAAAAAAAAAAEAAAAAAAAAAAAAAMuhRbbsNlBBYqHW9OmHIkF9XBuqnS31QAK37uYhNMhAOSo3UUupm0DC+6pc6JxvQHV9eseEEEJAzURsCyqlFEB8BQ4NMJjnPyy3tBoS97o/xawXQznRjj89J2K2CZxhP6vX43RIIDQ/S8isgygEBz+LvFHQkmzaPjFFFO7wMq4+AADMLkTtjkIAAOgkJqxhQgAAU7B0MjRCAADwpBcVB0IAAACYP2HaQQAAAIn/Ja5BzczM4Eg6gUHNzMxMU7BTQTMzMzNfgCZBAAAAAEi3+UAAAAAAwGPNQDMzMzMzy6BAmpmZmZkxc0AzMzMzM/NFQDMzMzMzMxlAzczMzMzM7D+ygXSx2U6RQKimJOvQKnpA23hmONTHY0A/AGcxyudNQNb3K647mzZA+S56rrwWIUAm4kUQ+9UJQKre9hGzh/M/BLvoy9WG3T+LmqMf8VHGP2m3nYNV37A/gbFHcyeCmT+cBPWBckiDP61tZACjKW0/q2RbYVUYVj8uDypVyLNAP6jGS5cA5zBBwcqhBdCNGUEGEhQ/JVEDQT6WPnRbNO1AB/AWSJgT1kDfUWNCNLDAQNk+5C33OqlAchWL34QSk0DKvtDIrNV8QNF0G3kFzGVASSeWhBl6UED+/0mNGuk4QGjA/dm/1CJALPLPMql6DEDSHoDrwpP1P2jouzWST+A/egAAAAAAAABKAwAAAAAAAPoWAAAAAAAAyqAAAAAAAAB6ZQQAAAAAAErGHgAAAAAA+mvXAAAAAADK8+MFAAAAAHqqOykAAAAASqmhIAEAAAD6oGvkBwAAAMpm8T43AAAAes+ZuIIBAABKrDQMkwoAAPq1cFUFSgAAyvkUViUGAgAAAAAAAwAAAAYAAAACAAAABQAAAAEAAAAEAAAAAAAAAAAAAAAFAAAAAwAAAAEAAAAGAAAABAAAAAIAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAA/////wAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAP////8AAAAAAAAAAAEAAAABAAAAAAAAAAAAAAD/////AAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAA/////wUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////AAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////wAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAUAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAQAAAAAAAAAFAAAAAQAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAAAAAAABAAEAAAEBAAAAAAABAAAAAQAAAAEAAQAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAACAAAAAQAAAAMAAAAOAAAABgAAAAsAAAACAAAABwAAAAEAAAAYAAAABQAAAAoAAAABAAAABgAAAAAAAAAmAAAABwAAAAwAAAADAAAACAAAAAIAAAAxAAAACQAAAA4AAAAAAAAABQAAAAQAAAA6AAAACAAAAA0AAAAEAAAACQAAAAMAAAA/AAAACwAAAAYAAAAPAAAACgAAABAAAABIAAAADAAAAAcAAAAQAAAACwAAABEAAABTAAAACgAAAAUAAAATAAAADgAAAA8AAABhAAAADQAAAAgAAAARAAAADAAAABIAAABrAAAADgAAAAkAAAASAAAADQAAABMAAAB1AAAADwAAABMAAAARAAAAEgAAABAAAAAHAAAABwAAAAEAAAACAAAABAAAAAMAAAAAAAAAAAAAAAcAAAADAAAAAQAAAAIAAAAFAAAABAAAAAAAAAAAAAAAYWxnb3MuYwBfcG9seWZpbGxJbnRlcm5hbABhZGphY2VudEZhY2VEaXJbdG1wRmlqay5mYWNlXVtmaWprLmZhY2VdID09IEtJAGZhY2VpamsuYwBfZmFjZUlqa1BlbnRUb0dlb0JvdW5kYXJ5AGFkamFjZW50RmFjZURpcltjZW50ZXJJSksuZmFjZV1bZmFjZTJdID09IEtJAF9mYWNlSWprVG9HZW9Cb3VuZGFyeQBwb2x5Z29uLT5uZXh0ID09IE5VTEwAbGlua2VkR2VvLmMAYWRkTmV3TGlua2VkUG9seWdvbgBuZXh0ICE9IE5VTEwAbG9vcCAhPSBOVUxMAGFkZE5ld0xpbmtlZExvb3AAcG9seWdvbi0+Zmlyc3QgPT0gTlVMTABhZGRMaW5rZWRMb29wAGNvb3JkICE9IE5VTEwAYWRkTGlua2VkQ29vcmQAbG9vcC0+Zmlyc3QgPT0gTlVMTABpbm5lckxvb3BzICE9IE5VTEwAbm9ybWFsaXplTXVsdGlQb2x5Z29uAGJib3hlcyAhPSBOVUxMAGNhbmRpZGF0ZXMgIT0gTlVMTABmaW5kUG9seWdvbkZvckhvbGUAY2FuZGlkYXRlQkJveGVzICE9IE5VTEwAcmV2RGlyICE9IElOVkFMSURfRElHSVQAbG9jYWxpai5jAGgzVG9Mb2NhbElqawBiYXNlQ2VsbCAhPSBvcmlnaW5CYXNlQ2VsbAAhKG9yaWdpbk9uUGVudCAmJiBpbmRleE9uUGVudCkAcGVudGFnb25Sb3RhdGlvbnMgPj0gMABkaXJlY3Rpb25Sb3RhdGlvbnMgPj0gMABiYXNlQ2VsbCA9PSBvcmlnaW5CYXNlQ2VsbABiYXNlQ2VsbCAhPSBJTlZBTElEX0JBU0VfQ0VMTABsb2NhbElqa1RvSDMAIV9pc0Jhc2VDZWxsUGVudGFnb24oYmFzZUNlbGwpAGJhc2VDZWxsUm90YXRpb25zID49IDAAd2l0aGluUGVudGFnb25Sb3RhdGlvbnMgPj0gMABncmFwaC0+YnVja2V0cyAhPSBOVUxMAHZlcnRleEdyYXBoLmMAaW5pdFZlcnRleEdyYXBoAG5vZGUgIT0gTlVMTABhZGRWZXJ0ZXhOb2Rl";function demangle(func){return func}function demangleAll(text){return text.replace(/\b__Z[\w\d_]+/g,(function(x){return x===x?x:x+" ["+x+"]"}))}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error(0)}catch(e){err=e}if(!err.stack)return"(no stack trace available)"}return err.stack.toString()}function _emscripten_get_heap_size(){return HEAP8.length}function emscripten_realloc_buffer(size){try{var newBuffer=new ArrayBuffer(size);if(newBuffer.byteLength!=size)return;return new Int8Array(newBuffer).set(HEAP8),_emscripten_replace_memory(newBuffer),updateGlobalBufferAndViews(newBuffer),1}catch(e){}}var decodeBase64="function"==typeof atob?atob:function(input){var chr1,chr2,chr3,enc2,enc3,enc4,keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",output="",i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{chr1=keyStr.indexOf(input.charAt(i++))<<2|(enc2=keyStr.indexOf(input.charAt(i++)))>>4,chr2=(15&enc2)<<4|(enc3=keyStr.indexOf(input.charAt(i++)))>>2,chr3=(3&enc3)<<6|(enc4=keyStr.indexOf(input.charAt(i++))),output+=String.fromCharCode(chr1),64!==enc3&&(output+=String.fromCharCode(chr2)),64!==enc4&&(output+=String.fromCharCode(chr3))}while(i>2]=a,b[g+4>>2]=c,(g=0!=(0|f))&&(b[f>>2]=0),0|Fb(a,c))return S=o,0|(n=1);b[n>>2]=0;a:do{if((0|d)>=1)if(g)for(k=0,l=1,m=1,h=0,g=a;;){if(!(h|k)){if(0==(0|(g=0|da(g,c,4,n)))&0==(0|(c=0|G()))){g=2;break a}if(0|Fb(g,c)){g=1;break a}}if(0==(0|(g=0|da(g,c,0|b[16+(k<<2)>>2],n)))&0==(0|(c=0|G()))){g=2;break a}if(b[(a=e+(m<<3)|0)>>2]=g,b[a+4>>2]=c,b[f+(m<<2)>>2]=l,a=(0|(h=h+1|0))==(0|l),j=6==(0|(i=k+1|0)),0|Fb(g,c)){g=1;break a}if((0|(l=l+(j&a&1)|0))>(0|d)){g=0;break}k=a?j?0:i:k,m=m+1|0,h=a?0:h}else for(k=0,l=1,m=1,h=0,g=a;;){if(!(h|k)){if(0==(0|(g=0|da(g,c,4,n)))&0==(0|(c=0|G()))){g=2;break a}if(0|Fb(g,c)){g=1;break a}}if(0==(0|(g=0|da(g,c,0|b[16+(k<<2)>>2],n)))&0==(0|(c=0|G()))){g=2;break a}if(b[(a=e+(m<<3)|0)>>2]=g,b[a+4>>2]=c,a=(0|(h=h+1|0))==(0|l),j=6==(0|(i=k+1|0)),0|Fb(g,c)){g=1;break a}if((0|(l=l+(j&a&1)|0))>(0|d)){g=0;break}k=a?j?0:i:k,m=m+1|0,h=a?0:h}else g=0}while(0);return S=o,0|(n=g)}function ca(a,c,d,e,f,g,h){d|=0,e|=0,f|=0,g|=0,h|=0;var l,m,i=0,j=0,k=0,n=0,o=0;if(m=S,S=S+16|0,l=m,0==(0|(a|=0))&0==(0|(c|=0)))S=m;else{if(i=0|bd(0|a,0|c,0|g,((0|g)<0)<<31>>31|0),G(),!(0==(0|(o=0|b[(n=j=e+(i<<3)|0)>>2]))&0==(0|(n=0|b[n+4>>2]))|(k=(0|o)==(0|a)&(0|n)==(0|c))))do{k=(0|(n=0|b[(o=j=e+((i=(i+1|0)%(0|g)|0)<<3)|0)>>2]))==(0|a)&(0|(o=0|b[o+4>>2]))==(0|c)}while(!(0==(0|n)&0==(0|o)|k));i=f+(i<<2)|0,k&&(0|b[i>>2])<=(0|h)||(b[(o=j)>>2]=a,b[o+4>>2]=c,b[i>>2]=h,(0|h)>=(0|d)||(o=h+1|0,b[l>>2]=0,ca(n=0|da(a,c,2,l),0|G(),d,e,f,g,o),b[l>>2]=0,ca(n=0|da(a,c,3,l),0|G(),d,e,f,g,o),b[l>>2]=0,ca(n=0|da(a,c,1,l),0|G(),d,e,f,g,o),b[l>>2]=0,ca(n=0|da(a,c,5,l),0|G(),d,e,f,g,o),b[l>>2]=0,ca(n=0|da(a,c,4,l),0|G(),d,e,f,g,o),b[l>>2]=0,ca(n=0|da(a,c,6,l),0|G(),d,e,f,g,o))),S=m}}function da(a,c,d,e){a|=0,c|=0,d|=0;var i,j,f=0,g=0,h=0,l=0,m=0,n=0,o=0;if((0|b[(e|=0)>>2])>0){f=0;do{d=0|Pa(d),f=f+1|0}while((0|f)<(0|b[e>>2]))}i=0|cd(0|a,0|c,45),G(),j=127&i,g=0|Lb(a,c),f=0|cd(0|a,0|c,52),G(),f&=15;a:do{if(f)for(;;){if(n=0|cd(0|a,0|c,0|(m=3*(15-f|0)|0)),G(),n&=7,o=0==(0|Rb(f)),f=f+-1|0,l=0|dd(7,0,0|m),c&=~(0|G()),a=(m=0|dd(0|b[(o?464:48)+(28*n|0)+(d<<2)>>2],0,0|m))|a&~l,c|=0|G(),!(d=0|b[(o?672:256)+(28*n|0)+(d<<2)>>2])){d=0;break a}if(!f){h=6;break}}else h=6}while(0);6==(0|h)&&(a|=n=0|dd(0|(o=0|b[880+(28*j|0)+(d<<2)>>2]),0,45),c=0|G()|-1040385&c,d=0|b[4304+(28*j|0)+(d<<2)>>2],127==(127&o|0)&&(o=0|dd(0|b[880+(28*j|0)+20>>2],0,45),c=0|G()|-1040385&c,d=0|b[4304+(28*j|0)+20>>2],a=0|Nb(o|a,c),c=0|G(),b[e>>2]=1+(0|b[e>>2]))),h=0|cd(0|a,0|c,45),G(),h&=127;b:do{if(0|la(h)){c:do{if(1==(0|Lb(a,c))){if((0|j)!=(0|h)){if(0|ra(h,0|b[7728+(28*j|0)>>2])){a=0|Pb(a,c),g=1,c=0|G();break}a=0|Nb(a,c),g=1,c=0|G();break}switch(0|g){case 5:a=0|Pb(a,c),c=0|G(),b[e>>2]=5+(0|b[e>>2]),g=0;break c;case 3:a=0|Nb(a,c),c=0|G(),b[e>>2]=1+(0|b[e>>2]),g=0;break c;default:return o=0,F(0|(n=0)),0|o}}else g=0}while(0);if((0|d)>0){f=0;do{a=0|Mb(a,c),c=0|G(),f=f+1|0}while((0|f)!=(0|d))}if((0|j)!=(0|h)){if(!(0|ma(h))){if(0!=(0|g)|5!=(0|Lb(a,c)))break;b[e>>2]=1+(0|b[e>>2]);break}switch(127&i){case 8:case 118:break b}3!=(0|Lb(a,c))&&(b[e>>2]=1+(0|b[e>>2]))}}else if((0|d)>0){f=0;do{a=0|Nb(a,c),c=0|G(),f=f+1|0}while((0|f)!=(0|d))}}while(0);return b[e>>2]=((0|b[e>>2])+d|0)%6|0,o=a,F(0|(n=c)),0|o}function ia(a,c,d,f,g,h){c|=0,d|=0,f|=0,g|=0,h|=0;var t,u,v,w,x,y,z,A,C,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,B=0,D=0,E=0;if(C=S,S=S+48|0,y=C+32|0,z=C+16|0,A=C,(0|(i=0|b[(a|=0)>>2]))<=0)return S=C,0|(B=0);t=a+4|0,u=y+8|0,v=z+8|0,w=A+8|0,x=((0|c)<0)<<31>>31,s=0;a:for(;;){q=(j=0|b[t>>2])+(s<<4)|0,b[y>>2]=b[q>>2],b[y+4>>2]=b[q+4>>2],b[y+8>>2]=b[q+8>>2],b[y+12>>2]=b[q+12>>2],(0|s)==(i+-1|0)?(b[z>>2]=b[j>>2],b[z+4>>2]=b[j+4>>2],b[z+8>>2]=b[j+8>>2],b[z+12>>2]=b[j+12>>2]):(q=j+(s+1<<4)|0,b[z>>2]=b[q>>2],b[z+4>>2]=b[q+4>>2],b[z+8>>2]=b[q+8>>2],b[z+12>>2]=b[q+12>>2]),q=0|za(y,z,d);b:do{if((0|q)>0){r=+(0|q),p=0;c:for(;;){E=+(q-p|0),D=+(0|p),e[A>>3]=+e[y>>3]*E/r+ +e[z>>3]*D/r,e[w>>3]=+e[u>>3]*E/r+ +e[v>>3]*D/r,j=0|bd(0|(n=0|Sb(A,d)),0|(o=0|G()),0|c,0|x),G(),l=0|b[(k=i=h+(j<<3)|0)>>2],k=0|b[k+4>>2];d:do{if(0==(0|l)&0==(0|k))B=14;else for(m=0;;){if((0|m)>(0|c)){i=1;break d}if((0|l)==(0|n)&(0|k)==(0|o)){i=7;break d}if(0==(0|(l=0|b[(k=i=h+((j=(j+1|0)%(0|c)|0)<<3)|0)>>2]))&0==(0|(k=0|b[k+4>>2]))){B=14;break}m=m+1|0}}while(0);switch(14==(0|B)&&(B=0,0==(0|n)&0==(0|o)?i=7:(b[i>>2]=n,b[i+4>>2]=o,i=0|b[f>>2],b[(m=g+(i<<3)|0)>>2]=n,b[m+4>>2]=o,b[f>>2]=i+1,i=0)),7&i){case 7:case 0:break;default:break c}if((0|q)<=(0|(p=p+1|0))){B=8;break b}}if(0|i){i=-1,B=20;break a}}else B=8}while(0);if(8==(0|B)&&(B=0),(0|(s=s+1|0))>=(0|(i=0|b[a>>2]))){i=0,B=20;break}}return 20==(0|B)?(S=C,0|i):0}function la(a){return 0|b[7728+(28*(a|=0)|0)+16>>2]}function ma(a){return 4==(0|(a|=0))|117==(0|a)|0}function na(a){return 0|b[11152+(216*(0|b[(a|=0)>>2])|0)+(72*(0|b[a+4>>2])|0)+(24*(0|b[a+8>>2])|0)+(b[a+12>>2]<<3)>>2]}function oa(a){return 0|b[11152+(216*(0|b[(a|=0)>>2])|0)+(72*(0|b[a+4>>2])|0)+(24*(0|b[a+8>>2])|0)+(b[a+12>>2]<<3)+4>>2]}function ra(a,c){return c|=0,(0|b[7728+(28*(a|=0)|0)+20>>2])==(0|c)?0|(c=1):0|(c=(0|b[7728+(28*a|0)+24>>2])==(0|c))}function sa(a,c){return 0|b[880+(28*(a|=0)|0)+((c|=0)<<2)>>2]}function ta(a,c){return c|=0,(0|b[880+(28*(a|=0)|0)>>2])==(0|c)?0|(c=0):(0|b[880+(28*a|0)+4>>2])==(0|c)?0|(c=1):(0|b[880+(28*a|0)+8>>2])==(0|c)?0|(c=2):(0|b[880+(28*a|0)+12>>2])==(0|c)?0|(c=3):(0|b[880+(28*a|0)+16>>2])==(0|c)?0|(c=4):(0|b[880+(28*a|0)+20>>2])==(0|c)?0|(c=5):0|((0|b[880+(28*a|0)+24>>2])==(0|c)?6:7)}function wa(a){return+e[(a|=0)+16>>3]<+e[a+24>>3]|0}function xa(a,b){a|=0;var d,f,c=0;return(c=+e[(b|=0)>>3])>=+e[a+8>>3]&&c<=+e[a>>3]?(d=+e[a+16>>3],c=+e[a+24>>3],b=(f=+e[b+8>>3])>=c,a=f<=d&1,d>2]=0,h=h+4|0}while((0|h)<(0|j));return _b(c,g),Vb(j=0|b[(h=g)>>2],h=0|b[h+4>>2],d),Wb(j,h,f),k=+jb(d,f+8|0),e[d>>3]=+e[a>>3],e[(h=d+8|0)>>3]=+e[a+16>>3],e[f>>3]=+e[a+8>>3],e[(j=f+8|0)>>3]=+e[a+24>>3],l=+jb(d,f),j=~~+A(+l*l/+ed(+ +q(+(+e[h>>3]-+e[j>>3])/(+e[d>>3]-+e[f>>3])),3)/(k*(2.59807621135*k)*.8)),S=i,0|(0==(0|j)?1:j)}function za(a,c,d){a|=0,c|=0,d|=0;var e,f,g,i,k,h=0,j=0;i=S,S=S+288|0,e=i+264|0,f=i+96|0,j=(h=g=i)+96|0;do{b[h>>2]=0,h=h+4|0}while((0|h)<(0|j));return _b(d,g),Vb(h=0|b[(j=g)>>2],j=0|b[j+4>>2],e),Wb(h,j,f),k=+jb(e,f+8|0),j=~~+A(+ +jb(a,c)/(2*k)),S=i,0|(0==(0|j)?1:j)}function Aa(a,c,d,e){c|=0,d|=0,e|=0,b[(a|=0)>>2]=c,b[a+4>>2]=d,b[a+8>>2]=e}function Ba(a,c){a|=0;var h,k,l,n,d=0,f=0,g=0,i=0,j=0,m=0,o=0;b[(n=(c|=0)+8|0)>>2]=0,k=+e[a>>3],i=+q(+k),l=+e[a+8>>3],i+=.5*(j=+q(+l)/.8660254037844386),i-=+(0|(d=~~i)),j-=+(0|(a=~~j));do{if(i<.5){if(i<.3333333333333333){if(b[c>>2]=d,j<.5*(i+1)){b[c+4>>2]=a;break}a=a+1|0,b[c+4>>2]=a;break}if(a=(1&!(j<(o=1-i)))+a|0,b[c+4>>2]=a,o<=j&j<2*i){d=d+1|0,b[c>>2]=d;break}b[c>>2]=d;break}if(!(i<.6666666666666666)){if(d=d+1|0,b[c>>2]=d,j<.5*i){b[c+4>>2]=a;break}a=a+1|0,b[c+4>>2]=a;break}if(j<1-i){if(b[c+4>>2]=a,2*i-1>2]=d;break}}else a=a+1|0,b[c+4>>2]=a;d=d+1|0,b[c>>2]=d}while(0);do{if(k<0){if(1&a){d=~~(+(0|d)-(2*(+((m=0|_c(0|d,((0|d)<0)<<31>>31|0,0|(m=(a+1|0)/2|0),((0|m)<0)<<31>>31|0))>>>0)+4294967296*+(0|G()))+1)),b[c>>2]=d;break}d=~~(+(0|d)-2*(+((m=0|_c(0|d,((0|d)<0)<<31>>31|0,0|(m=(0|a)/2|0),((0|m)<0)<<31>>31|0))>>>0)+4294967296*+(0|G()))),b[c>>2]=d;break}}while(0);m=c+4|0,l<0&&(d=d-((1|a<<1)/2|0)|0,b[c>>2]=d,a=0-a|0,b[m>>2]=a),f=a-d|0,(0|d)<0?(g=0-d|0,b[m>>2]=f,b[n>>2]=g,b[c>>2]=0,a=f,d=0):g=0,(0|a)<0&&(d=d-a|0,b[c>>2]=d,g=g-a|0,b[n>>2]=g,b[m>>2]=0,a=0),h=d-g|0,f=a-g|0,(0|g)<0&&(b[c>>2]=h,b[m>>2]=f,b[n>>2]=0,a=f,d=h,g=0),(0|(f=(0|g)<(0|(f=(0|a)<(0|d)?a:d))?g:f))<=0||(b[c>>2]=d-f,b[m>>2]=a-f,b[n>>2]=g-f)}function Ca(a){var h,c=0,d=0,e=0,f=0,g=0;c=0|b[(a|=0)>>2],d=0|b[(h=a+4|0)>>2],(0|c)<0&&(d=d-c|0,b[h>>2]=d,b[(g=a+8|0)>>2]=(0|b[g>>2])-c,b[a>>2]=0,c=0),(0|d)<0?(c=c-d|0,b[a>>2]=c,f=(0|b[(g=a+8|0)>>2])-d|0,b[g>>2]=f,b[h>>2]=0,d=0):(g=f=a+8|0,f=0|b[f>>2]),(0|f)<0&&(c=c-f|0,b[a>>2]=c,d=d-f|0,b[h>>2]=d,b[g>>2]=0,f=0),(0|(e=(0|f)<(0|(e=(0|d)<(0|c)?d:c))?f:e))<=0||(b[a>>2]=c-e,b[h>>2]=d-e,b[g>>2]=f-e)}function Da(a,c){c|=0;var d,f;f=0|b[(a|=0)+8>>2],d=+((0|b[a+4>>2])-f|0),e[c>>3]=+((0|b[a>>2])-f|0)-.5*d,e[c+8>>3]=.8660254037844386*d}function Ea(a,c,d){a|=0,c|=0,b[(d|=0)>>2]=(0|b[c>>2])+(0|b[a>>2]),b[d+4>>2]=(0|b[c+4>>2])+(0|b[a+4>>2]),b[d+8>>2]=(0|b[c+8>>2])+(0|b[a+8>>2])}function Fa(a,c,d){a|=0,c|=0,b[(d|=0)>>2]=(0|b[a>>2])-(0|b[c>>2]),b[d+4>>2]=(0|b[a+4>>2])-(0|b[c+4>>2]),b[d+8>>2]=(0|b[a+8>>2])-(0|b[c+8>>2])}function Ga(a,c){c|=0;var e,d=0;d=0|B(0|b[(a|=0)>>2],c),b[a>>2]=d,e=0|B(0|b[(d=a+4|0)>>2],c),b[d>>2]=e,c=0|B(0|b[(a=a+8|0)>>2],c),b[a>>2]=c}function Ha(a){var g,h,c=0,d=0,e=0,f=0,i=0;i=(0|(h=0|b[(a|=0)>>2]))<0,a=(a=(d=(0|(f=((g=(0|(e=(0|b[a+4>>2])-(i?h:0)|0))<0)?0-e|0:0)+((0|b[a+8>>2])-(i?h:0))|0))<0)?0:f)-((e=(0|(d=(0|a)<(0|(d=(0|(c=(g?0:e)-(d?f:0)|0))<(0|(f=(i?0:h)-(g?e:0)-(d?f:0)|0))?c:f))?a:d))>0)?d:0)|0,c=c-(e?d:0)|0;a:do{switch(f-(e?d:0)|0){case 0:switch(0|c){case 0:return 0|(i=0==(0|a)?0:1==(0|a)?1:7);case 1:return 0|(i=0==(0|a)?2:1==(0|a)?3:7);default:break a}case 1:switch(0|c){case 0:return 0|(i=0==(0|a)?4:1==(0|a)?5:7);case 1:if(a)break a;return 0|(a=6);default:break a}}}while(0);return 0|(i=7)}function Ia(a){var h,i,c=0,d=0,e=0,f=0,g=0;d=0|b[(h=(a|=0)+8|0)>>2],e=0|Vc(+((3*(c=(0|b[a>>2])-d|0)|0)-(d=(0|b[(i=a+4|0)>>2])-d|0)|0)/7),b[a>>2]=e,c=0|Vc(+((d<<1)+c|0)/7),b[i>>2]=c,b[h>>2]=0,d=c-e|0,(0|e)<0?(g=0-e|0,b[i>>2]=d,b[h>>2]=g,b[a>>2]=0,c=d,e=0,d=g):d=0,(0|c)<0&&(e=e-c|0,b[a>>2]=e,d=d-c|0,b[h>>2]=d,b[i>>2]=0,c=0),g=e-d|0,f=c-d|0,(0|d)<0?(b[a>>2]=g,b[i>>2]=f,b[h>>2]=0,c=f,f=g,d=0):f=e,(0|(e=(0|d)<(0|(e=(0|c)<(0|f)?c:f))?d:e))<=0||(b[a>>2]=f-e,b[i>>2]=c-e,b[h>>2]=d-e)}function Ja(a){var h,i,c=0,d=0,e=0,f=0,g=0;d=0|b[(h=(a|=0)+8|0)>>2],e=0|Vc(+(((c=(0|b[a>>2])-d|0)<<1)+(d=(0|b[(i=a+4|0)>>2])-d|0)|0)/7),b[a>>2]=e,c=0|Vc(+((3*d|0)-c|0)/7),b[i>>2]=c,b[h>>2]=0,d=c-e|0,(0|e)<0?(g=0-e|0,b[i>>2]=d,b[h>>2]=g,b[a>>2]=0,c=d,e=0,d=g):d=0,(0|c)<0&&(e=e-c|0,b[a>>2]=e,d=d-c|0,b[h>>2]=d,b[i>>2]=0,c=0),g=e-d|0,f=c-d|0,(0|d)<0?(b[a>>2]=g,b[i>>2]=f,b[h>>2]=0,c=f,f=g,d=0):f=e,(0|(e=(0|d)<(0|(e=(0|c)<(0|f)?c:f))?d:e))<=0||(b[a>>2]=f-e,b[i>>2]=c-e,b[h>>2]=d-e)}function Ka(a){var g,h,i,c=0,d=0,e=0,f=0;c=0|b[(a|=0)>>2],d=0|b[(h=a+4|0)>>2],e=0|b[(i=a+8|0)>>2],f=d+(3*c|0)|0,b[a>>2]=f,d=e+(3*d|0)|0,b[h>>2]=d,c=(3*e|0)+c|0,b[i>>2]=c,e=d-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=e,b[i>>2]=c,b[a>>2]=0,d=e,e=0):e=f,(0|d)<0&&(e=e-d|0,b[a>>2]=e,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=e-c|0,f=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=f,b[i>>2]=0,e=g,c=0):f=d,(0|(d=(0|c)<(0|(d=(0|f)<(0|e)?f:e))?c:d))<=0||(b[a>>2]=e-d,b[h>>2]=f-d,b[i>>2]=c-d)}function La(a){var g,h,i,c=0,d=0,e=0,f=0;f=0|b[(a|=0)>>2],e=(3*(c=0|b[(h=a+4|0)>>2])|0)+f|0,f=(d=0|b[(i=a+8|0)>>2])+(3*f|0)|0,b[a>>2]=f,b[h>>2]=e,c=(3*d|0)+c|0,b[i>>2]=c,d=e-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=d,b[i>>2]=c,b[a>>2]=0,f=0):d=e,(0|d)<0&&(f=f-d|0,b[a>>2]=f,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=f-c|0,e=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=e,b[i>>2]=0,f=g,c=0):e=d,(0|(d=(0|c)<(0|(d=(0|e)<(0|f)?e:f))?c:d))<=0||(b[a>>2]=f-d,b[h>>2]=e-d,b[i>>2]=c-d)}function Ma(a,c){a|=0;var g,h,i,d=0,e=0,f=0;((c|=0)+-1|0)>>>0>=6||(f=(0|b[15472+(12*c|0)>>2])+(0|b[a>>2])|0,b[a>>2]=f,i=a+4|0,e=(0|b[15472+(12*c|0)+4>>2])+(0|b[i>>2])|0,b[i>>2]=e,h=a+8|0,c=(0|b[15472+(12*c|0)+8>>2])+(0|b[h>>2])|0,b[h>>2]=c,d=e-f|0,(0|f)<0?(c=c-f|0,b[i>>2]=d,b[h>>2]=c,b[a>>2]=0,e=0):(d=e,e=f),(0|d)<0&&(e=e-d|0,b[a>>2]=e,c=c-d|0,b[h>>2]=c,b[i>>2]=0,d=0),g=e-c|0,f=d-c|0,(0|c)<0?(b[a>>2]=g,b[i>>2]=f,b[h>>2]=0,e=g,c=0):f=d,(0|(d=(0|c)<(0|(d=(0|f)<(0|e)?f:e))?c:d))<=0||(b[a>>2]=e-d,b[i>>2]=f-d,b[h>>2]=c-d))}function Na(a){var g,h,i,c=0,d=0,e=0,f=0;f=0|b[(a|=0)>>2],e=(c=0|b[(h=a+4|0)>>2])+f|0,f=(d=0|b[(i=a+8|0)>>2])+f|0,b[a>>2]=f,b[h>>2]=e,c=d+c|0,b[i>>2]=c,d=e-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=d,b[i>>2]=c,b[a>>2]=0,e=0):(d=e,e=f),(0|d)<0&&(e=e-d|0,b[a>>2]=e,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=e-c|0,f=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=f,b[i>>2]=0,e=g,c=0):f=d,(0|(d=(0|c)<(0|(d=(0|f)<(0|e)?f:e))?c:d))<=0||(b[a>>2]=e-d,b[h>>2]=f-d,b[i>>2]=c-d)}function Oa(a){var g,h,i,c=0,d=0,e=0,f=0;c=0|b[(a|=0)>>2],e=0|b[(h=a+4|0)>>2],d=0|b[(i=a+8|0)>>2],f=e+c|0,b[a>>2]=f,e=d+e|0,b[h>>2]=e,c=d+c|0,b[i>>2]=c,d=e-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=d,b[i>>2]=c,b[a>>2]=0,e=0):(d=e,e=f),(0|d)<0&&(e=e-d|0,b[a>>2]=e,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=e-c|0,f=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=f,b[i>>2]=0,e=g,c=0):f=d,(0|(d=(0|c)<(0|(d=(0|f)<(0|e)?f:e))?c:d))<=0||(b[a>>2]=e-d,b[h>>2]=f-d,b[i>>2]=c-d)}function Pa(a){switch(0|(a|=0)){case 1:a=5;break;case 5:a=4;break;case 4:a=6;break;case 6:a=2;break;case 2:a=3;break;case 3:a=1}return 0|a}function Qa(a){switch(0|(a|=0)){case 1:a=3;break;case 3:a=2;break;case 2:a=6;break;case 6:a=4;break;case 4:a=5;break;case 5:a=1}return 0|a}function Ra(a){var g,h,i,c=0,d=0,e=0,f=0;c=0|b[(a|=0)>>2],d=0|b[(h=a+4|0)>>2],e=0|b[(i=a+8|0)>>2],f=d+(c<<1)|0,b[a>>2]=f,d=e+(d<<1)|0,b[h>>2]=d,c=(e<<1)+c|0,b[i>>2]=c,e=d-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=e,b[i>>2]=c,b[a>>2]=0,d=e,e=0):e=f,(0|d)<0&&(e=e-d|0,b[a>>2]=e,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=e-c|0,f=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=f,b[i>>2]=0,e=g,c=0):f=d,(0|(d=(0|c)<(0|(d=(0|f)<(0|e)?f:e))?c:d))<=0||(b[a>>2]=e-d,b[h>>2]=f-d,b[i>>2]=c-d)}function Sa(a){var g,h,i,c=0,d=0,e=0,f=0;f=0|b[(a|=0)>>2],e=((c=0|b[(h=a+4|0)>>2])<<1)+f|0,f=(d=0|b[(i=a+8|0)>>2])+(f<<1)|0,b[a>>2]=f,b[h>>2]=e,c=(d<<1)+c|0,b[i>>2]=c,d=e-f|0,(0|f)<0?(c=c-f|0,b[h>>2]=d,b[i>>2]=c,b[a>>2]=0,f=0):d=e,(0|d)<0&&(f=f-d|0,b[a>>2]=f,c=c-d|0,b[i>>2]=c,b[h>>2]=0,d=0),g=f-c|0,e=d-c|0,(0|c)<0?(b[a>>2]=g,b[h>>2]=e,b[i>>2]=0,f=g,c=0):e=d,(0|(d=(0|c)<(0|(d=(0|e)<(0|f)?e:f))?c:d))<=0||(b[a>>2]=f-d,b[h>>2]=e-d,b[i>>2]=c-d)}function Ta(a,c){c|=0;var g,h,i,d=0,e=0,f=0;return i=(0|(h=(0|b[(a|=0)>>2])-(0|b[c>>2])|0))<0,g=(0|(e=(0|b[a+4>>2])-(0|b[c+4>>2])-(i?h:0)|0))<0,c=(c=(a=(0|(f=(i?0-h|0:0)+(0|b[a+8>>2])-(0|b[c+8>>2])+(g?0-e|0:0)|0))<0)?0:f)-((e=(0|(a=(0|c)<(0|(a=(0|(d=(g?0:e)-(a?f:0)|0))<(0|(f=(i?0:h)-(g?e:0)-(a?f:0)|0))?d:f))?c:a))>0)?a:0)|0,d=d-(e?a:0)|0,0|((0|(a=(0|(a=f-(e?a:0)|0))>-1?a:0-a|0))>(0|(c=(0|(d=(0|d)>-1?d:0-d|0))>(0|(c=(0|c)>-1?c:0-c|0))?d:c))?a:c)}function Ua(a,c){c|=0;var d;d=0|b[(a|=0)+8>>2],b[c>>2]=(0|b[a>>2])-d,b[c+4>>2]=(0|b[a+4>>2])-d}function Va(a,c){c|=0;var g,h,i,d=0,e=0,f=0;e=0|b[(a|=0)>>2],b[c>>2]=e,a=0|b[a+4>>2],b[(h=c+4|0)>>2]=a,b[(i=c+8|0)>>2]=0,d=a-e|0,(0|e)<0?(a=0-e|0,b[h>>2]=d,b[i>>2]=a,b[c>>2]=0,e=0):(d=a,a=0),(0|d)<0&&(e=e-d|0,b[c>>2]=e,a=a-d|0,b[i>>2]=a,b[h>>2]=0,d=0),g=e-a|0,f=d-a|0,(0|a)<0?(b[c>>2]=g,b[h>>2]=f,b[i>>2]=0,d=f,f=g,a=0):f=e,(0|(e=(0|a)<(0|(e=(0|d)<(0|f)?d:f))?a:e))<=0||(b[c>>2]=f-e,b[h>>2]=d-e,b[i>>2]=a-e)}function Wa(a){var c,d,e,f;d=(f=0|b[(c=(a|=0)+8|0)>>2])-(0|b[a>>2])|0,b[a>>2]=d,a=(0|b[(e=a+4|0)>>2])-f|0,b[e>>2]=a,b[c>>2]=0-(a+d)}function Xa(a){var h,i,c=0,d=0,e=0,f=0,g=0;c=0-(d=0|b[(a|=0)>>2])|0,b[a>>2]=c,b[(h=a+8|0)>>2]=0,f=(e=0|b[(i=a+4|0)>>2])+d|0,(0|d)>0?(b[i>>2]=f,b[h>>2]=d,b[a>>2]=0,c=0,e=f):d=0,(0|e)<0?(g=c-e|0,b[a>>2]=g,d=d-e|0,b[h>>2]=d,b[i>>2]=0,f=g-d|0,c=0-d|0,(0|d)<0?(b[a>>2]=f,b[i>>2]=c,b[h>>2]=0,e=c,d=0):(e=0,f=g)):f=c,(0|(c=(0|d)<(0|(c=(0|e)<(0|f)?e:f))?d:c))<=0||(b[a>>2]=f-c,b[i>>2]=e-c,b[h>>2]=d-c)}function Za(a,c,d,f){c|=0,d|=0,f|=0;var k,g=0,h=0,i=0,j=0;if(k=S,S=S+32|0,function Jc(a,b){a|=0,b|=0;var c=0,d=0,f=0;return c=+e[a>>3],d=+t(+c),c=+u(+c),e[b+16>>3]=c,c=+e[a+8>>3],f=d*+t(+c),e[b>>3]=f,c=d*+u(+c),void(e[b+8>>3]=c)}(a|=0,h=k),b[d>>2]=0,g=+Ic(15888,h),(i=+Ic(15912,h))>2]=1,g=i),(i=+Ic(15936,h))>2]=2,g=i),(i=+Ic(15960,h))>2]=3,g=i),(i=+Ic(15984,h))>2]=4,g=i),(i=+Ic(16008,h))>2]=5,g=i),(i=+Ic(16032,h))>2]=6,g=i),(i=+Ic(16056,h))>2]=7,g=i),(i=+Ic(16080,h))>2]=8,g=i),(i=+Ic(16104,h))>2]=9,g=i),(i=+Ic(16128,h))>2]=10,g=i),(i=+Ic(16152,h))>2]=11,g=i),(i=+Ic(16176,h))>2]=12,g=i),(i=+Ic(16200,h))>2]=13,g=i),(i=+Ic(16224,h))>2]=14,g=i),(i=+Ic(16248,h))>2]=15,g=i),(i=+Ic(16272,h))>2]=16,g=i),(i=+Ic(16296,h))>2]=17,g=i),(i=+Ic(16320,h))>2]=18,g=i),(i=+Ic(16344,h))>2]=19,g=i),(i=+w(+(1-.5*g)))<1e-16)return b[f>>2]=0,b[f+4>>2]=0,b[f+8>>2]=0,b[f+12>>2]=0,void(S=k);if(d=0|b[d>>2],g=+gb((g=+e[16368+(24*d|0)>>3])-+gb(+function lb(a,b){a|=0,b|=0;var c=0,d=0,f=0,g=0,h=0;return g=+e[b>>3],d=+t(+g),f=+e[b+8>>3]-+e[a+8>>3],h=d*+u(+f),c=+e[a>>3],+ +z(+h,+(+u(+g)*+t(+c)-+t(+f)*(d*+u(+c))))}(15568+(d<<4)|0,a))),j=0|Rb(c)?+gb(g+-.3334731722518321):g,g=+v(+i)/.381966011250105,(0|c)>0){h=0;do{g*=2.6457513110645907,h=h+1|0}while((0|h)!=(0|c))}i=+t(+j)*g,e[f>>3]=i,j=+u(+j)*g,e[f+8>>3]=j,S=k}function _a(a,c,d,f,g){c|=0,d|=0,f|=0,g|=0;var h=0,i=0;if(h=+function Fc(a){a|=0;var b=0,c=0;return c=+e[a>>3],b=+e[a+8>>3],+ +r(+(c*c+b*b))}(a|=0),h<1e-16)return c=15568+(c<<4)|0,b[g>>2]=b[c>>2],b[g+4>>2]=b[c+4>>2],b[g+8>>2]=b[c+8>>2],void(b[g+12>>2]=b[c+12>>2]);if(i=+z(+ +e[a+8>>3],+ +e[a>>3]),(0|d)>0){a=0;do{h/=2.6457513110645907,a=a+1|0}while((0|a)!=(0|d))}f?(h/=3,d=0==(0|Rb(d)),h=+y(.381966011250105*(d?h:h/2.6457513110645907))):(h=+y(.381966011250105*h),0|Rb(d)&&(i=+gb(i+.3334731722518321))),function mb(a,c,d,f){a|=0,c=+c,d=+d,f|=0;var g=0,h=0,i=0,j=0;if(d<1e-16)return b[f>>2]=b[a>>2],b[f+4>>2]=b[a+4>>2],b[f+8>>2]=b[a+8>>2],void(b[f+12>>2]=b[a+12>>2]);h=c<0?c+6.283185307179586:c,h=c>=6.283185307179586?h+-6.283185307179586:h;do{if(!(h<1e-16)){if(g=+q(+(h+-3.141592653589793))<1e-16,c=+e[a>>3],g){c-=d,e[f>>3]=c,g=f;break}if(i=+t(+d),d=+u(+d),c=i*+u(+c)+ +t(+h)*(d*+t(+c)),c=+x(+((c=c>1?1:c)<-1?-1:c)),e[f>>3]=c,+q(+(c+-1.5707963267948966))<1e-16)return e[f>>3]=1.5707963267948966,void(e[f+8>>3]=0);if(+q(+(c+1.5707963267948966))<1e-16)return e[f>>3]=-1.5707963267948966,void(e[f+8>>3]=0);if(j=+t(+c),h=d*+u(+h)/j,d=+e[a>>3],c=(i-+u(+c)*+u(+d))/+t(+d)/j,i=h>1?1:h,c=c>1?1:c,(c=+e[a+8>>3]+ +z(+(i<-1?-1:i),+(c<-1?-1:c)))>3.141592653589793)do{c+=-6.283185307179586}while(c>3.141592653589793);if(c<-3.141592653589793)do{c+=6.283185307179586}while(c<-3.141592653589793);return void(e[f+8>>3]=c)}c=+e[a>>3]+d,e[f>>3]=c,g=f}while(0);if(+q(+(c+-1.5707963267948966))<1e-16)return e[g>>3]=1.5707963267948966,void(e[f+8>>3]=0);if(+q(+(c+1.5707963267948966))<1e-16)return e[g>>3]=-1.5707963267948966,void(e[f+8>>3]=0);if(c=+e[a+8>>3],c>3.141592653589793)do{c+=-6.283185307179586}while(c>3.141592653589793);if(c<-3.141592653589793)do{c+=6.283185307179586}while(c<-3.141592653589793);return void(e[f+8>>3]=c)}(15568+(c<<4)|0,+gb(+e[16368+(24*c|0)>>3]-i),h,g)}function $a(a,c,d){c|=0,d|=0;var e,f;e=S,S=S+16|0,Da((a|=0)+4|0,f=e),_a(f,0|b[a>>2],c,0,d),S=e}function ab(a,c,d,f,g){a|=0,c|=0,d|=0,f|=0,g|=0;var k,l,m,n,o,p,q,r,s,t,v,w,x,y,z,A,B,C,D,E,F,G,h=0,i=0,j=0,u=0,I=0,J=0;if(G=S,S=S+272|0,u=G+240|0,D=G,E=G+224|0,F=G+208|0,v=G+176|0,w=G+160|0,x=G+192|0,y=G+144|0,z=G+128|0,A=G+112|0,B=G+96|0,C=G+80|0,b[(h=G+256|0)>>2]=c,b[u>>2]=b[a>>2],b[u+4>>2]=b[a+4>>2],b[u+8>>2]=b[a+8>>2],b[u+12>>2]=b[a+12>>2],bb(u,h,D),b[g>>2]=0,(0|(u=f+d+(5==(0|f)&1)|0))<=(0|d))S=G;else{l=E+4|0,m=v+4|0,n=d+5|0,o=16848+((k=0|b[h>>2])<<2)|0,p=16928+(k<<2)|0,q=z+8|0,r=A+8|0,s=B+8|0,t=F+4|0,j=d;a:for(;;){i=D+(((0|j)%5|0)<<4)|0,b[F>>2]=b[i>>2],b[F+4>>2]=b[i+4>>2],b[F+8>>2]=b[i+8>>2],b[F+12>>2]=b[i+12>>2];do{}while(2==(0|cb(F,k,0,1)));if((0|j)>(0|d)&0!=(0|Rb(c))){if(b[v>>2]=b[F>>2],b[v+4>>2]=b[F+4>>2],b[v+8>>2]=b[F+8>>2],b[v+12>>2]=b[F+12>>2],Da(l,w),f=0|b[v>>2],h=0|b[17008+(80*f|0)+(b[E>>2]<<2)>>2],b[v>>2]=b[18608+(80*f|0)+(20*h|0)>>2],(0|(i=0|b[18608+(80*f|0)+(20*h|0)+16>>2]))>0){a=0;do{Na(m),a=a+1|0}while((0|a)<(0|i))}switch(i=18608+(80*f|0)+(20*h|0)+4|0,b[x>>2]=b[i>>2],b[x+4>>2]=b[i+4>>2],b[x+8>>2]=b[i+8>>2],Ga(x,3*(0|b[o>>2])|0),Ea(m,x,m),Ca(m),Da(m,y),I=+(0|b[p>>2]),e[z>>3]=3*I,e[q>>3]=0,J=-1.5*I,e[A>>3]=J,e[r>>3]=2.598076211353316*I,e[B>>3]=J,e[s>>3]=-2.598076211353316*I,0|b[17008+(80*(0|b[v>>2])|0)+(b[F>>2]<<2)>>2]){case 1:a=A,f=z;break;case 3:a=B,f=A;break;case 2:a=z,f=B;break;default:a=12;break a}Gc(w,y,f,a,C),_a(C,0|b[v>>2],k,1,g+8+(b[g>>2]<<4)|0),b[g>>2]=1+(0|b[g>>2])}if((0|j)<(0|n)&&(Da(t,v),_a(v,0|b[F>>2],k,1,g+8+(b[g>>2]<<4)|0),b[g>>2]=1+(0|b[g>>2])),b[E>>2]=b[F>>2],b[E+4>>2]=b[F+4>>2],b[E+8>>2]=b[F+8>>2],b[E+12>>2]=b[F+12>>2],(0|(j=j+1|0))>=(0|u)){a=3;break}}3!=(0|a)?12==(0|a)&&H(22474,22521,581,22531):S=G}}function bb(a,c,d){a|=0,c|=0,d|=0;var j,e=0,f=0,g=0,h=0,i=0;j=S,S=S+128|0,f=j,h=20208,i=(g=e=j+64|0)+60|0;do{b[g>>2]=b[h>>2],g=g+4|0,h=h+4|0}while((0|g)<(0|i));h=20272,i=(g=f)+60|0;do{b[g>>2]=b[h>>2],g=g+4|0,h=h+4|0}while((0|g)<(0|i));e=(i=0==(0|Rb(0|b[c>>2])))?e:f,Ra(f=a+4|0),Sa(f),0|Rb(0|b[c>>2])&&(La(f),b[c>>2]=1+(0|b[c>>2])),b[d>>2]=b[a>>2],Ea(f,e,c=d+4|0),Ca(c),b[d+16>>2]=b[a>>2],Ea(f,e+12|0,c=d+20|0),Ca(c),b[d+32>>2]=b[a>>2],Ea(f,e+24|0,c=d+36|0),Ca(c),b[d+48>>2]=b[a>>2],Ea(f,e+36|0,c=d+52|0),Ca(c),b[d+64>>2]=b[a>>2],Ea(f,e+48|0,d=d+68|0),Ca(d),S=j}function cb(a,c,d,e){d|=0,e|=0;var h,i,k,l,n,p,f=0,g=0,j=0,m=0,o=0;if(p=S,S=S+32|0,n=p+12|0,i=p,o=(a|=0)+4|0,m=0|b[16928+((c|=0)<<2)>>2],m=(l=0!=(0|e))?3*m|0:m,f=0|b[o>>2],h=0|b[(k=a+8|0)>>2],l){if((0|(f=h+f+(e=0|b[(g=a+12|0)>>2])|0))==(0|m))return S=p,0|(o=1);j=g}else f=h+f+(e=0|b[(j=a+12|0)>>2])|0;if((0|f)<=(0|m))return S=p,0|(o=0);do{if((0|e)>0){if(e=0|b[a>>2],(0|h)>0){g=18608+(80*e|0)+60|0,e=a;break}e=18608+(80*e|0)+40|0,d?(Aa(n,m,0,0),Fa(o,n,i),Oa(i),Ea(i,n,o),g=e,e=a):(g=e,e=a)}else g=18608+(80*(0|b[a>>2])|0)+20|0,e=a}while(0);if(b[e>>2]=b[g>>2],(0|b[(f=g+16|0)>>2])>0){e=0;do{Na(o),e=e+1|0}while((0|e)<(0|b[f>>2]))}return a=g+4|0,b[n>>2]=b[a>>2],b[n+4>>2]=b[a+4>>2],b[n+8>>2]=b[a+8>>2],c=0|b[16848+(c<<2)>>2],Ga(n,l?3*c|0:c),Ea(o,n,o),Ca(o),e=l&&((0|b[k>>2])+(0|b[o>>2])+(0|b[j>>2])|0)==(0|m)?1:2,S=p,0|(o=e)}function db(a,b){a|=0,b|=0;var c=0;do{c=0|cb(a,b,0,1)}while(2==(0|c));return 0|c}function eb(a,c,d,f,g){a|=0,c|=0,d|=0,f|=0,g|=0;var k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,h=0,i=0,j=0,C=0,D=0;if(B=S,S=S+240|0,x=B+208|0,y=B,z=B+192|0,A=B+176|0,s=B+160|0,t=B+144|0,u=B+128|0,v=B+112|0,w=B+96|0,b[(h=B+224|0)>>2]=c,b[x>>2]=b[a>>2],b[x+4>>2]=b[a+4>>2],b[x+8>>2]=b[a+8>>2],b[x+12>>2]=b[a+12>>2],fb(x,h,y),b[g>>2]=0,(0|(r=f+d+(6==(0|f)&1)|0))<=(0|d))S=B;else{l=d+6|0,m=16928+((k=0|b[h>>2])<<2)|0,n=t+8|0,o=u+8|0,p=v+8|0,q=z+4|0,i=0,j=d,f=-1;a:for(;;){if(a=y+((h=(0|j)%6|0)<<4)|0,b[z>>2]=b[a>>2],b[z+4>>2]=b[a+4>>2],b[z+8>>2]=b[a+8>>2],b[z+12>>2]=b[a+12>>2],a=i,i=0|cb(z,k,0,1),(0|j)>(0|d)&0!=(0|Rb(c))&&(1!=(0|a)&&(0|b[z>>2])!=(0|f))){switch(Da(y+(((h+5|0)%6|0)<<4)+4|0,A),Da(y+(h<<4)+4|0,s),C=+(0|b[m>>2]),e[t>>3]=3*C,e[n>>3]=0,D=-1.5*C,e[u>>3]=D,e[o>>3]=2.598076211353316*C,e[v>>3]=D,e[p>>3]=-2.598076211353316*C,h=0|b[x>>2],0|b[17008+(80*h|0)+(((0|f)==(0|h)?0|b[z>>2]:f)<<2)>>2]){case 1:a=u,f=t;break;case 3:a=v,f=u;break;case 2:a=t,f=v;break;default:a=8;break a}Gc(A,s,f,a,w),0|Hc(A,w)||0|Hc(s,w)||(_a(w,0|b[x>>2],k,1,g+8+(b[g>>2]<<4)|0),b[g>>2]=1+(0|b[g>>2]))}if((0|j)<(0|l)&&(Da(q,A),_a(A,0|b[z>>2],k,1,g+8+(b[g>>2]<<4)|0),b[g>>2]=1+(0|b[g>>2])),(0|(j=j+1|0))>=(0|r)){a=3;break}f=0|b[z>>2]}3!=(0|a)?8==(0|a)&&H(22557,22521,746,22602):S=B}}function fb(a,c,d){a|=0,c|=0,d|=0;var j,e=0,f=0,g=0,h=0,i=0;j=S,S=S+160|0,f=j,h=20336,i=(g=e=j+80|0)+72|0;do{b[g>>2]=b[h>>2],g=g+4|0,h=h+4|0}while((0|g)<(0|i));h=20416,i=(g=f)+72|0;do{b[g>>2]=b[h>>2],g=g+4|0,h=h+4|0}while((0|g)<(0|i));e=(i=0==(0|Rb(0|b[c>>2])))?e:f,Ra(f=a+4|0),Sa(f),0|Rb(0|b[c>>2])&&(La(f),b[c>>2]=1+(0|b[c>>2])),b[d>>2]=b[a>>2],Ea(f,e,c=d+4|0),Ca(c),b[d+16>>2]=b[a>>2],Ea(f,e+12|0,c=d+20|0),Ca(c),b[d+32>>2]=b[a>>2],Ea(f,e+24|0,c=d+36|0),Ca(c),b[d+48>>2]=b[a>>2],Ea(f,e+36|0,c=d+52|0),Ca(c),b[d+64>>2]=b[a>>2],Ea(f,e+48|0,c=d+68|0),Ca(c),b[d+80>>2]=b[a>>2],Ea(f,e+60|0,d=d+84|0),Ca(d),S=j}function gb(a){var b;return b=(a=+a)<0?a+6.283185307179586:a,+(a>=6.283185307179586?b+-6.283185307179586:b)}function hb(a,b){return b|=0,+q(+(+e[(a|=0)>>3]-+e[b>>3]))<17453292519943298e-27?0|(b=+q(+(+e[a+8>>3]-+e[b+8>>3]))<17453292519943298e-27):0|(b=0)}function jb(a,b){a|=0;var d,f,g,c=0;return f=+e[(b|=0)>>3],d=+e[a>>3],c=(g=+u(.5*(f-d)))*g+(c=+u(.5*(+e[b+8>>3]-+e[a+8>>3])))*(+t(+f)*+t(+d)*c),2*+z(+ +r(+c),+ +r(+(1-c)))*6371.007180918475}function sb(a,b,c){a|=0,c|=0;var i,k,l,m,d=0,f=0,g=0,h=0,j=0,n=0;return n=+e[(b|=0)>>3],l=+e[a>>3],j=+u(.5*(n-l)),g=+e[b+8>>3],k=+e[a+8>>3],h=+u(.5*(g-k)),i=+t(+l),m=+t(+n),h=2*+z(+ +r(+(h=j*j+h*(m*i*h))),+ +r(+(1-h))),j=+e[c>>3],n=+u(.5*(j-n)),d=+e[c+8>>3],g=+u(.5*(d-g)),f=+t(+j),g=2*+z(+ +r(+(g=n*n+g*(m*f*g))),+ +r(+(1-g))),j=+u(.5*(l-j)),d=+u(.5*(k-d)),d=2*+z(+ +r(+(d=j*j+d*(i*f*d))),+ +r(+(1-d))),4*+y(+ +r(+ +v(.5*(f=.5*(h+g+d)))*+v(.5*(f-h))*+v(.5*(f-g))*+v(.5*(f-d))))}function Ab(a,b){return b=0|cd(0|(a|=0),0|(b|=0),45),G(),127&b|0}function Bb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(!(!0&134217728==(-16777216&(b|=0)|0)))return 0|(b=0);if(g=0|cd(0|(a|=0),0|b,45),G(),(g&=127)>>>0>121)return 0|(b=0);c=0|cd(0|a,0|b,52),G(),c&=15;do{if(0|c){for(e=1,d=0;;){if(f=0|cd(0|a,0|b,3*(15-e|0)|0),G(),0!=(0|(f&=7))&(1^d)){if(1==(0|f)&0!=(0|la(g))){h=0,d=13;break}d=1}if(7==(0|f)){h=0,d=13;break}if(!(e>>>0>>0)){d=9;break}e=e+1|0}if(9==(0|d)){if(15!=(0|c))break;return 0|(h=1)}if(13==(0|d))return 0|h}}while(0);for(;;){if(h=0|cd(0|a,0|b,3*(14-c|0)|0),G(),!(7==(7&h|0)&!0)){h=0,d=13;break}if(!(c>>>0<14)){h=1,d=13;break}c=c+1|0}return 13==(0|d)?0|h:0}function Cb(a,b,c){c|=0;var d=0,e=0;if(d=0|cd(0|(a|=0),0|(b|=0),52),G(),(0|(d&=15))>=(0|c)){if((0|d)!=(0|c))if(c>>>0<=15){if(a|=e=0|dd(0|c,0,52),b=0|G()|-15728641&b,(0|d)>(0|c))do{e=0|dd(7,0,3*(14-c|0)|0),c=c+1|0,a|=e,b=0|G()|b}while((0|c)<(0|d))}else b=0,a=0}else b=0,a=0;return F(0|b),0|a}function Eb(a,c,d,e){d|=0,e|=0;var k,f=0,g=0,h=0,i=0,j=0,l=0;if(h=0|cd(0|(a|=0),0|(c|=0),52),G(),(0|d)<16&(0|(h&=15))<=(0|d)){if((0|h)==(0|d))return b[(d=e)>>2]=a,void(b[d+4>>2]=c);if(k=(0|(j=0|tc(7,d-h|0)))/7|0,i=0|cd(0|a,0|c,45),G(),0|la(127&i)){a:do{if(h)for(g=1;;){if(f=0|cd(0|a,0|c,3*(15-g|0)|0),G(),0|(f&=7))break a;if(!(g>>>0>>0)){f=0;break}g=g+1|0}else f=0}while(0);g=0==(0|f)}else g=0;if(l=0|dd(h+1|0,0,52),f=0|G()|-15728641&c,Eb(c=(l|a)&~(c=0|dd(7,0,0|(i=3*(14-h|0)|0))),h=f&~(0|G()),d,e),f=e+(k<<3)|0,!g)return Eb((l=0|dd(1,0,0|i))|c,0|G()|h,d,f),l=f+(k<<3)|0,Eb((j=0|dd(2,0,0|i))|c,0|G()|h,d,l),l=l+(k<<3)|0,Eb((j=0|dd(3,0,0|i))|c,0|G()|h,d,l),l=l+(k<<3)|0,Eb((j=0|dd(4,0,0|i))|c,0|G()|h,d,l),l=l+(k<<3)|0,Eb((j=0|dd(5,0,0|i))|c,0|G()|h,d,l),void Eb((j=0|dd(6,0,0|i))|c,0|G()|h,d,l+(k<<3)|0);g=f+(k<<3)|0,(0|j)>6&&(hd(0|f,0,(l=(g>>>0>(j=f+8|0)>>>0?g:j)+-1+(0-f)|0)+8&-8|0),f=j+(l>>>3<<3)|0),Eb((l=0|dd(2,0,0|i))|c,0|G()|h,d,f),l=f+(k<<3)|0,Eb((j=0|dd(3,0,0|i))|c,0|G()|h,d,l),l=l+(k<<3)|0,Eb((j=0|dd(4,0,0|i))|c,0|G()|h,d,l),l=l+(k<<3)|0,Eb((j=0|dd(5,0,0|i))|c,0|G()|h,d,l),Eb((j=0|dd(6,0,0|i))|c,0|G()|h,d,l+(k<<3)|0)}}function Fb(a,b){var c=0,d=0,e=0;if(e=0|cd(0|(a|=0),0|(b|=0),45),G(),!(0|la(127&e)))return 0|(e=0);e=0|cd(0|a,0|b,52),G(),e&=15;a:do{if(e)for(d=1;;){if(c=0|cd(0|a,0|b,3*(15-d|0)|0),G(),0|(c&=7))break a;if(!(d>>>0>>0)){c=0;break}d=d+1|0}else c=0}while(0);return 0|(e=0==(0|c)&1)}function Lb(a,b){var c=0,d=0,e=0;if(e=0|cd(0|(a|=0),0|(b|=0),52),G(),!(e&=15))return 0|(e=0);for(d=1;;){if(c=0|cd(0|a,0|b,3*(15-d|0)|0),G(),0|(c&=7)){d=5;break}if(!(d>>>0>>0)){c=0,d=5;break}d=d+1|0}return 5==(0|d)?0|c:0}function Mb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(i=0|cd(0|(a|=0),0|(b|=0),52),G(),!(i&=15))return i=a,F(0|(h=b)),0|i;for(h=1,c=0;;){d=0|dd(7,0,0|(f=3*(15-h|0)|0)),e=0|G(),g=0|cd(0|a,0|b,0|f),G(),a=(f=0|dd(0|Pa(7&g),0,0|f))|a&~d,b=(g=0|G())|b&~e;a:do{if(!c)if(0==(f&d|0)&0==(g&e|0))c=0;else if(d=0|cd(0|a,0|b,52),G(),d&=15){c=1;b:for(;;){switch(g=0|cd(0|a,0|b,3*(15-c|0)|0),G(),7&g){case 1:break b;case 0:break;default:c=1;break a}if(!(c>>>0>>0)){c=1;break a}c=c+1|0}for(c=1;;){if(e=0|cd(0|a,0|b,0|(g=3*(15-c|0)|0)),G(),f=0|dd(7,0,0|g),b&=~(0|G()),a=a&~f|(g=0|dd(0|Pa(7&e),0,0|g)),b=0|b|G(),!(c>>>0>>0)){c=1;break}c=c+1|0}}else c=1}while(0);if(!(h>>>0>>0))break;h=h+1|0}return F(0|b),0|a}function Nb(a,b){var c=0,d=0,e=0,f=0,g=0;if(d=0|cd(0|(a|=0),0|(b|=0),52),G(),!(d&=15))return d=a,F(0|(c=b)),0|d;for(c=1;g=0|cd(0|a,0|b,0|(f=3*(15-c|0)|0)),G(),e=0|dd(7,0,0|f),b&=~(0|G()),a=(f=0|dd(0|Pa(7&g),0,0|f))|a&~e,b=0|G()|b,c>>>0>>0;)c=c+1|0;return F(0|b),0|a}function Ob(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;if(i=0|cd(0|(a|=0),0|(b|=0),52),G(),!(i&=15))return i=a,F(0|(h=b)),0|i;for(h=1,c=0;;){d=0|dd(7,0,0|(f=3*(15-h|0)|0)),e=0|G(),g=0|cd(0|a,0|b,0|f),G(),a=(f=0|dd(0|Qa(7&g),0,0|f))|a&~d,b=(g=0|G())|b&~e;a:do{if(!c)if(0==(f&d|0)&0==(g&e|0))c=0;else if(d=0|cd(0|a,0|b,52),G(),d&=15){c=1;b:for(;;){switch(g=0|cd(0|a,0|b,3*(15-c|0)|0),G(),7&g){case 1:break b;case 0:break;default:c=1;break a}if(!(c>>>0>>0)){c=1;break a}c=c+1|0}for(c=1;;){if(f=0|dd(7,0,0|(e=3*(15-c|0)|0)),g=b&~(0|G()),b=0|cd(0|a,0|b,0|e),G(),a=a&~f|(b=0|dd(0|Qa(7&b),0,0|e)),b=0|g|G(),!(c>>>0>>0)){c=1;break}c=c+1|0}}else c=1}while(0);if(!(h>>>0>>0))break;h=h+1|0}return F(0|b),0|a}function Pb(a,b){var c=0,d=0,e=0,f=0,g=0;if(d=0|cd(0|(a|=0),0|(b|=0),52),G(),!(d&=15))return d=a,F(0|(c=b)),0|d;for(c=1;f=0|dd(7,0,0|(g=3*(15-c|0)|0)),e=b&~(0|G()),b=0|cd(0|a,0|b,0|g),G(),a=(b=0|dd(0|Qa(7&b),0,0|g))|a&~f,b=0|G()|e,c>>>0>>0;)c=c+1|0;return F(0|b),0|a}function Rb(a){return 0|(0|(a|=0))%2}function Sb(a,c){a|=0;var d,e;return e=S,S=S+16|0,d=e,(c|=0)>>>0<=15&&2146435072!=(2146435072&b[a+4>>2]|0)&&2146435072!=(2146435072&b[a+8+4>>2]|0)?(!function Ya(a,b,c){var d,e;d=S,S=S+16|0,Za(a|=0,b|=0,c|=0,e=d),Ba(e,c+4|0),S=d}(a,c,d),c=0|function Qb(a,c){a|=0;var j,d=0,e=0,f=0,g=0,h=0,i=0,k=0,l=0;if(j=S,S=S+64|0,i=j+40|0,e=j+24|0,f=j+12|0,g=j,dd(0|(c|=0),0,52),d=134225919|G(),!c)return(0|b[a+4>>2])>2||(0|b[a+8>>2])>2||(0|b[a+12>>2])>2?(i=0,F(0|(h=0)),S=j,0|i):(dd(0|na(a),0,45),h=0|G()|d,i=-1,F(0|h),S=j,0|i);if(b[i>>2]=b[a>>2],b[i+4>>2]=b[a+4>>2],b[i+8>>2]=b[a+8>>2],b[i+12>>2]=b[a+12>>2],h=i+4|0,(0|c)>0)for(a=-1;b[e>>2]=b[h>>2],b[e+4>>2]=b[h+4>>2],b[e+8>>2]=b[h+8>>2],1&c?(Ia(h),b[f>>2]=b[h>>2],b[f+4>>2]=b[h+4>>2],b[f+8>>2]=b[h+8>>2],Ka(f)):(Ja(h),b[f>>2]=b[h>>2],b[f+4>>2]=b[h+4>>2],b[f+8>>2]=b[h+8>>2],La(f)),Fa(e,f,g),Ca(g),k=0|dd(7,0,0|(l=3*(15-c|0)|0)),d&=~(0|G()),a=(l=0|dd(0|Ha(g),0,0|l))|a&~k,d=0|G()|d,(0|c)>1;)c=c+-1|0;else a=-1;a:do{if((0|b[h>>2])<=2&&(0|b[i+8>>2])<=2&&(0|b[i+12>>2])<=2){if(c=0|dd(0|(e=0|na(i)),0,45),c|=a,a=0|G()|-1040385&d,g=0|oa(i),!(0|la(e))){if((0|g)<=0)break;for(f=0;;){if(e=0|cd(0|c,0|a,52),G(),e&=15)for(d=1;i=0|cd(0|c,0|a,0|(l=3*(15-d|0)|0)),G(),k=0|dd(7,0,0|l),a&=~(0|G()),c=c&~k|(l=0|dd(0|Pa(7&i),0,0|l)),a=0|a|G(),d>>>0>>0;)d=d+1|0;if((0|(f=f+1|0))==(0|g))break a}}f=0|cd(0|c,0|a,52),G(),f&=15;b:do{if(f){d=1;c:for(;;){switch(l=0|cd(0|c,0|a,3*(15-d|0)|0),G(),7&l){case 1:break c;case 0:break;default:break b}if(!(d>>>0>>0))break b;d=d+1|0}if(0|ra(e,0|b[i>>2]))for(d=1;k=0|dd(7,0,0|(i=3*(15-d|0)|0)),l=a&~(0|G()),a=0|cd(0|c,0|a,0|i),G(),c=c&~k|(a=0|dd(0|Qa(7&a),0,0|i)),a=0|l|G(),d>>>0>>0;)d=d+1|0;else for(d=1;i=0|cd(0|c,0|a,0|(l=3*(15-d|0)|0)),G(),k=0|dd(7,0,0|l),a&=~(0|G()),c=c&~k|(l=0|dd(0|Pa(7&i),0,0|l)),a=0|a|G(),d>>>0>>0;)d=d+1|0}}while(0);if((0|g)>0){d=0;do{c=0|Mb(c,a),a=0|G(),d=d+1|0}while((0|d)!=(0|g))}}else c=0,a=0}while(0);return l=c,F(0|(k=a)),S=j,0|l}(d,c),a=0|G()):(a=0,c=0),F(0|a),S=e,0|c}function Tb(a,c,d){var f,e=0,g=0,h=0;if(f=(d|=0)+4|0,g=0|cd(0|(a|=0),0|(c|=0),52),G(),g&=15,h=0|cd(0|a,0|c,45),G(),e=0==(0|g),0|la(127&h)){if(e)return 0|(h=1);e=1}else{if(e)return 0|(h=0);e=0==(0|b[f>>2])&&0==(0|b[d+8>>2])?0!=(0|b[d+12>>2])&1:1}for(d=1;1&d?Ka(f):La(f),h=0|cd(0|a,0|c,3*(15-d|0)|0),G(),Ma(f,7&h),d>>>0>>0;)d=d+1|0;return 0|e}function Ub(a,c,d){d|=0;var j,l,e=0,f=0,g=0,h=0,i=0,k=0;l=S,S=S+16|0,j=l,k=0|cd(0|(a|=0),0|(c|=0),45),G(),k&=127;a:do{if(0!=(0|la(k))&&(g=0|cd(0|a,0|c,52),G(),0!=(0|(g&=15)))){e=1;b:for(;;){switch(i=0|cd(0|a,0|c,3*(15-e|0)|0),G(),7&i){case 5:break b;case 0:break;default:e=c;break a}if(!(e>>>0>>0)){e=c;break a}e=e+1|0}for(f=1,e=c;h=0|dd(7,0,0|(c=3*(15-f|0)|0)),i=e&~(0|G()),e=0|cd(0|a,0|e,0|c),G(),a=a&~h|(e=0|dd(0|Qa(7&e),0,0|c)),e=0|i|G(),f>>>0>>0;)f=f+1|0}else e=c}while(0);if(i=7728+(28*k|0)|0,b[d>>2]=b[i>>2],b[d+4>>2]=b[i+4>>2],b[d+8>>2]=b[i+8>>2],b[d+12>>2]=b[i+12>>2],0|Tb(a,e,d)){if(h=d+4|0,b[j>>2]=b[h>>2],b[j+4>>2]=b[h+4>>2],b[j+8>>2]=b[h+8>>2],g=0|cd(0|a,0|e,52),G(),i=15&g,1&g?(La(h),g=i+1|0):g=i,0|la(k)){c:do{if(i)for(c=1;;){if(f=0|cd(0|a,0|e,3*(15-c|0)|0),G(),0|(f&=7)){e=f;break c}if(!(c>>>0>>0)){e=0;break}c=c+1|0}else e=0}while(0);e=4==(0|e)&1}else e=0;if(0|cb(d,g,e,0)){if(0|la(k))do{}while(0!=(0|cb(d,g,0,0)));(0|g)!=(0|i)&&Ja(h)}else(0|g)!=(0|i)&&(b[h>>2]=b[j>>2],b[h+4>>2]=b[j+4>>2],b[h+8>>2]=b[j+8>>2]);S=l}else S=l}function Vb(a,b,c){c|=0;var d,e;d=S,S=S+16|0,Ub(a|=0,b|=0,e=d),b=0|cd(0|a,0|b,52),G(),$a(e,15&b,c),S=d}function Wb(a,b,c){c|=0;var f,g,d=0,e=0;g=S,S=S+16|0,Ub(a|=0,b|=0,f=g),d=0|cd(0|a,0|b,45),G(),d=0==(0|la(127&d)),e=0|cd(0|a,0|b,52),G(),e&=15;a:do{if(!d){if(0|e)for(d=1;;){if(!(0==((0|dd(7,0,3*(15-d|0)|0))&a|0)&0==((0|G())&b|0)))break a;if(!(d>>>0>>0))break;d=d+1|0}return ab(f,e,0,5,c),void(S=g)}}while(0);eb(f,e,0,6,c),S=g}function _b(a,c){c|=0;var i,d=0,e=0,f=0,g=0,h=0,j=0;if(dd(0|(a|=0),0,52),i=134225919|G(),(0|a)<1){e=0,d=0;do{0|la(e)&&(dd(0|e,0,45),h=0|i|G(),b[(a=c+(d<<3)|0)>>2]=-1,b[a+4>>2]=h,d=d+1|0),e=e+1|0}while(122!=(0|e))}else{h=0,d=0;do{if(0|la(h)){for(dd(0|h,0,45),e=1,f=-1,g=0|i|G();f&=~(j=0|dd(7,0,3*(15-e|0)|0)),g&=~(0|G()),(0|e)!=(0|a);)e=e+1|0;b[(j=c+(d<<3)|0)>>2]=f,b[j+4>>2]=g,d=d+1|0}h=h+1|0}while(122!=(0|h))}}function $b(a,c,d,e){var i,f=0,g=0,h=0,j=0,k=0;if(i=S,S=S+64|0,h=i,(0|(a|=0))==(0|(d|=0))&(0|(c|=0))==(0|(e|=0))|!1|134217728!=(2013265920&c|0)|!1|134217728!=(2013265920&e|0))return S=i,0|(h=0);if(f=0|cd(0|a,0|c,52),G(),f&=15,g=0|cd(0|d,0|e,52),G(),(0|f)!=(15&g|0))return S=i,0|(h=0);if(g=f+-1|0,f>>>0>1&&(k=0|Cb(a,c,g),j=0|G(),(0|k)==(0|(g=0|Cb(d,e,g)))&(0|j)==(0|G()))){if(f=0|cd(0|a,0|c,0|(g=3*(15^f)|0)),G(),f&=7,g=0|cd(0|d,0|e,0|g),G(),0==(0|f)|0==(0|(g&=7)))return S=i,0|(k=1);if((0|b[21136+(f<<2)>>2])==(0|g))return S=i,0|(k=1);if((0|b[21168+(f<<2)>>2])==(0|g))return S=i,0|(k=1)}g=(f=h)+56|0;do{b[f>>2]=0,f=f+4|0}while((0|f)<(0|g));return $(a,c,1,h),f=(0|b[(k=h)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)||(0|b[(k=h+8|0)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)||(0|b[(k=h+16|0)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)||(0|b[(k=h+24|0)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)||(0|b[(k=h+32|0)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)||(0|b[(k=h+40|0)>>2])==(0|d)&&(0|b[k+4>>2])==(0|e)?1:1&((0|b[(f=h+48|0)>>2])==(0|d)?(0|b[f+4>>2])==(0|e):0),S=i,0|(k=f)}function gc(a,c,d){d|=0;var f,g,h,i,e=0;if(h=S,S=S+16|0,g=h,e=0|cd(0|(a|=0),0|(c|=0),56),G(),c=0|function Lc(a,c,d){a|=0,c|=0,d|=0;var e=0,f=0;if(e=0|Fb(a,c),(d+-1|0)>>>0>5)return 0|(d=-1);if(f=0!=(0|e),1==(0|d)&f)return 0|(d=-1);return e=0|function Kc(a,c){a|=0,c|=0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(k=S,S=S+32|0,f=k+16|0,g=k,Ub(a,c,f),h=0|Ab(a,c),j=0|Lb(a,c),function pa(a,c){a=7728+(28*(a|=0)|0)|0,b[(c|=0)>>2]=b[a>>2],b[c+4>>2]=b[a+4>>2],b[c+8>>2]=b[a+8>>2],b[c+12>>2]=b[a+12>>2]}(h,g),c=0|function qa(a,c){a|=0;var d=0,e=0;if((c|=0)>>>0>20)return-1;do{if((0|b[11152+(216*c|0)>>2])!=(0|a))if((0|b[11152+(216*c|0)+8>>2])!=(0|a))if((0|b[11152+(216*c|0)+16>>2])!=(0|a))if((0|b[11152+(216*c|0)+24>>2])!=(0|a))if((0|b[11152+(216*c|0)+32>>2])!=(0|a))if((0|b[11152+(216*c|0)+40>>2])!=(0|a))if((0|b[11152+(216*c|0)+48>>2])!=(0|a))if((0|b[11152+(216*c|0)+56>>2])!=(0|a))if((0|b[11152+(216*c|0)+64>>2])!=(0|a))if((0|b[11152+(216*c|0)+72>>2])!=(0|a))if((0|b[11152+(216*c|0)+80>>2])!=(0|a))if((0|b[11152+(216*c|0)+88>>2])!=(0|a))if((0|b[11152+(216*c|0)+96>>2])!=(0|a))if((0|b[11152+(216*c|0)+104>>2])!=(0|a))if((0|b[11152+(216*c|0)+112>>2])!=(0|a))if((0|b[11152+(216*c|0)+120>>2])!=(0|a))if((0|b[11152+(216*c|0)+128>>2])!=(0|a)){if((0|b[11152+(216*c|0)+136>>2])!=(0|a)){if((0|b[11152+(216*c|0)+144>>2])==(0|a)){a=0,d=2,e=0;break}if((0|b[11152+(216*c|0)+152>>2])==(0|a)){a=0,d=2,e=1;break}if((0|b[11152+(216*c|0)+160>>2])==(0|a)){a=0,d=2,e=2;break}if((0|b[11152+(216*c|0)+168>>2])==(0|a)){a=1,d=2,e=0;break}if((0|b[11152+(216*c|0)+176>>2])==(0|a)){a=1,d=2,e=1;break}if((0|b[11152+(216*c|0)+184>>2])==(0|a)){a=1,d=2,e=2;break}if((0|b[11152+(216*c|0)+192>>2])==(0|a)){a=2,d=2,e=0;break}if((0|b[11152+(216*c|0)+200>>2])==(0|a)){a=2,d=2,e=1;break}if((0|b[11152+(216*c|0)+208>>2])==(0|a)){a=2,d=2,e=2;break}return-1}a=2,d=1,e=2}else a=2,d=1,e=1;else a=2,d=1,e=0;else a=1,d=1,e=2;else a=1,d=1,e=1;else a=1,d=1,e=0;else a=0,d=1,e=2;else a=0,d=1,e=1;else a=0,d=1,e=0;else a=2,d=0,e=2;else a=2,d=0,e=1;else a=2,d=0,e=0;else a=1,d=0,e=2;else a=1,d=0,e=1;else a=1,d=0,e=0;else a=0,d=0,e=2;else a=0,d=0,e=1;else a=0,d=0,e=0}while(0);return 0|b[11152+(216*c|0)+(72*d|0)+(24*a|0)+(e<<3)+4>>2]}(h,0|b[f>>2]),!(0|la(h)))return S=k,0|(j=c);switch(0|h){case 4:a=0,d=14;break;case 14:a=1,d=14;break;case 24:a=2,d=14;break;case 38:a=3,d=14;break;case 49:a=4,d=14;break;case 58:a=5,d=14;break;case 63:a=6,d=14;break;case 72:a=7,d=14;break;case 83:a=8,d=14;break;case 97:a=9,d=14;break;case 107:a=10,d=14;break;case 117:a=11,d=14;break;default:i=0,e=0}14==(0|d)&&(i=0|b[22096+(24*a|0)+8>>2],e=0|b[22096+(24*a|0)+16>>2]);a=0|b[f>>2],(0|a)!=(0|b[g>>2])&&(h=0|ma(h))|(0|(a=0|b[f>>2]))==(0|e)&&(c=(c+1|0)%6|0);if(3==(0|j)&(0|a)==(0|e))return S=k,0|(j=(c+5|0)%6|0);if(!(5==(0|j)&(0|a)==(0|i)))return S=k,0|(j=c);return j=(c+1|0)%6|0,S=k,0|j}(a,c),f?0|(d=(5-e+(0|b[22384+(d<<2)>>2])|0)%5|0):0|(d=(6-e+(0|b[22416+(d<<2)>>2])|0)%6|0)}(f=(i=!0&268435456==(2013265920&c|0))?a:0,a=i?-2130706433&c|134217728:0,7&e),-1==(0|c))return b[d>>2]=0,void(S=h);Ub(f,a,g),e=0|cd(0|f,0|a,52),G(),e&=15,0|Fb(f,a)?ab(g,e,c,2,d):eb(g,e,c,2,d),S=h}function hc(a){a|=0;var c,d,e=0;return(c=0|Yc(1,12))||H(22691,22646,49,22704),0|(e=0|b[(d=a+4|0)>>2])?(b[(e=e+8|0)>>2]=c,b[d>>2]=c,0|c):(0|b[a>>2]&&H(22721,22646,61,22744),b[(e=a)>>2]=c,b[d>>2]=c,0|c)}function ic(a,c){a|=0,c|=0;var d,e;return(e=0|Wc(24))||H(22758,22646,78,22772),b[e>>2]=b[c>>2],b[e+4>>2]=b[c+4>>2],b[e+8>>2]=b[c+8>>2],b[e+12>>2]=b[c+12>>2],b[e+16>>2]=0,0|(d=0|b[(c=a+4|0)>>2])?(b[d+16>>2]=e,b[c>>2]=e,0|e):(0|b[a>>2]&&H(22787,22646,82,22772),b[a>>2]=e,b[c>>2]=e,0|e)}function kc(a){var G,I,c=0,d=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,J=0,K=0;if(0|b[(g=(a|=0)+8|0)>>2])return 0|(K=1);if(!(f=0|b[a>>2]))return 0|(K=0);c=f,d=0;do{d=d+1|0,c=0|b[c+8>>2]}while(0!=(0|c));if(d>>>0<2)return 0|(K=0);(I=0|Wc(d<<2))||H(22807,22646,317,22826),(G=0|Wc(d<<5))||H(22848,22646,321,22826),b[a>>2]=0,b[(z=a+4|0)>>2]=0,b[g>>2]=0,d=0,F=0,y=0,n=0;a:for(;;){if(m=0|b[f>>2]){h=0,i=m;do{if(k=+e[i+8>>3],c=i,i=0|b[i+16>>2],j=+e[(g=(l=0==(0|i))?m:i)+8>>3],+q(+(k-j))>3.141592653589793){K=14;break}h+=(j-k)*(+e[c>>3]+ +e[g>>3])}while(!l);if(14==(0|K)){K=0,h=0,c=m;do{x=+e[c+8>>3],D=0|b[(E=c+16|0)>>2],w=+e[(D=0==(0|D)?m:D)+8>>3],h+=(+e[c>>3]+ +e[D>>3])*((w<0?w+6.283185307179586:w)-(x<0?x+6.283185307179586:x)),c=0|b[(0==(0|c)?f:E)>>2]}while(0!=(0|c))}h>0?(b[I+(F<<2)>>2]=f,F=F+1|0,g=y,c=n):K=19}else K=19;if(19==(0|K)){K=0;do{if(!d){if(n){g=z,i=n+8|0,c=f,d=a;break}if(0|b[a>>2]){K=27;break a}g=z,i=a,c=f,d=a;break}if(0|b[(c=d+8|0)>>2]){K=21;break a}if(!(d=0|Yc(1,12))){K=23;break a}b[c>>2]=d,g=d+4|0,i=d,c=n}while(0);if(b[i>>2]=f,b[g>>2]=f,i=G+(y<<5)|0,l=0|b[f>>2]){for(e[(m=G+(y<<5)+8|0)>>3]=17976931348623157e292,e[(n=G+(y<<5)+24|0)>>3]=17976931348623157e292,e[i>>3]=-17976931348623157e292,e[(o=G+(y<<5)+16|0)>>3]=-17976931348623157e292,u=17976931348623157e292,v=-17976931348623157e292,g=0,p=l,k=17976931348623157e292,s=17976931348623157e292,t=-17976931348623157e292,j=-17976931348623157e292;h=+e[p>>3],x=+e[p+8>>3],p=0|b[p+16>>2],w=+e[((r=0==(0|p))?l:p)+8>>3],h>3]=h,k=h),x>3]=x,s=x),h>t?e[i>>3]=h:h=t,x>j&&(e[o>>3]=x,j=x),u=x>0&xv?x:v,g|=+q(+(x-w))>3.141592653589793,!r;)t=h;g&&(e[o>>3]=v,e[n>>3]=u)}else b[i>>2]=0,b[i+4>>2]=0,b[i+8>>2]=0,b[i+12>>2]=0,b[i+16>>2]=0,b[i+20>>2]=0,b[i+24>>2]=0,b[i+28>>2]=0;g=y+1|0}if(f=0|b[(E=f+8|0)>>2],b[E>>2]=0,!f){K=45;break}y=g,n=c}if(21==(0|K))H(22624,22646,35,22658);else if(23==(0|K))H(22678,22646,37,22658);else if(27==(0|K))H(22721,22646,61,22744);else if(45==(0|K)){b:do{if((0|F)>0){for(E=0==(0|g),C=g<<2,D=0==(0|a),B=0,c=0;;){if(A=0|b[I+(B<<2)>>2],E)K=73;else{if(!(y=0|Wc(C))){K=50;break}if(!(z=0|Wc(C))){K=52;break}c:do{if(D)d=0;else{for(g=0,d=0,i=a;f=G+(g<<5)|0,0|lc(0|b[i>>2],f,0|b[A>>2])?(b[y+(d<<2)>>2]=i,b[z+(d<<2)>>2]=f,r=d+1|0):r=d,i=0|b[i+8>>2];)g=g+1|0,d=r;if((0|r)>0)if(f=0|b[y>>2],1==(0|r))d=f;else for(o=0,p=-1,d=f,n=f;;){for(l=0|b[n>>2],f=0,i=0;m=(0|(g=0|b[b[y+(i<<2)>>2]>>2]))==(0|l)?f:f+(1&(0|lc(g,0|b[z+(i<<2)>>2],0|b[l>>2])))|0,(0|(i=i+1|0))!=(0|r);)f=m;if(d=(g=(0|m)>(0|p))?n:d,(0|(f=o+1|0))==(0|r))break c;o=f,p=g?m:p,n=0|b[y+(f<<2)>>2]}else d=0}}while(0);if(Xc(y),Xc(z),d){if(f=0|b[(g=d+4|0)>>2])d=f+8|0;else if(0|b[d>>2]){K=70;break}b[d>>2]=A,b[g>>2]=A}else K=73}if(73==(0|K)){if(K=0,0|(c=0|b[A>>2]))do{z=c,c=0|b[c+16>>2],Xc(z)}while(0!=(0|c));Xc(A),c=2}if((0|(B=B+1|0))>=(0|F)){J=c;break b}}50==(0|K)?H(22863,22646,249,22882):52==(0|K)?H(22901,22646,252,22882):70==(0|K)&&H(22721,22646,61,22744)}else J=0}while(0);return Xc(I),Xc(G),0|(K=J)}return 0}function lc(a,c,d){a|=0;var l,f=0,g=0,h=0,i=0,j=0,k=0,m=0;if(!(0|xa(c|=0,d|=0)))return 0|(a=0);if(c=0|wa(c),l=+e[d>>3],f=c&(f=+e[d+8>>3])<0?f+6.283185307179586:f,!(a=0|b[a>>2]))return 0|(a=0);if(c){c=0,d=a;a:for(;;){for(;i=+e[d>>3],k=+e[d+8>>3],m=0|b[(d=d+16|0)>>2],h=+e[(m=0==(0|m)?a:m)>>3],g=+e[m+8>>3],i>h?(j=i,i=k):(j=h,h=i,i=g,g=k),lj;)if(!(d=0|b[d>>2])){d=22;break a}if(f=(i=i<0?i+6.283185307179586:i)==f|(k=g<0?g+6.283185307179586:g)==f?f+-2220446049250313e-31:f,((k+=(l-h)/(j-h)*(i-k))<0?k+6.283185307179586:k)>f&&(c^=1),!(d=0|b[d>>2])){d=22;break}}if(22==(0|d))return 0|c}else{c=0,d=a;b:for(;;){for(;i=+e[d>>3],k=+e[d+8>>3],m=0|b[(d=d+16|0)>>2],h=+e[(m=0==(0|m)?a:m)>>3],g=+e[m+8>>3],i>h?(j=i,i=k):(j=h,h=i,i=g,g=k),lj;)if(!(d=0|b[d>>2])){d=22;break b}if(g+(l-h)/(j-h)*(i-g)>(f=i==f|g==f?f+-2220446049250313e-31:f)&&(c^=1),!(d=0|b[d>>2])){d=22;break}}if(22==(0|d))return 0|c}return 0}function mc(c,d,e,f,g){e|=0,f|=0,g|=0;var n,o,s,u,h=0,i=0,j=0,k=0,l=0,m=0,p=0,q=0,r=0,t=0;if(u=S,S=S+32|0,t=u+16|0,s=u,h=0|cd(0|(c|=0),0|(d|=0),52),G(),h&=15,p=0|cd(0|e,0|f,52),G(),(0|h)!=(15&p|0))return S=u,0|(t=1);if(l=0|cd(0|c,0|d,45),G(),l&=127,m=0|cd(0|e,0|f,45),G(),p=(0|l)!=(0|(m&=127))){if(7==(0|(j=0|ta(l,m))))return S=u,0|(t=2);7==(0|(k=0|ta(m,l)))?H(22925,22949,151,22959):(q=j,i=k)}else q=0,i=0;n=0|la(l),o=0|la(m),b[t>>2]=0,b[t+4>>2]=0,b[t+8>>2]=0,b[t+12>>2]=0;do{if(q){if(j=(0|(m=0|b[4304+(28*l|0)+(q<<2)>>2]))>0,o)if(j){l=0,k=e,j=f;do{k=0|Ob(k,j),j=0|G(),1==(0|(i=0|Qa(i)))&&(i=0|Qa(1)),l=l+1|0}while((0|l)!=(0|m));m=i,l=k,k=j}else m=i,l=e,k=f;else if(j){l=0,k=e,j=f;do{k=0|Pb(k,j),j=0|G(),i=0|Qa(i),l=l+1|0}while((0|l)!=(0|m));m=i,l=k,k=j}else m=i,l=e,k=f;if(Tb(l,k,t),p||H(22972,22949,181,22959),(j=0!=(0|n))&(i=0!=(0|o))&&H(22999,22949,182,22959),j){if(i=0|Lb(c,d),0|a[22032+(7*i|0)+q>>0]){h=3;break}l=k=0|b[21200+(28*i|0)+(q<<2)>>2],r=26}else if(i){if(i=0|Lb(l,k),0|a[22032+(7*i|0)+m>>0]){h=4;break}l=0,k=0|b[21200+(28*m|0)+(i<<2)>>2],r=26}else i=0;if(26==(0|r))if((0|k)<=-1&&H(23030,22949,212,22959),(0|l)<=-1&&H(23053,22949,213,22959),(0|k)>0){j=t+4|0,i=0;do{Oa(j),i=i+1|0}while((0|i)!=(0|k));i=l}else i=l;if(b[s>>2]=0,b[s+4>>2]=0,b[s+8>>2]=0,Ma(s,q),0|h)for(;0|Rb(h)?Ka(s):La(s),(0|h)>1;)h=h+-1|0;if((0|i)>0){h=0;do{Oa(s),h=h+1|0}while((0|h)!=(0|i))}Ea(r=t+4|0,s,r),Ca(r),r=50}else if(Tb(e,f,t),0!=(0|n)&0!=(0|o))if((0|m)!=(0|l)&&H(23077,22949,243,22959),i=0|Lb(c,d),h=0|Lb(e,f),0|a[22032+(7*i|0)+h>>0])h=5;else if((0|(i=0|b[21200+(28*i|0)+(h<<2)>>2]))>0){j=t+4|0,h=0;do{Oa(j),h=h+1|0}while((0|h)!=(0|i));r=50}else r=50;else r=50}while(0);return 50==(0|r)&&(h=t+4|0,b[g>>2]=b[h>>2],b[g+4>>2]=b[h+4>>2],b[g+8>>2]=b[h+8>>2],h=0),S=u,0|(t=h)}function nc(a,c,d,e){d|=0,e|=0;var l,p,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;if(p=S,S=S+48|0,h=p+36|0,i=p+24|0,j=p+12|0,k=p,g=0|cd(0|(a|=0),0|(c|=0),52),G(),g&=15,n=0|cd(0|a,0|c,45),G(),l=0|la(n&=127),dd(0|g,0,52),r=134225919|G(),b[(q=e)>>2]=-1,b[q+4>>2]=r,!g)return(0|b[d>>2])>1||(0|b[d+4>>2])>1||(0|b[d+8>>2])>1||127==(0|(f=0|sa(n,0|Ha(d))))?(S=p,0|(r=1)):(o=0|dd(0|f,0,45),q=0|G(),q=-1040385&b[(n=e)+4>>2]|q,b[(r=e)>>2]=b[n>>2]|o,b[r+4>>2]=q,S=p,0|(r=0));for(b[h>>2]=b[d>>2],b[h+4>>2]=b[d+4>>2],b[h+8>>2]=b[d+8>>2];b[i>>2]=b[h>>2],b[i+4>>2]=b[h+4>>2],b[i+8>>2]=b[h+8>>2],0|Rb(g)?(Ia(h),b[j>>2]=b[h>>2],b[j+4>>2]=b[h+4>>2],b[j+8>>2]=b[h+8>>2],Ka(j)):(Ja(h),b[j>>2]=b[h>>2],b[j+4>>2]=b[h+4>>2],b[j+8>>2]=b[h+8>>2],La(j)),Fa(i,j,k),Ca(k),s=0|b[(q=e)>>2],q=0|b[q+4>>2],d=0|dd(7,0,0|(t=3*(15-g|0)|0)),q&=~(0|G()),t=0|dd(0|Ha(k),0,0|t),q=0|G()|q,b[(r=e)>>2]=t|s&~d,b[r+4>>2]=q,(0|g)>1;)g=g+-1|0;a:do{if((0|b[h>>2])<=1&&(0|b[h+4>>2])<=1&&(0|b[h+8>>2])<=1){k=127==(0|(i=0|sa(n,g=0|Ha(h))))?0:0|la(i);b:do{if(g){if(l){if(h=21408+(28*(0|Lb(a,c))|0)+(g<<2)|0,(0|(h=0|b[h>>2]))>0){d=0;do{g=0|Pa(g),d=d+1|0}while((0|d)!=(0|h))}if(1==(0|g)){f=3;break a}127==(0|(d=0|sa(n,g)))&&H(23104,22949,376,23134),0|la(d)?H(23147,22949,377,23134):(o=h,m=g,f=d)}else o=0,m=g,f=i;if((0|(j=0|b[4304+(28*n|0)+(m<<2)>>2]))<=-1&&H(23178,22949,384,23134),!k){if((0|o)<=-1&&H(23030,22949,417,23134),0|o){g=0,d=0|b[(h=e)>>2],h=0|b[h+4>>2];do{d=0|Nb(d,h),h=0|G(),b[(t=e)>>2]=d,b[t+4>>2]=h,g=g+1|0}while((0|g)<(0|o))}if((0|j)<=0){g=54;break}for(g=0,d=0|b[(h=e)>>2],h=0|b[h+4>>2];;)if(d=0|Nb(d,h),h=0|G(),b[(t=e)>>2]=d,b[t+4>>2]=h,(0|(g=g+1|0))==(0|j)){g=54;break b}}if(7==(0|(i=0|ta(f,n)))&&H(22925,22949,393,23134),d=0|b[(g=e)>>2],g=0|b[g+4>>2],(0|j)>0){h=0;do{d=0|Nb(d,g),g=0|G(),b[(t=e)>>2]=d,b[t+4>>2]=g,h=h+1|0}while((0|h)!=(0|j))}if(d=0|Lb(d,g),t=0|ma(f),(0|(d=0|b[(t?21824:21616)+(28*i|0)+(d<<2)>>2]))<=-1&&H(23030,22949,412,23134),d){g=0,h=0|b[(i=e)>>2],i=0|b[i+4>>2];do{h=0|Mb(h,i),i=0|G(),b[(t=e)>>2]=h,b[t+4>>2]=i,g=g+1|0}while((0|g)<(0|d));g=54}else g=54}else if(0!=(0|l)&0!=(0|k))if(g=21408+(28*(t=0|Lb(a,c))|0)+((0|Lb(0|b[(g=e)>>2],0|b[g+4>>2]))<<2)|0,(0|(g=0|b[g>>2]))<=-1&&H(23201,22949,433,23134),g){f=0,d=0|b[(h=e)>>2],h=0|b[h+4>>2];do{d=0|Nb(d,h),h=0|G(),b[(t=e)>>2]=d,b[t+4>>2]=h,f=f+1|0}while((0|f)<(0|g));f=i,g=54}else f=i,g=55;else f=i,g=54}while(0);if(54==(0|g)&&k&&(g=55),55==(0|g)&&1==(0|Lb(0|b[(t=e)>>2],0|b[t+4>>2]))){f=4;break}r=0|b[(t=e)>>2],t=-1040385&b[t+4>>2],s=0|dd(0|f,0,45),t=0|t|G(),b[(f=e)>>2]=r|s,b[f+4>>2]=t,f=0}else f=2}while(0);return S=p,0|(t=f)}function tc(a,b){var c=0;if(!(b|=0))return 0|(c=1);c=a|=0,a=1;do{a=0|B(0==(1&b|0)?1:c,a),b>>=1,c=0|B(c,c)}while(0!=(0|b));return 0|a}function uc(a,c,d){a|=0;var m,o,f=0,g=0,h=0,i=0,j=0,k=0,l=0,n=0;if(!(0|xa(c|=0,d|=0)))return 0|(n=0);if(c=0|wa(c),o=+e[d>>3],f=c&(f=+e[d+8>>3])<0?f+6.283185307179586:f,(0|(n=0|b[a>>2]))<=0)return 0|(n=0);if(m=0|b[a+4>>2],c){c=0,d=-1,a=0;a:for(;;){for(l=a;i=+e[m+(l<<4)>>3],k=+e[m+(l<<4)+8>>3],h=+e[m+((a=(d+2|0)%(0|n)|0)<<4)>>3],g=+e[m+(a<<4)+8>>3],i>h?(j=i,i=k):(j=h,h=i,i=g,g=k),oj;){if(!((0|(d=l+1|0))<(0|n))){d=22;break a}a=l,l=d,d=a}if(f=(i=i<0?i+6.283185307179586:i)==f|(k=g<0?g+6.283185307179586:g)==f?f+-2220446049250313e-31:f,((k+=(o-h)/(j-h)*(i-k))<0?k+6.283185307179586:k)>f&&(c^=1),(0|(a=l+1|0))>=(0|n)){d=22;break}d=l}if(22==(0|d))return 0|c}else{c=0,d=-1,a=0;b:for(;;){for(l=a;i=+e[m+(l<<4)>>3],k=+e[m+(l<<4)+8>>3],h=+e[m+((a=(d+2|0)%(0|n)|0)<<4)>>3],g=+e[m+(a<<4)+8>>3],i>h?(j=i,i=k):(j=h,h=i,i=g,g=k),oj;){if(!((0|(d=l+1|0))<(0|n))){d=22;break b}a=l,l=d,d=a}if(g+(o-h)/(j-h)*(i-g)>(f=i==f|g==f?f+-2220446049250313e-31:f)&&(c^=1),(0|(a=l+1|0))>=(0|n)){d=22;break}d=l}if(22==(0|d))return 0|c}return 0}function vc(a,c){c|=0;var o,r,s,t,u,d=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,v=0;if(!(r=0|b[(a|=0)>>2]))return b[c>>2]=0,b[c+4>>2]=0,b[c+8>>2]=0,b[c+12>>2]=0,b[c+16>>2]=0,b[c+20>>2]=0,b[c+24>>2]=0,void(b[c+28>>2]=0);if(e[(s=c+8|0)>>3]=17976931348623157e292,e[(t=c+24|0)>>3]=17976931348623157e292,e[c>>3]=-17976931348623157e292,e[(u=c+16|0)>>3]=-17976931348623157e292,!((0|r)<=0)){for(o=0|b[a+4>>2],l=17976931348623157e292,m=-17976931348623157e292,n=0,a=-1,h=17976931348623157e292,i=17976931348623157e292,k=-17976931348623157e292,f=-17976931348623157e292,p=0;d=+e[o+(p<<4)>>3],j=+e[o+(p<<4)+8>>3],g=+e[o+(((0|(a=a+2|0))==(0|r)?0:a)<<4)+8>>3],d>3]=d,h=d),j>3]=j,i=j),d>k?e[c>>3]=d:d=k,j>f&&(e[u>>3]=j,f=j),l=j>0&jm?j:m,n|=+q(+(j-g))>3.141592653589793,(0|(a=p+1|0))!=(0|r);)v=p,k=d,p=a,a=v;n&&(e[u>>3]=m,e[t>>3]=l)}}function wc(a,c){c|=0;var y,d=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,z=0,A=0;if(r=0|b[(a|=0)>>2]){if(e[(s=c+8|0)>>3]=17976931348623157e292,e[(t=c+24|0)>>3]=17976931348623157e292,e[c>>3]=-17976931348623157e292,e[(u=c+16|0)>>3]=-17976931348623157e292,(0|r)>0){for(g=0|b[a+4>>2],o=17976931348623157e292,p=-17976931348623157e292,f=0,d=-1,k=17976931348623157e292,l=17976931348623157e292,n=-17976931348623157e292,i=-17976931348623157e292,v=0;h=+e[g+(v<<4)>>3],m=+e[g+(v<<4)+8>>3],j=+e[g+(((0|(z=d+2|0))==(0|r)?0:z)<<4)+8>>3],h>3]=h,k=h),m>3]=m,l=m),h>n?e[c>>3]=h:h=n,m>i&&(e[u>>3]=m,i=m),o=m>0&mp?m:p,f|=+q(+(m-j))>3.141592653589793,(0|(d=v+1|0))!=(0|r);)z=v,n=h,v=d,d=z;f&&(e[u>>3]=p,e[t>>3]=o)}}else b[c>>2]=0,b[c+4>>2]=0,b[c+8>>2]=0,b[c+12>>2]=0,b[c+16>>2]=0,b[c+20>>2]=0,b[c+24>>2]=0,b[c+28>>2]=0;if(!((0|(d=0|b[(z=a+8|0)>>2]))<=0)){y=a+12|0,x=0;do{if(g=0|b[y>>2],f=x,t=c+((x=x+1|0)<<5)|0,u=0|b[g+(f<<3)>>2]){if(e[(v=c+(x<<5)+8|0)>>3]=17976931348623157e292,e[(a=c+(x<<5)+24|0)>>3]=17976931348623157e292,e[t>>3]=-17976931348623157e292,e[(w=c+(x<<5)+16|0)>>3]=-17976931348623157e292,(0|u)>0){for(r=0|b[g+(f<<3)+4>>2],o=17976931348623157e292,p=-17976931348623157e292,g=0,f=-1,s=0,k=17976931348623157e292,l=17976931348623157e292,m=-17976931348623157e292,i=-17976931348623157e292;h=+e[r+(s<<4)>>3],n=+e[r+(s<<4)+8>>3],j=+e[r+(((0|(f=f+2|0))==(0|u)?0:f)<<4)+8>>3],h>3]=h,k=h),n>3]=n,l=n),h>m?e[t>>3]=h:h=m,n>i&&(e[w>>3]=n,i=n),o=n>0&np?n:p,g|=+q(+(n-j))>3.141592653589793,(0|(f=s+1|0))!=(0|u);)A=s,s=f,m=h,f=A;g&&(e[w>>3]=p,e[a>>3]=o)}}else b[t>>2]=0,b[t+4>>2]=0,b[t+8>>2]=0,b[t+12>>2]=0,b[t+16>>2]=0,b[t+20>>2]=0,b[t+24>>2]=0,b[t+28>>2]=0,d=0|b[z>>2]}while((0|x)<(0|d))}}function xc(a,c,d){var e=0,f=0,g=0;if(!(0|uc(a|=0,c|=0,d|=0)))return 0|(f=0);if((0|b[(f=a+8|0)>>2])<=0)return 0|(f=1);for(e=a+12|0,a=0;;){if(g=a,a=a+1|0,0|uc((0|b[e>>2])+(g<<3)|0,c+(a<<5)|0,d)){a=0,e=6;break}if((0|a)>=(0|b[f>>2])){a=1,e=6;break}}return 6==(0|e)?0|a:0}function Gc(a,b,c,d,f){b|=0,c|=0,d|=0,f|=0;var h,i,j,k,l,m,n,g=0;k=+e[(a|=0)>>3],j=+e[b>>3]-k,i=+e[a+8>>3],h=+e[b+8>>3]-i,m=+e[c>>3],g=((g=+e[d>>3]-m)*(i-(n=+e[c+8>>3]))-(k-m)*(l=+e[d+8>>3]-n))/(j*l-h*g),e[f>>3]=k+j*g,e[f+8>>3]=i+h*g}function Hc(a,b){return b|=0,+e[(a|=0)>>3]!=+e[b>>3]?0|(b=0):0|(b=+e[a+8>>3]==+e[b+8>>3])}function Ic(a,b){b|=0;var c,d,f;return+((f=+e[(a|=0)>>3]-+e[b>>3])*f+(d=+e[a+8>>3]-+e[b+8>>3])*d+(c=+e[a+16>>3]-+e[b+16>>3])*c)}function Mc(a,c,d){a|=0,d|=0;var e=0;(0|(c|=0))>0?(e=0|Yc(c,4),b[a>>2]=e,e||H(23230,23253,40,23267)):b[a>>2]=0,b[a+4>>2]=c,b[a+8>>2]=0,b[a+12>>2]=d}function Nc(a){var g,h,i,c=0,d=0,f=0,j=0;g=(a|=0)+4|0,h=a+12|0,i=a+8|0;a:for(;;){for(d=0|b[g>>2],c=0;;){if((0|c)>=(0|d))break a;if(f=0|b[a>>2],j=0|b[f+(c<<2)>>2])break;c=c+1|0}c=f+(~~(+q(+ +s(10,+ +(15-(0|b[h>>2])|0))*(+e[j>>3]+ +e[j+8>>3]))%+(0|d))>>>0<<2)|0,d=0|b[c>>2];b:do{if(0|d){if(f=j+32|0,(0|d)==(0|j))b[c>>2]=b[f>>2];else{if(!(c=0|b[(d=d+32|0)>>2]))break;for(;(0|c)!=(0|j);)if(!(c=0|b[(d=c+32|0)>>2]))break b;b[d>>2]=b[f>>2]}Xc(j),b[i>>2]=(0|b[i>>2])-1}}while(0)}Xc(0|b[a>>2])}function Oc(a){var e,c=0,d=0;for(e=0|b[(a|=0)+4>>2],d=0;;){if((0|d)>=(0|e)){c=0,d=4;break}if(c=0|b[(0|b[a>>2])+(d<<2)>>2]){d=4;break}d=d+1|0}return 4==(0|d)?0|c:0}function Pc(a,c){c|=0;var d=0,f=0,g=0,h=0;if(d=~~(+q(+ +s(10,+ +(15-(0|b[(a|=0)+12>>2])|0))*(+e[c>>3]+ +e[c+8>>3]))%+(0|b[a+4>>2]))>>>0,d=(0|b[a>>2])+(d<<2)|0,!(f=0|b[d>>2]))return 0|(h=1);h=c+32|0;do{if((0|f)!=(0|c)){if(!(d=0|b[f+32>>2]))return 0|(h=1);for(g=d;;){if((0|g)==(0|c)){g=8;break}if(!(d=0|b[g+32>>2])){d=1,g=10;break}f=g,g=d}if(8==(0|g)){b[f+32>>2]=b[h>>2];break}if(10==(0|g))return 0|d}else b[d>>2]=b[h>>2]}while(0);return Xc(c),b[(h=a+8|0)>>2]=(0|b[h>>2])-1,0|(h=0)}function Qc(a,c,d){a|=0,c|=0,d|=0;var h,f=0,g=0,i=0;(h=0|Wc(40))||H(23283,23253,98,23296),b[h>>2]=b[c>>2],b[h+4>>2]=b[c+4>>2],b[h+8>>2]=b[c+8>>2],b[h+12>>2]=b[c+12>>2],b[(g=h+16|0)>>2]=b[d>>2],b[g+4>>2]=b[d+4>>2],b[g+8>>2]=b[d+8>>2],b[g+12>>2]=b[d+12>>2],b[h+32>>2]=0,g=~~(+q(+ +s(10,+ +(15-(0|b[a+12>>2])|0))*(+e[c>>3]+ +e[c+8>>3]))%+(0|b[a+4>>2]))>>>0,g=(0|b[a>>2])+(g<<2)|0,f=0|b[g>>2];do{if(f){for(;!(0|hb(f,c)&&0|hb(f+16|0,d));)if(g=0|b[f+32>>2],!(0|b[(f=0==(0|g)?f:g)+32>>2])){i=10;break}if(10==(0|i)){b[f+32>>2]=h;break}return Xc(h),0|(i=f)}b[g>>2]=h}while(0);return b[(i=a+8|0)>>2]=1+(0|b[i>>2]),0|(i=h)}function Rc(a,c,d){c|=0,d|=0;var f=0,g=0;if(g=~~(+q(+ +s(10,+ +(15-(0|b[(a|=0)+12>>2])|0))*(+e[c>>3]+ +e[c+8>>3]))%+(0|b[a+4>>2]))>>>0,!(g=0|b[(0|b[a>>2])+(g<<2)>>2]))return 0|(d=0);if(!d){for(a=g;;){if(0|hb(a,c)){f=10;break}if(!(a=0|b[a+32>>2])){a=0,f=10;break}}if(10==(0|f))return 0|a}for(a=g;;){if(0|hb(a,c)&&0|hb(a+16|0,d)){f=10;break}if(!(a=0|b[a+32>>2])){a=0,f=10;break}}return 10==(0|f)?0|a:0}function Sc(a,c){c|=0;var d=0;if(d=~~(+q(+ +s(10,+ +(15-(0|b[(a|=0)+12>>2])|0))*(+e[c>>3]+ +e[c+8>>3]))%+(0|b[a+4>>2]))>>>0,!(a=0|b[(0|b[a>>2])+(d<<2)>>2]))return 0|(d=0);for(;;){if(0|hb(a,c)){c=5;break}if(!(a=0|b[a+32>>2])){a=0,c=5;break}}return 5==(0|c)?0|a:0}function Vc(a){return 0|~~+function Uc(a){return+ +id(+(a=+a))}(a=+a)}function Wc(a){a|=0;var w,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;w=S,S=S+16|0,n=w;do{if(a>>>0<245){if(a=(k=a>>>0<11?16:a+11&-8)>>>3,3&(d=(m=0|b[5829])>>>a)|0)return e=0|b[(d=(a=23356+((c=(1&d^1)+a|0)<<1<<2)|0)+8|0)>>2],(0|(g=0|b[(f=e+8|0)>>2]))==(0|a)?b[5829]=m&~(1<>2]=a,b[d>>2]=g),v=c<<3,b[e+4>>2]=3|v,b[(v=e+v+4|0)>>2]=1|b[v>>2],S=w,0|(v=f);if(k>>>0>(l=0|b[5831])>>>0){if(0|d)return c=((c=d<>>=i=c>>>12&16)>>>5&8)|i|(g=(c>>>=d)>>>2&4)|(a=(c>>>=g)>>>1&2)|(e=(c>>>=a)>>>1&1))+(c>>>e)|0)<<1<<2)|0)+8|0)>>2],(0|(d=0|b[(i=g+8|0)>>2]))==(0|c)?(a=m&~(1<>2]=c,b[a>>2]=d,a=m),h=(v=e<<3)-k|0,b[g+4>>2]=3|k,b[(f=g+k|0)+4>>2]=1|h,b[g+v>>2]=h,0|l&&(e=0|b[5834],d=23356+((c=l>>>3)<<1<<2)|0,a&(c=1<>2]:(b[5829]=a|c,c=d,a=d+8|0),b[a>>2]=e,b[c+12>>2]=e,b[e+8>>2]=c,b[e+12>>2]=d),b[5831]=h,b[5834]=f,S=w,0|(v=i);if(g=0|b[5830]){for(d=(g&0-g)-1|0,d=j=0|b[23620+(((e=(d>>>=f=d>>>12&16)>>>5&8)|f|(h=(d>>>=e)>>>2&4)|(i=(d>>>=h)>>>1&2)|(j=(d>>>=i)>>>1&1))+(d>>>j)<<2)>>2],i=j,j=(-8&b[j+4>>2])-k|0;(a=0|b[d+16>>2])||(a=0|b[d+20>>2]);)d=a,i=(f=(h=(-8&b[a+4>>2])-k|0)>>>0>>0)?a:i,j=f?h:j;if((h=i+k|0)>>>0>i>>>0){f=0|b[i+24>>2],c=0|b[i+12>>2];do{if((0|c)==(0|i)){if(!(c=0|b[(a=i+20|0)>>2])&&!(c=0|b[(a=i+16|0)>>2])){d=0;break}for(;;)if(d=0|b[(e=c+20|0)>>2])c=d,a=e;else{if(!(d=0|b[(e=c+16|0)>>2]))break;c=d,a=e}b[a>>2]=0,d=c}else d=0|b[i+8>>2],b[d+12>>2]=c,b[c+8>>2]=d,d=c}while(0);do{if(0|f){if(c=0|b[i+28>>2],(0|i)==(0|b[(a=23620+(c<<2)|0)>>2])){if(b[a>>2]=d,!d){b[5830]=g&~(1<>2])==(0|i)?v:f+20|0)>>2]=d,!d)break;b[d+24>>2]=f,0|(c=0|b[i+16>>2])&&(b[d+16>>2]=c,b[c+24>>2]=d),0|(c=0|b[i+20>>2])&&(b[d+20>>2]=c,b[c+24>>2]=d)}}while(0);return j>>>0<16?(v=j+k|0,b[i+4>>2]=3|v,b[(v=i+v+4|0)>>2]=1|b[v>>2]):(b[i+4>>2]=3|k,b[h+4>>2]=1|j,b[h+j>>2]=j,0|l&&(e=0|b[5834],d=23356+((c=l>>>3)<<1<<2)|0,(c=1<>2]:(b[5829]=c|m,c=d,a=d+8|0),b[a>>2]=e,b[c+12>>2]=e,b[e+8>>2]=c,b[e+12>>2]=d),b[5831]=j,b[5834]=h),S=w,0|(v=i+8|0)}m=k}else m=k}else m=k}else if(a>>>0<=4294967231)if(k=-8&(a=a+11|0),e=0|b[5830]){f=0-k|0,j=(a>>>=8)?k>>>0>16777215?31:k>>>((j=14-((i=((q=a<<(m=(a+1048320|0)>>>16&8))+520192|0)>>>16&4)|m|(j=((q<<=i)+245760|0)>>>16&2))+(q<>>15)|0)+7|0)&1|j<<1:0,d=0|b[23620+(j<<2)>>2];a:do{if(d)for(a=0,i=k<<(31==(0|j)?0:25-(j>>>1)|0),g=0;;){if((h=(-8&b[d+4>>2])-k|0)>>>0>>0){if(!h){a=d,f=0,q=65;break a}a=d,f=h}if(g=0==(0|(q=0|b[d+20>>2]))|(0|q)==(0|(d=0|b[d+16+(i>>>31<<2)>>2]))?g:q,!d){d=g,q=61;break}i<<=1}else d=0,a=0,q=61}while(0);if(61==(0|q)){if(0==(0|d)&0==(0|a)){if(!(a=((a=2<>>=h=m>>>12&16)>>>5&8)|h|(i=(m>>>=g)>>>2&4)|(j=(m>>>=i)>>>1&2)|(d=(m>>>=j)>>>1&1))+(m>>>d)<<2)>>2]}d?q=65:(i=a,h=f)}if(65==(0|q))for(g=d;;){if(f=(d=(m=(-8&b[g+4>>2])-k|0)>>>0>>0)?m:f,a=d?g:a,(d=0|b[g+16>>2])||(d=0|b[g+20>>2]),!d){i=a,h=f;break}g=d}if(0!=(0|i)&&h>>>0<((0|b[5831])-k|0)>>>0&&(l=i+k|0)>>>0>i>>>0){g=0|b[i+24>>2],c=0|b[i+12>>2];do{if((0|c)==(0|i)){if(!(c=0|b[(a=i+20|0)>>2])&&!(c=0|b[(a=i+16|0)>>2])){c=0;break}for(;;)if(d=0|b[(f=c+20|0)>>2])c=d,a=f;else{if(!(d=0|b[(f=c+16|0)>>2]))break;c=d,a=f}b[a>>2]=0}else v=0|b[i+8>>2],b[v+12>>2]=c,b[c+8>>2]=v}while(0);do{if(g){if(a=0|b[i+28>>2],(0|i)==(0|b[(d=23620+(a<<2)|0)>>2])){if(b[d>>2]=c,!c){e&=~(1<>2])==(0|i)?v:g+20|0)>>2]=c,!c)break;b[c+24>>2]=g,0|(a=0|b[i+16>>2])&&(b[c+16>>2]=a,b[a+24>>2]=c),(a=0|b[i+20>>2])&&(b[c+20>>2]=a,b[a+24>>2]=c)}}while(0);b:do{if(h>>>0<16)v=h+k|0,b[i+4>>2]=3|v,b[(v=i+v+4|0)>>2]=1|b[v>>2];else{if(b[i+4>>2]=3|k,b[l+4>>2]=1|h,b[l+h>>2]=h,c=h>>>3,h>>>0<256){d=23356+(c<<1<<2)|0,(a=0|b[5829])&(c=1<>2]:(b[5829]=a|c,c=d,a=d+8|0),b[a>>2]=l,b[c+12>>2]=l,b[l+8>>2]=c,b[l+12>>2]=d;break}if(c=23620+((d=(c=h>>>8)?h>>>0>16777215?31:h>>>((d=14-((t=((v=c<<(u=(c+1048320|0)>>>16&8))+520192|0)>>>16&4)|u|(d=((v<<=t)+245760|0)>>>16&2))+(v<>>15)|0)+7|0)&1|d<<1:0)<<2)|0,b[l+28>>2]=d,b[(a=l+16|0)+4>>2]=0,b[a>>2]=0,!(e&(a=1<>2]=l,b[l+24>>2]=c,b[l+12>>2]=l,b[l+8>>2]=l;break}c=0|b[c>>2];c:do{if((-8&b[c+4>>2]|0)!=(0|h)){for(e=h<<(31==(0|d)?0:25-(d>>>1)|0);a=0|b[(d=c+16+(e>>>31<<2)|0)>>2];){if((-8&b[a+4>>2]|0)==(0|h)){c=a;break c}e<<=1,c=a}b[d>>2]=l,b[l+24>>2]=c,b[l+12>>2]=l,b[l+8>>2]=l;break b}}while(0);v=0|b[(u=c+8|0)>>2],b[v+12>>2]=l,b[u>>2]=l,b[l+8>>2]=v,b[l+12>>2]=c,b[l+24>>2]=0}}while(0);return S=w,0|(v=i+8|0)}m=k}else m=k;else m=-1}while(0);if((d=0|b[5831])>>>0>=m>>>0)return c=d-m|0,a=0|b[5834],c>>>0>15?(v=a+m|0,b[5834]=v,b[5831]=c,b[v+4>>2]=1|c,b[a+d>>2]=c,b[a+4>>2]=3|m):(b[5831]=0,b[5834]=0,b[a+4>>2]=3|d,b[(v=a+d+4|0)>>2]=1|b[v>>2]),S=w,0|(v=a+8|0);if((h=0|b[5832])>>>0>m>>>0)return t=h-m|0,b[5832]=t,u=(v=0|b[5835])+m|0,b[5835]=u,b[u+4>>2]=1|t,b[v+4>>2]=3|m,S=w,0|(v=v+8|0);if(0|b[5947]?a=0|b[5949]:(b[5949]=4096,b[5948]=4096,b[5950]=-1,b[5951]=-1,b[5952]=0,b[5940]=0,b[5947]=-16&n^1431655768,a=4096),i=m+48|0,(k=(g=a+(j=m+47|0)|0)&(f=0-a|0))>>>0<=m>>>0)return S=w,0|(v=0);if(0|(a=0|b[5939])&&(n=(l=0|b[5937])+k|0)>>>0<=l>>>0|n>>>0>a>>>0)return S=w,0|(v=0);d:do{if(4&b[5940])c=0,q=143;else{d=0|b[5835];e:do{if(d){for(e=23764;!((n=0|b[e>>2])>>>0<=d>>>0&&(n+(0|b[e+4>>2])|0)>>>0>d>>>0);){if(!(a=0|b[e+8>>2])){q=128;break e}e=a}if((c=g-h&f)>>>0<2147483647)if((0|(a=0|jd(0|c)))==((0|b[e>>2])+(0|b[e+4>>2])|0)){if(-1!=(0|a)){h=c,g=a,q=145;break d}}else e=a,q=136;else c=0}else q=128}while(0);do{if(128==(0|q))if(-1!=(0|(d=0|jd(0)))&&(c=d,p=(c=(0==((p=(o=0|b[5948])+-1|0)&c|0)?0:(p+c&0-o)-c|0)+k|0)+(o=0|b[5937])|0,c>>>0>m>>>0&c>>>0<2147483647)){if(0|(n=0|b[5939])&&p>>>0<=o>>>0|p>>>0>n>>>0){c=0;break}if((0|(a=0|jd(0|c)))==(0|d)){h=c,g=d,q=145;break d}e=a,q=136}else c=0}while(0);do{if(136==(0|q)){if(d=0-c|0,!(i>>>0>c>>>0&c>>>0<2147483647&-1!=(0|e))){if(-1==(0|e)){c=0;break}h=c,g=e,q=145;break d}if((a=j-c+(a=0|b[5949])&0-a)>>>0>=2147483647){h=c,g=e,q=145;break d}if(-1==(0|jd(0|a))){jd(0|d),c=0;break}h=a+c|0,g=e,q=145;break d}}while(0);b[5940]=4|b[5940],q=143}}while(0);if(143==(0|q)&&k>>>0<2147483647&&!(-1==(0|(t=0|jd(0|k)))|1^(s=(r=(p=0|jd(0))-t|0)>>>0>(m+40|0)>>>0)|t>>>0

>>0&-1!=(0|t)&-1!=(0|p)^1)&&(h=s?r:c,g=t,q=145),145==(0|q)){c=(0|b[5937])+h|0,b[5937]=c,c>>>0>(0|b[5938])>>>0&&(b[5938]=c),j=0|b[5835];f:do{if(j){for(c=23764;;){if((0|g)==((a=0|b[c>>2])+(d=0|b[c+4>>2])|0)){q=154;break}if(!(e=0|b[c+8>>2]))break;c=e}if(154==(0|q)&&(u=c+4|0,0==(8&b[c+12>>2]|0))&&g>>>0>j>>>0&a>>>0<=j>>>0){b[u>>2]=d+h,u=j+(t=0==(7&(t=j+8|0)|0)?0:0-t&7)|0,t=(v=(0|b[5832])+h|0)-t|0,b[5835]=u,b[5832]=t,b[u+4>>2]=1|t,b[j+v+4>>2]=40,b[5836]=b[5951];break}for(g>>>0<(0|b[5833])>>>0&&(b[5833]=g),d=g+h|0,c=23764;;){if((0|b[c>>2])==(0|d)){q=162;break}if(!(a=0|b[c+8>>2]))break;c=a}if(162==(0|q)&&0==(8&b[c+12>>2]|0)){b[c>>2]=g,b[(l=c+4|0)>>2]=(0|b[l>>2])+h,k=(l=g+(0==(7&(l=g+8|0)|0)?0:0-l&7)|0)+m|0,i=(c=d+(0==(7&(c=d+8|0)|0)?0:0-c&7)|0)-l-m|0,b[l+4>>2]=3|m;g:do{if((0|j)==(0|c))v=(0|b[5832])+i|0,b[5832]=v,b[5835]=k,b[k+4>>2]=1|v;else{if((0|b[5834])==(0|c)){v=(0|b[5831])+i|0,b[5831]=v,b[5834]=k,b[k+4>>2]=1|v,b[k+v>>2]=v;break}if(1==(3&(a=0|b[c+4>>2])|0)){h=-8&a,e=a>>>3;h:do{if(a>>>0<256){if(a=0|b[c+8>>2],(0|(d=0|b[c+12>>2]))==(0|a)){b[5829]=b[5829]&~(1<>2]=d,b[d+8>>2]=a;break}g=0|b[c+24>>2],a=0|b[c+12>>2];do{if((0|a)==(0|c)){if(a=0|b[(e=(d=c+16|0)+4|0)>>2])d=e;else if(!(a=0|b[d>>2])){a=0;break}for(;;)if(e=0|b[(f=a+20|0)>>2])a=e,d=f;else{if(!(e=0|b[(f=a+16|0)>>2]))break;a=e,d=f}b[d>>2]=0}else v=0|b[c+8>>2],b[v+12>>2]=a,b[a+8>>2]=v}while(0);if(!g)break;e=23620+((d=0|b[c+28>>2])<<2)|0;do{if((0|b[e>>2])==(0|c)){if(b[e>>2]=a,0|a)break;b[5830]=b[5830]&~(1<>2])==(0|c)?v:g+20|0)>>2]=a,!a)break h}while(0);if(b[a+24>>2]=g,0|(e=0|b[(d=c+16|0)>>2])&&(b[a+16>>2]=e,b[e+24>>2]=a),!(d=0|b[d+4>>2]))break;b[a+20>>2]=d,b[d+24>>2]=a}while(0);c=c+h|0,f=h+i|0}else f=i;if(b[(c=c+4|0)>>2]=-2&b[c>>2],b[k+4>>2]=1|f,b[k+f>>2]=f,c=f>>>3,f>>>0<256){d=23356+(c<<1<<2)|0,(a=0|b[5829])&(c=1<>2]:(b[5829]=a|c,c=d,a=d+8|0),b[a>>2]=k,b[c+12>>2]=k,b[k+8>>2]=c,b[k+12>>2]=d;break}c=f>>>8;do{if(c){if(f>>>0>16777215){e=31;break}e=f>>>((e=14-((t=((v=c<<(u=(c+1048320|0)>>>16&8))+520192|0)>>>16&4)|u|(e=((v<<=t)+245760|0)>>>16&2))+(v<>>15)|0)+7|0)&1|e<<1}else e=0}while(0);if(c=23620+(e<<2)|0,b[k+28>>2]=e,b[(a=k+16|0)+4>>2]=0,b[a>>2]=0,!((a=0|b[5830])&(d=1<>2]=k,b[k+24>>2]=c,b[k+12>>2]=k,b[k+8>>2]=k;break}c=0|b[c>>2];i:do{if((-8&b[c+4>>2]|0)!=(0|f)){for(e=f<<(31==(0|e)?0:25-(e>>>1)|0);a=0|b[(d=c+16+(e>>>31<<2)|0)>>2];){if((-8&b[a+4>>2]|0)==(0|f)){c=a;break i}e<<=1,c=a}b[d>>2]=k,b[k+24>>2]=c,b[k+12>>2]=k,b[k+8>>2]=k;break g}}while(0);v=0|b[(u=c+8|0)>>2],b[v+12>>2]=k,b[u>>2]=k,b[k+8>>2]=v,b[k+12>>2]=c,b[k+24>>2]=0}}while(0);return S=w,0|(v=l+8|0)}for(c=23764;!((a=0|b[c>>2])>>>0<=j>>>0&&(v=a+(0|b[c+4>>2])|0)>>>0>j>>>0);)c=0|b[c+8>>2];c=(a=(a=(f=v+-47|0)+(0==(7&(a=f+8|0)|0)?0:0-a&7)|0)>>>0<(f=j+16|0)>>>0?j:a)+8|0,u=g+(t=0==(7&(t=g+8|0)|0)?0:0-t&7)|0,t=(d=h+-40|0)-t|0,b[5835]=u,b[5832]=t,b[u+4>>2]=1|t,b[g+d+4>>2]=40,b[5836]=b[5951],b[(d=a+4|0)>>2]=27,b[c>>2]=b[5941],b[c+4>>2]=b[5942],b[c+8>>2]=b[5943],b[c+12>>2]=b[5944],b[5941]=g,b[5942]=h,b[5944]=0,b[5943]=c,c=a+24|0;do{u=c,b[(c=c+4|0)>>2]=7}while((u+8|0)>>>0>>0);if((0|a)!=(0|j)){if(g=a-j|0,b[d>>2]=-2&b[d>>2],b[j+4>>2]=1|g,b[a>>2]=g,c=g>>>3,g>>>0<256){d=23356+(c<<1<<2)|0,(a=0|b[5829])&(c=1<>2]:(b[5829]=a|c,c=d,a=d+8|0),b[a>>2]=j,b[c+12>>2]=j,b[j+8>>2]=c,b[j+12>>2]=d;break}if(d=23620+((e=(c=g>>>8)?g>>>0>16777215?31:g>>>((e=14-((t=((v=c<<(u=(c+1048320|0)>>>16&8))+520192|0)>>>16&4)|u|(e=((v<<=t)+245760|0)>>>16&2))+(v<>>15)|0)+7|0)&1|e<<1:0)<<2)|0,b[j+28>>2]=e,b[j+20>>2]=0,b[f>>2]=0,!((c=0|b[5830])&(a=1<>2]=j,b[j+24>>2]=d,b[j+12>>2]=j,b[j+8>>2]=j;break}c=0|b[d>>2];j:do{if((-8&b[c+4>>2]|0)!=(0|g)){for(e=g<<(31==(0|e)?0:25-(e>>>1)|0);a=0|b[(d=c+16+(e>>>31<<2)|0)>>2];){if((-8&b[a+4>>2]|0)==(0|g)){c=a;break j}e<<=1,c=a}b[d>>2]=j,b[j+24>>2]=c,b[j+12>>2]=j,b[j+8>>2]=j;break f}}while(0);v=0|b[(u=c+8|0)>>2],b[v+12>>2]=j,b[u>>2]=j,b[j+8>>2]=v,b[j+12>>2]=c,b[j+24>>2]=0}}else 0==(0|(v=0|b[5833]))|g>>>0>>0&&(b[5833]=g),b[5941]=g,b[5942]=h,b[5944]=0,b[5838]=b[5947],b[5837]=-1,b[5842]=23356,b[5841]=23356,b[5844]=23364,b[5843]=23364,b[5846]=23372,b[5845]=23372,b[5848]=23380,b[5847]=23380,b[5850]=23388,b[5849]=23388,b[5852]=23396,b[5851]=23396,b[5854]=23404,b[5853]=23404,b[5856]=23412,b[5855]=23412,b[5858]=23420,b[5857]=23420,b[5860]=23428,b[5859]=23428,b[5862]=23436,b[5861]=23436,b[5864]=23444,b[5863]=23444,b[5866]=23452,b[5865]=23452,b[5868]=23460,b[5867]=23460,b[5870]=23468,b[5869]=23468,b[5872]=23476,b[5871]=23476,b[5874]=23484,b[5873]=23484,b[5876]=23492,b[5875]=23492,b[5878]=23500,b[5877]=23500,b[5880]=23508,b[5879]=23508,b[5882]=23516,b[5881]=23516,b[5884]=23524,b[5883]=23524,b[5886]=23532,b[5885]=23532,b[5888]=23540,b[5887]=23540,b[5890]=23548,b[5889]=23548,b[5892]=23556,b[5891]=23556,b[5894]=23564,b[5893]=23564,b[5896]=23572,b[5895]=23572,b[5898]=23580,b[5897]=23580,b[5900]=23588,b[5899]=23588,b[5902]=23596,b[5901]=23596,b[5904]=23604,b[5903]=23604,u=g+(t=0==(7&(t=g+8|0)|0)?0:0-t&7)|0,t=(v=h+-40|0)-t|0,b[5835]=u,b[5832]=t,b[u+4>>2]=1|t,b[g+v+4>>2]=40,b[5836]=b[5951]}while(0);if((c=0|b[5832])>>>0>m>>>0)return t=c-m|0,b[5832]=t,u=(v=0|b[5835])+m|0,b[5835]=u,b[u+4>>2]=1|t,b[v+4>>2]=3|m,S=w,0|(v=v+8|0)}return b[(v=23312)>>2]=12,S=w,0|(v=0)}function Xc(a){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;if(a|=0){d=a+-8|0,f=0|b[5833],j=d+(c=-8&(a=0|b[a+-4>>2]))|0;do{if(1&a)i=d,h=d;else{if(e=0|b[d>>2],!(3&a))return;if(g=e+c|0,(h=d+(0-e)|0)>>>0>>0)return;if((0|b[5834])==(0|h)){if(3!=(3&(c=0|b[(a=j+4|0)>>2])|0)){i=h,c=g;break}return b[5831]=g,b[a>>2]=-2&c,b[h+4>>2]=1|g,void(b[h+g>>2]=g)}if(d=e>>>3,e>>>0<256){if(a=0|b[h+8>>2],(0|(c=0|b[h+12>>2]))==(0|a)){b[5829]=b[5829]&~(1<>2]=c,b[c+8>>2]=a,i=h,c=g;break}f=0|b[h+24>>2],a=0|b[h+12>>2];do{if((0|a)==(0|h)){if(a=0|b[(d=(c=h+16|0)+4|0)>>2])c=d;else if(!(a=0|b[c>>2])){a=0;break}for(;;)if(d=0|b[(e=a+20|0)>>2])a=d,c=e;else{if(!(d=0|b[(e=a+16|0)>>2]))break;a=d,c=e}b[c>>2]=0}else i=0|b[h+8>>2],b[i+12>>2]=a,b[a+8>>2]=i}while(0);if(f){if(c=0|b[h+28>>2],(0|b[(d=23620+(c<<2)|0)>>2])==(0|h)){if(b[d>>2]=a,!a){b[5830]=b[5830]&~(1<>2])==(0|h)?i:f+20|0)>>2]=a,!a){i=h,c=g;break}b[a+24>>2]=f,0|(d=0|b[(c=h+16|0)>>2])&&(b[a+16>>2]=d,b[d+24>>2]=a),(c=0|b[c+4>>2])?(b[a+20>>2]=c,b[c+24>>2]=a,i=h,c=g):(i=h,c=g)}else i=h,c=g}}while(0);if(!(h>>>0>=j>>>0)&&1&(e=0|b[(a=j+4|0)>>2])){if(2&e)b[a>>2]=-2&e,b[i+4>>2]=1|c,b[h+c>>2]=c,f=c;else{if((0|b[5835])==(0|j)){if(j=(0|b[5832])+c|0,b[5832]=j,b[5835]=i,b[i+4>>2]=1|j,(0|i)!=(0|b[5834]))return;return b[5834]=0,void(b[5831]=0)}if((0|b[5834])==(0|j))return j=(0|b[5831])+c|0,b[5831]=j,b[5834]=h,b[i+4>>2]=1|j,void(b[h+j>>2]=j);f=(-8&e)+c|0,d=e>>>3;do{if(e>>>0<256){if(c=0|b[j+8>>2],(0|(a=0|b[j+12>>2]))==(0|c)){b[5829]=b[5829]&~(1<>2]=a,b[a+8>>2]=c;break}g=0|b[j+24>>2],a=0|b[j+12>>2];do{if((0|a)==(0|j)){if(a=0|b[(d=(c=j+16|0)+4|0)>>2])c=d;else if(!(a=0|b[c>>2])){d=0;break}for(;;)if(d=0|b[(e=a+20|0)>>2])a=d,c=e;else{if(!(d=0|b[(e=a+16|0)>>2]))break;a=d,c=e}b[c>>2]=0,d=a}else d=0|b[j+8>>2],b[d+12>>2]=a,b[a+8>>2]=d,d=a}while(0);if(0|g){if(a=0|b[j+28>>2],(0|b[(c=23620+(a<<2)|0)>>2])==(0|j)){if(b[c>>2]=d,!d){b[5830]=b[5830]&~(1<>2])==(0|j)?e:g+20|0)>>2]=d,!d)break;b[d+24>>2]=g,0|(c=0|b[(a=j+16|0)>>2])&&(b[d+16>>2]=c,b[c+24>>2]=d),0|(a=0|b[a+4>>2])&&(b[d+20>>2]=a,b[a+24>>2]=d)}}while(0);if(b[i+4>>2]=1|f,b[h+f>>2]=f,(0|i)==(0|b[5834]))return void(b[5831]=f)}if(a=f>>>3,f>>>0<256)return d=23356+(a<<1<<2)|0,(c=0|b[5829])&(a=1<>2]:(b[5829]=c|a,a=d,c=d+8|0),b[c>>2]=i,b[a+12>>2]=i,b[i+8>>2]=a,void(b[i+12>>2]=d);a=23620+((e=(a=f>>>8)?f>>>0>16777215?31:f>>>((e=14-((g=((j=a<<(h=(a+1048320|0)>>>16&8))+520192|0)>>>16&4)|h|(e=((j<<=g)+245760|0)>>>16&2))+(j<>>15)|0)+7|0)&1|e<<1:0)<<2)|0,b[i+28>>2]=e,b[i+20>>2]=0,b[i+16>>2]=0,c=0|b[5830],d=1<>2];b:do{if((-8&b[a+4>>2]|0)!=(0|f)){for(e=f<<(31==(0|e)?0:25-(e>>>1)|0);c=0|b[(d=a+16+(e>>>31<<2)|0)>>2];){if((-8&b[c+4>>2]|0)==(0|f)){a=c;break b}e<<=1,a=c}b[d>>2]=i,b[i+24>>2]=a,b[i+12>>2]=i,b[i+8>>2]=i;break a}}while(0);j=0|b[(h=a+8|0)>>2],b[j+12>>2]=i,b[h>>2]=i,b[i+8>>2]=j,b[i+12>>2]=a,b[i+24>>2]=0}else b[5830]=c|d,b[a>>2]=i,b[i+24>>2]=a,b[i+12>>2]=i,b[i+8>>2]=i}while(0);if(j=(0|b[5837])-1|0,b[5837]=j,!(0|j)){for(a=23772;a=0|b[a>>2];)a=a+8|0;b[5837]=-1}}}}function Yc(a,c){c|=0;var d=0;return(a|=0)?(d=0|B(c,a),(c|a)>>>0>65535&&(d=(0|(d>>>0)/(a>>>0))==(0|c)?d:-1)):d=0,(a=0|Wc(d))&&3&b[a+-4>>2]?(hd(0|a,0,0|d),0|a):0|a}function _c(a,b,c,d){return 0|(F(0|(d=(b|=0)-(d|=0)-((c|=0)>>>0>(a|=0)>>>0|0)>>>0)),a-c>>>0|0)}function $c(a){return 0|((a|=0)?31-(0|D(a^a-1))|0:32)}function ad(a,c,d,e,f){f|=0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if(l=a|=0,h=d|=0,i=n=e|=0,!(k=j=c|=0))return g=0!=(0|f),i?g?(b[f>>2]=0|a,b[f+4>>2]=0&c,f=0,0|(F(0|(n=0)),f)):(f=0,0|(F(0|(n=0)),f)):(g&&(b[f>>2]=(l>>>0)%(h>>>0),b[f+4>>2]=0),f=(l>>>0)/(h>>>0)>>>0,0|(F(0|(n=0)),f));g=0==(0|i);do{if(h){if(!g){if((g=(0|D(0|i))-(0|D(0|k))|0)>>>0<=31){h=m=g+1|0,a=l>>>(m>>>0)&(c=g-31>>31)|k<<(i=31-g|0),c&=k>>>(m>>>0),g=0,i=l<>2]=0|a,b[f+4>>2]=j|0&c,f=0,0|(F(0|(n=0)),f)):(f=0,0|(F(0|(n=0)),f))}if((g=h-1|0)&h|0){h=i=33+(0|D(0|h))-(0|D(0|k))|0,a=(m=32-i|0)-1>>31&k>>>((o=i-32|0)>>>0)|(k<>>(i>>>0))&(c=o>>31),c&=k>>>(i>>>0),g=l<<(p=64-i|0)&(j=m>>31),i=(k<>>(o>>>0))&j|l<>31;break}return 0|f&&(b[f>>2]=g&l,b[f+4>>2]=0),1==(0|h)?(p=0|a,0|(F(0|(o=j|0&c)),p)):(o=k>>>((p=0|$c(0|h))>>>0)|0,p=k<<32-p|l>>>(p>>>0)|0,0|(F(0|o),p))}if(g)return 0|f&&(b[f>>2]=(k>>>0)%(h>>>0),b[f+4>>2]=0),p=(k>>>0)/(h>>>0)>>>0,0|(F(0|(o=0)),p);if(!l)return 0|f&&(b[f>>2]=0,b[f+4>>2]=(k>>>0)%(i>>>0)),p=(k>>>0)/(i>>>0)>>>0,0|(F(0|(o=0)),p);if(!((g=i-1|0)&i))return 0|f&&(b[f>>2]=0|a,b[f+4>>2]=g&k|0&c),o=0,p=k>>>((0|$c(0|i))>>>0),0|(F(0|o),p);if((g=(0|D(0|i))-(0|D(0|k))|0)>>>0<=30){h=c=g+1|0,a=k<<(i=31-g|0)|l>>>(c>>>0),c=k>>>(c>>>0),g=0,i=l<>2]=0|a,b[f+4>>2]=j|0&c,p=0,0|(F(0|(o=0)),p)):(p=0,0|(F(0|(o=0)),p))}while(0);if(h){k=0|function Zc(a,b,c,d){return 0|(F((b|=0)+(d|=0)+((c=(a|=0)+(c|=0)>>>0)>>>0>>0|0)>>>0|0),0|c)}(0|(m=0|d),0|(l=n|0&e),-1,-1),d=0|G(),j=i,i=0;do{e=j,j=g>>>31|j<<1,g=i|g<<1,_c(0|k,0|d,0|(e=a<<1|e>>>31|0),0|(n=a>>>31|c<<1|0)),i=1&(o=(p=0|G())>>31|((0|p)<0?-1:0)<<1),a=0|_c(0|e,0|n,o&m|0,(((0|p)<0?-1:0)>>31|((0|p)<0?-1:0)<<1)&l|0),c=0|G(),h=h-1|0}while(0!=(0|h));k=j,j=0}else k=i,j=0,i=0;return h=0,0|f&&(b[f>>2]=a,b[f+4>>2]=c),p=-2&(g<<1|0)|i,0|(F(0|(o=(0|g)>>>31|(k|h)<<1|0&(h<<1|g>>>31)|j)),p)}function bd(a,c,d,e){var f,g;return g=S,S=S+16|0,ad(a|=0,c|=0,d|=0,e|=0,f=0|g),S=g,0|(F(0|b[f+4>>2]),0|b[f>>2])}function cd(a,b,c){return a|=0,b|=0,(0|(c|=0))<32?(F(b>>>c|0),a>>>c|(b&(1<>>c-32|0)}function dd(a,b,c){return a|=0,b|=0,(0|(c|=0))<32?(F(b<>>32-c|0),a<=0?+p(a+.5):+A(a-.5)}function gd(c,d,e){c|=0,d|=0;var g,h,f=0;if((0|(e|=0))>=8192)return K(0|c,0|d,0|e),0|c;if(h=0|c,g=c+e|0,(3&c)==(3&d)){for(;3&c;){if(!e)return 0|h;a[c>>0]=0|a[d>>0],c=c+1|0,d=d+1|0,e=e-1|0}for(f=(e=-4&g|0)-64|0;(0|c)<=(0|f);)b[c>>2]=b[d>>2],b[c+4>>2]=b[d+4>>2],b[c+8>>2]=b[d+8>>2],b[c+12>>2]=b[d+12>>2],b[c+16>>2]=b[d+16>>2],b[c+20>>2]=b[d+20>>2],b[c+24>>2]=b[d+24>>2],b[c+28>>2]=b[d+28>>2],b[c+32>>2]=b[d+32>>2],b[c+36>>2]=b[d+36>>2],b[c+40>>2]=b[d+40>>2],b[c+44>>2]=b[d+44>>2],b[c+48>>2]=b[d+48>>2],b[c+52>>2]=b[d+52>>2],b[c+56>>2]=b[d+56>>2],b[c+60>>2]=b[d+60>>2],c=c+64|0,d=d+64|0;for(;(0|c)<(0|e);)b[c>>2]=b[d>>2],c=c+4|0,d=d+4|0}else for(e=g-4|0;(0|c)<(0|e);)a[c>>0]=0|a[d>>0],a[c+1>>0]=0|a[d+1>>0],a[c+2>>0]=0|a[d+2>>0],a[c+3>>0]=0|a[d+3>>0],c=c+4|0,d=d+4|0;for(;(0|c)<(0|g);)a[c>>0]=0|a[d>>0],c=c+1|0,d=d+1|0;return 0|h}function hd(c,d,e){d|=0;var h,f=0,g=0,i=0;if(h=(c|=0)+(e|=0)|0,d&=255,(0|e)>=67){for(;3&c;)a[c>>0]=d,c=c+1|0;for(i=d|d<<8|d<<16|d<<24,g=(f=-4&h|0)-64|0;(0|c)<=(0|g);)b[c>>2]=i,b[c+4>>2]=i,b[c+8>>2]=i,b[c+12>>2]=i,b[c+16>>2]=i,b[c+20>>2]=i,b[c+24>>2]=i,b[c+28>>2]=i,b[c+32>>2]=i,b[c+36>>2]=i,b[c+40>>2]=i,b[c+44>>2]=i,b[c+48>>2]=i,b[c+52>>2]=i,b[c+56>>2]=i,b[c+60>>2]=i,c=c+64|0;for(;(0|c)<(0|f);)b[c>>2]=i,c=c+4|0}for(;(0|c)<(0|h);)a[c>>0]=d,c=c+1|0;return h-e|0}function id(a){return(a=+a)>=0?+p(a+.5):+A(a-.5)}function jd(a){a|=0;var c,d,e;return e=0|J(),(0|a)>0&(0|(c=(d=0|b[g>>2])+a|0))<(0|d)|(0|c)<0?(M(0|c),I(12),-1):(0|c)>(0|e)&&!(0|L(0|c))?(I(12),-1):(b[g>>2]=c,0|d)}return{___uremdi3:bd,_bitshift64Lshr:cd,_bitshift64Shl:dd,_calloc:Yc,_cellAreaKm2:function ub(a,c){var e,f,g,d=0;if(g=S,S=S+192|0,f=g,Vb(a|=0,c|=0,e=g+168|0),Wb(a,c,f),(0|(c=0|b[f>>2]))>0){if(d=+sb(f+8|0,f+8+((1!=(0|c)&1)<<4)|0,e)+0,1!=(0|c)){a=1;do{d+=+sb(f+8+(a<<4)|0,f+8+(((0|(a=a+1|0))%(0|c)|0)<<4)|0,e)}while((0|a)<(0|c))}}else d=0;return S=g,6371.007180918475*d*6371.007180918475},_cellAreaM2:function vb(a,c){var e,f,g,d=0;if(g=S,S=S+192|0,f=g,Vb(a|=0,c|=0,e=g+168|0),Wb(a,c,f),(0|(c=0|b[f>>2]))>0){if(d=+sb(f+8|0,f+8+((1!=(0|c)&1)<<4)|0,e)+0,1!=(0|c)){a=1;do{d+=+sb(f+8+(a<<4)|0,f+8+(((0|(a=a+1|0))%(0|c)|0)<<4)|0,e)}while((0|a)<(0|c))}}else d=0;return S=g,6371.007180918475*d*6371.007180918475*1e3*1e3},_cellAreaRads2:function tb(a,c){var e,f,g,d=0;if(g=S,S=S+192|0,f=g,Vb(a|=0,c|=0,e=g+168|0),Wb(a,c,f),(0|(c=0|b[f>>2]))<=0)return S=g,+(d=0);if(d=+sb(f+8|0,f+8+((1!=(0|c)&1)<<4)|0,e)+0,1==(0|c))return S=g,+d;a=1;do{d+=+sb(f+8+(a<<4)|0,f+8+(((0|(a=a+1|0))%(0|c)|0)<<4)|0,e)}while((0|a)<(0|c));return S=g,+d},_compact:function Hb(a,c,d){c|=0;var v,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,w=0,x=0,y=0,z=0;if(!(d|=0))return 0|(y=0);if(e=0|b[(f=a|=0)>>2],!0&0==(15728640&(f=0|b[f+4>>2])|0)){if((0|d)<=0)return 0|(y=0);if(b[(y=c)>>2]=e,b[y+4>>2]=f,1==(0|d))return 0|(y=0);e=1;do{x=0|b[(w=a+(e<<3)|0)+4>>2],b[(y=c+(e<<3)|0)>>2]=b[w>>2],b[y+4>>2]=x,e=e+1|0}while((0|e)!=(0|d));return 0|(e=0)}if(!(x=0|Wc(w=d<<3)))return 0|(y=-3);if(gd(0|x,0|a,0|w),!(v=0|Yc(d,8)))return Xc(x),0|(y=-3);e=d;a:for(;;){t=0|cd(0|(l=0|b[(h=x)>>2]),0|(h=0|b[h+4>>2]),52),G(),u=(t&=15)+-1|0,s=(0|e)>0;b:do{if(s){if(r=((0|e)<0)<<31>>31,p=0|dd(0|u,0,52),q=0|G(),u>>>0>15)for(f=0,a=l,d=h;;){if(!(0==(0|a)&0==(0|d))){if(g=0|cd(0|a,0|d,52),G(),i=(0|(g&=15))<(0|u),g=(0|g)==(0|u),d=0|bd(0|(k=i?0:g?a:0),0|(a=i?0:g?d:0),0|e,0|r),G(),0==(0|(j=0|b[(i=g=v+(d<<3)|0)>>2]))&0==(0|(i=0|b[i+4>>2])))d=k;else for(p=0,o=d,n=i,d=k;;){if((0|p)>(0|e)){y=41;break a}if((0|j)==(0|d)&(-117440513&n|0)==(0|a)){k=0|cd(0|j,0|n,56),G(),m=(k&=7)+1|0,q=0|cd(0|j,0|n,45),G();c:do{if(0|la(127&q)){if(j=0|cd(0|j,0|n,52),G(),!(j&=15)){i=6;break}for(i=1;;){if(!(0==((q=0|dd(7,0,3*(15-i|0)|0))&d|0)&0==((0|G())&a|0))){i=7;break c}if(!(i>>>0>>0)){i=6;break}i=i+1|0}}else i=7}while(0);if((k+2|0)>>>0>i>>>0){y=51;break a}q=0|dd(0|m,0,56),a=0|G()|-117440513&a,b[(i=g)>>2]=0,b[i+4>>2]=0,i=o,d|=q}else i=(o+1|0)%(0|e)|0;if(0==(0|(j=0|b[(n=g=v+(i<<3)|0)>>2]))&0==(0|(n=0|b[n+4>>2])))break;p=p+1|0,o=i}b[(q=g)>>2]=d,b[q+4>>2]=a}if((0|(f=f+1|0))>=(0|e))break b;a=0|b[(d=x+(f<<3)|0)>>2],d=0|b[d+4>>2]}for(f=0,a=l,d=h;;){if(!(0==(0|a)&0==(0|d))){if(i=0|cd(0|a,0|d,52),G(),(0|(i&=15))>=(0|u)){if((0|i)!=(0|u)&&(a|=p,d=-15728641&d|q,i>>>0>=t>>>0)){g=u;do{o=0|dd(7,0,3*(14-g|0)|0),g=g+1|0,a|=o,d=0|G()|d}while(g>>>0>>0)}}else a=0,d=0;if(i=0|bd(0|a,0|d,0|e,0|r),G(),!(0==(0|(k=0|b[(j=g=v+(i<<3)|0)>>2]))&0==(0|(j=0|b[j+4>>2]))))for(o=0;;){if((0|o)>(0|e)){y=41;break a}if((0|k)==(0|a)&(-117440513&j|0)==(0|d)){m=0|cd(0|k,0|j,56),G(),n=(m&=7)+1|0,z=0|cd(0|k,0|j,45),G();d:do{if(0|la(127&z)){if(k=0|cd(0|k,0|j,52),G(),!(k&=15)){j=6;break}for(j=1;;){if(!(0==((z=0|dd(7,0,3*(15-j|0)|0))&a|0)&0==((0|G())&d|0))){j=7;break d}if(!(j>>>0>>0)){j=6;break}j=j+1|0}}else j=7}while(0);if((m+2|0)>>>0>j>>>0){y=51;break a}z=0|dd(0|n,0,56),d=0|G()|-117440513&d,b[(n=g)>>2]=0,b[n+4>>2]=0,a|=z}else i=(i+1|0)%(0|e)|0;if(0==(0|(k=0|b[(j=g=v+(i<<3)|0)>>2]))&0==(0|(j=0|b[j+4>>2])))break;o=o+1|0}b[(z=g)>>2]=a,b[z+4>>2]=d}if((0|(f=f+1|0))>=(0|e))break b;a=0|b[(d=x+(f<<3)|0)>>2],d=0|b[d+4>>2]}}}while(0);if((e+5|0)>>>0<11){y=99;break}if(!(q=0|Yc((0|e)/6|0,8))){y=58;break}e:do{if(s){o=0,n=0;do{if(!(0==(0|(f=0|b[(a=i=v+(o<<3)|0)>>2]))&0==(0|(a=0|b[a+4>>2])))){j=0|cd(0|f,0|a,56),G(),d=(j&=7)+1|0,k=-117440513&a,z=0|cd(0|f,0|a,45),G();f:do{if(0|la(127&z)){if(m=0|cd(0|f,0|a,52),G(),0|(m&=15))for(g=1;;){if(!(0==(f&(z=0|dd(7,0,3*(15-g|0)|0))|0)&0==(k&(0|G())|0)))break f;if(!(g>>>0>>0))break;g=g+1|0}f|=a=0|dd(0|d,0,56),a=0|G()|k,b[(d=i)>>2]=f,b[d+4>>2]=a,d=j+2|0}}while(0);7==(0|d)&&(b[(z=q+(n<<3)|0)>>2]=f,b[z+4>>2]=-117440513&a,n=n+1|0)}o=o+1|0}while((0|o)!=(0|e));if(s){if(p=((0|e)<0)<<31>>31,m=0|dd(0|u,0,52),o=0|G(),u>>>0>15)for(a=0,f=0;;){do{if(!(0==(0|l)&0==(0|h))){for(j=0|cd(0|l,0|h,52),G(),g=(0|(j&=15))<(0|u),j=(0|j)==(0|u),g=0|bd(0|(i=g?0:j?l:0),0|(j=g?0:j?h:0),0|e,0|p),G(),d=0;;){if((0|d)>(0|e)){y=98;break a}if((-117440513&(k=0|b[(z=v+(g<<3)|0)+4>>2])|0)==(0|j)&&(0|b[z>>2])==(0|i)){y=70;break}if((0|b[(z=v+((g=(g+1|0)%(0|e)|0)<<3)|0)>>2])==(0|i)&&(0|b[z+4>>2])==(0|j))break;d=d+1|0}if(70==(0|y)&&(y=0,!0&100663296==(117440512&k|0)))break;b[(z=c+(f<<3)|0)>>2]=l,b[z+4>>2]=h,f=f+1|0}}while(0);if((0|(a=a+1|0))>=(0|e)){e=n;break e}l=0|b[(h=x+(a<<3)|0)>>2],h=0|b[h+4>>2]}for(a=0,f=0;;){do{if(!(0==(0|l)&0==(0|h))){if(j=0|cd(0|l,0|h,52),G(),(0|(j&=15))>=(0|u))if((0|j)!=(0|u))if(d=l|m,g=-15728641&h|o,j>>>0>>0)j=g;else{i=u;do{z=0|dd(7,0,3*(14-i|0)|0),i=i+1|0,d|=z,g=0|G()|g}while(i>>>0>>0);j=g}else d=l,j=h;else d=0,j=0;for(i=0|bd(0|d,0|j,0|e,0|p),G(),g=0;;){if((0|g)>(0|e)){y=98;break a}if((-117440513&(k=0|b[(z=v+(i<<3)|0)+4>>2])|0)==(0|j)&&(0|b[z>>2])==(0|d)){y=93;break}if((0|b[(z=v+((i=(i+1|0)%(0|e)|0)<<3)|0)>>2])==(0|d)&&(0|b[z+4>>2])==(0|j))break;g=g+1|0}if(93==(0|y)&&(y=0,!0&100663296==(117440512&k|0)))break;b[(z=c+(f<<3)|0)>>2]=l,b[z+4>>2]=h,f=f+1|0}}while(0);if((0|(a=a+1|0))>=(0|e)){e=n;break e}l=0|b[(h=x+(a<<3)|0)>>2],h=0|b[h+4>>2]}}else f=0,e=n}else f=0,e=0}while(0);if(hd(0|v,0,0|w),gd(0|x,0|q,e<<3|0),Xc(q),!e)break;c=c+(f<<3)|0}return 41==(0|y)?(Xc(x),Xc(v),0|(z=-1)):51==(0|y)?(Xc(x),Xc(v),0|(z=-2)):58==(0|y)?(Xc(x),Xc(v),0|(z=-3)):98==(0|y)?(Xc(q),Xc(x),Xc(v),0|(z=-1)):(99==(0|y)&&gd(0|c,0|x,e<<3|0),Xc(x),Xc(v),0|(z=0))},_destroyLinkedPolygon:function jc(a){var c=0,d=0,e=0,f=0;if(a|=0)for(e=1;;){if(0|(c=0|b[a>>2]))do{if(0|(d=0|b[c>>2]))do{f=d,d=0|b[d+16>>2],Xc(f)}while(0!=(0|d));f=c,c=0|b[c+8>>2],Xc(f)}while(0!=(0|c));if(c=a,a=0|b[a+8>>2],e||Xc(c),!a)break;e=0}},_edgeLengthKm:function pb(a){return+ +e[20752+((a|=0)<<3)>>3]},_edgeLengthM:function qb(a){return+ +e[20880+((a|=0)<<3)>>3]},_emscripten_replace_memory:function V(newBuffer){return a=new Int8Array(newBuffer),new Uint8Array(newBuffer),b=new Int32Array(newBuffer),new Float32Array(newBuffer),e=new Float64Array(newBuffer),buffer=newBuffer,!0},_exactEdgeLengthKm:function xb(a,c){var h,i,d=0,f=0,g=0,j=0,k=0,l=0;if(i=S,S=S+176|0,gc(a|=0,c|=0,h=i),(0|(a=0|b[h>>2]))<=1)return S=i,+(g=0);c=a+-1|0,a=0,d=0,f=+e[h+8>>3],g=+e[h+16>>3];do{k=f,f=+e[h+8+((a=a+1|0)<<4)>>3],l=+u(.5*(f-k)),j=g,g=+e[h+8+(a<<4)+8>>3],j=l*l+(j=+u(.5*(g-j)))*(+t(+k)*+t(+f)*j),d+=2*+z(+ +r(+j),+ +r(+(1-j)))}while((0|a)!=(0|c));return S=i,+(l=6371.007180918475*d)},_exactEdgeLengthM:function yb(a,c){var h,i,d=0,f=0,g=0,j=0,k=0,l=0;if(i=S,S=S+176|0,gc(a|=0,c|=0,h=i),(0|(a=0|b[h>>2]))<=1)return S=i,+(g=0);c=a+-1|0,a=0,d=0,f=+e[h+8>>3],g=+e[h+16>>3];do{k=f,f=+e[h+8+((a=a+1|0)<<4)>>3],l=+u(.5*(f-k)),j=g,g=+e[h+8+(a<<4)+8>>3],j=l*l+(j=+u(.5*(g-j)))*(+t(+k)*+t(+f)*j),d+=2*+z(+ +r(+j),+ +r(+(1-j)))}while((0|a)!=(0|c));return S=i,+(l=6371.007180918475*d*1e3)},_exactEdgeLengthRads:function wb(a,c){var h,i,d=0,f=0,g=0,j=0,k=0,l=0;if(i=S,S=S+176|0,gc(a|=0,c|=0,h=i),(0|(a=0|b[h>>2]))<=1)return S=i,+(g=0);c=a+-1|0,a=0,d=0,f=+e[h+8>>3],g=+e[h+16>>3];do{k=f,f=+e[h+8+((a=a+1|0)<<4)>>3],l=+u(.5*(f-k)),j=g,g=+e[h+8+(a<<4)+8>>3],j=l*l+(j=+u(.5*(g-j)))*(+t(+f)*+t(+k)*j),d+=2*+z(+ +r(+j),+ +r(+(1-j)))}while((0|a)<(0|c));return S=i,+d},_experimentalH3ToLocalIj:function oc(a,b,c,d,e){var f,g;return e|=0,g=S,S=S+16|0,(a=0|mc(a|=0,b|=0,c|=0,d|=0,f=g))||(Ua(f,e),a=0),S=g,0|a},_experimentalLocalIjToH3:function pc(a,b,c,d){var e,f;return a|=0,b|=0,d|=0,e=S,S=S+16|0,Va(c|=0,f=e),d=0|nc(a,b,f,d),S=e,0|d},_free:Xc,_geoToH3:Sb,_getDestinationH3IndexFromUnidirectionalEdge:function cc(a,c){a|=0;var e,f,d=0;return e=S,S=S+16|0,d=e,!0&268435456==(2013265920&(c|=0)|0)?(f=0|cd(0|a,0|c,56),G(),b[d>>2]=0,d=0|da(a,-2130706433&c|134217728,7&f,d),c=0|G(),F(0|c),S=e,0|d):(d=0,F(0|(c=0)),S=e,0|d)},_getH3IndexesFromUnidirectionalEdge:function ec(a,c,d){a|=0;var e,f,g,h,i=0;g=S,S=S+16|0,e=g,h=!0&268435456==(2013265920&(c|=0)|0),f=-2130706433&c|134217728,b[(i=d|=0)>>2]=h?a:0,b[i+4>>2]=h?f:0,h?(c=0|cd(0|a,0|c,56),G(),b[e>>2]=0,a=0|da(a,f,7&c,e),c=0|G()):(a=0,c=0),b[(i=d+8|0)>>2]=a,b[i+4>>2]=c,S=g},_getH3UnidirectionalEdge:function ac(a,c,d,e){var h,k,f=0,g=0,i=0,j=0,l=0;if(k=S,S=S+16|0,h=k,!(0|$b(a|=0,c|=0,d|=0,e|=0)))return j=0,F(0|(i=0)),S=k,0|j;for(i=-2130706433&c,f=(f=0==(0|Fb(a,c)))?1:2;b[h>>2]=0,g=f+1|0,!((0|(l=0|da(a,c,f,h)))==(0|d)&(0|G())==(0|e));){if(!(g>>>0<7)){f=0,a=0,j=6;break}f=g}return 6==(0|j)?(F(0|f),S=k,0|a):(l=0|dd(0|f,0,56),j=0|i|G()|268435456,l|=a,F(0|j),S=k,0|l)},_getH3UnidirectionalEdgeBoundary:gc,_getH3UnidirectionalEdgesFromHexagon:function fc(a,c,d){d|=0;var f,e=0;f=0==(0|Fb(a|=0,c|=0)),c&=-2130706433,b[(e=d)>>2]=f?a:0,b[e+4>>2]=f?285212672|c:0,b[(e=d+8|0)>>2]=a,b[e+4>>2]=301989888|c,b[(e=d+16|0)>>2]=a,b[e+4>>2]=318767104|c,b[(e=d+24|0)>>2]=a,b[e+4>>2]=335544320|c,b[(e=d+32|0)>>2]=a,b[e+4>>2]=352321536|c,b[(d=d+40|0)>>2]=a,b[d+4>>2]=369098752|c},_getOriginH3IndexFromUnidirectionalEdge:function bc(a,b){var c;return a|=0,F(0|((c=!0&268435456==(2013265920&(b|=0)|0))?-2130706433&b|134217728:0)),0|(c?a:0)},_getPentagonIndexes:_b,_getRes0Indexes:function va(a){a|=0;var c=0,d=0,e=0;c=0;do{dd(0|c,0,45),e=134225919|G(),b[(d=a+(c<<3)|0)>>2]=-1,b[d+4>>2]=e,c=c+1|0}while(122!=(0|c))},_h3Distance:function qc(a,b,c,d){var e,f,g;return c|=0,d|=0,g=S,S=S+32|0,f=g,a=0==(0|mc(a|=0,b|=0,a,b,e=g+12|0))&&0==(0|mc(a,b,c,d,f))?0|Ta(e,f):-1,S=g,0|a},_h3GetBaseCell:Ab,_h3GetFaces:function Yb(a,c,d){d|=0;var m,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;m=S,S=S+128|0,k=m+112|0,g=m+96|0,l=m,f=0|cd(0|(a|=0),0|(c|=0),52),G(),i=15&f,b[k>>2]=i,h=0|cd(0|a,0|c,45),G(),h&=127;a:do{if(0|la(h)){if(0|i)for(e=1;;){if(!(0==((j=0|dd(7,0,3*(15-e|0)|0))&a|0)&0==((0|G())&c|0))){f=0;break a}if(!(e>>>0>>0))break;e=e+1|0}if(!(1&f))return j=0|dd(i+1|0,0,52),l=0|G()|-15728641&c,Yb((j|a)&~(k=0|dd(7,0,3*(14-i|0)|0)),l&~(0|G()),d),void(S=m);f=1}else f=0}while(0);Ub(a,c,g),f?(bb(g,k,l),j=5):(fb(g,k,l),j=6);b:do{if(0|la(h))if(i)for(e=1;;){if(!(0==((h=0|dd(7,0,3*(15-e|0)|0))&a|0)&0==((0|G())&c|0))){e=8;break b}if(!(e>>>0>>0)){e=20;break}e=e+1|0}else e=20;else e=8}while(0);if(hd(0|d,-1,0|e),f){f=0;do{for(db(g=l+(f<<4)|0,0|b[k>>2]),g=0|b[g>>2],e=0;!(-1==(0|(i=0|b[(h=d+(e<<2)|0)>>2]))|(0|i)==(0|g));)e=e+1|0;b[h>>2]=g,f=f+1|0}while((0|f)!=(0|j))}else{f=0;do{for(cb(g=l+(f<<4)|0,0|b[k>>2],0,1),g=0|b[g>>2],e=0;!(-1==(0|(i=0|b[(h=d+(e<<2)|0)>>2]))|(0|i)==(0|g));)e=e+1|0;b[h>>2]=g,f=f+1|0}while((0|f)!=(0|j))}S=m},_h3GetResolution:function zb(a,b){return b=0|cd(0|(a|=0),0|(b|=0),52),G(),15&b|0},_h3IndexesAreNeighbors:$b,_h3IsPentagon:Fb,_h3IsResClassIII:function Kb(a,b){return b=0|cd(0|(a|=0),0|(b|=0),52),G(),1&b|0},_h3IsValid:Bb,_h3Line:function sc(a,c,d,e,f){d|=0,e|=0,f|=0;var x,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,r=0,s=0,t=0,u=0,v=0,w=0,y=0;if(x=S,S=S+48|0,h=x+12|0,w=x,0==(0|mc(a|=0,c|=0,a,c,g=x+24|0))&&0==(0|mc(a,c,d,e,h))){if((0|(v=0|Ta(g,h)))<0)return S=x,0|(w=v);for(b[g>>2]=0,b[g+4>>2]=0,b[g+8>>2]=0,b[h>>2]=0,b[h+4>>2]=0,b[h+8>>2]=0,mc(a,c,a,c,g),mc(a,c,d,e,h),Wa(g),Wa(h),v?(o=+(0|v),u=g,d=l=0|b[g>>2],e=m=0|b[(s=g+4|0)>>2],g=n=0|b[(t=g+8|0)>>2],p=+((0|b[h>>2])-l|0)/o,r=+((0|b[h+4>>2])-m|0)/o,o=+((0|b[h+8>>2])-n|0)/o):(s=e=g+4|0,t=n=g+8|0,u=g,d=0|b[g>>2],e=0|b[e>>2],g=0|b[n>>2],p=0,r=0,o=0),b[w>>2]=d,b[(n=w+4|0)>>2]=e,b[(m=w+8|0)>>2]=g,l=0;;){y=p*(j=+(0|l))+ +(0|d),i=r*j+ +(0|b[s>>2]),j=o*j+ +(0|b[t>>2]),e=~~+fd(+y),h=~~+fd(+i),d=~~+fd(+j),y=+q(+(+(0|e)-y)),i=+q(+(+(0|h)-i)),j=+q(+(+(0|d)-j));do{if(!(y>i&y>j)){if(k=0-e|0,i>j){g=k-d|0;break}g=h,d=k-h|0;break}e=0-(h+d)|0,g=h}while(0);if(b[w>>2]=e,b[n>>2]=g,b[m>>2]=d,Xa(w),nc(a,c,w,f+(l<<3)|0),(0|l)==(0|v))break;l=l+1|0,d=0|b[u>>2]}return S=x,0|(w=0)}return S=x,0|(w=-1)},_h3LineSize:function rc(a,b,c,d){var e,f,g;return c|=0,d|=0,g=S,S=S+32|0,f=g,a=0==(0|mc(a|=0,b|=0,a,b,e=g+12|0))&&0==(0|mc(a,b,c,d,f))?0|Ta(e,f):-1,S=g,(a>>>31^1)+a|0},_h3SetToLinkedGeo:function ka(a,c,d){d|=0;var e,f,g,h=0;if(g=S,S=S+32|0,e=g,function ja(a,c,d){a|=0,d|=0;var j,k,e=0,f=0,g=0,h=0,i=0;if(k=S,S=S+176|0,j=k,(0|(c|=0))<1)return Mc(d,0,0),void(S=k);h=0|cd(0|b[(h=a)>>2],0|b[h+4>>2],52),G(),Mc(d,(0|c)>6?c:6,15&h),h=0;do{if(Wb(0|b[(e=a+(h<<3)|0)>>2],0|b[e+4>>2],j),(0|(e=0|b[j>>2]))>0){i=0;do{g=j+8+(i<<4)|0,(f=0|Rc(d,e=j+8+(((0|(i=i+1|0))%(0|e)|0)<<4)|0,g))?Pc(d,f):Qc(d,g,e),e=0|b[j>>2]}while((0|i)<(0|e))}h=h+1|0}while((0|h)!=(0|c));S=k}(a|=0,c|=0,f=g+16|0),b[d>>2]=0,b[d+4>>2]=0,b[d+8>>2]=0,!(a=0|Oc(f)))return kc(d),Nc(f),void(S=g);do{c=0|hc(d);do{ic(c,a),h=a+16|0,b[e>>2]=b[h>>2],b[e+4>>2]=b[h+4>>2],b[e+8>>2]=b[h+8>>2],b[e+12>>2]=b[h+12>>2],Pc(f,a),a=0|Sc(f,e)}while(0!=(0|a));a=0|Oc(f)}while(0!=(0|a));kc(d),Nc(f),S=g},_h3ToCenterChild:function Gb(a,b,c){c|=0;var d=0,e=0;if(d=0|cd(0|(a|=0),0|(b|=0),52),G(),(0|c)<16&(0|(d&=15))<=(0|c)){if((0|d)!=(0|c)&&(a|=e=0|dd(0|c,0,52),b=0|G()|-15728641&b,(0|d)<(0|c)))do{e=0|dd(7,0,3*(14-d|0)|0),d=d+1|0,a&=~e,b&=~(0|G())}while((0|d)<(0|c))}else b=0,a=0;return F(0|b),0|a},_h3ToChildren:Eb,_h3ToGeo:Vb,_h3ToGeoBoundary:Wb,_h3ToParent:Cb,_h3UnidirectionalEdgeIsValid:function dc(a,b){var c=0;if(!(!0&268435456==(2013265920&(b|=0)|0)))return 0|(c=0);switch(c=0|cd(0|(a|=0),0|b,56),G(),7&c){case 0:case 7:return 0|(c=0)}return!0&16777216==(117440512&b|0)&0!=(0|Fb(a,c=-2130706433&b|134217728))?0|(c=0):0|(c=0|Bb(a,c))},_hexAreaKm2:function nb(a){return+ +e[20496+((a|=0)<<3)>>3]},_hexAreaM2:function ob(a){return+ +e[20624+((a|=0)<<3)>>3]},_hexRing:function ea(a,c,d,e){a|=0,c|=0,e|=0;var m,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(m=S,S=S+16|0,l=m,!(d|=0))return b[(l=e)>>2]=a,b[l+4>>2]=c,S=m,0|(l=0);b[l>>2]=0;a:do{if(0|Fb(a,c))a=1;else{if(g=(0|d)>0){f=0,k=a;do{if(0==(0|(k=0|da(k,c,4,l)))&0==(0|(c=0|G()))){a=2;break a}if(f=f+1|0,0|Fb(k,c)){a=1;break a}}while((0|f)<(0|d));if(b[(j=e)>>2]=k,b[j+4>>2]=c,j=d+-1|0,g){g=0,h=1,f=k,a=c;do{if(0==(0|(f=0|da(f,a,2,l)))&0==(0|(a=0|G()))){a=2;break a}if(b[(i=e+(h<<3)|0)>>2]=f,b[i+4>>2]=a,h=h+1|0,0|Fb(f,a)){a=1;break a}g=g+1|0}while((0|g)<(0|d));i=0,g=h;do{if(0==(0|(f=0|da(f,a,3,l)))&0==(0|(a=0|G()))){a=2;break a}if(b[(h=e+(g<<3)|0)>>2]=f,b[h+4>>2]=a,g=g+1|0,0|Fb(f,a)){a=1;break a}i=i+1|0}while((0|i)<(0|d));h=0;do{if(0==(0|(f=0|da(f,a,1,l)))&0==(0|(a=0|G()))){a=2;break a}if(b[(i=e+(g<<3)|0)>>2]=f,b[i+4>>2]=a,g=g+1|0,0|Fb(f,a)){a=1;break a}h=h+1|0}while((0|h)<(0|d));h=0;do{if(0==(0|(f=0|da(f,a,5,l)))&0==(0|(a=0|G()))){a=2;break a}if(b[(i=e+(g<<3)|0)>>2]=f,b[i+4>>2]=a,g=g+1|0,0|Fb(f,a)){a=1;break a}h=h+1|0}while((0|h)<(0|d));h=0;do{if(0==(0|(f=0|da(f,a,4,l)))&0==(0|(a=0|G()))){a=2;break a}if(b[(i=e+(g<<3)|0)>>2]=f,b[i+4>>2]=a,g=g+1|0,0|Fb(f,a)){a=1;break a}h=h+1|0}while((0|h)<(0|d));for(h=0;;){if(0==(0|(f=0|da(f,a,6,l)))&0==(0|(a=0|G()))){a=2;break a}if((0|h)!=(0|j)){if(b[(i=e+(g<<3)|0)>>2]=f,b[i+4>>2]=a,0|Fb(f,a)){a=1;break a}g=g+1|0}if((0|(h=h+1|0))>=(0|d)){h=k,g=c;break}}}else h=k,f=k,g=c,a=c}else b[(h=e)>>2]=a,b[h+4>>2]=c,h=a,f=a,g=c,a=c;a=1&((0|h)!=(0|f)|(0|g)!=(0|a))}}while(0);return S=m,0|(l=a)},_i64Subtract:_c,_kRing:$,_kRingDistances:function aa(a,b,c,d,e){var f;if(0|ba(a|=0,b|=0,c|=0,d|=0,e|=0)){if(hd(0|d,0,(f=1+(0|B(3*c|0,c+1|0))|0)<<3|0),0|e)return hd(0|e,0,f<<2|0),void ca(a,b,c,d,e,f,0);(e=0|Yc(f,4))&&(ca(a,b,c,d,e,f,0),Xc(e))}},_llvm_minnum_f64:ed,_llvm_round_f64:fd,_malloc:Wc,_maxFaceCount:function Xb(a,b){var c=0,d=0;if(d=0|cd(0|(a|=0),0|(b|=0),45),G(),!(0|la(127&d)))return 0|(d=2);if(d=0|cd(0|a,0|b,52),G(),!(d&=15))return 0|(d=5);for(c=1;;){if(!(0==((0|dd(7,0,3*(15-c|0)|0))&a|0)&0==((0|G())&b|0))){c=2,a=6;break}if(!(c>>>0>>0)){c=5,a=6;break}c=c+1|0}return 6==(0|a)?0|c:0},_maxH3ToChildrenSize:function Db(a,b,c){return c|=0,a=0|cd(0|(a|=0),0|(b|=0),52),G(),(0|c)<16&(0|(a&=15))<=(0|c)?0|(c=0|tc(7,c-a|0)):0|(c=0)},_maxKringSize:function _(a){return 1+(0|B(3*(a|=0)|0,a+1|0))|0},_maxPolyfillSize:function fa(a,c){c|=0;var g,d=0,e=0,f=0,h=0,i=0;if(g=S,S=S+48|0,f=g+8|0,e=g,h=0|b[(i=a|=0)+4>>2],b[(d=e)>>2]=b[i>>2],b[d+4>>2]=h,vc(e,f),f=0|ya(f,c),c=0|b[e>>2],(0|(e=0|b[a+8>>2]))<=0)return S=g,0|(i=(i=(h=(0|f)<(0|(i=c)))?i:f)+12|0);d=0|b[a+12>>2],a=0;do{c=(0|b[d+(a<<3)>>2])+c|0,a=a+1|0}while((0|a)<(0|e));return S=g,0|(i=(i=(i=(0|f)<(0|c))?c:f)+12|0)},_maxUncompactSize:function Jb(a,c,d){a|=0,d|=0;var e=0,f=0,g=0,h=0;if((0|(c|=0))<=0)return 0|(d=0);if((0|d)>=16){for(e=0;;){if(!(0==(0|b[(h=a+(e<<3)|0)>>2])&0==(0|b[h+4>>2]))){e=-1,f=13;break}if((0|(e=e+1|0))>=(0|c)){e=0,f=13;break}}if(13==(0|f))return 0|e}e=0,h=0;a:for(;;){g=0|b[(f=a+(h<<3)|0)>>2],f=0|b[f+4>>2];do{if(!(0==(0|g)&0==(0|f))){if(f=0|cd(0|g,0|f,52),G(),(0|(f&=15))>(0|d)){e=-1,f=13;break a}if((0|f)==(0|d)){e=e+1|0;break}e=(0|tc(7,d-f|0))+e|0;break}}while(0);if((0|(h=h+1|0))>=(0|c)){f=13;break}}return 13==(0|f)?0|e:0},_memcpy:gd,_memset:hd,_numHexagons:function rb(a){var c;return a=0|b[(c=21008+((a|=0)<<3)|0)>>2],F(0|b[c+4>>2]),0|a},_pentagonIndexCount:function Zb(){return 12},_pointDistKm:jb,_pointDistM:function kb(a,b){a|=0;var d,f,g,c=0;return f=+e[(b|=0)>>3],d=+e[a>>3],c=(g=+u(.5*(f-d)))*g+(c=+u(.5*(+e[b+8>>3]-+e[a+8>>3])))*(+t(+f)*+t(+d)*c),2*+z(+ +r(+c),+ +r(+(1-c)))*6371.007180918475*1e3},_pointDistRads:function ib(a,b){a|=0;var d,f,g,c=0;return f=+e[(b|=0)>>3],d=+e[a>>3],c=(g=+u(.5*(f-d)))*g+(c=+u(.5*(+e[b+8>>3]-+e[a+8>>3])))*(+t(+f)*+t(+d)*c),2*+z(+ +r(+c),+ +r(+(1-c)))},_polyfill:function ga(a,c,d){var i,e=0,f=0,g=0,h=0,j=0;if(i=S,S=S+48|0,e=i+8|0,f=i,0|function ha(a,c,d){a|=0,c|=0,d|=0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,I=0,J=0;J=S,S=S+112|0,D=J+80|0,j=J+72|0,E=J,F=J+56|0,k=a+8|0,I=0|Wc(32+(b[k>>2]<<5)|0),I||H(22848,22448,800,22456);if(wc(a,I),g=a,e=0|b[g+4>>2],i=j,b[i>>2]=b[g>>2],b[i+4>>2]=e,vc(j,D),i=0|ya(D,c),e=0|b[j>>2],g=0|b[k>>2],(0|g)>0){h=0|b[a+12>>2],f=0;do{e=(0|b[h+(f<<3)>>2])+e|0,f=f+1|0}while((0|f)!=(0|g))}if(i=(0|i)<(0|e)?e:i,C=i+12|0,f=0|Yc(C,8),l=0|Yc(C,8),b[D>>2]=0,A=a,B=0|b[A+4>>2],e=j,b[e>>2]=b[A>>2],b[e+4>>2]=B,e=0|ia(j,C,c,D,f,l),0|e)return Xc(f),Xc(l),Xc(I),S=J,0|(I=e);a:do{if((0|b[k>>2])>0){for(g=a+12|0,e=0;h=0|ia((0|b[g>>2])+(e<<3)|0,C,c,D,f,l),e=e+1|0,!(0|h);)if((0|e)>=(0|b[k>>2]))break a;return Xc(f),Xc(l),Xc(I),S=J,0|(I=h)}}while(0);(0|i)>-12&&hd(0|l,0,((0|C)>1?C:1)<<3|0);b:do{if((0|b[D>>2])>0){B=((0|C)<0)<<31>>31,v=f,w=l,x=f,y=f,z=l,A=f,e=f,r=f,s=l,t=l,u=l,f=l;c:for(;;){for(q=0|b[D>>2],o=0,p=0,g=0;;){i=(h=E)+56|0;do{b[h>>2]=0,h=h+4|0}while((0|h)<(0|i));if(0|ba(j=0|b[(c=v+(o<<3)|0)>>2],c=0|b[c+4>>2],1,E,0)){i=(h=E)+56|0;do{b[h>>2]=0,h=h+4|0}while((0|h)<(0|i));0|(h=0|Yc(7,4))&&(ca(j,c,1,E,h,7,0),Xc(h))}n=0;do{l=0|b[(m=E+(n<<3)|0)>>2],m=0|b[m+4>>2];d:do{if(!(0==(0|l)&0==(0|m))){if(j=0|bd(0|l,0|m,0|C,0|B),G(),!(0==(0|(c=0|b[(i=h=d+(j<<3)|0)>>2]))&0==(0|(i=0|b[i+4>>2]))))for(k=0;;){if((0|k)>(0|C))break c;if((0|c)==(0|l)&(0|i)==(0|m))break d;if(0==(0|(c=0|b[(i=h=d+((j=(j+1|0)%(0|C)|0)<<3)|0)>>2]))&0==(0|(i=0|b[i+4>>2])))break;k=k+1|0}0==(0|l)&0==(0|m)||(Vb(l,m,F),0|xc(a,I,F)&&(b[(k=h)>>2]=l,b[k+4>>2]=m,b[(k=w+(g<<3)|0)>>2]=l,b[k+4>>2]=m,g=g+1|0))}}while(0);n=n+1|0}while(n>>>0<7);if((0|(p=p+1|0))>=(0|q))break;o=o+1|0}if((0|q)>0&&hd(0|x,0,q<<3|0),b[D>>2]=g,!((0|g)>0))break b;l=f,m=u,n=A,o=t,p=s,q=w,f=r,u=e,t=y,s=x,r=l,e=m,A=z,z=n,y=o,x=p,w=v,v=q}return Xc(y),Xc(z),Xc(I),S=J,0|(I=-1)}e=l}while(0);return Xc(I),Xc(f),Xc(e),I=0,S=J,0|I}(a|=0,c|=0,d|=0)){if(g=0|b[(j=a)+4>>2],b[(h=f)>>2]=b[j>>2],b[h+4>>2]=g,vc(f,e),h=0|ya(e,c),c=0|b[f>>2],(0|(g=0|b[a+8>>2]))>0){f=0|b[a+12>>2],e=0;do{c=(0|b[f+(e<<3)>>2])+c|0,e=e+1|0}while((0|e)!=(0|g))}(0|(c=(0|h)<(0|c)?c:h))<=-12||hd(0|d,0,8+(((0|(j=c+11|0))>0?j:0)<<3)|0),S=i}else S=i},_res0IndexCount:function ua(){return 122},_round:id,_sbrk:jd,_sizeOfCoordIJ:function Ec(){return 8},_sizeOfGeoBoundary:function Ac(){return 168},_sizeOfGeoCoord:function zc(){return 16},_sizeOfGeoPolygon:function Cc(){return 16},_sizeOfGeofence:function Bc(){return 8},_sizeOfH3Index:function yc(){return 8},_sizeOfLinkedGeoPolygon:function Dc(){return 12},_uncompact:function Ib(a,c,d,e,f){a|=0,d|=0,e|=0,f|=0;var g=0,h=0,i=0,j=0,k=0,l=0;if((0|(c|=0))<=0)return 0|(f=0);if((0|f)>=16){for(g=0;;){if(!(0==(0|b[(l=a+(g<<3)|0)>>2])&0==(0|b[l+4>>2]))){g=14;break}if((0|(g=g+1|0))>=(0|c)){h=0,g=16;break}}if(14==(0|g))return 0|((0|e)>0?-2:-1);if(16==(0|g))return 0|h}g=0,l=0;a:for(;;){h=0|b[(i=k=a+(l<<3)|0)>>2],i=0|b[i+4>>2];do{if(!(0==(0|h)&0==(0|i))){if((0|g)>=(0|e)){h=-1,g=16;break a}if(j=0|cd(0|h,0|i,52),G(),(0|(j&=15))>(0|f)){h=-2,g=16;break a}if((0|j)==(0|f)){b[(k=d+(g<<3)|0)>>2]=h,b[k+4>>2]=i,g=g+1|0;break}if((0|(h=(0|tc(7,f-j|0))+g|0))>(0|e)){h=-1,g=16;break a}Eb(0|b[k>>2],0|b[k+4>>2],f,d+(g<<3)|0),g=h}}while(0);if((0|(l=l+1|0))>=(0|c)){h=0,g=16;break}}return 16==(0|g)?0|h:0},establishStackSpace:function Z(a,b){S=a|=0},stackAlloc:function W(a){var b;return b=S,S=(S=S+(a|=0)|0)+15&-16,0|b},stackRestore:function Y(a){S=a|=0},stackSave:function X(){return 0|S}}}({Math:Math,Int8Array:Int8Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Float32Array:Float32Array,Float64Array:Float64Array},{a:abort,b:function(value){tempRet0=value},c:getTempRet0,d:function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"])},e:function ___setErrNo(value){return Module.___errno_location&&(HEAP32[Module.___errno_location()>>2]=value),value},f:_emscripten_get_heap_size,g:function _emscripten_memcpy_big(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest)},h:function _emscripten_resize_heap(requestedSize){var oldSize=_emscripten_get_heap_size();if(requestedSize>2130706432)return!1;for(var newSize=Math.max(oldSize,16777216);newSize>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=1?tempDouble>0?(0|Math_min(+Math_floor(tempDouble/4294967296),4294967295))>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}},Module.getValue=function getValue(ptr,type,noSafe){switch("*"===(type=type||"i8").charAt(type.length-1)&&(type="i32"),type){case"i1":case"i8":return HEAP8[ptr>>0];case"i16":return HEAP16[ptr>>1];case"i32":case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return HEAPF64[ptr>>3];default:abort("invalid type for getValue: "+type)}return null},Module.getTempRet0=getTempRet0,memoryInitializer){isDataURI(memoryInitializer)||(memoryInitializer=function locateFile(path){return Module.locateFile?Module.locateFile(path,scriptDirectory):scriptDirectory+path}(memoryInitializer)),function addRunDependency(id){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}();var applyMemoryInitializer=function(data){data.byteLength&&(data=new Uint8Array(data)),HEAPU8.set(data,8),Module.memoryInitializerRequest&&delete Module.memoryInitializerRequest.response,function removeRunDependency(id){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var callback=dependenciesFulfilled;dependenciesFulfilled=null,callback()}}()},doBrowserLoad=function(){readAsync(memoryInitializer,applyMemoryInitializer,(function(){throw"could not load memory initializer "+memoryInitializer}))},memoryInitializerBytes=tryParseAsDataURI(memoryInitializer);if(memoryInitializerBytes)applyMemoryInitializer(memoryInitializerBytes.buffer);else if(Module.memoryInitializerRequest){var useRequest=function(){var request=Module.memoryInitializerRequest,response=request.response;if(200!==request.status&&0!==request.status){var data=tryParseAsDataURI(Module.memoryInitializerRequestURL);if(!data)return console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+request.status+", retrying "+memoryInitializer),void doBrowserLoad();response=data.buffer}applyMemoryInitializer(response)};Module.memoryInitializerRequest.response?setTimeout(useRequest,0):Module.memoryInitializerRequest.addEventListener("load",useRequest)}else doBrowserLoad()}function run(args){function doRun(){calledRun||(calledRun=!0,ABORT||(!function initRuntime(){callRuntimeCallbacks(__ATINIT__)}(),function preMain(){callRuntimeCallbacks(__ATMAIN__)}(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)cb=Module.postRun.shift(),__ATPOSTRUN__.unshift(cb);var cb;callRuntimeCallbacks(__ATPOSTRUN__)}()))}args=args||arguments_,runDependencies>0||(!function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)cb=Module.preRun.shift(),__ATPRERUN__.unshift(cb);var cb;callRuntimeCallbacks(__ATPRERUN__)}(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),doRun()}),1)):doRun()))}function abort(what){throw Module.onAbort&&Module.onAbort(what),out(what+=""),err(what),ABORT=!0,"abort("+what+"). Build with -s ASSERTIONS=1 for more info."}if(dependenciesFulfilled=function runCaller(){calledRun||run(),calledRun||(dependenciesFulfilled=runCaller)},Module.run=run,Module.abort=abort,Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();return run(),libh3}("object"==typeof libh3?libh3:{}),NUMBER="number",H3={};[["sizeOfH3Index",NUMBER],["sizeOfGeoCoord",NUMBER],["sizeOfGeoBoundary",NUMBER],["sizeOfGeoPolygon",NUMBER],["sizeOfGeofence",NUMBER],["sizeOfLinkedGeoPolygon",NUMBER],["sizeOfCoordIJ",NUMBER],["h3IsValid",NUMBER,[NUMBER,NUMBER]],["geoToH3",NUMBER,[NUMBER,NUMBER,NUMBER]],["h3ToGeo",null,[NUMBER,NUMBER,NUMBER]],["h3ToGeoBoundary",null,[NUMBER,NUMBER,NUMBER]],["maxKringSize",NUMBER,[NUMBER]],["kRing",null,[NUMBER,NUMBER,NUMBER,NUMBER]],["kRingDistances",null,[NUMBER,NUMBER,NUMBER,NUMBER,NUMBER]],["hexRing",null,[NUMBER,NUMBER,NUMBER,NUMBER]],["maxPolyfillSize",NUMBER,[NUMBER,NUMBER]],["polyfill",null,[NUMBER,NUMBER,NUMBER]],["h3SetToLinkedGeo",null,[NUMBER,NUMBER,NUMBER]],["destroyLinkedPolygon",null,[NUMBER]],["compact",NUMBER,[NUMBER,NUMBER,NUMBER]],["uncompact",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER,NUMBER]],["maxUncompactSize",NUMBER,[NUMBER,NUMBER,NUMBER]],["h3IsPentagon",NUMBER,[NUMBER,NUMBER]],["h3IsResClassIII",NUMBER,[NUMBER,NUMBER]],["h3GetBaseCell",NUMBER,[NUMBER,NUMBER]],["h3GetResolution",NUMBER,[NUMBER,NUMBER]],["maxFaceCount",NUMBER,[NUMBER,NUMBER]],["h3GetFaces",null,[NUMBER,NUMBER,NUMBER]],["h3ToParent",NUMBER,[NUMBER,NUMBER,NUMBER]],["h3ToChildren",null,[NUMBER,NUMBER,NUMBER,NUMBER]],["h3ToCenterChild",NUMBER,[NUMBER,NUMBER,NUMBER]],["maxH3ToChildrenSize",NUMBER,[NUMBER,NUMBER,NUMBER]],["h3IndexesAreNeighbors",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER]],["getH3UnidirectionalEdge",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER]],["getOriginH3IndexFromUnidirectionalEdge",NUMBER,[NUMBER,NUMBER]],["getDestinationH3IndexFromUnidirectionalEdge",NUMBER,[NUMBER,NUMBER]],["h3UnidirectionalEdgeIsValid",NUMBER,[NUMBER,NUMBER]],["getH3IndexesFromUnidirectionalEdge",null,[NUMBER,NUMBER,NUMBER]],["getH3UnidirectionalEdgesFromHexagon",null,[NUMBER,NUMBER,NUMBER]],["getH3UnidirectionalEdgeBoundary",null,[NUMBER,NUMBER,NUMBER]],["h3Distance",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER]],["h3Line",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER,NUMBER]],["h3LineSize",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER]],["experimentalH3ToLocalIj",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER,NUMBER]],["experimentalLocalIjToH3",NUMBER,[NUMBER,NUMBER,NUMBER,NUMBER]],["hexAreaM2",NUMBER,[NUMBER]],["hexAreaKm2",NUMBER,[NUMBER]],["edgeLengthM",NUMBER,[NUMBER]],["edgeLengthKm",NUMBER,[NUMBER]],["pointDistM",NUMBER,[NUMBER,NUMBER]],["pointDistKm",NUMBER,[NUMBER,NUMBER]],["pointDistRads",NUMBER,[NUMBER,NUMBER]],["cellAreaM2",NUMBER,[NUMBER,NUMBER]],["cellAreaKm2",NUMBER,[NUMBER,NUMBER]],["cellAreaRads2",NUMBER,[NUMBER,NUMBER]],["exactEdgeLengthM",NUMBER,[NUMBER,NUMBER]],["exactEdgeLengthKm",NUMBER,[NUMBER,NUMBER]],["exactEdgeLengthRads",NUMBER,[NUMBER,NUMBER]],["numHexagons",NUMBER,[NUMBER]],["getRes0Indexes",null,[NUMBER]],["res0IndexCount",NUMBER],["getPentagonIndexes",null,[NUMBER,NUMBER]],["pentagonIndexCount",NUMBER]].forEach((function bind(def){H3[def[0]]=libh3.cwrap.apply(libh3,def)}));var BASE_16=16,SZ_INT=4,SZ_PTR=4,SZ_DBL=8,SZ_H3INDEX=H3.sizeOfH3Index(),SZ_GEOCOORD=H3.sizeOfGeoCoord(),SZ_GEOBOUNDARY=H3.sizeOfGeoBoundary(),SZ_GEOPOLYGON=H3.sizeOfGeoPolygon(),SZ_GEOFENCE=H3.sizeOfGeofence(),SZ_LINKED_GEOPOLYGON=H3.sizeOfLinkedGeoPolygon(),SZ_COORDIJ=H3.sizeOfCoordIJ(),UNITS={m:"m",m2:"m2",km:"km",km2:"km2",rads:"rads",rads2:"rads2"};function validateRes(res){if("number"!=typeof res||res<0||res>15||Math.floor(res)!==res)throw new Error("Invalid resolution: "+res)}var INVALID_HEXIDECIMAL_CHAR=/[^0-9a-fA-F]/;function h3IndexToSplitLong(h3Index){if(Array.isArray(h3Index)&&2===h3Index.length&&Number.isInteger(h3Index[0])&&Number.isInteger(h3Index[1]))return h3Index;if("string"!=typeof h3Index||INVALID_HEXIDECIMAL_CHAR.test(h3Index))return[0,0];var upper=parseInt(h3Index.substring(0,h3Index.length-8),BASE_16);return[parseInt(h3Index.substring(h3Index.length-8),BASE_16),upper]}function hexFrom32Bit(num){if(num>=0)return num.toString(BASE_16);var tempStr=zeroPad(8,(num&=2147483647).toString(BASE_16));return tempStr=(parseInt(tempStr[0],BASE_16)+8).toString(BASE_16)+tempStr.substring(1)}function splitLongToh3Index(lower,upper){return hexFrom32Bit(upper)+zeroPad(8,hexFrom32Bit(lower))}function zeroPad(fullLen,numStr){for(var numZeroes=fullLen-numStr.length,outStr="",i=0;i=0&&out.push(int)}return out}(faces,count);return libh3._free(faces),out}function h3GetResolution(h3Index){var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1];return H3.h3IsValid(lower,upper)?H3.h3GetResolution(lower,upper):-1}function geoToH3(lat,lng,res){var latlng=libh3._malloc(SZ_GEOCOORD);libh3.HEAPF64.set([lat,lng].map(degsToRads),latlng/SZ_DBL);var h3Index=readH3Index(H3.geoToH3(latlng,res));return libh3._free(latlng),h3Index}function h3ToGeo(h3Index){var latlng=libh3._malloc(SZ_GEOCOORD),ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1];H3.h3ToGeo(lower,upper,latlng);var out=readGeoCoord(latlng);return libh3._free(latlng),out}function h3ToGeoBoundary(h3Index,formatAsGeoJson){var geoBoundary=libh3._malloc(SZ_GEOBOUNDARY),ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1];H3.h3ToGeoBoundary(lower,upper,geoBoundary);var out=readGeoBoundary(geoBoundary,formatAsGeoJson,formatAsGeoJson);return libh3._free(geoBoundary),out}function h3ToParent(h3Index,res){var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1];return readH3Index(H3.h3ToParent(lower,upper,res))}function h3ToChildren(h3Index,res){if(!h3IsValid(h3Index))return[];var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1],maxCount=H3.maxH3ToChildrenSize(lower,upper,res),hexagons=libh3._calloc(maxCount,SZ_H3INDEX);H3.h3ToChildren(lower,upper,res,hexagons);var out=readArrayOfHexagons(hexagons,maxCount);return libh3._free(hexagons),out}function h3ToCenterChild(h3Index,res){var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1];return readH3Index(H3.h3ToCenterChild(lower,upper,res))}function kRing(h3Index,ringSize){var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1],maxCount=H3.maxKringSize(ringSize),hexagons=libh3._calloc(maxCount,SZ_H3INDEX);H3.kRing(lower,upper,ringSize,hexagons);var out=readArrayOfHexagons(hexagons,maxCount);return libh3._free(hexagons),out}function kRingDistances(h3Index,ringSize){var ref=h3IndexToSplitLong(h3Index),lower=ref[0],upper=ref[1],maxCount=H3.maxKringSize(ringSize),kRings=libh3._calloc(maxCount,SZ_H3INDEX),distances=libh3._calloc(maxCount,SZ_INT);H3.kRingDistances(lower,upper,ringSize,kRings,distances);for(var out=[],i=0;i0){holes=libh3._calloc(numHoles,SZ_GEOFENCE);for(var i=0;i0){for(var holes=libh3.getValue(geoPolygon+holesOffset,"i32"),i=0;i>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)return m?NaN:1/0*(s?-1:1);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=8*nBytes-mLen-1,eMax=(1<>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||0===value&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),(value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias))*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e+=eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<0;buffer[offset+i]=255&e,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=128*s}},"./node_modules/javascript-natural-sort/naturalSort.js":function(module){module.exports=function naturalSort(a,b){"use strict";var oFxNcL,oFyNcL,re=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,sre=/(^[ ]*|[ ]*$)/g,dre=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,hre=/^0x[0-9a-f]+$/i,ore=/^0/,i=function(s){return naturalSort.insensitive&&(""+s).toLowerCase()||""+s},x=i(a).replace(sre,"")||"",y=i(b).replace(sre,"")||"",xN=x.replace(re,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),yN=y.replace(re,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),xD=parseInt(x.match(hre),16)||1!==xN.length&&x.match(dre)&&Date.parse(x),yD=parseInt(y.match(hre),16)||xD&&y.match(dre)&&Date.parse(y)||null;if(yD){if(xDyD)return 1}for(var cLoc=0,numS=Math.max(xN.length,yN.length);cLocoFyNcL)return 1}return 0}},"./node_modules/jsep/build/jsep.js":function(module,exports){!function(root){"use strict";var throwError=function(message,index){var error=new Error(message+" at character "+index);throw error.index=index,error.description=message,error},t=!0,unary_ops={"-":t,"!":t,"~":t,"+":t},binary_ops={"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},getMaxKeyLen=function(obj){var len,max_len=0;for(var key in obj)(len=key.length)>max_len&&obj.hasOwnProperty(key)&&(max_len=len);return max_len},max_unop_len=getMaxKeyLen(unary_ops),max_binop_len=getMaxKeyLen(binary_ops),literals={true:!0,false:!1,null:null},binaryPrecedence=function(op_val){return binary_ops[op_val]||0},createBinaryExpression=function(operator,left,right){return{type:"||"===operator||"&&"===operator?"LogicalExpression":"BinaryExpression",operator:operator,left:left,right:right}},isDecimalDigit=function(ch){return ch>=48&&ch<=57},isIdentifierStart=function(ch){return 36===ch||95===ch||ch>=65&&ch<=90||ch>=97&&ch<=122||ch>=128&&!binary_ops[String.fromCharCode(ch)]},isIdentifierPart=function(ch){return 36===ch||95===ch||ch>=65&&ch<=90||ch>=97&&ch<=122||ch>=48&&ch<=57||ch>=128&&!binary_ops[String.fromCharCode(ch)]},jsep=function(expr){for(var ch_i,node,index=0,charAtFunc=expr.charAt,charCodeAtFunc=expr.charCodeAt,exprI=function(i){return charAtFunc.call(expr,i)},exprICode=function(i){return charCodeAtFunc.call(expr,i)},length=expr.length,gobbleSpaces=function(){for(var ch=exprICode(index);32===ch||9===ch||10===ch||13===ch;)ch=exprICode(++index)},gobbleExpression=function(){var consequent,alternate,test=gobbleBinaryExpression();return gobbleSpaces(),63!==exprICode(index)?test:(index++,(consequent=gobbleExpression())||throwError("Expected expression",index),gobbleSpaces(),58===exprICode(index)?(index++,(alternate=gobbleExpression())||throwError("Expected expression",index),{type:"ConditionalExpression",test:test,consequent:consequent,alternate:alternate}):void throwError("Expected :",index))},gobbleBinaryOp=function(){gobbleSpaces();for(var to_check=expr.substr(index,max_binop_len),tc_len=to_check.length;tc_len>0;){if(binary_ops.hasOwnProperty(to_check)&&(!isIdentifierStart(exprICode(index))||index+to_check.length2&&prec<=stack[stack.length-2].prec;)right=stack.pop(),biop=stack.pop().value,left=stack.pop(),node=createBinaryExpression(biop,left,right),stack.push(node);(node=gobbleToken())||throwError("Expected expression after "+cur_biop,index),stack.push(biop_info,node)}for(node=stack[i=stack.length-1];i>1;)node=createBinaryExpression(stack[i-1].value,stack[i-2],node),i-=2;return node},gobbleToken=function(){var ch,to_check,tc_len;if(gobbleSpaces(),ch=exprICode(index),isDecimalDigit(ch)||46===ch)return gobbleNumericLiteral();if(39===ch||34===ch)return gobbleStringLiteral();if(91===ch)return gobbleArray();for(tc_len=(to_check=expr.substr(index,max_unop_len)).length;tc_len>0;){if(unary_ops.hasOwnProperty(to_check)&&(!isIdentifierStart(exprICode(index))||index+to_check.length=args.length&&throwError("Unexpected token "+String.fromCharCode(termination),index);break}if(44===ch_i){if(index++,++separator_count!==args.length)if(41===termination)throwError("Unexpected token ,",index);else if(93===termination)for(var arg=args.length;arg=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var result=wait-(time-lastCallTime);return maxing?nativeMin(result,maxWait-(time-lastInvokeTime)):result}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(now())},debounced}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function toNumber(value){if("number"==typeof value)return value;if(function isSymbol(value){return"symbol"==typeof value||function isObjectLike(value){return!!value&&"object"==typeof value}(value)&&objectToString.call(value)==symbolTag}(value))return NAN;if(isObject(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=value.replace(reTrim,"");var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}module.exports=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})}},"./node_modules/long/dist/long.js":function(module,exports){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function(){"use strict";function Long(low,high,unsigned){this.low=0|low,this.high=0|high,this.unsigned=!!unsigned}function isLong(obj){return!0===(obj&&obj.__isLong__)}Long.prototype.__isLong__,Object.defineProperty(Long.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),Long.isLong=isLong;var INT_CACHE={},UINT_CACHE={};function fromInt(value,unsigned){var obj,cachedObj,cache;return unsigned?(cache=0<=(value>>>=0)&&value<256)&&(cachedObj=UINT_CACHE[value])?cachedObj:(obj=fromBits(value,(0|value)<0?-1:0,!0),cache&&(UINT_CACHE[value]=obj),obj):(cache=-128<=(value|=0)&&value<128)&&(cachedObj=INT_CACHE[value])?cachedObj:(obj=fromBits(value,value<0?-1:0,!1),cache&&(INT_CACHE[value]=obj),obj)}function fromNumber(value,unsigned){if(isNaN(value)||!isFinite(value))return unsigned?UZERO:ZERO;if(unsigned){if(value<0)return UZERO;if(value>=TWO_PWR_64_DBL)return MAX_UNSIGNED_VALUE}else{if(value<=-TWO_PWR_63_DBL)return MIN_VALUE;if(value+1>=TWO_PWR_63_DBL)return MAX_VALUE}return value<0?fromNumber(-value,unsigned).neg():fromBits(value%TWO_PWR_32_DBL|0,value/TWO_PWR_32_DBL|0,unsigned)}function fromBits(lowBits,highBits,unsigned){return new Long(lowBits,highBits,unsigned)}Long.fromInt=fromInt,Long.fromNumber=fromNumber,Long.fromBits=fromBits;var pow_dbl=Math.pow;function fromString(str,unsigned,radix){if(0===str.length)throw Error("empty string");if("NaN"===str||"Infinity"===str||"+Infinity"===str||"-Infinity"===str)return ZERO;if("number"==typeof unsigned?(radix=unsigned,unsigned=!1):unsigned=!!unsigned,(radix=radix||10)<2||360)throw Error("interior hyphen");if(0===p)return fromString(str.substring(1),unsigned,radix).neg();for(var radixToPower=fromNumber(pow_dbl(radix,8)),result=ZERO,i=0;i>>0:this.low},LongPrototype.toNumber=function toNumber(){return this.unsigned?(this.high>>>0)*TWO_PWR_32_DBL+(this.low>>>0):this.high*TWO_PWR_32_DBL+(this.low>>>0)},LongPrototype.toString=function toString(radix){if((radix=radix||10)<2||36>>0).toString(radix);if((rem=remDiv).isZero())return digits+result;for(;digits.length<6;)digits="0"+digits;result=""+digits+result}},LongPrototype.getHighBits=function getHighBits(){return this.high},LongPrototype.getHighBitsUnsigned=function getHighBitsUnsigned(){return this.high>>>0},LongPrototype.getLowBits=function getLowBits(){return this.low},LongPrototype.getLowBitsUnsigned=function getLowBitsUnsigned(){return this.low>>>0},LongPrototype.getNumBitsAbs=function getNumBitsAbs(){if(this.isNegative())return this.eq(MIN_VALUE)?64:this.neg().getNumBitsAbs();for(var val=0!=this.high?this.high:this.low,bit=31;bit>0&&0==(val&1<=0},LongPrototype.isOdd=function isOdd(){return 1==(1&this.low)},LongPrototype.isEven=function isEven(){return 0==(1&this.low)},LongPrototype.equals=function equals(other){return isLong(other)||(other=fromValue(other)),(this.unsigned===other.unsigned||this.high>>>31!=1||other.high>>>31!=1)&&this.high===other.high&&this.low===other.low},LongPrototype.eq=LongPrototype.equals,LongPrototype.notEquals=function notEquals(other){return!this.eq(other)},LongPrototype.neq=LongPrototype.notEquals,LongPrototype.lessThan=function lessThan(other){return this.comp(other)<0},LongPrototype.lt=LongPrototype.lessThan,LongPrototype.lessThanOrEqual=function lessThanOrEqual(other){return this.comp(other)<=0},LongPrototype.lte=LongPrototype.lessThanOrEqual,LongPrototype.greaterThan=function greaterThan(other){return this.comp(other)>0},LongPrototype.gt=LongPrototype.greaterThan,LongPrototype.greaterThanOrEqual=function greaterThanOrEqual(other){return this.comp(other)>=0},LongPrototype.gte=LongPrototype.greaterThanOrEqual,LongPrototype.compare=function compare(other){if(isLong(other)||(other=fromValue(other)),this.eq(other))return 0;var thisNeg=this.isNegative(),otherNeg=other.isNegative();return thisNeg&&!otherNeg?-1:!thisNeg&&otherNeg?1:this.unsigned?other.high>>>0>this.high>>>0||other.high===this.high&&other.low>>>0>this.low>>>0?-1:1:this.sub(other).isNegative()?-1:1},LongPrototype.comp=LongPrototype.compare,LongPrototype.negate=function negate(){return!this.unsigned&&this.eq(MIN_VALUE)?MIN_VALUE:this.not().add(ONE)},LongPrototype.neg=LongPrototype.negate,LongPrototype.add=function add(addend){isLong(addend)||(addend=fromValue(addend));var a48=this.high>>>16,a32=65535&this.high,a16=this.low>>>16,a00=65535&this.low,b48=addend.high>>>16,b32=65535&addend.high,b16=addend.low>>>16,c48=0,c32=0,c16=0,c00=0;return c16+=(c00+=a00+(65535&addend.low))>>>16,c32+=(c16+=a16+b16)>>>16,c48+=(c32+=a32+b32)>>>16,c48+=a48+b48,fromBits((c16&=65535)<<16|(c00&=65535),(c48&=65535)<<16|(c32&=65535),this.unsigned)},LongPrototype.subtract=function subtract(subtrahend){return isLong(subtrahend)||(subtrahend=fromValue(subtrahend)),this.add(subtrahend.neg())},LongPrototype.sub=LongPrototype.subtract,LongPrototype.multiply=function multiply(multiplier){if(this.isZero())return ZERO;if(isLong(multiplier)||(multiplier=fromValue(multiplier)),multiplier.isZero())return ZERO;if(this.eq(MIN_VALUE))return multiplier.isOdd()?MIN_VALUE:ZERO;if(multiplier.eq(MIN_VALUE))return this.isOdd()?MIN_VALUE:ZERO;if(this.isNegative())return multiplier.isNegative()?this.neg().mul(multiplier.neg()):this.neg().mul(multiplier).neg();if(multiplier.isNegative())return this.mul(multiplier.neg()).neg();if(this.lt(TWO_PWR_24)&&multiplier.lt(TWO_PWR_24))return fromNumber(this.toNumber()*multiplier.toNumber(),this.unsigned);var a48=this.high>>>16,a32=65535&this.high,a16=this.low>>>16,a00=65535&this.low,b48=multiplier.high>>>16,b32=65535&multiplier.high,b16=multiplier.low>>>16,b00=65535&multiplier.low,c48=0,c32=0,c16=0,c00=0;return c16+=(c00+=a00*b00)>>>16,c32+=(c16+=a16*b00)>>>16,c16&=65535,c32+=(c16+=a00*b16)>>>16,c48+=(c32+=a32*b00)>>>16,c32&=65535,c48+=(c32+=a16*b16)>>>16,c32&=65535,c48+=(c32+=a00*b32)>>>16,c48+=a48*b00+a32*b16+a16*b32+a00*b48,fromBits((c16&=65535)<<16|(c00&=65535),(c48&=65535)<<16|(c32&=65535),this.unsigned)},LongPrototype.mul=LongPrototype.multiply,LongPrototype.divide=function divide(divisor){if(isLong(divisor)||(divisor=fromValue(divisor)),divisor.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?UZERO:ZERO;var approx,rem,res;if(this.unsigned){if(divisor.unsigned||(divisor=divisor.toUnsigned()),divisor.gt(this))return UZERO;if(divisor.gt(this.shru(1)))return UONE;res=UZERO}else{if(this.eq(MIN_VALUE))return divisor.eq(ONE)||divisor.eq(NEG_ONE)?MIN_VALUE:divisor.eq(MIN_VALUE)?ONE:(approx=this.shr(1).div(divisor).shl(1)).eq(ZERO)?divisor.isNegative()?ONE:NEG_ONE:(rem=this.sub(divisor.mul(approx)),res=approx.add(rem.div(divisor)));if(divisor.eq(MIN_VALUE))return this.unsigned?UZERO:ZERO;if(this.isNegative())return divisor.isNegative()?this.neg().div(divisor.neg()):this.neg().div(divisor).neg();if(divisor.isNegative())return this.div(divisor.neg()).neg();res=ZERO}for(rem=this;rem.gte(divisor);){approx=Math.max(1,Math.floor(rem.toNumber()/divisor.toNumber()));for(var log2=Math.ceil(Math.log(approx)/Math.LN2),delta=log2<=48?1:pow_dbl(2,log2-48),approxRes=fromNumber(approx),approxRem=approxRes.mul(divisor);approxRem.isNegative()||approxRem.gt(rem);)approxRem=(approxRes=fromNumber(approx-=delta,this.unsigned)).mul(divisor);approxRes.isZero()&&(approxRes=ONE),res=res.add(approxRes),rem=rem.sub(approxRem)}return res},LongPrototype.div=LongPrototype.divide,LongPrototype.modulo=function modulo(divisor){return isLong(divisor)||(divisor=fromValue(divisor)),this.sub(this.div(divisor).mul(divisor))},LongPrototype.mod=LongPrototype.modulo,LongPrototype.not=function not(){return fromBits(~this.low,~this.high,this.unsigned)},LongPrototype.and=function and(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low&other.low,this.high&other.high,this.unsigned)},LongPrototype.or=function or(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low|other.low,this.high|other.high,this.unsigned)},LongPrototype.xor=function xor(other){return isLong(other)||(other=fromValue(other)),fromBits(this.low^other.low,this.high^other.high,this.unsigned)},LongPrototype.shiftLeft=function shiftLeft(numBits){return isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63)?this:numBits<32?fromBits(this.low<>>32-numBits,this.unsigned):fromBits(0,this.low<>>numBits|this.high<<32-numBits,this.high>>numBits,this.unsigned):fromBits(this.high>>numBits-32,this.high>=0?0:-1,this.unsigned)},LongPrototype.shr=LongPrototype.shiftRight,LongPrototype.shiftRightUnsigned=function shiftRightUnsigned(numBits){if(isLong(numBits)&&(numBits=numBits.toInt()),0==(numBits&=63))return this;var high=this.high;return numBits<32?fromBits(this.low>>>numBits|high<<32-numBits,high>>>numBits,this.unsigned):fromBits(32===numBits?high:high>>>numBits-32,0,this.unsigned)},LongPrototype.shru=LongPrototype.shiftRightUnsigned,LongPrototype.toSigned=function toSigned(){return this.unsigned?fromBits(this.low,this.high,!1):this},LongPrototype.toUnsigned=function toUnsigned(){return this.unsigned?this:fromBits(this.low,this.high,!0)},LongPrototype.toBytes=function(le){return le?this.toBytesLE():this.toBytesBE()},LongPrototype.toBytesLE=function(){var hi=this.high,lo=this.low;return[255&lo,lo>>>8&255,lo>>>16&255,lo>>>24&255,255&hi,hi>>>8&255,hi>>>16&255,hi>>>24&255]},LongPrototype.toBytesBE=function(){var hi=this.high,lo=this.low;return[hi>>>24&255,hi>>>16&255,hi>>>8&255,255&hi,lo>>>24&255,lo>>>16&255,lo>>>8&255,255&lo]},Long})?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},"./node_modules/math.gl/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Euler:function(){return Euler},Matrix3:function(){return matrix3.Z},Matrix4:function(){return matrix4.Z},Pose:function(){return Pose},Quaternion:function(){return quaternion.Z},SphericalCoordinates:function(){return spherical_coordinates.Z},Vector2:function(){return vector2.Z},Vector3:function(){return vector3.Z},Vector4:function(){return vector4.Z},_Euler:function(){return Euler},_MathUtils:function(){return math_utils.Z},_Pose:function(){return Pose},_SphericalCoordinates:function(){return spherical_coordinates.Z},acos:function(){return common.Kh},asin:function(){return common.ZR},assert:function(){return assert.Z},atan:function(){return common.z4},clamp:function(){return common.uZ},clone:function(){return common.d9},config:function(){return common.vc},configure:function(){return common.jQ},cos:function(){return common.mC},degrees:function(){return common.RW},equals:function(){return common.fS},exactEquals:function(){return common.I6},formatValue:function(){return common.Bw},isArray:function(){return common.kJ},lerp:function(){return common.t7},radians:function(){return common.uR},sin:function(){return common.O$},tan:function(){return common.OR},toDegrees:function(){return common.Ux},toRadians:function(){return common.Yr},withEpsilon:function(){return common.BJ}});var vector2=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector2.js"),vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js"),vector4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector4.js"),matrix3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix3.js"),matrix4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),quaternion=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/quaternion.js"),spherical_coordinates=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/spherical-coordinates.js"),defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),math_array=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/base/math-array.js"),common=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js"),validators=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/validators.js");const ERR_UNKNOWN_ORDER="Unknown Euler angle order";var RotationOrder;!function(RotationOrder){RotationOrder[RotationOrder.ZYX=0]="ZYX",RotationOrder[RotationOrder.YXZ=1]="YXZ",RotationOrder[RotationOrder.XZY=2]="XZY",RotationOrder[RotationOrder.ZXY=3]="ZXY",RotationOrder[RotationOrder.YZX=4]="YZX",RotationOrder[RotationOrder.XYZ=5]="XYZ"}(RotationOrder||(RotationOrder={}));class Euler extends math_array.Z{static get ZYX(){return RotationOrder.ZYX}static get YXZ(){return RotationOrder.YXZ}static get XZY(){return RotationOrder.XZY}static get ZXY(){return RotationOrder.ZXY}static get YZX(){return RotationOrder.YZX}static get XYZ(){return RotationOrder.XYZ}static get RollPitchYaw(){return RotationOrder.ZYX}static get DefaultOrder(){return RotationOrder.ZYX}static get RotationOrders(){return RotationOrder}static rotationOrder(order){return RotationOrder[order]}get ELEMENTS(){return 4}constructor(x=0,y=0,z=0,order=Euler.DefaultOrder){super(-0,-0,-0,-0),arguments.length>0&&Array.isArray(arguments[0])?this.fromVector3(...arguments):this.set(x,y,z,order)}fromQuaternion(quaternion){const[x,y,z,w]=quaternion,ysqr=y*y,t0=-2*(ysqr+z*z)+1,t1=2*(x*y+w*z);let t2=-2*(x*z-w*y);const t3=2*(y*z+w*x),t4=-2*(x*x+ysqr)+1;t2=t2>1?1:t2,t2=t2<-1?-1:t2;const roll=Math.atan2(t3,t4),pitch=Math.asin(t2),yaw=Math.atan2(t1,t0);return this.set(roll,pitch,yaw,Euler.RollPitchYaw)}fromObject(object){throw new Error("not implemented")}copy(array){return this[0]=array[0],this[1]=array[1],this[2]=array[2],this[3]=Number.isFinite(array[3])||this.order,this.check()}set(x=0,y=0,z=0,order){return this[0]=x,this[1]=y,this[2]=z,this[3]=Number.isFinite(order)?order:this[3],this.check()}validate(){return function validateOrder(value){return value>=0&&value<6}(this[3])&&Number.isFinite(this[0])&&Number.isFinite(this[1])&&Number.isFinite(this[2])}toArray(array=[],offset=0){return array[offset]=this[0],array[offset+1]=this[1],array[offset+2]=this[2],array}toArray4(array=[],offset=0){return array[offset]=this[0],array[offset+1]=this[1],array[offset+2]=this[2],array[offset+3]=this[3],array}toVector3(result=[-0,-0,-0]){return result[0]=this[0],result[1]=this[1],result[2]=this[2],result}get x(){return this[0]}set x(value){this[0]=(0,validators.u5)(value)}get y(){return this[1]}set y(value){this[1]=(0,validators.u5)(value)}get z(){return this[2]}set z(value){this[2]=(0,validators.u5)(value)}get alpha(){return this[0]}set alpha(value){this[0]=(0,validators.u5)(value)}get beta(){return this[1]}set beta(value){this[1]=(0,validators.u5)(value)}get gamma(){return this[2]}set gamma(value){this[2]=(0,validators.u5)(value)}get phi(){return this[0]}set phi(value){this[0]=(0,validators.u5)(value)}get theta(){return this[1]}set theta(value){this[1]=(0,validators.u5)(value)}get psi(){return this[2]}set psi(value){this[2]=(0,validators.u5)(value)}get roll(){return this[0]}set roll(value){this[0]=(0,validators.u5)(value)}get pitch(){return this[1]}set pitch(value){this[1]=(0,validators.u5)(value)}get yaw(){return this[2]}set yaw(value){this[2]=(0,validators.u5)(value)}get order(){return this[3]}set order(value){this[3]=function checkOrder(value){if(value<0&&value>=6)throw new Error(ERR_UNKNOWN_ORDER);return value}(value)}fromVector3(v,order){return this.set(v[0],v[1],v[2],Number.isFinite(order)?order:this[3])}fromArray(array,offset=0){return this[0]=array[0+offset],this[1]=array[1+offset],this[2]=array[2+offset],void 0!==array[3]&&(this[3]=array[3]),this.check()}fromRollPitchYaw(roll,pitch,yaw){return this.set(roll,pitch,yaw,RotationOrder.ZYX)}fromRotationMatrix(m,order=Euler.DefaultOrder){return this._fromRotationMatrix(m,order),this.check()}getRotationMatrix(m){return this._getRotationMatrix(m)}getQuaternion(){const q=new quaternion.Z;switch(this[4]){case RotationOrder.XYZ:return q.rotateX(this[0]).rotateY(this[1]).rotateZ(this[2]);case RotationOrder.YXZ:return q.rotateY(this[0]).rotateX(this[1]).rotateZ(this[2]);case RotationOrder.ZXY:return q.rotateZ(this[0]).rotateX(this[1]).rotateY(this[2]);case RotationOrder.ZYX:return q.rotateZ(this[0]).rotateY(this[1]).rotateX(this[2]);case RotationOrder.YZX:return q.rotateY(this[0]).rotateZ(this[1]).rotateX(this[2]);case RotationOrder.XZY:return q.rotateX(this[0]).rotateZ(this[1]).rotateY(this[2]);default:throw new Error(ERR_UNKNOWN_ORDER)}}_fromRotationMatrix(m,order=Euler.DefaultOrder){const m11=m[0],m12=m[4],m13=m[8],m21=m[1],m22=m[5],m23=m[9],m31=m[2],m32=m[6],m33=m[10];switch(order=order||this[3]){case Euler.XYZ:this[1]=Math.asin((0,common.uZ)(m13,-1,1)),Math.abs(m13)<.99999?(this[0]=Math.atan2(-m23,m33),this[2]=Math.atan2(-m12,m11)):(this[0]=Math.atan2(m32,m22),this[2]=0);break;case Euler.YXZ:this[0]=Math.asin(-(0,common.uZ)(m23,-1,1)),Math.abs(m23)<.99999?(this[1]=Math.atan2(m13,m33),this[2]=Math.atan2(m21,m22)):(this[1]=Math.atan2(-m31,m11),this[2]=0);break;case Euler.ZXY:this[0]=Math.asin((0,common.uZ)(m32,-1,1)),Math.abs(m32)<.99999?(this[1]=Math.atan2(-m31,m33),this[2]=Math.atan2(-m12,m22)):(this[1]=0,this[2]=Math.atan2(m21,m11));break;case Euler.ZYX:this[1]=Math.asin(-(0,common.uZ)(m31,-1,1)),Math.abs(m31)<.99999?(this[0]=Math.atan2(m32,m33),this[2]=Math.atan2(m21,m11)):(this[0]=0,this[2]=Math.atan2(-m12,m22));break;case Euler.YZX:this[2]=Math.asin((0,common.uZ)(m21,-1,1)),Math.abs(m21)<.99999?(this[0]=Math.atan2(-m23,m22),this[1]=Math.atan2(-m31,m11)):(this[0]=0,this[1]=Math.atan2(m13,m33));break;case Euler.XZY:this[2]=Math.asin(-(0,common.uZ)(m12,-1,1)),Math.abs(m12)<.99999?(this[0]=Math.atan2(m32,m22),this[1]=Math.atan2(m13,m11)):(this[0]=Math.atan2(-m23,m33),this[1]=0);break;default:throw new Error(ERR_UNKNOWN_ORDER)}return this[3]=order,this}_getRotationMatrix(result){const te=result||[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],x=this.x,y=this.y,z=this.z,a=Math.cos(x),c=Math.cos(y),e=Math.cos(z),b=Math.sin(x),d=Math.sin(y),f=Math.sin(z);switch(this[3]){case Euler.XYZ:{const ae=a*e,af=a*f,be=b*e,bf=b*f;te[0]=c*e,te[4]=-c*f,te[8]=d,te[1]=af+be*d,te[5]=ae-bf*d,te[9]=-b*c,te[2]=bf-ae*d,te[6]=be+af*d,te[10]=a*c;break}case Euler.YXZ:{const ce=c*e,cf=c*f,de=d*e,df=d*f;te[0]=ce+df*b,te[4]=de*b-cf,te[8]=a*d,te[1]=a*f,te[5]=a*e,te[9]=-b,te[2]=cf*b-de,te[6]=df+ce*b,te[10]=a*c;break}case Euler.ZXY:{const ce=c*e,cf=c*f,de=d*e,df=d*f;te[0]=ce-df*b,te[4]=-a*f,te[8]=de+cf*b,te[1]=cf+de*b,te[5]=a*e,te[9]=df-ce*b,te[2]=-a*d,te[6]=b,te[10]=a*c;break}case Euler.ZYX:{const ae=a*e,af=a*f,be=b*e,bf=b*f;te[0]=c*e,te[4]=be*d-af,te[8]=ae*d+bf,te[1]=c*f,te[5]=bf*d+ae,te[9]=af*d-be,te[2]=-d,te[6]=b*c,te[10]=a*c;break}case Euler.YZX:{const ac=a*c,ad=a*d,bc=b*c,bd=b*d;te[0]=c*e,te[4]=bd-ac*f,te[8]=bc*f+ad,te[1]=f,te[5]=a*e,te[9]=-b*e,te[2]=-d*e,te[6]=ad*f+bc,te[10]=ac-bd*f;break}case Euler.XZY:{const ac=a*c,ad=a*d,bc=b*c,bd=b*d;te[0]=c*e,te[4]=-f,te[8]=d*e,te[1]=ac*f+bd,te[5]=a*e,te[9]=ad*f-bc,te[2]=bc*f-ad,te[6]=b*e,te[10]=bd*f+ac;break}default:throw new Error(ERR_UNKNOWN_ORDER)}return te[3]=0,te[7]=0,te[11]=0,te[12]=0,te[13]=0,te[14]=0,te[15]=1,te}toQuaternion(){const cy=Math.cos(.5*this.yaw),sy=Math.sin(.5*this.yaw),cr=Math.cos(.5*this.roll),sr=Math.sin(.5*this.roll),cp=Math.cos(.5*this.pitch),sp=Math.sin(.5*this.pitch),w=cy*cr*cp+sy*sr*sp,x=cy*sr*cp-sy*cr*sp,y=cy*cr*sp+sy*sr*cp,z=sy*cr*cp-cy*sr*sp;return new quaternion.Z(x,y,z,w)}}class Pose{constructor({x:x=0,y:y=0,z:z=0,roll:roll=0,pitch:pitch=0,yaw:yaw=0,position:position,orientation:orientation}={}){(0,defineProperty.Z)(this,"position",void 0),(0,defineProperty.Z)(this,"orientation",void 0),Array.isArray(position)&&3===position.length?this.position=new vector3.Z(position):this.position=new vector3.Z(x,y,z),Array.isArray(orientation)&&4===orientation.length?this.orientation=new Euler(orientation,orientation[3]):this.orientation=new Euler(roll,pitch,yaw,Euler.RollPitchYaw)}get x(){return this.position.x}set x(value){this.position.x=value}get y(){return this.position.y}set y(value){this.position.y=value}get z(){return this.position.z}set z(value){this.position.z=value}get roll(){return this.orientation.roll}set roll(value){this.orientation.roll=value}get pitch(){return this.orientation.pitch}set pitch(value){this.orientation.pitch=value}get yaw(){return this.orientation.yaw}set yaw(value){this.orientation.yaw=value}getPosition(){return this.position}getOrientation(){return this.orientation}equals(pose){return!!pose&&(this.position.equals(pose.position)&&this.orientation.equals(pose.orientation))}exactEquals(pose){return!!pose&&(this.position.exactEquals(pose.position)&&this.orientation.exactEquals(pose.orientation))}getTransformationMatrix(){const sr=Math.sin(this.roll),sp=Math.sin(this.pitch),sw=Math.sin(this.yaw),cr=Math.cos(this.roll),cp=Math.cos(this.pitch),cw=Math.cos(this.yaw);return(new matrix4.Z).setRowMajor(cw*cp,-sw*cr+cw*sp*sr,sw*sr+cw*sp*cr,this.x,sw*cp,cw*cr+sw*sp*sr,-cw*sr+sw*sp*cr,this.y,-sp,cp*sr,cp*cr,this.z,0,0,0,1)}getTransformationMatrixFromPose(pose){return(new matrix4.Z).multiplyRight(this.getTransformationMatrix()).multiplyRight(pose.getTransformationMatrix().invert())}getTransformationMatrixToPose(pose){return(new matrix4.Z).multiplyRight(pose.getTransformationMatrix()).multiplyRight(this.getTransformationMatrix().invert())}}var math_utils=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/math-utils.js"),assert=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/assert.js")},"./node_modules/mathjs/lib/esm/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{IK:function(){return createE},Yb:function(){return createFalse},oL:function(){return createI},Ir:function(){return createInfinity},ur:function(){return createLN10},Cc:function(){return createLN2},q_:function(){return createLOG10E},p9:function(){return createLOG2E},t$:function(){return createNaN},VG:function(){return createNull},Ii:function(){return createPhi},up:function(){return createPi},JE:function(){return createSQRT1_2},rN:function(){return createSQRT2},ci:function(){return createTau},jy:function(){return createTrue},Iu:function(){return createUppercaseE},lO:function(){return createUppercasePi},hT:function(){return createVersion}});var factory=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),constants=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/constants.js"),pi=Math.PI,tau=2*Math.PI,e=Math.E,createTrue=(0,factory.d5)("true",[],(()=>!0)),createFalse=(0,factory.d5)("false",[],(()=>!1)),createNull=(0,factory.d5)("null",[],(()=>null)),createInfinity=recreateFactory("Infinity",["config","?BigNumber"],(_ref=>{var{config:config,BigNumber:BigNumber}=_ref;return"BigNumber"===config.number?new BigNumber(1/0):1/0})),createNaN=recreateFactory("NaN",["config","?BigNumber"],(_ref2=>{var{config:config,BigNumber:BigNumber}=_ref2;return"BigNumber"===config.number?new BigNumber(NaN):NaN})),createPi=recreateFactory("pi",["config","?BigNumber"],(_ref3=>{var{config:config,BigNumber:BigNumber}=_ref3;return"BigNumber"===config.number?(0,constants.wY)(BigNumber):pi})),createTau=recreateFactory("tau",["config","?BigNumber"],(_ref4=>{var{config:config,BigNumber:BigNumber}=_ref4;return"BigNumber"===config.number?(0,constants.j_)(BigNumber):tau})),createE=recreateFactory("e",["config","?BigNumber"],(_ref5=>{var{config:config,BigNumber:BigNumber}=_ref5;return"BigNumber"===config.number?(0,constants.vu)(BigNumber):e})),createPhi=recreateFactory("phi",["config","?BigNumber"],(_ref6=>{var{config:config,BigNumber:BigNumber}=_ref6;return"BigNumber"===config.number?(0,constants.zm)(BigNumber):1.618033988749895})),createLN2=recreateFactory("LN2",["config","?BigNumber"],(_ref7=>{var{config:config,BigNumber:BigNumber}=_ref7;return"BigNumber"===config.number?new BigNumber(2).ln():Math.LN2})),createLN10=recreateFactory("LN10",["config","?BigNumber"],(_ref8=>{var{config:config,BigNumber:BigNumber}=_ref8;return"BigNumber"===config.number?new BigNumber(10).ln():Math.LN10})),createLOG2E=recreateFactory("LOG2E",["config","?BigNumber"],(_ref9=>{var{config:config,BigNumber:BigNumber}=_ref9;return"BigNumber"===config.number?new BigNumber(1).div(new BigNumber(2).ln()):Math.LOG2E})),createLOG10E=recreateFactory("LOG10E",["config","?BigNumber"],(_ref10=>{var{config:config,BigNumber:BigNumber}=_ref10;return"BigNumber"===config.number?new BigNumber(1).div(new BigNumber(10).ln()):Math.LOG10E})),createSQRT1_2=recreateFactory("SQRT1_2",["config","?BigNumber"],(_ref11=>{var{config:config,BigNumber:BigNumber}=_ref11;return"BigNumber"===config.number?new BigNumber("0.5").sqrt():Math.SQRT1_2})),createSQRT2=recreateFactory("SQRT2",["config","?BigNumber"],(_ref12=>{var{config:config,BigNumber:BigNumber}=_ref12;return"BigNumber"===config.number?new BigNumber(2).sqrt():Math.SQRT2})),createI=recreateFactory("i",["Complex"],(_ref13=>{var{Complex:Complex}=_ref13;return Complex.I})),createUppercasePi=(0,factory.d5)("PI",["pi"],(_ref14=>{var{pi:pi}=_ref14;return pi})),createUppercaseE=(0,factory.d5)("E",["e"],(_ref15=>{var{e:e}=_ref15;return e})),createVersion=(0,factory.d5)("version",[],(()=>"12.4.1"));function recreateFactory(name,dependencies,create){return(0,factory.d5)(name,dependencies,create,{recreateOnConfigChange:!0})}},"./node_modules/mathjs/lib/esm/core/config.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{g:function(){return DEFAULT_CONFIG}});var DEFAULT_CONFIG={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null}},"./node_modules/mathjs/lib/esm/core/function/config.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ll:function(){return configFactory},qK:function(){return MATRIX_OPTIONS},x9:function(){return NUMBER_OPTIONS}});var _utils_object_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_config_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/core/config.js"),MATRIX_OPTIONS=["Matrix","Array"],NUMBER_OPTIONS=["number","BigNumber","Fraction"];function configFactory(config,emit){function _config(options){if(options){var prev=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.Xc)(config,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.d9);validateOption(options,"matrix",MATRIX_OPTIONS),validateOption(options,"number",NUMBER_OPTIONS),(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.ZB)(config,options);var curr=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.Xc)(config,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.d9),changes=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.Xc)(options,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.d9);return emit("config",curr,prev,changes),curr}return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.Xc)(config,_utils_object_js__WEBPACK_IMPORTED_MODULE_0__.d9)}return _config.MATRIX_OPTIONS=MATRIX_OPTIONS,_config.NUMBER_OPTIONS=NUMBER_OPTIONS,Object.keys(_config_js__WEBPACK_IMPORTED_MODULE_1__.g).forEach((key=>{Object.defineProperty(_config,key,{get:()=>config[key],enumerable:!0,configurable:!0})})),_config}function validateOption(options,name,values){void 0===options[name]||function contains(array,item){return-1!==array.indexOf(item)}(values,options[name])||console.warn('Warning: Unknown value "'+options[name]+'" for configuration option "'+name+'". Available options: '+values.map((value=>JSON.stringify(value))).join(", ")+".")}},"./node_modules/mathjs/lib/esm/core/function/typed.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createTyped}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),typed_function__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/typed-function/lib/umd/typed-function.js"),typed_function__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(typed_function__WEBPACK_IMPORTED_MODULE_0__),_utils_number_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_map_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/map.js"),_createTyped2=function _createTyped(){return _createTyped2=typed_function__WEBPACK_IMPORTED_MODULE_0___default().create,typed_function__WEBPACK_IMPORTED_MODULE_0___default()},dependencies=["?BigNumber","?Complex","?DenseMatrix","?Fraction"],createTyped=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)("typed",dependencies,(function createTyped(_ref){var{BigNumber:BigNumber,Complex:Complex,DenseMatrix:DenseMatrix,Fraction:Fraction}=_ref,typed=_createTyped2();return typed.clear(),typed.addTypes([{name:"number",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.hj},{name:"Complex",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Mc},{name:"BigNumber",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9},{name:"Fraction",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.yQ},{name:"Unit",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr},{name:"identifier",test:s=>_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.HD&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(s)},{name:"string",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.HD},{name:"Chain",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.qg},{name:"Array",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kJ},{name:"Matrix",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW},{name:"DenseMatrix",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.jH},{name:"SparseMatrix",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.sA},{name:"Range",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.bR},{name:"Index",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.dh},{name:"boolean",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.jn},{name:"ResultSet",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.cB},{name:"Help",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.x1},{name:"function",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.mf},{name:"Date",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.J_},{name:"RegExp",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Kj},{name:"null",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Ft},{name:"undefined",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.o8},{name:"AccessorNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Yz},{name:"ArrayNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.j0},{name:"AssignmentNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Bp},{name:"BlockNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.zh},{name:"ConditionalNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.tS},{name:"ConstantNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.nu},{name:"FunctionNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.VO},{name:"FunctionAssignmentNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l7},{name:"IndexNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Cl},{name:"Node",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.UG},{name:"ObjectNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Lr},{name:"OperatorNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.bV},{name:"ParenthesisNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Ig},{name:"RangeNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.ex},{name:"RelationalNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Zi},{name:"SymbolNode",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.FG},{name:"Map",test:_utils_map_js__WEBPACK_IMPORTED_MODULE_3__._N},{name:"Object",test:_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Kn}]),typed.addConversions([{from:"number",to:"BigNumber",convert:function convert(x){if(BigNumber||throwNoBignumber(x),(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_4__.nz)(x)>15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+x+"). Use function bignumber(x) to convert to BigNumber.");return new BigNumber(x)}},{from:"number",to:"Complex",convert:function convert(x){return Complex||throwNoComplex(x),new Complex(x,0)}},{from:"BigNumber",to:"Complex",convert:function convert(x){return Complex||throwNoComplex(x),new Complex(x.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function convert(x){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function convert(x){return Complex||throwNoComplex(x),new Complex(x.valueOf(),0)}},{from:"number",to:"Fraction",convert:function convert(x){Fraction||throwNoFraction(x);var f=new Fraction(x);if(f.valueOf()!==x)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+x+"). Use function fraction(x) to convert to Fraction.");return f}},{from:"string",to:"number",convert:function convert(x){var n=Number(x);if(isNaN(n))throw new Error('Cannot convert "'+x+'" to a number');return n}},{from:"string",to:"BigNumber",convert:function convert(x){BigNumber||throwNoBignumber(x);try{return new BigNumber(x)}catch(err){throw new Error('Cannot convert "'+x+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function convert(x){Fraction||throwNoFraction(x);try{return new Fraction(x)}catch(err){throw new Error('Cannot convert "'+x+'" to Fraction')}}},{from:"string",to:"Complex",convert:function convert(x){Complex||throwNoComplex(x);try{return new Complex(x)}catch(err){throw new Error('Cannot convert "'+x+'" to Complex')}}},{from:"boolean",to:"number",convert:function convert(x){return+x}},{from:"boolean",to:"BigNumber",convert:function convert(x){return BigNumber||throwNoBignumber(x),new BigNumber(+x)}},{from:"boolean",to:"Fraction",convert:function convert(x){return Fraction||throwNoFraction(x),new Fraction(+x)}},{from:"boolean",to:"string",convert:function convert(x){return String(x)}},{from:"Array",to:"Matrix",convert:function convert(array){return DenseMatrix||function throwNoMatrix(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new DenseMatrix(array)}},{from:"Matrix",to:"Array",convert:function convert(matrix){return matrix.valueOf()}}]),typed.onMismatch=(name,args,signatures)=>{var usualError=typed.createError(name,args,signatures);if(["wrongType","mismatch"].includes(usualError.data.category)&&1===args.length&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.uZ)(args[0])&&signatures.some((sig=>!sig.params.includes(",")))){var err=new TypeError("Function '".concat(name,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(name,")'."));throw err.data=usualError.data,err}throw usualError},typed.onMismatch=(name,args,signatures)=>{var usualError=typed.createError(name,args,signatures);if(["wrongType","mismatch"].includes(usualError.data.category)&&1===args.length&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.uZ)(args[0])&&signatures.some((sig=>!sig.params.includes(",")))){var err=new TypeError("Function '".concat(name,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(name,")'."));throw err.data=usualError.data,err}throw usualError},typed}));function throwNoBignumber(x){throw new Error("Cannot convert value ".concat(x," into a BigNumber: no class 'BigNumber' provided"))}function throwNoComplex(x){throw new Error("Cannot convert value ".concat(x," into a Complex number: no class 'Complex' provided"))}function throwNoFraction(x){throw new Error("Cannot convert value ".concat(x," into a Fraction, no class 'Fraction' provided."))}},"./node_modules/mathjs/lib/esm/entry/pureFunctionsAny.generated.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{TE$:function(){return pureFunctionsAny_generated_distance},AKD:function(){return pureFunctionsAny_generated_dot},$XF:function(){return pureFunctionsAny_generated_subtract}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),core_config=__webpack_require__("./node_modules/mathjs/lib/esm/core/config.js"),config=__webpack_require__("./node_modules/mathjs/lib/esm/core/function/config.js"),configReadonly_config=function config(options){if(options)throw new Error("The global config is readonly. \nPlease create a mathjs instance if you want to change the default configuration. \nExample:\n\n import { create, all } from 'mathjs';\n const mathjs = create(all);\n mathjs.config({ number: 'BigNumber' });\n");return Object.freeze(core_config.g)};(0,esm_extends.Z)(configReadonly_config,core_config.g,{MATRIX_OPTIONS:config.qK,NUMBER_OPTIONS:config.x9});var BigNumber=__webpack_require__("./node_modules/mathjs/lib/esm/type/bignumber/BigNumber.js"),Complex=__webpack_require__("./node_modules/mathjs/lib/esm/type/complex/Complex.js"),Fraction=(__webpack_require__("./node_modules/mathjs/lib/esm/constants.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/unit/physicalConstants.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/fraction/Fraction.js")),Matrix=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/Matrix.js"),DenseMatrix=(__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/Range.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/resultset/ResultSet.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/DenseMatrix.js")),typed=(__webpack_require__("./node_modules/mathjs/lib/esm/json/replacer.js"),__webpack_require__("./node_modules/mathjs/lib/esm/core/function/typed.js")),abs=(__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/unaryPlus.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/abs.js")),addScalar=(__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acos.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acot.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acsc.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/addScalar.js")),bignumber=(__webpack_require__("./node_modules/mathjs/lib/esm/function/complex/arg.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/asech.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/asinh.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/atan.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/atanh.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/bignumber/function/bignumber.js")),conj=(__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/bitNot.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/boolean.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/clone.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/combinations.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/complex/function/complex.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/complex/conj.js")),equalScalar=(__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/cos.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/cot.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/csc.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/cube.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/equalScalar.js")),isInteger=(__webpack_require__("./node_modules/mathjs/lib/esm/function/special/erf.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/exp.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/expm1.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/filter.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/forEach.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/string/format.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/getMatrixDataType.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/string/hex.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/complex/im.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isInteger.js")),multiplyScalar=(__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isNegative.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isPositive.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isZero.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/lgamma.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/log10.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/log2.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/map.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/multiplyScalar.js")),number=(__webpack_require__("./node_modules/mathjs/lib/esm/function/logical/not.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/number.js")),SparseMatrix=(__webpack_require__("./node_modules/mathjs/lib/esm/function/string/oct.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/pickRandom.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/string/print.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/random.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/complex/re.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/sec.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/sign.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/sin.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/SparseMatrix.js")),subtractScalar=(__webpack_require__("./node_modules/mathjs/lib/esm/type/unit/function/splitUnit.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/square.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/string.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/subtractScalar.js")),sqrt=(__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/tan.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/typeOf.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acosh.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acsch.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/apply.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/asec.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/string/bin.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/combinationsWithRep.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/cosh.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/csch.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isNaN.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isPrime.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/randomInt.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/sech.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/sinh.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/function/sparse.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/sqrt.js")),unaryMinus=(__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/tanh.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/unaryMinus.js")),fraction=(__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acoth.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/coth.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/fraction/function/fraction.js")),matrix=(__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isNumeric.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/function/matrix.js")),numeric=(__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/matrixFromFunction.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/mode.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/numeric.js")),size=(__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/prod.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/reshape.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/size.js")),concat=(__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/squeeze.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/transpose.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/xgcd.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/zeros.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/asin.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/cbrt.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/concat.js")),divideScalar=(__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/count.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/ctranspose.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/diag.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/divideScalar.js")),equal=(__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/dotDivide.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/equal.js")),subtract=(__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/flatten.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/hasNumericValue.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/identity.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/kron.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/largerEq.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/leftShift.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/lsolve.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/matrixFromColumns.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/nthRoot.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/ones.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/decomposition/qr.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/resize.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/rightArithShift.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/round.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/smaller.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/subtract.js")),deepEqual=(__webpack_require__("./node_modules/mathjs/lib/esm/function/unit/to.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/unequal.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/usolve.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/logical/xor.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/add.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/atan2.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/bitAnd.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/bitOr.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/bitXor.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/combinatorics/catalan.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/compare.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/compareText.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/cumsum.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/deepEqual.js")),distance=(__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/diff.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/geometry/distance.js")),dot=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/dot.js"),pureFunctionsAny_generated_BigNumber=(__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/equalText.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/floor.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/gcd.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/hypot.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/ImmutableDenseMatrix.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/MatrixIndex.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/larger.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/log.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/lsolveAll.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/matrixFromRows.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/min.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/mod.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/multiply.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/nthRoots.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/logical/or.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/partitionSelect.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/rightLogShift.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/decomposition/slu.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/subset.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/sum.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/trace.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/usolveAll.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/signal/zpk2tf.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/ceil.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/compareNatural.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/combinatorics/composition.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/cross.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/det.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/dotMultiply.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/FibonacciHeap.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/fix.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/function/index.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/geometry/intersect.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/invmod.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/lcm.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/log1p.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/max.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setCartesian.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setDistinct.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setIsSubset.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setPowerset.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/smallerEq.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/sort.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/logical/and.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/range.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/row.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setDifference.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setMultiplicity.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setSymDifference.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/Spa.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/column.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/inv.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/decomposition/lup.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/pinv.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/pow.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setIntersect.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setUnion.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/sqrtm.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/unit/Unit.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/dotPow.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/expm.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/fft.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/gamma.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/ifft.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/unit/function/createUnit.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/divide.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/factorial.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/lusolve.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/multinomial.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/permutations.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/polynomialRoot.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setSize.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/numeric/solveODE.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/combinatorics/stirlingS2.js"),__webpack_require__("./node_modules/mathjs/lib/esm/type/unit/function/unit.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/combinatorics/bellNumbers.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/eigs.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/kldivergence.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/mean.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/quantileSeq.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/variance.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/median.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/corr.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/signal/freqz.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/mad.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/std.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/special/zeta.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/norm.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/rotationMatrix.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/decomposition/schur.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/rotate.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/sylvester.js"),__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/lyap.js"),(0,BigNumber.w)({config:configReadonly_config})),pureFunctionsAny_generated_Complex=(0,Complex.w)({}),pureFunctionsAny_generated_Fraction=(0,Fraction.u)({}),pureFunctionsAny_generated_Matrix=(0,Matrix.K)({}),pureFunctionsAny_generated_DenseMatrix=(0,DenseMatrix.D)({Matrix:pureFunctionsAny_generated_Matrix}),pureFunctionsAny_generated_typed=(0,typed.d)({BigNumber:pureFunctionsAny_generated_BigNumber,Complex:pureFunctionsAny_generated_Complex,DenseMatrix:pureFunctionsAny_generated_DenseMatrix,Fraction:pureFunctionsAny_generated_Fraction}),pureFunctionsAny_generated_abs=(0,abs.E)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_addScalar=(0,addScalar.A)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_bignumber=(0,bignumber.p)({BigNumber:pureFunctionsAny_generated_BigNumber,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_conj=(0,conj.b)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_equalScalar=(0,equalScalar.f)({config:configReadonly_config,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_isInteger=(0,isInteger.u)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_multiplyScalar=(0,multiplyScalar.x)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_number=(0,number.k)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_SparseMatrix=(0,SparseMatrix.C)({Matrix:pureFunctionsAny_generated_Matrix,equalScalar:pureFunctionsAny_generated_equalScalar,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_subtractScalar=(0,subtractScalar.A)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_sqrt=(0,sqrt.M)({Complex:pureFunctionsAny_generated_Complex,config:configReadonly_config,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_unaryMinus=(0,unaryMinus.x)({typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_fraction=(0,fraction.v)({Fraction:pureFunctionsAny_generated_Fraction,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_matrix=(0,matrix.w)({DenseMatrix:pureFunctionsAny_generated_DenseMatrix,Matrix:pureFunctionsAny_generated_Matrix,SparseMatrix:pureFunctionsAny_generated_SparseMatrix,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_numeric=(0,numeric.d)({bignumber:pureFunctionsAny_generated_bignumber,fraction:pureFunctionsAny_generated_fraction,number:pureFunctionsAny_generated_number}),pureFunctionsAny_generated_size=(0,size.s)({matrix:pureFunctionsAny_generated_matrix,config:configReadonly_config,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_concat=(0,concat.k)({isInteger:pureFunctionsAny_generated_isInteger,matrix:pureFunctionsAny_generated_matrix,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_divideScalar=(0,divideScalar.L)({numeric:pureFunctionsAny_generated_numeric,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_equal=(0,equal.Z)({DenseMatrix:pureFunctionsAny_generated_DenseMatrix,concat:pureFunctionsAny_generated_concat,equalScalar:pureFunctionsAny_generated_equalScalar,matrix:pureFunctionsAny_generated_matrix,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_subtract=(0,subtract.p)({DenseMatrix:pureFunctionsAny_generated_DenseMatrix,concat:pureFunctionsAny_generated_concat,equalScalar:pureFunctionsAny_generated_equalScalar,matrix:pureFunctionsAny_generated_matrix,subtractScalar:pureFunctionsAny_generated_subtractScalar,typed:pureFunctionsAny_generated_typed,unaryMinus:pureFunctionsAny_generated_unaryMinus}),pureFunctionsAny_generated_deepEqual=(0,deepEqual.s)({equal:pureFunctionsAny_generated_equal,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_distance=(0,distance.v)({abs:pureFunctionsAny_generated_abs,addScalar:pureFunctionsAny_generated_addScalar,deepEqual:pureFunctionsAny_generated_deepEqual,divideScalar:pureFunctionsAny_generated_divideScalar,multiplyScalar:pureFunctionsAny_generated_multiplyScalar,sqrt:pureFunctionsAny_generated_sqrt,subtractScalar:pureFunctionsAny_generated_subtractScalar,typed:pureFunctionsAny_generated_typed}),pureFunctionsAny_generated_dot=(0,dot.W)({addScalar:pureFunctionsAny_generated_addScalar,conj:pureFunctionsAny_generated_conj,multiplyScalar:pureFunctionsAny_generated_multiplyScalar,size:pureFunctionsAny_generated_size,typed:pureFunctionsAny_generated_typed})},"./node_modules/mathjs/lib/esm/error/ArgumentsError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function ArgumentsError(fn,count,min,max){if(!(this instanceof ArgumentsError))throw new SyntaxError("Constructor must be called with the new operator");this.fn=fn,this.count=count,this.min=min,this.max=max,this.message="Wrong number of arguments in function "+fn+" ("+count+" provided, "+min+(null!=max?"-"+max:"")+" expected)",this.stack=(new Error).stack}__webpack_require__.d(__webpack_exports__,{u:function(){return ArgumentsError}}),ArgumentsError.prototype=new Error,ArgumentsError.prototype.constructor=Error,ArgumentsError.prototype.name="ArgumentsError",ArgumentsError.prototype.isArgumentsError=!0},"./node_modules/mathjs/lib/esm/error/DimensionError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function DimensionError(actual,expected,relation){if(!(this instanceof DimensionError))throw new SyntaxError("Constructor must be called with the new operator");this.actual=actual,this.expected=expected,this.relation=relation,this.message="Dimension mismatch ("+(Array.isArray(actual)?"["+actual.join(", ")+"]":actual)+" "+(this.relation||"!=")+" "+(Array.isArray(expected)?"["+expected.join(", ")+"]":expected)+")",this.stack=(new Error).stack}__webpack_require__.d(__webpack_exports__,{m:function(){return DimensionError}}),DimensionError.prototype=new RangeError,DimensionError.prototype.constructor=RangeError,DimensionError.prototype.name="DimensionError",DimensionError.prototype.isDimensionError=!0},"./node_modules/mathjs/lib/esm/error/IndexError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function IndexError(index,min,max){if(!(this instanceof IndexError))throw new SyntaxError("Constructor must be called with the new operator");this.index=index,arguments.length<3?(this.min=0,this.max=min):(this.min=min,this.max=max),void 0!==this.min&&this.index=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=(new Error).stack}__webpack_require__.d(__webpack_exports__,{c:function(){return IndexError}}),IndexError.prototype=new RangeError,IndexError.prototype.constructor=RangeError,IndexError.prototype.name="IndexError",IndexError.prototype.isIndexError=!0},"./node_modules/mathjs/lib/esm/function/algebra/decomposition/lup.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createLup}});var _utils_object_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","abs","addScalar","divideScalar","multiplyScalar","subtractScalar","larger","equalScalar","unaryMinus","DenseMatrix","SparseMatrix","Spa"],createLup=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("lup",dependencies,(_ref=>{var{typed:typed,matrix:matrix,abs:abs,addScalar:addScalar,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,larger:larger,equalScalar:equalScalar,unaryMinus:unaryMinus,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix,Spa:Spa}=_ref;return typed("lup",{DenseMatrix:function DenseMatrix(m){return _denseLUP(m)},SparseMatrix:function SparseMatrix(m){return _sparseLUP(m)},Array:function Array(a){var r=_denseLUP(matrix(a));return{L:r.L.valueOf(),U:r.U.valueOf(),p:r.p}}});function _denseLUP(m){var i,j,k,rows=m._size[0],columns=m._size[1],n=Math.min(rows,columns),data=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(m._data),ldata=[],lsize=[rows,n],udata=[],usize=[n,columns],p=[];for(i=0;i0)for(i=0;i0&&spa.forEach(0,j-1,(function(k,vkj){SparseMatrix._forEachRow(k,lvalues,lindex,lptr,(function(i,vik){i>k&&spa.accumulate(i,unaryMinus(multiplyScalar(vik,vkj)))}))}));var pi=j,vjj=spa.get(j),pabsv=abs(vjj);spa.forEach(j+1,rows-1,(function(x,v){var absv=abs(v);larger(absv,pabsv)&&(pi=x,pabsv=absv,vjj=v)})),j!==pi&&(SparseMatrix._swapRows(j,pi,lsize[1],lvalues,lindex,lptr),SparseMatrix._swapRows(j,pi,usize[1],uvalues,uindex,uptr),spa.swap(j,pi),function swapIndeces(x,y){var kx=pvOc[x],ky=pvOc[y];pvCo[kx]=y,pvCo[ky]=x,pvOc[x]=ky,pvOc[y]=kx}(j,pi)),spa.forEach(0,rows-1,(function(x,v){x<=j?(uvalues.push(v),uindex.push(x)):(v=divideScalar(v,vjj),equalScalar(v,0)||(lvalues.push(v),lindex.push(x)))}))};for(j=0;j{var{typed:typed,matrix:matrix,zeros:zeros,identity:identity,isZero:isZero,equal:equal,sign:sign,sqrt:sqrt,conj:conj,unaryMinus:unaryMinus,addScalar:addScalar,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,complex:complex}=_ref;return(0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__.Z)(typed("qr",{DenseMatrix:function DenseMatrix(m){return _denseQR(m)},SparseMatrix:function SparseMatrix(m){return function _sparseQR(m){throw new Error("qr not implemented for sparse matrices yet")}()},Array:function Array(a){var r=_denseQR(matrix(a));return{Q:r.Q.valueOf(),R:r.R.valueOf()}}}),{_denseQRimpl:_denseQRimpl});function _denseQRimpl(m){var i,j,k,rows=m._size[0],cols=m._size[1],Q=identity([rows],"dense"),Qdata=Q._data,R=m.clone(),Rdata=R._data,w=zeros([rows],"");for(k=0;k0)for(var zero="Complex"===Rdata[0][0].type?complex(0):0,i=0;i{var{typed:typed,matrix:matrix,identity:identity,multiply:multiply,qr:qr,norm:norm,subtract:subtract}=_ref;return typed("schur",{Array:function Array(X){var r=_schur(matrix(X));return{U:r.U.valueOf(),T:r.T.valueOf()}},Matrix:function Matrix(X){return _schur(X)}});function _schur(X){var A0,n=X.size()[0],A=X,U=identity(n),k=0;do{A0=A;var QR=qr(A),Q=QR.Q,R=QR.R;if(A=multiply(R,Q),U=multiply(U,Q),k++>100)break}while(norm(subtract(A,A0))>1e-4);return{U:U,T:A}}}))},"./node_modules/mathjs/lib/esm/function/algebra/decomposition/slu.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:function(){return createSlu}});var number=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),factory=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js");function csTdfs(j,k,w,head,next,post,stack){var top=0;for(w[stack]=j;top>=0;){var p=w[stack+top],i=w[head+p];-1===i?(top--,post[k++]=p):(w[head+p]=w[next+i],w[stack+ ++top]=i)}return k}function csFlip(i){return-i-2}var dependencies=["add","multiply","transpose"],createCsAmd=(0,factory.d5)("csAmd",dependencies,(_ref=>{var{add:add,multiply:multiply,transpose:transpose}=_ref;return function csAmd(order,a){if(!a||order<=0||order>3)return null;var asize=a._size,m=asize[0],n=asize[1],lemax=0,dense=Math.max(16,10*Math.sqrt(n)),cm=function _createTargetMatrix(order,a,m,n,dense){var at=transpose(a);if(1===order&&n===m)return add(a,at);if(2===order){for(var tindex=at._index,tptr=at._ptr,p2=0,j=0;jdense))for(var p1=tptr[j+1];pdense)W[nv+i]=0,W[elen+i]=-1,nel++,cptr[i]=csFlip(n),W[nv+n]++;else{var h=W[head+d];-1!==h&&(last[h]=i),W[next+i]=W[head+d],W[head+d]=i}}return nel}(n,cptr,W,degree,elen,w,dense,nv,head,last,next),mindeg=0;nelelenk?(e=k,pj=p,ln=W[0+k]-elenk):(pj=cptr[e=cindex[p++]],ln=W[0+e]),k2=1;k2<=ln;k2++)(nvi=W[nv+(i=cindex[pj++])])<=0||(dk+=nvi,W[nv+i]=-nvi,cindex[pk2++]=i,-1!==W[next+i]&&(last[W[next+i]]=last[i]),-1!==last[i]?W[next+last[i]]=W[next+i]:W[head+W[degree+i]]=W[next+i]);e!==k&&(cptr[e]=csFlip(k),W[w+e]=0)}for(0!==elenk&&(cnz=pk2),W[degree+k]=dk,cptr[k]=pk1,W[0+k]=pk2-pk1,W[elen+k]=-2,mark=_wclear(mark,lemax,W,w,n),pk=pk1;pk=mark?W[w+e]-=nvi:0!==W[w+e]&&(W[w+e]=W[degree+e]+wnvi)}for(pk=pk1;pk0?(d+=dext,cindex[pn++]=e,h+=e):(cptr[e]=csFlip(k),W[w+e]=0)}W[elen+i]=pn-p1+1;var p3=pn,p4=p1+W[0+i];for(p=p2+1;p=0))for(i=W[hhead+(h=last[i])],W[hhead+h]=-1;-1!==i&&-1!==W[next+i];i=W[next+i],mark++){for(ln=W[0+i],eln=W[elen+i],p=cptr[i]+1;p<=cptr[i]+ln-1;p++)W[w+cindex[p]]=mark;var jlast=i;for(j=W[next+i];-1!==j;){var ok=W[0+j]===ln&&W[elen+j]===eln;for(p=cptr[j]+1;ok&&p<=cptr[j]+ln-1;p++)W[w+cindex[p]]!==mark&&(ok=0);ok?(cptr[j]=csFlip(i),W[nv+i]+=W[nv+j],W[nv+j]=0,W[elen+j]=-1,j=W[next+j],W[next+jlast]=j):(jlast=j,j=W[next+j])}}for(p=pk1,pk=pk1;pk=0;j--)W[nv+j]>0||(W[next+j]=W[head+cptr[j]],W[head+cptr[j]]=j);for(e=n;e>=0;e--)W[nv+e]<=0||-1!==cptr[e]&&(W[next+e]=W[head+cptr[e]],W[head+cptr[e]]=e);for(k=0,i=0;i<=n;i++)-1===cptr[i]&&(k=csTdfs(i,k,W,head,next,P,w));return P.splice(P.length-1,1),P};function _wclear(mark,lemax,W,w,n){if(mark<2||mark+lemax<0){for(var k=0;k{var{transpose:transpose}=_ref;return function(a,parent,post,ata){if(!a||!parent||!post)return null;var i,j,k,J,p,p0,p1,asize=a._size,m=asize[0],n=asize[1],s=4*n+(ata?n+m+1:0),w=[],maxfirst=n,prevleaf=2*n,first=3*n,head=4*n,next=5*n+1;for(k=0;k=1&&colcount[j]++,2===r.jleaf&&colcount[r.q]--}-1!==parent[j]&&(w[0+j]=parent[j])}for(j=0;j{var{add:add,multiply:multiply,transpose:transpose}=_ref,csAmd=createCsAmd({add:add,multiply:multiply,transpose:transpose}),csCounts=createCsCounts({transpose:transpose});return function csSqr(order,a,qr){var k,aptr=a._ptr,n=a._size[1],s={};if(s.q=csAmd(order,a),order&&!s.q)return null;if(qr){var c=order?function csPermute(a,pinv,q,values){for(var avalues=a._values,aindex=a._index,aptr=a._ptr,asize=a._size,adt=a._datatype,m=asize[0],n=asize[1],cvalues=values&&a._values?[]:null,cindex=[],cptr=[],nz=0,k=0;k=0;j--)-1!==parent[j]&&(w[next+j]=w[0+parent[j]],w[0+parent[j]]=j);for(j=0;j=0;k--)for(p0=aptr[k],p1=aptr[k+1],p=p0;p=0;i--)pinv[i]=-1,-1!==(k=leftmost[i])&&(0==w[nque+k]++&&(w[tail+k]=i),w[next+i]=w[head+k],w[head+k]=i);for(s.lnz=0,s.m2=m,k=0;k=0;){j=xi[head];var jnew=pinv?pinv[j]:j;csMarked(ptr,j)||(csMark(ptr,j),xi[n+head]=jnew<0?0:csUnflip(ptr[jnew]));var done=1;for(p=xi[n+head],p2=jnew<0?0:csUnflip(ptr[jnew+1]);p{var{divideScalar:divideScalar,multiply:multiply,subtract:subtract}=_ref;return function csSpsolve(g,b,k,xi,x,pinv,lo){var p,p0,p1,q,gvalues=g._values,gindex=g._index,gptr=g._ptr,n=g._size[1],bvalues=b._values,bindex=b._index,bptr=b._ptr,top=function csReach(g,b,k,xi,pinv){var p,p0,p1,gptr=g._ptr,gsize=g._size,bindex=b._index,bptr=b._ptr,n=gsize[1],top=n;for(p0=bptr[k],p1=bptr[k+1],p=p0;p{var{abs:abs,divideScalar:divideScalar,multiply:multiply,subtract:subtract,larger:larger,largerEq:largerEq,SparseMatrix:SparseMatrix}=_ref,csSpsolve=createCsSpsolve({divideScalar:divideScalar,multiply:multiply,subtract:subtract});return function csLu(m,s,tol){if(!m)return null;var q,n=m._size[1],lnz=100,unz=100;s&&(q=s.q,lnz=s.lnz||lnz,unz=s.unz||unz);var i,p,lvalues=[],lindex=[],lptr=[],L=new SparseMatrix({values:lvalues,index:lindex,ptr:lptr,size:[n,n]}),uvalues=[],uindex=[],uptr=[],U=new SparseMatrix({values:uvalues,index:uindex,ptr:uptr,size:[n,n]}),pinv=[],x=[],xi=[];for(i=0;i{var{typed:typed,abs:abs,add:add,multiply:multiply,transpose:transpose,divideScalar:divideScalar,subtract:subtract,larger:larger,largerEq:largerEq,SparseMatrix:SparseMatrix}=_ref,csSqr=createCsSqr({add:add,multiply:multiply,transpose:transpose}),csLu=createCsLu({abs:abs,divideScalar:divideScalar,multiply:multiply,subtract:subtract,larger:larger,largerEq:largerEq,SparseMatrix:SparseMatrix});return typed("slu",{"SparseMatrix, number, number":function SparseMatrixNumberNumber(a,order,threshold){if(!(0,number.U)(order)||order<0||order>3)throw new Error("Symbolic Ordering and Analysis order must be an integer number in the interval [0, 3]");if(threshold<0||threshold>1)throw new Error("Partial pivoting threshold must be a number from 0 to 1");var s=csSqr(order,a,!1),f=csLu(a,s,threshold);return{L:f.L,U:f.U,p:f.pinv,q:s.q,toString:function toString(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\np: "+this.p.toString()+(this.q?"\nq: "+this.q.toString():"")+"\n"}}}})}))},"./node_modules/mathjs/lib/esm/function/algebra/lyap.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createLyap}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","sylvester","multiply","transpose"],createLyap=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("lyap",dependencies,(_ref=>{var{typed:typed,matrix:matrix,sylvester:sylvester,multiply:multiply,transpose:transpose}=_ref;return typed("lyap",{"Matrix, Matrix":function MatrixMatrix(A,Q){return sylvester(A,transpose(A),multiply(-1,Q))},"Array, Matrix":function ArrayMatrix(A,Q){return sylvester(matrix(A),transpose(matrix(A)),multiply(-1,Q))},"Matrix, Array":function MatrixArray(A,Q){return sylvester(A,transpose(matrix(A)),matrix(multiply(-1,Q)))},"Array, Array":function ArrayArray(A,Q){return sylvester(matrix(A),transpose(matrix(A)),matrix(multiply(-1,Q))).toArray()}})}))},"./node_modules/mathjs/lib/esm/function/algebra/polynomialRoot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return createPolynomialRoot}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),name="polynomialRoot",dependencies=["typed","isZero","equalScalar","add","subtract","multiply","divide","sqrt","unaryMinus","cbrt","typeOf","im","re"],createPolynomialRoot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,isZero:isZero,equalScalar:equalScalar,add:add,subtract:subtract,multiply:multiply,divide:divide,sqrt:sqrt,unaryMinus:unaryMinus,cbrt:cbrt,typeOf:typeOf,im:im,re:re}=_ref;return typed(name,{"number|Complex, ...number|Complex":(constant,restCoeffs)=>{for(var coeffs=[constant,...restCoeffs];coeffs.length>0&&isZero(coeffs[coeffs.length-1]);)coeffs.pop();if(coeffs.length<2)throw new RangeError("Polynomial [".concat(constant,", ").concat(restCoeffs,"] must have a non-zero non-constant coefficient"));switch(coeffs.length){case 2:return[unaryMinus(divide(coeffs[0],coeffs[1]))];case 3:var[c,b,a]=coeffs,denom=multiply(2,a),d1=multiply(b,b),d2=multiply(4,a,c);if(equalScalar(d1,d2))return[divide(unaryMinus(b),denom)];var discriminant=sqrt(subtract(d1,d2));return[divide(subtract(discriminant,b),denom),divide(subtract(unaryMinus(discriminant),b),denom)];case 4:var[d,_c,_b,_a]=coeffs,_denom=unaryMinus(multiply(3,_a)),D0_1=multiply(_b,_b),D0_2=multiply(3,_a,_c),D1_1=add(multiply(2,_b,_b,_b),multiply(27,_a,_a,d)),D1_2=multiply(9,_a,_b,_c);if(equalScalar(D0_1,D0_2)&&equalScalar(D1_1,D1_2))return[divide(_b,_denom)];var Ccubed,Delta0=subtract(D0_1,D0_2),Delta1=subtract(D1_1,D1_2),discriminant1=add(multiply(18,_a,_b,_c,d),multiply(_b,_b,_c,_c)),discriminant2=add(multiply(4,_b,_b,_b,d),multiply(4,_a,_c,_c,_c),multiply(27,_a,_a,d,d));if(equalScalar(discriminant1,discriminant2))return[divide(subtract(multiply(4,_a,_b,_c),add(multiply(9,_a,_a,d),multiply(_b,_b,_b))),multiply(_a,Delta0)),divide(subtract(multiply(9,_a,d),multiply(_b,_c)),multiply(2,Delta0))];Ccubed=equalScalar(D0_1,D0_2)?Delta1:divide(add(Delta1,sqrt(subtract(multiply(Delta1,Delta1),multiply(4,Delta0,Delta0,Delta0)))),2);return cbrt(Ccubed,!0).toArray().map((C=>divide(add(_b,C,divide(Delta0,C)),_denom))).map((r=>"Complex"===typeOf(r)&&equalScalar(re(r),re(r)+im(r))?re(r):r));default:throw new RangeError("only implemented for cubic or lower-order polynomials, not ".concat(coeffs))}}})}))},"./node_modules/mathjs/lib/esm/function/algebra/solver/lsolve.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createLsolve}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/utils/solveValidation.js"),dependencies=["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],createLsolve=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("lsolve",dependencies,(_ref=>{var{typed:typed,matrix:matrix,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,equalScalar:equalScalar,DenseMatrix:DenseMatrix}=_ref,solveValidation=(0,_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__.v)({DenseMatrix:DenseMatrix});return typed("lsolve",{"SparseMatrix, Array | Matrix":function SparseMatrixArrayMatrix(m,b){return function _sparseForwardSubstitution(m,b){for(var bdata=(b=solveValidation(m,b,!0))._data,rows=m._size[0],columns=m._size[1],values=m._values,index=m._index,ptr=m._ptr,x=[],j=0;jj&&(jValues.push(values[k]),jIndices.push(i))}if(equalScalar(vjj,0))throw new Error("Linear system cannot be solved since matrix is singular");for(var xj=divideScalar(bj,vjj),_k=0,l=jIndices.length;_k{var{typed:typed,matrix:matrix,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,equalScalar:equalScalar,DenseMatrix:DenseMatrix}=_ref,solveValidation=(0,_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__.v)({DenseMatrix:DenseMatrix});return typed("lsolveAll",{"SparseMatrix, Array | Matrix":function SparseMatrixArrayMatrix(m,b){return function _sparseForwardSubstitution(m,b_){for(var B=[solveValidation(m,b_,!0)._data.map((e=>e[0]))],rows=m._size[0],columns=m._size[1],values=m._values,index=m._index,ptr=m._ptr,i=0;ii&&(iValues.push(values[j]),iIndices.push(J))}if(equalScalar(Mii,0))if(equalScalar(b[i],0)){if(0===k){var bNew=[...b];bNew[i]=1;for(var _j3=0,_lastIndex2=iIndices.length;_j3<_lastIndex2;_j3++){var _J2=iIndices[_j3];bNew[_J2]=subtractScalar(bNew[_J2],iValues[_j3])}B.push(bNew)}}else{if(0===k)return[];B.splice(k,1),k-=1,L-=1}else{b[i]=divideScalar(b[i],Mii);for(var _j2=0,_lastIndex=iIndices.length;_j2<_lastIndex;_j2++){var _J=iIndices[_j2];b[_J]=subtractScalar(b[_J],multiplyScalar(b[i],iValues[_j2]))}}}return B.map((x=>new DenseMatrix({data:x.map((e=>[e])),size:[rows,1]})))}(m,b)},"DenseMatrix, Array | Matrix":function DenseMatrixArrayMatrix(m,b){return _denseForwardSubstitution(m,b)},"Array, Array | Matrix":function ArrayArrayMatrix(a,b){return _denseForwardSubstitution(matrix(a),b).map((r=>r.valueOf()))}});function _denseForwardSubstitution(m,b_){for(var B=[solveValidation(m,b_,!0)._data.map((e=>e[0]))],M=m._data,rows=m._size[0],columns=m._size[1],i=0;inew DenseMatrix({data:x.map((e=>[e])),size:[rows,1]})))}}))},"./node_modules/mathjs/lib/esm/function/algebra/solver/lusolve.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{A:function(){return createLusolve}});var is=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),factory=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),utils_solveValidation=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/utils/solveValidation.js");function csIpvec(p,b){var k,n=b.length,x=[];if(p)for(k=0;k{var{typed:typed,matrix:matrix,lup:lup,slu:slu,usolve:usolve,lsolve:lsolve,DenseMatrix:DenseMatrix}=_ref,solveValidation=(0,utils_solveValidation.v)({DenseMatrix:DenseMatrix});return typed("lusolve",{"Array, Array | Matrix":function ArrayArrayMatrix(a,b){a=matrix(a);var d=lup(a);return _lusolve(d.L,d.U,d.p,null,b).valueOf()},"DenseMatrix, Array | Matrix":function DenseMatrixArrayMatrix(a,b){var d=lup(a);return _lusolve(d.L,d.U,d.p,null,b)},"SparseMatrix, Array | Matrix":function SparseMatrixArrayMatrix(a,b){var d=lup(a);return _lusolve(d.L,d.U,d.p,null,b)},"SparseMatrix, Array | Matrix, number, number":function SparseMatrixArrayMatrixNumberNumber(a,b,order,threshold){var d=slu(a,order,threshold);return _lusolve(d.L,d.U,d.p,d.q,b)},"Object, Array | Matrix":function ObjectArrayMatrix(d,b){return _lusolve(d.L,d.U,d.p,d.q,b)}});function _toMatrix(a){if((0,is.SW)(a))return a;if((0,is.kJ)(a))return matrix(a);throw new TypeError("Invalid Matrix LU decomposition")}function _lusolve(l,u,p,q,b){l=_toMatrix(l),u=_toMatrix(u),p&&((b=solveValidation(l,b,!0))._data=csIpvec(p,b._data));var y=lsolve(l,b),x=usolve(u,y);return q&&(x._data=csIpvec(q,x._data)),x}}))},"./node_modules/mathjs/lib/esm/function/algebra/solver/usolve.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return createUsolve}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/utils/solveValidation.js"),dependencies=["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],createUsolve=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("usolve",dependencies,(_ref=>{var{typed:typed,matrix:matrix,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,equalScalar:equalScalar,DenseMatrix:DenseMatrix}=_ref,solveValidation=(0,_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__.v)({DenseMatrix:DenseMatrix});return typed("usolve",{"SparseMatrix, Array | Matrix":function SparseMatrixArrayMatrix(m,b){return function _sparseBackwardSubstitution(m,b){for(var bdata=(b=solveValidation(m,b,!0))._data,rows=m._size[0],columns=m._size[1],values=m._values,index=m._index,ptr=m._ptr,x=[],j=columns-1;j>=0;j--){var bj=bdata[j][0]||0;if(equalScalar(bj,0))x[j]=[0];else{for(var vjj=0,jValues=[],jIndices=[],firstIndex=ptr[j],k=ptr[j+1]-1;k>=firstIndex;k--){var i=index[k];i===j?vjj=values[k]:i=0;j--){var bj=bdata[j][0]||0,xj=void 0;if(equalScalar(bj,0))xj=0;else{var vjj=mdata[j][j];if(equalScalar(vjj,0))throw new Error("Linear system cannot be solved since matrix is singular");xj=divideScalar(bj,vjj);for(var i=j-1;i>=0;i--)bdata[i]=[subtractScalar(bdata[i][0]||0,multiplyScalar(xj,mdata[i][j]))]}x[j]=[xj]}return new DenseMatrix({data:x,size:[rows,1]})}}))},"./node_modules/mathjs/lib/esm/function/algebra/solver/usolveAll.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return createUsolveAll}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/utils/solveValidation.js"),dependencies=["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],createUsolveAll=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("usolveAll",dependencies,(_ref=>{var{typed:typed,matrix:matrix,divideScalar:divideScalar,multiplyScalar:multiplyScalar,subtractScalar:subtractScalar,equalScalar:equalScalar,DenseMatrix:DenseMatrix}=_ref,solveValidation=(0,_utils_solveValidation_js__WEBPACK_IMPORTED_MODULE_1__.v)({DenseMatrix:DenseMatrix});return typed("usolveAll",{"SparseMatrix, Array | Matrix":function SparseMatrixArrayMatrix(m,b){return function _sparseBackwardSubstitution(m,b_){for(var B=[solveValidation(m,b_,!0)._data.map((e=>e[0]))],rows=m._size[0],columns=m._size[1],values=m._values,index=m._index,ptr=m._ptr,i=columns-1;i>=0;i--)for(var L=B.length,k=0;k=firstIndex;j--){var J=index[j];J===i?Mii=values[j]:Jnew DenseMatrix({data:x.map((e=>[e])),size:[rows,1]})))}(m,b)},"DenseMatrix, Array | Matrix":function DenseMatrixArrayMatrix(m,b){return _denseBackwardSubstitution(m,b)},"Array, Array | Matrix":function ArrayArrayMatrix(a,b){return _denseBackwardSubstitution(matrix(a),b).map((r=>r.valueOf()))}});function _denseBackwardSubstitution(m,b_){for(var B=[solveValidation(m,b_,!0)._data.map((e=>e[0]))],M=m._data,rows=m._size[0],i=m._size[1]-1;i>=0;i--)for(var L=B.length,k=0;k=0;_j--)bNew[_j]=subtractScalar(bNew[_j],M[_j][i]);B.push(bNew)}}else{if(0===k)return[];B.splice(k,1),k-=1,L-=1}else{b[i]=divideScalar(b[i],M[i][i]);for(var j=i-1;j>=0;j--)b[j]=subtractScalar(b[j],multiplyScalar(b[i],M[j][i]))}}return B.map((x=>new DenseMatrix({data:x.map((e=>[e])),size:[rows,1]})))}}))},"./node_modules/mathjs/lib/esm/function/algebra/solver/utils/solveValidation.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createSolveValidation}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js");function createSolveValidation(_ref){var{DenseMatrix:DenseMatrix}=_ref;return function solveValidation(m,b,copy){var mSize=m.size();if(2!==mSize.length)throw new RangeError("Matrix must be two dimensional (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_0__.WU)(mSize)+")");var rows=mSize[0];if(rows!==mSize[1])throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_0__.WU)(mSize)+")");var data=[];if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(b)){var bSize=b.size(),bdata=b._data;if(1===bSize.length){if(bSize[0]!==rows)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var i=0;i{var{typed:typed,schur:schur,matrixFromColumns:matrixFromColumns,matrix:matrix,multiply:multiply,range:range,concat:concat,transpose:transpose,index:index,subset:subset,add:add,subtract:subtract,identity:identity,lusolve:lusolve,abs:abs}=_ref;return typed("sylvester",{"Matrix, Matrix, Matrix":_sylvester,"Array, Matrix, Matrix":function ArrayMatrixMatrix(A,B,C){return _sylvester(matrix(A),B,C)},"Array, Array, Matrix":function ArrayArrayMatrix(A,B,C){return _sylvester(matrix(A),matrix(B),C)},"Array, Matrix, Array":function ArrayMatrixArray(A,B,C){return _sylvester(matrix(A),B,matrix(C))},"Matrix, Array, Matrix":function MatrixArrayMatrix(A,B,C){return _sylvester(A,matrix(B),C)},"Matrix, Array, Array":function MatrixArrayArray(A,B,C){return _sylvester(A,matrix(B),matrix(C))},"Matrix, Matrix, Array":function MatrixMatrixArray(A,B,C){return _sylvester(A,B,matrix(C))},"Array, Array, Array":function ArrayArrayArray(A,B,C){return _sylvester(matrix(A),matrix(B),matrix(C)).toArray()}});function _sylvester(A,B,C){for(var n=B.size()[0],m=A.size()[0],sA=schur(A),F=sA.T,U=sA.U,sB=schur(multiply(-1,B)),G=sB.T,V=sB.U,D=multiply(multiply(transpose(U),C),V),all=range(0,m),y=[],hc=(a,b)=>concat(a,b,1),vc=(a,b)=>concat(a,b,0),k=0;k1e-5){for(var RHS=vc(subset(D,index(all,k)),subset(D,index(all,k+1))),j=0;j{var{typed:typed}=_ref;return typed("abs",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Q1,"Complex | BigNumber | Fraction | Unit":x=>x.abs(),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self,!0)))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/add.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{e:function(){return createAdd}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo04xSidSid.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","addScalar","equalScalar","DenseMatrix","SparseMatrix","concat"],createAdd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("add",dependencies,(_ref=>{var{typed:typed,matrix:matrix,addScalar:addScalar,equalScalar:equalScalar,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo04xSidSid=(0,_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_3__.H)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("add",{"any, any":addScalar,"any, any, ...any":typed.referToSelf((self=>(x,y,rest)=>{for(var result=self(x,y),i=0;i{var{typed:typed}=_ref;return typed("addScalar",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Ft,"Complex, Complex":function ComplexComplex(x,y){return x.add(y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.plus(y)},"Fraction, Fraction":function FractionFraction(x,y){return x.add(y)},"Unit, Unit":typed.referToSelf((self=>(x,y)=>{if(null===x.value||void 0===x.value)throw new Error("Parameter x contains a unit with undefined value");if(null===y.value||void 0===y.value)throw new Error("Parameter y contains a unit with undefined value");if(!x.equalBase(y))throw new Error("Units do not match");var res=x.clone();return res.value=typed.find(self,[res.valueType(),y.valueType()])(res.value,y.value),res.fixPrefix=!1,res}))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/cbrt.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{S:function(){return createCbrt}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["config","typed","isNegative","unaryMinus","matrix","Complex","BigNumber","Fraction"],createCbrt=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cbrt",dependencies,(_ref=>{var{config:config,typed:typed,isNegative:isNegative,unaryMinus:unaryMinus,matrix:matrix,Complex:Complex,BigNumber:BigNumber,Fraction:Fraction}=_ref;return typed("cbrt",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.ih,Complex:_cbrtComplex,"Complex, boolean":_cbrtComplex,BigNumber:function BigNumber(x){return x.cbrt()},Unit:function _cbrtUnit(x){if(x.value&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Mc)(x.value)){var result=x.clone();return result.value=1,(result=result.pow(1/3)).value=_cbrtComplex(x.value),result}var third,negate=isNegative(x.value);negate&&(x.value=unaryMinus(x.value)),third=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(x.value)?new BigNumber(1).div(3):(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.yQ)(x.value)?new Fraction(1,3):1/3;var _result=x.pow(third);return negate&&(_result.value=unaryMinus(_result.value)),_result}});function _cbrtComplex(x,allRoots){var arg3=x.arg()/3,abs=x.abs(),principal=new Complex((0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.ih)(abs),0).mul(new Complex(0,arg3).exp());if(allRoots){var all=[principal,new Complex((0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.ih)(abs),0).mul(new Complex(0,arg3+2*Math.PI/3).exp()),new Complex((0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.ih)(abs),0).mul(new Complex(0,arg3-2*Math.PI/3).exp())];return"Array"===config.matrix?all:matrix(all)}return principal}}))},"./node_modules/mathjs/lib/esm/function/arithmetic/ceil.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{l:function(){return createCeil}});var decimal_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/decimal.js/decimal.mjs"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),dependencies=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],createCeilNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)("ceil",["typed","config","round"],(_ref=>{var{typed:typed,config:config,round:round}=_ref;return typed("ceil",{number:function number(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.RI)(x,round(x),config.epsilon)?round(x):Math.ceil(x)},"number, number":function numberNumber(x,n){if((0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.RI)(x,round(x,n),config.epsilon))return round(x,n);var[number,exponent]="".concat(x,"e").split("e"),result=Math.ceil(Number("".concat(number,"e").concat(Number(exponent)+n)));return[number,exponent]="".concat(result,"e").split("e"),Number("".concat(number,"e").concat(Number(exponent)-n))}})})),createCeil=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)("ceil",dependencies,(_ref2=>{var{typed:typed,config:config,round:round,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix}=_ref2,matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__.O)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_5__.R)({typed:typed}),ceilNumber=createCeilNumber({typed:typed,config:config,round:round});return typed("ceil",{number:ceilNumber.signatures.number,"number,number":ceilNumber.signatures["number,number"],Complex:function Complex(x){return x.ceil()},"Complex, number":function ComplexNumber(x,n){return x.ceil(n)},"Complex, BigNumber":function ComplexBigNumber(x,n){return x.ceil(n.toNumber())},BigNumber:function BigNumber(x){return(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,round(x),config.epsilon)?round(x):x.ceil()},"BigNumber, BigNumber":function BigNumberBigNumber(x,n){return(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,round(x,n),config.epsilon)?round(x,n):x.toDecimalPlaces(n.toNumber(),decimal_js__WEBPACK_IMPORTED_MODULE_0__.Z.ROUND_CEIL)},Fraction:function Fraction(x){return x.ceil()},"Fraction, number":function FractionNumber(x,n){return x.ceil(n)},"Fraction, BigNumber":function FractionBigNumber(x,n){return x.ceil(n.toNumber())},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,self,!0))),"Array, number | BigNumber":typed.referToSelf((self=>(x,n)=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,(i=>self(i,n)),!0))),"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>matAlgo14xDs(x,y,self,!1))),"number | Complex | Fraction | BigNumber, Array":typed.referToSelf((self=>(x,y)=>matAlgo14xDs(matrix(y),x,self,!0).valueOf())),"number | Complex | Fraction | BigNumber, Matrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):"dense"===y.storage()?matAlgo14xDs(y,x,self,!0):matAlgo12xSfs(y,x,self,!0)))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/cube.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return createCube}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed"],createCube=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cube",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("cube",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Dv,Complex:function Complex(x){return x.mul(x).mul(x)},BigNumber:function BigNumber(x){return x.times(x).times(x)},Fraction:function Fraction(x){return x.pow(3)},Unit:function Unit(x){return x.pow(3)}})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/divide.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{_:function(){return createDivide}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),dependencies=["typed","matrix","multiply","equalScalar","divideScalar","inv"],createDivide=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("divide",dependencies,(_ref=>{var{typed:typed,matrix:matrix,multiply:multiply,equalScalar:equalScalar,divideScalar:divideScalar,inv:inv}=_ref,matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__.R)({typed:typed});return typed("divide",(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_3__.l7)({"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(x,y){return multiply(x,inv(y))},"DenseMatrix, any":function DenseMatrixAny(x,y){return matAlgo14xDs(x,y,divideScalar,!1)},"SparseMatrix, any":function SparseMatrixAny(x,y){return matAlgo11xS0s(x,y,divideScalar,!1)},"Array, any":function ArrayAny(x,y){return matAlgo14xDs(matrix(x),y,divideScalar,!1).valueOf()},"any, Array | Matrix":function anyArrayMatrix(x,y){return multiply(x,inv(y))}},divideScalar.signatures))}))},"./node_modules/mathjs/lib/esm/function/arithmetic/divideScalar.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return createDivideScalar}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","numeric"],createDivideScalar=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("divideScalar",dependencies,(_ref=>{var{typed:typed,numeric:numeric}=_ref;return typed("divideScalar",{"number, number":function numberNumber(x,y){return x/y},"Complex, Complex":function ComplexComplex(x,y){return x.div(y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.div(y)},"Fraction, Fraction":function FractionFraction(x,y){return x.div(y)},"Unit, number | Complex | Fraction | BigNumber | Unit":(x,y)=>x.divide(y),"number | Fraction | Complex | BigNumber, Unit":(x,y)=>y.divideInto(x)})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/dotDivide.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return createDotDivide}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","equalScalar","divideScalar","DenseMatrix","concat"],createDotDivide=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("dotDivide",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,divideScalar:divideScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_3__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__.O)({typed:typed,DenseMatrix:DenseMatrix});return typed("dotDivide",(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__.L)({typed:typed,matrix:matrix,concat:concat})({elop:divideScalar,SS:matAlgo07xSSf,DS:matAlgo03xDSf,SD:matAlgo02xDS0,Ss:matAlgo11xS0s,sS:matAlgo12xSfs}))}))},"./node_modules/mathjs/lib/esm/function/arithmetic/dotMultiply.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return createDotMultiply}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo09xS0Sf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo09xS0Sf.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","equalScalar","multiplyScalar","concat"],createDotMultiply=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("dotMultiply",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,multiplyScalar:multiplyScalar,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo09xS0Sf=(0,_type_matrix_utils_matAlgo09xS0Sf_js__WEBPACK_IMPORTED_MODULE_2__.r)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar});return typed("dotMultiply",(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat})({elop:multiplyScalar,SS:matAlgo09xS0Sf,DS:matAlgo02xDS0,Ss:matAlgo11xS0s}))}))},"./node_modules/mathjs/lib/esm/function/arithmetic/dotPow.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createDotPow}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","equalScalar","matrix","pow","DenseMatrix","concat"],createDotPow=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("dotPow",dependencies,(_ref=>{var{typed:typed,equalScalar:equalScalar,matrix:matrix,pow:pow,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__.L)({typed:typed,matrix:matrix,concat:concat}),powScalarSignatures={};for(var signature in pow.signatures)Object.prototype.hasOwnProperty.call(pow.signatures,signature)&&(signature.includes("Matrix")||signature.includes("Array")||(powScalarSignatures[signature]=pow.signatures[signature]));var powScalar=typed(powScalarSignatures);return typed("dotPow",matrixAlgorithmSuite({elop:powScalar,SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo11xS0s,sS:matAlgo12xSfs}))}))},"./node_modules/mathjs/lib/esm/function/arithmetic/exp.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return createExp}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed"],createExp=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("exp",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("exp",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.qX,Complex:function Complex(x){return x.exp()},BigNumber:function BigNumber(x){return x.exp()}})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/expm1.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j:function(){return createExpm1}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","Complex"],createExpm1=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("expm1",dependencies,(_ref=>{var{typed:typed,Complex:_Complex}=_ref;return typed("expm1",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.B,Complex:function Complex(x){var r=Math.exp(x.re);return new _Complex(r*Math.cos(x.im)-1,r*Math.sin(x.im))},BigNumber:function BigNumber(x){return x.exp().minus(1)}})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/fix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return createFix}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),dependencies=["typed","Complex","matrix","ceil","floor","equalScalar","zeros","DenseMatrix"],createFixNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("fix",["typed","ceil","floor"],(_ref=>{var{typed:typed,ceil:ceil,floor:floor}=_ref;return typed("fix",{number:function number(x){return x>0?floor(x):ceil(x)},"number, number":function numberNumber(x,n){return x>0?floor(x,n):ceil(x,n)}})})),createFix=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("fix",dependencies,(_ref2=>{var{typed:typed,Complex:_Complex,matrix:matrix,ceil:ceil,floor:floor,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix}=_ref2,matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_1__.O)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__.R)({typed:typed}),fixNumber=createFixNumber({typed:typed,ceil:ceil,floor:floor});return typed("fix",{number:fixNumber.signatures.number,"number, number | BigNumber":fixNumber.signatures["number,number"],Complex:function Complex(x){return new _Complex(x.re>0?Math.floor(x.re):Math.ceil(x.re),x.im>0?Math.floor(x.im):Math.ceil(x.im))},"Complex, number":function ComplexNumber(x,n){return new _Complex(x.re>0?floor(x.re,n):ceil(x.re,n),x.im>0?floor(x.im,n):ceil(x.im,n))},"Complex, BigNumber":function ComplexBigNumber(x,bn){var n=bn.toNumber();return new _Complex(x.re>0?floor(x.re,n):ceil(x.re,n),x.im>0?floor(x.im,n):ceil(x.im,n))},BigNumber:function BigNumber(x){return x.isNegative()?ceil(x):floor(x)},"BigNumber, number | BigNumber":function BigNumberNumberBigNumber(x,n){return x.isNegative()?ceil(x,n):floor(x,n)},Fraction:function Fraction(x){return x.s<0?x.ceil():x.floor()},"Fraction, number | BigNumber":function FractionNumberBigNumber(x,n){return x.s<0?ceil(x,n):floor(x,n)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__.Fh)(x,self,!0))),"Array | Matrix, number | BigNumber":typed.referToSelf((self=>(x,n)=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__.Fh)(x,(i=>self(i,n)),!0))),"number | Complex | Fraction | BigNumber, Array":typed.referToSelf((self=>(x,y)=>matAlgo14xDs(matrix(y),x,self,!0).valueOf())),"number | Complex | Fraction | BigNumber, Matrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):"dense"===y.storage()?matAlgo14xDs(y,x,self,!0):matAlgo12xSfs(y,x,self,!0)))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/floor.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return createFloor}});var decimal_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/decimal.js/decimal.mjs"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),dependencies=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],createFloorNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)("floor",["typed","config","round"],(_ref=>{var{typed:typed,config:config,round:round}=_ref;return typed("floor",{number:function number(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.RI)(x,round(x),config.epsilon)?round(x):Math.floor(x)},"number, number":function numberNumber(x,n){if((0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.RI)(x,round(x,n),config.epsilon))return round(x,n);var[number,exponent]="".concat(x,"e").split("e"),result=Math.floor(Number("".concat(number,"e").concat(Number(exponent)+n)));return[number,exponent]="".concat(result,"e").split("e"),Number("".concat(number,"e").concat(Number(exponent)-n))}})})),createFloor=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)("floor",dependencies,(_ref2=>{var{typed:typed,config:config,round:round,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix}=_ref2,matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_4__.O)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_5__.R)({typed:typed}),floorNumber=createFloorNumber({typed:typed,config:config,round:round});return typed("floor",{number:floorNumber.signatures.number,"number,number":floorNumber.signatures["number,number"],Complex:function Complex(x){return x.floor()},"Complex, number":function ComplexNumber(x,n){return x.floor(n)},"Complex, BigNumber":function ComplexBigNumber(x,n){return x.floor(n.toNumber())},BigNumber:function BigNumber(x){return(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,round(x),config.epsilon)?round(x):x.floor()},"BigNumber, BigNumber":function BigNumberBigNumber(x,n){return(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,round(x,n),config.epsilon)?round(x,n):x.toDecimalPlaces(n.toNumber(),decimal_js__WEBPACK_IMPORTED_MODULE_0__.Z.ROUND_FLOOR)},Fraction:function Fraction(x){return x.floor()},"Fraction, number":function FractionNumber(x,n){return x.floor(n)},"Fraction, BigNumber":function FractionBigNumber(x,n){return x.floor(n.toNumber())},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,self,!0))),"Array, number | BigNumber":typed.referToSelf((self=>(x,n)=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,(i=>self(i,n)),!0))),"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>matAlgo14xDs(x,y,self,!1))),"number | Complex | Fraction | BigNumber, Array":typed.referToSelf((self=>(x,y)=>matAlgo14xDs(matrix(y),x,self,!0).valueOf())),"number | Complex | Fraction | BigNumber, Matrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):"dense"===y.storage()?matAlgo14xDs(y,x,self,!0):matAlgo12xSfs(y,x,self,!0)))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/gcd.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{f:function(){return createGcd}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_mod_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/mod.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo04xSidSid.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_error_ArgumentsError_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/error/ArgumentsError.js"),dependencies=["typed","config","round","matrix","equalScalar","zeros","BigNumber","DenseMatrix","concat"],gcdTypes="number | BigNumber | Fraction | Matrix | Array",gcdManyTypesSignature="".concat(gcdTypes,", ").concat(gcdTypes,", ...").concat(gcdTypes);function is1d(array){return!array.some((element=>Array.isArray(element)))}var createGcd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("gcd",dependencies,(_ref=>{var{typed:typed,matrix:matrix,config:config,round:round,equalScalar:equalScalar,zeros:zeros,BigNumber:BigNumber,DenseMatrix:DenseMatrix,concat:concat}=_ref,mod=(0,_mod_js__WEBPACK_IMPORTED_MODULE_1__.J)({typed:typed,config:config,round:round,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix,concat:concat}),matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_2__.M)({typed:typed}),matAlgo04xSidSid=(0,_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_3__.v)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__.H)({typed:typed,DenseMatrix:DenseMatrix});return typed("gcd",{"number, number":function _gcdNumber(a,b){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.U)(a)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.U)(b))throw new Error("Parameters in function gcd must be integer numbers");var r;for(;0!==b;)r=mod(a,b),a=b,b=r;return a<0?-a:a},"BigNumber, BigNumber":function _gcdBigNumber(a,b){if(!a.isInt()||!b.isInt())throw new Error("Parameters in function gcd must be integer numbers");var zero=new BigNumber(0);for(;!b.isZero();){var r=mod(a,b);a=b,b=r}return a.lt(zero)?a.neg():a},"Fraction, Fraction":(x,y)=>x.gcd(y)},(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__.L)({typed:typed,matrix:matrix,concat:concat})({SS:matAlgo04xSidSid,DS:matAlgo01xDSid,Ss:matAlgo10xSids}),{[gcdManyTypesSignature]:typed.referToSelf((self=>(a,b,args)=>{for(var res=self(a,b),i=0;iarray=>{if(1===array.length&&Array.isArray(array[0])&&is1d(array[0]))return self(...array[0]);if(is1d(array))return self(...array);throw new _error_ArgumentsError_js__WEBPACK_IMPORTED_MODULE_6__.u("gcd() supports only 1d matrices!")})),Matrix:typed.referToSelf((self=>matrix=>self(matrix.toArray())))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/hypot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return createHypot}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),dependencies=["typed","abs","addScalar","divideScalar","multiplyScalar","sqrt","smaller","isPositive"],createHypot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("hypot",dependencies,(_ref=>{var{typed:typed,abs:abs,addScalar:addScalar,divideScalar:divideScalar,multiplyScalar:multiplyScalar,sqrt:sqrt,smaller:smaller,isPositive:isPositive}=_ref;return typed("hypot",{"... number | BigNumber":_hypot,Array:_hypot,Matrix:M=>_hypot((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(M.toArray()))});function _hypot(args){for(var result=0,largest=0,i=0;i{var{typed:typed,config:config,BigNumber:BigNumber,xgcd:xgcd,equal:equal,smaller:smaller,mod:mod,add:add,isInteger:isInteger}=_ref;return typed("invmod",{"number, number":invmod,"BigNumber, BigNumber":invmod});function invmod(a,b){if(!isInteger(a)||!isInteger(b))throw new Error("Parameters in function invmod must be integer numbers");if(a=mod(a,b),equal(b,0))throw new Error("Divisor must be non zero");var res=xgcd(a,b);res=res.valueOf();var[gcd,inv]=res;return equal(gcd,BigNumber(1))?(inv=mod(inv,b),smaller(inv,BigNumber(0))&&(inv=add(inv,b)),inv):NaN}}))},"./node_modules/mathjs/lib/esm/function/arithmetic/lcm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return createLcm}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo06xS0S0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","matrix","equalScalar","concat"],createLcm=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("lcm",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo06xS0S0=(0,_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__.X)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),lcmTypes="number | BigNumber | Fraction | Matrix | Array",lcmManySignature={};return lcmManySignature["".concat(lcmTypes,", ").concat(lcmTypes,", ...").concat(lcmTypes)]=typed.referToSelf((self=>(a,b,args)=>{for(var res=self(a,b),i=0;ix.lcm(y)},matrixAlgorithmSuite({SS:matAlgo06xS0S0,DS:matAlgo02xDS0,Ss:matAlgo11xS0s}),lcmManySignature)}))},"./node_modules/mathjs/lib/esm/function/arithmetic/log.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return createLog}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["config","typed","divideScalar","Complex"],createLog=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("log",dependencies,(_ref=>{var{typed:typed,config:config,divideScalar:divideScalar,Complex:Complex}=_ref;return typed("log",{number:function number(x){return x>=0||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.OS)(x):new Complex(x,0).log()},Complex:function Complex(x){return x.log()},BigNumber:function BigNumber(x){return!x.isNegative()||config.predictable?x.ln():new Complex(x.toNumber(),0).log()},"any, any":typed.referToSelf((self=>(x,base)=>divideScalar(self(x),self(base))))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/log10.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return createLog10}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","config","Complex"],createLog10=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("log10",dependencies,(_ref=>{var{typed:typed,config:config,Complex:_Complex}=_ref;return typed("log10",{number:function number(x){return x>=0||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.vU)(x):new _Complex(x,0).log().div(Math.LN10)},Complex:function Complex(x){return new _Complex(x).log().div(Math.LN10)},BigNumber:function BigNumber(x){return!x.isNegative()||config.predictable?x.log():new _Complex(x.toNumber(),0).log().div(Math.LN10)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/log1p.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createLog1p}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["typed","config","divideScalar","log","Complex"],createLog1p=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("log1p",dependencies,(_ref=>{var{typed:typed,config:config,divideScalar:divideScalar,log:log,Complex:Complex}=_ref;return typed("log1p",{number:function number(x){return x>=-1||config.predictable?(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.Kr)(x):_log1pComplex(new Complex(x,0))},Complex:_log1pComplex,BigNumber:function BigNumber(x){var y=x.plus(1);return!y.isNegative()||config.predictable?y.ln():_log1pComplex(new Complex(x.toNumber(),0))},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self))),"any, any":typed.referToSelf((self=>(x,base)=>divideScalar(self(x),log(base))))});function _log1pComplex(x){var xRe1p=x.re+1;return new Complex(Math.log(Math.sqrt(xRe1p*xRe1p+x.im*x.im)),Math.atan2(x.im,xRe1p))}}))},"./node_modules/mathjs/lib/esm/function/arithmetic/log2.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createLog2}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","config","Complex"],createLog2=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("log2",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex}=_ref;return typed("log2",{number:function number(x){return x>=0||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.iO)(x):_log2Complex(new Complex(x,0))},Complex:_log2Complex,BigNumber:function BigNumber(x){return!x.isNegative()||config.predictable?x.log(2):_log2Complex(new Complex(x.toNumber(),0))},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))});function _log2Complex(x){var newX=Math.sqrt(x.re*x.re+x.im*x.im);return new Complex(Math.log2?Math.log2(newX):Math.log(newX)/Math.LN2,Math.atan2(x.im,x.re)/Math.LN2)}}))},"./node_modules/mathjs/lib/esm/function/arithmetic/mod.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return createMod}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_floor_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/floor.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo05xSfSf.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix","concat"],createMod=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("mod",dependencies,(_ref=>{var{typed:typed,config:config,round:round,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix,concat:concat}=_ref,floor=(0,_floor_js__WEBPACK_IMPORTED_MODULE_1__.B)({typed:typed,config:config,round:round,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix}),matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_3__.$)({typed:typed}),matAlgo05xSfSf=(0,_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_4__.b)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_6__.O)({typed:typed,DenseMatrix:DenseMatrix});return typed("mod",{"number, number":function _modNumber(x,y){return 0===y?x:x-y*floor(x/y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return y.isZero()?x:x.sub(y.mul(floor(x.div(y))))},"Fraction, Fraction":function FractionFraction(x,y){return y.equals(0)?x:x.sub(y.mul(floor(x.div(y))))}},(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__.L)({typed:typed,matrix:matrix,concat:concat})({SS:matAlgo05xSfSf,DS:matAlgo03xDSf,SD:matAlgo02xDS0,Ss:matAlgo11xS0s,sS:matAlgo12xSfs}))}))},"./node_modules/mathjs/lib/esm/function/arithmetic/multiply.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:function(){return createMultiply}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),dependencies=["typed","matrix","addScalar","multiplyScalar","equalScalar","dot"],createMultiply=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("multiply",dependencies,(_ref=>{var{typed:typed,matrix:matrix,addScalar:addScalar,multiplyScalar:multiplyScalar,equalScalar:equalScalar,dot:dot}=_ref,matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_2__.R)({typed:typed});function _validateMatrixDimensions(size1,size2){switch(size1.length){case 1:switch(size2.length){case 1:if(size1[0]!==size2[0])throw new RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(size1[0]!==size2[0])throw new RangeError("Dimension mismatch in multiplication. Vector length ("+size1[0]+") must match Matrix rows ("+size2[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+size2.length+" dimensions)")}break;case 2:switch(size2.length){case 1:if(size1[1]!==size2[0])throw new RangeError("Dimension mismatch in multiplication. Matrix columns ("+size1[1]+") must match Vector length ("+size2[0]+")");break;case 2:if(size1[1]!==size2[0])throw new RangeError("Dimension mismatch in multiplication. Matrix A columns ("+size1[1]+") must match Matrix B rows ("+size2[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+size2.length+" dimensions)")}break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+size1.length+" dimensions)")}}function _multiplyVectorMatrix(a,b){if("dense"!==b.storage())throw new Error("Support for SparseMatrix not implemented");return function _multiplyVectorDenseMatrix(a,b){var dt,adata=a._data,asize=a._size,adt=a._datatype||a.getDataType(),bdata=b._data,bsize=b._size,bdt=b._datatype||b.getDataType(),alength=asize[0],bcolumns=bsize[1],af=addScalar,mf=multiplyScalar;adt&&bdt&&adt===bdt&&"string"==typeof adt&&"mixed"!==adt&&(dt=adt,af=typed.find(addScalar,[dt,dt]),mf=typed.find(multiplyScalar,[dt,dt]));for(var c=[],j=0;jkb0)for(var last=0,i=0;i(x,y)=>{_validateMatrixDimensions((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.aJ)(x),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.aJ)(y));var m=selfMM(matrix(x),matrix(y));return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_4__.SW)(m)?m.valueOf():m})),"Matrix, Matrix":function MatrixMatrix(x,y){var xsize=x.size(),ysize=y.size();return _validateMatrixDimensions(xsize,ysize),1===xsize.length?1===ysize.length?function _multiplyVectorVector(a,b,n){if(0===n)throw new Error("Cannot multiply two empty vectors");return dot(a,b)}(x,y,xsize[0]):_multiplyVectorMatrix(x,y):1===ysize.length?_multiplyMatrixVector(x,y):_multiplyMatrixMatrix(x,y)},"Matrix, Array":typed.referTo("Matrix,Matrix",(selfMM=>(x,y)=>selfMM(x,matrix(y)))),"Array, Matrix":typed.referToSelf((self=>(x,y)=>self(matrix(x,y.storage()),y))),"SparseMatrix, any":function SparseMatrixAny(x,y){return matAlgo11xS0s(x,y,multiplyScalar,!1)},"DenseMatrix, any":function DenseMatrixAny(x,y){return matAlgo14xDs(x,y,multiplyScalar,!1)},"any, SparseMatrix":function anySparseMatrix(x,y){return matAlgo11xS0s(y,x,multiplyScalar,!0)},"any, DenseMatrix":function anyDenseMatrix(x,y){return matAlgo14xDs(y,x,multiplyScalar,!0)},"Array, any":function ArrayAny(x,y){return matAlgo14xDs(matrix(x),y,multiplyScalar,!1).valueOf()},"any, Array":function anyArray(x,y){return matAlgo14xDs(matrix(y),x,multiplyScalar,!0).valueOf()},"any, any":multiplyScalar,"any, any, ...any":typed.referToSelf((self=>(x,y,rest)=>{for(var result=self(x,y),i=0;i{var{typed:typed}=_ref;return typed("multiplyScalar",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.G6,"Complex, Complex":function ComplexComplex(x,y){return x.mul(y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.times(y)},"Fraction, Fraction":function FractionFraction(x,y){return x.mul(y)},"number | Fraction | BigNumber | Complex, Unit":(x,y)=>y.multiply(x),"Unit, number | Fraction | BigNumber | Complex | Unit":(x,y)=>x.multiply(y)})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/norm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return createNorm}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","abs","add","pow","conj","sqrt","multiply","equalScalar","larger","smaller","matrix","ctranspose","eigs"],createNorm=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("norm",dependencies,(_ref=>{var{typed:typed,abs:abs,add:add,pow:pow,conj:conj,sqrt:sqrt,multiply:multiply,equalScalar:equalScalar,larger:larger,smaller:smaller,matrix:matrix,ctranspose:ctranspose,eigs:eigs}=_ref;return typed("norm",{number:Math.abs,Complex:function Complex(x){return x.abs()},BigNumber:function BigNumber(x){return x.abs()},boolean:function boolean(x){return Math.abs(x)},Array:function Array(x){return _norm(matrix(x),2)},Matrix:function Matrix(x){return _norm(x,2)},"Array, number | BigNumber | string":function ArrayNumberBigNumberString(x,p){return _norm(matrix(x),p)},"Matrix, number | BigNumber | string":function MatrixNumberBigNumberString(x,p){return _norm(x,p)}});function _vectorNorm(x,p){if(p===Number.POSITIVE_INFINITY||"inf"===p)return function _vectorNormPlusInfinity(x){var pinf=0;return x.forEach((function(value){var v=abs(value);larger(v,pinf)&&(pinf=v)}),!0),pinf}(x);if(p===Number.NEGATIVE_INFINITY||"-inf"===p)return function _vectorNormMinusInfinity(x){var ninf;return x.forEach((function(value){var v=abs(value);ninf&&!smaller(v,ninf)||(ninf=v)}),!0),ninf||0}(x);if("fro"===p)return _norm(x,2);if("number"==typeof p&&!isNaN(p)){if(!equalScalar(p,0)){var n=0;return x.forEach((function(value){n=add(pow(abs(value),p),n)}),!0),pow(n,1/p)}return Number.POSITIVE_INFINITY}throw new Error("Unsupported parameter value")}function _matrixNorm(x,p){if(1===p)return function _matrixNormOne(x){var c=[],maxc=0;return x.forEach((function(value,index){var j=index[1],cj=add(c[j]||0,abs(value));larger(cj,maxc)&&(maxc=cj),c[j]=cj}),!0),maxc}(x);if(p===Number.POSITIVE_INFINITY||"inf"===p)return function _matrixNormInfinity(x){var r=[],maxr=0;return x.forEach((function(value,index){var i=index[0],ri=add(r[i]||0,abs(value));larger(ri,maxr)&&(maxr=ri),r[i]=ri}),!0),maxr}(x);if("fro"===p)return function _matrixNormFrobenius(x){var fro=0;return x.forEach((function(value,index){fro=add(fro,multiply(value,conj(value)))})),abs(sqrt(fro))}(x);if(2===p)return function _matrixNormTwo(x){var sizeX=x.size();if(sizeX[0]!==sizeX[1])throw new RangeError("Invalid matrix dimensions");var tx=ctranspose(x),squaredX=multiply(tx,x),eigenVals=eigs(squaredX).values.toArray(),rho=eigenVals[eigenVals.length-1];return abs(sqrt(rho))}(x);throw new Error("Unsupported parameter value "+p)}function _norm(x,p){var sizeX=x.size();if(1===sizeX.length)return _vectorNorm(x,p);if(2===sizeX.length){if(sizeX[0]&&sizeX[1])return _matrixNorm(x,p);throw new RangeError("Invalid matrix dimensions")}}}))},"./node_modules/mathjs/lib/esm/function/arithmetic/nthRoot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{l:function(){return createNthRoot}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo06xS0S0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),name="nthRoot",dependencies=["typed","matrix","equalScalar","BigNumber","concat"],createNthRoot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,BigNumber:_BigNumber,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo06xS0S0=(0,_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_3__.X)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__.e)({typed:typed,equalScalar:equalScalar}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__.L)({typed:typed,matrix:matrix,concat:concat});function complexErr(){throw new Error("Complex number not supported in function nthRoot. Use nthRoots instead.")}return typed(name,{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_6__.YS,"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_6__.YS,BigNumber:x=>_bigNthRoot(x,new _BigNumber(2)),"BigNumber, BigNumber":_bigNthRoot,Complex:complexErr,"Complex, number":complexErr,Array:typed.referTo("DenseMatrix,number",(selfDn=>x=>selfDn(matrix(x),2).valueOf())),DenseMatrix:typed.referTo("DenseMatrix,number",(selfDn=>x=>selfDn(x,2))),SparseMatrix:typed.referTo("SparseMatrix,number",(selfSn=>x=>selfSn(x,2))),"SparseMatrix, SparseMatrix":typed.referToSelf((self=>(x,y)=>{if(1===y.density())return matAlgo06xS0S0(x,y,self);throw new Error("Root must be non-zero")})),"DenseMatrix, SparseMatrix":typed.referToSelf((self=>(x,y)=>{if(1===y.density())return matAlgo01xDSid(x,y,self,!1);throw new Error("Root must be non-zero")})),"Array, SparseMatrix":typed.referTo("DenseMatrix,SparseMatrix",(selfDS=>(x,y)=>selfDS(matrix(x),y))),"number | BigNumber, SparseMatrix":typed.referToSelf((self=>(x,y)=>{if(1===y.density())return matAlgo11xS0s(y,x,self,!0);throw new Error("Root must be non-zero")}))},matrixAlgorithmSuite({scalar:"number | BigNumber",SD:matAlgo02xDS0,Ss:matAlgo11xS0s,sS:!1}));function _bigNthRoot(a,root){var precision=_BigNumber.precision,Big=_BigNumber.clone({precision:precision+2}),zero=new _BigNumber(0),one=new Big(1),inv=root.isNegative();if(inv&&(root=root.neg()),root.isZero())throw new Error("Root must be non-zero");if(a.isNegative()&&!root.abs().mod(2).equals(1))throw new Error("Root must be odd when a is negative.");if(a.isZero())return inv?new Big(1/0):0;if(!a.isFinite())return inv?zero:a;var x=a.abs().pow(one.div(root));return x=a.isNeg()?x.neg():x,new _BigNumber((inv?one.div(x):x).toPrecision(precision))}}))},"./node_modules/mathjs/lib/esm/function/arithmetic/nthRoots.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{f:function(){return createNthRoots}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["config","typed","divideScalar","Complex"],createNthRoots=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("nthRoots",dependencies,(_ref=>{var{typed:typed,config:config,divideScalar:divideScalar,Complex:Complex}=_ref,_calculateExactResult=[function realPos(val){return new Complex(val,0)},function imagPos(val){return new Complex(0,val)},function realNeg(val){return new Complex(-val,0)},function imagNeg(val){return new Complex(0,-val)}];function _nthComplexRoots(a,root){if(root<0)throw new Error("Root must be greater than zero");if(0===root)throw new Error("Root must be non-zero");if(root%1!=0)throw new Error("Root must be an integer");if(0===a||0===a.abs())return[new Complex(0,0)];var offset,aIsNumeric="number"==typeof a;(aIsNumeric||0===a.re||0===a.im)&&(offset=aIsNumeric?2*+(a<0):0===a.im?2*+(a.re<0):2*+(a.im<0)+1);for(var arg=a.arg(),abs=a.abs(),roots=[],r=Math.pow(abs,1/root),k=0;k{var{typed:typed,config:config,identity:identity,multiply:multiply,matrix:matrix,inv:inv,number:number,fraction:fraction,Complex:Complex}=_ref;return typed("pow",{"number, number":_pow,"Complex, Complex":function ComplexComplex(x,y){return x.pow(y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return y.isInteger()||x>=0||config.predictable?x.pow(y):new Complex(x.toNumber(),0).pow(y.toNumber(),0)},"Fraction, Fraction":function FractionFraction(x,y){var result=x.pow(y);if(null!=result)return result;if(config.predictable)throw new Error("Result of pow is non-rational and cannot be expressed as a fraction");return _pow(x.valueOf(),y.valueOf())},"Array, number":_powArray,"Array, BigNumber":function ArrayBigNumber(x,y){return _powArray(x,y.toNumber())},"Matrix, number":_powMatrix,"Matrix, BigNumber":function MatrixBigNumber(x,y){return _powMatrix(x,y.toNumber())},"Unit, number | BigNumber":function UnitNumberBigNumber(x,y){return x.pow(y)}});function _pow(x,y){if(config.predictable&&!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(y)&&x<0)try{var yFrac=fraction(y),yNum=number(yFrac);if((y===yNum||Math.abs((y-yNum)/y)<1e-14)&&yFrac.d%2==1)return(yFrac.n%2==0?1:-1)*Math.pow(-x,y)}catch(ex){}return config.predictable&&(x<-1&&y===1/0||x>-1&&x<0&&y===-1/0)?NaN:(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(y)||x>=0||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__.Ue)(x,y):x*x<1&&y===1/0||x*x>1&&y===-1/0?0:new Complex(x,0).pow(y,0)}function _powArray(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(y))throw new TypeError("For A^b, b must be an integer (value is "+y+")");var s=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.aJ)(x);if(2!==s.length)throw new Error("For A^b, A must be 2 dimensional (A has "+s.length+" dimensions)");if(s[0]!==s[1])throw new Error("For A^b, A must be square (size is "+s[0]+"x"+s[1]+")");if(y<0)try{return _powArray(inv(x),-y)}catch(error){if("Cannot calculate inverse, determinant is zero"===error.message)throw new TypeError("For A^b, when A is not invertible, b must be a positive integer (value is "+y+")");throw error}for(var res=identity(s[0]).valueOf(),px=x;y>=1;)1==(1&y)&&(res=multiply(px,res)),y>>=1,px=multiply(px,px);return res}function _powMatrix(x,y){return matrix(_powArray(x.valueOf(),y))}}))},"./node_modules/mathjs/lib/esm/function/arithmetic/round.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{V:function(){return createRound}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),NO_INT="Number of decimals in function round must be an integer",dependencies=["typed","config","matrix","equalScalar","zeros","BigNumber","DenseMatrix"],createRound=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("round",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,equalScalar:equalScalar,zeros:zeros,BigNumber:_BigNumber,DenseMatrix:DenseMatrix}=_ref,matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_1__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_2__.O)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_3__.R)({typed:typed});function toExponent(epsilon){return Math.abs((0,_utils_number_js__WEBPACK_IMPORTED_MODULE_4__.wV)(epsilon).exponent)}return typed("round",{number:function number(x){var xEpsilon=(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.QV)(x,toExponent(config.epsilon)),xSelected=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_4__.RI)(x,xEpsilon,config.epsilon)?xEpsilon:x;return(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.QV)(xSelected)},"number, number":function numberNumber(x,n){var epsilonExponent=toExponent(config.epsilon);if(n>=epsilonExponent)return(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.QV)(x,n);var xEpsilon=(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.QV)(x,epsilonExponent),xSelected=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_4__.RI)(x,xEpsilon,config.epsilon)?xEpsilon:x;return(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.QV)(xSelected,n)},"number, BigNumber":function numberBigNumber(x,n){if(!n.isInteger())throw new TypeError(NO_INT);return new _BigNumber(x).toDecimalPlaces(n.toNumber())},Complex:function Complex(x){return x.round()},"Complex, number":function ComplexNumber(x,n){if(n%1)throw new TypeError(NO_INT);return x.round(n)},"Complex, BigNumber":function ComplexBigNumber(x,n){if(!n.isInteger())throw new TypeError(NO_INT);var _n=n.toNumber();return x.round(_n)},BigNumber:function BigNumber(x){var xEpsilon=new _BigNumber(x).toDecimalPlaces(toExponent(config.epsilon));return((0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,xEpsilon,config.epsilon)?xEpsilon:x).toDecimalPlaces(0)},"BigNumber, BigNumber":function BigNumberBigNumber(x,n){if(!n.isInteger())throw new TypeError(NO_INT);var epsilonExponent=toExponent(config.epsilon);if(n>=epsilonExponent)return x.toDecimalPlaces(n.toNumber());var xEpsilon=x.toDecimalPlaces(epsilonExponent);return((0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,xEpsilon,config.epsilon)?xEpsilon:x).toDecimalPlaces(n.toNumber())},Fraction:function Fraction(x){return x.round()},"Fraction, number":function FractionNumber(x,n){if(n%1)throw new TypeError(NO_INT);return x.round(n)},"Fraction, BigNumber":function FractionBigNumber(x,n){if(!n.isInteger())throw new TypeError(NO_INT);return x.round(n.toNumber())},"Unit, number, Unit":typed.referToSelf((self=>function(x,n,unit){var valueless=x.toNumeric(unit);return unit.multiply(self(valueless,n))})),"Unit, BigNumber, Unit":typed.referToSelf((self=>(x,n,unit)=>self(x,n.toNumber(),unit))),"Unit, Unit":typed.referToSelf((self=>(x,unit)=>self(x,0,unit))),"Array | Matrix, number, Unit":typed.referToSelf((self=>(x,n,unit)=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,(value=>self(value,n,unit)),!0))),"Array | Matrix, BigNumber, Unit":typed.referToSelf((self=>(x,n,unit)=>self(x,n.toNumber(),unit))),"Array | Matrix, Unit":typed.referToSelf((self=>(x,unit)=>self(x,0,unit))),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_7__.Fh)(x,self,!0))),"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,n)=>matAlgo11xS0s(x,n,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,n)=>matAlgo14xDs(x,n,self,!1))),"Array, number | BigNumber":typed.referToSelf((self=>(x,n)=>matAlgo14xDs(matrix(x),n,self,!1).valueOf())),"number | Complex | BigNumber | Fraction, SparseMatrix":typed.referToSelf((self=>(x,n)=>equalScalar(x,0)?zeros(n.size(),n.storage()):matAlgo12xSfs(n,x,self,!0))),"number | Complex | BigNumber | Fraction, DenseMatrix":typed.referToSelf((self=>(x,n)=>equalScalar(x,0)?zeros(n.size(),n.storage()):matAlgo14xDs(n,x,self,!0))),"number | Complex | BigNumber | Fraction, Array":typed.referToSelf((self=>(x,n)=>matAlgo14xDs(matrix(n),x,self,!0).valueOf()))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/sign.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return createSign}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","BigNumber","Fraction","complex"],createSign=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sign",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber,complex:complex,Fraction:_Fraction}=_ref;return typed("sign",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.$y,Complex:function Complex(x){return 0===x.im?complex((0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.$y)(x.re)):x.sign()},BigNumber:function BigNumber(x){return new _BigNumber(x.cmp(0))},Fraction:function Fraction(x){return new _Fraction(x.s,1)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self,!0))),Unit:typed.referToSelf((self=>x=>{if(!x._isDerived()&&0!==x.units[0].unit.offset)throw new TypeError("sign is ambiguous for units with offset");return typed.find(self,x.valueType())(x.value)}))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/sqrt.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createSqrt}});var dependencies=["config","typed","Complex"],createSqrt=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("sqrt",dependencies,(_ref=>{var{config:config,typed:typed,Complex:Complex}=_ref;return typed("sqrt",{number:_sqrtNumber,Complex:function Complex(x){return x.sqrt()},BigNumber:function BigNumber(x){return!x.isNegative()||config.predictable?x.sqrt():_sqrtNumber(x.toNumber())},Unit:function Unit(x){return x.pow(.5)}});function _sqrtNumber(x){return isNaN(x)?NaN:x>=0||config.predictable?Math.sqrt(x):new Complex(x,0).sqrt()}}))},"./node_modules/mathjs/lib/esm/function/arithmetic/square.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{y:function(){return createSquare}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed"],createSquare=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("square",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("square",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__._$,Complex:function Complex(x){return x.mul(x)},BigNumber:function BigNumber(x){return x.times(x)},Fraction:function Fraction(x){return x.mul(x)},Unit:function Unit(x){return x.pow(2)}})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/subtract.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:function(){return createSubtract}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo05xSfSf.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","equalScalar","subtractScalar","unaryMinus","DenseMatrix","concat"],createSubtract=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("subtract",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,subtractScalar:subtractScalar,unaryMinus:unaryMinus,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__.$)({typed:typed}),matAlgo05xSfSf=(0,_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_3__.b)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__.H)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__.O)({typed:typed,DenseMatrix:DenseMatrix});return typed("subtract",{"any, any":subtractScalar},(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__.L)({typed:typed,matrix:matrix,concat:concat})({elop:subtractScalar,SS:matAlgo05xSfSf,DS:matAlgo01xDSid,SD:matAlgo03xDSf,Ss:matAlgo12xSfs,sS:matAlgo10xSids}))}))},"./node_modules/mathjs/lib/esm/function/arithmetic/subtractScalar.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{A:function(){return createSubtractScalar}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),name="subtractScalar",dependencies=["typed"],createSubtractScalar=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed}=_ref;return typed(name,{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.hz,"Complex, Complex":function ComplexComplex(x,y){return x.sub(y)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.minus(y)},"Fraction, Fraction":function FractionFraction(x,y){return x.sub(y)},"Unit, Unit":typed.referToSelf((self=>(x,y)=>{if(null===x.value||void 0===x.value)throw new Error("Parameter x contains a unit with undefined value");if(null===y.value||void 0===y.value)throw new Error("Parameter y contains a unit with undefined value");if(!x.equalBase(y))throw new Error("Units do not match");var res=x.clone();return res.value=typed.find(self,[res.valueType(),y.valueType()])(res.value,y.value),res.fixPrefix=!1,res}))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/unaryMinus.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return createUnaryMinus}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed"],createUnaryMinus=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("unaryMinus",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("unaryMinus",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.GC,"Complex | BigNumber | Fraction":x=>x.neg(),Unit:typed.referToSelf((self=>x=>{var res=x.clone();return res.value=typed.find(self,res.valueType())(x.value),res})),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self,!0)))})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/unaryPlus.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return createUnaryPlus}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","config","BigNumber"],createUnaryPlus=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("unaryPlus",dependencies,(_ref=>{var{typed:typed,config:config,BigNumber:BigNumber}=_ref;return typed("unaryPlus",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.iU,Complex:function Complex(x){return x},BigNumber:function BigNumber(x){return x},Fraction:function Fraction(x){return x},Unit:function Unit(x){return x.clone()},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self,!0))),"boolean | string":function booleanString(x){return"BigNumber"===config.number?new BigNumber(+x):+x}})}))},"./node_modules/mathjs/lib/esm/function/arithmetic/xgcd.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:function(){return createXgcd}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/arithmetic.js"),dependencies=["typed","config","matrix","BigNumber"],createXgcd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("xgcd",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,BigNumber:BigNumber}=_ref;return typed("xgcd",{"number, number":function numberNumber(a,b){var res=(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.y9)(a,b);return"Array"===config.matrix?res:matrix(res)},"BigNumber, BigNumber":function _xgcdBigNumber(a,b){var t,q,r,res,zero=new BigNumber(0),one=new BigNumber(1),x=zero,lastx=one,y=one,lasty=zero;if(!a.isInt()||!b.isInt())throw new Error("Parameters in function xgcd must be integer numbers");for(;!b.isZero();)q=a.div(b).floor(),r=a.mod(b),t=x,x=lastx.minus(q.times(x)),lastx=t,t=y,y=lasty.minus(q.times(y)),lasty=t,a=b,b=r;res=a.lt(zero)?[a.neg(),lastx.neg(),lasty.neg()]:[a,a.isZero()?0:lastx,lasty];return"Array"===config.matrix?res:matrix(res)}})}))},"./node_modules/mathjs/lib/esm/function/bitwise/bitAnd.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return createBitAnd}});var _utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo06xS0S0.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/bitwise.js"),dependencies=["typed","matrix","equalScalar","concat"],createBitAnd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bitAnd",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo06xS0S0=(0,_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__.X)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("bitAnd",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.qC,"BigNumber, BigNumber":_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__.hi},matrixAlgorithmSuite({SS:matAlgo06xS0S0,DS:matAlgo02xDS0,Ss:matAlgo11xS0s}))}))},"./node_modules/mathjs/lib/esm/function/bitwise/bitNot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{e:function(){return createBitNot}});var _utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/bitwise.js"),dependencies=["typed"],createBitNot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bitNot",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("bitNot",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.NA,BigNumber:_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_2__.Xc,"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/bitwise/bitOr.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j:function(){return createBitOr}});var _utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo04xSidSid.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/bitwise.js"),dependencies=["typed","matrix","equalScalar","DenseMatrix","concat"],createBitOr=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bitOr",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo04xSidSid=(0,_type_matrix_utils_matAlgo04xSidSid_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_3__.H)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("bitOr",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.LE,"BigNumber, BigNumber":_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__.Vq},matrixAlgorithmSuite({SS:matAlgo04xSidSid,DS:matAlgo01xDSid,Ss:matAlgo10xSids}))}))},"./node_modules/mathjs/lib/esm/function/bitwise/bitXor.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{g:function(){return createBitXor}});var _utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/bitwise.js"),dependencies=["typed","matrix","DenseMatrix","concat"],createBitXor=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bitXor",dependencies,(_ref=>{var{typed:typed,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("bitXor",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.xS,"BigNumber, BigNumber":_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_6__.nN},matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))}))},"./node_modules/mathjs/lib/esm/function/bitwise/leftShift.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return createLeftShift}});var _type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo08xS0Sid.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/useMatrixForArrayScalar.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/bitwise.js"),_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),dependencies=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],createLeftShift=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("leftShift",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo08xS0Sid=(0,_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__.i)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__.H)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__.R)({typed:typed}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__.L)({typed:typed,matrix:matrix,concat:concat}),useMatrixForArrayScalar=(0,_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__.H)({typed:typed,matrix:matrix});return typed("leftShift",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__.ZG,"BigNumber, BigNumber":_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_10__.Mw,"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo14xDs(x,y,self,!1))),"number | BigNumber, SparseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo10xSids(y,x,self,!0))),"number | BigNumber, DenseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo14xDs(y,x,self,!0)))},useMatrixForArrayScalar,matrixAlgorithmSuite({SS:matAlgo08xS0Sid,DS:matAlgo01xDSid,SD:matAlgo02xDS0}))}))},"./node_modules/mathjs/lib/esm/function/bitwise/rightArithShift.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:function(){return createRightArithShift}});var _utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/bitwise.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo08xS0Sid.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/useMatrixForArrayScalar.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/bitwise.js"),name="rightArithShift",dependencies=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],createRightArithShift=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo08xS0Sid=(0,_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__.i)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__.H)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__.R)({typed:typed}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__.L)({typed:typed,matrix:matrix,concat:concat}),useMatrixForArrayScalar=(0,_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__.H)({typed:typed,matrix:matrix});return typed(name,{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__.Lz,"BigNumber, BigNumber":_utils_bignumber_bitwise_js__WEBPACK_IMPORTED_MODULE_10__.ti,"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo14xDs(x,y,self,!1))),"number | BigNumber, SparseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo10xSids(y,x,self,!0))),"number | BigNumber, DenseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo14xDs(y,x,self,!0)))},useMatrixForArrayScalar,matrixAlgorithmSuite({SS:matAlgo08xS0Sid,DS:matAlgo01xDSid,SD:matAlgo02xDS0}))}))},"./node_modules/mathjs/lib/esm/function/bitwise/rightLogShift.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createRightLogShift}});var _type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js"),_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo10xSids.js"),_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo08xS0Sid.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/bitwise.js"),_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/useMatrixForArrayScalar.js"),name="rightLogShift",dependencies=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],createRightLogShift=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo01xDSid=(0,_type_matrix_utils_matAlgo01xDSid_js__WEBPACK_IMPORTED_MODULE_1__.M)({typed:typed}),matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_2__.v)({typed:typed,equalScalar:equalScalar}),matAlgo08xS0Sid=(0,_type_matrix_utils_matAlgo08xS0Sid_js__WEBPACK_IMPORTED_MODULE_3__.i)({typed:typed,equalScalar:equalScalar}),matAlgo10xSids=(0,_type_matrix_utils_matAlgo10xSids_js__WEBPACK_IMPORTED_MODULE_4__.H)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_5__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_6__.R)({typed:typed}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_7__.L)({typed:typed,matrix:matrix,concat:concat}),useMatrixForArrayScalar=(0,_useMatrixForArrayScalar_js__WEBPACK_IMPORTED_MODULE_8__.H)({typed:typed,matrix:matrix});return typed(name,{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_9__.ji,"SparseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, number | BigNumber":typed.referToSelf((self=>(x,y)=>equalScalar(y,0)?x.clone():matAlgo14xDs(x,y,self,!1))),"number | BigNumber, SparseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo10xSids(y,x,self,!0))),"number | BigNumber, DenseMatrix":typed.referToSelf((self=>(x,y)=>equalScalar(x,0)?zeros(y.size(),y.storage()):matAlgo14xDs(y,x,self,!0)))},useMatrixForArrayScalar,matrixAlgorithmSuite({SS:matAlgo08xS0Sid,DS:matAlgo01xDSid,SD:matAlgo02xDS0}))}))},"./node_modules/mathjs/lib/esm/function/bitwise/useMatrixForArrayScalar.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return createUseMatrixForArrayScalar}});var createUseMatrixForArrayScalar=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("useMatrixForArrayScalar",["typed","matrix"],(_ref=>{var{typed:typed,matrix:matrix}=_ref;return{"Array, number":typed.referTo("DenseMatrix, number",(selfDn=>(x,y)=>selfDn(matrix(x),y).valueOf())),"Array, BigNumber":typed.referTo("DenseMatrix, BigNumber",(selfDB=>(x,y)=>selfDB(matrix(x),y).valueOf())),"number, Array":typed.referTo("number, DenseMatrix",(selfnD=>(x,y)=>selfnD(x,matrix(y)).valueOf())),"BigNumber, Array":typed.referTo("BigNumber, DenseMatrix",(selfBD=>(x,y)=>selfBD(x,matrix(y)).valueOf()))}}))},"./node_modules/mathjs/lib/esm/function/combinatorics/bellNumbers.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createBellNumbers}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","addScalar","isNegative","isInteger","stirlingS2"],createBellNumbers=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bellNumbers",dependencies,(_ref=>{var{typed:typed,addScalar:addScalar,isNegative:isNegative,isInteger:isInteger,stirlingS2:stirlingS2}=_ref;return typed("bellNumbers",{"number | BigNumber":function numberBigNumber(n){if(!isInteger(n)||isNegative(n))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var result=0,i=0;i<=n;i++)result=addScalar(result,stirlingS2(n,i));return result}})}))},"./node_modules/mathjs/lib/esm/function/combinatorics/catalan.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return createCatalan}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],createCatalan=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("catalan",dependencies,(_ref=>{var{typed:typed,addScalar:addScalar,divideScalar:divideScalar,multiplyScalar:multiplyScalar,combinations:combinations,isNegative:isNegative,isInteger:isInteger}=_ref;return typed("catalan",{"number | BigNumber":function numberBigNumber(n){if(!isInteger(n)||isNegative(n))throw new TypeError("Non-negative integer value expected in function catalan");return divideScalar(combinations(multiplyScalar(n,2),n),addScalar(n,1))}})}))},"./node_modules/mathjs/lib/esm/function/combinatorics/composition.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createComposition}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],createComposition=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("composition",dependencies,(_ref=>{var{typed:typed,addScalar:addScalar,combinations:combinations,isPositive:isPositive,isNegative:isNegative,isInteger:isInteger,larger:larger}=_ref;return typed("composition",{"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(n,k){if(!(isInteger(n)&&isPositive(n)&&isInteger(k)&&isPositive(k)))throw new TypeError("Positive integer value expected in function composition");if(larger(k,n))throw new TypeError("k must be less than or equal to n in function composition");return combinations(addScalar(n,-1),addScalar(k,-1))}})}))},"./node_modules/mathjs/lib/esm/function/combinatorics/stirlingS2.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createStirlingS2}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),dependencies=["typed","addScalar","subtractScalar","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","number","?bignumber","larger"],createStirlingS2=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("stirlingS2",dependencies,(_ref=>{var{typed:typed,addScalar:addScalar,subtractScalar:subtractScalar,multiplyScalar:multiplyScalar,divideScalar:divideScalar,pow:pow,factorial:factorial,combinations:combinations,isNegative:isNegative,isInteger:isInteger,number:number,bignumber:bignumber,larger:larger}=_ref,smallCache=[],bigCache=[];return typed("stirlingS2",{"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(n,k){if(!isInteger(n)||isNegative(n)||!isInteger(k)||isNegative(k))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(larger(k,n))throw new TypeError("k must be less than or equal to n in function stirlingS2");var big=!((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(n)&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(k)),cache=big?bigCache:smallCache,make=big?bignumber:number,nn=number(n),nk=number(k);if(cache[nn]&&cache[nn].length>nk)return cache[nn][nk];for(var m=0;m<=nn;++m)if(cache[m]||(cache[m]=[make(0===m?1:0)]),0!==m)for(var row=cache[m],prev=cache[m-1],i=row.length;i<=m&&i<=nk;++i)row[i]=i===m?1:addScalar(multiplyScalar(make(i),prev[i]),prev[i-1]);return cache[nn][nk]}})}))},"./node_modules/mathjs/lib/esm/function/complex/arg.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return createArg}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"],createArg=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("arg",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("arg",{number:function number(x){return Math.atan2(0,x)},BigNumber:function BigNumber(x){return x.constructor.atan2(0,x)},Complex:function Complex(x){return x.arg()},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/complex/conj.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return createConj}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"],createConj=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("conj",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("conj",{"number | BigNumber | Fraction":x=>x,Complex:x=>x.conjugate(),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/complex/im.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{R:function(){return createIm}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"],createIm=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("im",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("im",{number:()=>0,"BigNumber | Fraction":x=>x.mul(0),Complex:x=>x.im,"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/complex/re.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{m:function(){return createRe}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"],createRe=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("re",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("re",{"number | BigNumber | Fraction":x=>x,Complex:x=>x.re,"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/geometry/distance.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createDistance}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","addScalar","subtractScalar","divideScalar","multiplyScalar","deepEqual","sqrt","abs"],createDistance=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("distance",dependencies,(_ref=>{var{typed:typed,addScalar:addScalar,subtractScalar:subtractScalar,multiplyScalar:multiplyScalar,divideScalar:divideScalar,deepEqual:deepEqual,sqrt:sqrt,abs:abs}=_ref;return typed("distance",{"Array, Array, Array":function ArrayArrayArray(x,y,z){if(2===x.length&&2===y.length&&2===z.length){if(!_2d(x))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!_2d(y))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!_2d(z))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(deepEqual(y,z))throw new TypeError("LinePoint1 should not be same with LinePoint2");var xCoeff=subtractScalar(z[1],y[1]),yCoeff=subtractScalar(y[0],z[0]),constant=subtractScalar(multiplyScalar(z[0],y[1]),multiplyScalar(y[0],z[1]));return _distancePointLine2D(x[0],x[1],xCoeff,yCoeff,constant)}throw new TypeError("Invalid Arguments: Try again")},"Object, Object, Object":function ObjectObjectObject(x,y,z){if(2===Object.keys(x).length&&2===Object.keys(y).length&&2===Object.keys(z).length){if(!_2d(x))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!_2d(y))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!_2d(z))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if(deepEqual(_objectToArray(y),_objectToArray(z)))throw new TypeError("LinePoint1 should not be same with LinePoint2");if("pointX"in x&&"pointY"in x&&"lineOnePtX"in y&&"lineOnePtY"in y&&"lineTwoPtX"in z&&"lineTwoPtY"in z){var xCoeff=subtractScalar(z.lineTwoPtY,y.lineOnePtY),yCoeff=subtractScalar(y.lineOnePtX,z.lineTwoPtX),constant=subtractScalar(multiplyScalar(z.lineTwoPtX,y.lineOnePtY),multiplyScalar(y.lineOnePtX,z.lineTwoPtY));return _distancePointLine2D(x.pointX,x.pointY,xCoeff,yCoeff,constant)}throw new TypeError("Key names do not match")}throw new TypeError("Invalid Arguments: Try again")},"Array, Array":function ArrayArray(x,y){if(2===x.length&&3===y.length){if(!_2d(x))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!_3d(y))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return _distancePointLine2D(x[0],x[1],y[0],y[1],y[2])}if(3===x.length&&6===y.length){if(!_3d(x))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!_parametricLine(y))throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument");return _distancePointLine3D(x[0],x[1],x[2],y[0],y[1],y[2],y[3],y[4],y[5])}if(x.length===y.length&&x.length>0){if(!_containsOnlyNumbers(x))throw new TypeError("All values of an array should be numbers or BigNumbers");if(!_containsOnlyNumbers(y))throw new TypeError("All values of an array should be numbers or BigNumbers");return _euclideanDistance(x,y)}throw new TypeError("Invalid Arguments: Try again")},"Object, Object":function ObjectObject(x,y){if(2===Object.keys(x).length&&3===Object.keys(y).length){if(!_2d(x))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!_3d(y))throw new TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if("pointX"in x&&"pointY"in x&&"xCoeffLine"in y&&"yCoeffLine"in y&&"constant"in y)return _distancePointLine2D(x.pointX,x.pointY,y.xCoeffLine,y.yCoeffLine,y.constant);throw new TypeError("Key names do not match")}if(3===Object.keys(x).length&&6===Object.keys(y).length){if(!_3d(x))throw new TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!_parametricLine(y))throw new TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if("pointX"in x&&"pointY"in x&&"x0"in y&&"y0"in y&&"z0"in y&&"a"in y&&"b"in y&&"c"in y)return _distancePointLine3D(x.pointX,x.pointY,x.pointZ,y.x0,y.y0,y.z0,y.a,y.b,y.c);throw new TypeError("Key names do not match")}if(2===Object.keys(x).length&&2===Object.keys(y).length){if(!_2d(x))throw new TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!_2d(y))throw new TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if("pointOneX"in x&&"pointOneY"in x&&"pointTwoX"in y&&"pointTwoY"in y)return _euclideanDistance([x.pointOneX,x.pointOneY],[y.pointTwoX,y.pointTwoY]);throw new TypeError("Key names do not match")}if(3===Object.keys(x).length&&3===Object.keys(y).length){if(!_3d(x))throw new TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!_3d(y))throw new TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if("pointOneX"in x&&"pointOneY"in x&&"pointOneZ"in x&&"pointTwoX"in y&&"pointTwoY"in y&&"pointTwoZ"in y)return _euclideanDistance([x.pointOneX,x.pointOneY,x.pointOneZ],[y.pointTwoX,y.pointTwoY,y.pointTwoZ]);throw new TypeError("Key names do not match")}throw new TypeError("Invalid Arguments: Try again")},Array:function Array(arr){if(!function _pairwise(a){if(2===a[0].length&&_isNumber(a[0][0])&&_isNumber(a[0][1])){if(a.some((aI=>2!==aI.length||!_isNumber(aI[0])||!_isNumber(aI[1]))))return!1}else{if(!(3===a[0].length&&_isNumber(a[0][0])&&_isNumber(a[0][1])&&_isNumber(a[0][2])))return!1;if(a.some((aI=>3!==aI.length||!_isNumber(aI[0])||!_isNumber(aI[1])||!_isNumber(aI[2]))))return!1}return!0}(arr))throw new TypeError("Incorrect array format entered for pairwise distance calculation");return function _distancePairwise(a){for(var result=[],pointA=[],pointB=[],i=0;i{var{typed:typed,config:config,abs:abs,add:add,addScalar:addScalar,matrix:matrix,multiply:multiply,multiplyScalar:multiplyScalar,divideScalar:divideScalar,subtract:subtract,smaller:smaller,equalScalar:equalScalar,flatten:flatten,isZero:isZero,isNumeric:isNumeric}=_ref;return typed("intersect",{"Array, Array, Array":_AAA,"Array, Array, Array, Array":_AAAA,"Matrix, Matrix, Matrix":function MatrixMatrixMatrix(x,y,plane){var arr=_AAA(x.valueOf(),y.valueOf(),plane.valueOf());return null===arr?null:matrix(arr)},"Matrix, Matrix, Matrix, Matrix":function MatrixMatrixMatrixMatrix(w,x,y,z){var arr=_AAAA(w.valueOf(),x.valueOf(),y.valueOf(),z.valueOf());return null===arr?null:matrix(arr)}});function _AAA(x,y,plane){if(x=_coerceArr(x),y=_coerceArr(y),plane=_coerceArr(plane),!_3d(x))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!_3d(y))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!function _4d(x){return 4===x.length&&isNumeric(x[0])&&isNumeric(x[1])&&isNumeric(x[2])&&isNumeric(x[3])}(plane))throw new TypeError("Array with 4 numbers expected as third argument");return function _intersectLinePlane(x1,y1,z1,x2,y2,z2,x,y,z,c){var x1x=multiplyScalar(x1,x),x2x=multiplyScalar(x2,x),y1y=multiplyScalar(y1,y),y2y=multiplyScalar(y2,y),z1z=multiplyScalar(z1,z),z2z=multiplyScalar(z2,z),numerator=subtract(subtract(subtract(c,x1x),y1y),z1z),denominator=subtract(subtract(subtract(addScalar(addScalar(x2x,y2y),z2z),x1x),y1y),z1z),t=divideScalar(numerator,denominator),px=addScalar(x1,multiplyScalar(t,subtract(x2,x1))),py=addScalar(y1,multiplyScalar(t,subtract(y2,y1))),pz=addScalar(z1,multiplyScalar(t,subtract(z2,z1)));return[px,py,pz]}(x[0],x[1],x[2],y[0],y[1],y[2],plane[0],plane[1],plane[2],plane[3])}function _AAAA(w,x,y,z){if(w=_coerceArr(w),x=_coerceArr(x),y=_coerceArr(y),z=_coerceArr(z),2===w.length){if(!_2d(w))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!_2d(x))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!_2d(y))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!_2d(z))throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return function _intersect2d(p1a,p1b,p2a,p2b){var o1=p1a,o2=p2a,d1=subtract(o1,p1b),d2=subtract(o2,p2b),det=subtract(multiplyScalar(d1[0],d2[1]),multiplyScalar(d2[0],d1[1]));if(isZero(det))return null;if(smaller(abs(det),config.epsilon))return null;var d20o11=multiplyScalar(d2[0],o1[1]),d21o10=multiplyScalar(d2[1],o1[0]),d20o21=multiplyScalar(d2[0],o2[1]),d21o20=multiplyScalar(d2[1],o2[0]),t=divideScalar(addScalar(subtract(subtract(d20o11,d21o10),d20o21),d21o20),det);return add(multiply(d1,t),o1)}(w,x,y,z)}if(3===w.length){if(!_3d(w))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!_3d(x))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!_3d(y))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!_3d(z))throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return function _intersect3d(x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4){var d1343=_intersect3dHelper(x1,x3,x4,x3,y1,y3,y4,y3,z1,z3,z4,z3),d4321=_intersect3dHelper(x4,x3,x2,x1,y4,y3,y2,y1,z4,z3,z2,z1),d1321=_intersect3dHelper(x1,x3,x2,x1,y1,y3,y2,y1,z1,z3,z2,z1),d4343=_intersect3dHelper(x4,x3,x4,x3,y4,y3,y4,y3,z4,z3,z4,z3),d2121=_intersect3dHelper(x2,x1,x2,x1,y2,y1,y2,y1,z2,z1,z2,z1),numerator=subtract(multiplyScalar(d1343,d4321),multiplyScalar(d1321,d4343)),denominator=subtract(multiplyScalar(d2121,d4343),multiplyScalar(d4321,d4321));if(isZero(denominator))return null;var ta=divideScalar(numerator,denominator),tb=divideScalar(addScalar(d1343,multiplyScalar(ta,d4321)),d4343),pax=addScalar(x1,multiplyScalar(ta,subtract(x2,x1))),pay=addScalar(y1,multiplyScalar(ta,subtract(y2,y1))),paz=addScalar(z1,multiplyScalar(ta,subtract(z2,z1))),pbx=addScalar(x3,multiplyScalar(tb,subtract(x4,x3))),pby=addScalar(y3,multiplyScalar(tb,subtract(y4,y3))),pbz=addScalar(z3,multiplyScalar(tb,subtract(z4,z3)));return equalScalar(pax,pbx)&&equalScalar(pay,pby)&&equalScalar(paz,pbz)?[pax,pay,paz]:null}(w[0],w[1],w[2],x[0],x[1],x[2],y[0],y[1],y[2],z[0],z[1],z[2])}throw new TypeError("Arrays with two or thee dimensional points expected")}function _coerceArr(arr){return 1===arr.length?arr[0]:arr.length>1&&Array.isArray(arr[0])&&arr.every((el=>Array.isArray(el)&&1===el.length))?flatten(arr):arr}function _2d(x){return 2===x.length&&isNumeric(x[0])&&isNumeric(x[1])}function _3d(x){return 3===x.length&&isNumeric(x[0])&&isNumeric(x[1])&&isNumeric(x[2])}function _intersect3dHelper(a,b,c,d,e,f,g,h,i,j,k,l){var add1=multiplyScalar(subtract(a,b),subtract(c,d)),add2=multiplyScalar(subtract(e,f),subtract(g,h)),add3=multiplyScalar(subtract(i,j),subtract(k,l));return addScalar(addScalar(add1,add2),add3)}}))},"./node_modules/mathjs/lib/esm/function/logical/and.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{I:function(){return createAnd}});var _type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo14xDs.js"),_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo06xS0S0.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/logical.js"),dependencies=["typed","matrix","equalScalar","zeros","not","concat"],createAnd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("and",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,not:not,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo06xS0S0=(0,_type_matrix_utils_matAlgo06xS0S0_js__WEBPACK_IMPORTED_MODULE_2__.X)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_3__.e)({typed:typed,equalScalar:equalScalar}),matAlgo14xDs=(0,_type_matrix_utils_matAlgo14xDs_js__WEBPACK_IMPORTED_MODULE_4__.R)({typed:typed}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_5__.L)({typed:typed,matrix:matrix,concat:concat});return typed("and",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_6__.FO,"Complex, Complex":function ComplexComplex(x,y){return!(0===x.re&&0===x.im||0===y.re&&0===y.im)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return!(x.isZero()||y.isZero()||x.isNaN()||y.isNaN())},"Unit, Unit":typed.referToSelf((self=>(x,y)=>self(x.value||0,y.value||0))),"SparseMatrix, any":typed.referToSelf((self=>(x,y)=>not(y)?zeros(x.size(),x.storage()):matAlgo11xS0s(x,y,self,!1))),"DenseMatrix, any":typed.referToSelf((self=>(x,y)=>not(y)?zeros(x.size(),x.storage()):matAlgo14xDs(x,y,self,!1))),"any, SparseMatrix":typed.referToSelf((self=>(x,y)=>not(x)?zeros(x.size(),x.storage()):matAlgo11xS0s(y,x,self,!0))),"any, DenseMatrix":typed.referToSelf((self=>(x,y)=>not(x)?zeros(x.size(),x.storage()):matAlgo14xDs(y,x,self,!0))),"Array, any":typed.referToSelf((self=>(x,y)=>self(matrix(x),y).valueOf())),"any, Array":typed.referToSelf((self=>(x,y)=>self(x,matrix(y)).valueOf()))},matrixAlgorithmSuite({SS:matAlgo06xS0S0,DS:matAlgo02xDS0}))}))},"./node_modules/mathjs/lib/esm/function/logical/not.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return createNot}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/logical.js"),dependencies=["typed"],createNot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("not",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("not",{"null | undefined":()=>!0,number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.xY,Complex:function Complex(x){return 0===x.re&&0===x.im},BigNumber:function BigNumber(x){return x.isZero()||x.isNaN()},Unit:typed.referToSelf((self=>x=>typed.find(self,x.valueType())(x.value))),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/logical/or.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return createOr}});var _type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo05xSfSf.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/logical.js"),dependencies=["typed","matrix","equalScalar","DenseMatrix","concat"],createOr=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("or",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo05xSfSf=(0,_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_2__.b)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("or",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.RY,"Complex, Complex":function ComplexComplex(x,y){return 0!==x.re||0!==x.im||0!==y.re||0!==y.im},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return!x.isZero()&&!x.isNaN()||!y.isZero()&&!y.isNaN()},"Unit, Unit":typed.referToSelf((self=>(x,y)=>self(x.value||0,y.value||0)))},matrixAlgorithmSuite({SS:matAlgo05xSfSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))}))},"./node_modules/mathjs/lib/esm/function/logical/xor.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return createXor}});var _type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/logical.js"),dependencies=["typed","matrix","DenseMatrix","concat"],createXor=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("xor",dependencies,(_ref=>{var{typed:typed,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("xor",{"number, number":_plain_number_index_js__WEBPACK_IMPORTED_MODULE_5__.kl,"Complex, Complex":function ComplexComplex(x,y){return(0!==x.re||0!==x.im)!=(0!==y.re||0!==y.im)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return(!x.isZero()&&!x.isNaN())!=(!y.isZero()&&!y.isNaN())},"Unit, Unit":typed.referToSelf((self=>(x,y)=>self(x.value||0,y.value||0)))},matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))}))},"./node_modules/mathjs/lib/esm/function/matrix/apply.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j:function(){return createApply}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/error/IndexError.js"),dependencies=["typed","isInteger"],createApply=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("apply",dependencies,(_ref=>{var{typed:typed,isInteger:isInteger}=_ref;return typed("apply",{"Array | Matrix, number | BigNumber, function":function ArrayMatrixNumberBigNumberFunction(mat,dim,callback){if(!isInteger(dim))throw new TypeError("Integer number expected for dimension");var size=Array.isArray(mat)?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(mat):mat.size();if(dim<0||dim>=size.length)throw new _error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__.c(dim,size.length);return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(mat)?mat.create(_apply(mat.valueOf(),dim,callback)):_apply(mat,dim,callback)}})}));function _apply(mat,dim,callback){var i,ret,tran;if(dim<=0){if(Array.isArray(mat[0])){for(tran=function _switch(mat){var i,j,I=mat.length,J=mat[0].length,ret=[];for(j=0;j{var{typed:typed,Index:Index,matrix:matrix,range:range}=_ref;return typed("column",{"Matrix, number":_column,"Array, number":function ArrayNumber(value,column){return _column(matrix((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(value)),column).valueOf()}});function _column(value,column){if(2!==value.size().length)throw new Error("Only two dimensional matrix is supported");(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.Ls)(column,value.size()[1]);var rowRange=range(0,value.size()[0]),index=new Index(rowRange,column),result=value.subset(index);return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(result)?result:matrix([[result]])}}))},"./node_modules/mathjs/lib/esm/function/matrix/concat.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return createConcat}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/error/IndexError.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/error/DimensionError.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","isInteger"],createConcat=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("concat",dependencies,(_ref=>{var{typed:typed,matrix:matrix,isInteger:isInteger}=_ref;return typed("concat",{"...Array | Matrix | number | BigNumber":function ArrayMatrixNumberBigNumber(args){var i,prevDim,len=args.length,dim=-1,asMatrix=!1,matrices=[];for(i=0;i0&&dim>prevDim)throw new _error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__.c(dim,prevDim+1)}else{var m=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_3__.d9)(arg).valueOf(),size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_4__.aJ)(m);if(matrices[i]=m,prevDim=dim,dim=size.length-1,i>0&&dim!==prevDim)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_5__.m(prevDim+1,dim+1)}}if(0===matrices.length)throw new SyntaxError("At least one matrix expected");for(var res=matrices.shift();matrices.length;)res=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_4__.zo)(res,matrices.shift(),dim);return asMatrix?matrix(res):res},"...string":function string(args){return args.join("")}})}))},"./node_modules/mathjs/lib/esm/function/matrix/count.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{l:function(){return createCount}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","size","prod"],createCount=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("count",dependencies,(_ref=>{var{typed:typed,size:size,prod:prod}=_ref;return typed("count",{string:function string(x){return x.length},"Matrix | Array":function MatrixArray(x){return prod(size(x))}})}))},"./node_modules/mathjs/lib/esm/function/matrix/cross.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return createCross}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","subtract","multiply"],createCross=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cross",dependencies,(_ref=>{var{typed:typed,matrix:matrix,subtract:subtract,multiply:multiply}=_ref;return typed("cross",{"Matrix, Matrix":function MatrixMatrix(x,y){return matrix(_cross(x.toArray(),y.toArray()))},"Matrix, Array":function MatrixArray(x,y){return matrix(_cross(x.toArray(),y))},"Array, Matrix":function ArrayMatrix(x,y){return matrix(_cross(x,y.toArray()))},"Array, Array":_cross});function _cross(x,y){var highestDimension=Math.max((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x).length,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(y).length);x=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.L9)(x),y=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.L9)(y);var xSize=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),ySize=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(y);if(1!==xSize.length||1!==ySize.length||3!==xSize[0]||3!==ySize[0])throw new RangeError("Vectors with length 3 expected (Size A = ["+xSize.join(", ")+"], B = ["+ySize.join(", ")+"])");var product=[subtract(multiply(x[1],y[2]),multiply(x[2],y[1])),subtract(multiply(x[2],y[0]),multiply(x[0],y[2])),subtract(multiply(x[0],y[1]),multiply(x[1],y[0]))];return highestDimension>1?[product]:product}}))},"./node_modules/mathjs/lib/esm/function/matrix/ctranspose.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{t:function(){return createCtranspose}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","transpose","conj"],createCtranspose=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("ctranspose",dependencies,(_ref=>{var{typed:typed,transpose:transpose,conj:conj}=_ref;return typed("ctranspose",{any:function any(x){return conj(transpose(x))}})}))},"./node_modules/mathjs/lib/esm/function/matrix/det.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{S:function(){return createDet}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","subtractScalar","multiply","divideScalar","isZero","unaryMinus"],createDet=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("det",dependencies,(_ref=>{var{typed:typed,matrix:matrix,subtractScalar:subtractScalar,multiply:multiply,divideScalar:divideScalar,isZero:isZero,unaryMinus:unaryMinus}=_ref;return typed("det",{any:function any(x){return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(x)},"Array | Matrix":function det(x){var size;switch((size=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(x)?x.size():Array.isArray(x)?(x=matrix(x)).size():[]).length){case 0:return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(x);case 1:if(1===size[0])return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(x.valueOf()[0]);if(0===size[0])return 1;throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")");case 2:var rows=size[0],cols=size[1];if(rows===cols)return function _det(matrix,rows,cols){if(1===rows)return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(matrix[0][0]);if(2===rows)return subtractScalar(multiply(matrix[0][0],matrix[1][1]),multiply(matrix[1][0],matrix[0][1]));for(var negated=!1,rowIndices=new Array(rows).fill(0).map(((_,i)=>i)),k=0;k{var{typed:typed,matrix:matrix,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix}=_ref;return typed("diag",{Array:function Array(x){return _diag(x,0,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),null)},"Array, number":function ArrayNumber(x,k){return _diag(x,k,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),null)},"Array, BigNumber":function ArrayBigNumber(x,k){return _diag(x,k.toNumber(),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),null)},"Array, string":function ArrayString(x,format){return _diag(x,0,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),format)},"Array, number, string":function ArrayNumberString(x,k,format){return _diag(x,k,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),format)},"Array, BigNumber, string":function ArrayBigNumberString(x,k,format){return _diag(x,k.toNumber(),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(x),format)},Matrix:function Matrix(x){return _diag(x,0,x.size(),x.storage())},"Matrix, number":function MatrixNumber(x,k){return _diag(x,k,x.size(),x.storage())},"Matrix, BigNumber":function MatrixBigNumber(x,k){return _diag(x,k.toNumber(),x.size(),x.storage())},"Matrix, string":function MatrixString(x,format){return _diag(x,0,x.size(),format)},"Matrix, number, string":function MatrixNumberString(x,k,format){return _diag(x,k,x.size(),format)},"Matrix, BigNumber, string":function MatrixBigNumberString(x,k,format){return _diag(x,k.toNumber(),x.size(),format)}});function _diag(x,k,size,format){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.U)(k))throw new TypeError("Second parameter in function diag must be an integer");var kSuper=k>0?k:0,kSub=k<0?-k:0;switch(size.length){case 1:return function _createDiagonalMatrix(x,k,format,l,kSub,kSuper){var ms=[l+kSub,l+kSuper];if(format&&"sparse"!==format&&"dense"!==format)throw new TypeError("Unknown matrix type ".concat(format,'"'));var m="sparse"===format?SparseMatrix.diagonal(ms,x,k):DenseMatrix.diagonal(ms,x,k);return null!==format?m:m.valueOf()}(x,k,format,size[0],kSub,kSuper);case 2:return function _getDiagonal(x,k,format,s,kSub,kSuper){if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(x)){var dm=x.diagonal(k);return null!==format?format!==dm.storage()?matrix(dm,format):dm:dm.valueOf()}for(var n=Math.min(s[0]-kSub,s[1]-kSuper),vector=[],i=0;i{var{typed:typed,matrix:matrix,subtract:subtract,number:number}=_ref;return typed("diff",{"Array | Matrix":function ArrayMatrix(arr){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(arr)?matrix(_diff(arr.toArray())):_diff(arr)},"Array | Matrix, number":function ArrayMatrixNumber(arr,dim){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.U)(dim))throw new RangeError("Dimension must be a whole number");return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(arr)?matrix(_recursive(arr.toArray(),dim)):_recursive(arr,dim)},"Array, BigNumber":typed.referTo("Array,number",(selfAn=>(arr,dim)=>selfAn(arr,number(dim)))),"Matrix, BigNumber":typed.referTo("Matrix,number",(selfMn=>(arr,dim)=>selfMn(arr,number(dim))))});function _recursive(arr,dim){if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(arr)&&(arr=arr.toArray()),!Array.isArray(arr))throw RangeError("Array/Matrix does not have that many dimensions");if(dim>0){var result=[];return arr.forEach((element=>{result.push(_recursive(element,dim-1))})),result}if(0===dim)return _diff(arr);throw RangeError("Cannot have negative dimension")}function _diff(arr){for(var result=[],size=arr.length,i=1;i{var{typed:typed,addScalar:addScalar,multiplyScalar:multiplyScalar,conj:conj,size:size}=_ref;return typed("dot",{"Array | DenseMatrix, Array | DenseMatrix":function _denseDot(a,b){var N=_validateDim(a,b),adata=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(a)?a._data:a,adt=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(a)?a._datatype||a.getDataType():void 0,bdata=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(b)?b._data:b,bdt=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(b)?b._datatype||b.getDataType():void 0,aIsColumn=2===_size(a).length,bIsColumn=2===_size(b).length,add=addScalar,mul=multiplyScalar;if(adt&&bdt&&adt===bdt&&"string"==typeof adt&&"mixed"!==adt){var dt=adt;add=typed.find(addScalar,[dt,dt]),mul=typed.find(multiplyScalar,[dt,dt])}if(!aIsColumn&&!bIsColumn){for(var c=mul(conj(adata[0]),bdata[0]),i=1;iJ?j++:I===J&&(c=add(c,mul(xvalues[i],yvalues[j])),i++,j++)}return c}});function _validateDim(x,y){var xLen,yLen,xSize=_size(x),ySize=_size(y);if(1===xSize.length)xLen=xSize[0];else{if(2!==xSize.length||1!==xSize[1])throw new RangeError("Expected a column vector, instead got a matrix of size ("+xSize.join(", ")+")");xLen=xSize[0]}if(1===ySize.length)yLen=ySize[0];else{if(2!==ySize.length||1!==ySize[1])throw new RangeError("Expected a column vector, instead got a matrix of size ("+ySize.join(", ")+")");yLen=ySize[0]}if(xLen!==yLen)throw new RangeError("Vectors must have equal length ("+xLen+" != "+yLen+")");if(0===xLen)throw new RangeError("Cannot calculate the dot product of empty vectors");return xLen}function _size(x){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?x.size():size(x)}}))},"./node_modules/mathjs/lib/esm/function/matrix/eigs.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return createEigs}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),factory=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),string=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),object=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js");function createComplexEigs(_ref){var{addScalar:addScalar,subtract:subtract,flatten:flatten,multiply:multiply,multiplyScalar:multiplyScalar,divideScalar:divideScalar,sqrt:sqrt,abs:abs,bignumber:bignumber,diag:diag,size:size,reshape:reshape,inv:inv,qr:qr,usolve:usolve,usolveAll:usolveAll,equal:equal,complex:complex,larger:larger,smaller:smaller,matrixFromColumns:matrixFromColumns,dot:dot}=_ref;function eigenvalues2x2(a,b,c,d){var trA=addScalar(a,d),detA=subtract(multiplyScalar(a,d),multiplyScalar(b,c)),x=multiplyScalar(trA,.5),y=multiplyScalar(sqrt(subtract(multiplyScalar(trA,trA),multiplyScalar(4,detA))),.5);return[addScalar(x,y),subtract(x,y)]}function jordanBase2x2(a,b,c,d,l1,l2,prec,type){var big="BigNumber"===type,cplx="Complex"===type,zero=big?bignumber(0):cplx?complex(0):0,one=big?bignumber(1):cplx?complex(1):1;if(smaller(abs(c),prec))return[[one,zero],[zero,one]];if(larger(abs(subtract(l1,l2)),prec))return[[subtract(l1,d),subtract(l2,d)],[c,c]];var na=subtract(a,l1),nd=subtract(d,l1);return smaller(abs(b),prec)&&smaller(abs(nd),prec)?[[na,one],[c,zero]]:[[b,zero],[nd,one]]}function inflateMatrix(arr,N){for(var i=0;i=5)return null;for(i=0;;){var c=usolve(A,b);if(smaller(norm(orthogonalComplement(b,[c])),prec))break;if(++i>=10)return null;b=normalize(c)}return b}function randomOrthogonalVector(N,orthog,type){var big="BigNumber"===type,cplx="Complex"===type,v=Array(N).fill(0).map((_=>2*Math.random()-1));return big&&(v=v.map((n=>bignumber(n)))),cplx&&(v=v.map((n=>complex(n)))),normalize(v=orthogonalComplement(v,orthog),type)}function orthogonalComplement(v,orthog){var vectorShape=size(v);for(var w of orthog)w=reshape(w,vectorShape),v=subtract(v,multiply(divideScalar(dot(w,v),dot(w,w)),w));return v}function norm(v){return abs(sqrt(dot(v,v)))}function normalize(v,type){var cplx="Complex"===type,one="BigNumber"===type?bignumber(1):cplx?complex(1):1;return multiply(divideScalar(one,norm(v)),v)}return function complexEigs(arr,N,prec,type){var findVectors=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],R=function balance(arr,N,prec,type,findVectors){var Rdiag,big="BigNumber"===type,cplx="Complex"===type,realzero=big?bignumber(0):0,one=big?bignumber(1):cplx?complex(1):1,realone=big?bignumber(1):1,radix=big?bignumber(10):2,radixSq=multiplyScalar(radix,radix);findVectors&&(Rdiag=Array(N).fill(one));var last=!1;for(;!last;){last=!0;for(var i=0;i1&&(Qpartial=diag(Array(n-1).fill(one)))),n-=1,arr.pop();for(var _i2=0;_i22&&(Qpartial=diag(Array(n-2).fill(one)))),n-=2,arr.pop(),arr.pop();for(var _i3=0;_i3+subtract(abs(a),abs(b)))),lastConvergenceBefore>100){var err=Error("The eigenvalues failed to converge. Only found these eigenvalues: "+lambdas.join(", "));throw err.values=lambdas,err.vectors=[],err}var C=findVectors?multiply(Qtotal,function blockDiag(arr,N){for(var M=[],i=0;imultiply(correction,v))),vectors.push(...solutions.map((v=>({value:lambda,vector:flatten(v)}))))},_i4=0;_i4({value:values[i],vector:vector})));return{values:values,eigenvectors:eigenvectors}}return function main(arr,N){var prec=arguments.length>2&&void 0!==arguments[2]?arguments[2]:config.epsilon,type=arguments.length>3?arguments[3]:void 0,computeVectors=arguments.length>4?arguments[4]:void 0;if("number"===type)return function diag(x,precision,computeVectors){var psi,Sij,N=x.length,e0=Math.abs(precision/N);if(computeVectors){Sij=new Array(N);for(var i=0;i=Math.abs(e0);){var _i=Vab[0][0],j=Vab[0][1];x=x1(x,psi=getTheta(x[_i][_i],x[j][j],x[_i][j]),_i,j),computeVectors&&(Sij=Sij1(Sij,psi,_i,j)),Vab=getAij(x)}for(var Ei=Array(N).fill(0),_i2=0;_i2=abs(e0);){var _i3=Vab[0][0],j=Vab[0][1];x=x1Big(x,psi=getThetaBig(x[_i3][_i3],x[j][j],x[_i3][j]),_i3,j),computeVectors&&(Sij=Sij1Big(Sij,psi,_i3,j)),Vab=getAijBig(x)}for(var Ei=Array(N).fill(0),_i4=0;_i4{var{config:config,typed:typed,matrix:matrix,addScalar:addScalar,subtract:subtract,equal:equal,abs:abs,atan:atan,cos:cos,sin:sin,multiplyScalar:multiplyScalar,divideScalar:divideScalar,inv:inv,bignumber:bignumber,multiply:multiply,add:add,larger:larger,column:column,flatten:flatten,number:number,complex:complex,sqrt:sqrt,diag:diag,size:size,reshape:reshape,qr:qr,usolve:usolve,usolveAll:usolveAll,im:im,re:re,smaller:smaller,matrixFromColumns:matrixFromColumns,dot:dot}=_ref,doRealSymmetric=createRealSymmetric({config:config,addScalar:addScalar,subtract:subtract,column:column,flatten:flatten,equal:equal,abs:abs,atan:atan,cos:cos,sin:sin,multiplyScalar:multiplyScalar,inv:inv,bignumber:bignumber,complex:complex,multiply:multiply,add:add}),doComplexEigs=createComplexEigs({config:config,addScalar:addScalar,subtract:subtract,multiply:multiply,multiplyScalar:multiplyScalar,flatten:flatten,divideScalar:divideScalar,sqrt:sqrt,abs:abs,bignumber:bignumber,diag:diag,size:size,reshape:reshape,qr:qr,inv:inv,usolve:usolve,usolveAll:usolveAll,equal:equal,complex:complex,larger:larger,smaller:smaller,matrixFromColumns:matrixFromColumns,dot:dot});return typed("eigs",{Array:function Array(x){return doEigs(matrix(x))},"Array, number|BigNumber":function ArrayNumberBigNumber(x,prec){return doEigs(matrix(x),{precision:prec})},"Array, Object"(x,opts){return doEigs(matrix(x),opts)},Matrix:function Matrix(mat){return doEigs(mat,{matricize:!0})},"Matrix, number|BigNumber":function MatrixNumberBigNumber(mat,prec){return doEigs(mat,{precision:prec,matricize:!0})},"Matrix, Object":function MatrixObject(mat,opts){var useOpts={matricize:!0};return(0,esm_extends.Z)(useOpts,opts),doEigs(mat,useOpts)}});function doEigs(mat){var _opts$precision,opts=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},computeVectors=!("eigenvectors"in opts)||opts.eigenvectors,result=function computeValuesAndVectors(mat,prec,computeVectors){var arr=mat.toArray(),asize=mat.size();if(2!==asize.length||asize[0]!==asize[1])throw new RangeError("Matrix must be square (size: ".concat((0,string.WU)(asize),")"));var N=asize[0];if(function isReal(arr,N,prec){for(var i=0;i{var{value:value,vector:vector}=_ref2;return{value:value,vector:matrix(vector)}})))),computeVectors&&Object.defineProperty(result,"vectors",{enumerable:!1,get:()=>{throw new Error("eigs(M).vectors replaced with eigs(M).eigenvectors")}}),result}function coerceTypes(mat,arr,N){var type=mat.datatype();if("number"===type||"BigNumber"===type||"Complex"===type)return type;for(var hasNumber=!1,hasBig=!1,hasComplex=!1,i=0;i{var{typed:typed,abs:abs,add:add,identity:identity,inv:inv,multiply:multiply}=_ref;return typed("expm",{Matrix:function Matrix(A){var size=A.size();if(2!==size.length||size[0]!==size[1])throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_1__.WU)(size)+")");for(var n=size[0],infNorm=function infinityNorm(A){for(var n=A.size()[0],infNorm=0,i=0;i1&&(AposToI=multiply(AposToI,Apos),alternate=-alternate),N=add(N,multiply(factor=factor*(q-i+1)/((2*q-i+1)*i),AposToI)),D=add(D,multiply(factor*alternate,AposToI));for(var R=multiply(inv(D),N),_i=0;_i{var{typed:typed,matrix:matrix,addScalar:addScalar,multiplyScalar:multiplyScalar,divideScalar:divideScalar,exp:exp,tau:tau,i:I,dotDivide:dotDivide,conj:conj,pow:pow,ceil:ceil,log2:log2}=_ref;return typed("fft",{Array:_ndFft,Matrix:function Matrix(matrix){return matrix.create(_ndFft(matrix.toArray()))}});function _ndFft(arr){var size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(arr);return 1===size.length?_fft(arr,size[0]):_1dFft(arr.map((slice=>_ndFft(slice,size.slice(1)))),0)}function _1dFft(arr,dim){var size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(arr);if(0!==dim)return new Array(size[0]).fill(0).map(((_,i)=>_1dFft(arr[i],dim-1)));if(1===size.length)return _fft(arr);function _transpose(arr){var size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(arr);return new Array(size[1]).fill(0).map(((_,j)=>new Array(size[0]).fill(0).map(((_,i)=>arr[i][j]))))}return _transpose(_1dFft(_transpose(arr),1))}function _fft(arr){var len=arr.length;if(1===len)return[arr[0]];if(len%2==0){for(var ret=[..._fft(arr.filter(((_,i)=>i%2==0))),..._fft(arr.filter(((_,i)=>i%2==1)))],k=0;kmultiplyScalar(arr[i],chirp[n-1+i]))),...new Array(N2-n).fill(0)],ichirp=[...new Array(n+n-1).fill(0).map(((_,i)=>divideScalar(1,chirp[i]))),...new Array(N2-(n+n-1)).fill(0)],fftXp=_fft(xp),fftIchirp=_fft(ichirp),fftProduct=new Array(N2).fill(0).map(((_,i)=>multiplyScalar(fftXp[i],fftIchirp[i]))),ifftProduct=dotDivide(conj(_ndFft(conj(fftProduct))),N2),ret=[],_i=n-1;_i{var{typed:typed}=_ref;return typed("filter",{"Array, function":_filterCallback,"Matrix, function":function MatrixFunction(x,test){return x.create(_filterCallback(x.toArray(),test))},"Array, RegExp":_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.U_,"Matrix, RegExp":function MatrixRegExp(x,test){return x.create((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.U_)(x.toArray(),test))}})}));function _filterCallback(x,callback){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.hX)(x,(function(value,index,array){return(0,_utils_applyCallback_js__WEBPACK_IMPORTED_MODULE_2__.i)(callback,value,[index],array,"filter")}))}},"./node_modules/mathjs/lib/esm/function/matrix/flatten.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createFlatten}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix"],createFlatten=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("flatten",dependencies,(_ref=>{var{typed:typed,matrix:matrix}=_ref;return typed("flatten",{Array:function Array(x){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(x)},Matrix:function Matrix(x){var flat=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(x.toArray());return matrix(flat)}})}))},"./node_modules/mathjs/lib/esm/function/matrix/forEach.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{I:function(){return createForEach}});var _utils_applyCallback_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/applyCallback.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createForEach=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("forEach",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("forEach",{"Array, function":_forEach,"Matrix, function":function MatrixFunction(x,callback){x.forEach(callback)}})}));function _forEach(array,callback){!function recurse(value,index){if(!Array.isArray(value))return(0,_utils_applyCallback_js__WEBPACK_IMPORTED_MODULE_2__.i)(callback,value,index,array,"forEach");(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.Ed)(value,(function(child,i){recurse(child,index.concat(i))}))}(array,[])}},"./node_modules/mathjs/lib/esm/function/matrix/getMatrixDataType.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createGetMatrixDataType}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),name="getMatrixDataType",dependencies=["typed"],createGetMatrixDataType=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed}=_ref;return typed(name,{Array:function Array(x){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.$q)(x,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kM)},Matrix:function Matrix(x){return x.getDataType()}})}))},"./node_modules/mathjs/lib/esm/function/matrix/identity.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return createIdentity}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],createIdentity=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("identity",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,BigNumber:BigNumber,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix}=_ref;return typed("identity",{"":function _(){return"Matrix"===config.matrix?matrix([]):[]},string:function string(format){return matrix(format)},"number | BigNumber":function numberBigNumber(rows){return _identity(rows,rows,"Matrix"===config.matrix?"dense":void 0)},"number | BigNumber, string":function numberBigNumberString(rows,format){return _identity(rows,rows,format)},"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(rows,cols){return _identity(rows,cols,"Matrix"===config.matrix?"dense":void 0)},"number | BigNumber, number | BigNumber, string":function numberBigNumberNumberBigNumberString(rows,cols,format){return _identity(rows,cols,format)},Array:function Array(size){return _identityVector(size)},"Array, string":function ArrayString(size,format){return _identityVector(size,format)},Matrix:function Matrix(size){return _identityVector(size.valueOf(),size.storage())},"Matrix, string":function MatrixString(size,format){return _identityVector(size.valueOf(),format)}});function _identityVector(size,format){switch(size.length){case 0:return format?matrix(format):[];case 1:return _identity(size[0],size[0],format);case 2:return _identity(size[0],size[1],format);default:throw new Error("Vector containing two values expected")}}function _identity(rows,cols,format){var Big=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(rows)||(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(cols)?BigNumber:null;if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(rows)&&(rows=rows.toNumber()),(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(cols)&&(cols=cols.toNumber()),!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.U)(rows)||rows<1)throw new Error("Parameters in function identity must be positive integers");if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.U)(cols)||cols<1)throw new Error("Parameters in function identity must be positive integers");var one=Big?new BigNumber(1):1,defaultValue=Big?new Big(0):0,size=[rows,cols];if(format){if("sparse"===format)return SparseMatrix.diagonal(size,one,0,defaultValue);if("dense"===format)return DenseMatrix.diagonal(size,one,0,defaultValue);throw new TypeError('Unknown matrix type "'.concat(format,'"'))}for(var res=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.SI)([],size,defaultValue),minimum=rows{var{typed:typed,fft:fft,dotDivide:dotDivide,conj:conj}=_ref;return typed("ifft",{"Array | Matrix":function ArrayMatrix(arr){var size=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(arr)?arr.size():(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.aJ)(arr);return dotDivide(conj(fft(conj(arr))),size.reduce(((acc,curr)=>acc*curr),1))}})}))},"./node_modules/mathjs/lib/esm/function/matrix/inv.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return createInv}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),dependencies=["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],createInv=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("inv",dependencies,(_ref=>{var{typed:typed,matrix:matrix,divideScalar:divideScalar,addScalar:addScalar,multiply:multiply,unaryMinus:unaryMinus,det:det,identity:identity,abs:abs}=_ref;return typed("inv",{"Array | Matrix":function ArrayMatrix(x){var size=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?x.size():(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.aJ)(x);switch(size.length){case 1:if(1===size[0])return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?matrix([divideScalar(1,x.valueOf()[0])]):[divideScalar(1,x[0])];throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")");case 2:var rows=size[0],cols=size[1];if(rows===cols)return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?matrix(_inv(x.valueOf(),rows,cols),x.storage()):_inv(x,rows,cols);throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")")}},any:function any(x){return divideScalar(1,x)}});function _inv(mat,rows,cols){var r,s,f,value,temp;if(1===rows){if(0===(value=mat[0][0]))throw Error("Cannot calculate inverse, determinant is zero");return[[divideScalar(1,value)]]}if(2===rows){var d=det(mat);if(0===d)throw Error("Cannot calculate inverse, determinant is zero");return[[divideScalar(mat[1][1],d),divideScalar(unaryMinus(mat[0][1]),d)],[divideScalar(unaryMinus(mat[1][0]),d),divideScalar(mat[0][0],d)]]}var A=mat.concat();for(r=0;rABig&&(ABig=abs(A[r][c]),rBig=r),r++;if(0===ABig)throw Error("Cannot calculate inverse, determinant is zero");(r=rBig)!==c&&(temp=A[c],A[c]=A[r],A[r]=temp,temp=B[c],B[c]=B[r],B[r]=temp);var Ac=A[c],Bc=B[c];for(r=0;r{var{typed:typed,matrix:matrix,multiplyScalar:multiplyScalar}=_ref;return typed("kron",{"Matrix, Matrix":function MatrixMatrix(x,y){return matrix(_kron(x.toArray(),y.toArray()))},"Matrix, Array":function MatrixArray(x,y){return matrix(_kron(x.toArray(),y))},"Array, Matrix":function ArrayMatrix(x,y){return matrix(_kron(x,y.toArray()))},"Array, Array":_kron});function _kron(a,b){if(1===(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(a).length&&(a=[a]),1===(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(b).length&&(b=[b]),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(a).length>2||(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(b).length>2)throw new RangeError("Vectors with dimensions greater then 2 are not supported expected (Size x = "+JSON.stringify(a.length)+", y = "+JSON.stringify(b.length)+")");var t=[],r=[];return a.map((function(a){return b.map((function(b){return r=[],t.push(r),a.map((function(y){return b.map((function(x){return r.push(multiplyScalar(y,x))}))}))}))}))&&t}}))},"./node_modules/mathjs/lib/esm/function/matrix/map.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createMap}});var _utils_applyCallback_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/applyCallback.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createMap=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("map",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("map",{"Array, function":_map,"Matrix, function":function MatrixFunction(x,callback){return x.map(callback)}})}));function _map(array,callback){return function recurse(value,index){return Array.isArray(value)?value.map((function(child,i){return recurse(child,index.concat(i))})):(0,_utils_applyCallback_js__WEBPACK_IMPORTED_MODULE_1__.i)(callback,value,index,array,"map")}(array,[])}},"./node_modules/mathjs/lib/esm/function/matrix/matrixFromColumns.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return createMatrixFromColumns}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),name="matrixFromColumns",dependencies=["typed","matrix","flatten","size"],createMatrixFromColumns=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,matrix:matrix,flatten:flatten,size:size}=_ref;return typed(name,{"...Array":function Array(arr){return _createArray(arr)},"...Matrix":function Matrix(arr){return matrix(_createArray(arr.map((m=>m.toArray()))))}});function _createArray(arr){if(0===arr.length)throw new TypeError("At least one column is needed to construct a matrix.");for(var N=checkVectorTypeAndReturnLength(arr[0]),result=[],i=0;i{var{typed:typed,matrix:matrix,isZero:isZero}=_ref;return typed(name,{"Array | Matrix, function, string, string":function ArrayMatrixFunctionStringString(size,fn,format,datatype){return _create(size,fn,format,datatype)},"Array | Matrix, function, string":function ArrayMatrixFunctionString(size,fn,format){return _create(size,fn,format)},"Matrix, function":function MatrixFunction(size,fn){return _create(size,fn,"dense")},"Array, function":function ArrayFunction(size,fn){return _create(size,fn,"dense").toArray()},"Array | Matrix, string, function":function ArrayMatrixStringFunction(size,format,fn){return _create(size,fn,format)},"Array | Matrix, string, string, function":function ArrayMatrixStringStringFunction(size,format,datatype,fn){return _create(size,fn,format,datatype)}});function _create(size,fn,format,datatype){var m;return(m=void 0!==datatype?matrix(format,datatype):matrix(format)).resize(size),m.forEach((function(_,index){var val=fn(index);isZero(val)||m.set(index,val)})),m}}))},"./node_modules/mathjs/lib/esm/function/matrix/matrixFromRows.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{_:function(){return createMatrixFromRows}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),name="matrixFromRows",dependencies=["typed","matrix","flatten","size"],createMatrixFromRows=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,matrix:matrix,flatten:flatten,size:size}=_ref;return typed(name,{"...Array":function Array(arr){return _createArray(arr)},"...Matrix":function Matrix(arr){return matrix(_createArray(arr.map((m=>m.toArray()))))}});function _createArray(arr){if(0===arr.length)throw new TypeError("At least one row is needed to construct a matrix.");var N=checkVectorTypeAndReturnLength(arr[0]),result=[];for(var row of arr){var rowLength=checkVectorTypeAndReturnLength(row);if(rowLength!==N)throw new TypeError("The vectors had different length: "+(0|N)+" ≠ "+(0|rowLength));result.push(flatten(row))}return result}function checkVectorTypeAndReturnLength(vec){var s=size(vec);if(1===s.length)return s[0];if(2===s.length){if(1===s[0])return s[1];if(1===s[1])return s[0];throw new TypeError("At least one of the arguments is not a vector.")}throw new TypeError("Only one- or two-dimensional vectors are supported.")}}))},"./node_modules/mathjs/lib/esm/function/matrix/ones.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createOnes}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),dependencies=["typed","config","matrix","BigNumber"],createOnes=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("ones",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,BigNumber:BigNumber}=_ref;return typed("ones",{"":function _(){return"Array"===config.matrix?_ones([]):_ones([],"default")},"...number | BigNumber | string":function numberBigNumberString(size){if("string"==typeof size[size.length-1]){var format=size.pop();return _ones(size,format)}return"Array"===config.matrix?_ones(size):_ones(size,"default")},Array:_ones,Matrix:function Matrix(size){var format=size.storage();return _ones(size.valueOf(),format)},"Array | Matrix, string":function ArrayMatrixString(size,format){return _ones(size.valueOf(),format)}});function _ones(size,format){var hasBigNumbers=function _normalize(size){var hasBigNumbers=!1;return size.forEach((function(value,index,arr){(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(value)&&(hasBigNumbers=!0,arr[index]=value.toNumber())})),hasBigNumbers}(size),defaultValue=hasBigNumbers?new BigNumber(1):1;if(function _validate(size){size.forEach((function(value){if("number"!=typeof value||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_3__.U)(value)||value<0)throw new Error("Parameters in function ones must be positive integers")}))}(size),format){var m=matrix(format);return size.length>0?m.resize(size,defaultValue):m}var arr=[];return size.length>0?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.SI)(arr,size,defaultValue):arr}}))},"./node_modules/mathjs/lib/esm/function/matrix/partitionSelect.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return createPartitionSelect}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),name="partitionSelect",dependencies=["typed","isNumeric","isNaN","compare"],createPartitionSelect=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,isNumeric:isNumeric,isNaN:isNaN,compare:compare}=_ref,asc=compare,desc=(a,b)=>-compare(a,b);return typed(name,{"Array | Matrix, number":function ArrayMatrixNumber(x,k){return _partitionSelect(x,k,asc)},"Array | Matrix, number, string":function ArrayMatrixNumberString(x,k,compare){if("asc"===compare)return _partitionSelect(x,k,asc);if("desc"===compare)return _partitionSelect(x,k,desc);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":_partitionSelect});function _partitionSelect(x,k,compare){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(k)||k<0)throw new Error("k must be a non-negative integer");if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(x)){if(x.size().length>1)throw new Error("Only one dimensional matrices supported");return quickSelect(x.valueOf(),k,compare)}if(Array.isArray(x))return quickSelect(x,k,compare)}function quickSelect(arr,k,compare){if(k>=arr.length)throw new Error("k out of bounds");for(var i=0;i=0){var tmp=arr[w];arr[w]=arr[r],arr[r]=tmp,--w}else++r;compare(arr[r],pivot)>0&&--r,k<=r?to=r:from=r+1}return arr[k]}}))},"./node_modules/mathjs/lib/esm/function/matrix/pinv.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createPinv}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),dependencies=["typed","matrix","inv","deepEqual","equal","dotDivide","dot","ctranspose","divideScalar","multiply","add","Complex"],createPinv=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("pinv",dependencies,(_ref=>{var{typed:typed,matrix:matrix,inv:inv,deepEqual:deepEqual,equal:equal,dotDivide:dotDivide,dot:dot,ctranspose:ctranspose,divideScalar:divideScalar,multiply:multiply,add:add,Complex:Complex}=_ref;return typed("pinv",{"Array | Matrix":function ArrayMatrix(x){var size=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?x.size():(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.aJ)(x);switch(size.length){case 1:return _isZeros(x)?ctranspose(x):1===size[0]?inv(x):dotDivide(ctranspose(x),dot(x,x));case 2:if(_isZeros(x))return ctranspose(x);var rows=size[0],cols=size[1];if(rows===cols)try{return inv(x)}catch(err){if(!(err instanceof Error&&err.message.match(/Cannot calculate inverse, determinant is zero/)))throw err}return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(x)?matrix(_pinv(x.valueOf(),rows,cols),x.storage()):_pinv(x,rows,cols);default:throw new RangeError("Matrix must be two dimensional (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")")}},any:function any(x){return equal(x,0)?(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.d9)(x):divideScalar(1,x)}});function _pinv(mat,rows,cols){var{C:C,F:F}=function _rankFact(mat,rows,cols){var rref=function _rref(mat,rows,cols){for(var M=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.d9)(mat),lead=0,r=0;r_.filter(((_,j)=>j!_isZero(dot(rref[i],rref[i]))));return{C:C,F:F}}(mat,rows,cols),Cpinv=multiply(inv(multiply(ctranspose(C),C)),ctranspose(C)),Fpinv=multiply(ctranspose(F),inv(multiply(F,ctranspose(F))));return multiply(Fpinv,Cpinv)}function _isZero(x){return equal(add(x,Complex(1,1)),add(0,Complex(1,1)))}function _isZeros(arr){return deepEqual(add(arr,Complex(1,1)),add(multiply(arr,0),Complex(1,1)))}}))},"./node_modules/mathjs/lib/esm/function/matrix/range.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createRange}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/noop.js"),dependencies=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq","add","isPositive"],createRange=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("range",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,bignumber:bignumber,smaller:smaller,smallerEq:smallerEq,larger:larger,largerEq:largerEq,add:add,isPositive:isPositive}=_ref;return typed("range",{string:_strRange,"string, boolean":_strRange,"number, number":function numberNumber(start,end){return _out(_range(start,end,1,!1))},"number, number, number":function numberNumberNumber(start,end,step){return _out(_range(start,end,step,!1))},"number, number, boolean":function numberNumberBoolean(start,end,includeEnd){return _out(_range(start,end,1,includeEnd))},"number, number, number, boolean":function numberNumberNumberBoolean(start,end,step,includeEnd){return _out(_range(start,end,step,includeEnd))},"BigNumber, BigNumber":function BigNumberBigNumber(start,end){return _out(_range(start,end,new(0,start.constructor)(1),!1))},"BigNumber, BigNumber, BigNumber":function BigNumberBigNumberBigNumber(start,end,step){return _out(_range(start,end,step,!1))},"BigNumber, BigNumber, boolean":function BigNumberBigNumberBoolean(start,end,includeEnd){return _out(_range(start,end,new(0,start.constructor)(1),includeEnd))},"BigNumber, BigNumber, BigNumber, boolean":function BigNumberBigNumberBigNumberBoolean(start,end,step,includeEnd){return _out(_range(start,end,step,includeEnd))},"Unit, Unit, Unit":function UnitUnitUnit(start,end,step){return _out(_range(start,end,step,!1))},"Unit, Unit, Unit, boolean":function UnitUnitUnitBoolean(start,end,step,includeEnd){return _out(_range(start,end,step,includeEnd))}});function _out(arr){return"Matrix"===config.matrix?matrix?matrix(arr):(0,_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__.kX)():arr}function _strRange(str,includeEnd){var r=function _parse(str){var args=str.split(":"),nums=args.map((function(arg){return Number(arg)}));if(nums.some((function(num){return isNaN(num)})))return null;switch(nums.length){case 2:return{start:nums[0],end:nums[1],step:1};case 3:return{start:nums[0],end:nums[2],step:nums[1]};default:return null}}(str);if(!r)throw new SyntaxError('String "'+str+'" is no valid range');return"BigNumber"===config.number?(void 0===bignumber&&(0,_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__.R3)(),_out(_range(bignumber(r.start),bignumber(r.end),bignumber(r.step)))):_out(_range(r.start,r.end,r.step,includeEnd))}function _range(start,end,step,includeEnd){for(var array=[],ongoing=isPositive(step)?includeEnd?smallerEq:smaller:includeEnd?largerEq:larger,x=start;ongoing(x,end);)array.push(x),x=add(x,step);return array}}))},"./node_modules/mathjs/lib/esm/function/matrix/reshape.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return createReshape}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","isInteger","matrix"],createReshape=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("reshape",dependencies,(_ref=>{var{typed:typed,isInteger:isInteger}=_ref;return typed("reshape",{"Matrix, Array":function MatrixArray(x,sizes){return x.reshape(sizes,!0)},"Array, Array":function ArrayArray(x,sizes){return sizes.forEach((function(size){if(!isInteger(size))throw new TypeError("Invalid size for dimension: "+size)})),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.XL)(x,sizes)}})}))},"./node_modules/mathjs/lib/esm/function/matrix/resize.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{y:function(){return createResize}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/error/DimensionError.js"),_error_ArgumentsError_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/error/ArgumentsError.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),dependencies=["config","matrix"],createResize=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("resize",dependencies,(_ref=>{var{config:config,matrix:matrix}=_ref;return function resize(x,size,defaultValue){if(2!==arguments.length&&3!==arguments.length)throw new _error_ArgumentsError_js__WEBPACK_IMPORTED_MODULE_1__.u("resize",arguments.length,2,3);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(size)&&(size=size.valueOf()),(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(size[0])&&(size=size.map((function(value){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(value)?value.toNumber():value}))),(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(x))return x.resize(size,defaultValue,!0);if("string"==typeof x)return function _resizeString(str,size,defaultChar){if(void 0!==defaultChar){if("string"!=typeof defaultChar||1!==defaultChar.length)throw new TypeError("Single character expected as defaultValue")}else defaultChar=" ";if(1!==size.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_5__.m(size.length,1);var len=size[0];if("number"!=typeof len||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_6__.U)(len))throw new TypeError("Invalid size, must contain positive integers (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_7__.WU)(size)+")");if(str.length>len)return str.substring(0,len);if(str.length{var{typed:typed,multiply:multiply,rotationMatrix:rotationMatrix}=_ref;return typed("rotate",{"Array , number | BigNumber | Complex | Unit":function ArrayNumberBigNumberComplexUnit(w,theta){return _validateSize(w,2),multiply(rotationMatrix(theta),w).toArray()},"Matrix , number | BigNumber | Complex | Unit":function MatrixNumberBigNumberComplexUnit(w,theta){return _validateSize(w,2),multiply(rotationMatrix(theta),w)},"Array, number | BigNumber | Complex | Unit, Array | Matrix":function ArrayNumberBigNumberComplexUnitArrayMatrix(w,theta,v){return _validateSize(w,3),multiply(rotationMatrix(theta,v),w)},"Matrix, number | BigNumber | Complex | Unit, Array | Matrix":function MatrixNumberBigNumberComplexUnitArrayMatrix(w,theta,v){return _validateSize(w,3),multiply(rotationMatrix(theta,v),w)}});function _validateSize(v,expectedSize){var actualSize=Array.isArray(v)?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(v):v.size();if(actualSize.length>2)throw new RangeError("Vector must be of dimensions 1x".concat(expectedSize));if(2===actualSize.length&&1!==actualSize[1])throw new RangeError("Vector must be of dimensions 1x".concat(expectedSize));if(actualSize[0]!==expectedSize)throw new RangeError("Vector must be of dimensions 1x".concat(expectedSize))}}))},"./node_modules/mathjs/lib/esm/function/matrix/rotationMatrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:function(){return createRotationMatrix}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),name="rotationMatrix",dependencies=["typed","config","multiplyScalar","addScalar","unaryMinus","norm","matrix","BigNumber","DenseMatrix","SparseMatrix","cos","sin"],createRotationMatrix=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,config:config,multiplyScalar:multiplyScalar,addScalar:addScalar,unaryMinus:unaryMinus,norm:norm,BigNumber:BigNumber,matrix:matrix,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix,cos:cos,sin:sin}=_ref;return typed(name,{"":function _(){return"Matrix"===config.matrix?matrix([]):[]},string:function string(format){return matrix(format)},"number | BigNumber | Complex | Unit":function numberBigNumberComplexUnit(theta){return _rotationMatrix2x2(theta,"Matrix"===config.matrix?"dense":void 0)},"number | BigNumber | Complex | Unit, string":function numberBigNumberComplexUnitString(theta,format){return _rotationMatrix2x2(theta,format)},"number | BigNumber | Complex | Unit, Array":function numberBigNumberComplexUnitArray(theta,v){var matrixV=matrix(v);return _validateVector(matrixV),_rotationMatrix3x3(theta,matrixV,void 0)},"number | BigNumber | Complex | Unit, Matrix":function numberBigNumberComplexUnitMatrix(theta,v){_validateVector(v);var storageType=v.storage()||("Matrix"===config.matrix?"dense":void 0);return _rotationMatrix3x3(theta,v,storageType)},"number | BigNumber | Complex | Unit, Array, string":function numberBigNumberComplexUnitArrayString(theta,v,format){var matrixV=matrix(v);return _validateVector(matrixV),_rotationMatrix3x3(theta,matrixV,format)},"number | BigNumber | Complex | Unit, Matrix, string":function numberBigNumberComplexUnitMatrixString(theta,v,format){return _validateVector(v),_rotationMatrix3x3(theta,v,format)}});function _rotationMatrix2x2(theta,format){var minusOne=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(theta)?new BigNumber(-1):-1,cosTheta=cos(theta),sinTheta=sin(theta);return _convertToFormat([[cosTheta,multiplyScalar(minusOne,sinTheta)],[sinTheta,cosTheta]],format)}function _validateVector(v){var size=v.size();if(size.length<1||3!==size[0])throw new RangeError("Vector must be of dimensions 1x3")}function _mul(array){return array.reduce(((p,curr)=>multiplyScalar(p,curr)))}function _convertToFormat(data,format){if(format){if("sparse"===format)return new SparseMatrix(data);if("dense"===format)return new DenseMatrix(data);throw new TypeError('Unknown matrix type "'.concat(format,'"'))}return data}function _rotationMatrix3x3(theta,v,format){var normV=norm(v);if(0===normV)throw new RangeError("Rotation around zero vector");var Big=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(theta)?BigNumber:null,one=Big?new Big(1):1,minusOne=Big?new Big(-1):-1,vx=Big?new Big(v.get([0])/normV):v.get([0])/normV,vy=Big?new Big(v.get([1])/normV):v.get([1])/normV,vz=Big?new Big(v.get([2])/normV):v.get([2])/normV,c=cos(theta),oneMinusC=addScalar(one,unaryMinus(c)),s=sin(theta);return _convertToFormat([[addScalar(c,_mul([vx,vx,oneMinusC])),addScalar(_mul([vx,vy,oneMinusC]),_mul([minusOne,vz,s])),addScalar(_mul([vx,vz,oneMinusC]),_mul([vy,s]))],[addScalar(_mul([vx,vy,oneMinusC]),_mul([vz,s])),addScalar(c,_mul([vy,vy,oneMinusC])),addScalar(_mul([vy,vz,oneMinusC]),_mul([minusOne,vx,s]))],[addScalar(_mul([vx,vz,oneMinusC]),_mul([minusOne,vy,s])),addScalar(_mul([vy,vz,oneMinusC]),_mul([vx,s])),addScalar(c,_mul([vz,vz,oneMinusC]))]],format)}}))},"./node_modules/mathjs/lib/esm/function/matrix/row.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createRow}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),dependencies=["typed","Index","matrix","range"],createRow=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("row",dependencies,(_ref=>{var{typed:typed,Index:Index,matrix:matrix,range:range}=_ref;return typed("row",{"Matrix, number":_row,"Array, number":function ArrayNumber(value,row){return _row(matrix((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(value)),row).valueOf()}});function _row(value,row){if(2!==value.size().length)throw new Error("Only two dimensional matrix is supported");(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.Ls)(row,value.size()[0]);var columnRange=range(0,value.size()[1]),index=new Index(row,columnRange),result=value.subset(index);return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(result)?result:matrix([[result]])}}))},"./node_modules/mathjs/lib/esm/function/matrix/size.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createSize}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_noop_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/noop.js"),dependencies=["typed","config","?matrix"],createSize=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("size",dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix}=_ref;return typed("size",{Matrix:function Matrix(x){return x.create(x.size())},Array:_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ,string:function string(x){return"Array"===config.matrix?[x.length]:matrix([x.length])},"number | Complex | BigNumber | Unit | boolean | null":function numberComplexBigNumberUnitBooleanNull(x){return"Array"===config.matrix?[]:matrix?matrix([]):(0,_utils_noop_js__WEBPACK_IMPORTED_MODULE_2__.kX)()}})}))},"./node_modules/mathjs/lib/esm/function/matrix/sort.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{l:function(){return createSort}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","compare","compareNatural"],createSort=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sort",dependencies,(_ref=>{var{typed:typed,matrix:matrix,compare:compare,compareNatural:compareNatural}=_ref,compareAsc=compare,compareDesc=(a,b)=>-compare(a,b);return typed("sort",{Array:function Array(x){return _arrayIsVector(x),x.sort(compareAsc)},Matrix:function Matrix(x){return _matrixIsVector(x),matrix(x.toArray().sort(compareAsc),x.storage())},"Array, function":function ArrayFunction(x,_comparator){return _arrayIsVector(x),x.sort(_comparator)},"Matrix, function":function MatrixFunction(x,_comparator){return _matrixIsVector(x),matrix(x.toArray().sort(_comparator),x.storage())},"Array, string":function ArrayString(x,order){return _arrayIsVector(x),x.sort(_comparator(order))},"Matrix, string":function MatrixString(x,order){return _matrixIsVector(x),matrix(x.toArray().sort(_comparator(order)),x.storage())}});function _comparator(order){if("asc"===order)return compareAsc;if("desc"===order)return compareDesc;if("natural"===order)return compareNatural;throw new Error('String "asc", "desc", or "natural" expected')}function _arrayIsVector(array){if(1!==(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.aJ)(array).length)throw new Error("One dimensional array expected")}function _matrixIsVector(matrix){if(1!==matrix.size().length)throw new Error("One dimensional matrix expected")}}))},"./node_modules/mathjs/lib/esm/function/matrix/sqrtm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{m:function(){return createSqrtm}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","abs","add","multiply","map","sqrt","subtract","inv","size","max","identity"],createSqrtm=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sqrtm",dependencies,(_ref=>{var{typed:typed,abs:abs,add:add,multiply:multiply,map:map,sqrt:sqrt,subtract:subtract,inv:inv,size:size,max:max,identity:identity}=_ref;function _denmanBeavers(A){var error,iterations=0,Y=A,Z=identity(size(A));do{var Yk=Y;if(Y=multiply(.5,add(Yk,inv(Z))),Z=multiply(.5,add(Z,inv(Yk))),(error=max(abs(subtract(Y,Yk))))>1e-6&&++iterations>1e3)throw new Error("computing square root of matrix: iterative method could not converge")}while(error>1e-6);return Y}return typed("sqrtm",{"Array | Matrix":function ArrayMatrix(A){var size=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(A)?A.size():(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.aJ)(A);switch(size.length){case 1:if(1===size[0])return map(A,sqrt);throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")");case 2:if(size[0]===size[1])return _denmanBeavers(A);throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")");default:throw new RangeError("Matrix must be at most two dimensional (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(size)+")")}}})}))},"./node_modules/mathjs/lib/esm/function/matrix/squeeze.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{a:function(){return createSqueeze}});var _utils_object_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix"],createSqueeze=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("squeeze",dependencies,(_ref=>{var{typed:typed,matrix:matrix}=_ref;return typed("squeeze",{Array:function Array(x){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.L9)((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(x))},Matrix:function Matrix(x){var res=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.L9)(x.toArray());return Array.isArray(res)?matrix(res):res},any:function any(x){return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(x)}})}))},"./node_modules/mathjs/lib/esm/function/matrix/subset.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return createSubset}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_customs_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/customs.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/error/DimensionError.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","zeros","add"],createSubset=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("subset",dependencies,(_ref=>{var{typed:typed,matrix:matrix,zeros:zeros,add:add}=_ref;return typed("subset",{"Matrix, Index":function MatrixIndex(value,index){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index)?matrix():((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.bc)(value,index),value.subset(index))},"Array, Index":typed.referTo("Matrix, Index",(function(subsetRef){return function(value,index){var subsetResult=subsetRef(matrix(value),index);return index.isScalar()?subsetResult:subsetResult.valueOf()}})),"Object, Index":_getObjectProperty,"string, Index":_getSubstring,"Matrix, Index, any, any":function MatrixIndexAnyAny(value,index,replacement,defaultValue){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index)?value:((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.bc)(value,index),value.clone().subset(index,function _broadcastReplacement(replacement,index){if("string"==typeof replacement)throw new Error("can't boradcast a string");if(index._isScalar)return replacement;var indexSize=index.size();if(!indexSize.every((d=>d>0)))return replacement;try{return add(replacement,zeros(indexSize))}catch(error){return replacement}}(replacement,index),defaultValue))},"Array, Index, any, any":typed.referTo("Matrix, Index, any, any",(function(subsetRef){return function(value,index,replacement,defaultValue){var subsetResult=subsetRef(matrix(value),index,replacement,defaultValue);return subsetResult.isMatrix?subsetResult.valueOf():subsetResult}})),"Array, Index, any":typed.referTo("Matrix, Index, any, any",(function(subsetRef){return function(value,index,replacement){return subsetRef(matrix(value),index,replacement,void 0).valueOf()}})),"Matrix, Index, any":typed.referTo("Matrix, Index, any, any",(function(subsetRef){return function(value,index,replacement){return subsetRef(value,index,replacement,void 0)}})),"string, Index, string":_setSubstring,"string, Index, string, string":_setSubstring,"Object, Index, any":_setObjectProperty})}));function _getSubstring(str,index){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.dh)(index))throw new TypeError("Index expected");if((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index))return"";if((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.bc)(Array.from(str),index),1!==index.size().length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__.m(index.size().length,1);var strLen=str.length;(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.Ls)(index.min()[0],strLen),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.Ls)(index.max()[0],strLen);var range=index.dimension(0),substr="";return range.forEach((function(v){substr+=str.charAt(v)})),substr}function _setSubstring(str,index,replacement,defaultValue){if(!index||!0!==index.isIndex)throw new TypeError("Index expected");if((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index))return str;if((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.bc)(Array.from(str),index),1!==index.size().length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__.m(index.size().length,1);if(void 0!==defaultValue){if("string"!=typeof defaultValue||1!==defaultValue.length)throw new TypeError("Single character expected as defaultValue")}else defaultValue=" ";var range=index.dimension(0);if(range.size()[0]!==replacement.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__.m(range.size()[0],replacement.length);var strLen=str.length;(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.Ls)(index.min()[0]),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.Ls)(index.max()[0]);for(var chars=[],i=0;istrLen)for(var _i=strLen-1,_len=chars.length;_i<_len;_i++)chars[_i]||(chars[_i]=defaultValue);return chars.join("")}function _getObjectProperty(object,index){if(!(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index)){if(1!==index.size().length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__.m(index.size(),1);var key=index.dimension(0);if("string"!=typeof key)throw new TypeError("String expected as index to retrieve an object property");return(0,_utils_customs_js__WEBPACK_IMPORTED_MODULE_4__.YF)(object,key)}}function _setObjectProperty(object,index,replacement){if((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.JD)(index))return object;if(1!==index.size().length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_3__.m(index.size(),1);var key=index.dimension(0);if("string"!=typeof key)throw new TypeError("String expected as index to retrieve an object property");var updated=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_5__.d9)(object);return(0,_utils_customs_js__WEBPACK_IMPORTED_MODULE_4__.nI)(updated,key,replacement),updated}},"./node_modules/mathjs/lib/esm/function/matrix/trace.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return createTrace}});var _utils_object_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),dependencies=["typed","matrix","add"],createTrace=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("trace",dependencies,(_ref=>{var{typed:typed,matrix:matrix,add:add}=_ref;return typed("trace",{Array:function _arrayTrace(x){return _denseTrace(matrix(x))},SparseMatrix:function _sparseTrace(m){var values=m._values,index=m._index,ptr=m._ptr,size=m._size,rows=size[0],columns=size[1];if(rows===columns){var sum=0;if(values.length>0)for(var j=0;jj)break}return sum}throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_2__.WU)(size)+")")},DenseMatrix:_denseTrace,any:_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9});function _denseTrace(m){var size=m._size,data=m._data;switch(size.length){case 1:if(1===size[0])return(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(data[0]);throw new RangeError("Matrix must be square (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_2__.WU)(size)+")");case 2:var rows=size[0];if(rows===size[1]){for(var sum=0,i=0;i{var{typed:typed,matrix:matrix}=_ref;return typed("transpose",{Array:x=>transposeMatrix(matrix(x)).valueOf(),Matrix:transposeMatrix,any:_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9});function transposeMatrix(x){var c,size=x.size();switch(size.length){case 1:c=x.clone();break;case 2:var rows=size[0],columns=size[1];if(0===columns)throw new RangeError("Cannot transpose a 2D matrix with no columns (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_2__.WU)(size)+")");switch(x.storage()){case"dense":c=function _denseTranspose(m,rows,columns){for(var transposedRow,data=m._data,transposed=[],j=0;j{var{typed:typed,config:config,matrix:matrix,BigNumber:BigNumber}=_ref;return typed("zeros",{"":function _(){return"Array"===config.matrix?_zeros([]):_zeros([],"default")},"...number | BigNumber | string":function numberBigNumberString(size){if("string"==typeof size[size.length-1]){var format=size.pop();return _zeros(size,format)}return"Array"===config.matrix?_zeros(size):_zeros(size,"default")},Array:_zeros,Matrix:function Matrix(size){var format=size.storage();return _zeros(size.valueOf(),format)},"Array | Matrix, string":function ArrayMatrixString(size,format){return _zeros(size.valueOf(),format)}});function _zeros(size,format){var hasBigNumbers=function _normalize(size){var hasBigNumbers=!1;return size.forEach((function(value,index,arr){(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(value)&&(hasBigNumbers=!0,arr[index]=value.toNumber())})),hasBigNumbers}(size),defaultValue=hasBigNumbers?new BigNumber(0):0;if(function _validate(size){size.forEach((function(value){if("number"!=typeof value||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_3__.U)(value)||value<0)throw new Error("Parameters in function zeros must be positive integers")}))}(size),format){var m=matrix(format);return size.length>0?m.resize(size,defaultValue):m}var arr=[];return size.length>0?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.SI)(arr,size,defaultValue):arr}}))},"./node_modules/mathjs/lib/esm/function/numeric/solveODE.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return createSolveODE}});var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}var dependencies=["typed","add","subtract","multiply","divide","max","map","abs","isPositive","isNegative","larger","smaller","matrix","bignumber","unaryMinus"],createSolveODE=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("solveODE",dependencies,(_ref=>{var{typed:typed,add:add,subtract:subtract,multiply:multiply,divide:divide,max:max,map:map,abs:abs,isPositive:isPositive,isNegative:isNegative,larger:larger,smaller:smaller,matrix:matrix,bignumber:bignumber,unaryMinus:unaryMinus}=_ref;function _rk(butcherTableau){return function(f,tspan,y0,options){if(!(2===tspan.length&&(tspan.every(isNumOrBig)||tspan.every(_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr))))throw new Error('"tspan" must be an Array of two numeric values or two units [tStart, tEnd]');var t0=tspan[0],tf=tspan[1],isForwards=larger(tf,t0),firstStep=options.firstStep;if(void 0!==firstStep&&!isPositive(firstStep))throw new Error('"firstStep" must be positive');var maxStep=options.maxStep;if(void 0!==maxStep&&!isPositive(maxStep))throw new Error('"maxStep" must be positive');var minStep=options.minStep;if(minStep&&isNegative(minStep))throw new Error('"minStep" must be positive or zero');var timeVars=[t0,tf,firstStep,minStep,maxStep].filter((x=>void 0!==x));if(!timeVars.every(isNumOrBig)&&!timeVars.every(_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr))throw new Error('Inconsistent type of "t" dependant variables');for(var tol=options.tol?options.tol:1e-4,minDelta=options.minDelta?options.minDelta:.2,maxDelta=options.maxDelta?options.maxDelta:5,maxIter=options.maxIter?options.maxIter:1e4,hasBigNumbers=[t0,tf,...y0,maxStep,minStep].some(_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9),[a,c,b,bp]=hasBigNumbers?[bignumber(butcherTableau.a),bignumber(butcherTableau.c),bignumber(butcherTableau.b),bignumber(butcherTableau.bp)]:[butcherTableau.a,butcherTableau.c,butcherTableau.b,butcherTableau.bp],h=firstStep?isForwards?firstStep:unaryMinus(firstStep):divide(subtract(tf,t0),1),t=[t0],y=[y0],deltaB=subtract(b,bp),n=0,iter=0,ongoing=function _createOngoing(isForwards){return isForwards?smaller:larger}(isForwards),trimStep=function _createTrimStep(isForwards){var outOfBounds=isForwards?larger:smaller;return function(t,tf,h){var next=add(t,h);return outOfBounds(next,tf)?subtract(tf,t):h}}(isForwards);ongoing(t[n],tf);){var k=[];h=trimStep(t[n],tf,h),k.push(f(t[n],y[n]));for(var i=1;i(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr)(X)?X.value:X))));TE1/4&&(t.push(add(t[n],h)),y.push(add(y[n],multiply(h,b,k))),n++);var delta=.84*(tol/TE)**.2;if(smaller(delta,minDelta)?delta=minDelta:larger(delta,maxDelta)&&(delta=maxDelta),delta=hasBigNumbers?bignumber(delta):delta,h=multiply(h,delta),maxStep&&larger(abs(h),maxStep)?h=isForwards?maxStep:unaryMinus(maxStep):minStep&&smaller(abs(h),minStep)&&(h=isForwards?minStep:unaryMinus(minStep)),++iter>maxIter)throw new Error("Maximum number of iterations reached, try changing options")}return{t:t,y:y}}}function _rk23(f,tspan,y0,options){return _rk({a:[[],[.5],[0,3/4],[2/9,1/3,4/9]],c:[null,.5,3/4,1],b:[2/9,1/3,4/9,0],bp:[7/24,1/4,1/3,1/8]})(f,tspan,y0,options)}function _rk45(f,tspan,y0,options){return _rk({a:[[],[.2],[3/40,9/40],[44/45,-56/15,32/9],[19372/6561,-25360/2187,64448/6561,-212/729],[9017/3168,-355/33,46732/5247,49/176,-5103/18656],[35/384,0,500/1113,125/192,-2187/6784,11/84]],c:[null,.2,.3,.8,8/9,1,1],b:[35/384,0,500/1113,125/192,-2187/6784,11/84,0],bp:[5179/57600,0,7571/16695,393/640,-92097/339200,187/2100,1/40]})(f,tspan,y0,options)}function _solveODE(f,tspan,y0,opt){var method=opt.method?opt.method:"RK45",methods={RK23:_rk23,RK45:_rk45};if(method.toUpperCase()in methods){var methodOptions=function _objectSpread(e){for(var r=1;r'"'.concat(x,'"'))),availableMethodsString="".concat(methodsWithQuotes.slice(0,-1).join(", ")," and ").concat(methodsWithQuotes.slice(-1));throw new Error('Unavailable method "'.concat(method,'". Available methods are ').concat(availableMethodsString))}function isNumOrBig(x){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.l9)(x)||(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.hj)(x)}function _matrixSolveODE(f,T,y0,options){var sol=_solveODE(f,T.toArray(),y0.toArray(),options);return{t:matrix(sol.t),y:matrix(sol.y)}}return typed("solveODE",{"function, Array, Array, Object":_solveODE,"function, Matrix, Matrix, Object":_matrixSolveODE,"function, Array, Array":(f,T,y0)=>_solveODE(f,T,y0,{}),"function, Matrix, Matrix":(f,T,y0)=>_matrixSolveODE(f,T,y0,{}),"function, Array, number | BigNumber | Unit":(f,T,y0)=>{var sol=_solveODE(f,T,[y0],{});return{t:sol.t,y:sol.y.map((Y=>Y[0]))}},"function, Matrix, number | BigNumber | Unit":(f,T,y0)=>{var sol=_solveODE(f,T.toArray(),[y0],{});return{t:matrix(sol.t),y:matrix(sol.y.map((Y=>Y[0])))}},"function, Array, number | BigNumber | Unit, Object":(f,T,y0,options)=>{var sol=_solveODE(f,T,[y0],options);return{t:sol.t,y:sol.y.map((Y=>Y[0]))}},"function, Matrix, number | BigNumber | Unit, Object":(f,T,y0,options)=>{var sol=_solveODE(f,T.toArray(),[y0],options);return{t:matrix(sol.t),y:matrix(sol.y.map((Y=>Y[0])))}}})}))},"./node_modules/mathjs/lib/esm/function/probability/combinations.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return createCombinations}});var factory=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),number=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),product=__webpack_require__("./node_modules/mathjs/lib/esm/utils/product.js");function combinationsNumber(n,k){if(!(0,number.U)(n)||n<0)throw new TypeError("Positive integer value expected in function combinations");if(!(0,number.U)(k)||k<0)throw new TypeError("Positive integer value expected in function combinations");if(k>n)throw new TypeError("k must be less than or equal to n");for(var nMinusk=n-k,answer=1,nextdivisor=2,lastdivisor=k{var{typed:typed}=_ref;return typed("combinations",{"number, number":combinationsNumber,"BigNumber, BigNumber":function BigNumberBigNumber(n,k){var result,i,BigNumber=n.constructor,nMinusk=n.minus(k),one=new BigNumber(1);if(!isPositiveInteger(n)||!isPositiveInteger(k))throw new TypeError("Positive integer value expected in function combinations");if(k.gt(n))throw new TypeError("k must be less than n in function combinations");if(result=one,k.lt(nMinusk))for(i=one;i.lte(nMinusk);i=i.plus(one))result=result.times(k.plus(i)).dividedBy(i);else for(i=one;i.lte(k);i=i.plus(one))result=result.times(nMinusk.plus(i)).dividedBy(i);return result}})}));function isPositiveInteger(n){return n.isInteger()&&n.gte(0)}},"./node_modules/mathjs/lib/esm/function/probability/combinationsWithRep.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return createCombinationsWithRep}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_product_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/product.js"),name="combinationsWithRep",dependencies=["typed"],createCombinationsWithRep=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed}=_ref;return typed(name,{"number, number":function numberNumber(n,k){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(n)||n<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(k)||k<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(n<1)throw new TypeError("k must be less than or equal to n + k - 1");return k{var{typed:typed,gamma:gamma}=_ref;return typed("factorial",{number:function number(n){if(n<0)throw new Error("Value must be non-negative");return gamma(n+1)},BigNumber:function BigNumber(n){if(n.isNegative())throw new Error("Value must be non-negative");return gamma(n.plus(1))},"Array | Matrix":typed.referToSelf((self=>n=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(n,self)))})}))},"./node_modules/mathjs/lib/esm/function/probability/gamma.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return createGamma}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/probability.js"),dependencies=["typed","config","multiplyScalar","pow","BigNumber","Complex"],createGamma=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("gamma",dependencies,(_ref=>{var{typed:typed,config:config,multiplyScalar:multiplyScalar,pow:pow,BigNumber:_BigNumber,Complex:Complex}=_ref;return typed("gamma",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.wZ,Complex:function gammaComplex(n){if(0===n.im)return(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.wZ)(n.re);if(n.re<.5){var _t=new Complex(1-n.re,-n.im),r=new Complex(Math.PI*n.re,Math.PI*n.im);return new Complex(Math.PI).div(r.sin()).div(gammaComplex(_t))}n=new Complex(n.re-1,n.im);for(var x=new Complex(_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.lG[0],0),i=1;i<_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.lG.length;++i){var gammaPval=new Complex(_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.lG[i],0);x=x.add(gammaPval.div(n.add(i)))}var t=new Complex(n.re+_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Yc+.5,n.im),twoPiSqrt=Math.sqrt(2*Math.PI),tpow=t.pow(n.add(.5)),expt=t.neg().exp();return x.mul(twoPiSqrt).mul(tpow).mul(expt)},BigNumber:function BigNumber(n){if(n.isInteger())return n.isNegative()||n.isZero()?new _BigNumber(1/0):bigFactorial(n.minus(1));if(!n.isFinite())return new _BigNumber(n.isNegative()?NaN:1/0);throw new Error("Integer BigNumber expected")}});function bigFactorial(n){if(n<8)return new _BigNumber([1,1,2,6,24,120,720,5040][n]);var precision=config.precision+(0|Math.log(n.toNumber())),Big=_BigNumber.clone({precision:precision});if(n%2==1)return n.times(bigFactorial(new _BigNumber(n-1)));for(var p=n,prod=new Big(n),sum=n.toNumber();p>2;)sum+=p-=2,prod=prod.times(sum);return new _BigNumber(prod.toPrecision(_BigNumber.precision))}}))},"./node_modules/mathjs/lib/esm/function/probability/kldivergence.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createKldivergence}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","divide","sum","multiply","map","dotDivide","log","isNumeric"],createKldivergence=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("kldivergence",dependencies,(_ref=>{var{typed:typed,matrix:matrix,divide:divide,sum:sum,multiply:multiply,map:map,dotDivide:dotDivide,log:log,isNumeric:isNumeric}=_ref;return typed("kldivergence",{"Array, Array":function ArrayArray(q,p){return _kldiv(matrix(q),matrix(p))},"Matrix, Array":function MatrixArray(q,p){return _kldiv(q,matrix(p))},"Array, Matrix":function ArrayMatrix(q,p){return _kldiv(matrix(q),p)},"Matrix, Matrix":function MatrixMatrix(q,p){return _kldiv(q,p)}});function _kldiv(q,p){var plength=p.size().length,qlength=q.size().length;if(plength>1)throw new Error("first object must be one dimensional");if(qlength>1)throw new Error("second object must be one dimensional");if(plength!==qlength)throw new Error("Length of two vectors must be equal");if(0===sum(q))throw new Error("Sum of elements in first object must be non zero");if(0===sum(p))throw new Error("Sum of elements in second object must be non zero");var qnorm=divide(q,sum(q)),pnorm=divide(p,sum(p)),result=sum(multiply(qnorm,map(dotDivide(qnorm,pnorm),(x=>log(x)))));return isNumeric(result)?result:Number.NaN}}))},"./node_modules/mathjs/lib/esm/function/probability/lgamma.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{e:function(){return createLgamma}});var _plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/probability.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["Complex","typed"],createLgamma=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("lgamma",dependencies,(_ref=>{var{Complex:Complex,typed:typed}=_ref,SMALL_RE=7,coeffs=[-.029550653594771242,.00641025641025641,-.0019175269175269176,.0008417508417508417,-.0005952380952380953,.0007936507936507937,-.002777777777777778,.08333333333333333];return typed("lgamma",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Oo,Complex:function lgammaComplex(n){if(n.isNaN())return new Complex(NaN,NaN);if(0===n.im)return new Complex((0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Oo)(n.re),0);if(n.re>=SMALL_RE||Math.abs(n.im)>=7)return lgammaStirling(n);if(n.re<=.1){var tmp=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.JG)(6.283185307179586,n.im)*Math.floor(.5*n.re+.25),a=n.mul(Math.PI).sin().log(),b=lgammaComplex(new Complex(1-n.re,-n.im));return new Complex(1.1447298858494002,tmp).sub(a).sub(b)}return n.im>=0?lgammaRecurrence(n):lgammaRecurrence(n.conjugate()).conjugate()},BigNumber:function BigNumber(){throw new Error("mathjs doesn't yet provide an implementation of the algorithm lgamma for BigNumber")}});function lgammaStirling(z){for(var leftPart=z.sub(.5).mul(z.log()).sub(z).add(_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.uS),rz=new Complex(1,0).div(z),rzz=rz.div(z),a=coeffs[0],b=coeffs[1],r=2*rzz.re,s=rzz.re*rzz.re+rzz.im*rzz.im,i=2;i<8;i++){var tmp=b;b=-s*a+coeffs[i],a=r*a+tmp}var rightPart=rz.mul(rzz.mul(a).add(b));return leftPart.add(rightPart)}function lgammaRecurrence(z){var signflips=0,sb=0,shiftprod=z;for(z=z.add(1);z.re<=SMALL_RE;){var nsb=(shiftprod=shiftprod.mul(z)).im<0?1:0;0!==nsb&&0===sb&&signflips++,sb=nsb,z=z.add(1)}return lgammaStirling(z).sub(shiftprod.log()).sub(new Complex(0,2*signflips*Math.PI*1))}}))},"./node_modules/mathjs/lib/esm/function/probability/multinomial.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return createMultinomial}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","add","divide","multiply","factorial","isInteger","isPositive"],createMultinomial=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("multinomial",dependencies,(_ref=>{var{typed:typed,add:add,divide:divide,multiply:multiply,factorial:factorial,isInteger:isInteger,isPositive:isPositive}=_ref;return typed("multinomial",{"Array | Matrix":function ArrayMatrix(a){var sum=0,denom=1;return(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(a,(function(ai){if(!isInteger(ai)||!isPositive(ai))throw new TypeError("Positive integer value expected in function multinomial");sum=add(sum,ai),denom=multiply(denom,factorial(ai))})),divide(factorial(sum),denom)}})}))},"./node_modules/mathjs/lib/esm/function/probability/permutations.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return createPermutations}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_product_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/product.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","factorial"],createPermutations=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("permutations",dependencies,(_ref=>{var{typed:typed,factorial:factorial}=_ref;return typed("permutations",{"number | BigNumber":factorial,"number, number":function numberNumber(n,k){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(n)||n<0)throw new TypeError("Positive integer value expected in function permutations");if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U)(k)||k<0)throw new TypeError("Positive integer value expected in function permutations");if(k>n)throw new TypeError("second argument k must be less than or equal to first argument n");return(0,_utils_product_js__WEBPACK_IMPORTED_MODULE_2__.O)(n-k+1,n)},"BigNumber, BigNumber":function BigNumberBigNumber(n,k){var result,i;if(!isPositiveInteger(n)||!isPositiveInteger(k))throw new TypeError("Positive integer value expected in function permutations");if(k.gt(n))throw new TypeError("second argument k must be less than or equal to first argument n");for(result=n.mul(0).add(1),i=n.minus(k).plus(1);i.lte(n);i=i.plus(1))result=result.times(i);return result}})}));function isPositiveInteger(n){return n.isInteger()&&n.gte(0)}},"./node_modules/mathjs/lib/esm/function/probability/pickRandom.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return createPickRandom}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/util/seededRNG.js"),dependencies=["typed","config","?on"],createPickRandom=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("pickRandom",dependencies,(_ref=>{var{typed:typed,config:config,on:on}=_ref,rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(config.randomSeed);return on&&on("config",(function(curr,prev){curr.randomSeed!==prev.randomSeed&&(rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(curr.randomSeed))})),typed("pickRandom",{"Array | Matrix":function ArrayMatrix(possibles){return _pickRandom(possibles,{})},"Array | Matrix, Object":function ArrayMatrixObject(possibles,options){return _pickRandom(possibles,options)},"Array | Matrix, number":function ArrayMatrixNumber(possibles,number){return _pickRandom(possibles,{number:number})},"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(possibles,weights){return _pickRandom(possibles,{weights:weights})},"Array | Matrix, Array | Matrix, number":function ArrayMatrixArrayMatrixNumber(possibles,weights,number){return _pickRandom(possibles,{number:number,weights:weights})},"Array | Matrix, number, Array | Matrix":function ArrayMatrixNumberArrayMatrix(possibles,number,weights){return _pickRandom(possibles,{number:number,weights:weights})}});function _pickRandom(possibles,_ref2){var{number:number,weights:weights,elementWise:elementWise=!0}=_ref2,single=void 0===number;single&&(number=1);var createMatrix=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(possibles)?possibles.create:(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.SW)(weights)?weights.create:null;possibles=possibles.valueOf(),weights&&(weights=weights.valueOf()),!0===elementWise&&(possibles=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.xH)(possibles),weights=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.xH)(weights));var totalWeights=0;if(void 0!==weights){if(weights.length!==possibles.length)throw new Error("Weights must have the same length as possibles");for(var i=0,len=weights.length;i{var{typed:typed,config:config,on:on}=_ref,rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(config.randomSeed);return on&&on("config",(function(curr,prev){curr.randomSeed!==prev.randomSeed&&(rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(curr.randomSeed))})),typed(name,{"":()=>_random(0,1),number:max=>_random(0,max),"number, number":(min,max)=>_random(min,max),"Array | Matrix":size=>_randomMatrix(size,0,1),"Array | Matrix, number":(size,max)=>_randomMatrix(size,0,max),"Array | Matrix, number, number":(size,min,max)=>_randomMatrix(size,min,max)});function _randomMatrix(size,min,max){var res=(0,_util_randomMatrix_js__WEBPACK_IMPORTED_MODULE_2__.A)(size.valueOf(),(()=>_random(min,max)));return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(size)?size.create(res):res}function _random(min,max){return min+rng()*(max-min)}}))},"./node_modules/mathjs/lib/esm/function/probability/randomInt.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return createRandomInt}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_util_randomMatrix_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/util/randomMatrix.js"),_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/util/seededRNG.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),dependencies=["typed","config","?on"],createRandomInt=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("randomInt",dependencies,(_ref=>{var{typed:typed,config:config,on:on}=_ref,rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(config.randomSeed);return on&&on("config",(function(curr,prev){curr.randomSeed!==prev.randomSeed&&(rng=(0,_util_seededRNG_js__WEBPACK_IMPORTED_MODULE_1__.l)(curr.randomSeed))})),typed("randomInt",{"":()=>_randomInt(0,1),number:max=>_randomInt(0,max),"number, number":(min,max)=>_randomInt(min,max),"Array | Matrix":size=>_randomIntMatrix(size,0,1),"Array | Matrix, number":(size,max)=>_randomIntMatrix(size,0,max),"Array | Matrix, number, number":(size,min,max)=>_randomIntMatrix(size,min,max)});function _randomIntMatrix(size,min,max){var res=(0,_util_randomMatrix_js__WEBPACK_IMPORTED_MODULE_2__.A)(size.valueOf(),(()=>_randomInt(min,max)));return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.SW)(size)?size.create(res):res}function _randomInt(min,max){return Math.floor(min+rng()*(max-min))}}))},"./node_modules/mathjs/lib/esm/function/probability/util/randomMatrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function randomMatrix(size,random){var data=[];if((size=size.slice(0)).length>1)for(var i=0,length=size.shift();i{var{typed:typed,config:config,equalScalar:equalScalar,matrix:matrix,BigNumber:BigNumber,Fraction:Fraction,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo05xSfSf=(0,_type_matrix_utils_matAlgo05xSfSf_js__WEBPACK_IMPORTED_MODULE_2__.b)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),compareUnits=(0,_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__.g)({typed:typed});return typed(name,createCompareNumber({typed:typed,config:config}),{"boolean, boolean":function booleanBoolean(x,y){return x===y?0:x>y?1:-1},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,y,config.epsilon)?new BigNumber(0):new BigNumber(x.cmp(y))},"Fraction, Fraction":function FractionFraction(x,y){return new Fraction(x.compare(y))},"Complex, Complex":function ComplexComplex(){throw new TypeError("No ordering relation is defined for complex numbers")}},compareUnits,matrixAlgorithmSuite({SS:matAlgo05xSfSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createCompareNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed(name,{"number, number":function numberNumber(x,y){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.RI)(x,y,config.epsilon)?0:x>y?1:-1}})}))},"./node_modules/mathjs/lib/esm/function/relational/compareNatural.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createCompareNatural}});var javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/javascript-natural-sort/naturalSort.js"),javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0__),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),name="compareNatural",dependencies=["typed","compare"],createCompareNatural=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__.d5)(name,dependencies,(_ref=>{var{typed:typed,compare:compare}=_ref,compareBooleans=compare.signatures["boolean,boolean"];return typed(name,{"any, any":function _compareNatural(x,y){var c,typeX=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kM)(x),typeY=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kM)(y);if(!("number"!==typeX&&"BigNumber"!==typeX&&"Fraction"!==typeX||"number"!==typeY&&"BigNumber"!==typeY&&"Fraction"!==typeY))return"0"!==(c=compare(x,y)).toString()?c>0?1:-1:javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0___default()(typeX,typeY);var matTypes=["Array","DenseMatrix","SparseMatrix"];if(matTypes.includes(typeX)||matTypes.includes(typeY))return 0!==(c=compareMatricesAndArrays(_compareNatural,x,y))?c:javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0___default()(typeX,typeY);if(typeX!==typeY)return javascript_natural_sort__WEBPACK_IMPORTED_MODULE_0___default()(typeX,typeY);if("Complex"===typeX)return function compareComplexNumbers(x,y){if(x.re>y.re)return 1;if(x.rey.im)return 1;if(x.imy.length?1:x.length{var{typed:typed,matrix:matrix,concat:concat}=_ref,matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_2__.L)({typed:typed,matrix:matrix,concat:concat});return typed(name,_utils_string_js__WEBPACK_IMPORTED_MODULE_0__.cd,matrixAlgorithmSuite({elop:_utils_string_js__WEBPACK_IMPORTED_MODULE_0__.cd,Ds:!0}))}))},"./node_modules/mathjs/lib/esm/function/relational/compareUnits.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{g:function(){return createCompareUnits}});var createCompareUnits=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("compareUnits",["typed"],(_ref=>{var{typed:typed}=_ref;return{"Unit, Unit":typed.referToSelf((self=>(x,y)=>{if(!x.equalBase(y))throw new Error("Cannot compare units with different base");return typed.find(self,[x.valueType(),y.valueType()])(x.value,y.value)}))}}))},"./node_modules/mathjs/lib/esm/function/relational/deepEqual.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createDeepEqual}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","equal"],createDeepEqual=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("deepEqual",dependencies,(_ref=>{var{typed:typed,equal:equal}=_ref;return typed("deepEqual",{"any, any":function anyAny(x,y){return _deepEqual(x.valueOf(),y.valueOf())}});function _deepEqual(x,y){if(Array.isArray(x)){if(Array.isArray(y)){var len=x.length;if(len!==y.length)return!1;for(var i=0;i{var{typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed("equal",createEqualNumber({typed:typed,equalScalar:equalScalar}),matrixAlgorithmSuite({elop:equalScalar,SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createEqualNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("equal",["typed","equalScalar"],(_ref2=>{var{typed:typed,equalScalar:equalScalar}=_ref2;return typed("equal",{"any, any":function anyAny(x,y){return null===x?null===y:null===y?null===x:void 0===x?void 0===y:void 0===y?void 0===x:equalScalar(x,y)}})}))},"./node_modules/mathjs/lib/esm/function/relational/equalScalar.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{f:function(){return createEqualScalar}});var nearlyEqual=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),number=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),factory=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js");var relational_compareUnits=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/compareUnits.js"),dependencies=["typed","config"],createEqualScalar=(0,factory.d5)("equalScalar",dependencies,(_ref=>{var{typed:typed,config:config}=_ref;return typed("equalScalar",{"boolean, boolean":function booleanBoolean(x,y){return x===y},"number, number":function numberNumber(x,y){return(0,number.RI)(x,y,config.epsilon)},"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.eq(y)||(0,nearlyEqual.R)(x,y,config.epsilon)},"Fraction, Fraction":function FractionFraction(x,y){return x.equals(y)},"Complex, Complex":function ComplexComplex(x,y){return function complexEquals(x,y,epsilon){return(0,number.RI)(x.re,y.re,epsilon)&&(0,number.RI)(x.im,y.im,epsilon)}(x,y,config.epsilon)}},(0,relational_compareUnits.g)({typed:typed}))}));(0,factory.d5)("equalScalar",["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed("equalScalar",{"number, number":function numberNumber(x,y){return(0,number.RI)(x,y,config.epsilon)}})}))},"./node_modules/mathjs/lib/esm/function/relational/equalText.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return createEqualText}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","compareText","isZero"],createEqualText=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("equalText",dependencies,(_ref=>{var{typed:typed,compareText:compareText,isZero:isZero}=_ref;return typed("equalText",{"any, any":function anyAny(x,y){return isZero(compareText(x,y))}})}))},"./node_modules/mathjs/lib/esm/function/relational/larger.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createLarger}});var _utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/compareUnits.js"),name="larger",dependencies=["typed","config","matrix","DenseMatrix","concat"],createLarger=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),compareUnits=(0,_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__.g)({typed:typed});return typed(name,createLargerNumber({typed:typed,config:config}),{"boolean, boolean":(x,y)=>x>y,"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.gt(y)&&!(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,y,config.epsilon)},"Fraction, Fraction":(x,y)=>1===x.compare(y),"Complex, Complex":function ComplexComplex(){throw new TypeError("No ordering relation is defined for complex numbers")}},compareUnits,matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createLargerNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed(name,{"number, number":function numberNumber(x,y){return x>y&&!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.RI)(x,y,config.epsilon)}})}))},"./node_modules/mathjs/lib/esm/function/relational/largerEq.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{A:function(){return createLargerEq}});var _utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/compareUnits.js"),name="largerEq",dependencies=["typed","config","matrix","DenseMatrix","concat"],createLargerEq=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),compareUnits=(0,_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__.g)({typed:typed});return typed(name,createLargerEqNumber({typed:typed,config:config}),{"boolean, boolean":(x,y)=>x>=y,"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.gte(y)||(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,y,config.epsilon)},"Fraction, Fraction":(x,y)=>-1!==x.compare(y),"Complex, Complex":function ComplexComplex(){throw new TypeError("No ordering relation is defined for complex numbers")}},compareUnits,matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createLargerEqNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed(name,{"number, number":function numberNumber(x,y){return x>=y||(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.RI)(x,y,config.epsilon)}})}))},"./node_modules/mathjs/lib/esm/function/relational/smaller.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{r:function(){return createSmaller}});var _utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/compareUnits.js"),name="smaller",dependencies=["typed","config","matrix","DenseMatrix","concat"],createSmaller=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),compareUnits=(0,_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__.g)({typed:typed});return typed(name,createSmallerNumber({typed:typed,config:config}),{"boolean, boolean":(x,y)=>x-1===x.compare(y),"Complex, Complex":function ComplexComplex(x,y){throw new TypeError("No ordering relation is defined for complex numbers")}},compareUnits,matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createSmallerNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed(name,{"number, number":function numberNumber(x,y){return x{var{typed:typed,config:config,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat}),compareUnits=(0,_compareUnits_js__WEBPACK_IMPORTED_MODULE_5__.g)({typed:typed});return typed(name,createSmallerEqNumber({typed:typed,config:config}),{"boolean, boolean":(x,y)=>x<=y,"BigNumber, BigNumber":function BigNumberBigNumber(x,y){return x.lte(y)||(0,_utils_bignumber_nearlyEqual_js__WEBPACK_IMPORTED_MODULE_6__.R)(x,y,config.epsilon)},"Fraction, Fraction":(x,y)=>1!==x.compare(y),"Complex, Complex":function ComplexComplex(){throw new TypeError("No ordering relation is defined for complex numbers")}},compareUnits,matrixAlgorithmSuite({SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createSmallerEqNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","config"],(_ref2=>{var{typed:typed,config:config}=_ref2;return typed(name,{"number, number":function numberNumber(x,y){return x<=y||(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_7__.RI)(x,y,config.epsilon)}})}))},"./node_modules/mathjs/lib/esm/function/relational/unequal.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{I:function(){return createUnequal}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo07xSSf.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),name="unequal",dependencies=["typed","config","equalScalar","matrix","DenseMatrix","concat"],createUnequal=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,config:config,equalScalar:equalScalar,matrix:matrix,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_1__.$)({typed:typed}),matAlgo07xSSf=(0,_type_matrix_utils_matAlgo07xSSf_js__WEBPACK_IMPORTED_MODULE_2__.G)({typed:typed,DenseMatrix:DenseMatrix}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_3__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_4__.L)({typed:typed,matrix:matrix,concat:concat});return typed(name,createUnequalNumber({typed:typed,equalScalar:equalScalar}),matrixAlgorithmSuite({elop:function _unequal(x,y){return!equalScalar(x,y)},SS:matAlgo07xSSf,DS:matAlgo03xDSf,Ss:matAlgo12xSfs}))})),createUnequalNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["typed","equalScalar"],(_ref2=>{var{typed:typed,equalScalar:equalScalar}=_ref2;return typed(name,{"any, any":function anyAny(x,y){return null===x?null!==y:null===y?null!==x:void 0===x?void 0!==y:void 0===y?void 0!==x:!equalScalar(x,y)}})}))},"./node_modules/mathjs/lib/esm/function/set/setCartesian.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createSetCartesian}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","size","subset","compareNatural","Index","DenseMatrix"],createSetCartesian=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("setCartesian",dependencies,(_ref=>{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index,DenseMatrix:DenseMatrix}=_ref;return typed("setCartesian",{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){var result=[];if(0!==subset(size(a1),new Index(0))&&0!==subset(size(a2),new Index(0))){var b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a1)?a1:a1.toArray()).sort(compareNatural),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a2)?a2:a2.toArray()).sort(compareNatural);result=[];for(var i=0;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index,DenseMatrix:DenseMatrix}=_ref;return typed(name,{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){var result;if(0===subset(size(a1),new Index(0)))result=[];else{if(0===subset(size(a2),new Index(0)))return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a1.toArray());var inb2,b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a1)?a1:a1.toArray()).sort(compareNatural)),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a2)?a2:a2.toArray()).sort(compareNatural));result=[];for(var i=0;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index,DenseMatrix:DenseMatrix}=_ref;return typed("setDistinct",{"Array | Matrix":function ArrayMatrix(a){var result;if(0===subset(size(a),new Index(0)))result=[];else{var b=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a)?a:a.toArray()).sort(compareNatural);(result=[]).push(b[0]);for(var i=1;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index,DenseMatrix:DenseMatrix}=_ref;return typed("setIntersect",{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){var result;if(0===subset(size(a1),new Index(0))||0===subset(size(a2),new Index(0)))result=[];else{var b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a1)?a1:a1.toArray()).sort(compareNatural)),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a2)?a2:a2.toArray()).sort(compareNatural));result=[];for(var i=0;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index}=_ref;return typed("setIsSubset",{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){if(0===subset(size(a1),new Index(0)))return!0;if(0===subset(size(a2),new Index(0)))return!1;for(var inb2,b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a1)?a1:a1.toArray()).sort(compareNatural)),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.yV)((0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a2)?a2:a2.toArray()).sort(compareNatural)),i=0;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index}=_ref;return typed(name,{"number | BigNumber | Fraction | Complex, Array | Matrix":function numberBigNumberFractionComplexArrayMatrix(e,a){if(0===subset(size(a),new Index(0)))return 0;for(var b=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a)?a:a.toArray()),count=0,i=0;i{var{typed:typed,size:size,subset:subset,compareNatural:compareNatural,Index:Index}=_ref;return typed("setPowerset",{"Array | Matrix":function ArrayMatrix(a){if(0===subset(size(a),new Index(0)))return[];for(var b=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a)?a:a.toArray()).sort(compareNatural),result=[],number=0;number.toString(2).length<=b.length;)result.push(_subset(b,number.toString(2).split("").reverse())),number++;return function _sort(array){for(var temp=[],i=array.length-1;i>0;i--)for(var j=0;jarray[j+1].length&&(temp=array[j],array[j]=array[j+1],array[j+1]=temp);return array}(result)}});function _subset(array,bitarray){for(var result=[],i=0;i{var{typed:typed,compareNatural:compareNatural}=_ref;return typed("setSize",{"Array | Matrix":function ArrayMatrix(a){return Array.isArray(a)?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a).length:(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a.toArray()).length},"Array | Matrix, boolean":function ArrayMatrixBoolean(a,unique){if(!1===unique||0===a.length)return Array.isArray(a)?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a).length:(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a.toArray()).length;for(var b=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(Array.isArray(a)?a:a.toArray()).sort(compareNatural),count=1,i=1;i{var{typed:typed,size:size,concat:concat,subset:subset,setDifference:setDifference,Index:Index}=_ref;return typed(name,{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){if(0===subset(size(a1),new Index(0)))return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a2);if(0===subset(size(a2),new Index(0)))return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a1);var b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a1),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a2);return concat(setDifference(b1,b2),setDifference(b2,b1))}})}))},"./node_modules/mathjs/lib/esm/function/set/setUnion.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{r:function(){return createSetUnion}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","size","concat","subset","setIntersect","setSymDifference","Index"],createSetUnion=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("setUnion",dependencies,(_ref=>{var{typed:typed,size:size,concat:concat,subset:subset,setIntersect:setIntersect,setSymDifference:setSymDifference,Index:Index}=_ref;return typed("setUnion",{"Array | Matrix, Array | Matrix":function ArrayMatrixArrayMatrix(a1,a2){if(0===subset(size(a1),new Index(0)))return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a2);if(0===subset(size(a2),new Index(0)))return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a1);var b1=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a1),b2=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(a2);return concat(setSymDifference(b1,b2),setIntersect(b1,b2))}})}))},"./node_modules/mathjs/lib/esm/function/signal/freqz.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createFreqz}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","add","multiply","Complex","divide","matrix"],createFreqz=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("freqz",dependencies,(_ref=>{var{typed:typed,add:add,multiply:multiply,Complex:Complex,divide:divide,matrix:matrix}=_ref;return typed("freqz",{"Array, Array":function ArrayArray(b,a){return _freqz(b,a,createBins(512))},"Array, Array, Array":function ArrayArrayArray(b,a,w){return _freqz(b,a,w)},"Array, Array, number":function ArrayArrayNumber(b,a,w){if(w<0)throw new Error("w must be a positive number");return _freqz(b,a,createBins(w))},"Matrix, Matrix":function MatrixMatrix(b,a){var _w=createBins(512),{w:w,h:h}=_freqz(b.valueOf(),a.valueOf(),_w);return{w:matrix(w),h:matrix(h)}},"Matrix, Matrix, Matrix":function MatrixMatrixMatrix(b,a,w){var{h:h}=_freqz(b.valueOf(),a.valueOf(),w.valueOf());return{h:matrix(h),w:matrix(w)}},"Matrix, Matrix, number":function MatrixMatrixNumber(b,a,w){if(w<0)throw new Error("w must be a positive number");var _w=createBins(w),{h:h}=_freqz(b.valueOf(),a.valueOf(),_w);return{h:matrix(h),w:matrix(_w)}}});function _freqz(b,a,w){for(var num=[],den=[],i=0;i{var{typed:typed,add:add,multiply:multiply,Complex:Complex,number:number}=_ref;return typed("zpk2tf",{"Array,Array,number":function ArrayArrayNumber(z,p,k){return _zpk2tf(z,p,k)},"Array,Array":function ArrayArray(z,p){return _zpk2tf(z,p,1)},"Matrix,Matrix,number":function MatrixMatrixNumber(z,p,k){return _zpk2tf(z.valueOf(),p.valueOf(),k)},"Matrix,Matrix":function MatrixMatrix(z,p){return _zpk2tf(z.valueOf(),p.valueOf(),1)}});function _zpk2tf(z,p,k){z.some((el=>"BigNumber"===el.type))&&(z=z.map((el=>number(el)))),p.some((el=>"BigNumber"===el.type))&&(p=p.map((el=>number(el))));for(var num=[Complex(1,0)],den=[Complex(1,0)],i=0;i=0&&i-j{var{typed:typed}=_ref;return typed("name",{number:function number(x){var y=Math.abs(x);return y>=MAX_NUM?(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.Xx)(x):y<=THRESH?(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.Xx)(x)*function erf1(y){var i,ysq=y*y,xnum=P[0][4]*ysq,xden=ysq;for(i=0;i<3;i+=1)xnum=(xnum+P[0][i])*ysq,xden=(xden+Q[0][i])*ysq;return y*(xnum+P[0][3])/(xden+Q[0][3])}(y):y<=4?(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.Xx)(x)*(1-function erfc2(y){var i,xnum=P[1][8]*y,xden=y;for(i=0;i<7;i+=1)xnum=(xnum+P[1][i])*y,xden=(xden+Q[1][i])*y;var result=(xnum+P[1][7])/(xden+Q[1][7]),ysq=parseInt(16*y)/16,del=(y-ysq)*(y+ysq);return Math.exp(-ysq*ysq)*Math.exp(-del)*result}(y)):(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.Xx)(x)*(1-function erfc3(y){var i,ysq=1/(y*y),xnum=P[2][5]*ysq,xden=ysq;for(i=0;i<4;i+=1)xnum=(xnum+P[2][i])*ysq,xden=(xden+Q[2][i])*ysq;var result=ysq*(xnum+P[2][4])/(xden+Q[2][4]);result=(SQRPI-result)/y,ysq=parseInt(16*y)/16;var del=(y-ysq)*(y+ysq);return Math.exp(-ysq*ysq)*Math.exp(-del)*result}(y))},"Array | Matrix":typed.referToSelf((self=>n=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(n,self)))})})),THRESH=.46875,SQRPI=.5641895835477563,P=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,2.1531153547440383e-8],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,.0006587491615298378,.016315387137302097]],Q=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],MAX_NUM=Math.pow(2,53)},"./node_modules/mathjs/lib/esm/function/special/zeta.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{I:function(){return createZeta}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","config","multiply","pow","divide","factorial","equal","smallerEq","isNegative","gamma","sin","subtract","add","?Complex","?BigNumber","pi"],createZeta=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("zeta",dependencies,(_ref=>{var{typed:typed,config:config,multiply:multiply,pow:pow,divide:divide,factorial:factorial,equal:equal,smallerEq:smallerEq,isNegative:isNegative,gamma:gamma,sin:sin,subtract:subtract,add:add,Complex:Complex,BigNumber:_BigNumber,pi:pi}=_ref;return typed("zeta",{number:s=>zetaNumeric(s,(value=>value),(()=>20)),BigNumber:s=>zetaNumeric(s,(value=>new _BigNumber(value)),(()=>Math.abs(Math.log10(config.epsilon)))),Complex:function zetaComplex(s){if(0===s.re&&0===s.im)return new Complex(-.5);if(1===s.re)return new Complex(NaN,NaN);if(s.re===1/0&&0===s.im)return new Complex(1);if(s.im===1/0||s.re===-1/0)return new Complex(NaN,NaN);return zeta(s,(value=>value),(s=>Math.round(19.5+.9*Math.abs(s.im))),(s=>s.re))}});function zetaNumeric(s,createValue,determineDigits){return equal(s,0)?createValue(-.5):equal(s,1)?createValue(NaN):isFinite(s)?zeta(s,createValue,determineDigits,(s=>s)):isNegative(s)?createValue(NaN):createValue(1)}function zeta(s,createValue,determineDigits,getRe){var n=determineDigits(s);if(getRe(s)>-(n-1)/2)return function f(s,n,createValue){for(var c=divide(1,multiply(d(createValue(0),n),subtract(1,pow(2,subtract(1,s))))),S=createValue(0),k=createValue(1);smallerEq(k,n);k=add(k,1))S=add(S,divide(multiply((-1)**(k-1),d(k,n)),pow(k,s)));return multiply(c,S)}(s,createValue(n),createValue);var c=multiply(pow(2,s),pow(createValue(pi),subtract(s,1)));return c=multiply(c,sin(multiply(divide(createValue(pi),2),s))),c=multiply(c,gamma(subtract(1,s))),multiply(c,zeta(subtract(1,s),createValue,determineDigits,getRe))}function d(k,n){for(var S=k,j=k;smallerEq(j,n);j=add(j,1)){var factor=divide(multiply(factorial(add(n,subtract(j,1))),pow(4,j)),multiply(factorial(subtract(n,j)),factorial(multiply(2,j))));S=add(S,factor)}return multiply(n,S)}}))},"./node_modules/mathjs/lib/esm/function/statistics/corr.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return createCorr}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","matrix","mean","sqrt","sum","add","subtract","multiply","pow","divide"],createCorr=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("corr",dependencies,(_ref=>{var{typed:typed,matrix:matrix,sqrt:sqrt,sum:sum,add:add,subtract:subtract,multiply:multiply,pow:pow,divide:divide}=_ref;return typed("corr",{"Array, Array":function ArrayArray(A,B){return _corr(A,B)},"Matrix, Matrix":function MatrixMatrix(A,B){var res=_corr(A.toArray(),B.toArray());return Array.isArray(res)?matrix(res):res}});function _corr(A,B){var correlations=[];if(Array.isArray(A[0])&&Array.isArray(B[0])){if(A.length!==B.length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same length.");for(var i=0;iadd(acc,multiply(x,B[index]))),0),sumXSquare=sum(A.map((x=>pow(x,2)))),sumYSquare=sum(B.map((y=>pow(y,2)))),numerator=subtract(multiply(n,sumXY),multiply(sumX,sumY)),denominator=sqrt(multiply(subtract(multiply(n,sumXSquare),pow(sumX,2)),subtract(multiply(n,sumYSquare),pow(sumY,2))));return divide(numerator,denominator)}}))},"./node_modules/mathjs/lib/esm/function/statistics/cumsum.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:function(){return createCumSum}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_switch_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/switch.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_error_IndexError_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/error/IndexError.js"),name="cumsum",dependencies=["typed","add","unaryPlus"],createCumSum=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,add:add,unaryPlus:unaryPlus}=_ref;return typed(name,{Array:_cumsum,Matrix:function Matrix(matrix){return matrix.create(_cumsum(matrix.valueOf()))},"Array, number | BigNumber":_ncumSumDim,"Matrix, number | BigNumber":function MatrixNumberBigNumber(matrix,dim){return matrix.create(_ncumSumDim(matrix.valueOf(),dim))},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.CQ)(args))throw new TypeError("All values expected to be scalar in function cumsum");return _cumsum(args)}});function _cumsum(array){try{return _cumsummap(array)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,name)}}function _cumsummap(array){if(0===array.length)return[];for(var sums=[unaryPlus(array[0])],i=1;i=size.length)throw new _error_IndexError_js__WEBPACK_IMPORTED_MODULE_4__.c(dim,size.length);try{return _cumsumDimensional(array,dim)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,name)}}function _cumsumDimensional(mat,dim){var i,ret,tran;if(dim<=0){var initialValue=mat[0][0];if(Array.isArray(initialValue)){for(tran=(0,_utils_switch_js__WEBPACK_IMPORTED_MODULE_5__.c)(mat),ret=[],i=0;i{var{typed:typed,abs:abs,map:map,median:median,subtract:subtract}=_ref;return typed("mad",{"Array | Matrix":_mad,"...":function _(args){return _mad(args)}});function _mad(array){if(0===(array=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(array.valueOf())).length)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var med=median(array);return median(map(array,(function(value){return abs(subtract(value,med))})))}catch(err){throw err instanceof TypeError&&-1!==err.message.indexOf("median")?new TypeError(err.message.replace("median","mad")):(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"mad")}}}))},"./node_modules/mathjs/lib/esm/function/statistics/max.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return createMax}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","config","numeric","larger"],createMax=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("max",dependencies,(_ref=>{var{typed:typed,config:config,numeric:numeric,larger:larger}=_ref;return typed("max",{"Array | Matrix":_max,"Array | Matrix, number | BigNumber":function ArrayMatrixNumberBigNumber(array,dim){return(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.u4)(array,dim.valueOf(),_largest)},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.CQ)(args))throw new TypeError("Scalar values expected in function max");return _max(args)}});function _largest(x,y){try{return larger(x,y)?x:y}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"max",y)}}function _max(array){var res;if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{isNaN(value)&&"number"==typeof value?res=NaN:(void 0===res||larger(value,res))&&(res=value)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"max",value)}})),void 0===res)throw new Error("Cannot calculate max of an empty array");return"string"==typeof res&&(res=numeric(res,config.number)),res}}))},"./node_modules/mathjs/lib/esm/function/statistics/mean.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return createMean}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","add","divide"],createMean=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("mean",dependencies,(_ref=>{var{typed:typed,add:add,divide:divide}=_ref;return typed("mean",{"Array | Matrix":_mean,"Array | Matrix, number | BigNumber":function _nmeanDim(array,dim){try{var sum=(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.u4)(array,dim,add),s=Array.isArray(array)?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_2__.aJ)(array):array.size();return divide(sum,s[dim])}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_3__.x)(err,"mean")}},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.CQ)(args))throw new TypeError("Scalar values expected in function mean");return _mean(args)}});function _mean(array){var sum,num=0;if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{sum=void 0===sum?value:add(sum,value),num++}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_3__.x)(err,"mean",value)}})),0===num)throw new Error("Cannot calculate the mean of an empty array");return divide(sum,num)}}))},"./node_modules/mathjs/lib/esm/function/statistics/median.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return createMedian}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","add","divide","compare","partitionSelect"],createMedian=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("median",dependencies,(_ref=>{var{typed:typed,add:add,divide:divide,compare:compare,partitionSelect:partitionSelect}=_ref;function _median(array){try{var num=(array=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(array.valueOf())).length;if(0===num)throw new Error("Cannot calculate median of an empty array");if(num%2==0){for(var mid=num/2-1,right=partitionSelect(array,mid+1),left=array[mid],i=0;i0&&(left=array[i]);return middle2(left,right)}var m=partitionSelect(array,(num-1)/2);return middle(m)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"median")}}var middle=typed({"number | BigNumber | Complex | Unit":function numberBigNumberComplexUnit(value){return value}}),middle2=typed({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function numberBigNumberComplexUnitNumberBigNumberComplexUnit(left,right){return divide(add(left,right),2)}});return typed("median",{"Array | Matrix":_median,"Array | Matrix, number | BigNumber":function ArrayMatrixNumberBigNumber(array,dim){throw new Error("median(A, dim) is not yet supported")},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_3__.CQ)(args))throw new TypeError("Scalar values expected in function median");return _median(args)}})}))},"./node_modules/mathjs/lib/esm/function/statistics/min.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return createMin}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","config","numeric","smaller"],createMin=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("min",dependencies,(_ref=>{var{typed:typed,config:config,numeric:numeric,smaller:smaller}=_ref;return typed("min",{"Array | Matrix":_min,"Array | Matrix, number | BigNumber":function ArrayMatrixNumberBigNumber(array,dim){return(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.u4)(array,dim.valueOf(),_smallest)},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.CQ)(args))throw new TypeError("Scalar values expected in function min");return _min(args)}});function _smallest(x,y){try{return smaller(x,y)?x:y}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"min",y)}}function _min(array){var min;if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{isNaN(value)&&"number"==typeof value?min=NaN:(void 0===min||smaller(value,min))&&(min=value)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"min",value)}})),void 0===min)throw new Error("Cannot calculate min of an empty array");return"string"==typeof min&&(min=numeric(min,config.number)),min}}))},"./node_modules/mathjs/lib/esm/function/statistics/mode.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return createMode}});var _utils_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","isNaN","isNumeric"],createMode=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("mode",dependencies,(_ref=>{var{typed:typed,isNaN:isNaN,isNumeric:isNumeric}=_ref;return typed("mode",{"Array | Matrix":_mode,"...":function _(args){return _mode(args)}});function _mode(values){if(0===(values=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_1__.xH)(values.valueOf())).length)throw new Error("Cannot calculate mode of an empty array");for(var count={},mode=[],max=0,i=0;imax&&(max=count[value],mode=[value])}return mode}}))},"./node_modules/mathjs/lib/esm/function/statistics/prod.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return createProd}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","config","multiplyScalar","numeric"],createProd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("prod",dependencies,(_ref=>{var{typed:typed,config:config,multiplyScalar:multiplyScalar,numeric:numeric}=_ref;return typed("prod",{"Array | Matrix":_prod,"Array | Matrix, number | BigNumber":function ArrayMatrixNumberBigNumber(array,dim){throw new Error("prod(A, dim) is not yet supported")},"...":function _(args){return _prod(args)}});function _prod(array){var prod;if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{prod=void 0===prod?value:multiplyScalar(prod,value)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"prod",value)}})),"string"==typeof prod&&(prod=numeric(prod,config.number)),void 0===prod)throw new Error("Cannot calculate prod of an empty array");return prod}}))},"./node_modules/mathjs/lib/esm/function/statistics/quantileSeq.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{y:function(){return createQuantileSeq}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_matrix_apply_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/apply.js"),dependencies=["typed","?bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],createQuantileSeq=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("quantileSeq",dependencies,(_ref=>{var{typed:typed,bignumber:bignumber,add:add,subtract:subtract,divide:divide,multiply:multiply,partitionSelect:partitionSelect,compare:compare,isInteger:isInteger,smaller:smaller,smallerEq:smallerEq,larger:larger}=_ref,apply=(0,_matrix_apply_js__WEBPACK_IMPORTED_MODULE_1__.j)({typed:typed,isInteger:isInteger});return typed("quantileSeq",{"Array | Matrix, number | BigNumber":(data,p)=>_quantileSeqProbNumber(data,p,!1),"Array | Matrix, number | BigNumber, number":(data,prob,dim)=>_quantileSeqDim(data,prob,!1,dim,_quantileSeqProbNumber),"Array | Matrix, number | BigNumber, boolean":_quantileSeqProbNumber,"Array | Matrix, number | BigNumber, boolean, number":(data,prob,sorted,dim)=>_quantileSeqDim(data,prob,sorted,dim,_quantileSeqProbNumber),"Array | Matrix, Array | Matrix":(data,p)=>_quantileSeqProbCollection(data,p,!1),"Array | Matrix, Array | Matrix, number":(data,prob,dim)=>_quantileSeqDim(data,prob,!1,dim,_quantileSeqProbCollection),"Array | Matrix, Array | Matrix, boolean":_quantileSeqProbCollection,"Array | Matrix, Array | Matrix, boolean, number":(data,prob,sorted,dim)=>_quantileSeqDim(data,prob,sorted,dim,_quantileSeqProbCollection)});function _quantileSeqDim(data,prob,sorted,dim,fn){return apply(data,dim,(x=>fn(x,prob,sorted)))}function _quantileSeqProbNumber(data,probOrN,sorted){var probArr,dataArr=data.valueOf();if(smaller(probOrN,0))throw new Error("N/prob must be non-negative");if(smallerEq(probOrN,1))return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.hj)(probOrN)?_quantileSeq(dataArr,probOrN,sorted):bignumber(_quantileSeq(dataArr,probOrN,sorted));if(larger(probOrN,1)){if(!isInteger(probOrN))throw new Error("N must be a positive integer");if(larger(probOrN,4294967295))throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var nPlusOne=add(probOrN,1);probArr=[];for(var i=0;smaller(i,probOrN);i++){var prob=divide(i+1,nPlusOne);probArr.push(_quantileSeq(dataArr,prob,sorted))}return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.hj)(probOrN)?probArr:bignumber(probArr)}}function _quantileSeqProbCollection(data,probOrN,sorted){for(var dataArr=data.valueOf(),probOrNArr=probOrN.valueOf(),probArr=[],i=0;i0&&(left=flat[i])}return add(multiply(left,subtract(1,fracPart)),multiply(right,fracPart))}}))},"./node_modules/mathjs/lib/esm/function/statistics/std.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return createStd}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),dependencies=["typed","map","sqrt","variance"],createStd=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("std",dependencies,(_ref=>{var{typed:typed,map:map,sqrt:sqrt,variance:variance}=_ref;return typed("std",{"Array | Matrix":_std,"Array | Matrix, string":_std,"Array | Matrix, number | BigNumber":_std,"Array | Matrix, number | BigNumber, string":_std,"...":function _(args){return _std(args)}});function _std(array,normalization){if(0===array.length)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{var v=variance.apply(null,arguments);return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.uZ)(v)?map(v,sqrt):sqrt(v)}catch(err){throw err instanceof TypeError&&-1!==err.message.indexOf(" variance")?new TypeError(err.message.replace(" variance"," std")):err}}}))},"./node_modules/mathjs/lib/esm/function/statistics/sum.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return createSum}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","config","add","numeric"],createSum=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sum",dependencies,(_ref=>{var{typed:typed,config:config,add:add,numeric:numeric}=_ref;return typed("sum",{"Array | Matrix":_sum,"Array | Matrix, number | BigNumber":function _nsumDim(array,dim){try{return(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.u4)(array,dim,add)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"sum")}},"...":function _(args){if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.CQ)(args))throw new TypeError("Scalar values expected in function sum");return _sum(args)}});function _sum(array){var sum;return(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{sum=void 0===sum?value:add(sum,value)}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"sum",value)}})),void 0===sum&&(sum=numeric(0,config.number)),"string"==typeof sum&&(sum=numeric(sum,config.number)),sum}}))},"./node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return improveErrorMessage}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js");function improveErrorMessage(err,fnName,value){var details;return-1!==String(err).indexOf("Unexpected type")?(details=arguments.length>2?" (type: "+(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_0__.kM)(value)+", value: "+JSON.stringify(value)+")":" (type: "+err.data.actual+")",new TypeError("Cannot calculate "+fnName+", unexpected type of argument"+details)):-1!==String(err).indexOf("complex numbers")?(details=arguments.length>2?" (type: "+(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_0__.kM)(value)+", value: "+JSON.stringify(value)+")":"",new TypeError("Cannot calculate "+fnName+", no ordering relation is defined for complex numbers"+details)):err}},"./node_modules/mathjs/lib/esm/function/statistics/variance.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:function(){return createVariance}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/utils/improveErrorMessage.js"),dependencies=["typed","add","subtract","multiply","divide","apply","isNaN"],createVariance=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("variance",dependencies,(_ref=>{var{typed:typed,add:add,subtract:subtract,multiply:multiply,divide:divide,apply:apply,isNaN:isNaN}=_ref;return typed("variance",{"Array | Matrix":function ArrayMatrix(array){return _var(array,"unbiased")},"Array | Matrix, string":_var,"Array | Matrix, number | BigNumber":function ArrayMatrixNumberBigNumber(array,dim){return _varDim(array,dim,"unbiased")},"Array | Matrix, number | BigNumber, string":_varDim,"...":function _(args){return _var(args,"unbiased")}});function _var(array,normalization){var sum,num=0;if(0===array.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if((0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){try{sum=void 0===sum?value:add(sum,value),num++}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"variance",value)}})),0===num)throw new Error("Cannot calculate variance of an empty array");var mean=divide(sum,num);if(sum=void 0,(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Et)(array,(function(value){var diff=subtract(value,mean);sum=void 0===sum?multiply(diff,diff):add(sum,multiply(diff,diff))})),isNaN(sum))return sum;switch(normalization){case"uncorrected":return divide(sum,num);case"biased":return divide(sum,num+1);case"unbiased":var zero=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.l9)(sum)?sum.mul(0):0;return 1===num?zero:divide(sum,num-1);default:throw new Error('Unknown normalization "'+normalization+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function _varDim(array,dim,normalization){try{if(0===array.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return apply(array,dim,(x=>_var(x,normalization)))}catch(err){throw(0,_utils_improveErrorMessage_js__WEBPACK_IMPORTED_MODULE_2__.x)(err,"variance")}}}))},"./node_modules/mathjs/lib/esm/function/string/bin.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return createBin}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),createBin=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bin",["typed","format"],(_ref=>{var{typed:typed,format:format}=_ref;return typed("bin",{"number | BigNumber":function numberBigNumber(n){return format(n,{notation:"bin"})},"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(n,wordSize){return format(n,{notation:"bin",wordSize:wordSize})}})}))},"./node_modules/mathjs/lib/esm/function/string/format.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{l:function(){return createFormat}});var _utils_string_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createFormat=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("format",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("format",{any:_utils_string_js__WEBPACK_IMPORTED_MODULE_1__.WU,"any, Object | function | number | BigNumber":_utils_string_js__WEBPACK_IMPORTED_MODULE_1__.WU})}))},"./node_modules/mathjs/lib/esm/function/string/hex.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createHex}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),createHex=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("hex",["typed","format"],(_ref=>{var{typed:typed,format:format}=_ref;return typed("hex",{"number | BigNumber":function numberBigNumber(n){return format(n,{notation:"hex"})},"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(n,wordSize){return format(n,{notation:"hex",wordSize:wordSize})}})}))},"./node_modules/mathjs/lib/esm/function/string/oct.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return createOct}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),createOct=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("oct",["typed","format"],(_ref=>{var{typed:typed,format:format}=_ref;return typed("oct",{"number | BigNumber":function numberBigNumber(n){return format(n,{notation:"oct"})},"number | BigNumber, number | BigNumber":function numberBigNumberNumberBigNumber(n,wordSize){return format(n,{notation:"oct",wordSize:wordSize})}})}))},"./node_modules/mathjs/lib/esm/function/string/print.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return createPrint}});var _utils_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_print_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/print.js"),dependencies=["typed"],createPrint=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("print",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("print",{"string, Object | Array":_print,"string, Object | Array, number | Object":_print})}));function _print(template,values,options){return template.replace(_utils_print_js__WEBPACK_IMPORTED_MODULE_1__.k,(function(original,key){var keys=key.split("."),value=values[keys.shift()];for(void 0!==value&&value.isMatrix&&(value=value.toArray());keys.length&&void 0!==value;){var k=keys.shift();value=k?value[k]:value+"."}return void 0!==value?(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.HD)(value)?value:(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_3__.WU)(value,options):original}))}},"./node_modules/mathjs/lib/esm/function/trigonometry/acos.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return createAcos}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","config","Complex"],createAcos=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acos",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex}=_ref;return typed("acos",{number:function number(x){return x>=-1&&x<=1||config.predictable?Math.acos(x):new Complex(x,0).acos()},Complex:function Complex(x){return x.acos()},BigNumber:function BigNumber(x){return x.acos()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/acosh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return createAcosh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex"],createAcosh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acosh",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex}=_ref;return typed("acosh",{number:function number(x){return x>=1||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.cw)(x):x<=-1?new Complex(Math.log(Math.sqrt(x*x-1)-x),Math.PI):new Complex(x,0).acosh()},Complex:function Complex(x){return x.acosh()},BigNumber:function BigNumber(x){return x.acosh()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/acot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{_:function(){return createAcot}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","BigNumber"],createAcot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acot",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref;return typed("acot",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.y,Complex:function Complex(x){return x.acot()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).atan()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/acoth.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createAcoth}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex","BigNumber"],createAcoth=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acoth",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex,BigNumber:_BigNumber}=_ref;return typed("acoth",{number:function number(x){return x>=1||x<=-1||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.LJ)(x):new Complex(x,0).acoth()},Complex:function Complex(x){return x.acoth()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).atanh()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/acsc.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return createAcsc}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex","BigNumber"],createAcsc=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acsc",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex,BigNumber:_BigNumber}=_ref;return typed("acsc",{number:function number(x){return x<=-1||x>=1||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.VL)(x):new Complex(x,0).acsc()},Complex:function Complex(x){return x.acsc()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).asin()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/acsch.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return createAcsch}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","BigNumber"],createAcsch=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("acsch",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref;return typed("acsch",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.F4,Complex:function Complex(x){return x.acsch()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).asinh()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/asec.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Q:function(){return createAsec}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex","BigNumber"],createAsec=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("asec",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex,BigNumber:_BigNumber}=_ref;return typed("asec",{number:function number(x){return x<=-1||x>=1||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.zq)(x):new Complex(x,0).asec()},Complex:function Complex(x){return x.asec()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).acos()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/asech.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return createAsech}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex","BigNumber"],createAsech=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("asech",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex,BigNumber:_BigNumber}=_ref;return typed("asech",{number:function number(x){if(x<=1&&x>=-1||config.predictable){var xInv=1/x;if(xInv>0||config.predictable)return(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Pe)(x);var ret=Math.sqrt(xInv*xInv-1);return new Complex(Math.log(ret-xInv),Math.PI)}return new Complex(x,0).asech()},Complex:function Complex(x){return x.asech()},BigNumber:function BigNumber(x){return new _BigNumber(1).div(x).acosh()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/asin.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{K:function(){return createAsin}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","config","Complex"],createAsin=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("asin",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex}=_ref;return typed("asin",{number:function number(x){return x>=-1&&x<=1||config.predictable?Math.asin(x):new Complex(x,0).asin()},Complex:function Complex(x){return x.asin()},BigNumber:function BigNumber(x){return x.asin()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/asinh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createAsinh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed"],createAsinh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("asinh",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("asinh",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Rm,Complex:function Complex(x){return x.asinh()},BigNumber:function BigNumber(x){return x.asinh()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/atan.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{a:function(){return createAtan}});var dependencies=["typed"],createAtan=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("atan",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("atan",{number:function number(x){return Math.atan(x)},Complex:function Complex(x){return x.atan()},BigNumber:function BigNumber(x){return x.atan()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/atan2.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return createAtan2}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo02xDS0.js"),_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo03xDSf.js"),_type_matrix_utils_matAlgo09xS0Sf_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo09xS0Sf.js"),_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo11xS0s.js"),_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo12xSfs.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","equalScalar","BigNumber","DenseMatrix","concat"],createAtan2=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("atan2",dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,BigNumber:BigNumber,DenseMatrix:DenseMatrix,concat:concat}=_ref,matAlgo02xDS0=(0,_type_matrix_utils_matAlgo02xDS0_js__WEBPACK_IMPORTED_MODULE_1__.v)({typed:typed,equalScalar:equalScalar}),matAlgo03xDSf=(0,_type_matrix_utils_matAlgo03xDSf_js__WEBPACK_IMPORTED_MODULE_2__.$)({typed:typed}),matAlgo09xS0Sf=(0,_type_matrix_utils_matAlgo09xS0Sf_js__WEBPACK_IMPORTED_MODULE_3__.r)({typed:typed,equalScalar:equalScalar}),matAlgo11xS0s=(0,_type_matrix_utils_matAlgo11xS0s_js__WEBPACK_IMPORTED_MODULE_4__.e)({typed:typed,equalScalar:equalScalar}),matAlgo12xSfs=(0,_type_matrix_utils_matAlgo12xSfs_js__WEBPACK_IMPORTED_MODULE_5__.O)({typed:typed,DenseMatrix:DenseMatrix}),matrixAlgorithmSuite=(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_6__.L)({typed:typed,matrix:matrix,concat:concat});return typed("atan2",{"number, number":Math.atan2,"BigNumber, BigNumber":(y,x)=>BigNumber.atan2(y,x)},matrixAlgorithmSuite({scalar:"number | BigNumber",SS:matAlgo09xS0Sf,DS:matAlgo03xDSf,SD:matAlgo02xDS0,Ss:matAlgo11xS0s,sS:matAlgo12xSfs}))}))},"./node_modules/mathjs/lib/esm/function/trigonometry/atanh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{m:function(){return createAtanh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","config","Complex"],createAtanh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("atanh",dependencies,(_ref=>{var{typed:typed,config:config,Complex:Complex}=_ref;return typed("atanh",{number:function number(x){return x<=1&&x>=-1||config.predictable?(0,_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Sz)(x):new Complex(x,0).atanh()},Complex:function Complex(x){return x.atanh()},BigNumber:function BigNumber(x){return x.atanh()}})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/cos.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createCos}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed"],createCos=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cos",dependencies,(_ref=>{var{typed:typed}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("cos",{number:Math.cos,"Complex | BigNumber":x=>x.cos()},trigUnit)}))},"./node_modules/mathjs/lib/esm/function/trigonometry/cosh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createCosh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["typed"],createCosh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cosh",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("cosh",{number:_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.f9,"Complex | BigNumber":x=>x.cosh()})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/cot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j:function(){return createCot}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed","BigNumber"],createCot=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("cot",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("cot",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__.Nw,Complex:x=>x.cot(),BigNumber:x=>new _BigNumber(1).div(x.tan())},trigUnit)}))},"./node_modules/mathjs/lib/esm/function/trigonometry/coth.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return createCoth}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","BigNumber"],createCoth=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("coth",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref;return typed("coth",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.ws,Complex:x=>x.coth(),BigNumber:x=>new _BigNumber(1).div(x.tanh())})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/csc.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return createCsc}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed","BigNumber"],createCsc=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("csc",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("csc",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__.c$,Complex:x=>x.csc(),BigNumber:x=>new _BigNumber(1).div(x.sin())},trigUnit)}))},"./node_modules/mathjs/lib/esm/function/trigonometry/csch.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{_:function(){return createCsch}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","BigNumber"],createCsch=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("csch",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref;return typed("csch",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.zr,Complex:x=>x.csch(),BigNumber:x=>new _BigNumber(1).div(x.sinh())})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/sec.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return createSec}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed","BigNumber"],createSec=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sec",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("sec",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_2__.wX,Complex:x=>x.sec(),BigNumber:x=>new _BigNumber(1).div(x.cos())},trigUnit)}))},"./node_modules/mathjs/lib/esm/function/trigonometry/sech.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{g:function(){return createSech}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed","BigNumber"],createSech=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sech",dependencies,(_ref=>{var{typed:typed,BigNumber:_BigNumber}=_ref;return typed("sech",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.pL,Complex:x=>x.sech(),BigNumber:x=>new _BigNumber(1).div(x.cosh())})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/sin.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return createSin}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed"],createSin=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sin",dependencies,(_ref=>{var{typed:typed}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("sin",{number:Math.sin,"Complex | BigNumber":x=>x.sin()},trigUnit)}))},"./node_modules/mathjs/lib/esm/function/trigonometry/sinh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return createSinh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/trigonometry.js"),dependencies=["typed"],createSinh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sinh",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("sinh",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.T$,"Complex | BigNumber":x=>x.sinh()})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/tan.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{O:function(){return createTan}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js"),dependencies=["typed"],createTan=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("tan",dependencies,(_ref=>{var{typed:typed}=_ref,trigUnit=(0,_trigUnit_js__WEBPACK_IMPORTED_MODULE_1__.E)({typed:typed});return typed("tan",{number:Math.tan,"Complex | BigNumber":x=>x.tan()},trigUnit)}))},"./node_modules/mathjs/lib/esm/function/trigonometry/tanh.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return createTanh}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["typed"],createTanh=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("tanh",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("tanh",{number:_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.AE,"Complex | BigNumber":x=>x.tanh()})}))},"./node_modules/mathjs/lib/esm/function/trigonometry/trigUnit.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return createTrigUnit}});var createTrigUnit=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("trigUnit",["typed"],(_ref=>{var{typed:typed}=_ref;return{Unit:typed.referToSelf((self=>x=>{if(!x.hasBase(x.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cot is no angle");return typed.find(self,x.valueType())(x.value)}))}}))},"./node_modules/mathjs/lib/esm/function/unit/to.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createTo}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js"),dependencies=["typed","matrix","concat"],createTo=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("to",dependencies,(_ref=>{var{typed:typed,matrix:matrix,concat:concat}=_ref;return typed("to",{"Unit, Unit | string":(x,unit)=>x.to(unit)},(0,_type_matrix_utils_matrixAlgorithmSuite_js__WEBPACK_IMPORTED_MODULE_1__.L)({typed:typed,matrix:matrix,concat:concat})({Ds:!0}))}))},"./node_modules/mathjs/lib/esm/function/utils/clone.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createClone}});var _utils_object_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createClone=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("clone",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("clone",{any:_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9})}))},"./node_modules/mathjs/lib/esm/function/utils/hasNumericValue.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return createHasNumericValue}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),name="hasNumericValue",dependencies=["typed","isNumeric"],createHasNumericValue=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,dependencies,(_ref=>{var{typed:typed,isNumeric:isNumeric}=_ref;return typed(name,{boolean:()=>!0,string:function string(x){return x.trim().length>0&&!isNaN(Number(x))},any:function any(x){return isNumeric(x)}})}))},"./node_modules/mathjs/lib/esm/function/utils/isInteger.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return createIsInteger}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createIsInteger=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isInteger",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isInteger",{number:_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.U,BigNumber:function BigNumber(x){return x.isInt()},Fraction:function Fraction(x){return 1===x.d&&isFinite(x.n)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/utils/isNaN.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return createIsNaN}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/utils.js"),dependencies=["typed"],createIsNaN=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isNaN",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isNaN",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.kU,BigNumber:function BigNumber(x){return x.isNaN()},Fraction:function Fraction(x){return!1},Complex:function Complex(x){return x.isNaN()},Unit:function Unit(x){return Number.isNaN(x.value)},"Array | Matrix":function ArrayMatrix(x){return(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,Number.isNaN)}})}))},"./node_modules/mathjs/lib/esm/function/utils/isNegative.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return createIsNegative}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/utils.js"),dependencies=["typed"],createIsNegative=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isNegative",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isNegative",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.Tk,BigNumber:function BigNumber(x){return x.isNeg()&&!x.isZero()&&!x.isNaN()},Fraction:function Fraction(x){return x.s<0},Unit:typed.referToSelf((self=>x=>typed.find(self,x.valueType())(x.value))),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/utils/isNumeric.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return createIsNumeric}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createIsNumeric=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isNumeric",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isNumeric",{"number | BigNumber | Fraction | boolean":()=>!0,"Complex | Unit | string | null | undefined | Node":()=>!1,"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/utils/isPositive.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return createIsPositive}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/utils.js"),dependencies=["typed"],createIsPositive=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isPositive",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isPositive",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.r,BigNumber:function BigNumber(x){return!x.isNeg()&&!x.isZero()&&!x.isNaN()},Fraction:function Fraction(x){return x.s>0&&x.n>0},Unit:typed.referToSelf((self=>x=>typed.find(self,x.valueType())(x.value))),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/utils/isPrime.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return createIsPrime}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createIsPrime=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isPrime",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isPrime",{number:function number(x){if(0*x!=0)return!1;if(x<=3)return x>1;if(x%2==0||x%3==0)return!1;for(var i=5;i*i<=x;i+=6)if(x%i==0||x%(i+2)==0)return!1;return!0},BigNumber:function BigNumber(n){if(0*n.toNumber()!=0)return!1;if(n.lte(3))return n.gt(1);if(n.mod(2).eq(0)||n.mod(3).eq(0))return!1;if(n.lt(Math.pow(2,32))){for(var x=n.toNumber(),i=5;i*i<=x;i+=6)if(x%i==0||x%(i+2)==0)return!1;return!0}function modPow(base,exponent,modulus){for(var accumulator=1;!exponent.eq(0);)exponent.mod(2).eq(0)?(exponent=exponent.div(2),base=base.mul(base).mod(modulus)):(exponent=exponent.sub(1),accumulator=base.mul(accumulator).mod(modulus));return accumulator}for(var Decimal=n.constructor.clone({precision:2*n.toFixed(0).length}),r=0,d=(n=new Decimal(n)).sub(1);d.mod(2).eq(0);)d=d.div(2),r+=1;var bases=null;if(n.lt("3317044064679887385961981"))bases=[2,3,5,7,11,13,17,19,23,29,31,37,41].filter((x=>xx=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/utils/isZero.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{t:function(){return createIsZero}});var _utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/plain/number/utils.js"),dependencies=["typed"],createIsZero=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("isZero",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("isZero",{number:_plain_number_index_js__WEBPACK_IMPORTED_MODULE_1__.hG,BigNumber:function BigNumber(x){return x.isZero()},Complex:function Complex(x){return 0===x.re&&0===x.im},Fraction:function Fraction(x){return 1===x.d&&0===x.n},Unit:typed.referToSelf((self=>x=>typed.find(self,x.valueType())(x.value))),"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/function/utils/numeric.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return createNumeric}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/noop.js"),dependencies=["number","?bignumber","?fraction"],createNumeric=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("numeric",dependencies,(_ref=>{var{number:_number,bignumber:bignumber,fraction:fraction}=_ref,validInputTypes={string:!0,number:!0,BigNumber:!0,Fraction:!0},validOutputTypes={number:x=>_number(x),BigNumber:bignumber?x=>bignumber(x):_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__.R3,Fraction:fraction?x=>fraction(x):_utils_noop_js__WEBPACK_IMPORTED_MODULE_1__.nG};return function numeric(value){var outputType=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(void 0!==(arguments.length>2?arguments[2]:void 0))throw new SyntaxError("numeric() takes one or two arguments");var inputType=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kM)(value);if(!(inputType in validInputTypes))throw new TypeError("Cannot convert "+value+' of type "'+inputType+'"; valid input types are '+Object.keys(validInputTypes).join(", "));if(!(outputType in validOutputTypes))throw new TypeError("Cannot convert "+value+' to type "'+outputType+'"; valid output types are '+Object.keys(validOutputTypes).join(", "));return outputType===inputType?value:validOutputTypes[outputType](value)}}))},"./node_modules/mathjs/lib/esm/function/utils/typeOf.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return createTypeOf}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),dependencies=["typed"],createTypeOf=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("typeOf",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("typeOf",{any:_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM})}))},"./node_modules/mathjs/lib/esm/json/replacer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return createReplacer}});var dependencies=[],createReplacer=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("replacer",dependencies,(()=>function replacer(key,value){return"number"!=typeof value||isFinite(value)&&!isNaN(value)?value:{mathjs:"number",value:String(value)}}))},"./node_modules/mathjs/lib/esm/plain/number/arithmetic.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$y:function(){return signNumber},B:function(){return expm1Number},Dv:function(){return cubeNumber},Ft:function(){return addNumber},G6:function(){return multiplyNumber},GC:function(){return unaryMinusNumber},K4:function(){return lcmNumber},OS:function(){return logNumber},Q1:function(){return absNumber},QV:function(){return roundNumber},Ue:function(){return powNumber},YS:function(){return nthRootNumber},_$:function(){return squareNumber},hz:function(){return subtractNumber},iO:function(){return log2Number},iU:function(){return unaryPlusNumber},ih:function(){return cbrtNumber},qX:function(){return expNumber},vU:function(){return log10Number},y9:function(){return xgcdNumber}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),n1="number",n2="number, number";function absNumber(a){return Math.abs(a)}function addNumber(a,b){return a+b}function subtractNumber(a,b){return a-b}function multiplyNumber(a,b){return a*b}function unaryMinusNumber(x){return-x}function unaryPlusNumber(x){return x}function cbrtNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.eK)(x)}function cubeNumber(x){return x*x*x}function expNumber(x){return Math.exp(x)}function expm1Number(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.t$)(x)}function lcmNumber(a,b){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(a)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(b))throw new Error("Parameters in function lcm must be integer numbers");if(0===a||0===b)return 0;for(var t,prod=a*b;0!==b;)b=a%(t=b),a=t;return Math.abs(prod/a)}function logNumber(x,y){return y?Math.log(x)/Math.log(y):Math.log(x)}function log10Number(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.mv)(x)}function log2Number(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.k3)(x)}function nthRootNumber(a){var root=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,inv=root<0;if(inv&&(root=-root),0===root)throw new Error("Root must be non-zero");if(a<0&&Math.abs(root)%2!=1)throw new Error("Root must be odd when a is negative.");if(0===a)return inv?1/0:0;if(!isFinite(a))return inv?0:a;var x=Math.pow(Math.abs(a),1/root);return x=a<0?-x:x,inv?1/x:x}function signNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.Xx)(x)}function squareNumber(x){return x*x}function xgcdNumber(a,b){var t,q,r,x=0,lastx=1,y=1,lasty=0;if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(a)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(b))throw new Error("Parameters in function xgcd must be integer numbers");for(;b;)r=a-(q=Math.floor(a/b))*b,t=x,x=lastx-q*x,lastx=t,t=y,y=lasty-q*y,lasty=t,a=b,b=r;return a<0?[-a,-lastx,-lasty]:[a,a?lastx:0,lasty]}function powNumber(x,y){return x*x<1&&y===1/0||x*x>1&&y===-1/0?0:Math.pow(x,y)}function roundNumber(value){var decimals=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(decimals)||decimals<0||decimals>15)throw new Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat((0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.FH)(value,decimals))}absNumber.signature=n1,addNumber.signature=n2,subtractNumber.signature=n2,multiplyNumber.signature=n2,unaryMinusNumber.signature=n1,unaryPlusNumber.signature=n1,cbrtNumber.signature=n1,cubeNumber.signature=n1,expNumber.signature=n1,expm1Number.signature=n1,lcmNumber.signature=n2,log10Number.signature=n1,log2Number.signature=n1,signNumber.signature=n1,squareNumber.signature=n1,xgcdNumber.signature=n2,powNumber.signature=n2},"./node_modules/mathjs/lib/esm/plain/number/bitwise.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{LE:function(){return bitOrNumber},Lz:function(){return rightArithShiftNumber},NA:function(){return bitNotNumber},ZG:function(){return leftShiftNumber},ji:function(){return rightLogShiftNumber},qC:function(){return bitAndNumber},xS:function(){return bitXorNumber}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),n2="number, number";function bitAndNumber(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(y))throw new Error("Integers expected in function bitAnd");return x&y}function bitNotNumber(x){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x))throw new Error("Integer expected in function bitNot");return~x}function bitOrNumber(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(y))throw new Error("Integers expected in function bitOr");return x|y}function bitXorNumber(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(y))throw new Error("Integers expected in function bitXor");return x^y}function leftShiftNumber(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(y))throw new Error("Integers expected in function leftShift");return x<>y}function rightLogShiftNumber(x,y){if(!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(x)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(y))throw new Error("Integers expected in function rightLogShift");return x>>>y}bitAndNumber.signature=n2,bitNotNumber.signature="number",bitOrNumber.signature=n2,bitXorNumber.signature=n2,leftShiftNumber.signature=n2,rightArithShiftNumber.signature=n2,rightLogShiftNumber.signature=n2},"./node_modules/mathjs/lib/esm/plain/number/logical.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{FO:function(){return andNumber},RY:function(){return orNumber},kl:function(){return xorNumber},xY:function(){return notNumber}});var n2="number, number";function notNumber(x){return!x}function orNumber(x,y){return!(!x&&!y)}function xorNumber(x,y){return!!x!=!!y}function andNumber(x,y){return!(!x||!y)}notNumber.signature="number",orNumber.signature=n2,xorNumber.signature=n2,andNumber.signature=n2},"./node_modules/mathjs/lib/esm/plain/number/probability.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Oo:function(){return lgammaNumber},Yc:function(){return gammaG},lG:function(){return gammaP},uS:function(){return lnSqrt2PI},wZ:function(){return gammaNumber}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_product_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/product.js");function gammaNumber(n){var x;if((0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.U)(n))return n<=0?isFinite(n)?1/0:NaN:n>171?1/0:(0,_utils_product_js__WEBPACK_IMPORTED_MODULE_1__.O)(1,n-1);if(n<.5)return Math.PI/(Math.sin(Math.PI*n)*gammaNumber(1-n));if(n>=171.35)return 1/0;if(n>85){var twoN=n*n,threeN=twoN*n,fourN=threeN*n,fiveN=fourN*n;return Math.sqrt(2*Math.PI/n)*Math.pow(n/Math.E,n)*(1+1/(12*n)+1/(288*twoN)-139/(51840*threeN)-571/(2488320*fourN)+163879/(209018880*fiveN)+5246819/(75246796800*fiveN*n))}--n,x=gammaP[0];for(var i=1;i=1;i--)sum+=lgammaSeries[i]/(n+i);return lnSqrt2PI+(n+.5)*Math.log(base)-base+Math.log(sum)}lgammaNumber.signature="number"},"./node_modules/mathjs/lib/esm/plain/number/trigonometry.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F4:function(){return acschNumber},LJ:function(){return acothNumber},Nw:function(){return cotNumber},Pe:function(){return asechNumber},Rm:function(){return asinhNumber},Sz:function(){return atanhNumber},T$:function(){return sinhNumber},VL:function(){return acscNumber},c$:function(){return cscNumber},cw:function(){return acoshNumber},pL:function(){return sechNumber},wX:function(){return secNumber},ws:function(){return cothNumber},y:function(){return acotNumber},zq:function(){return asecNumber},zr:function(){return cschNumber}});var _utils_number_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),n1="number";function acoshNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.__)(x)}function acotNumber(x){return Math.atan(1/x)}function acothNumber(x){return isFinite(x)?(Math.log((x+1)/x)+Math.log(x/(x-1)))/2:0}function acscNumber(x){return Math.asin(1/x)}function acschNumber(x){var xInv=1/x;return Math.log(xInv+Math.sqrt(xInv*xInv+1))}function asecNumber(x){return Math.acos(1/x)}function asechNumber(x){var xInv=1/x,ret=Math.sqrt(xInv*xInv-1);return Math.log(ret+xInv)}function asinhNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.Vf)(x)}function atanhNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.C8)(x)}function cotNumber(x){return 1/Math.tan(x)}function cothNumber(x){var e=Math.exp(2*x);return(e+1)/(e-1)}function cscNumber(x){return 1/Math.sin(x)}function cschNumber(x){return 0===x?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(x)-Math.exp(-x)))*(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.Xx)(x)}function secNumber(x){return 1/Math.cos(x)}function sechNumber(x){return 2/(Math.exp(x)+Math.exp(-x))}function sinhNumber(x){return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_0__.R_)(x)}acoshNumber.signature=n1,acotNumber.signature=n1,acothNumber.signature=n1,acscNumber.signature=n1,acschNumber.signature=n1,asecNumber.signature=n1,asechNumber.signature=n1,asinhNumber.signature=n1,atanhNumber.signature=n1,cotNumber.signature=n1,cothNumber.signature=n1,cscNumber.signature=n1,cschNumber.signature=n1,secNumber.signature=n1,sechNumber.signature=n1,sinhNumber.signature=n1},"./node_modules/mathjs/lib/esm/plain/number/utils.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Tk:function(){return isNegativeNumber},hG:function(){return isZeroNumber},kU:function(){return isNaNNumber},r:function(){return isPositiveNumber}});__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js");var n1="number";function isNegativeNumber(x){return x<0}function isPositiveNumber(x){return x>0}function isZeroNumber(x){return 0===x}function isNaNNumber(x){return Number.isNaN(x)}isNegativeNumber.signature=n1,isPositiveNumber.signature=n1,isZeroNumber.signature=n1,isNaNNumber.signature=n1},"./node_modules/mathjs/lib/esm/type/bignumber/BigNumber.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createBigNumberClass}});var decimal_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/decimal.js/decimal.mjs"),dependencies=["?on","config"],createBigNumberClass=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("BigNumber",dependencies,(_ref=>{var{on:on,config:config}=_ref,BigNumber=decimal_js__WEBPACK_IMPORTED_MODULE_0__.Z.clone({precision:config.precision,modulo:decimal_js__WEBPACK_IMPORTED_MODULE_0__.Z.EUCLID});return BigNumber.prototype=Object.create(BigNumber.prototype),BigNumber.prototype.type="BigNumber",BigNumber.prototype.isBigNumber=!0,BigNumber.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},BigNumber.fromJSON=function(json){return new BigNumber(json.value)},on&&on("config",(function(curr,prev){curr.precision!==prev.precision&&BigNumber.config({precision:curr.precision})})),BigNumber}),{isClass:!0})},"./node_modules/mathjs/lib/esm/type/bignumber/function/bignumber.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:function(){return createBignumber}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed","BigNumber"],createBignumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("bignumber",dependencies,(_ref=>{var{typed:typed,BigNumber:BigNumber}=_ref;return typed("bignumber",{"":function _(){return new BigNumber(0)},number:function number(x){return new BigNumber(x+"")},string:function string(x){var wordSizeSuffixMatch=x.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(wordSizeSuffixMatch){var size=wordSizeSuffixMatch[2],n=BigNumber(wordSizeSuffixMatch[1]),twoPowSize=new BigNumber(2).pow(Number(size));if(n.gt(twoPowSize.sub(1)))throw new SyntaxError('String "'.concat(x,'" is out of range'));var twoPowSizeSubOne=new BigNumber(2).pow(Number(size)-1);return n.gte(twoPowSizeSubOne)?n.sub(twoPowSize):n}return new BigNumber(x)},BigNumber:function BigNumber(x){return x},Unit:typed.referToSelf((self=>x=>{var clone=x.clone();return clone.value=self(x.value),clone})),Fraction:function Fraction(x){return new BigNumber(x.n).div(x.d).times(x.s)},null:function _null(x){return new BigNumber(0)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/type/boolean.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return createBoolean}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"],createBoolean=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("boolean",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("boolean",{"":function _(){return!1},boolean:function boolean(x){return x},number:function number(x){return!!x},null:function _null(x){return!1},BigNumber:function BigNumber(x){return!x.isZero()},string:function string(x){var lcase=x.toLowerCase();if("true"===lcase)return!0;if("false"===lcase)return!1;var num=Number(x);if(""!==x&&!isNaN(num))return!!num;throw new Error('Cannot convert "'+x+'" to a boolean')},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/type/complex/Complex.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createComplexClass}});var complex_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/complex.js/complex.js"),complex_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(complex_js__WEBPACK_IMPORTED_MODULE_0__),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),dependencies=[],createComplexClass=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("Complex",dependencies,(()=>(Object.defineProperty(complex_js__WEBPACK_IMPORTED_MODULE_0___default(),"name",{value:"Complex"}),complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.constructor=complex_js__WEBPACK_IMPORTED_MODULE_0___default(),complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.type="Complex",complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.isComplex=!0,complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},complex_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.format=function(options){var im=this.im,re=this.re,strRe=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.WU)(this.re,options),strIm=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.WU)(this.im,options),precision=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_3__.hj)(options)?options:options?options.precision:null;if(null!==precision){var epsilon=Math.pow(10,-precision);Math.abs(re/im)b.re?1:a.reb.im?1:a.im{var{typed:typed,Complex:Complex}=_ref;return typed("complex",{"":function _(){return Complex.ZERO},number:function number(x){return new Complex(x,0)},"number, number":function numberNumber(re,im){return new Complex(re,im)},"BigNumber, BigNumber":function BigNumberBigNumber(re,im){return new Complex(re.toNumber(),im.toNumber())},Fraction:function Fraction(x){return new Complex(x.valueOf(),0)},Complex:function Complex(x){return x.clone()},string:function string(x){return Complex(x)},null:function _null(x){return Complex(0)},Object:function Object(x){if("re"in x&&"im"in x)return new Complex(x.re,x.im);if("r"in x&&"phi"in x||"abs"in x&&"arg"in x)return new Complex(x);throw new Error("Expected object with properties (re and im) or (r and phi) or (abs and arg)")},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/type/fraction/Fraction.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return createFractionClass}});var fraction_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/fraction.js/fraction.js"),fraction_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(fraction_js__WEBPACK_IMPORTED_MODULE_0__),dependencies=[],createFractionClass=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("Fraction",dependencies,(()=>(Object.defineProperty(fraction_js__WEBPACK_IMPORTED_MODULE_0___default(),"name",{value:"Fraction"}),fraction_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.constructor=fraction_js__WEBPACK_IMPORTED_MODULE_0___default(),fraction_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.type="Fraction",fraction_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.isFraction=!0,fraction_js__WEBPACK_IMPORTED_MODULE_0___default().prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},fraction_js__WEBPACK_IMPORTED_MODULE_0___default().fromJSON=function(json){return new(fraction_js__WEBPACK_IMPORTED_MODULE_0___default())(json)},fraction_js__WEBPACK_IMPORTED_MODULE_0___default())),{isClass:!0})},"./node_modules/mathjs/lib/esm/type/fraction/function/fraction.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return createFraction}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed","Fraction"],createFraction=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("fraction",dependencies,(_ref=>{var{typed:typed,Fraction:Fraction}=_ref;return typed("fraction",{number:function number(x){if(!isFinite(x)||isNaN(x))throw new Error(x+" cannot be represented as a fraction");return new Fraction(x)},string:function string(x){return new Fraction(x)},"number, number":function numberNumber(numerator,denominator){return new Fraction(numerator,denominator)},null:function _null(x){return new Fraction(0)},BigNumber:function BigNumber(x){return new Fraction(x.toString())},Fraction:function Fraction(x){return x},Unit:typed.referToSelf((self=>x=>{var clone=x.clone();return clone.value=self(x.value),clone})),Object:function Object(x){return new Fraction(x)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/type/matrix/DenseMatrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return createDenseMatrixClass}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_array_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/error/DimensionError.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_function_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/function.js"),dependencies=["Matrix"],createDenseMatrixClass=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("DenseMatrix",dependencies,(_ref=>{var{Matrix:Matrix}=_ref;function DenseMatrix(data,datatype){if(!(this instanceof DenseMatrix))throw new SyntaxError("Constructor must be called with the new operator");if(datatype&&!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.HD)(datatype))throw new Error("Invalid datatype: "+datatype);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(data))"DenseMatrix"===data.type?(this._data=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(data._data),this._size=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(data._size),this._datatype=datatype||data._datatype):(this._data=data.toArray(),this._size=data.size(),this._datatype=datatype||data._datatype);else if(data&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.data)&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.size))this._data=data.data,this._size=data.size,(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Gu)(this._data,this._size),this._datatype=datatype||data.datatype;else if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data))this._data=preprocess(data),this._size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.aJ)(this._data),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Gu)(this._data,this._size),this._datatype=datatype;else{if(data)throw new TypeError("Unsupported type of data ("+(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(data)+")");this._data=[],this._size=[0],this._datatype=datatype}}function _getSubmatrix(data,index,dims,dim){var last=dim===dims-1,range=index.dimension(dim);return last?range.map((function(i){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(i,data.length),data[i]})).valueOf():range.map((function(i){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(i,data.length),_getSubmatrix(data[i],index,dims,dim+1)})).valueOf()}function _setSubmatrix(data,index,submatrix,dims,dim){var last=dim===dims-1,range=index.dimension(dim);last?range.forEach((function(dataIndex,subIndex){(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(dataIndex),data[dataIndex]=submatrix[subIndex[0]]})):range.forEach((function(dataIndex,subIndex){(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(dataIndex),_setSubmatrix(data[dataIndex],index,submatrix[subIndex[0]],dims,dim+1)}))}function _resize(matrix,size,defaultValue){if(0===size.length){for(var v=matrix._data;(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(v);)v=v[0];return v}return matrix._size=size.slice(0),matrix._data=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.SI)(matrix._data,matrix._size,defaultValue),matrix}function _fit(matrix,size,defaultValue){for(var newSize=matrix._size.slice(0),changed=!1;newSize.lengthnewSize[i]&&(newSize[i]=size[i],changed=!0);changed&&_resize(matrix,newSize,defaultValue)}function preprocess(data){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(data)?preprocess(data.valueOf()):(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data)?data.map(preprocess):data}return DenseMatrix.prototype=new Matrix,DenseMatrix.prototype.createDenseMatrix=function(data,datatype){return new DenseMatrix(data,datatype)},Object.defineProperty(DenseMatrix,"name",{value:"DenseMatrix"}),DenseMatrix.prototype.constructor=DenseMatrix,DenseMatrix.prototype.type="DenseMatrix",DenseMatrix.prototype.isDenseMatrix=!0,DenseMatrix.prototype.getDataType=function(){return(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.$q)(this._data,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)},DenseMatrix.prototype.storage=function(){return"dense"},DenseMatrix.prototype.datatype=function(){return this._datatype},DenseMatrix.prototype.create=function(data,datatype){return new DenseMatrix(data,datatype)},DenseMatrix.prototype.subset=function(index,replacement,defaultValue){switch(arguments.length){case 1:return function _get(matrix,index){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.dh)(index))throw new TypeError("Invalid index");var isScalar=index.isScalar();if(isScalar)return matrix.get(index.min());var size=index.size();if(size.length!==matrix._size.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_4__.m(size.length,matrix._size.length);for(var min=index.min(),max=index.max(),i=0,ii=matrix._size.length;i");var size=index.max().map((function(i){return i+1}));_fit(matrix,size,defaultValue);var dims=iSize.length,dim=0;_setSubmatrix(matrix._data,index,submatrix,dims,dim)}return matrix}(this,index,replacement,defaultValue);default:throw new SyntaxError("Wrong number of arguments")}},DenseMatrix.prototype.get=function(index){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(index))throw new TypeError("Array expected");if(index.length!==this._size.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_4__.m(index.length,this._size.length);for(var x=0;xArray.isArray(value)&&1===value.length?value[0]:value));return _resize(copy?this.clone():this,sizeArray,defaultValue)},DenseMatrix.prototype.reshape=function(size,copy){var m=copy?this.clone():this;m._data=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.XL)(m._data,size);var currentLength=m._size.reduce(((length,size)=>length*size));return m._size=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.eu)(size,currentLength),m},DenseMatrix.prototype.clone=function(){return new DenseMatrix({data:(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(this._data),size:(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(this._size),datatype:this._datatype})},DenseMatrix.prototype.size=function(){return this._size.slice(0)},DenseMatrix.prototype.map=function(callback){var me=this,args=(0,_utils_function_js__WEBPACK_IMPORTED_MODULE_5__.oV)(callback),data=function recurse(value,index){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(value)?value.map((function(child,i){return recurse(child,index.concat(i))})):1===args?callback(value):2===args?callback(value,index):callback(value,index,me)}(this._data,[]);return new DenseMatrix(data,void 0!==this._datatype?(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.$q)(data,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM):void 0)},DenseMatrix.prototype.forEach=function(callback){var me=this;!function recurse(value,index){(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(value)?value.forEach((function(child,i){recurse(child,index.concat(i))})):callback(value,index,me)}(this._data,[])},DenseMatrix.prototype[Symbol.iterator]=function*(){yield*function*recurse(value,index){if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(value))for(var i=0;i[row[i]]));result.push(new DenseMatrix(col,_this._datatype))},i=0;i0?k:0,kSub=k<0?-k:0,rows=this._size[0],columns=this._size[1],n=Math.min(rows-kSub,columns-kSuper),data=[],i=0;i0?k:0,kSub=k<0?-k:0,rows=size[0],columns=size[1],n=Math.min(rows-kSub,columns-kSuper);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(value)){if(value.length!==n)throw new Error("Invalid value array length");_value=function _value(i){return value[i]}}else if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(value)){var ms=value.size();if(1!==ms.length||ms[0]!==n)throw new Error("Invalid matrix length");_value=function _value(i){return value.get([i])}}else _value=function _value(){return value};defaultValue||(defaultValue=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(_value(0))?_value(0).mul(0):0);var data=[];if(size.length>0){data=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.SI)(data,size,defaultValue);for(var d=0;d{var{smaller:smaller,larger:larger}=_ref,oneOverLogPhi=1/Math.log((1+Math.sqrt(5))/2);function FibonacciHeap(){if(!(this instanceof FibonacciHeap))throw new SyntaxError("Constructor must be called with the new operator");this._minimum=null,this._size=0}function _cut(minimum,node,parent){node.left.right=node.right,node.right.left=node.left,parent.degree--,parent.child===node&&(parent.child=node.right),0===parent.degree&&(parent.child=null),node.left=minimum,node.right=minimum.right,minimum.right=node,node.right.left=node,node.parent=null,node.mark=!1}function _cascadingCut(minimum,node){var parent=node.parent;parent&&(node.mark?(_cut(minimum,node,parent),_cascadingCut(parent)):node.mark=!0)}FibonacciHeap.prototype.type="FibonacciHeap",FibonacciHeap.prototype.isFibonacciHeap=!0,FibonacciHeap.prototype.insert=function(key,value){var node={key:key,value:value,degree:0};if(this._minimum){var minimum=this._minimum;node.left=minimum,node.right=minimum.right,minimum.right=node,node.right.left=node,smaller(key,minimum.key)&&(this._minimum=node)}else node.left=node,node.right=node,this._minimum=node;return this._size++,node},FibonacciHeap.prototype.size=function(){return this._size},FibonacciHeap.prototype.clear=function(){this._minimum=null,this._size=0},FibonacciHeap.prototype.isEmpty=function(){return 0===this._size},FibonacciHeap.prototype.extractMinimum=function(){var node=this._minimum;if(null===node)return node;for(var minimum=this._minimum,numberOfChildren=node.degree,x=node.child;numberOfChildren>0;){var tempRight=x.right;x.left.right=x.right,x.right.left=x.left,x.left=minimum,x.right=minimum.right,minimum.right=x,x.right.left=x,x.parent=null,x=tempRight,numberOfChildren--}return node.left.right=node.right,node.right.left=node.left,minimum=node===node.right?null:function _findMinimumNode(minimum,size){var y,arraySize=Math.floor(Math.log(size)*oneOverLogPhi)+1,array=new Array(arraySize),numRoots=0,x=minimum;if(x)for(numRoots++,x=x.right;x!==minimum;)numRoots++,x=x.right;for(;numRoots>0;){for(var d=x.degree,next=x.right;y=array[d];){if(larger(x.key,y.key)){var temp=y;y=x,x=temp}_linkNodes(y,x),array[d]=null,d++}array[d]=x,x=next,numRoots--}minimum=null;for(var i=0;i{var{smaller:smaller,DenseMatrix:DenseMatrix}=_ref;function ImmutableDenseMatrix(data,datatype){if(!(this instanceof ImmutableDenseMatrix))throw new SyntaxError("Constructor must be called with the new operator");if(datatype&&!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.HD)(datatype))throw new Error("Invalid datatype: "+datatype);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(data)||(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data)){var matrix=new DenseMatrix(data,datatype);this._data=matrix._data,this._size=matrix._size,this._datatype=matrix._datatype,this._min=null,this._max=null}else if(data&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.data)&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.size))this._data=data.data,this._size=data.size,this._datatype=data.datatype,this._min=void 0!==data.min?data.min:null,this._max=void 0!==data.max?data.max:null;else{if(data)throw new TypeError("Unsupported type of data ("+(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(data)+")");this._data=[],this._size=[0],this._datatype=datatype,this._min=null,this._max=null}}return ImmutableDenseMatrix.prototype=new DenseMatrix,ImmutableDenseMatrix.prototype.type="ImmutableDenseMatrix",ImmutableDenseMatrix.prototype.isImmutableDenseMatrix=!0,ImmutableDenseMatrix.prototype.subset=function(index){switch(arguments.length){case 1:var m=DenseMatrix.prototype.subset.call(this,index);return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(m)?new ImmutableDenseMatrix({data:m._data,size:m._size,datatype:m._datatype}):m;case 2:case 3:throw new Error("Cannot invoke set subset on an Immutable Matrix instance");default:throw new SyntaxError("Wrong number of arguments")}},ImmutableDenseMatrix.prototype.set=function(){throw new Error("Cannot invoke set on an Immutable Matrix instance")},ImmutableDenseMatrix.prototype.resize=function(){throw new Error("Cannot invoke resize on an Immutable Matrix instance")},ImmutableDenseMatrix.prototype.reshape=function(){throw new Error("Cannot invoke reshape on an Immutable Matrix instance")},ImmutableDenseMatrix.prototype.clone=function(){return new ImmutableDenseMatrix({data:(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(this._data),size:(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(this._size),datatype:this._datatype})},ImmutableDenseMatrix.prototype.toJSON=function(){return{mathjs:"ImmutableDenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},ImmutableDenseMatrix.fromJSON=function(json){return new ImmutableDenseMatrix(json)},ImmutableDenseMatrix.prototype.swapRows=function(){throw new Error("Cannot invoke swapRows on an Immutable Matrix instance")},ImmutableDenseMatrix.prototype.min=function(){if(null===this._min){var m=null;this.forEach((function(v){(null===m||smaller(v,m))&&(m=v)})),this._min=null!==m?m:void 0}return this._min},ImmutableDenseMatrix.prototype.max=function(){if(null===this._max){var m=null;this.forEach((function(v){(null===m||smaller(m,v))&&(m=v)})),this._max=null!==m?m:void 0}return this._max},ImmutableDenseMatrix}),{isClass:!0})},"./node_modules/mathjs/lib/esm/type/matrix/Matrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{K:function(){return createMatrixClass}});var dependencies=[],createMatrixClass=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("Matrix",dependencies,(()=>{function Matrix(){if(!(this instanceof Matrix))throw new SyntaxError("Constructor must be called with the new operator")}return Matrix.prototype.type="Matrix",Matrix.prototype.isMatrix=!0,Matrix.prototype.storage=function(){throw new Error("Cannot invoke storage on a Matrix interface")},Matrix.prototype.datatype=function(){throw new Error("Cannot invoke datatype on a Matrix interface")},Matrix.prototype.create=function(data,datatype){throw new Error("Cannot invoke create on a Matrix interface")},Matrix.prototype.subset=function(index,replacement,defaultValue){throw new Error("Cannot invoke subset on a Matrix interface")},Matrix.prototype.get=function(index){throw new Error("Cannot invoke get on a Matrix interface")},Matrix.prototype.set=function(index,value,defaultValue){throw new Error("Cannot invoke set on a Matrix interface")},Matrix.prototype.resize=function(size,defaultValue){throw new Error("Cannot invoke resize on a Matrix interface")},Matrix.prototype.reshape=function(size,defaultValue){throw new Error("Cannot invoke reshape on a Matrix interface")},Matrix.prototype.clone=function(){throw new Error("Cannot invoke clone on a Matrix interface")},Matrix.prototype.size=function(){throw new Error("Cannot invoke size on a Matrix interface")},Matrix.prototype.map=function(callback,skipZeros){throw new Error("Cannot invoke map on a Matrix interface")},Matrix.prototype.forEach=function(callback){throw new Error("Cannot invoke forEach on a Matrix interface")},Matrix.prototype[Symbol.iterator]=function(){throw new Error("Cannot iterate a Matrix interface")},Matrix.prototype.toArray=function(){throw new Error("Cannot invoke toArray on a Matrix interface")},Matrix.prototype.valueOf=function(){throw new Error("Cannot invoke valueOf on a Matrix interface")},Matrix.prototype.format=function(options){throw new Error("Cannot invoke format on a Matrix interface")},Matrix.prototype.toString=function(){throw new Error("Cannot invoke toString on a Matrix interface")},Matrix}),{isClass:!0})},"./node_modules/mathjs/lib/esm/type/matrix/MatrixIndex.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return createIndexClass}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["ImmutableDenseMatrix","getMatrixDataType"],createIndexClass=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("Index",dependencies,(_ref=>{var{ImmutableDenseMatrix:ImmutableDenseMatrix,getMatrixDataType:getMatrixDataType}=_ref;function Index(ranges){if(!(this instanceof Index))throw new SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._sourceSize=[],this._isScalar=!0;for(var i=0,ii=arguments.length;i{bool&&indexOfNumbers.push(idx)})),indexOfNumbers}},"./node_modules/mathjs/lib/esm/type/matrix/Range.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return createRangeClass}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),dependencies=[],createRangeClass=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("Range",dependencies,(()=>{function Range(start,end,step){if(!(this instanceof Range))throw new SyntaxError("Constructor must be called with the new operator");var hasStart=null!=start,hasEnd=null!=end,hasStep=null!=step;if(hasStart)if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(start))start=start.toNumber();else if("number"!=typeof start)throw new TypeError("Parameter start must be a number");if(hasEnd)if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(end))end=end.toNumber();else if("number"!=typeof end)throw new TypeError("Parameter end must be a number");if(hasStep)if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(step))step=step.toNumber();else if("number"!=typeof step)throw new TypeError("Parameter step must be a number");this.start=hasStart?parseFloat(start):0,this.end=hasEnd?parseFloat(end):0,this.step=hasStep?parseFloat(step):1}return Range.prototype.type="Range",Range.prototype.isRange=!0,Range.parse=function(str){if("string"!=typeof str)return null;var nums=str.split(":").map((function(arg){return parseFloat(arg)}));if(nums.some((function(num){return isNaN(num)})))return null;switch(nums.length){case 2:return new Range(nums[0],nums[1]);case 3:return new Range(nums[0],nums[2],nums[1]);default:return null}},Range.prototype.clone=function(){return new Range(this.start,this.end,this.step)},Range.prototype.size=function(){var len=0,start=this.start,step=this.step,diff=this.end-start;return(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.Xx)(step)===(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.Xx)(diff)?len=Math.ceil(diff/step):0===diff&&(len=0),isNaN(len)&&(len=0),[len]},Range.prototype.min=function(){var size=this.size()[0];return size>0?this.step>0?this.start:this.start+(size-1)*this.step:void 0},Range.prototype.max=function(){var size=this.size()[0];return size>0?this.step>0?this.start+(size-1)*this.step:this.start:void 0},Range.prototype.forEach=function(callback){var x=this.start,step=this.step,end=this.end,i=0;if(step>0)for(;xend;)callback(x,[i],this),x+=step,i++},Range.prototype.map=function(callback){var array=[];return this.forEach((function(value,index,obj){array[index[0]]=callback(value,index,obj)})),array},Range.prototype.toArray=function(){var array=[];return this.forEach((function(value,index){array[index[0]]=value})),array},Range.prototype.valueOf=function(){return this.toArray()},Range.prototype.format=function(options){var str=(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.WU)(this.start,options);return 1!==this.step&&(str+=":"+(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.WU)(this.step,options)),str+=":"+(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_2__.WU)(this.end,options)},Range.prototype.toString=function(){return this.format()},Range.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},Range.fromJSON=function(json){return new Range(json.start,json.end,json.step)},Range}),{isClass:!0})},"./node_modules/mathjs/lib/esm/type/matrix/Spa.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{W:function(){return createSpaClass}});var dependencies=["addScalar","equalScalar","FibonacciHeap"],createSpaClass=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("Spa",dependencies,(_ref=>{var{addScalar:addScalar,equalScalar:equalScalar,FibonacciHeap:FibonacciHeap}=_ref;function Spa(){if(!(this instanceof Spa))throw new SyntaxError("Constructor must be called with the new operator");this._values=[],this._heap=new FibonacciHeap}return Spa.prototype.type="Spa",Spa.prototype.isSpa=!0,Spa.prototype.set=function(i,v){if(this._values[i])this._values[i].value=v;else{var node=this._heap.insert(i,v);this._values[i]=node}},Spa.prototype.get=function(i){var node=this._values[i];return node?node.value:0},Spa.prototype.accumulate=function(i,v){var node=this._values[i];node?node.value=addScalar(node.value,v):(node=this._heap.insert(i,v),this._values[i]=node)},Spa.prototype.forEach=function(from,to,callback){var heap=this._heap,values=this._values,nodes=[],node=heap.extractMinimum();for(node&&nodes.push(node);node&&node.key<=to;)node.key>=from&&(equalScalar(node.value,0)||callback(node.key,node.value,this)),(node=heap.extractMinimum())&&nodes.push(node);for(var i=0;i{var{typed:typed,equalScalar:equalScalar,Matrix:Matrix}=_ref;function SparseMatrix(data,datatype){if(!(this instanceof SparseMatrix))throw new SyntaxError("Constructor must be called with the new operator");if(datatype&&!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.HD)(datatype))throw new Error("Invalid datatype: "+datatype);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(data))!function _createFromMatrix(matrix,source,datatype){"SparseMatrix"===source.type?(matrix._values=source._values?(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(source._values):void 0,matrix._index=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(source._index),matrix._ptr=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(source._ptr),matrix._size=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_2__.d9)(source._size),matrix._datatype=datatype||source._datatype):_createFromArray(matrix,source.valueOf(),datatype||source._datatype)}(this,data,datatype);else if(data&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.index)&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.ptr)&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data.size))this._values=data.values,this._index=data.index,this._ptr=data.ptr,this._size=data.size,this._datatype=datatype||data.datatype;else if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(data))_createFromArray(this,data,datatype);else{if(data)throw new TypeError("Unsupported type of data ("+(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(data)+")");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=datatype}}function _createFromArray(matrix,data,datatype){matrix._values=[],matrix._index=[],matrix._ptr=[],matrix._datatype=datatype;var rows=data.length,columns=0,eq=equalScalar,zero=0;if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.HD)(datatype)&&(eq=typed.find(equalScalar,[datatype,datatype])||equalScalar,zero=typed.convert(0,datatype)),rows>0){var j=0;do{matrix._ptr.push(matrix._index.length);for(var i=0;ic){for(j=c;jr){if(ins){var n=0;for(j=0;jrows-1&&(matrix._values.splice(k,1),matrix._index.splice(k,1),d++)}matrix._ptr[j]=matrix._values.length}return matrix._size[0]=rows,matrix._size[1]=columns,matrix}function _toArray(values,index,ptr,size,copy){var i,j,rows=size[0],columns=size[1],a=[];for(i=0;i");if(1===iSize.length){index.dimension(0).forEach((function(dataIndex,subIndex){(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(dataIndex),matrix.set([dataIndex,0],submatrix[subIndex[0]],defaultValue)}))}else{var firstDimensionRange=index.dimension(0),secondDimensionRange=index.dimension(1);firstDimensionRange.forEach((function(firstDataIndex,firstSubIndex){(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(firstDataIndex),secondDimensionRange.forEach((function(secondDataIndex,secondSubIndex){(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(secondDataIndex),matrix.set([firstDataIndex,secondDataIndex],submatrix[firstSubIndex[0]][secondSubIndex[0]],defaultValue)}))}))}}return matrix}(this,index,replacement,defaultValue);default:throw new SyntaxError("Wrong number of arguments")}},SparseMatrix.prototype.get=function(index){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(index))throw new TypeError("Array expected");if(index.length!==this._size.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_4__.m(index.length,this._size.length);if(!this._values)throw new Error("Cannot invoke get on a Pattern only matrix");var i=index[0],j=index[1];(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(i,this._size[0]),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(j,this._size[1]);var k=_getValueIndex(i,this._ptr[j],this._ptr[j+1],this._index);return krows-1||j>columns-1)&&(_resize(this,Math.max(i+1,rows),Math.max(j+1,columns),defaultValue),rows=this._size[0],columns=this._size[1]),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(i,rows),(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.Ls)(j,columns);var k=_getValueIndex(i,this._ptr[j],this._ptr[j+1],this._index);return kArray.isArray(value)&&1===value.length?value[0]:value));if(2!==sizeArray.length)throw new Error("Only two dimensions matrix are supported");return sizeArray.forEach((function(value){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(value)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_5__.U)(value)||value<0)throw new TypeError("Invalid size, must contain positive integers (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_6__.WU)(sizeArray)+")")})),_resize(copy?this.clone():this,sizeArray[0],sizeArray[1],defaultValue)},SparseMatrix.prototype.reshape=function(sizes,copy){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(sizes))throw new TypeError("Array expected");if(2!==sizes.length)throw new Error("Sparse matrices can only be reshaped in two dimensions");sizes.forEach((function(value){if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(value)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_5__.U)(value)||value<=-2||0===value)throw new TypeError("Invalid size, must contain positive integers or -1 (size: "+(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_6__.WU)(sizes)+")")}));var currentLength=this._size[0]*this._size[1];if(currentLength!==(sizes=(0,_utils_array_js__WEBPACK_IMPORTED_MODULE_3__.eu)(sizes,currentLength))[0]*sizes[1])throw new Error("Reshaping sparse matrix will result in the wrong number of elements");var m=copy?this.clone():this;if(this._size[0]===sizes[0]&&this._size[1]===sizes[1])return m;for(var colIndex=[],i=0;i=minRow&&i<=maxRow&&invoke(matrix._values[k],i-minRow,j-minColumn)}else{for(var _values={},_k=k0;_k "+(this._values?(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_6__.WU)(this._values[k],options):"X")}return str},SparseMatrix.prototype.toString=function(){return(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_6__.WU)(this.toArray())},SparseMatrix.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},SparseMatrix.prototype.diagonal=function(k){if(k){if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(k)&&(k=k.toNumber()),!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(k)||!(0,_utils_number_js__WEBPACK_IMPORTED_MODULE_5__.U)(k))throw new TypeError("The parameter k must be an integer number")}else k=0;var kSuper=k>0?k:0,kSub=k<0?-k:0,rows=this._size[0],columns=this._size[1],n=Math.min(rows-kSub,columns-kSuper),values=[],index=[],ptr=[];ptr[0]=0;for(var j=kSuper;j0?k:0,kSub=k<0?-k:0,rows=size[0],columns=size[1],n=Math.min(rows-kSub,columns-kSuper);if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(value)){if(value.length!==n)throw new Error("Invalid value array length");_value=function _value(i){return value[i]}}else if((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(value)){var ms=value.size();if(1!==ms.length||ms[0]!==n)throw new Error("Invalid matrix length");_value=function _value(i){return value.get([i])}}else _value=function _value(){return value};for(var values=[],index=[],ptr=[],j=0;j=0&&i=k1||index[ky]!==y)){var vx=values?values[kx]:void 0;index.splice(ky,0,y),values&&values.splice(ky,0,vx),index.splice(ky<=kx?kx+1:kx,1),values&&values.splice(ky<=kx?kx+1:kx,1)}else if(ky=k1||index[kx]!==x)){var vy=values?values[ky]:void 0;index.splice(kx,0,x),values&&values.splice(kx,0,vy),index.splice(kx<=ky?ky+1:ky,1),values&&values.splice(kx<=ky?ky+1:ky,1)}}},SparseMatrix}),{isClass:!0})},"./node_modules/mathjs/lib/esm/type/matrix/function/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return createIndex}});var _utils_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","Index"],createIndex=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("index",dependencies,(_ref=>{var{typed:typed,Index:Index}=_ref;return typed("index",{"...number | string | BigNumber | Range | Array | Matrix":function numberStringBigNumberRangeArrayMatrix(args){var ranges=args.map((function(arg){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(arg)?arg.toNumber():(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.kJ)(arg)||(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.SW)(arg)?arg.map((function(elem){return(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_1__.l9)(elem)?elem.toNumber():elem})):arg})),res=new Index;return Index.apply(res,ranges),res}})}))},"./node_modules/mathjs/lib/esm/type/matrix/function/matrix.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createMatrix}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","Matrix","DenseMatrix","SparseMatrix"],createMatrix=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("matrix",dependencies,(_ref=>{var{typed:typed,Matrix:Matrix,DenseMatrix:DenseMatrix,SparseMatrix:SparseMatrix}=_ref;return typed("matrix",{"":function _(){return _create([])},string:function string(format){return _create([],format)},"string, string":function stringString(format,datatype){return _create([],format,datatype)},Array:function Array(data){return _create(data)},Matrix:function Matrix(data){return _create(data,data.storage())},"Array | Matrix, string":_create,"Array | Matrix, string, string":_create});function _create(data,format,datatype){if("dense"===format||"default"===format||void 0===format)return new DenseMatrix(data,datatype);if("sparse"===format)return new SparseMatrix(data,datatype);throw new TypeError("Unknown matrix type "+JSON.stringify(format)+".")}}))},"./node_modules/mathjs/lib/esm/type/matrix/function/sparse.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return createSparse}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed","SparseMatrix"],createSparse=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("sparse",dependencies,(_ref=>{var{typed:typed,SparseMatrix:SparseMatrix}=_ref;return typed("sparse",{"":function _(){return new SparseMatrix([])},string:function string(datatype){return new SparseMatrix([],datatype)},"Array | Matrix":function ArrayMatrix(data){return new SparseMatrix(data)},"Array | Matrix, string":function ArrayMatrixString(data,datatype){return new SparseMatrix(data,datatype)}})}))},"./node_modules/mathjs/lib/esm/type/matrix/utils/matAlgo01xDSid.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return createMatAlgo01xDSid}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/error/DimensionError.js"),dependencies=["typed"],createMatAlgo01xDSid=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("matAlgo01xDSid",dependencies,(_ref=>{var{typed:typed}=_ref;return function algorithm1(denseMatrix,sparseMatrix,callback,inverse){var adata=denseMatrix._data,asize=denseMatrix._size,adt=denseMatrix._datatype||denseMatrix.getDataType(),bvalues=sparseMatrix._values,bindex=sparseMatrix._index,bptr=sparseMatrix._ptr,bsize=sparseMatrix._size,bdt=sparseMatrix._datatype||void 0===sparseMatrix._data?sparseMatrix._datatype:sparseMatrix.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");if(!bvalues)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var i,j,rows=asize[0],columns=asize[1],dt="string"==typeof adt&&"mixed"!==adt&&adt===bdt?adt:void 0,cf=dt?typed.find(callback,[dt,dt]):callback,cdata=[];for(i=0;i{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo02xDS0(denseMatrix,sparseMatrix,callback,inverse){var adata=denseMatrix._data,asize=denseMatrix._size,adt=denseMatrix._datatype||denseMatrix.getDataType(),bvalues=sparseMatrix._values,bindex=sparseMatrix._index,bptr=sparseMatrix._ptr,bsize=sparseMatrix._size,bdt=sparseMatrix._datatype||void 0===sparseMatrix._data?sparseMatrix._datatype:sparseMatrix.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");if(!bvalues)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));for(var cvalues=[],cindex=[],cptr=[],j=0;j{var{typed:typed}=_ref;return function matAlgo03xDSf(denseMatrix,sparseMatrix,callback,inverse){var adata=denseMatrix._data,asize=denseMatrix._size,adt=denseMatrix._datatype||denseMatrix.getDataType(),bvalues=sparseMatrix._values,bindex=sparseMatrix._index,bptr=sparseMatrix._ptr,bsize=sparseMatrix._size,bdt=sparseMatrix._datatype||void 0===sparseMatrix._data?sparseMatrix._datatype:sparseMatrix.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");if(!bvalues)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var dt,rows=asize[0],columns=asize[1],zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));for(var cdata=[],z=0;z{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo04xSidSid(a,b,callback){var avalues=a._values,aindex=a._index,aptr=a._ptr,asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bvalues=b._values,bindex=b._index,bptr=b._ptr,bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));var i,j,k,k0,k1,cvalues=avalues&&bvalues?[]:void 0,cindex=[],cptr=[],xa=avalues&&bvalues?[]:void 0,xb=avalues&&bvalues?[]:void 0,wa=[],wb=[];for(j=0;j{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo05xSfSf(a,b,callback){var avalues=a._values,aindex=a._index,aptr=a._ptr,asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bvalues=b._values,bindex=b._index,bptr=b._ptr,bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));var i,j,k,k1,cvalues=avalues&&bvalues?[]:void 0,cindex=[],cptr=[],xa=cvalues?[]:void 0,xb=cvalues?[]:void 0,wa=[],wb=[];for(j=0;j{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo06xS0S0(a,b,callback){var avalues=a._values,asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bvalues=b._values,bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));for(var cvalues=avalues&&bvalues?[]:void 0,cindex=[],cptr=[],x=cvalues?[]:void 0,w=[],u=[],j=0;j{var{typed:typed,DenseMatrix:DenseMatrix}=_ref;return function matAlgo07xSSf(a,b,callback){var asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");var dt,i,j,rows=asize[0],columns=asize[1],zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));var cdata=[];for(i=0;i{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo08xS0Sid(a,b,callback){var avalues=a._values,aindex=a._index,aptr=a._ptr,asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bvalues=b._values,bindex=b._index,bptr=b._ptr,bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");if(!avalues||!bvalues)throw new Error("Cannot perform operation on Pattern Sparse Matrices");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));for(var k,k0,k1,i,cvalues=[],cindex=[],cptr=[],x=[],w=[],j=0;j{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo09xS0Sf(a,b,callback){var avalues=a._values,aindex=a._index,aptr=a._ptr,asize=a._size,adt=a._datatype||void 0===a._data?a._datatype:a.getDataType(),bvalues=b._values,bindex=b._index,bptr=b._ptr,bsize=b._size,bdt=b._datatype||void 0===b._data?b._datatype:b.getDataType();if(asize.length!==bsize.length)throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_1__.m(asize.length,bsize.length);if(asize[0]!==bsize[0]||asize[1]!==bsize[1])throw new RangeError("Dimension mismatch. Matrix A ("+asize+") must match Matrix B ("+bsize+")");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&adt===bdt&&"mixed"!==adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),cf=typed.find(callback,[dt,dt]));var i,j,k,k0,k1,cvalues=avalues&&bvalues?[]:void 0,cindex=[],cptr=[],x=cvalues?[]:void 0,w=[];for(j=0;j{var{typed:typed,DenseMatrix:DenseMatrix}=_ref;return function matAlgo10xSids(s,b,callback,inverse){var avalues=s._values,aindex=s._index,aptr=s._ptr,asize=s._size,adt=s._datatype;if(!avalues)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var dt,rows=asize[0],columns=asize[1],cf=callback;"string"==typeof adt&&(dt=adt,b=typed.convert(b,dt),cf=typed.find(callback,[dt,dt]));for(var cdata=[],x=[],w=[],j=0;j{var{typed:typed,equalScalar:equalScalar}=_ref;return function matAlgo11xS0s(s,b,callback,inverse){var avalues=s._values,aindex=s._index,aptr=s._ptr,asize=s._size,adt=s._datatype;if(!avalues)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var dt,rows=asize[0],columns=asize[1],eq=equalScalar,zero=0,cf=callback;"string"==typeof adt&&(dt=adt,eq=typed.find(equalScalar,[dt,dt]),zero=typed.convert(0,dt),b=typed.convert(b,dt),cf=typed.find(callback,[dt,dt]));for(var cvalues=[],cindex=[],cptr=[],j=0;j{var{typed:typed,DenseMatrix:DenseMatrix}=_ref;return function matAlgo12xSfs(s,b,callback,inverse){var avalues=s._values,aindex=s._index,aptr=s._ptr,asize=s._size,adt=s._datatype;if(!avalues)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var dt,rows=asize[0],columns=asize[1],cf=callback;"string"==typeof adt&&(dt=adt,b=typed.convert(b,dt),cf=typed.find(callback,[dt,dt]));for(var cdata=[],x=[],w=[],j=0;j{var{typed:typed}=_ref;return function matAlgo14xDs(a,b,callback,inverse){var dt,adata=a._data,asize=a._size,adt=a._datatype,cf=callback;"string"==typeof adt&&(dt=adt,b=typed.convert(b,dt),cf=typed.find(callback,[dt,dt]));var cdata=asize.length>0?_iterate(cf,0,asize,asize[0],adata,b,inverse):[];return a.createDenseMatrix({data:cdata,size:(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_1__.d9)(asize),datatype:dt})};function _iterate(f,level,s,n,av,bv,inverse){var cv=[];if(level===s.length-1)for(var i=0;i{var{typed:typed}=_ref;return function matAlgo13xDD(a,b,callback){var dt,adata=a._data,asize=a._size,adt=a._datatype,bdata=b._data,bsize=b._size,bdt=b._datatype,csize=[];if(asize.length!==bsize.length)throw new DimensionError.m(asize.length,bsize.length);for(var s=0;s0?_iterate(cf,0,csize,csize[0],adata,bdata):[];return a.createDenseMatrix({data:cdata,size:csize,datatype:dt})};function _iterate(f,level,s,n,av,bv){var cv=[];if(level===s.length-1)for(var i=0;i{var{concat:concat}=_ref;return function(A,B){var N=Math.max(A._size.length,B._size.length);if(A._size.length===B._size.length&&A._size.every(((dim,i)=>dim===B._size[i])))return[A,B];for(var sizeA=_padLeft(A._size,N,0),sizeB=_padLeft(B._size,N,0),sizeMax=[],dim=0;dim{var{typed:typed,matrix:matrix,concat:concat}=_ref,matAlgo13xDD=createMatAlgo13xDD({typed:typed}),matAlgo14xDs=(0,utils_matAlgo14xDs.R)({typed:typed}),broadcast=createBroadcast({concat:concat});return function matrixAlgorithmSuite(options){var matrixSignatures,elop=options.elop,SD=options.SD||options.DS;elop?(matrixSignatures={"DenseMatrix, DenseMatrix":(x,y)=>matAlgo13xDD(...broadcast(x,y),elop),"Array, Array":(x,y)=>matAlgo13xDD(...broadcast(matrix(x),matrix(y)),elop).valueOf(),"Array, DenseMatrix":(x,y)=>matAlgo13xDD(...broadcast(matrix(x),y),elop),"DenseMatrix, Array":(x,y)=>matAlgo13xDD(...broadcast(x,matrix(y)),elop)},options.SS&&(matrixSignatures["SparseMatrix, SparseMatrix"]=(x,y)=>options.SS(...broadcast(x,y),elop,!1)),options.DS&&(matrixSignatures["DenseMatrix, SparseMatrix"]=(x,y)=>options.DS(...broadcast(x,y),elop,!1),matrixSignatures["Array, SparseMatrix"]=(x,y)=>options.DS(...broadcast(matrix(x),y),elop,!1)),SD&&(matrixSignatures["SparseMatrix, DenseMatrix"]=(x,y)=>SD(...broadcast(y,x),elop,!0),matrixSignatures["SparseMatrix, Array"]=(x,y)=>SD(...broadcast(matrix(y),x),elop,!0))):(matrixSignatures={"DenseMatrix, DenseMatrix":typed.referToSelf((self=>(x,y)=>matAlgo13xDD(...broadcast(x,y),self))),"Array, Array":typed.referToSelf((self=>(x,y)=>matAlgo13xDD(...broadcast(matrix(x),matrix(y)),self).valueOf())),"Array, DenseMatrix":typed.referToSelf((self=>(x,y)=>matAlgo13xDD(...broadcast(matrix(x),y),self))),"DenseMatrix, Array":typed.referToSelf((self=>(x,y)=>matAlgo13xDD(...broadcast(x,matrix(y)),self)))},options.SS&&(matrixSignatures["SparseMatrix, SparseMatrix"]=typed.referToSelf((self=>(x,y)=>options.SS(...broadcast(x,y),self,!1)))),options.DS&&(matrixSignatures["DenseMatrix, SparseMatrix"]=typed.referToSelf((self=>(x,y)=>options.DS(...broadcast(x,y),self,!1))),matrixSignatures["Array, SparseMatrix"]=typed.referToSelf((self=>(x,y)=>options.DS(...broadcast(matrix(x),y),self,!1)))),SD&&(matrixSignatures["SparseMatrix, DenseMatrix"]=typed.referToSelf((self=>(x,y)=>SD(...broadcast(y,x),self,!0))),matrixSignatures["SparseMatrix, Array"]=typed.referToSelf((self=>(x,y)=>SD(...broadcast(matrix(y),x),self,!0)))));var scalar=options.scalar||"any";(options.Ds||options.Ss)&&(elop?(matrixSignatures["DenseMatrix,"+scalar]=(x,y)=>matAlgo14xDs(x,y,elop,!1),matrixSignatures[scalar+", DenseMatrix"]=(x,y)=>matAlgo14xDs(y,x,elop,!0),matrixSignatures["Array,"+scalar]=(x,y)=>matAlgo14xDs(matrix(x),y,elop,!1).valueOf(),matrixSignatures[scalar+", Array"]=(x,y)=>matAlgo14xDs(matrix(y),x,elop,!0).valueOf()):(matrixSignatures["DenseMatrix,"+scalar]=typed.referToSelf((self=>(x,y)=>matAlgo14xDs(x,y,self,!1))),matrixSignatures[scalar+", DenseMatrix"]=typed.referToSelf((self=>(x,y)=>matAlgo14xDs(y,x,self,!0))),matrixSignatures["Array,"+scalar]=typed.referToSelf((self=>(x,y)=>matAlgo14xDs(matrix(x),y,self,!1).valueOf())),matrixSignatures[scalar+", Array"]=typed.referToSelf((self=>(x,y)=>matAlgo14xDs(matrix(y),x,self,!0).valueOf()))));var sS=void 0!==options.sS?options.sS:options.Ss;return elop?(options.Ss&&(matrixSignatures["SparseMatrix,"+scalar]=(x,y)=>options.Ss(x,y,elop,!1)),sS&&(matrixSignatures[scalar+", SparseMatrix"]=(x,y)=>sS(y,x,elop,!0))):(options.Ss&&(matrixSignatures["SparseMatrix,"+scalar]=typed.referToSelf((self=>(x,y)=>options.Ss(x,y,self,!1)))),sS&&(matrixSignatures[scalar+", SparseMatrix"]=typed.referToSelf((self=>(x,y)=>sS(y,x,self,!0))))),elop&&elop.signatures&&(0,object.l7)(matrixSignatures,elop.signatures),matrixSignatures}}))},"./node_modules/mathjs/lib/esm/type/number.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return createNumber}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed"];var createNumber=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("number",dependencies,(_ref=>{var{typed:typed}=_ref,number=typed("number",{"":function _(){return 0},number:function number(x){return x},string:function string(x){if("NaN"===x)return NaN;var nonDecimalNumberParts=function getNonDecimalNumberParts(input){var nonDecimalWithRadixMatch=input.match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/);return nonDecimalWithRadixMatch?{input:input,radix:{"0b":2,"0o":8,"0x":16}[nonDecimalWithRadixMatch[1]],integerPart:nonDecimalWithRadixMatch[2],fractionalPart:nonDecimalWithRadixMatch[3]}:null}(x);if(nonDecimalNumberParts)return function makeNumberFromNonDecimalParts(parts){for(var n=parseInt(parts.integerPart,parts.radix),f=0,i=0;i2**size-1)throw new SyntaxError('String "'.concat(x,'" is out of range'));num>=2**(size-1)&&(num-=2**size)}return num},BigNumber:function BigNumber(x){return x.toNumber()},Fraction:function Fraction(x){return x.valueOf()},Unit:typed.referToSelf((self=>x=>{var clone=x.clone();return clone.value=self(x.value),clone})),null:function _null(x){return 0},"Unit, string | Unit":function UnitStringUnit(unit,valuelessUnit){return unit.toNumber(valuelessUnit)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))});return number.fromJSON=function(json){return parseFloat(json.value)},number}))},"./node_modules/mathjs/lib/esm/type/resultset/ResultSet.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{R:function(){return createResultSet}});var dependencies=[],createResultSet=(0,__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js").d5)("ResultSet",dependencies,(()=>{function ResultSet(entries){if(!(this instanceof ResultSet))throw new SyntaxError("Constructor must be called with the new operator");this.entries=entries||[]}return ResultSet.prototype.type="ResultSet",ResultSet.prototype.isResultSet=!0,ResultSet.prototype.valueOf=function(){return this.entries},ResultSet.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},ResultSet.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},ResultSet.fromJSON=function(json){return new ResultSet(json.entries)},ResultSet}),{isClass:!0})},"./node_modules/mathjs/lib/esm/type/string.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return createString}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),_utils_number_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),dependencies=["typed"],createString=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("string",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("string",{"":function _(){return""},number:_utils_number_js__WEBPACK_IMPORTED_MODULE_1__.WU,null:function _null(x){return"null"},boolean:function boolean(x){return x+""},string:function string(x){return x},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_2__.Fh)(x,self))),any:function any(x){return String(x)}})}))},"./node_modules/mathjs/lib/esm/type/unit/Unit.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return createUnitClass}});var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_utils_is_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_utils_factory_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_function_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/function.js"),_utils_string_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),_utils_object_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),_utils_bignumber_constants_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/bignumber/constants.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r{var text,index,c,{on:on,config:config,addScalar:addScalar,subtractScalar:subtractScalar,multiplyScalar:multiplyScalar,divideScalar:divideScalar,pow:pow,abs:abs,fix:fix,round:round,equal:equal,isNumeric:isNumeric,format:format,number:_number,Complex:Complex,BigNumber:_BigNumber,Fraction:_Fraction}=_ref,toNumber=_number;function Unit(value,valuelessUnit){if(!(this instanceof Unit))throw new Error("Constructor must be called with the new operator");if(null!=value&&!isNumeric(value)&&!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Mc)(value))throw new TypeError("First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined");if(this.fixPrefix=!1,this.skipAutomaticSimplification=!0,void 0===valuelessUnit)this.units=[],this.dimensions=BASE_DIMENSIONS.map((x=>0));else if("string"==typeof valuelessUnit){var u=Unit.parse(valuelessUnit);this.units=u.units,this.dimensions=u.dimensions}else{if(!(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr)(valuelessUnit)||null!==valuelessUnit.value)throw new TypeError("Second parameter in Unit constructor must be a string or valueless Unit");this.fixPrefix=valuelessUnit.fixPrefix,this.skipAutomaticSimplification=valuelessUnit.skipAutomaticSimplification,this.dimensions=valuelessUnit.dimensions.slice(0),this.units=valuelessUnit.units.map((u=>(0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},u)))}this.value=this._normalize(value)}function skipWhitespace(){for(;" "===c||"\t"===c;)next()}function isDigit(c){return c>="0"&&c<="9"}function next(){index++,c=text.charAt(index)}function revert(oldIndex){index=oldIndex,c=text.charAt(index)}function parseNumber(){var number="",oldIndex=index;if("+"===c?next():"-"===c&&(number+=c,next()),!function isDigitDot(c){return c>="0"&&c<="9"||"."===c}(c))return revert(oldIndex),null;if("."===c){if(number+=c,next(),!isDigit(c))return revert(oldIndex),null}else{for(;isDigit(c);)number+=c,next();"."===c&&(number+=c,next())}for(;isDigit(c);)number+=c,next();if("E"===c||"e"===c){var tentativeNumber="",tentativeIndex=index;if(tentativeNumber+=c,next(),"+"!==c&&"-"!==c||(tentativeNumber+=c,next()),!isDigit(c))return revert(tentativeIndex),number;for(number+=tentativeNumber;isDigit(c);)number+=c,next()}return number}function parseUnit(){for(var unitName="";isDigit(c)||Unit.isValidAlpha(c);)unitName+=c,next();var firstC=unitName.charAt(0);return Unit.isValidAlpha(firstC)?unitName:null}function parseCharacter(toFind){return c===toFind?(next(),toFind):null}Object.defineProperty(Unit,"name",{value:"Unit"}),Unit.prototype.constructor=Unit,Unit.prototype.type="Unit",Unit.prototype.isUnit=!0,Unit.parse=function(str,options){if(options=options||{},index=-1,c="","string"!=typeof(text=str))throw new TypeError("Invalid argument in Unit.parse, string expected");var unit=new Unit;unit.units=[];var powerMultiplierCurrent=1,expectingUnit=!1;next(),skipWhitespace();var valueStr=parseNumber(),value=null;if(valueStr){if("BigNumber"===config.number)value=new _BigNumber(valueStr);else if("Fraction"===config.number)try{value=new _Fraction(valueStr)}catch(err){value=parseFloat(valueStr)}else value=parseFloat(valueStr);skipWhitespace(),parseCharacter("*")?(powerMultiplierCurrent=1,expectingUnit=!0):parseCharacter("/")&&(powerMultiplierCurrent=-1,expectingUnit=!0)}for(var powerMultiplierStack=[],powerMultiplierStackProduct=1;;){for(skipWhitespace();"("===c;)powerMultiplierStack.push(powerMultiplierCurrent),powerMultiplierStackProduct*=powerMultiplierCurrent,powerMultiplierCurrent=1,next(),skipWhitespace();var uStr=void 0;if(!c)break;var oldC=c;if(null===(uStr=parseUnit()))throw new SyntaxError('Unexpected "'+oldC+'" in "'+text+'" at index '+index.toString());var res=_findUnit(uStr);if(null===res)throw new SyntaxError('Unit "'+uStr+'" not found.');var power=powerMultiplierCurrent*powerMultiplierStackProduct;if(skipWhitespace(),parseCharacter("^")){skipWhitespace();var p=parseNumber();if(null===p)throw new SyntaxError('In "'+str+'", "^" must be followed by a floating-point number');power*=p}unit.units.push({unit:res.unit,prefix:res.prefix,power:power});for(var i=0;i1||Math.abs(this.units[0].power-1)>1e-15)},Unit.prototype._normalize=function(value){if(null==value||0===this.units.length)return value;for(var res=value,convert=Unit._getNumberConverter((0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.kM)(value)),i=0;i{if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNITS,str)){var unit=UNITS[str];return{unit:unit,prefix:unit.prefixes[""]}}for(var _name in UNITS)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNITS,_name)&&(0,_utils_string_js__WEBPACK_IMPORTED_MODULE_6__.pn)(str,_name)){var _unit=UNITS[_name],prefixLen=str.length-_name.length,prefixName=str.substring(0,prefixLen),_prefix=(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(_unit.prefixes,prefixName)?_unit.prefixes[prefixName]:void 0;if(void 0!==_prefix)return{unit:_unit,prefix:_prefix}}return null}),{hasher:args=>args[0],limit:100});function getNumericIfUnitless(unit){return unit.equalBase(BASE_UNITS.NONE)&&null!==unit.value&&!config.predictable?unit.value:unit}Unit.isValuelessUnit=function(name){return null!==_findUnit(name)},Unit.prototype.hasBase=function(base){if("string"==typeof base&&(base=BASE_UNITS[base]),!base)return!1;for(var i=0;i1e-12)return!1;return!0},Unit.prototype.equalBase=function(other){for(var i=0;i1e-12)return!1;return!0},Unit.prototype.equals=function(other){return this.equalBase(other)&&equal(this.value,other.value)},Unit.prototype.multiply=function(_other){for(var res=this.clone(),other=(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.wr)(_other)?_other:new Unit(_other),i=0;i1e-12&&((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(currentUnitSystem,baseDim)?proposedUnitList.push({unit:currentUnitSystem[baseDim].unit,prefix:currentUnitSystem[baseDim].prefix,power:ret.dimensions[i]||0}):missingBaseDim=!0)}proposedUnitList.length1e-12){if(!(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNIT_SYSTEMS.si,baseDim))throw new Error("Cannot express custom unit "+baseDim+" in SI units");proposedUnitList.push({unit:UNIT_SYSTEMS.si[baseDim].unit,prefix:UNIT_SYSTEMS.si[baseDim].prefix,power:ret.dimensions[i]||0})}}return ret.units=proposedUnitList,ret.fixPrefix=!0,ret.skipAutomaticSimplification=!0,null!==this.value?(ret.value=null,this.to(ret)):ret},Unit.prototype.formatUnits=function(){for(var strNum="",strDen="",nNum=0,nDen=0,i=0;i0?(nNum++,strNum+=" "+this.units[i].prefix.name+this.units[i].unit.name,Math.abs(this.units[i].power-1)>1e-15&&(strNum+="^"+this.units[i].power)):this.units[i].power<0&&nDen++;if(nDen>0)for(var _i4=0;_i40?(strDen+=" "+this.units[_i4].prefix.name+this.units[_i4].unit.name,Math.abs(this.units[_i4].power+1)>1e-15&&(strDen+="^"+-this.units[_i4].power)):(strDen+=" "+this.units[_i4].prefix.name+this.units[_i4].unit.name,strDen+="^"+this.units[_i4].power));strNum=strNum.substr(1),strDen=strDen.substr(1),nNum>1&&nDen>0&&(strNum="("+strNum+")"),nDen>1&&nNum>0&&(strDen="("+strDen+")");var str=strNum;return nNum>0&&nDen>0&&(str+=" / "),str+=strDen},Unit.prototype.format=function(options){var simp=this.skipAutomaticSimplification||null===this.value?this.clone():this.simplify(),isImaginary=!1;for(var i in void 0!==simp.value&&null!==simp.value&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Mc)(simp.value)&&(isImaginary=Math.abs(simp.value.re)<1e-14),simp.units)(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(simp.units,i)&&simp.units[i].unit&&("VA"===simp.units[i].unit.name&&isImaginary?simp.units[i].unit=UNITS.VAR:"VAR"!==simp.units[i].unit.name||isImaginary||(simp.units[i].unit=UNITS.VA));1!==simp.units.length||simp.fixPrefix||Math.abs(simp.units[0].power-Math.round(simp.units[0].power))<1e-14&&(simp.units[0].prefix=simp._bestPrefix());var value=simp._denormalize(simp.value),str=null!==simp.value?format(value,options||{}):"",unitStr=simp.formatUnits();return simp.value&&(0,_utils_is_js__WEBPACK_IMPORTED_MODULE_2__.Mc)(simp.value)&&(str="("+str+")"),unitStr.length>0&&str.length>0&&(str+=" "),str+=unitStr},Unit.prototype._bestPrefix=function(){if(1!==this.units.length)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");if(Math.abs(this.units[0].power-Math.round(this.units[0].power))>=1e-14)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");var absValue=null!==this.value?abs(this.value):0,absUnitValue=abs(this.units[0].unit.value),bestPrefix=this.units[0].prefix;if(0===absValue)return bestPrefix;var power=this.units[0].power,bestDiff=Math.log(absValue/Math.pow(bestPrefix.value*absUnitValue,power))/Math.LN10-1.2;if(bestDiff>-2.200001&&bestDiff<1.800001)return bestPrefix;bestDiff=Math.abs(bestDiff);var prefixes=this.units[0].unit.prefixes;for(var p in prefixes)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(prefixes,p)){var prefix=prefixes[p];if(prefix.scientific){var diff=Math.abs(Math.log(absValue/Math.pow(prefix.value*absUnitValue,power))/Math.LN10-1.2);(diff0))},UNITS={meter:{name:"meter",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.LONG,value:1,offset:0},inch:{name:"inch",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.0254,offset:0},foot:{name:"foot",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.3048,offset:0},yard:{name:"yard",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.9144,offset:0},mile:{name:"mile",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:1609.344,offset:0},link:{name:"link",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.201168,offset:0},rod:{name:"rod",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:5.0292,offset:0},chain:{name:"chain",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:20.1168,offset:0},angstrom:{name:"angstrom",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:1e-10,offset:0},m:{name:"m",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.SHORT,value:1,offset:0},in:{name:"in",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.0254,offset:0},ft:{name:"ft",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.3048,offset:0},yd:{name:"yd",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.9144,offset:0},mi:{name:"mi",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:1609.344,offset:0},li:{name:"li",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:.201168,offset:0},rd:{name:"rd",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:5.02921,offset:0},ch:{name:"ch",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:20.1168,offset:0},mil:{name:"mil",base:BASE_UNITS.LENGTH,prefixes:PREFIXES.NONE,value:254e-7,offset:0},m2:{name:"m2",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.SQUARED,value:1,offset:0},sqin:{name:"sqin",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:64516e-8,offset:0},sqft:{name:"sqft",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:.09290304,offset:0},sqyd:{name:"sqyd",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:.83612736,offset:0},sqmi:{name:"sqmi",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:2589988.110336,offset:0},sqrd:{name:"sqrd",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:25.29295,offset:0},sqch:{name:"sqch",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:404.6873,offset:0},sqmil:{name:"sqmil",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:6.4516e-10,offset:0},acre:{name:"acre",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:4046.86,offset:0},hectare:{name:"hectare",base:BASE_UNITS.SURFACE,prefixes:PREFIXES.NONE,value:1e4,offset:0},m3:{name:"m3",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.CUBIC,value:1,offset:0},L:{name:"L",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.SHORT,value:.001,offset:0},l:{name:"l",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.SHORT,value:.001,offset:0},litre:{name:"litre",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.LONG,value:.001,offset:0},cuin:{name:"cuin",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:16387064e-12,offset:0},cuft:{name:"cuft",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.028316846592,offset:0},cuyd:{name:"cuyd",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.764554857984,offset:0},teaspoon:{name:"teaspoon",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:5e-6,offset:0},tablespoon:{name:"tablespoon",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:15e-6,offset:0},drop:{name:"drop",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:5e-8,offset:0},gtt:{name:"gtt",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:5e-8,offset:0},minim:{name:"minim",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:6.161152e-8,offset:0},fluiddram:{name:"fluiddram",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:36966911e-13,offset:0},fluidounce:{name:"fluidounce",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:2957353e-11,offset:0},gill:{name:"gill",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0001182941,offset:0},cc:{name:"cc",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:1e-6,offset:0},cup:{name:"cup",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0002365882,offset:0},pint:{name:"pint",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0004731765,offset:0},quart:{name:"quart",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0009463529,offset:0},gallon:{name:"gallon",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.003785412,offset:0},beerbarrel:{name:"beerbarrel",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.1173478,offset:0},oilbarrel:{name:"oilbarrel",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.1589873,offset:0},hogshead:{name:"hogshead",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.238481,offset:0},fldr:{name:"fldr",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:36966911e-13,offset:0},floz:{name:"floz",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:2957353e-11,offset:0},gi:{name:"gi",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0001182941,offset:0},cp:{name:"cp",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0002365882,offset:0},pt:{name:"pt",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0004731765,offset:0},qt:{name:"qt",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.0009463529,offset:0},gal:{name:"gal",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.003785412,offset:0},bbl:{name:"bbl",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.1173478,offset:0},obl:{name:"obl",base:BASE_UNITS.VOLUME,prefixes:PREFIXES.NONE,value:.1589873,offset:0},g:{name:"g",base:BASE_UNITS.MASS,prefixes:PREFIXES.SHORT,value:.001,offset:0},gram:{name:"gram",base:BASE_UNITS.MASS,prefixes:PREFIXES.LONG,value:.001,offset:0},ton:{name:"ton",base:BASE_UNITS.MASS,prefixes:PREFIXES.SHORT,value:907.18474,offset:0},t:{name:"t",base:BASE_UNITS.MASS,prefixes:PREFIXES.SHORT,value:1e3,offset:0},tonne:{name:"tonne",base:BASE_UNITS.MASS,prefixes:PREFIXES.LONG,value:1e3,offset:0},grain:{name:"grain",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:6479891e-11,offset:0},dram:{name:"dram",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.0017718451953125,offset:0},ounce:{name:"ounce",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.028349523125,offset:0},poundmass:{name:"poundmass",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.45359237,offset:0},hundredweight:{name:"hundredweight",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:45.359237,offset:0},stick:{name:"stick",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.115,offset:0},stone:{name:"stone",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:6.35029318,offset:0},gr:{name:"gr",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:6479891e-11,offset:0},dr:{name:"dr",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.0017718451953125,offset:0},oz:{name:"oz",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.028349523125,offset:0},lbm:{name:"lbm",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:.45359237,offset:0},cwt:{name:"cwt",base:BASE_UNITS.MASS,prefixes:PREFIXES.NONE,value:45.359237,offset:0},s:{name:"s",base:BASE_UNITS.TIME,prefixes:PREFIXES.SHORT,value:1,offset:0},min:{name:"min",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:60,offset:0},h:{name:"h",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:3600,offset:0},second:{name:"second",base:BASE_UNITS.TIME,prefixes:PREFIXES.LONG,value:1,offset:0},sec:{name:"sec",base:BASE_UNITS.TIME,prefixes:PREFIXES.LONG,value:1,offset:0},minute:{name:"minute",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:60,offset:0},hour:{name:"hour",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:3600,offset:0},day:{name:"day",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:86400,offset:0},week:{name:"week",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:604800,offset:0},month:{name:"month",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:2629800,offset:0},year:{name:"year",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:31557600,offset:0},decade:{name:"decade",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:315576e3,offset:0},century:{name:"century",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:315576e4,offset:0},millennium:{name:"millennium",base:BASE_UNITS.TIME,prefixes:PREFIXES.NONE,value:315576e5,offset:0},hertz:{name:"Hertz",base:BASE_UNITS.FREQUENCY,prefixes:PREFIXES.LONG,value:1,offset:0,reciprocal:!0},Hz:{name:"Hz",base:BASE_UNITS.FREQUENCY,prefixes:PREFIXES.SHORT,value:1,offset:0,reciprocal:!0},rad:{name:"rad",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.SHORT,value:1,offset:0},radian:{name:"radian",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.LONG,value:1,offset:0},deg:{name:"deg",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.SHORT,value:null,offset:0},degree:{name:"degree",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.LONG,value:null,offset:0},grad:{name:"grad",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.SHORT,value:null,offset:0},gradian:{name:"gradian",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.LONG,value:null,offset:0},cycle:{name:"cycle",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.NONE,value:null,offset:0},arcsec:{name:"arcsec",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.NONE,value:null,offset:0},arcmin:{name:"arcmin",base:BASE_UNITS.ANGLE,prefixes:PREFIXES.NONE,value:null,offset:0},A:{name:"A",base:BASE_UNITS.CURRENT,prefixes:PREFIXES.SHORT,value:1,offset:0},ampere:{name:"ampere",base:BASE_UNITS.CURRENT,prefixes:PREFIXES.LONG,value:1,offset:0},K:{name:"K",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.SHORT,value:1,offset:0},degC:{name:"degC",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.SHORT,value:1,offset:273.15},degF:{name:"degF",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.SHORT,value:new _Fraction(5,9),offset:459.67},degR:{name:"degR",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.SHORT,value:new _Fraction(5,9),offset:0},kelvin:{name:"kelvin",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.LONG,value:1,offset:0},celsius:{name:"celsius",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.LONG,value:1,offset:273.15},fahrenheit:{name:"fahrenheit",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.LONG,value:new _Fraction(5,9),offset:459.67},rankine:{name:"rankine",base:BASE_UNITS.TEMPERATURE,prefixes:PREFIXES.LONG,value:new _Fraction(5,9),offset:0},mol:{name:"mol",base:BASE_UNITS.AMOUNT_OF_SUBSTANCE,prefixes:PREFIXES.SHORT,value:1,offset:0},mole:{name:"mole",base:BASE_UNITS.AMOUNT_OF_SUBSTANCE,prefixes:PREFIXES.LONG,value:1,offset:0},cd:{name:"cd",base:BASE_UNITS.LUMINOUS_INTENSITY,prefixes:PREFIXES.SHORT,value:1,offset:0},candela:{name:"candela",base:BASE_UNITS.LUMINOUS_INTENSITY,prefixes:PREFIXES.LONG,value:1,offset:0},N:{name:"N",base:BASE_UNITS.FORCE,prefixes:PREFIXES.SHORT,value:1,offset:0},newton:{name:"newton",base:BASE_UNITS.FORCE,prefixes:PREFIXES.LONG,value:1,offset:0},dyn:{name:"dyn",base:BASE_UNITS.FORCE,prefixes:PREFIXES.SHORT,value:1e-5,offset:0},dyne:{name:"dyne",base:BASE_UNITS.FORCE,prefixes:PREFIXES.LONG,value:1e-5,offset:0},lbf:{name:"lbf",base:BASE_UNITS.FORCE,prefixes:PREFIXES.NONE,value:4.4482216152605,offset:0},poundforce:{name:"poundforce",base:BASE_UNITS.FORCE,prefixes:PREFIXES.NONE,value:4.4482216152605,offset:0},kip:{name:"kip",base:BASE_UNITS.FORCE,prefixes:PREFIXES.LONG,value:4448.2216,offset:0},kilogramforce:{name:"kilogramforce",base:BASE_UNITS.FORCE,prefixes:PREFIXES.NONE,value:9.80665,offset:0},J:{name:"J",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.SHORT,value:1,offset:0},joule:{name:"joule",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.LONG,value:1,offset:0},erg:{name:"erg",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.SHORTLONG,value:1e-7,offset:0},Wh:{name:"Wh",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.SHORT,value:3600,offset:0},BTU:{name:"BTU",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.BTU,value:1055.05585262,offset:0},eV:{name:"eV",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.SHORT,value:1602176565e-28,offset:0},electronvolt:{name:"electronvolt",base:BASE_UNITS.ENERGY,prefixes:PREFIXES.LONG,value:1602176565e-28,offset:0},W:{name:"W",base:BASE_UNITS.POWER,prefixes:PREFIXES.SHORT,value:1,offset:0},watt:{name:"watt",base:BASE_UNITS.POWER,prefixes:PREFIXES.LONG,value:1,offset:0},hp:{name:"hp",base:BASE_UNITS.POWER,prefixes:PREFIXES.NONE,value:745.6998715386,offset:0},VAR:{name:"VAR",base:BASE_UNITS.POWER,prefixes:PREFIXES.SHORT,value:Complex.I,offset:0},VA:{name:"VA",base:BASE_UNITS.POWER,prefixes:PREFIXES.SHORT,value:1,offset:0},Pa:{name:"Pa",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.SHORT,value:1,offset:0},psi:{name:"psi",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:6894.75729276459,offset:0},atm:{name:"atm",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:101325,offset:0},bar:{name:"bar",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.SHORTLONG,value:1e5,offset:0},torr:{name:"torr",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:133.322,offset:0},mmHg:{name:"mmHg",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:133.322,offset:0},mmH2O:{name:"mmH2O",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:9.80665,offset:0},cmH2O:{name:"cmH2O",base:BASE_UNITS.PRESSURE,prefixes:PREFIXES.NONE,value:98.0665,offset:0},coulomb:{name:"coulomb",base:BASE_UNITS.ELECTRIC_CHARGE,prefixes:PREFIXES.LONG,value:1,offset:0},C:{name:"C",base:BASE_UNITS.ELECTRIC_CHARGE,prefixes:PREFIXES.SHORT,value:1,offset:0},farad:{name:"farad",base:BASE_UNITS.ELECTRIC_CAPACITANCE,prefixes:PREFIXES.LONG,value:1,offset:0},F:{name:"F",base:BASE_UNITS.ELECTRIC_CAPACITANCE,prefixes:PREFIXES.SHORT,value:1,offset:0},volt:{name:"volt",base:BASE_UNITS.ELECTRIC_POTENTIAL,prefixes:PREFIXES.LONG,value:1,offset:0},V:{name:"V",base:BASE_UNITS.ELECTRIC_POTENTIAL,prefixes:PREFIXES.SHORT,value:1,offset:0},ohm:{name:"ohm",base:BASE_UNITS.ELECTRIC_RESISTANCE,prefixes:PREFIXES.SHORTLONG,value:1,offset:0},henry:{name:"henry",base:BASE_UNITS.ELECTRIC_INDUCTANCE,prefixes:PREFIXES.LONG,value:1,offset:0},H:{name:"H",base:BASE_UNITS.ELECTRIC_INDUCTANCE,prefixes:PREFIXES.SHORT,value:1,offset:0},siemens:{name:"siemens",base:BASE_UNITS.ELECTRIC_CONDUCTANCE,prefixes:PREFIXES.LONG,value:1,offset:0},S:{name:"S",base:BASE_UNITS.ELECTRIC_CONDUCTANCE,prefixes:PREFIXES.SHORT,value:1,offset:0},weber:{name:"weber",base:BASE_UNITS.MAGNETIC_FLUX,prefixes:PREFIXES.LONG,value:1,offset:0},Wb:{name:"Wb",base:BASE_UNITS.MAGNETIC_FLUX,prefixes:PREFIXES.SHORT,value:1,offset:0},tesla:{name:"tesla",base:BASE_UNITS.MAGNETIC_FLUX_DENSITY,prefixes:PREFIXES.LONG,value:1,offset:0},T:{name:"T",base:BASE_UNITS.MAGNETIC_FLUX_DENSITY,prefixes:PREFIXES.SHORT,value:1,offset:0},b:{name:"b",base:BASE_UNITS.BIT,prefixes:PREFIXES.BINARY_SHORT,value:1,offset:0},bits:{name:"bits",base:BASE_UNITS.BIT,prefixes:PREFIXES.BINARY_LONG,value:1,offset:0},B:{name:"B",base:BASE_UNITS.BIT,prefixes:PREFIXES.BINARY_SHORT,value:8,offset:0},bytes:{name:"bytes",base:BASE_UNITS.BIT,prefixes:PREFIXES.BINARY_LONG,value:8,offset:0}},ALIASES={meters:"meter",inches:"inch",feet:"foot",yards:"yard",miles:"mile",links:"link",rods:"rod",chains:"chain",angstroms:"angstrom",lt:"l",litres:"litre",liter:"litre",liters:"litre",teaspoons:"teaspoon",tablespoons:"tablespoon",minims:"minim",fluiddrams:"fluiddram",fluidounces:"fluidounce",gills:"gill",cups:"cup",pints:"pint",quarts:"quart",gallons:"gallon",beerbarrels:"beerbarrel",oilbarrels:"oilbarrel",hogsheads:"hogshead",gtts:"gtt",grams:"gram",tons:"ton",tonnes:"tonne",grains:"grain",drams:"dram",ounces:"ounce",poundmasses:"poundmass",hundredweights:"hundredweight",sticks:"stick",lb:"lbm",lbs:"lbm",kips:"kip",kgf:"kilogramforce",acres:"acre",hectares:"hectare",sqfeet:"sqft",sqyard:"sqyd",sqmile:"sqmi",sqmiles:"sqmi",mmhg:"mmHg",mmh2o:"mmH2O",cmh2o:"cmH2O",seconds:"second",secs:"second",minutes:"minute",mins:"minute",hours:"hour",hr:"hour",hrs:"hour",days:"day",weeks:"week",months:"month",years:"year",decades:"decade",centuries:"century",millennia:"millennium",hertz:"hertz",radians:"radian",degrees:"degree",gradians:"gradian",cycles:"cycle",arcsecond:"arcsec",arcseconds:"arcsec",arcminute:"arcmin",arcminutes:"arcmin",BTUs:"BTU",watts:"watt",joules:"joule",amperes:"ampere",amps:"ampere",amp:"ampere",coulombs:"coulomb",volts:"volt",ohms:"ohm",farads:"farad",webers:"weber",teslas:"tesla",electronvolts:"electronvolt",moles:"mole",bit:"bits",byte:"bytes"};function calculateAngleValues(config){if("BigNumber"===config.number){var pi=(0,_utils_bignumber_constants_js__WEBPACK_IMPORTED_MODULE_7__.wY)(_BigNumber);UNITS.rad.value=new _BigNumber(1),UNITS.deg.value=pi.div(180),UNITS.grad.value=pi.div(200),UNITS.cycle.value=pi.times(2),UNITS.arcsec.value=pi.div(648e3),UNITS.arcmin.value=pi.div(10800)}else UNITS.rad.value=1,UNITS.deg.value=Math.PI/180,UNITS.grad.value=Math.PI/200,UNITS.cycle.value=2*Math.PI,UNITS.arcsec.value=Math.PI/648e3,UNITS.arcmin.value=Math.PI/10800;UNITS.radian.value=UNITS.rad.value,UNITS.degree.value=UNITS.deg.value,UNITS.gradian.value=UNITS.grad.value}calculateAngleValues(config),on&&on("config",(function(curr,prev){curr.number!==prev.number&&calculateAngleValues(curr)}));var UNIT_SYSTEMS={si:{NONE:{unit:UNIT_NONE,prefix:PREFIXES.NONE[""]},LENGTH:{unit:UNITS.m,prefix:PREFIXES.SHORT[""]},MASS:{unit:UNITS.g,prefix:PREFIXES.SHORT.k},TIME:{unit:UNITS.s,prefix:PREFIXES.SHORT[""]},CURRENT:{unit:UNITS.A,prefix:PREFIXES.SHORT[""]},TEMPERATURE:{unit:UNITS.K,prefix:PREFIXES.SHORT[""]},LUMINOUS_INTENSITY:{unit:UNITS.cd,prefix:PREFIXES.SHORT[""]},AMOUNT_OF_SUBSTANCE:{unit:UNITS.mol,prefix:PREFIXES.SHORT[""]},ANGLE:{unit:UNITS.rad,prefix:PREFIXES.SHORT[""]},BIT:{unit:UNITS.bits,prefix:PREFIXES.SHORT[""]},FORCE:{unit:UNITS.N,prefix:PREFIXES.SHORT[""]},ENERGY:{unit:UNITS.J,prefix:PREFIXES.SHORT[""]},POWER:{unit:UNITS.W,prefix:PREFIXES.SHORT[""]},PRESSURE:{unit:UNITS.Pa,prefix:PREFIXES.SHORT[""]},ELECTRIC_CHARGE:{unit:UNITS.C,prefix:PREFIXES.SHORT[""]},ELECTRIC_CAPACITANCE:{unit:UNITS.F,prefix:PREFIXES.SHORT[""]},ELECTRIC_POTENTIAL:{unit:UNITS.V,prefix:PREFIXES.SHORT[""]},ELECTRIC_RESISTANCE:{unit:UNITS.ohm,prefix:PREFIXES.SHORT[""]},ELECTRIC_INDUCTANCE:{unit:UNITS.H,prefix:PREFIXES.SHORT[""]},ELECTRIC_CONDUCTANCE:{unit:UNITS.S,prefix:PREFIXES.SHORT[""]},MAGNETIC_FLUX:{unit:UNITS.Wb,prefix:PREFIXES.SHORT[""]},MAGNETIC_FLUX_DENSITY:{unit:UNITS.T,prefix:PREFIXES.SHORT[""]},FREQUENCY:{unit:UNITS.Hz,prefix:PREFIXES.SHORT[""]}}};UNIT_SYSTEMS.cgs=JSON.parse(JSON.stringify(UNIT_SYSTEMS.si)),UNIT_SYSTEMS.cgs.LENGTH={unit:UNITS.m,prefix:PREFIXES.SHORT.c},UNIT_SYSTEMS.cgs.MASS={unit:UNITS.g,prefix:PREFIXES.SHORT[""]},UNIT_SYSTEMS.cgs.FORCE={unit:UNITS.dyn,prefix:PREFIXES.SHORT[""]},UNIT_SYSTEMS.cgs.ENERGY={unit:UNITS.erg,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us=JSON.parse(JSON.stringify(UNIT_SYSTEMS.si)),UNIT_SYSTEMS.us.LENGTH={unit:UNITS.ft,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us.MASS={unit:UNITS.lbm,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us.TEMPERATURE={unit:UNITS.degF,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us.FORCE={unit:UNITS.lbf,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us.ENERGY={unit:UNITS.BTU,prefix:PREFIXES.BTU[""]},UNIT_SYSTEMS.us.POWER={unit:UNITS.hp,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.us.PRESSURE={unit:UNITS.psi,prefix:PREFIXES.NONE[""]},UNIT_SYSTEMS.auto=JSON.parse(JSON.stringify(UNIT_SYSTEMS.si));var currentUnitSystem=UNIT_SYSTEMS.auto;for(var _key2 in Unit.setUnitSystem=function(name){if(!(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNIT_SYSTEMS,name))throw new Error("Unit system "+name+" does not exist. Choices are: "+Object.keys(UNIT_SYSTEMS).join(", "));currentUnitSystem=UNIT_SYSTEMS[name]},Unit.getUnitSystem=function(){for(var _key in UNIT_SYSTEMS)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNIT_SYSTEMS,_key)&&UNIT_SYSTEMS[_key]===currentUnitSystem)return _key},Unit.typeConverters={BigNumber:function BigNumber(x){return null!=x&&x.isFraction?new _BigNumber(x.n).div(x.d).times(x.s):new _BigNumber(x+"")},Fraction:function Fraction(x){return new _Fraction(x)},Complex:function Complex(x){return x},number:function number(x){return null!=x&&x.isFraction?_number(x):x}},Unit.prototype._numberConverter=function(){var convert=Unit.typeConverters[this.valueType()];if(convert)return convert;throw new TypeError('Unsupported Unit value type "'+this.valueType()+'"')},Unit._getNumberConverter=function(type){if(!Unit.typeConverters[type])throw new TypeError('Unsupported type "'+type+'"');return Unit.typeConverters[type]},UNITS)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(UNITS,_key2)){var unit=UNITS[_key2];unit.dimensions=unit.base.dimensions}for(var _name2 in ALIASES)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(ALIASES,_name2)){var _unit2=UNITS[ALIASES[_name2]],alias={};for(var _key3 in _unit2)(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(_unit2,_key3)&&(alias[_key3]=_unit2[_key3]);alias.name=_name2,UNITS[_name2]=alias}return Unit.isValidAlpha=function isValidAlpha(c){return/^[a-zA-Z]$/.test(c)},Unit.createUnit=function(obj,options){if("object"!=typeof obj)throw new TypeError("createUnit expects first parameter to be of type 'Object'");if(options&&options.override)for(var _key4 in obj)if((0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(obj,_key4)&&Unit.deleteUnit(_key4),obj[_key4].aliases)for(var i=0;i0&&!Unit.isValidAlpha(c)&&!isDigit(c))throw new Error('Invalid unit name (only alphanumeric characters are allowed): "'+name+'"')}}(name);var definition,prefixes,baseName,defUnit=null,aliases=[],offset=0;if(obj&&"Unit"===obj.type)defUnit=obj.clone();else if("string"==typeof obj)""!==obj&&(definition=obj);else{if("object"!=typeof obj)throw new TypeError('Cannot create unit "'+name+'" from "'+obj.toString()+'": expecting "string" or "Unit" or "Object"');definition=obj.definition,prefixes=obj.prefixes,offset=obj.offset,baseName=obj.baseName,obj.aliases&&(aliases=obj.aliases.valueOf())}if(aliases)for(var i=0;i1e-12){match=!1;break}if(match){anyMatch=!0,newUnit.base=BASE_UNITS[_i7];break}}if(!anyMatch){baseName=baseName||name+"_STUFF";var _newBaseUnit={dimensions:defUnit.dimensions.slice(0)};_newBaseUnit.key=baseName,BASE_UNITS[baseName]=_newBaseUnit,currentUnitSystem[baseName]={unit:newUnit,prefix:PREFIXES.NONE[""]},newUnit.base=BASE_UNITS[baseName]}}else{if(baseName=baseName||name+"_STUFF",BASE_DIMENSIONS.indexOf(baseName)>=0)throw new Error('Cannot create new base unit "'+name+'": a base unit with that name already exists (and cannot be overridden)');for(var b in BASE_DIMENSIONS.push(baseName),BASE_UNITS)(0,_utils_object_js__WEBPACK_IMPORTED_MODULE_4__.nr)(BASE_UNITS,b)&&(BASE_UNITS[b].dimensions[BASE_DIMENSIONS.length-1]=0);for(var newBaseUnit={dimensions:[]},_i6=0;_i6{var{typed:typed,Unit:Unit}=_ref;return typed("createUnit",{"Object, Object":function ObjectObject(obj,options){return Unit.createUnit(obj,options)},Object:function Object(obj){return Unit.createUnit(obj,{})},"string, Unit | string | Object, Object":function stringUnitStringObjectObject(name,def,options){var obj={};return obj[name]=def,Unit.createUnit(obj,options)},"string, Unit | string | Object":function stringUnitStringObject(name,def){var obj={};return obj[name]=def,Unit.createUnit(obj,{})},string:function string(name){var obj={};return obj[name]={},Unit.createUnit(obj,{})}})}))},"./node_modules/mathjs/lib/esm/type/unit/function/splitUnit.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Y:function(){return createSplitUnit}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),dependencies=["typed"],createSplitUnit=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("splitUnit",dependencies,(_ref=>{var{typed:typed}=_ref;return typed("splitUnit",{"Unit, Array":function UnitArray(unit,parts){return unit.splitUnit(parts)}})}))},"./node_modules/mathjs/lib/esm/type/unit/function/unit.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return createUnitFunction}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),dependencies=["typed","Unit"],createUnitFunction=(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)("unit",dependencies,(_ref=>{var{typed:typed,Unit:Unit}=_ref;return typed("unit",{Unit:function Unit(x){return x.clone()},string:function string(x){return Unit.isValuelessUnit(x)?new Unit(null,x):Unit.parse(x,{allowNoUnits:!0})},"number | BigNumber | Fraction | Complex, string | Unit":function numberBigNumberFractionComplexStringUnit(value,unit){return new Unit(value,unit)},"number | BigNumber | Fraction":function numberBigNumberFraction(value){return new Unit(value)},"Array | Matrix":typed.referToSelf((self=>x=>(0,_utils_collection_js__WEBPACK_IMPORTED_MODULE_1__.Fh)(x,self)))})}))},"./node_modules/mathjs/lib/esm/type/unit/physicalConstants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$M:function(){return createPlanckConstant},A0:function(){return createRydberg},B7:function(){return createPlanckCharge},BL:function(){return createProtonMass},CQ:function(){return createGravity},Dg:function(){return createWeakMixingAngle},GI:function(){return createSecondRadiation},Go:function(){return createFaraday},Gw:function(){return createBoltzmann},IW:function(){return createElementaryCharge},JS:function(){return createElectricConstant},Km:function(){return createInverseConductanceQuantum},Oz:function(){return createPlanckTemperature},Ps:function(){return createPlanckLength},Qr:function(){return createMolarMassC12},RZ:function(){return createMagneticFluxQuantum},Rw:function(){return createFineStructure},Uu:function(){return createFirstRadiation},V9:function(){return createThomsonCrossSection},VL:function(){return createKlitzing},Vv:function(){return createGasConstant},W5:function(){return createWienDisplacement},Yv:function(){return createReducedPlanckConstant},Zu:function(){return createFermiCoupling},_C:function(){return createAtomicMass},ax:function(){return createMagneticConstant},c0:function(){return createHartreeEnergy},cn:function(){return createMolarPlanckConstant},d:function(){return createNuclearMagneton},ir:function(){return createCoulomb},j5:function(){return createNeutronMass},jp:function(){return createClassicalElectronRadius},kL:function(){return createQuantumOfCirculation},lR:function(){return createMolarVolume},lr:function(){return createSackurTetrode},nH:function(){return createGravitationConstant},o8:function(){return createElectronMass},of:function(){return createPlanckTime},pz:function(){return createBohrRadius},rK:function(){return createAvogadro},ri:function(){return createBohrMagneton},sD:function(){return createLoschmidt},sW:function(){return createEfimovFactor},ss:function(){return createSpeedOfLight},u1:function(){return createConductanceQuantum},v0:function(){return createPlanckMass},xt:function(){return createMolarMass},xx:function(){return createVacuumImpedance},zP:function(){return createDeuteronMass},zt:function(){return createStefanBoltzmann}});var _utils_factory_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),createSpeedOfLight=unitFactory("speedOfLight","299792458","m s^-1"),createGravitationConstant=unitFactory("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),createPlanckConstant=unitFactory("planckConstant","6.62607015e-34","J s"),createReducedPlanckConstant=unitFactory("reducedPlanckConstant","1.0545718176461565e-34","J s"),createMagneticConstant=unitFactory("magneticConstant","1.25663706212e-6","N A^-2"),createElectricConstant=unitFactory("electricConstant","8.8541878128e-12","F m^-1"),createVacuumImpedance=unitFactory("vacuumImpedance","376.730313667","ohm"),createCoulomb=unitFactory("coulomb","8.987551792261171e9","N m^2 C^-2"),createElementaryCharge=unitFactory("elementaryCharge","1.602176634e-19","C"),createBohrMagneton=unitFactory("bohrMagneton","9.2740100783e-24","J T^-1"),createConductanceQuantum=unitFactory("conductanceQuantum","7.748091729863649e-5","S"),createInverseConductanceQuantum=unitFactory("inverseConductanceQuantum","12906.403729652257","ohm"),createMagneticFluxQuantum=unitFactory("magneticFluxQuantum","2.0678338484619295e-15","Wb"),createNuclearMagneton=unitFactory("nuclearMagneton","5.0507837461e-27","J T^-1"),createKlitzing=unitFactory("klitzing","25812.807459304513","ohm"),createBohrRadius=unitFactory("bohrRadius","5.29177210903e-11","m"),createClassicalElectronRadius=unitFactory("classicalElectronRadius","2.8179403262e-15","m"),createElectronMass=unitFactory("electronMass","9.1093837015e-31","kg"),createFermiCoupling=unitFactory("fermiCoupling","1.1663787e-5","GeV^-2"),createFineStructure=numberFactory("fineStructure",.0072973525693),createHartreeEnergy=unitFactory("hartreeEnergy","4.3597447222071e-18","J"),createProtonMass=unitFactory("protonMass","1.67262192369e-27","kg"),createDeuteronMass=unitFactory("deuteronMass","3.3435830926e-27","kg"),createNeutronMass=unitFactory("neutronMass","1.6749271613e-27","kg"),createQuantumOfCirculation=unitFactory("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),createRydberg=unitFactory("rydberg","10973731.568160","m^-1"),createThomsonCrossSection=unitFactory("thomsonCrossSection","6.6524587321e-29","m^2"),createWeakMixingAngle=numberFactory("weakMixingAngle",.2229),createEfimovFactor=numberFactory("efimovFactor",22.7),createAtomicMass=unitFactory("atomicMass","1.66053906660e-27","kg"),createAvogadro=unitFactory("avogadro","6.02214076e23","mol^-1"),createBoltzmann=unitFactory("boltzmann","1.380649e-23","J K^-1"),createFaraday=unitFactory("faraday","96485.33212331001","C mol^-1"),createFirstRadiation=unitFactory("firstRadiation","3.7417718521927573e-16","W m^2"),createLoschmidt=unitFactory("loschmidt","2.686780111798444e25","m^-3"),createGasConstant=unitFactory("gasConstant","8.31446261815324","J K^-1 mol^-1"),createMolarPlanckConstant=unitFactory("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),createMolarVolume=unitFactory("molarVolume","0.022413969545014137","m^3 mol^-1"),createSackurTetrode=numberFactory("sackurTetrode",-1.16487052358),createSecondRadiation=unitFactory("secondRadiation","0.014387768775039337","m K"),createStefanBoltzmann=unitFactory("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),createWienDisplacement=unitFactory("wienDisplacement","2.897771955e-3","m K"),createMolarMass=unitFactory("molarMass","0.99999999965e-3","kg mol^-1"),createMolarMassC12=unitFactory("molarMassC12","11.9999999958e-3","kg mol^-1"),createGravity=unitFactory("gravity","9.80665","m s^-2"),createPlanckLength=unitFactory("planckLength","1.616255e-35","m"),createPlanckMass=unitFactory("planckMass","2.176435e-8","kg"),createPlanckTime=unitFactory("planckTime","5.391245e-44","s"),createPlanckCharge=unitFactory("planckCharge","1.87554603778e-18","C"),createPlanckTemperature=unitFactory("planckTemperature","1.416785e+32","K");function unitFactory(name,valueStr,unitStr){return(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["config","Unit","BigNumber"],(_ref=>{var{config:config,Unit:Unit,BigNumber:BigNumber}=_ref,unit=new Unit("BigNumber"===config.number?new BigNumber(valueStr):parseFloat(valueStr),unitStr);return unit.fixPrefix=!0,unit}))}function numberFactory(name,value){return(0,_utils_factory_js__WEBPACK_IMPORTED_MODULE_0__.d5)(name,["config","BigNumber"],(_ref2=>{var{config:config,BigNumber:BigNumber}=_ref2;return"BigNumber"===config.number?new BigNumber(value):value}))}},"./node_modules/mathjs/lib/esm/utils/applyCallback.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return applyCallback}});var typed_function__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/typed-function/lib/umd/typed-function.js"),typed_function__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(typed_function__WEBPACK_IMPORTED_MODULE_0__),_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js");function applyCallback(callback,value,index,array,mappingFnName){if(typed_function__WEBPACK_IMPORTED_MODULE_0___default().isTypedFunction(callback)){var args3=[value,index,array],signature3=typed_function__WEBPACK_IMPORTED_MODULE_0___default().resolve(callback,args3);if(signature3)return tryWithArgs(signature3.implementation,args3);var args2=[value,index],signature2=typed_function__WEBPACK_IMPORTED_MODULE_0___default().resolve(callback,args2);if(signature2)return tryWithArgs(signature2.implementation,args2);var args1=[value],signature1=typed_function__WEBPACK_IMPORTED_MODULE_0___default().resolve(callback,args1);return signature1?tryWithArgs(signature1.implementation,args1):tryWithArgs(callback,args3)}return callback(value,index,array);function tryWithArgs(signature,args){try{return signature.apply(signature,args)}catch(err){var _err$data;if(err instanceof TypeError&&"wrongType"===(null===(_err$data=err.data)||void 0===_err$data?void 0:_err$data.category)){var argsDesc=[];throw argsDesc.push("value: ".concat((0,_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(value))),args.length>=2&&argsDesc.push("index: ".concat((0,_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(index))),args.length>=3&&argsDesc.push("array: ".concat((0,_is_js__WEBPACK_IMPORTED_MODULE_1__.kM)(array))),new TypeError("Function ".concat(mappingFnName," cannot apply callback arguments ")+"".concat(callback.name,"(").concat(argsDesc.join(", "),") at index ").concat(JSON.stringify(index)))}throw new TypeError("Function ".concat(mappingFnName," cannot apply callback arguments ")+"to function ".concat(callback.name,": ").concat(err.message))}}}},"./node_modules/mathjs/lib/esm/utils/array.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$q:function(){return getArrayDataType},D$:function(){return generalize},Ed:function(){return forEach},Gu:function(){return validate},JD:function(){return isEmptyIndex},L9:function(){return squeeze},Ls:function(){return validateIndex},SI:function(){return resize},UF:function(){return broadcastTo},UI:function(){return map},U_:function(){return filterRegExp},XL:function(){return reshape},aJ:function(){return arraySize},bc:function(){return validateIndexSourceSize},cV:function(){return checkBroadcastingRules},eu:function(){return processSizesWildcard},f4:function(){return unsqueeze},hX:function(){return filter},r3:function(){return contains},v_:function(){return join},xH:function(){return flatten},yV:function(){return identify},zo:function(){return concat}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_number_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),_is_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_string_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),_error_DimensionError_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/error/DimensionError.js"),_error_IndexError_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/error/IndexError.js"),_object_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js");function arraySize(x){for(var s=[];Array.isArray(x);)s.push(x.length),x=x[0];return s}function _validate(array,size,dim){var i,len=array.length;if(len!==size[dim])throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_0__.m(len,size[dim]);if(dim")}function validate(array,size){if(0===size.length){if(Array.isArray(array))throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_0__.m(array.length,0)}else _validate(array,size,0)}function validateIndexSourceSize(value,index){var valueSize=value.isMatrix?value._size:arraySize(value);index._sourceSize.forEach(((sourceDim,i)=>{if(null!==sourceDim&&sourceDim!==valueSize[i])throw new _error_DimensionError_js__WEBPACK_IMPORTED_MODULE_0__.m(sourceDim,valueSize[i])}))}function validateIndex(index,length){if(void 0!==index){if(!(0,_is_js__WEBPACK_IMPORTED_MODULE_1__.hj)(index)||!(0,_number_js__WEBPACK_IMPORTED_MODULE_2__.U)(index))throw new TypeError("Index must be an integer (value: "+index+")");if(index<0||"number"==typeof length&&index>=length)throw new _error_IndexError_js__WEBPACK_IMPORTED_MODULE_3__.c(index,length)}}function isEmptyIndex(index){for(var i=0;i=0){if(!(currentLength%newLength==0))throw new Error("Could not replace wildcard, since "+currentLength+" is no multiple of "+-newLength);processedSizes[wildCardIndex]=-currentLength/newLength}return processedSizes}function product(array){return array.reduce(((prev,curr)=>prev*curr),1)}function squeeze(array,size){for(var s=size||arraySize(array);Array.isArray(array)&&1===array.length;)array=array[0],s.shift();for(var dims=s.length;1===s[dims-1];)dims--;return dimsregexp.test(entry)))}function join(array,separator){return Array.prototype.join.call(array,separator)}function identify(a){if(!Array.isArray(a))throw new TypeError("Array input expected");if(0===a.length)return a;var b=[],count=0;b[0]={value:a[0],identifier:0};for(var i=1;i1)return arrays.slice(1).reduce((function(A,B){return concatRecursive(A,B,concatDim,0)}),arrays[0]);throw new Error("Wrong number of arguments in function concat")}function broadcastSizes(){for(var _len=arguments.length,sizes=new Array(_len),_key=0;_key<_len;_key++)sizes[_key]=arguments[_key];for(var dimensions=sizes.map((s=>s.length)),N=Math.max(...dimensions),sizeMax=new Array(N).fill(null),i=0;isizeMax[n]&&(sizeMax[n]=size[j])}for(var _i=0;_i1||size[j]>toSize[n])throw new Error("shape missmatch: missmatch is found in arg with shape (".concat(size,") not possible to broadcast dimension ").concat(dim," with size ").concat(size[j]," to size ").concat(toSize[n]))}}function broadcastTo(array,toSize){var Asize=arraySize(array);if((0,_object_js__WEBPACK_IMPORTED_MODULE_5__.J5)(Asize,toSize))return array;checkBroadcastingRules(Asize,toSize);var arrayToStretch,sizeToStretch,dimToStretch,broadcastedSize=broadcastSizes(Asize,toSize),N=broadcastedSize.length,paddedSize=[...Array(N-Asize.length).fill(1),...Asize],A=function clone(array){return(0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_6__.Z)([],array)}(array);Asize.length0;)func(minBits[--shortLen],maxBits[--longLen])===expFuncVal&&(outVal=outVal.plus(twoPower)),twoPower=twoPower.times(two);for(;longLen>0;)func(minSign,maxBits[--longLen])===expFuncVal&&(outVal=outVal.plus(twoPower)),twoPower=twoPower.times(two);return BigNumber.config({precision:prevPrec}),0===expFuncVal&&(outVal.s=-outVal.s),outVal}function decCoefficientToBinaryString(x){for(var a=x.d,r=a[0]+"",i=1;i0)if(++xe>strL)for(xe-=strL;xe--;)str+="0";else xe1&&(null!==arr[_j+1]&&void 0!==arr[_j+1]||(arr[_j+1]=0),arr[_j+1]+=arr[_j]>>1,arr[_j]&=1)}return arr.reverse()}function bitXor(x,y){if(x.isFinite()&&!x.isInteger()||y.isFinite()&&!y.isInteger())throw new Error("Integers expected in function bitXor");var BigNumber=x.constructor;if(x.isNaN()||y.isNaN())return new BigNumber(NaN);if(x.isZero())return y;if(y.isZero())return x;if(x.eq(y))return new BigNumber(0);var negOne=new BigNumber(-1);return x.eq(negOne)?bitNotBigNumber(y):y.eq(negOne)?bitNotBigNumber(x):x.isFinite()&&y.isFinite()?bitwise(x,y,(function(a,b){return a^b})):x.isFinite()||y.isFinite()?new BigNumber(x.isNegative()===y.isNegative()?1/0:-1/0):negOne}function leftShiftBigNumber(x,y){if(x.isFinite()&&!x.isInteger()||y.isFinite()&&!y.isInteger())throw new Error("Integers expected in function leftShift");var BigNumber=x.constructor;return x.isNaN()||y.isNaN()||y.isNegative()&&!y.isZero()?new BigNumber(NaN):x.isZero()||y.isZero()?x:x.isFinite()||y.isFinite()?y.lt(55)?x.times(Math.pow(2,y.toNumber())+""):x.times(new BigNumber(2).pow(y)):new BigNumber(NaN)}function rightArithShiftBigNumber(x,y){if(x.isFinite()&&!x.isInteger()||y.isFinite()&&!y.isInteger())throw new Error("Integers expected in function rightArithShift");var BigNumber=x.constructor;return x.isNaN()||y.isNaN()||y.isNegative()&&!y.isZero()?new BigNumber(NaN):x.isZero()||y.isZero()?x:y.isFinite()?y.lt(55)?x.div(Math.pow(2,y.toNumber())+"").floor():x.div(new BigNumber(2).pow(y)).floor():x.isNegative()?new BigNumber(-1):x.isFinite()?new BigNumber(0):new BigNumber(NaN)}__webpack_require__.d(__webpack_exports__,{Mw:function(){return leftShiftBigNumber},Vq:function(){return bitOrBigNumber},Xc:function(){return bitNotBigNumber},hi:function(){return bitAndBigNumber},nN:function(){return bitXor},ti:function(){return rightArithShiftBigNumber}})},"./node_modules/mathjs/lib/esm/utils/bignumber/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{j_:function(){return createBigNumberTau},vu:function(){return createBigNumberE},wY:function(){return createBigNumberPi},zm:function(){return createBigNumberPhi}});var _function_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/function.js"),createBigNumberE=(0,_function_js__WEBPACK_IMPORTED_MODULE_0__.HP)((function(BigNumber){return new BigNumber(1).exp()}),{hasher:hasher}),createBigNumberPhi=(0,_function_js__WEBPACK_IMPORTED_MODULE_0__.HP)((function(BigNumber){return new BigNumber(1).plus(new BigNumber(5).sqrt()).div(2)}),{hasher:hasher}),createBigNumberPi=(0,_function_js__WEBPACK_IMPORTED_MODULE_0__.HP)((function(BigNumber){return BigNumber.acos(-1)}),{hasher:hasher}),createBigNumberTau=(0,_function_js__WEBPACK_IMPORTED_MODULE_0__.HP)((function(BigNumber){return createBigNumberPi(BigNumber).times(2)}),{hasher:hasher});function hasher(args){return args[0].precision}},"./node_modules/mathjs/lib/esm/utils/bignumber/nearlyEqual.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function nearlyEqual(x,y,epsilon){if(null==epsilon)return x.eq(y);if(x.eq(y))return!0;if(x.isNaN()||y.isNaN())return!1;if(x.isFinite()&&y.isFinite()){var diff=x.minus(y).abs();if(diff.isZero())return!0;var max=x.constructor.max(x.abs(),y.abs());return diff.lte(max.times(epsilon))}return!1}__webpack_require__.d(__webpack_exports__,{R:function(){return nearlyEqual}})},"./node_modules/mathjs/lib/esm/utils/collection.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{CQ:function(){return containsCollections},Et:function(){return deepForEach},Fh:function(){return deepMap},U6:function(){return scatter},u4:function(){return reduce}});var _is_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),_error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/error/IndexError.js"),_array_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),_switch_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/switch.js");function containsCollections(array){for(var i=0;i=size.length)throw new _error_IndexError_js__WEBPACK_IMPORTED_MODULE_2__.c(dim,size.length);return(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.SW)(mat)?mat.create(_reduce(mat.valueOf(),dim,callback)):_reduce(mat,dim,callback)}function _reduce(mat,dim,callback){var i,ret,val,tran;if(dim<=0){if(Array.isArray(mat[0])){for(tran=(0,_switch_js__WEBPACK_IMPORTED_MODULE_3__.c)(mat),ret=[],i=0;i!function isOptionalDependency(dependency){return dependency&&"?"===dependency[0]}(dependency))).every((dependency=>void 0!==scope[dependency]));if(!allDefined){var missingDependencies=dependencies.filter((dependency=>void 0===scope[dependency]));throw new Error('Cannot create function "'.concat(name,'", ')+"some dependencies are missing: ".concat(missingDependencies.map((d=>'"'.concat(d,'"'))).join(", "),"."))}}(name,dependencies,scope),create(deps)}return assertAndCreate.isFactory=!0,assertAndCreate.fn=name,assertAndCreate.dependencies=dependencies.slice().sort(),meta&&(assertAndCreate.meta=meta),assertAndCreate}function isFactory(obj){return"function"==typeof obj&&"string"==typeof obj.fn&&Array.isArray(obj.dependencies)}function stripOptionalNotation(dependency){return dependency&&"?"===dependency[0]?dependency.slice(1):dependency}},"./node_modules/mathjs/lib/esm/utils/function.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function lruQueue(limit){var size=0,base=1,queue=Object.create(null),map=Object.create(null),index=0,del=function del(id){var oldIndex=map[id];if(oldIndex&&(delete queue[oldIndex],delete map[id],--size,base===oldIndex)){if(!size)return index=0,void(base=1);for(;!Object.prototype.hasOwnProperty.call(queue,++base););}};return limit=Math.abs(limit),{hit:function hit(id){var oldIndex=map[id],nuIndex=++index;if(queue[nuIndex]=id,map[id]=nuIndex,!oldIndex){if(++size<=limit)return;return id=queue[base],del(id),id}if(delete queue[oldIndex],base===oldIndex)for(;!Object.prototype.hasOwnProperty.call(queue,++base););},delete:del,clear:function clear(){size=index=0,base=1,queue=Object.create(null),map=Object.create(null)}}}function memoize(fn){var{hasher:hasher,limit:limit}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return limit=null==limit?Number.POSITIVE_INFINITY:limit,hasher=null==hasher?JSON.stringify:hasher,function memoize(){"object"!=typeof memoize.cache&&(memoize.cache={values:new Map,lru:lruQueue(limit||Number.POSITIVE_INFINITY)});for(var args=[],i=0;i[key,this.get(key)]))}forEach(callback){for(var key of this.keys())callback(this.get(key),key,this)}delete(key){delete this.wrappedObject[key]}clear(){for(var key of this.keys())this.delete(key)}get size(){return Object.keys(this.wrappedObject).length}}class PartitionedMap{constructor(a,b,bKeys){this.a=a,this.b=b,this.bKeys=bKeys,this[Symbol.iterator]=this.entries}get(key){return this.bKeys.has(key)?this.b.get(key):this.a.get(key)}set(key,value){return this.bKeys.has(key)?this.b.set(key,value):this.a.set(key,value),this}has(key){return this.b.has(key)||this.a.has(key)}keys(){return new Set([...this.a.keys(),...this.b.keys()])[Symbol.iterator]()}entries(){return mapIterator(this.keys(),(key=>[key,this.get(key)]))}forEach(callback){for(var key of this.keys())callback(this.get(key),key,this)}delete(key){return this.bKeys.has(key)?this.b.delete(key):this.a.delete(key)}clear(){this.a.clear(),this.b.clear()}get size(){return[...this.keys()].length}}function mapIterator(it,callback){return{next:()=>{var n=it.next();return n.done?n:{value:callback(n.value),done:!1}}}}function createEmptyMap(){return new Map}function createMap(mapOrObject){if(!mapOrObject)return createEmptyMap();if(isMap(mapOrObject))return mapOrObject;if((0,_is_js__WEBPACK_IMPORTED_MODULE_1__.Kn)(mapOrObject))return new ObjectWrappingMap(mapOrObject);throw new Error("createMap can create maps from objects or Maps")}function toObject(map){if(map instanceof ObjectWrappingMap)return map.wrappedObject;var object={};for(var key of map.keys()){var value=map.get(key);(0,_customs_js__WEBPACK_IMPORTED_MODULE_0__.nI)(object,key,value)}return object}function isMap(object){return!!object&&(object instanceof Map||object instanceof ObjectWrappingMap||"function"==typeof object.set&&"function"==typeof object.get&&"function"==typeof object.keys&&"function"==typeof object.has)}},"./node_modules/mathjs/lib/esm/utils/noop.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function noBignumber(){throw new Error('No "bignumber" implementation available')}function noFraction(){throw new Error('No "fraction" implementation available')}function noMatrix(){throw new Error('No "matrix" implementation available')}__webpack_require__.d(__webpack_exports__,{R3:function(){return noBignumber},kX:function(){return noMatrix},nG:function(){return noFraction}})},"./node_modules/mathjs/lib/esm/utils/number.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AE:function(){return tanh},C8:function(){return atanh},FH:function(){return toFixed},JG:function(){return copysign},Kr:function(){return log1p},RI:function(){return nearlyEqual},R_:function(){return sinh},U:function(){return isInteger},Vf:function(){return asinh},WU:function(){return format},Xx:function(){return sign},__:function(){return acosh},eK:function(){return cbrt},f9:function(){return cosh},k3:function(){return log2},mv:function(){return log10},nz:function(){return digits},t$:function(){return expm1},uR:function(){return normalizeFormatOptions},wV:function(){return splitNumber}});var _is_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js");function isInteger(value){return"boolean"==typeof value||!!isFinite(value)&&value===Math.round(value)}var sign=Math.sign||function(x){return x>0?1:x<0?-1:0},log2=Math.log2||function log2(x){return Math.log(x)/Math.LN2},log10=Math.log10||function log10(x){return Math.log(x)/Math.LN10},log1p=Math.log1p||function(x){return Math.log(x+1)},cbrt=Math.cbrt||function cbrt(x){if(0===x)return x;var result,negate=x<0;return negate&&(x=-x),result=isFinite(x)?(x/((result=Math.exp(Math.log(x)/3))*result)+2*result)/3:x,negate?-result:result},expm1=Math.expm1||function expm1(x){return x>=2e-4||x<=-2e-4?Math.exp(x)-1:x+x*x/2+x*x*x/6};function formatNumberToBase(n,base,size){var prefix={2:"0b",8:"0o",16:"0x"}[base],suffix="";if(size){if(size<1)throw new Error("size must be in greater than 0");if(!isInteger(size))throw new Error("size must be an integer");if(n>2**(size-1)-1||n<-(2**(size-1)))throw new Error("Value must be in range [-2^".concat(size-1,", 2^").concat(size-1,"-1]"));if(!isInteger(n))throw new Error("Value must be an integer");n<0&&(n+=2**size),suffix="i".concat(size)}var sign="";return n<0&&(n=-n,sign="-"),"".concat(sign).concat(prefix).concat(n.toString(base)).concat(suffix)}function format(value,options){if("function"==typeof options)return options(value);if(value===1/0)return"Infinity";if(value===-1/0)return"-Infinity";if(isNaN(value))return"NaN";var{notation:notation,precision:precision,wordSize:wordSize}=normalizeFormatOptions(options);switch(notation){case"fixed":return toFixed(value,precision);case"exponential":return toExponential(value,precision);case"engineering":return function toEngineering(value,precision){if(isNaN(value)||!isFinite(value))return String(value);var split=splitNumber(value),rounded=roundDigits(split,precision),e=rounded.exponent,c=rounded.coefficients,newExp=e%3==0?e:e<0?e-3-e%3:e-e%3;if((0,_is_js__WEBPACK_IMPORTED_MODULE_0__.hj)(precision))for(;precision>c.length||e-newExp+1>c.length;)c.push(0);else for(var missingZeros=Math.abs(e-newExp)-(c.length-1),i=0;i0;)decimalIdx++,expDiff--;var decimals=c.slice(decimalIdx).join(""),decimalVal=(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.hj)(precision)&&decimals.length||decimals.match(/[1-9]/)?"."+decimals:"",str=c.slice(0,decimalIdx).join("")+decimalVal+"e"+(e>=0?"+":"")+newExp.toString();return rounded.sign+str}(value,precision);case"bin":return formatNumberToBase(value,2,wordSize);case"oct":return formatNumberToBase(value,8,wordSize);case"hex":return formatNumberToBase(value,16,wordSize);case"auto":return function toPrecision(value,precision,options){if(isNaN(value)||!isFinite(value))return String(value);var lowerExp=_toNumberOrDefault(null==options?void 0:options.lowerExp,-3),upperExp=_toNumberOrDefault(null==options?void 0:options.upperExp,5),split=splitNumber(value),rounded=precision?roundDigits(split,precision):split;if(rounded.exponent=upperExp)return toExponential(value,precision);var c=rounded.coefficients,e=rounded.exponent;c.length0?e:0;return dot<(c=zeros(-e).concat(c)).length-1&&c.splice(dot+1,0,"."),rounded.sign+c.join("")}(value,precision,options).replace(/((\.\d*?)(0+))($|e)/,(function(){var digits=arguments[2],e=arguments[4];return"."!==digits?digits+e:e}));default:throw new Error('Unknown notation "'+notation+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function normalizeFormatOptions(options){var precision,wordSize,notation="auto";if(void 0!==options)if((0,_is_js__WEBPACK_IMPORTED_MODULE_0__.hj)(options))precision=options;else if((0,_is_js__WEBPACK_IMPORTED_MODULE_0__.l9)(options))precision=options.toNumber();else{if(!(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.Kn)(options))throw new Error("Unsupported type of options, number, BigNumber, or object expected");void 0!==options.precision&&(precision=_toNumberOrThrow(options.precision,(()=>{throw new Error('Option "precision" must be a number or BigNumber')}))),void 0!==options.wordSize&&(wordSize=_toNumberOrThrow(options.wordSize,(()=>{throw new Error('Option "wordSize" must be a number or BigNumber')}))),options.notation&&(notation=options.notation)}return{notation:notation,precision:precision,wordSize:wordSize}}function splitNumber(value){var match=String(value).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!match)throw new SyntaxError("Invalid number "+value);var sign=match[1],digits=match[2],exponent=parseFloat(match[4]||"0"),dot=digits.indexOf(".");exponent+=-1!==dot?dot-1:digits.length-1;var coefficients=digits.replace(".","").replace(/^0*/,(function(zeros){return exponent-=zeros.length,""})).replace(/0*$/,"").split("").map((function(d){return parseInt(d)}));return 0===coefficients.length&&(coefficients.push(0),exponent++),{sign:sign,coefficients:coefficients,exponent:exponent}}function toFixed(value,precision){if(isNaN(value)||!isFinite(value))return String(value);var splitValue=splitNumber(value),rounded="number"==typeof precision?roundDigits(splitValue,splitValue.exponent+1+precision):splitValue,c=rounded.coefficients,p=rounded.exponent+1,pp=p+(precision||0);return c.length0?"."+c.join(""):"")+"e"+(e>=0?"+":"")+e}function roundDigits(split,precision){for(var rounded={sign:split.sign,coefficients:split.coefficients,exponent:split.exponent},c=rounded.coefficients;precision<=0;)c.unshift(0),rounded.exponent++,precision++;if(c.length>precision&&c.splice(precision,c.length-precision)[0]>=5){var i=precision-1;for(c[i]++;10===c[i];)c.pop(),0===i&&(c.unshift(0),rounded.exponent++,i++),c[--i]++}return rounded}function zeros(length){for(var arr=[],i=0;i0||!(x<0)&&1/x==1/0)^(y>0||!(y<0)&&1/y==1/0)?-x:x}function _toNumberOrThrow(value,onError){return(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.hj)(value)?value:(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.l9)(value)?value.toNumber():void onError()}function _toNumberOrDefault(value,defaultValue){return(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.hj)(value)?value:(0,_is_js__WEBPACK_IMPORTED_MODULE_0__.l9)(value)?value.toNumber():defaultValue}},"./node_modules/mathjs/lib/esm/utils/object.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J5:function(){return deepStrictEqual},VO:function(){return values},Vo:function(){return lazy},W6:function(){return pickShallow},Xc:function(){return mapObject},Yo:function(){return isLegacyFactory},ZB:function(){return deepExtend},d9:function(){return clone},l7:function(){return extend},nr:function(){return hasOwnProperty},oO:function(){return deepFlatten}});var _is_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js");function clone(x){var type=typeof x;if("number"===type||"string"===type||"boolean"===type||null==x)return x;if("function"==typeof x.clone)return x.clone();if(Array.isArray(x))return x.map((function(value){return clone(value)}));if(x instanceof Date)return new Date(x.valueOf());if((0,_is_js__WEBPACK_IMPORTED_MODULE_0__.l9)(x))return x;if((0,_is_js__WEBPACK_IMPORTED_MODULE_0__.Kn)(x))return mapObject(x,clone);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(x,")"))}function mapObject(object,callback){var clone={};for(var key in object)hasOwnProperty(object,key)&&(clone[key]=callback(object[key]));return clone}function extend(a,b){for(var prop in b)hasOwnProperty(b,prop)&&(a[prop]=b[prop]);return a}function deepExtend(a,b){if(Array.isArray(b))throw new TypeError("Arrays are not supported by deepExtend");for(var prop in b)if(hasOwnProperty(b,prop)&&!(prop in Object.prototype)&&!(prop in Function.prototype))if(b[prop]&&b[prop].constructor===Object)void 0===a[prop]&&(a[prop]={}),a[prop]&&a[prop].constructor===Object?deepExtend(a[prop],b[prop]):a[prop]=b[prop];else{if(Array.isArray(b[prop]))throw new TypeError("Arrays are not supported by deepExtend");a[prop]=b[prop]}return a}function deepStrictEqual(a,b){var prop,i,len;if(Array.isArray(a)){if(!Array.isArray(b))return!1;if(a.length!==b.length)return!1;for(i=0,len=a.length;iobject[key]))}},"./node_modules/mathjs/lib/esm/utils/print.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return printTemplate}});var printTemplate=/\$([\w.]+)/g},"./node_modules/mathjs/lib/esm/utils/product.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function product(i,n){if(n>1;return product(i,half)*product(half+1,n)}__webpack_require__.d(__webpack_exports__,{O:function(){return product}})},"./node_modules/mathjs/lib/esm/utils/string.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{cd:function(){return compareText},pn:function(){return endsWith},YU:function(){return string_escape},WU:function(){return string_format},Pz:function(){return stringify}});var is=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),number=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js");function formatBigNumberToBase(n,base,size){var big2=new(0,n.constructor)(2),suffix="";if(size){if(size<1)throw new Error("size must be in greater than 0");if(!(0,number.U)(size))throw new Error("size must be an integer");if(n.greaterThan(big2.pow(size-1).sub(1))||n.lessThan(big2.pow(size-1).mul(-1)))throw new Error("Value must be in range [-2^".concat(size-1,", 2^").concat(size-1,"-1]"));if(!n.isInteger())throw new Error("Value must be an integer");n.lessThan(0)&&(n=n.add(big2.pow(size))),suffix="i".concat(size)}switch(base){case 2:return"".concat(n.toBinary()).concat(suffix);case 8:return"".concat(n.toOctal()).concat(suffix);case 16:return"".concat(n.toHexadecimal()).concat(suffix);default:throw new Error("Base ".concat(base," not supported "))}}function format(value,options){if("function"==typeof options)return options(value);if(!value.isFinite())return value.isNaN()?"NaN":value.gt(0)?"Infinity":"-Infinity";var{notation:notation,precision:precision,wordSize:wordSize}=(0,number.uR)(options);switch(notation){case"fixed":return function toFixed(value,precision){return value.toFixed(precision)}(value,precision);case"exponential":return toExponential(value,precision);case"engineering":return function toEngineering(value,precision){var e=value.e,newExp=e%3==0?e:e<0?e-3-e%3:e-e%3,valueWithoutExp=value.mul(Math.pow(10,-newExp)),valueStr=valueWithoutExp.toPrecision(precision);if(-1!==valueStr.indexOf("e")){valueStr=new(0,value.constructor)(valueStr).toFixed()}return valueStr+"e"+(e>=0?"+":"")+newExp.toString()}(value,precision);case"bin":return formatBigNumberToBase(value,2,wordSize);case"oct":return formatBigNumberToBase(value,8,wordSize);case"hex":return formatBigNumberToBase(value,16,wordSize);case"auto":var lowerExp=_toNumberOrDefault(null==options?void 0:options.lowerExp,-3),upperExp=_toNumberOrDefault(null==options?void 0:options.upperExp,5);if(value.isZero())return"0";var rounded=value.toSignificantDigits(precision),exp=rounded.e;return(exp>=lowerExp&&expstringify(key)+": "+string_format(value[key],options))).join(", ")+"}"}return String(value)}(value,options);return options&&"object"==typeof options&&"truncate"in options&&result.length>options.truncate?result.substring(0,options.truncate-3)+"...":result}function stringify(value){for(var text=String(value),escaped="",i=0;i/g,">")}function formatArray(array,options){if(Array.isArray(array)){for(var str="[",len=array.length,i=0;iy?1:-1}},"./node_modules/mathjs/lib/esm/utils/switch.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function _switch(mat){var i,j,I=mat.length,J=mat[0].length,ret=[];for(j=0;j0?opt.windowBits=-opt.windowBits:opt.gzip&&opt.windowBits>0&&opt.windowBits<16&&(opt.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;var status=zlib_deflate.deflateInit2(this.strm,opt.level,opt.method,opt.windowBits,opt.memLevel,opt.strategy);if(status!==Z_OK)throw new Error(msg[status]);if(opt.header&&zlib_deflate.deflateSetHeader(this.strm,opt.header),opt.dictionary){var dict;if(dict="string"==typeof opt.dictionary?strings.string2buf(opt.dictionary):"[object ArrayBuffer]"===toString.call(opt.dictionary)?new Uint8Array(opt.dictionary):opt.dictionary,(status=zlib_deflate.deflateSetDictionary(this.strm,dict))!==Z_OK)throw new Error(msg[status]);this._dict_set=!0}}function deflate(input,options){var deflator=new Deflate(options);if(deflator.push(input,!0),deflator.err)throw deflator.msg||msg[deflator.err];return deflator.result}Deflate.prototype.push=function(data,mode){var status,_mode,strm=this.strm,chunkSize=this.options.chunkSize;if(this.ended)return!1;_mode=mode===~~mode?mode:!0===mode?4:0,"string"==typeof data?strm.input=strings.string2buf(data):"[object ArrayBuffer]"===toString.call(data)?strm.input=new Uint8Array(data):strm.input=data,strm.next_in=0,strm.avail_in=strm.input.length;do{if(0===strm.avail_out&&(strm.output=new utils.Buf8(chunkSize),strm.next_out=0,strm.avail_out=chunkSize),1!==(status=zlib_deflate.deflate(strm,_mode))&&status!==Z_OK)return this.onEnd(status),this.ended=!0,!1;0!==strm.avail_out&&(0!==strm.avail_in||4!==_mode&&2!==_mode)||("string"===this.options.to?this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output,strm.next_out))):this.onData(utils.shrinkBuf(strm.output,strm.next_out)))}while((strm.avail_in>0||0===strm.avail_out)&&1!==status);return 4===_mode?(status=zlib_deflate.deflateEnd(this.strm),this.onEnd(status),this.ended=!0,status===Z_OK):2!==_mode||(this.onEnd(Z_OK),strm.avail_out=0,!0)},Deflate.prototype.onData=function(chunk){this.chunks.push(chunk)},Deflate.prototype.onEnd=function(status){status===Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=utils.flattenChunks(this.chunks)),this.chunks=[],this.err=status,this.msg=this.strm.msg},exports.Deflate=Deflate,exports.deflate=deflate,exports.deflateRaw=function deflateRaw(input,options){return(options=options||{}).raw=!0,deflate(input,options)},exports.gzip=function gzip(input,options){return(options=options||{}).gzip=!0,deflate(input,options)}},"./node_modules/pako/lib/inflate.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var zlib_inflate=__webpack_require__("./node_modules/pako/lib/zlib/inflate.js"),utils=__webpack_require__("./node_modules/pako/lib/utils/common.js"),strings=__webpack_require__("./node_modules/pako/lib/utils/strings.js"),c=__webpack_require__("./node_modules/pako/lib/zlib/constants.js"),msg=__webpack_require__("./node_modules/pako/lib/zlib/messages.js"),ZStream=__webpack_require__("./node_modules/pako/lib/zlib/zstream.js"),GZheader=__webpack_require__("./node_modules/pako/lib/zlib/gzheader.js"),toString=Object.prototype.toString;function Inflate(options){if(!(this instanceof Inflate))return new Inflate(options);this.options=utils.assign({chunkSize:16384,windowBits:0,to:""},options||{});var opt=this.options;opt.raw&&opt.windowBits>=0&&opt.windowBits<16&&(opt.windowBits=-opt.windowBits,0===opt.windowBits&&(opt.windowBits=-15)),!(opt.windowBits>=0&&opt.windowBits<16)||options&&options.windowBits||(opt.windowBits+=32),opt.windowBits>15&&opt.windowBits<48&&0==(15&opt.windowBits)&&(opt.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;var status=zlib_inflate.inflateInit2(this.strm,opt.windowBits);if(status!==c.Z_OK)throw new Error(msg[status]);if(this.header=new GZheader,zlib_inflate.inflateGetHeader(this.strm,this.header),opt.dictionary&&("string"==typeof opt.dictionary?opt.dictionary=strings.string2buf(opt.dictionary):"[object ArrayBuffer]"===toString.call(opt.dictionary)&&(opt.dictionary=new Uint8Array(opt.dictionary)),opt.raw&&(status=zlib_inflate.inflateSetDictionary(this.strm,opt.dictionary))!==c.Z_OK))throw new Error(msg[status])}function inflate(input,options){var inflator=new Inflate(options);if(inflator.push(input,!0),inflator.err)throw inflator.msg||msg[inflator.err];return inflator.result}Inflate.prototype.push=function(data,mode){var status,_mode,next_out_utf8,tail,utf8str,strm=this.strm,chunkSize=this.options.chunkSize,dictionary=this.options.dictionary,allowBufError=!1;if(this.ended)return!1;_mode=mode===~~mode?mode:!0===mode?c.Z_FINISH:c.Z_NO_FLUSH,"string"==typeof data?strm.input=strings.binstring2buf(data):"[object ArrayBuffer]"===toString.call(data)?strm.input=new Uint8Array(data):strm.input=data,strm.next_in=0,strm.avail_in=strm.input.length;do{if(0===strm.avail_out&&(strm.output=new utils.Buf8(chunkSize),strm.next_out=0,strm.avail_out=chunkSize),(status=zlib_inflate.inflate(strm,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&dictionary&&(status=zlib_inflate.inflateSetDictionary(this.strm,dictionary)),status===c.Z_BUF_ERROR&&!0===allowBufError&&(status=c.Z_OK,allowBufError=!1),status!==c.Z_STREAM_END&&status!==c.Z_OK)return this.onEnd(status),this.ended=!0,!1;strm.next_out&&(0!==strm.avail_out&&status!==c.Z_STREAM_END&&(0!==strm.avail_in||_mode!==c.Z_FINISH&&_mode!==c.Z_SYNC_FLUSH)||("string"===this.options.to?(next_out_utf8=strings.utf8border(strm.output,strm.next_out),tail=strm.next_out-next_out_utf8,utf8str=strings.buf2string(strm.output,next_out_utf8),strm.next_out=tail,strm.avail_out=chunkSize-tail,tail&&utils.arraySet(strm.output,strm.output,next_out_utf8,tail,0),this.onData(utf8str)):this.onData(utils.shrinkBuf(strm.output,strm.next_out)))),0===strm.avail_in&&0===strm.avail_out&&(allowBufError=!0)}while((strm.avail_in>0||0===strm.avail_out)&&status!==c.Z_STREAM_END);return status===c.Z_STREAM_END&&(_mode=c.Z_FINISH),_mode===c.Z_FINISH?(status=zlib_inflate.inflateEnd(this.strm),this.onEnd(status),this.ended=!0,status===c.Z_OK):_mode!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),strm.avail_out=0,!0)},Inflate.prototype.onData=function(chunk){this.chunks.push(chunk)},Inflate.prototype.onEnd=function(status){status===c.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=utils.flattenChunks(this.chunks)),this.chunks=[],this.err=status,this.msg=this.strm.msg},exports.Inflate=Inflate,exports.inflate=inflate,exports.inflateRaw=function inflateRaw(input,options){return(options=options||{}).raw=!0,inflate(input,options)},exports.ungzip=inflate},"./node_modules/pako/lib/utils/common.js":function(__unused_webpack_module,exports){"use strict";var TYPED_OK="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function _has(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}exports.assign=function(obj){for(var sources=Array.prototype.slice.call(arguments,1);sources.length;){var source=sources.shift();if(source){if("object"!=typeof source)throw new TypeError(source+"must be non-object");for(var p in source)_has(source,p)&&(obj[p]=source[p])}}return obj},exports.shrinkBuf=function(buf,size){return buf.length===size?buf:buf.subarray?buf.subarray(0,size):(buf.length=size,buf)};var fnTyped={arraySet:function(dest,src,src_offs,len,dest_offs){if(src.subarray&&dest.subarray)dest.set(src.subarray(src_offs,src_offs+len),dest_offs);else for(var i=0;i=252?6:q>=248?5:q>=240?4:q>=224?3:q>=192?2:1;function buf2binstring(buf,len){if(len<65534&&(buf.subarray&&STR_APPLY_UIA_OK||!buf.subarray&&STR_APPLY_OK))return String.fromCharCode.apply(null,utils.shrinkBuf(buf,len));for(var result="",i=0;i>>6,buf[i++]=128|63&c):c<65536?(buf[i++]=224|c>>>12,buf[i++]=128|c>>>6&63,buf[i++]=128|63&c):(buf[i++]=240|c>>>18,buf[i++]=128|c>>>12&63,buf[i++]=128|c>>>6&63,buf[i++]=128|63&c);return buf},exports.buf2binstring=function(buf){return buf2binstring(buf,buf.length)},exports.binstring2buf=function(str){for(var buf=new utils.Buf8(str.length),i=0,len=buf.length;i4)utf16buf[out++]=65533,i+=c_len-1;else{for(c&=2===c_len?31:3===c_len?15:7;c_len>1&&i1?utf16buf[out++]=65533:c<65536?utf16buf[out++]=c:(c-=65536,utf16buf[out++]=55296|c>>10&1023,utf16buf[out++]=56320|1023&c)}return buf2binstring(utf16buf,out)},exports.utf8border=function(buf,max){var pos;for((max=max||buf.length)>buf.length&&(max=buf.length),pos=max-1;pos>=0&&128==(192&buf[pos]);)pos--;return pos<0||0===pos?max:pos+_utf8len[buf[pos]]>max?pos:max}},"./node_modules/pako/lib/zlib/adler32.js":function(module){"use strict";module.exports=function adler32(adler,buf,len,pos){for(var s1=65535&adler|0,s2=adler>>>16&65535|0,n=0;0!==len;){len-=n=len>2e3?2e3:len;do{s2=s2+(s1=s1+buf[pos++]|0)|0}while(--n);s1%=65521,s2%=65521}return s1|s2<<16|0}},"./node_modules/pako/lib/zlib/constants.js":function(module){"use strict";module.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},"./node_modules/pako/lib/zlib/crc32.js":function(module){"use strict";var crcTable=function makeTable(){for(var c,table=[],n=0;n<256;n++){c=n;for(var k=0;k<8;k++)c=1&c?3988292384^c>>>1:c>>>1;table[n]=c}return table}();module.exports=function crc32(crc,buf,len,pos){var t=crcTable,end=pos+len;crc^=-1;for(var i=pos;i>>8^t[255&(crc^buf[i])];return-1^crc}},"./node_modules/pako/lib/zlib/deflate.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var configuration_table,utils=__webpack_require__("./node_modules/pako/lib/utils/common.js"),trees=__webpack_require__("./node_modules/pako/lib/zlib/trees.js"),adler32=__webpack_require__("./node_modules/pako/lib/zlib/adler32.js"),crc32=__webpack_require__("./node_modules/pako/lib/zlib/crc32.js"),msg=__webpack_require__("./node_modules/pako/lib/zlib/messages.js"),Z_NO_FLUSH=0,Z_FINISH=4,Z_OK=0,Z_STREAM_ERROR=-2,Z_DEFAULT_COMPRESSION=-1,Z_FIXED=4,Z_UNKNOWN=2,Z_DEFLATED=8,MAX_MEM_LEVEL=9,L_CODES=286,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,INIT_STATE=42,BUSY_STATE=113,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4;function err(strm,errorCode){return strm.msg=msg[errorCode],errorCode}function rank(f){return(f<<1)-(f>4?9:0)}function zero(buf){for(var len=buf.length;--len>=0;)buf[len]=0}function flush_pending(strm){var s=strm.state,len=s.pending;len>strm.avail_out&&(len=strm.avail_out),0!==len&&(utils.arraySet(strm.output,s.pending_buf,s.pending_out,len,strm.next_out),strm.next_out+=len,s.pending_out+=len,strm.total_out+=len,strm.avail_out-=len,s.pending-=len,0===s.pending&&(s.pending_out=0))}function flush_block_only(s,last){trees._tr_flush_block(s,s.block_start>=0?s.block_start:-1,s.strstart-s.block_start,last),s.block_start=s.strstart,flush_pending(s.strm)}function put_byte(s,b){s.pending_buf[s.pending++]=b}function putShortMSB(s,b){s.pending_buf[s.pending++]=b>>>8&255,s.pending_buf[s.pending++]=255&b}function longest_match(s,cur_match){var match,len,chain_length=s.max_chain_length,scan=s.strstart,best_len=s.prev_length,nice_match=s.nice_match,limit=s.strstart>s.w_size-MIN_LOOKAHEAD?s.strstart-(s.w_size-MIN_LOOKAHEAD):0,_win=s.window,wmask=s.w_mask,prev=s.prev,strend=s.strstart+MAX_MATCH,scan_end1=_win[scan+best_len-1],scan_end=_win[scan+best_len];s.prev_length>=s.good_match&&(chain_length>>=2),nice_match>s.lookahead&&(nice_match=s.lookahead);do{if(_win[(match=cur_match)+best_len]===scan_end&&_win[match+best_len-1]===scan_end1&&_win[match]===_win[scan]&&_win[++match]===_win[scan+1]){scan+=2,match++;do{}while(_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&scanbest_len){if(s.match_start=cur_match,best_len=len,len>=nice_match)break;scan_end1=_win[scan+best_len-1],scan_end=_win[scan+best_len]}}}while((cur_match=prev[cur_match&wmask])>limit&&0!=--chain_length);return best_len<=s.lookahead?best_len:s.lookahead}function fill_window(s){var p,n,m,more,str,strm,buf,start,size,len,_w_size=s.w_size;do{if(more=s.window_size-s.lookahead-s.strstart,s.strstart>=_w_size+(_w_size-MIN_LOOKAHEAD)){utils.arraySet(s.window,s.window,_w_size,_w_size,0),s.match_start-=_w_size,s.strstart-=_w_size,s.block_start-=_w_size,p=n=s.hash_size;do{m=s.head[--p],s.head[p]=m>=_w_size?m-_w_size:0}while(--n);p=n=_w_size;do{m=s.prev[--p],s.prev[p]=m>=_w_size?m-_w_size:0}while(--n);more+=_w_size}if(0===s.strm.avail_in)break;if(strm=s.strm,buf=s.window,start=s.strstart+s.lookahead,size=more,len=void 0,(len=strm.avail_in)>size&&(len=size),n=0===len?0:(strm.avail_in-=len,utils.arraySet(buf,strm.input,strm.next_in,len,start),1===strm.state.wrap?strm.adler=adler32(strm.adler,buf,len,start):2===strm.state.wrap&&(strm.adler=crc32(strm.adler,buf,len,start)),strm.next_in+=len,strm.total_in+=len,len),s.lookahead+=n,s.lookahead+s.insert>=MIN_MATCH)for(str=s.strstart-s.insert,s.ins_h=s.window[str],s.ins_h=(s.ins_h<=MIN_MATCH&&(s.ins_h=(s.ins_h<=MIN_MATCH)if(bflush=trees._tr_tally(s,s.strstart-s.match_start,s.match_length-MIN_MATCH),s.lookahead-=s.match_length,s.match_length<=s.max_lazy_match&&s.lookahead>=MIN_MATCH){s.match_length--;do{s.strstart++,s.ins_h=(s.ins_h<=MIN_MATCH&&(s.ins_h=(s.ins_h<4096)&&(s.match_length=MIN_MATCH-1)),s.prev_length>=MIN_MATCH&&s.match_length<=s.prev_length){max_insert=s.strstart+s.lookahead-MIN_MATCH,bflush=trees._tr_tally(s,s.strstart-1-s.prev_match,s.prev_length-MIN_MATCH),s.lookahead-=s.prev_length-1,s.prev_length-=2;do{++s.strstart<=max_insert&&(s.ins_h=(s.ins_h<15&&(wrap=2,windowBits-=16),memLevel<1||memLevel>MAX_MEM_LEVEL||method!==Z_DEFLATED||windowBits<8||windowBits>15||level<0||level>9||strategy<0||strategy>Z_FIXED)return err(strm,Z_STREAM_ERROR);8===windowBits&&(windowBits=9);var s=new DeflateState;return strm.state=s,s.strm=strm,s.wrap=wrap,s.gzhead=null,s.w_bits=windowBits,s.w_size=1<s.pending_buf_size-5&&(max_block_size=s.pending_buf_size-5);;){if(s.lookahead<=1){if(fill_window(s),0===s.lookahead&&flush===Z_NO_FLUSH)return BS_NEED_MORE;if(0===s.lookahead)break}s.strstart+=s.lookahead,s.lookahead=0;var max_start=s.block_start+max_block_size;if((0===s.strstart||s.strstart>=max_start)&&(s.lookahead=s.strstart-max_start,s.strstart=max_start,flush_block_only(s,!1),0===s.strm.avail_out))return BS_NEED_MORE;if(s.strstart-s.block_start>=s.w_size-MIN_LOOKAHEAD&&(flush_block_only(s,!1),0===s.strm.avail_out))return BS_NEED_MORE}return s.insert=0,flush===Z_FINISH?(flush_block_only(s,!0),0===s.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):(s.strstart>s.block_start&&(flush_block_only(s,!1),s.strm.avail_out),BS_NEED_MORE)})),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],exports.deflateInit=function deflateInit(strm,level){return deflateInit2(strm,level,Z_DEFLATED,15,8,0)},exports.deflateInit2=deflateInit2,exports.deflateReset=deflateReset,exports.deflateResetKeep=deflateResetKeep,exports.deflateSetHeader=function deflateSetHeader(strm,head){return strm&&strm.state?2!==strm.state.wrap?Z_STREAM_ERROR:(strm.state.gzhead=head,Z_OK):Z_STREAM_ERROR},exports.deflate=function deflate(strm,flush){var old_flush,s,beg,val;if(!strm||!strm.state||flush>5||flush<0)return strm?err(strm,Z_STREAM_ERROR):Z_STREAM_ERROR;if(s=strm.state,!strm.output||!strm.input&&0!==strm.avail_in||666===s.status&&flush!==Z_FINISH)return err(strm,0===strm.avail_out?-5:Z_STREAM_ERROR);if(s.strm=strm,old_flush=s.last_flush,s.last_flush=flush,s.status===INIT_STATE)if(2===s.wrap)strm.adler=0,put_byte(s,31),put_byte(s,139),put_byte(s,8),s.gzhead?(put_byte(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),put_byte(s,255&s.gzhead.time),put_byte(s,s.gzhead.time>>8&255),put_byte(s,s.gzhead.time>>16&255),put_byte(s,s.gzhead.time>>24&255),put_byte(s,9===s.level?2:s.strategy>=2||s.level<2?4:0),put_byte(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(put_byte(s,255&s.gzhead.extra.length),put_byte(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=69):(put_byte(s,0),put_byte(s,0),put_byte(s,0),put_byte(s,0),put_byte(s,0),put_byte(s,9===s.level?2:s.strategy>=2||s.level<2?4:0),put_byte(s,3),s.status=BUSY_STATE);else{var header=Z_DEFLATED+(s.w_bits-8<<4)<<8;header|=(s.strategy>=2||s.level<2?0:s.level<6?1:6===s.level?2:3)<<6,0!==s.strstart&&(header|=32),header+=31-header%31,s.status=BUSY_STATE,putShortMSB(s,header),0!==s.strstart&&(putShortMSB(s,strm.adler>>>16),putShortMSB(s,65535&strm.adler)),strm.adler=1}if(69===s.status)if(s.gzhead.extra){for(beg=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),flush_pending(strm),beg=s.pending,s.pending!==s.pending_buf_size));)put_byte(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=73)}else s.status=73;if(73===s.status)if(s.gzhead.name){beg=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),flush_pending(strm),beg=s.pending,s.pending===s.pending_buf_size)){val=1;break}val=s.gzindexbeg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),0===val&&(s.gzindex=0,s.status=91)}else s.status=91;if(91===s.status)if(s.gzhead.comment){beg=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),flush_pending(strm),beg=s.pending,s.pending===s.pending_buf_size)){val=1;break}val=s.gzindexbeg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),0===val&&(s.status=103)}else s.status=103;if(103===s.status&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&flush_pending(strm),s.pending+2<=s.pending_buf_size&&(put_byte(s,255&strm.adler),put_byte(s,strm.adler>>8&255),strm.adler=0,s.status=BUSY_STATE)):s.status=BUSY_STATE),0!==s.pending){if(flush_pending(strm),0===strm.avail_out)return s.last_flush=-1,Z_OK}else if(0===strm.avail_in&&rank(flush)<=rank(old_flush)&&flush!==Z_FINISH)return err(strm,-5);if(666===s.status&&0!==strm.avail_in)return err(strm,-5);if(0!==strm.avail_in||0!==s.lookahead||flush!==Z_NO_FLUSH&&666!==s.status){var bstate=2===s.strategy?function deflate_huff(s,flush){for(var bflush;;){if(0===s.lookahead&&(fill_window(s),0===s.lookahead)){if(flush===Z_NO_FLUSH)return BS_NEED_MORE;break}if(s.match_length=0,bflush=trees._tr_tally(s,0,s.window[s.strstart]),s.lookahead--,s.strstart++,bflush&&(flush_block_only(s,!1),0===s.strm.avail_out))return BS_NEED_MORE}return s.insert=0,flush===Z_FINISH?(flush_block_only(s,!0),0===s.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):s.last_lit&&(flush_block_only(s,!1),0===s.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}(s,flush):3===s.strategy?function deflate_rle(s,flush){for(var bflush,prev,scan,strend,_win=s.window;;){if(s.lookahead<=MAX_MATCH){if(fill_window(s),s.lookahead<=MAX_MATCH&&flush===Z_NO_FLUSH)return BS_NEED_MORE;if(0===s.lookahead)break}if(s.match_length=0,s.lookahead>=MIN_MATCH&&s.strstart>0&&(prev=_win[scan=s.strstart-1])===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]){strend=s.strstart+MAX_MATCH;do{}while(prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&prev===_win[++scan]&&scans.lookahead&&(s.match_length=s.lookahead)}if(s.match_length>=MIN_MATCH?(bflush=trees._tr_tally(s,1,s.match_length-MIN_MATCH),s.lookahead-=s.match_length,s.strstart+=s.match_length,s.match_length=0):(bflush=trees._tr_tally(s,0,s.window[s.strstart]),s.lookahead--,s.strstart++),bflush&&(flush_block_only(s,!1),0===s.strm.avail_out))return BS_NEED_MORE}return s.insert=0,flush===Z_FINISH?(flush_block_only(s,!0),0===s.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):s.last_lit&&(flush_block_only(s,!1),0===s.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}(s,flush):configuration_table[s.level].func(s,flush);if(bstate!==BS_FINISH_STARTED&&bstate!==BS_FINISH_DONE||(s.status=666),bstate===BS_NEED_MORE||bstate===BS_FINISH_STARTED)return 0===strm.avail_out&&(s.last_flush=-1),Z_OK;if(bstate===BS_BLOCK_DONE&&(1===flush?trees._tr_align(s):5!==flush&&(trees._tr_stored_block(s,0,0,!1),3===flush&&(zero(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),flush_pending(strm),0===strm.avail_out))return s.last_flush=-1,Z_OK}return flush!==Z_FINISH?Z_OK:s.wrap<=0?1:(2===s.wrap?(put_byte(s,255&strm.adler),put_byte(s,strm.adler>>8&255),put_byte(s,strm.adler>>16&255),put_byte(s,strm.adler>>24&255),put_byte(s,255&strm.total_in),put_byte(s,strm.total_in>>8&255),put_byte(s,strm.total_in>>16&255),put_byte(s,strm.total_in>>24&255)):(putShortMSB(s,strm.adler>>>16),putShortMSB(s,65535&strm.adler)),flush_pending(strm),s.wrap>0&&(s.wrap=-s.wrap),0!==s.pending?Z_OK:1)},exports.deflateEnd=function deflateEnd(strm){var status;return strm&&strm.state?(status=strm.state.status)!==INIT_STATE&&69!==status&&73!==status&&91!==status&&103!==status&&status!==BUSY_STATE&&666!==status?err(strm,Z_STREAM_ERROR):(strm.state=null,status===BUSY_STATE?err(strm,-3):Z_OK):Z_STREAM_ERROR},exports.deflateSetDictionary=function deflateSetDictionary(strm,dictionary){var s,str,n,wrap,avail,next,input,tmpDict,dictLength=dictionary.length;if(!strm||!strm.state)return Z_STREAM_ERROR;if(2===(wrap=(s=strm.state).wrap)||1===wrap&&s.status!==INIT_STATE||s.lookahead)return Z_STREAM_ERROR;for(1===wrap&&(strm.adler=adler32(strm.adler,dictionary,dictLength,0)),s.wrap=0,dictLength>=s.w_size&&(0===wrap&&(zero(s.head),s.strstart=0,s.block_start=0,s.insert=0),tmpDict=new utils.Buf8(s.w_size),utils.arraySet(tmpDict,dictionary,dictLength-s.w_size,s.w_size,0),dictionary=tmpDict,dictLength=s.w_size),avail=strm.avail_in,next=strm.next_in,input=strm.input,strm.avail_in=dictLength,strm.next_in=0,strm.input=dictionary,fill_window(s);s.lookahead>=MIN_MATCH;){str=s.strstart,n=s.lookahead-(MIN_MATCH-1);do{s.ins_h=(s.ins_h<>>=op=here>>>24,bits-=op,0===(op=here>>>16&255))output[_out++]=65535&here;else{if(!(16&op)){if(0==(64&op)){here=lcode[(65535&here)+(hold&(1<>>=op,bits-=op),bits<15&&(hold+=input[_in++]<>>=op=here>>>24,bits-=op,!(16&(op=here>>>16&255))){if(0==(64&op)){here=dcode[(65535&here)+(hold&(1<dmax){strm.msg="invalid distance too far back",state.mode=30;break top}if(hold>>>=op,bits-=op,dist>(op=_out-beg)){if((op=dist-op)>whave&&state.sane){strm.msg="invalid distance too far back",state.mode=30;break top}if(from=0,from_source=s_window,0===wnext){if(from+=wsize-op,op2;)output[_out++]=from_source[from++],output[_out++]=from_source[from++],output[_out++]=from_source[from++],len-=3;len&&(output[_out++]=from_source[from++],len>1&&(output[_out++]=from_source[from++]))}else{from=_out-dist;do{output[_out++]=output[from++],output[_out++]=output[from++],output[_out++]=output[from++],len-=3}while(len>2);len&&(output[_out++]=output[from++],len>1&&(output[_out++]=output[from++]))}break}}break}}while(_in>3,hold&=(1<<(bits-=len<<3))-1,strm.next_in=_in,strm.next_out=_out,strm.avail_in=_in>>24&255)+(q>>>8&65280)+((65280&q)<<8)+((255&q)<<24)}function InflateState(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new utils.Buf16(320),this.work=new utils.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function inflateResetKeep(strm){var state;return strm&&strm.state?(state=strm.state,strm.total_in=strm.total_out=state.total=0,strm.msg="",state.wrap&&(strm.adler=1&state.wrap),state.mode=HEAD,state.last=0,state.havedict=0,state.dmax=32768,state.head=null,state.hold=0,state.bits=0,state.lencode=state.lendyn=new utils.Buf32(ENOUGH_LENS),state.distcode=state.distdyn=new utils.Buf32(ENOUGH_DISTS),state.sane=1,state.back=-1,Z_OK):Z_STREAM_ERROR}function inflateReset(strm){var state;return strm&&strm.state?((state=strm.state).wsize=0,state.whave=0,state.wnext=0,inflateResetKeep(strm)):Z_STREAM_ERROR}function inflateReset2(strm,windowBits){var wrap,state;return strm&&strm.state?(state=strm.state,windowBits<0?(wrap=0,windowBits=-windowBits):(wrap=1+(windowBits>>4),windowBits<48&&(windowBits&=15)),windowBits&&(windowBits<8||windowBits>15)?Z_STREAM_ERROR:(null!==state.window&&state.wbits!==windowBits&&(state.window=null),state.wrap=wrap,state.wbits=windowBits,inflateReset(strm))):Z_STREAM_ERROR}function inflateInit2(strm,windowBits){var ret,state;return strm?(state=new InflateState,strm.state=state,state.window=null,(ret=inflateReset2(strm,windowBits))!==Z_OK&&(strm.state=null),ret):Z_STREAM_ERROR}var lenfix,distfix,virgin=!0;function fixedtables(state){if(virgin){var sym;for(lenfix=new utils.Buf32(512),distfix=new utils.Buf32(32),sym=0;sym<144;)state.lens[sym++]=8;for(;sym<256;)state.lens[sym++]=9;for(;sym<280;)state.lens[sym++]=7;for(;sym<288;)state.lens[sym++]=8;for(inflate_table(LENS,state.lens,0,288,lenfix,0,state.work,{bits:9}),sym=0;sym<32;)state.lens[sym++]=5;inflate_table(DISTS,state.lens,0,32,distfix,0,state.work,{bits:5}),virgin=!1}state.lencode=lenfix,state.lenbits=9,state.distcode=distfix,state.distbits=5}function updatewindow(strm,src,end,copy){var dist,state=strm.state;return null===state.window&&(state.wsize=1<=state.wsize?(utils.arraySet(state.window,src,end-state.wsize,state.wsize,0),state.wnext=0,state.whave=state.wsize):((dist=state.wsize-state.wnext)>copy&&(dist=copy),utils.arraySet(state.window,src,end-copy,dist,state.wnext),(copy-=dist)?(utils.arraySet(state.window,src,end-copy,copy,0),state.wnext=copy,state.whave=state.wsize):(state.wnext+=dist,state.wnext===state.wsize&&(state.wnext=0),state.whave>>8&255,state.check=crc32(state.check,hbuf,2,0),hold=0,bits=0,state.mode=2;break}if(state.flags=0,state.head&&(state.head.done=!1),!(1&state.wrap)||(((255&hold)<<8)+(hold>>8))%31){strm.msg="incorrect header check",state.mode=30;break}if(8!=(15&hold)){strm.msg="unknown compression method",state.mode=30;break}if(bits-=4,len=8+(15&(hold>>>=4)),0===state.wbits)state.wbits=len;else if(len>state.wbits){strm.msg="invalid window size",state.mode=30;break}state.dmax=1<>8&1),512&state.flags&&(hbuf[0]=255&hold,hbuf[1]=hold>>>8&255,state.check=crc32(state.check,hbuf,2,0)),hold=0,bits=0,state.mode=3;case 3:for(;bits<32;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>8&255,hbuf[2]=hold>>>16&255,hbuf[3]=hold>>>24&255,state.check=crc32(state.check,hbuf,4,0)),hold=0,bits=0,state.mode=4;case 4:for(;bits<16;){if(0===have)break inf_leave;have--,hold+=input[next++]<>8),512&state.flags&&(hbuf[0]=255&hold,hbuf[1]=hold>>>8&255,state.check=crc32(state.check,hbuf,2,0)),hold=0,bits=0,state.mode=5;case 5:if(1024&state.flags){for(;bits<16;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>8&255,state.check=crc32(state.check,hbuf,2,0)),hold=0,bits=0}else state.head&&(state.head.extra=null);state.mode=6;case 6:if(1024&state.flags&&((copy=state.length)>have&&(copy=have),copy&&(state.head&&(len=state.head.extra_len-state.length,state.head.extra||(state.head.extra=new Array(state.head.extra_len)),utils.arraySet(state.head.extra,input,next,copy,len)),512&state.flags&&(state.check=crc32(state.check,input,copy,next)),have-=copy,next+=copy,state.length-=copy),state.length))break inf_leave;state.length=0,state.mode=7;case 7:if(2048&state.flags){if(0===have)break inf_leave;copy=0;do{len=input[next+copy++],state.head&&len&&state.length<65536&&(state.head.name+=String.fromCharCode(len))}while(len&©>9&1,state.head.done=!0),strm.adler=state.check=0,state.mode=12;break;case 10:for(;bits<32;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=7&bits,bits-=7&bits,state.mode=27;break}for(;bits<3;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=1)){case 0:state.mode=14;break;case 1:if(fixedtables(state),state.mode=20,6===flush){hold>>>=2,bits-=2;break inf_leave}break;case 2:state.mode=17;break;case 3:strm.msg="invalid block type",state.mode=30}hold>>>=2,bits-=2;break;case 14:for(hold>>>=7&bits,bits-=7&bits;bits<32;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>16^65535)){strm.msg="invalid stored block lengths",state.mode=30;break}if(state.length=65535&hold,hold=0,bits=0,state.mode=15,6===flush)break inf_leave;case 15:state.mode=16;case 16:if(copy=state.length){if(copy>have&&(copy=have),copy>left&&(copy=left),0===copy)break inf_leave;utils.arraySet(output,input,next,copy,put),have-=copy,next+=copy,left-=copy,put+=copy,state.length-=copy;break}state.mode=12;break;case 17:for(;bits<14;){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=5,bits-=5,state.ndist=1+(31&hold),hold>>>=5,bits-=5,state.ncode=4+(15&hold),hold>>>=4,bits-=4,state.nlen>286||state.ndist>30){strm.msg="too many length or distance symbols",state.mode=30;break}state.have=0,state.mode=18;case 18:for(;state.have>>=3,bits-=3}for(;state.have<19;)state.lens[order[state.have++]]=0;if(state.lencode=state.lendyn,state.lenbits=7,opts={bits:state.lenbits},ret=inflate_table(0,state.lens,0,19,state.lencode,0,state.work,opts),state.lenbits=opts.bits,ret){strm.msg="invalid code lengths set",state.mode=30;break}state.have=0,state.mode=19;case 19:for(;state.have>>16&255,here_val=65535&here,!((here_bits=here>>>24)<=bits);){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=here_bits,bits-=here_bits,state.lens[state.have++]=here_val;else{if(16===here_val){for(n=here_bits+2;bits>>=here_bits,bits-=here_bits,0===state.have){strm.msg="invalid bit length repeat",state.mode=30;break}len=state.lens[state.have-1],copy=3+(3&hold),hold>>>=2,bits-=2}else if(17===here_val){for(n=here_bits+3;bits>>=here_bits)),hold>>>=3,bits-=3}else{for(n=here_bits+7;bits>>=here_bits)),hold>>>=7,bits-=7}if(state.have+copy>state.nlen+state.ndist){strm.msg="invalid bit length repeat",state.mode=30;break}for(;copy--;)state.lens[state.have++]=len}}if(30===state.mode)break;if(0===state.lens[256]){strm.msg="invalid code -- missing end-of-block",state.mode=30;break}if(state.lenbits=9,opts={bits:state.lenbits},ret=inflate_table(LENS,state.lens,0,state.nlen,state.lencode,0,state.work,opts),state.lenbits=opts.bits,ret){strm.msg="invalid literal/lengths set",state.mode=30;break}if(state.distbits=6,state.distcode=state.distdyn,opts={bits:state.distbits},ret=inflate_table(DISTS,state.lens,state.nlen,state.ndist,state.distcode,0,state.work,opts),state.distbits=opts.bits,ret){strm.msg="invalid distances set",state.mode=30;break}if(state.mode=20,6===flush)break inf_leave;case 20:state.mode=21;case 21:if(have>=6&&left>=258){strm.next_out=put,strm.avail_out=left,strm.next_in=next,strm.avail_in=have,state.hold=hold,state.bits=bits,inflate_fast(strm,_out),put=strm.next_out,output=strm.output,left=strm.avail_out,next=strm.next_in,input=strm.input,have=strm.avail_in,hold=state.hold,bits=state.bits,12===state.mode&&(state.back=-1);break}for(state.back=0;here_op=(here=state.lencode[hold&(1<>>16&255,here_val=65535&here,!((here_bits=here>>>24)<=bits);){if(0===have)break inf_leave;have--,hold+=input[next++]<>last_bits)])>>>16&255,here_val=65535&here,!(last_bits+(here_bits=here>>>24)<=bits);){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=last_bits,bits-=last_bits,state.back+=last_bits}if(hold>>>=here_bits,bits-=here_bits,state.back+=here_bits,state.length=here_val,0===here_op){state.mode=26;break}if(32&here_op){state.back=-1,state.mode=12;break}if(64&here_op){strm.msg="invalid literal/length code",state.mode=30;break}state.extra=15&here_op,state.mode=22;case 22:if(state.extra){for(n=state.extra;bits>>=state.extra,bits-=state.extra,state.back+=state.extra}state.was=state.length,state.mode=23;case 23:for(;here_op=(here=state.distcode[hold&(1<>>16&255,here_val=65535&here,!((here_bits=here>>>24)<=bits);){if(0===have)break inf_leave;have--,hold+=input[next++]<>last_bits)])>>>16&255,here_val=65535&here,!(last_bits+(here_bits=here>>>24)<=bits);){if(0===have)break inf_leave;have--,hold+=input[next++]<>>=last_bits,bits-=last_bits,state.back+=last_bits}if(hold>>>=here_bits,bits-=here_bits,state.back+=here_bits,64&here_op){strm.msg="invalid distance code",state.mode=30;break}state.offset=here_val,state.extra=15&here_op,state.mode=24;case 24:if(state.extra){for(n=state.extra;bits>>=state.extra,bits-=state.extra,state.back+=state.extra}if(state.offset>state.dmax){strm.msg="invalid distance too far back",state.mode=30;break}state.mode=25;case 25:if(0===left)break inf_leave;if(copy=_out-left,state.offset>copy){if((copy=state.offset-copy)>state.whave&&state.sane){strm.msg="invalid distance too far back",state.mode=30;break}copy>state.wnext?(copy-=state.wnext,from=state.wsize-copy):from=state.wnext-copy,copy>state.length&&(copy=state.length),from_source=state.window}else from_source=output,from=put-state.offset,copy=state.length;copy>left&&(copy=left),left-=copy,state.length-=copy;do{output[put++]=from_source[from++]}while(--copy);0===state.length&&(state.mode=21);break;case 26:if(0===left)break inf_leave;output[put++]=state.length,left--,state.mode=21;break;case 27:if(state.wrap){for(;bits<32;){if(0===have)break inf_leave;have--,hold|=input[next++]<=1&&0===count[max];max--);if(root>max&&(root=max),0===max)return table[table_index++]=20971520,table[table_index++]=20971520,opts.bits=1,0;for(min=1;min0&&(0===type||1!==max))return-1;for(offs[1]=0,len=1;len<15;len++)offs[len+1]=offs[len]+count[len];for(sym=0;sym852||2===type&&used>592)return 1;for(;;){here_bits=len-drop,work[sym]end?(here_op=extra[extra_index+work[sym]],here_val=base[base_index+work[sym]]):(here_op=96,here_val=0),incr=1<>drop)+(fill-=incr)]=here_bits<<24|here_op<<16|here_val|0}while(0!==fill);for(incr=1<>=1;if(0!==incr?(huff&=incr-1,huff+=incr):huff=0,sym++,0==--count[len]){if(len===max)break;len=lens[lens_index+work[sym]]}if(len>root&&(huff&mask)!==low){for(0===drop&&(drop=root),next+=min,left=1<<(curr=len-drop);curr+drop852||2===type&&used>592)return 1;table[low=huff&mask]=root<<24|curr<<16|next-table_index|0}}return 0!==huff&&(table[next+huff]=len-drop<<24|64<<16|0),opts.bits=root,0}},"./node_modules/pako/lib/zlib/messages.js":function(module){"use strict";module.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},"./node_modules/pako/lib/zlib/trees.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var utils=__webpack_require__("./node_modules/pako/lib/utils/common.js"),Z_BINARY=0,Z_TEXT=1;function zero(buf){for(var len=buf.length;--len>=0;)buf[len]=0}var STORED_BLOCK=0,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],static_ltree=new Array(2*(L_CODES+2));zero(static_ltree);var static_dtree=new Array(2*D_CODES);zero(static_dtree);var _dist_code=new Array(512);zero(_dist_code);var _length_code=new Array(256);zero(_length_code);var base_length=new Array(LENGTH_CODES);zero(base_length);var static_l_desc,static_d_desc,static_bl_desc,base_dist=new Array(D_CODES);function StaticTreeDesc(static_tree,extra_bits,extra_base,elems,max_length){this.static_tree=static_tree,this.extra_bits=extra_bits,this.extra_base=extra_base,this.elems=elems,this.max_length=max_length,this.has_stree=static_tree&&static_tree.length}function TreeDesc(dyn_tree,stat_desc){this.dyn_tree=dyn_tree,this.max_code=0,this.stat_desc=stat_desc}function d_code(dist){return dist<256?_dist_code[dist]:_dist_code[256+(dist>>>7)]}function put_short(s,w){s.pending_buf[s.pending++]=255&w,s.pending_buf[s.pending++]=w>>>8&255}function send_bits(s,value,length){s.bi_valid>Buf_size-length?(s.bi_buf|=value<>Buf_size-s.bi_valid,s.bi_valid+=length-Buf_size):(s.bi_buf|=value<>>=1,res<<=1}while(--len>0);return res>>>1}function gen_codes(tree,max_code,bl_count){var bits,n,next_code=new Array(MAX_BITS+1),code=0;for(bits=1;bits<=MAX_BITS;bits++)next_code[bits]=code=code+bl_count[bits-1]<<1;for(n=0;n<=max_code;n++){var len=tree[2*n+1];0!==len&&(tree[2*n]=bi_reverse(next_code[len]++,len))}}function init_block(s){var n;for(n=0;n8?put_short(s,s.bi_buf):s.bi_valid>0&&(s.pending_buf[s.pending++]=s.bi_buf),s.bi_buf=0,s.bi_valid=0}function smaller(tree,n,m,depth){var _n2=2*n,_m2=2*m;return tree[_n2]>1;n>=1;n--)pqdownheap(s,tree,n);node=elems;do{n=s.heap[1],s.heap[1]=s.heap[s.heap_len--],pqdownheap(s,tree,1),m=s.heap[1],s.heap[--s.heap_max]=n,s.heap[--s.heap_max]=m,tree[2*node]=tree[2*n]+tree[2*m],s.depth[node]=(s.depth[n]>=s.depth[m]?s.depth[n]:s.depth[m])+1,tree[2*n+1]=tree[2*m+1]=node,s.heap[1]=node++,pqdownheap(s,tree,1)}while(s.heap_len>=2);s.heap[--s.heap_max]=s.heap[1],function gen_bitlen(s,desc){var h,n,m,bits,xbits,f,tree=desc.dyn_tree,max_code=desc.max_code,stree=desc.stat_desc.static_tree,has_stree=desc.stat_desc.has_stree,extra=desc.stat_desc.extra_bits,base=desc.stat_desc.extra_base,max_length=desc.stat_desc.max_length,overflow=0;for(bits=0;bits<=MAX_BITS;bits++)s.bl_count[bits]=0;for(tree[2*s.heap[s.heap_max]+1]=0,h=s.heap_max+1;hmax_length&&(bits=max_length,overflow++),tree[2*n+1]=bits,n>max_code||(s.bl_count[bits]++,xbits=0,n>=base&&(xbits=extra[n-base]),f=tree[2*n],s.opt_len+=f*(bits+xbits),has_stree&&(s.static_len+=f*(stree[2*n+1]+xbits)));if(0!==overflow){do{for(bits=max_length-1;0===s.bl_count[bits];)bits--;s.bl_count[bits]--,s.bl_count[bits+1]+=2,s.bl_count[max_length]--,overflow-=2}while(overflow>0);for(bits=max_length;0!==bits;bits--)for(n=s.bl_count[bits];0!==n;)(m=s.heap[--h])>max_code||(tree[2*m+1]!==bits&&(s.opt_len+=(bits-tree[2*m+1])*tree[2*m],tree[2*m+1]=bits),n--)}}(s,desc),gen_codes(tree,max_code,s.bl_count)}function scan_tree(s,tree,max_code){var n,curlen,prevlen=-1,nextlen=tree[1],count=0,max_count=7,min_count=4;for(0===nextlen&&(max_count=138,min_count=3),tree[2*(max_code+1)+1]=65535,n=0;n<=max_code;n++)curlen=nextlen,nextlen=tree[2*(n+1)+1],++count>=7;code0?(2===s.strm.data_type&&(s.strm.data_type=function detect_data_type(s){var n,black_mask=4093624447;for(n=0;n<=31;n++,black_mask>>>=1)if(1&black_mask&&0!==s.dyn_ltree[2*n])return Z_BINARY;if(0!==s.dyn_ltree[18]||0!==s.dyn_ltree[20]||0!==s.dyn_ltree[26])return Z_TEXT;for(n=32;n=3&&0===s.bl_tree[2*bl_order[max_blindex]+1];max_blindex--);return s.opt_len+=3*(max_blindex+1)+5+5+4,max_blindex}(s),opt_lenb=s.opt_len+3+7>>>3,(static_lenb=s.static_len+3+7>>>3)<=opt_lenb&&(opt_lenb=static_lenb)):opt_lenb=static_lenb=stored_len+5,stored_len+4<=opt_lenb&&-1!==buf?_tr_stored_block(s,buf,stored_len,last):4===s.strategy||static_lenb===opt_lenb?(send_bits(s,2+(last?1:0),3),compress_block(s,static_ltree,static_dtree)):(send_bits(s,4+(last?1:0),3),function send_all_trees(s,lcodes,dcodes,blcodes){var rank;for(send_bits(s,lcodes-257,5),send_bits(s,dcodes-1,5),send_bits(s,blcodes-4,4),rank=0;rank>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&dist,s.pending_buf[s.l_buf+s.last_lit]=255&lc,s.last_lit++,0===dist?s.dyn_ltree[2*lc]++:(s.matches++,dist--,s.dyn_ltree[2*(_length_code[lc]+LITERALS+1)]++,s.dyn_dtree[2*d_code(dist)]++),s.last_lit===s.lit_bufsize-1},exports._tr_align=function _tr_align(s){send_bits(s,2,3),send_code(s,END_BLOCK,static_ltree),function bi_flush(s){16===s.bi_valid?(put_short(s,s.bi_buf),s.bi_buf=0,s.bi_valid=0):s.bi_valid>=8&&(s.pending_buf[s.pending++]=255&s.bi_buf,s.bi_buf>>=8,s.bi_valid-=8)}(s)}},"./node_modules/pako/lib/zlib/zstream.js":function(module){"use strict";module.exports=function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"./node_modules/pbf/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";module.exports=Pbf;var ieee754=__webpack_require__("./node_modules/ieee754/index.js");function Pbf(buf){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(buf)?buf:new Uint8Array(buf||0),this.pos=0,this.type=0,this.length=this.buf.length}Pbf.Varint=0,Pbf.Fixed64=1,Pbf.Bytes=2,Pbf.Fixed32=5;var utf8TextDecoder="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function readPackedEnd(pbf){return pbf.type===Pbf.Bytes?pbf.readVarint()+pbf.pos:pbf.pos+1}function toNum(low,high,isSigned){return isSigned?4294967296*high+(low>>>0):4294967296*(high>>>0)+(low>>>0)}function makeRoomForExtraLength(startPos,len,pbf){var extraLen=len<=16383?1:len<=2097151?2:len<=268435455?3:Math.floor(Math.log(len)/(7*Math.LN2));pbf.realloc(extraLen);for(var i=pbf.pos-1;i>=startPos;i--)pbf.buf[i+extraLen]=pbf.buf[i]}function writePackedVarint(arr,pbf){for(var i=0;i>>8,buf[pos+2]=val>>>16,buf[pos+3]=val>>>24}function readInt32(buf,pos){return(buf[pos]|buf[pos+1]<<8|buf[pos+2]<<16)+(buf[pos+3]<<24)}Pbf.prototype={destroy:function(){this.buf=null},readFields:function(readField,result,end){for(end=end||this.length;this.pos>3,startPos=this.pos;this.type=7&val,readField(tag,result,this),this.pos===startPos&&this.skip(val)}return result},readMessage:function(readField,result){return this.readFields(readField,result,this.readVarint()+this.pos)},readFixed32:function(){var val=readUInt32(this.buf,this.pos);return this.pos+=4,val},readSFixed32:function(){var val=readInt32(this.buf,this.pos);return this.pos+=4,val},readFixed64:function(){var val=readUInt32(this.buf,this.pos)+4294967296*readUInt32(this.buf,this.pos+4);return this.pos+=8,val},readSFixed64:function(){var val=readUInt32(this.buf,this.pos)+4294967296*readInt32(this.buf,this.pos+4);return this.pos+=8,val},readFloat:function(){var val=ieee754.read(this.buf,this.pos,!0,23,4);return this.pos+=4,val},readDouble:function(){var val=ieee754.read(this.buf,this.pos,!0,52,8);return this.pos+=8,val},readVarint:function(isSigned){var val,b,buf=this.buf;return val=127&(b=buf[this.pos++]),b<128?val:(val|=(127&(b=buf[this.pos++]))<<7,b<128?val:(val|=(127&(b=buf[this.pos++]))<<14,b<128?val:(val|=(127&(b=buf[this.pos++]))<<21,b<128?val:function readVarintRemainder(l,s,p){var h,b,buf=p.buf;if(b=buf[p.pos++],h=(112&b)>>4,b<128)return toNum(l,h,s);if(b=buf[p.pos++],h|=(127&b)<<3,b<128)return toNum(l,h,s);if(b=buf[p.pos++],h|=(127&b)<<10,b<128)return toNum(l,h,s);if(b=buf[p.pos++],h|=(127&b)<<17,b<128)return toNum(l,h,s);if(b=buf[p.pos++],h|=(127&b)<<24,b<128)return toNum(l,h,s);if(b=buf[p.pos++],h|=(1&b)<<31,b<128)return toNum(l,h,s);throw new Error("Expected varint not more than 10 bytes")}(val|=(15&(b=buf[this.pos]))<<28,isSigned,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var num=this.readVarint();return num%2==1?(num+1)/-2:num/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var end=this.readVarint()+this.pos,pos=this.pos;return this.pos=end,end-pos>=12&&utf8TextDecoder?function readUtf8TextDecoder(buf,pos,end){return utf8TextDecoder.decode(buf.subarray(pos,end))}(this.buf,pos,end):function readUtf8(buf,pos,end){var str="",i=pos;for(;i239?4:b0>223?3:b0>191?2:1;if(i+bytesPerSequence>end)break;1===bytesPerSequence?b0<128&&(c=b0):2===bytesPerSequence?128==(192&(b1=buf[i+1]))&&(c=(31&b0)<<6|63&b1)<=127&&(c=null):3===bytesPerSequence?(b1=buf[i+1],b2=buf[i+2],128==(192&b1)&&128==(192&b2)&&((c=(15&b0)<<12|(63&b1)<<6|63&b2)<=2047||c>=55296&&c<=57343)&&(c=null)):4===bytesPerSequence&&(b1=buf[i+1],b2=buf[i+2],b3=buf[i+3],128==(192&b1)&&128==(192&b2)&&128==(192&b3)&&((c=(15&b0)<<18|(63&b1)<<12|(63&b2)<<6|63&b3)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,bytesPerSequence=1):c>65535&&(c-=65536,str+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),str+=String.fromCharCode(c),i+=bytesPerSequence}return str}(this.buf,pos,end)},readBytes:function(){var end=this.readVarint()+this.pos,buffer=this.buf.subarray(this.pos,end);return this.pos=end,buffer},readPackedVarint:function(arr,isSigned){if(this.type!==Pbf.Bytes)return arr.push(this.readVarint(isSigned));var end=readPackedEnd(this);for(arr=arr||[];this.pos127;);else if(type===Pbf.Bytes)this.pos=this.readVarint()+this.pos;else if(type===Pbf.Fixed32)this.pos+=4;else{if(type!==Pbf.Fixed64)throw new Error("Unimplemented type: "+type);this.pos+=8}},writeTag:function(tag,type){this.writeVarint(tag<<3|type)},realloc:function(min){for(var length=this.length||16;length268435455||val<0?function writeBigVarint(val,pbf){var low,high;val>=0?(low=val%4294967296|0,high=val/4294967296|0):(high=~(-val/4294967296),4294967295^(low=~(-val%4294967296))?low=low+1|0:(low=0,high=high+1|0));if(val>=0x10000000000000000||val<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");pbf.realloc(10),function writeBigVarintLow(low,high,pbf){pbf.buf[pbf.pos++]=127&low|128,low>>>=7,pbf.buf[pbf.pos++]=127&low|128,low>>>=7,pbf.buf[pbf.pos++]=127&low|128,low>>>=7,pbf.buf[pbf.pos++]=127&low|128,low>>>=7,pbf.buf[pbf.pos]=127&low}(low,0,pbf),function writeBigVarintHigh(high,pbf){var lsb=(7&high)<<4;if(pbf.buf[pbf.pos++]|=lsb|((high>>>=3)?128:0),!high)return;if(pbf.buf[pbf.pos++]=127&high|((high>>>=7)?128:0),!high)return;if(pbf.buf[pbf.pos++]=127&high|((high>>>=7)?128:0),!high)return;if(pbf.buf[pbf.pos++]=127&high|((high>>>=7)?128:0),!high)return;if(pbf.buf[pbf.pos++]=127&high|((high>>>=7)?128:0),!high)return;pbf.buf[pbf.pos++]=127&high}(high,pbf)}(val,this):(this.realloc(4),this.buf[this.pos++]=127&val|(val>127?128:0),val<=127||(this.buf[this.pos++]=127&(val>>>=7)|(val>127?128:0),val<=127||(this.buf[this.pos++]=127&(val>>>=7)|(val>127?128:0),val<=127||(this.buf[this.pos++]=val>>>7&127))))},writeSVarint:function(val){this.writeVarint(val<0?2*-val-1:2*val)},writeBoolean:function(val){this.writeVarint(Boolean(val))},writeString:function(str){str=String(str),this.realloc(4*str.length),this.pos++;var startPos=this.pos;this.pos=function writeUtf8(buf,str,pos){for(var c,lead,i=0;i55295&&c<57344){if(!lead){c>56319||i+1===str.length?(buf[pos++]=239,buf[pos++]=191,buf[pos++]=189):lead=c;continue}if(c<56320){buf[pos++]=239,buf[pos++]=191,buf[pos++]=189,lead=c;continue}c=lead-55296<<10|c-56320|65536,lead=null}else lead&&(buf[pos++]=239,buf[pos++]=191,buf[pos++]=189,lead=null);c<128?buf[pos++]=c:(c<2048?buf[pos++]=c>>6|192:(c<65536?buf[pos++]=c>>12|224:(buf[pos++]=c>>18|240,buf[pos++]=c>>12&63|128),buf[pos++]=c>>6&63|128),buf[pos++]=63&c|128)}return pos}(this.buf,str,this.pos);var len=this.pos-startPos;len>=128&&makeRoomForExtraLength(startPos,len,this),this.pos=startPos-1,this.writeVarint(len),this.pos+=len},writeFloat:function(val){this.realloc(4),ieee754.write(this.buf,val,this.pos,!0,23,4),this.pos+=4},writeDouble:function(val){this.realloc(8),ieee754.write(this.buf,val,this.pos,!0,52,8),this.pos+=8},writeBytes:function(buffer){var len=buffer.length;this.writeVarint(len),this.realloc(len);for(var i=0;i=128&&makeRoomForExtraLength(startPos,len,this),this.pos=startPos-1,this.writeVarint(len),this.pos+=len},writeMessage:function(tag,fn,obj){this.writeTag(tag,Pbf.Bytes),this.writeRawMessage(fn,obj)},writePackedVarint:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedVarint,arr)},writePackedSVarint:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedSVarint,arr)},writePackedBoolean:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedBoolean,arr)},writePackedFloat:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedFloat,arr)},writePackedDouble:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedDouble,arr)},writePackedFixed32:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedFixed32,arr)},writePackedSFixed32:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedSFixed32,arr)},writePackedFixed64:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedFixed64,arr)},writePackedSFixed64:function(tag,arr){arr.length&&this.writeMessage(tag,writePackedSFixed64,arr)},writeBytesField:function(tag,buffer){this.writeTag(tag,Pbf.Bytes),this.writeBytes(buffer)},writeFixed32Field:function(tag,val){this.writeTag(tag,Pbf.Fixed32),this.writeFixed32(val)},writeSFixed32Field:function(tag,val){this.writeTag(tag,Pbf.Fixed32),this.writeSFixed32(val)},writeFixed64Field:function(tag,val){this.writeTag(tag,Pbf.Fixed64),this.writeFixed64(val)},writeSFixed64Field:function(tag,val){this.writeTag(tag,Pbf.Fixed64),this.writeSFixed64(val)},writeVarintField:function(tag,val){this.writeTag(tag,Pbf.Varint),this.writeVarint(val)},writeSVarintField:function(tag,val){this.writeTag(tag,Pbf.Varint),this.writeSVarint(val)},writeStringField:function(tag,str){this.writeTag(tag,Pbf.Bytes),this.writeString(str)},writeFloatField:function(tag,val){this.writeTag(tag,Pbf.Fixed32),this.writeFloat(val)},writeDoubleField:function(tag,val){this.writeTag(tag,Pbf.Fixed64),this.writeDouble(val)},writeBooleanField:function(tag,val){this.writeVarintField(tag,Boolean(val))}}},"./node_modules/polygon-clipping/dist/polygon-clipping.umd.js":function(module,__unused_webpack_exports,__webpack_require__){var process=__webpack_require__("./node_modules/process/browser.js");module.exports=function(){"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;ib?1:a0))break;if(null===t.right)break;if(comparator(i,t.right.key)>0&&(y=t.right,t.right=y.left,y.left=t,null===(t=y).right))break;l.right=t,l=t,t=t.right}}return l.right=t.left,r.left=t.right,t.left=N.right,t.right=N.left,t}function insert(i,data,t,comparator){var node=new Node(i,data);if(null===t)return node.left=node.right=null,node;var cmp=comparator(i,(t=splay(i,t,comparator)).key);return cmp<0?(node.left=t.left,node.right=t,t.left=null):cmp>=0&&(node.right=t.right,node.left=t,t.right=null),node}function split(key,v,comparator){var left=null,right=null;if(v){var cmp=comparator((v=splay(key,v,comparator)).key,key);0===cmp?(left=v.left,right=v.right):cmp<0?(right=v.right,v.right=null,left=v):(left=v.left,v.left=null,right=v)}return{left:left,right:right}}function merge(left,right,comparator){return null===right?left:(null===left||((right=splay(left.key,right,comparator)).left=left),right)}function printRow(root,prefix,isTail,out,printNode){if(root){out(prefix+(isTail?"└── ":"├── ")+printNode(root)+"\n");var indent=prefix+(isTail?" ":"│ ");root.left&&printRow(root.left,indent,!1,out,printNode),root.right&&printRow(root.right,indent,!0,out,printNode)}}var Tree=function(){function Tree(comparator){void 0===comparator&&(comparator=DEFAULT_COMPARE),this._root=null,this._size=0,this._comparator=comparator}return Tree.prototype.insert=function(key,data){return this._size++,this._root=insert(key,data,this._root,this._comparator)},Tree.prototype.add=function(key,data){var node=new Node(key,data);null===this._root&&(node.left=node.right=null,this._size++,this._root=node);var comparator=this._comparator,t=splay(key,this._root,comparator),cmp=comparator(key,t.key);return 0===cmp?this._root=t:(cmp<0?(node.left=t.left,node.right=t,t.left=null):cmp>0&&(node.right=t.right,node.left=t,t.right=null),this._size++,this._root=node),this._root},Tree.prototype.remove=function(key){this._root=this._remove(key,this._root,this._comparator)},Tree.prototype._remove=function(i,t,comparator){var x;return null===t?null:0===comparator(i,(t=splay(i,t,comparator)).key)?(null===t.left?x=t.right:(x=splay(i,t.left,comparator)).right=t.right,this._size--,x):t},Tree.prototype.pop=function(){var node=this._root;if(node){for(;node.left;)node=node.left;return this._root=splay(node.key,this._root,this._comparator),this._root=this._remove(node.key,this._root,this._comparator),{key:node.key,data:node.data}}return null},Tree.prototype.findStatic=function(key){for(var current=this._root,compare=this._comparator;current;){var cmp=compare(key,current.key);if(0===cmp)return current;current=cmp<0?current.left:current.right}return null},Tree.prototype.find=function(key){return this._root&&(this._root=splay(key,this._root,this._comparator),0!==this._comparator(key,this._root.key))?null:this._root},Tree.prototype.contains=function(key){for(var current=this._root,compare=this._comparator;current;){var cmp=compare(key,current.key);if(0===cmp)return!0;current=cmp<0?current.left:current.right}return!1},Tree.prototype.forEach=function(visitor,ctx){for(var current=this._root,Q=[],done=!1;!done;)null!==current?(Q.push(current),current=current.left):0!==Q.length?(current=Q.pop(),visitor.call(ctx,current),current=current.right):done=!0;return this},Tree.prototype.range=function(low,high,fn,ctx){for(var Q=[],compare=this._comparator,node=this._root;0!==Q.length||node;)if(node)Q.push(node),node=node.left;else{if(compare((node=Q.pop()).key,high)>0)break;if(compare(node.key,low)>=0&&fn.call(ctx,node))return this;node=node.right}return this},Tree.prototype.keys=function(){var keys=[];return this.forEach((function(_a){var key=_a.key;return keys.push(key)})),keys},Tree.prototype.values=function(){var values=[];return this.forEach((function(_a){var data=_a.data;return values.push(data)})),values},Tree.prototype.min=function(){return this._root?this.minNode(this._root).key:null},Tree.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},Tree.prototype.minNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.left;)t=t.left;return t},Tree.prototype.maxNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.right;)t=t.right;return t},Tree.prototype.at=function(index){for(var current=this._root,done=!1,i=0,Q=[];!done;)if(current)Q.push(current),current=current.left;else if(Q.length>0){if(current=Q.pop(),i===index)return current;i++,current=current.right}else done=!0;return null},Tree.prototype.next=function(d){var root=this._root,successor=null;if(d.right){for(successor=d.right;successor.left;)successor=successor.left;return successor}for(var comparator=this._comparator;root;){var cmp=comparator(d.key,root.key);if(0===cmp)break;cmp<0?(successor=root,root=root.left):root=root.right}return successor},Tree.prototype.prev=function(d){var root=this._root,predecessor=null;if(null!==d.left){for(predecessor=d.left;predecessor.right;)predecessor=predecessor.right;return predecessor}for(var comparator=this._comparator;root;){var cmp=comparator(d.key,root.key);if(0===cmp)break;cmp<0?root=root.left:(predecessor=root,root=root.right)}return predecessor},Tree.prototype.clear=function(){return this._root=null,this._size=0,this},Tree.prototype.toList=function(){return toList(this._root)},Tree.prototype.load=function(keys,values,presort){void 0===values&&(values=[]),void 0===presort&&(presort=!1);var size=keys.length,comparator=this._comparator;if(presort&&sort(keys,values,0,size-1,comparator),null===this._root)this._root=loadRecursive(keys,values,0,size),this._size=size;else{var mergedList=mergeLists(this.toList(),createList(keys,values),comparator);size=this._size+size,this._root=sortedListToBST({head:mergedList},0,size)}return this},Tree.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(Tree.prototype,"size",{get:function get(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(Tree.prototype,"root",{get:function get(){return this._root},enumerable:!0,configurable:!0}),Tree.prototype.toString=function(printNode){void 0===printNode&&(printNode=function printNode(n){return String(n.key)});var out=[];return printRow(this._root,"",!0,(function(v){return out.push(v)}),printNode),out.join("")},Tree.prototype.update=function(key,newKey,newData){var comparator=this._comparator,_a=split(key,this._root,comparator),left=_a.left,right=_a.right;comparator(key,newKey)<0?right=insert(newKey,newData,right,comparator):left=insert(newKey,newData,left,comparator),this._root=merge(left,right,comparator)},Tree.prototype.split=function(key){return split(key,this._root,this._comparator)},Tree}();function loadRecursive(keys,values,start,end){var size=end-start;if(size>0){var middle=start+Math.floor(size/2),key=keys[middle],data=values[middle],node=new Node(key,data);return node.left=loadRecursive(keys,values,start,middle),node.right=loadRecursive(keys,values,middle+1,end),node}return null}function createList(keys,values){for(var head=new Node(null,null),p=head,i=0;i0?current=(current=p=p.next=Q.pop()).right:done=!0;return p.next=null,head.next}function sortedListToBST(list,start,end){var size=end-start;if(size>0){var middle=start+Math.floor(size/2),left=sortedListToBST(list,start,middle),root=list.head;return root.left=left,list.head=list.head.next,root.right=sortedListToBST(list,middle+1,end),root}return null}function mergeLists(l1,l2,compare){for(var head=new Node(null,null),p=head,p1=l1,p2=l2;null!==p1&&null!==p2;)compare(p1.key,p2.key)<0?(p.next=p1,p1=p1.next):(p.next=p2,p2=p2.next),p=p.next;return null!==p1?p.next=p1:null!==p2&&(p.next=p2),head.next}function sort(keys,values,left,right,compare){if(!(left>=right)){for(var pivot=keys[left+right>>1],i=left-1,j=right+1;;){do{i++}while(compare(keys[i],pivot)<0);do{j--}while(compare(keys[j],pivot)>0);if(i>=j)break;var tmp=keys[i];keys[i]=keys[j],keys[j]=tmp,tmp=values[i],values[i]=values[j],values[j]=tmp}sort(keys,values,left,j,compare),sort(keys,values,j+1,right,compare)}}var isInBbox=function isInBbox(bbox,point){return bbox.ll.x<=point.x&&point.x<=bbox.ur.x&&bbox.ll.y<=point.y&&point.y<=bbox.ur.y},getBboxOverlap=function getBboxOverlap(b1,b2){if(b2.ur.xbPt.x?1:aPt.ybPt.y?1:0}}]),_createClass(SweepEvent,[{key:"link",value:function link(other){if(other.point===this.point)throw new Error("Tried to link already linked events");for(var otherEvents=other.point.events,i=0,iMax=otherEvents.length;i=0&&bsine>=0?acosinebcosine?-1:0:asine<0&&bsine<0?acosinebcosine?1:0:bsineasine?1:0}}}]),SweepEvent}(),segmentId=0,Segment=function(){function Segment(leftSE,rightSE,rings,windings){_classCallCheck(this,Segment),this.id=++segmentId,this.leftSE=leftSE,leftSE.segment=this,leftSE.otherSE=rightSE,this.rightSE=rightSE,rightSE.segment=this,rightSE.otherSE=leftSE,this.rings=rings,this.windings=windings}return _createClass(Segment,null,[{key:"compare",value:function compare(a,b){var alx=a.leftSE.point.x,blx=b.leftSE.point.x,arx=a.rightSE.point.x,brx=b.rightSE.point.x;if(brxaly&&bly>ary)return-1;var aCmpBLeft=a.comparePoint(b.leftSE.point);if(aCmpBLeft<0)return 1;if(aCmpBLeft>0)return-1;var bCmpARight=b.comparePoint(a.rightSE.point);return 0!==bCmpARight?bCmpARight:-1}if(alx>blx){if(alybly&&aly>bry)return 1;var bCmpALeft=b.comparePoint(a.leftSE.point);if(0!==bCmpALeft)return bCmpALeft;var aCmpBRight=a.comparePoint(b.rightSE.point);return aCmpBRight<0?1:aCmpBRight>0?-1:1}if(alybly)return 1;if(arxbrx){var _aCmpBRight=a.comparePoint(b.rightSE.point);if(_aCmpBRight<0)return 1;if(_aCmpBRight>0)return-1}if(arx!==brx){var ay=ary-aly,ax=arx-alx,by=bry-bly,bx=brx-blx;if(ay>ax&&bybx)return-1}return arx>brx?1:arxbry?1:a.idb.id?1:0}}]),_createClass(Segment,[{key:"replaceRightSE",value:function replaceRightSE(newRightSE){this.rightSE=newRightSE,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function bbox(){var y1=this.leftSE.point.y,y2=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:y1y2?y1:y2}}}},{key:"vector",value:function vector(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function isAnEndpoint(pt){return pt.x===this.leftSE.point.x&&pt.y===this.leftSE.point.y||pt.x===this.rightSE.point.x&&pt.y===this.rightSE.point.y}},{key:"comparePoint",value:function comparePoint(point){if(this.isAnEndpoint(point))return 0;var lPt=this.leftSE.point,rPt=this.rightSE.point,v=this.vector();if(lPt.x===rPt.x)return point.x===lPt.x?0:point.x0&&newSeg.swapEvents(),SweepEvent.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),alreadyLinked&&(newLeftSE.checkForConsuming(),newRightSE.checkForConsuming()),newEvents}},{key:"swapEvents",value:function swapEvents(){var tmpEvt=this.rightSE;this.rightSE=this.leftSE,this.leftSE=tmpEvt,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var i=0,iMax=this.windings.length;i0){var tmp=consumer;consumer=consumee,consumee=tmp}if(consumer.prev===consumee){var _tmp=consumer;consumer=consumee,consumee=_tmp}for(var i=0,iMax=consumee.rings.length;i0))throw new Error("Tried to create degenerate segment at [".concat(pt1.x,", ").concat(pt1.y,"]"));leftPt=pt2,rightPt=pt1,winding=-1}return new Segment(new SweepEvent(leftPt,!0),new SweepEvent(rightPt,!1),[ring],[winding])}}]),Segment}(),RingIn=function(){function RingIn(geomRing,poly,isExterior){if(_classCallCheck(this,RingIn),!Array.isArray(geomRing)||0===geomRing.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=poly,this.isExterior=isExterior,this.segments=[],"number"!=typeof geomRing[0][0]||"number"!=typeof geomRing[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var firstPoint=rounder.round(geomRing[0][0],geomRing[0][1]);this.bbox={ll:{x:firstPoint.x,y:firstPoint.y},ur:{x:firstPoint.x,y:firstPoint.y}};for(var prevPoint=firstPoint,i=1,iMax=geomRing.length;ithis.bbox.ur.x&&(this.bbox.ur.x=point.x),point.y>this.bbox.ur.y&&(this.bbox.ur.y=point.y),prevPoint=point)}firstPoint.x===prevPoint.x&&firstPoint.y===prevPoint.y||this.segments.push(Segment.fromRing(prevPoint,firstPoint,this))}return _createClass(RingIn,[{key:"getSweepEvents",value:function getSweepEvents(){for(var sweepEvents=[],i=0,iMax=this.segments.length;ithis.bbox.ur.x&&(this.bbox.ur.x=ring.bbox.ur.x),ring.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=ring.bbox.ur.y),this.interiorRings.push(ring)}this.multiPoly=multiPoly}return _createClass(PolyIn,[{key:"getSweepEvents",value:function getSweepEvents(){for(var sweepEvents=this.exteriorRing.getSweepEvents(),i=0,iMax=this.interiorRings.length;ithis.bbox.ur.x&&(this.bbox.ur.x=poly.bbox.ur.x),poly.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=poly.bbox.ur.y),this.polys.push(poly)}this.isSubject=isSubject}return _createClass(MultiPolyIn,[{key:"getSweepEvents",value:function getSweepEvents(){for(var sweepEvents=[],i=0,iMax=this.polys.length;i0&&(leftMostEvt=evt)}for(var prevSeg=leftMostEvt.segment.prevInResult(),prevPrevSeg=prevSeg?prevSeg.prevInResult():null;;){if(!prevSeg)return null;if(!prevPrevSeg)return prevSeg.ringOut;if(prevPrevSeg.ringOut!==prevSeg.ringOut)return prevPrevSeg.ringOut.enclosingRing()!==prevSeg.ringOut?prevSeg.ringOut:prevSeg.ringOut.enclosingRing();prevSeg=prevPrevSeg.prevInResult(),prevPrevSeg=prevSeg?prevSeg.prevInResult():null}}}]),RingOut}(),PolyOut=function(){function PolyOut(exteriorRing){_classCallCheck(this,PolyOut),this.exteriorRing=exteriorRing,exteriorRing.poly=this,this.interiorRings=[]}return _createClass(PolyOut,[{key:"addInterior",value:function addInterior(ring){this.interiorRings.push(ring),ring.poly=this}},{key:"getGeom",value:function getGeom(){var geom=[this.exteriorRing.getGeom()];if(null===geom[0])return null;for(var i=0,iMax=this.interiorRings.length;i1&&void 0!==arguments[1]?arguments[1]:Segment.compare;_classCallCheck(this,SweepLine),this.queue=queue,this.tree=new Tree(comparator),this.segments=[]}return _createClass(SweepLine,[{key:"process",value:function process(event){var segment=event.segment,newEvents=[];if(event.consumedBy)return event.isLeft?this.queue.remove(event.otherSE):this.tree.remove(segment),newEvents;var node=event.isLeft?this.tree.insert(segment):this.tree.find(segment);if(!node)throw new Error("Unable to find segment #".concat(segment.id," ")+"[".concat(segment.leftSE.point.x,", ").concat(segment.leftSE.point.y,"] -> ")+"[".concat(segment.rightSE.point.x,", ").concat(segment.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var prevNode=node,nextNode=node,prevSeg=void 0,nextSeg=void 0;void 0===prevSeg;)null===(prevNode=this.tree.prev(prevNode))?prevSeg=null:void 0===prevNode.key.consumedBy&&(prevSeg=prevNode.key);for(;void 0===nextSeg;)null===(nextNode=this.tree.next(nextNode))?nextSeg=null:void 0===nextNode.key.consumedBy&&(nextSeg=nextNode.key);if(event.isLeft){var prevMySplitter=null;if(prevSeg){var prevInter=prevSeg.getIntersection(segment);if(null!==prevInter&&(segment.isAnEndpoint(prevInter)||(prevMySplitter=prevInter),!prevSeg.isAnEndpoint(prevInter)))for(var newEventsFromSplit=this._splitSafely(prevSeg,prevInter),i=0,iMax=newEventsFromSplit.length;i0?(this.tree.remove(segment),newEvents.push(event)):(this.segments.push(segment),segment.prev=prevSeg)}else{if(prevSeg&&nextSeg){var inter=prevSeg.getIntersection(nextSeg);if(null!==inter){if(!prevSeg.isAnEndpoint(inter))for(var _newEventsFromSplit3=this._splitSafely(prevSeg,inter),_i3=0,_iMax3=_newEventsFromSplit3.length;_i3<_iMax3;_i3++)newEvents.push(_newEventsFromSplit3[_i3]);if(!nextSeg.isAnEndpoint(inter))for(var _newEventsFromSplit4=this._splitSafely(nextSeg,inter),_i4=0,_iMax4=_newEventsFromSplit4.length;_i4<_iMax4;_i4++)newEvents.push(_newEventsFromSplit4[_i4])}}this.tree.remove(segment)}return newEvents}},{key:"_splitSafely",value:function _splitSafely(seg,pt){this.tree.remove(seg);var rightSE=seg.rightSE;this.queue.remove(rightSE);var newEvents=seg.split(pt);return newEvents.push(rightSE),void 0===seg.consumedBy&&this.tree.insert(seg),newEvents}}]),SweepLine}(),POLYGON_CLIPPING_MAX_QUEUE_SIZE=void 0!==process&&process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS=void 0!==process&&process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6,operation=new(function(){function Operation(){_classCallCheck(this,Operation)}return _createClass(Operation,[{key:"run",value:function run(type,geom,moreGeoms){operation.type=type,rounder.reset();for(var multipolys=[new MultiPolyIn(geom,!0)],i=0,iMax=moreGeoms.length;iPOLYGON_CLIPPING_MAX_QUEUE_SIZE)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var sweepLine=new SweepLine(queue),prevQueueSize=queue.size,node=queue.pop();node;){var evt=node.key;if(queue.size===prevQueueSize){var seg=evt.segment;throw new Error("Unable to pop() ".concat(evt.isLeft?"left":"right"," SweepEvent ")+"[".concat(evt.point.x,", ").concat(evt.point.y,"] from segment #").concat(seg.id," ")+"[".concat(seg.leftSE.point.x,", ").concat(seg.leftSE.point.y,"] -> ")+"[".concat(seg.rightSE.point.x,", ").concat(seg.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(queue.size>POLYGON_CLIPPING_MAX_QUEUE_SIZE)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(sweepLine.segments.length>POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var newEvents=sweepLine.process(evt),_i4=0,_iMax3=newEvents.length;_i4<_iMax3;_i4++){var _evt=newEvents[_i4];void 0===_evt.consumedBy&&queue.insert(_evt)}prevQueueSize=queue.size,node=queue.pop()}rounder.reset();var ringsOut=RingOut.factory(sweepLine.segments);return new MultiPolyOut(ringsOut).getGeom()}}]),Operation}()),union=function union(geom){for(var _len=arguments.length,moreGeoms=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)moreGeoms[_key-1]=arguments[_key];return operation.run("union",geom,moreGeoms)},intersection$1=function intersection(geom){for(var _len2=arguments.length,moreGeoms=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)moreGeoms[_key2-1]=arguments[_key2];return operation.run("intersection",geom,moreGeoms)},xor=function xor(geom){for(var _len3=arguments.length,moreGeoms=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)moreGeoms[_key3-1]=arguments[_key3];return operation.run("xor",geom,moreGeoms)},difference=function difference(subjectGeom){for(var _len4=arguments.length,clippingGeoms=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)clippingGeoms[_key4-1]=arguments[_key4];return operation.run("difference",subjectGeom,clippingGeoms)};return{union:union,intersection:intersection$1,xor:xor,difference:difference}}()},"./node_modules/rbush/rbush.min.js":function(module){module.exports=function(){"use strict";function t(t,r,e,a,h){!function t(n,r,e,a,h){for(;a>e;){if(a-e>600){var o=a-e+1,s=r-e+1,l=Math.log(o),f=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*f*(o-f)/o)*(s-o/2<0?-1:1);t(n,r,Math.max(e,Math.floor(r-s*f/o+u)),Math.min(a,Math.floor(r+(o-s)*f/o+u)),h)}var p=n[r],d=e,x=a;for(i(n,e,r),h(n[a],p)>0&&i(n,e,a);d0;)x--}0===h(n[e],p)?i(n,e,x):i(n,++x,a),x<=r&&(e=x+1),r<=x&&(a=x-1)}}(t,r,e||0,a||t.length-1,h||n)}function i(t,i,n){var r=t[i];t[i]=t[n],t[n]=r}function n(t,i){return ti?1:0}var r=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function e(t,i,n){if(!n)return i.indexOf(t);for(var r=0;r=t.minX&&i.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function d(i,n,r,e,a){for(var h=[n,r];h.length;)if(!((r=h.pop())-(n=h.pop())<=e)){var o=n+Math.ceil((r-n)/e/2)*e;t(i,o,n,r,a),h.push(n,o,o,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var i=this.data,n=[];if(!c(t,i))return n;for(var r=this.toBBox,e=[];i;){for(var a=0;a=0&&e[i].children.length>this._maxEntries;)this._split(e,i),i--;this._adjustParentBBoxes(r,e,i)},r.prototype._split=function(t,i){var n=t[i],r=n.children.length,e=this._minEntries;this._chooseSplitAxis(n,e,r);var h=this._chooseSplitIndex(n,e,r),o=p(n.children.splice(h,n.children.length-h));o.height=n.height,o.leaf=n.leaf,a(n,this.toBBox),a(o,this.toBBox),i?t[i-1].children.push(o):this._splitRoot(n,o)},r.prototype._splitRoot=function(t,i){this.data=p([t,i]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,i,n){for(var r,e,a,o,s,l,u,m=1/0,c=1/0,p=i;p<=n-i;p++){var d=h(t,0,p,this.toBBox),x=h(t,p,n,this.toBBox),v=(e=d,a=x,o=void 0,s=void 0,l=void 0,u=void 0,o=Math.max(e.minX,a.minX),s=Math.max(e.minY,a.minY),l=Math.min(e.maxX,a.maxX),u=Math.min(e.maxY,a.maxY),Math.max(0,l-o)*Math.max(0,u-s)),M=f(d)+f(x);v=i;c--){var p=t.children[c];o(s,t.leaf?e(p):p),l+=u(s)}return l},r.prototype._adjustParentBBoxes=function(t,i,n){for(var r=n;r>=0;r--)o(i[r],t)},r.prototype._condense=function(t){for(var i=t.length-1,n=void 0;i>=0;i--)0===t[i].children.length?i>0?(n=t[i-1].children).splice(n.indexOf(t[i]),1):this.clear():a(t[i],this.toBBox)},r}()},"./node_modules/seedrandom/index.js":function(module,__unused_webpack_exports,__webpack_require__){var alea=__webpack_require__("./node_modules/seedrandom/lib/alea.js"),xor128=__webpack_require__("./node_modules/seedrandom/lib/xor128.js"),xorwow=__webpack_require__("./node_modules/seedrandom/lib/xorwow.js"),xorshift7=__webpack_require__("./node_modules/seedrandom/lib/xorshift7.js"),xor4096=__webpack_require__("./node_modules/seedrandom/lib/xor4096.js"),tychei=__webpack_require__("./node_modules/seedrandom/lib/tychei.js"),sr=__webpack_require__("./node_modules/seedrandom/seedrandom.js");sr.alea=alea,sr.xor128=xor128,sr.xorwow=xorwow,sr.xorshift7=xorshift7,sr.xor4096=xor4096,sr.tychei=tychei,module.exports=sr},"./node_modules/seedrandom/lib/alea.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function Alea(seed){var me=this,mash=function Mash(){var n=4022871197,mash=function(data){data=String(data);for(var i=0;i>>0,n=(h*=n)>>>0,n+=4294967296*(h-=n)}return 2.3283064365386963e-10*(n>>>0)};return mash}();me.next=function(){var t=2091639*me.s0+2.3283064365386963e-10*me.c;return me.s0=me.s1,me.s1=me.s2,me.s2=t-(me.c=0|t)},me.c=1,me.s0=mash(" "),me.s1=mash(" "),me.s2=mash(" "),me.s0-=mash(seed),me.s0<0&&(me.s0+=1),me.s1-=mash(seed),me.s1<0&&(me.s1+=1),me.s2-=mash(seed),me.s2<0&&(me.s2+=1),mash=null}function copy(f,t){return t.c=f.c,t.s0=f.s0,t.s1=f.s1,t.s2=f.s2,t}function impl(seed,opts){var xg=new Alea(seed),state=opts&&opts.state,prng=xg.next;return prng.int32=function(){return 4294967296*xg.next()|0},prng.double=function(){return prng()+11102230246251565e-32*(2097152*prng()|0)},prng.quick=prng,state&&("object"==typeof state&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.alea=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/lib/tychei.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function XorGen(seed){var me=this,strseed="";me.next=function(){var b=me.b,c=me.c,d=me.d,a=me.a;return b=b<<25^b>>>7^c,c=c-d|0,d=d<<24^d>>>8^a,a=a-b|0,me.b=b=b<<20^b>>>12^c,me.c=c=c-d|0,me.d=d<<16^c>>>16^a,me.a=a-b|0},me.a=0,me.b=0,me.c=-1640531527,me.d=1367130551,seed===Math.floor(seed)?(me.a=seed/4294967296|0,me.b=0|seed):strseed+=seed;for(var k=0;k>>0)/4294967296};return prng.double=function(){do{var result=((xg.next()>>>11)+(xg.next()>>>0)/4294967296)/(1<<21)}while(0===result);return result},prng.int32=xg.next,prng.quick=prng,state&&("object"==typeof state&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.tychei=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/lib/xor128.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function XorGen(seed){var me=this,strseed="";me.x=0,me.y=0,me.z=0,me.w=0,me.next=function(){var t=me.x^me.x<<11;return me.x=me.y,me.y=me.z,me.z=me.w,me.w^=me.w>>>19^t^t>>>8},seed===(0|seed)?me.x=seed:strseed+=seed;for(var k=0;k>>0)/4294967296};return prng.double=function(){do{var result=((xg.next()>>>11)+(xg.next()>>>0)/4294967296)/(1<<21)}while(0===result);return result},prng.int32=xg.next,prng.quick=prng,state&&("object"==typeof state&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.xor128=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/lib/xor4096.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function XorGen(seed){var me=this;me.next=function(){var t,v,w=me.w,X=me.X,i=me.i;return me.w=w=w+1640531527|0,v=X[i+34&127],t=X[i=i+1&127],v^=v<<13,t^=t<<17,v^=v>>>15,t^=t>>>12,v=X[i]=v^t,me.i=i,v+(w^w>>>16)|0},function init(me,seed){var t,v,i,j,w,X=[],limit=128;for(seed===(0|seed)?(v=seed,seed=null):(seed+="\0",v=0,limit=Math.max(limit,seed.length)),i=0,j=-32;j>>15,v^=v<<4,v^=v>>>13,j>=0&&(w=w+1640531527|0,i=0==(t=X[127&j]^=v+w)?i+1:0);for(i>=128&&(X[127&(seed&&seed.length||0)]=-1),i=127,j=512;j>0;--j)v=X[i+34&127],t=X[i=i+1&127],v^=v<<13,t^=t<<17,v^=v>>>15,t^=t>>>12,X[i]=v^t;me.w=w,me.X=X,me.i=i}(me,seed)}function copy(f,t){return t.i=f.i,t.w=f.w,t.X=f.X.slice(),t}function impl(seed,opts){null==seed&&(seed=+new Date);var xg=new XorGen(seed),state=opts&&opts.state,prng=function(){return(xg.next()>>>0)/4294967296};return prng.double=function(){do{var result=((xg.next()>>>11)+(xg.next()>>>0)/4294967296)/(1<<21)}while(0===result);return result},prng.int32=xg.next,prng.quick=prng,state&&(state.X&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.xor4096=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/lib/xorshift7.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function XorGen(seed){var me=this;me.next=function(){var t,v,X=me.x,i=me.i;return t=X[i],v=(t^=t>>>7)^t<<24,v^=(t=X[i+1&7])^t>>>10,v^=(t=X[i+3&7])^t>>>3,v^=(t=X[i+4&7])^t<<7,t=X[i+7&7],v^=(t^=t<<13)^t<<9,X[i]=v,me.i=i+1&7,v},function init(me,seed){var j,X=[];if(seed===(0|seed))X[0]=seed;else for(seed=""+seed,j=0;j0;--j)me.next()}(me,seed)}function copy(f,t){return t.x=f.x.slice(),t.i=f.i,t}function impl(seed,opts){null==seed&&(seed=+new Date);var xg=new XorGen(seed),state=opts&&opts.state,prng=function(){return(xg.next()>>>0)/4294967296};return prng.double=function(){do{var result=((xg.next()>>>11)+(xg.next()>>>0)/4294967296)/(1<<21)}while(0===result);return result},prng.int32=xg.next,prng.quick=prng,state&&(state.x&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.xorshift7=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/lib/xorwow.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,module,define){function XorGen(seed){var me=this,strseed="";me.next=function(){var t=me.x^me.x>>>2;return me.x=me.y,me.y=me.z,me.z=me.w,me.w=me.v,(me.d=me.d+362437|0)+(me.v=me.v^me.v<<4^t^t<<1)|0},me.x=0,me.y=0,me.z=0,me.w=0,me.v=0,seed===(0|seed)?me.x=seed:strseed+=seed;for(var k=0;k>>4),me.next()}function copy(f,t){return t.x=f.x,t.y=f.y,t.z=f.z,t.w=f.w,t.v=f.v,t.d=f.d,t}function impl(seed,opts){var xg=new XorGen(seed),state=opts&&opts.state,prng=function(){return(xg.next()>>>0)/4294967296};return prng.double=function(){do{var result=((xg.next()>>>11)+(xg.next()>>>0)/4294967296)/(1<<21)}while(0===result);return result},prng.int32=xg.next,prng.quick=prng,state&&("object"==typeof state&©(state,xg),prng.state=function(){return copy(xg,{})}),prng}module&&module.exports?module.exports=impl:__webpack_require__.amdD&&__webpack_require__.amdO?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return impl}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):this.xorwow=impl}(0,module=__webpack_require__.nmd(module),__webpack_require__.amdD)},"./node_modules/seedrandom/seedrandom.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global,pool,math){var nodecrypto,width=256,startdenom=math.pow(width,6),significance=math.pow(2,52),overflow=2*significance,mask=width-1;function seedrandom(seed,options,callback){var key=[],shortseed=mixkey(flatten((options=1==options?{entropy:!0}:options||{}).entropy?[seed,tostring(pool)]:null==seed?function autoseed(){try{var out;return nodecrypto&&(out=nodecrypto.randomBytes)?out=out(width):(out=new Uint8Array(width),(global.crypto||global.msCrypto).getRandomValues(out)),tostring(out)}catch(e){var browser=global.navigator,plugins=browser&&browser.plugins;return[+new Date,global,plugins,global.screen,tostring(pool)]}}():seed,3),key),arc4=new ARC4(key),prng=function(){for(var n=arc4.g(6),d=startdenom,x=0;n=overflow;)n/=2,d/=2,x>>>=1;return(n+x)/d};return prng.int32=function(){return 0|arc4.g(4)},prng.quick=function(){return arc4.g(4)/4294967296},prng.double=prng,mixkey(tostring(arc4.S),pool),(options.pass||callback||function(prng,seed,is_math_call,state){return state&&(state.S&©(state,arc4),prng.state=function(){return copy(arc4,{})}),is_math_call?(math.random=prng,seed):prng})(prng,shortseed,"global"in options?options.global:this==math,options.state)}function ARC4(key){var t,keylen=key.length,me=this,i=0,j=me.i=me.j=0,s=me.S=[];for(keylen||(key=[keylen++]);i0&&sign&&"."!==trimmedStr[2])return str;if(!options.leadingZeros&&leadingZeros.length>0&&!sign&&"."!==trimmedStr[1])return str;{const num=Number(trimmedStr),numStr=""+num;return-1!==numStr.search(/[eE]/)||eNotation?options.eNotation?num:str:-1!==trimmedStr.indexOf(".")?"0"===numStr&&""===numTrimmedByZeros||numStr===numTrimmedByZeros||sign&&numStr==="-"+numTrimmedByZeros?num:str:leadingZeros?numTrimmedByZeros===numStr||sign+numTrimmedByZeros===numStr?num:str:trimmedStr===numStr||trimmedStr===sign+numStr?num:str}}return str}}},"./node_modules/turf-jsts/jsts.min.js":function(__unused_webpack_module,exports){!function(t){"use strict";function e(){}function n(t){this.message=t||""}function i(t){this.message=t||""}function r(t){this.message=t||""}function o(){}function s(t){return null===t?Mt:t.color}function a(t){return null===t?null:t.parent}function u(t,e){null!==t&&(t.color=e)}function l(t){return null===t?null:t.left}function c(t){return null===t?null:t.right}function p(){this.root_=null,this.size_=0}function h(){}function f(){this.array_=[],arguments[0]instanceof It&&this.addAll(arguments[0])}function g(){}function d(t){this.message=t||""}function y(){this.array_=[]}"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(null==this)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,i=1 in arguments&&parseInt(Number(arguments[1]),10)||0;i=i<0?Math.max(n+i,0):Math.min(i,n);var r=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(r=r<0?Math.max(n+arguments[2],0):Math.min(r,n);ie.x?1:this.ye.y?1:0},C.prototype.clone=function(){},C.prototype.copy=function(){return new C(this)},C.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},C.prototype.distance3D=function(t){var e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return Math.sqrt(e*e+n*n+i*i)},C.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},C.prototype.hashCode=function(){var t=17;return 37*(t=37*t+C.hashCode(this.x))+C.hashCode(this.y)},C.prototype.setCoordinate=function(t){this.x=t.x,this.y=t.y,this.z=t.z},C.prototype.interfaces_=function(){return[E,x,e]},C.prototype.getClass=function(){return C},C.hashCode=function(){if(1===arguments.length){var t=arguments[0],e=v.doubleToLongBits(t);return Math.trunc((e^e)>>>32)}},S.DimensionalComparator.get=function(){return L},S.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},S.NULL_ORDINATE.get=function(){return v.NaN},S.X.get=function(){return 0},S.Y.get=function(){return 1},S.Z.get=function(){return 2},Object.defineProperties(C,S);var L=function(t){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var e=arguments[0];if(2!==e&&3!==e)throw new m("only 2 or 3 dimensions may be specified");this._dimensionsToTest=e}};L.prototype.compare=function(t,e){var n=t,i=e,r=L.compare(n.x,i.x);if(0!==r)return r;var o=L.compare(n.y,i.y);return 0!==o?o:this._dimensionsToTest<=2?0:L.compare(n.z,i.z)},L.prototype.interfaces_=function(){return[N]},L.prototype.getClass=function(){return L},L.compare=function(t,e){return te?1:v.isNaN(t)?v.isNaN(e)?0:-1:v.isNaN(e)?1:0};var b=function(){};b.prototype.create=function(){},b.prototype.interfaces_=function(){return[]},b.prototype.getClass=function(){return b};var w=function(){},O={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};w.prototype.interfaces_=function(){return[]},w.prototype.getClass=function(){return w},w.toLocationSymbol=function(t){switch(t){case w.EXTERIOR:return"e";case w.BOUNDARY:return"b";case w.INTERIOR:return"i";case w.NONE:return"-"}throw new m("Unknown location value: "+t)},O.INTERIOR.get=function(){return 0},O.BOUNDARY.get=function(){return 1},O.EXTERIOR.get=function(){return 2},O.NONE.get=function(){return-1},Object.defineProperties(w,O);var T=function(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1},R=function(){},P={LOG_10:{configurable:!0}};R.prototype.interfaces_=function(){return[]},R.prototype.getClass=function(){return R},R.log10=function(t){var e=Math.log(t);return v.isInfinite(e)||v.isNaN(e)?e:e/R.LOG_10},R.min=function(t,e,n,i){var r=t;return en?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var i=arguments[0],r=arguments[1],o=arguments[2];return io?o:i}},R.wrap=function(t,e){return t<0?e- -t%e:t%e},R.max=function(){if(3===arguments.length){var e=arguments[1],n=arguments[2],i=arguments[0];return e>i&&(i=e),n>i&&(i=n),i}if(4===arguments.length){var o=arguments[1],s=arguments[2],a=arguments[3],u=arguments[0];return o>u&&(u=o),s>u&&(u=s),a>u&&(u=a),u}},R.average=function(t,e){return(t+e)/2},P.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(R,P);var D=function(t){this.str=t};D.prototype.append=function(t){this.str+=t},D.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},D.prototype.toString=function(t){return this.str};var M=function(t){this.value=t};M.prototype.intValue=function(){return this.value},M.prototype.compareTo=function(t){return this.valuet?1:0},M.isNaN=function(t){return Number.isNaN(t)};var A=function(){};A.isWhitespace=function(t){return t<=32&&t>=0||127===t},A.toUpperCase=function(t){return t.toUpperCase()};var F=function t(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length)if("number"==typeof arguments[0]){var e=arguments[0];this.init(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}else"string"==typeof arguments[0]&&t.call(this,t.parse(arguments[0]));else if(2===arguments.length){var r=arguments[0],o=arguments[1];this.init(r,o)}},G={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};F.prototype.le=function(t){return(this._hi9?(c=!0,p="9"):p="0"+l,s.append(p),n=n.subtract(F.valueOf(l)).multiply(F.TEN),c&&n.selfAdd(F.TEN);var h=!0,f=F.magnitude(n._hi);if(f<0&&Math.abs(f)>=a-u&&(h=!1),!h)break}return e[0]=i,s.toString()},F.prototype.sqr=function(){return this.multiply(this)},F.prototype.doubleValue=function(){return this._hi+this._lo},F.prototype.subtract=function(){if(arguments[0]instanceof F){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var e=arguments[0];return this.add(-e)}},F.prototype.equals=function(){if(1===arguments.length){var t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}},F.prototype.isZero=function(){return 0===this._hi&&0===this._lo},F.prototype.selfSubtract=function(){if(arguments[0]instanceof F){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t._hi,-t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e,0)}},F.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},F.prototype.min=function(t){return this.le(t)?this:t},F.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof F){var t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfDivide(e,0)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=null,o=null,s=null,a=null,u=null,l=null,c=null,p=null;return u=this._hi/n,p=(r=(l=F.SPLIT*u)-(r=l-u))*(s=(p=F.SPLIT*n)-(s=p-n))-(c=u*n)+r*(a=n-s)+(o=u-r)*s+o*a,p=u+(l=(this._hi-c-p+this._lo-u*i)/n),this._hi=p,this._lo=u-p+l,this}},F.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},F.prototype.divide=function(){if(arguments[0]instanceof F){var t=arguments[0],e=null,n=null,i=null,r=null,o=null,s=null,a=null,u=null;return n=(o=this._hi/t._hi)-(e=(s=F.SPLIT*o)-(e=s-o)),u=e*(i=(u=F.SPLIT*t._hi)-(i=u-t._hi))-(a=o*t._hi)+e*(r=t._hi-i)+n*i+n*r,s=(this._hi-a-u+this._lo-o*t._lo)/t._hi,new F(u=o+s,o-u+s)}if("number"==typeof arguments[0]){var l=arguments[0];return v.isNaN(l)?F.createNaN():F.copy(this).selfDivide(l,0)}},F.prototype.ge=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>=t._lo},F.prototype.pow=function(t){if(0===t)return F.valueOf(1);var e=new F(this),n=F.valueOf(1),i=Math.abs(t);if(i>1)for(;i>0;)i%2==1&&n.selfMultiply(e),(i/=2)>0&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n},F.prototype.ceil=function(){if(this.isNaN())return F.NaN;var t=Math.ceil(this._hi),e=0;return t===this._hi&&(e=Math.ceil(this._lo)),new F(t,e)},F.prototype.compareTo=function(t){var e=t;return this._hie._hi?1:this._loe._lo?1:0},F.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},F.prototype.setValue=function(){if(arguments[0]instanceof F){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var e=arguments[0];return this.init(e),this}},F.prototype.max=function(t){return this.ge(t)?this:t},F.prototype.sqrt=function(){if(this.isZero())return F.valueOf(0);if(this.isNegative())return F.NaN;var t=1/Math.sqrt(this._hi),e=this._hi*t,n=F.valueOf(e),i=this.subtract(n.sqr())._hi*(.5*t);return n.add(i)},F.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof F){var t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0],n=null,i=null,r=null,o=null,s=null,a=null;return o=(r=this._hi+e)-(s=r-this._hi),i=(a=(o=e-s+(this._hi-o))+this._lo)+(r-(n=r+a)),this._hi=n+i,this._lo=i+(n-this._hi),this}}else if(2===arguments.length){var u=arguments[0],l=arguments[1],c=null,p=null,h=null,f=null,g=null,d=null,y=null;f=this._hi+u,p=this._lo+l,g=f-(d=f-this._hi),h=p-(y=p-this._lo);var _=(c=f+(d=(g=u-d+(this._hi-g))+p))+(d=(h=l-y+(this._lo-h))+(d+(f-c))),m=d+(c-_);return this._hi=_,this._lo=m,this}},F.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof F){var t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfMultiply(e,0)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=null,o=null,s=null,a=null,u=null,l=null;r=(u=F.SPLIT*this._hi)-this._hi,l=F.SPLIT*n,r=u-r,o=this._hi-r,s=l-n;var c=(u=this._hi*n)+(l=r*(s=l-s)-u+r*(a=n-s)+o*s+o*a+(this._hi*i+this._lo*n)),p=l+(r=u-c);return this._hi=c,this._lo=p,this}},F.prototype.selfSqr=function(){return this.selfMultiply(this)},F.prototype.floor=function(){if(this.isNaN())return F.NaN;var t=Math.floor(this._hi),e=0;return t===this._hi&&(e=Math.floor(this._lo)),new F(t,e)},F.prototype.negate=function(){return this.isNaN()?this:new F(-this._hi,-this._lo)},F.prototype.clone=function(){},F.prototype.multiply=function(){if(arguments[0]instanceof F){var t=arguments[0];return t.isNaN()?F.createNaN():F.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var e=arguments[0];return v.isNaN(e)?F.createNaN():F.copy(this).selfMultiply(e,0)}},F.prototype.isNaN=function(){return v.isNaN(this._hi)},F.prototype.intValue=function(){return Math.trunc(this._hi)},F.prototype.toString=function(){var t=F.magnitude(this._hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()},F.prototype.toStandardNotation=function(){var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),i=e[0]+1,r=n;if("."===n.charAt(0))r="0"+n;else if(i<0)r="0."+F.stringOfChar("0",-i)+n;else if(-1===n.indexOf(".")){var o=i-n.length;r=n+F.stringOfChar("0",o)+".0"}return this.isNegative()?"-"+r:r},F.prototype.reciprocal=function(){var t=null,e=null,n=null,i=null,r=null,o=null,s=null,a=null;e=(r=1/this._hi)-(t=(o=F.SPLIT*r)-(t=o-r)),n=(a=F.SPLIT*this._hi)-this._hi;var u=r+(o=(1-(s=r*this._hi)-(a=t*(n=a-n)-s+t*(i=this._hi-n)+e*n+e*i)-r*this._lo)/this._hi);return new F(u,r-u+o)},F.prototype.toSciNotation=function(){if(this.isZero())return F.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),i=F.SCI_NOT_EXPONENT_CHAR+e[0];if("0"===n.charAt(0))throw new Error("Found leading zero: "+n);var r="";n.length>1&&(r=n.substring(1));var o=n.charAt(0)+"."+r;return this.isNegative()?"-"+o+i:o+i},F.prototype.abs=function(){return this.isNaN()?F.NaN:this.isNegative()?this.negate():new F(this)},F.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},F.prototype.lt=function(t){return(this._hit._hi||this._hi===t._hi)&&this._lo>t._lo},F.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},F.prototype.trunc=function(){return this.isNaN()?F.NaN:this.isPositive()?this.floor():this.ceil()},F.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},F.prototype.interfaces_=function(){return[e,E,x]},F.prototype.getClass=function(){return F},F.sqr=function(t){return F.valueOf(t).selfMultiply(t)},F.valueOf=function(){if("string"==typeof arguments[0]){var t=arguments[0];return F.parse(t)}if("number"==typeof arguments[0])return new F(arguments[0])},F.sqrt=function(t){return F.valueOf(t).sqrt()},F.parse=function(t){for(var e=0,n=t.length;A.isWhitespace(t.charAt(e));)e++;var i=!1;if(e=n);){var l=t.charAt(e);if(e++,A.isDigit(l)){var c=l-"0";o.selfMultiply(F.TEN),o.selfAdd(c),s++}else{if("."!==l){if("e"===l||"E"===l){var p=t.substring(e);try{u=M.parseInt(p)}catch(e){throw e instanceof Error?new Error("Invalid exponent "+p+" in string "+t):e}break}throw new Error("Unexpected character '"+l+"' at position "+e+" in string "+t)}a=s}}var h=o,f=s-a-u;if(0===f)h=o;else if(f>0){var g=F.TEN.pow(f);h=o.divide(g)}else if(f<0){var d=F.TEN.pow(-f);h=o.multiply(d)}return i?h.negate():h},F.createNaN=function(){return new F(v.NaN,v.NaN)},F.copy=function(t){return new F(t)},F.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),i=Math.trunc(Math.floor(n));return 10*Math.pow(10,i)<=e&&(i+=1),i},F.stringOfChar=function(t,e){for(var n=new D,i=0;i0){if(o<=0)return q.signum(s);i=r+o}else{if(!(r<0))return q.signum(s);if(o>=0)return q.signum(s);i=-r-o}var a=q.DP_SAFE_EPSILON*i;return s>=a||-s>=a?q.signum(s):2},q.signum=function(t){return t>0?1:t<0?-1:0},B.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(q,B);var V=function(){},U={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};U.X.get=function(){return 0},U.Y.get=function(){return 1},U.Z.get=function(){return 2},U.M.get=function(){return 3},V.prototype.setOrdinate=function(t,e,n){},V.prototype.size=function(){},V.prototype.getOrdinate=function(t,e){},V.prototype.getCoordinate=function(){},V.prototype.getCoordinateCopy=function(t){},V.prototype.getDimension=function(){},V.prototype.getX=function(t){},V.prototype.clone=function(){},V.prototype.expandEnvelope=function(t){},V.prototype.copy=function(){},V.prototype.getY=function(t){},V.prototype.toCoordinateArray=function(){},V.prototype.interfaces_=function(){return[x]},V.prototype.getClass=function(){return V},Object.defineProperties(V,U);var z=function(){},X=function(t){function e(){t.call(this,"Projective point not representable on the Cartesian plane.")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(z),Y=function(){};Y.arraycopy=function(t,e,n,i,r){for(var o=0,s=e;st._minx?this._minx:t._minx,n=this._miny>t._miny?this._miny:t._miny,i=this._maxx=this._minx&&e.getMaxX()<=this._maxx&&e.getMinY()>=this._miny&&e.getMaxY()<=this._maxy}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return!this.isNull()&&n>=this._minx&&n<=this._maxx&&i>=this._miny&&i<=this._maxy}},j.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof j){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxxthis._maxy||t._maxythis._maxx||nthis._maxy||ithis._maxx&&(this._maxx=e._maxx),e._minythis._maxy&&(this._maxy=e._maxy))}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.isNull()?(this._minx=n,this._maxx=n,this._miny=i,this._maxy=i):(nthis._maxx&&(this._maxx=n),ithis._maxy&&(this._maxy=i))}},j.prototype.minExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return te._minx?1:this._minye._miny?1:this._maxxe._maxx?1:this._maxye._maxy?1:0},j.prototype.translate=function(t,e){if(this.isNull())return null;this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)},j.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},j.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},j.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},j.prototype.maxExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t>e?t:e},j.prototype.expandBy=function(){if(1===arguments.length){var t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=e,this._maxx+=e,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},j.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof j){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof C){var e=arguments[0];return this.covers(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return this.covers(n,i)}},j.prototype.centre=function(){return this.isNull()?null:new C((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},j.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof C){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof j){var e=arguments[0];this._minx=e._minx,this._maxx=e._maxx,this._miny=e._miny,this._maxy=e._maxy}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.init(n.x,i.x,n.y,i.y)}else if(4===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];rt._maxx&&(e=this._minx-t._maxx);var n=0;return this._maxyt._maxy&&(n=this._miny-t._maxy),0===e?n:0===n?e:Math.sqrt(e*e+n*n)},j.prototype.hashCode=function(){var t=17;return 37*(t=37*(t=37*(t=37*t+C.hashCode(this._minx))+C.hashCode(this._maxx))+C.hashCode(this._miny))+C.hashCode(this._maxy)},j.prototype.interfaces_=function(){return[E,e]},j.prototype.getClass=function(){return j},j.intersects=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.xe.x?t.x:e.x)&&n.y>=(t.ye.y?t.y:e.y)}if(4===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2],s=arguments[3],a=Math.min(o.x,s.x),u=Math.max(o.x,s.x),l=Math.min(i.x,r.x),c=Math.max(i.x,r.x);return!(l>u||cu||cthis.getEdgeDistance(t,1)?(this._intLineIndex[t][0]=0,this._intLineIndex[t][1]=1):(this._intLineIndex[t][0]=1,this._intLineIndex[t][1]=0)}},nt.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},nt.prototype.setPrecisionModel=function(t){this._precisionModel=t},nt.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var t=arguments[0],e=0;er?i:r;else{var s=Math.abs(t.x-e.x),a=Math.abs(t.y-e.y);0!==(o=i>r?s:a)||t.equals(e)||(o=Math.max(s,a))}return et.isTrue(!(0===o&&!t.equals(e)),"Bad distance calculation"),o},nt.nonRobustComputeEdgeDistance=function(t,e,n){var i=t.x-e.x,r=t.y-e.y,o=Math.sqrt(i*i+r*r);return et.isTrue(!(0===o&&!t.equals(e)),"Invalid distance calculation"),o},it.DONT_INTERSECT.get=function(){return 0},it.DO_INTERSECT.get=function(){return 1},it.COLLINEAR.get=function(){return 2},it.NO_INTERSECTION.get=function(){return 0},it.POINT_INTERSECTION.get=function(){return 1},it.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(nt,it);var rt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isInSegmentEnvelopes=function(t){var e=new j(this._inputLines[0][0],this._inputLines[0][1]),n=new j(this._inputLines[1][0],this._inputLines[1][1]);return e.contains(t)&&n.contains(t)},e.prototype.computeIntersection=function(){if(3!==arguments.length)return t.prototype.computeIntersection.apply(this,arguments);var e=arguments[0],n=arguments[1],i=arguments[2];if(this._isProper=!1,j.intersects(n,i,e)&&0===at.orientationIndex(n,i,e)&&0===at.orientationIndex(i,n,e))return this._isProper=!0,(e.equals(n)||e.equals(i))&&(this._isProper=!1),this._result=t.POINT_INTERSECTION,null;this._result=t.NO_INTERSECTION},e.prototype.normalizeToMinimum=function(t,e,n,i,r){r.x=this.smallestInAbsValue(t.x,e.x,n.x,i.x),r.y=this.smallestInAbsValue(t.y,e.y,n.y,i.y),t.x-=r.x,t.y-=r.y,e.x-=r.x,e.y-=r.y,n.x-=r.x,n.y-=r.y,i.x-=r.x,i.y-=r.y},e.prototype.safeHCoordinateIntersection=function(t,n,i,r){var o=null;try{o=k.intersection(t,n,i,r)}catch(s){if(!(s instanceof X))throw s;o=e.nearestEndpoint(t,n,i,r)}return o},e.prototype.intersection=function(t,n,i,r){var o=this.intersectionWithNormalization(t,n,i,r);return this.isInSegmentEnvelopes(o)||(o=new C(e.nearestEndpoint(t,n,i,r))),null!==this._precisionModel&&this._precisionModel.makePrecise(o),o},e.prototype.smallestInAbsValue=function(t,e,n,i){var r=t,o=Math.abs(r);return Math.abs(e)1e-4&&Y.out.println("Distance = "+r.distance(o))},e.prototype.intersectionWithNormalization=function(t,e,n,i){var r=new C(t),o=new C(e),s=new C(n),a=new C(i),u=new C;this.normalizeToEnvCentre(r,o,s,a,u);var l=this.safeHCoordinateIntersection(r,o,s,a);return l.x+=u.x,l.y+=u.y,l},e.prototype.computeCollinearIntersection=function(e,n,i,r){var o=j.intersects(e,n,i),s=j.intersects(e,n,r),a=j.intersects(i,r,e),u=j.intersects(i,r,n);return o&&s?(this._intPt[0]=i,this._intPt[1]=r,t.COLLINEAR_INTERSECTION):a&&u?(this._intPt[0]=e,this._intPt[1]=n,t.COLLINEAR_INTERSECTION):o&&a?(this._intPt[0]=i,this._intPt[1]=e,!i.equals(e)||s||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):o&&u?(this._intPt[0]=i,this._intPt[1]=n,!i.equals(n)||s||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):s&&a?(this._intPt[0]=r,this._intPt[1]=e,!r.equals(e)||o||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):s&&u?(this._intPt[0]=r,this._intPt[1]=n,!r.equals(n)||o||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):t.NO_INTERSECTION},e.prototype.normalizeToEnvCentre=function(t,e,n,i,r){var o=t.xe.x?t.x:e.x,u=t.y>e.y?t.y:e.y,l=n.xi.x?n.x:i.x,h=n.y>i.y?n.y:i.y,f=((o>l?o:l)+(ac?s:c)+(u0&&s>0||o<0&&s<0)return t.NO_INTERSECTION;var a=at.orientationIndex(i,r,e),u=at.orientationIndex(i,r,n);return a>0&&u>0||a<0&&u<0?t.NO_INTERSECTION:0===o&&0===s&&0===a&&0===u?this.computeCollinearIntersection(e,n,i,r):(0===o||0===s||0===a||0===u?(this._isProper=!1,e.equals2D(i)||e.equals2D(r)?this._intPt[0]=e:n.equals2D(i)||n.equals2D(r)?this._intPt[0]=n:0===o?this._intPt[0]=new C(i):0===s?this._intPt[0]=new C(r):0===a?this._intPt[0]=new C(e):0===u&&(this._intPt[0]=new C(n))):(this._isProper=!0,this._intPt[0]=this.intersection(e,n,i,r)),t.POINT_INTERSECTION)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.nearestEndpoint=function(t,e,n,i){var r=t,o=at.distancePointLine(t,n,i),s=at.distancePointLine(e,n,i);return s0?n>0?-r:r:n>0?r:-r;if(0===e||0===n)return i>0?t>0?r:-r:t>0?-r:r;if(e>0?i>0?e<=i||(r=-r,o=t,t=n,n=o,o=e,e=i,i=o):e<=-i?(r=-r,n=-n,i=-i):(o=t,t=-n,n=o,o=e,e=-i,i=o):i>0?-e<=i?(r=-r,t=-t,e=-e):(o=-t,t=n,n=o,o=-e,e=i,i=o):e>=i?(t=-t,e=-e,n=-n,i=-i):(r=-r,o=-t,t=-n,n=o,o=-e,e=-i,i=o),t>0){if(!(n>0))return r;if(!(t<=n))return r}else{if(n>0)return-r;if(!(t>=n))return-r;r=-r,t=-t,n=-n}for(;;){if((i-=(s=Math.floor(n/t))*e)<0)return-r;if(i>e)return r;if(t>(n-=s*t)+n){if(ei+i)return-r;n=t-n,i=e-i,r=-r}if(0===i)return 0===n?0:-r;if(0===n)return r;if((e-=(s=Math.floor(t/n))*i)<0)return r;if(e>i)return-r;if(n>(t-=s*n)+t){if(ie+e)return r;t=n-t,e=i-e,r=-r}if(0===e)return 0===t?0:r;if(0===t)return-r}};var st=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var t=arguments[0];this._p=t};st.prototype.countSegment=function(t,e){if(t.xi&&(n=e.x,i=t.x),this._p.x>=n&&this._p.x<=i&&(this._isPointOnSegment=!0),null}if(t.y>this._p.y&&e.y<=this._p.y||e.y>this._p.y&&t.y<=this._p.y){var r=t.x-this._p.x,o=t.y-this._p.y,s=e.x-this._p.x,a=e.y-this._p.y,u=ot.signOfDet2x2(r,o,s,a);if(0===u)return this._isPointOnSegment=!0,null;a0&&this._crossingCount++}},st.prototype.isPointInPolygon=function(){return this.getLocation()!==w.EXTERIOR},st.prototype.getLocation=function(){return this._isPointOnSegment?w.BOUNDARY:this._crossingCount%2==1?w.INTERIOR:w.EXTERIOR},st.prototype.isOnSegment=function(){return this._isPointOnSegment},st.prototype.interfaces_=function(){return[]},st.prototype.getClass=function(){return st},st.locatePointInRing=function(){if(arguments[0]instanceof C&&T(arguments[1],V)){for(var e=arguments[1],n=new st(arguments[0]),i=new C,r=new C,o=1;o1||a<0||a>1)&&(r=!0)}}else r=!0;return r?R.min(at.distancePointLine(t,n,i),at.distancePointLine(e,n,i),at.distancePointLine(n,t,e),at.distancePointLine(i,t,e)):0},at.isPointInRing=function(t,e){return at.locatePointInRing(t,e)!==w.EXTERIOR},at.computeLength=function(t){var e=t.size();if(e<=1)return 0;var n=0,i=new C;t.getCoordinate(0,i);for(var r=i.x,o=i.y,s=1;sn.y&&(n=o,i=r)}var s=i;do{(s-=1)<0&&(s=e)}while(t[s].equals2D(n)&&s!==i);var a=i;do{a=(a+1)%e}while(t[a].equals2D(n)&&a!==i);var u=t[s],l=t[a];if(u.equals2D(n)||l.equals2D(n)||u.equals2D(l))return!1;var c=at.computeOrientation(u,n,l);return 0===c?u.x>l.x:c>0},at.locatePointInRing=function(t,e){return st.locatePointInRing(t,e)},at.distancePointLinePerpendicular=function(t,e,n){var i=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),r=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/i;return Math.abs(r)*Math.sqrt(i)},at.computeOrientation=function(t,e,n){return at.orientationIndex(t,e,n)},at.distancePointLine=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(0===e.length)throw new m("Line array must contain at least one vertex");for(var n=t.distance(e[0]),i=0;i=1)return o.distance(a);var c=((s.y-o.y)*(a.x-s.x)-(s.x-o.x)*(a.y-s.y))/u;return Math.abs(c)*Math.sqrt(u)}},at.isOnLine=function(t,e){for(var n=new rt,i=1;i0},_t.prototype.interfaces_=function(){return[gt]},_t.prototype.getClass=function(){return _t};var mt=function(){};mt.prototype.isInBoundary=function(t){return t>1},mt.prototype.interfaces_=function(){return[gt]},mt.prototype.getClass=function(){return mt};var vt=function(){};vt.prototype.isInBoundary=function(t){return 1===t},vt.prototype.interfaces_=function(){return[gt]},vt.prototype.getClass=function(){return vt};var It=function(){};It.prototype.add=function(){},It.prototype.addAll=function(){},It.prototype.isEmpty=function(){},It.prototype.iterator=function(){},It.prototype.size=function(){},It.prototype.toArray=function(){},It.prototype.remove=function(){},(n.prototype=new Error).name="IndexOutOfBoundsException";var Et=function(){};Et.prototype.hasNext=function(){},Et.prototype.next=function(){},Et.prototype.remove=function(){};var xt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(){},e.prototype.set=function(){},e.prototype.isEmpty=function(){},e}(It);(i.prototype=new Error).name="NoSuchElementException";var Nt=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof It&&this.addAll(arguments[0])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.ensureCapacity=function(){},e.prototype.interfaces_=function(){return[t,It]},e.prototype.add=function(t){return 1===arguments.length?this.array_.push(t):this.array_.splice(arguments[0],arguments[1]),!0},e.prototype.clear=function(){this.array_=[]},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},e.prototype.iterator=function(){return new Ct(this)},e.prototype.get=function(t){if(t<0||t>=this.size())throw new n;return this.array_[t]},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.size=function(){return this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e=1&&this.get(this.size()-1).equals2D(r))return null;t.prototype.add.call(this,r)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var o=arguments[0],s=arguments[1];return this.add(o,s),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var a=arguments[0],u=arguments[1];if(arguments[2])for(var l=0;l=0;c--)this.add(a[c],u);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof C){var p=arguments[0],h=arguments[1];if(!arguments[2]){var f=this.size();if(f>0){if(p>0&&this.get(p-1).equals2D(h))return null;if(p_&&(m=-1);for(var v=y;v!==_;v+=m)this.add(g[v],d);return!0}},e.prototype.closeRing=function(){this.size()>0&&this.add(new C(this.get(0)),!1)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},Object.defineProperties(e,n),e}(Nt),Lt=function(){},bt={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};bt.ForwardComparator.get=function(){return wt},bt.BidirectionalComparator.get=function(){return Ot},bt.coordArrayType.get=function(){return new Array(0).fill(null)},Lt.prototype.interfaces_=function(){return[]},Lt.prototype.getClass=function(){return Lt},Lt.isRing=function(t){return!(t.length<4||!t[0].equals2D(t[t.length-1]))},Lt.ptNotInList=function(t,e){for(var n=0;n=t?e:[]},Lt.indexOf=function(t,e){for(var n=0;n0)&&(e=t[n]);return e},Lt.extract=function(t,e,n){e=R.clamp(e,0,t.length);var i=(n=R.clamp(n,-1,t.length))-e+1;n<0&&(i=0),e>=t.length&&(i=0),ni.length)return 1;if(0===n.length)return 0;var r=Lt.compare(n,i);return Lt.isEqualReversed(n,i)?0:r},Ot.prototype.OLDcompare=function(t,e){var n=t,i=e;if(n.lengthi.length)return 1;if(0===n.length)return 0;for(var r=Lt.increasingDirection(n),o=Lt.increasingDirection(i),s=r>0?0:n.length-1,a=o>0?0:n.length-1,u=0;u0))return e.value;e=e.right}}return null},p.prototype.put=function(t,e){if(null===this.root_)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:Mt,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,i,r=this.root_;do{if(n=r,(i=t.compareTo(r.key))<0)r=r.left;else{if(!(i>0)){var o=r.value;return r.value=e,o}r=r.right}}while(null!==r);var s={key:t,left:null,right:null,value:e,parent:n,color:Mt,getValue:function(){return this.value},getKey:function(){return this.key}};return i<0?n.left=s:n.right=s,this.fixAfterInsertion(s),this.size_++,null},p.prototype.fixAfterInsertion=function(t){for(t.color=1;null!=t&&t!==this.root_&&1===t.parent.color;)if(a(t)===l(a(a(t)))){var e=c(a(a(t)));1===s(e)?(u(a(t),Mt),u(e,Mt),u(a(a(t)),1),t=a(a(t))):(t===c(a(t))&&(t=a(t),this.rotateLeft(t)),u(a(t),Mt),u(a(a(t)),1),this.rotateRight(a(a(t))))}else{var n=l(a(a(t)));1===s(n)?(u(a(t),Mt),u(n,Mt),u(a(a(t)),1),t=a(a(t))):(t===l(a(t))&&(t=a(t),this.rotateRight(t)),u(a(t),Mt),u(a(a(t)),1),this.rotateLeft(a(a(t))))}this.root_.color=Mt},p.prototype.values=function(){var t=new Nt,e=this.getFirstEntry();if(null!==e)for(t.add(e.value);null!==(e=p.successor(e));)t.add(e.value);return t},p.prototype.entrySet=function(){var t=new Pt,e=this.getFirstEntry();if(null!==e)for(t.add(e);null!==(e=p.successor(e));)t.add(e);return t},p.prototype.rotateLeft=function(t){if(null!=t){var e=t.right;t.right=e.left,null!=e.left&&(e.left.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.left===t?t.parent.left=e:t.parent.right=e,e.left=t,t.parent=e}},p.prototype.rotateRight=function(t){if(null!=t){var e=t.left;t.left=e.right,null!=e.right&&(e.right.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.right===t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}},p.prototype.getFirstEntry=function(){var t=this.root_;if(null!=t)for(;null!=t.left;)t=t.left;return t},p.successor=function(t){if(null===t)return null;if(null!==t.right){for(var e=t.right;null!==e.left;)e=e.left;return e}for(var n=t.parent,i=t;null!==n&&i===n.right;)i=n,n=n.parent;return n},p.prototype.size=function(){return this.size_};var At=function(){};At.prototype.interfaces_=function(){return[]},At.prototype.getClass=function(){return At},h.prototype=new o,(f.prototype=new h).contains=function(t){for(var e=0,n=this.array_.length;e=0;){var s=r.substring(0,o);i.add(s),o=(r=r.substring(o+n)).indexOf(e)}r.length>0&&i.add(r);for(var a=new Array(i.size()).fill(null),u=0;u0)for(var o=r;o0&&i.append(" ");for(var o=0;o0&&i.append(","),i.append(jt.toString(t.getOrdinate(r,o)))}return i.append(")"),i.toString()}},Wt.ensureValidRing=function(t,e){var n=e.size();return 0===n?e:n<=3?Wt.createClosedRing(t,e,4):e.getOrdinate(0,V.X)===e.getOrdinate(n-1,V.X)&&e.getOrdinate(0,V.Y)===e.getOrdinate(n-1,V.Y)?e:Wt.createClosedRing(t,e,n+1)},Wt.createClosedRing=function(t,e,n){var i=t.create(n,e.getDimension()),r=e.size();Wt.copy(e,0,i,0,r);for(var o=r;o0&&Wt.reverse(this._points),null}},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?qt.FALSE:0},e.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},e.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},e.prototype.getDimension=function(){return 1},e.prototype.getLength=function(){return at.computeLength(this._points)},e.prototype.getNumPoints=function(){return this._points.size()},e.prototype.reverse=function(){var t=this._points.copy();return Wt.reverse(t),this.getFactory().createLineString(t)},e.prototype.compareToSameClass=function(){if(1===arguments.length){for(var t=arguments[0],e=0,n=0;e= 2)");this._points=t},e.prototype.isCoordinate=function(t){for(var e=0;e=1&&this.getCoordinateSequence().size()= 4)")},e.prototype.getGeometryType=function(){return"LinearRing"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.MINIMUM_VALID_SIZE.get=function(){return 4},n.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(e,n),e}(Kt),ne=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return ct.SORTINDEX_MULTIPOLYGON},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n0?e.createPoint(n[0]):e.createPoint():t},se.prototype.interfaces_=function(){return[ie.GeometryEditorOperation]},se.prototype.getClass=function(){return se};var ae=function(){};ae.prototype.edit=function(t,e){return t instanceof ee?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof Kt?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof Qt?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},ae.prototype.interfaces_=function(){return[ie.GeometryEditorOperation]},ae.prototype.getClass=function(){return ae};var ue=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var t=arguments[0];this._coordinates=new Array(t).fill(null);for(var e=0;e0){var t=new D(17*this._coordinates.length);t.append("("),t.append(this._coordinates[0]);for(var e=1;e3&&(i=3),i<2?new ue(n):new ue(n,i)}},ce.prototype.interfaces_=function(){return[b,e]},ce.prototype.getClass=function(){return ce},ce.instance=function(){return ce.instanceObject},pe.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},pe.instanceObject.get=function(){return new ce},Object.defineProperties(ce,pe);var he=function(t){function e(){t.call(this),this.map_=new Map}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return this.map_.get(t)||null},e.prototype.put=function(t,e){return this.map_.set(t,e),e},e.prototype.values=function(){for(var t=new Nt,e=this.map_.values(),n=e.next();!n.done;)t.add(n.value),n=e.next();return t},e.prototype.entrySet=function(){var t=new Pt;return this.map_.entries().forEach((function(e){return t.add(e)})),t},e.prototype.size=function(){return this.map_.size()},e}(Tt),fe=function t(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=t.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof de){var e=arguments[0];this._modelType=e,e===t.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var n=arguments[0];this._modelType=t.FIXED,this.setScale(n)}else if(arguments[0]instanceof t){var i=arguments[0];this._modelType=i._modelType,this._scale=i._scale}},ge={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};fe.prototype.equals=function(t){if(!(t instanceof fe))return!1;var e=t;return this._modelType===e._modelType&&this._scale===e._scale},fe.prototype.compareTo=function(t){var e=t,n=this.getMaximumSignificantDigits(),i=e.getMaximumSignificantDigits();return new M(n).compareTo(new M(i))},fe.prototype.getScale=function(){return this._scale},fe.prototype.isFloating=function(){return this._modelType===fe.FLOATING||this._modelType===fe.FLOATING_SINGLE},fe.prototype.getType=function(){return this._modelType},fe.prototype.toString=function(){var t="UNKNOWN";return this._modelType===fe.FLOATING?t="Floating":this._modelType===fe.FLOATING_SINGLE?t="Floating-Single":this._modelType===fe.FIXED&&(t="Fixed (Scale="+this.getScale()+")"),t},fe.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var t=arguments[0];return v.isNaN(t)||this._modelType===fe.FLOATING_SINGLE?t:this._modelType===fe.FIXED?Math.round(t*this._scale)/this._scale:t}if(arguments[0]instanceof C){var e=arguments[0];if(this._modelType===fe.FLOATING)return null;e.x=this.makePrecise(e.x),e.y=this.makePrecise(e.y)}},fe.prototype.getMaximumSignificantDigits=function(){var t=16;return this._modelType===fe.FLOATING?t=16:this._modelType===fe.FLOATING_SINGLE?t=6:this._modelType===fe.FIXED&&(t=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),t},fe.prototype.setScale=function(t){this._scale=Math.abs(t)},fe.prototype.interfaces_=function(){return[e,E]},fe.prototype.getClass=function(){return fe},fe.mostPrecise=function(t,e){return t.compareTo(e)>=0?t:e},ge.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},ge.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(fe,ge);var de=function t(e){this._name=e||null,t.nameToTypeMap.put(e,this)},ye={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};de.prototype.readResolve=function(){return de.nameToTypeMap.get(this._name)},de.prototype.toString=function(){return this._name},de.prototype.interfaces_=function(){return[e]},de.prototype.getClass=function(){return de},ye.serialVersionUID.get=function(){return-552860263173159e4},ye.nameToTypeMap.get=function(){return new he},Object.defineProperties(de,ye),fe.Type=de,fe.FIXED=new de("FIXED"),fe.FLOATING=new de("FLOATING"),fe.FLOATING_SINGLE=new de("FLOATING SINGLE");var _e=function t(){this._precisionModel=new fe,this._SRID=0,this._coordinateSequenceFactory=t.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?T(arguments[0],b)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof fe&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},me={serialVersionUID:{configurable:!0}};_e.prototype.toGeometry=function(t){return t.isNull()?this.createPoint(null):t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new C(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new C(t.getMinX(),t.getMinY()),new C(t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new C(t.getMinX(),t.getMinY()),new C(t.getMinX(),t.getMaxY()),new C(t.getMaxX(),t.getMaxY()),new C(t.getMaxX(),t.getMinY()),new C(t.getMinX(),t.getMinY())]),null)},_e.prototype.createLineString=function(t){return t?t instanceof Array?new Kt(this.getCoordinateSequenceFactory().create(t),this):T(t,V)?new Kt(t,this):void 0:new Kt(this.getCoordinateSequenceFactory().create([]),this)},_e.prototype.createMultiLineString=function(){return 0===arguments.length?new Xt(null,this):1===arguments.length?new Xt(arguments[0],this):void 0},_e.prototype.buildGeometry=function(t){for(var e=null,n=!1,i=!1,r=t.iterator();r.hasNext();){var o=r.next(),s=o.getClass();null===e&&(e=s),s!==e&&(n=!0),o.isGeometryCollectionOrDerived()&&(i=!0)}if(null===e)return this.createGeometryCollection();if(n||i)return this.createGeometryCollection(_e.toGeometryArray(t));var a=t.iterator().next();if(t.size()>1){if(a instanceof $t)return this.createMultiPolygon(_e.toPolygonArray(t));if(a instanceof Kt)return this.createMultiLineString(_e.toLineStringArray(t));if(a instanceof Qt)return this.createMultiPoint(_e.toPointArray(t));et.shouldNeverReachHere("Unhandled class: "+a.getClass().getName())}return a},_e.prototype.createMultiPointFromCoords=function(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)},_e.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof C){var t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if(T(arguments[0],V))return new Qt(arguments[0],this)}},_e.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},_e.prototype.createPolygon=function(){if(0===arguments.length)return new $t(null,null,this);if(1===arguments.length){if(T(arguments[0],V)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof ee){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length)return new $t(arguments[0],arguments[1],this)},_e.prototype.getSRID=function(){return this._SRID},_e.prototype.createGeometryCollection=function(){return 0===arguments.length?new zt(null,this):1===arguments.length?new zt(arguments[0],this):void 0},_e.prototype.createGeometry=function(t){return new ie(this).edit(t,{edit:function(){if(2===arguments.length){var t=arguments[0];return this._coordinateSequenceFactory.create(t)}}})},_e.prototype.getPrecisionModel=function(){return this._precisionModel},_e.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(T(arguments[0],V))return new ee(arguments[0],this)}},_e.prototype.createMultiPolygon=function(){return 0===arguments.length?new ne(null,this):1===arguments.length?new ne(arguments[0],this):void 0},_e.prototype.createMultiPoint=function(){if(0===arguments.length)return new te(null,this);if(1===arguments.length){if(arguments[0]instanceof Array)return new te(arguments[0],this);if(arguments[0]instanceof Array){var e=arguments[0];return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(T(arguments[0],V)){var n=arguments[0];if(null===n)return this.createMultiPoint(new Array(0).fill(null));for(var i=new Array(n.size()).fill(null),r=0;r=this.size())throw new Error;return this.array_[t]},y.prototype.push=function(t){return this.array_.push(t),t},y.prototype.pop=function(t){if(0===this.array_.length)throw new d;return this.array_.pop()},y.prototype.peek=function(){if(0===this.array_.length)throw new d;return this.array_[this.array_.length-1]},y.prototype.empty=function(){return 0===this.array_.length},y.prototype.isEmpty=function(){return this.empty()},y.prototype.search=function(t){return this.array_.indexOf(t)},y.prototype.size=function(){return this.array_.length},y.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e0&&this._minIndexthis._minCoord.y&&n.y>this._minCoord.y&&i===at.CLOCKWISE)&&(r=!0),r&&(this._minIndex=this._minIndex-1)},be.prototype.getRightmostSideOfSegment=function(t,e){var n=t.getEdge().getCoordinates();if(e<0||e+1>=n.length)return-1;if(n[e].y===n[e+1].y)return-1;var i=Se.LEFT;return n[e].ythis._minCoord.x)&&(this._minDe=t,this._minIndex=n,this._minCoord=e[n])},be.prototype.findRightmostEdgeAtNode=function(){var t=this._minDe.getNode().getEdges();this._minDe=t.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},be.prototype.findEdge=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.isForward()&&this.checkForRightmostCoordinate(n)}et.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Se.LEFT&&(this._orientedDe=this._minDe.getSym())},be.prototype.interfaces_=function(){return[]},be.prototype.getClass=function(){return be};var we=function(t){function e(n,i){t.call(this,e.msgWithCoord(n,i)),this.pt=i?new C(i):null,this.name="TopologyException"}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCoordinate=function(){return this.pt},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.msgWithCoord=function(t,e){return e?t:t+" [ "+e+" ]"},e}($),Oe=function(){this.array_=[]};Oe.prototype.addLast=function(t){this.array_.push(t)},Oe.prototype.removeFirst=function(){return this.array_.shift()},Oe.prototype.isEmpty=function(){return 0===this.array_.length};var Te=function(){this._finder=null,this._dirEdgeList=new Nt,this._nodes=new Nt,this._rightMostCoord=null,this._env=null,this._finder=new be};Te.prototype.clearVisitedEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();)t.next().setVisited(!1)},Te.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},Te.prototype.computeNodeDepth=function(t){for(var e=null,n=t.getEdges().iterator();n.hasNext();){var i=n.next();if(i.isVisited()||i.getSym().isVisited()){e=i;break}}if(null===e)throw new we("unable to find edge to compute depths at "+t.getCoordinate());t.getEdges().computeDepths(e);for(var r=t.getEdges().iterator();r.hasNext();){var o=r.next();o.setVisited(!0),this.copySymDepths(o)}},Te.prototype.computeDepth=function(t){this.clearVisitedEdges();var e=this._finder.getEdge();e.setEdgeDepths(Se.RIGHT,t),this.copySymDepths(e),this.computeDepths(e)},Te.prototype.create=function(t){this.addReachable(t),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},Te.prototype.findResultEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();){var e=t.next();e.getDepth(Se.RIGHT)>=1&&e.getDepth(Se.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},Te.prototype.computeDepths=function(t){var e=new Pt,n=new Oe,i=t.getNode();for(n.addLast(i),e.add(i),t.setVisited(!0);!n.isEmpty();){var r=n.removeFirst();e.add(r),this.computeNodeDepth(r);for(var o=r.getEdges().iterator();o.hasNext();){var s=o.next().getSym();if(!s.isVisited()){var a=s.getNode();e.contains(a)||(n.addLast(a),e.add(a))}}}},Te.prototype.compareTo=function(t){var e=t;return this._rightMostCoord.xe._rightMostCoord.x?1:0},Te.prototype.getEnvelope=function(){if(null===this._env){for(var t=new j,e=this._dirEdgeList.iterator();e.hasNext();)for(var n=e.next().getEdge().getCoordinates(),i=0;ithis.location.length){var e=new Array(3).fill(null);e[Se.ON]=this.location[Se.ON],e[Se.LEFT]=w.NONE,e[Se.RIGHT]=w.NONE,this.location=e}for(var n=0;n1&&t.append(w.toLocationSymbol(this.location[Se.LEFT])),t.append(w.toLocationSymbol(this.location[Se.ON])),this.location.length>1&&t.append(w.toLocationSymbol(this.location[Se.RIGHT])),t.toString()},Re.prototype.setLocations=function(t,e,n){this.location[Se.ON]=t,this.location[Se.LEFT]=e,this.location[Se.RIGHT]=n},Re.prototype.get=function(t){return t1},Re.prototype.isAnyNull=function(){for(var t=0;tthis._maxNodeDegree&&(this._maxNodeDegree=e),t=this.getNext(t)}while(t!==this._startDe);this._maxNodeDegree*=2},De.prototype.addPoints=function(t,e,n){var i=t.getCoordinates();if(e){var r=1;n&&(r=0);for(var o=r;o=0;a--)this._pts.add(i[a])}},De.prototype.isHole=function(){return this._isHole},De.prototype.setInResult=function(){var t=this._startDe;do{t.getEdge().setInResult(!0),t=t.getNext()}while(t!==this._startDe)},De.prototype.containsPoint=function(t){var e=this.getLinearRing();if(!e.getEnvelopeInternal().contains(t))return!1;if(!at.isPointInRing(t,e.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(t))return!1;return!0},De.prototype.addHole=function(t){this._holes.add(t)},De.prototype.isShell=function(){return null===this._shell},De.prototype.getLabel=function(){return this._label},De.prototype.getEdges=function(){return this._edges},De.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},De.prototype.getShell=function(){return this._shell},De.prototype.mergeLabel=function(){if(1===arguments.length){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(2===arguments.length){var n=arguments[1],i=arguments[0].getLocation(n,Se.RIGHT);if(i===w.NONE)return null;if(this._label.getLocation(n)===w.NONE)return this._label.setLocation(n,i),null}},De.prototype.setShell=function(t){this._shell=t,null!==t&&t.addHole(this)},De.prototype.toPolygon=function(t){for(var e=new Array(this._holes.size()).fill(null),n=0;n=2,"found partial label"),this.computeIM(t)},Fe.prototype.isInResult=function(){return this._isInResult},Fe.prototype.isVisited=function(){return this._isVisited},Fe.prototype.interfaces_=function(){return[]},Fe.prototype.getClass=function(){return Fe};var Ge=function(t){function e(){t.call(this),this._coord=null,this._edges=null;var e=arguments[0],n=arguments[1];this._coord=e,this._edges=n,this._label=new Pe(0,w.NONE)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isIncidentEdgeInResult=function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();)if(t.next().getEdge().isInResult())return!0;return!1},e.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},e.prototype.getCoordinate=function(){return this._coord},e.prototype.print=function(t){t.println("node "+this._coord+" lbl: "+this._label)},e.prototype.computeIM=function(t){},e.prototype.computeMergedLocation=function(t,e){var n=w.NONE;if(n=this._label.getLocation(e),!t.isNull(e)){var i=t.getLocation(e);n!==w.BOUNDARY&&(n=i)}return n},e.prototype.setLabel=function(){if(2!==arguments.length)return t.prototype.setLabel.apply(this,arguments);var e=arguments[0],n=arguments[1];null===this._label?this._label=new Pe(e,n):this._label.setLocation(e,n)},e.prototype.getEdges=function(){return this._edges},e.prototype.mergeLabel=function(){if(arguments[0]instanceof e){var t=arguments[0];this.mergeLabel(t._label)}else if(arguments[0]instanceof Pe)for(var n=arguments[0],i=0;i<2;i++){var r=this.computeMergedLocation(n,i);this._label.getLocation(i)===w.NONE&&this._label.setLocation(i,r)}},e.prototype.add=function(t){this._edges.insert(t),t.setNode(this)},e.prototype.setLabelBoundary=function(t){if(null===this._label)return null;var e=w.NONE;null!==this._label&&(e=this._label.getLocation(t));var n=null;switch(e){case w.BOUNDARY:n=w.INTERIOR;break;case w.INTERIOR:default:n=w.BOUNDARY}this._label.setLocation(t,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Fe),qe=function(){this.nodeMap=new p,this.nodeFact=null;var t=arguments[0];this.nodeFact=t};qe.prototype.find=function(t){return this.nodeMap.get(t)},qe.prototype.addNode=function(){if(arguments[0]instanceof C){var t=arguments[0],e=this.nodeMap.get(t);return null===e&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof Ge){var n=arguments[0],i=this.nodeMap.get(n.getCoordinate());return null===i?(this.nodeMap.put(n.getCoordinate(),n),n):(i.mergeLabel(n),i)}},qe.prototype.print=function(t){for(var e=this.iterator();e.hasNext();)e.next().print(t)},qe.prototype.iterator=function(){return this.nodeMap.values().iterator()},qe.prototype.values=function(){return this.nodeMap.values()},qe.prototype.getBoundaryNodes=function(t){for(var e=new Nt,n=this.iterator();n.hasNext();){var i=n.next();i.getLabel().getLocation(t)===w.BOUNDARY&&e.add(i)}return e},qe.prototype.add=function(t){var e=t.getCoordinate();this.addNode(e).add(t)},qe.prototype.interfaces_=function(){return[]},qe.prototype.getClass=function(){return qe};var Be=function(){},Ve={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};Be.prototype.interfaces_=function(){return[]},Be.prototype.getClass=function(){return Be},Be.isNorthern=function(t){return t===Be.NE||t===Be.NW},Be.isOpposite=function(t,e){return t!==e&&2==(t-e+4)%4},Be.commonHalfPlane=function(t,e){if(t===e)return t;if(2==(t-e+4)%4)return-1;var n=te?t:e)?3:n},Be.isInHalfPlane=function(t,e){return e===Be.SE?t===Be.SE||t===Be.SW:t===e||t===e+1},Be.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new m("Cannot compute the quadrant for point ( "+t+", "+e+" )");return t>=0?e>=0?Be.NE:Be.SE:e>=0?Be.NW:Be.SW}if(arguments[0]instanceof C&&arguments[1]instanceof C){var n=arguments[0],i=arguments[1];if(i.x===n.x&&i.y===n.y)throw new m("Cannot compute the quadrant for two identical points "+n);return i.x>=n.x?i.y>=n.y?Be.NE:Be.SE:i.y>=n.y?Be.NW:Be.SW}},Ve.NE.get=function(){return 0},Ve.NW.get=function(){return 1},Ve.SW.get=function(){return 2},Ve.SE.get=function(){return 3},Object.defineProperties(Be,Ve);var Ue=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var t=arguments[0];this._edge=t}else if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2];this._edge=e,this.init(n,i),this._label=null}else if(4===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this._edge=r,this.init(o,s),this._label=a}};Ue.prototype.compareDirection=function(t){return this._dx===t._dx&&this._dy===t._dy?0:this._quadrant>t._quadrant?1:this._quadrant2){o.linkDirectedEdgesForMinimalEdgeRings();var s=o.buildMinimalRings(),a=this.findShell(s);null!==a?(this.placePolygonHoles(a,s),e.add(a)):n.addAll(s)}else i.add(o)}return i},ke.prototype.containsPoint=function(t){for(var e=this._shellList.iterator();e.hasNext();)if(e.next().containsPoint(t))return!0;return!1},ke.prototype.buildMaximalEdgeRings=function(t){for(var e=new Nt,n=t.iterator();n.hasNext();){var i=n.next();if(i.isInResult()&&i.getLabel().isArea()&&null===i.getEdgeRing()){var r=new Ae(i,this._geometryFactory);e.add(r),r.setInResult()}}return e},ke.prototype.placePolygonHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();i.isHole()&&i.setShell(t)}},ke.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},ke.prototype.findEdgeRingContaining=function(t,e){for(var n=t.getLinearRing(),i=n.getEnvelopeInternal(),r=n.getCoordinateN(0),o=null,s=null,a=e.iterator();a.hasNext();){var u=a.next(),l=u.getLinearRing(),c=l.getEnvelopeInternal();null!==o&&(s=o.getLinearRing().getEnvelopeInternal());var p=!1;c.contains(i)&&at.isPointInRing(r,l.getCoordinates())&&(p=!0),p&&(null===o||s.contains(c))&&(o=u)}return o},ke.prototype.findShell=function(t){for(var e=0,n=null,i=t.iterator();i.hasNext();){var r=i.next();r.isHole()||(n=r,e++)}return et.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n},ke.prototype.add=function(){if(1===arguments.length){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){var e=arguments[0],n=arguments[1];Ye.linkResultDirectedEdges(n);var i=this.buildMaximalEdgeRings(e),r=new Nt,o=this.buildMinimalEdgeRings(i,this._shellList,r);this.sortShellsAndHoles(o,this._shellList,r),this.placeFreeHoles(this._shellList,r)}},ke.prototype.interfaces_=function(){return[]},ke.prototype.getClass=function(){return ke};var je=function(){};je.prototype.getBounds=function(){},je.prototype.interfaces_=function(){return[]},je.prototype.getClass=function(){return je};var He=function(){this._bounds=null,this._item=null;var t=arguments[0],e=arguments[1];this._bounds=t,this._item=e};He.prototype.getItem=function(){return this._item},He.prototype.getBounds=function(){return this._bounds},He.prototype.interfaces_=function(){return[je,e]},He.prototype.getClass=function(){return He};var We=function(){this._size=null,this._items=null,this._size=0,this._items=new Nt,this._items.add(null)};We.prototype.poll=function(){if(this.isEmpty())return null;var t=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),t},We.prototype.size=function(){return this._size},We.prototype.reorder=function(t){for(var e=null,n=this._items.get(t);2*t<=this._size&&((e=2*t)!==this._size&&this._items.get(e+1).compareTo(this._items.get(e))<0&&e++,this._items.get(e).compareTo(n)<0);t=e)this._items.set(t,this._items.get(e));this._items.set(t,n)},We.prototype.clear=function(){this._size=0,this._items.clear()},We.prototype.isEmpty=function(){return 0===this._size},We.prototype.add=function(t){this._items.add(null),this._size+=1;var e=this._size;for(this._items.set(0,t);t.compareTo(this._items.get(Math.trunc(e/2)))<0;e/=2)this._items.set(e,this._items.get(Math.trunc(e/2)));this._items.set(e,t)},We.prototype.interfaces_=function(){return[]},We.prototype.getClass=function(){return We};var Ke=function(){};Ke.prototype.visitItem=function(t){},Ke.prototype.interfaces_=function(){return[]},Ke.prototype.getClass=function(){return Ke};var Je=function(){};Je.prototype.insert=function(t,e){},Je.prototype.remove=function(t,e){},Je.prototype.query=function(){},Je.prototype.interfaces_=function(){return[]},Je.prototype.getClass=function(){return Je};var Qe=function(){if(this._childBoundables=new Nt,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._level=t}},Ze={serialVersionUID:{configurable:!0}};Qe.prototype.getLevel=function(){return this._level},Qe.prototype.size=function(){return this._childBoundables.size()},Qe.prototype.getChildBoundables=function(){return this._childBoundables},Qe.prototype.addChildBoundable=function(t){et.isTrue(null===this._bounds),this._childBoundables.add(t)},Qe.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},Qe.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},Qe.prototype.interfaces_=function(){return[je,e]},Qe.prototype.getClass=function(){return Qe},Ze.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties(Qe,Ze);var $e=function(){};$e.reverseOrder=function(){return{compare:function(t,e){return e.compareTo(t)}}},$e.min=function(t){return $e.sort(t),t.get(0)},$e.sort=function(t,e){var n=t.toArray();e?Gt.sort(n,e):Gt.sort(n);for(var i=t.iterator(),r=0,o=n.length;rtn.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,t,e),null):(this.expand(this._boundable2,this._boundable1,t,e),null);if(n)return this.expand(this._boundable1,this._boundable2,t,e),null;if(i)return this.expand(this._boundable2,this._boundable1,t,e),null;throw new m("neither boundable is composite")},tn.prototype.isLeaves=function(){return!(tn.isComposite(this._boundable1)||tn.isComposite(this._boundable2))},tn.prototype.compareTo=function(t){var e=t;return this._distancee._distance?1:0},tn.prototype.expand=function(t,e,n,i){for(var r=t.getChildBoundables().iterator();r.hasNext();){var o=r.next(),s=new tn(o,e,this._itemDistance);s.getDistance()1,"Node capacity must be greater than 1"),this._nodeCapacity=n}},nn={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};en.prototype.getNodeCapacity=function(){return this._nodeCapacity},en.prototype.lastNode=function(t){return t.get(t.size()-1)},en.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();n instanceof Qe?t+=this.size(n):n instanceof He&&(t+=1)}return t}},en.prototype.removeItem=function(t,e){for(var n=null,i=t.getChildBoundables().iterator();i.hasNext();){var r=i.next();r instanceof He&&r.getItem()===e&&(n=r)}return null!==n&&(t.getChildBoundables().remove(n),!0)},en.prototype.itemsTree=function(){if(0===arguments.length){this.build();var t=this.itemsTree(this._root);return null===t?new Nt:t}if(1===arguments.length){for(var e=arguments[0],n=new Nt,i=e.getChildBoundables().iterator();i.hasNext();){var r=i.next();if(r instanceof Qe){var o=this.itemsTree(r);null!==o&&n.add(o)}else r instanceof He?n.add(r.getItem()):et.shouldNeverReachHere()}return n.size()<=0?null:n}},en.prototype.insert=function(t,e){et.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new He(t,e))},en.prototype.boundablesAtLevel=function(){if(1===arguments.length){var t=arguments[0],e=new Nt;return this.boundablesAtLevel(t,this._root,e),e}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];if(et.isTrue(n>-2),i.getLevel()===n)return r.add(i),null;for(var o=i.getChildBoundables().iterator();o.hasNext();){var s=o.next();s instanceof Qe?this.boundablesAtLevel(n,s,r):(et.isTrue(s instanceof He),-1===n&&r.add(s))}return null}},en.prototype.query=function(){if(1===arguments.length){var t=arguments[0];this.build();var e=new Nt;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.query(t,this._root,e),e}if(2===arguments.length){var n=arguments[0],i=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.query(n,this._root,i)}else if(3===arguments.length)if(T(arguments[2],Ke)&&arguments[0]instanceof Object&&arguments[1]instanceof Qe)for(var r=arguments[0],s=arguments[2],a=arguments[1].getChildBoundables(),u=0;ut&&(t=i)}}return t+1}},en.prototype.createParentBoundables=function(t,e){et.isTrue(!t.isEmpty());var n=new Nt;n.add(this.createNode(e));var i=new Nt(t);$e.sort(i,this.getComparator());for(var r=i.iterator();r.hasNext();){var o=r.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(o)}return n},en.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},en.prototype.interfaces_=function(){return[e]},en.prototype.getClass=function(){return en},en.compareDoubles=function(t,e){return t>e?1:t0);for(var n=new Nt,i=0;i0;){var p=c.poll(),h=p.getDistance();if(h>=u)break;p.isLeaves()?(u=h,l=p):p.expandToQueue(c,u)}return[l.getBoundable(0).getItem(),l.getBoundable(1).getItem()]}}else if(3===arguments.length){var d=arguments[2],y=new He(arguments[0],arguments[1]),_=new tn(this.getRoot(),y,d);return this.nearestNeighbour(_)[0]}},n.prototype.interfaces_=function(){return[Je,e]},n.prototype.getClass=function(){return n},n.centreX=function(t){return n.avg(t.getMinX(),t.getMaxX())},n.avg=function(t,e){return(t+e)/2},n.centreY=function(t){return n.avg(t.getMinY(),t.getMaxY())},i.STRtreeNode.get=function(){return an},i.serialVersionUID.get=function(){return 0x39920f7d5f261e0},i.xComparator.get=function(){return{interfaces_:function(){return[N]},compare:function(e,i){return t.compareDoubles(n.centreX(e.getBounds()),n.centreX(i.getBounds()))}}},i.yComparator.get=function(){return{interfaces_:function(){return[N]},compare:function(e,i){return t.compareDoubles(n.centreY(e.getBounds()),n.centreY(i.getBounds()))}}},i.intersectsOp.get=function(){return{interfaces_:function(){return[t.IntersectsOp]},intersects:function(t,e){return t.intersects(e)}}},i.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(n,i),n}(en),an=function(t){function e(){var e=arguments[0];t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeBounds=function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();null===t?t=new j(n.getBounds()):t.expandToInclude(n.getBounds())}return t},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Qe),un=function(){};un.prototype.interfaces_=function(){return[]},un.prototype.getClass=function(){return un},un.relativeSign=function(t,e){return te?1:0},un.compare=function(t,e,n){if(e.equals2D(n))return 0;var i=un.relativeSign(e.x,n.x),r=un.relativeSign(e.y,n.y);switch(t){case 0:return un.compareValue(i,r);case 1:return un.compareValue(r,i);case 2:return un.compareValue(r,-i);case 3:return un.compareValue(-i,r);case 4:return un.compareValue(-i,-r);case 5:return un.compareValue(-r,-i);case 6:return un.compareValue(-r,i);case 7:return un.compareValue(i,-r)}return et.shouldNeverReachHere("invalid octant value"),0},un.compareValue=function(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0};var ln=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._segString=t,this.coord=new C(e),this.segmentIndex=n,this._segmentOctant=i,this._isInterior=!e.equals2D(t.getCoordinate(n))};ln.prototype.getCoordinate=function(){return this.coord},ln.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)},ln.prototype.compareTo=function(t){var e=t;return this.segmentIndexe.segmentIndex?1:this.coord.equals2D(e.coord)?0:un.compare(this._segmentOctant,this.coord,e.coord)},ln.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t},ln.prototype.isInterior=function(){return this._isInterior},ln.prototype.interfaces_=function(){return[E]},ln.prototype.getClass=function(){return ln};var cn=function(){this._nodeMap=new p,this._edge=null;var t=arguments[0];this._edge=t};cn.prototype.getSplitCoordinates=function(){var t=new St;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var i=e.next();this.addEdgeCoordinates(n,i,t),n=i}return t.toCoordinateArray()},cn.prototype.addCollapsedNodes=function(){var t=new Nt;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var n=e.next().intValue();this.add(this._edge.getCoordinate(n),n)}},cn.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},cn.prototype.findCollapsesFromExistingVertices=function(t){for(var e=0;e=0?e>=0?n>=i?0:1:n>=i?7:6:e>=0?n>=i?3:2:n>=i?4:5}if(arguments[0]instanceof C&&arguments[1]instanceof C){var r=arguments[0],o=arguments[1],s=o.x-r.x,a=o.y-r.y;if(0===s&&0===a)throw new m("Cannot compute the octant for two identical points "+r);return pn.octant(s,a)}};var hn=function(){};hn.prototype.getCoordinates=function(){},hn.prototype.size=function(){},hn.prototype.getCoordinate=function(t){},hn.prototype.isClosed=function(){},hn.prototype.setData=function(t){},hn.prototype.getData=function(){},hn.prototype.interfaces_=function(){return[]},hn.prototype.getClass=function(){return hn};var fn=function(){};fn.prototype.addIntersection=function(t,e){},fn.prototype.interfaces_=function(){return[hn]},fn.prototype.getClass=function(){return fn};var gn=function(){this._nodeList=new cn(this),this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};gn.prototype.getCoordinates=function(){return this._pts},gn.prototype.size=function(){return this._pts.length},gn.prototype.getCoordinate=function(t){return this._pts[t]},gn.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},gn.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))},gn.prototype.setData=function(t){this._data=t},gn.prototype.safeOctant=function(t,e){return t.equals2D(e)?0:pn.octant(t,e)},gn.prototype.getData=function(){return this._data},gn.prototype.addIntersection=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(4===arguments.length){var i=arguments[1],r=arguments[3],o=new C(arguments[0].getIntersection(r));this.addIntersection(o,i)}},gn.prototype.toString=function(){return Z.toLineString(new ue(this._pts))},gn.prototype.getNodeList=function(){return this._nodeList},gn.prototype.addIntersectionNode=function(t,e){var n=e,i=n+1;if(i=0&&n>=0||e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof C){var i=arguments[0];return at.orientationIndex(this.p0,this.p1,i)}},dn.prototype.toGeometry=function(t){return t.createLineString([this.p0,this.p1])},dn.prototype.isVertical=function(){return this.p0.x===this.p1.x},dn.prototype.equals=function(t){if(!(t instanceof dn))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},dn.prototype.intersection=function(t){var e=new rt;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},dn.prototype.project=function(){if(arguments[0]instanceof C){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new C(t);var e=this.projectionFactor(t),n=new C;return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof dn){var i=arguments[0],r=this.projectionFactor(i.p0),o=this.projectionFactor(i.p1);if(r>=1&&o>=1)return null;if(r<=0&&o<=0)return null;var s=this.project(i.p0);r<0&&(s=this.p0),r>1&&(s=this.p1);var a=this.project(i.p1);return o<0&&(a=this.p0),o>1&&(a=this.p1),new dn(s,a)}},dn.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},dn.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},dn.prototype.getCoordinate=function(t){return 0===t?this.p0:this.p1},dn.prototype.distancePerpendicular=function(t){return at.distancePointLinePerpendicular(t,this.p0,this.p1)},dn.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},dn.prototype.midPoint=function(){return dn.midPoint(this.p0,this.p1)},dn.prototype.projectionFactor=function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,i=e*e+n*n;return i<=0?v.NaN:((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/i},dn.prototype.closestPoints=function(t){var e=this.intersection(t);if(null!==e)return[e,e];var n=new Array(2).fill(null),i=v.MAX_VALUE,r=null,o=this.closestPoint(t.p0);i=o.distance(t.p0),n[0]=o,n[1]=t.p0;var s=this.closestPoint(t.p1);(r=s.distance(t.p1))0&&e<1?this.project(t):this.p0.distance(t)1||v.isNaN(e))&&(e=1),e},dn.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},dn.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},dn.prototype.distance=function(){if(arguments[0]instanceof dn){var t=arguments[0];return at.distanceLineLine(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof C){var e=arguments[0];return at.distancePointLine(e,this.p0,this.p1)}},dn.prototype.pointAlong=function(t){var e=new C;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e},dn.prototype.hashCode=function(){var t=v.doubleToLongBits(this.p0.x);t^=31*v.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),n=v.doubleToLongBits(this.p1.x);return n^=31*v.doubleToLongBits(this.p1.y),e^Math.trunc(n)^Math.trunc(n>>32)},dn.prototype.interfaces_=function(){return[E,e]},dn.prototype.getClass=function(){return dn},dn.midPoint=function(t,e){return new C((t.x+e.x)/2,(t.y+e.y)/2)},yn.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(dn,yn);var _n=function(){this.tempEnv1=new j,this.tempEnv2=new j,this._overlapSeg1=new dn,this._overlapSeg2=new dn};_n.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var e=arguments[1],n=arguments[2],i=arguments[3];arguments[0].getLineSegment(e,this._overlapSeg1),n.getLineSegment(i,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},_n.prototype.interfaces_=function(){return[]},_n.prototype.getClass=function(){return _n};var mn=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._pts=t,this._start=e,this._end=n,this._context=i};mn.prototype.getLineSegment=function(t,e){e.p0=this._pts[t],e.p1=this._pts[t+1]},mn.prototype.computeSelect=function(t,e,n,i){var r=this._pts[e],o=this._pts[n];if(i.tempEnv1.init(r,o),n-e==1)return i.select(this,e),null;if(!t.intersects(i.tempEnv1))return null;var s=Math.trunc((e+n)/2);e=t.length-1)return t.length-1;for(var i=Be.quadrant(t[n],t[n+1]),r=e+1;rn.getId()&&(n.computeOverlaps(r,t),this._nOverlaps++),this._segInt.isDone())return null}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.SegmentOverlapAction.get=function(){return Nn},Object.defineProperties(e,n),e}(En),Nn=function(t){function e(){t.call(this),this._si=null;var e=arguments[0];this._si=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.overlap=function(){if(4!==arguments.length)return t.prototype.overlap.apply(this,arguments);var n=arguments[1],i=arguments[2],r=arguments[3],o=arguments[0].getContext(),s=i.getContext();this._si.processIntersections(o,n,s,r)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(_n),Cn=function t(){if(this._quadrantSegments=t.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=t.CAP_ROUND,this._joinStyle=t.JOIN_ROUND,this._mitreLimit=t.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=t.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.setQuadrantSegments(e)}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(i)}else if(4===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this.setQuadrantSegments(r),this.setEndCapStyle(o),this.setJoinStyle(s),this.setMitreLimit(a)}},Sn={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};Cn.prototype.getEndCapStyle=function(){return this._endCapStyle},Cn.prototype.isSingleSided=function(){return this._isSingleSided},Cn.prototype.setQuadrantSegments=function(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=Cn.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=Cn.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==Cn.JOIN_ROUND&&(this._quadrantSegments=Cn.DEFAULT_QUADRANT_SEGMENTS)},Cn.prototype.getJoinStyle=function(){return this._joinStyle},Cn.prototype.setJoinStyle=function(t){this._joinStyle=t},Cn.prototype.setSimplifyFactor=function(t){this._simplifyFactor=t<0?0:t},Cn.prototype.getSimplifyFactor=function(){return this._simplifyFactor},Cn.prototype.getQuadrantSegments=function(){return this._quadrantSegments},Cn.prototype.setEndCapStyle=function(t){this._endCapStyle=t},Cn.prototype.getMitreLimit=function(){return this._mitreLimit},Cn.prototype.setMitreLimit=function(t){this._mitreLimit=t},Cn.prototype.setSingleSided=function(t){this._isSingleSided=t},Cn.prototype.interfaces_=function(){return[]},Cn.prototype.getClass=function(){return Cn},Cn.bufferDistanceError=function(t){var e=Math.PI/2/t;return 1-Math.cos(e/2)},Sn.CAP_ROUND.get=function(){return 1},Sn.CAP_FLAT.get=function(){return 2},Sn.CAP_SQUARE.get=function(){return 3},Sn.JOIN_ROUND.get=function(){return 1},Sn.JOIN_MITRE.get=function(){return 2},Sn.JOIN_BEVEL.get=function(){return 3},Sn.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},Sn.DEFAULT_MITRE_LIMIT.get=function(){return 5},Sn.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(Cn,Sn);var Ln=function(t){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=at.COUNTERCLOCKWISE,this._inputLine=t||null},bn={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Ln.prototype.isDeletable=function(t,e,n,i){var r=this._inputLine[t],o=this._inputLine[e],s=this._inputLine[n];return!!this.isConcave(r,o,s)&&!!this.isShallow(r,o,s,i)&&this.isShallowSampled(r,o,t,n,i)},Ln.prototype.deleteShallowConcavities=function(){for(var t=1,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e),i=!1;n=0;i--)this.addPt(t[i])},wn.prototype.isRedundant=function(t){if(this._ptList.size()<1)return!1;var e=this._ptList.get(this._ptList.size()-1);return t.distance(e)Math.PI;)t-=Tn.PI_TIMES_2;for(;t<=-Math.PI;)t+=Tn.PI_TIMES_2;return t},Tn.angle=function(){if(1===arguments.length){var t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){var e=arguments[0],n=arguments[1],i=n.x-e.x,r=n.y-e.y;return Math.atan2(r,i)}},Tn.isAcute=function(t,e,n){var i=t.x-e.x,r=t.y-e.y;return i*(n.x-e.x)+r*(n.y-e.y)>0},Tn.isObtuse=function(t,e,n){var i=t.x-e.x,r=t.y-e.y;return i*(n.x-e.x)+r*(n.y-e.y)<0},Tn.interiorAngle=function(t,e,n){var i=Tn.angle(e,t),r=Tn.angle(e,n);return Math.abs(r-i)},Tn.normalizePositive=function(t){if(t<0){for(;t<0;)t+=Tn.PI_TIMES_2;t>=Tn.PI_TIMES_2&&(t=0)}else{for(;t>=Tn.PI_TIMES_2;)t-=Tn.PI_TIMES_2;t<0&&(t=0)}return t},Tn.angleBetween=function(t,e,n){var i=Tn.angle(e,t),r=Tn.angle(e,n);return Tn.diff(i,r)},Tn.diff=function(t,e){var n=null;return(n=tMath.PI&&(n=2*Math.PI-n),n},Tn.toRadians=function(t){return t*Math.PI/180},Tn.getTurn=function(t,e){var n=Math.sin(e-t);return n>0?Tn.COUNTERCLOCKWISE:n<0?Tn.CLOCKWISE:Tn.NONE},Tn.angleBetweenOriented=function(t,e,n){var i=Tn.angle(e,t),r=Tn.angle(e,n)-i;return r<=-Math.PI?r+Tn.PI_TIMES_2:r>Math.PI?r-Tn.PI_TIMES_2:r},Rn.PI_TIMES_2.get=function(){return 2*Math.PI},Rn.PI_OVER_2.get=function(){return Math.PI/2},Rn.PI_OVER_4.get=function(){return Math.PI/4},Rn.COUNTERCLOCKWISE.get=function(){return at.COUNTERCLOCKWISE},Rn.CLOCKWISE.get=function(){return at.CLOCKWISE},Rn.NONE.get=function(){return at.COLLINEAR},Object.defineProperties(Tn,Rn);var Pn=function t(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new dn,this._seg1=new dn,this._offset0=new dn,this._offset1=new dn,this._side=0,this._hasNarrowConcaveAngle=!1;var e=arguments[0],n=arguments[1],i=arguments[2];this._precisionModel=e,this._bufParams=n,this._li=new rt,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),n.getQuadrantSegments()>=8&&n.getJoinStyle()===Cn.JOIN_ROUND&&(this._closingSegLengthFactor=t.MAX_CLOSING_SEG_LEN_FACTOR),this.init(i)},Dn={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};Pn.prototype.addNextSegment=function(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=at.computeOrientation(this._s0,this._s1,this._s2),i=n===at.CLOCKWISE&&this._side===Se.LEFT||n===at.COUNTERCLOCKWISE&&this._side===Se.RIGHT;0===n?this.addCollinear(e):i?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)},Pn.prototype.addLineEndCap=function(t,e){var n=new dn(t,e),i=new dn;this.computeOffsetSegment(n,Se.LEFT,this._distance,i);var r=new dn;this.computeOffsetSegment(n,Se.RIGHT,this._distance,r);var o=e.x-t.x,s=e.y-t.y,a=Math.atan2(s,o);switch(this._bufParams.getEndCapStyle()){case Cn.CAP_ROUND:this._segList.addPt(i.p1),this.addFilletArc(e,a+Math.PI/2,a-Math.PI/2,at.CLOCKWISE,this._distance),this._segList.addPt(r.p1);break;case Cn.CAP_FLAT:this._segList.addPt(i.p1),this._segList.addPt(r.p1);break;case Cn.CAP_SQUARE:var u=new C;u.x=Math.abs(this._distance)*Math.cos(a),u.y=Math.abs(this._distance)*Math.sin(a);var l=new C(i.p1.x+u.x,i.p1.y+u.y),c=new C(r.p1.x+u.x,r.p1.y+u.y);this._segList.addPt(l),this._segList.addPt(c)}},Pn.prototype.getCoordinates=function(){return this._segList.getCoordinates()},Pn.prototype.addMitreJoin=function(t,e,n,i){var r=!0,o=null;try{o=k.intersection(e.p0,e.p1,n.p0,n.p1),(i<=0?1:o.distance(t)/Math.abs(i))>this._bufParams.getMitreLimit()&&(r=!1)}catch(t){if(!(t instanceof X))throw t;o=new C(0,0),r=!1}r?this._segList.addPt(o):this.addLimitedMitreJoin(e,n,i,this._bufParams.getMitreLimit())},Pn.prototype.addFilletCorner=function(t,e,n,i,r){var o=e.x-t.x,s=e.y-t.y,a=Math.atan2(s,o),u=n.x-t.x,l=n.y-t.y,c=Math.atan2(l,u);i===at.CLOCKWISE?a<=c&&(a+=2*Math.PI):a>=c&&(a-=2*Math.PI),this._segList.addPt(e),this.addFilletArc(t,a,c,i,r),this._segList.addPt(n)},Pn.prototype.addOutsideTurn=function(t,e){if(this._offset0.p1.distance(this._offset1.p0)0){var n=new C((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n);var i=new C((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(i)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},Pn.prototype.createCircle=function(t){var e=new C(t.x+this._distance,t.y);this._segList.addPt(e),this.addFilletArc(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},Pn.prototype.addBevelJoin=function(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)},Pn.prototype.init=function(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new wn,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*Pn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},Pn.prototype.addCollinear=function(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===Cn.JOIN_BEVEL||this._bufParams.getJoinStyle()===Cn.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,at.CLOCKWISE,this._distance))},Pn.prototype.closeRing=function(){this._segList.closeRing()},Pn.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},Pn.prototype.interfaces_=function(){return[]},Pn.prototype.getClass=function(){return Pn},Dn.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},Dn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},Dn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},Dn.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(Pn,Dn);var Mn=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e};Mn.prototype.getOffsetCurve=function(t,e){if(this._distance=e,0===e)return null;var n=e<0,i=Math.abs(e),r=this.getSegGen(i);t.length<=1?this.computePointCurve(t[0],r):this.computeOffsetCurve(t,n,r);var o=r.getCoordinates();return n&&Lt.reverse(o),o},Mn.prototype.computeSingleSidedBufferCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);if(e){n.addSegments(t,!0);var r=Ln.simplify(t,-i),o=r.length-1;n.initSideSegments(r[o],r[o-1],Se.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(r[s],!0)}else{n.addSegments(t,!1);var a=Ln.simplify(t,i),u=a.length-1;n.initSideSegments(a[0],a[1],Se.LEFT),n.addFirstSegment();for(var l=2;l<=u;l++)n.addNextSegment(a[l],!0)}n.addLastSegment(),n.closeRing()},Mn.prototype.computeRingBufferCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);e===Se.RIGHT&&(i=-i);var r=Ln.simplify(t,i),o=r.length-1;n.initSideSegments(r[o-1],r[0],e);for(var s=1;s<=o;s++){var a=1!==s;n.addNextSegment(r[s],a)}n.closeRing()},Mn.prototype.computeLineBufferCurve=function(t,e){var n=this.simplifyTolerance(this._distance),i=Ln.simplify(t,n),r=i.length-1;e.initSideSegments(i[0],i[1],Se.LEFT);for(var o=2;o<=r;o++)e.addNextSegment(i[o],!0);e.addLastSegment(),e.addLineEndCap(i[r-1],i[r]);var s=Ln.simplify(t,-n),a=s.length-1;e.initSideSegments(s[a],s[a-1],Se.LEFT);for(var u=a-2;u>=0;u--)e.addNextSegment(s[u],!0);e.addLastSegment(),e.addLineEndCap(s[1],s[0]),e.closeRing()},Mn.prototype.computePointCurve=function(t,e){switch(this._bufParams.getEndCapStyle()){case Cn.CAP_ROUND:e.createCircle(t);break;case Cn.CAP_SQUARE:e.createSquare(t)}},Mn.prototype.getLineCurve=function(t,e){if(this._distance=e,e<0&&!this._bufParams.isSingleSided())return null;if(0===e)return null;var n=Math.abs(e),i=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],i);else if(this._bufParams.isSingleSided()){var r=e<0;this.computeSingleSidedBufferCurve(t,r,i)}else this.computeLineBufferCurve(t,i);return i.getCoordinates()},Mn.prototype.getBufferParameters=function(){return this._bufParams},Mn.prototype.simplifyTolerance=function(t){return t*this._bufParams.getSimplifyFactor()},Mn.prototype.getRingCurve=function(t,e,n){if(this._distance=n,t.length<=2)return this.getLineCurve(t,n);if(0===n)return Mn.copyCoordinates(t);var i=this.getSegGen(n);return this.computeRingBufferCurve(t,e,i),i.getCoordinates()},Mn.prototype.computeOffsetCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);if(e){var r=Ln.simplify(t,-i),o=r.length-1;n.initSideSegments(r[o],r[o-1],Se.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(r[s],!0)}else{var a=Ln.simplify(t,i),u=a.length-1;n.initSideSegments(a[0],a[1],Se.LEFT),n.addFirstSegment();for(var l=2;l<=u;l++)n.addNextSegment(a[l],!0)}n.addLastSegment()},Mn.prototype.getSegGen=function(t){return new Pn(this._precisionModel,this._bufParams,t)},Mn.prototype.interfaces_=function(){return[]},Mn.prototype.getClass=function(){return Mn},Mn.copyCoordinates=function(t){for(var e=new Array(t.length).fill(null),n=0;nr.getMaxY()||this.findStabbedSegments(t,i.getDirectedEdges(),e)}return e}if(3===arguments.length)if(T(arguments[2],xt)&&arguments[0]instanceof C&&arguments[1]instanceof ze){for(var o=arguments[0],s=arguments[1],a=arguments[2],u=s.getEdge().getCoordinates(),l=0;lthis._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)this._seg.p1.y||at.computeOrientation(this._seg.p0,this._seg.p1,o)===at.RIGHT)){var c=s.getDepth(Se.LEFT);this._seg.p0.equals(u[l])||(c=s.getDepth(Se.RIGHT));var p=new Gn(this._seg,c);a.add(p)}}else if(T(arguments[2],xt)&&arguments[0]instanceof C&&T(arguments[1],xt))for(var h=arguments[0],g=arguments[2],d=arguments[1].iterator();d.hasNext();){var y=d.next();y.isForward()&&this.findStabbedSegments(h,y,g)}},An.prototype.getDepth=function(t){var e=this.findStabbedSegments(t);return 0===e.size()?0:$e.min(e)._leftDepth},An.prototype.interfaces_=function(){return[]},An.prototype.getClass=function(){return An},Fn.DepthSegment.get=function(){return Gn},Object.defineProperties(An,Fn);var Gn=function(){this._upwardSeg=null,this._leftDepth=null;var t=arguments[0],e=arguments[1];this._upwardSeg=new dn(t),this._leftDepth=e};Gn.prototype.compareTo=function(t){var e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==n||0!=(n=-1*e._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(e._upwardSeg)},Gn.prototype.compareX=function(t,e){var n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)},Gn.prototype.toString=function(){return this._upwardSeg.toString()},Gn.prototype.interfaces_=function(){return[E]},Gn.prototype.getClass=function(){return Gn};var qn=function(t,e,n){this.p0=t||null,this.p1=e||null,this.p2=n||null};qn.prototype.area=function(){return qn.area(this.p0,this.p1,this.p2)},qn.prototype.signedArea=function(){return qn.signedArea(this.p0,this.p1,this.p2)},qn.prototype.interpolateZ=function(t){if(null===t)throw new m("Supplied point is null.");return qn.interpolateZ(t,this.p0,this.p1,this.p2)},qn.prototype.longestSideLength=function(){return qn.longestSideLength(this.p0,this.p1,this.p2)},qn.prototype.isAcute=function(){return qn.isAcute(this.p0,this.p1,this.p2)},qn.prototype.circumcentre=function(){return qn.circumcentre(this.p0,this.p1,this.p2)},qn.prototype.area3D=function(){return qn.area3D(this.p0,this.p1,this.p2)},qn.prototype.centroid=function(){return qn.centroid(this.p0,this.p1,this.p2)},qn.prototype.inCentre=function(){return qn.inCentre(this.p0,this.p1,this.p2)},qn.prototype.interfaces_=function(){return[]},qn.prototype.getClass=function(){return qn},qn.area=function(t,e,n){return Math.abs(((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2)},qn.signedArea=function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2},qn.det=function(t,e,n,i){return t*i-e*n},qn.interpolateZ=function(t,e,n,i){var r=e.x,o=e.y,s=n.x-r,a=i.x-r,u=n.y-o,l=i.y-o,c=s*l-a*u,p=t.x-r,h=t.y-o,f=(l*p-a*h)/c,g=(-u*p+s*h)/c;return e.z+f*(n.z-e.z)+g*(i.z-e.z)},qn.longestSideLength=function(t,e,n){var i=t.distance(e),r=e.distance(n),o=n.distance(t),s=i;return r>s&&(s=r),o>s&&(s=o),s},qn.isAcute=function(t,e,n){return!!Tn.isAcute(t,e,n)&&!!Tn.isAcute(e,n,t)&&!!Tn.isAcute(n,t,e)},qn.circumcentre=function(t,e,n){var i=n.x,r=n.y,o=t.x-i,s=t.y-r,a=e.x-i,u=e.y-r,l=2*qn.det(o,s,a,u),c=qn.det(s,o*o+s*s,u,a*a+u*u),p=qn.det(o,o*o+s*s,a,a*a+u*u);return new C(i-c/l,r+p/l)},qn.perpendicularBisector=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=new k(t.x+n/2,t.y+i/2,1),o=new k(t.x-i+n/2,t.y+n+i/2,1);return new k(r,o)},qn.angleBisector=function(t,e,n){var i=e.distance(t),r=i/(i+e.distance(n)),o=n.x-t.x,s=n.y-t.y;return new C(t.x+r*o,t.y+r*s)},qn.area3D=function(t,e,n){var i=e.x-t.x,r=e.y-t.y,o=e.z-t.z,s=n.x-t.x,a=n.y-t.y,u=n.z-t.z,l=r*u-o*a,c=o*s-i*u,p=i*a-r*s,h=l*l+c*c+p*p;return Math.sqrt(h)/2},qn.centroid=function(t,e,n){var i=(t.x+e.x+n.x)/3,r=(t.y+e.y+n.y)/3;return new C(i,r)},qn.inCentre=function(t,e,n){var i=e.distance(n),r=t.distance(n),o=t.distance(e),s=i+r+o,a=(i*t.x+r*e.x+o*n.x)/s,u=(i*t.y+r*e.y+o*n.y)/s;return new C(a,u)};var Bn=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new Nt;var t=arguments[0],e=arguments[1],n=arguments[2];this._inputGeom=t,this._distance=e,this._curveBuilder=n};Bn.prototype.addPoint=function(t){if(this._distance<=0)return null;var e=t.getCoordinates(),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,w.EXTERIOR,w.INTERIOR)},Bn.prototype.addPolygon=function(t){var e=this._distance,n=Se.LEFT;this._distance<0&&(e=-this._distance,n=Se.RIGHT);var i=t.getExteriorRing(),r=Lt.removeRepeatedPoints(i.getCoordinates());if(this._distance<0&&this.isErodedCompletely(i,this._distance))return null;if(this._distance<=0&&r.length<3)return null;this.addPolygonRing(r,e,n,w.EXTERIOR,w.INTERIOR);for(var o=0;o0&&this.isErodedCompletely(s,-this._distance)||this.addPolygonRing(a,e,Se.opposite(n),w.INTERIOR,w.EXTERIOR)}},Bn.prototype.isTriangleErodedCompletely=function(t,e){var n=new qn(t[0],t[1],t[2]),i=n.inCentre();return at.distancePointLine(i,n.p0,n.p1)=ee.MINIMUM_VALID_SIZE&&at.isCCW(t)&&(o=r,s=i,n=Se.opposite(n));var a=this._curveBuilder.getRingCurve(t,n,e);this.addCurve(a,o,s)},Bn.prototype.add=function(t){if(t.isEmpty())return null;t instanceof $t?this.addPolygon(t):t instanceof Kt?this.addLineString(t):t instanceof Qt?this.addPoint(t):(t instanceof te||t instanceof Xt||t instanceof ne||t instanceof zt)&&this.addCollection(t)},Bn.prototype.isErodedCompletely=function(t,e){var n=t.getCoordinates();if(n.length<4)return e<0;if(4===n.length)return this.isTriangleErodedCompletely(n,e);var i=t.getEnvelopeInternal(),r=Math.min(i.getHeight(),i.getWidth());return e<0&&2*Math.abs(e)>r},Bn.prototype.addCollection=function(t){for(var e=0;e=this._max)throw new i;var t=this._parent.getGeometryN(this._index++);return t instanceof zt?(this._subcollectionIterator=new Un(t),this._subcollectionIterator.next()):t},Un.prototype.remove=function(){throw new Error(this.getClass().getName())},Un.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},Un.prototype.interfaces_=function(){return[Et]},Un.prototype.getClass=function(){return Un},Un.isAtomic=function(t){return!(t instanceof zt)};var zn=function(){this._geom=null;var t=arguments[0];this._geom=t};zn.prototype.locate=function(t){return zn.locate(t,this._geom)},zn.prototype.interfaces_=function(){return[Vn]},zn.prototype.getClass=function(){return zn},zn.isPointInRing=function(t,e){return!!e.getEnvelopeInternal().intersects(t)&&at.isPointInRing(t,e.getCoordinates())},zn.containsPointInPolygon=function(t,e){if(e.isEmpty())return!1;var n=e.getExteriorRing();if(!zn.isPointInRing(t,n))return!1;for(var i=0;i=0;n--){var i=this._edgeList.get(n),r=i.getSym();null===e&&(e=r),null!==t&&r.setNext(t),t=i}e.setNext(t)},e.prototype.computeDepths=function(){if(1===arguments.length){var t=arguments[0],e=this.findIndex(t),n=t.getDepth(Se.LEFT),i=t.getDepth(Se.RIGHT),r=this.computeDepths(e+1,this._edgeList.size(),n);if(this.computeDepths(0,e,r)!==i)throw new we("depth mismatch at "+t.getCoordinate())}else if(3===arguments.length){for(var s=arguments[1],a=arguments[2],u=arguments[0];u=0;r--){var o=this._resultAreaEdgeList.get(r),s=o.getSym();switch(null===e&&o.getEdgeRing()===t&&(e=o),i){case this._SCANNING_FOR_INCOMING:if(s.getEdgeRing()!==t)continue;n=s,i=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(o.getEdgeRing()!==t)continue;n.setNextMin(o),i=this._SCANNING_FOR_INCOMING}}i===this._LINKING_TO_OUTGOING&&(et.isTrue(null!==e,"found null for first outgoing dirEdge"),et.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),n.setNextMin(e))},e.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var t=0,e=this.iterator();e.hasNext();)e.next().isInResult()&&t++;return t}if(1===arguments.length){for(var n=arguments[0],i=0,r=this.iterator();r.hasNext();)r.next().getEdgeRing()===n&&i++;return i}},e.prototype.getLabel=function(){return this._label},e.prototype.findCoveredLineEdges=function(){for(var t=w.NONE,e=this.iterator();e.hasNext();){var n=e.next(),i=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){t=w.INTERIOR;break}if(i.isInResult()){t=w.EXTERIOR;break}}}if(t===w.NONE)return null;for(var r=t,o=this.iterator();o.hasNext();){var s=o.next(),a=s.getSym();s.isLineEdge()?s.getEdge().setCovered(r===w.INTERIOR):(s.isInResult()&&(r=w.EXTERIOR),a.isInResult()&&(r=w.INTERIOR))}},e.prototype.computeLabelling=function(e){t.prototype.computeLabelling.call(this,e),this._label=new Pe(w.NONE);for(var n=this.iterator();n.hasNext();)for(var i=n.next().getEdge().getLabel(),r=0;r<2;r++){var o=i.getLocation(r);o!==w.INTERIOR&&o!==w.BOUNDARY||this._label.setLocation(r,w.INTERIOR)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Xn),kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createNode=function(t){return new Ge(t,new Yn)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Xe),jn=function t(){this._pts=null,this._orientation=null;var e=arguments[0];this._pts=e,this._orientation=t.orientation(e)};jn.prototype.compareTo=function(t){var e=t;return jn.compareOriented(this._pts,this._orientation,e._pts,e._orientation)},jn.prototype.interfaces_=function(){return[E]},jn.prototype.getClass=function(){return jn},jn.orientation=function(t){return 1===Lt.increasingDirection(t)},jn.compareOriented=function(t,e,n,i){for(var r=e?1:-1,o=i?1:-1,s=e?t.length:-1,a=i?n.length:-1,u=e?0:t.length-1,l=i?0:n.length-1;;){var c=t[u].compareTo(n[l]);if(0!==c)return c;var p=(u+=r)===s,h=(l+=o)===a;if(p&&!h)return-1;if(!p&&h)return 1;if(p&&h)return 0}};var Hn=function(){this._edges=new Nt,this._ocaMap=new p};Hn.prototype.print=function(t){t.print("MULTILINESTRING ( ");for(var e=0;e0&&t.print(","),t.print("(");for(var i=n.getCoordinates(),r=0;r0&&t.print(","),t.print(i[r].x+" "+i[r].y);t.println(")")}t.print(") ")},Hn.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())},Hn.prototype.findEdgeIndex=function(t){for(var e=0;e0||!e.coord.equals2D(i);r||n--;var o=new Array(n).fill(null),s=0;o[s++]=new C(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)o[s++]=this.edge.pts[a];return r&&(o[s]=e.coord),new ni(o,new Pe(this.edge._label))},Qn.prototype.add=function(t,e,n){var i=new Jn(t,e,n),r=this._nodeMap.get(i);return null!==r?r:(this._nodeMap.put(i,i),i)},Qn.prototype.isIntersection=function(t){for(var e=this.iterator();e.hasNext();)if(e.next().coord.equals(t))return!0;return!1},Qn.prototype.interfaces_=function(){return[]},Qn.prototype.getClass=function(){return Qn};var Zn=function(){};Zn.prototype.getChainStartIndices=function(t){var e=0,n=new Nt;n.add(new M(e));do{var i=this.findChainEnd(t,e);n.add(new M(i)),e=i}while(en?e:n},$n.prototype.getMinX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return ee&&(i=1),this._depth[t][n]=i}}},ti.prototype.getDelta=function(t){return this._depth[t][Se.RIGHT]-this._depth[t][Se.LEFT]},ti.prototype.getLocation=function(t,e){return this._depth[t][e]<=0?w.EXTERIOR:w.INTERIOR},ti.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},ti.prototype.add=function(){if(1===arguments.length)for(var t=arguments[0],e=0;e<2;e++)for(var n=1;n<3;n++){var i=t.getLocation(e,n);i!==w.EXTERIOR&&i!==w.INTERIOR||(this.isNull(e,n)?this._depth[e][n]=ti.depthAtLocation(i):this._depth[e][n]+=ti.depthAtLocation(i))}else if(3===arguments.length){var r=arguments[0],o=arguments[1];arguments[2]===w.INTERIOR&&this._depth[r][o]++}},ti.prototype.interfaces_=function(){return[]},ti.prototype.getClass=function(){return ti},ti.depthAtLocation=function(t){return t===w.EXTERIOR?0:t===w.INTERIOR?1:ti.NULL_VALUE},ei.NULL_VALUE.get=function(){return-1},Object.defineProperties(ti,ei);var ni=function(t){function e(){if(t.call(this),this.pts=null,this._env=null,this.eiList=new Qn(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new ti,this._depthDelta=0,1===arguments.length){var n=arguments[0];e.call(this,n,null)}else if(2===arguments.length){var i=arguments[0],r=arguments[1];this.pts=i,this._label=r}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDepth=function(){return this._depth},e.prototype.getCollapsedEdge=function(){var t=new Array(2).fill(null);return t[0]=this.pts[0],t[1]=this.pts[1],new e(t,Pe.toLineLabel(this._label))},e.prototype.isIsolated=function(){return this._isIsolated},e.prototype.getCoordinates=function(){return this.pts},e.prototype.setIsolated=function(t){this._isIsolated=t},e.prototype.setName=function(t){this._name=t},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;if(this.pts.length!==n.pts.length)return!1;for(var i=!0,r=!0,o=this.pts.length,s=0;s0?this.pts[0]:null;if(1===arguments.length){var t=arguments[0];return this.pts[t]}},e.prototype.print=function(t){t.print("edge "+this._name+": "),t.print("LINESTRING (");for(var e=0;e0&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(") "+this._label+" "+this._depthDelta)},e.prototype.computeIM=function(t){e.updateIM(this._label,t)},e.prototype.isCollapsed=function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},e.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},e.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},e.prototype.getDepthDelta=function(){return this._depthDelta},e.prototype.getNumPoints=function(){return this.pts.length},e.prototype.printReverse=function(t){t.print("edge "+this._name+": ");for(var e=this.pts.length-1;e>=0;e--)t.print(this.pts[e]+" ");t.println("")},e.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new $n(this)),this._mce},e.prototype.getEnvelope=function(){if(null===this._env){this._env=new j;for(var t=0;t0&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(") "+this._label+" "+this._depthDelta),t.toString()},e.prototype.isPointwiseEqual=function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;ei||this._maxyo;if(s)return!1;var a=this.intersectsToleranceSquare(t,e);return et.isTrue(!(s&&a),"Found bad envelope test"),a},ai.prototype.initCorners=function(t){this._minx=t.x-.5,this._maxx=t.x+.5,this._miny=t.y-.5,this._maxy=t.y+.5,this._corner[0]=new C(this._maxx,this._maxy),this._corner[1]=new C(this._minx,this._maxy),this._corner[2]=new C(this._minx,this._miny),this._corner[3]=new C(this._maxx,this._miny)},ai.prototype.intersects=function(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},ai.prototype.scale=function(t){return Math.round(t*this._scaleFactor)},ai.prototype.getCoordinate=function(){return this._originalPt},ai.prototype.copyScaled=function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)},ai.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var t=ai.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new j(this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv},ai.prototype.intersectsPixelClosure=function(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!(this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),this._li.hasIntersection()))))},ai.prototype.intersectsToleranceSquare=function(t,e){var n=!1,i=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!(this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),this._li.isProper()||(this._li.hasIntersection()&&(i=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),this._li.isProper()||n&&i||t.equals(this._pt)||e.equals(this._pt)))))},ai.prototype.addSnappedNode=function(t,e){var n=t.getCoordinate(e),i=t.getCoordinate(e+1);return!!this.intersects(n,i)&&(t.addIntersection(this.getCoordinate(),e),!0)},ai.prototype.interfaces_=function(){return[]},ai.prototype.getClass=function(){return ai},ui.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(ai,ui);var li=function(){this.tempEnv1=new j,this.selectedSegment=new dn};li.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var e=arguments[1];arguments[0].getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}},li.prototype.interfaces_=function(){return[]},li.prototype.getClass=function(){return li};var ci=function(){this._index=null;var t=arguments[0];this._index=t},pi={HotPixelSnapAction:{configurable:!0}};ci.prototype.snap=function(){if(1===arguments.length){var t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2],r=e.getSafeEnvelope(),o=new hi(e,n,i);return this._index.query(r,{interfaces_:function(){return[Ke]},visitItem:function(t){t.select(r,o)}}),o.isNodeAdded()}},ci.prototype.interfaces_=function(){return[]},ci.prototype.getClass=function(){return ci},pi.HotPixelSnapAction.get=function(){return hi},Object.defineProperties(ci,pi);var hi=function(t){function e(){t.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var e=arguments[0],n=arguments[1],i=arguments[2];this._hotPixel=e,this._parentEdge=n,this._hotPixelVertexIndex=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isNodeAdded=function(){return this._isNodeAdded},e.prototype.select=function(){if(2!==arguments.length)return t.prototype.select.apply(this,arguments);var n=arguments[1],i=arguments[0].getContext();if(null!==this._parentEdge&&i===this._parentEdge&&n===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(i,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(li),fi=function(){this._li=null,this._interiorIntersections=null;var t=arguments[0];this._li=t,this._interiorIntersections=new Nt};fi.prototype.processIntersections=function(t,e,n,i){if(t===n&&e===i)return null;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[i],a=n.getCoordinates()[i+1];if(this._li.computeIntersection(r,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var u=0;u=0;e--){try{t.bufferReducedPrecision(e)}catch(e){if(!(e instanceof we))throw e;t._saveException=e}if(null!==t._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var n=arguments[0],i=di.precisionScaleFactor(this._argGeom,this._distance,n),r=new fe(i);this.bufferFixedPrecision(r)}},di.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var t=this._argGeom.getFactory().getPrecisionModel();t.getType()===fe.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},di.prototype.setQuadrantSegments=function(t){this._bufParams.setQuadrantSegments(t)},di.prototype.bufferOriginalPrecision=function(){try{var t=new ii(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof $))throw t;this._saveException=t}},di.prototype.getResultGeometry=function(t){return this._distance=t,this.computeGeometry(),this._resultGeometry},di.prototype.setEndCapStyle=function(t){this._bufParams.setEndCapStyle(t)},di.prototype.interfaces_=function(){return[]},di.prototype.getClass=function(){return di},di.bufferOp=function(){if(2===arguments.length){var e=arguments[1];return new di(arguments[0]).getResultGeometry(e)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof ct&&"number"==typeof arguments[1]){var i=arguments[1],r=arguments[2],o=new di(arguments[0]);return o.setQuadrantSegments(r),o.getResultGeometry(i)}if(arguments[2]instanceof Cn&&arguments[0]instanceof ct&&"number"==typeof arguments[1]){var a=arguments[1];return new di(arguments[0],arguments[2]).getResultGeometry(a)}}else if(4===arguments.length){var c=arguments[1],p=arguments[2],h=arguments[3],f=new di(arguments[0]);return f.setQuadrantSegments(p),f.setEndCapStyle(h),f.getResultGeometry(c)}},di.precisionScaleFactor=function(t,e,n){var i=t.getEnvelopeInternal(),r=R.max(Math.abs(i.getMaxX()),Math.abs(i.getMaxY()),Math.abs(i.getMinX()),Math.abs(i.getMinY()))+2*(e>0?e:0),o=n-Math.trunc(Math.log(r)/Math.log(10)+1);return Math.pow(10,o)},yi.CAP_ROUND.get=function(){return Cn.CAP_ROUND},yi.CAP_BUTT.get=function(){return Cn.CAP_FLAT},yi.CAP_FLAT.get=function(){return Cn.CAP_FLAT},yi.CAP_SQUARE.get=function(){return Cn.CAP_SQUARE},yi.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(di,yi);var _i=function(){this._pt=[new C,new C],this._distance=v.NaN,this._isNull=!0};_i.prototype.getCoordinates=function(){return this._pt},_i.prototype.getCoordinate=function(t){return this._pt[t]},_i.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);ithis._distance&&this.initialize(e,n,i)}},_i.prototype.interfaces_=function(){return[]},_i.prototype.getClass=function(){return _i};var mi=function(){};mi.prototype.interfaces_=function(){return[]},mi.prototype.getClass=function(){return mi},mi.computeDistance=function(){if(arguments[2]instanceof _i&&arguments[0]instanceof Kt&&arguments[1]instanceof C)for(var e=arguments[1],n=arguments[2],i=arguments[0].getCoordinates(),r=new dn,o=0;o0||this._isIn?w.INTERIOR:w.EXTERIOR)},Si.prototype.interfaces_=function(){return[]},Si.prototype.getClass=function(){return Si};var Li=function t(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length)t.call(this,arguments[0],t.INSIDE_AREA,arguments[1]);else if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this._component=i,this._segIndex=r,this._pt=o}},bi={INSIDE_AREA:{configurable:!0}};Li.prototype.isInsideArea=function(){return this._segIndex===Li.INSIDE_AREA},Li.prototype.getCoordinate=function(){return this._pt},Li.prototype.getGeometryComponent=function(){return this._component},Li.prototype.getSegmentIndex=function(){return this._segIndex},Li.prototype.interfaces_=function(){return[]},Li.prototype.getClass=function(){return Li},bi.INSIDE_AREA.get=function(){return-1},Object.defineProperties(Li,bi);var wi=function(t){this._pts=t||null};wi.prototype.filter=function(t){t instanceof Qt&&this._pts.add(t)},wi.prototype.interfaces_=function(){return[Vt]},wi.prototype.getClass=function(){return wi},wi.getPoints=function(){if(1===arguments.length){var t=arguments[0];return t instanceof Qt?$e.singletonList(t):wi.getPoints(t,new Nt)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof Qt?n.add(e):e instanceof zt&&e.apply(new wi(n)),n}};var Oi=function(){this._locations=null;var t=arguments[0];this._locations=t};Oi.prototype.filter=function(t){(t instanceof Qt||t instanceof Kt||t instanceof $t)&&this._locations.add(new Li(t,0,t.getCoordinate()))},Oi.prototype.interfaces_=function(){return[Vt]},Oi.prototype.getClass=function(){return Oi},Oi.getLocations=function(t){var e=new Nt;return t.apply(new Oi(e)),e};var Ti=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Si,this._minDistanceLocation=null,this._minDistance=v.MAX_VALUE,2===arguments.length){var t=arguments[0],e=arguments[1];this._geom=[t,e],this._terminateDistance=0}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=n,this._geom[1]=i,this._terminateDistance=r}};Ti.prototype.computeContainmentDistance=function(){if(0===arguments.length){var t=new Array(2).fill(null);if(this.computeContainmentDistance(0,t),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=1-e,r=Ni.getPolygons(this._geom[e]);if(r.size()>0){var o=Oi.getLocations(this._geom[i]);if(this.computeContainmentDistance(o,r,n),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[i]=n[0],this._minDistanceLocation[e]=n[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&T(arguments[0],xt)&&T(arguments[1],xt)){for(var s=arguments[0],a=arguments[1],u=arguments[2],l=0;lthis._minDistance)return null;for(var i=t.getCoordinates(),r=e.getCoordinate(),o=0;othis._minDistance)return null;for(var p=u.getCoordinates(),h=l.getCoordinates(),f=0;fthis._distance&&this.initialize(e,n,i)}},Ri.prototype.interfaces_=function(){return[]},Ri.prototype.getClass=function(){return Ri};var Pi=function(){};Pi.prototype.interfaces_=function(){return[]},Pi.prototype.getClass=function(){return Pi},Pi.computeDistance=function(){if(arguments[2]instanceof Ri&&arguments[0]instanceof Kt&&arguments[1]instanceof C)for(var t=arguments[0],e=arguments[1],n=arguments[2],i=new dn,r=t.getCoordinates(),o=0;o1||t<=0)throw new m("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=t},Di.prototype.compute=function(t,e){this.computeOrientedDistance(t,e,this._ptDist),this.computeOrientedDistance(e,t,this._ptDist)},Di.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},Di.prototype.computeOrientedDistance=function(t,e,n){var i=new Ai(e);if(t.apply(i),n.setMaximum(i.getMaxPointDistance()),this._densifyFrac>0){var r=new Fi(e,this._densifyFrac);t.apply(r),n.setMaximum(r.getMaxPointDistance())}},Di.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},Di.prototype.interfaces_=function(){return[]},Di.prototype.getClass=function(){return Di},Di.distance=function(){if(2===arguments.length)return new Di(arguments[0],arguments[1]).distance();if(3===arguments.length){var r=arguments[2],o=new Di(arguments[0],arguments[1]);return o.setDensifyFraction(r),o.distance()}},Mi.MaxPointDistanceFilter.get=function(){return Ai},Mi.MaxDensifiedByFractionDistanceFilter.get=function(){return Fi},Object.defineProperties(Di,Mi);var Ai=function(){this._maxPtDist=new Ri,this._minPtDist=new Ri,this._euclideanDist=new Pi,this._geom=null;var t=arguments[0];this._geom=t};Ai.prototype.filter=function(t){this._minPtDist.initialize(),Pi.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Ai.prototype.getMaxPointDistance=function(){return this._maxPtDist},Ai.prototype.interfaces_=function(){return[ft]},Ai.prototype.getClass=function(){return Ai};var Fi=function(){this._maxPtDist=new Ri,this._minPtDist=new Ri,this._geom=null,this._numSubSegs=0;var t=arguments[0],e=arguments[1];this._geom=t,this._numSubSegs=Math.trunc(Math.round(1/e))};Fi.prototype.filter=function(t,e){if(0===e)return null;for(var n=t.getCoordinate(e-1),i=t.getCoordinate(e),r=(i.x-n.x)/this._numSubSegs,o=(i.y-n.y)/this._numSubSegs,s=0;sn){this._isValid=!1;var r=i.getCoordinates();this._errorLocation=r[1],this._errorIndicator=t.getFactory().createLineString(r),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+Z.toLineString(r[0],r[1])+")"}},Gi.prototype.isValid=function(){var t=Math.abs(this._bufDistance),e=Gi.MAX_DISTANCE_DIFF_FRAC*t;return this._minValidDistance=t-e,this._maxValidDistance=t+e,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),Gi.VERBOSE&&Y.out.println("Min Dist= "+this._minDistanceFound+" err= "+(1-this._minDistanceFound/this._bufDistance)+" Max Dist= "+this._maxDistanceFound+" err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},Gi.prototype.checkNegativeValid=function(){if(!(this._input instanceof $t||this._input instanceof ne||this._input instanceof zt))return null;var t=this.getPolygonLines(this._input);if(this.checkMinimumDistance(t,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(t,this._result,this._maxValidDistance)},Gi.prototype.getErrorIndicator=function(){return this._errorIndicator},Gi.prototype.checkMinimumDistance=function(t,e,n){var i=new Ti(t,e,n);if(this._minDistanceFound=i.distance(),this._minDistanceFound0&&t>e&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&t=2||this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},Bi.prototype.report=function(t){if(!Bi.VERBOSE)return null;Y.out.println("Check "+t+": "+(this._isValid?"passed":"FAILED"))},Bi.prototype.getErrorMessage=function(){return this._errorMsg},Bi.prototype.interfaces_=function(){return[]},Bi.prototype.getClass=function(){return Bi},Bi.isValidMsg=function(t,e,n){var i=new Bi(t,e,n);return i.isValid()?null:i.getErrorMessage()},Bi.isValid=function(t,e,n){return!!new Bi(t,e,n).isValid()},Vi.VERBOSE.get=function(){return!1},Vi.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(Bi,Vi);var Ui=function(){this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};Ui.prototype.getCoordinates=function(){return this._pts},Ui.prototype.size=function(){return this._pts.length},Ui.prototype.getCoordinate=function(t){return this._pts[t]},Ui.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},Ui.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:pn.octant(this.getCoordinate(t),this.getCoordinate(t+1))},Ui.prototype.setData=function(t){this._data=t},Ui.prototype.getData=function(){return this._data},Ui.prototype.toString=function(){return Z.toLineString(new ue(this._pts))},Ui.prototype.interfaces_=function(){return[hn]},Ui.prototype.getClass=function(){return Ui};var zi=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new Nt,this._intersectionCount=0,this._keepIntersections=!0;var t=arguments[0];this._li=t,this._interiorIntersection=null};zi.prototype.getInteriorIntersection=function(){return this._interiorIntersection},zi.prototype.setCheckEndSegmentsOnly=function(t){this._isCheckEndSegmentsOnly=t},zi.prototype.getIntersectionSegments=function(){return this._intSegments},zi.prototype.count=function(){return this._intersectionCount},zi.prototype.getIntersections=function(){return this._intersections},zi.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},zi.prototype.setKeepIntersections=function(t){this._keepIntersections=t},zi.prototype.processIntersections=function(t,e,n,i){if(!this._findAllIntersections&&this.hasIntersection())return null;if(t===n&&e===i)return null;if(this._isCheckEndSegmentsOnly&&!this.isEndSegment(t,e)&&!this.isEndSegment(n,i))return null;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[i],a=n.getCoordinates()[i+1];this._li.computeIntersection(r,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=r,this._intSegments[1]=o,this._intSegments[2]=s,this._intSegments[3]=a,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},zi.prototype.isEndSegment=function(t,e){return 0===e||e>=t.size()-2},zi.prototype.hasIntersection=function(){return null!==this._interiorIntersection},zi.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},zi.prototype.interfaces_=function(){return[Wn]},zi.prototype.getClass=function(){return zi},zi.createAllIntersectionsFinder=function(t){var e=new zi(t);return e.setFindAllIntersections(!0),e},zi.createAnyIntersectionFinder=function(t){return new zi(t)},zi.createIntersectionCounter=function(t){var e=new zi(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e};var Xi=function(){this._li=new rt,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var t=arguments[0];this._segStrings=t};Xi.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},Xi.prototype.getIntersections=function(){return this._segInt.getIntersections()},Xi.prototype.isValid=function(){return this.execute(),this._isValid},Xi.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},Xi.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new zi(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var t=new xn;if(t.setSegmentIntersector(this._segInt),t.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},Xi.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new we(this.getErrorMessage(),this._segInt.getInteriorIntersection())},Xi.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var t=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+Z.toLineString(t[0],t[1])+" and "+Z.toLineString(t[2],t[3])},Xi.prototype.interfaces_=function(){return[]},Xi.prototype.getClass=function(){return Xi},Xi.computeIntersections=function(t){var e=new Xi(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()};var Yi=function t(){this._nv=null;var e=arguments[0];this._nv=new Xi(t.toSegmentStrings(e))};Yi.prototype.checkValid=function(){this._nv.checkValid()},Yi.prototype.interfaces_=function(){return[]},Yi.prototype.getClass=function(){return Yi},Yi.toSegmentStrings=function(t){for(var e=new Nt,n=t.iterator();n.hasNext();){var i=n.next();e.add(new Ui(i.getCoordinates(),i))}return e},Yi.checkValid=function(t){new Yi(t).checkValid()};var ki=function(t){this._mapOp=t};ki.prototype.map=function(t){for(var e=new Nt,n=0;n0&&i<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)},Wi.prototype.interfaces_=function(){return[]},Wi.prototype.getClass=function(){return Wi};var Ki=function t(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new dn,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Kt&&"number"==typeof arguments[1]){var n=arguments[1];t.call(this,arguments[0].getCoordinates(),n)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var i=arguments[0],r=arguments[1];this._srcPts=i,this._isClosed=t.isClosed(i),this._snapTolerance=r}};Ki.prototype.snapVertices=function(t,e){for(var n=this._isClosed?t.size()-1:t.size(),i=0;i=0&&t.add(o+1,new C(r),!1)}},Ki.prototype.findSegmentIndexToSnap=function(t,e){for(var n=v.MAX_VALUE,i=-1,r=0;re&&(e=i)}return e}if(2===arguments.length){var r=arguments[0],o=arguments[1];return Math.min(Ji.computeOverlaySnapTolerance(r),Ji.computeOverlaySnapTolerance(o))}},Ji.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal();return Math.min(e.getHeight(),e.getWidth())*Ji.SNAP_PRECISION_FACTOR},Ji.snapToSelf=function(t,e,n){return new Ji(t).snapToSelf(e,n)},Qi.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(Ji,Qi);var Zi=function(t){function e(e,n,i){t.call(this),this._snapTolerance=e||null,this._snapPts=n||null,this._isSelfSnap=void 0!==i&&i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.snapLine=function(t,e){var n=new Ki(t,this._snapTolerance);return n.setAllowSnappingToSourceVertices(this._isSelfSnap),n.snapTo(e)},e.prototype.transformCoordinates=function(t,e){var n=t.toCoordinateArray(),i=this.snapLine(n,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(i)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Wi),$i=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};$i.prototype.getCommon=function(){return v.longBitsToDouble(this._commonBits)},$i.prototype.add=function(t){var e=v.doubleToLongBits(t);return this._isFirst?(this._commonBits=e,this._commonSignExp=$i.signExpBits(this._commonBits),this._isFirst=!1,null):$i.signExpBits(e)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=$i.numCommonMostSigMantissaBits(this._commonBits,e),void(this._commonBits=$i.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},$i.prototype.toString=function(){if(1===arguments.length){var t=arguments[0],e=v.longBitsToDouble(t),n="0000000000000000000000000000000000000000000000000000000000000000"+v.toBinaryString(t),i=n.substring(n.length-64);return i.substring(0,1)+" "+i.substring(1,12)+"(exp) "+i.substring(12)+" [ "+e+" ]"}},$i.prototype.interfaces_=function(){return[]},$i.prototype.getClass=function(){return $i},$i.getBit=function(t,e){return 0!=(t&1<>52},$i.zeroLowerBits=function(t,e){return t&~((1<=0;i--){if($i.getBit(t,i)!==$i.getBit(e,i))return n;n++}return 52};var tr=function(){this._commonCoord=null,this._ccFilter=new nr},er={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};tr.prototype.addCommonBits=function(t){var e=new ir(this._commonCoord);t.apply(e),t.geometryChanged()},tr.prototype.removeCommonBits=function(t){if(0===this._commonCoord.x&&0===this._commonCoord.y)return t;var e=new C(this._commonCoord);e.x=-e.x,e.y=-e.y;var n=new ir(e);return t.apply(n),t.geometryChanged(),t},tr.prototype.getCommonCoordinate=function(){return this._commonCoord},tr.prototype.add=function(t){t.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},tr.prototype.interfaces_=function(){return[]},tr.prototype.getClass=function(){return tr},er.CommonCoordinateFilter.get=function(){return nr},er.Translater.get=function(){return ir},Object.defineProperties(tr,er);var nr=function(){this._commonBitsX=new $i,this._commonBitsY=new $i};nr.prototype.filter=function(t){this._commonBitsX.add(t.x),this._commonBitsY.add(t.y)},nr.prototype.getCommonCoordinate=function(){return new C(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},nr.prototype.interfaces_=function(){return[ft]},nr.prototype.getClass=function(){return nr};var ir=function(){this.trans=null;var t=arguments[0];this.trans=t};ir.prototype.filter=function(t,e){var n=t.getOrdinate(e,0)+this.trans.x,i=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,i)},ir.prototype.isDone=function(){return!1},ir.prototype.isGeometryChanged=function(){return!0},ir.prototype.interfaces_=function(){return[Ut]},ir.prototype.getClass=function(){return ir};var rr=function(t,e){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=t,this._geom[1]=e,this.computeSnapTolerance()};rr.prototype.selfSnap=function(t){return new Ji(t).snapTo(t,this._snapTolerance)},rr.prototype.removeCommonBits=function(t){this._cbr=new tr,this._cbr.add(t[0]),this._cbr.add(t[1]);var e=new Array(2).fill(null);return e[0]=this._cbr.removeCommonBits(t[0].copy()),e[1]=this._cbr.removeCommonBits(t[1].copy()),e},rr.prototype.prepareResult=function(t){return this._cbr.addCommonBits(t),t},rr.prototype.getResultGeometry=function(t){var e=this.snap(this._geom),n=Lr.overlayOp(e[0],e[1],t);return this.prepareResult(n)},rr.prototype.checkValid=function(t){t.isValid()||Y.out.println("Snapped geometry is invalid")},rr.prototype.computeSnapTolerance=function(){this._snapTolerance=Ji.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},rr.prototype.snap=function(t){var e=this.removeCommonBits(t);return Ji.snap(e[0],e[1],this._snapTolerance)},rr.prototype.interfaces_=function(){return[]},rr.prototype.getClass=function(){return rr},rr.overlayOp=function(t,e,n){return new rr(t,e).getResultGeometry(n)},rr.union=function(t,e){return rr.overlayOp(t,e,Lr.UNION)},rr.intersection=function(t,e){return rr.overlayOp(t,e,Lr.INTERSECTION)},rr.symDifference=function(t,e){return rr.overlayOp(t,e,Lr.SYMDIFFERENCE)},rr.difference=function(t,e){return rr.overlayOp(t,e,Lr.DIFFERENCE)};var or=function(t,e){this._geom=new Array(2).fill(null),this._geom[0]=t,this._geom[1]=e};or.prototype.getResultGeometry=function(t){var e=null,n=!1,i=null;try{e=Lr.overlayOp(this._geom[0],this._geom[1],t),n=!0}catch(t){if(!(t instanceof $))throw t;i=t}if(!n)try{e=rr.overlayOp(this._geom[0],this._geom[1],t)}catch(t){throw t instanceof $?i:t}return e},or.prototype.interfaces_=function(){return[]},or.prototype.getClass=function(){return or},or.overlayOp=function(t,e,n){return new or(t,e).getResultGeometry(n)},or.union=function(t,e){return or.overlayOp(t,e,Lr.UNION)},or.intersection=function(t,e){return or.overlayOp(t,e,Lr.INTERSECTION)},or.symDifference=function(t,e){return or.overlayOp(t,e,Lr.SYMDIFFERENCE)},or.difference=function(t,e){return or.overlayOp(t,e,Lr.DIFFERENCE)};var sr=function(){this.mce=null,this.chainIndex=null;var t=arguments[0],e=arguments[1];this.mce=t,this.chainIndex=e};sr.prototype.computeIntersections=function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,t.mce,t.chainIndex,e)},sr.prototype.interfaces_=function(){return[]},sr.prototype.getClass=function(){return sr};var ar=function t(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var e=arguments[0],n=arguments[1];this._eventType=t.DELETE,this._xValue=e,this._insertEvent=n}else if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this._eventType=t.INSERT,this._label=i,this._xValue=r,this._obj=o}},ur={INSERT:{configurable:!0},DELETE:{configurable:!0}};ar.prototype.isDelete=function(){return this._eventType===ar.DELETE},ar.prototype.setDeleteEventIndex=function(t){this._deleteEventIndex=t},ar.prototype.getObject=function(){return this._obj},ar.prototype.compareTo=function(t){var e=t;return this._xValuee._xValue?1:this._eventTypee._eventType?1:0},ar.prototype.getInsertEvent=function(){return this._insertEvent},ar.prototype.isInsert=function(){return this._eventType===ar.INSERT},ar.prototype.isSameLabel=function(t){return null!==this._label&&this._label===t._label},ar.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},ar.prototype.interfaces_=function(){return[E]},ar.prototype.getClass=function(){return ar},ur.INSERT.get=function(){return 1},ur.DELETE.get=function(){return 2},Object.defineProperties(ar,ur);var lr=function(){};lr.prototype.interfaces_=function(){return[]},lr.prototype.getClass=function(){return lr};var cr=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._li=t,this._includeProper=e,this._recordIsolated=n};cr.prototype.isTrivialIntersection=function(t,e,n,i){if(t===n&&1===this._li.getIntersectionNum()){if(cr.isAdjacentSegments(e,i))return!0;if(t.isClosed()){var r=t.getNumPoints()-1;if(0===e&&i===r||0===i&&e===r)return!0}}return!1},cr.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},cr.prototype.setIsDoneIfProperInt=function(t){this._isDoneWhenProperInt=t},cr.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},cr.prototype.isBoundaryPointInternal=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next().getCoordinate();if(t.isIntersection(i))return!0}return!1},cr.prototype.hasProperIntersection=function(){return this._hasProper},cr.prototype.hasIntersection=function(){return this._hasIntersection},cr.prototype.isDone=function(){return this._isDone},cr.prototype.isBoundaryPoint=function(t,e){return!(null===e||!this.isBoundaryPointInternal(t,e[0])&&!this.isBoundaryPointInternal(t,e[1]))},cr.prototype.setBoundaryNodes=function(t,e){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=t,this._bdyNodes[1]=e},cr.prototype.addIntersections=function(t,e,n,i){if(t===n&&e===i)return null;this.numTests++;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[i],a=n.getCoordinates()[i+1];this._li.computeIntersection(r,o,s,a),this._li.hasIntersection()&&(this._recordIsolated&&(t.setIsolated(!1),n.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(t,e,n,i)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(t.addIntersections(this._li,e,0),n.addIntersections(this._li,i,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},cr.prototype.interfaces_=function(){return[]},cr.prototype.getClass=function(){return cr},cr.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var pr=function(t){function e(){t.call(this),this.events=new Nt,this.nOverlaps=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.prepareEvents=function(){$e.sort(this.events);for(var t=0;te||this._maxo?1:0},gr.prototype.interfaces_=function(){return[N]},gr.prototype.getClass=function(){return gr};var dr=function(t){function e(){t.call(this),this._item=null;var e=arguments[0],n=arguments[1],i=arguments[2];this._min=e,this._max=n,this._item=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;n.visitItem(this._item)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(hr),yr=function(t){function e(){t.call(this),this._node1=null,this._node2=null;var e=arguments[0],n=arguments[1];this._node1=e,this._node2=n,this.buildExtent(this._node1,this._node2)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.buildExtent=function(t,e){this._min=Math.min(t._min,e._min),this._max=Math.max(t._max,e._max)},e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;null!==this._node1&&this._node1.query(t,e,n),null!==this._node2&&this._node2.query(t,e,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(hr),_r=function(){this._leaves=new Nt,this._root=null,this._level=0};_r.prototype.buildTree=function(){$e.sort(this._leaves,new hr.NodeComparator);for(var t=this._leaves,e=null,n=new Nt;;){if(this.buildLevel(t,n),1===n.size())return n.get(0);e=t,t=n,n=e}},_r.prototype.insert=function(t,e,n){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new dr(t,e,n))},_r.prototype.query=function(t,e,n){this.init(),this._root.query(t,e,n)},_r.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},_r.prototype.printNode=function(t){Y.out.println(Z.toLineString(new C(t._min,this._level),new C(t._max,this._level)))},_r.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},_r.prototype.buildLevel=function(t,e){this._level++,e.clear();for(var n=0;n=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,e[0]),this.insertBoundaryPoint(this._argIndex,e[e.length-1])},e.prototype.getInvalidPoint=function(){return this._invalidPoint},e.prototype.getBoundaryPoints=function(){for(var t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null),n=0,i=t.iterator();i.hasNext();){var r=i.next();e[n++]=r.getCoordinate().copy()}return e},e.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},e.prototype.addSelfIntersectionNode=function(t,e,n){if(this.isBoundaryNode(t,e))return null;n===w.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n)},e.prototype.addPolygonRing=function(t,e,n){if(t.isEmpty())return null;var i=Lt.removeRepeatedPoints(t.getCoordinates());if(i.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=i[0],null;var r=e,o=n;at.isCCW(i)&&(r=n,o=e);var s=new ni(i,new Pe(this._argIndex,w.BOUNDARY,r,o));this._lineEdgeMap.put(t,s),this.insertEdge(s),this.insertPoint(this._argIndex,i[0],w.BOUNDARY)},e.prototype.insertPoint=function(t,e,n){var i=this._nodes.addNode(e),r=i.getLabel();null===r?i._label=new Pe(t,n):r.setLocation(t,n)},e.prototype.createEdgeSetIntersector=function(){return new pr},e.prototype.addSelfIntersectionNodes=function(t){for(var e=this._edges.iterator();e.hasNext();)for(var n=e.next(),i=n.getLabel().getLocation(t),r=n.eiList.iterator();r.hasNext();){var o=r.next();this.addSelfIntersectionNode(t,o.coord,i)}},e.prototype.add=function(){if(1!==arguments.length)return t.prototype.add.apply(this,arguments);var e=arguments[0];if(e.isEmpty())return null;if(e instanceof ne&&(this._useBoundaryDeterminationRule=!1),e instanceof $t)this.addPolygon(e);else if(e instanceof Kt)this.addLineString(e);else if(e instanceof Qt)this.addPoint(e);else if(e instanceof te)this.addCollection(e);else if(e instanceof Xt)this.addCollection(e);else if(e instanceof ne)this.addCollection(e);else{if(!(e instanceof zt))throw new Error(e.getClass().getName());this.addCollection(e)}},e.prototype.addCollection=function(t){for(var e=0;e50?(null===this._areaPtLocator&&(this._areaPtLocator=new vr(this._parentGeom)),this._areaPtLocator.locate(t)):this._ptLocator.locate(t,this._parentGeom)},e.prototype.findEdge=function(){if(1===arguments.length){var e=arguments[0];return this._lineEdgeMap.get(e)}return t.prototype.findEdge.apply(this,arguments)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.determineBoundary=function(t,e){return t.isInBoundary(e)?w.BOUNDARY:w.INTERIOR},e}(Ye),Cr=function(){if(this._li=new rt,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var t=arguments[0];this.setComputationPrecision(t.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new Nr(0,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=gt.OGC_SFS_BOUNDARY_RULE;e.getPrecisionModel().compareTo(n.getPrecisionModel())>=0?this.setComputationPrecision(e.getPrecisionModel()):this.setComputationPrecision(n.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Nr(0,e,i),this._arg[1]=new Nr(1,n,i)}else if(3===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2];r.getPrecisionModel().compareTo(o.getPrecisionModel())>=0?this.setComputationPrecision(r.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Nr(0,r,s),this._arg[1]=new Nr(1,o,s)}};Cr.prototype.getArgGeometry=function(t){return this._arg[t].getGeometry()},Cr.prototype.setComputationPrecision=function(t){this._resultPrecisionModel=t,this._li.setPrecisionModel(this._resultPrecisionModel)},Cr.prototype.interfaces_=function(){return[]},Cr.prototype.getClass=function(){return Cr};var Sr=function(){};Sr.prototype.interfaces_=function(){return[]},Sr.prototype.getClass=function(){return Sr},Sr.map=function(){if(arguments[0]instanceof ct&&T(arguments[1],Sr.MapOp)){for(var t=arguments[0],e=arguments[1],n=new Nt,i=0;i=t.size()?null:t.get(e)},Dr.union=function(t){return new Dr(t).union()},Mr.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(Dr,Mr);var Ar=function(){};Ar.prototype.interfaces_=function(){return[]},Ar.prototype.getClass=function(){return Ar},Ar.union=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Lr.createEmptyResult(Lr.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),or.overlayOp(t,e,Lr.UNION)},t.GeoJSONReader=Ne,t.GeoJSONWriter=Ce,t.OverlayOp=Lr,t.UnionOp=Ar,t.BufferOp=di,Object.defineProperty(t,"__esModule",{value:!0})}(exports)},"./node_modules/typed-function/lib/umd/typed-function.js":function(module){module.exports=function(){"use strict";function ok(){return!0}function notOk(){return!1}function undef(){}const NOT_TYPED_FUNCTION="Argument is not a typed-function.";function create(){function isPlainObject(x){return"object"==typeof x&&null!==x&&x.constructor===Object}const _types=[{name:"number",test:function(x){return"number"==typeof x}},{name:"string",test:function(x){return"string"==typeof x}},{name:"boolean",test:function(x){return"boolean"==typeof x}},{name:"Function",test:function(x){return"function"==typeof x}},{name:"Array",test:Array.isArray},{name:"Date",test:function(x){return x instanceof Date}},{name:"RegExp",test:function(x){return x instanceof RegExp}},{name:"Object",test:isPlainObject},{name:"null",test:function(x){return null===x}},{name:"undefined",test:function(x){return void 0===x}}],anyType={name:"any",test:ok,isAny:!0};let typeMap,typeList,nConversions=0,typed={createCount:0};function findType(typeName){const type=typeMap.get(typeName);if(type)return type;let message='Unknown type "'+typeName+'"';const name=typeName.toLowerCase();let otherName;for(otherName of typeList)if(otherName.toLowerCase()===name){message+='. Did you mean "'+otherName+'" ?';break}throw new TypeError(message)}function addTypes(types){let beforeSpec=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";const beforeIndex=beforeSpec?findType(beforeSpec).index:typeList.length,newTypes=[];for(let i=0;i{const type=typeMap.get(name);return!type.isAny&&type.test(value)}));return matches.length?matches:["any"]}function isTypedFunction(entity){return entity&&"function"==typeof entity&&"_typedFunctionData"in entity}function findSignature(fn,signature,options){if(!isTypedFunction(fn))throw new TypeError(NOT_TYPED_FUNCTION);const exact=options&&options.exact,params=parseSignature(Array.isArray(signature)?signature.join(","):signature),canonicalSignature=stringifyParams(params);if(!exact||canonicalSignature in fn.signatures){const match=fn._typedFunctionData.signatureMap.get(canonicalSignature);if(match)return match}const nParams=params.length;let remainingSignatures,candidate;if(exact){let name;for(name in remainingSignatures=[],fn.signatures)remainingSignatures.push(fn._typedFunctionData.signatureMap.get(name))}else remainingSignatures=fn._typedFunctionData.signatures;for(let i=0;i!haveTypes.has(wtype.name))))continue}filteredSignatures.push(possibility)}}if(remainingSignatures=filteredSignatures,0===remainingSignatures.length)break}for(candidate of remainingSignatures)if(candidate.params.length<=nParams)return candidate;throw new TypeError("Signature not found (signature: "+(fn.name||"unnamed")+"("+stringifyParams(params,", ")+"))")}function find(fn,signature,options){return findSignature(fn,signature,options).implementation}function convert(value,typeName){const type=findType(typeName);if(type.test(value))return value;const conversions=type.conversionsTo;if(0===conversions.length)throw new Error("There are no conversions to "+typeName+" defined.");for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:",";return params.map((p=>p.name)).join(separator)}function parseParam(param){const restParam=0===param.indexOf("..."),typeDefs=(restParam?param.length>3?param.slice(3):"any":param).split("|").map((s=>findType(s.trim())));let hasAny=!1,paramName=restParam?"...":"";return{types:typeDefs.map((function(type){return hasAny=type.isAny||hasAny,paramName+=type.name+"|",{name:type.name,typeIndex:type.index,test:type.test,isAny:type.isAny,conversion:null,conversionIndex:-1}})),name:paramName.slice(0,-1),hasAny:hasAny,hasConversion:!1,restParam:restParam}}function expandParam(param){const matchingConversions=availableConversions(param.types.map((t=>t.name)));let hasAny=param.hasAny,newName=param.name;const convertibleTypes=matchingConversions.map((function(conversion){const type=findType(conversion.from);return hasAny=type.isAny||hasAny,newName+="|"+conversion.from,{name:conversion.from,typeIndex:type.index,test:type.test,isAny:type.isAny,conversion:conversion,conversionIndex:conversion.index}}));return{types:param.types.concat(convertibleTypes),name:newName,hasAny:hasAny,hasConversion:convertibleTypes.length>0,restParam:param.restParam}}function paramTypeSet(param){return param.typeSet||(param.typeSet=new Set,param.types.forEach((type=>param.typeSet.add(type.name)))),param.typeSet}function parseSignature(rawSignature){const params=[];if("string"!=typeof rawSignature)throw new TypeError("Signatures must be strings");const signature=rawSignature.trim();if(""===signature)return params;const rawParams=signature.split(",");for(let i=0;i=varIndex+1}}return 0===params.length?function testArgs(args){return 0===args.length}:1===params.length?(test0=compileTest(params[0]),function testArgs(args){return test0(args[0])&&1===args.length}):2===params.length?(test0=compileTest(params[0]),test1=compileTest(params[1]),function testArgs(args){return test0(args[0])&&test1(args[1])&&2===args.length}):(tests=params.map(compileTest),function testArgs(args){for(let i=0;i{const paramSet=getTypeSetAtIndex(signature.params,index);let name;for(name of paramSet)typeSet.add(name)})),typeSet.has("any")?["any"]:Array.from(typeSet)}function createError(name,args,signatures){let err,expected;const _name=name||"unnamed";let index,matchingSignatures=signatures;for(index=0;index{const test=compileTest(getParamAtIndex(signature.params,index));(index0){const actualTypes=findTypeNames(args[index]);return err=new TypeError("Unexpected type of argument in function "+_name+" (expected: "+expected.join(" or ")+", actual: "+actualTypes.join(" | ")+", index: "+index+")"),err.data={category:"wrongType",fn:_name,index:index,actual:actualTypes,expected:expected},err}}else matchingSignatures=nextMatchingDefs}const lengths=matchingSignatures.map((function(signature){return hasRestParam(signature.params)?1/0:signature.params.length}));if(args.lengthmaxLength)return err=new TypeError("Too many arguments in function "+_name+" (expected: "+maxLength+", actual: "+args.length+")"),err.data={category:"tooManyArgs",fn:_name,index:args.length,expectedLength:maxLength},err;const argTypes=[];for(let i=0;i0)return 1;const convDiff=getLowestConversionIndex(param1)-getLowestConversionIndex(param2);return convDiff<0?-1:convDiff>0?1:0}function compareSignatures(signature1,signature2){const pars1=signature1.params,pars2=signature2.params,last1=last(pars1),last2=last(pars2),hasRest1=hasRestParam(pars1),hasRest2=hasRestParam(pars2);if(hasRest1&&last1.hasAny){if(!hasRest2||!last2.hasAny)return 1}else if(hasRest2&&last2.hasAny)return-1;let par,any1=0,conv1=0;for(par of pars1)par.hasAny&&++any1,par.hasConversion&&++conv1;let any2=0,conv2=0;for(par of pars2)par.hasAny&&++any2,par.hasConversion&&++conv2;if(any1!==any2)return any1-any2;if(hasRest1&&last1.hasConversion){if(!hasRest2||!last2.hasConversion)return 1}else if(hasRest2&&last2.hasConversion)return-1;if(conv1!==conv2)return conv1-conv2;if(hasRest1){if(!hasRest2)return 1}else if(hasRest2)return-1;const lengthCriterion=(pars1.length-pars2.length)*(hasRest1?-1:1);if(0!==lengthCriterion)return lengthCriterion;const comparisons=[];let c,tc=0;for(let i=0;i1&&types.sort(((t1,t2)=>t1.index-t2.index));let matches=types[0].conversionsTo;if(1===typeNames.length)return matches;matches=matches.concat([]);const knownTypes=new Set(typeNames);for(let i=1;ip.hasConversion))){const restParam=hasRestParam(params),compiledConversions=params.map(compileArgConversion);fnConvert=function convertArgs(){const args=[],last=restParam?arguments.length-1:arguments.length;for(let i=0;it.name)).join("|"),hasAny:exactTypes.some((t=>t.isAny)),hasConversion:!1,restParam:!0}),resultingParams.push(param)}else resultingParams=param.types.map((function(type){return{types:[type],name:type.name,hasAny:type.isAny,hasConversion:type.conversion,restParam:!1}}));return flatMap(resultingParams,(function(nextParam){return _splitParams(params,index+1,paramsSoFar.concat([nextParam]))}))}return[paramsSoFar]}return _splitParams(params,0,[])}function conflicting(params1,params2){const ii=Math.max(params1.length,params2.length);for(let i=0;i=len1:restParam2?len1>=len2:len1===len2}function clearResolutions(functionList){return functionList.map((fn=>isReferToSelf(fn)?referToSelf(fn.referToSelf.callback):isReferTo(fn)?makeReferTo(fn.referTo.references,fn.referTo.callback):fn))}function collectResolutions(references,functionList,signatureMap){const resolvedReferences=[];let reference;for(reference of references){let resolution=signatureMap[reference];if("number"!=typeof resolution)throw new TypeError('No definition for referenced signature "'+reference+'"');if(resolution=functionList[resolution],"function"!=typeof resolution)return!1;resolvedReferences.push(resolution)}return resolvedReferences}function resolveReferences(functionList,signatureMap,self){const resolvedFunctions=clearResolutions(functionList),isResolved=new Array(resolvedFunctions.length).fill(!1);let leftUnresolved=!0;for(;leftUnresolved;){leftUnresolved=!1;let nothingResolved=!0;for(let i=0;i{const fn=signaturesMap[signature];if(deprecatedThisRegex.test(fn.toString()))throw new SyntaxError("Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.")}))}function createTypedFunction(name,rawSignaturesMap){if(typed.createCount++,0===Object.keys(rawSignaturesMap).length)throw new SyntaxError("No signatures provided");typed.warnAgainstDeprecatedThis&&validateDeprecatedThis(rawSignaturesMap);const parsedParams=[],originalFunctions=[],signaturesMap={},preliminarySignatures=[];let signature;for(signature in rawSignaturesMap){if(!Object.prototype.hasOwnProperty.call(rawSignaturesMap,signature))continue;const params=parseSignature(signature);if(!params)continue;parsedParams.forEach((function(pp){if(conflicting(pp,params))throw new TypeError('Conflicting signatures "'+stringifyParams(pp)+'" and "'+stringifyParams(params)+'".')})),parsedParams.push(params);const functionIndex=originalFunctions.length;originalFunctions.push(rawSignaturesMap[signature]);const conversionParams=params.map(expandParam);let sp;for(sp of splitParams(conversionParams)){const spName=stringifyParams(sp);preliminarySignatures.push({params:sp,name:spName,fn:functionIndex}),sp.every((p=>!p.hasConversion))&&(signaturesMap[spName]=functionIndex)}}preliminarySignatures.sort(compareSignatures);const resolvedFunctions=resolveReferences(originalFunctions,signaturesMap,theTypedFn);let s;for(s in signaturesMap)Object.prototype.hasOwnProperty.call(signaturesMap,s)&&(signaturesMap[s]=resolvedFunctions[signaturesMap[s]]);const signatures=[],internalSignatureMap=new Map;for(s of preliminarySignatures)internalSignatureMap.has(s.name)||(s.fn=resolvedFunctions[s.fn],signatures.push(s),internalSignatureMap.set(s.name,s));const ok0=signatures[0]&&signatures[0].params.length<=2&&!hasRestParam(signatures[0].params),ok1=signatures[1]&&signatures[1].params.length<=2&&!hasRestParam(signatures[1].params),ok2=signatures[2]&&signatures[2].params.length<=2&&!hasRestParam(signatures[2].params),ok3=signatures[3]&&signatures[3].params.length<=2&&!hasRestParam(signatures[3].params),ok4=signatures[4]&&signatures[4].params.length<=2&&!hasRestParam(signatures[4].params),ok5=signatures[5]&&signatures[5].params.length<=2&&!hasRestParam(signatures[5].params),allOk=ok0&&ok1&&ok2&&ok3&&ok4&&ok5;for(let i=0;is.test)),fns=signatures.map((s=>s.implementation)),generic=function generic(){for(let i=iStart;istringifyParams(parseSignature(s)))),callback=last(arguments);if("function"!=typeof callback)throw new TypeError("Callback function expected as last argument");return makeReferTo(references,callback)}function makeReferTo(references,callback){return{referTo:{references:references,callback:callback}}}function referToSelf(callback){if("function"!=typeof callback)throw new TypeError("Callback function expected as first argument");return{referToSelf:{callback:callback}}}function isReferTo(objectOrFn){return objectOrFn&&"object"==typeof objectOrFn.referTo&&Array.isArray(objectOrFn.referTo.references)&&"function"==typeof objectOrFn.referTo.callback}function isReferToSelf(objectOrFn){return objectOrFn&&"object"==typeof objectOrFn.referToSelf&&"function"==typeof objectOrFn.referToSelf.callback}function checkName(nameSoFar,newName){if(!nameSoFar)return newName;if(newName&&newName!==nameSoFar){const err=new Error("Function names do not match (expected: "+nameSoFar+", actual: "+newName+")");throw err.data={actual:newName,expected:nameSoFar},err}return nameSoFar}function getObjectName(obj){let name;for(const key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&(isTypedFunction(obj[key])||"string"==typeof obj[key].signature)&&(name=checkName(name,obj[key].name));return name}function mergeSignatures(dest,source){let key;for(key in source)if(Object.prototype.hasOwnProperty.call(source,key)){if(key in dest&&source[key]!==dest[key]){const err=new Error('Signature "'+key+'" is defined twice');throw err.data={signature:key,sourceFunction:source[key],destFunction:dest[key]},err}dest[key]=source[key]}}clear(),addTypes(_types);const saveTyped=typed;function _validateConversion(conversion){if(!conversion||"string"!=typeof conversion.from||"string"!=typeof conversion.to||"function"!=typeof conversion.convert)throw new TypeError("Object with properties {from: string, to: string, convert: function} expected");if(conversion.to===conversion.from)throw new SyntaxError('Illegal to define conversion from "'+conversion.from+'" to itself.')}return typed=function(maybeName){const named="string"==typeof maybeName;let name=named?maybeName:"";const allSignatures={};for(let i=named?1:0;ic.from===conversion.from));if(!existingConversion)throw new Error("Attempt to remove nonexistent conversion from "+conversion.from+" to "+conversion.to);if(existingConversion.convert!==conversion.convert)throw new Error("Conversion to remove does not match existing conversion");const index=to.conversionsTo.indexOf(existingConversion);to.conversionsTo.splice(index,1)},typed.resolve=function(tf,argList){if(!isTypedFunction(tf))throw new TypeError(NOT_TYPED_FUNCTION);const sigs=tf._typedFunctionData.signatures;for(let i=0;i!allowedOptionNames.includes(optionName)));if(unknownOptionName)throw new Error('Object "'+objectName+'" contains an unknown option "'+unknownOptionName+'"');var illegalOptionName=allowedOptionNames.find((allowedOptionName=>Object.prototype[allowedOptionName]&&!optionNames.includes(allowedOptionName)));if(illegalOptionName)throw new Error('Object "'+objectName+'" contains an inherited option "'+illegalOptionName+'" which is not defined in the object itself but in its prototype. Only plain objects are allowed. Please remove the option from the prototype or override it with a value "undefined".');return options}},validateOptions.workerOptsNames=["credentials","name","type"],validateOptions.forkOptsNames=["cwd","detached","env","execPath","execArgv","gid","serialization","signal","killSignal","silent","stdio","uid","windowsVerbatimArguments","timeout"],validateOptions.workerThreadOptsNames=["argv","env","eval","execArgv","stdin","stdout","stderr","workerData","trackUnmanagedFds","transferList","resourceLimits","name"]),validateOptions}function requireEmbeddedWorker(){return hasRequiredEmbeddedWorker?embeddedWorker:(hasRequiredEmbeddedWorker=1,embeddedWorker='!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).worker=n()}(this,(function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={};var t=function(e,n){this.message=e,this.transfer=n};return function(e){var n=t,r={exit:function(){}};if("undefined"!=typeof self&&"function"==typeof postMessage&&"function"==typeof addEventListener)r.on=function(e,n){addEventListener(e,(function(e){n(e.data)}))},r.send=function(e){postMessage(e)};else{if("undefined"==typeof process)throw new Error("Script must be executed as a worker");var o;try{o=require("worker_threads")}catch(e){if("object"!=typeof e||null===e||"MODULE_NOT_FOUND"!==e.code)throw e}if(o&&null!==o.parentPort){var i=o.parentPort;r.send=i.postMessage.bind(i),r.on=i.on.bind(i),r.exit=process.exit.bind(process)}else r.on=process.on.bind(process),r.send=function(e){process.send(e)},r.on("disconnect",(function(){process.exit(1)})),r.exit=process.exit.bind(process)}function s(e){return Object.getOwnPropertyNames(e).reduce((function(n,t){return Object.defineProperty(n,t,{value:e[t],enumerable:!0})}),{})}function d(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}r.methods={},r.methods.run=function(e,n){var t=new Function("return ("+e+").apply(null, arguments);");return t.apply(t,n)},r.methods.methods=function(){return Object.keys(r.methods)},r.terminationHandler=void 0,r.cleanupAndExit=function(e){var n=function(){r.exit(e)};if(!r.terminationHandler)return n();var t=r.terminationHandler(e);d(t)?t.then(n,n):n()};var u=null;r.on("message",(function(e){if("__workerpool-terminate__"===e)return r.cleanupAndExit(0);try{var t=r.methods[e.method];if(!t)throw new Error(\'Unknown method "\'+e.method+\'"\');u=e.id;var o=t.apply(t,e.params);d(o)?o.then((function(t){t instanceof n?r.send({id:e.id,result:t.message,error:null},t.transfer):r.send({id:e.id,result:t,error:null}),u=null})).catch((function(n){r.send({id:e.id,result:null,error:s(n)}),u=null})):(o instanceof n?r.send({id:e.id,result:o.message,error:null},o.transfer):r.send({id:e.id,result:o,error:null}),u=null)}catch(n){r.send({id:e.id,result:null,error:s(n)})}})),r.register=function(e,n){if(e)for(var t in e)e.hasOwnProperty(t)&&(r.methods[t]=e[t]);n&&(r.terminationHandler=n.onTerminate),r.send("ready")},r.emit=function(e){if(u){if(e instanceof n)return void r.send({id:u,isEvent:!0,payload:e.message},e.transfer);r.send({id:u,isEvent:!0,payload:e})}},e.add=r.register,e.emit=r.emit}(n),e(n)}));\n//# sourceMappingURL=worker.min.js.map\n')}function requireWorkerHandler(){if(hasRequiredWorkerHandler)return WorkerHandler.exports;hasRequiredWorkerHandler=1;var{Promise:Promise}=require_Promise(),environment=environmentExports;const{validateOptions:validateOptions,forkOptsNames:forkOptsNames,workerThreadOptsNames:workerThreadOptsNames,workerOptsNames:workerOptsNames}=requireValidateOptions();var TERMINATE_METHOD_ID="__workerpool-terminate__";function ensureWorkerThreads(){var WorkerThreads=tryRequireWorkerThreads();if(!WorkerThreads)throw new Error("WorkerPool: workerType = 'thread' is not supported, Node >= 11.7.0 required");return WorkerThreads}function ensureWebWorker(){if("function"!=typeof Worker&&("object"!=typeof Worker||"function"!=typeof Worker.prototype.constructor))throw new Error("WorkerPool: Web Workers not supported")}function tryRequireWorkerThreads(){try{return __webpack_require__("?5693")}catch(error){if("object"==typeof error&&null!==error&&"MODULE_NOT_FOUND"===error.code)return null;throw error}}function getDefaultWorker(){if("browser"===environment.platform){if("undefined"==typeof Blob)throw new Error("Blob not supported by the browser");if(!window.URL||"function"!=typeof window.URL.createObjectURL)throw new Error("URL.createObjectURL not supported by the browser");var blob=new Blob([requireEmbeddedWorker()],{type:"text/javascript"});return window.URL.createObjectURL(blob)}return"//worker.js"}function setupWorker(script,options){if("web"===options.workerType)return ensureWebWorker(),setupBrowserWorker(script,options.workerOpts,Worker);if("thread"===options.workerType)return setupWorkerThreadWorker(script,WorkerThreads=ensureWorkerThreads(),options);if("process"!==options.workerType&&options.workerType){if("browser"===environment.platform)return ensureWebWorker(),setupBrowserWorker(script,options.workerOpts,Worker);var WorkerThreads=tryRequireWorkerThreads();return WorkerThreads?setupWorkerThreadWorker(script,WorkerThreads,options):setupProcessWorker(script,resolveForkOptions(options),__webpack_require__("?ccfa"))}return setupProcessWorker(script,resolveForkOptions(options),__webpack_require__("?ccfa"))}function setupBrowserWorker(script,workerOpts,Worker){validateOptions(workerOpts,workerOptsNames,"workerOpts");var worker=new Worker(script,workerOpts);return worker.isBrowserWorker=!0,worker.on=function(event,callback){this.addEventListener(event,(function(message){callback(message.data)}))},worker.send=function(message,transfer){this.postMessage(message,transfer)},worker}function setupWorkerThreadWorker(script,WorkerThreads,options){validateOptions(options?.workerThreadOpts,workerThreadOptsNames,"workerThreadOpts");var worker=new WorkerThreads.Worker(script,{stdout:options?.emitStdStreams??!1,stderr:options?.emitStdStreams??!1,...options?.workerThreadOpts});return worker.isWorkerThread=!0,worker.send=function(message,transfer){this.postMessage(message,transfer)},worker.kill=function(){return this.terminate(),!0},worker.disconnect=function(){this.terminate()},options?.emitStdStreams&&(worker.stdout.on("data",(data=>worker.emit("stdout",data))),worker.stderr.on("data",(data=>worker.emit("stderr",data)))),worker}function setupProcessWorker(script,options,child_process){validateOptions(options.forkOpts,forkOptsNames,"forkOpts");var worker=child_process.fork(script,options.forkArgs,options.forkOpts),send=worker.send;return worker.send=function(message){return send.call(worker,message)},options.emitStdStreams&&(worker.stdout.on("data",(data=>worker.emit("stdout",data))),worker.stderr.on("data",(data=>worker.emit("stderr",data)))),worker.isChildProcess=!0,worker}function resolveForkOptions(opts){opts=opts||{};var processExecArgv=process.execArgv.join(" "),inspectorActive=-1!==processExecArgv.indexOf("--inspect"),debugBrk=-1!==processExecArgv.indexOf("--debug-brk"),execArgv=[];return inspectorActive&&(execArgv.push("--inspect="+opts.debugPort),debugBrk&&execArgv.push("--debug-brk")),process.execArgv.forEach((function(arg){arg.indexOf("--max-old-space-size")>-1&&execArgv.push(arg)})),Object.assign({},opts,{forkArgs:opts.forkArgs,forkOpts:Object.assign({},opts.forkOpts,{execArgv:(opts.forkOpts&&opts.forkOpts.execArgv||[]).concat(execArgv),stdio:opts.emitStdStreams?"pipe":void 0})})}function objectToError(obj){for(var temp=new Error(""),props=Object.keys(obj),i=0;i0},WorkerHandler$1.prototype.terminate=function(force,callback){var me=this;if(force){for(var id in this.processing)void 0!==this.processing[id]&&this.processing[id].resolver.reject(new Error("Worker terminated"));this.processing=Object.create(null)}if("function"==typeof callback&&(this.terminationHandler=callback),this.busy())this.terminating=!0;else{var cleanup=function(err){if(me.terminated=!0,me.cleaning=!1,null!=me.worker&&me.worker.removeAllListeners&&me.worker.removeAllListeners("message"),me.worker=null,me.terminating=!1,me.terminationHandler)me.terminationHandler(err,me);else if(err)throw err};if(this.worker){if("function"==typeof this.worker.kill){if(this.worker.killed)return void cleanup(new Error("worker already killed!"));var cleanExitTimeout=setTimeout((function(){me.worker&&me.worker.kill()}),this.workerTerminateTimeout);return this.worker.once("exit",(function(){clearTimeout(cleanExitTimeout),me.worker&&(me.worker.killed=!0),cleanup()})),this.worker.ready?this.worker.send(TERMINATE_METHOD_ID):this.requestQueue.push({message:TERMINATE_METHOD_ID}),void(this.cleaning=!0)}if("function"!=typeof this.worker.terminate)throw new Error("Failed to terminate worker");this.worker.terminate(),this.worker.killed=!0}cleanup()}},WorkerHandler$1.prototype.terminateAndNotify=function(force,timeout){var resolver=Promise.defer();return timeout&&resolver.promise.timeout(timeout),this.terminate(force,(function(err,worker){err?resolver.reject(err):resolver.resolve(worker)})),resolver.promise},WorkerHandler.exports=WorkerHandler$1,WorkerHandler.exports._tryRequireWorkerThreads=tryRequireWorkerThreads,WorkerHandler.exports._setupProcessWorker=setupProcessWorker,WorkerHandler.exports._setupBrowserWorker=setupBrowserWorker,WorkerHandler.exports._setupWorkerThreadWorker=setupWorkerThreadWorker,WorkerHandler.exports.ensureWorkerThreads=ensureWorkerThreads,WorkerHandler.exports}function requireDebugPortAllocator(){if(hasRequiredDebugPortAllocator)return debugPortAllocator;hasRequiredDebugPortAllocator=1;var MAX_PORTS=65535;function DebugPortAllocator(){this.ports=Object.create(null),this.length=0}return debugPortAllocator=DebugPortAllocator,DebugPortAllocator.prototype.nextAvailableStartingAt=function(starting){for(;!0===this.ports[starting];)starting++;if(starting>=MAX_PORTS)throw new Error("WorkerPool debug port limit reached: "+starting+">= "+MAX_PORTS);return this.ports[starting]=!0,this.length++,starting},DebugPortAllocator.prototype.releasePort=function(port){delete this.ports[port],this.length--},debugPortAllocator}function requirePool(){if(hasRequiredPool)return Pool_1;hasRequiredPool=1;var{Promise:Promise}=require_Promise(),WorkerHandler=requireWorkerHandler(),environment=environmentExports,DEBUG_PORT_ALLOCATOR=new(requireDebugPortAllocator());function Pool(script,options){"string"==typeof script?this.script=script||null:(this.script=null,options=script),this.workers=[],this.tasks=[],options=options||{},this.forkArgs=Object.freeze(options.forkArgs||[]),this.forkOpts=Object.freeze(options.forkOpts||{}),this.workerOpts=Object.freeze(options.workerOpts||{}),this.workerThreadOpts=Object.freeze(options.workerThreadOpts||{}),this.debugPortStart=options.debugPortStart||43210,this.nodeWorker=options.nodeWorker,this.workerType=options.workerType||options.nodeWorker||"auto",this.maxQueueSize=options.maxQueueSize||1/0,this.workerTerminateTimeout=options.workerTerminateTimeout||1e3,this.onCreateWorker=options.onCreateWorker||(()=>null),this.onTerminateWorker=options.onTerminateWorker||(()=>null),this.emitStdStreams=options.emitStdStreams||!1,options&&"maxWorkers"in options?(validateMaxWorkers(options.maxWorkers),this.maxWorkers=options.maxWorkers):this.maxWorkers=Math.max((environment.cpus||4)-1,1),options&&"minWorkers"in options&&("max"===options.minWorkers?this.minWorkers=this.maxWorkers:(validateMinWorkers(options.minWorkers),this.minWorkers=options.minWorkers,this.maxWorkers=Math.max(this.minWorkers,this.maxWorkers)),this._ensureMinWorkers()),this._boundNext=this._next.bind(this),"thread"===this.workerType&&WorkerHandler.ensureWorkerThreads()}function validateMaxWorkers(maxWorkers){if(!isNumber(maxWorkers)||!isInteger(maxWorkers)||maxWorkers<1)throw new TypeError("Option maxWorkers must be an integer number >= 1")}function validateMinWorkers(minWorkers){if(!isNumber(minWorkers)||!isInteger(minWorkers)||minWorkers<0)throw new TypeError("Option minWorkers must be an integer number >= 0")}function isNumber(value){return"number"==typeof value}function isInteger(value){return Math.round(value)==value}return Pool.prototype.exec=function(method,params,options){if(params&&!Array.isArray(params))throw new TypeError('Array expected as argument "params"');if("string"==typeof method){var resolver=Promise.defer();if(this.tasks.length>=this.maxQueueSize)throw new Error("Max queue size of "+this.maxQueueSize+" reached");var tasks=this.tasks,task={method:method,params:params,resolver:resolver,timeout:null,options:options};tasks.push(task);var originalTimeout=resolver.promise.timeout;return resolver.promise.timeout=function timeout(delay){return-1!==tasks.indexOf(task)?(task.timeout=delay,resolver.promise):originalTimeout.call(resolver.promise,delay)},this._next(),resolver.promise}if("function"==typeof method)return this.exec("run",[String(method),params],options);throw new TypeError('Function or string expected as argument "method"')},Pool.prototype.proxy=function(){if(arguments.length>0)throw new Error("No arguments expected");var pool=this;return this.exec("methods").then((function(methods){var proxy={};return methods.forEach((function(method){proxy[method]=function(){return pool.exec(method,Array.prototype.slice.call(arguments))}})),proxy}))},Pool.prototype._next=function(){if(this.tasks.length>0){var worker=this._getWorker();if(worker){var me=this,task=this.tasks.shift();if(task.resolver.promise.pending){var promise=worker.exec(task.method,task.params,task.resolver,task.options).then(me._boundNext).catch((function(){if(worker.terminated)return me._removeWorker(worker)})).then((function(){me._next()}));"number"==typeof task.timeout&&promise.timeout(task.timeout)}else me._next()}}},Pool.prototype._getWorker=function(){for(var workers=this.workers,i=0;i"indeterminate"===$variant?(0,styled_components_browser_esm.iv)(["animation:"," 1.4s linear infinite;"],indeterminate):(0,styled_components_browser_esm.iv)(["transform:rotate(-90deg);"]))),SrOnlyOutput=styled_components_browser_esm.ZP.output.withConfig({displayName:"CircularProgress__SrOnlyOutput",componentId:"sc-hib054-1"})(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]),TrackCircle=styled_components_browser_esm.ZP.circle.withConfig({displayName:"CircularProgress__TrackCircle",componentId:"sc-hib054-2"})([""]),ProgressCircle=styled_components_browser_esm.ZP.circle.withConfig({displayName:"CircularProgress__ProgressCircle",componentId:"sc-hib054-3"})([""]),CircularProgress=(0,react.forwardRef)((function CircularProgress({variant:variant="indeterminate",value:value=null,size:size=48,color:color="primary",...rest},ref){const progress=Math.round(value),trackStyle={},props={...rest,ref:ref,$variant:variant},token=(color=>CircularProgress_tokens_namespaceObject[color]?CircularProgress_tokens_namespaceObject[color]:{background:"transparent",entities:{progress:{background:color}}})(color),[srProgress,setSrProgress]=(0,react.useState)(0),circumference=2*Math.PI*22;"determinate"===variant&&(trackStyle.stroke=circumference.toFixed(3),trackStyle.strokeDashoffset=`${((100-progress)/100*circumference).toFixed(3)}px`,props["aria-valuenow"]=progress,void 0!==value&&(props["aria-valuenow"]=progress,props["aria-valuemin"]=0,props["aria-valuemax"]=100)),(0,react.useEffect)((()=>{"indeterminate"!==variant&&(progress>=25&&progress<50?setSrProgress(25):progress>=50&&progress<75?setSrProgress(50):progress>=75&&progress<100?setSrProgress(75):100===progress&&setSrProgress(100))}),[progress,variant]);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsxs)(Svg,{...props,viewBox:"24 24 48 48",role:"progressbar",height:size,width:size,preserveAspectRatio:"xMidYMid meet",children:[(0,jsx_runtime.jsx)(TrackCircle,{style:trackStyle,cx:48,cy:48,r:22,fill:"none",strokeWidth:4,stroke:token.background}),(0,jsx_runtime.jsx)(ProgressCircle,{style:trackStyle,cx:48,cy:48,r:22,fill:"none",strokeLinecap:"round",strokeWidth:4,strokeDasharray:"determinate"===variant?circumference:48,stroke:token.entities.progress.background})]}),"determinate"===variant&&(0,jsx_runtime.jsx)(SrOnlyOutput,{children:`Loading ${srProgress}%`})]})}))}}]); \ No newline at end of file diff --git a/storybook-static/2843.25502106.iframe.bundle.js b/storybook-static/2843.25502106.iframe.bundle.js deleted file mode 100644 index 9cf34c7e6..000000000 --- a/storybook-static/2843.25502106.iframe.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2843.25502106.iframe.bundle.js.LICENSE.txt */ -(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[2843],{"./node_modules/@babel/runtime/helpers/esm/extends.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0||(target[key]=source[key]);return target}__webpack_require__.d(__webpack_exports__,{Z:function(){return _objectWithoutPropertiesLoose}})},"./node_modules/@babel/runtime/helpers/extends.js":function(module){function _extends(){return module.exports=_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0||(target[key]=source[key]);return target},module.exports.__esModule=!0,module.exports.default=module.exports},"./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return createCache}});var StyleSheet=function(){function StyleSheet(options){var _this=this;this._insertTag=function(tag){var before;before=0===_this.tags.length?_this.insertionPoint?_this.insertionPoint.nextSibling:_this.prepend?_this.container.firstChild:_this.before:_this.tags[_this.tags.length-1].nextSibling,_this.container.insertBefore(tag,before),_this.tags.push(tag)},this.isSpeedy=void 0===options.speedy||options.speedy,this.tags=[],this.ctr=0,this.nonce=options.nonce,this.key=options.key,this.container=options.container,this.prepend=options.prepend,this.insertionPoint=options.insertionPoint,this.before=null}var _proto=StyleSheet.prototype;return _proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag)},_proto.insert=function insert(rule){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function createStyleElement(options){var tag=document.createElement("style");return tag.setAttribute("data-emotion",options.key),void 0!==options.nonce&&tag.setAttribute("nonce",options.nonce),tag.appendChild(document.createTextNode("")),tag.setAttribute("data-s",""),tag}(this));var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=function sheetForTag(tag){if(tag.sheet)return tag.sheet;for(var i=0;i0?Utility_charat(characters,--position):0,column--,10===character&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(index,count){for(;--count&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(index,caret()+(count<6&&32==peek()&&32==next()))}function delimiter(type){for(;next();)switch(character){case type:return position;case 34:case 39:34!==type&&39!==type&&delimiter(character);break;case 40:41===type&&delimiter(type);break;case 92:next()}return position}function commenter(type,index){for(;next()&&type+character!==57&&(type+character!==84||47!==peek()););return"/*"+slice(index,position-1)+"*"+Utility_from(47===type?type:next())}function identifier(index){for(;!token(peek());)next();return slice(index,position)}var COMMENT="comm",Enum_RULESET="rule",Enum_DECLARATION="decl";function Serializer_serialize(children,callback){for(var output="",length=Utility_sizeof(children),i=0;i0&&Utility_strlen(characters)-length&&Utility_append(property>32?declaration(characters+";",rule,parent,length-1):declaration(Utility_replace(characters," ","")+";",rule,parent,length-2),declarations);break;case 59:characters+=";";default:if(Utility_append(reference=ruleset(characters,root,parent,index,offset,rules,points,type,props=[],children=[],length),rulesets),123===character)if(0===offset)parse(characters,root,reference,reference,props,rulesets,length,points,children);else switch(99===atrule&&110===Utility_charat(characters,3)?100:atrule){case 100:case 108:case 109:case 115:parse(value,reference,reference,rule&&Utility_append(ruleset(value,reference,reference,0,0,rules,points,type,rules,props=[],length),children),rules,children,length,points,rule?props:children);break;default:parse(characters,reference,reference,reference,[""],children,0,points,children)}}index=offset=property=0,variable=ampersand=1,type=characters="",length=pseudo;break;case 58:length=1+Utility_strlen(characters),property=previous;default:if(variable<1)if(123==character)--variable;else if(125==character&&0==variable++&&125==prev())continue;switch(characters+=Utility_from(character),character*variable){case 38:ampersand=offset>0?1:(characters+="\f",-1);break;case 44:points[index++]=(Utility_strlen(characters)-1)*ampersand,ampersand=1;break;case 64:45===peek()&&(characters+=delimit(next())),atrule=peek(),offset=length=Utility_strlen(type=characters+=identifier(caret())),character++;break;case 45:45===previous&&2==Utility_strlen(characters)&&(variable=0)}}return rulesets}function ruleset(value,root,parent,index,offset,rules,points,type,props,children,length){for(var post=offset-1,rule=0===offset?rules:[""],size=Utility_sizeof(rule),i=0,j=0,k=0;i0?rule[x]+" "+y:Utility_replace(y,/&\f/g,rule[x])))&&(props[k++]=z);return node(value,root,parent,0===offset?Enum_RULESET:type,props,children,length)}function comment(value,root,parent){return node(value,root,parent,COMMENT,Utility_from(function Tokenizer_char(){return character}()),Utility_substr(value,2,-2),0)}function declaration(value,root,parent,length){return node(value,root,parent,Enum_DECLARATION,Utility_substr(value,0,length),Utility_substr(value,length+1,-1),length)}var identifierWithPointTracking=function identifierWithPointTracking(begin,points,index){for(var previous=0,character=0;previous=character,character=peek(),38===previous&&12===character&&(points[index]=1),!token(character);)next();return slice(begin,position)},getRules=function getRules(value,points){return dealloc(function toRules(parsed,points){var index=-1,character=44;do{switch(token(character)){case 0:38===character&&12===peek()&&(points[index]=1),parsed[index]+=identifierWithPointTracking(position-1,points,index);break;case 2:parsed[index]+=delimit(character);break;case 4:if(44===character){parsed[++index]=58===peek()?"&\f":"",points[index]=parsed[index].length;break}default:parsed[index]+=Utility_from(character)}}while(character=next());return parsed}(alloc(value),points))},fixedElements=new WeakMap,compat=function compat(element){if("rule"===element.type&&element.parent&&!(element.length<1)){for(var value=element.value,parent=element.parent,isImplicitRule=element.column===parent.column&&element.line===parent.line;"rule"!==parent.type;)if(!(parent=parent.parent))return;if((1!==element.props.length||58===value.charCodeAt(0)||fixedElements.get(parent))&&!isImplicitRule){fixedElements.set(element,!0);for(var points=[],rules=getRules(value,points),parentRules=parent.props,i=0,k=0;i6)switch(Utility_charat(value,length+1)){case 109:if(45!==Utility_charat(value,length+4))break;case 102:return Utility_replace(value,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Utility_charat(value,length+3)?"$3":"$2-$3"))+value;case 115:return~indexof(value,"stretch")?emotion_cache_browser_esm_prefix(Utility_replace(value,"stretch","fill-available"),length)+value:value}break;case 4949:if(115!==Utility_charat(value,length+1))break;case 6444:switch(Utility_charat(value,Utility_strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return Utility_replace(value,":",":-webkit-")+value;case 101:return Utility_replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===Utility_charat(value,14)?"inline-":"")+"box$3$1-webkit-$2$3$1-ms-$2box$3")+value}break;case 5936:switch(Utility_charat(value,length+11)){case 114:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return"-webkit-"+value+"-ms-"+value+value}return value}var defaultStylisPlugins=[function prefixer(element,index,children,callback){if(element.length>-1&&!element.return)switch(element.type){case Enum_DECLARATION:element.return=emotion_cache_browser_esm_prefix(element.value,element.length);break;case"@keyframes":return Serializer_serialize([Tokenizer_copy(element,{value:Utility_replace(element.value,"@","@-webkit-")})],callback);case Enum_RULESET:if(element.length)return function Utility_combine(array,callback){return array.map(callback).join("")}(element.props,(function(value){switch(function Utility_match(value,pattern){return(value=pattern.exec(value))?value[0]:value}(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Serializer_serialize([Tokenizer_copy(element,{props:[Utility_replace(value,/:(read-\w+)/,":-moz-$1")]})],callback);case"::placeholder":return Serializer_serialize([Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,":-webkit-input-$1")]}),Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,":-moz-$1")]}),Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,"-ms-input-$1")]})],callback)}return""}))}}],createCache=function createCache(options){var key=options.key;if("css"===key){var ssrStyles=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(ssrStyles,(function(node){-1!==node.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(node),node.setAttribute("data-s",""))}))}var stylisPlugins=options.stylisPlugins||defaultStylisPlugins;var container,_insert,inserted={},nodesToHydrate=[];container=options.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+key+' "]'),(function(node){for(var attrib=node.getAttribute("data-emotion").split(" "),i=1;i=4;++i,len-=4)k=1540483477*(65535&(k=255&str.charCodeAt(i)|(255&str.charCodeAt(++i))<<8|(255&str.charCodeAt(++i))<<16|(255&str.charCodeAt(++i))<<24))+(59797*(k>>>16)<<16),h=1540483477*(65535&(k^=k>>>24))+(59797*(k>>>16)<<16)^1540483477*(65535&h)+(59797*(h>>>16)<<16);switch(len){case 3:h^=(255&str.charCodeAt(i+2))<<16;case 2:h^=(255&str.charCodeAt(i+1))<<8;case 1:h=1540483477*(65535&(h^=255&str.charCodeAt(i)))+(59797*(h>>>16)<<16)}return(((h=1540483477*(65535&(h^=h>>>13))+(59797*(h>>>16)<<16))^h>>>15)>>>0).toString(36)}(styles)+identifierName;return{name:name,styles:styles,next:cursor}}},"./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{L:function(){return useInsertionEffectAlwaysWithSyncFallback},j:function(){return useInsertionEffectWithLayoutFallback}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),useInsertionEffect=!!(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__,2))).useInsertionEffect&&(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__,2))).useInsertionEffect,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect||function syncFallback(create){return create()},useInsertionEffectWithLayoutFallback=useInsertionEffect||react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect},"./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{My:function(){return insertStyles},fp:function(){return getRegisteredStyles},hC:function(){return registerStyles}});function getRegisteredStyles(registered,registeredStyles,classNames){var rawClassName="";return classNames.split(" ").forEach((function(className){void 0!==registered[className]?registeredStyles.push(registered[className]+";"):rawClassName+=className+" "})),rawClassName}var registerStyles=function registerStyles(cache,serialized,isStringTag){var className=cache.key+"-"+serialized.name;!1===isStringTag&&void 0===cache.registered[className]&&(cache.registered[className]=serialized.styles)},insertStyles=function insertStyles(cache,serialized,isStringTag){registerStyles(cache,serialized,isStringTag);var className=cache.key+"-"+serialized.name;if(void 0===cache.inserted[serialized.name]){var current=serialized;do{cache.insert(serialized===current?"."+className:"",current,cache.sheet,!0),current=current.next}while(void 0!==current)}}},"./node_modules/@mui/material/styles/createTheme.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return styles_createTheme}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),formatMuiErrorMessage=__webpack_require__("./node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js"),deepmerge=__webpack_require__("./node_modules/@mui/utils/deepmerge/deepmerge.js"),defaultSxConfig=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js"),styleFunctionSx=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js"),createTheme=__webpack_require__("./node_modules/@mui/system/esm/createTheme/createTheme.js");var colorManipulator=__webpack_require__("./node_modules/@mui/system/colorManipulator.js");var colors_common={black:"#000",white:"#fff"};var colors_grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var colors_purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var colors_red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var colors_orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var colors_blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var colors_lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var colors_green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const _excluded=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:colors_common.white,default:colors_common.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:colors_common.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:colors_common.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(intent,direction,shade,tonalOffset){const tonalOffsetLight=tonalOffset.light||tonalOffset,tonalOffsetDark=tonalOffset.dark||1.5*tonalOffset;intent[direction]||(intent.hasOwnProperty(shade)?intent[direction]=intent[shade]:"light"===direction?intent.light=(0,colorManipulator.$n)(intent.main,tonalOffsetLight):"dark"===direction&&(intent.dark=(0,colorManipulator._j)(intent.main,tonalOffsetDark)))}function createPalette(palette){const{mode:mode="light",contrastThreshold:contrastThreshold=3,tonalOffset:tonalOffset=.2}=palette,other=(0,objectWithoutPropertiesLoose.Z)(palette,_excluded),primary=palette.primary||function getDefaultPrimary(mode="light"){return"dark"===mode?{main:colors_blue[200],light:colors_blue[50],dark:colors_blue[400]}:{main:colors_blue[700],light:colors_blue[400],dark:colors_blue[800]}}(mode),secondary=palette.secondary||function getDefaultSecondary(mode="light"){return"dark"===mode?{main:colors_purple[200],light:colors_purple[50],dark:colors_purple[400]}:{main:colors_purple[500],light:colors_purple[300],dark:colors_purple[700]}}(mode),error=palette.error||function getDefaultError(mode="light"){return"dark"===mode?{main:colors_red[500],light:colors_red[300],dark:colors_red[700]}:{main:colors_red[700],light:colors_red[400],dark:colors_red[800]}}(mode),info=palette.info||function getDefaultInfo(mode="light"){return"dark"===mode?{main:colors_lightBlue[400],light:colors_lightBlue[300],dark:colors_lightBlue[700]}:{main:colors_lightBlue[700],light:colors_lightBlue[500],dark:colors_lightBlue[900]}}(mode),success=palette.success||function getDefaultSuccess(mode="light"){return"dark"===mode?{main:colors_green[400],light:colors_green[300],dark:colors_green[700]}:{main:colors_green[800],light:colors_green[500],dark:colors_green[900]}}(mode),warning=palette.warning||function getDefaultWarning(mode="light"){return"dark"===mode?{main:colors_orange[400],light:colors_orange[300],dark:colors_orange[700]}:{main:"#ed6c02",light:colors_orange[500],dark:colors_orange[900]}}(mode);function getContrastText(background){return(0,colorManipulator.mi)(background,dark.text.primary)>=contrastThreshold?dark.text.primary:light.text.primary}const augmentColor=({color:color,name:name,mainShade:mainShade=500,lightShade:lightShade=300,darkShade:darkShade=700})=>{if(!(color=(0,esm_extends.Z)({},color)).main&&color[mainShade]&&(color.main=color[mainShade]),!color.hasOwnProperty("main"))throw new Error((0,formatMuiErrorMessage.Z)(11,name?` (${name})`:"",mainShade));if("string"!=typeof color.main)throw new Error((0,formatMuiErrorMessage.Z)(12,name?` (${name})`:"",JSON.stringify(color.main)));return addLightOrDark(color,"light",lightShade,tonalOffset),addLightOrDark(color,"dark",darkShade,tonalOffset),color.contrastText||(color.contrastText=getContrastText(color.main)),color},modes={dark:dark,light:light};return(0,deepmerge.Z)((0,esm_extends.Z)({common:(0,esm_extends.Z)({},colors_common),mode:mode,primary:augmentColor({color:primary,name:"primary"}),secondary:augmentColor({color:secondary,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:augmentColor({color:error,name:"error"}),warning:augmentColor({color:warning,name:"warning"}),info:augmentColor({color:info,name:"info"}),success:augmentColor({color:success,name:"success"}),grey:colors_grey,contrastThreshold:contrastThreshold,getContrastText:getContrastText,augmentColor:augmentColor,tonalOffset:tonalOffset},modes[mode]),other)}const createTypography_excluded=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(palette,typography){const _ref="function"==typeof typography?typography(palette):typography,{fontFamily:fontFamily=defaultFontFamily,fontSize:fontSize=14,fontWeightLight:fontWeightLight=300,fontWeightRegular:fontWeightRegular=400,fontWeightMedium:fontWeightMedium=500,fontWeightBold:fontWeightBold=700,htmlFontSize:htmlFontSize=16,allVariants:allVariants,pxToRem:pxToRem2}=_ref,other=(0,objectWithoutPropertiesLoose.Z)(_ref,createTypography_excluded);const coef=fontSize/14,pxToRem=pxToRem2||(size=>size/htmlFontSize*coef+"rem"),buildVariant=(fontWeight,size,lineHeight,letterSpacing,casing)=>{return(0,esm_extends.Z)({fontFamily:fontFamily,fontWeight:fontWeight,fontSize:pxToRem(size),lineHeight:lineHeight},fontFamily===defaultFontFamily?{letterSpacing:(value=letterSpacing/size,Math.round(1e5*value)/1e5)+"em"}:{},casing,allVariants);var value},variants={h1:buildVariant(fontWeightLight,96,1.167,-1.5),h2:buildVariant(fontWeightLight,60,1.2,-.5),h3:buildVariant(fontWeightRegular,48,1.167,0),h4:buildVariant(fontWeightRegular,34,1.235,.25),h5:buildVariant(fontWeightRegular,24,1.334,0),h6:buildVariant(fontWeightMedium,20,1.6,.15),subtitle1:buildVariant(fontWeightRegular,16,1.75,.15),subtitle2:buildVariant(fontWeightMedium,14,1.57,.1),body1:buildVariant(fontWeightRegular,16,1.5,.15),body2:buildVariant(fontWeightRegular,14,1.43,.15),button:buildVariant(fontWeightMedium,14,1.75,.4,caseAllCaps),caption:buildVariant(fontWeightRegular,12,1.66,.4),overline:buildVariant(fontWeightRegular,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,deepmerge.Z)((0,esm_extends.Z)({htmlFontSize:htmlFontSize,pxToRem:pxToRem,fontFamily:fontFamily,fontSize:fontSize,fontWeightLight:fontWeightLight,fontWeightRegular:fontWeightRegular,fontWeightMedium:fontWeightMedium,fontWeightBold:fontWeightBold},variants),other,{clone:!1})}function createShadow(...px){return[`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,0.2)`,`${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,0.14)`,`${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,0.12)`].join(",")}var styles_shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],createTransitions=__webpack_require__("./node_modules/@mui/material/styles/createTransitions.js");var styles_zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const createTheme_excluded=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme_createTheme(options={},...args){const{mixins:mixinsInput={},palette:paletteInput={},transitions:transitionsInput={},typography:typographyInput={}}=options,other=(0,objectWithoutPropertiesLoose.Z)(options,createTheme_excluded);if(options.vars)throw new Error((0,formatMuiErrorMessage.Z)(18));const palette=createPalette(paletteInput),systemTheme=(0,createTheme.Z)(options);let muiTheme=(0,deepmerge.Z)(systemTheme,{mixins:(breakpoints=systemTheme.breakpoints,mixins=mixinsInput,(0,esm_extends.Z)({toolbar:{minHeight:56,[breakpoints.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[breakpoints.up("sm")]:{minHeight:64}}},mixins)),palette:palette,shadows:styles_shadows.slice(),typography:createTypography(palette,typographyInput),transitions:(0,createTransitions.ZP)(transitionsInput),zIndex:(0,esm_extends.Z)({},styles_zIndex)});var breakpoints,mixins;return muiTheme=(0,deepmerge.Z)(muiTheme,other),muiTheme=args.reduce(((acc,argument)=>(0,deepmerge.Z)(acc,argument)),muiTheme),muiTheme.unstable_sxConfig=(0,esm_extends.Z)({},defaultSxConfig.Z,null==other?void 0:other.unstable_sxConfig),muiTheme.unstable_sx=function sx(props){return(0,styleFunctionSx.Z)({sx:props,theme:this})},muiTheme}var styles_createTheme=createTheme_createTheme},"./node_modules/@mui/material/styles/createTransitions.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{ZP:function(){return createTransitions},x9:function(){return duration}});var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js");const _excluded=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(milliseconds){return`${Math.round(milliseconds)}ms`}function getAutoHeightDuration(height){if(!height)return 0;const constant=height/36;return Math.round(10*(4+15*constant**.25+constant/5))}function createTransitions(inputTransitions){const mergedEasing=(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},easing,inputTransitions.easing),mergedDuration=(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},duration,inputTransitions.duration);return(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({getAutoHeightDuration:getAutoHeightDuration,create:(props=["all"],options={})=>{const{duration:durationOption=mergedDuration.standard,easing:easingOption=mergedEasing.easeInOut,delay:delay=0}=options;(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.Z)(options,_excluded);return(Array.isArray(props)?props:[props]).map((animatedProp=>`${animatedProp} ${"string"==typeof durationOption?durationOption:formatMs(durationOption)} ${easingOption} ${"string"==typeof delay?delay:formatMs(delay)}`)).join(",")}},inputTransitions,{easing:mergedEasing,duration:mergedDuration})}},"./node_modules/@mui/material/styles/defaultTheme.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";const defaultTheme=(0,__webpack_require__("./node_modules/@mui/material/styles/createTheme.js").Z)();__webpack_exports__.Z=defaultTheme},"./node_modules/@mui/material/styles/identifier.js":function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z="$$material"},"./node_modules/@mui/material/styles/rootShouldForwardProp.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _slotShouldForwardProp__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/material/styles/slotShouldForwardProp.js");__webpack_exports__.Z=prop=>(0,_slotShouldForwardProp__WEBPACK_IMPORTED_MODULE_0__.Z)(prop)&&"classes"!==prop},"./node_modules/@mui/material/styles/slotShouldForwardProp.js":function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z=function slotShouldForwardProp(prop){return"ownerState"!==prop&&"theme"!==prop&&"sx"!==prop&&"as"!==prop}},"./node_modules/@mui/material/styles/styled.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_system_createStyled__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/createStyled.js"),_defaultTheme__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/material/styles/defaultTheme.js"),_identifier__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/material/styles/identifier.js"),_rootShouldForwardProp__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@mui/material/styles/rootShouldForwardProp.js");const styled=(0,_mui_system_createStyled__WEBPACK_IMPORTED_MODULE_0__.ZP)({themeId:_identifier__WEBPACK_IMPORTED_MODULE_1__.Z,defaultTheme:_defaultTheme__WEBPACK_IMPORTED_MODULE_2__.Z,rootShouldForwardProp:_rootShouldForwardProp__WEBPACK_IMPORTED_MODULE_3__.Z});__webpack_exports__.ZP=styled},"./node_modules/@mui/material/styles/useThemeProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useThemeProps}});var _mui_system_useThemeProps__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/useThemeProps/useThemeProps.js"),_defaultTheme__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/material/styles/defaultTheme.js"),_identifier__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/material/styles/identifier.js");function useThemeProps({props:props,name:name}){return(0,_mui_system_useThemeProps__WEBPACK_IMPORTED_MODULE_0__.Z)({props:props,name:name,defaultTheme:_defaultTheme__WEBPACK_IMPORTED_MODULE_1__.Z,themeId:_identifier__WEBPACK_IMPORTED_MODULE_2__.Z})}},"./node_modules/@mui/material/utils/capitalize.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/capitalize/capitalize.js");__webpack_exports__.Z=_mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_0__.Z},"./node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return GlobalStyles}});__webpack_require__("./node_modules/react/index.js");var _emotion_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");function GlobalStyles(props){const{styles:styles,defaultTheme:defaultTheme={}}=props,globalStyles="function"==typeof styles?themeInput=>styles(function isEmpty(obj){return null==obj||0===Object.keys(obj).length}(themeInput)?defaultTheme:themeInput):styles;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_emotion_react__WEBPACK_IMPORTED_MODULE_2__.xB,{styles:globalStyles})}},"./node_modules/@mui/styled-engine/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{GlobalStyles:function(){return GlobalStyles.Z},StyledEngineProvider:function(){return StyledEngineProvider},ThemeContext:function(){return emotion_element_c39617d8_browser_esm.T},css:function(){return emotion_react_browser_esm.iv},default:function(){return styled},internal_processStyles:function(){return internal_processStyles},keyframes:function(){return emotion_react_browser_esm.F4}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),emotion_is_prop_valid_esm=__webpack_require__("./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"),emotion_element_c39617d8_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js"),emotion_utils_browser_esm=__webpack_require__("./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"),emotion_serialize_browser_esm=__webpack_require__("./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"),emotion_use_insertion_effect_with_fallbacks_browser_esm=__webpack_require__("./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"),testOmitPropsOnStringTag=emotion_is_prop_valid_esm.Z,testOmitPropsOnComponent=function testOmitPropsOnComponent(key){return"theme"!==key},getDefaultShouldForwardProp=function getDefaultShouldForwardProp(tag){return"string"==typeof tag&&tag.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function composeShouldForwardProps(tag,options,isReal){var shouldForwardProp;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName)}:optionsShouldForwardProp}return"function"!=typeof shouldForwardProp&&isReal&&(shouldForwardProp=tag.__emotion_forwardProp),shouldForwardProp},Insertion=function Insertion(_ref){var cache=_ref.cache,serialized=_ref.serialized,isStringTag=_ref.isStringTag;return(0,emotion_utils_browser_esm.hC)(cache,serialized,isStringTag),(0,emotion_use_insertion_effect_with_fallbacks_browser_esm.L)((function(){return(0,emotion_utils_browser_esm.My)(cache,serialized,isStringTag)})),null},newStyled=function createStyled(tag,options){var identifierName,targetClassName,isReal=tag.__emotion_real===tag,baseTag=isReal&&tag.__emotion_base||tag;void 0!==options&&(identifierName=options.label,targetClassName=options.target);var shouldForwardProp=composeShouldForwardProps(tag,options,isReal),defaultShouldForwardProp=shouldForwardProp||getDefaultShouldForwardProp(baseTag),shouldUseAs=!defaultShouldForwardProp("as");return function(){var args=arguments,styles=isReal&&void 0!==tag.__emotion_styles?tag.__emotion_styles.slice(0):[];if(void 0!==identifierName&&styles.push("label:"+identifierName+";"),null==args[0]||void 0===args[0].raw)styles.push.apply(styles,args);else{0,styles.push(args[0][0]);for(var len=args.length,i=1;i{Array.isArray(tag.__emotion_styles)&&(tag.__emotion_styles=processor(tag.__emotion_styles))}},"./node_modules/@mui/system/colorManipulator.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Fq=alpha,exports._j=darken,exports.mi=function getContrastRatio(foreground,background){const lumA=getLuminance(foreground),lumB=getLuminance(background);return(Math.max(lumA,lumB)+.05)/(Math.min(lumA,lumB)+.05)},exports.$n=lighten;var _formatMuiErrorMessage2=_interopRequireDefault(__webpack_require__("./node_modules/@mui/utils/formatMuiErrorMessage/index.js")),_clamp=_interopRequireDefault(__webpack_require__("./node_modules/@mui/utils/clamp/index.js"));function clampWrapper(value,min=0,max=1){return(0,_clamp.default)(value,min,max)}function hexToRgb(color){color=color.slice(1);const re=new RegExp(`.{1,${color.length>=6?2:1}}`,"g");let colors=color.match(re);return colors&&1===colors[0].length&&(colors=colors.map((n=>n+n))),colors?`rgb${4===colors.length?"a":""}(${colors.map(((n,index)=>index<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3)).join(", ")})`:""}function decomposeColor(color){if(color.type)return color;if("#"===color.charAt(0))return decomposeColor(hexToRgb(color));const marker=color.indexOf("("),type=color.substring(0,marker);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(type))throw new Error((0,_formatMuiErrorMessage2.default)(9,color));let colorSpace,values=color.substring(marker+1,color.length-1);if("color"===type){if(values=values.split(" "),colorSpace=values.shift(),4===values.length&&"/"===values[3].charAt(0)&&(values[3]=values[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(colorSpace))throw new Error((0,_formatMuiErrorMessage2.default)(10,colorSpace))}else values=values.split(",");return values=values.map((value=>parseFloat(value))),{type:type,values:values,colorSpace:colorSpace}}const colorChannel=color=>{const decomposedColor=decomposeColor(color);return decomposedColor.values.slice(0,3).map(((val,idx)=>-1!==decomposedColor.type.indexOf("hsl")&&0!==idx?`${val}%`:val)).join(" ")};function recomposeColor(color){const{type:type,colorSpace:colorSpace}=color;let{values:values}=color;return-1!==type.indexOf("rgb")?values=values.map(((n,i)=>i<3?parseInt(n,10):n)):-1!==type.indexOf("hsl")&&(values[1]=`${values[1]}%`,values[2]=`${values[2]}%`),values=-1!==type.indexOf("color")?`${colorSpace} ${values.join(" ")}`:`${values.join(", ")}`,`${type}(${values})`}function hslToRgb(color){color=decomposeColor(color);const{values:values}=color,h=values[0],s=values[1]/100,l=values[2]/100,a=s*Math.min(l,1-l),f=(n,k=(n+h/30)%12)=>l-a*Math.max(Math.min(k-3,9-k,1),-1);let type="rgb";const rgb=[Math.round(255*f(0)),Math.round(255*f(8)),Math.round(255*f(4))];return"hsla"===color.type&&(type+="a",rgb.push(values[3])),recomposeColor({type:type,values:rgb})}function getLuminance(color){let rgb="hsl"===(color=decomposeColor(color)).type||"hsla"===color.type?decomposeColor(hslToRgb(color)).values:color.values;return rgb=rgb.map((val=>("color"!==color.type&&(val/=255),val<=.03928?val/12.92:((val+.055)/1.055)**2.4))),Number((.2126*rgb[0]+.7152*rgb[1]+.0722*rgb[2]).toFixed(3))}function alpha(color,value){return color=decomposeColor(color),value=clampWrapper(value),"rgb"!==color.type&&"hsl"!==color.type||(color.type+="a"),"color"===color.type?color.values[3]=`/${value}`:color.values[3]=value,recomposeColor(color)}function darken(color,coefficient){if(color=decomposeColor(color),coefficient=clampWrapper(coefficient),-1!==color.type.indexOf("hsl"))color.values[2]*=1-coefficient;else if(-1!==color.type.indexOf("rgb")||-1!==color.type.indexOf("color"))for(let i=0;i<3;i+=1)color.values[i]*=1-coefficient;return recomposeColor(color)}function lighten(color,coefficient){if(color=decomposeColor(color),coefficient=clampWrapper(coefficient),-1!==color.type.indexOf("hsl"))color.values[2]+=(100-color.values[2])*coefficient;else if(-1!==color.type.indexOf("rgb"))for(let i=0;i<3;i+=1)color.values[i]+=(255-color.values[i])*coefficient;else if(-1!==color.type.indexOf("color"))for(let i=0;i<3;i+=1)color.values[i]+=(1-color.values[i])*coefficient;return recomposeColor(color)}function emphasize(color,coefficient=.15){return getLuminance(color)>.5?darken(color,coefficient):lighten(color,coefficient)}},"./node_modules/@mui/system/createStyled.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.ZP=function createStyled(input={}){const{themeId:themeId,defaultTheme:defaultTheme=systemDefaultTheme,rootShouldForwardProp:rootShouldForwardProp=shouldForwardProp,slotShouldForwardProp:slotShouldForwardProp=shouldForwardProp}=input,systemSx=props=>(0,_styleFunctionSx.default)((0,_extends2.default)({},props,{theme:resolveTheme((0,_extends2.default)({},props,{defaultTheme:defaultTheme,themeId:themeId}))}));return systemSx.__mui_systemSx=!0,(tag,inputOptions={})=>{(0,_styledEngine.internal_processStyles)(tag,(styles=>styles.filter((style=>!(null!=style&&style.__mui_systemSx)))));const{name:componentName,slot:componentSlot,skipVariantsResolver:inputSkipVariantsResolver,skipSx:inputSkipSx,overridesResolver:overridesResolver=defaultOverridesResolver(lowercaseFirstLetter(componentSlot))}=inputOptions,options=(0,_objectWithoutPropertiesLoose2.default)(inputOptions,_excluded3),skipVariantsResolver=void 0!==inputSkipVariantsResolver?inputSkipVariantsResolver:componentSlot&&"Root"!==componentSlot&&"root"!==componentSlot||!1,skipSx=inputSkipSx||!1;let shouldForwardPropOption=shouldForwardProp;"Root"===componentSlot||"root"===componentSlot?shouldForwardPropOption=rootShouldForwardProp:componentSlot?shouldForwardPropOption=slotShouldForwardProp:function isStringTag(tag){return"string"==typeof tag&&tag.charCodeAt(0)>96}(tag)&&(shouldForwardPropOption=void 0);const defaultStyledResolver=(0,_styledEngine.default)(tag,(0,_extends2.default)({shouldForwardProp:shouldForwardPropOption,label:undefined},options)),transformStyleArg=stylesArg=>"function"==typeof stylesArg&&stylesArg.__emotion_real!==stylesArg||(0,_deepmerge.isPlainObject)(stylesArg)?props=>processStyleArg(stylesArg,(0,_extends2.default)({},props,{theme:resolveTheme({theme:props.theme,defaultTheme:defaultTheme,themeId:themeId})})):stylesArg,muiStyledResolver=(styleArg,...expressions)=>{let transformedStyleArg=transformStyleArg(styleArg);const expressionsWithDefaultTheme=expressions?expressions.map(transformStyleArg):[];componentName&&overridesResolver&&expressionsWithDefaultTheme.push((props=>{const theme=resolveTheme((0,_extends2.default)({},props,{defaultTheme:defaultTheme,themeId:themeId}));if(!theme.components||!theme.components[componentName]||!theme.components[componentName].styleOverrides)return null;const styleOverrides=theme.components[componentName].styleOverrides,resolvedStyleOverrides={};return Object.entries(styleOverrides).forEach((([slotKey,slotStyle])=>{resolvedStyleOverrides[slotKey]=processStyleArg(slotStyle,(0,_extends2.default)({},props,{theme:theme}))})),overridesResolver(props,resolvedStyleOverrides)})),componentName&&!skipVariantsResolver&&expressionsWithDefaultTheme.push((props=>{var _theme$components;const theme=resolveTheme((0,_extends2.default)({},props,{defaultTheme:defaultTheme,themeId:themeId}));return processStyleArg({variants:null==theme||null==(_theme$components=theme.components)||null==(_theme$components=_theme$components[componentName])?void 0:_theme$components.variants},(0,_extends2.default)({},props,{theme:theme}))})),skipSx||expressionsWithDefaultTheme.push(systemSx);const numOfCustomFnsApplied=expressionsWithDefaultTheme.length-expressions.length;if(Array.isArray(styleArg)&&numOfCustomFnsApplied>0){const placeholders=new Array(numOfCustomFnsApplied).fill("");transformedStyleArg=[...styleArg,...placeholders],transformedStyleArg.raw=[...styleArg.raw,...placeholders]}const Component=defaultStyledResolver(transformedStyleArg,...expressionsWithDefaultTheme);return tag.muiName&&(Component.muiName=tag.muiName),Component};return defaultStyledResolver.withConfig&&(muiStyledResolver.withConfig=defaultStyledResolver.withConfig),muiStyledResolver}};var _extends2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/extends.js")),_objectWithoutPropertiesLoose2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js")),_styledEngine=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/@mui/styled-engine/index.js")),_deepmerge=__webpack_require__("./node_modules/@mui/utils/deepmerge/index.js"),_createTheme=(_interopRequireDefault(__webpack_require__("./node_modules/@mui/utils/capitalize/index.js")),_interopRequireDefault(__webpack_require__("./node_modules/@mui/utils/getDisplayName/index.js")),_interopRequireDefault(__webpack_require__("./node_modules/@mui/system/esm/createTheme/index.js"))),_styleFunctionSx=_interopRequireDefault(__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/index.js"));const _excluded=["ownerState"],_excluded2=["variants"],_excluded3=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function shouldForwardProp(prop){return"ownerState"!==prop&&"theme"!==prop&&"sx"!==prop&&"as"!==prop}const systemDefaultTheme=(0,_createTheme.default)(),lowercaseFirstLetter=string=>string?string.charAt(0).toLowerCase()+string.slice(1):string;function resolveTheme({defaultTheme:defaultTheme,theme:theme,themeId:themeId}){return function isEmpty(obj){return 0===Object.keys(obj).length}(theme)?defaultTheme:theme[themeId]||theme}function defaultOverridesResolver(slot){return slot?(props,styles)=>styles[slot]:null}function processStyleArg(callableStyle,_ref){let{ownerState:ownerState}=_ref,props=(0,_objectWithoutPropertiesLoose2.default)(_ref,_excluded);const resolvedStylesArg="function"==typeof callableStyle?callableStyle((0,_extends2.default)({ownerState:ownerState},props)):callableStyle;if(Array.isArray(resolvedStylesArg))return resolvedStylesArg.flatMap((resolvedStyle=>processStyleArg(resolvedStyle,(0,_extends2.default)({ownerState:ownerState},props))));if(resolvedStylesArg&&"object"==typeof resolvedStylesArg&&Array.isArray(resolvedStylesArg.variants)){const{variants:variants=[]}=resolvedStylesArg;let result=(0,_objectWithoutPropertiesLoose2.default)(resolvedStylesArg,_excluded2);return variants.forEach((variant=>{let isMatch=!0;"function"==typeof variant.props?isMatch=variant.props((0,_extends2.default)({ownerState:ownerState},props,ownerState)):Object.keys(variant.props).forEach((key=>{(null==ownerState?void 0:ownerState[key])!==variant.props[key]&&props[key]!==variant.props[key]&&(isMatch=!1)})),isMatch&&(Array.isArray(result)||(result=[result]),result.push("function"==typeof variant.style?variant.style((0,_extends2.default)({ownerState:ownerState},props,ownerState)):variant.style))})),result}return resolvedStylesArg}},"./node_modules/@mui/system/esm/breakpoints.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L7:function(){return removeUnusedBreakpoints},P$:function(){return resolveBreakpointValues},VO:function(){return values},W8:function(){return createEmptyBreakpointObject},dt:function(){return mergeBreakpointsInOrder},k9:function(){return handleBreakpoints}});var _mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/deepmerge/deepmerge.js");const values={xs:0,sm:600,md:900,lg:1200,xl:1536},defaultBreakpoints={keys:["xs","sm","md","lg","xl"],up:key=>`@media (min-width:${values[key]}px)`};function handleBreakpoints(props,propValue,styleFromPropValue){const theme=props.theme||{};if(Array.isArray(propValue)){const themeBreakpoints=theme.breakpoints||defaultBreakpoints;return propValue.reduce(((acc,item,index)=>(acc[themeBreakpoints.up(themeBreakpoints.keys[index])]=styleFromPropValue(propValue[index]),acc)),{})}if("object"==typeof propValue){const themeBreakpoints=theme.breakpoints||defaultBreakpoints;return Object.keys(propValue).reduce(((acc,breakpoint)=>{if(-1!==Object.keys(themeBreakpoints.values||values).indexOf(breakpoint)){acc[themeBreakpoints.up(breakpoint)]=styleFromPropValue(propValue[breakpoint],breakpoint)}else{const cssKey=breakpoint;acc[cssKey]=propValue[cssKey]}return acc}),{})}return styleFromPropValue(propValue)}function createEmptyBreakpointObject(breakpointsInput={}){var _breakpointsInput$key;return(null==(_breakpointsInput$key=breakpointsInput.keys)?void 0:_breakpointsInput$key.reduce(((acc,key)=>(acc[breakpointsInput.up(key)]={},acc)),{}))||{}}function removeUnusedBreakpoints(breakpointKeys,style){return breakpointKeys.reduce(((acc,key)=>{const breakpointOutput=acc[key];return(!breakpointOutput||0===Object.keys(breakpointOutput).length)&&delete acc[key],acc}),style)}function mergeBreakpointsInOrder(breakpointsInput,...styles){const emptyBreakpoints=createEmptyBreakpointObject(breakpointsInput),mergedOutput=[emptyBreakpoints,...styles].reduce(((prev,next)=>(0,_mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_0__.Z)(prev,next)),{});return removeUnusedBreakpoints(Object.keys(emptyBreakpoints),mergedOutput)}function resolveBreakpointValues({values:breakpointValues,breakpoints:themeBreakpoints,base:customBase}){const base=customBase||function computeBreakpointsBase(breakpointValues,themeBreakpoints){if("object"!=typeof breakpointValues)return{};const base={},breakpointsKeys=Object.keys(themeBreakpoints);return Array.isArray(breakpointValues)?breakpointsKeys.forEach(((breakpoint,i)=>{i{null!=breakpointValues[breakpoint]&&(base[breakpoint]=!0)})),base}(breakpointValues,themeBreakpoints),keys=Object.keys(base);if(0===keys.length)return breakpointValues;let previous;return keys.reduce(((acc,breakpoint,i)=>(Array.isArray(breakpointValues)?(acc[breakpoint]=null!=breakpointValues[i]?breakpointValues[i]:breakpointValues[previous],previous=i):"object"==typeof breakpointValues?(acc[breakpoint]=null!=breakpointValues[breakpoint]?breakpointValues[breakpoint]:breakpointValues[previous],previous=breakpoint):acc[breakpoint]=breakpointValues,acc)),{})}},"./node_modules/@mui/system/esm/createTheme/applyStyles.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function applyStyles(key,styles){const theme=this;if(theme.vars&&"function"==typeof theme.getColorSchemeSelector){return{[theme.getColorSchemeSelector(key).replace(/(\[[^\]]+\])/,"*:where($1)")]:styles}}return theme.palette.mode===key?styles:{}}__webpack_require__.d(__webpack_exports__,{Z:function(){return applyStyles}})},"./node_modules/@mui/system/esm/createTheme/createBreakpoints.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return createBreakpoints}});var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js");const _excluded=["values","unit","step"],sortBreakpointsValues=values=>{const breakpointsAsArray=Object.keys(values).map((key=>({key:key,val:values[key]})))||[];return breakpointsAsArray.sort(((breakpoint1,breakpoint2)=>breakpoint1.val-breakpoint2.val)),breakpointsAsArray.reduce(((acc,obj)=>(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},acc,{[obj.key]:obj.val})),{})};function createBreakpoints(breakpoints){const{values:values={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:unit="px",step:step=5}=breakpoints,other=(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.Z)(breakpoints,_excluded),sortedValues=sortBreakpointsValues(values),keys=Object.keys(sortedValues);function up(key){return`@media (min-width:${"number"==typeof values[key]?values[key]:key}${unit})`}function down(key){return`@media (max-width:${("number"==typeof values[key]?values[key]:key)-step/100}${unit})`}function between(start,end){const endIndex=keys.indexOf(end);return`@media (min-width:${"number"==typeof values[start]?values[start]:start}${unit}) and (max-width:${(-1!==endIndex&&"number"==typeof values[keys[endIndex]]?values[keys[endIndex]]:end)-step/100}${unit})`}return(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({keys:keys,values:sortedValues,up:up,down:down,between:between,only:function only(key){return keys.indexOf(key)+1(0===argsInput.length?[1]:argsInput).map((argument=>{const output=transform(argument);return"number"==typeof output?`${output}px`:output})).join(" ");return spacing.mui=!0,spacing}(spacingInput);let muiTheme=(0,deepmerge.Z)({breakpoints:breakpoints,direction:"ltr",components:{},palette:(0,esm_extends.Z)({mode:"light"},paletteInput),spacing:spacing,shape:(0,esm_extends.Z)({},createTheme_shape,shapeInput)},other);return muiTheme.applyStyles=applyStyles.Z,muiTheme=args.reduce(((acc,argument)=>(0,deepmerge.Z)(acc,argument)),muiTheme),muiTheme.unstable_sxConfig=(0,esm_extends.Z)({},defaultSxConfig.Z,null==other?void 0:other.unstable_sxConfig),muiTheme.unstable_sx=function sx(props){return(0,styleFunctionSx.Z)({sx:props,theme:this})},muiTheme}},"./node_modules/@mui/system/esm/createTheme/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _createTheme__WEBPACK_IMPORTED_MODULE_0__.Z},private_createBreakpoints:function(){return _createBreakpoints__WEBPACK_IMPORTED_MODULE_1__.Z},unstable_applyStyles:function(){return _applyStyles__WEBPACK_IMPORTED_MODULE_2__.Z}});var _createTheme__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/createTheme/createTheme.js"),_createBreakpoints__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/system/esm/createTheme/createBreakpoints.js"),_applyStyles__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/system/esm/createTheme/applyStyles.js")},"./node_modules/@mui/system/esm/merge.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/deepmerge/deepmerge.js");__webpack_exports__.Z=function merge(acc,item){return item?(0,_mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_0__.Z)(acc,item,{clone:!1}):acc}},"./node_modules/@mui/system/esm/spacing.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{hB:function(){return createUnarySpacing},eI:function(){return createUnaryUnit},NA:function(){return getValue},e6:function(){return margin},o3:function(){return padding}});var breakpoints=__webpack_require__("./node_modules/@mui/system/esm/breakpoints.js"),style=__webpack_require__("./node_modules/@mui/system/esm/style.js"),merge=__webpack_require__("./node_modules/@mui/system/esm/merge.js");const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=function memoize(fn){const cache={};return arg=>(void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg])}((prop=>{if(prop.length>2){if(!aliases[prop])return[prop];prop=aliases[prop]}const[a,b]=prop.split(""),property=properties[a],direction=directions[b]||"";return Array.isArray(direction)?direction.map((dir=>property+dir)):[property+direction]})),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],spacingKeys=[...marginKeys,...paddingKeys];function createUnaryUnit(theme,themeKey,defaultValue,propName){var _getPath;const themeSpacing=null!=(_getPath=(0,style.DW)(theme,themeKey,!1))?_getPath:defaultValue;return"number"==typeof themeSpacing?abs=>"string"==typeof abs?abs:themeSpacing*abs:Array.isArray(themeSpacing)?abs=>"string"==typeof abs?abs:themeSpacing[abs]:"function"==typeof themeSpacing?themeSpacing:()=>{}}function createUnarySpacing(theme){return createUnaryUnit(theme,"spacing",8)}function getValue(transformer,propValue){if("string"==typeof propValue||null==propValue)return propValue;const transformed=transformer(Math.abs(propValue));return propValue>=0?transformed:"number"==typeof transformed?-transformed:`-${transformed}`}function resolveCssProperty(props,keys,prop,transformer){if(-1===keys.indexOf(prop))return null;const styleFromPropValue=function getStyleFromPropValue(cssProperties,transformer){return propValue=>cssProperties.reduce(((acc,cssProperty)=>(acc[cssProperty]=getValue(transformer,propValue),acc)),{})}(getCssProperties(prop),transformer),propValue=props[prop];return(0,breakpoints.k9)(props,propValue,styleFromPropValue)}function spacing_style(props,keys){const transformer=createUnarySpacing(props.theme);return Object.keys(props).map((prop=>resolveCssProperty(props,keys,prop,transformer))).reduce(merge.Z,{})}function margin(props){return spacing_style(props,marginKeys)}function padding(props){return spacing_style(props,paddingKeys)}function spacing(props){return spacing_style(props,spacingKeys)}margin.propTypes={},margin.filterProps=marginKeys,padding.propTypes={},padding.filterProps=paddingKeys,spacing.propTypes={},spacing.filterProps=spacingKeys},"./node_modules/@mui/system/esm/style.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{DW:function(){return getPath},Jq:function(){return getStyleValue}});var _mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/capitalize/capitalize.js"),_breakpoints__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/system/esm/breakpoints.js");function getPath(obj,path,checkVars=!0){if(!path||"string"!=typeof path)return null;if(obj&&obj.vars&&checkVars){const val=`vars.${path}`.split(".").reduce(((acc,item)=>acc&&acc[item]?acc[item]:null),obj);if(null!=val)return val}return path.split(".").reduce(((acc,item)=>acc&&null!=acc[item]?acc[item]:null),obj)}function getStyleValue(themeMapping,transform,propValueFinal,userValue=propValueFinal){let value;return value="function"==typeof themeMapping?themeMapping(propValueFinal):Array.isArray(themeMapping)?themeMapping[propValueFinal]||userValue:getPath(themeMapping,propValueFinal)||userValue,transform&&(value=transform(value,userValue,themeMapping)),value}__webpack_exports__.ZP=function style(options){const{prop:prop,cssProperty:cssProperty=options.prop,themeKey:themeKey,transform:transform}=options,fn=props=>{if(null==props[prop])return null;const propValue=props[prop],themeMapping=getPath(props.theme,themeKey)||{};return(0,_breakpoints__WEBPACK_IMPORTED_MODULE_1__.k9)(props,propValue,(propValueFinal=>{let value=getStyleValue(themeMapping,transform,propValueFinal);return propValueFinal===value&&"string"==typeof propValueFinal&&(value=getStyleValue(themeMapping,transform,`${prop}${"default"===propValueFinal?"":(0,_mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_0__.Z)(propValueFinal)}`,propValueFinal)),!1===cssProperty?value:{[cssProperty]:value}}))};return fn.propTypes={},fn.filterProps=[prop],fn}},"./node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return styleFunctionSx_defaultSxConfig}});var spacing=__webpack_require__("./node_modules/@mui/system/esm/spacing.js"),style=__webpack_require__("./node_modules/@mui/system/esm/style.js"),merge=__webpack_require__("./node_modules/@mui/system/esm/merge.js");var esm_compose=function compose(...styles){const handlers=styles.reduce(((acc,style)=>(style.filterProps.forEach((prop=>{acc[prop]=style})),acc)),{}),fn=props=>Object.keys(props).reduce(((acc,prop)=>handlers[prop]?(0,merge.Z)(acc,handlers[prop](props)):acc),{});return fn.propTypes={},fn.filterProps=styles.reduce(((acc,style)=>acc.concat(style.filterProps)),[]),fn},breakpoints=__webpack_require__("./node_modules/@mui/system/esm/breakpoints.js");function borderTransform(value){return"number"!=typeof value?value:`${value}px solid`}function createBorderStyle(prop,transform){return(0,style.ZP)({prop:prop,themeKey:"borders",transform:transform})}const border=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=props=>{if(void 0!==props.borderRadius&&null!==props.borderRadius){const transformer=(0,spacing.eI)(props.theme,"shape.borderRadius",4,"borderRadius"),styleFromPropValue=propValue=>({borderRadius:(0,spacing.NA)(transformer,propValue)});return(0,breakpoints.k9)(props,props.borderRadius,styleFromPropValue)}return null};borderRadius.propTypes={},borderRadius.filterProps=["borderRadius"];esm_compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=props=>{if(void 0!==props.gap&&null!==props.gap){const transformer=(0,spacing.eI)(props.theme,"spacing",8,"gap"),styleFromPropValue=propValue=>({gap:(0,spacing.NA)(transformer,propValue)});return(0,breakpoints.k9)(props,props.gap,styleFromPropValue)}return null};gap.propTypes={},gap.filterProps=["gap"];const columnGap=props=>{if(void 0!==props.columnGap&&null!==props.columnGap){const transformer=(0,spacing.eI)(props.theme,"spacing",8,"columnGap"),styleFromPropValue=propValue=>({columnGap:(0,spacing.NA)(transformer,propValue)});return(0,breakpoints.k9)(props,props.columnGap,styleFromPropValue)}return null};columnGap.propTypes={},columnGap.filterProps=["columnGap"];const rowGap=props=>{if(void 0!==props.rowGap&&null!==props.rowGap){const transformer=(0,spacing.eI)(props.theme,"spacing",8,"rowGap"),styleFromPropValue=propValue=>({rowGap:(0,spacing.NA)(transformer,propValue)});return(0,breakpoints.k9)(props,props.rowGap,styleFromPropValue)}return null};rowGap.propTypes={},rowGap.filterProps=["rowGap"];esm_compose(gap,columnGap,rowGap,(0,style.ZP)({prop:"gridColumn"}),(0,style.ZP)({prop:"gridRow"}),(0,style.ZP)({prop:"gridAutoFlow"}),(0,style.ZP)({prop:"gridAutoColumns"}),(0,style.ZP)({prop:"gridAutoRows"}),(0,style.ZP)({prop:"gridTemplateColumns"}),(0,style.ZP)({prop:"gridTemplateRows"}),(0,style.ZP)({prop:"gridTemplateAreas"}),(0,style.ZP)({prop:"gridArea"}));function paletteTransform(value,userValue){return"grey"===userValue?userValue:value}esm_compose((0,style.ZP)({prop:"color",themeKey:"palette",transform:paletteTransform}),(0,style.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),(0,style.ZP)({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform}));function sizingTransform(value){return value<=1&&0!==value?100*value+"%":value}const width=(0,style.ZP)({prop:"width",transform:sizingTransform}),maxWidth=props=>{if(void 0!==props.maxWidth&&null!==props.maxWidth){const styleFromPropValue=propValue=>{var _props$theme,_props$theme2;const breakpoint=(null==(_props$theme=props.theme)||null==(_props$theme=_props$theme.breakpoints)||null==(_props$theme=_props$theme.values)?void 0:_props$theme[propValue])||breakpoints.VO[propValue];return breakpoint?"px"!==(null==(_props$theme2=props.theme)||null==(_props$theme2=_props$theme2.breakpoints)?void 0:_props$theme2.unit)?{maxWidth:`${breakpoint}${props.theme.breakpoints.unit}`}:{maxWidth:breakpoint}:{maxWidth:sizingTransform(propValue)}};return(0,breakpoints.k9)(props,props.maxWidth,styleFromPropValue)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=(0,style.ZP)({prop:"minWidth",transform:sizingTransform}),height=(0,style.ZP)({prop:"height",transform:sizingTransform}),maxHeight=(0,style.ZP)({prop:"maxHeight",transform:sizingTransform}),minHeight=(0,style.ZP)({prop:"minHeight",transform:sizingTransform});(0,style.ZP)({prop:"size",cssProperty:"width",transform:sizingTransform}),(0,style.ZP)({prop:"size",cssProperty:"height",transform:sizingTransform}),esm_compose(width,maxWidth,minWidth,height,maxHeight,minHeight,(0,style.ZP)({prop:"boxSizing"}));var styleFunctionSx_defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:spacing.o3},pt:{style:spacing.o3},pr:{style:spacing.o3},pb:{style:spacing.o3},pl:{style:spacing.o3},px:{style:spacing.o3},py:{style:spacing.o3},padding:{style:spacing.o3},paddingTop:{style:spacing.o3},paddingRight:{style:spacing.o3},paddingBottom:{style:spacing.o3},paddingLeft:{style:spacing.o3},paddingX:{style:spacing.o3},paddingY:{style:spacing.o3},paddingInline:{style:spacing.o3},paddingInlineStart:{style:spacing.o3},paddingInlineEnd:{style:spacing.o3},paddingBlock:{style:spacing.o3},paddingBlockStart:{style:spacing.o3},paddingBlockEnd:{style:spacing.o3},m:{style:spacing.e6},mt:{style:spacing.e6},mr:{style:spacing.e6},mb:{style:spacing.e6},ml:{style:spacing.e6},mx:{style:spacing.e6},my:{style:spacing.e6},margin:{style:spacing.e6},marginTop:{style:spacing.e6},marginRight:{style:spacing.e6},marginBottom:{style:spacing.e6},marginLeft:{style:spacing.e6},marginX:{style:spacing.e6},marginY:{style:spacing.e6},marginInline:{style:spacing.e6},marginInlineStart:{style:spacing.e6},marginInlineEnd:{style:spacing.e6},marginBlock:{style:spacing.e6},marginBlockStart:{style:spacing.e6},marginBlockEnd:{style:spacing.e6},displayPrint:{cssProperty:!1,transform:value=>({"@media print":{display:value}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},"./node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return extendSxProp}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/utils/deepmerge/deepmerge.js"),_defaultSxConfig__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js");const _excluded=["sx"],splitProps=props=>{var _props$theme$unstable,_props$theme;const result={systemProps:{},otherProps:{}},config=null!=(_props$theme$unstable=null==props||null==(_props$theme=props.theme)?void 0:_props$theme.unstable_sxConfig)?_props$theme$unstable:_defaultSxConfig__WEBPACK_IMPORTED_MODULE_0__.Z;return Object.keys(props).forEach((prop=>{config[prop]?result.systemProps[prop]=props[prop]:result.otherProps[prop]=props[prop]})),result};function extendSxProp(props){const{sx:inSx}=props,other=(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.Z)(props,_excluded),{systemProps:systemProps,otherProps:otherProps}=splitProps(other);let finalSx;return finalSx=Array.isArray(inSx)?[systemProps,...inSx]:"function"==typeof inSx?(...args)=>{const result=inSx(...args);return(0,_mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_2__.P)(result)?(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},systemProps,result):systemProps}:(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},systemProps,inSx),(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},otherProps,{sx:finalSx})}},"./node_modules/@mui/system/esm/styleFunctionSx/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _styleFunctionSx__WEBPACK_IMPORTED_MODULE_0__.Z},extendSxProp:function(){return _extendSxProp__WEBPACK_IMPORTED_MODULE_1__.Z},unstable_createStyleFunctionSx:function(){return _styleFunctionSx__WEBPACK_IMPORTED_MODULE_0__.n},unstable_defaultSxConfig:function(){return _defaultSxConfig__WEBPACK_IMPORTED_MODULE_2__.Z}});var _styleFunctionSx__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js"),_extendSxProp__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js"),_defaultSxConfig__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js")},"./node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return unstable_createStyleFunctionSx}});var _mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/utils/capitalize/capitalize.js"),_merge__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@mui/system/esm/merge.js"),_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/style.js"),_breakpoints__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/system/esm/breakpoints.js"),_defaultSxConfig__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js");function unstable_createStyleFunctionSx(){function getThemeValue(prop,val,theme,config){const props={[prop]:val,theme:theme},options=config[prop];if(!options)return{[prop]:val};const{cssProperty:cssProperty=prop,themeKey:themeKey,transform:transform,style:style}=options;if(null==val)return null;if("typography"===themeKey&&"inherit"===val)return{[prop]:val};const themeMapping=(0,_style__WEBPACK_IMPORTED_MODULE_0__.DW)(theme,themeKey)||{};if(style)return style(props);return(0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__.k9)(props,val,(propValueFinal=>{let value=(0,_style__WEBPACK_IMPORTED_MODULE_0__.Jq)(themeMapping,transform,propValueFinal);return propValueFinal===value&&"string"==typeof propValueFinal&&(value=(0,_style__WEBPACK_IMPORTED_MODULE_0__.Jq)(themeMapping,transform,`${prop}${"default"===propValueFinal?"":(0,_mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_1__.Z)(propValueFinal)}`,propValueFinal)),!1===cssProperty?value:{[cssProperty]:value}}))}return function styleFunctionSx(props){var _theme$unstable_sxCon;const{sx:sx,theme:theme={}}=props||{};if(!sx)return null;const config=null!=(_theme$unstable_sxCon=theme.unstable_sxConfig)?_theme$unstable_sxCon:_defaultSxConfig__WEBPACK_IMPORTED_MODULE_3__.Z;function traverse(sxInput){let sxObject=sxInput;if("function"==typeof sxInput)sxObject=sxInput(theme);else if("object"!=typeof sxInput)return sxInput;if(!sxObject)return null;const emptyBreakpoints=(0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__.W8)(theme.breakpoints),breakpointsKeys=Object.keys(emptyBreakpoints);let css=emptyBreakpoints;return Object.keys(sxObject).forEach((styleKey=>{const value=function callIfFn(maybeFn,arg){return"function"==typeof maybeFn?maybeFn(arg):maybeFn}(sxObject[styleKey],theme);if(null!=value)if("object"==typeof value)if(config[styleKey])css=(0,_merge__WEBPACK_IMPORTED_MODULE_4__.Z)(css,getThemeValue(styleKey,value,theme,config));else{const breakpointsValues=(0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__.k9)({theme:theme},value,(x=>({[styleKey]:x})));!function objectsHaveSameKeys(...objects){const allKeys=objects.reduce(((keys,object)=>keys.concat(Object.keys(object))),[]),union=new Set(allKeys);return objects.every((object=>union.size===Object.keys(object).length))}(breakpointsValues,value)?css=(0,_merge__WEBPACK_IMPORTED_MODULE_4__.Z)(css,breakpointsValues):css[styleKey]=styleFunctionSx({sx:value,theme:theme})}else css=(0,_merge__WEBPACK_IMPORTED_MODULE_4__.Z)(css,getThemeValue(styleKey,value,theme,config))})),(0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__.L7)(breakpointsKeys,css)}return Array.isArray(sx)?sx.map(traverse):traverse(sx)}}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"],__webpack_exports__.Z=styleFunctionSx},"./node_modules/@mui/system/esm/useTheme.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _createTheme__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/createTheme/createTheme.js"),_useThemeWithoutDefault__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/system/esm/useThemeWithoutDefault.js");const systemDefaultTheme=(0,_createTheme__WEBPACK_IMPORTED_MODULE_0__.Z)();__webpack_exports__.Z=function useTheme(defaultTheme=systemDefaultTheme){return(0,_useThemeWithoutDefault__WEBPACK_IMPORTED_MODULE_1__.Z)(defaultTheme)}},"./node_modules/@mui/system/esm/useThemeProps/useThemeProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useThemeProps}});var resolveProps=__webpack_require__("./node_modules/@mui/utils/resolveProps/resolveProps.js");var useTheme=__webpack_require__("./node_modules/@mui/system/esm/useTheme.js");function useThemeProps({props:props,name:name,defaultTheme:defaultTheme,themeId:themeId}){let theme=(0,useTheme.Z)(defaultTheme);themeId&&(theme=theme[themeId]||theme);const mergedProps=function getThemeProps(params){const{theme:theme,name:name,props:props}=params;return theme&&theme.components&&theme.components[name]&&theme.components[name].defaultProps?(0,resolveProps.Z)(theme.components[name].defaultProps,props):props}({theme:theme,name:name,props:props});return mergedProps}},"./node_modules/@mui/system/esm/useThemeWithoutDefault.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_mui_styled_engine__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js");__webpack_exports__.Z=function useTheme(defaultTheme=null){const contextTheme=react__WEBPACK_IMPORTED_MODULE_0__.useContext(_mui_styled_engine__WEBPACK_IMPORTED_MODULE_1__.T);return!contextTheme||function isObjectEmpty(obj){return 0===Object.keys(obj).length}(contextTheme)?defaultTheme:contextTheme}},"./node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js":function(__unused_webpack_module,__webpack_exports__){"use strict";const defaultGenerator=componentName=>componentName,ClassNameGenerator=(()=>{let generate=defaultGenerator;return{configure(generator){generate=generator},generate(componentName){return generate(componentName)},reset(){generate=defaultGenerator}}})();__webpack_exports__.Z=ClassNameGenerator},"./node_modules/@mui/utils/capitalize/capitalize.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return capitalize}});var _mui_utils_formatMuiErrorMessage__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js");function capitalize(string){if("string"!=typeof string)throw new Error((0,_mui_utils_formatMuiErrorMessage__WEBPACK_IMPORTED_MODULE_0__.Z)(7));return string.charAt(0).toUpperCase()+string.slice(1)}},"./node_modules/@mui/utils/capitalize/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _capitalize__WEBPACK_IMPORTED_MODULE_0__.Z}});var _capitalize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/capitalize/capitalize.js")},"./node_modules/@mui/utils/clamp/clamp.js":function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z=function clamp(val,min=Number.MIN_SAFE_INTEGER,max=Number.MAX_SAFE_INTEGER){return Math.max(min,Math.min(val,max))}},"./node_modules/@mui/utils/clamp/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _clamp__WEBPACK_IMPORTED_MODULE_0__.Z}});var _clamp__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/clamp/clamp.js")},"./node_modules/@mui/utils/composeClasses/composeClasses.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function composeClasses(slots,getUtilityClass,classes=void 0){const output={};return Object.keys(slots).forEach((slot=>{output[slot]=slots[slot].reduce(((acc,key)=>{if(key){const utilityClass=getUtilityClass(key);""!==utilityClass&&acc.push(utilityClass),classes&&classes[key]&&acc.push(classes[key])}return acc}),[]).join(" ")})),output}__webpack_require__.d(__webpack_exports__,{Z:function(){return composeClasses}})},"./node_modules/@mui/utils/deepmerge/deepmerge.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return isPlainObject},Z:function(){return deepmerge}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js");function isPlainObject(item){if("object"!=typeof item||null===item)return!1;const prototype=Object.getPrototypeOf(item);return!(null!==prototype&&prototype!==Object.prototype&&null!==Object.getPrototypeOf(prototype)||Symbol.toStringTag in item||Symbol.iterator in item)}function deepClone(source){if(!isPlainObject(source))return source;const output={};return Object.keys(source).forEach((key=>{output[key]=deepClone(source[key])})),output}function deepmerge(target,source,options={clone:!0}){const output=options.clone?(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},target):target;return isPlainObject(target)&&isPlainObject(source)&&Object.keys(source).forEach((key=>{"__proto__"!==key&&(isPlainObject(source[key])&&key in target&&isPlainObject(target[key])?output[key]=deepmerge(target[key],source[key],options):options.clone?output[key]=isPlainObject(source[key])?deepClone(source[key]):source[key]:output[key]=source[key])})),output}},"./node_modules/@mui/utils/deepmerge/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _deepmerge__WEBPACK_IMPORTED_MODULE_0__.Z},isPlainObject:function(){return _deepmerge__WEBPACK_IMPORTED_MODULE_0__.P}});var _deepmerge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/deepmerge/deepmerge.js")},"./node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function formatMuiErrorMessage(code){let url="https://mui.com/production-error/?code="+code;for(let i=1;i{result[slot]=(0,_generateUtilityClass__WEBPACK_IMPORTED_MODULE_0__.ZP)(componentName,slot,globalStatePrefix)})),result}},"./node_modules/@mui/utils/getDisplayName/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return getDisplayName},getFunctionName:function(){return getFunctionName}});var react_is=__webpack_require__("./node_modules/@mui/utils/node_modules/react-is/index.js");const fnNameMatchRegex=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function getFunctionName(fn){const match=`${fn}`.match(fnNameMatchRegex);return match&&match[1]||""}function getFunctionComponentName(Component,fallback=""){return Component.displayName||Component.name||getFunctionName(Component)||fallback}function getWrappedName(outerType,innerType,wrapperName){const functionName=getFunctionComponentName(innerType);return outerType.displayName||(""!==functionName?`${wrapperName}(${functionName})`:wrapperName)}function getDisplayName(Component){if(null!=Component){if("string"==typeof Component)return Component;if("function"==typeof Component)return getFunctionComponentName(Component,"Component");if("object"==typeof Component)switch(Component.$$typeof){case react_is.ForwardRef:return getWrappedName(Component,Component.render,"ForwardRef");case react_is.Memo:return getWrappedName(Component,Component.type,"memo");default:return}}}},"./node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js":function(__unused_webpack_module,exports){"use strict";var u,b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen");function v(a){if("object"==typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}u=Symbol.for("react.module.reference"),exports.ForwardRef=l,exports.Memo=p},"./node_modules/@mui/utils/node_modules/react-is/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";module.exports=__webpack_require__("./node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/@mui/utils/resolveProps/resolveProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return resolveProps}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js");function resolveProps(defaultProps,props){const output=(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},props);return Object.keys(defaultProps).forEach((propName=>{if(propName.toString().match(/^(components|slots)$/))output[propName]=(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},defaultProps[propName],output[propName]);else if(propName.toString().match(/^(componentsProps|slotProps)$/)){const defaultSlotProps=defaultProps[propName]||{},slotProps=props[propName];output[propName]={},slotProps&&Object.keys(slotProps)?defaultSlotProps&&Object.keys(defaultSlotProps)?(output[propName]=(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},slotProps),Object.keys(defaultSlotProps).forEach((slotPropName=>{output[propName][slotPropName]=resolveProps(defaultSlotProps[slotPropName],slotProps[slotPropName])}))):output[propName]=slotProps:output[propName]=defaultSlotProps}else void 0===output[propName]&&(output[propName]=defaultProps[propName])})),output}},"./node_modules/@mui/utils/setRef/setRef.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function setRef(ref,value){"function"==typeof ref?ref(value):ref&&(ref.current=value)}__webpack_require__.d(__webpack_exports__,{Z:function(){return setRef}})},"./node_modules/@mui/utils/useForkRef/useForkRef.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useForkRef}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_setRef__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/utils/setRef/setRef.js");function useForkRef(...refs){return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>refs.every((ref=>null==ref))?null:instance=>{refs.forEach((ref=>{(0,_setRef__WEBPACK_IMPORTED_MODULE_1__.Z)(ref,instance)}))}),refs)}},"./node_modules/@mui/utils/useTimeout/useTimeout.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{V:function(){return Timeout},Z:function(){return useTimeout}});var react=__webpack_require__("./node_modules/react/index.js");const UNINITIALIZED={};const EMPTY=[];class Timeout{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Timeout}start(delay,fn){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,fn()}),delay)}}function useTimeout(){const timeout=function useLazyRef(init,initArg){const ref=react.useRef(UNINITIALIZED);return ref.current===UNINITIALIZED&&(ref.current=init(initArg)),ref}(Timeout.create).current;return function useOnMount(fn){react.useEffect(fn,EMPTY)}(timeout.disposeEffect),timeout}},"./node_modules/clsx/dist/clsx.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t=0)continue;target[key]=source[key]}return target}__webpack_require__.d(__webpack_exports__,{Z:function(){return _objectWithoutPropertiesLoose}})},"./node_modules/@babel/runtime/helpers/extends.js":function(module){function _extends(){return module.exports=_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0)continue;target[key]=source[key]}return target},module.exports.__esModule=!0,module.exports.default=module.exports},"./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return createCache}});var StyleSheet=function(){function StyleSheet(options){var _this=this;this._insertTag=function(tag){var before;before=0===_this.tags.length?_this.insertionPoint?_this.insertionPoint.nextSibling:_this.prepend?_this.container.firstChild:_this.before:_this.tags[_this.tags.length-1].nextSibling,_this.container.insertBefore(tag,before),_this.tags.push(tag)},this.isSpeedy=void 0===options.speedy||options.speedy,this.tags=[],this.ctr=0,this.nonce=options.nonce,this.key=options.key,this.container=options.container,this.prepend=options.prepend,this.insertionPoint=options.insertionPoint,this.before=null}var _proto=StyleSheet.prototype;return _proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag)},_proto.insert=function insert(rule){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function createStyleElement(options){var tag=document.createElement("style");return tag.setAttribute("data-emotion",options.key),void 0!==options.nonce&&tag.setAttribute("nonce",options.nonce),tag.appendChild(document.createTextNode("")),tag.setAttribute("data-s",""),tag}(this));var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=function sheetForTag(tag){if(tag.sheet)return tag.sheet;for(var i=0;i0?Utility_charat(characters,--position):0,column--,10===character&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(index,count){for(;--count&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(index,caret()+(count<6&&32==peek()&&32==next()))}function delimiter(type){for(;next();)switch(character){case type:return position;case 34:case 39:34!==type&&39!==type&&delimiter(character);break;case 40:41===type&&delimiter(type);break;case 92:next()}return position}function commenter(type,index){for(;next()&&type+character!==57&&(type+character!==84||47!==peek()););return"/*"+slice(index,position-1)+"*"+Utility_from(47===type?type:next())}function identifier(index){for(;!token(peek());)next();return slice(index,position)}var COMMENT="comm",Enum_RULESET="rule",Enum_DECLARATION="decl";function Serializer_serialize(children,callback){for(var output="",length=Utility_sizeof(children),i=0;i0&&Utility_strlen(characters)-length&&Utility_append(property>32?declaration(characters+";",rule,parent,length-1):declaration(Utility_replace(characters," ","")+";",rule,parent,length-2),declarations);break;case 59:characters+=";";default:if(Utility_append(reference=ruleset(characters,root,parent,index,offset,rules,points,type,props=[],children=[],length),rulesets),123===character)if(0===offset)parse(characters,root,reference,reference,props,rulesets,length,points,children);else switch(99===atrule&&110===Utility_charat(characters,3)?100:atrule){case 100:case 108:case 109:case 115:parse(value,reference,reference,rule&&Utility_append(ruleset(value,reference,reference,0,0,rules,points,type,rules,props=[],length),children),rules,children,length,points,rule?props:children);break;default:parse(characters,reference,reference,reference,[""],children,0,points,children)}}index=offset=property=0,variable=ampersand=1,type=characters="",length=pseudo;break;case 58:length=1+Utility_strlen(characters),property=previous;default:if(variable<1)if(123==character)--variable;else if(125==character&&0==variable++&&125==prev())continue;switch(characters+=Utility_from(character),character*variable){case 38:ampersand=offset>0?1:(characters+="\f",-1);break;case 44:points[index++]=(Utility_strlen(characters)-1)*ampersand,ampersand=1;break;case 64:45===peek()&&(characters+=delimit(next())),atrule=peek(),offset=length=Utility_strlen(type=characters+=identifier(caret())),character++;break;case 45:45===previous&&2==Utility_strlen(characters)&&(variable=0)}}return rulesets}function ruleset(value,root,parent,index,offset,rules,points,type,props,children,length){for(var post=offset-1,rule=0===offset?rules:[""],size=Utility_sizeof(rule),i=0,j=0,k=0;i0?rule[x]+" "+y:Utility_replace(y,/&\f/g,rule[x])))&&(props[k++]=z);return node(value,root,parent,0===offset?Enum_RULESET:type,props,children,length)}function comment(value,root,parent){return node(value,root,parent,COMMENT,Utility_from(function Tokenizer_char(){return character}()),Utility_substr(value,2,-2),0)}function declaration(value,root,parent,length){return node(value,root,parent,Enum_DECLARATION,Utility_substr(value,0,length),Utility_substr(value,length+1,-1),length)}var identifierWithPointTracking=function identifierWithPointTracking(begin,points,index){for(var previous=0,character=0;previous=character,character=peek(),38===previous&&12===character&&(points[index]=1),!token(character);)next();return slice(begin,position)},getRules=function getRules(value,points){return dealloc(function toRules(parsed,points){var index=-1,character=44;do{switch(token(character)){case 0:38===character&&12===peek()&&(points[index]=1),parsed[index]+=identifierWithPointTracking(position-1,points,index);break;case 2:parsed[index]+=delimit(character);break;case 4:if(44===character){parsed[++index]=58===peek()?"&\f":"",points[index]=parsed[index].length;break}default:parsed[index]+=Utility_from(character)}}while(character=next());return parsed}(alloc(value),points))},fixedElements=new WeakMap,compat=function compat(element){if("rule"===element.type&&element.parent&&!(element.length<1)){for(var value=element.value,parent=element.parent,isImplicitRule=element.column===parent.column&&element.line===parent.line;"rule"!==parent.type;)if(!(parent=parent.parent))return;if((1!==element.props.length||58===value.charCodeAt(0)||fixedElements.get(parent))&&!isImplicitRule){fixedElements.set(element,!0);for(var points=[],rules=getRules(value,points),parentRules=parent.props,i=0,k=0;i6)switch(Utility_charat(value,length+1)){case 109:if(45!==Utility_charat(value,length+4))break;case 102:return Utility_replace(value,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==Utility_charat(value,length+3)?"$3":"$2-$3"))+value;case 115:return~indexof(value,"stretch")?emotion_cache_browser_esm_prefix(Utility_replace(value,"stretch","fill-available"),length)+value:value}break;case 4949:if(115!==Utility_charat(value,length+1))break;case 6444:switch(Utility_charat(value,Utility_strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return Utility_replace(value,":",":-webkit-")+value;case 101:return Utility_replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===Utility_charat(value,14)?"inline-":"")+"box$3$1-webkit-$2$3$1-ms-$2box$3")+value}break;case 5936:switch(Utility_charat(value,length+11)){case 114:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return"-webkit-"+value+"-ms-"+Utility_replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return"-webkit-"+value+"-ms-"+value+value}return value}var defaultStylisPlugins=[function prefixer(element,index,children,callback){if(element.length>-1&&!element.return)switch(element.type){case Enum_DECLARATION:element.return=emotion_cache_browser_esm_prefix(element.value,element.length);break;case"@keyframes":return Serializer_serialize([Tokenizer_copy(element,{value:Utility_replace(element.value,"@","@-webkit-")})],callback);case Enum_RULESET:if(element.length)return function Utility_combine(array,callback){return array.map(callback).join("")}(element.props,(function(value){switch(function Utility_match(value,pattern){return(value=pattern.exec(value))?value[0]:value}(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Serializer_serialize([Tokenizer_copy(element,{props:[Utility_replace(value,/:(read-\w+)/,":-moz-$1")]})],callback);case"::placeholder":return Serializer_serialize([Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,":-webkit-input-$1")]}),Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,":-moz-$1")]}),Tokenizer_copy(element,{props:[Utility_replace(value,/:(plac\w+)/,"-ms-input-$1")]})],callback)}return""}))}}],createCache=function createCache(options){var key=options.key;if("css"===key){var ssrStyles=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(ssrStyles,(function(node){-1!==node.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(node),node.setAttribute("data-s",""))}))}var stylisPlugins=options.stylisPlugins||defaultStylisPlugins;var container,_insert,inserted={},nodesToHydrate=[];container=options.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+key+' "]'),(function(node){for(var attrib=node.getAttribute("data-emotion").split(" "),i=1;i=4;++i,len-=4)k=1540483477*(65535&(k=255&str.charCodeAt(i)|(255&str.charCodeAt(++i))<<8|(255&str.charCodeAt(++i))<<16|(255&str.charCodeAt(++i))<<24))+(59797*(k>>>16)<<16),h=1540483477*(65535&(k^=k>>>24))+(59797*(k>>>16)<<16)^1540483477*(65535&h)+(59797*(h>>>16)<<16);switch(len){case 3:h^=(255&str.charCodeAt(i+2))<<16;case 2:h^=(255&str.charCodeAt(i+1))<<8;case 1:h=1540483477*(65535&(h^=255&str.charCodeAt(i)))+(59797*(h>>>16)<<16)}return(((h=1540483477*(65535&(h^=h>>>13))+(59797*(h>>>16)<<16))^h>>>15)>>>0).toString(36)}(styles)+identifierName;return{name:name,styles:styles,next:cursor}}},"./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{L:function(){return useInsertionEffectAlwaysWithSyncFallback},j:function(){return useInsertionEffectWithLayoutFallback}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),useInsertionEffect=!!(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__,2))).useInsertionEffect&&(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__,2))).useInsertionEffect,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect||function syncFallback(create){return create()},useInsertionEffectWithLayoutFallback=useInsertionEffect||react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect},"./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{My:function(){return insertStyles},fp:function(){return getRegisteredStyles},hC:function(){return registerStyles}});function getRegisteredStyles(registered,registeredStyles,classNames){var rawClassName="";return classNames.split(" ").forEach((function(className){void 0!==registered[className]?registeredStyles.push(registered[className]+";"):rawClassName+=className+" "})),rawClassName}var registerStyles=function registerStyles(cache,serialized,isStringTag){var className=cache.key+"-"+serialized.name;!1===isStringTag&&void 0===cache.registered[className]&&(cache.registered[className]=serialized.styles)},insertStyles=function insertStyles(cache,serialized,isStringTag){registerStyles(cache,serialized,isStringTag);var className=cache.key+"-"+serialized.name;if(void 0===cache.inserted[serialized.name]){var current=serialized;do{cache.insert(serialized===current?"."+className:"",current,cache.sheet,!0),current=current.next}while(void 0!==current)}}},"./node_modules/@mui/material/styles/createTheme.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return styles_createTheme}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),formatMuiErrorMessage=__webpack_require__("./node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js"),deepmerge=__webpack_require__("./node_modules/@mui/utils/deepmerge/deepmerge.js"),defaultSxConfig=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js"),styleFunctionSx=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js"),createTheme=__webpack_require__("./node_modules/@mui/system/esm/createTheme/createTheme.js");var colorManipulator=__webpack_require__("./node_modules/@mui/system/colorManipulator.js");var colors_common={black:"#000",white:"#fff"};var colors_grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var colors_purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var colors_red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var colors_orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var colors_blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var colors_lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var colors_green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const _excluded=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:colors_common.white,default:colors_common.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:colors_common.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:colors_common.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(intent,direction,shade,tonalOffset){const tonalOffsetLight=tonalOffset.light||tonalOffset,tonalOffsetDark=tonalOffset.dark||1.5*tonalOffset;intent[direction]||(intent.hasOwnProperty(shade)?intent[direction]=intent[shade]:"light"===direction?intent.light=(0,colorManipulator.$n)(intent.main,tonalOffsetLight):"dark"===direction&&(intent.dark=(0,colorManipulator._j)(intent.main,tonalOffsetDark)))}function createPalette(palette){const{mode:mode="light",contrastThreshold:contrastThreshold=3,tonalOffset:tonalOffset=.2}=palette,other=(0,objectWithoutPropertiesLoose.Z)(palette,_excluded),primary=palette.primary||function getDefaultPrimary(mode="light"){return"dark"===mode?{main:colors_blue[200],light:colors_blue[50],dark:colors_blue[400]}:{main:colors_blue[700],light:colors_blue[400],dark:colors_blue[800]}}(mode),secondary=palette.secondary||function getDefaultSecondary(mode="light"){return"dark"===mode?{main:colors_purple[200],light:colors_purple[50],dark:colors_purple[400]}:{main:colors_purple[500],light:colors_purple[300],dark:colors_purple[700]}}(mode),error=palette.error||function getDefaultError(mode="light"){return"dark"===mode?{main:colors_red[500],light:colors_red[300],dark:colors_red[700]}:{main:colors_red[700],light:colors_red[400],dark:colors_red[800]}}(mode),info=palette.info||function getDefaultInfo(mode="light"){return"dark"===mode?{main:colors_lightBlue[400],light:colors_lightBlue[300],dark:colors_lightBlue[700]}:{main:colors_lightBlue[700],light:colors_lightBlue[500],dark:colors_lightBlue[900]}}(mode),success=palette.success||function getDefaultSuccess(mode="light"){return"dark"===mode?{main:colors_green[400],light:colors_green[300],dark:colors_green[700]}:{main:colors_green[800],light:colors_green[500],dark:colors_green[900]}}(mode),warning=palette.warning||function getDefaultWarning(mode="light"){return"dark"===mode?{main:colors_orange[400],light:colors_orange[300],dark:colors_orange[700]}:{main:"#ed6c02",light:colors_orange[500],dark:colors_orange[900]}}(mode);function getContrastText(background){return(0,colorManipulator.mi)(background,dark.text.primary)>=contrastThreshold?dark.text.primary:light.text.primary}const augmentColor=({color:color,name:name,mainShade:mainShade=500,lightShade:lightShade=300,darkShade:darkShade=700})=>{if(!(color=(0,esm_extends.Z)({},color)).main&&color[mainShade]&&(color.main=color[mainShade]),!color.hasOwnProperty("main"))throw new Error((0,formatMuiErrorMessage.Z)(11,name?` (${name})`:"",mainShade));if("string"!=typeof color.main)throw new Error((0,formatMuiErrorMessage.Z)(12,name?` (${name})`:"",JSON.stringify(color.main)));return addLightOrDark(color,"light",lightShade,tonalOffset),addLightOrDark(color,"dark",darkShade,tonalOffset),color.contrastText||(color.contrastText=getContrastText(color.main)),color},modes={dark:dark,light:light};return(0,deepmerge.Z)((0,esm_extends.Z)({common:(0,esm_extends.Z)({},colors_common),mode:mode,primary:augmentColor({color:primary,name:"primary"}),secondary:augmentColor({color:secondary,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:augmentColor({color:error,name:"error"}),warning:augmentColor({color:warning,name:"warning"}),info:augmentColor({color:info,name:"info"}),success:augmentColor({color:success,name:"success"}),grey:colors_grey,contrastThreshold:contrastThreshold,getContrastText:getContrastText,augmentColor:augmentColor,tonalOffset:tonalOffset},modes[mode]),other)}const createTypography_excluded=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(palette,typography){const _ref="function"==typeof typography?typography(palette):typography,{fontFamily:fontFamily=defaultFontFamily,fontSize:fontSize=14,fontWeightLight:fontWeightLight=300,fontWeightRegular:fontWeightRegular=400,fontWeightMedium:fontWeightMedium=500,fontWeightBold:fontWeightBold=700,htmlFontSize:htmlFontSize=16,allVariants:allVariants,pxToRem:pxToRem2}=_ref,other=(0,objectWithoutPropertiesLoose.Z)(_ref,createTypography_excluded);const coef=fontSize/14,pxToRem=pxToRem2||(size=>size/htmlFontSize*coef+"rem"),buildVariant=(fontWeight,size,lineHeight,letterSpacing,casing)=>{return(0,esm_extends.Z)({fontFamily:fontFamily,fontWeight:fontWeight,fontSize:pxToRem(size),lineHeight:lineHeight},fontFamily===defaultFontFamily?{letterSpacing:(value=letterSpacing/size,Math.round(1e5*value)/1e5)+"em"}:{},casing,allVariants);var value},variants={h1:buildVariant(fontWeightLight,96,1.167,-1.5),h2:buildVariant(fontWeightLight,60,1.2,-.5),h3:buildVariant(fontWeightRegular,48,1.167,0),h4:buildVariant(fontWeightRegular,34,1.235,.25),h5:buildVariant(fontWeightRegular,24,1.334,0),h6:buildVariant(fontWeightMedium,20,1.6,.15),subtitle1:buildVariant(fontWeightRegular,16,1.75,.15),subtitle2:buildVariant(fontWeightMedium,14,1.57,.1),body1:buildVariant(fontWeightRegular,16,1.5,.15),body2:buildVariant(fontWeightRegular,14,1.43,.15),button:buildVariant(fontWeightMedium,14,1.75,.4,caseAllCaps),caption:buildVariant(fontWeightRegular,12,1.66,.4),overline:buildVariant(fontWeightRegular,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,deepmerge.Z)((0,esm_extends.Z)({htmlFontSize:htmlFontSize,pxToRem:pxToRem,fontFamily:fontFamily,fontSize:fontSize,fontWeightLight:fontWeightLight,fontWeightRegular:fontWeightRegular,fontWeightMedium:fontWeightMedium,fontWeightBold:fontWeightBold},variants),other,{clone:!1})}function createShadow(...px){return[`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,0.2)`,`${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,0.14)`,`${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,0.12)`].join(",")}var styles_shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],createTransitions=__webpack_require__("./node_modules/@mui/material/styles/createTransitions.js");var styles_zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const createTheme_excluded=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme_createTheme(options={},...args){const{mixins:mixinsInput={},palette:paletteInput={},transitions:transitionsInput={},typography:typographyInput={}}=options,other=(0,objectWithoutPropertiesLoose.Z)(options,createTheme_excluded);if(options.vars)throw new Error((0,formatMuiErrorMessage.Z)(18));const palette=createPalette(paletteInput),systemTheme=(0,createTheme.Z)(options);let muiTheme=(0,deepmerge.Z)(systemTheme,{mixins:(breakpoints=systemTheme.breakpoints,mixins=mixinsInput,(0,esm_extends.Z)({toolbar:{minHeight:56,[breakpoints.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[breakpoints.up("sm")]:{minHeight:64}}},mixins)),palette:palette,shadows:styles_shadows.slice(),typography:createTypography(palette,typographyInput),transitions:(0,createTransitions.ZP)(transitionsInput),zIndex:(0,esm_extends.Z)({},styles_zIndex)});var breakpoints,mixins;return muiTheme=(0,deepmerge.Z)(muiTheme,other),muiTheme=args.reduce(((acc,argument)=>(0,deepmerge.Z)(acc,argument)),muiTheme),muiTheme.unstable_sxConfig=(0,esm_extends.Z)({},defaultSxConfig.Z,null==other?void 0:other.unstable_sxConfig),muiTheme.unstable_sx=function sx(props){return(0,styleFunctionSx.Z)({sx:props,theme:this})},muiTheme}var styles_createTheme=createTheme_createTheme},"./node_modules/@mui/material/styles/createTransitions.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{ZP:function(){return createTransitions},x9:function(){return duration}});var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js");const _excluded=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(milliseconds){return`${Math.round(milliseconds)}ms`}function getAutoHeightDuration(height){if(!height)return 0;const constant=height/36;return Math.round(10*(4+15*constant**.25+constant/5))}function createTransitions(inputTransitions){const mergedEasing=(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},easing,inputTransitions.easing),mergedDuration=(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},duration,inputTransitions.duration);return(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({getAutoHeightDuration:getAutoHeightDuration,create:(props=["all"],options={})=>{const{duration:durationOption=mergedDuration.standard,easing:easingOption=mergedEasing.easeInOut,delay:delay=0}=options;(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.Z)(options,_excluded);return(Array.isArray(props)?props:[props]).map((animatedProp=>`${animatedProp} ${"string"==typeof durationOption?durationOption:formatMs(durationOption)} ${easingOption} ${"string"==typeof delay?delay:formatMs(delay)}`)).join(",")}},inputTransitions,{easing:mergedEasing,duration:mergedDuration})}},"./node_modules/@mui/material/styles/defaultTheme.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";const defaultTheme=(0,__webpack_require__("./node_modules/@mui/material/styles/createTheme.js").Z)();__webpack_exports__.Z=defaultTheme},"./node_modules/@mui/material/styles/identifier.js":function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z="$$material"},"./node_modules/@mui/material/styles/rootShouldForwardProp.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _slotShouldForwardProp__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/material/styles/slotShouldForwardProp.js");__webpack_exports__.Z=prop=>(0,_slotShouldForwardProp__WEBPACK_IMPORTED_MODULE_0__.Z)(prop)&&"classes"!==prop},"./node_modules/@mui/material/styles/slotShouldForwardProp.js":function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z=function slotShouldForwardProp(prop){return"ownerState"!==prop&&"theme"!==prop&&"sx"!==prop&&"as"!==prop}},"./node_modules/@mui/material/styles/styled.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_system_createStyled__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/createStyled.js"),_defaultTheme__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/material/styles/defaultTheme.js"),_identifier__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/material/styles/identifier.js"),_rootShouldForwardProp__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@mui/material/styles/rootShouldForwardProp.js");const styled=(0,_mui_system_createStyled__WEBPACK_IMPORTED_MODULE_0__.ZP)({themeId:_identifier__WEBPACK_IMPORTED_MODULE_1__.Z,defaultTheme:_defaultTheme__WEBPACK_IMPORTED_MODULE_2__.Z,rootShouldForwardProp:_rootShouldForwardProp__WEBPACK_IMPORTED_MODULE_3__.Z});__webpack_exports__.ZP=styled},"./node_modules/@mui/material/styles/useThemeProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useThemeProps}});var _mui_system_useThemeProps__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/useThemeProps/useThemeProps.js"),_defaultTheme__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/material/styles/defaultTheme.js"),_identifier__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/material/styles/identifier.js");function useThemeProps({props:props,name:name}){return(0,_mui_system_useThemeProps__WEBPACK_IMPORTED_MODULE_0__.Z)({props:props,name:name,defaultTheme:_defaultTheme__WEBPACK_IMPORTED_MODULE_1__.Z,themeId:_identifier__WEBPACK_IMPORTED_MODULE_2__.Z})}},"./node_modules/@mui/material/utils/capitalize.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/capitalize/capitalize.js");__webpack_exports__.Z=_mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_0__.Z},"./node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return GlobalStyles}});__webpack_require__("./node_modules/react/index.js");var _emotion_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");function GlobalStyles(props){const{styles:styles,defaultTheme:defaultTheme={}}=props,globalStyles="function"==typeof styles?themeInput=>styles(function isEmpty(obj){return null==obj||0===Object.keys(obj).length}(themeInput)?defaultTheme:themeInput):styles;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_emotion_react__WEBPACK_IMPORTED_MODULE_2__.xB,{styles:globalStyles})}},"./node_modules/@mui/styled-engine/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{GlobalStyles:function(){return GlobalStyles.Z},StyledEngineProvider:function(){return StyledEngineProvider},ThemeContext:function(){return emotion_element_43c6fea0_browser_esm.T},css:function(){return emotion_react_browser_esm.iv},default:function(){return styled},internal_processStyles:function(){return internal_processStyles},keyframes:function(){return emotion_react_browser_esm.F4}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),emotion_is_prop_valid_esm=__webpack_require__("./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"),emotion_element_43c6fea0_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js"),emotion_utils_browser_esm=__webpack_require__("./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"),emotion_serialize_browser_esm=__webpack_require__("./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"),emotion_use_insertion_effect_with_fallbacks_browser_esm=__webpack_require__("./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"),testOmitPropsOnStringTag=emotion_is_prop_valid_esm.Z,testOmitPropsOnComponent=function testOmitPropsOnComponent(key){return"theme"!==key},getDefaultShouldForwardProp=function getDefaultShouldForwardProp(tag){return"string"==typeof tag&&tag.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function composeShouldForwardProps(tag,options,isReal){var shouldForwardProp;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName)}:optionsShouldForwardProp}return"function"!=typeof shouldForwardProp&&isReal&&(shouldForwardProp=tag.__emotion_forwardProp),shouldForwardProp},Insertion=function Insertion(_ref){var cache=_ref.cache,serialized=_ref.serialized,isStringTag=_ref.isStringTag;return(0,emotion_utils_browser_esm.hC)(cache,serialized,isStringTag),(0,emotion_use_insertion_effect_with_fallbacks_browser_esm.L)((function(){return(0,emotion_utils_browser_esm.My)(cache,serialized,isStringTag)})),null},newStyled=function createStyled(tag,options){var identifierName,targetClassName,isReal=tag.__emotion_real===tag,baseTag=isReal&&tag.__emotion_base||tag;void 0!==options&&(identifierName=options.label,targetClassName=options.target);var shouldForwardProp=composeShouldForwardProps(tag,options,isReal),defaultShouldForwardProp=shouldForwardProp||getDefaultShouldForwardProp(baseTag),shouldUseAs=!defaultShouldForwardProp("as");return function(){var args=arguments,styles=isReal&&void 0!==tag.__emotion_styles?tag.__emotion_styles.slice(0):[];if(void 0!==identifierName&&styles.push("label:"+identifierName+";"),null==args[0]||void 0===args[0].raw)styles.push.apply(styles,args);else{0,styles.push(args[0][0]);for(var len=args.length,i=1;i{Array.isArray(tag.__emotion_styles)&&(tag.__emotion_styles=processor(tag.__emotion_styles))}},"./node_modules/@mui/system/colorManipulator.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Fq=alpha,exports._j=darken,exports.mi=function getContrastRatio(foreground,background){const lumA=getLuminance(foreground),lumB=getLuminance(background);return(Math.max(lumA,lumB)+.05)/(Math.min(lumA,lumB)+.05)},exports.$n=lighten;var _formatMuiErrorMessage2=_interopRequireDefault(__webpack_require__("./node_modules/@mui/utils/formatMuiErrorMessage/index.js")),_clamp=_interopRequireDefault(__webpack_require__("./node_modules/@mui/utils/clamp/index.js"));function clampWrapper(value,min=0,max=1){return(0,_clamp.default)(value,min,max)}function hexToRgb(color){color=color.slice(1);const re=new RegExp(`.{1,${color.length>=6?2:1}}`,"g");let colors=color.match(re);return colors&&1===colors[0].length&&(colors=colors.map((n=>n+n))),colors?`rgb${4===colors.length?"a":""}(${colors.map(((n,index)=>index<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3)).join(", ")})`:""}function decomposeColor(color){if(color.type)return color;if("#"===color.charAt(0))return decomposeColor(hexToRgb(color));const marker=color.indexOf("("),type=color.substring(0,marker);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(type))throw new Error((0,_formatMuiErrorMessage2.default)(9,color));let colorSpace,values=color.substring(marker+1,color.length-1);if("color"===type){if(values=values.split(" "),colorSpace=values.shift(),4===values.length&&"/"===values[3].charAt(0)&&(values[3]=values[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(colorSpace))throw new Error((0,_formatMuiErrorMessage2.default)(10,colorSpace))}else values=values.split(",");return values=values.map((value=>parseFloat(value))),{type:type,values:values,colorSpace:colorSpace}}const colorChannel=color=>{const decomposedColor=decomposeColor(color);return decomposedColor.values.slice(0,3).map(((val,idx)=>-1!==decomposedColor.type.indexOf("hsl")&&0!==idx?`${val}%`:val)).join(" ")};function recomposeColor(color){const{type:type,colorSpace:colorSpace}=color;let{values:values}=color;return-1!==type.indexOf("rgb")?values=values.map(((n,i)=>i<3?parseInt(n,10):n)):-1!==type.indexOf("hsl")&&(values[1]=`${values[1]}%`,values[2]=`${values[2]}%`),values=-1!==type.indexOf("color")?`${colorSpace} ${values.join(" ")}`:`${values.join(", ")}`,`${type}(${values})`}function hslToRgb(color){color=decomposeColor(color);const{values:values}=color,h=values[0],s=values[1]/100,l=values[2]/100,a=s*Math.min(l,1-l),f=(n,k=(n+h/30)%12)=>l-a*Math.max(Math.min(k-3,9-k,1),-1);let type="rgb";const rgb=[Math.round(255*f(0)),Math.round(255*f(8)),Math.round(255*f(4))];return"hsla"===color.type&&(type+="a",rgb.push(values[3])),recomposeColor({type:type,values:rgb})}function getLuminance(color){let rgb="hsl"===(color=decomposeColor(color)).type||"hsla"===color.type?decomposeColor(hslToRgb(color)).values:color.values;return rgb=rgb.map((val=>("color"!==color.type&&(val/=255),val<=.03928?val/12.92:((val+.055)/1.055)**2.4))),Number((.2126*rgb[0]+.7152*rgb[1]+.0722*rgb[2]).toFixed(3))}function alpha(color,value){return color=decomposeColor(color),value=clampWrapper(value),"rgb"!==color.type&&"hsl"!==color.type||(color.type+="a"),"color"===color.type?color.values[3]=`/${value}`:color.values[3]=value,recomposeColor(color)}function darken(color,coefficient){if(color=decomposeColor(color),coefficient=clampWrapper(coefficient),-1!==color.type.indexOf("hsl"))color.values[2]*=1-coefficient;else if(-1!==color.type.indexOf("rgb")||-1!==color.type.indexOf("color"))for(let i=0;i<3;i+=1)color.values[i]*=1-coefficient;return recomposeColor(color)}function lighten(color,coefficient){if(color=decomposeColor(color),coefficient=clampWrapper(coefficient),-1!==color.type.indexOf("hsl"))color.values[2]+=(100-color.values[2])*coefficient;else if(-1!==color.type.indexOf("rgb"))for(let i=0;i<3;i+=1)color.values[i]+=(255-color.values[i])*coefficient;else if(-1!==color.type.indexOf("color"))for(let i=0;i<3;i+=1)color.values[i]+=(1-color.values[i])*coefficient;return recomposeColor(color)}function emphasize(color,coefficient=.15){return getLuminance(color)>.5?darken(color,coefficient):lighten(color,coefficient)}},"./node_modules/@mui/system/createStyled.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.ZP=function createStyled(input={}){const{themeId:themeId,defaultTheme:defaultTheme=systemDefaultTheme,rootShouldForwardProp:rootShouldForwardProp=shouldForwardProp,slotShouldForwardProp:slotShouldForwardProp=shouldForwardProp}=input,systemSx=props=>(0,_styleFunctionSx.default)((0,_extends2.default)({},props,{theme:resolveTheme((0,_extends2.default)({},props,{defaultTheme:defaultTheme,themeId:themeId}))}));return systemSx.__mui_systemSx=!0,(tag,inputOptions={})=>{(0,_styledEngine.internal_processStyles)(tag,(styles=>styles.filter((style=>!(null!=style&&style.__mui_systemSx)))));const{name:componentName,slot:componentSlot,skipVariantsResolver:inputSkipVariantsResolver,skipSx:inputSkipSx,overridesResolver:overridesResolver=defaultOverridesResolver(lowercaseFirstLetter(componentSlot))}=inputOptions,options=(0,_objectWithoutPropertiesLoose2.default)(inputOptions,_excluded3),skipVariantsResolver=void 0!==inputSkipVariantsResolver?inputSkipVariantsResolver:componentSlot&&"Root"!==componentSlot&&"root"!==componentSlot||!1,skipSx=inputSkipSx||!1;let shouldForwardPropOption=shouldForwardProp;"Root"===componentSlot||"root"===componentSlot?shouldForwardPropOption=rootShouldForwardProp:componentSlot?shouldForwardPropOption=slotShouldForwardProp:function isStringTag(tag){return"string"==typeof tag&&tag.charCodeAt(0)>96}(tag)&&(shouldForwardPropOption=void 0);const defaultStyledResolver=(0,_styledEngine.default)(tag,(0,_extends2.default)({shouldForwardProp:shouldForwardPropOption,label:undefined},options)),transformStyleArg=stylesArg=>"function"==typeof stylesArg&&stylesArg.__emotion_real!==stylesArg||(0,_deepmerge.isPlainObject)(stylesArg)?props=>processStyleArg(stylesArg,(0,_extends2.default)({},props,{theme:resolveTheme({theme:props.theme,defaultTheme:defaultTheme,themeId:themeId})})):stylesArg,muiStyledResolver=(styleArg,...expressions)=>{let transformedStyleArg=transformStyleArg(styleArg);const expressionsWithDefaultTheme=expressions?expressions.map(transformStyleArg):[];componentName&&overridesResolver&&expressionsWithDefaultTheme.push((props=>{const theme=resolveTheme((0,_extends2.default)({},props,{defaultTheme:defaultTheme,themeId:themeId}));if(!theme.components||!theme.components[componentName]||!theme.components[componentName].styleOverrides)return null;const styleOverrides=theme.components[componentName].styleOverrides,resolvedStyleOverrides={};return Object.entries(styleOverrides).forEach((([slotKey,slotStyle])=>{resolvedStyleOverrides[slotKey]=processStyleArg(slotStyle,(0,_extends2.default)({},props,{theme:theme}))})),overridesResolver(props,resolvedStyleOverrides)})),componentName&&!skipVariantsResolver&&expressionsWithDefaultTheme.push((props=>{var _theme$components;const theme=resolveTheme((0,_extends2.default)({},props,{defaultTheme:defaultTheme,themeId:themeId}));return processStyleArg({variants:null==theme||null==(_theme$components=theme.components)||null==(_theme$components=_theme$components[componentName])?void 0:_theme$components.variants},(0,_extends2.default)({},props,{theme:theme}))})),skipSx||expressionsWithDefaultTheme.push(systemSx);const numOfCustomFnsApplied=expressionsWithDefaultTheme.length-expressions.length;if(Array.isArray(styleArg)&&numOfCustomFnsApplied>0){const placeholders=new Array(numOfCustomFnsApplied).fill("");transformedStyleArg=[...styleArg,...placeholders],transformedStyleArg.raw=[...styleArg.raw,...placeholders]}const Component=defaultStyledResolver(transformedStyleArg,...expressionsWithDefaultTheme);return tag.muiName&&(Component.muiName=tag.muiName),Component};return defaultStyledResolver.withConfig&&(muiStyledResolver.withConfig=defaultStyledResolver.withConfig),muiStyledResolver}};var _extends2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/extends.js")),_objectWithoutPropertiesLoose2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js")),_styledEngine=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/@mui/styled-engine/index.js")),_deepmerge=__webpack_require__("./node_modules/@mui/utils/deepmerge/index.js"),_createTheme=(_interopRequireDefault(__webpack_require__("./node_modules/@mui/utils/capitalize/index.js")),_interopRequireDefault(__webpack_require__("./node_modules/@mui/utils/getDisplayName/index.js")),_interopRequireDefault(__webpack_require__("./node_modules/@mui/system/esm/createTheme/index.js"))),_styleFunctionSx=_interopRequireDefault(__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/index.js"));const _excluded=["ownerState"],_excluded2=["variants"],_excluded3=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function shouldForwardProp(prop){return"ownerState"!==prop&&"theme"!==prop&&"sx"!==prop&&"as"!==prop}const systemDefaultTheme=(0,_createTheme.default)(),lowercaseFirstLetter=string=>string?string.charAt(0).toLowerCase()+string.slice(1):string;function resolveTheme({defaultTheme:defaultTheme,theme:theme,themeId:themeId}){return function isEmpty(obj){return 0===Object.keys(obj).length}(theme)?defaultTheme:theme[themeId]||theme}function defaultOverridesResolver(slot){return slot?(props,styles)=>styles[slot]:null}function processStyleArg(callableStyle,_ref){let{ownerState:ownerState}=_ref,props=(0,_objectWithoutPropertiesLoose2.default)(_ref,_excluded);const resolvedStylesArg="function"==typeof callableStyle?callableStyle((0,_extends2.default)({ownerState:ownerState},props)):callableStyle;if(Array.isArray(resolvedStylesArg))return resolvedStylesArg.flatMap((resolvedStyle=>processStyleArg(resolvedStyle,(0,_extends2.default)({ownerState:ownerState},props))));if(resolvedStylesArg&&"object"==typeof resolvedStylesArg&&Array.isArray(resolvedStylesArg.variants)){const{variants:variants=[]}=resolvedStylesArg;let result=(0,_objectWithoutPropertiesLoose2.default)(resolvedStylesArg,_excluded2);return variants.forEach((variant=>{let isMatch=!0;"function"==typeof variant.props?isMatch=variant.props((0,_extends2.default)({ownerState:ownerState},props,ownerState)):Object.keys(variant.props).forEach((key=>{(null==ownerState?void 0:ownerState[key])!==variant.props[key]&&props[key]!==variant.props[key]&&(isMatch=!1)})),isMatch&&(Array.isArray(result)||(result=[result]),result.push("function"==typeof variant.style?variant.style((0,_extends2.default)({ownerState:ownerState},props,ownerState)):variant.style))})),result}return resolvedStylesArg}},"./node_modules/@mui/system/esm/breakpoints.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L7:function(){return removeUnusedBreakpoints},P$:function(){return resolveBreakpointValues},VO:function(){return values},W8:function(){return createEmptyBreakpointObject},dt:function(){return mergeBreakpointsInOrder},k9:function(){return handleBreakpoints}});var _mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/deepmerge/deepmerge.js");const values={xs:0,sm:600,md:900,lg:1200,xl:1536},defaultBreakpoints={keys:["xs","sm","md","lg","xl"],up:key=>`@media (min-width:${values[key]}px)`};function handleBreakpoints(props,propValue,styleFromPropValue){const theme=props.theme||{};if(Array.isArray(propValue)){const themeBreakpoints=theme.breakpoints||defaultBreakpoints;return propValue.reduce(((acc,item,index)=>(acc[themeBreakpoints.up(themeBreakpoints.keys[index])]=styleFromPropValue(propValue[index]),acc)),{})}if("object"==typeof propValue){const themeBreakpoints=theme.breakpoints||defaultBreakpoints;return Object.keys(propValue).reduce(((acc,breakpoint)=>{if(-1!==Object.keys(themeBreakpoints.values||values).indexOf(breakpoint)){acc[themeBreakpoints.up(breakpoint)]=styleFromPropValue(propValue[breakpoint],breakpoint)}else{const cssKey=breakpoint;acc[cssKey]=propValue[cssKey]}return acc}),{})}return styleFromPropValue(propValue)}function createEmptyBreakpointObject(breakpointsInput={}){var _breakpointsInput$key;return(null==(_breakpointsInput$key=breakpointsInput.keys)?void 0:_breakpointsInput$key.reduce(((acc,key)=>(acc[breakpointsInput.up(key)]={},acc)),{}))||{}}function removeUnusedBreakpoints(breakpointKeys,style){return breakpointKeys.reduce(((acc,key)=>{const breakpointOutput=acc[key];return(!breakpointOutput||0===Object.keys(breakpointOutput).length)&&delete acc[key],acc}),style)}function mergeBreakpointsInOrder(breakpointsInput,...styles){const emptyBreakpoints=createEmptyBreakpointObject(breakpointsInput),mergedOutput=[emptyBreakpoints,...styles].reduce(((prev,next)=>(0,_mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_0__.Z)(prev,next)),{});return removeUnusedBreakpoints(Object.keys(emptyBreakpoints),mergedOutput)}function resolveBreakpointValues({values:breakpointValues,breakpoints:themeBreakpoints,base:customBase}){const base=customBase||function computeBreakpointsBase(breakpointValues,themeBreakpoints){if("object"!=typeof breakpointValues)return{};const base={},breakpointsKeys=Object.keys(themeBreakpoints);return Array.isArray(breakpointValues)?breakpointsKeys.forEach(((breakpoint,i)=>{i{null!=breakpointValues[breakpoint]&&(base[breakpoint]=!0)})),base}(breakpointValues,themeBreakpoints),keys=Object.keys(base);if(0===keys.length)return breakpointValues;let previous;return keys.reduce(((acc,breakpoint,i)=>(Array.isArray(breakpointValues)?(acc[breakpoint]=null!=breakpointValues[i]?breakpointValues[i]:breakpointValues[previous],previous=i):"object"==typeof breakpointValues?(acc[breakpoint]=null!=breakpointValues[breakpoint]?breakpointValues[breakpoint]:breakpointValues[previous],previous=breakpoint):acc[breakpoint]=breakpointValues,acc)),{})}},"./node_modules/@mui/system/esm/createTheme/applyStyles.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function applyStyles(key,styles){const theme=this;if(theme.vars&&"function"==typeof theme.getColorSchemeSelector){return{[theme.getColorSchemeSelector(key).replace(/(\[[^\]]+\])/,"*:where($1)")]:styles}}return theme.palette.mode===key?styles:{}}__webpack_require__.d(__webpack_exports__,{Z:function(){return applyStyles}})},"./node_modules/@mui/system/esm/createTheme/createBreakpoints.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return createBreakpoints}});var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js");const _excluded=["values","unit","step"],sortBreakpointsValues=values=>{const breakpointsAsArray=Object.keys(values).map((key=>({key:key,val:values[key]})))||[];return breakpointsAsArray.sort(((breakpoint1,breakpoint2)=>breakpoint1.val-breakpoint2.val)),breakpointsAsArray.reduce(((acc,obj)=>(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},acc,{[obj.key]:obj.val})),{})};function createBreakpoints(breakpoints){const{values:values={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:unit="px",step:step=5}=breakpoints,other=(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.Z)(breakpoints,_excluded),sortedValues=sortBreakpointsValues(values),keys=Object.keys(sortedValues);function up(key){return`@media (min-width:${"number"==typeof values[key]?values[key]:key}${unit})`}function down(key){return`@media (max-width:${("number"==typeof values[key]?values[key]:key)-step/100}${unit})`}function between(start,end){const endIndex=keys.indexOf(end);return`@media (min-width:${"number"==typeof values[start]?values[start]:start}${unit}) and (max-width:${(-1!==endIndex&&"number"==typeof values[keys[endIndex]]?values[keys[endIndex]]:end)-step/100}${unit})`}return(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({keys:keys,values:sortedValues,up:up,down:down,between:between,only:function only(key){return keys.indexOf(key)+1(0===argsInput.length?[1]:argsInput).map((argument=>{const output=transform(argument);return"number"==typeof output?`${output}px`:output})).join(" ");return spacing.mui=!0,spacing}(spacingInput);let muiTheme=(0,deepmerge.Z)({breakpoints:breakpoints,direction:"ltr",components:{},palette:(0,esm_extends.Z)({mode:"light"},paletteInput),spacing:spacing,shape:(0,esm_extends.Z)({},createTheme_shape,shapeInput)},other);return muiTheme.applyStyles=applyStyles.Z,muiTheme=args.reduce(((acc,argument)=>(0,deepmerge.Z)(acc,argument)),muiTheme),muiTheme.unstable_sxConfig=(0,esm_extends.Z)({},defaultSxConfig.Z,null==other?void 0:other.unstable_sxConfig),muiTheme.unstable_sx=function sx(props){return(0,styleFunctionSx.Z)({sx:props,theme:this})},muiTheme}},"./node_modules/@mui/system/esm/createTheme/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _createTheme__WEBPACK_IMPORTED_MODULE_0__.Z},private_createBreakpoints:function(){return _createBreakpoints__WEBPACK_IMPORTED_MODULE_1__.Z},unstable_applyStyles:function(){return _applyStyles__WEBPACK_IMPORTED_MODULE_2__.Z}});var _createTheme__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/createTheme/createTheme.js"),_createBreakpoints__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/system/esm/createTheme/createBreakpoints.js"),_applyStyles__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/system/esm/createTheme/applyStyles.js")},"./node_modules/@mui/system/esm/merge.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/deepmerge/deepmerge.js");__webpack_exports__.Z=function merge(acc,item){return item?(0,_mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_0__.Z)(acc,item,{clone:!1}):acc}},"./node_modules/@mui/system/esm/spacing.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{hB:function(){return createUnarySpacing},eI:function(){return createUnaryUnit},NA:function(){return getValue},e6:function(){return margin},o3:function(){return padding}});var breakpoints=__webpack_require__("./node_modules/@mui/system/esm/breakpoints.js"),style=__webpack_require__("./node_modules/@mui/system/esm/style.js"),merge=__webpack_require__("./node_modules/@mui/system/esm/merge.js");const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=function memoize(fn){const cache={};return arg=>(void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg])}((prop=>{if(prop.length>2){if(!aliases[prop])return[prop];prop=aliases[prop]}const[a,b]=prop.split(""),property=properties[a],direction=directions[b]||"";return Array.isArray(direction)?direction.map((dir=>property+dir)):[property+direction]})),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],spacingKeys=[...marginKeys,...paddingKeys];function createUnaryUnit(theme,themeKey,defaultValue,propName){var _getPath;const themeSpacing=null!=(_getPath=(0,style.DW)(theme,themeKey,!1))?_getPath:defaultValue;return"number"==typeof themeSpacing?abs=>"string"==typeof abs?abs:themeSpacing*abs:Array.isArray(themeSpacing)?abs=>"string"==typeof abs?abs:themeSpacing[abs]:"function"==typeof themeSpacing?themeSpacing:()=>{}}function createUnarySpacing(theme){return createUnaryUnit(theme,"spacing",8)}function getValue(transformer,propValue){if("string"==typeof propValue||null==propValue)return propValue;const transformed=transformer(Math.abs(propValue));return propValue>=0?transformed:"number"==typeof transformed?-transformed:`-${transformed}`}function resolveCssProperty(props,keys,prop,transformer){if(-1===keys.indexOf(prop))return null;const styleFromPropValue=function getStyleFromPropValue(cssProperties,transformer){return propValue=>cssProperties.reduce(((acc,cssProperty)=>(acc[cssProperty]=getValue(transformer,propValue),acc)),{})}(getCssProperties(prop),transformer),propValue=props[prop];return(0,breakpoints.k9)(props,propValue,styleFromPropValue)}function spacing_style(props,keys){const transformer=createUnarySpacing(props.theme);return Object.keys(props).map((prop=>resolveCssProperty(props,keys,prop,transformer))).reduce(merge.Z,{})}function margin(props){return spacing_style(props,marginKeys)}function padding(props){return spacing_style(props,paddingKeys)}function spacing(props){return spacing_style(props,spacingKeys)}margin.propTypes={},margin.filterProps=marginKeys,padding.propTypes={},padding.filterProps=paddingKeys,spacing.propTypes={},spacing.filterProps=spacingKeys},"./node_modules/@mui/system/esm/style.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{DW:function(){return getPath},Jq:function(){return getStyleValue}});var _mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/capitalize/capitalize.js"),_breakpoints__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/system/esm/breakpoints.js");function getPath(obj,path,checkVars=!0){if(!path||"string"!=typeof path)return null;if(obj&&obj.vars&&checkVars){const val=`vars.${path}`.split(".").reduce(((acc,item)=>acc&&acc[item]?acc[item]:null),obj);if(null!=val)return val}return path.split(".").reduce(((acc,item)=>acc&&null!=acc[item]?acc[item]:null),obj)}function getStyleValue(themeMapping,transform,propValueFinal,userValue=propValueFinal){let value;return value="function"==typeof themeMapping?themeMapping(propValueFinal):Array.isArray(themeMapping)?themeMapping[propValueFinal]||userValue:getPath(themeMapping,propValueFinal)||userValue,transform&&(value=transform(value,userValue,themeMapping)),value}__webpack_exports__.ZP=function style(options){const{prop:prop,cssProperty:cssProperty=options.prop,themeKey:themeKey,transform:transform}=options,fn=props=>{if(null==props[prop])return null;const propValue=props[prop],themeMapping=getPath(props.theme,themeKey)||{};return(0,_breakpoints__WEBPACK_IMPORTED_MODULE_1__.k9)(props,propValue,(propValueFinal=>{let value=getStyleValue(themeMapping,transform,propValueFinal);return propValueFinal===value&&"string"==typeof propValueFinal&&(value=getStyleValue(themeMapping,transform,`${prop}${"default"===propValueFinal?"":(0,_mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_0__.Z)(propValueFinal)}`,propValueFinal)),!1===cssProperty?value:{[cssProperty]:value}}))};return fn.propTypes={},fn.filterProps=[prop],fn}},"./node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return styleFunctionSx_defaultSxConfig}});var spacing=__webpack_require__("./node_modules/@mui/system/esm/spacing.js"),style=__webpack_require__("./node_modules/@mui/system/esm/style.js"),merge=__webpack_require__("./node_modules/@mui/system/esm/merge.js");var esm_compose=function compose(...styles){const handlers=styles.reduce(((acc,style)=>(style.filterProps.forEach((prop=>{acc[prop]=style})),acc)),{}),fn=props=>Object.keys(props).reduce(((acc,prop)=>handlers[prop]?(0,merge.Z)(acc,handlers[prop](props)):acc),{});return fn.propTypes={},fn.filterProps=styles.reduce(((acc,style)=>acc.concat(style.filterProps)),[]),fn},breakpoints=__webpack_require__("./node_modules/@mui/system/esm/breakpoints.js");function borderTransform(value){return"number"!=typeof value?value:`${value}px solid`}function createBorderStyle(prop,transform){return(0,style.ZP)({prop:prop,themeKey:"borders",transform:transform})}const border=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=props=>{if(void 0!==props.borderRadius&&null!==props.borderRadius){const transformer=(0,spacing.eI)(props.theme,"shape.borderRadius",4,"borderRadius"),styleFromPropValue=propValue=>({borderRadius:(0,spacing.NA)(transformer,propValue)});return(0,breakpoints.k9)(props,props.borderRadius,styleFromPropValue)}return null};borderRadius.propTypes={},borderRadius.filterProps=["borderRadius"];esm_compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=props=>{if(void 0!==props.gap&&null!==props.gap){const transformer=(0,spacing.eI)(props.theme,"spacing",8,"gap"),styleFromPropValue=propValue=>({gap:(0,spacing.NA)(transformer,propValue)});return(0,breakpoints.k9)(props,props.gap,styleFromPropValue)}return null};gap.propTypes={},gap.filterProps=["gap"];const columnGap=props=>{if(void 0!==props.columnGap&&null!==props.columnGap){const transformer=(0,spacing.eI)(props.theme,"spacing",8,"columnGap"),styleFromPropValue=propValue=>({columnGap:(0,spacing.NA)(transformer,propValue)});return(0,breakpoints.k9)(props,props.columnGap,styleFromPropValue)}return null};columnGap.propTypes={},columnGap.filterProps=["columnGap"];const rowGap=props=>{if(void 0!==props.rowGap&&null!==props.rowGap){const transformer=(0,spacing.eI)(props.theme,"spacing",8,"rowGap"),styleFromPropValue=propValue=>({rowGap:(0,spacing.NA)(transformer,propValue)});return(0,breakpoints.k9)(props,props.rowGap,styleFromPropValue)}return null};rowGap.propTypes={},rowGap.filterProps=["rowGap"];esm_compose(gap,columnGap,rowGap,(0,style.ZP)({prop:"gridColumn"}),(0,style.ZP)({prop:"gridRow"}),(0,style.ZP)({prop:"gridAutoFlow"}),(0,style.ZP)({prop:"gridAutoColumns"}),(0,style.ZP)({prop:"gridAutoRows"}),(0,style.ZP)({prop:"gridTemplateColumns"}),(0,style.ZP)({prop:"gridTemplateRows"}),(0,style.ZP)({prop:"gridTemplateAreas"}),(0,style.ZP)({prop:"gridArea"}));function paletteTransform(value,userValue){return"grey"===userValue?userValue:value}esm_compose((0,style.ZP)({prop:"color",themeKey:"palette",transform:paletteTransform}),(0,style.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),(0,style.ZP)({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform}));function sizingTransform(value){return value<=1&&0!==value?100*value+"%":value}const width=(0,style.ZP)({prop:"width",transform:sizingTransform}),maxWidth=props=>{if(void 0!==props.maxWidth&&null!==props.maxWidth){const styleFromPropValue=propValue=>{var _props$theme,_props$theme2;const breakpoint=(null==(_props$theme=props.theme)||null==(_props$theme=_props$theme.breakpoints)||null==(_props$theme=_props$theme.values)?void 0:_props$theme[propValue])||breakpoints.VO[propValue];return breakpoint?"px"!==(null==(_props$theme2=props.theme)||null==(_props$theme2=_props$theme2.breakpoints)?void 0:_props$theme2.unit)?{maxWidth:`${breakpoint}${props.theme.breakpoints.unit}`}:{maxWidth:breakpoint}:{maxWidth:sizingTransform(propValue)}};return(0,breakpoints.k9)(props,props.maxWidth,styleFromPropValue)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=(0,style.ZP)({prop:"minWidth",transform:sizingTransform}),height=(0,style.ZP)({prop:"height",transform:sizingTransform}),maxHeight=(0,style.ZP)({prop:"maxHeight",transform:sizingTransform}),minHeight=(0,style.ZP)({prop:"minHeight",transform:sizingTransform});(0,style.ZP)({prop:"size",cssProperty:"width",transform:sizingTransform}),(0,style.ZP)({prop:"size",cssProperty:"height",transform:sizingTransform}),esm_compose(width,maxWidth,minWidth,height,maxHeight,minHeight,(0,style.ZP)({prop:"boxSizing"}));var styleFunctionSx_defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:spacing.o3},pt:{style:spacing.o3},pr:{style:spacing.o3},pb:{style:spacing.o3},pl:{style:spacing.o3},px:{style:spacing.o3},py:{style:spacing.o3},padding:{style:spacing.o3},paddingTop:{style:spacing.o3},paddingRight:{style:spacing.o3},paddingBottom:{style:spacing.o3},paddingLeft:{style:spacing.o3},paddingX:{style:spacing.o3},paddingY:{style:spacing.o3},paddingInline:{style:spacing.o3},paddingInlineStart:{style:spacing.o3},paddingInlineEnd:{style:spacing.o3},paddingBlock:{style:spacing.o3},paddingBlockStart:{style:spacing.o3},paddingBlockEnd:{style:spacing.o3},m:{style:spacing.e6},mt:{style:spacing.e6},mr:{style:spacing.e6},mb:{style:spacing.e6},ml:{style:spacing.e6},mx:{style:spacing.e6},my:{style:spacing.e6},margin:{style:spacing.e6},marginTop:{style:spacing.e6},marginRight:{style:spacing.e6},marginBottom:{style:spacing.e6},marginLeft:{style:spacing.e6},marginX:{style:spacing.e6},marginY:{style:spacing.e6},marginInline:{style:spacing.e6},marginInlineStart:{style:spacing.e6},marginInlineEnd:{style:spacing.e6},marginBlock:{style:spacing.e6},marginBlockStart:{style:spacing.e6},marginBlockEnd:{style:spacing.e6},displayPrint:{cssProperty:!1,transform:value=>({"@media print":{display:value}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},"./node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return extendSxProp}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/utils/deepmerge/deepmerge.js"),_defaultSxConfig__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js");const _excluded=["sx"],splitProps=props=>{var _props$theme$unstable,_props$theme;const result={systemProps:{},otherProps:{}},config=null!=(_props$theme$unstable=null==props||null==(_props$theme=props.theme)?void 0:_props$theme.unstable_sxConfig)?_props$theme$unstable:_defaultSxConfig__WEBPACK_IMPORTED_MODULE_0__.Z;return Object.keys(props).forEach((prop=>{config[prop]?result.systemProps[prop]=props[prop]:result.otherProps[prop]=props[prop]})),result};function extendSxProp(props){const{sx:inSx}=props,other=(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__.Z)(props,_excluded),{systemProps:systemProps,otherProps:otherProps}=splitProps(other);let finalSx;return finalSx=Array.isArray(inSx)?[systemProps,...inSx]:"function"==typeof inSx?(...args)=>{const result=inSx(...args);return(0,_mui_utils_deepmerge__WEBPACK_IMPORTED_MODULE_2__.P)(result)?(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},systemProps,result):systemProps}:(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},systemProps,inSx),(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},otherProps,{sx:finalSx})}},"./node_modules/@mui/system/esm/styleFunctionSx/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _styleFunctionSx__WEBPACK_IMPORTED_MODULE_0__.Z},extendSxProp:function(){return _extendSxProp__WEBPACK_IMPORTED_MODULE_1__.Z},unstable_createStyleFunctionSx:function(){return _styleFunctionSx__WEBPACK_IMPORTED_MODULE_0__.n},unstable_defaultSxConfig:function(){return _defaultSxConfig__WEBPACK_IMPORTED_MODULE_2__.Z}});var _styleFunctionSx__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js"),_extendSxProp__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js"),_defaultSxConfig__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js")},"./node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return unstable_createStyleFunctionSx}});var _mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/utils/capitalize/capitalize.js"),_merge__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@mui/system/esm/merge.js"),_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/style.js"),_breakpoints__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/system/esm/breakpoints.js"),_defaultSxConfig__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js");function unstable_createStyleFunctionSx(){function getThemeValue(prop,val,theme,config){const props={[prop]:val,theme:theme},options=config[prop];if(!options)return{[prop]:val};const{cssProperty:cssProperty=prop,themeKey:themeKey,transform:transform,style:style}=options;if(null==val)return null;if("typography"===themeKey&&"inherit"===val)return{[prop]:val};const themeMapping=(0,_style__WEBPACK_IMPORTED_MODULE_0__.DW)(theme,themeKey)||{};if(style)return style(props);return(0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__.k9)(props,val,(propValueFinal=>{let value=(0,_style__WEBPACK_IMPORTED_MODULE_0__.Jq)(themeMapping,transform,propValueFinal);return propValueFinal===value&&"string"==typeof propValueFinal&&(value=(0,_style__WEBPACK_IMPORTED_MODULE_0__.Jq)(themeMapping,transform,`${prop}${"default"===propValueFinal?"":(0,_mui_utils_capitalize__WEBPACK_IMPORTED_MODULE_1__.Z)(propValueFinal)}`,propValueFinal)),!1===cssProperty?value:{[cssProperty]:value}}))}return function styleFunctionSx(props){var _theme$unstable_sxCon;const{sx:sx,theme:theme={}}=props||{};if(!sx)return null;const config=null!=(_theme$unstable_sxCon=theme.unstable_sxConfig)?_theme$unstable_sxCon:_defaultSxConfig__WEBPACK_IMPORTED_MODULE_3__.Z;function traverse(sxInput){let sxObject=sxInput;if("function"==typeof sxInput)sxObject=sxInput(theme);else if("object"!=typeof sxInput)return sxInput;if(!sxObject)return null;const emptyBreakpoints=(0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__.W8)(theme.breakpoints),breakpointsKeys=Object.keys(emptyBreakpoints);let css=emptyBreakpoints;return Object.keys(sxObject).forEach((styleKey=>{const value=function callIfFn(maybeFn,arg){return"function"==typeof maybeFn?maybeFn(arg):maybeFn}(sxObject[styleKey],theme);if(null!=value)if("object"==typeof value)if(config[styleKey])css=(0,_merge__WEBPACK_IMPORTED_MODULE_4__.Z)(css,getThemeValue(styleKey,value,theme,config));else{const breakpointsValues=(0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__.k9)({theme:theme},value,(x=>({[styleKey]:x})));!function objectsHaveSameKeys(...objects){const allKeys=objects.reduce(((keys,object)=>keys.concat(Object.keys(object))),[]),union=new Set(allKeys);return objects.every((object=>union.size===Object.keys(object).length))}(breakpointsValues,value)?css=(0,_merge__WEBPACK_IMPORTED_MODULE_4__.Z)(css,breakpointsValues):css[styleKey]=styleFunctionSx({sx:value,theme:theme})}else css=(0,_merge__WEBPACK_IMPORTED_MODULE_4__.Z)(css,getThemeValue(styleKey,value,theme,config))})),(0,_breakpoints__WEBPACK_IMPORTED_MODULE_2__.L7)(breakpointsKeys,css)}return Array.isArray(sx)?sx.map(traverse):traverse(sx)}}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"],__webpack_exports__.Z=styleFunctionSx},"./node_modules/@mui/system/esm/useTheme.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _createTheme__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/system/esm/createTheme/createTheme.js"),_useThemeWithoutDefault__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/system/esm/useThemeWithoutDefault.js");const systemDefaultTheme=(0,_createTheme__WEBPACK_IMPORTED_MODULE_0__.Z)();__webpack_exports__.Z=function useTheme(defaultTheme=systemDefaultTheme){return(0,_useThemeWithoutDefault__WEBPACK_IMPORTED_MODULE_1__.Z)(defaultTheme)}},"./node_modules/@mui/system/esm/useThemeProps/useThemeProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useThemeProps}});var resolveProps=__webpack_require__("./node_modules/@mui/utils/resolveProps/resolveProps.js");var useTheme=__webpack_require__("./node_modules/@mui/system/esm/useTheme.js");function useThemeProps({props:props,name:name,defaultTheme:defaultTheme,themeId:themeId}){let theme=(0,useTheme.Z)(defaultTheme);themeId&&(theme=theme[themeId]||theme);const mergedProps=function getThemeProps(params){const{theme:theme,name:name,props:props}=params;return theme&&theme.components&&theme.components[name]&&theme.components[name].defaultProps?(0,resolveProps.Z)(theme.components[name].defaultProps,props):props}({theme:theme,name:name,props:props});return mergedProps}},"./node_modules/@mui/system/esm/useThemeWithoutDefault.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_mui_styled_engine__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js");__webpack_exports__.Z=function useTheme(defaultTheme=null){const contextTheme=react__WEBPACK_IMPORTED_MODULE_0__.useContext(_mui_styled_engine__WEBPACK_IMPORTED_MODULE_1__.T);return!contextTheme||function isObjectEmpty(obj){return 0===Object.keys(obj).length}(contextTheme)?defaultTheme:contextTheme}},"./node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js":function(__unused_webpack_module,__webpack_exports__){"use strict";const defaultGenerator=componentName=>componentName,ClassNameGenerator=(()=>{let generate=defaultGenerator;return{configure(generator){generate=generator},generate(componentName){return generate(componentName)},reset(){generate=defaultGenerator}}})();__webpack_exports__.Z=ClassNameGenerator},"./node_modules/@mui/utils/capitalize/capitalize.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return capitalize}});var _mui_utils_formatMuiErrorMessage__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js");function capitalize(string){if("string"!=typeof string)throw new Error((0,_mui_utils_formatMuiErrorMessage__WEBPACK_IMPORTED_MODULE_0__.Z)(7));return string.charAt(0).toUpperCase()+string.slice(1)}},"./node_modules/@mui/utils/capitalize/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _capitalize__WEBPACK_IMPORTED_MODULE_0__.Z}});var _capitalize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/capitalize/capitalize.js")},"./node_modules/@mui/utils/clamp/clamp.js":function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.Z=function clamp(val,min=Number.MIN_SAFE_INTEGER,max=Number.MAX_SAFE_INTEGER){return Math.max(min,Math.min(val,max))}},"./node_modules/@mui/utils/clamp/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _clamp__WEBPACK_IMPORTED_MODULE_0__.Z}});var _clamp__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/clamp/clamp.js")},"./node_modules/@mui/utils/composeClasses/composeClasses.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function composeClasses(slots,getUtilityClass,classes=void 0){const output={};return Object.keys(slots).forEach((slot=>{output[slot]=slots[slot].reduce(((acc,key)=>{if(key){const utilityClass=getUtilityClass(key);""!==utilityClass&&acc.push(utilityClass),classes&&classes[key]&&acc.push(classes[key])}return acc}),[]).join(" ")})),output}__webpack_require__.d(__webpack_exports__,{Z:function(){return composeClasses}})},"./node_modules/@mui/utils/deepmerge/deepmerge.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return isPlainObject},Z:function(){return deepmerge}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js");function isPlainObject(item){if("object"!=typeof item||null===item)return!1;const prototype=Object.getPrototypeOf(item);return!(null!==prototype&&prototype!==Object.prototype&&null!==Object.getPrototypeOf(prototype)||Symbol.toStringTag in item||Symbol.iterator in item)}function deepClone(source){if(!isPlainObject(source))return source;const output={};return Object.keys(source).forEach((key=>{output[key]=deepClone(source[key])})),output}function deepmerge(target,source,options={clone:!0}){const output=options.clone?(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},target):target;return isPlainObject(target)&&isPlainObject(source)&&Object.keys(source).forEach((key=>{"__proto__"!==key&&(isPlainObject(source[key])&&key in target&&isPlainObject(target[key])?output[key]=deepmerge(target[key],source[key],options):options.clone?output[key]=isPlainObject(source[key])?deepClone(source[key]):source[key]:output[key]=source[key])})),output}},"./node_modules/@mui/utils/deepmerge/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return _deepmerge__WEBPACK_IMPORTED_MODULE_0__.Z},isPlainObject:function(){return _deepmerge__WEBPACK_IMPORTED_MODULE_0__.P}});var _deepmerge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/deepmerge/deepmerge.js")},"./node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function formatMuiErrorMessage(code){let url="https://mui.com/production-error/?code="+code;for(let i=1;i{result[slot]=(0,_generateUtilityClass__WEBPACK_IMPORTED_MODULE_0__.ZP)(componentName,slot,globalStatePrefix)})),result}},"./node_modules/@mui/utils/getDisplayName/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return getDisplayName},getFunctionName:function(){return getFunctionName}});var react_is=__webpack_require__("./node_modules/@mui/utils/node_modules/react-is/index.js");const fnNameMatchRegex=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function getFunctionName(fn){const match=`${fn}`.match(fnNameMatchRegex);return match&&match[1]||""}function getFunctionComponentName(Component,fallback=""){return Component.displayName||Component.name||getFunctionName(Component)||fallback}function getWrappedName(outerType,innerType,wrapperName){const functionName=getFunctionComponentName(innerType);return outerType.displayName||(""!==functionName?`${wrapperName}(${functionName})`:wrapperName)}function getDisplayName(Component){if(null!=Component){if("string"==typeof Component)return Component;if("function"==typeof Component)return getFunctionComponentName(Component,"Component");if("object"==typeof Component)switch(Component.$$typeof){case react_is.ForwardRef:return getWrappedName(Component,Component.render,"ForwardRef");case react_is.Memo:return getWrappedName(Component,Component.type,"memo");default:return}}}},"./node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js":function(__unused_webpack_module,exports){"use strict";var u,b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen");function v(a){if("object"==typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}u=Symbol.for("react.module.reference"),exports.ForwardRef=l,exports.Memo=p},"./node_modules/@mui/utils/node_modules/react-is/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";module.exports=__webpack_require__("./node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/@mui/utils/resolveProps/resolveProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return resolveProps}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js");function resolveProps(defaultProps,props){const output=(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},props);return Object.keys(defaultProps).forEach((propName=>{if(propName.toString().match(/^(components|slots)$/))output[propName]=(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},defaultProps[propName],output[propName]);else if(propName.toString().match(/^(componentsProps|slotProps)$/)){const defaultSlotProps=defaultProps[propName]||{},slotProps=props[propName];output[propName]={},slotProps&&Object.keys(slotProps)?defaultSlotProps&&Object.keys(defaultSlotProps)?(output[propName]=(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.Z)({},slotProps),Object.keys(defaultSlotProps).forEach((slotPropName=>{output[propName][slotPropName]=resolveProps(defaultSlotProps[slotPropName],slotProps[slotPropName])}))):output[propName]=slotProps:output[propName]=defaultSlotProps}else void 0===output[propName]&&(output[propName]=defaultProps[propName])})),output}},"./node_modules/@mui/utils/setRef/setRef.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function setRef(ref,value){"function"==typeof ref?ref(value):ref&&(ref.current=value)}__webpack_require__.d(__webpack_exports__,{Z:function(){return setRef}})},"./node_modules/@mui/utils/useForkRef/useForkRef.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useForkRef}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_setRef__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/utils/setRef/setRef.js");function useForkRef(...refs){return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>refs.every((ref=>null==ref))?null:instance=>{refs.forEach((ref=>{(0,_setRef__WEBPACK_IMPORTED_MODULE_1__.Z)(ref,instance)}))}),refs)}},"./node_modules/@mui/utils/useTimeout/useTimeout.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{V:function(){return Timeout},Z:function(){return useTimeout}});var react=__webpack_require__("./node_modules/react/index.js");const UNINITIALIZED={};const EMPTY=[];class Timeout{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Timeout}start(delay,fn){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,fn()}),delay)}}function useTimeout(){const timeout=function useLazyRef(init,initArg){const ref=react.useRef(UNINITIALIZED);return ref.current===UNINITIALIZED&&(ref.current=init(initArg)),ref}(Timeout.create).current;return function useOnMount(fn){react.useEffect(fn,EMPTY)}(timeout.disposeEffect),timeout}},"./node_modules/clsx/dist/clsx.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;tq)&&(t=(f=f.replace(" ",":")).length),0h&&(h=(c=c.trim()).charCodeAt(0)),h){case 38:return c.replace(F,"$1"+d.trim());case 58:return d.trim()+c.replace(F,"$1"+d.trim());default:if(0<1*e&&0b.charCodeAt(8))break;case 115:a=a.replace(b,"-webkit-"+b)+";"+a;break;case 207:case 102:a=a.replace(b,"-webkit-"+(102e.charCodeAt(0)&&(e=e.trim()),e=[e],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s=k&&(k=t+1),T.set(e,t),x.set(t,e)},M="style["+N+'][data-styled-version="5.3.11"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.11");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return(K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y)}o.push(m)}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w:e,i=s.options,a=void 0===i?w:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_browser_esm(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=react.createContext(),le=(ce.Consumer,react.createContext()),de=(le.Consumer,new X),he=ae();function pe(){return(0,react.useContext)(ce)||de}function fe(){return(0,react.useContext)(le)||he}function me(e){var t=(0,react.useState)(e.stylisPlugins),n=t[0],s=t[1],c=pe(),u=(0,react.useMemo)((function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,react.useMemo)((function(){return ae({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,react.useEffect)((function(){shallowequal_default()(n,e.stylisPlugins)||s(e.stylisPlugins)}),[e.stylisPlugins]),react.createElement(ce.Provider,{value:u},react.createElement(le.Provider,{value:l},e.children))}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return"-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return"string"==typeof e&&!0}var ke=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Be(e,t,n){var r=e[n];ke(t)&&ke(r)?ze(r,t):e[n]=t}function ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b(e)));return Ye(e,y({},o,{attrs:g,componentId:s}),n)},Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?ze({},e.defaultProps,t):t}}),Object.defineProperty(A,"toString",{value:function(){return"."+A.styledComponentId}}),i&&hoist_non_react_statics_cjs_default()(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),A}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w),!(0,react_is.isValidElementType)(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ne(e),X.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var o=r(_e(this.rules,t,n,r).join(""),""),s=this.componentId+e;n.insertRules(s,s,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&X.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();function We(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?D(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return D(2);var n=((t={})[N]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=Y();return o&&(n.nonce=o),[react.createElement("style",y({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new X({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?D(2):react.createElement(me,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return D(3)}}();var styled_components_browser_esm=qe},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/EdsProvider/eds.context.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return useEds}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");__webpack_require__("./node_modules/react/jsx-runtime.js");const initalState={density:"comfortable"},EdsContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(initalState),useEds=()=>(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EdsContext)},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/hooks/useToken.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return useToken}});var react=__webpack_require__("./node_modules/react/index.js");function _isPlaceholder(a){return null!=a&&"object"==typeof a&&!0===a["@@functional/placeholder"]}function _curry1(fn){return function f1(a){return 0===arguments.length||_isPlaceholder(a)?f1:fn.apply(this,arguments)}}function _curry2(fn){return function f2(a,b){switch(arguments.length){case 0:return f2;case 1:return _isPlaceholder(a)?f2:_curry1((function(_b){return fn(a,_b)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)?f2:_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b)})):fn(a,b)}}}function _curry3(fn){return function f3(a,b,c){switch(arguments.length){case 0:return f3;case 1:return _isPlaceholder(a)?f3:_curry2((function(_b,_c){return fn(a,_b,_c)}));case 2:return _isPlaceholder(a)&&_isPlaceholder(b)?f3:_isPlaceholder(a)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_curry1((function(_c){return fn(a,b,_c)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)&&_isPlaceholder(c)?f3:_isPlaceholder(a)&&_isPlaceholder(b)?_curry2((function(_a,_b){return fn(_a,_b,c)})):_isPlaceholder(a)&&_isPlaceholder(c)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)&&_isPlaceholder(c)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b,c)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b,c)})):_isPlaceholder(c)?_curry1((function(_c){return fn(a,b,_c)})):fn(a,b,c)}}}function _isObject(x){return"[object Object]"===Object.prototype.toString.call(x)}function _has(prop,obj){return Object.prototype.hasOwnProperty.call(obj,prop)}var mergeWithKey$1=_curry3((function mergeWithKey(fn,l,r){var k,result={};for(k in r=r||{},l=l||{})_has(k,l)&&(result[k]=_has(k,r)?fn(k,l[k],r[k]):l[k]);for(k in r)_has(k,r)&&!_has(k,result)&&(result[k]=r[k]);return result})),mergeDeepWithKey$1=_curry3((function mergeDeepWithKey(fn,lObj,rObj){return mergeWithKey$1((function(k,lVal,rVal){return _isObject(lVal)&&_isObject(rVal)?mergeDeepWithKey(fn,lVal,rVal):fn(k,lVal,rVal)}),lObj,rObj)})),mergeDeepRight$1=_curry2((function mergeDeepRight(lObj,rObj){return mergeDeepWithKey$1((function(k,lVal,rVal){return rVal}),lObj,rObj)}));const useToken=(options,token)=>(0,react.useCallback)((()=>{const{density:density}=options;return"compact"===density?mergeDeepRight$1(token,token.modes.compact):token}),[options,token])},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/common.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:function(){return shorthand}});const shorthand=token=>{if(!token)return;const{width:width="",style:style="",color:color=""}=token;return width?`${width} ${style} ${color}`:null}},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/focus.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:function(){return outlineTemplate}});var styled_components__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_equinor_eds_tokens__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@equinor/eds-tokens/dist/esm/index.mjs"),_common_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/common.mjs");const{colors:{interactive:{focus:{rgba:focusColor}}}}=_equinor_eds_tokens__WEBPACK_IMPORTED_MODULE_0__.tokens,outlineTemplate=outline=>{const{color:color=focusColor,style:style="dashed",width:width="2px",offset:offset="0px",type:type}=outline,outline_={color:color,style:style,width:width,offset:offset,type:type};return(0,styled_components__WEBPACK_IMPORTED_MODULE_1__.iv)({outline:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_2__.F)(outline_),outlineOffset:outline_.offset})}},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{SH:function(){return spacingsTemplate},oc:function(){return typographyTemplate}});var styled_components__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js");const typographyTemplate=(typography,link)=>{if(!typography)return"";let base=`\n margin: 0;\n color: ${typography.color};\n font-family: ${typography.fontFamily};\n font-size: ${typography.fontSize};\n font-weight: ${typography.fontWeight};\n line-height: ${typography.lineHeight};\n `;return typography.fontStyle&&(base+=`\nfont-style: ${typography.fontStyle};`),typography.letterSpacing&&(base+=`\nletter-spacing: ${typography.letterSpacing};`),typography.textTransform&&(base+=`\ntext-transform: ${typography.textTransform};`),typography.textDecoration&&(base+=`\ntext-decoration: ${typography.textDecoration};`),typography.textAlign&&(base+=`\ntext-align: ${typography.textAlign};`),typography.fontFeature&&(base+=`\nfont-feature-settings: ${typography.fontFeature};`),link&&(base+="\ncursor: pointer;"),base},spacingsTemplate=({left:left,right:right,top:top,bottom:bottom})=>(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({paddingLeft:left,paddingTop:top,paddingRight:right,paddingBottom:bottom})}}]); \ No newline at end of file diff --git a/storybook-static/3899.b00e7fde.iframe.bundle.js b/storybook-static/3899.b00e7fde.iframe.bundle.js new file mode 100644 index 000000000..13d14f0b7 --- /dev/null +++ b/storybook-static/3899.b00e7fde.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 3899.b00e7fde.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[3899],{"./node_modules/react-is/cjs/react-is.production.min.js":function(__unused_webpack_module,exports){"use strict";var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r=60122,u=60117,v=60129,w=60131;if("function"==typeof Symbol&&Symbol.for){var x=Symbol.for;b=x("react.element"),c=x("react.portal"),d=x("react.fragment"),e=x("react.strict_mode"),f=x("react.profiler"),g=x("react.provider"),h=x("react.context"),k=x("react.forward_ref"),l=x("react.suspense"),m=x("react.suspense_list"),n=x("react.memo"),p=x("react.lazy"),q=x("react.block"),r=x("react.server.block"),u=x("react.fundamental"),v=x("react.debug_trace_mode"),w=x("react.legacy_hidden")}function y(a){if("object"==typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}exports.isValidElementType=function(a){return"string"==typeof a||"function"==typeof a||a===d||a===f||a===v||a===e||a===l||a===m||a===w||"object"==typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===u||a.$$typeof===q||a[0]===r)},exports.typeOf=y},"./node_modules/react-is/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";module.exports=__webpack_require__("./node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/shallowequal/index.js":function(module){module.exports=function shallowEqual(objA,objB,compare,compareContext){var ret=compare?compare.call(compareContext,objA,objB):void 0;if(void 0!==ret)return!!ret;if(objA===objB)return!0;if("object"!=typeof objA||!objA||"object"!=typeof objB||!objB)return!1;var keysA=Object.keys(objA),keysB=Object.keys(objB);if(keysA.length!==keysB.length)return!1;for(var bHasOwnProperty=Object.prototype.hasOwnProperty.bind(objB),idx=0;idxq)&&(t=(f=f.replace(" ",":")).length),0h&&(h=(c=c.trim()).charCodeAt(0)),h){case 38:return c.replace(F,"$1"+d.trim());case 58:return d.trim()+c.replace(F,"$1"+d.trim());default:if(0<1*e&&0b.charCodeAt(8))break;case 115:a=a.replace(b,"-webkit-"+b)+";"+a;break;case 207:case 102:a=a.replace(b,"-webkit-"+(102e.charCodeAt(0)&&(e=e.trim()),e=[e],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s=k&&(k=t+1),T.set(e,t),x.set(t,e)},M="style["+N+'][data-styled-version="5.3.11"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.11");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(u+=e+",")})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return(K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y)}o.push(m)}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w:e,i=s.options,a=void 0===i?w:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_browser_esm(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=react.createContext(),le=(ce.Consumer,react.createContext()),de=(le.Consumer,new X),he=ae();function pe(){return(0,react.useContext)(ce)||de}function fe(){return(0,react.useContext)(le)||he}function me(e){var t=(0,react.useState)(e.stylisPlugins),n=t[0],s=t[1],c=pe(),u=(0,react.useMemo)((function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,react.useMemo)((function(){return ae({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,react.useEffect)((function(){shallowequal_default()(n,e.stylisPlugins)||s(e.stylisPlugins)}),[e.stylisPlugins]),react.createElement(ce.Provider,{value:u},react.createElement(le.Provider,{value:l},e.children))}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return"-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return"string"==typeof e&&!0}var ke=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Be(e,t,n){var r=e[n];ke(t)&&ke(r)?ze(r,t):e[n]=t}function ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b(e)));return Ye(e,y({},o,{attrs:g,componentId:s}),n)},Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?ze({},e.defaultProps,t):t}}),Object.defineProperty(A,"toString",{value:function(){return"."+A.styledComponentId}}),i&&hoist_non_react_statics_cjs_default()(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),A}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w),!(0,react_is.isValidElementType)(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ne(e),X.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var o=r(_e(this.rules,t,n,r).join(""),""),s=this.componentId+e;n.insertRules(s,s,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&X.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();function We(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?D(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return D(2);var n=((t={})[N]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=Y();return o&&(n.nonce=o),[react.createElement("style",y({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new X({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?D(2):react.createElement(me,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return D(3)}}();var styled_components_browser_esm=qe},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/EdsProvider/eds.context.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return useEds}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");__webpack_require__("./node_modules/react/jsx-runtime.js");const initalState={density:"comfortable"},EdsContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(initalState),useEds=()=>(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EdsContext)},"./packages/subsurface-viewer/node_modules/@equinor/eds-tokens/dist/esm/index.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{tokens:function(){return tokens}});var tokens={clickbounds:{jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},colors:{text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_ui_background__default, rgba(255, 255, 255, 1))"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_ui_background__light, rgba(247, 247, 247, 1))"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_ui_background__info, rgba(213, 234, 244, 1))"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive__focus, rgba(0, 112, 121, 1))"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"}}},elevation:{raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},interactions:{_modes:{compact:{pressed_dark_overlay:{blendMode:"pass_through",pressedColor:"transparent"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 1)"}}},pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},shape:{_modes:{compact:{rounded:{minHeight:"24px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"32px",minWidth:"32px",borderRadius:"100px"},straight:{minHeight:"24px",minWidth:"112px",borderRadius:""},toggle_rounded_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},toggle_straight_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},circle:{minHeight:"24px",minWidth:"24px",borderRadius:"100px"}}},toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},typography:{heading:{h1_bold:{color:"var(--eds_heading__h1_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},h1:{color:"var(--eds_heading__h1_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h2:{color:"var(--eds_heading__h2_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h3:{color:"var(--eds_heading__h3_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h4:{color:"var(--eds_heading__h4_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"var(--eds_heading__h5_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"var(--eds_heading__h6_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"var(--eds_navigation__menu_title_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"var(--eds_navigation__menu_tabs_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"var(--eds_navigation__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"var(--eds_navigation__drawer_active_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"var(--eds_navigation__drawer_inactive_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"var(--eds_navigation__button_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"var(--eds_navigation__breadcrumb_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"var(--eds_navigation__breadcrumb_hover_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},menu_title_hover:{color:"var(--eds_navigation__menu_title_hover_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"}},input:{label:{color:"var(--eds_input__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"var(--eds_input__text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_input__text_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"var(--eds_input__helper_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"var(--eds_paragraph__body_short_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"var(--eds_paragraph__caption_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"var(--eds_paragraph__meta_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"var(--eds_paragraph__body_short_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"var(--eds_paragraph__body_short_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"var(--eds_paragraph__body_short_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"var(--eds_paragraph__body_short_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"var(--eds_paragraph__overline_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"var(--eds_paragraph__ingress_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"var(--eds_paragraph__body_long_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"var(--eds_paragraph__body_long_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"var(--eds_paragraph__body_long_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"var(--eds_paragraph__body_long_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"var(--eds_paragraph__body_long_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},_modes:{compact:{table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"}}}},ui:{tooltip:{color:"var(--eds_ui__tooltip_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"var(--eds_ui__snackbar_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"var(--eds_ui__accordion_header_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"var(--eds_ui__chip__badge_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"var(--eds_ui__chart_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},spacings:{comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}}}},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/hooks/useToken.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return useToken}});var react=__webpack_require__("./node_modules/react/index.js");function _isPlaceholder(a){return null!=a&&"object"==typeof a&&!0===a["@@functional/placeholder"]}function _curry1(fn){return function f1(a){return 0===arguments.length||_isPlaceholder(a)?f1:fn.apply(this,arguments)}}function _curry2(fn){return function f2(a,b){switch(arguments.length){case 0:return f2;case 1:return _isPlaceholder(a)?f2:_curry1((function(_b){return fn(a,_b)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)?f2:_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b)})):fn(a,b)}}}function _curry3(fn){return function f3(a,b,c){switch(arguments.length){case 0:return f3;case 1:return _isPlaceholder(a)?f3:_curry2((function(_b,_c){return fn(a,_b,_c)}));case 2:return _isPlaceholder(a)&&_isPlaceholder(b)?f3:_isPlaceholder(a)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_curry1((function(_c){return fn(a,b,_c)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)&&_isPlaceholder(c)?f3:_isPlaceholder(a)&&_isPlaceholder(b)?_curry2((function(_a,_b){return fn(_a,_b,c)})):_isPlaceholder(a)&&_isPlaceholder(c)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)&&_isPlaceholder(c)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b,c)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b,c)})):_isPlaceholder(c)?_curry1((function(_c){return fn(a,b,_c)})):fn(a,b,c)}}}function _isObject(x){return"[object Object]"===Object.prototype.toString.call(x)}function _has(prop,obj){return Object.prototype.hasOwnProperty.call(obj,prop)}var mergeWithKey$1=_curry3((function mergeWithKey(fn,l,r){var k,result={};for(k in r=r||{},l=l||{})_has(k,l)&&(result[k]=_has(k,r)?fn(k,l[k],r[k]):l[k]);for(k in r)_has(k,r)&&!_has(k,result)&&(result[k]=r[k]);return result})),mergeDeepWithKey$1=_curry3((function mergeDeepWithKey(fn,lObj,rObj){return mergeWithKey$1((function(k,lVal,rVal){return _isObject(lVal)&&_isObject(rVal)?mergeDeepWithKey(fn,lVal,rVal):fn(k,lVal,rVal)}),lObj,rObj)})),mergeDeepRight$1=_curry2((function mergeDeepRight(lObj,rObj){return mergeDeepWithKey$1((function(k,lVal,rVal){return rVal}),lObj,rObj)}));const useToken=(options,token)=>(0,react.useCallback)((()=>{const{density:density}=options;return"compact"===density?mergeDeepRight$1(token,token.modes.compact):token}),[options,token])},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/common.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{F:function(){return shorthand}});const shorthand=token=>{if(!token)return;const{width:width="",style:style="",color:color=""}=token;return width?`${width} ${style} ${color}`:null}},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/focus.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:function(){return outlineTemplate}});var styled_components__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_equinor_eds_tokens__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-tokens/dist/esm/index.mjs"),_common_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/common.mjs");const{colors:{interactive:{focus:{rgba:focusColor}}}}=_equinor_eds_tokens__WEBPACK_IMPORTED_MODULE_0__.tokens,outlineTemplate=outline=>{const{color:color=focusColor,style:style="dashed",width:width="2px",offset:offset="0px",type:type}=outline,outline_={color:color,style:style,width:width,offset:offset,type:type};return(0,styled_components__WEBPACK_IMPORTED_MODULE_1__.iv)({outline:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_2__.F)(outline_),outlineOffset:outline_.offset})}},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{SH:function(){return spacingsTemplate},oc:function(){return typographyTemplate}});var styled_components__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js");const typographyTemplate=(typography,link)=>{if(!typography)return"";let base=`\n margin: 0;\n color: ${typography.color};\n font-family: ${typography.fontFamily};\n font-size: ${typography.fontSize};\n font-weight: ${typography.fontWeight};\n line-height: ${typography.lineHeight};\n `;return typography.fontStyle&&(base+=`\nfont-style: ${typography.fontStyle};`),typography.letterSpacing&&(base+=`\nletter-spacing: ${typography.letterSpacing};`),typography.textTransform&&(base+=`\ntext-transform: ${typography.textTransform};`),typography.textDecoration&&(base+=`\ntext-decoration: ${typography.textDecoration};`),typography.textAlign&&(base+=`\ntext-align: ${typography.textAlign};`),typography.fontFeature&&(base+=`\nfont-feature-settings: ${typography.fontFeature};`),link&&(base+="\ncursor: pointer;"),base},spacingsTemplate=({left:left,right:right,top:top,bottom:bottom})=>(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({paddingLeft:left,paddingTop:top,paddingRight:right,paddingBottom:bottom})}}]); \ No newline at end of file diff --git a/storybook-static/3899.4bbb3099.iframe.bundle.js.LICENSE.txt b/storybook-static/3899.b00e7fde.iframe.bundle.js.LICENSE.txt similarity index 100% rename from storybook-static/3899.4bbb3099.iframe.bundle.js.LICENSE.txt rename to storybook-static/3899.b00e7fde.iframe.bundle.js.LICENSE.txt diff --git a/storybook-static/4091.c8ab2006.iframe.bundle.js b/storybook-static/4091.c8ab2006.iframe.bundle.js deleted file mode 100644 index 3d2224c7f..000000000 --- a/storybook-static/4091.c8ab2006.iframe.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 4091.c8ab2006.iframe.bundle.js.LICENSE.txt */ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[4091],{"./node_modules/@equinor/eds-icons/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{_Oe:function(){return arrow_drop_down},sBW:function(){return arrow_drop_up}});const arrow_drop_down={name:"arrow_drop_down",prefix:"eds",height:"24",width:"24",svgPathData:"m7 9.5 5 5 5-5H7Z",sizes:{small:{name:"arrow_drop_down_small",prefix:"eds",height:"18",width:"18",svgPathData:"m4 6.5 5 5 5-5H4Z"}}},arrow_drop_up={name:"arrow_drop_up",prefix:"eds",height:"24",width:"24",svgPathData:"m7 14.5 5-5 5 5H7Z",sizes:{small:{name:"arrow_drop_up_small",prefix:"eds",height:"18",width:"18",svgPathData:"m14 11.5-5-5-5 5h10Z"}}}},"./node_modules/@mui/material/Table/Table.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return Table_Table}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),TableContext=__webpack_require__("./node_modules/@mui/material/Table/TableContext.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getTableUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiTable",slot)}(0,generateUtilityClasses.Z)("MuiTable",["root","stickyHeader"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["className","component","padding","size","stickyHeader"],TableRoot=(0,styled.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,ownerState.stickyHeader&&styles.stickyHeader]}})((({theme:theme,ownerState:ownerState})=>(0,esm_extends.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,esm_extends.Z)({},theme.typography.body2,{padding:theme.spacing(2),color:(theme.vars||theme).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},ownerState.stickyHeader&&{borderCollapse:"separate"}))),defaultComponent="table";var Table_Table=react.forwardRef((function Table(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiTable"}),{className:className,component:component=defaultComponent,padding:padding="normal",size:size="medium",stickyHeader:stickyHeader=!1}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),ownerState=(0,esm_extends.Z)({},props,{component:component,padding:padding,size:size,stickyHeader:stickyHeader}),classes=(ownerState=>{const{classes:classes,stickyHeader:stickyHeader}=ownerState,slots={root:["root",stickyHeader&&"stickyHeader"]};return(0,composeClasses.Z)(slots,getTableUtilityClass,classes)})(ownerState),table=react.useMemo((()=>({padding:padding,size:size,stickyHeader:stickyHeader})),[padding,size,stickyHeader]);return(0,jsx_runtime.jsx)(TableContext.Z.Provider,{value:table,children:(0,jsx_runtime.jsx)(TableRoot,(0,esm_extends.Z)({as:component,role:component===defaultComponent?null:"table",ref:ref,className:(0,clsx.Z)(classes.root,className),ownerState:ownerState},other))})}))},"./node_modules/@mui/material/Table/TableContext.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){const TableContext=__webpack_require__("./node_modules/react/index.js").createContext();__webpack_exports__.Z=TableContext},"./node_modules/@mui/material/Table/Tablelvl2Context.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){const Tablelvl2Context=__webpack_require__("./node_modules/react/index.js").createContext();__webpack_exports__.Z=Tablelvl2Context},"./node_modules/@mui/material/TableBody/TableBody.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return TableBody_TableBody}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),Tablelvl2Context=__webpack_require__("./node_modules/@mui/material/Table/Tablelvl2Context.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getTableBodyUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiTableBody",slot)}(0,generateUtilityClasses.Z)("MuiTableBody",["root"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["className","component"],TableBodyRoot=(0,styled.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(props,styles)=>styles.root})({display:"table-row-group"}),tablelvl2={variant:"body"},defaultComponent="tbody";var TableBody_TableBody=react.forwardRef((function TableBody(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiTableBody"}),{className:className,component:component=defaultComponent}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),ownerState=(0,esm_extends.Z)({},props,{component:component}),classes=(ownerState=>{const{classes:classes}=ownerState;return(0,composeClasses.Z)({root:["root"]},getTableBodyUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsx)(Tablelvl2Context.Z.Provider,{value:tablelvl2,children:(0,jsx_runtime.jsx)(TableBodyRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(classes.root,className),as:component,ref:ref,role:component===defaultComponent?null:"rowgroup",ownerState:ownerState},other))})}))},"./node_modules/@mui/material/TableCell/TableCell.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return TableCell_TableCell}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),colorManipulator=__webpack_require__("./node_modules/@mui/system/colorManipulator.js"),capitalize=__webpack_require__("./node_modules/@mui/material/utils/capitalize.js"),TableContext=__webpack_require__("./node_modules/@mui/material/Table/TableContext.js"),Tablelvl2Context=__webpack_require__("./node_modules/@mui/material/Table/Tablelvl2Context.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getTableCellUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiTableCell",slot)}var TableCell_tableCellClasses=(0,generateUtilityClasses.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["align","className","component","padding","scope","size","sortDirection","variant"],TableCellRoot=(0,styled.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,styles[ownerState.variant],styles[`size${(0,capitalize.Z)(ownerState.size)}`],"normal"!==ownerState.padding&&styles[`padding${(0,capitalize.Z)(ownerState.padding)}`],"inherit"!==ownerState.align&&styles[`align${(0,capitalize.Z)(ownerState.align)}`],ownerState.stickyHeader&&styles.stickyHeader]}})((({theme:theme,ownerState:ownerState})=>(0,esm_extends.Z)({},theme.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:theme.vars?`1px solid ${theme.vars.palette.TableCell.border}`:`1px solid\n ${"light"===theme.palette.mode?(0,colorManipulator.$n)((0,colorManipulator.Fq)(theme.palette.divider,1),.88):(0,colorManipulator._j)((0,colorManipulator.Fq)(theme.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===ownerState.variant&&{color:(theme.vars||theme).palette.text.primary,lineHeight:theme.typography.pxToRem(24),fontWeight:theme.typography.fontWeightMedium},"body"===ownerState.variant&&{color:(theme.vars||theme).palette.text.primary},"footer"===ownerState.variant&&{color:(theme.vars||theme).palette.text.secondary,lineHeight:theme.typography.pxToRem(21),fontSize:theme.typography.pxToRem(12)},"small"===ownerState.size&&{padding:"6px 16px",[`&.${TableCell_tableCellClasses.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===ownerState.padding&&{width:48,padding:"0 0 0 4px"},"none"===ownerState.padding&&{padding:0},"left"===ownerState.align&&{textAlign:"left"},"center"===ownerState.align&&{textAlign:"center"},"right"===ownerState.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===ownerState.align&&{textAlign:"justify"},ownerState.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(theme.vars||theme).palette.background.default})));var TableCell_TableCell=react.forwardRef((function TableCell(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiTableCell"}),{align:align="inherit",className:className,component:componentProp,padding:paddingProp,scope:scopeProp,size:sizeProp,sortDirection:sortDirection,variant:variantProp}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),table=react.useContext(TableContext.Z),tablelvl2=react.useContext(Tablelvl2Context.Z),isHeadCell=tablelvl2&&"head"===tablelvl2.variant;let component;component=componentProp||(isHeadCell?"th":"td");let scope=scopeProp;"td"===component?scope=void 0:!scope&&isHeadCell&&(scope="col");const variant=variantProp||tablelvl2&&tablelvl2.variant,ownerState=(0,esm_extends.Z)({},props,{align:align,component:component,padding:paddingProp||(table&&table.padding?table.padding:"normal"),size:sizeProp||(table&&table.size?table.size:"medium"),sortDirection:sortDirection,stickyHeader:"head"===variant&&table&&table.stickyHeader,variant:variant}),classes=(ownerState=>{const{classes:classes,variant:variant,align:align,padding:padding,size:size,stickyHeader:stickyHeader}=ownerState,slots={root:["root",variant,stickyHeader&&"stickyHeader","inherit"!==align&&`align${(0,capitalize.Z)(align)}`,"normal"!==padding&&`padding${(0,capitalize.Z)(padding)}`,`size${(0,capitalize.Z)(size)}`]};return(0,composeClasses.Z)(slots,getTableCellUtilityClass,classes)})(ownerState);let ariaSort=null;return sortDirection&&(ariaSort="asc"===sortDirection?"ascending":"descending"),(0,jsx_runtime.jsx)(TableCellRoot,(0,esm_extends.Z)({as:component,ref:ref,className:(0,clsx.Z)(classes.root,className),"aria-sort":ariaSort,scope:scope,ownerState:ownerState},other))}))},"./node_modules/@mui/material/TableContainer/TableContainer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return TableContainer_TableContainer}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getTableContainerUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiTableContainer",slot)}(0,generateUtilityClasses.Z)("MuiTableContainer",["root"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["className","component"],TableContainerRoot=(0,styled.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(props,styles)=>styles.root})({width:"100%",overflowX:"auto"});var TableContainer_TableContainer=react.forwardRef((function TableContainer(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiTableContainer"}),{className:className,component:component="div"}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),ownerState=(0,esm_extends.Z)({},props,{component:component}),classes=(ownerState=>{const{classes:classes}=ownerState;return(0,composeClasses.Z)({root:["root"]},getTableContainerUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsx)(TableContainerRoot,(0,esm_extends.Z)({ref:ref,as:component,className:(0,clsx.Z)(classes.root,className),ownerState:ownerState},other))}))},"./node_modules/@mui/material/TableRow/TableRow.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return TableRow_TableRow}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),colorManipulator=__webpack_require__("./node_modules/@mui/system/colorManipulator.js"),Tablelvl2Context=__webpack_require__("./node_modules/@mui/material/Table/Tablelvl2Context.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getTableRowUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiTableRow",slot)}var TableRow_tableRowClasses=(0,generateUtilityClasses.Z)("MuiTableRow",["root","selected","hover","head","footer"]),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["className","component","hover","selected"],TableRowRoot=(0,styled.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,ownerState.head&&styles.head,ownerState.footer&&styles.footer]}})((({theme:theme})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${TableRow_tableRowClasses.hover}:hover`]:{backgroundColor:(theme.vars||theme).palette.action.hover},[`&.${TableRow_tableRowClasses.selected}`]:{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity),"&:hover":{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity+theme.palette.action.hoverOpacity)}}}))),defaultComponent="tr";var TableRow_TableRow=react.forwardRef((function TableRow(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiTableRow"}),{className:className,component:component=defaultComponent,hover:hover=!1,selected:selected=!1}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),tablelvl2=react.useContext(Tablelvl2Context.Z),ownerState=(0,esm_extends.Z)({},props,{component:component,hover:hover,selected:selected,head:tablelvl2&&"head"===tablelvl2.variant,footer:tablelvl2&&"footer"===tablelvl2.variant}),classes=(ownerState=>{const{classes:classes,selected:selected,hover:hover,head:head,footer:footer}=ownerState,slots={root:["root",selected&&"selected",hover&&"hover",head&&"head",footer&&"footer"]};return(0,composeClasses.Z)(slots,getTableRowUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsx)(TableRowRoot,(0,esm_extends.Z)({as:component,ref:ref,className:(0,clsx.Z)(classes.root,className),role:component===defaultComponent?null:"row",ownerState:ownerState},other))}))},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Button/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{z:function(){return Button_Button}});var react=__webpack_require__("./node_modules/react/index.js"),react_namespaceObject=__webpack_require__.t(react,2),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),esm=__webpack_require__("./node_modules/@equinor/eds-tokens/dist/esm/index.mjs");const{typography:{navigation:{button:buttonTypography}},colors:{interactive:{disabled__text:{rgba:disabledTextColor},disabled__border:{rgba:disabledBorderColor},disabled__fill:{rgba:disabledColor}}},spacings:{comfortable:{medium:medium}},shape:{button:{minHeight:buttonHeight,borderRadius:buttonBorderRadius},_modes:{compact:{button:{minHeight:compactButtonHeight}}}},interactions:{focused:outline},clickbounds:{default__base:clicboundHeight,compact__standard:compactClickboundHeight}}=esm.tokens,button_button={background:"transparent",height:`var(--eds_button__height, ${buttonHeight})`,typography:{...buttonTypography,textAlign:"center",fontSize:`var(--eds_button__font_size, ${buttonTypography.fontSize})`},border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:`var(--eds_button__radius, ${buttonBorderRadius})`,style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:`var(--eds_button__padding_x, ${medium})`,right:`var(--eds_button__padding_x, ${medium})`},clickbound:{height:clicboundHeight,width:"100%",offset:{top:(parseInt(clicboundHeight)-parseInt(buttonHeight))/2+1+"px",left:"0"}},entities:{icon:{height:"var(--eds_button__icon__size, 24px)",width:"var(--eds_button__icon__size, 24px)"}},states:{hover:{border:{type:"border",width:"1px",color:"transparent",radius:`var(--eds_button__radius, ${buttonBorderRadius})`,style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:outline.color,width:outline.width}},disabled:{background:disabledColor,border:{type:"border",width:"1px",color:disabledBorderColor,style:"solid"},typography:{...buttonTypography,color:disabledTextColor,textAlign:"center"}}},modes:{compact:{height:`var(--eds_button__height_compact, ${compactButtonHeight})`,spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:compactClickboundHeight,width:"100%",offset:{top:(parseInt(compactClickboundHeight)-parseInt(compactButtonHeight))/2+1+"px",left:"0"}}}}};var mergeDeepRight=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/node_modules/.pnpm/ramda@0.29.1/node_modules/ramda/es/mergeDeepRight.js");const{colors:{text:{static_icons__primary_white:{rgba:primaryWhite}},interactive:{primary__resting:{rgba:primaryColor},primary__hover:{rgba:primaryHoverColor},secondary__resting:{rgba:secondaryColor},secondary__link_hover:{rgba:secondaryHoverColor},danger__resting:{rgba:dangerColor},danger__hover:{rgba:dangerHoverColor}}},shape:{button:{borderRadius:contained_buttonBorderRadius}}}=esm.tokens,primary=(0,mergeDeepRight.Z)(button_button,{background:primaryColor,typography:{color:primaryWhite},border:{type:"border",style:"solid",width:"1px",color:primaryColor,radius:`var(--eds_button__radius, ${contained_buttonBorderRadius})`},states:{hover:{background:primaryHoverColor}}}),secondary=(0,mergeDeepRight.Z)(primary,{background:secondaryColor,border:{color:secondaryColor},states:{hover:{background:secondaryHoverColor,border:{color:secondaryHoverColor}}}}),danger=(0,mergeDeepRight.Z)(primary,{background:dangerColor,border:{color:dangerColor},states:{hover:{background:dangerHoverColor,border:{color:dangerHoverColor}}}}),{colors:{interactive:{primary__resting:{rgba:outlined_primaryColor},primary__hover:{rgba:outlined_primaryHoverColor},primary__hover_alt:{rgba:primaryHoverAltColor},secondary__resting:{rgba:outlined_secondaryColor},secondary__link_hover:{rgba:outlined_secondaryHoverColor},secondary__highlight:{rgba:secondaryHoverAltColor},danger__resting:{rgba:outlined_dangerColor},danger__hover:{rgba:outlined_dangerHoverColor},danger__highlight:{rgba:dangerHoverAltColor}}},shape:{button:{borderRadius:outlined_buttonBorderRadius}}}=esm.tokens,outlined_primary=(0,mergeDeepRight.Z)(button_button,{typography:{color:outlined_primaryColor},border:{type:"border",style:"solid",width:"1px",color:outlined_primaryColor,radius:`var(--eds_button__radius, ${outlined_buttonBorderRadius})`},states:{hover:{typography:{color:outlined_primaryHoverColor},background:primaryHoverAltColor,border:{style:"solid",type:"border",width:"1px",color:outlined_primaryHoverColor}},disabled:{background:"transparent"}}}),outlined_secondary=(0,mergeDeepRight.Z)(outlined_primary,{typography:{color:outlined_secondaryColor},border:{color:outlined_secondaryColor},states:{hover:{background:secondaryHoverAltColor,typography:{color:outlined_secondaryHoverColor},border:{color:outlined_secondaryHoverColor}}}}),outlined_danger=(0,mergeDeepRight.Z)(outlined_primary,{typography:{color:outlined_dangerColor},border:{color:outlined_dangerColor},states:{hover:{background:dangerHoverAltColor,typography:{color:outlined_dangerHoverColor},border:{color:outlined_dangerHoverColor}}}}),{colors:{interactive:{primary__resting:{rgba:ghost_primaryColor},primary__hover:{rgba:ghost_primaryHoverColor},primary__hover_alt:{rgba:ghost_primaryHoverAltColor},secondary__resting:{rgba:ghost_secondaryColor},secondary__link_hover:{rgba:ghost_secondaryHoverColor},secondary__highlight:{rgba:ghost_secondaryHoverAltColor},danger__resting:{rgba:ghost_dangerColor},danger__hover:{rgba:ghost_dangerHoverColor},danger__highlight:{rgba:ghost_dangerHoverAltColor}}}}=esm.tokens,ghost_primary=(0,mergeDeepRight.Z)(button_button,{typography:{color:ghost_primaryColor},states:{hover:{background:ghost_primaryHoverAltColor,typography:{color:ghost_primaryHoverColor}},disabled:{background:"transparent",border:{color:"transparent"}}}}),ghost_secondary=(0,mergeDeepRight.Z)(ghost_primary,{typography:{color:ghost_secondaryColor},states:{hover:{background:ghost_secondaryHoverAltColor,typography:{color:ghost_secondaryHoverColor}}}}),ghost_danger=(0,mergeDeepRight.Z)(ghost_primary,{typography:{color:ghost_dangerColor},states:{hover:{background:ghost_dangerHoverAltColor,typography:{color:ghost_dangerHoverColor}}}}),{colors:{interactive:{primary__resting:{rgba:icon_primaryColor},primary__hover_alt:{rgba:icon_primaryHoverAltColor},secondary__resting:{rgba:icon_secondaryColor},secondary__link_hover:{rgba:icon_secondaryHoverColor},secondary__highlight:{rgba:icon_secondaryHoverAltColor},danger__resting:{rgba:icon_dangerColor},danger__hover:{rgba:icon_dangerHoverColor},danger__highlight:{rgba:icon_dangerHoverAltColor}}},clickbounds:{default__base:icon_clicboundHeight,compact__standard:icon_compactClickboundHeight},shape:shape,interactions:{focused:{width:focusOutlineWidth}}}=esm.tokens,icon_primary=(0,mergeDeepRight.Z)(button_button,{height:shape.icon_button.minHeight,width:shape.icon_button.minWidth,typography:{color:icon_primaryColor},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:icon_clicboundHeight,offset:{top:"0",left:(parseInt(icon_clicboundHeight)-parseInt(shape.icon_button.minWidth))/2+"px"}},states:{hover:{background:icon_primaryHoverAltColor,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:`-${parseInt(focusOutlineWidth)}px`}}},modes:{compact:{height:shape._modes.compact.icon_button.minHeight,width:shape._modes.compact.icon_button.minWidth,clickbound:{width:icon_compactClickboundHeight,offset:{top:"0",left:(parseInt(icon_compactClickboundHeight)-parseInt(shape._modes.compact.icon_button.minWidth))/2+"px"}}}}}),icon_secondary=(0,mergeDeepRight.Z)(icon_primary,{typography:{color:icon_secondaryColor},states:{hover:{background:icon_secondaryHoverAltColor,typography:{color:icon_secondaryHoverColor}}}}),icon_danger=(0,mergeDeepRight.Z)(icon_primary,{typography:{color:icon_dangerColor},states:{hover:{background:icon_dangerHoverAltColor,typography:{color:icon_dangerHoverColor}}}}),{clickbounds:{default__base:contained_icon_clicboundHeight,compact__standard:contained_icon_compactClickboundHeight},shape:contained_icon_shape}=esm.tokens,contained_icon={height:contained_icon_shape.icon_button.minHeight,width:contained_icon_shape.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:contained_icon_clicboundHeight,offset:{top:"0",left:(parseInt(contained_icon_clicboundHeight)-parseInt("40px"))/2+"px"}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:contained_icon_shape._modes.compact.icon_button.minHeight,width:contained_icon_shape._modes.compact.icon_button.minWidth,clickbound:{width:contained_icon_compactClickboundHeight,offset:{top:"0",left:(parseInt(contained_icon_compactClickboundHeight)-parseInt(contained_icon_shape._modes.compact.icon_button.minWidth))/2+"px"}}}}},token={primary:{contained:primary,outlined:outlined_primary,ghost:ghost_primary,ghost_icon:icon_primary,contained_icon:(0,mergeDeepRight.Z)(primary,contained_icon)},secondary:{contained:secondary,outlined:outlined_secondary,ghost:ghost_secondary,ghost_icon:icon_secondary,contained_icon:(0,mergeDeepRight.Z)(secondary,contained_icon)},danger:{contained:danger,outlined:outlined_danger,ghost:ghost_danger,ghost_icon:icon_danger,contained_icon:(0,mergeDeepRight.Z)(danger,contained_icon)}};var templates=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs"),borders=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/borders.mjs"),templates_focus=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/focus.mjs"),useToken=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/hooks/useToken.mjs"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const FullWidthCenterContent=styled_components_browser_esm.ZP.span.withConfig({displayName:"InnerFullWidth__FullWidthCenterContent",componentId:"sc-qeawkb-0"})(["text-align:center;flex:1;"]),FullWidthInner=styled_components_browser_esm.ZP.span.withConfig({displayName:"InnerFullWidth__FullWidthInner",componentId:"sc-qeawkb-1"})(["height:100%;display:flex;align-items:center;> :is(svg,img){margin-top:var(--eds_button__margin_y,inherit);margin-bottom:var(--eds_button__margin_y,inherit);}> :is(svg,img):first-child{margin-right:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):last-child{margin-left:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):only-child{margin-left:auto;margin-right:auto;}> span:first-child{margin-left:var(--eds_button__fullwidth__margin_x,32px);}> span:last-child{margin-right:var(--eds_button__fullwidth__margin_x,32px);}> span:only-child{margin-right:0;margin-left:0;}"]),InnerFullWidth=(0,react.forwardRef)((function InnerFullWidth({children:children},ref){const updatedChildren=react.Children.map(children,(child=>"object"!=typeof child?(0,jsx_runtime.jsx)(FullWidthCenterContent,{children:child}):child));return(0,jsx_runtime.jsx)(FullWidthInner,{ref:ref,children:updatedChildren})}));var eds_context=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/EdsProvider/eds.context.js");const getVariant=(tokenSet,variant)=>{switch(variant){case"ghost":return tokenSet.ghost;case"ghost_icon":return tokenSet.ghost_icon;case"outlined":return tokenSet.outlined;case"contained_icon":return tokenSet.contained_icon;default:return tokenSet.contained}},getToken=(variant,color)=>{switch(color){case"danger":return getVariant(token.danger,variant);case"secondary":return getVariant(token.secondary,variant);default:return getVariant(token.primary,variant)}},Inner=styled_components_browser_esm.ZP.span.withConfig({displayName:"Button__Inner",componentId:"sc-1hs0myn-0"})(["display:grid;grid-gap:var(--eds_button__gap,8px);grid-auto-flow:column;align-items:center;height:100%;justify-content:center;& > :is(svg,img){margin-top:var(--eds_button__icon__margin_y,0);margin-bottom:var(--eds_button__icon__margin_y,0);}"]),ButtonBase=styled_components_browser_esm.ZP.button.withConfig({displayName:"Button__ButtonBase",componentId:"sc-1hs0myn-1"})((({theme:theme})=>{const{states:states,clickbound:clickbound}=theme,{focus:focus,hover:hover,disabled:disabled}=states;return(0,styled_components_browser_esm.iv)(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:",";height:",";width:",";svg{justify-self:center;}"," "," "," &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-",";left:-",";width:",";height:",";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:",";color:",";",";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:",";",";",";@media (hover:hover) and (pointer:fine){&:hover{background:",";}}}"],theme.background,theme.height,theme.width,(0,templates.SH)(theme.spacings),(0,borders.$)(theme.border),(0,templates.oc)(theme.typography),clickbound?.offset?.top,clickbound?.offset?.left,clickbound?.width,clickbound?.height,hover.background,hover.typography?.color,(0,borders.$)(hover?.border),(0,templates_focus.p)(focus.outline),(0,templates_focus.p)(focus.outline),disabled.background,(0,borders.$)(disabled.border),(0,templates.oc)(disabled.typography),disabled.background)})),Button=(0,react.forwardRef)((function Button({color:color="primary",variant:variant="contained",children:children,disabled:disabled=!1,href:href,tabIndex:tabIndex=0,fullWidth:fullWidth=!1,...other},ref){const{density:density}=(0,eds_context.q)(),token=(0,useToken.d)({density:density},getToken(variant,color)),buttonProps={ref:ref,as:href&&!disabled?"a":other.as?other.as:"button",href:href,type:href||other.as?void 0:"button",disabled:disabled,tabIndex:tabIndex=disabled?-1:tabIndex,...other};return(0,jsx_runtime.jsx)(styled_components_browser_esm.f6,{theme:token,children:(0,jsx_runtime.jsx)(ButtonBase,{...buttonProps,children:fullWidth?(0,jsx_runtime.jsx)(InnerFullWidth,{children:children}):(0,jsx_runtime.jsx)(Inner,{children:children})})})})),{shape:{corners:{borderRadius:borderRadius}}}=esm.tokens,group={border:{type:"border",radius:borderRadius}},{border:border}=group,radius="border"===border.type&&border.radius,ButtonGroupBase=styled_components_browser_esm.ZP.div.withConfig({displayName:"ButtonGroup__ButtonGroupBase",componentId:"sc-1fn8jon-0"})(["display:inline-flex;> *{border-radius:0;@media (hover:hover) and (pointer:fine){&:hover{border-radius:0;}}}",""],(({$vertical:$vertical})=>$vertical?(0,styled_components_browser_esm.iv)(["flex-direction:column;> :first-child{border-top-left-radius:",";border-top-right-radius:",";}> :last-child{border-bottom-left-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-bottom:none;}"],radius,radius,radius,radius):(0,styled_components_browser_esm.iv)(["> :first-child{border-top-left-radius:",";border-bottom-left-radius:",";}> :last-child{border-top-right-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-right:none;}"],radius,radius,radius,radius))),ButtonGroup=(0,react.forwardRef)((function ButtonGroup({children:children,vertical:vertical,...rest},ref){const props={ref:ref,$vertical:vertical,...rest};return(0,jsx_runtime.jsx)(ButtonGroupBase,{role:"group",...props,children:children})})),mergeRefs=(...refs)=>element=>refs.forEach((ref=>{"function"==typeof ref?ref(element):ref&&"object"==typeof ref&&(ref.current=element)})),{colors:{text:{static_icons__primary_white:{rgba:white}},ui:{background__overlay:{rgba:background}}},typography:{ui:ui},spacings:{comfortable:{x_large:spacingXlarge,small:spacingSmall}},shape:{corners:{borderRadius:Tooltip_tokens_borderRadius}}}=esm.tokens,tooltip={typography:{...ui.tooltip,color:white},background:background,border:{type:"border",radius:Tooltip_tokens_borderRadius},entities:{tooltip:{height:spacingXlarge},arrow:{width:"6px",height:spacingSmall,spacings:{bottom:"-6px",top:"-6px",left:"-6px",right:"-6px"}}},spacings:{left:spacingSmall,right:spacingSmall,top:spacingSmall,bottom:spacingSmall}};function floating_ui_utils_dom_getNodeName(node){return isNode(node)?(node.nodeName||"").toLowerCase():"#document"}function floating_ui_utils_dom_getWindow(node){var _node$ownerDocument;return(null==node||null==(_node$ownerDocument=node.ownerDocument)?void 0:_node$ownerDocument.defaultView)||window}function isNode(value){return value instanceof Node||value instanceof floating_ui_utils_dom_getWindow(value).Node}function floating_ui_utils_dom_isElement(value){return value instanceof Element||value instanceof floating_ui_utils_dom_getWindow(value).Element}function floating_ui_utils_dom_isHTMLElement(value){return value instanceof HTMLElement||value instanceof floating_ui_utils_dom_getWindow(value).HTMLElement}function isShadowRoot(value){return"undefined"!=typeof ShadowRoot&&(value instanceof ShadowRoot||value instanceof floating_ui_utils_dom_getWindow(value).ShadowRoot)}function isLastTraversableNode(node){return["html","body","#document"].includes(floating_ui_utils_dom_getNodeName(node))}function floating_ui_utils_dom_getComputedStyle(element){return floating_ui_utils_dom_getWindow(element).getComputedStyle(element)}function getParentNode(node){if("html"===floating_ui_utils_dom_getNodeName(node))return node;const result=node.assignedSlot||node.parentNode||isShadowRoot(node)&&node.host||function getDocumentElement(node){var _ref;return null==(_ref=(isNode(node)?node.ownerDocument:node.document)||window.document)?void 0:_ref.documentElement}(node);return isShadowRoot(result)?result.host:result}function floating_ui_react_utils_activeElement(doc){let activeElement=doc.activeElement;for(;null!=(null==(_activeElement=activeElement)||null==(_activeElement=_activeElement.shadowRoot)?void 0:_activeElement.activeElement);){var _activeElement;activeElement=activeElement.shadowRoot.activeElement}return activeElement}function floating_ui_react_utils_contains(parent,child){if(!parent||!child)return!1;const rootNode=null==child.getRootNode?void 0:child.getRootNode();if(parent.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){let next=child;for(;next;){if(parent===next)return!0;next=next.parentNode||next.host}}return!1}function floating_ui_react_utils_getPlatform(){const uaData=navigator.userAgentData;return null!=uaData&&uaData.platform?uaData.platform:navigator.platform}function floating_ui_react_utils_getUserAgent(){const uaData=navigator.userAgentData;return uaData&&Array.isArray(uaData.brands)?uaData.brands.map((_ref=>{let{brand:brand,version:version}=_ref;return brand+"/"+version})).join(" "):navigator.userAgent}function floating_ui_react_utils_isVirtualPointerEvent(event){return!function isJSDOM(){return floating_ui_react_utils_getUserAgent().includes("jsdom/")}()&&(!isAndroid()&&0===event.width&&0===event.height||isAndroid()&&1===event.width&&1===event.height&&0===event.pressure&&0===event.detail&&"mouse"===event.pointerType||event.width<1&&event.height<1&&0===event.pressure&&0===event.detail&&"touch"===event.pointerType)}function floating_ui_react_utils_isSafari(){return/apple/i.test(navigator.vendor)}function isAndroid(){const re=/android/i;return re.test(floating_ui_react_utils_getPlatform())||re.test(floating_ui_react_utils_getUserAgent())}function floating_ui_react_utils_isMouseLikePointerType(pointerType,strict){const values=["mouse","pen"];return strict||values.push("",void 0),values.includes(pointerType)}function floating_ui_react_utils_getDocument(node){return(null==node?void 0:node.ownerDocument)||document}function isEventTargetWithin(event,node){if(null==node)return!1;if("composedPath"in event)return event.composedPath().includes(node);const e=event;return null!=e.target&&node.contains(e.target)}function floating_ui_react_utils_getTarget(event){return"composedPath"in event?event.composedPath()[0]:event.target}const TYPEABLE_SELECTOR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function floating_ui_react_utils_isTypeableElement(element){return floating_ui_utils_dom_isHTMLElement(element)&&element.matches(TYPEABLE_SELECTOR)}function dist_floating_ui_utils_dom_getNodeName(node){return floating_ui_utils_dom_isNode(node)?(node.nodeName||"").toLowerCase():"#document"}function dist_floating_ui_utils_dom_getWindow(node){var _node$ownerDocument;return(null==node||null==(_node$ownerDocument=node.ownerDocument)?void 0:_node$ownerDocument.defaultView)||window}function floating_ui_utils_dom_getDocumentElement(node){var _ref;return null==(_ref=(floating_ui_utils_dom_isNode(node)?node.ownerDocument:node.document)||window.document)?void 0:_ref.documentElement}function floating_ui_utils_dom_isNode(value){return value instanceof Node||value instanceof dist_floating_ui_utils_dom_getWindow(value).Node}function dist_floating_ui_utils_dom_isElement(value){return value instanceof Element||value instanceof dist_floating_ui_utils_dom_getWindow(value).Element}function dist_floating_ui_utils_dom_isHTMLElement(value){return value instanceof HTMLElement||value instanceof dist_floating_ui_utils_dom_getWindow(value).HTMLElement}function floating_ui_utils_dom_isShadowRoot(value){return"undefined"!=typeof ShadowRoot&&(value instanceof ShadowRoot||value instanceof dist_floating_ui_utils_dom_getWindow(value).ShadowRoot)}function floating_ui_utils_dom_isOverflowElement(element){const{overflow:overflow,overflowX:overflowX,overflowY:overflowY,display:display}=dist_floating_ui_utils_dom_getComputedStyle(element);return/auto|scroll|overlay|hidden|clip/.test(overflow+overflowY+overflowX)&&!["inline","contents"].includes(display)}function floating_ui_utils_dom_isTableElement(element){return["table","td","th"].includes(dist_floating_ui_utils_dom_getNodeName(element))}function floating_ui_utils_dom_isContainingBlock(element){const webkit=floating_ui_utils_dom_isWebKit(),css=dist_floating_ui_utils_dom_getComputedStyle(element);return"none"!==css.transform||"none"!==css.perspective||!!css.containerType&&"normal"!==css.containerType||!webkit&&!!css.backdropFilter&&"none"!==css.backdropFilter||!webkit&&!!css.filter&&"none"!==css.filter||["transform","perspective","filter"].some((value=>(css.willChange||"").includes(value)))||["paint","layout","strict","content"].some((value=>(css.contain||"").includes(value)))}function floating_ui_utils_dom_isWebKit(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function floating_ui_utils_dom_isLastTraversableNode(node){return["html","body","#document"].includes(dist_floating_ui_utils_dom_getNodeName(node))}function dist_floating_ui_utils_dom_getComputedStyle(element){return dist_floating_ui_utils_dom_getWindow(element).getComputedStyle(element)}function floating_ui_utils_dom_getNodeScroll(element){return dist_floating_ui_utils_dom_isElement(element)?{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}:{scrollLeft:element.pageXOffset,scrollTop:element.pageYOffset}}function floating_ui_utils_dom_getParentNode(node){if("html"===dist_floating_ui_utils_dom_getNodeName(node))return node;const result=node.assignedSlot||node.parentNode||floating_ui_utils_dom_isShadowRoot(node)&&node.host||floating_ui_utils_dom_getDocumentElement(node);return floating_ui_utils_dom_isShadowRoot(result)?result.host:result}function floating_ui_utils_dom_getNearestOverflowAncestor(node){const parentNode=floating_ui_utils_dom_getParentNode(node);return floating_ui_utils_dom_isLastTraversableNode(parentNode)?node.ownerDocument?node.ownerDocument.body:node.body:dist_floating_ui_utils_dom_isHTMLElement(parentNode)&&floating_ui_utils_dom_isOverflowElement(parentNode)?parentNode:floating_ui_utils_dom_getNearestOverflowAncestor(parentNode)}function floating_ui_utils_dom_getOverflowAncestors(node,list,traverseIframes){var _node$ownerDocument2;void 0===list&&(list=[]),void 0===traverseIframes&&(traverseIframes=!0);const scrollableAncestor=floating_ui_utils_dom_getNearestOverflowAncestor(node),isBody=scrollableAncestor===(null==(_node$ownerDocument2=node.ownerDocument)?void 0:_node$ownerDocument2.body),win=dist_floating_ui_utils_dom_getWindow(scrollableAncestor);return isBody?list.concat(win,win.visualViewport||[],floating_ui_utils_dom_isOverflowElement(scrollableAncestor)?scrollableAncestor:[],win.frameElement&&traverseIframes?floating_ui_utils_dom_getOverflowAncestors(win.frameElement):[]):list.concat(scrollableAncestor,floating_ui_utils_dom_getOverflowAncestors(scrollableAncestor,[],traverseIframes))}const floating_ui_utils_min=Math.min,floating_ui_utils_max=Math.max,oppositeSideMap=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),oppositeAlignmentMap={start:"end",end:"start"};function clamp(start,value,end){return floating_ui_utils_max(start,floating_ui_utils_min(value,end))}function floating_ui_utils_evaluate(value,param){return"function"==typeof value?value(param):value}function floating_ui_utils_getSide(placement){return placement.split("-")[0]}function floating_ui_utils_getAlignment(placement){return placement.split("-")[1]}function floating_ui_utils_getOppositeAxis(axis){return"x"===axis?"y":"x"}function getAxisLength(axis){return"y"===axis?"height":"width"}function floating_ui_utils_getSideAxis(placement){return["top","bottom"].includes(floating_ui_utils_getSide(placement))?"y":"x"}function getAlignmentAxis(placement){return floating_ui_utils_getOppositeAxis(floating_ui_utils_getSideAxis(placement))}function floating_ui_utils_getOppositeAlignmentPlacement(placement){return placement.replace(/start|end/g,(alignment=>oppositeAlignmentMap[alignment]))}function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,(side=>oppositeSideMap[side]))}function floating_ui_utils_getPaddingObject(padding){return"number"!=typeof padding?function expandPaddingObject(padding){return{top:0,right:0,bottom:0,left:0,...padding}}(padding):{top:padding,right:padding,bottom:padding,left:padding}}function floating_ui_utils_rectToClientRect(rect){return{...rect,top:rect.y,left:rect.x,right:rect.x+rect.width,bottom:rect.y+rect.height}}function computeCoordsFromPlacement(_ref,placement,rtl){let{reference:reference,floating:floating}=_ref;const sideAxis=floating_ui_utils_getSideAxis(placement),alignmentAxis=getAlignmentAxis(placement),alignLength=getAxisLength(alignmentAxis),side=floating_ui_utils_getSide(placement),isVertical="y"===sideAxis,commonX=reference.x+reference.width/2-floating.width/2,commonY=reference.y+reference.height/2-floating.height/2,commonAlign=reference[alignLength]/2-floating[alignLength]/2;let coords;switch(side){case"top":coords={x:commonX,y:reference.y-floating.height};break;case"bottom":coords={x:commonX,y:reference.y+reference.height};break;case"right":coords={x:reference.x+reference.width,y:commonY};break;case"left":coords={x:reference.x-floating.width,y:commonY};break;default:coords={x:reference.x,y:reference.y}}switch(floating_ui_utils_getAlignment(placement)){case"start":coords[alignmentAxis]-=commonAlign*(rtl&&isVertical?-1:1);break;case"end":coords[alignmentAxis]+=commonAlign*(rtl&&isVertical?-1:1)}return coords}async function floating_ui_core_detectOverflow(state,options){var _await$platform$isEle;void 0===options&&(options={});const{x:x,y:y,platform:platform,rects:rects,elements:elements,strategy:strategy}=state,{boundary:boundary="clippingAncestors",rootBoundary:rootBoundary="viewport",elementContext:elementContext="floating",altBoundary:altBoundary=!1,padding:padding=0}=floating_ui_utils_evaluate(options,state),paddingObject=floating_ui_utils_getPaddingObject(padding),element=elements[altBoundary?"floating"===elementContext?"reference":"floating":elementContext],clippingClientRect=floating_ui_utils_rectToClientRect(await platform.getClippingRect({element:null==(_await$platform$isEle=await(null==platform.isElement?void 0:platform.isElement(element)))||_await$platform$isEle?element:element.contextElement||await(null==platform.getDocumentElement?void 0:platform.getDocumentElement(elements.floating)),boundary:boundary,rootBoundary:rootBoundary,strategy:strategy})),rect="floating"===elementContext?{...rects.floating,x:x,y:y}:rects.reference,offsetParent=await(null==platform.getOffsetParent?void 0:platform.getOffsetParent(elements.floating)),offsetScale=await(null==platform.isElement?void 0:platform.isElement(offsetParent))&&await(null==platform.getScale?void 0:platform.getScale(offsetParent))||{x:1,y:1},elementClientRect=floating_ui_utils_rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect?await platform.convertOffsetParentRelativeRectToViewportRelativeRect({elements:elements,rect:rect,offsetParent:offsetParent,strategy:strategy}):rect);return{top:(clippingClientRect.top-elementClientRect.top+paddingObject.top)/offsetScale.y,bottom:(elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom)/offsetScale.y,left:(clippingClientRect.left-elementClientRect.left+paddingObject.left)/offsetScale.x,right:(elementClientRect.right-clippingClientRect.right+paddingObject.right)/offsetScale.x}}const floating_ui_core_offset=function(options){return void 0===options&&(options=0),{name:"offset",options:options,async fn(state){var _middlewareData$offse,_middlewareData$arrow;const{x:x,y:y,placement:placement,middlewareData:middlewareData}=state,diffCoords=await async function convertValueToCoords(state,options){const{placement:placement,platform:platform,elements:elements}=state,rtl=await(null==platform.isRTL?void 0:platform.isRTL(elements.floating)),side=floating_ui_utils_getSide(placement),alignment=floating_ui_utils_getAlignment(placement),isVertical="y"===floating_ui_utils_getSideAxis(placement),mainAxisMulti=["left","top"].includes(side)?-1:1,crossAxisMulti=rtl&&isVertical?-1:1,rawValue=floating_ui_utils_evaluate(options,state);let{mainAxis:mainAxis,crossAxis:crossAxis,alignmentAxis:alignmentAxis}="number"==typeof rawValue?{mainAxis:rawValue,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...rawValue};return alignment&&"number"==typeof alignmentAxis&&(crossAxis="end"===alignment?-1*alignmentAxis:alignmentAxis),isVertical?{x:crossAxis*crossAxisMulti,y:mainAxis*mainAxisMulti}:{x:mainAxis*mainAxisMulti,y:crossAxis*crossAxisMulti}}(state,options);return placement===(null==(_middlewareData$offse=middlewareData.offset)?void 0:_middlewareData$offse.placement)&&null!=(_middlewareData$arrow=middlewareData.arrow)&&_middlewareData$arrow.alignmentOffset?{}:{x:x+diffCoords.x,y:y+diffCoords.y,data:{...diffCoords,placement:placement}}}}},dist_floating_ui_utils_min=Math.min,dist_floating_ui_utils_max=Math.max,floating_ui_utils_round=Math.round,dist_floating_ui_utils_floor=Math.floor,floating_ui_utils_createCoords=v=>({x:v,y:v});function getCssDimensions(element){const css=dist_floating_ui_utils_dom_getComputedStyle(element);let width=parseFloat(css.width)||0,height=parseFloat(css.height)||0;const hasOffset=dist_floating_ui_utils_dom_isHTMLElement(element),offsetWidth=hasOffset?element.offsetWidth:width,offsetHeight=hasOffset?element.offsetHeight:height,shouldFallback=floating_ui_utils_round(width)!==offsetWidth||floating_ui_utils_round(height)!==offsetHeight;return shouldFallback&&(width=offsetWidth,height=offsetHeight),{width:width,height:height,$:shouldFallback}}function unwrapElement(element){return dist_floating_ui_utils_dom_isElement(element)?element:element.contextElement}function getScale(element){const domElement=unwrapElement(element);if(!dist_floating_ui_utils_dom_isHTMLElement(domElement))return floating_ui_utils_createCoords(1);const rect=domElement.getBoundingClientRect(),{width:width,height:height,$:$}=getCssDimensions(domElement);let x=($?floating_ui_utils_round(rect.width):rect.width)/width,y=($?floating_ui_utils_round(rect.height):rect.height)/height;return x&&Number.isFinite(x)||(x=1),y&&Number.isFinite(y)||(y=1),{x:x,y:y}}const noOffsets=floating_ui_utils_createCoords(0);function getVisualOffsets(element){const win=dist_floating_ui_utils_dom_getWindow(element);return floating_ui_utils_dom_isWebKit()&&win.visualViewport?{x:win.visualViewport.offsetLeft,y:win.visualViewport.offsetTop}:noOffsets}function getBoundingClientRect(element,includeScale,isFixedStrategy,offsetParent){void 0===includeScale&&(includeScale=!1),void 0===isFixedStrategy&&(isFixedStrategy=!1);const clientRect=element.getBoundingClientRect(),domElement=unwrapElement(element);let scale=floating_ui_utils_createCoords(1);includeScale&&(offsetParent?dist_floating_ui_utils_dom_isElement(offsetParent)&&(scale=getScale(offsetParent)):scale=getScale(element));const visualOffsets=function shouldAddVisualOffsets(element,isFixed,floatingOffsetParent){return void 0===isFixed&&(isFixed=!1),!(!floatingOffsetParent||isFixed&&floatingOffsetParent!==dist_floating_ui_utils_dom_getWindow(element))&&isFixed}(domElement,isFixedStrategy,offsetParent)?getVisualOffsets(domElement):floating_ui_utils_createCoords(0);let x=(clientRect.left+visualOffsets.x)/scale.x,y=(clientRect.top+visualOffsets.y)/scale.y,width=clientRect.width/scale.x,height=clientRect.height/scale.y;if(domElement){const win=dist_floating_ui_utils_dom_getWindow(domElement),offsetWin=offsetParent&&dist_floating_ui_utils_dom_isElement(offsetParent)?dist_floating_ui_utils_dom_getWindow(offsetParent):offsetParent;let currentWin=win,currentIFrame=currentWin.frameElement;for(;currentIFrame&&offsetParent&&offsetWin!==currentWin;){const iframeScale=getScale(currentIFrame),iframeRect=currentIFrame.getBoundingClientRect(),css=dist_floating_ui_utils_dom_getComputedStyle(currentIFrame),left=iframeRect.left+(currentIFrame.clientLeft+parseFloat(css.paddingLeft))*iframeScale.x,top=iframeRect.top+(currentIFrame.clientTop+parseFloat(css.paddingTop))*iframeScale.y;x*=iframeScale.x,y*=iframeScale.y,width*=iframeScale.x,height*=iframeScale.y,x+=left,y+=top,currentWin=dist_floating_ui_utils_dom_getWindow(currentIFrame),currentIFrame=currentWin.frameElement}}return floating_ui_utils_rectToClientRect({width:width,height:height,x:x,y:y})}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(floating){return topLayerSelectors.some((selector=>{try{return floating.matches(selector)}catch(e){return!1}}))}function getWindowScrollBarX(element){return getBoundingClientRect(floating_ui_utils_dom_getDocumentElement(element)).left+floating_ui_utils_dom_getNodeScroll(element).scrollLeft}function getClientRectFromClippingAncestor(element,clippingAncestor,strategy){let rect;if("viewport"===clippingAncestor)rect=function getViewportRect(element,strategy){const win=dist_floating_ui_utils_dom_getWindow(element),html=floating_ui_utils_dom_getDocumentElement(element),visualViewport=win.visualViewport;let width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){width=visualViewport.width,height=visualViewport.height;const visualViewportBased=floating_ui_utils_dom_isWebKit();(!visualViewportBased||visualViewportBased&&"fixed"===strategy)&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop)}return{width:width,height:height,x:x,y:y}}(element,strategy);else if("document"===clippingAncestor)rect=function getDocumentRect(element){const html=floating_ui_utils_dom_getDocumentElement(element),scroll=floating_ui_utils_dom_getNodeScroll(element),body=element.ownerDocument.body,width=dist_floating_ui_utils_max(html.scrollWidth,html.clientWidth,body.scrollWidth,body.clientWidth),height=dist_floating_ui_utils_max(html.scrollHeight,html.clientHeight,body.scrollHeight,body.clientHeight);let x=-scroll.scrollLeft+getWindowScrollBarX(element);const y=-scroll.scrollTop;return"rtl"===dist_floating_ui_utils_dom_getComputedStyle(body).direction&&(x+=dist_floating_ui_utils_max(html.clientWidth,body.clientWidth)-width),{width:width,height:height,x:x,y:y}}(floating_ui_utils_dom_getDocumentElement(element));else if(dist_floating_ui_utils_dom_isElement(clippingAncestor))rect=function getInnerBoundingClientRect(element,strategy){const clientRect=getBoundingClientRect(element,!0,"fixed"===strategy),top=clientRect.top+element.clientTop,left=clientRect.left+element.clientLeft,scale=dist_floating_ui_utils_dom_isHTMLElement(element)?getScale(element):floating_ui_utils_createCoords(1);return{width:element.clientWidth*scale.x,height:element.clientHeight*scale.y,x:left*scale.x,y:top*scale.y}}(clippingAncestor,strategy);else{const visualOffsets=getVisualOffsets(element);rect={...clippingAncestor,x:clippingAncestor.x-visualOffsets.x,y:clippingAncestor.y-visualOffsets.y}}return floating_ui_utils_rectToClientRect(rect)}function hasFixedPositionAncestor(element,stopNode){const parentNode=floating_ui_utils_dom_getParentNode(element);return!(parentNode===stopNode||!dist_floating_ui_utils_dom_isElement(parentNode)||floating_ui_utils_dom_isLastTraversableNode(parentNode))&&("fixed"===dist_floating_ui_utils_dom_getComputedStyle(parentNode).position||hasFixedPositionAncestor(parentNode,stopNode))}function getRectRelativeToOffsetParent(element,offsetParent,strategy){const isOffsetParentAnElement=dist_floating_ui_utils_dom_isHTMLElement(offsetParent),documentElement=floating_ui_utils_dom_getDocumentElement(offsetParent),isFixed="fixed"===strategy,rect=getBoundingClientRect(element,!0,isFixed,offsetParent);let scroll={scrollLeft:0,scrollTop:0};const offsets=floating_ui_utils_createCoords(0);if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)if(("body"!==dist_floating_ui_utils_dom_getNodeName(offsetParent)||floating_ui_utils_dom_isOverflowElement(documentElement))&&(scroll=floating_ui_utils_dom_getNodeScroll(offsetParent)),isOffsetParentAnElement){const offsetRect=getBoundingClientRect(offsetParent,!0,isFixed,offsetParent);offsets.x=offsetRect.x+offsetParent.clientLeft,offsets.y=offsetRect.y+offsetParent.clientTop}else documentElement&&(offsets.x=getWindowScrollBarX(documentElement));return{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function getTrueOffsetParent(element,polyfill){return dist_floating_ui_utils_dom_isHTMLElement(element)&&"fixed"!==dist_floating_ui_utils_dom_getComputedStyle(element).position?polyfill?polyfill(element):element.offsetParent:null}function getOffsetParent(element,polyfill){const window=dist_floating_ui_utils_dom_getWindow(element);if(!dist_floating_ui_utils_dom_isHTMLElement(element)||isTopLayer(element))return window;let offsetParent=getTrueOffsetParent(element,polyfill);for(;offsetParent&&floating_ui_utils_dom_isTableElement(offsetParent)&&"static"===dist_floating_ui_utils_dom_getComputedStyle(offsetParent).position;)offsetParent=getTrueOffsetParent(offsetParent,polyfill);return offsetParent&&("html"===dist_floating_ui_utils_dom_getNodeName(offsetParent)||"body"===dist_floating_ui_utils_dom_getNodeName(offsetParent)&&"static"===dist_floating_ui_utils_dom_getComputedStyle(offsetParent).position&&!floating_ui_utils_dom_isContainingBlock(offsetParent))?window:offsetParent||function floating_ui_utils_dom_getContainingBlock(element){let currentNode=floating_ui_utils_dom_getParentNode(element);for(;dist_floating_ui_utils_dom_isHTMLElement(currentNode)&&!floating_ui_utils_dom_isLastTraversableNode(currentNode);){if(floating_ui_utils_dom_isContainingBlock(currentNode))return currentNode;currentNode=floating_ui_utils_dom_getParentNode(currentNode)}return null}(element)||window}const floating_ui_dom_platform={convertOffsetParentRelativeRectToViewportRelativeRect:function convertOffsetParentRelativeRectToViewportRelativeRect(_ref){let{elements:elements,rect:rect,offsetParent:offsetParent,strategy:strategy}=_ref;const isFixed="fixed"===strategy,documentElement=floating_ui_utils_dom_getDocumentElement(offsetParent),topLayer=!!elements&&isTopLayer(elements.floating);if(offsetParent===documentElement||topLayer&&isFixed)return rect;let scroll={scrollLeft:0,scrollTop:0},scale=floating_ui_utils_createCoords(1);const offsets=floating_ui_utils_createCoords(0),isOffsetParentAnElement=dist_floating_ui_utils_dom_isHTMLElement(offsetParent);if((isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&(("body"!==dist_floating_ui_utils_dom_getNodeName(offsetParent)||floating_ui_utils_dom_isOverflowElement(documentElement))&&(scroll=floating_ui_utils_dom_getNodeScroll(offsetParent)),dist_floating_ui_utils_dom_isHTMLElement(offsetParent))){const offsetRect=getBoundingClientRect(offsetParent);scale=getScale(offsetParent),offsets.x=offsetRect.x+offsetParent.clientLeft,offsets.y=offsetRect.y+offsetParent.clientTop}return{width:rect.width*scale.x,height:rect.height*scale.y,x:rect.x*scale.x-scroll.scrollLeft*scale.x+offsets.x,y:rect.y*scale.y-scroll.scrollTop*scale.y+offsets.y}},getDocumentElement:floating_ui_utils_dom_getDocumentElement,getClippingRect:function getClippingRect(_ref){let{element:element,boundary:boundary,rootBoundary:rootBoundary,strategy:strategy}=_ref;const clippingAncestors=[..."clippingAncestors"===boundary?function getClippingElementAncestors(element,cache){const cachedResult=cache.get(element);if(cachedResult)return cachedResult;let result=floating_ui_utils_dom_getOverflowAncestors(element,[],!1).filter((el=>dist_floating_ui_utils_dom_isElement(el)&&"body"!==dist_floating_ui_utils_dom_getNodeName(el))),currentContainingBlockComputedStyle=null;const elementIsFixed="fixed"===dist_floating_ui_utils_dom_getComputedStyle(element).position;let currentNode=elementIsFixed?floating_ui_utils_dom_getParentNode(element):element;for(;dist_floating_ui_utils_dom_isElement(currentNode)&&!floating_ui_utils_dom_isLastTraversableNode(currentNode);){const computedStyle=dist_floating_ui_utils_dom_getComputedStyle(currentNode),currentNodeIsContaining=floating_ui_utils_dom_isContainingBlock(currentNode);currentNodeIsContaining||"fixed"!==computedStyle.position||(currentContainingBlockComputedStyle=null),(elementIsFixed?!currentNodeIsContaining&&!currentContainingBlockComputedStyle:!currentNodeIsContaining&&"static"===computedStyle.position&¤tContainingBlockComputedStyle&&["absolute","fixed"].includes(currentContainingBlockComputedStyle.position)||floating_ui_utils_dom_isOverflowElement(currentNode)&&!currentNodeIsContaining&&hasFixedPositionAncestor(element,currentNode))?result=result.filter((ancestor=>ancestor!==currentNode)):currentContainingBlockComputedStyle=computedStyle,currentNode=floating_ui_utils_dom_getParentNode(currentNode)}return cache.set(element,result),result}(element,this._c):[].concat(boundary),rootBoundary],firstClippingAncestor=clippingAncestors[0],clippingRect=clippingAncestors.reduce(((accRect,clippingAncestor)=>{const rect=getClientRectFromClippingAncestor(element,clippingAncestor,strategy);return accRect.top=dist_floating_ui_utils_max(rect.top,accRect.top),accRect.right=dist_floating_ui_utils_min(rect.right,accRect.right),accRect.bottom=dist_floating_ui_utils_min(rect.bottom,accRect.bottom),accRect.left=dist_floating_ui_utils_max(rect.left,accRect.left),accRect}),getClientRectFromClippingAncestor(element,firstClippingAncestor,strategy));return{width:clippingRect.right-clippingRect.left,height:clippingRect.bottom-clippingRect.top,x:clippingRect.left,y:clippingRect.top}},getOffsetParent:getOffsetParent,getElementRects:async function(data){const getOffsetParentFn=this.getOffsetParent||getOffsetParent,getDimensionsFn=this.getDimensions;return{reference:getRectRelativeToOffsetParent(data.reference,await getOffsetParentFn(data.floating),data.strategy),floating:{x:0,y:0,...await getDimensionsFn(data.floating)}}},getClientRects:function getClientRects(element){return Array.from(element.getClientRects())},getDimensions:function getDimensions(element){const{width:width,height:height}=getCssDimensions(element);return{width:width,height:height}},getScale:getScale,isElement:dist_floating_ui_utils_dom_isElement,isRTL:function isRTL(element){return"rtl"===dist_floating_ui_utils_dom_getComputedStyle(element).direction}};function autoUpdate(reference,floating,update,options){void 0===options&&(options={});const{ancestorScroll:ancestorScroll=!0,ancestorResize:ancestorResize=!0,elementResize:elementResize="function"==typeof ResizeObserver,layoutShift:layoutShift="function"==typeof IntersectionObserver,animationFrame:animationFrame=!1}=options,referenceEl=unwrapElement(reference),ancestors=ancestorScroll||ancestorResize?[...referenceEl?floating_ui_utils_dom_getOverflowAncestors(referenceEl):[],...floating_ui_utils_dom_getOverflowAncestors(floating)]:[];ancestors.forEach((ancestor=>{ancestorScroll&&ancestor.addEventListener("scroll",update,{passive:!0}),ancestorResize&&ancestor.addEventListener("resize",update)}));const cleanupIo=referenceEl&&layoutShift?function observeMove(element,onMove){let timeoutId,io=null;const root=floating_ui_utils_dom_getDocumentElement(element);function cleanup(){var _io;clearTimeout(timeoutId),null==(_io=io)||_io.disconnect(),io=null}return function refresh(skip,threshold){void 0===skip&&(skip=!1),void 0===threshold&&(threshold=1),cleanup();const{left:left,top:top,width:width,height:height}=element.getBoundingClientRect();if(skip||onMove(),!width||!height)return;const options={rootMargin:-dist_floating_ui_utils_floor(top)+"px "+-dist_floating_ui_utils_floor(root.clientWidth-(left+width))+"px "+-dist_floating_ui_utils_floor(root.clientHeight-(top+height))+"px "+-dist_floating_ui_utils_floor(left)+"px",threshold:dist_floating_ui_utils_max(0,dist_floating_ui_utils_min(1,threshold))||1};let isFirstUpdate=!0;function handleObserve(entries){const ratio=entries[0].intersectionRatio;if(ratio!==threshold){if(!isFirstUpdate)return refresh();ratio?refresh(!1,ratio):timeoutId=setTimeout((()=>{refresh(!1,1e-7)}),100)}isFirstUpdate=!1}try{io=new IntersectionObserver(handleObserve,{...options,root:root.ownerDocument})}catch(e){io=new IntersectionObserver(handleObserve,options)}io.observe(element)}(!0),cleanup}(referenceEl,update):null;let frameId,reobserveFrame=-1,resizeObserver=null;elementResize&&(resizeObserver=new ResizeObserver((_ref=>{let[firstEntry]=_ref;firstEntry&&firstEntry.target===referenceEl&&resizeObserver&&(resizeObserver.unobserve(floating),cancelAnimationFrame(reobserveFrame),reobserveFrame=requestAnimationFrame((()=>{var _resizeObserver;null==(_resizeObserver=resizeObserver)||_resizeObserver.observe(floating)}))),update()})),referenceEl&&!animationFrame&&resizeObserver.observe(referenceEl),resizeObserver.observe(floating));let prevRefRect=animationFrame?getBoundingClientRect(reference):null;return animationFrame&&function frameLoop(){const nextRefRect=getBoundingClientRect(reference);!prevRefRect||nextRefRect.x===prevRefRect.x&&nextRefRect.y===prevRefRect.y&&nextRefRect.width===prevRefRect.width&&nextRefRect.height===prevRefRect.height||update();prevRefRect=nextRefRect,frameId=requestAnimationFrame(frameLoop)}(),update(),()=>{var _resizeObserver2;ancestors.forEach((ancestor=>{ancestorScroll&&ancestor.removeEventListener("scroll",update),ancestorResize&&ancestor.removeEventListener("resize",update)})),null==cleanupIo||cleanupIo(),null==(_resizeObserver2=resizeObserver)||_resizeObserver2.disconnect(),resizeObserver=null,animationFrame&&cancelAnimationFrame(frameId)}}const floating_ui_dom_shift=function(options){return void 0===options&&(options={}),{name:"shift",options:options,async fn(state){const{x:x,y:y,placement:placement}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!1,limiter:limiter={fn:_ref=>{let{x:x,y:y}=_ref;return{x:x,y:y}}},...detectOverflowOptions}=floating_ui_utils_evaluate(options,state),coords={x:x,y:y},overflow=await floating_ui_core_detectOverflow(state,detectOverflowOptions),crossAxis=floating_ui_utils_getSideAxis(floating_ui_utils_getSide(placement)),mainAxis=floating_ui_utils_getOppositeAxis(crossAxis);let mainAxisCoord=coords[mainAxis],crossAxisCoord=coords[crossAxis];if(checkMainAxis){const maxSide="y"===mainAxis?"bottom":"right";mainAxisCoord=clamp(mainAxisCoord+overflow["y"===mainAxis?"top":"left"],mainAxisCoord,mainAxisCoord-overflow[maxSide])}if(checkCrossAxis){const maxSide="y"===crossAxis?"bottom":"right";crossAxisCoord=clamp(crossAxisCoord+overflow["y"===crossAxis?"top":"left"],crossAxisCoord,crossAxisCoord-overflow[maxSide])}const limitedCoords=limiter.fn({...state,[mainAxis]:mainAxisCoord,[crossAxis]:crossAxisCoord});return{...limitedCoords,data:{x:limitedCoords.x-x,y:limitedCoords.y-y}}}}},floating_ui_dom_flip=function(options){return void 0===options&&(options={}),{name:"flip",options:options,async fn(state){var _middlewareData$arrow,_middlewareData$flip;const{placement:placement,middlewareData:middlewareData,rects:rects,initialPlacement:initialPlacement,platform:platform,elements:elements}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!0,fallbackPlacements:specifiedFallbackPlacements,fallbackStrategy:fallbackStrategy="bestFit",fallbackAxisSideDirection:fallbackAxisSideDirection="none",flipAlignment:flipAlignment=!0,...detectOverflowOptions}=floating_ui_utils_evaluate(options,state);if(null!=(_middlewareData$arrow=middlewareData.arrow)&&_middlewareData$arrow.alignmentOffset)return{};const side=floating_ui_utils_getSide(placement),isBasePlacement=floating_ui_utils_getSide(initialPlacement)===initialPlacement,rtl=await(null==platform.isRTL?void 0:platform.isRTL(elements.floating)),fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement(initialPlacement)]:function getExpandedPlacements(placement){const oppositePlacement=getOppositePlacement(placement);return[floating_ui_utils_getOppositeAlignmentPlacement(placement),oppositePlacement,floating_ui_utils_getOppositeAlignmentPlacement(oppositePlacement)]}(initialPlacement));specifiedFallbackPlacements||"none"===fallbackAxisSideDirection||fallbackPlacements.push(...function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){const alignment=floating_ui_utils_getAlignment(placement);let list=function getSideList(side,isStart,rtl){const lr=["left","right"],rl=["right","left"],tb=["top","bottom"],bt=["bottom","top"];switch(side){case"top":case"bottom":return rtl?isStart?rl:lr:isStart?lr:rl;case"left":case"right":return isStart?tb:bt;default:return[]}}(floating_ui_utils_getSide(placement),"start"===direction,rtl);return alignment&&(list=list.map((side=>side+"-"+alignment)),flipAlignment&&(list=list.concat(list.map(floating_ui_utils_getOppositeAlignmentPlacement)))),list}(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl));const placements=[initialPlacement,...fallbackPlacements],overflow=await floating_ui_core_detectOverflow(state,detectOverflowOptions),overflows=[];let overflowsData=(null==(_middlewareData$flip=middlewareData.flip)?void 0:_middlewareData$flip.overflows)||[];if(checkMainAxis&&overflows.push(overflow[side]),checkCrossAxis){const sides=function floating_ui_utils_getAlignmentSides(placement,rects,rtl){void 0===rtl&&(rtl=!1);const alignment=floating_ui_utils_getAlignment(placement),alignmentAxis=getAlignmentAxis(placement),length=getAxisLength(alignmentAxis);let mainAlignmentSide="x"===alignmentAxis?alignment===(rtl?"end":"start")?"right":"left":"start"===alignment?"bottom":"top";return rects.reference[length]>rects.floating[length]&&(mainAlignmentSide=getOppositePlacement(mainAlignmentSide)),[mainAlignmentSide,getOppositePlacement(mainAlignmentSide)]}(placement,rects,rtl);overflows.push(overflow[sides[0]],overflow[sides[1]])}if(overflowsData=[...overflowsData,{placement:placement,overflows:overflows}],!overflows.every((side=>side<=0))){var _middlewareData$flip2,_overflowsData$filter;const nextIndex=((null==(_middlewareData$flip2=middlewareData.flip)?void 0:_middlewareData$flip2.index)||0)+1,nextPlacement=placements[nextIndex];if(nextPlacement)return{data:{index:nextIndex,overflows:overflowsData},reset:{placement:nextPlacement}};let resetPlacement=null==(_overflowsData$filter=overflowsData.filter((d=>d.overflows[0]<=0)).sort(((a,b)=>a.overflows[1]-b.overflows[1]))[0])?void 0:_overflowsData$filter.placement;if(!resetPlacement)switch(fallbackStrategy){case"bestFit":{var _overflowsData$map$so;const placement=null==(_overflowsData$map$so=overflowsData.map((d=>[d.placement,d.overflows.filter((overflow=>overflow>0)).reduce(((acc,overflow)=>acc+overflow),0)])).sort(((a,b)=>a[1]-b[1]))[0])?void 0:_overflowsData$map$so[0];placement&&(resetPlacement=placement);break}case"initialPlacement":resetPlacement=initialPlacement}if(placement!==resetPlacement)return{reset:{placement:resetPlacement}}}return{}}}},floating_ui_dom_arrow=options=>({name:"arrow",options:options,async fn(state){const{x:x,y:y,placement:placement,rects:rects,platform:platform,elements:elements,middlewareData:middlewareData}=state,{element:element,padding:padding=0}=floating_ui_utils_evaluate(options,state)||{};if(null==element)return{};const paddingObject=floating_ui_utils_getPaddingObject(padding),coords={x:x,y:y},axis=getAlignmentAxis(placement),length=getAxisLength(axis),arrowDimensions=await platform.getDimensions(element),isYAxis="y"===axis,minProp=isYAxis?"top":"left",maxProp=isYAxis?"bottom":"right",clientProp=isYAxis?"clientHeight":"clientWidth",endDiff=rects.reference[length]+rects.reference[axis]-coords[axis]-rects.floating[length],startDiff=coords[axis]-rects.reference[axis],arrowOffsetParent=await(null==platform.getOffsetParent?void 0:platform.getOffsetParent(element));let clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;clientSize&&await(null==platform.isElement?void 0:platform.isElement(arrowOffsetParent))||(clientSize=elements.floating[clientProp]||rects.floating[length]);const centerToReference=endDiff/2-startDiff/2,largestPossiblePadding=clientSize/2-arrowDimensions[length]/2-1,minPadding=floating_ui_utils_min(paddingObject[minProp],largestPossiblePadding),maxPadding=floating_ui_utils_min(paddingObject[maxProp],largestPossiblePadding),min$1=minPadding,max=clientSize-arrowDimensions[length]-maxPadding,center=clientSize/2-arrowDimensions[length]/2+centerToReference,offset=clamp(min$1,center,max),shouldAddOffset=!middlewareData.arrow&&null!=floating_ui_utils_getAlignment(placement)&¢er!==offset&&rects.reference[length]/2-(center{const cache=new Map,mergedOptions={platform:floating_ui_dom_platform,...options},platformWithCache={...mergedOptions.platform,_c:cache};return(async(reference,floating,config)=>{const{placement:placement="bottom",strategy:strategy="absolute",middleware:middleware=[],platform:platform}=config,validMiddleware=middleware.filter(Boolean),rtl=await(null==platform.isRTL?void 0:platform.isRTL(floating));let rects=await platform.getElementRects({reference:reference,floating:floating,strategy:strategy}),{x:x,y:y}=computeCoordsFromPlacement(rects,placement,rtl),statefulPlacement=placement,middlewareData={},resetCount=0;for(let i=0;i{ref.current=value})),ref}var candidateSelectors=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],candidateSelector=candidateSelectors.join(","),NoElement="undefined"==typeof Element,matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,getRootNode=!NoElement&&Element.prototype.getRootNode?function(element){var _element$getRootNode;return null==element||null===(_element$getRootNode=element.getRootNode)||void 0===_element$getRootNode?void 0:_element$getRootNode.call(element)}:function(element){return null==element?void 0:element.ownerDocument},isInert=function isInert(node,lookUp){var _node$getAttribute;void 0===lookUp&&(lookUp=!0);var inertAtt=null==node||null===(_node$getAttribute=node.getAttribute)||void 0===_node$getAttribute?void 0:_node$getAttribute.call(node,"inert");return""===inertAtt||"true"===inertAtt||lookUp&&node&&isInert(node.parentNode)},getCandidates=function getCandidates(el,includeContainer,filter){if(isInert(el))return[];var candidates=Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));return includeContainer&&matches.call(el,candidateSelector)&&candidates.unshift(el),candidates=candidates.filter(filter)},getCandidatesIteratively=function getCandidatesIteratively(elements,includeContainer,options){for(var candidates=[],elementsToCheck=Array.from(elements);elementsToCheck.length;){var element=elementsToCheck.shift();if(!isInert(element,!1))if("SLOT"===element.tagName){var assigned=element.assignedElements(),nestedCandidates=getCandidatesIteratively(assigned.length?assigned:element.children,!0,options);options.flatten?candidates.push.apply(candidates,nestedCandidates):candidates.push({scopeParent:element,candidates:nestedCandidates})}else{matches.call(element,candidateSelector)&&options.filter(element)&&(includeContainer||!elements.includes(element))&&candidates.push(element);var shadowRoot=element.shadowRoot||"function"==typeof options.getShadowRoot&&options.getShadowRoot(element),validShadowRoot=!isInert(shadowRoot,!1)&&(!options.shadowRootFilter||options.shadowRootFilter(element));if(shadowRoot&&validShadowRoot){var _nestedCandidates=getCandidatesIteratively(!0===shadowRoot?element.children:shadowRoot.children,!0,options);options.flatten?candidates.push.apply(candidates,_nestedCandidates):candidates.push({scopeParent:element,candidates:_nestedCandidates})}else elementsToCheck.unshift.apply(elementsToCheck,element.children)}}return candidates},hasTabIndex=function hasTabIndex(node){return!isNaN(parseInt(node.getAttribute("tabindex"),10))},getTabIndex=function getTabIndex(node){if(!node)throw new Error("No node provided");return node.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName)||function isContentEditable(node){var _node$getAttribute2,attValue=null==node||null===(_node$getAttribute2=node.getAttribute)||void 0===_node$getAttribute2?void 0:_node$getAttribute2.call(node,"contenteditable");return""===attValue||"true"===attValue}(node))&&!hasTabIndex(node)?0:node.tabIndex},sortOrderedTabbables=function sortOrderedTabbables(a,b){return a.tabIndex===b.tabIndex?a.documentOrder-b.documentOrder:a.tabIndex-b.tabIndex},isInput=function isInput(node){return"INPUT"===node.tagName},isNonTabbableRadio=function isNonTabbableRadio(node){return function isRadio(node){return isInput(node)&&"radio"===node.type}(node)&&!function isTabbableRadio(node){if(!node.name)return!0;var radioSet,radioScope=node.form||getRootNode(node),queryRadios=function queryRadios(name){return radioScope.querySelectorAll('input[type="radio"][name="'+name+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)radioSet=queryRadios(window.CSS.escape(node.name));else try{radioSet=queryRadios(node.name)}catch(err){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",err.message),!1}var checked=function getCheckedRadio(nodes,form){for(var i=0;isummary:first-of-type")?node.parentElement:node;if(matches.call(nodeUnderDetails,"details:not([open]) *"))return!0;if(displayCheck&&"full"!==displayCheck&&"legacy-full"!==displayCheck){if("non-zero-area"===displayCheck)return isZeroArea(node)}else{if("function"==typeof getShadowRoot){for(var originalNode=node;node;){var parentElement=node.parentElement,rootNode=getRootNode(node);if(parentElement&&!parentElement.shadowRoot&&!0===getShadowRoot(parentElement))return isZeroArea(node);node=node.assignedSlot?node.assignedSlot:parentElement||rootNode===node.ownerDocument?parentElement:rootNode.host}node=originalNode}if(function isNodeAttached(node){var _nodeRoot,_nodeRootHost,_nodeRootHost$ownerDo,_node$ownerDocument,nodeRoot=node&&getRootNode(node),nodeRootHost=null===(_nodeRoot=nodeRoot)||void 0===_nodeRoot?void 0:_nodeRoot.host,attached=!1;if(nodeRoot&&nodeRoot!==node)for(attached=!!(null!==(_nodeRootHost=nodeRootHost)&&void 0!==_nodeRootHost&&null!==(_nodeRootHost$ownerDo=_nodeRootHost.ownerDocument)&&void 0!==_nodeRootHost$ownerDo&&_nodeRootHost$ownerDo.contains(nodeRootHost)||null!=node&&null!==(_node$ownerDocument=node.ownerDocument)&&void 0!==_node$ownerDocument&&_node$ownerDocument.contains(node));!attached&&nodeRootHost;){var _nodeRoot2,_nodeRootHost2,_nodeRootHost2$ownerD;attached=!(null===(_nodeRootHost2=nodeRootHost=null===(_nodeRoot2=nodeRoot=getRootNode(nodeRootHost))||void 0===_nodeRoot2?void 0:_nodeRoot2.host)||void 0===_nodeRootHost2||null===(_nodeRootHost2$ownerD=_nodeRootHost2.ownerDocument)||void 0===_nodeRootHost2$ownerD||!_nodeRootHost2$ownerD.contains(nodeRootHost))}return attached}(node))return!node.getClientRects().length;if("legacy-full"!==displayCheck)return!0}return!1},isNodeMatchingSelectorFocusable=function isNodeMatchingSelectorFocusable(options,node){return!(node.disabled||isInert(node)||function isHiddenInput(node){return isInput(node)&&"hidden"===node.type}(node)||isHidden(node,options)||function isDetailsWithSummary(node){return"DETAILS"===node.tagName&&Array.prototype.slice.apply(node.children).some((function(child){return"SUMMARY"===child.tagName}))}(node)||function isDisabledFromFieldset(node){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName))for(var parentNode=node.parentElement;parentNode;){if("FIELDSET"===parentNode.tagName&&parentNode.disabled){for(var i=0;i=0)},sortByOrder=function sortByOrder(candidates){var regularTabbables=[],orderedTabbables=[];return candidates.forEach((function(item,i){var isScope=!!item.scopeParent,element=isScope?item.scopeParent:item,candidateTabindex=function getSortOrderTabIndex(node,isScope){var tabIndex=getTabIndex(node);return tabIndex<0&&isScope&&!hasTabIndex(node)?0:tabIndex}(element,isScope),elements=isScope?sortByOrder(item.candidates):element;0===candidateTabindex?isScope?regularTabbables.push.apply(regularTabbables,elements):regularTabbables.push(element):orderedTabbables.push({documentOrder:i,tabIndex:candidateTabindex,item:item,isScope:isScope,content:elements})})),orderedTabbables.sort(sortOrderedTabbables).reduce((function(acc,sortable){return sortable.isScope?acc.push.apply(acc,sortable.content):acc.push(sortable.content),acc}),[]).concat(regularTabbables)},index_esm_tabbable=function tabbable(container,options){var candidates;return candidates=(options=options||{}).getShadowRoot?getCandidatesIteratively([container],options.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,options),flatten:!1,getShadowRoot:options.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):getCandidates(container,options.includeContainer,isNodeMatchingSelectorTabbable.bind(null,options)),sortByOrder(candidates)};const useSafeInsertionEffect=react_namespaceObject["useInsertionEffect".toString()]||(fn=>fn());function useEffectEvent(callback){const ref=react.useRef((()=>{0}));return useSafeInsertionEffect((()=>{ref.current=callback})),react.useCallback((function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return null==ref.current?void 0:ref.current(...args)}),[])}const ARROW_UP="ArrowUp",ARROW_DOWN="ArrowDown",ARROW_LEFT="ArrowLeft",ARROW_RIGHT="ArrowRight";var floating_ui_react_index="undefined"!=typeof document?react.useLayoutEffect:react.useEffect;const horizontalKeys=[ARROW_LEFT,ARROW_RIGHT],verticalKeys=[ARROW_UP,ARROW_DOWN];function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i"floating-ui-"+count++;const useId=react_namespaceObject["useId".toString()]||function useFloatingId(){const[id,setId]=react.useState((()=>serverHandoffComplete?genId():void 0));return floating_ui_react_index((()=>{null==id&&setId(genId())}),[]),react.useEffect((()=>{serverHandoffComplete||(serverHandoffComplete=!0)}),[]),id};function createPubSub(){const map=new Map;return{emit(event,data){var _map$get;null==(_map$get=map.get(event))||_map$get.forEach((handler=>handler(data)))},on(event,listener){map.set(event,[...map.get(event)||[],listener])},off(event,listener){var _map$get2;map.set(event,(null==(_map$get2=map.get(event))?void 0:_map$get2.filter((l=>l!==listener)))||[])}}}const FloatingNodeContext=react.createContext(null),FloatingTreeContext=react.createContext(null),useFloatingParentNodeId=()=>{var _React$useContext;return(null==(_React$useContext=react.useContext(FloatingNodeContext))?void 0:_React$useContext.id)||null},useFloatingTree=()=>react.useContext(FloatingTreeContext);function createAttribute(name){return"data-floating-ui-"+name}function floating_ui_react_useLatestRef(value){const ref=(0,react.useRef)(value);return floating_ui_react_index((()=>{ref.current=value})),ref}const safePolygonIdentifier=createAttribute("safe-polygon");function getDelay(value,prop,pointerType){return pointerType&&!floating_ui_react_utils_isMouseLikePointerType(pointerType)?0:"number"==typeof value?value:null==value?void 0:value[prop]}function useHover(context,props){void 0===props&&(props={});const{open:open,onOpenChange:onOpenChange,dataRef:dataRef,events:events,elements:{domReference:domReference,floating:floating},refs:refs}=context,{enabled:enabled=!0,delay:delay=0,handleClose:handleClose=null,mouseOnly:mouseOnly=!1,restMs:restMs=0,move:move=!0}=props,tree=useFloatingTree(),parentId=useFloatingParentNodeId(),handleCloseRef=floating_ui_react_useLatestRef(handleClose),delayRef=floating_ui_react_useLatestRef(delay),pointerTypeRef=react.useRef(),timeoutRef=react.useRef(),handlerRef=react.useRef(),restTimeoutRef=react.useRef(),blockMouseMoveRef=react.useRef(!0),performedPointerEventsMutationRef=react.useRef(!1),unbindMouseMoveRef=react.useRef((()=>{})),isHoverOpen=react.useCallback((()=>{var _dataRef$current$open;const type=null==(_dataRef$current$open=dataRef.current.openEvent)?void 0:_dataRef$current$open.type;return(null==type?void 0:type.includes("mouse"))&&"mousedown"!==type}),[dataRef]);react.useEffect((()=>{if(enabled)return events.on("openchange",onOpenChange),()=>{events.off("openchange",onOpenChange)};function onOpenChange(_ref){let{open:open}=_ref;open||(clearTimeout(timeoutRef.current),clearTimeout(restTimeoutRef.current),blockMouseMoveRef.current=!0)}}),[enabled,events]),react.useEffect((()=>{if(!enabled||!handleCloseRef.current||!open)return;function onLeave(event){isHoverOpen()&&onOpenChange(!1,event,"hover")}const html=floating_ui_react_utils_getDocument(floating).documentElement;return html.addEventListener("mouseleave",onLeave),()=>{html.removeEventListener("mouseleave",onLeave)}}),[floating,open,onOpenChange,enabled,handleCloseRef,isHoverOpen]);const closeWithDelay=react.useCallback((function(event,runElseBranch,reason){void 0===runElseBranch&&(runElseBranch=!0),void 0===reason&&(reason="hover");const closeDelay=getDelay(delayRef.current,"close",pointerTypeRef.current);closeDelay&&!handlerRef.current?(clearTimeout(timeoutRef.current),timeoutRef.current=setTimeout((()=>onOpenChange(!1,event,reason)),closeDelay)):runElseBranch&&(clearTimeout(timeoutRef.current),onOpenChange(!1,event,reason))}),[delayRef,onOpenChange]),cleanupMouseMoveHandler=react.useCallback((()=>{unbindMouseMoveRef.current(),handlerRef.current=void 0}),[]),clearPointerEvents=react.useCallback((()=>{if(performedPointerEventsMutationRef.current){const body=floating_ui_react_utils_getDocument(refs.floating.current).body;body.style.pointerEvents="",body.removeAttribute(safePolygonIdentifier),performedPointerEventsMutationRef.current=!1}}),[refs]);return react.useEffect((()=>{if(enabled&&floating_ui_utils_dom_isElement(domReference)){const ref=domReference;return open&&ref.addEventListener("mouseleave",onScrollMouseLeave),null==floating||floating.addEventListener("mouseleave",onScrollMouseLeave),move&&ref.addEventListener("mousemove",onMouseEnter,{once:!0}),ref.addEventListener("mouseenter",onMouseEnter),ref.addEventListener("mouseleave",onMouseLeave),()=>{open&&ref.removeEventListener("mouseleave",onScrollMouseLeave),null==floating||floating.removeEventListener("mouseleave",onScrollMouseLeave),move&&ref.removeEventListener("mousemove",onMouseEnter),ref.removeEventListener("mouseenter",onMouseEnter),ref.removeEventListener("mouseleave",onMouseLeave)}}function isClickLikeOpenEvent(){return!!dataRef.current.openEvent&&["click","mousedown"].includes(dataRef.current.openEvent.type)}function onMouseEnter(event){if(clearTimeout(timeoutRef.current),blockMouseMoveRef.current=!1,mouseOnly&&!floating_ui_react_utils_isMouseLikePointerType(pointerTypeRef.current)||restMs>0&&0===getDelay(delayRef.current,"open"))return;const openDelay=getDelay(delayRef.current,"open",pointerTypeRef.current);openDelay?timeoutRef.current=setTimeout((()=>{onOpenChange(!0,event,"hover")}),openDelay):onOpenChange(!0,event,"hover")}function onMouseLeave(event){if(isClickLikeOpenEvent())return;unbindMouseMoveRef.current();const doc=floating_ui_react_utils_getDocument(floating);if(clearTimeout(restTimeoutRef.current),handleCloseRef.current){open||clearTimeout(timeoutRef.current),handlerRef.current=handleCloseRef.current({...context,tree:tree,x:event.clientX,y:event.clientY,onClose(){clearPointerEvents(),cleanupMouseMoveHandler(),closeWithDelay(event,!0,"safe-polygon")}});const handler=handlerRef.current;return doc.addEventListener("mousemove",handler),void(unbindMouseMoveRef.current=()=>{doc.removeEventListener("mousemove",handler)})}("touch"!==pointerTypeRef.current||!floating_ui_react_utils_contains(floating,event.relatedTarget))&&closeWithDelay(event)}function onScrollMouseLeave(event){isClickLikeOpenEvent()||null==handleCloseRef.current||handleCloseRef.current({...context,tree:tree,x:event.clientX,y:event.clientY,onClose(){clearPointerEvents(),cleanupMouseMoveHandler(),closeWithDelay(event)}})(event)}}),[domReference,floating,enabled,context,mouseOnly,restMs,move,closeWithDelay,cleanupMouseMoveHandler,clearPointerEvents,onOpenChange,open,tree,delayRef,handleCloseRef,dataRef]),floating_ui_react_index((()=>{var _handleCloseRef$curre;if(enabled&&open&&null!=(_handleCloseRef$curre=handleCloseRef.current)&&_handleCloseRef$curre.__options.blockPointerEvents&&isHoverOpen()){const body=floating_ui_react_utils_getDocument(floating).body;if(body.setAttribute(safePolygonIdentifier,""),body.style.pointerEvents="none",performedPointerEventsMutationRef.current=!0,floating_ui_utils_dom_isElement(domReference)&&floating){var _tree$nodesRef$curren;const ref=domReference,parentFloating=null==tree||null==(_tree$nodesRef$curren=tree.nodesRef.current.find((node=>node.id===parentId)))||null==(_tree$nodesRef$curren=_tree$nodesRef$curren.context)?void 0:_tree$nodesRef$curren.elements.floating;return parentFloating&&(parentFloating.style.pointerEvents=""),ref.style.pointerEvents="auto",floating.style.pointerEvents="auto",()=>{ref.style.pointerEvents="",floating.style.pointerEvents=""}}}}),[enabled,open,parentId,floating,domReference,tree,handleCloseRef,isHoverOpen]),floating_ui_react_index((()=>{open||(pointerTypeRef.current=void 0,cleanupMouseMoveHandler(),clearPointerEvents())}),[open,cleanupMouseMoveHandler,clearPointerEvents]),react.useEffect((()=>()=>{cleanupMouseMoveHandler(),clearTimeout(timeoutRef.current),clearTimeout(restTimeoutRef.current),clearPointerEvents()}),[enabled,domReference,cleanupMouseMoveHandler,clearPointerEvents]),react.useMemo((()=>{if(!enabled)return{};function setPointerRef(event){pointerTypeRef.current=event.pointerType}return{reference:{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(event){open||0===restMs||(clearTimeout(restTimeoutRef.current),restTimeoutRef.current=setTimeout((()=>{blockMouseMoveRef.current||onOpenChange(!0,event.nativeEvent,"hover")}),restMs))}},floating:{onMouseEnter(){clearTimeout(timeoutRef.current)},onMouseLeave(event){closeWithDelay(event.nativeEvent,!1)}}}}),[enabled,restMs,open,onOpenChange,closeWithDelay])}function getChildren(nodes,id){let allChildren=nodes.filter((node=>{var _node$context;return node.parentId===id&&(null==(_node$context=node.context)?void 0:_node$context.open)})),currentChildren=allChildren;for(;currentChildren.length;)currentChildren=nodes.filter((node=>{var _currentChildren;return null==(_currentChildren=currentChildren)?void 0:_currentChildren.some((n=>{var _node$context2;return node.parentId===n.id&&(null==(_node$context2=node.context)?void 0:_node$context2.open)}))})),allChildren=allChildren.concat(currentChildren);return allChildren}const getTabbableOptions=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function getTabbableIn(container,direction){const allTabbable=index_esm_tabbable(container,getTabbableOptions());"prev"===direction&&allTabbable.reverse();const activeIndex=allTabbable.indexOf(floating_ui_react_utils_activeElement(floating_ui_react_utils_getDocument(container)));return allTabbable.slice(activeIndex+1)[0]}function getNextTabbable(){return getTabbableIn(document.body,"next")}function getPreviousTabbable(){return getTabbableIn(document.body,"prev")}function isOutsideEvent(event,container){const containerElement=container||event.currentTarget,relatedTarget=event.relatedTarget;return!relatedTarget||!floating_ui_react_utils_contains(containerElement,relatedTarget)}function disableFocusInside(container){index_esm_tabbable(container,getTabbableOptions()).forEach((element=>{element.dataset.tabindex=element.getAttribute("tabindex")||"",element.setAttribute("tabindex","-1")}))}function enableFocusInside(container){container.querySelectorAll("[data-tabindex]").forEach((element=>{const tabindex=element.dataset.tabindex;delete element.dataset.tabindex,tabindex?element.setAttribute("tabindex",tabindex):element.removeAttribute("tabindex")}))}const HIDDEN_STYLES={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function setActiveElementOnTab(event){"Tab"===event.key&&(event.target,clearTimeout(undefined))}const FocusGuard=react.forwardRef((function FocusGuard(props,ref){const[role,setRole]=react.useState();floating_ui_react_index((()=>(floating_ui_react_utils_isSafari()&&setRole("button"),document.addEventListener("keydown",setActiveElementOnTab),()=>{document.removeEventListener("keydown",setActiveElementOnTab)})),[]);const restProps={ref:ref,tabIndex:0,role:role,"aria-hidden":!role||void 0,[createAttribute("focus-guard")]:"",style:HIDDEN_STYLES};return react.createElement("span",_extends({},props,restProps))})),PortalContext=react.createContext(null),attr=createAttribute("portal");function FloatingPortal(_ref){let{children:children,id:id,root:root=null,preserveTabOrder:preserveTabOrder=!0}=_ref;const portalNode=function useFloatingPortalNode(_temp){let{id:id,root:root}=void 0===_temp?{}:_temp;const[portalNode,setPortalNode]=react.useState(null),uniqueId=useId(),portalContext=usePortalContext(),portalNodeRef=react.useRef(null);return floating_ui_react_index((()=>()=>{null==portalNode||portalNode.remove(),queueMicrotask((()=>{portalNodeRef.current=null}))}),[portalNode]),floating_ui_react_index((()=>{if(portalNodeRef.current)return;const existingIdRoot=id?document.getElementById(id):null;if(!existingIdRoot)return;const subRoot=document.createElement("div");subRoot.id=uniqueId,subRoot.setAttribute(attr,""),existingIdRoot.appendChild(subRoot),portalNodeRef.current=subRoot,setPortalNode(subRoot)}),[id,uniqueId]),floating_ui_react_index((()=>{if(portalNodeRef.current)return;let container=root||(null==portalContext?void 0:portalContext.portalNode);container&&!floating_ui_utils_dom_isElement(container)&&(container=container.current),container=container||document.body;let idWrapper=null;id&&(idWrapper=document.createElement("div"),idWrapper.id=id,container.appendChild(idWrapper));const subRoot=document.createElement("div");subRoot.id=uniqueId,subRoot.setAttribute(attr,""),container=idWrapper||container,container.appendChild(subRoot),portalNodeRef.current=subRoot,setPortalNode(subRoot)}),[id,root,uniqueId,portalContext]),portalNode}({id:id,root:root}),[focusManagerState,setFocusManagerState]=react.useState(null),beforeOutsideRef=react.useRef(null),afterOutsideRef=react.useRef(null),beforeInsideRef=react.useRef(null),afterInsideRef=react.useRef(null),shouldRenderGuards=!!focusManagerState&&!focusManagerState.modal&&focusManagerState.open&&preserveTabOrder&&!(!root&&!portalNode);return react.useEffect((()=>{if(portalNode&&preserveTabOrder&&(null==focusManagerState||!focusManagerState.modal))return portalNode.addEventListener("focusin",onFocus,!0),portalNode.addEventListener("focusout",onFocus,!0),()=>{portalNode.removeEventListener("focusin",onFocus,!0),portalNode.removeEventListener("focusout",onFocus,!0)};function onFocus(event){if(portalNode&&isOutsideEvent(event)){("focusin"===event.type?enableFocusInside:disableFocusInside)(portalNode)}}}),[portalNode,preserveTabOrder,null==focusManagerState?void 0:focusManagerState.modal]),react.createElement(PortalContext.Provider,{value:react.useMemo((()=>({preserveTabOrder:preserveTabOrder,beforeOutsideRef:beforeOutsideRef,afterOutsideRef:afterOutsideRef,beforeInsideRef:beforeInsideRef,afterInsideRef:afterInsideRef,portalNode:portalNode,setFocusManagerState:setFocusManagerState})),[preserveTabOrder,portalNode])},shouldRenderGuards&&portalNode&&react.createElement(FocusGuard,{"data-type":"outside",ref:beforeOutsideRef,onFocus:event=>{if(isOutsideEvent(event,portalNode)){var _beforeInsideRef$curr;null==(_beforeInsideRef$curr=beforeInsideRef.current)||_beforeInsideRef$curr.focus()}else{const prevTabbable=getPreviousTabbable()||(null==focusManagerState?void 0:focusManagerState.refs.domReference.current);null==prevTabbable||prevTabbable.focus()}}}),shouldRenderGuards&&portalNode&&react.createElement("span",{"aria-owns":portalNode.id,style:HIDDEN_STYLES}),portalNode&&(0,react_dom.createPortal)(children,portalNode),shouldRenderGuards&&portalNode&&react.createElement(FocusGuard,{"data-type":"outside",ref:afterOutsideRef,onFocus:event=>{if(isOutsideEvent(event,portalNode)){var _afterInsideRef$curre;null==(_afterInsideRef$curre=afterInsideRef.current)||_afterInsideRef$curre.focus()}else{const nextTabbable=getNextTabbable()||(null==focusManagerState?void 0:focusManagerState.refs.domReference.current);null==nextTabbable||nextTabbable.focus(),(null==focusManagerState?void 0:focusManagerState.closeOnFocusOut)&&(null==focusManagerState||focusManagerState.onOpenChange(!1,event.nativeEvent))}}}))}const usePortalContext=()=>react.useContext(PortalContext);const bubbleHandlerKeys={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},captureHandlerKeys={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},normalizeProp=normalizable=>{var _normalizable$escapeK,_normalizable$outside;return{escapeKey:"boolean"==typeof normalizable?normalizable:null!=(_normalizable$escapeK=null==normalizable?void 0:normalizable.escapeKey)&&_normalizable$escapeK,outsidePress:"boolean"==typeof normalizable?normalizable:null==(_normalizable$outside=null==normalizable?void 0:normalizable.outsidePress)||_normalizable$outside}};function useDismiss(context,props){void 0===props&&(props={});const{open:open,onOpenChange:onOpenChange,nodeId:nodeId,elements:{reference:reference,domReference:domReference,floating:floating},dataRef:dataRef}=context,{enabled:enabled=!0,escapeKey:escapeKey=!0,outsidePress:unstable_outsidePress=!0,outsidePressEvent:outsidePressEvent="pointerdown",referencePress:referencePress=!1,referencePressEvent:referencePressEvent="pointerdown",ancestorScroll:ancestorScroll=!1,bubbles:bubbles,capture:capture}=props,tree=useFloatingTree(),outsidePressFn=useEffectEvent("function"==typeof unstable_outsidePress?unstable_outsidePress:()=>!1),outsidePress="function"==typeof unstable_outsidePress?outsidePressFn:unstable_outsidePress,insideReactTreeRef=react.useRef(!1),endedOrStartedInsideRef=react.useRef(!1),{escapeKey:escapeKeyBubbles,outsidePress:outsidePressBubbles}=normalizeProp(bubbles),{escapeKey:escapeKeyCapture,outsidePress:outsidePressCapture}=normalizeProp(capture),closeOnEscapeKeyDown=useEffectEvent((event=>{if(!open||!enabled||!escapeKey||"Escape"!==event.key)return;const children=tree?getChildren(tree.nodesRef.current,nodeId):[];if(!escapeKeyBubbles&&(event.stopPropagation(),children.length>0)){let shouldDismiss=!0;if(children.forEach((child=>{var _child$context;null==(_child$context=child.context)||!_child$context.open||child.context.dataRef.current.__escapeKeyBubbles||(shouldDismiss=!1)})),!shouldDismiss)return}onOpenChange(!1,function isReactEvent(event){return"nativeEvent"in event}(event)?event.nativeEvent:event,"escape-key")})),closeOnEscapeKeyDownCapture=useEffectEvent((event=>{var _getTarget2;const callback=()=>{var _getTarget;closeOnEscapeKeyDown(event),null==(_getTarget=floating_ui_react_utils_getTarget(event))||_getTarget.removeEventListener("keydown",callback)};null==(_getTarget2=floating_ui_react_utils_getTarget(event))||_getTarget2.addEventListener("keydown",callback)})),closeOnPressOutside=useEffectEvent((event=>{const insideReactTree=insideReactTreeRef.current;insideReactTreeRef.current=!1;const endedOrStartedInside=endedOrStartedInsideRef.current;if(endedOrStartedInsideRef.current=!1,"click"===outsidePressEvent&&endedOrStartedInside)return;if(insideReactTree)return;if("function"==typeof outsidePress&&!outsidePress(event))return;const target=floating_ui_react_utils_getTarget(event),inertSelector="["+createAttribute("inert")+"]",markers=floating_ui_react_utils_getDocument(floating).querySelectorAll(inertSelector);let targetRootAncestor=floating_ui_utils_dom_isElement(target)?target:null;for(;targetRootAncestor&&!isLastTraversableNode(targetRootAncestor);){const nextParent=getParentNode(targetRootAncestor);if(isLastTraversableNode(nextParent)||!floating_ui_utils_dom_isElement(nextParent))break;targetRootAncestor=nextParent}if(markers.length&&floating_ui_utils_dom_isElement(target)&&!function isRootElement(element){return element.matches("html,body")}(target)&&!floating_ui_react_utils_contains(target,floating)&&Array.from(markers).every((marker=>!floating_ui_react_utils_contains(targetRootAncestor,marker))))return;if(floating_ui_utils_dom_isHTMLElement(target)&&floating){const canScrollX=target.clientWidth>0&&target.scrollWidth>target.clientWidth,canScrollY=target.clientHeight>0&&target.scrollHeight>target.clientHeight;let xCond=canScrollY&&event.offsetX>target.clientWidth;if(canScrollY){"rtl"===floating_ui_utils_dom_getComputedStyle(target).direction&&(xCond=event.offsetX<=target.offsetWidth-target.clientWidth)}if(xCond||canScrollX&&event.offsetY>target.clientHeight)return}const targetIsInsideChildren=tree&&getChildren(tree.nodesRef.current,nodeId).some((node=>{var _node$context;return isEventTargetWithin(event,null==(_node$context=node.context)?void 0:_node$context.elements.floating)}));if(isEventTargetWithin(event,floating)||isEventTargetWithin(event,domReference)||targetIsInsideChildren)return;const children=tree?getChildren(tree.nodesRef.current,nodeId):[];if(children.length>0){let shouldDismiss=!0;if(children.forEach((child=>{var _child$context2;null==(_child$context2=child.context)||!_child$context2.open||child.context.dataRef.current.__outsidePressBubbles||(shouldDismiss=!1)})),!shouldDismiss)return}onOpenChange(!1,event,"outside-press")})),closeOnPressOutsideCapture=useEffectEvent((event=>{var _getTarget4;const callback=()=>{var _getTarget3;closeOnPressOutside(event),null==(_getTarget3=floating_ui_react_utils_getTarget(event))||_getTarget3.removeEventListener(outsidePressEvent,callback)};null==(_getTarget4=floating_ui_react_utils_getTarget(event))||_getTarget4.addEventListener(outsidePressEvent,callback)}));return react.useEffect((()=>{if(!open||!enabled)return;function onScroll(event){onOpenChange(!1,event,"ancestor-scroll")}dataRef.current.__escapeKeyBubbles=escapeKeyBubbles,dataRef.current.__outsidePressBubbles=outsidePressBubbles;const doc=floating_ui_react_utils_getDocument(floating);escapeKey&&doc.addEventListener("keydown",escapeKeyCapture?closeOnEscapeKeyDownCapture:closeOnEscapeKeyDown,escapeKeyCapture),outsidePress&&doc.addEventListener(outsidePressEvent,outsidePressCapture?closeOnPressOutsideCapture:closeOnPressOutside,outsidePressCapture);let ancestors=[];return ancestorScroll&&(floating_ui_utils_dom_isElement(domReference)&&(ancestors=floating_ui_utils_dom_getOverflowAncestors(domReference)),floating_ui_utils_dom_isElement(floating)&&(ancestors=ancestors.concat(floating_ui_utils_dom_getOverflowAncestors(floating))),!floating_ui_utils_dom_isElement(reference)&&reference&&reference.contextElement&&(ancestors=ancestors.concat(floating_ui_utils_dom_getOverflowAncestors(reference.contextElement)))),ancestors=ancestors.filter((ancestor=>{var _doc$defaultView;return ancestor!==(null==(_doc$defaultView=doc.defaultView)?void 0:_doc$defaultView.visualViewport)})),ancestors.forEach((ancestor=>{ancestor.addEventListener("scroll",onScroll,{passive:!0})})),()=>{escapeKey&&doc.removeEventListener("keydown",escapeKeyCapture?closeOnEscapeKeyDownCapture:closeOnEscapeKeyDown,escapeKeyCapture),outsidePress&&doc.removeEventListener(outsidePressEvent,outsidePressCapture?closeOnPressOutsideCapture:closeOnPressOutside,outsidePressCapture),ancestors.forEach((ancestor=>{ancestor.removeEventListener("scroll",onScroll)}))}}),[dataRef,floating,domReference,reference,escapeKey,outsidePress,outsidePressEvent,open,onOpenChange,ancestorScroll,enabled,escapeKeyBubbles,outsidePressBubbles,closeOnEscapeKeyDown,escapeKeyCapture,closeOnEscapeKeyDownCapture,closeOnPressOutside,outsidePressCapture,closeOnPressOutsideCapture]),react.useEffect((()=>{insideReactTreeRef.current=!1}),[outsidePress,outsidePressEvent]),react.useMemo((()=>enabled?{reference:{onKeyDown:closeOnEscapeKeyDown,[bubbleHandlerKeys[referencePressEvent]]:event=>{referencePress&&onOpenChange(!1,event.nativeEvent,"reference-press")}},floating:{onKeyDown:closeOnEscapeKeyDown,onMouseDown(){endedOrStartedInsideRef.current=!0},onMouseUp(){endedOrStartedInsideRef.current=!0},[captureHandlerKeys[outsidePressEvent]]:()=>{insideReactTreeRef.current=!0}}}:{}),[enabled,referencePress,outsidePressEvent,referencePressEvent,onOpenChange,closeOnEscapeKeyDown])}function floating_ui_react_useFloating(options){var _options$elements2;void 0===options&&(options={});const{open:open=!1,onOpenChange:unstable_onOpenChange,nodeId:nodeId}=options;const[_domReference,setDomReference]=react.useState(null),domReference=(null==(_options$elements2=options.elements)?void 0:_options$elements2.reference)||_domReference,position=function useFloating(options){void 0===options&&(options={});const{placement:placement="bottom",strategy:strategy="absolute",middleware:middleware=[],platform:platform,elements:{reference:externalReference,floating:externalFloating}={},transform:transform=!0,whileElementsMounted:whileElementsMounted,open:open}=options,[data,setData]=react.useState({x:0,y:0,strategy:strategy,placement:placement,middlewareData:{},isPositioned:!1}),[latestMiddleware,setLatestMiddleware]=react.useState(middleware);deepEqual(latestMiddleware,middleware)||setLatestMiddleware(middleware);const[_reference,_setReference]=react.useState(null),[_floating,_setFloating]=react.useState(null),setReference=react.useCallback((node=>{node!==referenceRef.current&&(referenceRef.current=node,_setReference(node))}),[]),setFloating=react.useCallback((node=>{node!==floatingRef.current&&(floatingRef.current=node,_setFloating(node))}),[]),referenceEl=externalReference||_reference,floatingEl=externalFloating||_floating,referenceRef=react.useRef(null),floatingRef=react.useRef(null),dataRef=react.useRef(data),hasWhileElementsMounted=null!=whileElementsMounted,whileElementsMountedRef=useLatestRef(whileElementsMounted),platformRef=useLatestRef(platform),update=react.useCallback((()=>{if(!referenceRef.current||!floatingRef.current)return;const config={placement:placement,strategy:strategy,middleware:latestMiddleware};platformRef.current&&(config.platform=platformRef.current),floating_ui_dom_computePosition(referenceRef.current,floatingRef.current,config).then((data=>{const fullData={...data,isPositioned:!0};isMountedRef.current&&!deepEqual(dataRef.current,fullData)&&(dataRef.current=fullData,react_dom.flushSync((()=>{setData(fullData)})))}))}),[latestMiddleware,placement,strategy,platformRef]);index((()=>{!1===open&&dataRef.current.isPositioned&&(dataRef.current.isPositioned=!1,setData((data=>({...data,isPositioned:!1}))))}),[open]);const isMountedRef=react.useRef(!1);index((()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1})),[]),index((()=>{if(referenceEl&&(referenceRef.current=referenceEl),floatingEl&&(floatingRef.current=floatingEl),referenceEl&&floatingEl){if(whileElementsMountedRef.current)return whileElementsMountedRef.current(referenceEl,floatingEl,update);update()}}),[referenceEl,floatingEl,update,whileElementsMountedRef,hasWhileElementsMounted]);const refs=react.useMemo((()=>({reference:referenceRef,floating:floatingRef,setReference:setReference,setFloating:setFloating})),[setReference,setFloating]),elements=react.useMemo((()=>({reference:referenceEl,floating:floatingEl})),[referenceEl,floatingEl]),floatingStyles=react.useMemo((()=>{const initialStyles={position:strategy,left:0,top:0};if(!elements.floating)return initialStyles;const x=roundByDPR(elements.floating,data.x),y=roundByDPR(elements.floating,data.y);return transform?{...initialStyles,transform:"translate("+x+"px, "+y+"px)",...getDPR(elements.floating)>=1.5&&{willChange:"transform"}}:{position:strategy,left:x,top:y}}),[strategy,transform,elements.floating,data.x,data.y]);return react.useMemo((()=>({...data,update:update,refs:refs,elements:elements,floatingStyles:floatingStyles})),[data,update,refs,elements,floatingStyles])}(options),tree=useFloatingTree(),nested=null!=useFloatingParentNodeId(),onOpenChange=useEffectEvent(((open,event,reason)=>{open&&(dataRef.current.openEvent=event),events.emit("openchange",{open:open,event:event,reason:reason,nested:nested}),null==unstable_onOpenChange||unstable_onOpenChange(open,event,reason)})),domReferenceRef=react.useRef(null),dataRef=react.useRef({}),events=react.useState((()=>createPubSub()))[0],floatingId=useId(),setPositionReference=react.useCallback((node=>{const positionReference=floating_ui_utils_dom_isElement(node)?{getBoundingClientRect:()=>node.getBoundingClientRect(),contextElement:node}:node;position.refs.setReference(positionReference)}),[position.refs]),setReference=react.useCallback((node=>{(floating_ui_utils_dom_isElement(node)||null===node)&&(domReferenceRef.current=node,setDomReference(node)),(floating_ui_utils_dom_isElement(position.refs.reference.current)||null===position.refs.reference.current||null!==node&&!floating_ui_utils_dom_isElement(node))&&position.refs.setReference(node)}),[position.refs]),refs=react.useMemo((()=>({...position.refs,setReference:setReference,setPositionReference:setPositionReference,domReference:domReferenceRef})),[position.refs,setReference,setPositionReference]),elements=react.useMemo((()=>({...position.elements,domReference:domReference})),[position.elements,domReference]),context=react.useMemo((()=>({...position,refs:refs,elements:elements,dataRef:dataRef,nodeId:nodeId,floatingId:floatingId,events:events,open:open,onOpenChange:onOpenChange})),[position,nodeId,floatingId,events,open,onOpenChange,refs,elements]);return floating_ui_react_index((()=>{const node=null==tree?void 0:tree.nodesRef.current.find((node=>node.id===nodeId));node&&(node.context=context)})),react.useMemo((()=>({...position,context:context,refs:refs,elements:elements})),[position,refs,elements,context])}function useFocus(context,props){void 0===props&&(props={});const{open:open,onOpenChange:onOpenChange,events:events,refs:refs,elements:{domReference:domReference}}=context,{enabled:enabled=!0,visibleOnly:visibleOnly=!0}=props,blockFocusRef=react.useRef(!1),timeoutRef=react.useRef(),keyboardModalityRef=react.useRef(!0);return react.useEffect((()=>{if(!enabled)return;const win=floating_ui_utils_dom_getWindow(domReference);function onBlur(){!open&&floating_ui_utils_dom_isHTMLElement(domReference)&&domReference===floating_ui_react_utils_activeElement(floating_ui_react_utils_getDocument(domReference))&&(blockFocusRef.current=!0)}function onKeyDown(){keyboardModalityRef.current=!0}return win.addEventListener("blur",onBlur),win.addEventListener("keydown",onKeyDown,!0),()=>{win.removeEventListener("blur",onBlur),win.removeEventListener("keydown",onKeyDown,!0)}}),[domReference,open,enabled]),react.useEffect((()=>{if(enabled)return events.on("openchange",onOpenChange),()=>{events.off("openchange",onOpenChange)};function onOpenChange(_ref){let{reason:reason}=_ref;"reference-press"!==reason&&"escape-key"!==reason||(blockFocusRef.current=!0)}}),[events,enabled]),react.useEffect((()=>()=>{clearTimeout(timeoutRef.current)}),[]),react.useMemo((()=>enabled?{reference:{onPointerDown(event){floating_ui_react_utils_isVirtualPointerEvent(event.nativeEvent)||(keyboardModalityRef.current=!1)},onMouseLeave(){blockFocusRef.current=!1},onFocus(event){if(blockFocusRef.current)return;const target=floating_ui_react_utils_getTarget(event.nativeEvent);if(visibleOnly&&floating_ui_utils_dom_isElement(target))try{if(floating_ui_react_utils_isSafari()&&function floating_ui_react_utils_isMac(){return floating_ui_react_utils_getPlatform().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}())throw Error();if(!target.matches(":focus-visible"))return}catch(e){if(!keyboardModalityRef.current&&!floating_ui_react_utils_isTypeableElement(target))return}onOpenChange(!0,event.nativeEvent,"focus")},onBlur(event){blockFocusRef.current=!1;const relatedTarget=event.relatedTarget,movedToFocusGuard=floating_ui_utils_dom_isElement(relatedTarget)&&relatedTarget.hasAttribute(createAttribute("focus-guard"))&&"outside"===relatedTarget.getAttribute("data-type");timeoutRef.current=window.setTimeout((()=>{const activeEl=floating_ui_react_utils_activeElement(domReference?domReference.ownerDocument:document);(relatedTarget||activeEl!==domReference)&&(floating_ui_react_utils_contains(refs.floating.current,activeEl)||floating_ui_react_utils_contains(domReference,activeEl)||movedToFocusGuard||onOpenChange(!1,event.nativeEvent,"focus"))}))}}}:{}),[enabled,visibleOnly,domReference,refs,onOpenChange])}const ACTIVE_KEY="active",SELECTED_KEY="selected";function mergeProps(userProps,propsList,elementKey){const map=new Map,isItem="item"===elementKey;let domUserProps=userProps;if(isItem&&userProps){const{[ACTIVE_KEY]:_,[SELECTED_KEY]:__,...validProps}=userProps;domUserProps=validProps}return{..."floating"===elementKey&&{tabIndex:-1},...domUserProps,...propsList.map((value=>{const propsOrGetProps=value?value[elementKey]:null;return"function"==typeof propsOrGetProps?userProps?propsOrGetProps(userProps):null:propsOrGetProps})).concat(userProps).reduce(((acc,props)=>props?(Object.entries(props).forEach((_ref=>{let[key,value]=_ref;var _map$get;isItem&&[ACTIVE_KEY,SELECTED_KEY].includes(key)||(0===key.indexOf("on")?(map.has(key)||map.set(key,[]),"function"==typeof value&&(null==(_map$get=map.get(key))||_map$get.push(value),acc[key]=function(){for(var _map$get2,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return null==(_map$get2=map.get(key))?void 0:_map$get2.map((fn=>fn(...args))).find((val=>void 0!==val))})):acc[key]=value)})),acc):acc),{})}}const componentRoleToAriaRoleMap=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function useRole(context,props){var _componentRoleToAriaR;void 0===props&&(props={});const{open:open,floatingId:floatingId}=context,{enabled:enabled=!0,role:role="dialog"}=props,ariaRole=null!=(_componentRoleToAriaR=componentRoleToAriaRoleMap.get(role))?_componentRoleToAriaR:role,referenceId=useId(),isNested=null!=useFloatingParentNodeId();return react.useMemo((()=>{if(!enabled)return{};const floatingProps={id:floatingId,...ariaRole&&{role:ariaRole}};return"tooltip"===ariaRole||"label"===role?{reference:{["aria-"+("label"===role?"labelledby":"describedby")]:open?floatingId:void 0},floating:floatingProps}:{reference:{"aria-expanded":open?"true":"false","aria-haspopup":"alertdialog"===ariaRole?"dialog":ariaRole,"aria-controls":open?floatingId:void 0,..."listbox"===ariaRole&&{role:"combobox"},..."menu"===ariaRole&&{id:referenceId},..."menu"===ariaRole&&isNested&&{role:"menuitem"},..."select"===role&&{"aria-autocomplete":"none"},..."combobox"===role&&{"aria-autocomplete":"list"}},floating:{...floatingProps,..."menu"===ariaRole&&{"aria-labelledby":referenceId}},item(_ref){let{active:active,selected:selected}=_ref;const commonProps={role:"option",...active&&{id:floatingId+"-option"}};switch(role){case"select":return{...commonProps,"aria-selected":active&&selected};case"combobox":return{...commonProps,...active&&{"aria-selected":!0}}}return{}}}}),[enabled,role,ariaRole,open,floatingId,referenceId,isNested])}const StyledTooltip=styled_components_browser_esm.ZP.div.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-m2im2p-0"})([""," "," "," background:",";z-index:1500;white-space:nowrap;&::before{content:'; Has tooltip: ';clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;}"],(0,templates.oc)(tooltip.typography),(0,templates.SH)(tooltip.spacings),(0,borders.$)(tooltip.border),tooltip.background),ArrowWrapper=styled_components_browser_esm.ZP.div.withConfig({displayName:"Tooltip__ArrowWrapper",componentId:"sc-m2im2p-1"})(["position:absolute;width:",";height:",";z-index:-1;"],tooltip.entities.arrow.width,tooltip.entities.arrow.height),TooltipArrow=styled_components_browser_esm.ZP.svg.withConfig({displayName:"Tooltip__TooltipArrow",componentId:"sc-m2im2p-2"})(["width:",";height:",";position:absolute;fill:",";"],tooltip.entities.arrow.width,tooltip.entities.arrow.height,tooltip.background),Tooltip=(0,react.forwardRef)((function Tooltip({title:title,placement:placement="bottom",children:children,style:style,enterDelay:enterDelay=100,...rest},ref){const arrowRef=(0,react.useRef)(null),[open,setOpen]=(0,react.useState)(!1),shouldOpen=""!==title,{x:x,y:y,refs:refs,strategy:strategy,context:context,middlewareData:{arrow:{x:arrowX,y:arrowY}={}},placement:finalPlacement}=floating_ui_react_useFloating({placement:placement,open:open,onOpenChange:setOpen,middleware:[floating_ui_core_offset(14),floating_ui_dom_flip(),floating_ui_dom_shift({padding:8}),(options={element:arrowRef},{name:"arrow",options:options,fn(state){const{element:element,padding:padding}="function"==typeof options?options(state):options;return element&&function isRef(value){return{}.hasOwnProperty.call(value,"current")}(element)?null!=element.current?floating_ui_dom_arrow({element:element.current,padding:padding}).fn(state):{}:element?floating_ui_dom_arrow({element:element,padding:padding}).fn(state):{}}})],whileElementsMounted:autoUpdate});var options;const anchorRef=(0,react.useMemo)((()=>mergeRefs(refs.setReference,children?.ref)),[refs.setReference,children?.ref]),tooltipRef=(0,react.useMemo)((()=>mergeRefs(refs.setFloating,ref)),[refs.setFloating,ref]),{getReferenceProps:getReferenceProps,getFloatingProps:getFloatingProps}=function useInteractions(propsList){void 0===propsList&&(propsList=[]);const deps=propsList,getReferenceProps=react.useCallback((userProps=>mergeProps(userProps,propsList,"reference")),deps),getFloatingProps=react.useCallback((userProps=>mergeProps(userProps,propsList,"floating")),deps),getItemProps=react.useCallback((userProps=>mergeProps(userProps,propsList,"item")),propsList.map((key=>null==key?void 0:key.item)));return react.useMemo((()=>({getReferenceProps:getReferenceProps,getFloatingProps:getFloatingProps,getItemProps:getItemProps})),[getReferenceProps,getFloatingProps,getItemProps])}([useHover(context,{delay:{open:enterDelay}}),useFocus(context),useRole(context,{role:"tooltip"}),useDismiss(context)]);(0,react.useEffect)((()=>{const staticSide={top:"bottom",right:"left",bottom:"top",left:"right"}[finalPlacement.split("-")[0]];let arrowTransform="none";switch(staticSide){case"right":arrowTransform="rotateY(180deg)";break;case"left":arrowTransform="none";break;case"top":arrowTransform="rotate(90deg)";break;case"bottom":arrowTransform="rotate(-90deg)"}arrowRef.current&&Object.assign(arrowRef.current.style,{left:null!=arrowX?`${arrowX}px`:"",top:null!=arrowY?`${arrowY}px`:"",right:"",bottom:"",[staticSide]:"-6px",transform:arrowTransform})}));const updatedChildren=(0,react.cloneElement)(children,{...getReferenceProps({ref:anchorRef,...children.props})}),inDialog=(el=>{const[inDialog,setInDialog]=(0,react.useState)(null);return(0,react.useEffect)((()=>{el&&null===inDialog&&setInDialog(!!el.closest("dialog"))}),[el]),inDialog})(refs.domReference.current),TooltipEl=(0,jsx_runtime.jsxs)(StyledTooltip,{...rest,...getFloatingProps({ref:tooltipRef,style:{...style,position:strategy,top:y||0,left:x||0}}),children:[title,(0,jsx_runtime.jsx)(ArrowWrapper,{ref:arrowRef,children:(0,jsx_runtime.jsx)(TooltipArrow,{className:"arrowSvg",children:(0,jsx_runtime.jsx)("path",{d:"M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"})})})]});return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[inDialog?(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:shouldOpen&&open&&TooltipEl}):(0,jsx_runtime.jsx)(FloatingPortal,{id:"eds-tooltip-container",children:shouldOpen&&open&&TooltipEl}),updatedChildren]})})),ToggleButton=(0,react.forwardRef)((function ToggleButton({children:children,multiple:multiple,selectedIndexes:selectedIndexes,onChange:onChange,...props},ref){const[pickedIndexes,setPickedIndexes]=(0,react.useState)(selectedIndexes||[]);function updateProps(child,isSelected,index){const childElement=child;if((0,react.isValidElement)(child)&&child.type===Button){const buttonProps={"aria-pressed":!!isSelected||void 0,variant:isSelected?"contained":"outlined",onClick:e=>{childElement.props?.onClick?.(e);let updatedSelection=[index];multiple&&(updatedSelection=pickedIndexes.includes(index)?pickedIndexes.filter((i=>i!==index)):[...pickedIndexes,index]),setPickedIndexes(updatedSelection),onChange&&onChange(updatedSelection)}};return(0,react.cloneElement)(child,buttonProps)}}(0,react.useEffect)((()=>{Array.isArray(selectedIndexes)&&setPickedIndexes(selectedIndexes)}),[selectedIndexes]);const updatedChildren=react.Children.map(children,((child,index)=>{const isSelected=pickedIndexes.includes(index),childElement=child;if((0,react.isValidElement)(child)&&child.type===Tooltip){const updatedGrandChildren=react.Children.map(childElement.props.children,(grandChild=>updateProps(grandChild,isSelected,index)));return(0,react.cloneElement)(childElement,null,updatedGrandChildren[0])}return updateProps(childElement,isSelected,index)}));return(0,jsx_runtime.jsx)(ButtonGroup,{ref:ref,...props,children:updatedChildren})})),Button_Button=Button;Button_Button.Group=ButtonGroup,Button_Button.Toggle=ToggleButton,Button_Button.Group.displayName="Button.Group",Button_Button.Toggle.displayName="Button.Toggle"},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Icon/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{J:function(){return Icon_Icon}});var react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js");let _icons={},count=0;const get=name=>(count+=1,{icon:_icons[name],count:count});var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const StyledSvg=styled_components_browser_esm.ZP.svg.attrs((({$height:$height,$width:$width,fill:fill})=>({name:null,xmlns:"http://www.w3.org/2000/svg",height:`${$height}px`,width:`${$width}px`,fill:fill}))).withConfig({displayName:"Icon__StyledSvg",componentId:"sc-6evbi1-0"})(["transform:",";"],(({$rotation:$rotation})=>$rotation?`rotate(${$rotation}deg)`:"none")),StyledPath=styled_components_browser_esm.ZP.path.attrs((({$height:$height,$size:$size})=>({size:null,fillRule:"evenodd",clipRule:"evenodd",transform:$size/$height!=1?`scale(${$size/$height})`:null}))).withConfig({displayName:"Icon__StyledPath",componentId:"sc-6evbi1-1"})([""]),findIcon=(name,data,size)=>{let{icon:icon,count:count}=data?(icon=>({icon:icon,count:Math.floor(1e3*Math.random())}))(data):get(name);return size<24&&(icon=icon.sizes?.small||icon),{icon:icon,count:count}},Icon=(0,react.forwardRef)((function Icon({size:size,color:color="currentColor",name:name,rotation:rotation,title:title,data:data,...rest},ref){const{icon:icon,count:count}=findIcon(name,data,size);if(void 0===icon)throw Error(`Icon "${name}" not found. Have you added it using Icon.add() or using data props?`);const $height=size||parseInt(icon.width),$width=size||parseInt(icon.height);let svgProps={$height:$height,$width:$width,fill:color,viewBox:`0 0 ${$width} ${$height}`,$rotation:rotation,name:name,"aria-hidden":!0};const pathProps={$height:icon.height?parseInt(icon.height):size,$size:size||parseInt(icon.height)};let titleId="";return title&&(titleId=`${icon.prefix}-${icon.name}-${count}`,svgProps={...svgProps,title:title,role:"img","aria-hidden":void 0,"aria-labelledby":titleId}),(0,jsx_runtime.jsxs)(StyledSvg,{...svgProps,...rest,ref:ref,children:[title&&(0,jsx_runtime.jsx)("title",{id:titleId,children:title}),Array.isArray(icon.svgPathData)?icon.svgPathData.map((pathData=>(0,jsx_runtime.jsx)(StyledPath,{...pathProps,d:pathData},pathData))):(0,jsx_runtime.jsx)(StyledPath,{"data-testid":"eds-icon-path",...pathProps,d:icon.svgPathData})]})})),Icon_Icon=Icon;Icon_Icon.add=icons=>{_icons={..._icons,...icons}}},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/node_modules/.pnpm/ramda@0.29.1/node_modules/ramda/es/mergeDeepRight.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function _isPlaceholder(a){return null!=a&&"object"==typeof a&&!0===a["@@functional/placeholder"]}function _curry1(fn){return function f1(a){return 0===arguments.length||_isPlaceholder(a)?f1:fn.apply(this,arguments)}}function _curry2(fn){return function f2(a,b){switch(arguments.length){case 0:return f2;case 1:return _isPlaceholder(a)?f2:_curry1((function(_b){return fn(a,_b)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)?f2:_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b)})):fn(a,b)}}}function _curry3(fn){return function f3(a,b,c){switch(arguments.length){case 0:return f3;case 1:return _isPlaceholder(a)?f3:_curry2((function(_b,_c){return fn(a,_b,_c)}));case 2:return _isPlaceholder(a)&&_isPlaceholder(b)?f3:_isPlaceholder(a)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_curry1((function(_c){return fn(a,b,_c)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)&&_isPlaceholder(c)?f3:_isPlaceholder(a)&&_isPlaceholder(b)?_curry2((function(_a,_b){return fn(_a,_b,c)})):_isPlaceholder(a)&&_isPlaceholder(c)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)&&_isPlaceholder(c)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b,c)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b,c)})):_isPlaceholder(c)?_curry1((function(_c){return fn(a,b,_c)})):fn(a,b,c)}}}function _isObject(x){return"[object Object]"===Object.prototype.toString.call(x)}function _has(prop,obj){return Object.prototype.hasOwnProperty.call(obj,prop)}__webpack_require__.d(__webpack_exports__,{Z:function(){return mergeDeepRight$1}});var mergeWithKey$1=_curry3((function mergeWithKey(fn,l,r){var k,result={};for(k in r=r||{},l=l||{})_has(k,l)&&(result[k]=_has(k,r)?fn(k,l[k],r[k]):l[k]);for(k in r)_has(k,r)&&!_has(k,result)&&(result[k]=r[k]);return result})),mergeDeepWithKey$1=_curry3((function mergeDeepWithKey(fn,lObj,rObj){return mergeWithKey$1((function(k,lVal,rVal){return _isObject(lVal)&&_isObject(rVal)?mergeDeepWithKey(fn,lVal,rVal):fn(k,lVal,rVal)}),lObj,rObj)})),mergeDeepRight$1=_curry2((function mergeDeepRight(lObj,rObj){return mergeDeepWithKey$1((function(k,lVal,rVal){return rVal}),lObj,rObj)}))},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/borders.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{$:function(){return bordersTemplate}});var styled_components__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_common_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/common.mjs");const bordersTemplate=border=>{if(!border)return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({});switch(border.type){case"border":return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({border:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border),borderRadius:border.radius});case"bordergroup":return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({borderBottom:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.bottom),borderTop:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.top),borderLeft:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.left),borderRight:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.right),borderBottomLeftRadius:border?.left?.radius,borderTopLeftRadius:border?.left?.radius,borderBottomRightRadius:border?.right?.radius,borderTopRightRadius:border?.right?.radius});default:return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({})}}}}]); \ No newline at end of file diff --git a/storybook-static/4408.9933b3ff.iframe.bundle.js b/storybook-static/4408.9933b3ff.iframe.bundle.js new file mode 100644 index 000000000..7f653a974 --- /dev/null +++ b/storybook-static/4408.9933b3ff.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[4408],{"./node_modules/escape-latex/dist/index.js":function(module){"use strict";var _extends=Object.assign||function(target){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{},_ref$preserveFormatti=_ref.preserveFormatting,preserveFormatting=void 0!==_ref$preserveFormatti&&_ref$preserveFormatti,_ref$escapeMapFn=_ref.escapeMapFn,escapeMapFn=void 0===_ref$escapeMapFn?defaultEscapeMapFn:_ref$escapeMapFn,runningStr=String(str),result="",escapes=escapeMapFn(_extends({},defaultEscapes),preserveFormatting?_extends({},formatEscapes):{}),escapeKeys=Object.keys(escapes),_loop=function _loop(){var specialCharFound=!1;escapeKeys.forEach((function(key,index){specialCharFound||runningStr.length>=key.length&&runningStr.slice(0,key.length)===key&&(result+=escapes[escapeKeys[index]],runningStr=runningStr.slice(key.length,runningStr.length),specialCharFound=!0)})),specialCharFound||(result+=runningStr.slice(0,1),runningStr=runningStr.slice(1,runningStr.length))};runningStr;)_loop();return result}},"./node_modules/tiny-emitter/index.js":function(module){function E(){}E.prototype={on:function(name,callback,ctx){var e=this.e||(this.e={});return(e[name]||(e[name]=[])).push({fn:callback,ctx:ctx}),this},once:function(name,callback,ctx){var self=this;function listener(){self.off(name,listener),callback.apply(ctx,arguments)}return listener._=callback,this.on(name,listener,ctx)},emit:function(name){for(var data=[].slice.call(arguments,1),evtArr=((this.e||(this.e={}))[name]||[]).slice(),i=0,len=evtArr.length;i2&&void 0!==arguments[2]?arguments[2]:factory.fn;if((0,array.r3)(name,"."))throw new Error("Factory name should not contain a nested path. Name: "+JSON.stringify(name));var namespace=isTransformFunctionFactory(factory)?math.expression.transform:math,existingTransform=name in math.expression.transform,existing=(0,object.nr)(namespace,name)?namespace[name]:void 0,resolver=function resolver(){var dependencies={};factory.dependencies.map(utils_factory.PI).forEach((dependency=>{if((0,array.r3)(dependency,"."))throw new Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(dependency));"math"===dependency?dependencies.math=math:"mathWithTransform"===dependency?dependencies.mathWithTransform=math.expression.mathWithTransform:"classes"===dependency?dependencies.classes=math:dependencies[dependency]=math[dependency]}));var instance=factory(dependencies);if(instance&&"function"==typeof instance.transform)throw new Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(void 0===existing||options.override)return instance;if(typed.isTypedFunction(existing)&&typed.isTypedFunction(instance))return typed(existing,instance);if(options.silent)return existing;throw new Error('Cannot import "'+name+'": already exists')};factory.meta&&!1===factory.meta.lazy?(namespace[name]=resolver(),existing&&existingTransform?_deleteTransform(name):(isTransformFunctionFactory(factory)||factoryAllowedInExpressions(factory))&&(0,object.Vo)(math.expression.mathWithTransform,name,(()=>namespace[name]))):((0,object.Vo)(namespace,name,resolver),existing&&existingTransform?_deleteTransform(name):(isTransformFunctionFactory(factory)||factoryAllowedInExpressions(factory))&&(0,object.Vo)(math.expression.mathWithTransform,name,(()=>namespace[name]))),importedFactories[name]=factory,math.emit("import",name,resolver)}function isSupportedType(object){return"function"==typeof object||"number"==typeof object||"string"==typeof object||"boolean"==typeof object||null===object||(0,is.wr)(object)||(0,is.Mc)(object)||(0,is.l9)(object)||(0,is.yQ)(object)||(0,is.SW)(object)||Array.isArray(object)}function allowedInExpressions(name){return!(0,object.nr)(unsafe,name)}function factoryAllowedInExpressions(factory){return!(-1!==factory.fn.indexOf(".")||(0,object.nr)(unsafe,factory.fn)||factory.meta&&factory.meta.isClass)}function isTransformFunctionFactory(factory){return void 0!==factory&&void 0!==factory.meta&&!0===factory.meta.isTransformFunction||!1}var unsafe={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function mathImport(functions,options){var num=arguments.length;if(1!==num&&2!==num)throw new ArgumentsError.u("import",num,1,2);options||(options={});var flatValues={};for(var name in function flattenImports(flatValues,value,name){if(Array.isArray(value))value.forEach((item=>flattenImports(flatValues,item)));else if("object"==typeof value)for(var _name in value)(0,object.nr)(value,_name)&&flattenImports(flatValues,value[_name],_name);else if((0,utils_factory.gS)(value)||void 0!==name){var flatName=(0,utils_factory.gS)(value)?isTransformFunctionFactory(value)?value.fn+".transform":value.fn:name;if((0,object.nr)(flatValues,flatName)&&flatValues[flatName]!==value&&!options.silent)throw new Error('Cannot import "'+flatName+'" twice');flatValues[flatName]=value}else if(!options.silent)throw new TypeError("Factory, Object, or Array expected")}(flatValues,functions),flatValues)if((0,object.nr)(flatValues,name)){var value=flatValues[name];if((0,utils_factory.gS)(value))_importFactory(value,options);else if(isSupportedType(value))_import(name,value,options);else if(!options.silent)throw new TypeError("Factory, Object, or Array expected")}}}var function_config=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/function/config.js"),DimensionError=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/DimensionError.js"),IndexError=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/IndexError.js"),core_config=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/config.js");function create(factories,config){var configInternal=(0,esm_extends.Z)({},core_config.g,config);if("function"!=typeof Object.create)throw new Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var math=function mixin(obj){var emitter=new(tiny_emitter_default());return obj.on=emitter.on.bind(emitter),obj.off=emitter.off.bind(emitter),obj.once=emitter.once.bind(emitter),obj.emit=emitter.emit.bind(emitter),obj}({isNumber:is.hj,isComplex:is.Mc,isBigNumber:is.l9,isFraction:is.yQ,isUnit:is.wr,isString:is.HD,isArray:is.kJ,isMatrix:is.SW,isCollection:is.uZ,isDenseMatrix:is.jH,isSparseMatrix:is.sA,isRange:is.bR,isIndex:is.dh,isBoolean:is.jn,isResultSet:is.cB,isHelp:is.x1,isFunction:is.mf,isDate:is.J_,isRegExp:is.Kj,isObject:is.Kn,isNull:is.Ft,isUndefined:is.o8,isAccessorNode:is.Yz,isArrayNode:is.j0,isAssignmentNode:is.Bp,isBlockNode:is.zh,isConditionalNode:is.tS,isConstantNode:is.nu,isFunctionAssignmentNode:is.l7,isFunctionNode:is.VO,isIndexNode:is.Cl,isNode:is.UG,isObjectNode:is.Lr,isOperatorNode:is.bV,isParenthesisNode:is.Ig,isRangeNode:is.ex,isRelationalNode:is.Zi,isSymbolNode:is.FG,isChain:is.qg});math.config=(0,function_config.Ll)(configInternal,math.emit),math.expression={transform:{},mathWithTransform:{config:math.config}};var importedFactories={};function lazyTyped(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return math.typed.apply(math.typed,args)}lazyTyped.isTypedFunction=typed_function_default().isTypedFunction;var internalImport=importFactory(lazyTyped,0,math,importedFactories);return math.import=internalImport,math.on("config",(()=>{Object.values(importedFactories).forEach((factory=>{factory&&factory.meta&&factory.meta.recreateOnConfigChange&&internalImport(factory,{override:!0})}))})),math.create=create.bind(null,factories),math.factory=utils_factory.d5,math.import(Object.values((0,object.oO)(factories))),math.ArgumentsError=ArgumentsError.u,math.DimensionError=DimensionError.m,math.IndexError=IndexError.c,math}},"./packages/subsurface-viewer/node_modules/mathjs/lib/esm/entry/allFactoriesAny.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return allFactoriesAny_all}});var factoriesAny_namespaceObject={};__webpack_require__.r(factoriesAny_namespaceObject),__webpack_require__.d(factoriesAny_namespaceObject,{createAbs:function(){return abs.E},createAccessorNode:function(){return createAccessorNode},createAcos:function(){return acos.L},createAcosh:function(){return acosh.H},createAcot:function(){return acot._},createAcoth:function(){return acoth.w},createAcsc:function(){return acsc.B},createAcsch:function(){return acsch.z},createAdd:function(){return add.e},createAddScalar:function(){return addScalar.A},createAnd:function(){return logical_and.I},createAndTransform:function(){return createAndTransform},createApply:function(){return matrix_apply.j},createApplyTransform:function(){return createApplyTransform},createArg:function(){return arg.Q},createArrayNode:function(){return createArrayNode},createAsec:function(){return asec.Q},createAsech:function(){return asech.k},createAsin:function(){return asin.K},createAsinh:function(){return asinh.c},createAssignmentNode:function(){return createAssignmentNode},createAtan:function(){return atan.a},createAtan2:function(){return atan2.U},createAtanh:function(){return atanh.m},createAtomicMass:function(){return physicalConstants._C},createAvogadro:function(){return physicalConstants.rK},createBellNumbers:function(){return bellNumbers.d},createBigNumberClass:function(){return BigNumber.w},createBignumber:function(){return bignumber.p},createBin:function(){return bin.D},createBitAnd:function(){return bitwise_bitAnd.i},createBitAndTransform:function(){return createBitAndTransform},createBitNot:function(){return bitNot.e},createBitOr:function(){return bitwise_bitOr.j},createBitOrTransform:function(){return createBitOrTransform},createBitXor:function(){return bitXor.g},createBlockNode:function(){return createBlockNode},createBohrMagneton:function(){return physicalConstants.ri},createBohrRadius:function(){return physicalConstants.pz},createBoltzmann:function(){return physicalConstants.Gw},createBoolean:function(){return type_boolean.q},createCatalan:function(){return catalan.u},createCbrt:function(){return cbrt.S},createCeil:function(){return ceil.l},createChain:function(){return createChain},createChainClass:function(){return createChainClass},createClassicalElectronRadius:function(){return physicalConstants.jp},createClone:function(){return clone.v},createColumn:function(){return matrix_column.w},createColumnTransform:function(){return createColumnTransform},createCombinations:function(){return combinations.C},createCombinationsWithRep:function(){return combinationsWithRep.i},createCompare:function(){return compare.z},createCompareNatural:function(){return compareNatural.M},createCompareText:function(){return compareText.f},createCompile:function(){return createCompile},createComplex:function(){return complex.U},createComplexClass:function(){return Complex.w},createComposition:function(){return composition.s},createConcat:function(){return matrix_concat.k},createConcatTransform:function(){return createConcatTransform},createConditionalNode:function(){return createConditionalNode},createConductanceQuantum:function(){return physicalConstants.u1},createConj:function(){return conj.b},createConstantNode:function(){return createConstantNode},createCorr:function(){return corr.L},createCos:function(){return cos.$},createCosh:function(){return cosh.v},createCot:function(){return cot.j},createCoth:function(){return coth.c},createCoulomb:function(){return physicalConstants.ir},createCount:function(){return count.l},createCreateUnit:function(){return createUnit.z},createCross:function(){return cross.q},createCsc:function(){return csc.B},createCsch:function(){return csch._},createCtranspose:function(){return ctranspose.t},createCube:function(){return cube.z},createCumSum:function(){return statistics_cumsum.o},createCumSumTransform:function(){return createCumSumTransform},createDeepEqual:function(){return deepEqual.s},createDenseMatrixClass:function(){return DenseMatrix.D},createDerivative:function(){return createDerivative},createDet:function(){return det.S},createDeuteronMass:function(){return physicalConstants.zP},createDiag:function(){return diag._},createDiff:function(){return matrix_diff.J},createDiffTransform:function(){return createDiffTransform},createDistance:function(){return distance.v},createDivide:function(){return divide._},createDivideScalar:function(){return divideScalar.L},createDot:function(){return dot.W},createDotDivide:function(){return dotDivide.N},createDotMultiply:function(){return dotMultiply.C},createDotPow:function(){return dotPow.v},createE:function(){return constants.IK},createEfimovFactor:function(){return physicalConstants.sW},createEigs:function(){return eigs.Q},createElectricConstant:function(){return physicalConstants.JS},createElectronMass:function(){return physicalConstants.o8},createElementaryCharge:function(){return physicalConstants.IW},createEqual:function(){return equal.Z},createEqualScalar:function(){return equalScalar.f},createEqualText:function(){return equalText.s},createErf:function(){return erf.P},createEvaluate:function(){return createEvaluate},createExp:function(){return exp.C},createExpm:function(){return expm.c},createExpm1:function(){return expm1.j},createFactorial:function(){return factorial.Z},createFalse:function(){return constants.Yb},createFaraday:function(){return physicalConstants.Go},createFermiCoupling:function(){return physicalConstants.Zu},createFft:function(){return fft.Y},createFibonacciHeapClass:function(){return FibonacciHeap.b},createFilter:function(){return filter.c},createFilterTransform:function(){return createFilterTransform},createFineStructure:function(){return physicalConstants.Rw},createFirstRadiation:function(){return physicalConstants.Uu},createFix:function(){return fix.Y},createFlatten:function(){return flatten.c},createFloor:function(){return floor.B},createForEach:function(){return forEach.I},createForEachTransform:function(){return createForEachTransform},createFormat:function(){return format.l},createFraction:function(){return fraction.v},createFractionClass:function(){return Fraction.u},createFreqz:function(){return freqz.c},createFunctionAssignmentNode:function(){return createFunctionAssignmentNode},createFunctionNode:function(){return createFunctionNode},createGamma:function(){return gamma.J},createGasConstant:function(){return physicalConstants.Vv},createGcd:function(){return gcd.f},createGetMatrixDataType:function(){return getMatrixDataType.s},createGravitationConstant:function(){return physicalConstants.nH},createGravity:function(){return physicalConstants.CQ},createHartreeEnergy:function(){return physicalConstants.c0},createHasNumericValue:function(){return hasNumericValue.D},createHelp:function(){return createHelp},createHelpClass:function(){return createHelpClass},createHex:function(){return hex.$},createHypot:function(){return hypot.n},createI:function(){return constants.oL},createIdentity:function(){return identity.X},createIfft:function(){return ifft.g},createIm:function(){return im.R},createImmutableDenseMatrixClass:function(){return ImmutableDenseMatrix.H},createIndex:function(){return matrix_function.E},createIndexClass:function(){return MatrixIndex.B},createIndexNode:function(){return createIndexNode},createIndexTransform:function(){return createIndexTransform},createInfinity:function(){return constants.Ir},createIntersect:function(){return intersect.M},createInv:function(){return inv.N},createInverseConductanceQuantum:function(){return physicalConstants.Km},createInvmod:function(){return invmod.W},createIsInteger:function(){return isInteger.u},createIsNaN:function(){return utils_isNaN.n},createIsNegative:function(){return isNegative.E},createIsNumeric:function(){return isNumeric.L},createIsPositive:function(){return isPositive.X},createIsPrime:function(){return isPrime.C},createIsZero:function(){return isZero.t},createKldivergence:function(){return kldivergence.s},createKlitzing:function(){return physicalConstants.VL},createKron:function(){return kron.Z},createLN10:function(){return constants.ur},createLN2:function(){return constants.Cc},createLOG10E:function(){return constants.q_},createLOG2E:function(){return constants.p9},createLarger:function(){return larger.$},createLargerEq:function(){return largerEq.A},createLcm:function(){return lcm.b},createLeafCount:function(){return createLeafCount},createLeftShift:function(){return leftShift.U},createLgamma:function(){return lgamma.e},createLog:function(){return log.x},createLog10:function(){return log10.z},createLog1p:function(){return log1p.d},createLog2:function(){return log2.d},createLoschmidt:function(){return physicalConstants.sD},createLsolve:function(){return lsolve.v},createLsolveAll:function(){return lsolveAll.S},createLup:function(){return lup.c},createLusolve:function(){return lusolve.A},createLyap:function(){return lyap.c},createMad:function(){return mad.x},createMagneticConstant:function(){return physicalConstants.ax},createMagneticFluxQuantum:function(){return physicalConstants.RZ},createMap:function(){return map.d},createMapTransform:function(){return createMapTransform},createMatrix:function(){return matrix.w},createMatrixClass:function(){return Matrix.K},createMatrixFromColumns:function(){return matrixFromColumns.u},createMatrixFromFunction:function(){return matrixFromFunction.p},createMatrixFromRows:function(){return matrixFromRows._},createMax:function(){return statistics_max.J},createMaxTransform:function(){return createMaxTransform},createMean:function(){return statistics_mean.Q},createMeanTransform:function(){return createMeanTransform},createMedian:function(){return median.O},createMin:function(){return statistics_min.D},createMinTransform:function(){return createMinTransform},createMod:function(){return mod.J},createMode:function(){return mode.x},createMolarMass:function(){return physicalConstants.xt},createMolarMassC12:function(){return physicalConstants.Qr},createMolarPlanckConstant:function(){return physicalConstants.cn},createMolarVolume:function(){return physicalConstants.lR},createMultinomial:function(){return multinomial.b},createMultiply:function(){return multiply.o},createMultiplyScalar:function(){return multiplyScalar.x},createNaN:function(){return constants.t$},createNeutronMass:function(){return physicalConstants.j5},createNode:function(){return createNode},createNorm:function(){return norm.z},createNot:function(){return not.b},createNthRoot:function(){return nthRoot.l},createNthRoots:function(){return nthRoots.f},createNuclearMagneton:function(){return physicalConstants.d},createNull:function(){return constants.VG},createNumber:function(){return number.k},createNumeric:function(){return numeric.d},createObjectNode:function(){return createObjectNode},createOct:function(){return oct.L},createOnes:function(){return ones.c},createOperatorNode:function(){return createOperatorNode},createOr:function(){return logical_or.Z},createOrTransform:function(){return createOrTransform},createParenthesisNode:function(){return createParenthesisNode},createParse:function(){return createParse},createParser:function(){return createParser},createParserClass:function(){return createParserClass},createPartitionSelect:function(){return partitionSelect.U},createPermutations:function(){return permutations.Q},createPhi:function(){return constants.Ii},createPi:function(){return constants.up},createPickRandom:function(){return pickRandom.P},createPinv:function(){return pinv.$},createPlanckCharge:function(){return physicalConstants.B7},createPlanckConstant:function(){return physicalConstants.$M},createPlanckLength:function(){return physicalConstants.Ps},createPlanckMass:function(){return physicalConstants.v0},createPlanckTemperature:function(){return physicalConstants.Oz},createPlanckTime:function(){return physicalConstants.of},createPolynomialRoot:function(){return polynomialRoot.Z},createPow:function(){return pow.X},createPrint:function(){return string_print.P},createPrintTransform:function(){return createPrintTransform},createProd:function(){return prod.x},createProtonMass:function(){return physicalConstants.BL},createQr:function(){return qr.y},createQuantileSeq:function(){return statistics_quantileSeq.y},createQuantileSeqTransform:function(){return createQuantileSeqTransform},createQuantumOfCirculation:function(){return physicalConstants.kL},createRandom:function(){return random.o},createRandomInt:function(){return randomInt.N},createRange:function(){return matrix_range.M},createRangeClass:function(){return Range.X},createRangeNode:function(){return createRangeNode},createRangeTransform:function(){return createRangeTransform},createRationalize:function(){return createRationalize},createRe:function(){return re.m},createReducedPlanckConstant:function(){return physicalConstants.Yv},createRelationalNode:function(){return createRelationalNode},createReplacer:function(){return replacer.$},createReshape:function(){return reshape.O},createResize:function(){return resize.y},createResolve:function(){return createResolve},createResultSet:function(){return ResultSet.R},createReviver:function(){return createReviver},createRightArithShift:function(){return rightArithShift.o},createRightLogShift:function(){return rightLogShift.M},createRotate:function(){return rotate.g},createRotationMatrix:function(){return rotationMatrix.F},createRound:function(){return round.V},createRow:function(){return matrix_row.v},createRowTransform:function(){return createRowTransform},createRydberg:function(){return physicalConstants.A0},createSQRT1_2:function(){return constants.JE},createSQRT2:function(){return constants.rN},createSackurTetrode:function(){return physicalConstants.lr},createSchur:function(){return schur.a},createSec:function(){return sec.i},createSech:function(){return sech.g},createSecondRadiation:function(){return physicalConstants.GI},createSetCartesian:function(){return setCartesian.$},createSetDifference:function(){return setDifference.L},createSetDistinct:function(){return setDistinct.o},createSetIntersect:function(){return setIntersect.h},createSetIsSubset:function(){return setIsSubset.o},createSetMultiplicity:function(){return setMultiplicity.m},createSetPowerset:function(){return setPowerset.c},createSetSize:function(){return setSize.B},createSetSymDifference:function(){return setSymDifference.w},createSetUnion:function(){return setUnion.r},createSign:function(){return sign.U},createSimplify:function(){return createSimplify},createSimplifyConstant:function(){return createSimplifyConstant},createSimplifyCore:function(){return createSimplifyCore},createSin:function(){return sin.x},createSinh:function(){return sinh.P},createSize:function(){return size.s},createSlu:function(){return slu.p},createSmaller:function(){return smaller.r},createSmallerEq:function(){return smallerEq.x},createSolveODE:function(){return solveODE.n},createSort:function(){return sort.l},createSpaClass:function(){return Spa.W},createSparse:function(){return sparse.B},createSparseMatrixClass:function(){return SparseMatrix.C},createSpeedOfLight:function(){return physicalConstants.ss},createSplitUnit:function(){return splitUnit.Y},createSqrt:function(){return sqrt.M},createSqrtm:function(){return sqrtm.m},createSquare:function(){return square.y},createSqueeze:function(){return squeeze.a},createStd:function(){return statistics_std.X},createStdTransform:function(){return createStdTransform},createStefanBoltzmann:function(){return physicalConstants.zt},createStirlingS2:function(){return stirlingS2.M},createString:function(){return string.Y},createSubset:function(){return matrix_subset.q},createSubsetTransform:function(){return createSubsetTransform},createSubtract:function(){return subtract.p},createSubtractScalar:function(){return subtractScalar.A},createSum:function(){return statistics_sum.O},createSumTransform:function(){return createSumTransform},createSylvester:function(){return sylvester.o},createSymbolNode:function(){return createSymbolNode},createSymbolicEqual:function(){return createSymbolicEqual},createTan:function(){return tan.O},createTanh:function(){return tanh.P},createTau:function(){return constants.ci},createThomsonCrossSection:function(){return physicalConstants.V9},createTo:function(){return to.w},createTrace:function(){return trace.J},createTranspose:function(){return transpose.B},createTrue:function(){return constants.jy},createTypeOf:function(){return typeOf.Z},createTyped:function(){return typed.d},createUnaryMinus:function(){return unaryMinus.x},createUnaryPlus:function(){return unaryPlus.i},createUnequal:function(){return unequal.I},createUnitClass:function(){return Unit.w},createUnitFunction:function(){return unit.E},createUppercaseE:function(){return constants.Iu},createUppercasePi:function(){return constants.lO},createUsolve:function(){return usolve.U},createUsolveAll:function(){return usolveAll.Y},createVacuumImpedance:function(){return physicalConstants.xx},createVariance:function(){return statistics_variance.F},createVarianceTransform:function(){return createVarianceTransform},createVersion:function(){return constants.hT},createWeakMixingAngle:function(){return physicalConstants.Dg},createWienDisplacement:function(){return physicalConstants.W5},createXgcd:function(){return xgcd.o},createXor:function(){return xor.O},createZeros:function(){return zeros.T},createZeta:function(){return zeta.I},createZpk2tf:function(){return zpk2tf.u}});var typed=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/function/typed.js"),ResultSet=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/resultset/ResultSet.js"),BigNumber=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/bignumber/BigNumber.js"),Complex=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/complex/Complex.js"),Fraction=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/fraction/Fraction.js"),Range=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/Range.js"),Matrix=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/Matrix.js"),DenseMatrix=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/DenseMatrix.js"),clone=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/clone.js"),isInteger=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isInteger.js"),isNegative=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isNegative.js"),isNumeric=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isNumeric.js"),hasNumericValue=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/hasNumericValue.js"),isPositive=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isPositive.js"),isZero=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isZero.js"),utils_isNaN=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isNaN.js"),typeOf=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/typeOf.js"),equalScalar=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/equalScalar.js"),SparseMatrix=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/SparseMatrix.js"),number=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/number.js"),string=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/string.js"),type_boolean=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/boolean.js"),bignumber=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/bignumber/function/bignumber.js"),complex=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/complex/function/complex.js"),fraction=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/fraction/function/fraction.js"),matrix=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/function/matrix.js"),matrixFromFunction=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/matrixFromFunction.js"),matrixFromRows=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/matrixFromRows.js"),matrixFromColumns=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/matrixFromColumns.js"),splitUnit=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/function/splitUnit.js"),unaryMinus=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/unaryMinus.js"),unaryPlus=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/unaryPlus.js"),abs=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/abs.js"),matrix_apply=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/apply.js"),addScalar=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/addScalar.js"),subtractScalar=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/subtractScalar.js"),cbrt=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/cbrt.js"),ceil=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/ceil.js"),cube=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/cube.js"),exp=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/exp.js"),expm1=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/expm1.js"),fix=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/fix.js"),floor=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/floor.js"),gcd=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/gcd.js"),lcm=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/lcm.js"),log10=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log10.js"),log2=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log2.js"),mod=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/mod.js"),multiplyScalar=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/multiplyScalar.js"),multiply=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/multiply.js"),nthRoot=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/nthRoot.js"),sign=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/sign.js"),sqrt=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/sqrt.js"),square=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/square.js"),subtract=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/subtract.js"),xgcd=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/xgcd.js"),invmod=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/invmod.js"),dotMultiply=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/dotMultiply.js"),bitwise_bitAnd=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitAnd.js"),bitNot=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitNot.js"),bitwise_bitOr=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitOr.js"),bitXor=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/bitXor.js"),arg=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/arg.js"),conj=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/conj.js"),im=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/im.js"),re=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/complex/re.js"),not=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/not.js"),logical_or=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/or.js"),xor=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/xor.js"),matrix_concat=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/concat.js"),matrix_column=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/column.js"),count=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/count.js"),cross=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/cross.js"),diag=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/diag.js"),filter=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/filter.js"),flatten=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/flatten.js"),forEach=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/forEach.js"),getMatrixDataType=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/getMatrixDataType.js"),identity=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/identity.js"),kron=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/kron.js"),map=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/map.js"),matrix_diff=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/diff.js"),ones=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/ones.js"),matrix_range=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/range.js"),reshape=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/reshape.js"),resize=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/resize.js"),rotate=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/rotate.js"),rotationMatrix=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/rotationMatrix.js"),matrix_row=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/row.js"),size=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/size.js"),squeeze=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/squeeze.js"),matrix_subset=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/subset.js"),transpose=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/transpose.js"),ctranspose=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/ctranspose.js"),zeros=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/zeros.js"),fft=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/fft.js"),ifft=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/ifft.js"),solveODE=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/numeric/solveODE.js"),erf=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/special/erf.js"),zeta=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/special/zeta.js"),mode=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/mode.js"),prod=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/prod.js"),format=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/format.js"),bin=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/bin.js"),oct=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/oct.js"),hex=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/hex.js"),string_print=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/string/print.js"),to=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/unit/to.js"),isPrime=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/isPrime.js"),numeric=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/utils/numeric.js"),divideScalar=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/divideScalar.js"),pow=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/pow.js"),round=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/round.js"),log=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log.js"),log1p=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/log1p.js"),nthRoots=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/nthRoots.js"),dotPow=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/dotPow.js"),dotDivide=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/dotDivide.js"),lsolve=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/lsolve.js"),usolve=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/usolve.js"),lsolveAll=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/lsolveAll.js"),usolveAll=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/usolveAll.js"),leftShift=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/leftShift.js"),rightArithShift=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/rightArithShift.js"),rightLogShift=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/bitwise/rightLogShift.js"),logical_and=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/logical/and.js"),compare=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compare.js"),compareNatural=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compareNatural.js"),compareText=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/compareText.js"),equal=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/equal.js"),equalText=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/equalText.js"),smaller=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/smaller.js"),smallerEq=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/smallerEq.js"),larger=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/larger.js"),largerEq=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/largerEq.js"),deepEqual=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/deepEqual.js"),unequal=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/relational/unequal.js"),partitionSelect=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/partitionSelect.js"),sort=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/sort.js"),statistics_max=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/max.js"),statistics_min=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/min.js"),ImmutableDenseMatrix=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/ImmutableDenseMatrix.js"),MatrixIndex=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/MatrixIndex.js"),FibonacciHeap=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/FibonacciHeap.js"),Spa=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/Spa.js"),Unit=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/Unit.js"),unit=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/function/unit.js"),sparse=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/function/sparse.js"),createUnit=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/function/createUnit.js"),acos=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acos.js"),acosh=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acosh.js"),acot=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acot.js"),acoth=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acoth.js"),acsc=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acsc.js"),acsch=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/acsch.js"),asec=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asec.js"),asech=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asech.js"),asin=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asin.js"),asinh=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/asinh.js"),atan=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/atan.js"),atan2=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/atan2.js"),atanh=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/atanh.js"),cos=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/cos.js"),cosh=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/cosh.js"),cot=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/cot.js"),coth=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/coth.js"),csc=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/csc.js"),csch=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/csch.js"),sec=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sec.js"),sech=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sech.js"),sin=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sin.js"),sinh=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/sinh.js"),tan=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/tan.js"),tanh=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/trigonometry/tanh.js"),setCartesian=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setCartesian.js"),setDifference=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setDifference.js"),setDistinct=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setDistinct.js"),setIntersect=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setIntersect.js"),setIsSubset=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setIsSubset.js"),setMultiplicity=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setMultiplicity.js"),setPowerset=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setPowerset.js"),setSize=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setSize.js"),setSymDifference=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setSymDifference.js"),setUnion=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/set/setUnion.js"),add=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/add.js"),hypot=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/hypot.js"),norm=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/norm.js"),dot=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/dot.js"),trace=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/trace.js"),matrix_function=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/matrix/function/index.js"),is=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/is.js"),keywords=new Set(["end"]),object=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/object.js"),factory=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/factory.js"),utils_map=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/map.js"),dependencies=["mathWithTransform"],createNode=(0,factory.d5)("Node",dependencies,(_ref=>{var{mathWithTransform:mathWithTransform}=_ref;return class Node{get type(){return"Node"}get isNode(){return!0}evaluate(scope){return this.compile().evaluate(scope)}compile(){var expr=this._compile(mathWithTransform,{}),args={};return{evaluate:function evaluate(scope){var s=(0,utils_map.df)(scope);return function _validateScope(scope){for(var symbol of[...keywords])if(scope.has(symbol))throw new Error('Scope contains an illegal symbol, "'+symbol+'" is a reserved keyword')}(s),expr(s,args,null)}}}_compile(math,argNames){throw new Error("Method _compile must be implemented by type "+this.type)}forEach(callback){throw new Error("Cannot run forEach on a Node interface")}map(callback){throw new Error("Cannot run map on a Node interface")}_ifNode(node){if(!(0,is.UG)(node))throw new TypeError("Callback function must return a Node");return node}traverse(callback){callback(this,null,null),function _traverse(node,callback){node.forEach((function(child,path,parent){callback(child,path,parent),_traverse(child,callback)}))}(this,callback)}transform(callback){return function _transform(child,path,parent){var replacement=callback(child,path,parent);return replacement!==child?replacement:child.map(_transform)}(this,null,null)}filter(callback){var nodes=[];return this.traverse((function(node,path,parent){callback(node,path,parent)&&nodes.push(node)})),nodes}clone(){throw new Error("Cannot clone a Node interface")}cloneDeep(){return this.map((function(node){return node.cloneDeep()}))}equals(other){return!!other&&(this.type===other.type&&(0,object.J5)(this,other))}toString(options){var customString=this._getCustomString(options);return void 0!==customString?customString:this._toString(options)}_toString(){throw new Error("_toString not implemented for "+this.type)}toJSON(){throw new Error("Cannot serialize object: toJSON not implemented by "+this.type)}toHTML(options){var customString=this._getCustomString(options);return void 0!==customString?customString:this._toHTML(options)}_toHTML(){throw new Error("_toHTML not implemented for "+this.type)}toTex(options){var customString=this._getCustomString(options);return void 0!==customString?customString:this._toTex(options)}_toTex(options){throw new Error("_toTex not implemented for "+this.type)}_getCustomString(options){if(options&&"object"==typeof options)switch(typeof options.handler){case"object":case"undefined":return;case"function":return options.handler(this,options);default:throw new TypeError("Object or function expected as callback")}}getIdentifier(){return this.type}getContent(){return this}}}),{isClass:!0,isNode:!0}),defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),customs=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/customs.js"),IndexError=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/error/IndexError.js");function errorTransform(err){return err&&err.isIndexError?new IndexError.c(err.index+1,err.min+1,void 0!==err.max?err.max+1:void 0):err}function accessFactory(_ref){var{subset:subset}=_ref;return function access(object,index){try{if(Array.isArray(object))return subset(object,index);if(object&&"function"==typeof object.subset)return object.subset(index);if("string"==typeof object)return subset(object,index);if("object"==typeof object){if(!index.isObjectProperty())throw new TypeError("Cannot apply a numeric index as object property");return(0,customs.YF)(object,index.getObjectProperty())}throw new TypeError("Cannot apply index: unsupported type of object")}catch(err){throw errorTransform(err)}}}var AccessorNode_dependencies=["subset","Node"],createAccessorNode=(0,factory.d5)("AccessorNode",AccessorNode_dependencies,(_ref=>{var{subset:subset,Node:Node}=_ref,access=accessFactory({subset:subset});function needParenthesis(node){return!((0,is.Yz)(node)||(0,is.j0)(node)||(0,is.nu)(node)||(0,is.VO)(node)||(0,is.Lr)(node)||(0,is.Ig)(node)||(0,is.FG)(node))}class AccessorNode extends Node{constructor(object,index){if(super(),!(0,is.UG)(object))throw new TypeError('Node expected for parameter "object"');if(!(0,is.Cl)(index))throw new TypeError('IndexNode expected for parameter "index"');this.object=object,this.index=index}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return"AccessorNode"}get isAccessorNode(){return!0}_compile(math,argNames){var evalObject=this.object._compile(math,argNames),evalIndex=this.index._compile(math,argNames);if(this.index.isObjectProperty()){var prop=this.index.getObjectProperty();return function evalAccessorNode(scope,args,context){return(0,customs.YF)(evalObject(scope,args,context),prop)}}return function evalAccessorNode(scope,args,context){var object=evalObject(scope,args,context),index=evalIndex(scope,args,object);return access(object,index)}}forEach(callback){callback(this.object,"object",this),callback(this.index,"index",this)}map(callback){return new AccessorNode(this._ifNode(callback(this.object,"object",this)),this._ifNode(callback(this.index,"index",this)))}clone(){return new AccessorNode(this.object,this.index)}_toString(options){var object=this.object.toString(options);return needParenthesis(this.object)&&(object="("+object+")"),object+this.index.toString(options)}_toHTML(options){var object=this.object.toHTML(options);return needParenthesis(this.object)&&(object='('+object+')'),object+this.index.toHTML(options)}_toTex(options){var object=this.object.toTex(options);return needParenthesis(this.object)&&(object="\\left(' + object + '\\right)"),object+this.index.toTex(options)}toJSON(){return{mathjs:"AccessorNode",object:this.object,index:this.index}}static fromJSON(json){return new AccessorNode(json.object,json.index)}}return(0,defineProperty.Z)(AccessorNode,"name","AccessorNode"),AccessorNode}),{isClass:!0,isNode:!0}),utils_array=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/array.js"),ArrayNode_dependencies=["Node"],createArrayNode=(0,factory.d5)("ArrayNode",ArrayNode_dependencies,(_ref=>{var{Node:Node}=_ref;class ArrayNode extends Node{constructor(items){if(super(),this.items=items||[],!Array.isArray(this.items)||!this.items.every(is.UG))throw new TypeError("Array containing Nodes expected")}get type(){return"ArrayNode"}get isArrayNode(){return!0}_compile(math,argNames){var evalItems=(0,utils_array.UI)(this.items,(function(item){return item._compile(math,argNames)}));if("Array"!==math.config.matrix){var matrix=math.matrix;return function evalArrayNode(scope,args,context){return matrix((0,utils_array.UI)(evalItems,(function(evalItem){return evalItem(scope,args,context)})))}}return function evalArrayNode(scope,args,context){return(0,utils_array.UI)(evalItems,(function(evalItem){return evalItem(scope,args,context)}))}}forEach(callback){for(var i=0;i['+this.items.map((function(node){return node.toHTML(options)})).join(',')+']'}_toTex(options){return function itemsToTex(items,nested){var mixedItems=items.some(is.j0)&&!items.every(is.j0),itemsFormRow=nested||mixedItems,itemSep=itemsFormRow?"&":"\\\\",itemsTex=items.map((function(node){return node.items?itemsToTex(node.items,!nested):node.toTex(options)})).join(itemSep);return mixedItems||!itemsFormRow||itemsFormRow&&!nested?"\\begin{bmatrix}"+itemsTex+"\\end{bmatrix}":itemsTex}(this.items,!1)}}return(0,defineProperty.Z)(ArrayNode,"name","ArrayNode"),ArrayNode}),{isClass:!0,isNode:!0});var properties=[{AssignmentNode:{},FunctionAssignmentNode:{}},{ConditionalNode:{latexLeftParens:!1,latexRightParens:!1,latexParens:!1}},{"OperatorNode:or":{op:"or",associativity:"left",associativeWith:[]}},{"OperatorNode:xor":{op:"xor",associativity:"left",associativeWith:[]}},{"OperatorNode:and":{op:"and",associativity:"left",associativeWith:[]}},{"OperatorNode:bitOr":{op:"|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitXor":{op:"^|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitAnd":{op:"&",associativity:"left",associativeWith:[]}},{"OperatorNode:equal":{op:"==",associativity:"left",associativeWith:[]},"OperatorNode:unequal":{op:"!=",associativity:"left",associativeWith:[]},"OperatorNode:smaller":{op:"<",associativity:"left",associativeWith:[]},"OperatorNode:larger":{op:">",associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{op:"<=",associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{op:">=",associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{op:"<<",associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{op:">>",associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{op:">>>",associativity:"left",associativeWith:[]}},{"OperatorNode:to":{op:"to",associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{op:"+",associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{op:"-",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{op:"*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{op:"/",associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{op:".*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{op:"./",associativity:"left",associativeWith:[]},"OperatorNode:mod":{op:"mod",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]}},{"OperatorNode:unaryPlus":{op:"+",associativity:"right"},"OperatorNode:unaryMinus":{op:"-",associativity:"right"},"OperatorNode:bitNot":{op:"~",associativity:"right"},"OperatorNode:not":{op:"not",associativity:"right"}},{"OperatorNode:pow":{op:"^",associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{op:".^",associativity:"right",associativeWith:[]}},{"OperatorNode:factorial":{op:"!",associativity:"left"}},{"OperatorNode:ctranspose":{op:"'",associativity:"left"}}];function unwrapParen(_node,parenthesis){if(!parenthesis||"auto"!==parenthesis)return _node;for(var node=_node;(0,is.Ig)(node);)node=node.content;return node}function getPrecedence(_node,parenthesis,implicit,parent){var node=_node;"keep"!==parenthesis&&(node=_node.getContent());for(var identifier=node.getIdentifier(),precedence=null,i=0;i{var{subset:subset,matrix:matrix,Node:Node}=_ref,access=accessFactory({subset:subset}),assign=function assignFactory(_ref){var{subset:subset,matrix:matrix}=_ref;return function assign(object,index,value){try{if(Array.isArray(object))return matrix(object).subset(index,value).valueOf().forEach(((item,index)=>{object[index]=item})),object;if(object&&"function"==typeof object.subset)return object.subset(index,value);if("string"==typeof object)return subset(object,index,value);if("object"==typeof object){if(!index.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return(0,customs.nI)(object,index.getObjectProperty(),value),object}throw new TypeError("Cannot apply index: unsupported type of object")}catch(err){throw errorTransform(err)}}}({subset:subset,matrix:matrix});function needParenthesis(node,parenthesis,implicit){parenthesis||(parenthesis="keep");var precedence=getPrecedence(node,parenthesis,implicit),exprPrecedence=getPrecedence(node.value,parenthesis,implicit);return"all"===parenthesis||null!==exprPrecedence&&exprPrecedence<=precedence}class AssignmentNode extends Node{constructor(object,index,value){if(super(),this.object=object,this.index=value?index:null,this.value=value||index,!(0,is.FG)(object)&&!(0,is.Yz)(object))throw new TypeError('SymbolNode or AccessorNode expected as "object"');if((0,is.FG)(object)&&"end"===object.name)throw new Error('Cannot assign to symbol "end"');if(this.index&&!(0,is.Cl)(this.index))throw new TypeError('IndexNode expected as "index"');if(!(0,is.UG)(this.value))throw new TypeError('Node expected as "value"')}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return"AssignmentNode"}get isAssignmentNode(){return!0}_compile(math,argNames){var evalObject=this.object._compile(math,argNames),evalIndex=this.index?this.index._compile(math,argNames):null,evalValue=this.value._compile(math,argNames),name=this.object.name;if(this.index){if(this.index.isObjectProperty()){var prop=this.index.getObjectProperty();return function evalAssignmentNode(scope,args,context){var object=evalObject(scope,args,context),value=evalValue(scope,args,context);return(0,customs.nI)(object,prop,value),value}}if((0,is.FG)(this.object))return function evalAssignmentNode(scope,args,context){var childObject=evalObject(scope,args,context),value=evalValue(scope,args,context),index=evalIndex(scope,args,childObject);return scope.set(name,assign(childObject,index,value)),value};var evalParentObject=this.object.object._compile(math,argNames);if(this.object.index.isObjectProperty()){var parentProp=this.object.index.getObjectProperty();return function evalAssignmentNode(scope,args,context){var parent=evalParentObject(scope,args,context),childObject=(0,customs.YF)(parent,parentProp),index=evalIndex(scope,args,childObject),value=evalValue(scope,args,context);return(0,customs.nI)(parent,parentProp,assign(childObject,index,value)),value}}var evalParentIndex=this.object.index._compile(math,argNames);return function evalAssignmentNode(scope,args,context){var parent=evalParentObject(scope,args,context),parentIndex=evalParentIndex(scope,args,parent),childObject=access(parent,parentIndex),index=evalIndex(scope,args,childObject),value=evalValue(scope,args,context);return assign(parent,parentIndex,assign(childObject,index,value)),value}}if(!(0,is.FG)(this.object))throw new TypeError("SymbolNode expected as object");return function evalAssignmentNode(scope,args,context){var value=evalValue(scope,args,context);return scope.set(name,value),value}}forEach(callback){callback(this.object,"object",this),this.index&&callback(this.index,"index",this),callback(this.value,"value",this)}map(callback){var object=this._ifNode(callback(this.object,"object",this)),index=this.index?this._ifNode(callback(this.index,"index",this)):null,value=this._ifNode(callback(this.value,"value",this));return new AssignmentNode(object,index,value)}clone(){return new AssignmentNode(this.object,this.index,this.value)}_toString(options){var object=this.object.toString(options),index=this.index?this.index.toString(options):"",value=this.value.toString(options);return needParenthesis(this,options&&options.parenthesis,options&&options.implicit)&&(value="("+value+")"),object+index+" = "+value}toJSON(){return{mathjs:"AssignmentNode",object:this.object,index:this.index,value:this.value}}static fromJSON(json){return new AssignmentNode(json.object,json.index,json.value)}_toHTML(options){var object=this.object.toHTML(options),index=this.index?this.index.toHTML(options):"",value=this.value.toHTML(options);return needParenthesis(this,options&&options.parenthesis,options&&options.implicit)&&(value='('+value+')'),object+index+'='+value}_toTex(options){var object=this.object.toTex(options),index=this.index?this.index.toTex(options):"",value=this.value.toTex(options);return needParenthesis(this,options&&options.parenthesis,options&&options.implicit)&&(value="\\left(".concat(value,"\\right)")),object+index+"="+value}}return(0,defineProperty.Z)(AssignmentNode,"name","AssignmentNode"),AssignmentNode}),{isClass:!0,isNode:!0}),BlockNode_dependencies=["ResultSet","Node"],createBlockNode=(0,factory.d5)("BlockNode",BlockNode_dependencies,(_ref=>{var{ResultSet:ResultSet,Node:Node}=_ref;class BlockNode extends Node{constructor(blocks){if(super(),!Array.isArray(blocks))throw new Error("Array expected");this.blocks=blocks.map((function(block){var node=block&&block.node,visible=!block||void 0===block.visible||block.visible;if(!(0,is.UG)(node))throw new TypeError('Property "node" must be a Node');if("boolean"!=typeof visible)throw new TypeError('Property "visible" must be a boolean');return{node:node,visible:visible}}))}get type(){return"BlockNode"}get isBlockNode(){return!0}_compile(math,argNames){var evalBlocks=(0,utils_array.UI)(this.blocks,(function(block){return{evaluate:block.node._compile(math,argNames),visible:block.visible}}));return function evalBlockNodes(scope,args,context){var results=[];return(0,utils_array.Ed)(evalBlocks,(function evalBlockNode(block){var result=block.evaluate(scope,args,context);block.visible&&results.push(result)})),new ResultSet(results)}}forEach(callback){for(var i=0;i;')})).join('
')}_toTex(options){return this.blocks.map((function(param){return param.node.toTex(options)+(param.visible?"":";")})).join("\\;\\;\n")}}return(0,defineProperty.Z)(BlockNode,"name","BlockNode"),BlockNode}),{isClass:!0,isNode:!0}),ConditionalNode_dependencies=["Node"],createConditionalNode=(0,factory.d5)("ConditionalNode",ConditionalNode_dependencies,(_ref=>{var{Node:Node}=_ref;class ConditionalNode extends Node{constructor(condition,trueExpr,falseExpr){if(super(),!(0,is.UG)(condition))throw new TypeError("Parameter condition must be a Node");if(!(0,is.UG)(trueExpr))throw new TypeError("Parameter trueExpr must be a Node");if(!(0,is.UG)(falseExpr))throw new TypeError("Parameter falseExpr must be a Node");this.condition=condition,this.trueExpr=trueExpr,this.falseExpr=falseExpr}get type(){return"ConditionalNode"}get isConditionalNode(){return!0}_compile(math,argNames){var evalCondition=this.condition._compile(math,argNames),evalTrueExpr=this.trueExpr._compile(math,argNames),evalFalseExpr=this.falseExpr._compile(math,argNames);return function evalConditionalNode(scope,args,context){return function testCondition(condition){if("number"==typeof condition||"boolean"==typeof condition||"string"==typeof condition)return!!condition;if(condition){if((0,is.l9)(condition))return!condition.isZero();if((0,is.Mc)(condition))return!(!condition.re&&!condition.im);if((0,is.wr)(condition))return!!condition.value}if(null==condition)return!1;throw new TypeError('Unsupported type of condition "'+(0,is.kM)(condition)+'"')}(evalCondition(scope,args,context))?evalTrueExpr(scope,args,context):evalFalseExpr(scope,args,context)}}forEach(callback){callback(this.condition,"condition",this),callback(this.trueExpr,"trueExpr",this),callback(this.falseExpr,"falseExpr",this)}map(callback){return new ConditionalNode(this._ifNode(callback(this.condition,"condition",this)),this._ifNode(callback(this.trueExpr,"trueExpr",this)),this._ifNode(callback(this.falseExpr,"falseExpr",this)))}clone(){return new ConditionalNode(this.condition,this.trueExpr,this.falseExpr)}_toString(options){var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",precedence=getPrecedence(this,parenthesis,options&&options.implicit),condition=this.condition.toString(options),conditionPrecedence=getPrecedence(this.condition,parenthesis,options&&options.implicit);("all"===parenthesis||"OperatorNode"===this.condition.type||null!==conditionPrecedence&&conditionPrecedence<=precedence)&&(condition="("+condition+")");var trueExpr=this.trueExpr.toString(options),truePrecedence=getPrecedence(this.trueExpr,parenthesis,options&&options.implicit);("all"===parenthesis||"OperatorNode"===this.trueExpr.type||null!==truePrecedence&&truePrecedence<=precedence)&&(trueExpr="("+trueExpr+")");var falseExpr=this.falseExpr.toString(options),falsePrecedence=getPrecedence(this.falseExpr,parenthesis,options&&options.implicit);return("all"===parenthesis||"OperatorNode"===this.falseExpr.type||null!==falsePrecedence&&falsePrecedence<=precedence)&&(falseExpr="("+falseExpr+")"),condition+" ? "+trueExpr+" : "+falseExpr}toJSON(){return{mathjs:"ConditionalNode",condition:this.condition,trueExpr:this.trueExpr,falseExpr:this.falseExpr}}static fromJSON(json){return new ConditionalNode(json.condition,json.trueExpr,json.falseExpr)}_toHTML(options){var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",precedence=getPrecedence(this,parenthesis,options&&options.implicit),condition=this.condition.toHTML(options),conditionPrecedence=getPrecedence(this.condition,parenthesis,options&&options.implicit);("all"===parenthesis||"OperatorNode"===this.condition.type||null!==conditionPrecedence&&conditionPrecedence<=precedence)&&(condition='('+condition+')');var trueExpr=this.trueExpr.toHTML(options),truePrecedence=getPrecedence(this.trueExpr,parenthesis,options&&options.implicit);("all"===parenthesis||"OperatorNode"===this.trueExpr.type||null!==truePrecedence&&truePrecedence<=precedence)&&(trueExpr='('+trueExpr+')');var falseExpr=this.falseExpr.toHTML(options),falsePrecedence=getPrecedence(this.falseExpr,parenthesis,options&&options.implicit);return("all"===parenthesis||"OperatorNode"===this.falseExpr.type||null!==falsePrecedence&&falsePrecedence<=precedence)&&(falseExpr='('+falseExpr+')'),condition+'?'+trueExpr+':'+falseExpr}_toTex(options){return"\\begin{cases} {"+this.trueExpr.toTex(options)+"}, &\\quad{\\text{if }\\;"+this.condition.toTex(options)+"}\\\\{"+this.falseExpr.toTex(options)+"}, &\\quad{\\text{otherwise}}\\end{cases}"}}return(0,defineProperty.Z)(ConditionalNode,"name","ConditionalNode"),ConditionalNode}),{isClass:!0,isNode:!0}),utils_string=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/string.js"),dist=__webpack_require__("./node_modules/escape-latex/dist/index.js"),dist_default=__webpack_require__.n(dist),latexSymbols={Alpha:"A",alpha:"\\alpha",Beta:"B",beta:"\\beta",Gamma:"\\Gamma",gamma:"\\gamma",Delta:"\\Delta",delta:"\\delta",Epsilon:"E",epsilon:"\\epsilon",varepsilon:"\\varepsilon",Zeta:"Z",zeta:"\\zeta",Eta:"H",eta:"\\eta",Theta:"\\Theta",theta:"\\theta",vartheta:"\\vartheta",Iota:"I",iota:"\\iota",Kappa:"K",kappa:"\\kappa",varkappa:"\\varkappa",Lambda:"\\Lambda",lambda:"\\lambda",Mu:"M",mu:"\\mu",Nu:"N",nu:"\\nu",Xi:"\\Xi",xi:"\\xi",Omicron:"O",omicron:"o",Pi:"\\Pi",pi:"\\pi",varpi:"\\varpi",Rho:"P",rho:"\\rho",varrho:"\\varrho",Sigma:"\\Sigma",sigma:"\\sigma",varsigma:"\\varsigma",Tau:"T",tau:"\\tau",Upsilon:"\\Upsilon",upsilon:"\\upsilon",Phi:"\\Phi",phi:"\\phi",varphi:"\\varphi",Chi:"X",chi:"\\chi",Psi:"\\Psi",psi:"\\psi",Omega:"\\Omega",omega:"\\omega",true:"\\mathrm{True}",false:"\\mathrm{False}",i:"i",inf:"\\infty",Inf:"\\infty",infinity:"\\infty",Infinity:"\\infty",oo:"\\infty",lim:"\\lim",undefined:"\\mathbf{?}"},latexOperators={transpose:"^\\top",ctranspose:"^H",factorial:"!",pow:"^",dotPow:".^\\wedge",unaryPlus:"+",unaryMinus:"-",bitNot:"\\~",not:"\\neg",multiply:"\\cdot",divide:"\\frac",dotMultiply:".\\cdot",dotDivide:".:",mod:"\\mod",add:"+",subtract:"-",to:"\\rightarrow",leftShift:"<<",rightArithShift:">>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},latexFunctions={abs:{1:"\\left|${args[0]}\\right|"},add:{2:"\\left(${args[0]}".concat(latexOperators.add,"${args[1]}\\right)")},cbrt:{1:"\\sqrt[3]{${args[0]}}"},ceil:{1:"\\left\\lceil${args[0]}\\right\\rceil"},cube:{1:"\\left(${args[0]}\\right)^3"},divide:{2:"\\frac{${args[0]}}{${args[1]}}"},dotDivide:{2:"\\left(${args[0]}".concat(latexOperators.dotDivide,"${args[1]}\\right)")},dotMultiply:{2:"\\left(${args[0]}".concat(latexOperators.dotMultiply,"${args[1]}\\right)")},dotPow:{2:"\\left(${args[0]}".concat(latexOperators.dotPow,"${args[1]}\\right)")},exp:{1:"\\exp\\left(${args[0]}\\right)"},expm1:"\\left(e".concat(latexOperators.pow,"{${args[0]}}-1\\right)"),fix:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},floor:{1:"\\left\\lfloor${args[0]}\\right\\rfloor"},gcd:"\\gcd\\left(${args}\\right)",hypot:"\\hypot\\left(${args}\\right)",log:{1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},log10:{1:"\\log_{10}\\left(${args[0]}\\right)"},log1p:{1:"\\ln\\left(${args[0]}+1\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}+1\\right)"},log2:"\\log_{2}\\left(${args[0]}\\right)",mod:{2:"\\left(${args[0]}".concat(latexOperators.mod,"${args[1]}\\right)")},multiply:{2:"\\left(${args[0]}".concat(latexOperators.multiply,"${args[1]}\\right)")},norm:{1:"\\left\\|${args[0]}\\right\\|",2:void 0},nthRoot:{2:"\\sqrt[${args[1]}]{${args[0]}}"},nthRoots:{2:"\\{y : $y^{args[1]} = {${args[0]}}\\}"},pow:{2:"\\left(${args[0]}\\right)".concat(latexOperators.pow,"{${args[1]}}")},round:{1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},sign:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},sqrt:{1:"\\sqrt{${args[0]}}"},square:{1:"\\left(${args[0]}\\right)^2"},subtract:{2:"\\left(${args[0]}".concat(latexOperators.subtract,"${args[1]}\\right)")},unaryMinus:{1:"".concat(latexOperators.unaryMinus,"\\left(${args[0]}\\right)")},unaryPlus:{1:"".concat(latexOperators.unaryPlus,"\\left(${args[0]}\\right)")},bitAnd:{2:"\\left(${args[0]}".concat(latexOperators.bitAnd,"${args[1]}\\right)")},bitNot:{1:latexOperators.bitNot+"\\left(${args[0]}\\right)"},bitOr:{2:"\\left(${args[0]}".concat(latexOperators.bitOr,"${args[1]}\\right)")},bitXor:{2:"\\left(${args[0]}".concat(latexOperators.bitXor,"${args[1]}\\right)")},leftShift:{2:"\\left(${args[0]}".concat(latexOperators.leftShift,"${args[1]}\\right)")},rightArithShift:{2:"\\left(${args[0]}".concat(latexOperators.rightArithShift,"${args[1]}\\right)")},rightLogShift:{2:"\\left(${args[0]}".concat(latexOperators.rightLogShift,"${args[1]}\\right)")},bellNumbers:{1:"\\mathrm{B}_{${args[0]}}"},catalan:{1:"\\mathrm{C}_{${args[0]}}"},stirlingS2:{2:"\\mathrm{S}\\left(${args}\\right)"},arg:{1:"\\arg\\left(${args[0]}\\right)"},conj:{1:"\\left(${args[0]}\\right)^*"},im:{1:"\\Im\\left\\lbrace${args[0]}\\right\\rbrace"},re:{1:"\\Re\\left\\lbrace${args[0]}\\right\\rbrace"},and:{2:"\\left(${args[0]}".concat(latexOperators.and,"${args[1]}\\right)")},not:{1:latexOperators.not+"\\left(${args[0]}\\right)"},or:{2:"\\left(${args[0]}".concat(latexOperators.or,"${args[1]}\\right)")},xor:{2:"\\left(${args[0]}".concat(latexOperators.xor,"${args[1]}\\right)")},cross:{2:"\\left(${args[0]}\\right)\\times\\left(${args[1]}\\right)"},ctranspose:{1:"\\left(${args[0]}\\right)".concat(latexOperators.ctranspose)},det:{1:"\\det\\left(${args[0]}\\right)"},dot:{2:"\\left(${args[0]}\\cdot${args[1]}\\right)"},expm:{1:"\\exp\\left(${args[0]}\\right)"},inv:{1:"\\left(${args[0]}\\right)^{-1}"},pinv:{1:"\\left(${args[0]}\\right)^{+}"},sqrtm:{1:"{${args[0]}}".concat(latexOperators.pow,"{\\frac{1}{2}}")},trace:{1:"\\mathrm{tr}\\left(${args[0]}\\right)"},transpose:{1:"\\left(${args[0]}\\right)".concat(latexOperators.transpose)},combinations:{2:"\\binom{${args[0]}}{${args[1]}}"},combinationsWithRep:{2:"\\left(\\!\\!{\\binom{${args[0]}}{${args[1]}}}\\!\\!\\right)"},factorial:{1:"\\left(${args[0]}\\right)".concat(latexOperators.factorial)},gamma:{1:"\\Gamma\\left(${args[0]}\\right)"},lgamma:{1:"\\ln\\Gamma\\left(${args[0]}\\right)"},equal:{2:"\\left(${args[0]}".concat(latexOperators.equal,"${args[1]}\\right)")},larger:{2:"\\left(${args[0]}".concat(latexOperators.larger,"${args[1]}\\right)")},largerEq:{2:"\\left(${args[0]}".concat(latexOperators.largerEq,"${args[1]}\\right)")},smaller:{2:"\\left(${args[0]}".concat(latexOperators.smaller,"${args[1]}\\right)")},smallerEq:{2:"\\left(${args[0]}".concat(latexOperators.smallerEq,"${args[1]}\\right)")},unequal:{2:"\\left(${args[0]}".concat(latexOperators.unequal,"${args[1]}\\right)")},erf:{1:"erf\\left(${args[0]}\\right)"},max:"\\max\\left(${args}\\right)",min:"\\min\\left(${args}\\right)",variance:"\\mathrm{Var}\\left(${args}\\right)",acos:{1:"\\cos^{-1}\\left(${args[0]}\\right)"},acosh:{1:"\\cosh^{-1}\\left(${args[0]}\\right)"},acot:{1:"\\cot^{-1}\\left(${args[0]}\\right)"},acoth:{1:"\\coth^{-1}\\left(${args[0]}\\right)"},acsc:{1:"\\csc^{-1}\\left(${args[0]}\\right)"},acsch:{1:"\\mathrm{csch}^{-1}\\left(${args[0]}\\right)"},asec:{1:"\\sec^{-1}\\left(${args[0]}\\right)"},asech:{1:"\\mathrm{sech}^{-1}\\left(${args[0]}\\right)"},asin:{1:"\\sin^{-1}\\left(${args[0]}\\right)"},asinh:{1:"\\sinh^{-1}\\left(${args[0]}\\right)"},atan:{1:"\\tan^{-1}\\left(${args[0]}\\right)"},atan2:{2:"\\mathrm{atan2}\\left(${args}\\right)"},atanh:{1:"\\tanh^{-1}\\left(${args[0]}\\right)"},cos:{1:"\\cos\\left(${args[0]}\\right)"},cosh:{1:"\\cosh\\left(${args[0]}\\right)"},cot:{1:"\\cot\\left(${args[0]}\\right)"},coth:{1:"\\coth\\left(${args[0]}\\right)"},csc:{1:"\\csc\\left(${args[0]}\\right)"},csch:{1:"\\mathrm{csch}\\left(${args[0]}\\right)"},sec:{1:"\\sec\\left(${args[0]}\\right)"},sech:{1:"\\mathrm{sech}\\left(${args[0]}\\right)"},sin:{1:"\\sin\\left(${args[0]}\\right)"},sinh:{1:"\\sinh\\left(${args[0]}\\right)"},tan:{1:"\\tan\\left(${args[0]}\\right)"},tanh:{1:"\\tanh\\left(${args[0]}\\right)"},to:{2:"\\left(${args[0]}".concat(latexOperators.to,"${args[1]}\\right)")},numeric:function numeric(node,options){return node.args[0].toTex()},number:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"},string:{0:'\\mathtt{""}',1:"\\mathrm{string}\\left(${args[0]}\\right)"},bignumber:{0:"0",1:"\\left(${args[0]}\\right)"},complex:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)+".concat(latexSymbols.i,"\\cdot\\left(${args[1]}\\right)\\right)")},matrix:{0:"\\begin{bmatrix}\\end{bmatrix}",1:"\\left(${args[0]}\\right)",2:"\\left(${args[0]}\\right)"},sparse:{0:"\\begin{bsparse}\\end{bsparse}",1:"\\left(${args[0]}\\right)"},unit:{1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"}},latexUnits={deg:"^\\circ"};function escapeLatex(string){return dist_default()(string,{preserveFormatting:!0})}function toSymbol(name,isUnit){return(isUnit=void 0!==isUnit&&isUnit)?(0,object.nr)(latexUnits,name)?latexUnits[name]:"\\mathrm{"+escapeLatex(name)+"}":(0,object.nr)(latexSymbols,name)?latexSymbols[name]:escapeLatex(name)}var ConstantNode_dependencies=["Node"],createConstantNode=(0,factory.d5)("ConstantNode",ConstantNode_dependencies,(_ref=>{var{Node:Node}=_ref;class ConstantNode extends Node{constructor(value){super(),this.value=value}get type(){return"ConstantNode"}get isConstantNode(){return!0}_compile(math,argNames){var value=this.value;return function evalConstantNode(){return value}}forEach(callback){}map(callback){return this.clone()}clone(){return new ConstantNode(this.value)}_toString(options){return(0,utils_string.WU)(this.value,options)}_toHTML(options){var value=this._toString(options);switch((0,is.kM)(this.value)){case"number":case"BigNumber":case"Fraction":return''+value+"";case"string":return''+value+"";case"boolean":return''+value+"";case"null":return''+value+"";case"undefined":return''+value+"";default:return''+value+""}}toJSON(){return{mathjs:"ConstantNode",value:this.value}}static fromJSON(json){return new ConstantNode(json.value)}_toTex(options){var value=this._toString(options),type=(0,is.kM)(this.value);switch(type){case"string":return"\\mathtt{"+escapeLatex(value)+"}";case"number":case"BigNumber":if(!("BigNumber"===type?this.value.isFinite():isFinite(this.value)))return this.value.valueOf()<0?"-\\infty":"\\infty";var index=value.toLowerCase().indexOf("e");return-1!==index?value.substring(0,index)+"\\cdot10^{"+value.substring(index+1)+"}":value;case"Fraction":return this.value.toLatex();default:return value}}}return(0,defineProperty.Z)(ConstantNode,"name","ConstantNode"),ConstantNode}),{isClass:!0,isNode:!0}),FunctionAssignmentNode_dependencies=["typed","Node"],createFunctionAssignmentNode=(0,factory.d5)("FunctionAssignmentNode",FunctionAssignmentNode_dependencies,(_ref=>{var{typed:typed,Node:Node}=_ref;function needParenthesis(node,parenthesis,implicit){var precedence=getPrecedence(node,parenthesis,implicit),exprPrecedence=getPrecedence(node.expr,parenthesis,implicit);return"all"===parenthesis||null!==exprPrecedence&&exprPrecedence<=precedence}class FunctionAssignmentNode extends Node{constructor(name,params,expr){if(super(),"string"!=typeof name)throw new TypeError('String expected for parameter "name"');if(!Array.isArray(params))throw new TypeError('Array containing strings or objects expected for parameter "params"');if(!(0,is.UG)(expr))throw new TypeError('Node expected for parameter "expr"');if(keywords.has(name))throw new Error('Illegal function name, "'+name+'" is a reserved keyword');var paramNames=new Set;for(var param of params){var _name="string"==typeof param?param:param.name;if(paramNames.has(_name))throw new Error('Duplicate parameter name "'.concat(_name,'"'));paramNames.add(_name)}this.name=name,this.params=params.map((function(param){return param&¶m.name||param})),this.types=params.map((function(param){return param&¶m.type||"any"})),this.expr=expr}get type(){return"FunctionAssignmentNode"}get isFunctionAssignmentNode(){return!0}_compile(math,argNames){var childArgNames=Object.create(argNames);(0,utils_array.Ed)(this.params,(function(param){childArgNames[param]=!0}));var evalExpr=this.expr._compile(math,childArgNames),name=this.name,params=this.params,signature=(0,utils_array.v_)(this.types,","),syntax=name+"("+(0,utils_array.v_)(this.params,", ")+")";return function evalFunctionAssignmentNode(scope,args,context){var signatures={};signatures[signature]=function(){for(var childArgs=Object.create(args),i=0;i'+(0,utils_string.YU)(this.params[i])+"");var expr=this.expr.toHTML(options);return needParenthesis(this,parenthesis,options&&options.implicit)&&(expr='('+expr+')'),''+(0,utils_string.YU)(this.name)+'('+params.join(',')+')='+expr}_toTex(options){var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",expr=this.expr.toTex(options);return needParenthesis(this,parenthesis,options&&options.implicit)&&(expr="\\left(".concat(expr,"\\right)")),"\\mathrm{"+this.name+"}\\left("+this.params.map(toSymbol).join(",")+"\\right)="+expr}}return(0,defineProperty.Z)(FunctionAssignmentNode,"name","FunctionAssignmentNode"),FunctionAssignmentNode}),{isClass:!0,isNode:!0}),IndexNode_dependencies=["Node","size"],createIndexNode=(0,factory.d5)("IndexNode",IndexNode_dependencies,(_ref=>{var{Node:Node,size:size}=_ref;class IndexNode extends Node{constructor(dimensions,dotNotation){if(super(),this.dimensions=dimensions,this.dotNotation=dotNotation||!1,!Array.isArray(dimensions)||!dimensions.every(is.UG))throw new TypeError('Array containing Nodes expected for parameter "dimensions"');if(this.dotNotation&&!this.isObjectProperty())throw new Error("dotNotation only applicable for object properties")}get type(){return"IndexNode"}get isIndexNode(){return!0}_compile(math,argNames){var evalDimensions=(0,utils_array.UI)(this.dimensions,(function(dimension,i){if(dimension.filter((node=>node.isSymbolNode&&"end"===node.name)).length>0){var childArgNames=Object.create(argNames);childArgNames.end=!0;var _evalDimension=dimension._compile(math,childArgNames);return function evalDimension(scope,args,context){if(!(0,is.SW)(context)&&!(0,is.kJ)(context)&&!(0,is.HD)(context))throw new TypeError('Cannot resolve "end": context must be a Matrix, Array, or string but is '+(0,is.kM)(context));var s=size(context).valueOf(),childArgs=Object.create(args);return childArgs.end=s[i],_evalDimension(scope,childArgs,context)}}return dimension._compile(math,argNames)})),index=(0,customs.YF)(math,"index");return function evalIndexNode(scope,args,context){var dimensions=(0,utils_array.UI)(evalDimensions,(function(evalDimension){return evalDimension(scope,args,context)}));return index(...dimensions)}}forEach(callback){for(var i=0;i.'+(0,utils_string.YU)(this.getObjectProperty())+"":'['+dimensions.join(',')+']'}_toTex(options){var dimensions=this.dimensions.map((function(range){return range.toTex(options)}));return this.dotNotation?"."+this.getObjectProperty():"_{"+dimensions.join(",")+"}"}}return(0,defineProperty.Z)(IndexNode,"name","IndexNode"),IndexNode}),{isClass:!0,isNode:!0}),ObjectNode_dependencies=["Node"],createObjectNode=(0,factory.d5)("ObjectNode",ObjectNode_dependencies,(_ref=>{var{Node:Node}=_ref;class ObjectNode extends Node{constructor(properties){if(super(),this.properties=properties||{},properties&&("object"!=typeof properties||!Object.keys(properties).every((function(key){return(0,is.UG)(properties[key])}))))throw new TypeError("Object containing Nodes expected")}get type(){return"ObjectNode"}get isObjectNode(){return!0}_compile(math,argNames){var evalEntries={};for(var key in this.properties)if((0,object.nr)(this.properties,key)){var stringifiedKey=(0,utils_string.Pz)(key),parsedKey=JSON.parse(stringifiedKey),prop=(0,customs.YF)(this.properties,key);evalEntries[parsedKey]=prop._compile(math,argNames)}return function evalObjectNode(scope,args,context){var obj={};for(var _key in evalEntries)(0,object.nr)(evalEntries,_key)&&(obj[_key]=evalEntries[_key](scope,args,context));return obj}}forEach(callback){for(var key in this.properties)(0,object.nr)(this.properties,key)&&callback(this.properties[key],"properties["+(0,utils_string.Pz)(key)+"]",this)}map(callback){var properties={};for(var key in this.properties)(0,object.nr)(this.properties,key)&&(properties[key]=this._ifNode(callback(this.properties[key],"properties["+(0,utils_string.Pz)(key)+"]",this)));return new ObjectNode(properties)}clone(){var properties={};for(var key in this.properties)(0,object.nr)(this.properties,key)&&(properties[key]=this.properties[key]);return new ObjectNode(properties)}_toString(options){var entries=[];for(var key in this.properties)(0,object.nr)(this.properties,key)&&entries.push((0,utils_string.Pz)(key)+": "+this.properties[key].toString(options));return"{"+entries.join(", ")+"}"}toJSON(){return{mathjs:"ObjectNode",properties:this.properties}}static fromJSON(json){return new ObjectNode(json.properties)}_toHTML(options){var entries=[];for(var key in this.properties)(0,object.nr)(this.properties,key)&&entries.push(''+(0,utils_string.YU)(key)+':'+this.properties[key].toHTML(options));return'{'+entries.join(',')+'}'}_toTex(options){var entries=[];for(var key in this.properties)(0,object.nr)(this.properties,key)&&entries.push("\\mathbf{"+key+":} & "+this.properties[key].toTex(options)+"\\\\");return"\\left\\{\\begin{array}{ll}"+entries.join("\n")+"\\end{array}\\right\\}"}}return(0,defineProperty.Z)(ObjectNode,"name","ObjectNode"),ObjectNode}),{isClass:!0,isNode:!0});function createSubScope(parentScope,args){return new utils_map.A3(parentScope,new utils_map.hB(args),new Set(Object.keys(args)))}var OperatorNode_dependencies=["Node"],createOperatorNode=(0,factory.d5)("OperatorNode",OperatorNode_dependencies,(_ref=>{var{Node:Node}=_ref;function startsWithConstant(expr,parenthesis){var curNode=expr;if("auto"===parenthesis)for(;(0,is.Ig)(curNode);)curNode=curNode.content;return!!(0,is.nu)(curNode)||!!(0,is.bV)(curNode)&&startsWithConstant(curNode.args[0],parenthesis)}function calculateNecessaryParentheses(root,parenthesis,implicit,args,latex){var result,precedence=getPrecedence(root,parenthesis,implicit),associativity=getAssociativity(root,parenthesis);if("all"===parenthesis||args.length>2&&"OperatorNode:add"!==root.getIdentifier()&&"OperatorNode:multiply"!==root.getIdentifier())return args.map((function(arg){switch(arg.getContent().type){case"ArrayNode":case"ConstantNode":case"SymbolNode":case"ParenthesisNode":return!1;default:return!0}}));switch(args.length){case 0:result=[];break;case 1:var operandPrecedence=getPrecedence(args[0],parenthesis,implicit,root);if(latex&&null!==operandPrecedence){var operandIdentifier,rootIdentifier;if("keep"===parenthesis?(operandIdentifier=args[0].getIdentifier(),rootIdentifier=root.getIdentifier()):(operandIdentifier=args[0].getContent().getIdentifier(),rootIdentifier=root.getContent().getIdentifier()),!1===properties[precedence][rootIdentifier].latexLeftParens){result=[!1];break}if(!1===properties[operandPrecedence][operandIdentifier].latexParens){result=[!1];break}}if(null===operandPrecedence){result=[!1];break}if(operandPrecedence<=precedence){result=[!0];break}result=[!1];break;case 2:var lhsParens,rhsParens,lhsPrecedence=getPrecedence(args[0],parenthesis,implicit,root),assocWithLhs=isAssociativeWith(root,args[0],parenthesis);lhsParens=null!==lhsPrecedence&&(lhsPrecedence===precedence&&"right"===associativity&&!assocWithLhs||lhsPrecedence=2&&"OperatorNode:multiply"===root.getIdentifier()&&root.implicit&&"all"!==parenthesis&&"hide"===implicit)for(var i=1;i2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var stringifiedArgs=args.map((function(arg,index){return arg=arg.toString(options),parens[index]&&(arg="("+arg+")"),arg}));return this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===implicit?stringifiedArgs.join(" "):stringifiedArgs.join(" "+this.op+" ")}return this.fn+"("+this.args.join(", ")+")"}toJSON(){return{mathjs:"OperatorNode",op:this.op,fn:this.fn,args:this.args,implicit:this.implicit,isPercentage:this.isPercentage}}static fromJSON(json){return new OperatorNode(json.op,json.fn,json.args,json.implicit,json.isPercentage)}_toHTML(options){var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",implicit=options&&options.implicit?options.implicit:"hide",args=this.args,parens=calculateNecessaryParentheses(this,parenthesis,implicit,args,!1);if(1===args.length){var assoc=getAssociativity(this,parenthesis),operand=args[0].toHTML(options);return parens[0]&&(operand='('+operand+')'),"right"===assoc?''+(0,utils_string.YU)(this.op)+""+operand:operand+''+(0,utils_string.YU)(this.op)+""}if(2===args.length){var lhs=args[0].toHTML(options),rhs=args[1].toHTML(options);return parens[0]&&(lhs='('+lhs+')'),parens[1]&&(rhs='('+rhs+')'),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===implicit?lhs+''+rhs:lhs+''+(0,utils_string.YU)(this.op)+""+rhs}var stringifiedArgs=args.map((function(arg,index){return arg=arg.toHTML(options),parens[index]&&(arg='('+arg+')'),arg}));return args.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())?this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===implicit?stringifiedArgs.join(''):stringifiedArgs.join(''+(0,utils_string.YU)(this.op)+""):''+(0,utils_string.YU)(this.fn)+'('+stringifiedArgs.join(',')+')'}_toTex(options){var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",implicit=options&&options.implicit?options.implicit:"hide",args=this.args,parens=calculateNecessaryParentheses(this,parenthesis,implicit,args,!0),op=latexOperators[this.fn];if(op=void 0===op?this.op:op,1===args.length){var assoc=getAssociativity(this,parenthesis),operand=args[0].toTex(options);return parens[0]&&(operand="\\left(".concat(operand,"\\right)")),"right"===assoc?op+operand:operand+op}if(2===args.length){var lhs=args[0],lhsTex=lhs.toTex(options);parens[0]&&(lhsTex="\\left(".concat(lhsTex,"\\right)"));var lhsIdentifier,rhsTex=args[1].toTex(options);switch(parens[1]&&(rhsTex="\\left(".concat(rhsTex,"\\right)")),lhsIdentifier="keep"===parenthesis?lhs.getIdentifier():lhs.getContent().getIdentifier(),this.getIdentifier()){case"OperatorNode:divide":return op+"{"+lhsTex+"}{"+rhsTex+"}";case"OperatorNode:pow":switch(lhsTex="{"+lhsTex+"}",rhsTex="{"+rhsTex+"}",lhsIdentifier){case"ConditionalNode":case"OperatorNode:divide":lhsTex="\\left(".concat(lhsTex,"\\right)")}break;case"OperatorNode:multiply":if(this.implicit&&"hide"===implicit)return lhsTex+"~"+rhsTex}return lhsTex+op+rhsTex}if(args.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var texifiedArgs=args.map((function(arg,index){return arg=arg.toTex(options),parens[index]&&(arg="\\left(".concat(arg,"\\right)")),arg}));return"OperatorNode:multiply"===this.getIdentifier()&&this.implicit&&"hide"===implicit?texifiedArgs.join("~"):texifiedArgs.join(op)}return"\\mathrm{"+this.fn+"}\\left("+args.map((function(arg){return arg.toTex(options)})).join(",")+"\\right)"}getIdentifier(){return this.type+":"+this.fn}}return(0,defineProperty.Z)(OperatorNode,"name","OperatorNode"),OperatorNode}),{isClass:!0,isNode:!0}),ParenthesisNode_dependencies=["Node"],createParenthesisNode=(0,factory.d5)("ParenthesisNode",ParenthesisNode_dependencies,(_ref=>{var{Node:Node}=_ref;class ParenthesisNode extends Node{constructor(content){if(super(),!(0,is.UG)(content))throw new TypeError('Node expected for parameter "content"');this.content=content}get type(){return"ParenthesisNode"}get isParenthesisNode(){return!0}_compile(math,argNames){return this.content._compile(math,argNames)}getContent(){return this.content.getContent()}forEach(callback){callback(this.content,"content",this)}map(callback){var content=callback(this.content,"content",this);return new ParenthesisNode(content)}clone(){return new ParenthesisNode(this.content)}_toString(options){return!options||options&&!options.parenthesis||options&&"keep"===options.parenthesis?"("+this.content.toString(options)+")":this.content.toString(options)}toJSON(){return{mathjs:"ParenthesisNode",content:this.content}}static fromJSON(json){return new ParenthesisNode(json.content)}_toHTML(options){return!options||options&&!options.parenthesis||options&&"keep"===options.parenthesis?'('+this.content.toHTML(options)+')':this.content.toHTML(options)}_toTex(options){return!options||options&&!options.parenthesis||options&&"keep"===options.parenthesis?"\\left(".concat(this.content.toTex(options),"\\right)"):this.content.toTex(options)}}return(0,defineProperty.Z)(ParenthesisNode,"name","ParenthesisNode"),ParenthesisNode}),{isClass:!0,isNode:!0}),RangeNode_dependencies=["Node"],createRangeNode=(0,factory.d5)("RangeNode",RangeNode_dependencies,(_ref=>{var{Node:Node}=_ref;function calculateNecessaryParentheses(node,parenthesis,implicit){var precedence=getPrecedence(node,parenthesis,implicit),parens={},startPrecedence=getPrecedence(node.start,parenthesis,implicit);if(parens.start=null!==startPrecedence&&startPrecedence<=precedence||"all"===parenthesis,node.step){var stepPrecedence=getPrecedence(node.step,parenthesis,implicit);parens.step=null!==stepPrecedence&&stepPrecedence<=precedence||"all"===parenthesis}var endPrecedence=getPrecedence(node.end,parenthesis,implicit);return parens.end=null!==endPrecedence&&endPrecedence<=precedence||"all"===parenthesis,parens}class RangeNode extends Node{constructor(start,end,step){if(super(),!(0,is.UG)(start))throw new TypeError("Node expected");if(!(0,is.UG)(end))throw new TypeError("Node expected");if(step&&!(0,is.UG)(step))throw new TypeError("Node expected");if(arguments.length>3)throw new Error("Too many arguments");this.start=start,this.end=end,this.step=step||null}get type(){return"RangeNode"}get isRangeNode(){return!0}needsEnd(){return this.filter((function(node){return(0,is.FG)(node)&&"end"===node.name})).length>0}_compile(math,argNames){var range=math.range,evalStart=this.start._compile(math,argNames),evalEnd=this.end._compile(math,argNames);if(this.step){var evalStep=this.step._compile(math,argNames);return function evalRangeNode(scope,args,context){return range(evalStart(scope,args,context),evalEnd(scope,args,context),evalStep(scope,args,context))}}return function evalRangeNode(scope,args,context){return range(evalStart(scope,args,context),evalEnd(scope,args,context))}}forEach(callback){callback(this.start,"start",this),callback(this.end,"end",this),this.step&&callback(this.step,"step",this)}map(callback){return new RangeNode(this._ifNode(callback(this.start,"start",this)),this._ifNode(callback(this.end,"end",this)),this.step&&this._ifNode(callback(this.step,"step",this)))}clone(){return new RangeNode(this.start,this.end,this.step&&this.step)}_toString(options){var str,parens=calculateNecessaryParentheses(this,options&&options.parenthesis?options.parenthesis:"keep",options&&options.implicit),start=this.start.toString(options);if(parens.start&&(start="("+start+")"),str=start,this.step){var step=this.step.toString(options);parens.step&&(step="("+step+")"),str+=":"+step}var end=this.end.toString(options);return parens.end&&(end="("+end+")"),str+=":"+end}toJSON(){return{mathjs:"RangeNode",start:this.start,end:this.end,step:this.step}}static fromJSON(json){return new RangeNode(json.start,json.end,json.step)}_toHTML(options){var str,parens=calculateNecessaryParentheses(this,options&&options.parenthesis?options.parenthesis:"keep",options&&options.implicit),start=this.start.toHTML(options);if(parens.start&&(start='('+start+')'),str=start,this.step){var step=this.step.toHTML(options);parens.step&&(step='('+step+')'),str+=':'+step}var end=this.end.toHTML(options);return parens.end&&(end='('+end+')'),str+=':'+end}_toTex(options){var parens=calculateNecessaryParentheses(this,options&&options.parenthesis?options.parenthesis:"keep",options&&options.implicit),str=this.start.toTex(options);if(parens.start&&(str="\\left(".concat(str,"\\right)")),this.step){var step=this.step.toTex(options);parens.step&&(step="\\left(".concat(step,"\\right)")),str+=":"+step}var end=this.end.toTex(options);return parens.end&&(end="\\left(".concat(end,"\\right)")),str+=":"+end}}return(0,defineProperty.Z)(RangeNode,"name","RangeNode"),RangeNode}),{isClass:!0,isNode:!0}),RelationalNode_dependencies=["Node"],createRelationalNode=(0,factory.d5)("RelationalNode",RelationalNode_dependencies,(_ref=>{var{Node:Node}=_ref,operatorMap={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="};class RelationalNode extends Node{constructor(conditionals,params){if(super(),!Array.isArray(conditionals))throw new TypeError("Parameter conditionals must be an array");if(!Array.isArray(params))throw new TypeError("Parameter params must be an array");if(conditionals.length!==params.length-1)throw new TypeError("Parameter params must contain exactly one more element than parameter conditionals");this.conditionals=conditionals,this.params=params}get type(){return"RelationalNode"}get isRelationalNode(){return!0}_compile(math,argNames){var self=this,compiled=this.params.map((p=>p._compile(math,argNames)));return function evalRelationalNode(scope,args,context){for(var evalLhs,evalRhs=compiled[0](scope,args,context),i=0;icallback(n,"params["+i+"]",this)),this)}map(callback){return new RelationalNode(this.conditionals.slice(),this.params.map(((n,i)=>this._ifNode(callback(n,"params["+i+"]",this))),this))}clone(){return new RelationalNode(this.conditionals,this.params)}_toString(options){for(var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",precedence=getPrecedence(this,parenthesis,options&&options.implicit),paramStrings=this.params.map((function(p,index){var paramPrecedence=getPrecedence(p,parenthesis,options&&options.implicit);return"all"===parenthesis||null!==paramPrecedence&¶mPrecedence<=precedence?"("+p.toString(options)+")":p.toString(options)})),ret=paramStrings[0],i=0;i('+p.toHTML(options)+')':p.toHTML(options)})),ret=paramStrings[0],i=0;i'+(0,utils_string.YU)(operatorMap[this.conditionals[i]])+""+paramStrings[i+1];return ret}_toTex(options){for(var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",precedence=getPrecedence(this,parenthesis,options&&options.implicit),paramStrings=this.params.map((function(p,index){var paramPrecedence=getPrecedence(p,parenthesis,options&&options.implicit);return"all"===parenthesis||null!==paramPrecedence&¶mPrecedence<=precedence?"\\left("+p.toTex(options)+"\right)":p.toTex(options)})),ret=paramStrings[0],i=0;i{var{math:math,Unit:Unit,Node:Node}=_ref;function isValuelessUnit(name){return!!Unit&&Unit.isValuelessUnit(name)}class SymbolNode extends Node{constructor(name){if(super(),"string"!=typeof name)throw new TypeError('String expected for parameter "name"');this.name=name}get type(){return"SymbolNode"}get isSymbolNode(){return!0}_compile(math,argNames){var name=this.name;if(!0===argNames[name])return function(scope,args,context){return(0,customs.YF)(args,name)};if(name in math)return function(scope,args,context){return scope.has(name)?scope.get(name):(0,customs.YF)(math,name)};var isUnit=isValuelessUnit(name);return function(scope,args,context){return scope.has(name)?scope.get(name):isUnit?new Unit(null,name):SymbolNode.onUndefinedSymbol(name)}}forEach(callback){}map(callback){return this.clone()}static onUndefinedSymbol(name){throw new Error("Undefined symbol "+name)}clone(){return new SymbolNode(this.name)}_toString(options){return this.name}_toHTML(options){var name=(0,utils_string.YU)(this.name);return"true"===name||"false"===name?''+name+"":"i"===name?''+name+"":"Infinity"===name?''+name+"":"NaN"===name?''+name+"":"null"===name?''+name+"":"undefined"===name?''+name+"":''+name+""}toJSON(){return{mathjs:"SymbolNode",name:this.name}}static fromJSON(json){return new SymbolNode(json.name)}_toTex(options){var isUnit=!1;void 0===math[this.name]&&isValuelessUnit(this.name)&&(isUnit=!0);var symbol=toSymbol(this.name,isUnit);return"\\"===symbol[0]?symbol:" "+symbol}}return SymbolNode}),{isClass:!0,isNode:!0}),FunctionNode_dependencies=["math","Node","SymbolNode"],createFunctionNode=(0,factory.d5)("FunctionNode",FunctionNode_dependencies,(_ref=>{var _FunctionNode,{math:math,Node:Node,SymbolNode:SymbolNode}=_ref,strin=entity=>(0,utils_string.WU)(entity,{truncate:78});function expandTemplate(template,node,options){for(var match,latex="",regex=/\$(?:\{([a-z_][a-z_0-9]*)(?:\[([0-9]+)\])?\}|\$)/gi,inputPos=0;null!==(match=regex.exec(template));)if(latex+=template.substring(inputPos,match.index),inputPos=match.index,"$$"===match[0])latex+="$",inputPos++;else{inputPos+=match[0].length;var property=node[match[1]];if(!property)throw new ReferenceError("Template: Property "+match[1]+" does not exist.");if(void 0===match[2])switch(typeof property){case"string":latex+=property;break;case"object":if((0,is.UG)(property))latex+=property.toTex(options);else{if(!Array.isArray(property))throw new TypeError("Template: "+match[1]+" has to be a Node, String or array of Nodes");latex+=property.map((function(arg,index){if((0,is.UG)(arg))return arg.toTex(options);throw new TypeError("Template: "+match[1]+"["+index+"] is not a Node.")})).join(",")}break;default:throw new TypeError("Template: "+match[1]+" has to be a Node, String or array of Nodes")}else{if(!(0,is.UG)(property[match[2]]&&property[match[2]]))throw new TypeError("Template: "+match[1]+"["+match[2]+"] is not a Node.");latex+=property[match[2]].toTex(options)}}return latex+=template.slice(inputPos)}class FunctionNode extends Node{constructor(fn,args){if(super(),"string"==typeof fn&&(fn=new SymbolNode(fn)),!(0,is.UG)(fn))throw new TypeError('Node expected as parameter "fn"');if(!Array.isArray(args)||!args.every(is.UG))throw new TypeError('Array containing Nodes expected for parameter "args"');this.fn=fn,this.args=args||[]}get name(){return this.fn.name||""}get type(){return"FunctionNode"}get isFunctionNode(){return!0}_compile(math,argNames){var evalArgs=this.args.map((arg=>arg._compile(math,argNames)));if(!(0,is.FG)(this.fn)){if((0,is.Yz)(this.fn)&&(0,is.Cl)(this.fn.index)&&this.fn.index.isObjectProperty()){var evalObject=this.fn.object._compile(math,argNames),prop=this.fn.index.getObjectProperty(),_rawArgs2=this.args;return function evalFunctionNode(scope,args,context){var object=evalObject(scope,args,context),fn=(0,customs.rG)(object,prop);if(null!=fn&&fn.rawArgs)return fn(_rawArgs2,math,createSubScope(scope,args));var values=evalArgs.map((evalArg=>evalArg(scope,args,context)));return fn.apply(object,values)}}var fnExpr=this.fn.toString(),evalFn=this.fn._compile(math,argNames),_rawArgs3=this.args;return function evalFunctionNode(scope,args,context){var fn=evalFn(scope,args,context);if("function"!=typeof fn)throw new TypeError("Expression '".concat(fnExpr,"' did not evaluate to a function; value is:")+"\n ".concat(strin(fn)));if(fn.rawArgs)return fn(_rawArgs3,math,createSubScope(scope,args));var values=evalArgs.map((evalArg=>evalArg(scope,args,context)));return fn.apply(fn,values)}}var _name=this.fn.name;if(argNames[_name]){var _rawArgs=this.args;return function evalFunctionNode(scope,args,context){var fn=(0,customs.YF)(args,_name);if("function"!=typeof fn)throw new TypeError("Argument '".concat(_name,"' was not a function; received: ").concat(strin(fn)));if(fn.rawArgs)return fn(_rawArgs,math,createSubScope(scope,args));var values=evalArgs.map((evalArg=>evalArg(scope,args,context)));return fn.apply(fn,values)}}var fn=_name in math?(0,customs.YF)(math,_name):void 0,isRaw="function"==typeof fn&&!0===fn.rawArgs,resolveFn=scope=>{var value;if(scope.has(_name))value=scope.get(_name);else{if(!(_name in math))return FunctionNode.onUndefinedFunction(_name);value=(0,customs.YF)(math,_name)}if("function"==typeof value)return value;throw new TypeError("'".concat(_name,"' is not a function; its value is:\n ").concat(strin(value)))};if(isRaw){var rawArgs=this.args;return function evalFunctionNode(scope,args,context){return resolveFn(scope)(rawArgs,math,createSubScope(scope,args))}}switch(evalArgs.length){case 0:return function evalFunctionNode(scope,args,context){return resolveFn(scope)()};case 1:return function evalFunctionNode(scope,args,context){return resolveFn(scope)((0,evalArgs[0])(scope,args,context))};case 2:return function evalFunctionNode(scope,args,context){var fn=resolveFn(scope),evalArg0=evalArgs[0],evalArg1=evalArgs[1];return fn(evalArg0(scope,args,context),evalArg1(scope,args,context))};default:return function evalFunctionNode(scope,args,context){return resolveFn(scope)(...evalArgs.map((evalArg=>evalArg(scope,args,context))))}}}forEach(callback){callback(this.fn,"fn",this);for(var i=0;i'+(0,utils_string.YU)(this.fn)+'('+args.join(',')+')'}toTex(options){var customTex;return options&&"object"==typeof options.handler&&(0,object.nr)(options.handler,this.name)&&(customTex=options.handler[this.name](this,options)),void 0!==customTex?customTex:super.toTex(options)}_toTex(options){var latexConverter,customToTex,args=this.args.map((function(arg){return arg.toTex(options)}));switch(latexFunctions[this.name]&&(latexConverter=latexFunctions[this.name]),!math[this.name]||"function"!=typeof math[this.name].toTex&&"object"!=typeof math[this.name].toTex&&"string"!=typeof math[this.name].toTex||(latexConverter=math[this.name].toTex),typeof latexConverter){case"function":customToTex=latexConverter(this,options);break;case"string":customToTex=expandTemplate(latexConverter,this,options);break;case"object":switch(typeof latexConverter[args.length]){case"function":customToTex=latexConverter[args.length](this,options);break;case"string":customToTex=expandTemplate(latexConverter[args.length],this,options)}}return void 0!==customToTex?customToTex:expandTemplate("\\mathrm{${name}}\\left(${args}\\right)",this,options)}getIdentifier(){return this.type+":"+this.name}}return _FunctionNode=FunctionNode,(0,defineProperty.Z)(FunctionNode,"name","FunctionNode"),(0,defineProperty.Z)(FunctionNode,"onUndefinedFunction",(function(name){throw new Error("Undefined function "+name)})),(0,defineProperty.Z)(FunctionNode,"fromJSON",(function(json){return new _FunctionNode(json.fn,json.args)})),FunctionNode}),{isClass:!0,isNode:!0}),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),collection=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/collection.js"),parse_dependencies=["typed","numeric","config","AccessorNode","ArrayNode","AssignmentNode","BlockNode","ConditionalNode","ConstantNode","FunctionAssignmentNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","RangeNode","RelationalNode","SymbolNode"],createParse=(0,factory.d5)("parse",parse_dependencies,(_ref=>{var{typed:typed,numeric:numeric,config:config,AccessorNode:AccessorNode,ArrayNode:ArrayNode,AssignmentNode:AssignmentNode,BlockNode:BlockNode,ConditionalNode:ConditionalNode,ConstantNode:ConstantNode,FunctionAssignmentNode:FunctionAssignmentNode,FunctionNode:FunctionNode,IndexNode:IndexNode,ObjectNode:ObjectNode,OperatorNode:OperatorNode,ParenthesisNode:ParenthesisNode,RangeNode:RangeNode,RelationalNode:RelationalNode,SymbolNode:SymbolNode}=_ref,parse=typed("parse",{string:function string(expression){return parseStart(expression,{})},"Array | Matrix":function ArrayMatrix(expressions){return parseMultiple(expressions,{})},"string, Object":function stringObject(expression,options){return parseStart(expression,void 0!==options.nodes?options.nodes:{})},"Array | Matrix, Object":parseMultiple});function parseMultiple(expressions){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},extraNodes=void 0!==options.nodes?options.nodes:{};return(0,collection.Fh)(expressions,(function(elem){if("string"!=typeof elem)throw new TypeError("String expected");return parseStart(elem,extraNodes)}))}var TOKENTYPE={NULL:0,DELIMITER:1,NUMBER:2,SYMBOL:3,UNKNOWN:4},DELIMITERS={",":!0,"(":!0,")":!0,"[":!0,"]":!0,"{":!0,"}":!0,'"':!0,"'":!0,";":!0,"+":!0,"-":!0,"*":!0,".*":!0,"/":!0,"./":!0,"%":!0,"^":!0,".^":!0,"~":!0,"!":!0,"&":!0,"|":!0,"^|":!0,"=":!0,":":!0,"?":!0,"==":!0,"!=":!0,"<":!0,">":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},NAMED_DELIMITERS={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},CONSTANTS={true:!0,false:!1,null:null,undefined:void 0},NUMERIC_CONSTANTS=["NaN","Infinity"],ESCAPE_CHARACTERS={'"':'"',"'":"'","\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function currentString(state,length){return state.expression.substr(state.index,length)}function currentCharacter(state){return currentString(state,1)}function next(state){state.index++}function prevCharacter(state){return state.expression.charAt(state.index-1)}function nextCharacter(state){return state.expression.charAt(state.index+1)}function getToken(state){for(state.tokenType=TOKENTYPE.NULL,state.token="",state.comment="";;){if("#"===currentCharacter(state))for(;"\n"!==currentCharacter(state)&&""!==currentCharacter(state);)state.comment+=currentCharacter(state),next(state);if(!parse.isWhitespace(currentCharacter(state),state.nestingLevel))break;next(state)}if(""!==currentCharacter(state)){if("\n"===currentCharacter(state)&&!state.nestingLevel)return state.tokenType=TOKENTYPE.DELIMITER,state.token=currentCharacter(state),void next(state);var c1=currentCharacter(state),c2=currentString(state,2),c3=currentString(state,3);if(3===c3.length&&DELIMITERS[c3])return state.tokenType=TOKENTYPE.DELIMITER,state.token=c3,next(state),next(state),void next(state);if(2===c2.length&&DELIMITERS[c2])return state.tokenType=TOKENTYPE.DELIMITER,state.token=c2,next(state),void next(state);if(DELIMITERS[c1])return state.tokenType=TOKENTYPE.DELIMITER,state.token=c1,void next(state);if(parse.isDigitDot(c1)){state.tokenType=TOKENTYPE.NUMBER;var _c=currentString(state,2);if("0b"===_c||"0o"===_c||"0x"===_c){for(state.token+=currentCharacter(state),next(state),state.token+=currentCharacter(state),next(state);parse.isHexDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);if("."===currentCharacter(state))for(state.token+=".",next(state);parse.isHexDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);else if("i"===currentCharacter(state))for(state.token+="i",next(state);parse.isDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);return}if("."===currentCharacter(state)){if(state.token+=currentCharacter(state),next(state),!parse.isDigit(currentCharacter(state)))return void(state.tokenType=TOKENTYPE.DELIMITER)}else{for(;parse.isDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);parse.isDecimalMark(currentCharacter(state),nextCharacter(state))&&(state.token+=currentCharacter(state),next(state))}for(;parse.isDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);if("E"===currentCharacter(state)||"e"===currentCharacter(state))if(parse.isDigit(nextCharacter(state))||"-"===nextCharacter(state)||"+"===nextCharacter(state)){if(state.token+=currentCharacter(state),next(state),"+"!==currentCharacter(state)&&"-"!==currentCharacter(state)||(state.token+=currentCharacter(state),next(state)),!parse.isDigit(currentCharacter(state)))throw createSyntaxError(state,'Digit expected, got "'+currentCharacter(state)+'"');for(;parse.isDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);if(parse.isDecimalMark(currentCharacter(state),nextCharacter(state)))throw createSyntaxError(state,'Digit expected, got "'+currentCharacter(state)+'"')}else if("."===nextCharacter(state))throw next(state),createSyntaxError(state,'Digit expected, got "'+currentCharacter(state)+'"')}else{if(!parse.isAlpha(currentCharacter(state),prevCharacter(state),nextCharacter(state))){for(state.tokenType=TOKENTYPE.UNKNOWN;""!==currentCharacter(state);)state.token+=currentCharacter(state),next(state);throw createSyntaxError(state,'Syntax error in part "'+state.token+'"')}for(;parse.isAlpha(currentCharacter(state),prevCharacter(state),nextCharacter(state))||parse.isDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);(0,object.nr)(NAMED_DELIMITERS,state.token)?state.tokenType=TOKENTYPE.DELIMITER:state.tokenType=TOKENTYPE.SYMBOL}}else state.tokenType=TOKENTYPE.DELIMITER}function getTokenSkipNewline(state){do{getToken(state)}while("\n"===state.token)}function openParams(state){state.nestingLevel++}function closeParams(state){state.nestingLevel--}function parseStart(expression,extraNodes){var state=function initialState(){return{extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:TOKENTYPE.NULL,nestingLevel:0,conditionalLevel:null}}();(0,esm_extends.Z)(state,{expression:expression,extraNodes:extraNodes}),getToken(state);var node=function parseBlock(state){var node,visible,blocks=[];""!==state.token&&"\n"!==state.token&&";"!==state.token&&(node=parseAssignment(state),state.comment&&(node.comment=state.comment));for(;"\n"===state.token||";"===state.token;)0===blocks.length&&node&&(visible=";"!==state.token,blocks.push({node:node,visible:visible})),getToken(state),"\n"!==state.token&&";"!==state.token&&""!==state.token&&(node=parseAssignment(state),state.comment&&(node.comment=state.comment),visible=";"!==state.token,blocks.push({node:node,visible:visible}));return blocks.length>0?new BlockNode(blocks):(node||(node=new ConstantNode(void 0),state.comment&&(node.comment=state.comment)),node)}(state);if(""!==state.token)throw state.tokenType===TOKENTYPE.DELIMITER?createError(state,"Unexpected operator "+state.token):createSyntaxError(state,'Unexpected part "'+state.token+'"');return node}function parseAssignment(state){var name,args,value,valid,node=function parseConditional(state){var node=function parseLogicalOr(state){var node=parseLogicalXor(state);for(;"or"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("or","or",[node,parseLogicalXor(state)]);return node}(state);for(;"?"===state.token;){var prev=state.conditionalLevel;state.conditionalLevel=state.nestingLevel,getTokenSkipNewline(state);var condition=node,trueExpr=parseAssignment(state);if(":"!==state.token)throw createSyntaxError(state,"False part of conditional expression expected");state.conditionalLevel=null,getTokenSkipNewline(state);var falseExpr=parseAssignment(state);node=new ConditionalNode(condition,trueExpr,falseExpr),state.conditionalLevel=prev}return node}(state);if("="===state.token){if((0,is.FG)(node))return name=node.name,getTokenSkipNewline(state),value=parseAssignment(state),new AssignmentNode(new SymbolNode(name),value);if((0,is.Yz)(node))return getTokenSkipNewline(state),value=parseAssignment(state),new AssignmentNode(node.object,node.index,value);if((0,is.VO)(node)&&(0,is.FG)(node.fn)&&(valid=!0,args=[],name=node.name,node.args.forEach((function(arg,index){(0,is.FG)(arg)?args[index]=arg.name:valid=!1})),valid))return getTokenSkipNewline(state),value=parseAssignment(state),new FunctionAssignmentNode(name,args,value);throw createSyntaxError(state,"Invalid left hand side of assignment operator =")}return node}function parseLogicalXor(state){for(var node=parseLogicalAnd(state);"xor"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("xor","xor",[node,parseLogicalAnd(state)]);return node}function parseLogicalAnd(state){for(var node=parseBitwiseOr(state);"and"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("and","and",[node,parseBitwiseOr(state)]);return node}function parseBitwiseOr(state){for(var node=parseBitwiseXor(state);"|"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("|","bitOr",[node,parseBitwiseXor(state)]);return node}function parseBitwiseXor(state){for(var node=parseBitwiseAnd(state);"^|"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("^|","bitXor",[node,parseBitwiseAnd(state)]);return node}function parseBitwiseAnd(state){for(var node=parseRelational(state);"&"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("&","bitAnd",[node,parseRelational(state)]);return node}function parseRelational(state){for(var params=[parseShift(state)],conditionals=[],operators={"==":"equal","!=":"unequal","<":"smaller",">":"larger","<=":"smallerEq",">=":"largerEq"};(0,object.nr)(operators,state.token);){var cond={name:state.token,fn:operators[state.token]};conditionals.push(cond),getTokenSkipNewline(state),params.push(parseShift(state))}return 1===params.length?params[0]:2===params.length?new OperatorNode(conditionals[0].name,conditionals[0].fn,params):new RelationalNode(conditionals.map((c=>c.fn)),params)}function parseShift(state){var node,name,fn,params;node=parseConversion(state);for(var operators={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};(0,object.nr)(operators,state.token);)fn=operators[name=state.token],getTokenSkipNewline(state),params=[node,parseConversion(state)],node=new OperatorNode(name,fn,params);return node}function parseConversion(state){var node,name,fn,params;node=parseRange(state);for(var operators={to:"to",in:"to"};(0,object.nr)(operators,state.token);)fn=operators[name=state.token],getTokenSkipNewline(state),"in"===name&&""===state.token?node=new OperatorNode("*","multiply",[node,new SymbolNode("in")],!0):(params=[node,parseRange(state)],node=new OperatorNode(name,fn,params));return node}function parseRange(state){var node,params=[];if(node=":"===state.token?new ConstantNode(1):parseAddSubtract(state),":"===state.token&&state.conditionalLevel!==state.nestingLevel){for(params.push(node);":"===state.token&¶ms.length<3;)getTokenSkipNewline(state),")"===state.token||"]"===state.token||","===state.token||""===state.token?params.push(new SymbolNode("end")):params.push(parseAddSubtract(state));node=3===params.length?new RangeNode(params[0],params[2],params[1]):new RangeNode(params[0],params[1])}return node}function parseAddSubtract(state){var node,name,fn,params;node=parseMultiplyDivide(state);for(var operators={"+":"add","-":"subtract"};(0,object.nr)(operators,state.token);){fn=operators[name=state.token],getTokenSkipNewline(state);var rightNode=parseMultiplyDivide(state);params=rightNode.isPercentage?[node,new OperatorNode("*","multiply",[node,rightNode])]:[node,rightNode],node=new OperatorNode(name,fn,params)}return node}function parseMultiplyDivide(state){var node,last,name,fn;last=node=parseImplicitMultiplication(state);for(var operators={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide"};(0,object.nr)(operators,state.token);)fn=operators[name=state.token],getTokenSkipNewline(state),last=parseImplicitMultiplication(state),node=new OperatorNode(name,fn,[node,last]);return node}function parseImplicitMultiplication(state){var node,last;for(last=node=parseRule2(state);state.tokenType===TOKENTYPE.SYMBOL||"in"===state.token&&(0,is.nu)(node)||!(state.tokenType!==TOKENTYPE.NUMBER||(0,is.nu)(last)||(0,is.bV)(last)&&"!"!==last.op)||"("===state.token;)last=parseRule2(state),node=new OperatorNode("*","multiply",[node,last],!0);return node}function parseRule2(state){for(var node=parsePercentage(state),last=node,tokenStates=[];"/"===state.token&&(0,is.ZX)(last);){if(tokenStates.push((0,esm_extends.Z)({},state)),getTokenSkipNewline(state),state.tokenType!==TOKENTYPE.NUMBER){(0,esm_extends.Z)(state,tokenStates.pop());break}if(tokenStates.push((0,esm_extends.Z)({},state)),getTokenSkipNewline(state),state.tokenType!==TOKENTYPE.SYMBOL&&"("!==state.token){tokenStates.pop(),(0,esm_extends.Z)(state,tokenStates.pop());break}(0,esm_extends.Z)(state,tokenStates.pop()),tokenStates.pop(),last=parsePercentage(state),node=new OperatorNode("/","divide",[node,last])}return node}function parsePercentage(state){var node,name,fn,params;node=parseUnary(state);for(var operators={"%":"mod",mod:"mod"};(0,object.nr)(operators,state.token);)fn=operators[name=state.token],getTokenSkipNewline(state),"%"===name&&state.tokenType===TOKENTYPE.DELIMITER&&"("!==state.token?node=new OperatorNode("/","divide",[node,new ConstantNode(100)],!1,!0):(params=[node,parseUnary(state)],node=new OperatorNode(name,fn,params));return node}function parseUnary(state){var name,params,fn,operators={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return(0,object.nr)(operators,state.token)?(fn=operators[state.token],name=state.token,getTokenSkipNewline(state),params=[parseUnary(state)],new OperatorNode(name,fn,params)):function parsePow(state){var node,name,fn,params;node=function parseLeftHandOperators(state){var node,name,fn;node=function parseCustomNodes(state){var params=[];if(state.tokenType===TOKENTYPE.SYMBOL&&(0,object.nr)(state.extraNodes,state.token)){var CustomNode=state.extraNodes[state.token];if(getToken(state),"("===state.token){if(params=[],openParams(state),getToken(state),")"!==state.token)for(params.push(parseAssignment(state));","===state.token;)getToken(state),params.push(parseAssignment(state));if(")"!==state.token)throw createSyntaxError(state,"Parenthesis ) expected");closeParams(state),getToken(state)}return new CustomNode(params)}return function parseSymbol(state){var name;if(state.tokenType===TOKENTYPE.SYMBOL||state.tokenType===TOKENTYPE.DELIMITER&&state.token in NAMED_DELIMITERS)return name=state.token,getToken(state),parseAccessors(state,(0,object.nr)(CONSTANTS,name)?new ConstantNode(CONSTANTS[name]):-1!==NUMERIC_CONSTANTS.indexOf(name)?new ConstantNode(numeric(name,"number")):new SymbolNode(name));return function parseString(state){var str;if('"'===state.token||"'"===state.token)return str=parseStringToken(state,state.token),parseAccessors(state,new ConstantNode(str));return function parseMatrix(state){var array,params,rows,cols;if("["===state.token){if(openParams(state),getToken(state),"]"!==state.token){var row=parseRow(state);if(";"===state.token){for(rows=1,params=[row];";"===state.token;)getToken(state),"]"!==state.token&&(params[rows]=parseRow(state),rows++);if("]"!==state.token)throw createSyntaxError(state,"End of matrix ] expected");closeParams(state),getToken(state),cols=params[0].items.length;for(var r=1;r0},parse.isDecimalMark=function isDecimalMark(c,cNext){return"."===c&&"/"!==cNext&&"*"!==cNext&&"^"!==cNext},parse.isDigitDot=function isDigitDot(c){return c>="0"&&c<="9"||"."===c},parse.isDigit=function isDigit(c){return c>="0"&&c<="9"},parse.isHexDigit=function isHexDigit(c){return c>="0"&&c<="9"||c>="a"&&c<="f"||c>="A"&&c<="F"},typed.addConversion({from:"string",to:"Node",convert:parse}),parse})),compile_dependencies=["typed","parse"],createCompile=(0,factory.d5)("compile",compile_dependencies,(_ref=>{var{typed:typed,parse:parse}=_ref;return typed("compile",{string:function string(expr){return parse(expr).compile()},"Array | Matrix":function ArrayMatrix(expr){return(0,collection.Fh)(expr,(function(entry){return parse(entry).compile()}))}})})),evaluate_dependencies=["typed","parse"],createEvaluate=(0,factory.d5)("evaluate",evaluate_dependencies,(_ref=>{var{typed:typed,parse:parse}=_ref;return typed("evaluate",{string:function string(expr){var scope=(0,utils_map.dg)();return parse(expr).compile().evaluate(scope)},"string, Map | Object":function stringMapObject(expr,scope){return parse(expr).compile().evaluate(scope)},"Array | Matrix":function ArrayMatrix(expr){var scope=(0,utils_map.dg)();return(0,collection.Fh)(expr,(function(entry){return parse(entry).compile().evaluate(scope)}))},"Array | Matrix, Map | Object":function ArrayMatrixMapObject(expr,scope){return(0,collection.Fh)(expr,(function(entry){return parse(entry).compile().evaluate(scope)}))}})})),Parser_dependencies=["evaluate"],createParserClass=(0,factory.d5)("Parser",Parser_dependencies,(_ref=>{var{evaluate:evaluate}=_ref;function Parser(){if(!(this instanceof Parser))throw new SyntaxError("Constructor must be called with the new operator");Object.defineProperty(this,"scope",{value:(0,utils_map.dg)(),writable:!1})}return Parser.prototype.type="Parser",Parser.prototype.isParser=!0,Parser.prototype.evaluate=function(expr){return evaluate(expr,this.scope)},Parser.prototype.get=function(name){if(this.scope.has(name))return this.scope.get(name)},Parser.prototype.getAll=function(){return(0,utils_map.ru)(this.scope)},Parser.prototype.getAllAsMap=function(){return this.scope},Parser.prototype.set=function(name,value){return this.scope.set(name,value),value},Parser.prototype.remove=function(name){this.scope.delete(name)},Parser.prototype.clear=function(){this.scope.clear()},Parser}),{isClass:!0}),parser_dependencies=["typed","Parser"],createParser=(0,factory.d5)("parser",parser_dependencies,(_ref=>{var{typed:typed,Parser:Parser}=_ref;return typed("parser",{"":function _(){return new Parser}})})),lup=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/decomposition/lup.js"),qr=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/decomposition/qr.js"),slu=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/decomposition/slu.js"),lusolve=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/solver/lusolve.js"),polynomialRoot=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/polynomialRoot.js"),Help_dependencies=["evaluate"],createHelpClass=(0,factory.d5)("Help",Help_dependencies,(_ref=>{var{evaluate:evaluate}=_ref;function Help(doc){if(!(this instanceof Help))throw new SyntaxError("Constructor must be called with the new operator");if(!doc)throw new Error('Argument "doc" missing');this.doc=doc}return Help.prototype.type="Help",Help.prototype.isHelp=!0,Help.prototype.toString=function(){var doc=this.doc||{},desc="\n";if(doc.name&&(desc+="Name: "+doc.name+"\n\n"),doc.category&&(desc+="Category: "+doc.category+"\n\n"),doc.description&&(desc+="Description:\n "+doc.description+"\n\n"),doc.syntax&&(desc+="Syntax:\n "+doc.syntax.join("\n ")+"\n\n"),doc.examples){desc+="Examples:\n";for(var configChanged=!1,originalConfig=evaluate("config()"),scope={config:newConfig=>(configChanged=!0,evaluate("config(newConfig)",{newConfig:newConfig}))},i=0;i"mathjs"!==prop)).forEach((prop=>{doc[prop]=json[prop]})),new Help(doc)},Help.prototype.valueOf=Help.prototype.toString,Help}),{isClass:!0}),Chain_dependencies=["?on","math","typed"],createChainClass=(0,factory.d5)("Chain",Chain_dependencies,(_ref=>{var{on:on,math:math,typed:typed}=_ref;function Chain(value){if(!(this instanceof Chain))throw new SyntaxError("Constructor must be called with the new operator");(0,is.qg)(value)?this.value=value.value:this.value=value}function createLazyProxy(name,resolver){(0,object.Vo)(Chain.prototype,name,(function outerResolver(){var fn=resolver();if("function"==typeof fn)return chainify(fn)}))}function chainify(fn){return function(){if(0===arguments.length)return new Chain(fn(this.value));for(var args=[this.value],i=0;iarg0[_name]))};for(var _name in arg0)_loop(_name)}};var excludedNames={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return Chain.createProxy(math),on&&on("import",(function(name,resolver,path){path||createLazyProxy(name,resolver)})),Chain}),{isClass:!0}),eDocs={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},piDocs={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},embeddedDocs={bignumber:{name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","complex","fraction","index","matrix","string","unit"]},boolean:{name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},complex:{name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},createUnit:{name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},fraction:{name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(matrix)","fraction(num,den)","fraction({n: num, d: den})"],description:"Create a fraction from a number or from integer numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)","fraction({n: 333, d: 53})","fraction([sqrt(9), sqrt(10), sqrt(11)])"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},index:{name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[1:2, 1:2] = 1","B = [1, 2, 3]","B[B>1 and B<3]"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},matrix:{name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},number:{name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","boolean","complex","fraction","index","matrix","string","unit"]},sparse:{name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},splitUnit:{name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},string:{name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},unit:{name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},e:eDocs,E:eDocs,false:{name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},i:{name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},Infinity:{name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},LN2:{name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},LN10:{name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},LOG2E:{name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},LOG10E:{name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},NaN:{name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},null:{name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},pi:piDocs,PI:piDocs,phi:{name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},SQRT1_2:{name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},SQRT2:{name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},tau:{name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},true:{name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},version:{name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:{name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},lsolve:{name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},lsolveAll:{name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},lup:{name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},lusolve:{name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},leafCount:{name:"leafCount",category:"Algebra",syntax:["leafCount(expr)"],description:"Computes the number of leaves in the parse tree of the given expression",examples:['leafCount("e^(i*pi)-1")','leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],seealso:["simplify"]},polynomialRoot:{name:"polynomialRoot",category:"Algebra",syntax:["x=polynomialRoot(-6, 3)","x=polynomialRoot(4, -4, 1)","x=polynomialRoot(-8, 12, -6, 1)"],description:"Finds the roots of a univariate polynomial given by its coefficients starting from constant, linear, and so on, increasing in degree.",examples:["a = polynomialRoot(-6, 11, -6, 1)"],seealso:["cbrt","sqrt"]},resolve:{name:"resolve",category:"Algebra",syntax:["resolve(node, scope)"],description:"Recursively substitute variables in an expression tree.",examples:['resolve(parse("1 + x"), { x: 7 })','resolve(parse("size(text)"), { text: "Hello World" })','resolve(parse("x + y"), { x: parse("3z") })','resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],seealso:["simplify","evaluate"],mayThrow:["ReferenceError"]},simplify:{name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["simplifyCore","derivative","evaluate","parse","rationalize","resolve"]},simplifyConstant:{name:"simplifyConstant",category:"Algebra",syntax:["simplifyConstant(expr)","simplifyConstant(expr, options)"],description:"Replace constant subexpressions of node with their values.",examples:['simplifyConstant("(3-3)*x")','simplifyConstant(parse("z-cos(tau/8)"))'],seealso:["simplify","simplifyCore","evaluate"]},simplifyCore:{name:"simplifyCore",category:"Algebra",syntax:["simplifyCore(node)"],description:"Perform simple one-pass simplifications on an expression tree.",examples:['simplifyCore(parse("0*x"))','simplifyCore(parse("(x+0)*2"))'],seealso:["simplify","simplifyConstant","evaluate"]},symbolicEqual:{name:"symbolicEqual",category:"Algebra",syntax:["symbolicEqual(expr1, expr2)","symbolicEqual(expr1, expr2, options)"],description:"Returns true if the difference of the expressions simplifies to 0",examples:['symbolicEqual("x*y","y*x")','symbolicEqual("abs(x^2)", "x^2")','symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],seealso:["simplify","evaluate"]},rationalize:{name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},slu:{name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},usolve:{name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},usolveAll:{name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},qr:{name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},abs:{name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},add:{name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},cbrt:{name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},ceil:{name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},cube:{name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},divide:{name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},dotDivide:{name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},dotMultiply:{name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},dotPow:{name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},exp:{name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},expm:{name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},expm1:{name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},fix:{name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},floor:{name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},gcd:{name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},hypot:{name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},lcm:{name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},log:{name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},log2:{name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},log1p:{name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},log10:{name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},mod:{name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},multiply:{name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},norm:{name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},nthRoot:{name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},nthRoots:{name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},pow:{name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)","pow([[1, 2], [4, 3]], 2)","pow([[1, 2], [4, 3]], -1)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},round:{name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)","round(unit, valuelessUnit)","round(unit, n, valuelessUnit)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)","round(3.241cm, 2, cm)","round([3.2, 3.8, -4.7])"],seealso:["ceil","floor","fix"]},sign:{name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},sqrt:{name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},sqrtm:{name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[33, 24], [48, 57]])"],seealso:["sqrt","abs","square","multiply"]},square:{name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},subtract:{name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},unaryMinus:{name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},unaryPlus:{name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},xgcd:{name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},invmod:{name:"invmod",category:"Arithmetic",syntax:["invmod(a, b)"],description:"Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)",examples:["invmod(8, 12)","invmod(7, 13)","invmod(15151, 15122)"],seealso:["gcd","xgcd"]},bitAnd:{name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitNot:{name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitOr:{name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},bitXor:{name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},leftShift:{name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},rightArithShift:{name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},rightLogShift:{name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},bellNumbers:{name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},catalan:{name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},composition:{name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},stirlingS2:{name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},config:{name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},import:{name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},typed:{name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number": f(x)=x+x, "string": f(x)=concat(x,x) })',"double(2)",'double("hello")'],seealso:[]},arg:{name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},conj:{name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},re:{name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},im:{name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},evaluate:{name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate(expression, scope)","evaluate([expr1, expr2, expr3, ...])","evaluate([expr1, expr2, expr3, ...], scope)"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(16)")','evaluate("2 inch to cm")','evaluate("sin(x * pi)", { "x": 1/2 })','evaluate(["width=2", "height=4","width*height"])'],seealso:[]},help:{name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},distance:{name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},intersect:{name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},and:{name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},not:{name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},or:{name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},xor:{name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},concat:{name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},count:{name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},cross:{name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},column:{name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},ctranspose:{name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},det:{name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diag:{name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diff:{name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["A = [1, 2, 4, 7, 0]","diff(A)","diff(A, 1)","B = [[1, 2], [3, 4]]","diff(B)","diff(B, 1)","diff(B, 2)","diff(B, bignumber(2))","diff([[1, 2], matrix([3, 4])], 2)"],seealso:["subtract","partitionSelect"]},dot:{name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},getMatrixDataType:{name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},identity:{name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},filter:{name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},flatten:{name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},forEach:{name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["numberOfPets = {}","addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;",'forEach(["Dog","Cat","Cat"], addPet)',"numberOfPets"],seealso:["map","sort","filter"]},inv:{name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},pinv:{name:"pinv",category:"Matrix",syntax:["pinv(x)"],description:"Calculate the Moore–Penrose inverse of a matrix",examples:["pinv([1, 2; 3, 4])","pinv([[1, 0], [0, 1], [0, 1]])","pinv(4)"],seealso:["inv"]},eigs:{name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and optionally eigenvectors of a square matrix",examples:["eigs([[5, 2.3], [2.3, 1]])","eigs([[1, 2, 3], [4, 5, 6], [7, 8, 9]], { precision: 1e-6, eigenvectors: false })"],seealso:["inv"]},kron:{name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},matrixFromFunction:{name:"matrixFromFunction",category:"Matrix",syntax:["matrixFromFunction(size, fn)","matrixFromFunction(size, fn, format)","matrixFromFunction(size, fn, format, datatype)","matrixFromFunction(size, format, fn)","matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},matrixFromRows:{name:"matrixFromRows",category:"Matrix",syntax:["matrixFromRows(...arr)","matrixFromRows(row1, row2)","matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},matrixFromColumns:{name:"matrixFromColumns",category:"Matrix",syntax:["matrixFromColumns(...arr)","matrixFromColumns(row1, row2)","matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},map:{name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},ones:{name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},partitionSelect:{name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1, compareText)',"arr = [5, 2, 1]","partitionSelect(arr, 0) # returns 1, arr is now: [1, 2, 5]","arr","partitionSelect(arr, 1, 'desc') # returns 2, arr is now: [5, 2, 1]","arr"],seealso:["sort"]},range:{name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"range(1m, 1m, 3m)","a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},resize:{name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},reshape:{name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])","reshape([1, 2, 3, 4], [-1, 2])"],seealso:["size","squeeze","resize"]},rotate:{name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},rotationMatrix:{name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},row:{name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},size:{name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},sort:{name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"], "natural")',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},squeeze:{name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},subset:{name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation `l:u`. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]","f[[1,2], [1,3]] = [9, 10; 11, 12]","f"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},trace:{name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},transpose:{name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},zeros:{name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},fft:{name:"fft",category:"Matrix",syntax:["fft(x)"],description:"Calculate N-dimensional fourier transform",examples:["fft([[1, 0], [1, 0]])"],seealso:["ifft"]},ifft:{name:"ifft",category:"Matrix",syntax:["ifft(x)"],description:"Calculate N-dimensional inverse fourier transform",examples:["ifft([[2, 2], [0, 0]])"],seealso:["fft"]},sylvester:{name:"sylvester",category:"Algebra",syntax:["sylvester(A,B,C)"],description:"Solves the real-valued Sylvester equation AX+XB=C for X",examples:["sylvester([[-1, -2], [1, 1]], [[-2, 1], [-1, 2]], [[-3, 2], [3, 0]])","A = [[-1, -2], [1, 1]]; B = [[2, -1], [1, -2]]; C = [[-3, 2], [3, 0]]","sylvester(A, B, C)"],seealso:["schur","lyap"]},schur:{name:"schur",category:"Algebra",syntax:["schur(A)"],description:"Performs a real Schur decomposition of the real matrix A = UTU'",examples:["schur([[1, 0], [-4, 3]])","A = [[1, 0], [-4, 3]]","schur(A)"],seealso:["lyap","sylvester"]},lyap:{name:"lyap",category:"Algebra",syntax:["lyap(A,Q)"],description:"Solves the Continuous-time Lyapunov equation AP+PA'+Q=0 for P",examples:["lyap([[-2, 0], [1, -4]], [[3, 1], [1, 3]])","A = [[-2, 0], [1, -4]]","Q = [[3, 1], [1, 3]]","lyap(A,Q)"],seealso:["schur","sylvester"]},solveODE:{name:"solveODE",category:"Numeric",syntax:["solveODE(func, tspan, y0)","solveODE(func, tspan, y0, options)"],description:"Numerical Integration of Ordinary Differential Equations.",examples:["f(t,y) = y","tspan = [0, 4]","solveODE(f, tspan, 1)","solveODE(f, tspan, [1, 2])",'solveODE(f, tspan, 1, { method:"RK23", maxStep:0.1 })'],seealso:["derivative","simplifyCore"]},combinations:{name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},combinationsWithRep:{name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},factorial:{name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},gamma:{name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},kldivergence:{name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},lgamma:{name:"lgamma",category:"Probability",syntax:["lgamma(n)"],description:"Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.",examples:["lgamma(4)","lgamma(1/2)","lgamma(i)","lgamma(complex(1.1, 2))"],seealso:["gamma"]},multinomial:{name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},permutations:{name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},pickRandom:{name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},random:{name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},randomInt:{name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},compare:{name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},compareNatural:{name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},compareText:{name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},deepEqual:{name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},equal:{name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},equalText:{name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},larger:{name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},largerEq:{name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},smaller:{name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},smallerEq:{name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},unequal:{name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},setCartesian:{name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},setDifference:{name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},setDistinct:{name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},setIntersect:{name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},setIsSubset:{name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},setMultiplicity:{name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},setPowerset:{name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},setSize:{name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},setSymDifference:{name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},setUnion:{name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},zpk2tf:{name:"zpk2tf",category:"Signal",syntax:["zpk2tf(z, p, k)"],description:"Compute the transfer function of a zero-pole-gain model.",examples:["zpk2tf([1, 2], [-1, -2], 1)","zpk2tf([1, 2], [-1, -2])","zpk2tf([1 - 3i, 2 + 2i], [-1, -2])"],seealso:[]},freqz:{name:"freqz",category:"Signal",syntax:["freqz(b, a)","freqz(b, a, w)"],description:"Calculates the frequency response of a filter given its numerator and denominator coefficients.",examples:["freqz([1, 2], [1, 2, 3])","freqz([1, 2], [1, 2, 3], [0, 1])","freqz([1, 2], [1, 2, 3], 512)"],seealso:[]},erf:{name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},zeta:{name:"zeta",category:"Special",syntax:["zeta(s)"],description:"Compute the Riemann Zeta Function using an infinite series and Riemanns Functional Equation for the entire complex plane",examples:["zeta(0.2)","zeta(-0.5)","zeta(4)"],seealso:[]},cumsum:{name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},mad:{name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},max:{name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dimension)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},mean:{name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dimension)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},median:{name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},min:{name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dimension)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},mode:{name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},prod:{name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},quantileSeq:{name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:"Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber. \n\nIn case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.",examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},std:{name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, dimension)","std(A, normalization)","std(A, dimension, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},sum:{name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)","sum(A, dimension)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},variance:{name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, dimension)","variance(A, normalization)","variance(A, dimension, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},corr:{name:"corr",category:"Statistics",syntax:["corr(A,B)"],description:"Compute the correlation coefficient of a two list with values, For matrices, the matrix correlation coefficient is calculated.",examples:["corr([2, 4, 6, 8],[1, 2, 3, 6])","corr(matrix([[1, 2.2, 3, 4.8, 5], [1, 2, 3, 4, 5]]), matrix([[4, 5.3, 6.6, 7, 8], [1, 2, 3, 4, 5]]))"],seealso:["max","mean","min","median","min","prod","std","sum"]},acos:{name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},acosh:{name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},acot:{name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},acoth:{name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},acsc:{name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},acsch:{name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},asec:{name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},asech:{name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},asin:{name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},asinh:{name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},atan:{name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},atanh:{name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},atan2:{name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},cos:{name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},cosh:{name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},cot:{name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},coth:{name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},csc:{name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},csch:{name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},sec:{name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},sech:{name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},sin:{name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},sinh:{name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},tan:{name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},tanh:{name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},to:{name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},clone:{name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},format:{name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},bin:{name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},oct:{name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},hex:{name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},isNaN:{name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isInteger:{name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isNegative:{name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},isNumeric:{name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},hasNumericValue:{name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},isPositive:{name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isPrime:{name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isZero:{name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},print:{name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $1, $2, $3", [6, 9, 4])'],seealso:["format"]},typeOf:{name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},numeric:{name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "BigNumber")','numeric("4", "Fraction")','numeric(4, "Fraction")','numeric(fraction(2, 5), "number")'],seealso:["number","fraction","bignumber","string","format"]}},help_dependencies=["typed","mathWithTransform","Help"],createHelp=(0,factory.d5)("help",help_dependencies,(_ref=>{var{typed:typed,mathWithTransform:mathWithTransform,Help:Help}=_ref;return typed("help",{any:function any(search){var prop,searchName=search;if("string"!=typeof search)for(prop in mathWithTransform)if((0,object.nr)(mathWithTransform,prop)&&search===mathWithTransform[prop]){searchName=prop;break}var doc=(0,customs.YF)(embeddedDocs,searchName);if(!doc){var searchText="function"==typeof searchName?searchName.name:searchName;throw new Error('No documentation found on "'+searchText+'"')}return new Help(doc)}})})),chain_dependencies=["typed","Chain"],createChain=(0,factory.d5)("chain",chain_dependencies,(_ref=>{var{typed:typed,Chain:Chain}=_ref;return typed("chain",{"":function _(){return new Chain},any:function any(value){return new Chain(value)}})})),det=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/det.js"),inv=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/inv.js"),pinv=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/pinv.js"),eigs=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/eigs.js"),expm=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/expm.js"),sqrtm=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/matrix/sqrtm.js"),sylvester=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/sylvester.js"),schur=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/decomposition/schur.js"),lyap=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/algebra/lyap.js"),divide=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/arithmetic/divide.js"),distance=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/geometry/distance.js"),intersect=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/geometry/intersect.js"),statistics_sum=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/sum.js"),statistics_cumsum=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/cumsum.js"),statistics_mean=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/mean.js"),median=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/median.js"),mad=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/mad.js"),statistics_variance=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/variance.js"),statistics_quantileSeq=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/quantileSeq.js"),statistics_std=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/std.js"),corr=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/statistics/corr.js"),combinations=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/combinations.js"),combinationsWithRep=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/combinationsWithRep.js"),gamma=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/gamma.js"),lgamma=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/lgamma.js"),factorial=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/factorial.js"),kldivergence=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/kldivergence.js"),multinomial=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/multinomial.js"),permutations=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/permutations.js"),pickRandom=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/pickRandom.js"),random=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/random.js"),randomInt=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/probability/randomInt.js"),stirlingS2=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/stirlingS2.js"),bellNumbers=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/bellNumbers.js"),catalan=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/catalan.js"),composition=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/combinatorics/composition.js"),leafCount_dependencies=["parse","typed"],createLeafCount=(0,factory.d5)("leafCount",leafCount_dependencies,(_ref=>{var{parse:parse,typed:typed}=_ref;function countLeaves(node){var count=0;return node.forEach((n=>{count+=countLeaves(n)})),count||1}return typed("leafCount",{Node:function Node(expr){return countLeaves(expr)}})}));function isNumericNode(x){return(0,is.nu)(x)||(0,is.bV)(x)&&x.isUnary()&&(0,is.nu)(x.args[0])}function isConstantExpression(x){return!!(0,is.nu)(x)||(!(!(0,is.VO)(x)&&!(0,is.bV)(x)||!x.args.every(isConstantExpression))||!(!(0,is.Ig)(x)||!isConstantExpression(x.content)))}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r{var{FunctionNode:FunctionNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode}=_ref,T=!0,F=!1,defaultName="defaultF",defaultContext={add:{trivial:T,total:T,commutative:T,associative:T},unaryPlus:{trivial:T,total:T,commutative:T,associative:T},subtract:{trivial:F,total:T,commutative:F,associative:F},multiply:{trivial:T,total:T,commutative:T,associative:T},divide:{trivial:F,total:T,commutative:F,associative:F},paren:{trivial:T,total:T,commutative:T,associative:F},defaultF:{trivial:F,total:T,commutative:F,associative:F}};function hasProperty(nodeOrName,property){var context=arguments.length>2&&void 0!==arguments[2]?arguments[2]:defaultContext,name=defaultName;if("string"==typeof nodeOrName?name=nodeOrName:(0,is.bV)(nodeOrName)?name=nodeOrName.fn.toString():(0,is.VO)(nodeOrName)?name=nodeOrName.name:(0,is.Ig)(nodeOrName)&&(name="paren"),(0,object.nr)(context,name)){var properties=context[name];if((0,object.nr)(properties,property))return properties[property];if((0,object.nr)(defaultContext,name))return defaultContext[name][property]}if((0,object.nr)(context,defaultName)){var _properties=context[defaultName];return(0,object.nr)(_properties,property)?_properties[property]:defaultContext[defaultName][property]}if((0,object.nr)(defaultContext,name)){var _properties2=defaultContext[name];if((0,object.nr)(_properties2,property))return _properties2[property]}return defaultContext[defaultName][property]}function isAssociative(node){return hasProperty(node,"associative",arguments.length>1&&void 0!==arguments[1]?arguments[1]:defaultContext)}function allChildren(node,context){var op,children=[];return isAssociative(node,context)?(op=node.op,function findChildren(node){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:defaultContext)},isAssociative:isAssociative,mergeContext:function mergeContext(primary,secondary){var merged=_objectSpread({},primary);for(var prop in secondary)(0,object.nr)(primary,prop)?merged[prop]=_objectSpread(_objectSpread({},secondary[prop]),primary[prop]):merged[prop]=secondary[prop];return merged},flatten:function flatten(node,context){if(!node.args||0===node.args.length)return node;node.args=allChildren(node,context);for(var i=0;i2&&isAssociative(node,context)){for(var curnode=node.args.pop();node.args.length>0;)curnode=makeNode([node.args.pop(),curnode]);node.args=curnode.args}}},unflattenl:function unflattenl(node,context){if(node.args&&0!==node.args.length){for(var makeNode=createMakeNodeFunction(node),l=node.args.length,i=0;i2&&isAssociative(node,context)){for(var curnode=node.args.shift();node.args.length>0;)curnode=makeNode([curnode,node.args.shift()]);node.args=curnode.args}}},defaultContext:defaultContext,realContext:{divide:{total:F},log:{total:F}},positiveContext:{subtract:{total:F},abs:{trivial:T},log:{total:T}}}})),simplify_dependencies=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","resolve","simplifyConstant","simplifyCore","?fraction","?bignumber","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],createSimplify=(0,factory.d5)("simplify",simplify_dependencies,(_ref=>{var{config:config,typed:typed,parse:parse,add:add,subtract:subtract,multiply:multiply,divide:divide,pow:pow,isZero:isZero,equal:equal,resolve:resolve,simplifyConstant:simplifyConstant,simplifyCore:simplifyCore,fraction:fraction,bignumber:bignumber,mathWithTransform:mathWithTransform,matrix:matrix,AccessorNode:AccessorNode,ArrayNode:ArrayNode,ConstantNode:ConstantNode,FunctionNode:FunctionNode,IndexNode:IndexNode,ObjectNode:ObjectNode,OperatorNode:OperatorNode,ParenthesisNode:ParenthesisNode,SymbolNode:SymbolNode}=_ref,{hasProperty:hasProperty,isCommutative:isCommutative,isAssociative:isAssociative,mergeContext:mergeContext,flatten:flatten,unflattenr:unflattenr,unflattenl:unflattenl,createMakeNodeFunction:createMakeNodeFunction,defaultContext:defaultContext,realContext:realContext,positiveContext:positiveContext}=createUtil({FunctionNode:FunctionNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode});typed.addConversion({from:"Object",to:"Map",convert:utils_map.df});var simplify=typed("simplify",{Node:_simplify,"Node, Map":(expr,scope)=>_simplify(expr,!1,scope),"Node, Map, Object":(expr,scope,options)=>_simplify(expr,!1,scope,options),"Node, Array":_simplify,"Node, Array, Map":_simplify,"Node, Array, Map, Object":_simplify});function removeParens(node){return node.transform((function(node,path,parent){return(0,is.Ig)(node)?removeParens(node.content):node}))}typed.removeConversion({from:"Object",to:"Map",convert:utils_map.df}),simplify.defaultContext=defaultContext,simplify.realContext=realContext,simplify.positiveContext=positiveContext;var SUPPORTED_CONSTANTS={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};function _canonicalizeRule(ruleObject,context){var newRule={};if(ruleObject.s){var lr=ruleObject.s.split("->");if(2!==lr.length)throw SyntaxError("Could not parse rule: "+ruleObject.s);newRule.l=lr[0],newRule.r=lr[1]}else newRule.l=ruleObject.l,newRule.r=ruleObject.r;for(var prop of(newRule.l=removeParens(parse(newRule.l)),newRule.r=removeParens(parse(newRule.r)),["imposeContext","repeat","assuming"]))prop in ruleObject&&(newRule[prop]=ruleObject[prop]);if(ruleObject.evaluate&&(newRule.evaluate=parse(ruleObject.evaluate)),isAssociative(newRule.l,context)){var leftExpandsym,nonCommutative=!isCommutative(newRule.l,context);nonCommutative&&(leftExpandsym=_getExpandPlaceholderSymbol());var makeNode=createMakeNodeFunction(newRule.l),expandsym=_getExpandPlaceholderSymbol();newRule.expanded={},newRule.expanded.l=makeNode([newRule.l,expandsym]),flatten(newRule.expanded.l,context),unflattenr(newRule.expanded.l,context),newRule.expanded.r=makeNode([newRule.r,expandsym]),nonCommutative&&(newRule.expandedNC1={},newRule.expandedNC1.l=makeNode([leftExpandsym,newRule.l]),newRule.expandedNC1.r=makeNode([leftExpandsym,newRule.r]),newRule.expandedNC2={},newRule.expandedNC2.l=makeNode([leftExpandsym,newRule.expanded.l]),newRule.expandedNC2.r=makeNode([leftExpandsym,newRule.expanded.r]))}return newRule}simplify.rules=[simplifyCore,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(cl*v) -> v * (-cl)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(cl*v) -> (-cl) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*cl) -> v * (-cl)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" vd * ( vd * n1 + n2)",r:"vd^2 * n1 + vd * n2"},{s:" vd * (vd^n4 * n1 + n2) -> vd^(1+n4) * n1 + vd * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * ( vd * n1 + n2) -> vd^(n3+1) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * (vd^n4 * n1 + n2) -> vd^(n3+n4) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},simplifyConstant,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"vd*n + vd",r:"vd*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 + n3 * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*vd + vd -> (n+1)*vd",assuming:{multiply:{commutative:!1}}},{s:"vd + n*vd -> (1+n)*vd",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n^n1 * n -> n^(n1+1)",assuming:{divide:{total:!0},multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*cd + cd",r:"(n+1)*cd"},{s:"cd*n + cd -> cd*(n+1)",assuming:{multiply:{commutative:!1}}},{s:"cd + cd*n -> cd*(1+n)",assuming:{multiply:{commutative:!1}}},simplifyConstant,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"ce+ve -> ve+ce",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"vd*cd -> cd*vd",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{l:"n+-(n1)",r:"n-(n1)"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];var _lastsym=0;function _getExpandPlaceholderSymbol(){return new SymbolNode("_p"+_lastsym++)}function _simplify(expr,rules){var scope=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,utils_map.dg)(),options=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},debug=options.consoleDebug;rules=function _buildRules(rules,context){for(var ruleSet=[],i=0;i ").concat(rules[i].r.toString()))),debug){var newstr=res.toString({parenthesis:"all"});newstr!==laststr&&(console.log("Applying",rulestr,"produced",newstr),laststr=newstr)}unflattenl(res,options.context)}str=res.toString({parenthesis:"all"})}return res}function mapRule(nodes,rule,context){var resNodes=nodes;if(nodes)for(var i=0;i=2&&2===rule.args.length){for(var splits=function getSplits(node,context){var right,rightArgs,res=[],makeNode=createMakeNodeFunction(node);if(isCommutative(node,context))for(var i=0;i1&&(left=makeNode(node.args.slice(0,_i))),right=1===(rightArgs=node.args.slice(_i)).length?rightArgs[0]:makeNode(rightArgs),res.push(makeNode([left,right]))}return res}(node,context),splitMatches=[],_i2=0;_i22)throw Error("Unexpected non-binary associative function: "+rule.toString());return[]}for(var childMatches=[],i=0;i2)throw new Error("permuting >2 commutative non-associative rule arguments not yet implemented");var leftMatch=_ruleMatch(rule.args[0],node.args[1],context);if(0===leftMatch.length)return[];var rightMatch=_ruleMatch(rule.args[1],node.args[0],context);if(0===rightMatch.length)return[];childMatches=[leftMatch,rightMatch]}res=function mergeChildMatches(childMatches){if(0===childMatches.length)return childMatches;for(var sets=childMatches.reduce(combineChildMatches),uniqueSets=[],unique={},i=0;i="a"&&rule.name[1]<="z"?rule.name.substring(0,2):rule.name[0]){case"n":case"_p":res[0].placeholders[rule.name]=node;break;case"c":case"cl":if(!(0,is.nu)(node))return[];res[0].placeholders[rule.name]=node;break;case"v":if((0,is.nu)(node))return[];res[0].placeholders[rule.name]=node;break;case"vl":if(!(0,is.FG)(node))return[];res[0].placeholders[rule.name]=node;break;case"cd":if(!isNumericNode(node))return[];res[0].placeholders[rule.name]=node;break;case"vd":if(isNumericNode(node))return[];res[0].placeholders[rule.name]=node;break;case"ce":if(!isConstantExpression(node))return[];res[0].placeholders[rule.name]=node;break;case"ve":if(isConstantExpression(node))return[];res[0].placeholders[rule.name]=node;break;default:throw new Error("Invalid symbol in rule: "+rule.name)}}else{if(!(rule instanceof ConstantNode))return[];if(!equal(rule.value,node.value))return[]}return res}function _exactMatch(p,q){if(p instanceof ConstantNode&&q instanceof ConstantNode){if(!equal(p.value,q.value))return!1}else if(p instanceof SymbolNode&&q instanceof SymbolNode){if(p.name!==q.name)return!1}else{if(!(p instanceof OperatorNode&&q instanceof OperatorNode||p instanceof FunctionNode&&q instanceof FunctionNode))return!1;if(p instanceof OperatorNode){if(p.op!==q.op||p.fn!==q.fn)return!1}else if(p instanceof FunctionNode&&p.name!==q.name)return!1;if(p.args.length!==q.args.length)return!1;for(var i=0;i{var{typed:typed,config:config,mathWithTransform:mathWithTransform,matrix:matrix,fraction:fraction,bignumber:bignumber,AccessorNode:AccessorNode,ArrayNode:ArrayNode,ConstantNode:ConstantNode,FunctionNode:FunctionNode,IndexNode:IndexNode,ObjectNode:ObjectNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode}=_ref,{isCommutative:isCommutative,isAssociative:isAssociative,allChildren:allChildren,createMakeNodeFunction:createMakeNodeFunction}=createUtil({FunctionNode:FunctionNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode}),simplifyConstant=typed("simplifyConstant",{Node:node=>_ensureNode(foldFraction(node,{})),"Node, Object":function NodeObject(expr,options){return _ensureNode(foldFraction(expr,options))}});function _removeFractions(thing){return(0,is.yQ)(thing)?thing.valueOf():thing instanceof Array?thing.map(_removeFractions):(0,is.SW)(thing)?matrix(_removeFractions(thing.valueOf())):thing}function _eval(fnname,args,options){try{return mathWithTransform[fnname].apply(null,args)}catch(ignore){return args=args.map(_removeFractions),_toNumber(mathWithTransform[fnname].apply(null,args),options)}}var _toNode=typed({Fraction:function _fractionToNode(f){var n,vn=f.s*f.n;n=vn<0?new OperatorNode("-","unaryMinus",[new ConstantNode(-vn)]):new ConstantNode(vn);if(1===f.d)return n;return new OperatorNode("/","divide",[n,new ConstantNode(f.d)])},number:function number(n){return n<0?unaryMinusNode(new ConstantNode(-n)):new ConstantNode(n)},BigNumber:function BigNumber(n){return n<0?unaryMinusNode(new ConstantNode(-n)):new ConstantNode(n)},Complex:function Complex(s){throw new Error("Cannot convert Complex number to Node")},string:function string(s){return new ConstantNode(s)},Matrix:function Matrix(m){return new ArrayNode(m.valueOf().map((e=>_toNode(e))))}});function _ensureNode(thing){return(0,is.UG)(thing)?thing:_toNode(thing)}function _exactFraction(n,options){if(options&&!1!==options.exactFractions&&isFinite(n)&&fraction){var f=fraction(n),fractionsLimit=options&&"number"==typeof options.fractionsLimit?options.fractionsLimit:1/0;if(f.valueOf()===n&&f.n{if(!(0,is.UG)(next)){var last=sofar.pop();if((0,is.UG)(last))return[last,next];try{return sofar.push(_eval(fn,[last,next],options)),sofar}catch(ignoreandcontinue){sofar.push(last)}}sofar.push(_ensureNode(sofar.pop()));var newtree=1===sofar.length?sofar[0]:makeNode(sofar);return[makeNode([newtree,_ensureNode(next)])]}),[first]);return 1===reduction.length?reduction[0]:makeNode([reduction[0],_toNode(reduction[1])])}function foldFraction(node,options){switch(node.type){case"SymbolNode":return node;case"ConstantNode":switch(typeof node.value){case"number":return _toNumber(node.value,options);case"string":return node.value;default:if(!isNaN(node.value))return _toNumber(node.value,options)}return node;case"FunctionNode":if(mathWithTransform[node.name]&&mathWithTransform[node.name].rawArgs)return node;if(-1===["add","multiply"].indexOf(node.name)){var args=node.args.map((arg=>foldFraction(arg,options)));if(!args.some(is.UG))try{return _eval(node.name,args,options)}catch(ignoreandcontinue){}if("size"===node.name&&1===args.length&&(0,is.j0)(args[0])){for(var sz=[],section=args[0];(0,is.j0)(section);)sz.push(section.items.length),section=section.items[0];return matrix(sz)}return new FunctionNode(node.name,args.map(_ensureNode))}case"OperatorNode":var _args,res,fn=node.fn.toString(),makeNode=createMakeNodeFunction(node);if((0,is.bV)(node)&&node.isUnary())_args=[foldFraction(node.args[0],options)],res=(0,is.UG)(_args[0])?makeNode(_args):_eval(fn,_args,options);else if(isAssociative(node,options.context))if(_args=(_args=allChildren(node,options.context)).map((arg=>foldFraction(arg,options))),isCommutative(fn,options.context)){for(var consts=[],vars=[],i=0;i<_args.length;i++)(0,is.UG)(_args[i])?vars.push(_args[i]):consts.push(_args[i]);consts.length>1?(res=foldOp(fn,consts,makeNode,options),vars.unshift(res),res=foldOp(fn,vars,makeNode,options)):res=foldOp(fn,_args,makeNode,options)}else res=foldOp(fn,_args,makeNode,options);else _args=node.args.map((arg=>foldFraction(arg,options))),res=foldOp(fn,_args,makeNode,options);return res;case"ParenthesisNode":return foldFraction(node.content,options);case"AccessorNode":return function _foldAccessor(obj,index,options){if(!(0,is.Cl)(index))return new AccessorNode(_ensureNode(obj),_ensureNode(index));if((0,is.j0)(obj)||(0,is.SW)(obj)){for(var remainingDims=Array.from(index.dimensions);remainingDims.length>0;)if((0,is.nu)(remainingDims[0])&&"string"!=typeof remainingDims[0].value){var first=_toNumber(remainingDims.shift().value,options);(0,is.j0)(obj)?obj=obj.items[first-1]:(obj=obj.valueOf()[first-1])instanceof Array&&(obj=matrix(obj))}else{if(!(remainingDims.length>1&&(0,is.nu)(remainingDims[1])&&"string"!=typeof remainingDims[1].value))break;var second=_toNumber(remainingDims[1].value,options),tryItems=[],fromItems=(0,is.j0)(obj)?obj.items:obj.valueOf();for(var item of fromItems)if((0,is.j0)(item))tryItems.push(item.items[second-1]);else{if(!(0,is.SW)(obj))break;tryItems.push(item[second-1])}if(tryItems.length!==fromItems.length)break;obj=(0,is.j0)(obj)?new ArrayNode(tryItems):matrix(tryItems),remainingDims.splice(1,1)}return remainingDims.length===index.dimensions.length?new AccessorNode(_ensureNode(obj),index):remainingDims.length>0?(index=new IndexNode(remainingDims),new AccessorNode(_ensureNode(obj),index)):obj}if((0,is.Lr)(obj)&&1===index.dimensions.length&&(0,is.nu)(index.dimensions[0])){var key=index.dimensions[0].value;return key in obj.properties?obj.properties[key]:new ConstantNode}return new AccessorNode(_ensureNode(obj),index)}(foldFraction(node.object,options),foldFraction(node.index,options),options);case"ArrayNode":var foldItems=node.items.map((item=>foldFraction(item,options)));return foldItems.some(is.UG)?new ArrayNode(foldItems.map(_ensureNode)):matrix(foldItems);case"IndexNode":return new IndexNode(node.dimensions.map((n=>simplifyConstant(n,options))));case"ObjectNode":var foldProps={};for(var prop in node.properties)foldProps[prop]=simplifyConstant(node.properties[prop],options);return new ObjectNode(foldProps);default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(node.type))}}return simplifyConstant})),simplifyCore_dependencies=["typed","parse","equal","isZero","add","subtract","multiply","divide","pow","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],createSimplifyCore=(0,factory.d5)("simplifyCore",simplifyCore_dependencies,(_ref=>{var{typed:typed,parse:parse,equal:equal,isZero:isZero,add:add,subtract:subtract,multiply:multiply,divide:divide,pow:pow,AccessorNode:AccessorNode,ArrayNode:ArrayNode,ConstantNode:ConstantNode,FunctionNode:FunctionNode,IndexNode:IndexNode,ObjectNode:ObjectNode,OperatorNode:OperatorNode,ParenthesisNode:ParenthesisNode,SymbolNode:SymbolNode}=_ref,node0=new ConstantNode(0),node1=new ConstantNode(1),nodeT=new ConstantNode(!0),nodeF=new ConstantNode(!1);function isAlwaysBoolean(node){return(0,is.bV)(node)&&["and","not","or"].includes(node.op)}var{hasProperty:hasProperty,isCommutative:isCommutative}=createUtil({FunctionNode:FunctionNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode});function _simplifyCore(nodeToSimplify){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},context=options?options.context:void 0;if(hasProperty(nodeToSimplify,"trivial",context)){if((0,is.VO)(nodeToSimplify)&&1===nodeToSimplify.args.length)return _simplifyCore(nodeToSimplify.args[0],options);var simpChild=!1,childCount=0;if(nodeToSimplify.forEach((c=>{1===++childCount&&(simpChild=_simplifyCore(c,options))})),1===childCount)return simpChild}var node=nodeToSimplify;if((0,is.VO)(node)){var op=function getOperator(fn){var identifier="OperatorNode:"+fn;for(var group of properties)if(identifier in group)return group[identifier].op;return null}(node.name);if(!op)return new FunctionNode(_simplifyCore(node.fn),node.args.map((n=>_simplifyCore(n,options))));if(node.args.length>2&&hasProperty(node,"associative",context))for(;node.args.length>2;){var last=node.args.pop(),seclast=node.args.pop();node.args.push(new OperatorNode(op,node.name,[last,seclast]))}node=new OperatorNode(op,node.name,node.args)}if((0,is.bV)(node)&&node.isUnary()){var a0=_simplifyCore(node.args[0],options);if("~"===node.op&&(0,is.bV)(a0)&&a0.isUnary()&&"~"===a0.op)return a0.args[0];if("not"===node.op&&(0,is.bV)(a0)&&a0.isUnary()&&"not"===a0.op&&isAlwaysBoolean(a0.args[0]))return a0.args[0];var finish=!0;if("-"===node.op&&(0,is.bV)(a0)&&(a0.isBinary()&&"subtract"===a0.fn&&(node=new OperatorNode("-","subtract",[a0.args[1],a0.args[0]]),finish=!1),a0.isUnary()&&"-"===a0.op))return a0.args[0];if(finish)return new OperatorNode(node.op,node.fn,[a0])}if((0,is.bV)(node)&&node.isBinary()){var _a=_simplifyCore(node.args[0],options),a1=_simplifyCore(node.args[1],options);if("+"===node.op){if((0,is.nu)(_a)&&isZero(_a.value))return a1;if((0,is.nu)(a1)&&isZero(a1.value))return _a;(0,is.bV)(a1)&&a1.isUnary()&&"-"===a1.op&&(a1=a1.args[0],node=new OperatorNode("-","subtract",[_a,a1]))}if("-"===node.op)return(0,is.bV)(a1)&&a1.isUnary()&&"-"===a1.op?_simplifyCore(new OperatorNode("+","add",[_a,a1.args[0]]),options):(0,is.nu)(_a)&&isZero(_a.value)?_simplifyCore(new OperatorNode("-","unaryMinus",[a1])):(0,is.nu)(a1)&&isZero(a1.value)?_a:new OperatorNode(node.op,node.fn,[_a,a1]);if("*"===node.op){if((0,is.nu)(_a)){if(isZero(_a.value))return node0;if(equal(_a.value,1))return a1}if((0,is.nu)(a1)){if(isZero(a1.value))return node0;if(equal(a1.value,1))return _a;if(isCommutative(node,context))return new OperatorNode(node.op,node.fn,[a1,_a],node.implicit)}return new OperatorNode(node.op,node.fn,[_a,a1],node.implicit)}if("/"===node.op)return(0,is.nu)(_a)&&isZero(_a.value)?node0:(0,is.nu)(a1)&&equal(a1.value,1)?_a:new OperatorNode(node.op,node.fn,[_a,a1]);if("^"===node.op&&(0,is.nu)(a1)){if(isZero(a1.value))return node1;if(equal(a1.value,1))return _a}if("and"===node.op){if((0,is.nu)(_a)){if(!_a.value)return nodeF;if(isAlwaysBoolean(a1))return a1;if((0,is.nu)(a1))return a1.value?nodeT:nodeF}if((0,is.nu)(a1)){if(!a1.value)return nodeF;if(isAlwaysBoolean(_a))return _a}}if("or"===node.op){if((0,is.nu)(_a)){if(_a.value)return nodeT;if(isAlwaysBoolean(a1))return a1}if((0,is.nu)(a1)){if(a1.value)return nodeT;if(isAlwaysBoolean(_a))return _a}}return new OperatorNode(node.op,node.fn,[_a,a1])}if((0,is.bV)(node))return new OperatorNode(node.op,node.fn,node.args.map((a=>_simplifyCore(a,options))));if((0,is.j0)(node))return new ArrayNode(node.items.map((n=>_simplifyCore(n,options))));if((0,is.Yz)(node))return new AccessorNode(_simplifyCore(node.object,options),_simplifyCore(node.index,options));if((0,is.Cl)(node))return new IndexNode(node.dimensions.map((n=>_simplifyCore(n,options))));if((0,is.Lr)(node)){var newProps={};for(var prop in node.properties)newProps[prop]=_simplifyCore(node.properties[prop],options);return new ObjectNode(newProps)}return node}return typed("simplifyCore",{Node:_simplifyCore,"Node,Object":_simplifyCore})})),resolve_dependencies=["typed","parse","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode"],createResolve=(0,factory.d5)("resolve",resolve_dependencies,(_ref=>{var{typed:typed,parse:parse,ConstantNode:ConstantNode,FunctionNode:FunctionNode,OperatorNode:OperatorNode,ParenthesisNode:ParenthesisNode}=_ref;function _resolve(node,scope){var within=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(!scope)return node;if((0,is.FG)(node)){if(within.has(node.name)){var variables=Array.from(within).join(", ");throw new ReferenceError("recursive loop of variable definitions among {".concat(variables,"}"))}var value=scope.get(node.name);if((0,is.UG)(value)){var nextWithin=new Set(within);return nextWithin.add(node.name),_resolve(value,scope,nextWithin)}return"number"==typeof value?parse(String(value)):void 0!==value?new ConstantNode(value):node}if((0,is.bV)(node)){var args=node.args.map((function(arg){return _resolve(arg,scope,within)}));return new OperatorNode(node.op,node.fn,args,node.implicit)}if((0,is.Ig)(node))return new ParenthesisNode(_resolve(node.content,scope,within));if((0,is.VO)(node)){var _args=node.args.map((function(arg){return _resolve(arg,scope,within)}));return new FunctionNode(node.name,_args)}return node.map((child=>_resolve(child,scope,within)))}return typed("resolve",{Node:_resolve,"Node, Map | null | undefined":_resolve,"Node, Object":(n,scope)=>_resolve(n,(0,utils_map.df)(scope)),"Array | Matrix":typed.referToSelf((self=>A=>A.map((n=>self(n))))),"Array | Matrix, null | undefined":typed.referToSelf((self=>A=>A.map((n=>self(n))))),"Array, Object":typed.referTo("Array,Map",(selfAM=>(A,scope)=>selfAM(A,(0,utils_map.df)(scope)))),"Matrix, Object":typed.referTo("Matrix,Map",(selfMM=>(A,scope)=>selfMM(A,(0,utils_map.df)(scope)))),"Array | Matrix, Map":typed.referToSelf((self=>(A,scope)=>A.map((n=>self(n,scope)))))})})),symbolicEqual_dependencies=["parse","simplify","typed","OperatorNode"],createSymbolicEqual=(0,factory.d5)("symbolicEqual",symbolicEqual_dependencies,(_ref=>{var{parse:parse,simplify:simplify,typed:typed,OperatorNode:OperatorNode}=_ref;function _symbolicEqual(e1,e2){var options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},diff=new OperatorNode("-","subtract",[e1,e2]),simplified=simplify(diff,{},options);return(0,is.nu)(simplified)&&!simplified.value}return typed("symbolicEqual",{"Node, Node":_symbolicEqual,"Node, Node, Object":_symbolicEqual})})),derivative_dependencies=["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],createDerivative=(0,factory.d5)("derivative",derivative_dependencies,(_ref=>{var{typed:typed,config:config,parse:parse,simplify:simplify,equal:equal,isZero:isZero,numeric:numeric,ConstantNode:ConstantNode,FunctionNode:FunctionNode,OperatorNode:OperatorNode,ParenthesisNode:ParenthesisNode,SymbolNode:SymbolNode}=_ref;function plainDerivative(expr,variable){var options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{simplify:!0},constNodes={};constTag(constNodes,expr,variable.name);var res=_derivative(expr,constNodes);return options.simplify?simplify(res):res}typed.addConversion({from:"identifier",to:"SymbolNode",convert:parse});var derivative=typed("derivative",{"Node, SymbolNode":plainDerivative,"Node, SymbolNode, Object":plainDerivative});typed.removeConversion({from:"identifier",to:"SymbolNode",convert:parse}),derivative._simplify=!0,derivative.toTex=function(deriv){return _derivTex.apply(null,deriv.args)};var _derivTex=typed("_derivTex",{"Node, SymbolNode":function NodeSymbolNode(expr,x){return(0,is.nu)(expr)&&"string"===(0,is.kM)(expr.value)?_derivTex(parse(expr.value).toString(),x.toString(),1):_derivTex(expr.toTex(),x.toString(),1)},"Node, ConstantNode":function NodeConstantNode(expr,x){if("string"===(0,is.kM)(x.value))return _derivTex(expr,parse(x.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function NodeSymbolNodeConstantNode(expr,x,order){return _derivTex(expr.toString(),x.name,order.value)},"string, string, number":function stringStringNumber(expr,x,order){return(1===order?"{d\\over d"+x+"}":"{d^{"+order+"}\\over d"+x+"^{"+order+"}}")+"\\left[".concat(expr,"\\right]")}}),constTag=typed("constTag",{"Object, ConstantNode, string":function ObjectConstantNodeString(constNodes,node){return constNodes[node]=!0,!0},"Object, SymbolNode, string":function ObjectSymbolNodeString(constNodes,node,varName){return node.name!==varName&&(constNodes[node]=!0,!0)},"Object, ParenthesisNode, string":function ObjectParenthesisNodeString(constNodes,node,varName){return constTag(constNodes,node.content,varName)},"Object, FunctionAssignmentNode, string":function ObjectFunctionAssignmentNodeString(constNodes,node,varName){return-1===node.params.indexOf(varName)?(constNodes[node]=!0,!0):constTag(constNodes,node.expr,varName)},"Object, FunctionNode | OperatorNode, string":function ObjectFunctionNodeOperatorNodeString(constNodes,node,varName){if(node.args.length>0){for(var isConst=constTag(constNodes,node.args[0],varName),i=1;i0){var nonConstantTerms=node.args.filter((function(arg){return void 0===constNodes[arg]})),nonConstantNode=1===nonConstantTerms.length?nonConstantTerms[0]:new OperatorNode("*","multiply",nonConstantTerms),newArgs=constantTerms.concat(_derivative(nonConstantNode,constNodes));return new OperatorNode("*","multiply",newArgs)}return new OperatorNode("+","add",node.args.map((function(argOuter){return new OperatorNode("*","multiply",node.args.map((function(argInner){return argInner===argOuter?_derivative(argInner,constNodes):argInner.clone()})))})))}if("/"===node.op&&node.isBinary()){var arg0=node.args[0],arg1=node.args[1];return void 0!==constNodes[arg1]?new OperatorNode("/","divide",[_derivative(arg0,constNodes),arg1]):void 0!==constNodes[arg0]?new OperatorNode("*","multiply",[new OperatorNode("-","unaryMinus",[arg0]),new OperatorNode("/","divide",[_derivative(arg1,constNodes),new OperatorNode("^","pow",[arg1.clone(),createConstantNode(2)])])]):new OperatorNode("/","divide",[new OperatorNode("-","subtract",[new OperatorNode("*","multiply",[_derivative(arg0,constNodes),arg1.clone()]),new OperatorNode("*","multiply",[arg0.clone(),_derivative(arg1,constNodes)])]),new OperatorNode("^","pow",[arg1.clone(),createConstantNode(2)])])}if("^"===node.op&&node.isBinary()){var _arg=node.args[0],_arg2=node.args[1];if(void 0!==constNodes[_arg])return(0,is.nu)(_arg)&&(isZero(_arg.value)||equal(_arg.value,1))?createConstantNode(0):new OperatorNode("*","multiply",[node,new OperatorNode("*","multiply",[new FunctionNode("log",[_arg.clone()]),_derivative(_arg2.clone(),constNodes)])]);if(void 0!==constNodes[_arg2]){if((0,is.nu)(_arg2)){if(isZero(_arg2.value))return createConstantNode(0);if(equal(_arg2.value,1))return _derivative(_arg,constNodes)}var powMinusOne=new OperatorNode("^","pow",[_arg.clone(),new OperatorNode("-","subtract",[_arg2,createConstantNode(1)])]);return new OperatorNode("*","multiply",[_arg2.clone(),new OperatorNode("*","multiply",[_derivative(_arg,constNodes),powMinusOne])])}return new OperatorNode("*","multiply",[new OperatorNode("^","pow",[_arg.clone(),_arg2.clone()]),new OperatorNode("+","add",[new OperatorNode("*","multiply",[_derivative(_arg,constNodes),new OperatorNode("/","divide",[_arg2.clone(),_arg.clone()])]),new OperatorNode("*","multiply",[_derivative(_arg2,constNodes),new FunctionNode("log",[_arg.clone()])])])])}throw new Error('Cannot process operator "'+node.op+'" in derivative: the operator is not supported, undefined, or the number of arguments passed to it are not supported')}});function createConstantNode(value,valueType){return new ConstantNode(numeric(value,valueType||config.number))}return derivative})),utils_number=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/number.js"),rationalize_dependencies=["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplifyConstant","simplifyCore","simplify","?bignumber","?fraction","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode","ParenthesisNode"],createRationalize=(0,factory.d5)("rationalize",rationalize_dependencies,(_ref=>{var{config:config,typed:typed,equal:equal,isZero:isZero,add:add,subtract:subtract,multiply:multiply,divide:divide,pow:pow,parse:parse,simplifyConstant:simplifyConstant,simplifyCore:simplifyCore,simplify:simplify,fraction:fraction,bignumber:bignumber,mathWithTransform:mathWithTransform,matrix:matrix,AccessorNode:AccessorNode,ArrayNode:ArrayNode,ConstantNode:ConstantNode,FunctionNode:FunctionNode,IndexNode:IndexNode,ObjectNode:ObjectNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode,ParenthesisNode:ParenthesisNode}=_ref;function _rationalize(expr){var scope=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},detailed=arguments.length>2&&void 0!==arguments[2]&&arguments[2],setRules=function rulesRationalize(){var oldRules=[simplifyCore,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},simplifyConstant,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}],rulesFirst=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],rulesDistrDiv=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],rulesSucDiv=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],setRules={};return setRules.firstRules=oldRules.concat(rulesFirst,rulesSucDiv),setRules.distrDivRules=rulesDistrDiv,setRules.sucDivRules=rulesSucDiv,setRules.firstRulesAgain=oldRules.concat(rulesFirst),setRules.finalRules=[simplifyCore,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},simplifyConstant,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],setRules}(),polyRet=function polynomial(expr,scope,extended,rules){var variables=[],node=simplify(expr,rules,scope,{exactFractions:!1}),oper="+-*"+((extended=!!extended)?"/":"");recPoly(node);var retFunc={};return retFunc.expression=node,retFunc.variables=variables,retFunc;function recPoly(node){var tp=node.type;if("FunctionNode"===tp)throw new Error("There is an unsolved function call");if("OperatorNode"===tp)if("^"===node.op){if("ConstantNode"!==node.args[1].type||!(0,utils_number.U)(parseFloat(node.args[1].value)))throw new Error("There is a non-integer exponent");recPoly(node.args[0])}else{if(-1===oper.indexOf(node.op))throw new Error("Operator "+node.op+" invalid in polynomial expression");for(var i=0;i=1){var sBefore,rules;expr=expandPower(expr);var s,eDistrDiv=!0,redoInic=!1;for(expr=simplify(expr,setRules.firstRules,{},noExactFractions);rules=eDistrDiv?setRules.distrDivRules:setRules.sucDivRules,eDistrDiv=!eDistrDiv,(s=(expr=simplify(expr,rules,{},withExactFractions)).toString())!==sBefore;)redoInic=!0,sBefore=s;redoInic&&(expr=simplify(expr,setRules.firstRulesAgain,{},noExactFractions)),expr=simplify(expr,setRules.finalRules,{},noExactFractions)}var coefficients=[],retRationalize={};return"OperatorNode"===expr.type&&expr.isBinary()&&"/"===expr.op?(1===nVars&&(expr.args[0]=polyToCanonical(expr.args[0],coefficients),expr.args[1]=polyToCanonical(expr.args[1])),detailed&&(retRationalize.numerator=expr.args[0],retRationalize.denominator=expr.args[1])):(1===nVars&&(expr=polyToCanonical(expr,coefficients)),detailed&&(retRationalize.numerator=expr,retRationalize.denominator=null)),detailed?(retRationalize.coefficients=coefficients,retRationalize.variables=polyRet.variables,retRationalize.expression=expr,retRationalize):expr}return typed("rationalize",{Node:_rationalize,"Node, boolean":(expr,detailed)=>_rationalize(expr,{},detailed),"Node, Object":_rationalize,"Node, Object, boolean":_rationalize});function expandPower(node,parent,indParent){var tp=node.type,internal=arguments.length>1;if("OperatorNode"===tp&&node.isBinary()){var val,does=!1;if("^"===node.op&&("ParenthesisNode"!==node.args[0].type&&"OperatorNode"!==node.args[0].type||"ConstantNode"!==node.args[1].type||(does=(val=parseFloat(node.args[1].value))>=2&&(0,utils_number.U)(val))),does){if(val>2){var nEsqTopo=node.args[0],nDirTopo=new OperatorNode("^","pow",[node.args[0].cloneDeep(),new ConstantNode(val-1)]);node=new OperatorNode("*","multiply",[nEsqTopo,nDirTopo])}else node=new OperatorNode("*","multiply",[node.args[0],node.args[0].cloneDeep()]);internal&&("content"===indParent?parent.content=node:parent.args[indParent]=node)}}if("ParenthesisNode"===tp)expandPower(node.content,node,"content");else if("ConstantNode"!==tp&&"SymbolNode"!==tp)for(var i=0;imaxExpo&&(coefficients[valor]=0),coefficients[valor]+=o.cte*("+"===o.oper?1:-1),void(maxExpo=Math.max(valor,maxExpo))}o.cte=valor,""===o.fire&&(coefficients[0]+=o.cte*("+"===o.oper?1:-1))}}(node,null,o);for(var no,first=!0,i=maxExpo=coefficients.length-1;i>=0;i--)if(0!==coefficients[i]){var n1=new ConstantNode(first?coefficients[i]:Math.abs(coefficients[i])),op=coefficients[i]<0?"-":"+";if(i>0){var n2=new SymbolNode(varname);if(i>1){var n3=new ConstantNode(i);n2=new OperatorNode("^","pow",[n2,n3])}n1=-1===coefficients[i]&&first?new OperatorNode("-","unaryMinus",[n2]):1===Math.abs(coefficients[i])?n2:new OperatorNode("*","multiply",[n1,n2])}no=first?n1:"+"===op?new OperatorNode("+","add",[no,n1]):new OperatorNode("-","subtract",[no,n1]),first=!1}return first?new ConstantNode(0):no}})),zpk2tf=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/signal/zpk2tf.js"),freqz=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/function/signal/freqz.js"),reviver_dependencies=["classes"],createReviver=(0,factory.d5)("reviver",reviver_dependencies,(_ref=>{var{classes:classes}=_ref;return function reviver(key,value){var constructor=classes[value&&value.mathjs];return constructor&&"function"==typeof constructor.fromJSON?constructor.fromJSON(value):value}})),replacer=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/json/replacer.js"),constants=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/constants.js"),physicalConstants=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/type/unit/physicalConstants.js"),apply_transform_dependencies=["typed","isInteger"],createApplyTransform=(0,factory.d5)("apply",apply_transform_dependencies,(_ref=>{var{typed:typed,isInteger:isInteger}=_ref,apply=(0,matrix_apply.j)({typed:typed,isInteger:isInteger});return typed("apply",{"...any":function any(args){var dim=args[1];(0,is.hj)(dim)?args[1]=dim-1:(0,is.l9)(dim)&&(args[1]=dim.minus(1));try{return apply.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),column_transform_dependencies=["typed","Index","matrix","range"],createColumnTransform=(0,factory.d5)("column",column_transform_dependencies,(_ref=>{var{typed:typed,Index:Index,matrix:matrix,range:range}=_ref,column=(0,matrix_column.w)({typed:typed,Index:Index,matrix:matrix,range:range});return typed("column",{"...any":function any(args){var lastIndex=args.length-1,last=args[lastIndex];(0,is.hj)(last)&&(args[lastIndex]=last-1);try{return column.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),applyCallback=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/applyCallback.js");function compileInlineExpression(expression,math,scope){var symbol=expression.filter((function(node){return(0,is.FG)(node)&&!(node.name in math)&&!scope.has(node.name)}))[0];if(!symbol)throw new Error('No undefined variable found in inline expression "'+expression+'"');var name=symbol.name,argsScope=new Map,subScope=new utils_map.A3(scope,argsScope,new Set([name])),eq=expression.compile();return function inlineExpression(x){return argsScope.set(name,x),eq.evaluate(subScope)}}var filter_transform_dependencies=["typed"],createFilterTransform=(0,factory.d5)("filter",filter_transform_dependencies,(_ref=>{var{typed:typed}=_ref;function filterTransform(args,math,scope){var x,callback;return args[0]&&(x=args[0].compile().evaluate(scope)),args[1]&&(callback=(0,is.FG)(args[1])||(0,is.l7)(args[1])?args[1].compile().evaluate(scope):compileInlineExpression(args[1],math,scope)),filter(x,callback)}filterTransform.rawArgs=!0;var filter=typed("filter",{"Array, function":_filter,"Matrix, function":function MatrixFunction(x,test){return x.create(_filter(x.toArray(),test))},"Array, RegExp":utils_array.U_,"Matrix, RegExp":function MatrixRegExp(x,test){return x.create((0,utils_array.U_)(x.toArray(),test))}});return filterTransform}),{isTransformFunction:!0});function _filter(x,callback){return(0,utils_array.hX)(x,(function(value,index,array){return(0,applyCallback.i)(callback,value,[index+1],array,"filter")}))}var forEach_transform_dependencies=["typed"],createForEachTransform=(0,factory.d5)("forEach",forEach_transform_dependencies,(_ref=>{var{typed:typed}=_ref;function forEachTransform(args,math,scope){var x,callback;return args[0]&&(x=args[0].compile().evaluate(scope)),args[1]&&(callback=(0,is.FG)(args[1])||(0,is.l7)(args[1])?args[1].compile().evaluate(scope):compileInlineExpression(args[1],math,scope)),_forEach(x,callback)}forEachTransform.rawArgs=!0;var _forEach=typed("forEach",{"Array | Matrix, function":function ArrayMatrixFunction(array,callback){!function recurse(value,index){if(!Array.isArray(value))return(0,applyCallback.i)(callback,value,index,array,"forEach");(0,utils_array.Ed)(value,(function(child,i){recurse(child,index.concat(i+1))}))}(array.valueOf(),[])}});return forEachTransform}),{isTransformFunction:!0}),index_transform_dependencies=["Index","getMatrixDataType"],createIndexTransform=(0,factory.d5)("index",index_transform_dependencies,(_ref=>{var{Index:Index,getMatrixDataType:getMatrixDataType}=_ref;return function indexTransform(){for(var args=[],i=0,ii=arguments.length;i0?0:2;else if(arg&&!0===arg.isSet)arg=arg.map((function(v){return v-1}));else if((0,is.kJ)(arg)||(0,is.SW)(arg))"boolean"!==getMatrixDataType(arg)&&(arg=arg.map((function(v){return v-1})));else if((0,is.hj)(arg))arg--;else if((0,is.l9)(arg))arg=arg.toNumber()-1;else if("string"!=typeof arg)throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");args[i]=arg}var res=new Index;return Index.apply(res,args),res}}),{isTransformFunction:!0}),map_transform_dependencies=["typed"],createMapTransform=(0,factory.d5)("map",map_transform_dependencies,(_ref=>{var{typed:typed}=_ref;function mapTransform(args,math,scope){var x,callback;return args[0]&&(x=args[0].compile().evaluate(scope)),args[1]&&(callback=(0,is.FG)(args[1])||(0,is.l7)(args[1])?args[1].compile().evaluate(scope):compileInlineExpression(args[1],math,scope)),map(x,callback)}mapTransform.rawArgs=!0;var map=typed("map",{"Array, function":function ArrayFunction(x,callback){return _map(x,callback,x)},"Matrix, function":function MatrixFunction(x,callback){return x.create(_map(x.valueOf(),callback,x))}});return mapTransform}),{isTransformFunction:!0});function _map(array,callback,orig){return function recurse(value,index){return Array.isArray(value)?(0,utils_array.UI)(value,(function(child,i){return recurse(child,index.concat(i+1))})):(0,applyCallback.i)(callback,value,index,orig,"map")}(array,[])}function lastDimToZeroBase(args){if(2===args.length&&(0,is.uZ)(args[0])){var dim=(args=args.slice())[1];(0,is.hj)(dim)?args[1]=dim-1:(0,is.l9)(dim)&&(args[1]=dim.minus(1))}return args}var max_transform_dependencies=["typed","config","numeric","larger"],createMaxTransform=(0,factory.d5)("max",max_transform_dependencies,(_ref=>{var{typed:typed,config:config,numeric:numeric,larger:larger}=_ref,max=(0,statistics_max.J)({typed:typed,config:config,numeric:numeric,larger:larger});return typed("max",{"...any":function any(args){args=lastDimToZeroBase(args);try{return max.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),mean_transform_dependencies=["typed","add","divide"],createMeanTransform=(0,factory.d5)("mean",mean_transform_dependencies,(_ref=>{var{typed:typed,add:add,divide:divide}=_ref,mean=(0,statistics_mean.Q)({typed:typed,add:add,divide:divide});return typed("mean",{"...any":function any(args){args=lastDimToZeroBase(args);try{return mean.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),min_transform_dependencies=["typed","config","numeric","smaller"],createMinTransform=(0,factory.d5)("min",min_transform_dependencies,(_ref=>{var{typed:typed,config:config,numeric:numeric,smaller:smaller}=_ref,min=(0,statistics_min.D)({typed:typed,config:config,numeric:numeric,smaller:smaller});return typed("min",{"...any":function any(args){args=lastDimToZeroBase(args);try{return min.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),range_transform_dependencies=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq","add","isPositive"],createRangeTransform=(0,factory.d5)("range",range_transform_dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,bignumber:bignumber,smaller:smaller,smallerEq:smallerEq,larger:larger,largerEq:largerEq,add:add,isPositive:isPositive}=_ref,range=(0,matrix_range.M)({typed:typed,config:config,matrix:matrix,bignumber:bignumber,smaller:smaller,smallerEq:smallerEq,larger:larger,largerEq:largerEq,add:add,isPositive:isPositive});return typed("range",{"...any":function any(args){return"boolean"!=typeof args[args.length-1]&&args.push(!0),range.apply(null,args)}})}),{isTransformFunction:!0}),row_transform_dependencies=["typed","Index","matrix","range"],createRowTransform=(0,factory.d5)("row",row_transform_dependencies,(_ref=>{var{typed:typed,Index:Index,matrix:matrix,range:range}=_ref,row=(0,matrix_row.v)({typed:typed,Index:Index,matrix:matrix,range:range});return typed("row",{"...any":function any(args){var lastIndex=args.length-1,last=args[lastIndex];(0,is.hj)(last)&&(args[lastIndex]=last-1);try{return row.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),subset_transform_dependencies=["typed","matrix","zeros","add"],createSubsetTransform=(0,factory.d5)("subset",subset_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,zeros:zeros,add:add}=_ref,subset=(0,matrix_subset.q)({typed:typed,matrix:matrix,zeros:zeros,add:add});return typed("subset",{"...any":function any(args){try{return subset.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),concat_transform_dependencies=["typed","matrix","isInteger"],createConcatTransform=(0,factory.d5)("concat",concat_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,isInteger:isInteger}=_ref,concat=(0,matrix_concat.k)({typed:typed,matrix:matrix,isInteger:isInteger});return typed("concat",{"...any":function any(args){var lastIndex=args.length-1,last=args[lastIndex];(0,is.hj)(last)?args[lastIndex]=last-1:(0,is.l9)(last)&&(args[lastIndex]=last.minus(1));try{return concat.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),diff_transform_dependencies=["typed","matrix","subtract","number","bignumber"],createDiffTransform=(0,factory.d5)("diff",diff_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,subtract:subtract,number:number,bignumber:bignumber}=_ref,diff=(0,matrix_diff.J)({typed:typed,matrix:matrix,subtract:subtract,number:number,bignumber:bignumber});return typed("diff",{"...any":function any(args){args=lastDimToZeroBase(args);try{return diff.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),std_transform_dependencies=["typed","map","sqrt","variance"],createStdTransform=(0,factory.d5)("std",std_transform_dependencies,(_ref=>{var{typed:typed,map:map,sqrt:sqrt,variance:variance}=_ref,std=(0,statistics_std.X)({typed:typed,map:map,sqrt:sqrt,variance:variance});return typed("std",{"...any":function any(args){args=lastDimToZeroBase(args);try{return std.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),sum_transform_dependencies=["typed","config","add","numeric"],createSumTransform=(0,factory.d5)("sum",sum_transform_dependencies,(_ref=>{var{typed:typed,config:config,add:add,numeric:numeric}=_ref,sum=(0,statistics_sum.O)({typed:typed,config:config,add:add,numeric:numeric});return typed("sum",{"...any":function any(args){args=lastDimToZeroBase(args);try{return sum.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),quantileSeq_transform_dependencies=["typed","bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],createQuantileSeqTransform=(0,factory.d5)("quantileSeq",quantileSeq_transform_dependencies,(_ref=>{var{typed:typed,bignumber:bignumber,add:add,subtract:subtract,divide:divide,multiply:multiply,partitionSelect:partitionSelect,compare:compare,isInteger:isInteger,smaller:smaller,smallerEq:smallerEq,larger:larger}=_ref,quantileSeq=(0,statistics_quantileSeq.y)({typed:typed,bignumber:bignumber,add:add,subtract:subtract,divide:divide,multiply:multiply,partitionSelect:partitionSelect,compare:compare,isInteger:isInteger,smaller:smaller,smallerEq:smallerEq,larger:larger});return typed("quantileSeq",{"Array | Matrix, number | BigNumber":quantileSeq,"Array | Matrix, number | BigNumber, number":(arr,prob,dim)=>quantileSeq(arr,prob,dimToZeroBase(dim)),"Array | Matrix, number | BigNumber, boolean":quantileSeq,"Array | Matrix, number | BigNumber, boolean, number":(arr,prob,sorted,dim)=>quantileSeq(arr,prob,sorted,dimToZeroBase(dim)),"Array | Matrix, Array | Matrix":quantileSeq,"Array | Matrix, Array | Matrix, number":(data,prob,dim)=>quantileSeq(data,prob,dimToZeroBase(dim)),"Array | Matrix, Array | Matrix, boolean":quantileSeq,"Array | Matrix, Array | Matrix, boolean, number":(data,prob,sorted,dim)=>quantileSeq(data,prob,sorted,dimToZeroBase(dim))});function dimToZeroBase(dim){return lastDimToZeroBase([[],dim])[1]}}),{isTransformFunction:!0}),cumsum_transform_dependencies=["typed","add","unaryPlus"],createCumSumTransform=(0,factory.d5)("cumsum",cumsum_transform_dependencies,(_ref=>{var{typed:typed,add:add,unaryPlus:unaryPlus}=_ref,cumsum=(0,statistics_cumsum.o)({typed:typed,add:add,unaryPlus:unaryPlus});return typed("cumsum",{"...any":function any(args){if(2===args.length&&(0,is.uZ)(args[0])){var dim=args[1];(0,is.hj)(dim)?args[1]=dim-1:(0,is.l9)(dim)&&(args[1]=dim.minus(1))}try{return cumsum.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),variance_transform_dependencies=["typed","add","subtract","multiply","divide","apply","isNaN"],createVarianceTransform=(0,factory.d5)("variance",variance_transform_dependencies,(_ref=>{var{typed:typed,add:add,subtract:subtract,multiply:multiply,divide:divide,apply:apply,isNaN:isNaN}=_ref,variance=(0,statistics_variance.F)({typed:typed,add:add,subtract:subtract,multiply:multiply,divide:divide,apply:apply,isNaN:isNaN});return typed("variance",{"...any":function any(args){args=lastDimToZeroBase(args);try{return variance.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),utils_print=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/utils/print.js"),print_transform_dependencies=["typed","matrix","zeros","add"],createPrintTransform=(0,factory.d5)("print",print_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,zeros:zeros,add:add}=_ref,print=(0,string_print.P)({typed:typed,matrix:matrix,zeros:zeros,add:add});return typed("print",{"string, Object | Array":function stringObjectArray(template,values){return print(_convertTemplateToZeroBasedIndex(template),values)},"string, Object | Array, number | Object":function stringObjectArrayNumberObject(template,values,options){return print(_convertTemplateToZeroBasedIndex(template),values,options)}});function _convertTemplateToZeroBasedIndex(template){return template.replace(utils_print.k,(x=>"$"+x.slice(1).split(".").map((function(part){return!isNaN(part)&&part.length>0?parseInt(part)-1:part})).join(".")))}}),{isTransformFunction:!0}),and_transform_dependencies=["typed","matrix","zeros","add","equalScalar","not","concat"],createAndTransform=(0,factory.d5)("and",and_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,not:not,concat:concat}=_ref,and=(0,logical_and.I)({typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,not:not,concat:concat});function andTransform(args,math,scope){var condition1=args[0].compile().evaluate(scope);if(!(0,is.uZ)(condition1)&&!and(condition1,!0))return!1;var condition2=args[1].compile().evaluate(scope);return and(condition1,condition2)}return andTransform.rawArgs=!0,andTransform}),{isTransformFunction:!0}),or_transform_dependencies=["typed","matrix","equalScalar","DenseMatrix","concat"],createOrTransform=(0,factory.d5)("or",or_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,or=(0,logical_or.Z)({typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat});function orTransform(args,math,scope){var condition1=args[0].compile().evaluate(scope);if(!(0,is.uZ)(condition1)&&or(condition1,!1))return!0;var condition2=args[1].compile().evaluate(scope);return or(condition1,condition2)}return orTransform.rawArgs=!0,orTransform}),{isTransformFunction:!0}),bitAnd_transform_dependencies=["typed","matrix","zeros","add","equalScalar","not","concat"],createBitAndTransform=(0,factory.d5)("bitAnd",bitAnd_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,not:not,concat:concat}=_ref,bitAnd=(0,bitwise_bitAnd.i)({typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,not:not,concat:concat});function bitAndTransform(args,math,scope){var condition1=args[0].compile().evaluate(scope);if(!(0,is.uZ)(condition1)){if(isNaN(condition1))return NaN;if(0===condition1||!1===condition1)return 0}var condition2=args[1].compile().evaluate(scope);return bitAnd(condition1,condition2)}return bitAndTransform.rawArgs=!0,bitAndTransform}),{isTransformFunction:!0}),bitOr_transform_dependencies=["typed","matrix","equalScalar","DenseMatrix","concat"],createBitOrTransform=(0,factory.d5)("bitOr",bitOr_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,bitOr=(0,bitwise_bitOr.j)({typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat});function bitOrTransform(args,math,scope){var condition1=args[0].compile().evaluate(scope);if(!(0,is.uZ)(condition1)){if(isNaN(condition1))return NaN;if(-1===condition1)return-1;if(!0===condition1)return 1}var condition2=args[1].compile().evaluate(scope);return bitOr(condition1,condition2)}return bitOrTransform.rawArgs=!0,bitOrTransform}),{isTransformFunction:!0}),allFactoriesAny_all=factoriesAny_namespaceObject}}]); \ No newline at end of file diff --git a/storybook-static/4581.0024a2c9.iframe.bundle.js b/storybook-static/4581.0024a2c9.iframe.bundle.js new file mode 100644 index 000000000..3dece6017 --- /dev/null +++ b/storybook-static/4581.0024a2c9.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 4581.0024a2c9.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[4581],{"./node_modules/@mui/material/Table/Table.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return Table_Table}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),TableContext=__webpack_require__("./node_modules/@mui/material/Table/TableContext.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getTableUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiTable",slot)}(0,generateUtilityClasses.Z)("MuiTable",["root","stickyHeader"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["className","component","padding","size","stickyHeader"],TableRoot=(0,styled.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,ownerState.stickyHeader&&styles.stickyHeader]}})((({theme:theme,ownerState:ownerState})=>(0,esm_extends.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,esm_extends.Z)({},theme.typography.body2,{padding:theme.spacing(2),color:(theme.vars||theme).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},ownerState.stickyHeader&&{borderCollapse:"separate"}))),defaultComponent="table";var Table_Table=react.forwardRef((function Table(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiTable"}),{className:className,component:component=defaultComponent,padding:padding="normal",size:size="medium",stickyHeader:stickyHeader=!1}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),ownerState=(0,esm_extends.Z)({},props,{component:component,padding:padding,size:size,stickyHeader:stickyHeader}),classes=(ownerState=>{const{classes:classes,stickyHeader:stickyHeader}=ownerState,slots={root:["root",stickyHeader&&"stickyHeader"]};return(0,composeClasses.Z)(slots,getTableUtilityClass,classes)})(ownerState),table=react.useMemo((()=>({padding:padding,size:size,stickyHeader:stickyHeader})),[padding,size,stickyHeader]);return(0,jsx_runtime.jsx)(TableContext.Z.Provider,{value:table,children:(0,jsx_runtime.jsx)(TableRoot,(0,esm_extends.Z)({as:component,role:component===defaultComponent?null:"table",ref:ref,className:(0,clsx.Z)(classes.root,className),ownerState:ownerState},other))})}))},"./node_modules/@mui/material/Table/TableContext.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){const TableContext=__webpack_require__("./node_modules/react/index.js").createContext();__webpack_exports__.Z=TableContext},"./node_modules/@mui/material/Table/Tablelvl2Context.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){const Tablelvl2Context=__webpack_require__("./node_modules/react/index.js").createContext();__webpack_exports__.Z=Tablelvl2Context},"./node_modules/@mui/material/TableBody/TableBody.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return TableBody_TableBody}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),Tablelvl2Context=__webpack_require__("./node_modules/@mui/material/Table/Tablelvl2Context.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getTableBodyUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiTableBody",slot)}(0,generateUtilityClasses.Z)("MuiTableBody",["root"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["className","component"],TableBodyRoot=(0,styled.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(props,styles)=>styles.root})({display:"table-row-group"}),tablelvl2={variant:"body"},defaultComponent="tbody";var TableBody_TableBody=react.forwardRef((function TableBody(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiTableBody"}),{className:className,component:component=defaultComponent}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),ownerState=(0,esm_extends.Z)({},props,{component:component}),classes=(ownerState=>{const{classes:classes}=ownerState;return(0,composeClasses.Z)({root:["root"]},getTableBodyUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsx)(Tablelvl2Context.Z.Provider,{value:tablelvl2,children:(0,jsx_runtime.jsx)(TableBodyRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(classes.root,className),as:component,ref:ref,role:component===defaultComponent?null:"rowgroup",ownerState:ownerState},other))})}))},"./node_modules/@mui/material/TableCell/TableCell.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return TableCell_TableCell}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),colorManipulator=__webpack_require__("./node_modules/@mui/system/colorManipulator.js"),capitalize=__webpack_require__("./node_modules/@mui/material/utils/capitalize.js"),TableContext=__webpack_require__("./node_modules/@mui/material/Table/TableContext.js"),Tablelvl2Context=__webpack_require__("./node_modules/@mui/material/Table/Tablelvl2Context.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getTableCellUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiTableCell",slot)}var TableCell_tableCellClasses=(0,generateUtilityClasses.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["align","className","component","padding","scope","size","sortDirection","variant"],TableCellRoot=(0,styled.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,styles[ownerState.variant],styles[`size${(0,capitalize.Z)(ownerState.size)}`],"normal"!==ownerState.padding&&styles[`padding${(0,capitalize.Z)(ownerState.padding)}`],"inherit"!==ownerState.align&&styles[`align${(0,capitalize.Z)(ownerState.align)}`],ownerState.stickyHeader&&styles.stickyHeader]}})((({theme:theme,ownerState:ownerState})=>(0,esm_extends.Z)({},theme.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:theme.vars?`1px solid ${theme.vars.palette.TableCell.border}`:`1px solid\n ${"light"===theme.palette.mode?(0,colorManipulator.$n)((0,colorManipulator.Fq)(theme.palette.divider,1),.88):(0,colorManipulator._j)((0,colorManipulator.Fq)(theme.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===ownerState.variant&&{color:(theme.vars||theme).palette.text.primary,lineHeight:theme.typography.pxToRem(24),fontWeight:theme.typography.fontWeightMedium},"body"===ownerState.variant&&{color:(theme.vars||theme).palette.text.primary},"footer"===ownerState.variant&&{color:(theme.vars||theme).palette.text.secondary,lineHeight:theme.typography.pxToRem(21),fontSize:theme.typography.pxToRem(12)},"small"===ownerState.size&&{padding:"6px 16px",[`&.${TableCell_tableCellClasses.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===ownerState.padding&&{width:48,padding:"0 0 0 4px"},"none"===ownerState.padding&&{padding:0},"left"===ownerState.align&&{textAlign:"left"},"center"===ownerState.align&&{textAlign:"center"},"right"===ownerState.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===ownerState.align&&{textAlign:"justify"},ownerState.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(theme.vars||theme).palette.background.default})));var TableCell_TableCell=react.forwardRef((function TableCell(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiTableCell"}),{align:align="inherit",className:className,component:componentProp,padding:paddingProp,scope:scopeProp,size:sizeProp,sortDirection:sortDirection,variant:variantProp}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),table=react.useContext(TableContext.Z),tablelvl2=react.useContext(Tablelvl2Context.Z),isHeadCell=tablelvl2&&"head"===tablelvl2.variant;let component;component=componentProp||(isHeadCell?"th":"td");let scope=scopeProp;"td"===component?scope=void 0:!scope&&isHeadCell&&(scope="col");const variant=variantProp||tablelvl2&&tablelvl2.variant,ownerState=(0,esm_extends.Z)({},props,{align:align,component:component,padding:paddingProp||(table&&table.padding?table.padding:"normal"),size:sizeProp||(table&&table.size?table.size:"medium"),sortDirection:sortDirection,stickyHeader:"head"===variant&&table&&table.stickyHeader,variant:variant}),classes=(ownerState=>{const{classes:classes,variant:variant,align:align,padding:padding,size:size,stickyHeader:stickyHeader}=ownerState,slots={root:["root",variant,stickyHeader&&"stickyHeader","inherit"!==align&&`align${(0,capitalize.Z)(align)}`,"normal"!==padding&&`padding${(0,capitalize.Z)(padding)}`,`size${(0,capitalize.Z)(size)}`]};return(0,composeClasses.Z)(slots,getTableCellUtilityClass,classes)})(ownerState);let ariaSort=null;return sortDirection&&(ariaSort="asc"===sortDirection?"ascending":"descending"),(0,jsx_runtime.jsx)(TableCellRoot,(0,esm_extends.Z)({as:component,ref:ref,className:(0,clsx.Z)(classes.root,className),"aria-sort":ariaSort,scope:scope,ownerState:ownerState},other))}))},"./node_modules/@mui/material/TableContainer/TableContainer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return TableContainer_TableContainer}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getTableContainerUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiTableContainer",slot)}(0,generateUtilityClasses.Z)("MuiTableContainer",["root"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["className","component"],TableContainerRoot=(0,styled.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(props,styles)=>styles.root})({width:"100%",overflowX:"auto"});var TableContainer_TableContainer=react.forwardRef((function TableContainer(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiTableContainer"}),{className:className,component:component="div"}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),ownerState=(0,esm_extends.Z)({},props,{component:component}),classes=(ownerState=>{const{classes:classes}=ownerState;return(0,composeClasses.Z)({root:["root"]},getTableContainerUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsx)(TableContainerRoot,(0,esm_extends.Z)({ref:ref,as:component,className:(0,clsx.Z)(classes.root,className),ownerState:ownerState},other))}))},"./node_modules/@mui/material/TableRow/TableRow.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return TableRow_TableRow}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),colorManipulator=__webpack_require__("./node_modules/@mui/system/colorManipulator.js"),Tablelvl2Context=__webpack_require__("./node_modules/@mui/material/Table/Tablelvl2Context.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getTableRowUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiTableRow",slot)}var TableRow_tableRowClasses=(0,generateUtilityClasses.Z)("MuiTableRow",["root","selected","hover","head","footer"]),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["className","component","hover","selected"],TableRowRoot=(0,styled.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,ownerState.head&&styles.head,ownerState.footer&&styles.footer]}})((({theme:theme})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${TableRow_tableRowClasses.hover}:hover`]:{backgroundColor:(theme.vars||theme).palette.action.hover},[`&.${TableRow_tableRowClasses.selected}`]:{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity),"&:hover":{backgroundColor:theme.vars?`rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))`:(0,colorManipulator.Fq)(theme.palette.primary.main,theme.palette.action.selectedOpacity+theme.palette.action.hoverOpacity)}}}))),defaultComponent="tr";var TableRow_TableRow=react.forwardRef((function TableRow(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiTableRow"}),{className:className,component:component=defaultComponent,hover:hover=!1,selected:selected=!1}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),tablelvl2=react.useContext(Tablelvl2Context.Z),ownerState=(0,esm_extends.Z)({},props,{component:component,hover:hover,selected:selected,head:tablelvl2&&"head"===tablelvl2.variant,footer:tablelvl2&&"footer"===tablelvl2.variant}),classes=(ownerState=>{const{classes:classes,selected:selected,hover:hover,head:head,footer:footer}=ownerState,slots={root:["root",selected&&"selected",hover&&"hover",head&&"head",footer&&"footer"]};return(0,composeClasses.Z)(slots,getTableRowUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsx)(TableRowRoot,(0,esm_extends.Z)({as:component,ref:ref,className:(0,clsx.Z)(classes.root,className),role:component===defaultComponent?null:"row",ownerState:ownerState},other))}))},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Button/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{z:function(){return Button_Button}});var react=__webpack_require__("./node_modules/react/index.js"),react_namespaceObject=__webpack_require__.t(react,2),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),esm=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-tokens/dist/esm/index.mjs");const{typography:{navigation:{button:buttonTypography}},colors:{interactive:{disabled__text:{rgba:disabledTextColor},disabled__border:{rgba:disabledBorderColor},disabled__fill:{rgba:disabledColor}}},spacings:{comfortable:{medium:medium}},shape:{button:{minHeight:buttonHeight,borderRadius:buttonBorderRadius},_modes:{compact:{button:{minHeight:compactButtonHeight}}}},interactions:{focused:outline},clickbounds:{default__base:clicboundHeight,compact__standard:compactClickboundHeight}}=esm.tokens,button_button={background:"transparent",height:`var(--eds_button__height, ${buttonHeight})`,typography:{...buttonTypography,textAlign:"center",fontSize:`var(--eds_button__font_size, ${buttonTypography.fontSize})`},border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:`var(--eds_button__radius, ${buttonBorderRadius})`,style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:`var(--eds_button__padding_x, ${medium})`,right:`var(--eds_button__padding_x, ${medium})`},clickbound:{height:clicboundHeight,width:"100%",offset:{top:(parseInt(clicboundHeight)-parseInt(buttonHeight))/2+1+"px",left:"0"}},entities:{icon:{height:"var(--eds_button__icon__size, 24px)",width:"var(--eds_button__icon__size, 24px)"}},states:{hover:{border:{type:"border",width:"1px",color:"transparent",radius:`var(--eds_button__radius, ${buttonBorderRadius})`,style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:outline.color,width:outline.width}},disabled:{background:disabledColor,border:{type:"border",width:"1px",color:disabledBorderColor,style:"solid"},typography:{...buttonTypography,color:disabledTextColor,textAlign:"center"}}},modes:{compact:{height:`var(--eds_button__height_compact, ${compactButtonHeight})`,spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:compactClickboundHeight,width:"100%",offset:{top:(parseInt(compactClickboundHeight)-parseInt(compactButtonHeight))/2+1+"px",left:"0"}}}}};var mergeDeepRight=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/node_modules/.pnpm/ramda@0.29.1/node_modules/ramda/es/mergeDeepRight.js");const{colors:{text:{static_icons__primary_white:{rgba:primaryWhite}},interactive:{primary__resting:{rgba:primaryColor},primary__hover:{rgba:primaryHoverColor},secondary__resting:{rgba:secondaryColor},secondary__link_hover:{rgba:secondaryHoverColor},danger__resting:{rgba:dangerColor},danger__hover:{rgba:dangerHoverColor}}},shape:{button:{borderRadius:contained_buttonBorderRadius}}}=esm.tokens,primary=(0,mergeDeepRight.Z)(button_button,{background:primaryColor,typography:{color:primaryWhite},border:{type:"border",style:"solid",width:"1px",color:primaryColor,radius:`var(--eds_button__radius, ${contained_buttonBorderRadius})`},states:{hover:{background:primaryHoverColor}}}),secondary=(0,mergeDeepRight.Z)(primary,{background:secondaryColor,border:{color:secondaryColor},states:{hover:{background:secondaryHoverColor,border:{color:secondaryHoverColor}}}}),danger=(0,mergeDeepRight.Z)(primary,{background:dangerColor,border:{color:dangerColor},states:{hover:{background:dangerHoverColor,border:{color:dangerHoverColor}}}}),{colors:{interactive:{primary__resting:{rgba:outlined_primaryColor},primary__hover:{rgba:outlined_primaryHoverColor},primary__hover_alt:{rgba:primaryHoverAltColor},secondary__resting:{rgba:outlined_secondaryColor},secondary__link_hover:{rgba:outlined_secondaryHoverColor},secondary__highlight:{rgba:secondaryHoverAltColor},danger__resting:{rgba:outlined_dangerColor},danger__hover:{rgba:outlined_dangerHoverColor},danger__highlight:{rgba:dangerHoverAltColor}}},shape:{button:{borderRadius:outlined_buttonBorderRadius}}}=esm.tokens,outlined_primary=(0,mergeDeepRight.Z)(button_button,{typography:{color:outlined_primaryColor},border:{type:"border",style:"solid",width:"1px",color:outlined_primaryColor,radius:`var(--eds_button__radius, ${outlined_buttonBorderRadius})`},states:{hover:{typography:{color:outlined_primaryHoverColor},background:primaryHoverAltColor,border:{style:"solid",type:"border",width:"1px",color:outlined_primaryHoverColor}},disabled:{background:"transparent"}}}),outlined_secondary=(0,mergeDeepRight.Z)(outlined_primary,{typography:{color:outlined_secondaryColor},border:{color:outlined_secondaryColor},states:{hover:{background:secondaryHoverAltColor,typography:{color:outlined_secondaryHoverColor},border:{color:outlined_secondaryHoverColor}}}}),outlined_danger=(0,mergeDeepRight.Z)(outlined_primary,{typography:{color:outlined_dangerColor},border:{color:outlined_dangerColor},states:{hover:{background:dangerHoverAltColor,typography:{color:outlined_dangerHoverColor},border:{color:outlined_dangerHoverColor}}}}),{colors:{interactive:{primary__resting:{rgba:ghost_primaryColor},primary__hover:{rgba:ghost_primaryHoverColor},primary__hover_alt:{rgba:ghost_primaryHoverAltColor},secondary__resting:{rgba:ghost_secondaryColor},secondary__link_hover:{rgba:ghost_secondaryHoverColor},secondary__highlight:{rgba:ghost_secondaryHoverAltColor},danger__resting:{rgba:ghost_dangerColor},danger__hover:{rgba:ghost_dangerHoverColor},danger__highlight:{rgba:ghost_dangerHoverAltColor}}}}=esm.tokens,ghost_primary=(0,mergeDeepRight.Z)(button_button,{typography:{color:ghost_primaryColor},states:{hover:{background:ghost_primaryHoverAltColor,typography:{color:ghost_primaryHoverColor}},disabled:{background:"transparent",border:{color:"transparent"}}}}),ghost_secondary=(0,mergeDeepRight.Z)(ghost_primary,{typography:{color:ghost_secondaryColor},states:{hover:{background:ghost_secondaryHoverAltColor,typography:{color:ghost_secondaryHoverColor}}}}),ghost_danger=(0,mergeDeepRight.Z)(ghost_primary,{typography:{color:ghost_dangerColor},states:{hover:{background:ghost_dangerHoverAltColor,typography:{color:ghost_dangerHoverColor}}}}),{colors:{interactive:{primary__resting:{rgba:icon_primaryColor},primary__hover_alt:{rgba:icon_primaryHoverAltColor},secondary__resting:{rgba:icon_secondaryColor},secondary__link_hover:{rgba:icon_secondaryHoverColor},secondary__highlight:{rgba:icon_secondaryHoverAltColor},danger__resting:{rgba:icon_dangerColor},danger__hover:{rgba:icon_dangerHoverColor},danger__highlight:{rgba:icon_dangerHoverAltColor}}},clickbounds:{default__base:icon_clicboundHeight,compact__standard:icon_compactClickboundHeight},shape:shape,interactions:{focused:{width:focusOutlineWidth}}}=esm.tokens,icon_primary=(0,mergeDeepRight.Z)(button_button,{height:shape.icon_button.minHeight,width:shape.icon_button.minWidth,typography:{color:icon_primaryColor},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:icon_clicboundHeight,offset:{top:"0",left:(parseInt(icon_clicboundHeight)-parseInt(shape.icon_button.minWidth))/2+"px"}},states:{hover:{background:icon_primaryHoverAltColor,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:`-${parseInt(focusOutlineWidth)}px`}}},modes:{compact:{height:shape._modes.compact.icon_button.minHeight,width:shape._modes.compact.icon_button.minWidth,clickbound:{width:icon_compactClickboundHeight,offset:{top:"0",left:(parseInt(icon_compactClickboundHeight)-parseInt(shape._modes.compact.icon_button.minWidth))/2+"px"}}}}}),icon_secondary=(0,mergeDeepRight.Z)(icon_primary,{typography:{color:icon_secondaryColor},states:{hover:{background:icon_secondaryHoverAltColor,typography:{color:icon_secondaryHoverColor}}}}),icon_danger=(0,mergeDeepRight.Z)(icon_primary,{typography:{color:icon_dangerColor},states:{hover:{background:icon_dangerHoverAltColor,typography:{color:icon_dangerHoverColor}}}}),{clickbounds:{default__base:contained_icon_clicboundHeight,compact__standard:contained_icon_compactClickboundHeight},shape:contained_icon_shape}=esm.tokens,contained_icon={height:contained_icon_shape.icon_button.minHeight,width:contained_icon_shape.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:contained_icon_clicboundHeight,offset:{top:"0",left:(parseInt(contained_icon_clicboundHeight)-parseInt("40px"))/2+"px"}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:contained_icon_shape._modes.compact.icon_button.minHeight,width:contained_icon_shape._modes.compact.icon_button.minWidth,clickbound:{width:contained_icon_compactClickboundHeight,offset:{top:"0",left:(parseInt(contained_icon_compactClickboundHeight)-parseInt(contained_icon_shape._modes.compact.icon_button.minWidth))/2+"px"}}}}},token={primary:{contained:primary,outlined:outlined_primary,ghost:ghost_primary,ghost_icon:icon_primary,contained_icon:(0,mergeDeepRight.Z)(primary,contained_icon)},secondary:{contained:secondary,outlined:outlined_secondary,ghost:ghost_secondary,ghost_icon:icon_secondary,contained_icon:(0,mergeDeepRight.Z)(secondary,contained_icon)},danger:{contained:danger,outlined:outlined_danger,ghost:ghost_danger,ghost_icon:icon_danger,contained_icon:(0,mergeDeepRight.Z)(danger,contained_icon)}};var templates=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs"),borders=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/borders.mjs"),templates_focus=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/focus.mjs"),useToken=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/hooks/useToken.mjs"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const FullWidthCenterContent=styled_components_browser_esm.ZP.span.withConfig({displayName:"InnerFullWidth__FullWidthCenterContent",componentId:"sc-qeawkb-0"})(["text-align:center;flex:1;"]),FullWidthInner=styled_components_browser_esm.ZP.span.withConfig({displayName:"InnerFullWidth__FullWidthInner",componentId:"sc-qeawkb-1"})(["height:100%;display:flex;align-items:center;> :is(svg,img){margin-top:var(--eds_button__margin_y,inherit);margin-bottom:var(--eds_button__margin_y,inherit);}> :is(svg,img):first-child{margin-right:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):last-child{margin-left:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):only-child{margin-left:auto;margin-right:auto;}> span:first-child{margin-left:var(--eds_button__fullwidth__margin_x,32px);}> span:last-child{margin-right:var(--eds_button__fullwidth__margin_x,32px);}> span:only-child{margin-right:0;margin-left:0;}"]),InnerFullWidth=(0,react.forwardRef)((function InnerFullWidth({children:children},ref){const updatedChildren=react.Children.map(children,(child=>"object"!=typeof child?(0,jsx_runtime.jsx)(FullWidthCenterContent,{children:child}):child));return(0,jsx_runtime.jsx)(FullWidthInner,{ref:ref,children:updatedChildren})}));var eds_context=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/EdsProvider/eds.context.js");const getVariant=(tokenSet,variant)=>{switch(variant){case"ghost":return tokenSet.ghost;case"ghost_icon":return tokenSet.ghost_icon;case"outlined":return tokenSet.outlined;case"contained_icon":return tokenSet.contained_icon;default:return tokenSet.contained}},getToken=(variant,color)=>{switch(color){case"danger":return getVariant(token.danger,variant);case"secondary":return getVariant(token.secondary,variant);default:return getVariant(token.primary,variant)}},Inner=styled_components_browser_esm.ZP.span.withConfig({displayName:"Button__Inner",componentId:"sc-1hs0myn-0"})(["display:grid;grid-gap:var(--eds_button__gap,8px);grid-auto-flow:column;align-items:center;height:100%;justify-content:center;& > :is(svg,img){margin-top:var(--eds_button__icon__margin_y,0);margin-bottom:var(--eds_button__icon__margin_y,0);}"]),ButtonBase=styled_components_browser_esm.ZP.button.withConfig({displayName:"Button__ButtonBase",componentId:"sc-1hs0myn-1"})((({theme:theme})=>{const{states:states,clickbound:clickbound}=theme,{focus:focus,hover:hover,disabled:disabled}=states;return(0,styled_components_browser_esm.iv)(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:",";height:",";width:",";svg{justify-self:center;}"," "," "," &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-",";left:-",";width:",";height:",";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:",";color:",";",";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:",";",";",";@media (hover:hover) and (pointer:fine){&:hover{background:",";}}}"],theme.background,theme.height,theme.width,(0,templates.SH)(theme.spacings),(0,borders.$)(theme.border),(0,templates.oc)(theme.typography),clickbound?.offset?.top,clickbound?.offset?.left,clickbound?.width,clickbound?.height,hover.background,hover.typography?.color,(0,borders.$)(hover?.border),(0,templates_focus.p)(focus.outline),(0,templates_focus.p)(focus.outline),disabled.background,(0,borders.$)(disabled.border),(0,templates.oc)(disabled.typography),disabled.background)})),Button=(0,react.forwardRef)((function Button({color:color="primary",variant:variant="contained",children:children,disabled:disabled=!1,href:href,tabIndex:tabIndex=0,fullWidth:fullWidth=!1,...other},ref){const{density:density}=(0,eds_context.q)(),token=(0,useToken.d)({density:density},getToken(variant,color)),buttonProps={ref:ref,as:href&&!disabled?"a":other.as?other.as:"button",href:href,type:href||other.as?void 0:"button",disabled:disabled,tabIndex:tabIndex=disabled?-1:tabIndex,...other};return(0,jsx_runtime.jsx)(styled_components_browser_esm.f6,{theme:token,children:(0,jsx_runtime.jsx)(ButtonBase,{...buttonProps,children:fullWidth?(0,jsx_runtime.jsx)(InnerFullWidth,{children:children}):(0,jsx_runtime.jsx)(Inner,{children:children})})})})),{shape:{corners:{borderRadius:borderRadius}}}=esm.tokens,group={border:{type:"border",radius:borderRadius}},{border:border}=group,radius="border"===border.type&&border.radius,ButtonGroupBase=styled_components_browser_esm.ZP.div.withConfig({displayName:"ButtonGroup__ButtonGroupBase",componentId:"sc-1fn8jon-0"})(["display:inline-flex;> *{border-radius:0;@media (hover:hover) and (pointer:fine){&:hover{border-radius:0;}}}",""],(({$vertical:$vertical})=>$vertical?(0,styled_components_browser_esm.iv)(["flex-direction:column;> :first-child{border-top-left-radius:",";border-top-right-radius:",";}> :last-child{border-bottom-left-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-bottom:none;}"],radius,radius,radius,radius):(0,styled_components_browser_esm.iv)(["> :first-child{border-top-left-radius:",";border-bottom-left-radius:",";}> :last-child{border-top-right-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-right:none;}"],radius,radius,radius,radius))),ButtonGroup=(0,react.forwardRef)((function ButtonGroup({children:children,vertical:vertical,...rest},ref){const props={ref:ref,$vertical:vertical,...rest};return(0,jsx_runtime.jsx)(ButtonGroupBase,{role:"group",...props,children:children})})),mergeRefs=(...refs)=>element=>refs.forEach((ref=>{"function"==typeof ref?ref(element):ref&&"object"==typeof ref&&(ref.current=element)})),{colors:{text:{static_icons__primary_white:{rgba:white}},ui:{background__overlay:{rgba:background}}},typography:{ui:ui},spacings:{comfortable:{x_large:spacingXlarge,small:spacingSmall}},shape:{corners:{borderRadius:Tooltip_tokens_borderRadius}}}=esm.tokens,tooltip={typography:{...ui.tooltip,color:white},background:background,border:{type:"border",radius:Tooltip_tokens_borderRadius},entities:{tooltip:{height:spacingXlarge},arrow:{width:"6px",height:spacingSmall,spacings:{bottom:"-6px",top:"-6px",left:"-6px",right:"-6px"}}},spacings:{left:spacingSmall,right:spacingSmall,top:spacingSmall,bottom:spacingSmall}};function floating_ui_utils_dom_getNodeName(node){return isNode(node)?(node.nodeName||"").toLowerCase():"#document"}function floating_ui_utils_dom_getWindow(node){var _node$ownerDocument;return(null==node||null==(_node$ownerDocument=node.ownerDocument)?void 0:_node$ownerDocument.defaultView)||window}function isNode(value){return value instanceof Node||value instanceof floating_ui_utils_dom_getWindow(value).Node}function floating_ui_utils_dom_isElement(value){return value instanceof Element||value instanceof floating_ui_utils_dom_getWindow(value).Element}function floating_ui_utils_dom_isHTMLElement(value){return value instanceof HTMLElement||value instanceof floating_ui_utils_dom_getWindow(value).HTMLElement}function isShadowRoot(value){return"undefined"!=typeof ShadowRoot&&(value instanceof ShadowRoot||value instanceof floating_ui_utils_dom_getWindow(value).ShadowRoot)}function isLastTraversableNode(node){return["html","body","#document"].includes(floating_ui_utils_dom_getNodeName(node))}function floating_ui_utils_dom_getComputedStyle(element){return floating_ui_utils_dom_getWindow(element).getComputedStyle(element)}function getParentNode(node){if("html"===floating_ui_utils_dom_getNodeName(node))return node;const result=node.assignedSlot||node.parentNode||isShadowRoot(node)&&node.host||function getDocumentElement(node){var _ref;return null==(_ref=(isNode(node)?node.ownerDocument:node.document)||window.document)?void 0:_ref.documentElement}(node);return isShadowRoot(result)?result.host:result}function floating_ui_react_utils_activeElement(doc){let activeElement=doc.activeElement;for(;null!=(null==(_activeElement=activeElement)||null==(_activeElement=_activeElement.shadowRoot)?void 0:_activeElement.activeElement);){var _activeElement;activeElement=activeElement.shadowRoot.activeElement}return activeElement}function floating_ui_react_utils_contains(parent,child){if(!parent||!child)return!1;const rootNode=null==child.getRootNode?void 0:child.getRootNode();if(parent.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){let next=child;for(;next;){if(parent===next)return!0;next=next.parentNode||next.host}}return!1}function floating_ui_react_utils_getPlatform(){const uaData=navigator.userAgentData;return null!=uaData&&uaData.platform?uaData.platform:navigator.platform}function floating_ui_react_utils_getUserAgent(){const uaData=navigator.userAgentData;return uaData&&Array.isArray(uaData.brands)?uaData.brands.map((_ref=>{let{brand:brand,version:version}=_ref;return brand+"/"+version})).join(" "):navigator.userAgent}function floating_ui_react_utils_isVirtualPointerEvent(event){return!function isJSDOM(){return floating_ui_react_utils_getUserAgent().includes("jsdom/")}()&&(!isAndroid()&&0===event.width&&0===event.height||isAndroid()&&1===event.width&&1===event.height&&0===event.pressure&&0===event.detail&&"mouse"===event.pointerType||event.width<1&&event.height<1&&0===event.pressure&&0===event.detail&&"touch"===event.pointerType)}function floating_ui_react_utils_isSafari(){return/apple/i.test(navigator.vendor)}function isAndroid(){const re=/android/i;return re.test(floating_ui_react_utils_getPlatform())||re.test(floating_ui_react_utils_getUserAgent())}function floating_ui_react_utils_isMouseLikePointerType(pointerType,strict){const values=["mouse","pen"];return strict||values.push("",void 0),values.includes(pointerType)}function floating_ui_react_utils_getDocument(node){return(null==node?void 0:node.ownerDocument)||document}function isEventTargetWithin(event,node){if(null==node)return!1;if("composedPath"in event)return event.composedPath().includes(node);const e=event;return null!=e.target&&node.contains(e.target)}function floating_ui_react_utils_getTarget(event){return"composedPath"in event?event.composedPath()[0]:event.target}const TYPEABLE_SELECTOR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function floating_ui_react_utils_isTypeableElement(element){return floating_ui_utils_dom_isHTMLElement(element)&&element.matches(TYPEABLE_SELECTOR)}function dist_floating_ui_utils_dom_getNodeName(node){return floating_ui_utils_dom_isNode(node)?(node.nodeName||"").toLowerCase():"#document"}function dist_floating_ui_utils_dom_getWindow(node){var _node$ownerDocument;return(null==node||null==(_node$ownerDocument=node.ownerDocument)?void 0:_node$ownerDocument.defaultView)||window}function floating_ui_utils_dom_getDocumentElement(node){var _ref;return null==(_ref=(floating_ui_utils_dom_isNode(node)?node.ownerDocument:node.document)||window.document)?void 0:_ref.documentElement}function floating_ui_utils_dom_isNode(value){return value instanceof Node||value instanceof dist_floating_ui_utils_dom_getWindow(value).Node}function dist_floating_ui_utils_dom_isElement(value){return value instanceof Element||value instanceof dist_floating_ui_utils_dom_getWindow(value).Element}function dist_floating_ui_utils_dom_isHTMLElement(value){return value instanceof HTMLElement||value instanceof dist_floating_ui_utils_dom_getWindow(value).HTMLElement}function floating_ui_utils_dom_isShadowRoot(value){return"undefined"!=typeof ShadowRoot&&(value instanceof ShadowRoot||value instanceof dist_floating_ui_utils_dom_getWindow(value).ShadowRoot)}function floating_ui_utils_dom_isOverflowElement(element){const{overflow:overflow,overflowX:overflowX,overflowY:overflowY,display:display}=dist_floating_ui_utils_dom_getComputedStyle(element);return/auto|scroll|overlay|hidden|clip/.test(overflow+overflowY+overflowX)&&!["inline","contents"].includes(display)}function floating_ui_utils_dom_isTableElement(element){return["table","td","th"].includes(dist_floating_ui_utils_dom_getNodeName(element))}function floating_ui_utils_dom_isContainingBlock(element){const webkit=floating_ui_utils_dom_isWebKit(),css=dist_floating_ui_utils_dom_getComputedStyle(element);return"none"!==css.transform||"none"!==css.perspective||!!css.containerType&&"normal"!==css.containerType||!webkit&&!!css.backdropFilter&&"none"!==css.backdropFilter||!webkit&&!!css.filter&&"none"!==css.filter||["transform","perspective","filter"].some((value=>(css.willChange||"").includes(value)))||["paint","layout","strict","content"].some((value=>(css.contain||"").includes(value)))}function floating_ui_utils_dom_isWebKit(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function floating_ui_utils_dom_isLastTraversableNode(node){return["html","body","#document"].includes(dist_floating_ui_utils_dom_getNodeName(node))}function dist_floating_ui_utils_dom_getComputedStyle(element){return dist_floating_ui_utils_dom_getWindow(element).getComputedStyle(element)}function floating_ui_utils_dom_getNodeScroll(element){return dist_floating_ui_utils_dom_isElement(element)?{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}:{scrollLeft:element.pageXOffset,scrollTop:element.pageYOffset}}function floating_ui_utils_dom_getParentNode(node){if("html"===dist_floating_ui_utils_dom_getNodeName(node))return node;const result=node.assignedSlot||node.parentNode||floating_ui_utils_dom_isShadowRoot(node)&&node.host||floating_ui_utils_dom_getDocumentElement(node);return floating_ui_utils_dom_isShadowRoot(result)?result.host:result}function floating_ui_utils_dom_getNearestOverflowAncestor(node){const parentNode=floating_ui_utils_dom_getParentNode(node);return floating_ui_utils_dom_isLastTraversableNode(parentNode)?node.ownerDocument?node.ownerDocument.body:node.body:dist_floating_ui_utils_dom_isHTMLElement(parentNode)&&floating_ui_utils_dom_isOverflowElement(parentNode)?parentNode:floating_ui_utils_dom_getNearestOverflowAncestor(parentNode)}function floating_ui_utils_dom_getOverflowAncestors(node,list,traverseIframes){var _node$ownerDocument2;void 0===list&&(list=[]),void 0===traverseIframes&&(traverseIframes=!0);const scrollableAncestor=floating_ui_utils_dom_getNearestOverflowAncestor(node),isBody=scrollableAncestor===(null==(_node$ownerDocument2=node.ownerDocument)?void 0:_node$ownerDocument2.body),win=dist_floating_ui_utils_dom_getWindow(scrollableAncestor);return isBody?list.concat(win,win.visualViewport||[],floating_ui_utils_dom_isOverflowElement(scrollableAncestor)?scrollableAncestor:[],win.frameElement&&traverseIframes?floating_ui_utils_dom_getOverflowAncestors(win.frameElement):[]):list.concat(scrollableAncestor,floating_ui_utils_dom_getOverflowAncestors(scrollableAncestor,[],traverseIframes))}const floating_ui_utils_min=Math.min,floating_ui_utils_max=Math.max,oppositeSideMap=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),oppositeAlignmentMap={start:"end",end:"start"};function clamp(start,value,end){return floating_ui_utils_max(start,floating_ui_utils_min(value,end))}function floating_ui_utils_evaluate(value,param){return"function"==typeof value?value(param):value}function floating_ui_utils_getSide(placement){return placement.split("-")[0]}function floating_ui_utils_getAlignment(placement){return placement.split("-")[1]}function floating_ui_utils_getOppositeAxis(axis){return"x"===axis?"y":"x"}function getAxisLength(axis){return"y"===axis?"height":"width"}function floating_ui_utils_getSideAxis(placement){return["top","bottom"].includes(floating_ui_utils_getSide(placement))?"y":"x"}function getAlignmentAxis(placement){return floating_ui_utils_getOppositeAxis(floating_ui_utils_getSideAxis(placement))}function floating_ui_utils_getOppositeAlignmentPlacement(placement){return placement.replace(/start|end/g,(alignment=>oppositeAlignmentMap[alignment]))}function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,(side=>oppositeSideMap[side]))}function floating_ui_utils_getPaddingObject(padding){return"number"!=typeof padding?function expandPaddingObject(padding){return{top:0,right:0,bottom:0,left:0,...padding}}(padding):{top:padding,right:padding,bottom:padding,left:padding}}function floating_ui_utils_rectToClientRect(rect){return{...rect,top:rect.y,left:rect.x,right:rect.x+rect.width,bottom:rect.y+rect.height}}function computeCoordsFromPlacement(_ref,placement,rtl){let{reference:reference,floating:floating}=_ref;const sideAxis=floating_ui_utils_getSideAxis(placement),alignmentAxis=getAlignmentAxis(placement),alignLength=getAxisLength(alignmentAxis),side=floating_ui_utils_getSide(placement),isVertical="y"===sideAxis,commonX=reference.x+reference.width/2-floating.width/2,commonY=reference.y+reference.height/2-floating.height/2,commonAlign=reference[alignLength]/2-floating[alignLength]/2;let coords;switch(side){case"top":coords={x:commonX,y:reference.y-floating.height};break;case"bottom":coords={x:commonX,y:reference.y+reference.height};break;case"right":coords={x:reference.x+reference.width,y:commonY};break;case"left":coords={x:reference.x-floating.width,y:commonY};break;default:coords={x:reference.x,y:reference.y}}switch(floating_ui_utils_getAlignment(placement)){case"start":coords[alignmentAxis]-=commonAlign*(rtl&&isVertical?-1:1);break;case"end":coords[alignmentAxis]+=commonAlign*(rtl&&isVertical?-1:1)}return coords}async function floating_ui_core_detectOverflow(state,options){var _await$platform$isEle;void 0===options&&(options={});const{x:x,y:y,platform:platform,rects:rects,elements:elements,strategy:strategy}=state,{boundary:boundary="clippingAncestors",rootBoundary:rootBoundary="viewport",elementContext:elementContext="floating",altBoundary:altBoundary=!1,padding:padding=0}=floating_ui_utils_evaluate(options,state),paddingObject=floating_ui_utils_getPaddingObject(padding),element=elements[altBoundary?"floating"===elementContext?"reference":"floating":elementContext],clippingClientRect=floating_ui_utils_rectToClientRect(await platform.getClippingRect({element:null==(_await$platform$isEle=await(null==platform.isElement?void 0:platform.isElement(element)))||_await$platform$isEle?element:element.contextElement||await(null==platform.getDocumentElement?void 0:platform.getDocumentElement(elements.floating)),boundary:boundary,rootBoundary:rootBoundary,strategy:strategy})),rect="floating"===elementContext?{...rects.floating,x:x,y:y}:rects.reference,offsetParent=await(null==platform.getOffsetParent?void 0:platform.getOffsetParent(elements.floating)),offsetScale=await(null==platform.isElement?void 0:platform.isElement(offsetParent))&&await(null==platform.getScale?void 0:platform.getScale(offsetParent))||{x:1,y:1},elementClientRect=floating_ui_utils_rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect?await platform.convertOffsetParentRelativeRectToViewportRelativeRect({elements:elements,rect:rect,offsetParent:offsetParent,strategy:strategy}):rect);return{top:(clippingClientRect.top-elementClientRect.top+paddingObject.top)/offsetScale.y,bottom:(elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom)/offsetScale.y,left:(clippingClientRect.left-elementClientRect.left+paddingObject.left)/offsetScale.x,right:(elementClientRect.right-clippingClientRect.right+paddingObject.right)/offsetScale.x}}const floating_ui_core_offset=function(options){return void 0===options&&(options=0),{name:"offset",options:options,async fn(state){var _middlewareData$offse,_middlewareData$arrow;const{x:x,y:y,placement:placement,middlewareData:middlewareData}=state,diffCoords=await async function convertValueToCoords(state,options){const{placement:placement,platform:platform,elements:elements}=state,rtl=await(null==platform.isRTL?void 0:platform.isRTL(elements.floating)),side=floating_ui_utils_getSide(placement),alignment=floating_ui_utils_getAlignment(placement),isVertical="y"===floating_ui_utils_getSideAxis(placement),mainAxisMulti=["left","top"].includes(side)?-1:1,crossAxisMulti=rtl&&isVertical?-1:1,rawValue=floating_ui_utils_evaluate(options,state);let{mainAxis:mainAxis,crossAxis:crossAxis,alignmentAxis:alignmentAxis}="number"==typeof rawValue?{mainAxis:rawValue,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...rawValue};return alignment&&"number"==typeof alignmentAxis&&(crossAxis="end"===alignment?-1*alignmentAxis:alignmentAxis),isVertical?{x:crossAxis*crossAxisMulti,y:mainAxis*mainAxisMulti}:{x:mainAxis*mainAxisMulti,y:crossAxis*crossAxisMulti}}(state,options);return placement===(null==(_middlewareData$offse=middlewareData.offset)?void 0:_middlewareData$offse.placement)&&null!=(_middlewareData$arrow=middlewareData.arrow)&&_middlewareData$arrow.alignmentOffset?{}:{x:x+diffCoords.x,y:y+diffCoords.y,data:{...diffCoords,placement:placement}}}}},dist_floating_ui_utils_min=Math.min,dist_floating_ui_utils_max=Math.max,floating_ui_utils_round=Math.round,dist_floating_ui_utils_floor=Math.floor,floating_ui_utils_createCoords=v=>({x:v,y:v});function getCssDimensions(element){const css=dist_floating_ui_utils_dom_getComputedStyle(element);let width=parseFloat(css.width)||0,height=parseFloat(css.height)||0;const hasOffset=dist_floating_ui_utils_dom_isHTMLElement(element),offsetWidth=hasOffset?element.offsetWidth:width,offsetHeight=hasOffset?element.offsetHeight:height,shouldFallback=floating_ui_utils_round(width)!==offsetWidth||floating_ui_utils_round(height)!==offsetHeight;return shouldFallback&&(width=offsetWidth,height=offsetHeight),{width:width,height:height,$:shouldFallback}}function unwrapElement(element){return dist_floating_ui_utils_dom_isElement(element)?element:element.contextElement}function getScale(element){const domElement=unwrapElement(element);if(!dist_floating_ui_utils_dom_isHTMLElement(domElement))return floating_ui_utils_createCoords(1);const rect=domElement.getBoundingClientRect(),{width:width,height:height,$:$}=getCssDimensions(domElement);let x=($?floating_ui_utils_round(rect.width):rect.width)/width,y=($?floating_ui_utils_round(rect.height):rect.height)/height;return x&&Number.isFinite(x)||(x=1),y&&Number.isFinite(y)||(y=1),{x:x,y:y}}const noOffsets=floating_ui_utils_createCoords(0);function getVisualOffsets(element){const win=dist_floating_ui_utils_dom_getWindow(element);return floating_ui_utils_dom_isWebKit()&&win.visualViewport?{x:win.visualViewport.offsetLeft,y:win.visualViewport.offsetTop}:noOffsets}function getBoundingClientRect(element,includeScale,isFixedStrategy,offsetParent){void 0===includeScale&&(includeScale=!1),void 0===isFixedStrategy&&(isFixedStrategy=!1);const clientRect=element.getBoundingClientRect(),domElement=unwrapElement(element);let scale=floating_ui_utils_createCoords(1);includeScale&&(offsetParent?dist_floating_ui_utils_dom_isElement(offsetParent)&&(scale=getScale(offsetParent)):scale=getScale(element));const visualOffsets=function shouldAddVisualOffsets(element,isFixed,floatingOffsetParent){return void 0===isFixed&&(isFixed=!1),!(!floatingOffsetParent||isFixed&&floatingOffsetParent!==dist_floating_ui_utils_dom_getWindow(element))&&isFixed}(domElement,isFixedStrategy,offsetParent)?getVisualOffsets(domElement):floating_ui_utils_createCoords(0);let x=(clientRect.left+visualOffsets.x)/scale.x,y=(clientRect.top+visualOffsets.y)/scale.y,width=clientRect.width/scale.x,height=clientRect.height/scale.y;if(domElement){const win=dist_floating_ui_utils_dom_getWindow(domElement),offsetWin=offsetParent&&dist_floating_ui_utils_dom_isElement(offsetParent)?dist_floating_ui_utils_dom_getWindow(offsetParent):offsetParent;let currentWin=win,currentIFrame=currentWin.frameElement;for(;currentIFrame&&offsetParent&&offsetWin!==currentWin;){const iframeScale=getScale(currentIFrame),iframeRect=currentIFrame.getBoundingClientRect(),css=dist_floating_ui_utils_dom_getComputedStyle(currentIFrame),left=iframeRect.left+(currentIFrame.clientLeft+parseFloat(css.paddingLeft))*iframeScale.x,top=iframeRect.top+(currentIFrame.clientTop+parseFloat(css.paddingTop))*iframeScale.y;x*=iframeScale.x,y*=iframeScale.y,width*=iframeScale.x,height*=iframeScale.y,x+=left,y+=top,currentWin=dist_floating_ui_utils_dom_getWindow(currentIFrame),currentIFrame=currentWin.frameElement}}return floating_ui_utils_rectToClientRect({width:width,height:height,x:x,y:y})}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(floating){return topLayerSelectors.some((selector=>{try{return floating.matches(selector)}catch(e){return!1}}))}function getWindowScrollBarX(element){return getBoundingClientRect(floating_ui_utils_dom_getDocumentElement(element)).left+floating_ui_utils_dom_getNodeScroll(element).scrollLeft}function getClientRectFromClippingAncestor(element,clippingAncestor,strategy){let rect;if("viewport"===clippingAncestor)rect=function getViewportRect(element,strategy){const win=dist_floating_ui_utils_dom_getWindow(element),html=floating_ui_utils_dom_getDocumentElement(element),visualViewport=win.visualViewport;let width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){width=visualViewport.width,height=visualViewport.height;const visualViewportBased=floating_ui_utils_dom_isWebKit();(!visualViewportBased||visualViewportBased&&"fixed"===strategy)&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop)}return{width:width,height:height,x:x,y:y}}(element,strategy);else if("document"===clippingAncestor)rect=function getDocumentRect(element){const html=floating_ui_utils_dom_getDocumentElement(element),scroll=floating_ui_utils_dom_getNodeScroll(element),body=element.ownerDocument.body,width=dist_floating_ui_utils_max(html.scrollWidth,html.clientWidth,body.scrollWidth,body.clientWidth),height=dist_floating_ui_utils_max(html.scrollHeight,html.clientHeight,body.scrollHeight,body.clientHeight);let x=-scroll.scrollLeft+getWindowScrollBarX(element);const y=-scroll.scrollTop;return"rtl"===dist_floating_ui_utils_dom_getComputedStyle(body).direction&&(x+=dist_floating_ui_utils_max(html.clientWidth,body.clientWidth)-width),{width:width,height:height,x:x,y:y}}(floating_ui_utils_dom_getDocumentElement(element));else if(dist_floating_ui_utils_dom_isElement(clippingAncestor))rect=function getInnerBoundingClientRect(element,strategy){const clientRect=getBoundingClientRect(element,!0,"fixed"===strategy),top=clientRect.top+element.clientTop,left=clientRect.left+element.clientLeft,scale=dist_floating_ui_utils_dom_isHTMLElement(element)?getScale(element):floating_ui_utils_createCoords(1);return{width:element.clientWidth*scale.x,height:element.clientHeight*scale.y,x:left*scale.x,y:top*scale.y}}(clippingAncestor,strategy);else{const visualOffsets=getVisualOffsets(element);rect={...clippingAncestor,x:clippingAncestor.x-visualOffsets.x,y:clippingAncestor.y-visualOffsets.y}}return floating_ui_utils_rectToClientRect(rect)}function hasFixedPositionAncestor(element,stopNode){const parentNode=floating_ui_utils_dom_getParentNode(element);return!(parentNode===stopNode||!dist_floating_ui_utils_dom_isElement(parentNode)||floating_ui_utils_dom_isLastTraversableNode(parentNode))&&("fixed"===dist_floating_ui_utils_dom_getComputedStyle(parentNode).position||hasFixedPositionAncestor(parentNode,stopNode))}function getRectRelativeToOffsetParent(element,offsetParent,strategy){const isOffsetParentAnElement=dist_floating_ui_utils_dom_isHTMLElement(offsetParent),documentElement=floating_ui_utils_dom_getDocumentElement(offsetParent),isFixed="fixed"===strategy,rect=getBoundingClientRect(element,!0,isFixed,offsetParent);let scroll={scrollLeft:0,scrollTop:0};const offsets=floating_ui_utils_createCoords(0);if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)if(("body"!==dist_floating_ui_utils_dom_getNodeName(offsetParent)||floating_ui_utils_dom_isOverflowElement(documentElement))&&(scroll=floating_ui_utils_dom_getNodeScroll(offsetParent)),isOffsetParentAnElement){const offsetRect=getBoundingClientRect(offsetParent,!0,isFixed,offsetParent);offsets.x=offsetRect.x+offsetParent.clientLeft,offsets.y=offsetRect.y+offsetParent.clientTop}else documentElement&&(offsets.x=getWindowScrollBarX(documentElement));return{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function getTrueOffsetParent(element,polyfill){return dist_floating_ui_utils_dom_isHTMLElement(element)&&"fixed"!==dist_floating_ui_utils_dom_getComputedStyle(element).position?polyfill?polyfill(element):element.offsetParent:null}function getOffsetParent(element,polyfill){const window=dist_floating_ui_utils_dom_getWindow(element);if(!dist_floating_ui_utils_dom_isHTMLElement(element)||isTopLayer(element))return window;let offsetParent=getTrueOffsetParent(element,polyfill);for(;offsetParent&&floating_ui_utils_dom_isTableElement(offsetParent)&&"static"===dist_floating_ui_utils_dom_getComputedStyle(offsetParent).position;)offsetParent=getTrueOffsetParent(offsetParent,polyfill);return offsetParent&&("html"===dist_floating_ui_utils_dom_getNodeName(offsetParent)||"body"===dist_floating_ui_utils_dom_getNodeName(offsetParent)&&"static"===dist_floating_ui_utils_dom_getComputedStyle(offsetParent).position&&!floating_ui_utils_dom_isContainingBlock(offsetParent))?window:offsetParent||function floating_ui_utils_dom_getContainingBlock(element){let currentNode=floating_ui_utils_dom_getParentNode(element);for(;dist_floating_ui_utils_dom_isHTMLElement(currentNode)&&!floating_ui_utils_dom_isLastTraversableNode(currentNode);){if(floating_ui_utils_dom_isContainingBlock(currentNode))return currentNode;currentNode=floating_ui_utils_dom_getParentNode(currentNode)}return null}(element)||window}const floating_ui_dom_platform={convertOffsetParentRelativeRectToViewportRelativeRect:function convertOffsetParentRelativeRectToViewportRelativeRect(_ref){let{elements:elements,rect:rect,offsetParent:offsetParent,strategy:strategy}=_ref;const isFixed="fixed"===strategy,documentElement=floating_ui_utils_dom_getDocumentElement(offsetParent),topLayer=!!elements&&isTopLayer(elements.floating);if(offsetParent===documentElement||topLayer&&isFixed)return rect;let scroll={scrollLeft:0,scrollTop:0},scale=floating_ui_utils_createCoords(1);const offsets=floating_ui_utils_createCoords(0),isOffsetParentAnElement=dist_floating_ui_utils_dom_isHTMLElement(offsetParent);if((isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&(("body"!==dist_floating_ui_utils_dom_getNodeName(offsetParent)||floating_ui_utils_dom_isOverflowElement(documentElement))&&(scroll=floating_ui_utils_dom_getNodeScroll(offsetParent)),dist_floating_ui_utils_dom_isHTMLElement(offsetParent))){const offsetRect=getBoundingClientRect(offsetParent);scale=getScale(offsetParent),offsets.x=offsetRect.x+offsetParent.clientLeft,offsets.y=offsetRect.y+offsetParent.clientTop}return{width:rect.width*scale.x,height:rect.height*scale.y,x:rect.x*scale.x-scroll.scrollLeft*scale.x+offsets.x,y:rect.y*scale.y-scroll.scrollTop*scale.y+offsets.y}},getDocumentElement:floating_ui_utils_dom_getDocumentElement,getClippingRect:function getClippingRect(_ref){let{element:element,boundary:boundary,rootBoundary:rootBoundary,strategy:strategy}=_ref;const clippingAncestors=[..."clippingAncestors"===boundary?function getClippingElementAncestors(element,cache){const cachedResult=cache.get(element);if(cachedResult)return cachedResult;let result=floating_ui_utils_dom_getOverflowAncestors(element,[],!1).filter((el=>dist_floating_ui_utils_dom_isElement(el)&&"body"!==dist_floating_ui_utils_dom_getNodeName(el))),currentContainingBlockComputedStyle=null;const elementIsFixed="fixed"===dist_floating_ui_utils_dom_getComputedStyle(element).position;let currentNode=elementIsFixed?floating_ui_utils_dom_getParentNode(element):element;for(;dist_floating_ui_utils_dom_isElement(currentNode)&&!floating_ui_utils_dom_isLastTraversableNode(currentNode);){const computedStyle=dist_floating_ui_utils_dom_getComputedStyle(currentNode),currentNodeIsContaining=floating_ui_utils_dom_isContainingBlock(currentNode);currentNodeIsContaining||"fixed"!==computedStyle.position||(currentContainingBlockComputedStyle=null),(elementIsFixed?!currentNodeIsContaining&&!currentContainingBlockComputedStyle:!currentNodeIsContaining&&"static"===computedStyle.position&¤tContainingBlockComputedStyle&&["absolute","fixed"].includes(currentContainingBlockComputedStyle.position)||floating_ui_utils_dom_isOverflowElement(currentNode)&&!currentNodeIsContaining&&hasFixedPositionAncestor(element,currentNode))?result=result.filter((ancestor=>ancestor!==currentNode)):currentContainingBlockComputedStyle=computedStyle,currentNode=floating_ui_utils_dom_getParentNode(currentNode)}return cache.set(element,result),result}(element,this._c):[].concat(boundary),rootBoundary],firstClippingAncestor=clippingAncestors[0],clippingRect=clippingAncestors.reduce(((accRect,clippingAncestor)=>{const rect=getClientRectFromClippingAncestor(element,clippingAncestor,strategy);return accRect.top=dist_floating_ui_utils_max(rect.top,accRect.top),accRect.right=dist_floating_ui_utils_min(rect.right,accRect.right),accRect.bottom=dist_floating_ui_utils_min(rect.bottom,accRect.bottom),accRect.left=dist_floating_ui_utils_max(rect.left,accRect.left),accRect}),getClientRectFromClippingAncestor(element,firstClippingAncestor,strategy));return{width:clippingRect.right-clippingRect.left,height:clippingRect.bottom-clippingRect.top,x:clippingRect.left,y:clippingRect.top}},getOffsetParent:getOffsetParent,getElementRects:async function(data){const getOffsetParentFn=this.getOffsetParent||getOffsetParent,getDimensionsFn=this.getDimensions;return{reference:getRectRelativeToOffsetParent(data.reference,await getOffsetParentFn(data.floating),data.strategy),floating:{x:0,y:0,...await getDimensionsFn(data.floating)}}},getClientRects:function getClientRects(element){return Array.from(element.getClientRects())},getDimensions:function getDimensions(element){const{width:width,height:height}=getCssDimensions(element);return{width:width,height:height}},getScale:getScale,isElement:dist_floating_ui_utils_dom_isElement,isRTL:function isRTL(element){return"rtl"===dist_floating_ui_utils_dom_getComputedStyle(element).direction}};function autoUpdate(reference,floating,update,options){void 0===options&&(options={});const{ancestorScroll:ancestorScroll=!0,ancestorResize:ancestorResize=!0,elementResize:elementResize="function"==typeof ResizeObserver,layoutShift:layoutShift="function"==typeof IntersectionObserver,animationFrame:animationFrame=!1}=options,referenceEl=unwrapElement(reference),ancestors=ancestorScroll||ancestorResize?[...referenceEl?floating_ui_utils_dom_getOverflowAncestors(referenceEl):[],...floating_ui_utils_dom_getOverflowAncestors(floating)]:[];ancestors.forEach((ancestor=>{ancestorScroll&&ancestor.addEventListener("scroll",update,{passive:!0}),ancestorResize&&ancestor.addEventListener("resize",update)}));const cleanupIo=referenceEl&&layoutShift?function observeMove(element,onMove){let timeoutId,io=null;const root=floating_ui_utils_dom_getDocumentElement(element);function cleanup(){var _io;clearTimeout(timeoutId),null==(_io=io)||_io.disconnect(),io=null}return function refresh(skip,threshold){void 0===skip&&(skip=!1),void 0===threshold&&(threshold=1),cleanup();const{left:left,top:top,width:width,height:height}=element.getBoundingClientRect();if(skip||onMove(),!width||!height)return;const options={rootMargin:-dist_floating_ui_utils_floor(top)+"px "+-dist_floating_ui_utils_floor(root.clientWidth-(left+width))+"px "+-dist_floating_ui_utils_floor(root.clientHeight-(top+height))+"px "+-dist_floating_ui_utils_floor(left)+"px",threshold:dist_floating_ui_utils_max(0,dist_floating_ui_utils_min(1,threshold))||1};let isFirstUpdate=!0;function handleObserve(entries){const ratio=entries[0].intersectionRatio;if(ratio!==threshold){if(!isFirstUpdate)return refresh();ratio?refresh(!1,ratio):timeoutId=setTimeout((()=>{refresh(!1,1e-7)}),100)}isFirstUpdate=!1}try{io=new IntersectionObserver(handleObserve,{...options,root:root.ownerDocument})}catch(e){io=new IntersectionObserver(handleObserve,options)}io.observe(element)}(!0),cleanup}(referenceEl,update):null;let frameId,reobserveFrame=-1,resizeObserver=null;elementResize&&(resizeObserver=new ResizeObserver((_ref=>{let[firstEntry]=_ref;firstEntry&&firstEntry.target===referenceEl&&resizeObserver&&(resizeObserver.unobserve(floating),cancelAnimationFrame(reobserveFrame),reobserveFrame=requestAnimationFrame((()=>{var _resizeObserver;null==(_resizeObserver=resizeObserver)||_resizeObserver.observe(floating)}))),update()})),referenceEl&&!animationFrame&&resizeObserver.observe(referenceEl),resizeObserver.observe(floating));let prevRefRect=animationFrame?getBoundingClientRect(reference):null;return animationFrame&&function frameLoop(){const nextRefRect=getBoundingClientRect(reference);!prevRefRect||nextRefRect.x===prevRefRect.x&&nextRefRect.y===prevRefRect.y&&nextRefRect.width===prevRefRect.width&&nextRefRect.height===prevRefRect.height||update();prevRefRect=nextRefRect,frameId=requestAnimationFrame(frameLoop)}(),update(),()=>{var _resizeObserver2;ancestors.forEach((ancestor=>{ancestorScroll&&ancestor.removeEventListener("scroll",update),ancestorResize&&ancestor.removeEventListener("resize",update)})),null==cleanupIo||cleanupIo(),null==(_resizeObserver2=resizeObserver)||_resizeObserver2.disconnect(),resizeObserver=null,animationFrame&&cancelAnimationFrame(frameId)}}const floating_ui_dom_shift=function(options){return void 0===options&&(options={}),{name:"shift",options:options,async fn(state){const{x:x,y:y,placement:placement}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!1,limiter:limiter={fn:_ref=>{let{x:x,y:y}=_ref;return{x:x,y:y}}},...detectOverflowOptions}=floating_ui_utils_evaluate(options,state),coords={x:x,y:y},overflow=await floating_ui_core_detectOverflow(state,detectOverflowOptions),crossAxis=floating_ui_utils_getSideAxis(floating_ui_utils_getSide(placement)),mainAxis=floating_ui_utils_getOppositeAxis(crossAxis);let mainAxisCoord=coords[mainAxis],crossAxisCoord=coords[crossAxis];if(checkMainAxis){const maxSide="y"===mainAxis?"bottom":"right";mainAxisCoord=clamp(mainAxisCoord+overflow["y"===mainAxis?"top":"left"],mainAxisCoord,mainAxisCoord-overflow[maxSide])}if(checkCrossAxis){const maxSide="y"===crossAxis?"bottom":"right";crossAxisCoord=clamp(crossAxisCoord+overflow["y"===crossAxis?"top":"left"],crossAxisCoord,crossAxisCoord-overflow[maxSide])}const limitedCoords=limiter.fn({...state,[mainAxis]:mainAxisCoord,[crossAxis]:crossAxisCoord});return{...limitedCoords,data:{x:limitedCoords.x-x,y:limitedCoords.y-y}}}}},floating_ui_dom_flip=function(options){return void 0===options&&(options={}),{name:"flip",options:options,async fn(state){var _middlewareData$arrow,_middlewareData$flip;const{placement:placement,middlewareData:middlewareData,rects:rects,initialPlacement:initialPlacement,platform:platform,elements:elements}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!0,fallbackPlacements:specifiedFallbackPlacements,fallbackStrategy:fallbackStrategy="bestFit",fallbackAxisSideDirection:fallbackAxisSideDirection="none",flipAlignment:flipAlignment=!0,...detectOverflowOptions}=floating_ui_utils_evaluate(options,state);if(null!=(_middlewareData$arrow=middlewareData.arrow)&&_middlewareData$arrow.alignmentOffset)return{};const side=floating_ui_utils_getSide(placement),isBasePlacement=floating_ui_utils_getSide(initialPlacement)===initialPlacement,rtl=await(null==platform.isRTL?void 0:platform.isRTL(elements.floating)),fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement(initialPlacement)]:function getExpandedPlacements(placement){const oppositePlacement=getOppositePlacement(placement);return[floating_ui_utils_getOppositeAlignmentPlacement(placement),oppositePlacement,floating_ui_utils_getOppositeAlignmentPlacement(oppositePlacement)]}(initialPlacement));specifiedFallbackPlacements||"none"===fallbackAxisSideDirection||fallbackPlacements.push(...function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){const alignment=floating_ui_utils_getAlignment(placement);let list=function getSideList(side,isStart,rtl){const lr=["left","right"],rl=["right","left"],tb=["top","bottom"],bt=["bottom","top"];switch(side){case"top":case"bottom":return rtl?isStart?rl:lr:isStart?lr:rl;case"left":case"right":return isStart?tb:bt;default:return[]}}(floating_ui_utils_getSide(placement),"start"===direction,rtl);return alignment&&(list=list.map((side=>side+"-"+alignment)),flipAlignment&&(list=list.concat(list.map(floating_ui_utils_getOppositeAlignmentPlacement)))),list}(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl));const placements=[initialPlacement,...fallbackPlacements],overflow=await floating_ui_core_detectOverflow(state,detectOverflowOptions),overflows=[];let overflowsData=(null==(_middlewareData$flip=middlewareData.flip)?void 0:_middlewareData$flip.overflows)||[];if(checkMainAxis&&overflows.push(overflow[side]),checkCrossAxis){const sides=function floating_ui_utils_getAlignmentSides(placement,rects,rtl){void 0===rtl&&(rtl=!1);const alignment=floating_ui_utils_getAlignment(placement),alignmentAxis=getAlignmentAxis(placement),length=getAxisLength(alignmentAxis);let mainAlignmentSide="x"===alignmentAxis?alignment===(rtl?"end":"start")?"right":"left":"start"===alignment?"bottom":"top";return rects.reference[length]>rects.floating[length]&&(mainAlignmentSide=getOppositePlacement(mainAlignmentSide)),[mainAlignmentSide,getOppositePlacement(mainAlignmentSide)]}(placement,rects,rtl);overflows.push(overflow[sides[0]],overflow[sides[1]])}if(overflowsData=[...overflowsData,{placement:placement,overflows:overflows}],!overflows.every((side=>side<=0))){var _middlewareData$flip2,_overflowsData$filter;const nextIndex=((null==(_middlewareData$flip2=middlewareData.flip)?void 0:_middlewareData$flip2.index)||0)+1,nextPlacement=placements[nextIndex];if(nextPlacement)return{data:{index:nextIndex,overflows:overflowsData},reset:{placement:nextPlacement}};let resetPlacement=null==(_overflowsData$filter=overflowsData.filter((d=>d.overflows[0]<=0)).sort(((a,b)=>a.overflows[1]-b.overflows[1]))[0])?void 0:_overflowsData$filter.placement;if(!resetPlacement)switch(fallbackStrategy){case"bestFit":{var _overflowsData$map$so;const placement=null==(_overflowsData$map$so=overflowsData.map((d=>[d.placement,d.overflows.filter((overflow=>overflow>0)).reduce(((acc,overflow)=>acc+overflow),0)])).sort(((a,b)=>a[1]-b[1]))[0])?void 0:_overflowsData$map$so[0];placement&&(resetPlacement=placement);break}case"initialPlacement":resetPlacement=initialPlacement}if(placement!==resetPlacement)return{reset:{placement:resetPlacement}}}return{}}}},floating_ui_dom_arrow=options=>({name:"arrow",options:options,async fn(state){const{x:x,y:y,placement:placement,rects:rects,platform:platform,elements:elements,middlewareData:middlewareData}=state,{element:element,padding:padding=0}=floating_ui_utils_evaluate(options,state)||{};if(null==element)return{};const paddingObject=floating_ui_utils_getPaddingObject(padding),coords={x:x,y:y},axis=getAlignmentAxis(placement),length=getAxisLength(axis),arrowDimensions=await platform.getDimensions(element),isYAxis="y"===axis,minProp=isYAxis?"top":"left",maxProp=isYAxis?"bottom":"right",clientProp=isYAxis?"clientHeight":"clientWidth",endDiff=rects.reference[length]+rects.reference[axis]-coords[axis]-rects.floating[length],startDiff=coords[axis]-rects.reference[axis],arrowOffsetParent=await(null==platform.getOffsetParent?void 0:platform.getOffsetParent(element));let clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;clientSize&&await(null==platform.isElement?void 0:platform.isElement(arrowOffsetParent))||(clientSize=elements.floating[clientProp]||rects.floating[length]);const centerToReference=endDiff/2-startDiff/2,largestPossiblePadding=clientSize/2-arrowDimensions[length]/2-1,minPadding=floating_ui_utils_min(paddingObject[minProp],largestPossiblePadding),maxPadding=floating_ui_utils_min(paddingObject[maxProp],largestPossiblePadding),min$1=minPadding,max=clientSize-arrowDimensions[length]-maxPadding,center=clientSize/2-arrowDimensions[length]/2+centerToReference,offset=clamp(min$1,center,max),shouldAddOffset=!middlewareData.arrow&&null!=floating_ui_utils_getAlignment(placement)&¢er!==offset&&rects.reference[length]/2-(center{const cache=new Map,mergedOptions={platform:floating_ui_dom_platform,...options},platformWithCache={...mergedOptions.platform,_c:cache};return(async(reference,floating,config)=>{const{placement:placement="bottom",strategy:strategy="absolute",middleware:middleware=[],platform:platform}=config,validMiddleware=middleware.filter(Boolean),rtl=await(null==platform.isRTL?void 0:platform.isRTL(floating));let rects=await platform.getElementRects({reference:reference,floating:floating,strategy:strategy}),{x:x,y:y}=computeCoordsFromPlacement(rects,placement,rtl),statefulPlacement=placement,middlewareData={},resetCount=0;for(let i=0;i{ref.current=value})),ref}const arrow$1=options=>({name:"arrow",options:options,fn(state){const{element:element,padding:padding}="function"==typeof options?options(state):options;return element&&function isRef(value){return{}.hasOwnProperty.call(value,"current")}(element)?null!=element.current?floating_ui_dom_arrow({element:element.current,padding:padding}).fn(state):{}:element?floating_ui_dom_arrow({element:element,padding:padding}).fn(state):{}}}),floating_ui_react_dom_shift=(options,deps)=>({...floating_ui_dom_shift(options),options:[options,deps]}),floating_ui_react_dom_flip=(options,deps)=>({...floating_ui_dom_flip(options),options:[options,deps]}),floating_ui_react_dom_arrow=(options,deps)=>({...arrow$1(options),options:[options,deps]});var candidateSelectors=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],candidateSelector=candidateSelectors.join(","),NoElement="undefined"==typeof Element,matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,getRootNode=!NoElement&&Element.prototype.getRootNode?function(element){var _element$getRootNode;return null==element||null===(_element$getRootNode=element.getRootNode)||void 0===_element$getRootNode?void 0:_element$getRootNode.call(element)}:function(element){return null==element?void 0:element.ownerDocument},isInert=function isInert(node,lookUp){var _node$getAttribute;void 0===lookUp&&(lookUp=!0);var inertAtt=null==node||null===(_node$getAttribute=node.getAttribute)||void 0===_node$getAttribute?void 0:_node$getAttribute.call(node,"inert");return""===inertAtt||"true"===inertAtt||lookUp&&node&&isInert(node.parentNode)},getCandidates=function getCandidates(el,includeContainer,filter){if(isInert(el))return[];var candidates=Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));return includeContainer&&matches.call(el,candidateSelector)&&candidates.unshift(el),candidates=candidates.filter(filter)},getCandidatesIteratively=function getCandidatesIteratively(elements,includeContainer,options){for(var candidates=[],elementsToCheck=Array.from(elements);elementsToCheck.length;){var element=elementsToCheck.shift();if(!isInert(element,!1))if("SLOT"===element.tagName){var assigned=element.assignedElements(),nestedCandidates=getCandidatesIteratively(assigned.length?assigned:element.children,!0,options);options.flatten?candidates.push.apply(candidates,nestedCandidates):candidates.push({scopeParent:element,candidates:nestedCandidates})}else{matches.call(element,candidateSelector)&&options.filter(element)&&(includeContainer||!elements.includes(element))&&candidates.push(element);var shadowRoot=element.shadowRoot||"function"==typeof options.getShadowRoot&&options.getShadowRoot(element),validShadowRoot=!isInert(shadowRoot,!1)&&(!options.shadowRootFilter||options.shadowRootFilter(element));if(shadowRoot&&validShadowRoot){var _nestedCandidates=getCandidatesIteratively(!0===shadowRoot?element.children:shadowRoot.children,!0,options);options.flatten?candidates.push.apply(candidates,_nestedCandidates):candidates.push({scopeParent:element,candidates:_nestedCandidates})}else elementsToCheck.unshift.apply(elementsToCheck,element.children)}}return candidates},hasTabIndex=function hasTabIndex(node){return!isNaN(parseInt(node.getAttribute("tabindex"),10))},getTabIndex=function getTabIndex(node){if(!node)throw new Error("No node provided");return node.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName)||function isContentEditable(node){var _node$getAttribute2,attValue=null==node||null===(_node$getAttribute2=node.getAttribute)||void 0===_node$getAttribute2?void 0:_node$getAttribute2.call(node,"contenteditable");return""===attValue||"true"===attValue}(node))&&!hasTabIndex(node)?0:node.tabIndex},sortOrderedTabbables=function sortOrderedTabbables(a,b){return a.tabIndex===b.tabIndex?a.documentOrder-b.documentOrder:a.tabIndex-b.tabIndex},isInput=function isInput(node){return"INPUT"===node.tagName},isNonTabbableRadio=function isNonTabbableRadio(node){return function isRadio(node){return isInput(node)&&"radio"===node.type}(node)&&!function isTabbableRadio(node){if(!node.name)return!0;var radioSet,radioScope=node.form||getRootNode(node),queryRadios=function queryRadios(name){return radioScope.querySelectorAll('input[type="radio"][name="'+name+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)radioSet=queryRadios(window.CSS.escape(node.name));else try{radioSet=queryRadios(node.name)}catch(err){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",err.message),!1}var checked=function getCheckedRadio(nodes,form){for(var i=0;isummary:first-of-type")?node.parentElement:node;if(matches.call(nodeUnderDetails,"details:not([open]) *"))return!0;if(displayCheck&&"full"!==displayCheck&&"legacy-full"!==displayCheck){if("non-zero-area"===displayCheck)return isZeroArea(node)}else{if("function"==typeof getShadowRoot){for(var originalNode=node;node;){var parentElement=node.parentElement,rootNode=getRootNode(node);if(parentElement&&!parentElement.shadowRoot&&!0===getShadowRoot(parentElement))return isZeroArea(node);node=node.assignedSlot?node.assignedSlot:parentElement||rootNode===node.ownerDocument?parentElement:rootNode.host}node=originalNode}if(function isNodeAttached(node){var _nodeRoot,_nodeRootHost,_nodeRootHost$ownerDo,_node$ownerDocument,nodeRoot=node&&getRootNode(node),nodeRootHost=null===(_nodeRoot=nodeRoot)||void 0===_nodeRoot?void 0:_nodeRoot.host,attached=!1;if(nodeRoot&&nodeRoot!==node)for(attached=!!(null!==(_nodeRootHost=nodeRootHost)&&void 0!==_nodeRootHost&&null!==(_nodeRootHost$ownerDo=_nodeRootHost.ownerDocument)&&void 0!==_nodeRootHost$ownerDo&&_nodeRootHost$ownerDo.contains(nodeRootHost)||null!=node&&null!==(_node$ownerDocument=node.ownerDocument)&&void 0!==_node$ownerDocument&&_node$ownerDocument.contains(node));!attached&&nodeRootHost;){var _nodeRoot2,_nodeRootHost2,_nodeRootHost2$ownerD;attached=!(null===(_nodeRootHost2=nodeRootHost=null===(_nodeRoot2=nodeRoot=getRootNode(nodeRootHost))||void 0===_nodeRoot2?void 0:_nodeRoot2.host)||void 0===_nodeRootHost2||null===(_nodeRootHost2$ownerD=_nodeRootHost2.ownerDocument)||void 0===_nodeRootHost2$ownerD||!_nodeRootHost2$ownerD.contains(nodeRootHost))}return attached}(node))return!node.getClientRects().length;if("legacy-full"!==displayCheck)return!0}return!1},isNodeMatchingSelectorFocusable=function isNodeMatchingSelectorFocusable(options,node){return!(node.disabled||isInert(node)||function isHiddenInput(node){return isInput(node)&&"hidden"===node.type}(node)||isHidden(node,options)||function isDetailsWithSummary(node){return"DETAILS"===node.tagName&&Array.prototype.slice.apply(node.children).some((function(child){return"SUMMARY"===child.tagName}))}(node)||function isDisabledFromFieldset(node){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName))for(var parentNode=node.parentElement;parentNode;){if("FIELDSET"===parentNode.tagName&&parentNode.disabled){for(var i=0;i=0)},sortByOrder=function sortByOrder(candidates){var regularTabbables=[],orderedTabbables=[];return candidates.forEach((function(item,i){var isScope=!!item.scopeParent,element=isScope?item.scopeParent:item,candidateTabindex=function getSortOrderTabIndex(node,isScope){var tabIndex=getTabIndex(node);return tabIndex<0&&isScope&&!hasTabIndex(node)?0:tabIndex}(element,isScope),elements=isScope?sortByOrder(item.candidates):element;0===candidateTabindex?isScope?regularTabbables.push.apply(regularTabbables,elements):regularTabbables.push(element):orderedTabbables.push({documentOrder:i,tabIndex:candidateTabindex,item:item,isScope:isScope,content:elements})})),orderedTabbables.sort(sortOrderedTabbables).reduce((function(acc,sortable){return sortable.isScope?acc.push.apply(acc,sortable.content):acc.push(sortable.content),acc}),[]).concat(regularTabbables)},index_esm_tabbable=function tabbable(container,options){var candidates;return candidates=(options=options||{}).getShadowRoot?getCandidatesIteratively([container],options.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,options),flatten:!1,getShadowRoot:options.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):getCandidates(container,options.includeContainer,isNodeMatchingSelectorTabbable.bind(null,options)),sortByOrder(candidates)};const SafeReact={...react_namespaceObject},useSafeInsertionEffect=SafeReact.useInsertionEffect||(fn=>fn());function useEffectEvent(callback){const ref=react.useRef((()=>{0}));return useSafeInsertionEffect((()=>{ref.current=callback})),react.useCallback((function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return null==ref.current?void 0:ref.current(...args)}),[])}const ARROW_UP="ArrowUp",ARROW_DOWN="ArrowDown",ARROW_LEFT="ArrowLeft",ARROW_RIGHT="ArrowRight";var floating_ui_react_index="undefined"!=typeof document?react.useLayoutEffect:react.useEffect;const horizontalKeys=[ARROW_LEFT,ARROW_RIGHT],verticalKeys=[ARROW_UP,ARROW_DOWN];function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i"floating-ui-"+Math.random().toString(36).slice(2,6)+count++;const useId=SafeReact.useId||function useFloatingId(){const[id,setId]=react.useState((()=>serverHandoffComplete?genId():void 0));return floating_ui_react_index((()=>{null==id&&setId(genId())}),[]),react.useEffect((()=>{serverHandoffComplete=!0}),[]),id};function createPubSub(){const map=new Map;return{emit(event,data){var _map$get;null==(_map$get=map.get(event))||_map$get.forEach((handler=>handler(data)))},on(event,listener){map.set(event,[...map.get(event)||[],listener])},off(event,listener){var _map$get2;map.set(event,(null==(_map$get2=map.get(event))?void 0:_map$get2.filter((l=>l!==listener)))||[])}}}const FloatingNodeContext=react.createContext(null),FloatingTreeContext=react.createContext(null),useFloatingParentNodeId=()=>{var _React$useContext;return(null==(_React$useContext=react.useContext(FloatingNodeContext))?void 0:_React$useContext.id)||null},useFloatingTree=()=>react.useContext(FloatingTreeContext);function createAttribute(name){return"data-floating-ui-"+name}function floating_ui_react_useLatestRef(value){const ref=(0,react.useRef)(value);return floating_ui_react_index((()=>{ref.current=value})),ref}const safePolygonIdentifier=createAttribute("safe-polygon");function getDelay(value,prop,pointerType){return pointerType&&!floating_ui_react_utils_isMouseLikePointerType(pointerType)?0:"number"==typeof value?value:null==value?void 0:value[prop]}function useHover(context,props){void 0===props&&(props={});const{open:open,onOpenChange:onOpenChange,dataRef:dataRef,events:events,elements:{domReference:domReference,floating:floating}}=context,{enabled:enabled=!0,delay:delay=0,handleClose:handleClose=null,mouseOnly:mouseOnly=!1,restMs:restMs=0,move:move=!0}=props,tree=useFloatingTree(),parentId=useFloatingParentNodeId(),handleCloseRef=floating_ui_react_useLatestRef(handleClose),delayRef=floating_ui_react_useLatestRef(delay),pointerTypeRef=react.useRef(),timeoutRef=react.useRef(-1),handlerRef=react.useRef(),restTimeoutRef=react.useRef(-1),blockMouseMoveRef=react.useRef(!0),performedPointerEventsMutationRef=react.useRef(!1),unbindMouseMoveRef=react.useRef((()=>{})),isHoverOpen=react.useCallback((()=>{var _dataRef$current$open;const type=null==(_dataRef$current$open=dataRef.current.openEvent)?void 0:_dataRef$current$open.type;return(null==type?void 0:type.includes("mouse"))&&"mousedown"!==type}),[dataRef]);react.useEffect((()=>{if(enabled)return events.on("openchange",onOpenChange),()=>{events.off("openchange",onOpenChange)};function onOpenChange(_ref){let{open:open}=_ref;open||(clearTimeout(timeoutRef.current),clearTimeout(restTimeoutRef.current),blockMouseMoveRef.current=!0)}}),[enabled,events]),react.useEffect((()=>{if(!enabled||!handleCloseRef.current||!open)return;function onLeave(event){isHoverOpen()&&onOpenChange(!1,event,"hover")}const html=floating_ui_react_utils_getDocument(floating).documentElement;return html.addEventListener("mouseleave",onLeave),()=>{html.removeEventListener("mouseleave",onLeave)}}),[floating,open,onOpenChange,enabled,handleCloseRef,isHoverOpen]);const closeWithDelay=react.useCallback((function(event,runElseBranch,reason){void 0===runElseBranch&&(runElseBranch=!0),void 0===reason&&(reason="hover");const closeDelay=getDelay(delayRef.current,"close",pointerTypeRef.current);closeDelay&&!handlerRef.current?(clearTimeout(timeoutRef.current),timeoutRef.current=window.setTimeout((()=>onOpenChange(!1,event,reason)),closeDelay)):runElseBranch&&(clearTimeout(timeoutRef.current),onOpenChange(!1,event,reason))}),[delayRef,onOpenChange]),cleanupMouseMoveHandler=useEffectEvent((()=>{unbindMouseMoveRef.current(),handlerRef.current=void 0})),clearPointerEvents=useEffectEvent((()=>{if(performedPointerEventsMutationRef.current){const body=floating_ui_react_utils_getDocument(floating).body;body.style.pointerEvents="",body.removeAttribute(safePolygonIdentifier),performedPointerEventsMutationRef.current=!1}}));return react.useEffect((()=>{if(enabled&&floating_ui_utils_dom_isElement(domReference)){const ref=domReference;return open&&ref.addEventListener("mouseleave",onScrollMouseLeave),null==floating||floating.addEventListener("mouseleave",onScrollMouseLeave),move&&ref.addEventListener("mousemove",onMouseEnter,{once:!0}),ref.addEventListener("mouseenter",onMouseEnter),ref.addEventListener("mouseleave",onMouseLeave),()=>{open&&ref.removeEventListener("mouseleave",onScrollMouseLeave),null==floating||floating.removeEventListener("mouseleave",onScrollMouseLeave),move&&ref.removeEventListener("mousemove",onMouseEnter),ref.removeEventListener("mouseenter",onMouseEnter),ref.removeEventListener("mouseleave",onMouseLeave)}}function isClickLikeOpenEvent(){return!!dataRef.current.openEvent&&["click","mousedown"].includes(dataRef.current.openEvent.type)}function onMouseEnter(event){if(clearTimeout(timeoutRef.current),blockMouseMoveRef.current=!1,mouseOnly&&!floating_ui_react_utils_isMouseLikePointerType(pointerTypeRef.current)||restMs>0&&!getDelay(delayRef.current,"open"))return;const openDelay=getDelay(delayRef.current,"open",pointerTypeRef.current);openDelay?timeoutRef.current=window.setTimeout((()=>{onOpenChange(!0,event,"hover")}),openDelay):onOpenChange(!0,event,"hover")}function onMouseLeave(event){if(isClickLikeOpenEvent())return;unbindMouseMoveRef.current();const doc=floating_ui_react_utils_getDocument(floating);if(clearTimeout(restTimeoutRef.current),handleCloseRef.current&&dataRef.current.floatingContext){open||clearTimeout(timeoutRef.current),handlerRef.current=handleCloseRef.current({...dataRef.current.floatingContext,tree:tree,x:event.clientX,y:event.clientY,onClose(){clearPointerEvents(),cleanupMouseMoveHandler(),closeWithDelay(event,!0,"safe-polygon")}});const handler=handlerRef.current;return doc.addEventListener("mousemove",handler),void(unbindMouseMoveRef.current=()=>{doc.removeEventListener("mousemove",handler)})}("touch"!==pointerTypeRef.current||!floating_ui_react_utils_contains(floating,event.relatedTarget))&&closeWithDelay(event)}function onScrollMouseLeave(event){isClickLikeOpenEvent()||dataRef.current.floatingContext&&(null==handleCloseRef.current||handleCloseRef.current({...dataRef.current.floatingContext,tree:tree,x:event.clientX,y:event.clientY,onClose(){clearPointerEvents(),cleanupMouseMoveHandler(),closeWithDelay(event)}})(event))}}),[domReference,floating,enabled,context,mouseOnly,restMs,move,closeWithDelay,cleanupMouseMoveHandler,clearPointerEvents,onOpenChange,open,tree,delayRef,handleCloseRef,dataRef]),floating_ui_react_index((()=>{var _handleCloseRef$curre;if(enabled&&open&&null!=(_handleCloseRef$curre=handleCloseRef.current)&&_handleCloseRef$curre.__options.blockPointerEvents&&isHoverOpen()){const body=floating_ui_react_utils_getDocument(floating).body;if(body.setAttribute(safePolygonIdentifier,""),body.style.pointerEvents="none",performedPointerEventsMutationRef.current=!0,floating_ui_utils_dom_isElement(domReference)&&floating){var _tree$nodesRef$curren;const ref=domReference,parentFloating=null==tree||null==(_tree$nodesRef$curren=tree.nodesRef.current.find((node=>node.id===parentId)))||null==(_tree$nodesRef$curren=_tree$nodesRef$curren.context)?void 0:_tree$nodesRef$curren.elements.floating;return parentFloating&&(parentFloating.style.pointerEvents=""),ref.style.pointerEvents="auto",floating.style.pointerEvents="auto",()=>{ref.style.pointerEvents="",floating.style.pointerEvents=""}}}}),[enabled,open,parentId,floating,domReference,tree,handleCloseRef,isHoverOpen]),floating_ui_react_index((()=>{open||(pointerTypeRef.current=void 0,cleanupMouseMoveHandler(),clearPointerEvents())}),[open,cleanupMouseMoveHandler,clearPointerEvents]),react.useEffect((()=>()=>{cleanupMouseMoveHandler(),clearTimeout(timeoutRef.current),clearTimeout(restTimeoutRef.current),clearPointerEvents()}),[enabled,domReference,cleanupMouseMoveHandler,clearPointerEvents]),react.useMemo((()=>{if(!enabled)return{};function setPointerRef(event){pointerTypeRef.current=event.pointerType}return{reference:{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(event){function handleMouseMove(){blockMouseMoveRef.current||onOpenChange(!0,event.nativeEvent,"hover")}mouseOnly&&!floating_ui_react_utils_isMouseLikePointerType(pointerTypeRef.current)||open||0===restMs||(clearTimeout(restTimeoutRef.current),"touch"===pointerTypeRef.current?handleMouseMove():restTimeoutRef.current=window.setTimeout(handleMouseMove,restMs))}},floating:{onMouseEnter(){clearTimeout(timeoutRef.current)},onMouseLeave(event){closeWithDelay(event.nativeEvent,!1)}}}}),[enabled,mouseOnly,open,restMs,onOpenChange,closeWithDelay])}function getChildren(nodes,id){let allChildren=nodes.filter((node=>{var _node$context;return node.parentId===id&&(null==(_node$context=node.context)?void 0:_node$context.open)})),currentChildren=allChildren;for(;currentChildren.length;)currentChildren=nodes.filter((node=>{var _currentChildren;return null==(_currentChildren=currentChildren)?void 0:_currentChildren.some((n=>{var _node$context2;return node.parentId===n.id&&(null==(_node$context2=node.context)?void 0:_node$context2.open)}))})),allChildren=allChildren.concat(currentChildren);return allChildren}const getTabbableOptions=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function getTabbableIn(container,direction){const allTabbable=index_esm_tabbable(container,getTabbableOptions());"prev"===direction&&allTabbable.reverse();const activeIndex=allTabbable.indexOf(floating_ui_react_utils_activeElement(floating_ui_react_utils_getDocument(container)));return allTabbable.slice(activeIndex+1)[0]}function getNextTabbable(){return getTabbableIn(document.body,"next")}function getPreviousTabbable(){return getTabbableIn(document.body,"prev")}function isOutsideEvent(event,container){const containerElement=container||event.currentTarget,relatedTarget=event.relatedTarget;return!relatedTarget||!floating_ui_react_utils_contains(containerElement,relatedTarget)}function disableFocusInside(container){index_esm_tabbable(container,getTabbableOptions()).forEach((element=>{element.dataset.tabindex=element.getAttribute("tabindex")||"",element.setAttribute("tabindex","-1")}))}function enableFocusInside(container){container.querySelectorAll("[data-tabindex]").forEach((element=>{const tabindex=element.dataset.tabindex;delete element.dataset.tabindex,tabindex?element.setAttribute("tabindex",tabindex):element.removeAttribute("tabindex")}))}const HIDDEN_STYLES={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function setActiveElementOnTab(event){"Tab"===event.key&&(event.target,clearTimeout(undefined))}const FocusGuard=react.forwardRef((function FocusGuard(props,ref){const[role,setRole]=react.useState();floating_ui_react_index((()=>(floating_ui_react_utils_isSafari()&&setRole("button"),document.addEventListener("keydown",setActiveElementOnTab),()=>{document.removeEventListener("keydown",setActiveElementOnTab)})),[]);const restProps={ref:ref,tabIndex:0,role:role,"aria-hidden":!role||void 0,[createAttribute("focus-guard")]:"",style:HIDDEN_STYLES};return react.createElement("span",_extends({},props,restProps))})),PortalContext=react.createContext(null),attr=createAttribute("portal");function FloatingPortal(props){const{children:children,id:id,root:root=null,preserveTabOrder:preserveTabOrder=!0}=props,portalNode=function useFloatingPortalNode(props){void 0===props&&(props={});const{id:id,root:root}=props,uniqueId=useId(),portalContext=usePortalContext(),[portalNode,setPortalNode]=react.useState(null),portalNodeRef=react.useRef(null);return floating_ui_react_index((()=>()=>{null==portalNode||portalNode.remove(),queueMicrotask((()=>{portalNodeRef.current=null}))}),[portalNode]),floating_ui_react_index((()=>{if(!uniqueId)return;if(portalNodeRef.current)return;const existingIdRoot=id?document.getElementById(id):null;if(!existingIdRoot)return;const subRoot=document.createElement("div");subRoot.id=uniqueId,subRoot.setAttribute(attr,""),existingIdRoot.appendChild(subRoot),portalNodeRef.current=subRoot,setPortalNode(subRoot)}),[id,uniqueId]),floating_ui_react_index((()=>{if(!uniqueId)return;if(portalNodeRef.current)return;let container=root||(null==portalContext?void 0:portalContext.portalNode);container&&!floating_ui_utils_dom_isElement(container)&&(container=container.current),container=container||document.body;let idWrapper=null;id&&(idWrapper=document.createElement("div"),idWrapper.id=id,container.appendChild(idWrapper));const subRoot=document.createElement("div");subRoot.id=uniqueId,subRoot.setAttribute(attr,""),container=idWrapper||container,container.appendChild(subRoot),portalNodeRef.current=subRoot,setPortalNode(subRoot)}),[id,root,uniqueId,portalContext]),portalNode}({id:id,root:root}),[focusManagerState,setFocusManagerState]=react.useState(null),beforeOutsideRef=react.useRef(null),afterOutsideRef=react.useRef(null),beforeInsideRef=react.useRef(null),afterInsideRef=react.useRef(null),shouldRenderGuards=!!focusManagerState&&!focusManagerState.modal&&focusManagerState.open&&preserveTabOrder&&!(!root&&!portalNode);return react.useEffect((()=>{if(portalNode&&preserveTabOrder&&(null==focusManagerState||!focusManagerState.modal))return portalNode.addEventListener("focusin",onFocus,!0),portalNode.addEventListener("focusout",onFocus,!0),()=>{portalNode.removeEventListener("focusin",onFocus,!0),portalNode.removeEventListener("focusout",onFocus,!0)};function onFocus(event){if(portalNode&&isOutsideEvent(event)){("focusin"===event.type?enableFocusInside:disableFocusInside)(portalNode)}}}),[portalNode,preserveTabOrder,null==focusManagerState?void 0:focusManagerState.modal]),react.createElement(PortalContext.Provider,{value:react.useMemo((()=>({preserveTabOrder:preserveTabOrder,beforeOutsideRef:beforeOutsideRef,afterOutsideRef:afterOutsideRef,beforeInsideRef:beforeInsideRef,afterInsideRef:afterInsideRef,portalNode:portalNode,setFocusManagerState:setFocusManagerState})),[preserveTabOrder,portalNode])},shouldRenderGuards&&portalNode&&react.createElement(FocusGuard,{"data-type":"outside",ref:beforeOutsideRef,onFocus:event=>{if(isOutsideEvent(event,portalNode)){var _beforeInsideRef$curr;null==(_beforeInsideRef$curr=beforeInsideRef.current)||_beforeInsideRef$curr.focus()}else{const prevTabbable=getPreviousTabbable()||(null==focusManagerState?void 0:focusManagerState.refs.domReference.current);null==prevTabbable||prevTabbable.focus()}}}),shouldRenderGuards&&portalNode&&react.createElement("span",{"aria-owns":portalNode.id,style:HIDDEN_STYLES}),portalNode&&(0,react_dom.createPortal)(children,portalNode),shouldRenderGuards&&portalNode&&react.createElement(FocusGuard,{"data-type":"outside",ref:afterOutsideRef,onFocus:event=>{if(isOutsideEvent(event,portalNode)){var _afterInsideRef$curre;null==(_afterInsideRef$curre=afterInsideRef.current)||_afterInsideRef$curre.focus()}else{const nextTabbable=getNextTabbable()||(null==focusManagerState?void 0:focusManagerState.refs.domReference.current);null==nextTabbable||nextTabbable.focus(),(null==focusManagerState?void 0:focusManagerState.closeOnFocusOut)&&(null==focusManagerState||focusManagerState.onOpenChange(!1,event.nativeEvent))}}}))}const usePortalContext=()=>react.useContext(PortalContext);const bubbleHandlerKeys={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},captureHandlerKeys={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},normalizeProp=normalizable=>{var _normalizable$escapeK,_normalizable$outside;return{escapeKey:"boolean"==typeof normalizable?normalizable:null!=(_normalizable$escapeK=null==normalizable?void 0:normalizable.escapeKey)&&_normalizable$escapeK,outsidePress:"boolean"==typeof normalizable?normalizable:null==(_normalizable$outside=null==normalizable?void 0:normalizable.outsidePress)||_normalizable$outside}};function useDismiss(context,props){void 0===props&&(props={});const{open:open,onOpenChange:onOpenChange,elements:{reference:reference,domReference:domReference,floating:floating},dataRef:dataRef}=context,{enabled:enabled=!0,escapeKey:escapeKey=!0,outsidePress:unstable_outsidePress=!0,outsidePressEvent:outsidePressEvent="pointerdown",referencePress:referencePress=!1,referencePressEvent:referencePressEvent="pointerdown",ancestorScroll:ancestorScroll=!1,bubbles:bubbles,capture:capture}=props,tree=useFloatingTree(),outsidePressFn=useEffectEvent("function"==typeof unstable_outsidePress?unstable_outsidePress:()=>!1),outsidePress="function"==typeof unstable_outsidePress?outsidePressFn:unstable_outsidePress,insideReactTreeRef=react.useRef(!1),endedOrStartedInsideRef=react.useRef(!1),{escapeKey:escapeKeyBubbles,outsidePress:outsidePressBubbles}=normalizeProp(bubbles),{escapeKey:escapeKeyCapture,outsidePress:outsidePressCapture}=normalizeProp(capture),closeOnEscapeKeyDown=useEffectEvent((event=>{var _dataRef$current$floa;if(!open||!enabled||!escapeKey||"Escape"!==event.key)return;const nodeId=null==(_dataRef$current$floa=dataRef.current.floatingContext)?void 0:_dataRef$current$floa.nodeId,children=tree?getChildren(tree.nodesRef.current,nodeId):[];if(!escapeKeyBubbles&&(event.stopPropagation(),children.length>0)){let shouldDismiss=!0;if(children.forEach((child=>{var _child$context;null==(_child$context=child.context)||!_child$context.open||child.context.dataRef.current.__escapeKeyBubbles||(shouldDismiss=!1)})),!shouldDismiss)return}onOpenChange(!1,function isReactEvent(event){return"nativeEvent"in event}(event)?event.nativeEvent:event,"escape-key")})),closeOnEscapeKeyDownCapture=useEffectEvent((event=>{var _getTarget2;const callback=()=>{var _getTarget;closeOnEscapeKeyDown(event),null==(_getTarget=floating_ui_react_utils_getTarget(event))||_getTarget.removeEventListener("keydown",callback)};null==(_getTarget2=floating_ui_react_utils_getTarget(event))||_getTarget2.addEventListener("keydown",callback)})),closeOnPressOutside=useEffectEvent((event=>{var _dataRef$current$floa2;const insideReactTree=insideReactTreeRef.current;insideReactTreeRef.current=!1;const endedOrStartedInside=endedOrStartedInsideRef.current;if(endedOrStartedInsideRef.current=!1,"click"===outsidePressEvent&&endedOrStartedInside)return;if(insideReactTree)return;if("function"==typeof outsidePress&&!outsidePress(event))return;const target=floating_ui_react_utils_getTarget(event),inertSelector="["+createAttribute("inert")+"]",markers=floating_ui_react_utils_getDocument(floating).querySelectorAll(inertSelector);let targetRootAncestor=floating_ui_utils_dom_isElement(target)?target:null;for(;targetRootAncestor&&!isLastTraversableNode(targetRootAncestor);){const nextParent=getParentNode(targetRootAncestor);if(isLastTraversableNode(nextParent)||!floating_ui_utils_dom_isElement(nextParent))break;targetRootAncestor=nextParent}if(markers.length&&floating_ui_utils_dom_isElement(target)&&!function isRootElement(element){return element.matches("html,body")}(target)&&!floating_ui_react_utils_contains(target,floating)&&Array.from(markers).every((marker=>!floating_ui_react_utils_contains(targetRootAncestor,marker))))return;if(floating_ui_utils_dom_isHTMLElement(target)&&floating){const canScrollX=target.clientWidth>0&&target.scrollWidth>target.clientWidth,canScrollY=target.clientHeight>0&&target.scrollHeight>target.clientHeight;let xCond=canScrollY&&event.offsetX>target.clientWidth;if(canScrollY){"rtl"===floating_ui_utils_dom_getComputedStyle(target).direction&&(xCond=event.offsetX<=target.offsetWidth-target.clientWidth)}if(xCond||canScrollX&&event.offsetY>target.clientHeight)return}const nodeId=null==(_dataRef$current$floa2=dataRef.current.floatingContext)?void 0:_dataRef$current$floa2.nodeId,targetIsInsideChildren=tree&&getChildren(tree.nodesRef.current,nodeId).some((node=>{var _node$context;return isEventTargetWithin(event,null==(_node$context=node.context)?void 0:_node$context.elements.floating)}));if(isEventTargetWithin(event,floating)||isEventTargetWithin(event,domReference)||targetIsInsideChildren)return;const children=tree?getChildren(tree.nodesRef.current,nodeId):[];if(children.length>0){let shouldDismiss=!0;if(children.forEach((child=>{var _child$context2;null==(_child$context2=child.context)||!_child$context2.open||child.context.dataRef.current.__outsidePressBubbles||(shouldDismiss=!1)})),!shouldDismiss)return}onOpenChange(!1,event,"outside-press")})),closeOnPressOutsideCapture=useEffectEvent((event=>{var _getTarget4;const callback=()=>{var _getTarget3;closeOnPressOutside(event),null==(_getTarget3=floating_ui_react_utils_getTarget(event))||_getTarget3.removeEventListener(outsidePressEvent,callback)};null==(_getTarget4=floating_ui_react_utils_getTarget(event))||_getTarget4.addEventListener(outsidePressEvent,callback)}));return react.useEffect((()=>{if(!open||!enabled)return;function onScroll(event){onOpenChange(!1,event,"ancestor-scroll")}dataRef.current.__escapeKeyBubbles=escapeKeyBubbles,dataRef.current.__outsidePressBubbles=outsidePressBubbles;const doc=floating_ui_react_utils_getDocument(floating);escapeKey&&doc.addEventListener("keydown",escapeKeyCapture?closeOnEscapeKeyDownCapture:closeOnEscapeKeyDown,escapeKeyCapture),outsidePress&&doc.addEventListener(outsidePressEvent,outsidePressCapture?closeOnPressOutsideCapture:closeOnPressOutside,outsidePressCapture);let ancestors=[];return ancestorScroll&&(floating_ui_utils_dom_isElement(domReference)&&(ancestors=floating_ui_utils_dom_getOverflowAncestors(domReference)),floating_ui_utils_dom_isElement(floating)&&(ancestors=ancestors.concat(floating_ui_utils_dom_getOverflowAncestors(floating))),!floating_ui_utils_dom_isElement(reference)&&reference&&reference.contextElement&&(ancestors=ancestors.concat(floating_ui_utils_dom_getOverflowAncestors(reference.contextElement)))),ancestors=ancestors.filter((ancestor=>{var _doc$defaultView;return ancestor!==(null==(_doc$defaultView=doc.defaultView)?void 0:_doc$defaultView.visualViewport)})),ancestors.forEach((ancestor=>{ancestor.addEventListener("scroll",onScroll,{passive:!0})})),()=>{escapeKey&&doc.removeEventListener("keydown",escapeKeyCapture?closeOnEscapeKeyDownCapture:closeOnEscapeKeyDown,escapeKeyCapture),outsidePress&&doc.removeEventListener(outsidePressEvent,outsidePressCapture?closeOnPressOutsideCapture:closeOnPressOutside,outsidePressCapture),ancestors.forEach((ancestor=>{ancestor.removeEventListener("scroll",onScroll)}))}}),[dataRef,floating,domReference,reference,escapeKey,outsidePress,outsidePressEvent,open,onOpenChange,ancestorScroll,enabled,escapeKeyBubbles,outsidePressBubbles,closeOnEscapeKeyDown,escapeKeyCapture,closeOnEscapeKeyDownCapture,closeOnPressOutside,outsidePressCapture,closeOnPressOutsideCapture]),react.useEffect((()=>{insideReactTreeRef.current=!1}),[outsidePress,outsidePressEvent]),react.useMemo((()=>enabled?{reference:{onKeyDown:closeOnEscapeKeyDown,[bubbleHandlerKeys[referencePressEvent]]:event=>{referencePress&&onOpenChange(!1,event.nativeEvent,"reference-press")}},floating:{onKeyDown:closeOnEscapeKeyDown,onMouseDown(){endedOrStartedInsideRef.current=!0},onMouseUp(){endedOrStartedInsideRef.current=!0},[captureHandlerKeys[outsidePressEvent]]:()=>{insideReactTreeRef.current=!0}}}:{}),[enabled,referencePress,outsidePressEvent,referencePressEvent,onOpenChange,closeOnEscapeKeyDown])}function floating_ui_react_useFloating(options){void 0===options&&(options={});const{nodeId:nodeId}=options,internalRootContext=function useFloatingRootContext(options){const{open:open=!1,onOpenChange:onOpenChangeProp,elements:elementsProp}=options,floatingId=useId(),dataRef=react.useRef({}),[events]=react.useState((()=>createPubSub())),nested=null!=useFloatingParentNodeId(),[positionReference,setPositionReference]=react.useState(elementsProp.reference),onOpenChange=useEffectEvent(((open,event,reason)=>{dataRef.current.openEvent=open?event:void 0,events.emit("openchange",{open:open,event:event,reason:reason,nested:nested}),null==onOpenChangeProp||onOpenChangeProp(open,event,reason)})),refs=react.useMemo((()=>({setPositionReference:setPositionReference})),[]),elements=react.useMemo((()=>({reference:positionReference||elementsProp.reference||null,floating:elementsProp.floating||null,domReference:elementsProp.reference})),[positionReference,elementsProp.reference,elementsProp.floating]);return react.useMemo((()=>({dataRef:dataRef,open:open,onOpenChange:onOpenChange,elements:elements,events:events,floatingId:floatingId,refs:refs})),[open,onOpenChange,elements,events,floatingId,refs])}({...options,elements:{reference:null,floating:null,...options.elements}}),rootContext=options.rootContext||internalRootContext,computedElements=rootContext.elements,[_domReference,setDomReference]=react.useState(null),[positionReference,_setPositionReference]=react.useState(null),domReference=(null==computedElements?void 0:computedElements.reference)||_domReference,domReferenceRef=react.useRef(null),tree=useFloatingTree();floating_ui_react_index((()=>{domReference&&(domReferenceRef.current=domReference)}),[domReference]);const position=function useFloating(options){void 0===options&&(options={});const{placement:placement="bottom",strategy:strategy="absolute",middleware:middleware=[],platform:platform,elements:{reference:externalReference,floating:externalFloating}={},transform:transform=!0,whileElementsMounted:whileElementsMounted,open:open}=options,[data,setData]=react.useState({x:0,y:0,strategy:strategy,placement:placement,middlewareData:{},isPositioned:!1}),[latestMiddleware,setLatestMiddleware]=react.useState(middleware);deepEqual(latestMiddleware,middleware)||setLatestMiddleware(middleware);const[_reference,_setReference]=react.useState(null),[_floating,_setFloating]=react.useState(null),setReference=react.useCallback((node=>{node!==referenceRef.current&&(referenceRef.current=node,_setReference(node))}),[]),setFloating=react.useCallback((node=>{node!==floatingRef.current&&(floatingRef.current=node,_setFloating(node))}),[]),referenceEl=externalReference||_reference,floatingEl=externalFloating||_floating,referenceRef=react.useRef(null),floatingRef=react.useRef(null),dataRef=react.useRef(data),hasWhileElementsMounted=null!=whileElementsMounted,whileElementsMountedRef=useLatestRef(whileElementsMounted),platformRef=useLatestRef(platform),update=react.useCallback((()=>{if(!referenceRef.current||!floatingRef.current)return;const config={placement:placement,strategy:strategy,middleware:latestMiddleware};platformRef.current&&(config.platform=platformRef.current),floating_ui_dom_computePosition(referenceRef.current,floatingRef.current,config).then((data=>{const fullData={...data,isPositioned:!0};isMountedRef.current&&!deepEqual(dataRef.current,fullData)&&(dataRef.current=fullData,react_dom.flushSync((()=>{setData(fullData)})))}))}),[latestMiddleware,placement,strategy,platformRef]);index((()=>{!1===open&&dataRef.current.isPositioned&&(dataRef.current.isPositioned=!1,setData((data=>({...data,isPositioned:!1}))))}),[open]);const isMountedRef=react.useRef(!1);index((()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1})),[]),index((()=>{if(referenceEl&&(referenceRef.current=referenceEl),floatingEl&&(floatingRef.current=floatingEl),referenceEl&&floatingEl){if(whileElementsMountedRef.current)return whileElementsMountedRef.current(referenceEl,floatingEl,update);update()}}),[referenceEl,floatingEl,update,whileElementsMountedRef,hasWhileElementsMounted]);const refs=react.useMemo((()=>({reference:referenceRef,floating:floatingRef,setReference:setReference,setFloating:setFloating})),[setReference,setFloating]),elements=react.useMemo((()=>({reference:referenceEl,floating:floatingEl})),[referenceEl,floatingEl]),floatingStyles=react.useMemo((()=>{const initialStyles={position:strategy,left:0,top:0};if(!elements.floating)return initialStyles;const x=roundByDPR(elements.floating,data.x),y=roundByDPR(elements.floating,data.y);return transform?{...initialStyles,transform:"translate("+x+"px, "+y+"px)",...getDPR(elements.floating)>=1.5&&{willChange:"transform"}}:{position:strategy,left:x,top:y}}),[strategy,transform,elements.floating,data.x,data.y]);return react.useMemo((()=>({...data,update:update,refs:refs,elements:elements,floatingStyles:floatingStyles})),[data,update,refs,elements,floatingStyles])}({...options,elements:{...computedElements,...positionReference&&{reference:positionReference}}}),setPositionReference=react.useCallback((node=>{const computedPositionReference=floating_ui_utils_dom_isElement(node)?{getBoundingClientRect:()=>node.getBoundingClientRect(),contextElement:node}:node;_setPositionReference(computedPositionReference),position.refs.setReference(computedPositionReference)}),[position.refs]),setReference=react.useCallback((node=>{(floating_ui_utils_dom_isElement(node)||null===node)&&(domReferenceRef.current=node,setDomReference(node)),(floating_ui_utils_dom_isElement(position.refs.reference.current)||null===position.refs.reference.current||null!==node&&!floating_ui_utils_dom_isElement(node))&&position.refs.setReference(node)}),[position.refs]),refs=react.useMemo((()=>({...position.refs,setReference:setReference,setPositionReference:setPositionReference,domReference:domReferenceRef})),[position.refs,setReference,setPositionReference]),elements=react.useMemo((()=>({...position.elements,domReference:domReference})),[position.elements,domReference]),context=react.useMemo((()=>({...position,...rootContext,refs:refs,elements:elements,nodeId:nodeId})),[position,refs,elements,nodeId,rootContext]);return floating_ui_react_index((()=>{rootContext.dataRef.current.floatingContext=context;const node=null==tree?void 0:tree.nodesRef.current.find((node=>node.id===nodeId));node&&(node.context=context)})),react.useMemo((()=>({...position,context:context,refs:refs,elements:elements})),[position,refs,elements,context])}function useFocus(context,props){void 0===props&&(props={});const{open:open,onOpenChange:onOpenChange,events:events,dataRef:dataRef,elements:{domReference:domReference}}=context,{enabled:enabled=!0,visibleOnly:visibleOnly=!0}=props,blockFocusRef=react.useRef(!1),timeoutRef=react.useRef(),keyboardModalityRef=react.useRef(!0);return react.useEffect((()=>{if(!enabled)return;const win=floating_ui_utils_dom_getWindow(domReference);function onBlur(){!open&&floating_ui_utils_dom_isHTMLElement(domReference)&&domReference===floating_ui_react_utils_activeElement(floating_ui_react_utils_getDocument(domReference))&&(blockFocusRef.current=!0)}function onKeyDown(){keyboardModalityRef.current=!0}return win.addEventListener("blur",onBlur),win.addEventListener("keydown",onKeyDown,!0),()=>{win.removeEventListener("blur",onBlur),win.removeEventListener("keydown",onKeyDown,!0)}}),[domReference,open,enabled]),react.useEffect((()=>{if(enabled)return events.on("openchange",onOpenChange),()=>{events.off("openchange",onOpenChange)};function onOpenChange(_ref){let{reason:reason}=_ref;"reference-press"!==reason&&"escape-key"!==reason||(blockFocusRef.current=!0)}}),[events,enabled]),react.useEffect((()=>()=>{clearTimeout(timeoutRef.current)}),[]),react.useMemo((()=>enabled?{reference:{onPointerDown(event){floating_ui_react_utils_isVirtualPointerEvent(event.nativeEvent)||(keyboardModalityRef.current=!1)},onMouseLeave(){blockFocusRef.current=!1},onFocus(event){if(blockFocusRef.current)return;const target=floating_ui_react_utils_getTarget(event.nativeEvent);if(visibleOnly&&floating_ui_utils_dom_isElement(target))try{if(floating_ui_react_utils_isSafari()&&function floating_ui_react_utils_isMac(){return floating_ui_react_utils_getPlatform().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}())throw Error();if(!target.matches(":focus-visible"))return}catch(e){if(!keyboardModalityRef.current&&!floating_ui_react_utils_isTypeableElement(target))return}onOpenChange(!0,event.nativeEvent,"focus")},onBlur(event){blockFocusRef.current=!1;const relatedTarget=event.relatedTarget,movedToFocusGuard=floating_ui_utils_dom_isElement(relatedTarget)&&relatedTarget.hasAttribute(createAttribute("focus-guard"))&&"outside"===relatedTarget.getAttribute("data-type");timeoutRef.current=window.setTimeout((()=>{var _dataRef$current$floa;const activeEl=floating_ui_react_utils_activeElement(domReference?domReference.ownerDocument:document);(relatedTarget||activeEl!==domReference)&&(floating_ui_react_utils_contains(null==(_dataRef$current$floa=dataRef.current.floatingContext)?void 0:_dataRef$current$floa.refs.floating.current,activeEl)||floating_ui_react_utils_contains(domReference,activeEl)||movedToFocusGuard||onOpenChange(!1,event.nativeEvent,"focus"))}))}}}:{}),[enabled,visibleOnly,dataRef,domReference,onOpenChange])}const ACTIVE_KEY="active",SELECTED_KEY="selected";function mergeProps(userProps,propsList,elementKey){const map=new Map,isItem="item"===elementKey;let domUserProps=userProps;if(isItem&&userProps){const{[ACTIVE_KEY]:_,[SELECTED_KEY]:__,...validProps}=userProps;domUserProps=validProps}return{..."floating"===elementKey&&{tabIndex:-1},...domUserProps,...propsList.map((value=>{const propsOrGetProps=value?value[elementKey]:null;return"function"==typeof propsOrGetProps?userProps?propsOrGetProps(userProps):null:propsOrGetProps})).concat(userProps).reduce(((acc,props)=>props?(Object.entries(props).forEach((_ref=>{let[key,value]=_ref;var _map$get;isItem&&[ACTIVE_KEY,SELECTED_KEY].includes(key)||(0===key.indexOf("on")?(map.has(key)||map.set(key,[]),"function"==typeof value&&(null==(_map$get=map.get(key))||_map$get.push(value),acc[key]=function(){for(var _map$get2,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return null==(_map$get2=map.get(key))?void 0:_map$get2.map((fn=>fn(...args))).find((val=>void 0!==val))})):acc[key]=value)})),acc):acc),{})}}const componentRoleToAriaRoleMap=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function useRole(context,props){var _componentRoleToAriaR;void 0===props&&(props={});const{open:open,floatingId:floatingId}=context,{enabled:enabled=!0,role:role="dialog"}=props,ariaRole=null!=(_componentRoleToAriaR=componentRoleToAriaRoleMap.get(role))?_componentRoleToAriaR:role,referenceId=useId(),isNested=null!=useFloatingParentNodeId();return react.useMemo((()=>{if(!enabled)return{};const floatingProps={id:floatingId,...ariaRole&&{role:ariaRole}};return"tooltip"===ariaRole||"label"===role?{reference:{["aria-"+("label"===role?"labelledby":"describedby")]:open?floatingId:void 0},floating:floatingProps}:{reference:{"aria-expanded":open?"true":"false","aria-haspopup":"alertdialog"===ariaRole?"dialog":ariaRole,"aria-controls":open?floatingId:void 0,..."listbox"===ariaRole&&{role:"combobox"},..."menu"===ariaRole&&{id:referenceId},..."menu"===ariaRole&&isNested&&{role:"menuitem"},..."select"===role&&{"aria-autocomplete":"none"},..."combobox"===role&&{"aria-autocomplete":"list"}},floating:{...floatingProps,..."menu"===ariaRole&&{"aria-labelledby":referenceId}},item(_ref){let{active:active,selected:selected}=_ref;const commonProps={role:"option",...active&&{id:floatingId+"-option"}};switch(role){case"select":return{...commonProps,"aria-selected":active&&selected};case"combobox":return{...commonProps,...active&&{"aria-selected":!0}}}return{}}}}),[enabled,role,ariaRole,open,floatingId,referenceId,isNested])}const StyledTooltip=styled_components_browser_esm.ZP.div.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-m2im2p-0"})([""," "," "," background:",";z-index:1500;white-space:nowrap;&::before{content:'; Has tooltip: ';clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;}"],(0,templates.oc)(tooltip.typography),(0,templates.SH)(tooltip.spacings),(0,borders.$)(tooltip.border),tooltip.background),ArrowWrapper=styled_components_browser_esm.ZP.div.withConfig({displayName:"Tooltip__ArrowWrapper",componentId:"sc-m2im2p-1"})(["position:absolute;width:",";height:",";z-index:-1;"],tooltip.entities.arrow.width,tooltip.entities.arrow.height),TooltipArrow=styled_components_browser_esm.ZP.svg.withConfig({displayName:"Tooltip__TooltipArrow",componentId:"sc-m2im2p-2"})(["width:",";height:",";position:absolute;fill:",";"],tooltip.entities.arrow.width,tooltip.entities.arrow.height,tooltip.background),Tooltip=(0,react.forwardRef)((function Tooltip({title:title,placement:placement="bottom",children:children,style:style,enterDelay:enterDelay=100,...rest},ref){const arrowRef=(0,react.useRef)(null),[open,setOpen]=(0,react.useState)(!1),shouldOpen=""!==title,{x:x,y:y,refs:refs,strategy:strategy,context:context,middlewareData:{arrow:{x:arrowX,y:arrowY}={}},placement:finalPlacement}=floating_ui_react_useFloating({placement:placement,open:open,onOpenChange:setOpen,middleware:[(options=14,{...floating_ui_core_offset(options),options:[options,deps]}),floating_ui_react_dom_flip(),floating_ui_react_dom_shift({padding:8}),floating_ui_react_dom_arrow({element:arrowRef})],whileElementsMounted:autoUpdate});var options,deps;const anchorRef=(0,react.useMemo)((()=>mergeRefs(refs.setReference,children?.ref)),[refs.setReference,children?.ref]),tooltipRef=(0,react.useMemo)((()=>mergeRefs(refs.setFloating,ref)),[refs.setFloating,ref]),{getReferenceProps:getReferenceProps,getFloatingProps:getFloatingProps}=function useInteractions(propsList){void 0===propsList&&(propsList=[]);const deps=propsList,getReferenceProps=react.useCallback((userProps=>mergeProps(userProps,propsList,"reference")),deps),getFloatingProps=react.useCallback((userProps=>mergeProps(userProps,propsList,"floating")),deps),getItemProps=react.useCallback((userProps=>mergeProps(userProps,propsList,"item")),propsList.map((key=>null==key?void 0:key.item)));return react.useMemo((()=>({getReferenceProps:getReferenceProps,getFloatingProps:getFloatingProps,getItemProps:getItemProps})),[getReferenceProps,getFloatingProps,getItemProps])}([useHover(context,{delay:{open:enterDelay}}),useFocus(context),useRole(context,{role:"tooltip"}),useDismiss(context)]);(0,react.useEffect)((()=>{const staticSide={top:"bottom",right:"left",bottom:"top",left:"right"}[finalPlacement.split("-")[0]];let arrowTransform="none";switch(staticSide){case"right":arrowTransform="rotateY(180deg)";break;case"left":arrowTransform="none";break;case"top":arrowTransform="rotate(90deg)";break;case"bottom":arrowTransform="rotate(-90deg)"}arrowRef.current&&Object.assign(arrowRef.current.style,{left:null!=arrowX?`${arrowX}px`:"",top:null!=arrowY?`${arrowY}px`:"",right:"",bottom:"",[staticSide]:"-6px",transform:arrowTransform})}));const updatedChildren=(0,react.cloneElement)(children,{...getReferenceProps({ref:anchorRef,...children.props})}),inDialog=(el=>{const[inDialog,setInDialog]=(0,react.useState)(null);return(0,react.useEffect)((()=>{el&&null===inDialog&&setInDialog(!!el.closest("dialog"))}),[el]),inDialog})(refs.domReference.current),TooltipEl=(0,jsx_runtime.jsxs)(StyledTooltip,{...rest,...getFloatingProps({ref:tooltipRef,style:{...style,position:strategy,top:y||0,left:x||0}}),children:[title,(0,jsx_runtime.jsx)(ArrowWrapper,{ref:arrowRef,children:(0,jsx_runtime.jsx)(TooltipArrow,{className:"arrowSvg",children:(0,jsx_runtime.jsx)("path",{d:"M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"})})})]});return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[inDialog?(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:shouldOpen&&open&&TooltipEl}):(0,jsx_runtime.jsx)(FloatingPortal,{id:"eds-tooltip-container",children:shouldOpen&&open&&TooltipEl}),updatedChildren]})})),ToggleButton=(0,react.forwardRef)((function ToggleButton({children:children,multiple:multiple,selectedIndexes:selectedIndexes,onChange:onChange,...props},ref){const[pickedIndexes,setPickedIndexes]=(0,react.useState)(selectedIndexes||[]);function updateProps(child,isSelected,index){const childElement=child;if((0,react.isValidElement)(child)&&child.type===Button){const buttonProps={"aria-pressed":!!isSelected||void 0,variant:isSelected?"contained":"outlined",onClick:e=>{childElement.props?.onClick?.(e);let updatedSelection=[index];multiple&&(updatedSelection=pickedIndexes.includes(index)?pickedIndexes.filter((i=>i!==index)):[...pickedIndexes,index]),setPickedIndexes(updatedSelection),onChange&&onChange(updatedSelection)}};return(0,react.cloneElement)(child,buttonProps)}}(0,react.useEffect)((()=>{Array.isArray(selectedIndexes)&&setPickedIndexes(selectedIndexes)}),[selectedIndexes]);const updatedChildren=react.Children.map(children,((child,index)=>{const isSelected=pickedIndexes.includes(index),childElement=child;if((0,react.isValidElement)(child)&&child.type===Tooltip){const updatedGrandChildren=react.Children.map(childElement.props.children,(grandChild=>updateProps(grandChild,isSelected,index)));return(0,react.cloneElement)(childElement,null,updatedGrandChildren[0])}return updateProps(childElement,isSelected,index)}));return(0,jsx_runtime.jsx)(ButtonGroup,{ref:ref,...props,children:updatedChildren})})),Button_Button=Button;Button_Button.Group=ButtonGroup,Button_Button.Toggle=ToggleButton,Button_Button.Group.displayName="Button.Group",Button_Button.Toggle.displayName="Button.Toggle"},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Icon/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{J:function(){return Icon_Icon}});var react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js");let _icons={},count=0;const get=name=>(count+=1,{icon:_icons[name],count:count});var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const StyledSvg=styled_components_browser_esm.ZP.svg.attrs((({$height:$height,$width:$width,fill:fill})=>({name:null,xmlns:"http://www.w3.org/2000/svg",height:`${$height}px`,width:`${$width}px`,fill:fill}))).withConfig({displayName:"Icon__StyledSvg",componentId:"sc-6evbi1-0"})(["transform:",";"],(({$rotation:$rotation})=>$rotation?`rotate(${$rotation}deg)`:"none")),StyledPath=styled_components_browser_esm.ZP.path.attrs((({$height:$height,$size:$size})=>({size:null,fillRule:"evenodd",clipRule:"evenodd",transform:$size/$height!=1?`scale(${$size/$height})`:null}))).withConfig({displayName:"Icon__StyledPath",componentId:"sc-6evbi1-1"})([""]),findIcon=(name,data,size)=>{let{icon:icon,count:count}=data?(icon=>({icon:icon,count:Math.floor(1e3*Math.random())}))(data):get(name);return size<24&&(icon=icon.sizes?.small||icon),{icon:icon,count:count}},Icon=(0,react.forwardRef)((function Icon({size:size,color:color="currentColor",name:name,rotation:rotation,title:title,data:data,...rest},ref){const{icon:icon,count:count}=findIcon(name,data,size);if(void 0===icon)throw Error(`Icon "${name}" not found. Have you added it using Icon.add() or using data props?`);const $height=size||parseInt(icon.width),$width=size||parseInt(icon.height);let svgProps={$height:$height,$width:$width,fill:color,viewBox:`0 0 ${$width} ${$height}`,$rotation:rotation,name:name,"aria-hidden":!0};const pathProps={$height:icon.height?parseInt(icon.height):size,$size:size||parseInt(icon.height)};let titleId="";return title&&(titleId=`${icon.prefix}-${icon.name}-${count}`,svgProps={...svgProps,title:title,role:"img","aria-hidden":void 0,"aria-labelledby":titleId}),(0,jsx_runtime.jsxs)(StyledSvg,{...svgProps,...rest,ref:ref,children:[title&&(0,jsx_runtime.jsx)("title",{id:titleId,children:title}),Array.isArray(icon.svgPathData)?icon.svgPathData.map((pathData=>(0,jsx_runtime.jsx)(StyledPath,{...pathProps,d:pathData},pathData))):(0,jsx_runtime.jsx)(StyledPath,{"data-testid":"eds-icon-path",...pathProps,d:icon.svgPathData})]})})),Icon_Icon=Icon;Icon_Icon.add=icons=>{_icons={..._icons,...icons}}},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/node_modules/.pnpm/ramda@0.29.1/node_modules/ramda/es/mergeDeepRight.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function _isPlaceholder(a){return null!=a&&"object"==typeof a&&!0===a["@@functional/placeholder"]}function _curry1(fn){return function f1(a){return 0===arguments.length||_isPlaceholder(a)?f1:fn.apply(this,arguments)}}function _curry2(fn){return function f2(a,b){switch(arguments.length){case 0:return f2;case 1:return _isPlaceholder(a)?f2:_curry1((function(_b){return fn(a,_b)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)?f2:_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b)})):fn(a,b)}}}function _curry3(fn){return function f3(a,b,c){switch(arguments.length){case 0:return f3;case 1:return _isPlaceholder(a)?f3:_curry2((function(_b,_c){return fn(a,_b,_c)}));case 2:return _isPlaceholder(a)&&_isPlaceholder(b)?f3:_isPlaceholder(a)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_curry1((function(_c){return fn(a,b,_c)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)&&_isPlaceholder(c)?f3:_isPlaceholder(a)&&_isPlaceholder(b)?_curry2((function(_a,_b){return fn(_a,_b,c)})):_isPlaceholder(a)&&_isPlaceholder(c)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)&&_isPlaceholder(c)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b,c)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b,c)})):_isPlaceholder(c)?_curry1((function(_c){return fn(a,b,_c)})):fn(a,b,c)}}}function _isObject(x){return"[object Object]"===Object.prototype.toString.call(x)}function _has(prop,obj){return Object.prototype.hasOwnProperty.call(obj,prop)}__webpack_require__.d(__webpack_exports__,{Z:function(){return mergeDeepRight$1}});var mergeWithKey$1=_curry3((function mergeWithKey(fn,l,r){var k,result={};for(k in r=r||{},l=l||{})_has(k,l)&&(result[k]=_has(k,r)?fn(k,l[k],r[k]):l[k]);for(k in r)_has(k,r)&&!_has(k,result)&&(result[k]=r[k]);return result})),mergeDeepWithKey$1=_curry3((function mergeDeepWithKey(fn,lObj,rObj){return mergeWithKey$1((function(k,lVal,rVal){return _isObject(lVal)&&_isObject(rVal)?mergeDeepWithKey(fn,lVal,rVal):fn(k,lVal,rVal)}),lObj,rObj)})),mergeDeepRight$1=_curry2((function mergeDeepRight(lObj,rObj){return mergeDeepWithKey$1((function(k,lVal,rVal){return rVal}),lObj,rObj)}))},"./packages/subsurface-viewer/node_modules/@equinor/eds-icons/dist/esm/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{_Oe:function(){return arrow_drop_down},sBW:function(){return arrow_drop_up}});const arrow_drop_down={name:"arrow_drop_down",prefix:"eds",height:"24",width:"24",svgPathData:"m7 9.5 5 5 5-5H7Z",sizes:{small:{name:"arrow_drop_down_small",prefix:"eds",height:"18",width:"18",svgPathData:"m4 6.5 5 5 5-5H4Z"}}},arrow_drop_up={name:"arrow_drop_up",prefix:"eds",height:"24",width:"24",svgPathData:"m7 14.5 5-5 5 5H7Z",sizes:{small:{name:"arrow_drop_up_small",prefix:"eds",height:"18",width:"18",svgPathData:"m14 11.5-5-5-5 5h10Z"}}}},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/borders.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{$:function(){return bordersTemplate}});var styled_components__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_common_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/common.mjs");const bordersTemplate=border=>{if(!border)return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({});switch(border.type){case"border":return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({border:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border),borderRadius:border.radius});case"bordergroup":return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({borderBottom:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.bottom),borderTop:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.top),borderLeft:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.left),borderRight:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.right),borderBottomLeftRadius:border?.left?.radius,borderTopLeftRadius:border?.left?.radius,borderBottomRightRadius:border?.right?.radius,borderTopRightRadius:border?.right?.radius});default:return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({})}}}}]); \ No newline at end of file diff --git a/storybook-static/4091.c8ab2006.iframe.bundle.js.LICENSE.txt b/storybook-static/4581.0024a2c9.iframe.bundle.js.LICENSE.txt similarity index 100% rename from storybook-static/4091.c8ab2006.iframe.bundle.js.LICENSE.txt rename to storybook-static/4581.0024a2c9.iframe.bundle.js.LICENSE.txt diff --git a/storybook-static/4720.31a13ec7.iframe.bundle.js b/storybook-static/4720.31a13ec7.iframe.bundle.js deleted file mode 100644 index 8f38df949..000000000 --- a/storybook-static/4720.31a13ec7.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[4720],{"./packages/subsurface-viewer/src/SubsurfaceViewer.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{W:function(){return _layers_grid3d_grid3dLayer__WEBPACK_IMPORTED_MODULE_2__.W}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__),convert_units__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/convert-units/lib/index.js"),convert_units__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(convert_units__WEBPACK_IMPORTED_MODULE_1__),_layers_grid3d_grid3dLayer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/grid3dLayer.ts"),_components_Map__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/src/components/Map.tsx");const SubsurfaceViewer=({id:id,resources:resources,layers:layers,bounds:bounds,cameraPosition:cameraPosition,triggerHome:triggerHome,views:views,coords:coords,scale:scale,coordinateUnit:coordinateUnit,colorTables:colorTables,editedData:editedData,setProps:setProps,checkDatafileSchema:checkDatafileSchema,onMouseEvent:onMouseEvent,selection:selection,getTooltip:getTooltip,getCameraPosition:getCameraPosition,onRenderingProgress:onRenderingProgress,onDragStart:onDragStart,onDragEnd:onDragEnd,triggerResetMultipleWells:triggerResetMultipleWells,lights:lights,children:children,verticalScale:verticalScale})=>{const[layerEditedData,setLayerEditedData]=react__WEBPACK_IMPORTED_MODULE_0__.useState(editedData),[layerInstances,setLayerInstances]=react__WEBPACK_IMPORTED_MODULE_0__.useState([]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{const enumerations=[];if(resources&&enumerations.push({resources:resources}),editedData?enumerations.push({editedData:editedData}):enumerations.push({editedData:{}}),!layers)return void setLayerInstances([]);const layersList=(0,_components_Map__WEBPACK_IMPORTED_MODULE_3__.G0)(layers,enumerations);setLayerInstances(layersList)}),[layers]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{editedData&&setLayerEditedData({...layerEditedData,...editedData})}),[editedData]);const setEditedData=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((data=>{null!=setProps&&setProps({editedData:{...layerEditedData,...data}})}),[setProps,layerEditedData]);return coordinateUnit&&!convert_units__WEBPACK_IMPORTED_MODULE_1___default()().possibilities().includes(coordinateUnit)&&(console.error(`Invalid coordinate unit: '${coordinateUnit}'. Valid units are: ${convert_units__WEBPACK_IMPORTED_MODULE_1___default()().possibilities()}`),coordinateUnit=void 0),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_Map__WEBPACK_IMPORTED_MODULE_3__.ZP,{id:id,layers:layerInstances,bounds:bounds,views:views,coords:coords,scale:scale,coordinateUnit:coordinateUnit,colorTables:colorTables,setEditedData:setEditedData,checkDatafileSchema:checkDatafileSchema,onMouseEvent:onMouseEvent,selection:selection,getTooltip:getTooltip,cameraPosition:cameraPosition,getCameraPosition:getCameraPosition,onRenderingProgress:onRenderingProgress,onDragStart:onDragStart,onDragEnd:onDragEnd,triggerHome:triggerHome,triggerResetMultipleWells:triggerResetMultipleWells,lights:lights,verticalScale:verticalScale},children)};SubsurfaceViewer.defaultProps={views:{layout:[1,1],marginPixels:0,showLabel:!1,viewports:[{id:"main-view",show3D:!1,layerIds:[]}]},checkDatafileSchema:!1},SubsurfaceViewer.propTypes={id:prop_types__WEBPACK_IMPORTED_MODULE_4___default().string.isRequired,resources:prop_types__WEBPACK_IMPORTED_MODULE_4___default().objectOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),layers:prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().objectOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().any).isRequired),bounds:prop_types__WEBPACK_IMPORTED_MODULE_4___default().any,views:prop_types__WEBPACK_IMPORTED_MODULE_4___default().any,coords:prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({visible:prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool,multiPicking:prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool,pickDepth:prop_types__WEBPACK_IMPORTED_MODULE_4___default().number}),scale:prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({visible:prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool,incrementValue:prop_types__WEBPACK_IMPORTED_MODULE_4___default().number,widthPerUnit:prop_types__WEBPACK_IMPORTED_MODULE_4___default().number,cssStyle:prop_types__WEBPACK_IMPORTED_MODULE_4___default().objectOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().any)}),coordinateUnit:prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(convert_units__WEBPACK_IMPORTED_MODULE_1___default()().possibilities()),colorTables:prop_types__WEBPACK_IMPORTED_MODULE_4___default().array,editedData:prop_types__WEBPACK_IMPORTED_MODULE_4___default().objectOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),setProps:prop_types__WEBPACK_IMPORTED_MODULE_4___default().func,checkDatafileSchema:prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool},__webpack_exports__.Z=SubsurfaceViewer,SubsurfaceViewer.__docgenInfo={description:"",methods:[],displayName:"SubsurfaceViewer",props:{id:{required:!0,tsType:{name:"string"},description:"The ID of this component, used to identify dash components\nin callbacks. The ID needs to be unique across all of the\ncomponents in an app.",type:{name:"string"}},resources:{required:!1,tsType:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},description:'Resource dictionary made available in the DeckGL specification as an enum.\nThe values can be accessed like this: `"@@#resources.resourceId"`, where\n`resourceId` is the key in the `resources` dict. For more information,\nsee the DeckGL documentation on enums in the json spec:\nhttps://deck.gl/docs/api-reference/json/conversion-reference#enumerations-and-using-the--prefix',type:{name:"objectOf",value:{name:"any"}}},layers:{required:!1,tsType:{name:"Array",elements:[{name:"union",raw:"| Record\n| Layer\n| false\n| null\n| undefined",elements:[{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},{name:"Layer"},{name:"literal",value:"false"},{name:"null"},{name:"undefined"}]}],raw:"TLayerDefinition[]"},description:"Array of externally created layers or layer definition records or JSON strings.\nAdd '@@typedArraySupport' : true in a layer definition in order to\nuse typed arrays as inputs.",type:{name:"arrayOf",value:{name:"objectOf",value:{name:"any"}}}},bounds:{required:!1,tsType:{name:"union",raw:"[number, number, number, number] | BoundsAccessor",elements:[{name:"tuple",raw:"[number, number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"},{name:"number"}]},{name:"signature",type:"function",raw:"() => BoundingBox2D",signature:{arguments:[],return:{name:"tuple",raw:"[number, number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"},{name:"number"}]}}}]},description:"Coordinate boundary for the view defined as [left, bottom, right, top].\nIt can be either an array or a callback returning [number, number, number, number].",type:{name:"any"}},cameraPosition:{required:!1,tsType:{name:"union",raw:"ViewStateType | undefined",elements:[{name:"ViewStateType"},{name:"undefined"}]},description:""},triggerHome:{required:!1,tsType:{name:"number"},description:""},views:{required:!1,tsType:{name:"ViewsType"},description:'Views configuration for map. If not specified, all the layers will be\ndisplayed in a single 2D viewport.\nExample:\n views = {\n "layout": [1, 1],\n "showLabel": false,\n "viewports": [\n {\n "id": "view_1",\n "name"?: "View 1"\n "show3D"?: false,\n "layerIds": ["layer-ids"],\n "isSync?": true,\n }\n ]\n }',defaultValue:{value:'{\n layout: [1, 1],\n marginPixels: 0,\n showLabel: false,\n viewports: [{ id: "main-view", show3D: false, layerIds: [] }],\n}',computed:!1},type:{name:"any"}},coords:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n visible?: boolean | null;\n multiPicking?: boolean | null;\n pickDepth?: number | null;\n}",signature:{properties:[{key:"visible",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"multiPicking",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"pickDepth",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}}]}},description:"Parameters for the InfoCard component",type:{name:"shape",value:{visible:{name:"bool",description:"Toggle component visibility.",required:!1},multiPicking:{name:"bool",description:"Enable or disable multi picking. Might have a performance penalty.\nSee https://deck.gl/docs/api-reference/core/deck#pickmultipleobjects",required:!1},pickDepth:{name:"number",description:"Number of objects to pick. The more objects picked, the more picking operations will be done.\nSee https://deck.gl/docs/api-reference/core/deck#pickmultipleobjects",required:!1}}}},scale:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n visible?: boolean | null;\n incrementValue?: number | null;\n widthPerUnit?: number | null;\n cssStyle?: Record | null;\n}",signature:{properties:[{key:"visible",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"incrementValue",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}},{key:"widthPerUnit",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}},{key:"cssStyle",value:{name:"union",raw:"Record | null",elements:[{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},{name:"null"}],required:!1}}]}},description:"Parameters for the Distance Scale component",type:{name:"shape",value:{visible:{name:"bool",description:"Toggle component visibility.",required:!1},incrementValue:{name:"number",description:"Increment value for the scale.",required:!1},widthPerUnit:{name:"number",description:"Scale bar width in pixels per unit value.",required:!1},cssStyle:{name:"objectOf",value:{name:"any"},description:"Scale bar css style can be used for positioning.",required:!1}}}},coordinateUnit:{required:!1,tsType:{name:"Unit"},description:"Parameters for the Distance Scale component\nUnit for the scale ruler",type:{name:"enum",computed:!0,value:"convert().possibilities()"}},colorTables:{required:!1,tsType:{name:"colorTablesArray"},description:"Prop containing color table data",type:{name:"array"}},editedData:{required:!1,tsType:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},description:"Prop containing edited data from layers",type:{name:"objectOf",value:{name:"any"}}},setProps:{required:!1,tsType:{name:"signature",type:"function",raw:"(data: Record) => void",signature:{arguments:[{type:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},name:"data"}],return:{name:"void"}}},description:"For reacting to prop changes",type:{name:"func"}},checkDatafileSchema:{required:!1,tsType:{name:"boolean"},description:"Validate JSON datafile against schema",defaultValue:{value:"false",computed:!1},type:{name:"bool"}},onMouseEvent:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: MapMouseEvent) => void",signature:{arguments:[{type:{name:"MapMouseEvent"},name:"event"}],return:{name:"void"}}},description:"For get mouse events"},getCameraPosition:{required:!1,tsType:{name:"signature",type:"function",raw:"(input: ViewStateType) => void",signature:{arguments:[{type:{name:"ViewStateType"},name:"input"}],return:{name:"void"}}},description:""},onRenderingProgress:{required:!1,tsType:{name:"signature",type:"function",raw:"(progress: number) => void",signature:{arguments:[{type:{name:"number"},name:"progress"}],return:{name:"void"}}},description:"Will be called while layers are processed to rendered data.\n@param progress vlaue between 0 and 100."},onDragStart:{required:!1,tsType:{name:"signature",type:"function",raw:"(info: PickingInfo, event: MjolnirGestureEvent) => void",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"},{type:{name:"MjolnirGestureEvent"},name:"event"}],return:{name:"void"}}},description:""},onDragEnd:{required:!1,tsType:{name:"signature",type:"function",raw:"(info: PickingInfo, event: MjolnirGestureEvent) => void",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"},{type:{name:"MjolnirGestureEvent"},name:"event"}],return:{name:"void"}}},description:""},triggerResetMultipleWells:{required:!1,tsType:{name:"number"},description:""},selection:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n well: string | undefined;\n selection: [number | undefined, number | undefined] | undefined;\n}",signature:{properties:[{key:"well",value:{name:"union",raw:"string | undefined",elements:[{name:"string"},{name:"undefined"}],required:!0}},{key:"selection",value:{name:"union",raw:"[number | undefined, number | undefined] | undefined",elements:[{name:"tuple",raw:"[number | undefined, number | undefined]",elements:[{name:"union",raw:"number | undefined",elements:[{name:"number"},{name:"undefined"}]},{name:"union",raw:"number | undefined",elements:[{name:"number"},{name:"undefined"}]}]},{name:"undefined"}],required:!0}}]}},description:"Range selection of the current well"},getTooltip:{required:!1,tsType:{name:"signature",type:"function",raw:"(\n info: PickingInfo\n) => string | Record | null",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"}],return:{name:"union",raw:"string | Record | null",elements:[{name:"string"},{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},{name:"null"}]}}},description:"Override default tooltip with a callback."},lights:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n headLight?: {\n intensity: number;\n color?: [number, number, number];\n };\n ambientLight?: {\n intensity: number;\n color?: [number, number, number];\n };\n pointLights?: [\n {\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n },\n ];\n\n directionalLights?: [\n {\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n },\n ];\n}",signature:{properties:[{key:"headLight",value:{name:"signature",type:"object",raw:"{\n intensity: number;\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]},required:!1}},{key:"ambientLight",value:{name:"signature",type:"object",raw:"{\n intensity: number;\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]},required:!1}},{key:"pointLights",value:{name:"tuple",raw:"[\n {\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n },\n]",elements:[{name:"signature",type:"object",raw:"{\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"position",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]}}],required:!1}},{key:"directionalLights",value:{name:"tuple",raw:"[\n {\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n },\n]",elements:[{name:"signature",type:"object",raw:"{\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"direction",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]}}],required:!1}}]}},description:""},children:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},verticalScale:{required:!1,tsType:{name:"number"},description:"A vertical scale factor, used to scale items in the view vertically"}}}},"./packages/subsurface-viewer/src/components/DistanceScale.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),convert_units__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/convert-units/lib/index.js"),convert_units__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(convert_units__WEBPACK_IMPORTED_MODULE_1__);const DistanceScale=({zoom:zoom,incrementValue:incrementValue,widthPerUnit:widthPerUnit,style:style,scaleUnit:scaleUnit})=>{if(!(zoom&&widthPerUnit&&incrementValue&&scaleUnit))return null;if(!convert_units__WEBPACK_IMPORTED_MODULE_1___default()().possibilities().includes(scaleUnit))return null;const widthInUnits=widthPerUnit/Math.pow(2,zoom),scaleValue=widthInUnits"},description:""},scaleUnit:{required:!1,tsType:{name:"Unit"},description:"",defaultValue:{value:'"m"',computed:!1}}}}},"./packages/subsurface-viewer/src/components/InfoCard.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_mui_material__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@mui/material/Table/Table.js"),_mui_material__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@mui/material/TableCell/TableCell.js"),_mui_material__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@mui/material/TableRow/TableRow.js"),_mui_material__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@mui/material/Collapse/Collapse.js"),_mui_material__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@mui/material/TableBody/TableBody.js"),_mui_material__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@mui/material/TableContainer/TableContainer.js"),_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Icon/index.js"),_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Button/index.js"),_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@equinor/eds-icons/dist/esm/index.js"),_mui_system__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@mui/system/esm/styled.js"),d3_color__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/d3-color/src/color.js");_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J.add({arrow_drop_up:_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__.sBW,arrow_drop_down:_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__._Oe});const StyledTable=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_4__.Z)({"& > *":{backgroundColor:"#ffffffcc",color:"#000000ff",border:"2px solid #ccc",padding:"0px",borderRadius:"5px",position:"absolute",bottom:0,left:0,marginLeft:"3px",marginBottom:"3px"}}),StyledTableCell=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z)({border:"none",padding:0,width:"20px"}),StyledTableRow=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_6__.Z)({"& > *":{padding:0}});function Row(props){const{layer_data:layer_data}=props,[open,setOpen]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!0);return 0==layer_data.properties?.length?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableCell,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_7__.z,{style:{padding:0},variant:"ghost",onClick:()=>setOpen(!open)},open?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J,{color:"currentColor",name:"arrow_drop_up"}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J,{color:"currentColor",name:"arrow_drop_down"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,null," ",layer_data.layerName," ")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{paddingBottom:0,paddingTop:0},colSpan:2},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_8__.Z,{in:open,timeout:"auto",unmountOnExit:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_4__.Z,{size:"small","aria-label":"properties"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__.Z,null,layer_data.properties?.map((propertyRow=>{return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,{key:propertyRow.name},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{border:"none",paddingLeft:10,paddingRight:10}},propertyRow.color&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{color:(0,d3_color__WEBPACK_IMPORTED_MODULE_10__.B8)(...propertyRow.color).toString()}},"⬤"),propertyRow.name),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{border:"none",textAlign:"right"}},"number"==typeof propertyRow.value?(num=propertyRow.value,parseFloat(num.toExponential(Math.max(1,2+Math.log10(Math.abs(num)))))):propertyRow.value));var num}))))))))}const InfoCard=props=>{const[infoCardData,setInfoCardData]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if(0===props.pickInfos.length)return void setInfoCardData(null);const topObject=props.pickInfos[0];if(void 0===topObject.coordinate||topObject.coordinate.length<2)return;const xy_properties=[];xy_properties.push({name:"x",value:Number(topObject.coordinate[0]).toFixed(2).toString()+" m"}),xy_properties.push({name:"y",value:Number(topObject.coordinate[1]).toFixed(2).toString()+" m"});const info_card_data=[];info_card_data.push({layerName:"Position",properties:xy_properties}),props.pickInfos.forEach((info=>{const layer_properties=info.properties,layer_name=info.layer?.props?.name,zValue=info.propertyValue;if(void 0!==zValue){const property=xy_properties.find((item=>item.name===layer_name));property?property.value=zValue:xy_properties.push({name:layer_name,value:zValue})}const layer=info_card_data.find((item=>item.layerName===layer_name));layer?layer_properties?.forEach((layer_prop=>{const property=layer.properties?.find((item=>item.name===layer_prop.name));property?property.value=layer_prop.value:layer.properties?.push(layer_prop)})):info_card_data.push({layerName:layer_name||"unknown-layer",properties:layer_properties})})),setInfoCardData(info_card_data)}),[props.pickInfos]),infoCardData&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_11__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTable,{"aria-label":"info-card"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__.Z,null,infoCardData.map((card_data=>card_data.properties&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,{key:card_data.layerName,layer_data:card_data}))))))};__webpack_exports__.Z=InfoCard,InfoCard.__docgenInfo={description:"",methods:[],displayName:"InfoCard",props:{pickInfos:{required:!0,tsType:{name:"Array",elements:[{name:"LayerPickInfo"}],raw:"LayerPickInfo[]"},description:"List of JSON object describing picking information of layers\nthat are under the cursor."}}}},"./packages/subsurface-viewer/src/components/Map.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G0:function(){return createLayers},ZP:function(){return components_Map},oO:function(){return useHoverInfo}});var views_namespaceObject={};__webpack_require__.r(views_namespaceObject),__webpack_require__.d(views_namespaceObject,{IntersectionView:function(){return IntersectionView}});var react=__webpack_require__("./node_modules/react/index.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),json_converter=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/json-converter.js"),json_configuration=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/json-configuration.js"),deckgl=__webpack_require__("./node_modules/@deck.gl/react/dist/esm/deckgl.js"),camera_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/camera-light.js"),ambient_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/ambient-light.js"),point_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/point-light.js"),directional_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/directional-light.js"),lighting_effect=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/lighting-effect.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),orbit_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/orbit-view.js"),orbit_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orbit-controller.js"),orthographic_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/orthographic-view.js"),orthographic_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orthographic-controller.js"),line_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/line-layer/line-layer.js"),matrix4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),esm=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js"),dist=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/index.js"),wsc_common_dist=__webpack_require__("./packages/wsc-common/dist/index.js"),src_layers=__webpack_require__("./packages/subsurface-viewer/src/layers/index.ts"),layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts");const isEmpty=box=>{if(null==box)return!0;const xmin=box[0],ymin=box[1],xmax=box[2],ymax=box[3];return!(xmax>xmin&&ymax>ymin)},BoundingBox3D_boxCenter=box=>{const xmin=box[0],ymin=box[1],zmin=box[2];return[xmin+.5*(box[3]-xmin),ymin+.5*(box[4]-ymin),zmin+.5*(box[5]-zmin)]},BoundingBox3D_isEmpty=box=>{if(null==box)return!0;const xmin=box[0],ymin=box[1],zmin=box[2],xmax=box[3],ymax=box[4],zmax=box[5];return!(xmax>xmin&&ymax>ymin&&zmax!=zmin)};var first_person_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/first-person-view.js"),map_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/map-view.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),dist_esm=__webpack_require__("./node_modules/@deck.gl/aggregation-layers/dist/esm/index.js"),geo_layers_dist_esm=__webpack_require__("./node_modules/@deck.gl/geo-layers/dist/esm/index.js"),layers_dist_esm=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/index.js"),mesh_layers_dist_esm=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/index.js"),dist_es6=__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/index.js"),register_loaders=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/register-loaders.js"),constants_dist_esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/view.js"),intersectionViewport=__webpack_require__("./packages/subsurface-viewer/src/viewports/intersectionViewport.ts");class IntersectionView extends view.Z{static displayName="IntersectionView";constructor(props){super({...props,controller:!1,viewState:{target:[275,0,-500]}})}get ViewportType(){return intersectionViewport.Z}get ControllerType(){throw new Error("Method not implemented.")}}(0,register_loaders.fh)([]);var utils_configuration={classes:Object.assign({FirstPersonView:first_person_view.Z,MapView:map_view.Z,OrbitView:orbit_view.Z,OrthographicView:orthographic_view.Z,...views_namespaceObject},layers_dist_esm,dist_esm,geo_layers_dist_esm,mesh_layers_dist_esm,src_layers,{EditableGeoJsonLayer:dist_es6.nk}),functions:{},enumerations:{COORDINATE_SYSTEM:constants.COORDINATE_SYSTEM,GL:constants_dist_esm.default},constants:{}};const log2=Math.log2||function ieLog2(x){return Math.log(x)*Math.LOG2E};function fitBounds({width:width,height:height,bounds:bounds,minExtent:minExtent=0,maxZoom:maxZoom=24,padding:padding=0,offset:offset=[0,0]}){if(Number.isFinite(padding)){padding={top:padding,bottom:padding,left:padding,right:padding}}else console.assert(Number.isFinite(padding.top)&&Number.isFinite(padding.bottom)&&Number.isFinite(padding.left)&&Number.isFinite(padding.right));const[west,south]=[bounds[0],bounds[1]],[east,north]=[bounds[2],bounds[3]],nw=[west,north],se=[east,south],size=[Math.max(Math.abs(se[0]-nw[0]),minExtent),Math.max(Math.abs(se[1]-nw[1]),minExtent)],targetSize=[width-padding.left-padding.right-2*Math.abs(offset[0]),height-padding.top-padding.bottom-2*Math.abs(offset[1])],scaleX=targetSize[0]/size[0],scaleY=targetSize[1]/size[1],offsetX=(padding.right-padding.left)/2/scaleX,offsetY=(padding.bottom-padding.top)/2/scaleY,centerLngLat=[(se[0]+nw[0])/2+offsetX,(se[1]+nw[1])/2+offsetY];let zoom=Math.min(maxZoom,log2(Math.abs(Math.min(scaleX,scaleY))));return Number.isFinite(zoom)||(zoom=0),{x:centerLngLat[0],y:centerLngLat[1],zoom:zoom}}var DistanceScale=__webpack_require__("./packages/subsurface-viewer/src/components/DistanceScale.tsx"),InfoCard=__webpack_require__("./packages/subsurface-viewer/src/components/InfoCard.tsx"),CircularProgress=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Progress/Circular/CircularProgress.js");const StatusIndicator=({progress:progress,label:label})=>("boolean"==typeof progress&&(progress=progress?100:0),progress>=100?null:react.createElement("div",null,react.createElement(CircularProgress.D,{size:48,value:progress,variant:"determinate"}),react.createElement("br",null),label));var components_StatusIndicator=StatusIndicator;StatusIndicator.__docgenInfo={description:"",methods:[],displayName:"StatusIndicator",props:{progress:{required:!0,tsType:{name:"union",raw:"number | boolean",elements:[{name:"number"},{name:"boolean"}]},description:""},label:{required:!0,tsType:{name:"string"},description:""}}};var camera=__webpack_require__("./packages/subsurface-viewer/src/utils/camera.ts");function updateZScaleReducer(zScale,action){return zScale*function getZScaleModifier(arrowEvent){let scaleFactor=0;switch(arrowEvent.key){case"ArrowUp":scaleFactor=.05;break;case"ArrowDown":scaleFactor=-.05;break;case"PageUp":scaleFactor=.25;break;case"PageDown":scaleFactor=-.25}arrowEvent.shiftModifier&&(scaleFactor/=5);return 1+scaleFactor}(action)}var merge_refs_dist_esm=__webpack_require__("./node_modules/merge-refs/dist/esm/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;ivoid 0===box1?box2??defaultBox:void 0===box2?box1??defaultBox:[Math.min(box1[0],box2[0]),Math.min(box1[1],box2[1]),Math.min(box1[2],box2[2]),Math.max(box1[3],box2[3]),Math.max(box1[4],box2[4]),Math.max(box1[5],box2[5])])(mapBoundingBox,action.layerBoundingBox);return(0,lodash.isEqual)(union,mapBoundingBox)?mapBoundingBox:union}function useHoverInfo(){const[hoverInfo,setHoverInfo]=(0,react.useState)([]);return[hoverInfo,(0,react.useCallback)((pickEvent=>{setHoverInfo(pickEvent.infos)}),[])]}function defaultTooltip(info){if(info?.logName)return info?.logName;if("drawing-layer"===info.layer?.id)return info.propertyValue?.toFixed(2);const feat=info.object;return feat?.properties?.name}const Map=({id:id,layers:layers,bounds:bounds,cameraPosition:cameraPosition,triggerHome:triggerHome,views:views,coords:coords,scale:scale,coordinateUnit:coordinateUnit,colorTables:colorTables,setEditedData:setEditedData,checkDatafileSchema:checkDatafileSchema,onMouseEvent:onMouseEvent,selection:selection,children:children,getTooltip:getTooltip=defaultTooltip,getCameraPosition:getCameraPosition,onRenderingProgress:onRenderingProgress,onDragStart:onDragStart,onDragEnd:onDragEnd,lights:lights,triggerResetMultipleWells:triggerResetMultipleWells,verticalScale:verticalScale})=>{const deckRef=react.useRef(null),[applyViewController,forceUpdate]=react.useReducer((x=>x+1),0),viewController=(0,react.useMemo)((()=>new ViewController(forceUpdate)),[]),[deckSize,setDeckSize]=(0,react.useState)({width:0,height:0}),onResize=(0,react.useCallback)((size=>{size.width>0&&size.height>0&&setDeckSize((prevSize=>prevSize?.width!==size.width||prevSize?.height!==size.height?size:prevSize))}),[]),[dataBoundingBox3d,dispatchBoundingBox]=react.useReducer(mapBoundingBoxReducer,void 0),viewportVerticalScale=(viewports=views?.viewports,react.useMemo((()=>viewports?viewports.find((item=>!!item.verticalScale))?.verticalScale:1),[viewports]));var viewports;const{zScale:zReScale,divRef:zScaleRef}=function useHandleRescale(disable=!1){const[zScale,updateZScale]=react.useReducer(updateZScaleReducer,1),divRef=react.useRef(null);return react.useEffect((()=>{if(disable)return;const keyDownHandler=e=>{const arrowEvent=function convertToArrowEvent(event){if("keydown"===event.type)switch(event.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":return{key:event.key,shiftModifier:event.shiftKey};default:return null}return null}(e);arrowEvent&&(updateZScale(arrowEvent),e.stopPropagation())},element=divRef.current;return element?.addEventListener("keydown",keyDownHandler,!0),()=>{element?.removeEventListener("keydown",keyDownHandler)}}),[updateZScale,divRef,disable]),{zScale:zScale,divRef:divRef}}(!!(verticalScale??viewportVerticalScale)),{shiftHeld:shiftHeld,divRef:shiftHeldRef}=function useShiftHeld(){const[shiftHeld,setShiftHeld]=(0,react.useState)(!1),divRef=react.useRef(null);return react.useEffect((()=>{const keyDownHandler=e=>{"Shift"===e.key&&setShiftHeld(!0)},keyUpHandler=e=>{"Shift"===e.key&&setShiftHeld(!1)},element=divRef.current;return element?.addEventListener("keydown",keyDownHandler,!0),element?.addEventListener("keyup",keyUpHandler,!0),()=>{element?.removeEventListener("keydown",keyDownHandler),element?.removeEventListener("keyup",keyUpHandler)}}),[setShiftHeld,divRef]),{divRef:divRef,shiftHeld:shiftHeld}}(),divRef=(0,merge_refs_dist_esm.Z)(zScaleRef,shiftHeldRef),zScale=verticalScale??viewportVerticalScale??zReScale,viewPortMargins=react.useMemo((()=>{if(!layers?.length)return{left:0,right:0,top:0,bottom:0};const axes2DLayer=layers?.find((e=>e?.constructor===src_layers.Axes2DLayer)),axes2DProps=axes2DLayer?.props;return{left:axes2DProps?.isLeftRuler?axes2DProps.marginH:0,right:axes2DProps?.isRightRuler?axes2DProps.marginH:0,top:axes2DProps?.isTopRuler?axes2DProps.marginV:0,bottom:axes2DProps?.isBottomRuler?axes2DProps.marginV:0}}),[layers]);(0,react.useEffect)((()=>{const layers=deckRef.current?.deck?.props.layers;if(layers){const wellslayer=(0,layerTools.eG)(layers,src_layers.WellsLayer.name)?.[0];wellslayer?.setSelection(selection?.well,selection?.selection)}}),[selection]);const[multipleWells,setMultipleWells]=(0,react.useState)([]),[selectedWell,setSelectedWell]=(0,react.useState)("");(0,react.useEffect)((()=>{const layers=deckRef.current?.deck?.props.layers;if(layers){const wellslayer=(0,layerTools.kF)(layers,"WellsLayer",selectedWell)?.[0];wellslayer?.setMultiSelection(multipleWells)}}),[multipleWells,selectedWell]),(0,react.useEffect)((()=>{void 0!==triggerResetMultipleWells&&setMultipleWells([])}),[triggerResetMultipleWells]);const getPickingInfos=(0,react.useCallback)(((pickInfo,event)=>{if(coords?.multiPicking&&pickInfo.layer?.context.deck){const pickInfos=pickInfo.layer.context.deck.pickMultipleObjects({x:event.offsetCenter.x,y:event.offsetCenter.y,depth:coords.pickDepth?coords.pickDepth:void 0,unproject3D:!0});return pickInfos.forEach((item=>{if(item.properties){let unit=item.sourceLayer?.props.data?.unit;null==unit&&(unit=" "),item.properties.forEach((element=>{(element.name.includes("MD")||element.name.includes("TVD"))&&(element.value=Number(element.value).toFixed(2).toString()+" "+unit)}))}})),pickInfos}return[pickInfo]}),[coords?.multiPicking,coords?.pickDepth]),callOnMouseEvent=(0,react.useCallback)(((type,infos,event)=>{if(event.leftButton&&2==event.tapCount&&infos.length>=1&&infos[0].coordinate&&viewController.setTarget(infos[0].coordinate),!onMouseEvent)return;const ev=function handleMouseEvent(type,infos,event){const ev={type:type,infos:infos};"click"===ev.type&&event.rightButton&&(ev.type="contextmenu");for(const info of infos)if(info.coordinate&&(ev.x=info.coordinate[0],ev.y=info.coordinate[1]),info.layer&&"wells-layer"===info.layer.id){{const feat=info.object,properties=feat?.properties;properties&&(ev.wellname=properties.name,ev.wellcolor=properties.color)}if(ev.wellname||info.object&&(ev.wellname=info.object.header?.well),info.properties)for(const property of info.properties){ev.wellcolor||(ev.wellcolor=property.color);let propname=property.name;if(propname){const sep=propname.indexOf(" ");sep>=0&&(ev.wellname||(ev.wellname=propname.substring(sep+1)),propname=propname.substring(0,sep))}const names_tvd=["TVD","TVDSS","DVER","TVD_MSL"];if(["DEPTH","DEPT","MD","TDEP","MD_RKB"].find((name=>name==propname))?ev.md=parseFloat(property.value):names_tvd.find((name=>name==propname))&&(ev.tvd=parseFloat(property.value)),void 0!==ev.md&&void 0!==ev.tvd&&void 0!==ev.wellname)break}break}return ev}(type,infos,event);onMouseEvent(ev)}),[onMouseEvent,viewController]),[hoverInfo,setHoverInfo]=(0,react.useState)([]),onHover=(0,react.useCallback)(((pickInfo,event)=>{const infos=getPickingInfos(pickInfo,event);setHoverInfo(infos),callOnMouseEvent?.("hover",infos,event)}),[callOnMouseEvent,getPickingInfos]),onClick=(0,react.useCallback)(((pickInfo,event)=>{const infos=getPickingInfos(pickInfo,event);callOnMouseEvent?.("click",infos,event)}),[callOnMouseEvent,getPickingInfos]),deckGLLayers=react.useMemo((()=>{if(!layers)return[];if(0===layers.length){const dummy_layer=new line_layer.Z({id:"webviz_internal_dummy_layer",visible:!1});layers.push(dummy_layer)}const m=(0,layerTools.BZ)(zScale);return layers.map((item=>item?.constructor.name===src_layers.NorthArrow3DLayer.name?item:item.clone({reportBoundingBox:dispatchBoundingBox,modelMatrix:m})))}),[layers,zScale]),[loadingProgress,setLoadingProgress]=(0,react.useState)(0),onAfterRender=(0,react.useCallback)((()=>{if(deckGLLayers){let progress=100;if(!(1==deckGLLayers.length&&"webviz_internal_dummy_layer"===deckGLLayers[0].id)){const visibleLayers=deckGLLayers.filter((layer=>layer.props.visible)),loaded=visibleLayers?.filter((layer=>layer?.isLoaded)).length;progress=Math.ceil(100*loaded/visibleLayers?.length)}setLoadingProgress(progress),onRenderingProgress&&onRenderingProgress(progress)}}),[deckGLLayers,onRenderingProgress]),[errorText,setErrorText]=(0,react.useState)();(0,react.useEffect)((()=>{const layers=deckRef.current?.deck?.props.layers;if(checkDatafileSchema&&layers&&100===loadingProgress)try{(0,wsc_common_dist.TL)(layers),colorTables&&(0,wsc_common_dist.cs)(colorTables)}catch(e){setErrorText(String(e))}else setErrorText(void 0)}),[checkDatafileSchema,colorTables,deckRef?.current?.deck?.props.layers,loadingProgress]);const layerFilter=(0,react.useCallback)((args=>{if(!views?.viewports||!views?.layout)return!0;const cur_view=views.viewports.find((({id:id})=>args.viewport.id&&id===args.viewport.id));if(cur_view?.layerIds&&cur_view.layerIds.length>0){return cur_view.layerIds.some((layer_id=>layer_id===args.layer.id))}return!0}),[views]),onViewStateChange=(0,react.useCallback)((({viewId:viewId,viewState:viewState})=>{viewController.onViewStateChange(viewId,viewState),getCameraPosition&&getCameraPosition(viewState)}),[getCameraPosition,viewController]),effects=function parseLights(lights){if(!lights)return;const effects=[];let lightsObj={};if(lights.headLight){const headLight=new camera_light.Z({intensity:lights.headLight.intensity,color:lights.headLight.color??[255,255,255]});lightsObj={...lightsObj,headLight:headLight}}if(lights.ambientLight){const ambientLight=new ambient_light.M({intensity:lights.ambientLight.intensity,color:lights.ambientLight.color??[255,255,255]});lightsObj={...lightsObj,ambientLight:ambientLight}}if(lights.pointLights)for(const light of lights.pointLights){const pointLight=new point_light.c({...light,color:light.color??[255,255,255]});lightsObj={...lightsObj,pointLight:pointLight}}if(lights.directionalLights)for(const light of lights.directionalLights){const directionalLight=new directional_light.O({...light,color:light.color??[255,255,255]});lightsObj={...lightsObj,directionalLight:directionalLight}}const lightingEffect=new lighting_effect.Z(lightsObj);return effects.push(lightingEffect),effects}(lights),[deckGlViews,deckGlViewState]=(0,react.useMemo)((()=>{const state={triggerHome:triggerHome,camera:cameraPosition,bounds:bounds,boundingBox3d:dataBoundingBox3d,viewPortMargins:viewPortMargins,deckSize:deckSize,zScale:zScale};return viewController.getViews(views,state)}),[triggerHome,cameraPosition,bounds,dataBoundingBox3d,viewPortMargins,deckSize,views,zScale,applyViewController,viewController]),lateralZoom=(0,camera.b2)(deckGlViewState);return!deckGlViews||(0,lodash.isEmpty)(deckGlViews)||(0,lodash.isEmpty)(deckGLLayers)?null:react.createElement("div",{ref:divRef,onContextMenu:event=>event.preventDefault()},react.createElement(deckgl.Z,{id:id,viewState:deckGlViewState,views:deckGlViews,layerFilter:layerFilter,layers:deckGLLayers,userData:{setEditedData:updated_prop=>{if(setSelectedWell(updated_prop.selectedWell),Object.keys(updated_prop).includes("selectedWell"))if(shiftHeld)if(multipleWells.includes(updated_prop.selectedWell)){const temp=multipleWells.filter((item=>item!==updated_prop.selectedWell));setMultipleWells(temp)}else{const temp=multipleWells.concat(updated_prop.selectedWell);setMultipleWells(temp)}else setMultipleWells([]);setEditedData?.(updated_prop)},colorTables:colorTables},getCursor:({isDragging:isDragging})=>isDragging?"grabbing":"default",getTooltip:getTooltip,ref:deckRef,onViewStateChange:onViewStateChange,onHover:onHover,onClick:onClick,onAfterRender:onAfterRender,effects:effects,onDragStart:onDragStart,onDragEnd:onDragEnd,onResize:onResize},children),scale?.visible?react.createElement(DistanceScale.Z,_extends({},scale,{zoom:lateralZoom,scaleUnit:coordinateUnit,style:scale.cssStyle??{}})):null,!onRenderingProgress&&loadingProgress<100&&react.createElement("div",{style:{display:"flex",alignItems:"flex-end",justifyContent:"right",position:"absolute",height:"10%",width:"10%",bottom:"10px",right:"10px",zIndex:200}},react.createElement(components_StatusIndicator,{progress:loadingProgress,label:"Loading assets..."})),coords?.visible&&react.createElement(InfoCard.Z,{pickInfos:hoverInfo}),errorText&&react.createElement("pre",{style:{flex:"0, 0",color:"rgb(255, 64, 64)",backgroundColor:"rgb(255, 255, 192)"}},errorText))};Map.defaultProps={coords:{visible:!0,multiPicking:!0,pickDepth:10},scale:{visible:!0,incrementValue:100,widthPerUnit:100,cssStyle:{top:10,left:10}},toolbar:{visible:!1},coordinateUnit:"m",views:{layout:[1,1],showLabel:!1,viewports:[{id:"main-view",show3D:!1,layerIds:[]}]},colorTables:dist.Su,checkDatafileSchema:!1};var components_Map=Map;function createLayers(layers,enums=void 0){const configuration=createConfiguration(enums),filtered_layers=layers.filter((value=>!(0,lodash.isEmpty)(value))),layersList=new Array(filtered_layers.length),jsonLayerIndices=[],jsonLayerDefs=[];filtered_layers.forEach(((layer,index)=>{layer instanceof lib_layer.Z?layersList[index]=layer:layer["@@typedArraySupport"]?layersList[index]=function createLayer(layerData,configuration){const typeKey=configuration.typeKey,classes=configuration.classes;if(layerData[typeKey]){const type=layerData[typeKey];if(type in classes){const Class=classes[type],props={...layerData};return delete props[typeKey],new Class(props)}}return null}(layer,configuration):(jsonLayerDefs.push(layer),jsonLayerIndices.push(index))}));const jsonLayers=function jsonToObject(data,enums){if(!data)return[];const configuration=createConfiguration(enums),jsonConverter=new json_converter.Z({configuration:configuration}),filtered_data=data.filter((value=>!(0,lodash.isEmpty)(value)));return jsonConverter.convert(filtered_data)}(jsonLayerDefs,enums);return jsonLayers.forEach(((layer,index)=>{const layerIndex=jsonLayerIndices[index];layersList[layerIndex]=layer})),layersList.filter((value=>!(0,lodash.isEmpty)(value)))}function createConfiguration(enums=void 0){const configuration=new json_configuration.Z(utils_configuration);return enums?.forEach((enumeration=>{enumeration&&configuration.merge({enumerations:{...enumeration}})})),configuration}class ViewController{state_={triggerHome:void 0,camera:void 0,bounds:void 0,boundingBox3d:void 0,deckSize:{width:0,height:0},zScale:1,viewPortMargins:{left:0,right:0,top:0,bottom:0},target:void 0,readyForInteraction:!1,viewStateChanged:!1};derivedState_={target:void 0,readyForInteraction:!1,viewStateChanged:!1};views_=void 0;result_={views:[],viewState:{}};constructor(rerender){this.rerender_=rerender}setTarget=target=>{this.derivedState_.target=[target[0],target[1],target[2]],this.rerender_()};getViews=(views,state)=>{const fullState=this.consolidateState(state),newViews=this.getDeckGlViews(views,fullState),newViewState=this.getDeckGlViewState(views,fullState);return this.state_=fullState,this.views_=views,this.result_.views=newViews,this.result_.viewState=newViewState,[newViews,newViewState]};consolidateState=state=>({...state,...this.derivedState_});getDeckGlViews=(views,state)=>views!=this.views_||state.deckSize!=this.state_.deckSize?function buildDeckGlViews(views,size){const isOk=areViewsValid(views,size);if(!views||!isOk)return[new orthographic_view.Z({id:"main",controller:null,x:"0%",y:"0%",width:"100%",height:"100%",flipY:!1,far:99999,near:-99999})];const[nY,nX]=views.layout;if(1===nX&&1===nY)return[newView(views.viewports[0],0,0,"99.5%","99.5%")];const result=[],w=99.5/nX,h=99.5/nY,marginPixels=views.marginPixels??0,marginHorPercentage=marginPixels/(w*size.width)*1e4,marginVerPercentage=marginPixels/(h*size.height)*1e4;let yPos=0;for(let y=1;y<=nY;y++){let xPos=0;for(let x=1;x<=nX;x++){if(result.length>=views.viewports.length)return result;const currentViewport=views.viewports[result.length],viewX=xPos+marginHorPercentage/nX+"%",viewY=yPos+marginVerPercentage/nY+"%",viewWidth=w*(1-marginHorPercentage/100*2)+"%",viewHeight=h*(1-marginVerPercentage/100*2)+"%";result.push(newView(currentViewport,viewX,viewY,viewWidth,viewHeight)),xPos+=w}yPos+=h}return result}(views,state.deckSize):this.result_.views;getDeckGlViewState=(views,state)=>{const viewsChanged=views!=this.views_,triggerHome=state.triggerHome!==this.state_.triggerHome,updateTarget=(viewsChanged||state.target!==this.state_?.target)&&null!=state.target,updateZScale=viewsChanged||state.zScale!==this.state_?.zScale||triggerHome,updateViewState=viewsChanged||triggerHome||state.camera!=this.state_.camera||state.bounds!=this.state_.bounds||!state.viewStateChanged&&(state.boundingBox3d!==this.state_.boundingBox3d||state.deckSize!=this.state_.deckSize),needUpdate=updateZScale||updateTarget||updateViewState,isCacheEmpty=(0,lodash.isEmpty)(this.result_.viewState);if(!isCacheEmpty&&!needUpdate)return this.result_.viewState;const prevViewState=this.result_.viewState;let viewState=prevViewState;if((updateViewState||isCacheEmpty)&&(viewState=function buildDeckGlViewStates(views,viewPortMargins,cameraPosition,boundingBox,bounds,size){const isOk=areViewsValid(views,size);if(!views||!isOk)return{};const[nY,nX]=views.layout;if(1===nX&&1===nY){const viewState=computeViewState(views.viewports[0],cameraPosition,boundingBox,bounds,viewPortMargins,views,size);return{[views.viewports[0].id]:viewState}}let result={};for(let y=1;y<=nY;y++)for(let x=1;x<=nX;x++){const resultLength=Object.keys(result).length;if(resultLength>=views.viewports.length)return result;const currentViewport=views.viewports[resultLength],currentViewState=computeViewState(currentViewport,cameraPosition,boundingBox,bounds,viewPortMargins,views,size);currentViewState&&(result={...result,[currentViewport.id]:currentViewState})}return result}(views,state.viewPortMargins,state.camera,state.boundingBox3d,state.bounds,state.deckSize),this.derivedState_.readyForInteraction=function canCameraBeDefined(camera,boundingBox,bounds,size){if(isCameraDefined(camera))return!0;return size.height>0&&size.width>0&&(function cameraDefinesBoundingBox(camera){return Array.isArray(camera?.zoom)&&!BoundingBox3D_isEmpty(camera.zoom)}(camera)||!BoundingBox3D_isEmpty(boundingBox)||!isEmpty("function"==typeof bounds?bounds():bounds))}(state.camera,state.boundingBox3d,state.bounds,state.deckSize),this.derivedState_.viewStateChanged=!1),(0,lodash.isEmpty)(viewState))return viewState;const viewStateKeys=Object.keys(viewState);if(updateTarget&&this.derivedState_.target&&1===viewStateKeys?.length&&(viewState===prevViewState&&(viewState=(0,lodash.cloneDeep)(prevViewState)),viewState[viewStateKeys[0]].target=this.derivedState_.target,viewState[viewStateKeys[0]].transitionDuration=1e3,this.derivedState_.target=void 0),updateZScale){viewState===prevViewState&&(viewState=(0,lodash.cloneDeep)(prevViewState));const targetScale=state.zScale/(triggerHome?1:this.state_.zScale);for(const key in viewState){const t=viewState[key].target;t&&(viewState[key].target=[t[0],t[1],t[2]*targetScale])}}return viewState};onViewStateChange=(viewId,viewState)=>{if(!this.derivedState_.readyForInteraction)return;const viewports=this.views_?.viewports??[];2===viewState.target.length&&viewState.target.push(this.result_.viewState[viewId].target[2]);const isSyncIds=viewports.filter((item=>item.isSync)).map((item=>item.id));if(isSyncIds?.includes(viewId)){const viewStateTable=this.views_?.viewports.filter((item=>item.isSync)).map((item=>[item.id,viewState])),tempViewStates=Object.fromEntries(viewStateTable??[]);this.result_.viewState={...this.result_.viewState,...tempViewStates}}else this.result_.viewState={...this.result_.viewState,[viewId]:viewState};this.derivedState_.viewStateChanged=!0,this.rerender_()}}function getViewStateFromBounds(viewPortMargins,bounds_accessor,target,views,viewPort,size){const bounds="function"==typeof bounds_accessor?bounds_accessor():bounds_accessor;let w=bounds[2]-bounds[0],h=bounds[3]-bounds[1];const z=target[2],fb=fitBounds({width:w,height:h,bounds:bounds});let fb_target=[fb.x,fb.y,z],fb_zoom=fb.zoom;if(size.width>0&&size.height>0){const w_bounds=w,h_bounds=h,ml=viewPortMargins.left,mr=viewPortMargins.right,mb=viewPortMargins.bottom,mt=viewPortMargins.top,marginH=(ml>0?ml:0)+(mr>0?mr:0),marginV=(mb>0?mb:0)+(mt>0?mt:0);if(w=size.width-marginH,h=size.height-marginV,views?.layout){const[nY,nX]=views.layout;if(1!==nX||1!==nY){const mPixels=views?.marginPixels??0,w_=99.5/nX,h_=99.5/nY,marginHorPercentage=mPixels/(w_*size.width)*1e4,marginVerPercentage=mPixels/(h_*size.height)*1e4;w=w_/100*size.width*(1-marginHorPercentage/100*2)-marginH,h=h_/100*size.height*(1-marginVerPercentage/100*2)-marginV}}const m_pr_pixel=h_bounds/w_bounds>h/w?h_bounds/h:w_bounds/w;let translate_x=0;ml>0&&0===mr?translate_x=.5*ml*m_pr_pixel:0===ml&&mr>0&&(translate_x=-.5*mr*m_pr_pixel);let translate_y=0;mb>0&&0===mt?translate_y=.5*mb*m_pr_pixel:0===mb&&mt>0&&(translate_y=-.5*mt*m_pr_pixel);const fb=fitBounds({width:w,height:h,bounds:bounds});fb_target=[fb.x-translate_x,fb.y-translate_y,z],fb_zoom=fb.zoom}return{target:viewPort.target??fb_target,zoom:(0,camera.aB)(viewPort,fb_zoom),rotationX:90,rotationOrbit:0,minZoom:viewPort.show3D?minZoom3D:minZoom2D,maxZoom:viewPort.show3D?maxZoom3D:maxZoom2D}}function areViewsValid(views,size){return!!(null!=views?.viewports&&null!=views?.layout&&views?.layout?.[0]&&views?.layout?.[1]&&size.width&&size.height)}function newView(viewport,x,y,width,height){const near=viewport.show3D?.1:-9999,[ViewType,Controller]=function getViewType(viewport){return viewport.show3D?[orbit_view.Z,orbit_controller.Z]:["intersection_view"===viewport.id?IntersectionView:orthographic_view.Z,orthographic_controller.Z]}(viewport);return new ViewType({id:viewport.id,controller:{type:Controller,doubleClickZoom:!1},x:x,y:y,width:width,height:height,flipY:!1,far:9999,near:near})}function cameraHasZoom(camera){const zoom=camera?.zoom,isNumber="number"==typeof zoom&&!Number.isNaN(zoom),isXy=Array.isArray(zoom)&&2==zoom.length;return isNumber||isXy}function cameraHasTarget(camera){return Array.isArray(camera?.target)&&camera.target.length>=2&&camera.target.length<=3}function isCameraDefined(camera){return cameraHasZoom(camera)&&cameraHasTarget(camera)}function updateViewState(camera,boundingBox,size,is3D=!0){if(isCameraDefined(camera))return camera;Array.isArray(camera.zoom)&&!BoundingBox3D_isEmpty(camera.zoom)&&(boundingBox=camera.zoom),is3D||(boundingBox[2]=0,boundingBox[5]=0);const camera_=(0,lodash.cloneDeep)(camera);return cameraHasZoom(camera_)||(camera_.zoom=function computeCameraZoom(camera,boundingBox,size,fovy=50){const DEGREES_TO_RADIANS=Math.PI/180,RADIANS_TO_DEGREES=180/Math.PI,fD=(0,esm.sj)(fovy),angle_ver=25*DEGREES_TO_RADIANS,r=size.height/2/Math.sin(angle_ver)*Math.cos(angle_ver),angle_hor=2*Math.atan(size.width/2/r)*RADIANS_TO_DEGREES/2*DEGREES_TO_RADIANS,fwX=fD*Math.tan(angle_hor),fwY=fD*Math.tan(angle_ver),m=new matrix4.Z([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);m.rotateX(camera.rotationX*DEGREES_TO_RADIANS),m.rotateZ(camera.rotationOrbit*DEGREES_TO_RADIANS);const xMin=boundingBox[0],yMin=boundingBox[1],zMin=boundingBox[2],xMax=boundingBox[3],yMax=boundingBox[4],zMax=boundingBox[5],target=[xMin+(xMax-xMin)/2,yMin+(yMax-yMin)/2,zMin+(zMax-zMin)/2],points=[[xMin,yMin,zMin],[xMin,yMax,zMin],[xMax,yMax,zMin],[xMax,yMin,zMin],[xMin,yMin,zMax],[xMin,yMax,zMax],[xMax,yMax,zMax],[xMax,yMin,zMax]];let zoom=999;for(const point of points){const x_=(point[0]-target[0])/size.height,y_=(point[1]-target[1])/size.height,z_=(point[2]-target[2])/size.height,[x,y,z]=m.transformAsVector([x_,y_,z_]);if(y>=0)continue;let y_new=fwX/(Math.abs(x)/y-fwX/fD);const zoom_x=Math.log2(y_new/y);y_new=fwY/(Math.abs(z)/y-fwY/fD);const zoom_z=Math.log2(y_new/y);zoom=zoom_x"},description:'Resource dictionary made available in the DeckGL specification as an enum.\nThe values can be accessed like this: `"@@#resources.resourceId"`, where\n`resourceId` is the key in the `resources` dict. For more information,\nsee the DeckGL documentation on enums in the json spec:\nhttps://deck.gl/docs/api-reference/json/conversion-reference#enumerations-and-using-the--prefix'},layers:{required:!1,tsType:{name:"LayersList"},description:""},bounds:{required:!1,tsType:{name:"union",raw:"BoundingBox2D | BoundsAccessor",elements:[{name:"tuple",raw:"[number, number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"},{name:"number"}]},{name:"signature",type:"function",raw:"() => BoundingBox2D",signature:{arguments:[],return:{name:"tuple",raw:"[number, number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"},{name:"number"}]}}}]},description:"Coordinate boundary for the view defined as [left, bottom, right, top].\nShould be used for 2D view only."},cameraPosition:{required:!1,tsType:{name:"ViewStateType"},description:"Camera state for the view defined as a ViewStateType.\nShould be used for 3D view only.\nIf the zoom is given as a 3D bounding box, the camera state is computed to\ndisplay the full box."},triggerHome:{required:!1,tsType:{name:"number"},description:"If changed will reset view settings (bounds or camera) to default position."},views:{required:!1,tsType:{name:"ViewsType"},description:"Views configuration for map. If not specified, all the layers will be\ndisplayed in a single 2D viewport",defaultValue:{value:'{\n layout: [1, 1],\n showLabel: false,\n viewports: [{ id: "main-view", show3D: false, layerIds: [] }],\n}',computed:!1}},coords:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n visible?: boolean | null;\n multiPicking?: boolean | null;\n pickDepth?: number | null;\n}",signature:{properties:[{key:"visible",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"multiPicking",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"pickDepth",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}}]}},description:"Parameters for the InfoCard component",defaultValue:{value:"{\n visible: true,\n multiPicking: true,\n pickDepth: 10,\n}",computed:!1}},scale:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n visible?: boolean | null;\n incrementValue?: number | null;\n widthPerUnit?: number | null;\n cssStyle?: Record | null;\n}",signature:{properties:[{key:"visible",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"incrementValue",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}},{key:"widthPerUnit",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}},{key:"cssStyle",value:{name:"union",raw:"Record | null",elements:[{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},{name:"null"}],required:!1}}]}},description:"Parameters for the Distance Scale component",defaultValue:{value:"{\n visible: true,\n incrementValue: 100,\n widthPerUnit: 100,\n cssStyle: { top: 10, left: 10 },\n}",computed:!1}},coordinateUnit:{required:!1,tsType:{name:"Unit"},description:"",defaultValue:{value:'"m"',computed:!1}},toolbar:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n visible?: boolean | null;\n}",signature:{properties:[{key:"visible",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}}]}},description:"Parameters to control toolbar",defaultValue:{value:"{\n visible: false,\n}",computed:!1}},colorTables:{required:!1,tsType:{name:"colorTablesArray"},description:"Prop containing color table data",defaultValue:{value:"colorTables",computed:!0}},editedData:{required:!1,tsType:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},description:"Prop containing edited data from layers"},setEditedData:{required:!1,tsType:{name:"signature",type:"function",raw:"(data: Record) => void",signature:{arguments:[{type:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},name:"data"}],return:{name:"void"}}},description:"For reacting to prop changes"},checkDatafileSchema:{required:!1,tsType:{name:"boolean"},description:"Validate JSON datafile against schema",defaultValue:{value:"false",computed:!1}},onMouseEvent:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: MapMouseEvent) => void",signature:{arguments:[{type:{name:"MapMouseEvent"},name:"event"}],return:{name:"void"}}},description:"For get mouse events"},getCameraPosition:{required:!1,tsType:{name:"signature",type:"function",raw:"(input: ViewStateType) => void",signature:{arguments:[{type:{name:"ViewStateType"},name:"input"}],return:{name:"void"}}},description:""},onRenderingProgress:{required:!1,tsType:{name:"signature",type:"function",raw:"(progress: number) => void",signature:{arguments:[{type:{name:"number"},name:"progress"}],return:{name:"void"}}},description:"Will be called while layers have rendered data.\nprogress is a number between 0 and 100."},onDragStart:{required:!1,tsType:{name:"signature",type:"function",raw:"(info: PickingInfo, event: MjolnirGestureEvent) => void",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"},{type:{name:"MjolnirGestureEvent"},name:"event"}],return:{name:"void"}}},description:""},onDragEnd:{required:!1,tsType:{name:"signature",type:"function",raw:"(info: PickingInfo, event: MjolnirGestureEvent) => void",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"},{type:{name:"MjolnirGestureEvent"},name:"event"}],return:{name:"void"}}},description:""},triggerResetMultipleWells:{required:!1,tsType:{name:"number"},description:""},selection:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n well: string | undefined;\n selection: [number | undefined, number | undefined] | undefined;\n}",signature:{properties:[{key:"well",value:{name:"union",raw:"string | undefined",elements:[{name:"string"},{name:"undefined"}],required:!0}},{key:"selection",value:{name:"union",raw:"[number | undefined, number | undefined] | undefined",elements:[{name:"tuple",raw:"[number | undefined, number | undefined]",elements:[{name:"union",raw:"number | undefined",elements:[{name:"number"},{name:"undefined"}]},{name:"union",raw:"number | undefined",elements:[{name:"number"},{name:"undefined"}]}]},{name:"undefined"}],required:!0}}]}},description:""},lights:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n headLight?: {\n intensity: number;\n color?: [number, number, number];\n };\n ambientLight?: {\n intensity: number;\n color?: [number, number, number];\n };\n pointLights?: [\n {\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n },\n ];\n\n directionalLights?: [\n {\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n },\n ];\n}",signature:{properties:[{key:"headLight",value:{name:"signature",type:"object",raw:"{\n intensity: number;\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]},required:!1}},{key:"ambientLight",value:{name:"signature",type:"object",raw:"{\n intensity: number;\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]},required:!1}},{key:"pointLights",value:{name:"tuple",raw:"[\n {\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n },\n]",elements:[{name:"signature",type:"object",raw:"{\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"position",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]}}],required:!1}},{key:"directionalLights",value:{name:"tuple",raw:"[\n {\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n },\n]",elements:[{name:"signature",type:"object",raw:"{\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"direction",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]}}],required:!1}}]}},description:""},children:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},getTooltip:{required:!1,tsType:{name:"signature",type:"function",raw:"(\n info: PickingInfo\n) => string | Record | null",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"}],return:{name:"union",raw:"string | Record | null",elements:[{name:"string"},{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},{name:"null"}]}}},description:"",defaultValue:{value:'function defaultTooltip(info: PickingInfo) {\n if ((info as WellsPickInfo)?.logName) {\n return (info as WellsPickInfo)?.logName;\n } else if (info.layer?.id === "drawing-layer") {\n return (info as LayerPickInfo).propertyValue?.toFixed(2);\n }\n const feat = info.object as Feature;\n return feat?.properties?.["name"];\n}',computed:!1}},verticalScale:{required:!1,tsType:{name:"number"},description:"A vertical scale factor, used to scale items in the view vertically"}}}},"./packages/subsurface-viewer/src/layers/BoxSelectionLayer/boxSelectionLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return BoxSelectionLayer}});var _deck_gl_core_typed__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),_nebula_gl_layers__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/index.js"),_deck_gl_layers_typed__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/geojson-layer/geojson-layer.js"),_wells_wellsLayer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/src/layers/wells/wellsLayer.ts");class BoxSelectionLayer extends _deck_gl_core_typed__WEBPACK_IMPORTED_MODULE_2__.Z{setMultiSelection(pickingInfos){if(this.internalState){const data=pickingInfos.map((item=>item.object)).filter((item=>"Feature"===item.type));this.setState({pickingInfos:pickingInfos,data:data})}}renderLayers(){if(0==this.props.visible)return[];const positionFormat="OrthographicViewport"===this.context.viewport.constructor.name?"XY":"XYZ",geoJsonLayer=new _deck_gl_layers_typed__WEBPACK_IMPORTED_MODULE_3__.Z({id:"geoJson",data:this.state.data,pickable:!1,stroked:!1,positionFormat:positionFormat,pointRadiusUnits:"pixels",lineWidthUnits:"pixels",pointRadiusScale:this.props.pointRadiusScale?this.props.pointRadiusScale:1,lineWidthScale:this.props.lineWidthScale?this.props.lineWidthScale:1,getLineWidth:(0,_wells_wellsLayer__WEBPACK_IMPORTED_MODULE_1__.ap)("line",this.props.lineStyle?.width,-1),getPointRadius:(0,_wells_wellsLayer__WEBPACK_IMPORTED_MODULE_1__.ap)("point",this.props.wellHeadStyle?.size,2),getFillColor:[255,140,0],getLineColor:[255,140,0]});return[new _nebula_gl_layers__WEBPACK_IMPORTED_MODULE_0__.Xr(this.getSubLayerProps({id:"selection",selectionType:"rectangle",onSelect:({pickingInfos:pickingInfos})=>{this.setMultiSelection(pickingInfos),this.props.handleSelection&&this.props.handleSelection(pickingInfos)},layerIds:this.props.layerIds,getTentativeFillColor:()=>[255,0,255,100],getTentativeLineColor:()=>[0,0,255,255],getTentativeLineDashArray:()=>[0,0],lineWidthMinPixels:3})),geoJsonLayer]}}BoxSelectionLayer.layerName="BoxSelectionLayer",BoxSelectionLayer.defaultProps={name:"boxSelection",id:"boxSelection-layer",pickable:!0,visible:!0,selectedFeatureIndexes:[],data:{type:"FeatureCollection",features:[]}}},"./packages/subsurface-viewer/src/layers/axes/axesLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return AxesLayer}});var composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),orthographic_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orthographic-viewport.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const defaultProps={name:"Box",id:"box-layer",coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,lines:[],color:[0,0,0,1]};class BoxLayer extends lib_layer.Z{initializeState(context){const{gl:gl}=context;this.setState(this._getModels(gl))}shouldUpdateState(){return!0}updateState({context:context}){const{gl:gl}=context;this.setState(this._getModels(gl))}_getModels(gl){const color=this.props.color.map((x=>(x??0)/255)),grids=new model.Z(gl,{id:`${this.props.id}-grids`,vs:"#version 300 es\n#define SHADER_NAME graph-layer-axis-vertex-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nvoid main(void) {\n vec3 position_commonspace = project_position(positions);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",fs:"#version 300 es\n#define SHADER_NAME graph-layer-fragment-shader\n\nprecision highp float;\n\nout vec4 fragColor;\n\nuniform vec4 uColor;\n\nvoid main(void) {\n fragColor = uColor;\n}\n",uniforms:{uColor:color},geometry:new geometry.Z({drawMode:esm.default.LINES,attributes:{positions:new Float32Array(this.props.lines)},vertexCount:this.props.lines.length/3}),modules:[project.Z],isInstanced:!1});return{model:grids,models:[grids].filter(Boolean),modelsByName:{grids:grids}}}}BoxLayer.layerName="BoxLayer",BoxLayer.defaultProps=defaultProps;var text_layer_text_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/text-layer.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js");class AxesLayer extends composite_layer.Z{rebuildData(reportBoundingBox){const bounds=(0,lodash.cloneDeep)(this.props.bounds);this.props.ZIncreasingDownwards&&(bounds[2]*=-1,bounds[5]*=-1),bounds[2]>bounds[5]&&([bounds[2],bounds[5]]=[bounds[5],bounds[2]]),bounds[0]>bounds[3]&&([bounds[0],bounds[3]]=[bounds[3],bounds[0]]),bounds[1]>bounds[4]&&([bounds[1],bounds[4]]=[bounds[4],bounds[1]]);const box_lines=function GetBoxLines(bounds){const x_min=bounds[0],x_max=bounds[3],y_min=bounds[1],y_max=bounds[4],z_min=bounds[2],z_max=bounds[5];return[x_min,y_min,z_min,x_max,y_min,z_min,x_min,y_min,z_min,x_min,y_max,z_min,x_min,y_max,z_min,x_max,y_max,z_min,x_max,y_max,z_min,x_max,y_min,z_min,x_min,y_min,z_max,x_max,y_min,z_max,x_min,y_min,z_max,x_min,y_max,z_max,x_min,y_max,z_max,x_max,y_max,z_max,x_max,y_max,z_max,x_max,y_min,z_max,x_min,y_min,z_min,x_min,y_min,z_max,x_max,y_min,z_min,x_max,y_min,z_max,x_max,y_max,z_min,x_max,y_max,z_max,x_min,y_max,z_min,x_min,y_max,z_max]}(bounds),is_orthographic=this.context.viewport.constructor===orthographic_viewport.Z,[tick_lines,tick_labels]=function GetTickLines(isZIncreasingDownwards,is_orthographic,bounds,viewport){const ndecimals=0,n_minor_ticks=3,x_min=bounds[0],x_max=bounds[3],y_min=bounds[1],y_max=bounds[4],z_min=bounds[2],z_max=bounds[5],lines=[],tick_labels=[];let x_tick=0,y_tick=0,z_tick=0;const delta=(x_max-x_min+(y_max-y_min)+(z_max-z_min))/3*.025,Lz=LineLengthInPixels([x_min,y_min,z_min],[x_min,y_min,z_max],viewport);if(!is_orthographic){const z_ticks=GetTicks(z_min,z_max,Lz);x_tick=x_min,y_tick=y_min;for(let i=0;i1){const tick1=z_ticks[0],d=(z_ticks[1]-tick1)/(n_minor_ticks+1),z_start=tick1;let i=0;for(;z_start+(i+1)*dz_min;){const tick=z_start-(i+1)*d;tick_labels.push(""),i++,lines.push(x_tick,y_tick,tick);const x=-.5*delta*Math.cos(.7853925),y=-.5*delta*Math.sin(.7853925);lines.push(x_tick+x,y_tick+y,tick)}}}const Lx=LineLengthInPixels([x_min,y_min,z_min],[x_max,y_min,z_min],viewport),x_ticks=GetTicks(x_min,x_max,Lx);y_tick=y_min,z_tick=z_min;for(let i=0;i1){const tick1=x_ticks[0],d=(x_ticks[1]-tick1)/(n_minor_ticks+1),x_start=tick1;let i=0;for(;x_start+(i+1)*dx_min;){const tick=x_start-(i+1)*d;tick_labels.push(""),i++,lines.push(tick,y_tick,z_tick);const z=0,y=-.5*delta;lines.push(tick,y_tick+y,z_tick+z)}}const Ly=LineLengthInPixels([x_min,y_min,z_min],[x_min,y_max,z_min],viewport),y_ticks=GetTicks(y_min,y_max,Ly);for(let i=0;i1){const tick1=y_ticks[0],d=(y_ticks[1]-tick1)/(n_minor_ticks+1),y_start=tick1;let i=0;for(;y_start+(i+1)*dy_min;){const tick=y_start-(i+1)*d;tick_labels.push(""),i++,lines.push(x_tick,tick,z_tick);const z=0,x=-.5*delta;lines.push(x_tick+x,tick,z_tick+z)}}}return[lines,tick_labels]}(this.props.ZIncreasingDownwards,is_orthographic,bounds,this.context.viewport),textlayerData=function maketextLayerData(is_orthographic,tick_lines,tick_labels,bounds,labelFontSize){const x_min=bounds[0],x_max=bounds[3],y_min=bounds[1],y_max=bounds[4],z_min=bounds[2],z_max=bounds[5],dx=Math.abs(x_max-x_min),dy=Math.abs(y_max-y_min),dz=Math.abs(z_max-z_min),offset=(dx+dy+dz)/3*.1,data=[{label:"X",from:[0,0,0],to:[x_max+offset,y_min,z_min],size:labelFontSize??26},{label:"Y",from:[0,0,0],to:[x_min,y_max+offset,z_min],size:labelFontSize??26}];if(!is_orthographic){const z_axis_annotaion={label:"Z",from:[0,0,0],to:[x_min,y_min,z_max+offset],size:labelFontSize??26};data.push(z_axis_annotaion)}for(let i=0;ithis.getLabelPosition(d),getText:d=>d.label,sizeUnits:"pixels",getSize:d=>d.size,getAngle:0,getTextAnchor:d=>this.getAnchor(d,is_orthographic),getAlignmentBaseline:d=>this.getBaseLine(d,is_orthographic),coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,getColor:this.props.labelColor||[0,0,0,255]}))]}}function LineLengthInPixels(p0,p1,viewport){const screen_from=viewport.project(p0),screen_to=viewport.project(p1),v=[screen_from[0]-screen_to[0],screen_from[1]-screen_to[1],screen_from[2]-screen_to[2]];return Math.sqrt(v[0]*v[0]+v[1]*v[1])}function GetTicks(min,max,axis_pixel_length){let step=Math.min(Math.round(axis_pixel_length/100)+1,20);const range=max-min,delta=Math.abs(range)/step;let decade=1;if(delta>=10){const logde=Math.log10(delta),pot=Math.floor(logde);decade=Math.pow(10,pot)}let scaled_delta=Math.round(delta/decade);3==scaled_delta?scaled_delta=2:4==scaled_delta||6==scaled_delta||7==scaled_delta?scaled_delta=5:scaled_delta>7?scaled_delta=10:scaled_delta<1&&(scaled_delta=1);const incr=scaled_delta*decade,start=Math.ceil(min/incr)*incr,stop=Math.floor(max/incr)*incr,calc_step=Math.floor(Math.abs(stop-start)/incr);step=calc_step>0?calc_step:0;const ticks=[];for(let i=0;i<=step;i++){const x=start+i*incr;ticks.push(x)}return ticks}AxesLayer.layerName="AxesLayer",AxesLayer.defaultProps={"@@type":"AxesLayer",name:"Axes",id:"axes-layer",visible:!0,ZIncreasingDownwards:!0}},"./packages/subsurface-viewer/src/layers/grid3d/grid3dLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{W:function(){return TGrid3DColoringMode},Z:function(){return Grid3DLayer}});var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),load=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js"),json_loader=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/json-loader.js"),workerpool=__webpack_require__("./node_modules/workerpool/dist/workerpool.js"),workerpool_default=__webpack_require__.n(workerpool),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js");var shader_modules=__webpack_require__("./packages/subsurface-viewer/src/layers/shader_modules/index.ts");const DEFAULT_TEXTURE_PARAMETERS={[esm.default.TEXTURE_MIN_FILTER]:esm.default.LINEAR,[esm.default.TEXTURE_MAG_FILTER]:esm.default.LINEAR,[esm.default.TEXTURE_WRAP_S]:esm.default.CLAMP_TO_EDGE,[esm.default.TEXTURE_WRAP_T]:esm.default.CLAMP_TO_EDGE},DISCRETE_TEXTURE_PARAMETERS={[esm.default.TEXTURE_MIN_FILTER]:esm.default.NEAREST,[esm.default.TEXTURE_MAG_FILTER]:esm.default.NEAREST,[esm.default.TEXTURE_WRAP_S]:esm.default.CLAMP_TO_EDGE,[esm.default.TEXTURE_WRAP_T]:esm.default.CLAMP_TO_EDGE},defaultProps={colorMapName:"",colorMapClampColor:[200,200,200],coloringMode:0,coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,propertyValueRange:[0,1],depthTest:!0,ZIncreasingDownwards:!0};class PrivateLayer extends lib_layer.Z{get isLoaded(){return this.state.isLoaded??!1}initializeState(context){const{gl:gl}=context,[model_mesh,mesh_lines_model]=this._getModels(gl);this.setState({models:[model_mesh,mesh_lines_model],isLoaded:!1})}shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags}){return super.shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags})||changeFlags.propsOrDataChanged}updateState({context:context}){this.initializeState(context)}_getModels(gl){return[new model.Z(gl,{id:`${this.props.id}-mesh`,vs:"#version 300 es\n#define SHADER_NAME grid3d-vertex-shader\nprecision highp float;\n\nattribute vec3 positions;\nattribute float properties;\nuniform int coloringMode;\n\n// Outputs to fragment shader\nout vec3 cameraPosition;\nout vec4 position_commonspace;\nout float property;\n\nflat out int vertexIndex;\n\nuniform bool ZIncreasingDownwards;\n\nconst vec3 pickingColor = vec3(1.0, 1.0, 0.0);\n\nvoid main(void) { \n \n vertexIndex = gl_VertexID;\n cameraPosition = project_uCameraPosition; \n geometry.pickingColor = pickingColor;\n\n vec3 position = positions;\n position.z *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n switch(coloringMode) {\n case 0: property = properties; break;\n case 1: property = position.x; break;\n case 2: property = position.y; break;\n case 3: property = position.z; break;\n default: property = properties; break;\n }\n\n position_commonspace = vec4(project_position(position), 0.0);\n gl_Position = project_common_position_to_clipspace(position_commonspace);\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n",fs:'#version 300 es\n#define SHADER_NAME grid3d-fragment-shader\n\nprecision highp float;\n\nin vec3 cameraPosition;\nin vec4 position_commonspace;\nin float property;\n\nflat in int vertexIndex;\n\nuniform sampler2D colormap;\n\nuniform float colorMapRangeMin;\nuniform float colorMapRangeMax;\n\nuniform bool isColoringDiscrete;\nuniform float colorMapSize;\n\nuniform vec3 colorMapClampColor;\nuniform bool isClampColor;\nuniform bool isColorMapClampColorTransparent;\n\n// Calculate color from propertyValue using continuous colormap.\nvec4 getContinuousPropertyColor (float propertyValue) {\n\n vec4 color = vec4(1.0, 1.0, 1.0, 1.0);\n float x = (propertyValue - colorMapRangeMin) / (colorMapRangeMax - colorMapRangeMin);\n if (x < 0.0 - 1e-4 || x > 1.0 + 1e-4) {\n // Out of range. Use clampcolor.\n if (isClampColor) {\n color = vec4(colorMapClampColor.rgb, 1.0);\n\n }\n else if (isColorMapClampColorTransparent) {\n discard;\n }\n else {\n // Use min/max color to clamp.\n x = clamp (x, 0.0, 1.0); \n color = texture2D(colormap, vec2(x, 0.5));\n }\n }\n else {\n color = texture2D(colormap, vec2(x, 0.5));\n }\n return color;\n}\n\n// Calculate color from propertyValue using discrete colormap.\nvec4 getDiscretePropertyColor (float propertyValue) {\n\n vec4 color = vec4(1.0, 1.0, 1.0, 1.0);\n float tolerance = (1.0 / colorMapSize) * 0.5;\n \n if (propertyValue < colorMapRangeMin - tolerance || propertyValue > colorMapRangeMax + tolerance) {\n // Out of range. Use clampcolor.\n if (isClampColor) {\n color = vec4(colorMapClampColor.rgb, 1.0);\n\n }\n else if (isColorMapClampColorTransparent) {\n discard;\n }\n else {\n // Use min/max color to clamp.\n float p = clamp (propertyValue, colorMapRangeMin, colorMapRangeMax);\n float x = p / colorMapSize;\n color = texture2D(colormap, vec2(x, 0.5));\n }\n }\n else {\n float x = propertyValue / colorMapSize;\n color = texture2D(colormap, vec2(x + tolerance, 0.5));\n }\n return color;\n}\n\nvec4 getPropertyColor (float propertyValue) {\n if(isColoringDiscrete) {\n return getDiscretePropertyColor (propertyValue);\n }\n return getContinuousPropertyColor (propertyValue);\n}\n\nvoid main(void) {\n\n if (picking_uActive && !picking_uAttribute) {\n gl_FragColor = encodeVertexIndexToRGB(vertexIndex); \n return;\n }\n\n vec3 normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n \n vec4 color = getPropertyColor(property);\n \n // Use two sided phong lighting. This has no effect if "material" property is not set.\n vec3 lightColor = getPhongLightColor(color.rgb, cameraPosition, position_commonspace.xyz, normal);\n gl_FragColor = vec4(lightColor, 1.0);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n',geometry:new geometry.Z({drawMode:this.props.mesh.drawMode,attributes:{positions:this.props.mesh.attributes.positions,properties:this.props.mesh.attributes.properties},vertexCount:this.props.mesh.vertexCount}),modules:[project.Z,picking.Z,shader_modules.jA,shader_modules.hC],isInstanced:!1}),new model.Z(gl,{id:`${this.props.id}-lines`,vs:"#version 300 es\n#define SHADER_NAME vertex-lines-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nout vec4 position_commonspace;\n\nuniform bool ZIncreasingDownwards;\n\nvoid main(void) {\n vec3 position = positions;\n position[2] *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n vec3 position_commonspace = project_position(position);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",fs:"#version 300 es\n#define SHADER_NAME graph-layer-fragment-shader\n\nprecision highp float;\n\nout vec4 fragColor;\n\nvoid main(void) {\n \n // Picking pass.\n if (picking_uActive) {\n discard;\n return;\n }\n\n fragColor = vec4(0.0, 0.0, 0.0, 1.0);\n}\n",geometry:new geometry.Z(this.props.meshLines),modules:[project.Z,picking.Z],isInstanced:!1})]}draw(args){if(!this.state.models)return;const{uniforms:uniforms,context:context}=args,{gl:gl}=context,[model_mesh,mesh_lines_model]=this.state.models;gl.enable(gl.POLYGON_OFFSET_FILL),gl.polygonOffset(1,1),this.props.depthTest||gl.disable(gl.DEPTH_TEST);const propertyUniforms=this.getPropertyUniforms(context);model_mesh.setUniforms({...uniforms,...propertyUniforms,coloringMode:this.props.coloringMode,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),gl.disable(gl.POLYGON_OFFSET_FILL),this.props.gridLines&&mesh_lines_model.setUniforms({...uniforms,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),this.props.depthTest||gl.enable(gl.DEPTH_TEST),this.state.isLoaded||this.setState({...this.state,isLoaded:!0})}decodePickingColor(){return this.nullPickingColor()}encodePickingColor(){return this.nullPickingColor()}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[],vertexIndex=65536*info.color[0]+256*info.color[1]+info.color[2];if(void 0!==info.coordinate?.[2]){const depth=this.props.ZIncreasingDownwards?-info.coordinate[2]:info.coordinate[2];layer_properties.push((0,layerTools.ws)("Depth",depth))}const propertyIndex=this.props.mesh.attributes.properties.value[vertexIndex];if(Number.isFinite(propertyIndex))if(this.props.discretePropertyValueNames){const propertyText=this.props.discretePropertyValueNames[propertyIndex].name??propertyIndex,propertyValue=this.props.discretePropertyValueNames[propertyIndex].value??propertyIndex;layer_properties.push((0,layerTools.ws)("Property",propertyText)),layer_properties.push((0,layerTools.ws)("Value",propertyValue))}else layer_properties.push((0,layerTools.ws)("Property",propertyIndex));return{...info,properties:layer_properties}}getDefaultImageData(){return{data:new Uint8Array([0,0,0]),count:1,parameters:DISCRETE_TEXTURE_PARAMETERS,isColoringDiscrete:!0}}getImageData(){if(this.props.colorMapFunction instanceof Uint8Array){const count=this.props.colorMapFunction.length/3;if(0===count)return this.getDefaultImageData();const parameters=this.props.coloringMode===TGrid3DColoringMode.Property?DISCRETE_TEXTURE_PARAMETERS:DEFAULT_TEXTURE_PARAMETERS,isColoringDiscrete=this.props.coloringMode===TGrid3DColoringMode.Property;return{data:this.props.colorMapFunction,count:count,parameters:parameters,isColoringDiscrete:isColoringDiscrete}}return{data:(0,layerTools.n$)(this.props.colorMapName,this.context.userData.colorTables,this.props.colorMapFunction),count:256,parameters:DEFAULT_TEXTURE_PARAMETERS,isColoringDiscrete:!1}}getPropertyUniforms(context){const valueRangeMin=this.props.propertyValueRange?.[0]??0,valueRangeMax=this.props.propertyValueRange?.[1]??1,colorMapRangeMin=this.props.colorMapRange?.[0]??valueRangeMin,colorMapRangeMax=this.props.colorMapRange?.[1]??valueRangeMax,isClampColor=void 0!==this.props.colorMapClampColor&&!0!==this.props.colorMapClampColor&&!1!==this.props.colorMapClampColor;let colorMapClampColor=isClampColor?this.props.colorMapClampColor:[0,0,0];colorMapClampColor=colorMapClampColor.map((x=>(x??0)/255));const isColorMapClampColorTransparent=!1===this.props.colorMapClampColor,imageData=this.getImageData();return{colormap:new texture_2d.Z(context.gl,{width:imageData.count,height:1,format:esm.default.RGB,data:imageData.data,parameters:imageData.parameters}),colorMapRangeMin:colorMapRangeMin,colorMapRangeMax:colorMapRangeMax,colorMapClampColor:colorMapClampColor,isColorMapClampColorTransparent:isColorMapClampColorTransparent,isClampColor:isClampColor,isColoringDiscrete:imageData.isColoringDiscrete,colorMapSize:imageData.count}}}function makeFullMesh(e){class Node{constructor(i,x,y){this.i=i,this.x=x,this.y=y,this.prev=this,this.next=this,this.z=0,this.prevZ=this,this.nextZ=this,this.steiner=!1}}function earcut(data,dim){dim=dim||2;const outerLen=data.length,outerNode=function linkedList(data,start,end,dim,clockwise){let i,last=null;if(clockwise===function signedArea(data,start,end,dim){let sum=0;for(let i=start,j=end-dim;i0)for(i=start;i=start;i-=dim)last=insertNode(i,data[i],data[i+1],last);last&&equals(last,last.next)&&(removeNode(last),last=last.next);return last}(data,0,outerLen,dim,!0),triangles=[];if(!outerNode||outerNode.next===outerNode.prev)return triangles;let x,y,minX=Number.POSITIVE_INFINITY,minY=Number.POSITIVE_INFINITY,maxX=Number.NEGATIVE_INFINITY,maxY=Number.NEGATIVE_INFINITY,invSize=0;if(data.length>80*dim){minX=maxX=data[0],minY=maxY=data[1];for(let i=dim;imaxX&&(maxX=x),y>maxY&&(maxY=y);invSize=Math.max(maxX-minX,maxY-minY),invSize=0!==invSize?32767/invSize:0}return earcutLinked(outerNode,triangles,dim,minX,minY,invSize,0),triangles;function filterPoints(start,end){if(!start)return start;end||(end=start);let again,p=start;do{if(again=!1,p.steiner||!equals(p,p.next)&&0!==area(p.prev,p,p.next))p=p.next;else{if(removeNode(p),p=end=p.prev,p===p.next)break;again=!0}}while(again||p!==end);return end}function earcutLinked(ear,triangles,dim,minX,minY,invSize,pass){if(!ear)return;!pass&&invSize&&function indexCurve(start,minX,minY,invSize){let p=start;do{0===p.z&&(p.z=zOrder(p.x,p.y,minX,minY,invSize)),p.prevZ=p.prev,p.nextZ=p.next,p=p.next}while(p!==start);p.prevZ&&(p.prevZ.nextZ=null);p.prevZ=null,function sortLinked(list){let i,p,q,e,tail,numMerges,pSize,qSize,inSize=1;do{for(p=list,list=null,tail=null,numMerges=0;p;){for(numMerges++,q=p,pSize=0,i=0;i0||qSize>0&&q;)p&&0!==pSize&&(0===qSize||!q||p.z<=q.z)?(e=p,p=p?.nextZ,pSize--):(e=q,q=q?.nextZ,qSize--),tail?tail.nextZ=e:list=e,e?.prevZ&&(e.prevZ=tail),tail=e;p=q}tail&&(tail.nextZ=null),inSize*=2}while(numMerges>1);return list}(p)}(ear,minX,minY,invSize);let prev,next,stop=ear;for(;ear.prev!==ear.next;)if(prev=ear.prev,next=ear.next,invSize?isEarHashed(ear,minX,minY,invSize):isEar(ear))triangles.push(prev.i/dim|0),triangles.push(ear.i/dim|0),triangles.push(next.i/dim|0),removeNode(ear),ear=next.next,stop=next.next;else if((ear=next)===stop){pass?1===pass?earcutLinked(ear=cureLocalIntersections(filterPoints(ear),triangles,dim),triangles,dim,minX,minY,invSize,2):2===pass&&splitEarcut(ear,triangles,dim,minX,minY,invSize):earcutLinked(filterPoints(ear),triangles,dim,minX,minY,invSize,1);break}}function getMin(a,b,c){return ab?a>c?a:c:b>c?b:c}function triangleBBox(ax,bx,cx,ay,by,cy){return[getMin(ax,bx,cx),getMin(ay,by,cy),getMax(ax,bx,cx),getMax(ay,by,cy)]}function isEar(ear){const a=ear.prev,b=ear,c=ear.next;if(area(a,b,c)>=0)return!1;const ax=a.x,bx=b.x,cx=c.x,ay=a.y,by=b.y,cy=c.y,[x0,y0,x1,y1]=triangleBBox(ax,bx,cx,ay,by,cy);let p=c.next;for(;p!==a;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function isEarHashed(ear,minX,minY,invSize){const a=ear.prev,b=ear,c=ear.next;if(area(a,b,c)>=0)return!1;const ax=a.x,bx=b.x,cx=c.x,ay=a.y,by=b.y,cy=c.y,[x0,y0,x1,y1]=triangleBBox(ax,bx,cx,ay,by,cy),minZ=zOrder(x0,y0,minX,minY,invSize),maxZ=zOrder(x1,y1,minX,minY,invSize);let p=ear.prevZ,n=ear.nextZ;for(;p&&p.z>=minZ&&n&&n.z<=maxZ;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&p!==a&&p!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,n.x>=x0&&n.x<=x1&&n.y>=y0&&n.y<=y1&&n!==a&&n!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,n.x,n.y)&&area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}for(;p&&p.z>=minZ;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&p!==a&&p!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;n&&n.z<=maxZ;){if(n.x>=x0&&n.x<=x1&&n.y>=y0&&n.y<=y1&&n!==a&&n!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,n.x,n.y)&&area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}return!0}function cureLocalIntersections(start,triangles,dim){let p=start;do{const a=p.prev,b=p.next.next;!equals(a,b)&&intersects(a,p,p.next,b)&&locallyInside(a,b)&&locallyInside(b,a)&&(triangles.push(a.i/dim|0),triangles.push(p.i/dim|0),triangles.push(b.i/dim|0),removeNode(p),removeNode(p.next),p=start=b),p=p.next}while(p!==start);return filterPoints(p)}function splitEarcut(start,triangles,dim,minX,minY,invSize){let a=start;do{let b=a.next.next;for(;b!==a.prev;){if(a.i!==b.i&&isValidDiagonal(a,b)){let c=splitPolygon(a,b);return a=filterPoints(a,a.next),c=filterPoints(c,c.next),earcutLinked(a,triangles,dim,minX,minY,invSize,0),void earcutLinked(c,triangles,dim,minX,minY,invSize,0)}b=b.next}a=a.next}while(a!==start)}function zOrder(x,y,minX,minY,invSize){return(x=1431655765&((x=858993459&((x=252645135&((x=16711935&((x=(x-minX)*invSize|0)|x<<8))|x<<4))|x<<2))|x<<1))|(y=1431655765&((y=858993459&((y=252645135&((y=16711935&((y=(y-minY)*invSize|0)|y<<8))|y<<4))|y<<2))|y<<1))<<1}function pointInTriangle(ax,ay,bx,by,cx,cy,px,py){return(cx-px)*(ay-py)>=(ax-px)*(cy-py)&&(ax-px)*(by-py)>=(bx-px)*(ay-py)&&(bx-px)*(cy-py)>=(cx-px)*(by-py)}function isValidDiagonal(a,b){return a.next.i!==b.i&&a.prev.i!==b.i&&!function intersectsPolygon(a,b){let p=a;do{if(p.i!==a.i&&p.next.i!==a.i&&p.i!==b.i&&p.next.i!==b.i&&intersects(p,p.next,a,b))return!0;p=p.next}while(p!==a);return!1}(a,b)&&(locallyInside(a,b)&&locallyInside(b,a)&&function middleInside(a,b){const px=(a.x+b.x)/2,py=(a.y+b.y)/2;let p=a,inside=!1;do{p.y>py!=p.next.y>py&&p.next.y!==p.y&&px<(p.next.x-p.x)*(py-p.y)/(p.next.y-p.y)+p.x&&(inside=!inside),p=p.next}while(p!==a);return inside}(a,b)&&(area(a.prev,a,b.prev)||area(a,b.prev,b))||equals(a,b)&&area(a.prev,a,a.next)>0&&area(b.prev,b,b.next)>0)}function area(p,q,r){return(q.y-p.y)*(r.x-q.x)-(q.x-p.x)*(r.y-q.y)}function equals(p1,p2){return p1.x===p2.x&&p1.y===p2.y}function intersects(p1,q1,p2,q2){const o1=sign(area(p1,q1,p2)),o2=sign(area(p1,q1,q2)),o3=sign(area(p2,q2,p1)),o4=sign(area(p2,q2,q1));return o1!==o2&&o3!==o4||(!(0!==o1||!onSegment(p1,p2,q1))||(!(0!==o2||!onSegment(p1,q2,q1))||(!(0!==o3||!onSegment(p2,p1,q2))||!(0!==o4||!onSegment(p2,q1,q2)))))}function onSegment(p,q,r){return q.x<=Math.max(p.x,r.x)&&q.x>=Math.min(p.x,r.x)&&q.y<=Math.max(p.y,r.y)&&q.y>=Math.min(p.y,r.y)}function sign(num){return num>0?1:num<0?-1:0}function locallyInside(a,b){return area(a.prev,a,a.next)<0?area(a,b,a.next)>=0&&area(a,a.prev,b)>=0:area(a,b,a.prev)<0||area(a,a.next,b)<0}function splitPolygon(a,b){const a2=new Node(a.i,a.x,a.y),b2=new Node(b.i,b.x,b.y),an=a.next,bp=b.prev;return a.next=b,b.prev=a,a2.next=an,an.prev=a2,b2.next=a2,a2.prev=b2,bp.next=b2,b2.prev=bp,b2}function insertNode(i,x,y,last){const p=new Node(i,x,y);return last?(p.next=last.next,p.prev=last,last.next.prev=p,last.next=p):(p.prev=p,p.next=p),p}function removeNode(p){p.next.prev=p.prev,p.prev.next=p.next,p.prevZ&&(p.prevZ.nextZ=p.nextZ),p.nextZ&&(p.nextZ.prevZ=p.prevZ)}}const get3DPoint=(points,index)=>points.slice(3*index,3*(index+1)),substractPoints=(a,b)=>[a[0]-b[0],a[1]-b[1],a[2]-b[2]],crossProduct=(a,b)=>[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]],dotProduct=(a,b)=>a[0]*b[0]+a[1]*b[1]+a[2]*b[2],normalize=a=>{const len=Math.sqrt(dotProduct(a,a));return[a[0]/len,a[1]/len,a[2]/len]},projectPoint=(u,v,p)=>[dotProduct(p,u),dotProduct(p,v)],projectPolygon=points=>{const p0=get3DPoint(points,0),p1=get3DPoint(points,1),p2=get3DPoint(points,2),v1=substractPoints(p1,p0),v2=substractPoints(p2,p0),normal=normalize(crossProduct(v1,v2)),u=normalize(v1),v=normalize(crossProduct(normal,u)),res=[],count=points.length/3;for(let i=0;i{const i1=polys[index0],i2=polys[index1];out.push(i1,i2)},t0=performance.now(),params=e.data,polys=params.polys,properties=params.properties,vertexProperties=[],triang_points=[],line_indices=[];let propertyValueRangeMin=99999999,propertyValueRangeMax=-99999999,pn=0,i=0;for(;ipropertyValueRangeMax?propertyValue:propertyValueRangeMax);for(let j=i+1;j0&&subLayers.every((layer=>layer.isLoaded)),isFinished=this.state?.isFinishedLoading??!1;return isLoaded&&isFinished}rebuildData(reportBoundingBox){load_data(this.props.pointsData,this.props.polysData,this.props.propertiesData,this.props.coloringMode===TGrid3DColoringMode.Property).then((([points,polys,properties])=>{const bbox=function GetBBox(points){let xmax=-99999999,ymax=-99999999,zmax=-99999999,xmin=99999999,ymin=99999999,zmin=99999999;for(let i=0;ixmax?points[3*i+0]:xmax,xmin=points[3*i+0]ymax?points[3*i+1]:ymax,ymin=points[3*i+1]zmax?points[3*i+2]:zmax,zmin=points[3*i+2]{const[mesh,mesh_lines,propertyValueRange]=e,legend={discrete:!1,valueRange:this.props.colorMapRange??propertyValueRange,colorName:this.props.colorMapName,title:"MapLayer",colorMapFunction:this.props.colorMapFunction};this.setState({mesh:mesh,mesh_lines:mesh_lines,propertyValueRange:propertyValueRange,legend:legend,bbox:bbox}),void 0!==this.props.reportBoundingBox&&reportBoundingBox&&this.props.reportBoundingBox({layerBoundingBox:bbox}),this.setState({...this.state,isFinishedLoading:!0}),function onTerminateWorker(){const stats=pool.stats();0===stats.busyWorkers&&0===stats.pendingTasks&&pool.terminate()}()}))}))}initializeState(){this.setState({...this.state,isFinishedLoading:!1});this.rebuildData(!0)}updateState({props:props,oldProps:oldProps}){if(!((0,lodash.isEqual)(props.pointsData,oldProps.pointsData)&&(0,lodash.isEqual)(props.polysData,oldProps.polysData)&&(0,lodash.isEqual)(props.propertiesData,oldProps.propertiesData)&&(0,lodash.isEqual)(props.gridLines,oldProps.gridLines)&&(0,lodash.isEqual)(props.ZIncreasingDownwards,oldProps.ZIncreasingDownwards))){this.setState({...this.state,isFinishedLoading:!1});const reportBoundingBox=!1;this.rebuildData(reportBoundingBox)}}renderLayers(){if(1===Object.keys(this.state).length)return[];return[new PrivateLayer(this.getSubLayerProps({mesh:this.state.mesh,meshLines:this.state.mesh_lines,pickable:this.props.pickable,colorMapName:this.props.colorMapName,colorMapRange:this.props.colorMapRange,colorMapClampColor:this.props.colorMapClampColor,colorMapFunction:this.props.colorMapFunction,coloringMode:this.props.coloringMode,gridLines:this.props.gridLines,propertyValueRange:this.getPropertyValueRange(),discretePropertyValueNames:this.props.discretePropertyValueNames,material:this.props.material,depthTest:this.props.depthTest,ZIncreasingDownwards:this.props.ZIncreasingDownwards}))]}getPropertyValueRange(){const bbox=this.state.bbox,zSign=this.props.ZIncreasingDownwards?-1:1;switch(this.props.coloringMode){case TGrid3DColoringMode.X:return[bbox[0],bbox[3]];case TGrid3DColoringMode.Y:return[bbox[1],bbox[4]];case TGrid3DColoringMode.Z:return[zSign*bbox[2],zSign*bbox[5]];default:return this.state.propertyValueRange}}}Grid3DLayer.layerName="Grid3DLayer",Grid3DLayer.defaultProps=grid3dLayer_defaultProps},"./packages/subsurface-viewer/src/layers/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Axes2DLayer:function(){return Axes2DLayer},AxesLayer:function(){return axesLayer.Z},BoxSelectionLayer:function(){return boxSelectionLayer.Z},ColormapLayer:function(){return ColormapLayer},DrawingLayer:function(){return DrawingLayer},FaultPolygonsLayer:function(){return FaultPolygonsLayer},Grid3DLayer:function(){return grid3dLayer.Z},Hillshading2DLayer:function(){return Hillshading2DLayer},MapLayer:function(){return mapLayer.Z},NorthArrow3DLayer:function(){return northArrow3DLayer.Z},PieChartLayer:function(){return PieChartLayer},PointsLayer:function(){return PointsLayer},PolylinesLayer:function(){return polylinesLayer.Z},SelectableGeoJsonLayer:function(){return SelectableGeoJsonLayer},TriangleLayer:function(){return TriangleLayer},UnfoldedGeoJsonLayer:function(){return UnfoldedGeoJsonLayer},WellMarkersLayer:function(){return WellMarkersLayer},WellMarkersLayerProps:function(){return WellMarkersLayer},WellsLayer:function(){return wellsLayer.ZP},abscissaTransform:function(){return abscissaTransform.q}});var bitmap_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/bitmap-layer/bitmap-layer.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),shader_modules=__webpack_require__("./packages/subsurface-viewer/src/layers/shader_modules/index.ts");function decodeRGB([r,g,b],decoder,remapToRange){const{rgbScaler:rgbScaler,floatScaler:floatScaler,offset:offset,step:step}=decoder,[rScale,gScale,bScale]=rgbScaler;let decodedValue=((r*=256*rScale*256)+(g*=256*gScale)+(b*=bScale)+offset)*floatScaler;if(step>0&&(decodedValue=Math.floor(decodedValue/step+.5)*step),remapToRange){const[min,max]=remapToRange;decodedValue=decodedValue*(max-min)+min}return decodedValue}var layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts");var dist=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/index.js");const DEFAULT_TEXTURE_PARAMETERS={[esm.default.TEXTURE_MIN_FILTER]:esm.default.LINEAR_MIPMAP_LINEAR,[esm.default.TEXTURE_MAG_FILTER]:esm.default.LINEAR,[esm.default.TEXTURE_WRAP_S]:esm.default.CLAMP_TO_EDGE,[esm.default.TEXTURE_WRAP_T]:esm.default.CLAMP_TO_EDGE};function getImageData(colorMapName,colorTables,colorMapFunction){const isColorMapFunctionDefined=void 0!==colorMapFunction,data=new Uint8Array(768);for(let i=0;i<256;i++){const value=i/255,rgb=isColorMapFunctionDefined?colorMapFunction(i/255):(0,dist.cF)(value,colorMapName,colorTables);let color=[];null!=rgb&&(color=Array.isArray(rgb)?rgb:[rgb.r,rgb.g,rgb.b]),data[3*i+0]=color[0],data[3*i+1]=color[1],data[3*i+2]=color[2]}return data}const defaultProps={"@@type":"ColormapLayer",name:"Property map",id:"colormap-layer",pickable:!0,visible:!0,valueRange:{type:"array",value:[0,1]},colorMapRange:{type:"array"},valueDecoder:{rgbScaler:[1,1,1],floatScaler:1/16777215,offset:0,step:0},rotDeg:0,colorMapName:"Rainbow"};class ColormapLayer extends bitmap_layer.Z{initializeState(){this.setState({isLoaded:!1}),super.initializeState()}draw({moduleParameters:moduleParameters,uniforms:uniforms,context:context}){if(!this.state.isLoaded&&(this.setState({isLoaded:!0}),void 0!==this.props.reportBoundingBox)){const xMin=this.props.bounds[0],yMin=this.props.bounds[1],zMin=1,xMax=this.props.bounds[2],yMax=this.props.bounds[3],zMax=-1;this.props.reportBoundingBox({layerBoundingBox:[xMin,yMin,zMin,xMax,yMax,zMax]})}const mergedModuleParams={...moduleParameters,valueDecoder:{...defaultProps.valueDecoder,...moduleParameters.valueDecoder},modelMatrix:(0,layerTools.RT)(this.props.rotDeg,this.props.bounds[0],this.props.bounds[3])};super.setModuleParameters(mergedModuleParams);const valueRangeMin=this.props.valueRange[0]??0,valueRangeMax=this.props.valueRange[1]??1,colorMapRangeMin=this.props.colorMapRange?.[0]??valueRangeMin,colorMapRangeMax=this.props.colorMapRange?.[1]??valueRangeMax;super.draw({uniforms:{...uniforms,colormap:new texture_2d.Z(context.gl,{width:256,height:1,format:esm.default.RGB,data:getImageData(this.props.colorMapName,this.context.userData.colorTables,this.props.colorMapFunction),parameters:DEFAULT_TEXTURE_PARAMETERS}),valueRangeMin:valueRangeMin,valueRangeMax:valueRangeMax,colorMapRangeMin:colorMapRangeMin,colorMapRangeMax:colorMapRangeMax},moduleParameters:mergedModuleParams})}getShaders(){const parentShaders=super.getShaders();return parentShaders.fs="#define SHADER_NAME colormap-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec2 vTexCoord;\n\nuniform sampler2D bitmapTexture; // Property map\nuniform sampler2D colormap;\n\nuniform float opacity;\n\nvoid main(void) {\n vec4 bitmapColor = texture2D(bitmapTexture, vTexCoord);\n\n // If it's a picking pass, we just return the raw property map value.\n if (picking_uActive) {\n gl_FragColor = bitmapColor;\n return;\n }\n\n // Decode the RGB value into a float. See decoder.fs.glsl for more details.\n float val = decode_rgb2float(bitmapColor.rgb);\n // The resulting val will be in [0, 1] interval, so we can use it directly as a texture coord\n // to sample from the colormap.\n // 0 => Leftmost color in the colormap, 1 => rightmost color, linearly interpolated in between.\n vec4 color = texture2D(colormap, vec2(val, 0.5));\n\n // The final pixel opacity is the combination of the user provided image-wide opacity,\n // the colormap opacity at the sampled pixel and the property map opacity of the sampled pixel.\n gl_FragColor = vec4(color.rgb, color.a * bitmapColor.a * opacity);\n\n // Support for existing functionality that comes from the BitmapLayer, such as desaturate, tintColor etc.\n // See https://deck.gl/docs/api-reference/layers/bitmap-layer#render-options for more details.\n geometry.uv = vTexCoord;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n\n}\n",parentShaders.modules.push(shader_modules.xv),parentShaders}getPickingInfo({info:info}){if(this.state.pickingDisabled||!info.color)return info;const mergedDecoder={...defaultProps.valueDecoder,...this.props.valueDecoder},val=decodeRGB(info.color,mergedDecoder,this.props.valueRange);return{...info,index:0,propertyValue:val}}getLegendData(){const valueRangeMin=this.props.valueRange[0]??0,valueRangeMax=this.props.valueRange[1]??1;return{discrete:!1,valueRange:[this.props.colorMapRange?.[0]??valueRangeMin,this.props.colorMapRange?.[1]??valueRangeMax],colorName:this.props.colorMapName,title:"PropertyMapLayer",colorMapFunction:this.props.colorMapFunction}}}ColormapLayer.layerName="ColormapLayer",ColormapLayer.defaultProps=defaultProps;var mapLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/map/mapLayer.ts"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),workerpool=__webpack_require__("./node_modules/workerpool/dist/workerpool.js"),workerpool_default=__webpack_require__.n(workerpool),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),lib_model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const privateTriangleLayer_defaultProps={data:["dummy"],contours:[-1,-1],isContoursDepth:!0,gridLines:!1,color:[100,100,255],coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,depthTest:!0,ZIncreasingDownwards:!0};class PrivateTriangleLayer extends lib_layer.Z{get isLoaded(){return this.state.isLoaded??!1}initializeState(context){const{gl:gl}=context,[triangleModel,lineMode]=this._getModels(gl);this.setState({models:[triangleModel,lineMode],isLoaded:!1})}shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags}){return super.shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags})||changeFlags.propsOrDataChanged}updateState({context:context}){this.initializeState(context)}_getModels(gl){return[new lib_model.Z(gl,{id:`${this.props.id}-mesh`,vs:"#version 300 es\n#define SHADER_NAME vertex-shader\n\nprecision highp float;\n\n// Primitive attributes\nin vec3 positions;\nin float properties;\nin vec3 normals;\n\n// Outputs to fragment shader\nout vec3 cameraPosition;\nout vec3 normals_commonspace;\nout vec4 position_commonspace;\nout vec3 worldPos;\nout float property;\n\nuniform bool ZIncreasingDownwards;\n\nconst vec3 pickingColor = vec3(1.0, 1.0, 0.0);\n\nvoid main(void) {\n geometry.pickingColor = pickingColor;\n\n cameraPosition = project_uCameraPosition;\n\n vec3 position = positions;\n position[2] *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n worldPos = position;\n\n normals_commonspace = normals;\n\n property = properties;\n\n position_commonspace = vec4(project_position(position), 0.0);\n gl_Position = project_common_position_to_clipspace(position_commonspace);\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n",fs:'#version 300 es\n#define SHADER_NAME terrainmap-shader\n\nprecision highp float;\n\nuniform bool isContoursDepth;\nuniform float contourReferencePoint;\nuniform float contourInterval;\n\nin vec2 vTexCoord;\nin vec3 cameraPosition;\nin vec3 normals_commonspace;\nin vec4 position_commonspace;\nin vec3 worldPos;\nin float property;\n\nuniform sampler2D colormap;\nuniform vec4 uColor;\nuniform bool smoothShading;\n\nvoid main(void) {\n vec3 normal = normals_commonspace;\n\n if (!smoothShading) {\n normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n } \n\n vec4 color = uColor;\n bool is_contours = contourReferencePoint != -1.0 && contourInterval != -1.0;\n if (is_contours) {\n // Contours are made of either depths or properties.\n float val = (abs(worldPos.z) - contourReferencePoint) / contourInterval;\n\n float f = fract(val);\n float df = fwidth(val);\n\n // keep: float c = smoothstep(df * 1.0, df * 2.0, f); // smootstep from/to no of pixels distance fronm contour line.\n float c = smoothstep(0.0, df * 2.0, f);\n\n color = color * vec4(c, c, c, 1.0);\n }\n\n // Use two sided phong lighting. This has no effect if "material" property is not set.\n vec3 lightColor = getPhongLightColor(color.rgb, cameraPosition, position_commonspace.xyz, normal);\n gl_FragColor = vec4(lightColor, 1.0);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n',geometry:new geometry.Z(this.props.geometryTriangles),modules:[project.Z,picking.Z,shader_modules.jA],isInstanced:!1}),new lib_model.Z(gl,{id:`${this.props.id}-lines`,vs:"#version 300 es\n#define SHADER_NAME vertex-lines-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nout vec4 position_commonspace;\n\nuniform bool ZIncreasingDownwards;\n\nvoid main(void) {\n vec3 position = positions;\n position[2] *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n vec3 position_commonspace = project_position(position);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",fs:"#version 300 es\n#define SHADER_NAME graph-layer-fragment-shader\n\nprecision highp float;\n\nout vec4 fragColor;\n\nvoid main(void) {\n \n // Picking pass.\n if (picking_uActive) {\n discard;\n return;\n }\n\n fragColor = vec4(0.0, 0.0, 0.0, 1.0);\n}\n",geometry:new geometry.Z(this.props.geometryLines),modules:[project.Z,picking.Z],isInstanced:!1})]}draw(args){if(!this.state.models)return;const{uniforms:uniforms,context:context}=args,{gl:gl}=context,contourReferencePoint=this.props.contours[0]??-1,contourInterval=this.props.contours[1]??-1,[triangleModel,lineModel]=this.state.models,smoothShading=this.props.smoothShading,uColor=this.props.color.map((x=>(x??0)/255));uColor.push(1),this.props.depthTest||gl.disable(esm.default.DEPTH_TEST),gl.enable(esm.default.POLYGON_OFFSET_FILL),gl.polygonOffset(1,1),triangleModel.setUniforms({...uniforms,contourReferencePoint:contourReferencePoint,contourInterval:contourInterval,smoothShading:smoothShading,uColor:uColor,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),gl.disable(esm.default.POLYGON_OFFSET_FILL),this.props.gridLines&&lineModel.setUniforms({...uniforms,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),this.props.depthTest||gl.enable(esm.default.DEPTH_TEST),this.state.isLoaded||this.setState({...this.state,isLoaded:!0})}decodePickingColor(){return 0}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[];if(void 0!==info.coordinate?.[2]){const depth=this.props.ZIncreasingDownwards?-info.coordinate[2]:info.coordinate[2];layer_properties.push((0,layerTools.ws)("Depth",depth))}return{...info,properties:layer_properties}}}function makeFullMesh(e){const params=e.data,t0=performance.now();function normalize(a){const L=Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]);a[0]/=L,a[1]/=L,a[2]/=L}const line_positions=[],vertexArray=params.vertexArray,indexArray=params.indexArray,ntriangles=indexArray.length/3,nvertices=vertexArray.length/3,trianglesNormals=Array(3*ntriangles).fill(0),vertexsNormals=Array(vertexArray.length).fill(0);for(let t_no=0;t_no0&&subLayers.every((layer=>layer.isLoaded)),isFinished=this.state?.isFinishedLoading??!1;return isLoaded&&isFinished}rebuildData(reportBoundingBox){const p=async function loadData(pointsData,triangleData){let indexArray,vertexArray=new Float32Array;if(Array.isArray(pointsData))vertexArray=new Float32Array(pointsData);else if(pointsData instanceof Float32Array)vertexArray=pointsData;else{const response_mesh=await fetch(pointsData);response_mesh.ok||console.error("Could not load vertex data");const blob_mesh=await response_mesh.blob(),buffer=await blob_mesh.arrayBuffer();vertexArray=new Float32Array(buffer)}if(Array.isArray(triangleData))indexArray=new Uint32Array(triangleData);else if(triangleData instanceof Uint32Array)indexArray=triangleData;else{const response_mesh=await fetch(triangleData);response_mesh.ok||console.error("Could not load triangle index data");const blob_mesh=await response_mesh.blob(),buffer=await blob_mesh.arrayBuffer();indexArray=new Uint32Array(buffer)}return Promise.all([vertexArray,indexArray])}(this.props.pointsData,this.props.triangleData);p.then((([vertexArray,indexArray])=>{const webworkerParams={vertexArray:vertexArray,indexArray:indexArray,smoothShading:this.props.smoothShading,displayNormals:this.props.debug};pool.exec(makeFullMesh,[{data:webworkerParams}]).then((e=>{const[geometryTriangles,geometryLines]=e;if(this.setState({geometryTriangles:geometryTriangles,geometryLines:geometryLines}),void 0!==this.props.reportBoundingBox&&reportBoundingBox){let xmax=-99999999,xmin=99999999,ymax=-99999999,ymin=99999999,zmax=-99999999,zmin=99999999;for(let i=0;ixmax?vertexArray[3*i+0]:xmax,xmin=vertexArray[3*i+0]ymax?vertexArray[3*i+1]:ymax,ymin=vertexArray[3*i+1]zmax?vertexArray[3*i+2]:zmax,zmin=vertexArray[3*i+2] 0.5) {\n float isLine = antialiasing ? \n smoothedge(innerUnitRadius * outerRadiusPixels, distToCenter) :\n step(innerUnitRadius * outerRadiusPixels, distToCenter);\n\n if (filled) {\n gl_FragColor = mix(vFillColor, vLineColor, isLine);\n } else {\n if (isLine == 0.0) {\n discard;\n }\n gl_FragColor = vec4(vLineColor.rgb, vLineColor.a * isLine);\n }\n } else if (!filled) {\n discard;\n } else {\n gl_FragColor = vFillColor;\n }\n gl_FragColor.a *= inCircle;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]}}draw(args){args.uniforms.ZIncreasingDownwards=this.props.ZIncreasingDownwards;let restoreDepthTest=!1;"boolean"!=typeof this.props.depthTest||this.props.depthTest||(restoreDepthTest=!0,this.context.gl.disable(esm.default.DEPTH_TEST)),super.draw({uniforms:args.uniforms}),restoreDepthTest&&this.context.gl.enable(esm.default.DEPTH_TEST)}}PrivatePointsLayer.layerName="PrivatePointsLayer";class PointsLayer extends composite_layer.Z{constructor(props){super(props)}renderLayers(){return[new PrivatePointsLayer(this.getSubLayerProps({pickable:this.props.pickable,billboard:!0,data:this.state.dataAttributes,_pathType:"open",getFillColor:()=>this.props.color,getRadius:()=>this.props.pointRadius,radiusUnits:this.props.radiusUnits,updateTriggers:{getFillColor:[this.props.color],getRadius:[this.props.pointRadius]},depthTest:this.props.depthTest,ZIncreasingDownwards:this.props.ZIncreasingDownwards}))]}initializeState(){const dataAttributes=this.rebuildDataAttributes(!0);this.setState({dataAttributes:dataAttributes})}updateState({props:props,oldProps:oldProps}){if(!(0,lodash.isEqual)(props.pointsData,oldProps.pointsData)){const dataAttributes=this.rebuildDataAttributes(!1);this.setState({dataAttributes:dataAttributes})}props.ZIncreasingDownwards!=oldProps.ZIncreasingDownwards&&this.updateBoundingBox(!0)}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[];if(void 0!==info.coordinate?.[2]){const depth=this.props.ZIncreasingDownwards?-info.coordinate[2]:info.coordinate[2];layer_properties.push((0,layerTools.ws)("Depth",depth))}return{...info,properties:layer_properties}}rebuildDataAttributes(reportBoundingBox){const dataArray=this.loadData();return dataArray?(this.updateBoundingBox(reportBoundingBox),{length:dataArray.length/3,attributes:{getPosition:{value:dataArray,size:3}}}):null}loadData(){return Array.isArray(this.props.pointsData)?new Float32Array(this.props.pointsData):this.props.pointsData instanceof Float32Array?this.props.pointsData:(console.warn("pointsData is not array"),new Float32Array)}updateBoundingBox(reportBoundingBox){if(this.state.dataAttributes&&"function"==typeof this.props.reportBoundingBox&&reportBoundingBox){const boundingBox=(0,layerTools.f3)(this.state.dataAttributes,this.props.ZIncreasingDownwards);this.props.reportBoundingBox({layerBoundingBox:boundingBox})}}}PointsLayer.layerName="PointsLayer",PointsLayer.defaultProps={"@@type":"PointsLayer",name:"PointsLayer",id:"points-layer",color:[125,0,0,255],radiusUnits:"pixels",pointRadius:5,pickable:!0,visible:!0,ZIncreasingDownwards:!0,depthTest:!0};var polylinesLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/polylines/polylinesLayer.ts"),dist_es6=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/index.js"),layers_dist_es6=__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/index.js"),es=__webpack_require__("./node_modules/@turf/meta/dist/es/index.js");function measurement_length(geojson){return(0,es.hE)(geojson,(function(previousValue,segment){if(void 0===segment||void 0===previousValue)return 0;const coords=segment.geometry.coordinates;return previousValue+function distance(from,to){const[x1,y1,z1]=from,[x2,y2,z2]=to;let a=Math.pow(x1-x2,2)+Math.pow(y1-y2,2);z1&&z2&&(a+=Math.pow(z2-z1,2));return Math.sqrt(a)}(coords[0],coords[1])}),0)}function measurement_area(geojson){return(0,es.mm)(geojson,(function(value,geom){return value+function calculateArea(geom){const coords=geom.coordinates[0];let total=0;for(let i=0,l=coords.length;ithis.state.data.features[i]===feature))?SELECTED_LINE_COLOR:UNSELECTED_LINE_COLOR}renderLayers(){if(0==this.props.visible)return[];const sub_layer_props=this.getSubLayerProps({data:this.state.data,mode:MODE_MAP[this.props.mode],modeConfig:{viewport:this.context.viewport},selectedFeatureIndexes:this.state.selectedFeatureIndexes,coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,onEdit:editAction=>this._onEdit(editAction),_subLayerProps:{geojson:{autoHighlight:!0,getLineColor:feature=>this._getLineColor(feature)}}});return[new layers_dist_es6.nk(sub_layer_props)]}}DrawingLayer.layerName="DrawingLayer",DrawingLayer.defaultProps={"@@type":"DrawingLayer",name:"Drawing",id:"drawing-layer",pickable:!0,visible:!0,mode:"drawLineString",selectedFeatureIndexes:[],data:{type:"FeatureCollection",features:[]}};const hillshading2dLayer_defaultProps={"@@type":"Hillshading2DLayer",name:"Hill shading",id:"hillshading-layer",opacity:1,pickable:!0,visible:!0,rotDeg:0,valueRange:{type:"array",value:[0,1]},lightDirection:[1,1,1],ambientLightIntensity:.5,diffuseLightIntensity:.5,valueDecoder:{rgbScaler:[1,1,1],floatScaler:1/16777215,offset:0,step:0}};class Hillshading2DLayer extends bitmap_layer.Z{initializeState(){this.setState({isLoaded:!1}),super.initializeState()}draw({moduleParameters:moduleParameters,uniforms:uniforms}){if(!this.state.isLoaded&&(this.setState({isLoaded:!0}),void 0!==this.props.reportBoundingBox)){const xMin=this.props.bounds[0],yMin=this.props.bounds[1],zMin=1,xMax=this.props.bounds[2],yMax=this.props.bounds[3],zMax=-1;this.props.reportBoundingBox({layerBoundingBox:[xMin,yMin,zMin,xMax,yMax,zMax]})}if(this.props.image){const mergedModuleParams={...moduleParameters,valueDecoder:{...hillshading2dLayer_defaultProps.valueDecoder,...moduleParameters.valueDecoder},modelMatrix:(0,layerTools.RT)(this.props.rotDeg,this.props.bounds[0],this.props.bounds[3])};super.setModuleParameters(mergedModuleParams);const valueRangeMin=this.props.valueRange[0]??0,valueRangeMax=this.props.valueRange[1]??1,colorMapRangeMin=this.props.colorMapRange?.[0]??valueRangeMin,colorMapRangeMax=this.props.colorMapRange?.[1]??valueRangeMax,[minVal,maxVal]=this.props.valueRange;super.draw({uniforms:{...uniforms,bitmapResolution:[this.props.image.width,this.props.image.height],valueRangeSize:maxVal-minVal,lightDirection:this.props.lightDirection,ambientLightIntensity:this.props.ambientLightIntensity,diffuseLightIntensity:this.props.diffuseLightIntensity,valueRangeMin:valueRangeMin,valueRangeMax:valueRangeMax,colorMapRangeMin:colorMapRangeMin,colorMapRangeMax:colorMapRangeMax},moduleParameters:mergedModuleParams})}}getShaders(){const parentShaders=super.getShaders();return parentShaders.fs="#define SHADER_NAME hillshading2d-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec2 vTexCoord;\n\nuniform sampler2D bitmapTexture; // Property map\nuniform vec2 bitmapResolution;\n\nuniform float valueRangeSize;\n\nuniform vec3 lightDirection;\nuniform float ambientLightIntensity;\nuniform float diffuseLightIntensity;\nuniform float opacity;\n\n// Compute the normal value for every pixel, based on the current value and two values aroud it.\nvec3 normal(float val) {\n vec2 dr = 1.0 / bitmapResolution;\n float p0 = valueRangeSize * val;\n float px = valueRangeSize * decode_rgb2float(texture2D(bitmapTexture, vTexCoord + vec2(1.0, 0.0) / bitmapResolution).rgb);\n float py = valueRangeSize * decode_rgb2float(texture2D(bitmapTexture, vTexCoord + vec2(0.0, 1.0) / bitmapResolution).rgb);\n vec3 dx = vec3(1.0, 0.0, px - p0);\n vec3 dy = vec3(0.0, 1.0, py - p0);\n\n return normalize(cross(dx, dy));\n}\n\n// Compute how much a pixel is in the shadow based on its normal and where the light comes from.\nfloat shadow(vec3 normal) {\n float diffuse = diffuseLightIntensity * dot(normal, normalize(lightDirection));\n return clamp(ambientLightIntensity + diffuse, 0.0, 1.0);\n}\n\nvoid main(void) {\n vec4 bitmapColor = texture2D(bitmapTexture, vTexCoord);\n\n // If it's a picking pass, we just return the raw property map value.\n if (picking_uActive) {\n gl_FragColor = bitmapColor;\n return;\n }\n\n // Decode the RGB value into a float. See decoder.fs.glsl for more details.\n float val = decode_rgb2float(bitmapColor.rgb);\n // Compute the shadow value, how dark a pixel will be, 1 is in complete shadow, 0 is in complete light.\n float shadow = shadow(normal(val));\n\n // The final pixel is black, with the opacity based on the shadow value,\n // opacity 0 if pixel is completely in the light, opacity 1 if pixel is completely in the shadow.\n // The property map opacity (some portions of the property map can be transparent) and\n // the user provided image-wide opacity value are also taken into account.\n gl_FragColor = vec4(vec3(0.0), (1.0-shadow) * bitmapColor.a * opacity);\n\n geometry.uv = vTexCoord;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",parentShaders.modules.push(shader_modules.xv),parentShaders}getPickingInfo({info:info}){if(this.state.pickingDisabled||!info.color)return info;const mergedDecoder={...hillshading2dLayer_defaultProps.valueDecoder,...this.props.valueDecoder},val=decodeRGB(info.color,mergedDecoder,this.props.valueRange);return{...info,index:0,propertyValue:val}}}Hillshading2DLayer.layerName="Hillshading2DLayer",Hillshading2DLayer.defaultProps=hillshading2dLayer_defaultProps;var wellsLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/wells/wellsLayer.ts");const vertex_glsl_vsShader="#version 300 es\n#define SHADER_NAME well-markers-vertex-shader\nprecision highp float;\n\nattribute vec3 positions;\nattribute vec3 instancePositions;\nattribute float instanceSizes;\nattribute float instanceAzimuths;\nattribute float instanceInclinations;\nattribute vec4 instanceColors;\nattribute vec4 instanceOutlineColors;\n\nattribute vec3 instancePickingColors;\n\nuniform int sizeUnits;\nuniform bool ZIncreasingDownwards;\nuniform bool useOutlineColor;\n\n\nout vec4 position_commonspace;\nout vec4 color;\n\nvoid main(void) { \n\n vec3 position = instancePositions;\n position.z *= (ZIncreasingDownwards? -1.0 : 1.0);\n\n geometry.worldPosition = position;\n geometry.pickingColor = instancePickingColors;\n\n color = useOutlineColor ? instanceOutlineColors : instanceColors;\n\n float sizeInPixels = project_size_to_pixel(instanceSizes, sizeUnits);\n float projectedSize = project_pixel_size(sizeInPixels);\n\n float sinA = sin (PI / 180.0 * instanceAzimuths);\n float cosA = cos (PI / 180.0 * instanceAzimuths);\n\n float sinI = sin (PI / 180.0 * instanceInclinations);\n float cosI = cos (PI / 180.0 * instanceInclinations);\n\n mat3 azimuthMatrix = mat3(vec3(cosA, sinA, 0.0), vec3(-sinA, cosA, 0.0), vec3(0.0, 0.0, 1.0));\n mat3 inclMatrix = mat3(vec3(1.0, 0.0, 0.0), vec3(0.0, cosI, sinI), vec3(0.0, -sinI, cosI));\n mat3 sizeMatrix = mat3(vec3(projectedSize, 0.0, 0.0), vec3(0.0, projectedSize, 0.0), vec3(0.0, 0.0, 1.0));\n vec3 rotatedPos = azimuthMatrix * inclMatrix * sizeMatrix *positions;\n\n position_commonspace = vec4(project_position(rotatedPos + position), 0.0);\n gl_Position = project_common_position_to_clipspace(position_commonspace);\n\n vec4 dummyColor = vec4(0.0);\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n DECKGL_FILTER_COLOR(dummyColor, geometry);\n}\n",fragment_glsl_fsShader="#version 300 es\n#define SHADER_NAME well-markers-fragment-shader\n\nprecision highp float;\n\nin vec4 color;\n\nvoid main(void) {\n\n gl_FragColor = vec4(color.rgba * (1.0 / 255.0));\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",normalizeColor=color=>{if(!color)return new Uint8Array([0,0,0,255]);if(color.length>4)return new Uint8Array(color.slice(0,4));switch(color.length){case 0:return new Uint8Array([0,0,0,255]);case 1:return new Uint8Array([...color,0,0,255]);case 2:return new Uint8Array([...color,0,255]);case 3:return new Uint8Array([...color,255]);default:return color}},wellMarkersLayer_defaultProps={"@@type":"WellMarkersLayer",name:"Well Markers",id:"well-markers",shape:"circle",sizeUnits:"meters",visible:!0,ZIncreasingDownwards:!0,getPosition:{type:"accessor",value:x=>x.position},getSize:{type:"accessor",value:x=>x.size},getAzimuth:{type:"accessor",value:x=>x.azimuth},getInclination:{type:"accessor",value:x=>x.inclination},getColor:{type:"accessor",value:x=>normalizeColor(x.color)},getOutlineColor:{type:"accessor",value:x=>normalizeColor(x.outlineColor)}};class WellMarkersLayer extends lib_layer.Z{shapes=new Map;constructor(props){super(props),this.initShapes()}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:esm.default.DOUBLE,transition:!0,accessor:"getPosition"},instanceSizes:{size:1,type:esm.default.DOUBLE,transition:!0,accessor:"getSize",defaultValue:1},instanceAzimuths:{size:1,type:esm.default.DOUBLE,transition:!0,accessor:"getAzimuth",defaultValue:0},instanceInclinations:{size:1,type:esm.default.DOUBLE,transition:!0,accessor:"getInclination",defaultValue:0},instanceColors:{size:4,type:esm.default.UNSIGNED_BYTE,transition:!0,accessor:"getColor",defaultValue:[255,0,0,255]},instanceOutlineColors:{size:4,type:esm.default.UNSIGNED_BYTE,transition:!0,accessor:"getOutlineColor",defaultValue:[255,0,255,255]}});const models=this._createModels();this.setState({shapeModel:models[0],outlineModel:models[1]})}updateState(params){if(super.updateState(params),params.changeFlags.extensionsChanged||params.changeFlags.propsChanged){this.state?.shapeModel?.delete(),this.state?.outlineModel?.delete();const models=this._createModels();this.setState({...this.state,shapeModel:models[0],outlineModel:models[1]}),this.getAttributeManager().invalidateAll()}}getModels(){return this.state.shapeModel&&this.state.outlineModel?[this.state.shapeModel,this.state.outlineModel]:[]}draw(args){if(!this.state.shapeModel)return;const{uniforms:uniforms}=args,models=this.getModels();models.length&&models.length<2||(models[0].setUniforms({...uniforms,sizeUnits:constants.iI[this.props.sizeUnits],ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),models[1].setUniforms({...uniforms,ZIncreasingDownwards:this.props.ZIncreasingDownwards,sizeUnits:constants.iI[this.props.sizeUnits]}).draw())}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[],markerIndex=this.decodePickingColor(info.color),markerData=this.props.data;if(markerIndex>=0&&markerIndex(x??0)/255));const name=prop?.label??"no label",frac_string=(100*frac).toFixed(1)+"%";pieInfo.push([name,frac_string]);for(let a=start_a;a= (256 * 256) - 1) {\n r = floor(float(idx) / (256.0 * 256.0));\n idx -= int(r * (256.0 * 256.0));\n }\n \n if (idx >= 256 - 1) {\n g = floor(float(idx) / 256.0);\n idx -= int(g * 256.0);\n }\n \n b = float(idx);\n \n fragColor = vec4(r / 255.0, g / 255.0, b / 255.0, 1.0);\n return;\n }\n\n fragColor = vColor;\n}\n",geometry:new geometry.Z({drawMode:esm.default.TRIANGLES,attributes:{positions:{value:new Float32Array(vertexs),size:3},colors:{value:new Float32Array(colors),size:3},pie_index:{value:new Int32Array(pieInfoIndex),size:1},mx:{value:new Float32Array(mx),size:1},my:{value:new Float32Array(my),size:1},do_scale:{value:new Float32Array(doScale),size:1}},vertexCount:vertexs.length/3}),modules:[project.Z,picking.Z],isInstanced:!1}),pieInfo:pieInfo}}draw(args){if(!this.state?.model)return;const{context:context}=args,{gl:gl}=context,p2=[100,0],p1_unproj=this.context.viewport.unproject([0,0]),p2_unproj=this.context.viewport.unproject(p2),v1=new vector2.Z(p1_unproj[0],p1_unproj[1]),v2=new vector2.Z(p2_unproj[0],p2_unproj[1]),scale=v1.distance(v2)/100,model=this.state.model;this.props.depthTest||gl.disable(esm.default.DEPTH_TEST),model.setUniforms({scale:scale}).draw(),this.props.depthTest||gl.enable(esm.default.DEPTH_TEST)}decodePickingColor(){return this.nullPickingColor()}getPickingInfo({info:info}){if(!info.color)return info;const pieIndex=65536*info.color[0]+256*info.color[1]+info.color[2],[pie_label,pie_frac]=this.state.pieInfo[pieIndex],layer_properties=[];return layer_properties.push((0,layerTools.ws)(pie_label,pie_frac)),{...info,properties:layer_properties}}}PieChartLayer.layerName="PieChartLayer",PieChartLayer.defaultProps={"@@type":"PieChartLayer",name:"Pie chart",id:"pie-layer",pickable:!0,visible:!0,selectedPie:"@@editedData.selectedPie",depthTest:!0};var geojson_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/geojson-layer/geojson-layer.js");const getColor=d=>{const c=d?.properties?.color;return[c[0]??0,c[1]??0,c[2]??0,30]};class FaultPolygonsLayer extends composite_layer.Z{renderLayers(){return[new geojson_layer.Z(this.getSubLayerProps({id:this.props.id,data:this.props.data,pickable:this.props.pickable,visible:this.props.visible,filled:this.props.filled,lineWidthMinPixels:this.props.lineWidthMinPixels,coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,getLineColor:d=>d?.properties?.color??[0,0,0,255],getFillColor:getColor,parameters:{[esm.default.DEPTH_TEST]:this.props.depthTest}}))]}}FaultPolygonsLayer.layerName="FaultPolygonsLayer",FaultPolygonsLayer.defaultProps={"@@type":"FaultPolygonsLayer",name:"Fault polygons",id:"fault-polygons-layer",pickable:!0,visible:!0,filled:!0,lineWidthMinPixels:2,depthTest:!0};var axesLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/axes/axesLayer.ts"),orthographic_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orthographic-viewport.js"),line_vertex_glsl="#version 300 es\n#define SHADER_NAME axes2dlayer-line-vertex-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nvoid main(void) {\n vec3 position_commonspace = project_position(positions);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",line_fragment_glsl="#version 300 es\n#define SHADER_NAME axes2dlayer-line-fragment-shader\n\nprecision highp float;\n\nuniform vec4 uColor;\n\nout vec4 fragColor;\n\nvoid main(void) {\n fragColor = uColor;\n}\n",load=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js"),image_loader=__webpack_require__("./node_modules/@loaders.gl/images/dist/esm/image-loader.js"),vec4=__webpack_require__("./node_modules/gl-matrix/esm/vec4.js"),font_atlas_namespaceObject=__webpack_require__.p+"static/media/font-atlas.72792226.png";const axes2DLayer_DEFAULT_TEXTURE_PARAMETERS={[esm.default.TEXTURE_MIN_FILTER]:esm.default.LINEAR_MIPMAP_LINEAR,[esm.default.TEXTURE_MAG_FILTER]:esm.default.LINEAR,[esm.default.TEXTURE_WRAP_S]:esm.default.CLAMP_TO_EDGE,[esm.default.TEXTURE_WRAP_T]:esm.default.CLAMP_TO_EDGE};var TEXT_ANCHOR=function(TEXT_ANCHOR){return TEXT_ANCHOR[TEXT_ANCHOR.start=0]="start",TEXT_ANCHOR[TEXT_ANCHOR.middle=1]="middle",TEXT_ANCHOR[TEXT_ANCHOR.end=2]="end",TEXT_ANCHOR}(TEXT_ANCHOR||{}),ALIGNMENT_BASELINE=function(ALIGNMENT_BASELINE){return ALIGNMENT_BASELINE[ALIGNMENT_BASELINE.top=1]="top",ALIGNMENT_BASELINE[ALIGNMENT_BASELINE.center=0]="center",ALIGNMENT_BASELINE[ALIGNMENT_BASELINE.bottom=-1]="bottom",ALIGNMENT_BASELINE}(ALIGNMENT_BASELINE||{}),ViewSide=function(ViewSide){return ViewSide[ViewSide.Left=0]="Left",ViewSide[ViewSide.Right=1]="Right",ViewSide[ViewSide.Bottom=2]="Bottom",ViewSide[ViewSide.Top=3]="Top",ViewSide}(ViewSide||{});const axes2DLayer_defaultProps={"@@type":"Axes2DLayer",name:"Axes2D",id:"axes2d-layer",visible:!0,coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,marginH:80,marginV:30,isLeftRuler:!0,isRightRuler:!1,isBottomRuler:!0,isTopRuler:!1,labelFontSizePt:9},fontInfo={letterHeight:92,spaceWidth:0,spacing:-1,textureWidth:1714,textureHeight:200,glyphInfos:{A:{x:0,y:0,width:86},B:{x:86,y:0,width:86},C:{x:172,y:0,width:86},D:{x:258,y:0,width:86},E:{x:344,y:0,width:86},F:{x:430,y:0,width:86},G:{x:516,y:0,width:86},H:{x:602,y:0,width:86},I:{x:688,y:0,width:86},J:{x:774,y:0,width:86},K:{x:860,y:0,width:86},L:{x:946,y:0,width:86},M:{x:1032,y:0,width:86},N:{x:1118,y:0,width:86},O:{x:1204,y:0,width:86},P:{x:1290,y:0,width:86},Q:{x:1376,y:0,width:86},R:{x:1462,y:0,width:86},S:{x:1548,y:0,width:86},T:{x:1634,y:0,width:86},U:{x:0,y:97,width:86},V:{x:86,y:97,width:86},W:{x:172,y:97,width:86},X:{x:258,y:97,width:86},Y:{x:344,y:97,width:86},Z:{x:430,y:97,width:86},0:{x:516,y:97,width:86},1:{x:602,y:97,width:86},2:{x:688,y:97,width:86},3:{x:774,y:97,width:86},4:{x:860,y:97,width:86},5:{x:946,y:97,width:86},6:{x:1032,y:97,width:86},7:{x:1118,y:97,width:86},8:{x:1204,y:97,width:86},9:{x:1290,y:97,width:86},"+":{x:1376,y:97,width:86},"-":{x:1462,y:97,width:86},".":{x:1548,y:97,width:86},",":{x:1634,y:97,width:86}}};class Axes2DLayer extends lib_layer.Z{shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags}){return super.shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags})||changeFlags.viewportChanged}updateState(){const fontTexture=this.state.fontTexture,{label_models:label_models,line_model:line_model,background_model:background_model}=this._getModels(fontTexture);this.setState({...this.state,models:[...label_models,line_model,background_model]})}initializeState(){const{gl:gl}=this.context;(0,load.z)(font_atlas_namespaceObject,image_loader.S,{image:{type:"data"}}).then((data=>{const fontTexture=new texture_2d.Z(gl,{width:data.width,height:data.height,format:esm.default.RGB,data:data,parameters:axes2DLayer_DEFAULT_TEXTURE_PARAMETERS}),{label_models:label_models,line_model:line_model,background_model:background_model}=this._getModels(fontTexture);this.setState({fontTexture:fontTexture,models:[...label_models,line_model,background_model]})}))}GetTickLinesAndLabels(min,max,viewSide,pixel2worldHor,pixel2worldVer){const lines=[],tick_labels=[],mv=this.props.marginV*pixel2worldVer,mh=this.props.marginH*pixel2worldHor,vpBounds=this.context.viewport.getBounds();let start,y_tick=0,x_tick=0;viewSide===ViewSide.Top?(start=vpBounds[3]-mv,y_tick=start):viewSide===ViewSide.Bottom?(start=vpBounds[1]+mv,y_tick=start):viewSide===ViewSide.Left?(start=vpBounds[0]+mh,x_tick=start):viewSide===ViewSide.Right&&(start=vpBounds[2]-mh,x_tick=start);const isTopOrBottomRuler=viewSide===ViewSide.Top||viewSide===ViewSide.Bottom,delta=isTopOrBottomRuler?10*pixel2worldVer:10*pixel2worldHor,ticks=function GetTicks(min,max,axis_pixel_length){let step=Math.min(Math.round(axis_pixel_length/100)+1,20);const range=max-min,delta=Math.abs(range)/step;let decade=1;if(delta>=10){const logde=Math.log10(delta),pot=Math.floor(logde);decade=Math.pow(10,pot)}let scaled_delta=Math.round(delta/decade);3==scaled_delta?scaled_delta=2:4==scaled_delta||6==scaled_delta||7==scaled_delta?scaled_delta=5:scaled_delta>7?scaled_delta=10:scaled_delta<1&&(scaled_delta=1);const incr=scaled_delta*decade,start=Math.ceil(min/incr)*incr,stop=Math.floor(max/incr)*incr,calc_step=Math.floor(Math.abs(stop-start)/incr);step=calc_step>0?calc_step:0;const ticks=[];for(let i=0;i<=step;i++){const x=start+i*incr;ticks.push(x)}return ticks}(min,max,isTopOrBottomRuler?LineLengthInPixels([min,0,0],[max,0,0],this.context.viewport):LineLengthInPixels([0,min,0],[0,max,0],this.context.viewport)),tick_length=viewSide===ViewSide.Left||viewSide===ViewSide.Bottom?-delta:delta;for(let i=0;i1){const tick1=ticks[0],d=(ticks[1]-tick1)/4,tick_start=tick1;let i=0;for(;tick_start+(i+1)*dmin;){const tick=tick_start-(i+1)*d;tick_labels.push(""),i++,isTopOrBottomRuler?(lines.push(tick,y_tick,1009),lines.push(tick,y_tick+.5*tick_length,1009)):(lines.push(x_tick,tick,1009),lines.push(x_tick+.5*tick_length,tick,1009))}}return[lines,this.makeLabelsData(lines,tick_labels)]}GetBacgroundTriangleLinesHorizontal(x_min_w,x_max_w,isTop,pixel2world){const mv=this.props.marginV*pixel2world,vp_bounds=this.context.viewport.getBounds(),y_max=isTop?vp_bounds[3]:vp_bounds[1]+mv,y_min=isTop?vp_bounds[3]-mv:vp_bounds[1],p2=[x_max_w,y_max,10],p3=[x_max_w,y_min,10],p4=[x_min_w,y_min,10];return[...[x_min_w,y_max,10],...p2,...p4,...p2,...p4,...p3]}GetBacgroundTriangleLinesVertical(y_min_w,y_max_w,isLeft,pixel2world){const mh=this.props.marginH*pixel2world,vp_bounds=this.context.viewport.getBounds(),x_max=isLeft?vp_bounds[0]+mh:vp_bounds[2],x_min=isLeft?vp_bounds[0]:vp_bounds[2]-mh,p2=[x_max,y_max_w,10],p3=[x_min,y_max_w,10],p4=[x_min,y_min_w,10];return[...[x_max,y_min_w,10],...p2,...p4,...p2,...p4,...p3]}makeLabelsData(tick_lines,tick_labels){const labels=[];for(let i=0;i(x??0)/255)));const line_model=new lib_model.Z(gl,{id:`${this.props.id}-lines`,vs:line_vertex_glsl,fs:line_fragment_glsl,uniforms:{uColor:lineColor},geometry:new geometry.Z({drawMode:esm.default.LINES,attributes:{positions:new Float32Array(tick_and_axes_lines)},vertexCount:tick_and_axes_lines.length/3}),modules:[project.Z],isInstanced:!1});let bColor=[.5,.5,.5,1];void 0!==this.props.backgroundColor&&(bColor=this.props.backgroundColor,3===bColor.length&&bColor.push(255),bColor=bColor.map((x=>(x??0)/255)));const background_model=new lib_model.Z(gl,{id:`${this.props.id}-background`,vs:line_vertex_glsl,fs:line_fragment_glsl,uniforms:{uColor:bColor},geometry:new geometry.Z({drawMode:esm.default.TRIANGLES,attributes:{positions:new Float32Array(background_lines)},vertexCount:background_lines.length/3}),modules:[project.Z],isInstanced:!1}),label_models=[],pixelScale=function GetPixelsScale(labelFontSizePt){return Math.max(0,8/9*labelFontSizePt)}(this.props.labelFontSizePt??axes2DLayer_defaultProps.labelFontSizePt);for(const item of labelData){const x=item.pos[0],y=item.pos[1],z=item.pos[2],label=item.label,anchor=item.anchor??TEXT_ANCHOR.start,aligment_baseline=item.aligment??ALIGNMENT_BASELINE.center;if(""===label)continue;const pos_w=vec4.al(x,y,z,1),len=label.length,numVertices=6*len,positions=new Float32Array(3*numVertices),texcoords=new Float32Array(2*numVertices),maxX=fontInfo.textureWidth,maxY=fontInfo.textureHeight;let offset=0,offsetTexture=0,x1=0;anchor===TEXT_ANCHOR.end?x1=-len:anchor===TEXT_ANCHOR.middle&&(x1=-len/2);let y_aligment_offset=0;aligment_baseline===ALIGNMENT_BASELINE.center?y_aligment_offset=.5*pixelScale:aligment_baseline===ALIGNMENT_BASELINE.top&&(y_aligment_offset=1*pixelScale);for(let ii=0;iiv[2])),delta=worldCoordinates.map(((v,i,coordinates)=>{const prev=coordinates[i-1]||v;return(0,pureFunctionsAny_generated.TE$)([prev[0],prev[1]],[v[0],v[1]])})),a=[];delta.forEach((d=>{const prev=a.at(-1)||0;a.push(d+prev)}));return(0,lodash.zip)(a,[...a].fill(planeY),z)}function getUnfoldedPath(object){const worldCoordinates=object.geometry.coordinates;return(0,lodash.isEqual)(worldCoordinates[0],worldCoordinates.at(-1))?function computeUnfoldedPolygon(coordinates){const half=Math.floor(coordinates.length/2),upper_line=coordinates.splice(0,half),lower_line=coordinates.splice(0,half),uul=computeUnfoldedPath(upper_line),ull=computeUnfoldedPath(lower_line.reverse()),unfolded_coordinates=uul.concat(ull.reverse());return unfolded_coordinates.push(uul[0]),unfolded_coordinates}(worldCoordinates):computeUnfoldedPath(worldCoordinates)}class UnfoldedGeoJsonLayer extends geojson_layer.Z{renderLayers(){const layers=super.renderLayers();return layers.flat().filter((layer=>"PathLayer"===layer?.constructor.name)).forEach((layer=>{const unfolded_layer=layer.clone(this.getSubLayerProps({...layer,id:layer.id+"-for-intersection-view",getPath:object=>getUnfoldedPath(object)}));unfolded_layer&&layers.push(unfolded_layer)})),layers}filterSubLayer({layer:layer,viewport:viewport}){return viewport.constructor===intersectionViewport.Z?-1!=layer.id.search("-for-intersection-view"):-1==layer.id.search("-for-intersection-view")}}UnfoldedGeoJsonLayer.layerName="UnfoldedGeoJsonLayer";var grid3dLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/grid3dLayer.ts"),boxSelectionLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/BoxSelectionLayer/boxSelectionLayer.ts"),abscissaTransform=__webpack_require__("./packages/subsurface-viewer/src/layers/wells/utils/abscissaTransform.ts")},"./packages/subsurface-viewer/src/layers/map/mapLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return MapLayer}});var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),lib=__webpack_require__("./node_modules/@vivaxy/png/lib/index.js"),workerpool=__webpack_require__("./node_modules/workerpool/dist/workerpool.js"),workerpool_default=__webpack_require__.n(workerpool),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),shader_modules=__webpack_require__("./packages/subsurface-viewer/src/layers/shader_modules/index.ts"),layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts");const DEFAULT_TEXTURE_PARAMETERS={[esm.default.TEXTURE_MIN_FILTER]:esm.default.LINEAR_MIPMAP_LINEAR,[esm.default.TEXTURE_MAG_FILTER]:esm.default.LINEAR,[esm.default.TEXTURE_WRAP_S]:esm.default.CLAMP_TO_EDGE,[esm.default.TEXTURE_WRAP_T]:esm.default.CLAMP_TO_EDGE},defaultProps={data:["dummy"],contours:[-1,-1],isContoursDepth:!0,gridLines:!1,colorMapName:"",coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,propertyValueRange:[0,1],meshValueRange:[0,1],depthTest:!0,ZIncreasingDownwards:!0};class PrivateMapLayer extends lib_layer.Z{get isLoaded(){return this.state.isLoaded??!1}initializeState(context){const{gl:gl}=context,[model_mesh,mesh_lines_model]=this._getModels(gl);this.setState({models:[model_mesh,mesh_lines_model],isLoaded:!1})}shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags}){return super.shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags})||changeFlags.propsOrDataChanged}updateState({context:context}){this.initializeState(context)}_getModels(gl){const shaders=this.getShaders();return[new model.Z(gl,{id:`${this.props.id}-mesh`,...shaders,geometry:new geometry.Z({drawMode:gl.TRIANGLES,attributes:{positions:{value:this.props.positions,size:3},...this.props.normals.length>0&&{normals:{value:this.props.normals,size:3}},properties:{value:this.props.vertexProperties,size:1}},indices:{value:this.props.triangleIndices,size:1}}),isInstanced:!1}),new model.Z(gl,{id:`${this.props.id}-lines`,vs:"#version 300 es\n#define SHADER_NAME vertex-lines-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nout vec4 position_commonspace;\n\nuniform bool ZIncreasingDownwards;\n\nvoid main(void) {\n vec3 position = positions;\n position[2] *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n vec3 position_commonspace = project_position(position);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",fs:"#version 300 es\n#define SHADER_NAME graph-layer-fragment-shader\n\nprecision highp float;\n\nout vec4 fragColor;\n\nvoid main(void) {\n fragColor = vec4(0.0, 0.0, 0.0, 1.0);\n}\n",geometry:new geometry.Z({drawMode:gl.LINES,attributes:{positions:{value:this.props.positions,size:3}},indices:{value:this.props.lineIndices,size:1}}),modules:[project.Z],isInstanced:!1})]}draw(args){if(!this.state.models)return;const{uniforms:uniforms,context:context}=args,{gl:gl}=context,contourReferencePoint=this.props.contours[0]??-1,contourInterval=this.props.contours[1]??-1,isContoursDepth=this.props.isContoursDepth,[model_mesh,mesh_lines_model]=this.state.models,valueRangeMin=this.props.propertyValueRange[0]??0,valueRangeMax=this.props.propertyValueRange[1]??1,colorMapRangeMin=this.props.colorMapRange?.[0]??valueRangeMin,colorMapRangeMax=this.props.colorMapRange?.[1]??valueRangeMax,isClampColor=void 0!==this.props.colorMapClampColor&&!0!==this.props.colorMapClampColor&&!1!==this.props.colorMapClampColor;let colorMapClampColor=isClampColor?this.props.colorMapClampColor:[0,0,0];colorMapClampColor=colorMapClampColor.map((x=>(x??0)/255));const isColorMapClampColorTransparent=!1===this.props.colorMapClampColor,smoothShading=0!=this.props.normals.length&&this.props.smoothShading;gl.enable(esm.default.POLYGON_OFFSET_FILL),this.props.depthTest||gl.disable(esm.default.DEPTH_TEST),gl.polygonOffset(1,1),model_mesh.setUniforms({...uniforms,contourReferencePoint:contourReferencePoint,contourInterval:contourInterval,isContoursDepth:isContoursDepth,colormap:new texture_2d.Z(context.gl,{width:256,height:1,format:esm.default.RGB,data:(0,layerTools.n$)(this.props.colorMapName,this.context.userData.colorTables,this.props.colorMapFunction),parameters:DEFAULT_TEXTURE_PARAMETERS}),valueRangeMin:valueRangeMin,valueRangeMax:valueRangeMax,colorMapRangeMin:colorMapRangeMin,colorMapRangeMax:colorMapRangeMax,colorMapClampColor:colorMapClampColor,isColorMapClampColorTransparent:isColorMapClampColorTransparent,isClampColor:isClampColor,smoothShading:smoothShading,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),gl.disable(esm.default.POLYGON_OFFSET_FILL),this.props.depthTest||gl.enable(esm.default.DEPTH_TEST),this.props.gridLines&&mesh_lines_model.setUniforms({...uniforms,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),this.state.isLoaded||this.setState({...this.state,isLoaded:!0})}decodePickingColor(){return 0}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[],vertexIndex=65536*info.color[0]+256*info.color[1]+info.color[2];if(void 0!==info.coordinate?.[2]){const zScale=this.props.modelMatrix?this.props.modelMatrix[10]:1,depth=(this.props.ZIncreasingDownwards?-info.coordinate[2]:info.coordinate[2])/Math.max(.001,zScale);layer_properties.push((0,layerTools.ws)("Depth",depth))}const property=this.props.vertexProperties[vertexIndex];return layer_properties.push((0,layerTools.ws)("Property",property)),{...info,properties:layer_properties}}getShaders(){return super.getShaders({vs:"#version 300 es\n#define SHADER_NAME vertex-shader\n\nprecision highp float;\n\n// Primitive attributes\nin vec3 positions;\nin float properties;\nin vec3 normals;\nin vec3 colors;\n\n// Outputs to fragment shader\nout vec2 vTexCoord;\nout vec3 cameraPosition;\nout vec3 normals_commonspace;\nout vec4 position_commonspace;\nout vec4 vColor;\nout vec3 worldPos;\nout float property;\nflat out int vertexIndex;\n\nuniform bool ZIncreasingDownwards;\n\nvoid main(void) {\n geometry.pickingColor = vec3(1.0, 1.0, 0.0);\n vertexIndex = gl_VertexID;\n\n vec3 position = positions;\n position[2] *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n cameraPosition = project_uCameraPosition;\n\n worldPos = position;\n geometry.worldPosition = position;\n\n normals_commonspace = normals;\n\n vColor = vec4(colors.rgb, 1.0);\n\n property = properties;\n\n position_commonspace = vec4(project_position(position), 0.0);\n gl_Position = project_common_position_to_clipspace(position_commonspace);\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n",fs:'#version 300 es\n#define SHADER_NAME terrainmap-shader\n\nprecision highp float;\n\n\nuniform bool isContoursDepth;\nuniform float contourReferencePoint;\nuniform float contourInterval;\n\nin vec2 vTexCoord;\nin vec3 cameraPosition;\nin vec3 normals_commonspace;\nin vec4 position_commonspace;\nin vec4 vColor;\n\nflat in int vertexIndex;\n\nin vec3 worldPos;\nin float property;\n\nuniform sampler2D colormap;\n\nuniform float valueRangeMin;\nuniform float valueRangeMax;\nuniform float colorMapRangeMin;\nuniform float colorMapRangeMax;\n\nuniform vec3 colorMapClampColor;\nuniform bool isClampColor;\nuniform bool isColorMapClampColorTransparent;\nuniform bool smoothShading;\n\n\nvoid main(void) { \n geometry.uv = vTexCoord;\n\n vec3 normal = normals_commonspace;\n // These are sent as Int8\n normal[0] /= 127.0;\n normal[1] /= 127.0;\n normal[2] /= 127.0;\n\n if (!smoothShading || (normal[0] == 0.0 && normal[1] == 0.0 && normal[2] == 0.0)) {\n normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n }\n\n //Picking pass.\n if (picking_uActive && !picking_uAttribute) {\n gl_FragColor = encodeVertexIndexToRGB(vertexIndex);\n return;\n }\n\n vec4 color = vec4(1.0, 1.0, 1.0, 1.0);;\n float propertyValue = property;\n\n float x = (propertyValue - colorMapRangeMin) / (colorMapRangeMax - colorMapRangeMin);\n if (x < 0.0 || x > 1.0) {\n // Out of range. Use clampcolor.\n if (isClampColor) {\n color = vec4(colorMapClampColor.rgb, 1.0);\n\n }\n else if (isColorMapClampColorTransparent) {\n discard;\n return;\n }\n else {\n // Use min/max color to clamp.\n x = max(0.0, x);\n x = min(1.0, x);\n\n color = texture2D(colormap, vec2(x, 0.5));\n }\n }\n else {\n color = texture2D(colormap, vec2(x, 0.5));\n }\n\n \n bool is_contours = contourReferencePoint != -1.0 && contourInterval != -1.0;\n if (is_contours) {\n // Contours are made of either depths or properties.\n float val = isContoursDepth ? (abs(worldPos.z) - contourReferencePoint) / contourInterval\n : (propertyValue - contourReferencePoint) / contourInterval;\n\n float f = fract(val);\n float df = fwidth(val);\n\n // keep: float c = smoothstep(df * 1.0, df * 2.0, f); // smootstep from/to no of pixels distance fronm contour line.\n float c = smoothstep(0.0, df * 2.0, f);\n\n color = color * vec4(c, c, c, 1.0);\n }\n\n // Use two sided phong lighting. This has no effect if "material" property is not set.\n vec3 lightColor = getPhongLightColor(color.rgb, cameraPosition, position_commonspace.xyz, normal);\n gl_FragColor = vec4(lightColor, 1.0);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n',modules:[project32.Z,picking.Z,shader_modules.jA,shader_modules.hC]})}}function rotate(x,y,x0,y0,rad){return[Math.cos(rad)*(x-x0)-Math.sin(rad)*(y-y0)+x0,Math.sin(rad)*(x-x0)+Math.cos(rad)*(y-y0)+y0]}function makeFullMesh(e){const[inputMeshData,inputPropertiesData,isMesh,frame,smoothShading,gridLines]=e.data;function getFloat32ArrayMinMax(data){let max=-99999999,min=99999999;for(let i=0;imax?data[i]:max,min=data[i]=0&&isDefined(meshData[i1]),i2_act=h+1=0&&isDefined(meshData[i4]),noNormal=[0,0,0];if(!i0_act)return noNormal;const hh=ny-1-h,p0=[ox+w*dx,oy+hh*dy,i0_act?meshData[i0]:0],p1=[ox+(w-1)*dx,oy+hh*dy,i1_act?meshData[i1]:0],p2=[ox+w*dx,oy+(hh+1)*dy,i2_act?meshData[i2]:0],p3=[ox+(w+1)*dx,oy+hh*dy,i3_act?meshData[i3]:0],p4=[ox+w*dx,oy+(hh-1)*dy,i4_act?meshData[i4]:0],v1=[p1[0]-p0[0],p1[1]-p0[1],p1[2]-p0[2]],v2=[p2[0]-p0[0],p2[1]-p0[1],p2[2]-p0[2]],v3=[p3[0]-p0[0],p3[1]-p0[1],p3[2]-p0[2]],v4=[p4[0]-p0[0],p4[1]-p0[1],p4[2]-p0[2]],normals=[];if(i1_act&&i2_act){const normal=crossProduct(v2,v1);normals.push(normal)}if(i2_act&&i3_act){const normal=crossProduct(v3,v2);normals.push(normal)}if(i3_act&&i4_act){const normal=crossProduct(v4,v3);normals.push(normal)}if(i4_act&&i1_act){const normal=crossProduct(v1,v4);normals.push(normal)}if(0===normals.length)return noNormal;const mean=normals[0];for(let i=1;i{const fileReader=new FileReader;fileReader.readAsArrayBuffer(blob),fileReader.onload=()=>{const arrayBuffer=fileReader.result,data=lib.Jx(arrayBuffer).data,n=data.length,buffer=new ArrayBuffer(n),view=new DataView(buffer);for(let i=0;i0&&subLayers.every((layer=>layer.isLoaded)),isFinished=this.state?.isFinishedLoading??!1;return isLoaded&&isFinished}rebuildData(reportBoundingBox){void 0!==this.props.meshUrl&&console.warn('"meshUrl" is deprecated. Use "meshData"'),void 0!==this.props.propertiesUrl&&console.warn('"propertiesUrl" is deprecated. Use "propertiesData"');const p=async function loadMeshAndProperties(meshData,propertiesData){const mesh=await loadFloat32Data(meshData),properties=await loadFloat32Data(propertiesData);return Promise.all([mesh,properties])}(this.props.meshData??this.props.meshUrl,this.props.propertiesData??this.props.propertiesUrl);p.then((([meshData,propertiesData])=>{const webworkerParams=this.getWebworkerParams(meshData,propertiesData);pool.exec(makeFullMesh,[{data:webworkerParams.params}]).then((e=>{const[positions,normals,triangleIndices,vertexProperties,lineIndices,meshZValueRange,propertyValueRange]=e;if(this.setState({...this.state,positions:positions,normals:normals,triangleIndices:triangleIndices,vertexProperties:vertexProperties,lineIndices:lineIndices,propertyValueRange:propertyValueRange,isFinishedLoading:!0}),void 0!==this.props.reportBoundingBox&&reportBoundingBox){const xinc=this.props.frame?.increment?.[0]??0,yinc=this.props.frame?.increment?.[1]??0,nnodes_x=this.props.frame?.count?.[0]??2,nnodes_y=this.props.frame?.count?.[1]??2,xMin=this.props.frame?.origin?.[0]??0,yMin=this.props.frame?.origin?.[1]??0,zMin=-meshZValueRange[0],xMax=xMin+xinc*(nnodes_x-1),yMax=yMin+yinc*(nnodes_y-1),zMax=-meshZValueRange[1],center=this.props.frame.rotPoint??this.props.frame.origin,rotRad=(this.props.frame.rotDeg??0)*(2*Math.PI)/360,[x0,y0]=rotate(xMin,yMin,center[0],center[1],rotRad),[x1,y1]=rotate(xMax,yMin,center[0],center[1],rotRad),[x2,y2]=rotate(xMax,yMax,center[0],center[1],rotRad),[x3,y3]=rotate(xMin,yMax,center[0],center[1],rotRad),x_min=Math.min(x0,x1,x2,x3),x_max=Math.max(x0,x1,x2,x3),y_min=Math.min(y0,y1,y2,y3),y_max=Math.max(y0,y1,y2,y3);this.props.reportBoundingBox({layerBoundingBox:[x_min,y_min,zMin,x_max,y_max,zMax]})}!function onTerminateWorker(){const stats=pool.stats();0===stats.busyWorkers&&0===stats.pendingTasks&&pool.terminate()}()}))}))}initializeState(){this.setState({...this.state,isFinishedLoading:!1});this.rebuildData(!0)}updateState({props:props,oldProps:oldProps}){if(!((0,lodash.isEqual)(props.meshUrl,oldProps.meshUrl)&&(0,lodash.isEqual)(props.propertiesUrl,oldProps.propertiesUrl)&&(0,lodash.isEqual)(props.meshData,oldProps.meshData)&&(0,lodash.isEqual)(props.propertiesData,oldProps.propertiesData)&&(0,lodash.isEqual)(props.frame,oldProps.frame)&&(0,lodash.isEqual)(props.ZIncreasingDownwards,oldProps.ZIncreasingDownwards)&&(0,lodash.isEqual)(props.gridLines,oldProps.gridLines))){this.setState({...this.state,isFinishedLoading:!1});const reportBoundingBox=!1;this.rebuildData(reportBoundingBox)}}renderLayers(){if(1===Object.keys(this.state).length)return[];const[minX,minY]=this.props.frame.origin,center=this.props.frame.rotPoint??[minX,minY],rotatingModelMatrix=(0,layerTools.RT)(this.props.frame.rotDeg??0,center[0],center[1]),isMesh=void 0!==this.props.meshUrl&&""!==this.props.meshUrl||void 0!==this.props.meshData&&""!==this.props.meshData;void 0!==this.props.modelMatrix&&null!==this.props.modelMatrix&&rotatingModelMatrix.multiplyRight(this.props.modelMatrix);return[new PrivateMapLayer(this.getSubLayerProps({positions:this.state.positions,normals:this.state.normals,triangleIndices:this.state.triangleIndices,vertexProperties:this.state.vertexProperties,lineIndices:this.state.lineIndices,pickable:this.props.pickable,modelMatrix:rotatingModelMatrix,contours:this.props.contours,gridLines:this.props.gridLines,isContoursDepth:!!isMesh&&this.props.isContoursDepth,colorMapName:this.props.colorMapName,colorMapRange:this.props.colorMapRange,colorMapClampColor:this.props.colorMapClampColor,colorMapFunction:this.props.colorMapFunction,propertyValueRange:this.state.propertyValueRange,material:this.props.material,smoothShading:this.props.smoothShading,depthTest:this.props.depthTest,ZIncreasingDownwards:this.props.ZIncreasingDownwards}))]}getWebworkerParams(meshData,propertiesData){if(!meshData&&!propertiesData)throw new Error("Either mesh or properties or the both must be defined");const params=[meshData,propertiesData,!!meshData,this.props.frame,this.props.smoothShading,this.props.gridLines],transferrables=[meshData?.buffer,propertiesData?.buffer].filter((item=>!!item));return transferrables.length>0?{params:params,transferrables:transferrables}:{params:params}}}MapLayer.layerName="MapLayer",MapLayer.defaultProps={"@@type":"MapLayer",name:"Map",id:"map3d-layer-float32",pickable:!0,visible:!0,bounds:{type:"object",value:null,false:!0,compare:!0},colorMapRange:{type:"array"},contours:[-1,-1],isContoursDepth:!0,gridLines:!1,smoothShading:!0,material:!0,depthTest:!0,ZIncreasingDownwards:!0}},"./packages/subsurface-viewer/src/layers/northarrow/northArrow3DLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return NorthArrow3DLayer}});var lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),orthographic_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orthographic-viewport.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js");class NorthArrow3DLayer extends lib_layer.Z{initializeState(context){const{gl:gl}=context;this.setState(this._getModels(gl))}shouldUpdateState(){return!0}updateState({context:context}){context.gl&&this.setState(this._getModels(context.gl))}draw({moduleParameters:moduleParameters,uniforms:uniforms,context:context}){const{gl:gl}=context;gl.disable(gl.DEPTH_TEST),super.draw({moduleParameters:moduleParameters,uniforms:uniforms,context:context}),gl.enable(gl.DEPTH_TEST)}_getModels(gl){const model_lines=function GetArrowLines(){const lines=[];let z=.5;return lines.push([-1,-2,z]),lines.push([-1,2,z]),lines.push([-1,2,z]),lines.push([-1.5,2,z]),lines.push([-1.5,2,z]),lines.push([0,4,z]),lines.push([0,4,z]),lines.push([1.5,2,z]),lines.push([1.5,2,z]),lines.push([1,2,z]),lines.push([1,2,z]),lines.push([1,-2,z]),lines.push([1,-2,z]),lines.push([-1,-2,z]),z=-.5,lines.push([-1,-2,z]),lines.push([-1,2,z]),lines.push([-1,2,z]),lines.push([-1.5,2,z]),lines.push([-1.5,2,z]),lines.push([0,4,z]),lines.push([0,4,z]),lines.push([1.5,2,z]),lines.push([1.5,2,z]),lines.push([1,2,z]),lines.push([1,2,z]),lines.push([1,-2,z]),lines.push([1,-2,z]),lines.push([-1,-2,z]),lines.push([-1,-2,-.5]),lines.push([-1,-2,.5]),lines.push([-1,2,-.5]),lines.push([-1,2,.5]),lines.push([-1.5,2,-.5]),lines.push([-1.5,2,.5]),lines.push([0,4,-.5]),lines.push([0,4,.5]),lines.push([1.5,2,-.5]),lines.push([1.5,2,.5]),lines.push([1,2,-.5]),lines.push([1,2,.5]),lines.push([1,-2,-.5]),lines.push([1,-2,.5]),lines.flat()}(),is_orthographic=this.context.viewport.constructor===orthographic_viewport.Z,view_at=new vector3.Z(this.unproject([100,100,0]));let view_from=new vector3.Z(this.context.viewport.cameraPosition);if(is_orthographic){const cam_pos_z=new vector3.Z(this.context.viewport.cameraPosition)[2];view_from=new vector3.Z([view_at[0],view_at[1],cam_pos_z])}const dir=new vector3.Z([view_at[0]-view_from[0],view_at[1]-view_from[1],view_at[2]-view_from[2]]);dir.normalize(),dir.scale(9999);const pos=new vector3.Z([view_from[0]+dir[0],view_from[1]+dir[1],view_from[2]+dir[2]]),lines=[],zoom=this.context.viewport.zoom,zoom_scale=Math.pow(2,zoom),scale=is_orthographic?15/zoom_scale:99;for(let i=0;i(x??0)/255));color[3]=1;const grids=new model.Z(gl,{id:`${this.props.id}-grids`,vs:"#version 300 es\n#define SHADER_NAME graph-layer-axis-vertex-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nvoid main(void) {\n vec3 position_commonspace = project_position(positions);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",fs:"#version 300 es\n#define SHADER_NAME graph-layer-fragment-shader\n\nprecision highp float;\n\nout vec4 fragColor;\n\nuniform vec4 uColor;\n\nvoid main(void) {\n fragColor = uColor;\n}\n",uniforms:{uColor:color},geometry:new geometry.Z({drawMode:esm.default.LINES,attributes:{positions:new Float32Array(lines)},vertexCount:lines.length/3}),modules:[project.Z],isInstanced:!1});return{model:grids,models:[grids].filter(Boolean),modelsByName:{grids:grids}}}}NorthArrow3DLayer.layerName="NorthArrow3DLayer",NorthArrow3DLayer.defaultProps={"@@type":"NorthArrow3DLayer",name:"NorthArrow3D",id:"north-arrow-layer",visible:!0,color:[0,0,0,1]}},"./packages/subsurface-viewer/src/layers/polylines/polylinesLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return PolylinesLayer}});var composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts"),path_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js");class PrivatePolylinesLayer extends path_layer.Z{constructor(props){super(props)}getShaders(){return{vs:"#version 300 es\n#define SHADER_NAME path-layer-vertex-shader\n\nin vec2 positions;\n\nin float instanceTypes;\nin vec3 instanceStartPositions;\nin vec3 instanceEndPositions;\nin vec3 instanceLeftPositions;\nin vec3 instanceRightPositions;\nin vec3 instanceLeftPositions64Low;\nin vec3 instanceStartPositions64Low;\nin vec3 instanceEndPositions64Low;\nin vec3 instanceRightPositions64Low;\nin float instanceStrokeWidths;\nin vec4 instanceColors;\nin vec3 instancePickingColors;\n\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float jointType;\nuniform float capType;\nuniform float miterLimit;\nuniform bool billboard;\nuniform int widthUnits;\n\nuniform float opacity;\nuniform bool ZIncreasingDownwards;\n\nout vec4 vColor;\nout vec2 vCornerOffset;\nout float vMiterLength;\nout vec2 vPathPosition;\nout float vPathLength;\nout float vJointType;\n\nconst float EPSILON = 0.001;\nconst vec3 ZERO_OFFSET = vec3(0.0);\n\nfloat flipIfTrue(bool flag) {\n return -(float(flag) * 2. - 1.);\n}\n\n// calculate line join positions\nvec3 getLineJoinOffset(\n vec3 prevPoint, vec3 currPoint, vec3 nextPoint,\n vec2 width\n) {\n bool isEnd = positions.x > 0.0;\n // side of the segment - -1: left, 0: center, 1: right\n float sideOfPath = positions.y;\n float isJoint = float(sideOfPath == 0.0);\n\n vec3 deltaA3 = (currPoint - prevPoint);\n vec3 deltaB3 = (nextPoint - currPoint);\n\n mat3 rotationMatrix;\n bool needsRotation = !billboard && project_needs_rotation(currPoint, rotationMatrix);\n if (needsRotation) {\n deltaA3 = deltaA3 * rotationMatrix;\n deltaB3 = deltaB3 * rotationMatrix;\n }\n vec2 deltaA = deltaA3.xy / width;\n vec2 deltaB = deltaB3.xy / width;\n\n float lenA = length(deltaA);\n float lenB = length(deltaB);\n\n vec2 dirA = lenA > 0. ? normalize(deltaA) : vec2(0.0, 0.0);\n vec2 dirB = lenB > 0. ? normalize(deltaB) : vec2(0.0, 0.0);\n\n vec2 perpA = vec2(-dirA.y, dirA.x);\n vec2 perpB = vec2(-dirB.y, dirB.x);\n\n // tangent of the corner\n vec2 tangent = dirA + dirB;\n tangent = length(tangent) > 0. ? normalize(tangent) : perpA;\n // direction of the corner\n vec2 miterVec = vec2(-tangent.y, tangent.x);\n // direction of the segment\n vec2 dir = isEnd ? dirA : dirB;\n // direction of the extrusion\n vec2 perp = isEnd ? perpA : perpB;\n // length of the segment\n float L = isEnd ? lenA : lenB;\n\n // A = angle of the corner\n float sinHalfA = abs(dot(miterVec, perp));\n float cosHalfA = abs(dot(dirA, miterVec));\n\n // -1: right, 1: left\n float turnDirection = flipIfTrue(dirA.x * dirB.y >= dirA.y * dirB.x);\n\n // relative position to the corner:\n // -1: inside (smaller side of the angle)\n // 0: center\n // 1: outside (bigger side of the angle)\n float cornerPosition = sideOfPath * turnDirection;\n\n float miterSize = 1.0 / max(sinHalfA, EPSILON);\n // trim if inside corner extends further than the line segment\n miterSize = mix(\n min(miterSize, max(lenA, lenB) / max(cosHalfA, EPSILON)),\n miterSize,\n step(0.0, cornerPosition)\n );\n\n vec2 offsetVec = mix(miterVec * miterSize, perp, step(0.5, cornerPosition))\n * (sideOfPath + isJoint * turnDirection);\n\n // special treatment for start cap and end cap\n bool isStartCap = lenA == 0.0 || (!isEnd && (instanceTypes == 1.0 || instanceTypes == 3.0));\n bool isEndCap = lenB == 0.0 || (isEnd && (instanceTypes == 2.0 || instanceTypes == 3.0));\n bool isCap = isStartCap || isEndCap;\n\n // extend out a triangle to envelope the round cap\n if (isCap) {\n offsetVec = mix(perp * sideOfPath, dir * capType * 4.0 * flipIfTrue(isStartCap), isJoint);\n vJointType = capType;\n } else {\n vJointType = jointType;\n }\n\n // Generate variables for fragment shader\n vPathLength = L;\n vCornerOffset = offsetVec;\n vMiterLength = dot(vCornerOffset, miterVec * turnDirection);\n vMiterLength = isCap ? isJoint : vMiterLength;\n\n vec2 offsetFromStartOfPath = vCornerOffset + deltaA * float(isEnd);\n vPathPosition = vec2(\n dot(offsetFromStartOfPath, perp),\n dot(offsetFromStartOfPath, dir)\n );\n geometry.uv = vPathPosition;\n\n float isValid = step(instanceTypes, 3.5);\n vec3 offset = vec3(offsetVec * width * isValid, 0.0);\n\n if (needsRotation) {\n offset = rotationMatrix * offset;\n }\n return offset;\n}\n\n// In clipspace extrusion, if a line extends behind the camera, clip it to avoid visual artifacts\nvoid clipLine(inout vec4 position, vec4 refPosition) {\n if (position.w < EPSILON) {\n float r = (EPSILON - refPosition.w) / (position.w - refPosition.w);\n position = refPosition + (position - refPosition) * r;\n }\n}\n\nvoid main() {\n geometry.pickingColor = instancePickingColors;\n\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n vec3 leftPosition = instanceLeftPositions;\n vec3 startPosition = instanceStartPositions;\n vec3 leftPos64Low = instanceLeftPositions64Low;\n vec3 startPos64Low = instanceStartPositions64Low;\n\n vec3 rightposition = instanceRightPositions;\n vec3 endPosition = instanceEndPositions;\n vec3 rightPos64Low = instanceRightPositions64Low;\n vec3 endPos64Low = instanceEndPositions64Low;\n\n if(ZIncreasingDownwards) {\n leftPosition.z *= -1.0;\n startPosition.z *= -1.0;\n leftPos64Low.z *= -1.0;\n startPos64Low.z *= -1.0;\n rightposition.z *= -1.0;\n endPosition.z *= -1.0;\n rightPos64Low.z *= -1.0;\n endPos64Low.z *= -1.0; \n }\n\n float isEnd = positions.x;\n\n vec3 prevPosition = mix(leftPosition, startPosition, isEnd);\n vec3 prevPosition64Low = mix(leftPos64Low, startPos64Low, isEnd);\n\n vec3 currPosition = mix(startPosition, endPosition, isEnd);\n vec3 currPosition64Low = mix(startPos64Low, endPos64Low, isEnd);\n\n vec3 nextPosition = mix(endPosition, rightposition, isEnd);\n vec3 nextPosition64Low = mix(endPos64Low, rightPos64Low, isEnd);\n\n geometry.worldPosition = currPosition;\n vec2 widthPixels = vec2(clamp(\n project_size_to_pixel(instanceStrokeWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels) / 2.0);\n vec3 width;\n\n if (billboard) {\n // Extrude in clipspace\n vec4 prevPositionScreen = project_position_to_clipspace(prevPosition, prevPosition64Low, ZERO_OFFSET);\n vec4 currPositionScreen = project_position_to_clipspace(currPosition, currPosition64Low, ZERO_OFFSET, geometry.position);\n vec4 nextPositionScreen = project_position_to_clipspace(nextPosition, nextPosition64Low, ZERO_OFFSET);\n\n clipLine(prevPositionScreen, currPositionScreen);\n clipLine(nextPositionScreen, currPositionScreen);\n clipLine(currPositionScreen, mix(nextPositionScreen, prevPositionScreen, isEnd));\n\n width = vec3(widthPixels, 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec3 offset = getLineJoinOffset(\n prevPositionScreen.xyz / prevPositionScreen.w,\n currPositionScreen.xyz / currPositionScreen.w,\n nextPositionScreen.xyz / nextPositionScreen.w,\n project_pixel_size_to_clipspace(width.xy)\n );\n\n DECKGL_FILTER_GL_POSITION(currPositionScreen, geometry);\n gl_Position = vec4(currPositionScreen.xyz + offset * currPositionScreen.w, currPositionScreen.w);\n } else {\n // Extrude in commonspace\n prevPosition = project_position(prevPosition, prevPosition64Low);\n currPosition = project_position(currPosition, currPosition64Low);\n nextPosition = project_position(nextPosition, nextPosition64Low);\n\n width = vec3(project_pixel_size(widthPixels), 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec3 offset = getLineJoinOffset(prevPosition, currPosition, nextPosition, width.xy);\n geometry.position = vec4(currPosition + offset, 1.0);\n gl_Position = project_common_position_to_clipspace(geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n }\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#version 300 es\n#define SHADER_NAME path-layer-fragment-shader\n\nprecision highp float;\n\nuniform float miterLimit;\n\nin vec4 vColor;\nin vec2 vCornerOffset;\nin float vMiterLength;\n/*\n * vPathPosition represents the relative coordinates of the current fragment on the path segment.\n * vPathPosition.x - position along the width of the path, between [-1, 1]. 0 is the center line.\n * vPathPosition.y - position along the length of the path, between [0, L / width].\n */\nin vec2 vPathPosition;\nin float vPathLength;\nin float vJointType;\n\nout vec4 fragColor;\n\nvoid main(void) {\n geometry.uv = vPathPosition;\n\n if (vPathPosition.y < 0.0 || vPathPosition.y > vPathLength) {\n // if joint is rounded, test distance from the corner\n if (vJointType > 0.5 && length(vCornerOffset) > 1.0) {\n discard;\n }\n // trim miter\n if (vJointType < 0.5 && vMiterLength > miterLimit + 1.0) {\n discard;\n }\n }\n fragColor = vColor;\n\n DECKGL_FILTER_COLOR(fragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]}}draw(args){args.uniforms.ZIncreasingDownwards=this.props.ZIncreasingDownwards;let restoreDepthTest=!1;"boolean"!=typeof this.props.depthTest||this.props.depthTest||(restoreDepthTest=!0,this.context.gl.disable(esm.default.DEPTH_TEST)),super.draw({uniforms:args.uniforms}),restoreDepthTest&&this.context.gl.enable(esm.default.DEPTH_TEST)}}PrivatePolylinesLayer.layerName="PrivatePolylinesLayer";class PolylinesLayer extends composite_layer.Z{renderLayers(){return[new PrivatePolylinesLayer(this.getSubLayerProps({id:"polylines-layer",widthUnits:this.props.widthUnits,pickable:this.props.pickable,billboard:!0,jointRounded:!0,capRounded:!0,data:this.state.dataAttributes,_pathType:this.state.dataAttributes.pathType,getColor:()=>this.props.color,getWidth:()=>this.props.linesWidth,updateTriggers:{getColor:[this.props.color],getWidth:[this.props.linesWidth]},depthTest:this.props.depthTest,ZIncreasingDownwards:this.props.ZIncreasingDownwards}))]}initializeState(){const dataAttributes=this.rebuildDataAttributes(!0);this.setState({dataAttributes:dataAttributes})}updateState({props:props,oldProps:oldProps}){if(!((0,lodash.isEqual)(props.polylinePoints,oldProps.polylinePoints)&&(0,lodash.isEqual)(props.startIndices,oldProps.startIndices)&&(0,lodash.isEqual)(props.polylinesClosed,oldProps.polylinesClosed)&&(0,lodash.isEqual)(props.ZIncreasingDownwards,oldProps.ZIncreasingDownwards))){const dataAttributes=this.rebuildDataAttributes(!1);this.setState({dataAttributes:dataAttributes})}}rebuildDataAttributes(reportBoundingBox){const dataArrays=this.loadData();if("function"==typeof this.props.reportBoundingBox&&reportBoundingBox){const boundingBox=(0,layerTools.f3)(dataArrays.positions);this.props.reportBoundingBox({layerBoundingBox:boundingBox})}return{length:dataArrays.linesCount,startIndices:dataArrays.startIndices,attributes:{getPath:{value:dataArrays.positions,size:3}},pathType:dataArrays.pathType}}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[];if(void 0!==info.coordinate?.[2]){const depth=this.props.ZIncreasingDownwards?-info.coordinate[2]:info.coordinate[2];layer_properties.push((0,layerTools.ws)("Depth",depth))}return{...info,properties:layer_properties}}loadData(){if(this.props.polylinePoints instanceof Float32Array&&this.props.startIndices instanceof Uint32Array&&!this.props.polylinesClosed)return{linesCount:this.props.startIndices.length-1,positions:this.props.polylinePoints,startIndices:this.props.startIndices,pathType:"open"};const data=this.closePolylines();return{linesCount:data.startIndices.length,positions:new Float32Array(data.polylinePoints),startIndices:new Uint32Array(data.startIndices),pathType:data.pathType}}toArray(data){return Array.isArray(data)?data:Array.from(data)}closePolylines(){const points=this.toArray(this.props.polylinePoints),startIndices=this.toArray(this.props.startIndices);this.normalizeStartIndices(startIndices,points.length/3);const isClosedFunc=this.createIsClosedFunc();if(!isClosedFunc.func)return{polylinePoints:points,startIndices:startIndices,pathType:isClosedFunc.pathType};let startIndexShift=0;const closedPoints=[],closedStartIndices=[],linesCount=this.props.startIndices.length-1;for(let i=0;i!0,pathType:"loop"}:Array.isArray(this.props.polylinesClosed)?{func:lineIndex=>this.props.polylinesClosed[lineIndex],pathType:null}:{func:null,pathType:"open"}}}PolylinesLayer.layerName="PolylinesLayer",PolylinesLayer.defaultProps={"@@type":"PolylinesLayer",name:"PolylinesLayer",id:"polylines-layer",widthUnits:"pixels",linesWidth:5,color:[0,0,200,255],pickable:!0,visible:!0,depthTest:!0,ZIncreasingDownwards:!0}},"./packages/subsurface-viewer/src/layers/shader_modules/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{xv:function(){return decoder},jA:function(){return localPhongLighting},hC:function(){return utilities}});const DEFAULT_DECODER={rgbScaler:[1,1,1],floatScaler:1,offset:0,step:0};const decoder={name:"decoder",fs:"struct Decoder\n{\n vec3 rgbScaler; // r, g and b multipliers\n float floatScaler; // value multiplier\n float offset; // translation of the r, g, b sum\n float step; // discretize the value in a number of steps\n};\n\nuniform Decoder decoder;\n\nuniform float valueRangeMin;\nuniform float valueRangeMax;\nuniform float colorMapRangeMin;\nuniform float colorMapRangeMax;\n\n// Decode the RGB value using the decoder parameter.\nfloat decode_rgb2float(vec3 rgb, Decoder dec) {\n rgb *= dec.rgbScaler * vec3(16711680.0, 65280.0, 255.0); //255*256*256, 255*256, 255\n float value = (rgb.r + rgb.g + rgb.b + dec.offset) * dec.floatScaler;\n\n // Value must be in [0, 1] and step in (0, 1]\n value = floor(value / dec.step + 0.5) * dec.step;\n\n // If colorMapRangeMin/Max specified, color map will span this interval.\n float x = value * (valueRangeMax - valueRangeMin) + valueRangeMin;\n x = (x - colorMapRangeMin) / (colorMapRangeMax - colorMapRangeMin);\n x = max(0.0, x);\n x = min(1.0, x);\n\n return x;\n}\n\n// Decode the RGB value using the decoder uniform.\nfloat decode_rgb2float(vec3 rgb) {\n return decode_rgb2float(rgb, decoder);\n}\n",getUniforms:function getUniforms(opts){if(opts&&opts.valueDecoder){const{rgbScaler:rgbScaler=DEFAULT_DECODER.rgbScaler,floatScaler:floatScaler=DEFAULT_DECODER.floatScaler,offset:offset=DEFAULT_DECODER.offset,step:step=DEFAULT_DECODER.step}=opts.valueDecoder;return{"decoder.rgbScaler":rgbScaler,"decoder.floatScaler":floatScaler,"decoder.offset":offset,"decoder.step":Math.max(step,1e-7)}}return{}}};const localPhongLighting={name:"localPhongLighting",fs:"\n// Note: modification of luma.gl's functions to get two sided phong lighting.\n// Ref original file modules/shadertools/src/modules/phong-lighting/phong-lighting.glsl.ts in luma source.\n\nvec3 getPhongLightColor(vec3 surfaceColor, vec3 light_direction, vec3 view_direction, vec3 normal_worldspace, vec3 color) {\n \n vec3 halfway_direction = normalize(light_direction + view_direction); \n float lambertian = abs(dot(light_direction, normal_worldspace));\n\n float specular_angle = abs(dot(normal_worldspace, halfway_direction));\n\n float specular = pow(specular_angle, lighting_uShininess); \n return (lambertian * lighting_uDiffuse * surfaceColor + specular * lighting_uSpecularColor) * color; \n}\n\nvec3 getPhongLightColor(vec3 surfaceColor,vec3 cameraPosition, vec3 position_worldspace, vec3 normal_worldspace) {\n\n vec3 lightColor = surfaceColor;\n\n if (lighting_uEnabled) {\n vec3 view_direction = normalize(cameraPosition - position_worldspace);\n lightColor = lighting_uAmbient * surfaceColor * lighting_uAmbientLight.color;\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uPointLightCount) {\n break;\n }\n PointLight pointLight = lighting_uPointLight[i];\n vec3 light_position_worldspace = pointLight.position;\n vec3 light_direction = normalize(light_position_worldspace - position_worldspace);\n lightColor += getPhongLightColor(surfaceColor, light_direction, view_direction, normal_worldspace, pointLight.color);\n }\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uDirectionalLightCount) {\n break;\n }\n DirectionalLight directionalLight = lighting_uDirectionalLight[i];\n lightColor += getPhongLightColor(surfaceColor, -directionalLight.direction, view_direction, normal_worldspace, directionalLight.color);\n }\n }\n return lightColor;\n}\n",dependencies:[__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js").s]},utilities={name:"utilities",fs:"vec4 encodeVertexIndexToRGB (int vertexIndex) {\n\n float r = 0.0;\n float g = 0.0;\n float b = 0.0;\n \n if (vertexIndex >= (256 * 256) - 1) {\n r = floor(float(vertexIndex) / (256.0 * 256.0));\n vertexIndex -= int(r * (256.0 * 256.0));\n }\n \n if (vertexIndex >= 256 - 1) {\n g = floor(float(vertexIndex) / 256.0);\n vertexIndex -= int(g * 256.0);\n }\n \n b = float(vertexIndex);\n \n return vec4(r / 255.0, g / 255.0, b / 255.0, 1.0); \n }\n "}},"./packages/subsurface-viewer/src/layers/utils/layerTools.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{A3:function(){return isDrawingEnabled},BZ:function(){return getModelMatrixScale},RT:function(){return getModelMatrix},eG:function(){return getLayersByType},f3:function(){return defineBoundingBox},hc:function(){return getLayersById},kF:function(){return getWellLayerByTypeAndSelectedWells},n$:function(){return getImageData},ws:function(){return createPropertyData}});var _emerson_eps_color_tables___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/index.js"),_emerson_eps_color_tables_dist_component_Utils_legendCommonFunction__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/Utils/legendCommonFunction.js"),math_gl__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js");function createPropertyData(name,value,color){return{name:name,value:value,color:color}}function getModelMatrix(deg,x,y){const rad=.017453*deg,IDENTITY=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],m1=new math_gl__WEBPACK_IMPORTED_MODULE_2__.Z(IDENTITY).translate([-x,-y,0,1]),mRot=new math_gl__WEBPACK_IMPORTED_MODULE_2__.Z(IDENTITY).rotateZ(rad),m2=new math_gl__WEBPACK_IMPORTED_MODULE_2__.Z(IDENTITY).translate([x,y,0,1]);mRot.multiplyRight(m1);return m2.multiplyRight(mRot)}function getModelMatrixScale(scaleZ){return new math_gl__WEBPACK_IMPORTED_MODULE_2__.Z([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]).scale([1,1,scaleZ])}function getLayersByType(layers,type){return layers?layers.filter((l=>l?.constructor.name===type)):[]}function getWellLayerByTypeAndSelectedWells(layers,type,selectedWell){return layers&&selectedWell?layers.filter((l=>l?.constructor.name===type&&l.props.data?.features?.find((item=>item.properties.name===selectedWell)))):[]}function getLayersById(layers,id){return layers?layers.filter((l=>l.id===id)):[]}function isDrawingEnabled(layer_manager){const drawing_layer=layer_manager.getLayers({layerIds:["drawing-layer"]})?.[0];return drawing_layer&&drawing_layer.props.visible&&"view"!=drawing_layer.props.mode}function defineBoundingBox(dataArray,zIncreasingDownwards=!1){const length=dataArray.length;let minX=Number.POSITIVE_INFINITY,minY=Number.POSITIVE_INFINITY,minZ=Number.POSITIVE_INFINITY,maxX=Number.NEGATIVE_INFINITY,maxY=Number.NEGATIVE_INFINITY,maxZ=Number.NEGATIVE_INFINITY;for(let i=0;imaxX?x:maxX,maxY=y>maxY?y:maxY,maxZ=z>maxZ?z:maxZ}return zIncreasingDownwards&&([maxZ,minZ]=[-minZ,-maxZ]),[minX,minY,minZ,maxX,maxY,maxZ]}function getImageData(colorMapName,colorTables,colorMapFunction){const isColorMapFunctionDefined=void 0!==colorMapFunction,isColorMapNameDefined=!!colorMapName;let colorMap=(0,_emerson_eps_color_tables_dist_component_Utils_legendCommonFunction__WEBPACK_IMPORTED_MODULE_1__.z$)();isColorMapFunctionDefined?colorMap="function"==typeof colorMapFunction?colorMapFunction:()=>colorMapFunction:isColorMapNameDefined&&(colorMap=value=>(0,_emerson_eps_color_tables___WEBPACK_IMPORTED_MODULE_0__.CA)(value,colorMapName,colorTables));const data=new Uint8Array(768);for(let i=0;i<256;i++){const color=colorMap?colorMap(i/255):[0,0,0];color&&(data[3*i+0]=color[0],data[3*i+1]=color[1],data[3*i+2]=color[2])}return data||[0,0,0]}},"./packages/subsurface-viewer/src/layers/wells/utils/abscissaTransform.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return abscissaTransform}});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lodash/lodash.js"),mathjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/mathjs/lib/esm/entry/pureFunctionsAny.generated.js");function computeUnfoldedPath(worldCoordinates){const z=worldCoordinates.map((v=>v[2])),delta=worldCoordinates.map(((v,i,coordinates)=>{const prev=coordinates[i-1]||v;return(0,mathjs__WEBPACK_IMPORTED_MODULE_1__.TE$)([prev[0],prev[1]],[v[0],v[1]])})),a=[];delta.forEach((d=>{const prev=a.at(-1)||0;a.push(d+prev)}));return(0,lodash__WEBPACK_IMPORTED_MODULE_0__.zip)(a,z,[...a].fill(0))}function abscissaTransform(featureCollection){const featureCollectionCopy=(0,lodash__WEBPACK_IMPORTED_MODULE_0__.cloneDeep)(featureCollection);for(const feature of featureCollectionCopy.features){const geometryCollection=feature.geometry;for(const geometry of geometryCollection.geometries)if("LineString"===geometry.type){const transformedCoordinates=computeUnfoldedPath(geometry.coordinates);geometry.coordinates=transformedCoordinates}else if("Point"===geometry.type){const coordinates=geometry.coordinates;geometry.coordinates=[0,coordinates[2],0]}}return featureCollectionCopy}},"./packages/subsurface-viewer/src/layers/wells/wellsLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{ZP:function(){return WellsLayer},ap:function(){return getSize}});var composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),orbit_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orbit-viewport.js"),layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts"),path_style_extension=__webpack_require__("./node_modules/@deck.gl/extensions/dist/esm/path-style/path-style-extension.js"),geojson_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/geojson-layer/geojson-layer.js"),path_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js"),text_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/text-layer.js"),dist=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/index.js"),pureFunctionsAny_generated=__webpack_require__("./node_modules/mathjs/lib/esm/entry/pureFunctionsAny.generated.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),src=__webpack_require__("./node_modules/d3/src/index.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),abscissaTransform=__webpack_require__("./packages/subsurface-viewer/src/layers/wells/utils/abscissaTransform.ts"),es=__webpack_require__("./node_modules/@turf/simplify/dist/es/index.js");function removeConsecutiveDuplicates(coords,mds){const keep=coords.map(((e,index,arr)=>!(indexkeep[index])),mds=mds.filter(((_e,index)=>keep[index]))]}function CatmullRom1D(P0,P1,P2,P3,t){const tt=t*t,ttt=t*t*t,dist_p0_p1=Math.sqrt((P1-P0)*(P1-P0)+(P1-P0)*(P1-P0)+(P1-P0)*(P1-P0)),dist_p1_p2=Math.sqrt((P1-P2)*(P1-P2)+(P1-P2)*(P1-P2)+(P1-P2)*(P1-P2)),dist_p2_p3=Math.sqrt((P3-P2)*(P3-P2)+(P3-P2)*(P3-P2)+(P3-P2)*(P3-P2)),t01=Math.pow(dist_p0_p1,.5),t12=Math.pow(dist_p1_p2,.5),t23=Math.pow(dist_p2_p3,.5),m1=P2-P1+t12*((P1-P0)/t01-(P2-P0)/(t01+t12)),m2=P2-P1+t12*((P3-P2)/t23-(P3-P1)/(t12+t23));return(2*(P1-P2)+m1+m2)*ttt+(-3*(P1-P2)-m1-m1-m2)*tt+m1*t+P1}function CatmullRom(P0,P1,P2,P3,t){const tt=t*t,ttt=t*t*t,dist_p0_p1=Math.sqrt((P1[0]-P0[0])*(P1[0]-P0[0])+(P1[1]-P0[1])*(P1[1]-P0[1])+(P1[2]-P0[2])*(P1[2]-P0[2])),dist_p1_p2=Math.sqrt((P1[0]-P2[0])*(P1[0]-P2[0])+(P1[1]-P2[1])*(P1[1]-P2[1])+(P1[2]-P2[2])*(P1[2]-P2[2])),dist_p2_p3=Math.sqrt((P3[0]-P2[0])*(P3[0]-P2[0])+(P3[1]-P2[1])*(P3[1]-P2[1])+(P3[2]-P2[2])*(P3[2]-P2[2])),t01=Math.pow(dist_p0_p1,.5),t12=Math.pow(dist_p1_p2,.5),t23=Math.pow(dist_p2_p3,.5),m1_x=P2[0]-P1[0]+t12*((P1[0]-P0[0])/t01-(P2[0]-P0[0])/(t01+t12)),m1_y=P2[1]-P1[1]+t12*((P1[1]-P0[1])/t01-(P2[1]-P0[1])/(t01+t12)),m1_z=P2[2]-P1[2]+t12*((P1[2]-P0[2])/t01-(P2[2]-P0[2])/(t01+t12)),m2_x=P2[0]-P1[0]+t12*((P3[0]-P2[0])/t23-(P3[0]-P1[0])/(t12+t23)),m2_y=P2[1]-P1[1]+t12*((P3[1]-P2[1])/t23-(P3[1]-P1[1])/(t12+t23)),m2_z=P2[2]-P1[2]+t12*((P3[2]-P2[2])/t23-(P3[2]-P1[2])/(t12+t23)),a_x=2*(P1[0]-P2[0])+m1_x+m2_x,a_y=2*(P1[1]-P2[1])+m1_y+m2_y,a_z=2*(P1[2]-P2[2])+m1_z+m2_z,b_x=-3*(P1[0]-P2[0])-m1_x-m1_x-m2_x,b_y=-3*(P1[1]-P2[1])-m1_y-m1_y-m2_y,b_z=-3*(P1[2]-P2[2])-m1_z-m1_z-m2_z,c_y=m1_y,c_z=m1_z;return[a_x*ttt+b_x*tt+m1_x*t+P1[0],a_y*ttt+b_y*tt+c_y*t+P1[1],a_z*ttt+b_z*tt+c_z*t+P1[2]]}function multiply(pair,factor){return[pair[0]*factor,pair[1]*factor]}const LINE="line",POINT="point",DEFAULT_POINT_SIZE=8,DEFAULT_LINE_WIDTH=5,DEFAULT_DASH=[5,5];function getDashFactor(accessor,width_accessor,offset=0){return(object,objectInfo)=>{let width=DEFAULT_LINE_WIDTH;"function"==typeof width_accessor?width=width_accessor(object):width_accessor&&(width=width_accessor);const factor=width/(width+offset);let dash=[0,0];return"function"==typeof accessor?dash=accessor(object,objectInfo):accessor?dash=accessor:accessor&&(dash=DEFAULT_DASH),2==dash.length?multiply(dash,factor):multiply(DEFAULT_DASH,factor)}}function getColor(accessor){return accessor||((object,objectInfo)=>{if("function"==typeof accessor){const color=accessor(object,objectInfo);if(color)return color}return object.properties?.color})}function getSize(type,accessor,offset=0){return"function"==typeof accessor?object=>accessor(object)+offset:0==accessor?0:accessor>0?accessor+offset:type==LINE?DEFAULT_LINE_WIDTH+offset:type==POINT?DEFAULT_POINT_SIZE+offset:0}class WellsLayer extends composite_layer.Z{initializeState(){let data=this.props.data;const refine=this.props.refine;if(!data||(0,lodash.isEmpty)(data))return;this.props.ZIncreasingDownwards&&(data=function invertPath(data_in){const data=(0,lodash.cloneDeep)(data_in),no_wells=data.features.length;for(let well_no=0;well_no[e[0],e[1],-e[2]]));data.features[well_no].geometry.geometries[1].coordinates=coords_inverted}return data}(data)),this.props.section&&(data=(0,abscissaTransform.q)(data)),function checkWells(data){const no_wells=data.features.length;for(let well_no=0;well_noe[0]===lineString.coordinates[0][0]&&e[1]===lineString.coordinates[0][1]))){const n=lineString.coordinates.length,coordsSimplified=[lineString.coordinates[0],lineString.coordinates[n-1]];lineString.coordinates=coordsSimplified}else{const options={tolerance:.01,highQuality:!1,mutate:!1},coordsSimplified=(0,es.Z)(lineString,options);lineString.coordinates=coordsSimplified.coordinates}}return data}(data);data=("number"==typeof refine?refine>1:refine)?function splineRefine(data_in,stepCount=5){if(stepCount<1)return data_in;const data=(0,lodash.cloneDeep)(data_in),no_wells=data.features.length,step=1/stepCount,steps=Array(stepCount-1).fill(0).map(((_x,index)=>(index+1)*step));for(let well_no=0;well_no3?steps:[],P_first=[coords[0][0]-coords[1][0]+coords[0][0],coords[0][1]-coords[1][1]+coords[0][1],coords[0][2]-coords[1][2]+coords[0][2]],md_first=mds[0][0]-mds[0][1]+mds[0][0],P_n=[coords[n-1][0]-coords[n-2][0]+coords[n-1][0],coords[n-1][1]-coords[n-2][1]+coords[n-1][1],coords[n-1][2]-coords[n-2][2]+coords[n-1][2]],md_n=mds[0][n-1]-mds[0][n-2]+mds[0][n-1],newCoordinates=[],newMds=[];newMds.push([]);for(let i=0;i1)for(let t_i=0;t_ilog.header.well==wellName)):logs[0],logInfo=log?getLogInfo(log,log.header.name,logName):void 0,title="Wells / "+logName;if(log&&"discrete"==logInfo?.description){return{title:title,colorName:logColor,discrete:!0,metadata:log.metadata_discrete[logName].objects}}{const minArray=[],maxArray=[];return logs.forEach((function(log){const logValues=getLogValues(log,log.header.name,logName);minArray.push(Math.min(...logValues)),maxArray.push(Math.max(...logValues))})),{title:title,colorName:logColor,discrete:!1,valueRange:[Math.min(...minArray),Math.max(...maxArray)]}}}(value,"",this.props.logName,this.props.logColor)}setLegend(value){this.setState({legend:this.getLegendData(value)})}getLogLayer(){const sub_layers=this.internalState?.subLayers,log_layer=(0,layerTools.hc)(sub_layers,"wells-layer-log_curve");return log_layer?.[0]}getSelectionLayer(){const sub_layers=this.internalState?.subLayers,log_layer=(0,layerTools.hc)(sub_layers,"wells-layer-selection");return log_layer?.[0]}getLogCurveData(){const log_layer=this.getLogLayer();return log_layer?.props.data}setupLegend(){const data=this.getLogCurveData();data&&this.setLegend(data)}renderLayers(){if(!this.props.data.features)return[];const data=this.state.data,coarseData=this.state.coarseData,is3d=this.context.viewport.constructor===orbit_viewport.Z,isDashed=!!this.props.lineStyle?.dash,extensions=[new path_style_extension.Z({dash:isDashed,highPrecisionDash:isDashed})],parameters={[esm.default.DEPTH_TEST]:this.props.depthTest,[esm.default.POLYGON_OFFSET_FILL]:!0},fastDrawing=this.props.simplifiedRendering,defaultLayerProps={data:data,pickable:!1,stroked:!1,positionFormat:"XYZ",pointRadiusUnits:"pixels",lineWidthUnits:"pixels",pointRadiusScale:this.props.pointRadiusScale,lineWidthScale:this.props.lineWidthScale,getLineWidth:getSize(LINE,this.props.lineStyle?.width,-1),getPointRadius:getSize(POINT,this.props.wellHeadStyle?.size,-1),lineBillboard:!0,pointBillboard:!0,parameters:parameters,visible:fastDrawing},colorsLayerProps=this.getSubLayerProps({...defaultLayerProps,id:"colors",pickable:!0,extensions:extensions,getDashArray:getDashFactor(this.props.lineStyle?.dash,getSize(LINE,this.props.lineStyle?.width),-1),visible:!fastDrawing,getLineColor:getColor(this.props.lineStyle?.color),getFillColor:getColor(this.props.wellHeadStyle?.color)}),fastLayerProps=this.getSubLayerProps({...defaultLayerProps,id:"simple",data:coarseData,positionFormat:"XYZ",getLineColor:getColor(this.props.lineStyle?.color),getFillColor:getColor(this.props.wellHeadStyle?.color)}),outlineLayerProps=this.getSubLayerProps({...defaultLayerProps,id:"outline",getLineWidth:getSize(LINE,this.props.lineStyle?.width),getPointRadius:getSize(POINT,this.props.wellHeadStyle?.size),extensions:extensions,getDashArray:getDashFactor(this.props.lineStyle?.dash),visible:this.props.outline&&!fastDrawing}),highlightLayerProps=this.getSubLayerProps({...defaultLayerProps,id:"highlight",data:getWellObjectByName(data.features,this.props.selectedWell),getLineWidth:getSize(LINE,this.props.lineStyle?.width,2),getPointRadius:getSize(POINT,this.props.wellHeadStyle?.size,2),getLineColor:getColor(this.props.lineStyle?.color),getFillColor:getColor(this.props.wellHeadStyle?.color),visible:this.props.logCurves&&!fastDrawing}),highlightMultiWellsLayerProps=this.getSubLayerProps({...defaultLayerProps,id:"highlight2",data:getWellObjectsByName(data.features,this.state.selectedMultiWells),getPointRadius:getSize(POINT,this.props.wellHeadStyle?.size,2),getFillColor:[255,140,0],getLineColor:[255,140,0],visible:this.props.logCurves&&!fastDrawing}),fastLayer=new geojson_layer.Z(fastLayerProps),outlineLayer=new geojson_layer.Z(outlineLayerProps),colorsLayer=new geojson_layer.Z(colorsLayerProps),highlightLayer=new geojson_layer.Z(highlightLayerProps),highlightMultiWellsLayer=new geojson_layer.Z(highlightMultiWellsLayerProps),layers=[outlineLayer,new path_layer.Z(this.getSubLayerProps({id:"log_curve",data:this.props.logData,positionFormat:"XYZ",pickable:!0,widthScale:10,widthMinPixels:1,miterLimit:100,getPath:d=>getLogPath(data.features,d,this.props.logrunName,this.props.lineStyle?.color),getColor:d=>function getLogColor(d,logrun_name,log_name,logColor,colorTables,colorMappingFunction,isLog){const log_data=getLogValues(d,logrun_name,log_name),log_info=getLogInfo(d,logrun_name,log_name);if(0==log_data.length||null==log_info)return[];const log_color=[];if("continuous"==log_info.description){const min=Math.min(...log_data),max_delta=Math.max(...log_data)-min;log_data.forEach((value=>{const rgb=colorMappingFunction?colorMappingFunction((value-min)/max_delta):(0,dist.CA)((value-min)/max_delta,logColor,colorTables);(0,dist.CA)(value-min/max_delta,logColor,colorTables,isLog),rgb?Array.isArray(rgb)?log_color.push([rgb[0],rgb[1],rgb[2]]):log_color.push([rgb?.r,rgb?.g,rgb?.b]):log_color.push([0,0,0,0])}))}else{const log_attributes=getDiscreteLogMetadata(d,log_name)?.objects,logLength=Object.keys(log_attributes).length,attributesObject={},categorial=!0;Object.keys(log_attributes).forEach((key=>{const point=log_attributes[key][1];let rgb;if(colorMappingFunction)rgb=colorMappingFunction(point,categorial,0,logLength-1);else{const arrayOfColors=(0,dist.EC)(logColor,colorTables,point);arrayOfColors.length||console.error("Empty or missed '"+logColor+"' color table"),rgb=arrayOfColors}rgb&&(Array.isArray(rgb)?3===rgb.length?attributesObject[key]=[[rgb[0],rgb[1],rgb[2]],point]:attributesObject[key]=[[rgb[1],rgb[2],rgb[3]],point]:attributesObject[key]=[[rgb.r,rgb.g,rgb.b],point])})),log_data.forEach((log_value=>{const dl_attrs=Object.entries(attributesObject).find((([,value])=>value[1]==log_value))?.[1];dl_attrs?log_color.push(dl_attrs[0]):log_color.push([0,0,0,0])}))}return log_color}(d,this.props.logrunName,this.props.logName,this.props.logColor,this.context.userData.colorTables,this.props.colorMappingFunction,this.props.isLog),getWidth:d=>this.props.logRadius||getLogWidth(d,this.props.logrunName,this.props.logName),updateTriggers:{getColor:[this.props.logrunName,this.props.logName,this.props.logColor,this.context.userData.colorTables,this.props.isLog],getWidth:[this.props.logrunName,this.props.logName,this.props.logRadius],getPath:["XYZ"]},onDataLoad:value=>{this.setLegend(value)},parameters:parameters,visible:this.props.logCurves&&!fastDrawing})),colorsLayer,highlightLayer,highlightMultiWellsLayer,new path_layer.Z(this.getSubLayerProps({id:"selection",data:this.props.logData,positionFormat:"XYZ",pickable:!1,widthScale:10,widthMinPixels:1,miterLimit:100,getPath:d=>function getLogPath1(wells_data,d,selectedWell,selection,logrun_name,trajectory_line_color){if(!selection||selectedWell!==d.header.well)return[];const well_object=getWellObjectByName(wells_data,d.header.well);if(!well_object)return[];const well_xyz=getTrajectory(well_object,trajectory_line_color),well_mds=getWellMds(well_object);if(null==well_xyz||null==well_mds||0==well_xyz.length||0==well_mds.length)return[];const log_mds=getLogMd(d,logrun_name);if(!log_mds)return[];const log_xyz=[];let md0=selection[0];if(void 0!==md0){let md1=selection[1];md1==md0&&(md1=void 0);const mdFirst=well_mds[0],mdLast=well_mds[well_mds.length-1];if(void 0!==md1&&md0>md1){const tmp=md0;md0=md1,md1=tmp}const delta=2;if(md0-delta>mdFirst){let xyz=getPositionByMD(well_xyz,well_mds,md0-delta);log_xyz.push(xyz),xyz=getPositionByMD(well_xyz,well_mds,md0),log_xyz.push(xyz)}if(void 0!==md1){const _md1=md1;let index=0;if(well_mds.forEach((md=>{if(md0<=md&&md<=_md1){const xyz=well_xyz[index];log_xyz.push(xyz)}index++})),_md1+deltafunction getLogColor1(wells_data,d,selectedWell,selection,logrun_name){if(!selection||selectedWell!==d.header.well)return[];const well_object=getWellObjectByName(wells_data,d.header.well);if(!well_object)return[];const well_mds=getWellMds(well_object),log_mds=getLogMd(d,logrun_name);if(!log_mds||0===log_mds.length)return[];const log_color=[];let md0=selection[0];if(void 0!==md0){const mdFirst=well_mds[0],mdLast=well_mds[well_mds.length-1];let md1=selection[1];md1==md0&&(md1=void 0);let swap=!1;if(void 0!==md1&&md0>md1){const tmp=md0;md0=md1,md1=tmp,swap=!0}const delta=2;if(md0-delta>mdFirst&&log_color.push(swap?[0,255,0,128]:[255,0,0,128]),void 0!==md1){const _md1=md1;log_color.push([128,128,128,128]),well_mds.forEach((md=>{md0<=md&&md<=_md1&&log_color.push([128,128,128,128])})),_md1+delta1.5*this.props.logRadius||getLogWidth(d,this.props.logrunName,this.props.logName),updateTriggers:{getColor:[this.props.logrunName,this.state.well,this.state.selection],getWidth:[this.props.logrunName,this.props.logName,this.props.logRadius],getPath:["XYZ",this.props.logrunName,this.state.well,this.state.selection]},onDataLoad:value=>{this.setLegend(value)},parameters:parameters,visible:this.props.logCurves&&!fastDrawing})),new text_layer.Z(this.getSubLayerProps({id:"names",data:data.features,getPosition:d=>function getAnnotationPosition(well_data,name_at_top,view_is_3d,color_accessor){if(name_at_top){let top;const well_head=getWellHeadPosition(well_data);if(well_data)top=well_head;else{const trajectory=getTrajectory(well_data,color_accessor);top=trajectory?.at(0)}if(top)return view_is_3d?top:[top[0],top[1],0]}else{let bot;const trajectory=getTrajectory(well_data,color_accessor);if(bot=trajectory?trajectory?.at(-1):getWellHeadPosition(well_data),bot)return view_is_3d?bot:[bot[0],bot[1],0]}return null}(d,this.props.wellNameAtTop,is3d,this.props.lineStyle?.color),getText:d=>d.properties?.name,getColor:this.props.wellNameColor,getAnchor:"start",getAlignmentBaseline:"bottom",getSize:this.props.wellNameSize,updateTriggers:{getPosition:[this.props.wellNameAtTop,is3d,this.props.lineStyle?.color]},parameters:parameters,visible:this.props.wellNameVisible&&!fastDrawing}))];return fastDrawing&&layers.push(fastLayer),layers}getPickingInfo({info:info}){if(!info.object)return{...info,properties:[],logName:""};const coordinate=info.coordinate||[0,0,0];let md_property=function getMdProperty(coord,feature,accessor,featureType){if("points"===featureType)return null;const md=function getMd(coord,feature,accessor){if(!feature.properties?.md?.[0]||!feature.geometry)return null;const measured_depths=feature.properties.md[0],trajectory3D=getTrajectory(feature,accessor);if(null==trajectory3D)return null;let trajectory;if(2==coord.length){trajectory=trajectory3D.map((v=>v.slice(0,2)))}else trajectory=trajectory3D;return interpolateDataOnTrajectory(coord,measured_depths,trajectory)}(coord,feature,accessor);if(null!=md){const prop_name="MD "+feature.properties?.name;return(0,layerTools.ws)(prop_name,md,feature.properties?.color)}return null}(coordinate,info.object,this.props.lineStyle?.color,info.featureType);md_property||(md_property=getLogProperty(coordinate,this.props.data.features,info.object,this.props.logrunName,"MD"));let tvd_property=function getTvdProperty(coord,feature,accessor,featureType){if("points"===featureType)return null;const tvd=function getTvd(coord,feature,accessor){const trajectory3D=getTrajectory(feature,accessor);if(null==trajectory3D||trajectory3D?.length<=1){const wellhead_xyz=getWellHeadPosition(feature);return wellhead_xyz?.[2]??null}let trajectory;if(2==coord.length){const trajectory2D=trajectory3D?.map((v=>v.slice(0,2)));trajectory=trajectory2D}else trajectory=trajectory3D;const tvds=trajectory3D.map((v=>v[2]));return interpolateDataOnTrajectory(coord,tvds,trajectory)}(coord,feature,accessor);if(null!=tvd){const prop_name="TVD "+feature.properties?.name;return(0,layerTools.ws)(prop_name,tvd,feature.properties?.color)}return null}(coordinate,info.object,this.props.lineStyle?.color,info.featureType);tvd_property||(tvd_property=getLogProperty(coordinate,this.props.data.features,info.object,this.props.logrunName,"TVD"));const log_property=getLogProperty(coordinate,this.props.data.features,info.object,this.props.logrunName,this.props.logName),inverted_tvd_property=tvd_property&&{...tvd_property,value:-1*tvd_property?.value},layer_properties=[];return md_property&&layer_properties.push(md_property),inverted_tvd_property&&layer_properties.push(inverted_tvd_property),log_property&&layer_properties.push(log_property),{...info,properties:layer_properties,logName:log_property?.name||""}}}function getColumn(data,col){const column=[];for(let i=0;i=0)return index}return-1}(d,["DEPTH","DEPT","MD","TDEP","MD_RKB"]);return log_id>=0?getColumn(d.data,log_id):[]}function getLogValues(d,logrun_name,log_name){if(!isSelectedLogRun(d,logrun_name))return[];const log_id=getLogIndexByName(d,log_name);return log_id>=0?getColumn(d.data,log_id):[]}function getLogInfo(d,logrun_name,log_name){if(!isSelectedLogRun(d,logrun_name))return;const log_id=getLogIndexByName(d,log_name);return d.curves[log_id]}function getDiscreteLogMetadata(d,log_name){return d?.metadata_discrete[log_name]}function isSelectedLogRun(d,logrun_name){return d.header.name.toLowerCase()===logrun_name.toLowerCase()}function getWellObjectByName(wells_data,name){return wells_data?.find((item=>item.properties?.name?.toLowerCase()===name?.toLowerCase()))}function getWellObjectsByName(wells_data,name){const res=[];for(let i=0;i{item.properties?.name?.toLowerCase()===name[i]?.toLowerCase()&&res.push(item)}));return res}function getWellHeadPosition(well_object){return function getPointGeometry(well_object){return well_object.geometry?.geometries.find((item=>"Point"==item.type))}(well_object)?.coordinates}function getTrajectory(well_object,color_accessor){return function isTrajectoryVisible(well_object,color_accessor){let alpha;const accessor=getColor(color_accessor);return alpha="function"==typeof accessor?accessor(well_object)?.[3]:accessor?.[3],0!==alpha}(well_object,color_accessor)?function getLineStringGeometry(well_object){return well_object.geometry?.geometries.find((item=>"LineString"==item.type))}(well_object)?.coordinates:void 0}function getWellMds(well_object){return well_object.properties?.md[0]}function getPositionByMD(well_xyz,well_mds,md){const[l_idx,h_idx]=function getNeighboringMdIndices(mds,md){const idx=mds.findIndex((x=>x>=md));return 0===idx?[idx,idx+1]:[idx-1,idx]}(well_mds,md),md_low=well_mds[l_idx],md_normalized=(md-md_low)/(well_mds[h_idx]-md_low);return(0,src.qNB)(well_xyz[l_idx],well_xyz[h_idx])(md_normalized)}function getLogPath(wells_data,d,logrun_name,trajectory_line_color){const well_object=getWellObjectByName(wells_data,d.header.well);if(!well_object)return[];const well_xyz=getTrajectory(well_object,trajectory_line_color),well_mds=getWellMds(well_object);if(null==well_xyz||null==well_mds||0==well_xyz.length||0==well_mds.length)return[];const log_xyz=[];return getLogMd(d,logrun_name).forEach((md=>{const xyz=getPositionByMD(well_xyz,well_mds,md);log_xyz.push(xyz)})),log_xyz}function getLogIndexByName(d,log_name){const name=log_name.toLowerCase();return d.curves.findIndex((item=>item.name.toLowerCase()===name))}function getLogWidth(d,logrun_name,log_name){return getLogValues(d,logrun_name,log_name)}function squared_distance(a,b){const dx=a[0]-b[0],dy=a[1]-b[1];return dx*dx+dy*dy}function distToSegmentSquared(v,w,p){const l2=squared_distance(v,w);if(0==l2)return squared_distance(p,v);let t=((p[0]-v[0])*(w[0]-v[0])+(p[1]-v[1])*(w[1]-v[1]))/l2;return t=Math.max(0,Math.min(1,t)),squared_distance(p,[v[0]+t*(w[0]-v[0]),v[1]+t*(w[1]-v[1])])}function interpolateDataOnTrajectory(coord,data,trajectory){if(data.length<=1||data.length!=trajectory.length)return-1;const index0=getSegmentIndex(coord,trajectory),index1=index0+1,data0=data[index0],data1=data[index1],survey0=trajectory[index0],survey1=trajectory[index1],dv=(0,pureFunctionsAny_generated.TE$)(survey0,survey1);if(0===dv)return-1;const v0=(0,pureFunctionsAny_generated.$XF)(coord,survey0),v1=(0,pureFunctionsAny_generated.$XF)(survey1,survey0),scalar_projection=(0,pureFunctionsAny_generated.AKD)(v0,v1)/(dv*dv);return data0*(1-scalar_projection)+data1*scalar_projection}function getSegmentIndex(coord,path){let min_d=Number.MAX_VALUE,segment_index=0;for(let i=0;imin_d||(segment_index=i,min_d=d)}return segment_index}function getLogProperty(coord,wells_data,log_data,logrun_name,log_name){if(!log_data.data)return null;const segment_index=function getLogSegmentIndex(coord,wells_data,log_data,logrun_name){return getSegmentIndex(coord,getLogPath(wells_data,log_data,logrun_name))}(coord,wells_data,log_data,logrun_name);let dl_attrs,log_value=getLogValues(log_data,logrun_name,log_name)[segment_index];const dl_metadata=getDiscreteLogMetadata(log_data,log_name)?.objects;dl_metadata&&(dl_attrs=Object.entries(dl_metadata).find((([,value])=>value[1]==log_value)));const log=getLogInfo(log_data,logrun_name,log_name)?.name,prop_name=log+" "+log_data.header.well;if(log_value=dl_attrs?dl_attrs[0]+" ("+log_value+")":log_value,log_value){const well_object=getWellObjectByName(wells_data,log_data.header.well);return(0,layerTools.ws)(prop_name,log_value,well_object?.properties?.color)}return null}WellsLayer.layerName="WellsLayer",WellsLayer.defaultProps={"@@type":"WellsLayer",name:"Wells",id:"wells-layer",autoHighlight:!0,opacity:1,lineWidthScale:1,pointRadiusScale:1,lineStyle:{dash:!1},outline:!0,logRadius:10,logCurves:!0,refine:!1,visible:!0,wellNameVisible:!1,wellNameAtTop:!1,wellNameSize:14,wellNameColor:[0,0,0,255],selectedWell:"@@#editedData.selectedWells",depthTest:!0,ZIncreasingDownwards:!0,simplifiedRendering:!1,section:!1,onDataLoad:(data,context)=>function onDataLoad(data,context){const bbox=function GetBoundingBox(data){let xMin=9999999999,yMin=9999999999,zMin=9999999999,xMax=-9999999999,yMax=-9999999999,zMax=-9999999999;const no_wells=data.features.length;for(let well_no=0;well_noxMax?xyz[0]:xMax,yMax=xyz[1]>yMax?xyz[1]:yMax,zMax=xyz[2]>zMax?xyz[2]:zMax}}return[xMin,yMin,zMin,xMax,yMax,zMax]}(data);void 0!==context.layer.props.reportBoundingBox&&context.layer.props.reportBoundingBox({layerBoundingBox:bbox})}(data,context)}},"./packages/subsurface-viewer/src/utils/camera.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{NF:function(){return scaleZoom},aB:function(){return getZoom},b2:function(){return useLateralZoom}});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lodash/lodash.js"),lodash__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js");const proportionalZoom=(zoom,scaleFactor)=>zoom*Math.sqrt(Math.max(scaleFactor||0,0)||1),scaleZoom=(verticalFactor,zoom)=>[zoom,proportionalZoom(zoom,verticalFactor)],getZoom=(viewport,fb_zoom)=>{const zoom=viewport.zoom??fb_zoom;return viewport.show3D?zoom:viewport.verticalScale?scaleZoom(viewport.verticalScale,zoom):zoom},useLateralZoom=viewState=>react__WEBPACK_IMPORTED_MODULE_1__.useMemo((()=>{const zoom=lodash__WEBPACK_IMPORTED_MODULE_0___default().find(viewState)?.zoom;return lodash__WEBPACK_IMPORTED_MODULE_0___default().isArray(zoom)?zoom[0]:zoom??-5}),[viewState])},"./packages/subsurface-viewer/src/utils/configTools.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{r:function(){return findConfig}});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lodash/lodash.js");function findConfig(config,path,fallbackPath=void 0){const mainConfig=findConfigImpl(config,path),fallbackConfig=findConfigImpl(config,fallbackPath);return fallbackConfig?(0,lodash__WEBPACK_IMPORTED_MODULE_0__.merge)({},{data:fallbackConfig},{data:mainConfig}).data:mainConfig}function findConfigImpl(config,path){if(!config||!path)return;if("string"==typeof path&&(path=path.split("/")),0===path.length)return config;return findConfigImpl(config[path.shift()],path)}},"./packages/subsurface-viewer/src/viewports/intersectionViewport.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return IntersectionViewport}});var _deck_gl_core_typed__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js");const viewMatrix=(new _math_gl_core__WEBPACK_IMPORTED_MODULE_0__.Z).lookAt({eye:[0,-1,0],up:[0,0,1],center:[0,0,0]});function getProjectionMatrix({width:width,height:height,near:near,far:far,padding:padding}){let left=-width/2,right=width/2,bottom=-height/2,top=height/2;if(padding){const{left:l=0,right:r=0,top:t=0,bottom:b=0}=padding,offsetX=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_1__.uZ)((l+width-r)/2,0,width)-width/2,offsetY=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_1__.uZ)((t+height-b)/2,0,height)-height/2;left-=offsetX,right-=offsetX,bottom+=offsetY,top+=offsetY}return(new _math_gl_core__WEBPACK_IMPORTED_MODULE_0__.Z).ortho({left:left,right:right,bottom:bottom,top:top,near:near,far:far})}class IntersectionViewport extends _deck_gl_core_typed__WEBPACK_IMPORTED_MODULE_2__.Z{constructor(props){const{width:width,height:height,near:near=.1,far:far=1e3,zoom:zoom=0,target:target=[0,0,0],padding:padding=null,flipY:flipY=!0}=props,zoomX=Array.isArray(zoom)?zoom[0]:zoom,zoomY=Array.isArray(zoom)?zoom[1]:zoom,zoom_=Math.min(zoomX,zoomY),scale=Math.pow(2,zoom_);let distanceScales;if(zoomX!==zoomY){const scaleX=Math.pow(2,zoomX),scaleY=Math.pow(2,zoomY);distanceScales={unitsPerMeter:[scaleX/scale,1,scaleY/scale],metersPerUnit:[scale/scaleX,1,scale/scaleY]}}super({...props,longitude:void 0,position:target,viewMatrix:viewMatrix.clone().scale([scale,scale,scale*(flipY?-1:1)]),projectionMatrix:getProjectionMatrix({width:width||1,height:height||1,padding:padding,near:near,far:far}),zoom:zoom_,distanceScales:distanceScales})}}},"./packages/wsc-common/dist/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{cs:function(){return validateColorTables},TL:function(){return validateLayers},Fv:function(){return validateSchema}});var dist_ajv=__webpack_require__("./node_modules/ajv/dist/ajv.js"),ajv_default=__webpack_require__.n(dist_ajv),Wells_namespaceObject=JSON.parse('{"$comment":"Inspired from https://github.com/geojson/schema","$schema":"http://json-schema.org/draft-07/schema#","$id":"inputSchema/Wells.json","title":"GeoJSON FeatureCollection","type":"object","required":["type","features"],"properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"type":"array","items":{"title":"GeoJSON Feature","type":"object","required":["type","properties","geometry"],"properties":{"type":{"type":"string","enum":["Feature"]},"id":{"oneOf":[{"type":"number"},{"type":"string"}]},"properties":{"oneOf":[{"type":"null"},{"type":"object"}]},"geometry":{"title":"GeoJSON GeometryCollection","type":"object","required":["type","geometries"],"properties":{"type":{"type":"string","enum":["GeometryCollection"]},"geometries":{"type":"array","items":{"oneOf":[{"title":"GeoJSON Point","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"number"}}}},{"title":"GeoJSON LineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}}}]}}}}}}}}}'),WellLog_namespaceObject=JSON.parse('{"$comment":"See https://jsonwelllogformat.org","$id":"inputSchema/WellLog.json","type":"object","properties":{"header":{"$ref":"#/definitions/header"},"curves":{"type":"array","items":{"$ref":"#/definitions/curve"}},"data":{"type":"array","items":{"$ref":"#/definitions/data_row"}},"metadata_discrete":{"type":"object"}},"required":["curves","data","header"],"definitions":{"header":{"type":"object","properties":{"name":{"type":"string","description":"Log name"},"description":{"type":"string","description":"Log description"},"externalIds":{"type":"object","description":"Record; IDs within external storage, key being the storage name, and value being the ID."},"well":{"type":"string","description":"Well name"},"wellbore":{"type":"string","description":"wellbore name"},"field":{"type":"string","description":"Field name"},"country":{"type":"string","description":"Country of operation"},"date":{"type":"string","description":"datetime; Logging date"},"operator":{"type":"string","description":"Operator company name"},"serviceCompany":{"type":"string","description":"Service company name"},"source":{"type":"string","description":"Source system or process of this log"},"runNumber":{"type":"string","description":"Run number"},"elevation":{"type":"number","description":"float; Vertical distance between measured depth 0.0 and mean sea level in SI unit (meters)"},"startIndex":{"type":"number","description":"Value of the first index. Unit according to index curve"},"endIndex":{"type":"number","description":"Value of the last index. Unit according to index curve"},"step":{"type":["number","null"],"description":"Distance between indices if regularly sampled. Unit according to index curve. If log is time based, milliseconds assumed. null if irregular step"},"dataUri":{"type":"string","description":"Point to data source in case this is kept separate. Can be absolute or relative according to the URI specification"}}},"curve":{"type":"object","properties":{"name":{"type":"string","description":"Curve name or mnemonic. Mandatory. Non-null"},"description":{"type":["string","null"],"description":"Curve description. Optional"},"quantity":{"type":["string","null"],"description":"Curve quantity such as length, pressure, force etc. Optional"},"unit":{"type":["string","null"],"description":"Unit of measurement such as m, ft, bar, etc. Optional"},"valueType":{"type":["string","null"],"description":"Curve value type: float, integer, string, datetime or boolean. Non-null. Optional. float assumed if not present"},"dimensions":{"type":"number","description":"Number of dimensions. [1,>. Non-null. Optional. 1 assumed if not present"}},"required":["name"]},"data_row":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]}},"metadata_discrete":{"type":"object"}}}'),WellLogs_namespaceObject=JSON.parse('{"$id":"inputSchema/WellLogs.json","type":"array","items":{"$ref":"./WellLog.json#"}}'),WellLogTemplate_namespaceObject=JSON.parse('{"type":"object","properties":{"name":{"type":"string"},"scale":{"type":"object","properties":{"primary":{"type":"string"},"allowSecondary":{"type":"boolean"}},"required":["primary"]},"tracks":{"type":"array","items":{"$ref":"#/definitions/track"}},"styles":{"type":"array","items":{"$ref":"#/definitions/style"}}},"required":["tracks"],"definitions":{"domain":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number"}},"css_color":{"type":"string","description":"Any valid CSS color value (named colors, three-digit hex color, six-digit hex color, RGB colors)","examples":["green","#ff8000","rgb(128,33,23)","rgba(128,33,23,0.6)"]},"plot_type":{"enum":["line","linestep","dot","area","differential","gradientfill","stacked"],"default":"line"},"scale_type":{"enum":["log","linear"],"default":"linear"},"plot_prop":{"type":"object","properties":{"scale":{"$ref":"#/definitions/scale_type"},"type":{"$ref":"#/definitions/plot_type"},"color":{"$ref":"#/definitions/css_color"},"inverseColor":{"$ref":"#/definitions/css_color"},"fill":{"$ref":"#/definitions/css_color"},"fillOpacity":{"type":"number","minimum":0,"maximum":1,"default":0.25,"description":"for \'area\' and \'gradientfill\' plots"},"colorTable":{"type":"string","description":"table id (name) for \'gradientfill\' plot"},"inverseColorTable":{"type":"string","description":"table id (name) for \'gradientfill\' plot"},"colorScale":{"$ref":"#/definitions/scale_type","description":"table id (name) for \'gradientfill\' plot"},"inverseColorScale":{"$ref":"#/definitions/scale_type","description":"table id (name) for \'gradientfill\' plot"},"color2":{"$ref":"#/definitions/css_color","description":"for \'differetial\' plot"},"fill2":{"$ref":"#/definitions/css_color","description":"for \'differetial\' plot"},"showLines":{"type":"boolean","description":"for \'stacked\' plot"},"showLabels":{"type":"boolean","description":"for \'stacked\' plot"},"labelRotation":{"type":"number","description":"for \'stacked\' plot"}}},"plot":{"allOf":[{"$ref":"#/definitions/plot_prop"}],"type":"object","properties":{"name":{"type":"string"},"style":{"type":"string"},"scale":{"$ref":"#/definitions/scale_type"},"name2":{"type":"string"}},"required":["name"]},"style":{"allOf":[{"$ref":"#/definitions/plot_prop"}],"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"track":{"type":"object","properties":{"title":{"type":"string"},"width":{"type":"number","default":3,"description":"relative track width (default as in videx-wellog)"},"required":{"type":"boolean"},"scale":{"$ref":"#/definitions/scale_type"},"domain":{"$ref":"#/definitions/domain"},"plots":{"type":"array","items":{"$ref":"#/definitions/plot"}}},"required":["plots"]}}}'),PieChart_namespaceObject=JSON.parse('{"$comment":"PieChart data schema","$id":"inputSchema/PieChart.json","type":"object","properties":{"pies":{"type":"array","items":{"$ref":"#/definitions/pie"}},"properties":{"type":"array","items":{"$ref":"#/definitions/property"}}},"required":["pies","properties"],"definitions":{"pie":{"type":"object","properties":{"x":{"type":"number","description":"Pie chart y-coordinate"},"y":{"type":"number","description":"Pie chart x-coordinate"},"R":{"type":"number","description":"Pie chart radius."},"fractions":{"type":"array","description":"Number and proportion of slices on pie chart.","items":{"$ref":"#/definitions/fraction"}}},"required":["x","y","R","fractions"]},"property":{"type":"object","properties":{"color":{"type":"array","minItems":3,"maxItems":3,"items":{"type":"number"},"description":"Pie slice color as RGB array."},"label":{"type":"string","description":"Pie slice name."}},"required":["color","label"]},"fraction":{"type":"object","properties":{"value":{"type":"number","description":"Proportion on pie slice."},"idx":{"type":"number","description":"Pie slice color and label indexed from properties array."}},"required":["value","idx"]}}}'),Grid_namespaceObject=JSON.parse('{"$comment":"See https://jsonwelllogformat.org","$id":"inputSchema/Grid.json","type":"array","items":{"$ref":"#/definitions/data_row"},"definitions":{"data_row":{"type":"object","required":["cs","vs"],"properties":{"i":{"type":"number","description":"Cell i-index, increases toward east."},"j":{"type":"number","description":"Cell j-index, increases towards north."},"z":{"type":"number","description":"Cell depth."},"cs":{"type":"array","description":"Cell corners","items":{"$ref":"#/definitions/cell_corner"},"minItems":3},"vs":{"type":"array","description":"Time dependent cell values.","items":{"type":"number"}}}},"cell_corner":{"type":"array","items":{"type":"number"},"minItems":3}}}'),FaultPolygons_namespaceObject=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$comment":"Inspired from https://geojson.org/schema/FeatureCollection.json","$id":"inputSchema/FaultPolygons.json","title":"GeoJSON FeatureCollection","type":"object","required":["type","features"],"properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"type":"array","items":{"title":"GeoJSON Feature","type":"object","required":["type","properties","geometry"],"properties":{"type":{"type":"string","enum":["Feature"]},"id":{"oneOf":[{"type":"number"},{"type":"string"}]},"properties":{"oneOf":[{"type":"null"},{"type":"object"}]},"geometry":{"title":"GeoJSON Polygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}}}}}}}'),ColorTables_namespaceObject=JSON.parse('{"$comment":"ColorTables data schema","$id":"inputSchema/ColorTables.json","type":"array","items":{"$ref":"#/definitions/color-table"},"definitions":{"color-table":{"type":"object","required":["name","discrete","colors"],"properties":{"name":{"type":"string","description":"Color table name"},"discrete":{"type":"boolean","description":"True if color table is for discrete data"},"colors":{"type":"array","description":"Color entries as [anchor, R, G, B] for continuous and [index, R, G, B] for discrete","items":{"$ref":"#/definitions/color-row","minItems":4}},"description":{"type":"string","description":"Description"},"colorNaN":{"$ref":"#/definitions/color-row","description":"Color for NaN/undefined value"},"colorBelow":{"$ref":"#/definitions/color-row","description":"Color for value below minimum color range"},"colorAbove":{"$ref":"#/definitions/color-row","description":"Color for value above minimum color range"}}},"color-row":{"type":"array","items":{"type":"number"},"minItems":3}}}');function validateSchema(data,schema_type){let validator=null;try{validator=function createSchemaValidator(schema_type){const ajv=new(ajv_default())({schemas:[WellLog_namespaceObject]});switch(schema_type){case"Wells":return ajv.compile(Wells_namespaceObject);case"WellLog":return ajv.compile(WellLog_namespaceObject);case"WellLogs":return ajv.compile(WellLogs_namespaceObject);case"WellLogTemplate":return ajv.compile(WellLogTemplate_namespaceObject);case"PieChart":return ajv.compile(PieChart_namespaceObject);case"Grid":return ajv.compile(Grid_namespaceObject);case"FaultPolygons":return ajv.compile(FaultPolygons_namespaceObject);case"ColorTables":return ajv.compile(ColorTables_namespaceObject);default:return null}}(schema_type)}catch(e){throw"Wrong JSON schema for "+schema_type+". "+String(e)}if(!validator)throw"Wrong schema type.";if(validator(data),validator.errors)throw function formatSchemaError(schema_type,errors){let error_text="";error_text=errors[0]?(errors[0].instancePath?errors[0].instancePath+": ":"")+errors[0].message:"JSON schema validation failed";return`${schema_type}: ${error_text}.`}(schema_type,validator.errors)}function validateColorTables(colorTables){validateSchema(colorTables,"ColorTables")}function validateLayers(layers){layers.forEach((layer=>{if(layer.isLoaded){!function validateLayer(layer){switch(layer.id){case"wells-layer":!function validateWellsLayer(wellsLayer){validateSchema(wellsLayer.props.data,"Wells");validateSchema(function getLogData(wellsLayer){var _a;const sub_layers=null===(_a=wellsLayer.internalState)||void 0===_a?void 0:_a.subLayers,log_layer=null==sub_layers?void 0:sub_layers.find((layer=>"wells-layer-log_curve"===layer.id));return null==log_layer?void 0:log_layer.props.data}(wellsLayer),"WellLogs")}(layer);break;case"pie-layer":validateSchema(layer.props.data,"PieChart");break;case"grid-layer":validateSchema(layer.props.data,"Grid");break;case"fault-polygons-layer":validateSchema(layer.props.data,"FaultPolygons");break;default:return}}(layer);try{layer.validateProps()}catch(e){throw`${layer.id}- ${String(e)}`}}}))}},"?d4c0":function(){},"?ccfa":function(){},"?90e7":function(){},"?5693":function(){},"./packages/subsurface-viewer/src/SubsurfaceConfig.json":function(module){"use strict";module.exports=JSON.parse('{"config":{"workerpool":{"maxWorkers":10},"layer":{"TriangleLayer":{"workerpool":{"maxWorkers":10}}}}}')}}]); \ No newline at end of file diff --git a/storybook-static/4720.f67d2ab2.iframe.bundle.js b/storybook-static/4720.f67d2ab2.iframe.bundle.js new file mode 100644 index 000000000..84370f4cc --- /dev/null +++ b/storybook-static/4720.f67d2ab2.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[4720],{"./packages/subsurface-viewer/src/SubsurfaceViewer.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{W:function(){return _layers_grid3d_grid3dLayer__WEBPACK_IMPORTED_MODULE_2__.W}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__),convert_units__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/convert-units/lib/index.js"),convert_units__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(convert_units__WEBPACK_IMPORTED_MODULE_1__),_layers_grid3d_grid3dLayer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/grid3dLayer.ts"),_components_Map__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/src/components/Map.tsx");const SubsurfaceViewer=({id:id,resources:resources,layers:layers,bounds:bounds,cameraPosition:cameraPosition,triggerHome:triggerHome,views:views,coords:coords,scale:scale,coordinateUnit:coordinateUnit,colorTables:colorTables,editedData:editedData,setProps:setProps,checkDatafileSchema:checkDatafileSchema,onMouseEvent:onMouseEvent,selection:selection,getTooltip:getTooltip,getCameraPosition:getCameraPosition,onRenderingProgress:onRenderingProgress,onDragStart:onDragStart,onDragEnd:onDragEnd,triggerResetMultipleWells:triggerResetMultipleWells,lights:lights,children:children,verticalScale:verticalScale})=>{const[layerEditedData,setLayerEditedData]=react__WEBPACK_IMPORTED_MODULE_0__.useState(editedData),[layerInstances,setLayerInstances]=react__WEBPACK_IMPORTED_MODULE_0__.useState([]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{const enumerations=[];if(resources&&enumerations.push({resources:resources}),editedData?enumerations.push({editedData:editedData}):enumerations.push({editedData:{}}),!layers)return void setLayerInstances([]);const layersList=(0,_components_Map__WEBPACK_IMPORTED_MODULE_3__.G0)(layers,enumerations);setLayerInstances(layersList)}),[layers]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{editedData&&setLayerEditedData({...layerEditedData,...editedData})}),[editedData]);const setEditedData=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((data=>{null!=setProps&&setProps({editedData:{...layerEditedData,...data}})}),[setProps,layerEditedData]);return coordinateUnit&&!convert_units__WEBPACK_IMPORTED_MODULE_1___default()().possibilities().includes(coordinateUnit)&&(console.error(`Invalid coordinate unit: '${coordinateUnit}'. Valid units are: ${convert_units__WEBPACK_IMPORTED_MODULE_1___default()().possibilities()}`),coordinateUnit=void 0),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_Map__WEBPACK_IMPORTED_MODULE_3__.ZP,{id:id,layers:layerInstances,bounds:bounds,views:views,coords:coords,scale:scale,coordinateUnit:coordinateUnit,colorTables:colorTables,setEditedData:setEditedData,checkDatafileSchema:checkDatafileSchema,onMouseEvent:onMouseEvent,selection:selection,getTooltip:getTooltip,cameraPosition:cameraPosition,getCameraPosition:getCameraPosition,onRenderingProgress:onRenderingProgress,onDragStart:onDragStart,onDragEnd:onDragEnd,triggerHome:triggerHome,triggerResetMultipleWells:triggerResetMultipleWells,lights:lights,verticalScale:verticalScale},children)};SubsurfaceViewer.defaultProps={views:{layout:[1,1],marginPixels:0,showLabel:!1,viewports:[{id:"main-view",show3D:!1,layerIds:[]}]},checkDatafileSchema:!1},SubsurfaceViewer.propTypes={id:prop_types__WEBPACK_IMPORTED_MODULE_4___default().string.isRequired,resources:prop_types__WEBPACK_IMPORTED_MODULE_4___default().objectOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),layers:prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().objectOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().any).isRequired),bounds:prop_types__WEBPACK_IMPORTED_MODULE_4___default().any,views:prop_types__WEBPACK_IMPORTED_MODULE_4___default().any,coords:prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({visible:prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool,multiPicking:prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool,pickDepth:prop_types__WEBPACK_IMPORTED_MODULE_4___default().number}),scale:prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({visible:prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool,incrementValue:prop_types__WEBPACK_IMPORTED_MODULE_4___default().number,widthPerUnit:prop_types__WEBPACK_IMPORTED_MODULE_4___default().number,cssStyle:prop_types__WEBPACK_IMPORTED_MODULE_4___default().objectOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().any)}),coordinateUnit:prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(convert_units__WEBPACK_IMPORTED_MODULE_1___default()().possibilities()),colorTables:prop_types__WEBPACK_IMPORTED_MODULE_4___default().array,editedData:prop_types__WEBPACK_IMPORTED_MODULE_4___default().objectOf(prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),setProps:prop_types__WEBPACK_IMPORTED_MODULE_4___default().func,checkDatafileSchema:prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool},__webpack_exports__.Z=SubsurfaceViewer,SubsurfaceViewer.__docgenInfo={description:"",methods:[],displayName:"SubsurfaceViewer",props:{id:{required:!0,tsType:{name:"string"},description:"The ID of this component, used to identify dash components\nin callbacks. The ID needs to be unique across all of the\ncomponents in an app.",type:{name:"string"}},resources:{required:!1,tsType:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},description:'Resource dictionary made available in the DeckGL specification as an enum.\nThe values can be accessed like this: `"@@#resources.resourceId"`, where\n`resourceId` is the key in the `resources` dict. For more information,\nsee the DeckGL documentation on enums in the json spec:\nhttps://deck.gl/docs/api-reference/json/conversion-reference#enumerations-and-using-the--prefix',type:{name:"objectOf",value:{name:"any"}}},layers:{required:!1,tsType:{name:"Array",elements:[{name:"union",raw:"| Record\n| Layer\n| false\n| null\n| undefined",elements:[{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},{name:"Layer"},{name:"literal",value:"false"},{name:"null"},{name:"undefined"}]}],raw:"TLayerDefinition[]"},description:"Array of externally created layers or layer definition records or JSON strings.\nAdd '@@typedArraySupport' : true in a layer definition in order to\nuse typed arrays as inputs.",type:{name:"arrayOf",value:{name:"objectOf",value:{name:"any"}}}},bounds:{required:!1,tsType:{name:"union",raw:"[number, number, number, number] | BoundsAccessor",elements:[{name:"tuple",raw:"[number, number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"},{name:"number"}]},{name:"signature",type:"function",raw:"() => BoundingBox2D",signature:{arguments:[],return:{name:"tuple",raw:"[number, number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"},{name:"number"}]}}}]},description:"Coordinate boundary for the view defined as [left, bottom, right, top].\nIt can be either an array or a callback returning [number, number, number, number].",type:{name:"any"}},cameraPosition:{required:!1,tsType:{name:"union",raw:"ViewStateType | undefined",elements:[{name:"ViewStateType"},{name:"undefined"}]},description:""},triggerHome:{required:!1,tsType:{name:"number"},description:""},views:{required:!1,tsType:{name:"ViewsType"},description:'Views configuration for map. If not specified, all the layers will be\ndisplayed in a single 2D viewport.\nExample:\n views = {\n "layout": [1, 1],\n "showLabel": false,\n "viewports": [\n {\n "id": "view_1",\n "name"?: "View 1"\n "show3D"?: false,\n "layerIds": ["layer-ids"],\n "isSync?": true,\n }\n ]\n }',defaultValue:{value:'{\n layout: [1, 1],\n marginPixels: 0,\n showLabel: false,\n viewports: [{ id: "main-view", show3D: false, layerIds: [] }],\n}',computed:!1},type:{name:"any"}},coords:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n visible?: boolean | null;\n multiPicking?: boolean | null;\n pickDepth?: number | null;\n}",signature:{properties:[{key:"visible",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"multiPicking",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"pickDepth",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}}]}},description:"Parameters for the InfoCard component",type:{name:"shape",value:{visible:{name:"bool",description:"Toggle component visibility.",required:!1},multiPicking:{name:"bool",description:"Enable or disable multi picking. Might have a performance penalty.\nSee https://deck.gl/docs/api-reference/core/deck#pickmultipleobjects",required:!1},pickDepth:{name:"number",description:"Number of objects to pick. The more objects picked, the more picking operations will be done.\nSee https://deck.gl/docs/api-reference/core/deck#pickmultipleobjects",required:!1}}}},scale:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n visible?: boolean | null;\n incrementValue?: number | null;\n widthPerUnit?: number | null;\n cssStyle?: Record | null;\n}",signature:{properties:[{key:"visible",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"incrementValue",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}},{key:"widthPerUnit",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}},{key:"cssStyle",value:{name:"union",raw:"Record | null",elements:[{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},{name:"null"}],required:!1}}]}},description:"Parameters for the Distance Scale component",type:{name:"shape",value:{visible:{name:"bool",description:"Toggle component visibility.",required:!1},incrementValue:{name:"number",description:"Increment value for the scale.",required:!1},widthPerUnit:{name:"number",description:"Scale bar width in pixels per unit value.",required:!1},cssStyle:{name:"objectOf",value:{name:"any"},description:"Scale bar css style can be used for positioning.",required:!1}}}},coordinateUnit:{required:!1,tsType:{name:"Unit"},description:"Parameters for the Distance Scale component\nUnit for the scale ruler",type:{name:"enum",computed:!0,value:"convert().possibilities()"}},colorTables:{required:!1,tsType:{name:"colorTablesArray"},description:"Prop containing color table data",type:{name:"array"}},editedData:{required:!1,tsType:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},description:"Prop containing edited data from layers",type:{name:"objectOf",value:{name:"any"}}},setProps:{required:!1,tsType:{name:"signature",type:"function",raw:"(data: Record) => void",signature:{arguments:[{type:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},name:"data"}],return:{name:"void"}}},description:"For reacting to prop changes",type:{name:"func"}},checkDatafileSchema:{required:!1,tsType:{name:"boolean"},description:"Validate JSON datafile against schema",defaultValue:{value:"false",computed:!1},type:{name:"bool"}},onMouseEvent:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: MapMouseEvent) => void",signature:{arguments:[{type:{name:"MapMouseEvent"},name:"event"}],return:{name:"void"}}},description:"For get mouse events"},getCameraPosition:{required:!1,tsType:{name:"signature",type:"function",raw:"(input: ViewStateType) => void",signature:{arguments:[{type:{name:"ViewStateType"},name:"input"}],return:{name:"void"}}},description:""},onRenderingProgress:{required:!1,tsType:{name:"signature",type:"function",raw:"(progress: number) => void",signature:{arguments:[{type:{name:"number"},name:"progress"}],return:{name:"void"}}},description:"Will be called while layers are processed to rendered data.\n@param progress vlaue between 0 and 100."},onDragStart:{required:!1,tsType:{name:"signature",type:"function",raw:"(info: PickingInfo, event: MjolnirGestureEvent) => void",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"},{type:{name:"MjolnirGestureEvent"},name:"event"}],return:{name:"void"}}},description:""},onDragEnd:{required:!1,tsType:{name:"signature",type:"function",raw:"(info: PickingInfo, event: MjolnirGestureEvent) => void",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"},{type:{name:"MjolnirGestureEvent"},name:"event"}],return:{name:"void"}}},description:""},triggerResetMultipleWells:{required:!1,tsType:{name:"number"},description:""},selection:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n well: string | undefined;\n selection: [number | undefined, number | undefined] | undefined;\n}",signature:{properties:[{key:"well",value:{name:"union",raw:"string | undefined",elements:[{name:"string"},{name:"undefined"}],required:!0}},{key:"selection",value:{name:"union",raw:"[number | undefined, number | undefined] | undefined",elements:[{name:"tuple",raw:"[number | undefined, number | undefined]",elements:[{name:"union",raw:"number | undefined",elements:[{name:"number"},{name:"undefined"}]},{name:"union",raw:"number | undefined",elements:[{name:"number"},{name:"undefined"}]}]},{name:"undefined"}],required:!0}}]}},description:"Range selection of the current well"},getTooltip:{required:!1,tsType:{name:"signature",type:"function",raw:"(\n info: PickingInfo\n) => string | Record | null",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"}],return:{name:"union",raw:"string | Record | null",elements:[{name:"string"},{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},{name:"null"}]}}},description:"Override default tooltip with a callback."},lights:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n headLight?: {\n intensity: number;\n color?: [number, number, number];\n };\n ambientLight?: {\n intensity: number;\n color?: [number, number, number];\n };\n pointLights?: [\n {\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n },\n ];\n\n directionalLights?: [\n {\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n },\n ];\n}",signature:{properties:[{key:"headLight",value:{name:"signature",type:"object",raw:"{\n intensity: number;\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]},required:!1}},{key:"ambientLight",value:{name:"signature",type:"object",raw:"{\n intensity: number;\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]},required:!1}},{key:"pointLights",value:{name:"tuple",raw:"[\n {\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n },\n]",elements:[{name:"signature",type:"object",raw:"{\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"position",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]}}],required:!1}},{key:"directionalLights",value:{name:"tuple",raw:"[\n {\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n },\n]",elements:[{name:"signature",type:"object",raw:"{\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"direction",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]}}],required:!1}}]}},description:""},children:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},verticalScale:{required:!1,tsType:{name:"number"},description:"A vertical scale factor, used to scale items in the view vertically"}}}},"./packages/subsurface-viewer/src/components/DistanceScale.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),convert_units__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/convert-units/lib/index.js"),convert_units__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(convert_units__WEBPACK_IMPORTED_MODULE_1__);const DistanceScale=({zoom:zoom,incrementValue:incrementValue,widthPerUnit:widthPerUnit,style:style,scaleUnit:scaleUnit})=>{if(!(zoom&&widthPerUnit&&incrementValue&&scaleUnit))return null;if(!convert_units__WEBPACK_IMPORTED_MODULE_1___default()().possibilities().includes(scaleUnit))return null;const widthInUnits=widthPerUnit/Math.pow(2,zoom),scaleValue=widthInUnits"},description:""},scaleUnit:{required:!1,tsType:{name:"Unit"},description:"",defaultValue:{value:'"m"',computed:!1}}}}},"./packages/subsurface-viewer/src/components/InfoCard.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_mui_material__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@mui/material/Table/Table.js"),_mui_material__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@mui/material/TableCell/TableCell.js"),_mui_material__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@mui/material/TableRow/TableRow.js"),_mui_material__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@mui/material/Collapse/Collapse.js"),_mui_material__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@mui/material/TableBody/TableBody.js"),_mui_material__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@mui/material/TableContainer/TableContainer.js"),_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Icon/index.js"),_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Button/index.js"),_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-icons/dist/esm/index.js"),_mui_system__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@mui/system/esm/styled.js"),d3_color__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/d3-color/src/color.js");_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J.add({arrow_drop_up:_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__.sBW,arrow_drop_down:_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__._Oe});const StyledTable=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_4__.Z)({"& > *":{backgroundColor:"#ffffffcc",color:"#000000ff",border:"2px solid #ccc",padding:"0px",borderRadius:"5px",position:"absolute",bottom:0,left:0,marginLeft:"3px",marginBottom:"3px"}}),StyledTableCell=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z)({border:"none",padding:0,width:"20px"}),StyledTableRow=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_6__.Z)({"& > *":{padding:0}});function Row(props){const{layer_data:layer_data}=props,[open,setOpen]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!0);return 0==layer_data.properties?.length?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableCell,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_7__.z,{style:{padding:0},variant:"ghost",onClick:()=>setOpen(!open)},open?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J,{color:"currentColor",name:"arrow_drop_up"}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J,{color:"currentColor",name:"arrow_drop_down"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,null," ",layer_data.layerName," ")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{paddingBottom:0,paddingTop:0},colSpan:2},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_8__.Z,{in:open,timeout:"auto",unmountOnExit:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_4__.Z,{size:"small","aria-label":"properties"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__.Z,null,layer_data.properties?.map((propertyRow=>{return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,{key:propertyRow.name},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{border:"none",paddingLeft:10,paddingRight:10}},propertyRow.color&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{color:(0,d3_color__WEBPACK_IMPORTED_MODULE_10__.B8)(...propertyRow.color).toString()}},"⬤"),propertyRow.name),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{border:"none",textAlign:"right"}},"number"==typeof propertyRow.value?(num=propertyRow.value,parseFloat(num.toExponential(Math.max(1,2+Math.log10(Math.abs(num)))))):propertyRow.value));var num}))))))))}const InfoCard=props=>{const[infoCardData,setInfoCardData]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if(0===props.pickInfos.length)return void setInfoCardData(null);const topObject=props.pickInfos[0];if(void 0===topObject.coordinate||topObject.coordinate.length<2)return;const xy_properties=[];xy_properties.push({name:"x",value:Number(topObject.coordinate[0]).toFixed(2).toString()+" m"}),xy_properties.push({name:"y",value:Number(topObject.coordinate[1]).toFixed(2).toString()+" m"});const info_card_data=[];info_card_data.push({layerName:"Position",properties:xy_properties}),props.pickInfos.forEach((info=>{const layer_properties=info.properties,layer_name=info.layer?.props?.name,zValue=info.propertyValue;if(void 0!==zValue){const property=xy_properties.find((item=>item.name===layer_name));property?property.value=zValue:xy_properties.push({name:layer_name,value:zValue})}const layer=info_card_data.find((item=>item.layerName===layer_name));layer?layer_properties?.forEach((layer_prop=>{const property=layer.properties?.find((item=>item.name===layer_prop.name));property?property.value=layer_prop.value:layer.properties?.push(layer_prop)})):info_card_data.push({layerName:layer_name||"unknown-layer",properties:layer_properties})})),setInfoCardData(info_card_data)}),[props.pickInfos]),infoCardData&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_11__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTable,{"aria-label":"info-card"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__.Z,null,infoCardData.map((card_data=>card_data.properties&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,{key:card_data.layerName,layer_data:card_data}))))))};__webpack_exports__.Z=InfoCard,InfoCard.__docgenInfo={description:"",methods:[],displayName:"InfoCard",props:{pickInfos:{required:!0,tsType:{name:"Array",elements:[{name:"LayerPickInfo"}],raw:"LayerPickInfo[]"},description:"List of JSON object describing picking information of layers\nthat are under the cursor."}}}},"./packages/subsurface-viewer/src/components/Map.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G0:function(){return createLayers},ZP:function(){return components_Map},oO:function(){return useHoverInfo}});var views_namespaceObject={};__webpack_require__.r(views_namespaceObject),__webpack_require__.d(views_namespaceObject,{IntersectionView:function(){return IntersectionView}});var react=__webpack_require__("./node_modules/react/index.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),json_converter=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/json-converter.js"),json_configuration=__webpack_require__("./node_modules/@deck.gl/json/dist/esm/json-configuration.js"),deckgl=__webpack_require__("./node_modules/@deck.gl/react/dist/esm/deckgl.js"),camera_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/camera-light.js"),ambient_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/ambient-light.js"),point_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/point-light.js"),directional_light=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/directional-light.js"),lighting_effect=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/effects/lighting/lighting-effect.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),orbit_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/orbit-view.js"),orbit_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orbit-controller.js"),orthographic_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/orthographic-view.js"),orthographic_controller=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/controllers/orthographic-controller.js"),line_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/line-layer/line-layer.js"),matrix4=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),esm=__webpack_require__("./node_modules/@math.gl/web-mercator/dist/esm/index.js"),dist=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/index.js"),wsc_common_dist=__webpack_require__("./packages/wsc-common/dist/index.js"),src_layers=__webpack_require__("./packages/subsurface-viewer/src/layers/index.ts"),layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts");const isEmpty=box=>{if(null==box)return!0;const xmin=box[0],ymin=box[1],xmax=box[2],ymax=box[3];return!(xmax>xmin&&ymax>ymin)},BoundingBox3D_boxCenter=box=>{const xmin=box[0],ymin=box[1],zmin=box[2];return[xmin+.5*(box[3]-xmin),ymin+.5*(box[4]-ymin),zmin+.5*(box[5]-zmin)]},BoundingBox3D_isEmpty=box=>{if(null==box)return!0;const xmin=box[0],ymin=box[1],zmin=box[2],xmax=box[3],ymax=box[4],zmax=box[5];return!(xmax>xmin&&ymax>ymin&&zmax!=zmin)};var first_person_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/first-person-view.js"),map_view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/map-view.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),dist_esm=__webpack_require__("./node_modules/@deck.gl/aggregation-layers/dist/esm/index.js"),geo_layers_dist_esm=__webpack_require__("./node_modules/@deck.gl/geo-layers/dist/esm/index.js"),layers_dist_esm=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/index.js"),mesh_layers_dist_esm=__webpack_require__("./node_modules/@deck.gl/mesh-layers/dist/esm/index.js"),dist_es6=__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/index.js"),register_loaders=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/register-loaders.js"),constants_dist_esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),view=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/views/view.js"),intersectionViewport=__webpack_require__("./packages/subsurface-viewer/src/viewports/intersectionViewport.ts");class IntersectionView extends view.Z{static displayName="IntersectionView";constructor(props){super({...props,controller:!1,viewState:{target:[275,0,-500]}})}get ViewportType(){return intersectionViewport.Z}get ControllerType(){throw new Error("Method not implemented.")}}(0,register_loaders.fh)([]);var utils_configuration={classes:Object.assign({FirstPersonView:first_person_view.Z,MapView:map_view.Z,OrbitView:orbit_view.Z,OrthographicView:orthographic_view.Z,...views_namespaceObject},layers_dist_esm,dist_esm,geo_layers_dist_esm,mesh_layers_dist_esm,src_layers,{EditableGeoJsonLayer:dist_es6.nk}),functions:{},enumerations:{COORDINATE_SYSTEM:constants.COORDINATE_SYSTEM,GL:constants_dist_esm.default},constants:{}};const log2=Math.log2||function ieLog2(x){return Math.log(x)*Math.LOG2E};function fitBounds({width:width,height:height,bounds:bounds,minExtent:minExtent=0,maxZoom:maxZoom=24,padding:padding=0,offset:offset=[0,0]}){if(Number.isFinite(padding)){padding={top:padding,bottom:padding,left:padding,right:padding}}else console.assert(Number.isFinite(padding.top)&&Number.isFinite(padding.bottom)&&Number.isFinite(padding.left)&&Number.isFinite(padding.right));const[west,south]=[bounds[0],bounds[1]],[east,north]=[bounds[2],bounds[3]],nw=[west,north],se=[east,south],size=[Math.max(Math.abs(se[0]-nw[0]),minExtent),Math.max(Math.abs(se[1]-nw[1]),minExtent)],targetSize=[width-padding.left-padding.right-2*Math.abs(offset[0]),height-padding.top-padding.bottom-2*Math.abs(offset[1])],scaleX=targetSize[0]/size[0],scaleY=targetSize[1]/size[1],offsetX=(padding.right-padding.left)/2/scaleX,offsetY=(padding.bottom-padding.top)/2/scaleY,centerLngLat=[(se[0]+nw[0])/2+offsetX,(se[1]+nw[1])/2+offsetY];let zoom=Math.min(maxZoom,log2(Math.abs(Math.min(scaleX,scaleY))));return Number.isFinite(zoom)||(zoom=0),{x:centerLngLat[0],y:centerLngLat[1],zoom:zoom}}var DistanceScale=__webpack_require__("./packages/subsurface-viewer/src/components/DistanceScale.tsx"),InfoCard=__webpack_require__("./packages/subsurface-viewer/src/components/InfoCard.tsx"),CircularProgress=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Progress/Circular/CircularProgress.js");const StatusIndicator=({progress:progress,label:label})=>("boolean"==typeof progress&&(progress=progress?100:0),progress>=100?null:react.createElement("div",null,react.createElement(CircularProgress.D,{size:48,value:progress,variant:"determinate"}),react.createElement("br",null),label));var components_StatusIndicator=StatusIndicator;StatusIndicator.__docgenInfo={description:"",methods:[],displayName:"StatusIndicator",props:{progress:{required:!0,tsType:{name:"union",raw:"number | boolean",elements:[{name:"number"},{name:"boolean"}]},description:""},label:{required:!0,tsType:{name:"string"},description:""}}};var camera=__webpack_require__("./packages/subsurface-viewer/src/utils/camera.ts");function updateZScaleReducer(zScale,action){return zScale*function getZScaleModifier(arrowEvent){let scaleFactor=0;switch(arrowEvent.key){case"ArrowUp":scaleFactor=.05;break;case"ArrowDown":scaleFactor=-.05;break;case"PageUp":scaleFactor=.25;break;case"PageDown":scaleFactor=-.25}arrowEvent.shiftModifier&&(scaleFactor/=5);return 1+scaleFactor}(action)}var merge_refs_dist_esm=__webpack_require__("./node_modules/merge-refs/dist/esm/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;ivoid 0===box1?box2??defaultBox:void 0===box2?box1??defaultBox:[Math.min(box1[0],box2[0]),Math.min(box1[1],box2[1]),Math.min(box1[2],box2[2]),Math.max(box1[3],box2[3]),Math.max(box1[4],box2[4]),Math.max(box1[5],box2[5])])(mapBoundingBox,action.layerBoundingBox);return(0,lodash.isEqual)(union,mapBoundingBox)?mapBoundingBox:union}function useHoverInfo(){const[hoverInfo,setHoverInfo]=(0,react.useState)([]);return[hoverInfo,(0,react.useCallback)((pickEvent=>{setHoverInfo(pickEvent.infos)}),[])]}function defaultTooltip(info){if(info?.logName)return info?.logName;if("drawing-layer"===info.layer?.id)return info.propertyValue?.toFixed(2);const feat=info.object;return feat?.properties?.name}const Map=({id:id,layers:layers,bounds:bounds,cameraPosition:cameraPosition,triggerHome:triggerHome,views:views,coords:coords,scale:scale,coordinateUnit:coordinateUnit,colorTables:colorTables,setEditedData:setEditedData,checkDatafileSchema:checkDatafileSchema,onMouseEvent:onMouseEvent,selection:selection,children:children,getTooltip:getTooltip=defaultTooltip,getCameraPosition:getCameraPosition,onRenderingProgress:onRenderingProgress,onDragStart:onDragStart,onDragEnd:onDragEnd,lights:lights,triggerResetMultipleWells:triggerResetMultipleWells,verticalScale:verticalScale})=>{const deckRef=react.useRef(null),[applyViewController,forceUpdate]=react.useReducer((x=>x+1),0),viewController=(0,react.useMemo)((()=>new ViewController(forceUpdate)),[]),[deckSize,setDeckSize]=(0,react.useState)({width:0,height:0}),onResize=(0,react.useCallback)((size=>{size.width>0&&size.height>0&&setDeckSize((prevSize=>prevSize?.width!==size.width||prevSize?.height!==size.height?size:prevSize))}),[]),[dataBoundingBox3d,dispatchBoundingBox]=react.useReducer(mapBoundingBoxReducer,void 0),viewportVerticalScale=(viewports=views?.viewports,react.useMemo((()=>viewports?viewports.find((item=>!!item.verticalScale))?.verticalScale:1),[viewports]));var viewports;const{zScale:zReScale,divRef:zScaleRef}=function useHandleRescale(disable=!1){const[zScale,updateZScale]=react.useReducer(updateZScaleReducer,1),divRef=react.useRef(null);return react.useEffect((()=>{if(disable)return;const keyDownHandler=e=>{const arrowEvent=function convertToArrowEvent(event){if("keydown"===event.type)switch(event.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":return{key:event.key,shiftModifier:event.shiftKey};default:return null}return null}(e);arrowEvent&&(updateZScale(arrowEvent),e.stopPropagation())},element=divRef.current;return element?.addEventListener("keydown",keyDownHandler,!0),()=>{element?.removeEventListener("keydown",keyDownHandler)}}),[updateZScale,divRef,disable]),{zScale:zScale,divRef:divRef}}(!!(verticalScale??viewportVerticalScale)),{shiftHeld:shiftHeld,divRef:shiftHeldRef}=function useShiftHeld(){const[shiftHeld,setShiftHeld]=(0,react.useState)(!1),divRef=react.useRef(null);return react.useEffect((()=>{const keyDownHandler=e=>{"Shift"===e.key&&setShiftHeld(!0)},keyUpHandler=e=>{"Shift"===e.key&&setShiftHeld(!1)},element=divRef.current;return element?.addEventListener("keydown",keyDownHandler,!0),element?.addEventListener("keyup",keyUpHandler,!0),()=>{element?.removeEventListener("keydown",keyDownHandler),element?.removeEventListener("keyup",keyUpHandler)}}),[setShiftHeld,divRef]),{divRef:divRef,shiftHeld:shiftHeld}}(),divRef=(0,merge_refs_dist_esm.Z)(zScaleRef,shiftHeldRef),zScale=verticalScale??viewportVerticalScale??zReScale,viewPortMargins=react.useMemo((()=>{if(!layers?.length)return{left:0,right:0,top:0,bottom:0};const axes2DLayer=layers?.find((e=>e?.constructor===src_layers.Axes2DLayer)),axes2DProps=axes2DLayer?.props;return{left:axes2DProps?.isLeftRuler?axes2DProps.marginH:0,right:axes2DProps?.isRightRuler?axes2DProps.marginH:0,top:axes2DProps?.isTopRuler?axes2DProps.marginV:0,bottom:axes2DProps?.isBottomRuler?axes2DProps.marginV:0}}),[layers]);(0,react.useEffect)((()=>{const layers=deckRef.current?.deck?.props.layers;if(layers){const wellslayer=(0,layerTools.eG)(layers,src_layers.WellsLayer.name)?.[0];wellslayer?.setSelection(selection?.well,selection?.selection)}}),[selection]);const[multipleWells,setMultipleWells]=(0,react.useState)([]),[selectedWell,setSelectedWell]=(0,react.useState)("");(0,react.useEffect)((()=>{const layers=deckRef.current?.deck?.props.layers;if(layers){const wellslayer=(0,layerTools.kF)(layers,"WellsLayer",selectedWell)?.[0];wellslayer?.setMultiSelection(multipleWells)}}),[multipleWells,selectedWell]),(0,react.useEffect)((()=>{void 0!==triggerResetMultipleWells&&setMultipleWells([])}),[triggerResetMultipleWells]);const getPickingInfos=(0,react.useCallback)(((pickInfo,event)=>{if(coords?.multiPicking&&pickInfo.layer?.context.deck){const pickInfos=pickInfo.layer.context.deck.pickMultipleObjects({x:event.offsetCenter.x,y:event.offsetCenter.y,depth:coords.pickDepth?coords.pickDepth:void 0,unproject3D:!0});return pickInfos.forEach((item=>{if(item.properties){let unit=item.sourceLayer?.props.data?.unit;null==unit&&(unit=" "),item.properties.forEach((element=>{(element.name.includes("MD")||element.name.includes("TVD"))&&(element.value=Number(element.value).toFixed(2).toString()+" "+unit)}))}})),pickInfos}return[pickInfo]}),[coords?.multiPicking,coords?.pickDepth]),callOnMouseEvent=(0,react.useCallback)(((type,infos,event)=>{if(event.leftButton&&2==event.tapCount&&infos.length>=1&&infos[0].coordinate&&viewController.setTarget(infos[0].coordinate),!onMouseEvent)return;const ev=function handleMouseEvent(type,infos,event){const ev={type:type,infos:infos};"click"===ev.type&&event.rightButton&&(ev.type="contextmenu");for(const info of infos)if(info.coordinate&&(ev.x=info.coordinate[0],ev.y=info.coordinate[1]),info.layer&&"wells-layer"===info.layer.id){{const feat=info.object,properties=feat?.properties;properties&&(ev.wellname=properties.name,ev.wellcolor=properties.color)}if(ev.wellname||info.object&&(ev.wellname=info.object.header?.well),info.properties)for(const property of info.properties){ev.wellcolor||(ev.wellcolor=property.color);let propname=property.name;if(propname){const sep=propname.indexOf(" ");sep>=0&&(ev.wellname||(ev.wellname=propname.substring(sep+1)),propname=propname.substring(0,sep))}const names_tvd=["TVD","TVDSS","DVER","TVD_MSL"];if(["DEPTH","DEPT","MD","TDEP","MD_RKB"].find((name=>name==propname))?ev.md=parseFloat(property.value):names_tvd.find((name=>name==propname))&&(ev.tvd=parseFloat(property.value)),void 0!==ev.md&&void 0!==ev.tvd&&void 0!==ev.wellname)break}break}return ev}(type,infos,event);onMouseEvent(ev)}),[onMouseEvent,viewController]),[hoverInfo,setHoverInfo]=(0,react.useState)([]),onHover=(0,react.useCallback)(((pickInfo,event)=>{const infos=getPickingInfos(pickInfo,event);setHoverInfo(infos),callOnMouseEvent?.("hover",infos,event)}),[callOnMouseEvent,getPickingInfos]),onClick=(0,react.useCallback)(((pickInfo,event)=>{const infos=getPickingInfos(pickInfo,event);callOnMouseEvent?.("click",infos,event)}),[callOnMouseEvent,getPickingInfos]),deckGLLayers=react.useMemo((()=>{if(!layers)return[];if(0===layers.length){const dummy_layer=new line_layer.Z({id:"webviz_internal_dummy_layer",visible:!1});layers.push(dummy_layer)}const m=(0,layerTools.BZ)(zScale);return layers.map((item=>item?.constructor.name===src_layers.NorthArrow3DLayer.name?item:item.clone({reportBoundingBox:dispatchBoundingBox,modelMatrix:m})))}),[layers,zScale]),[loadingProgress,setLoadingProgress]=(0,react.useState)(0),onAfterRender=(0,react.useCallback)((()=>{if(deckGLLayers){let progress=100;if(!(1==deckGLLayers.length&&"webviz_internal_dummy_layer"===deckGLLayers[0].id)){const visibleLayers=deckGLLayers.filter((layer=>layer.props.visible)),loaded=visibleLayers?.filter((layer=>layer?.isLoaded)).length;progress=Math.ceil(100*loaded/visibleLayers?.length)}setLoadingProgress(progress),onRenderingProgress&&onRenderingProgress(progress)}}),[deckGLLayers,onRenderingProgress]),[errorText,setErrorText]=(0,react.useState)();(0,react.useEffect)((()=>{const layers=deckRef.current?.deck?.props.layers;if(checkDatafileSchema&&layers&&100===loadingProgress)try{(0,wsc_common_dist.TL)(layers),colorTables&&(0,wsc_common_dist.cs)(colorTables)}catch(e){setErrorText(String(e))}else setErrorText(void 0)}),[checkDatafileSchema,colorTables,deckRef?.current?.deck?.props.layers,loadingProgress]);const layerFilter=(0,react.useCallback)((args=>{if(!views?.viewports||!views?.layout)return!0;const cur_view=views.viewports.find((({id:id})=>args.viewport.id&&id===args.viewport.id));if(cur_view?.layerIds&&cur_view.layerIds.length>0){return cur_view.layerIds.some((layer_id=>layer_id===args.layer.id))}return!0}),[views]),onViewStateChange=(0,react.useCallback)((({viewId:viewId,viewState:viewState})=>{viewController.onViewStateChange(viewId,viewState),getCameraPosition&&getCameraPosition(viewState)}),[getCameraPosition,viewController]),effects=function parseLights(lights){if(!lights)return;const effects=[];let lightsObj={};if(lights.headLight){const headLight=new camera_light.Z({intensity:lights.headLight.intensity,color:lights.headLight.color??[255,255,255]});lightsObj={...lightsObj,headLight:headLight}}if(lights.ambientLight){const ambientLight=new ambient_light.M({intensity:lights.ambientLight.intensity,color:lights.ambientLight.color??[255,255,255]});lightsObj={...lightsObj,ambientLight:ambientLight}}if(lights.pointLights)for(const light of lights.pointLights){const pointLight=new point_light.c({...light,color:light.color??[255,255,255]});lightsObj={...lightsObj,pointLight:pointLight}}if(lights.directionalLights)for(const light of lights.directionalLights){const directionalLight=new directional_light.O({...light,color:light.color??[255,255,255]});lightsObj={...lightsObj,directionalLight:directionalLight}}const lightingEffect=new lighting_effect.Z(lightsObj);return effects.push(lightingEffect),effects}(lights),[deckGlViews,deckGlViewState]=(0,react.useMemo)((()=>{const state={triggerHome:triggerHome,camera:cameraPosition,bounds:bounds,boundingBox3d:dataBoundingBox3d,viewPortMargins:viewPortMargins,deckSize:deckSize,zScale:zScale};return viewController.getViews(views,state)}),[triggerHome,cameraPosition,bounds,dataBoundingBox3d,viewPortMargins,deckSize,views,zScale,applyViewController,viewController]),lateralZoom=(0,camera.b2)(deckGlViewState);return!deckGlViews||(0,lodash.isEmpty)(deckGlViews)||(0,lodash.isEmpty)(deckGLLayers)?null:react.createElement("div",{ref:divRef,onContextMenu:event=>event.preventDefault()},react.createElement(deckgl.Z,{id:id,viewState:deckGlViewState,views:deckGlViews,layerFilter:layerFilter,layers:deckGLLayers,userData:{setEditedData:updated_prop=>{if(setSelectedWell(updated_prop.selectedWell),Object.keys(updated_prop).includes("selectedWell"))if(shiftHeld)if(multipleWells.includes(updated_prop.selectedWell)){const temp=multipleWells.filter((item=>item!==updated_prop.selectedWell));setMultipleWells(temp)}else{const temp=multipleWells.concat(updated_prop.selectedWell);setMultipleWells(temp)}else setMultipleWells([]);setEditedData?.(updated_prop)},colorTables:colorTables},getCursor:({isDragging:isDragging})=>isDragging?"grabbing":"default",getTooltip:getTooltip,ref:deckRef,onViewStateChange:onViewStateChange,onHover:onHover,onClick:onClick,onAfterRender:onAfterRender,effects:effects,onDragStart:onDragStart,onDragEnd:onDragEnd,onResize:onResize},children),scale?.visible?react.createElement(DistanceScale.Z,_extends({},scale,{zoom:lateralZoom,scaleUnit:coordinateUnit,style:scale.cssStyle??{}})):null,!onRenderingProgress&&loadingProgress<100&&react.createElement("div",{style:{display:"flex",alignItems:"flex-end",justifyContent:"right",position:"absolute",height:"10%",width:"10%",bottom:"10px",right:"10px",zIndex:200}},react.createElement(components_StatusIndicator,{progress:loadingProgress,label:"Loading assets..."})),coords?.visible&&react.createElement(InfoCard.Z,{pickInfos:hoverInfo}),errorText&&react.createElement("pre",{style:{flex:"0, 0",color:"rgb(255, 64, 64)",backgroundColor:"rgb(255, 255, 192)"}},errorText))};Map.defaultProps={coords:{visible:!0,multiPicking:!0,pickDepth:10},scale:{visible:!0,incrementValue:100,widthPerUnit:100,cssStyle:{top:10,left:10}},toolbar:{visible:!1},coordinateUnit:"m",views:{layout:[1,1],showLabel:!1,viewports:[{id:"main-view",show3D:!1,layerIds:[]}]},colorTables:dist.Su,checkDatafileSchema:!1};var components_Map=Map;function createLayers(layers,enums=void 0){const configuration=createConfiguration(enums),filtered_layers=layers.filter((value=>!(0,lodash.isEmpty)(value))),layersList=new Array(filtered_layers.length),jsonLayerIndices=[],jsonLayerDefs=[];filtered_layers.forEach(((layer,index)=>{layer instanceof lib_layer.Z?layersList[index]=layer:layer["@@typedArraySupport"]?layersList[index]=function createLayer(layerData,configuration){const typeKey=configuration.typeKey,classes=configuration.classes;if(layerData[typeKey]){const type=layerData[typeKey];if(type in classes){const Class=classes[type],props={...layerData};return delete props[typeKey],new Class(props)}}return null}(layer,configuration):(jsonLayerDefs.push(layer),jsonLayerIndices.push(index))}));const jsonLayers=function jsonToObject(data,enums){if(!data)return[];const configuration=createConfiguration(enums),jsonConverter=new json_converter.Z({configuration:configuration}),filtered_data=data.filter((value=>!(0,lodash.isEmpty)(value)));return jsonConverter.convert(filtered_data)}(jsonLayerDefs,enums);return jsonLayers.forEach(((layer,index)=>{const layerIndex=jsonLayerIndices[index];layersList[layerIndex]=layer})),layersList.filter((value=>!(0,lodash.isEmpty)(value)))}function createConfiguration(enums=void 0){const configuration=new json_configuration.Z(utils_configuration);return enums?.forEach((enumeration=>{enumeration&&configuration.merge({enumerations:{...enumeration}})})),configuration}class ViewController{state_={triggerHome:void 0,camera:void 0,bounds:void 0,boundingBox3d:void 0,deckSize:{width:0,height:0},zScale:1,viewPortMargins:{left:0,right:0,top:0,bottom:0},target:void 0,readyForInteraction:!1,viewStateChanged:!1};derivedState_={target:void 0,readyForInteraction:!1,viewStateChanged:!1};views_=void 0;result_={views:[],viewState:{}};constructor(rerender){this.rerender_=rerender}setTarget=target=>{this.derivedState_.target=[target[0],target[1],target[2]],this.rerender_()};getViews=(views,state)=>{const fullState=this.consolidateState(state),newViews=this.getDeckGlViews(views,fullState),newViewState=this.getDeckGlViewState(views,fullState);return this.state_=fullState,this.views_=views,this.result_.views=newViews,this.result_.viewState=newViewState,[newViews,newViewState]};consolidateState=state=>({...state,...this.derivedState_});getDeckGlViews=(views,state)=>views!=this.views_||state.deckSize!=this.state_.deckSize?function buildDeckGlViews(views,size){const isOk=areViewsValid(views,size);if(!views||!isOk)return[new orthographic_view.Z({id:"main",controller:null,x:"0%",y:"0%",width:"100%",height:"100%",flipY:!1,far:99999,near:-99999})];const[nY,nX]=views.layout;if(1===nX&&1===nY)return[newView(views.viewports[0],0,0,"99.5%","99.5%")];const result=[],w=99.5/nX,h=99.5/nY,marginPixels=views.marginPixels??0,marginHorPercentage=marginPixels/(w*size.width)*1e4,marginVerPercentage=marginPixels/(h*size.height)*1e4;let yPos=0;for(let y=1;y<=nY;y++){let xPos=0;for(let x=1;x<=nX;x++){if(result.length>=views.viewports.length)return result;const currentViewport=views.viewports[result.length],viewX=xPos+marginHorPercentage/nX+"%",viewY=yPos+marginVerPercentage/nY+"%",viewWidth=w*(1-marginHorPercentage/100*2)+"%",viewHeight=h*(1-marginVerPercentage/100*2)+"%";result.push(newView(currentViewport,viewX,viewY,viewWidth,viewHeight)),xPos+=w}yPos+=h}return result}(views,state.deckSize):this.result_.views;getDeckGlViewState=(views,state)=>{const viewsChanged=views!=this.views_,triggerHome=state.triggerHome!==this.state_.triggerHome,updateTarget=(viewsChanged||state.target!==this.state_?.target)&&null!=state.target,updateZScale=viewsChanged||state.zScale!==this.state_?.zScale||triggerHome,updateViewState=viewsChanged||triggerHome||state.camera!=this.state_.camera||state.bounds!=this.state_.bounds||!state.viewStateChanged&&(state.boundingBox3d!==this.state_.boundingBox3d||state.deckSize!=this.state_.deckSize),needUpdate=updateZScale||updateTarget||updateViewState,isCacheEmpty=(0,lodash.isEmpty)(this.result_.viewState);if(!isCacheEmpty&&!needUpdate)return this.result_.viewState;const prevViewState=this.result_.viewState;let viewState=prevViewState;if((updateViewState||isCacheEmpty)&&(viewState=function buildDeckGlViewStates(views,viewPortMargins,cameraPosition,boundingBox,bounds,size){const isOk=areViewsValid(views,size);if(!views||!isOk)return{};const[nY,nX]=views.layout;if(1===nX&&1===nY){const viewState=computeViewState(views.viewports[0],cameraPosition,boundingBox,bounds,viewPortMargins,views,size);return{[views.viewports[0].id]:viewState}}let result={};for(let y=1;y<=nY;y++)for(let x=1;x<=nX;x++){const resultLength=Object.keys(result).length;if(resultLength>=views.viewports.length)return result;const currentViewport=views.viewports[resultLength],currentViewState=computeViewState(currentViewport,cameraPosition,boundingBox,bounds,viewPortMargins,views,size);currentViewState&&(result={...result,[currentViewport.id]:currentViewState})}return result}(views,state.viewPortMargins,state.camera,state.boundingBox3d,state.bounds,state.deckSize),this.derivedState_.readyForInteraction=function canCameraBeDefined(camera,boundingBox,bounds,size){if(isCameraDefined(camera))return!0;return size.height>0&&size.width>0&&(function cameraDefinesBoundingBox(camera){return Array.isArray(camera?.zoom)&&!BoundingBox3D_isEmpty(camera.zoom)}(camera)||!BoundingBox3D_isEmpty(boundingBox)||!isEmpty("function"==typeof bounds?bounds():bounds))}(state.camera,state.boundingBox3d,state.bounds,state.deckSize),this.derivedState_.viewStateChanged=!1),(0,lodash.isEmpty)(viewState))return viewState;const viewStateKeys=Object.keys(viewState);if(updateTarget&&this.derivedState_.target&&1===viewStateKeys?.length&&(viewState===prevViewState&&(viewState=(0,lodash.cloneDeep)(prevViewState)),viewState[viewStateKeys[0]].target=this.derivedState_.target,viewState[viewStateKeys[0]].transitionDuration=1e3,this.derivedState_.target=void 0),updateZScale){viewState===prevViewState&&(viewState=(0,lodash.cloneDeep)(prevViewState));const targetScale=state.zScale/(triggerHome?1:this.state_.zScale);for(const key in viewState){const t=viewState[key].target;t&&(viewState[key].target=[t[0],t[1],t[2]*targetScale])}}return viewState};onViewStateChange=(viewId,viewState)=>{if(!this.derivedState_.readyForInteraction)return;const viewports=this.views_?.viewports??[];2===viewState.target.length&&viewState.target.push(this.result_.viewState[viewId].target[2]);const isSyncIds=viewports.filter((item=>item.isSync)).map((item=>item.id));if(isSyncIds?.includes(viewId)){const viewStateTable=this.views_?.viewports.filter((item=>item.isSync)).map((item=>[item.id,viewState])),tempViewStates=Object.fromEntries(viewStateTable??[]);this.result_.viewState={...this.result_.viewState,...tempViewStates}}else this.result_.viewState={...this.result_.viewState,[viewId]:viewState};this.derivedState_.viewStateChanged=!0,this.rerender_()}}function getViewStateFromBounds(viewPortMargins,bounds_accessor,target,views,viewPort,size){const bounds="function"==typeof bounds_accessor?bounds_accessor():bounds_accessor;let w=bounds[2]-bounds[0],h=bounds[3]-bounds[1];const z=target[2],fb=fitBounds({width:w,height:h,bounds:bounds});let fb_target=[fb.x,fb.y,z],fb_zoom=fb.zoom;if(size.width>0&&size.height>0){const w_bounds=w,h_bounds=h,ml=viewPortMargins.left,mr=viewPortMargins.right,mb=viewPortMargins.bottom,mt=viewPortMargins.top,marginH=(ml>0?ml:0)+(mr>0?mr:0),marginV=(mb>0?mb:0)+(mt>0?mt:0);if(w=size.width-marginH,h=size.height-marginV,views?.layout){const[nY,nX]=views.layout;if(1!==nX||1!==nY){const mPixels=views?.marginPixels??0,w_=99.5/nX,h_=99.5/nY,marginHorPercentage=mPixels/(w_*size.width)*1e4,marginVerPercentage=mPixels/(h_*size.height)*1e4;w=w_/100*size.width*(1-marginHorPercentage/100*2)-marginH,h=h_/100*size.height*(1-marginVerPercentage/100*2)-marginV}}const m_pr_pixel=h_bounds/w_bounds>h/w?h_bounds/h:w_bounds/w;let translate_x=0;ml>0&&0===mr?translate_x=.5*ml*m_pr_pixel:0===ml&&mr>0&&(translate_x=-.5*mr*m_pr_pixel);let translate_y=0;mb>0&&0===mt?translate_y=.5*mb*m_pr_pixel:0===mb&&mt>0&&(translate_y=-.5*mt*m_pr_pixel);const fb=fitBounds({width:w,height:h,bounds:bounds});fb_target=[fb.x-translate_x,fb.y-translate_y,z],fb_zoom=fb.zoom}return{target:viewPort.target??fb_target,zoom:(0,camera.aB)(viewPort,fb_zoom),rotationX:90,rotationOrbit:0,minZoom:viewPort.show3D?minZoom3D:minZoom2D,maxZoom:viewPort.show3D?maxZoom3D:maxZoom2D}}function areViewsValid(views,size){return!!(null!=views?.viewports&&null!=views?.layout&&views?.layout?.[0]&&views?.layout?.[1]&&size.width&&size.height)}function newView(viewport,x,y,width,height){const near=viewport.show3D?.1:-9999,[ViewType,Controller]=function getViewType(viewport){return viewport.show3D?[orbit_view.Z,orbit_controller.Z]:["intersection_view"===viewport.id?IntersectionView:orthographic_view.Z,orthographic_controller.Z]}(viewport);return new ViewType({id:viewport.id,controller:{type:Controller,doubleClickZoom:!1},x:x,y:y,width:width,height:height,flipY:!1,far:9999,near:near})}function cameraHasZoom(camera){const zoom=camera?.zoom,isNumber="number"==typeof zoom&&!Number.isNaN(zoom),isXy=Array.isArray(zoom)&&2==zoom.length;return isNumber||isXy}function cameraHasTarget(camera){return Array.isArray(camera?.target)&&camera.target.length>=2&&camera.target.length<=3}function isCameraDefined(camera){return cameraHasZoom(camera)&&cameraHasTarget(camera)}function updateViewState(camera,boundingBox,size,is3D=!0){if(isCameraDefined(camera))return camera;Array.isArray(camera.zoom)&&!BoundingBox3D_isEmpty(camera.zoom)&&(boundingBox=camera.zoom),is3D||(boundingBox[2]=0,boundingBox[5]=0);const camera_=(0,lodash.cloneDeep)(camera);return cameraHasZoom(camera_)||(camera_.zoom=function computeCameraZoom(camera,boundingBox,size,fovy=50){const DEGREES_TO_RADIANS=Math.PI/180,RADIANS_TO_DEGREES=180/Math.PI,fD=(0,esm.sj)(fovy),angle_ver=25*DEGREES_TO_RADIANS,r=size.height/2/Math.sin(angle_ver)*Math.cos(angle_ver),angle_hor=2*Math.atan(size.width/2/r)*RADIANS_TO_DEGREES/2*DEGREES_TO_RADIANS,fwX=fD*Math.tan(angle_hor),fwY=fD*Math.tan(angle_ver),m=new matrix4.Z([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);m.rotateX(camera.rotationX*DEGREES_TO_RADIANS),m.rotateZ(camera.rotationOrbit*DEGREES_TO_RADIANS);const xMin=boundingBox[0],yMin=boundingBox[1],zMin=boundingBox[2],xMax=boundingBox[3],yMax=boundingBox[4],zMax=boundingBox[5],target=[xMin+(xMax-xMin)/2,yMin+(yMax-yMin)/2,zMin+(zMax-zMin)/2],points=[[xMin,yMin,zMin],[xMin,yMax,zMin],[xMax,yMax,zMin],[xMax,yMin,zMin],[xMin,yMin,zMax],[xMin,yMax,zMax],[xMax,yMax,zMax],[xMax,yMin,zMax]];let zoom=999;for(const point of points){const x_=(point[0]-target[0])/size.height,y_=(point[1]-target[1])/size.height,z_=(point[2]-target[2])/size.height,[x,y,z]=m.transformAsVector([x_,y_,z_]);if(y>=0)continue;let y_new=fwX/(Math.abs(x)/y-fwX/fD);const zoom_x=Math.log2(y_new/y);y_new=fwY/(Math.abs(z)/y-fwY/fD);const zoom_z=Math.log2(y_new/y);zoom=zoom_x"},description:'Resource dictionary made available in the DeckGL specification as an enum.\nThe values can be accessed like this: `"@@#resources.resourceId"`, where\n`resourceId` is the key in the `resources` dict. For more information,\nsee the DeckGL documentation on enums in the json spec:\nhttps://deck.gl/docs/api-reference/json/conversion-reference#enumerations-and-using-the--prefix'},layers:{required:!1,tsType:{name:"LayersList"},description:""},bounds:{required:!1,tsType:{name:"union",raw:"BoundingBox2D | BoundsAccessor",elements:[{name:"tuple",raw:"[number, number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"},{name:"number"}]},{name:"signature",type:"function",raw:"() => BoundingBox2D",signature:{arguments:[],return:{name:"tuple",raw:"[number, number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"},{name:"number"}]}}}]},description:"Coordinate boundary for the view defined as [left, bottom, right, top].\nShould be used for 2D view only."},cameraPosition:{required:!1,tsType:{name:"ViewStateType"},description:"Camera state for the view defined as a ViewStateType.\nShould be used for 3D view only.\nIf the zoom is given as a 3D bounding box, the camera state is computed to\ndisplay the full box."},triggerHome:{required:!1,tsType:{name:"number"},description:"If changed will reset view settings (bounds or camera) to default position."},views:{required:!1,tsType:{name:"ViewsType"},description:"Views configuration for map. If not specified, all the layers will be\ndisplayed in a single 2D viewport",defaultValue:{value:'{\n layout: [1, 1],\n showLabel: false,\n viewports: [{ id: "main-view", show3D: false, layerIds: [] }],\n}',computed:!1}},coords:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n visible?: boolean | null;\n multiPicking?: boolean | null;\n pickDepth?: number | null;\n}",signature:{properties:[{key:"visible",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"multiPicking",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"pickDepth",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}}]}},description:"Parameters for the InfoCard component",defaultValue:{value:"{\n visible: true,\n multiPicking: true,\n pickDepth: 10,\n}",computed:!1}},scale:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n visible?: boolean | null;\n incrementValue?: number | null;\n widthPerUnit?: number | null;\n cssStyle?: Record | null;\n}",signature:{properties:[{key:"visible",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}},{key:"incrementValue",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}},{key:"widthPerUnit",value:{name:"union",raw:"number | null",elements:[{name:"number"},{name:"null"}],required:!1}},{key:"cssStyle",value:{name:"union",raw:"Record | null",elements:[{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},{name:"null"}],required:!1}}]}},description:"Parameters for the Distance Scale component",defaultValue:{value:"{\n visible: true,\n incrementValue: 100,\n widthPerUnit: 100,\n cssStyle: { top: 10, left: 10 },\n}",computed:!1}},coordinateUnit:{required:!1,tsType:{name:"Unit"},description:"",defaultValue:{value:'"m"',computed:!1}},toolbar:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n visible?: boolean | null;\n}",signature:{properties:[{key:"visible",value:{name:"union",raw:"boolean | null",elements:[{name:"boolean"},{name:"null"}],required:!1}}]}},description:"Parameters to control toolbar",defaultValue:{value:"{\n visible: false,\n}",computed:!1}},colorTables:{required:!1,tsType:{name:"colorTablesArray"},description:"Prop containing color table data",defaultValue:{value:"colorTables",computed:!0}},editedData:{required:!1,tsType:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},description:"Prop containing edited data from layers"},setEditedData:{required:!1,tsType:{name:"signature",type:"function",raw:"(data: Record) => void",signature:{arguments:[{type:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},name:"data"}],return:{name:"void"}}},description:"For reacting to prop changes"},checkDatafileSchema:{required:!1,tsType:{name:"boolean"},description:"Validate JSON datafile against schema",defaultValue:{value:"false",computed:!1}},onMouseEvent:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: MapMouseEvent) => void",signature:{arguments:[{type:{name:"MapMouseEvent"},name:"event"}],return:{name:"void"}}},description:"For get mouse events"},getCameraPosition:{required:!1,tsType:{name:"signature",type:"function",raw:"(input: ViewStateType) => void",signature:{arguments:[{type:{name:"ViewStateType"},name:"input"}],return:{name:"void"}}},description:""},onRenderingProgress:{required:!1,tsType:{name:"signature",type:"function",raw:"(progress: number) => void",signature:{arguments:[{type:{name:"number"},name:"progress"}],return:{name:"void"}}},description:"Will be called while layers have rendered data.\nprogress is a number between 0 and 100."},onDragStart:{required:!1,tsType:{name:"signature",type:"function",raw:"(info: PickingInfo, event: MjolnirGestureEvent) => void",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"},{type:{name:"MjolnirGestureEvent"},name:"event"}],return:{name:"void"}}},description:""},onDragEnd:{required:!1,tsType:{name:"signature",type:"function",raw:"(info: PickingInfo, event: MjolnirGestureEvent) => void",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"},{type:{name:"MjolnirGestureEvent"},name:"event"}],return:{name:"void"}}},description:""},triggerResetMultipleWells:{required:!1,tsType:{name:"number"},description:""},selection:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n well: string | undefined;\n selection: [number | undefined, number | undefined] | undefined;\n}",signature:{properties:[{key:"well",value:{name:"union",raw:"string | undefined",elements:[{name:"string"},{name:"undefined"}],required:!0}},{key:"selection",value:{name:"union",raw:"[number | undefined, number | undefined] | undefined",elements:[{name:"tuple",raw:"[number | undefined, number | undefined]",elements:[{name:"union",raw:"number | undefined",elements:[{name:"number"},{name:"undefined"}]},{name:"union",raw:"number | undefined",elements:[{name:"number"},{name:"undefined"}]}]},{name:"undefined"}],required:!0}}]}},description:""},lights:{required:!1,tsType:{name:"signature",type:"object",raw:"{\n headLight?: {\n intensity: number;\n color?: [number, number, number];\n };\n ambientLight?: {\n intensity: number;\n color?: [number, number, number];\n };\n pointLights?: [\n {\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n },\n ];\n\n directionalLights?: [\n {\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n },\n ];\n}",signature:{properties:[{key:"headLight",value:{name:"signature",type:"object",raw:"{\n intensity: number;\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]},required:!1}},{key:"ambientLight",value:{name:"signature",type:"object",raw:"{\n intensity: number;\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]},required:!1}},{key:"pointLights",value:{name:"tuple",raw:"[\n {\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n },\n]",elements:[{name:"signature",type:"object",raw:"{\n intensity: number;\n position: [number, number, number];\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"position",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]}}],required:!1}},{key:"directionalLights",value:{name:"tuple",raw:"[\n {\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n },\n]",elements:[{name:"signature",type:"object",raw:"{\n intensity: number;\n direction: [number, number, number];\n color?: [number, number, number];\n}",signature:{properties:[{key:"intensity",value:{name:"number",required:!0}},{key:"direction",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!0}},{key:"color",value:{name:"tuple",raw:"[number, number, number]",elements:[{name:"number"},{name:"number"},{name:"number"}],required:!1}}]}}],required:!1}}]}},description:""},children:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},getTooltip:{required:!1,tsType:{name:"signature",type:"function",raw:"(\n info: PickingInfo\n) => string | Record | null",signature:{arguments:[{type:{name:"PickingInfo"},name:"info"}],return:{name:"union",raw:"string | Record | null",elements:[{name:"string"},{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},{name:"null"}]}}},description:"",defaultValue:{value:'function defaultTooltip(info: PickingInfo) {\n if ((info as WellsPickInfo)?.logName) {\n return (info as WellsPickInfo)?.logName;\n } else if (info.layer?.id === "drawing-layer") {\n return (info as LayerPickInfo).propertyValue?.toFixed(2);\n }\n const feat = info.object as Feature;\n return feat?.properties?.["name"];\n}',computed:!1}},verticalScale:{required:!1,tsType:{name:"number"},description:"A vertical scale factor, used to scale items in the view vertically"}}}},"./packages/subsurface-viewer/src/layers/BoxSelectionLayer/boxSelectionLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return BoxSelectionLayer}});var _deck_gl_core_typed__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),_nebula_gl_layers__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/index.js"),_deck_gl_layers_typed__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/geojson-layer/geojson-layer.js"),_wells_wellsLayer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/src/layers/wells/wellsLayer.ts");class BoxSelectionLayer extends _deck_gl_core_typed__WEBPACK_IMPORTED_MODULE_2__.Z{setMultiSelection(pickingInfos){if(this.internalState){const data=pickingInfos.map((item=>item.object)).filter((item=>"Feature"===item.type));this.setState({pickingInfos:pickingInfos,data:data})}}renderLayers(){if(0==this.props.visible)return[];const positionFormat="OrthographicViewport"===this.context.viewport.constructor.name?"XY":"XYZ",geoJsonLayer=new _deck_gl_layers_typed__WEBPACK_IMPORTED_MODULE_3__.Z({id:"geoJson",data:this.state.data,pickable:!1,stroked:!1,positionFormat:positionFormat,pointRadiusUnits:"pixels",lineWidthUnits:"pixels",pointRadiusScale:this.props.pointRadiusScale?this.props.pointRadiusScale:1,lineWidthScale:this.props.lineWidthScale?this.props.lineWidthScale:1,getLineWidth:(0,_wells_wellsLayer__WEBPACK_IMPORTED_MODULE_1__.ap)("line",this.props.lineStyle?.width,-1),getPointRadius:(0,_wells_wellsLayer__WEBPACK_IMPORTED_MODULE_1__.ap)("point",this.props.wellHeadStyle?.size,2),getFillColor:[255,140,0],getLineColor:[255,140,0]});return[new _nebula_gl_layers__WEBPACK_IMPORTED_MODULE_0__.Xr(this.getSubLayerProps({id:"selection",selectionType:"rectangle",onSelect:({pickingInfos:pickingInfos})=>{this.setMultiSelection(pickingInfos),this.props.handleSelection&&this.props.handleSelection(pickingInfos)},layerIds:this.props.layerIds,getTentativeFillColor:()=>[255,0,255,100],getTentativeLineColor:()=>[0,0,255,255],getTentativeLineDashArray:()=>[0,0],lineWidthMinPixels:3})),geoJsonLayer]}}BoxSelectionLayer.layerName="BoxSelectionLayer",BoxSelectionLayer.defaultProps={name:"boxSelection",id:"boxSelection-layer",pickable:!0,visible:!0,selectedFeatureIndexes:[],data:{type:"FeatureCollection",features:[]}}},"./packages/subsurface-viewer/src/layers/axes/axesLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return AxesLayer}});var composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),orthographic_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orthographic-viewport.js"),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const defaultProps={name:"Box",id:"box-layer",coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,lines:[],color:[0,0,0,1]};class BoxLayer extends lib_layer.Z{initializeState(context){const{gl:gl}=context;this.setState(this._getModels(gl))}shouldUpdateState(){return!0}updateState({context:context}){const{gl:gl}=context;this.setState(this._getModels(gl))}_getModels(gl){const color=this.props.color.map((x=>(x??0)/255)),grids=new model.Z(gl,{id:`${this.props.id}-grids`,vs:"#version 300 es\n#define SHADER_NAME graph-layer-axis-vertex-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nvoid main(void) {\n vec3 position_commonspace = project_position(positions);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",fs:"#version 300 es\n#define SHADER_NAME graph-layer-fragment-shader\n\nprecision highp float;\n\nout vec4 fragColor;\n\nuniform vec4 uColor;\n\nvoid main(void) {\n fragColor = uColor;\n}\n",uniforms:{uColor:color},geometry:new geometry.Z({drawMode:esm.default.LINES,attributes:{positions:new Float32Array(this.props.lines)},vertexCount:this.props.lines.length/3}),modules:[project.Z],isInstanced:!1});return{model:grids,models:[grids].filter(Boolean),modelsByName:{grids:grids}}}}BoxLayer.layerName="BoxLayer",BoxLayer.defaultProps=defaultProps;var text_layer_text_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/text-layer.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js");class AxesLayer extends composite_layer.Z{rebuildData(reportBoundingBox){const bounds=(0,lodash.cloneDeep)(this.props.bounds);this.props.ZIncreasingDownwards&&(bounds[2]*=-1,bounds[5]*=-1),bounds[2]>bounds[5]&&([bounds[2],bounds[5]]=[bounds[5],bounds[2]]),bounds[0]>bounds[3]&&([bounds[0],bounds[3]]=[bounds[3],bounds[0]]),bounds[1]>bounds[4]&&([bounds[1],bounds[4]]=[bounds[4],bounds[1]]);const box_lines=function GetBoxLines(bounds){const x_min=bounds[0],x_max=bounds[3],y_min=bounds[1],y_max=bounds[4],z_min=bounds[2],z_max=bounds[5];return[x_min,y_min,z_min,x_max,y_min,z_min,x_min,y_min,z_min,x_min,y_max,z_min,x_min,y_max,z_min,x_max,y_max,z_min,x_max,y_max,z_min,x_max,y_min,z_min,x_min,y_min,z_max,x_max,y_min,z_max,x_min,y_min,z_max,x_min,y_max,z_max,x_min,y_max,z_max,x_max,y_max,z_max,x_max,y_max,z_max,x_max,y_min,z_max,x_min,y_min,z_min,x_min,y_min,z_max,x_max,y_min,z_min,x_max,y_min,z_max,x_max,y_max,z_min,x_max,y_max,z_max,x_min,y_max,z_min,x_min,y_max,z_max]}(bounds),is_orthographic=this.context.viewport.constructor===orthographic_viewport.Z,[tick_lines,tick_labels]=function GetTickLines(isZIncreasingDownwards,is_orthographic,bounds,viewport){const ndecimals=0,n_minor_ticks=3,x_min=bounds[0],x_max=bounds[3],y_min=bounds[1],y_max=bounds[4],z_min=bounds[2],z_max=bounds[5],lines=[],tick_labels=[];let x_tick=0,y_tick=0,z_tick=0;const delta=(x_max-x_min+(y_max-y_min)+(z_max-z_min))/3*.025,Lz=LineLengthInPixels([x_min,y_min,z_min],[x_min,y_min,z_max],viewport);if(!is_orthographic){const z_ticks=GetTicks(z_min,z_max,Lz);x_tick=x_min,y_tick=y_min;for(let i=0;i1){const tick1=z_ticks[0],d=(z_ticks[1]-tick1)/(n_minor_ticks+1),z_start=tick1;let i=0;for(;z_start+(i+1)*dz_min;){const tick=z_start-(i+1)*d;tick_labels.push(""),i++,lines.push(x_tick,y_tick,tick);const x=-.5*delta*Math.cos(.7853925),y=-.5*delta*Math.sin(.7853925);lines.push(x_tick+x,y_tick+y,tick)}}}const Lx=LineLengthInPixels([x_min,y_min,z_min],[x_max,y_min,z_min],viewport),x_ticks=GetTicks(x_min,x_max,Lx);y_tick=y_min,z_tick=z_min;for(let i=0;i1){const tick1=x_ticks[0],d=(x_ticks[1]-tick1)/(n_minor_ticks+1),x_start=tick1;let i=0;for(;x_start+(i+1)*dx_min;){const tick=x_start-(i+1)*d;tick_labels.push(""),i++,lines.push(tick,y_tick,z_tick);const z=0,y=-.5*delta;lines.push(tick,y_tick+y,z_tick+z)}}const Ly=LineLengthInPixels([x_min,y_min,z_min],[x_min,y_max,z_min],viewport),y_ticks=GetTicks(y_min,y_max,Ly);for(let i=0;i1){const tick1=y_ticks[0],d=(y_ticks[1]-tick1)/(n_minor_ticks+1),y_start=tick1;let i=0;for(;y_start+(i+1)*dy_min;){const tick=y_start-(i+1)*d;tick_labels.push(""),i++,lines.push(x_tick,tick,z_tick);const z=0,x=-.5*delta;lines.push(x_tick+x,tick,z_tick+z)}}}return[lines,tick_labels]}(this.props.ZIncreasingDownwards,is_orthographic,bounds,this.context.viewport),textlayerData=function maketextLayerData(is_orthographic,tick_lines,tick_labels,bounds,labelFontSize){const x_min=bounds[0],x_max=bounds[3],y_min=bounds[1],y_max=bounds[4],z_min=bounds[2],z_max=bounds[5],dx=Math.abs(x_max-x_min),dy=Math.abs(y_max-y_min),dz=Math.abs(z_max-z_min),offset=(dx+dy+dz)/3*.1,data=[{label:"X",from:[0,0,0],to:[x_max+offset,y_min,z_min],size:labelFontSize??26},{label:"Y",from:[0,0,0],to:[x_min,y_max+offset,z_min],size:labelFontSize??26}];if(!is_orthographic){const z_axis_annotaion={label:"Z",from:[0,0,0],to:[x_min,y_min,z_max+offset],size:labelFontSize??26};data.push(z_axis_annotaion)}for(let i=0;ithis.getLabelPosition(d),getText:d=>d.label,sizeUnits:"pixels",getSize:d=>d.size,getAngle:0,getTextAnchor:d=>this.getAnchor(d,is_orthographic),getAlignmentBaseline:d=>this.getBaseLine(d,is_orthographic),coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,getColor:this.props.labelColor||[0,0,0,255]}))]}}function LineLengthInPixels(p0,p1,viewport){const screen_from=viewport.project(p0),screen_to=viewport.project(p1),v=[screen_from[0]-screen_to[0],screen_from[1]-screen_to[1],screen_from[2]-screen_to[2]];return Math.sqrt(v[0]*v[0]+v[1]*v[1])}function GetTicks(min,max,axis_pixel_length){let step=Math.min(Math.round(axis_pixel_length/100)+1,20);const range=max-min,delta=Math.abs(range)/step;let decade=1;if(delta>=10){const logde=Math.log10(delta),pot=Math.floor(logde);decade=Math.pow(10,pot)}let scaled_delta=Math.round(delta/decade);3==scaled_delta?scaled_delta=2:4==scaled_delta||6==scaled_delta||7==scaled_delta?scaled_delta=5:scaled_delta>7?scaled_delta=10:scaled_delta<1&&(scaled_delta=1);const incr=scaled_delta*decade,start=Math.ceil(min/incr)*incr,stop=Math.floor(max/incr)*incr,calc_step=Math.floor(Math.abs(stop-start)/incr);step=calc_step>0?calc_step:0;const ticks=[];for(let i=0;i<=step;i++){const x=start+i*incr;ticks.push(x)}return ticks}AxesLayer.layerName="AxesLayer",AxesLayer.defaultProps={"@@type":"AxesLayer",name:"Axes",id:"axes-layer",visible:!0,ZIncreasingDownwards:!0}},"./packages/subsurface-viewer/src/layers/grid3d/grid3dLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{W:function(){return TGrid3DColoringMode},Z:function(){return Grid3DLayer}});var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),load=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js"),json_loader=__webpack_require__("./node_modules/@loaders.gl/loader-utils/dist/esm/json-loader.js"),workerpool=__webpack_require__("./node_modules/workerpool/dist/workerpool.js"),workerpool_default=__webpack_require__.n(workerpool),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js");var shader_modules=__webpack_require__("./packages/subsurface-viewer/src/layers/shader_modules/index.ts");const DEFAULT_TEXTURE_PARAMETERS={[esm.default.TEXTURE_MIN_FILTER]:esm.default.LINEAR,[esm.default.TEXTURE_MAG_FILTER]:esm.default.LINEAR,[esm.default.TEXTURE_WRAP_S]:esm.default.CLAMP_TO_EDGE,[esm.default.TEXTURE_WRAP_T]:esm.default.CLAMP_TO_EDGE},DISCRETE_TEXTURE_PARAMETERS={[esm.default.TEXTURE_MIN_FILTER]:esm.default.NEAREST,[esm.default.TEXTURE_MAG_FILTER]:esm.default.NEAREST,[esm.default.TEXTURE_WRAP_S]:esm.default.CLAMP_TO_EDGE,[esm.default.TEXTURE_WRAP_T]:esm.default.CLAMP_TO_EDGE},defaultProps={colorMapName:"",colorMapClampColor:[200,200,200],coloringMode:0,coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,propertyValueRange:[0,1],depthTest:!0,ZIncreasingDownwards:!0};class PrivateLayer extends lib_layer.Z{get isLoaded(){return this.state.isLoaded??!1}initializeState(context){const{gl:gl}=context,[model_mesh,mesh_lines_model]=this._getModels(gl);this.setState({models:[model_mesh,mesh_lines_model],isLoaded:!1})}shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags}){return super.shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags})||changeFlags.propsOrDataChanged}updateState({context:context}){this.initializeState(context)}_getModels(gl){return[new model.Z(gl,{id:`${this.props.id}-mesh`,vs:"#version 300 es\n#define SHADER_NAME grid3d-vertex-shader\nprecision highp float;\n\nattribute vec3 positions;\nattribute float properties;\nuniform int coloringMode;\n\n// Outputs to fragment shader\nout vec3 cameraPosition;\nout vec4 position_commonspace;\nout float property;\n\nflat out int vertexIndex;\n\nuniform bool ZIncreasingDownwards;\n\nconst vec3 pickingColor = vec3(1.0, 1.0, 0.0);\n\nvoid main(void) { \n \n vertexIndex = gl_VertexID;\n cameraPosition = project_uCameraPosition; \n geometry.pickingColor = pickingColor;\n\n vec3 position = positions;\n position.z *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n switch(coloringMode) {\n case 0: property = properties; break;\n case 1: property = position.x; break;\n case 2: property = position.y; break;\n case 3: property = position.z; break;\n default: property = properties; break;\n }\n\n position_commonspace = vec4(project_position(position), 0.0);\n gl_Position = project_common_position_to_clipspace(position_commonspace);\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n",fs:'#version 300 es\n#define SHADER_NAME grid3d-fragment-shader\n\nprecision highp float;\n\nin vec3 cameraPosition;\nin vec4 position_commonspace;\nin float property;\n\nflat in int vertexIndex;\n\nuniform sampler2D colormap;\n\nuniform float colorMapRangeMin;\nuniform float colorMapRangeMax;\n\nuniform bool isColoringDiscrete;\nuniform float colorMapSize;\n\nuniform vec3 colorMapClampColor;\nuniform bool isClampColor;\nuniform bool isColorMapClampColorTransparent;\n\n// Calculate color from propertyValue using continuous colormap.\nvec4 getContinuousPropertyColor (float propertyValue) {\n\n vec4 color = vec4(1.0, 1.0, 1.0, 1.0);\n float x = (propertyValue - colorMapRangeMin) / (colorMapRangeMax - colorMapRangeMin);\n if (x < 0.0 - 1e-4 || x > 1.0 + 1e-4) {\n // Out of range. Use clampcolor.\n if (isClampColor) {\n color = vec4(colorMapClampColor.rgb, 1.0);\n\n }\n else if (isColorMapClampColorTransparent) {\n discard;\n }\n else {\n // Use min/max color to clamp.\n x = clamp (x, 0.0, 1.0); \n color = texture2D(colormap, vec2(x, 0.5));\n }\n }\n else {\n color = texture2D(colormap, vec2(x, 0.5));\n }\n return color;\n}\n\n// Calculate color from propertyValue using discrete colormap.\nvec4 getDiscretePropertyColor (float propertyValue) {\n\n vec4 color = vec4(1.0, 1.0, 1.0, 1.0);\n float tolerance = (1.0 / colorMapSize) * 0.5;\n \n if (propertyValue < colorMapRangeMin - tolerance || propertyValue > colorMapRangeMax + tolerance) {\n // Out of range. Use clampcolor.\n if (isClampColor) {\n color = vec4(colorMapClampColor.rgb, 1.0);\n\n }\n else if (isColorMapClampColorTransparent) {\n discard;\n }\n else {\n // Use min/max color to clamp.\n float p = clamp (propertyValue, colorMapRangeMin, colorMapRangeMax);\n float x = p / colorMapSize;\n color = texture2D(colormap, vec2(x, 0.5));\n }\n }\n else {\n float x = propertyValue / colorMapSize;\n color = texture2D(colormap, vec2(x + tolerance, 0.5));\n }\n return color;\n}\n\nvec4 getPropertyColor (float propertyValue) {\n if(isColoringDiscrete) {\n return getDiscretePropertyColor (propertyValue);\n }\n return getContinuousPropertyColor (propertyValue);\n}\n\nvoid main(void) {\n\n if (picking_uActive && !picking_uAttribute) {\n gl_FragColor = encodeVertexIndexToRGB(vertexIndex); \n return;\n }\n\n vec3 normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n \n vec4 color = getPropertyColor(property);\n \n // Use two sided phong lighting. This has no effect if "material" property is not set.\n vec3 lightColor = getPhongLightColor(color.rgb, cameraPosition, position_commonspace.xyz, normal);\n gl_FragColor = vec4(lightColor, 1.0);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n',geometry:new geometry.Z({drawMode:this.props.mesh.drawMode,attributes:{positions:this.props.mesh.attributes.positions,properties:this.props.mesh.attributes.properties},vertexCount:this.props.mesh.vertexCount}),modules:[project.Z,picking.Z,shader_modules.jA,shader_modules.hC],isInstanced:!1}),new model.Z(gl,{id:`${this.props.id}-lines`,vs:"#version 300 es\n#define SHADER_NAME vertex-lines-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nout vec4 position_commonspace;\n\nuniform bool ZIncreasingDownwards;\n\nvoid main(void) {\n vec3 position = positions;\n position[2] *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n vec3 position_commonspace = project_position(position);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",fs:"#version 300 es\n#define SHADER_NAME graph-layer-fragment-shader\n\nprecision highp float;\n\nout vec4 fragColor;\n\nvoid main(void) {\n \n // Picking pass.\n if (picking_uActive) {\n discard;\n return;\n }\n\n fragColor = vec4(0.0, 0.0, 0.0, 1.0);\n}\n",geometry:new geometry.Z(this.props.meshLines),modules:[project.Z,picking.Z],isInstanced:!1})]}draw(args){if(!this.state.models)return;const{uniforms:uniforms,context:context}=args,{gl:gl}=context,[model_mesh,mesh_lines_model]=this.state.models;gl.enable(gl.POLYGON_OFFSET_FILL),gl.polygonOffset(1,1),this.props.depthTest||gl.disable(gl.DEPTH_TEST);const propertyUniforms=this.getPropertyUniforms(context);model_mesh.setUniforms({...uniforms,...propertyUniforms,coloringMode:this.props.coloringMode,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),gl.disable(gl.POLYGON_OFFSET_FILL),this.props.gridLines&&mesh_lines_model.setUniforms({...uniforms,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),this.props.depthTest||gl.enable(gl.DEPTH_TEST),this.state.isLoaded||this.setState({...this.state,isLoaded:!0})}decodePickingColor(){return this.nullPickingColor()}encodePickingColor(){return this.nullPickingColor()}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[],vertexIndex=65536*info.color[0]+256*info.color[1]+info.color[2];if(void 0!==info.coordinate?.[2]){const depth=this.props.ZIncreasingDownwards?-info.coordinate[2]:info.coordinate[2];layer_properties.push((0,layerTools.ws)("Depth",depth))}const propertyIndex=this.props.mesh.attributes.properties.value[vertexIndex];if(Number.isFinite(propertyIndex))if(this.props.discretePropertyValueNames){const propertyText=this.props.discretePropertyValueNames[propertyIndex].name??propertyIndex,propertyValue=this.props.discretePropertyValueNames[propertyIndex].value??propertyIndex;layer_properties.push((0,layerTools.ws)("Property",propertyText)),layer_properties.push((0,layerTools.ws)("Value",propertyValue))}else layer_properties.push((0,layerTools.ws)("Property",propertyIndex));return{...info,properties:layer_properties}}getDefaultImageData(){return{data:new Uint8Array([0,0,0]),count:1,parameters:DISCRETE_TEXTURE_PARAMETERS,isColoringDiscrete:!0}}getImageData(){if(this.props.colorMapFunction instanceof Uint8Array){const count=this.props.colorMapFunction.length/3;if(0===count)return this.getDefaultImageData();const parameters=this.props.coloringMode===TGrid3DColoringMode.Property?DISCRETE_TEXTURE_PARAMETERS:DEFAULT_TEXTURE_PARAMETERS,isColoringDiscrete=this.props.coloringMode===TGrid3DColoringMode.Property;return{data:this.props.colorMapFunction,count:count,parameters:parameters,isColoringDiscrete:isColoringDiscrete}}return{data:(0,layerTools.n$)(this.props.colorMapName,this.context.userData.colorTables,this.props.colorMapFunction),count:256,parameters:DEFAULT_TEXTURE_PARAMETERS,isColoringDiscrete:!1}}getPropertyUniforms(context){const valueRangeMin=this.props.propertyValueRange?.[0]??0,valueRangeMax=this.props.propertyValueRange?.[1]??1,colorMapRangeMin=this.props.colorMapRange?.[0]??valueRangeMin,colorMapRangeMax=this.props.colorMapRange?.[1]??valueRangeMax,isClampColor=void 0!==this.props.colorMapClampColor&&!0!==this.props.colorMapClampColor&&!1!==this.props.colorMapClampColor;let colorMapClampColor=isClampColor?this.props.colorMapClampColor:[0,0,0];colorMapClampColor=colorMapClampColor.map((x=>(x??0)/255));const isColorMapClampColorTransparent=!1===this.props.colorMapClampColor,imageData=this.getImageData();return{colormap:new texture_2d.Z(context.gl,{width:imageData.count,height:1,format:esm.default.RGB,data:imageData.data,parameters:imageData.parameters}),colorMapRangeMin:colorMapRangeMin,colorMapRangeMax:colorMapRangeMax,colorMapClampColor:colorMapClampColor,isColorMapClampColorTransparent:isColorMapClampColorTransparent,isClampColor:isClampColor,isColoringDiscrete:imageData.isColoringDiscrete,colorMapSize:imageData.count}}}function makeFullMesh(e){class Node{constructor(i,x,y){this.i=i,this.x=x,this.y=y,this.prev=this,this.next=this,this.z=0,this.prevZ=this,this.nextZ=this,this.steiner=!1}}function earcut(data,dim){dim=dim||2;const outerLen=data.length,outerNode=function linkedList(data,start,end,dim,clockwise){let i,last=null;if(clockwise===function signedArea(data,start,end,dim){let sum=0;for(let i=start,j=end-dim;i0)for(i=start;i=start;i-=dim)last=insertNode(i,data[i],data[i+1],last);last&&equals(last,last.next)&&(removeNode(last),last=last.next);return last}(data,0,outerLen,dim,!0),triangles=[];if(!outerNode||outerNode.next===outerNode.prev)return triangles;let x,y,minX=Number.POSITIVE_INFINITY,minY=Number.POSITIVE_INFINITY,maxX=Number.NEGATIVE_INFINITY,maxY=Number.NEGATIVE_INFINITY,invSize=0;if(data.length>80*dim){minX=maxX=data[0],minY=maxY=data[1];for(let i=dim;imaxX&&(maxX=x),y>maxY&&(maxY=y);invSize=Math.max(maxX-minX,maxY-minY),invSize=0!==invSize?32767/invSize:0}return earcutLinked(outerNode,triangles,dim,minX,minY,invSize,0),triangles;function filterPoints(start,end){if(!start)return start;end||(end=start);let again,p=start;do{if(again=!1,p.steiner||!equals(p,p.next)&&0!==area(p.prev,p,p.next))p=p.next;else{if(removeNode(p),p=end=p.prev,p===p.next)break;again=!0}}while(again||p!==end);return end}function earcutLinked(ear,triangles,dim,minX,minY,invSize,pass){if(!ear)return;!pass&&invSize&&function indexCurve(start,minX,minY,invSize){let p=start;do{0===p.z&&(p.z=zOrder(p.x,p.y,minX,minY,invSize)),p.prevZ=p.prev,p.nextZ=p.next,p=p.next}while(p!==start);p.prevZ&&(p.prevZ.nextZ=null);p.prevZ=null,function sortLinked(list){let i,p,q,e,tail,numMerges,pSize,qSize,inSize=1;do{for(p=list,list=null,tail=null,numMerges=0;p;){for(numMerges++,q=p,pSize=0,i=0;i0||qSize>0&&q;)p&&0!==pSize&&(0===qSize||!q||p.z<=q.z)?(e=p,p=p?.nextZ,pSize--):(e=q,q=q?.nextZ,qSize--),tail?tail.nextZ=e:list=e,e?.prevZ&&(e.prevZ=tail),tail=e;p=q}tail&&(tail.nextZ=null),inSize*=2}while(numMerges>1);return list}(p)}(ear,minX,minY,invSize);let prev,next,stop=ear;for(;ear.prev!==ear.next;)if(prev=ear.prev,next=ear.next,invSize?isEarHashed(ear,minX,minY,invSize):isEar(ear))triangles.push(prev.i/dim|0),triangles.push(ear.i/dim|0),triangles.push(next.i/dim|0),removeNode(ear),ear=next.next,stop=next.next;else if((ear=next)===stop){pass?1===pass?earcutLinked(ear=cureLocalIntersections(filterPoints(ear),triangles,dim),triangles,dim,minX,minY,invSize,2):2===pass&&splitEarcut(ear,triangles,dim,minX,minY,invSize):earcutLinked(filterPoints(ear),triangles,dim,minX,minY,invSize,1);break}}function getMin(a,b,c){return ab?a>c?a:c:b>c?b:c}function triangleBBox(ax,bx,cx,ay,by,cy){return[getMin(ax,bx,cx),getMin(ay,by,cy),getMax(ax,bx,cx),getMax(ay,by,cy)]}function isEar(ear){const a=ear.prev,b=ear,c=ear.next;if(area(a,b,c)>=0)return!1;const ax=a.x,bx=b.x,cx=c.x,ay=a.y,by=b.y,cy=c.y,[x0,y0,x1,y1]=triangleBBox(ax,bx,cx,ay,by,cy);let p=c.next;for(;p!==a;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function isEarHashed(ear,minX,minY,invSize){const a=ear.prev,b=ear,c=ear.next;if(area(a,b,c)>=0)return!1;const ax=a.x,bx=b.x,cx=c.x,ay=a.y,by=b.y,cy=c.y,[x0,y0,x1,y1]=triangleBBox(ax,bx,cx,ay,by,cy),minZ=zOrder(x0,y0,minX,minY,invSize),maxZ=zOrder(x1,y1,minX,minY,invSize);let p=ear.prevZ,n=ear.nextZ;for(;p&&p.z>=minZ&&n&&n.z<=maxZ;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&p!==a&&p!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,n.x>=x0&&n.x<=x1&&n.y>=y0&&n.y<=y1&&n!==a&&n!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,n.x,n.y)&&area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}for(;p&&p.z>=minZ;){if(p.x>=x0&&p.x<=x1&&p.y>=y0&&p.y<=y1&&p!==a&&p!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;n&&n.z<=maxZ;){if(n.x>=x0&&n.x<=x1&&n.y>=y0&&n.y<=y1&&n!==a&&n!==c&&pointInTriangle(ax,ay,bx,by,cx,cy,n.x,n.y)&&area(n.prev,n,n.next)>=0)return!1;n=n.nextZ}return!0}function cureLocalIntersections(start,triangles,dim){let p=start;do{const a=p.prev,b=p.next.next;!equals(a,b)&&intersects(a,p,p.next,b)&&locallyInside(a,b)&&locallyInside(b,a)&&(triangles.push(a.i/dim|0),triangles.push(p.i/dim|0),triangles.push(b.i/dim|0),removeNode(p),removeNode(p.next),p=start=b),p=p.next}while(p!==start);return filterPoints(p)}function splitEarcut(start,triangles,dim,minX,minY,invSize){let a=start;do{let b=a.next.next;for(;b!==a.prev;){if(a.i!==b.i&&isValidDiagonal(a,b)){let c=splitPolygon(a,b);return a=filterPoints(a,a.next),c=filterPoints(c,c.next),earcutLinked(a,triangles,dim,minX,minY,invSize,0),void earcutLinked(c,triangles,dim,minX,minY,invSize,0)}b=b.next}a=a.next}while(a!==start)}function zOrder(x,y,minX,minY,invSize){return(x=1431655765&((x=858993459&((x=252645135&((x=16711935&((x=(x-minX)*invSize|0)|x<<8))|x<<4))|x<<2))|x<<1))|(y=1431655765&((y=858993459&((y=252645135&((y=16711935&((y=(y-minY)*invSize|0)|y<<8))|y<<4))|y<<2))|y<<1))<<1}function pointInTriangle(ax,ay,bx,by,cx,cy,px,py){return(cx-px)*(ay-py)>=(ax-px)*(cy-py)&&(ax-px)*(by-py)>=(bx-px)*(ay-py)&&(bx-px)*(cy-py)>=(cx-px)*(by-py)}function isValidDiagonal(a,b){return a.next.i!==b.i&&a.prev.i!==b.i&&!function intersectsPolygon(a,b){let p=a;do{if(p.i!==a.i&&p.next.i!==a.i&&p.i!==b.i&&p.next.i!==b.i&&intersects(p,p.next,a,b))return!0;p=p.next}while(p!==a);return!1}(a,b)&&(locallyInside(a,b)&&locallyInside(b,a)&&function middleInside(a,b){const px=(a.x+b.x)/2,py=(a.y+b.y)/2;let p=a,inside=!1;do{p.y>py!=p.next.y>py&&p.next.y!==p.y&&px<(p.next.x-p.x)*(py-p.y)/(p.next.y-p.y)+p.x&&(inside=!inside),p=p.next}while(p!==a);return inside}(a,b)&&(area(a.prev,a,b.prev)||area(a,b.prev,b))||equals(a,b)&&area(a.prev,a,a.next)>0&&area(b.prev,b,b.next)>0)}function area(p,q,r){return(q.y-p.y)*(r.x-q.x)-(q.x-p.x)*(r.y-q.y)}function equals(p1,p2){return p1.x===p2.x&&p1.y===p2.y}function intersects(p1,q1,p2,q2){const o1=sign(area(p1,q1,p2)),o2=sign(area(p1,q1,q2)),o3=sign(area(p2,q2,p1)),o4=sign(area(p2,q2,q1));return o1!==o2&&o3!==o4||(!(0!==o1||!onSegment(p1,p2,q1))||(!(0!==o2||!onSegment(p1,q2,q1))||(!(0!==o3||!onSegment(p2,p1,q2))||!(0!==o4||!onSegment(p2,q1,q2)))))}function onSegment(p,q,r){return q.x<=Math.max(p.x,r.x)&&q.x>=Math.min(p.x,r.x)&&q.y<=Math.max(p.y,r.y)&&q.y>=Math.min(p.y,r.y)}function sign(num){return num>0?1:num<0?-1:0}function locallyInside(a,b){return area(a.prev,a,a.next)<0?area(a,b,a.next)>=0&&area(a,a.prev,b)>=0:area(a,b,a.prev)<0||area(a,a.next,b)<0}function splitPolygon(a,b){const a2=new Node(a.i,a.x,a.y),b2=new Node(b.i,b.x,b.y),an=a.next,bp=b.prev;return a.next=b,b.prev=a,a2.next=an,an.prev=a2,b2.next=a2,a2.prev=b2,bp.next=b2,b2.prev=bp,b2}function insertNode(i,x,y,last){const p=new Node(i,x,y);return last?(p.next=last.next,p.prev=last,last.next.prev=p,last.next=p):(p.prev=p,p.next=p),p}function removeNode(p){p.next.prev=p.prev,p.prev.next=p.next,p.prevZ&&(p.prevZ.nextZ=p.nextZ),p.nextZ&&(p.nextZ.prevZ=p.prevZ)}}const get3DPoint=(points,index)=>points.slice(3*index,3*(index+1)),substractPoints=(a,b)=>[a[0]-b[0],a[1]-b[1],a[2]-b[2]],crossProduct=(a,b)=>[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]],dotProduct=(a,b)=>a[0]*b[0]+a[1]*b[1]+a[2]*b[2],normalize=a=>{const len=Math.sqrt(dotProduct(a,a));return[a[0]/len,a[1]/len,a[2]/len]},projectPoint=(u,v,p)=>[dotProduct(p,u),dotProduct(p,v)],projectPolygon=points=>{const p0=get3DPoint(points,0),p1=get3DPoint(points,1),p2=get3DPoint(points,2),v1=substractPoints(p1,p0),v2=substractPoints(p2,p0),normal=normalize(crossProduct(v1,v2)),u=normalize(v1),v=normalize(crossProduct(normal,u)),res=[],count=points.length/3;for(let i=0;i{const i1=polys[index0],i2=polys[index1];out.push(i1,i2)},t0=performance.now(),params=e.data,polys=params.polys,properties=params.properties,vertexProperties=[],triang_points=[],line_indices=[];let propertyValueRangeMin=99999999,propertyValueRangeMax=-99999999,pn=0,i=0;for(;ipropertyValueRangeMax?propertyValue:propertyValueRangeMax);for(let j=i+1;j0&&subLayers.every((layer=>layer.isLoaded)),isFinished=this.state?.isFinishedLoading??!1;return isLoaded&&isFinished}rebuildData(reportBoundingBox){load_data(this.props.pointsData,this.props.polysData,this.props.propertiesData,this.props.coloringMode===TGrid3DColoringMode.Property).then((([points,polys,properties])=>{const bbox=function GetBBox(points){let xmax=-99999999,ymax=-99999999,zmax=-99999999,xmin=99999999,ymin=99999999,zmin=99999999;for(let i=0;ixmax?points[3*i+0]:xmax,xmin=points[3*i+0]ymax?points[3*i+1]:ymax,ymin=points[3*i+1]zmax?points[3*i+2]:zmax,zmin=points[3*i+2]{const[mesh,mesh_lines,propertyValueRange]=e,legend={discrete:!1,valueRange:this.props.colorMapRange??propertyValueRange,colorName:this.props.colorMapName,title:"MapLayer",colorMapFunction:this.props.colorMapFunction};this.setState({mesh:mesh,mesh_lines:mesh_lines,propertyValueRange:propertyValueRange,legend:legend,bbox:bbox}),void 0!==this.props.reportBoundingBox&&reportBoundingBox&&this.props.reportBoundingBox({layerBoundingBox:bbox}),this.setState({...this.state,isFinishedLoading:!0}),function onTerminateWorker(){const stats=pool.stats();0===stats.busyWorkers&&0===stats.pendingTasks&&pool.terminate()}()}))}))}initializeState(){this.setState({...this.state,isFinishedLoading:!1});this.rebuildData(!0)}updateState({props:props,oldProps:oldProps}){if(!((0,lodash.isEqual)(props.pointsData,oldProps.pointsData)&&(0,lodash.isEqual)(props.polysData,oldProps.polysData)&&(0,lodash.isEqual)(props.propertiesData,oldProps.propertiesData)&&(0,lodash.isEqual)(props.gridLines,oldProps.gridLines)&&(0,lodash.isEqual)(props.ZIncreasingDownwards,oldProps.ZIncreasingDownwards))){this.setState({...this.state,isFinishedLoading:!1});const reportBoundingBox=!1;this.rebuildData(reportBoundingBox)}}renderLayers(){if(1===Object.keys(this.state).length)return[];return[new PrivateLayer(this.getSubLayerProps({mesh:this.state.mesh,meshLines:this.state.mesh_lines,pickable:this.props.pickable,colorMapName:this.props.colorMapName,colorMapRange:this.props.colorMapRange,colorMapClampColor:this.props.colorMapClampColor,colorMapFunction:this.props.colorMapFunction,coloringMode:this.props.coloringMode,gridLines:this.props.gridLines,propertyValueRange:this.getPropertyValueRange(),discretePropertyValueNames:this.props.discretePropertyValueNames,material:this.props.material,depthTest:this.props.depthTest,ZIncreasingDownwards:this.props.ZIncreasingDownwards}))]}getPropertyValueRange(){const bbox=this.state.bbox,zSign=this.props.ZIncreasingDownwards?-1:1;switch(this.props.coloringMode){case TGrid3DColoringMode.X:return[bbox[0],bbox[3]];case TGrid3DColoringMode.Y:return[bbox[1],bbox[4]];case TGrid3DColoringMode.Z:return[zSign*bbox[2],zSign*bbox[5]];default:return this.state.propertyValueRange}}}Grid3DLayer.layerName="Grid3DLayer",Grid3DLayer.defaultProps=grid3dLayer_defaultProps},"./packages/subsurface-viewer/src/layers/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Axes2DLayer:function(){return Axes2DLayer},AxesLayer:function(){return axesLayer.Z},BoxSelectionLayer:function(){return boxSelectionLayer.Z},ColormapLayer:function(){return ColormapLayer},DrawingLayer:function(){return DrawingLayer},FaultPolygonsLayer:function(){return FaultPolygonsLayer},Grid3DLayer:function(){return grid3dLayer.Z},Hillshading2DLayer:function(){return Hillshading2DLayer},MapLayer:function(){return mapLayer.Z},NorthArrow3DLayer:function(){return northArrow3DLayer.Z},PieChartLayer:function(){return PieChartLayer},PointsLayer:function(){return PointsLayer},PolylinesLayer:function(){return polylinesLayer.Z},SelectableGeoJsonLayer:function(){return SelectableGeoJsonLayer},TriangleLayer:function(){return TriangleLayer},UnfoldedGeoJsonLayer:function(){return UnfoldedGeoJsonLayer},WellMarkersLayer:function(){return WellMarkersLayer},WellMarkersLayerProps:function(){return WellMarkersLayer},WellsLayer:function(){return wellsLayer.ZP},abscissaTransform:function(){return abscissaTransform.q}});var bitmap_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/bitmap-layer/bitmap-layer.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),shader_modules=__webpack_require__("./packages/subsurface-viewer/src/layers/shader_modules/index.ts");function decodeRGB([r,g,b],decoder,remapToRange){const{rgbScaler:rgbScaler,floatScaler:floatScaler,offset:offset,step:step}=decoder,[rScale,gScale,bScale]=rgbScaler;let decodedValue=((r*=256*rScale*256)+(g*=256*gScale)+(b*=bScale)+offset)*floatScaler;if(step>0&&(decodedValue=Math.floor(decodedValue/step+.5)*step),remapToRange){const[min,max]=remapToRange;decodedValue=decodedValue*(max-min)+min}return decodedValue}var layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts");var dist=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/index.js");const DEFAULT_TEXTURE_PARAMETERS={[esm.default.TEXTURE_MIN_FILTER]:esm.default.LINEAR_MIPMAP_LINEAR,[esm.default.TEXTURE_MAG_FILTER]:esm.default.LINEAR,[esm.default.TEXTURE_WRAP_S]:esm.default.CLAMP_TO_EDGE,[esm.default.TEXTURE_WRAP_T]:esm.default.CLAMP_TO_EDGE};function getImageData(colorMapName,colorTables,colorMapFunction){const isColorMapFunctionDefined=void 0!==colorMapFunction,data=new Uint8Array(768);for(let i=0;i<256;i++){const value=i/255,rgb=isColorMapFunctionDefined?colorMapFunction(i/255):(0,dist.cF)(value,colorMapName,colorTables);let color=[];null!=rgb&&(color=Array.isArray(rgb)?rgb:[rgb.r,rgb.g,rgb.b]),data[3*i+0]=color[0],data[3*i+1]=color[1],data[3*i+2]=color[2]}return data}const defaultProps={"@@type":"ColormapLayer",name:"Property map",id:"colormap-layer",pickable:!0,visible:!0,valueRange:{type:"array",value:[0,1]},colorMapRange:{type:"array"},valueDecoder:{rgbScaler:[1,1,1],floatScaler:1/16777215,offset:0,step:0},rotDeg:0,colorMapName:"Rainbow"};class ColormapLayer extends bitmap_layer.Z{initializeState(){this.setState({isLoaded:!1}),super.initializeState()}draw({moduleParameters:moduleParameters,uniforms:uniforms,context:context}){if(!this.state.isLoaded&&(this.setState({isLoaded:!0}),void 0!==this.props.reportBoundingBox)){const xMin=this.props.bounds[0],yMin=this.props.bounds[1],zMin=1,xMax=this.props.bounds[2],yMax=this.props.bounds[3],zMax=-1;this.props.reportBoundingBox({layerBoundingBox:[xMin,yMin,zMin,xMax,yMax,zMax]})}const mergedModuleParams={...moduleParameters,valueDecoder:{...defaultProps.valueDecoder,...moduleParameters.valueDecoder},modelMatrix:(0,layerTools.RT)(this.props.rotDeg,this.props.bounds[0],this.props.bounds[3])};super.setModuleParameters(mergedModuleParams);const valueRangeMin=this.props.valueRange[0]??0,valueRangeMax=this.props.valueRange[1]??1,colorMapRangeMin=this.props.colorMapRange?.[0]??valueRangeMin,colorMapRangeMax=this.props.colorMapRange?.[1]??valueRangeMax;super.draw({uniforms:{...uniforms,colormap:new texture_2d.Z(context.gl,{width:256,height:1,format:esm.default.RGB,data:getImageData(this.props.colorMapName,this.context.userData.colorTables,this.props.colorMapFunction),parameters:DEFAULT_TEXTURE_PARAMETERS}),valueRangeMin:valueRangeMin,valueRangeMax:valueRangeMax,colorMapRangeMin:colorMapRangeMin,colorMapRangeMax:colorMapRangeMax},moduleParameters:mergedModuleParams})}getShaders(){const parentShaders=super.getShaders();return parentShaders.fs="#define SHADER_NAME colormap-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec2 vTexCoord;\n\nuniform sampler2D bitmapTexture; // Property map\nuniform sampler2D colormap;\n\nuniform float opacity;\n\nvoid main(void) {\n vec4 bitmapColor = texture2D(bitmapTexture, vTexCoord);\n\n // If it's a picking pass, we just return the raw property map value.\n if (picking_uActive) {\n gl_FragColor = bitmapColor;\n return;\n }\n\n // Decode the RGB value into a float. See decoder.fs.glsl for more details.\n float val = decode_rgb2float(bitmapColor.rgb);\n // The resulting val will be in [0, 1] interval, so we can use it directly as a texture coord\n // to sample from the colormap.\n // 0 => Leftmost color in the colormap, 1 => rightmost color, linearly interpolated in between.\n vec4 color = texture2D(colormap, vec2(val, 0.5));\n\n // The final pixel opacity is the combination of the user provided image-wide opacity,\n // the colormap opacity at the sampled pixel and the property map opacity of the sampled pixel.\n gl_FragColor = vec4(color.rgb, color.a * bitmapColor.a * opacity);\n\n // Support for existing functionality that comes from the BitmapLayer, such as desaturate, tintColor etc.\n // See https://deck.gl/docs/api-reference/layers/bitmap-layer#render-options for more details.\n geometry.uv = vTexCoord;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n\n}\n",parentShaders.modules.push(shader_modules.xv),parentShaders}getPickingInfo({info:info}){if(this.state.pickingDisabled||!info.color)return info;const mergedDecoder={...defaultProps.valueDecoder,...this.props.valueDecoder},val=decodeRGB(info.color,mergedDecoder,this.props.valueRange);return{...info,index:0,propertyValue:val}}getLegendData(){const valueRangeMin=this.props.valueRange[0]??0,valueRangeMax=this.props.valueRange[1]??1;return{discrete:!1,valueRange:[this.props.colorMapRange?.[0]??valueRangeMin,this.props.colorMapRange?.[1]??valueRangeMax],colorName:this.props.colorMapName,title:"PropertyMapLayer",colorMapFunction:this.props.colorMapFunction}}}ColormapLayer.layerName="ColormapLayer",ColormapLayer.defaultProps=defaultProps;var mapLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/map/mapLayer.ts"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),workerpool=__webpack_require__("./node_modules/workerpool/dist/workerpool.js"),workerpool_default=__webpack_require__.n(workerpool),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),lib_model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js");const privateTriangleLayer_defaultProps={data:["dummy"],contours:[-1,-1],isContoursDepth:!0,gridLines:!1,color:[100,100,255],coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,depthTest:!0,ZIncreasingDownwards:!0};class PrivateTriangleLayer extends lib_layer.Z{get isLoaded(){return this.state.isLoaded??!1}initializeState(context){const{gl:gl}=context,[triangleModel,lineMode]=this._getModels(gl);this.setState({models:[triangleModel,lineMode],isLoaded:!1})}shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags}){return super.shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags})||changeFlags.propsOrDataChanged}updateState({context:context}){this.initializeState(context)}_getModels(gl){return[new lib_model.Z(gl,{id:`${this.props.id}-mesh`,vs:"#version 300 es\n#define SHADER_NAME vertex-shader\n\nprecision highp float;\n\n// Primitive attributes\nin vec3 positions;\nin float properties;\nin vec3 normals;\n\n// Outputs to fragment shader\nout vec3 cameraPosition;\nout vec3 normals_commonspace;\nout vec4 position_commonspace;\nout vec3 worldPos;\nout float property;\n\nuniform bool ZIncreasingDownwards;\n\nconst vec3 pickingColor = vec3(1.0, 1.0, 0.0);\n\nvoid main(void) {\n geometry.pickingColor = pickingColor;\n\n cameraPosition = project_uCameraPosition;\n\n vec3 position = positions;\n position[2] *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n worldPos = position;\n\n normals_commonspace = normals;\n\n property = properties;\n\n position_commonspace = vec4(project_position(position), 0.0);\n gl_Position = project_common_position_to_clipspace(position_commonspace);\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n",fs:'#version 300 es\n#define SHADER_NAME terrainmap-shader\n\nprecision highp float;\n\nuniform bool isContoursDepth;\nuniform float contourReferencePoint;\nuniform float contourInterval;\n\nin vec2 vTexCoord;\nin vec3 cameraPosition;\nin vec3 normals_commonspace;\nin vec4 position_commonspace;\nin vec3 worldPos;\nin float property;\n\nuniform sampler2D colormap;\nuniform vec4 uColor;\nuniform bool smoothShading;\n\nvoid main(void) {\n vec3 normal = normals_commonspace;\n\n if (!smoothShading) {\n normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n } \n\n vec4 color = uColor;\n bool is_contours = contourReferencePoint != -1.0 && contourInterval != -1.0;\n if (is_contours) {\n // Contours are made of either depths or properties.\n float val = (abs(worldPos.z) - contourReferencePoint) / contourInterval;\n\n float f = fract(val);\n float df = fwidth(val);\n\n // keep: float c = smoothstep(df * 1.0, df * 2.0, f); // smootstep from/to no of pixels distance fronm contour line.\n float c = smoothstep(0.0, df * 2.0, f);\n\n color = color * vec4(c, c, c, 1.0);\n }\n\n // Use two sided phong lighting. This has no effect if "material" property is not set.\n vec3 lightColor = getPhongLightColor(color.rgb, cameraPosition, position_commonspace.xyz, normal);\n gl_FragColor = vec4(lightColor, 1.0);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n',geometry:new geometry.Z(this.props.geometryTriangles),modules:[project.Z,picking.Z,shader_modules.jA],isInstanced:!1}),new lib_model.Z(gl,{id:`${this.props.id}-lines`,vs:"#version 300 es\n#define SHADER_NAME vertex-lines-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nout vec4 position_commonspace;\n\nuniform bool ZIncreasingDownwards;\n\nvoid main(void) {\n vec3 position = positions;\n position[2] *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n vec3 position_commonspace = project_position(position);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",fs:"#version 300 es\n#define SHADER_NAME graph-layer-fragment-shader\n\nprecision highp float;\n\nout vec4 fragColor;\n\nvoid main(void) {\n \n // Picking pass.\n if (picking_uActive) {\n discard;\n return;\n }\n\n fragColor = vec4(0.0, 0.0, 0.0, 1.0);\n}\n",geometry:new geometry.Z(this.props.geometryLines),modules:[project.Z,picking.Z],isInstanced:!1})]}draw(args){if(!this.state.models)return;const{uniforms:uniforms,context:context}=args,{gl:gl}=context,contourReferencePoint=this.props.contours[0]??-1,contourInterval=this.props.contours[1]??-1,[triangleModel,lineModel]=this.state.models,smoothShading=this.props.smoothShading,uColor=this.props.color.map((x=>(x??0)/255));uColor.push(1),this.props.depthTest||gl.disable(esm.default.DEPTH_TEST),gl.enable(esm.default.POLYGON_OFFSET_FILL),gl.polygonOffset(1,1),triangleModel.setUniforms({...uniforms,contourReferencePoint:contourReferencePoint,contourInterval:contourInterval,smoothShading:smoothShading,uColor:uColor,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),gl.disable(esm.default.POLYGON_OFFSET_FILL),this.props.gridLines&&lineModel.setUniforms({...uniforms,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),this.props.depthTest||gl.enable(esm.default.DEPTH_TEST),this.state.isLoaded||this.setState({...this.state,isLoaded:!0})}decodePickingColor(){return 0}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[];if(void 0!==info.coordinate?.[2]){const depth=this.props.ZIncreasingDownwards?-info.coordinate[2]:info.coordinate[2];layer_properties.push((0,layerTools.ws)("Depth",depth))}return{...info,properties:layer_properties}}}function makeFullMesh(e){const params=e.data,t0=performance.now();function normalize(a){const L=Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]);a[0]/=L,a[1]/=L,a[2]/=L}const line_positions=[],vertexArray=params.vertexArray,indexArray=params.indexArray,ntriangles=indexArray.length/3,nvertices=vertexArray.length/3,trianglesNormals=Array(3*ntriangles).fill(0),vertexsNormals=Array(vertexArray.length).fill(0);for(let t_no=0;t_no0&&subLayers.every((layer=>layer.isLoaded)),isFinished=this.state?.isFinishedLoading??!1;return isLoaded&&isFinished}rebuildData(reportBoundingBox){const p=async function loadData(pointsData,triangleData){let indexArray,vertexArray=new Float32Array;if(Array.isArray(pointsData))vertexArray=new Float32Array(pointsData);else if(pointsData instanceof Float32Array)vertexArray=pointsData;else{const response_mesh=await fetch(pointsData);response_mesh.ok||console.error("Could not load vertex data");const blob_mesh=await response_mesh.blob(),buffer=await blob_mesh.arrayBuffer();vertexArray=new Float32Array(buffer)}if(Array.isArray(triangleData))indexArray=new Uint32Array(triangleData);else if(triangleData instanceof Uint32Array)indexArray=triangleData;else{const response_mesh=await fetch(triangleData);response_mesh.ok||console.error("Could not load triangle index data");const blob_mesh=await response_mesh.blob(),buffer=await blob_mesh.arrayBuffer();indexArray=new Uint32Array(buffer)}return Promise.all([vertexArray,indexArray])}(this.props.pointsData,this.props.triangleData);p.then((([vertexArray,indexArray])=>{const webworkerParams={vertexArray:vertexArray,indexArray:indexArray,smoothShading:this.props.smoothShading,displayNormals:this.props.debug};pool.exec(makeFullMesh,[{data:webworkerParams}]).then((e=>{const[geometryTriangles,geometryLines]=e;if(this.setState({geometryTriangles:geometryTriangles,geometryLines:geometryLines}),void 0!==this.props.reportBoundingBox&&reportBoundingBox){let xmax=-99999999,xmin=99999999,ymax=-99999999,ymin=99999999,zmax=-99999999,zmin=99999999;for(let i=0;ixmax?vertexArray[3*i+0]:xmax,xmin=vertexArray[3*i+0]ymax?vertexArray[3*i+1]:ymax,ymin=vertexArray[3*i+1]zmax?vertexArray[3*i+2]:zmax,zmin=vertexArray[3*i+2] 0.5) {\n float isLine = antialiasing ? \n smoothedge(innerUnitRadius * outerRadiusPixels, distToCenter) :\n step(innerUnitRadius * outerRadiusPixels, distToCenter);\n\n if (filled) {\n gl_FragColor = mix(vFillColor, vLineColor, isLine);\n } else {\n if (isLine == 0.0) {\n discard;\n }\n gl_FragColor = vec4(vLineColor.rgb, vLineColor.a * isLine);\n }\n } else if (!filled) {\n discard;\n } else {\n gl_FragColor = vFillColor;\n }\n gl_FragColor.a *= inCircle;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]}}draw(args){args.uniforms.ZIncreasingDownwards=this.props.ZIncreasingDownwards;let restoreDepthTest=!1;"boolean"!=typeof this.props.depthTest||this.props.depthTest||(restoreDepthTest=!0,this.context.gl.disable(esm.default.DEPTH_TEST)),super.draw({uniforms:args.uniforms}),restoreDepthTest&&this.context.gl.enable(esm.default.DEPTH_TEST)}}PrivatePointsLayer.layerName="PrivatePointsLayer";class PointsLayer extends composite_layer.Z{constructor(props){super(props)}renderLayers(){return[new PrivatePointsLayer(this.getSubLayerProps({pickable:this.props.pickable,billboard:!0,data:this.state.dataAttributes,_pathType:"open",getFillColor:()=>this.props.color,getRadius:()=>this.props.pointRadius,radiusUnits:this.props.radiusUnits,updateTriggers:{getFillColor:[this.props.color],getRadius:[this.props.pointRadius]},depthTest:this.props.depthTest,ZIncreasingDownwards:this.props.ZIncreasingDownwards}))]}initializeState(){const dataAttributes=this.rebuildDataAttributes(!0);this.setState({dataAttributes:dataAttributes})}updateState({props:props,oldProps:oldProps}){if(!(0,lodash.isEqual)(props.pointsData,oldProps.pointsData)){const dataAttributes=this.rebuildDataAttributes(!1);this.setState({dataAttributes:dataAttributes})}props.ZIncreasingDownwards!=oldProps.ZIncreasingDownwards&&this.updateBoundingBox(!0)}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[];if(void 0!==info.coordinate?.[2]){const depth=this.props.ZIncreasingDownwards?-info.coordinate[2]:info.coordinate[2];layer_properties.push((0,layerTools.ws)("Depth",depth))}return{...info,properties:layer_properties}}rebuildDataAttributes(reportBoundingBox){const dataArray=this.loadData();return dataArray?(this.updateBoundingBox(reportBoundingBox),{length:dataArray.length/3,attributes:{getPosition:{value:dataArray,size:3}}}):null}loadData(){return Array.isArray(this.props.pointsData)?new Float32Array(this.props.pointsData):this.props.pointsData instanceof Float32Array?this.props.pointsData:(console.warn("pointsData is not array"),new Float32Array)}updateBoundingBox(reportBoundingBox){if(this.state.dataAttributes&&"function"==typeof this.props.reportBoundingBox&&reportBoundingBox){const boundingBox=(0,layerTools.f3)(this.state.dataAttributes,this.props.ZIncreasingDownwards);this.props.reportBoundingBox({layerBoundingBox:boundingBox})}}}PointsLayer.layerName="PointsLayer",PointsLayer.defaultProps={"@@type":"PointsLayer",name:"PointsLayer",id:"points-layer",color:[125,0,0,255],radiusUnits:"pixels",pointRadius:5,pickable:!0,visible:!0,ZIncreasingDownwards:!0,depthTest:!0};var polylinesLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/polylines/polylinesLayer.ts"),dist_es6=__webpack_require__("./node_modules/@nebula.gl/edit-modes/dist-es6/index.js"),layers_dist_es6=__webpack_require__("./node_modules/@nebula.gl/layers/dist-es6/index.js"),es=__webpack_require__("./node_modules/@turf/meta/dist/es/index.js");function measurement_length(geojson){return(0,es.hE)(geojson,(function(previousValue,segment){if(void 0===segment||void 0===previousValue)return 0;const coords=segment.geometry.coordinates;return previousValue+function distance(from,to){const[x1,y1,z1]=from,[x2,y2,z2]=to;let a=Math.pow(x1-x2,2)+Math.pow(y1-y2,2);z1&&z2&&(a+=Math.pow(z2-z1,2));return Math.sqrt(a)}(coords[0],coords[1])}),0)}function measurement_area(geojson){return(0,es.mm)(geojson,(function(value,geom){return value+function calculateArea(geom){const coords=geom.coordinates[0];let total=0;for(let i=0,l=coords.length;ithis.state.data.features[i]===feature))?SELECTED_LINE_COLOR:UNSELECTED_LINE_COLOR}renderLayers(){if(0==this.props.visible)return[];const sub_layer_props=this.getSubLayerProps({data:this.state.data,mode:MODE_MAP[this.props.mode],modeConfig:{viewport:this.context.viewport},selectedFeatureIndexes:this.state.selectedFeatureIndexes,coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,onEdit:editAction=>this._onEdit(editAction),_subLayerProps:{geojson:{autoHighlight:!0,getLineColor:feature=>this._getLineColor(feature)}}});return[new layers_dist_es6.nk(sub_layer_props)]}}DrawingLayer.layerName="DrawingLayer",DrawingLayer.defaultProps={"@@type":"DrawingLayer",name:"Drawing",id:"drawing-layer",pickable:!0,visible:!0,mode:"drawLineString",selectedFeatureIndexes:[],data:{type:"FeatureCollection",features:[]}};const hillshading2dLayer_defaultProps={"@@type":"Hillshading2DLayer",name:"Hill shading",id:"hillshading-layer",opacity:1,pickable:!0,visible:!0,rotDeg:0,valueRange:{type:"array",value:[0,1]},lightDirection:[1,1,1],ambientLightIntensity:.5,diffuseLightIntensity:.5,valueDecoder:{rgbScaler:[1,1,1],floatScaler:1/16777215,offset:0,step:0}};class Hillshading2DLayer extends bitmap_layer.Z{initializeState(){this.setState({isLoaded:!1}),super.initializeState()}draw({moduleParameters:moduleParameters,uniforms:uniforms}){if(!this.state.isLoaded&&(this.setState({isLoaded:!0}),void 0!==this.props.reportBoundingBox)){const xMin=this.props.bounds[0],yMin=this.props.bounds[1],zMin=1,xMax=this.props.bounds[2],yMax=this.props.bounds[3],zMax=-1;this.props.reportBoundingBox({layerBoundingBox:[xMin,yMin,zMin,xMax,yMax,zMax]})}if(this.props.image){const mergedModuleParams={...moduleParameters,valueDecoder:{...hillshading2dLayer_defaultProps.valueDecoder,...moduleParameters.valueDecoder},modelMatrix:(0,layerTools.RT)(this.props.rotDeg,this.props.bounds[0],this.props.bounds[3])};super.setModuleParameters(mergedModuleParams);const valueRangeMin=this.props.valueRange[0]??0,valueRangeMax=this.props.valueRange[1]??1,colorMapRangeMin=this.props.colorMapRange?.[0]??valueRangeMin,colorMapRangeMax=this.props.colorMapRange?.[1]??valueRangeMax,[minVal,maxVal]=this.props.valueRange;super.draw({uniforms:{...uniforms,bitmapResolution:[this.props.image.width,this.props.image.height],valueRangeSize:maxVal-minVal,lightDirection:this.props.lightDirection,ambientLightIntensity:this.props.ambientLightIntensity,diffuseLightIntensity:this.props.diffuseLightIntensity,valueRangeMin:valueRangeMin,valueRangeMax:valueRangeMax,colorMapRangeMin:colorMapRangeMin,colorMapRangeMax:colorMapRangeMax},moduleParameters:mergedModuleParams})}}getShaders(){const parentShaders=super.getShaders();return parentShaders.fs="#define SHADER_NAME hillshading2d-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nvarying vec2 vTexCoord;\n\nuniform sampler2D bitmapTexture; // Property map\nuniform vec2 bitmapResolution;\n\nuniform float valueRangeSize;\n\nuniform vec3 lightDirection;\nuniform float ambientLightIntensity;\nuniform float diffuseLightIntensity;\nuniform float opacity;\n\n// Compute the normal value for every pixel, based on the current value and two values aroud it.\nvec3 normal(float val) {\n vec2 dr = 1.0 / bitmapResolution;\n float p0 = valueRangeSize * val;\n float px = valueRangeSize * decode_rgb2float(texture2D(bitmapTexture, vTexCoord + vec2(1.0, 0.0) / bitmapResolution).rgb);\n float py = valueRangeSize * decode_rgb2float(texture2D(bitmapTexture, vTexCoord + vec2(0.0, 1.0) / bitmapResolution).rgb);\n vec3 dx = vec3(1.0, 0.0, px - p0);\n vec3 dy = vec3(0.0, 1.0, py - p0);\n\n return normalize(cross(dx, dy));\n}\n\n// Compute how much a pixel is in the shadow based on its normal and where the light comes from.\nfloat shadow(vec3 normal) {\n float diffuse = diffuseLightIntensity * dot(normal, normalize(lightDirection));\n return clamp(ambientLightIntensity + diffuse, 0.0, 1.0);\n}\n\nvoid main(void) {\n vec4 bitmapColor = texture2D(bitmapTexture, vTexCoord);\n\n // If it's a picking pass, we just return the raw property map value.\n if (picking_uActive) {\n gl_FragColor = bitmapColor;\n return;\n }\n\n // Decode the RGB value into a float. See decoder.fs.glsl for more details.\n float val = decode_rgb2float(bitmapColor.rgb);\n // Compute the shadow value, how dark a pixel will be, 1 is in complete shadow, 0 is in complete light.\n float shadow = shadow(normal(val));\n\n // The final pixel is black, with the opacity based on the shadow value,\n // opacity 0 if pixel is completely in the light, opacity 1 if pixel is completely in the shadow.\n // The property map opacity (some portions of the property map can be transparent) and\n // the user provided image-wide opacity value are also taken into account.\n gl_FragColor = vec4(vec3(0.0), (1.0-shadow) * bitmapColor.a * opacity);\n\n geometry.uv = vTexCoord;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",parentShaders.modules.push(shader_modules.xv),parentShaders}getPickingInfo({info:info}){if(this.state.pickingDisabled||!info.color)return info;const mergedDecoder={...hillshading2dLayer_defaultProps.valueDecoder,...this.props.valueDecoder},val=decodeRGB(info.color,mergedDecoder,this.props.valueRange);return{...info,index:0,propertyValue:val}}}Hillshading2DLayer.layerName="Hillshading2DLayer",Hillshading2DLayer.defaultProps=hillshading2dLayer_defaultProps;var wellsLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/wells/wellsLayer.ts");const vertex_glsl_vsShader="#version 300 es\n#define SHADER_NAME well-markers-vertex-shader\nprecision highp float;\n\nattribute vec3 positions;\nattribute vec3 instancePositions;\nattribute float instanceSizes;\nattribute float instanceAzimuths;\nattribute float instanceInclinations;\nattribute vec4 instanceColors;\nattribute vec4 instanceOutlineColors;\n\nattribute vec3 instancePickingColors;\n\nuniform int sizeUnits;\nuniform bool ZIncreasingDownwards;\nuniform bool useOutlineColor;\n\n\nout vec4 position_commonspace;\nout vec4 color;\n\nvoid main(void) { \n\n vec3 position = instancePositions;\n position.z *= (ZIncreasingDownwards? -1.0 : 1.0);\n\n geometry.worldPosition = position;\n geometry.pickingColor = instancePickingColors;\n\n color = useOutlineColor ? instanceOutlineColors : instanceColors;\n\n float sizeInPixels = project_size_to_pixel(instanceSizes, sizeUnits);\n float projectedSize = project_pixel_size(sizeInPixels);\n\n float sinA = sin (PI / 180.0 * instanceAzimuths);\n float cosA = cos (PI / 180.0 * instanceAzimuths);\n\n float sinI = sin (PI / 180.0 * instanceInclinations);\n float cosI = cos (PI / 180.0 * instanceInclinations);\n\n mat3 azimuthMatrix = mat3(vec3(cosA, sinA, 0.0), vec3(-sinA, cosA, 0.0), vec3(0.0, 0.0, 1.0));\n mat3 inclMatrix = mat3(vec3(1.0, 0.0, 0.0), vec3(0.0, cosI, sinI), vec3(0.0, -sinI, cosI));\n mat3 sizeMatrix = mat3(vec3(projectedSize, 0.0, 0.0), vec3(0.0, projectedSize, 0.0), vec3(0.0, 0.0, 1.0));\n vec3 rotatedPos = azimuthMatrix * inclMatrix * sizeMatrix *positions;\n\n position_commonspace = vec4(project_position(rotatedPos + position), 0.0);\n gl_Position = project_common_position_to_clipspace(position_commonspace);\n\n vec4 dummyColor = vec4(0.0);\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n DECKGL_FILTER_COLOR(dummyColor, geometry);\n}\n",fragment_glsl_fsShader="#version 300 es\n#define SHADER_NAME well-markers-fragment-shader\n\nprecision highp float;\n\nin vec4 color;\n\nvoid main(void) {\n\n gl_FragColor = vec4(color.rgba * (1.0 / 255.0));\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",normalizeColor=color=>{if(!color)return new Uint8Array([0,0,0,255]);if(color.length>4)return new Uint8Array(color.slice(0,4));switch(color.length){case 0:return new Uint8Array([0,0,0,255]);case 1:return new Uint8Array([...color,0,0,255]);case 2:return new Uint8Array([...color,0,255]);case 3:return new Uint8Array([...color,255]);default:return color}},wellMarkersLayer_defaultProps={"@@type":"WellMarkersLayer",name:"Well Markers",id:"well-markers",shape:"circle",sizeUnits:"meters",visible:!0,ZIncreasingDownwards:!0,getPosition:{type:"accessor",value:x=>x.position},getSize:{type:"accessor",value:x=>x.size},getAzimuth:{type:"accessor",value:x=>x.azimuth},getInclination:{type:"accessor",value:x=>x.inclination},getColor:{type:"accessor",value:x=>normalizeColor(x.color)},getOutlineColor:{type:"accessor",value:x=>normalizeColor(x.outlineColor)}};class WellMarkersLayer extends lib_layer.Z{shapes=new Map;constructor(props){super(props),this.initShapes()}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:esm.default.DOUBLE,transition:!0,accessor:"getPosition"},instanceSizes:{size:1,type:esm.default.DOUBLE,transition:!0,accessor:"getSize",defaultValue:1},instanceAzimuths:{size:1,type:esm.default.DOUBLE,transition:!0,accessor:"getAzimuth",defaultValue:0},instanceInclinations:{size:1,type:esm.default.DOUBLE,transition:!0,accessor:"getInclination",defaultValue:0},instanceColors:{size:4,type:esm.default.UNSIGNED_BYTE,transition:!0,accessor:"getColor",defaultValue:[255,0,0,255]},instanceOutlineColors:{size:4,type:esm.default.UNSIGNED_BYTE,transition:!0,accessor:"getOutlineColor",defaultValue:[255,0,255,255]}});const models=this._createModels();this.setState({shapeModel:models[0],outlineModel:models[1]})}updateState(params){if(super.updateState(params),params.changeFlags.extensionsChanged||params.changeFlags.propsChanged){this.state?.shapeModel?.delete(),this.state?.outlineModel?.delete();const models=this._createModels();this.setState({...this.state,shapeModel:models[0],outlineModel:models[1]}),this.getAttributeManager().invalidateAll()}}getModels(){return this.state.shapeModel&&this.state.outlineModel?[this.state.shapeModel,this.state.outlineModel]:[]}draw(args){if(!this.state.shapeModel)return;const{uniforms:uniforms}=args,models=this.getModels();models.length&&models.length<2||(models[0].setUniforms({...uniforms,sizeUnits:constants.iI[this.props.sizeUnits],ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),models[1].setUniforms({...uniforms,ZIncreasingDownwards:this.props.ZIncreasingDownwards,sizeUnits:constants.iI[this.props.sizeUnits]}).draw())}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[],markerIndex=this.decodePickingColor(info.color),markerData=this.props.data;if(markerIndex>=0&&markerIndex(x??0)/255));const name=prop?.label??"no label",frac_string=(100*frac).toFixed(1)+"%";pieInfo.push([name,frac_string]);for(let a=start_a;a= (256 * 256) - 1) {\n r = floor(float(idx) / (256.0 * 256.0));\n idx -= int(r * (256.0 * 256.0));\n }\n \n if (idx >= 256 - 1) {\n g = floor(float(idx) / 256.0);\n idx -= int(g * 256.0);\n }\n \n b = float(idx);\n \n fragColor = vec4(r / 255.0, g / 255.0, b / 255.0, 1.0);\n return;\n }\n\n fragColor = vColor;\n}\n",geometry:new geometry.Z({drawMode:esm.default.TRIANGLES,attributes:{positions:{value:new Float32Array(vertexs),size:3},colors:{value:new Float32Array(colors),size:3},pie_index:{value:new Int32Array(pieInfoIndex),size:1},mx:{value:new Float32Array(mx),size:1},my:{value:new Float32Array(my),size:1},do_scale:{value:new Float32Array(doScale),size:1}},vertexCount:vertexs.length/3}),modules:[project.Z,picking.Z],isInstanced:!1}),pieInfo:pieInfo}}draw(args){if(!this.state?.model)return;const{context:context}=args,{gl:gl}=context,p2=[100,0],p1_unproj=this.context.viewport.unproject([0,0]),p2_unproj=this.context.viewport.unproject(p2),v1=new vector2.Z(p1_unproj[0],p1_unproj[1]),v2=new vector2.Z(p2_unproj[0],p2_unproj[1]),scale=v1.distance(v2)/100,model=this.state.model;this.props.depthTest||gl.disable(esm.default.DEPTH_TEST),model.setUniforms({scale:scale}).draw(),this.props.depthTest||gl.enable(esm.default.DEPTH_TEST)}decodePickingColor(){return this.nullPickingColor()}getPickingInfo({info:info}){if(!info.color)return info;const pieIndex=65536*info.color[0]+256*info.color[1]+info.color[2],[pie_label,pie_frac]=this.state.pieInfo[pieIndex],layer_properties=[];return layer_properties.push((0,layerTools.ws)(pie_label,pie_frac)),{...info,properties:layer_properties}}}PieChartLayer.layerName="PieChartLayer",PieChartLayer.defaultProps={"@@type":"PieChartLayer",name:"Pie chart",id:"pie-layer",pickable:!0,visible:!0,selectedPie:"@@editedData.selectedPie",depthTest:!0};var geojson_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/geojson-layer/geojson-layer.js");const getColor=d=>{const c=d?.properties?.color;return[c[0]??0,c[1]??0,c[2]??0,30]};class FaultPolygonsLayer extends composite_layer.Z{renderLayers(){return[new geojson_layer.Z(this.getSubLayerProps({id:this.props.id,data:this.props.data,pickable:this.props.pickable,visible:this.props.visible,filled:this.props.filled,lineWidthMinPixels:this.props.lineWidthMinPixels,coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,getLineColor:d=>d?.properties?.color??[0,0,0,255],getFillColor:getColor,parameters:{[esm.default.DEPTH_TEST]:this.props.depthTest}}))]}}FaultPolygonsLayer.layerName="FaultPolygonsLayer",FaultPolygonsLayer.defaultProps={"@@type":"FaultPolygonsLayer",name:"Fault polygons",id:"fault-polygons-layer",pickable:!0,visible:!0,filled:!0,lineWidthMinPixels:2,depthTest:!0};var axesLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/axes/axesLayer.ts"),orthographic_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orthographic-viewport.js"),line_vertex_glsl="#version 300 es\n#define SHADER_NAME axes2dlayer-line-vertex-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nvoid main(void) {\n vec3 position_commonspace = project_position(positions);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",line_fragment_glsl="#version 300 es\n#define SHADER_NAME axes2dlayer-line-fragment-shader\n\nprecision highp float;\n\nuniform vec4 uColor;\n\nout vec4 fragColor;\n\nvoid main(void) {\n fragColor = uColor;\n}\n",load=__webpack_require__("./node_modules/@loaders.gl/core/dist/esm/lib/api/load.js"),image_loader=__webpack_require__("./node_modules/@loaders.gl/images/dist/esm/image-loader.js"),vec4=__webpack_require__("./node_modules/gl-matrix/esm/vec4.js"),font_atlas_namespaceObject=__webpack_require__.p+"static/media/font-atlas.72792226.png";const axes2DLayer_DEFAULT_TEXTURE_PARAMETERS={[esm.default.TEXTURE_MIN_FILTER]:esm.default.LINEAR_MIPMAP_LINEAR,[esm.default.TEXTURE_MAG_FILTER]:esm.default.LINEAR,[esm.default.TEXTURE_WRAP_S]:esm.default.CLAMP_TO_EDGE,[esm.default.TEXTURE_WRAP_T]:esm.default.CLAMP_TO_EDGE};var TEXT_ANCHOR=function(TEXT_ANCHOR){return TEXT_ANCHOR[TEXT_ANCHOR.start=0]="start",TEXT_ANCHOR[TEXT_ANCHOR.middle=1]="middle",TEXT_ANCHOR[TEXT_ANCHOR.end=2]="end",TEXT_ANCHOR}(TEXT_ANCHOR||{}),ALIGNMENT_BASELINE=function(ALIGNMENT_BASELINE){return ALIGNMENT_BASELINE[ALIGNMENT_BASELINE.top=1]="top",ALIGNMENT_BASELINE[ALIGNMENT_BASELINE.center=0]="center",ALIGNMENT_BASELINE[ALIGNMENT_BASELINE.bottom=-1]="bottom",ALIGNMENT_BASELINE}(ALIGNMENT_BASELINE||{}),ViewSide=function(ViewSide){return ViewSide[ViewSide.Left=0]="Left",ViewSide[ViewSide.Right=1]="Right",ViewSide[ViewSide.Bottom=2]="Bottom",ViewSide[ViewSide.Top=3]="Top",ViewSide}(ViewSide||{});const axes2DLayer_defaultProps={"@@type":"Axes2DLayer",name:"Axes2D",id:"axes2d-layer",visible:!0,coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,marginH:80,marginV:30,isLeftRuler:!0,isRightRuler:!1,isBottomRuler:!0,isTopRuler:!1,labelFontSizePt:9},fontInfo={letterHeight:92,spaceWidth:0,spacing:-1,textureWidth:1714,textureHeight:200,glyphInfos:{A:{x:0,y:0,width:86},B:{x:86,y:0,width:86},C:{x:172,y:0,width:86},D:{x:258,y:0,width:86},E:{x:344,y:0,width:86},F:{x:430,y:0,width:86},G:{x:516,y:0,width:86},H:{x:602,y:0,width:86},I:{x:688,y:0,width:86},J:{x:774,y:0,width:86},K:{x:860,y:0,width:86},L:{x:946,y:0,width:86},M:{x:1032,y:0,width:86},N:{x:1118,y:0,width:86},O:{x:1204,y:0,width:86},P:{x:1290,y:0,width:86},Q:{x:1376,y:0,width:86},R:{x:1462,y:0,width:86},S:{x:1548,y:0,width:86},T:{x:1634,y:0,width:86},U:{x:0,y:97,width:86},V:{x:86,y:97,width:86},W:{x:172,y:97,width:86},X:{x:258,y:97,width:86},Y:{x:344,y:97,width:86},Z:{x:430,y:97,width:86},0:{x:516,y:97,width:86},1:{x:602,y:97,width:86},2:{x:688,y:97,width:86},3:{x:774,y:97,width:86},4:{x:860,y:97,width:86},5:{x:946,y:97,width:86},6:{x:1032,y:97,width:86},7:{x:1118,y:97,width:86},8:{x:1204,y:97,width:86},9:{x:1290,y:97,width:86},"+":{x:1376,y:97,width:86},"-":{x:1462,y:97,width:86},".":{x:1548,y:97,width:86},",":{x:1634,y:97,width:86}}};class Axes2DLayer extends lib_layer.Z{shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags}){return super.shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags})||changeFlags.viewportChanged}updateState(){const fontTexture=this.state.fontTexture,{label_models:label_models,line_model:line_model,background_model:background_model}=this._getModels(fontTexture);this.setState({...this.state,models:[...label_models,line_model,background_model]})}initializeState(){const{gl:gl}=this.context;(0,load.z)(font_atlas_namespaceObject,image_loader.S,{image:{type:"data"}}).then((data=>{const fontTexture=new texture_2d.Z(gl,{width:data.width,height:data.height,format:esm.default.RGB,data:data,parameters:axes2DLayer_DEFAULT_TEXTURE_PARAMETERS}),{label_models:label_models,line_model:line_model,background_model:background_model}=this._getModels(fontTexture);this.setState({fontTexture:fontTexture,models:[...label_models,line_model,background_model]})}))}GetTickLinesAndLabels(min,max,viewSide,pixel2worldHor,pixel2worldVer){const lines=[],tick_labels=[],mv=this.props.marginV*pixel2worldVer,mh=this.props.marginH*pixel2worldHor,vpBounds=this.context.viewport.getBounds();let start,y_tick=0,x_tick=0;viewSide===ViewSide.Top?(start=vpBounds[3]-mv,y_tick=start):viewSide===ViewSide.Bottom?(start=vpBounds[1]+mv,y_tick=start):viewSide===ViewSide.Left?(start=vpBounds[0]+mh,x_tick=start):viewSide===ViewSide.Right&&(start=vpBounds[2]-mh,x_tick=start);const isTopOrBottomRuler=viewSide===ViewSide.Top||viewSide===ViewSide.Bottom,delta=isTopOrBottomRuler?10*pixel2worldVer:10*pixel2worldHor,ticks=function GetTicks(min,max,axis_pixel_length){let step=Math.min(Math.round(axis_pixel_length/100)+1,20);const range=max-min,delta=Math.abs(range)/step;let decade=1;if(delta>=10){const logde=Math.log10(delta),pot=Math.floor(logde);decade=Math.pow(10,pot)}let scaled_delta=Math.round(delta/decade);3==scaled_delta?scaled_delta=2:4==scaled_delta||6==scaled_delta||7==scaled_delta?scaled_delta=5:scaled_delta>7?scaled_delta=10:scaled_delta<1&&(scaled_delta=1);const incr=scaled_delta*decade,start=Math.ceil(min/incr)*incr,stop=Math.floor(max/incr)*incr,calc_step=Math.floor(Math.abs(stop-start)/incr);step=calc_step>0?calc_step:0;const ticks=[];for(let i=0;i<=step;i++){const x=start+i*incr;ticks.push(x)}return ticks}(min,max,isTopOrBottomRuler?LineLengthInPixels([min,0,0],[max,0,0],this.context.viewport):LineLengthInPixels([0,min,0],[0,max,0],this.context.viewport)),tick_length=viewSide===ViewSide.Left||viewSide===ViewSide.Bottom?-delta:delta;for(let i=0;i1){const tick1=ticks[0],d=(ticks[1]-tick1)/4,tick_start=tick1;let i=0;for(;tick_start+(i+1)*dmin;){const tick=tick_start-(i+1)*d;tick_labels.push(""),i++,isTopOrBottomRuler?(lines.push(tick,y_tick,1009),lines.push(tick,y_tick+.5*tick_length,1009)):(lines.push(x_tick,tick,1009),lines.push(x_tick+.5*tick_length,tick,1009))}}return[lines,this.makeLabelsData(lines,tick_labels)]}GetBacgroundTriangleLinesHorizontal(x_min_w,x_max_w,isTop,pixel2world){const mv=this.props.marginV*pixel2world,vp_bounds=this.context.viewport.getBounds(),y_max=isTop?vp_bounds[3]:vp_bounds[1]+mv,y_min=isTop?vp_bounds[3]-mv:vp_bounds[1],p2=[x_max_w,y_max,10],p3=[x_max_w,y_min,10],p4=[x_min_w,y_min,10];return[...[x_min_w,y_max,10],...p2,...p4,...p2,...p4,...p3]}GetBacgroundTriangleLinesVertical(y_min_w,y_max_w,isLeft,pixel2world){const mh=this.props.marginH*pixel2world,vp_bounds=this.context.viewport.getBounds(),x_max=isLeft?vp_bounds[0]+mh:vp_bounds[2],x_min=isLeft?vp_bounds[0]:vp_bounds[2]-mh,p2=[x_max,y_max_w,10],p3=[x_min,y_max_w,10],p4=[x_min,y_min_w,10];return[...[x_max,y_min_w,10],...p2,...p4,...p2,...p4,...p3]}makeLabelsData(tick_lines,tick_labels){const labels=[];for(let i=0;i(x??0)/255)));const line_model=new lib_model.Z(gl,{id:`${this.props.id}-lines`,vs:line_vertex_glsl,fs:line_fragment_glsl,uniforms:{uColor:lineColor},geometry:new geometry.Z({drawMode:esm.default.LINES,attributes:{positions:new Float32Array(tick_and_axes_lines)},vertexCount:tick_and_axes_lines.length/3}),modules:[project.Z],isInstanced:!1});let bColor=[.5,.5,.5,1];void 0!==this.props.backgroundColor&&(bColor=this.props.backgroundColor,3===bColor.length&&bColor.push(255),bColor=bColor.map((x=>(x??0)/255)));const background_model=new lib_model.Z(gl,{id:`${this.props.id}-background`,vs:line_vertex_glsl,fs:line_fragment_glsl,uniforms:{uColor:bColor},geometry:new geometry.Z({drawMode:esm.default.TRIANGLES,attributes:{positions:new Float32Array(background_lines)},vertexCount:background_lines.length/3}),modules:[project.Z],isInstanced:!1}),label_models=[],pixelScale=function GetPixelsScale(labelFontSizePt){return Math.max(0,8/9*labelFontSizePt)}(this.props.labelFontSizePt??axes2DLayer_defaultProps.labelFontSizePt);for(const item of labelData){const x=item.pos[0],y=item.pos[1],z=item.pos[2],label=item.label,anchor=item.anchor??TEXT_ANCHOR.start,aligment_baseline=item.aligment??ALIGNMENT_BASELINE.center;if(""===label)continue;const pos_w=vec4.al(x,y,z,1),len=label.length,numVertices=6*len,positions=new Float32Array(3*numVertices),texcoords=new Float32Array(2*numVertices),maxX=fontInfo.textureWidth,maxY=fontInfo.textureHeight;let offset=0,offsetTexture=0,x1=0;anchor===TEXT_ANCHOR.end?x1=-len:anchor===TEXT_ANCHOR.middle&&(x1=-len/2);let y_aligment_offset=0;aligment_baseline===ALIGNMENT_BASELINE.center?y_aligment_offset=.5*pixelScale:aligment_baseline===ALIGNMENT_BASELINE.top&&(y_aligment_offset=1*pixelScale);for(let ii=0;iiv[2])),delta=worldCoordinates.map(((v,i,coordinates)=>{const prev=coordinates[i-1]||v;return(0,pureFunctionsAny_generated.TE$)([prev[0],prev[1]],[v[0],v[1]])})),a=[];delta.forEach((d=>{const prev=a.at(-1)||0;a.push(d+prev)}));return(0,lodash.zip)(a,[...a].fill(planeY),z)}function getUnfoldedPath(object){const worldCoordinates=object.geometry.coordinates;return(0,lodash.isEqual)(worldCoordinates[0],worldCoordinates.at(-1))?function computeUnfoldedPolygon(coordinates){const half=Math.floor(coordinates.length/2),upper_line=coordinates.splice(0,half),lower_line=coordinates.splice(0,half),uul=computeUnfoldedPath(upper_line),ull=computeUnfoldedPath(lower_line.reverse()),unfolded_coordinates=uul.concat(ull.reverse());return unfolded_coordinates.push(uul[0]),unfolded_coordinates}(worldCoordinates):computeUnfoldedPath(worldCoordinates)}class UnfoldedGeoJsonLayer extends geojson_layer.Z{renderLayers(){const layers=super.renderLayers();return layers.flat().filter((layer=>"PathLayer"===layer?.constructor.name)).forEach((layer=>{const unfolded_layer=layer.clone(this.getSubLayerProps({...layer,id:layer.id+"-for-intersection-view",getPath:object=>getUnfoldedPath(object)}));unfolded_layer&&layers.push(unfolded_layer)})),layers}filterSubLayer({layer:layer,viewport:viewport}){return viewport.constructor===intersectionViewport.Z?-1!=layer.id.search("-for-intersection-view"):-1==layer.id.search("-for-intersection-view")}}UnfoldedGeoJsonLayer.layerName="UnfoldedGeoJsonLayer";var grid3dLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/grid3dLayer.ts"),boxSelectionLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/BoxSelectionLayer/boxSelectionLayer.ts"),abscissaTransform=__webpack_require__("./packages/subsurface-viewer/src/layers/wells/utils/abscissaTransform.ts")},"./packages/subsurface-viewer/src/layers/map/mapLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return MapLayer}});var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),lib=__webpack_require__("./node_modules/@vivaxy/png/lib/index.js"),workerpool=__webpack_require__("./node_modules/workerpool/dist/workerpool.js"),workerpool_default=__webpack_require__.n(workerpool),constants=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/constants.js"),lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),texture_2d=__webpack_require__("./node_modules/@luma.gl/webgl/dist/esm/classes/texture-2d.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),shader_modules=__webpack_require__("./packages/subsurface-viewer/src/layers/shader_modules/index.ts"),layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts");const DEFAULT_TEXTURE_PARAMETERS={[esm.default.TEXTURE_MIN_FILTER]:esm.default.LINEAR_MIPMAP_LINEAR,[esm.default.TEXTURE_MAG_FILTER]:esm.default.LINEAR,[esm.default.TEXTURE_WRAP_S]:esm.default.CLAMP_TO_EDGE,[esm.default.TEXTURE_WRAP_T]:esm.default.CLAMP_TO_EDGE},defaultProps={data:["dummy"],contours:[-1,-1],isContoursDepth:!0,gridLines:!1,colorMapName:"",coordinateSystem:constants.COORDINATE_SYSTEM.CARTESIAN,propertyValueRange:[0,1],meshValueRange:[0,1],depthTest:!0,ZIncreasingDownwards:!0};class PrivateMapLayer extends lib_layer.Z{get isLoaded(){return this.state.isLoaded??!1}initializeState(context){const{gl:gl}=context,[model_mesh,mesh_lines_model]=this._getModels(gl);this.setState({models:[model_mesh,mesh_lines_model],isLoaded:!1})}shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags}){return super.shouldUpdateState({props:props,oldProps:oldProps,context:context,changeFlags:changeFlags})||changeFlags.propsOrDataChanged}updateState({context:context}){this.initializeState(context)}_getModels(gl){const shaders=this.getShaders();return[new model.Z(gl,{id:`${this.props.id}-mesh`,...shaders,geometry:new geometry.Z({drawMode:gl.TRIANGLES,attributes:{positions:{value:this.props.positions,size:3},...this.props.normals.length>0&&{normals:{value:this.props.normals,size:3}},properties:{value:this.props.vertexProperties,size:1}},indices:{value:this.props.triangleIndices,size:1}}),isInstanced:!1}),new model.Z(gl,{id:`${this.props.id}-lines`,vs:"#version 300 es\n#define SHADER_NAME vertex-lines-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nout vec4 position_commonspace;\n\nuniform bool ZIncreasingDownwards;\n\nvoid main(void) {\n vec3 position = positions;\n position[2] *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n vec3 position_commonspace = project_position(position);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",fs:"#version 300 es\n#define SHADER_NAME graph-layer-fragment-shader\n\nprecision highp float;\n\nout vec4 fragColor;\n\nvoid main(void) {\n fragColor = vec4(0.0, 0.0, 0.0, 1.0);\n}\n",geometry:new geometry.Z({drawMode:gl.LINES,attributes:{positions:{value:this.props.positions,size:3}},indices:{value:this.props.lineIndices,size:1}}),modules:[project.Z],isInstanced:!1})]}draw(args){if(!this.state.models)return;const{uniforms:uniforms,context:context}=args,{gl:gl}=context,contourReferencePoint=this.props.contours[0]??-1,contourInterval=this.props.contours[1]??-1,isContoursDepth=this.props.isContoursDepth,[model_mesh,mesh_lines_model]=this.state.models,valueRangeMin=this.props.propertyValueRange[0]??0,valueRangeMax=this.props.propertyValueRange[1]??1,colorMapRangeMin=this.props.colorMapRange?.[0]??valueRangeMin,colorMapRangeMax=this.props.colorMapRange?.[1]??valueRangeMax,isClampColor=void 0!==this.props.colorMapClampColor&&!0!==this.props.colorMapClampColor&&!1!==this.props.colorMapClampColor;let colorMapClampColor=isClampColor?this.props.colorMapClampColor:[0,0,0];colorMapClampColor=colorMapClampColor.map((x=>(x??0)/255));const isColorMapClampColorTransparent=!1===this.props.colorMapClampColor,smoothShading=0!=this.props.normals.length&&this.props.smoothShading;gl.enable(esm.default.POLYGON_OFFSET_FILL),this.props.depthTest||gl.disable(esm.default.DEPTH_TEST),gl.polygonOffset(1,1),model_mesh.setUniforms({...uniforms,contourReferencePoint:contourReferencePoint,contourInterval:contourInterval,isContoursDepth:isContoursDepth,colormap:new texture_2d.Z(context.gl,{width:256,height:1,format:esm.default.RGB,data:(0,layerTools.n$)(this.props.colorMapName,this.context.userData.colorTables,this.props.colorMapFunction),parameters:DEFAULT_TEXTURE_PARAMETERS}),valueRangeMin:valueRangeMin,valueRangeMax:valueRangeMax,colorMapRangeMin:colorMapRangeMin,colorMapRangeMax:colorMapRangeMax,colorMapClampColor:colorMapClampColor,isColorMapClampColorTransparent:isColorMapClampColorTransparent,isClampColor:isClampColor,smoothShading:smoothShading,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),gl.disable(esm.default.POLYGON_OFFSET_FILL),this.props.depthTest||gl.enable(esm.default.DEPTH_TEST),this.props.gridLines&&mesh_lines_model.setUniforms({...uniforms,ZIncreasingDownwards:this.props.ZIncreasingDownwards}).draw(),this.state.isLoaded||this.setState({...this.state,isLoaded:!0})}decodePickingColor(){return 0}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[],vertexIndex=65536*info.color[0]+256*info.color[1]+info.color[2];if(void 0!==info.coordinate?.[2]){const zScale=this.props.modelMatrix?this.props.modelMatrix[10]:1,depth=(this.props.ZIncreasingDownwards?-info.coordinate[2]:info.coordinate[2])/Math.max(.001,zScale);layer_properties.push((0,layerTools.ws)("Depth",depth))}const property=this.props.vertexProperties[vertexIndex];return layer_properties.push((0,layerTools.ws)("Property",property)),{...info,properties:layer_properties}}getShaders(){return super.getShaders({vs:"#version 300 es\n#define SHADER_NAME vertex-shader\n\nprecision highp float;\n\n// Primitive attributes\nin vec3 positions;\nin float properties;\nin vec3 normals;\nin vec3 colors;\n\n// Outputs to fragment shader\nout vec2 vTexCoord;\nout vec3 cameraPosition;\nout vec3 normals_commonspace;\nout vec4 position_commonspace;\nout vec4 vColor;\nout vec3 worldPos;\nout float property;\nflat out int vertexIndex;\n\nuniform bool ZIncreasingDownwards;\n\nvoid main(void) {\n geometry.pickingColor = vec3(1.0, 1.0, 0.0);\n vertexIndex = gl_VertexID;\n\n vec3 position = positions;\n position[2] *= ZIncreasingDownwards ? -1.0 : 1.0;\n\n cameraPosition = project_uCameraPosition;\n\n worldPos = position;\n geometry.worldPosition = position;\n\n normals_commonspace = normals;\n\n vColor = vec4(colors.rgb, 1.0);\n\n property = properties;\n\n position_commonspace = vec4(project_position(position), 0.0);\n gl_Position = project_common_position_to_clipspace(position_commonspace);\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n",fs:'#version 300 es\n#define SHADER_NAME terrainmap-shader\n\nprecision highp float;\n\n\nuniform bool isContoursDepth;\nuniform float contourReferencePoint;\nuniform float contourInterval;\n\nin vec2 vTexCoord;\nin vec3 cameraPosition;\nin vec3 normals_commonspace;\nin vec4 position_commonspace;\nin vec4 vColor;\n\nflat in int vertexIndex;\n\nin vec3 worldPos;\nin float property;\n\nuniform sampler2D colormap;\n\nuniform float valueRangeMin;\nuniform float valueRangeMax;\nuniform float colorMapRangeMin;\nuniform float colorMapRangeMax;\n\nuniform vec3 colorMapClampColor;\nuniform bool isClampColor;\nuniform bool isColorMapClampColorTransparent;\nuniform bool smoothShading;\n\n\nvoid main(void) { \n geometry.uv = vTexCoord;\n\n vec3 normal = normals_commonspace;\n // These are sent as Int8\n normal[0] /= 127.0;\n normal[1] /= 127.0;\n normal[2] /= 127.0;\n\n if (!smoothShading || (normal[0] == 0.0 && normal[1] == 0.0 && normal[2] == 0.0)) {\n normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));\n }\n\n //Picking pass.\n if (picking_uActive && !picking_uAttribute) {\n gl_FragColor = encodeVertexIndexToRGB(vertexIndex);\n return;\n }\n\n vec4 color = vec4(1.0, 1.0, 1.0, 1.0);;\n float propertyValue = property;\n\n float x = (propertyValue - colorMapRangeMin) / (colorMapRangeMax - colorMapRangeMin);\n if (x < 0.0 || x > 1.0) {\n // Out of range. Use clampcolor.\n if (isClampColor) {\n color = vec4(colorMapClampColor.rgb, 1.0);\n\n }\n else if (isColorMapClampColorTransparent) {\n discard;\n return;\n }\n else {\n // Use min/max color to clamp.\n x = max(0.0, x);\n x = min(1.0, x);\n\n color = texture2D(colormap, vec2(x, 0.5));\n }\n }\n else {\n color = texture2D(colormap, vec2(x, 0.5));\n }\n\n \n bool is_contours = contourReferencePoint != -1.0 && contourInterval != -1.0;\n if (is_contours) {\n // Contours are made of either depths or properties.\n float val = isContoursDepth ? (abs(worldPos.z) - contourReferencePoint) / contourInterval\n : (propertyValue - contourReferencePoint) / contourInterval;\n\n float f = fract(val);\n float df = fwidth(val);\n\n // keep: float c = smoothstep(df * 1.0, df * 2.0, f); // smootstep from/to no of pixels distance fronm contour line.\n float c = smoothstep(0.0, df * 2.0, f);\n\n color = color * vec4(c, c, c, 1.0);\n }\n\n // Use two sided phong lighting. This has no effect if "material" property is not set.\n vec3 lightColor = getPhongLightColor(color.rgb, cameraPosition, position_commonspace.xyz, normal);\n gl_FragColor = vec4(lightColor, 1.0);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n',modules:[project32.Z,picking.Z,shader_modules.jA,shader_modules.hC]})}}function rotate(x,y,x0,y0,rad){return[Math.cos(rad)*(x-x0)-Math.sin(rad)*(y-y0)+x0,Math.sin(rad)*(x-x0)+Math.cos(rad)*(y-y0)+y0]}function makeFullMesh(e){const[inputMeshData,inputPropertiesData,isMesh,frame,smoothShading,gridLines]=e.data;function getFloat32ArrayMinMax(data){let max=-99999999,min=99999999;for(let i=0;imax?data[i]:max,min=data[i]=0&&isDefined(meshData[i1]),i2_act=h+1=0&&isDefined(meshData[i4]),noNormal=[0,0,0];if(!i0_act)return noNormal;const hh=ny-1-h,p0=[ox+w*dx,oy+hh*dy,i0_act?meshData[i0]:0],p1=[ox+(w-1)*dx,oy+hh*dy,i1_act?meshData[i1]:0],p2=[ox+w*dx,oy+(hh+1)*dy,i2_act?meshData[i2]:0],p3=[ox+(w+1)*dx,oy+hh*dy,i3_act?meshData[i3]:0],p4=[ox+w*dx,oy+(hh-1)*dy,i4_act?meshData[i4]:0],v1=[p1[0]-p0[0],p1[1]-p0[1],p1[2]-p0[2]],v2=[p2[0]-p0[0],p2[1]-p0[1],p2[2]-p0[2]],v3=[p3[0]-p0[0],p3[1]-p0[1],p3[2]-p0[2]],v4=[p4[0]-p0[0],p4[1]-p0[1],p4[2]-p0[2]],normals=[];if(i1_act&&i2_act){const normal=crossProduct(v2,v1);normals.push(normal)}if(i2_act&&i3_act){const normal=crossProduct(v3,v2);normals.push(normal)}if(i3_act&&i4_act){const normal=crossProduct(v4,v3);normals.push(normal)}if(i4_act&&i1_act){const normal=crossProduct(v1,v4);normals.push(normal)}if(0===normals.length)return noNormal;const mean=normals[0];for(let i=1;i{const fileReader=new FileReader;fileReader.readAsArrayBuffer(blob),fileReader.onload=()=>{const arrayBuffer=fileReader.result,data=lib.Jx(arrayBuffer).data,n=data.length,buffer=new ArrayBuffer(n),view=new DataView(buffer);for(let i=0;i0&&subLayers.every((layer=>layer.isLoaded)),isFinished=this.state?.isFinishedLoading??!1;return isLoaded&&isFinished}rebuildData(reportBoundingBox){void 0!==this.props.meshUrl&&console.warn('"meshUrl" is deprecated. Use "meshData"'),void 0!==this.props.propertiesUrl&&console.warn('"propertiesUrl" is deprecated. Use "propertiesData"');const p=async function loadMeshAndProperties(meshData,propertiesData){const mesh=await loadFloat32Data(meshData),properties=await loadFloat32Data(propertiesData);return Promise.all([mesh,properties])}(this.props.meshData??this.props.meshUrl,this.props.propertiesData??this.props.propertiesUrl);p.then((([meshData,propertiesData])=>{const webworkerParams=this.getWebworkerParams(meshData,propertiesData);pool.exec(makeFullMesh,[{data:webworkerParams.params}]).then((e=>{const[positions,normals,triangleIndices,vertexProperties,lineIndices,meshZValueRange,propertyValueRange]=e;if(this.setState({...this.state,positions:positions,normals:normals,triangleIndices:triangleIndices,vertexProperties:vertexProperties,lineIndices:lineIndices,propertyValueRange:propertyValueRange,isFinishedLoading:!0}),void 0!==this.props.reportBoundingBox&&reportBoundingBox){const xinc=this.props.frame?.increment?.[0]??0,yinc=this.props.frame?.increment?.[1]??0,nnodes_x=this.props.frame?.count?.[0]??2,nnodes_y=this.props.frame?.count?.[1]??2,xMin=this.props.frame?.origin?.[0]??0,yMin=this.props.frame?.origin?.[1]??0,zMin=-meshZValueRange[0],xMax=xMin+xinc*(nnodes_x-1),yMax=yMin+yinc*(nnodes_y-1),zMax=-meshZValueRange[1],center=this.props.frame.rotPoint??this.props.frame.origin,rotRad=(this.props.frame.rotDeg??0)*(2*Math.PI)/360,[x0,y0]=rotate(xMin,yMin,center[0],center[1],rotRad),[x1,y1]=rotate(xMax,yMin,center[0],center[1],rotRad),[x2,y2]=rotate(xMax,yMax,center[0],center[1],rotRad),[x3,y3]=rotate(xMin,yMax,center[0],center[1],rotRad),x_min=Math.min(x0,x1,x2,x3),x_max=Math.max(x0,x1,x2,x3),y_min=Math.min(y0,y1,y2,y3),y_max=Math.max(y0,y1,y2,y3);this.props.reportBoundingBox({layerBoundingBox:[x_min,y_min,zMin,x_max,y_max,zMax]})}!function onTerminateWorker(){const stats=pool.stats();0===stats.busyWorkers&&0===stats.pendingTasks&&pool.terminate()}()}))}))}initializeState(){this.setState({...this.state,isFinishedLoading:!1});this.rebuildData(!0)}updateState({props:props,oldProps:oldProps}){if(!((0,lodash.isEqual)(props.meshUrl,oldProps.meshUrl)&&(0,lodash.isEqual)(props.propertiesUrl,oldProps.propertiesUrl)&&(0,lodash.isEqual)(props.meshData,oldProps.meshData)&&(0,lodash.isEqual)(props.propertiesData,oldProps.propertiesData)&&(0,lodash.isEqual)(props.frame,oldProps.frame)&&(0,lodash.isEqual)(props.ZIncreasingDownwards,oldProps.ZIncreasingDownwards)&&(0,lodash.isEqual)(props.gridLines,oldProps.gridLines))){this.setState({...this.state,isFinishedLoading:!1});const reportBoundingBox=!1;this.rebuildData(reportBoundingBox)}}renderLayers(){if(1===Object.keys(this.state).length)return[];const[minX,minY]=this.props.frame.origin,center=this.props.frame.rotPoint??[minX,minY],rotatingModelMatrix=(0,layerTools.RT)(this.props.frame.rotDeg??0,center[0],center[1]),isMesh=void 0!==this.props.meshUrl&&""!==this.props.meshUrl||void 0!==this.props.meshData&&""!==this.props.meshData;void 0!==this.props.modelMatrix&&null!==this.props.modelMatrix&&rotatingModelMatrix.multiplyRight(this.props.modelMatrix);return[new PrivateMapLayer(this.getSubLayerProps({positions:this.state.positions,normals:this.state.normals,triangleIndices:this.state.triangleIndices,vertexProperties:this.state.vertexProperties,lineIndices:this.state.lineIndices,pickable:this.props.pickable,modelMatrix:rotatingModelMatrix,contours:this.props.contours,gridLines:this.props.gridLines,isContoursDepth:!!isMesh&&this.props.isContoursDepth,colorMapName:this.props.colorMapName,colorMapRange:this.props.colorMapRange,colorMapClampColor:this.props.colorMapClampColor,colorMapFunction:this.props.colorMapFunction,propertyValueRange:this.state.propertyValueRange,material:this.props.material,smoothShading:this.props.smoothShading,depthTest:this.props.depthTest,ZIncreasingDownwards:this.props.ZIncreasingDownwards}))]}getWebworkerParams(meshData,propertiesData){if(!meshData&&!propertiesData)throw new Error("Either mesh or properties or the both must be defined");const params=[meshData,propertiesData,!!meshData,this.props.frame,this.props.smoothShading,this.props.gridLines],transferrables=[meshData?.buffer,propertiesData?.buffer].filter((item=>!!item));return transferrables.length>0?{params:params,transferrables:transferrables}:{params:params}}}MapLayer.layerName="MapLayer",MapLayer.defaultProps={"@@type":"MapLayer",name:"Map",id:"map3d-layer-float32",pickable:!0,visible:!0,bounds:{type:"object",value:null,false:!0,compare:!0},colorMapRange:{type:"array"},contours:[-1,-1],isContoursDepth:!0,gridLines:!1,smoothShading:!0,material:!0,depthTest:!0,ZIncreasingDownwards:!0}},"./packages/subsurface-viewer/src/layers/northarrow/northArrow3DLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return NorthArrow3DLayer}});var lib_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/layer.js"),orthographic_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orthographic-viewport.js"),project=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project/project.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),model=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/lib/model.js"),geometry=__webpack_require__("./node_modules/@luma.gl/engine/dist/esm/geometry/geometry.js"),vector3=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/vector3.js");class NorthArrow3DLayer extends lib_layer.Z{initializeState(context){const{gl:gl}=context;this.setState(this._getModels(gl))}shouldUpdateState(){return!0}updateState({context:context}){context.gl&&this.setState(this._getModels(context.gl))}draw({moduleParameters:moduleParameters,uniforms:uniforms,context:context}){const{gl:gl}=context;gl.disable(gl.DEPTH_TEST),super.draw({moduleParameters:moduleParameters,uniforms:uniforms,context:context}),gl.enable(gl.DEPTH_TEST)}_getModels(gl){const model_lines=function GetArrowLines(){const lines=[];let z=.5;return lines.push([-1,-2,z]),lines.push([-1,2,z]),lines.push([-1,2,z]),lines.push([-1.5,2,z]),lines.push([-1.5,2,z]),lines.push([0,4,z]),lines.push([0,4,z]),lines.push([1.5,2,z]),lines.push([1.5,2,z]),lines.push([1,2,z]),lines.push([1,2,z]),lines.push([1,-2,z]),lines.push([1,-2,z]),lines.push([-1,-2,z]),z=-.5,lines.push([-1,-2,z]),lines.push([-1,2,z]),lines.push([-1,2,z]),lines.push([-1.5,2,z]),lines.push([-1.5,2,z]),lines.push([0,4,z]),lines.push([0,4,z]),lines.push([1.5,2,z]),lines.push([1.5,2,z]),lines.push([1,2,z]),lines.push([1,2,z]),lines.push([1,-2,z]),lines.push([1,-2,z]),lines.push([-1,-2,z]),lines.push([-1,-2,-.5]),lines.push([-1,-2,.5]),lines.push([-1,2,-.5]),lines.push([-1,2,.5]),lines.push([-1.5,2,-.5]),lines.push([-1.5,2,.5]),lines.push([0,4,-.5]),lines.push([0,4,.5]),lines.push([1.5,2,-.5]),lines.push([1.5,2,.5]),lines.push([1,2,-.5]),lines.push([1,2,.5]),lines.push([1,-2,-.5]),lines.push([1,-2,.5]),lines.flat()}(),is_orthographic=this.context.viewport.constructor===orthographic_viewport.Z,view_at=new vector3.Z(this.unproject([100,100,0]));let view_from=new vector3.Z(this.context.viewport.cameraPosition);if(is_orthographic){const cam_pos_z=new vector3.Z(this.context.viewport.cameraPosition)[2];view_from=new vector3.Z([view_at[0],view_at[1],cam_pos_z])}const dir=new vector3.Z([view_at[0]-view_from[0],view_at[1]-view_from[1],view_at[2]-view_from[2]]);dir.normalize(),dir.scale(9999);const pos=new vector3.Z([view_from[0]+dir[0],view_from[1]+dir[1],view_from[2]+dir[2]]),lines=[],zoom=this.context.viewport.zoom,zoom_scale=Math.pow(2,zoom),scale=is_orthographic?15/zoom_scale:99;for(let i=0;i(x??0)/255));color[3]=1;const grids=new model.Z(gl,{id:`${this.props.id}-grids`,vs:"#version 300 es\n#define SHADER_NAME graph-layer-axis-vertex-shader\n\nprecision highp float;\n\nin vec3 positions;\n\nvoid main(void) {\n vec3 position_commonspace = project_position(positions);\n gl_Position = project_common_position_to_clipspace(vec4(position_commonspace, 0.0));\n}\n",fs:"#version 300 es\n#define SHADER_NAME graph-layer-fragment-shader\n\nprecision highp float;\n\nout vec4 fragColor;\n\nuniform vec4 uColor;\n\nvoid main(void) {\n fragColor = uColor;\n}\n",uniforms:{uColor:color},geometry:new geometry.Z({drawMode:esm.default.LINES,attributes:{positions:new Float32Array(lines)},vertexCount:lines.length/3}),modules:[project.Z],isInstanced:!1});return{model:grids,models:[grids].filter(Boolean),modelsByName:{grids:grids}}}}NorthArrow3DLayer.layerName="NorthArrow3DLayer",NorthArrow3DLayer.defaultProps={"@@type":"NorthArrow3DLayer",name:"NorthArrow3D",id:"north-arrow-layer",visible:!0,color:[0,0,0,1]}},"./packages/subsurface-viewer/src/layers/polylines/polylinesLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return PolylinesLayer}});var composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts"),path_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),project32=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/project32/project32.js"),picking=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/shaderlib/picking/picking.js");class PrivatePolylinesLayer extends path_layer.Z{constructor(props){super(props)}getShaders(){return{vs:"#version 300 es\n#define SHADER_NAME path-layer-vertex-shader\n\nin vec2 positions;\n\nin float instanceTypes;\nin vec3 instanceStartPositions;\nin vec3 instanceEndPositions;\nin vec3 instanceLeftPositions;\nin vec3 instanceRightPositions;\nin vec3 instanceLeftPositions64Low;\nin vec3 instanceStartPositions64Low;\nin vec3 instanceEndPositions64Low;\nin vec3 instanceRightPositions64Low;\nin float instanceStrokeWidths;\nin vec4 instanceColors;\nin vec3 instancePickingColors;\n\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float jointType;\nuniform float capType;\nuniform float miterLimit;\nuniform bool billboard;\nuniform int widthUnits;\n\nuniform float opacity;\nuniform bool ZIncreasingDownwards;\n\nout vec4 vColor;\nout vec2 vCornerOffset;\nout float vMiterLength;\nout vec2 vPathPosition;\nout float vPathLength;\nout float vJointType;\n\nconst float EPSILON = 0.001;\nconst vec3 ZERO_OFFSET = vec3(0.0);\n\nfloat flipIfTrue(bool flag) {\n return -(float(flag) * 2. - 1.);\n}\n\n// calculate line join positions\nvec3 getLineJoinOffset(\n vec3 prevPoint, vec3 currPoint, vec3 nextPoint,\n vec2 width\n) {\n bool isEnd = positions.x > 0.0;\n // side of the segment - -1: left, 0: center, 1: right\n float sideOfPath = positions.y;\n float isJoint = float(sideOfPath == 0.0);\n\n vec3 deltaA3 = (currPoint - prevPoint);\n vec3 deltaB3 = (nextPoint - currPoint);\n\n mat3 rotationMatrix;\n bool needsRotation = !billboard && project_needs_rotation(currPoint, rotationMatrix);\n if (needsRotation) {\n deltaA3 = deltaA3 * rotationMatrix;\n deltaB3 = deltaB3 * rotationMatrix;\n }\n vec2 deltaA = deltaA3.xy / width;\n vec2 deltaB = deltaB3.xy / width;\n\n float lenA = length(deltaA);\n float lenB = length(deltaB);\n\n vec2 dirA = lenA > 0. ? normalize(deltaA) : vec2(0.0, 0.0);\n vec2 dirB = lenB > 0. ? normalize(deltaB) : vec2(0.0, 0.0);\n\n vec2 perpA = vec2(-dirA.y, dirA.x);\n vec2 perpB = vec2(-dirB.y, dirB.x);\n\n // tangent of the corner\n vec2 tangent = dirA + dirB;\n tangent = length(tangent) > 0. ? normalize(tangent) : perpA;\n // direction of the corner\n vec2 miterVec = vec2(-tangent.y, tangent.x);\n // direction of the segment\n vec2 dir = isEnd ? dirA : dirB;\n // direction of the extrusion\n vec2 perp = isEnd ? perpA : perpB;\n // length of the segment\n float L = isEnd ? lenA : lenB;\n\n // A = angle of the corner\n float sinHalfA = abs(dot(miterVec, perp));\n float cosHalfA = abs(dot(dirA, miterVec));\n\n // -1: right, 1: left\n float turnDirection = flipIfTrue(dirA.x * dirB.y >= dirA.y * dirB.x);\n\n // relative position to the corner:\n // -1: inside (smaller side of the angle)\n // 0: center\n // 1: outside (bigger side of the angle)\n float cornerPosition = sideOfPath * turnDirection;\n\n float miterSize = 1.0 / max(sinHalfA, EPSILON);\n // trim if inside corner extends further than the line segment\n miterSize = mix(\n min(miterSize, max(lenA, lenB) / max(cosHalfA, EPSILON)),\n miterSize,\n step(0.0, cornerPosition)\n );\n\n vec2 offsetVec = mix(miterVec * miterSize, perp, step(0.5, cornerPosition))\n * (sideOfPath + isJoint * turnDirection);\n\n // special treatment for start cap and end cap\n bool isStartCap = lenA == 0.0 || (!isEnd && (instanceTypes == 1.0 || instanceTypes == 3.0));\n bool isEndCap = lenB == 0.0 || (isEnd && (instanceTypes == 2.0 || instanceTypes == 3.0));\n bool isCap = isStartCap || isEndCap;\n\n // extend out a triangle to envelope the round cap\n if (isCap) {\n offsetVec = mix(perp * sideOfPath, dir * capType * 4.0 * flipIfTrue(isStartCap), isJoint);\n vJointType = capType;\n } else {\n vJointType = jointType;\n }\n\n // Generate variables for fragment shader\n vPathLength = L;\n vCornerOffset = offsetVec;\n vMiterLength = dot(vCornerOffset, miterVec * turnDirection);\n vMiterLength = isCap ? isJoint : vMiterLength;\n\n vec2 offsetFromStartOfPath = vCornerOffset + deltaA * float(isEnd);\n vPathPosition = vec2(\n dot(offsetFromStartOfPath, perp),\n dot(offsetFromStartOfPath, dir)\n );\n geometry.uv = vPathPosition;\n\n float isValid = step(instanceTypes, 3.5);\n vec3 offset = vec3(offsetVec * width * isValid, 0.0);\n\n if (needsRotation) {\n offset = rotationMatrix * offset;\n }\n return offset;\n}\n\n// In clipspace extrusion, if a line extends behind the camera, clip it to avoid visual artifacts\nvoid clipLine(inout vec4 position, vec4 refPosition) {\n if (position.w < EPSILON) {\n float r = (EPSILON - refPosition.w) / (position.w - refPosition.w);\n position = refPosition + (position - refPosition) * r;\n }\n}\n\nvoid main() {\n geometry.pickingColor = instancePickingColors;\n\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n vec3 leftPosition = instanceLeftPositions;\n vec3 startPosition = instanceStartPositions;\n vec3 leftPos64Low = instanceLeftPositions64Low;\n vec3 startPos64Low = instanceStartPositions64Low;\n\n vec3 rightposition = instanceRightPositions;\n vec3 endPosition = instanceEndPositions;\n vec3 rightPos64Low = instanceRightPositions64Low;\n vec3 endPos64Low = instanceEndPositions64Low;\n\n if(ZIncreasingDownwards) {\n leftPosition.z *= -1.0;\n startPosition.z *= -1.0;\n leftPos64Low.z *= -1.0;\n startPos64Low.z *= -1.0;\n rightposition.z *= -1.0;\n endPosition.z *= -1.0;\n rightPos64Low.z *= -1.0;\n endPos64Low.z *= -1.0; \n }\n\n float isEnd = positions.x;\n\n vec3 prevPosition = mix(leftPosition, startPosition, isEnd);\n vec3 prevPosition64Low = mix(leftPos64Low, startPos64Low, isEnd);\n\n vec3 currPosition = mix(startPosition, endPosition, isEnd);\n vec3 currPosition64Low = mix(startPos64Low, endPos64Low, isEnd);\n\n vec3 nextPosition = mix(endPosition, rightposition, isEnd);\n vec3 nextPosition64Low = mix(endPos64Low, rightPos64Low, isEnd);\n\n geometry.worldPosition = currPosition;\n vec2 widthPixels = vec2(clamp(\n project_size_to_pixel(instanceStrokeWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels) / 2.0);\n vec3 width;\n\n if (billboard) {\n // Extrude in clipspace\n vec4 prevPositionScreen = project_position_to_clipspace(prevPosition, prevPosition64Low, ZERO_OFFSET);\n vec4 currPositionScreen = project_position_to_clipspace(currPosition, currPosition64Low, ZERO_OFFSET, geometry.position);\n vec4 nextPositionScreen = project_position_to_clipspace(nextPosition, nextPosition64Low, ZERO_OFFSET);\n\n clipLine(prevPositionScreen, currPositionScreen);\n clipLine(nextPositionScreen, currPositionScreen);\n clipLine(currPositionScreen, mix(nextPositionScreen, prevPositionScreen, isEnd));\n\n width = vec3(widthPixels, 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec3 offset = getLineJoinOffset(\n prevPositionScreen.xyz / prevPositionScreen.w,\n currPositionScreen.xyz / currPositionScreen.w,\n nextPositionScreen.xyz / nextPositionScreen.w,\n project_pixel_size_to_clipspace(width.xy)\n );\n\n DECKGL_FILTER_GL_POSITION(currPositionScreen, geometry);\n gl_Position = vec4(currPositionScreen.xyz + offset * currPositionScreen.w, currPositionScreen.w);\n } else {\n // Extrude in commonspace\n prevPosition = project_position(prevPosition, prevPosition64Low);\n currPosition = project_position(currPosition, currPosition64Low);\n nextPosition = project_position(nextPosition, nextPosition64Low);\n\n width = vec3(project_pixel_size(widthPixels), 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec3 offset = getLineJoinOffset(prevPosition, currPosition, nextPosition, width.xy);\n geometry.position = vec4(currPosition + offset, 1.0);\n gl_Position = project_common_position_to_clipspace(geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n }\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#version 300 es\n#define SHADER_NAME path-layer-fragment-shader\n\nprecision highp float;\n\nuniform float miterLimit;\n\nin vec4 vColor;\nin vec2 vCornerOffset;\nin float vMiterLength;\n/*\n * vPathPosition represents the relative coordinates of the current fragment on the path segment.\n * vPathPosition.x - position along the width of the path, between [-1, 1]. 0 is the center line.\n * vPathPosition.y - position along the length of the path, between [0, L / width].\n */\nin vec2 vPathPosition;\nin float vPathLength;\nin float vJointType;\n\nout vec4 fragColor;\n\nvoid main(void) {\n geometry.uv = vPathPosition;\n\n if (vPathPosition.y < 0.0 || vPathPosition.y > vPathLength) {\n // if joint is rounded, test distance from the corner\n if (vJointType > 0.5 && length(vCornerOffset) > 1.0) {\n discard;\n }\n // trim miter\n if (vJointType < 0.5 && vMiterLength > miterLimit + 1.0) {\n discard;\n }\n }\n fragColor = vColor;\n\n DECKGL_FILTER_COLOR(fragColor, geometry);\n}\n",modules:[project32.Z,picking.Z]}}draw(args){args.uniforms.ZIncreasingDownwards=this.props.ZIncreasingDownwards;let restoreDepthTest=!1;"boolean"!=typeof this.props.depthTest||this.props.depthTest||(restoreDepthTest=!0,this.context.gl.disable(esm.default.DEPTH_TEST)),super.draw({uniforms:args.uniforms}),restoreDepthTest&&this.context.gl.enable(esm.default.DEPTH_TEST)}}PrivatePolylinesLayer.layerName="PrivatePolylinesLayer";class PolylinesLayer extends composite_layer.Z{renderLayers(){return[new PrivatePolylinesLayer(this.getSubLayerProps({id:"polylines-layer",widthUnits:this.props.widthUnits,pickable:this.props.pickable,billboard:!0,jointRounded:!0,capRounded:!0,data:this.state.dataAttributes,_pathType:this.state.dataAttributes.pathType,getColor:()=>this.props.color,getWidth:()=>this.props.linesWidth,updateTriggers:{getColor:[this.props.color],getWidth:[this.props.linesWidth]},depthTest:this.props.depthTest,ZIncreasingDownwards:this.props.ZIncreasingDownwards}))]}initializeState(){const dataAttributes=this.rebuildDataAttributes(!0);this.setState({dataAttributes:dataAttributes})}updateState({props:props,oldProps:oldProps}){if(!((0,lodash.isEqual)(props.polylinePoints,oldProps.polylinePoints)&&(0,lodash.isEqual)(props.startIndices,oldProps.startIndices)&&(0,lodash.isEqual)(props.polylinesClosed,oldProps.polylinesClosed)&&(0,lodash.isEqual)(props.ZIncreasingDownwards,oldProps.ZIncreasingDownwards))){const dataAttributes=this.rebuildDataAttributes(!1);this.setState({dataAttributes:dataAttributes})}}rebuildDataAttributes(reportBoundingBox){const dataArrays=this.loadData();if("function"==typeof this.props.reportBoundingBox&&reportBoundingBox){const boundingBox=(0,layerTools.f3)(dataArrays.positions);this.props.reportBoundingBox({layerBoundingBox:boundingBox})}return{length:dataArrays.linesCount,startIndices:dataArrays.startIndices,attributes:{getPath:{value:dataArrays.positions,size:3}},pathType:dataArrays.pathType}}getPickingInfo({info:info}){if(!info.color)return info;const layer_properties=[];if(void 0!==info.coordinate?.[2]){const depth=this.props.ZIncreasingDownwards?-info.coordinate[2]:info.coordinate[2];layer_properties.push((0,layerTools.ws)("Depth",depth))}return{...info,properties:layer_properties}}loadData(){if(this.props.polylinePoints instanceof Float32Array&&this.props.startIndices instanceof Uint32Array&&!this.props.polylinesClosed)return{linesCount:this.props.startIndices.length-1,positions:this.props.polylinePoints,startIndices:this.props.startIndices,pathType:"open"};const data=this.closePolylines();return{linesCount:data.startIndices.length,positions:new Float32Array(data.polylinePoints),startIndices:new Uint32Array(data.startIndices),pathType:data.pathType}}toArray(data){return Array.isArray(data)?data:Array.from(data)}closePolylines(){const points=this.toArray(this.props.polylinePoints),startIndices=this.toArray(this.props.startIndices);this.normalizeStartIndices(startIndices,points.length/3);const isClosedFunc=this.createIsClosedFunc();if(!isClosedFunc.func)return{polylinePoints:points,startIndices:startIndices,pathType:isClosedFunc.pathType};let startIndexShift=0;const closedPoints=[],closedStartIndices=[],linesCount=this.props.startIndices.length-1;for(let i=0;i!0,pathType:"loop"}:Array.isArray(this.props.polylinesClosed)?{func:lineIndex=>this.props.polylinesClosed[lineIndex],pathType:null}:{func:null,pathType:"open"}}}PolylinesLayer.layerName="PolylinesLayer",PolylinesLayer.defaultProps={"@@type":"PolylinesLayer",name:"PolylinesLayer",id:"polylines-layer",widthUnits:"pixels",linesWidth:5,color:[0,0,200,255],pickable:!0,visible:!0,depthTest:!0,ZIncreasingDownwards:!0}},"./packages/subsurface-viewer/src/layers/shader_modules/index.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{xv:function(){return decoder},jA:function(){return localPhongLighting},hC:function(){return utilities}});const DEFAULT_DECODER={rgbScaler:[1,1,1],floatScaler:1,offset:0,step:0};const decoder={name:"decoder",fs:"struct Decoder\n{\n vec3 rgbScaler; // r, g and b multipliers\n float floatScaler; // value multiplier\n float offset; // translation of the r, g, b sum\n float step; // discretize the value in a number of steps\n};\n\nuniform Decoder decoder;\n\nuniform float valueRangeMin;\nuniform float valueRangeMax;\nuniform float colorMapRangeMin;\nuniform float colorMapRangeMax;\n\n// Decode the RGB value using the decoder parameter.\nfloat decode_rgb2float(vec3 rgb, Decoder dec) {\n rgb *= dec.rgbScaler * vec3(16711680.0, 65280.0, 255.0); //255*256*256, 255*256, 255\n float value = (rgb.r + rgb.g + rgb.b + dec.offset) * dec.floatScaler;\n\n // Value must be in [0, 1] and step in (0, 1]\n value = floor(value / dec.step + 0.5) * dec.step;\n\n // If colorMapRangeMin/Max specified, color map will span this interval.\n float x = value * (valueRangeMax - valueRangeMin) + valueRangeMin;\n x = (x - colorMapRangeMin) / (colorMapRangeMax - colorMapRangeMin);\n x = max(0.0, x);\n x = min(1.0, x);\n\n return x;\n}\n\n// Decode the RGB value using the decoder uniform.\nfloat decode_rgb2float(vec3 rgb) {\n return decode_rgb2float(rgb, decoder);\n}\n",getUniforms:function getUniforms(opts){if(opts&&opts.valueDecoder){const{rgbScaler:rgbScaler=DEFAULT_DECODER.rgbScaler,floatScaler:floatScaler=DEFAULT_DECODER.floatScaler,offset:offset=DEFAULT_DECODER.offset,step:step=DEFAULT_DECODER.step}=opts.valueDecoder;return{"decoder.rgbScaler":rgbScaler,"decoder.floatScaler":floatScaler,"decoder.offset":offset,"decoder.step":Math.max(step,1e-7)}}return{}}};const localPhongLighting={name:"localPhongLighting",fs:"\n// Note: modification of luma.gl's functions to get two sided phong lighting.\n// Ref original file modules/shadertools/src/modules/phong-lighting/phong-lighting.glsl.ts in luma source.\n\nvec3 getPhongLightColor(vec3 surfaceColor, vec3 light_direction, vec3 view_direction, vec3 normal_worldspace, vec3 color) {\n \n vec3 halfway_direction = normalize(light_direction + view_direction); \n float lambertian = abs(dot(light_direction, normal_worldspace));\n\n float specular_angle = abs(dot(normal_worldspace, halfway_direction));\n\n float specular = pow(specular_angle, lighting_uShininess); \n return (lambertian * lighting_uDiffuse * surfaceColor + specular * lighting_uSpecularColor) * color; \n}\n\nvec3 getPhongLightColor(vec3 surfaceColor,vec3 cameraPosition, vec3 position_worldspace, vec3 normal_worldspace) {\n\n vec3 lightColor = surfaceColor;\n\n if (lighting_uEnabled) {\n vec3 view_direction = normalize(cameraPosition - position_worldspace);\n lightColor = lighting_uAmbient * surfaceColor * lighting_uAmbientLight.color;\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uPointLightCount) {\n break;\n }\n PointLight pointLight = lighting_uPointLight[i];\n vec3 light_position_worldspace = pointLight.position;\n vec3 light_direction = normalize(light_position_worldspace - position_worldspace);\n lightColor += getPhongLightColor(surfaceColor, light_direction, view_direction, normal_worldspace, pointLight.color);\n }\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uDirectionalLightCount) {\n break;\n }\n DirectionalLight directionalLight = lighting_uDirectionalLight[i];\n lightColor += getPhongLightColor(surfaceColor, -directionalLight.direction, view_direction, normal_worldspace, directionalLight.color);\n }\n }\n return lightColor;\n}\n",dependencies:[__webpack_require__("./node_modules/@luma.gl/shadertools/dist/esm/modules/phong-lighting/phong-lighting.js").s]},utilities={name:"utilities",fs:"vec4 encodeVertexIndexToRGB (int vertexIndex) {\n\n float r = 0.0;\n float g = 0.0;\n float b = 0.0;\n \n if (vertexIndex >= (256 * 256) - 1) {\n r = floor(float(vertexIndex) / (256.0 * 256.0));\n vertexIndex -= int(r * (256.0 * 256.0));\n }\n \n if (vertexIndex >= 256 - 1) {\n g = floor(float(vertexIndex) / 256.0);\n vertexIndex -= int(g * 256.0);\n }\n \n b = float(vertexIndex);\n \n return vec4(r / 255.0, g / 255.0, b / 255.0, 1.0); \n }\n "}},"./packages/subsurface-viewer/src/layers/utils/layerTools.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{A3:function(){return isDrawingEnabled},BZ:function(){return getModelMatrixScale},RT:function(){return getModelMatrix},eG:function(){return getLayersByType},f3:function(){return defineBoundingBox},hc:function(){return getLayersById},kF:function(){return getWellLayerByTypeAndSelectedWells},n$:function(){return getImageData},ws:function(){return createPropertyData}});var _emerson_eps_color_tables___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/index.js"),_emerson_eps_color_tables_dist_component_Utils_legendCommonFunction__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/Utils/legendCommonFunction.js"),math_gl__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js");function createPropertyData(name,value,color){return{name:name,value:value,color:color}}function getModelMatrix(deg,x,y){const rad=.017453*deg,IDENTITY=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],m1=new math_gl__WEBPACK_IMPORTED_MODULE_2__.Z(IDENTITY).translate([-x,-y,0,1]),mRot=new math_gl__WEBPACK_IMPORTED_MODULE_2__.Z(IDENTITY).rotateZ(rad),m2=new math_gl__WEBPACK_IMPORTED_MODULE_2__.Z(IDENTITY).translate([x,y,0,1]);mRot.multiplyRight(m1);return m2.multiplyRight(mRot)}function getModelMatrixScale(scaleZ){return new math_gl__WEBPACK_IMPORTED_MODULE_2__.Z([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]).scale([1,1,scaleZ])}function getLayersByType(layers,type){return layers?layers.filter((l=>l?.constructor.name===type)):[]}function getWellLayerByTypeAndSelectedWells(layers,type,selectedWell){return layers&&selectedWell?layers.filter((l=>l?.constructor.name===type&&l.props.data?.features?.find((item=>item.properties.name===selectedWell)))):[]}function getLayersById(layers,id){return layers?layers.filter((l=>l.id===id)):[]}function isDrawingEnabled(layer_manager){const drawing_layer=layer_manager.getLayers({layerIds:["drawing-layer"]})?.[0];return drawing_layer&&drawing_layer.props.visible&&"view"!=drawing_layer.props.mode}function defineBoundingBox(dataArray,zIncreasingDownwards=!1){const length=dataArray.length;let minX=Number.POSITIVE_INFINITY,minY=Number.POSITIVE_INFINITY,minZ=Number.POSITIVE_INFINITY,maxX=Number.NEGATIVE_INFINITY,maxY=Number.NEGATIVE_INFINITY,maxZ=Number.NEGATIVE_INFINITY;for(let i=0;imaxX?x:maxX,maxY=y>maxY?y:maxY,maxZ=z>maxZ?z:maxZ}return zIncreasingDownwards&&([maxZ,minZ]=[-minZ,-maxZ]),[minX,minY,minZ,maxX,maxY,maxZ]}function getImageData(colorMapName,colorTables,colorMapFunction){const isColorMapFunctionDefined=void 0!==colorMapFunction,isColorMapNameDefined=!!colorMapName;let colorMap=(0,_emerson_eps_color_tables_dist_component_Utils_legendCommonFunction__WEBPACK_IMPORTED_MODULE_1__.z$)();isColorMapFunctionDefined?colorMap="function"==typeof colorMapFunction?colorMapFunction:()=>colorMapFunction:isColorMapNameDefined&&(colorMap=value=>(0,_emerson_eps_color_tables___WEBPACK_IMPORTED_MODULE_0__.CA)(value,colorMapName,colorTables));const data=new Uint8Array(768);for(let i=0;i<256;i++){const color=colorMap?colorMap(i/255):[0,0,0];color&&(data[3*i+0]=color[0],data[3*i+1]=color[1],data[3*i+2]=color[2])}return data||[0,0,0]}},"./packages/subsurface-viewer/src/layers/wells/utils/abscissaTransform.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{q:function(){return abscissaTransform}});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lodash/lodash.js"),mathjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/entry/pureFunctionsAny.generated.js");function computeUnfoldedPath(worldCoordinates){const z=worldCoordinates.map((v=>v[2])),delta=worldCoordinates.map(((v,i,coordinates)=>{const prev=coordinates[i-1]||v;return(0,mathjs__WEBPACK_IMPORTED_MODULE_1__.TE$)([prev[0],prev[1]],[v[0],v[1]])})),a=[];delta.forEach((d=>{const prev=a.at(-1)||0;a.push(d+prev)}));return(0,lodash__WEBPACK_IMPORTED_MODULE_0__.zip)(a,z,[...a].fill(0))}function abscissaTransform(featureCollection){const featureCollectionCopy=(0,lodash__WEBPACK_IMPORTED_MODULE_0__.cloneDeep)(featureCollection);for(const feature of featureCollectionCopy.features){const geometryCollection=feature.geometry;for(const geometry of geometryCollection.geometries)if("LineString"===geometry.type){const transformedCoordinates=computeUnfoldedPath(geometry.coordinates);geometry.coordinates=transformedCoordinates}else if("Point"===geometry.type){const coordinates=geometry.coordinates;geometry.coordinates=[0,coordinates[2],0]}}return featureCollectionCopy}},"./packages/subsurface-viewer/src/layers/wells/wellsLayer.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{ZP:function(){return WellsLayer},ap:function(){return getSize}});var composite_layer=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/lib/composite-layer.js"),orbit_viewport=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/orbit-viewport.js"),layerTools=__webpack_require__("./packages/subsurface-viewer/src/layers/utils/layerTools.ts"),path_style_extension=__webpack_require__("./node_modules/@deck.gl/extensions/dist/esm/path-style/path-style-extension.js"),geojson_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/geojson-layer/geojson-layer.js"),path_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/path-layer/path-layer.js"),text_layer=__webpack_require__("./node_modules/@deck.gl/layers/dist/esm/text-layer/text-layer.js"),dist=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/index.js"),pureFunctionsAny_generated=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/entry/pureFunctionsAny.generated.js"),esm=__webpack_require__("./node_modules/@luma.gl/constants/dist/esm/index.js"),src=__webpack_require__("./node_modules/d3/src/index.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),abscissaTransform=__webpack_require__("./packages/subsurface-viewer/src/layers/wells/utils/abscissaTransform.ts"),es=__webpack_require__("./node_modules/@turf/simplify/dist/es/index.js");function removeConsecutiveDuplicates(coords,mds){const keep=coords.map(((e,index,arr)=>!(indexkeep[index])),mds=mds.filter(((_e,index)=>keep[index]))]}function CatmullRom1D(P0,P1,P2,P3,t){const tt=t*t,ttt=t*t*t,dist_p0_p1=Math.sqrt((P1-P0)*(P1-P0)+(P1-P0)*(P1-P0)+(P1-P0)*(P1-P0)),dist_p1_p2=Math.sqrt((P1-P2)*(P1-P2)+(P1-P2)*(P1-P2)+(P1-P2)*(P1-P2)),dist_p2_p3=Math.sqrt((P3-P2)*(P3-P2)+(P3-P2)*(P3-P2)+(P3-P2)*(P3-P2)),t01=Math.pow(dist_p0_p1,.5),t12=Math.pow(dist_p1_p2,.5),t23=Math.pow(dist_p2_p3,.5),m1=P2-P1+t12*((P1-P0)/t01-(P2-P0)/(t01+t12)),m2=P2-P1+t12*((P3-P2)/t23-(P3-P1)/(t12+t23));return(2*(P1-P2)+m1+m2)*ttt+(-3*(P1-P2)-m1-m1-m2)*tt+m1*t+P1}function CatmullRom(P0,P1,P2,P3,t){const tt=t*t,ttt=t*t*t,dist_p0_p1=Math.sqrt((P1[0]-P0[0])*(P1[0]-P0[0])+(P1[1]-P0[1])*(P1[1]-P0[1])+(P1[2]-P0[2])*(P1[2]-P0[2])),dist_p1_p2=Math.sqrt((P1[0]-P2[0])*(P1[0]-P2[0])+(P1[1]-P2[1])*(P1[1]-P2[1])+(P1[2]-P2[2])*(P1[2]-P2[2])),dist_p2_p3=Math.sqrt((P3[0]-P2[0])*(P3[0]-P2[0])+(P3[1]-P2[1])*(P3[1]-P2[1])+(P3[2]-P2[2])*(P3[2]-P2[2])),t01=Math.pow(dist_p0_p1,.5),t12=Math.pow(dist_p1_p2,.5),t23=Math.pow(dist_p2_p3,.5),m1_x=P2[0]-P1[0]+t12*((P1[0]-P0[0])/t01-(P2[0]-P0[0])/(t01+t12)),m1_y=P2[1]-P1[1]+t12*((P1[1]-P0[1])/t01-(P2[1]-P0[1])/(t01+t12)),m1_z=P2[2]-P1[2]+t12*((P1[2]-P0[2])/t01-(P2[2]-P0[2])/(t01+t12)),m2_x=P2[0]-P1[0]+t12*((P3[0]-P2[0])/t23-(P3[0]-P1[0])/(t12+t23)),m2_y=P2[1]-P1[1]+t12*((P3[1]-P2[1])/t23-(P3[1]-P1[1])/(t12+t23)),m2_z=P2[2]-P1[2]+t12*((P3[2]-P2[2])/t23-(P3[2]-P1[2])/(t12+t23)),a_x=2*(P1[0]-P2[0])+m1_x+m2_x,a_y=2*(P1[1]-P2[1])+m1_y+m2_y,a_z=2*(P1[2]-P2[2])+m1_z+m2_z,b_x=-3*(P1[0]-P2[0])-m1_x-m1_x-m2_x,b_y=-3*(P1[1]-P2[1])-m1_y-m1_y-m2_y,b_z=-3*(P1[2]-P2[2])-m1_z-m1_z-m2_z,c_y=m1_y,c_z=m1_z;return[a_x*ttt+b_x*tt+m1_x*t+P1[0],a_y*ttt+b_y*tt+c_y*t+P1[1],a_z*ttt+b_z*tt+c_z*t+P1[2]]}function multiply(pair,factor){return[pair[0]*factor,pair[1]*factor]}const LINE="line",POINT="point",DEFAULT_POINT_SIZE=8,DEFAULT_LINE_WIDTH=5,DEFAULT_DASH=[5,5];function getDashFactor(accessor,width_accessor,offset=0){return(object,objectInfo)=>{let width=DEFAULT_LINE_WIDTH;"function"==typeof width_accessor?width=width_accessor(object):width_accessor&&(width=width_accessor);const factor=width/(width+offset);let dash=[0,0];return"function"==typeof accessor?dash=accessor(object,objectInfo):accessor?dash=accessor:accessor&&(dash=DEFAULT_DASH),2==dash.length?multiply(dash,factor):multiply(DEFAULT_DASH,factor)}}function getColor(accessor){return accessor||((object,objectInfo)=>{if("function"==typeof accessor){const color=accessor(object,objectInfo);if(color)return color}return object.properties?.color})}function getSize(type,accessor,offset=0){return"function"==typeof accessor?object=>accessor(object)+offset:0==accessor?0:accessor>0?accessor+offset:type==LINE?DEFAULT_LINE_WIDTH+offset:type==POINT?DEFAULT_POINT_SIZE+offset:0}class WellsLayer extends composite_layer.Z{initializeState(){let data=this.props.data;const refine=this.props.refine;if(!data||(0,lodash.isEmpty)(data))return;this.props.ZIncreasingDownwards&&(data=function invertPath(data_in){const data=(0,lodash.cloneDeep)(data_in),no_wells=data.features.length;for(let well_no=0;well_no[e[0],e[1],-e[2]]));data.features[well_no].geometry.geometries[1].coordinates=coords_inverted}return data}(data)),this.props.section&&(data=(0,abscissaTransform.q)(data)),function checkWells(data){const no_wells=data.features.length;for(let well_no=0;well_noe[0]===lineString.coordinates[0][0]&&e[1]===lineString.coordinates[0][1]))){const n=lineString.coordinates.length,coordsSimplified=[lineString.coordinates[0],lineString.coordinates[n-1]];lineString.coordinates=coordsSimplified}else{const options={tolerance:.01,highQuality:!1,mutate:!1},coordsSimplified=(0,es.Z)(lineString,options);lineString.coordinates=coordsSimplified.coordinates}}return data}(data);data=("number"==typeof refine?refine>1:refine)?function splineRefine(data_in,stepCount=5){if(stepCount<1)return data_in;const data=(0,lodash.cloneDeep)(data_in),no_wells=data.features.length,step=1/stepCount,steps=Array(stepCount-1).fill(0).map(((_x,index)=>(index+1)*step));for(let well_no=0;well_no3?steps:[],P_first=[coords[0][0]-coords[1][0]+coords[0][0],coords[0][1]-coords[1][1]+coords[0][1],coords[0][2]-coords[1][2]+coords[0][2]],md_first=mds[0][0]-mds[0][1]+mds[0][0],P_n=[coords[n-1][0]-coords[n-2][0]+coords[n-1][0],coords[n-1][1]-coords[n-2][1]+coords[n-1][1],coords[n-1][2]-coords[n-2][2]+coords[n-1][2]],md_n=mds[0][n-1]-mds[0][n-2]+mds[0][n-1],newCoordinates=[],newMds=[];newMds.push([]);for(let i=0;i1)for(let t_i=0;t_ilog.header.well==wellName)):logs[0],logInfo=log?getLogInfo(log,log.header.name,logName):void 0,title="Wells / "+logName;if(log&&"discrete"==logInfo?.description){return{title:title,colorName:logColor,discrete:!0,metadata:log.metadata_discrete[logName].objects}}{const minArray=[],maxArray=[];return logs.forEach((function(log){const logValues=getLogValues(log,log.header.name,logName);minArray.push(Math.min(...logValues)),maxArray.push(Math.max(...logValues))})),{title:title,colorName:logColor,discrete:!1,valueRange:[Math.min(...minArray),Math.max(...maxArray)]}}}(value,"",this.props.logName,this.props.logColor)}setLegend(value){this.setState({legend:this.getLegendData(value)})}getLogLayer(){const sub_layers=this.internalState?.subLayers,log_layer=(0,layerTools.hc)(sub_layers,"wells-layer-log_curve");return log_layer?.[0]}getSelectionLayer(){const sub_layers=this.internalState?.subLayers,log_layer=(0,layerTools.hc)(sub_layers,"wells-layer-selection");return log_layer?.[0]}getLogCurveData(){const log_layer=this.getLogLayer();return log_layer?.props.data}setupLegend(){const data=this.getLogCurveData();data&&this.setLegend(data)}renderLayers(){if(!this.props.data.features)return[];const data=this.state.data,coarseData=this.state.coarseData,is3d=this.context.viewport.constructor===orbit_viewport.Z,isDashed=!!this.props.lineStyle?.dash,extensions=[new path_style_extension.Z({dash:isDashed,highPrecisionDash:isDashed})],parameters={[esm.default.DEPTH_TEST]:this.props.depthTest,[esm.default.POLYGON_OFFSET_FILL]:!0},fastDrawing=this.props.simplifiedRendering,defaultLayerProps={data:data,pickable:!1,stroked:!1,positionFormat:"XYZ",pointRadiusUnits:"pixels",lineWidthUnits:"pixels",pointRadiusScale:this.props.pointRadiusScale,lineWidthScale:this.props.lineWidthScale,getLineWidth:getSize(LINE,this.props.lineStyle?.width,-1),getPointRadius:getSize(POINT,this.props.wellHeadStyle?.size,-1),lineBillboard:!0,pointBillboard:!0,parameters:parameters,visible:fastDrawing},colorsLayerProps=this.getSubLayerProps({...defaultLayerProps,id:"colors",pickable:!0,extensions:extensions,getDashArray:getDashFactor(this.props.lineStyle?.dash,getSize(LINE,this.props.lineStyle?.width),-1),visible:!fastDrawing,getLineColor:getColor(this.props.lineStyle?.color),getFillColor:getColor(this.props.wellHeadStyle?.color)}),fastLayerProps=this.getSubLayerProps({...defaultLayerProps,id:"simple",data:coarseData,positionFormat:"XYZ",getLineColor:getColor(this.props.lineStyle?.color),getFillColor:getColor(this.props.wellHeadStyle?.color)}),outlineLayerProps=this.getSubLayerProps({...defaultLayerProps,id:"outline",getLineWidth:getSize(LINE,this.props.lineStyle?.width),getPointRadius:getSize(POINT,this.props.wellHeadStyle?.size),extensions:extensions,getDashArray:getDashFactor(this.props.lineStyle?.dash),visible:this.props.outline&&!fastDrawing}),highlightLayerProps=this.getSubLayerProps({...defaultLayerProps,id:"highlight",data:getWellObjectByName(data.features,this.props.selectedWell),getLineWidth:getSize(LINE,this.props.lineStyle?.width,2),getPointRadius:getSize(POINT,this.props.wellHeadStyle?.size,2),getLineColor:getColor(this.props.lineStyle?.color),getFillColor:getColor(this.props.wellHeadStyle?.color),visible:this.props.logCurves&&!fastDrawing}),highlightMultiWellsLayerProps=this.getSubLayerProps({...defaultLayerProps,id:"highlight2",data:getWellObjectsByName(data.features,this.state.selectedMultiWells),getPointRadius:getSize(POINT,this.props.wellHeadStyle?.size,2),getFillColor:[255,140,0],getLineColor:[255,140,0],visible:this.props.logCurves&&!fastDrawing}),fastLayer=new geojson_layer.Z(fastLayerProps),outlineLayer=new geojson_layer.Z(outlineLayerProps),colorsLayer=new geojson_layer.Z(colorsLayerProps),highlightLayer=new geojson_layer.Z(highlightLayerProps),highlightMultiWellsLayer=new geojson_layer.Z(highlightMultiWellsLayerProps),layers=[outlineLayer,new path_layer.Z(this.getSubLayerProps({id:"log_curve",data:this.props.logData,positionFormat:"XYZ",pickable:!0,widthScale:10,widthMinPixels:1,miterLimit:100,getPath:d=>getLogPath(data.features,d,this.props.logrunName,this.props.lineStyle?.color),getColor:d=>function getLogColor(d,logrun_name,log_name,logColor,colorTables,colorMappingFunction,isLog){const log_data=getLogValues(d,logrun_name,log_name),log_info=getLogInfo(d,logrun_name,log_name);if(0==log_data.length||null==log_info)return[];const log_color=[];if("continuous"==log_info.description){const min=Math.min(...log_data),max_delta=Math.max(...log_data)-min;log_data.forEach((value=>{const rgb=colorMappingFunction?colorMappingFunction((value-min)/max_delta):(0,dist.CA)((value-min)/max_delta,logColor,colorTables);(0,dist.CA)(value-min/max_delta,logColor,colorTables,isLog),rgb?Array.isArray(rgb)?log_color.push([rgb[0],rgb[1],rgb[2]]):log_color.push([rgb?.r,rgb?.g,rgb?.b]):log_color.push([0,0,0,0])}))}else{const log_attributes=getDiscreteLogMetadata(d,log_name)?.objects,logLength=Object.keys(log_attributes).length,attributesObject={},categorial=!0;Object.keys(log_attributes).forEach((key=>{const point=log_attributes[key][1];let rgb;if(colorMappingFunction)rgb=colorMappingFunction(point,categorial,0,logLength-1);else{const arrayOfColors=(0,dist.EC)(logColor,colorTables,point);arrayOfColors.length||console.error("Empty or missed '"+logColor+"' color table"),rgb=arrayOfColors}rgb&&(Array.isArray(rgb)?3===rgb.length?attributesObject[key]=[[rgb[0],rgb[1],rgb[2]],point]:attributesObject[key]=[[rgb[1],rgb[2],rgb[3]],point]:attributesObject[key]=[[rgb.r,rgb.g,rgb.b],point])})),log_data.forEach((log_value=>{const dl_attrs=Object.entries(attributesObject).find((([,value])=>value[1]==log_value))?.[1];dl_attrs?log_color.push(dl_attrs[0]):log_color.push([0,0,0,0])}))}return log_color}(d,this.props.logrunName,this.props.logName,this.props.logColor,this.context.userData.colorTables,this.props.colorMappingFunction,this.props.isLog),getWidth:d=>this.props.logRadius||getLogWidth(d,this.props.logrunName,this.props.logName),updateTriggers:{getColor:[this.props.logrunName,this.props.logName,this.props.logColor,this.context.userData.colorTables,this.props.isLog],getWidth:[this.props.logrunName,this.props.logName,this.props.logRadius],getPath:["XYZ"]},onDataLoad:value=>{this.setLegend(value)},parameters:parameters,visible:this.props.logCurves&&!fastDrawing})),colorsLayer,highlightLayer,highlightMultiWellsLayer,new path_layer.Z(this.getSubLayerProps({id:"selection",data:this.props.logData,positionFormat:"XYZ",pickable:!1,widthScale:10,widthMinPixels:1,miterLimit:100,getPath:d=>function getLogPath1(wells_data,d,selectedWell,selection,logrun_name,trajectory_line_color){if(!selection||selectedWell!==d.header.well)return[];const well_object=getWellObjectByName(wells_data,d.header.well);if(!well_object)return[];const well_xyz=getTrajectory(well_object,trajectory_line_color),well_mds=getWellMds(well_object);if(null==well_xyz||null==well_mds||0==well_xyz.length||0==well_mds.length)return[];const log_mds=getLogMd(d,logrun_name);if(!log_mds)return[];const log_xyz=[];let md0=selection[0];if(void 0!==md0){let md1=selection[1];md1==md0&&(md1=void 0);const mdFirst=well_mds[0],mdLast=well_mds[well_mds.length-1];if(void 0!==md1&&md0>md1){const tmp=md0;md0=md1,md1=tmp}const delta=2;if(md0-delta>mdFirst){let xyz=getPositionByMD(well_xyz,well_mds,md0-delta);log_xyz.push(xyz),xyz=getPositionByMD(well_xyz,well_mds,md0),log_xyz.push(xyz)}if(void 0!==md1){const _md1=md1;let index=0;if(well_mds.forEach((md=>{if(md0<=md&&md<=_md1){const xyz=well_xyz[index];log_xyz.push(xyz)}index++})),_md1+deltafunction getLogColor1(wells_data,d,selectedWell,selection,logrun_name){if(!selection||selectedWell!==d.header.well)return[];const well_object=getWellObjectByName(wells_data,d.header.well);if(!well_object)return[];const well_mds=getWellMds(well_object),log_mds=getLogMd(d,logrun_name);if(!log_mds||0===log_mds.length)return[];const log_color=[];let md0=selection[0];if(void 0!==md0){const mdFirst=well_mds[0],mdLast=well_mds[well_mds.length-1];let md1=selection[1];md1==md0&&(md1=void 0);let swap=!1;if(void 0!==md1&&md0>md1){const tmp=md0;md0=md1,md1=tmp,swap=!0}const delta=2;if(md0-delta>mdFirst&&log_color.push(swap?[0,255,0,128]:[255,0,0,128]),void 0!==md1){const _md1=md1;log_color.push([128,128,128,128]),well_mds.forEach((md=>{md0<=md&&md<=_md1&&log_color.push([128,128,128,128])})),_md1+delta1.5*this.props.logRadius||getLogWidth(d,this.props.logrunName,this.props.logName),updateTriggers:{getColor:[this.props.logrunName,this.state.well,this.state.selection],getWidth:[this.props.logrunName,this.props.logName,this.props.logRadius],getPath:["XYZ",this.props.logrunName,this.state.well,this.state.selection]},onDataLoad:value=>{this.setLegend(value)},parameters:parameters,visible:this.props.logCurves&&!fastDrawing})),new text_layer.Z(this.getSubLayerProps({id:"names",data:data.features,getPosition:d=>function getAnnotationPosition(well_data,name_at_top,view_is_3d,color_accessor){if(name_at_top){let top;const well_head=getWellHeadPosition(well_data);if(well_data)top=well_head;else{const trajectory=getTrajectory(well_data,color_accessor);top=trajectory?.at(0)}if(top)return view_is_3d?top:[top[0],top[1],0]}else{let bot;const trajectory=getTrajectory(well_data,color_accessor);if(bot=trajectory?trajectory?.at(-1):getWellHeadPosition(well_data),bot)return view_is_3d?bot:[bot[0],bot[1],0]}return null}(d,this.props.wellNameAtTop,is3d,this.props.lineStyle?.color),getText:d=>d.properties?.name,getColor:this.props.wellNameColor,getAnchor:"start",getAlignmentBaseline:"bottom",getSize:this.props.wellNameSize,updateTriggers:{getPosition:[this.props.wellNameAtTop,is3d,this.props.lineStyle?.color]},parameters:parameters,visible:this.props.wellNameVisible&&!fastDrawing}))];return fastDrawing&&layers.push(fastLayer),layers}getPickingInfo({info:info}){if(!info.object)return{...info,properties:[],logName:""};const coordinate=info.coordinate||[0,0,0];let md_property=function getMdProperty(coord,feature,accessor,featureType){if("points"===featureType)return null;const md=function getMd(coord,feature,accessor){if(!feature.properties?.md?.[0]||!feature.geometry)return null;const measured_depths=feature.properties.md[0],trajectory3D=getTrajectory(feature,accessor);if(null==trajectory3D)return null;let trajectory;if(2==coord.length){trajectory=trajectory3D.map((v=>v.slice(0,2)))}else trajectory=trajectory3D;return interpolateDataOnTrajectory(coord,measured_depths,trajectory)}(coord,feature,accessor);if(null!=md){const prop_name="MD "+feature.properties?.name;return(0,layerTools.ws)(prop_name,md,feature.properties?.color)}return null}(coordinate,info.object,this.props.lineStyle?.color,info.featureType);md_property||(md_property=getLogProperty(coordinate,this.props.data.features,info.object,this.props.logrunName,"MD"));let tvd_property=function getTvdProperty(coord,feature,accessor,featureType){if("points"===featureType)return null;const tvd=function getTvd(coord,feature,accessor){const trajectory3D=getTrajectory(feature,accessor);if(null==trajectory3D||trajectory3D?.length<=1){const wellhead_xyz=getWellHeadPosition(feature);return wellhead_xyz?.[2]??null}let trajectory;if(2==coord.length){const trajectory2D=trajectory3D?.map((v=>v.slice(0,2)));trajectory=trajectory2D}else trajectory=trajectory3D;const tvds=trajectory3D.map((v=>v[2]));return interpolateDataOnTrajectory(coord,tvds,trajectory)}(coord,feature,accessor);if(null!=tvd){const prop_name="TVD "+feature.properties?.name;return(0,layerTools.ws)(prop_name,tvd,feature.properties?.color)}return null}(coordinate,info.object,this.props.lineStyle?.color,info.featureType);tvd_property||(tvd_property=getLogProperty(coordinate,this.props.data.features,info.object,this.props.logrunName,"TVD"));const log_property=getLogProperty(coordinate,this.props.data.features,info.object,this.props.logrunName,this.props.logName),inverted_tvd_property=tvd_property&&{...tvd_property,value:-1*tvd_property?.value},layer_properties=[];return md_property&&layer_properties.push(md_property),inverted_tvd_property&&layer_properties.push(inverted_tvd_property),log_property&&layer_properties.push(log_property),{...info,properties:layer_properties,logName:log_property?.name||""}}}function getColumn(data,col){const column=[];for(let i=0;i=0)return index}return-1}(d,["DEPTH","DEPT","MD","TDEP","MD_RKB"]);return log_id>=0?getColumn(d.data,log_id):[]}function getLogValues(d,logrun_name,log_name){if(!isSelectedLogRun(d,logrun_name))return[];const log_id=getLogIndexByName(d,log_name);return log_id>=0?getColumn(d.data,log_id):[]}function getLogInfo(d,logrun_name,log_name){if(!isSelectedLogRun(d,logrun_name))return;const log_id=getLogIndexByName(d,log_name);return d.curves[log_id]}function getDiscreteLogMetadata(d,log_name){return d?.metadata_discrete[log_name]}function isSelectedLogRun(d,logrun_name){return d.header.name.toLowerCase()===logrun_name.toLowerCase()}function getWellObjectByName(wells_data,name){return wells_data?.find((item=>item.properties?.name?.toLowerCase()===name?.toLowerCase()))}function getWellObjectsByName(wells_data,name){const res=[];for(let i=0;i{item.properties?.name?.toLowerCase()===name[i]?.toLowerCase()&&res.push(item)}));return res}function getWellHeadPosition(well_object){return function getPointGeometry(well_object){return well_object.geometry?.geometries.find((item=>"Point"==item.type))}(well_object)?.coordinates}function getTrajectory(well_object,color_accessor){return function isTrajectoryVisible(well_object,color_accessor){let alpha;const accessor=getColor(color_accessor);return alpha="function"==typeof accessor?accessor(well_object)?.[3]:accessor?.[3],0!==alpha}(well_object,color_accessor)?function getLineStringGeometry(well_object){return well_object.geometry?.geometries.find((item=>"LineString"==item.type))}(well_object)?.coordinates:void 0}function getWellMds(well_object){return well_object.properties?.md[0]}function getPositionByMD(well_xyz,well_mds,md){const[l_idx,h_idx]=function getNeighboringMdIndices(mds,md){const idx=mds.findIndex((x=>x>=md));return 0===idx?[idx,idx+1]:[idx-1,idx]}(well_mds,md),md_low=well_mds[l_idx],md_normalized=(md-md_low)/(well_mds[h_idx]-md_low);return(0,src.qNB)(well_xyz[l_idx],well_xyz[h_idx])(md_normalized)}function getLogPath(wells_data,d,logrun_name,trajectory_line_color){const well_object=getWellObjectByName(wells_data,d.header.well);if(!well_object)return[];const well_xyz=getTrajectory(well_object,trajectory_line_color),well_mds=getWellMds(well_object);if(null==well_xyz||null==well_mds||0==well_xyz.length||0==well_mds.length)return[];const log_xyz=[];return getLogMd(d,logrun_name).forEach((md=>{const xyz=getPositionByMD(well_xyz,well_mds,md);log_xyz.push(xyz)})),log_xyz}function getLogIndexByName(d,log_name){const name=log_name.toLowerCase();return d.curves.findIndex((item=>item.name.toLowerCase()===name))}function getLogWidth(d,logrun_name,log_name){return getLogValues(d,logrun_name,log_name)}function squared_distance(a,b){const dx=a[0]-b[0],dy=a[1]-b[1];return dx*dx+dy*dy}function distToSegmentSquared(v,w,p){const l2=squared_distance(v,w);if(0==l2)return squared_distance(p,v);let t=((p[0]-v[0])*(w[0]-v[0])+(p[1]-v[1])*(w[1]-v[1]))/l2;return t=Math.max(0,Math.min(1,t)),squared_distance(p,[v[0]+t*(w[0]-v[0]),v[1]+t*(w[1]-v[1])])}function interpolateDataOnTrajectory(coord,data,trajectory){if(data.length<=1||data.length!=trajectory.length)return-1;const index0=getSegmentIndex(coord,trajectory),index1=index0+1,data0=data[index0],data1=data[index1],survey0=trajectory[index0],survey1=trajectory[index1],dv=(0,pureFunctionsAny_generated.TE$)(survey0,survey1);if(0===dv)return-1;const v0=(0,pureFunctionsAny_generated.$XF)(coord,survey0),v1=(0,pureFunctionsAny_generated.$XF)(survey1,survey0),scalar_projection=(0,pureFunctionsAny_generated.AKD)(v0,v1)/(dv*dv);return data0*(1-scalar_projection)+data1*scalar_projection}function getSegmentIndex(coord,path){let min_d=Number.MAX_VALUE,segment_index=0;for(let i=0;imin_d||(segment_index=i,min_d=d)}return segment_index}function getLogProperty(coord,wells_data,log_data,logrun_name,log_name){if(!log_data.data)return null;const segment_index=function getLogSegmentIndex(coord,wells_data,log_data,logrun_name){return getSegmentIndex(coord,getLogPath(wells_data,log_data,logrun_name))}(coord,wells_data,log_data,logrun_name);let dl_attrs,log_value=getLogValues(log_data,logrun_name,log_name)[segment_index];const dl_metadata=getDiscreteLogMetadata(log_data,log_name)?.objects;dl_metadata&&(dl_attrs=Object.entries(dl_metadata).find((([,value])=>value[1]==log_value)));const log=getLogInfo(log_data,logrun_name,log_name)?.name,prop_name=log+" "+log_data.header.well;if(log_value=dl_attrs?dl_attrs[0]+" ("+log_value+")":log_value,log_value){const well_object=getWellObjectByName(wells_data,log_data.header.well);return(0,layerTools.ws)(prop_name,log_value,well_object?.properties?.color)}return null}WellsLayer.layerName="WellsLayer",WellsLayer.defaultProps={"@@type":"WellsLayer",name:"Wells",id:"wells-layer",autoHighlight:!0,opacity:1,lineWidthScale:1,pointRadiusScale:1,lineStyle:{dash:!1},outline:!0,logRadius:10,logCurves:!0,refine:!1,visible:!0,wellNameVisible:!1,wellNameAtTop:!1,wellNameSize:14,wellNameColor:[0,0,0,255],selectedWell:"@@#editedData.selectedWells",depthTest:!0,ZIncreasingDownwards:!0,simplifiedRendering:!1,section:!1,onDataLoad:(data,context)=>function onDataLoad(data,context){const bbox=function GetBoundingBox(data){let xMin=9999999999,yMin=9999999999,zMin=9999999999,xMax=-9999999999,yMax=-9999999999,zMax=-9999999999;const no_wells=data.features.length;for(let well_no=0;well_noxMax?xyz[0]:xMax,yMax=xyz[1]>yMax?xyz[1]:yMax,zMax=xyz[2]>zMax?xyz[2]:zMax}}return[xMin,yMin,zMin,xMax,yMax,zMax]}(data);void 0!==context.layer.props.reportBoundingBox&&context.layer.props.reportBoundingBox({layerBoundingBox:bbox})}(data,context)}},"./packages/subsurface-viewer/src/utils/camera.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{NF:function(){return scaleZoom},aB:function(){return getZoom},b2:function(){return useLateralZoom}});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lodash/lodash.js"),lodash__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js");const proportionalZoom=(zoom,scaleFactor)=>zoom*Math.sqrt(Math.max(scaleFactor||0,0)||1),scaleZoom=(verticalFactor,zoom)=>[zoom,proportionalZoom(zoom,verticalFactor)],getZoom=(viewport,fb_zoom)=>{const zoom=viewport.zoom??fb_zoom;return viewport.show3D?zoom:viewport.verticalScale?scaleZoom(viewport.verticalScale,zoom):zoom},useLateralZoom=viewState=>react__WEBPACK_IMPORTED_MODULE_1__.useMemo((()=>{const zoom=lodash__WEBPACK_IMPORTED_MODULE_0___default().find(viewState)?.zoom;return lodash__WEBPACK_IMPORTED_MODULE_0___default().isArray(zoom)?zoom[0]:zoom??-5}),[viewState])},"./packages/subsurface-viewer/src/utils/configTools.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{r:function(){return findConfig}});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lodash/lodash.js");function findConfig(config,path,fallbackPath=void 0){const mainConfig=findConfigImpl(config,path),fallbackConfig=findConfigImpl(config,fallbackPath);return fallbackConfig?(0,lodash__WEBPACK_IMPORTED_MODULE_0__.merge)({},{data:fallbackConfig},{data:mainConfig}).data:mainConfig}function findConfigImpl(config,path){if(!config||!path)return;if("string"==typeof path&&(path=path.split("/")),0===path.length)return config;return findConfigImpl(config[path.shift()],path)}},"./packages/subsurface-viewer/src/viewports/intersectionViewport.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return IntersectionViewport}});var _deck_gl_core_typed__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@deck.gl/core/dist/esm/viewports/viewport.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/classes/matrix4.js"),_math_gl_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@math.gl/core/dist/esm/lib/common.js");const viewMatrix=(new _math_gl_core__WEBPACK_IMPORTED_MODULE_0__.Z).lookAt({eye:[0,-1,0],up:[0,0,1],center:[0,0,0]});function getProjectionMatrix({width:width,height:height,near:near,far:far,padding:padding}){let left=-width/2,right=width/2,bottom=-height/2,top=height/2;if(padding){const{left:l=0,right:r=0,top:t=0,bottom:b=0}=padding,offsetX=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_1__.uZ)((l+width-r)/2,0,width)-width/2,offsetY=(0,_math_gl_core__WEBPACK_IMPORTED_MODULE_1__.uZ)((t+height-b)/2,0,height)-height/2;left-=offsetX,right-=offsetX,bottom+=offsetY,top+=offsetY}return(new _math_gl_core__WEBPACK_IMPORTED_MODULE_0__.Z).ortho({left:left,right:right,bottom:bottom,top:top,near:near,far:far})}class IntersectionViewport extends _deck_gl_core_typed__WEBPACK_IMPORTED_MODULE_2__.Z{constructor(props){const{width:width,height:height,near:near=.1,far:far=1e3,zoom:zoom=0,target:target=[0,0,0],padding:padding=null,flipY:flipY=!0}=props,zoomX=Array.isArray(zoom)?zoom[0]:zoom,zoomY=Array.isArray(zoom)?zoom[1]:zoom,zoom_=Math.min(zoomX,zoomY),scale=Math.pow(2,zoom_);let distanceScales;if(zoomX!==zoomY){const scaleX=Math.pow(2,zoomX),scaleY=Math.pow(2,zoomY);distanceScales={unitsPerMeter:[scaleX/scale,1,scaleY/scale],metersPerUnit:[scale/scaleX,1,scale/scaleY]}}super({...props,longitude:void 0,position:target,viewMatrix:viewMatrix.clone().scale([scale,scale,scale*(flipY?-1:1)]),projectionMatrix:getProjectionMatrix({width:width||1,height:height||1,padding:padding,near:near,far:far}),zoom:zoom_,distanceScales:distanceScales})}}},"./packages/wsc-common/dist/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{cs:function(){return validateColorTables},TL:function(){return validateLayers},Fv:function(){return validateSchema}});var dist_ajv=__webpack_require__("./node_modules/ajv/dist/ajv.js"),ajv_default=__webpack_require__.n(dist_ajv),Wells_namespaceObject=JSON.parse('{"$comment":"Inspired from https://github.com/geojson/schema","$schema":"http://json-schema.org/draft-07/schema#","$id":"inputSchema/Wells.json","title":"GeoJSON FeatureCollection","type":"object","required":["type","features"],"properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"type":"array","items":{"title":"GeoJSON Feature","type":"object","required":["type","properties","geometry"],"properties":{"type":{"type":"string","enum":["Feature"]},"id":{"oneOf":[{"type":"number"},{"type":"string"}]},"properties":{"oneOf":[{"type":"null"},{"type":"object"}]},"geometry":{"title":"GeoJSON GeometryCollection","type":"object","required":["type","geometries"],"properties":{"type":{"type":"string","enum":["GeometryCollection"]},"geometries":{"type":"array","items":{"oneOf":[{"title":"GeoJSON Point","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"number"}}}},{"title":"GeoJSON LineString","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","minItems":2,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}}}]}}}}}}}}}'),WellLog_namespaceObject=JSON.parse('{"$comment":"See https://jsonwelllogformat.org","$id":"inputSchema/WellLog.json","type":"object","properties":{"header":{"$ref":"#/definitions/header"},"curves":{"type":"array","items":{"$ref":"#/definitions/curve"}},"data":{"type":"array","items":{"$ref":"#/definitions/data_row"}},"metadata_discrete":{"type":"object"}},"required":["curves","data","header"],"definitions":{"header":{"type":"object","properties":{"name":{"type":"string","description":"Log name"},"description":{"type":"string","description":"Log description"},"externalIds":{"type":"object","description":"Record; IDs within external storage, key being the storage name, and value being the ID."},"well":{"type":"string","description":"Well name"},"wellbore":{"type":"string","description":"wellbore name"},"field":{"type":"string","description":"Field name"},"country":{"type":"string","description":"Country of operation"},"date":{"type":"string","description":"datetime; Logging date"},"operator":{"type":"string","description":"Operator company name"},"serviceCompany":{"type":"string","description":"Service company name"},"source":{"type":"string","description":"Source system or process of this log"},"runNumber":{"type":"string","description":"Run number"},"elevation":{"type":"number","description":"float; Vertical distance between measured depth 0.0 and mean sea level in SI unit (meters)"},"startIndex":{"type":"number","description":"Value of the first index. Unit according to index curve"},"endIndex":{"type":"number","description":"Value of the last index. Unit according to index curve"},"step":{"type":["number","null"],"description":"Distance between indices if regularly sampled. Unit according to index curve. If log is time based, milliseconds assumed. null if irregular step"},"dataUri":{"type":"string","description":"Point to data source in case this is kept separate. Can be absolute or relative according to the URI specification"}}},"curve":{"type":"object","properties":{"name":{"type":"string","description":"Curve name or mnemonic. Mandatory. Non-null"},"description":{"type":["string","null"],"description":"Curve description. Optional"},"quantity":{"type":["string","null"],"description":"Curve quantity such as length, pressure, force etc. Optional"},"unit":{"type":["string","null"],"description":"Unit of measurement such as m, ft, bar, etc. Optional"},"valueType":{"type":["string","null"],"description":"Curve value type: float, integer, string, datetime or boolean. Non-null. Optional. float assumed if not present"},"dimensions":{"type":"number","description":"Number of dimensions. [1,>. Non-null. Optional. 1 assumed if not present"}},"required":["name"]},"data_row":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]}},"metadata_discrete":{"type":"object"}}}'),WellLogs_namespaceObject=JSON.parse('{"$id":"inputSchema/WellLogs.json","type":"array","items":{"$ref":"./WellLog.json#"}}'),WellLogTemplate_namespaceObject=JSON.parse('{"type":"object","properties":{"name":{"type":"string"},"scale":{"type":"object","properties":{"primary":{"type":"string"},"allowSecondary":{"type":"boolean"}},"required":["primary"]},"tracks":{"type":"array","items":{"$ref":"#/definitions/track"}},"styles":{"type":"array","items":{"$ref":"#/definitions/style"}}},"required":["tracks"],"definitions":{"domain":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number"}},"css_color":{"type":"string","description":"Any valid CSS color value (named colors, three-digit hex color, six-digit hex color, RGB colors)","examples":["green","#ff8000","rgb(128,33,23)","rgba(128,33,23,0.6)"]},"plot_type":{"enum":["line","linestep","dot","area","differential","gradientfill","stacked"],"default":"line"},"scale_type":{"enum":["log","linear"],"default":"linear"},"plot_prop":{"type":"object","properties":{"scale":{"$ref":"#/definitions/scale_type"},"type":{"$ref":"#/definitions/plot_type"},"color":{"$ref":"#/definitions/css_color"},"inverseColor":{"$ref":"#/definitions/css_color"},"fill":{"$ref":"#/definitions/css_color"},"fillOpacity":{"type":"number","minimum":0,"maximum":1,"default":0.25,"description":"for \'area\' and \'gradientfill\' plots"},"colorTable":{"type":"string","description":"table id (name) for \'gradientfill\' plot"},"inverseColorTable":{"type":"string","description":"table id (name) for \'gradientfill\' plot"},"colorScale":{"$ref":"#/definitions/scale_type","description":"table id (name) for \'gradientfill\' plot"},"inverseColorScale":{"$ref":"#/definitions/scale_type","description":"table id (name) for \'gradientfill\' plot"},"color2":{"$ref":"#/definitions/css_color","description":"for \'differetial\' plot"},"fill2":{"$ref":"#/definitions/css_color","description":"for \'differetial\' plot"},"showLines":{"type":"boolean","description":"for \'stacked\' plot"},"showLabels":{"type":"boolean","description":"for \'stacked\' plot"},"labelRotation":{"type":"number","description":"for \'stacked\' plot"}}},"plot":{"allOf":[{"$ref":"#/definitions/plot_prop"}],"type":"object","properties":{"name":{"type":"string"},"style":{"type":"string"},"scale":{"$ref":"#/definitions/scale_type"},"name2":{"type":"string"}},"required":["name"]},"style":{"allOf":[{"$ref":"#/definitions/plot_prop"}],"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"track":{"type":"object","properties":{"title":{"type":"string"},"width":{"type":"number","default":3,"description":"relative track width (default as in videx-wellog)"},"required":{"type":"boolean"},"scale":{"$ref":"#/definitions/scale_type"},"domain":{"$ref":"#/definitions/domain"},"plots":{"type":"array","items":{"$ref":"#/definitions/plot"}}},"required":["plots"]}}}'),PieChart_namespaceObject=JSON.parse('{"$comment":"PieChart data schema","$id":"inputSchema/PieChart.json","type":"object","properties":{"pies":{"type":"array","items":{"$ref":"#/definitions/pie"}},"properties":{"type":"array","items":{"$ref":"#/definitions/property"}}},"required":["pies","properties"],"definitions":{"pie":{"type":"object","properties":{"x":{"type":"number","description":"Pie chart y-coordinate"},"y":{"type":"number","description":"Pie chart x-coordinate"},"R":{"type":"number","description":"Pie chart radius."},"fractions":{"type":"array","description":"Number and proportion of slices on pie chart.","items":{"$ref":"#/definitions/fraction"}}},"required":["x","y","R","fractions"]},"property":{"type":"object","properties":{"color":{"type":"array","minItems":3,"maxItems":3,"items":{"type":"number"},"description":"Pie slice color as RGB array."},"label":{"type":"string","description":"Pie slice name."}},"required":["color","label"]},"fraction":{"type":"object","properties":{"value":{"type":"number","description":"Proportion on pie slice."},"idx":{"type":"number","description":"Pie slice color and label indexed from properties array."}},"required":["value","idx"]}}}'),Grid_namespaceObject=JSON.parse('{"$comment":"See https://jsonwelllogformat.org","$id":"inputSchema/Grid.json","type":"array","items":{"$ref":"#/definitions/data_row"},"definitions":{"data_row":{"type":"object","required":["cs","vs"],"properties":{"i":{"type":"number","description":"Cell i-index, increases toward east."},"j":{"type":"number","description":"Cell j-index, increases towards north."},"z":{"type":"number","description":"Cell depth."},"cs":{"type":"array","description":"Cell corners","items":{"$ref":"#/definitions/cell_corner"},"minItems":3},"vs":{"type":"array","description":"Time dependent cell values.","items":{"type":"number"}}}},"cell_corner":{"type":"array","items":{"type":"number"},"minItems":3}}}'),FaultPolygons_namespaceObject=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$comment":"Inspired from https://geojson.org/schema/FeatureCollection.json","$id":"inputSchema/FaultPolygons.json","title":"GeoJSON FeatureCollection","type":"object","required":["type","features"],"properties":{"type":{"type":"string","enum":["FeatureCollection"]},"features":{"type":"array","items":{"title":"GeoJSON Feature","type":"object","required":["type","properties","geometry"],"properties":{"type":{"type":"string","enum":["Feature"]},"id":{"oneOf":[{"type":"number"},{"type":"string"}]},"properties":{"oneOf":[{"type":"null"},{"type":"object"}]},"geometry":{"title":"GeoJSON Polygon","type":"object","required":["type","coordinates"],"properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","minItems":4,"items":{"type":"array","minItems":2,"items":{"type":"number"}}}},"bbox":{"type":"array","minItems":4,"items":{"type":"number"}}}}}}}}}'),ColorTables_namespaceObject=JSON.parse('{"$comment":"ColorTables data schema","$id":"inputSchema/ColorTables.json","type":"array","items":{"$ref":"#/definitions/color-table"},"definitions":{"color-table":{"type":"object","required":["name","discrete","colors"],"properties":{"name":{"type":"string","description":"Color table name"},"discrete":{"type":"boolean","description":"True if color table is for discrete data"},"colors":{"type":"array","description":"Color entries as [anchor, R, G, B] for continuous and [index, R, G, B] for discrete","items":{"$ref":"#/definitions/color-row","minItems":4}},"description":{"type":"string","description":"Description"},"colorNaN":{"$ref":"#/definitions/color-row","description":"Color for NaN/undefined value"},"colorBelow":{"$ref":"#/definitions/color-row","description":"Color for value below minimum color range"},"colorAbove":{"$ref":"#/definitions/color-row","description":"Color for value above minimum color range"}}},"color-row":{"type":"array","items":{"type":"number"},"minItems":3}}}');function validateSchema(data,schema_type){let validator=null;try{validator=function createSchemaValidator(schema_type){const ajv=new(ajv_default())({schemas:[WellLog_namespaceObject]});switch(schema_type){case"Wells":return ajv.compile(Wells_namespaceObject);case"WellLog":return ajv.compile(WellLog_namespaceObject);case"WellLogs":return ajv.compile(WellLogs_namespaceObject);case"WellLogTemplate":return ajv.compile(WellLogTemplate_namespaceObject);case"PieChart":return ajv.compile(PieChart_namespaceObject);case"Grid":return ajv.compile(Grid_namespaceObject);case"FaultPolygons":return ajv.compile(FaultPolygons_namespaceObject);case"ColorTables":return ajv.compile(ColorTables_namespaceObject);default:return null}}(schema_type)}catch(e){throw"Wrong JSON schema for "+schema_type+". "+String(e)}if(!validator)throw"Wrong schema type.";if(validator(data),validator.errors)throw function formatSchemaError(schema_type,errors){let error_text="";error_text=errors[0]?(errors[0].instancePath?errors[0].instancePath+": ":"")+errors[0].message:"JSON schema validation failed";return`${schema_type}: ${error_text}.`}(schema_type,validator.errors)}function validateColorTables(colorTables){validateSchema(colorTables,"ColorTables")}function validateLayers(layers){layers.forEach((layer=>{if(layer.isLoaded){!function validateLayer(layer){switch(layer.id){case"wells-layer":!function validateWellsLayer(wellsLayer){validateSchema(wellsLayer.props.data,"Wells");validateSchema(function getLogData(wellsLayer){var _a;const sub_layers=null===(_a=wellsLayer.internalState)||void 0===_a?void 0:_a.subLayers,log_layer=null==sub_layers?void 0:sub_layers.find((layer=>"wells-layer-log_curve"===layer.id));return null==log_layer?void 0:log_layer.props.data}(wellsLayer),"WellLogs")}(layer);break;case"pie-layer":validateSchema(layer.props.data,"PieChart");break;case"grid-layer":validateSchema(layer.props.data,"Grid");break;case"fault-polygons-layer":validateSchema(layer.props.data,"FaultPolygons");break;default:return}}(layer);try{layer.validateProps()}catch(e){throw`${layer.id}- ${String(e)}`}}}))}},"?d4c0":function(){},"?ccfa":function(){},"?90e7":function(){},"?5693":function(){},"./packages/subsurface-viewer/src/SubsurfaceConfig.json":function(module){"use strict";module.exports=JSON.parse('{"config":{"workerpool":{"maxWorkers":10},"layer":{"TriangleLayer":{"workerpool":{"maxWorkers":10}}}}}')}}]); \ No newline at end of file diff --git a/storybook-static/5527.c1f603f4.iframe.bundle.js b/storybook-static/6086.9cc5e4f5.iframe.bundle.js similarity index 95% rename from storybook-static/5527.c1f603f4.iframe.bundle.js rename to storybook-static/6086.9cc5e4f5.iframe.bundle.js index f1f361199..792430b9a 100644 --- a/storybook-static/5527.c1f603f4.iframe.bundle.js +++ b/storybook-static/6086.9cc5e4f5.iframe.bundle.js @@ -1,5 +1,5 @@ -/*! For license information please see 5527.c1f603f4.iframe.bundle.js.LICENSE.txt */ -(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[5527],{"./node_modules/@emerson-eps/color-tables/dist/component/Legend/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return DEFAULT_STYLE}});var DEFAULT_STYLE={left:"0vw",top:"0vh",backgroundColor:"#A0A0A0aa",borderRadius:"5px"}},"./node_modules/@emerson-eps/color-tables/dist/component/Utils/d3ColorScale.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{h:function(){return d3ColorScales}});var d3__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/d3/src/index.js"),d3ColorScales=[{name:"Spectral",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.T0$},{name:"RdYlBu",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.zJm},{name:"Warm",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.AO_},{name:"Cool",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.vcY},{name:"Viridis",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.Vaf},{name:"Inferno",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.sN9},{name:"Dark2",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.XgA},{name:"Paired",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.xHP},{name:"Pastel1",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.rp},{name:"Pastel2",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.i4X},{name:"Set1",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.yKE},{name:"Set2",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.UCG},{name:"Set3",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.UCG},{name:"Tableau10",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.K2I},{name:"Category10",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.Cn1}]},"./node_modules/@emerson-eps/color-tables/dist/component/Utils/legendCommonFunction.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{CA:function(){return rgbValues},EC:function(){return getColors},Tm:function(){return getTickValues},cF:function(){return getRgbData},fc:function(){return RGBToHex},hp:function(){return getColorSelectorPosition},rX:function(){return createColorMapFunction},v_:function(){return getColorArrayFromBreakPoints},z$:function(){return createDefaultContinuousColorScale},zl:function(){return colorsArray}});var d3_color__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/d3-color/src/color.js"),d3_interpolate__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/d3-interpolate/src/rgb.js"),d3__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/d3/src/index.js"),lodash__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/lodash/lodash.js"),_d3ColorScale__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/Utils/d3ColorScale.js"),_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/color-tables.json");function getColor(rgb){if(void 0!==rgb)return[rgb.r,rgb.g,rgb.b]}function colorsArray(colorName,iscolorTablesDefined){var colorTableData=(iscolorTablesDefined||_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__).filter((function(value){return value.name.toLowerCase()===colorName.toLowerCase()}));return colorTableData.length>0?colorTableData[0].colors:[]}function RGBToHex(rgb,max){var r=Math.round(rgb[1]).toString(16),g=Math.round(rgb[2]).toString(16),b=Math.round(rgb[3]).toString(16);return 1===r.length&&(r="0"+r),1===g.length&&(g="0"+g),1===b.length&&(b="0"+b),{color:"#"+r+g+b,offset:max?(rgb[0]-0)/(max-0)*100:100*rgb[0]}}function HextoRGB(hex){var m=hex.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);return{r:parseInt(m[1],16),g:parseInt(m[2],16),b:parseInt(m[3],16)}}function getRgbData(point,colorName,iscolorTablesDefined,isLog,isNearest,userBreakPoint){var _a,_b,rgb,getColorTables=iscolorTablesDefined||_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__,getColorTableScale=getColorTables.find((function(value){return value.name===colorName})),getD3Scale=_d3ColorScale__WEBPACK_IMPORTED_MODULE_2__.h.find((function(value){return value.name===colorName}));if(isLog){var log=(0,d3__WEBPACK_IMPORTED_MODULE_0__.eh9)().domain([0,1]);point=log(point)}if(!0===(null==getColorTableScale?void 0:getColorTableScale.discrete)){var getSelectedScaleLength=null==getColorTableScale?void 0:getColorTableScale.colors.length,maxValue_1=getSelectedScaleLength-1;return null==getColorTableScale||getColorTableScale.colors.forEach((function(item,index){var _a,_b,_c,nextIndex=index+1;if(point>=(index-0)/(maxValue_1-0)&&point<=(nextIndex-0)/(maxValue_1-0)&&void 0!==(item&&(null==getColorTableScale?void 0:getColorTableScale.colors[nextIndex]))){var interpolate=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(null===(_a=RGBToHex(item))||void 0===_a?void 0:_a.color,null===(_b=RGBToHex(null==getColorTableScale?void 0:getColorTableScale.colors[nextIndex]))||void 0===_b?void 0:_b.color)(point);rgb=null===(_c=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolate))||void 0===_c?void 0:_c.rgb()}})),rgb}if("function"==typeof(null==getD3Scale?void 0:getD3Scale.colors)){var colorMappingRange=null==getD3Scale?void 0:getD3Scale.colors(point);return rgb=getColor(null===(_a=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(colorMappingRange))||void 0===_a?void 0:_a.rgb())}if("object"==typeof(null==getD3Scale?void 0:getD3Scale.colors)){var max_1=(null==getD3Scale?void 0:getD3Scale.colors.length)-1;return null==getD3Scale||getD3Scale.colors.forEach((function(item,index){var _a,nextIndex=index+1,indexableD3Scale=getD3Scale;if(point>=(index-0)/(max_1-0)&&point<=(nextIndex-0)/(max_1-0)){var interpolate=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(item,indexableD3Scale[nextIndex])(point);rgb=getColor(null===(_a=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolate))||void 0===_a?void 0:_a.rgb())}})),rgb}var colorTableColors_1=colorsArray(colorName,getColorTables),itemColor_1=[];(null==userBreakPoint?void 0:userBreakPoint.length)>0&&(userBreakPoint.forEach((function(value){var rgbColor=HextoRGB(value.color);itemColor_1.push([value.position,rgbColor.r,rgbColor.g,rgbColor.b])})),null==itemColor_1||itemColor_1.sort((function(a,b){return a[0]===b[0]?0:a[0]val[0]&&pointpoint})),firstColorArray=colorTableColors_1[index-1],secondColorArray=colorTableColors_1[index];if(void 0!==(firstColorArray||secondColorArray)){var t0=firstColorArray[0],t1=secondColorArray[0],t=(point-t0)/(t1-t0),interpolatedValues=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(RGBToHex(firstColorArray).color,RGBToHex(secondColorArray).color)(t);return null===(_b=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolatedValues))||void 0===_b?void 0:_b.rgb()}}function getColors(colorName,iscolorTablesDefined,point){var _a,colorTableData=(iscolorTablesDefined||_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__).filter((function(value){return value.name.toLowerCase()===colorName.toLowerCase()})),colorArrays=null===(_a=colorTableData[0])||void 0===_a?void 0:_a.colors.find((function(value){return value[0]===point}));return colorTableData.length>0?colorArrays:[]}function rgbValues(point,colorName,iscolorTablesDefined,isLog,isNearest,breakPoints){var _a;if(isLog){var log=(0,d3__WEBPACK_IMPORTED_MODULE_0__.eh9)().domain([0,1]);point=log(point)}var colorTableColors=colorsArray(colorName,iscolorTablesDefined||_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__),itemColor=[];(null==breakPoints?void 0:breakPoints.length)>0&&(breakPoints.forEach((function(value){var rgbColor=HextoRGB(value.color);itemColor.push([value.position,rgbColor.r,rgbColor.g,rgbColor.b])})),null==itemColor||itemColor.sort((function(a,b){return a[0]===b[0]?0:a[0]val[0]&&pointpoint})),firstColorArray=colorTableColors[index-1],secondColorArray=colorTableColors[index];if(void 0!==(firstColorArray||secondColorArray)){var t0=firstColorArray[0],t1=secondColorArray[0],t=(point-t0)/(t1-t0),interpolatedValues=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(RGBToHex(firstColorArray).color,RGBToHex(secondColorArray).color)(t);return getColor(null===(_a=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolatedValues))||void 0===_a?void 0:_a.rgb())}}function createColorMapFunction(colorScaleName,isLog,isNearest,breakPoints){return function(x,categorial,min,max,iscolorTablesDefined){return void 0===categorial&&(categorial=!1),void 0===min&&(min=0),void 0===max&&(max=1),void 0===iscolorTablesDefined&&(iscolorTablesDefined=_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__),function sampledColor(colorScaleName,point,categorial,min,max,iscolorTablesDefined,isLog,isNearest,breakPoints){var _a,_b,getColorTables=iscolorTablesDefined||_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__,getColorTableScale=getColorTables.find((function(value){return value.name===colorScaleName})),getD3Scale=_d3ColorScale__WEBPACK_IMPORTED_MODULE_2__.h.find((function(value){return value.name===colorScaleName}));if(isLog){var log=(0,d3__WEBPACK_IMPORTED_MODULE_0__.eh9)().domain([0,1]);point=log(point)}var rgb=rgbValues(point,colorScaleName,getColorTables,isLog,isNearest,breakPoints);if(!1===(null==getColorTableScale?void 0:getColorTableScale.discrete)&&(rgb=categorial?rgbValues(normalizedPoint=(point-min)/(max-min),colorScaleName,getColorTables,isLog,isNearest):rgbValues(point,colorScaleName,getColorTables,isLog,isNearest,breakPoints)),"function"==typeof(null==getD3Scale?void 0:getD3Scale.colors)){var colorMappingRange=null==getD3Scale?void 0:getD3Scale.colors(point);if(categorial){var normalizedPoint=(point-min)/(max-min);colorMappingRange=null==getD3Scale?void 0:getD3Scale.colors(normalizedPoint)}rgb=getColor(null===(_a=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(colorMappingRange))||void 0===_a?void 0:_a.rgb())}if(!0===(null==getColorTableScale?void 0:getColorTableScale.discrete)){if(categorial)return colorsArray(colorScaleName,getColorTables).find((function(value){return value[0]===point}));var maxValue_2=(null==getColorTableScale?void 0:getColorTableScale.colors.length)-1;null==getColorTableScale||getColorTableScale.colors.forEach((function(item,index){var _a,_b,_c,nextIndex=index+1;if(point>=(index-0)/(maxValue_2-0)&&point<=(nextIndex-0)/(maxValue_2-0)&&void 0!==(item&&(null==getColorTableScale?void 0:getColorTableScale.colors[nextIndex]))){var interpolate=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(null===(_a=RGBToHex(item))||void 0===_a?void 0:_a.color,null===(_b=RGBToHex(null==getColorTableScale?void 0:getColorTableScale.colors[nextIndex]))||void 0===_b?void 0:_b.color)(point);rgb=getColor(null===(_c=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolate))||void 0===_c?void 0:_c.rgb())}}))}if("object"==typeof(null==getD3Scale?void 0:getD3Scale.colors))if(categorial){var code_1=point,d3ColorArrays=null==getD3Scale?void 0:getD3Scale.colors.find((function(_value,index){return index===code_1}));rgb=getColor(null===(_b=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(d3ColorArrays))||void 0===_b?void 0:_b.rgb())}else{var max_2=(null==getD3Scale?void 0:getD3Scale.colors.length)-1;null==getD3Scale||getD3Scale.colors.forEach((function(item,index){var _a,nextIndex=index+1,indexableD3Scale=getD3Scale;if(point>=(index-0)/(max_2-0)&&point<=(nextIndex-0)/(max_2-0)){var interpolate=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(item,indexableD3Scale[nextIndex])(point);rgb=getColor(null===(_a=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolate))||void 0===_a?void 0:_a.rgb())}}))}return rgb}(colorScaleName,x,categorial,min,max,iscolorTablesDefined,isLog,isNearest,breakPoints)}}function createDefaultContinuousColorScale(){return function createContinuousLibraryColorScale(name,library){return void 0===library&&(library=_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__),function(value){return rgbValues(value,name,library)}}("Rainbow")}var getColorArrayFromBreakPoints=function(breakpoints,arraySize){if(void 0===arraySize&&(arraySize=512),0===breakpoints.length)throw new Error("Couldn't provide color supplier from empty color array");var colors=breakpoints.map((function(item){return item.color})),ratios=breakpoints.map((function(item){return item.position})),position=0;return(0,lodash__WEBPACK_IMPORTED_MODULE_1__.range)(0,arraySize).map((function(i){var _a;if(ratios[position]{const{ownerState:ownerState}=props;return[{[`& .${Accordion_accordionClasses.region}`]:styles.region},styles.root,!ownerState.square&&styles.rounded,!ownerState.disableGutters&&styles.gutters]}})((({theme:theme})=>{const transition={duration:theme.transitions.duration.shortest};return{position:"relative",transition:theme.transitions.create(["margin"],transition),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(theme.vars||theme).palette.divider,transition:theme.transitions.create(["opacity","background-color"],transition)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${Accordion_accordionClasses.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${Accordion_accordionClasses.disabled}`]:{backgroundColor:(theme.vars||theme).palette.action.disabledBackground}}}),(({theme:theme})=>({variants:[{props:props=>!props.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(theme.vars||theme).shape.borderRadius,borderTopRightRadius:(theme.vars||theme).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(theme.vars||theme).shape.borderRadius,borderBottomRightRadius:(theme.vars||theme).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:props=>!props.disableGutters,style:{[`&.${Accordion_accordionClasses.expanded}`]:{margin:"16px 0"}}}]})));var Accordion_Accordion=react.forwardRef((function Accordion(inProps,ref){const props=useThemeProps({props:inProps,name:"MuiAccordion"}),{children:childrenProp,className:className,defaultExpanded:defaultExpanded=!1,disabled:disabled=!1,disableGutters:disableGutters=!1,expanded:expandedProp,onChange:onChange,square:square=!1,slots:slots={},slotProps:slotProps={},TransitionComponent:TransitionComponentProp,TransitionProps:TransitionPropsProp}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,Accordion_excluded),[expanded,setExpandedState]=(0,useControlled.Z)({controlled:expandedProp,default:defaultExpanded,name:"Accordion",state:"expanded"}),handleChange=react.useCallback((event=>{setExpandedState(!expanded),onChange&&onChange(event,!expanded)}),[expanded,onChange,setExpandedState]),[summary,...children]=react.Children.toArray(childrenProp),contextValue=react.useMemo((()=>({expanded:expanded,disabled:disabled,disableGutters:disableGutters,toggle:handleChange})),[expanded,disabled,disableGutters,handleChange]),ownerState=(0,esm_extends.Z)({},props,{square:square,disabled:disabled,disableGutters:disableGutters,expanded:expanded}),classes=(ownerState=>{const{classes:classes,square:square,expanded:expanded,disabled:disabled,disableGutters:disableGutters}=ownerState,slots={root:["root",!square&&"rounded",expanded&&"expanded",disabled&&"disabled",!disableGutters&&"gutters"],region:["region"]};return(0,composeClasses.Z)(slots,getAccordionUtilityClass,classes)})(ownerState),backwardCompatibleSlots=(0,esm_extends.Z)({transition:TransitionComponentProp},slots),backwardCompatibleSlotProps=(0,esm_extends.Z)({transition:TransitionPropsProp},slotProps),[TransitionSlot,transitionProps]=function useSlot(name,parameters){const{className:className,elementType:initialElementType,ownerState:ownerState,externalForwardedProps:externalForwardedProps,getSlotOwnerState:getSlotOwnerState,internalForwardedProps:internalForwardedProps}=parameters,useSlotPropsParams=(0,objectWithoutPropertiesLoose.Z)(parameters,_excluded),{component:rootComponent,slots:slots={[name]:void 0},slotProps:slotProps={[name]:void 0}}=externalForwardedProps,other=(0,objectWithoutPropertiesLoose.Z)(externalForwardedProps,_excluded2),elementType=slots[name]||initialElementType,resolvedComponentsProps=(0,resolveComponentProps.x)(slotProps[name],ownerState),_mergeSlotProps=(0,mergeSlotProps.L)((0,esm_extends.Z)({className:className},useSlotPropsParams,{externalForwardedProps:"root"===name?other:void 0,externalSlotProps:resolvedComponentsProps})),{props:{component:slotComponent},internalRef:internalRef}=_mergeSlotProps,mergedProps=(0,objectWithoutPropertiesLoose.Z)(_mergeSlotProps.props,_excluded3),ref=(0,useForkRef.Z)(internalRef,null==resolvedComponentsProps?void 0:resolvedComponentsProps.ref,parameters.ref),slotOwnerState=getSlotOwnerState?getSlotOwnerState(mergedProps):{},finalOwnerState=(0,esm_extends.Z)({},ownerState,slotOwnerState),LeafComponent="root"===name?slotComponent||rootComponent:slotComponent,props=(0,appendOwnerState.$)(elementType,(0,esm_extends.Z)({},"root"===name&&!rootComponent&&!slots[name]&&internalForwardedProps,"root"!==name&&!slots[name]&&internalForwardedProps,mergedProps,LeafComponent&&{as:LeafComponent},{ref:ref}),finalOwnerState);return Object.keys(slotOwnerState).forEach((propName=>{delete props[propName]})),[elementType,props]}("transition",{elementType:Collapse.Z,externalForwardedProps:{slots:backwardCompatibleSlots,slotProps:backwardCompatibleSlotProps},ownerState:ownerState});return(0,jsx_runtime.jsxs)(AccordionRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(classes.root,className),ref:ref,ownerState:ownerState,square:square},other,{children:[(0,jsx_runtime.jsx)(Accordion_AccordionContext.Provider,{value:contextValue,children:summary}),(0,jsx_runtime.jsx)(TransitionSlot,(0,esm_extends.Z)({in:expanded,timeout:"auto"},transitionProps,{children:(0,jsx_runtime.jsx)("div",{"aria-labelledby":summary.props.id,id:summary.props["aria-controls"],role:"region",className:classes.region,children:children})}))]}))})),ButtonBase=__webpack_require__("./node_modules/@mui/material/ButtonBase/ButtonBase.js");function getAccordionSummaryUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiAccordionSummary",slot)}var AccordionSummary_accordionSummaryClasses=(0,generateUtilityClasses.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);const AccordionSummary_excluded=["children","className","expandIcon","focusVisibleClassName","onClick"],AccordionSummary_useThemeProps=(0,zero_styled.U)("MuiAccordionSummary"),AccordionSummaryRoot=(0,styled.ZP)(ButtonBase.Z,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(props,styles)=>styles.root})((({theme:theme})=>{const transition={duration:theme.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:theme.spacing(0,2),transition:theme.transitions.create(["min-height","background-color"],transition),[`&.${AccordionSummary_accordionSummaryClasses.focusVisible}`]:{backgroundColor:(theme.vars||theme).palette.action.focus},[`&.${AccordionSummary_accordionSummaryClasses.disabled}`]:{opacity:(theme.vars||theme).palette.action.disabledOpacity},[`&:hover:not(.${AccordionSummary_accordionSummaryClasses.disabled})`]:{cursor:"pointer"},variants:[{props:props=>!props.disableGutters,style:{[`&.${AccordionSummary_accordionSummaryClasses.expanded}`]:{minHeight:64}}}]}})),AccordionSummaryContent=(0,styled.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(props,styles)=>styles.content})((({theme:theme})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:props=>!props.disableGutters,style:{transition:theme.transitions.create(["margin"],{duration:theme.transitions.duration.shortest}),[`&.${AccordionSummary_accordionSummaryClasses.expanded}`]:{margin:"20px 0"}}}]}))),AccordionSummaryExpandIconWrapper=(0,styled.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(props,styles)=>styles.expandIconWrapper})((({theme:theme})=>({display:"flex",color:(theme.vars||theme).palette.action.active,transform:"rotate(0deg)",transition:theme.transitions.create("transform",{duration:theme.transitions.duration.shortest}),[`&.${AccordionSummary_accordionSummaryClasses.expanded}`]:{transform:"rotate(180deg)"}})));var AccordionSummary_AccordionSummary=react.forwardRef((function AccordionSummary(inProps,ref){const props=AccordionSummary_useThemeProps({props:inProps,name:"MuiAccordionSummary"}),{children:children,className:className,expandIcon:expandIcon,focusVisibleClassName:focusVisibleClassName,onClick:onClick}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,AccordionSummary_excluded),{disabled:disabled=!1,disableGutters:disableGutters,expanded:expanded,toggle:toggle}=react.useContext(Accordion_AccordionContext),ownerState=(0,esm_extends.Z)({},props,{expanded:expanded,disabled:disabled,disableGutters:disableGutters}),classes=(ownerState=>{const{classes:classes,expanded:expanded,disabled:disabled,disableGutters:disableGutters}=ownerState,slots={root:["root",expanded&&"expanded",disabled&&"disabled",!disableGutters&&"gutters"],focusVisible:["focusVisible"],content:["content",expanded&&"expanded",!disableGutters&&"contentGutters"],expandIconWrapper:["expandIconWrapper",expanded&&"expanded"]};return(0,composeClasses.Z)(slots,getAccordionSummaryUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsxs)(AccordionSummaryRoot,(0,esm_extends.Z)({focusRipple:!1,disableRipple:!0,disabled:disabled,component:"div","aria-expanded":expanded,className:(0,clsx.Z)(classes.root,className),focusVisibleClassName:(0,clsx.Z)(classes.focusVisible,focusVisibleClassName),onClick:event=>{toggle&&toggle(event),onClick&&onClick(event)},ref:ref,ownerState:ownerState},other,{children:[(0,jsx_runtime.jsx)(AccordionSummaryContent,{className:classes.content,ownerState:ownerState,children:children}),expandIcon&&(0,jsx_runtime.jsx)(AccordionSummaryExpandIconWrapper,{className:classes.expandIconWrapper,ownerState:ownerState,children:expandIcon})]}))}));function getAccordionDetailsUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiAccordionDetails",slot)}(0,generateUtilityClasses.Z)("MuiAccordionDetails",["root"]);const AccordionDetails_excluded=["className"],AccordionDetails_useThemeProps=(0,zero_styled.U)("MuiAccordionDetails"),AccordionDetailsRoot=(0,styled.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(props,styles)=>styles.root})((({theme:theme})=>({padding:theme.spacing(1,2,2)})));var AccordionDetails_AccordionDetails=react.forwardRef((function AccordionDetails(inProps,ref){const props=AccordionDetails_useThemeProps({props:inProps,name:"MuiAccordionDetails"}),{className:className}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,AccordionDetails_excluded),ownerState=props,classes=(ownerState=>{const{classes:classes}=ownerState;return(0,composeClasses.Z)({root:["root"]},getAccordionDetailsUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsx)(AccordionDetailsRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(classes.root,className),ref:ref,ownerState:ownerState},other))})),Cancel=__webpack_require__("./node_modules/@mui/icons-material/Cancel.js"),ExpandMore=__webpack_require__("./node_modules/@mui/icons-material/ExpandMore.js"),esm_styled=__webpack_require__("./node_modules/@mui/system/esm/styled.js"),ContentCopy=__webpack_require__("./node_modules/@mui/icons-material/ContentCopy.js"),d3ColorScale=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/Utils/d3ColorScale.js"),src=__webpack_require__("./node_modules/d3/src/index.js"),color=__webpack_require__("./node_modules/d3-color/src/color.js");function discreteLegendUtil(itemColor,isSelectorLegend,horizontal){return function legend(g){!function drawLegend(){g.selectAll("g.legendCells").data(itemColor).enter().append("g").append("rect").append("title").text((function(d){return d.name})).attr("class","rectLabel").style("cursor","pointer").style("pointer-events","all"),g.selectAll("rect").attr("height",1).attr("width",1).style("fill",(function(d){return d.color})),horizontal&&!isSelectorLegend||!0===horizontal&&isSelectorLegend?g.selectAll("rect").attr("x",(function(_d,i){return i})).attr("y",0):!horizontal&&!isSelectorLegend||!1===horizontal&&isSelectorLegend?g.selectAll("rect").attr("y",(function(_d,i){return i})).attr("x",0):g.selectAll("rect").attr("x",(function(_d,i){return i})).attr("y",0)}()}}var legendCommonFunction=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/Utils/legendCommonFunction.js"),StyledLegend=(0,esm_styled.Z)("div")({paddingLeft:"5px","&:hover":{background:"#f1f1f1",cursor:"pointer"}}),ColorSelectorComponent=function(_a){var data,extent,colorsObject=_a.colorsObject,legendColor=_a.legendColor,legendColorName=_a.legendColorName,useContColorTable=_a.useContColorTable,useDiscColorTable=_a.useDiscColorTable,uniqueId=_a.uniqueId,colorScaleData=_a.colorScaleData,currentLegendName=_a.currentLegendName,divRef=(0,react.useRef)(null);legendColor&&(data=(0,src.w6H)(10).map((function(d){return{color:legendColor(d/10),value:d}})),extent=src.Wem(data,(function(d){return null==d?void 0:d.value})));var handleChange=react.useCallback((function(){if(colorsObject&&Object.keys(colorsObject).length>0&&useContColorTable)return colorScaleData?colorScaleData(colorsObject,!0):null;if(data&&!useContColorTable){var arrayData_1=[];return data.forEach((function(colorsObject){var _a,_b,_c;arrayData_1.push(["0."+colorsObject.value,null===(_a=(0,color.ZP)(colorsObject.color))||void 0===_a?void 0:_a.rgb().r,null===(_b=(0,color.ZP)(colorsObject.color))||void 0===_b?void 0:_b.rgb().g,null===(_c=(0,color.ZP)(colorsObject.color))||void 0===_c?void 0:_c.rgb().b])})),colorScaleData?colorScaleData({arrayData:arrayData_1,legendColorName:legendColorName},!0):null}return colorsObject&&Object.keys(colorsObject).length>0&&useDiscColorTable?colorScaleData?colorScaleData(colorsObject,!1):null:colorScaleData?colorScaleData({colorsObject:colorsObject,legendColorName:legendColorName},!1):null}),[colorScaleData,colorsObject,data,legendColorName,useContColorTable,useDiscColorTable]);react.useEffect((function(){!0===useContColorTable&&divRef.current&&function contColortableLegend(){var itemColor=[];colorsObject.color.forEach((function(value){itemColor.push({offset:(0,legendCommonFunction.fc)(value).offset,color:(0,legendCommonFunction.fc)(value).color})}));var svgLegend=(0,src.Ys)(divRef.current).append("svg").style("cursor","pointer").style("height","30px").style("width",220),defs=svgLegend.append("defs"),currentIndex="linear-gradient-"+uniqueId+"0";defs.append("linearGradient").attr("id",currentIndex).attr("x1","0%").attr("x2","100%").attr("y1","0%").attr("y2","0%").selectAll("stop").data(itemColor).enter().append("stop").attr("offset",(function(data){return data.offset+"%"})).attr("stop-color",(function(data){return data.color})),svgLegend.append("rect").attr("x",0).attr("y",5).attr("width","100").attr("height",15).style("fill","url(#"+currentIndex+")"),svgLegend.append("text").attr("id","legendTitle").attr("x",106).attr("y",17.5).style("font-size","small").style("font-weight","700").text(colorsObject.name)}(),!0===useDiscColorTable&&divRef.current&&function discColorTableLegend(){var itemColor=[],itemName=[];function RGBToHex(rgb){var r=rgb[1].toString(16),g=rgb[2].toString(16),b=rgb[3].toString(16);return 1===r.length&&(r="0"+r),1===g.length&&(g="0"+g),1===b.length&&(b="0"+b),"#"+r+g+b}colorsObject.color.forEach((function(element,key){itemColor.push({color:RGBToHex(element)}),itemName.push(key)}));var count=itemName.length,colorLegend=discreteLegendUtil(itemColor,!0),selectedLegend=(0,src.Ys)(divRef.current);selectedLegend.append("svg").style("cursor","pointer").style("margin-top","5px").attr("viewBox","0 0 ".concat(count," 1")).attr("preserveAspectRatio","none").style("width","101px").style("height","15px").call(colorLegend),selectedLegend.append("label").text(legendColorName||"").style("width","15px").style("margin-left","10px").style("white-space","nowrap").style("font-size","small").style("font-weight","700").append(":hover").style("cursor","pointer")}(),!1===useDiscColorTable&&divRef.current?function discD3legend(){var itemName=[],itemColor=[];colorsObject.forEach((function(element,key){itemColor.push({color:element}),itemName.push(key)}));var count=itemName.length,discreteLegend=discreteLegendUtil(itemColor,!0);(0,src.Ys)("svg").append("g").attr("transform","translate(50,70)").attr("class","legend").call(discreteLegend);var selectedLegend=(0,src.Ys)(divRef.current);selectedLegend.append("svg").style("cursor","pointer").style("margin-top","5px").style("background","grey").attr("viewBox","0 0 ".concat(count," 1")).attr("preserveAspectRatio","none").style("width","101px").style("height","15px").call(discreteLegend),selectedLegend.append("text").text(legendColorName||"").style("width","15px").style("margin-left","10px").style("font-size","small").style("font-weight","700")}():!1===useContColorTable&&divRef.current&&function contD3Legend(){var itemColor=[];d3ColorScale.h.forEach((function(value){itemColor.push(value.colors)}));var svgLegend=(0,src.Ys)(divRef.current).append("svg").style("cursor","pointer").style("height","50px"),defs=svgLegend.append("defs"),currentIndex="linear-gradient-"+uniqueId;defs.append("linearGradient").attr("id",currentIndex).attr("x1","0%").attr("x2","100%").attr("y1","0%").attr("y2","0%").selectAll("stop").data(data).enter().append("stop").attr("offset",(function(d){return(d.value-extent[0])/(extent[1]-extent[0])*100+"%"})).attr("stop-color",(function(d){return d.color})),svgLegend.append("text").attr("id","legendTitle").attr("x",106).attr("y",17.5).style("font-size","small").style("font-weight","700").text(legendColorName||""),svgLegend.append("rect").attr("x",0).attr("y",5).attr("width","100").attr("height",15).style("fill","url(#"+currentIndex+")")}()}),[useContColorTable,useDiscColorTable]);var selectedStyle=currentLegendName===legendColorName?{background:"#c1c1c1 !important"}:{};return react.createElement(StyledLegend,{sx:selectedStyle},react.createElement("div",{id:"legend",style:{height:30},ref:divRef,onClick:handleChange}))},__spreadArray=function(to,from,pack){if(pack||2===arguments.length)for(var ar,i=0,l=from.length;i{const output=null===outerTheme?localTheme:function mergeOuterLocalTheme(outerTheme,localTheme){if("function"==typeof localTheme)return localTheme(outerTheme);return(0,esm_extends.Z)({},outerTheme,localTheme)}(outerTheme,localTheme);return null!=output&&(output[nested]=null!==outerTheme),output}),[localTheme,outerTheme]);return(0,jsx_runtime.jsx)(useTheme_ThemeContext.Provider,{value:theme,children:children})},emotion_element_c39617d8_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js"),useThemeWithoutDefault=__webpack_require__("./node_modules/@mui/system/esm/useThemeWithoutDefault.js"),RtlProvider=__webpack_require__("./node_modules/@mui/system/esm/RtlProvider/index.js");const EMPTY_THEME={};function useThemeScoping(themeId,upperTheme,localTheme,isPrivate=!1){return react.useMemo((()=>{const resolvedTheme=themeId&&upperTheme[themeId]||upperTheme;if("function"==typeof localTheme){const mergedTheme=localTheme(resolvedTheme),result=themeId?(0,esm_extends.Z)({},upperTheme,{[themeId]:mergedTheme}):mergedTheme;return isPrivate?()=>result:result}return themeId?(0,esm_extends.Z)({},upperTheme,{[themeId]:localTheme}):(0,esm_extends.Z)({},upperTheme,localTheme)}),[themeId,upperTheme,localTheme,isPrivate])}var esm_ThemeProvider_ThemeProvider=function ThemeProvider_ThemeProvider_ThemeProvider(props){const{children:children,theme:localTheme,themeId:themeId}=props,upperTheme=(0,useThemeWithoutDefault.Z)(EMPTY_THEME),upperPrivateTheme=useTheme()||EMPTY_THEME,engineTheme=useThemeScoping(themeId,upperTheme,localTheme),privateTheme=useThemeScoping(themeId,upperPrivateTheme,localTheme,!0),rtlValue="rtl"===engineTheme.direction;return(0,jsx_runtime.jsx)(ThemeProvider_ThemeProvider,{theme:privateTheme,children:(0,jsx_runtime.jsx)(emotion_element_c39617d8_browser_esm.T.Provider,{value:engineTheme,children:(0,jsx_runtime.jsx)(RtlProvider.Z,{value:rtlValue,children:children})})})},identifier=__webpack_require__("./node_modules/@mui/material/styles/identifier.js");const ThemeProvider_excluded=["theme"];function styles_ThemeProvider_ThemeProvider(_ref){let{theme:themeInput}=_ref,props=(0,objectWithoutPropertiesLoose.Z)(_ref,ThemeProvider_excluded);const scopedTheme=themeInput[identifier.Z];return(0,jsx_runtime.jsx)(esm_ThemeProvider_ThemeProvider,(0,esm_extends.Z)({},props,{themeId:scopedTheme?identifier.Z:void 0,theme:scopedTheme||themeInput}))}var colorManipulator=__webpack_require__("./node_modules/@mui/system/colorManipulator.js"),styles_useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),capitalize=__webpack_require__("./node_modules/@mui/material/utils/capitalize.js");function getIconButtonUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiIconButton",slot)}var IconButton_iconButtonClasses=(0,generateUtilityClasses.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const IconButton_excluded=["edge","children","className","color","disabled","disableFocusRipple","size"],IconButtonRoot=(0,styled.ZP)(ButtonBase.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,"default"!==ownerState.color&&styles[`color${(0,capitalize.Z)(ownerState.color)}`],ownerState.edge&&styles[`edge${(0,capitalize.Z)(ownerState.edge)}`],styles[`size${(0,capitalize.Z)(ownerState.size)}`]]}})((({theme:theme,ownerState:ownerState})=>(0,esm_extends.Z)({textAlign:"center",flex:"0 0 auto",fontSize:theme.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(theme.vars||theme).palette.action.active,transition:theme.transitions.create("background-color",{duration:theme.transitions.duration.shortest})},!ownerState.disableRipple&&{"&:hover":{backgroundColor:theme.vars?`rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})`:(0,colorManipulator.Fq)(theme.palette.action.active,theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===ownerState.edge&&{marginLeft:"small"===ownerState.size?-3:-12},"end"===ownerState.edge&&{marginRight:"small"===ownerState.size?-3:-12})),(({theme:theme,ownerState:ownerState})=>{var _palette;const palette=null==(_palette=(theme.vars||theme).palette)?void 0:_palette[ownerState.color];return(0,esm_extends.Z)({},"inherit"===ownerState.color&&{color:"inherit"},"inherit"!==ownerState.color&&"default"!==ownerState.color&&(0,esm_extends.Z)({color:null==palette?void 0:palette.main},!ownerState.disableRipple&&{"&:hover":(0,esm_extends.Z)({},palette&&{backgroundColor:theme.vars?`rgba(${palette.mainChannel} / ${theme.vars.palette.action.hoverOpacity})`:(0,colorManipulator.Fq)(palette.main,theme.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===ownerState.size&&{padding:5,fontSize:theme.typography.pxToRem(18)},"large"===ownerState.size&&{padding:12,fontSize:theme.typography.pxToRem(28)},{[`&.${IconButton_iconButtonClasses.disabled}`]:{backgroundColor:"transparent",color:(theme.vars||theme).palette.action.disabled}})})),IconButton=react.forwardRef((function IconButton(inProps,ref){const props=(0,styles_useThemeProps.Z)({props:inProps,name:"MuiIconButton"}),{edge:edge=!1,children:children,className:className,color:color="default",disabled:disabled=!1,disableFocusRipple:disableFocusRipple=!1,size:size="medium"}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,IconButton_excluded),ownerState=(0,esm_extends.Z)({},props,{edge:edge,color:color,disabled:disabled,disableFocusRipple:disableFocusRipple,size:size}),classes=(ownerState=>{const{classes:classes,disabled:disabled,color:color,edge:edge,size:size}=ownerState,slots={root:["root",disabled&&"disabled","default"!==color&&`color${(0,capitalize.Z)(color)}`,edge&&`edge${(0,capitalize.Z)(edge)}`,`size${(0,capitalize.Z)(size)}`]};return(0,composeClasses.Z)(slots,getIconButtonUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsx)(IconButtonRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(classes.root,className),centerRipple:!0,focusRipple:!disableFocusRipple,disabled:disabled,ref:ref},other,{ownerState:ownerState,children:children}))}));var IconButton_IconButton=IconButton,Popover=__webpack_require__("./node_modules/@mui/material/Popover/Popover.js"),DeleteOutlined=__webpack_require__("./node_modules/@mui/icons-material/DeleteOutlined.js"),Edit=__webpack_require__("./node_modules/@mui/icons-material/Edit.js"),MoreHoriz=__webpack_require__("./node_modules/@mui/icons-material/MoreHoriz.js"),styles_useTheme=__webpack_require__("./node_modules/@mui/material/styles/useTheme.js"),Dialog=__webpack_require__("./node_modules/@mui/material/Dialog/Dialog.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),AddCircleOutlineSharp=__webpack_require__("./node_modules/@mui/icons-material/AddCircleOutlineSharp.js"),RemoveCircleOutlineSharp=__webpack_require__("./node_modules/@mui/icons-material/RemoveCircleOutlineSharp.js"),lib=__webpack_require__("./node_modules/reactcss/lib/index.js"),checkboardCache={},get=function get(c1,c2,size,serverCanvas){var key=c1+"-"+c2+"-"+size+(serverCanvas?"-server":"");if(checkboardCache[key])return checkboardCache[key];var checkboard=function render(c1,c2,size,serverCanvas){if("undefined"==typeof document&&!serverCanvas)return null;var canvas=serverCanvas?new serverCanvas:document.createElement("canvas");canvas.width=2*size,canvas.height=2*size;var ctx=canvas.getContext("2d");return ctx?(ctx.fillStyle=c1,ctx.fillRect(0,0,canvas.width,canvas.height),ctx.fillStyle=c2,ctx.fillRect(0,0,size,size),ctx.translate(size,size),ctx.fillRect(0,0,size,size),canvas.toDataURL()):null}(c1,c2,size,serverCanvas);return checkboardCache[key]=checkboard,checkboard},_extends=Object.assign||function(target){for(var i=1;icontainerHeight?1:Math.round(100*top/containerHeight)/100,hsl.a!==a)return{h:hsl.h,s:hsl.s,l:hsl.l,a:a,source:"rgb"}}else{var _a=void 0;if(initialA!==(_a=left<0?0:left>containerWidth?1:Math.round(100*left/containerWidth)/100))return{h:hsl.h,s:hsl.s,l:hsl.l,a:_a,source:"rgb"}}return null}(e,_this.props.hsl,_this.props.direction,_this.props.a,_this.container);change&&"function"==typeof _this.props.onChange&&_this.props.onChange(change,e)},_this.handleMouseDown=function(e){_this.handleChange(e),window.addEventListener("mousemove",_this.handleChange),window.addEventListener("mouseup",_this.handleMouseUp)},_this.handleMouseUp=function(){_this.unbindEventListeners()},_this.unbindEventListeners=function(){window.removeEventListener("mousemove",_this.handleChange),window.removeEventListener("mouseup",_this.handleMouseUp)},_possibleConstructorReturn(_this,_temp)}return function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Alpha,_ref),_createClass(Alpha,[{key:"componentWillUnmount",value:function componentWillUnmount(){this.unbindEventListeners()}},{key:"render",value:function render(){var _this2=this,rgb=this.props.rgb,styles=(0,lib.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+rgb.r+","+rgb.g+","+rgb.b+", 0) 0%,\n rgba("+rgb.r+","+rgb.g+","+rgb.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*rgb.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+rgb.r+","+rgb.g+","+rgb.b+", 0) 0%,\n rgba("+rgb.r+","+rgb.g+","+rgb.b+", 1) 100%)"},pointer:{left:0,top:100*rgb.a+"%"}},overwrite:Alpha_extends({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return react.createElement("div",{style:styles.alpha},react.createElement("div",{style:styles.checkboard},react.createElement(common_Checkboard,{renderers:this.props.renderers})),react.createElement("div",{style:styles.gradient}),react.createElement("div",{style:styles.container,ref:function ref(container){return _this2.container=container},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},react.createElement("div",{style:styles.pointer},this.props.pointer?react.createElement(this.props.pointer,this.props):react.createElement("div",{style:styles.slider}))))}}]),Alpha}(react.PureComponent||react.Component),common_Alpha=Alpha,EditableInput_createClass=function(){function defineProperties(target,props){for(var i=0;i-1}(e.keyCode)){var offset=_this.getArrowOffset(),updatedValue=38===e.keyCode?value+offset:value-offset;_this.setUpdatedValue(updatedValue,e)}},_this.handleDrag=function(e){if(_this.props.dragLabel){var newValue=Math.round(_this.props.value+e.movementX);newValue>=0&&newValue<=_this.props.dragMax&&_this.props.onChange&&_this.props.onChange(_this.getValueObjectWithLabel(newValue),e)}},_this.handleMouseDown=function(e){_this.props.dragLabel&&(e.preventDefault(),_this.handleDrag(e),window.addEventListener("mousemove",_this.handleDrag),window.addEventListener("mouseup",_this.handleMouseUp))},_this.handleMouseUp=function(){_this.unbindEventListeners()},_this.unbindEventListeners=function(){window.removeEventListener("mousemove",_this.handleDrag),window.removeEventListener("mouseup",_this.handleMouseUp)},_this.state={value:String(props.value).toUpperCase(),blurValue:String(props.value).toUpperCase()},_this.inputId="rc-editable-input-"+idCounter++,_this}return function EditableInput_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(EditableInput,_ref),EditableInput_createClass(EditableInput,[{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){this.props.value===this.state.value||prevProps.value===this.props.value&&prevState.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function getValueObjectWithLabel(value){return function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},this.props.label,value)}},{key:"getArrowOffset",value:function getArrowOffset(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function setUpdatedValue(value,e){var onChangeValue=this.props.label?this.getValueObjectWithLabel(value):value;this.props.onChange&&this.props.onChange(onChangeValue,e),this.setState({value:value})}},{key:"render",value:function render(){var _this2=this,styles=(0,lib.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return react.createElement("div",{style:styles.wrap},react.createElement("input",{id:this.inputId,style:styles.input,ref:function ref(input){return _this2.input=input},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?react.createElement("label",{htmlFor:this.inputId,style:styles.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),EditableInput}(react.PureComponent||react.Component),Hue_createClass=function(){function defineProperties(target,props){for(var i=0;icontainerHeight?0:360*(-100*top/containerHeight+100)/100,hsl.h!==h)return{h:h,s:hsl.s,l:hsl.l,a:hsl.a,source:"hsl"}}else{var _h=void 0;if(_h=left<0?0:left>containerWidth?359:100*left/containerWidth*360/100,hsl.h!==_h)return{h:_h,s:hsl.s,l:hsl.l,a:hsl.a,source:"hsl"}}return null}(e,_this.props.direction,_this.props.hsl,_this.container);change&&"function"==typeof _this.props.onChange&&_this.props.onChange(change,e)},_this.handleMouseDown=function(e){_this.handleChange(e),window.addEventListener("mousemove",_this.handleChange),window.addEventListener("mouseup",_this.handleMouseUp)},_this.handleMouseUp=function(){_this.unbindEventListeners()},Hue_possibleConstructorReturn(_this,_temp)}return function Hue_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Hue,_ref),Hue_createClass(Hue,[{key:"componentWillUnmount",value:function componentWillUnmount(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function render(){var _this2=this,_props$direction=this.props.direction,direction=void 0===_props$direction?"horizontal":_props$direction,styles=(0,lib.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===direction});return react.createElement("div",{style:styles.hue},react.createElement("div",{className:"hue-"+direction,style:styles.container,ref:function ref(container){return _this2.container=container},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},react.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),react.createElement("div",{style:styles.pointer},this.props.pointer?react.createElement(this.props.pointer,this.props):react.createElement("div",{style:styles.slider}))))}}]),Hue}(react.PureComponent||react.Component),common_Hue=Hue,prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types);var _listCacheClear=function listCacheClear(){this.__data__=[],this.size=0};var lodash_es_eq=function eq(value,other){return value===other||value!=value&&other!=other};var _assocIndexOf=function assocIndexOf(array,key){for(var length=array.length;length--;)if(lodash_es_eq(array[length][0],key))return length;return-1},splice=Array.prototype.splice;var _listCacheDelete=function listCacheDelete(key){var data=this.__data__,index=_assocIndexOf(data,key);return!(index<0)&&(index==data.length-1?data.pop():splice.call(data,index,1),--this.size,!0)};var _listCacheGet=function listCacheGet(key){var data=this.__data__,index=_assocIndexOf(data,key);return index<0?void 0:data[index][1]};var _listCacheHas=function listCacheHas(key){return _assocIndexOf(this.__data__,key)>-1};var _listCacheSet=function listCacheSet(key,value){var data=this.__data__,index=_assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this};function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index-1&&value%1==0&&value<=9007199254740991};var lodash_es_isArrayLike=function isArrayLike(value){return null!=value&&lodash_es_isLength(value.length)&&!lodash_es_isFunction(value)};var lodash_es_isArrayLikeObject=function isArrayLikeObject(value){return lodash_es_isObjectLike(value)&&lodash_es_isArrayLike(value)},isBuffer=__webpack_require__("./node_modules/lodash-es/isBuffer.js"),isPlainObject_funcProto=Function.prototype,isPlainObject_objectProto=Object.prototype,isPlainObject_funcToString=isPlainObject_funcProto.toString,isPlainObject_hasOwnProperty=isPlainObject_objectProto.hasOwnProperty,objectCtorString=isPlainObject_funcToString.call(Object);var lodash_es_isPlainObject=function isPlainObject(value){if(!lodash_es_isObjectLike(value)||"[object Object]"!=_baseGetTag(value))return!1;var proto=_getPrototype(value);if(null===proto)return!0;var Ctor=isPlainObject_hasOwnProperty.call(proto,"constructor")&&proto.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor&&isPlainObject_funcToString.call(Ctor)==objectCtorString},typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0,typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=typedArrayTags["[object DataView]"]=typedArrayTags["[object Date]"]=typedArrayTags["[object Error]"]=typedArrayTags["[object Function]"]=typedArrayTags["[object Map]"]=typedArrayTags["[object Number]"]=typedArrayTags["[object Object]"]=typedArrayTags["[object RegExp]"]=typedArrayTags["[object Set]"]=typedArrayTags["[object String]"]=typedArrayTags["[object WeakMap]"]=!1;var _baseIsTypedArray=function baseIsTypedArray(value){return lodash_es_isObjectLike(value)&&lodash_es_isLength(value.length)&&!!typedArrayTags[_baseGetTag(value)]};var _baseUnary=function baseUnary(func){return function(value){return func(value)}},_nodeUtil=__webpack_require__("./node_modules/lodash-es/_nodeUtil.js"),nodeIsTypedArray=_nodeUtil.Z&&_nodeUtil.Z.isTypedArray,lodash_es_isTypedArray=nodeIsTypedArray?_baseUnary(nodeIsTypedArray):_baseIsTypedArray;var _safeGet=function safeGet(object,key){if(("constructor"!==key||"function"!=typeof object[key])&&"__proto__"!=key)return object[key]},_assignValue_hasOwnProperty=Object.prototype.hasOwnProperty;var _assignValue=function assignValue(object,key,value){var objValue=object[key];_assignValue_hasOwnProperty.call(object,key)&&lodash_es_eq(objValue,value)&&(void 0!==value||key in object)||_baseAssignValue(object,key,value)};var _copyObject=function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});for(var index=-1,length=props.length;++index-1&&value%1==0&&value0){if(++count>=800)return arguments[0]}else count=0;return func.apply(void 0,arguments)}},_setToString=_shortOut(_baseSetToString);var _baseRest=function baseRest(func,start){return _setToString(_overRest(func,start,lodash_es_identity),func+"")};var _isIterateeCall=function isIterateeCall(value,index,object){if(!lodash_es_isObject(object))return!1;var type=typeof index;return!!("number"==type?lodash_es_isArrayLike(object)&&_isIndex(index,object.length):"string"==type&&index in object)&&lodash_es_eq(object[index],value)};var lodash_es_merge=function createAssigner(assigner){return _baseRest((function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:void 0,guard=length>2?sources[2]:void 0;for(customizer=assigner.length>3&&"function"==typeof customizer?(length--,customizer):void 0,guard&&_isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?void 0:customizer,length=1),object=Object(object);++index=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=lodash_es_now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=lodash_es_now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=lodash_es_toNumber(wait)||0,lodash_es_isObject(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?debounce_nativeMax(lodash_es_toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(lodash_es_now())},debounced};var lodash_es_throttle=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");return lodash_es_isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),lodash_es_debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})},Saturation_createClass=function(){function defineProperties(target,props){for(var i=0;icontainerWidth&&(left=containerWidth),top<0?top=0:top>containerHeight&&(top=containerHeight);var saturation=left/containerWidth,bright=1-top/containerHeight;return{h:hsl.h,s:saturation,v:bright,a:hsl.a,source:"hsv"}}(e,_this.props.hsl,_this.container),e)},_this.handleMouseDown=function(e){_this.handleChange(e);var renderWindow=_this.getContainerRenderWindow();renderWindow.addEventListener("mousemove",_this.handleChange),renderWindow.addEventListener("mouseup",_this.handleMouseUp)},_this.handleMouseUp=function(){_this.unbindEventListeners()},_this.throttle=lodash_es_throttle((function(fn,data,e){fn(data,e)}),50),_this}return function Saturation_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Saturation,_ref),Saturation_createClass(Saturation,[{key:"componentWillUnmount",value:function componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function getContainerRenderWindow(){for(var container=this.container,renderWindow=window;!renderWindow.document.contains(container)&&renderWindow.parent!==renderWindow;)renderWindow=renderWindow.parent;return renderWindow}},{key:"unbindEventListeners",value:function unbindEventListeners(){var renderWindow=this.getContainerRenderWindow();renderWindow.removeEventListener("mousemove",this.handleChange),renderWindow.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function render(){var _this2=this,_ref2=this.props.style||{},color=_ref2.color,white=_ref2.white,black=_ref2.black,pointer=_ref2.pointer,circle=_ref2.circle,styles=(0,lib.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:color,white:white,black:black,pointer:pointer,circle:circle}},{custom:!!this.props.style});return react.createElement("div",{style:styles.color,ref:function ref(container){return _this2.container=container},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},react.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),react.createElement("div",{style:styles.white,className:"saturation-white"},react.createElement("div",{style:styles.black,className:"saturation-black"}),react.createElement("div",{style:styles.pointer},this.props.pointer?react.createElement(this.props.pointer,this.props):react.createElement("div",{style:styles.circle}))))}}]),Saturation}(react.PureComponent||react.Component),common_Saturation=Saturation;var _arrayEach=function arrayEach(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index1&&(t-=1),t<1/6?p+6*(q-p)*t:t<.5?q:t<2/3?p+(q-p)*(2/3-t)*6:p}if(h=bound01(h,360),s=bound01(s,100),l=bound01(l,100),0===s)r=g=b=l;else{var q=l<.5?l*(1+s):l+s-l*s,p=2*l-q;r=hue2rgb(p,q,h+1/3),g=hue2rgb(p,q,h),b=hue2rgb(p,q,h-1/3)}return{r:255*r,g:255*g,b:255*b}}(color.h,s,l),ok=!0,format="hsl"),color.hasOwnProperty("a")&&(a=color.a));return a=boundAlpha(a),{ok:ok,format:color.format||format,r:Math.min(255,Math.max(rgb.r,0)),g:Math.min(255,Math.max(rgb.g,0)),b:Math.min(255,Math.max(rgb.b,0)),a:a}}(color);this._originalInput=color,this._r=rgb.r,this._g=rgb.g,this._b=rgb.b,this._a=rgb.a,this._roundA=Math.round(100*this._a)/100,this._format=opts.format||rgb.format,this._gradientType=opts.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=rgb.ok}function rgbToHsl(r,g,b){r=bound01(r,255),g=bound01(g,255),b=bound01(b,255);var h,s,max=Math.max(r,g,b),min=Math.min(r,g,b),l=(max+min)/2;if(max==min)h=s=0;else{var d=max-min;switch(s=l>.5?d/(2-max-min):d/(max+min),max){case r:h=(g-b)/d+(g>1)+720)%360;--results;)hsl.h=(hsl.h+part)%360,ret.push(tinycolor(hsl));return ret}function _monochromatic(color,results){results=results||6;for(var hsv=tinycolor(color).toHsv(),h=hsv.h,s=hsv.s,v=hsv.v,ret=[],modification=1/results;results--;)ret.push(tinycolor({h:h,s:s,v:v})),v=(v+modification)%1;return ret}tinycolor.prototype={isDark:function isDark(){return this.getBrightness()<128},isLight:function isLight(){return!this.isDark()},isValid:function isValid(){return this._ok},getOriginalInput:function getOriginalInput(){return this._originalInput},getFormat:function getFormat(){return this._format},getAlpha:function getAlpha(){return this._a},getBrightness:function getBrightness(){var rgb=this.toRgb();return(299*rgb.r+587*rgb.g+114*rgb.b)/1e3},getLuminance:function getLuminance(){var RsRGB,GsRGB,BsRGB,rgb=this.toRgb();return RsRGB=rgb.r/255,GsRGB=rgb.g/255,BsRGB=rgb.b/255,.2126*(RsRGB<=.03928?RsRGB/12.92:Math.pow((RsRGB+.055)/1.055,2.4))+.7152*(GsRGB<=.03928?GsRGB/12.92:Math.pow((GsRGB+.055)/1.055,2.4))+.0722*(BsRGB<=.03928?BsRGB/12.92:Math.pow((BsRGB+.055)/1.055,2.4))},setAlpha:function setAlpha(value){return this._a=boundAlpha(value),this._roundA=Math.round(100*this._a)/100,this},toHsv:function toHsv(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:360*hsv.h,s:hsv.s,v:hsv.v,a:this._a}},toHsvString:function toHsvString(){var hsv=rgbToHsv(this._r,this._g,this._b),h=Math.round(360*hsv.h),s=Math.round(100*hsv.s),v=Math.round(100*hsv.v);return 1==this._a?"hsv("+h+", "+s+"%, "+v+"%)":"hsva("+h+", "+s+"%, "+v+"%, "+this._roundA+")"},toHsl:function toHsl(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:360*hsl.h,s:hsl.s,l:hsl.l,a:this._a}},toHslString:function toHslString(){var hsl=rgbToHsl(this._r,this._g,this._b),h=Math.round(360*hsl.h),s=Math.round(100*hsl.s),l=Math.round(100*hsl.l);return 1==this._a?"hsl("+h+", "+s+"%, "+l+"%)":"hsla("+h+", "+s+"%, "+l+"%, "+this._roundA+")"},toHex:function toHex(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char)},toHexString:function toHexString(allow3Char){return"#"+this.toHex(allow3Char)},toHex8:function toHex8(allow4Char){return function rgbaToHex(r,g,b,a,allow4Char){var hex=[pad2(Math.round(r).toString(16)),pad2(Math.round(g).toString(16)),pad2(Math.round(b).toString(16)),pad2(convertDecimalToHex(a))];if(allow4Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)&&hex[3].charAt(0)==hex[3].charAt(1))return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0)+hex[3].charAt(0);return hex.join("")}(this._r,this._g,this._b,this._a,allow4Char)},toHex8String:function toHex8String(allow4Char){return"#"+this.toHex8(allow4Char)},toRgb:function toRgb(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function toRgbString(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function toPercentageRgb(){return{r:Math.round(100*bound01(this._r,255))+"%",g:Math.round(100*bound01(this._g,255))+"%",b:Math.round(100*bound01(this._b,255))+"%",a:this._a}},toPercentageRgbString:function toPercentageRgbString(){return 1==this._a?"rgb("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%)":"rgba("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%, "+this._roundA+")"},toName:function toName(){return 0===this._a?"transparent":!(this._a<1)&&(hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1)},toFilter:function toFilter(secondColor){var hex8String="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),secondHex8String=hex8String,gradientType=this._gradientType?"GradientType = 1, ":"";if(secondColor){var s=tinycolor(secondColor);secondHex8String="#"+rgbaToArgbHex(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"},toString:function toString(format){var formatSet=!!format;format=format||this._format;var formattedString=!1,hasAlpha=this._a<1&&this._a>=0;return formatSet||!hasAlpha||"hex"!==format&&"hex6"!==format&&"hex3"!==format&&"hex4"!==format&&"hex8"!==format&&"name"!==format?("rgb"===format&&(formattedString=this.toRgbString()),"prgb"===format&&(formattedString=this.toPercentageRgbString()),"hex"!==format&&"hex6"!==format||(formattedString=this.toHexString()),"hex3"===format&&(formattedString=this.toHexString(!0)),"hex4"===format&&(formattedString=this.toHex8String(!0)),"hex8"===format&&(formattedString=this.toHex8String()),"name"===format&&(formattedString=this.toName()),"hsl"===format&&(formattedString=this.toHslString()),"hsv"===format&&(formattedString=this.toHsvString()),formattedString||this.toHexString()):"name"===format&&0===this._a?this.toName():this.toRgbString()},clone:function clone(){return tinycolor(this.toString())},_applyModification:function _applyModification(fn,args){var color=fn.apply(null,[this].concat([].slice.call(args)));return this._r=color._r,this._g=color._g,this._b=color._b,this.setAlpha(color._a),this},lighten:function lighten(){return this._applyModification(_lighten,arguments)},brighten:function brighten(){return this._applyModification(_brighten,arguments)},darken:function darken(){return this._applyModification(_darken,arguments)},desaturate:function desaturate(){return this._applyModification(_desaturate,arguments)},saturate:function saturate(){return this._applyModification(_saturate,arguments)},greyscale:function greyscale(){return this._applyModification(_greyscale,arguments)},spin:function spin(){return this._applyModification(_spin,arguments)},_applyCombination:function _applyCombination(fn,args){return fn.apply(null,[this].concat([].slice.call(args)))},analogous:function analogous(){return this._applyCombination(_analogous,arguments)},complement:function complement(){return this._applyCombination(_complement,arguments)},monochromatic:function monochromatic(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function splitcomplement(){return this._applyCombination(_splitcomplement,arguments)},triad:function triad(){return this._applyCombination(polyad,[3])},tetrad:function tetrad(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(color,opts){if("object"==_typeof(color)){var newColor={};for(var i in color)color.hasOwnProperty(i)&&(newColor[i]="a"===i?color[i]:convertToPercentage(color[i]));color=newColor}return tinycolor(color,opts)},tinycolor.equals=function(color1,color2){return!(!color1||!color2)&&tinycolor(color1).toRgbString()==tinycolor(color2).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},tinycolor.mix=function(color1,color2,amount){amount=0===amount?0:amount||50;var rgb1=tinycolor(color1).toRgb(),rgb2=tinycolor(color2).toRgb(),p=amount/100;return tinycolor({r:(rgb2.r-rgb1.r)*p+rgb1.r,g:(rgb2.g-rgb1.g)*p+rgb1.g,b:(rgb2.b-rgb1.b)*p+rgb1.b,a:(rgb2.a-rgb1.a)*p+rgb1.a})},tinycolor.readability=function(color1,color2){var c1=tinycolor(color1),c2=tinycolor(color2);return(Math.max(c1.getLuminance(),c2.getLuminance())+.05)/(Math.min(c1.getLuminance(),c2.getLuminance())+.05)},tinycolor.isReadable=function(color1,color2,wcag2){var wcag2Parms,out,readability=tinycolor.readability(color1,color2);switch(out=!1,(wcag2Parms=function validateWCAG2Parms(parms){var level,size;level=((parms=parms||{level:"AA",size:"small"}).level||"AA").toUpperCase(),size=(parms.size||"small").toLowerCase(),"AA"!==level&&"AAA"!==level&&(level="AA");"small"!==size&&"large"!==size&&(size="small");return{level:level,size:size}}(wcag2)).level+wcag2Parms.size){case"AAsmall":case"AAAlarge":out=readability>=4.5;break;case"AAlarge":out=readability>=3;break;case"AAAsmall":out=readability>=7}return out},tinycolor.mostReadable=function(baseColor,colorList,args){var readability,includeFallbackColors,level,size,bestColor=null,bestScore=0;includeFallbackColors=(args=args||{}).includeFallbackColors,level=args.level,size=args.size;for(var i=0;ibestScore&&(bestScore=readability,bestColor=tinycolor(colorList[i]));return tinycolor.isReadable(baseColor,bestColor,{level:level,size:size})||!includeFallbackColors?bestColor:(args.includeFallbackColors=!1,tinycolor.mostReadable(baseColor,["#fff","#000"],args))};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor.hexNames=function flip(o){var flipped={};for(var i in o)o.hasOwnProperty(i)&&(flipped[o[i]]=i);return flipped}(names);function boundAlpha(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function bound01(n,max){(function isOnePointZero(n){return"string"==typeof n&&-1!=n.indexOf(".")&&1===parseFloat(n)})(n)&&(n="100%");var processPercent=function isPercentage(n){return"string"==typeof n&&-1!=n.indexOf("%")}(n);return n=Math.min(max,Math.max(0,parseFloat(n))),processPercent&&(n=parseInt(n*max,10)/100),Math.abs(n-max)<1e-6?1:n%max/parseFloat(max)}function clamp01(val){return Math.min(1,Math.max(0,val))}function parseIntFromHex(val){return parseInt(val,16)}function pad2(c){return 1==c.length?"0"+c:""+c}function convertToPercentage(n){return n<=1&&(n=100*n+"%"),n}function convertDecimalToHex(d){return Math.round(255*parseFloat(d)).toString(16)}function convertHexToDecimal(h){return parseIntFromHex(h)/255}var CSS_UNIT,PERMISSIVE_MATCH3,PERMISSIVE_MATCH4,matchers=(PERMISSIVE_MATCH3="[\\s|\\(]+("+(CSS_UNIT="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",{CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function isValidCSSUnit(color){return!!matchers.CSS_UNIT.exec(color)}var simpleCheckForValidColor=function simpleCheckForValidColor(data){var checked=0,passed=0;return lodash_es_forEach(["r","g","b","a","h","s","l","v"],(function(letter){if(data[letter]&&(checked+=1,isNaN(data[letter])||(passed+=1),"s"===letter||"l"===letter)){/^\d+%$/.test(data[letter])&&(passed+=1)}})),checked===passed&&data},toState=function toState(data,oldHue){var color=data.hex?tinycolor(data.hex):tinycolor(data),hsl=color.toHsl(),hsv=color.toHsv(),rgb=color.toRgb(),hex=color.toHex();return 0===hsl.s&&(hsl.h=oldHue||0,hsv.h=oldHue||0),{hsl:hsl,hex:"000000"===hex&&0===rgb.a?"transparent":"#"+hex,rgb:rgb,hsv:hsv,oldHue:data.h||oldHue||hsl.h,source:data.source}},isValidHex=function isValidHex(hex){if("transparent"===hex)return!0;var lh="#"===String(hex).charAt(0)?1:0;return hex.length!==4+lh&&hex.length<7+lh&&tinycolor(hex).isValid()},getContrastingColor=function getContrastingColor(data){if(!data)return"#fff";var col=toState(data);return"transparent"===col.hex?"rgba(0,0,0,0.4)":(299*col.rgb.r+587*col.rgb.g+114*col.rgb.b)/1e3>=128?"#000":"#fff"},isvalidColorString=function isvalidColorString(string,type){return tinycolor(type+" ("+string.replace("°","")+")")._ok},ColorWrap_extends=Object.assign||function(target){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:"span";return function(_React$Component){function Focus(){var _ref,_temp,_this;!function interaction_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Focus);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _temp=_this=interaction_possibleConstructorReturn(this,(_ref=Focus.__proto__||Object.getPrototypeOf(Focus)).call.apply(_ref,[this].concat(args))),_this.state={focus:!1},_this.handleFocus=function(){return _this.setState({focus:!0})},_this.handleBlur=function(){return _this.setState({focus:!1})},interaction_possibleConstructorReturn(_this,_temp)}return function interaction_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Focus,_React$Component),interaction_createClass(Focus,[{key:"render",value:function render(){return react.createElement(Span,{onFocus:this.handleFocus,onBlur:this.handleBlur},react.createElement(Component,interaction_extends({},this.props,this.state)))}}]),Focus}(react.Component)}((function Swatch(_ref){var color=_ref.color,style=_ref.style,_ref$onClick=_ref.onClick,onClick=void 0===_ref$onClick?function(){}:_ref$onClick,onHover=_ref.onHover,_ref$title=_ref.title,title=void 0===_ref$title?color:_ref$title,children=_ref.children,focus=_ref.focus,_ref$focusStyle=_ref.focusStyle,focusStyle=void 0===_ref$focusStyle?{}:_ref$focusStyle,transparent="transparent"===color,styles=(0,lib.ZP)({default:{swatch:Swatch_extends({background:color,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},style,focus?focusStyle:{})}}),optionalEvents={};return onHover&&(optionalEvents.onMouseOver=function handleHover(e){return onHover(color,e)}),react.createElement("div",Swatch_extends({style:styles.swatch,onClick:function handleClick(e){return onClick(color,e)},title:title,tabIndex:0,onKeyDown:function handleKeyDown(e){return 13===e.keyCode&&onClick(color,e)}},optionalEvents),children,transparent&&react.createElement(common_Checkboard,{borderRadius:styles.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))})),alpha_AlphaPointer=function AlphaPointer(_ref){var direction=_ref.direction,styles=(0,lib.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===direction});return react.createElement("div",{style:styles.picker})},alpha_Alpha_extends=Object.assign||function(target){for(var i=1;iarrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=2&bitmask?new _SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index1&&(data.a=1),_this.props.onChange({h:_this.props.hsl.h,s:_this.props.hsl.s,l:_this.props.hsl.l,a:Math.round(100*data.a)/100,source:"rgb"},e)):(data.h||data.s||data.l)&&("string"==typeof data.s&&data.s.includes("%")&&(data.s=data.s.replace("%","")),"string"==typeof data.l&&data.l.includes("%")&&(data.l=data.l.replace("%","")),1==data.s?data.s=.01:1==data.l&&(data.l=.01),_this.props.onChange({h:data.h||_this.props.hsl.h,s:Number(lodash_es_isUndefined(data.s)?_this.props.hsl.s:data.s),l:Number(lodash_es_isUndefined(data.l)?_this.props.hsl.l:data.l),source:"hsl"},e))},_this.showHighlight=function(e){e.currentTarget.style.background="#eee"},_this.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==props.hsl.a&&"hex"===props.view?_this.state={view:"rgb"}:_this.state={view:props.view},_this}return function ChromeFields_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(ChromeFields,_React$Component),ChromeFields_createClass(ChromeFields,[{key:"render",value:function render(){var _this2=this,styles=(0,lib.ZP)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),fields=void 0;return"hex"===this.state.view?fields=react.createElement("div",{style:styles.fields,className:"flexbox-fix"},react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?fields=react.createElement("div",{style:styles.fields,className:"flexbox-fix"},react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),react.createElement("div",{style:styles.alpha},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(fields=react.createElement("div",{style:styles.fields,className:"flexbox-fix"},react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),react.createElement("div",{style:styles.alpha},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),react.createElement("div",{style:styles.wrap,className:"flexbox-fix"},fields,react.createElement("div",{style:styles.toggle},react.createElement("div",{style:styles.icon,onClick:this.toggleViews,ref:function ref(icon){return _this2.icon=icon}},react.createElement(UnfoldMoreHorizontalIcon.Z,{style:styles.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(nextProps,state){return 1!==nextProps.hsl.a&&"hex"===state.view?{view:"rgb"}:null}}]),ChromeFields}(react.Component);ChromeFields.defaultProps={view:"hex"};var chrome_ChromeFields=ChromeFields,chrome_ChromePointer=function ChromePointer(){var styles=(0,lib.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return react.createElement("div",{style:styles.picker})},chrome_ChromePointerCircle=function ChromePointerCircle(){var styles=(0,lib.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return react.createElement("div",{style:styles.picker})},Chrome=function Chrome(_ref){var width=_ref.width,onChange=_ref.onChange,disableAlpha=_ref.disableAlpha,rgb=_ref.rgb,hsl=_ref.hsl,hsv=_ref.hsv,hex=_ref.hex,renderers=_ref.renderers,_ref$styles=_ref.styles,passedStyles=void 0===_ref$styles?{}:_ref$styles,_ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,defaultView=_ref.defaultView,styles=(0,lib.ZP)(lodash_es_merge({default:{picker:{width:width,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+rgb.r+", "+rgb.g+", "+rgb.b+", "+rgb.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},passedStyles),{disableAlpha:disableAlpha});return react.createElement("div",{style:styles.picker,className:"chrome-picker "+className},react.createElement("div",{style:styles.saturation},react.createElement(common_Saturation,{style:styles.Saturation,hsl:hsl,hsv:hsv,pointer:chrome_ChromePointerCircle,onChange:onChange})),react.createElement("div",{style:styles.body},react.createElement("div",{style:styles.controls,className:"flexbox-fix"},react.createElement("div",{style:styles.color},react.createElement("div",{style:styles.swatch},react.createElement("div",{style:styles.active}),react.createElement(common_Checkboard,{renderers:renderers}))),react.createElement("div",{style:styles.toggles},react.createElement("div",{style:styles.hue},react.createElement(common_Hue,{style:styles.Hue,hsl:hsl,pointer:chrome_ChromePointer,onChange:onChange})),react.createElement("div",{style:styles.alpha},react.createElement(common_Alpha,{style:styles.Alpha,rgb:rgb,hsl:hsl,pointer:chrome_ChromePointer,renderers:renderers,onChange:onChange})))),react.createElement(chrome_ChromeFields,{rgb:rgb,hsl:hsl,hex:hex,view:defaultView,onChange:onChange,disableAlpha:disableAlpha})))};Chrome.propTypes={width:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().number]),disableAlpha:prop_types_default().bool,styles:prop_types_default().object,defaultView:prop_types_default().oneOf(["hex","rgb","hsl"])},Chrome.defaultProps={width:225,disableAlpha:!1,styles:{}};common_ColorWrap(Chrome);var compact_CompactColor=function CompactColor(_ref){var color=_ref.color,_ref$onClick=_ref.onClick,onClick=void 0===_ref$onClick?function(){}:_ref$onClick,onSwatchHover=_ref.onSwatchHover,active=_ref.active,styles=(0,lib.ZP)({default:{color:{background:color,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:getContrastingColor(color),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:active,"color-#FFFFFF":"#FFFFFF"===color,transparent:"transparent"===color});return react.createElement(common_Swatch,{style:styles.color,color:color,onClick:onClick,onHover:onSwatchHover,focusStyle:{boxShadow:"0 0 4px "+color}},react.createElement("div",{style:styles.dot}))},compact_CompactFields=function CompactFields(_ref){var hex=_ref.hex,rgb=_ref.rgb,onChange=_ref.onChange,styles=(0,lib.ZP)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:hex},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),handleChange=function handleChange(data,e){data.r||data.g||data.b?onChange({r:data.r||rgb.r,g:data.g||rgb.g,b:data.b||rgb.b,source:"rgb"},e):onChange({hex:data.hex,source:"hex"},e)};return react.createElement("div",{style:styles.fields,className:"flexbox-fix"},react.createElement("div",{style:styles.active}),react.createElement(common_EditableInput,{style:{wrap:styles.HEXwrap,input:styles.HEXinput,label:styles.HEXlabel},label:"hex",value:hex,onChange:handleChange}),react.createElement(common_EditableInput,{style:{wrap:styles.RGBwrap,input:styles.RGBinput,label:styles.RGBlabel},label:"r",value:rgb.r,onChange:handleChange}),react.createElement(common_EditableInput,{style:{wrap:styles.RGBwrap,input:styles.RGBinput,label:styles.RGBlabel},label:"g",value:rgb.g,onChange:handleChange}),react.createElement(common_EditableInput,{style:{wrap:styles.RGBwrap,input:styles.RGBinput,label:styles.RGBlabel},label:"b",value:rgb.b,onChange:handleChange}))},Compact=function Compact(_ref){var onChange=_ref.onChange,onSwatchHover=_ref.onSwatchHover,colors=_ref.colors,hex=_ref.hex,rgb=_ref.rgb,_ref$styles=_ref.styles,passedStyles=void 0===_ref$styles?{}:_ref$styles,_ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,styles=(0,lib.ZP)(lodash_es_merge({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},passedStyles)),handleChange=function handleChange(data,e){data.hex?isValidHex(data.hex)&&onChange({hex:data.hex,source:"hex"},e):onChange(data,e)};return react.createElement(common_Raised,{style:styles.Compact,styles:passedStyles},react.createElement("div",{style:styles.compact,className:"compact-picker "+className},react.createElement("div",null,lodash_es_map(colors,(function(c){return react.createElement(compact_CompactColor,{key:c,color:c,active:c.toLowerCase()===hex,onClick:handleChange,onSwatchHover:onSwatchHover})})),react.createElement("div",{style:styles.clear})),react.createElement(compact_CompactFields,{hex:hex,rgb:rgb,onChange:handleChange})))};Compact.propTypes={colors:prop_types_default().arrayOf(prop_types_default().string),styles:prop_types_default().object},Compact.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};common_ColorWrap(Compact);var github_GithubSwatch=(0,lib.tz)((function GithubSwatch(_ref){var hover=_ref.hover,color=_ref.color,onClick=_ref.onClick,onSwatchHover=_ref.onSwatchHover,hoverSwatch={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},styles=(0,lib.ZP)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:hoverSwatch}},{hover:hover});return react.createElement("div",{style:styles.swatch},react.createElement(common_Swatch,{color:color,onClick:onClick,onHover:onSwatchHover,focusStyle:hoverSwatch}))})),Github=function Github(_ref){var width=_ref.width,colors=_ref.colors,onChange=_ref.onChange,onSwatchHover=_ref.onSwatchHover,triangle=_ref.triangle,_ref$styles=_ref.styles,passedStyles=void 0===_ref$styles?{}:_ref$styles,_ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,styles=(0,lib.ZP)(lodash_es_merge({default:{card:{width:width,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},passedStyles),{"hide-triangle":"hide"===triangle,"top-left-triangle":"top-left"===triangle,"top-right-triangle":"top-right"===triangle,"bottom-left-triangle":"bottom-left"===triangle,"bottom-right-triangle":"bottom-right"===triangle}),handleChange=function handleChange(hex,e){return onChange({hex:hex,source:"hex"},e)};return react.createElement("div",{style:styles.card,className:"github-picker "+className},react.createElement("div",{style:styles.triangleShadow}),react.createElement("div",{style:styles.triangle}),lodash_es_map(colors,(function(c){return react.createElement(github_GithubSwatch,{color:c,key:c,onClick:handleChange,onSwatchHover:onSwatchHover})})))};Github.propTypes={width:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().number]),colors:prop_types_default().arrayOf(prop_types_default().string),triangle:prop_types_default().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:prop_types_default().object},Github.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};common_ColorWrap(Github);var HuePointer=function SliderPointer(_ref){var direction=_ref.direction,styles=(0,lib.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===direction});return react.createElement("div",{style:styles.picker})},Hue_extends=Object.assign||function(target){for(var i=1;i.5});return react.createElement("div",{style:styles.picker})},PhotoshopPointer=function PhotoshopPointerCircle(){var styles=(0,lib.ZP)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return react.createElement("div",{style:styles.pointer},react.createElement("div",{style:styles.left},react.createElement("div",{style:styles.leftInside})),react.createElement("div",{style:styles.right},react.createElement("div",{style:styles.rightInside})))},photoshop_PhotoshopButton=function PhotoshopButton(_ref){var onClick=_ref.onClick,label=_ref.label,children=_ref.children,active=_ref.active,styles=(0,lib.ZP)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:active});return react.createElement("div",{style:styles.button,onClick:onClick},label||children)},photoshop_PhotoshopPreviews=function PhotoshopPreviews(_ref){var rgb=_ref.rgb,currentColor=_ref.currentColor,styles=(0,lib.ZP)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+rgb.r+","+rgb.g+", "+rgb.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:currentColor,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return react.createElement("div",null,react.createElement("div",{style:styles.label},"new"),react.createElement("div",{style:styles.swatches},react.createElement("div",{style:styles.new}),react.createElement("div",{style:styles.current})),react.createElement("div",{style:styles.label},"current"))},Photoshop_createClass=function(){function defineProperties(target,props){for(var i=0;i100&&(data.a=100),data.a/=100,onChange({h:hsl.h,s:hsl.s,l:hsl.l,a:data.a,source:"rgb"},e))};return react.createElement("div",{style:styles.fields,className:"flexbox-fix"},react.createElement("div",{style:styles.double},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"hex",value:hex.replace("#",""),onChange:handleChange})),react.createElement("div",{style:styles.single},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"r",value:rgb.r,onChange:handleChange,dragLabel:"true",dragMax:"255"})),react.createElement("div",{style:styles.single},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"g",value:rgb.g,onChange:handleChange,dragLabel:"true",dragMax:"255"})),react.createElement("div",{style:styles.single},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"b",value:rgb.b,onChange:handleChange,dragLabel:"true",dragMax:"255"})),react.createElement("div",{style:styles.alpha},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"a",value:Math.round(100*rgb.a),onChange:handleChange,dragLabel:"true",dragMax:"100"})))},SketchPresetColors_extends=Object.assign||function(target){for(var i=1;i1?pixel/(max-1):0)};ctx.globalAlpha=1;for(var pixel=0;pixel0?(0,legendCommonFunction.v_)(orderedSelectedColors):[]}),[orderedSelectedColors]),_d=react.useState(!1),popUpState=_d[0],setPopUpState=_d[1],_e=react.useState(null),anchorEl=_e[0],setAnchorEl=_e[1],openEditModal=react.useCallback((function(data){setPopUpState(data.bubbles),setAnchorEl(null)}),[]);react.useEffect((function(){isModal&&(popUpState?document.removeEventListener("mousedown",handleModalClick):document.addEventListener("mousedown",handleModalClick))}),[handleModalClick,isModal,popUpState]);var scaleBreakpoints=react.useCallback((function(value){value&&(editedData({colorArray:value,customizeFlag:!0}),setBreakPointValues(value),setCustomizedBreakpoints(value))}),[editedData]),appendCustomizedBreakPoints=react.useCallback((function(){editedData({colorArray:customizedBreakpoints||breakpointValues,customizeFlag:!0})}),[breakpointValues,customizedBreakpoints,editedData]),open=Boolean(anchorEl),id=open?"simple-popover":void 0,divRef=(0,react.useRef)(null),theme=(0,styles_useTheme.Z)();return arrayOfColors.length>0&&react.createElement(styles_ThemeProvider_ThemeProvider,{theme:theme},react.createElement(Legend_StyledRootContainer,{ref:divRef},react.createElement(Legend_StyledColorScaleContainer,{onClick:appendCustomizedBreakPoints},react.createElement(Legend_StyledTextureContainer,null,react.createElement(ColorScale,{arrayOfColors:arrayOfColors})),react.createElement(StyledCustomScales,null,customScalesName+" Copy")),react.createElement("div",{className:"breadCrumbs"},react.createElement(IconButton_IconButton,{size:"small",style:{marginTop:"8px"},onClick:function(event){document.removeEventListener("mousedown",handleModalClick),setAnchorEl(event.currentTarget)}},react.createElement(MoreHoriz.Z,{fontSize:"small"}))),react.createElement(Popover.ZP,{id:id,open:open,anchorEl:anchorEl,onClose:function(){setAnchorEl(null)},anchorOrigin:{vertical:"top",horizontal:"right"}},react.createElement("div",{style:{height:"60px",width:"80px"}},react.createElement(StyledEditContainer,{onClick:openEditModal},react.createElement(Edit.Z,{style:{margin:"5px 3px -5px 5px",cursor:"pointer"},fontSize:"small"})," ","Edit"),react.createElement(StyledEditContainer,{onClick:function(){setBreakPointValues([]),editedData({colorArray:colorScaleBreakpoints,customizeFlag:!1})}},react.createElement(DeleteOutlined.Z,{style:{margin:"5px 3px -5px 5px",cursor:"pointer"},fontSize:"small"})," ","Delete"))),!0===popUpState&&react.createElement(CustomizedDialogs,{openModal:openEditModal,scaleBreakpoints:scaleBreakpoints,scaleData:orderedSelectedColors,customScalesName:customScalesName})))},color_tables=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/color-tables.json"),StyledBox=(0,esm_styled.Z)(Box.Z)((function(_a){var theme=_a.theme;return{margin:theme.spacing(3),width:theme.spacing(38),border:"1px solid #dadada","& .MuiButtonBase-root.MuiAccordionSummary-root":{minHeight:30,marginLeft:-15},"& .MuiAccordionSummary-content":{height:0,marginTop:0},"& .expandMoreIcon":{marginRight:8,marginTop:-4},"& .MuiPaper-root.MuiAccordion-root.Mui-expanded.MuiAccordion-rounded.MuiPaper-elevation1.MuiPaper-rounded":{border:"1px solid #dadada"},"& .makeStyles-accordion-1 .MuiAccordionDetails-root":{marginTop:-15},"& .MuiAccordionDetails-root":{display:"block","& .colorScalesDetails":{marginLeft:-27}},"& .MuiAccordion-root.Mui-expanded":{margin:"auto"},"& h5":{marginTop:0,marginLeft:-7,height:0}}})),ColorSelectorAccordion=function(props){var _a,_b,getColorScaleArray,containerRef=react.useRef(null),colorScaleBreakpoints=[],_c=react.useState(""),customScalesName=_c[0],setCustomScalesName=_c[1],_d=react.useState([]),duplicatedData=_d[0],setDuplicatedData=_d[1];customScalesName&&(getColorScaleArray=color_tables.find((function(value){return value.name===customScalesName}))),null==getColorScaleArray||getColorScaleArray.colors.forEach((function(value){colorScaleBreakpoints.push({position:value[0],color:(0,legendCommonFunction.fc)(value).color})}));var breakpointValues=(null===(_a=props.breakPointFlag)||void 0===_a?void 0:_a.length)>0?props.breakPointFlag:colorScaleBreakpoints,editedData=react.useCallback((function(data){props.getEditedBreakPoint({colorArray:data.colorArray,customizeFlag:data.customizeFlag})}),[props]),isCustomScale=react.useCallback((function(data){setCustomScalesName(data)}),[]),getDuplicatedLegendData=react.useCallback((function(data){setDuplicatedData(data)}),[]),_e=react.useState("panel1"),expanded=_e[0],setExpanded=_e[1],handleChange=function(panel){return function(_event_,newExpanded){setExpanded(!!newExpanded&&panel)}};if((null==duplicatedData?void 0:duplicatedData.length)>0)var testComponent=null==duplicatedData?void 0:duplicatedData.map((function(val,index){return react.createElement(LegendComp,{colorScaleBreakpoints:val,editedData:editedData,isModal:props.isModal,handleModalClick:props.handleModalClick,customScalesName:val[0].name,key:index})}));return react.createElement("div",{ref:containerRef,className:"Container",style:{width:"316px",position:"absolute",zIndex:1e3,top:(0,legendCommonFunction.hp)(props.cssLegendStyles,props.isHorizontal,props.legendScaleSize).top,left:(0,legendCommonFunction.hp)(props.cssLegendStyles,props.isHorizontal,props.legendScaleSize).left,right:(0,legendCommonFunction.hp)(props.cssLegendStyles,props.isHorizontal,props.legendScaleSize).right,bottom:(0,legendCommonFunction.hp)(props.cssLegendStyles,props.isHorizontal,props.legendScaleSize).bottom}},!props.isModal&&react.createElement("div",{style:{cursor:"pointer"}},react.createElement(Cancel.Z,{style:{position:"absolute",top:"-10px",right:"-10px",cursor:"pointer",color:"#007079"},onMouseOver:function(e){e.preventDefault(),e.target.style.color="#1099a5"},onMouseOut:function(e){e.target.style.color="#007079"},onClick:props.setIsOpen})),react.createElement(StyledBox,null,react.createElement(Accordion_Accordion,{expanded:"panel1"===expanded,onChange:handleChange("panel1")},react.createElement(AccordionSummary_AccordionSummary,{className:"colorScaleSummary"},react.createElement(ExpandMore.Z,{className:"expandMoreIcon",fontSize:"medium"}),react.createElement("h5",null,"Color Scales")),react.createElement(AccordionDetails_AccordionDetails,{className:"colorScaleDetails"},react.createElement(ColorSelectorWrapper,{useColorTableColors:!0,newColorScaleData:null==props?void 0:props.newColorScaleData,colorTables:null==props?void 0:props.colorTables,currentLegendName:null==props?void 0:props.currentLegendName,isCustomScale:isCustomScale,getDuplicatedLegendData:getDuplicatedLegendData}),((null===(_b=null==breakpointValues?void 0:breakpointValues.colorArray)||void 0===_b?void 0:_b.length)>0||(null==breakpointValues?void 0:breakpointValues.length)>0)&&customScalesName&&react.createElement(react.Fragment,null,react.createElement("h5",null,"Custom scales: "),react.createElement("div",{style:{marginTop:-12,marginBottom:-15}},testComponent,react.createElement("br",null))))),react.createElement(Accordion_Accordion,{expanded:"panel2"===expanded,onChange:handleChange("panel2")},react.createElement(AccordionSummary_AccordionSummary,null,react.createElement(ExpandMore.Z,{className:"expandMoreIcon",fontSize:"medium"}),react.createElement("h5",null,"Color Sampling")),react.createElement(AccordionDetails_AccordionDetails,null,react.createElement("h5",null,"Range :"),react.createElement(ColorSelectorWrapper,{useRange:!0,getRange:null==props?void 0:props.getRange,isCont:null==props?void 0:props.isCont,selectedRangeType:null==props?void 0:props.selectedRangeType}),react.createElement("h5",{style:{marginTop:10}},"Interpolations :"),react.createElement(ColorSelectorWrapper,{useInterpolation:!0,isCont:null==props?void 0:props.isCont,getInterpolation:null==props?void 0:props.getInterpolation,selectedInterpolationType:null==props?void 0:props.selectedInterpolationType})))))},constants=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/Legend/constants.js"),DiscreteLegend_assign=function(){return DiscreteLegend_assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]0){var matchedColorsArrays=arrayOfColors_1.find((function(value){return value[0]===code}));matchedColorsArrays&&itemColor.push({color:(0,legendCommonFunction.fc)(matchedColorsArrays).color,name:key}),itemName.push(key)}else{(matchedColorsArrays=d3ColorArrays_1.find((function(_value,index){return index===code})))&&itemColor.push({color:matchedColorsArrays})}}))),(null==getColorScaleData?void 0:getColorScaleData.color)&&(getColorScaleData.color.forEach((function(key){itemColor.push({color:(0,legendCommonFunction.fc)(key).color})})),useSelectorLegend=!0),(null==getColorScaleData?void 0:getColorScaleData.colorsObject)&&(getColorScaleData.colorsObject.forEach((function(key){itemColor.push({color:key})})),itemName=getColorScaleData.legendColorName,useSelectorLegend=!0),colorLegend=discreteLegendUtil(itemColor,useSelectorLegend,horizontal),totalRect=void 0,totalRect=useSelectorLegend?(null==getColorScaleData?void 0:getColorScaleData.color)?getColorScaleData.color.length:getColorScaleData.colorsObject.length:itemColor.length,(currentDiv=(0,src.Ys)(divRef.current)).append("div").text(dataObjectName).style("color","grey").style("white-space","nowrap").style("overflow","hidden").style("width","150px").style("text-overflow","ellipsis").style("margin-bottom",horizontal?"5px":"0px").style("font-size",legendFontSize&&legendFontSize>0?"".concat(legendFontSize,"px"):"16px").style("transform",horizontal?"none":"translate(-69px, 80px) rotate(270deg)"),currentDiv.style("margin",horizontal?"5px 0px 0px 15px":"0px 5px 0px 5px").style("width",legendWidth).append("svg").call(colorLegend).attr("viewBox",horizontal?"0 0 ".concat(totalRect," 1.5"):"0 0 2 ".concat(totalRect)).attr("preserveAspectRatio","none").style("font-size",".4").style("margin-left",horizontal?"0":"20px").attr("height",legendHeight).attr("width",horizontal?legendScaleSize<200?190:legendScaleSize-10:"40px"),[3,6];case 5:return error_1=_a.sent(),console.error(error_1),[3,6];case 6:return[2]}}))}))}())}),[discreteData,colorName,colorTables,horizontal,getColorScaleData,dataObjectName,legendFontSize,tickFontSize,numberOfTicks,legendScaleSize,legendWidth,legendHeight]),react.createElement("div",{style:DiscreteLegend_assign({position:"absolute",minHeight:"70px",borderRadius:"5px",zIndex:999,margin:"10px"},cssLegendStyles)},react.createElement("div",{id:id||"disc-legend - ".concat(generateUniqueId),ref:divRef}))},ContinuousLegend_assign=function(){return ContinuousLegend_assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]0&&(getColorScaleData.color?legendColors=getColorScaleData.color:getColorScaleData.arrayData&&(legendColors=getColorScaleData.arrayData)),isD3Colors=d3ColorScale.h.find((function(value){return(null==value?void 0:value.name)===colorName})),isD3Colors&&!1===isD3Colors.discrete&&(arrayData_1=[],d3ColorArrays_1=(0,legendCommonFunction.zl)(colorName,d3ColorScale.h),(0,src.w6H)(10).map((function(d){return{color:d3ColorArrays_1(d/10)}})).forEach((function(colorsObject,index){var _a,_b,_c;arrayData_1.push(["0."+index,null===(_a=(0,color.ZP)(colorsObject.color))||void 0===_a?void 0:_a.rgb().r,null===(_b=(0,color.ZP)(colorsObject.color))||void 0===_b?void 0:_b.rgb().g,null===(_c=(0,color.ZP)(colorsObject.color))||void 0===_c?void 0:_c.rgb().b])})),legendColors=arrayData_1),getColorTableScale_1=null===(_a="string"==typeof colorTables?parsedColorTables:colorTables)||void 0===_a?void 0:_a.find((function(value){return getColorScaleData?value.name===(null==getColorScaleData?void 0:getColorScaleData.name):value.name===colorName})),maxValue_1=legendColors.length-1,isNearest&&(nColors=legendColors.length,leftEnd_1=0,rightEnd_1=0+(delta_1=1/nColors),legendColors.forEach((function(val){nearestData_1.push({breakPoint:Number(leftEnd_1.toFixed(2)),color:(0,legendCommonFunction.fc)([val[0],val[1],val[2],val[3]]).color},{breakPoint:Number(rightEnd_1.toFixed(2)),color:(0,legendCommonFunction.fc)([val[0],val[1],val[2],val[3]]).color}),leftEnd_1+=delta_1,rightEnd_1+=delta_1}))),colorMapFunction){for(rgbValue=[],i=0;i<=1;i+=.05)value=colorMapFunction(i),rgbValue.push([i.toFixed(2),value[0],value[1],value[2]]);legendColors=rgbValue}return arrOfNum=null==breakPoint?void 0:breakPoint.map((function(str){return Number(str)})),userDefinedDomain_1=arrOfNum||[],legendColors.forEach((function(value,index){var domainIndex;domainIndex=userDefinedDomain_1[index]?userDefinedDomain_1[index]:value[0],itemColor.push({breakPoint:!0===(null==getColorTableScale_1?void 0:getColorTableScale_1.discrete)?(0,legendCommonFunction.fc)(value,maxValue_1).offset:(null==breakPoint?void 0:breakPoint.length)>0?100*domainIndex:100*value[0],color:(0,legendCommonFunction.fc)(value).color})})),0===legendColors.length?[2,[0,0,0]]:((null===(_b=null==editedBreakPointValues?void 0:editedBreakPointValues.colorArray)||void 0===_b?void 0:_b.length)>0&&!0===(null==editedBreakPointValues?void 0:editedBreakPointValues.customizeFlag)&&(options=editedBreakPointValues.colorArray.map((function(row){return{breakPoint:100*row.position,color:row.color}})),itemColor=options),itemColor.sort((function(a,b){return a.breakPoint-b.breakPoint})),svgLegend=(0,src.Ys)(divRef.current).style("margin-right","2px").style("margin-left","2px").append("svg").style("cursor",getColorScaleData?"pointer":"auto").style("border-radius","5px"),defs=svgLegend.append("defs"),svgLegend.attr("width",horizontal?legendScaleSize<200?200:legendScaleSize:"100").attr("height",horizontal?"70":legendScaleSize<200?200:legendScaleSize-17),currentIndex="linear-gradient-"+id+"0",linearGradient=defs.append("linearGradient").attr("id",currentIndex),horizontal&&!reverseRange||!horizontal&&reverseRange?linearGradient.attr("x1","0%").attr("x2",horizontal?"100%":"0%").attr("y1","0%").attr("y2",horizontal?"0%":"100%"):(!horizontal&&!reverseRange||horizontal&&reverseRange)&&linearGradient.attr("x1",horizontal?"100%":"0%").attr("x2","0%").attr("y1",horizontal?"0%":"100%").attr("y2","0%"),colorScale_1=(0,src.BYU)().domain([0,1]).range([0,400]),linearGradient.selectAll("stop").data(nearestData_1.length>0?nearestData_1:itemColor).enter().append("stop").attr("offset",(function(data){return nearestData_1.length>0?colorScale_1(data.breakPoint)/4+"%":data.breakPoint+"%"})).attr("stop-color",(function(data){return data.color})),svgLegend.append("rect").attr("x",25).attr("y",horizontal?30:18).attr("width",horizontal?legendScaleSize<200?159:legendScaleSize-40:20).attr("height",horizontal?20:legendScaleSize<200?159:legendScaleSize-40).style("fill","url(#"+currentIndex+")"),svgLegend.append("text").attr("x",horizontal?25:-168).attr("y",horizontal?20:15).style("text-anchor","left").style("transform",horizontal?"none":"left").style("transform",horizontal?"none":"rotate(270deg)").style("fill","grey").style("font-size",legendFontSize&&legendFontSize>0?"".concat(legendFontSize,"px"):"16px").text(dataObjectName),xLeg=(isLog?(0,src.eh9)():(0,src.BYU)()).domain(reverseRange?[max,min]:[min,max]).range([10,legendScaleSize<200?168:legendScaleSize-32]),yLeg=(isLog?(0,src.eh9)():(0,src.BYU)()).domain(reverseRange?[min,max]:[max,min]).range([10,legendScaleSize<200?168:legendScaleSize-32]),horizontalAxisLeg=(0,src.LLu)(xLeg).tickValues(xLeg.ticks(0).concat(xLeg.domain(),(0,legendCommonFunction.Tm)(xLeg.domain(),numberOfTicks))),VerticalAxisLeg=(0,src.Khx)(yLeg).tickValues(yLeg.ticks(0).concat(yLeg.domain(),(0,legendCommonFunction.Tm)(xLeg.domain(),numberOfTicks))),isRangeShown&&svgLegend.attr("class","axis").append("g").attr("transform",horizontal?"translate(16, 50)":"translate(45, 7.5)").style("font-size",tickFontSize&&tickFontSize>0?"".concat(tickFontSize,"px"):"12px").style("font-weight","700").call(horizontal?horizontalAxisLeg:VerticalAxisLeg).style("height",15),[3,6]);case 5:return error_1=_c.sent(),console.error(error_1),[3,6];case 6:return[2]}}))}))}())}),[min,max,colorName,colorTables,horizontal,getColorScaleData,colorMapFunction,dataObjectName,id,reverseRange,isLog,isNearest,isRangeShown,legendFontSize,tickFontSize,numberOfTicks,legendScaleSize]),react.createElement("div",{style:ContinuousLegend_assign({position:"absolute",minHeight:"70px",zIndex:999,margin:"10px"},cssLegendStyles)},react.createElement("div",{id:id||"cont-legend - ".concat(generateUniqueId),ref:divRef}))},ColorLegend=function(_a){var _b,interpolationType,horizontal=_a.horizontal,_c=_a.colorTables,colorTables=void 0===_c?color_tables:_c,_d=_a.min,min=void 0===_d?0:_d,_e=_a.max,max=void 0===_e?1:_e,dataObjectName=_a.dataObjectName,_f=_a.colorName,colorName=void 0===_f?"Rainbow":_f,discreteData=_a.discreteData,colorNameFromSelector=_a.colorNameFromSelector,reverseRange=_a.reverseRange,getColorRange=_a.getColorRange,getBreakpointValue=_a.getBreakpointValue,getScale=_a.getScale,getInterpolateMethod=_a.getInterpolateMethod,isModal=_a.isModal,_g=_a.isRangeShown,isRangeShown=void 0===_g||_g,_h=_a.legendFontSize,legendFontSize=void 0===_h?18:_h,_j=_a.tickFontSize,tickFontSize=void 0===_j?12:_j,_k=_a.numberOfTicks,numberOfTicks=void 0===_k?1:_k,_l=_a.legendScaleSize,legendScaleSize=void 0===_l?200:_l,_m=_a.cssLegendStyles,cssLegendStyles=void 0===_m?constants.P:_m,_o=_a.isOpenProp,isOpenProp=void 0!==_o&&_o,_p=_a.openColorSelector,openColorSelector=void 0===_p||_p,generateUniqueId=Math.ceil(9999*Math.random()).toString(),divRef=(0,react.useRef)(null),colorSelectorRef=(0,react.useRef)(null),_q=react.useState(isOpenProp),isOpen=_q[0],setIsOpen=_q[1],_r=react.useState(!0),isAuto=_r[0],setAuto=_r[1],_s=react.useState(),newMin=_s[0],setNewMin=_s[1],_t=react.useState(),newMax=_t[0],setNewMax=_t[1],_u=react.useState(!1),isLog=_u[0],setLog=_u[1],_v=react.useState([]),getItemColor=_v[0],setItemColor=_v[1],_w=react.useState(!1),isNearest=_w[0],setIsNearest=_w[1];interpolationType=isNearest?{isNearest:!0}:isLog?{isLog:!0}:{isLinear:!0};var getRange=react.useCallback((function(data){"Auto"===data?(setAuto(!0),getColorRange&&getColorRange({isAuto:!0})):(setAuto(!1),(null==data?void 0:data[0])&&(null==data?void 0:data[1])&&"string"!=typeof data&&(setNewMin(data[0]),setNewMax(data[1]),getColorRange&&getColorRange({range:[data[0],data[1]],isAuto:!1})))}),[getColorRange]),getInterpolation=react.useCallback((function(data){"Logarithmic"===data?(setLog(!0),setIsNearest(!1),getInterpolateMethod&&getInterpolateMethod({isLog:!0,isNearest:!1})):"Nearest"===data?(setIsNearest(!0),setLog(!1),getInterpolateMethod&&getInterpolateMethod({isNearest:!0,isLog:!1})):(setLog(!1),setIsNearest(!1),getInterpolateMethod&&getInterpolateMethod({isLog:!1,isNearest:!1}))}),[getInterpolateMethod]),breakpointValues=react.useCallback((function(data){data&&(setItemColor(data),getBreakpointValue&&getBreakpointValue(data))}),[getBreakpointValue]),toggleColorSelector=(0,react.useCallback)((function(){divRef&&divRef.current&&setIsOpen(!isOpen)}),[isOpen]),_x=react.useState([]),getColorScaleData=_x[0],setGetColorScaleData=_x[1],isColortableColors=null==colorTables?void 0:colorTables.find((function(value){return(null==value?void 0:value.name)===colorName||colorNameFromSelector})),isD3Colors=d3ColorScale.h.find((function(value){return(null==value?void 0:value.name)===colorName||colorNameFromSelector})),_y=react.useState(!(!isColortableColors&&!isD3Colors||!1!==(null==isColortableColors?void 0:isColortableColors.discrete)&&!1!==(null==isD3Colors?void 0:isD3Colors.discrete))),isCont=_y[0],setIsCont=_y[1],getSelectedColorScale=react.useCallback((function(data,value){data.name&&colorNameFromSelector?colorNameFromSelector(data.name):colorNameFromSelector&&colorNameFromSelector(data.legendColorName),getScale&&getScale(data),setGetColorScaleData(data),setIsCont(value),setItemColor([]),getBreakpointValue&&getBreakpointValue({breakpoint:[]})}),[colorNameFromSelector,getBreakpointValue,getScale]),handleModalClick=react.useCallback((function(e){var _a;!(null===(_a=colorSelectorRef.current)||void 0===_a?void 0:_a.contains(e.target))&&isOpen&&setIsOpen(!1)}),[isOpen]);react.useEffect((function(){return isOpen&&isModal?document.addEventListener("mousedown",handleModalClick):document.removeEventListener("mousedown",handleModalClick),function(){return document.removeEventListener("mousedown",handleModalClick)}}),[isOpen,isModal,handleModalClick]);var _z=react.useState(dataObjectName),legendName=_z[0],setLegendName=_z[1];react.useEffect((function(){setLegendName(dataObjectName)}),[dataObjectName]);var _0=react.useState(legendFontSize),legendFontSizeState=_0[0],setLegendFontSize=_0[1];react.useEffect((function(){setLegendFontSize(legendFontSize)}),[legendFontSize]);var _1=react.useState(tickFontSize),tickFontSizeState=_1[0],setTickFontSize=_1[1];react.useEffect((function(){setTickFontSize(tickFontSize)}),[tickFontSize]);var _2=react.useState(numberOfTicks),numberOfTicksState=_2[0],setNumberOfTicks=_2[1];react.useEffect((function(){setNumberOfTicks(numberOfTicks)}),[numberOfTicks]);var _3=react.useState(legendScaleSize),legendScaleSizeState=_3[0],setLegendScaleSize=_3[1];react.useEffect((function(){setLegendScaleSize(legendScaleSize)}),[legendScaleSize]);var theme=(0,styles_useTheme.Z)();return react.createElement(styles_ThemeProvider_ThemeProvider,{theme:theme},react.createElement("div",null,react.createElement("div",{ref:divRef,onClick:toggleColorSelector,style:{display:"inline-block",cursor:"pointer"},title:"Click here to edit"},!0===isCont&&react.createElement(ContinuousLegend,{min:newMin&&!isAuto?newMin:min,max:newMax&&!isAuto?newMax:max,dataObjectName:legendName,colorName:colorName,horizontal:horizontal,getColorScaleData:getColorScaleData,id:generateUniqueId,colorTables:colorTables,reverseRange:reverseRange,editedBreakPointValues:getItemColor,isLog:isLog,isNearest:isNearest,isRangeShown:isRangeShown,legendFontSize:legendFontSizeState,tickFontSize:tickFontSizeState,numberOfTicks:numberOfTicksState,legendScaleSize:legendScaleSizeState,cssLegendStyles:cssLegendStyles}),!1===isCont&&react.createElement(DiscreteColorLegend,{discreteData:discreteData,dataObjectName:legendName,colorName:colorName,horizontal:horizontal,getColorScaleData:getColorScaleData,id:generateUniqueId,colorTables:colorTables,legendFontSize:legendFontSizeState,tickFontSize:tickFontSizeState,numberOfTicks:numberOfTicksState,legendScaleSize:legendScaleSizeState,cssLegendStyles:cssLegendStyles})),react.createElement("div",null,isOpen&&openColorSelector&&react.createElement("div",{style:{display:"inline-block"},ref:colorSelectorRef},react.createElement(ColorSelectorAccordion,{setIsOpen:function(){return setIsOpen(!1)},isModal:isModal,dataObjectName:legendName,isHorizontal:horizontal,colorTables:colorTables,getRange:getRange,isCont:isCont,getEditedBreakPoint:breakpointValues,newColorScaleData:getSelectedColorScale,handleModalClick:handleModalClick,currentLegendName:(null===(_b=null==getColorScaleData?void 0:getColorScaleData.color)||void 0===_b?void 0:_b.length)>0?getColorScaleData.name:colorName,getInterpolation:getInterpolation,legendScaleSize:legendScaleSizeState,cssLegendStyles:cssLegendStyles,selectedInterpolationType:interpolationType,selectedRangeType:isAuto?{isAuto:!0}:{isAuto:!1}})))))}},"./node_modules/@icons/material/CheckIcon.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _extends=Object.assign||function(target){for(var i=1;i=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}(_ref,["fill","width","height","style"]);return _react2.default.createElement("svg",_extends({viewBox:"0 0 24 24",style:_extends({fill:fill,width:width,height:height},style)},props),_react2.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},"./node_modules/@icons/material/UnfoldMoreHorizontalIcon.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _extends=Object.assign||function(target){for(var i=1;i=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}(_ref,["fill","width","height","style"]);return _react2.default.createElement("svg",_extends({viewBox:"0 0 24 24",style:_extends({fill:fill,width:width,height:height},style)},props),_react2.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},"./node_modules/@mui/base/utils/appendOwnerState.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return appendOwnerState}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_isHostComponent__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/base/utils/isHostComponent.js");function appendOwnerState(elementType,otherProps,ownerState){return void 0===elementType||(0,_isHostComponent__WEBPACK_IMPORTED_MODULE_0__.X)(elementType)?otherProps:(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__.Z)({},otherProps,{ownerState:(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__.Z)({},otherProps.ownerState,ownerState)})}},"./node_modules/@mui/base/utils/extractEventHandlers.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function extractEventHandlers(object,excludeKeys=[]){if(void 0===object)return{};const result={};return Object.keys(object).filter((prop=>prop.match(/^on[A-Z]/)&&"function"==typeof object[prop]&&!excludeKeys.includes(prop))).forEach((prop=>{result[prop]=object[prop]})),result}__webpack_require__.d(__webpack_exports__,{_:function(){return extractEventHandlers}})},"./node_modules/@mui/base/utils/isHostComponent.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function isHostComponent(element){return"string"==typeof element}__webpack_require__.d(__webpack_exports__,{X:function(){return isHostComponent}})},"./node_modules/@mui/base/utils/mergeSlotProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return mergeSlotProps}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),extractEventHandlers=__webpack_require__("./node_modules/@mui/base/utils/extractEventHandlers.js");function omitEventHandlers(object){if(void 0===object)return{};const result={};return Object.keys(object).filter((prop=>!(prop.match(/^on[A-Z]/)&&"function"==typeof object[prop]))).forEach((prop=>{result[prop]=object[prop]})),result}function mergeSlotProps(parameters){const{getSlotProps:getSlotProps,additionalProps:additionalProps,externalSlotProps:externalSlotProps,externalForwardedProps:externalForwardedProps,className:className}=parameters;if(!getSlotProps){const joinedClasses=(0,clsx.Z)(null==additionalProps?void 0:additionalProps.className,className,null==externalForwardedProps?void 0:externalForwardedProps.className,null==externalSlotProps?void 0:externalSlotProps.className),mergedStyle=(0,esm_extends.Z)({},null==additionalProps?void 0:additionalProps.style,null==externalForwardedProps?void 0:externalForwardedProps.style,null==externalSlotProps?void 0:externalSlotProps.style),props=(0,esm_extends.Z)({},additionalProps,externalForwardedProps,externalSlotProps);return joinedClasses.length>0&&(props.className=joinedClasses),Object.keys(mergedStyle).length>0&&(props.style=mergedStyle),{props:props,internalRef:void 0}}const eventHandlers=(0,extractEventHandlers._)((0,esm_extends.Z)({},externalForwardedProps,externalSlotProps)),componentsPropsWithoutEventHandlers=omitEventHandlers(externalSlotProps),otherPropsWithoutEventHandlers=omitEventHandlers(externalForwardedProps),internalSlotProps=getSlotProps(eventHandlers),joinedClasses=(0,clsx.Z)(null==internalSlotProps?void 0:internalSlotProps.className,null==additionalProps?void 0:additionalProps.className,className,null==externalForwardedProps?void 0:externalForwardedProps.className,null==externalSlotProps?void 0:externalSlotProps.className),mergedStyle=(0,esm_extends.Z)({},null==internalSlotProps?void 0:internalSlotProps.style,null==additionalProps?void 0:additionalProps.style,null==externalForwardedProps?void 0:externalForwardedProps.style,null==externalSlotProps?void 0:externalSlotProps.style),props=(0,esm_extends.Z)({},internalSlotProps,additionalProps,otherPropsWithoutEventHandlers,componentsPropsWithoutEventHandlers);return joinedClasses.length>0&&(props.className=joinedClasses),Object.keys(mergedStyle).length>0&&(props.style=mergedStyle),{props:props,internalRef:internalSlotProps.ref}}},"./node_modules/@mui/base/utils/resolveComponentProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function resolveComponentProps(componentProps,ownerState,slotState){return"function"==typeof componentProps?componentProps(ownerState,slotState):componentProps}__webpack_require__.d(__webpack_exports__,{x:function(){return resolveComponentProps}})},"./node_modules/@mui/base/utils/useSlotProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{y:function(){return useSlotProps}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_mui_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@mui/utils/useForkRef/useForkRef.js"),_appendOwnerState__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@mui/base/utils/appendOwnerState.js"),_mergeSlotProps__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/base/utils/mergeSlotProps.js"),_resolveComponentProps__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/base/utils/resolveComponentProps.js");const _excluded=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function useSlotProps(parameters){var _parameters$additiona;const{elementType:elementType,externalSlotProps:externalSlotProps,ownerState:ownerState,skipResolvingSlotProps:skipResolvingSlotProps=!1}=parameters,rest=(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__.Z)(parameters,_excluded),resolvedComponentsProps=skipResolvingSlotProps?{}:(0,_resolveComponentProps__WEBPACK_IMPORTED_MODULE_1__.x)(externalSlotProps,ownerState),{props:mergedProps,internalRef:internalRef}=(0,_mergeSlotProps__WEBPACK_IMPORTED_MODULE_2__.L)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},rest,{externalSlotProps:resolvedComponentsProps})),ref=(0,_mui_utils__WEBPACK_IMPORTED_MODULE_4__.Z)(internalRef,null==resolvedComponentsProps?void 0:resolvedComponentsProps.ref,null==(_parameters$additiona=parameters.additionalProps)?void 0:_parameters$additiona.ref);return(0,_appendOwnerState__WEBPACK_IMPORTED_MODULE_5__.$)(elementType,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},mergedProps,{ref:ref}),ownerState)}},"./node_modules/@mui/icons-material/AddCircleOutlineSharp.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutlineSharp");exports.Z=_default},"./node_modules/@mui/icons-material/Cancel.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");exports.Z=_default},"./node_modules/@mui/icons-material/Colorize.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"m20.71 5.63-2.34-2.34a.9959.9959 0 0 0-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42zM6.92 19 5 17.08l8.06-8.06 1.92 1.92L6.92 19z"}),"Colorize");exports.Z=_default},"./node_modules/@mui/icons-material/ContentCopy.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");exports.Z=_default},"./node_modules/@mui/icons-material/DeleteOutlined.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"}),"DeleteOutlined");exports.Z=_default},"./node_modules/@mui/icons-material/Edit.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");exports.Z=_default},"./node_modules/@mui/icons-material/ExpandMore.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");exports.Z=_default},"./node_modules/@mui/icons-material/MoreHoriz.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");exports.Z=_default},"./node_modules/@mui/icons-material/RemoveCircleOutlineSharp.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"RemoveCircleOutlineSharp");exports.Z=_default},"./node_modules/@mui/icons-material/utils/createSvgIcon.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _utils.createSvgIcon}});var _utils=__webpack_require__("./node_modules/@mui/material/utils/index.js")},"./node_modules/@mui/material/Backdrop/Backdrop.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Backdrop_Backdrop}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),Fade=__webpack_require__("./node_modules/@mui/material/Fade/Fade.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getBackdropUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiBackdrop",slot)}(0,generateUtilityClasses.Z)("MuiBackdrop",["root","invisible"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],BackdropRoot=(0,styled.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,ownerState.invisible&&styles.invisible]}})((({ownerState:ownerState})=>(0,esm_extends.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},ownerState.invisible&&{backgroundColor:"transparent"})));var Backdrop_Backdrop=react.forwardRef((function Backdrop(inProps,ref){var _slotProps$root,_ref,_slots$root;const props=(0,useThemeProps.Z)({props:inProps,name:"MuiBackdrop"}),{children:children,className:className,component:component="div",components:components={},componentsProps:componentsProps={},invisible:invisible=!1,open:open,slotProps:slotProps={},slots:slots={},TransitionComponent:TransitionComponent=Fade.Z,transitionDuration:transitionDuration}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),ownerState=(0,esm_extends.Z)({},props,{component:component,invisible:invisible}),classes=(ownerState=>{const{classes:classes,invisible:invisible}=ownerState,slots={root:["root",invisible&&"invisible"]};return(0,composeClasses.Z)(slots,getBackdropUtilityClass,classes)})(ownerState),rootSlotProps=null!=(_slotProps$root=slotProps.root)?_slotProps$root:componentsProps.root;return(0,jsx_runtime.jsx)(TransitionComponent,(0,esm_extends.Z)({in:open,timeout:transitionDuration},other,{children:(0,jsx_runtime.jsx)(BackdropRoot,(0,esm_extends.Z)({"aria-hidden":!0},rootSlotProps,{as:null!=(_ref=null!=(_slots$root=slots.root)?_slots$root:components.Root)?_ref:component,className:(0,clsx.Z)(classes.root,className,null==rootSlotProps?void 0:rootSlotProps.className),ownerState:(0,esm_extends.Z)({},ownerState,null==rootSlotProps?void 0:rootSlotProps.ownerState),classes:classes,ref:ref,children:children}))}))}))},"./node_modules/@mui/material/Box/Box.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Box_Box}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),styled_engine=__webpack_require__("./node_modules/@mui/styled-engine/index.js"),styleFunctionSx=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js"),extendSxProp=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js"),useTheme=__webpack_require__("./node_modules/@mui/system/esm/useTheme.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["className","component"];var ClassNameGenerator=__webpack_require__("./node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js"),createTheme=__webpack_require__("./node_modules/@mui/material/styles/createTheme.js"),identifier=__webpack_require__("./node_modules/@mui/material/styles/identifier.js");var Box_boxClasses=(0,__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js").Z)("MuiBox",["root"]);const defaultTheme=(0,createTheme.Z)(),Box=function createBox(options={}){const{themeId:themeId,defaultTheme:defaultTheme,defaultClassName:defaultClassName="MuiBox-root",generateClassName:generateClassName}=options,BoxRoot=(0,styled_engine.default)("div",{shouldForwardProp:prop=>"theme"!==prop&&"sx"!==prop&&"as"!==prop})(styleFunctionSx.Z);return react.forwardRef((function Box(inProps,ref){const theme=(0,useTheme.Z)(defaultTheme),_extendSxProp=(0,extendSxProp.Z)(inProps),{className:className,component:component="div"}=_extendSxProp,other=(0,objectWithoutPropertiesLoose.Z)(_extendSxProp,_excluded);return(0,jsx_runtime.jsx)(BoxRoot,(0,esm_extends.Z)({as:component,ref:ref,className:(0,clsx.Z)(className,generateClassName?generateClassName(defaultClassName):defaultClassName),theme:themeId&&theme[themeId]||theme},other))}))}({themeId:identifier.Z,defaultTheme:defaultTheme,defaultClassName:Box_boxClasses.root,generateClassName:ClassNameGenerator.Z.generate});var Box_Box=Box},"./node_modules/@mui/material/ButtonBase/ButtonBase.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ButtonBase_ButtonBase}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),useForkRef=__webpack_require__("./node_modules/@mui/material/utils/useForkRef.js"),useEventCallback=__webpack_require__("./node_modules/@mui/material/utils/useEventCallback.js"),useIsFocusVisible=__webpack_require__("./node_modules/@mui/material/utils/useIsFocusVisible.js"),assertThisInitialized=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),inheritsLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),TransitionGroupContext=__webpack_require__("./node_modules/react-transition-group/esm/TransitionGroupContext.js");function getChildMapping(children,mapFn){var result=Object.create(null);return children&&react.Children.map(children,(function(c){return c})).forEach((function(child){result[child.key]=function mapper(child){return mapFn&&(0,react.isValidElement)(child)?mapFn(child):child}(child)})),result}function getProp(child,prop,props){return null!=props[prop]?props[prop]:child.props[prop]}function getNextChildMapping(nextProps,prevChildMapping,onExited){var nextChildMapping=getChildMapping(nextProps.children),children=function mergeChildMappings(prev,next){function getValueForKey(key){return key in next?next[key]:prev[key]}prev=prev||{},next=next||{};var i,nextKeysPending=Object.create(null),pendingKeys=[];for(var prevKey in prev)prevKey in next?pendingKeys.length&&(nextKeysPending[prevKey]=pendingKeys,pendingKeys=[]):pendingKeys.push(prevKey);var childMapping={};for(var nextKey in next){if(nextKeysPending[nextKey])for(i=0;i{if(!inProp&&null!=onExited){const timeoutId=setTimeout(onExited,timeout);return()=>{clearTimeout(timeoutId)}}}),[onExited,inProp,timeout]),(0,jsx_runtime.jsx)("span",{className:rippleClassName,style:rippleStyles,children:(0,jsx_runtime.jsx)("span",{className:childClassName})})},generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js");var ButtonBase_touchRippleClasses=(0,generateUtilityClasses.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const _excluded=["center","classes","className"];let _t,_t2,_t3,_t4,_=t=>t;const enterKeyframe=(0,emotion_react_browser_esm.F4)(_t||(_t=_` +/*! For license information please see 6086.9cc5e4f5.iframe.bundle.js.LICENSE.txt */ +(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[6086],{"./node_modules/@emerson-eps/color-tables/dist/component/Legend/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return DEFAULT_STYLE}});var DEFAULT_STYLE={left:"0vw",top:"0vh",backgroundColor:"#A0A0A0aa",borderRadius:"5px"}},"./node_modules/@emerson-eps/color-tables/dist/component/Utils/d3ColorScale.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{h:function(){return d3ColorScales}});var d3__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/d3/src/index.js"),d3ColorScales=[{name:"Spectral",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.T0$},{name:"RdYlBu",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.zJm},{name:"Warm",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.AO_},{name:"Cool",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.vcY},{name:"Viridis",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.Vaf},{name:"Inferno",discrete:!1,colors:d3__WEBPACK_IMPORTED_MODULE_0__.sN9},{name:"Dark2",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.XgA},{name:"Paired",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.xHP},{name:"Pastel1",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.rp},{name:"Pastel2",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.i4X},{name:"Set1",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.yKE},{name:"Set2",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.UCG},{name:"Set3",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.UCG},{name:"Tableau10",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.K2I},{name:"Category10",discrete:!0,colors:d3__WEBPACK_IMPORTED_MODULE_0__.Cn1}]},"./node_modules/@emerson-eps/color-tables/dist/component/Utils/legendCommonFunction.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{CA:function(){return rgbValues},EC:function(){return getColors},Tm:function(){return getTickValues},cF:function(){return getRgbData},fc:function(){return RGBToHex},hp:function(){return getColorSelectorPosition},rX:function(){return createColorMapFunction},v_:function(){return getColorArrayFromBreakPoints},z$:function(){return createDefaultContinuousColorScale},zl:function(){return colorsArray}});var d3_color__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/d3-color/src/color.js"),d3_interpolate__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/d3-interpolate/src/rgb.js"),d3__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/d3/src/index.js"),lodash__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/lodash/lodash.js"),_d3ColorScale__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/Utils/d3ColorScale.js"),_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/color-tables.json");function getColor(rgb){if(void 0!==rgb)return[rgb.r,rgb.g,rgb.b]}function colorsArray(colorName,iscolorTablesDefined){var colorTableData=(iscolorTablesDefined||_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__).filter((function(value){return value.name.toLowerCase()===colorName.toLowerCase()}));return colorTableData.length>0?colorTableData[0].colors:[]}function RGBToHex(rgb,max){var r=Math.round(rgb[1]).toString(16),g=Math.round(rgb[2]).toString(16),b=Math.round(rgb[3]).toString(16);return 1===r.length&&(r="0"+r),1===g.length&&(g="0"+g),1===b.length&&(b="0"+b),{color:"#"+r+g+b,offset:max?(rgb[0]-0)/(max-0)*100:100*rgb[0]}}function HextoRGB(hex){var m=hex.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);return{r:parseInt(m[1],16),g:parseInt(m[2],16),b:parseInt(m[3],16)}}function getRgbData(point,colorName,iscolorTablesDefined,isLog,isNearest,userBreakPoint){var _a,_b,rgb,getColorTables=iscolorTablesDefined||_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__,getColorTableScale=getColorTables.find((function(value){return value.name===colorName})),getD3Scale=_d3ColorScale__WEBPACK_IMPORTED_MODULE_2__.h.find((function(value){return value.name===colorName}));if(isLog){var log=(0,d3__WEBPACK_IMPORTED_MODULE_0__.eh9)().domain([0,1]);point=log(point)}if(!0===(null==getColorTableScale?void 0:getColorTableScale.discrete)){var getSelectedScaleLength=null==getColorTableScale?void 0:getColorTableScale.colors.length,maxValue_1=getSelectedScaleLength-1;return null==getColorTableScale||getColorTableScale.colors.forEach((function(item,index){var _a,_b,_c,nextIndex=index+1;if(point>=(index-0)/(maxValue_1-0)&&point<=(nextIndex-0)/(maxValue_1-0)&&void 0!==(item&&(null==getColorTableScale?void 0:getColorTableScale.colors[nextIndex]))){var interpolate=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(null===(_a=RGBToHex(item))||void 0===_a?void 0:_a.color,null===(_b=RGBToHex(null==getColorTableScale?void 0:getColorTableScale.colors[nextIndex]))||void 0===_b?void 0:_b.color)(point);rgb=null===(_c=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolate))||void 0===_c?void 0:_c.rgb()}})),rgb}if("function"==typeof(null==getD3Scale?void 0:getD3Scale.colors)){var colorMappingRange=null==getD3Scale?void 0:getD3Scale.colors(point);return rgb=getColor(null===(_a=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(colorMappingRange))||void 0===_a?void 0:_a.rgb())}if("object"==typeof(null==getD3Scale?void 0:getD3Scale.colors)){var max_1=(null==getD3Scale?void 0:getD3Scale.colors.length)-1;return null==getD3Scale||getD3Scale.colors.forEach((function(item,index){var _a,nextIndex=index+1,indexableD3Scale=getD3Scale;if(point>=(index-0)/(max_1-0)&&point<=(nextIndex-0)/(max_1-0)){var interpolate=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(item,indexableD3Scale[nextIndex])(point);rgb=getColor(null===(_a=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolate))||void 0===_a?void 0:_a.rgb())}})),rgb}var colorTableColors_1=colorsArray(colorName,getColorTables),itemColor_1=[];(null==userBreakPoint?void 0:userBreakPoint.length)>0&&(userBreakPoint.forEach((function(value){var rgbColor=HextoRGB(value.color);itemColor_1.push([value.position,rgbColor.r,rgbColor.g,rgbColor.b])})),null==itemColor_1||itemColor_1.sort((function(a,b){return a[0]===b[0]?0:a[0]val[0]&&pointpoint})),firstColorArray=colorTableColors_1[index-1],secondColorArray=colorTableColors_1[index];if(void 0!==(firstColorArray||secondColorArray)){var t0=firstColorArray[0],t1=secondColorArray[0],t=(point-t0)/(t1-t0),interpolatedValues=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(RGBToHex(firstColorArray).color,RGBToHex(secondColorArray).color)(t);return null===(_b=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolatedValues))||void 0===_b?void 0:_b.rgb()}}function getColors(colorName,iscolorTablesDefined,point){var _a,colorTableData=(iscolorTablesDefined||_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__).filter((function(value){return value.name.toLowerCase()===colorName.toLowerCase()})),colorArrays=null===(_a=colorTableData[0])||void 0===_a?void 0:_a.colors.find((function(value){return value[0]===point}));return colorTableData.length>0?colorArrays:[]}function rgbValues(point,colorName,iscolorTablesDefined,isLog,isNearest,breakPoints){var _a;if(isLog){var log=(0,d3__WEBPACK_IMPORTED_MODULE_0__.eh9)().domain([0,1]);point=log(point)}var colorTableColors=colorsArray(colorName,iscolorTablesDefined||_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__),itemColor=[];(null==breakPoints?void 0:breakPoints.length)>0&&(breakPoints.forEach((function(value){var rgbColor=HextoRGB(value.color);itemColor.push([value.position,rgbColor.r,rgbColor.g,rgbColor.b])})),null==itemColor||itemColor.sort((function(a,b){return a[0]===b[0]?0:a[0]val[0]&&pointpoint})),firstColorArray=colorTableColors[index-1],secondColorArray=colorTableColors[index];if(void 0!==(firstColorArray||secondColorArray)){var t0=firstColorArray[0],t1=secondColorArray[0],t=(point-t0)/(t1-t0),interpolatedValues=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(RGBToHex(firstColorArray).color,RGBToHex(secondColorArray).color)(t);return getColor(null===(_a=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolatedValues))||void 0===_a?void 0:_a.rgb())}}function createColorMapFunction(colorScaleName,isLog,isNearest,breakPoints){return function(x,categorial,min,max,iscolorTablesDefined){return void 0===categorial&&(categorial=!1),void 0===min&&(min=0),void 0===max&&(max=1),void 0===iscolorTablesDefined&&(iscolorTablesDefined=_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__),function sampledColor(colorScaleName,point,categorial,min,max,iscolorTablesDefined,isLog,isNearest,breakPoints){var _a,_b,getColorTables=iscolorTablesDefined||_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__,getColorTableScale=getColorTables.find((function(value){return value.name===colorScaleName})),getD3Scale=_d3ColorScale__WEBPACK_IMPORTED_MODULE_2__.h.find((function(value){return value.name===colorScaleName}));if(isLog){var log=(0,d3__WEBPACK_IMPORTED_MODULE_0__.eh9)().domain([0,1]);point=log(point)}var rgb=rgbValues(point,colorScaleName,getColorTables,isLog,isNearest,breakPoints);if(!1===(null==getColorTableScale?void 0:getColorTableScale.discrete)&&(rgb=categorial?rgbValues(normalizedPoint=(point-min)/(max-min),colorScaleName,getColorTables,isLog,isNearest):rgbValues(point,colorScaleName,getColorTables,isLog,isNearest,breakPoints)),"function"==typeof(null==getD3Scale?void 0:getD3Scale.colors)){var colorMappingRange=null==getD3Scale?void 0:getD3Scale.colors(point);if(categorial){var normalizedPoint=(point-min)/(max-min);colorMappingRange=null==getD3Scale?void 0:getD3Scale.colors(normalizedPoint)}rgb=getColor(null===(_a=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(colorMappingRange))||void 0===_a?void 0:_a.rgb())}if(!0===(null==getColorTableScale?void 0:getColorTableScale.discrete)){if(categorial)return colorsArray(colorScaleName,getColorTables).find((function(value){return value[0]===point}));var maxValue_2=(null==getColorTableScale?void 0:getColorTableScale.colors.length)-1;null==getColorTableScale||getColorTableScale.colors.forEach((function(item,index){var _a,_b,_c,nextIndex=index+1;if(point>=(index-0)/(maxValue_2-0)&&point<=(nextIndex-0)/(maxValue_2-0)&&void 0!==(item&&(null==getColorTableScale?void 0:getColorTableScale.colors[nextIndex]))){var interpolate=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(null===(_a=RGBToHex(item))||void 0===_a?void 0:_a.color,null===(_b=RGBToHex(null==getColorTableScale?void 0:getColorTableScale.colors[nextIndex]))||void 0===_b?void 0:_b.color)(point);rgb=getColor(null===(_c=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolate))||void 0===_c?void 0:_c.rgb())}}))}if("object"==typeof(null==getD3Scale?void 0:getD3Scale.colors))if(categorial){var code_1=point,d3ColorArrays=null==getD3Scale?void 0:getD3Scale.colors.find((function(_value,index){return index===code_1}));rgb=getColor(null===(_b=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(d3ColorArrays))||void 0===_b?void 0:_b.rgb())}else{var max_2=(null==getD3Scale?void 0:getD3Scale.colors.length)-1;null==getD3Scale||getD3Scale.colors.forEach((function(item,index){var _a,nextIndex=index+1,indexableD3Scale=getD3Scale;if(point>=(index-0)/(max_2-0)&&point<=(nextIndex-0)/(max_2-0)){var interpolate=(0,d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.ZP)(item,indexableD3Scale[nextIndex])(point);rgb=getColor(null===(_a=(0,d3_color__WEBPACK_IMPORTED_MODULE_5__.ZP)(interpolate))||void 0===_a?void 0:_a.rgb())}}))}return rgb}(colorScaleName,x,categorial,min,max,iscolorTablesDefined,isLog,isNearest,breakPoints)}}function createDefaultContinuousColorScale(){return function createContinuousLibraryColorScale(name,library){return void 0===library&&(library=_component_color_tables_json__WEBPACK_IMPORTED_MODULE_3__),function(value){return rgbValues(value,name,library)}}("Rainbow")}var getColorArrayFromBreakPoints=function(breakpoints,arraySize){if(void 0===arraySize&&(arraySize=512),0===breakpoints.length)throw new Error("Couldn't provide color supplier from empty color array");var colors=breakpoints.map((function(item){return item.color})),ratios=breakpoints.map((function(item){return item.position})),position=0;return(0,lodash__WEBPACK_IMPORTED_MODULE_1__.range)(0,arraySize).map((function(i){var _a;if(ratios[position]{const{ownerState:ownerState}=props;return[{[`& .${Accordion_accordionClasses.region}`]:styles.region},styles.root,!ownerState.square&&styles.rounded,!ownerState.disableGutters&&styles.gutters]}})((({theme:theme})=>{const transition={duration:theme.transitions.duration.shortest};return{position:"relative",transition:theme.transitions.create(["margin"],transition),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(theme.vars||theme).palette.divider,transition:theme.transitions.create(["opacity","background-color"],transition)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${Accordion_accordionClasses.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${Accordion_accordionClasses.disabled}`]:{backgroundColor:(theme.vars||theme).palette.action.disabledBackground}}}),(({theme:theme})=>({variants:[{props:props=>!props.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(theme.vars||theme).shape.borderRadius,borderTopRightRadius:(theme.vars||theme).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(theme.vars||theme).shape.borderRadius,borderBottomRightRadius:(theme.vars||theme).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:props=>!props.disableGutters,style:{[`&.${Accordion_accordionClasses.expanded}`]:{margin:"16px 0"}}}]})));var Accordion_Accordion=react.forwardRef((function Accordion(inProps,ref){const props=useThemeProps({props:inProps,name:"MuiAccordion"}),{children:childrenProp,className:className,defaultExpanded:defaultExpanded=!1,disabled:disabled=!1,disableGutters:disableGutters=!1,expanded:expandedProp,onChange:onChange,square:square=!1,slots:slots={},slotProps:slotProps={},TransitionComponent:TransitionComponentProp,TransitionProps:TransitionPropsProp}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,Accordion_excluded),[expanded,setExpandedState]=(0,useControlled.Z)({controlled:expandedProp,default:defaultExpanded,name:"Accordion",state:"expanded"}),handleChange=react.useCallback((event=>{setExpandedState(!expanded),onChange&&onChange(event,!expanded)}),[expanded,onChange,setExpandedState]),[summary,...children]=react.Children.toArray(childrenProp),contextValue=react.useMemo((()=>({expanded:expanded,disabled:disabled,disableGutters:disableGutters,toggle:handleChange})),[expanded,disabled,disableGutters,handleChange]),ownerState=(0,esm_extends.Z)({},props,{square:square,disabled:disabled,disableGutters:disableGutters,expanded:expanded}),classes=(ownerState=>{const{classes:classes,square:square,expanded:expanded,disabled:disabled,disableGutters:disableGutters}=ownerState,slots={root:["root",!square&&"rounded",expanded&&"expanded",disabled&&"disabled",!disableGutters&&"gutters"],region:["region"]};return(0,composeClasses.Z)(slots,getAccordionUtilityClass,classes)})(ownerState),backwardCompatibleSlots=(0,esm_extends.Z)({transition:TransitionComponentProp},slots),backwardCompatibleSlotProps=(0,esm_extends.Z)({transition:TransitionPropsProp},slotProps),[TransitionSlot,transitionProps]=function useSlot(name,parameters){const{className:className,elementType:initialElementType,ownerState:ownerState,externalForwardedProps:externalForwardedProps,getSlotOwnerState:getSlotOwnerState,internalForwardedProps:internalForwardedProps}=parameters,useSlotPropsParams=(0,objectWithoutPropertiesLoose.Z)(parameters,_excluded),{component:rootComponent,slots:slots={[name]:void 0},slotProps:slotProps={[name]:void 0}}=externalForwardedProps,other=(0,objectWithoutPropertiesLoose.Z)(externalForwardedProps,_excluded2),elementType=slots[name]||initialElementType,resolvedComponentsProps=(0,resolveComponentProps.x)(slotProps[name],ownerState),_mergeSlotProps=(0,mergeSlotProps.L)((0,esm_extends.Z)({className:className},useSlotPropsParams,{externalForwardedProps:"root"===name?other:void 0,externalSlotProps:resolvedComponentsProps})),{props:{component:slotComponent},internalRef:internalRef}=_mergeSlotProps,mergedProps=(0,objectWithoutPropertiesLoose.Z)(_mergeSlotProps.props,_excluded3),ref=(0,useForkRef.Z)(internalRef,null==resolvedComponentsProps?void 0:resolvedComponentsProps.ref,parameters.ref),slotOwnerState=getSlotOwnerState?getSlotOwnerState(mergedProps):{},finalOwnerState=(0,esm_extends.Z)({},ownerState,slotOwnerState),LeafComponent="root"===name?slotComponent||rootComponent:slotComponent,props=(0,appendOwnerState.$)(elementType,(0,esm_extends.Z)({},"root"===name&&!rootComponent&&!slots[name]&&internalForwardedProps,"root"!==name&&!slots[name]&&internalForwardedProps,mergedProps,LeafComponent&&{as:LeafComponent},{ref:ref}),finalOwnerState);return Object.keys(slotOwnerState).forEach((propName=>{delete props[propName]})),[elementType,props]}("transition",{elementType:Collapse.Z,externalForwardedProps:{slots:backwardCompatibleSlots,slotProps:backwardCompatibleSlotProps},ownerState:ownerState});return(0,jsx_runtime.jsxs)(AccordionRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(classes.root,className),ref:ref,ownerState:ownerState,square:square},other,{children:[(0,jsx_runtime.jsx)(Accordion_AccordionContext.Provider,{value:contextValue,children:summary}),(0,jsx_runtime.jsx)(TransitionSlot,(0,esm_extends.Z)({in:expanded,timeout:"auto"},transitionProps,{children:(0,jsx_runtime.jsx)("div",{"aria-labelledby":summary.props.id,id:summary.props["aria-controls"],role:"region",className:classes.region,children:children})}))]}))})),ButtonBase=__webpack_require__("./node_modules/@mui/material/ButtonBase/ButtonBase.js");function getAccordionSummaryUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiAccordionSummary",slot)}var AccordionSummary_accordionSummaryClasses=(0,generateUtilityClasses.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);const AccordionSummary_excluded=["children","className","expandIcon","focusVisibleClassName","onClick"],AccordionSummary_useThemeProps=(0,zero_styled.U)("MuiAccordionSummary"),AccordionSummaryRoot=(0,styled.ZP)(ButtonBase.Z,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(props,styles)=>styles.root})((({theme:theme})=>{const transition={duration:theme.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:theme.spacing(0,2),transition:theme.transitions.create(["min-height","background-color"],transition),[`&.${AccordionSummary_accordionSummaryClasses.focusVisible}`]:{backgroundColor:(theme.vars||theme).palette.action.focus},[`&.${AccordionSummary_accordionSummaryClasses.disabled}`]:{opacity:(theme.vars||theme).palette.action.disabledOpacity},[`&:hover:not(.${AccordionSummary_accordionSummaryClasses.disabled})`]:{cursor:"pointer"},variants:[{props:props=>!props.disableGutters,style:{[`&.${AccordionSummary_accordionSummaryClasses.expanded}`]:{minHeight:64}}}]}})),AccordionSummaryContent=(0,styled.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(props,styles)=>styles.content})((({theme:theme})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:props=>!props.disableGutters,style:{transition:theme.transitions.create(["margin"],{duration:theme.transitions.duration.shortest}),[`&.${AccordionSummary_accordionSummaryClasses.expanded}`]:{margin:"20px 0"}}}]}))),AccordionSummaryExpandIconWrapper=(0,styled.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(props,styles)=>styles.expandIconWrapper})((({theme:theme})=>({display:"flex",color:(theme.vars||theme).palette.action.active,transform:"rotate(0deg)",transition:theme.transitions.create("transform",{duration:theme.transitions.duration.shortest}),[`&.${AccordionSummary_accordionSummaryClasses.expanded}`]:{transform:"rotate(180deg)"}})));var AccordionSummary_AccordionSummary=react.forwardRef((function AccordionSummary(inProps,ref){const props=AccordionSummary_useThemeProps({props:inProps,name:"MuiAccordionSummary"}),{children:children,className:className,expandIcon:expandIcon,focusVisibleClassName:focusVisibleClassName,onClick:onClick}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,AccordionSummary_excluded),{disabled:disabled=!1,disableGutters:disableGutters,expanded:expanded,toggle:toggle}=react.useContext(Accordion_AccordionContext),ownerState=(0,esm_extends.Z)({},props,{expanded:expanded,disabled:disabled,disableGutters:disableGutters}),classes=(ownerState=>{const{classes:classes,expanded:expanded,disabled:disabled,disableGutters:disableGutters}=ownerState,slots={root:["root",expanded&&"expanded",disabled&&"disabled",!disableGutters&&"gutters"],focusVisible:["focusVisible"],content:["content",expanded&&"expanded",!disableGutters&&"contentGutters"],expandIconWrapper:["expandIconWrapper",expanded&&"expanded"]};return(0,composeClasses.Z)(slots,getAccordionSummaryUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsxs)(AccordionSummaryRoot,(0,esm_extends.Z)({focusRipple:!1,disableRipple:!0,disabled:disabled,component:"div","aria-expanded":expanded,className:(0,clsx.Z)(classes.root,className),focusVisibleClassName:(0,clsx.Z)(classes.focusVisible,focusVisibleClassName),onClick:event=>{toggle&&toggle(event),onClick&&onClick(event)},ref:ref,ownerState:ownerState},other,{children:[(0,jsx_runtime.jsx)(AccordionSummaryContent,{className:classes.content,ownerState:ownerState,children:children}),expandIcon&&(0,jsx_runtime.jsx)(AccordionSummaryExpandIconWrapper,{className:classes.expandIconWrapper,ownerState:ownerState,children:expandIcon})]}))}));function getAccordionDetailsUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiAccordionDetails",slot)}(0,generateUtilityClasses.Z)("MuiAccordionDetails",["root"]);const AccordionDetails_excluded=["className"],AccordionDetails_useThemeProps=(0,zero_styled.U)("MuiAccordionDetails"),AccordionDetailsRoot=(0,styled.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(props,styles)=>styles.root})((({theme:theme})=>({padding:theme.spacing(1,2,2)})));var AccordionDetails_AccordionDetails=react.forwardRef((function AccordionDetails(inProps,ref){const props=AccordionDetails_useThemeProps({props:inProps,name:"MuiAccordionDetails"}),{className:className}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,AccordionDetails_excluded),ownerState=props,classes=(ownerState=>{const{classes:classes}=ownerState;return(0,composeClasses.Z)({root:["root"]},getAccordionDetailsUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsx)(AccordionDetailsRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(classes.root,className),ref:ref,ownerState:ownerState},other))})),Cancel=__webpack_require__("./node_modules/@mui/icons-material/Cancel.js"),ExpandMore=__webpack_require__("./node_modules/@mui/icons-material/ExpandMore.js"),esm_styled=__webpack_require__("./node_modules/@mui/system/esm/styled.js"),ContentCopy=__webpack_require__("./node_modules/@mui/icons-material/ContentCopy.js"),d3ColorScale=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/Utils/d3ColorScale.js"),src=__webpack_require__("./node_modules/d3/src/index.js"),color=__webpack_require__("./node_modules/d3-color/src/color.js");function discreteLegendUtil(itemColor,isSelectorLegend,horizontal){return function legend(g){!function drawLegend(){g.selectAll("g.legendCells").data(itemColor).enter().append("g").append("rect").append("title").text((function(d){return d.name})).attr("class","rectLabel").style("cursor","pointer").style("pointer-events","all"),g.selectAll("rect").attr("height",1).attr("width",1).style("fill",(function(d){return d.color})),horizontal&&!isSelectorLegend||!0===horizontal&&isSelectorLegend?g.selectAll("rect").attr("x",(function(_d,i){return i})).attr("y",0):!horizontal&&!isSelectorLegend||!1===horizontal&&isSelectorLegend?g.selectAll("rect").attr("y",(function(_d,i){return i})).attr("x",0):g.selectAll("rect").attr("x",(function(_d,i){return i})).attr("y",0)}()}}var legendCommonFunction=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/Utils/legendCommonFunction.js"),StyledLegend=(0,esm_styled.Z)("div")({paddingLeft:"5px","&:hover":{background:"#f1f1f1",cursor:"pointer"}}),ColorSelectorComponent=function(_a){var data,extent,colorsObject=_a.colorsObject,legendColor=_a.legendColor,legendColorName=_a.legendColorName,useContColorTable=_a.useContColorTable,useDiscColorTable=_a.useDiscColorTable,uniqueId=_a.uniqueId,colorScaleData=_a.colorScaleData,currentLegendName=_a.currentLegendName,divRef=(0,react.useRef)(null);legendColor&&(data=(0,src.w6H)(10).map((function(d){return{color:legendColor(d/10),value:d}})),extent=src.Wem(data,(function(d){return null==d?void 0:d.value})));var handleChange=react.useCallback((function(){if(colorsObject&&Object.keys(colorsObject).length>0&&useContColorTable)return colorScaleData?colorScaleData(colorsObject,!0):null;if(data&&!useContColorTable){var arrayData_1=[];return data.forEach((function(colorsObject){var _a,_b,_c;arrayData_1.push(["0."+colorsObject.value,null===(_a=(0,color.ZP)(colorsObject.color))||void 0===_a?void 0:_a.rgb().r,null===(_b=(0,color.ZP)(colorsObject.color))||void 0===_b?void 0:_b.rgb().g,null===(_c=(0,color.ZP)(colorsObject.color))||void 0===_c?void 0:_c.rgb().b])})),colorScaleData?colorScaleData({arrayData:arrayData_1,legendColorName:legendColorName},!0):null}return colorsObject&&Object.keys(colorsObject).length>0&&useDiscColorTable?colorScaleData?colorScaleData(colorsObject,!1):null:colorScaleData?colorScaleData({colorsObject:colorsObject,legendColorName:legendColorName},!1):null}),[colorScaleData,colorsObject,data,legendColorName,useContColorTable,useDiscColorTable]);react.useEffect((function(){!0===useContColorTable&&divRef.current&&function contColortableLegend(){var itemColor=[];colorsObject.color.forEach((function(value){itemColor.push({offset:(0,legendCommonFunction.fc)(value).offset,color:(0,legendCommonFunction.fc)(value).color})}));var svgLegend=(0,src.Ys)(divRef.current).append("svg").style("cursor","pointer").style("height","30px").style("width",220),defs=svgLegend.append("defs"),currentIndex="linear-gradient-"+uniqueId+"0";defs.append("linearGradient").attr("id",currentIndex).attr("x1","0%").attr("x2","100%").attr("y1","0%").attr("y2","0%").selectAll("stop").data(itemColor).enter().append("stop").attr("offset",(function(data){return data.offset+"%"})).attr("stop-color",(function(data){return data.color})),svgLegend.append("rect").attr("x",0).attr("y",5).attr("width","100").attr("height",15).style("fill","url(#"+currentIndex+")"),svgLegend.append("text").attr("id","legendTitle").attr("x",106).attr("y",17.5).style("font-size","small").style("font-weight","700").text(colorsObject.name)}(),!0===useDiscColorTable&&divRef.current&&function discColorTableLegend(){var itemColor=[],itemName=[];function RGBToHex(rgb){var r=rgb[1].toString(16),g=rgb[2].toString(16),b=rgb[3].toString(16);return 1===r.length&&(r="0"+r),1===g.length&&(g="0"+g),1===b.length&&(b="0"+b),"#"+r+g+b}colorsObject.color.forEach((function(element,key){itemColor.push({color:RGBToHex(element)}),itemName.push(key)}));var count=itemName.length,colorLegend=discreteLegendUtil(itemColor,!0),selectedLegend=(0,src.Ys)(divRef.current);selectedLegend.append("svg").style("cursor","pointer").style("margin-top","5px").attr("viewBox","0 0 ".concat(count," 1")).attr("preserveAspectRatio","none").style("width","101px").style("height","15px").call(colorLegend),selectedLegend.append("label").text(legendColorName||"").style("width","15px").style("margin-left","10px").style("white-space","nowrap").style("font-size","small").style("font-weight","700").append(":hover").style("cursor","pointer")}(),!1===useDiscColorTable&&divRef.current?function discD3legend(){var itemName=[],itemColor=[];colorsObject.forEach((function(element,key){itemColor.push({color:element}),itemName.push(key)}));var count=itemName.length,discreteLegend=discreteLegendUtil(itemColor,!0);(0,src.Ys)("svg").append("g").attr("transform","translate(50,70)").attr("class","legend").call(discreteLegend);var selectedLegend=(0,src.Ys)(divRef.current);selectedLegend.append("svg").style("cursor","pointer").style("margin-top","5px").style("background","grey").attr("viewBox","0 0 ".concat(count," 1")).attr("preserveAspectRatio","none").style("width","101px").style("height","15px").call(discreteLegend),selectedLegend.append("text").text(legendColorName||"").style("width","15px").style("margin-left","10px").style("font-size","small").style("font-weight","700")}():!1===useContColorTable&&divRef.current&&function contD3Legend(){var itemColor=[];d3ColorScale.h.forEach((function(value){itemColor.push(value.colors)}));var svgLegend=(0,src.Ys)(divRef.current).append("svg").style("cursor","pointer").style("height","50px"),defs=svgLegend.append("defs"),currentIndex="linear-gradient-"+uniqueId;defs.append("linearGradient").attr("id",currentIndex).attr("x1","0%").attr("x2","100%").attr("y1","0%").attr("y2","0%").selectAll("stop").data(data).enter().append("stop").attr("offset",(function(d){return(d.value-extent[0])/(extent[1]-extent[0])*100+"%"})).attr("stop-color",(function(d){return d.color})),svgLegend.append("text").attr("id","legendTitle").attr("x",106).attr("y",17.5).style("font-size","small").style("font-weight","700").text(legendColorName||""),svgLegend.append("rect").attr("x",0).attr("y",5).attr("width","100").attr("height",15).style("fill","url(#"+currentIndex+")")}()}),[useContColorTable,useDiscColorTable]);var selectedStyle=currentLegendName===legendColorName?{background:"#c1c1c1 !important"}:{};return react.createElement(StyledLegend,{sx:selectedStyle},react.createElement("div",{id:"legend",style:{height:30},ref:divRef,onClick:handleChange}))},__spreadArray=function(to,from,pack){if(pack||2===arguments.length)for(var ar,i=0,l=from.length;i{const output=null===outerTheme?localTheme:function mergeOuterLocalTheme(outerTheme,localTheme){if("function"==typeof localTheme)return localTheme(outerTheme);return(0,esm_extends.Z)({},outerTheme,localTheme)}(outerTheme,localTheme);return null!=output&&(output[nested]=null!==outerTheme),output}),[localTheme,outerTheme]);return(0,jsx_runtime.jsx)(useTheme_ThemeContext.Provider,{value:theme,children:children})},emotion_element_43c6fea0_browser_esm=__webpack_require__("./node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js"),useThemeWithoutDefault=__webpack_require__("./node_modules/@mui/system/esm/useThemeWithoutDefault.js"),RtlProvider=__webpack_require__("./node_modules/@mui/system/esm/RtlProvider/index.js");const EMPTY_THEME={};function useThemeScoping(themeId,upperTheme,localTheme,isPrivate=!1){return react.useMemo((()=>{const resolvedTheme=themeId&&upperTheme[themeId]||upperTheme;if("function"==typeof localTheme){const mergedTheme=localTheme(resolvedTheme),result=themeId?(0,esm_extends.Z)({},upperTheme,{[themeId]:mergedTheme}):mergedTheme;return isPrivate?()=>result:result}return themeId?(0,esm_extends.Z)({},upperTheme,{[themeId]:localTheme}):(0,esm_extends.Z)({},upperTheme,localTheme)}),[themeId,upperTheme,localTheme,isPrivate])}var esm_ThemeProvider_ThemeProvider=function ThemeProvider_ThemeProvider_ThemeProvider(props){const{children:children,theme:localTheme,themeId:themeId}=props,upperTheme=(0,useThemeWithoutDefault.Z)(EMPTY_THEME),upperPrivateTheme=useTheme()||EMPTY_THEME,engineTheme=useThemeScoping(themeId,upperTheme,localTheme),privateTheme=useThemeScoping(themeId,upperPrivateTheme,localTheme,!0),rtlValue="rtl"===engineTheme.direction;return(0,jsx_runtime.jsx)(ThemeProvider_ThemeProvider,{theme:privateTheme,children:(0,jsx_runtime.jsx)(emotion_element_43c6fea0_browser_esm.T.Provider,{value:engineTheme,children:(0,jsx_runtime.jsx)(RtlProvider.Z,{value:rtlValue,children:children})})})},identifier=__webpack_require__("./node_modules/@mui/material/styles/identifier.js");const ThemeProvider_excluded=["theme"];function styles_ThemeProvider_ThemeProvider(_ref){let{theme:themeInput}=_ref,props=(0,objectWithoutPropertiesLoose.Z)(_ref,ThemeProvider_excluded);const scopedTheme=themeInput[identifier.Z];return(0,jsx_runtime.jsx)(esm_ThemeProvider_ThemeProvider,(0,esm_extends.Z)({},props,{themeId:scopedTheme?identifier.Z:void 0,theme:scopedTheme||themeInput}))}var colorManipulator=__webpack_require__("./node_modules/@mui/system/colorManipulator.js"),styles_useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),capitalize=__webpack_require__("./node_modules/@mui/material/utils/capitalize.js");function getIconButtonUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiIconButton",slot)}var IconButton_iconButtonClasses=(0,generateUtilityClasses.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const IconButton_excluded=["edge","children","className","color","disabled","disableFocusRipple","size"],IconButtonRoot=(0,styled.ZP)(ButtonBase.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,"default"!==ownerState.color&&styles[`color${(0,capitalize.Z)(ownerState.color)}`],ownerState.edge&&styles[`edge${(0,capitalize.Z)(ownerState.edge)}`],styles[`size${(0,capitalize.Z)(ownerState.size)}`]]}})((({theme:theme,ownerState:ownerState})=>(0,esm_extends.Z)({textAlign:"center",flex:"0 0 auto",fontSize:theme.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(theme.vars||theme).palette.action.active,transition:theme.transitions.create("background-color",{duration:theme.transitions.duration.shortest})},!ownerState.disableRipple&&{"&:hover":{backgroundColor:theme.vars?`rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})`:(0,colorManipulator.Fq)(theme.palette.action.active,theme.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===ownerState.edge&&{marginLeft:"small"===ownerState.size?-3:-12},"end"===ownerState.edge&&{marginRight:"small"===ownerState.size?-3:-12})),(({theme:theme,ownerState:ownerState})=>{var _palette;const palette=null==(_palette=(theme.vars||theme).palette)?void 0:_palette[ownerState.color];return(0,esm_extends.Z)({},"inherit"===ownerState.color&&{color:"inherit"},"inherit"!==ownerState.color&&"default"!==ownerState.color&&(0,esm_extends.Z)({color:null==palette?void 0:palette.main},!ownerState.disableRipple&&{"&:hover":(0,esm_extends.Z)({},palette&&{backgroundColor:theme.vars?`rgba(${palette.mainChannel} / ${theme.vars.palette.action.hoverOpacity})`:(0,colorManipulator.Fq)(palette.main,theme.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===ownerState.size&&{padding:5,fontSize:theme.typography.pxToRem(18)},"large"===ownerState.size&&{padding:12,fontSize:theme.typography.pxToRem(28)},{[`&.${IconButton_iconButtonClasses.disabled}`]:{backgroundColor:"transparent",color:(theme.vars||theme).palette.action.disabled}})})),IconButton=react.forwardRef((function IconButton(inProps,ref){const props=(0,styles_useThemeProps.Z)({props:inProps,name:"MuiIconButton"}),{edge:edge=!1,children:children,className:className,color:color="default",disabled:disabled=!1,disableFocusRipple:disableFocusRipple=!1,size:size="medium"}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,IconButton_excluded),ownerState=(0,esm_extends.Z)({},props,{edge:edge,color:color,disabled:disabled,disableFocusRipple:disableFocusRipple,size:size}),classes=(ownerState=>{const{classes:classes,disabled:disabled,color:color,edge:edge,size:size}=ownerState,slots={root:["root",disabled&&"disabled","default"!==color&&`color${(0,capitalize.Z)(color)}`,edge&&`edge${(0,capitalize.Z)(edge)}`,`size${(0,capitalize.Z)(size)}`]};return(0,composeClasses.Z)(slots,getIconButtonUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsx)(IconButtonRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(classes.root,className),centerRipple:!0,focusRipple:!disableFocusRipple,disabled:disabled,ref:ref},other,{ownerState:ownerState,children:children}))}));var IconButton_IconButton=IconButton,Popover=__webpack_require__("./node_modules/@mui/material/Popover/Popover.js"),DeleteOutlined=__webpack_require__("./node_modules/@mui/icons-material/DeleteOutlined.js"),Edit=__webpack_require__("./node_modules/@mui/icons-material/Edit.js"),MoreHoriz=__webpack_require__("./node_modules/@mui/icons-material/MoreHoriz.js"),styles_useTheme=__webpack_require__("./node_modules/@mui/material/styles/useTheme.js"),Dialog=__webpack_require__("./node_modules/@mui/material/Dialog/Dialog.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),AddCircleOutlineSharp=__webpack_require__("./node_modules/@mui/icons-material/AddCircleOutlineSharp.js"),RemoveCircleOutlineSharp=__webpack_require__("./node_modules/@mui/icons-material/RemoveCircleOutlineSharp.js"),lib=__webpack_require__("./node_modules/reactcss/lib/index.js"),checkboardCache={},get=function get(c1,c2,size,serverCanvas){var key=c1+"-"+c2+"-"+size+(serverCanvas?"-server":"");if(checkboardCache[key])return checkboardCache[key];var checkboard=function render(c1,c2,size,serverCanvas){if("undefined"==typeof document&&!serverCanvas)return null;var canvas=serverCanvas?new serverCanvas:document.createElement("canvas");canvas.width=2*size,canvas.height=2*size;var ctx=canvas.getContext("2d");return ctx?(ctx.fillStyle=c1,ctx.fillRect(0,0,canvas.width,canvas.height),ctx.fillStyle=c2,ctx.fillRect(0,0,size,size),ctx.translate(size,size),ctx.fillRect(0,0,size,size),canvas.toDataURL()):null}(c1,c2,size,serverCanvas);return checkboardCache[key]=checkboard,checkboard},_extends=Object.assign||function(target){for(var i=1;icontainerHeight?1:Math.round(100*top/containerHeight)/100,hsl.a!==a)return{h:hsl.h,s:hsl.s,l:hsl.l,a:a,source:"rgb"}}else{var _a=void 0;if(initialA!==(_a=left<0?0:left>containerWidth?1:Math.round(100*left/containerWidth)/100))return{h:hsl.h,s:hsl.s,l:hsl.l,a:_a,source:"rgb"}}return null}(e,_this.props.hsl,_this.props.direction,_this.props.a,_this.container);change&&"function"==typeof _this.props.onChange&&_this.props.onChange(change,e)},_this.handleMouseDown=function(e){_this.handleChange(e),window.addEventListener("mousemove",_this.handleChange),window.addEventListener("mouseup",_this.handleMouseUp)},_this.handleMouseUp=function(){_this.unbindEventListeners()},_this.unbindEventListeners=function(){window.removeEventListener("mousemove",_this.handleChange),window.removeEventListener("mouseup",_this.handleMouseUp)},_possibleConstructorReturn(_this,_temp)}return function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Alpha,_ref),_createClass(Alpha,[{key:"componentWillUnmount",value:function componentWillUnmount(){this.unbindEventListeners()}},{key:"render",value:function render(){var _this2=this,rgb=this.props.rgb,styles=(0,lib.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+rgb.r+","+rgb.g+","+rgb.b+", 0) 0%,\n rgba("+rgb.r+","+rgb.g+","+rgb.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*rgb.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+rgb.r+","+rgb.g+","+rgb.b+", 0) 0%,\n rgba("+rgb.r+","+rgb.g+","+rgb.b+", 1) 100%)"},pointer:{left:0,top:100*rgb.a+"%"}},overwrite:Alpha_extends({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return react.createElement("div",{style:styles.alpha},react.createElement("div",{style:styles.checkboard},react.createElement(common_Checkboard,{renderers:this.props.renderers})),react.createElement("div",{style:styles.gradient}),react.createElement("div",{style:styles.container,ref:function ref(container){return _this2.container=container},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},react.createElement("div",{style:styles.pointer},this.props.pointer?react.createElement(this.props.pointer,this.props):react.createElement("div",{style:styles.slider}))))}}]),Alpha}(react.PureComponent||react.Component),common_Alpha=Alpha,EditableInput_createClass=function(){function defineProperties(target,props){for(var i=0;i-1}(e.keyCode)){var offset=_this.getArrowOffset(),updatedValue=38===e.keyCode?value+offset:value-offset;_this.setUpdatedValue(updatedValue,e)}},_this.handleDrag=function(e){if(_this.props.dragLabel){var newValue=Math.round(_this.props.value+e.movementX);newValue>=0&&newValue<=_this.props.dragMax&&_this.props.onChange&&_this.props.onChange(_this.getValueObjectWithLabel(newValue),e)}},_this.handleMouseDown=function(e){_this.props.dragLabel&&(e.preventDefault(),_this.handleDrag(e),window.addEventListener("mousemove",_this.handleDrag),window.addEventListener("mouseup",_this.handleMouseUp))},_this.handleMouseUp=function(){_this.unbindEventListeners()},_this.unbindEventListeners=function(){window.removeEventListener("mousemove",_this.handleDrag),window.removeEventListener("mouseup",_this.handleMouseUp)},_this.state={value:String(props.value).toUpperCase(),blurValue:String(props.value).toUpperCase()},_this.inputId="rc-editable-input-"+idCounter++,_this}return function EditableInput_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(EditableInput,_ref),EditableInput_createClass(EditableInput,[{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){this.props.value===this.state.value||prevProps.value===this.props.value&&prevState.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function getValueObjectWithLabel(value){return function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},this.props.label,value)}},{key:"getArrowOffset",value:function getArrowOffset(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function setUpdatedValue(value,e){var onChangeValue=this.props.label?this.getValueObjectWithLabel(value):value;this.props.onChange&&this.props.onChange(onChangeValue,e),this.setState({value:value})}},{key:"render",value:function render(){var _this2=this,styles=(0,lib.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return react.createElement("div",{style:styles.wrap},react.createElement("input",{id:this.inputId,style:styles.input,ref:function ref(input){return _this2.input=input},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?react.createElement("label",{htmlFor:this.inputId,style:styles.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),EditableInput}(react.PureComponent||react.Component),Hue_createClass=function(){function defineProperties(target,props){for(var i=0;icontainerHeight?0:360*(-100*top/containerHeight+100)/100,hsl.h!==h)return{h:h,s:hsl.s,l:hsl.l,a:hsl.a,source:"hsl"}}else{var _h=void 0;if(_h=left<0?0:left>containerWidth?359:100*left/containerWidth*360/100,hsl.h!==_h)return{h:_h,s:hsl.s,l:hsl.l,a:hsl.a,source:"hsl"}}return null}(e,_this.props.direction,_this.props.hsl,_this.container);change&&"function"==typeof _this.props.onChange&&_this.props.onChange(change,e)},_this.handleMouseDown=function(e){_this.handleChange(e),window.addEventListener("mousemove",_this.handleChange),window.addEventListener("mouseup",_this.handleMouseUp)},_this.handleMouseUp=function(){_this.unbindEventListeners()},Hue_possibleConstructorReturn(_this,_temp)}return function Hue_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Hue,_ref),Hue_createClass(Hue,[{key:"componentWillUnmount",value:function componentWillUnmount(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function render(){var _this2=this,_props$direction=this.props.direction,direction=void 0===_props$direction?"horizontal":_props$direction,styles=(0,lib.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===direction});return react.createElement("div",{style:styles.hue},react.createElement("div",{className:"hue-"+direction,style:styles.container,ref:function ref(container){return _this2.container=container},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},react.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),react.createElement("div",{style:styles.pointer},this.props.pointer?react.createElement(this.props.pointer,this.props):react.createElement("div",{style:styles.slider}))))}}]),Hue}(react.PureComponent||react.Component),common_Hue=Hue,prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types);var _listCacheClear=function listCacheClear(){this.__data__=[],this.size=0};var lodash_es_eq=function eq(value,other){return value===other||value!=value&&other!=other};var _assocIndexOf=function assocIndexOf(array,key){for(var length=array.length;length--;)if(lodash_es_eq(array[length][0],key))return length;return-1},splice=Array.prototype.splice;var _listCacheDelete=function listCacheDelete(key){var data=this.__data__,index=_assocIndexOf(data,key);return!(index<0)&&(index==data.length-1?data.pop():splice.call(data,index,1),--this.size,!0)};var _listCacheGet=function listCacheGet(key){var data=this.__data__,index=_assocIndexOf(data,key);return index<0?void 0:data[index][1]};var _listCacheHas=function listCacheHas(key){return _assocIndexOf(this.__data__,key)>-1};var _listCacheSet=function listCacheSet(key,value){var data=this.__data__,index=_assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this};function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index-1&&value%1==0&&value<=9007199254740991};var lodash_es_isArrayLike=function isArrayLike(value){return null!=value&&lodash_es_isLength(value.length)&&!lodash_es_isFunction(value)};var lodash_es_isArrayLikeObject=function isArrayLikeObject(value){return lodash_es_isObjectLike(value)&&lodash_es_isArrayLike(value)},isBuffer=__webpack_require__("./node_modules/lodash-es/isBuffer.js"),isPlainObject_funcProto=Function.prototype,isPlainObject_objectProto=Object.prototype,isPlainObject_funcToString=isPlainObject_funcProto.toString,isPlainObject_hasOwnProperty=isPlainObject_objectProto.hasOwnProperty,objectCtorString=isPlainObject_funcToString.call(Object);var lodash_es_isPlainObject=function isPlainObject(value){if(!lodash_es_isObjectLike(value)||"[object Object]"!=_baseGetTag(value))return!1;var proto=_getPrototype(value);if(null===proto)return!0;var Ctor=isPlainObject_hasOwnProperty.call(proto,"constructor")&&proto.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor&&isPlainObject_funcToString.call(Ctor)==objectCtorString},typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0,typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=typedArrayTags["[object DataView]"]=typedArrayTags["[object Date]"]=typedArrayTags["[object Error]"]=typedArrayTags["[object Function]"]=typedArrayTags["[object Map]"]=typedArrayTags["[object Number]"]=typedArrayTags["[object Object]"]=typedArrayTags["[object RegExp]"]=typedArrayTags["[object Set]"]=typedArrayTags["[object String]"]=typedArrayTags["[object WeakMap]"]=!1;var _baseIsTypedArray=function baseIsTypedArray(value){return lodash_es_isObjectLike(value)&&lodash_es_isLength(value.length)&&!!typedArrayTags[_baseGetTag(value)]};var _baseUnary=function baseUnary(func){return function(value){return func(value)}},_nodeUtil=__webpack_require__("./node_modules/lodash-es/_nodeUtil.js"),nodeIsTypedArray=_nodeUtil.Z&&_nodeUtil.Z.isTypedArray,lodash_es_isTypedArray=nodeIsTypedArray?_baseUnary(nodeIsTypedArray):_baseIsTypedArray;var _safeGet=function safeGet(object,key){if(("constructor"!==key||"function"!=typeof object[key])&&"__proto__"!=key)return object[key]},_assignValue_hasOwnProperty=Object.prototype.hasOwnProperty;var _assignValue=function assignValue(object,key,value){var objValue=object[key];_assignValue_hasOwnProperty.call(object,key)&&lodash_es_eq(objValue,value)&&(void 0!==value||key in object)||_baseAssignValue(object,key,value)};var _copyObject=function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});for(var index=-1,length=props.length;++index-1&&value%1==0&&value0){if(++count>=800)return arguments[0]}else count=0;return func.apply(void 0,arguments)}},_setToString=_shortOut(_baseSetToString);var _baseRest=function baseRest(func,start){return _setToString(_overRest(func,start,lodash_es_identity),func+"")};var _isIterateeCall=function isIterateeCall(value,index,object){if(!lodash_es_isObject(object))return!1;var type=typeof index;return!!("number"==type?lodash_es_isArrayLike(object)&&_isIndex(index,object.length):"string"==type&&index in object)&&lodash_es_eq(object[index],value)};var lodash_es_merge=function createAssigner(assigner){return _baseRest((function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:void 0,guard=length>2?sources[2]:void 0;for(customizer=assigner.length>3&&"function"==typeof customizer?(length--,customizer):void 0,guard&&_isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?void 0:customizer,length=1),object=Object(object);++index=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=lodash_es_now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=lodash_es_now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=lodash_es_toNumber(wait)||0,lodash_es_isObject(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?debounce_nativeMax(lodash_es_toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(lodash_es_now())},debounced};var lodash_es_throttle=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");return lodash_es_isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),lodash_es_debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})},Saturation_createClass=function(){function defineProperties(target,props){for(var i=0;icontainerWidth&&(left=containerWidth),top<0?top=0:top>containerHeight&&(top=containerHeight);var saturation=left/containerWidth,bright=1-top/containerHeight;return{h:hsl.h,s:saturation,v:bright,a:hsl.a,source:"hsv"}}(e,_this.props.hsl,_this.container),e)},_this.handleMouseDown=function(e){_this.handleChange(e);var renderWindow=_this.getContainerRenderWindow();renderWindow.addEventListener("mousemove",_this.handleChange),renderWindow.addEventListener("mouseup",_this.handleMouseUp)},_this.handleMouseUp=function(){_this.unbindEventListeners()},_this.throttle=lodash_es_throttle((function(fn,data,e){fn(data,e)}),50),_this}return function Saturation_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Saturation,_ref),Saturation_createClass(Saturation,[{key:"componentWillUnmount",value:function componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function getContainerRenderWindow(){for(var container=this.container,renderWindow=window;!renderWindow.document.contains(container)&&renderWindow.parent!==renderWindow;)renderWindow=renderWindow.parent;return renderWindow}},{key:"unbindEventListeners",value:function unbindEventListeners(){var renderWindow=this.getContainerRenderWindow();renderWindow.removeEventListener("mousemove",this.handleChange),renderWindow.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function render(){var _this2=this,_ref2=this.props.style||{},color=_ref2.color,white=_ref2.white,black=_ref2.black,pointer=_ref2.pointer,circle=_ref2.circle,styles=(0,lib.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:color,white:white,black:black,pointer:pointer,circle:circle}},{custom:!!this.props.style});return react.createElement("div",{style:styles.color,ref:function ref(container){return _this2.container=container},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},react.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),react.createElement("div",{style:styles.white,className:"saturation-white"},react.createElement("div",{style:styles.black,className:"saturation-black"}),react.createElement("div",{style:styles.pointer},this.props.pointer?react.createElement(this.props.pointer,this.props):react.createElement("div",{style:styles.circle}))))}}]),Saturation}(react.PureComponent||react.Component),common_Saturation=Saturation;var _arrayEach=function arrayEach(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index1&&(t-=1),t<1/6?p+6*(q-p)*t:t<.5?q:t<2/3?p+(q-p)*(2/3-t)*6:p}if(h=bound01(h,360),s=bound01(s,100),l=bound01(l,100),0===s)r=g=b=l;else{var q=l<.5?l*(1+s):l+s-l*s,p=2*l-q;r=hue2rgb(p,q,h+1/3),g=hue2rgb(p,q,h),b=hue2rgb(p,q,h-1/3)}return{r:255*r,g:255*g,b:255*b}}(color.h,s,l),ok=!0,format="hsl"),color.hasOwnProperty("a")&&(a=color.a));return a=boundAlpha(a),{ok:ok,format:color.format||format,r:Math.min(255,Math.max(rgb.r,0)),g:Math.min(255,Math.max(rgb.g,0)),b:Math.min(255,Math.max(rgb.b,0)),a:a}}(color);this._originalInput=color,this._r=rgb.r,this._g=rgb.g,this._b=rgb.b,this._a=rgb.a,this._roundA=Math.round(100*this._a)/100,this._format=opts.format||rgb.format,this._gradientType=opts.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=rgb.ok}function rgbToHsl(r,g,b){r=bound01(r,255),g=bound01(g,255),b=bound01(b,255);var h,s,max=Math.max(r,g,b),min=Math.min(r,g,b),l=(max+min)/2;if(max==min)h=s=0;else{var d=max-min;switch(s=l>.5?d/(2-max-min):d/(max+min),max){case r:h=(g-b)/d+(g>1)+720)%360;--results;)hsl.h=(hsl.h+part)%360,ret.push(tinycolor(hsl));return ret}function _monochromatic(color,results){results=results||6;for(var hsv=tinycolor(color).toHsv(),h=hsv.h,s=hsv.s,v=hsv.v,ret=[],modification=1/results;results--;)ret.push(tinycolor({h:h,s:s,v:v})),v=(v+modification)%1;return ret}tinycolor.prototype={isDark:function isDark(){return this.getBrightness()<128},isLight:function isLight(){return!this.isDark()},isValid:function isValid(){return this._ok},getOriginalInput:function getOriginalInput(){return this._originalInput},getFormat:function getFormat(){return this._format},getAlpha:function getAlpha(){return this._a},getBrightness:function getBrightness(){var rgb=this.toRgb();return(299*rgb.r+587*rgb.g+114*rgb.b)/1e3},getLuminance:function getLuminance(){var RsRGB,GsRGB,BsRGB,rgb=this.toRgb();return RsRGB=rgb.r/255,GsRGB=rgb.g/255,BsRGB=rgb.b/255,.2126*(RsRGB<=.03928?RsRGB/12.92:Math.pow((RsRGB+.055)/1.055,2.4))+.7152*(GsRGB<=.03928?GsRGB/12.92:Math.pow((GsRGB+.055)/1.055,2.4))+.0722*(BsRGB<=.03928?BsRGB/12.92:Math.pow((BsRGB+.055)/1.055,2.4))},setAlpha:function setAlpha(value){return this._a=boundAlpha(value),this._roundA=Math.round(100*this._a)/100,this},toHsv:function toHsv(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:360*hsv.h,s:hsv.s,v:hsv.v,a:this._a}},toHsvString:function toHsvString(){var hsv=rgbToHsv(this._r,this._g,this._b),h=Math.round(360*hsv.h),s=Math.round(100*hsv.s),v=Math.round(100*hsv.v);return 1==this._a?"hsv("+h+", "+s+"%, "+v+"%)":"hsva("+h+", "+s+"%, "+v+"%, "+this._roundA+")"},toHsl:function toHsl(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:360*hsl.h,s:hsl.s,l:hsl.l,a:this._a}},toHslString:function toHslString(){var hsl=rgbToHsl(this._r,this._g,this._b),h=Math.round(360*hsl.h),s=Math.round(100*hsl.s),l=Math.round(100*hsl.l);return 1==this._a?"hsl("+h+", "+s+"%, "+l+"%)":"hsla("+h+", "+s+"%, "+l+"%, "+this._roundA+")"},toHex:function toHex(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char)},toHexString:function toHexString(allow3Char){return"#"+this.toHex(allow3Char)},toHex8:function toHex8(allow4Char){return function rgbaToHex(r,g,b,a,allow4Char){var hex=[pad2(Math.round(r).toString(16)),pad2(Math.round(g).toString(16)),pad2(Math.round(b).toString(16)),pad2(convertDecimalToHex(a))];if(allow4Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)&&hex[3].charAt(0)==hex[3].charAt(1))return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0)+hex[3].charAt(0);return hex.join("")}(this._r,this._g,this._b,this._a,allow4Char)},toHex8String:function toHex8String(allow4Char){return"#"+this.toHex8(allow4Char)},toRgb:function toRgb(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function toRgbString(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function toPercentageRgb(){return{r:Math.round(100*bound01(this._r,255))+"%",g:Math.round(100*bound01(this._g,255))+"%",b:Math.round(100*bound01(this._b,255))+"%",a:this._a}},toPercentageRgbString:function toPercentageRgbString(){return 1==this._a?"rgb("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%)":"rgba("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%, "+this._roundA+")"},toName:function toName(){return 0===this._a?"transparent":!(this._a<1)&&(hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1)},toFilter:function toFilter(secondColor){var hex8String="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),secondHex8String=hex8String,gradientType=this._gradientType?"GradientType = 1, ":"";if(secondColor){var s=tinycolor(secondColor);secondHex8String="#"+rgbaToArgbHex(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"},toString:function toString(format){var formatSet=!!format;format=format||this._format;var formattedString=!1,hasAlpha=this._a<1&&this._a>=0;return formatSet||!hasAlpha||"hex"!==format&&"hex6"!==format&&"hex3"!==format&&"hex4"!==format&&"hex8"!==format&&"name"!==format?("rgb"===format&&(formattedString=this.toRgbString()),"prgb"===format&&(formattedString=this.toPercentageRgbString()),"hex"!==format&&"hex6"!==format||(formattedString=this.toHexString()),"hex3"===format&&(formattedString=this.toHexString(!0)),"hex4"===format&&(formattedString=this.toHex8String(!0)),"hex8"===format&&(formattedString=this.toHex8String()),"name"===format&&(formattedString=this.toName()),"hsl"===format&&(formattedString=this.toHslString()),"hsv"===format&&(formattedString=this.toHsvString()),formattedString||this.toHexString()):"name"===format&&0===this._a?this.toName():this.toRgbString()},clone:function clone(){return tinycolor(this.toString())},_applyModification:function _applyModification(fn,args){var color=fn.apply(null,[this].concat([].slice.call(args)));return this._r=color._r,this._g=color._g,this._b=color._b,this.setAlpha(color._a),this},lighten:function lighten(){return this._applyModification(_lighten,arguments)},brighten:function brighten(){return this._applyModification(_brighten,arguments)},darken:function darken(){return this._applyModification(_darken,arguments)},desaturate:function desaturate(){return this._applyModification(_desaturate,arguments)},saturate:function saturate(){return this._applyModification(_saturate,arguments)},greyscale:function greyscale(){return this._applyModification(_greyscale,arguments)},spin:function spin(){return this._applyModification(_spin,arguments)},_applyCombination:function _applyCombination(fn,args){return fn.apply(null,[this].concat([].slice.call(args)))},analogous:function analogous(){return this._applyCombination(_analogous,arguments)},complement:function complement(){return this._applyCombination(_complement,arguments)},monochromatic:function monochromatic(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function splitcomplement(){return this._applyCombination(_splitcomplement,arguments)},triad:function triad(){return this._applyCombination(polyad,[3])},tetrad:function tetrad(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(color,opts){if("object"==_typeof(color)){var newColor={};for(var i in color)color.hasOwnProperty(i)&&(newColor[i]="a"===i?color[i]:convertToPercentage(color[i]));color=newColor}return tinycolor(color,opts)},tinycolor.equals=function(color1,color2){return!(!color1||!color2)&&tinycolor(color1).toRgbString()==tinycolor(color2).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},tinycolor.mix=function(color1,color2,amount){amount=0===amount?0:amount||50;var rgb1=tinycolor(color1).toRgb(),rgb2=tinycolor(color2).toRgb(),p=amount/100;return tinycolor({r:(rgb2.r-rgb1.r)*p+rgb1.r,g:(rgb2.g-rgb1.g)*p+rgb1.g,b:(rgb2.b-rgb1.b)*p+rgb1.b,a:(rgb2.a-rgb1.a)*p+rgb1.a})},tinycolor.readability=function(color1,color2){var c1=tinycolor(color1),c2=tinycolor(color2);return(Math.max(c1.getLuminance(),c2.getLuminance())+.05)/(Math.min(c1.getLuminance(),c2.getLuminance())+.05)},tinycolor.isReadable=function(color1,color2,wcag2){var wcag2Parms,out,readability=tinycolor.readability(color1,color2);switch(out=!1,(wcag2Parms=function validateWCAG2Parms(parms){var level,size;level=((parms=parms||{level:"AA",size:"small"}).level||"AA").toUpperCase(),size=(parms.size||"small").toLowerCase(),"AA"!==level&&"AAA"!==level&&(level="AA");"small"!==size&&"large"!==size&&(size="small");return{level:level,size:size}}(wcag2)).level+wcag2Parms.size){case"AAsmall":case"AAAlarge":out=readability>=4.5;break;case"AAlarge":out=readability>=3;break;case"AAAsmall":out=readability>=7}return out},tinycolor.mostReadable=function(baseColor,colorList,args){var readability,includeFallbackColors,level,size,bestColor=null,bestScore=0;includeFallbackColors=(args=args||{}).includeFallbackColors,level=args.level,size=args.size;for(var i=0;ibestScore&&(bestScore=readability,bestColor=tinycolor(colorList[i]));return tinycolor.isReadable(baseColor,bestColor,{level:level,size:size})||!includeFallbackColors?bestColor:(args.includeFallbackColors=!1,tinycolor.mostReadable(baseColor,["#fff","#000"],args))};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor.hexNames=function flip(o){var flipped={};for(var i in o)o.hasOwnProperty(i)&&(flipped[o[i]]=i);return flipped}(names);function boundAlpha(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function bound01(n,max){(function isOnePointZero(n){return"string"==typeof n&&-1!=n.indexOf(".")&&1===parseFloat(n)})(n)&&(n="100%");var processPercent=function isPercentage(n){return"string"==typeof n&&-1!=n.indexOf("%")}(n);return n=Math.min(max,Math.max(0,parseFloat(n))),processPercent&&(n=parseInt(n*max,10)/100),Math.abs(n-max)<1e-6?1:n%max/parseFloat(max)}function clamp01(val){return Math.min(1,Math.max(0,val))}function parseIntFromHex(val){return parseInt(val,16)}function pad2(c){return 1==c.length?"0"+c:""+c}function convertToPercentage(n){return n<=1&&(n=100*n+"%"),n}function convertDecimalToHex(d){return Math.round(255*parseFloat(d)).toString(16)}function convertHexToDecimal(h){return parseIntFromHex(h)/255}var CSS_UNIT,PERMISSIVE_MATCH3,PERMISSIVE_MATCH4,matchers=(PERMISSIVE_MATCH3="[\\s|\\(]+("+(CSS_UNIT="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",{CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function isValidCSSUnit(color){return!!matchers.CSS_UNIT.exec(color)}var simpleCheckForValidColor=function simpleCheckForValidColor(data){var checked=0,passed=0;return lodash_es_forEach(["r","g","b","a","h","s","l","v"],(function(letter){if(data[letter]&&(checked+=1,isNaN(data[letter])||(passed+=1),"s"===letter||"l"===letter)){/^\d+%$/.test(data[letter])&&(passed+=1)}})),checked===passed&&data},toState=function toState(data,oldHue){var color=data.hex?tinycolor(data.hex):tinycolor(data),hsl=color.toHsl(),hsv=color.toHsv(),rgb=color.toRgb(),hex=color.toHex();return 0===hsl.s&&(hsl.h=oldHue||0,hsv.h=oldHue||0),{hsl:hsl,hex:"000000"===hex&&0===rgb.a?"transparent":"#"+hex,rgb:rgb,hsv:hsv,oldHue:data.h||oldHue||hsl.h,source:data.source}},isValidHex=function isValidHex(hex){if("transparent"===hex)return!0;var lh="#"===String(hex).charAt(0)?1:0;return hex.length!==4+lh&&hex.length<7+lh&&tinycolor(hex).isValid()},getContrastingColor=function getContrastingColor(data){if(!data)return"#fff";var col=toState(data);return"transparent"===col.hex?"rgba(0,0,0,0.4)":(299*col.rgb.r+587*col.rgb.g+114*col.rgb.b)/1e3>=128?"#000":"#fff"},isvalidColorString=function isvalidColorString(string,type){return tinycolor(type+" ("+string.replace("°","")+")")._ok},ColorWrap_extends=Object.assign||function(target){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:"span";return function(_React$Component){function Focus(){var _ref,_temp,_this;!function interaction_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Focus);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _temp=_this=interaction_possibleConstructorReturn(this,(_ref=Focus.__proto__||Object.getPrototypeOf(Focus)).call.apply(_ref,[this].concat(args))),_this.state={focus:!1},_this.handleFocus=function(){return _this.setState({focus:!0})},_this.handleBlur=function(){return _this.setState({focus:!1})},interaction_possibleConstructorReturn(_this,_temp)}return function interaction_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Focus,_React$Component),interaction_createClass(Focus,[{key:"render",value:function render(){return react.createElement(Span,{onFocus:this.handleFocus,onBlur:this.handleBlur},react.createElement(Component,interaction_extends({},this.props,this.state)))}}]),Focus}(react.Component)}((function Swatch(_ref){var color=_ref.color,style=_ref.style,_ref$onClick=_ref.onClick,onClick=void 0===_ref$onClick?function(){}:_ref$onClick,onHover=_ref.onHover,_ref$title=_ref.title,title=void 0===_ref$title?color:_ref$title,children=_ref.children,focus=_ref.focus,_ref$focusStyle=_ref.focusStyle,focusStyle=void 0===_ref$focusStyle?{}:_ref$focusStyle,transparent="transparent"===color,styles=(0,lib.ZP)({default:{swatch:Swatch_extends({background:color,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},style,focus?focusStyle:{})}}),optionalEvents={};return onHover&&(optionalEvents.onMouseOver=function handleHover(e){return onHover(color,e)}),react.createElement("div",Swatch_extends({style:styles.swatch,onClick:function handleClick(e){return onClick(color,e)},title:title,tabIndex:0,onKeyDown:function handleKeyDown(e){return 13===e.keyCode&&onClick(color,e)}},optionalEvents),children,transparent&&react.createElement(common_Checkboard,{borderRadius:styles.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))})),alpha_AlphaPointer=function AlphaPointer(_ref){var direction=_ref.direction,styles=(0,lib.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===direction});return react.createElement("div",{style:styles.picker})},alpha_Alpha_extends=Object.assign||function(target){for(var i=1;iarrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=2&bitmask?new _SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index1&&(data.a=1),_this.props.onChange({h:_this.props.hsl.h,s:_this.props.hsl.s,l:_this.props.hsl.l,a:Math.round(100*data.a)/100,source:"rgb"},e)):(data.h||data.s||data.l)&&("string"==typeof data.s&&data.s.includes("%")&&(data.s=data.s.replace("%","")),"string"==typeof data.l&&data.l.includes("%")&&(data.l=data.l.replace("%","")),1==data.s?data.s=.01:1==data.l&&(data.l=.01),_this.props.onChange({h:data.h||_this.props.hsl.h,s:Number(lodash_es_isUndefined(data.s)?_this.props.hsl.s:data.s),l:Number(lodash_es_isUndefined(data.l)?_this.props.hsl.l:data.l),source:"hsl"},e))},_this.showHighlight=function(e){e.currentTarget.style.background="#eee"},_this.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==props.hsl.a&&"hex"===props.view?_this.state={view:"rgb"}:_this.state={view:props.view},_this}return function ChromeFields_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(ChromeFields,_React$Component),ChromeFields_createClass(ChromeFields,[{key:"render",value:function render(){var _this2=this,styles=(0,lib.ZP)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),fields=void 0;return"hex"===this.state.view?fields=react.createElement("div",{style:styles.fields,className:"flexbox-fix"},react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?fields=react.createElement("div",{style:styles.fields,className:"flexbox-fix"},react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),react.createElement("div",{style:styles.alpha},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(fields=react.createElement("div",{style:styles.fields,className:"flexbox-fix"},react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),react.createElement("div",{style:styles.field},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),react.createElement("div",{style:styles.alpha},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),react.createElement("div",{style:styles.wrap,className:"flexbox-fix"},fields,react.createElement("div",{style:styles.toggle},react.createElement("div",{style:styles.icon,onClick:this.toggleViews,ref:function ref(icon){return _this2.icon=icon}},react.createElement(UnfoldMoreHorizontalIcon.Z,{style:styles.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(nextProps,state){return 1!==nextProps.hsl.a&&"hex"===state.view?{view:"rgb"}:null}}]),ChromeFields}(react.Component);ChromeFields.defaultProps={view:"hex"};var chrome_ChromeFields=ChromeFields,chrome_ChromePointer=function ChromePointer(){var styles=(0,lib.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return react.createElement("div",{style:styles.picker})},chrome_ChromePointerCircle=function ChromePointerCircle(){var styles=(0,lib.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return react.createElement("div",{style:styles.picker})},Chrome=function Chrome(_ref){var width=_ref.width,onChange=_ref.onChange,disableAlpha=_ref.disableAlpha,rgb=_ref.rgb,hsl=_ref.hsl,hsv=_ref.hsv,hex=_ref.hex,renderers=_ref.renderers,_ref$styles=_ref.styles,passedStyles=void 0===_ref$styles?{}:_ref$styles,_ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,defaultView=_ref.defaultView,styles=(0,lib.ZP)(lodash_es_merge({default:{picker:{width:width,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+rgb.r+", "+rgb.g+", "+rgb.b+", "+rgb.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},passedStyles),{disableAlpha:disableAlpha});return react.createElement("div",{style:styles.picker,className:"chrome-picker "+className},react.createElement("div",{style:styles.saturation},react.createElement(common_Saturation,{style:styles.Saturation,hsl:hsl,hsv:hsv,pointer:chrome_ChromePointerCircle,onChange:onChange})),react.createElement("div",{style:styles.body},react.createElement("div",{style:styles.controls,className:"flexbox-fix"},react.createElement("div",{style:styles.color},react.createElement("div",{style:styles.swatch},react.createElement("div",{style:styles.active}),react.createElement(common_Checkboard,{renderers:renderers}))),react.createElement("div",{style:styles.toggles},react.createElement("div",{style:styles.hue},react.createElement(common_Hue,{style:styles.Hue,hsl:hsl,pointer:chrome_ChromePointer,onChange:onChange})),react.createElement("div",{style:styles.alpha},react.createElement(common_Alpha,{style:styles.Alpha,rgb:rgb,hsl:hsl,pointer:chrome_ChromePointer,renderers:renderers,onChange:onChange})))),react.createElement(chrome_ChromeFields,{rgb:rgb,hsl:hsl,hex:hex,view:defaultView,onChange:onChange,disableAlpha:disableAlpha})))};Chrome.propTypes={width:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().number]),disableAlpha:prop_types_default().bool,styles:prop_types_default().object,defaultView:prop_types_default().oneOf(["hex","rgb","hsl"])},Chrome.defaultProps={width:225,disableAlpha:!1,styles:{}};common_ColorWrap(Chrome);var compact_CompactColor=function CompactColor(_ref){var color=_ref.color,_ref$onClick=_ref.onClick,onClick=void 0===_ref$onClick?function(){}:_ref$onClick,onSwatchHover=_ref.onSwatchHover,active=_ref.active,styles=(0,lib.ZP)({default:{color:{background:color,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:getContrastingColor(color),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:active,"color-#FFFFFF":"#FFFFFF"===color,transparent:"transparent"===color});return react.createElement(common_Swatch,{style:styles.color,color:color,onClick:onClick,onHover:onSwatchHover,focusStyle:{boxShadow:"0 0 4px "+color}},react.createElement("div",{style:styles.dot}))},compact_CompactFields=function CompactFields(_ref){var hex=_ref.hex,rgb=_ref.rgb,onChange=_ref.onChange,styles=(0,lib.ZP)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:hex},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),handleChange=function handleChange(data,e){data.r||data.g||data.b?onChange({r:data.r||rgb.r,g:data.g||rgb.g,b:data.b||rgb.b,source:"rgb"},e):onChange({hex:data.hex,source:"hex"},e)};return react.createElement("div",{style:styles.fields,className:"flexbox-fix"},react.createElement("div",{style:styles.active}),react.createElement(common_EditableInput,{style:{wrap:styles.HEXwrap,input:styles.HEXinput,label:styles.HEXlabel},label:"hex",value:hex,onChange:handleChange}),react.createElement(common_EditableInput,{style:{wrap:styles.RGBwrap,input:styles.RGBinput,label:styles.RGBlabel},label:"r",value:rgb.r,onChange:handleChange}),react.createElement(common_EditableInput,{style:{wrap:styles.RGBwrap,input:styles.RGBinput,label:styles.RGBlabel},label:"g",value:rgb.g,onChange:handleChange}),react.createElement(common_EditableInput,{style:{wrap:styles.RGBwrap,input:styles.RGBinput,label:styles.RGBlabel},label:"b",value:rgb.b,onChange:handleChange}))},Compact=function Compact(_ref){var onChange=_ref.onChange,onSwatchHover=_ref.onSwatchHover,colors=_ref.colors,hex=_ref.hex,rgb=_ref.rgb,_ref$styles=_ref.styles,passedStyles=void 0===_ref$styles?{}:_ref$styles,_ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,styles=(0,lib.ZP)(lodash_es_merge({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},passedStyles)),handleChange=function handleChange(data,e){data.hex?isValidHex(data.hex)&&onChange({hex:data.hex,source:"hex"},e):onChange(data,e)};return react.createElement(common_Raised,{style:styles.Compact,styles:passedStyles},react.createElement("div",{style:styles.compact,className:"compact-picker "+className},react.createElement("div",null,lodash_es_map(colors,(function(c){return react.createElement(compact_CompactColor,{key:c,color:c,active:c.toLowerCase()===hex,onClick:handleChange,onSwatchHover:onSwatchHover})})),react.createElement("div",{style:styles.clear})),react.createElement(compact_CompactFields,{hex:hex,rgb:rgb,onChange:handleChange})))};Compact.propTypes={colors:prop_types_default().arrayOf(prop_types_default().string),styles:prop_types_default().object},Compact.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};common_ColorWrap(Compact);var github_GithubSwatch=(0,lib.tz)((function GithubSwatch(_ref){var hover=_ref.hover,color=_ref.color,onClick=_ref.onClick,onSwatchHover=_ref.onSwatchHover,hoverSwatch={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},styles=(0,lib.ZP)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:hoverSwatch}},{hover:hover});return react.createElement("div",{style:styles.swatch},react.createElement(common_Swatch,{color:color,onClick:onClick,onHover:onSwatchHover,focusStyle:hoverSwatch}))})),Github=function Github(_ref){var width=_ref.width,colors=_ref.colors,onChange=_ref.onChange,onSwatchHover=_ref.onSwatchHover,triangle=_ref.triangle,_ref$styles=_ref.styles,passedStyles=void 0===_ref$styles?{}:_ref$styles,_ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,styles=(0,lib.ZP)(lodash_es_merge({default:{card:{width:width,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},passedStyles),{"hide-triangle":"hide"===triangle,"top-left-triangle":"top-left"===triangle,"top-right-triangle":"top-right"===triangle,"bottom-left-triangle":"bottom-left"===triangle,"bottom-right-triangle":"bottom-right"===triangle}),handleChange=function handleChange(hex,e){return onChange({hex:hex,source:"hex"},e)};return react.createElement("div",{style:styles.card,className:"github-picker "+className},react.createElement("div",{style:styles.triangleShadow}),react.createElement("div",{style:styles.triangle}),lodash_es_map(colors,(function(c){return react.createElement(github_GithubSwatch,{color:c,key:c,onClick:handleChange,onSwatchHover:onSwatchHover})})))};Github.propTypes={width:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().number]),colors:prop_types_default().arrayOf(prop_types_default().string),triangle:prop_types_default().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:prop_types_default().object},Github.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};common_ColorWrap(Github);var HuePointer=function SliderPointer(_ref){var direction=_ref.direction,styles=(0,lib.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===direction});return react.createElement("div",{style:styles.picker})},Hue_extends=Object.assign||function(target){for(var i=1;i.5});return react.createElement("div",{style:styles.picker})},PhotoshopPointer=function PhotoshopPointerCircle(){var styles=(0,lib.ZP)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return react.createElement("div",{style:styles.pointer},react.createElement("div",{style:styles.left},react.createElement("div",{style:styles.leftInside})),react.createElement("div",{style:styles.right},react.createElement("div",{style:styles.rightInside})))},photoshop_PhotoshopButton=function PhotoshopButton(_ref){var onClick=_ref.onClick,label=_ref.label,children=_ref.children,active=_ref.active,styles=(0,lib.ZP)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:active});return react.createElement("div",{style:styles.button,onClick:onClick},label||children)},photoshop_PhotoshopPreviews=function PhotoshopPreviews(_ref){var rgb=_ref.rgb,currentColor=_ref.currentColor,styles=(0,lib.ZP)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+rgb.r+","+rgb.g+", "+rgb.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:currentColor,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return react.createElement("div",null,react.createElement("div",{style:styles.label},"new"),react.createElement("div",{style:styles.swatches},react.createElement("div",{style:styles.new}),react.createElement("div",{style:styles.current})),react.createElement("div",{style:styles.label},"current"))},Photoshop_createClass=function(){function defineProperties(target,props){for(var i=0;i100&&(data.a=100),data.a/=100,onChange({h:hsl.h,s:hsl.s,l:hsl.l,a:data.a,source:"rgb"},e))};return react.createElement("div",{style:styles.fields,className:"flexbox-fix"},react.createElement("div",{style:styles.double},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"hex",value:hex.replace("#",""),onChange:handleChange})),react.createElement("div",{style:styles.single},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"r",value:rgb.r,onChange:handleChange,dragLabel:"true",dragMax:"255"})),react.createElement("div",{style:styles.single},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"g",value:rgb.g,onChange:handleChange,dragLabel:"true",dragMax:"255"})),react.createElement("div",{style:styles.single},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"b",value:rgb.b,onChange:handleChange,dragLabel:"true",dragMax:"255"})),react.createElement("div",{style:styles.alpha},react.createElement(common_EditableInput,{style:{input:styles.input,label:styles.label},label:"a",value:Math.round(100*rgb.a),onChange:handleChange,dragLabel:"true",dragMax:"100"})))},SketchPresetColors_extends=Object.assign||function(target){for(var i=1;i1?pixel/(max-1):0)};ctx.globalAlpha=1;for(var pixel=0;pixel0?(0,legendCommonFunction.v_)(orderedSelectedColors):[]}),[orderedSelectedColors]),_d=react.useState(!1),popUpState=_d[0],setPopUpState=_d[1],_e=react.useState(null),anchorEl=_e[0],setAnchorEl=_e[1],openEditModal=react.useCallback((function(data){setPopUpState(data.bubbles),setAnchorEl(null)}),[]);react.useEffect((function(){isModal&&(popUpState?document.removeEventListener("mousedown",handleModalClick):document.addEventListener("mousedown",handleModalClick))}),[handleModalClick,isModal,popUpState]);var scaleBreakpoints=react.useCallback((function(value){value&&(editedData({colorArray:value,customizeFlag:!0}),setBreakPointValues(value),setCustomizedBreakpoints(value))}),[editedData]),appendCustomizedBreakPoints=react.useCallback((function(){editedData({colorArray:customizedBreakpoints||breakpointValues,customizeFlag:!0})}),[breakpointValues,customizedBreakpoints,editedData]),open=Boolean(anchorEl),id=open?"simple-popover":void 0,divRef=(0,react.useRef)(null),theme=(0,styles_useTheme.Z)();return arrayOfColors.length>0&&react.createElement(styles_ThemeProvider_ThemeProvider,{theme:theme},react.createElement(Legend_StyledRootContainer,{ref:divRef},react.createElement(Legend_StyledColorScaleContainer,{onClick:appendCustomizedBreakPoints},react.createElement(Legend_StyledTextureContainer,null,react.createElement(ColorScale,{arrayOfColors:arrayOfColors})),react.createElement(StyledCustomScales,null,customScalesName+" Copy")),react.createElement("div",{className:"breadCrumbs"},react.createElement(IconButton_IconButton,{size:"small",style:{marginTop:"8px"},onClick:function(event){document.removeEventListener("mousedown",handleModalClick),setAnchorEl(event.currentTarget)}},react.createElement(MoreHoriz.Z,{fontSize:"small"}))),react.createElement(Popover.ZP,{id:id,open:open,anchorEl:anchorEl,onClose:function(){setAnchorEl(null)},anchorOrigin:{vertical:"top",horizontal:"right"}},react.createElement("div",{style:{height:"60px",width:"80px"}},react.createElement(StyledEditContainer,{onClick:openEditModal},react.createElement(Edit.Z,{style:{margin:"5px 3px -5px 5px",cursor:"pointer"},fontSize:"small"})," ","Edit"),react.createElement(StyledEditContainer,{onClick:function(){setBreakPointValues([]),editedData({colorArray:colorScaleBreakpoints,customizeFlag:!1})}},react.createElement(DeleteOutlined.Z,{style:{margin:"5px 3px -5px 5px",cursor:"pointer"},fontSize:"small"})," ","Delete"))),!0===popUpState&&react.createElement(CustomizedDialogs,{openModal:openEditModal,scaleBreakpoints:scaleBreakpoints,scaleData:orderedSelectedColors,customScalesName:customScalesName})))},color_tables=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/color-tables.json"),StyledBox=(0,esm_styled.Z)(Box.Z)((function(_a){var theme=_a.theme;return{margin:theme.spacing(3),width:theme.spacing(38),border:"1px solid #dadada","& .MuiButtonBase-root.MuiAccordionSummary-root":{minHeight:30,marginLeft:-15},"& .MuiAccordionSummary-content":{height:0,marginTop:0},"& .expandMoreIcon":{marginRight:8,marginTop:-4},"& .MuiPaper-root.MuiAccordion-root.Mui-expanded.MuiAccordion-rounded.MuiPaper-elevation1.MuiPaper-rounded":{border:"1px solid #dadada"},"& .makeStyles-accordion-1 .MuiAccordionDetails-root":{marginTop:-15},"& .MuiAccordionDetails-root":{display:"block","& .colorScalesDetails":{marginLeft:-27}},"& .MuiAccordion-root.Mui-expanded":{margin:"auto"},"& h5":{marginTop:0,marginLeft:-7,height:0}}})),ColorSelectorAccordion=function(props){var _a,_b,getColorScaleArray,containerRef=react.useRef(null),colorScaleBreakpoints=[],_c=react.useState(""),customScalesName=_c[0],setCustomScalesName=_c[1],_d=react.useState([]),duplicatedData=_d[0],setDuplicatedData=_d[1];customScalesName&&(getColorScaleArray=color_tables.find((function(value){return value.name===customScalesName}))),null==getColorScaleArray||getColorScaleArray.colors.forEach((function(value){colorScaleBreakpoints.push({position:value[0],color:(0,legendCommonFunction.fc)(value).color})}));var breakpointValues=(null===(_a=props.breakPointFlag)||void 0===_a?void 0:_a.length)>0?props.breakPointFlag:colorScaleBreakpoints,editedData=react.useCallback((function(data){props.getEditedBreakPoint({colorArray:data.colorArray,customizeFlag:data.customizeFlag})}),[props]),isCustomScale=react.useCallback((function(data){setCustomScalesName(data)}),[]),getDuplicatedLegendData=react.useCallback((function(data){setDuplicatedData(data)}),[]),_e=react.useState("panel1"),expanded=_e[0],setExpanded=_e[1],handleChange=function(panel){return function(_event_,newExpanded){setExpanded(!!newExpanded&&panel)}};if((null==duplicatedData?void 0:duplicatedData.length)>0)var testComponent=null==duplicatedData?void 0:duplicatedData.map((function(val,index){return react.createElement(LegendComp,{colorScaleBreakpoints:val,editedData:editedData,isModal:props.isModal,handleModalClick:props.handleModalClick,customScalesName:val[0].name,key:index})}));return react.createElement("div",{ref:containerRef,className:"Container",style:{width:"316px",position:"absolute",zIndex:1e3,top:(0,legendCommonFunction.hp)(props.cssLegendStyles,props.isHorizontal,props.legendScaleSize).top,left:(0,legendCommonFunction.hp)(props.cssLegendStyles,props.isHorizontal,props.legendScaleSize).left,right:(0,legendCommonFunction.hp)(props.cssLegendStyles,props.isHorizontal,props.legendScaleSize).right,bottom:(0,legendCommonFunction.hp)(props.cssLegendStyles,props.isHorizontal,props.legendScaleSize).bottom}},!props.isModal&&react.createElement("div",{style:{cursor:"pointer"}},react.createElement(Cancel.Z,{style:{position:"absolute",top:"-10px",right:"-10px",cursor:"pointer",color:"#007079"},onMouseOver:function(e){e.preventDefault(),e.target.style.color="#1099a5"},onMouseOut:function(e){e.target.style.color="#007079"},onClick:props.setIsOpen})),react.createElement(StyledBox,null,react.createElement(Accordion_Accordion,{expanded:"panel1"===expanded,onChange:handleChange("panel1")},react.createElement(AccordionSummary_AccordionSummary,{className:"colorScaleSummary"},react.createElement(ExpandMore.Z,{className:"expandMoreIcon",fontSize:"medium"}),react.createElement("h5",null,"Color Scales")),react.createElement(AccordionDetails_AccordionDetails,{className:"colorScaleDetails"},react.createElement(ColorSelectorWrapper,{useColorTableColors:!0,newColorScaleData:null==props?void 0:props.newColorScaleData,colorTables:null==props?void 0:props.colorTables,currentLegendName:null==props?void 0:props.currentLegendName,isCustomScale:isCustomScale,getDuplicatedLegendData:getDuplicatedLegendData}),((null===(_b=null==breakpointValues?void 0:breakpointValues.colorArray)||void 0===_b?void 0:_b.length)>0||(null==breakpointValues?void 0:breakpointValues.length)>0)&&customScalesName&&react.createElement(react.Fragment,null,react.createElement("h5",null,"Custom scales: "),react.createElement("div",{style:{marginTop:-12,marginBottom:-15}},testComponent,react.createElement("br",null))))),react.createElement(Accordion_Accordion,{expanded:"panel2"===expanded,onChange:handleChange("panel2")},react.createElement(AccordionSummary_AccordionSummary,null,react.createElement(ExpandMore.Z,{className:"expandMoreIcon",fontSize:"medium"}),react.createElement("h5",null,"Color Sampling")),react.createElement(AccordionDetails_AccordionDetails,null,react.createElement("h5",null,"Range :"),react.createElement(ColorSelectorWrapper,{useRange:!0,getRange:null==props?void 0:props.getRange,isCont:null==props?void 0:props.isCont,selectedRangeType:null==props?void 0:props.selectedRangeType}),react.createElement("h5",{style:{marginTop:10}},"Interpolations :"),react.createElement(ColorSelectorWrapper,{useInterpolation:!0,isCont:null==props?void 0:props.isCont,getInterpolation:null==props?void 0:props.getInterpolation,selectedInterpolationType:null==props?void 0:props.selectedInterpolationType})))))},constants=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/component/Legend/constants.js"),DiscreteLegend_assign=function(){return DiscreteLegend_assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]0){var matchedColorsArrays=arrayOfColors_1.find((function(value){return value[0]===code}));matchedColorsArrays&&itemColor.push({color:(0,legendCommonFunction.fc)(matchedColorsArrays).color,name:key}),itemName.push(key)}else{(matchedColorsArrays=d3ColorArrays_1.find((function(_value,index){return index===code})))&&itemColor.push({color:matchedColorsArrays})}}))),(null==getColorScaleData?void 0:getColorScaleData.color)&&(getColorScaleData.color.forEach((function(key){itemColor.push({color:(0,legendCommonFunction.fc)(key).color})})),useSelectorLegend=!0),(null==getColorScaleData?void 0:getColorScaleData.colorsObject)&&(getColorScaleData.colorsObject.forEach((function(key){itemColor.push({color:key})})),itemName=getColorScaleData.legendColorName,useSelectorLegend=!0),colorLegend=discreteLegendUtil(itemColor,useSelectorLegend,horizontal),totalRect=void 0,totalRect=useSelectorLegend?(null==getColorScaleData?void 0:getColorScaleData.color)?getColorScaleData.color.length:getColorScaleData.colorsObject.length:itemColor.length,(currentDiv=(0,src.Ys)(divRef.current)).append("div").text(dataObjectName).style("color","grey").style("white-space","nowrap").style("overflow","hidden").style("width","150px").style("text-overflow","ellipsis").style("margin-bottom",horizontal?"5px":"0px").style("font-size",legendFontSize&&legendFontSize>0?"".concat(legendFontSize,"px"):"16px").style("transform",horizontal?"none":"translate(-69px, 80px) rotate(270deg)"),currentDiv.style("margin",horizontal?"5px 0px 0px 15px":"0px 5px 0px 5px").style("width",legendWidth).append("svg").call(colorLegend).attr("viewBox",horizontal?"0 0 ".concat(totalRect," 1.5"):"0 0 2 ".concat(totalRect)).attr("preserveAspectRatio","none").style("font-size",".4").style("margin-left",horizontal?"0":"20px").attr("height",legendHeight).attr("width",horizontal?legendScaleSize<200?190:legendScaleSize-10:"40px"),[3,6];case 5:return error_1=_a.sent(),console.error(error_1),[3,6];case 6:return[2]}}))}))}())}),[discreteData,colorName,colorTables,horizontal,getColorScaleData,dataObjectName,legendFontSize,tickFontSize,numberOfTicks,legendScaleSize,legendWidth,legendHeight]),react.createElement("div",{style:DiscreteLegend_assign({position:"absolute",minHeight:"70px",borderRadius:"5px",zIndex:999,margin:"10px"},cssLegendStyles)},react.createElement("div",{id:id||"disc-legend - ".concat(generateUniqueId),ref:divRef}))},ContinuousLegend_assign=function(){return ContinuousLegend_assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i0&&t[t.length-1])||6!==op[0]&&2!==op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]0&&(getColorScaleData.color?legendColors=getColorScaleData.color:getColorScaleData.arrayData&&(legendColors=getColorScaleData.arrayData)),isD3Colors=d3ColorScale.h.find((function(value){return(null==value?void 0:value.name)===colorName})),isD3Colors&&!1===isD3Colors.discrete&&(arrayData_1=[],d3ColorArrays_1=(0,legendCommonFunction.zl)(colorName,d3ColorScale.h),(0,src.w6H)(10).map((function(d){return{color:d3ColorArrays_1(d/10)}})).forEach((function(colorsObject,index){var _a,_b,_c;arrayData_1.push(["0."+index,null===(_a=(0,color.ZP)(colorsObject.color))||void 0===_a?void 0:_a.rgb().r,null===(_b=(0,color.ZP)(colorsObject.color))||void 0===_b?void 0:_b.rgb().g,null===(_c=(0,color.ZP)(colorsObject.color))||void 0===_c?void 0:_c.rgb().b])})),legendColors=arrayData_1),getColorTableScale_1=null===(_a="string"==typeof colorTables?parsedColorTables:colorTables)||void 0===_a?void 0:_a.find((function(value){return getColorScaleData?value.name===(null==getColorScaleData?void 0:getColorScaleData.name):value.name===colorName})),maxValue_1=legendColors.length-1,isNearest&&(nColors=legendColors.length,leftEnd_1=0,rightEnd_1=0+(delta_1=1/nColors),legendColors.forEach((function(val){nearestData_1.push({breakPoint:Number(leftEnd_1.toFixed(2)),color:(0,legendCommonFunction.fc)([val[0],val[1],val[2],val[3]]).color},{breakPoint:Number(rightEnd_1.toFixed(2)),color:(0,legendCommonFunction.fc)([val[0],val[1],val[2],val[3]]).color}),leftEnd_1+=delta_1,rightEnd_1+=delta_1}))),colorMapFunction){for(rgbValue=[],i=0;i<=1;i+=.05)value=colorMapFunction(i),rgbValue.push([i.toFixed(2),value[0],value[1],value[2]]);legendColors=rgbValue}return arrOfNum=null==breakPoint?void 0:breakPoint.map((function(str){return Number(str)})),userDefinedDomain_1=arrOfNum||[],legendColors.forEach((function(value,index){var domainIndex;domainIndex=userDefinedDomain_1[index]?userDefinedDomain_1[index]:value[0],itemColor.push({breakPoint:!0===(null==getColorTableScale_1?void 0:getColorTableScale_1.discrete)?(0,legendCommonFunction.fc)(value,maxValue_1).offset:(null==breakPoint?void 0:breakPoint.length)>0?100*domainIndex:100*value[0],color:(0,legendCommonFunction.fc)(value).color})})),0===legendColors.length?[2,[0,0,0]]:((null===(_b=null==editedBreakPointValues?void 0:editedBreakPointValues.colorArray)||void 0===_b?void 0:_b.length)>0&&!0===(null==editedBreakPointValues?void 0:editedBreakPointValues.customizeFlag)&&(options=editedBreakPointValues.colorArray.map((function(row){return{breakPoint:100*row.position,color:row.color}})),itemColor=options),itemColor.sort((function(a,b){return a.breakPoint-b.breakPoint})),svgLegend=(0,src.Ys)(divRef.current).style("margin-right","2px").style("margin-left","2px").append("svg").style("cursor",getColorScaleData?"pointer":"auto").style("border-radius","5px"),defs=svgLegend.append("defs"),svgLegend.attr("width",horizontal?legendScaleSize<200?200:legendScaleSize:"100").attr("height",horizontal?"70":legendScaleSize<200?200:legendScaleSize-17),currentIndex="linear-gradient-"+id+"0",linearGradient=defs.append("linearGradient").attr("id",currentIndex),horizontal&&!reverseRange||!horizontal&&reverseRange?linearGradient.attr("x1","0%").attr("x2",horizontal?"100%":"0%").attr("y1","0%").attr("y2",horizontal?"0%":"100%"):(!horizontal&&!reverseRange||horizontal&&reverseRange)&&linearGradient.attr("x1",horizontal?"100%":"0%").attr("x2","0%").attr("y1",horizontal?"0%":"100%").attr("y2","0%"),colorScale_1=(0,src.BYU)().domain([0,1]).range([0,400]),linearGradient.selectAll("stop").data(nearestData_1.length>0?nearestData_1:itemColor).enter().append("stop").attr("offset",(function(data){return nearestData_1.length>0?colorScale_1(data.breakPoint)/4+"%":data.breakPoint+"%"})).attr("stop-color",(function(data){return data.color})),svgLegend.append("rect").attr("x",25).attr("y",horizontal?30:18).attr("width",horizontal?legendScaleSize<200?159:legendScaleSize-40:20).attr("height",horizontal?20:legendScaleSize<200?159:legendScaleSize-40).style("fill","url(#"+currentIndex+")"),svgLegend.append("text").attr("x",horizontal?25:-168).attr("y",horizontal?20:15).style("text-anchor","left").style("transform",horizontal?"none":"left").style("transform",horizontal?"none":"rotate(270deg)").style("fill","grey").style("font-size",legendFontSize&&legendFontSize>0?"".concat(legendFontSize,"px"):"16px").text(dataObjectName),xLeg=(isLog?(0,src.eh9)():(0,src.BYU)()).domain(reverseRange?[max,min]:[min,max]).range([10,legendScaleSize<200?168:legendScaleSize-32]),yLeg=(isLog?(0,src.eh9)():(0,src.BYU)()).domain(reverseRange?[min,max]:[max,min]).range([10,legendScaleSize<200?168:legendScaleSize-32]),horizontalAxisLeg=(0,src.LLu)(xLeg).tickValues(xLeg.ticks(0).concat(xLeg.domain(),(0,legendCommonFunction.Tm)(xLeg.domain(),numberOfTicks))),VerticalAxisLeg=(0,src.Khx)(yLeg).tickValues(yLeg.ticks(0).concat(yLeg.domain(),(0,legendCommonFunction.Tm)(xLeg.domain(),numberOfTicks))),isRangeShown&&svgLegend.attr("class","axis").append("g").attr("transform",horizontal?"translate(16, 50)":"translate(45, 7.5)").style("font-size",tickFontSize&&tickFontSize>0?"".concat(tickFontSize,"px"):"12px").style("font-weight","700").call(horizontal?horizontalAxisLeg:VerticalAxisLeg).style("height",15),[3,6]);case 5:return error_1=_c.sent(),console.error(error_1),[3,6];case 6:return[2]}}))}))}())}),[min,max,colorName,colorTables,horizontal,getColorScaleData,colorMapFunction,dataObjectName,id,reverseRange,isLog,isNearest,isRangeShown,legendFontSize,tickFontSize,numberOfTicks,legendScaleSize]),react.createElement("div",{style:ContinuousLegend_assign({position:"absolute",minHeight:"70px",zIndex:999,margin:"10px"},cssLegendStyles)},react.createElement("div",{id:id||"cont-legend - ".concat(generateUniqueId),ref:divRef}))},ColorLegend=function(_a){var _b,interpolationType,horizontal=_a.horizontal,_c=_a.colorTables,colorTables=void 0===_c?color_tables:_c,_d=_a.min,min=void 0===_d?0:_d,_e=_a.max,max=void 0===_e?1:_e,dataObjectName=_a.dataObjectName,_f=_a.colorName,colorName=void 0===_f?"Rainbow":_f,discreteData=_a.discreteData,colorNameFromSelector=_a.colorNameFromSelector,reverseRange=_a.reverseRange,getColorRange=_a.getColorRange,getBreakpointValue=_a.getBreakpointValue,getScale=_a.getScale,getInterpolateMethod=_a.getInterpolateMethod,isModal=_a.isModal,_g=_a.isRangeShown,isRangeShown=void 0===_g||_g,_h=_a.legendFontSize,legendFontSize=void 0===_h?18:_h,_j=_a.tickFontSize,tickFontSize=void 0===_j?12:_j,_k=_a.numberOfTicks,numberOfTicks=void 0===_k?1:_k,_l=_a.legendScaleSize,legendScaleSize=void 0===_l?200:_l,_m=_a.cssLegendStyles,cssLegendStyles=void 0===_m?constants.P:_m,_o=_a.isOpenProp,isOpenProp=void 0!==_o&&_o,_p=_a.openColorSelector,openColorSelector=void 0===_p||_p,generateUniqueId=Math.ceil(9999*Math.random()).toString(),divRef=(0,react.useRef)(null),colorSelectorRef=(0,react.useRef)(null),_q=react.useState(isOpenProp),isOpen=_q[0],setIsOpen=_q[1],_r=react.useState(!0),isAuto=_r[0],setAuto=_r[1],_s=react.useState(),newMin=_s[0],setNewMin=_s[1],_t=react.useState(),newMax=_t[0],setNewMax=_t[1],_u=react.useState(!1),isLog=_u[0],setLog=_u[1],_v=react.useState([]),getItemColor=_v[0],setItemColor=_v[1],_w=react.useState(!1),isNearest=_w[0],setIsNearest=_w[1];interpolationType=isNearest?{isNearest:!0}:isLog?{isLog:!0}:{isLinear:!0};var getRange=react.useCallback((function(data){"Auto"===data?(setAuto(!0),getColorRange&&getColorRange({isAuto:!0})):(setAuto(!1),(null==data?void 0:data[0])&&(null==data?void 0:data[1])&&"string"!=typeof data&&(setNewMin(data[0]),setNewMax(data[1]),getColorRange&&getColorRange({range:[data[0],data[1]],isAuto:!1})))}),[getColorRange]),getInterpolation=react.useCallback((function(data){"Logarithmic"===data?(setLog(!0),setIsNearest(!1),getInterpolateMethod&&getInterpolateMethod({isLog:!0,isNearest:!1})):"Nearest"===data?(setIsNearest(!0),setLog(!1),getInterpolateMethod&&getInterpolateMethod({isNearest:!0,isLog:!1})):(setLog(!1),setIsNearest(!1),getInterpolateMethod&&getInterpolateMethod({isLog:!1,isNearest:!1}))}),[getInterpolateMethod]),breakpointValues=react.useCallback((function(data){data&&(setItemColor(data),getBreakpointValue&&getBreakpointValue(data))}),[getBreakpointValue]),toggleColorSelector=(0,react.useCallback)((function(){divRef&&divRef.current&&setIsOpen(!isOpen)}),[isOpen]),_x=react.useState([]),getColorScaleData=_x[0],setGetColorScaleData=_x[1],isColortableColors=null==colorTables?void 0:colorTables.find((function(value){return(null==value?void 0:value.name)===colorName||colorNameFromSelector})),isD3Colors=d3ColorScale.h.find((function(value){return(null==value?void 0:value.name)===colorName||colorNameFromSelector})),_y=react.useState(!(!isColortableColors&&!isD3Colors||!1!==(null==isColortableColors?void 0:isColortableColors.discrete)&&!1!==(null==isD3Colors?void 0:isD3Colors.discrete))),isCont=_y[0],setIsCont=_y[1],getSelectedColorScale=react.useCallback((function(data,value){data.name&&colorNameFromSelector?colorNameFromSelector(data.name):colorNameFromSelector&&colorNameFromSelector(data.legendColorName),getScale&&getScale(data),setGetColorScaleData(data),setIsCont(value),setItemColor([]),getBreakpointValue&&getBreakpointValue({breakpoint:[]})}),[colorNameFromSelector,getBreakpointValue,getScale]),handleModalClick=react.useCallback((function(e){var _a;!(null===(_a=colorSelectorRef.current)||void 0===_a?void 0:_a.contains(e.target))&&isOpen&&setIsOpen(!1)}),[isOpen]);react.useEffect((function(){return isOpen&&isModal?document.addEventListener("mousedown",handleModalClick):document.removeEventListener("mousedown",handleModalClick),function(){return document.removeEventListener("mousedown",handleModalClick)}}),[isOpen,isModal,handleModalClick]);var _z=react.useState(dataObjectName),legendName=_z[0],setLegendName=_z[1];react.useEffect((function(){setLegendName(dataObjectName)}),[dataObjectName]);var _0=react.useState(legendFontSize),legendFontSizeState=_0[0],setLegendFontSize=_0[1];react.useEffect((function(){setLegendFontSize(legendFontSize)}),[legendFontSize]);var _1=react.useState(tickFontSize),tickFontSizeState=_1[0],setTickFontSize=_1[1];react.useEffect((function(){setTickFontSize(tickFontSize)}),[tickFontSize]);var _2=react.useState(numberOfTicks),numberOfTicksState=_2[0],setNumberOfTicks=_2[1];react.useEffect((function(){setNumberOfTicks(numberOfTicks)}),[numberOfTicks]);var _3=react.useState(legendScaleSize),legendScaleSizeState=_3[0],setLegendScaleSize=_3[1];react.useEffect((function(){setLegendScaleSize(legendScaleSize)}),[legendScaleSize]);var theme=(0,styles_useTheme.Z)();return react.createElement(styles_ThemeProvider_ThemeProvider,{theme:theme},react.createElement("div",null,react.createElement("div",{ref:divRef,onClick:toggleColorSelector,style:{display:"inline-block",cursor:"pointer"},title:"Click here to edit"},!0===isCont&&react.createElement(ContinuousLegend,{min:newMin&&!isAuto?newMin:min,max:newMax&&!isAuto?newMax:max,dataObjectName:legendName,colorName:colorName,horizontal:horizontal,getColorScaleData:getColorScaleData,id:generateUniqueId,colorTables:colorTables,reverseRange:reverseRange,editedBreakPointValues:getItemColor,isLog:isLog,isNearest:isNearest,isRangeShown:isRangeShown,legendFontSize:legendFontSizeState,tickFontSize:tickFontSizeState,numberOfTicks:numberOfTicksState,legendScaleSize:legendScaleSizeState,cssLegendStyles:cssLegendStyles}),!1===isCont&&react.createElement(DiscreteColorLegend,{discreteData:discreteData,dataObjectName:legendName,colorName:colorName,horizontal:horizontal,getColorScaleData:getColorScaleData,id:generateUniqueId,colorTables:colorTables,legendFontSize:legendFontSizeState,tickFontSize:tickFontSizeState,numberOfTicks:numberOfTicksState,legendScaleSize:legendScaleSizeState,cssLegendStyles:cssLegendStyles})),react.createElement("div",null,isOpen&&openColorSelector&&react.createElement("div",{style:{display:"inline-block"},ref:colorSelectorRef},react.createElement(ColorSelectorAccordion,{setIsOpen:function(){return setIsOpen(!1)},isModal:isModal,dataObjectName:legendName,isHorizontal:horizontal,colorTables:colorTables,getRange:getRange,isCont:isCont,getEditedBreakPoint:breakpointValues,newColorScaleData:getSelectedColorScale,handleModalClick:handleModalClick,currentLegendName:(null===(_b=null==getColorScaleData?void 0:getColorScaleData.color)||void 0===_b?void 0:_b.length)>0?getColorScaleData.name:colorName,getInterpolation:getInterpolation,legendScaleSize:legendScaleSizeState,cssLegendStyles:cssLegendStyles,selectedInterpolationType:interpolationType,selectedRangeType:isAuto?{isAuto:!0}:{isAuto:!1}})))))}},"./node_modules/@icons/material/CheckIcon.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _extends=Object.assign||function(target){for(var i=1;i=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}(_ref,["fill","width","height","style"]);return _react2.default.createElement("svg",_extends({viewBox:"0 0 24 24",style:_extends({fill:fill,width:width,height:height},style)},props),_react2.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},"./node_modules/@icons/material/UnfoldMoreHorizontalIcon.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _extends=Object.assign||function(target){for(var i=1;i=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}(_ref,["fill","width","height","style"]);return _react2.default.createElement("svg",_extends({viewBox:"0 0 24 24",style:_extends({fill:fill,width:width,height:height},style)},props),_react2.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},"./node_modules/@mui/base/utils/appendOwnerState.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return appendOwnerState}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_isHostComponent__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/base/utils/isHostComponent.js");function appendOwnerState(elementType,otherProps,ownerState){return void 0===elementType||(0,_isHostComponent__WEBPACK_IMPORTED_MODULE_0__.X)(elementType)?otherProps:(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__.Z)({},otherProps,{ownerState:(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__.Z)({},otherProps.ownerState,ownerState)})}},"./node_modules/@mui/base/utils/extractEventHandlers.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function extractEventHandlers(object,excludeKeys=[]){if(void 0===object)return{};const result={};return Object.keys(object).filter((prop=>prop.match(/^on[A-Z]/)&&"function"==typeof object[prop]&&!excludeKeys.includes(prop))).forEach((prop=>{result[prop]=object[prop]})),result}__webpack_require__.d(__webpack_exports__,{_:function(){return extractEventHandlers}})},"./node_modules/@mui/base/utils/isHostComponent.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function isHostComponent(element){return"string"==typeof element}__webpack_require__.d(__webpack_exports__,{X:function(){return isHostComponent}})},"./node_modules/@mui/base/utils/mergeSlotProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return mergeSlotProps}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),extractEventHandlers=__webpack_require__("./node_modules/@mui/base/utils/extractEventHandlers.js");function omitEventHandlers(object){if(void 0===object)return{};const result={};return Object.keys(object).filter((prop=>!(prop.match(/^on[A-Z]/)&&"function"==typeof object[prop]))).forEach((prop=>{result[prop]=object[prop]})),result}function mergeSlotProps(parameters){const{getSlotProps:getSlotProps,additionalProps:additionalProps,externalSlotProps:externalSlotProps,externalForwardedProps:externalForwardedProps,className:className}=parameters;if(!getSlotProps){const joinedClasses=(0,clsx.Z)(null==additionalProps?void 0:additionalProps.className,className,null==externalForwardedProps?void 0:externalForwardedProps.className,null==externalSlotProps?void 0:externalSlotProps.className),mergedStyle=(0,esm_extends.Z)({},null==additionalProps?void 0:additionalProps.style,null==externalForwardedProps?void 0:externalForwardedProps.style,null==externalSlotProps?void 0:externalSlotProps.style),props=(0,esm_extends.Z)({},additionalProps,externalForwardedProps,externalSlotProps);return joinedClasses.length>0&&(props.className=joinedClasses),Object.keys(mergedStyle).length>0&&(props.style=mergedStyle),{props:props,internalRef:void 0}}const eventHandlers=(0,extractEventHandlers._)((0,esm_extends.Z)({},externalForwardedProps,externalSlotProps)),componentsPropsWithoutEventHandlers=omitEventHandlers(externalSlotProps),otherPropsWithoutEventHandlers=omitEventHandlers(externalForwardedProps),internalSlotProps=getSlotProps(eventHandlers),joinedClasses=(0,clsx.Z)(null==internalSlotProps?void 0:internalSlotProps.className,null==additionalProps?void 0:additionalProps.className,className,null==externalForwardedProps?void 0:externalForwardedProps.className,null==externalSlotProps?void 0:externalSlotProps.className),mergedStyle=(0,esm_extends.Z)({},null==internalSlotProps?void 0:internalSlotProps.style,null==additionalProps?void 0:additionalProps.style,null==externalForwardedProps?void 0:externalForwardedProps.style,null==externalSlotProps?void 0:externalSlotProps.style),props=(0,esm_extends.Z)({},internalSlotProps,additionalProps,otherPropsWithoutEventHandlers,componentsPropsWithoutEventHandlers);return joinedClasses.length>0&&(props.className=joinedClasses),Object.keys(mergedStyle).length>0&&(props.style=mergedStyle),{props:props,internalRef:internalSlotProps.ref}}},"./node_modules/@mui/base/utils/resolveComponentProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function resolveComponentProps(componentProps,ownerState,slotState){return"function"==typeof componentProps?componentProps(ownerState,slotState):componentProps}__webpack_require__.d(__webpack_exports__,{x:function(){return resolveComponentProps}})},"./node_modules/@mui/base/utils/useSlotProps.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{y:function(){return useSlotProps}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),_mui_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@mui/utils/useForkRef/useForkRef.js"),_appendOwnerState__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@mui/base/utils/appendOwnerState.js"),_mergeSlotProps__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/base/utils/mergeSlotProps.js"),_resolveComponentProps__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/base/utils/resolveComponentProps.js");const _excluded=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function useSlotProps(parameters){var _parameters$additiona;const{elementType:elementType,externalSlotProps:externalSlotProps,ownerState:ownerState,skipResolvingSlotProps:skipResolvingSlotProps=!1}=parameters,rest=(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__.Z)(parameters,_excluded),resolvedComponentsProps=skipResolvingSlotProps?{}:(0,_resolveComponentProps__WEBPACK_IMPORTED_MODULE_1__.x)(externalSlotProps,ownerState),{props:mergedProps,internalRef:internalRef}=(0,_mergeSlotProps__WEBPACK_IMPORTED_MODULE_2__.L)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},rest,{externalSlotProps:resolvedComponentsProps})),ref=(0,_mui_utils__WEBPACK_IMPORTED_MODULE_4__.Z)(internalRef,null==resolvedComponentsProps?void 0:resolvedComponentsProps.ref,null==(_parameters$additiona=parameters.additionalProps)?void 0:_parameters$additiona.ref);return(0,_appendOwnerState__WEBPACK_IMPORTED_MODULE_5__.$)(elementType,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({},mergedProps,{ref:ref}),ownerState)}},"./node_modules/@mui/icons-material/AddCircleOutlineSharp.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.Z=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutlineSharp")},"./node_modules/@mui/icons-material/Cancel.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.Z=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},"./node_modules/@mui/icons-material/Colorize.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.Z=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"m20.71 5.63-2.34-2.34a.9959.9959 0 0 0-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42M6.92 19 5 17.08l8.06-8.06 1.92 1.92z"}),"Colorize")},"./node_modules/@mui/icons-material/ContentCopy.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.Z=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},"./node_modules/@mui/icons-material/DeleteOutlined.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.Z=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"}),"DeleteOutlined")},"./node_modules/@mui/icons-material/Edit.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.Z=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},"./node_modules/@mui/icons-material/ExpandMore.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.Z=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},"./node_modules/@mui/icons-material/MoreHoriz.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.Z=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz")},"./node_modules/@mui/icons-material/RemoveCircleOutlineSharp.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");exports.Z=void 0;var _createSvgIcon=_interopRequireDefault(__webpack_require__("./node_modules/@mui/icons-material/utils/createSvgIcon.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");exports.Z=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"RemoveCircleOutlineSharp")},"./node_modules/@mui/icons-material/utils/createSvgIcon.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _utils.createSvgIcon}});var _utils=__webpack_require__("./node_modules/@mui/material/utils/index.js")},"./node_modules/@mui/material/Backdrop/Backdrop.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Backdrop_Backdrop}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),Fade=__webpack_require__("./node_modules/@mui/material/Fade/Fade.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getBackdropUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiBackdrop",slot)}(0,generateUtilityClasses.Z)("MuiBackdrop",["root","invisible"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],BackdropRoot=(0,styled.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,ownerState.invisible&&styles.invisible]}})((({ownerState:ownerState})=>(0,esm_extends.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},ownerState.invisible&&{backgroundColor:"transparent"})));var Backdrop_Backdrop=react.forwardRef((function Backdrop(inProps,ref){var _slotProps$root,_ref,_slots$root;const props=(0,useThemeProps.Z)({props:inProps,name:"MuiBackdrop"}),{children:children,className:className,component:component="div",components:components={},componentsProps:componentsProps={},invisible:invisible=!1,open:open,slotProps:slotProps={},slots:slots={},TransitionComponent:TransitionComponent=Fade.Z,transitionDuration:transitionDuration}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),ownerState=(0,esm_extends.Z)({},props,{component:component,invisible:invisible}),classes=(ownerState=>{const{classes:classes,invisible:invisible}=ownerState,slots={root:["root",invisible&&"invisible"]};return(0,composeClasses.Z)(slots,getBackdropUtilityClass,classes)})(ownerState),rootSlotProps=null!=(_slotProps$root=slotProps.root)?_slotProps$root:componentsProps.root;return(0,jsx_runtime.jsx)(TransitionComponent,(0,esm_extends.Z)({in:open,timeout:transitionDuration},other,{children:(0,jsx_runtime.jsx)(BackdropRoot,(0,esm_extends.Z)({"aria-hidden":!0},rootSlotProps,{as:null!=(_ref=null!=(_slots$root=slots.root)?_slots$root:components.Root)?_ref:component,className:(0,clsx.Z)(classes.root,className,null==rootSlotProps?void 0:rootSlotProps.className),ownerState:(0,esm_extends.Z)({},ownerState,null==rootSlotProps?void 0:rootSlotProps.ownerState),classes:classes,ref:ref,children:children}))}))}))},"./node_modules/@mui/material/Box/Box.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Box_Box}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),styled_engine=__webpack_require__("./node_modules/@mui/styled-engine/index.js"),styleFunctionSx=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js"),extendSxProp=__webpack_require__("./node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js"),useTheme=__webpack_require__("./node_modules/@mui/system/esm/useTheme.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["className","component"];var ClassNameGenerator=__webpack_require__("./node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js"),createTheme=__webpack_require__("./node_modules/@mui/material/styles/createTheme.js"),identifier=__webpack_require__("./node_modules/@mui/material/styles/identifier.js");var Box_boxClasses=(0,__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js").Z)("MuiBox",["root"]);const defaultTheme=(0,createTheme.Z)(),Box=function createBox(options={}){const{themeId:themeId,defaultTheme:defaultTheme,defaultClassName:defaultClassName="MuiBox-root",generateClassName:generateClassName}=options,BoxRoot=(0,styled_engine.default)("div",{shouldForwardProp:prop=>"theme"!==prop&&"sx"!==prop&&"as"!==prop})(styleFunctionSx.Z);return react.forwardRef((function Box(inProps,ref){const theme=(0,useTheme.Z)(defaultTheme),_extendSxProp=(0,extendSxProp.Z)(inProps),{className:className,component:component="div"}=_extendSxProp,other=(0,objectWithoutPropertiesLoose.Z)(_extendSxProp,_excluded);return(0,jsx_runtime.jsx)(BoxRoot,(0,esm_extends.Z)({as:component,ref:ref,className:(0,clsx.Z)(className,generateClassName?generateClassName(defaultClassName):defaultClassName),theme:themeId&&theme[themeId]||theme},other))}))}({themeId:identifier.Z,defaultTheme:defaultTheme,defaultClassName:Box_boxClasses.root,generateClassName:ClassNameGenerator.Z.generate});var Box_Box=Box},"./node_modules/@mui/material/ButtonBase/ButtonBase.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ButtonBase_ButtonBase}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),useForkRef=__webpack_require__("./node_modules/@mui/material/utils/useForkRef.js"),useEventCallback=__webpack_require__("./node_modules/@mui/material/utils/useEventCallback.js"),useIsFocusVisible=__webpack_require__("./node_modules/@mui/material/utils/useIsFocusVisible.js"),assertThisInitialized=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"),inheritsLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"),TransitionGroupContext=__webpack_require__("./node_modules/react-transition-group/esm/TransitionGroupContext.js");function getChildMapping(children,mapFn){var result=Object.create(null);return children&&react.Children.map(children,(function(c){return c})).forEach((function(child){result[child.key]=function mapper(child){return mapFn&&(0,react.isValidElement)(child)?mapFn(child):child}(child)})),result}function getProp(child,prop,props){return null!=props[prop]?props[prop]:child.props[prop]}function getNextChildMapping(nextProps,prevChildMapping,onExited){var nextChildMapping=getChildMapping(nextProps.children),children=function mergeChildMappings(prev,next){function getValueForKey(key){return key in next?next[key]:prev[key]}prev=prev||{},next=next||{};var i,nextKeysPending=Object.create(null),pendingKeys=[];for(var prevKey in prev)prevKey in next?pendingKeys.length&&(nextKeysPending[prevKey]=pendingKeys,pendingKeys=[]):pendingKeys.push(prevKey);var childMapping={};for(var nextKey in next){if(nextKeysPending[nextKey])for(i=0;i{if(!inProp&&null!=onExited){const timeoutId=setTimeout(onExited,timeout);return()=>{clearTimeout(timeoutId)}}}),[onExited,inProp,timeout]),(0,jsx_runtime.jsx)("span",{className:rippleClassName,style:rippleStyles,children:(0,jsx_runtime.jsx)("span",{className:childClassName})})},generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js");var ButtonBase_touchRippleClasses=(0,generateUtilityClasses.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const _excluded=["center","classes","className"];let _t,_t2,_t3,_t4,_=t=>t;const enterKeyframe=(0,emotion_react_browser_esm.F4)(_t||(_t=_` 0% { transform: scale(0); opacity: 0.1; @@ -73,4 +73,4 @@ animation-delay: 200ms; } `),ButtonBase_touchRippleClasses.rippleVisible,enterKeyframe,550,(({theme:theme})=>theme.transitions.easing.easeInOut),ButtonBase_touchRippleClasses.ripplePulsate,(({theme:theme})=>theme.transitions.duration.shorter),ButtonBase_touchRippleClasses.child,ButtonBase_touchRippleClasses.childLeaving,exitKeyframe,550,(({theme:theme})=>theme.transitions.easing.easeInOut),ButtonBase_touchRippleClasses.childPulsate,pulsateKeyframe,(({theme:theme})=>theme.transitions.easing.easeInOut));var ButtonBase_TouchRipple=react.forwardRef((function TouchRipple(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiTouchRipple"}),{center:centerProp=!1,classes:classes={},className:className}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),[ripples,setRipples]=react.useState([]),nextKey=react.useRef(0),rippleCallback=react.useRef(null);react.useEffect((()=>{rippleCallback.current&&(rippleCallback.current(),rippleCallback.current=null)}),[ripples]);const ignoringMouseDown=react.useRef(!1),startTimer=(0,useTimeout.Z)(),startTimerCommit=react.useRef(null),container=react.useRef(null),startCommit=react.useCallback((params=>{const{pulsate:pulsate,rippleX:rippleX,rippleY:rippleY,rippleSize:rippleSize,cb:cb}=params;setRipples((oldRipples=>[...oldRipples,(0,jsx_runtime.jsx)(TouchRippleRipple,{classes:{ripple:(0,clsx.Z)(classes.ripple,ButtonBase_touchRippleClasses.ripple),rippleVisible:(0,clsx.Z)(classes.rippleVisible,ButtonBase_touchRippleClasses.rippleVisible),ripplePulsate:(0,clsx.Z)(classes.ripplePulsate,ButtonBase_touchRippleClasses.ripplePulsate),child:(0,clsx.Z)(classes.child,ButtonBase_touchRippleClasses.child),childLeaving:(0,clsx.Z)(classes.childLeaving,ButtonBase_touchRippleClasses.childLeaving),childPulsate:(0,clsx.Z)(classes.childPulsate,ButtonBase_touchRippleClasses.childPulsate)},timeout:550,pulsate:pulsate,rippleX:rippleX,rippleY:rippleY,rippleSize:rippleSize},nextKey.current)])),nextKey.current+=1,rippleCallback.current=cb}),[classes]),start=react.useCallback(((event={},options={},cb=(()=>{}))=>{const{pulsate:pulsate=!1,center:center=centerProp||options.pulsate,fakeElement:fakeElement=!1}=options;if("mousedown"===(null==event?void 0:event.type)&&ignoringMouseDown.current)return void(ignoringMouseDown.current=!1);"touchstart"===(null==event?void 0:event.type)&&(ignoringMouseDown.current=!0);const element=fakeElement?null:container.current,rect=element?element.getBoundingClientRect():{width:0,height:0,left:0,top:0};let rippleX,rippleY,rippleSize;if(center||void 0===event||0===event.clientX&&0===event.clientY||!event.clientX&&!event.touches)rippleX=Math.round(rect.width/2),rippleY=Math.round(rect.height/2);else{const{clientX:clientX,clientY:clientY}=event.touches&&event.touches.length>0?event.touches[0]:event;rippleX=Math.round(clientX-rect.left),rippleY=Math.round(clientY-rect.top)}if(center)rippleSize=Math.sqrt((2*rect.width**2+rect.height**2)/3),rippleSize%2==0&&(rippleSize+=1);else{const sizeX=2*Math.max(Math.abs((element?element.clientWidth:0)-rippleX),rippleX)+2,sizeY=2*Math.max(Math.abs((element?element.clientHeight:0)-rippleY),rippleY)+2;rippleSize=Math.sqrt(sizeX**2+sizeY**2)}null!=event&&event.touches?null===startTimerCommit.current&&(startTimerCommit.current=()=>{startCommit({pulsate:pulsate,rippleX:rippleX,rippleY:rippleY,rippleSize:rippleSize,cb:cb})},startTimer.start(80,(()=>{startTimerCommit.current&&(startTimerCommit.current(),startTimerCommit.current=null)}))):startCommit({pulsate:pulsate,rippleX:rippleX,rippleY:rippleY,rippleSize:rippleSize,cb:cb})}),[centerProp,startCommit,startTimer]),pulsate=react.useCallback((()=>{start({},{pulsate:!0})}),[start]),stop=react.useCallback(((event,cb)=>{if(startTimer.clear(),"touchend"===(null==event?void 0:event.type)&&startTimerCommit.current)return startTimerCommit.current(),startTimerCommit.current=null,void startTimer.start(0,(()=>{stop(event,cb)}));startTimerCommit.current=null,setRipples((oldRipples=>oldRipples.length>0?oldRipples.slice(1):oldRipples)),rippleCallback.current=cb}),[startTimer]);return react.useImperativeHandle(ref,(()=>({pulsate:pulsate,start:start,stop:stop})),[pulsate,start,stop]),(0,jsx_runtime.jsx)(TouchRippleRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(ButtonBase_touchRippleClasses.root,classes.root,className),ref:container},other,{children:(0,jsx_runtime.jsx)(esm_TransitionGroup,{component:null,exit:!0,children:ripples})}))})),generateUtilityClass_generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getButtonBaseUtilityClass(slot){return(0,generateUtilityClass_generateUtilityClass.ZP)("MuiButtonBase",slot)}var ButtonBase_buttonBaseClasses=(0,generateUtilityClasses.Z)("MuiButtonBase",["root","disabled","focusVisible"]);const ButtonBase_excluded=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ButtonBaseRoot=(0,styled.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(props,styles)=>styles.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ButtonBase_buttonBaseClasses.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var ButtonBase_ButtonBase=react.forwardRef((function ButtonBase(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiButtonBase"}),{action:action,centerRipple:centerRipple=!1,children:children,className:className,component:component="button",disabled:disabled=!1,disableRipple:disableRipple=!1,disableTouchRipple:disableTouchRipple=!1,focusRipple:focusRipple=!1,LinkComponent:LinkComponent="a",onBlur:onBlur,onClick:onClick,onContextMenu:onContextMenu,onDragLeave:onDragLeave,onFocus:onFocus,onFocusVisible:onFocusVisible,onKeyDown:onKeyDown,onKeyUp:onKeyUp,onMouseDown:onMouseDown,onMouseLeave:onMouseLeave,onMouseUp:onMouseUp,onTouchEnd:onTouchEnd,onTouchMove:onTouchMove,onTouchStart:onTouchStart,tabIndex:tabIndex=0,TouchRippleProps:TouchRippleProps,touchRippleRef:touchRippleRef,type:type}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,ButtonBase_excluded),buttonRef=react.useRef(null),rippleRef=react.useRef(null),handleRippleRef=(0,useForkRef.Z)(rippleRef,touchRippleRef),{isFocusVisibleRef:isFocusVisibleRef,onFocus:handleFocusVisible,onBlur:handleBlurVisible,ref:focusVisibleRef}=(0,useIsFocusVisible.Z)(),[focusVisible,setFocusVisible]=react.useState(!1);disabled&&focusVisible&&setFocusVisible(!1),react.useImperativeHandle(action,(()=>({focusVisible:()=>{setFocusVisible(!0),buttonRef.current.focus()}})),[]);const[mountedState,setMountedState]=react.useState(!1);react.useEffect((()=>{setMountedState(!0)}),[]);const enableTouchRipple=mountedState&&!disableRipple&&!disabled;function useRippleHandler(rippleAction,eventCallback,skipRippleAction=disableTouchRipple){return(0,useEventCallback.Z)((event=>{eventCallback&&eventCallback(event);return!skipRippleAction&&rippleRef.current&&rippleRef.current[rippleAction](event),!0}))}react.useEffect((()=>{focusVisible&&focusRipple&&!disableRipple&&mountedState&&rippleRef.current.pulsate()}),[disableRipple,focusRipple,focusVisible,mountedState]);const handleMouseDown=useRippleHandler("start",onMouseDown),handleContextMenu=useRippleHandler("stop",onContextMenu),handleDragLeave=useRippleHandler("stop",onDragLeave),handleMouseUp=useRippleHandler("stop",onMouseUp),handleMouseLeave=useRippleHandler("stop",(event=>{focusVisible&&event.preventDefault(),onMouseLeave&&onMouseLeave(event)})),handleTouchStart=useRippleHandler("start",onTouchStart),handleTouchEnd=useRippleHandler("stop",onTouchEnd),handleTouchMove=useRippleHandler("stop",onTouchMove),handleBlur=useRippleHandler("stop",(event=>{handleBlurVisible(event),!1===isFocusVisibleRef.current&&setFocusVisible(!1),onBlur&&onBlur(event)}),!1),handleFocus=(0,useEventCallback.Z)((event=>{buttonRef.current||(buttonRef.current=event.currentTarget),handleFocusVisible(event),!0===isFocusVisibleRef.current&&(setFocusVisible(!0),onFocusVisible&&onFocusVisible(event)),onFocus&&onFocus(event)})),isNonNativeButton=()=>{const button=buttonRef.current;return component&&"button"!==component&&!("A"===button.tagName&&button.href)},keydownRef=react.useRef(!1),handleKeyDown=(0,useEventCallback.Z)((event=>{focusRipple&&!keydownRef.current&&focusVisible&&rippleRef.current&&" "===event.key&&(keydownRef.current=!0,rippleRef.current.stop(event,(()=>{rippleRef.current.start(event)}))),event.target===event.currentTarget&&isNonNativeButton()&&" "===event.key&&event.preventDefault(),onKeyDown&&onKeyDown(event),event.target===event.currentTarget&&isNonNativeButton()&&"Enter"===event.key&&!disabled&&(event.preventDefault(),onClick&&onClick(event))})),handleKeyUp=(0,useEventCallback.Z)((event=>{focusRipple&&" "===event.key&&rippleRef.current&&focusVisible&&!event.defaultPrevented&&(keydownRef.current=!1,rippleRef.current.stop(event,(()=>{rippleRef.current.pulsate(event)}))),onKeyUp&&onKeyUp(event),onClick&&event.target===event.currentTarget&&isNonNativeButton()&&" "===event.key&&!event.defaultPrevented&&onClick(event)}));let ComponentProp=component;"button"===ComponentProp&&(other.href||other.to)&&(ComponentProp=LinkComponent);const buttonProps={};"button"===ComponentProp?(buttonProps.type=void 0===type?"button":type,buttonProps.disabled=disabled):(other.href||other.to||(buttonProps.role="button"),disabled&&(buttonProps["aria-disabled"]=disabled));const handleRef=(0,useForkRef.Z)(ref,focusVisibleRef,buttonRef);const ownerState=(0,esm_extends.Z)({},props,{centerRipple:centerRipple,component:component,disabled:disabled,disableRipple:disableRipple,disableTouchRipple:disableTouchRipple,focusRipple:focusRipple,tabIndex:tabIndex,focusVisible:focusVisible}),classes=(ownerState=>{const{disabled:disabled,focusVisible:focusVisible,focusVisibleClassName:focusVisibleClassName,classes:classes}=ownerState,slots={root:["root",disabled&&"disabled",focusVisible&&"focusVisible"]},composedClasses=(0,composeClasses.Z)(slots,getButtonBaseUtilityClass,classes);return focusVisible&&focusVisibleClassName&&(composedClasses.root+=` ${focusVisibleClassName}`),composedClasses})(ownerState);return(0,jsx_runtime.jsxs)(ButtonBaseRoot,(0,esm_extends.Z)({as:ComponentProp,className:(0,clsx.Z)(classes.root,className),ownerState:ownerState,onBlur:handleBlur,onClick:onClick,onContextMenu:handleContextMenu,onFocus:handleFocus,onKeyDown:handleKeyDown,onKeyUp:handleKeyUp,onMouseDown:handleMouseDown,onMouseLeave:handleMouseLeave,onMouseUp:handleMouseUp,onDragLeave:handleDragLeave,onTouchEnd:handleTouchEnd,onTouchMove:handleTouchMove,onTouchStart:handleTouchStart,ref:handleRef,tabIndex:disabled?-1:tabIndex,type:type},buttonProps,other,{children:[children,enableTouchRipple?(0,jsx_runtime.jsx)(ButtonBase_TouchRipple,(0,esm_extends.Z)({ref:handleRippleRef,center:centerRipple},TouchRippleProps)):null]}))}))},"./node_modules/@mui/material/Dialog/Dialog.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Dialog_Dialog}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),useId=__webpack_require__("./node_modules/@mui/utils/useId/useId.js"),capitalize=__webpack_require__("./node_modules/@mui/material/utils/capitalize.js"),Modal=__webpack_require__("./node_modules/@mui/material/Modal/Modal.js"),Fade=__webpack_require__("./node_modules/@mui/material/Fade/Fade.js"),Paper=__webpack_require__("./node_modules/@mui/material/Paper/Paper.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getDialogUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiDialog",slot)}var Dialog_dialogClasses=(0,generateUtilityClasses.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),DialogContext=__webpack_require__("./node_modules/@mui/material/Dialog/DialogContext.js"),Backdrop=__webpack_require__("./node_modules/@mui/material/Backdrop/Backdrop.js"),useTheme=__webpack_require__("./node_modules/@mui/material/styles/useTheme.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],DialogBackdrop=(0,styled.ZP)(Backdrop.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(props,styles)=>styles.backdrop})({zIndex:-1}),DialogRoot=(0,styled.ZP)(Modal.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(props,styles)=>styles.root})({"@media print":{position:"absolute !important"}}),DialogContainer=(0,styled.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.container,styles[`scroll${(0,capitalize.Z)(ownerState.scroll)}`]]}})((({ownerState:ownerState})=>(0,esm_extends.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===ownerState.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===ownerState.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),DialogPaper=(0,styled.ZP)(Paper.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.paper,styles[`scrollPaper${(0,capitalize.Z)(ownerState.scroll)}`],styles[`paperWidth${(0,capitalize.Z)(String(ownerState.maxWidth))}`],ownerState.fullWidth&&styles.paperFullWidth,ownerState.fullScreen&&styles.paperFullScreen]}})((({theme:theme,ownerState:ownerState})=>(0,esm_extends.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===ownerState.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===ownerState.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!ownerState.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===ownerState.maxWidth&&{maxWidth:"px"===theme.breakpoints.unit?Math.max(theme.breakpoints.values.xs,444):`max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`,[`&.${Dialog_dialogClasses.paperScrollBody}`]:{[theme.breakpoints.down(Math.max(theme.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},ownerState.maxWidth&&"xs"!==ownerState.maxWidth&&{maxWidth:`${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`,[`&.${Dialog_dialogClasses.paperScrollBody}`]:{[theme.breakpoints.down(theme.breakpoints.values[ownerState.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},ownerState.fullWidth&&{width:"calc(100% - 64px)"},ownerState.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Dialog_dialogClasses.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})));var Dialog_Dialog=react.forwardRef((function Dialog(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiDialog"}),theme=(0,useTheme.Z)(),defaultTransitionDuration={enter:theme.transitions.duration.enteringScreen,exit:theme.transitions.duration.leavingScreen},{"aria-describedby":ariaDescribedby,"aria-labelledby":ariaLabelledbyProp,BackdropComponent:BackdropComponent,BackdropProps:BackdropProps,children:children,className:className,disableEscapeKeyDown:disableEscapeKeyDown=!1,fullScreen:fullScreen=!1,fullWidth:fullWidth=!1,maxWidth:maxWidth="sm",onBackdropClick:onBackdropClick,onClose:onClose,open:open,PaperComponent:PaperComponent=Paper.Z,PaperProps:PaperProps={},scroll:scroll="paper",TransitionComponent:TransitionComponent=Fade.Z,transitionDuration:transitionDuration=defaultTransitionDuration,TransitionProps:TransitionProps}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),ownerState=(0,esm_extends.Z)({},props,{disableEscapeKeyDown:disableEscapeKeyDown,fullScreen:fullScreen,fullWidth:fullWidth,maxWidth:maxWidth,scroll:scroll}),classes=(ownerState=>{const{classes:classes,scroll:scroll,maxWidth:maxWidth,fullWidth:fullWidth,fullScreen:fullScreen}=ownerState,slots={root:["root"],container:["container",`scroll${(0,capitalize.Z)(scroll)}`],paper:["paper",`paperScroll${(0,capitalize.Z)(scroll)}`,`paperWidth${(0,capitalize.Z)(String(maxWidth))}`,fullWidth&&"paperFullWidth",fullScreen&&"paperFullScreen"]};return(0,composeClasses.Z)(slots,getDialogUtilityClass,classes)})(ownerState),backdropClick=react.useRef(),ariaLabelledby=(0,useId.Z)(ariaLabelledbyProp),dialogContextValue=react.useMemo((()=>({titleId:ariaLabelledby})),[ariaLabelledby]);return(0,jsx_runtime.jsx)(DialogRoot,(0,esm_extends.Z)({className:(0,clsx.Z)(classes.root,className),closeAfterTransition:!0,components:{Backdrop:DialogBackdrop},componentsProps:{backdrop:(0,esm_extends.Z)({transitionDuration:transitionDuration,as:BackdropComponent},BackdropProps)},disableEscapeKeyDown:disableEscapeKeyDown,onClose:onClose,open:open,ref:ref,onClick:event=>{backdropClick.current&&(backdropClick.current=null,onBackdropClick&&onBackdropClick(event),onClose&&onClose(event,"backdropClick"))},ownerState:ownerState},other,{children:(0,jsx_runtime.jsx)(TransitionComponent,(0,esm_extends.Z)({appear:!0,in:open,timeout:transitionDuration,role:"presentation"},TransitionProps,{children:(0,jsx_runtime.jsx)(DialogContainer,{className:(0,clsx.Z)(classes.container),onMouseDown:event=>{backdropClick.current=event.target===event.currentTarget},ownerState:ownerState,children:(0,jsx_runtime.jsx)(DialogPaper,(0,esm_extends.Z)({as:PaperComponent,elevation:24,role:"dialog","aria-describedby":ariaDescribedby,"aria-labelledby":ariaLabelledby},PaperProps,{className:(0,clsx.Z)(classes.paper,PaperProps.className),ownerState:ownerState,children:(0,jsx_runtime.jsx)(DialogContext.Z.Provider,{value:dialogContextValue,children:children})}))})}))}))}))},"./node_modules/@mui/material/Dialog/DialogContext.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";const DialogContext=__webpack_require__("./node_modules/react/index.js").createContext({});__webpack_exports__.Z=DialogContext},"./node_modules/@mui/material/Fade/Fade.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_transition_group__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-transition-group/esm/Transition.js"),_styles_useTheme__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mui/material/styles/useTheme.js"),_transitions_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@mui/material/transitions/utils.js"),_utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@mui/material/utils/useForkRef.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],styles={entering:{opacity:1},entered:{opacity:1}},Fade=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function Fade(props,ref){const theme=(0,_styles_useTheme__WEBPACK_IMPORTED_MODULE_2__.Z)(),defaultTimeout={enter:theme.transitions.duration.enteringScreen,exit:theme.transitions.duration.leavingScreen},{addEndListener:addEndListener,appear:appear=!0,children:children,easing:easing,in:inProp,onEnter:onEnter,onEntered:onEntered,onEntering:onEntering,onExit:onExit,onExited:onExited,onExiting:onExiting,style:style,timeout:timeout=defaultTimeout,TransitionComponent:TransitionComponent=react_transition_group__WEBPACK_IMPORTED_MODULE_3__.ZP}=props,other=(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_4__.Z)(props,_excluded),nodeRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),handleRef=(0,_utils_useForkRef__WEBPACK_IMPORTED_MODULE_5__.Z)(nodeRef,children.ref,ref),normalizedTransitionCallback=callback=>maybeIsAppearing=>{if(callback){const node=nodeRef.current;void 0===maybeIsAppearing?callback(node):callback(node,maybeIsAppearing)}},handleEntering=normalizedTransitionCallback(onEntering),handleEnter=normalizedTransitionCallback(((node,isAppearing)=>{(0,_transitions_utils__WEBPACK_IMPORTED_MODULE_6__.n)(node);const transitionProps=(0,_transitions_utils__WEBPACK_IMPORTED_MODULE_6__.C)({style:style,timeout:timeout,easing:easing},{mode:"enter"});node.style.webkitTransition=theme.transitions.create("opacity",transitionProps),node.style.transition=theme.transitions.create("opacity",transitionProps),onEnter&&onEnter(node,isAppearing)})),handleEntered=normalizedTransitionCallback(onEntered),handleExiting=normalizedTransitionCallback(onExiting),handleExit=normalizedTransitionCallback((node=>{const transitionProps=(0,_transitions_utils__WEBPACK_IMPORTED_MODULE_6__.C)({style:style,timeout:timeout,easing:easing},{mode:"exit"});node.style.webkitTransition=theme.transitions.create("opacity",transitionProps),node.style.transition=theme.transitions.create("opacity",transitionProps),onExit&&onExit(node)})),handleExited=normalizedTransitionCallback(onExited);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(TransitionComponent,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__.Z)({appear:appear,in:inProp,nodeRef:nodeRef,onEnter:handleEnter,onEntered:handleEntered,onEntering:handleEntering,onExit:handleExit,onExited:handleExited,onExiting:handleExiting,addEndListener:next=>{addEndListener&&addEndListener(nodeRef.current,next)},timeout:timeout},other,{children:(state,childProps)=>react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(children,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__.Z)({style:(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__.Z)({opacity:0,visibility:"exited"!==state||inProp?void 0:"hidden"},styles[state],style,children.props.style),ref:handleRef},childProps))}))}));__webpack_exports__.Z=Fade},"./node_modules/@mui/material/Modal/Modal.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Modal_Modal}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),useSlotProps=__webpack_require__("./node_modules/@mui/base/utils/useSlotProps.js"),useForkRef=__webpack_require__("./node_modules/@mui/utils/useForkRef/useForkRef.js"),ownerDocument=__webpack_require__("./node_modules/@mui/utils/ownerDocument/ownerDocument.js"),useEventCallback=__webpack_require__("./node_modules/@mui/utils/useEventCallback/useEventCallback.js"),createChainedFunction=__webpack_require__("./node_modules/@mui/utils/createChainedFunction/createChainedFunction.js"),extractEventHandlers=__webpack_require__("./node_modules/@mui/base/utils/extractEventHandlers.js"),ownerWindow=__webpack_require__("./node_modules/@mui/utils/ownerWindow/ownerWindow.js"),getScrollbarSize=__webpack_require__("./node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js");function ariaHidden(element,show){show?element.setAttribute("aria-hidden","true"):element.removeAttribute("aria-hidden")}function getPaddingRight(element){return parseInt((0,ownerWindow.Z)(element).getComputedStyle(element).paddingRight,10)||0}function ariaHiddenSiblings(container,mountElement,currentElement,elementsToExclude,show){const blacklist=[mountElement,currentElement,...elementsToExclude];[].forEach.call(container.children,(element=>{const isNotExcludedElement=-1===blacklist.indexOf(element),isNotForbiddenElement=!function isAriaHiddenForbiddenOnElement(element){const isForbiddenTagName=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(element.tagName),isInputHidden="INPUT"===element.tagName&&"hidden"===element.getAttribute("type");return isForbiddenTagName||isInputHidden}(element);isNotExcludedElement&&isNotForbiddenElement&&ariaHidden(element,show)}))}function findIndexOf(items,callback){let idx=-1;return items.some(((item,index)=>!!callback(item)&&(idx=index,!0))),idx}function handleContainer(containerInfo,props){const restoreStyle=[],container=containerInfo.container;if(!props.disableScrollLock){if(function isOverflowing(container){const doc=(0,ownerDocument.Z)(container);return doc.body===container?(0,ownerWindow.Z)(container).innerWidth>doc.documentElement.clientWidth:container.scrollHeight>container.clientHeight}(container)){const scrollbarSize=(0,getScrollbarSize.Z)((0,ownerDocument.Z)(container));restoreStyle.push({value:container.style.paddingRight,property:"padding-right",el:container}),container.style.paddingRight=`${getPaddingRight(container)+scrollbarSize}px`;const fixedElements=(0,ownerDocument.Z)(container).querySelectorAll(".mui-fixed");[].forEach.call(fixedElements,(element=>{restoreStyle.push({value:element.style.paddingRight,property:"padding-right",el:element}),element.style.paddingRight=`${getPaddingRight(element)+scrollbarSize}px`}))}let scrollContainer;if(container.parentNode instanceof DocumentFragment)scrollContainer=(0,ownerDocument.Z)(container).body;else{const parent=container.parentElement,containerWindow=(0,ownerWindow.Z)(container);scrollContainer="HTML"===(null==parent?void 0:parent.nodeName)&&"scroll"===containerWindow.getComputedStyle(parent).overflowY?parent:container}restoreStyle.push({value:scrollContainer.style.overflow,property:"overflow",el:scrollContainer},{value:scrollContainer.style.overflowX,property:"overflow-x",el:scrollContainer},{value:scrollContainer.style.overflowY,property:"overflow-y",el:scrollContainer}),scrollContainer.style.overflow="hidden"}return()=>{restoreStyle.forEach((({value:value,el:el,property:property})=>{value?el.style.setProperty(property,value):el.style.removeProperty(property)}))}}const defaultManager=new class ModalManager{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(modal,container){let modalIndex=this.modals.indexOf(modal);if(-1!==modalIndex)return modalIndex;modalIndex=this.modals.length,this.modals.push(modal),modal.modalRef&&ariaHidden(modal.modalRef,!1);const hiddenSiblings=function getHiddenSiblings(container){const hiddenSiblings=[];return[].forEach.call(container.children,(element=>{"true"===element.getAttribute("aria-hidden")&&hiddenSiblings.push(element)})),hiddenSiblings}(container);ariaHiddenSiblings(container,modal.mount,modal.modalRef,hiddenSiblings,!0);const containerIndex=findIndexOf(this.containers,(item=>item.container===container));return-1!==containerIndex?(this.containers[containerIndex].modals.push(modal),modalIndex):(this.containers.push({modals:[modal],container:container,restore:null,hiddenSiblings:hiddenSiblings}),modalIndex)}mount(modal,props){const containerIndex=findIndexOf(this.containers,(item=>-1!==item.modals.indexOf(modal))),containerInfo=this.containers[containerIndex];containerInfo.restore||(containerInfo.restore=handleContainer(containerInfo,props))}remove(modal,ariaHiddenState=!0){const modalIndex=this.modals.indexOf(modal);if(-1===modalIndex)return modalIndex;const containerIndex=findIndexOf(this.containers,(item=>-1!==item.modals.indexOf(modal))),containerInfo=this.containers[containerIndex];if(containerInfo.modals.splice(containerInfo.modals.indexOf(modal),1),this.modals.splice(modalIndex,1),0===containerInfo.modals.length)containerInfo.restore&&containerInfo.restore(),modal.modalRef&&ariaHidden(modal.modalRef,ariaHiddenState),ariaHiddenSiblings(containerInfo.container,modal.mount,modal.modalRef,containerInfo.hiddenSiblings,!1),this.containers.splice(containerIndex,1);else{const nextTop=containerInfo.modals[containerInfo.modals.length-1];nextTop.modalRef&&ariaHidden(nextTop.modalRef,!1)}return modalIndex}isTopModal(modal){return this.modals.length>0&&this.modals[this.modals.length-1]===modal}};function useModal(parameters){const{container:container,disableEscapeKeyDown:disableEscapeKeyDown=!1,disableScrollLock:disableScrollLock=!1,manager:manager=defaultManager,closeAfterTransition:closeAfterTransition=!1,onTransitionEnter:onTransitionEnter,onTransitionExited:onTransitionExited,children:children,onClose:onClose,open:open,rootRef:rootRef}=parameters,modal=react.useRef({}),mountNodeRef=react.useRef(null),modalRef=react.useRef(null),handleRef=(0,useForkRef.Z)(modalRef,rootRef),[exited,setExited]=react.useState(!open),hasTransition=function getHasTransition(children){return!!children&&children.props.hasOwnProperty("in")}(children);let ariaHiddenProp=!0;"false"!==parameters["aria-hidden"]&&!1!==parameters["aria-hidden"]||(ariaHiddenProp=!1);const getModal=()=>(modal.current.modalRef=modalRef.current,modal.current.mount=mountNodeRef.current,modal.current),handleMounted=()=>{manager.mount(getModal(),{disableScrollLock:disableScrollLock}),modalRef.current&&(modalRef.current.scrollTop=0)},handleOpen=(0,useEventCallback.Z)((()=>{const resolvedContainer=function getContainer(container){return"function"==typeof container?container():container}(container)||(0,ownerDocument.Z)(mountNodeRef.current).body;manager.add(getModal(),resolvedContainer),modalRef.current&&handleMounted()})),isTopModal=react.useCallback((()=>manager.isTopModal(getModal())),[manager]),handlePortalRef=(0,useEventCallback.Z)((node=>{mountNodeRef.current=node,node&&(open&&isTopModal()?handleMounted():modalRef.current&&ariaHidden(modalRef.current,ariaHiddenProp))})),handleClose=react.useCallback((()=>{manager.remove(getModal(),ariaHiddenProp)}),[ariaHiddenProp,manager]);react.useEffect((()=>()=>{handleClose()}),[handleClose]),react.useEffect((()=>{open?handleOpen():hasTransition&&closeAfterTransition||handleClose()}),[open,handleClose,hasTransition,closeAfterTransition,handleOpen]);const createHandleKeyDown=otherHandlers=>event=>{var _otherHandlers$onKeyD;null==(_otherHandlers$onKeyD=otherHandlers.onKeyDown)||_otherHandlers$onKeyD.call(otherHandlers,event),"Escape"===event.key&&229!==event.which&&isTopModal()&&(disableEscapeKeyDown||(event.stopPropagation(),onClose&&onClose(event,"escapeKeyDown")))},createHandleBackdropClick=otherHandlers=>event=>{var _otherHandlers$onClic;null==(_otherHandlers$onClic=otherHandlers.onClick)||_otherHandlers$onClic.call(otherHandlers,event),event.target===event.currentTarget&&onClose&&onClose(event,"backdropClick")};return{getRootProps:(otherHandlers={})=>{const propsEventHandlers=(0,extractEventHandlers._)(parameters);delete propsEventHandlers.onTransitionEnter,delete propsEventHandlers.onTransitionExited;const externalEventHandlers=(0,esm_extends.Z)({},propsEventHandlers,otherHandlers);return(0,esm_extends.Z)({role:"presentation"},externalEventHandlers,{onKeyDown:createHandleKeyDown(externalEventHandlers),ref:handleRef})},getBackdropProps:(otherHandlers={})=>{const externalEventHandlers=otherHandlers;return(0,esm_extends.Z)({"aria-hidden":!0},externalEventHandlers,{onClick:createHandleBackdropClick(externalEventHandlers),open:open})},getTransitionProps:()=>({onEnter:(0,createChainedFunction.Z)((()=>{setExited(!1),onTransitionEnter&&onTransitionEnter()}),null==children?void 0:children.props.onEnter),onExited:(0,createChainedFunction.Z)((()=>{setExited(!0),onTransitionExited&&onTransitionExited(),closeAfterTransition&&handleClose()}),null==children?void 0:children.props.onExited)}),rootRef:handleRef,portalRef:handlePortalRef,isTopModal:isTopModal,exited:exited,hasTransition:hasTransition}}var composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const candidatesSelector=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function defaultGetTabbable(root){const regularTabNodes=[],orderedTabNodes=[];return Array.from(root.querySelectorAll(candidatesSelector)).forEach(((node,i)=>{const nodeTabIndex=function getTabIndex(node){const tabindexAttr=parseInt(node.getAttribute("tabindex")||"",10);return Number.isNaN(tabindexAttr)?"true"===node.contentEditable||("AUDIO"===node.nodeName||"VIDEO"===node.nodeName||"DETAILS"===node.nodeName)&&null===node.getAttribute("tabindex")?0:node.tabIndex:tabindexAttr}(node);-1!==nodeTabIndex&&function isNodeMatchingSelectorFocusable(node){return!(node.disabled||"INPUT"===node.tagName&&"hidden"===node.type||function isNonTabbableRadio(node){if("INPUT"!==node.tagName||"radio"!==node.type)return!1;if(!node.name)return!1;const getRadio=selector=>node.ownerDocument.querySelector(`input[type="radio"]${selector}`);let roving=getRadio(`[name="${node.name}"]:checked`);return roving||(roving=getRadio(`[name="${node.name}"]`)),roving!==node}(node))}(node)&&(0===nodeTabIndex?regularTabNodes.push(node):orderedTabNodes.push({documentOrder:i,tabIndex:nodeTabIndex,node:node}))})),orderedTabNodes.sort(((a,b)=>a.tabIndex===b.tabIndex?a.documentOrder-b.documentOrder:a.tabIndex-b.tabIndex)).map((a=>a.node)).concat(regularTabNodes)}function defaultIsEnabled(){return!0}function FocusTrap(props){const{children:children,disableAutoFocus:disableAutoFocus=!1,disableEnforceFocus:disableEnforceFocus=!1,disableRestoreFocus:disableRestoreFocus=!1,getTabbable:getTabbable=defaultGetTabbable,isEnabled:isEnabled=defaultIsEnabled,open:open}=props,ignoreNextEnforceFocus=react.useRef(!1),sentinelStart=react.useRef(null),sentinelEnd=react.useRef(null),nodeToRestore=react.useRef(null),reactFocusEventTarget=react.useRef(null),activated=react.useRef(!1),rootRef=react.useRef(null),handleRef=(0,useForkRef.Z)(children.ref,rootRef),lastKeydown=react.useRef(null);react.useEffect((()=>{open&&rootRef.current&&(activated.current=!disableAutoFocus)}),[disableAutoFocus,open]),react.useEffect((()=>{if(!open||!rootRef.current)return;const doc=(0,ownerDocument.Z)(rootRef.current);return rootRef.current.contains(doc.activeElement)||(rootRef.current.hasAttribute("tabIndex")||rootRef.current.setAttribute("tabIndex","-1"),activated.current&&rootRef.current.focus()),()=>{disableRestoreFocus||(nodeToRestore.current&&nodeToRestore.current.focus&&(ignoreNextEnforceFocus.current=!0,nodeToRestore.current.focus()),nodeToRestore.current=null)}}),[open]),react.useEffect((()=>{if(!open||!rootRef.current)return;const doc=(0,ownerDocument.Z)(rootRef.current),loopFocus=nativeEvent=>{lastKeydown.current=nativeEvent,!disableEnforceFocus&&isEnabled()&&"Tab"===nativeEvent.key&&doc.activeElement===rootRef.current&&nativeEvent.shiftKey&&(ignoreNextEnforceFocus.current=!0,sentinelEnd.current&&sentinelEnd.current.focus())},contain=()=>{const rootElement=rootRef.current;if(null===rootElement)return;if(!doc.hasFocus()||!isEnabled()||ignoreNextEnforceFocus.current)return void(ignoreNextEnforceFocus.current=!1);if(rootElement.contains(doc.activeElement))return;if(disableEnforceFocus&&doc.activeElement!==sentinelStart.current&&doc.activeElement!==sentinelEnd.current)return;if(doc.activeElement!==reactFocusEventTarget.current)reactFocusEventTarget.current=null;else if(null!==reactFocusEventTarget.current)return;if(!activated.current)return;let tabbable=[];if(doc.activeElement!==sentinelStart.current&&doc.activeElement!==sentinelEnd.current||(tabbable=getTabbable(rootRef.current)),tabbable.length>0){var _lastKeydown$current,_lastKeydown$current2;const isShiftTab=Boolean((null==(_lastKeydown$current=lastKeydown.current)?void 0:_lastKeydown$current.shiftKey)&&"Tab"===(null==(_lastKeydown$current2=lastKeydown.current)?void 0:_lastKeydown$current2.key)),focusNext=tabbable[0],focusPrevious=tabbable[tabbable.length-1];"string"!=typeof focusNext&&"string"!=typeof focusPrevious&&(isShiftTab?focusPrevious.focus():focusNext.focus())}else rootElement.focus()};doc.addEventListener("focusin",contain),doc.addEventListener("keydown",loopFocus,!0);const interval=setInterval((()=>{doc.activeElement&&"BODY"===doc.activeElement.tagName&&contain()}),50);return()=>{clearInterval(interval),doc.removeEventListener("focusin",contain),doc.removeEventListener("keydown",loopFocus,!0)}}),[disableAutoFocus,disableEnforceFocus,disableRestoreFocus,isEnabled,open,getTabbable]);const handleFocusSentinel=event=>{null===nodeToRestore.current&&(nodeToRestore.current=event.relatedTarget),activated.current=!0};return(0,jsx_runtime.jsxs)(react.Fragment,{children:[(0,jsx_runtime.jsx)("div",{tabIndex:open?0:-1,onFocus:handleFocusSentinel,ref:sentinelStart,"data-testid":"sentinelStart"}),react.cloneElement(children,{ref:handleRef,onFocus:event=>{null===nodeToRestore.current&&(nodeToRestore.current=event.relatedTarget),activated.current=!0,reactFocusEventTarget.current=event.target;const childrenPropsHandler=children.props.onFocus;childrenPropsHandler&&childrenPropsHandler(event)}}),(0,jsx_runtime.jsx)("div",{tabIndex:open?0:-1,onFocus:handleFocusSentinel,ref:sentinelEnd,"data-testid":"sentinelEnd"})]})}var react_dom=__webpack_require__("./node_modules/react-dom/index.js"),useEnhancedEffect=__webpack_require__("./node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js"),setRef=__webpack_require__("./node_modules/@mui/utils/setRef/setRef.js");const Portal=react.forwardRef((function Portal(props,forwardedRef){const{children:children,container:container,disablePortal:disablePortal=!1}=props,[mountNode,setMountNode]=react.useState(null),handleRef=(0,useForkRef.Z)(react.isValidElement(children)?children.ref:null,forwardedRef);if((0,useEnhancedEffect.Z)((()=>{disablePortal||setMountNode(function Portal_getContainer(container){return"function"==typeof container?container():container}(container)||document.body)}),[container,disablePortal]),(0,useEnhancedEffect.Z)((()=>{if(mountNode&&!disablePortal)return(0,setRef.Z)(forwardedRef,mountNode),()=>{(0,setRef.Z)(forwardedRef,null)}}),[forwardedRef,mountNode,disablePortal]),disablePortal){if(react.isValidElement(children)){const newProps={ref:handleRef};return react.cloneElement(children,newProps)}return(0,jsx_runtime.jsx)(react.Fragment,{children:children})}return(0,jsx_runtime.jsx)(react.Fragment,{children:mountNode?react_dom.createPortal(children,mountNode):mountNode})}));var styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),Backdrop=__webpack_require__("./node_modules/@mui/material/Backdrop/Backdrop.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getModalUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiModal",slot)}(0,generateUtilityClasses.Z)("MuiModal",["root","hidden","backdrop"]);const _excluded=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ModalRoot=(0,styled.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,!ownerState.open&&ownerState.exited&&styles.hidden]}})((({theme:theme,ownerState:ownerState})=>(0,esm_extends.Z)({position:"fixed",zIndex:(theme.vars||theme).zIndex.modal,right:0,bottom:0,top:0,left:0},!ownerState.open&&ownerState.exited&&{visibility:"hidden"}))),ModalBackdrop=(0,styled.ZP)(Backdrop.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(props,styles)=>styles.backdrop})({zIndex:-1});var Modal_Modal=react.forwardRef((function Modal(inProps,ref){var _ref,_slots$root,_ref2,_slots$backdrop,_slotProps$root,_slotProps$backdrop;const props=(0,useThemeProps.Z)({name:"MuiModal",props:inProps}),{BackdropComponent:BackdropComponent=ModalBackdrop,BackdropProps:BackdropProps,className:className,closeAfterTransition:closeAfterTransition=!1,children:children,container:container,component:component,components:components={},componentsProps:componentsProps={},disableAutoFocus:disableAutoFocus=!1,disableEnforceFocus:disableEnforceFocus=!1,disableEscapeKeyDown:disableEscapeKeyDown=!1,disablePortal:disablePortal=!1,disableRestoreFocus:disableRestoreFocus=!1,disableScrollLock:disableScrollLock=!1,hideBackdrop:hideBackdrop=!1,keepMounted:keepMounted=!1,onBackdropClick:onBackdropClick,open:open,slotProps:slotProps,slots:slots}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),propsWithDefaults=(0,esm_extends.Z)({},props,{closeAfterTransition:closeAfterTransition,disableAutoFocus:disableAutoFocus,disableEnforceFocus:disableEnforceFocus,disableEscapeKeyDown:disableEscapeKeyDown,disablePortal:disablePortal,disableRestoreFocus:disableRestoreFocus,disableScrollLock:disableScrollLock,hideBackdrop:hideBackdrop,keepMounted:keepMounted}),{getRootProps:getRootProps,getBackdropProps:getBackdropProps,getTransitionProps:getTransitionProps,portalRef:portalRef,isTopModal:isTopModal,exited:exited,hasTransition:hasTransition}=useModal((0,esm_extends.Z)({},propsWithDefaults,{rootRef:ref})),ownerState=(0,esm_extends.Z)({},propsWithDefaults,{exited:exited}),classes=(ownerState=>{const{open:open,exited:exited,classes:classes}=ownerState,slots={root:["root",!open&&exited&&"hidden"],backdrop:["backdrop"]};return(0,composeClasses.Z)(slots,getModalUtilityClass,classes)})(ownerState),childProps={};if(void 0===children.props.tabIndex&&(childProps.tabIndex="-1"),hasTransition){const{onEnter:onEnter,onExited:onExited}=getTransitionProps();childProps.onEnter=onEnter,childProps.onExited=onExited}const RootSlot=null!=(_ref=null!=(_slots$root=null==slots?void 0:slots.root)?_slots$root:components.Root)?_ref:ModalRoot,BackdropSlot=null!=(_ref2=null!=(_slots$backdrop=null==slots?void 0:slots.backdrop)?_slots$backdrop:components.Backdrop)?_ref2:BackdropComponent,rootSlotProps=null!=(_slotProps$root=null==slotProps?void 0:slotProps.root)?_slotProps$root:componentsProps.root,backdropSlotProps=null!=(_slotProps$backdrop=null==slotProps?void 0:slotProps.backdrop)?_slotProps$backdrop:componentsProps.backdrop,rootProps=(0,useSlotProps.y)({elementType:RootSlot,externalSlotProps:rootSlotProps,externalForwardedProps:other,getSlotProps:getRootProps,additionalProps:{ref:ref,as:component},ownerState:ownerState,className:(0,clsx.Z)(className,null==rootSlotProps?void 0:rootSlotProps.className,null==classes?void 0:classes.root,!ownerState.open&&ownerState.exited&&(null==classes?void 0:classes.hidden))}),backdropProps=(0,useSlotProps.y)({elementType:BackdropSlot,externalSlotProps:backdropSlotProps,additionalProps:BackdropProps,getSlotProps:otherHandlers=>getBackdropProps((0,esm_extends.Z)({},otherHandlers,{onClick:e=>{onBackdropClick&&onBackdropClick(e),null!=otherHandlers&&otherHandlers.onClick&&otherHandlers.onClick(e)}})),className:(0,clsx.Z)(null==backdropSlotProps?void 0:backdropSlotProps.className,null==BackdropProps?void 0:BackdropProps.className,null==classes?void 0:classes.backdrop),ownerState:ownerState});return keepMounted||open||hasTransition&&!exited?(0,jsx_runtime.jsx)(Portal,{ref:portalRef,container:container,disablePortal:disablePortal,children:(0,jsx_runtime.jsxs)(RootSlot,(0,esm_extends.Z)({},rootProps,{children:[!hideBackdrop&&BackdropComponent?(0,jsx_runtime.jsx)(BackdropSlot,(0,esm_extends.Z)({},backdropProps)):null,(0,jsx_runtime.jsx)(FocusTrap,{disableEnforceFocus:disableEnforceFocus,disableAutoFocus:disableAutoFocus,disableRestoreFocus:disableRestoreFocus,isEnabled:isTopModal,open:open,children:react.cloneElement(children,childProps)})]}))}):null}))},"./node_modules/@mui/material/Paper/Paper.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return Paper_Paper}});var objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),colorManipulator=__webpack_require__("./node_modules/@mui/system/colorManipulator.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js");var styles_getOverlayAlpha=elevation=>{let alphaValue;return alphaValue=elevation<1?5.11916*elevation**2:4.5*Math.log(elevation+1)+2,(alphaValue/100).toFixed(2)},useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getPaperUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiPaper",slot)}(0,generateUtilityClasses.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["className","component","elevation","square","variant"],PaperRoot=(0,styled.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,styles[ownerState.variant],!ownerState.square&&styles.rounded,"elevation"===ownerState.variant&&styles[`elevation${ownerState.elevation}`]]}})((({theme:theme,ownerState:ownerState})=>{var _theme$vars$overlays;return(0,esm_extends.Z)({backgroundColor:(theme.vars||theme).palette.background.paper,color:(theme.vars||theme).palette.text.primary,transition:theme.transitions.create("box-shadow")},!ownerState.square&&{borderRadius:theme.shape.borderRadius},"outlined"===ownerState.variant&&{border:`1px solid ${(theme.vars||theme).palette.divider}`},"elevation"===ownerState.variant&&(0,esm_extends.Z)({boxShadow:(theme.vars||theme).shadows[ownerState.elevation]},!theme.vars&&"dark"===theme.palette.mode&&{backgroundImage:`linear-gradient(${(0,colorManipulator.Fq)("#fff",styles_getOverlayAlpha(ownerState.elevation))}, ${(0,colorManipulator.Fq)("#fff",styles_getOverlayAlpha(ownerState.elevation))})`},theme.vars&&{backgroundImage:null==(_theme$vars$overlays=theme.vars.overlays)?void 0:_theme$vars$overlays[ownerState.elevation]}))}));var Paper_Paper=react.forwardRef((function Paper(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiPaper"}),{className:className,component:component="div",elevation:elevation=1,square:square=!1,variant:variant="elevation"}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),ownerState=(0,esm_extends.Z)({},props,{component:component,elevation:elevation,square:square,variant:variant}),classes=(ownerState=>{const{square:square,elevation:elevation,variant:variant,classes:classes}=ownerState,slots={root:["root",variant,!square&&"rounded","elevation"===variant&&`elevation${elevation}`]};return(0,composeClasses.Z)(slots,getPaperUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsx)(PaperRoot,(0,esm_extends.Z)({as:component,ownerState:ownerState,className:(0,clsx.Z)(classes.root,className),ref:ref},other))}))},"./node_modules/@mui/material/Popover/Popover.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{XS:function(){return PopoverPaper},ZP:function(){return Popover_Popover}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react=__webpack_require__("./node_modules/react/index.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),useSlotProps=__webpack_require__("./node_modules/@mui/base/utils/useSlotProps.js"),isHostComponent=__webpack_require__("./node_modules/@mui/base/utils/isHostComponent.js"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),debounce=__webpack_require__("./node_modules/@mui/material/utils/debounce.js"),ownerDocument=__webpack_require__("./node_modules/@mui/material/utils/ownerDocument.js"),ownerWindow=__webpack_require__("./node_modules/@mui/material/utils/ownerWindow.js"),useForkRef=__webpack_require__("./node_modules/@mui/material/utils/useForkRef.js"),useTimeout=__webpack_require__("./node_modules/@mui/utils/useTimeout/useTimeout.js"),Transition=__webpack_require__("./node_modules/react-transition-group/esm/Transition.js"),useTheme=__webpack_require__("./node_modules/@mui/material/styles/useTheme.js"),utils=__webpack_require__("./node_modules/@mui/material/transitions/utils.js"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function getScale(value){return`scale(${value}, ${value**2})`}const styles={entering:{opacity:1,transform:getScale(1)},entered:{opacity:1,transform:"none"}},isWebKit154="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Grow=react.forwardRef((function Grow(props,ref){const{addEndListener:addEndListener,appear:appear=!0,children:children,easing:easing,in:inProp,onEnter:onEnter,onEntered:onEntered,onEntering:onEntering,onExit:onExit,onExited:onExited,onExiting:onExiting,style:style,timeout:timeout="auto",TransitionComponent:TransitionComponent=Transition.ZP}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),timer=(0,useTimeout.Z)(),autoTimeout=react.useRef(),theme=(0,useTheme.Z)(),nodeRef=react.useRef(null),handleRef=(0,useForkRef.Z)(nodeRef,children.ref,ref),normalizedTransitionCallback=callback=>maybeIsAppearing=>{if(callback){const node=nodeRef.current;void 0===maybeIsAppearing?callback(node):callback(node,maybeIsAppearing)}},handleEntering=normalizedTransitionCallback(onEntering),handleEnter=normalizedTransitionCallback(((node,isAppearing)=>{(0,utils.n)(node);const{duration:transitionDuration,delay:delay,easing:transitionTimingFunction}=(0,utils.C)({style:style,timeout:timeout,easing:easing},{mode:"enter"});let duration;"auto"===timeout?(duration=theme.transitions.getAutoHeightDuration(node.clientHeight),autoTimeout.current=duration):duration=transitionDuration,node.style.transition=[theme.transitions.create("opacity",{duration:duration,delay:delay}),theme.transitions.create("transform",{duration:isWebKit154?duration:.666*duration,delay:delay,easing:transitionTimingFunction})].join(","),onEnter&&onEnter(node,isAppearing)})),handleEntered=normalizedTransitionCallback(onEntered),handleExiting=normalizedTransitionCallback(onExiting),handleExit=normalizedTransitionCallback((node=>{const{duration:transitionDuration,delay:delay,easing:transitionTimingFunction}=(0,utils.C)({style:style,timeout:timeout,easing:easing},{mode:"exit"});let duration;"auto"===timeout?(duration=theme.transitions.getAutoHeightDuration(node.clientHeight),autoTimeout.current=duration):duration=transitionDuration,node.style.transition=[theme.transitions.create("opacity",{duration:duration,delay:delay}),theme.transitions.create("transform",{duration:isWebKit154?duration:.666*duration,delay:isWebKit154?delay:delay||.333*duration,easing:transitionTimingFunction})].join(","),node.style.opacity=0,node.style.transform=getScale(.75),onExit&&onExit(node)})),handleExited=normalizedTransitionCallback(onExited);return(0,jsx_runtime.jsx)(TransitionComponent,(0,esm_extends.Z)({appear:appear,in:inProp,nodeRef:nodeRef,onEnter:handleEnter,onEntered:handleEntered,onEntering:handleEntering,onExit:handleExit,onExited:handleExited,onExiting:handleExiting,addEndListener:next=>{"auto"===timeout&&timer.start(autoTimeout.current||0,next),addEndListener&&addEndListener(nodeRef.current,next)},timeout:"auto"===timeout?null:timeout},other,{children:(state,childProps)=>react.cloneElement(children,(0,esm_extends.Z)({style:(0,esm_extends.Z)({opacity:0,transform:getScale(.75),visibility:"exited"!==state||inProp?void 0:"hidden"},styles[state],style,children.props.style),ref:handleRef},childProps))}))}));Grow.muiSupportAuto=!0;var Grow_Grow=Grow,Modal=__webpack_require__("./node_modules/@mui/material/Modal/Modal.js"),Paper=__webpack_require__("./node_modules/@mui/material/Paper/Paper.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getPopoverUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiPopover",slot)}(0,generateUtilityClasses.Z)("MuiPopover",["root","paper"]);const Popover_excluded=["onEntering"],_excluded2=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_excluded3=["slotProps"];function getOffsetTop(rect,vertical){let offset=0;return"number"==typeof vertical?offset=vertical:"center"===vertical?offset=rect.height/2:"bottom"===vertical&&(offset=rect.height),offset}function getOffsetLeft(rect,horizontal){let offset=0;return"number"==typeof horizontal?offset=horizontal:"center"===horizontal?offset=rect.width/2:"right"===horizontal&&(offset=rect.width),offset}function getTransformOriginValue(transformOrigin){return[transformOrigin.horizontal,transformOrigin.vertical].map((n=>"number"==typeof n?`${n}px`:n)).join(" ")}function resolveAnchorEl(anchorEl){return"function"==typeof anchorEl?anchorEl():anchorEl}const PopoverRoot=(0,styled.ZP)(Modal.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(props,styles)=>styles.root})({}),PopoverPaper=(0,styled.ZP)(Paper.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(props,styles)=>styles.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var Popover_Popover=react.forwardRef((function Popover(inProps,ref){var _slotProps$paper,_slots$root,_slots$paper;const props=(0,useThemeProps.Z)({props:inProps,name:"MuiPopover"}),{action:action,anchorEl:anchorEl,anchorOrigin:anchorOrigin={vertical:"top",horizontal:"left"},anchorPosition:anchorPosition,anchorReference:anchorReference="anchorEl",children:children,className:className,container:containerProp,elevation:elevation=8,marginThreshold:marginThreshold=16,open:open,PaperProps:PaperPropsProp={},slots:slots,slotProps:slotProps,transformOrigin:transformOrigin={vertical:"top",horizontal:"left"},TransitionComponent:TransitionComponent=Grow_Grow,transitionDuration:transitionDurationProp="auto",TransitionProps:{onEntering:onEntering}={},disableScrollLock:disableScrollLock=!1}=props,TransitionProps=(0,objectWithoutPropertiesLoose.Z)(props.TransitionProps,Popover_excluded),other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded2),externalPaperSlotProps=null!=(_slotProps$paper=null==slotProps?void 0:slotProps.paper)?_slotProps$paper:PaperPropsProp,paperRef=react.useRef(),handlePaperRef=(0,useForkRef.Z)(paperRef,externalPaperSlotProps.ref),ownerState=(0,esm_extends.Z)({},props,{anchorOrigin:anchorOrigin,anchorReference:anchorReference,elevation:elevation,marginThreshold:marginThreshold,externalPaperSlotProps:externalPaperSlotProps,transformOrigin:transformOrigin,TransitionComponent:TransitionComponent,transitionDuration:transitionDurationProp,TransitionProps:TransitionProps}),classes=(ownerState=>{const{classes:classes}=ownerState;return(0,composeClasses.Z)({root:["root"],paper:["paper"]},getPopoverUtilityClass,classes)})(ownerState),getAnchorOffset=react.useCallback((()=>{if("anchorPosition"===anchorReference)return anchorPosition;const resolvedAnchorEl=resolveAnchorEl(anchorEl),anchorRect=(resolvedAnchorEl&&1===resolvedAnchorEl.nodeType?resolvedAnchorEl:(0,ownerDocument.Z)(paperRef.current).body).getBoundingClientRect();return{top:anchorRect.top+getOffsetTop(anchorRect,anchorOrigin.vertical),left:anchorRect.left+getOffsetLeft(anchorRect,anchorOrigin.horizontal)}}),[anchorEl,anchorOrigin.horizontal,anchorOrigin.vertical,anchorPosition,anchorReference]),getTransformOrigin=react.useCallback((elemRect=>({vertical:getOffsetTop(elemRect,transformOrigin.vertical),horizontal:getOffsetLeft(elemRect,transformOrigin.horizontal)})),[transformOrigin.horizontal,transformOrigin.vertical]),getPositioningStyle=react.useCallback((element=>{const elemRect={width:element.offsetWidth,height:element.offsetHeight},elemTransformOrigin=getTransformOrigin(elemRect);if("none"===anchorReference)return{top:null,left:null,transformOrigin:getTransformOriginValue(elemTransformOrigin)};const anchorOffset=getAnchorOffset();let top=anchorOffset.top-elemTransformOrigin.vertical,left=anchorOffset.left-elemTransformOrigin.horizontal;const bottom=top+elemRect.height,right=left+elemRect.width,containerWindow=(0,ownerWindow.Z)(resolveAnchorEl(anchorEl)),heightThreshold=containerWindow.innerHeight-marginThreshold,widthThreshold=containerWindow.innerWidth-marginThreshold;if(null!==marginThreshold&&topheightThreshold){const diff=bottom-heightThreshold;top-=diff,elemTransformOrigin.vertical+=diff}if(null!==marginThreshold&&leftwidthThreshold){const diff=right-widthThreshold;left-=diff,elemTransformOrigin.horizontal+=diff}return{top:`${Math.round(top)}px`,left:`${Math.round(left)}px`,transformOrigin:getTransformOriginValue(elemTransformOrigin)}}),[anchorEl,anchorReference,getAnchorOffset,getTransformOrigin,marginThreshold]),[isPositioned,setIsPositioned]=react.useState(open),setPositioningStyles=react.useCallback((()=>{const element=paperRef.current;if(!element)return;const positioning=getPositioningStyle(element);null!==positioning.top&&(element.style.top=positioning.top),null!==positioning.left&&(element.style.left=positioning.left),element.style.transformOrigin=positioning.transformOrigin,setIsPositioned(!0)}),[getPositioningStyle]);react.useEffect((()=>(disableScrollLock&&window.addEventListener("scroll",setPositioningStyles),()=>window.removeEventListener("scroll",setPositioningStyles))),[anchorEl,disableScrollLock,setPositioningStyles]);react.useEffect((()=>{open&&setPositioningStyles()})),react.useImperativeHandle(action,(()=>open?{updatePosition:()=>{setPositioningStyles()}}:null),[open,setPositioningStyles]),react.useEffect((()=>{if(!open)return;const handleResize=(0,debounce.Z)((()=>{setPositioningStyles()})),containerWindow=(0,ownerWindow.Z)(anchorEl);return containerWindow.addEventListener("resize",handleResize),()=>{handleResize.clear(),containerWindow.removeEventListener("resize",handleResize)}}),[anchorEl,open,setPositioningStyles]);let transitionDuration=transitionDurationProp;"auto"!==transitionDurationProp||TransitionComponent.muiSupportAuto||(transitionDuration=void 0);const container=containerProp||(anchorEl?(0,ownerDocument.Z)(resolveAnchorEl(anchorEl)).body:void 0),RootSlot=null!=(_slots$root=null==slots?void 0:slots.root)?_slots$root:PopoverRoot,PaperSlot=null!=(_slots$paper=null==slots?void 0:slots.paper)?_slots$paper:PopoverPaper,paperProps=(0,useSlotProps.y)({elementType:PaperSlot,externalSlotProps:(0,esm_extends.Z)({},externalPaperSlotProps,{style:isPositioned?externalPaperSlotProps.style:(0,esm_extends.Z)({},externalPaperSlotProps.style,{opacity:0})}),additionalProps:{elevation:elevation,ref:handlePaperRef},ownerState:ownerState,className:(0,clsx.Z)(classes.paper,null==externalPaperSlotProps?void 0:externalPaperSlotProps.className)}),_useSlotProps=(0,useSlotProps.y)({elementType:RootSlot,externalSlotProps:(null==slotProps?void 0:slotProps.root)||{},externalForwardedProps:other,additionalProps:{ref:ref,slotProps:{backdrop:{invisible:!0}},container:container,open:open},ownerState:ownerState,className:(0,clsx.Z)(classes.root,className)}),{slotProps:rootSlotPropsProp}=_useSlotProps,rootProps=(0,objectWithoutPropertiesLoose.Z)(_useSlotProps,_excluded3);return(0,jsx_runtime.jsx)(RootSlot,(0,esm_extends.Z)({},rootProps,!(0,isHostComponent.X)(RootSlot)&&{slotProps:rootSlotPropsProp,disableScrollLock:disableScrollLock},{children:(0,jsx_runtime.jsx)(TransitionComponent,(0,esm_extends.Z)({appear:!0,in:open,onEntering:(element,isAppearing)=>{onEntering&&onEntering(element,isAppearing),setPositioningStyles()},onExited:()=>{setIsPositioned(!1)},timeout:transitionDuration},TransitionProps,{children:(0,jsx_runtime.jsx)(PaperSlot,(0,esm_extends.Z)({},paperProps,{children:children}))}))}))}))},"./node_modules/@mui/material/node_modules/react-is/cjs/react-is.production.min.js":function(__unused_webpack_module,exports){"use strict";var u,b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen");function v(a){if("object"==typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}u=Symbol.for("react.module.reference")},"./node_modules/@mui/material/node_modules/react-is/index.js":function(module,__unused_webpack_exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/@mui/material/node_modules/react-is/cjs/react-is.production.min.js")},"./node_modules/@mui/material/utils/createSvgIcon.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return createSvgIcon}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("./node_modules/react/index.js"),objectWithoutPropertiesLoose=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),clsx=__webpack_require__("./node_modules/clsx/dist/clsx.mjs"),composeClasses=__webpack_require__("./node_modules/@mui/utils/composeClasses/composeClasses.js"),capitalize=__webpack_require__("./node_modules/@mui/material/utils/capitalize.js"),useThemeProps=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),generateUtilityClasses=__webpack_require__("./node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js"),generateUtilityClass=__webpack_require__("./node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js");function getSvgIconUtilityClass(slot){return(0,generateUtilityClass.ZP)("MuiSvgIcon",slot)}(0,generateUtilityClasses.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],SvgIconRoot=(0,styled.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(props,styles)=>{const{ownerState:ownerState}=props;return[styles.root,"inherit"!==ownerState.color&&styles[`color${(0,capitalize.Z)(ownerState.color)}`],styles[`fontSize${(0,capitalize.Z)(ownerState.fontSize)}`]]}})((({theme:theme,ownerState:ownerState})=>{var _theme$transitions,_theme$transitions$cr,_theme$transitions2,_theme$typography,_theme$typography$pxT,_theme$typography2,_theme$typography2$px,_theme$typography3,_theme$typography3$px,_palette$ownerState$c,_palette,_palette2,_palette3;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:ownerState.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(_theme$transitions=theme.transitions)||null==(_theme$transitions$cr=_theme$transitions.create)?void 0:_theme$transitions$cr.call(_theme$transitions,"fill",{duration:null==(_theme$transitions2=theme.transitions)||null==(_theme$transitions2=_theme$transitions2.duration)?void 0:_theme$transitions2.shorter}),fontSize:{inherit:"inherit",small:(null==(_theme$typography=theme.typography)||null==(_theme$typography$pxT=_theme$typography.pxToRem)?void 0:_theme$typography$pxT.call(_theme$typography,20))||"1.25rem",medium:(null==(_theme$typography2=theme.typography)||null==(_theme$typography2$px=_theme$typography2.pxToRem)?void 0:_theme$typography2$px.call(_theme$typography2,24))||"1.5rem",large:(null==(_theme$typography3=theme.typography)||null==(_theme$typography3$px=_theme$typography3.pxToRem)?void 0:_theme$typography3$px.call(_theme$typography3,35))||"2.1875rem"}[ownerState.fontSize],color:null!=(_palette$ownerState$c=null==(_palette=(theme.vars||theme).palette)||null==(_palette=_palette[ownerState.color])?void 0:_palette.main)?_palette$ownerState$c:{action:null==(_palette2=(theme.vars||theme).palette)||null==(_palette2=_palette2.action)?void 0:_palette2.active,disabled:null==(_palette3=(theme.vars||theme).palette)||null==(_palette3=_palette3.action)?void 0:_palette3.disabled,inherit:void 0}[ownerState.color]}})),SvgIcon=react.forwardRef((function SvgIcon(inProps,ref){const props=(0,useThemeProps.Z)({props:inProps,name:"MuiSvgIcon"}),{children:children,className:className,color:color="inherit",component:component="svg",fontSize:fontSize="medium",htmlColor:htmlColor,inheritViewBox:inheritViewBox=!1,titleAccess:titleAccess,viewBox:viewBox="0 0 24 24"}=props,other=(0,objectWithoutPropertiesLoose.Z)(props,_excluded),hasSvgAsChild=react.isValidElement(children)&&"svg"===children.type,ownerState=(0,esm_extends.Z)({},props,{color:color,component:component,fontSize:fontSize,instanceFontSize:inProps.fontSize,inheritViewBox:inheritViewBox,viewBox:viewBox,hasSvgAsChild:hasSvgAsChild}),more={};inheritViewBox||(more.viewBox=viewBox);const classes=(ownerState=>{const{color:color,fontSize:fontSize,classes:classes}=ownerState,slots={root:["root","inherit"!==color&&`color${(0,capitalize.Z)(color)}`,`fontSize${(0,capitalize.Z)(fontSize)}`]};return(0,composeClasses.Z)(slots,getSvgIconUtilityClass,classes)})(ownerState);return(0,jsx_runtime.jsxs)(SvgIconRoot,(0,esm_extends.Z)({as:component,className:(0,clsx.Z)(classes.root,className),focusable:"false",color:htmlColor,"aria-hidden":!titleAccess||void 0,role:titleAccess?"img":void 0,ref:ref},more,other,hasSvgAsChild&&children.props,{ownerState:ownerState,children:[hasSvgAsChild?children.props.children:children,titleAccess?(0,jsx_runtime.jsx)("title",{children:titleAccess}):null]}))}));SvgIcon.muiName="SvgIcon";var SvgIcon_SvgIcon=SvgIcon;function createSvgIcon(path,displayName){function Component(props,ref){return(0,jsx_runtime.jsx)(SvgIcon_SvgIcon,(0,esm_extends.Z)({"data-testid":`${displayName}Icon`,ref:ref},props,{children:path}))}return Component.muiName=SvgIcon_SvgIcon.muiName,react.memo(react.forwardRef(Component))}},"./node_modules/@mui/material/utils/debounce.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_utils_debounce__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/debounce/debounce.js");__webpack_exports__.Z=_mui_utils_debounce__WEBPACK_IMPORTED_MODULE_0__.Z},"./node_modules/@mui/material/utils/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{capitalize:function(){return capitalize.Z},createChainedFunction:function(){return utils_createChainedFunction},createSvgIcon:function(){return createSvgIcon.Z},debounce:function(){return debounce.Z},deprecatedPropType:function(){return utils_deprecatedPropType},isMuiElement:function(){return isMuiElement.Z},ownerDocument:function(){return ownerDocument.Z},ownerWindow:function(){return ownerWindow.Z},requirePropFactory:function(){return utils_requirePropFactory},setRef:function(){return utils_setRef},unstable_ClassNameGenerator:function(){return unstable_ClassNameGenerator},unstable_useEnhancedEffect:function(){return useEnhancedEffect.Z},unstable_useId:function(){return utils_useId},unsupportedProp:function(){return utils_unsupportedProp},useControlled:function(){return useControlled.Z},useEventCallback:function(){return useEventCallback.Z},useForkRef:function(){return useForkRef.Z},useIsFocusVisible:function(){return useIsFocusVisible.Z}});var ClassNameGenerator=__webpack_require__("./node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js"),capitalize=__webpack_require__("./node_modules/@mui/material/utils/capitalize.js"),utils_createChainedFunction=__webpack_require__("./node_modules/@mui/utils/createChainedFunction/createChainedFunction.js").Z,createSvgIcon=__webpack_require__("./node_modules/@mui/material/utils/createSvgIcon.js"),debounce=__webpack_require__("./node_modules/@mui/material/utils/debounce.js");var utils_deprecatedPropType=function deprecatedPropType(validator,reason){return()=>null},isMuiElement=__webpack_require__("./node_modules/@mui/material/utils/isMuiElement.js"),ownerDocument=__webpack_require__("./node_modules/@mui/material/utils/ownerDocument.js"),ownerWindow=__webpack_require__("./node_modules/@mui/material/utils/ownerWindow.js");__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js");var utils_requirePropFactory=function requirePropFactory(componentNameInError,Component){return()=>null},utils_setRef=__webpack_require__("./node_modules/@mui/utils/setRef/setRef.js").Z,useEnhancedEffect=__webpack_require__("./node_modules/@mui/material/utils/useEnhancedEffect.js"),utils_useId=__webpack_require__("./node_modules/@mui/utils/useId/useId.js").Z;var utils_unsupportedProp=function unsupportedProp(props,propName,componentName,location,propFullName){return null},useControlled=__webpack_require__("./node_modules/@mui/material/utils/useControlled.js"),useEventCallback=__webpack_require__("./node_modules/@mui/material/utils/useEventCallback.js"),useForkRef=__webpack_require__("./node_modules/@mui/material/utils/useForkRef.js"),useIsFocusVisible=__webpack_require__("./node_modules/@mui/material/utils/useIsFocusVisible.js");const unstable_ClassNameGenerator={configure:generator=>{ClassNameGenerator.Z.configure(generator)}}},"./node_modules/@mui/material/utils/isMuiElement.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return utils_isMuiElement}});var react=__webpack_require__("./node_modules/react/index.js");var utils_isMuiElement=function isMuiElement(element,muiNames){var _muiName,_element$type;return react.isValidElement(element)&&-1!==muiNames.indexOf(null!=(_muiName=element.type.muiName)?_muiName:null==(_element$type=element.type)||null==(_element$type=_element$type._payload)||null==(_element$type=_element$type.value)?void 0:_element$type.muiName)}},"./node_modules/@mui/material/utils/ownerDocument.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/ownerDocument/ownerDocument.js");__webpack_exports__.Z=_mui_utils_ownerDocument__WEBPACK_IMPORTED_MODULE_0__.Z},"./node_modules/@mui/material/utils/ownerWindow.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_utils_ownerWindow__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/ownerWindow/ownerWindow.js");__webpack_exports__.Z=_mui_utils_ownerWindow__WEBPACK_IMPORTED_MODULE_0__.Z},"./node_modules/@mui/material/utils/useControlled.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_utils_useControlled__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/useControlled/useControlled.js");__webpack_exports__.Z=_mui_utils_useControlled__WEBPACK_IMPORTED_MODULE_0__.Z},"./node_modules/@mui/material/utils/useEnhancedEffect.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_utils_useEnhancedEffect__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js");__webpack_exports__.Z=_mui_utils_useEnhancedEffect__WEBPACK_IMPORTED_MODULE_0__.Z},"./node_modules/@mui/material/utils/useEventCallback.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/useEventCallback/useEventCallback.js");__webpack_exports__.Z=_mui_utils_useEventCallback__WEBPACK_IMPORTED_MODULE_0__.Z},"./node_modules/@mui/material/utils/useIsFocusVisible.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _mui_utils_useIsFocusVisible__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js");__webpack_exports__.Z=_mui_utils_useIsFocusVisible__WEBPACK_IMPORTED_MODULE_0__.Z},"./node_modules/@mui/material/zero-styled/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return createUseThemeProps}});var _styles_useThemeProps__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/material/styles/useThemeProps.js");function createUseThemeProps(name){return _styles_useThemeProps__WEBPACK_IMPORTED_MODULE_0__.Z}},"./node_modules/@mui/system/esm/RtlProvider/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{V:function(){return useRtl}});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js");const _excluded=["value"],RtlContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext();const useRtl=()=>{const value=react__WEBPACK_IMPORTED_MODULE_0__.useContext(RtlContext);return null!=value&&value};__webpack_exports__.Z=function RtlProvider(_ref){let{value:value}=_ref,props=(0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__.Z)(_ref,_excluded);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(RtlContext.Provider,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.Z)({value:null==value||value},props))}},"./node_modules/@mui/utils/createChainedFunction/createChainedFunction.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function createChainedFunction(...funcs){return funcs.reduce(((acc,func)=>null==func?acc:function chainedFunction(...args){acc.apply(this,args),func.apply(this,args)}),(()=>{}))}__webpack_require__.d(__webpack_exports__,{Z:function(){return createChainedFunction}})},"./node_modules/@mui/utils/debounce/debounce.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function debounce(func,wait=166){let timeout;function debounced(...args){clearTimeout(timeout),timeout=setTimeout((()=>{func.apply(this,args)}),wait)}return debounced.clear=()=>{clearTimeout(timeout)},debounced}__webpack_require__.d(__webpack_exports__,{Z:function(){return debounce}})},"./node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function getScrollbarSize(doc){const documentWidth=doc.documentElement.clientWidth;return Math.abs(window.innerWidth-documentWidth)}__webpack_require__.d(__webpack_exports__,{Z:function(){return getScrollbarSize}})},"./node_modules/@mui/utils/ownerDocument/ownerDocument.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function ownerDocument(node){return node&&node.ownerDocument||document}__webpack_require__.d(__webpack_exports__,{Z:function(){return ownerDocument}})},"./node_modules/@mui/utils/ownerWindow/ownerWindow.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ownerWindow}});var _ownerDocument__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mui/utils/ownerDocument/ownerDocument.js");function ownerWindow(node){return(0,_ownerDocument__WEBPACK_IMPORTED_MODULE_0__.Z)(node).defaultView||window}},"./node_modules/@mui/utils/useControlled/useControlled.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useControlled}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function useControlled({controlled:controlled,default:defaultProp,name:name,state:state="value"}){const{current:isControlled}=react__WEBPACK_IMPORTED_MODULE_0__.useRef(void 0!==controlled),[valueState,setValue]=react__WEBPACK_IMPORTED_MODULE_0__.useState(defaultProp);return[isControlled?controlled:valueState,react__WEBPACK_IMPORTED_MODULE_0__.useCallback((newValue=>{isControlled||setValue(newValue)}),[])]}},"./node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const useEnhancedEffect="undefined"!=typeof window?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect;__webpack_exports__.Z=useEnhancedEffect},"./node_modules/@mui/utils/useEventCallback/useEventCallback.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_useEnhancedEffect__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js");__webpack_exports__.Z=function useEventCallback(fn){const ref=react__WEBPACK_IMPORTED_MODULE_0__.useRef(fn);return(0,_useEnhancedEffect__WEBPACK_IMPORTED_MODULE_1__.Z)((()=>{ref.current=fn})),react__WEBPACK_IMPORTED_MODULE_0__.useRef(((...args)=>(0,ref.current)(...args))).current}},"./node_modules/@mui/utils/useId/useId.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{Z:function(){return useId}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");let globalId=0;const maybeReactUseId=(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__,2)))["useId".toString()];function useId(idOverride){if(void 0!==maybeReactUseId){const reactId=maybeReactUseId();return null!=idOverride?idOverride:reactId}return function useGlobalId(idOverride){const[defaultId,setDefaultId]=react__WEBPACK_IMPORTED_MODULE_0__.useState(idOverride),id=idOverride||defaultId;return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{null==defaultId&&(globalId+=1,setDefaultId(`mui-${globalId}`))}),[defaultId]),id}(idOverride)}},"./node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return useIsFocusVisible}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_useTimeout_useTimeout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@mui/utils/useTimeout/useTimeout.js");let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1;const hadFocusVisibleRecentlyTimeout=new _useTimeout_useTimeout__WEBPACK_IMPORTED_MODULE_1__.V,inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function handleKeyDown(event){event.metaKey||event.altKey||event.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){"hidden"===this.visibilityState&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function isFocusVisible(event){const{target:target}=event;try{return target.matches(":focus-visible")}catch(error){}return hadKeyboardEvent||function focusTriggersKeyboardModality(node){const{type:type,tagName:tagName}=node;return!("INPUT"!==tagName||!inputTypesWhitelist[type]||node.readOnly)||"TEXTAREA"===tagName&&!node.readOnly||!!node.isContentEditable}(target)}function useIsFocusVisible(){const ref=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((node=>{null!=node&&function prepare(doc){doc.addEventListener("keydown",handleKeyDown,!0),doc.addEventListener("mousedown",handlePointerDown,!0),doc.addEventListener("pointerdown",handlePointerDown,!0),doc.addEventListener("touchstart",handlePointerDown,!0),doc.addEventListener("visibilitychange",handleVisibilityChange,!0)}(node.ownerDocument)}),[]),isFocusVisibleRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1);return{isFocusVisibleRef:isFocusVisibleRef,onFocus:function handleFocusVisible(event){return!!isFocusVisible(event)&&(isFocusVisibleRef.current=!0,!0)},onBlur:function handleBlurVisible(){return!!isFocusVisibleRef.current&&(hadFocusVisibleRecently=!0,hadFocusVisibleRecentlyTimeout.start(100,(()=>{hadFocusVisibleRecently=!1})),isFocusVisibleRef.current=!1,!0)},ref:ref}}},"./node_modules/lodash-es/_cloneBuffer.js":function(module,__webpack_exports__,__webpack_require__){"use strict";var _root_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lodash-es/_root.js");module=__webpack_require__.hmd(module);var freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,Buffer=freeModule&&freeModule.exports===freeExports?_root_js__WEBPACK_IMPORTED_MODULE_0__.Z.Buffer:void 0,allocUnsafe=Buffer?Buffer.allocUnsafe:void 0;__webpack_exports__.Z=function cloneBuffer(buffer,isDeep){if(isDeep)return buffer.slice();var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);return buffer.copy(result),result}},"./node_modules/lodash-es/_freeGlobal.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var freeGlobal="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g;__webpack_exports__.Z=freeGlobal},"./node_modules/lodash-es/_nodeUtil.js":function(module,__webpack_exports__,__webpack_require__){"use strict";var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lodash-es/_freeGlobal.js");module=__webpack_require__.hmd(module);var freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,freeProcess=freeModule&&freeModule.exports===freeExports&&_freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__.Z.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();__webpack_exports__.Z=nodeUtil},"./node_modules/lodash-es/_root.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lodash-es/_freeGlobal.js"),freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=_freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__.Z||freeSelf||Function("return this")();__webpack_exports__.Z=root},"./node_modules/lodash-es/isBuffer.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return lodash_es_isBuffer}});var _root=__webpack_require__("./node_modules/lodash-es/_root.js");var lodash_es_stubFalse=function stubFalse(){return!1};module=__webpack_require__.hmd(module);var freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,Buffer=freeModule&&freeModule.exports===freeExports?_root.Z.Buffer:void 0,lodash_es_isBuffer=(Buffer?Buffer.isBuffer:void 0)||lodash_es_stubFalse},"./node_modules/lodash/_baseEach.js":function(module,__unused_webpack_exports,__webpack_require__){var baseForOwn=__webpack_require__("./node_modules/lodash/_baseForOwn.js"),baseEach=__webpack_require__("./node_modules/lodash/_createBaseEach.js")(baseForOwn);module.exports=baseEach},"./node_modules/lodash/_baseMap.js":function(module,__unused_webpack_exports,__webpack_require__){var baseEach=__webpack_require__("./node_modules/lodash/_baseEach.js"),isArrayLike=__webpack_require__("./node_modules/lodash/isArrayLike.js");module.exports=function baseMap(collection,iteratee){var index=-1,result=isArrayLike(collection)?Array(collection.length):[];return baseEach(collection,(function(value,key,collection){result[++index]=iteratee(value,key,collection)})),result}},"./node_modules/lodash/_baseTrim.js":function(module,__unused_webpack_exports,__webpack_require__){var trimmedEndIndex=__webpack_require__("./node_modules/lodash/_trimmedEndIndex.js"),reTrimStart=/^\s+/;module.exports=function baseTrim(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string}},"./node_modules/lodash/_castFunction.js":function(module,__unused_webpack_exports,__webpack_require__){var identity=__webpack_require__("./node_modules/lodash/identity.js");module.exports=function castFunction(value){return"function"==typeof value?value:identity}},"./node_modules/lodash/_createBaseEach.js":function(module,__unused_webpack_exports,__webpack_require__){var isArrayLike=__webpack_require__("./node_modules/lodash/isArrayLike.js");module.exports=function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){if(null==collection)return collection;if(!isArrayLike(collection))return eachFunc(collection,iteratee);for(var length=collection.length,index=fromRight?length:-1,iterable=Object(collection);(fromRight?index--:++index=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(now())},debounced}},"./node_modules/lodash/forOwn.js":function(module,__unused_webpack_exports,__webpack_require__){var baseForOwn=__webpack_require__("./node_modules/lodash/_baseForOwn.js"),castFunction=__webpack_require__("./node_modules/lodash/_castFunction.js");module.exports=function forOwn(object,iteratee){return object&&baseForOwn(object,castFunction(iteratee))}},"./node_modules/lodash/map.js":function(module,__unused_webpack_exports,__webpack_require__){var arrayMap=__webpack_require__("./node_modules/lodash/_arrayMap.js"),baseIteratee=__webpack_require__("./node_modules/lodash/_baseIteratee.js"),baseMap=__webpack_require__("./node_modules/lodash/_baseMap.js"),isArray=__webpack_require__("./node_modules/lodash/isArray.js");module.exports=function map(collection,iteratee){return(isArray(collection)?arrayMap:baseMap)(collection,baseIteratee(iteratee,3))}},"./node_modules/lodash/now.js":function(module,__unused_webpack_exports,__webpack_require__){var root=__webpack_require__("./node_modules/lodash/_root.js");module.exports=function(){return root.Date.now()}},"./node_modules/lodash/throttle.js":function(module,__unused_webpack_exports,__webpack_require__){var debounce=__webpack_require__("./node_modules/lodash/debounce.js"),isObject=__webpack_require__("./node_modules/lodash/isObject.js");module.exports=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})}},"./node_modules/lodash/toNumber.js":function(module,__unused_webpack_exports,__webpack_require__){var baseTrim=__webpack_require__("./node_modules/lodash/_baseTrim.js"),isObject=__webpack_require__("./node_modules/lodash/isObject.js"),isSymbol=__webpack_require__("./node_modules/lodash/isSymbol.js"),reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;module.exports=function toNumber(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value}},"./node_modules/reactcss/lib/autoprefix.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.autoprefix=void 0;var _forOwn3=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("./node_modules/lodash/forOwn.js")),_extends=Object.assign||function(target){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:"span";return function(_React$Component){function Active(){var _ref,_temp,_this;!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Active);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _temp=_this=_possibleConstructorReturn(this,(_ref=Active.__proto__||Object.getPrototypeOf(Active)).call.apply(_ref,[this].concat(args))),_this.state={active:!1},_this.handleMouseDown=function(){return _this.setState({active:!0})},_this.handleMouseUp=function(){return _this.setState({active:!1})},_this.render=function(){return _react2.default.createElement(Span,{onMouseDown:_this.handleMouseDown,onMouseUp:_this.handleMouseUp},_react2.default.createElement(Component,_extends({},_this.props,_this.state)))},_possibleConstructorReturn(_this,_temp)}return function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Active,_React$Component),Active}(_react2.default.Component)};exports.default=active},"./node_modules/reactcss/lib/components/hover.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hover=void 0;var _extends=Object.assign||function(target){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:"span";return function(_React$Component){function Hover(){var _ref,_temp,_this;!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Hover);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _temp=_this=_possibleConstructorReturn(this,(_ref=Hover.__proto__||Object.getPrototypeOf(Hover)).call.apply(_ref,[this].concat(args))),_this.state={hover:!1},_this.handleMouseOver=function(){return _this.setState({hover:!0})},_this.handleMouseOut=function(){return _this.setState({hover:!1})},_this.render=function(){return _react2.default.createElement(Span,{onMouseOver:_this.handleMouseOver,onMouseOut:_this.handleMouseOut},_react2.default.createElement(Component,_extends({},_this.props,_this.state)))},_possibleConstructorReturn(_this,_temp)}return function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}(Hover,_React$Component),Hover}(_react2.default.Component)};exports.default=hover},"./node_modules/reactcss/lib/flattenNames.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.flattenNames=void 0;var _isString3=_interopRequireDefault(__webpack_require__("./node_modules/lodash/isString.js")),_forOwn3=_interopRequireDefault(__webpack_require__("./node_modules/lodash/forOwn.js")),_isPlainObject3=_interopRequireDefault(__webpack_require__("./node_modules/lodash/isPlainObject.js")),_map3=_interopRequireDefault(__webpack_require__("./node_modules/lodash/map.js"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var flattenNames=exports.flattenNames=function flattenNames(){var things=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],names=[];return(0,_map3.default)(things,(function(thing){Array.isArray(thing)?flattenNames(thing).map((function(name){return names.push(name)})):(0,_isPlainObject3.default)(thing)?(0,_forOwn3.default)(thing,(function(value,key){!0===value&&names.push(key),names.push(key+"-"+value)})):(0,_isString3.default)(thing)&&names.push(thing)})),names};exports.default=flattenNames},"./node_modules/reactcss/lib/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";exports.tz=void 0;var _flattenNames2=_interopRequireDefault(__webpack_require__("./node_modules/reactcss/lib/flattenNames.js")),_mergeClasses2=_interopRequireDefault(__webpack_require__("./node_modules/reactcss/lib/mergeClasses.js")),_autoprefix2=_interopRequireDefault(__webpack_require__("./node_modules/reactcss/lib/autoprefix.js")),_hover3=_interopRequireDefault(__webpack_require__("./node_modules/reactcss/lib/components/hover.js")),_active2=_interopRequireDefault(__webpack_require__("./node_modules/reactcss/lib/components/active.js")),_loop3=_interopRequireDefault(__webpack_require__("./node_modules/reactcss/lib/loop.js"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}_hover3.default,exports.tz=_hover3.default,_active2.default,_loop3.default;var ReactCSS=function ReactCSS(classes){for(var _len=arguments.length,activations=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)activations[_key-1]=arguments[_key];var activeNames=(0,_flattenNames2.default)(activations),merged=(0,_mergeClasses2.default)(classes,activeNames);return(0,_autoprefix2.default)(merged)};exports.ZP=ReactCSS},"./node_modules/reactcss/lib/loop.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=function loopable(i,length){var props={},setProp=function setProp(name){var value=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];props[name]=value};return 0===i&&setProp("first-child"),i===length-1&&setProp("last-child"),(0===i||i%2==0)&&setProp("even"),1===Math.abs(i%2)&&setProp("odd"),setProp("nth-child",i),props}},"./node_modules/reactcss/lib/mergeClasses.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mergeClasses=void 0;var _forOwn3=_interopRequireDefault(__webpack_require__("./node_modules/lodash/forOwn.js")),_cloneDeep3=_interopRequireDefault(__webpack_require__("./node_modules/lodash/cloneDeep.js")),_extends=Object.assign||function(target){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:[],styles=classes.default&&(0,_cloneDeep3.default)(classes.default)||{};return activeNames.map((function(name){var toMerge=classes[name];return toMerge&&(0,_forOwn3.default)(toMerge,(function(value,key){styles[key]||(styles[key]={}),styles[key]=_extends({},styles[key],toMerge[key])})),name})),styles};exports.default=mergeClasses},"./node_modules/@emerson-eps/color-tables/dist/component/color-tables.json":function(module){"use strict";module.exports=JSON.parse('[{"name":"Physics","discrete":false,"description":"Full options color table","colorNaN":[255,255,255],"colorBelow":[255,0,0],"colorAbove":[0,0,255],"colors":[[0,255,0,0],[0.25,255,255,0],[0.5,0,255,0],[0.75,0,255,255],[1,0,0,255]]},{"name":"Physics reverse","discrete":false,"colors":[[0,0,0,255],[0.25,0,182,182],[0.5,0,255,0],[0.75,182,182,0],[1,255,0,0]]},{"name":"Rainbow","discrete":false,"colors":[[0,255,0,0],[0.2,255,255,0],[0.4,0,255,0],[0.6,0,255,255],[0.8,0,0,255],[1,255,0,255]]},{"name":"Rainbow reverse","discrete":false,"colors":[[0,182,0,182],[0.2,0,0,255],[0.4,0,182,182],[0.6,0,255,0],[0.8,182,182,0],[1,255,0,0]]},{"name":"Porosity","discrete":false,"colors":[[0,255,246,117],[0.11,255,243,53],[0.18,255,241,0],[0.25,155,193,0],[0.32,255,155,23],[0.39,255,162,61],[0.46,255,126,45],[0.53,227,112,24],[0.6,246,96,31],[0.67,229,39,48],[0.74,252,177,170],[0.81,236,103,146],[0.88,226,44,118],[1,126,40,111]]},{"name":"Permeability","discrete":false,"colors":[[0,119,63,49],[0.148,135,49,45],[0.246,154,89,24],[0.344,191,88,22],[0.441,190,142,97],[0.539,255,126,45],[0.637,255,162,61],[0.734,255,155,23],[0.832,255,241,0],[1,255,246,117]]},{"name":"Seismic","discrete":false,"colors":[[0,0,0,255],[0.5,255,255,255],[1,255,2,2]]},{"name":"Time/Depth","discrete":false,"colors":[[0,252,174,169],[0.1,226,44,118],[0.168,229,39,48],[0.234,150,40,34],[0.301,255,126,45],[0.367,255,162,61],[0.434,255,241,0],[0.5,219,228,163],[0.566,0,143,74],[0.633,0,110,78],[0.699,0,124,140],[0.766,116,190,230],[0.832,0,143,212],[0.898,0,51,116],[1,74,19,86]]},{"name":"Stratigraphy","discrete":true,"colorNaN":[255,64,64],"colors":[[0,255,120,61],[1,255,193,0],[2,255,155,76],[3,255,223,161],[4,226,44,118],[5,255,243,53],[6,255,212,179],[7,255,155,23],[8,255,246,117],[9,255,241,0],[10,255,211,178],[11,255,173,128],[12,248,152,0],[13,154,89,24],[14,0,138,185],[15,82,161,40],[16,219,228,163],[17,0,119,64],[18,0,110,172],[19,116,190,230],[20,0,155,212],[21,0,117,190],[22,143,40,112],[23,220,153,190],[24,226,44,118],[25,126,40,111],[26,73,69,43],[27,203,63,42],[28,255,198,190],[29,135,49,45],[30,150,136,120],[31,198,182,175],[32,166,154,145],[33,191,88,22],[34,255,212,179],[35,251,139,105],[36,154,89,24],[37,186,222,200],[38,0,124,140],[39,87,84,83]]},{"name":"Facies","discrete":true,"colors":[[0,255,193,0],[1,255,246,117],[2,166,194,42],[3,149,160,24],[4,9,143,74],[5,125,98,15],[6,0,108,154],[7,0,117,190],[8,28,22,59],[9,39,142,199],[10,0,138,185],[11,52,178,188],[12,235,63,34],[13,74,19,86],[14,248,152,0],[15,1,1,1],[16,128,128,128]]},{"name":"GasOilWater","discrete":true,"colors":[[0,255,46,0],[1,0,184,0],[2,0,25,255],[3,179,179,179]]},{"name":"GasWater","discrete":true,"colors":[[0,255,46,0],[1,0,25,255],[2,179,179,179]]},{"name":"OilWater","discrete":true,"colors":[[0,0,184,0],[1,0,25,255],[2,179,179,179]]},{"name":"Accent","discrete":true,"colors":[[0,127,201,127],[1,190,174,212],[2,253,192,134],[4,255,255,153],[5,56,108,176],[6,240,2,127],[7,191,91,23],[8,102,102,102]]},{"name":"Colors_set_1","discrete":"true","colors":[[0,255,13,186],[1,255,64,53],[2,247,255,164],[3,112,255,97],[4,9,254,133],[5,254,4,135],[6,255,5,94],[7,32,50,255],[8,109,255,32],[9,254,146,92],[10,185,116,255],[11,255,144,1],[12,157,32,255],[13,255,26,202],[14,73,255,35]]},{"name":"Colors_set_3","discrete":"true","colors":[[0,120,181,255],[1,255,29,102],[2,247,255,173],[3,239,157,255],[4,186,255,236],[5,46,255,121],[6,212,255,144],[7,165,255,143],[8,122,255,89],[9,255,212,213]]}]')}}]); -//# sourceMappingURL=5527.c1f603f4.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=6086.9cc5e4f5.iframe.bundle.js.map \ No newline at end of file diff --git a/storybook-static/5527.c1f603f4.iframe.bundle.js.LICENSE.txt b/storybook-static/6086.9cc5e4f5.iframe.bundle.js.LICENSE.txt similarity index 100% rename from storybook-static/5527.c1f603f4.iframe.bundle.js.LICENSE.txt rename to storybook-static/6086.9cc5e4f5.iframe.bundle.js.LICENSE.txt diff --git a/storybook-static/5527.c1f603f4.iframe.bundle.js.map b/storybook-static/6086.9cc5e4f5.iframe.bundle.js.map similarity index 99% rename from storybook-static/5527.c1f603f4.iframe.bundle.js.map rename to storybook-static/6086.9cc5e4f5.iframe.bundle.js.map index 6a7509020..e26a53221 100644 --- a/storybook-static/5527.c1f603f4.iframe.bundle.js.map +++ b/storybook-static/6086.9cc5e4f5.iframe.bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"5527.c1f603f4.iframe.bundle.js","mappings":";;;;;;;;;;;AAkCA;;;;;;;;AASA;;;;;;;;;;;;AAaA;;;;AAwBA;;;AAGA;AACA;AACA;;;AAGA;AACA;;;AAGA;;;;;;;;;AASA;;AAEA;AACA;AACA;;;AAGA;;;;;AAKA;;AAEA;;;;AAIA","sources":["webpack://@webviz/subsurface-components/./node_modules/@mui/material/ButtonBase/TouchRipple.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"center\", \"classes\", \"className\"];\nlet _ = t => t,\n _t,\n _t2,\n _t3,\n _t4;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { TransitionGroup } from 'react-transition-group';\nimport clsx from 'clsx';\nimport { keyframes } from '@mui/system';\nimport useTimeout from '@mui/utils/useTimeout';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport Ripple from './Ripple';\nimport touchRippleClasses from './touchRippleClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DURATION = 550;\nexport const DELAY_RIPPLE = 80;\nconst enterKeyframe = keyframes(_t || (_t = _`\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n`));\nconst exitKeyframe = keyframes(_t2 || (_t2 = _`\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n`));\nconst pulsateKeyframe = keyframes(_t3 || (_t3 = _`\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n`));\nexport const TouchRippleRoot = styled('span', {\n name: 'MuiTouchRipple',\n slot: 'Root'\n})({\n overflow: 'hidden',\n pointerEvents: 'none',\n position: 'absolute',\n zIndex: 0,\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: 'inherit'\n});\n\n// This `styled()` function invokes keyframes. `styled-components` only supports keyframes\n// in string templates. Do not convert these styles in JS object as it will break.\nexport const TouchRippleRipple = styled(Ripple, {\n name: 'MuiTouchRipple',\n slot: 'Ripple'\n})(_t4 || (_t4 = _`\n opacity: 0;\n position: absolute;\n\n &.${0} {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n &.${0} {\n animation-duration: ${0}ms;\n }\n\n & .${0} {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & .${0} {\n opacity: 0;\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n & .${0} {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ${0};\n animation-duration: 2500ms;\n animation-timing-function: ${0};\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n`), touchRippleClasses.rippleVisible, enterKeyframe, DURATION, ({\n theme\n}) => theme.transitions.easing.easeInOut, touchRippleClasses.ripplePulsate, ({\n theme\n}) => theme.transitions.duration.shorter, touchRippleClasses.child, touchRippleClasses.childLeaving, exitKeyframe, DURATION, ({\n theme\n}) => theme.transitions.easing.easeInOut, touchRippleClasses.childPulsate, pulsateKeyframe, ({\n theme\n}) => theme.transitions.easing.easeInOut);\n\n/**\n * @ignore - internal component.\n *\n * TODO v5: Make private\n */\nconst TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTouchRipple'\n });\n const {\n center: centerProp = false,\n classes = {},\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const [ripples, setRipples] = React.useState([]);\n const nextKey = React.useRef(0);\n const rippleCallback = React.useRef(null);\n React.useEffect(() => {\n if (rippleCallback.current) {\n rippleCallback.current();\n rippleCallback.current = null;\n }\n }, [ripples]);\n\n // Used to filter out mouse emulated events on mobile.\n const ignoringMouseDown = React.useRef(false);\n // We use a timer in order to only show the ripples for touch \"click\" like events.\n // We don't want to display the ripple for touch scroll events.\n const startTimer = useTimeout();\n\n // This is the hook called once the previous timeout is ready.\n const startTimerCommit = React.useRef(null);\n const container = React.useRef(null);\n const startCommit = React.useCallback(params => {\n const {\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n } = params;\n setRipples(oldRipples => [...oldRipples, /*#__PURE__*/_jsx(TouchRippleRipple, {\n classes: {\n ripple: clsx(classes.ripple, touchRippleClasses.ripple),\n rippleVisible: clsx(classes.rippleVisible, touchRippleClasses.rippleVisible),\n ripplePulsate: clsx(classes.ripplePulsate, touchRippleClasses.ripplePulsate),\n child: clsx(classes.child, touchRippleClasses.child),\n childLeaving: clsx(classes.childLeaving, touchRippleClasses.childLeaving),\n childPulsate: clsx(classes.childPulsate, touchRippleClasses.childPulsate)\n },\n timeout: DURATION,\n pulsate: pulsate,\n rippleX: rippleX,\n rippleY: rippleY,\n rippleSize: rippleSize\n }, nextKey.current)]);\n nextKey.current += 1;\n rippleCallback.current = cb;\n }, [classes]);\n const start = React.useCallback((event = {}, options = {}, cb = () => {}) => {\n const {\n pulsate = false,\n center = centerProp || options.pulsate,\n fakeElement = false // For test purposes\n } = options;\n if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {\n ignoringMouseDown.current = false;\n return;\n }\n if ((event == null ? void 0 : event.type) === 'touchstart') {\n ignoringMouseDown.current = true;\n }\n const element = fakeElement ? null : container.current;\n const rect = element ? element.getBoundingClientRect() : {\n width: 0,\n height: 0,\n left: 0,\n top: 0\n };\n\n // Get the size of the ripple\n let rippleX;\n let rippleY;\n let rippleSize;\n if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {\n rippleX = Math.round(rect.width / 2);\n rippleY = Math.round(rect.height / 2);\n } else {\n const {\n clientX,\n clientY\n } = event.touches && event.touches.length > 0 ? event.touches[0] : event;\n rippleX = Math.round(clientX - rect.left);\n rippleY = Math.round(clientY - rect.top);\n }\n if (center) {\n rippleSize = Math.sqrt((2 * rect.width ** 2 + rect.height ** 2) / 3);\n\n // For some reason the animation is broken on Mobile Chrome if the size is even.\n if (rippleSize % 2 === 0) {\n rippleSize += 1;\n }\n } else {\n const sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;\n const sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;\n rippleSize = Math.sqrt(sizeX ** 2 + sizeY ** 2);\n }\n\n // Touche devices\n if (event != null && event.touches) {\n // check that this isn't another touchstart due to multitouch\n // otherwise we will only clear a single timer when unmounting while two\n // are running\n if (startTimerCommit.current === null) {\n // Prepare the ripple effect.\n startTimerCommit.current = () => {\n startCommit({\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n });\n };\n // Delay the execution of the ripple effect.\n // We have to make a tradeoff with this delay value.\n startTimer.start(DELAY_RIPPLE, () => {\n if (startTimerCommit.current) {\n startTimerCommit.current();\n startTimerCommit.current = null;\n }\n });\n }\n } else {\n startCommit({\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n });\n }\n }, [centerProp, startCommit, startTimer]);\n const pulsate = React.useCallback(() => {\n start({}, {\n pulsate: true\n });\n }, [start]);\n const stop = React.useCallback((event, cb) => {\n startTimer.clear();\n\n // The touch interaction occurs too quickly.\n // We still want to show ripple effect.\n if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {\n startTimerCommit.current();\n startTimerCommit.current = null;\n startTimer.start(0, () => {\n stop(event, cb);\n });\n return;\n }\n startTimerCommit.current = null;\n setRipples(oldRipples => {\n if (oldRipples.length > 0) {\n return oldRipples.slice(1);\n }\n return oldRipples;\n });\n rippleCallback.current = cb;\n }, [startTimer]);\n React.useImperativeHandle(ref, () => ({\n pulsate,\n start,\n stop\n }), [pulsate, start, stop]);\n return /*#__PURE__*/_jsx(TouchRippleRoot, _extends({\n className: clsx(touchRippleClasses.root, classes.root, className),\n ref: container\n }, other, {\n children: /*#__PURE__*/_jsx(TransitionGroup, {\n component: null,\n exit: true,\n children: ripples\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TouchRipple.propTypes = {\n /**\n * If `true`, the ripple starts at the center of the component\n * rather than at the point of interaction.\n */\n center: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string\n} : void 0;\nexport default TouchRipple;"],"names":[],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"6086.9cc5e4f5.iframe.bundle.js","mappings":";;;;;;;;;;;AAkCA;;;;;;;;AASA;;;;;;;;;;;;AAaA;;;;AAwBA;;;AAGA;AACA;AACA;;;AAGA;AACA;;;AAGA;;;;;;;;;AASA;;AAEA;AACA;AACA;;;AAGA;;;;;AAKA;;AAEA;;;;AAIA","sources":["webpack://@webviz/subsurface-components/./node_modules/@mui/material/ButtonBase/TouchRipple.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"center\", \"classes\", \"className\"];\nlet _ = t => t,\n _t,\n _t2,\n _t3,\n _t4;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { TransitionGroup } from 'react-transition-group';\nimport clsx from 'clsx';\nimport { keyframes } from '@mui/system';\nimport useTimeout from '@mui/utils/useTimeout';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport Ripple from './Ripple';\nimport touchRippleClasses from './touchRippleClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DURATION = 550;\nexport const DELAY_RIPPLE = 80;\nconst enterKeyframe = keyframes(_t || (_t = _`\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n`));\nconst exitKeyframe = keyframes(_t2 || (_t2 = _`\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n`));\nconst pulsateKeyframe = keyframes(_t3 || (_t3 = _`\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n`));\nexport const TouchRippleRoot = styled('span', {\n name: 'MuiTouchRipple',\n slot: 'Root'\n})({\n overflow: 'hidden',\n pointerEvents: 'none',\n position: 'absolute',\n zIndex: 0,\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: 'inherit'\n});\n\n// This `styled()` function invokes keyframes. `styled-components` only supports keyframes\n// in string templates. Do not convert these styles in JS object as it will break.\nexport const TouchRippleRipple = styled(Ripple, {\n name: 'MuiTouchRipple',\n slot: 'Ripple'\n})(_t4 || (_t4 = _`\n opacity: 0;\n position: absolute;\n\n &.${0} {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n &.${0} {\n animation-duration: ${0}ms;\n }\n\n & .${0} {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & .${0} {\n opacity: 0;\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n & .${0} {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ${0};\n animation-duration: 2500ms;\n animation-timing-function: ${0};\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n`), touchRippleClasses.rippleVisible, enterKeyframe, DURATION, ({\n theme\n}) => theme.transitions.easing.easeInOut, touchRippleClasses.ripplePulsate, ({\n theme\n}) => theme.transitions.duration.shorter, touchRippleClasses.child, touchRippleClasses.childLeaving, exitKeyframe, DURATION, ({\n theme\n}) => theme.transitions.easing.easeInOut, touchRippleClasses.childPulsate, pulsateKeyframe, ({\n theme\n}) => theme.transitions.easing.easeInOut);\n\n/**\n * @ignore - internal component.\n *\n * TODO v5: Make private\n */\nconst TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTouchRipple'\n });\n const {\n center: centerProp = false,\n classes = {},\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const [ripples, setRipples] = React.useState([]);\n const nextKey = React.useRef(0);\n const rippleCallback = React.useRef(null);\n React.useEffect(() => {\n if (rippleCallback.current) {\n rippleCallback.current();\n rippleCallback.current = null;\n }\n }, [ripples]);\n\n // Used to filter out mouse emulated events on mobile.\n const ignoringMouseDown = React.useRef(false);\n // We use a timer in order to only show the ripples for touch \"click\" like events.\n // We don't want to display the ripple for touch scroll events.\n const startTimer = useTimeout();\n\n // This is the hook called once the previous timeout is ready.\n const startTimerCommit = React.useRef(null);\n const container = React.useRef(null);\n const startCommit = React.useCallback(params => {\n const {\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n } = params;\n setRipples(oldRipples => [...oldRipples, /*#__PURE__*/_jsx(TouchRippleRipple, {\n classes: {\n ripple: clsx(classes.ripple, touchRippleClasses.ripple),\n rippleVisible: clsx(classes.rippleVisible, touchRippleClasses.rippleVisible),\n ripplePulsate: clsx(classes.ripplePulsate, touchRippleClasses.ripplePulsate),\n child: clsx(classes.child, touchRippleClasses.child),\n childLeaving: clsx(classes.childLeaving, touchRippleClasses.childLeaving),\n childPulsate: clsx(classes.childPulsate, touchRippleClasses.childPulsate)\n },\n timeout: DURATION,\n pulsate: pulsate,\n rippleX: rippleX,\n rippleY: rippleY,\n rippleSize: rippleSize\n }, nextKey.current)]);\n nextKey.current += 1;\n rippleCallback.current = cb;\n }, [classes]);\n const start = React.useCallback((event = {}, options = {}, cb = () => {}) => {\n const {\n pulsate = false,\n center = centerProp || options.pulsate,\n fakeElement = false // For test purposes\n } = options;\n if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {\n ignoringMouseDown.current = false;\n return;\n }\n if ((event == null ? void 0 : event.type) === 'touchstart') {\n ignoringMouseDown.current = true;\n }\n const element = fakeElement ? null : container.current;\n const rect = element ? element.getBoundingClientRect() : {\n width: 0,\n height: 0,\n left: 0,\n top: 0\n };\n\n // Get the size of the ripple\n let rippleX;\n let rippleY;\n let rippleSize;\n if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {\n rippleX = Math.round(rect.width / 2);\n rippleY = Math.round(rect.height / 2);\n } else {\n const {\n clientX,\n clientY\n } = event.touches && event.touches.length > 0 ? event.touches[0] : event;\n rippleX = Math.round(clientX - rect.left);\n rippleY = Math.round(clientY - rect.top);\n }\n if (center) {\n rippleSize = Math.sqrt((2 * rect.width ** 2 + rect.height ** 2) / 3);\n\n // For some reason the animation is broken on Mobile Chrome if the size is even.\n if (rippleSize % 2 === 0) {\n rippleSize += 1;\n }\n } else {\n const sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;\n const sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;\n rippleSize = Math.sqrt(sizeX ** 2 + sizeY ** 2);\n }\n\n // Touche devices\n if (event != null && event.touches) {\n // check that this isn't another touchstart due to multitouch\n // otherwise we will only clear a single timer when unmounting while two\n // are running\n if (startTimerCommit.current === null) {\n // Prepare the ripple effect.\n startTimerCommit.current = () => {\n startCommit({\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n });\n };\n // Delay the execution of the ripple effect.\n // We have to make a tradeoff with this delay value.\n startTimer.start(DELAY_RIPPLE, () => {\n if (startTimerCommit.current) {\n startTimerCommit.current();\n startTimerCommit.current = null;\n }\n });\n }\n } else {\n startCommit({\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n });\n }\n }, [centerProp, startCommit, startTimer]);\n const pulsate = React.useCallback(() => {\n start({}, {\n pulsate: true\n });\n }, [start]);\n const stop = React.useCallback((event, cb) => {\n startTimer.clear();\n\n // The touch interaction occurs too quickly.\n // We still want to show ripple effect.\n if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {\n startTimerCommit.current();\n startTimerCommit.current = null;\n startTimer.start(0, () => {\n stop(event, cb);\n });\n return;\n }\n startTimerCommit.current = null;\n setRipples(oldRipples => {\n if (oldRipples.length > 0) {\n return oldRipples.slice(1);\n }\n return oldRipples;\n });\n rippleCallback.current = cb;\n }, [startTimer]);\n React.useImperativeHandle(ref, () => ({\n pulsate,\n start,\n stop\n }), [pulsate, start, stop]);\n return /*#__PURE__*/_jsx(TouchRippleRoot, _extends({\n className: clsx(touchRippleClasses.root, classes.root, className),\n ref: container\n }, other, {\n children: /*#__PURE__*/_jsx(TransitionGroup, {\n component: null,\n exit: true,\n children: ripples\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TouchRipple.propTypes = {\n /**\n * If `true`, the ripple starts at the center of the component\n * rather than at the point of interaction.\n */\n center: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string\n} : void 0;\nexport default TouchRipple;"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/storybook-static/7573.daecb32a.iframe.bundle.js b/storybook-static/7573.daecb32a.iframe.bundle.js deleted file mode 100644 index d2b67ce1c..000000000 --- a/storybook-static/7573.daecb32a.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[7573],{"./node_modules/escape-latex/dist/index.js":function(module){"use strict";var _extends=Object.assign||function(target){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:{},_ref$preserveFormatti=_ref.preserveFormatting,preserveFormatting=void 0!==_ref$preserveFormatti&&_ref$preserveFormatti,_ref$escapeMapFn=_ref.escapeMapFn,escapeMapFn=void 0===_ref$escapeMapFn?defaultEscapeMapFn:_ref$escapeMapFn,runningStr=String(str),result="",escapes=escapeMapFn(_extends({},defaultEscapes),preserveFormatting?_extends({},formatEscapes):{}),escapeKeys=Object.keys(escapes),_loop=function _loop(){var specialCharFound=!1;escapeKeys.forEach((function(key,index){specialCharFound||runningStr.length>=key.length&&runningStr.slice(0,key.length)===key&&(result+=escapes[escapeKeys[index]],runningStr=runningStr.slice(key.length,runningStr.length),specialCharFound=!0)})),specialCharFound||(result+=runningStr.slice(0,1),runningStr=runningStr.slice(1,runningStr.length))};runningStr;)_loop();return result}},"./node_modules/mathjs/lib/esm/core/create.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return create}});var esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),typed_function=__webpack_require__("./node_modules/typed-function/lib/umd/typed-function.js"),typed_function_default=__webpack_require__.n(typed_function),object=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),tiny_emitter=__webpack_require__("./node_modules/tiny-emitter/index.js"),tiny_emitter_default=__webpack_require__.n(tiny_emitter);var is=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),utils_factory=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),array=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),ArgumentsError=__webpack_require__("./node_modules/mathjs/lib/esm/error/ArgumentsError.js");function importFactory(typed,load,math,importedFactories){function _import(name,value,options){if(options.wrap&&"function"==typeof value&&(value=function _wrap(fn){var wrapper=function wrapper(){for(var args=[],i=0,len=arguments.length;i2&&void 0!==arguments[2]?arguments[2]:factory.fn;if((0,array.r3)(name,"."))throw new Error("Factory name should not contain a nested path. Name: "+JSON.stringify(name));var namespace=isTransformFunctionFactory(factory)?math.expression.transform:math,existingTransform=name in math.expression.transform,existing=(0,object.nr)(namespace,name)?namespace[name]:void 0,resolver=function resolver(){var dependencies={};factory.dependencies.map(utils_factory.PI).forEach((dependency=>{if((0,array.r3)(dependency,"."))throw new Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(dependency));"math"===dependency?dependencies.math=math:"mathWithTransform"===dependency?dependencies.mathWithTransform=math.expression.mathWithTransform:"classes"===dependency?dependencies.classes=math:dependencies[dependency]=math[dependency]}));var instance=factory(dependencies);if(instance&&"function"==typeof instance.transform)throw new Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(void 0===existing||options.override)return instance;if(typed.isTypedFunction(existing)&&typed.isTypedFunction(instance))return typed(existing,instance);if(options.silent)return existing;throw new Error('Cannot import "'+name+'": already exists')};factory.meta&&!1===factory.meta.lazy?(namespace[name]=resolver(),existing&&existingTransform?_deleteTransform(name):(isTransformFunctionFactory(factory)||factoryAllowedInExpressions(factory))&&(0,object.Vo)(math.expression.mathWithTransform,name,(()=>namespace[name]))):((0,object.Vo)(namespace,name,resolver),existing&&existingTransform?_deleteTransform(name):(isTransformFunctionFactory(factory)||factoryAllowedInExpressions(factory))&&(0,object.Vo)(math.expression.mathWithTransform,name,(()=>namespace[name]))),importedFactories[name]=factory,math.emit("import",name,resolver)}function isSupportedType(object){return"function"==typeof object||"number"==typeof object||"string"==typeof object||"boolean"==typeof object||null===object||(0,is.wr)(object)||(0,is.Mc)(object)||(0,is.l9)(object)||(0,is.yQ)(object)||(0,is.SW)(object)||Array.isArray(object)}function allowedInExpressions(name){return!(0,object.nr)(unsafe,name)}function factoryAllowedInExpressions(factory){return!(-1!==factory.fn.indexOf(".")||(0,object.nr)(unsafe,factory.fn)||factory.meta&&factory.meta.isClass)}function isTransformFunctionFactory(factory){return void 0!==factory&&void 0!==factory.meta&&!0===factory.meta.isTransformFunction||!1}var unsafe={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function mathImport(functions,options){var num=arguments.length;if(1!==num&&2!==num)throw new ArgumentsError.u("import",num,1,2);options||(options={});var flatValues={};for(var name in function flattenImports(flatValues,value,name){if(Array.isArray(value))value.forEach((item=>flattenImports(flatValues,item)));else if("object"==typeof value)for(var _name in value)(0,object.nr)(value,_name)&&flattenImports(flatValues,value[_name],_name);else if((0,utils_factory.gS)(value)||void 0!==name){var flatName=(0,utils_factory.gS)(value)?isTransformFunctionFactory(value)?value.fn+".transform":value.fn:name;if((0,object.nr)(flatValues,flatName)&&flatValues[flatName]!==value&&!options.silent)throw new Error('Cannot import "'+flatName+'" twice');flatValues[flatName]=value}else if(!options.silent)throw new TypeError("Factory, Object, or Array expected")}(flatValues,functions),flatValues)if((0,object.nr)(flatValues,name)){var value=flatValues[name];if((0,utils_factory.gS)(value))_importFactory(value,options);else if(isSupportedType(value))_import(name,value,options);else if(!options.silent)throw new TypeError("Factory, Object, or Array expected")}}}var function_config=__webpack_require__("./node_modules/mathjs/lib/esm/core/function/config.js"),DimensionError=__webpack_require__("./node_modules/mathjs/lib/esm/error/DimensionError.js"),IndexError=__webpack_require__("./node_modules/mathjs/lib/esm/error/IndexError.js"),core_config=__webpack_require__("./node_modules/mathjs/lib/esm/core/config.js");function create(factories,config){var configInternal=(0,esm_extends.Z)({},core_config.g,config);if("function"!=typeof Object.create)throw new Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var math=function mixin(obj){var emitter=new(tiny_emitter_default());return obj.on=emitter.on.bind(emitter),obj.off=emitter.off.bind(emitter),obj.once=emitter.once.bind(emitter),obj.emit=emitter.emit.bind(emitter),obj}({isNumber:is.hj,isComplex:is.Mc,isBigNumber:is.l9,isFraction:is.yQ,isUnit:is.wr,isString:is.HD,isArray:is.kJ,isMatrix:is.SW,isCollection:is.uZ,isDenseMatrix:is.jH,isSparseMatrix:is.sA,isRange:is.bR,isIndex:is.dh,isBoolean:is.jn,isResultSet:is.cB,isHelp:is.x1,isFunction:is.mf,isDate:is.J_,isRegExp:is.Kj,isObject:is.Kn,isNull:is.Ft,isUndefined:is.o8,isAccessorNode:is.Yz,isArrayNode:is.j0,isAssignmentNode:is.Bp,isBlockNode:is.zh,isConditionalNode:is.tS,isConstantNode:is.nu,isFunctionAssignmentNode:is.l7,isFunctionNode:is.VO,isIndexNode:is.Cl,isNode:is.UG,isObjectNode:is.Lr,isOperatorNode:is.bV,isParenthesisNode:is.Ig,isRangeNode:is.ex,isRelationalNode:is.Zi,isSymbolNode:is.FG,isChain:is.qg});math.config=(0,function_config.Ll)(configInternal,math.emit),math.expression={transform:{},mathWithTransform:{config:math.config}};var importedFactories={};function lazyTyped(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return math.typed.apply(math.typed,args)}lazyTyped.isTypedFunction=typed_function_default().isTypedFunction;var internalImport=importFactory(lazyTyped,0,math,importedFactories);return math.import=internalImport,math.on("config",(()=>{(0,object.VO)(importedFactories).forEach((factory=>{factory&&factory.meta&&factory.meta.recreateOnConfigChange&&internalImport(factory,{override:!0})}))})),math.create=create.bind(null,factories),math.factory=utils_factory.d5,math.import((0,object.VO)((0,object.oO)(factories))),math.ArgumentsError=ArgumentsError.u,math.DimensionError=DimensionError.m,math.IndexError=IndexError.c,math}},"./node_modules/mathjs/lib/esm/entry/allFactoriesAny.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$:function(){return allFactoriesAny_all}});var factoriesAny_namespaceObject={};__webpack_require__.r(factoriesAny_namespaceObject),__webpack_require__.d(factoriesAny_namespaceObject,{createAbs:function(){return abs.E},createAccessorNode:function(){return createAccessorNode},createAcos:function(){return acos.L},createAcosh:function(){return acosh.H},createAcot:function(){return acot._},createAcoth:function(){return acoth.w},createAcsc:function(){return acsc.B},createAcsch:function(){return acsch.z},createAdd:function(){return add.e},createAddScalar:function(){return addScalar.A},createAnd:function(){return logical_and.I},createAndTransform:function(){return createAndTransform},createApply:function(){return matrix_apply.j},createApplyTransform:function(){return createApplyTransform},createArg:function(){return arg.Q},createArrayNode:function(){return createArrayNode},createAsec:function(){return asec.Q},createAsech:function(){return asech.k},createAsin:function(){return asin.K},createAsinh:function(){return asinh.c},createAssignmentNode:function(){return createAssignmentNode},createAtan:function(){return atan.a},createAtan2:function(){return atan2.U},createAtanh:function(){return atanh.m},createAtomicMass:function(){return physicalConstants._C},createAvogadro:function(){return physicalConstants.rK},createBellNumbers:function(){return bellNumbers.d},createBigNumberClass:function(){return BigNumber.w},createBignumber:function(){return bignumber.p},createBin:function(){return bin.D},createBitAnd:function(){return bitwise_bitAnd.i},createBitAndTransform:function(){return createBitAndTransform},createBitNot:function(){return bitNot.e},createBitOr:function(){return bitwise_bitOr.j},createBitOrTransform:function(){return createBitOrTransform},createBitXor:function(){return bitXor.g},createBlockNode:function(){return createBlockNode},createBohrMagneton:function(){return physicalConstants.ri},createBohrRadius:function(){return physicalConstants.pz},createBoltzmann:function(){return physicalConstants.Gw},createBoolean:function(){return type_boolean.q},createCatalan:function(){return catalan.u},createCbrt:function(){return cbrt.S},createCeil:function(){return ceil.l},createChain:function(){return createChain},createChainClass:function(){return createChainClass},createClassicalElectronRadius:function(){return physicalConstants.jp},createClone:function(){return clone.v},createColumn:function(){return matrix_column.w},createColumnTransform:function(){return createColumnTransform},createCombinations:function(){return combinations.C},createCombinationsWithRep:function(){return combinationsWithRep.i},createCompare:function(){return compare.z},createCompareNatural:function(){return compareNatural.M},createCompareText:function(){return compareText.f},createCompile:function(){return createCompile},createComplex:function(){return complex.U},createComplexClass:function(){return Complex.w},createComposition:function(){return composition.s},createConcat:function(){return matrix_concat.k},createConcatTransform:function(){return createConcatTransform},createConditionalNode:function(){return createConditionalNode},createConductanceQuantum:function(){return physicalConstants.u1},createConj:function(){return conj.b},createConstantNode:function(){return createConstantNode},createCorr:function(){return corr.L},createCos:function(){return cos.$},createCosh:function(){return cosh.v},createCot:function(){return cot.j},createCoth:function(){return coth.c},createCoulomb:function(){return physicalConstants.ir},createCount:function(){return count.l},createCreateUnit:function(){return createUnit.z},createCross:function(){return cross.q},createCsc:function(){return csc.B},createCsch:function(){return csch._},createCtranspose:function(){return ctranspose.t},createCube:function(){return cube.z},createCumSum:function(){return statistics_cumsum.o},createCumSumTransform:function(){return createCumSumTransform},createDeepEqual:function(){return deepEqual.s},createDenseMatrixClass:function(){return DenseMatrix.D},createDerivative:function(){return createDerivative},createDet:function(){return det.S},createDeuteronMass:function(){return physicalConstants.zP},createDiag:function(){return diag._},createDiff:function(){return matrix_diff.J},createDiffTransform:function(){return createDiffTransform},createDistance:function(){return distance.v},createDivide:function(){return divide._},createDivideScalar:function(){return divideScalar.L},createDot:function(){return dot.W},createDotDivide:function(){return dotDivide.N},createDotMultiply:function(){return dotMultiply.C},createDotPow:function(){return dotPow.v},createE:function(){return constants.IK},createEfimovFactor:function(){return physicalConstants.sW},createEigs:function(){return eigs.Q},createElectricConstant:function(){return physicalConstants.JS},createElectronMass:function(){return physicalConstants.o8},createElementaryCharge:function(){return physicalConstants.IW},createEqual:function(){return equal.Z},createEqualScalar:function(){return equalScalar.f},createEqualText:function(){return equalText.s},createErf:function(){return erf.P},createEvaluate:function(){return createEvaluate},createExp:function(){return exp.C},createExpm:function(){return expm.c},createExpm1:function(){return expm1.j},createFactorial:function(){return factorial.Z},createFalse:function(){return constants.Yb},createFaraday:function(){return physicalConstants.Go},createFermiCoupling:function(){return physicalConstants.Zu},createFft:function(){return fft.Y},createFibonacciHeapClass:function(){return FibonacciHeap.b},createFilter:function(){return filter.c},createFilterTransform:function(){return createFilterTransform},createFineStructure:function(){return physicalConstants.Rw},createFirstRadiation:function(){return physicalConstants.Uu},createFix:function(){return fix.Y},createFlatten:function(){return flatten.c},createFloor:function(){return floor.B},createForEach:function(){return forEach.I},createForEachTransform:function(){return createForEachTransform},createFormat:function(){return format.l},createFraction:function(){return fraction.v},createFractionClass:function(){return Fraction.u},createFreqz:function(){return freqz.c},createFunctionAssignmentNode:function(){return createFunctionAssignmentNode},createFunctionNode:function(){return createFunctionNode},createGamma:function(){return gamma.J},createGasConstant:function(){return physicalConstants.Vv},createGcd:function(){return gcd.f},createGetMatrixDataType:function(){return getMatrixDataType.s},createGravitationConstant:function(){return physicalConstants.nH},createGravity:function(){return physicalConstants.CQ},createHartreeEnergy:function(){return physicalConstants.c0},createHasNumericValue:function(){return hasNumericValue.D},createHelp:function(){return createHelp},createHelpClass:function(){return createHelpClass},createHex:function(){return hex.$},createHypot:function(){return hypot.n},createI:function(){return constants.oL},createIdentity:function(){return identity.X},createIfft:function(){return ifft.g},createIm:function(){return im.R},createImmutableDenseMatrixClass:function(){return ImmutableDenseMatrix.H},createIndex:function(){return matrix_function.E},createIndexClass:function(){return MatrixIndex.B},createIndexNode:function(){return createIndexNode},createIndexTransform:function(){return createIndexTransform},createInfinity:function(){return constants.Ir},createIntersect:function(){return intersect.M},createInv:function(){return inv.N},createInverseConductanceQuantum:function(){return physicalConstants.Km},createInvmod:function(){return invmod.W},createIsInteger:function(){return isInteger.u},createIsNaN:function(){return utils_isNaN.n},createIsNegative:function(){return isNegative.E},createIsNumeric:function(){return isNumeric.L},createIsPositive:function(){return isPositive.X},createIsPrime:function(){return isPrime.C},createIsZero:function(){return isZero.t},createKldivergence:function(){return kldivergence.s},createKlitzing:function(){return physicalConstants.VL},createKron:function(){return kron.Z},createLN10:function(){return constants.ur},createLN2:function(){return constants.Cc},createLOG10E:function(){return constants.q_},createLOG2E:function(){return constants.p9},createLarger:function(){return larger.$},createLargerEq:function(){return largerEq.A},createLcm:function(){return lcm.b},createLeafCount:function(){return createLeafCount},createLeftShift:function(){return leftShift.U},createLgamma:function(){return lgamma.e},createLog:function(){return log.x},createLog10:function(){return log10.z},createLog1p:function(){return log1p.d},createLog2:function(){return log2.d},createLoschmidt:function(){return physicalConstants.sD},createLsolve:function(){return lsolve.v},createLsolveAll:function(){return lsolveAll.S},createLup:function(){return lup.c},createLusolve:function(){return lusolve.A},createLyap:function(){return lyap.c},createMad:function(){return mad.x},createMagneticConstant:function(){return physicalConstants.ax},createMagneticFluxQuantum:function(){return physicalConstants.RZ},createMap:function(){return map.d},createMapTransform:function(){return createMapTransform},createMatrix:function(){return matrix.w},createMatrixClass:function(){return Matrix.K},createMatrixFromColumns:function(){return matrixFromColumns.u},createMatrixFromFunction:function(){return matrixFromFunction.p},createMatrixFromRows:function(){return matrixFromRows._},createMax:function(){return statistics_max.J},createMaxTransform:function(){return createMaxTransform},createMean:function(){return statistics_mean.Q},createMeanTransform:function(){return createMeanTransform},createMedian:function(){return median.O},createMin:function(){return statistics_min.D},createMinTransform:function(){return createMinTransform},createMod:function(){return mod.J},createMode:function(){return mode.x},createMolarMass:function(){return physicalConstants.xt},createMolarMassC12:function(){return physicalConstants.Qr},createMolarPlanckConstant:function(){return physicalConstants.cn},createMolarVolume:function(){return physicalConstants.lR},createMultinomial:function(){return multinomial.b},createMultiply:function(){return multiply.o},createMultiplyScalar:function(){return multiplyScalar.x},createNaN:function(){return constants.t$},createNeutronMass:function(){return physicalConstants.j5},createNode:function(){return createNode},createNorm:function(){return norm.z},createNot:function(){return not.b},createNthRoot:function(){return nthRoot.l},createNthRoots:function(){return nthRoots.f},createNuclearMagneton:function(){return physicalConstants.d},createNull:function(){return constants.VG},createNumber:function(){return number.k},createNumeric:function(){return numeric.d},createObjectNode:function(){return createObjectNode},createOct:function(){return oct.L},createOnes:function(){return ones.c},createOperatorNode:function(){return createOperatorNode},createOr:function(){return logical_or.Z},createOrTransform:function(){return createOrTransform},createParenthesisNode:function(){return createParenthesisNode},createParse:function(){return createParse},createParser:function(){return createParser},createParserClass:function(){return createParserClass},createPartitionSelect:function(){return partitionSelect.U},createPermutations:function(){return permutations.Q},createPhi:function(){return constants.Ii},createPi:function(){return constants.up},createPickRandom:function(){return pickRandom.P},createPinv:function(){return pinv.$},createPlanckCharge:function(){return physicalConstants.B7},createPlanckConstant:function(){return physicalConstants.$M},createPlanckLength:function(){return physicalConstants.Ps},createPlanckMass:function(){return physicalConstants.v0},createPlanckTemperature:function(){return physicalConstants.Oz},createPlanckTime:function(){return physicalConstants.of},createPolynomialRoot:function(){return polynomialRoot.Z},createPow:function(){return pow.X},createPrint:function(){return string_print.P},createPrintTransform:function(){return createPrintTransform},createProd:function(){return prod.x},createProtonMass:function(){return physicalConstants.BL},createQr:function(){return qr.y},createQuantileSeq:function(){return statistics_quantileSeq.y},createQuantileSeqTransform:function(){return createQuantileSeqTransform},createQuantumOfCirculation:function(){return physicalConstants.kL},createRandom:function(){return random.o},createRandomInt:function(){return randomInt.N},createRange:function(){return matrix_range.M},createRangeClass:function(){return Range.X},createRangeNode:function(){return createRangeNode},createRangeTransform:function(){return createRangeTransform},createRationalize:function(){return createRationalize},createRe:function(){return re.m},createReducedPlanckConstant:function(){return physicalConstants.Yv},createRelationalNode:function(){return createRelationalNode},createReplacer:function(){return replacer.$},createReshape:function(){return reshape.O},createResize:function(){return resize.y},createResolve:function(){return createResolve},createResultSet:function(){return ResultSet.R},createReviver:function(){return createReviver},createRightArithShift:function(){return rightArithShift.o},createRightLogShift:function(){return rightLogShift.M},createRotate:function(){return rotate.g},createRotationMatrix:function(){return rotationMatrix.F},createRound:function(){return round.V},createRow:function(){return matrix_row.v},createRowTransform:function(){return createRowTransform},createRydberg:function(){return physicalConstants.A0},createSQRT1_2:function(){return constants.JE},createSQRT2:function(){return constants.rN},createSackurTetrode:function(){return physicalConstants.lr},createSchur:function(){return schur.a},createSec:function(){return sec.i},createSech:function(){return sech.g},createSecondRadiation:function(){return physicalConstants.GI},createSetCartesian:function(){return setCartesian.$},createSetDifference:function(){return setDifference.L},createSetDistinct:function(){return setDistinct.o},createSetIntersect:function(){return setIntersect.h},createSetIsSubset:function(){return setIsSubset.o},createSetMultiplicity:function(){return setMultiplicity.m},createSetPowerset:function(){return setPowerset.c},createSetSize:function(){return setSize.B},createSetSymDifference:function(){return setSymDifference.w},createSetUnion:function(){return setUnion.r},createSign:function(){return sign.U},createSimplify:function(){return createSimplify},createSimplifyConstant:function(){return createSimplifyConstant},createSimplifyCore:function(){return createSimplifyCore},createSin:function(){return sin.x},createSinh:function(){return sinh.P},createSize:function(){return size.s},createSlu:function(){return slu.p},createSmaller:function(){return smaller.r},createSmallerEq:function(){return smallerEq.x},createSolveODE:function(){return solveODE.n},createSort:function(){return sort.l},createSpaClass:function(){return Spa.W},createSparse:function(){return sparse.B},createSparseMatrixClass:function(){return SparseMatrix.C},createSpeedOfLight:function(){return physicalConstants.ss},createSplitUnit:function(){return splitUnit.Y},createSqrt:function(){return sqrt.M},createSqrtm:function(){return sqrtm.m},createSquare:function(){return square.y},createSqueeze:function(){return squeeze.a},createStd:function(){return statistics_std.X},createStdTransform:function(){return createStdTransform},createStefanBoltzmann:function(){return physicalConstants.zt},createStirlingS2:function(){return stirlingS2.M},createString:function(){return string.Y},createSubset:function(){return matrix_subset.q},createSubsetTransform:function(){return createSubsetTransform},createSubtract:function(){return subtract.p},createSubtractScalar:function(){return subtractScalar.A},createSum:function(){return statistics_sum.O},createSumTransform:function(){return createSumTransform},createSylvester:function(){return sylvester.o},createSymbolNode:function(){return createSymbolNode},createSymbolicEqual:function(){return createSymbolicEqual},createTan:function(){return tan.O},createTanh:function(){return tanh.P},createTau:function(){return constants.ci},createThomsonCrossSection:function(){return physicalConstants.V9},createTo:function(){return to.w},createTrace:function(){return trace.J},createTranspose:function(){return transpose.B},createTrue:function(){return constants.jy},createTypeOf:function(){return typeOf.Z},createTyped:function(){return typed.d},createUnaryMinus:function(){return unaryMinus.x},createUnaryPlus:function(){return unaryPlus.i},createUnequal:function(){return unequal.I},createUnitClass:function(){return Unit.w},createUnitFunction:function(){return unit.E},createUppercaseE:function(){return constants.Iu},createUppercasePi:function(){return constants.lO},createUsolve:function(){return usolve.U},createUsolveAll:function(){return usolveAll.Y},createVacuumImpedance:function(){return physicalConstants.xx},createVariance:function(){return statistics_variance.F},createVarianceTransform:function(){return createVarianceTransform},createVersion:function(){return constants.hT},createWeakMixingAngle:function(){return physicalConstants.Dg},createWienDisplacement:function(){return physicalConstants.W5},createXgcd:function(){return xgcd.o},createXor:function(){return xor.O},createZeros:function(){return zeros.T},createZeta:function(){return zeta.I},createZpk2tf:function(){return zpk2tf.u}});var typed=__webpack_require__("./node_modules/mathjs/lib/esm/core/function/typed.js"),ResultSet=__webpack_require__("./node_modules/mathjs/lib/esm/type/resultset/ResultSet.js"),BigNumber=__webpack_require__("./node_modules/mathjs/lib/esm/type/bignumber/BigNumber.js"),Complex=__webpack_require__("./node_modules/mathjs/lib/esm/type/complex/Complex.js"),Fraction=__webpack_require__("./node_modules/mathjs/lib/esm/type/fraction/Fraction.js"),Range=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/Range.js"),Matrix=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/Matrix.js"),DenseMatrix=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/DenseMatrix.js"),clone=__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/clone.js"),isInteger=__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isInteger.js"),isNegative=__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isNegative.js"),isNumeric=__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isNumeric.js"),hasNumericValue=__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/hasNumericValue.js"),isPositive=__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isPositive.js"),isZero=__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isZero.js"),utils_isNaN=__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isNaN.js"),typeOf=__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/typeOf.js"),equalScalar=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/equalScalar.js"),SparseMatrix=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/SparseMatrix.js"),number=__webpack_require__("./node_modules/mathjs/lib/esm/type/number.js"),string=__webpack_require__("./node_modules/mathjs/lib/esm/type/string.js"),type_boolean=__webpack_require__("./node_modules/mathjs/lib/esm/type/boolean.js"),bignumber=__webpack_require__("./node_modules/mathjs/lib/esm/type/bignumber/function/bignumber.js"),complex=__webpack_require__("./node_modules/mathjs/lib/esm/type/complex/function/complex.js"),fraction=__webpack_require__("./node_modules/mathjs/lib/esm/type/fraction/function/fraction.js"),matrix=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/function/matrix.js"),matrixFromFunction=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/matrixFromFunction.js"),matrixFromRows=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/matrixFromRows.js"),matrixFromColumns=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/matrixFromColumns.js"),splitUnit=__webpack_require__("./node_modules/mathjs/lib/esm/type/unit/function/splitUnit.js"),unaryMinus=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/unaryMinus.js"),unaryPlus=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/unaryPlus.js"),abs=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/abs.js"),matrix_apply=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/apply.js"),addScalar=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/addScalar.js"),subtractScalar=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/subtractScalar.js"),cbrt=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/cbrt.js"),ceil=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/ceil.js"),cube=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/cube.js"),exp=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/exp.js"),expm1=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/expm1.js"),fix=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/fix.js"),floor=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/floor.js"),gcd=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/gcd.js"),lcm=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/lcm.js"),log10=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/log10.js"),log2=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/log2.js"),mod=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/mod.js"),multiplyScalar=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/multiplyScalar.js"),multiply=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/multiply.js"),nthRoot=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/nthRoot.js"),sign=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/sign.js"),sqrt=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/sqrt.js"),square=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/square.js"),subtract=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/subtract.js"),xgcd=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/xgcd.js"),invmod=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/invmod.js"),dotMultiply=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/dotMultiply.js"),bitwise_bitAnd=__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/bitAnd.js"),bitNot=__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/bitNot.js"),bitwise_bitOr=__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/bitOr.js"),bitXor=__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/bitXor.js"),arg=__webpack_require__("./node_modules/mathjs/lib/esm/function/complex/arg.js"),conj=__webpack_require__("./node_modules/mathjs/lib/esm/function/complex/conj.js"),im=__webpack_require__("./node_modules/mathjs/lib/esm/function/complex/im.js"),re=__webpack_require__("./node_modules/mathjs/lib/esm/function/complex/re.js"),not=__webpack_require__("./node_modules/mathjs/lib/esm/function/logical/not.js"),logical_or=__webpack_require__("./node_modules/mathjs/lib/esm/function/logical/or.js"),xor=__webpack_require__("./node_modules/mathjs/lib/esm/function/logical/xor.js"),matrix_concat=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/concat.js"),matrix_column=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/column.js"),count=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/count.js"),cross=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/cross.js"),diag=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/diag.js"),filter=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/filter.js"),flatten=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/flatten.js"),forEach=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/forEach.js"),getMatrixDataType=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/getMatrixDataType.js"),identity=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/identity.js"),kron=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/kron.js"),map=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/map.js"),matrix_diff=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/diff.js"),ones=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/ones.js"),matrix_range=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/range.js"),reshape=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/reshape.js"),resize=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/resize.js"),rotate=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/rotate.js"),rotationMatrix=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/rotationMatrix.js"),matrix_row=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/row.js"),size=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/size.js"),squeeze=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/squeeze.js"),matrix_subset=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/subset.js"),transpose=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/transpose.js"),ctranspose=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/ctranspose.js"),zeros=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/zeros.js"),fft=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/fft.js"),ifft=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/ifft.js"),solveODE=__webpack_require__("./node_modules/mathjs/lib/esm/function/numeric/solveODE.js"),erf=__webpack_require__("./node_modules/mathjs/lib/esm/function/special/erf.js"),zeta=__webpack_require__("./node_modules/mathjs/lib/esm/function/special/zeta.js"),mode=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/mode.js"),prod=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/prod.js"),format=__webpack_require__("./node_modules/mathjs/lib/esm/function/string/format.js"),bin=__webpack_require__("./node_modules/mathjs/lib/esm/function/string/bin.js"),oct=__webpack_require__("./node_modules/mathjs/lib/esm/function/string/oct.js"),hex=__webpack_require__("./node_modules/mathjs/lib/esm/function/string/hex.js"),string_print=__webpack_require__("./node_modules/mathjs/lib/esm/function/string/print.js"),to=__webpack_require__("./node_modules/mathjs/lib/esm/function/unit/to.js"),isPrime=__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/isPrime.js"),numeric=__webpack_require__("./node_modules/mathjs/lib/esm/function/utils/numeric.js"),divideScalar=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/divideScalar.js"),pow=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/pow.js"),round=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/round.js"),log=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/log.js"),log1p=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/log1p.js"),nthRoots=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/nthRoots.js"),dotPow=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/dotPow.js"),dotDivide=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/dotDivide.js"),lsolve=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/lsolve.js"),usolve=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/usolve.js"),lsolveAll=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/lsolveAll.js"),usolveAll=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/usolveAll.js"),leftShift=__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/leftShift.js"),rightArithShift=__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/rightArithShift.js"),rightLogShift=__webpack_require__("./node_modules/mathjs/lib/esm/function/bitwise/rightLogShift.js"),logical_and=__webpack_require__("./node_modules/mathjs/lib/esm/function/logical/and.js"),compare=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/compare.js"),compareNatural=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/compareNatural.js"),compareText=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/compareText.js"),equal=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/equal.js"),equalText=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/equalText.js"),smaller=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/smaller.js"),smallerEq=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/smallerEq.js"),larger=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/larger.js"),largerEq=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/largerEq.js"),deepEqual=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/deepEqual.js"),unequal=__webpack_require__("./node_modules/mathjs/lib/esm/function/relational/unequal.js"),partitionSelect=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/partitionSelect.js"),sort=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/sort.js"),statistics_max=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/max.js"),statistics_min=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/min.js"),ImmutableDenseMatrix=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/ImmutableDenseMatrix.js"),MatrixIndex=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/MatrixIndex.js"),FibonacciHeap=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/FibonacciHeap.js"),Spa=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/Spa.js"),Unit=__webpack_require__("./node_modules/mathjs/lib/esm/type/unit/Unit.js"),unit=__webpack_require__("./node_modules/mathjs/lib/esm/type/unit/function/unit.js"),sparse=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/function/sparse.js"),createUnit=__webpack_require__("./node_modules/mathjs/lib/esm/type/unit/function/createUnit.js"),acos=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acos.js"),acosh=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acosh.js"),acot=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acot.js"),acoth=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acoth.js"),acsc=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acsc.js"),acsch=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/acsch.js"),asec=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/asec.js"),asech=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/asech.js"),asin=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/asin.js"),asinh=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/asinh.js"),atan=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/atan.js"),atan2=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/atan2.js"),atanh=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/atanh.js"),cos=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/cos.js"),cosh=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/cosh.js"),cot=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/cot.js"),coth=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/coth.js"),csc=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/csc.js"),csch=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/csch.js"),sec=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/sec.js"),sech=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/sech.js"),sin=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/sin.js"),sinh=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/sinh.js"),tan=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/tan.js"),tanh=__webpack_require__("./node_modules/mathjs/lib/esm/function/trigonometry/tanh.js"),setCartesian=__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setCartesian.js"),setDifference=__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setDifference.js"),setDistinct=__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setDistinct.js"),setIntersect=__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setIntersect.js"),setIsSubset=__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setIsSubset.js"),setMultiplicity=__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setMultiplicity.js"),setPowerset=__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setPowerset.js"),setSize=__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setSize.js"),setSymDifference=__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setSymDifference.js"),setUnion=__webpack_require__("./node_modules/mathjs/lib/esm/function/set/setUnion.js"),add=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/add.js"),hypot=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/hypot.js"),norm=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/norm.js"),dot=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/dot.js"),trace=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/trace.js"),matrix_function=__webpack_require__("./node_modules/mathjs/lib/esm/type/matrix/function/index.js"),is=__webpack_require__("./node_modules/mathjs/lib/esm/utils/is.js"),keywords=new Set(["end"]),object=__webpack_require__("./node_modules/mathjs/lib/esm/utils/object.js"),factory=__webpack_require__("./node_modules/mathjs/lib/esm/utils/factory.js"),utils_map=__webpack_require__("./node_modules/mathjs/lib/esm/utils/map.js"),dependencies=["mathWithTransform"],createNode=(0,factory.d5)("Node",dependencies,(_ref=>{var{mathWithTransform:mathWithTransform}=_ref;return class Node{get type(){return"Node"}get isNode(){return!0}evaluate(scope){return this.compile().evaluate(scope)}compile(){var expr=this._compile(mathWithTransform,{}),args={};return{evaluate:function evaluate(scope){var s=(0,utils_map.df)(scope);return function _validateScope(scope){for(var symbol of[...keywords])if(scope.has(symbol))throw new Error('Scope contains an illegal symbol, "'+symbol+'" is a reserved keyword')}(s),expr(s,args,null)}}}_compile(math,argNames){throw new Error("Method _compile must be implemented by type "+this.type)}forEach(callback){throw new Error("Cannot run forEach on a Node interface")}map(callback){throw new Error("Cannot run map on a Node interface")}_ifNode(node){if(!(0,is.UG)(node))throw new TypeError("Callback function must return a Node");return node}traverse(callback){callback(this,null,null),function _traverse(node,callback){node.forEach((function(child,path,parent){callback(child,path,parent),_traverse(child,callback)}))}(this,callback)}transform(callback){return function _transform(child,path,parent){var replacement=callback(child,path,parent);return replacement!==child?replacement:child.map(_transform)}(this,null,null)}filter(callback){var nodes=[];return this.traverse((function(node,path,parent){callback(node,path,parent)&&nodes.push(node)})),nodes}clone(){throw new Error("Cannot clone a Node interface")}cloneDeep(){return this.map((function(node){return node.cloneDeep()}))}equals(other){return!!other&&(this.type===other.type&&(0,object.J5)(this,other))}toString(options){var customString=this._getCustomString(options);return void 0!==customString?customString:this._toString(options)}_toString(){throw new Error("_toString not implemented for "+this.type)}toJSON(){throw new Error("Cannot serialize object: toJSON not implemented by "+this.type)}toHTML(options){var customString=this._getCustomString(options);return void 0!==customString?customString:this._toHTML(options)}_toHTML(){throw new Error("_toHTML not implemented for "+this.type)}toTex(options){var customString=this._getCustomString(options);return void 0!==customString?customString:this._toTex(options)}_toTex(options){throw new Error("_toTex not implemented for "+this.type)}_getCustomString(options){if(options&&"object"==typeof options)switch(typeof options.handler){case"object":case"undefined":return;case"function":return options.handler(this,options);default:throw new TypeError("Object or function expected as callback")}}getIdentifier(){return this.type}getContent(){return this}}}),{isClass:!0,isNode:!0}),defineProperty=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),customs=__webpack_require__("./node_modules/mathjs/lib/esm/utils/customs.js"),IndexError=__webpack_require__("./node_modules/mathjs/lib/esm/error/IndexError.js");function errorTransform(err){return err&&err.isIndexError?new IndexError.c(err.index+1,err.min+1,void 0!==err.max?err.max+1:void 0):err}function accessFactory(_ref){var{subset:subset}=_ref;return function access(object,index){try{if(Array.isArray(object))return subset(object,index);if(object&&"function"==typeof object.subset)return object.subset(index);if("string"==typeof object)return subset(object,index);if("object"==typeof object){if(!index.isObjectProperty())throw new TypeError("Cannot apply a numeric index as object property");return(0,customs.YF)(object,index.getObjectProperty())}throw new TypeError("Cannot apply index: unsupported type of object")}catch(err){throw errorTransform(err)}}}var AccessorNode_dependencies=["subset","Node"],createAccessorNode=(0,factory.d5)("AccessorNode",AccessorNode_dependencies,(_ref=>{var{subset:subset,Node:Node}=_ref,access=accessFactory({subset:subset});function needParenthesis(node){return!((0,is.Yz)(node)||(0,is.j0)(node)||(0,is.nu)(node)||(0,is.VO)(node)||(0,is.Lr)(node)||(0,is.Ig)(node)||(0,is.FG)(node))}class AccessorNode extends Node{constructor(object,index){if(super(),!(0,is.UG)(object))throw new TypeError('Node expected for parameter "object"');if(!(0,is.Cl)(index))throw new TypeError('IndexNode expected for parameter "index"');this.object=object,this.index=index}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return"AccessorNode"}get isAccessorNode(){return!0}_compile(math,argNames){var evalObject=this.object._compile(math,argNames),evalIndex=this.index._compile(math,argNames);if(this.index.isObjectProperty()){var prop=this.index.getObjectProperty();return function evalAccessorNode(scope,args,context){return(0,customs.YF)(evalObject(scope,args,context),prop)}}return function evalAccessorNode(scope,args,context){var object=evalObject(scope,args,context),index=evalIndex(scope,args,object);return access(object,index)}}forEach(callback){callback(this.object,"object",this),callback(this.index,"index",this)}map(callback){return new AccessorNode(this._ifNode(callback(this.object,"object",this)),this._ifNode(callback(this.index,"index",this)))}clone(){return new AccessorNode(this.object,this.index)}_toString(options){var object=this.object.toString(options);return needParenthesis(this.object)&&(object="("+object+")"),object+this.index.toString(options)}_toHTML(options){var object=this.object.toHTML(options);return needParenthesis(this.object)&&(object='('+object+')'),object+this.index.toHTML(options)}_toTex(options){var object=this.object.toTex(options);return needParenthesis(this.object)&&(object="\\left(' + object + '\\right)"),object+this.index.toTex(options)}toJSON(){return{mathjs:"AccessorNode",object:this.object,index:this.index}}static fromJSON(json){return new AccessorNode(json.object,json.index)}}return(0,defineProperty.Z)(AccessorNode,"name","AccessorNode"),AccessorNode}),{isClass:!0,isNode:!0}),utils_array=__webpack_require__("./node_modules/mathjs/lib/esm/utils/array.js"),ArrayNode_dependencies=["Node"],createArrayNode=(0,factory.d5)("ArrayNode",ArrayNode_dependencies,(_ref=>{var{Node:Node}=_ref;class ArrayNode extends Node{constructor(items){if(super(),this.items=items||[],!Array.isArray(this.items)||!this.items.every(is.UG))throw new TypeError("Array containing Nodes expected")}get type(){return"ArrayNode"}get isArrayNode(){return!0}_compile(math,argNames){var evalItems=(0,utils_array.UI)(this.items,(function(item){return item._compile(math,argNames)}));if("Array"!==math.config.matrix){var matrix=math.matrix;return function evalArrayNode(scope,args,context){return matrix((0,utils_array.UI)(evalItems,(function(evalItem){return evalItem(scope,args,context)})))}}return function evalArrayNode(scope,args,context){return(0,utils_array.UI)(evalItems,(function(evalItem){return evalItem(scope,args,context)}))}}forEach(callback){for(var i=0;i['+this.items.map((function(node){return node.toHTML(options)})).join(',')+']'}_toTex(options){return function itemsToTex(items,nested){var mixedItems=items.some(is.j0)&&!items.every(is.j0),itemsFormRow=nested||mixedItems,itemSep=itemsFormRow?"&":"\\\\",itemsTex=items.map((function(node){return node.items?itemsToTex(node.items,!nested):node.toTex(options)})).join(itemSep);return mixedItems||!itemsFormRow||itemsFormRow&&!nested?"\\begin{bmatrix}"+itemsTex+"\\end{bmatrix}":itemsTex}(this.items,!1)}}return(0,defineProperty.Z)(ArrayNode,"name","ArrayNode"),ArrayNode}),{isClass:!0,isNode:!0});var properties=[{AssignmentNode:{},FunctionAssignmentNode:{}},{ConditionalNode:{latexLeftParens:!1,latexRightParens:!1,latexParens:!1}},{"OperatorNode:or":{op:"or",associativity:"left",associativeWith:[]}},{"OperatorNode:xor":{op:"xor",associativity:"left",associativeWith:[]}},{"OperatorNode:and":{op:"and",associativity:"left",associativeWith:[]}},{"OperatorNode:bitOr":{op:"|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitXor":{op:"^|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitAnd":{op:"&",associativity:"left",associativeWith:[]}},{"OperatorNode:equal":{op:"==",associativity:"left",associativeWith:[]},"OperatorNode:unequal":{op:"!=",associativity:"left",associativeWith:[]},"OperatorNode:smaller":{op:"<",associativity:"left",associativeWith:[]},"OperatorNode:larger":{op:">",associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{op:"<=",associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{op:">=",associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{op:"<<",associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{op:">>",associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{op:">>>",associativity:"left",associativeWith:[]}},{"OperatorNode:to":{op:"to",associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{op:"+",associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{op:"-",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{op:"*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{op:"/",associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{op:".*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{op:"./",associativity:"left",associativeWith:[]},"OperatorNode:mod":{op:"mod",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]}},{"OperatorNode:unaryPlus":{op:"+",associativity:"right"},"OperatorNode:unaryMinus":{op:"-",associativity:"right"},"OperatorNode:bitNot":{op:"~",associativity:"right"},"OperatorNode:not":{op:"not",associativity:"right"}},{"OperatorNode:pow":{op:"^",associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{op:".^",associativity:"right",associativeWith:[]}},{"OperatorNode:factorial":{op:"!",associativity:"left"}},{"OperatorNode:ctranspose":{op:"'",associativity:"left"}}];function unwrapParen(_node,parenthesis){if(!parenthesis||"auto"!==parenthesis)return _node;for(var node=_node;(0,is.Ig)(node);)node=node.content;return node}function getPrecedence(_node,parenthesis,implicit,parent){var node=_node;"keep"!==parenthesis&&(node=_node.getContent());for(var identifier=node.getIdentifier(),precedence=null,i=0;i{var{subset:subset,matrix:matrix,Node:Node}=_ref,access=accessFactory({subset:subset}),assign=function assignFactory(_ref){var{subset:subset,matrix:matrix}=_ref;return function assign(object,index,value){try{if(Array.isArray(object))return matrix(object).subset(index,value).valueOf().forEach(((item,index)=>{object[index]=item})),object;if(object&&"function"==typeof object.subset)return object.subset(index,value);if("string"==typeof object)return subset(object,index,value);if("object"==typeof object){if(!index.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return(0,customs.nI)(object,index.getObjectProperty(),value),object}throw new TypeError("Cannot apply index: unsupported type of object")}catch(err){throw errorTransform(err)}}}({subset:subset,matrix:matrix});function needParenthesis(node,parenthesis,implicit){parenthesis||(parenthesis="keep");var precedence=getPrecedence(node,parenthesis,implicit),exprPrecedence=getPrecedence(node.value,parenthesis,implicit);return"all"===parenthesis||null!==exprPrecedence&&exprPrecedence<=precedence}class AssignmentNode extends Node{constructor(object,index,value){if(super(),this.object=object,this.index=value?index:null,this.value=value||index,!(0,is.FG)(object)&&!(0,is.Yz)(object))throw new TypeError('SymbolNode or AccessorNode expected as "object"');if((0,is.FG)(object)&&"end"===object.name)throw new Error('Cannot assign to symbol "end"');if(this.index&&!(0,is.Cl)(this.index))throw new TypeError('IndexNode expected as "index"');if(!(0,is.UG)(this.value))throw new TypeError('Node expected as "value"')}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return"AssignmentNode"}get isAssignmentNode(){return!0}_compile(math,argNames){var evalObject=this.object._compile(math,argNames),evalIndex=this.index?this.index._compile(math,argNames):null,evalValue=this.value._compile(math,argNames),name=this.object.name;if(this.index){if(this.index.isObjectProperty()){var prop=this.index.getObjectProperty();return function evalAssignmentNode(scope,args,context){var object=evalObject(scope,args,context),value=evalValue(scope,args,context);return(0,customs.nI)(object,prop,value),value}}if((0,is.FG)(this.object))return function evalAssignmentNode(scope,args,context){var childObject=evalObject(scope,args,context),value=evalValue(scope,args,context),index=evalIndex(scope,args,childObject);return scope.set(name,assign(childObject,index,value)),value};var evalParentObject=this.object.object._compile(math,argNames);if(this.object.index.isObjectProperty()){var parentProp=this.object.index.getObjectProperty();return function evalAssignmentNode(scope,args,context){var parent=evalParentObject(scope,args,context),childObject=(0,customs.YF)(parent,parentProp),index=evalIndex(scope,args,childObject),value=evalValue(scope,args,context);return(0,customs.nI)(parent,parentProp,assign(childObject,index,value)),value}}var evalParentIndex=this.object.index._compile(math,argNames);return function evalAssignmentNode(scope,args,context){var parent=evalParentObject(scope,args,context),parentIndex=evalParentIndex(scope,args,parent),childObject=access(parent,parentIndex),index=evalIndex(scope,args,childObject),value=evalValue(scope,args,context);return assign(parent,parentIndex,assign(childObject,index,value)),value}}if(!(0,is.FG)(this.object))throw new TypeError("SymbolNode expected as object");return function evalAssignmentNode(scope,args,context){var value=evalValue(scope,args,context);return scope.set(name,value),value}}forEach(callback){callback(this.object,"object",this),this.index&&callback(this.index,"index",this),callback(this.value,"value",this)}map(callback){var object=this._ifNode(callback(this.object,"object",this)),index=this.index?this._ifNode(callback(this.index,"index",this)):null,value=this._ifNode(callback(this.value,"value",this));return new AssignmentNode(object,index,value)}clone(){return new AssignmentNode(this.object,this.index,this.value)}_toString(options){var object=this.object.toString(options),index=this.index?this.index.toString(options):"",value=this.value.toString(options);return needParenthesis(this,options&&options.parenthesis,options&&options.implicit)&&(value="("+value+")"),object+index+" = "+value}toJSON(){return{mathjs:"AssignmentNode",object:this.object,index:this.index,value:this.value}}static fromJSON(json){return new AssignmentNode(json.object,json.index,json.value)}_toHTML(options){var object=this.object.toHTML(options),index=this.index?this.index.toHTML(options):"",value=this.value.toHTML(options);return needParenthesis(this,options&&options.parenthesis,options&&options.implicit)&&(value='('+value+')'),object+index+'='+value}_toTex(options){var object=this.object.toTex(options),index=this.index?this.index.toTex(options):"",value=this.value.toTex(options);return needParenthesis(this,options&&options.parenthesis,options&&options.implicit)&&(value="\\left(".concat(value,"\\right)")),object+index+"="+value}}return(0,defineProperty.Z)(AssignmentNode,"name","AssignmentNode"),AssignmentNode}),{isClass:!0,isNode:!0}),BlockNode_dependencies=["ResultSet","Node"],createBlockNode=(0,factory.d5)("BlockNode",BlockNode_dependencies,(_ref=>{var{ResultSet:ResultSet,Node:Node}=_ref;class BlockNode extends Node{constructor(blocks){if(super(),!Array.isArray(blocks))throw new Error("Array expected");this.blocks=blocks.map((function(block){var node=block&&block.node,visible=!block||void 0===block.visible||block.visible;if(!(0,is.UG)(node))throw new TypeError('Property "node" must be a Node');if("boolean"!=typeof visible)throw new TypeError('Property "visible" must be a boolean');return{node:node,visible:visible}}))}get type(){return"BlockNode"}get isBlockNode(){return!0}_compile(math,argNames){var evalBlocks=(0,utils_array.UI)(this.blocks,(function(block){return{evaluate:block.node._compile(math,argNames),visible:block.visible}}));return function evalBlockNodes(scope,args,context){var results=[];return(0,utils_array.Ed)(evalBlocks,(function evalBlockNode(block){var result=block.evaluate(scope,args,context);block.visible&&results.push(result)})),new ResultSet(results)}}forEach(callback){for(var i=0;i;')})).join('
')}_toTex(options){return this.blocks.map((function(param){return param.node.toTex(options)+(param.visible?"":";")})).join("\\;\\;\n")}}return(0,defineProperty.Z)(BlockNode,"name","BlockNode"),BlockNode}),{isClass:!0,isNode:!0}),ConditionalNode_dependencies=["Node"],createConditionalNode=(0,factory.d5)("ConditionalNode",ConditionalNode_dependencies,(_ref=>{var{Node:Node}=_ref;class ConditionalNode extends Node{constructor(condition,trueExpr,falseExpr){if(super(),!(0,is.UG)(condition))throw new TypeError("Parameter condition must be a Node");if(!(0,is.UG)(trueExpr))throw new TypeError("Parameter trueExpr must be a Node");if(!(0,is.UG)(falseExpr))throw new TypeError("Parameter falseExpr must be a Node");this.condition=condition,this.trueExpr=trueExpr,this.falseExpr=falseExpr}get type(){return"ConditionalNode"}get isConditionalNode(){return!0}_compile(math,argNames){var evalCondition=this.condition._compile(math,argNames),evalTrueExpr=this.trueExpr._compile(math,argNames),evalFalseExpr=this.falseExpr._compile(math,argNames);return function evalConditionalNode(scope,args,context){return function testCondition(condition){if("number"==typeof condition||"boolean"==typeof condition||"string"==typeof condition)return!!condition;if(condition){if((0,is.l9)(condition))return!condition.isZero();if((0,is.Mc)(condition))return!(!condition.re&&!condition.im);if((0,is.wr)(condition))return!!condition.value}if(null==condition)return!1;throw new TypeError('Unsupported type of condition "'+(0,is.kM)(condition)+'"')}(evalCondition(scope,args,context))?evalTrueExpr(scope,args,context):evalFalseExpr(scope,args,context)}}forEach(callback){callback(this.condition,"condition",this),callback(this.trueExpr,"trueExpr",this),callback(this.falseExpr,"falseExpr",this)}map(callback){return new ConditionalNode(this._ifNode(callback(this.condition,"condition",this)),this._ifNode(callback(this.trueExpr,"trueExpr",this)),this._ifNode(callback(this.falseExpr,"falseExpr",this)))}clone(){return new ConditionalNode(this.condition,this.trueExpr,this.falseExpr)}_toString(options){var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",precedence=getPrecedence(this,parenthesis,options&&options.implicit),condition=this.condition.toString(options),conditionPrecedence=getPrecedence(this.condition,parenthesis,options&&options.implicit);("all"===parenthesis||"OperatorNode"===this.condition.type||null!==conditionPrecedence&&conditionPrecedence<=precedence)&&(condition="("+condition+")");var trueExpr=this.trueExpr.toString(options),truePrecedence=getPrecedence(this.trueExpr,parenthesis,options&&options.implicit);("all"===parenthesis||"OperatorNode"===this.trueExpr.type||null!==truePrecedence&&truePrecedence<=precedence)&&(trueExpr="("+trueExpr+")");var falseExpr=this.falseExpr.toString(options),falsePrecedence=getPrecedence(this.falseExpr,parenthesis,options&&options.implicit);return("all"===parenthesis||"OperatorNode"===this.falseExpr.type||null!==falsePrecedence&&falsePrecedence<=precedence)&&(falseExpr="("+falseExpr+")"),condition+" ? "+trueExpr+" : "+falseExpr}toJSON(){return{mathjs:"ConditionalNode",condition:this.condition,trueExpr:this.trueExpr,falseExpr:this.falseExpr}}static fromJSON(json){return new ConditionalNode(json.condition,json.trueExpr,json.falseExpr)}_toHTML(options){var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",precedence=getPrecedence(this,parenthesis,options&&options.implicit),condition=this.condition.toHTML(options),conditionPrecedence=getPrecedence(this.condition,parenthesis,options&&options.implicit);("all"===parenthesis||"OperatorNode"===this.condition.type||null!==conditionPrecedence&&conditionPrecedence<=precedence)&&(condition='('+condition+')');var trueExpr=this.trueExpr.toHTML(options),truePrecedence=getPrecedence(this.trueExpr,parenthesis,options&&options.implicit);("all"===parenthesis||"OperatorNode"===this.trueExpr.type||null!==truePrecedence&&truePrecedence<=precedence)&&(trueExpr='('+trueExpr+')');var falseExpr=this.falseExpr.toHTML(options),falsePrecedence=getPrecedence(this.falseExpr,parenthesis,options&&options.implicit);return("all"===parenthesis||"OperatorNode"===this.falseExpr.type||null!==falsePrecedence&&falsePrecedence<=precedence)&&(falseExpr='('+falseExpr+')'),condition+'?'+trueExpr+':'+falseExpr}_toTex(options){return"\\begin{cases} {"+this.trueExpr.toTex(options)+"}, &\\quad{\\text{if }\\;"+this.condition.toTex(options)+"}\\\\{"+this.falseExpr.toTex(options)+"}, &\\quad{\\text{otherwise}}\\end{cases}"}}return(0,defineProperty.Z)(ConditionalNode,"name","ConditionalNode"),ConditionalNode}),{isClass:!0,isNode:!0}),utils_string=__webpack_require__("./node_modules/mathjs/lib/esm/utils/string.js"),dist=__webpack_require__("./node_modules/escape-latex/dist/index.js"),dist_default=__webpack_require__.n(dist),latexSymbols={Alpha:"A",alpha:"\\alpha",Beta:"B",beta:"\\beta",Gamma:"\\Gamma",gamma:"\\gamma",Delta:"\\Delta",delta:"\\delta",Epsilon:"E",epsilon:"\\epsilon",varepsilon:"\\varepsilon",Zeta:"Z",zeta:"\\zeta",Eta:"H",eta:"\\eta",Theta:"\\Theta",theta:"\\theta",vartheta:"\\vartheta",Iota:"I",iota:"\\iota",Kappa:"K",kappa:"\\kappa",varkappa:"\\varkappa",Lambda:"\\Lambda",lambda:"\\lambda",Mu:"M",mu:"\\mu",Nu:"N",nu:"\\nu",Xi:"\\Xi",xi:"\\xi",Omicron:"O",omicron:"o",Pi:"\\Pi",pi:"\\pi",varpi:"\\varpi",Rho:"P",rho:"\\rho",varrho:"\\varrho",Sigma:"\\Sigma",sigma:"\\sigma",varsigma:"\\varsigma",Tau:"T",tau:"\\tau",Upsilon:"\\Upsilon",upsilon:"\\upsilon",Phi:"\\Phi",phi:"\\phi",varphi:"\\varphi",Chi:"X",chi:"\\chi",Psi:"\\Psi",psi:"\\psi",Omega:"\\Omega",omega:"\\omega",true:"\\mathrm{True}",false:"\\mathrm{False}",i:"i",inf:"\\infty",Inf:"\\infty",infinity:"\\infty",Infinity:"\\infty",oo:"\\infty",lim:"\\lim",undefined:"\\mathbf{?}"},latexOperators={transpose:"^\\top",ctranspose:"^H",factorial:"!",pow:"^",dotPow:".^\\wedge",unaryPlus:"+",unaryMinus:"-",bitNot:"\\~",not:"\\neg",multiply:"\\cdot",divide:"\\frac",dotMultiply:".\\cdot",dotDivide:".:",mod:"\\mod",add:"+",subtract:"-",to:"\\rightarrow",leftShift:"<<",rightArithShift:">>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},latexFunctions={abs:{1:"\\left|${args[0]}\\right|"},add:{2:"\\left(${args[0]}".concat(latexOperators.add,"${args[1]}\\right)")},cbrt:{1:"\\sqrt[3]{${args[0]}}"},ceil:{1:"\\left\\lceil${args[0]}\\right\\rceil"},cube:{1:"\\left(${args[0]}\\right)^3"},divide:{2:"\\frac{${args[0]}}{${args[1]}}"},dotDivide:{2:"\\left(${args[0]}".concat(latexOperators.dotDivide,"${args[1]}\\right)")},dotMultiply:{2:"\\left(${args[0]}".concat(latexOperators.dotMultiply,"${args[1]}\\right)")},dotPow:{2:"\\left(${args[0]}".concat(latexOperators.dotPow,"${args[1]}\\right)")},exp:{1:"\\exp\\left(${args[0]}\\right)"},expm1:"\\left(e".concat(latexOperators.pow,"{${args[0]}}-1\\right)"),fix:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},floor:{1:"\\left\\lfloor${args[0]}\\right\\rfloor"},gcd:"\\gcd\\left(${args}\\right)",hypot:"\\hypot\\left(${args}\\right)",log:{1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},log10:{1:"\\log_{10}\\left(${args[0]}\\right)"},log1p:{1:"\\ln\\left(${args[0]}+1\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}+1\\right)"},log2:"\\log_{2}\\left(${args[0]}\\right)",mod:{2:"\\left(${args[0]}".concat(latexOperators.mod,"${args[1]}\\right)")},multiply:{2:"\\left(${args[0]}".concat(latexOperators.multiply,"${args[1]}\\right)")},norm:{1:"\\left\\|${args[0]}\\right\\|",2:void 0},nthRoot:{2:"\\sqrt[${args[1]}]{${args[0]}}"},nthRoots:{2:"\\{y : $y^{args[1]} = {${args[0]}}\\}"},pow:{2:"\\left(${args[0]}\\right)".concat(latexOperators.pow,"{${args[1]}}")},round:{1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},sign:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},sqrt:{1:"\\sqrt{${args[0]}}"},square:{1:"\\left(${args[0]}\\right)^2"},subtract:{2:"\\left(${args[0]}".concat(latexOperators.subtract,"${args[1]}\\right)")},unaryMinus:{1:"".concat(latexOperators.unaryMinus,"\\left(${args[0]}\\right)")},unaryPlus:{1:"".concat(latexOperators.unaryPlus,"\\left(${args[0]}\\right)")},bitAnd:{2:"\\left(${args[0]}".concat(latexOperators.bitAnd,"${args[1]}\\right)")},bitNot:{1:latexOperators.bitNot+"\\left(${args[0]}\\right)"},bitOr:{2:"\\left(${args[0]}".concat(latexOperators.bitOr,"${args[1]}\\right)")},bitXor:{2:"\\left(${args[0]}".concat(latexOperators.bitXor,"${args[1]}\\right)")},leftShift:{2:"\\left(${args[0]}".concat(latexOperators.leftShift,"${args[1]}\\right)")},rightArithShift:{2:"\\left(${args[0]}".concat(latexOperators.rightArithShift,"${args[1]}\\right)")},rightLogShift:{2:"\\left(${args[0]}".concat(latexOperators.rightLogShift,"${args[1]}\\right)")},bellNumbers:{1:"\\mathrm{B}_{${args[0]}}"},catalan:{1:"\\mathrm{C}_{${args[0]}}"},stirlingS2:{2:"\\mathrm{S}\\left(${args}\\right)"},arg:{1:"\\arg\\left(${args[0]}\\right)"},conj:{1:"\\left(${args[0]}\\right)^*"},im:{1:"\\Im\\left\\lbrace${args[0]}\\right\\rbrace"},re:{1:"\\Re\\left\\lbrace${args[0]}\\right\\rbrace"},and:{2:"\\left(${args[0]}".concat(latexOperators.and,"${args[1]}\\right)")},not:{1:latexOperators.not+"\\left(${args[0]}\\right)"},or:{2:"\\left(${args[0]}".concat(latexOperators.or,"${args[1]}\\right)")},xor:{2:"\\left(${args[0]}".concat(latexOperators.xor,"${args[1]}\\right)")},cross:{2:"\\left(${args[0]}\\right)\\times\\left(${args[1]}\\right)"},ctranspose:{1:"\\left(${args[0]}\\right)".concat(latexOperators.ctranspose)},det:{1:"\\det\\left(${args[0]}\\right)"},dot:{2:"\\left(${args[0]}\\cdot${args[1]}\\right)"},expm:{1:"\\exp\\left(${args[0]}\\right)"},inv:{1:"\\left(${args[0]}\\right)^{-1}"},pinv:{1:"\\left(${args[0]}\\right)^{+}"},sqrtm:{1:"{${args[0]}}".concat(latexOperators.pow,"{\\frac{1}{2}}")},trace:{1:"\\mathrm{tr}\\left(${args[0]}\\right)"},transpose:{1:"\\left(${args[0]}\\right)".concat(latexOperators.transpose)},combinations:{2:"\\binom{${args[0]}}{${args[1]}}"},combinationsWithRep:{2:"\\left(\\!\\!{\\binom{${args[0]}}{${args[1]}}}\\!\\!\\right)"},factorial:{1:"\\left(${args[0]}\\right)".concat(latexOperators.factorial)},gamma:{1:"\\Gamma\\left(${args[0]}\\right)"},lgamma:{1:"\\ln\\Gamma\\left(${args[0]}\\right)"},equal:{2:"\\left(${args[0]}".concat(latexOperators.equal,"${args[1]}\\right)")},larger:{2:"\\left(${args[0]}".concat(latexOperators.larger,"${args[1]}\\right)")},largerEq:{2:"\\left(${args[0]}".concat(latexOperators.largerEq,"${args[1]}\\right)")},smaller:{2:"\\left(${args[0]}".concat(latexOperators.smaller,"${args[1]}\\right)")},smallerEq:{2:"\\left(${args[0]}".concat(latexOperators.smallerEq,"${args[1]}\\right)")},unequal:{2:"\\left(${args[0]}".concat(latexOperators.unequal,"${args[1]}\\right)")},erf:{1:"erf\\left(${args[0]}\\right)"},max:"\\max\\left(${args}\\right)",min:"\\min\\left(${args}\\right)",variance:"\\mathrm{Var}\\left(${args}\\right)",acos:{1:"\\cos^{-1}\\left(${args[0]}\\right)"},acosh:{1:"\\cosh^{-1}\\left(${args[0]}\\right)"},acot:{1:"\\cot^{-1}\\left(${args[0]}\\right)"},acoth:{1:"\\coth^{-1}\\left(${args[0]}\\right)"},acsc:{1:"\\csc^{-1}\\left(${args[0]}\\right)"},acsch:{1:"\\mathrm{csch}^{-1}\\left(${args[0]}\\right)"},asec:{1:"\\sec^{-1}\\left(${args[0]}\\right)"},asech:{1:"\\mathrm{sech}^{-1}\\left(${args[0]}\\right)"},asin:{1:"\\sin^{-1}\\left(${args[0]}\\right)"},asinh:{1:"\\sinh^{-1}\\left(${args[0]}\\right)"},atan:{1:"\\tan^{-1}\\left(${args[0]}\\right)"},atan2:{2:"\\mathrm{atan2}\\left(${args}\\right)"},atanh:{1:"\\tanh^{-1}\\left(${args[0]}\\right)"},cos:{1:"\\cos\\left(${args[0]}\\right)"},cosh:{1:"\\cosh\\left(${args[0]}\\right)"},cot:{1:"\\cot\\left(${args[0]}\\right)"},coth:{1:"\\coth\\left(${args[0]}\\right)"},csc:{1:"\\csc\\left(${args[0]}\\right)"},csch:{1:"\\mathrm{csch}\\left(${args[0]}\\right)"},sec:{1:"\\sec\\left(${args[0]}\\right)"},sech:{1:"\\mathrm{sech}\\left(${args[0]}\\right)"},sin:{1:"\\sin\\left(${args[0]}\\right)"},sinh:{1:"\\sinh\\left(${args[0]}\\right)"},tan:{1:"\\tan\\left(${args[0]}\\right)"},tanh:{1:"\\tanh\\left(${args[0]}\\right)"},to:{2:"\\left(${args[0]}".concat(latexOperators.to,"${args[1]}\\right)")},numeric:function numeric(node,options){return node.args[0].toTex()},number:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"},string:{0:'\\mathtt{""}',1:"\\mathrm{string}\\left(${args[0]}\\right)"},bignumber:{0:"0",1:"\\left(${args[0]}\\right)"},complex:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)+".concat(latexSymbols.i,"\\cdot\\left(${args[1]}\\right)\\right)")},matrix:{0:"\\begin{bmatrix}\\end{bmatrix}",1:"\\left(${args[0]}\\right)",2:"\\left(${args[0]}\\right)"},sparse:{0:"\\begin{bsparse}\\end{bsparse}",1:"\\left(${args[0]}\\right)"},unit:{1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"}},latexUnits={deg:"^\\circ"};function escapeLatex(string){return dist_default()(string,{preserveFormatting:!0})}function toSymbol(name,isUnit){return(isUnit=void 0!==isUnit&&isUnit)?(0,object.nr)(latexUnits,name)?latexUnits[name]:"\\mathrm{"+escapeLatex(name)+"}":(0,object.nr)(latexSymbols,name)?latexSymbols[name]:escapeLatex(name)}var ConstantNode_dependencies=["Node"],createConstantNode=(0,factory.d5)("ConstantNode",ConstantNode_dependencies,(_ref=>{var{Node:Node}=_ref;class ConstantNode extends Node{constructor(value){super(),this.value=value}get type(){return"ConstantNode"}get isConstantNode(){return!0}_compile(math,argNames){var value=this.value;return function evalConstantNode(){return value}}forEach(callback){}map(callback){return this.clone()}clone(){return new ConstantNode(this.value)}_toString(options){return(0,utils_string.WU)(this.value,options)}_toHTML(options){var value=this._toString(options);switch((0,is.kM)(this.value)){case"number":case"BigNumber":case"Fraction":return''+value+"";case"string":return''+value+"";case"boolean":return''+value+"";case"null":return''+value+"";case"undefined":return''+value+"";default:return''+value+""}}toJSON(){return{mathjs:"ConstantNode",value:this.value}}static fromJSON(json){return new ConstantNode(json.value)}_toTex(options){var value=this._toString(options),type=(0,is.kM)(this.value);switch(type){case"string":return"\\mathtt{"+escapeLatex(value)+"}";case"number":case"BigNumber":if(!("BigNumber"===type?this.value.isFinite():isFinite(this.value)))return this.value.valueOf()<0?"-\\infty":"\\infty";var index=value.toLowerCase().indexOf("e");return-1!==index?value.substring(0,index)+"\\cdot10^{"+value.substring(index+1)+"}":value;case"Fraction":return this.value.toLatex();default:return value}}}return(0,defineProperty.Z)(ConstantNode,"name","ConstantNode"),ConstantNode}),{isClass:!0,isNode:!0}),FunctionAssignmentNode_dependencies=["typed","Node"],createFunctionAssignmentNode=(0,factory.d5)("FunctionAssignmentNode",FunctionAssignmentNode_dependencies,(_ref=>{var{typed:typed,Node:Node}=_ref;function needParenthesis(node,parenthesis,implicit){var precedence=getPrecedence(node,parenthesis,implicit),exprPrecedence=getPrecedence(node.expr,parenthesis,implicit);return"all"===parenthesis||null!==exprPrecedence&&exprPrecedence<=precedence}class FunctionAssignmentNode extends Node{constructor(name,params,expr){if(super(),"string"!=typeof name)throw new TypeError('String expected for parameter "name"');if(!Array.isArray(params))throw new TypeError('Array containing strings or objects expected for parameter "params"');if(!(0,is.UG)(expr))throw new TypeError('Node expected for parameter "expr"');if(keywords.has(name))throw new Error('Illegal function name, "'+name+'" is a reserved keyword');var paramNames=new Set;for(var param of params){var _name="string"==typeof param?param:param.name;if(paramNames.has(_name))throw new Error('Duplicate parameter name "'.concat(_name,'"'));paramNames.add(_name)}this.name=name,this.params=params.map((function(param){return param&¶m.name||param})),this.types=params.map((function(param){return param&¶m.type||"any"})),this.expr=expr}get type(){return"FunctionAssignmentNode"}get isFunctionAssignmentNode(){return!0}_compile(math,argNames){var childArgNames=Object.create(argNames);(0,utils_array.Ed)(this.params,(function(param){childArgNames[param]=!0}));var evalExpr=this.expr._compile(math,childArgNames),name=this.name,params=this.params,signature=(0,utils_array.v_)(this.types,","),syntax=name+"("+(0,utils_array.v_)(this.params,", ")+")";return function evalFunctionAssignmentNode(scope,args,context){var signatures={};signatures[signature]=function(){for(var childArgs=Object.create(args),i=0;i'+(0,utils_string.YU)(this.params[i])+"");var expr=this.expr.toHTML(options);return needParenthesis(this,parenthesis,options&&options.implicit)&&(expr='('+expr+')'),''+(0,utils_string.YU)(this.name)+'('+params.join(',')+')='+expr}_toTex(options){var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",expr=this.expr.toTex(options);return needParenthesis(this,parenthesis,options&&options.implicit)&&(expr="\\left(".concat(expr,"\\right)")),"\\mathrm{"+this.name+"}\\left("+this.params.map(toSymbol).join(",")+"\\right)="+expr}}return(0,defineProperty.Z)(FunctionAssignmentNode,"name","FunctionAssignmentNode"),FunctionAssignmentNode}),{isClass:!0,isNode:!0}),IndexNode_dependencies=["Node","size"],createIndexNode=(0,factory.d5)("IndexNode",IndexNode_dependencies,(_ref=>{var{Node:Node,size:size}=_ref;class IndexNode extends Node{constructor(dimensions,dotNotation){if(super(),this.dimensions=dimensions,this.dotNotation=dotNotation||!1,!Array.isArray(dimensions)||!dimensions.every(is.UG))throw new TypeError('Array containing Nodes expected for parameter "dimensions"');if(this.dotNotation&&!this.isObjectProperty())throw new Error("dotNotation only applicable for object properties")}get type(){return"IndexNode"}get isIndexNode(){return!0}_compile(math,argNames){var evalDimensions=(0,utils_array.UI)(this.dimensions,(function(dimension,i){if(dimension.filter((node=>node.isSymbolNode&&"end"===node.name)).length>0){var childArgNames=Object.create(argNames);childArgNames.end=!0;var _evalDimension=dimension._compile(math,childArgNames);return function evalDimension(scope,args,context){if(!(0,is.SW)(context)&&!(0,is.kJ)(context)&&!(0,is.HD)(context))throw new TypeError('Cannot resolve "end": context must be a Matrix, Array, or string but is '+(0,is.kM)(context));var s=size(context).valueOf(),childArgs=Object.create(args);return childArgs.end=s[i],_evalDimension(scope,childArgs,context)}}return dimension._compile(math,argNames)})),index=(0,customs.YF)(math,"index");return function evalIndexNode(scope,args,context){var dimensions=(0,utils_array.UI)(evalDimensions,(function(evalDimension){return evalDimension(scope,args,context)}));return index(...dimensions)}}forEach(callback){for(var i=0;i.'+(0,utils_string.YU)(this.getObjectProperty())+"":'['+dimensions.join(',')+']'}_toTex(options){var dimensions=this.dimensions.map((function(range){return range.toTex(options)}));return this.dotNotation?"."+this.getObjectProperty():"_{"+dimensions.join(",")+"}"}}return(0,defineProperty.Z)(IndexNode,"name","IndexNode"),IndexNode}),{isClass:!0,isNode:!0}),ObjectNode_dependencies=["Node"],createObjectNode=(0,factory.d5)("ObjectNode",ObjectNode_dependencies,(_ref=>{var{Node:Node}=_ref;class ObjectNode extends Node{constructor(properties){if(super(),this.properties=properties||{},properties&&("object"!=typeof properties||!Object.keys(properties).every((function(key){return(0,is.UG)(properties[key])}))))throw new TypeError("Object containing Nodes expected")}get type(){return"ObjectNode"}get isObjectNode(){return!0}_compile(math,argNames){var evalEntries={};for(var key in this.properties)if((0,object.nr)(this.properties,key)){var stringifiedKey=(0,utils_string.Pz)(key),parsedKey=JSON.parse(stringifiedKey),prop=(0,customs.YF)(this.properties,key);evalEntries[parsedKey]=prop._compile(math,argNames)}return function evalObjectNode(scope,args,context){var obj={};for(var _key in evalEntries)(0,object.nr)(evalEntries,_key)&&(obj[_key]=evalEntries[_key](scope,args,context));return obj}}forEach(callback){for(var key in this.properties)(0,object.nr)(this.properties,key)&&callback(this.properties[key],"properties["+(0,utils_string.Pz)(key)+"]",this)}map(callback){var properties={};for(var key in this.properties)(0,object.nr)(this.properties,key)&&(properties[key]=this._ifNode(callback(this.properties[key],"properties["+(0,utils_string.Pz)(key)+"]",this)));return new ObjectNode(properties)}clone(){var properties={};for(var key in this.properties)(0,object.nr)(this.properties,key)&&(properties[key]=this.properties[key]);return new ObjectNode(properties)}_toString(options){var entries=[];for(var key in this.properties)(0,object.nr)(this.properties,key)&&entries.push((0,utils_string.Pz)(key)+": "+this.properties[key].toString(options));return"{"+entries.join(", ")+"}"}toJSON(){return{mathjs:"ObjectNode",properties:this.properties}}static fromJSON(json){return new ObjectNode(json.properties)}_toHTML(options){var entries=[];for(var key in this.properties)(0,object.nr)(this.properties,key)&&entries.push(''+(0,utils_string.YU)(key)+':'+this.properties[key].toHTML(options));return'{'+entries.join(',')+'}'}_toTex(options){var entries=[];for(var key in this.properties)(0,object.nr)(this.properties,key)&&entries.push("\\mathbf{"+key+":} & "+this.properties[key].toTex(options)+"\\\\");return"\\left\\{\\begin{array}{ll}"+entries.join("\n")+"\\end{array}\\right\\}"}}return(0,defineProperty.Z)(ObjectNode,"name","ObjectNode"),ObjectNode}),{isClass:!0,isNode:!0});function createSubScope(parentScope,args){return new utils_map.A3(parentScope,new utils_map.hB(args),new Set(Object.keys(args)))}var OperatorNode_dependencies=["Node"],createOperatorNode=(0,factory.d5)("OperatorNode",OperatorNode_dependencies,(_ref=>{var{Node:Node}=_ref;function startsWithConstant(expr,parenthesis){var curNode=expr;if("auto"===parenthesis)for(;(0,is.Ig)(curNode);)curNode=curNode.content;return!!(0,is.nu)(curNode)||!!(0,is.bV)(curNode)&&startsWithConstant(curNode.args[0],parenthesis)}function calculateNecessaryParentheses(root,parenthesis,implicit,args,latex){var result,precedence=getPrecedence(root,parenthesis,implicit),associativity=getAssociativity(root,parenthesis);if("all"===parenthesis||args.length>2&&"OperatorNode:add"!==root.getIdentifier()&&"OperatorNode:multiply"!==root.getIdentifier())return args.map((function(arg){switch(arg.getContent().type){case"ArrayNode":case"ConstantNode":case"SymbolNode":case"ParenthesisNode":return!1;default:return!0}}));switch(args.length){case 0:result=[];break;case 1:var operandPrecedence=getPrecedence(args[0],parenthesis,implicit,root);if(latex&&null!==operandPrecedence){var operandIdentifier,rootIdentifier;if("keep"===parenthesis?(operandIdentifier=args[0].getIdentifier(),rootIdentifier=root.getIdentifier()):(operandIdentifier=args[0].getContent().getIdentifier(),rootIdentifier=root.getContent().getIdentifier()),!1===properties[precedence][rootIdentifier].latexLeftParens){result=[!1];break}if(!1===properties[operandPrecedence][operandIdentifier].latexParens){result=[!1];break}}if(null===operandPrecedence){result=[!1];break}if(operandPrecedence<=precedence){result=[!0];break}result=[!1];break;case 2:var lhsParens,rhsParens,lhsPrecedence=getPrecedence(args[0],parenthesis,implicit,root),assocWithLhs=isAssociativeWith(root,args[0],parenthesis);lhsParens=null!==lhsPrecedence&&(lhsPrecedence===precedence&&"right"===associativity&&!assocWithLhs||lhsPrecedence=2&&"OperatorNode:multiply"===root.getIdentifier()&&root.implicit&&"all"!==parenthesis&&"hide"===implicit)for(var i=1;i2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var stringifiedArgs=args.map((function(arg,index){return arg=arg.toString(options),parens[index]&&(arg="("+arg+")"),arg}));return this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===implicit?stringifiedArgs.join(" "):stringifiedArgs.join(" "+this.op+" ")}return this.fn+"("+this.args.join(", ")+")"}toJSON(){return{mathjs:"OperatorNode",op:this.op,fn:this.fn,args:this.args,implicit:this.implicit,isPercentage:this.isPercentage}}static fromJSON(json){return new OperatorNode(json.op,json.fn,json.args,json.implicit,json.isPercentage)}_toHTML(options){var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",implicit=options&&options.implicit?options.implicit:"hide",args=this.args,parens=calculateNecessaryParentheses(this,parenthesis,implicit,args,!1);if(1===args.length){var assoc=getAssociativity(this,parenthesis),operand=args[0].toHTML(options);return parens[0]&&(operand='('+operand+')'),"right"===assoc?''+(0,utils_string.YU)(this.op)+""+operand:operand+''+(0,utils_string.YU)(this.op)+""}if(2===args.length){var lhs=args[0].toHTML(options),rhs=args[1].toHTML(options);return parens[0]&&(lhs='('+lhs+')'),parens[1]&&(rhs='('+rhs+')'),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===implicit?lhs+''+rhs:lhs+''+(0,utils_string.YU)(this.op)+""+rhs}var stringifiedArgs=args.map((function(arg,index){return arg=arg.toHTML(options),parens[index]&&(arg='('+arg+')'),arg}));return args.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())?this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===implicit?stringifiedArgs.join(''):stringifiedArgs.join(''+(0,utils_string.YU)(this.op)+""):''+(0,utils_string.YU)(this.fn)+'('+stringifiedArgs.join(',')+')'}_toTex(options){var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",implicit=options&&options.implicit?options.implicit:"hide",args=this.args,parens=calculateNecessaryParentheses(this,parenthesis,implicit,args,!0),op=latexOperators[this.fn];if(op=void 0===op?this.op:op,1===args.length){var assoc=getAssociativity(this,parenthesis),operand=args[0].toTex(options);return parens[0]&&(operand="\\left(".concat(operand,"\\right)")),"right"===assoc?op+operand:operand+op}if(2===args.length){var lhs=args[0],lhsTex=lhs.toTex(options);parens[0]&&(lhsTex="\\left(".concat(lhsTex,"\\right)"));var lhsIdentifier,rhsTex=args[1].toTex(options);switch(parens[1]&&(rhsTex="\\left(".concat(rhsTex,"\\right)")),lhsIdentifier="keep"===parenthesis?lhs.getIdentifier():lhs.getContent().getIdentifier(),this.getIdentifier()){case"OperatorNode:divide":return op+"{"+lhsTex+"}{"+rhsTex+"}";case"OperatorNode:pow":switch(lhsTex="{"+lhsTex+"}",rhsTex="{"+rhsTex+"}",lhsIdentifier){case"ConditionalNode":case"OperatorNode:divide":lhsTex="\\left(".concat(lhsTex,"\\right)")}break;case"OperatorNode:multiply":if(this.implicit&&"hide"===implicit)return lhsTex+"~"+rhsTex}return lhsTex+op+rhsTex}if(args.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var texifiedArgs=args.map((function(arg,index){return arg=arg.toTex(options),parens[index]&&(arg="\\left(".concat(arg,"\\right)")),arg}));return"OperatorNode:multiply"===this.getIdentifier()&&this.implicit&&"hide"===implicit?texifiedArgs.join("~"):texifiedArgs.join(op)}return"\\mathrm{"+this.fn+"}\\left("+args.map((function(arg){return arg.toTex(options)})).join(",")+"\\right)"}getIdentifier(){return this.type+":"+this.fn}}return(0,defineProperty.Z)(OperatorNode,"name","OperatorNode"),OperatorNode}),{isClass:!0,isNode:!0}),ParenthesisNode_dependencies=["Node"],createParenthesisNode=(0,factory.d5)("ParenthesisNode",ParenthesisNode_dependencies,(_ref=>{var{Node:Node}=_ref;class ParenthesisNode extends Node{constructor(content){if(super(),!(0,is.UG)(content))throw new TypeError('Node expected for parameter "content"');this.content=content}get type(){return"ParenthesisNode"}get isParenthesisNode(){return!0}_compile(math,argNames){return this.content._compile(math,argNames)}getContent(){return this.content.getContent()}forEach(callback){callback(this.content,"content",this)}map(callback){var content=callback(this.content,"content",this);return new ParenthesisNode(content)}clone(){return new ParenthesisNode(this.content)}_toString(options){return!options||options&&!options.parenthesis||options&&"keep"===options.parenthesis?"("+this.content.toString(options)+")":this.content.toString(options)}toJSON(){return{mathjs:"ParenthesisNode",content:this.content}}static fromJSON(json){return new ParenthesisNode(json.content)}_toHTML(options){return!options||options&&!options.parenthesis||options&&"keep"===options.parenthesis?'('+this.content.toHTML(options)+')':this.content.toHTML(options)}_toTex(options){return!options||options&&!options.parenthesis||options&&"keep"===options.parenthesis?"\\left(".concat(this.content.toTex(options),"\\right)"):this.content.toTex(options)}}return(0,defineProperty.Z)(ParenthesisNode,"name","ParenthesisNode"),ParenthesisNode}),{isClass:!0,isNode:!0}),RangeNode_dependencies=["Node"],createRangeNode=(0,factory.d5)("RangeNode",RangeNode_dependencies,(_ref=>{var{Node:Node}=_ref;function calculateNecessaryParentheses(node,parenthesis,implicit){var precedence=getPrecedence(node,parenthesis,implicit),parens={},startPrecedence=getPrecedence(node.start,parenthesis,implicit);if(parens.start=null!==startPrecedence&&startPrecedence<=precedence||"all"===parenthesis,node.step){var stepPrecedence=getPrecedence(node.step,parenthesis,implicit);parens.step=null!==stepPrecedence&&stepPrecedence<=precedence||"all"===parenthesis}var endPrecedence=getPrecedence(node.end,parenthesis,implicit);return parens.end=null!==endPrecedence&&endPrecedence<=precedence||"all"===parenthesis,parens}class RangeNode extends Node{constructor(start,end,step){if(super(),!(0,is.UG)(start))throw new TypeError("Node expected");if(!(0,is.UG)(end))throw new TypeError("Node expected");if(step&&!(0,is.UG)(step))throw new TypeError("Node expected");if(arguments.length>3)throw new Error("Too many arguments");this.start=start,this.end=end,this.step=step||null}get type(){return"RangeNode"}get isRangeNode(){return!0}needsEnd(){return this.filter((function(node){return(0,is.FG)(node)&&"end"===node.name})).length>0}_compile(math,argNames){var range=math.range,evalStart=this.start._compile(math,argNames),evalEnd=this.end._compile(math,argNames);if(this.step){var evalStep=this.step._compile(math,argNames);return function evalRangeNode(scope,args,context){return range(evalStart(scope,args,context),evalEnd(scope,args,context),evalStep(scope,args,context))}}return function evalRangeNode(scope,args,context){return range(evalStart(scope,args,context),evalEnd(scope,args,context))}}forEach(callback){callback(this.start,"start",this),callback(this.end,"end",this),this.step&&callback(this.step,"step",this)}map(callback){return new RangeNode(this._ifNode(callback(this.start,"start",this)),this._ifNode(callback(this.end,"end",this)),this.step&&this._ifNode(callback(this.step,"step",this)))}clone(){return new RangeNode(this.start,this.end,this.step&&this.step)}_toString(options){var str,parens=calculateNecessaryParentheses(this,options&&options.parenthesis?options.parenthesis:"keep",options&&options.implicit),start=this.start.toString(options);if(parens.start&&(start="("+start+")"),str=start,this.step){var step=this.step.toString(options);parens.step&&(step="("+step+")"),str+=":"+step}var end=this.end.toString(options);return parens.end&&(end="("+end+")"),str+=":"+end}toJSON(){return{mathjs:"RangeNode",start:this.start,end:this.end,step:this.step}}static fromJSON(json){return new RangeNode(json.start,json.end,json.step)}_toHTML(options){var str,parens=calculateNecessaryParentheses(this,options&&options.parenthesis?options.parenthesis:"keep",options&&options.implicit),start=this.start.toHTML(options);if(parens.start&&(start='('+start+')'),str=start,this.step){var step=this.step.toHTML(options);parens.step&&(step='('+step+')'),str+=':'+step}var end=this.end.toHTML(options);return parens.end&&(end='('+end+')'),str+=':'+end}_toTex(options){var parens=calculateNecessaryParentheses(this,options&&options.parenthesis?options.parenthesis:"keep",options&&options.implicit),str=this.start.toTex(options);if(parens.start&&(str="\\left(".concat(str,"\\right)")),this.step){var step=this.step.toTex(options);parens.step&&(step="\\left(".concat(step,"\\right)")),str+=":"+step}var end=this.end.toTex(options);return parens.end&&(end="\\left(".concat(end,"\\right)")),str+=":"+end}}return(0,defineProperty.Z)(RangeNode,"name","RangeNode"),RangeNode}),{isClass:!0,isNode:!0}),RelationalNode_dependencies=["Node"],createRelationalNode=(0,factory.d5)("RelationalNode",RelationalNode_dependencies,(_ref=>{var{Node:Node}=_ref,operatorMap={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="};class RelationalNode extends Node{constructor(conditionals,params){if(super(),!Array.isArray(conditionals))throw new TypeError("Parameter conditionals must be an array");if(!Array.isArray(params))throw new TypeError("Parameter params must be an array");if(conditionals.length!==params.length-1)throw new TypeError("Parameter params must contain exactly one more element than parameter conditionals");this.conditionals=conditionals,this.params=params}get type(){return"RelationalNode"}get isRelationalNode(){return!0}_compile(math,argNames){var self=this,compiled=this.params.map((p=>p._compile(math,argNames)));return function evalRelationalNode(scope,args,context){for(var evalLhs,evalRhs=compiled[0](scope,args,context),i=0;icallback(n,"params["+i+"]",this)),this)}map(callback){return new RelationalNode(this.conditionals.slice(),this.params.map(((n,i)=>this._ifNode(callback(n,"params["+i+"]",this))),this))}clone(){return new RelationalNode(this.conditionals,this.params)}_toString(options){for(var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",precedence=getPrecedence(this,parenthesis,options&&options.implicit),paramStrings=this.params.map((function(p,index){var paramPrecedence=getPrecedence(p,parenthesis,options&&options.implicit);return"all"===parenthesis||null!==paramPrecedence&¶mPrecedence<=precedence?"("+p.toString(options)+")":p.toString(options)})),ret=paramStrings[0],i=0;i('+p.toHTML(options)+')':p.toHTML(options)})),ret=paramStrings[0],i=0;i'+(0,utils_string.YU)(operatorMap[this.conditionals[i]])+""+paramStrings[i+1];return ret}_toTex(options){for(var parenthesis=options&&options.parenthesis?options.parenthesis:"keep",precedence=getPrecedence(this,parenthesis,options&&options.implicit),paramStrings=this.params.map((function(p,index){var paramPrecedence=getPrecedence(p,parenthesis,options&&options.implicit);return"all"===parenthesis||null!==paramPrecedence&¶mPrecedence<=precedence?"\\left("+p.toTex(options)+"\right)":p.toTex(options)})),ret=paramStrings[0],i=0;i{var{math:math,Unit:Unit,Node:Node}=_ref;function isValuelessUnit(name){return!!Unit&&Unit.isValuelessUnit(name)}class SymbolNode extends Node{constructor(name){if(super(),"string"!=typeof name)throw new TypeError('String expected for parameter "name"');this.name=name}get type(){return"SymbolNode"}get isSymbolNode(){return!0}_compile(math,argNames){var name=this.name;if(!0===argNames[name])return function(scope,args,context){return(0,customs.YF)(args,name)};if(name in math)return function(scope,args,context){return scope.has(name)?scope.get(name):(0,customs.YF)(math,name)};var isUnit=isValuelessUnit(name);return function(scope,args,context){return scope.has(name)?scope.get(name):isUnit?new Unit(null,name):SymbolNode.onUndefinedSymbol(name)}}forEach(callback){}map(callback){return this.clone()}static onUndefinedSymbol(name){throw new Error("Undefined symbol "+name)}clone(){return new SymbolNode(this.name)}_toString(options){return this.name}_toHTML(options){var name=(0,utils_string.YU)(this.name);return"true"===name||"false"===name?''+name+"":"i"===name?''+name+"":"Infinity"===name?''+name+"":"NaN"===name?''+name+"":"null"===name?''+name+"":"undefined"===name?''+name+"":''+name+""}toJSON(){return{mathjs:"SymbolNode",name:this.name}}static fromJSON(json){return new SymbolNode(json.name)}_toTex(options){var isUnit=!1;void 0===math[this.name]&&isValuelessUnit(this.name)&&(isUnit=!0);var symbol=toSymbol(this.name,isUnit);return"\\"===symbol[0]?symbol:" "+symbol}}return SymbolNode}),{isClass:!0,isNode:!0}),FunctionNode_dependencies=["math","Node","SymbolNode"],createFunctionNode=(0,factory.d5)("FunctionNode",FunctionNode_dependencies,(_ref=>{var _class,{math:math,Node:Node,SymbolNode:SymbolNode}=_ref,strin=entity=>(0,utils_string.WU)(entity,{truncate:78});function expandTemplate(template,node,options){for(var match,latex="",regex=/\$(?:\{([a-z_][a-z_0-9]*)(?:\[([0-9]+)\])?\}|\$)/gi,inputPos=0;null!==(match=regex.exec(template));)if(latex+=template.substring(inputPos,match.index),inputPos=match.index,"$$"===match[0])latex+="$",inputPos++;else{inputPos+=match[0].length;var property=node[match[1]];if(!property)throw new ReferenceError("Template: Property "+match[1]+" does not exist.");if(void 0===match[2])switch(typeof property){case"string":latex+=property;break;case"object":if((0,is.UG)(property))latex+=property.toTex(options);else{if(!Array.isArray(property))throw new TypeError("Template: "+match[1]+" has to be a Node, String or array of Nodes");latex+=property.map((function(arg,index){if((0,is.UG)(arg))return arg.toTex(options);throw new TypeError("Template: "+match[1]+"["+index+"] is not a Node.")})).join(",")}break;default:throw new TypeError("Template: "+match[1]+" has to be a Node, String or array of Nodes")}else{if(!(0,is.UG)(property[match[2]]&&property[match[2]]))throw new TypeError("Template: "+match[1]+"["+match[2]+"] is not a Node.");latex+=property[match[2]].toTex(options)}}return latex+=template.slice(inputPos)}class FunctionNode extends Node{constructor(fn,args){if(super(),"string"==typeof fn&&(fn=new SymbolNode(fn)),!(0,is.UG)(fn))throw new TypeError('Node expected as parameter "fn"');if(!Array.isArray(args)||!args.every(is.UG))throw new TypeError('Array containing Nodes expected for parameter "args"');this.fn=fn,this.args=args||[]}get name(){return this.fn.name||""}get type(){return"FunctionNode"}get isFunctionNode(){return!0}_compile(math,argNames){var evalArgs=this.args.map((arg=>arg._compile(math,argNames)));if(!(0,is.FG)(this.fn)){if((0,is.Yz)(this.fn)&&(0,is.Cl)(this.fn.index)&&this.fn.index.isObjectProperty()){var evalObject=this.fn.object._compile(math,argNames),prop=this.fn.index.getObjectProperty(),_rawArgs2=this.args;return function evalFunctionNode(scope,args,context){var object=evalObject(scope,args,context),fn=(0,customs.rG)(object,prop);if(null!=fn&&fn.rawArgs)return fn(_rawArgs2,math,createSubScope(scope,args));var values=evalArgs.map((evalArg=>evalArg(scope,args,context)));return fn.apply(object,values)}}var fnExpr=this.fn.toString(),evalFn=this.fn._compile(math,argNames),_rawArgs3=this.args;return function evalFunctionNode(scope,args,context){var fn=evalFn(scope,args,context);if("function"!=typeof fn)throw new TypeError("Expression '".concat(fnExpr,"' did not evaluate to a function; value is:")+"\n ".concat(strin(fn)));if(fn.rawArgs)return fn(_rawArgs3,math,createSubScope(scope,args));var values=evalArgs.map((evalArg=>evalArg(scope,args,context)));return fn.apply(fn,values)}}var _name=this.fn.name;if(argNames[_name]){var _rawArgs=this.args;return function evalFunctionNode(scope,args,context){var fn=(0,customs.YF)(args,_name);if("function"!=typeof fn)throw new TypeError("Argument '".concat(_name,"' was not a function; received: ").concat(strin(fn)));if(fn.rawArgs)return fn(_rawArgs,math,createSubScope(scope,args));var values=evalArgs.map((evalArg=>evalArg(scope,args,context)));return fn.apply(fn,values)}}var fn=_name in math?(0,customs.YF)(math,_name):void 0,isRaw="function"==typeof fn&&!0===fn.rawArgs,resolveFn=scope=>{var value;if(scope.has(_name))value=scope.get(_name);else{if(!(_name in math))return FunctionNode.onUndefinedFunction(_name);value=(0,customs.YF)(math,_name)}if("function"==typeof value)return value;throw new TypeError("'".concat(_name,"' is not a function; its value is:\n ").concat(strin(value)))};if(isRaw){var rawArgs=this.args;return function evalFunctionNode(scope,args,context){return resolveFn(scope)(rawArgs,math,createSubScope(scope,args))}}switch(evalArgs.length){case 0:return function evalFunctionNode(scope,args,context){return resolveFn(scope)()};case 1:return function evalFunctionNode(scope,args,context){return resolveFn(scope)((0,evalArgs[0])(scope,args,context))};case 2:return function evalFunctionNode(scope,args,context){var fn=resolveFn(scope),evalArg0=evalArgs[0],evalArg1=evalArgs[1];return fn(evalArg0(scope,args,context),evalArg1(scope,args,context))};default:return function evalFunctionNode(scope,args,context){return resolveFn(scope)(...evalArgs.map((evalArg=>evalArg(scope,args,context))))}}}forEach(callback){callback(this.fn,"fn",this);for(var i=0;i'+(0,utils_string.YU)(this.fn)+'('+args.join(',')+')'}toTex(options){var customTex;return options&&"object"==typeof options.handler&&(0,object.nr)(options.handler,this.name)&&(customTex=options.handler[this.name](this,options)),void 0!==customTex?customTex:super.toTex(options)}_toTex(options){var latexConverter,customToTex,args=this.args.map((function(arg){return arg.toTex(options)}));switch(latexFunctions[this.name]&&(latexConverter=latexFunctions[this.name]),!math[this.name]||"function"!=typeof math[this.name].toTex&&"object"!=typeof math[this.name].toTex&&"string"!=typeof math[this.name].toTex||(latexConverter=math[this.name].toTex),typeof latexConverter){case"function":customToTex=latexConverter(this,options);break;case"string":customToTex=expandTemplate(latexConverter,this,options);break;case"object":switch(typeof latexConverter[args.length]){case"function":customToTex=latexConverter[args.length](this,options);break;case"string":customToTex=expandTemplate(latexConverter[args.length],this,options)}}return void 0!==customToTex?customToTex:expandTemplate("\\mathrm{${name}}\\left(${args}\\right)",this,options)}getIdentifier(){return this.type+":"+this.name}}return _class=FunctionNode,(0,defineProperty.Z)(FunctionNode,"name","FunctionNode"),(0,defineProperty.Z)(FunctionNode,"onUndefinedFunction",(function(name){throw new Error("Undefined function "+name)})),(0,defineProperty.Z)(FunctionNode,"fromJSON",(function(json){return new _class(json.fn,json.args)})),FunctionNode}),{isClass:!0,isNode:!0}),esm_extends=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/extends.js"),collection=__webpack_require__("./node_modules/mathjs/lib/esm/utils/collection.js"),parse_dependencies=["typed","numeric","config","AccessorNode","ArrayNode","AssignmentNode","BlockNode","ConditionalNode","ConstantNode","FunctionAssignmentNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","RangeNode","RelationalNode","SymbolNode"],createParse=(0,factory.d5)("parse",parse_dependencies,(_ref=>{var{typed:typed,numeric:numeric,config:config,AccessorNode:AccessorNode,ArrayNode:ArrayNode,AssignmentNode:AssignmentNode,BlockNode:BlockNode,ConditionalNode:ConditionalNode,ConstantNode:ConstantNode,FunctionAssignmentNode:FunctionAssignmentNode,FunctionNode:FunctionNode,IndexNode:IndexNode,ObjectNode:ObjectNode,OperatorNode:OperatorNode,ParenthesisNode:ParenthesisNode,RangeNode:RangeNode,RelationalNode:RelationalNode,SymbolNode:SymbolNode}=_ref,parse=typed("parse",{string:function string(expression){return parseStart(expression,{})},"Array | Matrix":function ArrayMatrix(expressions){return parseMultiple(expressions,{})},"string, Object":function stringObject(expression,options){return parseStart(expression,void 0!==options.nodes?options.nodes:{})},"Array | Matrix, Object":parseMultiple});function parseMultiple(expressions){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},extraNodes=void 0!==options.nodes?options.nodes:{};return(0,collection.Fh)(expressions,(function(elem){if("string"!=typeof elem)throw new TypeError("String expected");return parseStart(elem,extraNodes)}))}var TOKENTYPE={NULL:0,DELIMITER:1,NUMBER:2,SYMBOL:3,UNKNOWN:4},DELIMITERS={",":!0,"(":!0,")":!0,"[":!0,"]":!0,"{":!0,"}":!0,'"':!0,"'":!0,";":!0,"+":!0,"-":!0,"*":!0,".*":!0,"/":!0,"./":!0,"%":!0,"^":!0,".^":!0,"~":!0,"!":!0,"&":!0,"|":!0,"^|":!0,"=":!0,":":!0,"?":!0,"==":!0,"!=":!0,"<":!0,">":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},NAMED_DELIMITERS={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},CONSTANTS={true:!0,false:!1,null:null,undefined:void 0},NUMERIC_CONSTANTS=["NaN","Infinity"],ESCAPE_CHARACTERS={'"':'"',"'":"'","\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function currentString(state,length){return state.expression.substr(state.index,length)}function currentCharacter(state){return currentString(state,1)}function next(state){state.index++}function prevCharacter(state){return state.expression.charAt(state.index-1)}function nextCharacter(state){return state.expression.charAt(state.index+1)}function getToken(state){for(state.tokenType=TOKENTYPE.NULL,state.token="",state.comment="";;){if("#"===currentCharacter(state))for(;"\n"!==currentCharacter(state)&&""!==currentCharacter(state);)state.comment+=currentCharacter(state),next(state);if(!parse.isWhitespace(currentCharacter(state),state.nestingLevel))break;next(state)}if(""!==currentCharacter(state)){if("\n"===currentCharacter(state)&&!state.nestingLevel)return state.tokenType=TOKENTYPE.DELIMITER,state.token=currentCharacter(state),void next(state);var c1=currentCharacter(state),c2=currentString(state,2),c3=currentString(state,3);if(3===c3.length&&DELIMITERS[c3])return state.tokenType=TOKENTYPE.DELIMITER,state.token=c3,next(state),next(state),void next(state);if(2===c2.length&&DELIMITERS[c2])return state.tokenType=TOKENTYPE.DELIMITER,state.token=c2,next(state),void next(state);if(DELIMITERS[c1])return state.tokenType=TOKENTYPE.DELIMITER,state.token=c1,void next(state);if(parse.isDigitDot(c1)){state.tokenType=TOKENTYPE.NUMBER;var _c=currentString(state,2);if("0b"===_c||"0o"===_c||"0x"===_c){for(state.token+=currentCharacter(state),next(state),state.token+=currentCharacter(state),next(state);parse.isHexDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);if("."===currentCharacter(state))for(state.token+=".",next(state);parse.isHexDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);else if("i"===currentCharacter(state))for(state.token+="i",next(state);parse.isDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);return}if("."===currentCharacter(state)){if(state.token+=currentCharacter(state),next(state),!parse.isDigit(currentCharacter(state)))return void(state.tokenType=TOKENTYPE.DELIMITER)}else{for(;parse.isDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);parse.isDecimalMark(currentCharacter(state),nextCharacter(state))&&(state.token+=currentCharacter(state),next(state))}for(;parse.isDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);if("E"===currentCharacter(state)||"e"===currentCharacter(state))if(parse.isDigit(nextCharacter(state))||"-"===nextCharacter(state)||"+"===nextCharacter(state)){if(state.token+=currentCharacter(state),next(state),"+"!==currentCharacter(state)&&"-"!==currentCharacter(state)||(state.token+=currentCharacter(state),next(state)),!parse.isDigit(currentCharacter(state)))throw createSyntaxError(state,'Digit expected, got "'+currentCharacter(state)+'"');for(;parse.isDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);if(parse.isDecimalMark(currentCharacter(state),nextCharacter(state)))throw createSyntaxError(state,'Digit expected, got "'+currentCharacter(state)+'"')}else if("."===nextCharacter(state))throw next(state),createSyntaxError(state,'Digit expected, got "'+currentCharacter(state)+'"')}else{if(!parse.isAlpha(currentCharacter(state),prevCharacter(state),nextCharacter(state))){for(state.tokenType=TOKENTYPE.UNKNOWN;""!==currentCharacter(state);)state.token+=currentCharacter(state),next(state);throw createSyntaxError(state,'Syntax error in part "'+state.token+'"')}for(;parse.isAlpha(currentCharacter(state),prevCharacter(state),nextCharacter(state))||parse.isDigit(currentCharacter(state));)state.token+=currentCharacter(state),next(state);(0,object.nr)(NAMED_DELIMITERS,state.token)?state.tokenType=TOKENTYPE.DELIMITER:state.tokenType=TOKENTYPE.SYMBOL}}else state.tokenType=TOKENTYPE.DELIMITER}function getTokenSkipNewline(state){do{getToken(state)}while("\n"===state.token)}function openParams(state){state.nestingLevel++}function closeParams(state){state.nestingLevel--}function parseStart(expression,extraNodes){var state=function initialState(){return{extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:TOKENTYPE.NULL,nestingLevel:0,conditionalLevel:null}}();(0,esm_extends.Z)(state,{expression:expression,extraNodes:extraNodes}),getToken(state);var node=function parseBlock(state){var node,visible,blocks=[];""!==state.token&&"\n"!==state.token&&";"!==state.token&&(node=parseAssignment(state),state.comment&&(node.comment=state.comment));for(;"\n"===state.token||";"===state.token;)0===blocks.length&&node&&(visible=";"!==state.token,blocks.push({node:node,visible:visible})),getToken(state),"\n"!==state.token&&";"!==state.token&&""!==state.token&&(node=parseAssignment(state),state.comment&&(node.comment=state.comment),visible=";"!==state.token,blocks.push({node:node,visible:visible}));return blocks.length>0?new BlockNode(blocks):(node||(node=new ConstantNode(void 0),state.comment&&(node.comment=state.comment)),node)}(state);if(""!==state.token)throw state.tokenType===TOKENTYPE.DELIMITER?createError(state,"Unexpected operator "+state.token):createSyntaxError(state,'Unexpected part "'+state.token+'"');return node}function parseAssignment(state){var name,args,value,valid,node=function parseConditional(state){var node=function parseLogicalOr(state){var node=parseLogicalXor(state);for(;"or"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("or","or",[node,parseLogicalXor(state)]);return node}(state);for(;"?"===state.token;){var prev=state.conditionalLevel;state.conditionalLevel=state.nestingLevel,getTokenSkipNewline(state);var condition=node,trueExpr=parseAssignment(state);if(":"!==state.token)throw createSyntaxError(state,"False part of conditional expression expected");state.conditionalLevel=null,getTokenSkipNewline(state);var falseExpr=parseAssignment(state);node=new ConditionalNode(condition,trueExpr,falseExpr),state.conditionalLevel=prev}return node}(state);if("="===state.token){if((0,is.FG)(node))return name=node.name,getTokenSkipNewline(state),value=parseAssignment(state),new AssignmentNode(new SymbolNode(name),value);if((0,is.Yz)(node))return getTokenSkipNewline(state),value=parseAssignment(state),new AssignmentNode(node.object,node.index,value);if((0,is.VO)(node)&&(0,is.FG)(node.fn)&&(valid=!0,args=[],name=node.name,node.args.forEach((function(arg,index){(0,is.FG)(arg)?args[index]=arg.name:valid=!1})),valid))return getTokenSkipNewline(state),value=parseAssignment(state),new FunctionAssignmentNode(name,args,value);throw createSyntaxError(state,"Invalid left hand side of assignment operator =")}return node}function parseLogicalXor(state){for(var node=parseLogicalAnd(state);"xor"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("xor","xor",[node,parseLogicalAnd(state)]);return node}function parseLogicalAnd(state){for(var node=parseBitwiseOr(state);"and"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("and","and",[node,parseBitwiseOr(state)]);return node}function parseBitwiseOr(state){for(var node=parseBitwiseXor(state);"|"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("|","bitOr",[node,parseBitwiseXor(state)]);return node}function parseBitwiseXor(state){for(var node=parseBitwiseAnd(state);"^|"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("^|","bitXor",[node,parseBitwiseAnd(state)]);return node}function parseBitwiseAnd(state){for(var node=parseRelational(state);"&"===state.token;)getTokenSkipNewline(state),node=new OperatorNode("&","bitAnd",[node,parseRelational(state)]);return node}function parseRelational(state){for(var params=[parseShift(state)],conditionals=[],operators={"==":"equal","!=":"unequal","<":"smaller",">":"larger","<=":"smallerEq",">=":"largerEq"};(0,object.nr)(operators,state.token);){var cond={name:state.token,fn:operators[state.token]};conditionals.push(cond),getTokenSkipNewline(state),params.push(parseShift(state))}return 1===params.length?params[0]:2===params.length?new OperatorNode(conditionals[0].name,conditionals[0].fn,params):new RelationalNode(conditionals.map((c=>c.fn)),params)}function parseShift(state){var node,name,fn,params;node=parseConversion(state);for(var operators={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};(0,object.nr)(operators,state.token);)fn=operators[name=state.token],getTokenSkipNewline(state),params=[node,parseConversion(state)],node=new OperatorNode(name,fn,params);return node}function parseConversion(state){var node,name,fn,params;node=parseRange(state);for(var operators={to:"to",in:"to"};(0,object.nr)(operators,state.token);)fn=operators[name=state.token],getTokenSkipNewline(state),"in"===name&&""===state.token?node=new OperatorNode("*","multiply",[node,new SymbolNode("in")],!0):(params=[node,parseRange(state)],node=new OperatorNode(name,fn,params));return node}function parseRange(state){var node,params=[];if(node=":"===state.token?new ConstantNode(1):parseAddSubtract(state),":"===state.token&&state.conditionalLevel!==state.nestingLevel){for(params.push(node);":"===state.token&¶ms.length<3;)getTokenSkipNewline(state),")"===state.token||"]"===state.token||","===state.token||""===state.token?params.push(new SymbolNode("end")):params.push(parseAddSubtract(state));node=3===params.length?new RangeNode(params[0],params[2],params[1]):new RangeNode(params[0],params[1])}return node}function parseAddSubtract(state){var node,name,fn,params;node=parseMultiplyDivide(state);for(var operators={"+":"add","-":"subtract"};(0,object.nr)(operators,state.token);){fn=operators[name=state.token],getTokenSkipNewline(state);var rightNode=parseMultiplyDivide(state);params=rightNode.isPercentage?[node,new OperatorNode("*","multiply",[node,rightNode])]:[node,rightNode],node=new OperatorNode(name,fn,params)}return node}function parseMultiplyDivide(state){var node,last,name,fn;last=node=parseImplicitMultiplication(state);for(var operators={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide"};(0,object.nr)(operators,state.token);)fn=operators[name=state.token],getTokenSkipNewline(state),last=parseImplicitMultiplication(state),node=new OperatorNode(name,fn,[node,last]);return node}function parseImplicitMultiplication(state){var node,last;for(last=node=parseRule2(state);state.tokenType===TOKENTYPE.SYMBOL||"in"===state.token&&(0,is.nu)(node)||!(state.tokenType!==TOKENTYPE.NUMBER||(0,is.nu)(last)||(0,is.bV)(last)&&"!"!==last.op)||"("===state.token;)last=parseRule2(state),node=new OperatorNode("*","multiply",[node,last],!0);return node}function parseRule2(state){for(var node=parsePercentage(state),last=node,tokenStates=[];"/"===state.token&&(0,is.ZX)(last);){if(tokenStates.push((0,esm_extends.Z)({},state)),getTokenSkipNewline(state),state.tokenType!==TOKENTYPE.NUMBER){(0,esm_extends.Z)(state,tokenStates.pop());break}if(tokenStates.push((0,esm_extends.Z)({},state)),getTokenSkipNewline(state),state.tokenType!==TOKENTYPE.SYMBOL&&"("!==state.token){tokenStates.pop(),(0,esm_extends.Z)(state,tokenStates.pop());break}(0,esm_extends.Z)(state,tokenStates.pop()),tokenStates.pop(),last=parsePercentage(state),node=new OperatorNode("/","divide",[node,last])}return node}function parsePercentage(state){var node,name,fn,params;node=parseUnary(state);for(var operators={"%":"mod",mod:"mod"};(0,object.nr)(operators,state.token);)fn=operators[name=state.token],getTokenSkipNewline(state),"%"===name&&state.tokenType===TOKENTYPE.DELIMITER&&"("!==state.token?node=new OperatorNode("/","divide",[node,new ConstantNode(100)],!1,!0):(params=[node,parseUnary(state)],node=new OperatorNode(name,fn,params));return node}function parseUnary(state){var name,params,fn,operators={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return(0,object.nr)(operators,state.token)?(fn=operators[state.token],name=state.token,getTokenSkipNewline(state),params=[parseUnary(state)],new OperatorNode(name,fn,params)):function parsePow(state){var node,name,fn,params;node=function parseLeftHandOperators(state){var node,name,fn;node=function parseCustomNodes(state){var params=[];if(state.tokenType===TOKENTYPE.SYMBOL&&(0,object.nr)(state.extraNodes,state.token)){var CustomNode=state.extraNodes[state.token];if(getToken(state),"("===state.token){if(params=[],openParams(state),getToken(state),")"!==state.token)for(params.push(parseAssignment(state));","===state.token;)getToken(state),params.push(parseAssignment(state));if(")"!==state.token)throw createSyntaxError(state,"Parenthesis ) expected");closeParams(state),getToken(state)}return new CustomNode(params)}return function parseSymbol(state){var name;if(state.tokenType===TOKENTYPE.SYMBOL||state.tokenType===TOKENTYPE.DELIMITER&&state.token in NAMED_DELIMITERS)return name=state.token,getToken(state),parseAccessors(state,(0,object.nr)(CONSTANTS,name)?new ConstantNode(CONSTANTS[name]):-1!==NUMERIC_CONSTANTS.indexOf(name)?new ConstantNode(numeric(name,"number")):new SymbolNode(name));return function parseString(state){var str;if('"'===state.token||"'"===state.token)return str=parseStringToken(state,state.token),parseAccessors(state,new ConstantNode(str));return function parseMatrix(state){var array,params,rows,cols;if("["===state.token){if(openParams(state),getToken(state),"]"!==state.token){var row=parseRow(state);if(";"===state.token){for(rows=1,params=[row];";"===state.token;)getToken(state),"]"!==state.token&&(params[rows]=parseRow(state),rows++);if("]"!==state.token)throw createSyntaxError(state,"End of matrix ] expected");closeParams(state),getToken(state),cols=params[0].items.length;for(var r=1;r0},parse.isDecimalMark=function isDecimalMark(c,cNext){return"."===c&&"/"!==cNext&&"*"!==cNext&&"^"!==cNext},parse.isDigitDot=function isDigitDot(c){return c>="0"&&c<="9"||"."===c},parse.isDigit=function isDigit(c){return c>="0"&&c<="9"},parse.isHexDigit=function isHexDigit(c){return c>="0"&&c<="9"||c>="a"&&c<="f"||c>="A"&&c<="F"},typed.addConversion({from:"string",to:"Node",convert:parse}),parse})),compile_dependencies=["typed","parse"],createCompile=(0,factory.d5)("compile",compile_dependencies,(_ref=>{var{typed:typed,parse:parse}=_ref;return typed("compile",{string:function string(expr){return parse(expr).compile()},"Array | Matrix":function ArrayMatrix(expr){return(0,collection.Fh)(expr,(function(entry){return parse(entry).compile()}))}})})),evaluate_dependencies=["typed","parse"],createEvaluate=(0,factory.d5)("evaluate",evaluate_dependencies,(_ref=>{var{typed:typed,parse:parse}=_ref;return typed("evaluate",{string:function string(expr){var scope=(0,utils_map.dg)();return parse(expr).compile().evaluate(scope)},"string, Map | Object":function stringMapObject(expr,scope){return parse(expr).compile().evaluate(scope)},"Array | Matrix":function ArrayMatrix(expr){var scope=(0,utils_map.dg)();return(0,collection.Fh)(expr,(function(entry){return parse(entry).compile().evaluate(scope)}))},"Array | Matrix, Map | Object":function ArrayMatrixMapObject(expr,scope){return(0,collection.Fh)(expr,(function(entry){return parse(entry).compile().evaluate(scope)}))}})})),Parser_dependencies=["evaluate"],createParserClass=(0,factory.d5)("Parser",Parser_dependencies,(_ref=>{var{evaluate:evaluate}=_ref;function Parser(){if(!(this instanceof Parser))throw new SyntaxError("Constructor must be called with the new operator");Object.defineProperty(this,"scope",{value:(0,utils_map.dg)(),writable:!1})}return Parser.prototype.type="Parser",Parser.prototype.isParser=!0,Parser.prototype.evaluate=function(expr){return evaluate(expr,this.scope)},Parser.prototype.get=function(name){if(this.scope.has(name))return this.scope.get(name)},Parser.prototype.getAll=function(){return(0,utils_map.ru)(this.scope)},Parser.prototype.getAllAsMap=function(){return this.scope},Parser.prototype.set=function(name,value){return this.scope.set(name,value),value},Parser.prototype.remove=function(name){this.scope.delete(name)},Parser.prototype.clear=function(){this.scope.clear()},Parser}),{isClass:!0}),parser_dependencies=["typed","Parser"],createParser=(0,factory.d5)("parser",parser_dependencies,(_ref=>{var{typed:typed,Parser:Parser}=_ref;return typed("parser",{"":function _(){return new Parser}})})),lup=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/decomposition/lup.js"),qr=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/decomposition/qr.js"),slu=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/decomposition/slu.js"),lusolve=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/solver/lusolve.js"),polynomialRoot=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/polynomialRoot.js"),Help_dependencies=["evaluate"],createHelpClass=(0,factory.d5)("Help",Help_dependencies,(_ref=>{var{evaluate:evaluate}=_ref;function Help(doc){if(!(this instanceof Help))throw new SyntaxError("Constructor must be called with the new operator");if(!doc)throw new Error('Argument "doc" missing');this.doc=doc}return Help.prototype.type="Help",Help.prototype.isHelp=!0,Help.prototype.toString=function(){var doc=this.doc||{},desc="\n";if(doc.name&&(desc+="Name: "+doc.name+"\n\n"),doc.category&&(desc+="Category: "+doc.category+"\n\n"),doc.description&&(desc+="Description:\n "+doc.description+"\n\n"),doc.syntax&&(desc+="Syntax:\n "+doc.syntax.join("\n ")+"\n\n"),doc.examples){desc+="Examples:\n";for(var configChanged=!1,originalConfig=evaluate("config()"),scope={config:newConfig=>(configChanged=!0,evaluate("config(newConfig)",{newConfig:newConfig}))},i=0;i"mathjs"!==prop)).forEach((prop=>{doc[prop]=json[prop]})),new Help(doc)},Help.prototype.valueOf=Help.prototype.toString,Help}),{isClass:!0}),Chain_dependencies=["?on","math","typed"],createChainClass=(0,factory.d5)("Chain",Chain_dependencies,(_ref=>{var{on:on,math:math,typed:typed}=_ref;function Chain(value){if(!(this instanceof Chain))throw new SyntaxError("Constructor must be called with the new operator");(0,is.qg)(value)?this.value=value.value:this.value=value}function createLazyProxy(name,resolver){(0,object.Vo)(Chain.prototype,name,(function outerResolver(){var fn=resolver();if("function"==typeof fn)return chainify(fn)}))}function chainify(fn){return function(){if(0===arguments.length)return new Chain(fn(this.value));for(var args=[this.value],i=0;iarg0[_name]))};for(var _name in arg0)_loop(_name)}};var excludedNames={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return Chain.createProxy(math),on&&on("import",(function(name,resolver,path){path||createLazyProxy(name,resolver)})),Chain}),{isClass:!0}),eDocs={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},piDocs={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},embeddedDocs={bignumber:{name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","complex","fraction","index","matrix","string","unit"]},boolean:{name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},complex:{name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},createUnit:{name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},fraction:{name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(matrix)","fraction(num,den)","fraction({n: num, d: den})"],description:"Create a fraction from a number or from integer numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)","fraction({n: 333, d: 53})","fraction([sqrt(9), sqrt(10), sqrt(11)])"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},index:{name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[1:2, 1:2] = 1","B = [1, 2, 3]","B[B>1 and B<3]"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},matrix:{name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},number:{name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","boolean","complex","fraction","index","matrix","string","unit"]},sparse:{name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},splitUnit:{name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},string:{name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},unit:{name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},e:eDocs,E:eDocs,false:{name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},i:{name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},Infinity:{name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},LN2:{name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},LN10:{name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},LOG2E:{name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},LOG10E:{name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},NaN:{name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},null:{name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},pi:piDocs,PI:piDocs,phi:{name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},SQRT1_2:{name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},SQRT2:{name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},tau:{name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},true:{name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},version:{name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:{name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},lsolve:{name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},lsolveAll:{name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},lup:{name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},lusolve:{name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},leafCount:{name:"leafCount",category:"Algebra",syntax:["leafCount(expr)"],description:"Computes the number of leaves in the parse tree of the given expression",examples:['leafCount("e^(i*pi)-1")','leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],seealso:["simplify"]},polynomialRoot:{name:"polynomialRoot",category:"Algebra",syntax:["x=polynomialRoot(-6, 3)","x=polynomialRoot(4, -4, 1)","x=polynomialRoot(-8, 12, -6, 1)"],description:"Finds the roots of a univariate polynomial given by its coefficients starting from constant, linear, and so on, increasing in degree.",examples:["a = polynomialRoot(-6, 11, -6, 1)"],seealso:["cbrt","sqrt"]},resolve:{name:"resolve",category:"Algebra",syntax:["resolve(node, scope)"],description:"Recursively substitute variables in an expression tree.",examples:['resolve(parse("1 + x"), { x: 7 })','resolve(parse("size(text)"), { text: "Hello World" })','resolve(parse("x + y"), { x: parse("3z") })','resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],seealso:["simplify","evaluate"],mayThrow:["ReferenceError"]},simplify:{name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["simplifyCore","derivative","evaluate","parse","rationalize","resolve"]},simplifyConstant:{name:"simplifyConstant",category:"Algebra",syntax:["simplifyConstant(expr)","simplifyConstant(expr, options)"],description:"Replace constant subexpressions of node with their values.",examples:['simplifyConstant("(3-3)*x")','simplifyConstant(parse("z-cos(tau/8)"))'],seealso:["simplify","simplifyCore","evaluate"]},simplifyCore:{name:"simplifyCore",category:"Algebra",syntax:["simplifyCore(node)"],description:"Perform simple one-pass simplifications on an expression tree.",examples:['simplifyCore(parse("0*x"))','simplifyCore(parse("(x+0)*2"))'],seealso:["simplify","simplifyConstant","evaluate"]},symbolicEqual:{name:"symbolicEqual",category:"Algebra",syntax:["symbolicEqual(expr1, expr2)","symbolicEqual(expr1, expr2, options)"],description:"Returns true if the difference of the expressions simplifies to 0",examples:['symbolicEqual("x*y","y*x")','symbolicEqual("abs(x^2)", "x^2")','symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],seealso:["simplify","evaluate"]},rationalize:{name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},slu:{name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},usolve:{name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},usolveAll:{name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},qr:{name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},abs:{name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},add:{name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},cbrt:{name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},ceil:{name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},cube:{name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},divide:{name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},dotDivide:{name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},dotMultiply:{name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},dotPow:{name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},exp:{name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},expm:{name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},expm1:{name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},fix:{name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},floor:{name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},gcd:{name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},hypot:{name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},lcm:{name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},log:{name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},log2:{name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},log1p:{name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},log10:{name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},mod:{name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},multiply:{name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},norm:{name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},nthRoot:{name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},nthRoots:{name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},pow:{name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)","pow([[1, 2], [4, 3]], 2)","pow([[1, 2], [4, 3]], -1)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},round:{name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)","round(unit, valuelessUnit)","round(unit, n, valuelessUnit)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)","round(3.241cm, 2, cm)","round([3.2, 3.8, -4.7])"],seealso:["ceil","floor","fix"]},sign:{name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},sqrt:{name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},sqrtm:{name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[33, 24], [48, 57]])"],seealso:["sqrt","abs","square","multiply"]},square:{name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},subtract:{name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},unaryMinus:{name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},unaryPlus:{name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},xgcd:{name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},invmod:{name:"invmod",category:"Arithmetic",syntax:["invmod(a, b)"],description:"Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)",examples:["invmod(8, 12)","invmod(7, 13)","invmod(15151, 15122)"],seealso:["gcd","xgcd"]},bitAnd:{name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitNot:{name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitOr:{name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},bitXor:{name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},leftShift:{name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},rightArithShift:{name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},rightLogShift:{name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},bellNumbers:{name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},catalan:{name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},composition:{name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},stirlingS2:{name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},config:{name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},import:{name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},typed:{name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number": f(x)=x+x, "string": f(x)=concat(x,x) })',"double(2)",'double("hello")'],seealso:[]},arg:{name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},conj:{name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},re:{name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},im:{name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},evaluate:{name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate(expression, scope)","evaluate([expr1, expr2, expr3, ...])","evaluate([expr1, expr2, expr3, ...], scope)"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(16)")','evaluate("2 inch to cm")','evaluate("sin(x * pi)", { "x": 1/2 })','evaluate(["width=2", "height=4","width*height"])'],seealso:[]},help:{name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},distance:{name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},intersect:{name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},and:{name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},not:{name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},or:{name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},xor:{name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},concat:{name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},count:{name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},cross:{name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},column:{name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},ctranspose:{name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},det:{name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diag:{name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diff:{name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["A = [1, 2, 4, 7, 0]","diff(A)","diff(A, 1)","B = [[1, 2], [3, 4]]","diff(B)","diff(B, 1)","diff(B, 2)","diff(B, bignumber(2))","diff([[1, 2], matrix([3, 4])], 2)"],seealso:["subtract","partitionSelect"]},dot:{name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},getMatrixDataType:{name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},identity:{name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},filter:{name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},flatten:{name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},forEach:{name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["numberOfPets = {}","addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;",'forEach(["Dog","Cat","Cat"], addPet)',"numberOfPets"],seealso:["map","sort","filter"]},inv:{name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},pinv:{name:"pinv",category:"Matrix",syntax:["pinv(x)"],description:"Calculate the Moore–Penrose inverse of a matrix",examples:["pinv([1, 2; 3, 4])","pinv([[1, 0], [0, 1], [0, 1]])","pinv(4)"],seealso:["inv"]},eigs:{name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and optionally eigenvectors of a square matrix",examples:["eigs([[5, 2.3], [2.3, 1]])","eigs([[1, 2, 3], [4, 5, 6], [7, 8, 9]], { precision: 1e-6, eigenvectors: false })"],seealso:["inv"]},kron:{name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},matrixFromFunction:{name:"matrixFromFunction",category:"Matrix",syntax:["matrixFromFunction(size, fn)","matrixFromFunction(size, fn, format)","matrixFromFunction(size, fn, format, datatype)","matrixFromFunction(size, format, fn)","matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},matrixFromRows:{name:"matrixFromRows",category:"Matrix",syntax:["matrixFromRows(...arr)","matrixFromRows(row1, row2)","matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},matrixFromColumns:{name:"matrixFromColumns",category:"Matrix",syntax:["matrixFromColumns(...arr)","matrixFromColumns(row1, row2)","matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},map:{name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},ones:{name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},partitionSelect:{name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1, compareText)',"arr = [5, 2, 1]","partitionSelect(arr, 0) # returns 1, arr is now: [1, 2, 5]","arr","partitionSelect(arr, 1, 'desc') # returns 2, arr is now: [5, 2, 1]","arr"],seealso:["sort"]},range:{name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"range(1m, 1m, 3m)","a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},resize:{name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},reshape:{name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])","reshape([1, 2, 3, 4], [-1, 2])"],seealso:["size","squeeze","resize"]},rotate:{name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},rotationMatrix:{name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},row:{name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},size:{name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},sort:{name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"], "natural")',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},squeeze:{name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},subset:{name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation `l:u`. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]","f[[1,2], [1,3]] = [9, 10; 11, 12]","f"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},trace:{name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},transpose:{name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},zeros:{name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},fft:{name:"fft",category:"Matrix",syntax:["fft(x)"],description:"Calculate N-dimensional fourier transform",examples:["fft([[1, 0], [1, 0]])"],seealso:["ifft"]},ifft:{name:"ifft",category:"Matrix",syntax:["ifft(x)"],description:"Calculate N-dimensional inverse fourier transform",examples:["ifft([[2, 2], [0, 0]])"],seealso:["fft"]},sylvester:{name:"sylvester",category:"Algebra",syntax:["sylvester(A,B,C)"],description:"Solves the real-valued Sylvester equation AX+XB=C for X",examples:["sylvester([[-1, -2], [1, 1]], [[-2, 1], [-1, 2]], [[-3, 2], [3, 0]])","A = [[-1, -2], [1, 1]]; B = [[2, -1], [1, -2]]; C = [[-3, 2], [3, 0]]","sylvester(A, B, C)"],seealso:["schur","lyap"]},schur:{name:"schur",category:"Algebra",syntax:["schur(A)"],description:"Performs a real Schur decomposition of the real matrix A = UTU'",examples:["schur([[1, 0], [-4, 3]])","A = [[1, 0], [-4, 3]]","schur(A)"],seealso:["lyap","sylvester"]},lyap:{name:"lyap",category:"Algebra",syntax:["lyap(A,Q)"],description:"Solves the Continuous-time Lyapunov equation AP+PA'+Q=0 for P",examples:["lyap([[-2, 0], [1, -4]], [[3, 1], [1, 3]])","A = [[-2, 0], [1, -4]]","Q = [[3, 1], [1, 3]]","lyap(A,Q)"],seealso:["schur","sylvester"]},solveODE:{name:"solveODE",category:"Numeric",syntax:["solveODE(func, tspan, y0)","solveODE(func, tspan, y0, options)"],description:"Numerical Integration of Ordinary Differential Equations.",examples:["f(t,y) = y","tspan = [0, 4]","solveODE(f, tspan, 1)","solveODE(f, tspan, [1, 2])",'solveODE(f, tspan, 1, { method:"RK23", maxStep:0.1 })'],seealso:["derivative","simplifyCore"]},combinations:{name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},combinationsWithRep:{name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},factorial:{name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},gamma:{name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},kldivergence:{name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},lgamma:{name:"lgamma",category:"Probability",syntax:["lgamma(n)"],description:"Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.",examples:["lgamma(4)","lgamma(1/2)","lgamma(i)","lgamma(complex(1.1, 2))"],seealso:["gamma"]},multinomial:{name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},permutations:{name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},pickRandom:{name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},random:{name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},randomInt:{name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},compare:{name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},compareNatural:{name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},compareText:{name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},deepEqual:{name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},equal:{name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},equalText:{name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},larger:{name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},largerEq:{name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},smaller:{name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},smallerEq:{name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},unequal:{name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},setCartesian:{name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},setDifference:{name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},setDistinct:{name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},setIntersect:{name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},setIsSubset:{name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},setMultiplicity:{name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},setPowerset:{name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},setSize:{name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},setSymDifference:{name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},setUnion:{name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},zpk2tf:{name:"zpk2tf",category:"Signal",syntax:["zpk2tf(z, p, k)"],description:"Compute the transfer function of a zero-pole-gain model.",examples:["zpk2tf([1, 2], [-1, -2], 1)","zpk2tf([1, 2], [-1, -2])","zpk2tf([1 - 3i, 2 + 2i], [-1, -2])"],seealso:[]},freqz:{name:"freqz",category:"Signal",syntax:["freqz(b, a)","freqz(b, a, w)"],description:"Calculates the frequency response of a filter given its numerator and denominator coefficients.",examples:["freqz([1, 2], [1, 2, 3])","freqz([1, 2], [1, 2, 3], [0, 1])","freqz([1, 2], [1, 2, 3], 512)"],seealso:[]},erf:{name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},zeta:{name:"zeta",category:"Special",syntax:["zeta(s)"],description:"Compute the Riemann Zeta Function using an infinite series and Riemanns Functional Equation for the entire complex plane",examples:["zeta(0.2)","zeta(-0.5)","zeta(4)"],seealso:[]},cumsum:{name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},mad:{name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},max:{name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dimension)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},mean:{name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dimension)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},median:{name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},min:{name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dimension)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},mode:{name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},prod:{name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},quantileSeq:{name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:"Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber. \n\nIn case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.",examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},std:{name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, dimension)","std(A, normalization)","std(A, dimension, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},sum:{name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)","sum(A, dimension)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},variance:{name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, dimension)","variance(A, normalization)","variance(A, dimension, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},corr:{name:"corr",category:"Statistics",syntax:["corr(A,B)"],description:"Compute the correlation coefficient of a two list with values, For matrices, the matrix correlation coefficient is calculated.",examples:["corr([2, 4, 6, 8],[1, 2, 3, 6])","corr(matrix([[1, 2.2, 3, 4.8, 5], [1, 2, 3, 4, 5]]), matrix([[4, 5.3, 6.6, 7, 8], [1, 2, 3, 4, 5]]))"],seealso:["max","mean","min","median","min","prod","std","sum"]},acos:{name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},acosh:{name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},acot:{name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},acoth:{name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},acsc:{name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},acsch:{name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},asec:{name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},asech:{name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},asin:{name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},asinh:{name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},atan:{name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},atanh:{name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},atan2:{name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},cos:{name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},cosh:{name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},cot:{name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},coth:{name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},csc:{name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},csch:{name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},sec:{name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},sech:{name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},sin:{name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},sinh:{name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},tan:{name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},tanh:{name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},to:{name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},clone:{name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},format:{name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},bin:{name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},oct:{name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},hex:{name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},isNaN:{name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isInteger:{name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isNegative:{name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},isNumeric:{name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},hasNumericValue:{name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},isPositive:{name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isPrime:{name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isZero:{name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},print:{name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $1, $2, $3", [6, 9, 4])'],seealso:["format"]},typeOf:{name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},numeric:{name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "BigNumber")','numeric("4", "Fraction")','numeric(4, "Fraction")','numeric(fraction(2, 5), "number")'],seealso:["number","fraction","bignumber","string","format"]}},help_dependencies=["typed","mathWithTransform","Help"],createHelp=(0,factory.d5)("help",help_dependencies,(_ref=>{var{typed:typed,mathWithTransform:mathWithTransform,Help:Help}=_ref;return typed("help",{any:function any(search){var prop,searchName=search;if("string"!=typeof search)for(prop in mathWithTransform)if((0,object.nr)(mathWithTransform,prop)&&search===mathWithTransform[prop]){searchName=prop;break}var doc=(0,customs.YF)(embeddedDocs,searchName);if(!doc){var searchText="function"==typeof searchName?searchName.name:searchName;throw new Error('No documentation found on "'+searchText+'"')}return new Help(doc)}})})),chain_dependencies=["typed","Chain"],createChain=(0,factory.d5)("chain",chain_dependencies,(_ref=>{var{typed:typed,Chain:Chain}=_ref;return typed("chain",{"":function _(){return new Chain},any:function any(value){return new Chain(value)}})})),det=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/det.js"),inv=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/inv.js"),pinv=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/pinv.js"),eigs=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/eigs.js"),expm=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/expm.js"),sqrtm=__webpack_require__("./node_modules/mathjs/lib/esm/function/matrix/sqrtm.js"),sylvester=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/sylvester.js"),schur=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/decomposition/schur.js"),lyap=__webpack_require__("./node_modules/mathjs/lib/esm/function/algebra/lyap.js"),divide=__webpack_require__("./node_modules/mathjs/lib/esm/function/arithmetic/divide.js"),distance=__webpack_require__("./node_modules/mathjs/lib/esm/function/geometry/distance.js"),intersect=__webpack_require__("./node_modules/mathjs/lib/esm/function/geometry/intersect.js"),statistics_sum=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/sum.js"),statistics_cumsum=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/cumsum.js"),statistics_mean=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/mean.js"),median=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/median.js"),mad=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/mad.js"),statistics_variance=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/variance.js"),statistics_quantileSeq=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/quantileSeq.js"),statistics_std=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/std.js"),corr=__webpack_require__("./node_modules/mathjs/lib/esm/function/statistics/corr.js"),combinations=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/combinations.js"),combinationsWithRep=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/combinationsWithRep.js"),gamma=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/gamma.js"),lgamma=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/lgamma.js"),factorial=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/factorial.js"),kldivergence=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/kldivergence.js"),multinomial=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/multinomial.js"),permutations=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/permutations.js"),pickRandom=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/pickRandom.js"),random=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/random.js"),randomInt=__webpack_require__("./node_modules/mathjs/lib/esm/function/probability/randomInt.js"),stirlingS2=__webpack_require__("./node_modules/mathjs/lib/esm/function/combinatorics/stirlingS2.js"),bellNumbers=__webpack_require__("./node_modules/mathjs/lib/esm/function/combinatorics/bellNumbers.js"),catalan=__webpack_require__("./node_modules/mathjs/lib/esm/function/combinatorics/catalan.js"),composition=__webpack_require__("./node_modules/mathjs/lib/esm/function/combinatorics/composition.js"),leafCount_dependencies=["parse","typed"],createLeafCount=(0,factory.d5)("leafCount",leafCount_dependencies,(_ref=>{var{parse:parse,typed:typed}=_ref;function countLeaves(node){var count=0;return node.forEach((n=>{count+=countLeaves(n)})),count||1}return typed("leafCount",{Node:function Node(expr){return countLeaves(expr)}})}));function isNumericNode(x){return(0,is.nu)(x)||(0,is.bV)(x)&&x.isUnary()&&(0,is.nu)(x.args[0])}function isConstantExpression(x){return!!(0,is.nu)(x)||(!(!(0,is.VO)(x)&&!(0,is.bV)(x)||!x.args.every(isConstantExpression))||!(!(0,is.Ig)(x)||!isConstantExpression(x.content)))}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r{var{FunctionNode:FunctionNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode}=_ref,T=!0,F=!1,defaultName="defaultF",defaultContext={add:{trivial:T,total:T,commutative:T,associative:T},unaryPlus:{trivial:T,total:T,commutative:T,associative:T},subtract:{trivial:F,total:T,commutative:F,associative:F},multiply:{trivial:T,total:T,commutative:T,associative:T},divide:{trivial:F,total:T,commutative:F,associative:F},paren:{trivial:T,total:T,commutative:T,associative:F},defaultF:{trivial:F,total:T,commutative:F,associative:F}};function hasProperty(nodeOrName,property){var context=arguments.length>2&&void 0!==arguments[2]?arguments[2]:defaultContext,name=defaultName;if("string"==typeof nodeOrName?name=nodeOrName:(0,is.bV)(nodeOrName)?name=nodeOrName.fn.toString():(0,is.VO)(nodeOrName)?name=nodeOrName.name:(0,is.Ig)(nodeOrName)&&(name="paren"),(0,object.nr)(context,name)){var properties=context[name];if((0,object.nr)(properties,property))return properties[property];if((0,object.nr)(defaultContext,name))return defaultContext[name][property]}if((0,object.nr)(context,defaultName)){var _properties=context[defaultName];return(0,object.nr)(_properties,property)?_properties[property]:defaultContext[defaultName][property]}if((0,object.nr)(defaultContext,name)){var _properties2=defaultContext[name];if((0,object.nr)(_properties2,property))return _properties2[property]}return defaultContext[defaultName][property]}function isAssociative(node){return hasProperty(node,"associative",arguments.length>1&&void 0!==arguments[1]?arguments[1]:defaultContext)}function allChildren(node,context){var op,children=[];return isAssociative(node,context)?(op=node.op,function findChildren(node){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:defaultContext)},isAssociative:isAssociative,mergeContext:function mergeContext(primary,secondary){var merged=_objectSpread({},primary);for(var prop in secondary)(0,object.nr)(primary,prop)?merged[prop]=_objectSpread(_objectSpread({},secondary[prop]),primary[prop]):merged[prop]=secondary[prop];return merged},flatten:function flatten(node,context){if(!node.args||0===node.args.length)return node;node.args=allChildren(node,context);for(var i=0;i2&&isAssociative(node,context)){for(var curnode=node.args.pop();node.args.length>0;)curnode=makeNode([node.args.pop(),curnode]);node.args=curnode.args}}},unflattenl:function unflattenl(node,context){if(node.args&&0!==node.args.length){for(var makeNode=createMakeNodeFunction(node),l=node.args.length,i=0;i2&&isAssociative(node,context)){for(var curnode=node.args.shift();node.args.length>0;)curnode=makeNode([curnode,node.args.shift()]);node.args=curnode.args}}},defaultContext:defaultContext,realContext:{divide:{total:F},log:{total:F}},positiveContext:{subtract:{total:F},abs:{trivial:T},log:{total:T}}}})),simplify_dependencies=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","resolve","simplifyConstant","simplifyCore","?fraction","?bignumber","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],createSimplify=(0,factory.d5)("simplify",simplify_dependencies,(_ref=>{var{config:config,typed:typed,parse:parse,add:add,subtract:subtract,multiply:multiply,divide:divide,pow:pow,isZero:isZero,equal:equal,resolve:resolve,simplifyConstant:simplifyConstant,simplifyCore:simplifyCore,fraction:fraction,bignumber:bignumber,mathWithTransform:mathWithTransform,matrix:matrix,AccessorNode:AccessorNode,ArrayNode:ArrayNode,ConstantNode:ConstantNode,FunctionNode:FunctionNode,IndexNode:IndexNode,ObjectNode:ObjectNode,OperatorNode:OperatorNode,ParenthesisNode:ParenthesisNode,SymbolNode:SymbolNode}=_ref,{hasProperty:hasProperty,isCommutative:isCommutative,isAssociative:isAssociative,mergeContext:mergeContext,flatten:flatten,unflattenr:unflattenr,unflattenl:unflattenl,createMakeNodeFunction:createMakeNodeFunction,defaultContext:defaultContext,realContext:realContext,positiveContext:positiveContext}=createUtil({FunctionNode:FunctionNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode});typed.addConversion({from:"Object",to:"Map",convert:utils_map.df});var simplify=typed("simplify",{Node:_simplify,"Node, Map":(expr,scope)=>_simplify(expr,!1,scope),"Node, Map, Object":(expr,scope,options)=>_simplify(expr,!1,scope,options),"Node, Array":_simplify,"Node, Array, Map":_simplify,"Node, Array, Map, Object":_simplify});function removeParens(node){return node.transform((function(node,path,parent){return(0,is.Ig)(node)?removeParens(node.content):node}))}typed.removeConversion({from:"Object",to:"Map",convert:utils_map.df}),simplify.defaultContext=defaultContext,simplify.realContext=realContext,simplify.positiveContext=positiveContext;var SUPPORTED_CONSTANTS={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};function _canonicalizeRule(ruleObject,context){var newRule={};if(ruleObject.s){var lr=ruleObject.s.split("->");if(2!==lr.length)throw SyntaxError("Could not parse rule: "+ruleObject.s);newRule.l=lr[0],newRule.r=lr[1]}else newRule.l=ruleObject.l,newRule.r=ruleObject.r;for(var prop of(newRule.l=removeParens(parse(newRule.l)),newRule.r=removeParens(parse(newRule.r)),["imposeContext","repeat","assuming"]))prop in ruleObject&&(newRule[prop]=ruleObject[prop]);if(ruleObject.evaluate&&(newRule.evaluate=parse(ruleObject.evaluate)),isAssociative(newRule.l,context)){var leftExpandsym,nonCommutative=!isCommutative(newRule.l,context);nonCommutative&&(leftExpandsym=_getExpandPlaceholderSymbol());var makeNode=createMakeNodeFunction(newRule.l),expandsym=_getExpandPlaceholderSymbol();newRule.expanded={},newRule.expanded.l=makeNode([newRule.l,expandsym]),flatten(newRule.expanded.l,context),unflattenr(newRule.expanded.l,context),newRule.expanded.r=makeNode([newRule.r,expandsym]),nonCommutative&&(newRule.expandedNC1={},newRule.expandedNC1.l=makeNode([leftExpandsym,newRule.l]),newRule.expandedNC1.r=makeNode([leftExpandsym,newRule.r]),newRule.expandedNC2={},newRule.expandedNC2.l=makeNode([leftExpandsym,newRule.expanded.l]),newRule.expandedNC2.r=makeNode([leftExpandsym,newRule.expanded.r]))}return newRule}simplify.rules=[simplifyCore,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(cl*v) -> v * (-cl)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(cl*v) -> (-cl) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*cl) -> v * (-cl)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" vd * ( vd * n1 + n2)",r:"vd^2 * n1 + vd * n2"},{s:" vd * (vd^n4 * n1 + n2) -> vd^(1+n4) * n1 + vd * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * ( vd * n1 + n2) -> vd^(n3+1) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * (vd^n4 * n1 + n2) -> vd^(n3+n4) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},simplifyConstant,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"vd*n + vd",r:"vd*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 + n3 * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*vd + vd -> (n+1)*vd",assuming:{multiply:{commutative:!1}}},{s:"vd + n*vd -> (1+n)*vd",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n^n1 * n -> n^(n1+1)",assuming:{divide:{total:!0},multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*cd + cd",r:"(n+1)*cd"},{s:"cd*n + cd -> cd*(n+1)",assuming:{multiply:{commutative:!1}}},{s:"cd + cd*n -> cd*(1+n)",assuming:{multiply:{commutative:!1}}},simplifyConstant,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"ce+ve -> ve+ce",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"vd*cd -> cd*vd",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{l:"n+-(n1)",r:"n-(n1)"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];var _lastsym=0;function _getExpandPlaceholderSymbol(){return new SymbolNode("_p"+_lastsym++)}function _simplify(expr,rules){var scope=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,utils_map.dg)(),options=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},debug=options.consoleDebug;rules=function _buildRules(rules,context){for(var ruleSet=[],i=0;i ").concat(rules[i].r.toString()))),debug){var newstr=res.toString({parenthesis:"all"});newstr!==laststr&&(console.log("Applying",rulestr,"produced",newstr),laststr=newstr)}unflattenl(res,options.context)}str=res.toString({parenthesis:"all"})}return res}function mapRule(nodes,rule,context){var resNodes=nodes;if(nodes)for(var i=0;i=2&&2===rule.args.length){for(var splits=function getSplits(node,context){var right,rightArgs,res=[],makeNode=createMakeNodeFunction(node);if(isCommutative(node,context))for(var i=0;i1&&(left=makeNode(node.args.slice(0,_i))),right=1===(rightArgs=node.args.slice(_i)).length?rightArgs[0]:makeNode(rightArgs),res.push(makeNode([left,right]))}return res}(node,context),splitMatches=[],_i2=0;_i22)throw Error("Unexpected non-binary associative function: "+rule.toString());return[]}for(var childMatches=[],i=0;i2)throw new Error("permuting >2 commutative non-associative rule arguments not yet implemented");var leftMatch=_ruleMatch(rule.args[0],node.args[1],context);if(0===leftMatch.length)return[];var rightMatch=_ruleMatch(rule.args[1],node.args[0],context);if(0===rightMatch.length)return[];childMatches=[leftMatch,rightMatch]}res=function mergeChildMatches(childMatches){if(0===childMatches.length)return childMatches;for(var sets=childMatches.reduce(combineChildMatches),uniqueSets=[],unique={},i=0;i="a"&&rule.name[1]<="z"?rule.name.substring(0,2):rule.name[0]){case"n":case"_p":res[0].placeholders[rule.name]=node;break;case"c":case"cl":if(!(0,is.nu)(node))return[];res[0].placeholders[rule.name]=node;break;case"v":if((0,is.nu)(node))return[];res[0].placeholders[rule.name]=node;break;case"vl":if(!(0,is.FG)(node))return[];res[0].placeholders[rule.name]=node;break;case"cd":if(!isNumericNode(node))return[];res[0].placeholders[rule.name]=node;break;case"vd":if(isNumericNode(node))return[];res[0].placeholders[rule.name]=node;break;case"ce":if(!isConstantExpression(node))return[];res[0].placeholders[rule.name]=node;break;case"ve":if(isConstantExpression(node))return[];res[0].placeholders[rule.name]=node;break;default:throw new Error("Invalid symbol in rule: "+rule.name)}}else{if(!(rule instanceof ConstantNode))return[];if(!equal(rule.value,node.value))return[]}return res}function _exactMatch(p,q){if(p instanceof ConstantNode&&q instanceof ConstantNode){if(!equal(p.value,q.value))return!1}else if(p instanceof SymbolNode&&q instanceof SymbolNode){if(p.name!==q.name)return!1}else{if(!(p instanceof OperatorNode&&q instanceof OperatorNode||p instanceof FunctionNode&&q instanceof FunctionNode))return!1;if(p instanceof OperatorNode){if(p.op!==q.op||p.fn!==q.fn)return!1}else if(p instanceof FunctionNode&&p.name!==q.name)return!1;if(p.args.length!==q.args.length)return!1;for(var i=0;i{var{typed:typed,config:config,mathWithTransform:mathWithTransform,matrix:matrix,fraction:fraction,bignumber:bignumber,AccessorNode:AccessorNode,ArrayNode:ArrayNode,ConstantNode:ConstantNode,FunctionNode:FunctionNode,IndexNode:IndexNode,ObjectNode:ObjectNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode}=_ref,{isCommutative:isCommutative,isAssociative:isAssociative,allChildren:allChildren,createMakeNodeFunction:createMakeNodeFunction}=createUtil({FunctionNode:FunctionNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode}),simplifyConstant=typed("simplifyConstant",{Node:node=>_ensureNode(foldFraction(node,{})),"Node, Object":function NodeObject(expr,options){return _ensureNode(foldFraction(expr,options))}});function _removeFractions(thing){return(0,is.yQ)(thing)?thing.valueOf():thing instanceof Array?thing.map(_removeFractions):(0,is.SW)(thing)?matrix(_removeFractions(thing.valueOf())):thing}function _eval(fnname,args,options){try{return mathWithTransform[fnname].apply(null,args)}catch(ignore){return args=args.map(_removeFractions),_toNumber(mathWithTransform[fnname].apply(null,args),options)}}var _toNode=typed({Fraction:function _fractionToNode(f){var n,vn=f.s*f.n;n=vn<0?new OperatorNode("-","unaryMinus",[new ConstantNode(-vn)]):new ConstantNode(vn);if(1===f.d)return n;return new OperatorNode("/","divide",[n,new ConstantNode(f.d)])},number:function number(n){return n<0?unaryMinusNode(new ConstantNode(-n)):new ConstantNode(n)},BigNumber:function BigNumber(n){return n<0?unaryMinusNode(new ConstantNode(-n)):new ConstantNode(n)},Complex:function Complex(s){throw new Error("Cannot convert Complex number to Node")},string:function string(s){return new ConstantNode(s)},Matrix:function Matrix(m){return new ArrayNode(m.valueOf().map((e=>_toNode(e))))}});function _ensureNode(thing){return(0,is.UG)(thing)?thing:_toNode(thing)}function _exactFraction(n,options){if(options&&!1!==options.exactFractions&&isFinite(n)&&fraction){var f=fraction(n),fractionsLimit=options&&"number"==typeof options.fractionsLimit?options.fractionsLimit:1/0;if(f.valueOf()===n&&f.n{if(!(0,is.UG)(next)){var last=sofar.pop();if((0,is.UG)(last))return[last,next];try{return sofar.push(_eval(fn,[last,next],options)),sofar}catch(ignoreandcontinue){sofar.push(last)}}sofar.push(_ensureNode(sofar.pop()));var newtree=1===sofar.length?sofar[0]:makeNode(sofar);return[makeNode([newtree,_ensureNode(next)])]}),[first]);return 1===reduction.length?reduction[0]:makeNode([reduction[0],_toNode(reduction[1])])}function foldFraction(node,options){switch(node.type){case"SymbolNode":return node;case"ConstantNode":switch(typeof node.value){case"number":return _toNumber(node.value,options);case"string":return node.value;default:if(!isNaN(node.value))return _toNumber(node.value,options)}return node;case"FunctionNode":if(mathWithTransform[node.name]&&mathWithTransform[node.name].rawArgs)return node;if(-1===["add","multiply"].indexOf(node.name)){var args=node.args.map((arg=>foldFraction(arg,options)));if(!args.some(is.UG))try{return _eval(node.name,args,options)}catch(ignoreandcontinue){}if("size"===node.name&&1===args.length&&(0,is.j0)(args[0])){for(var sz=[],section=args[0];(0,is.j0)(section);)sz.push(section.items.length),section=section.items[0];return matrix(sz)}return new FunctionNode(node.name,args.map(_ensureNode))}case"OperatorNode":var _args,res,fn=node.fn.toString(),makeNode=createMakeNodeFunction(node);if((0,is.bV)(node)&&node.isUnary())_args=[foldFraction(node.args[0],options)],res=(0,is.UG)(_args[0])?makeNode(_args):_eval(fn,_args,options);else if(isAssociative(node,options.context))if(_args=(_args=allChildren(node,options.context)).map((arg=>foldFraction(arg,options))),isCommutative(fn,options.context)){for(var consts=[],vars=[],i=0;i<_args.length;i++)(0,is.UG)(_args[i])?vars.push(_args[i]):consts.push(_args[i]);consts.length>1?(res=foldOp(fn,consts,makeNode,options),vars.unshift(res),res=foldOp(fn,vars,makeNode,options)):res=foldOp(fn,_args,makeNode,options)}else res=foldOp(fn,_args,makeNode,options);else _args=node.args.map((arg=>foldFraction(arg,options))),res=foldOp(fn,_args,makeNode,options);return res;case"ParenthesisNode":return foldFraction(node.content,options);case"AccessorNode":return function _foldAccessor(obj,index,options){if(!(0,is.Cl)(index))return new AccessorNode(_ensureNode(obj),_ensureNode(index));if((0,is.j0)(obj)||(0,is.SW)(obj)){for(var remainingDims=Array.from(index.dimensions);remainingDims.length>0;)if((0,is.nu)(remainingDims[0])&&"string"!=typeof remainingDims[0].value){var first=_toNumber(remainingDims.shift().value,options);(0,is.j0)(obj)?obj=obj.items[first-1]:(obj=obj.valueOf()[first-1])instanceof Array&&(obj=matrix(obj))}else{if(!(remainingDims.length>1&&(0,is.nu)(remainingDims[1])&&"string"!=typeof remainingDims[1].value))break;var second=_toNumber(remainingDims[1].value,options),tryItems=[],fromItems=(0,is.j0)(obj)?obj.items:obj.valueOf();for(var item of fromItems)if((0,is.j0)(item))tryItems.push(item.items[second-1]);else{if(!(0,is.SW)(obj))break;tryItems.push(item[second-1])}if(tryItems.length!==fromItems.length)break;obj=(0,is.j0)(obj)?new ArrayNode(tryItems):matrix(tryItems),remainingDims.splice(1,1)}return remainingDims.length===index.dimensions.length?new AccessorNode(_ensureNode(obj),index):remainingDims.length>0?(index=new IndexNode(remainingDims),new AccessorNode(_ensureNode(obj),index)):obj}if((0,is.Lr)(obj)&&1===index.dimensions.length&&(0,is.nu)(index.dimensions[0])){var key=index.dimensions[0].value;return key in obj.properties?obj.properties[key]:new ConstantNode}return new AccessorNode(_ensureNode(obj),index)}(foldFraction(node.object,options),foldFraction(node.index,options),options);case"ArrayNode":var foldItems=node.items.map((item=>foldFraction(item,options)));return foldItems.some(is.UG)?new ArrayNode(foldItems.map(_ensureNode)):matrix(foldItems);case"IndexNode":return new IndexNode(node.dimensions.map((n=>simplifyConstant(n,options))));case"ObjectNode":var foldProps={};for(var prop in node.properties)foldProps[prop]=simplifyConstant(node.properties[prop],options);return new ObjectNode(foldProps);default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(node.type))}}return simplifyConstant})),simplifyCore_dependencies=["typed","parse","equal","isZero","add","subtract","multiply","divide","pow","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],createSimplifyCore=(0,factory.d5)("simplifyCore",simplifyCore_dependencies,(_ref=>{var{typed:typed,parse:parse,equal:equal,isZero:isZero,add:add,subtract:subtract,multiply:multiply,divide:divide,pow:pow,AccessorNode:AccessorNode,ArrayNode:ArrayNode,ConstantNode:ConstantNode,FunctionNode:FunctionNode,IndexNode:IndexNode,ObjectNode:ObjectNode,OperatorNode:OperatorNode,ParenthesisNode:ParenthesisNode,SymbolNode:SymbolNode}=_ref,node0=new ConstantNode(0),node1=new ConstantNode(1),nodeT=new ConstantNode(!0),nodeF=new ConstantNode(!1);function isAlwaysBoolean(node){return(0,is.bV)(node)&&["and","not","or"].includes(node.op)}var{hasProperty:hasProperty,isCommutative:isCommutative}=createUtil({FunctionNode:FunctionNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode});function _simplifyCore(nodeToSimplify){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},context=options?options.context:void 0;if(hasProperty(nodeToSimplify,"trivial",context)){if((0,is.VO)(nodeToSimplify)&&1===nodeToSimplify.args.length)return _simplifyCore(nodeToSimplify.args[0],options);var simpChild=!1,childCount=0;if(nodeToSimplify.forEach((c=>{1===++childCount&&(simpChild=_simplifyCore(c,options))})),1===childCount)return simpChild}var node=nodeToSimplify;if((0,is.VO)(node)){var op=function getOperator(fn){var identifier="OperatorNode:"+fn;for(var group of properties)if(identifier in group)return group[identifier].op;return null}(node.name);if(!op)return new FunctionNode(_simplifyCore(node.fn),node.args.map((n=>_simplifyCore(n,options))));if(node.args.length>2&&hasProperty(node,"associative",context))for(;node.args.length>2;){var last=node.args.pop(),seclast=node.args.pop();node.args.push(new OperatorNode(op,node.name,[last,seclast]))}node=new OperatorNode(op,node.name,node.args)}if((0,is.bV)(node)&&node.isUnary()){var a0=_simplifyCore(node.args[0],options);if("~"===node.op&&(0,is.bV)(a0)&&a0.isUnary()&&"~"===a0.op)return a0.args[0];if("not"===node.op&&(0,is.bV)(a0)&&a0.isUnary()&&"not"===a0.op&&isAlwaysBoolean(a0.args[0]))return a0.args[0];var finish=!0;if("-"===node.op&&(0,is.bV)(a0)&&(a0.isBinary()&&"subtract"===a0.fn&&(node=new OperatorNode("-","subtract",[a0.args[1],a0.args[0]]),finish=!1),a0.isUnary()&&"-"===a0.op))return a0.args[0];if(finish)return new OperatorNode(node.op,node.fn,[a0])}if((0,is.bV)(node)&&node.isBinary()){var _a=_simplifyCore(node.args[0],options),a1=_simplifyCore(node.args[1],options);if("+"===node.op){if((0,is.nu)(_a)&&isZero(_a.value))return a1;if((0,is.nu)(a1)&&isZero(a1.value))return _a;(0,is.bV)(a1)&&a1.isUnary()&&"-"===a1.op&&(a1=a1.args[0],node=new OperatorNode("-","subtract",[_a,a1]))}if("-"===node.op)return(0,is.bV)(a1)&&a1.isUnary()&&"-"===a1.op?_simplifyCore(new OperatorNode("+","add",[_a,a1.args[0]]),options):(0,is.nu)(_a)&&isZero(_a.value)?_simplifyCore(new OperatorNode("-","unaryMinus",[a1])):(0,is.nu)(a1)&&isZero(a1.value)?_a:new OperatorNode(node.op,node.fn,[_a,a1]);if("*"===node.op){if((0,is.nu)(_a)){if(isZero(_a.value))return node0;if(equal(_a.value,1))return a1}if((0,is.nu)(a1)){if(isZero(a1.value))return node0;if(equal(a1.value,1))return _a;if(isCommutative(node,context))return new OperatorNode(node.op,node.fn,[a1,_a],node.implicit)}return new OperatorNode(node.op,node.fn,[_a,a1],node.implicit)}if("/"===node.op)return(0,is.nu)(_a)&&isZero(_a.value)?node0:(0,is.nu)(a1)&&equal(a1.value,1)?_a:new OperatorNode(node.op,node.fn,[_a,a1]);if("^"===node.op&&(0,is.nu)(a1)){if(isZero(a1.value))return node1;if(equal(a1.value,1))return _a}if("and"===node.op){if((0,is.nu)(_a)){if(!_a.value)return nodeF;if(isAlwaysBoolean(a1))return a1;if((0,is.nu)(a1))return a1.value?nodeT:nodeF}if((0,is.nu)(a1)){if(!a1.value)return nodeF;if(isAlwaysBoolean(_a))return _a}}if("or"===node.op){if((0,is.nu)(_a)){if(_a.value)return nodeT;if(isAlwaysBoolean(a1))return a1}if((0,is.nu)(a1)){if(a1.value)return nodeT;if(isAlwaysBoolean(_a))return _a}}return new OperatorNode(node.op,node.fn,[_a,a1])}if((0,is.bV)(node))return new OperatorNode(node.op,node.fn,node.args.map((a=>_simplifyCore(a,options))));if((0,is.j0)(node))return new ArrayNode(node.items.map((n=>_simplifyCore(n,options))));if((0,is.Yz)(node))return new AccessorNode(_simplifyCore(node.object,options),_simplifyCore(node.index,options));if((0,is.Cl)(node))return new IndexNode(node.dimensions.map((n=>_simplifyCore(n,options))));if((0,is.Lr)(node)){var newProps={};for(var prop in node.properties)newProps[prop]=_simplifyCore(node.properties[prop],options);return new ObjectNode(newProps)}return node}return typed("simplifyCore",{Node:_simplifyCore,"Node,Object":_simplifyCore})})),resolve_dependencies=["typed","parse","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode"],createResolve=(0,factory.d5)("resolve",resolve_dependencies,(_ref=>{var{typed:typed,parse:parse,ConstantNode:ConstantNode,FunctionNode:FunctionNode,OperatorNode:OperatorNode,ParenthesisNode:ParenthesisNode}=_ref;function _resolve(node,scope){var within=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(!scope)return node;if((0,is.FG)(node)){if(within.has(node.name)){var variables=Array.from(within).join(", ");throw new ReferenceError("recursive loop of variable definitions among {".concat(variables,"}"))}var value=scope.get(node.name);if((0,is.UG)(value)){var nextWithin=new Set(within);return nextWithin.add(node.name),_resolve(value,scope,nextWithin)}return"number"==typeof value?parse(String(value)):void 0!==value?new ConstantNode(value):node}if((0,is.bV)(node)){var args=node.args.map((function(arg){return _resolve(arg,scope,within)}));return new OperatorNode(node.op,node.fn,args,node.implicit)}if((0,is.Ig)(node))return new ParenthesisNode(_resolve(node.content,scope,within));if((0,is.VO)(node)){var _args=node.args.map((function(arg){return _resolve(arg,scope,within)}));return new FunctionNode(node.name,_args)}return node.map((child=>_resolve(child,scope,within)))}return typed("resolve",{Node:_resolve,"Node, Map | null | undefined":_resolve,"Node, Object":(n,scope)=>_resolve(n,(0,utils_map.df)(scope)),"Array | Matrix":typed.referToSelf((self=>A=>A.map((n=>self(n))))),"Array | Matrix, null | undefined":typed.referToSelf((self=>A=>A.map((n=>self(n))))),"Array, Object":typed.referTo("Array,Map",(selfAM=>(A,scope)=>selfAM(A,(0,utils_map.df)(scope)))),"Matrix, Object":typed.referTo("Matrix,Map",(selfMM=>(A,scope)=>selfMM(A,(0,utils_map.df)(scope)))),"Array | Matrix, Map":typed.referToSelf((self=>(A,scope)=>A.map((n=>self(n,scope)))))})})),symbolicEqual_dependencies=["parse","simplify","typed","OperatorNode"],createSymbolicEqual=(0,factory.d5)("symbolicEqual",symbolicEqual_dependencies,(_ref=>{var{parse:parse,simplify:simplify,typed:typed,OperatorNode:OperatorNode}=_ref;function _symbolicEqual(e1,e2){var options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},diff=new OperatorNode("-","subtract",[e1,e2]),simplified=simplify(diff,{},options);return(0,is.nu)(simplified)&&!simplified.value}return typed("symbolicEqual",{"Node, Node":_symbolicEqual,"Node, Node, Object":_symbolicEqual})})),derivative_dependencies=["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],createDerivative=(0,factory.d5)("derivative",derivative_dependencies,(_ref=>{var{typed:typed,config:config,parse:parse,simplify:simplify,equal:equal,isZero:isZero,numeric:numeric,ConstantNode:ConstantNode,FunctionNode:FunctionNode,OperatorNode:OperatorNode,ParenthesisNode:ParenthesisNode,SymbolNode:SymbolNode}=_ref;function plainDerivative(expr,variable){var options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{simplify:!0},constNodes={};constTag(constNodes,expr,variable.name);var res=_derivative(expr,constNodes);return options.simplify?simplify(res):res}typed.addConversion({from:"identifier",to:"SymbolNode",convert:parse});var derivative=typed("derivative",{"Node, SymbolNode":plainDerivative,"Node, SymbolNode, Object":plainDerivative});typed.removeConversion({from:"identifier",to:"SymbolNode",convert:parse}),derivative._simplify=!0,derivative.toTex=function(deriv){return _derivTex.apply(null,deriv.args)};var _derivTex=typed("_derivTex",{"Node, SymbolNode":function NodeSymbolNode(expr,x){return(0,is.nu)(expr)&&"string"===(0,is.kM)(expr.value)?_derivTex(parse(expr.value).toString(),x.toString(),1):_derivTex(expr.toTex(),x.toString(),1)},"Node, ConstantNode":function NodeConstantNode(expr,x){if("string"===(0,is.kM)(x.value))return _derivTex(expr,parse(x.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function NodeSymbolNodeConstantNode(expr,x,order){return _derivTex(expr.toString(),x.name,order.value)},"string, string, number":function stringStringNumber(expr,x,order){return(1===order?"{d\\over d"+x+"}":"{d^{"+order+"}\\over d"+x+"^{"+order+"}}")+"\\left[".concat(expr,"\\right]")}}),constTag=typed("constTag",{"Object, ConstantNode, string":function ObjectConstantNodeString(constNodes,node){return constNodes[node]=!0,!0},"Object, SymbolNode, string":function ObjectSymbolNodeString(constNodes,node,varName){return node.name!==varName&&(constNodes[node]=!0,!0)},"Object, ParenthesisNode, string":function ObjectParenthesisNodeString(constNodes,node,varName){return constTag(constNodes,node.content,varName)},"Object, FunctionAssignmentNode, string":function ObjectFunctionAssignmentNodeString(constNodes,node,varName){return-1===node.params.indexOf(varName)?(constNodes[node]=!0,!0):constTag(constNodes,node.expr,varName)},"Object, FunctionNode | OperatorNode, string":function ObjectFunctionNodeOperatorNodeString(constNodes,node,varName){if(node.args.length>0){for(var isConst=constTag(constNodes,node.args[0],varName),i=1;i0){var nonConstantTerms=node.args.filter((function(arg){return void 0===constNodes[arg]})),nonConstantNode=1===nonConstantTerms.length?nonConstantTerms[0]:new OperatorNode("*","multiply",nonConstantTerms),newArgs=constantTerms.concat(_derivative(nonConstantNode,constNodes));return new OperatorNode("*","multiply",newArgs)}return new OperatorNode("+","add",node.args.map((function(argOuter){return new OperatorNode("*","multiply",node.args.map((function(argInner){return argInner===argOuter?_derivative(argInner,constNodes):argInner.clone()})))})))}if("/"===node.op&&node.isBinary()){var arg0=node.args[0],arg1=node.args[1];return void 0!==constNodes[arg1]?new OperatorNode("/","divide",[_derivative(arg0,constNodes),arg1]):void 0!==constNodes[arg0]?new OperatorNode("*","multiply",[new OperatorNode("-","unaryMinus",[arg0]),new OperatorNode("/","divide",[_derivative(arg1,constNodes),new OperatorNode("^","pow",[arg1.clone(),createConstantNode(2)])])]):new OperatorNode("/","divide",[new OperatorNode("-","subtract",[new OperatorNode("*","multiply",[_derivative(arg0,constNodes),arg1.clone()]),new OperatorNode("*","multiply",[arg0.clone(),_derivative(arg1,constNodes)])]),new OperatorNode("^","pow",[arg1.clone(),createConstantNode(2)])])}if("^"===node.op&&node.isBinary()){var _arg=node.args[0],_arg2=node.args[1];if(void 0!==constNodes[_arg])return(0,is.nu)(_arg)&&(isZero(_arg.value)||equal(_arg.value,1))?createConstantNode(0):new OperatorNode("*","multiply",[node,new OperatorNode("*","multiply",[new FunctionNode("log",[_arg.clone()]),_derivative(_arg2.clone(),constNodes)])]);if(void 0!==constNodes[_arg2]){if((0,is.nu)(_arg2)){if(isZero(_arg2.value))return createConstantNode(0);if(equal(_arg2.value,1))return _derivative(_arg,constNodes)}var powMinusOne=new OperatorNode("^","pow",[_arg.clone(),new OperatorNode("-","subtract",[_arg2,createConstantNode(1)])]);return new OperatorNode("*","multiply",[_arg2.clone(),new OperatorNode("*","multiply",[_derivative(_arg,constNodes),powMinusOne])])}return new OperatorNode("*","multiply",[new OperatorNode("^","pow",[_arg.clone(),_arg2.clone()]),new OperatorNode("+","add",[new OperatorNode("*","multiply",[_derivative(_arg,constNodes),new OperatorNode("/","divide",[_arg2.clone(),_arg.clone()])]),new OperatorNode("*","multiply",[_derivative(_arg2,constNodes),new FunctionNode("log",[_arg.clone()])])])])}throw new Error('Cannot process operator "'+node.op+'" in derivative: the operator is not supported, undefined, or the number of arguments passed to it are not supported')}});function createConstantNode(value,valueType){return new ConstantNode(numeric(value,valueType||config.number))}return derivative})),utils_number=__webpack_require__("./node_modules/mathjs/lib/esm/utils/number.js"),rationalize_dependencies=["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplifyConstant","simplifyCore","simplify","?bignumber","?fraction","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode","ParenthesisNode"],createRationalize=(0,factory.d5)("rationalize",rationalize_dependencies,(_ref=>{var{config:config,typed:typed,equal:equal,isZero:isZero,add:add,subtract:subtract,multiply:multiply,divide:divide,pow:pow,parse:parse,simplifyConstant:simplifyConstant,simplifyCore:simplifyCore,simplify:simplify,fraction:fraction,bignumber:bignumber,mathWithTransform:mathWithTransform,matrix:matrix,AccessorNode:AccessorNode,ArrayNode:ArrayNode,ConstantNode:ConstantNode,FunctionNode:FunctionNode,IndexNode:IndexNode,ObjectNode:ObjectNode,OperatorNode:OperatorNode,SymbolNode:SymbolNode,ParenthesisNode:ParenthesisNode}=_ref;function _rationalize(expr){var scope=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},detailed=arguments.length>2&&void 0!==arguments[2]&&arguments[2],setRules=function rulesRationalize(){var oldRules=[simplifyCore,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},simplifyConstant,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}],rulesFirst=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],rulesDistrDiv=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],rulesSucDiv=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],setRules={};return setRules.firstRules=oldRules.concat(rulesFirst,rulesSucDiv),setRules.distrDivRules=rulesDistrDiv,setRules.sucDivRules=rulesSucDiv,setRules.firstRulesAgain=oldRules.concat(rulesFirst),setRules.finalRules=[simplifyCore,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},simplifyConstant,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],setRules}(),polyRet=function polynomial(expr,scope,extended,rules){var variables=[],node=simplify(expr,rules,scope,{exactFractions:!1}),oper="+-*"+((extended=!!extended)?"/":"");recPoly(node);var retFunc={};return retFunc.expression=node,retFunc.variables=variables,retFunc;function recPoly(node){var tp=node.type;if("FunctionNode"===tp)throw new Error("There is an unsolved function call");if("OperatorNode"===tp)if("^"===node.op){if("ConstantNode"!==node.args[1].type||!(0,utils_number.U)(parseFloat(node.args[1].value)))throw new Error("There is a non-integer exponent");recPoly(node.args[0])}else{if(-1===oper.indexOf(node.op))throw new Error("Operator "+node.op+" invalid in polynomial expression");for(var i=0;i=1){var sBefore,rules;expr=expandPower(expr);var s,eDistrDiv=!0,redoInic=!1;for(expr=simplify(expr,setRules.firstRules,{},noExactFractions);rules=eDistrDiv?setRules.distrDivRules:setRules.sucDivRules,eDistrDiv=!eDistrDiv,(s=(expr=simplify(expr,rules,{},withExactFractions)).toString())!==sBefore;)redoInic=!0,sBefore=s;redoInic&&(expr=simplify(expr,setRules.firstRulesAgain,{},noExactFractions)),expr=simplify(expr,setRules.finalRules,{},noExactFractions)}var coefficients=[],retRationalize={};return"OperatorNode"===expr.type&&expr.isBinary()&&"/"===expr.op?(1===nVars&&(expr.args[0]=polyToCanonical(expr.args[0],coefficients),expr.args[1]=polyToCanonical(expr.args[1])),detailed&&(retRationalize.numerator=expr.args[0],retRationalize.denominator=expr.args[1])):(1===nVars&&(expr=polyToCanonical(expr,coefficients)),detailed&&(retRationalize.numerator=expr,retRationalize.denominator=null)),detailed?(retRationalize.coefficients=coefficients,retRationalize.variables=polyRet.variables,retRationalize.expression=expr,retRationalize):expr}return typed("rationalize",{Node:_rationalize,"Node, boolean":(expr,detailed)=>_rationalize(expr,{},detailed),"Node, Object":_rationalize,"Node, Object, boolean":_rationalize});function expandPower(node,parent,indParent){var tp=node.type,internal=arguments.length>1;if("OperatorNode"===tp&&node.isBinary()){var val,does=!1;if("^"===node.op&&("ParenthesisNode"!==node.args[0].type&&"OperatorNode"!==node.args[0].type||"ConstantNode"!==node.args[1].type||(does=(val=parseFloat(node.args[1].value))>=2&&(0,utils_number.U)(val))),does){if(val>2){var nEsqTopo=node.args[0],nDirTopo=new OperatorNode("^","pow",[node.args[0].cloneDeep(),new ConstantNode(val-1)]);node=new OperatorNode("*","multiply",[nEsqTopo,nDirTopo])}else node=new OperatorNode("*","multiply",[node.args[0],node.args[0].cloneDeep()]);internal&&("content"===indParent?parent.content=node:parent.args[indParent]=node)}}if("ParenthesisNode"===tp)expandPower(node.content,node,"content");else if("ConstantNode"!==tp&&"SymbolNode"!==tp)for(var i=0;imaxExpo&&(coefficients[valor]=0),coefficients[valor]+=o.cte*("+"===o.oper?1:-1),void(maxExpo=Math.max(valor,maxExpo))}o.cte=valor,""===o.fire&&(coefficients[0]+=o.cte*("+"===o.oper?1:-1))}}(node,null,o);for(var no,first=!0,i=maxExpo=coefficients.length-1;i>=0;i--)if(0!==coefficients[i]){var n1=new ConstantNode(first?coefficients[i]:Math.abs(coefficients[i])),op=coefficients[i]<0?"-":"+";if(i>0){var n2=new SymbolNode(varname);if(i>1){var n3=new ConstantNode(i);n2=new OperatorNode("^","pow",[n2,n3])}n1=-1===coefficients[i]&&first?new OperatorNode("-","unaryMinus",[n2]):1===Math.abs(coefficients[i])?n2:new OperatorNode("*","multiply",[n1,n2])}no=first?n1:"+"===op?new OperatorNode("+","add",[no,n1]):new OperatorNode("-","subtract",[no,n1]),first=!1}return first?new ConstantNode(0):no}})),zpk2tf=__webpack_require__("./node_modules/mathjs/lib/esm/function/signal/zpk2tf.js"),freqz=__webpack_require__("./node_modules/mathjs/lib/esm/function/signal/freqz.js"),reviver_dependencies=["classes"],createReviver=(0,factory.d5)("reviver",reviver_dependencies,(_ref=>{var{classes:classes}=_ref;return function reviver(key,value){var constructor=classes[value&&value.mathjs];return constructor&&"function"==typeof constructor.fromJSON?constructor.fromJSON(value):value}})),replacer=__webpack_require__("./node_modules/mathjs/lib/esm/json/replacer.js"),constants=__webpack_require__("./node_modules/mathjs/lib/esm/constants.js"),physicalConstants=__webpack_require__("./node_modules/mathjs/lib/esm/type/unit/physicalConstants.js"),apply_transform_dependencies=["typed","isInteger"],createApplyTransform=(0,factory.d5)("apply",apply_transform_dependencies,(_ref=>{var{typed:typed,isInteger:isInteger}=_ref,apply=(0,matrix_apply.j)({typed:typed,isInteger:isInteger});return typed("apply",{"...any":function any(args){var dim=args[1];(0,is.hj)(dim)?args[1]=dim-1:(0,is.l9)(dim)&&(args[1]=dim.minus(1));try{return apply.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),column_transform_dependencies=["typed","Index","matrix","range"],createColumnTransform=(0,factory.d5)("column",column_transform_dependencies,(_ref=>{var{typed:typed,Index:Index,matrix:matrix,range:range}=_ref,column=(0,matrix_column.w)({typed:typed,Index:Index,matrix:matrix,range:range});return typed("column",{"...any":function any(args){var lastIndex=args.length-1,last=args[lastIndex];(0,is.hj)(last)&&(args[lastIndex]=last-1);try{return column.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),applyCallback=__webpack_require__("./node_modules/mathjs/lib/esm/utils/applyCallback.js");function compileInlineExpression(expression,math,scope){var symbol=expression.filter((function(node){return(0,is.FG)(node)&&!(node.name in math)&&!scope.has(node.name)}))[0];if(!symbol)throw new Error('No undefined variable found in inline expression "'+expression+'"');var name=symbol.name,argsScope=new Map,subScope=new utils_map.A3(scope,argsScope,new Set([name])),eq=expression.compile();return function inlineExpression(x){return argsScope.set(name,x),eq.evaluate(subScope)}}var filter_transform_dependencies=["typed"],createFilterTransform=(0,factory.d5)("filter",filter_transform_dependencies,(_ref=>{var{typed:typed}=_ref;function filterTransform(args,math,scope){var x,callback;return args[0]&&(x=args[0].compile().evaluate(scope)),args[1]&&(callback=(0,is.FG)(args[1])||(0,is.l7)(args[1])?args[1].compile().evaluate(scope):compileInlineExpression(args[1],math,scope)),filter(x,callback)}filterTransform.rawArgs=!0;var filter=typed("filter",{"Array, function":_filter,"Matrix, function":function MatrixFunction(x,test){return x.create(_filter(x.toArray(),test))},"Array, RegExp":utils_array.U_,"Matrix, RegExp":function MatrixRegExp(x,test){return x.create((0,utils_array.U_)(x.toArray(),test))}});return filterTransform}),{isTransformFunction:!0});function _filter(x,callback){return(0,utils_array.hX)(x,(function(value,index,array){return(0,applyCallback.i)(callback,value,[index+1],array,"filter")}))}var forEach_transform_dependencies=["typed"],createForEachTransform=(0,factory.d5)("forEach",forEach_transform_dependencies,(_ref=>{var{typed:typed}=_ref;function forEachTransform(args,math,scope){var x,callback;return args[0]&&(x=args[0].compile().evaluate(scope)),args[1]&&(callback=(0,is.FG)(args[1])||(0,is.l7)(args[1])?args[1].compile().evaluate(scope):compileInlineExpression(args[1],math,scope)),_forEach(x,callback)}forEachTransform.rawArgs=!0;var _forEach=typed("forEach",{"Array | Matrix, function":function ArrayMatrixFunction(array,callback){!function recurse(value,index){if(!Array.isArray(value))return(0,applyCallback.i)(callback,value,index,array,"forEach");(0,utils_array.Ed)(value,(function(child,i){recurse(child,index.concat(i+1))}))}(array.valueOf(),[])}});return forEachTransform}),{isTransformFunction:!0}),index_transform_dependencies=["Index","getMatrixDataType"],createIndexTransform=(0,factory.d5)("index",index_transform_dependencies,(_ref=>{var{Index:Index,getMatrixDataType:getMatrixDataType}=_ref;return function indexTransform(){for(var args=[],i=0,ii=arguments.length;i0?0:2;else if(arg&&!0===arg.isSet)arg=arg.map((function(v){return v-1}));else if((0,is.kJ)(arg)||(0,is.SW)(arg))"boolean"!==getMatrixDataType(arg)&&(arg=arg.map((function(v){return v-1})));else if((0,is.hj)(arg))arg--;else if((0,is.l9)(arg))arg=arg.toNumber()-1;else if("string"!=typeof arg)throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");args[i]=arg}var res=new Index;return Index.apply(res,args),res}}),{isTransformFunction:!0}),map_transform_dependencies=["typed"],createMapTransform=(0,factory.d5)("map",map_transform_dependencies,(_ref=>{var{typed:typed}=_ref;function mapTransform(args,math,scope){var x,callback;return args[0]&&(x=args[0].compile().evaluate(scope)),args[1]&&(callback=(0,is.FG)(args[1])||(0,is.l7)(args[1])?args[1].compile().evaluate(scope):compileInlineExpression(args[1],math,scope)),map(x,callback)}mapTransform.rawArgs=!0;var map=typed("map",{"Array, function":function ArrayFunction(x,callback){return _map(x,callback,x)},"Matrix, function":function MatrixFunction(x,callback){return x.create(_map(x.valueOf(),callback,x))}});return mapTransform}),{isTransformFunction:!0});function _map(array,callback,orig){return function recurse(value,index){return Array.isArray(value)?(0,utils_array.UI)(value,(function(child,i){return recurse(child,index.concat(i+1))})):(0,applyCallback.i)(callback,value,index,orig,"map")}(array,[])}function lastDimToZeroBase(args){if(2===args.length&&(0,is.uZ)(args[0])){var dim=(args=args.slice())[1];(0,is.hj)(dim)?args[1]=dim-1:(0,is.l9)(dim)&&(args[1]=dim.minus(1))}return args}var max_transform_dependencies=["typed","config","numeric","larger"],createMaxTransform=(0,factory.d5)("max",max_transform_dependencies,(_ref=>{var{typed:typed,config:config,numeric:numeric,larger:larger}=_ref,max=(0,statistics_max.J)({typed:typed,config:config,numeric:numeric,larger:larger});return typed("max",{"...any":function any(args){args=lastDimToZeroBase(args);try{return max.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),mean_transform_dependencies=["typed","add","divide"],createMeanTransform=(0,factory.d5)("mean",mean_transform_dependencies,(_ref=>{var{typed:typed,add:add,divide:divide}=_ref,mean=(0,statistics_mean.Q)({typed:typed,add:add,divide:divide});return typed("mean",{"...any":function any(args){args=lastDimToZeroBase(args);try{return mean.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),min_transform_dependencies=["typed","config","numeric","smaller"],createMinTransform=(0,factory.d5)("min",min_transform_dependencies,(_ref=>{var{typed:typed,config:config,numeric:numeric,smaller:smaller}=_ref,min=(0,statistics_min.D)({typed:typed,config:config,numeric:numeric,smaller:smaller});return typed("min",{"...any":function any(args){args=lastDimToZeroBase(args);try{return min.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),range_transform_dependencies=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq","add","isPositive"],createRangeTransform=(0,factory.d5)("range",range_transform_dependencies,(_ref=>{var{typed:typed,config:config,matrix:matrix,bignumber:bignumber,smaller:smaller,smallerEq:smallerEq,larger:larger,largerEq:largerEq,add:add,isPositive:isPositive}=_ref,range=(0,matrix_range.M)({typed:typed,config:config,matrix:matrix,bignumber:bignumber,smaller:smaller,smallerEq:smallerEq,larger:larger,largerEq:largerEq,add:add,isPositive:isPositive});return typed("range",{"...any":function any(args){return"boolean"!=typeof args[args.length-1]&&args.push(!0),range.apply(null,args)}})}),{isTransformFunction:!0}),row_transform_dependencies=["typed","Index","matrix","range"],createRowTransform=(0,factory.d5)("row",row_transform_dependencies,(_ref=>{var{typed:typed,Index:Index,matrix:matrix,range:range}=_ref,row=(0,matrix_row.v)({typed:typed,Index:Index,matrix:matrix,range:range});return typed("row",{"...any":function any(args){var lastIndex=args.length-1,last=args[lastIndex];(0,is.hj)(last)&&(args[lastIndex]=last-1);try{return row.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),subset_transform_dependencies=["typed","matrix","zeros","add"],createSubsetTransform=(0,factory.d5)("subset",subset_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,zeros:zeros,add:add}=_ref,subset=(0,matrix_subset.q)({typed:typed,matrix:matrix,zeros:zeros,add:add});return typed("subset",{"...any":function any(args){try{return subset.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),concat_transform_dependencies=["typed","matrix","isInteger"],createConcatTransform=(0,factory.d5)("concat",concat_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,isInteger:isInteger}=_ref,concat=(0,matrix_concat.k)({typed:typed,matrix:matrix,isInteger:isInteger});return typed("concat",{"...any":function any(args){var lastIndex=args.length-1,last=args[lastIndex];(0,is.hj)(last)?args[lastIndex]=last-1:(0,is.l9)(last)&&(args[lastIndex]=last.minus(1));try{return concat.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),diff_transform_dependencies=["typed","matrix","subtract","number","bignumber"],createDiffTransform=(0,factory.d5)("diff",diff_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,subtract:subtract,number:number,bignumber:bignumber}=_ref,diff=(0,matrix_diff.J)({typed:typed,matrix:matrix,subtract:subtract,number:number,bignumber:bignumber});return typed("diff",{"...any":function any(args){args=lastDimToZeroBase(args);try{return diff.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),std_transform_dependencies=["typed","map","sqrt","variance"],createStdTransform=(0,factory.d5)("std",std_transform_dependencies,(_ref=>{var{typed:typed,map:map,sqrt:sqrt,variance:variance}=_ref,std=(0,statistics_std.X)({typed:typed,map:map,sqrt:sqrt,variance:variance});return typed("std",{"...any":function any(args){args=lastDimToZeroBase(args);try{return std.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),sum_transform_dependencies=["typed","config","add","numeric"],createSumTransform=(0,factory.d5)("sum",sum_transform_dependencies,(_ref=>{var{typed:typed,config:config,add:add,numeric:numeric}=_ref,sum=(0,statistics_sum.O)({typed:typed,config:config,add:add,numeric:numeric});return typed("sum",{"...any":function any(args){args=lastDimToZeroBase(args);try{return sum.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),quantileSeq_transform_dependencies=["typed","bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],createQuantileSeqTransform=(0,factory.d5)("quantileSeq",quantileSeq_transform_dependencies,(_ref=>{var{typed:typed,bignumber:bignumber,add:add,subtract:subtract,divide:divide,multiply:multiply,partitionSelect:partitionSelect,compare:compare,isInteger:isInteger,smaller:smaller,smallerEq:smallerEq,larger:larger}=_ref,quantileSeq=(0,statistics_quantileSeq.y)({typed:typed,bignumber:bignumber,add:add,subtract:subtract,divide:divide,multiply:multiply,partitionSelect:partitionSelect,compare:compare,isInteger:isInteger,smaller:smaller,smallerEq:smallerEq,larger:larger});return typed("quantileSeq",{"Array | Matrix, number | BigNumber":quantileSeq,"Array | Matrix, number | BigNumber, number":(arr,prob,dim)=>quantileSeq(arr,prob,dimToZeroBase(dim)),"Array | Matrix, number | BigNumber, boolean":quantileSeq,"Array | Matrix, number | BigNumber, boolean, number":(arr,prob,sorted,dim)=>quantileSeq(arr,prob,sorted,dimToZeroBase(dim)),"Array | Matrix, Array | Matrix":quantileSeq,"Array | Matrix, Array | Matrix, number":(data,prob,dim)=>quantileSeq(data,prob,dimToZeroBase(dim)),"Array | Matrix, Array | Matrix, boolean":quantileSeq,"Array | Matrix, Array | Matrix, boolean, number":(data,prob,sorted,dim)=>quantileSeq(data,prob,sorted,dimToZeroBase(dim))});function dimToZeroBase(dim){return lastDimToZeroBase([[],dim])[1]}}),{isTransformFunction:!0}),cumsum_transform_dependencies=["typed","add","unaryPlus"],createCumSumTransform=(0,factory.d5)("cumsum",cumsum_transform_dependencies,(_ref=>{var{typed:typed,add:add,unaryPlus:unaryPlus}=_ref,cumsum=(0,statistics_cumsum.o)({typed:typed,add:add,unaryPlus:unaryPlus});return typed("cumsum",{"...any":function any(args){if(2===args.length&&(0,is.uZ)(args[0])){var dim=args[1];(0,is.hj)(dim)?args[1]=dim-1:(0,is.l9)(dim)&&(args[1]=dim.minus(1))}try{return cumsum.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),variance_transform_dependencies=["typed","add","subtract","multiply","divide","apply","isNaN"],createVarianceTransform=(0,factory.d5)("variance",variance_transform_dependencies,(_ref=>{var{typed:typed,add:add,subtract:subtract,multiply:multiply,divide:divide,apply:apply,isNaN:isNaN}=_ref,variance=(0,statistics_variance.F)({typed:typed,add:add,subtract:subtract,multiply:multiply,divide:divide,apply:apply,isNaN:isNaN});return typed("variance",{"...any":function any(args){args=lastDimToZeroBase(args);try{return variance.apply(null,args)}catch(err){throw errorTransform(err)}}})}),{isTransformFunction:!0}),utils_print=__webpack_require__("./node_modules/mathjs/lib/esm/utils/print.js"),print_transform_dependencies=["typed","matrix","zeros","add"],createPrintTransform=(0,factory.d5)("print",print_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,zeros:zeros,add:add}=_ref,print=(0,string_print.P)({typed:typed,matrix:matrix,zeros:zeros,add:add});return typed("print",{"string, Object | Array":function stringObjectArray(template,values){return print(_convertTemplateToZeroBasedIndex(template),values)},"string, Object | Array, number | Object":function stringObjectArrayNumberObject(template,values,options){return print(_convertTemplateToZeroBasedIndex(template),values,options)}});function _convertTemplateToZeroBasedIndex(template){return template.replace(utils_print.k,(x=>"$"+x.slice(1).split(".").map((function(part){return!isNaN(part)&&part.length>0?parseInt(part)-1:part})).join(".")))}}),{isTransformFunction:!0}),and_transform_dependencies=["typed","matrix","zeros","add","equalScalar","not","concat"],createAndTransform=(0,factory.d5)("and",and_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,not:not,concat:concat}=_ref,and=(0,logical_and.I)({typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,not:not,concat:concat});function andTransform(args,math,scope){var condition1=args[0].compile().evaluate(scope);if(!(0,is.uZ)(condition1)&&!and(condition1,!0))return!1;var condition2=args[1].compile().evaluate(scope);return and(condition1,condition2)}return andTransform.rawArgs=!0,andTransform}),{isTransformFunction:!0}),or_transform_dependencies=["typed","matrix","equalScalar","DenseMatrix","concat"],createOrTransform=(0,factory.d5)("or",or_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,or=(0,logical_or.Z)({typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat});function orTransform(args,math,scope){var condition1=args[0].compile().evaluate(scope);if(!(0,is.uZ)(condition1)&&or(condition1,!1))return!0;var condition2=args[1].compile().evaluate(scope);return or(condition1,condition2)}return orTransform.rawArgs=!0,orTransform}),{isTransformFunction:!0}),bitAnd_transform_dependencies=["typed","matrix","zeros","add","equalScalar","not","concat"],createBitAndTransform=(0,factory.d5)("bitAnd",bitAnd_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,not:not,concat:concat}=_ref,bitAnd=(0,bitwise_bitAnd.i)({typed:typed,matrix:matrix,equalScalar:equalScalar,zeros:zeros,not:not,concat:concat});function bitAndTransform(args,math,scope){var condition1=args[0].compile().evaluate(scope);if(!(0,is.uZ)(condition1)){if(isNaN(condition1))return NaN;if(0===condition1||!1===condition1)return 0}var condition2=args[1].compile().evaluate(scope);return bitAnd(condition1,condition2)}return bitAndTransform.rawArgs=!0,bitAndTransform}),{isTransformFunction:!0}),bitOr_transform_dependencies=["typed","matrix","equalScalar","DenseMatrix","concat"],createBitOrTransform=(0,factory.d5)("bitOr",bitOr_transform_dependencies,(_ref=>{var{typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat}=_ref,bitOr=(0,bitwise_bitOr.j)({typed:typed,matrix:matrix,equalScalar:equalScalar,DenseMatrix:DenseMatrix,concat:concat});function bitOrTransform(args,math,scope){var condition1=args[0].compile().evaluate(scope);if(!(0,is.uZ)(condition1)){if(isNaN(condition1))return NaN;if(-1===condition1)return-1;if(!0===condition1)return 1}var condition2=args[1].compile().evaluate(scope);return bitOr(condition1,condition2)}return bitOrTransform.rawArgs=!0,bitOrTransform}),{isTransformFunction:!0}),allFactoriesAny_all=factoriesAny_namespaceObject},"./node_modules/tiny-emitter/index.js":function(module){function E(){}E.prototype={on:function(name,callback,ctx){var e=this.e||(this.e={});return(e[name]||(e[name]=[])).push({fn:callback,ctx:ctx}),this},once:function(name,callback,ctx){var self=this;function listener(){self.off(name,listener),callback.apply(ctx,arguments)}return listener._=callback,this.on(name,listener,ctx)},emit:function(name){for(var data=[].slice.call(arguments,1),evtArr=((this.e||(this.e={}))[name]||[]).slice(),i=0,len=evtArr.length;i0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content})).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/runtime/sourceMaps.js":function(module){"use strict";module.exports=function(item){var content=item[1],cssMapping=item[3];if(!cssMapping)return content;if("function"==typeof btoa){var base64=btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64),sourceMapping="/*# ".concat(data," */");return[content].concat([sourceMapping]).join("\n")}return[content].join("\n")}},"./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":function(module){"use strict";var stylesInDOM=[];function getIndexByIdentifier(identifier){for(var result=-1,i=0;i0?" ".concat(obj.layer):""," {")),css+=obj.css,needLayer&&(css+="}"),obj.media&&(css+="}"),obj.supports&&(css+="}");var sourceMap=obj.sourceMap;sourceMap&&"undefined"!=typeof btoa&&(css+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))," */")),options.styleTagTransform(css,styleElement,options.options)}(styleElement,options,obj)},remove:function remove(){!function removeStyleElement(styleElement){if(null===styleElement.parentNode)return!1;styleElement.parentNode.removeChild(styleElement)}(styleElement)}}}},"./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleTagTransform.js":function(module){"use strict";module.exports=function styleTagTransform(css,styleElement){if(styleElement.styleSheet)styleElement.styleSheet.cssText=css;else{for(;styleElement.firstChild;)styleElement.removeChild(styleElement.firstChild);styleElement.appendChild(document.createTextNode(css))}}},"./node_modules/lodash/_baseTrim.js":function(module,__unused_webpack_exports,__webpack_require__){var trimmedEndIndex=__webpack_require__("./node_modules/lodash/_trimmedEndIndex.js"),reTrimStart=/^\s+/;module.exports=function baseTrim(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string}},"./node_modules/lodash/_trimmedEndIndex.js":function(module){var reWhitespace=/\s/;module.exports=function trimmedEndIndex(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););return index}},"./node_modules/lodash/debounce.js":function(module,__unused_webpack_exports,__webpack_require__){var isObject=__webpack_require__("./node_modules/lodash/isObject.js"),now=__webpack_require__("./node_modules/lodash/now.js"),toNumber=__webpack_require__("./node_modules/lodash/toNumber.js"),nativeMax=Math.max,nativeMin=Math.min;module.exports=function debounce(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=void 0,lastInvokeTime=time,result=func.apply(thisArg,args)}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;return void 0===lastCallTime||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(now())},debounced}},"./node_modules/lodash/now.js":function(module,__unused_webpack_exports,__webpack_require__){var root=__webpack_require__("./node_modules/lodash/_root.js");module.exports=function(){return root.Date.now()}},"./node_modules/lodash/throttle.js":function(module,__unused_webpack_exports,__webpack_require__){var debounce=__webpack_require__("./node_modules/lodash/debounce.js"),isObject=__webpack_require__("./node_modules/lodash/isObject.js");module.exports=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})}},"./node_modules/lodash/toNumber.js":function(module,__unused_webpack_exports,__webpack_require__){var baseTrim=__webpack_require__("./node_modules/lodash/_baseTrim.js"),isObject=__webpack_require__("./node_modules/lodash/isObject.js"),isSymbol=__webpack_require__("./node_modules/lodash/isSymbol.js"),reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;module.exports=function toNumber(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value}},"./node_modules/react-resize-detector/build/index.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return useResizeDetector}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),lodash_debounce__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/lodash/debounce.js"),lodash_debounce__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_1__),lodash_throttle__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/lodash/throttle.js"),lodash_throttle__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_2__);const patchResizeCallback=(resizeCallback,refreshMode,refreshRate,refreshOptions)=>{switch(refreshMode){case"debounce":return lodash_debounce__WEBPACK_IMPORTED_MODULE_1___default()(resizeCallback,refreshRate,refreshOptions);case"throttle":return lodash_throttle__WEBPACK_IMPORTED_MODULE_2___default()(resizeCallback,refreshRate,refreshOptions);default:return resizeCallback}};function useResizeDetector({skipOnMount:skipOnMount=!1,refreshMode:refreshMode,refreshRate:refreshRate=1e3,refreshOptions:refreshOptions,handleWidth:handleWidth=!0,handleHeight:handleHeight=!0,targetRef:targetRef,observerOptions:observerOptions,onResize:onResize}={}){const skipResize=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(skipOnMount),[size,setSize]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({width:void 0,height:void 0}),[refElement,setRefElement]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((null==targetRef?void 0:targetRef.current)||null);targetRef&&setTimeout((()=>{targetRef.current!==refElement&&setRefElement(targetRef.current)}),0);const refProxy=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>new Proxy((node=>{node!==refElement&&setRefElement(node)}),{get(target,prop){return"current"===prop?refElement:target[prop]},set(target,prop,value){return"current"===prop?setRefElement(value):target[prop]=value,!0}})),[refElement]),shouldSetSize=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(((prevSize,nextSize)=>(prevSize.width!==nextSize.width||prevSize.height!==nextSize.height)&&!(prevSize.width===nextSize.width&&!handleHeight||prevSize.height===nextSize.height&&!handleWidth)),[handleWidth,handleHeight]),resizeCallback=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((entries=>{(handleWidth||handleHeight)&&(skipResize.current?skipResize.current=!1:entries.forEach((entry=>{const{width:width,height:height}=(null==entry?void 0:entry.contentRect)||{};setSize((prevSize=>shouldSetSize(prevSize,{width:width,height:height})?{width:width,height:height}:prevSize))})))}),[handleWidth,handleHeight,skipResize,shouldSetSize]),resizeHandler=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(patchResizeCallback(resizeCallback,refreshMode,refreshRate,refreshOptions),[resizeCallback,refreshMode,refreshRate,refreshOptions]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let resizeObserver;return refElement?(resizeObserver=new window.ResizeObserver(resizeHandler),resizeObserver.observe(refElement,observerOptions)):(size.width||size.height)&&setSize({width:void 0,height:void 0}),()=>{var _a,_b,_c;null===(_a=null==resizeObserver?void 0:resizeObserver.disconnect)||void 0===_a||_a.call(resizeObserver),null===(_c=(_b=resizeHandler).cancel)||void 0===_c||_c.call(_b)}}),[resizeHandler,refElement]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{null==onResize||onResize(size.width,size.height)}),[size]),Object.assign({ref:refProxy},size)}},"./node_modules/react-tooltip/dist/index.es.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return ReactTooltip}});var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}for(var byteToHex=[],i=0;i<256;++i)byteToHex[i]=(i+256).toString(16).substr(1);var esm_browser_bytesToUuid=function bytesToUuid(buf,offset){var i=offset||0,bth=byteToHex;return[bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]]].join("")};var esm_browser_v4=function v4(options,buf,offset){var i=buf&&offset||0;"string"==typeof options&&(buf="binary"===options?new Array(16):null,options=null);var rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf)for(var ii=0;ii<16;++ii)buf[i+ii]=rnds[ii];return buf||esm_browser_bytesToUuid(rnds)};function ownKeys$2(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(e){throw e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(e){didErr=!0,err=e},f:function(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},check=function(it){return it&&it.Math==Math&&it},global$a=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$9=function(exec){try{return!!exec()}catch(error){return!0}},descriptors=!fails$9((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),functionBindNative=!fails$9((function(){var test=function(){}.bind();return"function"!=typeof test||test.hasOwnProperty("prototype")})),NATIVE_BIND$2=functionBindNative,call$4=Function.prototype.call,functionCall=NATIVE_BIND$2?call$4.bind(call$4):function(){return call$4.apply(call$4,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function propertyIsEnumerable(V){var descriptor=getOwnPropertyDescriptor$1(this,V);return!!descriptor&&descriptor.enumerable}:$propertyIsEnumerable;var match,version,createPropertyDescriptor$2=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}},NATIVE_BIND$1=functionBindNative,FunctionPrototype$1=Function.prototype,call$3=FunctionPrototype$1.call,uncurryThisWithBind=NATIVE_BIND$1&&FunctionPrototype$1.bind.bind(call$3,call$3),functionUncurryThisRaw=function(fn){return NATIVE_BIND$1?uncurryThisWithBind(fn):function(){return call$3.apply(fn,arguments)}},uncurryThisRaw$1=functionUncurryThisRaw,toString$1=uncurryThisRaw$1({}.toString),stringSlice=uncurryThisRaw$1("".slice),classofRaw$2=function(it){return stringSlice(toString$1(it),8,-1)},classofRaw$1=classofRaw$2,uncurryThisRaw=functionUncurryThisRaw,functionUncurryThis=function(fn){if("Function"===classofRaw$1(fn))return uncurryThisRaw(fn)},fails$6=fails$9,classof$3=classofRaw$2,$Object$3=Object,split=functionUncurryThis("".split),indexedObject=fails$6((function(){return!$Object$3("z").propertyIsEnumerable(0)}))?function(it){return"String"==classof$3(it)?split(it,""):$Object$3(it)}:$Object$3,isNullOrUndefined$2=function(it){return null==it},isNullOrUndefined$1=isNullOrUndefined$2,$TypeError$5=TypeError,requireObjectCoercible$2=function(it){if(isNullOrUndefined$1(it))throw $TypeError$5("Can't call method on "+it);return it},IndexedObject$1=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$4=function(it){return IndexedObject$1(requireObjectCoercible$1(it))},documentAll$2="object"==typeof document&&document.all,documentAll_1={all:documentAll$2,IS_HTMLDDA:void 0===documentAll$2&&void 0!==documentAll$2},documentAll$1=documentAll_1.all,isCallable$c=documentAll_1.IS_HTMLDDA?function(argument){return"function"==typeof argument||argument===documentAll$1}:function(argument){return"function"==typeof argument},isCallable$b=isCallable$c,documentAll=documentAll_1.all,isObject$6=documentAll_1.IS_HTMLDDA?function(it){return"object"==typeof it?null!==it:isCallable$b(it)||it===documentAll}:function(it){return"object"==typeof it?null!==it:isCallable$b(it)},global$9=global$a,isCallable$a=isCallable$c,getBuiltIn$5=function(namespace,method){return arguments.length<2?(argument=global$9[namespace],isCallable$a(argument)?argument:void 0):global$9[namespace]&&global$9[namespace][method];var argument},objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),global$8=global$a,userAgent=getBuiltIn$5("navigator","userAgent")||"",process=global$8.process,Deno=global$8.Deno,versions=process&&process.versions||Deno&&Deno.version,v8=versions&&versions.v8;v8&&(version=(match=v8.split("."))[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent.match(/Chrome\/(\d+)/))&&(version=+match[1]);var V8_VERSION=version,fails$5=fails$9,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$5((function(){var symbol=Symbol();return!String(symbol)||!(Object(symbol)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41})),useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$3=getBuiltIn$5,isCallable$9=isCallable$c,index_es_isPrototypeOf=objectIsPrototypeOf,$Object$2=Object,isSymbol$2=useSymbolAsUid?function(it){return"symbol"==typeof it}:function(it){var $Symbol=getBuiltIn$3("Symbol");return isCallable$9($Symbol)&&index_es_isPrototypeOf($Symbol.prototype,$Object$2(it))},$String$1=String,isCallable$8=isCallable$c,tryToString=function(argument){try{return $String$1(argument)}catch(error){return"Object"}},$TypeError$4=TypeError,aCallable$2=function(argument){if(isCallable$8(argument))return argument;throw $TypeError$4(tryToString(argument)+" is not a function")},aCallable$1=aCallable$2,isNullOrUndefined=isNullOrUndefined$2,call$2=functionCall,isCallable$7=isCallable$c,isObject$5=isObject$6,$TypeError$3=TypeError,shared$3={exports:{}},global$7=global$a,defineProperty$2=Object.defineProperty,defineGlobalProperty$3=function(key,value){try{defineProperty$2(global$7,key,{value:value,configurable:!0,writable:!0})}catch(error){global$7[key]=value}return value},defineGlobalProperty$2=defineGlobalProperty$3,sharedStore=global$a["__core-js_shared__"]||defineGlobalProperty$2("__core-js_shared__",{}),store$2=sharedStore;(shared$3.exports=function(key,value){return store$2[key]||(store$2[key]=void 0!==value?value:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible=requireObjectCoercible$2,$Object$1=Object,toObject$2=function(argument){return $Object$1(requireObjectCoercible(argument))},toObject$1=toObject$2,index_es_hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function hasOwn(it,key){return index_es_hasOwnProperty(toObject$1(it),key)},uncurryThis$6=functionUncurryThis,id=0,postfix=Math.random(),index_es_toString=uncurryThis$6(1..toString),uid$2=function(key){return"Symbol("+(void 0===key?"":key)+")_"+index_es_toString(++id+postfix,36)},global$5=global$a,shared$2=shared$3.exports,hasOwn$6=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$2("wks"),Symbol$1=global$5.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$5=function(name){if(!hasOwn$6(WellKnownSymbolsStore,name)||!NATIVE_SYMBOL&&"string"!=typeof WellKnownSymbolsStore[name]){var description="Symbol."+name;NATIVE_SYMBOL&&hasOwn$6(Symbol$1,name)?WellKnownSymbolsStore[name]=Symbol$1[name]:WellKnownSymbolsStore[name]=USE_SYMBOL_AS_UID&&symbolFor?symbolFor(description):createWellKnownSymbol(description)}return WellKnownSymbolsStore[name]},call$1=functionCall,isObject$4=isObject$6,isSymbol$1=isSymbol$2,getMethod=function(V,P){var func=V[P];return isNullOrUndefined(func)?void 0:aCallable$1(func)},ordinaryToPrimitive=function(input,pref){var fn,val;if("string"===pref&&isCallable$7(fn=input.toString)&&!isObject$5(val=call$2(fn,input)))return val;if(isCallable$7(fn=input.valueOf)&&!isObject$5(val=call$2(fn,input)))return val;if("string"!==pref&&isCallable$7(fn=input.toString)&&!isObject$5(val=call$2(fn,input)))return val;throw $TypeError$3("Can't convert object to primitive value")},$TypeError$2=TypeError,TO_PRIMITIVE=wellKnownSymbol$5("toPrimitive"),toPrimitive=function(input,pref){if(!isObject$4(input)||isSymbol$1(input))return input;var result,exoticToPrim=getMethod(input,TO_PRIMITIVE);if(exoticToPrim){if(void 0===pref&&(pref="default"),result=call$1(exoticToPrim,input,pref),!isObject$4(result)||isSymbol$1(result))return result;throw $TypeError$2("Can't convert object to primitive value")}return void 0===pref&&(pref="number"),ordinaryToPrimitive(input,pref)},isSymbol=isSymbol$2,toPropertyKey$2=function(argument){var key=toPrimitive(argument,"string");return isSymbol(key)?key:key+""},isObject$3=isObject$6,document$1=global$a.document,EXISTS$1=isObject$3(document$1)&&isObject$3(document$1.createElement),documentCreateElement$1=function(it){return EXISTS$1?document$1.createElement(it):{}},createElement=documentCreateElement$1,ie8DomDefine=!descriptors&&!fails$9((function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a})),DESCRIPTORS$6=descriptors,call=functionCall,propertyIsEnumerableModule=objectPropertyIsEnumerable,createPropertyDescriptor$1=createPropertyDescriptor$2,toIndexedObject$3=toIndexedObject$4,toPropertyKey$1=toPropertyKey$2,hasOwn$5=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$6?$getOwnPropertyDescriptor$1:function getOwnPropertyDescriptor(O,P){if(O=toIndexedObject$3(O),P=toPropertyKey$1(P),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(O,P)}catch(error){}if(hasOwn$5(O,P))return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f,O,P),O[P])};var objectDefineProperty={},v8PrototypeDefineBug=descriptors&&fails$9((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),isObject$2=isObject$6,$String=String,$TypeError$1=TypeError,anObject$4=function(argument){if(isObject$2(argument))return argument;throw $TypeError$1($String(argument)+" is not an object")},DESCRIPTORS$4=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$3=anObject$4,toPropertyKey=toPropertyKey$2,$TypeError=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;objectDefineProperty.f=DESCRIPTORS$4?V8_PROTOTYPE_DEFINE_BUG$1?function defineProperty(O,P,Attributes){if(anObject$3(O),P=toPropertyKey(P),anObject$3(Attributes),"function"==typeof O&&"prototype"===P&&"value"in Attributes&&"writable"in Attributes&&!Attributes.writable){var current=$getOwnPropertyDescriptor(O,P);current&¤t.writable&&(O[P]=Attributes.value,Attributes={configurable:"configurable"in Attributes?Attributes.configurable:current.configurable,enumerable:"enumerable"in Attributes?Attributes.enumerable:current.enumerable,writable:!1})}return $defineProperty(O,P,Attributes)}:$defineProperty:function defineProperty(O,P,Attributes){if(anObject$3(O),P=toPropertyKey(P),anObject$3(Attributes),IE8_DOM_DEFINE)try{return $defineProperty(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw $TypeError("Accessors not supported");return"value"in Attributes&&(O[P]=Attributes.value),O};var definePropertyModule$3=objectDefineProperty,createPropertyDescriptor=createPropertyDescriptor$2,createNonEnumerableProperty$2=descriptors?function(object,key,value){return definePropertyModule$3.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){return object[key]=value,object},makeBuiltIn$2={exports:{}},DESCRIPTORS$2=descriptors,hasOwn$4=hasOwnProperty_1,FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS$2&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$4(FunctionPrototype,"name"),functionName={EXISTS:EXISTS,PROPER:EXISTS&&"something"===function something(){}.name,CONFIGURABLE:EXISTS&&(!DESCRIPTORS$2||DESCRIPTORS$2&&getDescriptor(FunctionPrototype,"name").configurable)},isCallable$6=isCallable$c,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString);isCallable$6(store$1.inspectSource)||(store$1.inspectSource=function(it){return functionToString(it)});var set,get,has,inspectSource$2=store$1.inspectSource,isCallable$5=isCallable$c,WeakMap$1=global$a.WeakMap,weakMapBasicDetection=isCallable$5(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$2=function(key){return keys[key]||(keys[key]=uid(key))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$2=global$a,isObject$1=isObject$6,createNonEnumerableProperty$1=createNonEnumerableProperty$2,hasOwn$3=hasOwnProperty_1,shared=sharedStore,sharedKey$1=sharedKey$2,hiddenKeys$3=hiddenKeys$4,TypeError$1=global$2.TypeError,WeakMap=global$2.WeakMap;if(NATIVE_WEAK_MAP||shared.state){var store=shared.state||(shared.state=new WeakMap);store.get=store.get,store.has=store.has,store.set=store.set,set=function(it,metadata){if(store.has(it))throw TypeError$1("Object already initialized");return metadata.facade=it,store.set(it,metadata),metadata},get=function(it){return store.get(it)||{}},has=function(it){return store.has(it)}}else{var STATE=sharedKey$1("state");hiddenKeys$3[STATE]=!0,set=function(it,metadata){if(hasOwn$3(it,STATE))throw TypeError$1("Object already initialized");return metadata.facade=it,createNonEnumerableProperty$1(it,STATE,metadata),metadata},get=function(it){return hasOwn$3(it,STATE)?it[STATE]:{}},has=function(it){return hasOwn$3(it,STATE)}}var internalState={set:set,get:get,has:has,enforce:function(it){return has(it)?get(it):set(it,{})},getterFor:function(TYPE){return function(it){var state;if(!isObject$1(it)||(state=get(it)).type!==TYPE)throw TypeError$1("Incompatible receiver, "+TYPE+" required");return state}}},fails$2=fails$9,isCallable$4=isCallable$c,hasOwn$2=hasOwnProperty_1,DESCRIPTORS$1=descriptors,CONFIGURABLE_FUNCTION_NAME=functionName.CONFIGURABLE,inspectSource$1=inspectSource$2,enforceInternalState=internalState.enforce,getInternalState=internalState.get,defineProperty$1=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$1&&!fails$2((function(){return 8!==defineProperty$1((function(){}),"length",{value:8}).length})),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(value,name,options){"Symbol("===String(name).slice(0,7)&&(name="["+String(name).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),options&&options.getter&&(name="get "+name),options&&options.setter&&(name="set "+name),(!hasOwn$2(value,"name")||CONFIGURABLE_FUNCTION_NAME&&value.name!==name)&&(DESCRIPTORS$1?defineProperty$1(value,"name",{value:name,configurable:!0}):value.name=name),CONFIGURABLE_LENGTH&&options&&hasOwn$2(options,"arity")&&value.length!==options.arity&&defineProperty$1(value,"length",{value:options.arity});try{options&&hasOwn$2(options,"constructor")&&options.constructor?DESCRIPTORS$1&&defineProperty$1(value,"prototype",{writable:!1}):value.prototype&&(value.prototype=void 0)}catch(error){}var state=enforceInternalState(value);return hasOwn$2(state,"source")||(state.source=TEMPLATE.join("string"==typeof name?name:"")),value};Function.prototype.toString=makeBuiltIn$1((function toString(){return isCallable$4(this)&&getInternalState(this).source||inspectSource$1(this)}),"toString");var isCallable$3=isCallable$c,definePropertyModule$2=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,trunc=Math.trunc||function trunc(x){var n=+x;return(n>0?floor:ceil)(n)},toIntegerOrInfinity$2=function(argument){var number=+argument;return number!=number||0===number?0:trunc(number)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max=Math.max,min$1=Math.min,toIntegerOrInfinity=toIntegerOrInfinity$2,min=Math.min,toLength=function(argument){return argument>0?min(toIntegerOrInfinity(argument),9007199254740991):0},lengthOfArrayLike$2=function(obj){return toLength(obj.length)},toIndexedObject$2=toIndexedObject$4,toAbsoluteIndex=function(index,length){var integer=toIntegerOrInfinity$1(index);return integer<0?max(integer+length,0):min$1(integer,length)},lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod$1=function(IS_INCLUDES){return function($this,el,fromIndex){var value,O=toIndexedObject$2($this),length=lengthOfArrayLike$1(O),index=toAbsoluteIndex(fromIndex,length);if(IS_INCLUDES&&el!=el){for(;length>index;)if((value=O[index++])!=value)return!0}else for(;length>index;index++)if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0;return!IS_INCLUDES&&-1}},arrayIncludes={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},hasOwn$1=hasOwnProperty_1,toIndexedObject$1=toIndexedObject$4,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$1=functionUncurryThis([].push),objectKeysInternal=function(object,names){var key,O=toIndexedObject$1(object),i=0,result=[];for(key in O)!hasOwn$1(hiddenKeys$2,key)&&hasOwn$1(O,key)&&push$1(result,key);for(;names.length>i;)hasOwn$1(O,key=names[i++])&&(~indexOf(result,key)||push$1(result,key));return result},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,hiddenKeys$1=enumBugKeys$3.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return internalObjectKeys$1(O,hiddenKeys$1)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$2=getBuiltIn$5,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,anObject$2=anObject$4,concat=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$2("Reflect","ownKeys")||function ownKeys(it){var keys=getOwnPropertyNamesModule.f(anObject$2(it)),getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?concat(keys,getOwnPropertySymbols(it)):keys},hasOwn=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,fails$1=fails$9,isCallable$2=isCallable$c,replacement=/#|\.prototype\./,isForced$1=function(feature,detection){var value=data[normalize(feature)];return value==POLYFILL||value!=NATIVE&&(isCallable$2(detection)?fails$1(detection):!!detection)},normalize=isForced$1.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$1=global$a,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty=createNonEnumerableProperty$2,defineBuiltIn=function(O,key,value,options){options||(options={});var simple=options.enumerable,name=void 0!==options.name?options.name:key;if(isCallable$3(value)&&makeBuiltIn(value,name,options),options.global)simple?O[key]=value:defineGlobalProperty$1(key,value);else{try{options.unsafe?O[key]&&(simple=!0):delete O[key]}catch(error){}simple?O[key]=value:definePropertyModule$2.f(O,key,{value:value,enumerable:!1,configurable:!options.nonConfigurable,writable:!options.nonWritable})}return O},defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=function(target,source,exceptions){for(var keys=ownKeys(source),defineProperty=definePropertyModule$1.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,i=0;iindex;index++)if((NO_HOLES||index in self)&&(result=boundFunction(value=self[index],index,O),TYPE))if(IS_MAP)target[index]=result;else if(result)switch(TYPE){case 3:return!0;case 5:return value;case 6:return index;case 2:push(target,value)}else switch(TYPE){case 4:return!1;case 7:push(target,value)}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:target}},arrayIteration={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)},objectDefineProperties={},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$1=Object.keys||function keys(O){return internalObjectKeys(O,enumBugKeys$1)},DESCRIPTORS=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$1=anObject$4,toIndexedObject=toIndexedObject$4,objectKeys=objectKeys$1;objectDefineProperties.f=DESCRIPTORS&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function defineProperties(O,Properties){anObject$1(O);for(var key,props=toIndexedObject(Properties),keys=objectKeys(Properties),length=keys.length,index=0;length>index;)definePropertyModule.f(O,key=keys[index++],props[key]);return O};var activeXDocument,html$1=getBuiltIn$5("document","documentElement"),anObject=anObject$4,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,documentCreateElement=documentCreateElement$1,IE_PROTO=sharedKey$2("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(content){return" \ No newline at end of file + import './main.17399449.iframe.bundle.js'; \ No newline at end of file diff --git a/storybook-static/main.74e2ac7f.iframe.bundle.js b/storybook-static/main.17399449.iframe.bundle.js similarity index 75% rename from storybook-static/main.74e2ac7f.iframe.bundle.js rename to storybook-static/main.17399449.iframe.bundle.js index 478240c7c..8850bdf5f 100644 --- a/storybook-static/main.74e2ac7f.iframe.bundle.js +++ b/storybook-static/main.17399449.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[179],{"./.storybook/preview.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_exports__.default={parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/}}}}},"./storybook-config-entry.js":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("@storybook/channels");const importers=[async path=>{if(!/^\.[\\/](?:packages\/(?!\.)(?=.)[^/]*?\/src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(11);return __webpack_require__("./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)},async path=>{if(!/^\.[\\/](?:packages\/(?!\.)(?=.)[^/]*?\/src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|ts|tsx))$/.exec(path))return;const pathRemainder=path.substring(11);return __webpack_require__("./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$")("./"+pathRemainder)}];const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb((async function importFn(path){for(let i=0;iimporters[i](path),x());if(moduleExports)return moduleExports}var x}),(()=>(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)([__webpack_require__("./node_modules/@storybook/react/dist/entry-preview.mjs"),__webpack_require__("./node_modules/@storybook/react/dist/entry-preview-docs.mjs"),__webpack_require__("./node_modules/@storybook/addon-links/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/docs/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/actions/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/viewport/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/measure/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/outline/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/highlight/preview.js"),__webpack_require__("./node_modules/@storybook/addon-actions/preview.js"),__webpack_require__("./.storybook/preview.tsx")])));window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$":function(module,__unused_webpack_exports,__webpack_require__){var map={"./well-log-viewer/src/Intro.mdx":["./packages/well-log-viewer/src/Intro.mdx",4553,9939,6658]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((function(){return __webpack_require__(id)}))}webpackAsyncContext.keys=function(){return Object.keys(map)},webpackAsyncContext.id="./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackAsyncContext},"./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$":function(module,__unused_webpack_exports,__webpack_require__){var map={"./group-tree-plot/src/storybook/GroupTreePlot.stories":["./packages/group-tree-plot/src/storybook/GroupTreePlot.stories.tsx",3770,8813,6019],"./group-tree-plot/src/storybook/GroupTreePlot.stories.tsx":["./packages/group-tree-plot/src/storybook/GroupTreePlot.stories.tsx",3770,8813,6019],"./subsurface-viewer/src/storybook/components/DistanceScale.stories":["./packages/subsurface-viewer/src/storybook/components/DistanceScale.stories.tsx",3381,785],"./subsurface-viewer/src/storybook/components/DistanceScale.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/DistanceScale.stories.tsx",3381,785],"./subsurface-viewer/src/storybook/components/InfoCard.stories":["./packages/subsurface-viewer/src/storybook/components/InfoCard.stories.tsx",2843,7395,3899,4091,763],"./subsurface-viewer/src/storybook/components/InfoCard.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/InfoCard.stories.tsx",2843,7395,3899,4091,763],"./subsurface-viewer/src/storybook/components/colorLegends/ContinuousLegend.stories":["./packages/subsurface-viewer/src/storybook/components/colorLegends/ContinuousLegend.stories.tsx",3770,2843,4553,8813,7395,5527,1923],"./subsurface-viewer/src/storybook/components/colorLegends/ContinuousLegend.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/colorLegends/ContinuousLegend.stories.tsx",3770,2843,4553,8813,7395,5527,1923],"./subsurface-viewer/src/storybook/components/colorLegends/DiscreteLegend.stories":["./packages/subsurface-viewer/src/storybook/components/colorLegends/DiscreteLegend.stories.tsx",3770,2843,4553,8813,7395,5527,2648],"./subsurface-viewer/src/storybook/components/colorLegends/DiscreteLegend.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/colorLegends/DiscreteLegend.stories.tsx",3770,2843,4553,8813,7395,5527,2648],"./subsurface-viewer/src/storybook/components/colorLegends/IndividualScaleForMap.stories":["./packages/subsurface-viewer/src/storybook/components/colorLegends/IndividualScaleForMap.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,1670],"./subsurface-viewer/src/storybook/components/colorLegends/IndividualScaleForMap.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/colorLegends/IndividualScaleForMap.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,1670],"./subsurface-viewer/src/storybook/components/colorLegends/SingleScaleForMap.stories":["./packages/subsurface-viewer/src/storybook/components/colorLegends/SingleScaleForMap.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,4708],"./subsurface-viewer/src/storybook/components/colorLegends/SingleScaleForMap.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/colorLegends/SingleScaleForMap.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,4708],"./subsurface-viewer/src/storybook/components/settings/NumericInput.stories":["./packages/subsurface-viewer/src/storybook/components/settings/NumericInput.stories.tsx",3899,5855],"./subsurface-viewer/src/storybook/components/settings/NumericInput.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/settings/NumericInput.stories.tsx",3899,5855],"./subsurface-viewer/src/storybook/components/settings/ToggleButton.stories":["./packages/subsurface-viewer/src/storybook/components/settings/ToggleButton.stories.tsx",3899,5388],"./subsurface-viewer/src/storybook/components/settings/ToggleButton.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/settings/ToggleButton.stories.tsx",3899,5388],"./subsurface-viewer/src/storybook/examples/CameraControlExamples.stories":["./packages/subsurface-viewer/src/storybook/examples/CameraControlExamples.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4830,4720,1308,2578],"./subsurface-viewer/src/storybook/examples/CameraControlExamples.stories.tsx":["./packages/subsurface-viewer/src/storybook/examples/CameraControlExamples.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4830,4720,1308,2578],"./subsurface-viewer/src/storybook/examples/MultiViewExamples.stories":["./packages/subsurface-viewer/src/storybook/examples/MultiViewExamples.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,2481,4720,1308,7767],"./subsurface-viewer/src/storybook/examples/MultiViewExamples.stories.tsx":["./packages/subsurface-viewer/src/storybook/examples/MultiViewExamples.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,2481,4720,1308,7767],"./subsurface-viewer/src/storybook/examples/RenderingExamples.stories":["./packages/subsurface-viewer/src/storybook/examples/RenderingExamples.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4830,2292,4720,1308,4062],"./subsurface-viewer/src/storybook/examples/RenderingExamples.stories.tsx":["./packages/subsurface-viewer/src/storybook/examples/RenderingExamples.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4830,2292,4720,1308,4062],"./subsurface-viewer/src/storybook/examples/TooltipExamples.stories":["./packages/subsurface-viewer/src/storybook/examples/TooltipExamples.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,8956],"./subsurface-viewer/src/storybook/examples/TooltipExamples.stories.tsx":["./packages/subsurface-viewer/src/storybook/examples/TooltipExamples.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,8956],"./subsurface-viewer/src/storybook/examples/miscExamples.stories":["./packages/subsurface-viewer/src/storybook/examples/miscExamples.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,5143],"./subsurface-viewer/src/storybook/examples/miscExamples.stories.tsx":["./packages/subsurface-viewer/src/storybook/examples/miscExamples.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,5143],"./subsurface-viewer/src/storybook/extensions/SideProjectionExtension.stories":["./packages/subsurface-viewer/src/storybook/extensions/SideProjectionExtension.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,9457],"./subsurface-viewer/src/storybook/extensions/SideProjectionExtension.stories.tsx":["./packages/subsurface-viewer/src/storybook/extensions/SideProjectionExtension.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,9457],"./subsurface-viewer/src/storybook/layers/Axes2DLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/Axes2DLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,8062],"./subsurface-viewer/src/storybook/layers/Axes2DLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/Axes2DLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,8062],"./subsurface-viewer/src/storybook/layers/AxesLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/AxesLayer.stories.tsx",3770,1205,9106],"./subsurface-viewer/src/storybook/layers/AxesLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/AxesLayer.stories.tsx",3770,1205,9106],"./subsurface-viewer/src/storybook/layers/BoxSelectionLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/BoxSelectionLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,3297],"./subsurface-viewer/src/storybook/layers/BoxSelectionLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/BoxSelectionLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,3297],"./subsurface-viewer/src/storybook/layers/Grid3DLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/Grid3DLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,4136],"./subsurface-viewer/src/storybook/layers/Grid3DLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/Grid3DLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,4136],"./subsurface-viewer/src/storybook/layers/Hillshading2DLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/Hillshading2DLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,1798],"./subsurface-viewer/src/storybook/layers/Hillshading2DLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/Hillshading2DLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,1798],"./subsurface-viewer/src/storybook/layers/IntersectionLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/IntersectionLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,4196],"./subsurface-viewer/src/storybook/layers/IntersectionLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/IntersectionLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,4196],"./subsurface-viewer/src/storybook/layers/MapLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/MapLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,7893],"./subsurface-viewer/src/storybook/layers/MapLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/MapLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,7893],"./subsurface-viewer/src/storybook/layers/MapLayerColormap.stories":["./packages/subsurface-viewer/src/storybook/layers/MapLayerColormap.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4830,4720,1308,1418],"./subsurface-viewer/src/storybook/layers/MapLayerColormap.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/MapLayerColormap.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4830,4720,1308,1418],"./subsurface-viewer/src/storybook/layers/NorthArrow3DLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/NorthArrow3DLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,9893],"./subsurface-viewer/src/storybook/layers/NorthArrow3DLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/NorthArrow3DLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,1308,9893],"./subsurface-viewer/src/storybook/layers/PointsLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/PointsLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,5127],"./subsurface-viewer/src/storybook/layers/PointsLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/PointsLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,5127],"./subsurface-viewer/src/storybook/layers/PolylinesLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/PolylinesLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,6602],"./subsurface-viewer/src/storybook/layers/PolylinesLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/PolylinesLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,6602],"./subsurface-viewer/src/storybook/layers/TriangleLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/TriangleLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,1151],"./subsurface-viewer/src/storybook/layers/TriangleLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/TriangleLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,1151],"./subsurface-viewer/src/storybook/layers/WellMarkersLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/WellMarkersLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,6348],"./subsurface-viewer/src/storybook/layers/WellMarkersLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/WellMarkersLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,7573,4720,1308,6348],"./subsurface-viewer/src/storybook/layers/WellsLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/WellsLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4830,4720,1308,9020],"./subsurface-viewer/src/storybook/layers/WellsLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/WellsLayer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4830,4720,1308,9020],"./subsurface-viewer/src/storybook/schemaValidation/schemaValidation.stories":["./packages/subsurface-viewer/src/storybook/schemaValidation/schemaValidation.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,8779],"./subsurface-viewer/src/storybook/schemaValidation/schemaValidation.stories.tsx":["./packages/subsurface-viewer/src/storybook/schemaValidation/schemaValidation.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4720,8779],"./well-completions-plot/src/WellCompletionsPlot.stories":["./packages/well-completions-plot/src/WellCompletionsPlot.stories.tsx",8918,5407],"./well-completions-plot/src/WellCompletionsPlot.stories.tsx":["./packages/well-completions-plot/src/WellCompletionsPlot.stories.tsx",8918,5407],"./well-log-viewer/src/SyncLogViewer.stories":["./packages/well-log-viewer/src/SyncLogViewer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,4830,2506,2117,8796,9888,5161,1214],"./well-log-viewer/src/SyncLogViewer.stories.tsx":["./packages/well-log-viewer/src/SyncLogViewer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,4830,2506,2117,8796,9888,5161,1214],"./well-log-viewer/src/WellLogViewer.stories":["./packages/well-log-viewer/src/WellLogViewer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4830,2506,8796,9888,7806,5161,8480],"./well-log-viewer/src/WellLogViewer.stories.tsx":["./packages/well-log-viewer/src/WellLogViewer.stories.tsx",3770,2843,4553,8813,7395,5527,1581,3899,1205,4091,3381,2618,4830,2506,8796,9888,7806,5161,8480],"./well-log-viewer/src/components/ScaleSelector.stories":["./packages/well-log-viewer/src/components/ScaleSelector.stories.tsx",5119],"./well-log-viewer/src/components/ScaleSelector.stories.tsx":["./packages/well-log-viewer/src/components/ScaleSelector.stories.tsx",5119],"./well-log-viewer/src/components/Scroller.stories":["./packages/well-log-viewer/src/components/Scroller.stories.tsx",6877],"./well-log-viewer/src/components/Scroller.stories.tsx":["./packages/well-log-viewer/src/components/Scroller.stories.tsx",6877],"./well-log-viewer/src/components/WellLogView.stories":["./packages/well-log-viewer/src/components/WellLogView.stories.tsx",3770,2843,4553,8813,7395,5527,1581,2506,8796,7806,5490],"./well-log-viewer/src/components/WellLogView.stories.tsx":["./packages/well-log-viewer/src/components/WellLogView.stories.tsx",3770,2843,4553,8813,7395,5527,1581,2506,8796,7806,5490],"./well-log-viewer/src/components/WellLogViewWithScroller.stories":["./packages/well-log-viewer/src/components/WellLogViewWithScroller.stories.tsx",3770,2843,4553,8813,7395,5527,1581,2506,4417,8796,9888,3429],"./well-log-viewer/src/components/WellLogViewWithScroller.stories.tsx":["./packages/well-log-viewer/src/components/WellLogViewWithScroller.stories.tsx",3770,2843,4553,8813,7395,5527,1581,2506,4417,8796,9888,3429],"./well-log-viewer/src/components/ZoomSlider.stories":["./packages/well-log-viewer/src/components/ZoomSlider.stories.tsx",2843,4830,6749],"./well-log-viewer/src/components/ZoomSlider.stories.tsx":["./packages/well-log-viewer/src/components/ZoomSlider.stories.tsx",2843,4830,6749]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((function(){return __webpack_require__(id)}))}webpackAsyncContext.keys=function(){return Object.keys(map)},webpackAsyncContext.id="./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$",module.exports=webpackAsyncContext},"@storybook/channels":function(module){"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"@storybook/client-logger":function(module){"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"@storybook/core-events/preview-errors":function(module){"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"@storybook/core-events":function(module){"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global":function(module){"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"@storybook/preview-api":function(module){"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__}},function(__webpack_require__){__webpack_require__.O(0,[8182],(function(){return moduleId="./storybook-config-entry.js",__webpack_require__(__webpack_require__.s=moduleId);var moduleId}));__webpack_require__.O()}]); \ No newline at end of file +(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[179],{"./.storybook/preview.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_exports__.default={parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/}}}}},"./storybook-config-entry.js":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("@storybook/channels");const importers=[async path=>{if(!/^\.[\\/](?:packages\/(?!\.)(?=.)[^/]*?\/src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(11);return __webpack_require__("./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)},async path=>{if(!/^\.[\\/](?:packages\/(?!\.)(?=.)[^/]*?\/src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|ts|tsx))$/.exec(path))return;const pathRemainder=path.substring(11);return __webpack_require__("./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$")("./"+pathRemainder)}];const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb((async function importFn(path){for(let i=0;iimporters[i](path),x());if(moduleExports)return moduleExports}var x}),(()=>(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)([__webpack_require__("./node_modules/@storybook/react/dist/entry-preview.mjs"),__webpack_require__("./node_modules/@storybook/react/dist/entry-preview-docs.mjs"),__webpack_require__("./node_modules/@storybook/addon-links/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/docs/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/actions/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/viewport/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/measure/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/outline/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/highlight/preview.js"),__webpack_require__("./node_modules/@storybook/addon-actions/preview.js"),__webpack_require__("./.storybook/preview.tsx")])));window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$":function(module,__unused_webpack_exports,__webpack_require__){var map={"./well-log-viewer/src/Intro.mdx":["./packages/well-log-viewer/src/Intro.mdx",4553,9939,6658]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((function(){return __webpack_require__(id)}))}webpackAsyncContext.keys=function(){return Object.keys(map)},webpackAsyncContext.id="./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackAsyncContext},"./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$":function(module,__unused_webpack_exports,__webpack_require__){var map={"./group-tree-plot/src/storybook/GroupTreePlot.stories":["./packages/group-tree-plot/src/storybook/GroupTreePlot.stories.tsx",3770,8813,6019],"./group-tree-plot/src/storybook/GroupTreePlot.stories.tsx":["./packages/group-tree-plot/src/storybook/GroupTreePlot.stories.tsx",3770,8813,6019],"./subsurface-viewer/src/storybook/components/DistanceScale.stories":["./packages/subsurface-viewer/src/storybook/components/DistanceScale.stories.tsx",3381,785],"./subsurface-viewer/src/storybook/components/DistanceScale.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/DistanceScale.stories.tsx",3381,785],"./subsurface-viewer/src/storybook/components/InfoCard.stories":["./packages/subsurface-viewer/src/storybook/components/InfoCard.stories.tsx",2843,7395,3899,4581,763],"./subsurface-viewer/src/storybook/components/InfoCard.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/InfoCard.stories.tsx",2843,7395,3899,4581,763],"./subsurface-viewer/src/storybook/components/colorLegends/ContinuousLegend.stories":["./packages/subsurface-viewer/src/storybook/components/colorLegends/ContinuousLegend.stories.tsx",3770,2843,4553,8813,7395,6086,1923],"./subsurface-viewer/src/storybook/components/colorLegends/ContinuousLegend.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/colorLegends/ContinuousLegend.stories.tsx",3770,2843,4553,8813,7395,6086,1923],"./subsurface-viewer/src/storybook/components/colorLegends/DiscreteLegend.stories":["./packages/subsurface-viewer/src/storybook/components/colorLegends/DiscreteLegend.stories.tsx",3770,2843,4553,8813,7395,6086,2648],"./subsurface-viewer/src/storybook/components/colorLegends/DiscreteLegend.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/colorLegends/DiscreteLegend.stories.tsx",3770,2843,4553,8813,7395,6086,2648],"./subsurface-viewer/src/storybook/components/colorLegends/IndividualScaleForMap.stories":["./packages/subsurface-viewer/src/storybook/components/colorLegends/IndividualScaleForMap.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,1670],"./subsurface-viewer/src/storybook/components/colorLegends/IndividualScaleForMap.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/colorLegends/IndividualScaleForMap.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,1670],"./subsurface-viewer/src/storybook/components/colorLegends/SingleScaleForMap.stories":["./packages/subsurface-viewer/src/storybook/components/colorLegends/SingleScaleForMap.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,4708],"./subsurface-viewer/src/storybook/components/colorLegends/SingleScaleForMap.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/colorLegends/SingleScaleForMap.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,4708],"./subsurface-viewer/src/storybook/components/settings/NumericInput.stories":["./packages/subsurface-viewer/src/storybook/components/settings/NumericInput.stories.tsx",3899,5855],"./subsurface-viewer/src/storybook/components/settings/NumericInput.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/settings/NumericInput.stories.tsx",3899,5855],"./subsurface-viewer/src/storybook/components/settings/ToggleButton.stories":["./packages/subsurface-viewer/src/storybook/components/settings/ToggleButton.stories.tsx",3899,5388],"./subsurface-viewer/src/storybook/components/settings/ToggleButton.stories.tsx":["./packages/subsurface-viewer/src/storybook/components/settings/ToggleButton.stories.tsx",3899,5388],"./subsurface-viewer/src/storybook/examples/CameraControlExamples.stories":["./packages/subsurface-viewer/src/storybook/examples/CameraControlExamples.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4830,4720,1308,2578],"./subsurface-viewer/src/storybook/examples/CameraControlExamples.stories.tsx":["./packages/subsurface-viewer/src/storybook/examples/CameraControlExamples.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4830,4720,1308,2578],"./subsurface-viewer/src/storybook/examples/MultiViewExamples.stories":["./packages/subsurface-viewer/src/storybook/examples/MultiViewExamples.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,2481,4720,1308,7767],"./subsurface-viewer/src/storybook/examples/MultiViewExamples.stories.tsx":["./packages/subsurface-viewer/src/storybook/examples/MultiViewExamples.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,2481,4720,1308,7767],"./subsurface-viewer/src/storybook/examples/RenderingExamples.stories":["./packages/subsurface-viewer/src/storybook/examples/RenderingExamples.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4830,2292,4720,1308,4062],"./subsurface-viewer/src/storybook/examples/RenderingExamples.stories.tsx":["./packages/subsurface-viewer/src/storybook/examples/RenderingExamples.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4830,2292,4720,1308,4062],"./subsurface-viewer/src/storybook/examples/TooltipExamples.stories":["./packages/subsurface-viewer/src/storybook/examples/TooltipExamples.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,8956],"./subsurface-viewer/src/storybook/examples/TooltipExamples.stories.tsx":["./packages/subsurface-viewer/src/storybook/examples/TooltipExamples.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,8956],"./subsurface-viewer/src/storybook/examples/miscExamples.stories":["./packages/subsurface-viewer/src/storybook/examples/miscExamples.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,5143],"./subsurface-viewer/src/storybook/examples/miscExamples.stories.tsx":["./packages/subsurface-viewer/src/storybook/examples/miscExamples.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,5143],"./subsurface-viewer/src/storybook/extensions/SideProjectionExtension.stories":["./packages/subsurface-viewer/src/storybook/extensions/SideProjectionExtension.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,9457],"./subsurface-viewer/src/storybook/extensions/SideProjectionExtension.stories.tsx":["./packages/subsurface-viewer/src/storybook/extensions/SideProjectionExtension.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,9457],"./subsurface-viewer/src/storybook/layers/Axes2DLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/Axes2DLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,8062],"./subsurface-viewer/src/storybook/layers/Axes2DLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/Axes2DLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,8062],"./subsurface-viewer/src/storybook/layers/AxesLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/AxesLayer.stories.tsx",3770,1205,9106],"./subsurface-viewer/src/storybook/layers/AxesLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/AxesLayer.stories.tsx",3770,1205,9106],"./subsurface-viewer/src/storybook/layers/BoxSelectionLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/BoxSelectionLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,3297],"./subsurface-viewer/src/storybook/layers/BoxSelectionLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/BoxSelectionLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,3297],"./subsurface-viewer/src/storybook/layers/Grid3DLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/Grid3DLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,4136],"./subsurface-viewer/src/storybook/layers/Grid3DLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/Grid3DLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,4136],"./subsurface-viewer/src/storybook/layers/Hillshading2DLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/Hillshading2DLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,1798],"./subsurface-viewer/src/storybook/layers/Hillshading2DLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/Hillshading2DLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,1798],"./subsurface-viewer/src/storybook/layers/IntersectionLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/IntersectionLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,4196],"./subsurface-viewer/src/storybook/layers/IntersectionLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/IntersectionLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,4196],"./subsurface-viewer/src/storybook/layers/MapLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/MapLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,7893],"./subsurface-viewer/src/storybook/layers/MapLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/MapLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,7893],"./subsurface-viewer/src/storybook/layers/MapLayerColormap.stories":["./packages/subsurface-viewer/src/storybook/layers/MapLayerColormap.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4830,4720,1308,1418],"./subsurface-viewer/src/storybook/layers/MapLayerColormap.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/MapLayerColormap.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4830,4720,1308,1418],"./subsurface-viewer/src/storybook/layers/NorthArrow3DLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/NorthArrow3DLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,9893],"./subsurface-viewer/src/storybook/layers/NorthArrow3DLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/NorthArrow3DLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,1308,9893],"./subsurface-viewer/src/storybook/layers/PointsLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/PointsLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,5127],"./subsurface-viewer/src/storybook/layers/PointsLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/PointsLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,5127],"./subsurface-viewer/src/storybook/layers/PolylinesLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/PolylinesLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,6602],"./subsurface-viewer/src/storybook/layers/PolylinesLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/PolylinesLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,6602],"./subsurface-viewer/src/storybook/layers/TriangleLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/TriangleLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,1151],"./subsurface-viewer/src/storybook/layers/TriangleLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/TriangleLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,1151],"./subsurface-viewer/src/storybook/layers/WellMarkersLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/WellMarkersLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,6348],"./subsurface-viewer/src/storybook/layers/WellMarkersLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/WellMarkersLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4408,4720,1308,6348],"./subsurface-viewer/src/storybook/layers/WellsLayer.stories":["./packages/subsurface-viewer/src/storybook/layers/WellsLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4830,4720,1308,9020],"./subsurface-viewer/src/storybook/layers/WellsLayer.stories.tsx":["./packages/subsurface-viewer/src/storybook/layers/WellsLayer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4830,4720,1308,9020],"./subsurface-viewer/src/storybook/schemaValidation/schemaValidation.stories":["./packages/subsurface-viewer/src/storybook/schemaValidation/schemaValidation.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,8779],"./subsurface-viewer/src/storybook/schemaValidation/schemaValidation.stories.tsx":["./packages/subsurface-viewer/src/storybook/schemaValidation/schemaValidation.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4720,8779],"./well-completions-plot/src/WellCompletionsPlot.stories":["./packages/well-completions-plot/src/WellCompletionsPlot.stories.tsx",9686,5407],"./well-completions-plot/src/WellCompletionsPlot.stories.tsx":["./packages/well-completions-plot/src/WellCompletionsPlot.stories.tsx",9686,5407],"./well-log-viewer/src/SyncLogViewer.stories":["./packages/well-log-viewer/src/SyncLogViewer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,4830,2506,2117,8796,9888,5161,1214],"./well-log-viewer/src/SyncLogViewer.stories.tsx":["./packages/well-log-viewer/src/SyncLogViewer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,4830,2506,2117,8796,9888,5161,1214],"./well-log-viewer/src/WellLogViewer.stories":["./packages/well-log-viewer/src/WellLogViewer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4830,2506,8796,9888,7806,5161,8480],"./well-log-viewer/src/WellLogViewer.stories.tsx":["./packages/well-log-viewer/src/WellLogViewer.stories.tsx",3770,2843,4553,8813,7395,6086,1581,3899,1205,4581,3381,1715,4830,2506,8796,9888,7806,5161,8480],"./well-log-viewer/src/components/ScaleSelector.stories":["./packages/well-log-viewer/src/components/ScaleSelector.stories.tsx",5119],"./well-log-viewer/src/components/ScaleSelector.stories.tsx":["./packages/well-log-viewer/src/components/ScaleSelector.stories.tsx",5119],"./well-log-viewer/src/components/Scroller.stories":["./packages/well-log-viewer/src/components/Scroller.stories.tsx",6877],"./well-log-viewer/src/components/Scroller.stories.tsx":["./packages/well-log-viewer/src/components/Scroller.stories.tsx",6877],"./well-log-viewer/src/components/WellLogView.stories":["./packages/well-log-viewer/src/components/WellLogView.stories.tsx",3770,2843,4553,8813,7395,6086,1581,2506,8796,7806,5490],"./well-log-viewer/src/components/WellLogView.stories.tsx":["./packages/well-log-viewer/src/components/WellLogView.stories.tsx",3770,2843,4553,8813,7395,6086,1581,2506,8796,7806,5490],"./well-log-viewer/src/components/WellLogViewWithScroller.stories":["./packages/well-log-viewer/src/components/WellLogViewWithScroller.stories.tsx",3770,2843,4553,8813,7395,6086,1581,2506,4417,8796,9888,3429],"./well-log-viewer/src/components/WellLogViewWithScroller.stories.tsx":["./packages/well-log-viewer/src/components/WellLogViewWithScroller.stories.tsx",3770,2843,4553,8813,7395,6086,1581,2506,4417,8796,9888,3429],"./well-log-viewer/src/components/ZoomSlider.stories":["./packages/well-log-viewer/src/components/ZoomSlider.stories.tsx",2843,4830,6749],"./well-log-viewer/src/components/ZoomSlider.stories.tsx":["./packages/well-log-viewer/src/components/ZoomSlider.stories.tsx",2843,4830,6749]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((function(){return __webpack_require__(id)}))}webpackAsyncContext.keys=function(){return Object.keys(map)},webpackAsyncContext.id="./packages lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/packages\\/(?%21\\.)(?=.)[^/]*?\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.(js%7Cjsx%7Cts%7Ctsx))$",module.exports=webpackAsyncContext},"@storybook/channels":function(module){"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"@storybook/client-logger":function(module){"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"@storybook/core-events/preview-errors":function(module){"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"@storybook/core-events":function(module){"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global":function(module){"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"@storybook/preview-api":function(module){"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__}},function(__webpack_require__){__webpack_require__.O(0,[8182],(function(){return moduleId="./storybook-config-entry.js",__webpack_require__(__webpack_require__.s=moduleId);var moduleId}));__webpack_require__.O()}]); \ No newline at end of file diff --git a/storybook-static/project.json b/storybook-static/project.json index 602dd5d97..0930c2284 100644 --- a/storybook-static/project.json +++ b/storybook-static/project.json @@ -1 +1 @@ -{"generatedAt":1716447398844,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"8.0.4","storybookVersionSpecifier":"^8.0.4","language":"typescript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.0.4"},"@storybook/addon-links":{"version":"8.0.4"},"@storybook/addon-storysource":{"version":"8.0.5"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"},"@storybook/blocks":{"version":"8.0.4"},"@storybook/react":{"version":"8.0.4"},"@storybook/react-webpack5":{"version":"8.0.4"},"@storybook/test":{"version":"8.0.4"},"@storybook/test-runner":{"version":"0.17.0"},"storybook":{"version":"8.0.4"}},"addons":{"$SNIP/node_modules/@storybook/addon-links":{"version":null},"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-actions":{"version":null},"$SNIP/node_modules/@storybook/addon-storysource":{"version":null},"$SNIP/node_modules/@storybook/addon-webpack5-compiler-babel":{"version":null}}} +{"generatedAt":1716451615340,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"8.0.4","storybookVersionSpecifier":"^8.0.4","language":"typescript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.0.4"},"@storybook/addon-links":{"version":"8.0.4"},"@storybook/addon-storysource":{"version":"8.0.5"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"},"@storybook/blocks":{"version":"8.0.4"},"@storybook/react":{"version":"8.0.4"},"@storybook/react-webpack5":{"version":"8.0.4"},"@storybook/test":{"version":"8.0.4"},"@storybook/test-runner":{"version":"0.17.0"},"storybook":{"version":"8.0.4"}},"addons":{"$SNIP/node_modules/@storybook/addon-links":{"version":null},"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-actions":{"version":null},"$SNIP/node_modules/@storybook/addon-storysource":{"version":null},"$SNIP/node_modules/@storybook/addon-webpack5-compiler-babel":{"version":null}}} diff --git a/storybook-static/runtime~main.03fec69b.iframe.bundle.js b/storybook-static/runtime~main.3ede7b7b.iframe.bundle.js similarity index 90% rename from storybook-static/runtime~main.03fec69b.iframe.bundle.js rename to storybook-static/runtime~main.3ede7b7b.iframe.bundle.js index 04873583c..9192ba396 100644 --- a/storybook-static/runtime~main.03fec69b.iframe.bundle.js +++ b/storybook-static/runtime~main.3ede7b7b.iframe.bundle.js @@ -1 +1 @@ -!function(){"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdD=function(){throw new Error("define cannot be used indirect")},__webpack_require__.amdO={},deferred=[],__webpack_require__.O=function(result,chunkIds,fn,priority){if(!chunkIds){var notFulfilled=1/0;for(i=0;i=priority)&&Object.keys(__webpack_require__.O).every((function(key){return __webpack_require__.O[key](chunkIds[j])}))?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?function(obj){return Object.getPrototypeOf(obj)}:function(obj){return obj.__proto__},__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((function(key){def[key]=function(){return value[key]}}));return def.default=function(){return value},__webpack_require__.d(ns,def),ns},__webpack_require__.d=function(exports,definition){for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=function(chunkId){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(promises,key){return __webpack_require__.f[key](chunkId,promises),promises}),[]))},__webpack_require__.u=function(chunkId){return({763:"subsurface-viewer-src-storybook-components-InfoCard-stories",785:"subsurface-viewer-src-storybook-components-DistanceScale-stories",1151:"subsurface-viewer-src-storybook-layers-TriangleLayer-stories",1214:"well-log-viewer-src-SyncLogViewer-stories",1418:"subsurface-viewer-src-storybook-layers-MapLayerColormap-stories",1670:"subsurface-viewer-src-storybook-components-colorLegends-IndividualScaleForMap-stories",1798:"subsurface-viewer-src-storybook-layers-Hillshading2DLayer-stories",1923:"subsurface-viewer-src-storybook-components-colorLegends-ContinuousLegend-stories",2578:"subsurface-viewer-src-storybook-examples-CameraControlExamples-stories",2648:"subsurface-viewer-src-storybook-components-colorLegends-DiscreteLegend-stories",3297:"subsurface-viewer-src-storybook-layers-BoxSelectionLayer-stories",3429:"well-log-viewer-src-components-WellLogViewWithScroller-stories",4062:"subsurface-viewer-src-storybook-examples-RenderingExamples-stories",4136:"subsurface-viewer-src-storybook-layers-Grid3DLayer-stories",4196:"subsurface-viewer-src-storybook-layers-IntersectionLayer-stories",4708:"subsurface-viewer-src-storybook-components-colorLegends-SingleScaleForMap-stories",5119:"well-log-viewer-src-components-ScaleSelector-stories",5127:"subsurface-viewer-src-storybook-layers-PointsLayer-stories",5143:"subsurface-viewer-src-storybook-examples-miscExamples-stories",5388:"subsurface-viewer-src-storybook-components-settings-ToggleButton-stories",5407:"well-completions-plot-src-WellCompletionsPlot-stories",5490:"well-log-viewer-src-components-WellLogView-stories",5855:"subsurface-viewer-src-storybook-components-settings-NumericInput-stories",6019:"group-tree-plot-src-storybook-GroupTreePlot-stories",6348:"subsurface-viewer-src-storybook-layers-WellMarkersLayer-stories",6602:"subsurface-viewer-src-storybook-layers-PolylinesLayer-stories",6658:"well-log-viewer-src-Intro-mdx",6749:"well-log-viewer-src-components-ZoomSlider-stories",6877:"well-log-viewer-src-components-Scroller-stories",7767:"subsurface-viewer-src-storybook-examples-MultiViewExamples-stories",7893:"subsurface-viewer-src-storybook-layers-MapLayer-stories",8062:"subsurface-viewer-src-storybook-layers-Axes2DLayer-stories",8480:"well-log-viewer-src-WellLogViewer-stories",8779:"subsurface-viewer-src-storybook-schemaValidation-schemaValidation-stories",8956:"subsurface-viewer-src-storybook-examples-TooltipExamples-stories",9020:"subsurface-viewer-src-storybook-layers-WellsLayer-stories",9106:"subsurface-viewer-src-storybook-layers-AxesLayer-stories",9457:"subsurface-viewer-src-storybook-extensions-SideProjectionExtension-stories",9893:"subsurface-viewer-src-storybook-layers-NorthArrow3DLayer-stories"}[chunkId]||chunkId)+"."+{679:"e2459ad8",763:"e042d161",785:"c355840b",1151:"9c8d33f1",1205:"57b2f649",1214:"01a32396",1308:"99cef1dc",1418:"ff323ec0",1581:"893263bb",1670:"b7b50246",1798:"9b5b51fa",1923:"b82a6021",2117:"7d92982a",2292:"052798b8",2481:"e531c8f5",2506:"15ab421a",2578:"dd6a11c2",2618:"38c5e2aa",2648:"eb7ba70a",2843:"25502106",3297:"244d8c57",3381:"65db800c",3429:"015405e8",3770:"d65cb434",3899:"4bbb3099",4062:"9b558abc",4091:"c8ab2006",4136:"ed368d84",4196:"530af01f",4417:"0f0e29ca",4424:"b360f329",4553:"d03a4d89",4708:"6331ff91",4720:"31a13ec7",4830:"0759a07e",5119:"47fa8fcb",5127:"807e6d42",5143:"69d54bc1",5161:"f3283745",5388:"6eae0400",5407:"c9e5ba1f",5490:"8b97f5c2",5527:"c1f603f4",5721:"4378e75f",5805:"422e3ac7",5855:"5b9ef0bd",6019:"ddf0b992",6348:"fb83410d",6602:"705117df",6658:"d6756848",6749:"36dbfda3",6877:"668cfc79",7395:"a9f4a722",7573:"daecb32a",7767:"6c95037b",7806:"6484b6ae",7893:"4a031609",8062:"54ecfec3",8480:"96ea99b0",8540:"3a51c5ec",8779:"34d77cdb",8796:"a7f048d0",8813:"6be39a6b",8918:"8a963d41",8956:"9df56318",9020:"de7f47c7",9106:"203eaab8",9433:"4cd53f16",9457:"e94c5a88",9888:"ef7f5201",9893:"e937bd3a",9939:"1ccb2b48"}[chunkId]+".iframe.bundle.js"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(module){return(module=Object.create(module)).children||(module.children=[]),Object.defineProperty(module,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+module.id)}}),module},__webpack_require__.o=function(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)},inProgress={},__webpack_require__.l=function(url,done,key,chunkId){if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i=priority)&&Object.keys(__webpack_require__.O).every((function(key){return __webpack_require__.O[key](chunkIds[j])}))?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?function(obj){return Object.getPrototypeOf(obj)}:function(obj){return obj.__proto__},__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((function(key){def[key]=function(){return value[key]}}));return def.default=function(){return value},__webpack_require__.d(ns,def),ns},__webpack_require__.d=function(exports,definition){for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=function(chunkId){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(promises,key){return __webpack_require__.f[key](chunkId,promises),promises}),[]))},__webpack_require__.u=function(chunkId){return({763:"subsurface-viewer-src-storybook-components-InfoCard-stories",785:"subsurface-viewer-src-storybook-components-DistanceScale-stories",1151:"subsurface-viewer-src-storybook-layers-TriangleLayer-stories",1214:"well-log-viewer-src-SyncLogViewer-stories",1418:"subsurface-viewer-src-storybook-layers-MapLayerColormap-stories",1670:"subsurface-viewer-src-storybook-components-colorLegends-IndividualScaleForMap-stories",1798:"subsurface-viewer-src-storybook-layers-Hillshading2DLayer-stories",1923:"subsurface-viewer-src-storybook-components-colorLegends-ContinuousLegend-stories",2578:"subsurface-viewer-src-storybook-examples-CameraControlExamples-stories",2648:"subsurface-viewer-src-storybook-components-colorLegends-DiscreteLegend-stories",3297:"subsurface-viewer-src-storybook-layers-BoxSelectionLayer-stories",3429:"well-log-viewer-src-components-WellLogViewWithScroller-stories",4062:"subsurface-viewer-src-storybook-examples-RenderingExamples-stories",4136:"subsurface-viewer-src-storybook-layers-Grid3DLayer-stories",4196:"subsurface-viewer-src-storybook-layers-IntersectionLayer-stories",4708:"subsurface-viewer-src-storybook-components-colorLegends-SingleScaleForMap-stories",5119:"well-log-viewer-src-components-ScaleSelector-stories",5127:"subsurface-viewer-src-storybook-layers-PointsLayer-stories",5143:"subsurface-viewer-src-storybook-examples-miscExamples-stories",5388:"subsurface-viewer-src-storybook-components-settings-ToggleButton-stories",5407:"well-completions-plot-src-WellCompletionsPlot-stories",5490:"well-log-viewer-src-components-WellLogView-stories",5855:"subsurface-viewer-src-storybook-components-settings-NumericInput-stories",6019:"group-tree-plot-src-storybook-GroupTreePlot-stories",6348:"subsurface-viewer-src-storybook-layers-WellMarkersLayer-stories",6602:"subsurface-viewer-src-storybook-layers-PolylinesLayer-stories",6658:"well-log-viewer-src-Intro-mdx",6749:"well-log-viewer-src-components-ZoomSlider-stories",6877:"well-log-viewer-src-components-Scroller-stories",7767:"subsurface-viewer-src-storybook-examples-MultiViewExamples-stories",7893:"subsurface-viewer-src-storybook-layers-MapLayer-stories",8062:"subsurface-viewer-src-storybook-layers-Axes2DLayer-stories",8480:"well-log-viewer-src-WellLogViewer-stories",8779:"subsurface-viewer-src-storybook-schemaValidation-schemaValidation-stories",8956:"subsurface-viewer-src-storybook-examples-TooltipExamples-stories",9020:"subsurface-viewer-src-storybook-layers-WellsLayer-stories",9106:"subsurface-viewer-src-storybook-layers-AxesLayer-stories",9457:"subsurface-viewer-src-storybook-extensions-SideProjectionExtension-stories",9893:"subsurface-viewer-src-storybook-layers-NorthArrow3DLayer-stories"}[chunkId]||chunkId)+"."+{679:"e2459ad8",763:"61c279b5",785:"c355840b",1151:"a028c753",1205:"f2395099",1214:"01a32396",1308:"99cef1dc",1418:"ff323ec0",1581:"893263bb",1670:"b7b50246",1715:"794845d2",1798:"9b5b51fa",1923:"b82a6021",2117:"168fb347",2292:"052798b8",2481:"e531c8f5",2506:"15ab421a",2578:"dd6a11c2",2648:"eb7ba70a",2843:"7673fe39",3297:"244d8c57",3381:"65db800c",3429:"015405e8",3770:"d65cb434",3899:"b00e7fde",4062:"9b558abc",4136:"fd38759f",4196:"530af01f",4408:"9933b3ff",4417:"0f0e29ca",4424:"b360f329",4553:"d03a4d89",4581:"0024a2c9",4708:"6331ff91",4720:"f67d2ab2",4830:"0759a07e",5119:"47fa8fcb",5127:"702878b4",5143:"fa5ab57e",5161:"f3283745",5388:"d491b9ac",5407:"e69b7deb",5490:"8b97f5c2",5721:"4378e75f",5805:"422e3ac7",5855:"1ca81fcd",6019:"ddf0b992",6086:"9cc5e4f5",6348:"cb810eea",6602:"b2b81785",6658:"d6756848",6749:"36dbfda3",6877:"668cfc79",7395:"a9f4a722",7767:"6c95037b",7806:"6484b6ae",7893:"4a031609",8062:"54ecfec3",8480:"c1ccbb10",8540:"3a51c5ec",8779:"34d77cdb",8796:"a7f048d0",8813:"6be39a6b",8956:"9df56318",9020:"1a1ea523",9106:"203eaab8",9433:"4cd53f16",9457:"e94c5a88",9686:"11306af2",9888:"ef7f5201",9893:"e937bd3a",9939:"1ccb2b48"}[chunkId]+".iframe.bundle.js"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(module){return(module=Object.create(module)).children||(module.children=[]),Object.defineProperty(module,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+module.id)}}),module},__webpack_require__.o=function(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)},inProgress={},__webpack_require__.l=function(url,done,key,chunkId){if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;ireact__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_InfoCard__WEBPACK_IMPORTED_MODULE_1__.Z,args)},MutipleProperties={args:{pickInfos:[{x:152,y:254,coordinate:[111,222]},{layer:{id:"wells-layer"},property:{name:"Poro WellA",value:123}}]}};SingleProperty.parameters={...SingleProperty.parameters,docs:{...SingleProperty.parameters?.docs,source:{originalSource:"{\n args: {\n pickInfos: [({\n x: 152,\n y: 254,\n coordinate: [111, 222]\n } as LayerPickInfo)]\n },\n render: args => \n}",...SingleProperty.parameters?.docs?.source}}},MutipleProperties.parameters={...MutipleProperties.parameters,docs:{...MutipleProperties.parameters?.docs,source:{originalSource:'{\n args: {\n pickInfos: [({\n x: 152,\n y: 254,\n coordinate: [111, 222]\n } as LayerPickInfo), {\n layer: {\n id: "wells-layer"\n },\n property: {\n name: "Poro WellA",\n value: 123\n }\n }]\n }\n}',...MutipleProperties.parameters?.docs?.source}}};const __namedExportsOrder=["SingleProperty","MutipleProperties"]},"./packages/subsurface-viewer/src/components/InfoCard.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_mui_material__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@mui/material/Table/Table.js"),_mui_material__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@mui/material/TableCell/TableCell.js"),_mui_material__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@mui/material/TableRow/TableRow.js"),_mui_material__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@mui/material/Collapse/Collapse.js"),_mui_material__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@mui/material/TableBody/TableBody.js"),_mui_material__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@mui/material/TableContainer/TableContainer.js"),_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Icon/index.js"),_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Button/index.js"),_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-icons/dist/esm/index.js"),_mui_system__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@mui/system/esm/styled.js"),d3_color__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/d3-color/src/color.js");_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J.add({arrow_drop_up:_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__.sBW,arrow_drop_down:_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__._Oe});const StyledTable=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_4__.Z)({"& > *":{backgroundColor:"#ffffffcc",color:"#000000ff",border:"2px solid #ccc",padding:"0px",borderRadius:"5px",position:"absolute",bottom:0,left:0,marginLeft:"3px",marginBottom:"3px"}}),StyledTableCell=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z)({border:"none",padding:0,width:"20px"}),StyledTableRow=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_6__.Z)({"& > *":{padding:0}});function Row(props){const{layer_data:layer_data}=props,[open,setOpen]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!0);return 0==layer_data.properties?.length?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableCell,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_7__.z,{style:{padding:0},variant:"ghost",onClick:()=>setOpen(!open)},open?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J,{color:"currentColor",name:"arrow_drop_up"}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J,{color:"currentColor",name:"arrow_drop_down"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,null," ",layer_data.layerName," ")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{paddingBottom:0,paddingTop:0},colSpan:2},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_8__.Z,{in:open,timeout:"auto",unmountOnExit:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_4__.Z,{size:"small","aria-label":"properties"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__.Z,null,layer_data.properties?.map((propertyRow=>{return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,{key:propertyRow.name},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{border:"none",paddingLeft:10,paddingRight:10}},propertyRow.color&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{color:(0,d3_color__WEBPACK_IMPORTED_MODULE_10__.B8)(...propertyRow.color).toString()}},"⬤"),propertyRow.name),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{border:"none",textAlign:"right"}},"number"==typeof propertyRow.value?(num=propertyRow.value,parseFloat(num.toExponential(Math.max(1,2+Math.log10(Math.abs(num)))))):propertyRow.value));var num}))))))))}const InfoCard=props=>{const[infoCardData,setInfoCardData]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if(0===props.pickInfos.length)return void setInfoCardData(null);const topObject=props.pickInfos[0];if(void 0===topObject.coordinate||topObject.coordinate.length<2)return;const xy_properties=[];xy_properties.push({name:"x",value:Number(topObject.coordinate[0]).toFixed(2).toString()+" m"}),xy_properties.push({name:"y",value:Number(topObject.coordinate[1]).toFixed(2).toString()+" m"});const info_card_data=[];info_card_data.push({layerName:"Position",properties:xy_properties}),props.pickInfos.forEach((info=>{const layer_properties=info.properties,layer_name=info.layer?.props?.name,zValue=info.propertyValue;if(void 0!==zValue){const property=xy_properties.find((item=>item.name===layer_name));property?property.value=zValue:xy_properties.push({name:layer_name,value:zValue})}const layer=info_card_data.find((item=>item.layerName===layer_name));layer?layer_properties?.forEach((layer_prop=>{const property=layer.properties?.find((item=>item.name===layer_prop.name));property?property.value=layer_prop.value:layer.properties?.push(layer_prop)})):info_card_data.push({layerName:layer_name||"unknown-layer",properties:layer_properties})})),setInfoCardData(info_card_data)}),[props.pickInfos]),infoCardData&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_11__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTable,{"aria-label":"info-card"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__.Z,null,infoCardData.map((card_data=>card_data.properties&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,{key:card_data.layerName,layer_data:card_data}))))))};__webpack_exports__.Z=InfoCard,InfoCard.__docgenInfo={description:"",methods:[],displayName:"InfoCard",props:{pickInfos:{required:!0,tsType:{name:"Array",elements:[{name:"LayerPickInfo"}],raw:"LayerPickInfo[]"},description:"List of JSON object describing picking information of layers\nthat are under the cursor."}}}},"./node_modules/d3-color/src/color.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{B8:function(){return rgb},Il:function(){return Color},J5:function(){return brighter},SU:function(){return rgbConvert},Ss:function(){return Rgb},ZP:function(){return color},xV:function(){return darker}});var _define_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/d3-color/src/define.js");function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function color_formatHex(){return this.rgb().formatHex()}function color_formatRgb(){return this.rgb().formatRgb()}function color(format){var m,l;return format=(format+"").trim().toLowerCase(),(m=reHex.exec(format))?(l=m[1].length,m=parseInt(m[1],16),6===l?rgbn(m):3===l?new Rgb(m>>8&15|m>>4&240,m>>4&15|240&m,(15&m)<<4|15&m,1):8===l?rgba(m>>24&255,m>>16&255,m>>8&255,(255&m)/255):4===l?rgba(m>>12&15|m>>8&240,m>>8&15|m>>4&240,m>>4&15|240&m,((15&m)<<4|15&m)/255):null):(m=reRgbInteger.exec(format))?new Rgb(m[1],m[2],m[3],1):(m=reRgbPercent.exec(format))?new Rgb(255*m[1]/100,255*m[2]/100,255*m[3]/100,1):(m=reRgbaInteger.exec(format))?rgba(m[1],m[2],m[3],m[4]):(m=reRgbaPercent.exec(format))?rgba(255*m[1]/100,255*m[2]/100,255*m[3]/100,m[4]):(m=reHslPercent.exec(format))?hsla(m[1],m[2]/100,m[3]/100,1):(m=reHslaPercent.exec(format))?hsla(m[1],m[2]/100,m[3]/100,m[4]):named.hasOwnProperty(format)?rgbn(named[format]):"transparent"===format?new Rgb(NaN,NaN,NaN,0):null}function rgbn(n){return new Rgb(n>>16&255,n>>8&255,255&n,1)}function rgba(r,g,b,a){return a<=0&&(r=g=b=NaN),new Rgb(r,g,b,a)}function rgbConvert(o){return o instanceof Color||(o=color(o)),o?new Rgb((o=o.rgb()).r,o.g,o.b,o.opacity):new Rgb}function rgb(r,g,b,opacity){return 1===arguments.length?rgbConvert(r):new Rgb(r,g,b,null==opacity?1:opacity)}function Rgb(r,g,b,opacity){this.r=+r,this.g=+g,this.b=+b,this.opacity=+opacity}function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatRgb(){const a=clampa(this.opacity);return`${1===a?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${1===a?")":`, ${a})`}`}function clampa(opacity){return isNaN(opacity)?1:Math.max(0,Math.min(1,opacity))}function clampi(value){return Math.max(0,Math.min(255,Math.round(value)||0))}function hex(value){return((value=clampi(value))<16?"0":"")+value.toString(16)}function hsla(h,s,l,a){return a<=0?h=s=l=NaN:l<=0||l>=1?h=s=NaN:s<=0&&(h=NaN),new Hsl(h,s,l,a)}function hslConvert(o){if(o instanceof Hsl)return new Hsl(o.h,o.s,o.l,o.opacity);if(o instanceof Color||(o=color(o)),!o)return new Hsl;if(o instanceof Hsl)return o;var r=(o=o.rgb()).r/255,g=o.g/255,b=o.b/255,min=Math.min(r,g,b),max=Math.max(r,g,b),h=NaN,s=max-min,l=(max+min)/2;return s?(h=r===max?(g-b)/s+6*(g0&&l<1?0:h,new Hsl(h,s,l,o.opacity)}function Hsl(h,s,l,opacity){this.h=+h,this.s=+s,this.l=+l,this.opacity=+opacity}function clamph(value){return(value=(value||0)%360)<0?value+360:value}function clampt(value){return Math.max(0,Math.min(1,value||0))}function hsl2rgb(h,m1,m2){return 255*(h<60?m1+(m2-m1)*h/60:h<180?m2:h<240?m1+(m2-m1)*(240-h)/60:m1)}(0,_define_js__WEBPACK_IMPORTED_MODULE_0__.Z)(Color,color,{copy(channels){return Object.assign(new this.constructor,this,channels)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:function color_formatHex8(){return this.rgb().formatHex8()},formatHsl:function color_formatHsl(){return hslConvert(this).formatHsl()},formatRgb:color_formatRgb,toString:color_formatRgb}),(0,_define_js__WEBPACK_IMPORTED_MODULE_0__.Z)(Rgb,rgb,(0,_define_js__WEBPACK_IMPORTED_MODULE_0__.l)(Color,{brighter(k){return k=null==k?brighter:Math.pow(brighter,k),new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},darker(k){return k=null==k?darker:Math.pow(darker,k),new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rgb_formatRgb,toString:rgb_formatRgb})),(0,_define_js__WEBPACK_IMPORTED_MODULE_0__.Z)(Hsl,(function hsl(h,s,l,opacity){return 1===arguments.length?hslConvert(h):new Hsl(h,s,l,null==opacity?1:opacity)}),(0,_define_js__WEBPACK_IMPORTED_MODULE_0__.l)(Color,{brighter(k){return k=null==k?brighter:Math.pow(brighter,k),new Hsl(this.h,this.s,this.l*k,this.opacity)},darker(k){return k=null==k?darker:Math.pow(darker,k),new Hsl(this.h,this.s,this.l*k,this.opacity)},rgb(){var h=this.h%360+360*(this.h<0),s=isNaN(h)||isNaN(this.s)?0:this.s,l=this.l,m2=l+(l<.5?l:1-l)*s,m1=2*l-m2;return new Rgb(hsl2rgb(h>=240?h-240:h+120,m1,m2),hsl2rgb(h,m1,m2),hsl2rgb(h<120?h+240:h-120,m1,m2),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const a=clampa(this.opacity);return`${1===a?"hsl(":"hsla("}${clamph(this.h)}, ${100*clampt(this.s)}%, ${100*clampt(this.l)}%${1===a?")":`, ${a})`}`}}))},"./node_modules/d3-color/src/define.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function __WEBPACK_DEFAULT_EXPORT__(constructor,factory,prototype){constructor.prototype=factory.prototype=prototype,prototype.constructor=constructor}function extend(parent,definition){var prototype=Object.create(parent.prototype);for(var key in definition)prototype[key]=definition[key];return prototype}__webpack_require__.d(__webpack_exports__,{Z:function(){return __WEBPACK_DEFAULT_EXPORT__},l:function(){return extend}})}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-components-InfoCard-stories.e042d161.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-components-InfoCard-stories.e042d161.iframe.bundle.js deleted file mode 100644 index e09a7d939..000000000 --- a/storybook-static/subsurface-viewer-src-storybook-components-InfoCard-stories.e042d161.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[763],{"./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return _inheritsLoose}});var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,(0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__.Z)(subClass,superClass)}},"./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}__webpack_require__.d(__webpack_exports__,{Z:function(){return _setPrototypeOf}})},"./packages/subsurface-viewer/src/storybook/components/InfoCard.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{MutipleProperties:function(){return MutipleProperties},SingleProperty:function(){return SingleProperty},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_components_InfoCard__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/src/components/InfoCard.tsx");const stories={component:_components_InfoCard__WEBPACK_IMPORTED_MODULE_1__.Z,title:"SubsurfaceViewer/Components/InfoCard"};__webpack_exports__.default=stories;const SingleProperty={args:{pickInfos:[{x:152,y:254,coordinate:[111,222]}]},render:args=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_InfoCard__WEBPACK_IMPORTED_MODULE_1__.Z,args)},MutipleProperties={args:{pickInfos:[{x:152,y:254,coordinate:[111,222]},{layer:{id:"wells-layer"},property:{name:"Poro WellA",value:123}}]}};SingleProperty.parameters={...SingleProperty.parameters,docs:{...SingleProperty.parameters?.docs,source:{originalSource:"{\n args: {\n pickInfos: [({\n x: 152,\n y: 254,\n coordinate: [111, 222]\n } as LayerPickInfo)]\n },\n render: args => \n}",...SingleProperty.parameters?.docs?.source}}},MutipleProperties.parameters={...MutipleProperties.parameters,docs:{...MutipleProperties.parameters?.docs,source:{originalSource:'{\n args: {\n pickInfos: [({\n x: 152,\n y: 254,\n coordinate: [111, 222]\n } as LayerPickInfo), {\n layer: {\n id: "wells-layer"\n },\n property: {\n name: "Poro WellA",\n value: 123\n }\n }]\n }\n}',...MutipleProperties.parameters?.docs?.source}}};const __namedExportsOrder=["SingleProperty","MutipleProperties"]},"./packages/subsurface-viewer/src/components/InfoCard.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_mui_material__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@mui/material/Table/Table.js"),_mui_material__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@mui/material/TableCell/TableCell.js"),_mui_material__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@mui/material/TableRow/TableRow.js"),_mui_material__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@mui/material/Collapse/Collapse.js"),_mui_material__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@mui/material/TableBody/TableBody.js"),_mui_material__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@mui/material/TableContainer/TableContainer.js"),_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Icon/index.js"),_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Button/index.js"),_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@equinor/eds-icons/dist/esm/index.js"),_mui_system__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@mui/system/esm/styled.js"),d3_color__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/d3-color/src/color.js");_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J.add({arrow_drop_up:_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__.sBW,arrow_drop_down:_equinor_eds_icons__WEBPACK_IMPORTED_MODULE_1__._Oe});const StyledTable=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_4__.Z)({"& > *":{backgroundColor:"#ffffffcc",color:"#000000ff",border:"2px solid #ccc",padding:"0px",borderRadius:"5px",position:"absolute",bottom:0,left:0,marginLeft:"3px",marginBottom:"3px"}}),StyledTableCell=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z)({border:"none",padding:0,width:"20px"}),StyledTableRow=(0,_mui_system__WEBPACK_IMPORTED_MODULE_3__.Z)(_mui_material__WEBPACK_IMPORTED_MODULE_6__.Z)({"& > *":{padding:0}});function Row(props){const{layer_data:layer_data}=props,[open,setOpen]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!0);return 0==layer_data.properties?.length?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableCell,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_7__.z,{style:{padding:0},variant:"ghost",onClick:()=>setOpen(!open)},open?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J,{color:"currentColor",name:"arrow_drop_up"}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(_equinor_eds_core_react__WEBPACK_IMPORTED_MODULE_2__.J,{color:"currentColor",name:"arrow_drop_down"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,null," ",layer_data.layerName," ")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{paddingBottom:0,paddingTop:0},colSpan:2},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_8__.Z,{in:open,timeout:"auto",unmountOnExit:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_4__.Z,{size:"small","aria-label":"properties"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__.Z,null,layer_data.properties?.map((propertyRow=>{return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTableRow,{key:propertyRow.name},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{border:"none",paddingLeft:10,paddingRight:10}},propertyRow.color&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{color:(0,d3_color__WEBPACK_IMPORTED_MODULE_10__.B8)(...propertyRow.color).toString()}},"⬤"),propertyRow.name),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__.Z,{style:{border:"none",textAlign:"right"}},"number"==typeof propertyRow.value?(num=propertyRow.value,parseFloat(num.toExponential(Math.max(1,2+Math.log10(Math.abs(num)))))):propertyRow.value));var num}))))))))}const InfoCard=props=>{const[infoCardData,setInfoCardData]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if(0===props.pickInfos.length)return void setInfoCardData(null);const topObject=props.pickInfos[0];if(void 0===topObject.coordinate||topObject.coordinate.length<2)return;const xy_properties=[];xy_properties.push({name:"x",value:Number(topObject.coordinate[0]).toFixed(2).toString()+" m"}),xy_properties.push({name:"y",value:Number(topObject.coordinate[1]).toFixed(2).toString()+" m"});const info_card_data=[];info_card_data.push({layerName:"Position",properties:xy_properties}),props.pickInfos.forEach((info=>{const layer_properties=info.properties,layer_name=info.layer?.props?.name,zValue=info.propertyValue;if(void 0!==zValue){const property=xy_properties.find((item=>item.name===layer_name));property?property.value=zValue:xy_properties.push({name:layer_name,value:zValue})}const layer=info_card_data.find((item=>item.layerName===layer_name));layer?layer_properties?.forEach((layer_prop=>{const property=layer.properties?.find((item=>item.name===layer_prop.name));property?property.value=layer_prop.value:layer.properties?.push(layer_prop)})):info_card_data.push({layerName:layer_name||"unknown-layer",properties:layer_properties})})),setInfoCardData(info_card_data)}),[props.pickInfos]),infoCardData&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_11__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTable,{"aria-label":"info-card"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__.Z,null,infoCardData.map((card_data=>card_data.properties&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,{key:card_data.layerName,layer_data:card_data}))))))};__webpack_exports__.Z=InfoCard,InfoCard.__docgenInfo={description:"",methods:[],displayName:"InfoCard",props:{pickInfos:{required:!0,tsType:{name:"Array",elements:[{name:"LayerPickInfo"}],raw:"LayerPickInfo[]"},description:"List of JSON object describing picking information of layers\nthat are under the cursor."}}}},"./node_modules/d3-color/src/color.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{B8:function(){return rgb},Il:function(){return Color},J5:function(){return brighter},SU:function(){return rgbConvert},Ss:function(){return Rgb},ZP:function(){return color},xV:function(){return darker}});var _define_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/d3-color/src/define.js");function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function color_formatHex(){return this.rgb().formatHex()}function color_formatRgb(){return this.rgb().formatRgb()}function color(format){var m,l;return format=(format+"").trim().toLowerCase(),(m=reHex.exec(format))?(l=m[1].length,m=parseInt(m[1],16),6===l?rgbn(m):3===l?new Rgb(m>>8&15|m>>4&240,m>>4&15|240&m,(15&m)<<4|15&m,1):8===l?rgba(m>>24&255,m>>16&255,m>>8&255,(255&m)/255):4===l?rgba(m>>12&15|m>>8&240,m>>8&15|m>>4&240,m>>4&15|240&m,((15&m)<<4|15&m)/255):null):(m=reRgbInteger.exec(format))?new Rgb(m[1],m[2],m[3],1):(m=reRgbPercent.exec(format))?new Rgb(255*m[1]/100,255*m[2]/100,255*m[3]/100,1):(m=reRgbaInteger.exec(format))?rgba(m[1],m[2],m[3],m[4]):(m=reRgbaPercent.exec(format))?rgba(255*m[1]/100,255*m[2]/100,255*m[3]/100,m[4]):(m=reHslPercent.exec(format))?hsla(m[1],m[2]/100,m[3]/100,1):(m=reHslaPercent.exec(format))?hsla(m[1],m[2]/100,m[3]/100,m[4]):named.hasOwnProperty(format)?rgbn(named[format]):"transparent"===format?new Rgb(NaN,NaN,NaN,0):null}function rgbn(n){return new Rgb(n>>16&255,n>>8&255,255&n,1)}function rgba(r,g,b,a){return a<=0&&(r=g=b=NaN),new Rgb(r,g,b,a)}function rgbConvert(o){return o instanceof Color||(o=color(o)),o?new Rgb((o=o.rgb()).r,o.g,o.b,o.opacity):new Rgb}function rgb(r,g,b,opacity){return 1===arguments.length?rgbConvert(r):new Rgb(r,g,b,null==opacity?1:opacity)}function Rgb(r,g,b,opacity){this.r=+r,this.g=+g,this.b=+b,this.opacity=+opacity}function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatRgb(){const a=clampa(this.opacity);return`${1===a?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${1===a?")":`, ${a})`}`}function clampa(opacity){return isNaN(opacity)?1:Math.max(0,Math.min(1,opacity))}function clampi(value){return Math.max(0,Math.min(255,Math.round(value)||0))}function hex(value){return((value=clampi(value))<16?"0":"")+value.toString(16)}function hsla(h,s,l,a){return a<=0?h=s=l=NaN:l<=0||l>=1?h=s=NaN:s<=0&&(h=NaN),new Hsl(h,s,l,a)}function hslConvert(o){if(o instanceof Hsl)return new Hsl(o.h,o.s,o.l,o.opacity);if(o instanceof Color||(o=color(o)),!o)return new Hsl;if(o instanceof Hsl)return o;var r=(o=o.rgb()).r/255,g=o.g/255,b=o.b/255,min=Math.min(r,g,b),max=Math.max(r,g,b),h=NaN,s=max-min,l=(max+min)/2;return s?(h=r===max?(g-b)/s+6*(g0&&l<1?0:h,new Hsl(h,s,l,o.opacity)}function Hsl(h,s,l,opacity){this.h=+h,this.s=+s,this.l=+l,this.opacity=+opacity}function clamph(value){return(value=(value||0)%360)<0?value+360:value}function clampt(value){return Math.max(0,Math.min(1,value||0))}function hsl2rgb(h,m1,m2){return 255*(h<60?m1+(m2-m1)*h/60:h<180?m2:h<240?m1+(m2-m1)*(240-h)/60:m1)}(0,_define_js__WEBPACK_IMPORTED_MODULE_0__.Z)(Color,color,{copy(channels){return Object.assign(new this.constructor,this,channels)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:function color_formatHex8(){return this.rgb().formatHex8()},formatHsl:function color_formatHsl(){return hslConvert(this).formatHsl()},formatRgb:color_formatRgb,toString:color_formatRgb}),(0,_define_js__WEBPACK_IMPORTED_MODULE_0__.Z)(Rgb,rgb,(0,_define_js__WEBPACK_IMPORTED_MODULE_0__.l)(Color,{brighter(k){return k=null==k?brighter:Math.pow(brighter,k),new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},darker(k){return k=null==k?darker:Math.pow(darker,k),new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rgb_formatRgb,toString:rgb_formatRgb})),(0,_define_js__WEBPACK_IMPORTED_MODULE_0__.Z)(Hsl,(function hsl(h,s,l,opacity){return 1===arguments.length?hslConvert(h):new Hsl(h,s,l,null==opacity?1:opacity)}),(0,_define_js__WEBPACK_IMPORTED_MODULE_0__.l)(Color,{brighter(k){return k=null==k?brighter:Math.pow(brighter,k),new Hsl(this.h,this.s,this.l*k,this.opacity)},darker(k){return k=null==k?darker:Math.pow(darker,k),new Hsl(this.h,this.s,this.l*k,this.opacity)},rgb(){var h=this.h%360+360*(this.h<0),s=isNaN(h)||isNaN(this.s)?0:this.s,l=this.l,m2=l+(l<.5?l:1-l)*s,m1=2*l-m2;return new Rgb(hsl2rgb(h>=240?h-240:h+120,m1,m2),hsl2rgb(h,m1,m2),hsl2rgb(h<120?h+240:h-120,m1,m2),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const a=clampa(this.opacity);return`${1===a?"hsl(":"hsla("}${clamph(this.h)}, ${100*clampt(this.s)}%, ${100*clampt(this.l)}%${1===a?")":`, ${a})`}`}}))},"./node_modules/d3-color/src/define.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function __WEBPACK_DEFAULT_EXPORT__(constructor,factory,prototype){constructor.prototype=factory.prototype=prototype,prototype.constructor=constructor}function extend(parent,definition){var prototype=Object.create(parent.prototype);for(var key in definition)prototype[key]=definition[key];return prototype}__webpack_require__.d(__webpack_exports__,{Z:function(){return __WEBPACK_DEFAULT_EXPORT__},l:function(){return extend}})}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-components-settings-NumericInput-stories.1ca81fcd.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-components-settings-NumericInput-stories.1ca81fcd.iframe.bundle.js new file mode 100644 index 000000000..7b73312d1 --- /dev/null +++ b/storybook-static/subsurface-viewer-src-storybook-components-settings-NumericInput-stories.1ca81fcd.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see subsurface-viewer-src-storybook-components-settings-NumericInput-stories.1ca81fcd.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[5855],{"./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return isPropValid}});var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"),reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_0__.Z)((function(prop){return reactPropsRegex.test(prop)||111===prop.charCodeAt(0)&&110===prop.charCodeAt(1)&&prop.charCodeAt(2)<91}))},"./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function memoize(fn){var cache=Object.create(null);return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}__webpack_require__.d(__webpack_exports__,{Z:function(){return memoize}})},"./packages/subsurface-viewer/src/storybook/components/settings/NumericInput.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{NumericInputStory:function(){return NumericInputStory},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return NumericInput_stories}});var react=__webpack_require__("./node_modules/react/index.js"),Label=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Label/Label.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),templates_focus=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/focus.mjs"),templates=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs");const typographyMixin=typography=>{const{fontFamily:fontFamily,fontSize:fontSize,fontWeight:fontWeight,lineHeight:lineHeight,letterSpacing:letterSpacing,fontFeature:fontFeature,textDecoration:textDecoration,textTransform:textTransform,fontStyle:fontStyle}=typography;return{fontFeatureSettings:fontFeature,fontFamily:fontFamily,fontSize:fontSize,fontWeight:fontWeight,letterSpacing:letterSpacing,lineHeight:lineHeight,textDecoration:textDecoration,textTransform:textTransform,fontStyle:fontStyle}};var useToken=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/hooks/useToken.mjs"),esm=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-tokens/dist/esm/index.mjs"),mergeDeepRight=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/node_modules/.pnpm/ramda@0.29.1/node_modules/ramda/es/mergeDeepRight.js");const{colors:{ui:{background__light:{rgba:background}},text:{static_icons__default:static_icons__default,static_icons__tertiary:static_icons__tertiary},interactive:{disabled__text:disabled__text,primary__resting:primary__resting,danger__resting:danger__resting,danger__hover:danger__hover,warning__resting:warning__resting,warning__hover:warning__hover,success__resting:success__resting,success__hover:success__hover}},spacings:{comfortable:{small:small,x_small:x_small}},typography:typography,shape:shape}=esm.tokens,input={height:shape.straight.minHeight,width:"100%",background:background,spacings:{left:small,right:small,top:"6px",bottom:"6px"},typography:{...typography.input.text,color:static_icons__default.rgba},outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"},entities:{placeholder:{typography:{color:static_icons__tertiary.rgba}},adornment:{typography:{...typography.input.label,color:static_icons__tertiary.rgba},spacings:{left:small,right:small},states:{disabled:{typography:{color:disabled__text.rgba}}}}},states:{disabled:{typography:{color:disabled__text.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{},focus:{outline:{type:"outline",width:"2px",color:primary__resting.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+static_icons__tertiary.rgba,modes:{compact:{height:shape._modes.compact.straight.minHeight,spacings:{left:x_small,right:x_small,top:x_small,bottom:x_small}}}},inputToken={input:input,error:(0,mergeDeepRight.Z)(input,{boxShadow:"none",outline:{color:danger__resting.rgba},states:{focus:{outline:{color:danger__hover.rgba}}},entities:{adornment:{typography:{...typography.input.label,color:danger__resting.rgba},states:{focus:{outline:{color:danger__hover.rgba}}}}}}),warning:(0,mergeDeepRight.Z)(input,{boxShadow:"none",outline:{color:warning__resting.rgba},states:{focus:{outline:{color:warning__hover.rgba}}},entities:{adornment:{typography:{...typography.input.label,color:warning__resting.rgba},states:{focus:{outline:{color:warning__hover.rgba}}}}}}),success:(0,mergeDeepRight.Z)(input,{boxShadow:"none",outline:{color:success__resting.rgba},states:{focus:{outline:{color:success__hover.rgba}}},entities:{adornment:{typography:{...typography.input.label,color:success__resting.rgba},states:{focus:{outline:{color:success__hover.rgba}}}}}})};var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),eds_context=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/EdsProvider/eds.context.js");const Container=styled_components_browser_esm.ZP.div.withConfig({displayName:"Input__Container",componentId:"sc-1ykv024-0"})((({$token:$token,disabled:disabled,readOnly:readOnly})=>{const{states:states,entities:entities}=$token;return(0,styled_components_browser_esm.iv)(["--eds-input-adornment-color:",";--eds-input-color:",";position:relative;height:",";width:",";display:flex;flex-direction:row;border:none;box-sizing:border-box;box-shadow:",";background:var(--eds-input-background,",");"," &:focus-within{--eds-input-adornment-color:",";box-shadow:none;","}"," "," & > input{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"],entities.adornment.typography.color,$token.typography.color,$token.height,$token.width,$token.boxShadow,$token.background,(0,templates_focus.p)($token.outline),entities.adornment?.states.focus?.outline.color,(0,templates_focus.p)(states.focus.outline),disabled&&(0,styled_components_browser_esm.iv)(["--eds-input-adornment-color:",";--eds-input-color:",";cursor:not-allowed;box-shadow:none;"],states.disabled.typography.color,states.disabled.typography.color),readOnly&&(0,styled_components_browser_esm.iv)({background:states.readOnly.background,boxShadow:states.readOnly.boxShadow}))})),StyledInput=styled_components_browser_esm.ZP.input.withConfig({displayName:"Input__StyledInput",componentId:"sc-1ykv024-1"})((({$token:$token,$paddingLeft:$paddingLeft,$paddingRight:$paddingRight})=>(0,styled_components_browser_esm.iv)(["width:100%;border:none;background:transparent;"," "," outline:none;padding-left:",";padding-right:",";&::placeholder{color:",";}&:disabled{color:var(--eds-input-color);cursor:not-allowed;}"],(0,templates.SH)($token.spacings),typographyMixin($token.typography),$paddingLeft,$paddingRight,$token.entities.placeholder.typography.color))),Adornments=styled_components_browser_esm.ZP.div.withConfig({displayName:"Input__Adornments",componentId:"sc-1ykv024-2"})((({$token:$token})=>(0,styled_components_browser_esm.iv)(["position:absolute;top:",";bottom:",";display:flex;align-items:center;"," color:var(--eds-input-adornment-color);"],$token.spacings.top,$token.spacings.bottom,typographyMixin($token.entities.adornment.typography)))),LeftAdornments=(0,styled_components_browser_esm.ZP)(Adornments).withConfig({displayName:"Input__LeftAdornments",componentId:"sc-1ykv024-3"})((({$token:$token})=>(0,styled_components_browser_esm.iv)(["left:0;padding-left:",";"],$token.entities.adornment.spacings.left))),RightAdornments=(0,styled_components_browser_esm.ZP)(Adornments).withConfig({displayName:"Input__RightAdornments",componentId:"sc-1ykv024-4"})((({$token:$token})=>(0,styled_components_browser_esm.iv)(["right:0;padding-right:",";"],$token.entities.adornment.spacings.right))),Input=(0,react.forwardRef)((function Input({variant:variant,disabled:disabled=!1,type:type="text",leftAdornments:leftAdornments,rightAdornments:rightAdornments,readOnly:readOnly,className:className,style:style,leftAdornmentsProps:leftAdornmentsProps,rightAdornmentsProps:rightAdornmentsProps,leftAdornmentsWidth:leftAdornmentsWidth,rightAdornmentsWidth:rightAdornmentsWidth,...other},ref){const inputVariant=inputToken[variant]?inputToken[variant]:inputToken.input,{density:density}=(0,eds_context.q)(),_token=(0,useToken.d)({density:density},inputVariant)(),[rightAdornmentsRef,setRightAdornmentsRef]=(0,react.useState)(),[leftAdornmentsRef,setLeftAdornmentsRef]=(0,react.useState)(),token=(0,react.useCallback)((()=>{const _leftAdornmentsWidth=leftAdornmentsWidth||(leftAdornmentsRef?leftAdornmentsRef.clientWidth:0),_rightAdornmentsWidth=rightAdornmentsWidth||(rightAdornmentsRef?rightAdornmentsRef.clientWidth:0);return{..._token,spacings:{..._token.spacings,left:`${_leftAdornmentsWidth+parseInt(_token.spacings.left)}px`,right:`${_rightAdornmentsWidth+parseInt(_token.spacings.right)}px`}}}),[leftAdornmentsWidth,leftAdornmentsRef,rightAdornmentsWidth,rightAdornmentsRef,_token])(),inputProps={ref:ref,type:type,disabled:disabled,readOnly:readOnly,$token:token,style:{resize:"none"},...other},containerProps={disabled:disabled,readOnly:readOnly,className:className,style:style,$token:token},_leftAdornmentProps={...leftAdornmentsProps,ref:setLeftAdornmentsRef,$token:token},_rightAdornmentProps={...rightAdornmentsProps,ref:setRightAdornmentsRef,$token:token};return(0,jsx_runtime.jsxs)(Container,{...containerProps,children:[leftAdornments?(0,jsx_runtime.jsx)(LeftAdornments,{..._leftAdornmentProps,children:leftAdornments}):null,(0,jsx_runtime.jsx)(StyledInput,{$paddingLeft:token.spacings.left,$paddingRight:token.spacings.right,...inputProps}),rightAdornments?(0,jsx_runtime.jsx)(RightAdornments,{..._rightAdornmentProps,children:rightAdornments}):null]})})),NumericInput=react.memo((({label:label,value:value,min:min,max:max,step:step,onChange:onChange})=>react.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},react.createElement(Label._,{label:label,id:`${label}-input-label`,style:{paddingTop:5,paddingBottom:5,fontSize:15}}),react.createElement(Input,{id:`${label}-input`,type:"number",value:value,onChange:onChange,min:min,max:max,step:step,style:{fontSize:15,textAlign:"right",width:"3rem"}}))));NumericInput.defaultProps={min:0,step:1},NumericInput.displayName="NumericInput";var settings_NumericInput=NumericInput;NumericInput.__docgenInfo={description:"",methods:[],displayName:"NumericInput",props:{label:{required:!0,tsType:{name:"string"},description:"Label for the component."},value:{required:!0,tsType:{name:"number"},description:"Initial state of the component."},min:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"0",computed:!1}},max:{required:!1,tsType:{name:"number"},description:""},step:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"1",computed:!1}},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(e: ChangeEvent) => void",signature:{arguments:[{type:{name:"ChangeEvent",elements:[{name:"HTMLInputElement"}],raw:"ChangeEvent"},name:"e"}],return:{name:"void"}}},description:"Callback to update the state of the component."}}};var NumericInput_stories={component:settings_NumericInput,title:"SubsurfaceViewer/Components/Settings"};const NumericInputStory={name:"NumericInput",args:{label:"test",value:5}};NumericInputStory.parameters={...NumericInputStory.parameters,docs:{...NumericInputStory.parameters?.docs,source:{originalSource:'{\n name: "NumericInput",\n args: {\n label: "test",\n value: 5\n }\n}',...NumericInputStory.parameters?.docs?.source}}};const __namedExportsOrder=["NumericInputStory"]},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(module,__unused_webpack_exports,__webpack_require__){var reactIs=__webpack_require__("./node_modules/hoist-non-react-statics/node_modules/react-is/index.js"),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};function getStatics(component){return reactIs.isMemo(component)?MEMO_STATICS:TYPE_STATICS[component.$$typeof]||REACT_STATICS}TYPE_STATICS[reactIs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;module.exports=function hoistNonReactStatics(targetComponent,sourceComponent,blacklist){if("string"!=typeof sourceComponent){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);inheritedComponent&&inheritedComponent!==objectPrototype&&hoistNonReactStatics(targetComponent,inheritedComponent,blacklist)}var keys=getOwnPropertyNames(sourceComponent);getOwnPropertySymbols&&(keys=keys.concat(getOwnPropertySymbols(sourceComponent)));for(var targetStatics=getStatics(targetComponent),sourceStatics=getStatics(sourceComponent),i=0;i$disabledText?label.states.disabled.typography.color:label.typography.color)),Text=styled_components_browser_esm.ZP.span.withConfig({displayName:"Label__Text",componentId:"sc-1gi2bcn-1"})(["margin:0;"]),Label=(0,react.forwardRef)((function Label(props,ref){const{label:label="",meta:meta,disabled:disabled=!1,...other}=props;return(0,jsx_runtime.jsxs)(LabelBase,{ref:ref,$disabledText:disabled,...other,children:[(0,jsx_runtime.jsx)(Text,{children:label}),meta&&(0,jsx_runtime.jsx)(Text,{children:meta})]})}))},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/node_modules/.pnpm/ramda@0.29.1/node_modules/ramda/es/mergeDeepRight.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function _isPlaceholder(a){return null!=a&&"object"==typeof a&&!0===a["@@functional/placeholder"]}function _curry1(fn){return function f1(a){return 0===arguments.length||_isPlaceholder(a)?f1:fn.apply(this,arguments)}}function _curry2(fn){return function f2(a,b){switch(arguments.length){case 0:return f2;case 1:return _isPlaceholder(a)?f2:_curry1((function(_b){return fn(a,_b)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)?f2:_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b)})):fn(a,b)}}}function _curry3(fn){return function f3(a,b,c){switch(arguments.length){case 0:return f3;case 1:return _isPlaceholder(a)?f3:_curry2((function(_b,_c){return fn(a,_b,_c)}));case 2:return _isPlaceholder(a)&&_isPlaceholder(b)?f3:_isPlaceholder(a)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_curry1((function(_c){return fn(a,b,_c)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)&&_isPlaceholder(c)?f3:_isPlaceholder(a)&&_isPlaceholder(b)?_curry2((function(_a,_b){return fn(_a,_b,c)})):_isPlaceholder(a)&&_isPlaceholder(c)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)&&_isPlaceholder(c)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b,c)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b,c)})):_isPlaceholder(c)?_curry1((function(_c){return fn(a,b,_c)})):fn(a,b,c)}}}function _isObject(x){return"[object Object]"===Object.prototype.toString.call(x)}function _has(prop,obj){return Object.prototype.hasOwnProperty.call(obj,prop)}__webpack_require__.d(__webpack_exports__,{Z:function(){return mergeDeepRight$1}});var mergeWithKey$1=_curry3((function mergeWithKey(fn,l,r){var k,result={};for(k in r=r||{},l=l||{})_has(k,l)&&(result[k]=_has(k,r)?fn(k,l[k],r[k]):l[k]);for(k in r)_has(k,r)&&!_has(k,result)&&(result[k]=r[k]);return result})),mergeDeepWithKey$1=_curry3((function mergeDeepWithKey(fn,lObj,rObj){return mergeWithKey$1((function(k,lVal,rVal){return _isObject(lVal)&&_isObject(rVal)?mergeDeepWithKey(fn,lVal,rVal):fn(k,lVal,rVal)}),lObj,rObj)})),mergeDeepRight$1=_curry2((function mergeDeepRight(lObj,rObj){return mergeDeepWithKey$1((function(k,lVal,rVal){return rVal}),lObj,rObj)}))}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-components-settings-NumericInput-stories.5b9ef0bd.iframe.bundle.js.LICENSE.txt b/storybook-static/subsurface-viewer-src-storybook-components-settings-NumericInput-stories.1ca81fcd.iframe.bundle.js.LICENSE.txt similarity index 100% rename from storybook-static/subsurface-viewer-src-storybook-components-settings-NumericInput-stories.5b9ef0bd.iframe.bundle.js.LICENSE.txt rename to storybook-static/subsurface-viewer-src-storybook-components-settings-NumericInput-stories.1ca81fcd.iframe.bundle.js.LICENSE.txt diff --git a/storybook-static/subsurface-viewer-src-storybook-components-settings-NumericInput-stories.5b9ef0bd.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-components-settings-NumericInput-stories.5b9ef0bd.iframe.bundle.js deleted file mode 100644 index c57db8e4e..000000000 --- a/storybook-static/subsurface-viewer-src-storybook-components-settings-NumericInput-stories.5b9ef0bd.iframe.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see subsurface-viewer-src-storybook-components-settings-NumericInput-stories.5b9ef0bd.iframe.bundle.js.LICENSE.txt */ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[5855],{"./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return isPropValid}});var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"),reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_0__.Z)((function(prop){return reactPropsRegex.test(prop)||111===prop.charCodeAt(0)&&110===prop.charCodeAt(1)&&prop.charCodeAt(2)<91}))},"./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function memoize(fn){var cache=Object.create(null);return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}__webpack_require__.d(__webpack_exports__,{Z:function(){return memoize}})},"./packages/subsurface-viewer/src/storybook/components/settings/NumericInput.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{NumericInputStory:function(){return NumericInputStory},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return NumericInput_stories}});var react=__webpack_require__("./node_modules/react/index.js"),Label=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Label/Label.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),templates_focus=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/focus.mjs"),templates=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs");const typographyMixin=typography=>{const{fontFamily:fontFamily,fontSize:fontSize,fontWeight:fontWeight,lineHeight:lineHeight,letterSpacing:letterSpacing,fontFeature:fontFeature,textDecoration:textDecoration,textTransform:textTransform,fontStyle:fontStyle}=typography;return{fontFeatureSettings:fontFeature,fontFamily:fontFamily,fontSize:fontSize,fontWeight:fontWeight,letterSpacing:letterSpacing,lineHeight:lineHeight,textDecoration:textDecoration,textTransform:textTransform,fontStyle:fontStyle}};var useToken=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/hooks/useToken.mjs"),esm=__webpack_require__("./node_modules/@equinor/eds-tokens/dist/esm/index.mjs"),mergeDeepRight=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/node_modules/.pnpm/ramda@0.29.1/node_modules/ramda/es/mergeDeepRight.js");const{colors:{ui:{background__light:{rgba:background}},text:{static_icons__default:static_icons__default,static_icons__tertiary:static_icons__tertiary},interactive:{disabled__text:disabled__text,primary__resting:primary__resting,danger__resting:danger__resting,danger__hover:danger__hover,warning__resting:warning__resting,warning__hover:warning__hover,success__resting:success__resting,success__hover:success__hover}},spacings:{comfortable:{small:small,x_small:x_small}},typography:typography,shape:shape}=esm.tokens,input={height:shape.straight.minHeight,width:"100%",background:background,spacings:{left:small,right:small,top:"6px",bottom:"6px"},typography:{...typography.input.text,color:static_icons__default.rgba},outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"},entities:{placeholder:{typography:{color:static_icons__tertiary.rgba}},adornment:{typography:{...typography.input.label,color:static_icons__tertiary.rgba},spacings:{left:small,right:small},states:{disabled:{typography:{color:disabled__text.rgba}}}}},states:{disabled:{typography:{color:disabled__text.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{},focus:{outline:{type:"outline",width:"2px",color:primary__resting.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+static_icons__tertiary.rgba,modes:{compact:{height:shape._modes.compact.straight.minHeight,spacings:{left:x_small,right:x_small,top:x_small,bottom:x_small}}}},inputToken={input:input,error:(0,mergeDeepRight.Z)(input,{boxShadow:"none",outline:{color:danger__resting.rgba},states:{focus:{outline:{color:danger__hover.rgba}}},entities:{adornment:{typography:{...typography.input.label,color:danger__resting.rgba},states:{focus:{outline:{color:danger__hover.rgba}}}}}}),warning:(0,mergeDeepRight.Z)(input,{boxShadow:"none",outline:{color:warning__resting.rgba},states:{focus:{outline:{color:warning__hover.rgba}}},entities:{adornment:{typography:{...typography.input.label,color:warning__resting.rgba},states:{focus:{outline:{color:warning__hover.rgba}}}}}}),success:(0,mergeDeepRight.Z)(input,{boxShadow:"none",outline:{color:success__resting.rgba},states:{focus:{outline:{color:success__hover.rgba}}},entities:{adornment:{typography:{...typography.input.label,color:success__resting.rgba},states:{focus:{outline:{color:success__hover.rgba}}}}}})};var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),eds_context=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/EdsProvider/eds.context.js");const Container=styled_components_browser_esm.ZP.div.withConfig({displayName:"Input__Container",componentId:"sc-1ykv024-0"})((({$token:$token,disabled:disabled,readOnly:readOnly})=>{const{states:states,entities:entities}=$token;return(0,styled_components_browser_esm.iv)(["--eds-input-adornment-color:",";--eds-input-color:",";position:relative;height:",";width:",";display:flex;flex-direction:row;border:none;box-sizing:border-box;box-shadow:",";background:var(--eds-input-background,",");"," &:focus-within{--eds-input-adornment-color:",";box-shadow:none;","}"," "," & > input{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"],entities.adornment.typography.color,$token.typography.color,$token.height,$token.width,$token.boxShadow,$token.background,(0,templates_focus.p)($token.outline),entities.adornment?.states.focus?.outline.color,(0,templates_focus.p)(states.focus.outline),disabled&&(0,styled_components_browser_esm.iv)(["--eds-input-adornment-color:",";--eds-input-color:",";cursor:not-allowed;box-shadow:none;"],states.disabled.typography.color,states.disabled.typography.color),readOnly&&(0,styled_components_browser_esm.iv)({background:states.readOnly.background,boxShadow:states.readOnly.boxShadow}))})),StyledInput=styled_components_browser_esm.ZP.input.withConfig({displayName:"Input__StyledInput",componentId:"sc-1ykv024-1"})((({$token:$token,$paddingLeft:$paddingLeft,$paddingRight:$paddingRight})=>(0,styled_components_browser_esm.iv)(["width:100%;border:none;background:transparent;"," "," outline:none;padding-left:",";padding-right:",";&::placeholder{color:",";}&:disabled{color:var(--eds-input-color);cursor:not-allowed;}"],(0,templates.SH)($token.spacings),typographyMixin($token.typography),$paddingLeft,$paddingRight,$token.entities.placeholder.typography.color))),Adornments=styled_components_browser_esm.ZP.div.withConfig({displayName:"Input__Adornments",componentId:"sc-1ykv024-2"})((({$token:$token})=>(0,styled_components_browser_esm.iv)(["position:absolute;top:",";bottom:",";display:flex;align-items:center;"," color:var(--eds-input-adornment-color);"],$token.spacings.top,$token.spacings.bottom,typographyMixin($token.entities.adornment.typography)))),LeftAdornments=(0,styled_components_browser_esm.ZP)(Adornments).withConfig({displayName:"Input__LeftAdornments",componentId:"sc-1ykv024-3"})((({$token:$token})=>(0,styled_components_browser_esm.iv)(["left:0;padding-left:",";"],$token.entities.adornment.spacings.left))),RightAdornments=(0,styled_components_browser_esm.ZP)(Adornments).withConfig({displayName:"Input__RightAdornments",componentId:"sc-1ykv024-4"})((({$token:$token})=>(0,styled_components_browser_esm.iv)(["right:0;padding-right:",";"],$token.entities.adornment.spacings.right))),Input=(0,react.forwardRef)((function Input({variant:variant,disabled:disabled=!1,type:type="text",leftAdornments:leftAdornments,rightAdornments:rightAdornments,readOnly:readOnly,className:className,style:style,leftAdornmentsProps:leftAdornmentsProps,rightAdornmentsProps:rightAdornmentsProps,leftAdornmentsWidth:leftAdornmentsWidth,rightAdornmentsWidth:rightAdornmentsWidth,...other},ref){const inputVariant=inputToken[variant]?inputToken[variant]:inputToken.input,{density:density}=(0,eds_context.q)(),_token=(0,useToken.d)({density:density},inputVariant)(),[rightAdornmentsRef,setRightAdornmentsRef]=(0,react.useState)(),[leftAdornmentsRef,setLeftAdornmentsRef]=(0,react.useState)(),token=(0,react.useCallback)((()=>{const _leftAdornmentsWidth=leftAdornmentsWidth||(leftAdornmentsRef?leftAdornmentsRef.clientWidth:0),_rightAdornmentsWidth=rightAdornmentsWidth||(rightAdornmentsRef?rightAdornmentsRef.clientWidth:0);return{..._token,spacings:{..._token.spacings,left:`${_leftAdornmentsWidth+parseInt(_token.spacings.left)}px`,right:`${_rightAdornmentsWidth+parseInt(_token.spacings.right)}px`}}}),[leftAdornmentsWidth,leftAdornmentsRef,rightAdornmentsWidth,rightAdornmentsRef,_token])(),inputProps={ref:ref,type:type,disabled:disabled,readOnly:readOnly,$token:token,style:{resize:"none"},...other},containerProps={disabled:disabled,readOnly:readOnly,className:className,style:style,$token:token},_leftAdornmentProps={...leftAdornmentsProps,ref:setLeftAdornmentsRef,$token:token},_rightAdornmentProps={...rightAdornmentsProps,ref:setRightAdornmentsRef,$token:token};return(0,jsx_runtime.jsxs)(Container,{...containerProps,children:[leftAdornments?(0,jsx_runtime.jsx)(LeftAdornments,{..._leftAdornmentProps,children:leftAdornments}):null,(0,jsx_runtime.jsx)(StyledInput,{$paddingLeft:token.spacings.left,$paddingRight:token.spacings.right,...inputProps}),rightAdornments?(0,jsx_runtime.jsx)(RightAdornments,{..._rightAdornmentProps,children:rightAdornments}):null]})})),NumericInput=react.memo((({label:label,value:value,min:min,max:max,step:step,onChange:onChange})=>react.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},react.createElement(Label._,{label:label,id:`${label}-input-label`,style:{paddingTop:5,paddingBottom:5,fontSize:15}}),react.createElement(Input,{id:`${label}-input`,type:"number",value:value,onChange:onChange,min:min,max:max,step:step,style:{fontSize:15,textAlign:"right",width:"3rem"}}))));NumericInput.defaultProps={min:0,step:1},NumericInput.displayName="NumericInput";var settings_NumericInput=NumericInput;NumericInput.__docgenInfo={description:"",methods:[],displayName:"NumericInput",props:{label:{required:!0,tsType:{name:"string"},description:"Label for the component."},value:{required:!0,tsType:{name:"number"},description:"Initial state of the component."},min:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"0",computed:!1}},max:{required:!1,tsType:{name:"number"},description:""},step:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"1",computed:!1}},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(e: ChangeEvent) => void",signature:{arguments:[{type:{name:"ChangeEvent",elements:[{name:"HTMLInputElement"}],raw:"ChangeEvent"},name:"e"}],return:{name:"void"}}},description:"Callback to update the state of the component."}}};var NumericInput_stories={component:settings_NumericInput,title:"SubsurfaceViewer/Components/Settings"};const NumericInputStory={name:"NumericInput",args:{label:"test",value:5}};NumericInputStory.parameters={...NumericInputStory.parameters,docs:{...NumericInputStory.parameters?.docs,source:{originalSource:'{\n name: "NumericInput",\n args: {\n label: "test",\n value: 5\n }\n}',...NumericInputStory.parameters?.docs?.source}}};const __namedExportsOrder=["NumericInputStory"]},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(module,__unused_webpack_exports,__webpack_require__){var reactIs=__webpack_require__("./node_modules/hoist-non-react-statics/node_modules/react-is/index.js"),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};function getStatics(component){return reactIs.isMemo(component)?MEMO_STATICS:TYPE_STATICS[component.$$typeof]||REACT_STATICS}TYPE_STATICS[reactIs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;module.exports=function hoistNonReactStatics(targetComponent,sourceComponent,blacklist){if("string"!=typeof sourceComponent){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);inheritedComponent&&inheritedComponent!==objectPrototype&&hoistNonReactStatics(targetComponent,inheritedComponent,blacklist)}var keys=getOwnPropertyNames(sourceComponent);getOwnPropertySymbols&&(keys=keys.concat(getOwnPropertySymbols(sourceComponent)));for(var targetStatics=getStatics(targetComponent),sourceStatics=getStatics(sourceComponent),i=0;i$disabledText?label.states.disabled.typography.color:label.typography.color)),Text=styled_components_browser_esm.ZP.span.withConfig({displayName:"Label__Text",componentId:"sc-1gi2bcn-1"})(["margin:0;"]),Label=(0,react.forwardRef)((function Label(props,ref){const{label:label="",meta:meta,disabled:disabled=!1,...other}=props;return(0,jsx_runtime.jsxs)(LabelBase,{ref:ref,$disabledText:disabled,...other,children:[(0,jsx_runtime.jsx)(Text,{children:label}),meta&&(0,jsx_runtime.jsx)(Text,{children:meta})]})}))},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/node_modules/.pnpm/ramda@0.29.1/node_modules/ramda/es/mergeDeepRight.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function _isPlaceholder(a){return null!=a&&"object"==typeof a&&!0===a["@@functional/placeholder"]}function _curry1(fn){return function f1(a){return 0===arguments.length||_isPlaceholder(a)?f1:fn.apply(this,arguments)}}function _curry2(fn){return function f2(a,b){switch(arguments.length){case 0:return f2;case 1:return _isPlaceholder(a)?f2:_curry1((function(_b){return fn(a,_b)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)?f2:_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b)})):fn(a,b)}}}function _curry3(fn){return function f3(a,b,c){switch(arguments.length){case 0:return f3;case 1:return _isPlaceholder(a)?f3:_curry2((function(_b,_c){return fn(a,_b,_c)}));case 2:return _isPlaceholder(a)&&_isPlaceholder(b)?f3:_isPlaceholder(a)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_curry1((function(_c){return fn(a,b,_c)}));default:return _isPlaceholder(a)&&_isPlaceholder(b)&&_isPlaceholder(c)?f3:_isPlaceholder(a)&&_isPlaceholder(b)?_curry2((function(_a,_b){return fn(_a,_b,c)})):_isPlaceholder(a)&&_isPlaceholder(c)?_curry2((function(_a,_c){return fn(_a,b,_c)})):_isPlaceholder(b)&&_isPlaceholder(c)?_curry2((function(_b,_c){return fn(a,_b,_c)})):_isPlaceholder(a)?_curry1((function(_a){return fn(_a,b,c)})):_isPlaceholder(b)?_curry1((function(_b){return fn(a,_b,c)})):_isPlaceholder(c)?_curry1((function(_c){return fn(a,b,_c)})):fn(a,b,c)}}}function _isObject(x){return"[object Object]"===Object.prototype.toString.call(x)}function _has(prop,obj){return Object.prototype.hasOwnProperty.call(obj,prop)}__webpack_require__.d(__webpack_exports__,{Z:function(){return mergeDeepRight$1}});var mergeWithKey$1=_curry3((function mergeWithKey(fn,l,r){var k,result={};for(k in r=r||{},l=l||{})_has(k,l)&&(result[k]=_has(k,r)?fn(k,l[k],r[k]):l[k]);for(k in r)_has(k,r)&&!_has(k,result)&&(result[k]=r[k]);return result})),mergeDeepWithKey$1=_curry3((function mergeDeepWithKey(fn,lObj,rObj){return mergeWithKey$1((function(k,lVal,rVal){return _isObject(lVal)&&_isObject(rVal)?mergeDeepWithKey(fn,lVal,rVal):fn(k,lVal,rVal)}),lObj,rObj)})),mergeDeepRight$1=_curry2((function mergeDeepRight(lObj,rObj){return mergeDeepWithKey$1((function(k,lVal,rVal){return rVal}),lObj,rObj)}))}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.6eae0400.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.6eae0400.iframe.bundle.js deleted file mode 100644 index 0af27b465..000000000 --- a/storybook-static/subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.6eae0400.iframe.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.6eae0400.iframe.bundle.js.LICENSE.txt */ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[5388],{"./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return isPropValid}});var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"),reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_0__.Z)((function(prop){return reactPropsRegex.test(prop)||111===prop.charCodeAt(0)&&110===prop.charCodeAt(1)&&prop.charCodeAt(2)<91}))},"./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function memoize(fn){var cache=Object.create(null);return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}__webpack_require__.d(__webpack_exports__,{Z:function(){return memoize}})},"./packages/subsurface-viewer/src/storybook/components/settings/ToggleButton.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ToggleButtonStory:function(){return ToggleButtonStory},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return ToggleButton_stories}});var react=__webpack_require__("./node_modules/react/index.js"),Label=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Label/Label.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),templates_focus=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/focus.mjs");const BaseInputWrapper=styled_components_browser_esm.ZP.span.withConfig({displayName:"Switchstyles__BaseInputWrapper",componentId:"sc-x39lde-0"})((({theme:{width:width,height:height}})=>(0,styled_components_browser_esm.iv)(["width:",";height:",";border-radius:50%;position:relative;grid-area:input;"],width,height))),BaseInput=styled_components_browser_esm.ZP.input.attrs((({type:type="checkbox"})=>({type:type}))).withConfig({displayName:"Switchstyles__BaseInput",componentId:"sc-x39lde-1"})((({disabled:disabled,theme:theme})=>(0,styled_components_browser_esm.iv)(["appearance:none;width:100%;height:100%;grid-area:input;margin:0;position:relative;z-index:1;cursor:",";&:focus{outline:none;}&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}"],disabled?"not-allowed":"pointer",(0,templates_focus.p)(theme.states.focus.outline),(0,templates_focus.p)(theme.states.focus.outline)))),GridWrapper=styled_components_browser_esm.ZP.span.withConfig({displayName:"Switchstyles__GridWrapper",componentId:"sc-x39lde-2"})(["display:inline-grid;vertical-align:middle;grid:[input] 1fr / [input] 1fr;place-items:center;isolation:isolate;"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const Input=(0,styled_components_browser_esm.ZP)(BaseInput).withConfig({displayName:"SwitchSmall__Input",componentId:"sc-1a99mis-0"})((({disabled:disabled,theme:{states:states,entities:{handle:handle,track:track}}})=>(0,styled_components_browser_esm.iv)(["&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:",";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:",";}}"],(0,templates_focus.p)(states.focus.outline),(0,templates_focus.p)(states.focus.outline),disabled?states.disabled.background:track.states.active.background,handle.background,disabled?"transparent":states.hover.background))),Track=styled_components_browser_esm.ZP.span.withConfig({displayName:"SwitchSmall__Track",componentId:"sc-1a99mis-1"})((({$isDisabled:$isDisabled,theme:{states:states,entities:{track:track}}})=>(0,styled_components_browser_esm.iv)(["width:",";height:",";border-radius:10px;border:none;background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"],track.width,track.height,$isDisabled?states.disabled.background:track.states.disabled.background))),Handle=styled_components_browser_esm.ZP.span.withConfig({displayName:"SwitchSmall__Handle",componentId:"sc-1a99mis-2"})((({theme:{entities:{handle:handle}}})=>(0,styled_components_browser_esm.iv)(["background-color:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(11%,-50%);left:7px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],handle.background,handle.width,handle.height))),SwitchSmall=(0,react.forwardRef)((function SwitchSmall({disabled:disabled,className:className,style:style,...rest},ref){return(0,jsx_runtime.jsxs)(GridWrapper,{className:className,style:style,children:[(0,jsx_runtime.jsx)(Input,{...rest,ref:ref,disabled:disabled}),(0,jsx_runtime.jsxs)(BaseInputWrapper,{children:[(0,jsx_runtime.jsx)(Track,{$isDisabled:disabled}),(0,jsx_runtime.jsx)(Handle,{})]})]})}));SwitchSmall.displayName="SwitchSmall";var borders=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/borders.mjs");const SwitchDefault_Input=(0,styled_components_browser_esm.ZP)(BaseInput).withConfig({displayName:"SwitchDefault__Input",componentId:"sc-16ym5pn-0"})((({disabled:disabled,theme:theme})=>(0,styled_components_browser_esm.iv)(["width:",";aspect-ratio:1/1;&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(105%,-50%);background-color:",";}&:hover + span{background-color:",";}&:hover + span > span:last-child{background-color:",";}"],theme.clickbound.height,disabled?theme.states.disabled.background:theme.entities.track.states.active.background,disabled?theme.states.disabled.background:theme.entities.handle.states.active.background,disabled?"transparent":theme.states.hover.background,disabled?theme.states.disabled.background:theme.states.hover.entities.handle.background))),SwitchDefault_Track=styled_components_browser_esm.ZP.span.withConfig({displayName:"SwitchDefault__Track",componentId:"sc-16ym5pn-1"})((({$isDisabled:$isDisabled,theme:{states:states,entities:{track:track}}})=>(0,styled_components_browser_esm.iv)([""," border:none;width:",";height:",";background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);transition:background 0.36s;",""],(0,borders.$)(track.border),track.width,track.height,track.background,$isDisabled&&{backgroundColor:states.disabled.background}))),SwitchDefault_Handle=styled_components_browser_esm.ZP.span.withConfig({displayName:"SwitchDefault__Handle",componentId:"sc-16ym5pn-2"})((({$isDisabled:$isDisabled,theme:{states:states,entities:{handle:handle}}})=>(0,styled_components_browser_esm.iv)(["background-color:",";"," box-shadow:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(0,-50%);left:4px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],handle.background,$isDisabled&&{backgroundColor:states.disabled.background},handle.boxShadow,handle.width,handle.height))),SwitchDefault=(0,react.forwardRef)((function SwitchDefault({disabled:disabled,className:className,style:style,...rest},ref){return(0,jsx_runtime.jsxs)(GridWrapper,{className:className,style:style,children:[(0,jsx_runtime.jsx)(SwitchDefault_Input,{...rest,ref:ref,disabled:disabled}),(0,jsx_runtime.jsxs)(BaseInputWrapper,{children:[(0,jsx_runtime.jsx)(SwitchDefault_Track,{$isDisabled:disabled}),(0,jsx_runtime.jsx)(SwitchDefault_Handle,{$isDisabled:disabled})]})]})}));SwitchDefault.displayName="SwitchDefault";var esm=__webpack_require__("./node_modules/@equinor/eds-tokens/dist/esm/index.mjs");const{colors:{ui:{background__medium:{rgba:backgroundColorMedium}},interactive:{primary__hover_alt:{rgba:primaryHoverAlt},primary__hover:{rgba:primaryHover},primary__selected_highlight:{rgba:activeColor},primary__resting:{rgba:primaryResting},disabled__fill:{rgba:backgroundDisabled},focus:{rgba:focusOutlineColor},icon_on_interactive_colors:{rgba:iconInteractive}},text:{static_icons__tertiary:{rgba:iconTertiary}}},typography:{navigation:{menu_title:labelTypography}},clickbounds:clickbounds,elevation:{raised:boxShadow},spacings:{comfortable:{medium_small:medium_small}},shape:{circle:circle,_modes:{compact:{icon_button:compactIconButton}}},interactions:{focused:{width:focusOutlineWidth}}}=esm.tokens,comfortable={typography:labelTypography,height:circle.minHeight,width:circle.minWidth,clickbound:{height:clickbounds.default__base,width:clickbounds.default__base},entities:{label:{spacings:{left:medium_small}},track:{width:"32px",height:"8px",background:backgroundColorMedium,border:{type:"border",radius:"4px"},states:{active:{background:activeColor},hover:{background:primaryHover}}},handle:{height:"16px",width:"16px",boxShadow:boxShadow,background:iconTertiary,states:{active:{background:primaryResting},hover:{background:primaryHoverAlt}}}},modes:{compact:{height:compactIconButton.minHeight,width:compactIconButton.minWidth,clickbound:{height:clickbounds.compact__standard,width:clickbounds.compact__standard},entities:{track:{width:"20px",height:"10px",states:{disabled:{background:iconTertiary},active:{background:primaryResting}}},handle:{height:"6px",width:"6px",background:iconInteractive}}}},states:{disabled:{background:backgroundDisabled},focus:{outline:{width:focusOutlineWidth,type:"outline",style:"dashed",color:focusOutlineColor}},hover:{background:primaryHoverAlt,entities:{handle:{background:primaryHover}}}}};var templates=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs"),useToken=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/hooks/useToken.mjs"),eds_context=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/EdsProvider/eds.context.js");const StyledLabel=styled_components_browser_esm.ZP.label.withConfig({displayName:"Switch__StyledLabel",componentId:"sc-sdaahx-0"})(["cursor:",";border:none;background-color:transparent;vertical-align:middle;display:inline-flex;align-items:center;position:relative;gap:",";"],(({$isDisabled:$isDisabled})=>$isDisabled?"not-allowed":"pointer"),(({$size:$size})=>"small"===$size?"12px":"8px")),Switch_Label=styled_components_browser_esm.ZP.span.withConfig({displayName:"Switch__Label",componentId:"sc-sdaahx-1"})((({theme:theme})=>(0,styled_components_browser_esm.iv)(["",";"],(0,templates.oc)(theme.typography)))),Switch=(0,react.forwardRef)((function Switch({size:size="default",disabled:disabled,label:label,className:className,style:style,...rest},ref){const{density:density}=(0,eds_context.q)(),overrideDensity="small"===size?"compact":density,token=(0,useToken.d)({density:overrideDensity},comfortable);return(0,jsx_runtime.jsx)(styled_components_browser_esm.f6,{theme:token,children:label?(0,jsx_runtime.jsxs)(StyledLabel,{$size:size,$isDisabled:disabled,className:className,style:style,children:["small"===size?(0,jsx_runtime.jsx)(SwitchSmall,{disabled:disabled,...rest,ref:ref}):(0,jsx_runtime.jsx)(SwitchDefault,{disabled:disabled,...rest,ref:ref}),label&&(0,jsx_runtime.jsx)(Switch_Label,{children:label})]}):"small"===size?(0,jsx_runtime.jsx)(SwitchSmall,{disabled:disabled,className:className,style:style,...rest,ref:ref}):(0,jsx_runtime.jsx)(SwitchDefault,{disabled:disabled,className:className,style:style,...rest,ref:ref})})}));Switch.displayName="Switch";const ToggleButton=react.memo((({label:label,checked:checked,onChange:onChange})=>react.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},react.createElement(Label._,{label:label,id:`${label}-switch-label`,style:{paddingTop:15,fontSize:15}}),react.createElement(Switch,{id:`${label}-switch`,"aria-label":label,label:"",onChange:onChange,checked:checked,style:{paddingRight:10,width:"3rem"}}))));ToggleButton.displayName="ToggleButton";var settings_ToggleButton=ToggleButton;ToggleButton.__docgenInfo={description:"",methods:[],displayName:"ToggleButton",props:{label:{required:!0,tsType:{name:"string"},description:"Label for the component."},checked:{required:!0,tsType:{name:"boolean"},description:"Initial state of the component."},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(e: ChangeEvent) => void",signature:{arguments:[{type:{name:"ChangeEvent",elements:[{name:"HTMLInputElement"}],raw:"ChangeEvent"},name:"e"}],return:{name:"void"}}},description:"Callback to update the state of the component."}}};var ToggleButton_stories={component:settings_ToggleButton,title:"SubsurfaceViewer/Components/Settings"};const ToggleButtonStory={name:" ToggleButton",args:{label:"test"}};ToggleButtonStory.parameters={...ToggleButtonStory.parameters,docs:{...ToggleButtonStory.parameters?.docs,source:{originalSource:'{\n name: " ToggleButton",\n args: {\n label: "test"\n }\n}',...ToggleButtonStory.parameters?.docs?.source}}};const __namedExportsOrder=["ToggleButtonStory"]},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(module,__unused_webpack_exports,__webpack_require__){var reactIs=__webpack_require__("./node_modules/hoist-non-react-statics/node_modules/react-is/index.js"),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};function getStatics(component){return reactIs.isMemo(component)?MEMO_STATICS:TYPE_STATICS[component.$$typeof]||REACT_STATICS}TYPE_STATICS[reactIs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;module.exports=function hoistNonReactStatics(targetComponent,sourceComponent,blacklist){if("string"!=typeof sourceComponent){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);inheritedComponent&&inheritedComponent!==objectPrototype&&hoistNonReactStatics(targetComponent,inheritedComponent,blacklist)}var keys=getOwnPropertyNames(sourceComponent);getOwnPropertySymbols&&(keys=keys.concat(getOwnPropertySymbols(sourceComponent)));for(var targetStatics=getStatics(targetComponent),sourceStatics=getStatics(sourceComponent),i=0;i$disabledText?label.states.disabled.typography.color:label.typography.color)),Text=styled_components_browser_esm.ZP.span.withConfig({displayName:"Label__Text",componentId:"sc-1gi2bcn-1"})(["margin:0;"]),Label=(0,react.forwardRef)((function Label(props,ref){const{label:label="",meta:meta,disabled:disabled=!1,...other}=props;return(0,jsx_runtime.jsxs)(LabelBase,{ref:ref,$disabledText:disabled,...other,children:[(0,jsx_runtime.jsx)(Text,{children:label}),meta&&(0,jsx_runtime.jsx)(Text,{children:meta})]})}))},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/borders.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{$:function(){return bordersTemplate}});var styled_components__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_common_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/common.mjs");const bordersTemplate=border=>{if(!border)return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({});switch(border.type){case"border":return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({border:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border),borderRadius:border.radius});case"bordergroup":return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({borderBottom:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.bottom),borderTop:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.top),borderLeft:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.left),borderRight:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.right),borderBottomLeftRadius:border?.left?.radius,borderTopLeftRadius:border?.left?.radius,borderBottomRightRadius:border?.right?.radius,borderTopRightRadius:border?.right?.radius});default:return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({})}}}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.d491b9ac.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.d491b9ac.iframe.bundle.js new file mode 100644 index 000000000..adc71aba5 --- /dev/null +++ b/storybook-static/subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.d491b9ac.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.d491b9ac.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[5388],{"./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return isPropValid}});var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"),reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_0__.Z)((function(prop){return reactPropsRegex.test(prop)||111===prop.charCodeAt(0)&&110===prop.charCodeAt(1)&&prop.charCodeAt(2)<91}))},"./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function memoize(fn){var cache=Object.create(null);return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}__webpack_require__.d(__webpack_exports__,{Z:function(){return memoize}})},"./packages/subsurface-viewer/src/storybook/components/settings/ToggleButton.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ToggleButtonStory:function(){return ToggleButtonStory},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return ToggleButton_stories}});var react=__webpack_require__("./node_modules/react/index.js"),Label=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Label/Label.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),templates_focus=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/focus.mjs");const BaseInputWrapper=styled_components_browser_esm.ZP.span.withConfig({displayName:"Switchstyles__BaseInputWrapper",componentId:"sc-x39lde-0"})((({theme:{width:width,height:height}})=>(0,styled_components_browser_esm.iv)(["width:",";height:",";border-radius:50%;position:relative;grid-area:input;"],width,height))),BaseInput=styled_components_browser_esm.ZP.input.attrs((({type:type="checkbox"})=>({type:type}))).withConfig({displayName:"Switchstyles__BaseInput",componentId:"sc-x39lde-1"})((({disabled:disabled,theme:theme})=>(0,styled_components_browser_esm.iv)(["appearance:none;width:100%;height:100%;grid-area:input;margin:0;position:relative;z-index:1;cursor:",";&:focus{outline:none;}&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}"],disabled?"not-allowed":"pointer",(0,templates_focus.p)(theme.states.focus.outline),(0,templates_focus.p)(theme.states.focus.outline)))),GridWrapper=styled_components_browser_esm.ZP.span.withConfig({displayName:"Switchstyles__GridWrapper",componentId:"sc-x39lde-2"})(["display:inline-grid;vertical-align:middle;grid:[input] 1fr / [input] 1fr;place-items:center;isolation:isolate;"]);var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const Input=(0,styled_components_browser_esm.ZP)(BaseInput).withConfig({displayName:"SwitchSmall__Input",componentId:"sc-1a99mis-0"})((({disabled:disabled,theme:{states:states,entities:{handle:handle,track:track}}})=>(0,styled_components_browser_esm.iv)(["&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:",";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:",";}}"],(0,templates_focus.p)(states.focus.outline),(0,templates_focus.p)(states.focus.outline),disabled?states.disabled.background:track.states.active.background,handle.background,disabled?"transparent":states.hover.background))),Track=styled_components_browser_esm.ZP.span.withConfig({displayName:"SwitchSmall__Track",componentId:"sc-1a99mis-1"})((({$isDisabled:$isDisabled,theme:{states:states,entities:{track:track}}})=>(0,styled_components_browser_esm.iv)(["width:",";height:",";border-radius:10px;border:none;background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"],track.width,track.height,$isDisabled?states.disabled.background:track.states.disabled.background))),Handle=styled_components_browser_esm.ZP.span.withConfig({displayName:"SwitchSmall__Handle",componentId:"sc-1a99mis-2"})((({theme:{entities:{handle:handle}}})=>(0,styled_components_browser_esm.iv)(["background-color:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(11%,-50%);left:7px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],handle.background,handle.width,handle.height))),SwitchSmall=(0,react.forwardRef)((function SwitchSmall({disabled:disabled,className:className,style:style,...rest},ref){return(0,jsx_runtime.jsxs)(GridWrapper,{className:className,style:style,children:[(0,jsx_runtime.jsx)(Input,{...rest,ref:ref,disabled:disabled}),(0,jsx_runtime.jsxs)(BaseInputWrapper,{children:[(0,jsx_runtime.jsx)(Track,{$isDisabled:disabled}),(0,jsx_runtime.jsx)(Handle,{})]})]})}));SwitchSmall.displayName="SwitchSmall";var borders=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/borders.mjs");const SwitchDefault_Input=(0,styled_components_browser_esm.ZP)(BaseInput).withConfig({displayName:"SwitchDefault__Input",componentId:"sc-16ym5pn-0"})((({disabled:disabled,theme:theme})=>(0,styled_components_browser_esm.iv)(["width:",";aspect-ratio:1/1;&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(105%,-50%);background-color:",";}&:hover + span{background-color:",";}&:hover + span > span:last-child{background-color:",";}"],theme.clickbound.height,disabled?theme.states.disabled.background:theme.entities.track.states.active.background,disabled?theme.states.disabled.background:theme.entities.handle.states.active.background,disabled?"transparent":theme.states.hover.background,disabled?theme.states.disabled.background:theme.states.hover.entities.handle.background))),SwitchDefault_Track=styled_components_browser_esm.ZP.span.withConfig({displayName:"SwitchDefault__Track",componentId:"sc-16ym5pn-1"})((({$isDisabled:$isDisabled,theme:{states:states,entities:{track:track}}})=>(0,styled_components_browser_esm.iv)([""," border:none;width:",";height:",";background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);transition:background 0.36s;",""],(0,borders.$)(track.border),track.width,track.height,track.background,$isDisabled&&{backgroundColor:states.disabled.background}))),SwitchDefault_Handle=styled_components_browser_esm.ZP.span.withConfig({displayName:"SwitchDefault__Handle",componentId:"sc-16ym5pn-2"})((({$isDisabled:$isDisabled,theme:{states:states,entities:{handle:handle}}})=>(0,styled_components_browser_esm.iv)(["background-color:",";"," box-shadow:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(0,-50%);left:4px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],handle.background,$isDisabled&&{backgroundColor:states.disabled.background},handle.boxShadow,handle.width,handle.height))),SwitchDefault=(0,react.forwardRef)((function SwitchDefault({disabled:disabled,className:className,style:style,...rest},ref){return(0,jsx_runtime.jsxs)(GridWrapper,{className:className,style:style,children:[(0,jsx_runtime.jsx)(SwitchDefault_Input,{...rest,ref:ref,disabled:disabled}),(0,jsx_runtime.jsxs)(BaseInputWrapper,{children:[(0,jsx_runtime.jsx)(SwitchDefault_Track,{$isDisabled:disabled}),(0,jsx_runtime.jsx)(SwitchDefault_Handle,{$isDisabled:disabled})]})]})}));SwitchDefault.displayName="SwitchDefault";var esm=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-tokens/dist/esm/index.mjs");const{colors:{ui:{background__medium:{rgba:backgroundColorMedium}},interactive:{primary__hover_alt:{rgba:primaryHoverAlt},primary__hover:{rgba:primaryHover},primary__selected_highlight:{rgba:activeColor},primary__resting:{rgba:primaryResting},disabled__fill:{rgba:backgroundDisabled},focus:{rgba:focusOutlineColor},icon_on_interactive_colors:{rgba:iconInteractive}},text:{static_icons__tertiary:{rgba:iconTertiary}}},typography:{navigation:{menu_title:labelTypography}},clickbounds:clickbounds,elevation:{raised:boxShadow},spacings:{comfortable:{medium_small:medium_small}},shape:{circle:circle,_modes:{compact:{icon_button:compactIconButton}}},interactions:{focused:{width:focusOutlineWidth}}}=esm.tokens,comfortable={typography:labelTypography,height:circle.minHeight,width:circle.minWidth,clickbound:{height:clickbounds.default__base,width:clickbounds.default__base},entities:{label:{spacings:{left:medium_small}},track:{width:"32px",height:"8px",background:backgroundColorMedium,border:{type:"border",radius:"4px"},states:{active:{background:activeColor},hover:{background:primaryHover}}},handle:{height:"16px",width:"16px",boxShadow:boxShadow,background:iconTertiary,states:{active:{background:primaryResting},hover:{background:primaryHoverAlt}}}},modes:{compact:{height:compactIconButton.minHeight,width:compactIconButton.minWidth,clickbound:{height:clickbounds.compact__standard,width:clickbounds.compact__standard},entities:{track:{width:"20px",height:"10px",states:{disabled:{background:iconTertiary},active:{background:primaryResting}}},handle:{height:"6px",width:"6px",background:iconInteractive}}}},states:{disabled:{background:backgroundDisabled},focus:{outline:{width:focusOutlineWidth,type:"outline",style:"dashed",color:focusOutlineColor}},hover:{background:primaryHoverAlt,entities:{handle:{background:primaryHover}}}}};var templates=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs"),useToken=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/hooks/useToken.mjs"),eds_context=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/EdsProvider/eds.context.js");const StyledLabel=styled_components_browser_esm.ZP.label.withConfig({displayName:"Switch__StyledLabel",componentId:"sc-sdaahx-0"})(["cursor:",";border:none;background-color:transparent;vertical-align:middle;display:inline-flex;align-items:center;position:relative;gap:",";"],(({$isDisabled:$isDisabled})=>$isDisabled?"not-allowed":"pointer"),(({$size:$size})=>"small"===$size?"12px":"8px")),Switch_Label=styled_components_browser_esm.ZP.span.withConfig({displayName:"Switch__Label",componentId:"sc-sdaahx-1"})((({theme:theme})=>(0,styled_components_browser_esm.iv)(["",";"],(0,templates.oc)(theme.typography)))),Switch=(0,react.forwardRef)((function Switch({size:size="default",disabled:disabled,label:label,className:className,style:style,...rest},ref){const{density:density}=(0,eds_context.q)(),overrideDensity="small"===size?"compact":density,token=(0,useToken.d)({density:overrideDensity},comfortable);return(0,jsx_runtime.jsx)(styled_components_browser_esm.f6,{theme:token,children:label?(0,jsx_runtime.jsxs)(StyledLabel,{$size:size,$isDisabled:disabled,className:className,style:style,children:["small"===size?(0,jsx_runtime.jsx)(SwitchSmall,{disabled:disabled,...rest,ref:ref}):(0,jsx_runtime.jsx)(SwitchDefault,{disabled:disabled,...rest,ref:ref}),label&&(0,jsx_runtime.jsx)(Switch_Label,{children:label})]}):"small"===size?(0,jsx_runtime.jsx)(SwitchSmall,{disabled:disabled,className:className,style:style,...rest,ref:ref}):(0,jsx_runtime.jsx)(SwitchDefault,{disabled:disabled,className:className,style:style,...rest,ref:ref})})}));Switch.displayName="Switch";const ToggleButton=react.memo((({label:label,checked:checked,onChange:onChange})=>react.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},react.createElement(Label._,{label:label,id:`${label}-switch-label`,style:{paddingTop:15,fontSize:15}}),react.createElement(Switch,{id:`${label}-switch`,"aria-label":label,label:"",onChange:onChange,checked:checked,style:{paddingRight:10,width:"3rem"}}))));ToggleButton.displayName="ToggleButton";var settings_ToggleButton=ToggleButton;ToggleButton.__docgenInfo={description:"",methods:[],displayName:"ToggleButton",props:{label:{required:!0,tsType:{name:"string"},description:"Label for the component."},checked:{required:!0,tsType:{name:"boolean"},description:"Initial state of the component."},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(e: ChangeEvent) => void",signature:{arguments:[{type:{name:"ChangeEvent",elements:[{name:"HTMLInputElement"}],raw:"ChangeEvent"},name:"e"}],return:{name:"void"}}},description:"Callback to update the state of the component."}}};var ToggleButton_stories={component:settings_ToggleButton,title:"SubsurfaceViewer/Components/Settings"};const ToggleButtonStory={name:" ToggleButton",args:{label:"test"}};ToggleButtonStory.parameters={...ToggleButtonStory.parameters,docs:{...ToggleButtonStory.parameters?.docs,source:{originalSource:'{\n name: " ToggleButton",\n args: {\n label: "test"\n }\n}',...ToggleButtonStory.parameters?.docs?.source}}};const __namedExportsOrder=["ToggleButtonStory"]},"./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(module,__unused_webpack_exports,__webpack_require__){var reactIs=__webpack_require__("./node_modules/hoist-non-react-statics/node_modules/react-is/index.js"),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};function getStatics(component){return reactIs.isMemo(component)?MEMO_STATICS:TYPE_STATICS[component.$$typeof]||REACT_STATICS}TYPE_STATICS[reactIs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;module.exports=function hoistNonReactStatics(targetComponent,sourceComponent,blacklist){if("string"!=typeof sourceComponent){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);inheritedComponent&&inheritedComponent!==objectPrototype&&hoistNonReactStatics(targetComponent,inheritedComponent,blacklist)}var keys=getOwnPropertyNames(sourceComponent);getOwnPropertySymbols&&(keys=keys.concat(getOwnPropertySymbols(sourceComponent)));for(var targetStatics=getStatics(targetComponent),sourceStatics=getStatics(sourceComponent),i=0;i$disabledText?label.states.disabled.typography.color:label.typography.color)),Text=styled_components_browser_esm.ZP.span.withConfig({displayName:"Label__Text",componentId:"sc-1gi2bcn-1"})(["margin:0;"]),Label=(0,react.forwardRef)((function Label(props,ref){const{label:label="",meta:meta,disabled:disabled=!1,...other}=props;return(0,jsx_runtime.jsxs)(LabelBase,{ref:ref,$disabledText:disabled,...other,children:[(0,jsx_runtime.jsx)(Text,{children:label}),meta&&(0,jsx_runtime.jsx)(Text,{children:meta})]})}))},"./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/borders.mjs":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{$:function(){return bordersTemplate}});var styled_components__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_common_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/common.mjs");const bordersTemplate=border=>{if(!border)return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({});switch(border.type){case"border":return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({border:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border),borderRadius:border.radius});case"bordergroup":return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({borderBottom:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.bottom),borderTop:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.top),borderLeft:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.left),borderRight:(0,_common_mjs__WEBPACK_IMPORTED_MODULE_1__.F)(border.right),borderBottomLeftRadius:border?.left?.radius,borderTopLeftRadius:border?.left?.radius,borderBottomRightRadius:border?.right?.radius,borderTopRightRadius:border?.right?.radius});default:return(0,styled_components__WEBPACK_IMPORTED_MODULE_0__.iv)({})}}}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.6eae0400.iframe.bundle.js.LICENSE.txt b/storybook-static/subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.d491b9ac.iframe.bundle.js.LICENSE.txt similarity index 100% rename from storybook-static/subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.6eae0400.iframe.bundle.js.LICENSE.txt rename to storybook-static/subsurface-viewer-src-storybook-components-settings-ToggleButton-stories.d491b9ac.iframe.bundle.js.LICENSE.txt diff --git a/storybook-static/subsurface-viewer-src-storybook-examples-miscExamples-stories.69d54bc1.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-examples-miscExamples-stories.69d54bc1.iframe.bundle.js deleted file mode 100644 index 34ede4b16..000000000 --- a/storybook-static/subsurface-viewer-src-storybook-examples-miscExamples-stories.69d54bc1.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[5143],{"./packages/subsurface-viewer/src/storybook/examples/miscExamples.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:function(){return Default},MapClampColor:function(){return MapClampColor},MapInContainer:function(){return MapInContainer},MapMaterial:function(){return MapMaterial},Minimal:function(){return Minimal},MixedLayerDefinitions:function(){return MixedLayerDefinitions},SelectableFeatureExample:function(){return SelectableFeatureExample},UserDefinedLayer1:function(){return UserDefinedLayer1},UserDefinedLayer2:function(){return UserDefinedLayer2},__namedExportsOrder:function(){return __namedExportsOrder},colorMapFunction:function(){return colorMapFunction},default:function(){return miscExamples_stories}});var react=__webpack_require__("./node_modules/react/index.js"),create=__webpack_require__("./node_modules/mathjs/lib/esm/core/create.js"),allFactoriesAny=__webpack_require__("./node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),SubsurfaceViewer=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),grid3dLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/grid3dLayer.ts");var sharedSettings=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx"),TruncatedSnubCube=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/test_data/TruncatedSnubCube.ts"),PentagonalToroid=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/test_data/PentagonalToroid.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iOptions:
layout: [number, number] — Layout for viewport in specified as [row, column],
viewports: [`ViewportType`] — Layers configuration for multiple viewport,

`ViewportType` options:
id: string — Viewport id
name: string — Viewport name
show3D: boolean — Toggle 3D view
layerIds: [string] — Layer ids to be displayed on viewport."},coords:{description:"Options for readout panel.
visible: boolean — Show/hide readout,
multipicking: boolean — Enable or disable multi picking,
pickDepth: number — Number of objects to pick."},scale:{description:"Options for distance scale component.
visible: boolean — Show/hide scale bar,
incrementValue: number — Increment value for the scale,
widthPerUnit: number — Scale bar width in pixels per unit value,
position: [number, number] — Scale bar position in pixels."},coordinateUnit:{description:"Unit for the scale ruler"},legend:{description:"Options for color legend.
visible: boolean — Show/hide color legend,
position: [number, number] — Legend position in pixels,
horizontal: boolean — Orientation of color legend."},colorTables:{description:"Prop containing color table data.See colorTables repo for reference:
https://github.com/emerson-eps/color-tables/blob/main/react-app/dist/component/color-tables.json"},editedData:{description:"Map data returned via editedData prop.
selectedWell: string — Selected well name,
selectedPie: object — Selected pie chart data,
selectedFeatureIndexes: [number] — Drawing layer data index,
data: object — Drawing layer data, indexed from selectedFeatureIndexes."},setProps:{description:"For reacting to prop changes"}},args:{triggerHome:0}};const layersData1=[sharedSettings.M1,sharedSettings.Rd,sharedSettings.Ng],layersData2=[sharedSettings.Wj,sharedSettings.M1,sharedSettings.Rd,sharedSettings.Ng],Default={args:sharedSettings.vj},Minimal={parameters:{docs:{description:{story:"An example showing the minimal required arguments, which will give an empty map viewer."}}},render:()=>react.createElement(SubsurfaceViewer.Z,{id:"deckgl-map",bounds:[0,0,1,1]})},MapMaterial={args:{id:"material",layers:[{...sharedSettings.e1,material:{ambient:.35,diffuse:.6,shininess:32,specularColor:[255,255,255]}}],bounds:sharedSettings.Jl,views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"An example showing example usage of Map3D material property."}}}},MapClampColor={args:{id:"clampcolor",layers:[{...sharedSettings.e1,propertyValueRange:[2782,3513],colorMapRange:[3e3,3513],colorMapClampColor:[0,255,0]}],bounds:sharedSettings.Jl,views:sharedSettings.zs},parameters:{docs:{...sharedSettings.R4.docs,description:{story:'An example usage of map property `"colorMapClampColor"'}}}},colorMapFunction={args:{id:"colorMapFunction",layers:[{...sharedSettings.e1,isContoursDepth:!0,colorMapFunction:x=>[255-100*x,255-100*x,255*x]},{...sharedSettings.Wj,image:"propertyMap.png",colorMapFunction:x=>[255-100*x,255-100*x,255*x]}],bounds:sharedSettings.Jl,views:sharedSettings.Pl}},UserDefinedLayer1={args:{id:sharedSettings.vj.id,bounds:sharedSettings.vj.bounds,layers:layersData1}},UserDefinedLayer2={args:{id:sharedSettings.vj.id,resources:sharedSettings.vj.resources,bounds:sharedSettings.vj.bounds,layers:layersData2}},SelectableFeatureComponent=args=>{const[editedData,setEditedData]=react.useState(args.editedData);return react.useEffect((()=>{setEditedData(args.editedData)}),[args.editedData]),react.createElement("div",null,react.createElement(SubsurfaceViewer.Z,_extends({},args,{editedData:editedData,setProps:updatedProps=>{setEditedData(updatedProps.editedData)}})),react.createElement("pre",null,JSON.stringify(editedData,null,2)))},SelectableFeatureExample={args:{id:"DeckGL-Map",bounds:[432205,6475078,437720,6481113],layers:[{...sharedSettings.M1,"@@type":"SelectableGeoJsonLayer"},{...sharedSettings.Rd,"@@type":"SelectableGeoJsonLayer"}]},parameters:{docs:{description:{story:"An example showing selectable feature example from the map."}}},render:args=>react.createElement(SelectableFeatureComponent,args)},MapInContainer={args:sharedSettings.vj,render:args=>react.createElement(sharedSettings.fC,{className:sharedSettings.Sh.main},react.createElement(SubsurfaceViewer.Z,args))},math=(0,create.U)(allFactoriesAny.$,{randomSeed:"1984"}),randomFunc=math?.random?math.random:Math.random,snubCubePoints=TruncatedSnubCube.wo.map((v=>10*v)),snubCubeProperties=Array(TruncatedSnubCube.sr).fill(0).map((()=>50*randomFunc())),toroidPoints=PentagonalToroid.wo.map((v=>10*v)).map(((v,index)=>index%3==0?v+30:v)),toroidProperties=Array(PentagonalToroid.sr).fill(0).map((()=>10*randomFunc())),parameters={docs:{...sharedSettings.R4,description:{story:"Demonstrates mixed ways of layer creation."}}},MixedLayerDefinitions={args:{bounds:[-25,-25,50,30],views:{layout:[1,1],viewports:[{id:"view_1",show3D:!0}]},id:"grid-3d-polyhedral-cell-typed-input",layers:[void 0,{"@@type":"AxesLayer",id:"axes-layer2",bounds:[453150,5925800,-2e3,469400,5939500,0],ZIncreasingDownwards:!1,id:"polyhedral-cells-axes-typed-input",bounds:[-15,-15,-15,40,20,15]},null,{"@@type":"Grid3DLayer",id:"Grid3DLayer",gridLines:!0,material:!0,colorMapName:"Rainbow",ZIncreasingDownwards:!1,id:"polyhedral1-typed-input","@@typedArraySupport":!0,coloringMode:SubsurfaceViewer.W.Y,pickable:!0,pointsData:new Float32Array(snubCubePoints),polysData:new Uint32Array(TruncatedSnubCube.OQ),propertiesData:new Float32Array(snubCubeProperties),colorMapRange:[-8,8],colorMapClampColor:[200,200,200],colorMapName:"Seismic"},!1,new grid3dLayer.Z({gridLines:!0,material:!0,colorMapName:"Rainbow",ZIncreasingDownwards:!1,id:"polyhedral2-typed-input",pickable:!0,pointsData:new Float32Array(toroidPoints),polysData:new Uint32Array(PentagonalToroid.OQ),propertiesData:new Float32Array(toroidProperties),coloringMode:SubsurfaceViewer.W.Property})]},parameters:parameters};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: subsufaceProps\n}",...Default.parameters?.docs?.source}}},Minimal.parameters={...Minimal.parameters,docs:{...Minimal.parameters?.docs,source:{originalSource:'{\n parameters: {\n docs: {\n description: {\n story: "An example showing the minimal required arguments, which will give an empty map viewer."\n }\n }\n },\n render: () => \n}',...Minimal.parameters?.docs?.source}}},MapMaterial.parameters={...MapMaterial.parameters,docs:{...MapMaterial.parameters?.docs,source:{originalSource:'{\n args: {\n id: "material",\n layers: [{\n ...hugin25mKhNetmapMapLayerPng,\n material\n }],\n bounds: hugin2DBounds,\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "An example showing example usage of Map3D material property."\n }\n }\n }\n}',...MapMaterial.parameters?.docs?.source}}},MapClampColor.parameters={...MapClampColor.parameters,docs:{...MapClampColor.parameters?.docs,source:{originalSource:'{\n args: {\n id: "clampcolor",\n layers: [{\n ...hugin25mKhNetmapMapLayerPng,\n propertyValueRange,\n colorMapRange,\n colorMapClampColor\n }],\n bounds: hugin2DBounds,\n views: default2DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: \'An example usage of map property `"colorMapClampColor"\'\n }\n }\n }\n}',...MapClampColor.parameters?.docs?.source}}},colorMapFunction.parameters={...colorMapFunction.parameters,docs:{...colorMapFunction.parameters?.docs,source:{originalSource:'{\n args: {\n id: "colorMapFunction",\n layers: [\n // map layer\n layer,\n // colormap layer\n {\n ...colormapLayer,\n image: "propertyMap.png",\n colorMapFunction: x => [255 - x * 100, 255 - x * 100, 255 * x] // If defined this function will override the colormap.\n }],\n bounds: hugin2DBounds,\n views: default3DViews\n }\n}',...colorMapFunction.parameters?.docs?.source}}},UserDefinedLayer1.parameters={...UserDefinedLayer1.parameters,docs:{...UserDefinedLayer1.parameters?.docs,source:{originalSource:"{\n args: {\n id: subsufaceProps.id,\n bounds: subsufaceProps.bounds,\n layers: layersData1\n }\n}",...UserDefinedLayer1.parameters?.docs?.source}}},UserDefinedLayer2.parameters={...UserDefinedLayer2.parameters,docs:{...UserDefinedLayer2.parameters?.docs,source:{originalSource:"{\n args: {\n id: subsufaceProps.id,\n resources: subsufaceProps.resources,\n bounds: subsufaceProps.bounds,\n layers: layersData2\n }\n}",...UserDefinedLayer2.parameters?.docs?.source}}},SelectableFeatureExample.parameters={...SelectableFeatureExample.parameters,docs:{...SelectableFeatureExample.parameters?.docs,source:{originalSource:'{\n args: {\n id: "DeckGL-Map",\n bounds: [432205, 6475078, 437720, 6481113],\n layers: [polylineUsingSelectableGeoJsonLayer, polygonUsingSelectableGeoJsonLayer]\n },\n parameters: {\n docs: {\n description: {\n story: "An example showing selectable feature example from the map."\n }\n }\n },\n render: args => \n}',...SelectableFeatureExample.parameters?.docs?.source}}},MapInContainer.parameters={...MapInContainer.parameters,docs:{...MapInContainer.parameters?.docs,source:{originalSource:"{\n args: subsufaceProps,\n render: args => \n \n \n}",...MapInContainer.parameters?.docs?.source}}},MixedLayerDefinitions.parameters={...MixedLayerDefinitions.parameters,docs:{...MixedLayerDefinitions.parameters?.docs,source:{originalSource:'{\n args: {\n bounds: [-25, -25, 50, 30],\n views: {\n layout: ([1, 1] as [number, number]),\n viewports: [{\n id: "view_1",\n show3D: true\n }]\n },\n id: "grid-3d-polyhedral-cell-typed-input",\n layers: [undefined, {\n ...axes,\n id: "polyhedral-cells-axes-typed-input",\n bounds: [-15, -15, -15, 40, 20, 15]\n }, null, {\n ...grid3dLayer,\n id: "polyhedral1-typed-input",\n "@@typedArraySupport": true,\n coloringMode: TGrid3DColoringMode.Y,\n pickable: true,\n pointsData: new Float32Array(snubCubePoints),\n polysData: new Uint32Array(SnubCubeFaces),\n propertiesData: new Float32Array(snubCubeProperties),\n colorMapRange: [-8, 8],\n colorMapClampColor: [200, 200, 200],\n colorMapName: "Seismic"\n }, false, ((new Grid3DLayer({\n gridLines: true,\n material: true,\n colorMapName: "Rainbow",\n ZIncreasingDownwards: false,\n id: "polyhedral2-typed-input",\n pickable: true,\n pointsData: new Float32Array(toroidPoints),\n polysData: new Uint32Array(ToroidFaces),\n propertiesData: new Float32Array(toroidProperties),\n coloringMode: TGrid3DColoringMode.Property\n }) as unknown) as Layer)]\n },\n parameters: parameters\n}',...MixedLayerDefinitions.parameters?.docs?.source}}};const __namedExportsOrder=["Default","Minimal","MapMaterial","MapClampColor","colorMapFunction","UserDefinedLayer1","UserDefinedLayer2","SelectableFeatureExample","MapInContainer","MixedLayerDefinitions"]},"./packages/subsurface-viewer/src/layers/grid3d/test_data/PentagonalToroid.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{OQ:function(){return Faces},sr:function(){return VertexCount},wo:function(){return Points}});const C0=(3-Math.sqrt(5))/4,C1=(Math.sqrt(5)-1)/4,C2=(1+Math.sqrt(5))/4,Points=[.5,0,C2,.5,0,-C2,-.5,0,C2,-.5,0,-C2,0,C2,.5,0,C2,-.5,0,-C2,.5,0,-C2,-.5,C2,.5,0,-C2,-.5,0,0,C0,.5,0,C0,-.5,0,-C0,.5,0,-C0,-.5,C1,C1,C1,C1,C1,-C1,-C1,-C1,C1,-C1,-C1,-C1,C0,.5,0,-C0,-.5,0],Faces=[5,0,6,16,12,10,5,1,8,18,15,11,5,2,4,14,10,12,5,3,9,19,17,13,5,4,5,15,18,14,5,5,3,13,11,15,5,6,7,17,19,16,5,7,1,11,13,17,5,8,0,10,14,18,5,9,2,12,16,19,3,2,6,0,3,2,0,4,3,3,1,7,3,3,7,9,3,4,0,8,3,4,8,5,3,5,8,1,3,5,1,3,3,6,2,9,3,6,9,7],VertexCount=80},"./packages/subsurface-viewer/src/layers/grid3d/test_data/TruncatedSnubCube.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{OQ:function(){return Faces},sr:function(){return VertexCount},wo:function(){return Points}});const C0=.03022517647727011,C1=.03630716729159513,C2=.040977806224636225,C3=.04564293957876494,C4=.051724930393089966,C5=.08744289047276839,C6=.08897531081303763,C7=.09641163211454777,C8=.10383500001768008,C9=.10536742035794933,C10=.2450214662773631,C11=.25213479294506524,C12=.25578852648697925,C13=.2594078935254808,C14=.266521220193183,C15=.30296894256435697,C16=.3107539819206035,C17=.3137398958061564,C18=.3166836571239303,C19=.32446869648017684,C20=.3415821603133315,C21=.3421516282996725,C22=.3496389843387572,C23=.35707936458297945,C24=.35764883256932045,C25=.3919404789469772,C26=.40221538330780837,C27=.40271740948195195,C28=.40316532850196596,C29=.4134402328627971,C30=.4223523523667726,C31=.4257635648947752,C32=.43136191452063516,C33=.43690230845586675,C34=.44031352098386933,C35=.4714793574054987,C36=.47546003791984226,C37=.4804922200139097,C38=.4854598455082518,C39=.4894405260225954,C40=.6319974061364817,C41=.6358614860540425,C42=.6398421665683861,C43=.6410027320851348,C44=.6420771755897583,C45=.6439380803776656,C46=.647947477795688,C47=.6499219360216627,C49=.6855579590791095,C48=.6519281583100315,C50=.6889691716071121,C51=.6930683858709402,C52=.697074482834414,C53=.7004856953624166,C54=.7657290432607724,C55=.7691698956742122,C56=.7697393636605533,C57=.7720413833524075,C58=.7732108302879603,C59=.7742763923737797,C60=.7747913160528183,C61=.7797391712489629,C62=.7803086392353038,C63=.7805887324654148,C64=.9227051570193641,C65=.9237364928727411,C66=.9244082055612856,C67=.9268980705658701,C68=.9274353460160546,C69=.9278480157600277,C70=.9303378807646123,C71=.9310095934531567,C72=.9320409293065338,Points=[C72,-C25,-C2,-C72,C25,-C2,C25,C72,-C2,-C25,-C72,-C2,C71,-C15,C12,-C71,C15,C12,C15,C71,C12,-C15,-C71,C12,C10,C70,-C17,-C10,-C70,-C17,C70,-C10,-C17,-C70,C10,-C17,C0,C69,C27,-C0,-C69,C27,C69,-C0,C27,-C69,C0,C27,C28,-C1,-C68,-C28,C1,-C68,C1,C28,-C68,-C1,-C28,-C68,C26,C3,C68,-C26,-C3,C68,C3,-C26,C68,-C3,C26,C68,C18,-C11,C68,-C18,C11,C68,C11,C18,C68,-C11,-C18,C68,C16,C13,-C68,-C16,-C13,-C68,C13,-C16,-C68,-C13,C16,-C68,C4,-C67,-C27,-C4,C67,-C27,C67,C4,-C27,-C67,-C4,-C27,C14,-C66,C17,-C14,C66,C17,C66,C14,C17,-C66,-C14,C17,C65,C19,-C12,-C65,-C19,-C12,C19,-C65,-C12,-C19,C65,-C12,C64,C29,C2,-C64,-C29,C2,C29,-C64,C2,-C29,C64,C2,C63,-C40,-C7,-C63,C40,-C7,C40,C63,-C7,-C40,-C63,-C7,C62,-C35,C32,-C62,C35,C32,C35,C62,C32,-C35,-C62,C32,C30,C61,-C37,-C30,-C61,-C37,C61,-C30,-C37,-C61,C30,-C37,C38,-C31,C60,-C38,C31,C60,C31,C38,C60,-C31,-C38,C60,C36,C33,-C60,-C36,-C33,-C60,C33,-C36,-C60,-C33,C36,-C60,C5,C59,C43,-C5,-C59,C43,C59,-C5,C43,-C59,C5,C43,C44,-C6,-C58,-C44,C6,-C58,C6,C44,-C58,-C6,-C44,-C58,C42,C8,C58,-C42,-C8,C58,C8,-C42,C58,-C8,C42,C58,C9,-C57,-C43,-C9,C57,-C43,C57,C9,-C43,-C57,-C9,-C43,C34,-C56,C37,-C34,C56,C37,C56,C34,C37,-C56,-C34,C37,C55,C39,-C32,-C55,-C39,-C32,C39,-C55,-C32,-C39,C55,-C32,C54,C47,C7,-C54,-C47,C7,C47,-C54,C7,-C47,C54,C7,C53,-C41,-C22,-C53,C41,-C22,C41,C53,-C22,-C41,-C53,-C22,C20,C52,C45,-C20,-C52,C45,C52,-C20,C45,-C52,C20,C45,C46,-C21,-C51,-C46,C21,-C51,C21,C46,-C51,-C21,-C46,-C51,C42,C23,C51,-C42,-C23,C51,C23,-C42,C51,-C23,C42,C51,C24,-C50,-C45,-C24,C50,-C45,C50,C24,-C45,-C50,-C24,-C45,C49,C48,C22,-C49,-C48,C22,C48,-C49,C22,-C48,C49,C22],Faces=[8,0,10,34,40,44,38,14,4,8,1,11,35,41,45,39,15,5,8,2,8,33,43,47,37,12,6,8,3,9,32,42,46,36,13,7,8,16,30,19,29,17,31,18,28,8,20,26,23,25,21,27,22,24,6,52,102,60,110,84,118,6,53,103,61,111,85,119,6,54,100,62,108,86,116,6,55,101,63,109,87,117,6,56,98,88,114,64,106,6,57,99,89,115,65,107,6,58,96,90,112,66,104,6,59,97,91,113,67,105,6,0,4,52,118,94,48,6,1,5,53,119,95,49,6,2,6,54,116,92,50,6,3,7,55,117,93,51,6,8,56,106,74,81,33,6,9,57,107,75,80,32,6,10,58,104,72,82,34,6,11,59,105,73,83,35,6,12,37,85,111,79,68,6,13,36,84,110,78,69,6,14,38,86,108,76,70,6,15,39,87,109,77,71,6,16,28,64,114,82,72,6,17,29,65,115,83,73,6,18,31,67,113,81,74,6,19,30,66,112,80,75,6,20,24,60,102,70,76,6,21,25,61,103,71,77,6,22,27,63,101,69,78,6,23,26,62,100,68,79,6,40,88,98,50,92,44,6,41,89,99,51,93,45,6,42,90,96,48,94,46,6,43,91,97,49,95,47,5,0,48,96,58,10,5,1,49,97,59,11,5,2,50,98,56,8,5,3,51,99,57,9,5,4,14,70,102,52,5,5,15,71,103,53,5,6,12,68,100,54,5,7,13,69,101,55,5,16,72,104,66,30,5,17,73,105,67,31,5,18,74,106,64,28,5,19,75,107,65,29,5,20,76,108,62,26,5,21,77,109,63,27,5,22,78,110,60,24,5,23,79,111,61,25,5,32,80,112,90,42,5,33,81,113,91,43,5,34,82,114,88,40,5,35,83,115,89,41,5,36,46,94,118,84,5,37,47,95,119,85,5,38,44,92,116,86,5,39,45,93,117,87],VertexCount=354}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-examples-miscExamples-stories.fa5ab57e.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-examples-miscExamples-stories.fa5ab57e.iframe.bundle.js new file mode 100644 index 000000000..19a90833d --- /dev/null +++ b/storybook-static/subsurface-viewer-src-storybook-examples-miscExamples-stories.fa5ab57e.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[5143],{"./packages/subsurface-viewer/src/storybook/examples/miscExamples.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:function(){return Default},MapClampColor:function(){return MapClampColor},MapInContainer:function(){return MapInContainer},MapMaterial:function(){return MapMaterial},Minimal:function(){return Minimal},MixedLayerDefinitions:function(){return MixedLayerDefinitions},SelectableFeatureExample:function(){return SelectableFeatureExample},UserDefinedLayer1:function(){return UserDefinedLayer1},UserDefinedLayer2:function(){return UserDefinedLayer2},__namedExportsOrder:function(){return __namedExportsOrder},colorMapFunction:function(){return colorMapFunction},default:function(){return miscExamples_stories}});var react=__webpack_require__("./node_modules/react/index.js"),create=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/create.js"),allFactoriesAny=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),SubsurfaceViewer=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),grid3dLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/grid3dLayer.ts");var sharedSettings=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx"),TruncatedSnubCube=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/test_data/TruncatedSnubCube.ts"),PentagonalToroid=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/test_data/PentagonalToroid.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iOptions:
layout: [number, number] — Layout for viewport in specified as [row, column],
viewports: [`ViewportType`] — Layers configuration for multiple viewport,

`ViewportType` options:
id: string — Viewport id
name: string — Viewport name
show3D: boolean — Toggle 3D view
layerIds: [string] — Layer ids to be displayed on viewport."},coords:{description:"Options for readout panel.
visible: boolean — Show/hide readout,
multipicking: boolean — Enable or disable multi picking,
pickDepth: number — Number of objects to pick."},scale:{description:"Options for distance scale component.
visible: boolean — Show/hide scale bar,
incrementValue: number — Increment value for the scale,
widthPerUnit: number — Scale bar width in pixels per unit value,
position: [number, number] — Scale bar position in pixels."},coordinateUnit:{description:"Unit for the scale ruler"},legend:{description:"Options for color legend.
visible: boolean — Show/hide color legend,
position: [number, number] — Legend position in pixels,
horizontal: boolean — Orientation of color legend."},colorTables:{description:"Prop containing color table data.See colorTables repo for reference:
https://github.com/emerson-eps/color-tables/blob/main/react-app/dist/component/color-tables.json"},editedData:{description:"Map data returned via editedData prop.
selectedWell: string — Selected well name,
selectedPie: object — Selected pie chart data,
selectedFeatureIndexes: [number] — Drawing layer data index,
data: object — Drawing layer data, indexed from selectedFeatureIndexes."},setProps:{description:"For reacting to prop changes"}},args:{triggerHome:0}};const layersData1=[sharedSettings.M1,sharedSettings.Rd,sharedSettings.Ng],layersData2=[sharedSettings.Wj,sharedSettings.M1,sharedSettings.Rd,sharedSettings.Ng],Default={args:sharedSettings.vj},Minimal={parameters:{docs:{description:{story:"An example showing the minimal required arguments, which will give an empty map viewer."}}},render:()=>react.createElement(SubsurfaceViewer.Z,{id:"deckgl-map",bounds:[0,0,1,1]})},MapMaterial={args:{id:"material",layers:[{...sharedSettings.e1,material:{ambient:.35,diffuse:.6,shininess:32,specularColor:[255,255,255]}}],bounds:sharedSettings.Jl,views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"An example showing example usage of Map3D material property."}}}},MapClampColor={args:{id:"clampcolor",layers:[{...sharedSettings.e1,propertyValueRange:[2782,3513],colorMapRange:[3e3,3513],colorMapClampColor:[0,255,0]}],bounds:sharedSettings.Jl,views:sharedSettings.zs},parameters:{docs:{...sharedSettings.R4.docs,description:{story:'An example usage of map property `"colorMapClampColor"'}}}},colorMapFunction={args:{id:"colorMapFunction",layers:[{...sharedSettings.e1,isContoursDepth:!0,colorMapFunction:x=>[255-100*x,255-100*x,255*x]},{...sharedSettings.Wj,image:"propertyMap.png",colorMapFunction:x=>[255-100*x,255-100*x,255*x]}],bounds:sharedSettings.Jl,views:sharedSettings.Pl}},UserDefinedLayer1={args:{id:sharedSettings.vj.id,bounds:sharedSettings.vj.bounds,layers:layersData1}},UserDefinedLayer2={args:{id:sharedSettings.vj.id,resources:sharedSettings.vj.resources,bounds:sharedSettings.vj.bounds,layers:layersData2}},SelectableFeatureComponent=args=>{const[editedData,setEditedData]=react.useState(args.editedData);return react.useEffect((()=>{setEditedData(args.editedData)}),[args.editedData]),react.createElement("div",null,react.createElement(SubsurfaceViewer.Z,_extends({},args,{editedData:editedData,setProps:updatedProps=>{setEditedData(updatedProps.editedData)}})),react.createElement("pre",null,JSON.stringify(editedData,null,2)))},SelectableFeatureExample={args:{id:"DeckGL-Map",bounds:[432205,6475078,437720,6481113],layers:[{...sharedSettings.M1,"@@type":"SelectableGeoJsonLayer"},{...sharedSettings.Rd,"@@type":"SelectableGeoJsonLayer"}]},parameters:{docs:{description:{story:"An example showing selectable feature example from the map."}}},render:args=>react.createElement(SelectableFeatureComponent,args)},MapInContainer={args:sharedSettings.vj,render:args=>react.createElement(sharedSettings.fC,{className:sharedSettings.Sh.main},react.createElement(SubsurfaceViewer.Z,args))},math=(0,create.U)(allFactoriesAny.$,{randomSeed:"1984"}),randomFunc=math?.random?math.random:Math.random,snubCubePoints=TruncatedSnubCube.wo.map((v=>10*v)),snubCubeProperties=Array(TruncatedSnubCube.sr).fill(0).map((()=>50*randomFunc())),toroidPoints=PentagonalToroid.wo.map((v=>10*v)).map(((v,index)=>index%3==0?v+30:v)),toroidProperties=Array(PentagonalToroid.sr).fill(0).map((()=>10*randomFunc())),parameters={docs:{...sharedSettings.R4,description:{story:"Demonstrates mixed ways of layer creation."}}},MixedLayerDefinitions={args:{bounds:[-25,-25,50,30],views:{layout:[1,1],viewports:[{id:"view_1",show3D:!0}]},id:"grid-3d-polyhedral-cell-typed-input",layers:[void 0,{"@@type":"AxesLayer",id:"axes-layer2",bounds:[453150,5925800,-2e3,469400,5939500,0],ZIncreasingDownwards:!1,id:"polyhedral-cells-axes-typed-input",bounds:[-15,-15,-15,40,20,15]},null,{"@@type":"Grid3DLayer",id:"Grid3DLayer",gridLines:!0,material:!0,colorMapName:"Rainbow",ZIncreasingDownwards:!1,id:"polyhedral1-typed-input","@@typedArraySupport":!0,coloringMode:SubsurfaceViewer.W.Y,pickable:!0,pointsData:new Float32Array(snubCubePoints),polysData:new Uint32Array(TruncatedSnubCube.OQ),propertiesData:new Float32Array(snubCubeProperties),colorMapRange:[-8,8],colorMapClampColor:[200,200,200],colorMapName:"Seismic"},!1,new grid3dLayer.Z({gridLines:!0,material:!0,colorMapName:"Rainbow",ZIncreasingDownwards:!1,id:"polyhedral2-typed-input",pickable:!0,pointsData:new Float32Array(toroidPoints),polysData:new Uint32Array(PentagonalToroid.OQ),propertiesData:new Float32Array(toroidProperties),coloringMode:SubsurfaceViewer.W.Property})]},parameters:parameters};Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"{\n args: subsufaceProps\n}",...Default.parameters?.docs?.source}}},Minimal.parameters={...Minimal.parameters,docs:{...Minimal.parameters?.docs,source:{originalSource:'{\n parameters: {\n docs: {\n description: {\n story: "An example showing the minimal required arguments, which will give an empty map viewer."\n }\n }\n },\n render: () => \n}',...Minimal.parameters?.docs?.source}}},MapMaterial.parameters={...MapMaterial.parameters,docs:{...MapMaterial.parameters?.docs,source:{originalSource:'{\n args: {\n id: "material",\n layers: [{\n ...hugin25mKhNetmapMapLayerPng,\n material\n }],\n bounds: hugin2DBounds,\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "An example showing example usage of Map3D material property."\n }\n }\n }\n}',...MapMaterial.parameters?.docs?.source}}},MapClampColor.parameters={...MapClampColor.parameters,docs:{...MapClampColor.parameters?.docs,source:{originalSource:'{\n args: {\n id: "clampcolor",\n layers: [{\n ...hugin25mKhNetmapMapLayerPng,\n propertyValueRange,\n colorMapRange,\n colorMapClampColor\n }],\n bounds: hugin2DBounds,\n views: default2DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: \'An example usage of map property `"colorMapClampColor"\'\n }\n }\n }\n}',...MapClampColor.parameters?.docs?.source}}},colorMapFunction.parameters={...colorMapFunction.parameters,docs:{...colorMapFunction.parameters?.docs,source:{originalSource:'{\n args: {\n id: "colorMapFunction",\n layers: [\n // map layer\n layer,\n // colormap layer\n {\n ...colormapLayer,\n image: "propertyMap.png",\n colorMapFunction: x => [255 - x * 100, 255 - x * 100, 255 * x] // If defined this function will override the colormap.\n }],\n bounds: hugin2DBounds,\n views: default3DViews\n }\n}',...colorMapFunction.parameters?.docs?.source}}},UserDefinedLayer1.parameters={...UserDefinedLayer1.parameters,docs:{...UserDefinedLayer1.parameters?.docs,source:{originalSource:"{\n args: {\n id: subsufaceProps.id,\n bounds: subsufaceProps.bounds,\n layers: layersData1\n }\n}",...UserDefinedLayer1.parameters?.docs?.source}}},UserDefinedLayer2.parameters={...UserDefinedLayer2.parameters,docs:{...UserDefinedLayer2.parameters?.docs,source:{originalSource:"{\n args: {\n id: subsufaceProps.id,\n resources: subsufaceProps.resources,\n bounds: subsufaceProps.bounds,\n layers: layersData2\n }\n}",...UserDefinedLayer2.parameters?.docs?.source}}},SelectableFeatureExample.parameters={...SelectableFeatureExample.parameters,docs:{...SelectableFeatureExample.parameters?.docs,source:{originalSource:'{\n args: {\n id: "DeckGL-Map",\n bounds: [432205, 6475078, 437720, 6481113],\n layers: [polylineUsingSelectableGeoJsonLayer, polygonUsingSelectableGeoJsonLayer]\n },\n parameters: {\n docs: {\n description: {\n story: "An example showing selectable feature example from the map."\n }\n }\n },\n render: args => \n}',...SelectableFeatureExample.parameters?.docs?.source}}},MapInContainer.parameters={...MapInContainer.parameters,docs:{...MapInContainer.parameters?.docs,source:{originalSource:"{\n args: subsufaceProps,\n render: args => \n \n \n}",...MapInContainer.parameters?.docs?.source}}},MixedLayerDefinitions.parameters={...MixedLayerDefinitions.parameters,docs:{...MixedLayerDefinitions.parameters?.docs,source:{originalSource:'{\n args: {\n bounds: [-25, -25, 50, 30],\n views: {\n layout: ([1, 1] as [number, number]),\n viewports: [{\n id: "view_1",\n show3D: true\n }]\n },\n id: "grid-3d-polyhedral-cell-typed-input",\n layers: [undefined, {\n ...axes,\n id: "polyhedral-cells-axes-typed-input",\n bounds: [-15, -15, -15, 40, 20, 15]\n }, null, {\n ...grid3dLayer,\n id: "polyhedral1-typed-input",\n "@@typedArraySupport": true,\n coloringMode: TGrid3DColoringMode.Y,\n pickable: true,\n pointsData: new Float32Array(snubCubePoints),\n polysData: new Uint32Array(SnubCubeFaces),\n propertiesData: new Float32Array(snubCubeProperties),\n colorMapRange: [-8, 8],\n colorMapClampColor: [200, 200, 200],\n colorMapName: "Seismic"\n }, false, ((new Grid3DLayer({\n gridLines: true,\n material: true,\n colorMapName: "Rainbow",\n ZIncreasingDownwards: false,\n id: "polyhedral2-typed-input",\n pickable: true,\n pointsData: new Float32Array(toroidPoints),\n polysData: new Uint32Array(ToroidFaces),\n propertiesData: new Float32Array(toroidProperties),\n coloringMode: TGrid3DColoringMode.Property\n }) as unknown) as Layer)]\n },\n parameters: parameters\n}',...MixedLayerDefinitions.parameters?.docs?.source}}};const __namedExportsOrder=["Default","Minimal","MapMaterial","MapClampColor","colorMapFunction","UserDefinedLayer1","UserDefinedLayer2","SelectableFeatureExample","MapInContainer","MixedLayerDefinitions"]},"./packages/subsurface-viewer/src/layers/grid3d/test_data/PentagonalToroid.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{OQ:function(){return Faces},sr:function(){return VertexCount},wo:function(){return Points}});const C0=(3-Math.sqrt(5))/4,C1=(Math.sqrt(5)-1)/4,C2=(1+Math.sqrt(5))/4,Points=[.5,0,C2,.5,0,-C2,-.5,0,C2,-.5,0,-C2,0,C2,.5,0,C2,-.5,0,-C2,.5,0,-C2,-.5,C2,.5,0,-C2,-.5,0,0,C0,.5,0,C0,-.5,0,-C0,.5,0,-C0,-.5,C1,C1,C1,C1,C1,-C1,-C1,-C1,C1,-C1,-C1,-C1,C0,.5,0,-C0,-.5,0],Faces=[5,0,6,16,12,10,5,1,8,18,15,11,5,2,4,14,10,12,5,3,9,19,17,13,5,4,5,15,18,14,5,5,3,13,11,15,5,6,7,17,19,16,5,7,1,11,13,17,5,8,0,10,14,18,5,9,2,12,16,19,3,2,6,0,3,2,0,4,3,3,1,7,3,3,7,9,3,4,0,8,3,4,8,5,3,5,8,1,3,5,1,3,3,6,2,9,3,6,9,7],VertexCount=80},"./packages/subsurface-viewer/src/layers/grid3d/test_data/TruncatedSnubCube.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{OQ:function(){return Faces},sr:function(){return VertexCount},wo:function(){return Points}});const C0=.03022517647727011,C1=.03630716729159513,C2=.040977806224636225,C3=.04564293957876494,C4=.051724930393089966,C5=.08744289047276839,C6=.08897531081303763,C7=.09641163211454777,C8=.10383500001768008,C9=.10536742035794933,C10=.2450214662773631,C11=.25213479294506524,C12=.25578852648697925,C13=.2594078935254808,C14=.266521220193183,C15=.30296894256435697,C16=.3107539819206035,C17=.3137398958061564,C18=.3166836571239303,C19=.32446869648017684,C20=.3415821603133315,C21=.3421516282996725,C22=.3496389843387572,C23=.35707936458297945,C24=.35764883256932045,C25=.3919404789469772,C26=.40221538330780837,C27=.40271740948195195,C28=.40316532850196596,C29=.4134402328627971,C30=.4223523523667726,C31=.4257635648947752,C32=.43136191452063516,C33=.43690230845586675,C34=.44031352098386933,C35=.4714793574054987,C36=.47546003791984226,C37=.4804922200139097,C38=.4854598455082518,C39=.4894405260225954,C40=.6319974061364817,C41=.6358614860540425,C42=.6398421665683861,C43=.6410027320851348,C44=.6420771755897583,C45=.6439380803776656,C46=.647947477795688,C47=.6499219360216627,C49=.6855579590791095,C48=.6519281583100315,C50=.6889691716071121,C51=.6930683858709402,C52=.697074482834414,C53=.7004856953624166,C54=.7657290432607724,C55=.7691698956742122,C56=.7697393636605533,C57=.7720413833524075,C58=.7732108302879603,C59=.7742763923737797,C60=.7747913160528183,C61=.7797391712489629,C62=.7803086392353038,C63=.7805887324654148,C64=.9227051570193641,C65=.9237364928727411,C66=.9244082055612856,C67=.9268980705658701,C68=.9274353460160546,C69=.9278480157600277,C70=.9303378807646123,C71=.9310095934531567,C72=.9320409293065338,Points=[C72,-C25,-C2,-C72,C25,-C2,C25,C72,-C2,-C25,-C72,-C2,C71,-C15,C12,-C71,C15,C12,C15,C71,C12,-C15,-C71,C12,C10,C70,-C17,-C10,-C70,-C17,C70,-C10,-C17,-C70,C10,-C17,C0,C69,C27,-C0,-C69,C27,C69,-C0,C27,-C69,C0,C27,C28,-C1,-C68,-C28,C1,-C68,C1,C28,-C68,-C1,-C28,-C68,C26,C3,C68,-C26,-C3,C68,C3,-C26,C68,-C3,C26,C68,C18,-C11,C68,-C18,C11,C68,C11,C18,C68,-C11,-C18,C68,C16,C13,-C68,-C16,-C13,-C68,C13,-C16,-C68,-C13,C16,-C68,C4,-C67,-C27,-C4,C67,-C27,C67,C4,-C27,-C67,-C4,-C27,C14,-C66,C17,-C14,C66,C17,C66,C14,C17,-C66,-C14,C17,C65,C19,-C12,-C65,-C19,-C12,C19,-C65,-C12,-C19,C65,-C12,C64,C29,C2,-C64,-C29,C2,C29,-C64,C2,-C29,C64,C2,C63,-C40,-C7,-C63,C40,-C7,C40,C63,-C7,-C40,-C63,-C7,C62,-C35,C32,-C62,C35,C32,C35,C62,C32,-C35,-C62,C32,C30,C61,-C37,-C30,-C61,-C37,C61,-C30,-C37,-C61,C30,-C37,C38,-C31,C60,-C38,C31,C60,C31,C38,C60,-C31,-C38,C60,C36,C33,-C60,-C36,-C33,-C60,C33,-C36,-C60,-C33,C36,-C60,C5,C59,C43,-C5,-C59,C43,C59,-C5,C43,-C59,C5,C43,C44,-C6,-C58,-C44,C6,-C58,C6,C44,-C58,-C6,-C44,-C58,C42,C8,C58,-C42,-C8,C58,C8,-C42,C58,-C8,C42,C58,C9,-C57,-C43,-C9,C57,-C43,C57,C9,-C43,-C57,-C9,-C43,C34,-C56,C37,-C34,C56,C37,C56,C34,C37,-C56,-C34,C37,C55,C39,-C32,-C55,-C39,-C32,C39,-C55,-C32,-C39,C55,-C32,C54,C47,C7,-C54,-C47,C7,C47,-C54,C7,-C47,C54,C7,C53,-C41,-C22,-C53,C41,-C22,C41,C53,-C22,-C41,-C53,-C22,C20,C52,C45,-C20,-C52,C45,C52,-C20,C45,-C52,C20,C45,C46,-C21,-C51,-C46,C21,-C51,C21,C46,-C51,-C21,-C46,-C51,C42,C23,C51,-C42,-C23,C51,C23,-C42,C51,-C23,C42,C51,C24,-C50,-C45,-C24,C50,-C45,C50,C24,-C45,-C50,-C24,-C45,C49,C48,C22,-C49,-C48,C22,C48,-C49,C22,-C48,C49,C22],Faces=[8,0,10,34,40,44,38,14,4,8,1,11,35,41,45,39,15,5,8,2,8,33,43,47,37,12,6,8,3,9,32,42,46,36,13,7,8,16,30,19,29,17,31,18,28,8,20,26,23,25,21,27,22,24,6,52,102,60,110,84,118,6,53,103,61,111,85,119,6,54,100,62,108,86,116,6,55,101,63,109,87,117,6,56,98,88,114,64,106,6,57,99,89,115,65,107,6,58,96,90,112,66,104,6,59,97,91,113,67,105,6,0,4,52,118,94,48,6,1,5,53,119,95,49,6,2,6,54,116,92,50,6,3,7,55,117,93,51,6,8,56,106,74,81,33,6,9,57,107,75,80,32,6,10,58,104,72,82,34,6,11,59,105,73,83,35,6,12,37,85,111,79,68,6,13,36,84,110,78,69,6,14,38,86,108,76,70,6,15,39,87,109,77,71,6,16,28,64,114,82,72,6,17,29,65,115,83,73,6,18,31,67,113,81,74,6,19,30,66,112,80,75,6,20,24,60,102,70,76,6,21,25,61,103,71,77,6,22,27,63,101,69,78,6,23,26,62,100,68,79,6,40,88,98,50,92,44,6,41,89,99,51,93,45,6,42,90,96,48,94,46,6,43,91,97,49,95,47,5,0,48,96,58,10,5,1,49,97,59,11,5,2,50,98,56,8,5,3,51,99,57,9,5,4,14,70,102,52,5,5,15,71,103,53,5,6,12,68,100,54,5,7,13,69,101,55,5,16,72,104,66,30,5,17,73,105,67,31,5,18,74,106,64,28,5,19,75,107,65,29,5,20,76,108,62,26,5,21,77,109,63,27,5,22,78,110,60,24,5,23,79,111,61,25,5,32,80,112,90,42,5,33,81,113,91,43,5,34,82,114,88,40,5,35,83,115,89,41,5,36,46,94,118,84,5,37,47,95,119,85,5,38,44,92,116,86,5,39,45,93,117,87],VertexCount=354}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-Grid3DLayer-stories.ed368d84.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-Grid3DLayer-stories.ed368d84.iframe.bundle.js deleted file mode 100644 index e022607d6..000000000 --- a/storybook-static/subsurface-viewer-src-storybook-layers-Grid3DLayer-stories.ed368d84.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[4136],{"./packages/subsurface-viewer/src/storybook/layers/Grid3DLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomColorFuncWithClamping:function(){return CustomColorFuncWithClamping},DiscretePropertyWithClamping:function(){return DiscretePropertyWithClamping},PolyhedralCells:function(){return PolyhedralCells},Simgrid:function(){return Simgrid},Simgrid2x:function(){return Simgrid2x},Simgrid4x:function(){return Simgrid4x},Simgrid8xIJonly:function(){return Simgrid8xIJonly},SimgridArrayInput:function(){return SimgridArrayInput},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return Grid3DLayer_stories}});var react=__webpack_require__("./node_modules/react/index.js"),create=__webpack_require__("./node_modules/mathjs/lib/esm/core/create.js"),allFactoriesAny=__webpack_require__("./node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),SubsurfaceViewer=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),TruncatedSnubCube=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/test_data/TruncatedSnubCube.ts"),PentagonalToroid=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/test_data/PentagonalToroid.ts"),Points_namespaceObject=JSON.parse("[2414.391357421875,-1948.5203857421875,1909.3011474609375,2211.583984375,-1947.6064453125,1911.4830322265625,2008.8961181640625,-1946.69287109375,1913.0819091796875,1806.7314453125,-1945.7818603515625,1914.7738037109375,1605.21435546875,-1944.87353515625,1915.328369140625,1403.844482421875,-1943.966064453125,1905.2833251953125,1202.9244384765625,-1943.060546875,1885.2830810546875,1001.3092041015625,-1942.1519775390625,1869.30029296875,800.0269775390625,-1941.244873046875,1848.361328125,598.5827026367188,-1940.3370361328125,1825.2337646484375,396.998779296875,-1939.428466796875,1796.958740234375,193.21180725097656,-1938.51025390625,1774.7591552734375,-17.019411087036133,-1937.562744140625,1755.9044189453125,-227.74468994140625,-1936.613037109375,1749.645751953125,-435.438232421875,-1935.677001953125,1752.8162841796875,-629.0044555664062,-1934.8045654296875,1746.212158203125,-820.8356323242188,-1933.9400634765625,1743.226806640625,-1014.0609741210938,-1933.0693359375,1741.4766845703125,-1208.2711181640625,-1932.194091796875,1731.908203125,-1403.6920166015625,-1931.3133544921875,1722.7774658203125,-1600.515869140625,-1930.42626953125,1724.520751953125,2410.743896484375,-1736.5308837890625,1908.3699951171875,2207.00146484375,-1736.5318603515625,1908.900146484375,2004.076171875,-1736.049560546875,1908.06103515625,1802.221923828125,-1735.05517578125,1904.45849609375,1601.1361083984375,-1732.915283203125,1910.1724853515625,1400.3826904296875,-1730.9471435546875,1900.2486572265625,1199.1015625,-1729.693115234375,1885.743896484375,996.9292602539062,-1729.8701171875,1869.74658203125,796.1390380859375,-1731.1387939453125,1838.1781005859375,594.576416015625,-1732.086181640625,1808.7415771484375,391.24322509765625,-1731.6070556640625,1785.6104736328125,186.80113220214844,-1731.024169921875,1760.148193359375,-22.04740333557129,-1730.111083984375,1733.089111328125,-231.5094757080078,-1727.98876953125,1722.7364501953125,-437.0242614746094,-1724.7703857421875,1725.5267333984375,-627.2534790039062,-1721.9593505859375,1728.05322265625,-817.114990234375,-1719.967529296875,1735.944091796875,-1009.4979248046875,-1719.591552734375,1739.5369873046875,-1204.4840087890625,-1720.5498046875,1732.9390869140625,-1401.627197265625,-1722.12548828125,1731.9478759765625,-1600.031005859375,-1724.9266357421875,1738.0531005859375,2407.112548828125,-1525.4676513671875,1908.3328857421875,2202.244384765625,-1525.5679931640625,1906.672607421875,1998.9759521484375,-1525.5823974609375,1899.7120361328125,1797.3826904296875,-1524.353515625,1894.830322265625,1596.760009765625,-1521.9752197265625,1897.42724609375,1396.4036865234375,-1518.883056640625,1893.79052734375,1196.60498046875,-1516.3863525390625,1873.2196044921875,994.296142578125,-1519.21923828125,1848.83447265625,792.801025390625,-1522.5145263671875,1816.60205078125,591.2206420898438,-1523.928955078125,1783.789794921875,386.5569763183594,-1524.6600341796875,1758.9879150390625,181.25453186035156,-1525.0465087890625,1727.71484375,-27.138105392456055,-1523.9783935546875,1695.8248291015625,-235.3233642578125,-1521.9793701171875,1679.74072265625,-437.8040466308594,-1516.0474853515625,1690.5067138671875,-624.0758056640625,-1510.326171875,1709.189453125,-813.1533203125,-1508.5003662109375,1716.8016357421875,-1005.4830322265625,-1509.26416015625,1721.03271484375,-1201.4832763671875,-1510.9990234375,1732.7401123046875,-1399.87548828125,-1513.935546875,1742.216064453125,-1599.541015625,-1517.3016357421875,1737.5032958984375,2403.47314453125,-1313.934326171875,1910.879150390625,2196.217041015625,-1313.6396484375,1917.8768310546875,1996.01171875,-1307.2686767578125,1889.2581787109375,1792.5904541015625,-1313.958251953125,1906.291259765625,1592.2291259765625,-1311.6429443359375,1906.3173828125,1391.5069580078125,-1309.1431884765625,1899.48095703125,1190.4951171875,-1308.09912109375,1878.26611328125,991.5216064453125,-1313.209228515625,1817.900634765625,790.5375366210938,-1313.131591796875,1789.6435546875,588.4523315429688,-1313.5462646484375,1762.8330078125,382.34344482421875,-1315.1558837890625,1730.717041015625,178.03382873535156,-1310.6885986328125,1694.964599609375,-28.705657958984375,-1314.14404296875,1661.7939453125,-239.14122009277344,-1315.70458984375,1645.7606201171875,-437.1062927246094,-1308.1610107421875,1665.593505859375,-620.4862060546875,-1302.203125,1683.971923828125,-809.137451171875,-1301.9422607421875,1685.62109375,-1003.1568603515625,-1301.31005859375,1698.8741455078125,-1200.8499755859375,-1303.0654296875,1722.6690673828125,-1399.4931640625,-1306.6136474609375,1735.3441162109375,-1599.0533447265625,-1310.613037109375,1731.121826171875,2399.8330078125,-1102.363037109375,1920.0474853515625,2194.771484375,-1100.52880859375,1917.4188232421875,1988.45947265625,-1105.835205078125,1923.6434326171875,1793.5809326171875,-1094.685302734375,1900.970947265625,1595.0753173828125,-1092.866943359375,1888.343017578125,1399.6602783203125,-1092.047607421875,1849.0938720703125,1188.0877685546875,-1100.6927490234375,1855.6588134765625,988.5841064453125,-1100.521728515625,1815.91015625,787.59033203125,-1103.8668212890625,1765.78271484375,589.9462280273438,-1100.4986572265625,1739.2764892578125,382.7264709472656,-1102.76708984375,1695.7393798828125,174.814208984375,-1100.662109375,1664.162109375,-37.69282150268555,-1106.9122314453125,1637.1256103515625,-241.74285888671875,-1108.878173828125,1619.83837890625,-438.2516784667969,-1105.3450927734375,1625.44580078125,-621.1549072265625,-1104.4342041015625,1628.0943603515625,-805.5689086914062,-1104.5755615234375,1637.4486083984375,-997.08740234375,-1103.6478271484375,1651.5438232421875,-1208.10205078125,-1099.77197265625,1694.2821044921875,-1402.4674072265625,-1102.03173828125,1711.1175537109375,-1598.568359375,-1105.12353515625,1715.50830078125,2396.2021484375,-891.3294677734375,1930.3040771484375,2191.740478515625,-888.9714965820312,1933.0081787109375,1989.638916015625,-886.0017700195312,1922.2381591796875,1790.586181640625,-883.2078247070312,1894.7874755859375,1591.2259521484375,-881.4053344726562,1875.736083984375,1386.45458984375,-892.4273681640625,1865.3677978515625,1194.448974609375,-884.4406127929688,1795.5068359375,993.203125,-887.2839965820312,1753.69091796875,792.9080200195312,-885.932861328125,1707.9595947265625,586.4918212890625,-898.5121459960938,1699.1956787109375,385.6647644042969,-894.8789672851562,1651.35009765625,181.29441833496094,-892.2428588867188,1619.2000732421875,-33.68059539794922,-897.6179809570312,1596.451904296875,-240.87754821777344,-903.3963623046875,1582.335205078125,-441.76922607421875,-906.6343383789062,1574.8895263671875,-626.9533081054688,-909.6915283203125,1570.177490234375,-812.1681518554688,-914.8265380859375,1571.610107421875,-1033.4462890625,-894.6326904296875,1658.5400390625,-1219.26123046875,-901.4973754882812,1645.4976806640625,-1408.2833251953125,-901.003173828125,1667.29638671875,-1598.085693359375,-900.5120849609375,1686.5380859375,2392.580322265625,-680.8189086914062,1925.3458251953125,2188.338623046875,-678.2183227539062,1932.4024658203125,1985.443603515625,-675.2383422851562,1925.280029296875,1785.458740234375,-672.7020874023438,1896.711181640625,1585.9962158203125,-671.0465087890625,1865.4244384765625,1386.762451171875,-671.5836791992188,1826.335205078125,1187.876708984375,-673.758056640625,1780.0670166015625,987.6135864257812,-675.9959106445312,1734.904541015625,778.2334594726562,-686.4677124023438,1714.6534423828125,589.87841796875,-679.8671875,1648.26708984375,389.7355651855469,-692.0108642578125,1611.982177734375,180.7937469482422,-682.7724609375,1595.0181884765625,-8.650132179260254,-696.4190673828125,1536.4949951171875,-233.69921875,-672.376953125,1554.2578125,-446.33392333984375,-703.83251953125,1538.519287109375,-636.73681640625,-711.98779296875,1523.6512451171875,-836.9090576171875,-706.185791015625,1576.598876953125,-1031.5572509765625,-705.1403198242188,1580.0023193359375,-1222.0203857421875,-698.8890991210938,1618.6685791015625,-1410.8123779296875,-697.2607421875,1629.47998046875,-1597.60107421875,-695.0601196289062,1651.987548828125,2388.968017578125,-470.8714294433594,1921.5711669921875,2184.641357421875,-468.55181884765625,1923.06591796875,1982.5391845703125,-466.1933288574219,1903.17333984375,1782.1407470703125,-463.87591552734375,1875.5599365234375,1583.211669921875,-463.06414794921875,1838.5772705078125,1384.2681884765625,-463.92242431640625,1797.2999267578125,1185.0245361328125,-466.08135986328125,1752.094482421875,984.118896484375,-468.79302978515625,1710.51806640625,781.8001708984375,-471.70391845703125,1676.40478515625,584.7609252929688,-477.33697509765625,1628.795166015625,391.7859802246094,-483.20550537109375,1575.3092041015625,195.85325622558594,-487.0691833496094,1554.90283203125,-17.184179306030273,-487.929931640625,1563.8583984375,-247.3394775390625,-491.2453918457031,1505.1708984375,-451.5699157714844,-498.23486328125,1505.0333251953125,-654.6353149414062,-490.2243347167969,1533.7930908203125,-847.1200561523438,-492.641357421875,1559.2950439453125,-1035.870361328125,-492.0207824707031,1588.41796875,-1224.705322265625,-490.2763977050781,1592.5555419921875,-1411.765625,-487.5160217285156,1610.678955078125,-1597.1068115234375,-485.5665588378906,1633.4139404296875,2385.358154296875,-261.05755615234375,1926.0340576171875,2181.052978515625,-259.57452392578125,1912.9427490234375,1979.8955078125,-258.3654479980469,1881.5404052734375,1780.5982666015625,-257.33721923828125,1845.2381591796875,1583.243896484375,-258.0154113769531,1800.0955810546875,1383.8287353515625,-258.8160400390625,1761.2115478515625,1181.7706298828125,-259.7225646972656,1730.1607666015625,980.7643432617188,-263.5214538574219,1689.3543701171875,780.053955078125,-268.60162353515625,1649.0189208984375,584.8907470703125,-275.7236633300781,1592.693603515625,390.1493225097656,-279.6019592285156,1550.3697509765625,185.46975708007812,-275.5165100097656,1526.5299072265625,-19.56712532043457,-279.87066650390625,1538.211181640625,-238.9632110595703,-278.5946960449219,1516.08154296875,-426.5694274902344,-271.66339111328125,1568.254638671875,-656.7191772460938,-277.97418212890625,1529.2161865234375,-851.8557739257812,-276.197998046875,1561.314208984375,-1042.3922119140625,-280.6817932128906,1600.8260498046875,-1226.670166015625,-277.1746826171875,1602.3226318359375,-1412.1705322265625,-275.3658447265625,1619.3280029296875,-1596.6099853515625,-274.994873046875,1645.598388671875,2381.7587890625,-51.83988952636719,1920.2208251953125,2178.179931640625,-51.71854019165039,1898.91357421875,1978.09130859375,-51.86866760253906,1859.3822021484375,1781.387939453125,-53.048954010009766,1809.010009765625,1584.5164794921875,-54.8098030090332,1760.813720703125,1384.35595703125,-55.94259262084961,1723.7205810546875,1181.7508544921875,-57.27207565307617,1693.890869140625,978.4779052734375,-60.33739471435547,1664.8203125,777.0264282226562,-65.76592254638672,1630.27978515625,582.6062622070312,-70.90437316894531,1576.7431640625,384.56097412109375,-71.8167724609375,1539.36767578125,180.75054931640625,-71.44841766357422,1533.6527099609375,-44.50536346435547,-61.892974853515625,1570.603759765625,-241.30018615722656,-63.98183059692383,1571.025390625,-499.0440979003906,-70.74394989013672,1563.6553955078125,-668.2872314453125,-67.70501708984375,1570.5137939453125,-854.9736938476562,-72.06974792480469,1611.8204345703125,-1031.08837890625,-42.91152572631836,1587.90087890625,-1225.695068359375,-65.33190155029297,1632.0841064453125,-1410.4920654296875,-67.21590423583984,1660.0611572265625,-1596.1220703125,-68.17767333984375,1683.4512939453125,2378.1689453125,156.7891387939453,1917.8330078125,2175.582763671875,155.36058044433594,1888.90087890625,1976.5426025390625,154.0279541015625,1842.8824462890625,1779.407470703125,152.2300262451172,1792.9404296875,1580.11376953125,150.1284637451172,1754.6239013671875,1380.072998046875,147.92446899414062,1716.0877685546875,1177.8033447265625,144.7850799560547,1681.72216796875,973.7230224609375,140.7586669921875,1652.8880615234375,767.882080078125,135.19137573242188,1636.5107421875,565.1636352539062,129.02401733398438,1615.7176513671875,375.8413391113281,137.02035522460938,1567.8748779296875,144.943603515625,126.89665222167969,1527.259765625,-40.83793640136719,127.65203094482422,1541.9173583984375,-230.29360961914062,131.50244140625,1535.496826171875,-483.5885314941406,134.36227416992188,1574.3597412109375,-656.0233764648438,145.2989959716797,1595.6005859375,-834.78271484375,156.05877685546875,1605.1488037109375,-1037.9058837890625,148.63841247558594,1644.1549072265625,-1225.406494140625,141.9761962890625,1674.1568603515625,-1410.4791259765625,137.16537475585938,1699.2705078125,-1595.636962890625,137.4810791015625,1715.4754638671875,2374.639892578125,361.9144287109375,1924.9521484375,2171.517578125,359.8203125,1893.3485107421875,1971.9093017578125,358.1660461425781,1846.1231689453125,1773.095703125,356.13568115234375,1800.06201171875,1572.7801513671875,352.4714050292969,1765.8194580078125,1372.03564453125,349.8022766113281,1728.7786865234375,1170.5706787109375,343.7102355957031,1688.1234130859375,966.8104858398438,334.7000732421875,1658.3203125,767.52880859375,392.5894775390625,1555.1651611328125,573.664794921875,390.80438232421875,1517.0137939453125,379.13787841796875,388.8003845214844,1477.9404296875,176.37966918945312,342.9757080078125,1529.397705078125,-6.115403652191162,370.1488037109375,1460.3138427734375,-201.40753173828125,324.65704345703125,1562.54052734375,-403.9936828613281,330.3331604003906,1569.2559814453125,-640.5536499023438,370.09814453125,1585.497314453125,-814.6439819335938,390.6212463378906,1595.24267578125,-1043.5166015625,351.1175537109375,1670.5360107421875,-1189.737548828125,390.8018798828125,1599.2503662109375,-1411.6253662109375,332.9382019042969,1728.4705810546875,-1595.165283203125,337.3287353515625,1749.4942626953125,2371.3681640625,552.0713500976562,1943.145263671875,2167.797607421875,548.5088500976562,1904.2652587890625,1967.2601318359375,545.466552734375,1855.20263671875,1766.1685791015625,541.7236938476562,1814.3428955078125,1565.552490234375,537.710693359375,1778.103759765625,1364.2650146484375,533.6466674804688,1741.653076171875,1169.7578125,565.3204956054688,1627.4527587890625,969.0354614257812,575.8917236328125,1582.4451904296875,767.2056884765625,579.554931640625,1550.131591796875,568.7991943359375,573.5593872070312,1529.4820556640625,373.7895202636719,573.9462280273438,1496.349365234375,180.13809204101562,574.0781860351562,1474.7066650390625,-15.43492317199707,572.9508666992188,1471.7281494140625,-215.65777587890625,550.7069091796875,1511.7470703125,-430.5234680175781,574.9571533203125,1476.665283203125,-627.8244018554688,530.2182006835938,1608.8275146484375,-812.3545532226562,563.9219970703125,1585.5582275390625,-1001.748291015625,561.9238891601562,1589.6737060546875,-1226.5806884765625,506.2792053222656,1725.929931640625,-1408.74755859375,509.5754089355469,1748.0367431640625,-1594.7322998046875,520.8214721679688,1773.1925048828125,2368.15966796875,738.544677734375,1968.32470703125,2164.066162109375,734.533447265625,1922.645263671875,1961.8291015625,730.1351928710938,1872.103759765625,1759.007080078125,725.3585815429688,1831.496826171875,1568.29443359375,735.0513916015625,1737.455322265625,1368.9322509765625,737.5205688476562,1699.0997314453125,1169.363037109375,748.4107055664062,1647.5579833984375,968.4198608398438,754.2996215820312,1596.660888671875,765.1244506835938,753.2088623046875,1578.373046875,565.0655517578125,751.4312133789062,1564.0230712890625,367.9629821777344,750.9293823242188,1546.404541015625,173.2606658935547,753.58740234375,1526.3182373046875,-23.875429153442383,758.5975952148438,1500.4815673828125,-225.59814453125,757.2984008789062,1508.190673828125,-434.3000793457031,755.9548950195312,1516.1678466796875,-631.311767578125,754.029541015625,1545.1566162109375,-815.5828857421875,752.2315063476562,1572.2506103515625,-994.457763671875,750.49609375,1598.551025390625,-1215.7657470703125,680.308837890625,1709.25732421875,-1386.6126708984375,696.9805297851562,1740.1748046875,-1594.2935791015625,706.8070678710938,1780.2041015625,2364.94921875,925.14306640625,1995.3482666015625,2159.0966796875,920.2626953125,1949.222412109375,1956.312255859375,915.7113037109375,1890.8284912109375,1754.69970703125,922.7403564453125,1807.3843994140625,1559.112548828125,921.015380859375,1770.962158203125,1363.12451171875,920.5802001953125,1728.6324462890625,1163.3045654296875,924.1649169921875,1687.650634765625,963.6571044921875,929.6477661132812,1643.5950927734375,763.3919677734375,932.0588989257812,1610.8134765625,563.2858276367188,930.4072265625,1599.6392822265625,365.43035888671875,929.2177124023438,1593.4619140625,169.51693725585938,930.0684814453125,1582.904052734375,-29.570098876953125,938.955078125,1547.805419921875,-233.5299835205078,938.3055419921875,1546.202880859375,-437.165283203125,930.8192749023438,1572.7010498046875,-627.4511108398438,925.0911254882812,1601.620361328125,-813.1353149414062,920.18310546875,1627.8018798828125,-995.2173461914062,914.9266967773438,1650.1868896484375,-1181.7142333984375,907.5894775390625,1673.5374755859375,-1381.9217529296875,893.9380493164062,1736.084228515625,-1593.8446044921875,897.1409301757812,1770.59912109375,2361.73583984375,1111.92822265625,2023.71826171875,2152.686767578125,1105.9962158203125,1984.2808837890625,1952.294189453125,1103.702880859375,1913.0399169921875,1754.7161865234375,1103.793701171875,1843.9149169921875,1556.9071044921875,1105.01318359375,1799.49560546875,1359.5443115234375,1105.437744140625,1761.1221923828125,1160.160888671875,1106.4129638671875,1726.7196044921875,960.8071899414062,1109.212158203125,1688.8770751953125,762.4166870117188,1112.2589111328125,1652.9071044921875,562.9888916015625,1110.117919921875,1642.203125,365.32940673828125,1111.07177734375,1626.6500244140625,167.9940185546875,1110.2508544921875,1626.7491455078125,-33.5337028503418,1113.0078125,1612.8062744140625,-237.5606689453125,1111.4573974609375,1613.852294921875,-441.15606689453125,1107.64697265625,1627.1649169921875,-629.618896484375,1104.426025390625,1640.2923583984375,-815.2988891601562,1101.1820068359375,1655.1279296875,-1000.8177490234375,1097.5736083984375,1671.125244140625,-1192.1956787109375,1093.4532470703125,1692.5028076171875,-1385.9609375,1087.8505859375,1746.44677734375,-1593.38818359375,1090.5264892578125,1765.72802734375,2358.491943359375,1300.4542236328125,2042.5498046875,2150.72802734375,1295.6173095703125,2003.26416015625,1950.49658203125,1293.302734375,1937.6058349609375,1752.8399658203125,1292.8875732421875,1878.1572265625,1555.5587158203125,1293.273681640625,1832.08740234375,1358.9932861328125,1294.3760986328125,1788.262451171875,1158.6107177734375,1292.8590087890625,1767.0682373046875,959.33837890625,1293.4825439453125,1738.2996826171875,761.5094604492188,1294.449462890625,1707.3282470703125,563.6395263671875,1294.1351318359375,1684.7513427734375,365.626220703125,1291.6256103515625,1682.332763671875,167.41766357421875,1289.667724609375,1682.01416015625,-35.63608932495117,1292.5897216796875,1666.03125,-240.38356018066406,1292.038330078125,1664.738525390625,-444.8500671386719,1290.2469482421875,1670.372314453125,-632.397216796875,1288.4295654296875,1676.150634765625,-819.0147094726562,1286.988037109375,1681.5252685546875,-1006.0271606445312,1284.4964599609375,1698.8629150390625,-1197.66357421875,1283.00048828125,1715.462890625,-1391.889892578125,1281.733642578125,1752.060302734375,-1592.9322509765625,1283.747314453125,1759.650390625,2355.216796875,1490.8262939453125,2040.003662109375,2152.085693359375,1487.952880859375,2000.1876220703125,1952.857666015625,1485.9442138671875,1945.3233642578125,1753.710693359375,1484.9210205078125,1901.3106689453125,1557.5472412109375,1485.4842529296875,1853.122802734375,1358.678955078125,1485.1104736328125,1826.27685546875,1158.546142578125,1484.0174560546875,1807.098876953125,959.1353149414062,1483.1353759765625,1785.5701904296875,761.3579711914062,1482.83447265625,1757.6248779296875,564.6148071289062,1482.9246826171875,1728.5968017578125,366.6514587402344,1480.8428955078125,1718.2218017578125,167.82275390625,1479.330078125,1713.934814453125,-36.06379699707031,1481.072998046875,1699.260498046875,-242.17088317871094,1480.39990234375,1696.2520751953125,-446.38494873046875,1479.2640380859375,1697.284423828125,-635.4200439453125,1478.0511474609375,1701.84521484375,-822.7745361328125,1477.24267578125,1705.6302490234375,-1010.8739624023438,1475.71240234375,1721.9254150390625,-1201.4775390625,1474.91796875,1739.481201171875,-1395.3243408203125,1475.18408203125,1753.6849365234375,-1592.4783935546875,1476.16357421875,1754.04736328125,2351.92822265625,1681.9495849609375,2017.3951416015625,2153.366943359375,1681.240966796875,1988.2049560546875,1955.272216796875,1680.533935546875,1947.943603515625,1757.4154052734375,1679.8280029296875,1909.552490234375,1558.7259521484375,1679.1190185546875,1879.496337890625,1358.409912109375,1678.404052734375,1868.0443115234375,1158.2021484375,1677.689697265625,1853.3134765625,959.0586547851562,1676.9791259765625,1831.7569580078125,761.8983764648438,1676.275390625,1800.1962890625,565.171630859375,1675.573486328125,1769.4168701171875,367.6167907714844,1674.868408203125,1747.704833984375,168.0535125732422,1674.15625,1744.1202392578125,-36.57413101196289,1673.426025390625,1735.020751953125,-242.99966430664062,1672.6893310546875,1724.704345703125,-448.75244140625,1671.955078125,1724.4246826171875,-638.0398559570312,1671.2796630859375,1725.114501953125,-826.2775268554688,1670.60791015625,1731.51513671875,-1015.2550048828125,1669.9334716796875,1740.4559326171875,-1205.789794921875,1669.253662109375,1748.15625,-1398.1126708984375,1668.5672607421875,1749.03271484375,-1592.0260009765625,1667.875244140625,1751.0401611328125,992.2589721679688,-1519.148193359375,1860.5531005859375,1993.1488037109375,-1316.2755126953125,1911.1214599609375,990.49462890625,-1309.9169921875,1837.5987548828125,789.9884033203125,-1313.8741455078125,1789.1680908203125,176.51707458496094,-1314.4678955078125,1697.3045654296875,-31.58577537536621,-1316.8531494140625,1662.9451904296875,1993.0242919921875,-1097.1356201171875,1905.3482666015625,1788.0810546875,-1105.2628173828125,1919.60302734375,1588.40283203125,-1101.9556884765625,1909.8118896484375,1387.1619873046875,-1099.99267578125,1895.5037841796875,790.4315795898438,-1100.369873046875,1777.1055908203125,1391.9674072265625,-882.12060546875,1844.0670166015625,1187.302734375,-894.5205688476562,1818.584716796875,987.15380859375,-893.9308471679688,1775.30322265625,787.0053100585938,-895.7200317382812,1731.3134765625,-997.1456909179688,-921.8184204101562,1571.799560546875,786.8492431640625,-676.0648193359375,1695.2972412109375,578.9756469726562,-697.9714965820312,1669.4217529296875,196.87667846679688,-690.4868774414062,1560.4405517578125,-25.049821853637695,-690.39208984375,1563.34716796875,-24.63995361328125,-690.640380859375,1562.6217041015625,-234.94329833984375,-691.4750366210938,1550.0155029296875,-236.2210235595703,-701.552001953125,1539.38232421875,-823.345458984375,-721.6019287109375,1522.4434814453125,-1016.5620727539062,-722.9948120117188,1551.6324462890625,-1.9335676431655884,-491.8675537109375,1538.9798583984375,-217.79136657714844,-491.95367431640625,1555.568115234375,-651.0145874023438,-505.59259033203125,1500.14892578125,-838.9658813476562,-515.852783203125,1505.62451171875,192.94947814941406,-283.8665771484375,1506.99169921875,-10.675519943237305,-282.2176513671875,1510.7366943359375,-34.164794921875,-260.5022888183594,1576.07177734375,-19.212860107421875,-280.22747802734375,1539.7447509765625,-222.84185791015625,-282.7503356933594,1543.7783203125,-224.65078735351562,-262.63470458984375,1574.6673583984375,-457.2918395996094,-288.30096435546875,1517.5015869140625,-441.2040710449219,-273.71820068359375,1543.7359619140625,-656.6827392578125,-297.53216552734375,1495.2333984375,586.267333984375,-75.7641372680664,1564.4998779296875,388.8216247558594,-77.65245056152344,1516.5228271484375,187.90167236328125,-74.4859848022461,1494.4298095703125,156.02609252929688,-68.00877380371094,1528.009033203125,189.7588348388672,-72.43045043945312,1518.1644287109375,-22.63223648071289,-75.89730834960938,1535.37109375,-488.7389831542969,-66.13772583007812,1579.8555908203125,-844.2722778320312,-62.55165481567383,1579.418212890625,-1041.4296875,-67.24015808105469,1622.3343505859375,766.6806030273438,135.84384155273438,1635.6214599609375,570.1492309570312,123.99202728271484,1586.6131591796875,174.85926818847656,147.35719299316406,1516.146484375,146.0089111328125,132.65374755859375,1525.7589111328125,-46.344730377197266,126.43216705322266,1549.4986572265625,-233.45233154296875,129.79620361328125,1558.3665771484375,-464.32012939453125,141.86782836914062,1588.3553466796875,-1020.2158813476562,171.74696350097656,1601.808349609375,757.1058349609375,321.80291748046875,1661.832275390625,562.9246826171875,328.35028076171875,1594.5120849609375,368.2490234375,330.29010009765625,1543.4404296875,161.252197265625,345.0293273925781,1514.715576171875,185.31732177734375,383.91571044921875,1458.797119140625,-29.530147552490234,332.6868591308594,1527.5220947265625,-220.557861328125,342.19921875,1531.6842041015625,-256.78753662109375,403.8931884765625,1522.4453125,-208.26809692382812,365.6625061035156,1483.6558837890625,-400.2099609375,339.2623291015625,1589.590576171875,-409.62860107421875,351.29339599609375,1546.0303955078125,-631.2640991210938,345.0706787109375,1608.8333740234375,-818.5386352539062,357.8971862792969,1629.679931640625,-1007.5545043945312,382.4658203125,1631.4984130859375,-1002.7235717773438,394.71331787109375,1605.836669921875,-1227.9776611328125,334.86090087890625,1709.0023193359375,1161.6561279296875,527.8564453125,1700.171875,958.0885009765625,515.9373779296875,1677.7384033203125,752.746337890625,512.4597778320312,1657.563720703125,-217.4730682373047,571.7542724609375,1468.7705078125,-427.32958984375,550.3174438476562,1541.25146484375,-628.6127319335938,565.6101684570312,1573.99169921875,-635.3648071289062,572.8856201171875,1526.5546875,-813.1674194335938,546.0057983398438,1623.283203125,-818.2660522460938,568.0275268554688,1560.742919921875,-1001.2756958007812,566.3150024414062,1601.5506591796875,-1174.7554931640625,566.009765625,1628.679443359375,1559.02978515625,719.9459228515625,1791.8602294921875,1356.927490234375,718.6001586914062,1751.8682861328125,1150.4781494140625,715.92236328125,1716.712890625,-1169.91357421875,744.8869018554688,1632.018798828125,1753.72509765625,911.0240478515625,1837.82666015625,1550.705810546875,907.1506958007812,1805.9449462890625,2414.391357421875,-1948.5203857421875,1927.60546875,2211.5400390625,-1947.6064453125,1929.75048828125,2008.816650390625,-1946.69287109375,1930.7205810546875,1806.62109375,-1945.7818603515625,1931.5948486328125,1605.0599365234375,-1944.87353515625,1931.8392333984375,1403.6300048828125,-1943.966064453125,1922.179443359375,1202.606689453125,-1943.060546875,1902.8521728515625,1000.927490234375,-1942.1519775390625,1887.0521240234375,799.6173095703125,-1941.2430419921875,1865.8109130859375,598.3141479492188,-1940.3370361328125,1841.2579345703125,396.88214111328125,-1939.428466796875,1811.510498046875,193.12762451171875,-1938.51025390625,1788.3936767578125,-17.113750457763672,-1937.562744140625,1768.9383544921875,-227.84397888183594,-1936.613037109375,1761.864013671875,-435.579833984375,-1935.677001953125,1764.822509765625,-629.1978759765625,-1934.8045654296875,1759.0517578125,-821.0711669921875,-1933.9400634765625,1756.4088134765625,-1014.264404296875,-1933.0693359375,1753.677490234375,-1208.359130859375,-1932.194091796875,1742.841552734375,-1403.6627197265625,-1931.3133544921875,1732.320556640625,-1600.515869140625,-1930.42626953125,1733.313720703125,2410.743896484375,-1736.5435791015625,1926.354736328125,-1600.031005859375,-1724.9017333984375,1745.5228271484375,2407.112548828125,-1525.4984130859375,1925.9810791015625,1207.991455078125,-1506.4794921875,1890.610595703125,1005.1047973632812,-1511.2127685546875,1865.5963134765625,-1599.541015625,-1517.301513671875,1744.290283203125,2403.474365234375,-1314.04296875,1929.7767333984375,2182.34423828125,-1321.5689697265625,1936.8883056640625,1982.18896484375,-1315.642578125,1909.076904296875,1001.4692993164062,-1307.2606201171875,1834.95556640625,799.6409912109375,-1308.898193359375,1805.784912109375,373.05462646484375,-1318.5289306640625,1742.02001953125,167.93460083007812,-1313.3447265625,1705.8668212890625,-40.290042877197266,-1316.4697265625,1672.4080810546875,-1599.0533447265625,-1310.6737060546875,1737.1575927734375,2399.83642578125,-1102.5655517578125,1940.0087890625,1976.1124267578125,-1112.5567626953125,1941.681640625,1781.0633544921875,-1100.7493896484375,1918.76953125,1584.1192626953125,-1096.72265625,1904.3443603515625,1390.0594482421875,-1094.4696044921875,1863.5614013671875,795.5161743164062,-1101.4554443359375,1781.33642578125,597.2045288085938,-1099.290283203125,1754.2532958984375,-50.17803955078125,-1109.8896484375,1648.52978515625,-999.9432983398438,-1103.701904296875,1658.665771484375,-1598.568359375,-1105.2291259765625,1721.2479248046875,2396.20556640625,-891.5283203125,1949.7760009765625,1377.9183349609375,-894.6248168945312,1878.6500244140625,1185.5556640625,-887.502685546875,1808.047119140625,984.315673828125,-891.6705322265625,1765.1439208984375,784.11083984375,-891.158203125,1718.8616943359375,172.3054656982422,-890.800537109375,1628.771728515625,-243.0464324951172,-901.1420288085938,1592.6839599609375,-1036.336181640625,-893.5529174804688,1663.600341796875,-1598.085693359375,-900.5985107421875,1692.695068359375,2392.583740234375,-681.0225830078125,1944.6954345703125,769.467529296875,-693.8572998046875,1727.2239990234375,581.3045043945312,-687.115478515625,1659.04296875,381.1164855957031,-699.175537109375,1622.885498046875,173.81851196289062,-681.01220703125,1603.7078857421875,-13.138071060180664,-695.579833984375,1542.7734375,-233.4045867919922,-668.30224609375,1557.8427734375,-839.4115600585938,-704.1660766601562,1583.008056640625,-1034.4501953125,-703.3632202148438,1585.8602294921875,-1597.60107421875,-695.0947875976562,1658.6795654296875,2388.971923828125,-471.1009826660156,1940.2098388671875,-18.898347854614258,-487.3319396972656,1566.9964599609375,-245.22955322265625,-489.3234558105469,1510.703125,-655.643310546875,-488.35723876953125,1539.5377197265625,-848.7767333984375,-490.8666687011719,1565.5682373046875,-1597.1068115234375,-485.62860107421875,1639.9449462890625,2385.36328125,-261.3531494140625,1942.740234375,182.81527709960938,-274.3283996582031,1531.5675048828125,-21.653348922729492,-278.6525573730469,1542.06494140625,-237.95008850097656,-277.2947998046875,1519.231201171875,-424.8900451660156,-270.0787048339844,1572.57421875,-657.3706665039062,-276.1737365722656,1534.4659423828125,-853.9141845703125,-276.00262451171875,1566.8048095703125,-1596.6099853515625,-275.0659484863281,1652.1258544921875,2381.765380859375,-52.23320770263672,1935.4273681640625,581.1829833984375,-68.38160705566406,1581.7781982421875,382.7431640625,-69.9029312133789,1544.3087158203125,177.9564666748047,-71.41738891601562,1538.77880859375,-46.52336120605469,-61.260498046875,1573.7425537109375,-497.9333190917969,-70.18392944335938,1566.49853515625,-856.349853515625,-72.23589324951172,1615.50390625,-1032.965087890625,-44.785858154296875,1592.41796875,-1596.1220703125,-68.25289154052734,1689.8778076171875,2378.176513671875,156.35121154785156,1931.990234375,972.763916015625,144.79800415039062,1658.8157958984375,767.3005981445312,138.00914001464844,1641.1341552734375,564.435302734375,131.3631134033203,1619.8697509765625,141.41075134277344,126.31889343261719,1531.76171875,-43.398460388183594,126.56551361083984,1547.1683349609375,-232.06307983398438,129.94683837890625,1541.271484375,-482.2474060058594,133.15158081054688,1576.926025390625,-1040.36669921875,145.98483276367188,1649.103759765625,-1595.636962890625,137.3089141845703,1722.3583984375,2374.647216796875,361.48297119140625,1938.09619140625,765.9690551757812,390.3197937011719,1557.582763671875,571.621337890625,388.27081298828125,1519.495361328125,376.7172546386719,386.2428894042969,1480.619873046875,171.7100372314453,340.89031982421875,1535.520263671875,-8.63011360168457,368.96875,1464.1947021484375,-202.07418823242188,322.9599609375,1567.093505859375,-403.5725402832031,328.00372314453125,1572.90087890625,-639.613525390625,366.9528503417969,1588.62646484375,-816.048583984375,387.0431823730469,1599.65625,-1046.272705078125,346.9999694824219,1675.9102783203125,-1191.783447265625,387.0554504394531,1604.3978271484375,-1595.165283203125,337.27691650390625,1755.4315185546875,2371.374755859375,551.6885986328125,1955.374267578125,1168.634033203125,562.16748046875,1633.3609619140625,967.9612426757812,573.0701904296875,1586.729248046875,766.1687622070312,577.8045654296875,1553.7120361328125,-216.3032989501953,548.393310546875,1516.2694091796875,-429.95538330078125,573.7553100585938,1479.4468994140625,-628.3558959960938,526.4083862304688,1613.1875,-811.5791625976562,561.0745239257812,1590.1072998046875,-1001.2621459960938,559.6233520507812,1593.7044677734375,-1229.9683837890625,503.3935241699219,1731.8736572265625,-1594.7322998046875,520.8572998046875,1778.1593017578125,2368.165283203125,738.226318359375,1979.8809814453125,1566.828369140625,732.2125244140625,1746.0592041015625,1367.3729248046875,734.5153198242188,1707.466796875,1167.9542236328125,745.4766845703125,1654.8658447265625,-994.100830078125,747.1625366210938,1604.1529541015625,-1219.8038330078125,677.83642578125,1715.738037109375,-1390.363525390625,695.4452514648438,1746.281982421875,-1594.2935791015625,706.8569946289062,1783.919921875,2364.95361328125,924.8900146484375,2006.3184814453125,1753.88720703125,919.337646484375,1817.35009765625,1558.1119384765625,917.8737182617188,1780.4801025390625,-1593.8446044921875,897.162353515625,1773.9136962890625,2361.73779296875,1111.8004150390625,2033.4178466796875,1754.3837890625,1099.4990234375,1854.3765869140625,-1593.38818359375,1090.5377197265625,1768.8492431640625,2358.4931640625,1300.3944091796875,2051.03125,-1592.9322509765625,1283.7593994140625,1762.8836669921875,2355.21728515625,1490.77685546875,2048.545166015625,-1592.4783935546875,1476.1708984375,1757.182861328125,2351.92822265625,1681.9495849609375,2026.556396484375,2153.330078125,1681.240966796875,1997.421630859375,1955.322021484375,1680.533935546875,1956.5958251953125,1757.3526611328125,1679.8280029296875,1918.7481689453125,1558.5029296875,1679.1190185546875,1889.8646240234375,1358.2252197265625,1678.404052734375,1877.6317138671875,1158.121337890625,1677.689697265625,1861.7608642578125,959.0872192382812,1676.9791259765625,1839.2789306640625,762.0186767578125,1676.275390625,1807.10791015625,565.2618408203125,1675.573486328125,1776.4154052734375,367.74517822265625,1674.868408203125,1754.19580078125,168.23721313476562,1674.156982421875,1749.30419921875,-36.39208221435547,1673.4267578125,1739.8277587890625,-242.86471557617188,1672.6893310546875,1730.2325439453125,-448.63592529296875,1671.955078125,1729.5762939453125,-637.9149169921875,1671.2799072265625,1729.28173828125,-826.1788330078125,1670.608154296875,1735.0321044921875,-1015.1898193359375,1669.9334716796875,1743.6817626953125,-1205.75,1669.253662109375,1751.421630859375,-1398.0931396484375,1668.5672607421875,1752.1571044921875,-1592.0260009765625,1667.875244140625,1753.9761962890625,1002.1961059570312,-1512.156005859375,1877.2183837890625,1981.1600341796875,-1323.1912841796875,1930.1715087890625,999.6594848632812,-1304.3988037109375,1853.92919921875,798.544189453125,-1310.4017333984375,1805.3270263671875,166.3201904296875,-1317.6300048828125,1709.1168212890625,-42.8421630859375,-1320.305419921875,1675.0247802734375,1979.932373046875,-1104.2635498046875,1924.1817626953125,1776.35205078125,-1110.6661376953125,1936.3463134765625,1578.0670166015625,-1105.6319580078125,1925.4306640625,1379.1693115234375,-1101.78466796875,1909.31005859375,798.2483520507812,-1098.1488037109375,1792.2200927734375,1383.16259765625,-884.1163940429688,1857.3299560546875,1178.7606201171875,-897.6273193359375,1831.1666259765625,979.0017700195312,-898.30322265625,1787.5985107421875,778.6404418945312,-901.6343383789062,1743.96240234375,-1000.108642578125,-921.9380493164062,1578.9088134765625,778.1495361328125,-681.926025390625,1705.8345947265625,570.1453857421875,-706.2225341796875,1681.1072998046875,190.3843536376953,-689.7384033203125,1568.8663330078125,-29.304340362548828,-687.814453125,1570.87744140625,-28.82135009765625,-688.1071166992188,1570.0225830078125,-235.3181610107422,-685.1377563476562,1556.489013671875,-235.47506713867188,-694.3740234375,1548.1011962890625,-824.9374389648438,-721.090087890625,1527.9346923828125,-1018.1062622070312,-723.0318603515625,1557.6038818359375,-4.148658752441406,-491.23876953125,1542.6317138671875,-217.65748596191406,-489.2669372558594,1558.0517578125,-651.8333740234375,-504.536865234375,1504.415771484375,-840.3582153320312,-514.74365234375,1511.066162109375,190.52972412109375,-282.76507568359375,1511.9300537109375,-12.797534942626953,-281.6318664550781,1514.5782470703125,-35.68780517578125,-259.50604248046875,1579.19677734375,-21.403095245361328,-279.28875732421875,1543.6947021484375,-223.10716247558594,-281.1495361328125,1545.822265625,-224.02737426757812,-260.585205078125,1578.0498046875,-457.04638671875,-287.3643493652344,1519.8717041015625,-440.8179016113281,-272.1107177734375,1547.660400390625,-657.037841796875,-296.5337829589844,1498.54248046875,584.4010009765625,-73.07098388671875,1570.4178466796875,386.7144470214844,-75.25128936767578,1522.236328125,185.71128845214844,-72.7008285522461,1499.6422119140625,152.68763732910156,-67.85602569580078,1532.0760498046875,187.2092742919922,-72.08606719970703,1522.93896484375,-25.581417083740234,-74.78257751464844,1539.7813720703125,-486.458740234375,-66.04145812988281,1583.6512451171875,-845.80908203125,-63.1937255859375,1584.145751953125,-1043.1492919921875,-67.801025390625,1626.4603271484375,766.0354614257812,138.9999237060547,1640.630126953125,568.8196411132812,126.96051025390625,1592.22900390625,172.40538024902344,146.23106384277344,1520.9124755859375,141.99212646484375,131.4208526611328,1531.3609619140625,-48.825130462646484,125.51118469238281,1554.46923828125,-235.0180206298828,128.71957397460938,1563.2113037109375,-463.0207824707031,139.79696655273438,1591.4688720703125,-1022.1915283203125,169.048583984375,1606.5260009765625,755.79833984375,318.93414306640625,1665.189453125,561.4293823242188,325.1937255859375,1597.8072509765625,366.4954833984375,327.8224792480469,1546.3304443359375,159.07534790039062,342.640869140625,1518.4952392578125,182.30703735351562,381.8388977050781,1462.1298828125,-32.440486907958984,330.7741394042969,1533.82080078125,-222.6337890625,339.6781921386719,1538.0833740234375,-257.3437194824219,401.6546936035156,1526.80712890625,-209.98812866210938,364.6966247558594,1487.3306884765625,-400.4029541015625,337.00897216796875,1592.8740234375,-409.535400390625,348.8850402832031,1550.2484130859375,-631.6588134765625,341.95587158203125,1612.8179931640625,-820.3370361328125,355.1736755371094,1632.7056884765625,-1009.5250244140625,378.7546081542969,1635.862060546875,-1004.3805541992188,390.6888732910156,1610.7362060546875,-1230.890869140625,331.3013610839844,1714.5062255859375,1160.552001953125,524.9904174804688,1706.5909423828125,957.1329345703125,512.3649291992188,1683.5078125,751.6047973632812,509.43756103515625,1661.9312744140625,-218.62103271484375,570.6217041015625,1472.24609375,-426.3124694824219,548.5845947265625,1545.0867919921875,-626.7933349609375,563.538330078125,1578.27099609375,-633.5601806640625,572.1765747070312,1528.947998046875,-814.5684814453125,542.8018798828125,1626.6064453125,-817.2142944335938,566.5086059570312,1563.88671875,-1000.7460327148438,562.8569946289062,1606.599609375,-1177.8421630859375,562.4757690429688,1634.3077392578125,1557.7008056640625,716.8298950195312,1800.9166259765625,1355.640869140625,715.5660400390625,1759.655517578125,1149.356689453125,712.8779296875,1723.1378173828125,-1173.5333251953125,741.1052856445312,1638.8226318359375,1752.832763671875,907.3189086914062,1848.1177978515625,1549.630859375,903.5426025390625,1816.1397705078125,2414.391357421875,-1948.5203857421875,1945.909912109375,2211.495849609375,-1947.6064453125,1948.017822265625,2008.737060546875,-1946.69287109375,1948.359130859375,1806.5106201171875,-1945.7818603515625,1948.416015625,1604.9052734375,-1944.87353515625,1948.35009765625,1403.4156494140625,-1943.966064453125,1939.075439453125,1202.2891845703125,-1943.060546875,1920.4210205078125,1000.5457763671875,-1942.1519775390625,1904.80419921875,799.2075805664062,-1941.2412109375,1883.2606201171875,598.045654296875,-1940.3370361328125,1857.282470703125,396.7654724121094,-1939.428466796875,1826.06201171875,193.04347229003906,-1938.51025390625,1802.0281982421875,-17.208086013793945,-1937.562744140625,1781.9725341796875,-227.94325256347656,-1936.613037109375,1774.082275390625,-435.7214660644531,-1935.677001953125,1776.8287353515625,-629.3914184570312,-1934.8045654296875,1771.8912353515625,-821.3067016601562,-1933.9400634765625,1769.5908203125,-1014.4677124023438,-1933.0693359375,1765.878173828125,-1208.447265625,-1932.194091796875,1753.77490234375,-1403.633544921875,-1931.3133544921875,1741.8636474609375,-1600.515869140625,-1930.42626953125,1742.1068115234375,2410.743896484375,-1736.55615234375,1944.339599609375,-1600.031005859375,-1724.876953125,1752.9927978515625,2407.112548828125,-1525.529296875,1943.6292724609375,1219.3779296875,-1496.5728759765625,1908.001708984375,1015.913330078125,-1503.206298828125,1882.3582763671875,-1599.541015625,-1517.30126953125,1751.077392578125,2403.4755859375,-1314.151611328125,1948.6746826171875,2168.4716796875,-1329.4984130859375,1955.89990234375,1968.3660888671875,-1324.0164794921875,1928.895751953125,1011.4171142578125,-1301.3116455078125,1852.0107421875,808.7445678710938,-1304.664794921875,1821.9263916015625,363.7657470703125,-1321.901611328125,1753.3231201171875,157.8354034423828,-1316.0006103515625,1716.7691650390625,-51.874427795410156,-1318.795654296875,1683.0223388671875,-1599.0533447265625,-1310.7344970703125,1743.1934814453125,2399.83984375,-1102.76806640625,1959.969970703125,1963.7652587890625,-1119.278564453125,1959.719970703125,1768.5458984375,-1106.813720703125,1936.5679931640625,1573.1629638671875,-1100.5784912109375,1920.34619140625,1380.4586181640625,-1096.8914794921875,1878.0289306640625,803.4419555664062,-1099.044189453125,1796.89013671875,604.4627685546875,-1098.081787109375,1769.22998046875,-62.66325378417969,-1112.8668212890625,1659.9339599609375,-1002.7993774414062,-1103.755859375,1665.7874755859375,-1598.568359375,-1105.3348388671875,1726.987548828125,2396.208984375,-891.7271728515625,1969.248291015625,1369.382080078125,-896.8223266601562,1891.93212890625,1176.662109375,-890.5648193359375,1820.5875244140625,975.4281005859375,-896.0569458007812,1776.5970458984375,775.313720703125,-896.3833618164062,1729.763427734375,163.31649780273438,-889.3582763671875,1638.34326171875,-245.21531677246094,-898.8876953125,1603.0328369140625,-1039.2264404296875,-892.47314453125,1668.6605224609375,-1598.085693359375,-900.6849365234375,1698.852294921875,2392.58740234375,-681.2261962890625,1964.0450439453125,760.70166015625,-701.2466430664062,1739.79443359375,572.730712890625,-694.3636474609375,1669.818603515625,372.4974670410156,-706.34033203125,1633.7889404296875,166.8432159423828,-679.2517700195312,1612.39794921875,-17.626020431518555,-694.7406616210938,1549.05224609375,-233.10995483398438,-664.2274780273438,1561.427978515625,-841.9140014648438,-702.1465454101562,1589.417236328125,-1037.34326171875,-701.5861206054688,1591.7178955078125,-1597.60107421875,-695.1294555664062,1665.37158203125,2388.9755859375,-471.33056640625,1958.8487548828125,-20.612516403198242,-486.7339172363281,1570.134521484375,-243.11959838867188,-487.4014587402344,1516.235107421875,-656.6512451171875,-486.490234375,1545.2822265625,-850.4334106445312,-489.0920104980469,1571.8419189453125,-1597.1068115234375,-485.6906433105469,1646.4757080078125,2385.36865234375,-261.64874267578125,1959.4461669921875,180.16078186035156,-273.1402893066406,1536.6051025390625,-23.739572525024414,-277.4344482421875,1545.91845703125,-236.9369659423828,-275.994873046875,1522.3807373046875,-423.21063232421875,-268.4940185546875,1576.893798828125,-658.0222778320312,-274.373291015625,1539.715576171875,-855.9724731445312,-275.8072509765625,1572.2955322265625,-1596.6099853515625,-275.1369934082031,1658.6534423828125,2381.772216796875,-52.62653350830078,1950.6336669921875,579.7597045898438,-65.85885620117188,1586.8131103515625,380.9253845214844,-67.98908996582031,1549.2498779296875,175.16236877441406,-71.38636016845703,1543.90478515625,-48.541351318359375,-60.628021240234375,1576.8818359375,-496.8226013183594,-69.62390899658203,1569.34130859375,-857.725830078125,-72.40203857421875,1619.1871337890625,-1034.841796875,-46.660179138183594,1596.9354248046875,-1596.1220703125,-68.32810974121094,1696.3043212890625,2378.18408203125,155.9132843017578,1946.1475830078125,971.8048095703125,148.83738708496094,1664.7435302734375,766.7190551757812,140.82688903808594,1645.757568359375,563.706787109375,133.7022247314453,1624.0218505859375,137.87791442871094,125.74113464355469,1536.263671875,-45.95899200439453,125.4789810180664,1552.41943359375,-233.83253479003906,128.3912353515625,1547.046142578125,-480.90625,131.94090270996094,1579.4920654296875,-1042.8272705078125,143.3312530517578,1654.0523681640625,-1595.636962890625,137.13674926757812,1729.2413330078125,2374.654541015625,361.05145263671875,1951.2406005859375,764.4092407226562,388.0500793457031,1560.00048828125,569.5780029296875,385.7372131347656,1521.976806640625,374.2966613769531,383.6853942871094,1483.2996826171875,167.0404052734375,338.8049621582031,1541.6427001953125,-11.144821166992188,367.7886962890625,1468.075927734375,-202.74087524414062,321.2628173828125,1571.6463623046875,-403.1513671875,325.6743469238281,1576.5458984375,-638.6735229492188,363.8075256347656,1591.755615234375,-817.4531860351562,383.46514892578125,1604.0699462890625,-1049.0286865234375,342.88232421875,1681.284423828125,-1193.8292236328125,383.30902099609375,1609.54541015625,-1595.165283203125,337.2251281738281,1761.368896484375,2371.38134765625,551.3058471679688,1967.603271484375,1167.5101318359375,559.0144653320312,1639.26904296875,966.886962890625,570.2485961914062,1591.0135498046875,765.1319580078125,576.0541381835938,1557.29248046875,-216.9488067626953,546.0797119140625,1520.791748046875,-429.3873596191406,572.5532836914062,1482.2288818359375,-628.8873291015625,522.5985717773438,1617.54736328125,-810.8038940429688,558.22705078125,1594.6566162109375,-1000.7760620117188,557.3228759765625,1597.7349853515625,-1233.356201171875,500.50787353515625,1737.817626953125,-1594.7322998046875,520.8931884765625,1783.1258544921875,2368.170654296875,737.9078369140625,1991.4376220703125,1565.362548828125,729.3737182617188,1754.6627197265625,1365.8135986328125,731.5100708007812,1715.8338623046875,1166.54541015625,742.5427856445312,1662.173583984375,-993.7440185546875,743.8291015625,1609.7548828125,-1223.841796875,675.3639526367188,1722.218505859375,-1394.1141357421875,693.9098510742188,1752.3890380859375,-1594.2935791015625,706.9070434570312,1787.6358642578125,2364.957763671875,924.636962890625,2017.288818359375,1753.0745849609375,915.934814453125,1827.31591796875,1557.1112060546875,914.7321166992188,1789.9981689453125,-1593.8446044921875,897.183837890625,1777.2279052734375,2361.740234375,1111.67236328125,2043.1171875,1754.0513916015625,1095.2044677734375,1864.8382568359375,-1593.38818359375,1090.549072265625,1771.9705810546875,2358.494140625,1300.3345947265625,2059.512451171875,-1592.9322509765625,1283.771240234375,1766.116943359375,2355.218017578125,1490.7274169921875,2057.0869140625,-1592.4783935546875,1476.17822265625,1760.3182373046875,2351.92822265625,1681.9495849609375,2035.7177734375,2153.29296875,1681.240966796875,2006.638427734375,1955.371826171875,1680.533935546875,1965.248046875,1757.2896728515625,1679.8280029296875,1927.9439697265625,1558.2799072265625,1679.1190185546875,1900.2330322265625,1358.04052734375,1678.404052734375,1887.21923828125,1158.04052734375,1677.689697265625,1870.208251953125,959.11572265625,1676.9791259765625,1846.801025390625,762.1389770507812,1676.275390625,1814.01953125,565.35205078125,1675.573486328125,1783.4140625,367.87353515625,1674.868408203125,1760.6868896484375,168.42088317871094,1674.157470703125,1754.48779296875,-36.21003341674805,1673.42724609375,1744.6351318359375,-242.729736328125,1672.6893310546875,1735.7606201171875,-448.5193786621094,1671.955078125,1734.727783203125,-637.7899169921875,1671.280029296875,1733.44873046875,-826.0802001953125,1670.6083984375,1738.5494384765625,-1015.1246948242188,1669.9334716796875,1746.9073486328125,-1205.710205078125,1669.253662109375,1754.687255859375,-1398.07373046875,1668.5672607421875,1755.28173828125,-1592.0260009765625,1667.875244140625,1756.912353515625,1012.13330078125,-1505.1639404296875,1893.8836669921875,1969.1712646484375,-1330.1072998046875,1949.2213134765625,1008.8242797851562,-1298.8807373046875,1870.2596435546875,807.0999755859375,-1306.92919921875,1821.486328125,156.12330627441406,-1320.79150390625,1720.9290771484375,-54.098548889160156,-1323.75732421875,1687.1044921875,1966.8404541015625,-1111.391357421875,1943.0150146484375,1764.6231689453125,-1116.0693359375,1953.0889892578125,1567.731201171875,-1109.3079833984375,1941.0491943359375,1371.1768798828125,-1103.576416015625,1923.1163330078125,806.0651245117188,-1095.927978515625,1807.33447265625,1374.35791015625,-886.1121826171875,1870.59326171875,1170.21875,-900.7340087890625,1843.7486572265625,970.8497314453125,-902.6754760742188,1799.893798828125,770.275390625,-907.5487060546875,1756.611328125,-1003.0715942382812,-922.0575561523438,1586.01806640625,769.44970703125,-687.7872314453125,1716.371826171875,561.3150024414062,-714.4737548828125,1692.7928466796875,183.8920440673828,-688.989990234375,1577.2923583984375,-33.55886459350586,-685.2368774414062,1578.4078369140625,-33.00274658203125,-685.5737915039062,1577.4234619140625,-235.69305419921875,-678.800537109375,1562.9625244140625,-234.72909545898438,-687.1962280273438,1556.820068359375,-826.5294799804688,-720.5782470703125,1533.4261474609375,-1019.6505126953125,-723.06884765625,1563.5755615234375,-6.363746643066406,-490.6100158691406,1546.283203125,-217.5236053466797,-486.5802001953125,1560.535400390625,-652.652099609375,-503.48114013671875,1508.6826171875,-841.75048828125,-513.6347045898438,1516.5078125,188.10997009277344,-281.6635437011719,1516.868408203125,-14.919550895690918,-281.0461120605469,1518.419921875,-37.2108154296875,-258.5097961425781,1582.32177734375,-23.593326568603516,-278.3499450683594,1547.644775390625,-223.3724822998047,-279.5487060546875,1547.865966796875,-223.40396118164062,-258.5357360839844,1581.4322509765625,-456.80096435546875,-286.42767333984375,1522.2421875,-440.4317321777344,-270.50323486328125,1551.5843505859375,-657.3929443359375,-295.5353698730469,1501.8516845703125,582.5346069335938,-70.3778305053711,1576.3358154296875,384.6072082519531,-72.85014343261719,1527.949462890625,183.52090454101562,-70.91568756103516,1504.8543701171875,149.3491973876953,-67.70327758789062,1536.143310546875,184.65972900390625,-71.74170684814453,1527.7132568359375,-28.530597686767578,-73.6678466796875,1544.1915283203125,-484.178466796875,-65.94520568847656,1587.4466552734375,-847.3456420898438,-63.8358039855957,1588.8731689453125,-1044.8687744140625,-68.36187744140625,1630.586181640625,765.3903198242188,142.156005859375,1645.638671875,567.4900512695312,129.9290008544922,1597.8450927734375,169.95150756835938,145.10494995117188,1525.6787109375,137.97535705566406,130.1879425048828,1536.963134765625,-51.30552673339844,124.59019470214844,1559.439697265625,-236.58370971679688,127.64292907714844,1568.055908203125,-461.72149658203125,137.72610473632812,1594.5826416015625,-1024.1671142578125,166.35023498535156,1611.24365234375,754.4907836914062,316.0653991699219,1668.5469970703125,559.9342651367188,322.03717041015625,1601.1021728515625,364.74200439453125,325.3548889160156,1549.220703125,156.89849853515625,340.2523498535156,1522.275146484375,179.29678344726562,379.7621765136719,1465.462646484375,-35.35082244873047,328.86138916015625,1540.11962890625,-224.70970153808594,337.1571044921875,1544.4825439453125,-257.8998718261719,399.41619873046875,1531.1690673828125,-211.70816040039062,363.7308044433594,1491.00537109375,-400.59588623046875,334.7555847167969,1596.157470703125,-409.44219970703125,346.4766845703125,1554.4664306640625,-632.0535278320312,338.8410339355469,1616.802490234375,-822.135498046875,352.4500732421875,1635.7315673828125,-1011.4956665039062,375.04339599609375,1640.225830078125,-1006.0374755859375,386.66436767578125,1615.635498046875,-1233.8040771484375,327.7417297363281,1720.0101318359375,1159.4481201171875,522.124267578125,1713.0098876953125,956.1773681640625,508.7923889160156,1689.276611328125,750.4635620117188,506.4154052734375,1666.2987060546875,-219.76904296875,569.4892578125,1475.721923828125,-425.2953796386719,546.851806640625,1548.9222412109375,-624.9739379882812,561.4664916992188,1582.5504150390625,-631.7555541992188,571.4675903320312,1531.34130859375,-815.9695434570312,539.5977783203125,1629.929931640625,-816.1624145507812,564.9896850585938,1567.0306396484375,-1000.2162475585938,559.3988037109375,1611.6488037109375,-1180.9287109375,558.9417724609375,1639.9361572265625,1556.3719482421875,713.7139282226562,1809.972900390625,1354.3543701171875,712.5318603515625,1767.4425048828125,1148.2354736328125,709.8333129882812,1729.5628662109375,-1177.1529541015625,737.3236694335938,1645.6265869140625,1751.940185546875,903.61376953125,1858.4088134765625,1548.55615234375,899.9346923828125,1826.334716796875,2414.391357421875,-1948.5203857421875,1964.2142333984375,2211.45166015625,-1947.6064453125,1966.285400390625,2008.657470703125,-1946.69287109375,1965.997802734375,1806.400146484375,-1945.7818603515625,1965.237060546875,1604.750732421875,-1944.87353515625,1964.861083984375,1403.2012939453125,-1943.966064453125,1955.971435546875,1201.9713134765625,-1943.060546875,1937.9901123046875,1000.1638793945312,-1942.1519775390625,1922.555908203125,798.7979125976562,-1941.2393798828125,1900.710205078125,597.7770385742188,-1940.3370361328125,1873.306640625,396.6488342285156,-1939.428466796875,1840.61376953125,192.9592742919922,-1938.51025390625,1815.6627197265625,-17.30242347717285,-1937.562744140625,1795.0068359375,-228.0425262451172,-1936.613037109375,1786.3004150390625,-435.863037109375,-1935.677001953125,1788.8348388671875,-629.5848388671875,-1934.8045654296875,1784.7308349609375,-821.5422973632812,-1933.9400634765625,1782.7728271484375,-1014.671142578125,-1933.0693359375,1778.07861328125,-1208.5355224609375,-1932.194091796875,1764.708251953125,-1403.604248046875,-1931.3133544921875,1751.4068603515625,-1600.515869140625,-1930.42626953125,1750.899658203125,2410.743896484375,-1736.5689697265625,1962.324462890625,-1600.031005859375,-1724.851806640625,1760.462646484375,2407.112548828125,-1525.5601806640625,1961.277587890625,1230.7640380859375,-1486.6658935546875,1925.3929443359375,1026.721923828125,-1495.19970703125,1899.120361328125,-1599.541015625,-1517.301025390625,1757.8643798828125,2403.47705078125,-1314.2601318359375,1967.572509765625,2154.59912109375,-1337.4278564453125,1974.91162109375,1954.54345703125,-1332.3905029296875,1948.7142333984375,1021.36474609375,-1295.3629150390625,1869.0657958984375,817.8480834960938,-1300.4315185546875,1838.0679931640625,354.4769287109375,-1325.2744140625,1764.626220703125,147.7362060546875,-1318.656494140625,1727.6712646484375,-63.45880889892578,-1321.1214599609375,1693.636474609375,-1599.0533447265625,-1310.795166015625,1749.229248046875,2399.84326171875,-1102.970458984375,1979.93115234375,1951.4183349609375,-1126.0001220703125,1977.75830078125,1756.028564453125,-1112.8778076171875,1954.3665771484375,1562.2066650390625,-1104.434326171875,1936.3480224609375,1370.85791015625,-1099.3133544921875,1892.4962158203125,811.3677978515625,-1096.633056640625,1812.44384765625,611.7211303710938,-1096.87353515625,1784.20703125,-75.14847564697266,-1115.8441162109375,1671.3382568359375,-1005.6552124023438,-1103.8096923828125,1672.909423828125,-1598.568359375,-1105.4404296875,1732.7274169921875,2396.21240234375,-891.9261474609375,1988.7205810546875,1360.845947265625,-899.019775390625,1905.21435546875,1167.7689208984375,-893.6270751953125,1833.1278076171875,966.5406494140625,-900.443359375,1788.05029296875,766.5164794921875,-901.6087036132812,1740.665283203125,154.3275146484375,-887.9158935546875,1647.9146728515625,-247.38418579101562,-896.6332397460938,1613.3819580078125,-1042.116455078125,-891.393310546875,1673.7208251953125,-1598.085693359375,-900.7713012695312,1705.0096435546875,2392.5908203125,-681.4298706054688,1983.3946533203125,751.935791015625,-708.6361083984375,1752.364990234375,564.1568603515625,-701.6119995117188,1680.594482421875,363.87835693359375,-713.505126953125,1644.6925048828125,159.86795043945312,-677.4915771484375,1621.087646484375,-22.11396598815918,-693.9014282226562,1555.3306884765625,-232.8153076171875,-660.1527709960938,1565.012939453125,-844.41650390625,-700.1268920898438,1595.8265380859375,-1040.236083984375,-699.80908203125,1597.575927734375,-1597.60107421875,-695.1641235351562,1672.063720703125,2388.979736328125,-471.5601501464844,1977.487548828125,-22.326684951782227,-486.1358642578125,1573.272705078125,-241.0096435546875,-485.4794616699219,1521.7672119140625,-657.6592407226562,-484.6231689453125,1551.0269775390625,-852.090087890625,-487.31719970703125,1578.115234375,-1597.1068115234375,-485.752685546875,1653.006591796875,2385.37353515625,-261.9443054199219,1976.15234375,177.50628662109375,-271.95220947265625,1541.6429443359375,-25.82579231262207,-276.2163391113281,1549.772216796875,-235.92385864257812,-274.69500732421875,1525.530517578125,-421.53125,-266.9093017578125,1581.21337890625,-658.6737670898438,-272.5728454589844,1544.9652099609375,-858.0308837890625,-275.6118469238281,1577.7862548828125,-1596.6099853515625,-275.2080383300781,1665.1812744140625,2381.77880859375,-53.01985168457031,1965.8402099609375,578.33642578125,-63.33609390258789,1591.8480224609375,379.1075744628906,-66.07524871826172,1554.1910400390625,172.3682403564453,-71.35533142089844,1549.031005859375,-50.559356689453125,-59.99554443359375,1580.0206298828125,-495.7117919921875,-69.06387329101562,1572.1842041015625,-859.1019897460938,-72.56816864013672,1622.870361328125,-1036.718505859375,-48.534507751464844,1601.4525146484375,-1596.1220703125,-68.40332794189453,1702.7305908203125,2378.191650390625,155.47535705566406,1960.3048095703125,970.845703125,152.87672424316406,1670.6710205078125,766.1376953125,143.64463806152344,1650.3807373046875,562.9783935546875,136.0413360595703,1628.173828125,134.34506225585938,125.16337585449219,1540.765625,-48.5195198059082,124.39246368408203,1557.6705322265625,-235.6020050048828,126.83563232421875,1552.82080078125,-479.5650634765625,130.73020935058594,1582.058349609375,-1045.2880859375,140.67767333984375,1659.001220703125,-1595.636962890625,136.96458435058594,1736.1241455078125,2374.662109375,360.6199951171875,1964.384765625,762.8495483398438,385.7803955078125,1562.4180908203125,567.53466796875,383.20361328125,1524.458251953125,371.87603759765625,381.1278991699219,1485.9793701171875,162.37078857421875,336.7196044921875,1547.7652587890625,-13.65953254699707,366.60858154296875,1471.95654296875,-203.40756225585938,319.5657043457031,1576.19921875,-402.730224609375,323.3449401855469,1580.190673828125,-637.7333984375,360.6622009277344,1594.885009765625,-818.8577270507812,379.8871154785156,1608.4835205078125,-1051.7847900390625,338.7647705078125,1686.65869140625,-1195.8748779296875,379.5626525878906,1614.692626953125,-1595.165283203125,337.17340087890625,1767.30615234375,2371.3876953125,550.923095703125,1979.832275390625,1166.385986328125,555.8613891601562,1645.1773681640625,965.8129272460938,567.4271240234375,1595.2974853515625,764.09521484375,574.3037719726562,1560.872802734375,-217.59432983398438,543.7661743164062,1525.3140869140625,-428.81927490234375,571.351318359375,1485.01025390625,-629.4187622070312,518.7886962890625,1621.907470703125,-810.0286254882812,555.3795776367188,1599.205810546875,-1000.2899169921875,555.0223388671875,1601.765869140625,-1236.7437744140625,497.6221923828125,1743.761474609375,-1594.7322998046875,520.9290161132812,1788.0924072265625,2368.17626953125,737.5894775390625,2002.994140625,1563.8963623046875,726.5349731445312,1763.266357421875,1364.254150390625,728.5049438476562,1724.2010498046875,1165.1368408203125,739.6087036132812,1669.4814453125,-993.3870849609375,740.4956665039062,1615.35693359375,-1227.8798828125,672.8914794921875,1728.69921875,-1397.86474609375,692.3746948242188,1758.49609375,-1594.2935791015625,706.95703125,1791.3515625,2364.96240234375,924.3839111328125,2028.259033203125,1752.2620849609375,912.5320434570312,1837.2816162109375,1556.1104736328125,911.5904541015625,1799.5162353515625,-1593.8446044921875,897.205322265625,1780.5423583984375,2361.7421875,1111.5445556640625,2052.816650390625,1753.7188720703125,1090.9097900390625,1875.3001708984375,-1593.38818359375,1090.560302734375,1775.0919189453125,2358.4951171875,1300.2747802734375,2067.99365234375,-1592.9322509765625,1283.7833251953125,1769.3502197265625,2355.21875,1490.677978515625,2065.62841796875,-1592.4783935546875,1476.185302734375,1763.453857421875,2351.92822265625,1681.9495849609375,2044.8790283203125,2153.255859375,1681.240966796875,2015.8553466796875,1955.42138671875,1680.533935546875,1973.900146484375,1757.226806640625,1679.8280029296875,1937.1397705078125,1558.0570068359375,1679.1190185546875,1910.601318359375,1357.855712890625,1678.404052734375,1896.806884765625,1157.959716796875,1677.689697265625,1878.655517578125,959.1441650390625,1676.9791259765625,1854.322998046875,762.2592163085938,1676.275390625,1820.93115234375,565.4423217773438,1675.573486328125,1790.412841796875,368.001953125,1674.868408203125,1767.1778564453125,168.60455322265625,1674.158203125,1759.6715087890625,-36.02798843383789,1673.427978515625,1749.4420166015625,-242.5948028564453,1672.6893310546875,1741.288818359375,-448.4028015136719,1671.955078125,1739.8795166015625,-637.6649169921875,1671.2802734375,1737.615966796875,-825.9815063476562,1670.6087646484375,1742.06640625,-1015.0593872070312,1669.9334716796875,1750.13330078125,-1205.6702880859375,1669.253662109375,1757.95263671875,-1398.05419921875,1668.5672607421875,1758.40625,-1592.0260009765625,1667.875244140625,1759.848388671875,1022.0704345703125,-1498.1715087890625,1910.549072265625,1957.1824951171875,-1337.023193359375,1968.2713623046875,1017.9892578125,-1293.362548828125,1886.5899658203125,815.65576171875,-1303.456787109375,1837.6453857421875,145.9263916015625,-1323.953369140625,1732.741455078125,-65.35493469238281,-1327.20947265625,1699.18408203125,1953.74853515625,-1118.519287109375,1961.8486328125,1752.893798828125,-1121.4725341796875,1969.8321533203125,1557.395263671875,-1112.984130859375,1956.6680908203125,1363.1842041015625,-1105.3681640625,1936.9227294921875,813.8820190429688,-1093.7069091796875,1822.44921875,1365.55322265625,-888.1080932617188,1883.856201171875,1161.6768798828125,-903.8406982421875,1856.3306884765625,962.6976318359375,-907.0477905273438,1812.18896484375,761.910400390625,-913.462890625,1769.2603759765625,-1006.0343017578125,-922.1771240234375,1593.12744140625,760.7500610351562,-693.6483764648438,1726.9090576171875,552.4846801757812,-722.724853515625,1704.4783935546875,177.39971923828125,-688.241455078125,1585.71826171875,-37.81338882446289,-682.6592407226562,1585.938232421875,-37.184146881103516,-683.0404663085938,1584.824462890625,-236.06790161132812,-672.46337890625,1569.4364013671875,-233.9831085205078,-680.0182495117188,1565.5386962890625,-828.1213989257812,-720.06640625,1538.9173583984375,-1021.1947631835938,-723.1058959960938,1569.547119140625,-8.578838348388672,-489.9812316894531,1549.935302734375,-217.3897247314453,-483.8934631347656,1563.01904296875,-653.4708862304688,-502.4254150390625,1512.949462890625,-843.1428833007812,-512.525634765625,1521.949462890625,185.6902313232422,-280.56207275390625,1521.8067626953125,-17.041566848754883,-280.4603576660156,1522.261474609375,-38.73383331298828,-257.5135498046875,1585.4468994140625,-25.78356170654297,-277.41119384765625,1551.5947265625,-223.63780212402344,-277.9479064941406,1549.909912109375,-222.780517578125,-256.4862365722656,1584.8145751953125,-456.5555419921875,-285.49102783203125,1524.6124267578125,-440.04559326171875,-268.8957214355469,1555.5087890625,-657.748046875,-294.5369567871094,1505.1607666015625,580.668212890625,-67.6846694946289,1582.2537841796875,382.4999694824219,-70.4489974975586,1533.662841796875,181.33047485351562,-69.13053894042969,1510.0667724609375,146.0107421875,-67.55052947998047,1540.2103271484375,182.11016845703125,-71.3973388671875,1532.4874267578125,-31.479778289794922,-72.55311584472656,1548.601806640625,-481.89813232421875,-65.84893035888672,1591.2420654296875,-848.88232421875,-64.47787475585938,1593.6007080078125,-1046.58837890625,-68.9227294921875,1634.7122802734375,764.7451171875,145.31210327148438,1650.6473388671875,566.160400390625,132.89747619628906,1603.4609375,167.4976043701172,143.97885131835938,1530.44482421875,133.9585723876953,128.95504760742188,1542.5653076171875,-53.78593063354492,123.66921997070312,1564.410400390625,-238.14939880371094,126.56629943847656,1572.9005126953125,-460.42218017578125,135.6552276611328,1597.6961669921875,-1026.1427001953125,163.65185546875,1615.961669921875,753.1831665039062,313.1966247558594,1671.904296875,558.4390869140625,318.8805847167969,1604.3973388671875,362.9884948730469,322.8872375488281,1552.1107177734375,154.7216796875,337.8638916015625,1526.054931640625,176.28651428222656,377.6853942871094,1468.7955322265625,-38.26116180419922,326.9486389160156,1546.4183349609375,-226.78562927246094,334.6360778808594,1550.8817138671875,-258.4560546875,397.1776428222656,1535.5311279296875,-213.42820739746094,362.764892578125,1494.680419921875,-400.78887939453125,332.5022277832031,1599.4407958984375,-409.34893798828125,344.068359375,1558.6842041015625,-632.4481201171875,335.7262268066406,1620.7872314453125,-823.9338989257812,349.72650146484375,1638.75732421875,-1013.4661865234375,371.3322448730469,1644.589599609375,-1007.6943969726562,382.639892578125,1620.5347900390625,-1236.7171630859375,324.1821594238281,1725.5140380859375,1158.3441162109375,519.2581787109375,1719.428955078125,955.2217407226562,505.21990966796875,1695.0460205078125,749.3220825195312,503.3932189941406,1670.6663818359375,-220.91700744628906,568.356689453125,1479.197509765625,-424.2783508300781,545.1189575195312,1552.757568359375,-623.154541015625,559.3946533203125,1586.8297119140625,-629.9508666992188,570.758544921875,1533.7347412109375,-817.3704833984375,536.3939208984375,1633.253173828125,-815.1104736328125,563.4708251953125,1570.1744384765625,-999.6865844726562,555.9407958984375,1616.6978759765625,-1184.01513671875,555.40771484375,1645.564453125,1555.0430908203125,710.5979614257812,1819.0294189453125,1353.0677490234375,709.497802734375,1775.2296142578125,1147.114013671875,706.7887573242188,1735.98779296875,-1180.7725830078125,733.5419921875,1652.4302978515625,1751.0477294921875,899.9086303710938,1868.6998291015625,1547.481201171875,896.32666015625,1836.52978515625,2414.391357421875,-1948.5203857421875,1982.5186767578125,2211.407470703125,-1947.6064453125,1984.5528564453125,2008.577880859375,-1946.69287109375,1983.6361083984375,1806.2899169921875,-1945.7818603515625,1982.05810546875,1604.59619140625,-1944.87353515625,1981.3719482421875,1402.98681640625,-1943.966064453125,1972.8673095703125,1201.6536865234375,-1943.060546875,1955.55908203125,999.7821044921875,-1942.1519775390625,1940.307861328125,798.3881225585938,-1941.237548828125,1918.1597900390625,597.508544921875,-1940.3370361328125,1889.3311767578125,396.5321960449219,-1939.428466796875,1855.16552734375,192.87510681152344,-1938.51025390625,1829.297119140625,-17.39675521850586,-1937.562744140625,1808.041015625,-228.1417999267578,-1936.613037109375,1798.5184326171875,-436.0046691894531,-1935.677001953125,1800.84130859375,-629.7781982421875,-1934.8045654296875,1797.5704345703125,-821.7778930664062,-1933.9400634765625,1795.954833984375,-1014.87451171875,-1933.0693359375,1790.2791748046875,-1208.6236572265625,-1932.194091796875,1775.6416015625,-1403.574951171875,-1931.3133544921875,1760.949951171875,-1600.515869140625,-1930.42626953125,1759.6927490234375,2410.743896484375,-1736.58154296875,1980.3092041015625,-1600.031005859375,-1724.826904296875,1767.9324951171875,2407.112548828125,-1525.591064453125,1978.9259033203125,1242.150390625,-1476.759033203125,1942.7840576171875,1037.5306396484375,-1487.193115234375,1915.88232421875,-1599.541015625,-1517.30078125,1764.651611328125,2403.478271484375,-1314.368896484375,1986.4700927734375,2140.72607421875,-1345.3572998046875,1993.9232177734375,1940.7208251953125,-1340.764404296875,1968.532958984375,1031.3125,-1289.4140625,1886.1209716796875,826.9515991210938,-1296.197998046875,1854.20947265625,345.1881103515625,-1328.647216796875,1775.9293212890625,137.6370086669922,-1321.3125,1738.57373046875,-75.04318237304688,-1323.4471435546875,1704.2506103515625,-1599.0533447265625,-1310.8558349609375,1755.2650146484375,2399.8466796875,-1103.1728515625,1999.892578125,1939.071044921875,-1132.7218017578125,1995.7965087890625,1743.5111083984375,-1118.942138671875,1972.1651611328125,1551.25048828125,-1108.2900390625,1952.3497314453125,1361.257080078125,-1101.7353515625,1906.9637451171875,819.2935791015625,-1094.2218017578125,1827.9976806640625,618.9794921875,-1095.6650390625,1799.1837158203125,-87.63368225097656,-1118.8212890625,1682.742431640625,-1008.51123046875,-1103.8636474609375,1680.031005859375,-1598.568359375,-1105.546142578125,1738.46728515625,2396.2158203125,-892.125,2008.192626953125,1352.3095703125,-901.2172241210938,1918.496337890625,1158.875244140625,-896.6892700195312,1845.66796875,957.6533203125,-904.8297729492188,1799.50341796875,757.71923828125,-906.8339233398438,1751.5672607421875,145.3385467529297,-886.4735107421875,1657.4862060546875,-249.5531005859375,-894.37890625,1623.7308349609375,-1045.0064697265625,-890.3135375976562,1678.7808837890625,-1598.085693359375,-900.8577880859375,1711.16650390625,2392.59423828125,-681.6334838867188,2002.7442626953125,743.1697998046875,-716.0256958007812,1764.935546875,555.5829467773438,-708.8602294921875,1691.3701171875,355.2592468261719,-720.6698608398438,1655.5958251953125,152.8927001953125,-675.7312622070312,1629.777587890625,-26.60191535949707,-693.0621948242188,1561.6094970703125,-232.52066040039062,-656.0780029296875,1568.597900390625,-846.9190063476562,-698.1072387695312,1602.2357177734375,-1043.129150390625,-698.0321044921875,1603.4337158203125,-1597.60107421875,-695.1987915039062,1678.755615234375,2388.983642578125,-471.78973388671875,1996.1260986328125,-24.040849685668945,-485.5378723144531,1576.41064453125,-238.8997039794922,-483.5574645996094,1527.299072265625,-658.6671142578125,-482.756103515625,1556.771484375,-853.7466430664062,-485.54254150390625,1584.3885498046875,-1597.1068115234375,-485.8147888183594,1659.5374755859375,2385.378662109375,-262.23992919921875,1992.8582763671875,174.851806640625,-270.76409912109375,1546.6805419921875,-27.912019729614258,-274.99822998046875,1553.6259765625,-234.9107208251953,-273.39508056640625,1528.6800537109375,-419.8518371582031,-265.32464599609375,1585.5328369140625,-659.3253173828125,-270.7723693847656,1550.2149658203125,-860.0891723632812,-275.41650390625,1583.27685546875,-1596.6099853515625,-275.27911376953125,1671.7088623046875,2381.78564453125,-53.41317367553711,1981.046630859375,576.9131469726562,-60.813331604003906,1596.883056640625,377.2897644042969,-64.16141510009766,1559.1319580078125,169.5741424560547,-71.32429504394531,1554.1571044921875,-52.57734680175781,-59.363067626953125,1583.1595458984375,-494.6011047363281,-68.50385284423828,1575.027099609375,-860.4779052734375,-72.73430633544922,1626.5535888671875,-1038.59521484375,-50.40884017944336,1605.9697265625,-1596.1220703125,-68.47854614257812,1709.1571044921875,2378.19921875,155.03744506835938,1974.462158203125,969.8865356445312,156.91607666015625,1676.598876953125,765.5560913085938,146.46240234375,1655.0040283203125,562.2500610351562,138.3804473876953,1632.325927734375,130.81222534179688,124.58561706542969,1545.267578125,-51.080047607421875,123.3059310913086,1562.9215087890625,-237.3714599609375,125.280029296875,1558.595458984375,-478.223876953125,129.51953125,1584.62451171875,-1047.7489013671875,138.02410888671875,1663.9498291015625,-1595.636962890625,136.79241943359375,1743.007080078125,2374.66943359375,360.1885070800781,1977.5289306640625,761.2897338867188,383.5106506347656,1564.83544921875,565.4912109375,380.6700439453125,1526.9398193359375,369.45538330078125,378.57037353515625,1488.65869140625,157.701171875,334.6342468261719,1553.8876953125,-16.17424201965332,365.4284973144531,1475.8375244140625,-204.07421875,317.86859130859375,1580.7520751953125,-402.3091125488281,321.0155029296875,1583.83544921875,-636.7933349609375,357.5168762207031,1598.01416015625,-820.2622680664062,376.3091125488281,1612.8970947265625,-1054.540771484375,334.6471862792969,1692.032958984375,-1197.920654296875,375.81622314453125,1619.8402099609375,-1595.165283203125,337.1215515136719,1773.243408203125,2371.394287109375,550.5403442382812,1992.0611572265625,1165.2620849609375,552.7083129882812,1651.08544921875,964.73876953125,564.6055908203125,1599.5816650390625,763.058349609375,572.5533447265625,1564.4534912109375,-218.23983764648438,541.4525756835938,1529.83642578125,-428.2512512207031,570.1494750976562,1487.7919921875,-629.9501342773438,514.9790649414062,1626.2674560546875,-809.2534790039062,552.5320434570312,1603.755126953125,-999.8037719726562,552.7218017578125,1605.7965087890625,-1240.1317138671875,494.7365417480469,1749.70556640625,-1594.7322998046875,520.96484375,1793.05908203125,2368.181640625,737.27099609375,2014.550537109375,1562.4305419921875,723.6961059570312,1771.8699951171875,1362.69482421875,725.4995727539062,1732.5679931640625,1163.72802734375,736.6747436523438,1676.789306640625,-993.0301513671875,737.162109375,1620.958740234375,-1231.91796875,670.4191284179688,1735.1798095703125,-1401.6156005859375,690.8394165039062,1764.60302734375,-1594.2935791015625,707.0070190429688,1795.0672607421875,2364.966552734375,924.130859375,2039.229248046875,1751.4495849609375,909.1292724609375,1847.2474365234375,1555.10986328125,908.4488525390625,1809.0343017578125,-1593.8446044921875,897.2267456054688,1783.856689453125,2361.74462890625,1111.41650390625,2062.51611328125,1753.386474609375,1086.615234375,1885.761962890625,-1593.38818359375,1090.571533203125,1778.213134765625,2358.49609375,1300.215087890625,2076.47509765625,-1592.9322509765625,1283.79541015625,1772.58349609375,2355.219482421875,1490.6285400390625,2074.170166015625,-1592.4783935546875,1476.192626953125,1766.5892333984375,2351.92822265625,1681.9495849609375,2054.040283203125,2153.218994140625,1681.240966796875,2025.072021484375,1955.47119140625,1680.533935546875,1982.552490234375,1757.1640625,1679.8280029296875,1946.33544921875,1557.833740234375,1679.1190185546875,1920.9697265625,1357.6708984375,1678.404052734375,1906.3941650390625,1157.87890625,1677.689697265625,1887.10302734375,959.172607421875,1676.9791259765625,1861.844970703125,762.379638671875,1676.275390625,1827.8427734375,565.532470703125,1675.573486328125,1797.4114990234375,368.1303405761719,1674.868408203125,1773.6688232421875,168.7882537841797,1674.158935546875,1764.855224609375,-35.8459358215332,1673.4287109375,1754.2491455078125,-242.4598388671875,1672.6893310546875,1746.8167724609375,-448.2862243652344,1671.955078125,1745.0311279296875,-637.5399169921875,1671.2806396484375,1741.782958984375,-825.8828735351562,1670.6090087890625,1745.583740234375,-1014.9942016601562,1669.9334716796875,1753.359130859375,-1205.630615234375,1669.253662109375,1761.218017578125,-1398.03466796875,1668.5672607421875,1761.531005859375,-1592.0260009765625,1667.875244140625,1762.7845458984375,1032.0076904296875,-1491.179443359375,1927.214111328125,1945.193603515625,-1343.939208984375,1987.321533203125,1027.1539306640625,-1287.84423828125,1902.92041015625,824.2115478515625,-1299.984375,1853.8040771484375,135.72952270507812,-1327.115234375,1744.5535888671875,-76.61131286621094,-1330.66162109375,1711.2637939453125,1940.65673828125,-1125.6473388671875,1980.6820068359375,1741.164794921875,-1126.875732421875,1986.5750732421875,1547.0594482421875,-1116.66015625,1972.2864990234375,1355.191650390625,-1107.1600341796875,1950.7288818359375,821.6986694335938,-1091.486083984375,1837.5638427734375,1356.7484130859375,-890.1038818359375,1897.119384765625,1153.1351318359375,-906.9473876953125,1868.912841796875,954.5455322265625,-911.4201049804688,1824.4844970703125,753.5454711914062,-919.3771362304688,1781.9091796875,-1008.997314453125,-922.2966918945312,1600.236572265625,752.05029296875,-699.5096435546875,1737.4464111328125,543.6544189453125,-730.9758911132812,1716.1639404296875,170.9073944091797,-687.4930419921875,1594.1441650390625,-42.06790542602539,-680.0816650390625,1593.468505859375,-41.36553955078125,-680.5072021484375,1592.225341796875,-236.44277954101562,-666.1260986328125,1575.9097900390625,-233.2371368408203,-672.8403930664062,1574.2576904296875,-829.71337890625,-719.5545654296875,1544.40869140625,-1022.739013671875,-723.1428833007812,1575.5186767578125,-10.793926239013672,-489.3524169921875,1553.5869140625,-217.25584411621094,-481.20672607421875,1565.5025634765625,-654.28955078125,-501.36962890625,1517.216064453125,-844.53515625,-511.4165954589844,1527.39111328125,183.27047729492188,-279.4606018066406,1526.745361328125,-19.163578033447266,-279.8745422363281,1526.1031494140625,-40.2568359375,-256.517333984375,1588.5718994140625,-27.973793029785156,-276.472412109375,1555.544677734375,-223.90313720703125,-276.3470764160156,1551.9537353515625,-222.15707397460938,-254.436767578125,1588.197021484375,-456.31005859375,-284.554443359375,1526.982666015625,-439.6594543457031,-267.2882385253906,1559.4326171875,-658.1032104492188,-293.53857421875,1508.469970703125,578.8018188476562,-64.99151611328125,1588.1719970703125,380.3927917480469,-68.04783630371094,1539.376220703125,179.14007568359375,-67.34540557861328,1515.279052734375,142.6722869873047,-67.39778137207031,1544.27734375,179.56060791015625,-71.0529556274414,1537.2618408203125,-34.42896270751953,-71.43840026855469,1553.0120849609375,-479.617919921875,-65.75267028808594,1595.03759765625,-850.4189453125,-65.11994934082031,1598.3282470703125,-1048.307861328125,-69.48358917236328,1638.83837890625,764.0999145507812,148.4681854248047,1655.65576171875,564.830810546875,135.865966796875,1609.0771484375,165.043701171875,142.85272216796875,1535.2109375,129.94180297851562,127.72213745117188,1548.1673583984375,-56.266326904296875,122.74824523925781,1569.3809814453125,-239.71507263183594,125.48965454101562,1577.7451171875,-459.12286376953125,133.58436584472656,1600.8099365234375,-1028.118408203125,160.9534912109375,1620.6793212890625,751.8756103515625,310.327880859375,1675.2615966796875,556.94384765625,315.7240295410156,1607.6922607421875,361.2349853515625,320.4196472167969,1555.000732421875,152.54483032226562,335.4754333496094,1529.834716796875,173.27621459960938,375.6086120605469,1472.1282958984375,-41.1714973449707,325.0358581542969,1552.717041015625,-228.86154174804688,332.114990234375,1557.2808837890625,-259.01220703125,394.93914794921875,1539.89306640625,-215.14822387695312,361.7990417480469,1498.3553466796875,-400.9818420410156,330.24884033203125,1602.72412109375,-409.2557373046875,341.65997314453125,1562.9022216796875,-632.8428344726562,332.6114501953125,1624.7718505859375,-825.7323608398438,347.0029602050781,1641.7830810546875,-1015.4368286132812,367.62103271484375,1648.9532470703125,-1009.351318359375,378.6153869628906,1625.4344482421875,-1239.630615234375,320.6225891113281,1731.01806640625,1157.2401123046875,516.3921508789062,1725.8477783203125,954.2662353515625,501.6474304199219,1700.8150634765625,748.1806640625,500.3710632324219,1675.0338134765625,-222.06500244140625,567.2242431640625,1482.67333984375,-423.2612609863281,543.3861694335938,1556.593017578125,-621.335205078125,557.32275390625,1591.1090087890625,-628.1463012695312,570.0494384765625,1536.128173828125,-818.771484375,533.1900024414062,1636.5765380859375,-814.0585327148438,561.9518432617188,1573.3179931640625,-999.1568603515625,552.4827270507812,1621.7470703125,-1187.1016845703125,551.8737182617188,1651.1927490234375,1553.714111328125,707.48193359375,1828.0859375,1351.78125,706.4635620117188,1783.0169677734375,1145.9925537109375,703.7443237304688,1742.41259765625,-1184.392333984375,729.7604370117188,1659.2342529296875,1750.1551513671875,896.2034912109375,1878.990966796875,1546.4063720703125,892.7186889648438,1846.724609375,2414.391357421875,-1948.5203857421875,2000.822998046875,2211.36328125,-1947.6064453125,2002.8203125,2008.498291015625,-1946.69287109375,2001.2747802734375,1806.179443359375,-1945.7818603515625,1998.8790283203125,1604.441650390625,-1944.87353515625,1997.8828125,1402.7723388671875,-1943.966064453125,1989.763427734375,1201.3360595703125,-1943.060546875,1973.1280517578125,999.4003295898438,-1942.1519775390625,1958.059814453125,797.9784545898438,-1941.235595703125,1935.6094970703125,597.2400512695312,-1940.3370361328125,1905.3553466796875,396.4155578613281,-1939.428466796875,1869.717041015625,192.79092407226562,-1938.51025390625,1842.931640625,-17.491092681884766,-1937.562744140625,1821.0750732421875,-228.24107360839844,-1936.613037109375,1810.73681640625,-436.1463317871094,-1935.677001953125,1812.8475341796875,-629.9716796875,-1934.8045654296875,1810.409912109375,-822.0133666992188,-1933.9400634765625,1809.1368408203125,-1015.077880859375,-1933.0693359375,1802.47998046875,-1208.7117919921875,-1932.194091796875,1786.5748291015625,-1403.5457763671875,-1931.3133544921875,1770.4931640625,-1600.515869140625,-1930.42626953125,1768.4857177734375,2410.743896484375,-1736.59423828125,1998.2940673828125,-1600.031005859375,-1724.802001953125,1775.4022216796875,2407.112548828125,-1525.621826171875,1996.5740966796875,1253.536865234375,-1466.8521728515625,1960.1751708984375,1048.3389892578125,-1479.1866455078125,1932.644287109375,-1599.541015625,-1517.30078125,1771.438720703125,2403.4794921875,-1314.4774169921875,2005.367919921875,2126.853759765625,-1353.2867431640625,2012.9345703125,1926.8980712890625,-1349.138427734375,1988.3515625,1041.2601318359375,-1283.46533203125,1903.1759033203125,836.05517578125,-1291.9647216796875,1870.350830078125,335.89923095703125,-1332.020263671875,1787.2325439453125,127.5378189086914,-1323.968505859375,1749.47607421875,-86.62757110595703,-1325.773193359375,1714.8648681640625,-1599.0533447265625,-1310.9166259765625,1761.3009033203125,2399.85009765625,-1103.3753662109375,2019.853759765625,1926.72412109375,-1139.443359375,2013.8348388671875,1730.9937744140625,-1125.00634765625,1989.9637451171875,1540.2943115234375,-1112.14599609375,1968.3515625,1351.6563720703125,-1104.1572265625,1921.4312744140625,827.2192993164062,-1091.8106689453125,1843.5513916015625,626.23779296875,-1094.456787109375,1814.1605224609375,-100.118896484375,-1121.798583984375,1694.146728515625,-1011.3671875,-1103.917724609375,1687.153076171875,-1598.568359375,-1105.651611328125,1744.20703125,2396.219482421875,-892.3238525390625,2027.6649169921875,1343.7734375,-903.4146728515625,1931.7784423828125,1149.9818115234375,-899.7514038085938,1858.20849609375,948.7658081054688,-909.2162475585938,1810.95654296875,748.922119140625,-912.0592041015625,1762.468994140625,136.34959411621094,-885.03125,1667.0577392578125,-251.72198486328125,-892.1245727539062,1634.07958984375,-1047.8963623046875,-889.2337646484375,1683.84130859375,-1598.085693359375,-900.9441528320312,1717.32373046875,2392.59765625,-681.8372192382812,2022.093994140625,734.4039306640625,-723.4151000976562,1777.505859375,547.0090942382812,-716.1083984375,1702.1458740234375,346.64019775390625,-727.83447265625,1666.4991455078125,145.9174346923828,-673.970947265625,1638.4674072265625,-31.089862823486328,-692.2229614257812,1567.8880615234375,-232.2260284423828,-652.0032958984375,1572.18310546875,-849.4214477539062,-696.087646484375,1608.64501953125,-1046.0220947265625,-696.2550048828125,1609.29150390625,-1597.60107421875,-695.2334594726562,1685.44775390625,2388.98779296875,-472.01934814453125,2014.764892578125,-25.755022048950195,-484.9398193359375,1579.5489501953125,-236.78976440429688,-481.6354675292969,1532.8311767578125,-659.6751708984375,-480.8890686035156,1562.5162353515625,-855.4033813476562,-483.76788330078125,1590.662109375,-1597.1068115234375,-485.8768005371094,1666.0684814453125,2385.383544921875,-262.5354919433594,2009.564453125,172.1973114013672,-269.57598876953125,1551.7181396484375,-29.998239517211914,-273.7801513671875,1557.4796142578125,-233.8975830078125,-272.0951843261719,1531.8297119140625,-418.1724548339844,-263.73992919921875,1589.852294921875,-659.9769287109375,-268.9718933105469,1555.4647216796875,-862.1475219726562,-275.2210693359375,1588.767578125,-1596.6099853515625,-275.3501281738281,1678.236328125,2381.79248046875,-53.806495666503906,1996.2530517578125,575.4898681640625,-58.29057312011719,1601.91796875,375.4720153808594,-62.24757766723633,1564.0731201171875,166.78005981445312,-71.29327392578125,1559.2830810546875,-54.59534454345703,-58.7305908203125,1586.2987060546875,-493.4903564453125,-67.9438247680664,1577.8699951171875,-861.8540649414062,-72.90044403076172,1630.2369384765625,-1040.4718017578125,-52.283164978027344,1610.487060546875,-1596.1220703125,-68.55376434326172,1715.58349609375,2378.206787109375,154.59951782226562,1988.619384765625,968.9274291992188,160.9554443359375,1682.5263671875,764.9746704101562,149.28016662597656,1659.62744140625,561.5216064453125,140.71954345703125,1636.4779052734375,127.27937316894531,124.00786590576172,1549.76953125,-53.64057540893555,122.21939849853516,1568.172607421875,-239.1409149169922,123.72444152832031,1564.3701171875,-476.88275146484375,128.30885314941406,1587.1904296875,-1050.20947265625,135.37051391601562,1668.8988037109375,-1595.636962890625,136.62025451660156,1749.889892578125,2374.677001953125,359.75701904296875,1990.67333984375,759.72998046875,381.240966796875,1567.253173828125,563.4478149414062,378.13641357421875,1529.4212646484375,367.0347900390625,376.0128479003906,1491.33837890625,153.03152465820312,332.54888916015625,1560.01025390625,-18.688949584960938,364.2484130859375,1479.718505859375,-204.74090576171875,316.17144775390625,1585.3050537109375,-401.8879699707031,318.68609619140625,1587.480224609375,-635.853271484375,354.3715515136719,1601.1435546875,-821.6668701171875,372.7310485839844,1617.310546875,-1057.2969970703125,330.52960205078125,1697.4071044921875,-1199.966552734375,372.0697937011719,1624.98779296875,-1595.165283203125,337.0697937011719,1779.1806640625,2371.40087890625,550.1575927734375,2004.290283203125,1164.13818359375,549.5552978515625,1656.99365234375,963.6644897460938,561.783935546875,1603.8658447265625,762.0216674804688,570.802978515625,1568.033935546875,-218.8853759765625,539.1390380859375,1534.35888671875,-427.68316650390625,568.9474487304688,1490.57373046875,-630.4815673828125,511.1691589355469,1630.6273193359375,-808.4780883789062,549.6845703125,1608.3043212890625,-999.317626953125,550.4212646484375,1609.8270263671875,-1243.51953125,491.85089111328125,1755.6494140625,-1594.7322998046875,521.000732421875,1798.02587890625,2368.187255859375,736.95263671875,2026.1070556640625,1560.964599609375,720.8572998046875,1780.4737548828125,1361.1353759765625,722.494384765625,1740.9351806640625,1162.319091796875,733.74072265625,1684.09716796875,-992.6732788085938,733.82861328125,1626.5609130859375,-1235.9560546875,667.9467163085938,1741.6605224609375,-1405.3663330078125,689.30419921875,1770.710205078125,-1594.2935791015625,707.0570068359375,1798.783203125,2364.97119140625,923.8777465820312,2050.19970703125,1750.636962890625,905.7265625,1857.2132568359375,1554.109130859375,905.3071899414062,1818.5523681640625,-1593.8446044921875,897.2481689453125,1787.1710205078125,2361.746826171875,1111.28857421875,2072.21533203125,1753.0540771484375,1082.3204345703125,1896.2235107421875,-1593.38818359375,1090.582763671875,1781.33447265625,2358.4970703125,1300.1551513671875,2084.95654296875,-1592.9322509765625,1283.8072509765625,1775.8167724609375,2355.22021484375,1490.5791015625,2082.711669921875,-1592.4783935546875,1476.1998291015625,1769.724853515625,2351.92822265625,1681.9495849609375,2063.20166015625,2153.181884765625,1681.240966796875,2034.288818359375,1955.5208740234375,1680.533935546875,1991.2047119140625,1757.10107421875,1679.8280029296875,1955.5313720703125,1557.61083984375,1679.1190185546875,1931.338134765625,1357.4862060546875,1678.404052734375,1915.981689453125,1157.798095703125,1677.689697265625,1895.5504150390625,959.201171875,1676.9791259765625,1869.366943359375,762.4999389648438,1676.275390625,1834.75439453125,565.6226196289062,1675.573486328125,1804.41015625,368.25872802734375,1674.868408203125,1780.1597900390625,168.971923828125,1674.1595458984375,1770.0391845703125,-35.66389083862305,1673.4293212890625,1759.05615234375,-242.3248748779297,1672.6893310546875,1752.3448486328125,-448.1697082519531,1671.955078125,1750.1826171875,-637.4149169921875,1671.28076171875,1745.9500732421875,-825.7841796875,1670.609375,1749.1007080078125,-1014.9290771484375,1669.9334716796875,1756.5849609375,-1205.5906982421875,1669.253662109375,1764.4833984375,-1398.01513671875,1668.5672607421875,1764.655517578125,-1592.0260009765625,1667.875244140625,1765.7205810546875,1041.94482421875,-1484.1871337890625,1943.8795166015625,1933.204833984375,-1350.8551025390625,2006.3714599609375,1036.31884765625,-1282.3260498046875,1919.250732421875,832.7674560546875,-1296.511962890625,1869.9632568359375,125.53263854980469,-1330.2769775390625,1756.3658447265625,-87.8676986694336,-1334.11376953125,1723.3433837890625,1927.5648193359375,-1132.7750244140625,1999.5152587890625,1729.435791015625,-1132.279052734375,2003.318115234375,1536.7235107421875,-1120.33642578125,1987.9052734375,1347.1990966796875,-1108.9517822265625,1964.5352783203125,829.5155639648438,-1089.2650146484375,1852.6783447265625,1347.94384765625,-892.0997314453125,1910.3824462890625,1144.593017578125,-910.0541381835938,1881.494873046875,946.3935546875,-915.7924194335938,1836.779541015625,745.1804809570312,-925.2914428710938,1794.5582275390625,-1011.9602661132812,-922.4163208007812,1607.3458251953125,743.3505249023438,-705.3707275390625,1747.983642578125,534.823974609375,-739.22705078125,1727.849609375,164.41506958007812,-686.7445678710938,1602.570068359375,-46.322425842285156,-677.5040893554688,1600.998779296875,-45.54693603515625,-677.9739379882812,1599.626220703125,-236.81764221191406,-659.7888793945312,1582.383544921875,-232.49118041992188,-665.6624755859375,1582.9764404296875,-831.305419921875,-719.042724609375,1549.89990234375,-1024.2833251953125,-723.1798706054688,1581.4901123046875,-13.009017944335938,-488.7236328125,1557.23876953125,-217.1219940185547,-478.5199890136719,1567.986328125,-655.1083374023438,-500.3139343261719,1521.48291015625,-845.927490234375,-510.3074951171875,1532.8326416015625,180.85073852539062,-278.35906982421875,1531.68359375,-21.285602569580078,-279.288818359375,1529.9447021484375,-41.77985382080078,-255.52108764648438,1591.6968994140625,-30.164024353027344,-275.5336608886719,1559.49462890625,-224.16845703125,-274.74627685546875,1553.9974365234375,-221.53366088867188,-252.38726806640625,1591.5794677734375,-456.0646057128906,-283.6177673339844,1529.35302734375,-439.2733154296875,-265.6806945800781,1563.3568115234375,-658.4583129882812,-292.5401306152344,1511.779052734375,576.9354858398438,-62.29836654663086,1594.08984375,378.28558349609375,-65.64669799804688,1545.08935546875,176.94969177246094,-65.56024169921875,1520.491455078125,139.33384704589844,-67.24504089355469,1548.344482421875,177.0110626220703,-70.70858764648438,1542.035888671875,-37.378143310546875,-70.32366943359375,1557.42236328125,-477.337646484375,-65.65641021728516,1598.8330078125,-851.95556640625,-65.76202392578125,1603.0555419921875,-1050.02734375,-70.04444885253906,1642.96435546875,763.4547729492188,151.62428283691406,1660.66455078125,563.5013427734375,138.83445739746094,1614.6929931640625,162.58982849121094,141.7266082763672,1539.9771728515625,125.92501831054688,126.48924255371094,1553.7694091796875,-58.746726989746094,121.82726287841797,1574.3514404296875,-241.28076171875,124.41302490234375,1582.58984375,-457.8235778808594,131.5135040283203,1603.923583984375,-1030.093994140625,158.255126953125,1625.39697265625,750.568115234375,307.4591064453125,1678.619140625,555.4486694335938,312.5674743652344,1610.987548828125,359.48150634765625,317.9520568847656,1557.8907470703125,150.36798095703125,333.0869140625,1533.6143798828125,170.26596069335938,373.5318298339844,1475.4610595703125,-44.08183670043945,323.1231384277344,1559.015869140625,-230.93746948242188,329.59393310546875,1563.6800537109375,-259.5683898925781,392.7006530761719,1544.2550048828125,-216.86827087402344,360.8332214355469,1502.0302734375,-401.1748046875,327.9954833984375,1606.007568359375,-409.16253662109375,339.25164794921875,1567.1202392578125,-633.2374877929688,329.49664306640625,1628.7564697265625,-827.53076171875,344.2793884277344,1644.808837890625,-1017.4073486328125,363.90985107421875,1653.3167724609375,-1011.0083618164062,374.59088134765625,1630.333740234375,-1242.5435791015625,317.0629577636719,1736.52197265625,1156.1361083984375,513.5260620117188,1732.266845703125,953.3106079101562,498.0749206542969,1706.5843505859375,747.0392456054688,497.3489074707031,1679.4014892578125,-223.2129669189453,566.0916748046875,1486.1490478515625,-422.2441711425781,541.6533203125,1560.428466796875,-619.5158081054688,555.2509765625,1595.388427734375,-626.3416137695312,569.3405151367188,1538.521240234375,-820.1725463867188,529.986083984375,1639.8997802734375,-813.0067138671875,560.4329833984375,1576.4617919921875,-998.6270751953125,549.0245971679688,1626.7962646484375,-1190.188232421875,548.3396606445312,1656.8211669921875,1552.38525390625,704.365966796875,1837.1422119140625,1350.4947509765625,703.429443359375,1790.803955078125,1144.8712158203125,700.69970703125,1748.8375244140625,-1188.011962890625,725.978759765625,1666.0382080078125,1749.2625732421875,892.4984130859375,1889.2821044921875,1545.3314208984375,889.1106567382812,1856.9195556640625,2414.391357421875,-1948.5203857421875,2023.2818603515625,2211.30908203125,-1947.6064453125,2025.26220703125,2008.4005126953125,-1946.69287109375,2023.0050048828125,1806.04296875,-1945.7818603515625,2019.69482421875,1604.249267578125,-1944.87353515625,2018.44287109375,1402.5032958984375,-1943.966064453125,2010.965087890625,1200.93359375,-1943.060546875,1995.392822265625,998.912353515625,-1942.1519775390625,1980.7501220703125,797.4509887695312,-1941.233154296875,1958.072998046875,596.890869140625,-1940.3370361328125,1926.19287109375,396.261962890625,-1939.428466796875,1888.8900146484375,192.6774444580078,-1938.51025390625,1861.310546875,-17.622882843017578,-1937.562744140625,1839.2838134765625,-228.38426208496094,-1936.613037109375,1828.3575439453125,-436.35089111328125,-1935.677001953125,1830.189208984375,-630.2413940429688,-1934.8045654296875,1828.308837890625,-822.328369140625,-1933.9400634765625,1826.762451171875,-1015.3422241210938,-1933.0693359375,1818.3365478515625,-1208.824462890625,-1932.194091796875,1800.548095703125,-1403.508544921875,-1931.3133544921875,1782.5885009765625,-1600.515869140625,-1930.42626953125,1779.5482177734375,2410.743896484375,-1736.6097412109375,2020.36376953125,-1600.031005859375,-1724.7696533203125,1785.1502685546875,2407.112548828125,-1525.65966796875,2018.24658203125,1267.90625,-1454.35009765625,1982.1226806640625,1061.989501953125,-1469.0751953125,1953.8133544921875,-1599.541015625,-1517.3004150390625,1781.0980224609375,2403.481201171875,-1314.61083984375,2028.5831298828125,2109.7734375,-1363.04931640625,2036.3416748046875,1909.860107421875,-1359.4599609375,2012.7799072265625,1053.8485107421875,-1275.9375,1924.7579345703125,847.3204345703125,-1286.72607421875,1890.3253173828125,328.5042724609375,-1334.705322265625,1796.23095703125,120.55615997314453,-1325.8046875,1757.0126953125,-96.60875701904297,-1327.777099609375,1724.01025390625,-1599.0533447265625,-1311.017578125,1771.340087890625,2399.854736328125,-1103.6241455078125,2044.3837890625,1911.472900390625,-1147.7459716796875,2036.1160888671875,1715.522705078125,-1132.50146484375,2011.9622802734375,1526.705810546875,-1116.927978515625,1988.1973876953125,1339.7049560546875,-1107.1719970703125,1939.4407958984375,836.971435546875,-1088.84375,1862.6893310546875,634.2979125976562,-1093.11474609375,1830.7918701171875,-109.50511169433594,-1124.036865234375,1702.7200927734375,-1015.7385864257812,-1104,1698.0538330078125,-1598.568359375,-1105.859130859375,1755.4779052734375,2396.2236328125,-892.5684814453125,2051.60498046875,1333.1082763671875,-906.16015625,1948.373046875,1139.0477294921875,-903.5162353515625,1873.6259765625,937.6979370117188,-914.6787719726562,1825.219482421875,738.4439086914062,-918.2828979492188,1775.4541015625,131.27806091308594,-884.2174682617188,1672.4581298828125,-254.80555725097656,-888.9194946289062,1648.7928466796875,-1053.1820068359375,-887.2588500976562,1693.0958251953125,-1598.085693359375,-901.1254272460938,1730.23486328125,2392.60205078125,-682.0877685546875,2045.904052734375,723.4725341796875,-732.6300659179688,1793.181884765625,536.8604125976562,-724.6880493164062,1714.90087890625,337.55303955078125,-735.3883666992188,1677.9947509765625,140.33517456054688,-672.5621948242188,1645.4217529296875,-35.98100662231445,-691.3082885742188,1574.730712890625,-231.92095947265625,-647.7843627929688,1575.89501953125,-852.4990234375,-693.603759765625,1616.5272216796875,-1051.350341796875,-692.9819946289062,1620.0804443359375,-1597.60107421875,-695.3037109375,1699.00830078125,2388.99267578125,-472.3022766113281,2037.7362060546875,-27.879335403442383,-484.1986999511719,1583.4378662109375,-233.71153259277344,-478.83148193359375,1540.9019775390625,-660.74267578125,-478.9116516113281,1568.6004638671875,-857.4692993164062,-481.5547180175781,1598.4853515625,-1597.1068115234375,-485.99322509765625,1678.320556640625,2385.389892578125,-262.90057373046875,2030.1995849609375,168.77288818359375,-268.04327392578125,1558.2171630859375,-32.62603759765625,-272.24578857421875,1562.333740234375,-232.35218811035156,-270.1123046875,1536.634033203125,-416.0898132324219,-261.77471923828125,1595.2091064453125,-660.6564331054688,-267.09405517578125,1560.93994140625,-864.7029418945312,-274.978515625,1595.58447265625,-1596.6099853515625,-275.4659423828125,1688.8753662109375,2381.801025390625,-54.293853759765625,2015.0953369140625,573.8275146484375,-55.344146728515625,1607.798583984375,373.1423645019531,-59.79481506347656,1570.4056396484375,163.22592163085938,-71.25379943847656,1565.8035888671875,-57.13616180419922,-57.93424987792969,1590.2508544921875,-492.1550598144531,-67.27059936523438,1581.2877197265625,-863.563232421875,-73.10680389404297,1634.811767578125,-1043.490966796875,-55.2984733581543,1617.754150390625,-1596.1220703125,-68.6609878540039,1724.7445068359375,2378.216064453125,154.05470275878906,2006.23291015625,967.7955322265625,165.722412109375,1689.52197265625,764.341796875,152.34674072265625,1664.6590576171875,560.719970703125,143.29379272460938,1641.04736328125,122.84347534179688,123.28242492675781,1555.42236328125,-56.839168548583984,120.86211395263672,1574.7322998046875,-241.34397888183594,121.78765869140625,1571.5596923828125,-475.27508544921875,126.8575668334961,1590.2667236328125,-1053.5875244140625,131.7276611328125,1675.6923828125,-1595.636962890625,136.39688110351562,1758.8203125,2374.68603515625,359.2177734375,2007.1002197265625,758.0123901367188,378.7417907714844,1569.9154052734375,561.3245239257812,375.50384521484375,1531.999755859375,364.3166809082031,373.14105224609375,1494.34716796875,147.228515625,329.9573974609375,1567.6187744140625,-21.852489471435547,362.7638244628906,1484.600830078125,-205.56967163085938,314.0617370605469,1590.9649658203125,-401.3716735839844,315.83056640625,1591.9482421875,-634.674560546875,350.4278869628906,1605.0670166015625,-823.408447265625,368.2945556640625,1622.7833251953125,-1060.8037109375,325.2902526855469,1704.2454833984375,-1202.6119384765625,367.2254333496094,1631.643798828125,-1595.165283203125,337.0049133300781,1786.61669921875,2371.4091796875,549.6773681640625,2019.6322021484375,1162.7506103515625,545.6622314453125,1664.28857421875,962.3330078125,558.2867431640625,1609.1759033203125,760.7969360351562,568.7355346679688,1572.262939453125,-219.6874237060547,536.2642822265625,1539.97802734375,-426.98431396484375,567.4688110351562,1493.9959716796875,-631.1381225585938,506.4631042480469,1636.0128173828125,-807.5152587890625,546.148193359375,1613.9539794921875,-998.7077026367188,547.5347900390625,1614.884521484375,-1247.7520751953125,488.2455749511719,1763.0758056640625,-1594.7322998046875,521.0451049804688,1804.1759033203125,2368.19384765625,736.5523681640625,2040.631103515625,1559.14892578125,717.3414916992188,1791.12890625,1359.205810546875,718.775634765625,1751.2884521484375,1160.578857421875,730.1162719726562,1693.125,-992.2300415039062,729.6884155273438,1633.5185546875,-1240.956298828125,664.8850708007812,1749.6851806640625,-1410.0098876953125,687.4033813476562,1778.27099609375,-1594.2935791015625,707.1187744140625,1803.3729248046875,2364.9765625,923.5595092773438,2063.99609375,1749.62646484375,901.4942626953125,1869.6083984375,1552.865966796875,901.4041748046875,1830.376708984375,-1593.8446044921875,897.2748413085938,1791.2744140625,2361.749267578125,1111.1279296875,2084.401611328125,1752.6396484375,1076.966064453125,1909.26708984375,-1593.38818359375,1090.596923828125,1785.21923828125,2358.498291015625,1300.080078125,2095.593994140625,-1592.9322509765625,1283.822265625,1779.865478515625,2355.22119140625,1490.5172119140625,2093.40966796875,-1592.4783935546875,1476.208984375,1773.67333984375,2351.92822265625,1681.9495849609375,2074.66748046875,2153.1357421875,1681.240966796875,2045.822509765625,1955.583251953125,1680.533935546875,2002.033935546875,1757.0225830078125,1679.8280029296875,1967.040771484375,1557.331787109375,1679.1190185546875,1944.3046875,1357.255615234375,1678.404052734375,1927.9481201171875,1157.6976318359375,1677.689697265625,1906.04443359375,959.2364501953125,1676.9791259765625,1878.66650390625,762.6478271484375,1676.275390625,1843.254150390625,565.7332763671875,1675.573486328125,1812.9923095703125,368.4159851074219,1674.868408203125,1788.1099853515625,169.19715881347656,1674.160400390625,1776.395751953125,-35.43998718261719,1673.4300537109375,1764.96826171875,-242.1582489013672,1672.6893310546875,1759.170166015625,-448.0252685546875,1671.955078125,1756.5660400390625,-637.259521484375,1671.2811279296875,1751.1326904296875,-825.6610717773438,1670.6097412109375,1753.4901123046875,-1014.847412109375,1669.9334716796875,1760.6241455078125,-1205.54052734375,1669.253662109375,1768.585205078125,-1397.99072265625,1668.5672607421875,1768.592041015625,-1592.0260009765625,1667.875244140625,1769.4259033203125,1054.5335693359375,-1475.3289794921875,1964.9920654296875,1918.4222412109375,-1359.3826904296875,2029.861083984375,1047.8741455078125,-1275.36865234375,1939.840576171875,843.3590698242188,-1292.2132568359375,1889.967529296875,118.19831848144531,-1332.5511474609375,1764.8621826171875,-97.83988952636719,-1337.1719970703125,1734.0450439453125,1911.4066162109375,-1141.572509765625,2022.7596435546875,1714.92626953125,-1138.9630126953125,2024.0299072265625,1523.899658203125,-1124.8973388671875,2007.283447265625,1337.238037109375,-1111.1849365234375,1981.7415771484375,839.0768432617188,-1086.54833984375,1871.166015625,1336.9512939453125,-894.5914306640625,1926.9410400390625,1134.09033203125,-913.8739624023438,1896.965087890625,936.2417602539062,-921.2373046875,1852.09130859375,735.1963500976562,-932.3504028320312,1809.655517578125,-1017.048828125,-922.6217041015625,1619.5557861328125,732.4700317382812,-712.701171875,1761.162109375,524.40234375,-748.9651489257812,1741.6412353515625,159.015625,-686.1220703125,1609.5775146484375,-50.610530853271484,-674.9061889648438,1608.5885009765625,-50.40409851074219,-675.03125,1608.22314453125,-237.2694549560547,-652.1508178710938,1590.1859130859375,-231.62527465820312,-657.33056640625,1593.0970458984375,-833.2662353515625,-718.4122314453125,1556.663330078125,-1027.327880859375,-723.2529296875,1593.2633056640625,-16.303503036499023,-487.7884826660156,1562.669921875,-216.96202087402344,-475.3095703125,1570.9539794921875,-655.9012451171875,-499.29156494140625,1525.61474609375,-847.678955078125,-508.9123840332031,1539.6778564453125,177.18663024902344,-276.6911926269531,1539.161376953125,-24.905136108398438,-278.28961181640625,1536.497314453125,-43.6864013671875,-254.27395629882812,1595.6090087890625,-32.95540237426758,-274.3372497558594,1564.52880859375,-224.49288940429688,-272.7887268066406,1556.4967041015625,-220.76861572265625,-249.87228393554688,1595.7301025390625,-455.7693176269531,-282.4908142089844,1532.2049560546875,-438.8018798828125,-263.7182312011719,1568.1475830078125,-658.7824096679688,-291.6286926269531,1514.7999267578125,574.7413940429688,-59.132320404052734,1601.0469970703125,375.5836486816406,-62.56786346435547,1552.415283203125,173.8489227294922,-63.033180236816406,1527.8699951171875,135.12269592285156,-67.05235290527344,1553.474609375,173.30015563964844,-70.20735168457031,1548.9849853515625,-41.10523223876953,-68.91490173339844,1562.9959716796875,-474.48712158203125,-65.53607177734375,1603.5777587890625,-853.8616943359375,-66.5584487915039,1608.9197998046875,-1052.8619384765625,-70.96900939941406,1649.7659912109375,762.7415771484375,155.1131134033203,1666.2010498046875,561.9921875,142.20372009277344,1621.067138671875,159.40264892578125,140.2639923095703,1546.1673583984375,120.904052734375,124.9481201171875,1560.77197265625,-61.84701156616211,120.67611694335938,1580.564208984375,-243.23193359375,123.07131958007812,1588.627197265625,-456.18975830078125,128.9095001220703,1607.8388671875,-1032.8232421875,154.5276641845703,1631.9141845703125,749.0892333984375,304.2143249511719,1682.41650390625,553.849365234375,309.1911315917969,1614.511962890625,357.5256652832031,315.1997985839844,1561.1142578125,147.7244873046875,330.1864318847656,1538.20458984375,166.6150360107422,371.0130920410156,1479.5032958984375,-47.69767761230469,320.7466735839844,1566.8414306640625,-233.51608276367188,326.4623718261719,1571.6287841796875,-260.2607421875,389.9140625,1549.684814453125,-219.0092010498047,359.6309814453125,1506.6044921875,-401.4163818359375,325.1744689941406,1610.117919921875,-409.04608154296875,336.24237060546875,1572.3907470703125,-633.7172241210938,325.7107849121094,1633.5994873046875,-829.7657470703125,340.8946533203125,1648.569091796875,-1019.9321899414062,359.1546630859375,1658.9080810546875,-1013.1246337890625,369.45074462890625,1636.5911865234375,-1246.29638671875,312.47747802734375,1743.6121826171875,1154.7718505859375,509.98443603515625,1740.1986083984375,952.1271362304688,493.64990234375,1713.7301025390625,745.674560546875,493.7354736328125,1684.6234130859375,-224.6317596435547,564.6919555664062,1490.4447021484375,-420.9761657714844,539.492919921875,1565.2103271484375,-617.2491455078125,552.6697998046875,1600.7197265625,-624.1101684570312,568.4638061523438,1541.480712890625,-821.9155883789062,525.9999389648438,1644.0343017578125,-811.7000122070312,558.546142578125,1580.3671875,-997.9639892578125,544.6961059570312,1633.1163330078125,-1194.046630859375,543.9219970703125,1663.8568115234375,1550.7388916015625,700.5053100585938,1848.36279296875,1348.9031982421875,699.676025390625,1800.4368896484375,1143.4854736328125,696.9371337890625,1756.778076171875,-1192.49755859375,721.29248046875,1674.4697265625,1748.15234375,887.8897705078125,1902.082763671875,1543.9962158203125,884.6287231445312,1869.584228515625,2414.391357421875,-1948.5203857421875,2045.7406005859375,2211.2548828125,-1947.6064453125,2047.7041015625,2008.302490234375,-1946.69287109375,2044.7349853515625,1805.90625,-1945.7818603515625,2040.5103759765625,1604.056640625,-1944.87353515625,2039.0030517578125,1402.2342529296875,-1943.966064453125,2032.1668701171875,1200.53076171875,-1943.060546875,2017.6575927734375,998.4243774414062,-1942.1519775390625,2003.440673828125,796.923583984375,-1941.230712890625,1980.5364990234375,596.5416259765625,-1940.3370361328125,1947.0299072265625,396.1082458496094,-1939.428466796875,1908.062744140625,192.56398010253906,-1938.51025390625,1879.689453125,-17.754667282104492,-1937.562744140625,1857.49267578125,-228.52745056152344,-1936.613037109375,1845.978515625,-436.555419921875,-1935.677001953125,1847.531005859375,-630.510986328125,-1934.8045654296875,1846.2078857421875,-822.643310546875,-1933.9400634765625,1844.3880615234375,-1015.6065673828125,-1933.0693359375,1834.193115234375,-1208.937255859375,-1932.194091796875,1814.5211181640625,-1403.4715576171875,-1931.3133544921875,1794.683837890625,-1600.515869140625,-1930.42626953125,1790.61083984375,2410.743896484375,-1736.6253662109375,2042.43359375,-1600.031005859375,-1724.7371826171875,1794.898193359375,2407.112548828125,-1525.6976318359375,2039.9190673828125,1282.2757568359375,-1441.84765625,2004.0699462890625,1075.6397705078125,-1458.9635009765625,1974.982666015625,-1599.541015625,-1517.3001708984375,1790.7574462890625,2403.48291015625,-1314.744384765625,2051.79833984375,2092.693603515625,-1372.81201171875,2059.748779296875,1892.8223876953125,-1369.78173828125,2037.208251953125,1066.4365234375,-1268.4097900390625,1946.33984375,858.5858154296875,-1281.4874267578125,1910.3001708984375,321.1092834472656,-1337.390380859375,1805.2296142578125,113.5745849609375,-1327.6405029296875,1764.549560546875,-106.5899887084961,-1329.781005859375,1733.1553955078125,-1599.0533447265625,-1311.1185302734375,1781.3795166015625,2399.85888671875,-1103.8729248046875,2068.913330078125,1896.2218017578125,-1156.0487060546875,2058.39697265625,1700.051513671875,-1139.996826171875,2033.9609375,1513.1175537109375,-1121.7103271484375,2008.04345703125,1327.75341796875,-1110.1868896484375,1957.450439453125,846.7236328125,-1085.8768310546875,1881.8271484375,642.3582153320312,-1091.77294921875,1847.42333984375,-118.89129638671875,-1126.275146484375,1711.2935791015625,-1020.1099853515625,-1104.082763671875,1708.9547119140625,-1598.568359375,-1106.066650390625,1766.7493896484375,2396.227783203125,-892.8129272460938,2075.544677734375,1322.443115234375,-908.9056396484375,1964.968017578125,1128.11376953125,-907.2809448242188,1889.043701171875,926.6300659179688,-920.1414794921875,1839.4825439453125,727.9657592773438,-924.506591796875,1788.4390869140625,126.20645141601562,-883.4037475585938,1677.8582763671875,-257.8891296386719,-885.7144775390625,1663.50634765625,-1058.4676513671875,-885.2839965820312,1702.3507080078125,-1598.085693359375,-901.306640625,1743.14599609375,2392.606201171875,-682.3384399414062,2069.71435546875,712.5411376953125,-741.8450317382812,1808.8577880859375,526.7117309570312,-733.2676391601562,1727.65576171875,328.4659423828125,-742.942138671875,1689.4901123046875,134.7529296875,-671.1534423828125,1652.3763427734375,-40.872154235839844,-690.3937377929688,1581.5733642578125,-231.61590576171875,-643.5654296875,1579.6068115234375,-855.5767822265625,-691.1200561523438,1624.4093017578125,-1056.678466796875,-689.7090454101562,1630.869140625,-1597.60107421875,-695.3739624023438,1712.5689697265625,2388.997314453125,-472.5852355957031,2060.707275390625,-30.00364875793457,-483.4576110839844,1587.3267822265625,-230.63336181640625,-476.0274963378906,1548.9725341796875,-661.8101806640625,-476.93426513671875,1574.6845703125,-859.5352783203125,-479.341552734375,1606.3087158203125,-1597.1068115234375,-486.1095886230469,1690.57275390625,2385.396240234375,-263.2657165527344,2050.8349609375,165.3484649658203,-266.51055908203125,1564.7159423828125,-35.25383758544922,-270.71148681640625,1567.187744140625,-230.80679321289062,-268.12945556640625,1541.4384765625,-414.0071716308594,-259.8095397949219,1600.565673828125,-661.3359985351562,-265.2162170410156,1566.4154052734375,-867.2584228515625,-274.7359313964844,1602.401123046875,-1596.6099853515625,-275.58172607421875,1699.514404296875,2381.809326171875,-54.781219482421875,2033.9373779296875,572.1652221679688,-52.39772415161133,1613.6790771484375,370.81268310546875,-57.34204864501953,1576.738037109375,159.6717987060547,-71.2143325805664,1572.323974609375,-59.676963806152344,-57.13792419433594,1594.2030029296875,-490.8198547363281,-66.59736633300781,1584.7052001953125,-865.2724609375,-73.31316375732422,1639.386962890625,-1046.5101318359375,-58.31379318237305,1625.021240234375,-1596.1220703125,-68.7682113647461,1733.905517578125,2378.2255859375,153.5098419189453,2023.8466796875,966.6636352539062,170.4893798828125,1696.517333984375,763.708984375,155.41329956054688,1669.6905517578125,559.9183959960938,145.86798095703125,1645.61669921875,118.40757751464844,122.55697631835938,1561.0751953125,-60.03774642944336,119.50484466552734,1581.291748046875,-243.5470428466797,119.85084533691406,1578.749267578125,-473.6673583984375,125.4062728881836,1593.3426513671875,-1056.9658203125,128.08480834960938,1682.4859619140625,-1595.636962890625,136.1735076904297,1767.7508544921875,2374.695556640625,358.6785583496094,2023.527099609375,757.1807250976562,377.531494140625,1571.204345703125,559.2012939453125,372.8712463378906,1534.578125,361.5986022949219,370.2693176269531,1497.3563232421875,141.4254913330078,327.3658752441406,1575.2271728515625,-25.01603126525879,361.279296875,1489.4830322265625,-206.39846801757812,311.95196533203125,1596.624755859375,-400.85546875,312.97503662109375,1596.4163818359375,-633.4959106445312,346.4842834472656,1608.9906005859375,-825.1500244140625,363.85797119140625,1628.255859375,-1064.3106689453125,320.0509033203125,1711.083984375,-1205.25732421875,362.38104248046875,1638.2996826171875,-1595.165283203125,336.9400939941406,1794.052734375,2371.41748046875,549.197265625,2034.974365234375,1161.3629150390625,541.7691040039062,1671.58349609375,961.0015869140625,554.7894897460938,1614.486083984375,759.5723266601562,566.66796875,1576.4920654296875,-220.489501953125,533.3896484375,1545.596923828125,-426.2854309082031,565.9901123046875,1497.4183349609375,-631.7944946289062,501.75701904296875,1641.3985595703125,-806.5524291992188,542.6118774414062,1619.6036376953125,-998.0977783203125,544.6483764648438,1619.9417724609375,-1251.98486328125,484.6401672363281,1770.5020751953125,-1594.7322998046875,521.0894775390625,1810.3260498046875,2368.200927734375,736.1522216796875,2055.155029296875,1557.33349609375,713.8257446289062,1801.7843017578125,1357.2762451171875,715.0569458007812,1761.6422119140625,1158.8385009765625,726.4917602539062,1702.1527099609375,-991.7868041992188,725.5482177734375,1640.4761962890625,-1245.95654296875,661.823486328125,1757.7100830078125,-1414.6534423828125,685.502685546875,1785.8321533203125,-1594.2935791015625,707.1805419921875,1807.962646484375,2364.982177734375,923.2412109375,2077.792724609375,1748.61572265625,897.2619018554688,1882.0037841796875,1551.6226806640625,897.5013427734375,1842.2012939453125,-1593.8446044921875,897.3014526367188,1795.3775634765625,2361.752197265625,1110.9671630859375,2096.587890625,1752.22509765625,1071.6114501953125,1922.3106689453125,-1593.38818359375,1090.61083984375,1789.1041259765625,2358.49951171875,1300.005126953125,2106.2314453125,-1592.9322509765625,1283.8372802734375,1783.9140625,2355.2216796875,1490.4552001953125,2104.108154296875,-1592.4783935546875,1476.218017578125,1777.6220703125,2351.92822265625,1681.9495849609375,2086.13330078125,2153.08935546875,1681.240966796875,2057.3564453125,1955.645263671875,1680.533935546875,2012.863037109375,1756.9439697265625,1679.8280029296875,1978.5504150390625,1557.0531005859375,1679.1190185546875,1957.2713623046875,1357.025146484375,1678.404052734375,1939.9146728515625,1157.59716796875,1677.689697265625,1916.5380859375,959.2716674804688,1676.9791259765625,1887.966064453125,762.7958374023438,1676.275390625,1851.754150390625,565.843994140625,1675.573486328125,1821.5743408203125,368.5732116699219,1674.868408203125,1796.0599365234375,169.4224090576172,1674.1611328125,1782.7523193359375,-35.21609115600586,1673.430908203125,1770.880615234375,-241.9916229248047,1672.6893310546875,1765.9954833984375,-447.8808288574219,1671.955078125,1762.9493408203125,-637.10400390625,1671.281494140625,1756.3154296875,-825.5379028320312,1670.610107421875,1757.8797607421875,-1014.7657470703125,1669.9334716796875,1764.6634521484375,-1205.4906005859375,1669.253662109375,1772.68701171875,-1397.966064453125,1668.5672607421875,1772.52880859375,-1592.0260009765625,1667.875244140625,1773.1312255859375,1067.1226806640625,-1466.4710693359375,1986.1044921875,1903.6392822265625,-1367.910400390625,2053.3505859375,1059.4296875,-1268.4112548828125,1960.4305419921875,853.95068359375,-1287.9144287109375,1909.9713134765625,110.86399841308594,-1334.825439453125,1773.3582763671875,-107.81209564208984,-1340.230224609375,1744.74658203125,1895.24853515625,-1150.369873046875,2046.00390625,1700.4169921875,-1145.6470947265625,2044.7418212890625,1511.076171875,-1129.45849609375,2026.6614990234375,1327.2772216796875,-1113.4178466796875,1998.9478759765625,848.63818359375,-1083.831787109375,1889.65380859375,1325.9588623046875,-897.0833129882812,1943.4996337890625,1123.5877685546875,-917.69384765625,1912.4354248046875,926.0899047851562,-926.6822509765625,1867.4027099609375,725.2122192382812,-939.409423828125,1824.7529296875,-1022.1375732421875,-922.8270263671875,1631.7657470703125,721.5895385742188,-720.0315551757812,1774.3406982421875,513.9806518554688,-758.7033081054688,1755.4327392578125,153.6162109375,-685.499755859375,1616.585205078125,-54.89863204956055,-672.3082275390625,1616.17822265625,-55.261253356933594,-672.0885620117188,1616.820068359375,-237.7212677001953,-644.5128784179688,1597.9881591796875,-230.75936889648438,-648.9985961914062,1603.217529296875,-835.22705078125,-717.7819213867188,1563.4268798828125,-1030.37255859375,-723.325927734375,1605.036865234375,-19.597986221313477,-486.853271484375,1568.1011962890625,-216.80206298828125,-472.09918212890625,1573.9217529296875,-656.694091796875,-498.2691955566406,1529.74658203125,-849.4303588867188,-507.51727294921875,1546.523193359375,173.5225372314453,-275.0232238769531,1546.6392822265625,-28.524703979492188,-277.29046630859375,1543.050048828125,-45.59294891357422,-253.02685546875,1599.52099609375,-35.74678039550781,-273.14080810546875,1569.56298828125,-224.81735229492188,-270.8312072753906,1558.9959716796875,-220.00357055664062,-247.3572998046875,1599.8807373046875,-455.4739685058594,-281.3638000488281,1535.0570068359375,-438.3304748535156,-261.7557373046875,1572.9383544921875,-659.106689453125,-290.71728515625,1517.82080078125,572.54736328125,-55.96628189086914,1608.004150390625,372.8816833496094,-59.489036560058594,1559.740966796875,170.74815368652344,-60.506080627441406,1535.248779296875,130.91156005859375,-66.85968017578125,1558.60498046875,169.5892333984375,-69.70610809326172,1555.93408203125,-44.83232498168945,-67.50614929199219,1568.5694580078125,-471.6365661621094,-65.41573333740234,1608.322509765625,-855.7677612304688,-67.35488891601562,1614.78369140625,-1055.696533203125,-71.89356994628906,1656.567626953125,762.0283813476562,158.6019287109375,1671.7379150390625,560.4830932617188,145.57301330566406,1627.44140625,156.21548461914062,138.80136108398438,1552.35791015625,115.88308715820312,123.406982421875,1567.7747802734375,-64.94729614257812,119.52497863769531,1586.777099609375,-245.18307495117188,121.7296142578125,1594.66455078125,-454.5559387207031,126.30549621582031,1611.7540283203125,-1035.55224609375,150.80023193359375,1638.4310302734375,747.6102294921875,300.969482421875,1686.2139892578125,552.2500610351562,305.8147888183594,1618.03662109375,355.5699157714844,312.447509765625,1564.3377685546875,145.08096313476562,327.285888671875,1542.794677734375,162.96409606933594,368.4942626953125,1483.545166015625,-51.31351852416992,318.3702697753906,1574.6671142578125,-236.09471130371094,323.330810546875,1579.5777587890625,-260.95306396484375,387.12750244140625,1555.11474609375,-221.150146484375,358.4287414550781,1511.1785888671875,-401.657958984375,322.35345458984375,1614.228515625,-408.9295654296875,333.2330627441406,1577.6612548828125,-634.1968994140625,321.9249572753906,1638.442626953125,-832.0007934570312,337.50994873046875,1652.3294677734375,-1022.4572143554688,354.3995361328125,1664.4993896484375,-1015.2409057617188,364.310546875,1642.848876953125,-1250.0491943359375,307.8919982910156,1750.702392578125,1153.4075927734375,506.44293212890625,1748.13037109375,950.9434814453125,489.2248840332031,1720.8760986328125,744.3098754882812,490.1220703125,1689.8453369140625,-226.05052185058594,563.2922973632812,1494.740234375,-419.7081604003906,537.33251953125,1569.9920654296875,-614.9825439453125,550.088623046875,1606.051025390625,-621.87890625,567.587158203125,1544.43994140625,-823.6585083007812,522.0138549804688,1648.1688232421875,-810.3933715820312,556.6593017578125,1584.2725830078125,-997.3009033203125,540.3674926757812,1639.4365234375,-1197.905029296875,539.5042724609375,1670.8927001953125,1549.09228515625,696.6448364257812,1859.5833740234375,1347.311767578125,695.9227294921875,1810.070068359375,1142.099365234375,693.1744384765625,1764.718505859375,-1196.983154296875,716.606201171875,1682.9012451171875,1747.0421142578125,883.2810668945312,1914.88330078125,1542.660888671875,880.146728515625,1882.2489013671875,2414.391357421875,-1948.5203857421875,2064.35693359375,2211.2099609375,-1947.6064453125,2066.280517578125,2008.2216796875,-1946.69287109375,2062.674560546875,1805.7940673828125,-1945.7818603515625,2057.609130859375,1603.89990234375,-1944.87353515625,2055.749755859375,1402.018310546875,-1943.966064453125,2049.182861328125,1200.2125244140625,-1943.060546875,2035.26025390625,998.0447387695312,-1942.1519775390625,2021.093994140625,796.5106201171875,-1941.22900390625,1998.1258544921875,596.255859375,-1940.3370361328125,1964.080322265625,395.9717712402344,-1939.428466796875,1925.085693359375,192.45574951171875,-1938.51025390625,1897.2198486328125,-17.883705139160156,-1937.562744140625,1875.3211669921875,-228.66465759277344,-1936.613037109375,1862.8673095703125,-436.7442321777344,-1935.677001953125,1863.539306640625,-630.7529907226562,-1934.8045654296875,1862.27197265625,-822.9183959960938,-1933.9400634765625,1859.7860107421875,-1015.830078125,-1933.0693359375,1847.6036376953125,-1209.02880859375,-1932.194091796875,1825.86962890625,-1403.442138671875,-1931.3133544921875,1804.2593994140625,-1600.515869140625,-1930.42626953125,1799.3485107421875,2410.743896484375,-1736.6383056640625,2060.72412109375,-1600.031005859375,-1724.713623046875,1801.9134521484375,2407.112548828125,-1525.72900390625,2057.8720703125,1294.751708984375,-1430.9927978515625,2023.12548828125,1087.8082275390625,-1449.94970703125,1993.853515625,-1599.541015625,-1517.2999267578125,1796.2799072265625,2403.48388671875,-1314.85498046875,2071.036865234375,2078.485107421875,-1380.9334716796875,2079.220703125,1878.66845703125,-1378.356201171875,2057.501708984375,1077.652587890625,-1261.7022705078125,1965.5694580078125,869.27490234375,-1276.5167236328125,1929.2529296875,305.0762939453125,-1343.2120361328125,1824.739013671875,92.50601959228516,-1333.1812744140625,1787.2933349609375,-131.11903381347656,-1334.7059326171875,1755.6302490234375,-1599.0533447265625,-1311.155029296875,1785.0025634765625,2399.8623046875,-1104.07958984375,2089.28076171875,1883.557861328125,-1162.94287109375,2076.8984375,1687.4012451171875,-1146.1251220703125,2051.9482421875,1502.458984375,-1125.4613037109375,2023.610595703125,1319.0391845703125,-1112.385009765625,1970.5816650390625,856.0853881835938,-1083.02880859375,1900.198974609375,650.8670043945312,-1090.356201171875,1864.98046875,-146.42982482910156,-1132.842041015625,1736.4478759765625,-1022.0305786132812,-1104.1190185546875,1713.7442626953125,-1598.568359375,-1106.10888671875,1769.0439453125,2396.231201171875,-893.0167236328125,2095.501953125,1315.021728515625,-910.816162109375,1976.515380859375,1120.2113037109375,-910.001953125,1900.1866455078125,917.6763305664062,-924.5606079101562,1851.02099609375,717.75830078125,-930.5695190429688,1801.088623046875,111.62619018554688,-881.064208984375,1693.3836669921875,-260.6908874511719,-882.8021850585938,1676.875244140625,-1059.997314453125,-884.7124633789062,1705.0291748046875,-1598.085693359375,-901.3333740234375,1745.050537109375,2392.60986328125,-682.5489501953125,2089.716064453125,701.7664794921875,-750.9277954101562,1824.3089599609375,516.9517822265625,-741.5186157226562,1739.9224853515625,319.9715270996094,-750.0032958984375,1700.23583984375,127.78308868408203,-669.39453125,1661.0594482421875,-45.855674743652344,-689.4617919921875,1588.54541015625,-231.367431640625,-640.1290893554688,1582.630126953125,-857.6182250976562,-689.4722900390625,1629.6383056640625,-1058.2281494140625,-688.7571411132812,1634.0068359375,-1597.60107421875,-695.3863525390625,1714.967529296875,2389.00146484375,-472.8257141113281,2080.23388671875,-31.636018753051758,-482.8881530761719,1590.315185546875,-229.08056640625,-474.613037109375,1553.0438232421875,-662.9091796875,-474.898681640625,1580.94775390625,-861.223876953125,-477.53253173828125,1612.703369140625,-1597.1068115234375,-486.1387634277344,1693.6412353515625,2385.4013671875,-263.58062744140625,2068.6328125,162.6229248046875,-265.2906494140625,1569.8885498046875,-37.430870056152344,-269.4403381347656,1571.209228515625,-230.06005859375,-267.17132568359375,1543.7598876953125,-412.16143798828125,-258.06787109375,1605.31298828125,-662.0650024414062,-263.2017517089844,1572.2890625,-869.3370361328125,-274.5386047363281,1607.9459228515625,-1596.6099853515625,-275.6257019042969,1703.5533447265625,2381.816650390625,-55.20941162109375,2050.4921875,570.7998046875,-49.97745895385742,1618.509521484375,368.9262390136719,-55.35588836669922,1581.865966796875,156.6297607421875,-71.1805419921875,1577.9049072265625,-61.909423828125,-56.438232421875,1597.675537109375,-489.5167236328125,-65.94036865234375,1588.0406494140625,-866.6460571289062,-73.47901153564453,1643.0633544921875,-1048.0947265625,-59.89637756347656,1628.835205078125,-1596.1220703125,-68.82315826416016,1738.599853515625,2378.23388671875,153.02267456054688,2039.59619140625,965.8045654296875,174.1074676513672,1701.8267822265625,763.232666015625,157.72097778320312,1673.476806640625,559.3118896484375,147.8152313232422,1649.0732421875,114.27970886230469,121.88191223144531,1566.3353271484375,-63.11762619018555,118.19794464111328,1587.6077880859375,-245.69081115722656,117.9661865234375,1585.74560546875,-471.93170166015625,123.83942413330078,1596.6640625,-1059.0631103515625,125.82317352294922,1686.7037353515625,-1595.636962890625,136.03549194335938,1773.2684326171875,2374.703857421875,358.1879577636719,2038.4722900390625,757.1807250976562,377.531494140625,1571.204345703125,558.6544189453125,372.193115234375,1535.2423095703125,359.9347839355469,368.5113220214844,1499.1982421875,135.81813049316406,324.8617248535156,1582.579345703125,-28.25123405456543,359.7611389160156,1494.4759521484375,-207.19064331054688,309.93536376953125,1602.03466796875,-400.3675842285156,310.2765197753906,1600.6387939453125,-632.57861328125,343.4151916503906,1612.0438232421875,-826.3926391601562,360.6925964355469,1632.1602783203125,-1066.690673828125,316.4952087402344,1715.7247314453125,-1207.03515625,359.125244140625,1642.77294921875,-1595.165283203125,336.89666748046875,1799.0289306640625,2371.425048828125,548.7559204101562,2049.075439453125,1160.208251953125,538.5304565429688,1677.652099609375,960.1445922851562,552.5383911132812,1617.9041748046875,758.9668579101562,565.6458129882812,1578.5830078125,-221.23141479492188,530.7305908203125,1550.7947998046875,-425.6654357910156,564.67822265625,1500.4541015625,-632.2954711914062,498.1655578613281,1645.5087890625,-805.83251953125,539.9678344726562,1623.827880859375,-997.6468505859375,542.5140380859375,1623.6812744140625,-1254.9801025390625,482.08880615234375,1775.75732421875,-1594.7322998046875,521.1204833984375,1814.6192626953125,2368.20751953125,735.7825317382812,2068.57275390625,1555.537109375,710.347412109375,1812.326171875,1355.392578125,711.4268188476562,1771.7490234375,1157.168212890625,723.0130004882812,1710.8173828125,-991.4594116210938,722.4898681640625,1645.61572265625,-1249.5814208984375,659.6041870117188,1763.5272216796875,-1418.0416259765625,684.1157836914062,1791.348876953125,-1594.2935791015625,707.2249755859375,1811.268798828125,2364.98681640625,922.94775390625,2090.5146484375,1747.63671875,893.1615600585938,1894.0125732421875,1550.4112548828125,893.6981811523438,1853.7232666015625,-1593.8446044921875,897.3211059570312,1798.4246826171875,2361.754638671875,1110.8197021484375,2107.763916015625,1751.8289794921875,1066.4935302734375,1934.777587890625,-1593.38818359375,1090.62158203125,1792.08642578125,2358.500732421875,1299.9368896484375,2115.899658203125,-1592.9322509765625,1283.84912109375,1787.127197265625,2355.22265625,1490.3995361328125,2113.74365234375,-1592.4783935546875,1476.2254638671875,1780.8408203125,2351.92822265625,1681.9495849609375,2096.41015625,2153.047607421875,1681.240966796875,2067.7578125,1955.702392578125,1680.533935546875,2022.798828125,1756.87060546875,1679.8280029296875,1989.28564453125,1556.788818359375,1679.1190185546875,1969.5455322265625,1356.8038330078125,1678.404052734375,1951.399658203125,1157.5001220703125,1677.689697265625,1926.6898193359375,959.3056640625,1676.9791259765625,1896.9512939453125,762.9374389648438,1676.275390625,1859.8896484375,565.9483642578125,1675.573486328125,1829.676513671875,368.7198181152344,1674.868408203125,1803.4735107421875,169.63035583496094,1674.1619873046875,1788.621337890625,-35.011390686035156,1673.431640625,1776.2857666015625,-241.84188842773438,1672.6893310546875,1772.12939453125,-447.75384521484375,1671.955078125,1768.5616455078125,-636.9703979492188,1671.28173828125,1760.770751953125,-825.4334106445312,1670.6103515625,1761.603515625,-1014.6972045898438,1669.9334716796875,1768.056396484375,-1205.4488525390625,1669.253662109375,1776.105712890625,-1397.94580078125,1668.5672607421875,1775.7911376953125,-1592.0260009765625,1667.875244140625,1776.190673828125,1078.13671875,-1458.7208251953125,2004.5760498046875,1891.3853759765625,-1374.9793701171875,2072.822265625,1069.714599609375,-1262.2186279296875,1978.7568359375,863.9927978515625,-1283.8387451171875,1928.9376220703125,89.8481674194336,-1341.3419189453125,1797.703369140625,-131.600830078125,-1347.5257568359375,1770.275146484375,1881.826171875,-1157.6776123046875,2065.312744140625,1688.560302734375,-1151.109130859375,2061.6669921875,1501.0545654296875,-1133.0228271484375,2041.805419921875,1320.0950927734375,-1115.0279541015625,2011.354248046875,857.70068359375,-1081.2568359375,1907.1773681640625,1318.2806396484375,-898.82373046875,1955.065673828125,1116.00830078125,-920.4503784179688,1923.599609375,917.8367309570312,-931.1088256835938,1879.8504638671875,715.447998046875,-946.3131103515625,1839.5177001953125,-1023.88720703125,-922.8976440429688,1635.964111328125,710.96240234375,-727.1912841796875,1787.2125244140625,503.70770263671875,-768.3023681640625,1769.02734375,147.55508422851562,-684.8009643554688,1624.451416015625,-59.066017150878906,-669.783447265625,1623.5545654296875,-59.301551818847656,-669.6407470703125,1623.971435546875,-237.92398071289062,-641.0859985351562,1601.48876953125,-230.33006286621094,-644.8675537109375,1608.2354736328125,-836.5824584960938,-717.3460083007812,1568.1024169921875,-1031.16357421875,-723.3448486328125,1608.0958251953125,-21.52692985534668,-486.3057556152344,1571.28125,-216.6714630126953,-469.4781188964844,1576.3447265625,-657.648681640625,-497.038330078125,1534.72119140625,-850.8410034179688,-506.3936767578125,1552.0364990234375,171.33692932128906,-274.0283203125,1551.099853515625,-31.125083923339844,-276.5726623535156,1547.7574462890625,-47.212921142578125,-251.96719360351562,1602.8450927734375,-37.94939041137695,-272.19671630859375,1573.53515625,-225.08468627929688,-269.21820068359375,1561.055419921875,-219.34500122070312,-245.19223022460938,1603.4539794921875,-455.20977783203125,-280.3556823730469,1537.608154296875,-437.9131164550781,-260.0183410644531,1577.1795654296875,-659.5346069335938,-289.5140686035156,1521.8087158203125,570.751953125,-53.37556838989258,1613.6971435546875,370.72900390625,-57.03609085083008,1565.577392578125,168.3173370361328,-58.52499008178711,1541.033203125,127.10333251953125,-66.68544006347656,1563.244384765625,166.35794067382812,-69.26963806152344,1561.985107421875,-48.038536071777344,-66.29426574707031,1573.364013671875,-469.01153564453125,-65.30491638183594,1612.69189453125,-857.2977905273438,-67.99419403076172,1619.49072265625,-1057.12451171875,-72.35933685302734,1659.994140625,761.48779296875,161.24630737304688,1675.934326171875,559.343017578125,148.11831665039062,1632.2567138671875,153.16189575195312,137.40005493164062,1558.288818359375,111.12020111083984,121.94508361816406,1574.4173583984375,-67.92887878417969,118.41790771484375,1592.751953125,-247.09945678710938,120.41181945800781,1600.59423828125,-453.0846252441406,123.96048736572266,1615.2799072265625,-1037.23583984375,148.50088500976562,1642.451171875,747.369140625,300.4406433105469,1686.832763671875,551.6114501953125,304.4665832519531,1619.4439697265625,354.43133544921875,310.8452453613281,1566.21435546875,142.76712036132812,324.7471008300781,1546.8123779296875,159.73385620117188,366.2657470703125,1487.121826171875,-54.78817367553711,316.0866394042969,1582.187255859375,-238.54246520996094,320.3581848144531,1587.123046875,-261.58538818359375,384.58245849609375,1560.073974609375,-223.49314880371094,357.113037109375,1516.1845703125,-401.8726501464844,319.8463439941406,1617.8814697265625,-408.826171875,330.5611572265625,1582.3406982421875,-634.5944213867188,318.7876892089844,1642.4559326171875,-833.59619140625,335.0937805175781,1655.013671875,-1024.1591796875,351.1942443847656,1668.26806640625,-1016.678955078125,360.81756591796875,1647.101318359375,-1252.5606689453125,304.8234558105469,1755.447021484375,1152.2490234375,503.4349365234375,1754.8671875,950.0556030273438,485.90545654296875,1726.2364501953125,743.4594116210938,487.8702697753906,1693.0994873046875,-227.44161987304688,561.9198608398438,1498.9520263671875,-418.6466979980469,535.5241088867188,1573.9947509765625,-613.2325439453125,548.0958251953125,1610.1669921875,-620.1595458984375,566.91162109375,1546.7200927734375,-824.921875,519.1246948242188,1651.165771484375,-809.4090576171875,555.2379760742188,1587.2144775390625,-996.8118286132812,537.1752319335938,1644.0975341796875,-1200.6431884765625,536.3692626953125,1675.8856201171875,1547.4688720703125,692.8381958007812,1870.6468505859375,1345.7545166015625,692.2501831054688,1819.4957275390625,1140.770263671875,689.5655517578125,1772.3343505859375,-1200.2568359375,713.1861572265625,1689.0545654296875,1745.9671630859375,878.818603515625,1927.2779541015625,1541.3597412109375,875.7794799804688,1894.5894775390625,2414.391357421875,-1948.5203857421875,2082.973388671875,2211.1650390625,-1947.6064453125,2084.85693359375,2008.140869140625,-1946.69287109375,2080.61328125,1805.681884765625,-1945.7818603515625,2074.708251953125,1603.7432861328125,-1944.87353515625,2072.496337890625,1401.8023681640625,-1943.966064453125,2066.19921875,1199.894287109375,-1943.060546875,2052.862548828125,997.6650390625,-1942.1519775390625,2038.7470703125,796.0975952148438,-1941.2271728515625,2015.715087890625,595.9701538085938,-1940.3370361328125,1981.130859375,395.8353576660156,-1939.428466796875,1942.1085205078125,192.34750366210938,-1938.51025390625,1914.7501220703125,-18.012739181518555,-1937.562744140625,1893.149658203125,-228.80189514160156,-1936.613037109375,1879.7562255859375,-436.93310546875,-1935.677001953125,1879.5477294921875,-630.9950561523438,-1934.8045654296875,1878.3359375,-823.1935424804688,-1933.9400634765625,1875.1842041015625,-1016.0536499023438,-1933.0693359375,1861.01416015625,-1209.1201171875,-1932.194091796875,1837.2183837890625,-1403.412841796875,-1931.3133544921875,1813.8353271484375,-1600.515869140625,-1930.42626953125,1808.086181640625,2410.743896484375,-1736.651123046875,2079.014892578125,-1600.031005859375,-1724.6903076171875,1808.9290771484375,2407.112548828125,-1525.7603759765625,2075.8251953125,1307.227783203125,-1420.137939453125,2042.1806640625,1099.976806640625,-1440.9356689453125,2012.724609375,-1599.541015625,-1517.2998046875,1801.8023681640625,2403.4853515625,-1314.9654541015625,2090.275390625,2064.2763671875,-1389.0550537109375,2098.693359375,1864.5146484375,-1386.9307861328125,2077.795166015625,1088.8687744140625,-1254.9951171875,1984.7991943359375,879.9639282226562,-1271.546142578125,1948.2056884765625,289.0433044433594,-1349.03369140625,1844.248779296875,71.43740844726562,-1338.7220458984375,1810.037353515625,-155.64804077148438,-1339.6304931640625,1778.1048583984375,-1599.0533447265625,-1311.1915283203125,1788.6256103515625,2399.8662109375,-1104.2861328125,2109.648193359375,1870.8935546875,-1169.837158203125,2095.39990234375,1674.7510986328125,-1152.2537841796875,2069.935546875,1491.800537109375,-1129.2122802734375,2039.1776123046875,1310.3251953125,-1114.583251953125,1983.713134765625,865.4472045898438,-1080.1807861328125,1918.570556640625,659.3757934570312,-1088.939697265625,1882.53759765625,-173.96829223632812,-1139.408935546875,1761.601806640625,-1023.951171875,-1104.1553955078125,1718.53369140625,-1598.568359375,-1106.151123046875,1771.338623046875,2396.234619140625,-893.2205810546875,2115.45947265625,1307.6004638671875,-912.7265625,1988.0626220703125,1112.3087158203125,-912.7230224609375,1911.3297119140625,908.72265625,-928.979736328125,1862.5594482421875,707.5509033203125,-936.6325073242188,1813.738037109375,97.04597473144531,-878.7247314453125,1708.9088134765625,-263.4927673339844,-879.8900146484375,1690.2440185546875,-1061.5269775390625,-884.1409912109375,1707.707275390625,-1598.085693359375,-901.3601684570312,1746.9552001953125,2392.613525390625,-682.7594604492188,2109.7177734375,690.9918823242188,-760.0106201171875,1839.7598876953125,507.19183349609375,-749.76953125,1752.188720703125,311.4770812988281,-757.0643310546875,1710.9814453125,120.81324768066406,-667.635498046875,1669.742431640625,-50.83921813964844,-688.5299072265625,1595.517578125,-231.1189422607422,-636.692626953125,1585.653564453125,-859.659912109375,-687.82470703125,1634.8670654296875,-1059.7777099609375,-687.8052368164062,1637.1446533203125,-1597.60107421875,-695.3988647460938,1717.3662109375,2389.005615234375,-473.0662536621094,2099.76025390625,-33.26837921142578,-482.31866455078125,1593.3035888671875,-227.52777099609375,-473.19854736328125,1557.114990234375,-664.0081176757812,-472.863037109375,1587.2109375,-862.91259765625,-475.72357177734375,1619.097900390625,-1597.1068115234375,-486.16790771484375,1696.7098388671875,2385.4072265625,-263.8954772949219,2086.4306640625,159.89735412597656,-264.07073974609375,1575.0609130859375,-39.60791778564453,-268.1692199707031,1575.2305908203125,-229.3133544921875,-266.2132568359375,1546.08154296875,-410.3157043457031,-256.32623291015625,1610.0604248046875,-662.7939453125,-261.187255859375,1578.162841796875,-871.4156494140625,-274.34130859375,1613.4906005859375,-1596.6099853515625,-275.6696472167969,1707.5926513671875,2381.823974609375,-55.63761520385742,2067.046630859375,569.4343872070312,-47.55720138549805,1623.3399658203125,367.03973388671875,-53.36973190307617,1586.9937744140625,153.58775329589844,-71.14675903320312,1583.4859619140625,-64.14188385009766,-55.738525390625,1601.1480712890625,-488.21368408203125,-65.28338623046875,1591.375732421875,-868.0195922851562,-73.64485168457031,1646.740234375,-1049.6793212890625,-61.47895050048828,1632.649658203125,-1596.1220703125,-68.87809753417969,1743.2943115234375,2378.2421875,152.53550720214844,2055.345703125,964.9454345703125,177.7255401611328,1707.13623046875,762.7565307617188,160.0286102294922,1677.2633056640625,558.70556640625,149.7625274658203,1652.5296630859375,110.15184020996094,121.20684814453125,1571.595458984375,-66.197509765625,116.89102935791016,1593.9239501953125,-247.83457946777344,116.08149719238281,1592.7418212890625,-470.196044921875,122.27259826660156,1599.98486328125,-1061.160400390625,123.56155395507812,1690.9215087890625,-1595.636962890625,135.8975067138672,1778.785888671875,2374.71240234375,357.69732666015625,2053.417724609375,757.1807250976562,377.531494140625,1571.204345703125,558.1074829101562,371.5149841308594,1535.906494140625,358.2708740234375,366.7533264160156,1501.0401611328125,130.21078491210938,322.35760498046875,1589.9312744140625,-31.486431121826172,358.242919921875,1499.46875,-207.98281860351562,307.91876220703125,1607.44482421875,-399.8796691894531,307.57794189453125,1604.861328125,-631.661376953125,340.3460998535156,1615.0972900390625,-827.6351928710938,357.52728271484375,1636.0648193359375,-1069.070556640625,312.9395446777344,1720.36572265625,-1208.8128662109375,355.86944580078125,1647.24658203125,-1595.165283203125,336.853271484375,1804.0047607421875,2371.4326171875,548.3145751953125,2063.176513671875,1159.0538330078125,535.2916870117188,1683.7208251953125,959.2874755859375,550.2871704101562,1621.322265625,758.3614501953125,564.6235961914062,1580.673828125,-221.97332763671875,528.0714111328125,1555.992431640625,-425.0454406738281,563.3665161132812,1503.490234375,-632.7964477539062,494.5740966796875,1649.618896484375,-805.1127319335938,537.3238525390625,1628.052001953125,-997.1957397460938,540.3797607421875,1627.4207763671875,-1257.9754638671875,479.5374450683594,1781.0126953125,-1594.7322998046875,521.1514282226562,1818.91259765625,2368.2138671875,735.4127807617188,2081.990234375,1553.740966796875,706.8690185546875,1822.8682861328125,1353.5091552734375,707.7967529296875,1781.8555908203125,1155.4979248046875,719.5341796875,1719.482177734375,-991.1319580078125,719.4315795898438,1650.755126953125,-1253.2059326171875,657.3849487304688,1769.3443603515625,-1421.4298095703125,682.7289428710938,1796.86572265625,-1594.2935791015625,707.26953125,1814.5748291015625,2364.991943359375,922.6542358398438,2103.237060546875,1746.657470703125,889.0612182617188,1906.021484375,1549.199951171875,889.89501953125,1865.2452392578125,-1593.8446044921875,897.3408203125,1801.471923828125,2361.75732421875,1110.67236328125,2118.9404296875,1751.432861328125,1061.3759765625,1947.2445068359375,-1593.38818359375,1090.63232421875,1795.06884765625,2358.501953125,1299.8687744140625,2125.5673828125,-1592.9322509765625,1283.8612060546875,1790.3402099609375,2355.2236328125,1490.34375,2123.378662109375,-1592.4783935546875,1476.23291015625,1784.0599365234375,2351.92822265625,1681.9495849609375,2106.68701171875,2153.005859375,1681.240966796875,2078.159912109375,1955.759521484375,1680.533935546875,2032.7344970703125,1756.7972412109375,1679.8280029296875,2000.02099609375,1556.52490234375,1679.1190185546875,1981.8194580078125,1356.58251953125,1678.404052734375,1962.88427734375,1157.40283203125,1677.689697265625,1936.841552734375,959.3397827148438,1676.9791259765625,1905.936767578125,763.0791015625,1676.275390625,1868.0252685546875,566.0527954101562,1675.573486328125,1837.7783203125,368.8664855957031,1674.868408203125,1810.88720703125,169.83831787109375,1674.16259765625,1794.4903564453125,-34.80669021606445,1673.432373046875,1781.69091796875,-241.692138671875,1672.6893310546875,1778.26318359375,-447.62689208984375,1671.955078125,1774.1739501953125,-636.8367309570312,1671.281982421875,1765.2255859375,-825.3289794921875,1670.6107177734375,1765.3272705078125,-1014.6285400390625,1669.9334716796875,1771.4490966796875,-1205.4072265625,1669.253662109375,1779.5245361328125,-1397.9254150390625,1668.5672607421875,1779.0533447265625,-1592.0260009765625,1667.875244140625,1779.25,1089.15087890625,-1450.9708251953125,2023.047607421875,1879.1309814453125,-1382.0482177734375,2092.294189453125,1079.9996337890625,-1256.0260009765625,1997.0831298828125,874.0348510742188,-1279.76318359375,1947.903564453125,68.832275390625,-1347.8585205078125,1822.0487060546875,-155.38955688476562,-1354.8214111328125,1795.8037109375,1868.404052734375,-1164.9854736328125,2084.62158203125,1676.70361328125,-1156.5711669921875,2078.592041015625,1491.0330810546875,-1136.5870361328125,2056.94921875,1312.912841796875,-1116.637939453125,2023.760498046875,866.76318359375,-1078.6820068359375,1924.70068359375,1310.6024169921875,-900.564208984375,1966.6318359375,1108.42919921875,-923.2070922851562,1934.763671875,909.5836791992188,-935.5353393554688,1892.29833984375,705.6836547851562,-953.216796875,1854.28271484375,-1025.636962890625,-922.96826171875,1640.1622314453125,700.335205078125,-734.35107421875,1800.0843505859375,493.43487548828125,-777.9014282226562,1782.6220703125,141.49395751953125,-684.1021118164062,1632.3177490234375,-63.2334098815918,-667.2586669921875,1630.930419921875,-63.34185791015625,-667.1929321289062,1631.1224365234375,-238.12669372558594,-637.6589965820312,1604.9896240234375,-229.9007110595703,-640.736572265625,1613.25341796875,-837.9380493164062,-716.9102783203125,1572.777587890625,-1031.95458984375,-723.36376953125,1611.155029296875,-23.455867767333984,-485.7581787109375,1574.4613037109375,-216.54086303710938,-466.8570861816406,1578.7674560546875,-658.603271484375,-495.80743408203125,1539.6959228515625,-852.2516479492188,-505.2698974609375,1557.5498046875,169.15127563476562,-273.03338623046875,1555.560302734375,-33.72549819946289,-275.8548278808594,1552.4652099609375,-48.8328857421875,-250.90753173828125,1606.1690673828125,-40.152000427246094,-271.2526550292969,1577.507568359375,-225.35202026367188,-267.6051940917969,1563.11474609375,-218.6864013671875,-243.02716064453125,1607.0272216796875,-454.9456787109375,-279.3476257324219,1540.1593017578125,-437.49578857421875,-258.281005859375,1581.4205322265625,-659.9625854492188,-288.3108215332031,1525.796875,568.9564819335938,-50.78485870361328,1619.3900146484375,368.57635498046875,-54.58314895629883,1571.4141845703125,165.88650512695312,-56.543914794921875,1546.817626953125,123.29510498046875,-66.51119232177734,1567.8837890625,163.1266326904297,-68.83319854736328,1568.035888671875,-51.2447509765625,-65.08238220214844,1578.15869140625,-466.3864440917969,-65.19409942626953,1617.061279296875,-858.8278198242188,-68.63349151611328,1624.1978759765625,-1058.552734375,-72.82512664794922,1663.4207763671875,760.947265625,163.89068603515625,1680.1309814453125,558.2030029296875,150.6636199951172,1637.072265625,150.1083221435547,135.9987335205078,1564.2196044921875,106.35731506347656,120.48316955566406,1581.0599365234375,-70.91046142578125,117.31083679199219,1598.726806640625,-249.0158233642578,119.09403991699219,1606.524169921875,-451.61334228515625,121.61547088623047,1618.8056640625,-1038.919189453125,146.2015380859375,1646.4713134765625,747.1281127929688,299.9118957519531,1687.45166015625,550.9727783203125,303.1183776855469,1620.851318359375,353.2926940917969,309.24298095703125,1568.0908203125,140.45326232910156,322.2083435058594,1550.8302001953125,156.50360107421875,364.03717041015625,1490.6978759765625,-58.2628288269043,313.8030090332031,1589.707275390625,-240.99021911621094,317.38555908203125,1594.6683349609375,-262.2176818847656,382.03741455078125,1565.033203125,-225.8361358642578,355.7974548339844,1521.1903076171875,-402.08734130859375,317.3392333984375,1621.53466796875,-408.72271728515625,327.8892517089844,1587.0203857421875,-634.991943359375,315.6504211425781,1646.4691162109375,-835.191650390625,332.6776428222656,1657.6978759765625,-1025.8609619140625,347.98907470703125,1672.036865234375,-1018.1170654296875,357.3246154785156,1651.353515625,-1255.07177734375,301.7548828125,1760.1917724609375,1151.09033203125,500.4270324707031,1761.60400390625,949.1677856445312,482.5860900878906,1731.596923828125,742.6090087890625,485.6185302734375,1696.353759765625,-228.83270263671875,560.547607421875,1503.163818359375,-417.585205078125,533.7156372070312,1577.99755859375,-611.4825439453125,546.10302734375,1614.283203125,-618.4402465820312,566.2361450195312,1549.0003662109375,-826.1853637695312,516.2354736328125,1654.1624755859375,-808.4246215820312,553.8165283203125,1590.156494140625,-996.3229370117188,533.9830322265625,1648.758544921875,-1203.3812255859375,533.2341918945312,1680.878662109375,1545.8453369140625,689.0316162109375,1881.7105712890625,1344.1971435546875,688.5774536132812,1828.92138671875,1139.44091796875,685.9566650390625,1779.950439453125,-1203.5302734375,709.7660522460938,1695.2080078125,1744.89208984375,874.356201171875,1939.6727294921875,1540.0587158203125,871.4121704101562,1906.929931640625,2414.391357421875,-1948.5203857421875,2101.589599609375,2211.1201171875,-1947.6064453125,2103.43310546875,2008.059814453125,-1946.69287109375,2098.552490234375,1805.569580078125,-1945.7818603515625,2091.807373046875,1603.5863037109375,-1944.87353515625,2089.242919921875,1401.5865478515625,-1943.966064453125,2083.21533203125,1199.5760498046875,-1943.060546875,2070.46484375,997.2854614257812,-1942.1519775390625,2056.400146484375,795.6846313476562,-1941.2252197265625,2033.304443359375,595.6844482421875,-1940.3370361328125,1998.18115234375,395.69891357421875,-1939.428466796875,1959.13134765625,192.23928833007812,-1938.51025390625,1932.280517578125,-18.14177131652832,-1937.562744140625,1910.97802734375,-228.93911743164062,-1936.613037109375,1896.6451416015625,-437.1219177246094,-1935.677001953125,1895.5560302734375,-631.2371215820312,-1934.8045654296875,1894.4000244140625,-823.4688110351562,-1933.9400634765625,1890.5821533203125,-1016.2772216796875,-1933.0693359375,1874.4249267578125,-1209.2115478515625,-1932.194091796875,1848.5670166015625,-1403.3834228515625,-1931.3133544921875,1823.4110107421875,-1600.515869140625,-1930.42626953125,1816.8238525390625,2410.743896484375,-1736.6639404296875,2097.3056640625,-1600.031005859375,-1724.666748046875,1815.9443359375,2407.112548828125,-1525.791748046875,2093.7783203125,1319.70361328125,-1409.283203125,2061.236328125,1112.1451416015625,-1431.9219970703125,2031.595458984375,-1599.541015625,-1517.2996826171875,1807.3248291015625,2403.48681640625,-1315.0760498046875,2109.513671875,2050.0673828125,-1397.1766357421875,2118.165283203125,1850.360595703125,-1395.50537109375,2098.08837890625,1100.0850830078125,-1248.2877197265625,2004.029052734375,890.6529541015625,-1266.575439453125,1967.1583251953125,273.01031494140625,-1354.85546875,1863.758544921875,50.36882781982422,-1344.262939453125,1832.7811279296875,-180.1770782470703,-1344.5552978515625,1800.57958984375,-1599.0533447265625,-1311.227783203125,1792.2484130859375,2399.86962890625,-1104.49267578125,2130.015625,1858.2293701171875,-1176.7313232421875,2113.901123046875,1662.1009521484375,-1158.3824462890625,2087.9228515625,1481.141845703125,-1132.96337890625,2054.744384765625,1301.6109619140625,-1116.7816162109375,1996.844482421875,874.8089599609375,-1077.3326416015625,1936.9425048828125,667.8846435546875,-1087.523193359375,1900.0946044921875,-201.50677490234375,-1145.975830078125,1786.755859375,-1025.871826171875,-1104.1915283203125,1723.3231201171875,-1598.568359375,-1106.193359375,1773.63330078125,2396.238037109375,-893.4244384765625,2135.416748046875,1300.17919921875,-914.6370849609375,1999.6099853515625,1104.40625,-915.4439086914062,1922.472900390625,899.7689208984375,-933.39892578125,1874.0980224609375,697.3434448242188,-942.6954345703125,1826.3875732421875,82.46573638916016,-876.38525390625,1724.433837890625,-266.2945251464844,-876.977783203125,1703.613037109375,-1063.056640625,-883.5695190429688,1710.3857421875,-1598.085693359375,-901.3868408203125,1748.8597412109375,2392.6171875,-682.9700317382812,2129.719482421875,680.2172241210938,-769.0933837890625,1855.2109375,497.4319152832031,-758.0205078125,1764.455078125,302.9826965332031,-764.12548828125,1721.727294921875,113.84342956542969,-665.8766479492188,1678.425537109375,-55.82271957397461,-687.5980224609375,1602.4892578125,-230.87045288085938,-633.2562255859375,1588.677001953125,-861.7014770507812,-686.1770629882812,1640.0958251953125,-1061.3275146484375,-686.8533935546875,1640.282470703125,-1597.60107421875,-695.4111938476562,1719.764892578125,2389.009765625,-473.3067626953125,2119.287109375,-34.90074920654297,-481.7491760253906,1596.2919921875,-225.9750213623047,-471.7841491699219,1561.1864013671875,-665.1071166992188,-470.8274230957031,1593.4742431640625,-864.6011962890625,-473.91455078125,1625.4923095703125,-1597.1068115234375,-486.19708251953125,1699.778564453125,2385.41259765625,-264.21038818359375,2104.228759765625,157.17181396484375,-262.850830078125,1580.2335205078125,-41.784950256347656,-266.8980712890625,1579.2520751953125,-228.56658935546875,-265.255126953125,1548.40283203125,-408.4699401855469,-254.58453369140625,1614.807861328125,-663.52294921875,-259.1727294921875,1584.0367431640625,-873.4942016601562,-274.14404296875,1619.03515625,-1596.6099853515625,-275.7136535644531,1711.6317138671875,2381.83154296875,-56.06581115722656,2083.6015625,568.0689086914062,-45.13694381713867,1628.1702880859375,365.15325927734375,-51.38357925415039,1592.1214599609375,150.5457305908203,-71.11298370361328,1589.0667724609375,-66.37433624267578,-55.038848876953125,1604.6207275390625,-486.9106140136719,-64.62639617919922,1594.710693359375,-869.3932495117188,-73.81068420410156,1650.4166259765625,-1051.263916015625,-63.06153106689453,1636.463623046875,-1596.1220703125,-68.93305206298828,1747.989013671875,2378.25048828125,152.04832458496094,2071.095703125,964.0863647460938,181.3436279296875,1712.4456787109375,762.2802734375,162.33627319335938,1681.0496826171875,558.0991821289062,151.70980834960938,1655.9862060546875,106.02397918701172,120.53178405761719,1576.8555908203125,-69.27738952636719,115.58412170410156,1600.2401123046875,-249.97836303710938,114.19683837890625,1599.7379150390625,-468.4603576660156,120.70576477050781,1603.305908203125,-1063.2574462890625,121.2999267578125,1695.139404296875,-1595.636962890625,135.7594757080078,1784.303466796875,2374.720947265625,357.20672607421875,2068.36279296875,757.1807250976562,377.531494140625,1571.204345703125,557.560546875,370.83685302734375,1536.5706787109375,356.6070251464844,364.995361328125,1502.882080078125,124.60342407226562,319.85345458984375,1597.2830810546875,-34.72163391113281,356.7247314453125,1504.4615478515625,-208.77499389648438,305.90216064453125,1612.854736328125,-399.391845703125,304.8793640136719,1609.083740234375,-630.7440795898438,337.27703857421875,1618.15087890625,-828.8776245117188,354.3619384765625,1639.9693603515625,-1071.4505615234375,309.38385009765625,1725.0064697265625,-1210.591064453125,352.61358642578125,1651.7198486328125,-1595.165283203125,336.80987548828125,1808.98095703125,2371.4404296875,547.8732299804688,2077.27783203125,1157.8994140625,532.0531005859375,1689.78955078125,958.4305419921875,548.0360107421875,1624.7403564453125,757.755859375,563.6013793945312,1582.7647705078125,-222.71527099609375,525.412353515625,1561.190185546875,-424.4254455566406,562.0547485351562,1506.5262451171875,-633.2974243164062,490.982666015625,1653.7288818359375,-804.3927612304688,534.6798095703125,1632.2764892578125,-996.744873046875,538.2454223632812,1631.1602783203125,-1260.970703125,476.986083984375,1786.2677001953125,-1594.7322998046875,521.182373046875,1823.2059326171875,2368.22021484375,735.0430908203125,2095.407958984375,1551.9447021484375,703.390625,1833.4102783203125,1351.62548828125,704.1666870117188,1791.96240234375,1153.827392578125,716.055419921875,1728.14697265625,-990.804443359375,716.3731689453125,1655.8948974609375,-1256.8306884765625,655.1655883789062,1775.16162109375,-1424.818115234375,681.3421020507812,1802.38232421875,-1594.2935791015625,707.31396484375,1817.881103515625,2364.9970703125,922.3607177734375,2115.958984375,1745.6783447265625,884.9608154296875,1918.0302734375,1547.988525390625,886.092041015625,1876.767578125,-1593.8446044921875,897.360595703125,1804.5189208984375,2361.759765625,1110.52490234375,2130.11669921875,1751.036865234375,1056.2581787109375,1959.71142578125,-1593.38818359375,1090.64306640625,1798.05126953125,2358.503173828125,1299.800537109375,2135.2353515625,-1592.9322509765625,1283.873046875,1793.55322265625,2355.224365234375,1490.2879638671875,2133.013916015625,-1592.4783935546875,1476.2403564453125,1787.2789306640625,2351.92822265625,1681.9495849609375,2116.9638671875,2152.9638671875,1681.240966796875,2088.5615234375,1955.816650390625,1680.533935546875,2042.670166015625,1756.723876953125,1679.8280029296875,2010.756103515625,1556.2608642578125,1679.1190185546875,1994.093505859375,1356.3612060546875,1678.404052734375,1974.3692626953125,1157.3057861328125,1677.689697265625,1946.993408203125,959.373779296875,1676.9791259765625,1914.9219970703125,763.220703125,1676.275390625,1876.1605224609375,566.1572265625,1675.573486328125,1845.88037109375,369.0130615234375,1674.868408203125,1818.301025390625,170.04627990722656,1674.1634521484375,1800.3590087890625,-34.60198974609375,1673.43310546875,1787.09619140625,-241.54238891601562,1672.6893310546875,1784.3970947265625,-447.4998779296875,1671.955078125,1779.786376953125,-636.703125,1671.2822265625,1769.6806640625,-825.2244873046875,1670.611083984375,1769.05126953125,-1014.56005859375,1669.9334716796875,1774.842041015625,-1205.365478515625,1669.253662109375,1782.9429931640625,-1397.905029296875,1668.5672607421875,1782.3157958984375,-1592.0260009765625,1667.875244140625,1782.309326171875,1100.1651611328125,-1443.2208251953125,2041.51904296875,1866.876953125,-1389.117431640625,2111.765625,1090.28466796875,-1249.83349609375,2015.4093017578125,884.076904296875,-1275.6875,1966.869873046875,47.81646728515625,-1354.3748779296875,1846.3936767578125,-179.17828369140625,-1362.1168212890625,1821.3323974609375,1854.9818115234375,-1172.29345703125,2103.929931640625,1664.846923828125,-1162.033203125,2095.51708984375,1481.011474609375,-1140.1514892578125,2072.0927734375,1305.7308349609375,-1118.2481689453125,2036.1668701171875,875.8257446289062,-1076.107177734375,1942.2237548828125,1302.92431640625,-902.3046875,1978.197998046875,1100.8497314453125,-925.9637451171875,1945.927734375,901.3305053710938,-939.9619140625,1904.7459716796875,695.91943359375,-960.120361328125,1869.0477294921875,-1027.3865966796875,-923.0388793945312,1644.3607177734375,689.7080688476562,-741.5107421875,1812.9559326171875,483.16192626953125,-787.5004272460938,1796.216796875,135.43284606933594,-683.4034423828125,1640.18408203125,-67.40078735351562,-664.7338256835938,1638.306640625,-67.38215637207031,-664.7451171875,1638.273681640625,-238.3294219970703,-634.2321166992188,1608.4903564453125,-229.47137451171875,-636.60546875,1618.271240234375,-839.29345703125,-716.4744262695312,1577.4532470703125,-1032.74560546875,-723.3828735351562,1614.2139892578125,-25.38481330871582,-485.210693359375,1577.64111328125,-216.41026306152344,-464.2359924316406,1581.1905517578125,-659.5578002929688,-494.5765380859375,1544.6705322265625,-853.6624145507812,-504.14630126953125,1563.0631103515625,166.9656524658203,-272.0384826660156,1560.020751953125,-36.32588577270508,-275.1369934082031,1557.1727294921875,-50.452857971191406,-249.8478546142578,1609.492919921875,-42.35460662841797,-270.30859375,1581.479736328125,-225.61936950683594,-265.9921875,1565.17431640625,-218.02780151367188,-240.86209106445312,1610.6004638671875,-454.68145751953125,-278.33953857421875,1542.710205078125,-437.07843017578125,-256.5436706542969,1585.6614990234375,-660.3905639648438,-287.1075439453125,1529.7847900390625,567.1611328125,-48.19414138793945,1625.0828857421875,366.4236755371094,-52.13020324707031,1577.2506103515625,163.45567321777344,-54.56282043457031,1552.6021728515625,119.48687744140625,-66.33695220947266,1572.523193359375,159.89532470703125,-68.396728515625,1574.0870361328125,-54.450965881347656,-63.87049865722656,1582.9532470703125,-463.7613830566406,-65.08328247070312,1621.4306640625,-860.3578491210938,-69.27278900146484,1628.9049072265625,-1059.980712890625,-73.29090118408203,1666.847412109375,760.4066772460938,166.5350799560547,1684.3275146484375,557.0629272460938,153.2089385986328,1641.8875732421875,147.0547637939453,134.597412109375,1570.150390625,101.59442901611328,119.02125549316406,1587.70263671875,-73.89203643798828,116.20376586914062,1604.7017822265625,-250.93218994140625,117.77626037597656,1612.453857421875,-450.14202880859375,119.27046203613281,1622.3316650390625,-1040.602783203125,143.90219116210938,1650.4913330078125,746.8871459960938,299.38311767578125,1688.0706787109375,550.334228515625,301.77020263671875,1622.2587890625,352.15411376953125,307.64068603515625,1569.967529296875,138.13938903808594,319.6695251464844,1554.84765625,153.2733612060547,361.8086853027344,1494.274169921875,-61.737483978271484,311.51934814453125,1597.2275390625,-243.43795776367188,314.4129333496094,1602.2138671875,-262.85003662109375,379.49237060546875,1569.992431640625,-228.17910766601562,354.4817199707031,1526.1961669921875,-402.3020324707031,314.8321228027344,1625.187744140625,-408.61932373046875,325.21734619140625,1591.6998291015625,-635.3894653320312,312.5131530761719,1650.4825439453125,-836.787109375,330.2615051269531,1660.382080078125,-1027.5628662109375,344.78387451171875,1675.8057861328125,-1019.5552368164062,353.8316345214844,1655.60595703125,-1257.5830078125,298.68634033203125,1764.9361572265625,1149.931640625,497.4190673828125,1768.3408203125,948.2799072265625,479.2666931152344,1736.9571533203125,741.7586059570312,483.3667907714844,1699.6080322265625,-230.22377014160156,559.1751708984375,1507.3756103515625,-416.5237731933594,531.9072265625,1582.0003662109375,-609.7326049804688,544.1102905273438,1618.399169921875,-616.7208862304688,565.5606079101562,1551.2803955078125,-827.4486083984375,513.3463745117188,1657.1591796875,-807.4403686523438,552.3952026367188,1593.0982666015625,-995.8338623046875,530.790771484375,1653.4195556640625,-1206.119140625,530.0992431640625,1685.8714599609375,1544.22216796875,685.22509765625,1892.774169921875,1342.6400146484375,684.9049072265625,1838.34716796875,1138.11181640625,682.3477783203125,1787.5665283203125,-1206.8038330078125,706.3460693359375,1701.361083984375,1743.817138671875,869.8936157226562,1952.0675048828125,1538.757568359375,867.044921875,1919.2705078125,2414.391357421875,-1948.5203857421875,2120.2060546875,2211.0751953125,-1947.6064453125,2122.00927734375,2007.97900390625,-1946.69287109375,2116.491943359375,1805.4573974609375,-1945.7818603515625,2108.906005859375,1603.4295654296875,-1944.87353515625,2105.9892578125,1401.37060546875,-1943.966064453125,2100.2314453125,1199.257568359375,-1943.060546875,2088.0673828125,996.9057006835938,-1942.1519775390625,2074.0537109375,795.2716674804688,-1941.2235107421875,2050.893798828125,595.398681640625,-1940.3370361328125,2015.2315673828125,395.56243896484375,-1939.428466796875,1976.1544189453125,192.13104248046875,-1938.51025390625,1949.8109130859375,-18.27080535888672,-1937.562744140625,1928.806640625,-229.07632446289062,-1936.613037109375,1913.5338134765625,-437.3107604980469,-1935.677001953125,1911.564453125,-631.4791259765625,-1934.8045654296875,1910.4639892578125,-823.7438354492188,-1933.9400634765625,1905.980224609375,-1016.500732421875,-1933.0693359375,1887.8353271484375,-1209.30322265625,-1932.194091796875,1859.9156494140625,-1403.3543701171875,-1931.3133544921875,1832.98681640625,-1600.515869140625,-1930.42626953125,1825.5614013671875,2410.743896484375,-1736.6768798828125,2115.59619140625,-1600.031005859375,-1724.6435546875,1822.9598388671875,2407.112548828125,-1525.8232421875,2111.731201171875,1332.1796875,-1398.42822265625,2080.291748046875,1124.313720703125,-1422.908203125,2050.466064453125,-1599.541015625,-1517.299560546875,1812.8472900390625,2403.48828125,-1315.1866455078125,2128.752197265625,2035.85888671875,-1405.2979736328125,2137.636962890625,1836.20654296875,-1404.0799560546875,2118.38232421875,1111.30126953125,-1241.5804443359375,2023.2589111328125,901.3419799804688,-1261.6048583984375,1986.1112060546875,256.977294921875,-1360.67724609375,1883.26806640625,29.300216674804688,-1349.8037109375,1855.525146484375,-204.70608520507812,-1349.4801025390625,1823.0543212890625,-1599.0533447265625,-1311.2642822265625,1795.871337890625,2399.873046875,-1104.69921875,2150.383056640625,1845.5653076171875,-1183.6256103515625,2132.402587890625,1649.4508056640625,-1164.5108642578125,2105.909912109375,1470.4833984375,-1136.7144775390625,2070.3115234375,1292.89697265625,-1118.97998046875,2009.975830078125,884.1707153320312,-1074.484619140625,1955.3143310546875,676.3934326171875,-1086.1063232421875,1917.6517333984375,-229.0452880859375,-1152.542724609375,1811.91015625,-1027.79248046875,-1104.227783203125,1728.1124267578125,-1598.568359375,-1106.235595703125,1775.9278564453125,2396.24169921875,-893.6282958984375,2155.374267578125,1292.7578125,-916.5474243164062,2011.1573486328125,1096.5035400390625,-918.1649169921875,1933.6158447265625,890.8153076171875,-937.8180541992188,1885.636474609375,687.1360473632812,-948.75830078125,1839.037109375,67.8855209350586,-874.0457763671875,1739.9591064453125,-269.0963439941406,-874.0655517578125,1716.98193359375,-1064.5863037109375,-882.9979858398438,1713.06396484375,-1598.085693359375,-901.4136352539062,1750.764404296875,2392.62060546875,-683.1805419921875,2149.72119140625,669.4427490234375,-778.1761474609375,1870.6619873046875,487.6720275878906,-766.2713623046875,1776.7216796875,294.48828125,-771.1866455078125,1732.4730224609375,106.87358856201172,-664.11767578125,1687.1087646484375,-60.80624771118164,-686.6660766601562,1609.4613037109375,-230.62197875976562,-629.8198852539062,1591.700439453125,-863.7429809570312,-684.5293579101562,1645.3245849609375,-1062.877197265625,-685.9013671875,1643.420166015625,-1597.60107421875,-695.423583984375,1722.1634521484375,2389.013916015625,-473.54730224609375,2138.81396484375,-36.533111572265625,-481.1796875,1599.2802734375,-224.4221954345703,-470.3696594238281,1565.25732421875,-666.2060546875,-468.7917785644531,1599.7376708984375,-866.2898559570312,-472.1056213378906,1631.886962890625,-1597.1068115234375,-486.22625732421875,1702.8470458984375,2385.41796875,-264.52532958984375,2122.026611328125,154.44627380371094,-261.63092041015625,1585.4061279296875,-43.96198272705078,-265.626953125,1583.2734375,-227.81988525390625,-264.2970275878906,1550.724365234375,-406.62420654296875,-252.84286499023438,1619.55517578125,-664.2520141601562,-257.158203125,1589.9105224609375,-875.57275390625,-273.9467468261719,1624.579833984375,-1596.6099853515625,-275.75762939453125,1715.6708984375,2381.838623046875,-56.49400329589844,2100.15625,566.7034912109375,-42.7166862487793,1633.0006103515625,363.2667541503906,-49.397422790527344,1597.2493896484375,147.5037078857422,-71.0792007446289,1594.6475830078125,-68.6067886352539,-54.33915710449219,1608.09326171875,-485.6075744628906,-63.96940231323242,1598.0460205078125,-870.7667846679688,-73.97653198242188,1654.09326171875,-1052.8485107421875,-64.64411163330078,1640.27783203125,-1596.1220703125,-68.98798370361328,1752.683349609375,2378.2587890625,151.56114196777344,2086.84521484375,963.2272338867188,184.9617156982422,1717.755126953125,761.8041381835938,164.64393615722656,1684.8360595703125,557.4927978515625,153.65707397460938,1659.4427490234375,101.89611053466797,119.85671997070312,1582.1158447265625,-72.35726928710938,114.27721405029297,1606.5562744140625,-252.12213134765625,112.31216430664062,1606.734130859375,-466.724609375,119.13893127441406,1606.626953125,-1065.354736328125,119.03828430175781,1699.357177734375,-1595.636962890625,135.62147521972656,1789.821044921875,2374.729248046875,356.71612548828125,2083.308349609375,757.1807250976562,377.531494140625,1571.204345703125,557.013671875,370.15875244140625,1537.2349853515625,354.943115234375,363.2373962402344,1504.7239990234375,118.99606323242188,317.3493347167969,1604.63525390625,-37.95683288574219,355.2065734863281,1509.454345703125,-209.56716918945312,303.88555908203125,1618.2646484375,-398.9039306640625,302.1808166503906,1613.3062744140625,-629.8267822265625,334.2079772949219,1621.2041015625,-830.1203002929688,351.19659423828125,1643.8739013671875,-1073.8304443359375,305.8282165527344,1729.6473388671875,-1212.368896484375,349.3578186035156,1656.193359375,-1595.165283203125,336.7664794921875,1813.95703125,2371.44775390625,547.4319458007812,2091.37890625,1156.7451171875,528.8143310546875,1695.8582763671875,957.5735473632812,545.7847900390625,1628.158447265625,757.1504516601562,562.5792236328125,1584.855712890625,-223.45718383789062,522.7532348632812,1566.387939453125,-423.80548095703125,560.7427978515625,1509.562255859375,-633.79833984375,487.39117431640625,1657.8388671875,-803.6729125976562,532.0357055664062,1636.50048828125,-996.2938232421875,536.111083984375,1634.8997802734375,-1263.9659423828125,474.43475341796875,1791.5233154296875,-1594.7322998046875,521.2134399414062,1827.4991455078125,2368.2265625,734.67333984375,2108.825439453125,1550.1485595703125,699.9121704101562,1843.9522705078125,1349.7418212890625,700.5365600585938,1802.0693359375,1152.1571044921875,712.57666015625,1736.811767578125,-990.47705078125,713.31494140625,1661.0343017578125,-1260.4552001953125,652.9463500976562,1780.9786376953125,-1428.2061767578125,679.9551391601562,1807.899169921875,-1594.2935791015625,707.3585205078125,1821.1871337890625,2365.001953125,922.0672607421875,2128.68115234375,1744.69921875,880.8604736328125,1930.0390625,1546.7772216796875,882.288818359375,1888.289306640625,-1593.8446044921875,897.3803100585938,1807.5660400390625,2361.762451171875,1110.37744140625,2141.29296875,1750.640625,1051.140380859375,1972.178466796875,-1593.38818359375,1090.6539306640625,1801.03369140625,2358.50439453125,1299.732421875,2144.9033203125,-1592.9322509765625,1283.885009765625,1796.7662353515625,2355.22509765625,1490.232177734375,2142.649169921875,-1592.4783935546875,1476.247802734375,1790.4979248046875,2351.92822265625,1681.9495849609375,2127.24072265625,2152.92236328125,1681.240966796875,2098.96337890625,1955.873779296875,1680.533935546875,2052.60595703125,1756.6505126953125,1679.8280029296875,2021.4913330078125,1555.9969482421875,1679.1190185546875,2006.3675537109375,1356.139892578125,1678.404052734375,1985.8541259765625,1157.2086181640625,1677.689697265625,1957.1451416015625,959.4077758789062,1676.9791259765625,1923.9073486328125,763.3624267578125,1676.275390625,1884.2960205078125,566.2616577148438,1675.573486328125,1853.9822998046875,369.15972900390625,1674.868408203125,1825.7144775390625,170.25424194335938,1674.1641845703125,1806.2281494140625,-34.39728927612305,1673.433837890625,1792.50146484375,-241.39263916015625,1672.6893310546875,1790.53125,-447.3729248046875,1671.955078125,1785.3988037109375,-636.5695190429688,1671.282470703125,1774.1357421875,-825.1199951171875,1670.611328125,1772.7750244140625,-1014.491455078125,1669.9334716796875,1778.235107421875,-1205.32373046875,1669.253662109375,1786.3619384765625,-1397.884765625,1668.5672607421875,1785.5780029296875,-1592.0260009765625,1667.875244140625,1785.3687744140625,1111.17919921875,-1435.4708251953125,2059.99072265625,1854.622802734375,-1396.1864013671875,2131.2373046875,1100.569580078125,-1243.6407470703125,2033.735595703125,894.1190185546875,-1271.61181640625,1985.8359375,26.800630569458008,-1360.8914794921875,1870.73876953125,-202.96697998046875,-1369.412353515625,1846.8609619140625,1841.5594482421875,-1179.6009521484375,2123.23876953125,1652.9901123046875,-1167.4951171875,2112.4423828125,1470.989990234375,-1143.7156982421875,2087.236328125,1298.548583984375,-1119.858154296875,2048.5732421875,884.88818359375,-1073.5321044921875,1959.7470703125,1295.246337890625,-904.0452270507812,1989.7640380859375,1093.2705078125,-928.7202758789062,1957.0919189453125,893.0773315429688,-944.3883666992188,1917.193603515625,686.155029296875,-967.0240478515625,1883.812744140625,-1029.136474609375,-923.1095581054688,1648.558837890625,679.0808715820312,-748.6704711914062,1825.827880859375,472.8890380859375,-797.0994873046875,1809.8114013671875,129.3717041015625,-682.7047119140625,1648.05029296875,-71.56818389892578,-662.2090454101562,1645.6826171875,-71.4224624633789,-662.2973022460938,1645.4248046875,-238.53211975097656,-630.8051147460938,1611.9908447265625,-229.0420684814453,-632.4744262695312,1623.2890625,-840.6488647460938,-716.0386962890625,1582.1285400390625,-1033.5367431640625,-723.4017944335938,1617.27294921875,-27.313753128051758,-484.6630859375,1580.8211669921875,-216.2796630859375,-461.61492919921875,1583.6134033203125,-660.512451171875,-493.3456726074219,1549.6451416015625,-855.0730590820312,-503.0226135253906,1568.576416015625,164.780029296875,-271.0435485839844,1564.4813232421875,-38.926265716552734,-274.4191589355469,1561.880126953125,-52.07283020019531,-248.7882080078125,1612.81689453125,-44.557220458984375,-269.364501953125,1585.4521484375,-225.88670349121094,-264.3791809082031,1567.233642578125,-217.36920166015625,-238.69699096679688,1614.1734619140625,-454.4173278808594,-277.33148193359375,1545.2613525390625,-436.66107177734375,-254.8063201904297,1589.90283203125,-660.8185424804688,-285.90435791015625,1533.77294921875,565.3657836914062,-45.603431701660156,1630.77587890625,364.2709655761719,-49.6772575378418,1583.087158203125,161.02487182617188,-52.58172607421875,1558.386474609375,115.67864990234375,-66.16270446777344,1577.16259765625,156.66403198242188,-67.96028900146484,1580.1376953125,-57.65717697143555,-62.65861511230469,1587.7479248046875,-461.1363220214844,-64.97245788574219,1625.80029296875,-861.8878784179688,-69.91209411621094,1633.6119384765625,-1061.40869140625,-73.7566909790039,1670.2738037109375,759.8660888671875,169.17945861816406,1688.5240478515625,555.9228515625,155.7542724609375,1646.702880859375,144.00115966796875,133.1961212158203,1576.0814208984375,96.83154296875,117.5593490600586,1594.345458984375,-76.87361145019531,115.09669494628906,1610.6766357421875,-252.84857177734375,116.45846557617188,1618.383544921875,-448.6706848144531,116.92544555664062,1625.8572998046875,-1042.2861328125,141.60284423828125,1654.5113525390625,746.6461181640625,298.85430908203125,1688.689453125,549.6956176757812,300.4219970703125,1623.6661376953125,351.0155334472656,306.0384216308594,1571.8441162109375,135.82554626464844,317.1307373046875,1558.865478515625,150.04310607910156,359.58013916015625,1497.850830078125,-65.21214294433594,309.2357177734375,1604.74755859375,-245.88571166992188,311.4403076171875,1609.7591552734375,-263.4823303222656,376.94732666015625,1574.95166015625,-230.5220947265625,353.1661071777344,1531.2021484375,-402.5167541503906,312.32501220703125,1628.8408203125,-408.51593017578125,322.54541015625,1596.37939453125,-635.7869873046875,309.3758850097656,1654.495849609375,-838.382568359375,327.8453674316406,1663.0662841796875,-1029.2647705078125,341.57867431640625,1679.5743408203125,-1020.9933471679688,350.33868408203125,1659.858154296875,-1260.094482421875,295.61785888671875,1769.6810302734375,1148.7730712890625,494.4111022949219,1775.07763671875,947.3921508789062,475.94732666015625,1742.31787109375,740.9081420898438,481.114990234375,1702.862060546875,-231.61488342285156,557.8028564453125,1511.58740234375,-415.4623107910156,530.0988159179688,1586.0030517578125,-607.9826049804688,542.1175537109375,1622.5152587890625,-615.0015258789062,564.8850708007812,1553.5606689453125,-828.7120361328125,510.4571838378906,1660.1558837890625,-806.4559936523438,550.9738159179688,1596.040283203125,-995.3449096679688,527.5985107421875,1658.08056640625,-1208.857421875,526.964111328125,1690.8643798828125,1542.5986328125,681.41845703125,1903.837646484375,1341.0826416015625,681.2322998046875,1847.7725830078125,1136.782470703125,678.7388916015625,1795.1822509765625,-1210.077392578125,702.926025390625,1707.5145263671875,1742.7421875,865.4310913085938,1964.462158203125,1537.4566650390625,862.6775512695312,1931.6109619140625,2414.391357421875,-1948.5203857421875,2138.822265625,2211.0302734375,-1947.6064453125,2140.585693359375,2007.898193359375,-1946.69287109375,2134.431396484375,1805.3450927734375,-1945.7818603515625,2126.005126953125,1603.27294921875,-1944.87353515625,2122.73583984375,1401.1546630859375,-1943.966064453125,2117.24755859375,1198.9393310546875,-1943.060546875,2105.669677734375,996.526123046875,-1942.1519775390625,2091.70703125,794.858642578125,-1941.221435546875,2068.483154296875,595.1129760742188,-1940.3370361328125,2032.281982421875,395.426025390625,-1939.428466796875,1993.17724609375,192.02281188964844,-1938.51025390625,1967.34130859375,-18.399845123291016,-1937.562744140625,1946.63525390625,-229.2135772705078,-1936.613037109375,1930.4227294921875,-437.4996032714844,-1935.677001953125,1927.57275390625,-631.7211303710938,-1934.8045654296875,1926.5279541015625,-824.01904296875,-1933.9400634765625,1921.3782958984375,-1016.7243041992188,-1933.0693359375,1901.2459716796875,-1209.3946533203125,-1932.194091796875,1871.2642822265625,-1403.3248291015625,-1931.3133544921875,1842.5626220703125,-1600.515869140625,-1930.42626953125,1834.2989501953125,2410.743896484375,-1736.6898193359375,2133.886962890625,2159.474609375,-1752.537353515625,2136.551513671875,1953.4130859375,-1752.137939453125,2128.608642578125,1769.86962890625,-1737.913818359375,2118.993408203125,1603.124755859375,-1710.490966796875,2116.851318359375,1446.140869140625,-1677.0889892578125,2110.396240234375,1274.5914306640625,-1659.03173828125,2102.921142578125,1057.229248046875,-1679.240966796875,2088.05712890625,824.5935668945312,-1704.1890869140625,2052.62744140625,589.8216552734375,-1726.5838623046875,2000.4796142578125,355.2390441894531,-1744.190673828125,1964.3597412109375,132.57452392578125,-1751.2296142578125,1943.5433349609375,-81.29888153076172,-1747.0968017578125,1931.9027099609375,-285.1009216308594,-1746.60498046875,1920.214111328125,-478.23516845703125,-1745.641357421875,1912.1802978515625,-654.2967529296875,-1739.575439453125,1905.6922607421875,-832.35205078125,-1731.0242919921875,1898.4781494140625,-1015.2904052734375,-1723.1976318359375,1878.7252197265625,-1203.2607421875,-1718.726318359375,1854.4888916015625,-1394.375,-1718.636474609375,1831.2476806640625,-1600.031005859375,-1724.6201171875,1829.97509765625,2407.112548828125,-1525.8546142578125,2129.684326171875,2114.47509765625,-1565.623779296875,2129.93798828125,1905.0146484375,-1569.5955810546875,2129.146728515625,1736.4600830078125,-1544.8563232421875,2124.47216796875,1589.398193359375,-1501.9425048828125,2118.82177734375,1462.007080078125,-1445.7149658203125,2109.6728515625,1344.65576171875,-1387.5733642578125,2099.3466796875,1136.482177734375,-1413.894287109375,2069.3369140625,858.5988159179688,-1484.2879638671875,2030.2064208984375,593.4630126953125,-1521.1480712890625,1976.507080078125,312.275146484375,-1559.2840576171875,1938.924560546875,69.93684387207031,-1568.36865234375,1917.9996337890625,-145.42408752441406,-1561.3892822265625,1912.0313720703125,-342.42095947265625,-1565.7796630859375,1897.06396484375,-518.2382202148438,-1561.1708984375,1883.532958984375,-677.3124389648438,-1548.234375,1875.462890625,-845.3875122070312,-1531.97607421875,1866.6839599609375,-1022.56005859375,-1518.0654296875,1848.0797119140625,-1206.896728515625,-1512.250244140625,1838.6962890625,-1396.7633056640625,-1513.336181640625,1827.565185546875,-1599.541015625,-1517.29931640625,1818.3697509765625,2403.4892578125,-1315.297119140625,2147.99072265625,2021.6502685546875,-1413.4195556640625,2157.109375,1822.0526123046875,-1412.654541015625,2138.67578125,1686.6336669921875,-1366.00537109375,2141.09765625,1544.8302001953125,-1314.6669921875,2121.01611328125,1403.2548828125,-1266.171630859375,2099.18408203125,1252.5244140625,-1239.4862060546875,2074.62451171875,1122.517333984375,-1234.8731689453125,2042.4886474609375,912.0310668945312,-1256.634033203125,2005.06396484375,601.2587280273438,-1321.0054931640625,1955.640869140625,240.94430541992188,-1366.4989013671875,1902.7777099609375,8.23162841796875,-1355.344482421875,1878.26904296875,-229.23507690429688,-1354.4049072265625,1845.5289306640625,-402.9381408691406,-1382.6878662109375,1875.1368408203125,-551.5985717773438,-1368.538818359375,1861.004638671875,-691.8680419921875,-1347.160400390625,1842.532470703125,-853.97802734375,-1324.4732666015625,1822.8802490234375,-1035.9215087890625,-1303.3365478515625,1809.1873779296875,-1218.9722900390625,-1300.33935546875,1812.0948486328125,-1402.991455078125,-1305.356201171875,1807.0240478515625,-1599.0533447265625,-1311.3009033203125,1799.4945068359375,2399.87646484375,-1104.90576171875,2170.75048828125,2083.53369140625,-1153.2882080078125,2166.043212890625,1832.9013671875,-1190.5198974609375,2150.904296875,1636.8006591796875,-1170.639404296875,2123.897216796875,1459.8248291015625,-1140.4654541015625,2085.87841796875,1284.182861328125,-1121.177978515625,2023.107177734375,1160.8592529296875,-1091.936767578125,2021.189697265625,1003.713134765625,-1091.372802734375,1981.2318115234375,893.532470703125,-1071.6365966796875,1973.6861572265625,684.9022216796875,-1084.6898193359375,1935.2088623046875,267.5107727050781,-1154.0089111328125,1868.5394287109375,6.989162445068359,-1118.1683349609375,1837.248046875,-256.583740234375,-1159.109619140625,1837.06396484375,-417.7076110839844,-1171.086669921875,1841.8017578125,-550.7300415039062,-1158.68017578125,1817.2911376953125,-690.2959594726562,-1143.03076171875,1781.0618896484375,-849.6316528320312,-1124.230224609375,1748.95556640625,-1029.713134765625,-1104.26416015625,1732.90185546875,-1230.2685546875,-1091.59326171875,1764.9993896484375,-1409.8878173828125,-1098.535400390625,1775.0111083984375,-1598.568359375,-1106.27783203125,1778.2225341796875,2396.2451171875,-893.8321533203125,2175.331298828125,2124.200439453125,-910.7940673828125,2163.364501953125,1889.5682373046875,-917.379150390625,2143.209228515625,1681.5257568359375,-910.1159057617188,2108.4755859375,1486.97509765625,-899.13916015625,2056.473388671875,1285.3365478515625,-918.4578857421875,2022.7047119140625,1088.6011962890625,-920.8859252929688,1944.7589111328125,881.861572265625,-942.2371826171875,1897.1749267578125,676.9286499023438,-954.8211669921875,1851.6865234375,502.2906188964844,-983.2685546875,1861.2239990234375,265.46160888671875,-955.9180908203125,1804.5814208984375,53.30527114868164,-871.706298828125,1755.4842529296875,-136.9113006591797,-871.6106567382812,1752.5830078125,-271.8981628417969,-871.1533203125,1730.350830078125,-509.1921081542969,-929.5098266601562,1742.1278076171875,-672.2607421875,-934.8240356445312,1692.2950439453125,-843.962890625,-928.99267578125,1659.4710693359375,-1066.115966796875,-882.4264526367188,1715.7423095703125,-1242.8310546875,-885.9954833984375,1713.62158203125,-1417.726806640625,-892.8919677734375,1733.2235107421875,-1598.085693359375,-901.4403076171875,1752.6690673828125,2392.62451171875,-683.3909912109375,2169.722900390625,2142.543212890625,-688.0623168945312,2154.477294921875,1918.3231201171875,-687.5147705078125,2122.56494140625,1710.7537841796875,-682.3521728515625,2067.414306640625,1512.7850341796875,-678.084228515625,2001.4490966796875,1316.5994873046875,-680.9932861328125,1936.275634765625,1112.5223388671875,-693.8997802734375,1884.907470703125,893.7677612304688,-714.9058227539062,1856.970703125,658.6680908203125,-787.2589111328125,1886.113037109375,477.912109375,-774.5222778320312,1788.9879150390625,285.99383544921875,-778.2477416992188,1743.2186279296875,99.90375518798828,-662.3587646484375,1695.7918701171875,-65.7897720336914,-685.7341918945312,1616.4332275390625,-230.37350463867188,-626.3834228515625,1594.7239990234375,-463.42974853515625,-699.5958862304688,1641.802001953125,-655.2676391601562,-716.7306518554688,1611.599365234375,-865.7846069335938,-682.8817749023438,1650.553466796875,-1064.4267578125,-684.9495239257812,1646.55810546875,-1249.41650390625,-678.6074829101562,1691.2113037109375,-1421.7689208984375,-687.2806396484375,1704.998291015625,-1597.60107421875,-695.4360961914062,1724.5621337890625,2389.01806640625,-473.787841796875,2158.34033203125,2149.0498046875,-476.6575622558594,2137.980712890625,1932.7315673828125,-473.2542724609375,2089.9990234375,1726.0013427734375,-469.77606201171875,2023.17529296875,1527.04736328125,-466.4695739746094,1952.4071044921875,1331.6318359375,-466.7117919921875,1885.6461181640625,1129.55712890625,-470.9355773925781,1839.5491943359375,919.9773559570312,-482.1375427246094,1804.66943359375,709.619873046875,-498.3754577636719,1779.494873046875,516.947509765625,-511.9040222167969,1729.8675537109375,337.2440490722656,-508.427978515625,1662.355712890625,152.07723999023438,-486.60784912109375,1622.623779296875,-38.16548156738281,-480.6101989746094,1602.2686767578125,-222.86944580078125,-468.9552001953125,1569.32861328125,-450.5975341796875,-484.5294189453125,1568.7052001953125,-667.3050537109375,-466.7561950683594,1606.0009765625,-867.978515625,-470.29669189453125,1638.2816162109375,-1069.322509765625,-474.49298095703125,1663.4945068359375,-1248.3602294921875,-476.3121032714844,1676.2198486328125,-1420.590087890625,-480.83709716796875,1688.0611572265625,-1597.1068115234375,-486.2554016113281,1705.9156494140625,2385.42333984375,-264.8402404785156,2139.82470703125,2153.784423828125,-268.9123229980469,2107.888671875,1941.3861083984375,-266.498779296875,2049.282470703125,1735.031982421875,-262.34271240234375,1985.48583984375,1534.9837646484375,-257.9402160644531,1915.3587646484375,1340.9169921875,-255.6369171142578,1844.8475341796875,1144.2750244140625,-255.0867919921875,1794.06787109375,942.5841064453125,-257.9674072265625,1753.149169921875,739.4313354492188,-264.8900146484375,1717.8426513671875,544.986328125,-273.45751953125,1661.494384765625,350.8749694824219,-275.0720520019531,1625.098876953125,151.72071838378906,-260.4110107421875,1590.5784912109375,-46.13902282714844,-264.3558044433594,1587.294921875,-227.0731658935547,-263.3388977050781,1553.045654296875,-404.7784423828125,-251.10121154785156,1624.302734375,-664.9810180664062,-255.1437530517578,1595.7841796875,-877.6513061523438,-273.7493896484375,1630.124267578125,-1068.4056396484375,-275.6169738769531,1665.4739990234375,-1245.48193359375,-276.24078369140625,1683.8236083984375,-1419.38623046875,-277.6671447753906,1699.2879638671875,-1596.6099853515625,-275.8015441894531,1719.7099609375,2381.84619140625,-56.922203063964844,2116.71142578125,2156.477294921875,-61.557472229003906,2077.16259765625,1949.436767578125,-63.28998565673828,2006.32763671875,1743.3626708984375,-59.827022552490234,1947.445556640625,1541.896240234375,-54.43360137939453,1885.693359375,1346.507080078125,-49.1554069519043,1815.869384765625,1151.6051025390625,-43.343753814697266,1760.86328125,954.4773559570312,-36.57964324951172,1723.6357421875,758.420166015625,-38.94005584716797,1684.25390625,565.3380126953125,-40.29642105102539,1637.8309326171875,361.3802795410156,-47.4112663269043,1602.3770751953125,144.46168518066406,-71.04541778564453,1600.2286376953125,-70.83924102783203,-53.63946533203125,1611.5657958984375,-247.76039123535156,-59.3836669921875,1616.8297119140625,-484.3044738769531,-63.31241226196289,1601.3812255859375,-676.0949096679688,-70.3551254272461,1619.2979736328125,-872.140380859375,-74.1423568725586,1657.77001953125,-1054.43310546875,-66.22669219970703,1644.091796875,-1244.857177734375,-78.54637145996094,1707.39306640625,-1419.7410888671875,-79.73253631591797,1737.28466796875,-1596.1220703125,-69.04293823242188,1757.377685546875,2378.26708984375,151.07395935058594,2102.5947265625,2158.20947265625,143.3446044921875,2056.66455078125,1954.739501953125,138.7072296142578,1982.646728515625,1750.435302734375,138.78329467773438,1922.4246826171875,1546.761474609375,142.99365234375,1871.29296875,1347.4951171875,149.8394775390625,1815.8297119140625,1152.497802734375,159.71485900878906,1763.48291015625,962.3682250976562,188.57977294921875,1723.064697265625,761.3278198242188,166.9516143798828,1688.622314453125,556.8864135742188,155.60433959960938,1662.8992919921875,356.24761962890625,138.5051727294922,1616.2542724609375,97.76824188232422,119.18164825439453,1587.3759765625,-75.4371337890625,112.9703140258789,1612.872314453125,-254.26589965820312,110.42750549316406,1613.7303466796875,-464.98895263671875,117.57207489013672,1609.9478759765625,-660.7952270507812,127.04727935791016,1635.471435546875,-853.0647583007812,131.1612548828125,1657.640380859375,-1067.4521484375,116.77666473388672,1703.5748291015625,-1251.342041015625,111.9482421875,1735.55615234375,-1423.954833984375,115.85700225830078,1773.5340576171875,-1595.636962890625,135.4834442138672,1795.3385009765625,2374.73779296875,356.2255554199219,2098.25341796875,2158.93994140625,343.1512451171875,2054.11328125,1957.6710205078125,335.2652587890625,1980.360107421875,1752.6180419921875,332.4620361328125,1927.08203125,1547.116943359375,333.42205810546875,1885.0042724609375,1345.3250732421875,337.56756591796875,1834.604248046875,1150.013427734375,341.4035949707031,1774.7708740234375,955.7274169921875,338.0163879394531,1727.4112548828125,757.1807250976562,377.531494140625,1571.204345703125,556.4667358398438,369.4805908203125,1537.8990478515625,353.27923583984375,361.47943115234375,1506.56591796875,113.38870239257812,314.84521484375,1611.9871826171875,-41.19203186035156,353.6883544921875,1514.447265625,-210.359375,301.86895751953125,1623.6748046875,-398.4160461425781,299.48223876953125,1617.5286865234375,-628.9095458984375,331.1388854980469,1624.2576904296875,-831.3628540039062,348.0312805175781,1647.7783203125,-1076.21044921875,302.2724914550781,1734.2882080078125,-1214.146728515625,346.1019592285156,1660.6666259765625,-1428.4080810546875,309.1294250488281,1798.614990234375,-1595.165283203125,336.7230529785156,1818.9329833984375,2371.45556640625,546.9906005859375,2105.47998046875,2159.885009765625,524.820068359375,2058.16796875,1958.7874755859375,511.8619689941406,1990.0299072265625,1752.0499267578125,506.0270690917969,1944.8883056640625,1545.04248046875,505.7122802734375,1903.73486328125,1343.2176513671875,504.16693115234375,1847.4112548828125,1155.590576171875,525.57568359375,1701.9268798828125,956.7164306640625,543.5336303710938,1631.57666015625,756.544921875,561.5570068359375,1586.946533203125,554.8416137695312,550.8155517578125,1562.7896728515625,352.5814514160156,542.439697265625,1538.3878173828125,155.9781036376953,544.7169189453125,1530.1138916015625,-36.11489486694336,553.0730590820312,1523.6671142578125,-224.1990966796875,520.0941162109375,1571.585693359375,-423.1854553222656,559.4310302734375,1512.5982666015625,-634.2993774414062,483.7997131347656,1661.94921875,-802.9529418945312,529.3917236328125,1640.724609375,-995.8428344726562,533.9767456054688,1638.6392822265625,-1266.961181640625,471.8834228515625,1796.778564453125,-1436.716796875,487.9447937011719,1817.7537841796875,-1594.7322998046875,521.244384765625,1831.7923583984375,2368.23291015625,734.3037109375,2122.2431640625,2160.7138671875,701.9497680664062,2072.751953125,1958.1143798828125,682.9180297851562,2015.1868896484375,1749.17431640625,678.4110107421875,1968.1092529296875,1548.3521728515625,696.4337768554688,1854.4942626953125,1347.8583984375,696.906494140625,1812.1761474609375,1150.4866943359375,709.097900390625,1745.4765625,953.3663940429688,725.1124267578125,1677.5013427734375,753.5531005859375,731.0675048828125,1639.1258544921875,553.1064453125,728.6765747070312,1606.4898681640625,353.4847717285156,727.554931640625,1584.56787109375,159.2923126220703,733.0768432617188,1570.568359375,-32.47206497192383,740.77197265625,1552.10888671875,-229.36114501953125,743.575927734375,1553.9248046875,-426.4046630859375,746.7149658203125,1549.291748046875,-619.208251953125,745.4021606445312,1580.896240234375,-809.429443359375,728.8563232421875,1622.4708251953125,-990.1495971679688,710.256591796875,1666.1739501953125,-1264.080078125,650.7269897460938,1786.7958984375,-1431.5943603515625,678.568359375,1813.4158935546875,-1594.2935791015625,707.4029541015625,1824.4932861328125,2365.007080078125,921.7738037109375,2141.4033203125,2159.11767578125,881.2376098632812,2093.822021484375,1960.4432373046875,855.5502319335938,2032.73046875,1743.7200927734375,876.760009765625,1942.0478515625,1545.5657958984375,878.4857788085938,1899.8114013671875,1347.7818603515625,889.8405151367188,1831.755859375,1150.19287109375,898.20849609375,1771.6234130859375,952.0948486328125,904.9195556640625,1721.72314453125,752.9591064453125,907.6953125,1684.222412109375,553.689697265625,908.2140502929688,1653.9730224609375,356.11993408203125,911.1708374023438,1632.2442626953125,161.6247100830078,916.1824340820312,1619.2890625,-34.65254211425781,923.014892578125,1602.1744384765625,-232.52474975585938,925.8680419921875,1597.143310546875,-431.844482421875,921.9815063476562,1618.205810546875,-621.186279296875,917.1681518554688,1646.278076171875,-811.7711181640625,908.758544921875,1672.619873046875,-1006.79248046875,896.195556640625,1688.343017578125,-1211.562744140625,885.3299560546875,1712.892578125,-1407.398193359375,884.2791748046875,1772.4769287109375,-1593.8446044921875,897.4000244140625,1810.61328125,2361.764892578125,1110.2301025390625,2152.468994140625,2153.8046875,1070.306396484375,2106.510498046875,1956.6162109375,1044.546630859375,2043.9486083984375,1750.24462890625,1046.0224609375,1984.6455078125,1545.27978515625,1069.2110595703125,1919.466796875,1348.5933837890625,1080.1864013671875,1856.185791015625,1151.609375,1086.1834716796875,1803.8812255859375,953.9530029296875,1088.1929931640625,1762.99169921875,756.0464477539062,1088.5257568359375,1728.36474609375,557.162353515625,1089.2239990234375,1704.92822265625,359.52166748046875,1093.514892578125,1682.859130859375,162.58839416503906,1097.3228759765625,1672.7010498046875,-37.158721923828125,1100.441650390625,1665.3658447265625,-237.7346649169922,1100.381591796875,1669.199462890625,-438.5,1098.019287109375,1680.0067138671875,-627.1707153320312,1093.490234375,1694.96240234375,-817.0133666992188,1088.3106689453125,1705.0738525390625,-1009.939453125,1082.4632568359375,1712.7115478515625,-1205.4808349609375,1079.3846435546875,1731.7506103515625,-1397.931396484375,1080.6202392578125,1771.7578125,-1593.38818359375,1090.6646728515625,1804.01611328125,2358.505615234375,1299.6641845703125,2154.5712890625,2149.1611328125,1268.00048828125,2112.663818359375,1949.6895751953125,1251.4915771484375,2054.736083984375,1746.9166259765625,1253.416259765625,2000.6903076171875,1547.525634765625,1265.056640625,1941.886474609375,1351.122802734375,1274.4892578125,1883.5130615234375,1153.228759765625,1276.231201171875,1848.7481689453125,956.4620971679688,1275.7664794921875,1813.8963623046875,760.2859497070312,1274.4825439453125,1779.46630859375,562.26025390625,1275.110595703125,1755.669921875,363.0352478027344,1278.2474365234375,1737.1075439453125,163.63816833496094,1279.3438720703125,1730.5430908203125,-39.52161407470703,1280.36669921875,1724.344482421875,-242.0188446044922,1280.287353515625,1723.6968994140625,-444.308837890625,1279.288818359375,1725.427734375,-632.558837890625,1275.7056884765625,1732.216064453125,-821.4546508789062,1273.2430419921875,1730.70068359375,-1011.5217895507812,1271.327880859375,1735.6529541015625,-1201.8515625,1271.1058349609375,1754.960693359375,-1392.090576171875,1275.304443359375,1777.7530517578125,-1592.9322509765625,1283.8968505859375,1799.979248046875,2355.225830078125,1490.1763916015625,2152.284423828125,2149.413818359375,1468.020263671875,2111.739013671875,1949.7645263671875,1460.6397705078125,2060.465576171875,1748.9359130859375,1460.7218017578125,2020.4852294921875,1548.6715087890625,1464.7332763671875,1985.7662353515625,1351.7818603515625,1469.0032958984375,1940.828125,1154.84130859375,1469.985107421875,1906.1905517578125,958.0975341796875,1467.4715576171875,1876.02001953125,763.3003540039062,1466.38720703125,1838.60595703125,567.92822265625,1467.6890869140625,1806.032470703125,367.6064453125,1470.1356201171875,1786.65771484375,164.60426330566406,1469.4307861328125,1777.25048828125,-40.81418228149414,1467.96435546875,1767.4075927734375,-244.49008178710938,1467.8502197265625,1763.648193359375,-446.4477233886719,1467.3189697265625,1762.6109619140625,-636.2742919921875,1465.3985595703125,1757.0443115234375,-824.41845703125,1464.836181640625,1747.891357421875,-1012.5262451171875,1463.6793212890625,1759.3759765625,-1200.0589599609375,1464.250732421875,1774.1146240234375,-1388.970703125,1468.373291015625,1780.9775390625,-1592.4783935546875,1476.255126953125,1793.716796875,2351.92822265625,1681.9495849609375,2137.517578125,2152.88037109375,1681.240966796875,2109.364990234375,1955.930908203125,1680.533935546875,2062.54150390625,1756.5771484375,1679.8280029296875,2032.2266845703125,1555.7327880859375,1679.1190185546875,2018.6416015625,1355.918701171875,1678.404052734375,1997.3388671875,1157.1114501953125,1677.689697265625,1967.2967529296875,959.44189453125,1676.9791259765625,1932.892578125,763.5039672851562,1676.275390625,1892.4315185546875,566.3661499023438,1675.573486328125,1862.084228515625,369.306396484375,1674.868408203125,1833.128173828125,170.4622039794922,1674.1650390625,1812.09716796875,-34.192588806152344,1673.4345703125,1797.906494140625,-241.24290466308594,1672.6893310546875,1796.6650390625,-447.2459411621094,1671.955078125,1791.010986328125,-636.4359130859375,1671.28271484375,1778.5908203125,-825.0155639648438,1670.6116943359375,1776.4989013671875,-1014.4228515625,1669.9334716796875,1781.6279296875,-1205.2821044921875,1669.253662109375,1789.7806396484375,-1397.8643798828125,1668.5672607421875,1788.8402099609375,-1592.0260009765625,1667.875244140625,1788.4281005859375,1122.193359375,-1427.7208251953125,2078.4619140625,1842.368896484375,-1403.25537109375,2150.708984375,1110.8544921875,-1237.4482421875,2052.061767578125,904.1610717773438,-1267.5362548828125,2004.8021240234375,5.784761428833008,-1367.4078369140625,1895.083984375,-226.7556610107422,-1376.7078857421875,1872.389404296875,1828.13720703125,-1186.9088134765625,2142.547607421875,1641.133544921875,-1172.9571533203125,2129.36767578125,1460.9683837890625,-1147.2801513671875,2102.380126953125,1291.3665771484375,-1121.4683837890625,2060.9794921875,893.9507446289062,-1070.957275390625,1977.2705078125,1287.568115234375,-905.7855834960938,2001.3302001953125,1085.691162109375,-931.4769287109375,1968.2562255859375,884.82421875,-948.81494140625,1929.6416015625,676.3907470703125,-973.9276123046875,1898.57763671875,-1030.8861083984375,-923.18017578125,1652.75732421875,668.4536743164062,-755.8302612304688,1838.69970703125,462.61614990234375,-806.6986083984375,1823.4058837890625,123.31059265136719,-682.0059204101562,1655.9166259765625,-75.73556518554688,-659.6842041015625,1653.0589599609375,-75.46276092529297,-659.8494873046875,1652.5760498046875,-238.73483276367188,-627.378173828125,1615.4915771484375,-228.6127471923828,-628.3434448242188,1628.306884765625,-842.0043334960938,-715.6029052734375,1586.8038330078125,-1034.3277587890625,-723.4207153320312,1620.3319091796875,-29.242694854736328,-484.11553955078125,1584.001220703125,-216.14906311035156,-458.993896484375,1586.0362548828125,-661.467041015625,-492.11480712890625,1554.619873046875,-856.4837646484375,-501.89892578125,1574.0897216796875,162.5944061279297,-270.04864501953125,1568.94189453125,-41.52669906616211,-273.70135498046875,1566.588134765625,-53.69281005859375,-247.72854614257812,1616.1409912109375,-46.759830474853516,-268.4204406738281,1589.4244384765625,-226.154052734375,-262.76617431640625,1569.29296875,-216.71060180664062,-236.53192138671875,1617.7467041015625,-454.1531677246094,-276.3233947753906,1547.8125,-436.2437438964844,-253.0689697265625,1594.1439208984375,-661.2464599609375,-284.7011413574219,1537.7608642578125,563.5704345703125,-43.01271438598633,1636.4686279296875,362.11834716796875,-47.22431182861328,1588.9239501953125,158.59405517578125,-50.60064697265625,1564.1708984375,111.87042236328125,-65.98846435546875,1581.8021240234375,153.43272399902344,-67.52383422851562,1586.1888427734375,-60.8633918762207,-61.446746826171875,1592.54248046875,-458.51123046875,-64.86164093017578,1630.1695556640625,-863.4179077148438,-70.55138397216797,1638.3189697265625,-1062.8367919921875,-74.22246551513672,1673.7005615234375,759.3255004882812,171.82383728027344,1692.7205810546875,554.7828369140625,158.29959106445312,1651.518310546875,140.94760131835938,131.79478454589844,1582.01220703125,92.06866455078125,116.09744262695312,1600.9881591796875,-79.8552017211914,113.98963165283203,1616.6514892578125,-254.76495361328125,115.14067077636719,1624.3133544921875,-447.19940185546875,114.5804214477539,1629.38330078125,-1043.9697265625,139.30349731445312,1658.531494140625,746.405029296875,298.325439453125,1689.3082275390625,549.0569458007812,299.0737609863281,1625.0733642578125,349.8769226074219,304.4361572265625,1573.720703125,133.51170349121094,314.5918884277344,1562.88330078125,146.81285095214844,357.3515930175781,1501.4268798828125,-68.68679809570312,306.95208740234375,1612.267578125,-248.33346557617188,308.4676818847656,1617.3045654296875,-264.11468505859375,374.40228271484375,1579.9110107421875,-232.86508178710938,351.85040283203125,1536.2081298828125,-402.7314453125,309.81787109375,1632.493896484375,-408.4124755859375,319.8735046386719,1601.0589599609375,-636.1845092773438,306.2386169433594,1658.50927734375,-839.9779663085938,325.4292297363281,1665.7506103515625,-1030.9666748046875,338.37347412109375,1683.3431396484375,-1022.4313354492188,346.8456726074219,1664.110595703125,-1262.605712890625,292.54931640625,1774.4256591796875,1147.614501953125,491.4031066894531,1781.8143310546875,946.5042724609375,472.6279296875,1747.6781005859375,740.0577392578125,478.8632507324219,1706.116455078125,-233.00595092773438,556.4305419921875,1515.7989501953125,-414.4008483886719,528.2903442382812,1590.005859375,-606.232666015625,540.124755859375,1626.63134765625,-613.2822265625,564.2095947265625,1555.8409423828125,-829.9754028320312,507.56805419921875,1663.152587890625,-805.4716186523438,549.5524291992188,1598.982177734375,-994.8558349609375,524.4063110351562,1662.7415771484375,-1211.5955810546875,523.8291015625,1695.857177734375,1540.9752197265625,677.6118774414062,1914.9013671875,1339.5255126953125,677.5596923828125,1857.198486328125,1135.4532470703125,675.1299438476562,1802.7982177734375,-1213.350830078125,699.5059814453125,1713.6678466796875,1741.667236328125,860.968505859375,1976.85693359375,1536.155517578125,858.310302734375,1943.9515380859375]"),DiscreteProperty_Points_namespaceObject=__webpack_require__.t(Points_namespaceObject,2),Polys_namespaceObject=JSON.parse("[4,0,21,508,487,4,0,487,488,1,4,0,1,22,21,4,487,508,758,737,4,487,737,738,488,4,737,758,1008,987,4,737,987,988,738,4,987,1008,1258,1237,4,987,1237,1238,988,4,1237,1258,1508,1487,4,1237,1487,1488,1238,4,1487,1508,1758,1737,4,1487,1737,1738,1488,4,1737,1758,2008,1987,4,1737,1987,1988,1738,4,1987,2008,2258,2237,4,1987,2237,2238,1988,4,2237,2258,2508,2487,4,2237,2487,2488,2238,4,2487,2508,2758,2737,4,2487,2737,2738,2488,4,2737,2758,3008,2987,4,2737,2987,2988,2738,4,2987,3008,3258,3237,4,2987,3237,3238,2988,4,3237,3258,3259,3238,4,21,42,510,508,4,21,22,43,42,4,508,510,760,758,4,758,760,1010,1008,4,1008,1010,1260,1258,4,1258,1260,1510,1508,4,1508,1510,1760,1758,4,1758,1760,2010,2008,4,2008,2010,2260,2258,4,2258,2260,2510,2508,4,2508,2510,2760,2758,4,2758,2760,3010,3008,4,3008,3010,3279,3258,4,3258,3279,3280,3259,4,42,63,514,510,4,42,43,64,63,4,510,514,764,760,4,760,764,1014,1010,4,1010,1014,1264,1260,4,1260,1264,1514,1510,4,1510,1514,1764,1760,4,1760,1764,2014,2010,4,2010,2014,2264,2260,4,2260,2264,2514,2510,4,2510,2514,2764,2760,4,2760,2764,3014,3010,4,3010,3014,3300,3279,4,3279,3300,3301,3280,4,63,84,523,514,4,63,64,85,84,4,514,523,773,764,4,764,773,1023,1014,4,1014,1023,1273,1264,4,1264,1273,1523,1514,4,1514,1523,1773,1764,4,1764,1773,2023,2014,4,2014,2023,2273,2264,4,2264,2273,2523,2514,4,2514,2523,2773,2764,4,2764,2773,3023,3014,4,3014,3023,3321,3300,4,3300,3321,3322,3301,4,84,105,533,523,4,84,85,106,105,4,523,533,783,773,4,773,783,1033,1023,4,1023,1033,1283,1273,4,1273,1283,1533,1523,4,1523,1533,1783,1773,4,1773,1783,2033,2023,4,2023,2033,2283,2273,4,2273,2283,2533,2523,4,2523,2533,2783,2773,4,2773,2783,3033,3023,4,3023,3033,3342,3321,4,3321,3342,3343,3322,4,105,126,542,533,4,105,106,127,126,4,533,542,792,783,4,783,792,1042,1033,4,1033,1042,1292,1283,4,1283,1292,1542,1533,4,1533,1542,1792,1783,4,1783,1792,2042,2033,4,2033,2042,2292,2283,4,2283,2292,2542,2533,4,2533,2542,2792,2783,4,2783,2792,3042,3033,4,3033,3042,3363,3342,4,3342,3363,3364,3343,4,126,147,552,542,4,126,127,148,147,4,542,552,802,792,4,792,802,1052,1042,4,1042,1052,1302,1292,4,1292,1302,1552,1542,4,1542,1552,1802,1792,4,1792,1802,2052,2042,4,2042,2052,2302,2292,4,2292,2302,2552,2542,4,2542,2552,2802,2792,4,2792,2802,3052,3042,4,3042,3052,3384,3363,4,3363,3384,3385,3364,4,147,168,558,552,4,147,148,169,168,4,552,558,808,802,4,802,808,1058,1052,4,1052,1058,1308,1302,4,1302,1308,1558,1552,4,1552,1558,1808,1802,4,1802,1808,2058,2052,4,2052,2058,2308,2302,4,2302,2308,2558,2552,4,2552,2558,2808,2802,4,2802,2808,3058,3052,4,3052,3058,3405,3384,4,3384,3405,3406,3385,4,168,189,566,558,4,168,169,190,189,4,558,566,816,808,4,808,816,1066,1058,4,1058,1066,1316,1308,4,1308,1316,1566,1558,4,1558,1566,1816,1808,4,1808,1816,2066,2058,4,2058,2066,2316,2308,4,2308,2316,2566,2558,4,2558,2566,2816,2808,4,2808,2816,3066,3058,4,3058,3066,3426,3405,4,3405,3426,3427,3406,4,189,210,575,566,4,189,190,211,210,4,566,575,825,816,4,816,825,1075,1066,4,1066,1075,1325,1316,4,1316,1325,1575,1566,4,1566,1575,1825,1816,4,1816,1825,2075,2066,4,2066,2075,2325,2316,4,2316,2325,2575,2566,4,2566,2575,2825,2816,4,2816,2825,3075,3066,4,3066,3075,3447,3426,4,3426,3447,3448,3427,4,210,231,585,575,4,210,211,232,231,4,575,585,835,825,4,825,835,1085,1075,4,1075,1085,1335,1325,4,1325,1335,1585,1575,4,1575,1585,1835,1825,4,1825,1835,2085,2075,4,2075,2085,2335,2325,4,2325,2335,2585,2575,4,2575,2585,2835,2825,4,2825,2835,3085,3075,4,3075,3085,3468,3447,4,3447,3468,3469,3448,4,231,252,598,585,4,231,232,253,252,4,585,598,848,835,4,835,848,1098,1085,4,1085,1098,1348,1335,4,1335,1348,1598,1585,4,1585,1598,1848,1835,4,1835,1848,2098,2085,4,2085,2098,2348,2335,4,2335,2348,2598,2585,4,2585,2598,2848,2835,4,2835,2848,3098,3085,4,3085,3098,3489,3468,4,3468,3489,3490,3469,4,252,273,609,598,4,252,253,274,273,4,598,609,859,848,4,848,859,1109,1098,4,1098,1109,1359,1348,4,1348,1359,1609,1598,4,1598,1609,1859,1848,4,1848,1859,2109,2098,4,2098,2109,2359,2348,4,2348,2359,2609,2598,4,2598,2609,2859,2848,4,2848,2859,3109,3098,4,3098,3109,3510,3489,4,3489,3510,3511,3490,4,273,294,617,609,4,273,274,295,294,4,609,617,867,859,4,859,867,1117,1109,4,1109,1117,1367,1359,4,1359,1367,1617,1609,4,1609,1617,1867,1859,4,1859,1867,2117,2109,4,2109,2117,2367,2359,4,2359,2367,2617,2609,4,2609,2617,2867,2859,4,2859,2867,3117,3109,4,3109,3117,3531,3510,4,3510,3531,3532,3511,4,294,315,621,617,4,294,295,316,315,4,617,621,871,867,4,867,871,1121,1117,4,1117,1121,1371,1367,4,1367,1371,1621,1617,4,1617,1621,1871,1867,4,1867,1871,2121,2117,4,2117,2121,2371,2367,4,2367,2371,2621,2617,4,2617,2621,2871,2867,4,2867,2871,3121,3117,4,3117,3121,3552,3531,4,3531,3552,3553,3532,4,315,336,624,621,4,315,316,337,336,4,621,624,874,871,4,871,874,1124,1121,4,1121,1124,1374,1371,4,1371,1374,1624,1621,4,1621,1624,1874,1871,4,1871,1874,2124,2121,4,2121,2124,2374,2371,4,2371,2374,2624,2621,4,2621,2624,2874,2871,4,2871,2874,3124,3121,4,3121,3124,3573,3552,4,3552,3573,3574,3553,4,336,357,626,624,4,336,337,358,357,4,624,626,876,874,4,874,876,1126,1124,4,1124,1126,1376,1374,4,1374,1376,1626,1624,4,1624,1626,1876,1874,4,1874,1876,2126,2124,4,2124,2126,2376,2374,4,2374,2376,2626,2624,4,2624,2626,2876,2874,4,2874,2876,3126,3124,4,3124,3126,3594,3573,4,3573,3594,3595,3574,4,357,378,628,626,4,378,628,629,379,4,357,358,379,378,4,626,628,878,876,4,628,878,879,629,4,876,878,1128,1126,4,878,1128,1129,879,4,1126,1128,1378,1376,4,1128,1378,1379,1129,4,1376,1378,1628,1626,4,1378,1628,1629,1379,4,1626,1628,1878,1876,4,1628,1878,1879,1629,4,1876,1878,2128,2126,4,1878,2128,2129,1879,4,2126,2128,2378,2376,4,2128,2378,2379,2129,4,2376,2378,2628,2626,4,2378,2628,2629,2379,4,2626,2628,2878,2876,4,2628,2878,2879,2629,4,2876,2878,3128,3126,4,2878,3128,3129,2879,4,3126,3128,3615,3594,4,3128,3615,3616,3129,4,3594,3615,3616,3595,4,1,488,489,2,4,1,2,23,22,4,488,738,739,489,4,738,988,989,739,4,988,1238,1239,989,4,1238,1488,1489,1239,4,1488,1738,1739,1489,4,1738,1988,1989,1739,4,1988,2238,2239,1989,4,2238,2488,2489,2239,4,2488,2738,2739,2489,4,2738,2988,2989,2739,4,2988,3238,3239,2989,4,3238,3259,3260,3239,4,22,23,44,43,4,3259,3280,3281,3260,4,64,515,650,400,4,43,44,400,64,4,515,765,900,650,4,765,1015,1150,900,4,1015,1265,1400,1150,4,1265,1515,1650,1400,4,1515,1765,1900,1650,4,1765,2015,2150,1900,4,2015,2265,2400,2150,4,2265,2515,2650,2400,4,2515,2765,2900,2650,4,2765,3015,3150,2900,4,3015,3301,3637,3150,4,3280,3301,3637,3281,4,65,516,655,405,4,64,515,516,65,4,64,65,405,85,4,516,766,905,655,4,515,765,766,516,4,766,1016,1155,905,4,765,1015,1016,766,4,1016,1266,1405,1155,4,1015,1265,1266,1016,4,1266,1516,1655,1405,4,1265,1515,1516,1266,4,1516,1766,1905,1655,4,1515,1765,1766,1516,4,1766,2016,2155,1905,4,1765,2015,2016,1766,4,2016,2266,2405,2155,4,2015,2265,2266,2016,4,2266,2516,2655,2405,4,2265,2515,2516,2266,4,2516,2766,2905,2655,4,2515,2765,2766,2516,4,2766,3016,3155,2905,4,2765,3015,3016,2766,4,3016,3302,3642,3155,4,3015,3301,3302,3016,4,3301,3322,3642,3302,4,85,405,107,106,4,3322,3343,3344,3642,4,106,107,128,127,4,3343,3364,3365,3344,4,127,128,149,148,4,3364,3385,3386,3365,4,148,149,170,169,4,3385,3406,3407,3386,4,169,170,191,190,4,3406,3427,3428,3407,4,190,191,212,211,4,3427,3448,3449,3428,4,211,212,233,232,4,3448,3469,3470,3449,4,232,233,254,253,4,3469,3490,3491,3470,4,253,254,275,274,4,3490,3511,3512,3491,4,274,275,296,295,4,3511,3532,3533,3512,4,295,296,317,316,4,3532,3553,3554,3533,4,316,317,338,337,4,3553,3574,3575,3554,4,337,338,359,358,4,3574,3595,3596,3575,4,379,629,630,380,4,358,359,380,379,4,629,879,880,630,4,879,1129,1130,880,4,1129,1379,1380,1130,4,1379,1629,1630,1380,4,1629,1879,1880,1630,4,1879,2129,2130,1880,4,2129,2379,2380,2130,4,2379,2629,2630,2380,4,2629,2879,2880,2630,4,2879,3129,3130,2880,4,3129,3616,3617,3130,4,3595,3616,3617,3596,4,2,489,490,3,4,2,3,24,23,4,489,739,740,490,4,739,989,990,740,4,989,1239,1240,990,4,1239,1489,1490,1240,4,1489,1739,1740,1490,4,1739,1989,1990,1740,4,1989,2239,2240,1990,4,2239,2489,2490,2240,4,2489,2739,2740,2490,4,2739,2989,2990,2740,4,2989,3239,3240,2990,4,3239,3260,3261,3240,4,23,24,45,44,4,3260,3281,3282,3261,4,44,45,66,400,4,3281,3637,3303,3282,4,400,86,524,650,4,86,524,656,406,4,400,66,406,86,4,650,524,774,900,4,524,774,906,656,4,900,774,1024,1150,4,774,1024,1156,906,4,1150,1024,1274,1400,4,1024,1274,1406,1156,4,1400,1274,1524,1650,4,1274,1524,1656,1406,4,1650,1524,1774,1900,4,1524,1774,1906,1656,4,1900,1774,2024,2150,4,1774,2024,2156,1906,4,2150,2024,2274,2400,4,2024,2274,2406,2156,4,2400,2274,2524,2650,4,2274,2524,2656,2406,4,2650,2524,2774,2900,4,2524,2774,2906,2656,4,2900,2774,3024,3150,4,2774,3024,3156,2906,4,3150,3024,3323,3637,4,3024,3323,3643,3156,4,3637,3323,3643,3303,4,405,655,525,87,4,405,87,108,107,4,655,905,775,525,4,905,1155,1025,775,4,1155,1405,1275,1025,4,1405,1655,1525,1275,4,1655,1905,1775,1525,4,1905,2155,2025,1775,4,2155,2405,2275,2025,4,2405,2655,2525,2275,4,2655,2905,2775,2525,4,2905,3155,3025,2775,4,3155,3642,3324,3025,4,3642,3344,3345,3324,4,107,108,129,128,4,3344,3365,3366,3345,4,128,129,150,149,4,3365,3386,3387,3366,4,149,150,171,170,4,3386,3407,3408,3387,4,170,171,192,191,4,3407,3428,3429,3408,4,191,192,213,212,4,3428,3449,3450,3429,4,212,213,234,233,4,3449,3470,3471,3450,4,233,234,255,254,4,3470,3491,3492,3471,4,254,255,276,275,4,3491,3512,3513,3492,4,275,276,485,296,4,3512,3533,3722,3513,4,485,735,622,318,4,296,485,318,317,4,735,985,872,622,4,985,1235,1122,872,4,1235,1485,1372,1122,4,1485,1735,1622,1372,4,1735,1985,1872,1622,4,1985,2235,2122,1872,4,2235,2485,2372,2122,4,2485,2735,2622,2372,4,2735,2985,2872,2622,4,2985,3235,3122,2872,4,3235,3722,3555,3122,4,3533,3554,3555,3722,4,317,318,339,338,4,3554,3575,3576,3555,4,338,339,360,359,4,3575,3596,3597,3576,4,380,630,631,381,4,359,360,381,380,4,630,880,881,631,4,880,1130,1131,881,4,1130,1380,1381,1131,4,1380,1630,1631,1381,4,1630,1880,1881,1631,4,1880,2130,2131,1881,4,2130,2380,2381,2131,4,2380,2630,2631,2381,4,2630,2880,2881,2631,4,2880,3130,3131,2881,4,3130,3617,3618,3131,4,3596,3617,3618,3597,4,3,490,491,4,4,3,4,25,24,4,490,740,741,491,4,740,990,991,741,4,990,1240,1241,991,4,1240,1490,1491,1241,4,1490,1740,1741,1491,4,1740,1990,1991,1741,4,1990,2240,2241,1991,4,2240,2490,2491,2241,4,2490,2740,2741,2491,4,2740,2990,2991,2741,4,2990,3240,3241,2991,4,3240,3261,3262,3241,4,24,25,46,45,4,3261,3282,3283,3262,4,45,46,67,66,4,3282,3303,3304,3283,4,406,656,657,407,4,66,67,407,406,4,656,906,907,657,4,906,1156,1157,907,4,1156,1406,1407,1157,4,1406,1656,1657,1407,4,1656,1906,1907,1657,4,1906,2156,2157,1907,4,2156,2406,2407,2157,4,2406,2656,2657,2407,4,2656,2906,2907,2657,4,2906,3156,3157,2907,4,3156,3643,3644,3157,4,3303,3643,3644,3304,4,87,525,526,88,4,87,88,109,108,4,525,775,776,526,4,775,1025,1026,776,4,1025,1275,1276,1026,4,1275,1525,1526,1276,4,1525,1775,1776,1526,4,1775,2025,2026,1776,4,2025,2275,2276,2026,4,2275,2525,2526,2276,4,2525,2775,2776,2526,4,2775,3025,3026,2776,4,3025,3324,3325,3026,4,3324,3345,3346,3325,4,108,109,130,129,4,3345,3366,3367,3346,4,129,130,151,150,4,3366,3387,3388,3367,4,150,151,172,171,4,3387,3408,3409,3388,4,171,172,193,192,4,3408,3429,3430,3409,4,192,193,214,213,4,3429,3450,3451,3430,4,213,214,235,234,4,3450,3471,3472,3451,4,234,235,256,255,4,3471,3492,3493,3472,4,255,256,481,276,4,3492,3513,3718,3493,4,481,731,736,486,4,485,735,736,486,4,276,481,486,485,4,731,981,986,736,4,735,985,986,736,4,981,1231,1236,986,4,985,1235,1236,986,4,1231,1481,1486,1236,4,1235,1485,1486,1236,4,1481,1731,1736,1486,4,1485,1735,1736,1486,4,1731,1981,1986,1736,4,1735,1985,1986,1736,4,1981,2231,2236,1986,4,1985,2235,2236,1986,4,2231,2481,2486,2236,4,2235,2485,2486,2236,4,2481,2731,2736,2486,4,2485,2735,2736,2486,4,2731,2981,2986,2736,4,2735,2985,2986,2736,4,2981,3231,3236,2986,4,2985,3235,3236,2986,4,3231,3718,3723,3236,4,3235,3722,3723,3236,4,3513,3722,3723,3718,4,297,318,622,618,4,297,618,619,298,4,297,298,319,318,4,618,622,872,868,4,618,868,869,619,4,868,872,1122,1118,4,868,1118,1119,869,4,1118,1122,1372,1368,4,1118,1368,1369,1119,4,1368,1372,1622,1618,4,1368,1618,1619,1369,4,1618,1622,1872,1868,4,1618,1868,1869,1619,4,1868,1872,2122,2118,4,1868,2118,2119,1869,4,2118,2122,2372,2368,4,2118,2368,2369,2119,4,2368,2372,2622,2618,4,2368,2618,2619,2369,4,2618,2622,2872,2868,4,2618,2868,2869,2619,4,2868,2872,3122,3118,4,2868,3118,3119,2869,4,3118,3122,3555,3534,4,3118,3534,3535,3119,4,3534,3555,3556,3535,4,318,319,340,339,4,3555,3576,3577,3556,4,339,340,361,360,4,3576,3597,3598,3577,4,381,631,632,382,4,360,361,382,381,4,631,881,882,632,4,881,1131,1132,882,4,1131,1381,1382,1132,4,1381,1631,1632,1382,4,1631,1881,1882,1632,4,1881,2131,2132,1882,4,2131,2381,2382,2132,4,2381,2631,2632,2382,4,2631,2881,2882,2632,4,2881,3131,3132,2882,4,3131,3618,3619,3132,4,3597,3618,3619,3598,4,4,491,492,5,4,4,5,26,25,4,491,741,742,492,4,741,991,992,742,4,991,1241,1242,992,4,1241,1491,1492,1242,4,1491,1741,1742,1492,4,1741,1991,1992,1742,4,1991,2241,2242,1992,4,2241,2491,2492,2242,4,2491,2741,2742,2492,4,2741,2991,2992,2742,4,2991,3241,3242,2992,4,3241,3262,3263,3242,4,25,26,47,46,4,3262,3283,3284,3263,4,46,47,68,67,4,3283,3304,3305,3284,4,407,657,658,408,4,67,68,408,407,4,657,907,908,658,4,907,1157,1158,908,4,1157,1407,1408,1158,4,1407,1657,1658,1408,4,1657,1907,1908,1658,4,1907,2157,2158,1908,4,2157,2407,2408,2158,4,2407,2657,2658,2408,4,2657,2907,2908,2658,4,2907,3157,3158,2908,4,3157,3644,3645,3158,4,3304,3644,3645,3305,4,89,527,660,410,4,88,526,527,89,4,88,89,410,109,4,527,777,910,660,4,526,776,777,527,4,777,1027,1160,910,4,776,1026,1027,777,4,1027,1277,1410,1160,4,1026,1276,1277,1027,4,1277,1527,1660,1410,4,1276,1526,1527,1277,4,1527,1777,1910,1660,4,1526,1776,1777,1527,4,1777,2027,2160,1910,4,1776,2026,2027,1777,4,2027,2277,2410,2160,4,2026,2276,2277,2027,4,2277,2527,2660,2410,4,2276,2526,2527,2277,4,2527,2777,2910,2660,4,2526,2776,2777,2527,4,2777,3027,3160,2910,4,2776,3026,3027,2777,4,3027,3326,3647,3160,4,3026,3325,3326,3027,4,3325,3346,3647,3326,4,109,410,131,130,4,3346,3367,3368,3647,4,130,131,152,151,4,3367,3388,3389,3368,4,151,152,173,172,4,3388,3409,3410,3389,4,172,173,194,193,4,3409,3430,3431,3410,4,193,194,215,214,4,3430,3451,3452,3431,4,214,215,236,235,4,3451,3472,3473,3452,4,235,236,257,256,4,3472,3493,3494,3473,4,481,731,732,482,4,256,257,482,481,4,731,981,982,732,4,981,1231,1232,982,4,1231,1481,1482,1232,4,1481,1731,1732,1482,4,1731,1981,1982,1732,4,1981,2231,2232,1982,4,2231,2481,2482,2232,4,2481,2731,2732,2482,4,2731,2981,2982,2732,4,2981,3231,3232,2982,4,3231,3718,3719,3232,4,3493,3718,3719,3494,4,277,298,619,610,4,277,610,611,278,4,277,278,299,298,4,610,619,869,860,4,610,860,861,611,4,860,869,1119,1110,4,860,1110,1111,861,4,1110,1119,1369,1360,4,1110,1360,1361,1111,4,1360,1369,1619,1610,4,1360,1610,1611,1361,4,1610,1619,1869,1860,4,1610,1860,1861,1611,4,1860,1869,2119,2110,4,1860,2110,2111,1861,4,2110,2119,2369,2360,4,2110,2360,2361,2111,4,2360,2369,2619,2610,4,2360,2610,2611,2361,4,2610,2619,2869,2860,4,2610,2860,2861,2611,4,2860,2869,3119,3110,4,2860,3110,3111,2861,4,3110,3119,3535,3514,4,3110,3514,3515,3111,4,3514,3535,3536,3515,4,298,299,320,319,4,3535,3556,3557,3536,4,319,320,341,340,4,3556,3577,3578,3557,4,340,341,362,361,4,3577,3598,3599,3578,4,382,632,633,383,4,361,362,383,382,4,632,882,883,633,4,882,1132,1133,883,4,1132,1382,1383,1133,4,1382,1632,1633,1383,4,1632,1882,1883,1633,4,1882,2132,2133,1883,4,2132,2382,2383,2133,4,2382,2632,2633,2383,4,2632,2882,2883,2633,4,2882,3132,3133,2883,4,3132,3619,3620,3133,4,3598,3619,3620,3599,4,5,492,493,6,4,5,6,27,26,4,492,742,743,493,4,742,992,993,743,4,992,1242,1243,993,4,1242,1492,1493,1243,4,1492,1742,1743,1493,4,1742,1992,1993,1743,4,1992,2242,2243,1993,4,2242,2492,2493,2243,4,2492,2742,2743,2493,4,2742,2992,2993,2743,4,2992,3242,3243,2993,4,3242,3263,3264,3243,4,26,27,48,47,4,3263,3284,3285,3264,4,47,48,69,68,4,3284,3305,3306,3285,4,68,69,90,408,4,3305,3645,3327,3306,4,408,110,534,658,4,110,534,661,411,4,408,90,411,110,4,658,534,784,908,4,534,784,911,661,4,908,784,1034,1158,4,784,1034,1161,911,4,1158,1034,1284,1408,4,1034,1284,1411,1161,4,1408,1284,1534,1658,4,1284,1534,1661,1411,4,1658,1534,1784,1908,4,1534,1784,1911,1661,4,1908,1784,2034,2158,4,1784,2034,2161,1911,4,2158,2034,2284,2408,4,2034,2284,2411,2161,4,2408,2284,2534,2658,4,2284,2534,2661,2411,4,2658,2534,2784,2908,4,2534,2784,2911,2661,4,2908,2784,3034,3158,4,2784,3034,3161,2911,4,3158,3034,3347,3645,4,3034,3347,3648,3161,4,3645,3347,3648,3327,4,410,660,535,111,4,410,111,132,131,4,660,910,785,535,4,910,1160,1035,785,4,1160,1410,1285,1035,4,1410,1660,1535,1285,4,1660,1910,1785,1535,4,1910,2160,2035,1785,4,2160,2410,2285,2035,4,2410,2660,2535,2285,4,2660,2910,2785,2535,4,2910,3160,3035,2785,4,3160,3647,3348,3035,4,3647,3368,3369,3348,4,131,132,153,152,4,3368,3389,3390,3369,4,152,153,174,173,4,3389,3410,3411,3390,4,173,174,195,194,4,3410,3431,3432,3411,4,194,195,216,215,4,3431,3452,3453,3432,4,215,216,237,236,4,3452,3473,3474,3453,4,236,237,470,257,4,3473,3494,3707,3474,4,470,720,733,483,4,482,732,733,483,4,257,470,483,482,4,720,970,983,733,4,732,982,983,733,4,970,1220,1233,983,4,982,1232,1233,983,4,1220,1470,1483,1233,4,1232,1482,1483,1233,4,1470,1720,1733,1483,4,1482,1732,1733,1483,4,1720,1970,1983,1733,4,1732,1982,1983,1733,4,1970,2220,2233,1983,4,1982,2232,2233,1983,4,2220,2470,2483,2233,4,2232,2482,2483,2233,4,2470,2720,2733,2483,4,2482,2732,2733,2483,4,2720,2970,2983,2733,4,2732,2982,2983,2733,4,2970,3220,3233,2983,4,2982,3232,3233,2983,4,3220,3707,3720,3233,4,3232,3719,3720,3233,4,3494,3719,3720,3707,4,278,611,612,279,4,278,279,300,299,4,611,861,862,612,4,861,1111,1112,862,4,1111,1361,1362,1112,4,1361,1611,1612,1362,4,1611,1861,1862,1612,4,1861,2111,2112,1862,4,2111,2361,2362,2112,4,2361,2611,2612,2362,4,2611,2861,2862,2612,4,2861,3111,3112,2862,4,3111,3515,3516,3112,4,3515,3536,3537,3516,4,299,300,321,320,4,3536,3557,3558,3537,4,320,321,342,341,4,3557,3578,3579,3558,4,341,342,363,362,4,3578,3599,3600,3579,4,383,633,634,384,4,362,363,384,383,4,633,883,884,634,4,883,1133,1134,884,4,1133,1383,1384,1134,4,1383,1633,1634,1384,4,1633,1883,1884,1634,4,1883,2133,2134,1884,4,2133,2383,2384,2134,4,2383,2633,2634,2384,4,2633,2883,2884,2634,4,2883,3133,3134,2884,4,3133,3620,3621,3134,4,3599,3620,3621,3600,4,6,493,494,7,4,6,7,28,27,4,493,743,744,494,4,743,993,994,744,4,993,1243,1244,994,4,1243,1493,1494,1244,4,1493,1743,1744,1494,4,1743,1993,1994,1744,4,1993,2243,2244,1994,4,2243,2493,2494,2244,4,2493,2743,2744,2494,4,2743,2993,2994,2744,4,2993,3243,3244,2994,4,3243,3264,3265,3244,4,48,511,649,399,4,27,28,399,48,4,511,761,899,649,4,761,1011,1149,899,4,1011,1261,1399,1149,4,1261,1511,1649,1399,4,1511,1761,1899,1649,4,1761,2011,2149,1899,4,2011,2261,2399,2149,4,2261,2511,2649,2399,4,2511,2761,2899,2649,4,2761,3011,3149,2899,4,3011,3285,3636,3149,4,3264,3285,3636,3265,4,49,512,651,401,4,48,511,512,49,4,48,49,401,69,4,512,762,901,651,4,511,761,762,512,4,762,1012,1151,901,4,761,1011,1012,762,4,1012,1262,1401,1151,4,1011,1261,1262,1012,4,1262,1512,1651,1401,4,1261,1511,1512,1262,4,1512,1762,1901,1651,4,1511,1761,1762,1512,4,1762,2012,2151,1901,4,1761,2011,2012,1762,4,2012,2262,2401,2151,4,2011,2261,2262,2012,4,2262,2512,2651,2401,4,2261,2511,2512,2262,4,2512,2762,2901,2651,4,2511,2761,2762,2512,4,2762,3012,3151,2901,4,2761,3011,3012,2762,4,3012,3286,3638,3151,4,3011,3285,3286,3012,4,3285,3306,3638,3286,4,69,401,91,90,4,3306,3327,3328,3638,4,411,661,662,412,4,90,91,412,411,4,661,911,912,662,4,911,1161,1162,912,4,1161,1411,1412,1162,4,1411,1661,1662,1412,4,1661,1911,1912,1662,4,1911,2161,2162,1912,4,2161,2411,2412,2162,4,2411,2661,2662,2412,4,2661,2911,2912,2662,4,2911,3161,3162,2912,4,3161,3648,3649,3162,4,3327,3648,3649,3328,4,111,535,536,112,4,111,112,133,132,4,535,785,786,536,4,785,1035,1036,786,4,1035,1285,1286,1036,4,1285,1535,1536,1286,4,1535,1785,1786,1536,4,1785,2035,2036,1786,4,2035,2285,2286,2036,4,2285,2535,2536,2286,4,2535,2785,2786,2536,4,2785,3035,3036,2786,4,3035,3348,3349,3036,4,3348,3369,3370,3349,4,132,133,154,153,4,3369,3390,3391,3370,4,153,154,175,174,4,3390,3411,3412,3391,4,174,175,196,195,4,3411,3432,3433,3412,4,195,196,217,216,4,3432,3453,3454,3433,4,216,217,238,237,4,3453,3474,3475,3454,4,470,720,721,471,4,237,238,471,470,4,720,970,971,721,4,970,1220,1221,971,4,1220,1470,1471,1221,4,1470,1720,1721,1471,4,1720,1970,1971,1721,4,1970,2220,2221,1971,4,2220,2470,2471,2221,4,2470,2720,2721,2471,4,2720,2970,2971,2721,4,2970,3220,3221,2971,4,3220,3707,3708,3221,4,3474,3707,3708,3475,4,258,279,612,599,4,258,599,600,259,4,258,259,280,279,4,599,612,862,849,4,599,849,850,600,4,849,862,1112,1099,4,849,1099,1100,850,4,1099,1112,1362,1349,4,1099,1349,1350,1100,4,1349,1362,1612,1599,4,1349,1599,1600,1350,4,1599,1612,1862,1849,4,1599,1849,1850,1600,4,1849,1862,2112,2099,4,1849,2099,2100,1850,4,2099,2112,2362,2349,4,2099,2349,2350,2100,4,2349,2362,2612,2599,4,2349,2599,2600,2350,4,2599,2612,2862,2849,4,2599,2849,2850,2600,4,2849,2862,3112,3099,4,2849,3099,3100,2850,4,3099,3112,3516,3495,4,3099,3495,3496,3100,4,3495,3516,3517,3496,4,279,280,301,300,4,3516,3537,3538,3517,4,300,301,322,321,4,3537,3558,3559,3538,4,321,322,343,342,4,3558,3579,3580,3559,4,342,343,364,363,4,3579,3600,3601,3580,4,384,634,635,385,4,363,364,385,384,4,634,884,885,635,4,884,1134,1135,885,4,1134,1384,1385,1135,4,1384,1634,1635,1385,4,1634,1884,1885,1635,4,1884,2134,2135,1885,4,2134,2384,2385,2135,4,2384,2634,2635,2385,4,2634,2884,2885,2635,4,2884,3134,3135,2885,4,3134,3621,3622,3135,4,3600,3621,3622,3601,4,7,494,495,8,4,7,8,29,28,4,494,744,745,495,4,744,994,995,745,4,994,1244,1245,995,4,1244,1494,1495,1245,4,1494,1744,1745,1495,4,1744,1994,1995,1745,4,1994,2244,2245,1995,4,2244,2494,2495,2245,4,2494,2744,2745,2495,4,2744,2994,2995,2745,4,2994,3244,3245,2995,4,3244,3265,3266,3245,4,28,29,50,399,4,3265,3636,3287,3266,4,399,70,517,649,4,70,517,652,402,4,399,50,402,70,4,649,517,767,899,4,517,767,902,652,4,899,767,1017,1149,4,767,1017,1152,902,4,1149,1017,1267,1399,4,1017,1267,1402,1152,4,1399,1267,1517,1649,4,1267,1517,1652,1402,4,1649,1517,1767,1899,4,1517,1767,1902,1652,4,1899,1767,2017,2149,4,1767,2017,2152,1902,4,2149,2017,2267,2399,4,2017,2267,2402,2152,4,2399,2267,2517,2649,4,2267,2517,2652,2402,4,2649,2517,2767,2899,4,2517,2767,2902,2652,4,2899,2767,3017,3149,4,2767,3017,3152,2902,4,3149,3017,3307,3636,4,3017,3307,3639,3152,4,3636,3307,3639,3287,4,71,518,659,409,4,401,651,518,71,4,401,71,409,91,4,518,768,909,659,4,651,901,768,518,4,768,1018,1159,909,4,901,1151,1018,768,4,1018,1268,1409,1159,4,1151,1401,1268,1018,4,1268,1518,1659,1409,4,1401,1651,1518,1268,4,1518,1768,1909,1659,4,1651,1901,1768,1518,4,1768,2018,2159,1909,4,1901,2151,2018,1768,4,2018,2268,2409,2159,4,2151,2401,2268,2018,4,2268,2518,2659,2409,4,2401,2651,2518,2268,4,2518,2768,2909,2659,4,2651,2901,2768,2518,4,2768,3018,3159,2909,4,2901,3151,3018,2768,4,3018,3308,3646,3159,4,3151,3638,3308,3018,4,3638,3328,3646,3308,4,412,662,663,413,4,91,409,413,412,4,662,912,913,663,4,912,1162,1163,913,4,1162,1412,1413,1163,4,1412,1662,1663,1413,4,1662,1912,1913,1663,4,1912,2162,2163,1913,4,2162,2412,2413,2163,4,2412,2662,2663,2413,4,2662,2912,2913,2663,4,2912,3162,3163,2913,4,3162,3649,3650,3163,4,3328,3649,3650,3646,4,113,537,665,415,4,112,536,537,113,4,112,113,415,133,4,537,787,915,665,4,536,786,787,537,4,787,1037,1165,915,4,786,1036,1037,787,4,1037,1287,1415,1165,4,1036,1286,1287,1037,4,1287,1537,1665,1415,4,1286,1536,1537,1287,4,1537,1787,1915,1665,4,1536,1786,1787,1537,4,1787,2037,2165,1915,4,1786,2036,2037,1787,4,2037,2287,2415,2165,4,2036,2286,2287,2037,4,2287,2537,2665,2415,4,2286,2536,2537,2287,4,2537,2787,2915,2665,4,2536,2786,2787,2537,4,2787,3037,3165,2915,4,2786,3036,3037,2787,4,3037,3350,3652,3165,4,3036,3349,3350,3037,4,3349,3370,3652,3350,4,133,415,155,154,4,3370,3391,3392,3652,4,154,155,176,175,4,3391,3412,3413,3392,4,175,176,197,196,4,3412,3433,3434,3413,4,217,576,696,446,4,196,197,446,217,4,576,826,946,696,4,826,1076,1196,946,4,1076,1326,1446,1196,4,1326,1576,1696,1446,4,1576,1826,1946,1696,4,1826,2076,2196,1946,4,2076,2326,2446,2196,4,2326,2576,2696,2446,4,2576,2826,2946,2696,4,2826,3076,3196,2946,4,3076,3454,3683,3196,4,3433,3454,3683,3434,4,217,576,577,218,4,217,218,454,238,4,576,826,827,577,4,826,1076,1077,827,4,1076,1326,1327,1077,4,1326,1576,1577,1327,4,1576,1826,1827,1577,4,1826,2076,2077,1827,4,2076,2326,2327,2077,4,2326,2576,2577,2327,4,2576,2826,2827,2577,4,2826,3076,3077,2827,4,3076,3454,3455,3077,4,3454,3475,3691,3455,4,454,704,722,472,4,471,721,722,472,4,238,454,472,471,4,704,954,972,722,4,721,971,972,722,4,954,1204,1222,972,4,971,1221,1222,972,4,1204,1454,1472,1222,4,1221,1471,1472,1222,4,1454,1704,1722,1472,4,1471,1721,1722,1472,4,1704,1954,1972,1722,4,1721,1971,1972,1722,4,1954,2204,2222,1972,4,1971,2221,2222,1972,4,2204,2454,2472,2222,4,2221,2471,2472,2222,4,2454,2704,2722,2472,4,2471,2721,2722,2472,4,2704,2954,2972,2722,4,2721,2971,2972,2722,4,2954,3204,3222,2972,4,2971,3221,3222,2972,4,3204,3691,3709,3222,4,3221,3708,3709,3222,4,3475,3708,3709,3691,4,259,600,601,260,4,259,260,281,280,4,600,850,851,601,4,850,1100,1101,851,4,1100,1350,1351,1101,4,1350,1600,1601,1351,4,1600,1850,1851,1601,4,1850,2100,2101,1851,4,2100,2350,2351,2101,4,2350,2600,2601,2351,4,2600,2850,2851,2601,4,2850,3100,3101,2851,4,3100,3496,3497,3101,4,3496,3517,3518,3497,4,280,281,302,301,4,3517,3538,3539,3518,4,301,302,323,322,4,3538,3559,3560,3539,4,322,323,344,343,4,3559,3580,3581,3560,4,343,344,365,364,4,3580,3601,3602,3581,4,385,635,636,386,4,364,365,386,385,4,635,885,886,636,4,885,1135,1136,886,4,1135,1385,1386,1136,4,1385,1635,1636,1386,4,1635,1885,1886,1636,4,1885,2135,2136,1886,4,2135,2385,2386,2136,4,2385,2635,2636,2386,4,2635,2885,2886,2636,4,2885,3135,3136,2886,4,3135,3622,3623,3136,4,3601,3622,3623,3602,4,8,495,496,9,4,8,9,30,29,4,495,745,746,496,4,745,995,996,746,4,995,1245,1246,996,4,1245,1495,1496,1246,4,1495,1745,1746,1496,4,1745,1995,1996,1746,4,1995,2245,2246,1996,4,2245,2495,2496,2246,4,2495,2745,2746,2496,4,2745,2995,2996,2746,4,2995,3245,3246,2996,4,3245,3266,3267,3246,4,29,30,51,50,4,3266,3287,3288,3267,4,50,51,72,402,4,3287,3639,3309,3288,4,402,92,528,652,4,92,528,529,93,4,402,72,93,92,4,652,528,778,902,4,528,778,779,529,4,902,778,1028,1152,4,778,1028,1029,779,4,1152,1028,1278,1402,4,1028,1278,1279,1029,4,1402,1278,1528,1652,4,1278,1528,1529,1279,4,1652,1528,1778,1902,4,1528,1778,1779,1529,4,1902,1778,2028,2152,4,1778,2028,2029,1779,4,2152,2028,2278,2402,4,2028,2278,2279,2029,4,2402,2278,2528,2652,4,2278,2528,2529,2279,4,2652,2528,2778,2902,4,2528,2778,2779,2529,4,2902,2778,3028,3152,4,2778,3028,3029,2779,4,3152,3028,3329,3639,4,3028,3329,3330,3029,4,3639,3329,3330,3309,4,409,659,529,93,4,409,93,114,413,4,659,909,779,529,4,909,1159,1029,779,4,1159,1409,1279,1029,4,1409,1659,1529,1279,4,1659,1909,1779,1529,4,1909,2159,2029,1779,4,2159,2409,2279,2029,4,2409,2659,2529,2279,4,2659,2909,2779,2529,4,2909,3159,3029,2779,4,3159,3646,3330,3029,4,3646,3650,3351,3330,4,413,134,543,663,4,134,543,666,416,4,413,114,416,134,4,663,543,793,913,4,543,793,916,666,4,913,793,1043,1163,4,793,1043,1166,916,4,1163,1043,1293,1413,4,1043,1293,1416,1166,4,1413,1293,1543,1663,4,1293,1543,1666,1416,4,1663,1543,1793,1913,4,1543,1793,1916,1666,4,1913,1793,2043,2163,4,1793,2043,2166,1916,4,2163,2043,2293,2413,4,2043,2293,2416,2166,4,2413,2293,2543,2663,4,2293,2543,2666,2416,4,2663,2543,2793,2913,4,2543,2793,2916,2666,4,2913,2793,3043,3163,4,2793,3043,3166,2916,4,3163,3043,3371,3650,4,3043,3371,3653,3166,4,3650,3371,3653,3351,4,415,665,544,135,4,415,135,156,155,4,665,915,794,544,4,915,1165,1044,794,4,1165,1415,1294,1044,4,1415,1665,1544,1294,4,1665,1915,1794,1544,4,1915,2165,2044,1794,4,2165,2415,2294,2044,4,2415,2665,2544,2294,4,2665,2915,2794,2544,4,2915,3165,3044,2794,4,3165,3652,3372,3044,4,3652,3392,3393,3372,4,155,156,177,176,4,3392,3413,3414,3393,4,176,177,437,197,4,3413,3434,3674,3414,4,437,687,697,447,4,446,696,697,447,4,197,437,447,446,4,687,937,947,697,4,696,946,947,697,4,937,1187,1197,947,4,946,1196,1197,947,4,1187,1437,1447,1197,4,1196,1446,1447,1197,4,1437,1687,1697,1447,4,1446,1696,1697,1447,4,1687,1937,1947,1697,4,1696,1946,1947,1697,4,1937,2187,2197,1947,4,1946,2196,2197,1947,4,2187,2437,2447,2197,4,2196,2446,2447,2197,4,2437,2687,2697,2447,4,2446,2696,2697,2447,4,2687,2937,2947,2697,4,2696,2946,2947,2697,4,2937,3187,3197,2947,4,2946,3196,3197,2947,4,3187,3674,3684,3197,4,3196,3683,3684,3197,4,3434,3683,3684,3674,4,218,577,578,219,4,454,704,705,455,4,218,219,455,454,4,577,827,828,578,4,704,954,955,705,4,827,1077,1078,828,4,954,1204,1205,955,4,1077,1327,1328,1078,4,1204,1454,1455,1205,4,1327,1577,1578,1328,4,1454,1704,1705,1455,4,1577,1827,1828,1578,4,1704,1954,1955,1705,4,1827,2077,2078,1828,4,1954,2204,2205,1955,4,2077,2327,2328,2078,4,2204,2454,2455,2205,4,2327,2577,2578,2328,4,2454,2704,2705,2455,4,2577,2827,2828,2578,4,2704,2954,2955,2705,4,2827,3077,3078,2828,4,2954,3204,3205,2955,4,3077,3455,3456,3078,4,3204,3691,3692,3205,4,3455,3691,3692,3456,4,239,260,601,586,4,239,586,587,240,4,239,240,261,260,4,586,601,851,836,4,586,836,837,587,4,836,851,1101,1086,4,836,1086,1087,837,4,1086,1101,1351,1336,4,1086,1336,1337,1087,4,1336,1351,1601,1586,4,1336,1586,1587,1337,4,1586,1601,1851,1836,4,1586,1836,1837,1587,4,1836,1851,2101,2086,4,1836,2086,2087,1837,4,2086,2101,2351,2336,4,2086,2336,2337,2087,4,2336,2351,2601,2586,4,2336,2586,2587,2337,4,2586,2601,2851,2836,4,2586,2836,2837,2587,4,2836,2851,3101,3086,4,2836,3086,3087,2837,4,3086,3101,3497,3476,4,3086,3476,3477,3087,4,3476,3497,3498,3477,4,260,261,282,281,4,3497,3518,3519,3498,4,281,282,303,302,4,3518,3539,3540,3519,4,302,303,324,323,4,3539,3560,3561,3540,4,323,324,345,344,4,3560,3581,3582,3561,4,344,345,366,365,4,3581,3602,3603,3582,4,386,636,637,387,4,365,366,387,386,4,636,886,887,637,4,886,1136,1137,887,4,1136,1386,1387,1137,4,1386,1636,1637,1387,4,1636,1886,1887,1637,4,1886,2136,2137,1887,4,2136,2386,2387,2137,4,2386,2636,2637,2387,4,2636,2886,2887,2637,4,2886,3136,3137,2887,4,3136,3623,3624,3137,4,3602,3623,3624,3603,4,9,496,497,10,4,9,10,31,30,4,496,746,747,497,4,746,996,997,747,4,996,1246,1247,997,4,1246,1496,1497,1247,4,1496,1746,1747,1497,4,1746,1996,1997,1747,4,1996,2246,2247,1997,4,2246,2496,2497,2247,4,2496,2746,2747,2497,4,2746,2996,2997,2747,4,2996,3246,3247,2997,4,3246,3267,3268,3247,4,30,31,52,51,4,3267,3288,3289,3268,4,51,52,73,72,4,3288,3309,3310,3289,4,72,73,94,93,4,3309,3330,3331,3310,4,93,94,115,114,4,3330,3351,3352,3331,4,416,666,545,136,4,114,115,136,416,4,666,916,795,545,4,916,1166,1045,795,4,1166,1416,1295,1045,4,1416,1666,1545,1295,4,1666,1916,1795,1545,4,1916,2166,2045,1795,4,2166,2416,2295,2045,4,2416,2666,2545,2295,4,2666,2916,2795,2545,4,2916,3166,3045,2795,4,3166,3653,3373,3045,4,3351,3653,3373,3352,4,135,544,545,136,4,135,136,157,156,4,544,794,795,545,4,794,1044,1045,795,4,1044,1294,1295,1045,4,1294,1544,1545,1295,4,1544,1794,1795,1545,4,1794,2044,2045,1795,4,2044,2294,2295,2045,4,2294,2544,2545,2295,4,2544,2794,2795,2545,4,2794,3044,3045,2795,4,3044,3372,3373,3045,4,3372,3393,3394,3373,4,156,157,178,177,4,3393,3414,3415,3394,4,437,687,688,438,4,177,178,438,437,4,687,937,938,688,4,937,1187,1188,938,4,1187,1437,1438,1188,4,1437,1687,1688,1438,4,1687,1937,1938,1688,4,1937,2187,2188,1938,4,2187,2437,2438,2188,4,2437,2687,2688,2438,4,2687,2937,2938,2688,4,2937,3187,3188,2938,4,3187,3674,3675,3188,4,3414,3674,3675,3415,4,198,219,578,567,4,198,567,568,199,4,198,199,220,219,4,567,578,828,817,4,567,817,818,568,4,817,828,1078,1067,4,817,1067,1068,818,4,1067,1078,1328,1317,4,1067,1317,1318,1068,4,1317,1328,1578,1567,4,1317,1567,1568,1318,4,1567,1578,1828,1817,4,1567,1817,1818,1568,4,1817,1828,2078,2067,4,1817,2067,2068,1818,4,2067,2078,2328,2317,4,2067,2317,2318,2068,4,2317,2328,2578,2567,4,2317,2567,2568,2318,4,2567,2578,2828,2817,4,2567,2817,2818,2568,4,2817,2828,3078,3067,4,2817,3067,3068,2818,4,3067,3078,3456,3435,4,3067,3435,3436,3068,4,3435,3456,3457,3436,4,455,705,706,456,4,219,220,456,455,4,705,955,956,706,4,955,1205,1206,956,4,1205,1455,1456,1206,4,1455,1705,1706,1456,4,1705,1955,1956,1706,4,1955,2205,2206,1956,4,2205,2455,2456,2206,4,2455,2705,2706,2456,4,2705,2955,2956,2706,4,2955,3205,3206,2956,4,3205,3692,3693,3206,4,3456,3692,3693,3457,4,240,587,588,241,4,240,241,262,261,4,587,837,838,588,4,837,1087,1088,838,4,1087,1337,1338,1088,4,1337,1587,1588,1338,4,1587,1837,1838,1588,4,1837,2087,2088,1838,4,2087,2337,2338,2088,4,2337,2587,2588,2338,4,2587,2837,2838,2588,4,2837,3087,3088,2838,4,3087,3477,3478,3088,4,3477,3498,3499,3478,4,261,262,283,282,4,3498,3519,3520,3499,4,282,283,304,303,4,3519,3540,3541,3520,4,303,304,325,324,4,3540,3561,3562,3541,4,324,325,346,345,4,3561,3582,3583,3562,4,345,346,367,366,4,3582,3603,3604,3583,4,387,637,638,388,4,366,367,388,387,4,637,887,888,638,4,887,1137,1138,888,4,1137,1387,1388,1138,4,1387,1637,1638,1388,4,1637,1887,1888,1638,4,1887,2137,2138,1888,4,2137,2387,2388,2138,4,2387,2637,2638,2388,4,2637,2887,2888,2638,4,2887,3137,3138,2888,4,3137,3624,3625,3138,4,3603,3624,3625,3604,4,10,497,498,11,4,10,11,32,31,4,497,747,748,498,4,747,997,998,748,4,997,1247,1248,998,4,1247,1497,1498,1248,4,1497,1747,1748,1498,4,1747,1997,1998,1748,4,1997,2247,2248,1998,4,2247,2497,2498,2248,4,2497,2747,2748,2498,4,2747,2997,2998,2748,4,2997,3247,3248,2998,4,3247,3268,3269,3248,4,31,32,53,52,4,3268,3289,3290,3269,4,73,519,653,403,4,52,53,403,73,4,519,769,903,653,4,769,1019,1153,903,4,1019,1269,1403,1153,4,1269,1519,1653,1403,4,1519,1769,1903,1653,4,1769,2019,2153,1903,4,2019,2269,2403,2153,4,2269,2519,2653,2403,4,2519,2769,2903,2653,4,2769,3019,3153,2903,4,3019,3310,3640,3153,4,3289,3310,3640,3290,4,73,519,520,74,4,73,74,95,94,4,519,769,770,520,4,769,1019,1020,770,4,1019,1269,1270,1020,4,1269,1519,1520,1270,4,1519,1769,1770,1520,4,1769,2019,2020,1770,4,2019,2269,2270,2020,4,2269,2519,2520,2270,4,2519,2769,2770,2520,4,2769,3019,3020,2770,4,3019,3310,3311,3020,4,3310,3331,3332,3311,4,94,95,116,115,4,3331,3352,3353,3332,4,116,538,667,417,4,115,116,417,136,4,538,788,917,667,4,788,1038,1167,917,4,1038,1288,1417,1167,4,1288,1538,1667,1417,4,1538,1788,1917,1667,4,1788,2038,2167,1917,4,2038,2288,2417,2167,4,2288,2538,2667,2417,4,2538,2788,2917,2667,4,2788,3038,3167,2917,4,3038,3353,3654,3167,4,3352,3373,3654,3353,4,136,417,158,157,4,3373,3394,3395,3654,4,157,158,428,178,4,3394,3415,3665,3395,4,428,678,689,439,4,438,688,689,439,4,178,428,439,438,4,678,928,939,689,4,688,938,939,689,4,928,1178,1189,939,4,938,1188,1189,939,4,1178,1428,1439,1189,4,1188,1438,1439,1189,4,1428,1678,1689,1439,4,1438,1688,1689,1439,4,1678,1928,1939,1689,4,1688,1938,1939,1689,4,1928,2178,2189,1939,4,1938,2188,2189,1939,4,2178,2428,2439,2189,4,2188,2438,2439,2189,4,2428,2678,2689,2439,4,2438,2688,2689,2439,4,2678,2928,2939,2689,4,2688,2938,2939,2689,4,2928,3178,3189,2939,4,2938,3188,3189,2939,4,3178,3665,3676,3189,4,3188,3675,3676,3189,4,3415,3675,3676,3665,4,441,691,698,448,4,199,568,691,441,4,199,441,448,220,4,691,941,948,698,4,568,818,941,691,4,941,1191,1198,948,4,818,1068,1191,941,4,1191,1441,1448,1198,4,1068,1318,1441,1191,4,1441,1691,1698,1448,4,1318,1568,1691,1441,4,1691,1941,1948,1698,4,1568,1818,1941,1691,4,1941,2191,2198,1948,4,1818,2068,2191,1941,4,2191,2441,2448,2198,4,2068,2318,2441,2191,4,2441,2691,2698,2448,4,2318,2568,2691,2441,4,2691,2941,2948,2698,4,2568,2818,2941,2691,4,2941,3191,3198,2948,4,2818,3068,3191,2941,4,3191,3678,3685,3198,4,3068,3436,3678,3191,4,3436,3457,3685,3678,4,448,698,707,457,4,456,706,707,457,4,220,448,457,456,4,698,948,957,707,4,706,956,957,707,4,948,1198,1207,957,4,956,1206,1207,957,4,1198,1448,1457,1207,4,1206,1456,1457,1207,4,1448,1698,1707,1457,4,1456,1706,1707,1457,4,1698,1948,1957,1707,4,1706,1956,1957,1707,4,1948,2198,2207,1957,4,1956,2206,2207,1957,4,2198,2448,2457,2207,4,2206,2456,2457,2207,4,2448,2698,2707,2457,4,2456,2706,2707,2457,4,2698,2948,2957,2707,4,2706,2956,2957,2707,4,2948,3198,3207,2957,4,2956,3206,3207,2957,4,3198,3685,3694,3207,4,3206,3693,3694,3207,4,3457,3693,3694,3685,4,241,588,708,458,4,241,458,263,262,4,588,838,958,708,4,838,1088,1208,958,4,1088,1338,1458,1208,4,1338,1588,1708,1458,4,1588,1838,1958,1708,4,1838,2088,2208,1958,4,2088,2338,2458,2208,4,2338,2588,2708,2458,4,2588,2838,2958,2708,4,2838,3088,3208,2958,4,3088,3478,3695,3208,4,3478,3499,3500,3695,4,262,263,284,283,4,3499,3520,3521,3500,4,283,284,305,304,4,3520,3541,3542,3521,4,304,305,326,325,4,3541,3562,3563,3542,4,325,326,347,346,4,3562,3583,3584,3563,4,346,347,368,367,4,3583,3604,3605,3584,4,388,638,639,389,4,367,368,389,388,4,638,888,889,639,4,888,1138,1139,889,4,1138,1388,1389,1139,4,1388,1638,1639,1389,4,1638,1888,1889,1639,4,1888,2138,2139,1889,4,2138,2388,2389,2139,4,2388,2638,2639,2389,4,2638,2888,2889,2639,4,2888,3138,3139,2889,4,3138,3625,3626,3139,4,3604,3625,3626,3605,4,11,498,499,12,4,11,12,33,32,4,498,748,749,499,4,748,998,999,749,4,998,1248,1249,999,4,1248,1498,1499,1249,4,1498,1748,1749,1499,4,1748,1998,1999,1749,4,1998,2248,2249,1999,4,2248,2498,2499,2249,4,2498,2748,2749,2499,4,2748,2998,2999,2749,4,2998,3248,3249,2999,4,3248,3269,3270,3249,4,32,33,54,53,4,3269,3290,3291,3270,4,403,653,654,404,4,53,54,404,403,4,653,903,904,654,4,903,1153,1154,904,4,1153,1403,1404,1154,4,1403,1653,1654,1404,4,1653,1903,1904,1654,4,1903,2153,2154,1904,4,2153,2403,2404,2154,4,2403,2653,2654,2404,4,2653,2903,2904,2654,4,2903,3153,3154,2904,4,3153,3640,3641,3154,4,3290,3640,3641,3291,4,75,521,530,96,4,74,520,521,75,4,74,75,96,95,4,521,771,780,530,4,520,770,771,521,4,771,1021,1030,780,4,770,1020,1021,771,4,1021,1271,1280,1030,4,1020,1270,1271,1021,4,1271,1521,1530,1280,4,1270,1520,1521,1271,4,1521,1771,1780,1530,4,1520,1770,1771,1521,4,1771,2021,2030,1780,4,1770,2020,2021,1771,4,2021,2271,2280,2030,4,2020,2270,2271,2021,4,2271,2521,2530,2280,4,2270,2520,2521,2271,4,2521,2771,2780,2530,4,2520,2770,2771,2521,4,2771,3021,3030,2780,4,2770,3020,3021,2771,4,3021,3312,3333,3030,4,3020,3311,3312,3021,4,3311,3332,3333,3312,4,95,96,117,116,4,3332,3353,3354,3333,4,116,137,546,538,4,137,546,668,418,4,116,117,418,137,4,538,546,796,788,4,546,796,918,668,4,788,796,1046,1038,4,796,1046,1168,918,4,1038,1046,1296,1288,4,1046,1296,1418,1168,4,1288,1296,1546,1538,4,1296,1546,1668,1418,4,1538,1546,1796,1788,4,1546,1796,1918,1668,4,1788,1796,2046,2038,4,1796,2046,2168,1918,4,2038,2046,2296,2288,4,2046,2296,2418,2168,4,2288,2296,2546,2538,4,2296,2546,2668,2418,4,2538,2546,2796,2788,4,2546,2796,2918,2668,4,2788,2796,3046,3038,4,2796,3046,3168,2918,4,3038,3046,3374,3353,4,3046,3374,3655,3168,4,3353,3374,3655,3354,4,138,547,674,424,4,417,667,547,138,4,417,138,424,158,4,547,797,924,674,4,667,917,797,547,4,797,1047,1174,924,4,917,1167,1047,797,4,1047,1297,1424,1174,4,1167,1417,1297,1047,4,1297,1547,1674,1424,4,1417,1667,1547,1297,4,1547,1797,1924,1674,4,1667,1917,1797,1547,4,1797,2047,2174,1924,4,1917,2167,2047,1797,4,2047,2297,2424,2174,4,2167,2417,2297,2047,4,2297,2547,2674,2424,4,2417,2667,2547,2297,4,2547,2797,2924,2674,4,2667,2917,2797,2547,4,2797,3047,3174,2924,4,2917,3167,3047,2797,4,3047,3375,3661,3174,4,3167,3654,3375,3047,4,3654,3395,3661,3375,4,424,674,679,429,4,428,678,679,429,4,158,424,429,428,4,674,924,929,679,4,678,928,929,679,4,924,1174,1179,929,4,928,1178,1179,929,4,1174,1424,1429,1179,4,1178,1428,1429,1179,4,1424,1674,1679,1429,4,1428,1678,1679,1429,4,1674,1924,1929,1679,4,1678,1928,1929,1679,4,1924,2174,2179,1929,4,1928,2178,2179,1929,4,2174,2424,2429,2179,4,2178,2428,2429,2179,4,2424,2674,2679,2429,4,2428,2678,2679,2429,4,2674,2924,2929,2679,4,2678,2928,2929,2679,4,2924,3174,3179,2929,4,2928,3178,3179,2929,4,3174,3661,3666,3179,4,3178,3665,3666,3179,4,3395,3665,3666,3661,4,179,200,569,559,4,431,681,692,442,4,179,559,681,431,4,200,569,692,442,4,179,431,442,200,4,559,569,819,809,4,681,931,942,692,4,559,809,931,681,4,569,819,942,692,4,809,819,1069,1059,4,931,1181,1192,942,4,809,1059,1181,931,4,819,1069,1192,942,4,1059,1069,1319,1309,4,1181,1431,1442,1192,4,1059,1309,1431,1181,4,1069,1319,1442,1192,4,1309,1319,1569,1559,4,1431,1681,1692,1442,4,1309,1559,1681,1431,4,1319,1569,1692,1442,4,1559,1569,1819,1809,4,1681,1931,1942,1692,4,1559,1809,1931,1681,4,1569,1819,1942,1692,4,1809,1819,2069,2059,4,1931,2181,2192,1942,4,1809,2059,2181,1931,4,1819,2069,2192,1942,4,2059,2069,2319,2309,4,2181,2431,2442,2192,4,2059,2309,2431,2181,4,2069,2319,2442,2192,4,2309,2319,2569,2559,4,2431,2681,2692,2442,4,2309,2559,2681,2431,4,2319,2569,2692,2442,4,2559,2569,2819,2809,4,2681,2931,2942,2692,4,2559,2809,2931,2681,4,2569,2819,2942,2692,4,2809,2819,3069,3059,4,2931,3181,3192,2942,4,2809,3059,3181,2931,4,2819,3069,3192,2942,4,3059,3069,3437,3416,4,3181,3668,3679,3192,4,3059,3416,3668,3181,4,3069,3437,3679,3192,4,3416,3437,3679,3668,4,440,221,579,690,4,440,690,570,201,4,221,579,700,450,4,440,201,450,221,4,690,579,829,940,4,690,940,820,570,4,579,829,950,700,4,940,829,1079,1190,4,940,1190,1070,820,4,829,1079,1200,950,4,1190,1079,1329,1440,4,1190,1440,1320,1070,4,1079,1329,1450,1200,4,1440,1329,1579,1690,4,1440,1690,1570,1320,4,1329,1579,1700,1450,4,1690,1579,1829,1940,4,1690,1940,1820,1570,4,1579,1829,1950,1700,4,1940,1829,2079,2190,4,1940,2190,2070,1820,4,1829,2079,2200,1950,4,2190,2079,2329,2440,4,2190,2440,2320,2070,4,2079,2329,2450,2200,4,2440,2329,2579,2690,4,2440,2690,2570,2320,4,2329,2579,2700,2450,4,2690,2579,2829,2940,4,2690,2940,2820,2570,4,2579,2829,2950,2700,4,2940,2829,3079,3190,4,2940,3190,3070,2820,4,2829,3079,3200,2950,4,3190,3079,3458,3677,4,3190,3677,3438,3070,4,3079,3458,3687,3200,4,3677,3458,3687,3438,4,449,242,589,699,4,449,699,580,222,4,242,589,709,459,4,449,222,459,242,4,699,589,839,949,4,699,949,830,580,4,589,839,959,709,4,949,839,1089,1199,4,949,1199,1080,830,4,839,1089,1209,959,4,1199,1089,1339,1449,4,1199,1449,1330,1080,4,1089,1339,1459,1209,4,1449,1339,1589,1699,4,1449,1699,1580,1330,4,1339,1589,1709,1459,4,1699,1589,1839,1949,4,1699,1949,1830,1580,4,1589,1839,1959,1709,4,1949,1839,2089,2199,4,1949,2199,2080,1830,4,1839,2089,2209,1959,4,2199,2089,2339,2449,4,2199,2449,2330,2080,4,2089,2339,2459,2209,4,2449,2339,2589,2699,4,2449,2699,2580,2330,4,2339,2589,2709,2459,4,2699,2589,2839,2949,4,2699,2949,2830,2580,4,2589,2839,2959,2709,4,2949,2839,3089,3199,4,2949,3199,3080,2830,4,2839,3089,3209,2959,4,3199,3089,3479,3686,4,3199,3686,3459,3080,4,3089,3479,3696,3209,4,3686,3479,3696,3459,4,458,708,590,243,4,458,243,264,263,4,708,958,840,590,4,958,1208,1090,840,4,1208,1458,1340,1090,4,1458,1708,1590,1340,4,1708,1958,1840,1590,4,1958,2208,2090,1840,4,2208,2458,2340,2090,4,2458,2708,2590,2340,4,2708,2958,2840,2590,4,2958,3208,3090,2840,4,3208,3695,3480,3090,4,3695,3500,3501,3480,4,263,264,285,284,4,3500,3521,3522,3501,4,284,285,306,305,4,3521,3542,3543,3522,4,305,306,327,326,4,3542,3563,3564,3543,4,326,327,348,347,4,3563,3584,3585,3564,4,347,348,369,368,4,3584,3605,3606,3585,4,389,639,640,390,4,368,369,390,389,4,639,889,890,640,4,889,1139,1140,890,4,1139,1389,1390,1140,4,1389,1639,1640,1390,4,1639,1889,1890,1640,4,1889,2139,2140,1890,4,2139,2389,2390,2140,4,2389,2639,2640,2390,4,2639,2889,2890,2640,4,2889,3139,3140,2890,4,3139,3626,3627,3140,4,3605,3626,3627,3606,4,12,499,500,13,4,12,13,34,33,4,499,749,750,500,4,749,999,1000,750,4,999,1249,1250,1000,4,1249,1499,1500,1250,4,1499,1749,1750,1500,4,1749,1999,2000,1750,4,1999,2249,2250,2000,4,2249,2499,2500,2250,4,2499,2749,2750,2500,4,2749,2999,3000,2750,4,2999,3249,3250,3000,4,3249,3270,3271,3250,4,33,34,55,54,4,3270,3291,3292,3271,4,54,55,76,404,4,3291,3641,3313,3292,4,404,96,530,654,4,404,76,97,96,4,654,530,780,904,4,904,780,1030,1154,4,1154,1030,1280,1404,4,1404,1280,1530,1654,4,1654,1530,1780,1904,4,1904,1780,2030,2154,4,2154,2030,2280,2404,4,2404,2280,2530,2654,4,2654,2530,2780,2904,4,2904,2780,3030,3154,4,3154,3030,3333,3641,4,3641,3333,3334,3313,4,96,97,118,117,4,3333,3354,3355,3334,4,118,539,670,420,4,418,668,670,420,4,117,118,420,418,4,539,789,920,670,4,668,918,920,670,4,789,1039,1170,920,4,918,1168,1170,920,4,1039,1289,1420,1170,4,1168,1418,1420,1170,4,1289,1539,1670,1420,4,1418,1668,1670,1420,4,1539,1789,1920,1670,4,1668,1918,1920,1670,4,1789,2039,2170,1920,4,1918,2168,2170,1920,4,2039,2289,2420,2170,4,2168,2418,2420,2170,4,2289,2539,2670,2420,4,2418,2668,2670,2420,4,2539,2789,2920,2670,4,2668,2918,2920,2670,4,2789,3039,3170,2920,4,2918,3168,3170,2920,4,3039,3355,3657,3170,4,3168,3655,3657,3170,4,3354,3655,3657,3355,4,419,159,553,669,4,139,548,675,425,4,419,669,548,139,4,419,139,425,159,4,669,553,803,919,4,548,798,925,675,4,669,919,798,548,4,919,803,1053,1169,4,798,1048,1175,925,4,919,1169,1048,798,4,1169,1053,1303,1419,4,1048,1298,1425,1175,4,1169,1419,1298,1048,4,1419,1303,1553,1669,4,1298,1548,1675,1425,4,1419,1669,1548,1298,4,1669,1553,1803,1919,4,1548,1798,1925,1675,4,1669,1919,1798,1548,4,1919,1803,2053,2169,4,1798,2048,2175,1925,4,1919,2169,2048,1798,4,2169,2053,2303,2419,4,2048,2298,2425,2175,4,2169,2419,2298,2048,4,2419,2303,2553,2669,4,2298,2548,2675,2425,4,2419,2669,2548,2298,4,2669,2553,2803,2919,4,2548,2798,2925,2675,4,2669,2919,2798,2548,4,2919,2803,3053,3169,4,2798,3048,3175,2925,4,2919,3169,3048,2798,4,3169,3053,3396,3656,4,3048,3376,3662,3175,4,3169,3656,3376,3048,4,3656,3396,3662,3376,4,159,180,560,553,4,425,675,682,432,4,180,560,682,432,4,159,425,432,180,4,553,560,810,803,4,675,925,932,682,4,560,810,932,682,4,803,810,1060,1053,4,925,1175,1182,932,4,810,1060,1182,932,4,1053,1060,1310,1303,4,1175,1425,1432,1182,4,1060,1310,1432,1182,4,1303,1310,1560,1553,4,1425,1675,1682,1432,4,1310,1560,1682,1432,4,1553,1560,1810,1803,4,1675,1925,1932,1682,4,1560,1810,1932,1682,4,1803,1810,2060,2053,4,1925,2175,2182,1932,4,1810,2060,2182,1932,4,2053,2060,2310,2303,4,2175,2425,2432,2182,4,2060,2310,2432,2182,4,2303,2310,2560,2553,4,2425,2675,2682,2432,4,2310,2560,2682,2432,4,2553,2560,2810,2803,4,2675,2925,2932,2682,4,2560,2810,2932,2682,4,2803,2810,3060,3053,4,2925,3175,3182,2932,4,2810,3060,3182,2932,4,3053,3060,3417,3396,4,3175,3662,3669,3182,4,3060,3417,3669,3182,4,3396,3417,3669,3662,4,430,201,570,680,4,430,680,683,433,4,430,433,202,201,4,680,570,820,930,4,680,930,933,683,4,930,820,1070,1180,4,930,1180,1183,933,4,1180,1070,1320,1430,4,1180,1430,1433,1183,4,1430,1320,1570,1680,4,1430,1680,1683,1433,4,1680,1570,1820,1930,4,1680,1930,1933,1683,4,1930,1820,2070,2180,4,1930,2180,2183,1933,4,2180,2070,2320,2430,4,2180,2430,2433,2183,4,2430,2320,2570,2680,4,2430,2680,2683,2433,4,2680,2570,2820,2930,4,2680,2930,2933,2683,4,2930,2820,3070,3180,4,2930,3180,3183,2933,4,3180,3070,3438,3667,4,3180,3667,3670,3183,4,3667,3438,3439,3670,4,450,700,701,451,4,201,202,451,450,4,700,950,951,701,4,950,1200,1201,951,4,1200,1450,1451,1201,4,1450,1700,1701,1451,4,1700,1950,1951,1701,4,1950,2200,2201,1951,4,2200,2450,2451,2201,4,2450,2700,2701,2451,4,2700,2950,2951,2701,4,2950,3200,3201,2951,4,3200,3687,3688,3201,4,3438,3687,3688,3439,4,223,581,710,460,4,222,580,581,223,4,459,709,710,460,4,222,223,460,459,4,581,831,960,710,4,580,830,831,581,4,709,959,960,710,4,831,1081,1210,960,4,830,1080,1081,831,4,959,1209,1210,960,4,1081,1331,1460,1210,4,1080,1330,1331,1081,4,1209,1459,1460,1210,4,1331,1581,1710,1460,4,1330,1580,1581,1331,4,1459,1709,1710,1460,4,1581,1831,1960,1710,4,1580,1830,1831,1581,4,1709,1959,1960,1710,4,1831,2081,2210,1960,4,1830,2080,2081,1831,4,1959,2209,2210,1960,4,2081,2331,2460,2210,4,2080,2330,2331,2081,4,2209,2459,2460,2210,4,2331,2581,2710,2460,4,2330,2580,2581,2331,4,2459,2709,2710,2460,4,2581,2831,2960,2710,4,2580,2830,2831,2581,4,2709,2959,2960,2710,4,2831,3081,3210,2960,4,2830,3080,3081,2831,4,2959,3209,3210,2960,4,3081,3460,3697,3210,4,3080,3459,3460,3081,4,3209,3696,3697,3210,4,3459,3696,3697,3460,4,462,712,723,473,4,243,590,712,462,4,243,462,473,264,4,712,962,973,723,4,590,840,962,712,4,962,1212,1223,973,4,840,1090,1212,962,4,1212,1462,1473,1223,4,1090,1340,1462,1212,4,1462,1712,1723,1473,4,1340,1590,1712,1462,4,1712,1962,1973,1723,4,1590,1840,1962,1712,4,1962,2212,2223,1973,4,1840,2090,2212,1962,4,2212,2462,2473,2223,4,2090,2340,2462,2212,4,2462,2712,2723,2473,4,2340,2590,2712,2462,4,2712,2962,2973,2723,4,2590,2840,2962,2712,4,2962,3212,3223,2973,4,2840,3090,3212,2962,4,3212,3699,3710,3223,4,3090,3480,3699,3212,4,3480,3501,3710,3699,4,264,473,286,285,4,3501,3522,3523,3710,4,285,286,307,306,4,3522,3543,3544,3523,4,306,307,328,327,4,3543,3564,3565,3544,4,327,328,349,348,4,3564,3585,3586,3565,4,348,349,370,369,4,3585,3606,3607,3586,4,390,640,641,391,4,369,370,391,390,4,640,890,891,641,4,890,1140,1141,891,4,1140,1390,1391,1141,4,1390,1640,1641,1391,4,1640,1890,1891,1641,4,1890,2140,2141,1891,4,2140,2390,2391,2141,4,2390,2640,2641,2391,4,2640,2890,2891,2641,4,2890,3140,3141,2891,4,3140,3627,3628,3141,4,3606,3627,3628,3607,4,13,500,501,14,4,13,14,35,34,4,500,750,751,501,4,750,1000,1001,751,4,1000,1250,1251,1001,4,1250,1500,1501,1251,4,1500,1750,1751,1501,4,1750,2000,2001,1751,4,2000,2250,2251,2001,4,2250,2500,2501,2251,4,2500,2750,2751,2501,4,2750,3000,3001,2751,4,3000,3250,3251,3001,4,3250,3271,3272,3251,4,34,35,56,55,4,3271,3292,3293,3272,4,55,56,77,76,4,3292,3313,3314,3293,4,76,77,98,97,4,3313,3334,3335,3314,4,97,98,119,118,4,3334,3355,3356,3335,4,118,421,671,539,4,118,119,140,421,4,539,671,921,789,4,789,921,1171,1039,4,1039,1171,1421,1289,4,1289,1421,1671,1539,4,1539,1671,1921,1789,4,1789,1921,2171,2039,4,2039,2171,2421,2289,4,2289,2421,2671,2539,4,2539,2671,2921,2789,4,2789,2921,3171,3039,4,3039,3171,3658,3355,4,3355,3658,3377,3356,4,421,160,554,671,4,421,140,161,160,4,671,554,804,921,4,921,804,1054,1171,4,1171,1054,1304,1421,4,1421,1304,1554,1671,4,1671,1554,1804,1921,4,1921,1804,2054,2171,4,2171,2054,2304,2421,4,2421,2304,2554,2671,4,2671,2554,2804,2921,4,2921,2804,3054,3171,4,3171,3054,3397,3658,4,3658,3397,3398,3377,4,160,181,561,554,4,181,561,684,434,4,160,161,434,181,4,554,561,811,804,4,561,811,934,684,4,804,811,1061,1054,4,811,1061,1184,934,4,1054,1061,1311,1304,4,1061,1311,1434,1184,4,1304,1311,1561,1554,4,1311,1561,1684,1434,4,1554,1561,1811,1804,4,1561,1811,1934,1684,4,1804,1811,2061,2054,4,1811,2061,2184,1934,4,2054,2061,2311,2304,4,2061,2311,2434,2184,4,2304,2311,2561,2554,4,2311,2561,2684,2434,4,2554,2561,2811,2804,4,2561,2811,2934,2684,4,2804,2811,3061,3054,4,2811,3061,3184,2934,4,3054,3061,3418,3397,4,3061,3418,3671,3184,4,3397,3418,3671,3398,4,182,562,693,443,4,433,683,562,182,4,433,182,443,202,4,562,812,943,693,4,683,933,812,562,4,812,1062,1193,943,4,933,1183,1062,812,4,1062,1312,1443,1193,4,1183,1433,1312,1062,4,1312,1562,1693,1443,4,1433,1683,1562,1312,4,1562,1812,1943,1693,4,1683,1933,1812,1562,4,1812,2062,2193,1943,4,1933,2183,2062,1812,4,2062,2312,2443,2193,4,2183,2433,2312,2062,4,2312,2562,2693,2443,4,2433,2683,2562,2312,4,2562,2812,2943,2693,4,2683,2933,2812,2562,4,2812,3062,3193,2943,4,2933,3183,3062,2812,4,3062,3419,3680,3193,4,3183,3670,3419,3062,4,3670,3439,3680,3419,4,443,693,702,452,4,202,443,452,451,4,693,943,952,702,4,943,1193,1202,952,4,1193,1443,1452,1202,4,1443,1693,1702,1452,4,1693,1943,1952,1702,4,1943,2193,2202,1952,4,2193,2443,2452,2202,4,2443,2693,2702,2452,4,2693,2943,2952,2702,4,2943,3193,3202,2952,4,3193,3680,3689,3202,4,3439,3688,3689,3680,4,451,244,591,701,4,452,702,713,463,4,244,591,713,463,4,451,452,463,244,4,701,591,841,951,4,702,952,963,713,4,591,841,963,713,4,951,841,1091,1201,4,952,1202,1213,963,4,841,1091,1213,963,4,1201,1091,1341,1451,4,1202,1452,1463,1213,4,1091,1341,1463,1213,4,1451,1341,1591,1701,4,1452,1702,1713,1463,4,1341,1591,1713,1463,4,1701,1591,1841,1951,4,1702,1952,1963,1713,4,1591,1841,1963,1713,4,1951,1841,2091,2201,4,1952,2202,2213,1963,4,1841,2091,2213,1963,4,2201,2091,2341,2451,4,2202,2452,2463,2213,4,2091,2341,2463,2213,4,2451,2341,2591,2701,4,2452,2702,2713,2463,4,2341,2591,2713,2463,4,2701,2591,2841,2951,4,2702,2952,2963,2713,4,2591,2841,2963,2713,4,2951,2841,3091,3201,4,2952,3202,3213,2963,4,2841,3091,3213,2963,4,3201,3091,3481,3688,4,3202,3689,3700,3213,4,3091,3481,3700,3213,4,3688,3481,3700,3689,4,461,265,602,711,4,461,711,714,464,4,265,602,724,474,4,461,464,474,265,4,711,602,852,961,4,711,961,964,714,4,602,852,974,724,4,961,852,1102,1211,4,961,1211,1214,964,4,852,1102,1224,974,4,1211,1102,1352,1461,4,1211,1461,1464,1214,4,1102,1352,1474,1224,4,1461,1352,1602,1711,4,1461,1711,1714,1464,4,1352,1602,1724,1474,4,1711,1602,1852,1961,4,1711,1961,1964,1714,4,1602,1852,1974,1724,4,1961,1852,2102,2211,4,1961,2211,2214,1964,4,1852,2102,2224,1974,4,2211,2102,2352,2461,4,2211,2461,2464,2214,4,2102,2352,2474,2224,4,2461,2352,2602,2711,4,2461,2711,2714,2464,4,2352,2602,2724,2474,4,2711,2602,2852,2961,4,2711,2961,2964,2714,4,2602,2852,2974,2724,4,2961,2852,3102,3211,4,2961,3211,3214,2964,4,2852,3102,3224,2974,4,3211,3102,3502,3698,4,3211,3698,3701,3214,4,3102,3502,3711,3224,4,3698,3502,3711,3701,4,473,723,603,266,4,473,266,287,286,4,723,973,853,603,4,973,1223,1103,853,4,1223,1473,1353,1103,4,1473,1723,1603,1353,4,1723,1973,1853,1603,4,1973,2223,2103,1853,4,2223,2473,2353,2103,4,2473,2723,2603,2353,4,2723,2973,2853,2603,4,2973,3223,3103,2853,4,3223,3710,3503,3103,4,3710,3523,3524,3503,4,286,287,308,307,4,3523,3544,3545,3524,4,307,308,329,328,4,3544,3565,3566,3545,4,328,329,350,349,4,3565,3586,3587,3566,4,349,350,371,370,4,3586,3607,3608,3587,4,391,641,642,392,4,370,371,392,391,4,641,891,892,642,4,891,1141,1142,892,4,1141,1391,1392,1142,4,1391,1641,1642,1392,4,1641,1891,1892,1642,4,1891,2141,2142,1892,4,2141,2391,2392,2142,4,2391,2641,2642,2392,4,2641,2891,2892,2642,4,2891,3141,3142,2892,4,3141,3628,3629,3142,4,3607,3628,3629,3608,4,14,501,502,15,4,14,15,36,35,4,501,751,752,502,4,751,1001,1002,752,4,1001,1251,1252,1002,4,1251,1501,1502,1252,4,1501,1751,1752,1502,4,1751,2001,2002,1752,4,2001,2251,2252,2002,4,2251,2501,2502,2252,4,2501,2751,2752,2502,4,2751,3001,3002,2752,4,3001,3251,3252,3002,4,3251,3272,3273,3252,4,35,36,57,56,4,3272,3293,3294,3273,4,56,57,78,77,4,3293,3314,3315,3294,4,77,78,99,98,4,3314,3335,3336,3315,4,98,99,120,119,4,3335,3356,3357,3336,4,119,120,141,140,4,3356,3377,3378,3357,4,140,141,426,161,4,3377,3398,3663,3378,4,426,676,686,436,4,434,684,686,436,4,161,426,436,434,4,676,926,936,686,4,684,934,936,686,4,926,1176,1186,936,4,934,1184,1186,936,4,1176,1426,1436,1186,4,1184,1434,1436,1186,4,1426,1676,1686,1436,4,1434,1684,1686,1436,4,1676,1926,1936,1686,4,1684,1934,1936,1686,4,1926,2176,2186,1936,4,1934,2184,2186,1936,4,2176,2426,2436,2186,4,2184,2434,2436,2186,4,2426,2676,2686,2436,4,2434,2684,2686,2436,4,2676,2926,2936,2686,4,2684,2934,2936,2686,4,2926,3176,3186,2936,4,2934,3184,3186,2936,4,3176,3663,3673,3186,4,3184,3671,3673,3186,4,3398,3671,3673,3663,4,435,203,571,685,4,435,685,563,183,4,435,183,204,203,4,685,571,821,935,4,685,935,813,563,4,935,821,1071,1185,4,935,1185,1063,813,4,1185,1071,1321,1435,4,1185,1435,1313,1063,4,1435,1321,1571,1685,4,1435,1685,1563,1313,4,1685,1571,1821,1935,4,1685,1935,1813,1563,4,1935,1821,2071,2185,4,1935,2185,2063,1813,4,2185,2071,2321,2435,4,2185,2435,2313,2063,4,2435,2321,2571,2685,4,2435,2685,2563,2313,4,2685,2571,2821,2935,4,2685,2935,2813,2563,4,2935,2821,3071,3185,4,2935,3185,3063,2813,4,3185,3071,3440,3672,4,3185,3672,3420,3063,4,3672,3440,3441,3420,4,203,224,582,571,4,203,204,225,224,4,571,582,832,821,4,821,832,1082,1071,4,1071,1082,1332,1321,4,1321,1332,1582,1571,4,1571,1582,1832,1821,4,1821,1832,2082,2071,4,2071,2082,2332,2321,4,2321,2332,2582,2571,4,2571,2582,2832,2821,4,2821,2832,3082,3071,4,3071,3082,3461,3440,4,3440,3461,3462,3441,4,224,245,592,582,4,245,592,715,465,4,224,225,465,245,4,582,592,842,832,4,592,842,965,715,4,832,842,1092,1082,4,842,1092,1215,965,4,1082,1092,1342,1332,4,1092,1342,1465,1215,4,1332,1342,1592,1582,4,1342,1592,1715,1465,4,1582,1592,1842,1832,4,1592,1842,1965,1715,4,1832,1842,2092,2082,4,1842,2092,2215,1965,4,2082,2092,2342,2332,4,2092,2342,2465,2215,4,2332,2342,2592,2582,4,2342,2592,2715,2465,4,2582,2592,2842,2832,4,2592,2842,2965,2715,4,2832,2842,3092,3082,4,2842,3092,3215,2965,4,3082,3092,3482,3461,4,3092,3482,3702,3215,4,3461,3482,3702,3462,4,246,593,725,475,4,464,714,593,246,4,474,724,725,475,4,464,246,475,474,4,593,843,975,725,4,714,964,843,593,4,724,974,975,725,4,843,1093,1225,975,4,964,1214,1093,843,4,974,1224,1225,975,4,1093,1343,1475,1225,4,1214,1464,1343,1093,4,1224,1474,1475,1225,4,1343,1593,1725,1475,4,1464,1714,1593,1343,4,1474,1724,1725,1475,4,1593,1843,1975,1725,4,1714,1964,1843,1593,4,1724,1974,1975,1725,4,1843,2093,2225,1975,4,1964,2214,2093,1843,4,1974,2224,2225,1975,4,2093,2343,2475,2225,4,2214,2464,2343,2093,4,2224,2474,2475,2225,4,2343,2593,2725,2475,4,2464,2714,2593,2343,4,2474,2724,2725,2475,4,2593,2843,2975,2725,4,2714,2964,2843,2593,4,2724,2974,2975,2725,4,2843,3093,3225,2975,4,2964,3214,3093,2843,4,2974,3224,3225,2975,4,3093,3483,3712,3225,4,3214,3701,3483,3093,4,3224,3711,3712,3225,4,3701,3711,3712,3483,4,266,603,726,476,4,266,476,288,287,4,603,853,976,726,4,853,1103,1226,976,4,1103,1353,1476,1226,4,1353,1603,1726,1476,4,1603,1853,1976,1726,4,1853,2103,2226,1976,4,2103,2353,2476,2226,4,2353,2603,2726,2476,4,2603,2853,2976,2726,4,2853,3103,3226,2976,4,3103,3503,3713,3226,4,3503,3524,3525,3713,4,287,288,309,308,4,3524,3545,3546,3525,4,308,309,330,329,4,3545,3566,3567,3546,4,329,330,351,350,4,3566,3587,3588,3567,4,350,351,372,371,4,3587,3608,3609,3588,4,392,642,643,393,4,371,372,393,392,4,642,892,893,643,4,892,1142,1143,893,4,1142,1392,1393,1143,4,1392,1642,1643,1393,4,1642,1892,1893,1643,4,1892,2142,2143,1893,4,2142,2392,2393,2143,4,2392,2642,2643,2393,4,2642,2892,2893,2643,4,2892,3142,3143,2893,4,3142,3629,3630,3143,4,3608,3629,3630,3609,4,15,502,503,16,4,15,16,37,36,4,502,752,753,503,4,752,1002,1003,753,4,1002,1252,1253,1003,4,1252,1502,1503,1253,4,1502,1752,1753,1503,4,1752,2002,2003,1753,4,2002,2252,2253,2003,4,2252,2502,2503,2253,4,2502,2752,2753,2503,4,2752,3002,3003,2753,4,3002,3252,3253,3003,4,3252,3273,3274,3253,4,36,37,58,57,4,3273,3294,3295,3274,4,57,58,79,78,4,3294,3315,3316,3295,4,78,79,100,99,4,3315,3336,3337,3316,4,99,100,121,120,4,3336,3357,3358,3337,4,120,121,422,141,4,3357,3378,3659,3358,4,422,672,677,427,4,426,676,677,427,4,141,422,427,426,4,672,922,927,677,4,676,926,927,677,4,922,1172,1177,927,4,926,1176,1177,927,4,1172,1422,1427,1177,4,1176,1426,1427,1177,4,1422,1672,1677,1427,4,1426,1676,1677,1427,4,1672,1922,1927,1677,4,1676,1926,1927,1677,4,1922,2172,2177,1927,4,1926,2176,2177,1927,4,2172,2422,2427,2177,4,2176,2426,2427,2177,4,2422,2672,2677,2427,4,2426,2676,2677,2427,4,2672,2922,2927,2677,4,2676,2926,2927,2677,4,2922,3172,3177,2927,4,2926,3176,3177,2927,4,3172,3659,3664,3177,4,3176,3663,3664,3177,4,3378,3663,3664,3659,4,162,183,563,555,4,162,555,556,163,4,162,163,184,183,4,555,563,813,805,4,555,805,806,556,4,805,813,1063,1055,4,805,1055,1056,806,4,1055,1063,1313,1305,4,1055,1305,1306,1056,4,1305,1313,1563,1555,4,1305,1555,1556,1306,4,1555,1563,1813,1805,4,1555,1805,1806,1556,4,1805,1813,2063,2055,4,1805,2055,2056,1806,4,2055,2063,2313,2305,4,2055,2305,2306,2056,4,2305,2313,2563,2555,4,2305,2555,2556,2306,4,2555,2563,2813,2805,4,2555,2805,2806,2556,4,2805,2813,3063,3055,4,2805,3055,3056,2806,4,3055,3063,3420,3399,4,3055,3399,3400,3056,4,3399,3420,3421,3400,4,184,564,694,444,4,183,184,444,204,4,564,814,944,694,4,814,1064,1194,944,4,1064,1314,1444,1194,4,1314,1564,1694,1444,4,1564,1814,1944,1694,4,1814,2064,2194,1944,4,2064,2314,2444,2194,4,2314,2564,2694,2444,4,2564,2814,2944,2694,4,2814,3064,3194,2944,4,3064,3421,3681,3194,4,3420,3441,3681,3421,4,204,444,226,225,4,3441,3462,3463,3681,4,225,226,466,465,4,3462,3702,3703,3463,4,465,267,604,715,4,466,716,727,477,4,267,604,727,477,4,465,466,477,267,4,715,604,854,965,4,716,966,977,727,4,604,854,977,727,4,965,854,1104,1215,4,966,1216,1227,977,4,854,1104,1227,977,4,1215,1104,1354,1465,4,1216,1466,1477,1227,4,1104,1354,1477,1227,4,1465,1354,1604,1715,4,1466,1716,1727,1477,4,1354,1604,1727,1477,4,1715,1604,1854,1965,4,1716,1966,1977,1727,4,1604,1854,1977,1727,4,1965,1854,2104,2215,4,1966,2216,2227,1977,4,1854,2104,2227,1977,4,2215,2104,2354,2465,4,2216,2466,2477,2227,4,2104,2354,2477,2227,4,2465,2354,2604,2715,4,2466,2716,2727,2477,4,2354,2604,2727,2477,4,2715,2604,2854,2965,4,2716,2966,2977,2727,4,2604,2854,2977,2727,4,2965,2854,3104,3215,4,2966,3216,3227,2977,4,2854,3104,3227,2977,4,3215,3104,3504,3702,4,3216,3703,3714,3227,4,3104,3504,3714,3227,4,3702,3504,3714,3703,4,476,726,728,478,4,476,478,289,288,4,726,976,978,728,4,976,1226,1228,978,4,1226,1476,1478,1228,4,1476,1726,1728,1478,4,1726,1976,1978,1728,4,1976,2226,2228,1978,4,2226,2476,2478,2228,4,2476,2726,2728,2478,4,2726,2976,2978,2728,4,2976,3226,3228,2978,4,3226,3713,3715,3228,4,3713,3525,3526,3715,4,288,289,310,309,4,3525,3546,3547,3526,4,309,310,331,330,4,3546,3567,3568,3547,4,330,331,352,351,4,3567,3588,3589,3568,4,351,352,373,372,4,3588,3609,3610,3589,4,393,643,644,394,4,372,373,394,393,4,643,893,894,644,4,893,1143,1144,894,4,1143,1393,1394,1144,4,1393,1643,1644,1394,4,1643,1893,1894,1644,4,1893,2143,2144,1894,4,2143,2393,2394,2144,4,2393,2643,2644,2394,4,2643,2893,2894,2644,4,2893,3143,3144,2894,4,3143,3630,3631,3144,4,3609,3630,3631,3610,4,16,503,504,17,4,16,17,38,37,4,503,753,754,504,4,753,1003,1004,754,4,1003,1253,1254,1004,4,1253,1503,1504,1254,4,1503,1753,1754,1504,4,1753,2003,2004,1754,4,2003,2253,2254,2004,4,2253,2503,2504,2254,4,2503,2753,2754,2504,4,2753,3003,3004,2754,4,3003,3253,3254,3004,4,3253,3274,3275,3254,4,37,38,59,58,4,3274,3295,3296,3275,4,58,59,80,79,4,3295,3316,3317,3296,4,79,80,101,100,4,3316,3337,3338,3317,4,101,531,664,414,4,100,101,414,121,4,531,781,914,664,4,781,1031,1164,914,4,1031,1281,1414,1164,4,1281,1531,1664,1414,4,1531,1781,1914,1664,4,1781,2031,2164,1914,4,2031,2281,2414,2164,4,2281,2531,2664,2414,4,2531,2781,2914,2664,4,2781,3031,3164,2914,4,3031,3338,3651,3164,4,3337,3358,3651,3338,4,414,664,673,423,4,422,672,673,423,4,121,414,423,422,4,664,914,923,673,4,672,922,923,673,4,914,1164,1173,923,4,922,1172,1173,923,4,1164,1414,1423,1173,4,1172,1422,1423,1173,4,1414,1664,1673,1423,4,1422,1672,1673,1423,4,1664,1914,1923,1673,4,1672,1922,1923,1673,4,1914,2164,2173,1923,4,1922,2172,2173,1923,4,2164,2414,2423,2173,4,2172,2422,2423,2173,4,2414,2664,2673,2423,4,2422,2672,2673,2423,4,2664,2914,2923,2673,4,2672,2922,2923,2673,4,2914,3164,3173,2923,4,2922,3172,3173,2923,4,3164,3651,3660,3173,4,3172,3659,3660,3173,4,3358,3659,3660,3651,4,142,163,556,549,4,142,549,550,143,4,142,143,164,163,4,549,556,806,799,4,549,799,800,550,4,799,806,1056,1049,4,799,1049,1050,800,4,1049,1056,1306,1299,4,1049,1299,1300,1050,4,1299,1306,1556,1549,4,1299,1549,1550,1300,4,1549,1556,1806,1799,4,1549,1799,1800,1550,4,1799,1806,2056,2049,4,1799,2049,2050,1800,4,2049,2056,2306,2299,4,2049,2299,2300,2050,4,2299,2306,2556,2549,4,2299,2549,2550,2300,4,2549,2556,2806,2799,4,2549,2799,2800,2550,4,2799,2806,3056,3049,4,2799,3049,3050,2800,4,3049,3056,3400,3379,4,3049,3379,3380,3050,4,3379,3400,3401,3380,4,163,164,185,184,4,3400,3421,3422,3401,4,184,205,572,564,4,205,572,695,445,4,184,185,445,205,4,564,572,822,814,4,572,822,945,695,4,814,822,1072,1064,4,822,1072,1195,945,4,1064,1072,1322,1314,4,1072,1322,1445,1195,4,1314,1322,1572,1564,4,1322,1572,1695,1445,4,1564,1572,1822,1814,4,1572,1822,1945,1695,4,1814,1822,2072,2064,4,1822,2072,2195,1945,4,2064,2072,2322,2314,4,2072,2322,2445,2195,4,2314,2322,2572,2564,4,2322,2572,2695,2445,4,2564,2572,2822,2814,4,2572,2822,2945,2695,4,2814,2822,3072,3064,4,2822,3072,3195,2945,4,3064,3072,3442,3421,4,3072,3442,3682,3195,4,3421,3442,3682,3422,4,206,573,703,453,4,444,694,573,206,4,444,206,453,226,4,573,823,953,703,4,694,944,823,573,4,823,1073,1203,953,4,944,1194,1073,823,4,1073,1323,1453,1203,4,1194,1444,1323,1073,4,1323,1573,1703,1453,4,1444,1694,1573,1323,4,1573,1823,1953,1703,4,1694,1944,1823,1573,4,1823,2073,2203,1953,4,1944,2194,2073,1823,4,2073,2323,2453,2203,4,2194,2444,2323,2073,4,2323,2573,2703,2453,4,2444,2694,2573,2323,4,2573,2823,2953,2703,4,2694,2944,2823,2573,4,2823,3073,3203,2953,4,2944,3194,3073,2823,4,3073,3443,3690,3203,4,3194,3681,3443,3073,4,3681,3463,3690,3443,4,453,703,717,467,4,466,716,717,467,4,226,453,467,466,4,703,953,967,717,4,716,966,967,717,4,953,1203,1217,967,4,966,1216,1217,967,4,1203,1453,1467,1217,4,1216,1466,1467,1217,4,1453,1703,1717,1467,4,1466,1716,1717,1467,4,1703,1953,1967,1717,4,1716,1966,1967,1717,4,1953,2203,2217,1967,4,1966,2216,2217,1967,4,2203,2453,2467,2217,4,2216,2466,2467,2217,4,2453,2703,2717,2467,4,2466,2716,2717,2467,4,2703,2953,2967,2717,4,2716,2966,2967,2717,4,2953,3203,3217,2967,4,2966,3216,3217,2967,4,3203,3690,3704,3217,4,3216,3703,3704,3217,4,3463,3703,3704,3690,4,247,268,605,594,4,247,594,718,468,4,268,605,729,479,4,247,468,479,268,4,594,605,855,844,4,594,844,968,718,4,605,855,979,729,4,844,855,1105,1094,4,844,1094,1218,968,4,855,1105,1229,979,4,1094,1105,1355,1344,4,1094,1344,1468,1218,4,1105,1355,1479,1229,4,1344,1355,1605,1594,4,1344,1594,1718,1468,4,1355,1605,1729,1479,4,1594,1605,1855,1844,4,1594,1844,1968,1718,4,1605,1855,1979,1729,4,1844,1855,2105,2094,4,1844,2094,2218,1968,4,1855,2105,2229,1979,4,2094,2105,2355,2344,4,2094,2344,2468,2218,4,2105,2355,2479,2229,4,2344,2355,2605,2594,4,2344,2594,2718,2468,4,2355,2605,2729,2479,4,2594,2605,2855,2844,4,2594,2844,2968,2718,4,2605,2855,2979,2729,4,2844,2855,3105,3094,4,2844,3094,3218,2968,4,2855,3105,3229,2979,4,3094,3105,3505,3484,4,3094,3484,3705,3218,4,3105,3505,3716,3229,4,3484,3505,3716,3705,4,269,606,613,290,4,478,728,606,269,4,478,269,290,289,4,606,856,863,613,4,728,978,856,606,4,856,1106,1113,863,4,978,1228,1106,856,4,1106,1356,1363,1113,4,1228,1478,1356,1106,4,1356,1606,1613,1363,4,1478,1728,1606,1356,4,1606,1856,1863,1613,4,1728,1978,1856,1606,4,1856,2106,2113,1863,4,1978,2228,2106,1856,4,2106,2356,2363,2113,4,2228,2478,2356,2106,4,2356,2606,2613,2363,4,2478,2728,2606,2356,4,2606,2856,2863,2613,4,2728,2978,2856,2606,4,2856,3106,3113,2863,4,2978,3228,3106,2856,4,3106,3506,3527,3113,4,3228,3715,3506,3106,4,3715,3526,3527,3506,4,289,290,311,310,4,3526,3547,3548,3527,4,310,311,332,331,4,3547,3568,3569,3548,4,331,332,353,352,4,3568,3589,3590,3569,4,352,353,374,373,4,3589,3610,3611,3590,4,394,644,645,395,4,373,374,395,394,4,644,894,895,645,4,894,1144,1145,895,4,1144,1394,1395,1145,4,1394,1644,1645,1395,4,1644,1894,1895,1645,4,1894,2144,2145,1895,4,2144,2394,2395,2145,4,2394,2644,2645,2395,4,2644,2894,2895,2645,4,2894,3144,3145,2895,4,3144,3631,3632,3145,4,3610,3631,3632,3611,4,17,504,505,18,4,17,18,39,38,4,504,754,755,505,4,754,1004,1005,755,4,1004,1254,1255,1005,4,1254,1504,1505,1255,4,1504,1754,1755,1505,4,1754,2004,2005,1755,4,2004,2254,2255,2005,4,2254,2504,2505,2255,4,2504,2754,2755,2505,4,2754,3004,3005,2755,4,3004,3254,3255,3005,4,3254,3275,3276,3255,4,38,39,60,59,4,3275,3296,3297,3276,4,59,60,81,80,4,3296,3317,3318,3297,4,80,81,102,101,4,3317,3338,3339,3318,4,101,122,540,531,4,101,102,123,122,4,531,540,790,781,4,781,790,1040,1031,4,1031,1040,1290,1281,4,1281,1290,1540,1531,4,1531,1540,1790,1781,4,1781,1790,2040,2031,4,2031,2040,2290,2281,4,2281,2290,2540,2531,4,2531,2540,2790,2781,4,2781,2790,3040,3031,4,3031,3040,3359,3338,4,3338,3359,3360,3339,4,122,143,550,540,4,122,123,144,143,4,540,550,800,790,4,790,800,1050,1040,4,1040,1050,1300,1290,4,1290,1300,1550,1540,4,1540,1550,1800,1790,4,1790,1800,2050,2040,4,2040,2050,2300,2290,4,2290,2300,2550,2540,4,2540,2550,2800,2790,4,2790,2800,3050,3040,4,3040,3050,3380,3359,4,3359,3380,3381,3360,4,143,144,165,164,4,3380,3401,3402,3381,4,164,165,186,185,4,3401,3422,3423,3402,4,185,186,207,445,4,3422,3682,3444,3423,4,445,227,583,695,4,445,207,228,227,4,695,583,833,945,4,945,833,1083,1195,4,1195,1083,1333,1445,4,1445,1333,1583,1695,4,1695,1583,1833,1945,4,1945,1833,2083,2195,4,2195,2083,2333,2445,4,2445,2333,2583,2695,4,2695,2583,2833,2945,4,2945,2833,3083,3195,4,3195,3083,3464,3682,4,3682,3464,3465,3444,4,227,248,595,583,4,248,595,719,469,4,227,228,469,248,4,583,595,845,833,4,595,845,969,719,4,833,845,1095,1083,4,845,1095,1219,969,4,1083,1095,1345,1333,4,1095,1345,1469,1219,4,1333,1345,1595,1583,4,1345,1595,1719,1469,4,1583,1595,1845,1833,4,1595,1845,1969,1719,4,1833,1845,2095,2083,4,1845,2095,2219,1969,4,2083,2095,2345,2333,4,2095,2345,2469,2219,4,2333,2345,2595,2583,4,2345,2595,2719,2469,4,2583,2595,2845,2833,4,2595,2845,2969,2719,4,2833,2845,3095,3083,4,2845,3095,3219,2969,4,3083,3095,3485,3464,4,3095,3485,3706,3219,4,3464,3485,3706,3465,4,249,596,730,480,4,468,718,596,249,4,468,249,480,479,4,596,846,980,730,4,718,968,846,596,4,846,1096,1230,980,4,968,1218,1096,846,4,1096,1346,1480,1230,4,1218,1468,1346,1096,4,1346,1596,1730,1480,4,1468,1718,1596,1346,4,1596,1846,1980,1730,4,1718,1968,1846,1596,4,1846,2096,2230,1980,4,1968,2218,2096,1846,4,2096,2346,2480,2230,4,2218,2468,2346,2096,4,2346,2596,2730,2480,4,2468,2718,2596,2346,4,2596,2846,2980,2730,4,2718,2968,2846,2596,4,2846,3096,3230,2980,4,2968,3218,3096,2846,4,3096,3486,3717,3230,4,3218,3705,3486,3096,4,3705,3716,3717,3486,4,479,290,613,729,4,480,730,734,484,4,479,480,484,290,4,729,613,863,979,4,730,980,984,734,4,979,863,1113,1229,4,980,1230,1234,984,4,1229,1113,1363,1479,4,1230,1480,1484,1234,4,1479,1363,1613,1729,4,1480,1730,1734,1484,4,1729,1613,1863,1979,4,1730,1980,1984,1734,4,1979,1863,2113,2229,4,1980,2230,2234,1984,4,2229,2113,2363,2479,4,2230,2480,2484,2234,4,2479,2363,2613,2729,4,2480,2730,2734,2484,4,2729,2613,2863,2979,4,2730,2980,2984,2734,4,2979,2863,3113,3229,4,2980,3230,3234,2984,4,3229,3113,3527,3716,4,3230,3717,3721,3234,4,3716,3527,3721,3717,4,290,484,312,311,4,3527,3548,3549,3721,4,311,312,333,332,4,3548,3569,3570,3549,4,332,333,354,353,4,3569,3590,3591,3570,4,353,354,375,374,4,3590,3611,3612,3591,4,395,645,646,396,4,374,375,396,395,4,645,895,896,646,4,895,1145,1146,896,4,1145,1395,1396,1146,4,1395,1645,1646,1396,4,1645,1895,1896,1646,4,1895,2145,2146,1896,4,2145,2395,2396,2146,4,2395,2645,2646,2396,4,2645,2895,2896,2646,4,2895,3145,3146,2896,4,3145,3632,3633,3146,4,3611,3632,3633,3612,4,18,505,506,19,4,18,19,40,39,4,505,755,756,506,4,755,1005,1006,756,4,1005,1255,1256,1006,4,1255,1505,1506,1256,4,1505,1755,1756,1506,4,1755,2005,2006,1756,4,2005,2255,2256,2006,4,2255,2505,2506,2256,4,2505,2755,2756,2506,4,2755,3005,3006,2756,4,3005,3255,3256,3006,4,3255,3276,3277,3256,4,39,40,61,60,4,3276,3297,3298,3277,4,60,61,82,81,4,3297,3318,3319,3298,4,81,82,103,102,4,3318,3339,3340,3319,4,102,103,124,123,4,3339,3360,3361,3340,4,123,124,145,144,4,3360,3381,3382,3361,4,144,145,166,165,4,3381,3402,3403,3382,4,165,166,187,186,4,3402,3423,3424,3403,4,186,187,208,207,4,3423,3444,3445,3424,4,207,208,229,228,4,3444,3465,3466,3445,4,228,229,250,469,4,3465,3706,3487,3466,4,469,270,607,719,4,469,250,271,270,4,719,607,857,969,4,969,857,1107,1219,4,1219,1107,1357,1469,4,1469,1357,1607,1719,4,1719,1607,1857,1969,4,1969,1857,2107,2219,4,2219,2107,2357,2469,4,2469,2357,2607,2719,4,2719,2607,2857,2969,4,2969,2857,3107,3219,4,3219,3107,3507,3706,4,3706,3507,3508,3487,4,270,291,614,607,4,291,614,615,292,4,270,271,292,291,4,607,614,864,857,4,614,864,865,615,4,857,864,1114,1107,4,864,1114,1115,865,4,1107,1114,1364,1357,4,1114,1364,1365,1115,4,1357,1364,1614,1607,4,1364,1614,1615,1365,4,1607,1614,1864,1857,4,1614,1864,1865,1615,4,1857,1864,2114,2107,4,1864,2114,2115,1865,4,2107,2114,2364,2357,4,2114,2364,2365,2115,4,2357,2364,2614,2607,4,2364,2614,2615,2365,4,2607,2614,2864,2857,4,2614,2864,2865,2615,4,2857,2864,3114,3107,4,2864,3114,3115,2865,4,3107,3114,3528,3507,4,3114,3528,3529,3115,4,3507,3528,3529,3508,4,484,734,615,292,4,484,292,313,312,4,734,984,865,615,4,984,1234,1115,865,4,1234,1484,1365,1115,4,1484,1734,1615,1365,4,1734,1984,1865,1615,4,1984,2234,2115,1865,4,2234,2484,2365,2115,4,2484,2734,2615,2365,4,2734,2984,2865,2615,4,2984,3234,3115,2865,4,3234,3721,3529,3115,4,3721,3549,3550,3529,4,312,313,334,333,4,3549,3570,3571,3550,4,333,334,355,354,4,3570,3591,3592,3571,4,354,355,376,375,4,3591,3612,3613,3592,4,396,646,647,397,4,375,376,397,396,4,646,896,897,647,4,896,1146,1147,897,4,1146,1396,1397,1147,4,1396,1646,1647,1397,4,1646,1896,1897,1647,4,1896,2146,2147,1897,4,2146,2396,2397,2147,4,2396,2646,2647,2397,4,2646,2896,2897,2647,4,2896,3146,3147,2897,4,3146,3633,3634,3147,4,3612,3633,3634,3613,4,20,507,509,41,4,19,506,507,20,4,19,20,41,40,4,507,757,759,509,4,506,756,757,507,4,757,1007,1009,759,4,756,1006,1007,757,4,1007,1257,1259,1009,4,1006,1256,1257,1007,4,1257,1507,1509,1259,4,1256,1506,1507,1257,4,1507,1757,1759,1509,4,1506,1756,1757,1507,4,1757,2007,2009,1759,4,1756,2006,2007,1757,4,2007,2257,2259,2009,4,2006,2256,2257,2007,4,2257,2507,2509,2259,4,2256,2506,2507,2257,4,2507,2757,2759,2509,4,2506,2756,2757,2507,4,2757,3007,3009,2759,4,2756,3006,3007,2757,4,3007,3257,3278,3009,4,3006,3256,3257,3007,4,3256,3277,3278,3257,4,41,509,513,62,4,40,41,62,61,4,509,759,763,513,4,759,1009,1013,763,4,1009,1259,1263,1013,4,1259,1509,1513,1263,4,1509,1759,1763,1513,4,1759,2009,2013,1763,4,2009,2259,2263,2013,4,2259,2509,2513,2263,4,2509,2759,2763,2513,4,2759,3009,3013,2763,4,3009,3278,3299,3013,4,3277,3298,3299,3278,4,62,513,522,83,4,61,62,83,82,4,513,763,772,522,4,763,1013,1022,772,4,1013,1263,1272,1022,4,1263,1513,1522,1272,4,1513,1763,1772,1522,4,1763,2013,2022,1772,4,2013,2263,2272,2022,4,2263,2513,2522,2272,4,2513,2763,2772,2522,4,2763,3013,3022,2772,4,3013,3299,3320,3022,4,3298,3319,3320,3299,4,83,522,532,104,4,82,83,104,103,4,522,772,782,532,4,772,1022,1032,782,4,1022,1272,1282,1032,4,1272,1522,1532,1282,4,1522,1772,1782,1532,4,1772,2022,2032,1782,4,2022,2272,2282,2032,4,2272,2522,2532,2282,4,2522,2772,2782,2532,4,2772,3022,3032,2782,4,3022,3320,3341,3032,4,3319,3340,3341,3320,4,104,532,541,125,4,103,104,125,124,4,532,782,791,541,4,782,1032,1041,791,4,1032,1282,1291,1041,4,1282,1532,1541,1291,4,1532,1782,1791,1541,4,1782,2032,2041,1791,4,2032,2282,2291,2041,4,2282,2532,2541,2291,4,2532,2782,2791,2541,4,2782,3032,3041,2791,4,3032,3341,3362,3041,4,3340,3361,3362,3341,4,125,541,551,146,4,124,125,146,145,4,541,791,801,551,4,791,1041,1051,801,4,1041,1291,1301,1051,4,1291,1541,1551,1301,4,1541,1791,1801,1551,4,1791,2041,2051,1801,4,2041,2291,2301,2051,4,2291,2541,2551,2301,4,2541,2791,2801,2551,4,2791,3041,3051,2801,4,3041,3362,3383,3051,4,3361,3382,3383,3362,4,146,551,557,167,4,145,146,167,166,4,551,801,807,557,4,801,1051,1057,807,4,1051,1301,1307,1057,4,1301,1551,1557,1307,4,1551,1801,1807,1557,4,1801,2051,2057,1807,4,2051,2301,2307,2057,4,2301,2551,2557,2307,4,2551,2801,2807,2557,4,2801,3051,3057,2807,4,3051,3383,3404,3057,4,3382,3403,3404,3383,4,167,557,565,188,4,166,167,188,187,4,557,807,815,565,4,807,1057,1065,815,4,1057,1307,1315,1065,4,1307,1557,1565,1315,4,1557,1807,1815,1565,4,1807,2057,2065,1815,4,2057,2307,2315,2065,4,2307,2557,2565,2315,4,2557,2807,2815,2565,4,2807,3057,3065,2815,4,3057,3404,3425,3065,4,3403,3424,3425,3404,4,188,565,574,209,4,187,188,209,208,4,565,815,824,574,4,815,1065,1074,824,4,1065,1315,1324,1074,4,1315,1565,1574,1324,4,1565,1815,1824,1574,4,1815,2065,2074,1824,4,2065,2315,2324,2074,4,2315,2565,2574,2324,4,2565,2815,2824,2574,4,2815,3065,3074,2824,4,3065,3425,3446,3074,4,3424,3445,3446,3425,4,209,574,584,230,4,208,209,230,229,4,574,824,834,584,4,824,1074,1084,834,4,1074,1324,1334,1084,4,1324,1574,1584,1334,4,1574,1824,1834,1584,4,1824,2074,2084,1834,4,2074,2324,2334,2084,4,2324,2574,2584,2334,4,2574,2824,2834,2584,4,2824,3074,3084,2834,4,3074,3446,3467,3084,4,3445,3466,3467,3446,4,230,584,597,251,4,229,230,251,250,4,584,834,847,597,4,834,1084,1097,847,4,1084,1334,1347,1097,4,1334,1584,1597,1347,4,1584,1834,1847,1597,4,1834,2084,2097,1847,4,2084,2334,2347,2097,4,2334,2584,2597,2347,4,2584,2834,2847,2597,4,2834,3084,3097,2847,4,3084,3467,3488,3097,4,3466,3487,3488,3467,4,251,597,608,272,4,250,251,272,271,4,597,847,858,608,4,847,1097,1108,858,4,1097,1347,1358,1108,4,1347,1597,1608,1358,4,1597,1847,1858,1608,4,1847,2097,2108,1858,4,2097,2347,2358,2108,4,2347,2597,2608,2358,4,2597,2847,2858,2608,4,2847,3097,3108,2858,4,3097,3488,3509,3108,4,3487,3508,3509,3488,4,272,608,616,293,4,271,272,293,292,4,608,858,866,616,4,858,1108,1116,866,4,1108,1358,1366,1116,4,1358,1608,1616,1366,4,1608,1858,1866,1616,4,1858,2108,2116,1866,4,2108,2358,2366,2116,4,2358,2608,2616,2366,4,2608,2858,2866,2616,4,2858,3108,3116,2866,4,3108,3509,3530,3116,4,3508,3529,3530,3509,4,293,616,620,314,4,292,293,314,313,4,616,866,870,620,4,866,1116,1120,870,4,1116,1366,1370,1120,4,1366,1616,1620,1370,4,1616,1866,1870,1620,4,1866,2116,2120,1870,4,2116,2366,2370,2120,4,2366,2616,2620,2370,4,2616,2866,2870,2620,4,2866,3116,3120,2870,4,3116,3530,3551,3120,4,3529,3550,3551,3530,4,314,620,623,335,4,313,314,335,334,4,620,870,873,623,4,870,1120,1123,873,4,1120,1370,1373,1123,4,1370,1620,1623,1373,4,1620,1870,1873,1623,4,1870,2120,2123,1873,4,2120,2370,2373,2123,4,2370,2620,2623,2373,4,2620,2870,2873,2623,4,2870,3120,3123,2873,4,3120,3551,3572,3123,4,3550,3571,3572,3551,4,335,623,625,356,4,334,335,356,355,4,623,873,875,625,4,873,1123,1125,875,4,1123,1373,1375,1125,4,1373,1623,1625,1375,4,1623,1873,1875,1625,4,1873,2123,2125,1875,4,2123,2373,2375,2125,4,2373,2623,2625,2375,4,2623,2873,2875,2625,4,2873,3123,3125,2875,4,3123,3572,3593,3125,4,3571,3592,3593,3572,4,356,625,627,377,4,355,356,377,376,4,625,875,877,627,4,875,1125,1127,877,4,1125,1375,1377,1127,4,1375,1625,1627,1377,4,1625,1875,1877,1627,4,1875,2125,2127,1877,4,2125,2375,2377,2127,4,2375,2625,2627,2377,4,2625,2875,2877,2627,4,2875,3125,3127,2877,4,3125,3593,3614,3127,4,3592,3613,3614,3593,4,377,627,648,398,4,397,647,648,398,4,376,377,398,397,4,627,877,898,648,4,647,897,898,648,4,877,1127,1148,898,4,897,1147,1148,898,4,1127,1377,1398,1148,4,1147,1397,1398,1148,4,1377,1627,1648,1398,4,1397,1647,1648,1398,4,1627,1877,1898,1648,4,1647,1897,1898,1648,4,1877,2127,2148,1898,4,1897,2147,2148,1898,4,2127,2377,2398,2148,4,2147,2397,2398,2148,4,2377,2627,2648,2398,4,2397,2647,2648,2398,4,2627,2877,2898,2648,4,2647,2897,2898,2648,4,2877,3127,3148,2898,4,2897,3147,3148,2898,4,3127,3614,3635,3148,4,3147,3634,3635,3148,4,3613,3634,3635,3614]"),DiscreteProperty_Polys_namespaceObject=__webpack_require__.t(Polys_namespaceObject,2),Props_namespaceObject=JSON.parse("[4,4,4,4,4,4,4,9,9,11,11,8,8,7,7,2,2,1,1,5,5,6,6,0,4,4,4,4,10,6,6,2,1,11,6,9,9,1,6,6,6,6,5,10,11,9,11,8,8,6,5,4,4,4,4,4,8,1,9,3,5,10,11,3,3,5,7,7,10,10,1,0,11,11,3,3,3,0,4,2,5,5,8,8,10,7,6,6,3,8,4,0,7,6,0,6,5,5,8,7,1,6,4,11,7,3,3,3,0,11,4,4,3,10,4,5,0,4,2,3,5,3,10,10,8,8,9,7,11,9,4,5,1,1,11,2,1,1,10,10,10,10,0,7,7,3,8,3,9,5,2,2,9,9,4,5,4,0,11,6,7,10,6,1,5,5,7,7,4,3,8,2,5,7,8,0,5,1,5,5,5,5,7,0,10,4,2,5,9,8,10,8,10,10,10,10,11,5,8,2,3,6,9,10,11,5,8,8,11,11,0,9,0,0,2,5,3,5,3,7,1,1,7,7,8,10,3,4,9,11,1,9,1,5,10,10,2,2,4,5,5,4,11,4,0,0,10,11,4,4,11,11,11,2,2,10,10,8,8,7,7,4,4,0,6,2,2,3,3,11,11,1,1,5,5,5,2,2,1,5,8,8,7,3,6,1,6,10,11,11,8,4,11,11,4,3,11,3,7,5,4,8,8,0,3,3,9,9,9,2,2,8,8,2,2,1,1,11,11,0,1,11,11,1,1,3,3,10,10,11,11,11,0,4,0,8,9,2,11,3,1,1,4,8,10,7,5,3,9,10,0,9,5,6,6,7,7,2,9,9,10,9,3,7,10,10,8,2,4,9,2,2,1,1,11,9,1,4,2,8,8,4,2,10,7,7,9,5,10,7,10,10,10,10,10,5,5,11,11,0,3,6,6,5,5,8,8,9,9,0,2,0,4,9,9,9,9,9,7,0,0,4,9,6,5,6,3,6,9,9,6,6,10,10,4,0,10,2,8,4,1,8,8,3,2,6,5,10,1,1,6,5,7,10,4,2,5,5,1,9,4,4,3,10,11,4,7,7,5,6,4,4,1,11,5,1,8,3,7,7,6,6,10,11,5,11,2,1,1,9,10,2,2,2,2,3,7,10,7,7,7,3,0,5,1,11,10,3,3,9,5,5,0,5,3,4,7,11,3,2,11,4,11,0,7,7,2,8,4,7,2,5,8,9,9,10,9,5,11,8,2,0,6,6,6,8,8,11,11,8,8,5,5,10,10,11,11,8,8,0,11,6,6,11,11,8,8,8,9,9,9,5,5,0,7,9,9,0,4,0,5,4,4,10,10,0,0,4,4,7,7,1,1,1,11,11,3,9,8,8,10,10,2,8,7,5,7,9,4,1,7,7,3,3,2,2,11,11,2,6,5,6,0,11,5,5,0,8,7,8,3,3,6,6,9,5,0,10,1,4,6,4,0,8,1,1,1,1,1,1,1,0,3,5,5,8,8,11,11,8,8,4,4,2,2,4,4,11,11,11,7,1,2,7,0,9,11,1,11,9,11,4,0,4,9,9,1,3,5,8,4,11,1,2,6,5,4,4,9,9,9,1,1,5,5,2,2,7,7,11,11,3,3,4,4,6,6,9,9,4,4,8,8,8,8,11,0,0,7,1,9,9,0,10,3,6,6,11,0,10,2,5,2,2,5,5,1,10,7,3,11,5,11,3,10,10,3,3,8,6,11,1,0,3,10,10,10,10,10,2,2,10,10,7,7,11,11,4,4,7,7,2,2,11,11,2,2,3,3,3,0,4,1,10,1,1,5,10,7,3,6,7,5,5,3,5,9,10,5,6,2,6,6,4,3,2,8,8,8,10,10,8,8,9,9,11,11,10,10,4,4,10,10,4,4,3,3,1,1,1,1,1,8,8,11,8,7,10,4,11,6,7,2,6,0,7,4,11,11,11,6,6,7,7,7,9,0,6,10,4,4,10,0,0,3,3,5,5,0,5,1,8,1,0,1,4,2,10,5,5,5,5,9,11,11,6,9,0,8,5,7,5,6,6,3,3,3,0,5,3,3,9,9,9,9,4,4,6,6,6,6,4,4,4,4,0,2,11,11,11,4,6,3,3,6,0,0,5,3,9,8,7,11,3,1,1,10,10,7,8,9,9,5,4,4,5,8,11,6,6,7,1,8,8,1,4,8,3,1,5,4,4,1,5,4,10,10,4,7,5,10,4,5,5,1,1,1,0,11,6,6,7,7,10,10,7,7,9,9,4,4,4,4,2,2,8,8,7,7,7,0,3,7,11,0,4,5,3,11,11,3,3,7,11,5,7,5,9,8,5,3,3,8,8,10,2,11,3,8,9,8,9,7,8,9,9,0,5,10,10,10,3,3,4,4,3,3,7,7,2,2,9,9,6,6,1,1,5,5,2,2,4,4,4,5,5,5,1,1,6,6,7,7,2,2,2,2,2,2,0,0,0,1,10,10,10,10,4,4,4,4,4,10,1,3,10,10,8,5,8,0,7,2,2,10,10,10,3,3,4,4,2,2,1,1,2,2,8,8,7,7,8,8,11,11,6,6,4,4,4,2,4,9,8,2,2,3,3,0,8,7,4,6,7,8,7,5,0,6,6,0,10,5,4,6,3,1,11,4,1,7,10,2,2,4,4,4,7,7,0,2,9,9,5,5,3,3,4,4,8,8,3,3,0,11,1,1,9,9,9,11,11,1,2,10,10,1,10,5,7,3,2,7,7,7,9,0,9,6,5,0,6,9,9,6,11,2,1,0,5,6,11,3,10,5,5,11,11,1,3,6,8,10,2,4,2,6,2,4,4,2,6,0,0,7,7,7,3,3,9,9,4,4,10,10,3,3,10,10,7,7,10,10,4,4,5,5,11,11,11,9,9,0,8,6,3,10,8,2,6,9,11,5,5,3,3,3,2,2,10,10,4,4,5,5,4,4,11,11,11,11,1,1,10,10,9,9,3,3,3,4,4,9,11,9,5,9,3,11,2,0,1,11,11,3,11,1,4,3,3,3,1,1,1,1,10,10,6,6,10,10,10,10,1,1,6,6,0,7,9,9,2,2,2,7,7,7,4,4,3,3,8,8,10,10,2,2,4,4,2,2,7,7,1,1,6,6,5,5,5,2,2,2,5,5,4,4,11,11,0,5,1,1,8,8,3,3,2,2,7,7,9,9,8,8,8,1,2,6,7,2,2,2,6,0,3,9,9,5,9,10,10,0,0,4,9,8,0,5,5,11,11,1,6,9,9,5,3,0,6,8,10,11,11,6,4,10,5,7,9,5,10,6,6,4,9,8,7,8,1,5,4,2,7,2,2,6,6,10,7,8,7,8,6,6,5,10,11,0,8,8,4,10,10,5,4,3,1,7,10,8,0,2,10,1,1,6,6,6,9,9,6,6,9,9,11,11,0,3,5,5,2,2,5,5,7,7,8,8,6,6,6,11,11,10,7,8,5,6,8,8,8,3,4,9,9,3,3,3,7,1,11,0,2,10,7,5,7,7,7,7,11,5,3,2,10,6,8,1,8,7,7,3,2,4,9,1,7,4,8,1,10,7,7,4,4,2,4,10,3,0,5,7,0,7,1,5,5,9,5,5,5,9,5,8,2,0,11,5,8,7,3,10,10,2,2,10,4,10,6,2,0,0,9,11,1,7,7,10,3,6,6,11,10,8,10,11,5,10,5,6,6,6,6,6,1,2,9,2,2,2,10,10,0,4,9,9,2,2,9,9,4,4,10,10,6,6,2,2,10,10,4,4,4,0,7,7,9,9,10,10,10,10,9,9,11,11,3,3,11,11,6,6,3,3,2,2,4,4,4,10,10,10,1,1,8,8,5,5,2,2,5,5,6,6,1,1,0,4,8,8,5,5,9,9,9,4,4,9,7,0,3,4,1,4,2,10,9,11,11,9,1,7,8,10,11,11,2,0,6,1,1,10,5,2,0,4,11,9,9,2,8,5,5,10,10,1,2,5,5,2,0,2,11,11,6,0,10,10,9,8,8,0,10,2,9,9,3,7,1,1,0,4,4,6,6,6,3,3,4,4,7,7,9,9,7,7,8,8,1,1,8,8,5,5,4,4,4,4,4,2,8,3,3,3,10,10,6,6,2,2,6,6,11,11,6,6,3,3,3,3,0,7,5,5,1,1,1,10,10,10,1,1,7,7,10,10,5,5,6,6,11,11,0,6,1,1,10,10,6,6,4,4,4,9,9,9,10,10,9,9,5,5,6,6,1,1,6,6,3,3,4,4,9,9,0,7,3,3,3,10,10,10,10,10,4,4,4,4,8,8,8,8,1,1,1,1,5,5,5,5,10,10,10,10,1,1,1,1,3,3,3,3,8,8,8,8,7,7,7,7,8,8,8,8,11,11,11,11,11,8,8,8,8,11,11,11,2,2,2,11,11,11,5,5,5,2,2,2,4,4,4,11,11,11,7,7,7,10,10,10,3,3,3,10,10,10,10,4,4,4,4,1,1,1,1,1,1,8,8,8,5,5,5,9,9,9,11,11,11,2,2,2,9,9,9,11,11,11,1,1,1,5,5,5,5,3,3,0,2,9,2,7,1,7,8,7,9,8,8,6,10,9,0,10,2,6,11,7,8,4,4,7,10,3,1,3,1,10,2,2,4,2,2,5,5,3,5,3,11,0,0,11,4,6,6,2,2,7,6,8,11,7,7,6,1,9,6,6,2,1,8,2,0,3,3,4,2,11,11,11,1,1,7,7,3,3,4,4,2,2,1,1,10,10,10,10,10,10,10,10,3,3,3,11,11,11,11,0,4,4,0,6,6,9,9,9,8,8,8,8,8,8,9,9,9,2,2,2,3,3,3,0,5,5,10,10,10,5,5,5,5,3,3,3,3,0,1,1,9,9,9,3,3,3,6,6,6,4,4,4,1,1,1,1,1,1,2,2,2,9,9,9,9,9,9,9,9,9,9,3,3,3,0,10,1,1,8,8,9,9,10,10,7,7,4,4,0,5,7,7,5,5,0,8,8,10,10,0,5,10,0,0,8,3,0,11,6,3,3,1,1,1,1,8,8,8,10,10,10,11,11,11,4,4,4,1,1,1,7,7,7,4,4,4,0,2,2,4,4,4,7,7,7,9,9,9,9,4,4,4,4,4,8,8,6,6,11,11,3,3,1,1,8,8,2,2,4,4,11,11,4,4,4,5,1,9,7,11,1,11,0,4,9,6,6,2,6,0,11,9,5,3,11,10,5,4,4,7,7,9,2,5,8,10,9,1,6,9,5,11,11,0,5,4,1,3,0,11,4,3,3,2,8,2,11,11,9,10,2,6,3,9,9,4,4,0,5,1,9,7,6,2,10,5,11,8,8,4,4,4,11,11,2,2,10,10,11,11,11,11,3,3,1,1,9,9,0,11,0,7,8,8,8,10,10,10,2,2,11,11,6,6,3,3,7,7,4,4,2,2,7,7,6,6,4,4,3,3,3,11,11,5,9,7,11,11,6,4,10,1,4,3,3,1,1,1,1,0,2,2,9,9,9,10,10,10,4,4,4,0,11,11,6,6,6,2,2,2,6,6,6,2,2,2,5,5,5,11,11,11,11,6,6,6,6,7,7,7,6,6,6,3,3,3,11,11,11,7,7,7,2,2,2,8,8,8,2,2,2,2,2,2,2,2,2,6,6,6,6,2,2,8,7,6,8,11,5,0,10,4,6,5,5,2,11,4,6,2,9,8,9,11,11,9,8,9,10,5,8,5,10,9,7,4,4,11,11,1,5,0,7,0,0,5,7,11,0,2,2,2,7,8,2,4,0,5,1,8,6,3,0,10,10,10,2,2,0,11,6,6,0,9,4,4,2,2,10,10,1,1,11,11,6,6,5,5,5,2,2,2,0,6,7,7,9,9,9,9,2,2,9,9,4,4,0,6,5,5,11,11,0,1,1,8,8,0,6,4,3,8,11,5,1,10,8,9,9,6,6,6,10,10,8,8,9,9,1,1,9,9,2,2,10,10,5,5,0,6,9,9,6,6,6,2,2,2,2,0,1,1,0,3,3,2,2,2,11,11,11,10,10,10,10,10,10,11,11,11,7,7,7,10,10,10,4,4,4,6,6,6,6,4,4,3,11,9,6,5,4,11,9,9,5,5,5,4,11,5,7,1,0,1,0,2,2,10,9,1,8,5,10,1,9,1,2,5,5,9,9,1,1,8,5,6,4,3,0,4,11,10,10,1,11,9,5,0,9,5,7,8,4,8,8,8,6,6,6,6,10,10,0,8,6,6,8,8,9,9,0,5,0,0,11,11,11,11,11,5,5,5,1,1,9,9,5,5,6,6,5,5,8,8,10,10,3,3,4,4,9,9,1,1,1,8,8,5,3,11,3,0,2,5,3,9,7,11,11,2,1,3,5,4,4,4,4,2,2,2,7,7,7,10,10,10,5,5,5,4,4,4,0,11,11,4,4,4,7,7,7,8,8,8,2,2,2,3,3,3,3,4,4,11,2,7,9,9,0,11,11,8,6,9,9,11,1,9,11,6,5,4,6,7,7,2,5,5,5,6,3,7,11,9,11,0,10,6,6,3,3,7,3,11,8,11,0,7,6,5,5,7,0,3,1,4,1,4,4,9,9,10,8,2,1,8,11,1,6,0,8,1,1,1,3,3,11,11,2,2,5,5,10,10,1,1,10,10,11,11,3,3,5,5,7,7,7,3,3,3,8,8,9,9,0,6,2,2,6,6,5,5,8,8,11,11,1,1,10,10,7,7,7,7,11,4,4,4,3,3,10,10,9,9,8,8,4,4,8,8,11,11,9,9,0,11,7,7,6,6,6,9,9,9,1,1,11,11,5,5,3,3,9,9,6,6,2,2,2,2,1,1,10,10,2,2,2,1,1,1,3,3,8,8,1,1,4,4,11,11,4,4,0,4,8,8,11,11,9,9,2,2,2,7,7,7,7,3,3,3,6,6,6,10,10,10,9,9,9,6,6,6,1,1,1,7,7,7,0,6,6,3,3,3,7,7,7,0,11,11,11,0,8,8,6,6,3,3,7,7,10,10,3,3,3,3,8,8,1,1,5,5,10,10,5,5,5,5,7,3,3,8,2,11,3,7,7,1,3,6,1,8,9,2,2,2,8,6,6,0,10,10,11,9,0,10,11,8,10,3,9,3,3,8,9,5,0,5,4,2,2,5,9,11,4,4,9,5,3,4,8,3,3,11,11,7,5,0,4,8,6,5,7,7,9,4,4,0,4,9,3,10,4,3,3,3,11,5,9,5,3,11,11,4,8,9,9,7,7,7,2,2,6,6,1,1,4,4,1,1,9,9,1,1,7,7,5,5,9,9,1,1,1,1,1,1,3,3,4,4,6,6,11,11,3,3,7,7,0,5,10,10,11,11,9,9,0,11,11,2,2,2,3,3,11,11,4,4,9,9,0,6,1,1,10,10,2,2,0,0,11,11,7,7,7,7,6,4,4,0,8,3,6,8,8,5,8,2,2,5,0,9,11,5,8,2,2,6,6,0,8,2,6,11,11,7,2,9,9,10,10,1,4,1,7,6,5,9,9,9,9,10,0,4,3,9,5,0,6,4,1,1,1,4,3,3,2,7,0,8,3,10,1,3,3,6,6,6,9,9,1,1,6,6,0,10,2,2,3,3,10,10,8,8,10,10,11,11,5,5,5,11,11,6,2,0,3,10,4,10,11,4,4,3,3,2,8,1,10,9,2,11,11,1,10,5,5,1,0,4,1,0,5,4,4,2,2,2,2,2,5,5,3,3,9,9,9,9,0,4,7,7,9,9,2,2,8,8,0,6,6,2,2,11,9,5,0,5,7,7,11,6,10,4,4,4,4,0,9,2,4,8,4,5,8,10,1,7,7,1,1,4,11,9,11,0,4,1,4,2,8,9,9,8,8,5,6,4,2,0,6,7,5,2,11,7,7,4,4,2,7,10,7,1,1,3,5,1,5,7,7,10,10,9,4,2,9,7,1,4,7,3,3,7,7,5,5,7,8,0,2,5,7,7,6,9,10,4,4,5,5,7,0,3,10,11,3,9,3,11,0,7,7,0,3,4,10,6,4,6,3,5,8,3,7,3,3,0,0,7,5,5,2,9,8,0,10,1,4,7,7,0,2,4,3,2,2,3,8,10,3,1,9,11,11,8,8,1,5,3,0,9,0,8,9,4,11,9,9,8,8,10,11,4,1,0,2,1,10,10,9,5,5,3,3,11,9,7,3,10,5,0,1,11,5,7,7,5,5,8,11,8,8,9,7,8,10,0,0,2,2,4,4,4,8,5,1,0,2,10,8,6,9,8,8,3,3,3,2,2,3,3,0,2,10,10,10,10,11,11,0,4,7,7,5,5,9,9,6,6,6]"),DiscreteProperty_Props_namespaceObject=__webpack_require__.t(Props_namespaceObject,2),sharedSettings=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx");var Grid3DLayer_stories={component:SubsurfaceViewer.Z,title:"SubsurfaceViewer/Grid3D Layer",args:{triggerHome:0}};const defaultProps={bounds:[456150,5925800,467400,5939500],views:sharedSettings.Pl},grid3dLayer={"@@type":"Grid3DLayer",id:"Grid3DLayer",gridLines:!0,material:!0,colorMapName:"Rainbow",ZIncreasingDownwards:!1},axes={"@@type":"AxesLayer",id:"axes-layer2",bounds:[453150,5925800,-2e3,469400,5939500,0],ZIncreasingDownwards:!1},parameters={docs:{...sharedSettings.R4,description:{story:"Simgrid."}}},Simgrid={args:{...defaultProps,id:"grid-3d",layers:[axes,{...grid3dLayer,pointsData:"vtk-grid/Simgrid_points.json",polysData:"vtk-grid/Simgrid_polys.json",propertiesData:"vtk-grid/Simgrid_scalar.json",pickable:!0}]},parameters:parameters},SimgridArrayInput={args:{...defaultProps,bounds:[456169,5936050,456185,5936055],id:"grid-3darray",layers:[axes,{...grid3dLayer,pointsData:[456063,5935991,-1729,456063,5935991,-1731,456138,5935861.518843642,-1727.820068359375,456138.5,5935861.5,-1726.3526611328125,456193.90625,5936066,-1730.7259521484375,456193.8825946293,5936065.981075703,-1732.200439453125,456268.9375,5935936.5,-1726.6915283203125],polysData:[4,0,1,2,3,4,0,4,5,1,4,0,3,6,4],propertiesData:[.2,.6,.8],pickable:!0}]},parameters:parameters},Simgrid2x={args:{...defaultProps,id:"grid-3d",layers:[axes,{...grid3dLayer,pointsData:"vtk-grid/Simgrid2x_points.json",polysData:"vtk-grid/Simgrid2x_polys.json",propertiesData:"vtk-grid/Simgrid2x_scalar.json",pickable:!0}]},parameters:parameters},Simgrid4x={args:{...defaultProps,id:"grid-3d",layers:[axes,{...grid3dLayer,ZIncreasingDownwards:!1,pointsData:"vtk-grid/Simgrid4x_points.json",polysData:"vtk-grid/Simgrid4x_polys.json",propertiesData:"vtk-grid/Simgrid4x_scalar.json",pickable:!0}]},parameters:parameters},Simgrid8xIJonly={args:{...defaultProps,id:"grid-3d",layers:[axes,{...grid3dLayer,pointsData:"vtk-grid/Simgrid8xIJonly_points.json",polysData:"vtk-grid/Simgrid8xIJonly_polys.json",propertiesData:"vtk-grid/Simgrid8xIJonly_scalar.json",pickable:!0}]},parameters:parameters},math=(0,create.U)(allFactoriesAny.$,{randomSeed:"1984"}),randomFunc=math?.random?math.random:Math.random,snubCubePoints=TruncatedSnubCube.wo.map((v=>10*v)),snubCubeProperties=Array(TruncatedSnubCube.sr).fill(0).map((()=>100+50*randomFunc())),toroidPoints=PentagonalToroid.wo.map((v=>10*v)).map(((v,index)=>index%3==0?v+30:v)),toroidProperties=Array(PentagonalToroid.sr).fill(0).map((()=>10*randomFunc())),colorTable=new Uint8Array([0,0,255,0,255,0,0,255,255,255,0,0,255,0,255,255,255,0,0,0,100,0,100,0,0,100,100,100,0,0,100,0,100,100,100,0]),PolyhedralCells={args:{bounds:[-25,-25,50,30],views:{layout:[1,1],viewports:[{id:"view_1",show3D:!0}]},id:"grid-3d-polyhedral-cell",layers:[{...axes,id:"polyhedral-cells-axes",bounds:[-15,-15,-15,40,20,15]},{...grid3dLayer,id:"polyhedral1",coloringMode:SubsurfaceViewer.W.Y,pickable:!0,pointsData:snubCubePoints,polysData:TruncatedSnubCube.OQ,propertiesData:snubCubeProperties,colorMapName:"Porosity"},{...grid3dLayer,id:"polyhedral2",pickable:!0,pointsData:toroidPoints,polysData:PentagonalToroid.OQ,propertiesData:toroidProperties,coloringMode:SubsurfaceViewer.W.Property}]},parameters:parameters},layerArrays={discrete_props:{pointsData:new Float32Array(DiscreteProperty_Points_namespaceObject),polysData:new Uint32Array(DiscreteProperty_Polys_namespaceObject),propertiesData:new Uint16Array(DiscreteProperty_Props_namespaceObject),colorMapFunction:colorTable}};function replaceLayerArrays(layer,keys=void 0){const layerId=layer?.id;if(layer&&layerId&&layerArrays[layerId]){keys||(keys=Object.keys(layerArrays[layerId]));for(const key of keys)layer[key]=layerArrays[layerId][key]}}const DiscretePropertyWithClamping={args:{bounds:[-2500,-2500,2500,2500],views:{layout:[1,1],viewports:[{id:"view_1",show3D:!0}]},id:"grid-3d-discrete_props",layers:[{...axes,id:"discrete_props-axes",bounds:[-2e3,-2200,-2200,2200,2e3,-1e3]},{...grid3dLayer,"@@typedArraySupport":!0,id:"discrete_props",coloringMode:SubsurfaceViewer.W.Property,pickable:!0,pointsData:layerArrays.discrete_props.pointsData,polysData:layerArrays.discrete_props.polysData,propertiesData:layerArrays.discrete_props.propertiesData,discretePropertyValueNames:[{value:1,name:"blue"},{value:2,name:"green"},{value:5,name:"cyan"},{value:6,name:"red"},{value:-8,name:"magenta"},{value:9,name:"yellow"},{value:20,name:"dark blue"},{value:30,name:"dark green"},{value:15,name:"dark cyan"},{value:10,name:"dark red"},{value:3,name:"dark magenta"},{value:-10,name:"dark yellow"}],colorMapName:"Seismic",ZIncreasingDownwards:!0,colorMapFunction:layerArrays.discrete_props.colorMapFunction,material:!1,colorMapRange:[3,8],colorMapClampColor:[100,100,100]}]},parameters:parameters,render:args=>react.createElement(SubsurfaceViewer.Z,function replaceAllArrays(args){return args.layers?.forEach((layer=>{replaceLayerArrays(layer)})),args}(args))},CustomColorFuncWithClamping={args:{bounds:[-2500,-2500,2500,2500],views:{layout:[1,1],viewports:[{id:"view_1",show3D:!0}]},id:"grid-3d-discrete_props",layers:[{...axes,id:"discrete_props-axes",bounds:[-2e3,-2200,-2200,2200,2e3,-1e3]},{...grid3dLayer,"@@typedArraySupport":!0,id:"discrete_props",coloringMode:SubsurfaceViewer.W.Property,pickable:!0,pointsData:layerArrays.discrete_props.pointsData,polysData:layerArrays.discrete_props.polysData,propertiesData:layerArrays.discrete_props.propertiesData,colorMapName:"Seismic",ZIncreasingDownwards:!0,colorMapFunction:function(v){return[255*v,0,255*(1-v)]},material:!1,colorMapRange:[3,10],colorMapClampColor:[100,100,100]}]},parameters:parameters,render:args=>react.createElement(SubsurfaceViewer.Z,function replaceArrays(args,keys){return args.layers?.forEach((layer=>{replaceLayerArrays(layer,keys)})),args}(args,["pointsData","polysData","propertiesData"]))};Simgrid.parameters={...Simgrid.parameters,docs:{...Simgrid.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n id: "grid-3d",\n layers: [axes, {\n ...grid3dLayer,\n pointsData: "vtk-grid/Simgrid_points.json",\n polysData: "vtk-grid/Simgrid_polys.json",\n propertiesData: "vtk-grid/Simgrid_scalar.json",\n pickable: true\n }]\n },\n parameters: parameters\n}',...Simgrid.parameters?.docs?.source}}},SimgridArrayInput.parameters={...SimgridArrayInput.parameters,docs:{...SimgridArrayInput.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n bounds: [456169, 5936050, 456185, 5936055],\n id: "grid-3darray",\n layers: [axes, {\n ...grid3dLayer,\n pointsData: [456063, 5935991, -1729, 456063, 5935991, -1731, 456138, 5935861.518843642, -1727.820068359375, 456138.5, 5935861.5, -1726.3526611328125, 456193.90625, 5936066, -1730.7259521484375, 456193.8825946293, 5936065.981075703, -1732.200439453125, 456268.9375, 5935936.5, -1726.6915283203125],\n polysData: [4, 0, 1, 2, 3, 4, 0, 4, 5, 1, 4, 0, 3, 6, 4],\n propertiesData: [0.2, 0.6, 0.8],\n pickable: true\n }]\n },\n parameters: parameters\n}',...SimgridArrayInput.parameters?.docs?.source}}},Simgrid2x.parameters={...Simgrid2x.parameters,docs:{...Simgrid2x.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n id: "grid-3d",\n layers: [axes, {\n ...grid3dLayer,\n pointsData: "vtk-grid/Simgrid2x_points.json",\n polysData: "vtk-grid/Simgrid2x_polys.json",\n propertiesData: "vtk-grid/Simgrid2x_scalar.json",\n pickable: true\n }]\n },\n parameters: parameters\n}',...Simgrid2x.parameters?.docs?.source}}},Simgrid4x.parameters={...Simgrid4x.parameters,docs:{...Simgrid4x.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n id: "grid-3d",\n layers: [axes, {\n ...grid3dLayer,\n ZIncreasingDownwards: false,\n pointsData: "vtk-grid/Simgrid4x_points.json",\n polysData: "vtk-grid/Simgrid4x_polys.json",\n propertiesData: "vtk-grid/Simgrid4x_scalar.json",\n pickable: true\n }]\n },\n parameters: parameters\n}',...Simgrid4x.parameters?.docs?.source}}},Simgrid8xIJonly.parameters={...Simgrid8xIJonly.parameters,docs:{...Simgrid8xIJonly.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n id: "grid-3d",\n layers: [axes, {\n ...grid3dLayer,\n pointsData: "vtk-grid/Simgrid8xIJonly_points.json",\n polysData: "vtk-grid/Simgrid8xIJonly_polys.json",\n propertiesData: "vtk-grid/Simgrid8xIJonly_scalar.json",\n pickable: true\n }]\n },\n parameters: parameters\n}',...Simgrid8xIJonly.parameters?.docs?.source}}},PolyhedralCells.parameters={...PolyhedralCells.parameters,docs:{...PolyhedralCells.parameters?.docs,source:{originalSource:'{\n args: {\n bounds: ([-25, -25, 50, 30] as NumberQuad),\n views: {\n layout: ([1, 1] as [number, number]),\n viewports: [{\n id: "view_1",\n show3D: true\n }]\n },\n id: "grid-3d-polyhedral-cell",\n layers: [{\n ...axes,\n id: "polyhedral-cells-axes",\n bounds: [-15, -15, -15, 40, 20, 15]\n }, {\n ...grid3dLayer,\n id: "polyhedral1",\n coloringMode: TGrid3DColoringMode.Y,\n pickable: true,\n pointsData: snubCubePoints,\n polysData: SnubCubeFaces,\n propertiesData: snubCubeProperties,\n colorMapName: "Porosity"\n }, {\n ...grid3dLayer,\n id: "polyhedral2",\n pickable: true,\n pointsData: toroidPoints,\n polysData: ToroidFaces,\n propertiesData: toroidProperties,\n coloringMode: TGrid3DColoringMode.Property\n }]\n },\n parameters: parameters\n}',...PolyhedralCells.parameters?.docs?.source}}},DiscretePropertyWithClamping.parameters={...DiscretePropertyWithClamping.parameters,docs:{...DiscretePropertyWithClamping.parameters?.docs,source:{originalSource:'{\n args: {\n bounds: ([-2500, -2500, 2500, 2500] as NumberQuad),\n views: {\n layout: ([1, 1] as [number, number]),\n viewports: [{\n id: "view_1",\n show3D: true\n }]\n },\n id: "grid-3d-discrete_props",\n layers: [{\n ...axes,\n id: "discrete_props-axes",\n bounds: [-2000, -2200, -2200, 2200, 2000, -1000]\n }, {\n ...grid3dLayer,\n "@@typedArraySupport": true,\n id: discretePropsLayerId,\n coloringMode: TGrid3DColoringMode.Property,\n pickable: true,\n pointsData: layerArrays[discretePropsLayerId].pointsData,\n polysData: layerArrays[discretePropsLayerId].polysData,\n propertiesData: layerArrays[discretePropsLayerId].propertiesData,\n discretePropertyValueNames: propertyValueNames,\n colorMapName: "Seismic",\n ZIncreasingDownwards: true,\n colorMapFunction: layerArrays[discretePropsLayerId].colorMapFunction,\n material: false,\n colorMapRange: [3, 8],\n colorMapClampColor: [100, 100, 100]\n }]\n },\n parameters: parameters,\n render: args => \n}',...DiscretePropertyWithClamping.parameters?.docs?.source}}},CustomColorFuncWithClamping.parameters={...CustomColorFuncWithClamping.parameters,docs:{...CustomColorFuncWithClamping.parameters?.docs,source:{originalSource:'{\n args: {\n bounds: ([-2500, -2500, 2500, 2500] as NumberQuad),\n views: {\n layout: ([1, 1] as [number, number]),\n viewports: [{\n id: "view_1",\n show3D: true\n }]\n },\n id: "grid-3d-discrete_props",\n layers: [{\n ...axes,\n id: "discrete_props-axes",\n bounds: [-2000, -2200, -2200, 2200, 2000, -1000]\n }, {\n ...grid3dLayer,\n "@@typedArraySupport": true,\n id: discretePropsLayerId,\n coloringMode: TGrid3DColoringMode.Property,\n pickable: true,\n pointsData: layerArrays[discretePropsLayerId].pointsData,\n polysData: layerArrays[discretePropsLayerId].polysData,\n propertiesData: layerArrays[discretePropsLayerId].propertiesData,\n colorMapName: "Seismic",\n ZIncreasingDownwards: true,\n colorMapFunction: function (v) {\n return [255 * v, 0, 255 * (1 - v)];\n },\n material: false,\n colorMapRange: [3, 10],\n colorMapClampColor: [100, 100, 100]\n }]\n },\n parameters: parameters,\n render: args => \n}',...CustomColorFuncWithClamping.parameters?.docs?.source}}};const __namedExportsOrder=["Simgrid","SimgridArrayInput","Simgrid2x","Simgrid4x","Simgrid8xIJonly","PolyhedralCells","DiscretePropertyWithClamping","CustomColorFuncWithClamping"]},"./packages/subsurface-viewer/src/layers/grid3d/test_data/PentagonalToroid.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{OQ:function(){return Faces},sr:function(){return VertexCount},wo:function(){return Points}});const C0=(3-Math.sqrt(5))/4,C1=(Math.sqrt(5)-1)/4,C2=(1+Math.sqrt(5))/4,Points=[.5,0,C2,.5,0,-C2,-.5,0,C2,-.5,0,-C2,0,C2,.5,0,C2,-.5,0,-C2,.5,0,-C2,-.5,C2,.5,0,-C2,-.5,0,0,C0,.5,0,C0,-.5,0,-C0,.5,0,-C0,-.5,C1,C1,C1,C1,C1,-C1,-C1,-C1,C1,-C1,-C1,-C1,C0,.5,0,-C0,-.5,0],Faces=[5,0,6,16,12,10,5,1,8,18,15,11,5,2,4,14,10,12,5,3,9,19,17,13,5,4,5,15,18,14,5,5,3,13,11,15,5,6,7,17,19,16,5,7,1,11,13,17,5,8,0,10,14,18,5,9,2,12,16,19,3,2,6,0,3,2,0,4,3,3,1,7,3,3,7,9,3,4,0,8,3,4,8,5,3,5,8,1,3,5,1,3,3,6,2,9,3,6,9,7],VertexCount=80},"./packages/subsurface-viewer/src/layers/grid3d/test_data/TruncatedSnubCube.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{OQ:function(){return Faces},sr:function(){return VertexCount},wo:function(){return Points}});const C0=.03022517647727011,C1=.03630716729159513,C2=.040977806224636225,C3=.04564293957876494,C4=.051724930393089966,C5=.08744289047276839,C6=.08897531081303763,C7=.09641163211454777,C8=.10383500001768008,C9=.10536742035794933,C10=.2450214662773631,C11=.25213479294506524,C12=.25578852648697925,C13=.2594078935254808,C14=.266521220193183,C15=.30296894256435697,C16=.3107539819206035,C17=.3137398958061564,C18=.3166836571239303,C19=.32446869648017684,C20=.3415821603133315,C21=.3421516282996725,C22=.3496389843387572,C23=.35707936458297945,C24=.35764883256932045,C25=.3919404789469772,C26=.40221538330780837,C27=.40271740948195195,C28=.40316532850196596,C29=.4134402328627971,C30=.4223523523667726,C31=.4257635648947752,C32=.43136191452063516,C33=.43690230845586675,C34=.44031352098386933,C35=.4714793574054987,C36=.47546003791984226,C37=.4804922200139097,C38=.4854598455082518,C39=.4894405260225954,C40=.6319974061364817,C41=.6358614860540425,C42=.6398421665683861,C43=.6410027320851348,C44=.6420771755897583,C45=.6439380803776656,C46=.647947477795688,C47=.6499219360216627,C49=.6855579590791095,C48=.6519281583100315,C50=.6889691716071121,C51=.6930683858709402,C52=.697074482834414,C53=.7004856953624166,C54=.7657290432607724,C55=.7691698956742122,C56=.7697393636605533,C57=.7720413833524075,C58=.7732108302879603,C59=.7742763923737797,C60=.7747913160528183,C61=.7797391712489629,C62=.7803086392353038,C63=.7805887324654148,C64=.9227051570193641,C65=.9237364928727411,C66=.9244082055612856,C67=.9268980705658701,C68=.9274353460160546,C69=.9278480157600277,C70=.9303378807646123,C71=.9310095934531567,C72=.9320409293065338,Points=[C72,-C25,-C2,-C72,C25,-C2,C25,C72,-C2,-C25,-C72,-C2,C71,-C15,C12,-C71,C15,C12,C15,C71,C12,-C15,-C71,C12,C10,C70,-C17,-C10,-C70,-C17,C70,-C10,-C17,-C70,C10,-C17,C0,C69,C27,-C0,-C69,C27,C69,-C0,C27,-C69,C0,C27,C28,-C1,-C68,-C28,C1,-C68,C1,C28,-C68,-C1,-C28,-C68,C26,C3,C68,-C26,-C3,C68,C3,-C26,C68,-C3,C26,C68,C18,-C11,C68,-C18,C11,C68,C11,C18,C68,-C11,-C18,C68,C16,C13,-C68,-C16,-C13,-C68,C13,-C16,-C68,-C13,C16,-C68,C4,-C67,-C27,-C4,C67,-C27,C67,C4,-C27,-C67,-C4,-C27,C14,-C66,C17,-C14,C66,C17,C66,C14,C17,-C66,-C14,C17,C65,C19,-C12,-C65,-C19,-C12,C19,-C65,-C12,-C19,C65,-C12,C64,C29,C2,-C64,-C29,C2,C29,-C64,C2,-C29,C64,C2,C63,-C40,-C7,-C63,C40,-C7,C40,C63,-C7,-C40,-C63,-C7,C62,-C35,C32,-C62,C35,C32,C35,C62,C32,-C35,-C62,C32,C30,C61,-C37,-C30,-C61,-C37,C61,-C30,-C37,-C61,C30,-C37,C38,-C31,C60,-C38,C31,C60,C31,C38,C60,-C31,-C38,C60,C36,C33,-C60,-C36,-C33,-C60,C33,-C36,-C60,-C33,C36,-C60,C5,C59,C43,-C5,-C59,C43,C59,-C5,C43,-C59,C5,C43,C44,-C6,-C58,-C44,C6,-C58,C6,C44,-C58,-C6,-C44,-C58,C42,C8,C58,-C42,-C8,C58,C8,-C42,C58,-C8,C42,C58,C9,-C57,-C43,-C9,C57,-C43,C57,C9,-C43,-C57,-C9,-C43,C34,-C56,C37,-C34,C56,C37,C56,C34,C37,-C56,-C34,C37,C55,C39,-C32,-C55,-C39,-C32,C39,-C55,-C32,-C39,C55,-C32,C54,C47,C7,-C54,-C47,C7,C47,-C54,C7,-C47,C54,C7,C53,-C41,-C22,-C53,C41,-C22,C41,C53,-C22,-C41,-C53,-C22,C20,C52,C45,-C20,-C52,C45,C52,-C20,C45,-C52,C20,C45,C46,-C21,-C51,-C46,C21,-C51,C21,C46,-C51,-C21,-C46,-C51,C42,C23,C51,-C42,-C23,C51,C23,-C42,C51,-C23,C42,C51,C24,-C50,-C45,-C24,C50,-C45,C50,C24,-C45,-C50,-C24,-C45,C49,C48,C22,-C49,-C48,C22,C48,-C49,C22,-C48,C49,C22],Faces=[8,0,10,34,40,44,38,14,4,8,1,11,35,41,45,39,15,5,8,2,8,33,43,47,37,12,6,8,3,9,32,42,46,36,13,7,8,16,30,19,29,17,31,18,28,8,20,26,23,25,21,27,22,24,6,52,102,60,110,84,118,6,53,103,61,111,85,119,6,54,100,62,108,86,116,6,55,101,63,109,87,117,6,56,98,88,114,64,106,6,57,99,89,115,65,107,6,58,96,90,112,66,104,6,59,97,91,113,67,105,6,0,4,52,118,94,48,6,1,5,53,119,95,49,6,2,6,54,116,92,50,6,3,7,55,117,93,51,6,8,56,106,74,81,33,6,9,57,107,75,80,32,6,10,58,104,72,82,34,6,11,59,105,73,83,35,6,12,37,85,111,79,68,6,13,36,84,110,78,69,6,14,38,86,108,76,70,6,15,39,87,109,77,71,6,16,28,64,114,82,72,6,17,29,65,115,83,73,6,18,31,67,113,81,74,6,19,30,66,112,80,75,6,20,24,60,102,70,76,6,21,25,61,103,71,77,6,22,27,63,101,69,78,6,23,26,62,100,68,79,6,40,88,98,50,92,44,6,41,89,99,51,93,45,6,42,90,96,48,94,46,6,43,91,97,49,95,47,5,0,48,96,58,10,5,1,49,97,59,11,5,2,50,98,56,8,5,3,51,99,57,9,5,4,14,70,102,52,5,5,15,71,103,53,5,6,12,68,100,54,5,7,13,69,101,55,5,16,72,104,66,30,5,17,73,105,67,31,5,18,74,106,64,28,5,19,75,107,65,29,5,20,76,108,62,26,5,21,77,109,63,27,5,22,78,110,60,24,5,23,79,111,61,25,5,32,80,112,90,42,5,33,81,113,91,43,5,34,82,114,88,40,5,35,83,115,89,41,5,36,46,94,118,84,5,37,47,95,119,85,5,38,44,92,116,86,5,39,45,93,117,87],VertexCount=354}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-Grid3DLayer-stories.fd38759f.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-Grid3DLayer-stories.fd38759f.iframe.bundle.js new file mode 100644 index 000000000..96515e11c --- /dev/null +++ b/storybook-static/subsurface-viewer-src-storybook-layers-Grid3DLayer-stories.fd38759f.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[4136],{"./packages/subsurface-viewer/src/storybook/layers/Grid3DLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomColorFuncWithClamping:function(){return CustomColorFuncWithClamping},DiscretePropertyWithClamping:function(){return DiscretePropertyWithClamping},PolyhedralCells:function(){return PolyhedralCells},Simgrid:function(){return Simgrid},Simgrid2x:function(){return Simgrid2x},Simgrid4x:function(){return Simgrid4x},Simgrid8xIJonly:function(){return Simgrid8xIJonly},SimgridArrayInput:function(){return SimgridArrayInput},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return Grid3DLayer_stories}});var react=__webpack_require__("./node_modules/react/index.js"),create=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/create.js"),allFactoriesAny=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),SubsurfaceViewer=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),TruncatedSnubCube=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/test_data/TruncatedSnubCube.ts"),PentagonalToroid=__webpack_require__("./packages/subsurface-viewer/src/layers/grid3d/test_data/PentagonalToroid.ts"),Points_namespaceObject=JSON.parse("[2414.391357421875,-1948.5203857421875,1909.3011474609375,2211.583984375,-1947.6064453125,1911.4830322265625,2008.8961181640625,-1946.69287109375,1913.0819091796875,1806.7314453125,-1945.7818603515625,1914.7738037109375,1605.21435546875,-1944.87353515625,1915.328369140625,1403.844482421875,-1943.966064453125,1905.2833251953125,1202.9244384765625,-1943.060546875,1885.2830810546875,1001.3092041015625,-1942.1519775390625,1869.30029296875,800.0269775390625,-1941.244873046875,1848.361328125,598.5827026367188,-1940.3370361328125,1825.2337646484375,396.998779296875,-1939.428466796875,1796.958740234375,193.21180725097656,-1938.51025390625,1774.7591552734375,-17.019411087036133,-1937.562744140625,1755.9044189453125,-227.74468994140625,-1936.613037109375,1749.645751953125,-435.438232421875,-1935.677001953125,1752.8162841796875,-629.0044555664062,-1934.8045654296875,1746.212158203125,-820.8356323242188,-1933.9400634765625,1743.226806640625,-1014.0609741210938,-1933.0693359375,1741.4766845703125,-1208.2711181640625,-1932.194091796875,1731.908203125,-1403.6920166015625,-1931.3133544921875,1722.7774658203125,-1600.515869140625,-1930.42626953125,1724.520751953125,2410.743896484375,-1736.5308837890625,1908.3699951171875,2207.00146484375,-1736.5318603515625,1908.900146484375,2004.076171875,-1736.049560546875,1908.06103515625,1802.221923828125,-1735.05517578125,1904.45849609375,1601.1361083984375,-1732.915283203125,1910.1724853515625,1400.3826904296875,-1730.9471435546875,1900.2486572265625,1199.1015625,-1729.693115234375,1885.743896484375,996.9292602539062,-1729.8701171875,1869.74658203125,796.1390380859375,-1731.1387939453125,1838.1781005859375,594.576416015625,-1732.086181640625,1808.7415771484375,391.24322509765625,-1731.6070556640625,1785.6104736328125,186.80113220214844,-1731.024169921875,1760.148193359375,-22.04740333557129,-1730.111083984375,1733.089111328125,-231.5094757080078,-1727.98876953125,1722.7364501953125,-437.0242614746094,-1724.7703857421875,1725.5267333984375,-627.2534790039062,-1721.9593505859375,1728.05322265625,-817.114990234375,-1719.967529296875,1735.944091796875,-1009.4979248046875,-1719.591552734375,1739.5369873046875,-1204.4840087890625,-1720.5498046875,1732.9390869140625,-1401.627197265625,-1722.12548828125,1731.9478759765625,-1600.031005859375,-1724.9266357421875,1738.0531005859375,2407.112548828125,-1525.4676513671875,1908.3328857421875,2202.244384765625,-1525.5679931640625,1906.672607421875,1998.9759521484375,-1525.5823974609375,1899.7120361328125,1797.3826904296875,-1524.353515625,1894.830322265625,1596.760009765625,-1521.9752197265625,1897.42724609375,1396.4036865234375,-1518.883056640625,1893.79052734375,1196.60498046875,-1516.3863525390625,1873.2196044921875,994.296142578125,-1519.21923828125,1848.83447265625,792.801025390625,-1522.5145263671875,1816.60205078125,591.2206420898438,-1523.928955078125,1783.789794921875,386.5569763183594,-1524.6600341796875,1758.9879150390625,181.25453186035156,-1525.0465087890625,1727.71484375,-27.138105392456055,-1523.9783935546875,1695.8248291015625,-235.3233642578125,-1521.9793701171875,1679.74072265625,-437.8040466308594,-1516.0474853515625,1690.5067138671875,-624.0758056640625,-1510.326171875,1709.189453125,-813.1533203125,-1508.5003662109375,1716.8016357421875,-1005.4830322265625,-1509.26416015625,1721.03271484375,-1201.4832763671875,-1510.9990234375,1732.7401123046875,-1399.87548828125,-1513.935546875,1742.216064453125,-1599.541015625,-1517.3016357421875,1737.5032958984375,2403.47314453125,-1313.934326171875,1910.879150390625,2196.217041015625,-1313.6396484375,1917.8768310546875,1996.01171875,-1307.2686767578125,1889.2581787109375,1792.5904541015625,-1313.958251953125,1906.291259765625,1592.2291259765625,-1311.6429443359375,1906.3173828125,1391.5069580078125,-1309.1431884765625,1899.48095703125,1190.4951171875,-1308.09912109375,1878.26611328125,991.5216064453125,-1313.209228515625,1817.900634765625,790.5375366210938,-1313.131591796875,1789.6435546875,588.4523315429688,-1313.5462646484375,1762.8330078125,382.34344482421875,-1315.1558837890625,1730.717041015625,178.03382873535156,-1310.6885986328125,1694.964599609375,-28.705657958984375,-1314.14404296875,1661.7939453125,-239.14122009277344,-1315.70458984375,1645.7606201171875,-437.1062927246094,-1308.1610107421875,1665.593505859375,-620.4862060546875,-1302.203125,1683.971923828125,-809.137451171875,-1301.9422607421875,1685.62109375,-1003.1568603515625,-1301.31005859375,1698.8741455078125,-1200.8499755859375,-1303.0654296875,1722.6690673828125,-1399.4931640625,-1306.6136474609375,1735.3441162109375,-1599.0533447265625,-1310.613037109375,1731.121826171875,2399.8330078125,-1102.363037109375,1920.0474853515625,2194.771484375,-1100.52880859375,1917.4188232421875,1988.45947265625,-1105.835205078125,1923.6434326171875,1793.5809326171875,-1094.685302734375,1900.970947265625,1595.0753173828125,-1092.866943359375,1888.343017578125,1399.6602783203125,-1092.047607421875,1849.0938720703125,1188.0877685546875,-1100.6927490234375,1855.6588134765625,988.5841064453125,-1100.521728515625,1815.91015625,787.59033203125,-1103.8668212890625,1765.78271484375,589.9462280273438,-1100.4986572265625,1739.2764892578125,382.7264709472656,-1102.76708984375,1695.7393798828125,174.814208984375,-1100.662109375,1664.162109375,-37.69282150268555,-1106.9122314453125,1637.1256103515625,-241.74285888671875,-1108.878173828125,1619.83837890625,-438.2516784667969,-1105.3450927734375,1625.44580078125,-621.1549072265625,-1104.4342041015625,1628.0943603515625,-805.5689086914062,-1104.5755615234375,1637.4486083984375,-997.08740234375,-1103.6478271484375,1651.5438232421875,-1208.10205078125,-1099.77197265625,1694.2821044921875,-1402.4674072265625,-1102.03173828125,1711.1175537109375,-1598.568359375,-1105.12353515625,1715.50830078125,2396.2021484375,-891.3294677734375,1930.3040771484375,2191.740478515625,-888.9714965820312,1933.0081787109375,1989.638916015625,-886.0017700195312,1922.2381591796875,1790.586181640625,-883.2078247070312,1894.7874755859375,1591.2259521484375,-881.4053344726562,1875.736083984375,1386.45458984375,-892.4273681640625,1865.3677978515625,1194.448974609375,-884.4406127929688,1795.5068359375,993.203125,-887.2839965820312,1753.69091796875,792.9080200195312,-885.932861328125,1707.9595947265625,586.4918212890625,-898.5121459960938,1699.1956787109375,385.6647644042969,-894.8789672851562,1651.35009765625,181.29441833496094,-892.2428588867188,1619.2000732421875,-33.68059539794922,-897.6179809570312,1596.451904296875,-240.87754821777344,-903.3963623046875,1582.335205078125,-441.76922607421875,-906.6343383789062,1574.8895263671875,-626.9533081054688,-909.6915283203125,1570.177490234375,-812.1681518554688,-914.8265380859375,1571.610107421875,-1033.4462890625,-894.6326904296875,1658.5400390625,-1219.26123046875,-901.4973754882812,1645.4976806640625,-1408.2833251953125,-901.003173828125,1667.29638671875,-1598.085693359375,-900.5120849609375,1686.5380859375,2392.580322265625,-680.8189086914062,1925.3458251953125,2188.338623046875,-678.2183227539062,1932.4024658203125,1985.443603515625,-675.2383422851562,1925.280029296875,1785.458740234375,-672.7020874023438,1896.711181640625,1585.9962158203125,-671.0465087890625,1865.4244384765625,1386.762451171875,-671.5836791992188,1826.335205078125,1187.876708984375,-673.758056640625,1780.0670166015625,987.6135864257812,-675.9959106445312,1734.904541015625,778.2334594726562,-686.4677124023438,1714.6534423828125,589.87841796875,-679.8671875,1648.26708984375,389.7355651855469,-692.0108642578125,1611.982177734375,180.7937469482422,-682.7724609375,1595.0181884765625,-8.650132179260254,-696.4190673828125,1536.4949951171875,-233.69921875,-672.376953125,1554.2578125,-446.33392333984375,-703.83251953125,1538.519287109375,-636.73681640625,-711.98779296875,1523.6512451171875,-836.9090576171875,-706.185791015625,1576.598876953125,-1031.5572509765625,-705.1403198242188,1580.0023193359375,-1222.0203857421875,-698.8890991210938,1618.6685791015625,-1410.8123779296875,-697.2607421875,1629.47998046875,-1597.60107421875,-695.0601196289062,1651.987548828125,2388.968017578125,-470.8714294433594,1921.5711669921875,2184.641357421875,-468.55181884765625,1923.06591796875,1982.5391845703125,-466.1933288574219,1903.17333984375,1782.1407470703125,-463.87591552734375,1875.5599365234375,1583.211669921875,-463.06414794921875,1838.5772705078125,1384.2681884765625,-463.92242431640625,1797.2999267578125,1185.0245361328125,-466.08135986328125,1752.094482421875,984.118896484375,-468.79302978515625,1710.51806640625,781.8001708984375,-471.70391845703125,1676.40478515625,584.7609252929688,-477.33697509765625,1628.795166015625,391.7859802246094,-483.20550537109375,1575.3092041015625,195.85325622558594,-487.0691833496094,1554.90283203125,-17.184179306030273,-487.929931640625,1563.8583984375,-247.3394775390625,-491.2453918457031,1505.1708984375,-451.5699157714844,-498.23486328125,1505.0333251953125,-654.6353149414062,-490.2243347167969,1533.7930908203125,-847.1200561523438,-492.641357421875,1559.2950439453125,-1035.870361328125,-492.0207824707031,1588.41796875,-1224.705322265625,-490.2763977050781,1592.5555419921875,-1411.765625,-487.5160217285156,1610.678955078125,-1597.1068115234375,-485.5665588378906,1633.4139404296875,2385.358154296875,-261.05755615234375,1926.0340576171875,2181.052978515625,-259.57452392578125,1912.9427490234375,1979.8955078125,-258.3654479980469,1881.5404052734375,1780.5982666015625,-257.33721923828125,1845.2381591796875,1583.243896484375,-258.0154113769531,1800.0955810546875,1383.8287353515625,-258.8160400390625,1761.2115478515625,1181.7706298828125,-259.7225646972656,1730.1607666015625,980.7643432617188,-263.5214538574219,1689.3543701171875,780.053955078125,-268.60162353515625,1649.0189208984375,584.8907470703125,-275.7236633300781,1592.693603515625,390.1493225097656,-279.6019592285156,1550.3697509765625,185.46975708007812,-275.5165100097656,1526.5299072265625,-19.56712532043457,-279.87066650390625,1538.211181640625,-238.9632110595703,-278.5946960449219,1516.08154296875,-426.5694274902344,-271.66339111328125,1568.254638671875,-656.7191772460938,-277.97418212890625,1529.2161865234375,-851.8557739257812,-276.197998046875,1561.314208984375,-1042.3922119140625,-280.6817932128906,1600.8260498046875,-1226.670166015625,-277.1746826171875,1602.3226318359375,-1412.1705322265625,-275.3658447265625,1619.3280029296875,-1596.6099853515625,-274.994873046875,1645.598388671875,2381.7587890625,-51.83988952636719,1920.2208251953125,2178.179931640625,-51.71854019165039,1898.91357421875,1978.09130859375,-51.86866760253906,1859.3822021484375,1781.387939453125,-53.048954010009766,1809.010009765625,1584.5164794921875,-54.8098030090332,1760.813720703125,1384.35595703125,-55.94259262084961,1723.7205810546875,1181.7508544921875,-57.27207565307617,1693.890869140625,978.4779052734375,-60.33739471435547,1664.8203125,777.0264282226562,-65.76592254638672,1630.27978515625,582.6062622070312,-70.90437316894531,1576.7431640625,384.56097412109375,-71.8167724609375,1539.36767578125,180.75054931640625,-71.44841766357422,1533.6527099609375,-44.50536346435547,-61.892974853515625,1570.603759765625,-241.30018615722656,-63.98183059692383,1571.025390625,-499.0440979003906,-70.74394989013672,1563.6553955078125,-668.2872314453125,-67.70501708984375,1570.5137939453125,-854.9736938476562,-72.06974792480469,1611.8204345703125,-1031.08837890625,-42.91152572631836,1587.90087890625,-1225.695068359375,-65.33190155029297,1632.0841064453125,-1410.4920654296875,-67.21590423583984,1660.0611572265625,-1596.1220703125,-68.17767333984375,1683.4512939453125,2378.1689453125,156.7891387939453,1917.8330078125,2175.582763671875,155.36058044433594,1888.90087890625,1976.5426025390625,154.0279541015625,1842.8824462890625,1779.407470703125,152.2300262451172,1792.9404296875,1580.11376953125,150.1284637451172,1754.6239013671875,1380.072998046875,147.92446899414062,1716.0877685546875,1177.8033447265625,144.7850799560547,1681.72216796875,973.7230224609375,140.7586669921875,1652.8880615234375,767.882080078125,135.19137573242188,1636.5107421875,565.1636352539062,129.02401733398438,1615.7176513671875,375.8413391113281,137.02035522460938,1567.8748779296875,144.943603515625,126.89665222167969,1527.259765625,-40.83793640136719,127.65203094482422,1541.9173583984375,-230.29360961914062,131.50244140625,1535.496826171875,-483.5885314941406,134.36227416992188,1574.3597412109375,-656.0233764648438,145.2989959716797,1595.6005859375,-834.78271484375,156.05877685546875,1605.1488037109375,-1037.9058837890625,148.63841247558594,1644.1549072265625,-1225.406494140625,141.9761962890625,1674.1568603515625,-1410.4791259765625,137.16537475585938,1699.2705078125,-1595.636962890625,137.4810791015625,1715.4754638671875,2374.639892578125,361.9144287109375,1924.9521484375,2171.517578125,359.8203125,1893.3485107421875,1971.9093017578125,358.1660461425781,1846.1231689453125,1773.095703125,356.13568115234375,1800.06201171875,1572.7801513671875,352.4714050292969,1765.8194580078125,1372.03564453125,349.8022766113281,1728.7786865234375,1170.5706787109375,343.7102355957031,1688.1234130859375,966.8104858398438,334.7000732421875,1658.3203125,767.52880859375,392.5894775390625,1555.1651611328125,573.664794921875,390.80438232421875,1517.0137939453125,379.13787841796875,388.8003845214844,1477.9404296875,176.37966918945312,342.9757080078125,1529.397705078125,-6.115403652191162,370.1488037109375,1460.3138427734375,-201.40753173828125,324.65704345703125,1562.54052734375,-403.9936828613281,330.3331604003906,1569.2559814453125,-640.5536499023438,370.09814453125,1585.497314453125,-814.6439819335938,390.6212463378906,1595.24267578125,-1043.5166015625,351.1175537109375,1670.5360107421875,-1189.737548828125,390.8018798828125,1599.2503662109375,-1411.6253662109375,332.9382019042969,1728.4705810546875,-1595.165283203125,337.3287353515625,1749.4942626953125,2371.3681640625,552.0713500976562,1943.145263671875,2167.797607421875,548.5088500976562,1904.2652587890625,1967.2601318359375,545.466552734375,1855.20263671875,1766.1685791015625,541.7236938476562,1814.3428955078125,1565.552490234375,537.710693359375,1778.103759765625,1364.2650146484375,533.6466674804688,1741.653076171875,1169.7578125,565.3204956054688,1627.4527587890625,969.0354614257812,575.8917236328125,1582.4451904296875,767.2056884765625,579.554931640625,1550.131591796875,568.7991943359375,573.5593872070312,1529.4820556640625,373.7895202636719,573.9462280273438,1496.349365234375,180.13809204101562,574.0781860351562,1474.7066650390625,-15.43492317199707,572.9508666992188,1471.7281494140625,-215.65777587890625,550.7069091796875,1511.7470703125,-430.5234680175781,574.9571533203125,1476.665283203125,-627.8244018554688,530.2182006835938,1608.8275146484375,-812.3545532226562,563.9219970703125,1585.5582275390625,-1001.748291015625,561.9238891601562,1589.6737060546875,-1226.5806884765625,506.2792053222656,1725.929931640625,-1408.74755859375,509.5754089355469,1748.0367431640625,-1594.7322998046875,520.8214721679688,1773.1925048828125,2368.15966796875,738.544677734375,1968.32470703125,2164.066162109375,734.533447265625,1922.645263671875,1961.8291015625,730.1351928710938,1872.103759765625,1759.007080078125,725.3585815429688,1831.496826171875,1568.29443359375,735.0513916015625,1737.455322265625,1368.9322509765625,737.5205688476562,1699.0997314453125,1169.363037109375,748.4107055664062,1647.5579833984375,968.4198608398438,754.2996215820312,1596.660888671875,765.1244506835938,753.2088623046875,1578.373046875,565.0655517578125,751.4312133789062,1564.0230712890625,367.9629821777344,750.9293823242188,1546.404541015625,173.2606658935547,753.58740234375,1526.3182373046875,-23.875429153442383,758.5975952148438,1500.4815673828125,-225.59814453125,757.2984008789062,1508.190673828125,-434.3000793457031,755.9548950195312,1516.1678466796875,-631.311767578125,754.029541015625,1545.1566162109375,-815.5828857421875,752.2315063476562,1572.2506103515625,-994.457763671875,750.49609375,1598.551025390625,-1215.7657470703125,680.308837890625,1709.25732421875,-1386.6126708984375,696.9805297851562,1740.1748046875,-1594.2935791015625,706.8070678710938,1780.2041015625,2364.94921875,925.14306640625,1995.3482666015625,2159.0966796875,920.2626953125,1949.222412109375,1956.312255859375,915.7113037109375,1890.8284912109375,1754.69970703125,922.7403564453125,1807.3843994140625,1559.112548828125,921.015380859375,1770.962158203125,1363.12451171875,920.5802001953125,1728.6324462890625,1163.3045654296875,924.1649169921875,1687.650634765625,963.6571044921875,929.6477661132812,1643.5950927734375,763.3919677734375,932.0588989257812,1610.8134765625,563.2858276367188,930.4072265625,1599.6392822265625,365.43035888671875,929.2177124023438,1593.4619140625,169.51693725585938,930.0684814453125,1582.904052734375,-29.570098876953125,938.955078125,1547.805419921875,-233.5299835205078,938.3055419921875,1546.202880859375,-437.165283203125,930.8192749023438,1572.7010498046875,-627.4511108398438,925.0911254882812,1601.620361328125,-813.1353149414062,920.18310546875,1627.8018798828125,-995.2173461914062,914.9266967773438,1650.1868896484375,-1181.7142333984375,907.5894775390625,1673.5374755859375,-1381.9217529296875,893.9380493164062,1736.084228515625,-1593.8446044921875,897.1409301757812,1770.59912109375,2361.73583984375,1111.92822265625,2023.71826171875,2152.686767578125,1105.9962158203125,1984.2808837890625,1952.294189453125,1103.702880859375,1913.0399169921875,1754.7161865234375,1103.793701171875,1843.9149169921875,1556.9071044921875,1105.01318359375,1799.49560546875,1359.5443115234375,1105.437744140625,1761.1221923828125,1160.160888671875,1106.4129638671875,1726.7196044921875,960.8071899414062,1109.212158203125,1688.8770751953125,762.4166870117188,1112.2589111328125,1652.9071044921875,562.9888916015625,1110.117919921875,1642.203125,365.32940673828125,1111.07177734375,1626.6500244140625,167.9940185546875,1110.2508544921875,1626.7491455078125,-33.5337028503418,1113.0078125,1612.8062744140625,-237.5606689453125,1111.4573974609375,1613.852294921875,-441.15606689453125,1107.64697265625,1627.1649169921875,-629.618896484375,1104.426025390625,1640.2923583984375,-815.2988891601562,1101.1820068359375,1655.1279296875,-1000.8177490234375,1097.5736083984375,1671.125244140625,-1192.1956787109375,1093.4532470703125,1692.5028076171875,-1385.9609375,1087.8505859375,1746.44677734375,-1593.38818359375,1090.5264892578125,1765.72802734375,2358.491943359375,1300.4542236328125,2042.5498046875,2150.72802734375,1295.6173095703125,2003.26416015625,1950.49658203125,1293.302734375,1937.6058349609375,1752.8399658203125,1292.8875732421875,1878.1572265625,1555.5587158203125,1293.273681640625,1832.08740234375,1358.9932861328125,1294.3760986328125,1788.262451171875,1158.6107177734375,1292.8590087890625,1767.0682373046875,959.33837890625,1293.4825439453125,1738.2996826171875,761.5094604492188,1294.449462890625,1707.3282470703125,563.6395263671875,1294.1351318359375,1684.7513427734375,365.626220703125,1291.6256103515625,1682.332763671875,167.41766357421875,1289.667724609375,1682.01416015625,-35.63608932495117,1292.5897216796875,1666.03125,-240.38356018066406,1292.038330078125,1664.738525390625,-444.8500671386719,1290.2469482421875,1670.372314453125,-632.397216796875,1288.4295654296875,1676.150634765625,-819.0147094726562,1286.988037109375,1681.5252685546875,-1006.0271606445312,1284.4964599609375,1698.8629150390625,-1197.66357421875,1283.00048828125,1715.462890625,-1391.889892578125,1281.733642578125,1752.060302734375,-1592.9322509765625,1283.747314453125,1759.650390625,2355.216796875,1490.8262939453125,2040.003662109375,2152.085693359375,1487.952880859375,2000.1876220703125,1952.857666015625,1485.9442138671875,1945.3233642578125,1753.710693359375,1484.9210205078125,1901.3106689453125,1557.5472412109375,1485.4842529296875,1853.122802734375,1358.678955078125,1485.1104736328125,1826.27685546875,1158.546142578125,1484.0174560546875,1807.098876953125,959.1353149414062,1483.1353759765625,1785.5701904296875,761.3579711914062,1482.83447265625,1757.6248779296875,564.6148071289062,1482.9246826171875,1728.5968017578125,366.6514587402344,1480.8428955078125,1718.2218017578125,167.82275390625,1479.330078125,1713.934814453125,-36.06379699707031,1481.072998046875,1699.260498046875,-242.17088317871094,1480.39990234375,1696.2520751953125,-446.38494873046875,1479.2640380859375,1697.284423828125,-635.4200439453125,1478.0511474609375,1701.84521484375,-822.7745361328125,1477.24267578125,1705.6302490234375,-1010.8739624023438,1475.71240234375,1721.9254150390625,-1201.4775390625,1474.91796875,1739.481201171875,-1395.3243408203125,1475.18408203125,1753.6849365234375,-1592.4783935546875,1476.16357421875,1754.04736328125,2351.92822265625,1681.9495849609375,2017.3951416015625,2153.366943359375,1681.240966796875,1988.2049560546875,1955.272216796875,1680.533935546875,1947.943603515625,1757.4154052734375,1679.8280029296875,1909.552490234375,1558.7259521484375,1679.1190185546875,1879.496337890625,1358.409912109375,1678.404052734375,1868.0443115234375,1158.2021484375,1677.689697265625,1853.3134765625,959.0586547851562,1676.9791259765625,1831.7569580078125,761.8983764648438,1676.275390625,1800.1962890625,565.171630859375,1675.573486328125,1769.4168701171875,367.6167907714844,1674.868408203125,1747.704833984375,168.0535125732422,1674.15625,1744.1202392578125,-36.57413101196289,1673.426025390625,1735.020751953125,-242.99966430664062,1672.6893310546875,1724.704345703125,-448.75244140625,1671.955078125,1724.4246826171875,-638.0398559570312,1671.2796630859375,1725.114501953125,-826.2775268554688,1670.60791015625,1731.51513671875,-1015.2550048828125,1669.9334716796875,1740.4559326171875,-1205.789794921875,1669.253662109375,1748.15625,-1398.1126708984375,1668.5672607421875,1749.03271484375,-1592.0260009765625,1667.875244140625,1751.0401611328125,992.2589721679688,-1519.148193359375,1860.5531005859375,1993.1488037109375,-1316.2755126953125,1911.1214599609375,990.49462890625,-1309.9169921875,1837.5987548828125,789.9884033203125,-1313.8741455078125,1789.1680908203125,176.51707458496094,-1314.4678955078125,1697.3045654296875,-31.58577537536621,-1316.8531494140625,1662.9451904296875,1993.0242919921875,-1097.1356201171875,1905.3482666015625,1788.0810546875,-1105.2628173828125,1919.60302734375,1588.40283203125,-1101.9556884765625,1909.8118896484375,1387.1619873046875,-1099.99267578125,1895.5037841796875,790.4315795898438,-1100.369873046875,1777.1055908203125,1391.9674072265625,-882.12060546875,1844.0670166015625,1187.302734375,-894.5205688476562,1818.584716796875,987.15380859375,-893.9308471679688,1775.30322265625,787.0053100585938,-895.7200317382812,1731.3134765625,-997.1456909179688,-921.8184204101562,1571.799560546875,786.8492431640625,-676.0648193359375,1695.2972412109375,578.9756469726562,-697.9714965820312,1669.4217529296875,196.87667846679688,-690.4868774414062,1560.4405517578125,-25.049821853637695,-690.39208984375,1563.34716796875,-24.63995361328125,-690.640380859375,1562.6217041015625,-234.94329833984375,-691.4750366210938,1550.0155029296875,-236.2210235595703,-701.552001953125,1539.38232421875,-823.345458984375,-721.6019287109375,1522.4434814453125,-1016.5620727539062,-722.9948120117188,1551.6324462890625,-1.9335676431655884,-491.8675537109375,1538.9798583984375,-217.79136657714844,-491.95367431640625,1555.568115234375,-651.0145874023438,-505.59259033203125,1500.14892578125,-838.9658813476562,-515.852783203125,1505.62451171875,192.94947814941406,-283.8665771484375,1506.99169921875,-10.675519943237305,-282.2176513671875,1510.7366943359375,-34.164794921875,-260.5022888183594,1576.07177734375,-19.212860107421875,-280.22747802734375,1539.7447509765625,-222.84185791015625,-282.7503356933594,1543.7783203125,-224.65078735351562,-262.63470458984375,1574.6673583984375,-457.2918395996094,-288.30096435546875,1517.5015869140625,-441.2040710449219,-273.71820068359375,1543.7359619140625,-656.6827392578125,-297.53216552734375,1495.2333984375,586.267333984375,-75.7641372680664,1564.4998779296875,388.8216247558594,-77.65245056152344,1516.5228271484375,187.90167236328125,-74.4859848022461,1494.4298095703125,156.02609252929688,-68.00877380371094,1528.009033203125,189.7588348388672,-72.43045043945312,1518.1644287109375,-22.63223648071289,-75.89730834960938,1535.37109375,-488.7389831542969,-66.13772583007812,1579.8555908203125,-844.2722778320312,-62.55165481567383,1579.418212890625,-1041.4296875,-67.24015808105469,1622.3343505859375,766.6806030273438,135.84384155273438,1635.6214599609375,570.1492309570312,123.99202728271484,1586.6131591796875,174.85926818847656,147.35719299316406,1516.146484375,146.0089111328125,132.65374755859375,1525.7589111328125,-46.344730377197266,126.43216705322266,1549.4986572265625,-233.45233154296875,129.79620361328125,1558.3665771484375,-464.32012939453125,141.86782836914062,1588.3553466796875,-1020.2158813476562,171.74696350097656,1601.808349609375,757.1058349609375,321.80291748046875,1661.832275390625,562.9246826171875,328.35028076171875,1594.5120849609375,368.2490234375,330.29010009765625,1543.4404296875,161.252197265625,345.0293273925781,1514.715576171875,185.31732177734375,383.91571044921875,1458.797119140625,-29.530147552490234,332.6868591308594,1527.5220947265625,-220.557861328125,342.19921875,1531.6842041015625,-256.78753662109375,403.8931884765625,1522.4453125,-208.26809692382812,365.6625061035156,1483.6558837890625,-400.2099609375,339.2623291015625,1589.590576171875,-409.62860107421875,351.29339599609375,1546.0303955078125,-631.2640991210938,345.0706787109375,1608.8333740234375,-818.5386352539062,357.8971862792969,1629.679931640625,-1007.5545043945312,382.4658203125,1631.4984130859375,-1002.7235717773438,394.71331787109375,1605.836669921875,-1227.9776611328125,334.86090087890625,1709.0023193359375,1161.6561279296875,527.8564453125,1700.171875,958.0885009765625,515.9373779296875,1677.7384033203125,752.746337890625,512.4597778320312,1657.563720703125,-217.4730682373047,571.7542724609375,1468.7705078125,-427.32958984375,550.3174438476562,1541.25146484375,-628.6127319335938,565.6101684570312,1573.99169921875,-635.3648071289062,572.8856201171875,1526.5546875,-813.1674194335938,546.0057983398438,1623.283203125,-818.2660522460938,568.0275268554688,1560.742919921875,-1001.2756958007812,566.3150024414062,1601.5506591796875,-1174.7554931640625,566.009765625,1628.679443359375,1559.02978515625,719.9459228515625,1791.8602294921875,1356.927490234375,718.6001586914062,1751.8682861328125,1150.4781494140625,715.92236328125,1716.712890625,-1169.91357421875,744.8869018554688,1632.018798828125,1753.72509765625,911.0240478515625,1837.82666015625,1550.705810546875,907.1506958007812,1805.9449462890625,2414.391357421875,-1948.5203857421875,1927.60546875,2211.5400390625,-1947.6064453125,1929.75048828125,2008.816650390625,-1946.69287109375,1930.7205810546875,1806.62109375,-1945.7818603515625,1931.5948486328125,1605.0599365234375,-1944.87353515625,1931.8392333984375,1403.6300048828125,-1943.966064453125,1922.179443359375,1202.606689453125,-1943.060546875,1902.8521728515625,1000.927490234375,-1942.1519775390625,1887.0521240234375,799.6173095703125,-1941.2430419921875,1865.8109130859375,598.3141479492188,-1940.3370361328125,1841.2579345703125,396.88214111328125,-1939.428466796875,1811.510498046875,193.12762451171875,-1938.51025390625,1788.3936767578125,-17.113750457763672,-1937.562744140625,1768.9383544921875,-227.84397888183594,-1936.613037109375,1761.864013671875,-435.579833984375,-1935.677001953125,1764.822509765625,-629.1978759765625,-1934.8045654296875,1759.0517578125,-821.0711669921875,-1933.9400634765625,1756.4088134765625,-1014.264404296875,-1933.0693359375,1753.677490234375,-1208.359130859375,-1932.194091796875,1742.841552734375,-1403.6627197265625,-1931.3133544921875,1732.320556640625,-1600.515869140625,-1930.42626953125,1733.313720703125,2410.743896484375,-1736.5435791015625,1926.354736328125,-1600.031005859375,-1724.9017333984375,1745.5228271484375,2407.112548828125,-1525.4984130859375,1925.9810791015625,1207.991455078125,-1506.4794921875,1890.610595703125,1005.1047973632812,-1511.2127685546875,1865.5963134765625,-1599.541015625,-1517.301513671875,1744.290283203125,2403.474365234375,-1314.04296875,1929.7767333984375,2182.34423828125,-1321.5689697265625,1936.8883056640625,1982.18896484375,-1315.642578125,1909.076904296875,1001.4692993164062,-1307.2606201171875,1834.95556640625,799.6409912109375,-1308.898193359375,1805.784912109375,373.05462646484375,-1318.5289306640625,1742.02001953125,167.93460083007812,-1313.3447265625,1705.8668212890625,-40.290042877197266,-1316.4697265625,1672.4080810546875,-1599.0533447265625,-1310.6737060546875,1737.1575927734375,2399.83642578125,-1102.5655517578125,1940.0087890625,1976.1124267578125,-1112.5567626953125,1941.681640625,1781.0633544921875,-1100.7493896484375,1918.76953125,1584.1192626953125,-1096.72265625,1904.3443603515625,1390.0594482421875,-1094.4696044921875,1863.5614013671875,795.5161743164062,-1101.4554443359375,1781.33642578125,597.2045288085938,-1099.290283203125,1754.2532958984375,-50.17803955078125,-1109.8896484375,1648.52978515625,-999.9432983398438,-1103.701904296875,1658.665771484375,-1598.568359375,-1105.2291259765625,1721.2479248046875,2396.20556640625,-891.5283203125,1949.7760009765625,1377.9183349609375,-894.6248168945312,1878.6500244140625,1185.5556640625,-887.502685546875,1808.047119140625,984.315673828125,-891.6705322265625,1765.1439208984375,784.11083984375,-891.158203125,1718.8616943359375,172.3054656982422,-890.800537109375,1628.771728515625,-243.0464324951172,-901.1420288085938,1592.6839599609375,-1036.336181640625,-893.5529174804688,1663.600341796875,-1598.085693359375,-900.5985107421875,1692.695068359375,2392.583740234375,-681.0225830078125,1944.6954345703125,769.467529296875,-693.8572998046875,1727.2239990234375,581.3045043945312,-687.115478515625,1659.04296875,381.1164855957031,-699.175537109375,1622.885498046875,173.81851196289062,-681.01220703125,1603.7078857421875,-13.138071060180664,-695.579833984375,1542.7734375,-233.4045867919922,-668.30224609375,1557.8427734375,-839.4115600585938,-704.1660766601562,1583.008056640625,-1034.4501953125,-703.3632202148438,1585.8602294921875,-1597.60107421875,-695.0947875976562,1658.6795654296875,2388.971923828125,-471.1009826660156,1940.2098388671875,-18.898347854614258,-487.3319396972656,1566.9964599609375,-245.22955322265625,-489.3234558105469,1510.703125,-655.643310546875,-488.35723876953125,1539.5377197265625,-848.7767333984375,-490.8666687011719,1565.5682373046875,-1597.1068115234375,-485.62860107421875,1639.9449462890625,2385.36328125,-261.3531494140625,1942.740234375,182.81527709960938,-274.3283996582031,1531.5675048828125,-21.653348922729492,-278.6525573730469,1542.06494140625,-237.95008850097656,-277.2947998046875,1519.231201171875,-424.8900451660156,-270.0787048339844,1572.57421875,-657.3706665039062,-276.1737365722656,1534.4659423828125,-853.9141845703125,-276.00262451171875,1566.8048095703125,-1596.6099853515625,-275.0659484863281,1652.1258544921875,2381.765380859375,-52.23320770263672,1935.4273681640625,581.1829833984375,-68.38160705566406,1581.7781982421875,382.7431640625,-69.9029312133789,1544.3087158203125,177.9564666748047,-71.41738891601562,1538.77880859375,-46.52336120605469,-61.260498046875,1573.7425537109375,-497.9333190917969,-70.18392944335938,1566.49853515625,-856.349853515625,-72.23589324951172,1615.50390625,-1032.965087890625,-44.785858154296875,1592.41796875,-1596.1220703125,-68.25289154052734,1689.8778076171875,2378.176513671875,156.35121154785156,1931.990234375,972.763916015625,144.79800415039062,1658.8157958984375,767.3005981445312,138.00914001464844,1641.1341552734375,564.435302734375,131.3631134033203,1619.8697509765625,141.41075134277344,126.31889343261719,1531.76171875,-43.398460388183594,126.56551361083984,1547.1683349609375,-232.06307983398438,129.94683837890625,1541.271484375,-482.2474060058594,133.15158081054688,1576.926025390625,-1040.36669921875,145.98483276367188,1649.103759765625,-1595.636962890625,137.3089141845703,1722.3583984375,2374.647216796875,361.48297119140625,1938.09619140625,765.9690551757812,390.3197937011719,1557.582763671875,571.621337890625,388.27081298828125,1519.495361328125,376.7172546386719,386.2428894042969,1480.619873046875,171.7100372314453,340.89031982421875,1535.520263671875,-8.63011360168457,368.96875,1464.1947021484375,-202.07418823242188,322.9599609375,1567.093505859375,-403.5725402832031,328.00372314453125,1572.90087890625,-639.613525390625,366.9528503417969,1588.62646484375,-816.048583984375,387.0431823730469,1599.65625,-1046.272705078125,346.9999694824219,1675.9102783203125,-1191.783447265625,387.0554504394531,1604.3978271484375,-1595.165283203125,337.27691650390625,1755.4315185546875,2371.374755859375,551.6885986328125,1955.374267578125,1168.634033203125,562.16748046875,1633.3609619140625,967.9612426757812,573.0701904296875,1586.729248046875,766.1687622070312,577.8045654296875,1553.7120361328125,-216.3032989501953,548.393310546875,1516.2694091796875,-429.95538330078125,573.7553100585938,1479.4468994140625,-628.3558959960938,526.4083862304688,1613.1875,-811.5791625976562,561.0745239257812,1590.1072998046875,-1001.2621459960938,559.6233520507812,1593.7044677734375,-1229.9683837890625,503.3935241699219,1731.8736572265625,-1594.7322998046875,520.8572998046875,1778.1593017578125,2368.165283203125,738.226318359375,1979.8809814453125,1566.828369140625,732.2125244140625,1746.0592041015625,1367.3729248046875,734.5153198242188,1707.466796875,1167.9542236328125,745.4766845703125,1654.8658447265625,-994.100830078125,747.1625366210938,1604.1529541015625,-1219.8038330078125,677.83642578125,1715.738037109375,-1390.363525390625,695.4452514648438,1746.281982421875,-1594.2935791015625,706.8569946289062,1783.919921875,2364.95361328125,924.8900146484375,2006.3184814453125,1753.88720703125,919.337646484375,1817.35009765625,1558.1119384765625,917.8737182617188,1780.4801025390625,-1593.8446044921875,897.162353515625,1773.9136962890625,2361.73779296875,1111.8004150390625,2033.4178466796875,1754.3837890625,1099.4990234375,1854.3765869140625,-1593.38818359375,1090.5377197265625,1768.8492431640625,2358.4931640625,1300.3944091796875,2051.03125,-1592.9322509765625,1283.7593994140625,1762.8836669921875,2355.21728515625,1490.77685546875,2048.545166015625,-1592.4783935546875,1476.1708984375,1757.182861328125,2351.92822265625,1681.9495849609375,2026.556396484375,2153.330078125,1681.240966796875,1997.421630859375,1955.322021484375,1680.533935546875,1956.5958251953125,1757.3526611328125,1679.8280029296875,1918.7481689453125,1558.5029296875,1679.1190185546875,1889.8646240234375,1358.2252197265625,1678.404052734375,1877.6317138671875,1158.121337890625,1677.689697265625,1861.7608642578125,959.0872192382812,1676.9791259765625,1839.2789306640625,762.0186767578125,1676.275390625,1807.10791015625,565.2618408203125,1675.573486328125,1776.4154052734375,367.74517822265625,1674.868408203125,1754.19580078125,168.23721313476562,1674.156982421875,1749.30419921875,-36.39208221435547,1673.4267578125,1739.8277587890625,-242.86471557617188,1672.6893310546875,1730.2325439453125,-448.63592529296875,1671.955078125,1729.5762939453125,-637.9149169921875,1671.2799072265625,1729.28173828125,-826.1788330078125,1670.608154296875,1735.0321044921875,-1015.1898193359375,1669.9334716796875,1743.6817626953125,-1205.75,1669.253662109375,1751.421630859375,-1398.0931396484375,1668.5672607421875,1752.1571044921875,-1592.0260009765625,1667.875244140625,1753.9761962890625,1002.1961059570312,-1512.156005859375,1877.2183837890625,1981.1600341796875,-1323.1912841796875,1930.1715087890625,999.6594848632812,-1304.3988037109375,1853.92919921875,798.544189453125,-1310.4017333984375,1805.3270263671875,166.3201904296875,-1317.6300048828125,1709.1168212890625,-42.8421630859375,-1320.305419921875,1675.0247802734375,1979.932373046875,-1104.2635498046875,1924.1817626953125,1776.35205078125,-1110.6661376953125,1936.3463134765625,1578.0670166015625,-1105.6319580078125,1925.4306640625,1379.1693115234375,-1101.78466796875,1909.31005859375,798.2483520507812,-1098.1488037109375,1792.2200927734375,1383.16259765625,-884.1163940429688,1857.3299560546875,1178.7606201171875,-897.6273193359375,1831.1666259765625,979.0017700195312,-898.30322265625,1787.5985107421875,778.6404418945312,-901.6343383789062,1743.96240234375,-1000.108642578125,-921.9380493164062,1578.9088134765625,778.1495361328125,-681.926025390625,1705.8345947265625,570.1453857421875,-706.2225341796875,1681.1072998046875,190.3843536376953,-689.7384033203125,1568.8663330078125,-29.304340362548828,-687.814453125,1570.87744140625,-28.82135009765625,-688.1071166992188,1570.0225830078125,-235.3181610107422,-685.1377563476562,1556.489013671875,-235.47506713867188,-694.3740234375,1548.1011962890625,-824.9374389648438,-721.090087890625,1527.9346923828125,-1018.1062622070312,-723.0318603515625,1557.6038818359375,-4.148658752441406,-491.23876953125,1542.6317138671875,-217.65748596191406,-489.2669372558594,1558.0517578125,-651.8333740234375,-504.536865234375,1504.415771484375,-840.3582153320312,-514.74365234375,1511.066162109375,190.52972412109375,-282.76507568359375,1511.9300537109375,-12.797534942626953,-281.6318664550781,1514.5782470703125,-35.68780517578125,-259.50604248046875,1579.19677734375,-21.403095245361328,-279.28875732421875,1543.6947021484375,-223.10716247558594,-281.1495361328125,1545.822265625,-224.02737426757812,-260.585205078125,1578.0498046875,-457.04638671875,-287.3643493652344,1519.8717041015625,-440.8179016113281,-272.1107177734375,1547.660400390625,-657.037841796875,-296.5337829589844,1498.54248046875,584.4010009765625,-73.07098388671875,1570.4178466796875,386.7144470214844,-75.25128936767578,1522.236328125,185.71128845214844,-72.7008285522461,1499.6422119140625,152.68763732910156,-67.85602569580078,1532.0760498046875,187.2092742919922,-72.08606719970703,1522.93896484375,-25.581417083740234,-74.78257751464844,1539.7813720703125,-486.458740234375,-66.04145812988281,1583.6512451171875,-845.80908203125,-63.1937255859375,1584.145751953125,-1043.1492919921875,-67.801025390625,1626.4603271484375,766.0354614257812,138.9999237060547,1640.630126953125,568.8196411132812,126.96051025390625,1592.22900390625,172.40538024902344,146.23106384277344,1520.9124755859375,141.99212646484375,131.4208526611328,1531.3609619140625,-48.825130462646484,125.51118469238281,1554.46923828125,-235.0180206298828,128.71957397460938,1563.2113037109375,-463.0207824707031,139.79696655273438,1591.4688720703125,-1022.1915283203125,169.048583984375,1606.5260009765625,755.79833984375,318.93414306640625,1665.189453125,561.4293823242188,325.1937255859375,1597.8072509765625,366.4954833984375,327.8224792480469,1546.3304443359375,159.07534790039062,342.640869140625,1518.4952392578125,182.30703735351562,381.8388977050781,1462.1298828125,-32.440486907958984,330.7741394042969,1533.82080078125,-222.6337890625,339.6781921386719,1538.0833740234375,-257.3437194824219,401.6546936035156,1526.80712890625,-209.98812866210938,364.6966247558594,1487.3306884765625,-400.4029541015625,337.00897216796875,1592.8740234375,-409.535400390625,348.8850402832031,1550.2484130859375,-631.6588134765625,341.95587158203125,1612.8179931640625,-820.3370361328125,355.1736755371094,1632.7056884765625,-1009.5250244140625,378.7546081542969,1635.862060546875,-1004.3805541992188,390.6888732910156,1610.7362060546875,-1230.890869140625,331.3013610839844,1714.5062255859375,1160.552001953125,524.9904174804688,1706.5909423828125,957.1329345703125,512.3649291992188,1683.5078125,751.6047973632812,509.43756103515625,1661.9312744140625,-218.62103271484375,570.6217041015625,1472.24609375,-426.3124694824219,548.5845947265625,1545.0867919921875,-626.7933349609375,563.538330078125,1578.27099609375,-633.5601806640625,572.1765747070312,1528.947998046875,-814.5684814453125,542.8018798828125,1626.6064453125,-817.2142944335938,566.5086059570312,1563.88671875,-1000.7460327148438,562.8569946289062,1606.599609375,-1177.8421630859375,562.4757690429688,1634.3077392578125,1557.7008056640625,716.8298950195312,1800.9166259765625,1355.640869140625,715.5660400390625,1759.655517578125,1149.356689453125,712.8779296875,1723.1378173828125,-1173.5333251953125,741.1052856445312,1638.8226318359375,1752.832763671875,907.3189086914062,1848.1177978515625,1549.630859375,903.5426025390625,1816.1397705078125,2414.391357421875,-1948.5203857421875,1945.909912109375,2211.495849609375,-1947.6064453125,1948.017822265625,2008.737060546875,-1946.69287109375,1948.359130859375,1806.5106201171875,-1945.7818603515625,1948.416015625,1604.9052734375,-1944.87353515625,1948.35009765625,1403.4156494140625,-1943.966064453125,1939.075439453125,1202.2891845703125,-1943.060546875,1920.4210205078125,1000.5457763671875,-1942.1519775390625,1904.80419921875,799.2075805664062,-1941.2412109375,1883.2606201171875,598.045654296875,-1940.3370361328125,1857.282470703125,396.7654724121094,-1939.428466796875,1826.06201171875,193.04347229003906,-1938.51025390625,1802.0281982421875,-17.208086013793945,-1937.562744140625,1781.9725341796875,-227.94325256347656,-1936.613037109375,1774.082275390625,-435.7214660644531,-1935.677001953125,1776.8287353515625,-629.3914184570312,-1934.8045654296875,1771.8912353515625,-821.3067016601562,-1933.9400634765625,1769.5908203125,-1014.4677124023438,-1933.0693359375,1765.878173828125,-1208.447265625,-1932.194091796875,1753.77490234375,-1403.633544921875,-1931.3133544921875,1741.8636474609375,-1600.515869140625,-1930.42626953125,1742.1068115234375,2410.743896484375,-1736.55615234375,1944.339599609375,-1600.031005859375,-1724.876953125,1752.9927978515625,2407.112548828125,-1525.529296875,1943.6292724609375,1219.3779296875,-1496.5728759765625,1908.001708984375,1015.913330078125,-1503.206298828125,1882.3582763671875,-1599.541015625,-1517.30126953125,1751.077392578125,2403.4755859375,-1314.151611328125,1948.6746826171875,2168.4716796875,-1329.4984130859375,1955.89990234375,1968.3660888671875,-1324.0164794921875,1928.895751953125,1011.4171142578125,-1301.3116455078125,1852.0107421875,808.7445678710938,-1304.664794921875,1821.9263916015625,363.7657470703125,-1321.901611328125,1753.3231201171875,157.8354034423828,-1316.0006103515625,1716.7691650390625,-51.874427795410156,-1318.795654296875,1683.0223388671875,-1599.0533447265625,-1310.7344970703125,1743.1934814453125,2399.83984375,-1102.76806640625,1959.969970703125,1963.7652587890625,-1119.278564453125,1959.719970703125,1768.5458984375,-1106.813720703125,1936.5679931640625,1573.1629638671875,-1100.5784912109375,1920.34619140625,1380.4586181640625,-1096.8914794921875,1878.0289306640625,803.4419555664062,-1099.044189453125,1796.89013671875,604.4627685546875,-1098.081787109375,1769.22998046875,-62.66325378417969,-1112.8668212890625,1659.9339599609375,-1002.7993774414062,-1103.755859375,1665.7874755859375,-1598.568359375,-1105.3348388671875,1726.987548828125,2396.208984375,-891.7271728515625,1969.248291015625,1369.382080078125,-896.8223266601562,1891.93212890625,1176.662109375,-890.5648193359375,1820.5875244140625,975.4281005859375,-896.0569458007812,1776.5970458984375,775.313720703125,-896.3833618164062,1729.763427734375,163.31649780273438,-889.3582763671875,1638.34326171875,-245.21531677246094,-898.8876953125,1603.0328369140625,-1039.2264404296875,-892.47314453125,1668.6605224609375,-1598.085693359375,-900.6849365234375,1698.852294921875,2392.58740234375,-681.2261962890625,1964.0450439453125,760.70166015625,-701.2466430664062,1739.79443359375,572.730712890625,-694.3636474609375,1669.818603515625,372.4974670410156,-706.34033203125,1633.7889404296875,166.8432159423828,-679.2517700195312,1612.39794921875,-17.626020431518555,-694.7406616210938,1549.05224609375,-233.10995483398438,-664.2274780273438,1561.427978515625,-841.9140014648438,-702.1465454101562,1589.417236328125,-1037.34326171875,-701.5861206054688,1591.7178955078125,-1597.60107421875,-695.1294555664062,1665.37158203125,2388.9755859375,-471.33056640625,1958.8487548828125,-20.612516403198242,-486.7339172363281,1570.134521484375,-243.11959838867188,-487.4014587402344,1516.235107421875,-656.6512451171875,-486.490234375,1545.2822265625,-850.4334106445312,-489.0920104980469,1571.8419189453125,-1597.1068115234375,-485.6906433105469,1646.4757080078125,2385.36865234375,-261.64874267578125,1959.4461669921875,180.16078186035156,-273.1402893066406,1536.6051025390625,-23.739572525024414,-277.4344482421875,1545.91845703125,-236.9369659423828,-275.994873046875,1522.3807373046875,-423.21063232421875,-268.4940185546875,1576.893798828125,-658.0222778320312,-274.373291015625,1539.715576171875,-855.9724731445312,-275.8072509765625,1572.2955322265625,-1596.6099853515625,-275.1369934082031,1658.6534423828125,2381.772216796875,-52.62653350830078,1950.6336669921875,579.7597045898438,-65.85885620117188,1586.8131103515625,380.9253845214844,-67.98908996582031,1549.2498779296875,175.16236877441406,-71.38636016845703,1543.90478515625,-48.541351318359375,-60.628021240234375,1576.8818359375,-496.8226013183594,-69.62390899658203,1569.34130859375,-857.725830078125,-72.40203857421875,1619.1871337890625,-1034.841796875,-46.660179138183594,1596.9354248046875,-1596.1220703125,-68.32810974121094,1696.3043212890625,2378.18408203125,155.9132843017578,1946.1475830078125,971.8048095703125,148.83738708496094,1664.7435302734375,766.7190551757812,140.82688903808594,1645.757568359375,563.706787109375,133.7022247314453,1624.0218505859375,137.87791442871094,125.74113464355469,1536.263671875,-45.95899200439453,125.4789810180664,1552.41943359375,-233.83253479003906,128.3912353515625,1547.046142578125,-480.90625,131.94090270996094,1579.4920654296875,-1042.8272705078125,143.3312530517578,1654.0523681640625,-1595.636962890625,137.13674926757812,1729.2413330078125,2374.654541015625,361.05145263671875,1951.2406005859375,764.4092407226562,388.0500793457031,1560.00048828125,569.5780029296875,385.7372131347656,1521.976806640625,374.2966613769531,383.6853942871094,1483.2996826171875,167.0404052734375,338.8049621582031,1541.6427001953125,-11.144821166992188,367.7886962890625,1468.075927734375,-202.74087524414062,321.2628173828125,1571.6463623046875,-403.1513671875,325.6743469238281,1576.5458984375,-638.6735229492188,363.8075256347656,1591.755615234375,-817.4531860351562,383.46514892578125,1604.0699462890625,-1049.0286865234375,342.88232421875,1681.284423828125,-1193.8292236328125,383.30902099609375,1609.54541015625,-1595.165283203125,337.2251281738281,1761.368896484375,2371.38134765625,551.3058471679688,1967.603271484375,1167.5101318359375,559.0144653320312,1639.26904296875,966.886962890625,570.2485961914062,1591.0135498046875,765.1319580078125,576.0541381835938,1557.29248046875,-216.9488067626953,546.0797119140625,1520.791748046875,-429.3873596191406,572.5532836914062,1482.2288818359375,-628.8873291015625,522.5985717773438,1617.54736328125,-810.8038940429688,558.22705078125,1594.6566162109375,-1000.7760620117188,557.3228759765625,1597.7349853515625,-1233.356201171875,500.50787353515625,1737.817626953125,-1594.7322998046875,520.8931884765625,1783.1258544921875,2368.170654296875,737.9078369140625,1991.4376220703125,1565.362548828125,729.3737182617188,1754.6627197265625,1365.8135986328125,731.5100708007812,1715.8338623046875,1166.54541015625,742.5427856445312,1662.173583984375,-993.7440185546875,743.8291015625,1609.7548828125,-1223.841796875,675.3639526367188,1722.218505859375,-1394.1141357421875,693.9098510742188,1752.3890380859375,-1594.2935791015625,706.9070434570312,1787.6358642578125,2364.957763671875,924.636962890625,2017.288818359375,1753.0745849609375,915.934814453125,1827.31591796875,1557.1112060546875,914.7321166992188,1789.9981689453125,-1593.8446044921875,897.183837890625,1777.2279052734375,2361.740234375,1111.67236328125,2043.1171875,1754.0513916015625,1095.2044677734375,1864.8382568359375,-1593.38818359375,1090.549072265625,1771.9705810546875,2358.494140625,1300.3345947265625,2059.512451171875,-1592.9322509765625,1283.771240234375,1766.116943359375,2355.218017578125,1490.7274169921875,2057.0869140625,-1592.4783935546875,1476.17822265625,1760.3182373046875,2351.92822265625,1681.9495849609375,2035.7177734375,2153.29296875,1681.240966796875,2006.638427734375,1955.371826171875,1680.533935546875,1965.248046875,1757.2896728515625,1679.8280029296875,1927.9439697265625,1558.2799072265625,1679.1190185546875,1900.2330322265625,1358.04052734375,1678.404052734375,1887.21923828125,1158.04052734375,1677.689697265625,1870.208251953125,959.11572265625,1676.9791259765625,1846.801025390625,762.1389770507812,1676.275390625,1814.01953125,565.35205078125,1675.573486328125,1783.4140625,367.87353515625,1674.868408203125,1760.6868896484375,168.42088317871094,1674.157470703125,1754.48779296875,-36.21003341674805,1673.42724609375,1744.6351318359375,-242.729736328125,1672.6893310546875,1735.7606201171875,-448.5193786621094,1671.955078125,1734.727783203125,-637.7899169921875,1671.280029296875,1733.44873046875,-826.0802001953125,1670.6083984375,1738.5494384765625,-1015.1246948242188,1669.9334716796875,1746.9073486328125,-1205.710205078125,1669.253662109375,1754.687255859375,-1398.07373046875,1668.5672607421875,1755.28173828125,-1592.0260009765625,1667.875244140625,1756.912353515625,1012.13330078125,-1505.1639404296875,1893.8836669921875,1969.1712646484375,-1330.1072998046875,1949.2213134765625,1008.8242797851562,-1298.8807373046875,1870.2596435546875,807.0999755859375,-1306.92919921875,1821.486328125,156.12330627441406,-1320.79150390625,1720.9290771484375,-54.098548889160156,-1323.75732421875,1687.1044921875,1966.8404541015625,-1111.391357421875,1943.0150146484375,1764.6231689453125,-1116.0693359375,1953.0889892578125,1567.731201171875,-1109.3079833984375,1941.0491943359375,1371.1768798828125,-1103.576416015625,1923.1163330078125,806.0651245117188,-1095.927978515625,1807.33447265625,1374.35791015625,-886.1121826171875,1870.59326171875,1170.21875,-900.7340087890625,1843.7486572265625,970.8497314453125,-902.6754760742188,1799.893798828125,770.275390625,-907.5487060546875,1756.611328125,-1003.0715942382812,-922.0575561523438,1586.01806640625,769.44970703125,-687.7872314453125,1716.371826171875,561.3150024414062,-714.4737548828125,1692.7928466796875,183.8920440673828,-688.989990234375,1577.2923583984375,-33.55886459350586,-685.2368774414062,1578.4078369140625,-33.00274658203125,-685.5737915039062,1577.4234619140625,-235.69305419921875,-678.800537109375,1562.9625244140625,-234.72909545898438,-687.1962280273438,1556.820068359375,-826.5294799804688,-720.5782470703125,1533.4261474609375,-1019.6505126953125,-723.06884765625,1563.5755615234375,-6.363746643066406,-490.6100158691406,1546.283203125,-217.5236053466797,-486.5802001953125,1560.535400390625,-652.652099609375,-503.48114013671875,1508.6826171875,-841.75048828125,-513.6347045898438,1516.5078125,188.10997009277344,-281.6635437011719,1516.868408203125,-14.919550895690918,-281.0461120605469,1518.419921875,-37.2108154296875,-258.5097961425781,1582.32177734375,-23.593326568603516,-278.3499450683594,1547.644775390625,-223.3724822998047,-279.5487060546875,1547.865966796875,-223.40396118164062,-258.5357360839844,1581.4322509765625,-456.80096435546875,-286.42767333984375,1522.2421875,-440.4317321777344,-270.50323486328125,1551.5843505859375,-657.3929443359375,-295.5353698730469,1501.8516845703125,582.5346069335938,-70.3778305053711,1576.3358154296875,384.6072082519531,-72.85014343261719,1527.949462890625,183.52090454101562,-70.91568756103516,1504.8543701171875,149.3491973876953,-67.70327758789062,1536.143310546875,184.65972900390625,-71.74170684814453,1527.7132568359375,-28.530597686767578,-73.6678466796875,1544.1915283203125,-484.178466796875,-65.94520568847656,1587.4466552734375,-847.3456420898438,-63.8358039855957,1588.8731689453125,-1044.8687744140625,-68.36187744140625,1630.586181640625,765.3903198242188,142.156005859375,1645.638671875,567.4900512695312,129.9290008544922,1597.8450927734375,169.95150756835938,145.10494995117188,1525.6787109375,137.97535705566406,130.1879425048828,1536.963134765625,-51.30552673339844,124.59019470214844,1559.439697265625,-236.58370971679688,127.64292907714844,1568.055908203125,-461.72149658203125,137.72610473632812,1594.5826416015625,-1024.1671142578125,166.35023498535156,1611.24365234375,754.4907836914062,316.0653991699219,1668.5469970703125,559.9342651367188,322.03717041015625,1601.1021728515625,364.74200439453125,325.3548889160156,1549.220703125,156.89849853515625,340.2523498535156,1522.275146484375,179.29678344726562,379.7621765136719,1465.462646484375,-35.35082244873047,328.86138916015625,1540.11962890625,-224.70970153808594,337.1571044921875,1544.4825439453125,-257.8998718261719,399.41619873046875,1531.1690673828125,-211.70816040039062,363.7308044433594,1491.00537109375,-400.59588623046875,334.7555847167969,1596.157470703125,-409.44219970703125,346.4766845703125,1554.4664306640625,-632.0535278320312,338.8410339355469,1616.802490234375,-822.135498046875,352.4500732421875,1635.7315673828125,-1011.4956665039062,375.04339599609375,1640.225830078125,-1006.0374755859375,386.66436767578125,1615.635498046875,-1233.8040771484375,327.7417297363281,1720.0101318359375,1159.4481201171875,522.124267578125,1713.0098876953125,956.1773681640625,508.7923889160156,1689.276611328125,750.4635620117188,506.4154052734375,1666.2987060546875,-219.76904296875,569.4892578125,1475.721923828125,-425.2953796386719,546.851806640625,1548.9222412109375,-624.9739379882812,561.4664916992188,1582.5504150390625,-631.7555541992188,571.4675903320312,1531.34130859375,-815.9695434570312,539.5977783203125,1629.929931640625,-816.1624145507812,564.9896850585938,1567.0306396484375,-1000.2162475585938,559.3988037109375,1611.6488037109375,-1180.9287109375,558.9417724609375,1639.9361572265625,1556.3719482421875,713.7139282226562,1809.972900390625,1354.3543701171875,712.5318603515625,1767.4425048828125,1148.2354736328125,709.8333129882812,1729.5628662109375,-1177.1529541015625,737.3236694335938,1645.6265869140625,1751.940185546875,903.61376953125,1858.4088134765625,1548.55615234375,899.9346923828125,1826.334716796875,2414.391357421875,-1948.5203857421875,1964.2142333984375,2211.45166015625,-1947.6064453125,1966.285400390625,2008.657470703125,-1946.69287109375,1965.997802734375,1806.400146484375,-1945.7818603515625,1965.237060546875,1604.750732421875,-1944.87353515625,1964.861083984375,1403.2012939453125,-1943.966064453125,1955.971435546875,1201.9713134765625,-1943.060546875,1937.9901123046875,1000.1638793945312,-1942.1519775390625,1922.555908203125,798.7979125976562,-1941.2393798828125,1900.710205078125,597.7770385742188,-1940.3370361328125,1873.306640625,396.6488342285156,-1939.428466796875,1840.61376953125,192.9592742919922,-1938.51025390625,1815.6627197265625,-17.30242347717285,-1937.562744140625,1795.0068359375,-228.0425262451172,-1936.613037109375,1786.3004150390625,-435.863037109375,-1935.677001953125,1788.8348388671875,-629.5848388671875,-1934.8045654296875,1784.7308349609375,-821.5422973632812,-1933.9400634765625,1782.7728271484375,-1014.671142578125,-1933.0693359375,1778.07861328125,-1208.5355224609375,-1932.194091796875,1764.708251953125,-1403.604248046875,-1931.3133544921875,1751.4068603515625,-1600.515869140625,-1930.42626953125,1750.899658203125,2410.743896484375,-1736.5689697265625,1962.324462890625,-1600.031005859375,-1724.851806640625,1760.462646484375,2407.112548828125,-1525.5601806640625,1961.277587890625,1230.7640380859375,-1486.6658935546875,1925.3929443359375,1026.721923828125,-1495.19970703125,1899.120361328125,-1599.541015625,-1517.301025390625,1757.8643798828125,2403.47705078125,-1314.2601318359375,1967.572509765625,2154.59912109375,-1337.4278564453125,1974.91162109375,1954.54345703125,-1332.3905029296875,1948.7142333984375,1021.36474609375,-1295.3629150390625,1869.0657958984375,817.8480834960938,-1300.4315185546875,1838.0679931640625,354.4769287109375,-1325.2744140625,1764.626220703125,147.7362060546875,-1318.656494140625,1727.6712646484375,-63.45880889892578,-1321.1214599609375,1693.636474609375,-1599.0533447265625,-1310.795166015625,1749.229248046875,2399.84326171875,-1102.970458984375,1979.93115234375,1951.4183349609375,-1126.0001220703125,1977.75830078125,1756.028564453125,-1112.8778076171875,1954.3665771484375,1562.2066650390625,-1104.434326171875,1936.3480224609375,1370.85791015625,-1099.3133544921875,1892.4962158203125,811.3677978515625,-1096.633056640625,1812.44384765625,611.7211303710938,-1096.87353515625,1784.20703125,-75.14847564697266,-1115.8441162109375,1671.3382568359375,-1005.6552124023438,-1103.8096923828125,1672.909423828125,-1598.568359375,-1105.4404296875,1732.7274169921875,2396.21240234375,-891.9261474609375,1988.7205810546875,1360.845947265625,-899.019775390625,1905.21435546875,1167.7689208984375,-893.6270751953125,1833.1278076171875,966.5406494140625,-900.443359375,1788.05029296875,766.5164794921875,-901.6087036132812,1740.665283203125,154.3275146484375,-887.9158935546875,1647.9146728515625,-247.38418579101562,-896.6332397460938,1613.3819580078125,-1042.116455078125,-891.393310546875,1673.7208251953125,-1598.085693359375,-900.7713012695312,1705.0096435546875,2392.5908203125,-681.4298706054688,1983.3946533203125,751.935791015625,-708.6361083984375,1752.364990234375,564.1568603515625,-701.6119995117188,1680.594482421875,363.87835693359375,-713.505126953125,1644.6925048828125,159.86795043945312,-677.4915771484375,1621.087646484375,-22.11396598815918,-693.9014282226562,1555.3306884765625,-232.8153076171875,-660.1527709960938,1565.012939453125,-844.41650390625,-700.1268920898438,1595.8265380859375,-1040.236083984375,-699.80908203125,1597.575927734375,-1597.60107421875,-695.1641235351562,1672.063720703125,2388.979736328125,-471.5601501464844,1977.487548828125,-22.326684951782227,-486.1358642578125,1573.272705078125,-241.0096435546875,-485.4794616699219,1521.7672119140625,-657.6592407226562,-484.6231689453125,1551.0269775390625,-852.090087890625,-487.31719970703125,1578.115234375,-1597.1068115234375,-485.752685546875,1653.006591796875,2385.37353515625,-261.9443054199219,1976.15234375,177.50628662109375,-271.95220947265625,1541.6429443359375,-25.82579231262207,-276.2163391113281,1549.772216796875,-235.92385864257812,-274.69500732421875,1525.530517578125,-421.53125,-266.9093017578125,1581.21337890625,-658.6737670898438,-272.5728454589844,1544.9652099609375,-858.0308837890625,-275.6118469238281,1577.7862548828125,-1596.6099853515625,-275.2080383300781,1665.1812744140625,2381.77880859375,-53.01985168457031,1965.8402099609375,578.33642578125,-63.33609390258789,1591.8480224609375,379.1075744628906,-66.07524871826172,1554.1910400390625,172.3682403564453,-71.35533142089844,1549.031005859375,-50.559356689453125,-59.99554443359375,1580.0206298828125,-495.7117919921875,-69.06387329101562,1572.1842041015625,-859.1019897460938,-72.56816864013672,1622.870361328125,-1036.718505859375,-48.534507751464844,1601.4525146484375,-1596.1220703125,-68.40332794189453,1702.7305908203125,2378.191650390625,155.47535705566406,1960.3048095703125,970.845703125,152.87672424316406,1670.6710205078125,766.1376953125,143.64463806152344,1650.3807373046875,562.9783935546875,136.0413360595703,1628.173828125,134.34506225585938,125.16337585449219,1540.765625,-48.5195198059082,124.39246368408203,1557.6705322265625,-235.6020050048828,126.83563232421875,1552.82080078125,-479.5650634765625,130.73020935058594,1582.058349609375,-1045.2880859375,140.67767333984375,1659.001220703125,-1595.636962890625,136.96458435058594,1736.1241455078125,2374.662109375,360.6199951171875,1964.384765625,762.8495483398438,385.7803955078125,1562.4180908203125,567.53466796875,383.20361328125,1524.458251953125,371.87603759765625,381.1278991699219,1485.9793701171875,162.37078857421875,336.7196044921875,1547.7652587890625,-13.65953254699707,366.60858154296875,1471.95654296875,-203.40756225585938,319.5657043457031,1576.19921875,-402.730224609375,323.3449401855469,1580.190673828125,-637.7333984375,360.6622009277344,1594.885009765625,-818.8577270507812,379.8871154785156,1608.4835205078125,-1051.7847900390625,338.7647705078125,1686.65869140625,-1195.8748779296875,379.5626525878906,1614.692626953125,-1595.165283203125,337.17340087890625,1767.30615234375,2371.3876953125,550.923095703125,1979.832275390625,1166.385986328125,555.8613891601562,1645.1773681640625,965.8129272460938,567.4271240234375,1595.2974853515625,764.09521484375,574.3037719726562,1560.872802734375,-217.59432983398438,543.7661743164062,1525.3140869140625,-428.81927490234375,571.351318359375,1485.01025390625,-629.4187622070312,518.7886962890625,1621.907470703125,-810.0286254882812,555.3795776367188,1599.205810546875,-1000.2899169921875,555.0223388671875,1601.765869140625,-1236.7437744140625,497.6221923828125,1743.761474609375,-1594.7322998046875,520.9290161132812,1788.0924072265625,2368.17626953125,737.5894775390625,2002.994140625,1563.8963623046875,726.5349731445312,1763.266357421875,1364.254150390625,728.5049438476562,1724.2010498046875,1165.1368408203125,739.6087036132812,1669.4814453125,-993.3870849609375,740.4956665039062,1615.35693359375,-1227.8798828125,672.8914794921875,1728.69921875,-1397.86474609375,692.3746948242188,1758.49609375,-1594.2935791015625,706.95703125,1791.3515625,2364.96240234375,924.3839111328125,2028.259033203125,1752.2620849609375,912.5320434570312,1837.2816162109375,1556.1104736328125,911.5904541015625,1799.5162353515625,-1593.8446044921875,897.205322265625,1780.5423583984375,2361.7421875,1111.5445556640625,2052.816650390625,1753.7188720703125,1090.9097900390625,1875.3001708984375,-1593.38818359375,1090.560302734375,1775.0919189453125,2358.4951171875,1300.2747802734375,2067.99365234375,-1592.9322509765625,1283.7833251953125,1769.3502197265625,2355.21875,1490.677978515625,2065.62841796875,-1592.4783935546875,1476.185302734375,1763.453857421875,2351.92822265625,1681.9495849609375,2044.8790283203125,2153.255859375,1681.240966796875,2015.8553466796875,1955.42138671875,1680.533935546875,1973.900146484375,1757.226806640625,1679.8280029296875,1937.1397705078125,1558.0570068359375,1679.1190185546875,1910.601318359375,1357.855712890625,1678.404052734375,1896.806884765625,1157.959716796875,1677.689697265625,1878.655517578125,959.1441650390625,1676.9791259765625,1854.322998046875,762.2592163085938,1676.275390625,1820.93115234375,565.4423217773438,1675.573486328125,1790.412841796875,368.001953125,1674.868408203125,1767.1778564453125,168.60455322265625,1674.158203125,1759.6715087890625,-36.02798843383789,1673.427978515625,1749.4420166015625,-242.5948028564453,1672.6893310546875,1741.288818359375,-448.4028015136719,1671.955078125,1739.8795166015625,-637.6649169921875,1671.2802734375,1737.615966796875,-825.9815063476562,1670.6087646484375,1742.06640625,-1015.0593872070312,1669.9334716796875,1750.13330078125,-1205.6702880859375,1669.253662109375,1757.95263671875,-1398.05419921875,1668.5672607421875,1758.40625,-1592.0260009765625,1667.875244140625,1759.848388671875,1022.0704345703125,-1498.1715087890625,1910.549072265625,1957.1824951171875,-1337.023193359375,1968.2713623046875,1017.9892578125,-1293.362548828125,1886.5899658203125,815.65576171875,-1303.456787109375,1837.6453857421875,145.9263916015625,-1323.953369140625,1732.741455078125,-65.35493469238281,-1327.20947265625,1699.18408203125,1953.74853515625,-1118.519287109375,1961.8486328125,1752.893798828125,-1121.4725341796875,1969.8321533203125,1557.395263671875,-1112.984130859375,1956.6680908203125,1363.1842041015625,-1105.3681640625,1936.9227294921875,813.8820190429688,-1093.7069091796875,1822.44921875,1365.55322265625,-888.1080932617188,1883.856201171875,1161.6768798828125,-903.8406982421875,1856.3306884765625,962.6976318359375,-907.0477905273438,1812.18896484375,761.910400390625,-913.462890625,1769.2603759765625,-1006.0343017578125,-922.1771240234375,1593.12744140625,760.7500610351562,-693.6483764648438,1726.9090576171875,552.4846801757812,-722.724853515625,1704.4783935546875,177.39971923828125,-688.241455078125,1585.71826171875,-37.81338882446289,-682.6592407226562,1585.938232421875,-37.184146881103516,-683.0404663085938,1584.824462890625,-236.06790161132812,-672.46337890625,1569.4364013671875,-233.9831085205078,-680.0182495117188,1565.5386962890625,-828.1213989257812,-720.06640625,1538.9173583984375,-1021.1947631835938,-723.1058959960938,1569.547119140625,-8.578838348388672,-489.9812316894531,1549.935302734375,-217.3897247314453,-483.8934631347656,1563.01904296875,-653.4708862304688,-502.4254150390625,1512.949462890625,-843.1428833007812,-512.525634765625,1521.949462890625,185.6902313232422,-280.56207275390625,1521.8067626953125,-17.041566848754883,-280.4603576660156,1522.261474609375,-38.73383331298828,-257.5135498046875,1585.4468994140625,-25.78356170654297,-277.41119384765625,1551.5947265625,-223.63780212402344,-277.9479064941406,1549.909912109375,-222.780517578125,-256.4862365722656,1584.8145751953125,-456.5555419921875,-285.49102783203125,1524.6124267578125,-440.04559326171875,-268.8957214355469,1555.5087890625,-657.748046875,-294.5369567871094,1505.1607666015625,580.668212890625,-67.6846694946289,1582.2537841796875,382.4999694824219,-70.4489974975586,1533.662841796875,181.33047485351562,-69.13053894042969,1510.0667724609375,146.0107421875,-67.55052947998047,1540.2103271484375,182.11016845703125,-71.3973388671875,1532.4874267578125,-31.479778289794922,-72.55311584472656,1548.601806640625,-481.89813232421875,-65.84893035888672,1591.2420654296875,-848.88232421875,-64.47787475585938,1593.6007080078125,-1046.58837890625,-68.9227294921875,1634.7122802734375,764.7451171875,145.31210327148438,1650.6473388671875,566.160400390625,132.89747619628906,1603.4609375,167.4976043701172,143.97885131835938,1530.44482421875,133.9585723876953,128.95504760742188,1542.5653076171875,-53.78593063354492,123.66921997070312,1564.410400390625,-238.14939880371094,126.56629943847656,1572.9005126953125,-460.42218017578125,135.6552276611328,1597.6961669921875,-1026.1427001953125,163.65185546875,1615.961669921875,753.1831665039062,313.1966247558594,1671.904296875,558.4390869140625,318.8805847167969,1604.3973388671875,362.9884948730469,322.8872375488281,1552.1107177734375,154.7216796875,337.8638916015625,1526.054931640625,176.28651428222656,377.6853942871094,1468.7955322265625,-38.26116180419922,326.9486389160156,1546.4183349609375,-226.78562927246094,334.6360778808594,1550.8817138671875,-258.4560546875,397.1776428222656,1535.5311279296875,-213.42820739746094,362.764892578125,1494.680419921875,-400.78887939453125,332.5022277832031,1599.4407958984375,-409.34893798828125,344.068359375,1558.6842041015625,-632.4481201171875,335.7262268066406,1620.7872314453125,-823.9338989257812,349.72650146484375,1638.75732421875,-1013.4661865234375,371.3322448730469,1644.589599609375,-1007.6943969726562,382.639892578125,1620.5347900390625,-1236.7171630859375,324.1821594238281,1725.5140380859375,1158.3441162109375,519.2581787109375,1719.428955078125,955.2217407226562,505.21990966796875,1695.0460205078125,749.3220825195312,503.3932189941406,1670.6663818359375,-220.91700744628906,568.356689453125,1479.197509765625,-424.2783508300781,545.1189575195312,1552.757568359375,-623.154541015625,559.3946533203125,1586.8297119140625,-629.9508666992188,570.758544921875,1533.7347412109375,-817.3704833984375,536.3939208984375,1633.253173828125,-815.1104736328125,563.4708251953125,1570.1744384765625,-999.6865844726562,555.9407958984375,1616.6978759765625,-1184.01513671875,555.40771484375,1645.564453125,1555.0430908203125,710.5979614257812,1819.0294189453125,1353.0677490234375,709.497802734375,1775.2296142578125,1147.114013671875,706.7887573242188,1735.98779296875,-1180.7725830078125,733.5419921875,1652.4302978515625,1751.0477294921875,899.9086303710938,1868.6998291015625,1547.481201171875,896.32666015625,1836.52978515625,2414.391357421875,-1948.5203857421875,1982.5186767578125,2211.407470703125,-1947.6064453125,1984.5528564453125,2008.577880859375,-1946.69287109375,1983.6361083984375,1806.2899169921875,-1945.7818603515625,1982.05810546875,1604.59619140625,-1944.87353515625,1981.3719482421875,1402.98681640625,-1943.966064453125,1972.8673095703125,1201.6536865234375,-1943.060546875,1955.55908203125,999.7821044921875,-1942.1519775390625,1940.307861328125,798.3881225585938,-1941.237548828125,1918.1597900390625,597.508544921875,-1940.3370361328125,1889.3311767578125,396.5321960449219,-1939.428466796875,1855.16552734375,192.87510681152344,-1938.51025390625,1829.297119140625,-17.39675521850586,-1937.562744140625,1808.041015625,-228.1417999267578,-1936.613037109375,1798.5184326171875,-436.0046691894531,-1935.677001953125,1800.84130859375,-629.7781982421875,-1934.8045654296875,1797.5704345703125,-821.7778930664062,-1933.9400634765625,1795.954833984375,-1014.87451171875,-1933.0693359375,1790.2791748046875,-1208.6236572265625,-1932.194091796875,1775.6416015625,-1403.574951171875,-1931.3133544921875,1760.949951171875,-1600.515869140625,-1930.42626953125,1759.6927490234375,2410.743896484375,-1736.58154296875,1980.3092041015625,-1600.031005859375,-1724.826904296875,1767.9324951171875,2407.112548828125,-1525.591064453125,1978.9259033203125,1242.150390625,-1476.759033203125,1942.7840576171875,1037.5306396484375,-1487.193115234375,1915.88232421875,-1599.541015625,-1517.30078125,1764.651611328125,2403.478271484375,-1314.368896484375,1986.4700927734375,2140.72607421875,-1345.3572998046875,1993.9232177734375,1940.7208251953125,-1340.764404296875,1968.532958984375,1031.3125,-1289.4140625,1886.1209716796875,826.9515991210938,-1296.197998046875,1854.20947265625,345.1881103515625,-1328.647216796875,1775.9293212890625,137.6370086669922,-1321.3125,1738.57373046875,-75.04318237304688,-1323.4471435546875,1704.2506103515625,-1599.0533447265625,-1310.8558349609375,1755.2650146484375,2399.8466796875,-1103.1728515625,1999.892578125,1939.071044921875,-1132.7218017578125,1995.7965087890625,1743.5111083984375,-1118.942138671875,1972.1651611328125,1551.25048828125,-1108.2900390625,1952.3497314453125,1361.257080078125,-1101.7353515625,1906.9637451171875,819.2935791015625,-1094.2218017578125,1827.9976806640625,618.9794921875,-1095.6650390625,1799.1837158203125,-87.63368225097656,-1118.8212890625,1682.742431640625,-1008.51123046875,-1103.8636474609375,1680.031005859375,-1598.568359375,-1105.546142578125,1738.46728515625,2396.2158203125,-892.125,2008.192626953125,1352.3095703125,-901.2172241210938,1918.496337890625,1158.875244140625,-896.6892700195312,1845.66796875,957.6533203125,-904.8297729492188,1799.50341796875,757.71923828125,-906.8339233398438,1751.5672607421875,145.3385467529297,-886.4735107421875,1657.4862060546875,-249.5531005859375,-894.37890625,1623.7308349609375,-1045.0064697265625,-890.3135375976562,1678.7808837890625,-1598.085693359375,-900.8577880859375,1711.16650390625,2392.59423828125,-681.6334838867188,2002.7442626953125,743.1697998046875,-716.0256958007812,1764.935546875,555.5829467773438,-708.8602294921875,1691.3701171875,355.2592468261719,-720.6698608398438,1655.5958251953125,152.8927001953125,-675.7312622070312,1629.777587890625,-26.60191535949707,-693.0621948242188,1561.6094970703125,-232.52066040039062,-656.0780029296875,1568.597900390625,-846.9190063476562,-698.1072387695312,1602.2357177734375,-1043.129150390625,-698.0321044921875,1603.4337158203125,-1597.60107421875,-695.1987915039062,1678.755615234375,2388.983642578125,-471.78973388671875,1996.1260986328125,-24.040849685668945,-485.5378723144531,1576.41064453125,-238.8997039794922,-483.5574645996094,1527.299072265625,-658.6671142578125,-482.756103515625,1556.771484375,-853.7466430664062,-485.54254150390625,1584.3885498046875,-1597.1068115234375,-485.8147888183594,1659.5374755859375,2385.378662109375,-262.23992919921875,1992.8582763671875,174.851806640625,-270.76409912109375,1546.6805419921875,-27.912019729614258,-274.99822998046875,1553.6259765625,-234.9107208251953,-273.39508056640625,1528.6800537109375,-419.8518371582031,-265.32464599609375,1585.5328369140625,-659.3253173828125,-270.7723693847656,1550.2149658203125,-860.0891723632812,-275.41650390625,1583.27685546875,-1596.6099853515625,-275.27911376953125,1671.7088623046875,2381.78564453125,-53.41317367553711,1981.046630859375,576.9131469726562,-60.813331604003906,1596.883056640625,377.2897644042969,-64.16141510009766,1559.1319580078125,169.5741424560547,-71.32429504394531,1554.1571044921875,-52.57734680175781,-59.363067626953125,1583.1595458984375,-494.6011047363281,-68.50385284423828,1575.027099609375,-860.4779052734375,-72.73430633544922,1626.5535888671875,-1038.59521484375,-50.40884017944336,1605.9697265625,-1596.1220703125,-68.47854614257812,1709.1571044921875,2378.19921875,155.03744506835938,1974.462158203125,969.8865356445312,156.91607666015625,1676.598876953125,765.5560913085938,146.46240234375,1655.0040283203125,562.2500610351562,138.3804473876953,1632.325927734375,130.81222534179688,124.58561706542969,1545.267578125,-51.080047607421875,123.3059310913086,1562.9215087890625,-237.3714599609375,125.280029296875,1558.595458984375,-478.223876953125,129.51953125,1584.62451171875,-1047.7489013671875,138.02410888671875,1663.9498291015625,-1595.636962890625,136.79241943359375,1743.007080078125,2374.66943359375,360.1885070800781,1977.5289306640625,761.2897338867188,383.5106506347656,1564.83544921875,565.4912109375,380.6700439453125,1526.9398193359375,369.45538330078125,378.57037353515625,1488.65869140625,157.701171875,334.6342468261719,1553.8876953125,-16.17424201965332,365.4284973144531,1475.8375244140625,-204.07421875,317.86859130859375,1580.7520751953125,-402.3091125488281,321.0155029296875,1583.83544921875,-636.7933349609375,357.5168762207031,1598.01416015625,-820.2622680664062,376.3091125488281,1612.8970947265625,-1054.540771484375,334.6471862792969,1692.032958984375,-1197.920654296875,375.81622314453125,1619.8402099609375,-1595.165283203125,337.1215515136719,1773.243408203125,2371.394287109375,550.5403442382812,1992.0611572265625,1165.2620849609375,552.7083129882812,1651.08544921875,964.73876953125,564.6055908203125,1599.5816650390625,763.058349609375,572.5533447265625,1564.4534912109375,-218.23983764648438,541.4525756835938,1529.83642578125,-428.2512512207031,570.1494750976562,1487.7919921875,-629.9501342773438,514.9790649414062,1626.2674560546875,-809.2534790039062,552.5320434570312,1603.755126953125,-999.8037719726562,552.7218017578125,1605.7965087890625,-1240.1317138671875,494.7365417480469,1749.70556640625,-1594.7322998046875,520.96484375,1793.05908203125,2368.181640625,737.27099609375,2014.550537109375,1562.4305419921875,723.6961059570312,1771.8699951171875,1362.69482421875,725.4995727539062,1732.5679931640625,1163.72802734375,736.6747436523438,1676.789306640625,-993.0301513671875,737.162109375,1620.958740234375,-1231.91796875,670.4191284179688,1735.1798095703125,-1401.6156005859375,690.8394165039062,1764.60302734375,-1594.2935791015625,707.0070190429688,1795.0672607421875,2364.966552734375,924.130859375,2039.229248046875,1751.4495849609375,909.1292724609375,1847.2474365234375,1555.10986328125,908.4488525390625,1809.0343017578125,-1593.8446044921875,897.2267456054688,1783.856689453125,2361.74462890625,1111.41650390625,2062.51611328125,1753.386474609375,1086.615234375,1885.761962890625,-1593.38818359375,1090.571533203125,1778.213134765625,2358.49609375,1300.215087890625,2076.47509765625,-1592.9322509765625,1283.79541015625,1772.58349609375,2355.219482421875,1490.6285400390625,2074.170166015625,-1592.4783935546875,1476.192626953125,1766.5892333984375,2351.92822265625,1681.9495849609375,2054.040283203125,2153.218994140625,1681.240966796875,2025.072021484375,1955.47119140625,1680.533935546875,1982.552490234375,1757.1640625,1679.8280029296875,1946.33544921875,1557.833740234375,1679.1190185546875,1920.9697265625,1357.6708984375,1678.404052734375,1906.3941650390625,1157.87890625,1677.689697265625,1887.10302734375,959.172607421875,1676.9791259765625,1861.844970703125,762.379638671875,1676.275390625,1827.8427734375,565.532470703125,1675.573486328125,1797.4114990234375,368.1303405761719,1674.868408203125,1773.6688232421875,168.7882537841797,1674.158935546875,1764.855224609375,-35.8459358215332,1673.4287109375,1754.2491455078125,-242.4598388671875,1672.6893310546875,1746.8167724609375,-448.2862243652344,1671.955078125,1745.0311279296875,-637.5399169921875,1671.2806396484375,1741.782958984375,-825.8828735351562,1670.6090087890625,1745.583740234375,-1014.9942016601562,1669.9334716796875,1753.359130859375,-1205.630615234375,1669.253662109375,1761.218017578125,-1398.03466796875,1668.5672607421875,1761.531005859375,-1592.0260009765625,1667.875244140625,1762.7845458984375,1032.0076904296875,-1491.179443359375,1927.214111328125,1945.193603515625,-1343.939208984375,1987.321533203125,1027.1539306640625,-1287.84423828125,1902.92041015625,824.2115478515625,-1299.984375,1853.8040771484375,135.72952270507812,-1327.115234375,1744.5535888671875,-76.61131286621094,-1330.66162109375,1711.2637939453125,1940.65673828125,-1125.6473388671875,1980.6820068359375,1741.164794921875,-1126.875732421875,1986.5750732421875,1547.0594482421875,-1116.66015625,1972.2864990234375,1355.191650390625,-1107.1600341796875,1950.7288818359375,821.6986694335938,-1091.486083984375,1837.5638427734375,1356.7484130859375,-890.1038818359375,1897.119384765625,1153.1351318359375,-906.9473876953125,1868.912841796875,954.5455322265625,-911.4201049804688,1824.4844970703125,753.5454711914062,-919.3771362304688,1781.9091796875,-1008.997314453125,-922.2966918945312,1600.236572265625,752.05029296875,-699.5096435546875,1737.4464111328125,543.6544189453125,-730.9758911132812,1716.1639404296875,170.9073944091797,-687.4930419921875,1594.1441650390625,-42.06790542602539,-680.0816650390625,1593.468505859375,-41.36553955078125,-680.5072021484375,1592.225341796875,-236.44277954101562,-666.1260986328125,1575.9097900390625,-233.2371368408203,-672.8403930664062,1574.2576904296875,-829.71337890625,-719.5545654296875,1544.40869140625,-1022.739013671875,-723.1428833007812,1575.5186767578125,-10.793926239013672,-489.3524169921875,1553.5869140625,-217.25584411621094,-481.20672607421875,1565.5025634765625,-654.28955078125,-501.36962890625,1517.216064453125,-844.53515625,-511.4165954589844,1527.39111328125,183.27047729492188,-279.4606018066406,1526.745361328125,-19.163578033447266,-279.8745422363281,1526.1031494140625,-40.2568359375,-256.517333984375,1588.5718994140625,-27.973793029785156,-276.472412109375,1555.544677734375,-223.90313720703125,-276.3470764160156,1551.9537353515625,-222.15707397460938,-254.436767578125,1588.197021484375,-456.31005859375,-284.554443359375,1526.982666015625,-439.6594543457031,-267.2882385253906,1559.4326171875,-658.1032104492188,-293.53857421875,1508.469970703125,578.8018188476562,-64.99151611328125,1588.1719970703125,380.3927917480469,-68.04783630371094,1539.376220703125,179.14007568359375,-67.34540557861328,1515.279052734375,142.6722869873047,-67.39778137207031,1544.27734375,179.56060791015625,-71.0529556274414,1537.2618408203125,-34.42896270751953,-71.43840026855469,1553.0120849609375,-479.617919921875,-65.75267028808594,1595.03759765625,-850.4189453125,-65.11994934082031,1598.3282470703125,-1048.307861328125,-69.48358917236328,1638.83837890625,764.0999145507812,148.4681854248047,1655.65576171875,564.830810546875,135.865966796875,1609.0771484375,165.043701171875,142.85272216796875,1535.2109375,129.94180297851562,127.72213745117188,1548.1673583984375,-56.266326904296875,122.74824523925781,1569.3809814453125,-239.71507263183594,125.48965454101562,1577.7451171875,-459.12286376953125,133.58436584472656,1600.8099365234375,-1028.118408203125,160.9534912109375,1620.6793212890625,751.8756103515625,310.327880859375,1675.2615966796875,556.94384765625,315.7240295410156,1607.6922607421875,361.2349853515625,320.4196472167969,1555.000732421875,152.54483032226562,335.4754333496094,1529.834716796875,173.27621459960938,375.6086120605469,1472.1282958984375,-41.1714973449707,325.0358581542969,1552.717041015625,-228.86154174804688,332.114990234375,1557.2808837890625,-259.01220703125,394.93914794921875,1539.89306640625,-215.14822387695312,361.7990417480469,1498.3553466796875,-400.9818420410156,330.24884033203125,1602.72412109375,-409.2557373046875,341.65997314453125,1562.9022216796875,-632.8428344726562,332.6114501953125,1624.7718505859375,-825.7323608398438,347.0029602050781,1641.7830810546875,-1015.4368286132812,367.62103271484375,1648.9532470703125,-1009.351318359375,378.6153869628906,1625.4344482421875,-1239.630615234375,320.6225891113281,1731.01806640625,1157.2401123046875,516.3921508789062,1725.8477783203125,954.2662353515625,501.6474304199219,1700.8150634765625,748.1806640625,500.3710632324219,1675.0338134765625,-222.06500244140625,567.2242431640625,1482.67333984375,-423.2612609863281,543.3861694335938,1556.593017578125,-621.335205078125,557.32275390625,1591.1090087890625,-628.1463012695312,570.0494384765625,1536.128173828125,-818.771484375,533.1900024414062,1636.5765380859375,-814.0585327148438,561.9518432617188,1573.3179931640625,-999.1568603515625,552.4827270507812,1621.7470703125,-1187.1016845703125,551.8737182617188,1651.1927490234375,1553.714111328125,707.48193359375,1828.0859375,1351.78125,706.4635620117188,1783.0169677734375,1145.9925537109375,703.7443237304688,1742.41259765625,-1184.392333984375,729.7604370117188,1659.2342529296875,1750.1551513671875,896.2034912109375,1878.990966796875,1546.4063720703125,892.7186889648438,1846.724609375,2414.391357421875,-1948.5203857421875,2000.822998046875,2211.36328125,-1947.6064453125,2002.8203125,2008.498291015625,-1946.69287109375,2001.2747802734375,1806.179443359375,-1945.7818603515625,1998.8790283203125,1604.441650390625,-1944.87353515625,1997.8828125,1402.7723388671875,-1943.966064453125,1989.763427734375,1201.3360595703125,-1943.060546875,1973.1280517578125,999.4003295898438,-1942.1519775390625,1958.059814453125,797.9784545898438,-1941.235595703125,1935.6094970703125,597.2400512695312,-1940.3370361328125,1905.3553466796875,396.4155578613281,-1939.428466796875,1869.717041015625,192.79092407226562,-1938.51025390625,1842.931640625,-17.491092681884766,-1937.562744140625,1821.0750732421875,-228.24107360839844,-1936.613037109375,1810.73681640625,-436.1463317871094,-1935.677001953125,1812.8475341796875,-629.9716796875,-1934.8045654296875,1810.409912109375,-822.0133666992188,-1933.9400634765625,1809.1368408203125,-1015.077880859375,-1933.0693359375,1802.47998046875,-1208.7117919921875,-1932.194091796875,1786.5748291015625,-1403.5457763671875,-1931.3133544921875,1770.4931640625,-1600.515869140625,-1930.42626953125,1768.4857177734375,2410.743896484375,-1736.59423828125,1998.2940673828125,-1600.031005859375,-1724.802001953125,1775.4022216796875,2407.112548828125,-1525.621826171875,1996.5740966796875,1253.536865234375,-1466.8521728515625,1960.1751708984375,1048.3389892578125,-1479.1866455078125,1932.644287109375,-1599.541015625,-1517.30078125,1771.438720703125,2403.4794921875,-1314.4774169921875,2005.367919921875,2126.853759765625,-1353.2867431640625,2012.9345703125,1926.8980712890625,-1349.138427734375,1988.3515625,1041.2601318359375,-1283.46533203125,1903.1759033203125,836.05517578125,-1291.9647216796875,1870.350830078125,335.89923095703125,-1332.020263671875,1787.2325439453125,127.5378189086914,-1323.968505859375,1749.47607421875,-86.62757110595703,-1325.773193359375,1714.8648681640625,-1599.0533447265625,-1310.9166259765625,1761.3009033203125,2399.85009765625,-1103.3753662109375,2019.853759765625,1926.72412109375,-1139.443359375,2013.8348388671875,1730.9937744140625,-1125.00634765625,1989.9637451171875,1540.2943115234375,-1112.14599609375,1968.3515625,1351.6563720703125,-1104.1572265625,1921.4312744140625,827.2192993164062,-1091.8106689453125,1843.5513916015625,626.23779296875,-1094.456787109375,1814.1605224609375,-100.118896484375,-1121.798583984375,1694.146728515625,-1011.3671875,-1103.917724609375,1687.153076171875,-1598.568359375,-1105.651611328125,1744.20703125,2396.219482421875,-892.3238525390625,2027.6649169921875,1343.7734375,-903.4146728515625,1931.7784423828125,1149.9818115234375,-899.7514038085938,1858.20849609375,948.7658081054688,-909.2162475585938,1810.95654296875,748.922119140625,-912.0592041015625,1762.468994140625,136.34959411621094,-885.03125,1667.0577392578125,-251.72198486328125,-892.1245727539062,1634.07958984375,-1047.8963623046875,-889.2337646484375,1683.84130859375,-1598.085693359375,-900.9441528320312,1717.32373046875,2392.59765625,-681.8372192382812,2022.093994140625,734.4039306640625,-723.4151000976562,1777.505859375,547.0090942382812,-716.1083984375,1702.1458740234375,346.64019775390625,-727.83447265625,1666.4991455078125,145.9174346923828,-673.970947265625,1638.4674072265625,-31.089862823486328,-692.2229614257812,1567.8880615234375,-232.2260284423828,-652.0032958984375,1572.18310546875,-849.4214477539062,-696.087646484375,1608.64501953125,-1046.0220947265625,-696.2550048828125,1609.29150390625,-1597.60107421875,-695.2334594726562,1685.44775390625,2388.98779296875,-472.01934814453125,2014.764892578125,-25.755022048950195,-484.9398193359375,1579.5489501953125,-236.78976440429688,-481.6354675292969,1532.8311767578125,-659.6751708984375,-480.8890686035156,1562.5162353515625,-855.4033813476562,-483.76788330078125,1590.662109375,-1597.1068115234375,-485.8768005371094,1666.0684814453125,2385.383544921875,-262.5354919433594,2009.564453125,172.1973114013672,-269.57598876953125,1551.7181396484375,-29.998239517211914,-273.7801513671875,1557.4796142578125,-233.8975830078125,-272.0951843261719,1531.8297119140625,-418.1724548339844,-263.73992919921875,1589.852294921875,-659.9769287109375,-268.9718933105469,1555.4647216796875,-862.1475219726562,-275.2210693359375,1588.767578125,-1596.6099853515625,-275.3501281738281,1678.236328125,2381.79248046875,-53.806495666503906,1996.2530517578125,575.4898681640625,-58.29057312011719,1601.91796875,375.4720153808594,-62.24757766723633,1564.0731201171875,166.78005981445312,-71.29327392578125,1559.2830810546875,-54.59534454345703,-58.7305908203125,1586.2987060546875,-493.4903564453125,-67.9438247680664,1577.8699951171875,-861.8540649414062,-72.90044403076172,1630.2369384765625,-1040.4718017578125,-52.283164978027344,1610.487060546875,-1596.1220703125,-68.55376434326172,1715.58349609375,2378.206787109375,154.59951782226562,1988.619384765625,968.9274291992188,160.9554443359375,1682.5263671875,764.9746704101562,149.28016662597656,1659.62744140625,561.5216064453125,140.71954345703125,1636.4779052734375,127.27937316894531,124.00786590576172,1549.76953125,-53.64057540893555,122.21939849853516,1568.172607421875,-239.1409149169922,123.72444152832031,1564.3701171875,-476.88275146484375,128.30885314941406,1587.1904296875,-1050.20947265625,135.37051391601562,1668.8988037109375,-1595.636962890625,136.62025451660156,1749.889892578125,2374.677001953125,359.75701904296875,1990.67333984375,759.72998046875,381.240966796875,1567.253173828125,563.4478149414062,378.13641357421875,1529.4212646484375,367.0347900390625,376.0128479003906,1491.33837890625,153.03152465820312,332.54888916015625,1560.01025390625,-18.688949584960938,364.2484130859375,1479.718505859375,-204.74090576171875,316.17144775390625,1585.3050537109375,-401.8879699707031,318.68609619140625,1587.480224609375,-635.853271484375,354.3715515136719,1601.1435546875,-821.6668701171875,372.7310485839844,1617.310546875,-1057.2969970703125,330.52960205078125,1697.4071044921875,-1199.966552734375,372.0697937011719,1624.98779296875,-1595.165283203125,337.0697937011719,1779.1806640625,2371.40087890625,550.1575927734375,2004.290283203125,1164.13818359375,549.5552978515625,1656.99365234375,963.6644897460938,561.783935546875,1603.8658447265625,762.0216674804688,570.802978515625,1568.033935546875,-218.8853759765625,539.1390380859375,1534.35888671875,-427.68316650390625,568.9474487304688,1490.57373046875,-630.4815673828125,511.1691589355469,1630.6273193359375,-808.4780883789062,549.6845703125,1608.3043212890625,-999.317626953125,550.4212646484375,1609.8270263671875,-1243.51953125,491.85089111328125,1755.6494140625,-1594.7322998046875,521.000732421875,1798.02587890625,2368.187255859375,736.95263671875,2026.1070556640625,1560.964599609375,720.8572998046875,1780.4737548828125,1361.1353759765625,722.494384765625,1740.9351806640625,1162.319091796875,733.74072265625,1684.09716796875,-992.6732788085938,733.82861328125,1626.5609130859375,-1235.9560546875,667.9467163085938,1741.6605224609375,-1405.3663330078125,689.30419921875,1770.710205078125,-1594.2935791015625,707.0570068359375,1798.783203125,2364.97119140625,923.8777465820312,2050.19970703125,1750.636962890625,905.7265625,1857.2132568359375,1554.109130859375,905.3071899414062,1818.5523681640625,-1593.8446044921875,897.2481689453125,1787.1710205078125,2361.746826171875,1111.28857421875,2072.21533203125,1753.0540771484375,1082.3204345703125,1896.2235107421875,-1593.38818359375,1090.582763671875,1781.33447265625,2358.4970703125,1300.1551513671875,2084.95654296875,-1592.9322509765625,1283.8072509765625,1775.8167724609375,2355.22021484375,1490.5791015625,2082.711669921875,-1592.4783935546875,1476.1998291015625,1769.724853515625,2351.92822265625,1681.9495849609375,2063.20166015625,2153.181884765625,1681.240966796875,2034.288818359375,1955.5208740234375,1680.533935546875,1991.2047119140625,1757.10107421875,1679.8280029296875,1955.5313720703125,1557.61083984375,1679.1190185546875,1931.338134765625,1357.4862060546875,1678.404052734375,1915.981689453125,1157.798095703125,1677.689697265625,1895.5504150390625,959.201171875,1676.9791259765625,1869.366943359375,762.4999389648438,1676.275390625,1834.75439453125,565.6226196289062,1675.573486328125,1804.41015625,368.25872802734375,1674.868408203125,1780.1597900390625,168.971923828125,1674.1595458984375,1770.0391845703125,-35.66389083862305,1673.4293212890625,1759.05615234375,-242.3248748779297,1672.6893310546875,1752.3448486328125,-448.1697082519531,1671.955078125,1750.1826171875,-637.4149169921875,1671.28076171875,1745.9500732421875,-825.7841796875,1670.609375,1749.1007080078125,-1014.9290771484375,1669.9334716796875,1756.5849609375,-1205.5906982421875,1669.253662109375,1764.4833984375,-1398.01513671875,1668.5672607421875,1764.655517578125,-1592.0260009765625,1667.875244140625,1765.7205810546875,1041.94482421875,-1484.1871337890625,1943.8795166015625,1933.204833984375,-1350.8551025390625,2006.3714599609375,1036.31884765625,-1282.3260498046875,1919.250732421875,832.7674560546875,-1296.511962890625,1869.9632568359375,125.53263854980469,-1330.2769775390625,1756.3658447265625,-87.8676986694336,-1334.11376953125,1723.3433837890625,1927.5648193359375,-1132.7750244140625,1999.5152587890625,1729.435791015625,-1132.279052734375,2003.318115234375,1536.7235107421875,-1120.33642578125,1987.9052734375,1347.1990966796875,-1108.9517822265625,1964.5352783203125,829.5155639648438,-1089.2650146484375,1852.6783447265625,1347.94384765625,-892.0997314453125,1910.3824462890625,1144.593017578125,-910.0541381835938,1881.494873046875,946.3935546875,-915.7924194335938,1836.779541015625,745.1804809570312,-925.2914428710938,1794.5582275390625,-1011.9602661132812,-922.4163208007812,1607.3458251953125,743.3505249023438,-705.3707275390625,1747.983642578125,534.823974609375,-739.22705078125,1727.849609375,164.41506958007812,-686.7445678710938,1602.570068359375,-46.322425842285156,-677.5040893554688,1600.998779296875,-45.54693603515625,-677.9739379882812,1599.626220703125,-236.81764221191406,-659.7888793945312,1582.383544921875,-232.49118041992188,-665.6624755859375,1582.9764404296875,-831.305419921875,-719.042724609375,1549.89990234375,-1024.2833251953125,-723.1798706054688,1581.4901123046875,-13.009017944335938,-488.7236328125,1557.23876953125,-217.1219940185547,-478.5199890136719,1567.986328125,-655.1083374023438,-500.3139343261719,1521.48291015625,-845.927490234375,-510.3074951171875,1532.8326416015625,180.85073852539062,-278.35906982421875,1531.68359375,-21.285602569580078,-279.288818359375,1529.9447021484375,-41.77985382080078,-255.52108764648438,1591.6968994140625,-30.164024353027344,-275.5336608886719,1559.49462890625,-224.16845703125,-274.74627685546875,1553.9974365234375,-221.53366088867188,-252.38726806640625,1591.5794677734375,-456.0646057128906,-283.6177673339844,1529.35302734375,-439.2733154296875,-265.6806945800781,1563.3568115234375,-658.4583129882812,-292.5401306152344,1511.779052734375,576.9354858398438,-62.29836654663086,1594.08984375,378.28558349609375,-65.64669799804688,1545.08935546875,176.94969177246094,-65.56024169921875,1520.491455078125,139.33384704589844,-67.24504089355469,1548.344482421875,177.0110626220703,-70.70858764648438,1542.035888671875,-37.378143310546875,-70.32366943359375,1557.42236328125,-477.337646484375,-65.65641021728516,1598.8330078125,-851.95556640625,-65.76202392578125,1603.0555419921875,-1050.02734375,-70.04444885253906,1642.96435546875,763.4547729492188,151.62428283691406,1660.66455078125,563.5013427734375,138.83445739746094,1614.6929931640625,162.58982849121094,141.7266082763672,1539.9771728515625,125.92501831054688,126.48924255371094,1553.7694091796875,-58.746726989746094,121.82726287841797,1574.3514404296875,-241.28076171875,124.41302490234375,1582.58984375,-457.8235778808594,131.5135040283203,1603.923583984375,-1030.093994140625,158.255126953125,1625.39697265625,750.568115234375,307.4591064453125,1678.619140625,555.4486694335938,312.5674743652344,1610.987548828125,359.48150634765625,317.9520568847656,1557.8907470703125,150.36798095703125,333.0869140625,1533.6143798828125,170.26596069335938,373.5318298339844,1475.4610595703125,-44.08183670043945,323.1231384277344,1559.015869140625,-230.93746948242188,329.59393310546875,1563.6800537109375,-259.5683898925781,392.7006530761719,1544.2550048828125,-216.86827087402344,360.8332214355469,1502.0302734375,-401.1748046875,327.9954833984375,1606.007568359375,-409.16253662109375,339.25164794921875,1567.1202392578125,-633.2374877929688,329.49664306640625,1628.7564697265625,-827.53076171875,344.2793884277344,1644.808837890625,-1017.4073486328125,363.90985107421875,1653.3167724609375,-1011.0083618164062,374.59088134765625,1630.333740234375,-1242.5435791015625,317.0629577636719,1736.52197265625,1156.1361083984375,513.5260620117188,1732.266845703125,953.3106079101562,498.0749206542969,1706.5843505859375,747.0392456054688,497.3489074707031,1679.4014892578125,-223.2129669189453,566.0916748046875,1486.1490478515625,-422.2441711425781,541.6533203125,1560.428466796875,-619.5158081054688,555.2509765625,1595.388427734375,-626.3416137695312,569.3405151367188,1538.521240234375,-820.1725463867188,529.986083984375,1639.8997802734375,-813.0067138671875,560.4329833984375,1576.4617919921875,-998.6270751953125,549.0245971679688,1626.7962646484375,-1190.188232421875,548.3396606445312,1656.8211669921875,1552.38525390625,704.365966796875,1837.1422119140625,1350.4947509765625,703.429443359375,1790.803955078125,1144.8712158203125,700.69970703125,1748.8375244140625,-1188.011962890625,725.978759765625,1666.0382080078125,1749.2625732421875,892.4984130859375,1889.2821044921875,1545.3314208984375,889.1106567382812,1856.9195556640625,2414.391357421875,-1948.5203857421875,2023.2818603515625,2211.30908203125,-1947.6064453125,2025.26220703125,2008.4005126953125,-1946.69287109375,2023.0050048828125,1806.04296875,-1945.7818603515625,2019.69482421875,1604.249267578125,-1944.87353515625,2018.44287109375,1402.5032958984375,-1943.966064453125,2010.965087890625,1200.93359375,-1943.060546875,1995.392822265625,998.912353515625,-1942.1519775390625,1980.7501220703125,797.4509887695312,-1941.233154296875,1958.072998046875,596.890869140625,-1940.3370361328125,1926.19287109375,396.261962890625,-1939.428466796875,1888.8900146484375,192.6774444580078,-1938.51025390625,1861.310546875,-17.622882843017578,-1937.562744140625,1839.2838134765625,-228.38426208496094,-1936.613037109375,1828.3575439453125,-436.35089111328125,-1935.677001953125,1830.189208984375,-630.2413940429688,-1934.8045654296875,1828.308837890625,-822.328369140625,-1933.9400634765625,1826.762451171875,-1015.3422241210938,-1933.0693359375,1818.3365478515625,-1208.824462890625,-1932.194091796875,1800.548095703125,-1403.508544921875,-1931.3133544921875,1782.5885009765625,-1600.515869140625,-1930.42626953125,1779.5482177734375,2410.743896484375,-1736.6097412109375,2020.36376953125,-1600.031005859375,-1724.7696533203125,1785.1502685546875,2407.112548828125,-1525.65966796875,2018.24658203125,1267.90625,-1454.35009765625,1982.1226806640625,1061.989501953125,-1469.0751953125,1953.8133544921875,-1599.541015625,-1517.3004150390625,1781.0980224609375,2403.481201171875,-1314.61083984375,2028.5831298828125,2109.7734375,-1363.04931640625,2036.3416748046875,1909.860107421875,-1359.4599609375,2012.7799072265625,1053.8485107421875,-1275.9375,1924.7579345703125,847.3204345703125,-1286.72607421875,1890.3253173828125,328.5042724609375,-1334.705322265625,1796.23095703125,120.55615997314453,-1325.8046875,1757.0126953125,-96.60875701904297,-1327.777099609375,1724.01025390625,-1599.0533447265625,-1311.017578125,1771.340087890625,2399.854736328125,-1103.6241455078125,2044.3837890625,1911.472900390625,-1147.7459716796875,2036.1160888671875,1715.522705078125,-1132.50146484375,2011.9622802734375,1526.705810546875,-1116.927978515625,1988.1973876953125,1339.7049560546875,-1107.1719970703125,1939.4407958984375,836.971435546875,-1088.84375,1862.6893310546875,634.2979125976562,-1093.11474609375,1830.7918701171875,-109.50511169433594,-1124.036865234375,1702.7200927734375,-1015.7385864257812,-1104,1698.0538330078125,-1598.568359375,-1105.859130859375,1755.4779052734375,2396.2236328125,-892.5684814453125,2051.60498046875,1333.1082763671875,-906.16015625,1948.373046875,1139.0477294921875,-903.5162353515625,1873.6259765625,937.6979370117188,-914.6787719726562,1825.219482421875,738.4439086914062,-918.2828979492188,1775.4541015625,131.27806091308594,-884.2174682617188,1672.4581298828125,-254.80555725097656,-888.9194946289062,1648.7928466796875,-1053.1820068359375,-887.2588500976562,1693.0958251953125,-1598.085693359375,-901.1254272460938,1730.23486328125,2392.60205078125,-682.0877685546875,2045.904052734375,723.4725341796875,-732.6300659179688,1793.181884765625,536.8604125976562,-724.6880493164062,1714.90087890625,337.55303955078125,-735.3883666992188,1677.9947509765625,140.33517456054688,-672.5621948242188,1645.4217529296875,-35.98100662231445,-691.3082885742188,1574.730712890625,-231.92095947265625,-647.7843627929688,1575.89501953125,-852.4990234375,-693.603759765625,1616.5272216796875,-1051.350341796875,-692.9819946289062,1620.0804443359375,-1597.60107421875,-695.3037109375,1699.00830078125,2388.99267578125,-472.3022766113281,2037.7362060546875,-27.879335403442383,-484.1986999511719,1583.4378662109375,-233.71153259277344,-478.83148193359375,1540.9019775390625,-660.74267578125,-478.9116516113281,1568.6004638671875,-857.4692993164062,-481.5547180175781,1598.4853515625,-1597.1068115234375,-485.99322509765625,1678.320556640625,2385.389892578125,-262.90057373046875,2030.1995849609375,168.77288818359375,-268.04327392578125,1558.2171630859375,-32.62603759765625,-272.24578857421875,1562.333740234375,-232.35218811035156,-270.1123046875,1536.634033203125,-416.0898132324219,-261.77471923828125,1595.2091064453125,-660.6564331054688,-267.09405517578125,1560.93994140625,-864.7029418945312,-274.978515625,1595.58447265625,-1596.6099853515625,-275.4659423828125,1688.8753662109375,2381.801025390625,-54.293853759765625,2015.0953369140625,573.8275146484375,-55.344146728515625,1607.798583984375,373.1423645019531,-59.79481506347656,1570.4056396484375,163.22592163085938,-71.25379943847656,1565.8035888671875,-57.13616180419922,-57.93424987792969,1590.2508544921875,-492.1550598144531,-67.27059936523438,1581.2877197265625,-863.563232421875,-73.10680389404297,1634.811767578125,-1043.490966796875,-55.2984733581543,1617.754150390625,-1596.1220703125,-68.6609878540039,1724.7445068359375,2378.216064453125,154.05470275878906,2006.23291015625,967.7955322265625,165.722412109375,1689.52197265625,764.341796875,152.34674072265625,1664.6590576171875,560.719970703125,143.29379272460938,1641.04736328125,122.84347534179688,123.28242492675781,1555.42236328125,-56.839168548583984,120.86211395263672,1574.7322998046875,-241.34397888183594,121.78765869140625,1571.5596923828125,-475.27508544921875,126.8575668334961,1590.2667236328125,-1053.5875244140625,131.7276611328125,1675.6923828125,-1595.636962890625,136.39688110351562,1758.8203125,2374.68603515625,359.2177734375,2007.1002197265625,758.0123901367188,378.7417907714844,1569.9154052734375,561.3245239257812,375.50384521484375,1531.999755859375,364.3166809082031,373.14105224609375,1494.34716796875,147.228515625,329.9573974609375,1567.6187744140625,-21.852489471435547,362.7638244628906,1484.600830078125,-205.56967163085938,314.0617370605469,1590.9649658203125,-401.3716735839844,315.83056640625,1591.9482421875,-634.674560546875,350.4278869628906,1605.0670166015625,-823.408447265625,368.2945556640625,1622.7833251953125,-1060.8037109375,325.2902526855469,1704.2454833984375,-1202.6119384765625,367.2254333496094,1631.643798828125,-1595.165283203125,337.0049133300781,1786.61669921875,2371.4091796875,549.6773681640625,2019.6322021484375,1162.7506103515625,545.6622314453125,1664.28857421875,962.3330078125,558.2867431640625,1609.1759033203125,760.7969360351562,568.7355346679688,1572.262939453125,-219.6874237060547,536.2642822265625,1539.97802734375,-426.98431396484375,567.4688110351562,1493.9959716796875,-631.1381225585938,506.4631042480469,1636.0128173828125,-807.5152587890625,546.148193359375,1613.9539794921875,-998.7077026367188,547.5347900390625,1614.884521484375,-1247.7520751953125,488.2455749511719,1763.0758056640625,-1594.7322998046875,521.0451049804688,1804.1759033203125,2368.19384765625,736.5523681640625,2040.631103515625,1559.14892578125,717.3414916992188,1791.12890625,1359.205810546875,718.775634765625,1751.2884521484375,1160.578857421875,730.1162719726562,1693.125,-992.2300415039062,729.6884155273438,1633.5185546875,-1240.956298828125,664.8850708007812,1749.6851806640625,-1410.0098876953125,687.4033813476562,1778.27099609375,-1594.2935791015625,707.1187744140625,1803.3729248046875,2364.9765625,923.5595092773438,2063.99609375,1749.62646484375,901.4942626953125,1869.6083984375,1552.865966796875,901.4041748046875,1830.376708984375,-1593.8446044921875,897.2748413085938,1791.2744140625,2361.749267578125,1111.1279296875,2084.401611328125,1752.6396484375,1076.966064453125,1909.26708984375,-1593.38818359375,1090.596923828125,1785.21923828125,2358.498291015625,1300.080078125,2095.593994140625,-1592.9322509765625,1283.822265625,1779.865478515625,2355.22119140625,1490.5172119140625,2093.40966796875,-1592.4783935546875,1476.208984375,1773.67333984375,2351.92822265625,1681.9495849609375,2074.66748046875,2153.1357421875,1681.240966796875,2045.822509765625,1955.583251953125,1680.533935546875,2002.033935546875,1757.0225830078125,1679.8280029296875,1967.040771484375,1557.331787109375,1679.1190185546875,1944.3046875,1357.255615234375,1678.404052734375,1927.9481201171875,1157.6976318359375,1677.689697265625,1906.04443359375,959.2364501953125,1676.9791259765625,1878.66650390625,762.6478271484375,1676.275390625,1843.254150390625,565.7332763671875,1675.573486328125,1812.9923095703125,368.4159851074219,1674.868408203125,1788.1099853515625,169.19715881347656,1674.160400390625,1776.395751953125,-35.43998718261719,1673.4300537109375,1764.96826171875,-242.1582489013672,1672.6893310546875,1759.170166015625,-448.0252685546875,1671.955078125,1756.5660400390625,-637.259521484375,1671.2811279296875,1751.1326904296875,-825.6610717773438,1670.6097412109375,1753.4901123046875,-1014.847412109375,1669.9334716796875,1760.6241455078125,-1205.54052734375,1669.253662109375,1768.585205078125,-1397.99072265625,1668.5672607421875,1768.592041015625,-1592.0260009765625,1667.875244140625,1769.4259033203125,1054.5335693359375,-1475.3289794921875,1964.9920654296875,1918.4222412109375,-1359.3826904296875,2029.861083984375,1047.8741455078125,-1275.36865234375,1939.840576171875,843.3590698242188,-1292.2132568359375,1889.967529296875,118.19831848144531,-1332.5511474609375,1764.8621826171875,-97.83988952636719,-1337.1719970703125,1734.0450439453125,1911.4066162109375,-1141.572509765625,2022.7596435546875,1714.92626953125,-1138.9630126953125,2024.0299072265625,1523.899658203125,-1124.8973388671875,2007.283447265625,1337.238037109375,-1111.1849365234375,1981.7415771484375,839.0768432617188,-1086.54833984375,1871.166015625,1336.9512939453125,-894.5914306640625,1926.9410400390625,1134.09033203125,-913.8739624023438,1896.965087890625,936.2417602539062,-921.2373046875,1852.09130859375,735.1963500976562,-932.3504028320312,1809.655517578125,-1017.048828125,-922.6217041015625,1619.5557861328125,732.4700317382812,-712.701171875,1761.162109375,524.40234375,-748.9651489257812,1741.6412353515625,159.015625,-686.1220703125,1609.5775146484375,-50.610530853271484,-674.9061889648438,1608.5885009765625,-50.40409851074219,-675.03125,1608.22314453125,-237.2694549560547,-652.1508178710938,1590.1859130859375,-231.62527465820312,-657.33056640625,1593.0970458984375,-833.2662353515625,-718.4122314453125,1556.663330078125,-1027.327880859375,-723.2529296875,1593.2633056640625,-16.303503036499023,-487.7884826660156,1562.669921875,-216.96202087402344,-475.3095703125,1570.9539794921875,-655.9012451171875,-499.29156494140625,1525.61474609375,-847.678955078125,-508.9123840332031,1539.6778564453125,177.18663024902344,-276.6911926269531,1539.161376953125,-24.905136108398438,-278.28961181640625,1536.497314453125,-43.6864013671875,-254.27395629882812,1595.6090087890625,-32.95540237426758,-274.3372497558594,1564.52880859375,-224.49288940429688,-272.7887268066406,1556.4967041015625,-220.76861572265625,-249.87228393554688,1595.7301025390625,-455.7693176269531,-282.4908142089844,1532.2049560546875,-438.8018798828125,-263.7182312011719,1568.1475830078125,-658.7824096679688,-291.6286926269531,1514.7999267578125,574.7413940429688,-59.132320404052734,1601.0469970703125,375.5836486816406,-62.56786346435547,1552.415283203125,173.8489227294922,-63.033180236816406,1527.8699951171875,135.12269592285156,-67.05235290527344,1553.474609375,173.30015563964844,-70.20735168457031,1548.9849853515625,-41.10523223876953,-68.91490173339844,1562.9959716796875,-474.48712158203125,-65.53607177734375,1603.5777587890625,-853.8616943359375,-66.5584487915039,1608.9197998046875,-1052.8619384765625,-70.96900939941406,1649.7659912109375,762.7415771484375,155.1131134033203,1666.2010498046875,561.9921875,142.20372009277344,1621.067138671875,159.40264892578125,140.2639923095703,1546.1673583984375,120.904052734375,124.9481201171875,1560.77197265625,-61.84701156616211,120.67611694335938,1580.564208984375,-243.23193359375,123.07131958007812,1588.627197265625,-456.18975830078125,128.9095001220703,1607.8388671875,-1032.8232421875,154.5276641845703,1631.9141845703125,749.0892333984375,304.2143249511719,1682.41650390625,553.849365234375,309.1911315917969,1614.511962890625,357.5256652832031,315.1997985839844,1561.1142578125,147.7244873046875,330.1864318847656,1538.20458984375,166.6150360107422,371.0130920410156,1479.5032958984375,-47.69767761230469,320.7466735839844,1566.8414306640625,-233.51608276367188,326.4623718261719,1571.6287841796875,-260.2607421875,389.9140625,1549.684814453125,-219.0092010498047,359.6309814453125,1506.6044921875,-401.4163818359375,325.1744689941406,1610.117919921875,-409.04608154296875,336.24237060546875,1572.3907470703125,-633.7172241210938,325.7107849121094,1633.5994873046875,-829.7657470703125,340.8946533203125,1648.569091796875,-1019.9321899414062,359.1546630859375,1658.9080810546875,-1013.1246337890625,369.45074462890625,1636.5911865234375,-1246.29638671875,312.47747802734375,1743.6121826171875,1154.7718505859375,509.98443603515625,1740.1986083984375,952.1271362304688,493.64990234375,1713.7301025390625,745.674560546875,493.7354736328125,1684.6234130859375,-224.6317596435547,564.6919555664062,1490.4447021484375,-420.9761657714844,539.492919921875,1565.2103271484375,-617.2491455078125,552.6697998046875,1600.7197265625,-624.1101684570312,568.4638061523438,1541.480712890625,-821.9155883789062,525.9999389648438,1644.0343017578125,-811.7000122070312,558.546142578125,1580.3671875,-997.9639892578125,544.6961059570312,1633.1163330078125,-1194.046630859375,543.9219970703125,1663.8568115234375,1550.7388916015625,700.5053100585938,1848.36279296875,1348.9031982421875,699.676025390625,1800.4368896484375,1143.4854736328125,696.9371337890625,1756.778076171875,-1192.49755859375,721.29248046875,1674.4697265625,1748.15234375,887.8897705078125,1902.082763671875,1543.9962158203125,884.6287231445312,1869.584228515625,2414.391357421875,-1948.5203857421875,2045.7406005859375,2211.2548828125,-1947.6064453125,2047.7041015625,2008.302490234375,-1946.69287109375,2044.7349853515625,1805.90625,-1945.7818603515625,2040.5103759765625,1604.056640625,-1944.87353515625,2039.0030517578125,1402.2342529296875,-1943.966064453125,2032.1668701171875,1200.53076171875,-1943.060546875,2017.6575927734375,998.4243774414062,-1942.1519775390625,2003.440673828125,796.923583984375,-1941.230712890625,1980.5364990234375,596.5416259765625,-1940.3370361328125,1947.0299072265625,396.1082458496094,-1939.428466796875,1908.062744140625,192.56398010253906,-1938.51025390625,1879.689453125,-17.754667282104492,-1937.562744140625,1857.49267578125,-228.52745056152344,-1936.613037109375,1845.978515625,-436.555419921875,-1935.677001953125,1847.531005859375,-630.510986328125,-1934.8045654296875,1846.2078857421875,-822.643310546875,-1933.9400634765625,1844.3880615234375,-1015.6065673828125,-1933.0693359375,1834.193115234375,-1208.937255859375,-1932.194091796875,1814.5211181640625,-1403.4715576171875,-1931.3133544921875,1794.683837890625,-1600.515869140625,-1930.42626953125,1790.61083984375,2410.743896484375,-1736.6253662109375,2042.43359375,-1600.031005859375,-1724.7371826171875,1794.898193359375,2407.112548828125,-1525.6976318359375,2039.9190673828125,1282.2757568359375,-1441.84765625,2004.0699462890625,1075.6397705078125,-1458.9635009765625,1974.982666015625,-1599.541015625,-1517.3001708984375,1790.7574462890625,2403.48291015625,-1314.744384765625,2051.79833984375,2092.693603515625,-1372.81201171875,2059.748779296875,1892.8223876953125,-1369.78173828125,2037.208251953125,1066.4365234375,-1268.4097900390625,1946.33984375,858.5858154296875,-1281.4874267578125,1910.3001708984375,321.1092834472656,-1337.390380859375,1805.2296142578125,113.5745849609375,-1327.6405029296875,1764.549560546875,-106.5899887084961,-1329.781005859375,1733.1553955078125,-1599.0533447265625,-1311.1185302734375,1781.3795166015625,2399.85888671875,-1103.8729248046875,2068.913330078125,1896.2218017578125,-1156.0487060546875,2058.39697265625,1700.051513671875,-1139.996826171875,2033.9609375,1513.1175537109375,-1121.7103271484375,2008.04345703125,1327.75341796875,-1110.1868896484375,1957.450439453125,846.7236328125,-1085.8768310546875,1881.8271484375,642.3582153320312,-1091.77294921875,1847.42333984375,-118.89129638671875,-1126.275146484375,1711.2935791015625,-1020.1099853515625,-1104.082763671875,1708.9547119140625,-1598.568359375,-1106.066650390625,1766.7493896484375,2396.227783203125,-892.8129272460938,2075.544677734375,1322.443115234375,-908.9056396484375,1964.968017578125,1128.11376953125,-907.2809448242188,1889.043701171875,926.6300659179688,-920.1414794921875,1839.4825439453125,727.9657592773438,-924.506591796875,1788.4390869140625,126.20645141601562,-883.4037475585938,1677.8582763671875,-257.8891296386719,-885.7144775390625,1663.50634765625,-1058.4676513671875,-885.2839965820312,1702.3507080078125,-1598.085693359375,-901.306640625,1743.14599609375,2392.606201171875,-682.3384399414062,2069.71435546875,712.5411376953125,-741.8450317382812,1808.8577880859375,526.7117309570312,-733.2676391601562,1727.65576171875,328.4659423828125,-742.942138671875,1689.4901123046875,134.7529296875,-671.1534423828125,1652.3763427734375,-40.872154235839844,-690.3937377929688,1581.5733642578125,-231.61590576171875,-643.5654296875,1579.6068115234375,-855.5767822265625,-691.1200561523438,1624.4093017578125,-1056.678466796875,-689.7090454101562,1630.869140625,-1597.60107421875,-695.3739624023438,1712.5689697265625,2388.997314453125,-472.5852355957031,2060.707275390625,-30.00364875793457,-483.4576110839844,1587.3267822265625,-230.63336181640625,-476.0274963378906,1548.9725341796875,-661.8101806640625,-476.93426513671875,1574.6845703125,-859.5352783203125,-479.341552734375,1606.3087158203125,-1597.1068115234375,-486.1095886230469,1690.57275390625,2385.396240234375,-263.2657165527344,2050.8349609375,165.3484649658203,-266.51055908203125,1564.7159423828125,-35.25383758544922,-270.71148681640625,1567.187744140625,-230.80679321289062,-268.12945556640625,1541.4384765625,-414.0071716308594,-259.8095397949219,1600.565673828125,-661.3359985351562,-265.2162170410156,1566.4154052734375,-867.2584228515625,-274.7359313964844,1602.401123046875,-1596.6099853515625,-275.58172607421875,1699.514404296875,2381.809326171875,-54.781219482421875,2033.9373779296875,572.1652221679688,-52.39772415161133,1613.6790771484375,370.81268310546875,-57.34204864501953,1576.738037109375,159.6717987060547,-71.2143325805664,1572.323974609375,-59.676963806152344,-57.13792419433594,1594.2030029296875,-490.8198547363281,-66.59736633300781,1584.7052001953125,-865.2724609375,-73.31316375732422,1639.386962890625,-1046.5101318359375,-58.31379318237305,1625.021240234375,-1596.1220703125,-68.7682113647461,1733.905517578125,2378.2255859375,153.5098419189453,2023.8466796875,966.6636352539062,170.4893798828125,1696.517333984375,763.708984375,155.41329956054688,1669.6905517578125,559.9183959960938,145.86798095703125,1645.61669921875,118.40757751464844,122.55697631835938,1561.0751953125,-60.03774642944336,119.50484466552734,1581.291748046875,-243.5470428466797,119.85084533691406,1578.749267578125,-473.6673583984375,125.4062728881836,1593.3426513671875,-1056.9658203125,128.08480834960938,1682.4859619140625,-1595.636962890625,136.1735076904297,1767.7508544921875,2374.695556640625,358.6785583496094,2023.527099609375,757.1807250976562,377.531494140625,1571.204345703125,559.2012939453125,372.8712463378906,1534.578125,361.5986022949219,370.2693176269531,1497.3563232421875,141.4254913330078,327.3658752441406,1575.2271728515625,-25.01603126525879,361.279296875,1489.4830322265625,-206.39846801757812,311.95196533203125,1596.624755859375,-400.85546875,312.97503662109375,1596.4163818359375,-633.4959106445312,346.4842834472656,1608.9906005859375,-825.1500244140625,363.85797119140625,1628.255859375,-1064.3106689453125,320.0509033203125,1711.083984375,-1205.25732421875,362.38104248046875,1638.2996826171875,-1595.165283203125,336.9400939941406,1794.052734375,2371.41748046875,549.197265625,2034.974365234375,1161.3629150390625,541.7691040039062,1671.58349609375,961.0015869140625,554.7894897460938,1614.486083984375,759.5723266601562,566.66796875,1576.4920654296875,-220.489501953125,533.3896484375,1545.596923828125,-426.2854309082031,565.9901123046875,1497.4183349609375,-631.7944946289062,501.75701904296875,1641.3985595703125,-806.5524291992188,542.6118774414062,1619.6036376953125,-998.0977783203125,544.6483764648438,1619.9417724609375,-1251.98486328125,484.6401672363281,1770.5020751953125,-1594.7322998046875,521.0894775390625,1810.3260498046875,2368.200927734375,736.1522216796875,2055.155029296875,1557.33349609375,713.8257446289062,1801.7843017578125,1357.2762451171875,715.0569458007812,1761.6422119140625,1158.8385009765625,726.4917602539062,1702.1527099609375,-991.7868041992188,725.5482177734375,1640.4761962890625,-1245.95654296875,661.823486328125,1757.7100830078125,-1414.6534423828125,685.502685546875,1785.8321533203125,-1594.2935791015625,707.1805419921875,1807.962646484375,2364.982177734375,923.2412109375,2077.792724609375,1748.61572265625,897.2619018554688,1882.0037841796875,1551.6226806640625,897.5013427734375,1842.2012939453125,-1593.8446044921875,897.3014526367188,1795.3775634765625,2361.752197265625,1110.9671630859375,2096.587890625,1752.22509765625,1071.6114501953125,1922.3106689453125,-1593.38818359375,1090.61083984375,1789.1041259765625,2358.49951171875,1300.005126953125,2106.2314453125,-1592.9322509765625,1283.8372802734375,1783.9140625,2355.2216796875,1490.4552001953125,2104.108154296875,-1592.4783935546875,1476.218017578125,1777.6220703125,2351.92822265625,1681.9495849609375,2086.13330078125,2153.08935546875,1681.240966796875,2057.3564453125,1955.645263671875,1680.533935546875,2012.863037109375,1756.9439697265625,1679.8280029296875,1978.5504150390625,1557.0531005859375,1679.1190185546875,1957.2713623046875,1357.025146484375,1678.404052734375,1939.9146728515625,1157.59716796875,1677.689697265625,1916.5380859375,959.2716674804688,1676.9791259765625,1887.966064453125,762.7958374023438,1676.275390625,1851.754150390625,565.843994140625,1675.573486328125,1821.5743408203125,368.5732116699219,1674.868408203125,1796.0599365234375,169.4224090576172,1674.1611328125,1782.7523193359375,-35.21609115600586,1673.430908203125,1770.880615234375,-241.9916229248047,1672.6893310546875,1765.9954833984375,-447.8808288574219,1671.955078125,1762.9493408203125,-637.10400390625,1671.281494140625,1756.3154296875,-825.5379028320312,1670.610107421875,1757.8797607421875,-1014.7657470703125,1669.9334716796875,1764.6634521484375,-1205.4906005859375,1669.253662109375,1772.68701171875,-1397.966064453125,1668.5672607421875,1772.52880859375,-1592.0260009765625,1667.875244140625,1773.1312255859375,1067.1226806640625,-1466.4710693359375,1986.1044921875,1903.6392822265625,-1367.910400390625,2053.3505859375,1059.4296875,-1268.4112548828125,1960.4305419921875,853.95068359375,-1287.9144287109375,1909.9713134765625,110.86399841308594,-1334.825439453125,1773.3582763671875,-107.81209564208984,-1340.230224609375,1744.74658203125,1895.24853515625,-1150.369873046875,2046.00390625,1700.4169921875,-1145.6470947265625,2044.7418212890625,1511.076171875,-1129.45849609375,2026.6614990234375,1327.2772216796875,-1113.4178466796875,1998.9478759765625,848.63818359375,-1083.831787109375,1889.65380859375,1325.9588623046875,-897.0833129882812,1943.4996337890625,1123.5877685546875,-917.69384765625,1912.4354248046875,926.0899047851562,-926.6822509765625,1867.4027099609375,725.2122192382812,-939.409423828125,1824.7529296875,-1022.1375732421875,-922.8270263671875,1631.7657470703125,721.5895385742188,-720.0315551757812,1774.3406982421875,513.9806518554688,-758.7033081054688,1755.4327392578125,153.6162109375,-685.499755859375,1616.585205078125,-54.89863204956055,-672.3082275390625,1616.17822265625,-55.261253356933594,-672.0885620117188,1616.820068359375,-237.7212677001953,-644.5128784179688,1597.9881591796875,-230.75936889648438,-648.9985961914062,1603.217529296875,-835.22705078125,-717.7819213867188,1563.4268798828125,-1030.37255859375,-723.325927734375,1605.036865234375,-19.597986221313477,-486.853271484375,1568.1011962890625,-216.80206298828125,-472.09918212890625,1573.9217529296875,-656.694091796875,-498.2691955566406,1529.74658203125,-849.4303588867188,-507.51727294921875,1546.523193359375,173.5225372314453,-275.0232238769531,1546.6392822265625,-28.524703979492188,-277.29046630859375,1543.050048828125,-45.59294891357422,-253.02685546875,1599.52099609375,-35.74678039550781,-273.14080810546875,1569.56298828125,-224.81735229492188,-270.8312072753906,1558.9959716796875,-220.00357055664062,-247.3572998046875,1599.8807373046875,-455.4739685058594,-281.3638000488281,1535.0570068359375,-438.3304748535156,-261.7557373046875,1572.9383544921875,-659.106689453125,-290.71728515625,1517.82080078125,572.54736328125,-55.96628189086914,1608.004150390625,372.8816833496094,-59.489036560058594,1559.740966796875,170.74815368652344,-60.506080627441406,1535.248779296875,130.91156005859375,-66.85968017578125,1558.60498046875,169.5892333984375,-69.70610809326172,1555.93408203125,-44.83232498168945,-67.50614929199219,1568.5694580078125,-471.6365661621094,-65.41573333740234,1608.322509765625,-855.7677612304688,-67.35488891601562,1614.78369140625,-1055.696533203125,-71.89356994628906,1656.567626953125,762.0283813476562,158.6019287109375,1671.7379150390625,560.4830932617188,145.57301330566406,1627.44140625,156.21548461914062,138.80136108398438,1552.35791015625,115.88308715820312,123.406982421875,1567.7747802734375,-64.94729614257812,119.52497863769531,1586.777099609375,-245.18307495117188,121.7296142578125,1594.66455078125,-454.5559387207031,126.30549621582031,1611.7540283203125,-1035.55224609375,150.80023193359375,1638.4310302734375,747.6102294921875,300.969482421875,1686.2139892578125,552.2500610351562,305.8147888183594,1618.03662109375,355.5699157714844,312.447509765625,1564.3377685546875,145.08096313476562,327.285888671875,1542.794677734375,162.96409606933594,368.4942626953125,1483.545166015625,-51.31351852416992,318.3702697753906,1574.6671142578125,-236.09471130371094,323.330810546875,1579.5777587890625,-260.95306396484375,387.12750244140625,1555.11474609375,-221.150146484375,358.4287414550781,1511.1785888671875,-401.657958984375,322.35345458984375,1614.228515625,-408.9295654296875,333.2330627441406,1577.6612548828125,-634.1968994140625,321.9249572753906,1638.442626953125,-832.0007934570312,337.50994873046875,1652.3294677734375,-1022.4572143554688,354.3995361328125,1664.4993896484375,-1015.2409057617188,364.310546875,1642.848876953125,-1250.0491943359375,307.8919982910156,1750.702392578125,1153.4075927734375,506.44293212890625,1748.13037109375,950.9434814453125,489.2248840332031,1720.8760986328125,744.3098754882812,490.1220703125,1689.8453369140625,-226.05052185058594,563.2922973632812,1494.740234375,-419.7081604003906,537.33251953125,1569.9920654296875,-614.9825439453125,550.088623046875,1606.051025390625,-621.87890625,567.587158203125,1544.43994140625,-823.6585083007812,522.0138549804688,1648.1688232421875,-810.3933715820312,556.6593017578125,1584.2725830078125,-997.3009033203125,540.3674926757812,1639.4365234375,-1197.905029296875,539.5042724609375,1670.8927001953125,1549.09228515625,696.6448364257812,1859.5833740234375,1347.311767578125,695.9227294921875,1810.070068359375,1142.099365234375,693.1744384765625,1764.718505859375,-1196.983154296875,716.606201171875,1682.9012451171875,1747.0421142578125,883.2810668945312,1914.88330078125,1542.660888671875,880.146728515625,1882.2489013671875,2414.391357421875,-1948.5203857421875,2064.35693359375,2211.2099609375,-1947.6064453125,2066.280517578125,2008.2216796875,-1946.69287109375,2062.674560546875,1805.7940673828125,-1945.7818603515625,2057.609130859375,1603.89990234375,-1944.87353515625,2055.749755859375,1402.018310546875,-1943.966064453125,2049.182861328125,1200.2125244140625,-1943.060546875,2035.26025390625,998.0447387695312,-1942.1519775390625,2021.093994140625,796.5106201171875,-1941.22900390625,1998.1258544921875,596.255859375,-1940.3370361328125,1964.080322265625,395.9717712402344,-1939.428466796875,1925.085693359375,192.45574951171875,-1938.51025390625,1897.2198486328125,-17.883705139160156,-1937.562744140625,1875.3211669921875,-228.66465759277344,-1936.613037109375,1862.8673095703125,-436.7442321777344,-1935.677001953125,1863.539306640625,-630.7529907226562,-1934.8045654296875,1862.27197265625,-822.9183959960938,-1933.9400634765625,1859.7860107421875,-1015.830078125,-1933.0693359375,1847.6036376953125,-1209.02880859375,-1932.194091796875,1825.86962890625,-1403.442138671875,-1931.3133544921875,1804.2593994140625,-1600.515869140625,-1930.42626953125,1799.3485107421875,2410.743896484375,-1736.6383056640625,2060.72412109375,-1600.031005859375,-1724.713623046875,1801.9134521484375,2407.112548828125,-1525.72900390625,2057.8720703125,1294.751708984375,-1430.9927978515625,2023.12548828125,1087.8082275390625,-1449.94970703125,1993.853515625,-1599.541015625,-1517.2999267578125,1796.2799072265625,2403.48388671875,-1314.85498046875,2071.036865234375,2078.485107421875,-1380.9334716796875,2079.220703125,1878.66845703125,-1378.356201171875,2057.501708984375,1077.652587890625,-1261.7022705078125,1965.5694580078125,869.27490234375,-1276.5167236328125,1929.2529296875,305.0762939453125,-1343.2120361328125,1824.739013671875,92.50601959228516,-1333.1812744140625,1787.2933349609375,-131.11903381347656,-1334.7059326171875,1755.6302490234375,-1599.0533447265625,-1311.155029296875,1785.0025634765625,2399.8623046875,-1104.07958984375,2089.28076171875,1883.557861328125,-1162.94287109375,2076.8984375,1687.4012451171875,-1146.1251220703125,2051.9482421875,1502.458984375,-1125.4613037109375,2023.610595703125,1319.0391845703125,-1112.385009765625,1970.5816650390625,856.0853881835938,-1083.02880859375,1900.198974609375,650.8670043945312,-1090.356201171875,1864.98046875,-146.42982482910156,-1132.842041015625,1736.4478759765625,-1022.0305786132812,-1104.1190185546875,1713.7442626953125,-1598.568359375,-1106.10888671875,1769.0439453125,2396.231201171875,-893.0167236328125,2095.501953125,1315.021728515625,-910.816162109375,1976.515380859375,1120.2113037109375,-910.001953125,1900.1866455078125,917.6763305664062,-924.5606079101562,1851.02099609375,717.75830078125,-930.5695190429688,1801.088623046875,111.62619018554688,-881.064208984375,1693.3836669921875,-260.6908874511719,-882.8021850585938,1676.875244140625,-1059.997314453125,-884.7124633789062,1705.0291748046875,-1598.085693359375,-901.3333740234375,1745.050537109375,2392.60986328125,-682.5489501953125,2089.716064453125,701.7664794921875,-750.9277954101562,1824.3089599609375,516.9517822265625,-741.5186157226562,1739.9224853515625,319.9715270996094,-750.0032958984375,1700.23583984375,127.78308868408203,-669.39453125,1661.0594482421875,-45.855674743652344,-689.4617919921875,1588.54541015625,-231.367431640625,-640.1290893554688,1582.630126953125,-857.6182250976562,-689.4722900390625,1629.6383056640625,-1058.2281494140625,-688.7571411132812,1634.0068359375,-1597.60107421875,-695.3863525390625,1714.967529296875,2389.00146484375,-472.8257141113281,2080.23388671875,-31.636018753051758,-482.8881530761719,1590.315185546875,-229.08056640625,-474.613037109375,1553.0438232421875,-662.9091796875,-474.898681640625,1580.94775390625,-861.223876953125,-477.53253173828125,1612.703369140625,-1597.1068115234375,-486.1387634277344,1693.6412353515625,2385.4013671875,-263.58062744140625,2068.6328125,162.6229248046875,-265.2906494140625,1569.8885498046875,-37.430870056152344,-269.4403381347656,1571.209228515625,-230.06005859375,-267.17132568359375,1543.7598876953125,-412.16143798828125,-258.06787109375,1605.31298828125,-662.0650024414062,-263.2017517089844,1572.2890625,-869.3370361328125,-274.5386047363281,1607.9459228515625,-1596.6099853515625,-275.6257019042969,1703.5533447265625,2381.816650390625,-55.20941162109375,2050.4921875,570.7998046875,-49.97745895385742,1618.509521484375,368.9262390136719,-55.35588836669922,1581.865966796875,156.6297607421875,-71.1805419921875,1577.9049072265625,-61.909423828125,-56.438232421875,1597.675537109375,-489.5167236328125,-65.94036865234375,1588.0406494140625,-866.6460571289062,-73.47901153564453,1643.0633544921875,-1048.0947265625,-59.89637756347656,1628.835205078125,-1596.1220703125,-68.82315826416016,1738.599853515625,2378.23388671875,153.02267456054688,2039.59619140625,965.8045654296875,174.1074676513672,1701.8267822265625,763.232666015625,157.72097778320312,1673.476806640625,559.3118896484375,147.8152313232422,1649.0732421875,114.27970886230469,121.88191223144531,1566.3353271484375,-63.11762619018555,118.19794464111328,1587.6077880859375,-245.69081115722656,117.9661865234375,1585.74560546875,-471.93170166015625,123.83942413330078,1596.6640625,-1059.0631103515625,125.82317352294922,1686.7037353515625,-1595.636962890625,136.03549194335938,1773.2684326171875,2374.703857421875,358.1879577636719,2038.4722900390625,757.1807250976562,377.531494140625,1571.204345703125,558.6544189453125,372.193115234375,1535.2423095703125,359.9347839355469,368.5113220214844,1499.1982421875,135.81813049316406,324.8617248535156,1582.579345703125,-28.25123405456543,359.7611389160156,1494.4759521484375,-207.19064331054688,309.93536376953125,1602.03466796875,-400.3675842285156,310.2765197753906,1600.6387939453125,-632.57861328125,343.4151916503906,1612.0438232421875,-826.3926391601562,360.6925964355469,1632.1602783203125,-1066.690673828125,316.4952087402344,1715.7247314453125,-1207.03515625,359.125244140625,1642.77294921875,-1595.165283203125,336.89666748046875,1799.0289306640625,2371.425048828125,548.7559204101562,2049.075439453125,1160.208251953125,538.5304565429688,1677.652099609375,960.1445922851562,552.5383911132812,1617.9041748046875,758.9668579101562,565.6458129882812,1578.5830078125,-221.23141479492188,530.7305908203125,1550.7947998046875,-425.6654357910156,564.67822265625,1500.4541015625,-632.2954711914062,498.1655578613281,1645.5087890625,-805.83251953125,539.9678344726562,1623.827880859375,-997.6468505859375,542.5140380859375,1623.6812744140625,-1254.9801025390625,482.08880615234375,1775.75732421875,-1594.7322998046875,521.1204833984375,1814.6192626953125,2368.20751953125,735.7825317382812,2068.57275390625,1555.537109375,710.347412109375,1812.326171875,1355.392578125,711.4268188476562,1771.7490234375,1157.168212890625,723.0130004882812,1710.8173828125,-991.4594116210938,722.4898681640625,1645.61572265625,-1249.5814208984375,659.6041870117188,1763.5272216796875,-1418.0416259765625,684.1157836914062,1791.348876953125,-1594.2935791015625,707.2249755859375,1811.268798828125,2364.98681640625,922.94775390625,2090.5146484375,1747.63671875,893.1615600585938,1894.0125732421875,1550.4112548828125,893.6981811523438,1853.7232666015625,-1593.8446044921875,897.3211059570312,1798.4246826171875,2361.754638671875,1110.8197021484375,2107.763916015625,1751.8289794921875,1066.4935302734375,1934.777587890625,-1593.38818359375,1090.62158203125,1792.08642578125,2358.500732421875,1299.9368896484375,2115.899658203125,-1592.9322509765625,1283.84912109375,1787.127197265625,2355.22265625,1490.3995361328125,2113.74365234375,-1592.4783935546875,1476.2254638671875,1780.8408203125,2351.92822265625,1681.9495849609375,2096.41015625,2153.047607421875,1681.240966796875,2067.7578125,1955.702392578125,1680.533935546875,2022.798828125,1756.87060546875,1679.8280029296875,1989.28564453125,1556.788818359375,1679.1190185546875,1969.5455322265625,1356.8038330078125,1678.404052734375,1951.399658203125,1157.5001220703125,1677.689697265625,1926.6898193359375,959.3056640625,1676.9791259765625,1896.9512939453125,762.9374389648438,1676.275390625,1859.8896484375,565.9483642578125,1675.573486328125,1829.676513671875,368.7198181152344,1674.868408203125,1803.4735107421875,169.63035583496094,1674.1619873046875,1788.621337890625,-35.011390686035156,1673.431640625,1776.2857666015625,-241.84188842773438,1672.6893310546875,1772.12939453125,-447.75384521484375,1671.955078125,1768.5616455078125,-636.9703979492188,1671.28173828125,1760.770751953125,-825.4334106445312,1670.6103515625,1761.603515625,-1014.6972045898438,1669.9334716796875,1768.056396484375,-1205.4488525390625,1669.253662109375,1776.105712890625,-1397.94580078125,1668.5672607421875,1775.7911376953125,-1592.0260009765625,1667.875244140625,1776.190673828125,1078.13671875,-1458.7208251953125,2004.5760498046875,1891.3853759765625,-1374.9793701171875,2072.822265625,1069.714599609375,-1262.2186279296875,1978.7568359375,863.9927978515625,-1283.8387451171875,1928.9376220703125,89.8481674194336,-1341.3419189453125,1797.703369140625,-131.600830078125,-1347.5257568359375,1770.275146484375,1881.826171875,-1157.6776123046875,2065.312744140625,1688.560302734375,-1151.109130859375,2061.6669921875,1501.0545654296875,-1133.0228271484375,2041.805419921875,1320.0950927734375,-1115.0279541015625,2011.354248046875,857.70068359375,-1081.2568359375,1907.1773681640625,1318.2806396484375,-898.82373046875,1955.065673828125,1116.00830078125,-920.4503784179688,1923.599609375,917.8367309570312,-931.1088256835938,1879.8504638671875,715.447998046875,-946.3131103515625,1839.5177001953125,-1023.88720703125,-922.8976440429688,1635.964111328125,710.96240234375,-727.1912841796875,1787.2125244140625,503.70770263671875,-768.3023681640625,1769.02734375,147.55508422851562,-684.8009643554688,1624.451416015625,-59.066017150878906,-669.783447265625,1623.5545654296875,-59.301551818847656,-669.6407470703125,1623.971435546875,-237.92398071289062,-641.0859985351562,1601.48876953125,-230.33006286621094,-644.8675537109375,1608.2354736328125,-836.5824584960938,-717.3460083007812,1568.1024169921875,-1031.16357421875,-723.3448486328125,1608.0958251953125,-21.52692985534668,-486.3057556152344,1571.28125,-216.6714630126953,-469.4781188964844,1576.3447265625,-657.648681640625,-497.038330078125,1534.72119140625,-850.8410034179688,-506.3936767578125,1552.0364990234375,171.33692932128906,-274.0283203125,1551.099853515625,-31.125083923339844,-276.5726623535156,1547.7574462890625,-47.212921142578125,-251.96719360351562,1602.8450927734375,-37.94939041137695,-272.19671630859375,1573.53515625,-225.08468627929688,-269.21820068359375,1561.055419921875,-219.34500122070312,-245.19223022460938,1603.4539794921875,-455.20977783203125,-280.3556823730469,1537.608154296875,-437.9131164550781,-260.0183410644531,1577.1795654296875,-659.5346069335938,-289.5140686035156,1521.8087158203125,570.751953125,-53.37556838989258,1613.6971435546875,370.72900390625,-57.03609085083008,1565.577392578125,168.3173370361328,-58.52499008178711,1541.033203125,127.10333251953125,-66.68544006347656,1563.244384765625,166.35794067382812,-69.26963806152344,1561.985107421875,-48.038536071777344,-66.29426574707031,1573.364013671875,-469.01153564453125,-65.30491638183594,1612.69189453125,-857.2977905273438,-67.99419403076172,1619.49072265625,-1057.12451171875,-72.35933685302734,1659.994140625,761.48779296875,161.24630737304688,1675.934326171875,559.343017578125,148.11831665039062,1632.2567138671875,153.16189575195312,137.40005493164062,1558.288818359375,111.12020111083984,121.94508361816406,1574.4173583984375,-67.92887878417969,118.41790771484375,1592.751953125,-247.09945678710938,120.41181945800781,1600.59423828125,-453.0846252441406,123.96048736572266,1615.2799072265625,-1037.23583984375,148.50088500976562,1642.451171875,747.369140625,300.4406433105469,1686.832763671875,551.6114501953125,304.4665832519531,1619.4439697265625,354.43133544921875,310.8452453613281,1566.21435546875,142.76712036132812,324.7471008300781,1546.8123779296875,159.73385620117188,366.2657470703125,1487.121826171875,-54.78817367553711,316.0866394042969,1582.187255859375,-238.54246520996094,320.3581848144531,1587.123046875,-261.58538818359375,384.58245849609375,1560.073974609375,-223.49314880371094,357.113037109375,1516.1845703125,-401.8726501464844,319.8463439941406,1617.8814697265625,-408.826171875,330.5611572265625,1582.3406982421875,-634.5944213867188,318.7876892089844,1642.4559326171875,-833.59619140625,335.0937805175781,1655.013671875,-1024.1591796875,351.1942443847656,1668.26806640625,-1016.678955078125,360.81756591796875,1647.101318359375,-1252.5606689453125,304.8234558105469,1755.447021484375,1152.2490234375,503.4349365234375,1754.8671875,950.0556030273438,485.90545654296875,1726.2364501953125,743.4594116210938,487.8702697753906,1693.0994873046875,-227.44161987304688,561.9198608398438,1498.9520263671875,-418.6466979980469,535.5241088867188,1573.9947509765625,-613.2325439453125,548.0958251953125,1610.1669921875,-620.1595458984375,566.91162109375,1546.7200927734375,-824.921875,519.1246948242188,1651.165771484375,-809.4090576171875,555.2379760742188,1587.2144775390625,-996.8118286132812,537.1752319335938,1644.0975341796875,-1200.6431884765625,536.3692626953125,1675.8856201171875,1547.4688720703125,692.8381958007812,1870.6468505859375,1345.7545166015625,692.2501831054688,1819.4957275390625,1140.770263671875,689.5655517578125,1772.3343505859375,-1200.2568359375,713.1861572265625,1689.0545654296875,1745.9671630859375,878.818603515625,1927.2779541015625,1541.3597412109375,875.7794799804688,1894.5894775390625,2414.391357421875,-1948.5203857421875,2082.973388671875,2211.1650390625,-1947.6064453125,2084.85693359375,2008.140869140625,-1946.69287109375,2080.61328125,1805.681884765625,-1945.7818603515625,2074.708251953125,1603.7432861328125,-1944.87353515625,2072.496337890625,1401.8023681640625,-1943.966064453125,2066.19921875,1199.894287109375,-1943.060546875,2052.862548828125,997.6650390625,-1942.1519775390625,2038.7470703125,796.0975952148438,-1941.2271728515625,2015.715087890625,595.9701538085938,-1940.3370361328125,1981.130859375,395.8353576660156,-1939.428466796875,1942.1085205078125,192.34750366210938,-1938.51025390625,1914.7501220703125,-18.012739181518555,-1937.562744140625,1893.149658203125,-228.80189514160156,-1936.613037109375,1879.7562255859375,-436.93310546875,-1935.677001953125,1879.5477294921875,-630.9950561523438,-1934.8045654296875,1878.3359375,-823.1935424804688,-1933.9400634765625,1875.1842041015625,-1016.0536499023438,-1933.0693359375,1861.01416015625,-1209.1201171875,-1932.194091796875,1837.2183837890625,-1403.412841796875,-1931.3133544921875,1813.8353271484375,-1600.515869140625,-1930.42626953125,1808.086181640625,2410.743896484375,-1736.651123046875,2079.014892578125,-1600.031005859375,-1724.6903076171875,1808.9290771484375,2407.112548828125,-1525.7603759765625,2075.8251953125,1307.227783203125,-1420.137939453125,2042.1806640625,1099.976806640625,-1440.9356689453125,2012.724609375,-1599.541015625,-1517.2998046875,1801.8023681640625,2403.4853515625,-1314.9654541015625,2090.275390625,2064.2763671875,-1389.0550537109375,2098.693359375,1864.5146484375,-1386.9307861328125,2077.795166015625,1088.8687744140625,-1254.9951171875,1984.7991943359375,879.9639282226562,-1271.546142578125,1948.2056884765625,289.0433044433594,-1349.03369140625,1844.248779296875,71.43740844726562,-1338.7220458984375,1810.037353515625,-155.64804077148438,-1339.6304931640625,1778.1048583984375,-1599.0533447265625,-1311.1915283203125,1788.6256103515625,2399.8662109375,-1104.2861328125,2109.648193359375,1870.8935546875,-1169.837158203125,2095.39990234375,1674.7510986328125,-1152.2537841796875,2069.935546875,1491.800537109375,-1129.2122802734375,2039.1776123046875,1310.3251953125,-1114.583251953125,1983.713134765625,865.4472045898438,-1080.1807861328125,1918.570556640625,659.3757934570312,-1088.939697265625,1882.53759765625,-173.96829223632812,-1139.408935546875,1761.601806640625,-1023.951171875,-1104.1553955078125,1718.53369140625,-1598.568359375,-1106.151123046875,1771.338623046875,2396.234619140625,-893.2205810546875,2115.45947265625,1307.6004638671875,-912.7265625,1988.0626220703125,1112.3087158203125,-912.7230224609375,1911.3297119140625,908.72265625,-928.979736328125,1862.5594482421875,707.5509033203125,-936.6325073242188,1813.738037109375,97.04597473144531,-878.7247314453125,1708.9088134765625,-263.4927673339844,-879.8900146484375,1690.2440185546875,-1061.5269775390625,-884.1409912109375,1707.707275390625,-1598.085693359375,-901.3601684570312,1746.9552001953125,2392.613525390625,-682.7594604492188,2109.7177734375,690.9918823242188,-760.0106201171875,1839.7598876953125,507.19183349609375,-749.76953125,1752.188720703125,311.4770812988281,-757.0643310546875,1710.9814453125,120.81324768066406,-667.635498046875,1669.742431640625,-50.83921813964844,-688.5299072265625,1595.517578125,-231.1189422607422,-636.692626953125,1585.653564453125,-859.659912109375,-687.82470703125,1634.8670654296875,-1059.7777099609375,-687.8052368164062,1637.1446533203125,-1597.60107421875,-695.3988647460938,1717.3662109375,2389.005615234375,-473.0662536621094,2099.76025390625,-33.26837921142578,-482.31866455078125,1593.3035888671875,-227.52777099609375,-473.19854736328125,1557.114990234375,-664.0081176757812,-472.863037109375,1587.2109375,-862.91259765625,-475.72357177734375,1619.097900390625,-1597.1068115234375,-486.16790771484375,1696.7098388671875,2385.4072265625,-263.8954772949219,2086.4306640625,159.89735412597656,-264.07073974609375,1575.0609130859375,-39.60791778564453,-268.1692199707031,1575.2305908203125,-229.3133544921875,-266.2132568359375,1546.08154296875,-410.3157043457031,-256.32623291015625,1610.0604248046875,-662.7939453125,-261.187255859375,1578.162841796875,-871.4156494140625,-274.34130859375,1613.4906005859375,-1596.6099853515625,-275.6696472167969,1707.5926513671875,2381.823974609375,-55.63761520385742,2067.046630859375,569.4343872070312,-47.55720138549805,1623.3399658203125,367.03973388671875,-53.36973190307617,1586.9937744140625,153.58775329589844,-71.14675903320312,1583.4859619140625,-64.14188385009766,-55.738525390625,1601.1480712890625,-488.21368408203125,-65.28338623046875,1591.375732421875,-868.0195922851562,-73.64485168457031,1646.740234375,-1049.6793212890625,-61.47895050048828,1632.649658203125,-1596.1220703125,-68.87809753417969,1743.2943115234375,2378.2421875,152.53550720214844,2055.345703125,964.9454345703125,177.7255401611328,1707.13623046875,762.7565307617188,160.0286102294922,1677.2633056640625,558.70556640625,149.7625274658203,1652.5296630859375,110.15184020996094,121.20684814453125,1571.595458984375,-66.197509765625,116.89102935791016,1593.9239501953125,-247.83457946777344,116.08149719238281,1592.7418212890625,-470.196044921875,122.27259826660156,1599.98486328125,-1061.160400390625,123.56155395507812,1690.9215087890625,-1595.636962890625,135.8975067138672,1778.785888671875,2374.71240234375,357.69732666015625,2053.417724609375,757.1807250976562,377.531494140625,1571.204345703125,558.1074829101562,371.5149841308594,1535.906494140625,358.2708740234375,366.7533264160156,1501.0401611328125,130.21078491210938,322.35760498046875,1589.9312744140625,-31.486431121826172,358.242919921875,1499.46875,-207.98281860351562,307.91876220703125,1607.44482421875,-399.8796691894531,307.57794189453125,1604.861328125,-631.661376953125,340.3460998535156,1615.0972900390625,-827.6351928710938,357.52728271484375,1636.0648193359375,-1069.070556640625,312.9395446777344,1720.36572265625,-1208.8128662109375,355.86944580078125,1647.24658203125,-1595.165283203125,336.853271484375,1804.0047607421875,2371.4326171875,548.3145751953125,2063.176513671875,1159.0538330078125,535.2916870117188,1683.7208251953125,959.2874755859375,550.2871704101562,1621.322265625,758.3614501953125,564.6235961914062,1580.673828125,-221.97332763671875,528.0714111328125,1555.992431640625,-425.0454406738281,563.3665161132812,1503.490234375,-632.7964477539062,494.5740966796875,1649.618896484375,-805.1127319335938,537.3238525390625,1628.052001953125,-997.1957397460938,540.3797607421875,1627.4207763671875,-1257.9754638671875,479.5374450683594,1781.0126953125,-1594.7322998046875,521.1514282226562,1818.91259765625,2368.2138671875,735.4127807617188,2081.990234375,1553.740966796875,706.8690185546875,1822.8682861328125,1353.5091552734375,707.7967529296875,1781.8555908203125,1155.4979248046875,719.5341796875,1719.482177734375,-991.1319580078125,719.4315795898438,1650.755126953125,-1253.2059326171875,657.3849487304688,1769.3443603515625,-1421.4298095703125,682.7289428710938,1796.86572265625,-1594.2935791015625,707.26953125,1814.5748291015625,2364.991943359375,922.6542358398438,2103.237060546875,1746.657470703125,889.0612182617188,1906.021484375,1549.199951171875,889.89501953125,1865.2452392578125,-1593.8446044921875,897.3408203125,1801.471923828125,2361.75732421875,1110.67236328125,2118.9404296875,1751.432861328125,1061.3759765625,1947.2445068359375,-1593.38818359375,1090.63232421875,1795.06884765625,2358.501953125,1299.8687744140625,2125.5673828125,-1592.9322509765625,1283.8612060546875,1790.3402099609375,2355.2236328125,1490.34375,2123.378662109375,-1592.4783935546875,1476.23291015625,1784.0599365234375,2351.92822265625,1681.9495849609375,2106.68701171875,2153.005859375,1681.240966796875,2078.159912109375,1955.759521484375,1680.533935546875,2032.7344970703125,1756.7972412109375,1679.8280029296875,2000.02099609375,1556.52490234375,1679.1190185546875,1981.8194580078125,1356.58251953125,1678.404052734375,1962.88427734375,1157.40283203125,1677.689697265625,1936.841552734375,959.3397827148438,1676.9791259765625,1905.936767578125,763.0791015625,1676.275390625,1868.0252685546875,566.0527954101562,1675.573486328125,1837.7783203125,368.8664855957031,1674.868408203125,1810.88720703125,169.83831787109375,1674.16259765625,1794.4903564453125,-34.80669021606445,1673.432373046875,1781.69091796875,-241.692138671875,1672.6893310546875,1778.26318359375,-447.62689208984375,1671.955078125,1774.1739501953125,-636.8367309570312,1671.281982421875,1765.2255859375,-825.3289794921875,1670.6107177734375,1765.3272705078125,-1014.6285400390625,1669.9334716796875,1771.4490966796875,-1205.4072265625,1669.253662109375,1779.5245361328125,-1397.9254150390625,1668.5672607421875,1779.0533447265625,-1592.0260009765625,1667.875244140625,1779.25,1089.15087890625,-1450.9708251953125,2023.047607421875,1879.1309814453125,-1382.0482177734375,2092.294189453125,1079.9996337890625,-1256.0260009765625,1997.0831298828125,874.0348510742188,-1279.76318359375,1947.903564453125,68.832275390625,-1347.8585205078125,1822.0487060546875,-155.38955688476562,-1354.8214111328125,1795.8037109375,1868.404052734375,-1164.9854736328125,2084.62158203125,1676.70361328125,-1156.5711669921875,2078.592041015625,1491.0330810546875,-1136.5870361328125,2056.94921875,1312.912841796875,-1116.637939453125,2023.760498046875,866.76318359375,-1078.6820068359375,1924.70068359375,1310.6024169921875,-900.564208984375,1966.6318359375,1108.42919921875,-923.2070922851562,1934.763671875,909.5836791992188,-935.5353393554688,1892.29833984375,705.6836547851562,-953.216796875,1854.28271484375,-1025.636962890625,-922.96826171875,1640.1622314453125,700.335205078125,-734.35107421875,1800.0843505859375,493.43487548828125,-777.9014282226562,1782.6220703125,141.49395751953125,-684.1021118164062,1632.3177490234375,-63.2334098815918,-667.2586669921875,1630.930419921875,-63.34185791015625,-667.1929321289062,1631.1224365234375,-238.12669372558594,-637.6589965820312,1604.9896240234375,-229.9007110595703,-640.736572265625,1613.25341796875,-837.9380493164062,-716.9102783203125,1572.777587890625,-1031.95458984375,-723.36376953125,1611.155029296875,-23.455867767333984,-485.7581787109375,1574.4613037109375,-216.54086303710938,-466.8570861816406,1578.7674560546875,-658.603271484375,-495.80743408203125,1539.6959228515625,-852.2516479492188,-505.2698974609375,1557.5498046875,169.15127563476562,-273.03338623046875,1555.560302734375,-33.72549819946289,-275.8548278808594,1552.4652099609375,-48.8328857421875,-250.90753173828125,1606.1690673828125,-40.152000427246094,-271.2526550292969,1577.507568359375,-225.35202026367188,-267.6051940917969,1563.11474609375,-218.6864013671875,-243.02716064453125,1607.0272216796875,-454.9456787109375,-279.3476257324219,1540.1593017578125,-437.49578857421875,-258.281005859375,1581.4205322265625,-659.9625854492188,-288.3108215332031,1525.796875,568.9564819335938,-50.78485870361328,1619.3900146484375,368.57635498046875,-54.58314895629883,1571.4141845703125,165.88650512695312,-56.543914794921875,1546.817626953125,123.29510498046875,-66.51119232177734,1567.8837890625,163.1266326904297,-68.83319854736328,1568.035888671875,-51.2447509765625,-65.08238220214844,1578.15869140625,-466.3864440917969,-65.19409942626953,1617.061279296875,-858.8278198242188,-68.63349151611328,1624.1978759765625,-1058.552734375,-72.82512664794922,1663.4207763671875,760.947265625,163.89068603515625,1680.1309814453125,558.2030029296875,150.6636199951172,1637.072265625,150.1083221435547,135.9987335205078,1564.2196044921875,106.35731506347656,120.48316955566406,1581.0599365234375,-70.91046142578125,117.31083679199219,1598.726806640625,-249.0158233642578,119.09403991699219,1606.524169921875,-451.61334228515625,121.61547088623047,1618.8056640625,-1038.919189453125,146.2015380859375,1646.4713134765625,747.1281127929688,299.9118957519531,1687.45166015625,550.9727783203125,303.1183776855469,1620.851318359375,353.2926940917969,309.24298095703125,1568.0908203125,140.45326232910156,322.2083435058594,1550.8302001953125,156.50360107421875,364.03717041015625,1490.6978759765625,-58.2628288269043,313.8030090332031,1589.707275390625,-240.99021911621094,317.38555908203125,1594.6683349609375,-262.2176818847656,382.03741455078125,1565.033203125,-225.8361358642578,355.7974548339844,1521.1903076171875,-402.08734130859375,317.3392333984375,1621.53466796875,-408.72271728515625,327.8892517089844,1587.0203857421875,-634.991943359375,315.6504211425781,1646.4691162109375,-835.191650390625,332.6776428222656,1657.6978759765625,-1025.8609619140625,347.98907470703125,1672.036865234375,-1018.1170654296875,357.3246154785156,1651.353515625,-1255.07177734375,301.7548828125,1760.1917724609375,1151.09033203125,500.4270324707031,1761.60400390625,949.1677856445312,482.5860900878906,1731.596923828125,742.6090087890625,485.6185302734375,1696.353759765625,-228.83270263671875,560.547607421875,1503.163818359375,-417.585205078125,533.7156372070312,1577.99755859375,-611.4825439453125,546.10302734375,1614.283203125,-618.4402465820312,566.2361450195312,1549.0003662109375,-826.1853637695312,516.2354736328125,1654.1624755859375,-808.4246215820312,553.8165283203125,1590.156494140625,-996.3229370117188,533.9830322265625,1648.758544921875,-1203.3812255859375,533.2341918945312,1680.878662109375,1545.8453369140625,689.0316162109375,1881.7105712890625,1344.1971435546875,688.5774536132812,1828.92138671875,1139.44091796875,685.9566650390625,1779.950439453125,-1203.5302734375,709.7660522460938,1695.2080078125,1744.89208984375,874.356201171875,1939.6727294921875,1540.0587158203125,871.4121704101562,1906.929931640625,2414.391357421875,-1948.5203857421875,2101.589599609375,2211.1201171875,-1947.6064453125,2103.43310546875,2008.059814453125,-1946.69287109375,2098.552490234375,1805.569580078125,-1945.7818603515625,2091.807373046875,1603.5863037109375,-1944.87353515625,2089.242919921875,1401.5865478515625,-1943.966064453125,2083.21533203125,1199.5760498046875,-1943.060546875,2070.46484375,997.2854614257812,-1942.1519775390625,2056.400146484375,795.6846313476562,-1941.2252197265625,2033.304443359375,595.6844482421875,-1940.3370361328125,1998.18115234375,395.69891357421875,-1939.428466796875,1959.13134765625,192.23928833007812,-1938.51025390625,1932.280517578125,-18.14177131652832,-1937.562744140625,1910.97802734375,-228.93911743164062,-1936.613037109375,1896.6451416015625,-437.1219177246094,-1935.677001953125,1895.5560302734375,-631.2371215820312,-1934.8045654296875,1894.4000244140625,-823.4688110351562,-1933.9400634765625,1890.5821533203125,-1016.2772216796875,-1933.0693359375,1874.4249267578125,-1209.2115478515625,-1932.194091796875,1848.5670166015625,-1403.3834228515625,-1931.3133544921875,1823.4110107421875,-1600.515869140625,-1930.42626953125,1816.8238525390625,2410.743896484375,-1736.6639404296875,2097.3056640625,-1600.031005859375,-1724.666748046875,1815.9443359375,2407.112548828125,-1525.791748046875,2093.7783203125,1319.70361328125,-1409.283203125,2061.236328125,1112.1451416015625,-1431.9219970703125,2031.595458984375,-1599.541015625,-1517.2996826171875,1807.3248291015625,2403.48681640625,-1315.0760498046875,2109.513671875,2050.0673828125,-1397.1766357421875,2118.165283203125,1850.360595703125,-1395.50537109375,2098.08837890625,1100.0850830078125,-1248.2877197265625,2004.029052734375,890.6529541015625,-1266.575439453125,1967.1583251953125,273.01031494140625,-1354.85546875,1863.758544921875,50.36882781982422,-1344.262939453125,1832.7811279296875,-180.1770782470703,-1344.5552978515625,1800.57958984375,-1599.0533447265625,-1311.227783203125,1792.2484130859375,2399.86962890625,-1104.49267578125,2130.015625,1858.2293701171875,-1176.7313232421875,2113.901123046875,1662.1009521484375,-1158.3824462890625,2087.9228515625,1481.141845703125,-1132.96337890625,2054.744384765625,1301.6109619140625,-1116.7816162109375,1996.844482421875,874.8089599609375,-1077.3326416015625,1936.9425048828125,667.8846435546875,-1087.523193359375,1900.0946044921875,-201.50677490234375,-1145.975830078125,1786.755859375,-1025.871826171875,-1104.1915283203125,1723.3231201171875,-1598.568359375,-1106.193359375,1773.63330078125,2396.238037109375,-893.4244384765625,2135.416748046875,1300.17919921875,-914.6370849609375,1999.6099853515625,1104.40625,-915.4439086914062,1922.472900390625,899.7689208984375,-933.39892578125,1874.0980224609375,697.3434448242188,-942.6954345703125,1826.3875732421875,82.46573638916016,-876.38525390625,1724.433837890625,-266.2945251464844,-876.977783203125,1703.613037109375,-1063.056640625,-883.5695190429688,1710.3857421875,-1598.085693359375,-901.3868408203125,1748.8597412109375,2392.6171875,-682.9700317382812,2129.719482421875,680.2172241210938,-769.0933837890625,1855.2109375,497.4319152832031,-758.0205078125,1764.455078125,302.9826965332031,-764.12548828125,1721.727294921875,113.84342956542969,-665.8766479492188,1678.425537109375,-55.82271957397461,-687.5980224609375,1602.4892578125,-230.87045288085938,-633.2562255859375,1588.677001953125,-861.7014770507812,-686.1770629882812,1640.0958251953125,-1061.3275146484375,-686.8533935546875,1640.282470703125,-1597.60107421875,-695.4111938476562,1719.764892578125,2389.009765625,-473.3067626953125,2119.287109375,-34.90074920654297,-481.7491760253906,1596.2919921875,-225.9750213623047,-471.7841491699219,1561.1864013671875,-665.1071166992188,-470.8274230957031,1593.4742431640625,-864.6011962890625,-473.91455078125,1625.4923095703125,-1597.1068115234375,-486.19708251953125,1699.778564453125,2385.41259765625,-264.21038818359375,2104.228759765625,157.17181396484375,-262.850830078125,1580.2335205078125,-41.784950256347656,-266.8980712890625,1579.2520751953125,-228.56658935546875,-265.255126953125,1548.40283203125,-408.4699401855469,-254.58453369140625,1614.807861328125,-663.52294921875,-259.1727294921875,1584.0367431640625,-873.4942016601562,-274.14404296875,1619.03515625,-1596.6099853515625,-275.7136535644531,1711.6317138671875,2381.83154296875,-56.06581115722656,2083.6015625,568.0689086914062,-45.13694381713867,1628.1702880859375,365.15325927734375,-51.38357925415039,1592.1214599609375,150.5457305908203,-71.11298370361328,1589.0667724609375,-66.37433624267578,-55.038848876953125,1604.6207275390625,-486.9106140136719,-64.62639617919922,1594.710693359375,-869.3932495117188,-73.81068420410156,1650.4166259765625,-1051.263916015625,-63.06153106689453,1636.463623046875,-1596.1220703125,-68.93305206298828,1747.989013671875,2378.25048828125,152.04832458496094,2071.095703125,964.0863647460938,181.3436279296875,1712.4456787109375,762.2802734375,162.33627319335938,1681.0496826171875,558.0991821289062,151.70980834960938,1655.9862060546875,106.02397918701172,120.53178405761719,1576.8555908203125,-69.27738952636719,115.58412170410156,1600.2401123046875,-249.97836303710938,114.19683837890625,1599.7379150390625,-468.4603576660156,120.70576477050781,1603.305908203125,-1063.2574462890625,121.2999267578125,1695.139404296875,-1595.636962890625,135.7594757080078,1784.303466796875,2374.720947265625,357.20672607421875,2068.36279296875,757.1807250976562,377.531494140625,1571.204345703125,557.560546875,370.83685302734375,1536.5706787109375,356.6070251464844,364.995361328125,1502.882080078125,124.60342407226562,319.85345458984375,1597.2830810546875,-34.72163391113281,356.7247314453125,1504.4615478515625,-208.77499389648438,305.90216064453125,1612.854736328125,-399.391845703125,304.8793640136719,1609.083740234375,-630.7440795898438,337.27703857421875,1618.15087890625,-828.8776245117188,354.3619384765625,1639.9693603515625,-1071.4505615234375,309.38385009765625,1725.0064697265625,-1210.591064453125,352.61358642578125,1651.7198486328125,-1595.165283203125,336.80987548828125,1808.98095703125,2371.4404296875,547.8732299804688,2077.27783203125,1157.8994140625,532.0531005859375,1689.78955078125,958.4305419921875,548.0360107421875,1624.7403564453125,757.755859375,563.6013793945312,1582.7647705078125,-222.71527099609375,525.412353515625,1561.190185546875,-424.4254455566406,562.0547485351562,1506.5262451171875,-633.2974243164062,490.982666015625,1653.7288818359375,-804.3927612304688,534.6798095703125,1632.2764892578125,-996.744873046875,538.2454223632812,1631.1602783203125,-1260.970703125,476.986083984375,1786.2677001953125,-1594.7322998046875,521.182373046875,1823.2059326171875,2368.22021484375,735.0430908203125,2095.407958984375,1551.9447021484375,703.390625,1833.4102783203125,1351.62548828125,704.1666870117188,1791.96240234375,1153.827392578125,716.055419921875,1728.14697265625,-990.804443359375,716.3731689453125,1655.8948974609375,-1256.8306884765625,655.1655883789062,1775.16162109375,-1424.818115234375,681.3421020507812,1802.38232421875,-1594.2935791015625,707.31396484375,1817.881103515625,2364.9970703125,922.3607177734375,2115.958984375,1745.6783447265625,884.9608154296875,1918.0302734375,1547.988525390625,886.092041015625,1876.767578125,-1593.8446044921875,897.360595703125,1804.5189208984375,2361.759765625,1110.52490234375,2130.11669921875,1751.036865234375,1056.2581787109375,1959.71142578125,-1593.38818359375,1090.64306640625,1798.05126953125,2358.503173828125,1299.800537109375,2135.2353515625,-1592.9322509765625,1283.873046875,1793.55322265625,2355.224365234375,1490.2879638671875,2133.013916015625,-1592.4783935546875,1476.2403564453125,1787.2789306640625,2351.92822265625,1681.9495849609375,2116.9638671875,2152.9638671875,1681.240966796875,2088.5615234375,1955.816650390625,1680.533935546875,2042.670166015625,1756.723876953125,1679.8280029296875,2010.756103515625,1556.2608642578125,1679.1190185546875,1994.093505859375,1356.3612060546875,1678.404052734375,1974.3692626953125,1157.3057861328125,1677.689697265625,1946.993408203125,959.373779296875,1676.9791259765625,1914.9219970703125,763.220703125,1676.275390625,1876.1605224609375,566.1572265625,1675.573486328125,1845.88037109375,369.0130615234375,1674.868408203125,1818.301025390625,170.04627990722656,1674.1634521484375,1800.3590087890625,-34.60198974609375,1673.43310546875,1787.09619140625,-241.54238891601562,1672.6893310546875,1784.3970947265625,-447.4998779296875,1671.955078125,1779.786376953125,-636.703125,1671.2822265625,1769.6806640625,-825.2244873046875,1670.611083984375,1769.05126953125,-1014.56005859375,1669.9334716796875,1774.842041015625,-1205.365478515625,1669.253662109375,1782.9429931640625,-1397.905029296875,1668.5672607421875,1782.3157958984375,-1592.0260009765625,1667.875244140625,1782.309326171875,1100.1651611328125,-1443.2208251953125,2041.51904296875,1866.876953125,-1389.117431640625,2111.765625,1090.28466796875,-1249.83349609375,2015.4093017578125,884.076904296875,-1275.6875,1966.869873046875,47.81646728515625,-1354.3748779296875,1846.3936767578125,-179.17828369140625,-1362.1168212890625,1821.3323974609375,1854.9818115234375,-1172.29345703125,2103.929931640625,1664.846923828125,-1162.033203125,2095.51708984375,1481.011474609375,-1140.1514892578125,2072.0927734375,1305.7308349609375,-1118.2481689453125,2036.1668701171875,875.8257446289062,-1076.107177734375,1942.2237548828125,1302.92431640625,-902.3046875,1978.197998046875,1100.8497314453125,-925.9637451171875,1945.927734375,901.3305053710938,-939.9619140625,1904.7459716796875,695.91943359375,-960.120361328125,1869.0477294921875,-1027.3865966796875,-923.0388793945312,1644.3607177734375,689.7080688476562,-741.5107421875,1812.9559326171875,483.16192626953125,-787.5004272460938,1796.216796875,135.43284606933594,-683.4034423828125,1640.18408203125,-67.40078735351562,-664.7338256835938,1638.306640625,-67.38215637207031,-664.7451171875,1638.273681640625,-238.3294219970703,-634.2321166992188,1608.4903564453125,-229.47137451171875,-636.60546875,1618.271240234375,-839.29345703125,-716.4744262695312,1577.4532470703125,-1032.74560546875,-723.3828735351562,1614.2139892578125,-25.38481330871582,-485.210693359375,1577.64111328125,-216.41026306152344,-464.2359924316406,1581.1905517578125,-659.5578002929688,-494.5765380859375,1544.6705322265625,-853.6624145507812,-504.14630126953125,1563.0631103515625,166.9656524658203,-272.0384826660156,1560.020751953125,-36.32588577270508,-275.1369934082031,1557.1727294921875,-50.452857971191406,-249.8478546142578,1609.492919921875,-42.35460662841797,-270.30859375,1581.479736328125,-225.61936950683594,-265.9921875,1565.17431640625,-218.02780151367188,-240.86209106445312,1610.6004638671875,-454.68145751953125,-278.33953857421875,1542.710205078125,-437.07843017578125,-256.5436706542969,1585.6614990234375,-660.3905639648438,-287.1075439453125,1529.7847900390625,567.1611328125,-48.19414138793945,1625.0828857421875,366.4236755371094,-52.13020324707031,1577.2506103515625,163.45567321777344,-54.56282043457031,1552.6021728515625,119.48687744140625,-66.33695220947266,1572.523193359375,159.89532470703125,-68.396728515625,1574.0870361328125,-54.450965881347656,-63.87049865722656,1582.9532470703125,-463.7613830566406,-65.08328247070312,1621.4306640625,-860.3578491210938,-69.27278900146484,1628.9049072265625,-1059.980712890625,-73.29090118408203,1666.847412109375,760.4066772460938,166.5350799560547,1684.3275146484375,557.0629272460938,153.2089385986328,1641.8875732421875,147.0547637939453,134.597412109375,1570.150390625,101.59442901611328,119.02125549316406,1587.70263671875,-73.89203643798828,116.20376586914062,1604.7017822265625,-250.93218994140625,117.77626037597656,1612.453857421875,-450.14202880859375,119.27046203613281,1622.3316650390625,-1040.602783203125,143.90219116210938,1650.4913330078125,746.8871459960938,299.38311767578125,1688.0706787109375,550.334228515625,301.77020263671875,1622.2587890625,352.15411376953125,307.64068603515625,1569.967529296875,138.13938903808594,319.6695251464844,1554.84765625,153.2733612060547,361.8086853027344,1494.274169921875,-61.737483978271484,311.51934814453125,1597.2275390625,-243.43795776367188,314.4129333496094,1602.2138671875,-262.85003662109375,379.49237060546875,1569.992431640625,-228.17910766601562,354.4817199707031,1526.1961669921875,-402.3020324707031,314.8321228027344,1625.187744140625,-408.61932373046875,325.21734619140625,1591.6998291015625,-635.3894653320312,312.5131530761719,1650.4825439453125,-836.787109375,330.2615051269531,1660.382080078125,-1027.5628662109375,344.78387451171875,1675.8057861328125,-1019.5552368164062,353.8316345214844,1655.60595703125,-1257.5830078125,298.68634033203125,1764.9361572265625,1149.931640625,497.4190673828125,1768.3408203125,948.2799072265625,479.2666931152344,1736.9571533203125,741.7586059570312,483.3667907714844,1699.6080322265625,-230.22377014160156,559.1751708984375,1507.3756103515625,-416.5237731933594,531.9072265625,1582.0003662109375,-609.7326049804688,544.1102905273438,1618.399169921875,-616.7208862304688,565.5606079101562,1551.2803955078125,-827.4486083984375,513.3463745117188,1657.1591796875,-807.4403686523438,552.3952026367188,1593.0982666015625,-995.8338623046875,530.790771484375,1653.4195556640625,-1206.119140625,530.0992431640625,1685.8714599609375,1544.22216796875,685.22509765625,1892.774169921875,1342.6400146484375,684.9049072265625,1838.34716796875,1138.11181640625,682.3477783203125,1787.5665283203125,-1206.8038330078125,706.3460693359375,1701.361083984375,1743.817138671875,869.8936157226562,1952.0675048828125,1538.757568359375,867.044921875,1919.2705078125,2414.391357421875,-1948.5203857421875,2120.2060546875,2211.0751953125,-1947.6064453125,2122.00927734375,2007.97900390625,-1946.69287109375,2116.491943359375,1805.4573974609375,-1945.7818603515625,2108.906005859375,1603.4295654296875,-1944.87353515625,2105.9892578125,1401.37060546875,-1943.966064453125,2100.2314453125,1199.257568359375,-1943.060546875,2088.0673828125,996.9057006835938,-1942.1519775390625,2074.0537109375,795.2716674804688,-1941.2235107421875,2050.893798828125,595.398681640625,-1940.3370361328125,2015.2315673828125,395.56243896484375,-1939.428466796875,1976.1544189453125,192.13104248046875,-1938.51025390625,1949.8109130859375,-18.27080535888672,-1937.562744140625,1928.806640625,-229.07632446289062,-1936.613037109375,1913.5338134765625,-437.3107604980469,-1935.677001953125,1911.564453125,-631.4791259765625,-1934.8045654296875,1910.4639892578125,-823.7438354492188,-1933.9400634765625,1905.980224609375,-1016.500732421875,-1933.0693359375,1887.8353271484375,-1209.30322265625,-1932.194091796875,1859.9156494140625,-1403.3543701171875,-1931.3133544921875,1832.98681640625,-1600.515869140625,-1930.42626953125,1825.5614013671875,2410.743896484375,-1736.6768798828125,2115.59619140625,-1600.031005859375,-1724.6435546875,1822.9598388671875,2407.112548828125,-1525.8232421875,2111.731201171875,1332.1796875,-1398.42822265625,2080.291748046875,1124.313720703125,-1422.908203125,2050.466064453125,-1599.541015625,-1517.299560546875,1812.8472900390625,2403.48828125,-1315.1866455078125,2128.752197265625,2035.85888671875,-1405.2979736328125,2137.636962890625,1836.20654296875,-1404.0799560546875,2118.38232421875,1111.30126953125,-1241.5804443359375,2023.2589111328125,901.3419799804688,-1261.6048583984375,1986.1112060546875,256.977294921875,-1360.67724609375,1883.26806640625,29.300216674804688,-1349.8037109375,1855.525146484375,-204.70608520507812,-1349.4801025390625,1823.0543212890625,-1599.0533447265625,-1311.2642822265625,1795.871337890625,2399.873046875,-1104.69921875,2150.383056640625,1845.5653076171875,-1183.6256103515625,2132.402587890625,1649.4508056640625,-1164.5108642578125,2105.909912109375,1470.4833984375,-1136.7144775390625,2070.3115234375,1292.89697265625,-1118.97998046875,2009.975830078125,884.1707153320312,-1074.484619140625,1955.3143310546875,676.3934326171875,-1086.1063232421875,1917.6517333984375,-229.0452880859375,-1152.542724609375,1811.91015625,-1027.79248046875,-1104.227783203125,1728.1124267578125,-1598.568359375,-1106.235595703125,1775.9278564453125,2396.24169921875,-893.6282958984375,2155.374267578125,1292.7578125,-916.5474243164062,2011.1573486328125,1096.5035400390625,-918.1649169921875,1933.6158447265625,890.8153076171875,-937.8180541992188,1885.636474609375,687.1360473632812,-948.75830078125,1839.037109375,67.8855209350586,-874.0457763671875,1739.9591064453125,-269.0963439941406,-874.0655517578125,1716.98193359375,-1064.5863037109375,-882.9979858398438,1713.06396484375,-1598.085693359375,-901.4136352539062,1750.764404296875,2392.62060546875,-683.1805419921875,2149.72119140625,669.4427490234375,-778.1761474609375,1870.6619873046875,487.6720275878906,-766.2713623046875,1776.7216796875,294.48828125,-771.1866455078125,1732.4730224609375,106.87358856201172,-664.11767578125,1687.1087646484375,-60.80624771118164,-686.6660766601562,1609.4613037109375,-230.62197875976562,-629.8198852539062,1591.700439453125,-863.7429809570312,-684.5293579101562,1645.3245849609375,-1062.877197265625,-685.9013671875,1643.420166015625,-1597.60107421875,-695.423583984375,1722.1634521484375,2389.013916015625,-473.54730224609375,2138.81396484375,-36.533111572265625,-481.1796875,1599.2802734375,-224.4221954345703,-470.3696594238281,1565.25732421875,-666.2060546875,-468.7917785644531,1599.7376708984375,-866.2898559570312,-472.1056213378906,1631.886962890625,-1597.1068115234375,-486.22625732421875,1702.8470458984375,2385.41796875,-264.52532958984375,2122.026611328125,154.44627380371094,-261.63092041015625,1585.4061279296875,-43.96198272705078,-265.626953125,1583.2734375,-227.81988525390625,-264.2970275878906,1550.724365234375,-406.62420654296875,-252.84286499023438,1619.55517578125,-664.2520141601562,-257.158203125,1589.9105224609375,-875.57275390625,-273.9467468261719,1624.579833984375,-1596.6099853515625,-275.75762939453125,1715.6708984375,2381.838623046875,-56.49400329589844,2100.15625,566.7034912109375,-42.7166862487793,1633.0006103515625,363.2667541503906,-49.397422790527344,1597.2493896484375,147.5037078857422,-71.0792007446289,1594.6475830078125,-68.6067886352539,-54.33915710449219,1608.09326171875,-485.6075744628906,-63.96940231323242,1598.0460205078125,-870.7667846679688,-73.97653198242188,1654.09326171875,-1052.8485107421875,-64.64411163330078,1640.27783203125,-1596.1220703125,-68.98798370361328,1752.683349609375,2378.2587890625,151.56114196777344,2086.84521484375,963.2272338867188,184.9617156982422,1717.755126953125,761.8041381835938,164.64393615722656,1684.8360595703125,557.4927978515625,153.65707397460938,1659.4427490234375,101.89611053466797,119.85671997070312,1582.1158447265625,-72.35726928710938,114.27721405029297,1606.5562744140625,-252.12213134765625,112.31216430664062,1606.734130859375,-466.724609375,119.13893127441406,1606.626953125,-1065.354736328125,119.03828430175781,1699.357177734375,-1595.636962890625,135.62147521972656,1789.821044921875,2374.729248046875,356.71612548828125,2083.308349609375,757.1807250976562,377.531494140625,1571.204345703125,557.013671875,370.15875244140625,1537.2349853515625,354.943115234375,363.2373962402344,1504.7239990234375,118.99606323242188,317.3493347167969,1604.63525390625,-37.95683288574219,355.2065734863281,1509.454345703125,-209.56716918945312,303.88555908203125,1618.2646484375,-398.9039306640625,302.1808166503906,1613.3062744140625,-629.8267822265625,334.2079772949219,1621.2041015625,-830.1203002929688,351.19659423828125,1643.8739013671875,-1073.8304443359375,305.8282165527344,1729.6473388671875,-1212.368896484375,349.3578186035156,1656.193359375,-1595.165283203125,336.7664794921875,1813.95703125,2371.44775390625,547.4319458007812,2091.37890625,1156.7451171875,528.8143310546875,1695.8582763671875,957.5735473632812,545.7847900390625,1628.158447265625,757.1504516601562,562.5792236328125,1584.855712890625,-223.45718383789062,522.7532348632812,1566.387939453125,-423.80548095703125,560.7427978515625,1509.562255859375,-633.79833984375,487.39117431640625,1657.8388671875,-803.6729125976562,532.0357055664062,1636.50048828125,-996.2938232421875,536.111083984375,1634.8997802734375,-1263.9659423828125,474.43475341796875,1791.5233154296875,-1594.7322998046875,521.2134399414062,1827.4991455078125,2368.2265625,734.67333984375,2108.825439453125,1550.1485595703125,699.9121704101562,1843.9522705078125,1349.7418212890625,700.5365600585938,1802.0693359375,1152.1571044921875,712.57666015625,1736.811767578125,-990.47705078125,713.31494140625,1661.0343017578125,-1260.4552001953125,652.9463500976562,1780.9786376953125,-1428.2061767578125,679.9551391601562,1807.899169921875,-1594.2935791015625,707.3585205078125,1821.1871337890625,2365.001953125,922.0672607421875,2128.68115234375,1744.69921875,880.8604736328125,1930.0390625,1546.7772216796875,882.288818359375,1888.289306640625,-1593.8446044921875,897.3803100585938,1807.5660400390625,2361.762451171875,1110.37744140625,2141.29296875,1750.640625,1051.140380859375,1972.178466796875,-1593.38818359375,1090.6539306640625,1801.03369140625,2358.50439453125,1299.732421875,2144.9033203125,-1592.9322509765625,1283.885009765625,1796.7662353515625,2355.22509765625,1490.232177734375,2142.649169921875,-1592.4783935546875,1476.247802734375,1790.4979248046875,2351.92822265625,1681.9495849609375,2127.24072265625,2152.92236328125,1681.240966796875,2098.96337890625,1955.873779296875,1680.533935546875,2052.60595703125,1756.6505126953125,1679.8280029296875,2021.4913330078125,1555.9969482421875,1679.1190185546875,2006.3675537109375,1356.139892578125,1678.404052734375,1985.8541259765625,1157.2086181640625,1677.689697265625,1957.1451416015625,959.4077758789062,1676.9791259765625,1923.9073486328125,763.3624267578125,1676.275390625,1884.2960205078125,566.2616577148438,1675.573486328125,1853.9822998046875,369.15972900390625,1674.868408203125,1825.7144775390625,170.25424194335938,1674.1641845703125,1806.2281494140625,-34.39728927612305,1673.433837890625,1792.50146484375,-241.39263916015625,1672.6893310546875,1790.53125,-447.3729248046875,1671.955078125,1785.3988037109375,-636.5695190429688,1671.282470703125,1774.1357421875,-825.1199951171875,1670.611328125,1772.7750244140625,-1014.491455078125,1669.9334716796875,1778.235107421875,-1205.32373046875,1669.253662109375,1786.3619384765625,-1397.884765625,1668.5672607421875,1785.5780029296875,-1592.0260009765625,1667.875244140625,1785.3687744140625,1111.17919921875,-1435.4708251953125,2059.99072265625,1854.622802734375,-1396.1864013671875,2131.2373046875,1100.569580078125,-1243.6407470703125,2033.735595703125,894.1190185546875,-1271.61181640625,1985.8359375,26.800630569458008,-1360.8914794921875,1870.73876953125,-202.96697998046875,-1369.412353515625,1846.8609619140625,1841.5594482421875,-1179.6009521484375,2123.23876953125,1652.9901123046875,-1167.4951171875,2112.4423828125,1470.989990234375,-1143.7156982421875,2087.236328125,1298.548583984375,-1119.858154296875,2048.5732421875,884.88818359375,-1073.5321044921875,1959.7470703125,1295.246337890625,-904.0452270507812,1989.7640380859375,1093.2705078125,-928.7202758789062,1957.0919189453125,893.0773315429688,-944.3883666992188,1917.193603515625,686.155029296875,-967.0240478515625,1883.812744140625,-1029.136474609375,-923.1095581054688,1648.558837890625,679.0808715820312,-748.6704711914062,1825.827880859375,472.8890380859375,-797.0994873046875,1809.8114013671875,129.3717041015625,-682.7047119140625,1648.05029296875,-71.56818389892578,-662.2090454101562,1645.6826171875,-71.4224624633789,-662.2973022460938,1645.4248046875,-238.53211975097656,-630.8051147460938,1611.9908447265625,-229.0420684814453,-632.4744262695312,1623.2890625,-840.6488647460938,-716.0386962890625,1582.1285400390625,-1033.5367431640625,-723.4017944335938,1617.27294921875,-27.313753128051758,-484.6630859375,1580.8211669921875,-216.2796630859375,-461.61492919921875,1583.6134033203125,-660.512451171875,-493.3456726074219,1549.6451416015625,-855.0730590820312,-503.0226135253906,1568.576416015625,164.780029296875,-271.0435485839844,1564.4813232421875,-38.926265716552734,-274.4191589355469,1561.880126953125,-52.07283020019531,-248.7882080078125,1612.81689453125,-44.557220458984375,-269.364501953125,1585.4521484375,-225.88670349121094,-264.3791809082031,1567.233642578125,-217.36920166015625,-238.69699096679688,1614.1734619140625,-454.4173278808594,-277.33148193359375,1545.2613525390625,-436.66107177734375,-254.8063201904297,1589.90283203125,-660.8185424804688,-285.90435791015625,1533.77294921875,565.3657836914062,-45.603431701660156,1630.77587890625,364.2709655761719,-49.6772575378418,1583.087158203125,161.02487182617188,-52.58172607421875,1558.386474609375,115.67864990234375,-66.16270446777344,1577.16259765625,156.66403198242188,-67.96028900146484,1580.1376953125,-57.65717697143555,-62.65861511230469,1587.7479248046875,-461.1363220214844,-64.97245788574219,1625.80029296875,-861.8878784179688,-69.91209411621094,1633.6119384765625,-1061.40869140625,-73.7566909790039,1670.2738037109375,759.8660888671875,169.17945861816406,1688.5240478515625,555.9228515625,155.7542724609375,1646.702880859375,144.00115966796875,133.1961212158203,1576.0814208984375,96.83154296875,117.5593490600586,1594.345458984375,-76.87361145019531,115.09669494628906,1610.6766357421875,-252.84857177734375,116.45846557617188,1618.383544921875,-448.6706848144531,116.92544555664062,1625.8572998046875,-1042.2861328125,141.60284423828125,1654.5113525390625,746.6461181640625,298.85430908203125,1688.689453125,549.6956176757812,300.4219970703125,1623.6661376953125,351.0155334472656,306.0384216308594,1571.8441162109375,135.82554626464844,317.1307373046875,1558.865478515625,150.04310607910156,359.58013916015625,1497.850830078125,-65.21214294433594,309.2357177734375,1604.74755859375,-245.88571166992188,311.4403076171875,1609.7591552734375,-263.4823303222656,376.94732666015625,1574.95166015625,-230.5220947265625,353.1661071777344,1531.2021484375,-402.5167541503906,312.32501220703125,1628.8408203125,-408.51593017578125,322.54541015625,1596.37939453125,-635.7869873046875,309.3758850097656,1654.495849609375,-838.382568359375,327.8453674316406,1663.0662841796875,-1029.2647705078125,341.57867431640625,1679.5743408203125,-1020.9933471679688,350.33868408203125,1659.858154296875,-1260.094482421875,295.61785888671875,1769.6810302734375,1148.7730712890625,494.4111022949219,1775.07763671875,947.3921508789062,475.94732666015625,1742.31787109375,740.9081420898438,481.114990234375,1702.862060546875,-231.61488342285156,557.8028564453125,1511.58740234375,-415.4623107910156,530.0988159179688,1586.0030517578125,-607.9826049804688,542.1175537109375,1622.5152587890625,-615.0015258789062,564.8850708007812,1553.5606689453125,-828.7120361328125,510.4571838378906,1660.1558837890625,-806.4559936523438,550.9738159179688,1596.040283203125,-995.3449096679688,527.5985107421875,1658.08056640625,-1208.857421875,526.964111328125,1690.8643798828125,1542.5986328125,681.41845703125,1903.837646484375,1341.0826416015625,681.2322998046875,1847.7725830078125,1136.782470703125,678.7388916015625,1795.1822509765625,-1210.077392578125,702.926025390625,1707.5145263671875,1742.7421875,865.4310913085938,1964.462158203125,1537.4566650390625,862.6775512695312,1931.6109619140625,2414.391357421875,-1948.5203857421875,2138.822265625,2211.0302734375,-1947.6064453125,2140.585693359375,2007.898193359375,-1946.69287109375,2134.431396484375,1805.3450927734375,-1945.7818603515625,2126.005126953125,1603.27294921875,-1944.87353515625,2122.73583984375,1401.1546630859375,-1943.966064453125,2117.24755859375,1198.9393310546875,-1943.060546875,2105.669677734375,996.526123046875,-1942.1519775390625,2091.70703125,794.858642578125,-1941.221435546875,2068.483154296875,595.1129760742188,-1940.3370361328125,2032.281982421875,395.426025390625,-1939.428466796875,1993.17724609375,192.02281188964844,-1938.51025390625,1967.34130859375,-18.399845123291016,-1937.562744140625,1946.63525390625,-229.2135772705078,-1936.613037109375,1930.4227294921875,-437.4996032714844,-1935.677001953125,1927.57275390625,-631.7211303710938,-1934.8045654296875,1926.5279541015625,-824.01904296875,-1933.9400634765625,1921.3782958984375,-1016.7243041992188,-1933.0693359375,1901.2459716796875,-1209.3946533203125,-1932.194091796875,1871.2642822265625,-1403.3248291015625,-1931.3133544921875,1842.5626220703125,-1600.515869140625,-1930.42626953125,1834.2989501953125,2410.743896484375,-1736.6898193359375,2133.886962890625,2159.474609375,-1752.537353515625,2136.551513671875,1953.4130859375,-1752.137939453125,2128.608642578125,1769.86962890625,-1737.913818359375,2118.993408203125,1603.124755859375,-1710.490966796875,2116.851318359375,1446.140869140625,-1677.0889892578125,2110.396240234375,1274.5914306640625,-1659.03173828125,2102.921142578125,1057.229248046875,-1679.240966796875,2088.05712890625,824.5935668945312,-1704.1890869140625,2052.62744140625,589.8216552734375,-1726.5838623046875,2000.4796142578125,355.2390441894531,-1744.190673828125,1964.3597412109375,132.57452392578125,-1751.2296142578125,1943.5433349609375,-81.29888153076172,-1747.0968017578125,1931.9027099609375,-285.1009216308594,-1746.60498046875,1920.214111328125,-478.23516845703125,-1745.641357421875,1912.1802978515625,-654.2967529296875,-1739.575439453125,1905.6922607421875,-832.35205078125,-1731.0242919921875,1898.4781494140625,-1015.2904052734375,-1723.1976318359375,1878.7252197265625,-1203.2607421875,-1718.726318359375,1854.4888916015625,-1394.375,-1718.636474609375,1831.2476806640625,-1600.031005859375,-1724.6201171875,1829.97509765625,2407.112548828125,-1525.8546142578125,2129.684326171875,2114.47509765625,-1565.623779296875,2129.93798828125,1905.0146484375,-1569.5955810546875,2129.146728515625,1736.4600830078125,-1544.8563232421875,2124.47216796875,1589.398193359375,-1501.9425048828125,2118.82177734375,1462.007080078125,-1445.7149658203125,2109.6728515625,1344.65576171875,-1387.5733642578125,2099.3466796875,1136.482177734375,-1413.894287109375,2069.3369140625,858.5988159179688,-1484.2879638671875,2030.2064208984375,593.4630126953125,-1521.1480712890625,1976.507080078125,312.275146484375,-1559.2840576171875,1938.924560546875,69.93684387207031,-1568.36865234375,1917.9996337890625,-145.42408752441406,-1561.3892822265625,1912.0313720703125,-342.42095947265625,-1565.7796630859375,1897.06396484375,-518.2382202148438,-1561.1708984375,1883.532958984375,-677.3124389648438,-1548.234375,1875.462890625,-845.3875122070312,-1531.97607421875,1866.6839599609375,-1022.56005859375,-1518.0654296875,1848.0797119140625,-1206.896728515625,-1512.250244140625,1838.6962890625,-1396.7633056640625,-1513.336181640625,1827.565185546875,-1599.541015625,-1517.29931640625,1818.3697509765625,2403.4892578125,-1315.297119140625,2147.99072265625,2021.6502685546875,-1413.4195556640625,2157.109375,1822.0526123046875,-1412.654541015625,2138.67578125,1686.6336669921875,-1366.00537109375,2141.09765625,1544.8302001953125,-1314.6669921875,2121.01611328125,1403.2548828125,-1266.171630859375,2099.18408203125,1252.5244140625,-1239.4862060546875,2074.62451171875,1122.517333984375,-1234.8731689453125,2042.4886474609375,912.0310668945312,-1256.634033203125,2005.06396484375,601.2587280273438,-1321.0054931640625,1955.640869140625,240.94430541992188,-1366.4989013671875,1902.7777099609375,8.23162841796875,-1355.344482421875,1878.26904296875,-229.23507690429688,-1354.4049072265625,1845.5289306640625,-402.9381408691406,-1382.6878662109375,1875.1368408203125,-551.5985717773438,-1368.538818359375,1861.004638671875,-691.8680419921875,-1347.160400390625,1842.532470703125,-853.97802734375,-1324.4732666015625,1822.8802490234375,-1035.9215087890625,-1303.3365478515625,1809.1873779296875,-1218.9722900390625,-1300.33935546875,1812.0948486328125,-1402.991455078125,-1305.356201171875,1807.0240478515625,-1599.0533447265625,-1311.3009033203125,1799.4945068359375,2399.87646484375,-1104.90576171875,2170.75048828125,2083.53369140625,-1153.2882080078125,2166.043212890625,1832.9013671875,-1190.5198974609375,2150.904296875,1636.8006591796875,-1170.639404296875,2123.897216796875,1459.8248291015625,-1140.4654541015625,2085.87841796875,1284.182861328125,-1121.177978515625,2023.107177734375,1160.8592529296875,-1091.936767578125,2021.189697265625,1003.713134765625,-1091.372802734375,1981.2318115234375,893.532470703125,-1071.6365966796875,1973.6861572265625,684.9022216796875,-1084.6898193359375,1935.2088623046875,267.5107727050781,-1154.0089111328125,1868.5394287109375,6.989162445068359,-1118.1683349609375,1837.248046875,-256.583740234375,-1159.109619140625,1837.06396484375,-417.7076110839844,-1171.086669921875,1841.8017578125,-550.7300415039062,-1158.68017578125,1817.2911376953125,-690.2959594726562,-1143.03076171875,1781.0618896484375,-849.6316528320312,-1124.230224609375,1748.95556640625,-1029.713134765625,-1104.26416015625,1732.90185546875,-1230.2685546875,-1091.59326171875,1764.9993896484375,-1409.8878173828125,-1098.535400390625,1775.0111083984375,-1598.568359375,-1106.27783203125,1778.2225341796875,2396.2451171875,-893.8321533203125,2175.331298828125,2124.200439453125,-910.7940673828125,2163.364501953125,1889.5682373046875,-917.379150390625,2143.209228515625,1681.5257568359375,-910.1159057617188,2108.4755859375,1486.97509765625,-899.13916015625,2056.473388671875,1285.3365478515625,-918.4578857421875,2022.7047119140625,1088.6011962890625,-920.8859252929688,1944.7589111328125,881.861572265625,-942.2371826171875,1897.1749267578125,676.9286499023438,-954.8211669921875,1851.6865234375,502.2906188964844,-983.2685546875,1861.2239990234375,265.46160888671875,-955.9180908203125,1804.5814208984375,53.30527114868164,-871.706298828125,1755.4842529296875,-136.9113006591797,-871.6106567382812,1752.5830078125,-271.8981628417969,-871.1533203125,1730.350830078125,-509.1921081542969,-929.5098266601562,1742.1278076171875,-672.2607421875,-934.8240356445312,1692.2950439453125,-843.962890625,-928.99267578125,1659.4710693359375,-1066.115966796875,-882.4264526367188,1715.7423095703125,-1242.8310546875,-885.9954833984375,1713.62158203125,-1417.726806640625,-892.8919677734375,1733.2235107421875,-1598.085693359375,-901.4403076171875,1752.6690673828125,2392.62451171875,-683.3909912109375,2169.722900390625,2142.543212890625,-688.0623168945312,2154.477294921875,1918.3231201171875,-687.5147705078125,2122.56494140625,1710.7537841796875,-682.3521728515625,2067.414306640625,1512.7850341796875,-678.084228515625,2001.4490966796875,1316.5994873046875,-680.9932861328125,1936.275634765625,1112.5223388671875,-693.8997802734375,1884.907470703125,893.7677612304688,-714.9058227539062,1856.970703125,658.6680908203125,-787.2589111328125,1886.113037109375,477.912109375,-774.5222778320312,1788.9879150390625,285.99383544921875,-778.2477416992188,1743.2186279296875,99.90375518798828,-662.3587646484375,1695.7918701171875,-65.7897720336914,-685.7341918945312,1616.4332275390625,-230.37350463867188,-626.3834228515625,1594.7239990234375,-463.42974853515625,-699.5958862304688,1641.802001953125,-655.2676391601562,-716.7306518554688,1611.599365234375,-865.7846069335938,-682.8817749023438,1650.553466796875,-1064.4267578125,-684.9495239257812,1646.55810546875,-1249.41650390625,-678.6074829101562,1691.2113037109375,-1421.7689208984375,-687.2806396484375,1704.998291015625,-1597.60107421875,-695.4360961914062,1724.5621337890625,2389.01806640625,-473.787841796875,2158.34033203125,2149.0498046875,-476.6575622558594,2137.980712890625,1932.7315673828125,-473.2542724609375,2089.9990234375,1726.0013427734375,-469.77606201171875,2023.17529296875,1527.04736328125,-466.4695739746094,1952.4071044921875,1331.6318359375,-466.7117919921875,1885.6461181640625,1129.55712890625,-470.9355773925781,1839.5491943359375,919.9773559570312,-482.1375427246094,1804.66943359375,709.619873046875,-498.3754577636719,1779.494873046875,516.947509765625,-511.9040222167969,1729.8675537109375,337.2440490722656,-508.427978515625,1662.355712890625,152.07723999023438,-486.60784912109375,1622.623779296875,-38.16548156738281,-480.6101989746094,1602.2686767578125,-222.86944580078125,-468.9552001953125,1569.32861328125,-450.5975341796875,-484.5294189453125,1568.7052001953125,-667.3050537109375,-466.7561950683594,1606.0009765625,-867.978515625,-470.29669189453125,1638.2816162109375,-1069.322509765625,-474.49298095703125,1663.4945068359375,-1248.3602294921875,-476.3121032714844,1676.2198486328125,-1420.590087890625,-480.83709716796875,1688.0611572265625,-1597.1068115234375,-486.2554016113281,1705.9156494140625,2385.42333984375,-264.8402404785156,2139.82470703125,2153.784423828125,-268.9123229980469,2107.888671875,1941.3861083984375,-266.498779296875,2049.282470703125,1735.031982421875,-262.34271240234375,1985.48583984375,1534.9837646484375,-257.9402160644531,1915.3587646484375,1340.9169921875,-255.6369171142578,1844.8475341796875,1144.2750244140625,-255.0867919921875,1794.06787109375,942.5841064453125,-257.9674072265625,1753.149169921875,739.4313354492188,-264.8900146484375,1717.8426513671875,544.986328125,-273.45751953125,1661.494384765625,350.8749694824219,-275.0720520019531,1625.098876953125,151.72071838378906,-260.4110107421875,1590.5784912109375,-46.13902282714844,-264.3558044433594,1587.294921875,-227.0731658935547,-263.3388977050781,1553.045654296875,-404.7784423828125,-251.10121154785156,1624.302734375,-664.9810180664062,-255.1437530517578,1595.7841796875,-877.6513061523438,-273.7493896484375,1630.124267578125,-1068.4056396484375,-275.6169738769531,1665.4739990234375,-1245.48193359375,-276.24078369140625,1683.8236083984375,-1419.38623046875,-277.6671447753906,1699.2879638671875,-1596.6099853515625,-275.8015441894531,1719.7099609375,2381.84619140625,-56.922203063964844,2116.71142578125,2156.477294921875,-61.557472229003906,2077.16259765625,1949.436767578125,-63.28998565673828,2006.32763671875,1743.3626708984375,-59.827022552490234,1947.445556640625,1541.896240234375,-54.43360137939453,1885.693359375,1346.507080078125,-49.1554069519043,1815.869384765625,1151.6051025390625,-43.343753814697266,1760.86328125,954.4773559570312,-36.57964324951172,1723.6357421875,758.420166015625,-38.94005584716797,1684.25390625,565.3380126953125,-40.29642105102539,1637.8309326171875,361.3802795410156,-47.4112663269043,1602.3770751953125,144.46168518066406,-71.04541778564453,1600.2286376953125,-70.83924102783203,-53.63946533203125,1611.5657958984375,-247.76039123535156,-59.3836669921875,1616.8297119140625,-484.3044738769531,-63.31241226196289,1601.3812255859375,-676.0949096679688,-70.3551254272461,1619.2979736328125,-872.140380859375,-74.1423568725586,1657.77001953125,-1054.43310546875,-66.22669219970703,1644.091796875,-1244.857177734375,-78.54637145996094,1707.39306640625,-1419.7410888671875,-79.73253631591797,1737.28466796875,-1596.1220703125,-69.04293823242188,1757.377685546875,2378.26708984375,151.07395935058594,2102.5947265625,2158.20947265625,143.3446044921875,2056.66455078125,1954.739501953125,138.7072296142578,1982.646728515625,1750.435302734375,138.78329467773438,1922.4246826171875,1546.761474609375,142.99365234375,1871.29296875,1347.4951171875,149.8394775390625,1815.8297119140625,1152.497802734375,159.71485900878906,1763.48291015625,962.3682250976562,188.57977294921875,1723.064697265625,761.3278198242188,166.9516143798828,1688.622314453125,556.8864135742188,155.60433959960938,1662.8992919921875,356.24761962890625,138.5051727294922,1616.2542724609375,97.76824188232422,119.18164825439453,1587.3759765625,-75.4371337890625,112.9703140258789,1612.872314453125,-254.26589965820312,110.42750549316406,1613.7303466796875,-464.98895263671875,117.57207489013672,1609.9478759765625,-660.7952270507812,127.04727935791016,1635.471435546875,-853.0647583007812,131.1612548828125,1657.640380859375,-1067.4521484375,116.77666473388672,1703.5748291015625,-1251.342041015625,111.9482421875,1735.55615234375,-1423.954833984375,115.85700225830078,1773.5340576171875,-1595.636962890625,135.4834442138672,1795.3385009765625,2374.73779296875,356.2255554199219,2098.25341796875,2158.93994140625,343.1512451171875,2054.11328125,1957.6710205078125,335.2652587890625,1980.360107421875,1752.6180419921875,332.4620361328125,1927.08203125,1547.116943359375,333.42205810546875,1885.0042724609375,1345.3250732421875,337.56756591796875,1834.604248046875,1150.013427734375,341.4035949707031,1774.7708740234375,955.7274169921875,338.0163879394531,1727.4112548828125,757.1807250976562,377.531494140625,1571.204345703125,556.4667358398438,369.4805908203125,1537.8990478515625,353.27923583984375,361.47943115234375,1506.56591796875,113.38870239257812,314.84521484375,1611.9871826171875,-41.19203186035156,353.6883544921875,1514.447265625,-210.359375,301.86895751953125,1623.6748046875,-398.4160461425781,299.48223876953125,1617.5286865234375,-628.9095458984375,331.1388854980469,1624.2576904296875,-831.3628540039062,348.0312805175781,1647.7783203125,-1076.21044921875,302.2724914550781,1734.2882080078125,-1214.146728515625,346.1019592285156,1660.6666259765625,-1428.4080810546875,309.1294250488281,1798.614990234375,-1595.165283203125,336.7230529785156,1818.9329833984375,2371.45556640625,546.9906005859375,2105.47998046875,2159.885009765625,524.820068359375,2058.16796875,1958.7874755859375,511.8619689941406,1990.0299072265625,1752.0499267578125,506.0270690917969,1944.8883056640625,1545.04248046875,505.7122802734375,1903.73486328125,1343.2176513671875,504.16693115234375,1847.4112548828125,1155.590576171875,525.57568359375,1701.9268798828125,956.7164306640625,543.5336303710938,1631.57666015625,756.544921875,561.5570068359375,1586.946533203125,554.8416137695312,550.8155517578125,1562.7896728515625,352.5814514160156,542.439697265625,1538.3878173828125,155.9781036376953,544.7169189453125,1530.1138916015625,-36.11489486694336,553.0730590820312,1523.6671142578125,-224.1990966796875,520.0941162109375,1571.585693359375,-423.1854553222656,559.4310302734375,1512.5982666015625,-634.2993774414062,483.7997131347656,1661.94921875,-802.9529418945312,529.3917236328125,1640.724609375,-995.8428344726562,533.9767456054688,1638.6392822265625,-1266.961181640625,471.8834228515625,1796.778564453125,-1436.716796875,487.9447937011719,1817.7537841796875,-1594.7322998046875,521.244384765625,1831.7923583984375,2368.23291015625,734.3037109375,2122.2431640625,2160.7138671875,701.9497680664062,2072.751953125,1958.1143798828125,682.9180297851562,2015.1868896484375,1749.17431640625,678.4110107421875,1968.1092529296875,1548.3521728515625,696.4337768554688,1854.4942626953125,1347.8583984375,696.906494140625,1812.1761474609375,1150.4866943359375,709.097900390625,1745.4765625,953.3663940429688,725.1124267578125,1677.5013427734375,753.5531005859375,731.0675048828125,1639.1258544921875,553.1064453125,728.6765747070312,1606.4898681640625,353.4847717285156,727.554931640625,1584.56787109375,159.2923126220703,733.0768432617188,1570.568359375,-32.47206497192383,740.77197265625,1552.10888671875,-229.36114501953125,743.575927734375,1553.9248046875,-426.4046630859375,746.7149658203125,1549.291748046875,-619.208251953125,745.4021606445312,1580.896240234375,-809.429443359375,728.8563232421875,1622.4708251953125,-990.1495971679688,710.256591796875,1666.1739501953125,-1264.080078125,650.7269897460938,1786.7958984375,-1431.5943603515625,678.568359375,1813.4158935546875,-1594.2935791015625,707.4029541015625,1824.4932861328125,2365.007080078125,921.7738037109375,2141.4033203125,2159.11767578125,881.2376098632812,2093.822021484375,1960.4432373046875,855.5502319335938,2032.73046875,1743.7200927734375,876.760009765625,1942.0478515625,1545.5657958984375,878.4857788085938,1899.8114013671875,1347.7818603515625,889.8405151367188,1831.755859375,1150.19287109375,898.20849609375,1771.6234130859375,952.0948486328125,904.9195556640625,1721.72314453125,752.9591064453125,907.6953125,1684.222412109375,553.689697265625,908.2140502929688,1653.9730224609375,356.11993408203125,911.1708374023438,1632.2442626953125,161.6247100830078,916.1824340820312,1619.2890625,-34.65254211425781,923.014892578125,1602.1744384765625,-232.52474975585938,925.8680419921875,1597.143310546875,-431.844482421875,921.9815063476562,1618.205810546875,-621.186279296875,917.1681518554688,1646.278076171875,-811.7711181640625,908.758544921875,1672.619873046875,-1006.79248046875,896.195556640625,1688.343017578125,-1211.562744140625,885.3299560546875,1712.892578125,-1407.398193359375,884.2791748046875,1772.4769287109375,-1593.8446044921875,897.4000244140625,1810.61328125,2361.764892578125,1110.2301025390625,2152.468994140625,2153.8046875,1070.306396484375,2106.510498046875,1956.6162109375,1044.546630859375,2043.9486083984375,1750.24462890625,1046.0224609375,1984.6455078125,1545.27978515625,1069.2110595703125,1919.466796875,1348.5933837890625,1080.1864013671875,1856.185791015625,1151.609375,1086.1834716796875,1803.8812255859375,953.9530029296875,1088.1929931640625,1762.99169921875,756.0464477539062,1088.5257568359375,1728.36474609375,557.162353515625,1089.2239990234375,1704.92822265625,359.52166748046875,1093.514892578125,1682.859130859375,162.58839416503906,1097.3228759765625,1672.7010498046875,-37.158721923828125,1100.441650390625,1665.3658447265625,-237.7346649169922,1100.381591796875,1669.199462890625,-438.5,1098.019287109375,1680.0067138671875,-627.1707153320312,1093.490234375,1694.96240234375,-817.0133666992188,1088.3106689453125,1705.0738525390625,-1009.939453125,1082.4632568359375,1712.7115478515625,-1205.4808349609375,1079.3846435546875,1731.7506103515625,-1397.931396484375,1080.6202392578125,1771.7578125,-1593.38818359375,1090.6646728515625,1804.01611328125,2358.505615234375,1299.6641845703125,2154.5712890625,2149.1611328125,1268.00048828125,2112.663818359375,1949.6895751953125,1251.4915771484375,2054.736083984375,1746.9166259765625,1253.416259765625,2000.6903076171875,1547.525634765625,1265.056640625,1941.886474609375,1351.122802734375,1274.4892578125,1883.5130615234375,1153.228759765625,1276.231201171875,1848.7481689453125,956.4620971679688,1275.7664794921875,1813.8963623046875,760.2859497070312,1274.4825439453125,1779.46630859375,562.26025390625,1275.110595703125,1755.669921875,363.0352478027344,1278.2474365234375,1737.1075439453125,163.63816833496094,1279.3438720703125,1730.5430908203125,-39.52161407470703,1280.36669921875,1724.344482421875,-242.0188446044922,1280.287353515625,1723.6968994140625,-444.308837890625,1279.288818359375,1725.427734375,-632.558837890625,1275.7056884765625,1732.216064453125,-821.4546508789062,1273.2430419921875,1730.70068359375,-1011.5217895507812,1271.327880859375,1735.6529541015625,-1201.8515625,1271.1058349609375,1754.960693359375,-1392.090576171875,1275.304443359375,1777.7530517578125,-1592.9322509765625,1283.8968505859375,1799.979248046875,2355.225830078125,1490.1763916015625,2152.284423828125,2149.413818359375,1468.020263671875,2111.739013671875,1949.7645263671875,1460.6397705078125,2060.465576171875,1748.9359130859375,1460.7218017578125,2020.4852294921875,1548.6715087890625,1464.7332763671875,1985.7662353515625,1351.7818603515625,1469.0032958984375,1940.828125,1154.84130859375,1469.985107421875,1906.1905517578125,958.0975341796875,1467.4715576171875,1876.02001953125,763.3003540039062,1466.38720703125,1838.60595703125,567.92822265625,1467.6890869140625,1806.032470703125,367.6064453125,1470.1356201171875,1786.65771484375,164.60426330566406,1469.4307861328125,1777.25048828125,-40.81418228149414,1467.96435546875,1767.4075927734375,-244.49008178710938,1467.8502197265625,1763.648193359375,-446.4477233886719,1467.3189697265625,1762.6109619140625,-636.2742919921875,1465.3985595703125,1757.0443115234375,-824.41845703125,1464.836181640625,1747.891357421875,-1012.5262451171875,1463.6793212890625,1759.3759765625,-1200.0589599609375,1464.250732421875,1774.1146240234375,-1388.970703125,1468.373291015625,1780.9775390625,-1592.4783935546875,1476.255126953125,1793.716796875,2351.92822265625,1681.9495849609375,2137.517578125,2152.88037109375,1681.240966796875,2109.364990234375,1955.930908203125,1680.533935546875,2062.54150390625,1756.5771484375,1679.8280029296875,2032.2266845703125,1555.7327880859375,1679.1190185546875,2018.6416015625,1355.918701171875,1678.404052734375,1997.3388671875,1157.1114501953125,1677.689697265625,1967.2967529296875,959.44189453125,1676.9791259765625,1932.892578125,763.5039672851562,1676.275390625,1892.4315185546875,566.3661499023438,1675.573486328125,1862.084228515625,369.306396484375,1674.868408203125,1833.128173828125,170.4622039794922,1674.1650390625,1812.09716796875,-34.192588806152344,1673.4345703125,1797.906494140625,-241.24290466308594,1672.6893310546875,1796.6650390625,-447.2459411621094,1671.955078125,1791.010986328125,-636.4359130859375,1671.28271484375,1778.5908203125,-825.0155639648438,1670.6116943359375,1776.4989013671875,-1014.4228515625,1669.9334716796875,1781.6279296875,-1205.2821044921875,1669.253662109375,1789.7806396484375,-1397.8643798828125,1668.5672607421875,1788.8402099609375,-1592.0260009765625,1667.875244140625,1788.4281005859375,1122.193359375,-1427.7208251953125,2078.4619140625,1842.368896484375,-1403.25537109375,2150.708984375,1110.8544921875,-1237.4482421875,2052.061767578125,904.1610717773438,-1267.5362548828125,2004.8021240234375,5.784761428833008,-1367.4078369140625,1895.083984375,-226.7556610107422,-1376.7078857421875,1872.389404296875,1828.13720703125,-1186.9088134765625,2142.547607421875,1641.133544921875,-1172.9571533203125,2129.36767578125,1460.9683837890625,-1147.2801513671875,2102.380126953125,1291.3665771484375,-1121.4683837890625,2060.9794921875,893.9507446289062,-1070.957275390625,1977.2705078125,1287.568115234375,-905.7855834960938,2001.3302001953125,1085.691162109375,-931.4769287109375,1968.2562255859375,884.82421875,-948.81494140625,1929.6416015625,676.3907470703125,-973.9276123046875,1898.57763671875,-1030.8861083984375,-923.18017578125,1652.75732421875,668.4536743164062,-755.8302612304688,1838.69970703125,462.61614990234375,-806.6986083984375,1823.4058837890625,123.31059265136719,-682.0059204101562,1655.9166259765625,-75.73556518554688,-659.6842041015625,1653.0589599609375,-75.46276092529297,-659.8494873046875,1652.5760498046875,-238.73483276367188,-627.378173828125,1615.4915771484375,-228.6127471923828,-628.3434448242188,1628.306884765625,-842.0043334960938,-715.6029052734375,1586.8038330078125,-1034.3277587890625,-723.4207153320312,1620.3319091796875,-29.242694854736328,-484.11553955078125,1584.001220703125,-216.14906311035156,-458.993896484375,1586.0362548828125,-661.467041015625,-492.11480712890625,1554.619873046875,-856.4837646484375,-501.89892578125,1574.0897216796875,162.5944061279297,-270.04864501953125,1568.94189453125,-41.52669906616211,-273.70135498046875,1566.588134765625,-53.69281005859375,-247.72854614257812,1616.1409912109375,-46.759830474853516,-268.4204406738281,1589.4244384765625,-226.154052734375,-262.76617431640625,1569.29296875,-216.71060180664062,-236.53192138671875,1617.7467041015625,-454.1531677246094,-276.3233947753906,1547.8125,-436.2437438964844,-253.0689697265625,1594.1439208984375,-661.2464599609375,-284.7011413574219,1537.7608642578125,563.5704345703125,-43.01271438598633,1636.4686279296875,362.11834716796875,-47.22431182861328,1588.9239501953125,158.59405517578125,-50.60064697265625,1564.1708984375,111.87042236328125,-65.98846435546875,1581.8021240234375,153.43272399902344,-67.52383422851562,1586.1888427734375,-60.8633918762207,-61.446746826171875,1592.54248046875,-458.51123046875,-64.86164093017578,1630.1695556640625,-863.4179077148438,-70.55138397216797,1638.3189697265625,-1062.8367919921875,-74.22246551513672,1673.7005615234375,759.3255004882812,171.82383728027344,1692.7205810546875,554.7828369140625,158.29959106445312,1651.518310546875,140.94760131835938,131.79478454589844,1582.01220703125,92.06866455078125,116.09744262695312,1600.9881591796875,-79.8552017211914,113.98963165283203,1616.6514892578125,-254.76495361328125,115.14067077636719,1624.3133544921875,-447.19940185546875,114.5804214477539,1629.38330078125,-1043.9697265625,139.30349731445312,1658.531494140625,746.405029296875,298.325439453125,1689.3082275390625,549.0569458007812,299.0737609863281,1625.0733642578125,349.8769226074219,304.4361572265625,1573.720703125,133.51170349121094,314.5918884277344,1562.88330078125,146.81285095214844,357.3515930175781,1501.4268798828125,-68.68679809570312,306.95208740234375,1612.267578125,-248.33346557617188,308.4676818847656,1617.3045654296875,-264.11468505859375,374.40228271484375,1579.9110107421875,-232.86508178710938,351.85040283203125,1536.2081298828125,-402.7314453125,309.81787109375,1632.493896484375,-408.4124755859375,319.8735046386719,1601.0589599609375,-636.1845092773438,306.2386169433594,1658.50927734375,-839.9779663085938,325.4292297363281,1665.7506103515625,-1030.9666748046875,338.37347412109375,1683.3431396484375,-1022.4313354492188,346.8456726074219,1664.110595703125,-1262.605712890625,292.54931640625,1774.4256591796875,1147.614501953125,491.4031066894531,1781.8143310546875,946.5042724609375,472.6279296875,1747.6781005859375,740.0577392578125,478.8632507324219,1706.116455078125,-233.00595092773438,556.4305419921875,1515.7989501953125,-414.4008483886719,528.2903442382812,1590.005859375,-606.232666015625,540.124755859375,1626.63134765625,-613.2822265625,564.2095947265625,1555.8409423828125,-829.9754028320312,507.56805419921875,1663.152587890625,-805.4716186523438,549.5524291992188,1598.982177734375,-994.8558349609375,524.4063110351562,1662.7415771484375,-1211.5955810546875,523.8291015625,1695.857177734375,1540.9752197265625,677.6118774414062,1914.9013671875,1339.5255126953125,677.5596923828125,1857.198486328125,1135.4532470703125,675.1299438476562,1802.7982177734375,-1213.350830078125,699.5059814453125,1713.6678466796875,1741.667236328125,860.968505859375,1976.85693359375,1536.155517578125,858.310302734375,1943.9515380859375]"),DiscreteProperty_Points_namespaceObject=__webpack_require__.t(Points_namespaceObject,2),Polys_namespaceObject=JSON.parse("[4,0,21,508,487,4,0,487,488,1,4,0,1,22,21,4,487,508,758,737,4,487,737,738,488,4,737,758,1008,987,4,737,987,988,738,4,987,1008,1258,1237,4,987,1237,1238,988,4,1237,1258,1508,1487,4,1237,1487,1488,1238,4,1487,1508,1758,1737,4,1487,1737,1738,1488,4,1737,1758,2008,1987,4,1737,1987,1988,1738,4,1987,2008,2258,2237,4,1987,2237,2238,1988,4,2237,2258,2508,2487,4,2237,2487,2488,2238,4,2487,2508,2758,2737,4,2487,2737,2738,2488,4,2737,2758,3008,2987,4,2737,2987,2988,2738,4,2987,3008,3258,3237,4,2987,3237,3238,2988,4,3237,3258,3259,3238,4,21,42,510,508,4,21,22,43,42,4,508,510,760,758,4,758,760,1010,1008,4,1008,1010,1260,1258,4,1258,1260,1510,1508,4,1508,1510,1760,1758,4,1758,1760,2010,2008,4,2008,2010,2260,2258,4,2258,2260,2510,2508,4,2508,2510,2760,2758,4,2758,2760,3010,3008,4,3008,3010,3279,3258,4,3258,3279,3280,3259,4,42,63,514,510,4,42,43,64,63,4,510,514,764,760,4,760,764,1014,1010,4,1010,1014,1264,1260,4,1260,1264,1514,1510,4,1510,1514,1764,1760,4,1760,1764,2014,2010,4,2010,2014,2264,2260,4,2260,2264,2514,2510,4,2510,2514,2764,2760,4,2760,2764,3014,3010,4,3010,3014,3300,3279,4,3279,3300,3301,3280,4,63,84,523,514,4,63,64,85,84,4,514,523,773,764,4,764,773,1023,1014,4,1014,1023,1273,1264,4,1264,1273,1523,1514,4,1514,1523,1773,1764,4,1764,1773,2023,2014,4,2014,2023,2273,2264,4,2264,2273,2523,2514,4,2514,2523,2773,2764,4,2764,2773,3023,3014,4,3014,3023,3321,3300,4,3300,3321,3322,3301,4,84,105,533,523,4,84,85,106,105,4,523,533,783,773,4,773,783,1033,1023,4,1023,1033,1283,1273,4,1273,1283,1533,1523,4,1523,1533,1783,1773,4,1773,1783,2033,2023,4,2023,2033,2283,2273,4,2273,2283,2533,2523,4,2523,2533,2783,2773,4,2773,2783,3033,3023,4,3023,3033,3342,3321,4,3321,3342,3343,3322,4,105,126,542,533,4,105,106,127,126,4,533,542,792,783,4,783,792,1042,1033,4,1033,1042,1292,1283,4,1283,1292,1542,1533,4,1533,1542,1792,1783,4,1783,1792,2042,2033,4,2033,2042,2292,2283,4,2283,2292,2542,2533,4,2533,2542,2792,2783,4,2783,2792,3042,3033,4,3033,3042,3363,3342,4,3342,3363,3364,3343,4,126,147,552,542,4,126,127,148,147,4,542,552,802,792,4,792,802,1052,1042,4,1042,1052,1302,1292,4,1292,1302,1552,1542,4,1542,1552,1802,1792,4,1792,1802,2052,2042,4,2042,2052,2302,2292,4,2292,2302,2552,2542,4,2542,2552,2802,2792,4,2792,2802,3052,3042,4,3042,3052,3384,3363,4,3363,3384,3385,3364,4,147,168,558,552,4,147,148,169,168,4,552,558,808,802,4,802,808,1058,1052,4,1052,1058,1308,1302,4,1302,1308,1558,1552,4,1552,1558,1808,1802,4,1802,1808,2058,2052,4,2052,2058,2308,2302,4,2302,2308,2558,2552,4,2552,2558,2808,2802,4,2802,2808,3058,3052,4,3052,3058,3405,3384,4,3384,3405,3406,3385,4,168,189,566,558,4,168,169,190,189,4,558,566,816,808,4,808,816,1066,1058,4,1058,1066,1316,1308,4,1308,1316,1566,1558,4,1558,1566,1816,1808,4,1808,1816,2066,2058,4,2058,2066,2316,2308,4,2308,2316,2566,2558,4,2558,2566,2816,2808,4,2808,2816,3066,3058,4,3058,3066,3426,3405,4,3405,3426,3427,3406,4,189,210,575,566,4,189,190,211,210,4,566,575,825,816,4,816,825,1075,1066,4,1066,1075,1325,1316,4,1316,1325,1575,1566,4,1566,1575,1825,1816,4,1816,1825,2075,2066,4,2066,2075,2325,2316,4,2316,2325,2575,2566,4,2566,2575,2825,2816,4,2816,2825,3075,3066,4,3066,3075,3447,3426,4,3426,3447,3448,3427,4,210,231,585,575,4,210,211,232,231,4,575,585,835,825,4,825,835,1085,1075,4,1075,1085,1335,1325,4,1325,1335,1585,1575,4,1575,1585,1835,1825,4,1825,1835,2085,2075,4,2075,2085,2335,2325,4,2325,2335,2585,2575,4,2575,2585,2835,2825,4,2825,2835,3085,3075,4,3075,3085,3468,3447,4,3447,3468,3469,3448,4,231,252,598,585,4,231,232,253,252,4,585,598,848,835,4,835,848,1098,1085,4,1085,1098,1348,1335,4,1335,1348,1598,1585,4,1585,1598,1848,1835,4,1835,1848,2098,2085,4,2085,2098,2348,2335,4,2335,2348,2598,2585,4,2585,2598,2848,2835,4,2835,2848,3098,3085,4,3085,3098,3489,3468,4,3468,3489,3490,3469,4,252,273,609,598,4,252,253,274,273,4,598,609,859,848,4,848,859,1109,1098,4,1098,1109,1359,1348,4,1348,1359,1609,1598,4,1598,1609,1859,1848,4,1848,1859,2109,2098,4,2098,2109,2359,2348,4,2348,2359,2609,2598,4,2598,2609,2859,2848,4,2848,2859,3109,3098,4,3098,3109,3510,3489,4,3489,3510,3511,3490,4,273,294,617,609,4,273,274,295,294,4,609,617,867,859,4,859,867,1117,1109,4,1109,1117,1367,1359,4,1359,1367,1617,1609,4,1609,1617,1867,1859,4,1859,1867,2117,2109,4,2109,2117,2367,2359,4,2359,2367,2617,2609,4,2609,2617,2867,2859,4,2859,2867,3117,3109,4,3109,3117,3531,3510,4,3510,3531,3532,3511,4,294,315,621,617,4,294,295,316,315,4,617,621,871,867,4,867,871,1121,1117,4,1117,1121,1371,1367,4,1367,1371,1621,1617,4,1617,1621,1871,1867,4,1867,1871,2121,2117,4,2117,2121,2371,2367,4,2367,2371,2621,2617,4,2617,2621,2871,2867,4,2867,2871,3121,3117,4,3117,3121,3552,3531,4,3531,3552,3553,3532,4,315,336,624,621,4,315,316,337,336,4,621,624,874,871,4,871,874,1124,1121,4,1121,1124,1374,1371,4,1371,1374,1624,1621,4,1621,1624,1874,1871,4,1871,1874,2124,2121,4,2121,2124,2374,2371,4,2371,2374,2624,2621,4,2621,2624,2874,2871,4,2871,2874,3124,3121,4,3121,3124,3573,3552,4,3552,3573,3574,3553,4,336,357,626,624,4,336,337,358,357,4,624,626,876,874,4,874,876,1126,1124,4,1124,1126,1376,1374,4,1374,1376,1626,1624,4,1624,1626,1876,1874,4,1874,1876,2126,2124,4,2124,2126,2376,2374,4,2374,2376,2626,2624,4,2624,2626,2876,2874,4,2874,2876,3126,3124,4,3124,3126,3594,3573,4,3573,3594,3595,3574,4,357,378,628,626,4,378,628,629,379,4,357,358,379,378,4,626,628,878,876,4,628,878,879,629,4,876,878,1128,1126,4,878,1128,1129,879,4,1126,1128,1378,1376,4,1128,1378,1379,1129,4,1376,1378,1628,1626,4,1378,1628,1629,1379,4,1626,1628,1878,1876,4,1628,1878,1879,1629,4,1876,1878,2128,2126,4,1878,2128,2129,1879,4,2126,2128,2378,2376,4,2128,2378,2379,2129,4,2376,2378,2628,2626,4,2378,2628,2629,2379,4,2626,2628,2878,2876,4,2628,2878,2879,2629,4,2876,2878,3128,3126,4,2878,3128,3129,2879,4,3126,3128,3615,3594,4,3128,3615,3616,3129,4,3594,3615,3616,3595,4,1,488,489,2,4,1,2,23,22,4,488,738,739,489,4,738,988,989,739,4,988,1238,1239,989,4,1238,1488,1489,1239,4,1488,1738,1739,1489,4,1738,1988,1989,1739,4,1988,2238,2239,1989,4,2238,2488,2489,2239,4,2488,2738,2739,2489,4,2738,2988,2989,2739,4,2988,3238,3239,2989,4,3238,3259,3260,3239,4,22,23,44,43,4,3259,3280,3281,3260,4,64,515,650,400,4,43,44,400,64,4,515,765,900,650,4,765,1015,1150,900,4,1015,1265,1400,1150,4,1265,1515,1650,1400,4,1515,1765,1900,1650,4,1765,2015,2150,1900,4,2015,2265,2400,2150,4,2265,2515,2650,2400,4,2515,2765,2900,2650,4,2765,3015,3150,2900,4,3015,3301,3637,3150,4,3280,3301,3637,3281,4,65,516,655,405,4,64,515,516,65,4,64,65,405,85,4,516,766,905,655,4,515,765,766,516,4,766,1016,1155,905,4,765,1015,1016,766,4,1016,1266,1405,1155,4,1015,1265,1266,1016,4,1266,1516,1655,1405,4,1265,1515,1516,1266,4,1516,1766,1905,1655,4,1515,1765,1766,1516,4,1766,2016,2155,1905,4,1765,2015,2016,1766,4,2016,2266,2405,2155,4,2015,2265,2266,2016,4,2266,2516,2655,2405,4,2265,2515,2516,2266,4,2516,2766,2905,2655,4,2515,2765,2766,2516,4,2766,3016,3155,2905,4,2765,3015,3016,2766,4,3016,3302,3642,3155,4,3015,3301,3302,3016,4,3301,3322,3642,3302,4,85,405,107,106,4,3322,3343,3344,3642,4,106,107,128,127,4,3343,3364,3365,3344,4,127,128,149,148,4,3364,3385,3386,3365,4,148,149,170,169,4,3385,3406,3407,3386,4,169,170,191,190,4,3406,3427,3428,3407,4,190,191,212,211,4,3427,3448,3449,3428,4,211,212,233,232,4,3448,3469,3470,3449,4,232,233,254,253,4,3469,3490,3491,3470,4,253,254,275,274,4,3490,3511,3512,3491,4,274,275,296,295,4,3511,3532,3533,3512,4,295,296,317,316,4,3532,3553,3554,3533,4,316,317,338,337,4,3553,3574,3575,3554,4,337,338,359,358,4,3574,3595,3596,3575,4,379,629,630,380,4,358,359,380,379,4,629,879,880,630,4,879,1129,1130,880,4,1129,1379,1380,1130,4,1379,1629,1630,1380,4,1629,1879,1880,1630,4,1879,2129,2130,1880,4,2129,2379,2380,2130,4,2379,2629,2630,2380,4,2629,2879,2880,2630,4,2879,3129,3130,2880,4,3129,3616,3617,3130,4,3595,3616,3617,3596,4,2,489,490,3,4,2,3,24,23,4,489,739,740,490,4,739,989,990,740,4,989,1239,1240,990,4,1239,1489,1490,1240,4,1489,1739,1740,1490,4,1739,1989,1990,1740,4,1989,2239,2240,1990,4,2239,2489,2490,2240,4,2489,2739,2740,2490,4,2739,2989,2990,2740,4,2989,3239,3240,2990,4,3239,3260,3261,3240,4,23,24,45,44,4,3260,3281,3282,3261,4,44,45,66,400,4,3281,3637,3303,3282,4,400,86,524,650,4,86,524,656,406,4,400,66,406,86,4,650,524,774,900,4,524,774,906,656,4,900,774,1024,1150,4,774,1024,1156,906,4,1150,1024,1274,1400,4,1024,1274,1406,1156,4,1400,1274,1524,1650,4,1274,1524,1656,1406,4,1650,1524,1774,1900,4,1524,1774,1906,1656,4,1900,1774,2024,2150,4,1774,2024,2156,1906,4,2150,2024,2274,2400,4,2024,2274,2406,2156,4,2400,2274,2524,2650,4,2274,2524,2656,2406,4,2650,2524,2774,2900,4,2524,2774,2906,2656,4,2900,2774,3024,3150,4,2774,3024,3156,2906,4,3150,3024,3323,3637,4,3024,3323,3643,3156,4,3637,3323,3643,3303,4,405,655,525,87,4,405,87,108,107,4,655,905,775,525,4,905,1155,1025,775,4,1155,1405,1275,1025,4,1405,1655,1525,1275,4,1655,1905,1775,1525,4,1905,2155,2025,1775,4,2155,2405,2275,2025,4,2405,2655,2525,2275,4,2655,2905,2775,2525,4,2905,3155,3025,2775,4,3155,3642,3324,3025,4,3642,3344,3345,3324,4,107,108,129,128,4,3344,3365,3366,3345,4,128,129,150,149,4,3365,3386,3387,3366,4,149,150,171,170,4,3386,3407,3408,3387,4,170,171,192,191,4,3407,3428,3429,3408,4,191,192,213,212,4,3428,3449,3450,3429,4,212,213,234,233,4,3449,3470,3471,3450,4,233,234,255,254,4,3470,3491,3492,3471,4,254,255,276,275,4,3491,3512,3513,3492,4,275,276,485,296,4,3512,3533,3722,3513,4,485,735,622,318,4,296,485,318,317,4,735,985,872,622,4,985,1235,1122,872,4,1235,1485,1372,1122,4,1485,1735,1622,1372,4,1735,1985,1872,1622,4,1985,2235,2122,1872,4,2235,2485,2372,2122,4,2485,2735,2622,2372,4,2735,2985,2872,2622,4,2985,3235,3122,2872,4,3235,3722,3555,3122,4,3533,3554,3555,3722,4,317,318,339,338,4,3554,3575,3576,3555,4,338,339,360,359,4,3575,3596,3597,3576,4,380,630,631,381,4,359,360,381,380,4,630,880,881,631,4,880,1130,1131,881,4,1130,1380,1381,1131,4,1380,1630,1631,1381,4,1630,1880,1881,1631,4,1880,2130,2131,1881,4,2130,2380,2381,2131,4,2380,2630,2631,2381,4,2630,2880,2881,2631,4,2880,3130,3131,2881,4,3130,3617,3618,3131,4,3596,3617,3618,3597,4,3,490,491,4,4,3,4,25,24,4,490,740,741,491,4,740,990,991,741,4,990,1240,1241,991,4,1240,1490,1491,1241,4,1490,1740,1741,1491,4,1740,1990,1991,1741,4,1990,2240,2241,1991,4,2240,2490,2491,2241,4,2490,2740,2741,2491,4,2740,2990,2991,2741,4,2990,3240,3241,2991,4,3240,3261,3262,3241,4,24,25,46,45,4,3261,3282,3283,3262,4,45,46,67,66,4,3282,3303,3304,3283,4,406,656,657,407,4,66,67,407,406,4,656,906,907,657,4,906,1156,1157,907,4,1156,1406,1407,1157,4,1406,1656,1657,1407,4,1656,1906,1907,1657,4,1906,2156,2157,1907,4,2156,2406,2407,2157,4,2406,2656,2657,2407,4,2656,2906,2907,2657,4,2906,3156,3157,2907,4,3156,3643,3644,3157,4,3303,3643,3644,3304,4,87,525,526,88,4,87,88,109,108,4,525,775,776,526,4,775,1025,1026,776,4,1025,1275,1276,1026,4,1275,1525,1526,1276,4,1525,1775,1776,1526,4,1775,2025,2026,1776,4,2025,2275,2276,2026,4,2275,2525,2526,2276,4,2525,2775,2776,2526,4,2775,3025,3026,2776,4,3025,3324,3325,3026,4,3324,3345,3346,3325,4,108,109,130,129,4,3345,3366,3367,3346,4,129,130,151,150,4,3366,3387,3388,3367,4,150,151,172,171,4,3387,3408,3409,3388,4,171,172,193,192,4,3408,3429,3430,3409,4,192,193,214,213,4,3429,3450,3451,3430,4,213,214,235,234,4,3450,3471,3472,3451,4,234,235,256,255,4,3471,3492,3493,3472,4,255,256,481,276,4,3492,3513,3718,3493,4,481,731,736,486,4,485,735,736,486,4,276,481,486,485,4,731,981,986,736,4,735,985,986,736,4,981,1231,1236,986,4,985,1235,1236,986,4,1231,1481,1486,1236,4,1235,1485,1486,1236,4,1481,1731,1736,1486,4,1485,1735,1736,1486,4,1731,1981,1986,1736,4,1735,1985,1986,1736,4,1981,2231,2236,1986,4,1985,2235,2236,1986,4,2231,2481,2486,2236,4,2235,2485,2486,2236,4,2481,2731,2736,2486,4,2485,2735,2736,2486,4,2731,2981,2986,2736,4,2735,2985,2986,2736,4,2981,3231,3236,2986,4,2985,3235,3236,2986,4,3231,3718,3723,3236,4,3235,3722,3723,3236,4,3513,3722,3723,3718,4,297,318,622,618,4,297,618,619,298,4,297,298,319,318,4,618,622,872,868,4,618,868,869,619,4,868,872,1122,1118,4,868,1118,1119,869,4,1118,1122,1372,1368,4,1118,1368,1369,1119,4,1368,1372,1622,1618,4,1368,1618,1619,1369,4,1618,1622,1872,1868,4,1618,1868,1869,1619,4,1868,1872,2122,2118,4,1868,2118,2119,1869,4,2118,2122,2372,2368,4,2118,2368,2369,2119,4,2368,2372,2622,2618,4,2368,2618,2619,2369,4,2618,2622,2872,2868,4,2618,2868,2869,2619,4,2868,2872,3122,3118,4,2868,3118,3119,2869,4,3118,3122,3555,3534,4,3118,3534,3535,3119,4,3534,3555,3556,3535,4,318,319,340,339,4,3555,3576,3577,3556,4,339,340,361,360,4,3576,3597,3598,3577,4,381,631,632,382,4,360,361,382,381,4,631,881,882,632,4,881,1131,1132,882,4,1131,1381,1382,1132,4,1381,1631,1632,1382,4,1631,1881,1882,1632,4,1881,2131,2132,1882,4,2131,2381,2382,2132,4,2381,2631,2632,2382,4,2631,2881,2882,2632,4,2881,3131,3132,2882,4,3131,3618,3619,3132,4,3597,3618,3619,3598,4,4,491,492,5,4,4,5,26,25,4,491,741,742,492,4,741,991,992,742,4,991,1241,1242,992,4,1241,1491,1492,1242,4,1491,1741,1742,1492,4,1741,1991,1992,1742,4,1991,2241,2242,1992,4,2241,2491,2492,2242,4,2491,2741,2742,2492,4,2741,2991,2992,2742,4,2991,3241,3242,2992,4,3241,3262,3263,3242,4,25,26,47,46,4,3262,3283,3284,3263,4,46,47,68,67,4,3283,3304,3305,3284,4,407,657,658,408,4,67,68,408,407,4,657,907,908,658,4,907,1157,1158,908,4,1157,1407,1408,1158,4,1407,1657,1658,1408,4,1657,1907,1908,1658,4,1907,2157,2158,1908,4,2157,2407,2408,2158,4,2407,2657,2658,2408,4,2657,2907,2908,2658,4,2907,3157,3158,2908,4,3157,3644,3645,3158,4,3304,3644,3645,3305,4,89,527,660,410,4,88,526,527,89,4,88,89,410,109,4,527,777,910,660,4,526,776,777,527,4,777,1027,1160,910,4,776,1026,1027,777,4,1027,1277,1410,1160,4,1026,1276,1277,1027,4,1277,1527,1660,1410,4,1276,1526,1527,1277,4,1527,1777,1910,1660,4,1526,1776,1777,1527,4,1777,2027,2160,1910,4,1776,2026,2027,1777,4,2027,2277,2410,2160,4,2026,2276,2277,2027,4,2277,2527,2660,2410,4,2276,2526,2527,2277,4,2527,2777,2910,2660,4,2526,2776,2777,2527,4,2777,3027,3160,2910,4,2776,3026,3027,2777,4,3027,3326,3647,3160,4,3026,3325,3326,3027,4,3325,3346,3647,3326,4,109,410,131,130,4,3346,3367,3368,3647,4,130,131,152,151,4,3367,3388,3389,3368,4,151,152,173,172,4,3388,3409,3410,3389,4,172,173,194,193,4,3409,3430,3431,3410,4,193,194,215,214,4,3430,3451,3452,3431,4,214,215,236,235,4,3451,3472,3473,3452,4,235,236,257,256,4,3472,3493,3494,3473,4,481,731,732,482,4,256,257,482,481,4,731,981,982,732,4,981,1231,1232,982,4,1231,1481,1482,1232,4,1481,1731,1732,1482,4,1731,1981,1982,1732,4,1981,2231,2232,1982,4,2231,2481,2482,2232,4,2481,2731,2732,2482,4,2731,2981,2982,2732,4,2981,3231,3232,2982,4,3231,3718,3719,3232,4,3493,3718,3719,3494,4,277,298,619,610,4,277,610,611,278,4,277,278,299,298,4,610,619,869,860,4,610,860,861,611,4,860,869,1119,1110,4,860,1110,1111,861,4,1110,1119,1369,1360,4,1110,1360,1361,1111,4,1360,1369,1619,1610,4,1360,1610,1611,1361,4,1610,1619,1869,1860,4,1610,1860,1861,1611,4,1860,1869,2119,2110,4,1860,2110,2111,1861,4,2110,2119,2369,2360,4,2110,2360,2361,2111,4,2360,2369,2619,2610,4,2360,2610,2611,2361,4,2610,2619,2869,2860,4,2610,2860,2861,2611,4,2860,2869,3119,3110,4,2860,3110,3111,2861,4,3110,3119,3535,3514,4,3110,3514,3515,3111,4,3514,3535,3536,3515,4,298,299,320,319,4,3535,3556,3557,3536,4,319,320,341,340,4,3556,3577,3578,3557,4,340,341,362,361,4,3577,3598,3599,3578,4,382,632,633,383,4,361,362,383,382,4,632,882,883,633,4,882,1132,1133,883,4,1132,1382,1383,1133,4,1382,1632,1633,1383,4,1632,1882,1883,1633,4,1882,2132,2133,1883,4,2132,2382,2383,2133,4,2382,2632,2633,2383,4,2632,2882,2883,2633,4,2882,3132,3133,2883,4,3132,3619,3620,3133,4,3598,3619,3620,3599,4,5,492,493,6,4,5,6,27,26,4,492,742,743,493,4,742,992,993,743,4,992,1242,1243,993,4,1242,1492,1493,1243,4,1492,1742,1743,1493,4,1742,1992,1993,1743,4,1992,2242,2243,1993,4,2242,2492,2493,2243,4,2492,2742,2743,2493,4,2742,2992,2993,2743,4,2992,3242,3243,2993,4,3242,3263,3264,3243,4,26,27,48,47,4,3263,3284,3285,3264,4,47,48,69,68,4,3284,3305,3306,3285,4,68,69,90,408,4,3305,3645,3327,3306,4,408,110,534,658,4,110,534,661,411,4,408,90,411,110,4,658,534,784,908,4,534,784,911,661,4,908,784,1034,1158,4,784,1034,1161,911,4,1158,1034,1284,1408,4,1034,1284,1411,1161,4,1408,1284,1534,1658,4,1284,1534,1661,1411,4,1658,1534,1784,1908,4,1534,1784,1911,1661,4,1908,1784,2034,2158,4,1784,2034,2161,1911,4,2158,2034,2284,2408,4,2034,2284,2411,2161,4,2408,2284,2534,2658,4,2284,2534,2661,2411,4,2658,2534,2784,2908,4,2534,2784,2911,2661,4,2908,2784,3034,3158,4,2784,3034,3161,2911,4,3158,3034,3347,3645,4,3034,3347,3648,3161,4,3645,3347,3648,3327,4,410,660,535,111,4,410,111,132,131,4,660,910,785,535,4,910,1160,1035,785,4,1160,1410,1285,1035,4,1410,1660,1535,1285,4,1660,1910,1785,1535,4,1910,2160,2035,1785,4,2160,2410,2285,2035,4,2410,2660,2535,2285,4,2660,2910,2785,2535,4,2910,3160,3035,2785,4,3160,3647,3348,3035,4,3647,3368,3369,3348,4,131,132,153,152,4,3368,3389,3390,3369,4,152,153,174,173,4,3389,3410,3411,3390,4,173,174,195,194,4,3410,3431,3432,3411,4,194,195,216,215,4,3431,3452,3453,3432,4,215,216,237,236,4,3452,3473,3474,3453,4,236,237,470,257,4,3473,3494,3707,3474,4,470,720,733,483,4,482,732,733,483,4,257,470,483,482,4,720,970,983,733,4,732,982,983,733,4,970,1220,1233,983,4,982,1232,1233,983,4,1220,1470,1483,1233,4,1232,1482,1483,1233,4,1470,1720,1733,1483,4,1482,1732,1733,1483,4,1720,1970,1983,1733,4,1732,1982,1983,1733,4,1970,2220,2233,1983,4,1982,2232,2233,1983,4,2220,2470,2483,2233,4,2232,2482,2483,2233,4,2470,2720,2733,2483,4,2482,2732,2733,2483,4,2720,2970,2983,2733,4,2732,2982,2983,2733,4,2970,3220,3233,2983,4,2982,3232,3233,2983,4,3220,3707,3720,3233,4,3232,3719,3720,3233,4,3494,3719,3720,3707,4,278,611,612,279,4,278,279,300,299,4,611,861,862,612,4,861,1111,1112,862,4,1111,1361,1362,1112,4,1361,1611,1612,1362,4,1611,1861,1862,1612,4,1861,2111,2112,1862,4,2111,2361,2362,2112,4,2361,2611,2612,2362,4,2611,2861,2862,2612,4,2861,3111,3112,2862,4,3111,3515,3516,3112,4,3515,3536,3537,3516,4,299,300,321,320,4,3536,3557,3558,3537,4,320,321,342,341,4,3557,3578,3579,3558,4,341,342,363,362,4,3578,3599,3600,3579,4,383,633,634,384,4,362,363,384,383,4,633,883,884,634,4,883,1133,1134,884,4,1133,1383,1384,1134,4,1383,1633,1634,1384,4,1633,1883,1884,1634,4,1883,2133,2134,1884,4,2133,2383,2384,2134,4,2383,2633,2634,2384,4,2633,2883,2884,2634,4,2883,3133,3134,2884,4,3133,3620,3621,3134,4,3599,3620,3621,3600,4,6,493,494,7,4,6,7,28,27,4,493,743,744,494,4,743,993,994,744,4,993,1243,1244,994,4,1243,1493,1494,1244,4,1493,1743,1744,1494,4,1743,1993,1994,1744,4,1993,2243,2244,1994,4,2243,2493,2494,2244,4,2493,2743,2744,2494,4,2743,2993,2994,2744,4,2993,3243,3244,2994,4,3243,3264,3265,3244,4,48,511,649,399,4,27,28,399,48,4,511,761,899,649,4,761,1011,1149,899,4,1011,1261,1399,1149,4,1261,1511,1649,1399,4,1511,1761,1899,1649,4,1761,2011,2149,1899,4,2011,2261,2399,2149,4,2261,2511,2649,2399,4,2511,2761,2899,2649,4,2761,3011,3149,2899,4,3011,3285,3636,3149,4,3264,3285,3636,3265,4,49,512,651,401,4,48,511,512,49,4,48,49,401,69,4,512,762,901,651,4,511,761,762,512,4,762,1012,1151,901,4,761,1011,1012,762,4,1012,1262,1401,1151,4,1011,1261,1262,1012,4,1262,1512,1651,1401,4,1261,1511,1512,1262,4,1512,1762,1901,1651,4,1511,1761,1762,1512,4,1762,2012,2151,1901,4,1761,2011,2012,1762,4,2012,2262,2401,2151,4,2011,2261,2262,2012,4,2262,2512,2651,2401,4,2261,2511,2512,2262,4,2512,2762,2901,2651,4,2511,2761,2762,2512,4,2762,3012,3151,2901,4,2761,3011,3012,2762,4,3012,3286,3638,3151,4,3011,3285,3286,3012,4,3285,3306,3638,3286,4,69,401,91,90,4,3306,3327,3328,3638,4,411,661,662,412,4,90,91,412,411,4,661,911,912,662,4,911,1161,1162,912,4,1161,1411,1412,1162,4,1411,1661,1662,1412,4,1661,1911,1912,1662,4,1911,2161,2162,1912,4,2161,2411,2412,2162,4,2411,2661,2662,2412,4,2661,2911,2912,2662,4,2911,3161,3162,2912,4,3161,3648,3649,3162,4,3327,3648,3649,3328,4,111,535,536,112,4,111,112,133,132,4,535,785,786,536,4,785,1035,1036,786,4,1035,1285,1286,1036,4,1285,1535,1536,1286,4,1535,1785,1786,1536,4,1785,2035,2036,1786,4,2035,2285,2286,2036,4,2285,2535,2536,2286,4,2535,2785,2786,2536,4,2785,3035,3036,2786,4,3035,3348,3349,3036,4,3348,3369,3370,3349,4,132,133,154,153,4,3369,3390,3391,3370,4,153,154,175,174,4,3390,3411,3412,3391,4,174,175,196,195,4,3411,3432,3433,3412,4,195,196,217,216,4,3432,3453,3454,3433,4,216,217,238,237,4,3453,3474,3475,3454,4,470,720,721,471,4,237,238,471,470,4,720,970,971,721,4,970,1220,1221,971,4,1220,1470,1471,1221,4,1470,1720,1721,1471,4,1720,1970,1971,1721,4,1970,2220,2221,1971,4,2220,2470,2471,2221,4,2470,2720,2721,2471,4,2720,2970,2971,2721,4,2970,3220,3221,2971,4,3220,3707,3708,3221,4,3474,3707,3708,3475,4,258,279,612,599,4,258,599,600,259,4,258,259,280,279,4,599,612,862,849,4,599,849,850,600,4,849,862,1112,1099,4,849,1099,1100,850,4,1099,1112,1362,1349,4,1099,1349,1350,1100,4,1349,1362,1612,1599,4,1349,1599,1600,1350,4,1599,1612,1862,1849,4,1599,1849,1850,1600,4,1849,1862,2112,2099,4,1849,2099,2100,1850,4,2099,2112,2362,2349,4,2099,2349,2350,2100,4,2349,2362,2612,2599,4,2349,2599,2600,2350,4,2599,2612,2862,2849,4,2599,2849,2850,2600,4,2849,2862,3112,3099,4,2849,3099,3100,2850,4,3099,3112,3516,3495,4,3099,3495,3496,3100,4,3495,3516,3517,3496,4,279,280,301,300,4,3516,3537,3538,3517,4,300,301,322,321,4,3537,3558,3559,3538,4,321,322,343,342,4,3558,3579,3580,3559,4,342,343,364,363,4,3579,3600,3601,3580,4,384,634,635,385,4,363,364,385,384,4,634,884,885,635,4,884,1134,1135,885,4,1134,1384,1385,1135,4,1384,1634,1635,1385,4,1634,1884,1885,1635,4,1884,2134,2135,1885,4,2134,2384,2385,2135,4,2384,2634,2635,2385,4,2634,2884,2885,2635,4,2884,3134,3135,2885,4,3134,3621,3622,3135,4,3600,3621,3622,3601,4,7,494,495,8,4,7,8,29,28,4,494,744,745,495,4,744,994,995,745,4,994,1244,1245,995,4,1244,1494,1495,1245,4,1494,1744,1745,1495,4,1744,1994,1995,1745,4,1994,2244,2245,1995,4,2244,2494,2495,2245,4,2494,2744,2745,2495,4,2744,2994,2995,2745,4,2994,3244,3245,2995,4,3244,3265,3266,3245,4,28,29,50,399,4,3265,3636,3287,3266,4,399,70,517,649,4,70,517,652,402,4,399,50,402,70,4,649,517,767,899,4,517,767,902,652,4,899,767,1017,1149,4,767,1017,1152,902,4,1149,1017,1267,1399,4,1017,1267,1402,1152,4,1399,1267,1517,1649,4,1267,1517,1652,1402,4,1649,1517,1767,1899,4,1517,1767,1902,1652,4,1899,1767,2017,2149,4,1767,2017,2152,1902,4,2149,2017,2267,2399,4,2017,2267,2402,2152,4,2399,2267,2517,2649,4,2267,2517,2652,2402,4,2649,2517,2767,2899,4,2517,2767,2902,2652,4,2899,2767,3017,3149,4,2767,3017,3152,2902,4,3149,3017,3307,3636,4,3017,3307,3639,3152,4,3636,3307,3639,3287,4,71,518,659,409,4,401,651,518,71,4,401,71,409,91,4,518,768,909,659,4,651,901,768,518,4,768,1018,1159,909,4,901,1151,1018,768,4,1018,1268,1409,1159,4,1151,1401,1268,1018,4,1268,1518,1659,1409,4,1401,1651,1518,1268,4,1518,1768,1909,1659,4,1651,1901,1768,1518,4,1768,2018,2159,1909,4,1901,2151,2018,1768,4,2018,2268,2409,2159,4,2151,2401,2268,2018,4,2268,2518,2659,2409,4,2401,2651,2518,2268,4,2518,2768,2909,2659,4,2651,2901,2768,2518,4,2768,3018,3159,2909,4,2901,3151,3018,2768,4,3018,3308,3646,3159,4,3151,3638,3308,3018,4,3638,3328,3646,3308,4,412,662,663,413,4,91,409,413,412,4,662,912,913,663,4,912,1162,1163,913,4,1162,1412,1413,1163,4,1412,1662,1663,1413,4,1662,1912,1913,1663,4,1912,2162,2163,1913,4,2162,2412,2413,2163,4,2412,2662,2663,2413,4,2662,2912,2913,2663,4,2912,3162,3163,2913,4,3162,3649,3650,3163,4,3328,3649,3650,3646,4,113,537,665,415,4,112,536,537,113,4,112,113,415,133,4,537,787,915,665,4,536,786,787,537,4,787,1037,1165,915,4,786,1036,1037,787,4,1037,1287,1415,1165,4,1036,1286,1287,1037,4,1287,1537,1665,1415,4,1286,1536,1537,1287,4,1537,1787,1915,1665,4,1536,1786,1787,1537,4,1787,2037,2165,1915,4,1786,2036,2037,1787,4,2037,2287,2415,2165,4,2036,2286,2287,2037,4,2287,2537,2665,2415,4,2286,2536,2537,2287,4,2537,2787,2915,2665,4,2536,2786,2787,2537,4,2787,3037,3165,2915,4,2786,3036,3037,2787,4,3037,3350,3652,3165,4,3036,3349,3350,3037,4,3349,3370,3652,3350,4,133,415,155,154,4,3370,3391,3392,3652,4,154,155,176,175,4,3391,3412,3413,3392,4,175,176,197,196,4,3412,3433,3434,3413,4,217,576,696,446,4,196,197,446,217,4,576,826,946,696,4,826,1076,1196,946,4,1076,1326,1446,1196,4,1326,1576,1696,1446,4,1576,1826,1946,1696,4,1826,2076,2196,1946,4,2076,2326,2446,2196,4,2326,2576,2696,2446,4,2576,2826,2946,2696,4,2826,3076,3196,2946,4,3076,3454,3683,3196,4,3433,3454,3683,3434,4,217,576,577,218,4,217,218,454,238,4,576,826,827,577,4,826,1076,1077,827,4,1076,1326,1327,1077,4,1326,1576,1577,1327,4,1576,1826,1827,1577,4,1826,2076,2077,1827,4,2076,2326,2327,2077,4,2326,2576,2577,2327,4,2576,2826,2827,2577,4,2826,3076,3077,2827,4,3076,3454,3455,3077,4,3454,3475,3691,3455,4,454,704,722,472,4,471,721,722,472,4,238,454,472,471,4,704,954,972,722,4,721,971,972,722,4,954,1204,1222,972,4,971,1221,1222,972,4,1204,1454,1472,1222,4,1221,1471,1472,1222,4,1454,1704,1722,1472,4,1471,1721,1722,1472,4,1704,1954,1972,1722,4,1721,1971,1972,1722,4,1954,2204,2222,1972,4,1971,2221,2222,1972,4,2204,2454,2472,2222,4,2221,2471,2472,2222,4,2454,2704,2722,2472,4,2471,2721,2722,2472,4,2704,2954,2972,2722,4,2721,2971,2972,2722,4,2954,3204,3222,2972,4,2971,3221,3222,2972,4,3204,3691,3709,3222,4,3221,3708,3709,3222,4,3475,3708,3709,3691,4,259,600,601,260,4,259,260,281,280,4,600,850,851,601,4,850,1100,1101,851,4,1100,1350,1351,1101,4,1350,1600,1601,1351,4,1600,1850,1851,1601,4,1850,2100,2101,1851,4,2100,2350,2351,2101,4,2350,2600,2601,2351,4,2600,2850,2851,2601,4,2850,3100,3101,2851,4,3100,3496,3497,3101,4,3496,3517,3518,3497,4,280,281,302,301,4,3517,3538,3539,3518,4,301,302,323,322,4,3538,3559,3560,3539,4,322,323,344,343,4,3559,3580,3581,3560,4,343,344,365,364,4,3580,3601,3602,3581,4,385,635,636,386,4,364,365,386,385,4,635,885,886,636,4,885,1135,1136,886,4,1135,1385,1386,1136,4,1385,1635,1636,1386,4,1635,1885,1886,1636,4,1885,2135,2136,1886,4,2135,2385,2386,2136,4,2385,2635,2636,2386,4,2635,2885,2886,2636,4,2885,3135,3136,2886,4,3135,3622,3623,3136,4,3601,3622,3623,3602,4,8,495,496,9,4,8,9,30,29,4,495,745,746,496,4,745,995,996,746,4,995,1245,1246,996,4,1245,1495,1496,1246,4,1495,1745,1746,1496,4,1745,1995,1996,1746,4,1995,2245,2246,1996,4,2245,2495,2496,2246,4,2495,2745,2746,2496,4,2745,2995,2996,2746,4,2995,3245,3246,2996,4,3245,3266,3267,3246,4,29,30,51,50,4,3266,3287,3288,3267,4,50,51,72,402,4,3287,3639,3309,3288,4,402,92,528,652,4,92,528,529,93,4,402,72,93,92,4,652,528,778,902,4,528,778,779,529,4,902,778,1028,1152,4,778,1028,1029,779,4,1152,1028,1278,1402,4,1028,1278,1279,1029,4,1402,1278,1528,1652,4,1278,1528,1529,1279,4,1652,1528,1778,1902,4,1528,1778,1779,1529,4,1902,1778,2028,2152,4,1778,2028,2029,1779,4,2152,2028,2278,2402,4,2028,2278,2279,2029,4,2402,2278,2528,2652,4,2278,2528,2529,2279,4,2652,2528,2778,2902,4,2528,2778,2779,2529,4,2902,2778,3028,3152,4,2778,3028,3029,2779,4,3152,3028,3329,3639,4,3028,3329,3330,3029,4,3639,3329,3330,3309,4,409,659,529,93,4,409,93,114,413,4,659,909,779,529,4,909,1159,1029,779,4,1159,1409,1279,1029,4,1409,1659,1529,1279,4,1659,1909,1779,1529,4,1909,2159,2029,1779,4,2159,2409,2279,2029,4,2409,2659,2529,2279,4,2659,2909,2779,2529,4,2909,3159,3029,2779,4,3159,3646,3330,3029,4,3646,3650,3351,3330,4,413,134,543,663,4,134,543,666,416,4,413,114,416,134,4,663,543,793,913,4,543,793,916,666,4,913,793,1043,1163,4,793,1043,1166,916,4,1163,1043,1293,1413,4,1043,1293,1416,1166,4,1413,1293,1543,1663,4,1293,1543,1666,1416,4,1663,1543,1793,1913,4,1543,1793,1916,1666,4,1913,1793,2043,2163,4,1793,2043,2166,1916,4,2163,2043,2293,2413,4,2043,2293,2416,2166,4,2413,2293,2543,2663,4,2293,2543,2666,2416,4,2663,2543,2793,2913,4,2543,2793,2916,2666,4,2913,2793,3043,3163,4,2793,3043,3166,2916,4,3163,3043,3371,3650,4,3043,3371,3653,3166,4,3650,3371,3653,3351,4,415,665,544,135,4,415,135,156,155,4,665,915,794,544,4,915,1165,1044,794,4,1165,1415,1294,1044,4,1415,1665,1544,1294,4,1665,1915,1794,1544,4,1915,2165,2044,1794,4,2165,2415,2294,2044,4,2415,2665,2544,2294,4,2665,2915,2794,2544,4,2915,3165,3044,2794,4,3165,3652,3372,3044,4,3652,3392,3393,3372,4,155,156,177,176,4,3392,3413,3414,3393,4,176,177,437,197,4,3413,3434,3674,3414,4,437,687,697,447,4,446,696,697,447,4,197,437,447,446,4,687,937,947,697,4,696,946,947,697,4,937,1187,1197,947,4,946,1196,1197,947,4,1187,1437,1447,1197,4,1196,1446,1447,1197,4,1437,1687,1697,1447,4,1446,1696,1697,1447,4,1687,1937,1947,1697,4,1696,1946,1947,1697,4,1937,2187,2197,1947,4,1946,2196,2197,1947,4,2187,2437,2447,2197,4,2196,2446,2447,2197,4,2437,2687,2697,2447,4,2446,2696,2697,2447,4,2687,2937,2947,2697,4,2696,2946,2947,2697,4,2937,3187,3197,2947,4,2946,3196,3197,2947,4,3187,3674,3684,3197,4,3196,3683,3684,3197,4,3434,3683,3684,3674,4,218,577,578,219,4,454,704,705,455,4,218,219,455,454,4,577,827,828,578,4,704,954,955,705,4,827,1077,1078,828,4,954,1204,1205,955,4,1077,1327,1328,1078,4,1204,1454,1455,1205,4,1327,1577,1578,1328,4,1454,1704,1705,1455,4,1577,1827,1828,1578,4,1704,1954,1955,1705,4,1827,2077,2078,1828,4,1954,2204,2205,1955,4,2077,2327,2328,2078,4,2204,2454,2455,2205,4,2327,2577,2578,2328,4,2454,2704,2705,2455,4,2577,2827,2828,2578,4,2704,2954,2955,2705,4,2827,3077,3078,2828,4,2954,3204,3205,2955,4,3077,3455,3456,3078,4,3204,3691,3692,3205,4,3455,3691,3692,3456,4,239,260,601,586,4,239,586,587,240,4,239,240,261,260,4,586,601,851,836,4,586,836,837,587,4,836,851,1101,1086,4,836,1086,1087,837,4,1086,1101,1351,1336,4,1086,1336,1337,1087,4,1336,1351,1601,1586,4,1336,1586,1587,1337,4,1586,1601,1851,1836,4,1586,1836,1837,1587,4,1836,1851,2101,2086,4,1836,2086,2087,1837,4,2086,2101,2351,2336,4,2086,2336,2337,2087,4,2336,2351,2601,2586,4,2336,2586,2587,2337,4,2586,2601,2851,2836,4,2586,2836,2837,2587,4,2836,2851,3101,3086,4,2836,3086,3087,2837,4,3086,3101,3497,3476,4,3086,3476,3477,3087,4,3476,3497,3498,3477,4,260,261,282,281,4,3497,3518,3519,3498,4,281,282,303,302,4,3518,3539,3540,3519,4,302,303,324,323,4,3539,3560,3561,3540,4,323,324,345,344,4,3560,3581,3582,3561,4,344,345,366,365,4,3581,3602,3603,3582,4,386,636,637,387,4,365,366,387,386,4,636,886,887,637,4,886,1136,1137,887,4,1136,1386,1387,1137,4,1386,1636,1637,1387,4,1636,1886,1887,1637,4,1886,2136,2137,1887,4,2136,2386,2387,2137,4,2386,2636,2637,2387,4,2636,2886,2887,2637,4,2886,3136,3137,2887,4,3136,3623,3624,3137,4,3602,3623,3624,3603,4,9,496,497,10,4,9,10,31,30,4,496,746,747,497,4,746,996,997,747,4,996,1246,1247,997,4,1246,1496,1497,1247,4,1496,1746,1747,1497,4,1746,1996,1997,1747,4,1996,2246,2247,1997,4,2246,2496,2497,2247,4,2496,2746,2747,2497,4,2746,2996,2997,2747,4,2996,3246,3247,2997,4,3246,3267,3268,3247,4,30,31,52,51,4,3267,3288,3289,3268,4,51,52,73,72,4,3288,3309,3310,3289,4,72,73,94,93,4,3309,3330,3331,3310,4,93,94,115,114,4,3330,3351,3352,3331,4,416,666,545,136,4,114,115,136,416,4,666,916,795,545,4,916,1166,1045,795,4,1166,1416,1295,1045,4,1416,1666,1545,1295,4,1666,1916,1795,1545,4,1916,2166,2045,1795,4,2166,2416,2295,2045,4,2416,2666,2545,2295,4,2666,2916,2795,2545,4,2916,3166,3045,2795,4,3166,3653,3373,3045,4,3351,3653,3373,3352,4,135,544,545,136,4,135,136,157,156,4,544,794,795,545,4,794,1044,1045,795,4,1044,1294,1295,1045,4,1294,1544,1545,1295,4,1544,1794,1795,1545,4,1794,2044,2045,1795,4,2044,2294,2295,2045,4,2294,2544,2545,2295,4,2544,2794,2795,2545,4,2794,3044,3045,2795,4,3044,3372,3373,3045,4,3372,3393,3394,3373,4,156,157,178,177,4,3393,3414,3415,3394,4,437,687,688,438,4,177,178,438,437,4,687,937,938,688,4,937,1187,1188,938,4,1187,1437,1438,1188,4,1437,1687,1688,1438,4,1687,1937,1938,1688,4,1937,2187,2188,1938,4,2187,2437,2438,2188,4,2437,2687,2688,2438,4,2687,2937,2938,2688,4,2937,3187,3188,2938,4,3187,3674,3675,3188,4,3414,3674,3675,3415,4,198,219,578,567,4,198,567,568,199,4,198,199,220,219,4,567,578,828,817,4,567,817,818,568,4,817,828,1078,1067,4,817,1067,1068,818,4,1067,1078,1328,1317,4,1067,1317,1318,1068,4,1317,1328,1578,1567,4,1317,1567,1568,1318,4,1567,1578,1828,1817,4,1567,1817,1818,1568,4,1817,1828,2078,2067,4,1817,2067,2068,1818,4,2067,2078,2328,2317,4,2067,2317,2318,2068,4,2317,2328,2578,2567,4,2317,2567,2568,2318,4,2567,2578,2828,2817,4,2567,2817,2818,2568,4,2817,2828,3078,3067,4,2817,3067,3068,2818,4,3067,3078,3456,3435,4,3067,3435,3436,3068,4,3435,3456,3457,3436,4,455,705,706,456,4,219,220,456,455,4,705,955,956,706,4,955,1205,1206,956,4,1205,1455,1456,1206,4,1455,1705,1706,1456,4,1705,1955,1956,1706,4,1955,2205,2206,1956,4,2205,2455,2456,2206,4,2455,2705,2706,2456,4,2705,2955,2956,2706,4,2955,3205,3206,2956,4,3205,3692,3693,3206,4,3456,3692,3693,3457,4,240,587,588,241,4,240,241,262,261,4,587,837,838,588,4,837,1087,1088,838,4,1087,1337,1338,1088,4,1337,1587,1588,1338,4,1587,1837,1838,1588,4,1837,2087,2088,1838,4,2087,2337,2338,2088,4,2337,2587,2588,2338,4,2587,2837,2838,2588,4,2837,3087,3088,2838,4,3087,3477,3478,3088,4,3477,3498,3499,3478,4,261,262,283,282,4,3498,3519,3520,3499,4,282,283,304,303,4,3519,3540,3541,3520,4,303,304,325,324,4,3540,3561,3562,3541,4,324,325,346,345,4,3561,3582,3583,3562,4,345,346,367,366,4,3582,3603,3604,3583,4,387,637,638,388,4,366,367,388,387,4,637,887,888,638,4,887,1137,1138,888,4,1137,1387,1388,1138,4,1387,1637,1638,1388,4,1637,1887,1888,1638,4,1887,2137,2138,1888,4,2137,2387,2388,2138,4,2387,2637,2638,2388,4,2637,2887,2888,2638,4,2887,3137,3138,2888,4,3137,3624,3625,3138,4,3603,3624,3625,3604,4,10,497,498,11,4,10,11,32,31,4,497,747,748,498,4,747,997,998,748,4,997,1247,1248,998,4,1247,1497,1498,1248,4,1497,1747,1748,1498,4,1747,1997,1998,1748,4,1997,2247,2248,1998,4,2247,2497,2498,2248,4,2497,2747,2748,2498,4,2747,2997,2998,2748,4,2997,3247,3248,2998,4,3247,3268,3269,3248,4,31,32,53,52,4,3268,3289,3290,3269,4,73,519,653,403,4,52,53,403,73,4,519,769,903,653,4,769,1019,1153,903,4,1019,1269,1403,1153,4,1269,1519,1653,1403,4,1519,1769,1903,1653,4,1769,2019,2153,1903,4,2019,2269,2403,2153,4,2269,2519,2653,2403,4,2519,2769,2903,2653,4,2769,3019,3153,2903,4,3019,3310,3640,3153,4,3289,3310,3640,3290,4,73,519,520,74,4,73,74,95,94,4,519,769,770,520,4,769,1019,1020,770,4,1019,1269,1270,1020,4,1269,1519,1520,1270,4,1519,1769,1770,1520,4,1769,2019,2020,1770,4,2019,2269,2270,2020,4,2269,2519,2520,2270,4,2519,2769,2770,2520,4,2769,3019,3020,2770,4,3019,3310,3311,3020,4,3310,3331,3332,3311,4,94,95,116,115,4,3331,3352,3353,3332,4,116,538,667,417,4,115,116,417,136,4,538,788,917,667,4,788,1038,1167,917,4,1038,1288,1417,1167,4,1288,1538,1667,1417,4,1538,1788,1917,1667,4,1788,2038,2167,1917,4,2038,2288,2417,2167,4,2288,2538,2667,2417,4,2538,2788,2917,2667,4,2788,3038,3167,2917,4,3038,3353,3654,3167,4,3352,3373,3654,3353,4,136,417,158,157,4,3373,3394,3395,3654,4,157,158,428,178,4,3394,3415,3665,3395,4,428,678,689,439,4,438,688,689,439,4,178,428,439,438,4,678,928,939,689,4,688,938,939,689,4,928,1178,1189,939,4,938,1188,1189,939,4,1178,1428,1439,1189,4,1188,1438,1439,1189,4,1428,1678,1689,1439,4,1438,1688,1689,1439,4,1678,1928,1939,1689,4,1688,1938,1939,1689,4,1928,2178,2189,1939,4,1938,2188,2189,1939,4,2178,2428,2439,2189,4,2188,2438,2439,2189,4,2428,2678,2689,2439,4,2438,2688,2689,2439,4,2678,2928,2939,2689,4,2688,2938,2939,2689,4,2928,3178,3189,2939,4,2938,3188,3189,2939,4,3178,3665,3676,3189,4,3188,3675,3676,3189,4,3415,3675,3676,3665,4,441,691,698,448,4,199,568,691,441,4,199,441,448,220,4,691,941,948,698,4,568,818,941,691,4,941,1191,1198,948,4,818,1068,1191,941,4,1191,1441,1448,1198,4,1068,1318,1441,1191,4,1441,1691,1698,1448,4,1318,1568,1691,1441,4,1691,1941,1948,1698,4,1568,1818,1941,1691,4,1941,2191,2198,1948,4,1818,2068,2191,1941,4,2191,2441,2448,2198,4,2068,2318,2441,2191,4,2441,2691,2698,2448,4,2318,2568,2691,2441,4,2691,2941,2948,2698,4,2568,2818,2941,2691,4,2941,3191,3198,2948,4,2818,3068,3191,2941,4,3191,3678,3685,3198,4,3068,3436,3678,3191,4,3436,3457,3685,3678,4,448,698,707,457,4,456,706,707,457,4,220,448,457,456,4,698,948,957,707,4,706,956,957,707,4,948,1198,1207,957,4,956,1206,1207,957,4,1198,1448,1457,1207,4,1206,1456,1457,1207,4,1448,1698,1707,1457,4,1456,1706,1707,1457,4,1698,1948,1957,1707,4,1706,1956,1957,1707,4,1948,2198,2207,1957,4,1956,2206,2207,1957,4,2198,2448,2457,2207,4,2206,2456,2457,2207,4,2448,2698,2707,2457,4,2456,2706,2707,2457,4,2698,2948,2957,2707,4,2706,2956,2957,2707,4,2948,3198,3207,2957,4,2956,3206,3207,2957,4,3198,3685,3694,3207,4,3206,3693,3694,3207,4,3457,3693,3694,3685,4,241,588,708,458,4,241,458,263,262,4,588,838,958,708,4,838,1088,1208,958,4,1088,1338,1458,1208,4,1338,1588,1708,1458,4,1588,1838,1958,1708,4,1838,2088,2208,1958,4,2088,2338,2458,2208,4,2338,2588,2708,2458,4,2588,2838,2958,2708,4,2838,3088,3208,2958,4,3088,3478,3695,3208,4,3478,3499,3500,3695,4,262,263,284,283,4,3499,3520,3521,3500,4,283,284,305,304,4,3520,3541,3542,3521,4,304,305,326,325,4,3541,3562,3563,3542,4,325,326,347,346,4,3562,3583,3584,3563,4,346,347,368,367,4,3583,3604,3605,3584,4,388,638,639,389,4,367,368,389,388,4,638,888,889,639,4,888,1138,1139,889,4,1138,1388,1389,1139,4,1388,1638,1639,1389,4,1638,1888,1889,1639,4,1888,2138,2139,1889,4,2138,2388,2389,2139,4,2388,2638,2639,2389,4,2638,2888,2889,2639,4,2888,3138,3139,2889,4,3138,3625,3626,3139,4,3604,3625,3626,3605,4,11,498,499,12,4,11,12,33,32,4,498,748,749,499,4,748,998,999,749,4,998,1248,1249,999,4,1248,1498,1499,1249,4,1498,1748,1749,1499,4,1748,1998,1999,1749,4,1998,2248,2249,1999,4,2248,2498,2499,2249,4,2498,2748,2749,2499,4,2748,2998,2999,2749,4,2998,3248,3249,2999,4,3248,3269,3270,3249,4,32,33,54,53,4,3269,3290,3291,3270,4,403,653,654,404,4,53,54,404,403,4,653,903,904,654,4,903,1153,1154,904,4,1153,1403,1404,1154,4,1403,1653,1654,1404,4,1653,1903,1904,1654,4,1903,2153,2154,1904,4,2153,2403,2404,2154,4,2403,2653,2654,2404,4,2653,2903,2904,2654,4,2903,3153,3154,2904,4,3153,3640,3641,3154,4,3290,3640,3641,3291,4,75,521,530,96,4,74,520,521,75,4,74,75,96,95,4,521,771,780,530,4,520,770,771,521,4,771,1021,1030,780,4,770,1020,1021,771,4,1021,1271,1280,1030,4,1020,1270,1271,1021,4,1271,1521,1530,1280,4,1270,1520,1521,1271,4,1521,1771,1780,1530,4,1520,1770,1771,1521,4,1771,2021,2030,1780,4,1770,2020,2021,1771,4,2021,2271,2280,2030,4,2020,2270,2271,2021,4,2271,2521,2530,2280,4,2270,2520,2521,2271,4,2521,2771,2780,2530,4,2520,2770,2771,2521,4,2771,3021,3030,2780,4,2770,3020,3021,2771,4,3021,3312,3333,3030,4,3020,3311,3312,3021,4,3311,3332,3333,3312,4,95,96,117,116,4,3332,3353,3354,3333,4,116,137,546,538,4,137,546,668,418,4,116,117,418,137,4,538,546,796,788,4,546,796,918,668,4,788,796,1046,1038,4,796,1046,1168,918,4,1038,1046,1296,1288,4,1046,1296,1418,1168,4,1288,1296,1546,1538,4,1296,1546,1668,1418,4,1538,1546,1796,1788,4,1546,1796,1918,1668,4,1788,1796,2046,2038,4,1796,2046,2168,1918,4,2038,2046,2296,2288,4,2046,2296,2418,2168,4,2288,2296,2546,2538,4,2296,2546,2668,2418,4,2538,2546,2796,2788,4,2546,2796,2918,2668,4,2788,2796,3046,3038,4,2796,3046,3168,2918,4,3038,3046,3374,3353,4,3046,3374,3655,3168,4,3353,3374,3655,3354,4,138,547,674,424,4,417,667,547,138,4,417,138,424,158,4,547,797,924,674,4,667,917,797,547,4,797,1047,1174,924,4,917,1167,1047,797,4,1047,1297,1424,1174,4,1167,1417,1297,1047,4,1297,1547,1674,1424,4,1417,1667,1547,1297,4,1547,1797,1924,1674,4,1667,1917,1797,1547,4,1797,2047,2174,1924,4,1917,2167,2047,1797,4,2047,2297,2424,2174,4,2167,2417,2297,2047,4,2297,2547,2674,2424,4,2417,2667,2547,2297,4,2547,2797,2924,2674,4,2667,2917,2797,2547,4,2797,3047,3174,2924,4,2917,3167,3047,2797,4,3047,3375,3661,3174,4,3167,3654,3375,3047,4,3654,3395,3661,3375,4,424,674,679,429,4,428,678,679,429,4,158,424,429,428,4,674,924,929,679,4,678,928,929,679,4,924,1174,1179,929,4,928,1178,1179,929,4,1174,1424,1429,1179,4,1178,1428,1429,1179,4,1424,1674,1679,1429,4,1428,1678,1679,1429,4,1674,1924,1929,1679,4,1678,1928,1929,1679,4,1924,2174,2179,1929,4,1928,2178,2179,1929,4,2174,2424,2429,2179,4,2178,2428,2429,2179,4,2424,2674,2679,2429,4,2428,2678,2679,2429,4,2674,2924,2929,2679,4,2678,2928,2929,2679,4,2924,3174,3179,2929,4,2928,3178,3179,2929,4,3174,3661,3666,3179,4,3178,3665,3666,3179,4,3395,3665,3666,3661,4,179,200,569,559,4,431,681,692,442,4,179,559,681,431,4,200,569,692,442,4,179,431,442,200,4,559,569,819,809,4,681,931,942,692,4,559,809,931,681,4,569,819,942,692,4,809,819,1069,1059,4,931,1181,1192,942,4,809,1059,1181,931,4,819,1069,1192,942,4,1059,1069,1319,1309,4,1181,1431,1442,1192,4,1059,1309,1431,1181,4,1069,1319,1442,1192,4,1309,1319,1569,1559,4,1431,1681,1692,1442,4,1309,1559,1681,1431,4,1319,1569,1692,1442,4,1559,1569,1819,1809,4,1681,1931,1942,1692,4,1559,1809,1931,1681,4,1569,1819,1942,1692,4,1809,1819,2069,2059,4,1931,2181,2192,1942,4,1809,2059,2181,1931,4,1819,2069,2192,1942,4,2059,2069,2319,2309,4,2181,2431,2442,2192,4,2059,2309,2431,2181,4,2069,2319,2442,2192,4,2309,2319,2569,2559,4,2431,2681,2692,2442,4,2309,2559,2681,2431,4,2319,2569,2692,2442,4,2559,2569,2819,2809,4,2681,2931,2942,2692,4,2559,2809,2931,2681,4,2569,2819,2942,2692,4,2809,2819,3069,3059,4,2931,3181,3192,2942,4,2809,3059,3181,2931,4,2819,3069,3192,2942,4,3059,3069,3437,3416,4,3181,3668,3679,3192,4,3059,3416,3668,3181,4,3069,3437,3679,3192,4,3416,3437,3679,3668,4,440,221,579,690,4,440,690,570,201,4,221,579,700,450,4,440,201,450,221,4,690,579,829,940,4,690,940,820,570,4,579,829,950,700,4,940,829,1079,1190,4,940,1190,1070,820,4,829,1079,1200,950,4,1190,1079,1329,1440,4,1190,1440,1320,1070,4,1079,1329,1450,1200,4,1440,1329,1579,1690,4,1440,1690,1570,1320,4,1329,1579,1700,1450,4,1690,1579,1829,1940,4,1690,1940,1820,1570,4,1579,1829,1950,1700,4,1940,1829,2079,2190,4,1940,2190,2070,1820,4,1829,2079,2200,1950,4,2190,2079,2329,2440,4,2190,2440,2320,2070,4,2079,2329,2450,2200,4,2440,2329,2579,2690,4,2440,2690,2570,2320,4,2329,2579,2700,2450,4,2690,2579,2829,2940,4,2690,2940,2820,2570,4,2579,2829,2950,2700,4,2940,2829,3079,3190,4,2940,3190,3070,2820,4,2829,3079,3200,2950,4,3190,3079,3458,3677,4,3190,3677,3438,3070,4,3079,3458,3687,3200,4,3677,3458,3687,3438,4,449,242,589,699,4,449,699,580,222,4,242,589,709,459,4,449,222,459,242,4,699,589,839,949,4,699,949,830,580,4,589,839,959,709,4,949,839,1089,1199,4,949,1199,1080,830,4,839,1089,1209,959,4,1199,1089,1339,1449,4,1199,1449,1330,1080,4,1089,1339,1459,1209,4,1449,1339,1589,1699,4,1449,1699,1580,1330,4,1339,1589,1709,1459,4,1699,1589,1839,1949,4,1699,1949,1830,1580,4,1589,1839,1959,1709,4,1949,1839,2089,2199,4,1949,2199,2080,1830,4,1839,2089,2209,1959,4,2199,2089,2339,2449,4,2199,2449,2330,2080,4,2089,2339,2459,2209,4,2449,2339,2589,2699,4,2449,2699,2580,2330,4,2339,2589,2709,2459,4,2699,2589,2839,2949,4,2699,2949,2830,2580,4,2589,2839,2959,2709,4,2949,2839,3089,3199,4,2949,3199,3080,2830,4,2839,3089,3209,2959,4,3199,3089,3479,3686,4,3199,3686,3459,3080,4,3089,3479,3696,3209,4,3686,3479,3696,3459,4,458,708,590,243,4,458,243,264,263,4,708,958,840,590,4,958,1208,1090,840,4,1208,1458,1340,1090,4,1458,1708,1590,1340,4,1708,1958,1840,1590,4,1958,2208,2090,1840,4,2208,2458,2340,2090,4,2458,2708,2590,2340,4,2708,2958,2840,2590,4,2958,3208,3090,2840,4,3208,3695,3480,3090,4,3695,3500,3501,3480,4,263,264,285,284,4,3500,3521,3522,3501,4,284,285,306,305,4,3521,3542,3543,3522,4,305,306,327,326,4,3542,3563,3564,3543,4,326,327,348,347,4,3563,3584,3585,3564,4,347,348,369,368,4,3584,3605,3606,3585,4,389,639,640,390,4,368,369,390,389,4,639,889,890,640,4,889,1139,1140,890,4,1139,1389,1390,1140,4,1389,1639,1640,1390,4,1639,1889,1890,1640,4,1889,2139,2140,1890,4,2139,2389,2390,2140,4,2389,2639,2640,2390,4,2639,2889,2890,2640,4,2889,3139,3140,2890,4,3139,3626,3627,3140,4,3605,3626,3627,3606,4,12,499,500,13,4,12,13,34,33,4,499,749,750,500,4,749,999,1000,750,4,999,1249,1250,1000,4,1249,1499,1500,1250,4,1499,1749,1750,1500,4,1749,1999,2000,1750,4,1999,2249,2250,2000,4,2249,2499,2500,2250,4,2499,2749,2750,2500,4,2749,2999,3000,2750,4,2999,3249,3250,3000,4,3249,3270,3271,3250,4,33,34,55,54,4,3270,3291,3292,3271,4,54,55,76,404,4,3291,3641,3313,3292,4,404,96,530,654,4,404,76,97,96,4,654,530,780,904,4,904,780,1030,1154,4,1154,1030,1280,1404,4,1404,1280,1530,1654,4,1654,1530,1780,1904,4,1904,1780,2030,2154,4,2154,2030,2280,2404,4,2404,2280,2530,2654,4,2654,2530,2780,2904,4,2904,2780,3030,3154,4,3154,3030,3333,3641,4,3641,3333,3334,3313,4,96,97,118,117,4,3333,3354,3355,3334,4,118,539,670,420,4,418,668,670,420,4,117,118,420,418,4,539,789,920,670,4,668,918,920,670,4,789,1039,1170,920,4,918,1168,1170,920,4,1039,1289,1420,1170,4,1168,1418,1420,1170,4,1289,1539,1670,1420,4,1418,1668,1670,1420,4,1539,1789,1920,1670,4,1668,1918,1920,1670,4,1789,2039,2170,1920,4,1918,2168,2170,1920,4,2039,2289,2420,2170,4,2168,2418,2420,2170,4,2289,2539,2670,2420,4,2418,2668,2670,2420,4,2539,2789,2920,2670,4,2668,2918,2920,2670,4,2789,3039,3170,2920,4,2918,3168,3170,2920,4,3039,3355,3657,3170,4,3168,3655,3657,3170,4,3354,3655,3657,3355,4,419,159,553,669,4,139,548,675,425,4,419,669,548,139,4,419,139,425,159,4,669,553,803,919,4,548,798,925,675,4,669,919,798,548,4,919,803,1053,1169,4,798,1048,1175,925,4,919,1169,1048,798,4,1169,1053,1303,1419,4,1048,1298,1425,1175,4,1169,1419,1298,1048,4,1419,1303,1553,1669,4,1298,1548,1675,1425,4,1419,1669,1548,1298,4,1669,1553,1803,1919,4,1548,1798,1925,1675,4,1669,1919,1798,1548,4,1919,1803,2053,2169,4,1798,2048,2175,1925,4,1919,2169,2048,1798,4,2169,2053,2303,2419,4,2048,2298,2425,2175,4,2169,2419,2298,2048,4,2419,2303,2553,2669,4,2298,2548,2675,2425,4,2419,2669,2548,2298,4,2669,2553,2803,2919,4,2548,2798,2925,2675,4,2669,2919,2798,2548,4,2919,2803,3053,3169,4,2798,3048,3175,2925,4,2919,3169,3048,2798,4,3169,3053,3396,3656,4,3048,3376,3662,3175,4,3169,3656,3376,3048,4,3656,3396,3662,3376,4,159,180,560,553,4,425,675,682,432,4,180,560,682,432,4,159,425,432,180,4,553,560,810,803,4,675,925,932,682,4,560,810,932,682,4,803,810,1060,1053,4,925,1175,1182,932,4,810,1060,1182,932,4,1053,1060,1310,1303,4,1175,1425,1432,1182,4,1060,1310,1432,1182,4,1303,1310,1560,1553,4,1425,1675,1682,1432,4,1310,1560,1682,1432,4,1553,1560,1810,1803,4,1675,1925,1932,1682,4,1560,1810,1932,1682,4,1803,1810,2060,2053,4,1925,2175,2182,1932,4,1810,2060,2182,1932,4,2053,2060,2310,2303,4,2175,2425,2432,2182,4,2060,2310,2432,2182,4,2303,2310,2560,2553,4,2425,2675,2682,2432,4,2310,2560,2682,2432,4,2553,2560,2810,2803,4,2675,2925,2932,2682,4,2560,2810,2932,2682,4,2803,2810,3060,3053,4,2925,3175,3182,2932,4,2810,3060,3182,2932,4,3053,3060,3417,3396,4,3175,3662,3669,3182,4,3060,3417,3669,3182,4,3396,3417,3669,3662,4,430,201,570,680,4,430,680,683,433,4,430,433,202,201,4,680,570,820,930,4,680,930,933,683,4,930,820,1070,1180,4,930,1180,1183,933,4,1180,1070,1320,1430,4,1180,1430,1433,1183,4,1430,1320,1570,1680,4,1430,1680,1683,1433,4,1680,1570,1820,1930,4,1680,1930,1933,1683,4,1930,1820,2070,2180,4,1930,2180,2183,1933,4,2180,2070,2320,2430,4,2180,2430,2433,2183,4,2430,2320,2570,2680,4,2430,2680,2683,2433,4,2680,2570,2820,2930,4,2680,2930,2933,2683,4,2930,2820,3070,3180,4,2930,3180,3183,2933,4,3180,3070,3438,3667,4,3180,3667,3670,3183,4,3667,3438,3439,3670,4,450,700,701,451,4,201,202,451,450,4,700,950,951,701,4,950,1200,1201,951,4,1200,1450,1451,1201,4,1450,1700,1701,1451,4,1700,1950,1951,1701,4,1950,2200,2201,1951,4,2200,2450,2451,2201,4,2450,2700,2701,2451,4,2700,2950,2951,2701,4,2950,3200,3201,2951,4,3200,3687,3688,3201,4,3438,3687,3688,3439,4,223,581,710,460,4,222,580,581,223,4,459,709,710,460,4,222,223,460,459,4,581,831,960,710,4,580,830,831,581,4,709,959,960,710,4,831,1081,1210,960,4,830,1080,1081,831,4,959,1209,1210,960,4,1081,1331,1460,1210,4,1080,1330,1331,1081,4,1209,1459,1460,1210,4,1331,1581,1710,1460,4,1330,1580,1581,1331,4,1459,1709,1710,1460,4,1581,1831,1960,1710,4,1580,1830,1831,1581,4,1709,1959,1960,1710,4,1831,2081,2210,1960,4,1830,2080,2081,1831,4,1959,2209,2210,1960,4,2081,2331,2460,2210,4,2080,2330,2331,2081,4,2209,2459,2460,2210,4,2331,2581,2710,2460,4,2330,2580,2581,2331,4,2459,2709,2710,2460,4,2581,2831,2960,2710,4,2580,2830,2831,2581,4,2709,2959,2960,2710,4,2831,3081,3210,2960,4,2830,3080,3081,2831,4,2959,3209,3210,2960,4,3081,3460,3697,3210,4,3080,3459,3460,3081,4,3209,3696,3697,3210,4,3459,3696,3697,3460,4,462,712,723,473,4,243,590,712,462,4,243,462,473,264,4,712,962,973,723,4,590,840,962,712,4,962,1212,1223,973,4,840,1090,1212,962,4,1212,1462,1473,1223,4,1090,1340,1462,1212,4,1462,1712,1723,1473,4,1340,1590,1712,1462,4,1712,1962,1973,1723,4,1590,1840,1962,1712,4,1962,2212,2223,1973,4,1840,2090,2212,1962,4,2212,2462,2473,2223,4,2090,2340,2462,2212,4,2462,2712,2723,2473,4,2340,2590,2712,2462,4,2712,2962,2973,2723,4,2590,2840,2962,2712,4,2962,3212,3223,2973,4,2840,3090,3212,2962,4,3212,3699,3710,3223,4,3090,3480,3699,3212,4,3480,3501,3710,3699,4,264,473,286,285,4,3501,3522,3523,3710,4,285,286,307,306,4,3522,3543,3544,3523,4,306,307,328,327,4,3543,3564,3565,3544,4,327,328,349,348,4,3564,3585,3586,3565,4,348,349,370,369,4,3585,3606,3607,3586,4,390,640,641,391,4,369,370,391,390,4,640,890,891,641,4,890,1140,1141,891,4,1140,1390,1391,1141,4,1390,1640,1641,1391,4,1640,1890,1891,1641,4,1890,2140,2141,1891,4,2140,2390,2391,2141,4,2390,2640,2641,2391,4,2640,2890,2891,2641,4,2890,3140,3141,2891,4,3140,3627,3628,3141,4,3606,3627,3628,3607,4,13,500,501,14,4,13,14,35,34,4,500,750,751,501,4,750,1000,1001,751,4,1000,1250,1251,1001,4,1250,1500,1501,1251,4,1500,1750,1751,1501,4,1750,2000,2001,1751,4,2000,2250,2251,2001,4,2250,2500,2501,2251,4,2500,2750,2751,2501,4,2750,3000,3001,2751,4,3000,3250,3251,3001,4,3250,3271,3272,3251,4,34,35,56,55,4,3271,3292,3293,3272,4,55,56,77,76,4,3292,3313,3314,3293,4,76,77,98,97,4,3313,3334,3335,3314,4,97,98,119,118,4,3334,3355,3356,3335,4,118,421,671,539,4,118,119,140,421,4,539,671,921,789,4,789,921,1171,1039,4,1039,1171,1421,1289,4,1289,1421,1671,1539,4,1539,1671,1921,1789,4,1789,1921,2171,2039,4,2039,2171,2421,2289,4,2289,2421,2671,2539,4,2539,2671,2921,2789,4,2789,2921,3171,3039,4,3039,3171,3658,3355,4,3355,3658,3377,3356,4,421,160,554,671,4,421,140,161,160,4,671,554,804,921,4,921,804,1054,1171,4,1171,1054,1304,1421,4,1421,1304,1554,1671,4,1671,1554,1804,1921,4,1921,1804,2054,2171,4,2171,2054,2304,2421,4,2421,2304,2554,2671,4,2671,2554,2804,2921,4,2921,2804,3054,3171,4,3171,3054,3397,3658,4,3658,3397,3398,3377,4,160,181,561,554,4,181,561,684,434,4,160,161,434,181,4,554,561,811,804,4,561,811,934,684,4,804,811,1061,1054,4,811,1061,1184,934,4,1054,1061,1311,1304,4,1061,1311,1434,1184,4,1304,1311,1561,1554,4,1311,1561,1684,1434,4,1554,1561,1811,1804,4,1561,1811,1934,1684,4,1804,1811,2061,2054,4,1811,2061,2184,1934,4,2054,2061,2311,2304,4,2061,2311,2434,2184,4,2304,2311,2561,2554,4,2311,2561,2684,2434,4,2554,2561,2811,2804,4,2561,2811,2934,2684,4,2804,2811,3061,3054,4,2811,3061,3184,2934,4,3054,3061,3418,3397,4,3061,3418,3671,3184,4,3397,3418,3671,3398,4,182,562,693,443,4,433,683,562,182,4,433,182,443,202,4,562,812,943,693,4,683,933,812,562,4,812,1062,1193,943,4,933,1183,1062,812,4,1062,1312,1443,1193,4,1183,1433,1312,1062,4,1312,1562,1693,1443,4,1433,1683,1562,1312,4,1562,1812,1943,1693,4,1683,1933,1812,1562,4,1812,2062,2193,1943,4,1933,2183,2062,1812,4,2062,2312,2443,2193,4,2183,2433,2312,2062,4,2312,2562,2693,2443,4,2433,2683,2562,2312,4,2562,2812,2943,2693,4,2683,2933,2812,2562,4,2812,3062,3193,2943,4,2933,3183,3062,2812,4,3062,3419,3680,3193,4,3183,3670,3419,3062,4,3670,3439,3680,3419,4,443,693,702,452,4,202,443,452,451,4,693,943,952,702,4,943,1193,1202,952,4,1193,1443,1452,1202,4,1443,1693,1702,1452,4,1693,1943,1952,1702,4,1943,2193,2202,1952,4,2193,2443,2452,2202,4,2443,2693,2702,2452,4,2693,2943,2952,2702,4,2943,3193,3202,2952,4,3193,3680,3689,3202,4,3439,3688,3689,3680,4,451,244,591,701,4,452,702,713,463,4,244,591,713,463,4,451,452,463,244,4,701,591,841,951,4,702,952,963,713,4,591,841,963,713,4,951,841,1091,1201,4,952,1202,1213,963,4,841,1091,1213,963,4,1201,1091,1341,1451,4,1202,1452,1463,1213,4,1091,1341,1463,1213,4,1451,1341,1591,1701,4,1452,1702,1713,1463,4,1341,1591,1713,1463,4,1701,1591,1841,1951,4,1702,1952,1963,1713,4,1591,1841,1963,1713,4,1951,1841,2091,2201,4,1952,2202,2213,1963,4,1841,2091,2213,1963,4,2201,2091,2341,2451,4,2202,2452,2463,2213,4,2091,2341,2463,2213,4,2451,2341,2591,2701,4,2452,2702,2713,2463,4,2341,2591,2713,2463,4,2701,2591,2841,2951,4,2702,2952,2963,2713,4,2591,2841,2963,2713,4,2951,2841,3091,3201,4,2952,3202,3213,2963,4,2841,3091,3213,2963,4,3201,3091,3481,3688,4,3202,3689,3700,3213,4,3091,3481,3700,3213,4,3688,3481,3700,3689,4,461,265,602,711,4,461,711,714,464,4,265,602,724,474,4,461,464,474,265,4,711,602,852,961,4,711,961,964,714,4,602,852,974,724,4,961,852,1102,1211,4,961,1211,1214,964,4,852,1102,1224,974,4,1211,1102,1352,1461,4,1211,1461,1464,1214,4,1102,1352,1474,1224,4,1461,1352,1602,1711,4,1461,1711,1714,1464,4,1352,1602,1724,1474,4,1711,1602,1852,1961,4,1711,1961,1964,1714,4,1602,1852,1974,1724,4,1961,1852,2102,2211,4,1961,2211,2214,1964,4,1852,2102,2224,1974,4,2211,2102,2352,2461,4,2211,2461,2464,2214,4,2102,2352,2474,2224,4,2461,2352,2602,2711,4,2461,2711,2714,2464,4,2352,2602,2724,2474,4,2711,2602,2852,2961,4,2711,2961,2964,2714,4,2602,2852,2974,2724,4,2961,2852,3102,3211,4,2961,3211,3214,2964,4,2852,3102,3224,2974,4,3211,3102,3502,3698,4,3211,3698,3701,3214,4,3102,3502,3711,3224,4,3698,3502,3711,3701,4,473,723,603,266,4,473,266,287,286,4,723,973,853,603,4,973,1223,1103,853,4,1223,1473,1353,1103,4,1473,1723,1603,1353,4,1723,1973,1853,1603,4,1973,2223,2103,1853,4,2223,2473,2353,2103,4,2473,2723,2603,2353,4,2723,2973,2853,2603,4,2973,3223,3103,2853,4,3223,3710,3503,3103,4,3710,3523,3524,3503,4,286,287,308,307,4,3523,3544,3545,3524,4,307,308,329,328,4,3544,3565,3566,3545,4,328,329,350,349,4,3565,3586,3587,3566,4,349,350,371,370,4,3586,3607,3608,3587,4,391,641,642,392,4,370,371,392,391,4,641,891,892,642,4,891,1141,1142,892,4,1141,1391,1392,1142,4,1391,1641,1642,1392,4,1641,1891,1892,1642,4,1891,2141,2142,1892,4,2141,2391,2392,2142,4,2391,2641,2642,2392,4,2641,2891,2892,2642,4,2891,3141,3142,2892,4,3141,3628,3629,3142,4,3607,3628,3629,3608,4,14,501,502,15,4,14,15,36,35,4,501,751,752,502,4,751,1001,1002,752,4,1001,1251,1252,1002,4,1251,1501,1502,1252,4,1501,1751,1752,1502,4,1751,2001,2002,1752,4,2001,2251,2252,2002,4,2251,2501,2502,2252,4,2501,2751,2752,2502,4,2751,3001,3002,2752,4,3001,3251,3252,3002,4,3251,3272,3273,3252,4,35,36,57,56,4,3272,3293,3294,3273,4,56,57,78,77,4,3293,3314,3315,3294,4,77,78,99,98,4,3314,3335,3336,3315,4,98,99,120,119,4,3335,3356,3357,3336,4,119,120,141,140,4,3356,3377,3378,3357,4,140,141,426,161,4,3377,3398,3663,3378,4,426,676,686,436,4,434,684,686,436,4,161,426,436,434,4,676,926,936,686,4,684,934,936,686,4,926,1176,1186,936,4,934,1184,1186,936,4,1176,1426,1436,1186,4,1184,1434,1436,1186,4,1426,1676,1686,1436,4,1434,1684,1686,1436,4,1676,1926,1936,1686,4,1684,1934,1936,1686,4,1926,2176,2186,1936,4,1934,2184,2186,1936,4,2176,2426,2436,2186,4,2184,2434,2436,2186,4,2426,2676,2686,2436,4,2434,2684,2686,2436,4,2676,2926,2936,2686,4,2684,2934,2936,2686,4,2926,3176,3186,2936,4,2934,3184,3186,2936,4,3176,3663,3673,3186,4,3184,3671,3673,3186,4,3398,3671,3673,3663,4,435,203,571,685,4,435,685,563,183,4,435,183,204,203,4,685,571,821,935,4,685,935,813,563,4,935,821,1071,1185,4,935,1185,1063,813,4,1185,1071,1321,1435,4,1185,1435,1313,1063,4,1435,1321,1571,1685,4,1435,1685,1563,1313,4,1685,1571,1821,1935,4,1685,1935,1813,1563,4,1935,1821,2071,2185,4,1935,2185,2063,1813,4,2185,2071,2321,2435,4,2185,2435,2313,2063,4,2435,2321,2571,2685,4,2435,2685,2563,2313,4,2685,2571,2821,2935,4,2685,2935,2813,2563,4,2935,2821,3071,3185,4,2935,3185,3063,2813,4,3185,3071,3440,3672,4,3185,3672,3420,3063,4,3672,3440,3441,3420,4,203,224,582,571,4,203,204,225,224,4,571,582,832,821,4,821,832,1082,1071,4,1071,1082,1332,1321,4,1321,1332,1582,1571,4,1571,1582,1832,1821,4,1821,1832,2082,2071,4,2071,2082,2332,2321,4,2321,2332,2582,2571,4,2571,2582,2832,2821,4,2821,2832,3082,3071,4,3071,3082,3461,3440,4,3440,3461,3462,3441,4,224,245,592,582,4,245,592,715,465,4,224,225,465,245,4,582,592,842,832,4,592,842,965,715,4,832,842,1092,1082,4,842,1092,1215,965,4,1082,1092,1342,1332,4,1092,1342,1465,1215,4,1332,1342,1592,1582,4,1342,1592,1715,1465,4,1582,1592,1842,1832,4,1592,1842,1965,1715,4,1832,1842,2092,2082,4,1842,2092,2215,1965,4,2082,2092,2342,2332,4,2092,2342,2465,2215,4,2332,2342,2592,2582,4,2342,2592,2715,2465,4,2582,2592,2842,2832,4,2592,2842,2965,2715,4,2832,2842,3092,3082,4,2842,3092,3215,2965,4,3082,3092,3482,3461,4,3092,3482,3702,3215,4,3461,3482,3702,3462,4,246,593,725,475,4,464,714,593,246,4,474,724,725,475,4,464,246,475,474,4,593,843,975,725,4,714,964,843,593,4,724,974,975,725,4,843,1093,1225,975,4,964,1214,1093,843,4,974,1224,1225,975,4,1093,1343,1475,1225,4,1214,1464,1343,1093,4,1224,1474,1475,1225,4,1343,1593,1725,1475,4,1464,1714,1593,1343,4,1474,1724,1725,1475,4,1593,1843,1975,1725,4,1714,1964,1843,1593,4,1724,1974,1975,1725,4,1843,2093,2225,1975,4,1964,2214,2093,1843,4,1974,2224,2225,1975,4,2093,2343,2475,2225,4,2214,2464,2343,2093,4,2224,2474,2475,2225,4,2343,2593,2725,2475,4,2464,2714,2593,2343,4,2474,2724,2725,2475,4,2593,2843,2975,2725,4,2714,2964,2843,2593,4,2724,2974,2975,2725,4,2843,3093,3225,2975,4,2964,3214,3093,2843,4,2974,3224,3225,2975,4,3093,3483,3712,3225,4,3214,3701,3483,3093,4,3224,3711,3712,3225,4,3701,3711,3712,3483,4,266,603,726,476,4,266,476,288,287,4,603,853,976,726,4,853,1103,1226,976,4,1103,1353,1476,1226,4,1353,1603,1726,1476,4,1603,1853,1976,1726,4,1853,2103,2226,1976,4,2103,2353,2476,2226,4,2353,2603,2726,2476,4,2603,2853,2976,2726,4,2853,3103,3226,2976,4,3103,3503,3713,3226,4,3503,3524,3525,3713,4,287,288,309,308,4,3524,3545,3546,3525,4,308,309,330,329,4,3545,3566,3567,3546,4,329,330,351,350,4,3566,3587,3588,3567,4,350,351,372,371,4,3587,3608,3609,3588,4,392,642,643,393,4,371,372,393,392,4,642,892,893,643,4,892,1142,1143,893,4,1142,1392,1393,1143,4,1392,1642,1643,1393,4,1642,1892,1893,1643,4,1892,2142,2143,1893,4,2142,2392,2393,2143,4,2392,2642,2643,2393,4,2642,2892,2893,2643,4,2892,3142,3143,2893,4,3142,3629,3630,3143,4,3608,3629,3630,3609,4,15,502,503,16,4,15,16,37,36,4,502,752,753,503,4,752,1002,1003,753,4,1002,1252,1253,1003,4,1252,1502,1503,1253,4,1502,1752,1753,1503,4,1752,2002,2003,1753,4,2002,2252,2253,2003,4,2252,2502,2503,2253,4,2502,2752,2753,2503,4,2752,3002,3003,2753,4,3002,3252,3253,3003,4,3252,3273,3274,3253,4,36,37,58,57,4,3273,3294,3295,3274,4,57,58,79,78,4,3294,3315,3316,3295,4,78,79,100,99,4,3315,3336,3337,3316,4,99,100,121,120,4,3336,3357,3358,3337,4,120,121,422,141,4,3357,3378,3659,3358,4,422,672,677,427,4,426,676,677,427,4,141,422,427,426,4,672,922,927,677,4,676,926,927,677,4,922,1172,1177,927,4,926,1176,1177,927,4,1172,1422,1427,1177,4,1176,1426,1427,1177,4,1422,1672,1677,1427,4,1426,1676,1677,1427,4,1672,1922,1927,1677,4,1676,1926,1927,1677,4,1922,2172,2177,1927,4,1926,2176,2177,1927,4,2172,2422,2427,2177,4,2176,2426,2427,2177,4,2422,2672,2677,2427,4,2426,2676,2677,2427,4,2672,2922,2927,2677,4,2676,2926,2927,2677,4,2922,3172,3177,2927,4,2926,3176,3177,2927,4,3172,3659,3664,3177,4,3176,3663,3664,3177,4,3378,3663,3664,3659,4,162,183,563,555,4,162,555,556,163,4,162,163,184,183,4,555,563,813,805,4,555,805,806,556,4,805,813,1063,1055,4,805,1055,1056,806,4,1055,1063,1313,1305,4,1055,1305,1306,1056,4,1305,1313,1563,1555,4,1305,1555,1556,1306,4,1555,1563,1813,1805,4,1555,1805,1806,1556,4,1805,1813,2063,2055,4,1805,2055,2056,1806,4,2055,2063,2313,2305,4,2055,2305,2306,2056,4,2305,2313,2563,2555,4,2305,2555,2556,2306,4,2555,2563,2813,2805,4,2555,2805,2806,2556,4,2805,2813,3063,3055,4,2805,3055,3056,2806,4,3055,3063,3420,3399,4,3055,3399,3400,3056,4,3399,3420,3421,3400,4,184,564,694,444,4,183,184,444,204,4,564,814,944,694,4,814,1064,1194,944,4,1064,1314,1444,1194,4,1314,1564,1694,1444,4,1564,1814,1944,1694,4,1814,2064,2194,1944,4,2064,2314,2444,2194,4,2314,2564,2694,2444,4,2564,2814,2944,2694,4,2814,3064,3194,2944,4,3064,3421,3681,3194,4,3420,3441,3681,3421,4,204,444,226,225,4,3441,3462,3463,3681,4,225,226,466,465,4,3462,3702,3703,3463,4,465,267,604,715,4,466,716,727,477,4,267,604,727,477,4,465,466,477,267,4,715,604,854,965,4,716,966,977,727,4,604,854,977,727,4,965,854,1104,1215,4,966,1216,1227,977,4,854,1104,1227,977,4,1215,1104,1354,1465,4,1216,1466,1477,1227,4,1104,1354,1477,1227,4,1465,1354,1604,1715,4,1466,1716,1727,1477,4,1354,1604,1727,1477,4,1715,1604,1854,1965,4,1716,1966,1977,1727,4,1604,1854,1977,1727,4,1965,1854,2104,2215,4,1966,2216,2227,1977,4,1854,2104,2227,1977,4,2215,2104,2354,2465,4,2216,2466,2477,2227,4,2104,2354,2477,2227,4,2465,2354,2604,2715,4,2466,2716,2727,2477,4,2354,2604,2727,2477,4,2715,2604,2854,2965,4,2716,2966,2977,2727,4,2604,2854,2977,2727,4,2965,2854,3104,3215,4,2966,3216,3227,2977,4,2854,3104,3227,2977,4,3215,3104,3504,3702,4,3216,3703,3714,3227,4,3104,3504,3714,3227,4,3702,3504,3714,3703,4,476,726,728,478,4,476,478,289,288,4,726,976,978,728,4,976,1226,1228,978,4,1226,1476,1478,1228,4,1476,1726,1728,1478,4,1726,1976,1978,1728,4,1976,2226,2228,1978,4,2226,2476,2478,2228,4,2476,2726,2728,2478,4,2726,2976,2978,2728,4,2976,3226,3228,2978,4,3226,3713,3715,3228,4,3713,3525,3526,3715,4,288,289,310,309,4,3525,3546,3547,3526,4,309,310,331,330,4,3546,3567,3568,3547,4,330,331,352,351,4,3567,3588,3589,3568,4,351,352,373,372,4,3588,3609,3610,3589,4,393,643,644,394,4,372,373,394,393,4,643,893,894,644,4,893,1143,1144,894,4,1143,1393,1394,1144,4,1393,1643,1644,1394,4,1643,1893,1894,1644,4,1893,2143,2144,1894,4,2143,2393,2394,2144,4,2393,2643,2644,2394,4,2643,2893,2894,2644,4,2893,3143,3144,2894,4,3143,3630,3631,3144,4,3609,3630,3631,3610,4,16,503,504,17,4,16,17,38,37,4,503,753,754,504,4,753,1003,1004,754,4,1003,1253,1254,1004,4,1253,1503,1504,1254,4,1503,1753,1754,1504,4,1753,2003,2004,1754,4,2003,2253,2254,2004,4,2253,2503,2504,2254,4,2503,2753,2754,2504,4,2753,3003,3004,2754,4,3003,3253,3254,3004,4,3253,3274,3275,3254,4,37,38,59,58,4,3274,3295,3296,3275,4,58,59,80,79,4,3295,3316,3317,3296,4,79,80,101,100,4,3316,3337,3338,3317,4,101,531,664,414,4,100,101,414,121,4,531,781,914,664,4,781,1031,1164,914,4,1031,1281,1414,1164,4,1281,1531,1664,1414,4,1531,1781,1914,1664,4,1781,2031,2164,1914,4,2031,2281,2414,2164,4,2281,2531,2664,2414,4,2531,2781,2914,2664,4,2781,3031,3164,2914,4,3031,3338,3651,3164,4,3337,3358,3651,3338,4,414,664,673,423,4,422,672,673,423,4,121,414,423,422,4,664,914,923,673,4,672,922,923,673,4,914,1164,1173,923,4,922,1172,1173,923,4,1164,1414,1423,1173,4,1172,1422,1423,1173,4,1414,1664,1673,1423,4,1422,1672,1673,1423,4,1664,1914,1923,1673,4,1672,1922,1923,1673,4,1914,2164,2173,1923,4,1922,2172,2173,1923,4,2164,2414,2423,2173,4,2172,2422,2423,2173,4,2414,2664,2673,2423,4,2422,2672,2673,2423,4,2664,2914,2923,2673,4,2672,2922,2923,2673,4,2914,3164,3173,2923,4,2922,3172,3173,2923,4,3164,3651,3660,3173,4,3172,3659,3660,3173,4,3358,3659,3660,3651,4,142,163,556,549,4,142,549,550,143,4,142,143,164,163,4,549,556,806,799,4,549,799,800,550,4,799,806,1056,1049,4,799,1049,1050,800,4,1049,1056,1306,1299,4,1049,1299,1300,1050,4,1299,1306,1556,1549,4,1299,1549,1550,1300,4,1549,1556,1806,1799,4,1549,1799,1800,1550,4,1799,1806,2056,2049,4,1799,2049,2050,1800,4,2049,2056,2306,2299,4,2049,2299,2300,2050,4,2299,2306,2556,2549,4,2299,2549,2550,2300,4,2549,2556,2806,2799,4,2549,2799,2800,2550,4,2799,2806,3056,3049,4,2799,3049,3050,2800,4,3049,3056,3400,3379,4,3049,3379,3380,3050,4,3379,3400,3401,3380,4,163,164,185,184,4,3400,3421,3422,3401,4,184,205,572,564,4,205,572,695,445,4,184,185,445,205,4,564,572,822,814,4,572,822,945,695,4,814,822,1072,1064,4,822,1072,1195,945,4,1064,1072,1322,1314,4,1072,1322,1445,1195,4,1314,1322,1572,1564,4,1322,1572,1695,1445,4,1564,1572,1822,1814,4,1572,1822,1945,1695,4,1814,1822,2072,2064,4,1822,2072,2195,1945,4,2064,2072,2322,2314,4,2072,2322,2445,2195,4,2314,2322,2572,2564,4,2322,2572,2695,2445,4,2564,2572,2822,2814,4,2572,2822,2945,2695,4,2814,2822,3072,3064,4,2822,3072,3195,2945,4,3064,3072,3442,3421,4,3072,3442,3682,3195,4,3421,3442,3682,3422,4,206,573,703,453,4,444,694,573,206,4,444,206,453,226,4,573,823,953,703,4,694,944,823,573,4,823,1073,1203,953,4,944,1194,1073,823,4,1073,1323,1453,1203,4,1194,1444,1323,1073,4,1323,1573,1703,1453,4,1444,1694,1573,1323,4,1573,1823,1953,1703,4,1694,1944,1823,1573,4,1823,2073,2203,1953,4,1944,2194,2073,1823,4,2073,2323,2453,2203,4,2194,2444,2323,2073,4,2323,2573,2703,2453,4,2444,2694,2573,2323,4,2573,2823,2953,2703,4,2694,2944,2823,2573,4,2823,3073,3203,2953,4,2944,3194,3073,2823,4,3073,3443,3690,3203,4,3194,3681,3443,3073,4,3681,3463,3690,3443,4,453,703,717,467,4,466,716,717,467,4,226,453,467,466,4,703,953,967,717,4,716,966,967,717,4,953,1203,1217,967,4,966,1216,1217,967,4,1203,1453,1467,1217,4,1216,1466,1467,1217,4,1453,1703,1717,1467,4,1466,1716,1717,1467,4,1703,1953,1967,1717,4,1716,1966,1967,1717,4,1953,2203,2217,1967,4,1966,2216,2217,1967,4,2203,2453,2467,2217,4,2216,2466,2467,2217,4,2453,2703,2717,2467,4,2466,2716,2717,2467,4,2703,2953,2967,2717,4,2716,2966,2967,2717,4,2953,3203,3217,2967,4,2966,3216,3217,2967,4,3203,3690,3704,3217,4,3216,3703,3704,3217,4,3463,3703,3704,3690,4,247,268,605,594,4,247,594,718,468,4,268,605,729,479,4,247,468,479,268,4,594,605,855,844,4,594,844,968,718,4,605,855,979,729,4,844,855,1105,1094,4,844,1094,1218,968,4,855,1105,1229,979,4,1094,1105,1355,1344,4,1094,1344,1468,1218,4,1105,1355,1479,1229,4,1344,1355,1605,1594,4,1344,1594,1718,1468,4,1355,1605,1729,1479,4,1594,1605,1855,1844,4,1594,1844,1968,1718,4,1605,1855,1979,1729,4,1844,1855,2105,2094,4,1844,2094,2218,1968,4,1855,2105,2229,1979,4,2094,2105,2355,2344,4,2094,2344,2468,2218,4,2105,2355,2479,2229,4,2344,2355,2605,2594,4,2344,2594,2718,2468,4,2355,2605,2729,2479,4,2594,2605,2855,2844,4,2594,2844,2968,2718,4,2605,2855,2979,2729,4,2844,2855,3105,3094,4,2844,3094,3218,2968,4,2855,3105,3229,2979,4,3094,3105,3505,3484,4,3094,3484,3705,3218,4,3105,3505,3716,3229,4,3484,3505,3716,3705,4,269,606,613,290,4,478,728,606,269,4,478,269,290,289,4,606,856,863,613,4,728,978,856,606,4,856,1106,1113,863,4,978,1228,1106,856,4,1106,1356,1363,1113,4,1228,1478,1356,1106,4,1356,1606,1613,1363,4,1478,1728,1606,1356,4,1606,1856,1863,1613,4,1728,1978,1856,1606,4,1856,2106,2113,1863,4,1978,2228,2106,1856,4,2106,2356,2363,2113,4,2228,2478,2356,2106,4,2356,2606,2613,2363,4,2478,2728,2606,2356,4,2606,2856,2863,2613,4,2728,2978,2856,2606,4,2856,3106,3113,2863,4,2978,3228,3106,2856,4,3106,3506,3527,3113,4,3228,3715,3506,3106,4,3715,3526,3527,3506,4,289,290,311,310,4,3526,3547,3548,3527,4,310,311,332,331,4,3547,3568,3569,3548,4,331,332,353,352,4,3568,3589,3590,3569,4,352,353,374,373,4,3589,3610,3611,3590,4,394,644,645,395,4,373,374,395,394,4,644,894,895,645,4,894,1144,1145,895,4,1144,1394,1395,1145,4,1394,1644,1645,1395,4,1644,1894,1895,1645,4,1894,2144,2145,1895,4,2144,2394,2395,2145,4,2394,2644,2645,2395,4,2644,2894,2895,2645,4,2894,3144,3145,2895,4,3144,3631,3632,3145,4,3610,3631,3632,3611,4,17,504,505,18,4,17,18,39,38,4,504,754,755,505,4,754,1004,1005,755,4,1004,1254,1255,1005,4,1254,1504,1505,1255,4,1504,1754,1755,1505,4,1754,2004,2005,1755,4,2004,2254,2255,2005,4,2254,2504,2505,2255,4,2504,2754,2755,2505,4,2754,3004,3005,2755,4,3004,3254,3255,3005,4,3254,3275,3276,3255,4,38,39,60,59,4,3275,3296,3297,3276,4,59,60,81,80,4,3296,3317,3318,3297,4,80,81,102,101,4,3317,3338,3339,3318,4,101,122,540,531,4,101,102,123,122,4,531,540,790,781,4,781,790,1040,1031,4,1031,1040,1290,1281,4,1281,1290,1540,1531,4,1531,1540,1790,1781,4,1781,1790,2040,2031,4,2031,2040,2290,2281,4,2281,2290,2540,2531,4,2531,2540,2790,2781,4,2781,2790,3040,3031,4,3031,3040,3359,3338,4,3338,3359,3360,3339,4,122,143,550,540,4,122,123,144,143,4,540,550,800,790,4,790,800,1050,1040,4,1040,1050,1300,1290,4,1290,1300,1550,1540,4,1540,1550,1800,1790,4,1790,1800,2050,2040,4,2040,2050,2300,2290,4,2290,2300,2550,2540,4,2540,2550,2800,2790,4,2790,2800,3050,3040,4,3040,3050,3380,3359,4,3359,3380,3381,3360,4,143,144,165,164,4,3380,3401,3402,3381,4,164,165,186,185,4,3401,3422,3423,3402,4,185,186,207,445,4,3422,3682,3444,3423,4,445,227,583,695,4,445,207,228,227,4,695,583,833,945,4,945,833,1083,1195,4,1195,1083,1333,1445,4,1445,1333,1583,1695,4,1695,1583,1833,1945,4,1945,1833,2083,2195,4,2195,2083,2333,2445,4,2445,2333,2583,2695,4,2695,2583,2833,2945,4,2945,2833,3083,3195,4,3195,3083,3464,3682,4,3682,3464,3465,3444,4,227,248,595,583,4,248,595,719,469,4,227,228,469,248,4,583,595,845,833,4,595,845,969,719,4,833,845,1095,1083,4,845,1095,1219,969,4,1083,1095,1345,1333,4,1095,1345,1469,1219,4,1333,1345,1595,1583,4,1345,1595,1719,1469,4,1583,1595,1845,1833,4,1595,1845,1969,1719,4,1833,1845,2095,2083,4,1845,2095,2219,1969,4,2083,2095,2345,2333,4,2095,2345,2469,2219,4,2333,2345,2595,2583,4,2345,2595,2719,2469,4,2583,2595,2845,2833,4,2595,2845,2969,2719,4,2833,2845,3095,3083,4,2845,3095,3219,2969,4,3083,3095,3485,3464,4,3095,3485,3706,3219,4,3464,3485,3706,3465,4,249,596,730,480,4,468,718,596,249,4,468,249,480,479,4,596,846,980,730,4,718,968,846,596,4,846,1096,1230,980,4,968,1218,1096,846,4,1096,1346,1480,1230,4,1218,1468,1346,1096,4,1346,1596,1730,1480,4,1468,1718,1596,1346,4,1596,1846,1980,1730,4,1718,1968,1846,1596,4,1846,2096,2230,1980,4,1968,2218,2096,1846,4,2096,2346,2480,2230,4,2218,2468,2346,2096,4,2346,2596,2730,2480,4,2468,2718,2596,2346,4,2596,2846,2980,2730,4,2718,2968,2846,2596,4,2846,3096,3230,2980,4,2968,3218,3096,2846,4,3096,3486,3717,3230,4,3218,3705,3486,3096,4,3705,3716,3717,3486,4,479,290,613,729,4,480,730,734,484,4,479,480,484,290,4,729,613,863,979,4,730,980,984,734,4,979,863,1113,1229,4,980,1230,1234,984,4,1229,1113,1363,1479,4,1230,1480,1484,1234,4,1479,1363,1613,1729,4,1480,1730,1734,1484,4,1729,1613,1863,1979,4,1730,1980,1984,1734,4,1979,1863,2113,2229,4,1980,2230,2234,1984,4,2229,2113,2363,2479,4,2230,2480,2484,2234,4,2479,2363,2613,2729,4,2480,2730,2734,2484,4,2729,2613,2863,2979,4,2730,2980,2984,2734,4,2979,2863,3113,3229,4,2980,3230,3234,2984,4,3229,3113,3527,3716,4,3230,3717,3721,3234,4,3716,3527,3721,3717,4,290,484,312,311,4,3527,3548,3549,3721,4,311,312,333,332,4,3548,3569,3570,3549,4,332,333,354,353,4,3569,3590,3591,3570,4,353,354,375,374,4,3590,3611,3612,3591,4,395,645,646,396,4,374,375,396,395,4,645,895,896,646,4,895,1145,1146,896,4,1145,1395,1396,1146,4,1395,1645,1646,1396,4,1645,1895,1896,1646,4,1895,2145,2146,1896,4,2145,2395,2396,2146,4,2395,2645,2646,2396,4,2645,2895,2896,2646,4,2895,3145,3146,2896,4,3145,3632,3633,3146,4,3611,3632,3633,3612,4,18,505,506,19,4,18,19,40,39,4,505,755,756,506,4,755,1005,1006,756,4,1005,1255,1256,1006,4,1255,1505,1506,1256,4,1505,1755,1756,1506,4,1755,2005,2006,1756,4,2005,2255,2256,2006,4,2255,2505,2506,2256,4,2505,2755,2756,2506,4,2755,3005,3006,2756,4,3005,3255,3256,3006,4,3255,3276,3277,3256,4,39,40,61,60,4,3276,3297,3298,3277,4,60,61,82,81,4,3297,3318,3319,3298,4,81,82,103,102,4,3318,3339,3340,3319,4,102,103,124,123,4,3339,3360,3361,3340,4,123,124,145,144,4,3360,3381,3382,3361,4,144,145,166,165,4,3381,3402,3403,3382,4,165,166,187,186,4,3402,3423,3424,3403,4,186,187,208,207,4,3423,3444,3445,3424,4,207,208,229,228,4,3444,3465,3466,3445,4,228,229,250,469,4,3465,3706,3487,3466,4,469,270,607,719,4,469,250,271,270,4,719,607,857,969,4,969,857,1107,1219,4,1219,1107,1357,1469,4,1469,1357,1607,1719,4,1719,1607,1857,1969,4,1969,1857,2107,2219,4,2219,2107,2357,2469,4,2469,2357,2607,2719,4,2719,2607,2857,2969,4,2969,2857,3107,3219,4,3219,3107,3507,3706,4,3706,3507,3508,3487,4,270,291,614,607,4,291,614,615,292,4,270,271,292,291,4,607,614,864,857,4,614,864,865,615,4,857,864,1114,1107,4,864,1114,1115,865,4,1107,1114,1364,1357,4,1114,1364,1365,1115,4,1357,1364,1614,1607,4,1364,1614,1615,1365,4,1607,1614,1864,1857,4,1614,1864,1865,1615,4,1857,1864,2114,2107,4,1864,2114,2115,1865,4,2107,2114,2364,2357,4,2114,2364,2365,2115,4,2357,2364,2614,2607,4,2364,2614,2615,2365,4,2607,2614,2864,2857,4,2614,2864,2865,2615,4,2857,2864,3114,3107,4,2864,3114,3115,2865,4,3107,3114,3528,3507,4,3114,3528,3529,3115,4,3507,3528,3529,3508,4,484,734,615,292,4,484,292,313,312,4,734,984,865,615,4,984,1234,1115,865,4,1234,1484,1365,1115,4,1484,1734,1615,1365,4,1734,1984,1865,1615,4,1984,2234,2115,1865,4,2234,2484,2365,2115,4,2484,2734,2615,2365,4,2734,2984,2865,2615,4,2984,3234,3115,2865,4,3234,3721,3529,3115,4,3721,3549,3550,3529,4,312,313,334,333,4,3549,3570,3571,3550,4,333,334,355,354,4,3570,3591,3592,3571,4,354,355,376,375,4,3591,3612,3613,3592,4,396,646,647,397,4,375,376,397,396,4,646,896,897,647,4,896,1146,1147,897,4,1146,1396,1397,1147,4,1396,1646,1647,1397,4,1646,1896,1897,1647,4,1896,2146,2147,1897,4,2146,2396,2397,2147,4,2396,2646,2647,2397,4,2646,2896,2897,2647,4,2896,3146,3147,2897,4,3146,3633,3634,3147,4,3612,3633,3634,3613,4,20,507,509,41,4,19,506,507,20,4,19,20,41,40,4,507,757,759,509,4,506,756,757,507,4,757,1007,1009,759,4,756,1006,1007,757,4,1007,1257,1259,1009,4,1006,1256,1257,1007,4,1257,1507,1509,1259,4,1256,1506,1507,1257,4,1507,1757,1759,1509,4,1506,1756,1757,1507,4,1757,2007,2009,1759,4,1756,2006,2007,1757,4,2007,2257,2259,2009,4,2006,2256,2257,2007,4,2257,2507,2509,2259,4,2256,2506,2507,2257,4,2507,2757,2759,2509,4,2506,2756,2757,2507,4,2757,3007,3009,2759,4,2756,3006,3007,2757,4,3007,3257,3278,3009,4,3006,3256,3257,3007,4,3256,3277,3278,3257,4,41,509,513,62,4,40,41,62,61,4,509,759,763,513,4,759,1009,1013,763,4,1009,1259,1263,1013,4,1259,1509,1513,1263,4,1509,1759,1763,1513,4,1759,2009,2013,1763,4,2009,2259,2263,2013,4,2259,2509,2513,2263,4,2509,2759,2763,2513,4,2759,3009,3013,2763,4,3009,3278,3299,3013,4,3277,3298,3299,3278,4,62,513,522,83,4,61,62,83,82,4,513,763,772,522,4,763,1013,1022,772,4,1013,1263,1272,1022,4,1263,1513,1522,1272,4,1513,1763,1772,1522,4,1763,2013,2022,1772,4,2013,2263,2272,2022,4,2263,2513,2522,2272,4,2513,2763,2772,2522,4,2763,3013,3022,2772,4,3013,3299,3320,3022,4,3298,3319,3320,3299,4,83,522,532,104,4,82,83,104,103,4,522,772,782,532,4,772,1022,1032,782,4,1022,1272,1282,1032,4,1272,1522,1532,1282,4,1522,1772,1782,1532,4,1772,2022,2032,1782,4,2022,2272,2282,2032,4,2272,2522,2532,2282,4,2522,2772,2782,2532,4,2772,3022,3032,2782,4,3022,3320,3341,3032,4,3319,3340,3341,3320,4,104,532,541,125,4,103,104,125,124,4,532,782,791,541,4,782,1032,1041,791,4,1032,1282,1291,1041,4,1282,1532,1541,1291,4,1532,1782,1791,1541,4,1782,2032,2041,1791,4,2032,2282,2291,2041,4,2282,2532,2541,2291,4,2532,2782,2791,2541,4,2782,3032,3041,2791,4,3032,3341,3362,3041,4,3340,3361,3362,3341,4,125,541,551,146,4,124,125,146,145,4,541,791,801,551,4,791,1041,1051,801,4,1041,1291,1301,1051,4,1291,1541,1551,1301,4,1541,1791,1801,1551,4,1791,2041,2051,1801,4,2041,2291,2301,2051,4,2291,2541,2551,2301,4,2541,2791,2801,2551,4,2791,3041,3051,2801,4,3041,3362,3383,3051,4,3361,3382,3383,3362,4,146,551,557,167,4,145,146,167,166,4,551,801,807,557,4,801,1051,1057,807,4,1051,1301,1307,1057,4,1301,1551,1557,1307,4,1551,1801,1807,1557,4,1801,2051,2057,1807,4,2051,2301,2307,2057,4,2301,2551,2557,2307,4,2551,2801,2807,2557,4,2801,3051,3057,2807,4,3051,3383,3404,3057,4,3382,3403,3404,3383,4,167,557,565,188,4,166,167,188,187,4,557,807,815,565,4,807,1057,1065,815,4,1057,1307,1315,1065,4,1307,1557,1565,1315,4,1557,1807,1815,1565,4,1807,2057,2065,1815,4,2057,2307,2315,2065,4,2307,2557,2565,2315,4,2557,2807,2815,2565,4,2807,3057,3065,2815,4,3057,3404,3425,3065,4,3403,3424,3425,3404,4,188,565,574,209,4,187,188,209,208,4,565,815,824,574,4,815,1065,1074,824,4,1065,1315,1324,1074,4,1315,1565,1574,1324,4,1565,1815,1824,1574,4,1815,2065,2074,1824,4,2065,2315,2324,2074,4,2315,2565,2574,2324,4,2565,2815,2824,2574,4,2815,3065,3074,2824,4,3065,3425,3446,3074,4,3424,3445,3446,3425,4,209,574,584,230,4,208,209,230,229,4,574,824,834,584,4,824,1074,1084,834,4,1074,1324,1334,1084,4,1324,1574,1584,1334,4,1574,1824,1834,1584,4,1824,2074,2084,1834,4,2074,2324,2334,2084,4,2324,2574,2584,2334,4,2574,2824,2834,2584,4,2824,3074,3084,2834,4,3074,3446,3467,3084,4,3445,3466,3467,3446,4,230,584,597,251,4,229,230,251,250,4,584,834,847,597,4,834,1084,1097,847,4,1084,1334,1347,1097,4,1334,1584,1597,1347,4,1584,1834,1847,1597,4,1834,2084,2097,1847,4,2084,2334,2347,2097,4,2334,2584,2597,2347,4,2584,2834,2847,2597,4,2834,3084,3097,2847,4,3084,3467,3488,3097,4,3466,3487,3488,3467,4,251,597,608,272,4,250,251,272,271,4,597,847,858,608,4,847,1097,1108,858,4,1097,1347,1358,1108,4,1347,1597,1608,1358,4,1597,1847,1858,1608,4,1847,2097,2108,1858,4,2097,2347,2358,2108,4,2347,2597,2608,2358,4,2597,2847,2858,2608,4,2847,3097,3108,2858,4,3097,3488,3509,3108,4,3487,3508,3509,3488,4,272,608,616,293,4,271,272,293,292,4,608,858,866,616,4,858,1108,1116,866,4,1108,1358,1366,1116,4,1358,1608,1616,1366,4,1608,1858,1866,1616,4,1858,2108,2116,1866,4,2108,2358,2366,2116,4,2358,2608,2616,2366,4,2608,2858,2866,2616,4,2858,3108,3116,2866,4,3108,3509,3530,3116,4,3508,3529,3530,3509,4,293,616,620,314,4,292,293,314,313,4,616,866,870,620,4,866,1116,1120,870,4,1116,1366,1370,1120,4,1366,1616,1620,1370,4,1616,1866,1870,1620,4,1866,2116,2120,1870,4,2116,2366,2370,2120,4,2366,2616,2620,2370,4,2616,2866,2870,2620,4,2866,3116,3120,2870,4,3116,3530,3551,3120,4,3529,3550,3551,3530,4,314,620,623,335,4,313,314,335,334,4,620,870,873,623,4,870,1120,1123,873,4,1120,1370,1373,1123,4,1370,1620,1623,1373,4,1620,1870,1873,1623,4,1870,2120,2123,1873,4,2120,2370,2373,2123,4,2370,2620,2623,2373,4,2620,2870,2873,2623,4,2870,3120,3123,2873,4,3120,3551,3572,3123,4,3550,3571,3572,3551,4,335,623,625,356,4,334,335,356,355,4,623,873,875,625,4,873,1123,1125,875,4,1123,1373,1375,1125,4,1373,1623,1625,1375,4,1623,1873,1875,1625,4,1873,2123,2125,1875,4,2123,2373,2375,2125,4,2373,2623,2625,2375,4,2623,2873,2875,2625,4,2873,3123,3125,2875,4,3123,3572,3593,3125,4,3571,3592,3593,3572,4,356,625,627,377,4,355,356,377,376,4,625,875,877,627,4,875,1125,1127,877,4,1125,1375,1377,1127,4,1375,1625,1627,1377,4,1625,1875,1877,1627,4,1875,2125,2127,1877,4,2125,2375,2377,2127,4,2375,2625,2627,2377,4,2625,2875,2877,2627,4,2875,3125,3127,2877,4,3125,3593,3614,3127,4,3592,3613,3614,3593,4,377,627,648,398,4,397,647,648,398,4,376,377,398,397,4,627,877,898,648,4,647,897,898,648,4,877,1127,1148,898,4,897,1147,1148,898,4,1127,1377,1398,1148,4,1147,1397,1398,1148,4,1377,1627,1648,1398,4,1397,1647,1648,1398,4,1627,1877,1898,1648,4,1647,1897,1898,1648,4,1877,2127,2148,1898,4,1897,2147,2148,1898,4,2127,2377,2398,2148,4,2147,2397,2398,2148,4,2377,2627,2648,2398,4,2397,2647,2648,2398,4,2627,2877,2898,2648,4,2647,2897,2898,2648,4,2877,3127,3148,2898,4,2897,3147,3148,2898,4,3127,3614,3635,3148,4,3147,3634,3635,3148,4,3613,3634,3635,3614]"),DiscreteProperty_Polys_namespaceObject=__webpack_require__.t(Polys_namespaceObject,2),Props_namespaceObject=JSON.parse("[4,4,4,4,4,4,4,9,9,11,11,8,8,7,7,2,2,1,1,5,5,6,6,0,4,4,4,4,10,6,6,2,1,11,6,9,9,1,6,6,6,6,5,10,11,9,11,8,8,6,5,4,4,4,4,4,8,1,9,3,5,10,11,3,3,5,7,7,10,10,1,0,11,11,3,3,3,0,4,2,5,5,8,8,10,7,6,6,3,8,4,0,7,6,0,6,5,5,8,7,1,6,4,11,7,3,3,3,0,11,4,4,3,10,4,5,0,4,2,3,5,3,10,10,8,8,9,7,11,9,4,5,1,1,11,2,1,1,10,10,10,10,0,7,7,3,8,3,9,5,2,2,9,9,4,5,4,0,11,6,7,10,6,1,5,5,7,7,4,3,8,2,5,7,8,0,5,1,5,5,5,5,7,0,10,4,2,5,9,8,10,8,10,10,10,10,11,5,8,2,3,6,9,10,11,5,8,8,11,11,0,9,0,0,2,5,3,5,3,7,1,1,7,7,8,10,3,4,9,11,1,9,1,5,10,10,2,2,4,5,5,4,11,4,0,0,10,11,4,4,11,11,11,2,2,10,10,8,8,7,7,4,4,0,6,2,2,3,3,11,11,1,1,5,5,5,2,2,1,5,8,8,7,3,6,1,6,10,11,11,8,4,11,11,4,3,11,3,7,5,4,8,8,0,3,3,9,9,9,2,2,8,8,2,2,1,1,11,11,0,1,11,11,1,1,3,3,10,10,11,11,11,0,4,0,8,9,2,11,3,1,1,4,8,10,7,5,3,9,10,0,9,5,6,6,7,7,2,9,9,10,9,3,7,10,10,8,2,4,9,2,2,1,1,11,9,1,4,2,8,8,4,2,10,7,7,9,5,10,7,10,10,10,10,10,5,5,11,11,0,3,6,6,5,5,8,8,9,9,0,2,0,4,9,9,9,9,9,7,0,0,4,9,6,5,6,3,6,9,9,6,6,10,10,4,0,10,2,8,4,1,8,8,3,2,6,5,10,1,1,6,5,7,10,4,2,5,5,1,9,4,4,3,10,11,4,7,7,5,6,4,4,1,11,5,1,8,3,7,7,6,6,10,11,5,11,2,1,1,9,10,2,2,2,2,3,7,10,7,7,7,3,0,5,1,11,10,3,3,9,5,5,0,5,3,4,7,11,3,2,11,4,11,0,7,7,2,8,4,7,2,5,8,9,9,10,9,5,11,8,2,0,6,6,6,8,8,11,11,8,8,5,5,10,10,11,11,8,8,0,11,6,6,11,11,8,8,8,9,9,9,5,5,0,7,9,9,0,4,0,5,4,4,10,10,0,0,4,4,7,7,1,1,1,11,11,3,9,8,8,10,10,2,8,7,5,7,9,4,1,7,7,3,3,2,2,11,11,2,6,5,6,0,11,5,5,0,8,7,8,3,3,6,6,9,5,0,10,1,4,6,4,0,8,1,1,1,1,1,1,1,0,3,5,5,8,8,11,11,8,8,4,4,2,2,4,4,11,11,11,7,1,2,7,0,9,11,1,11,9,11,4,0,4,9,9,1,3,5,8,4,11,1,2,6,5,4,4,9,9,9,1,1,5,5,2,2,7,7,11,11,3,3,4,4,6,6,9,9,4,4,8,8,8,8,11,0,0,7,1,9,9,0,10,3,6,6,11,0,10,2,5,2,2,5,5,1,10,7,3,11,5,11,3,10,10,3,3,8,6,11,1,0,3,10,10,10,10,10,2,2,10,10,7,7,11,11,4,4,7,7,2,2,11,11,2,2,3,3,3,0,4,1,10,1,1,5,10,7,3,6,7,5,5,3,5,9,10,5,6,2,6,6,4,3,2,8,8,8,10,10,8,8,9,9,11,11,10,10,4,4,10,10,4,4,3,3,1,1,1,1,1,8,8,11,8,7,10,4,11,6,7,2,6,0,7,4,11,11,11,6,6,7,7,7,9,0,6,10,4,4,10,0,0,3,3,5,5,0,5,1,8,1,0,1,4,2,10,5,5,5,5,9,11,11,6,9,0,8,5,7,5,6,6,3,3,3,0,5,3,3,9,9,9,9,4,4,6,6,6,6,4,4,4,4,0,2,11,11,11,4,6,3,3,6,0,0,5,3,9,8,7,11,3,1,1,10,10,7,8,9,9,5,4,4,5,8,11,6,6,7,1,8,8,1,4,8,3,1,5,4,4,1,5,4,10,10,4,7,5,10,4,5,5,1,1,1,0,11,6,6,7,7,10,10,7,7,9,9,4,4,4,4,2,2,8,8,7,7,7,0,3,7,11,0,4,5,3,11,11,3,3,7,11,5,7,5,9,8,5,3,3,8,8,10,2,11,3,8,9,8,9,7,8,9,9,0,5,10,10,10,3,3,4,4,3,3,7,7,2,2,9,9,6,6,1,1,5,5,2,2,4,4,4,5,5,5,1,1,6,6,7,7,2,2,2,2,2,2,0,0,0,1,10,10,10,10,4,4,4,4,4,10,1,3,10,10,8,5,8,0,7,2,2,10,10,10,3,3,4,4,2,2,1,1,2,2,8,8,7,7,8,8,11,11,6,6,4,4,4,2,4,9,8,2,2,3,3,0,8,7,4,6,7,8,7,5,0,6,6,0,10,5,4,6,3,1,11,4,1,7,10,2,2,4,4,4,7,7,0,2,9,9,5,5,3,3,4,4,8,8,3,3,0,11,1,1,9,9,9,11,11,1,2,10,10,1,10,5,7,3,2,7,7,7,9,0,9,6,5,0,6,9,9,6,11,2,1,0,5,6,11,3,10,5,5,11,11,1,3,6,8,10,2,4,2,6,2,4,4,2,6,0,0,7,7,7,3,3,9,9,4,4,10,10,3,3,10,10,7,7,10,10,4,4,5,5,11,11,11,9,9,0,8,6,3,10,8,2,6,9,11,5,5,3,3,3,2,2,10,10,4,4,5,5,4,4,11,11,11,11,1,1,10,10,9,9,3,3,3,4,4,9,11,9,5,9,3,11,2,0,1,11,11,3,11,1,4,3,3,3,1,1,1,1,10,10,6,6,10,10,10,10,1,1,6,6,0,7,9,9,2,2,2,7,7,7,4,4,3,3,8,8,10,10,2,2,4,4,2,2,7,7,1,1,6,6,5,5,5,2,2,2,5,5,4,4,11,11,0,5,1,1,8,8,3,3,2,2,7,7,9,9,8,8,8,1,2,6,7,2,2,2,6,0,3,9,9,5,9,10,10,0,0,4,9,8,0,5,5,11,11,1,6,9,9,5,3,0,6,8,10,11,11,6,4,10,5,7,9,5,10,6,6,4,9,8,7,8,1,5,4,2,7,2,2,6,6,10,7,8,7,8,6,6,5,10,11,0,8,8,4,10,10,5,4,3,1,7,10,8,0,2,10,1,1,6,6,6,9,9,6,6,9,9,11,11,0,3,5,5,2,2,5,5,7,7,8,8,6,6,6,11,11,10,7,8,5,6,8,8,8,3,4,9,9,3,3,3,7,1,11,0,2,10,7,5,7,7,7,7,11,5,3,2,10,6,8,1,8,7,7,3,2,4,9,1,7,4,8,1,10,7,7,4,4,2,4,10,3,0,5,7,0,7,1,5,5,9,5,5,5,9,5,8,2,0,11,5,8,7,3,10,10,2,2,10,4,10,6,2,0,0,9,11,1,7,7,10,3,6,6,11,10,8,10,11,5,10,5,6,6,6,6,6,1,2,9,2,2,2,10,10,0,4,9,9,2,2,9,9,4,4,10,10,6,6,2,2,10,10,4,4,4,0,7,7,9,9,10,10,10,10,9,9,11,11,3,3,11,11,6,6,3,3,2,2,4,4,4,10,10,10,1,1,8,8,5,5,2,2,5,5,6,6,1,1,0,4,8,8,5,5,9,9,9,4,4,9,7,0,3,4,1,4,2,10,9,11,11,9,1,7,8,10,11,11,2,0,6,1,1,10,5,2,0,4,11,9,9,2,8,5,5,10,10,1,2,5,5,2,0,2,11,11,6,0,10,10,9,8,8,0,10,2,9,9,3,7,1,1,0,4,4,6,6,6,3,3,4,4,7,7,9,9,7,7,8,8,1,1,8,8,5,5,4,4,4,4,4,2,8,3,3,3,10,10,6,6,2,2,6,6,11,11,6,6,3,3,3,3,0,7,5,5,1,1,1,10,10,10,1,1,7,7,10,10,5,5,6,6,11,11,0,6,1,1,10,10,6,6,4,4,4,9,9,9,10,10,9,9,5,5,6,6,1,1,6,6,3,3,4,4,9,9,0,7,3,3,3,10,10,10,10,10,4,4,4,4,8,8,8,8,1,1,1,1,5,5,5,5,10,10,10,10,1,1,1,1,3,3,3,3,8,8,8,8,7,7,7,7,8,8,8,8,11,11,11,11,11,8,8,8,8,11,11,11,2,2,2,11,11,11,5,5,5,2,2,2,4,4,4,11,11,11,7,7,7,10,10,10,3,3,3,10,10,10,10,4,4,4,4,1,1,1,1,1,1,8,8,8,5,5,5,9,9,9,11,11,11,2,2,2,9,9,9,11,11,11,1,1,1,5,5,5,5,3,3,0,2,9,2,7,1,7,8,7,9,8,8,6,10,9,0,10,2,6,11,7,8,4,4,7,10,3,1,3,1,10,2,2,4,2,2,5,5,3,5,3,11,0,0,11,4,6,6,2,2,7,6,8,11,7,7,6,1,9,6,6,2,1,8,2,0,3,3,4,2,11,11,11,1,1,7,7,3,3,4,4,2,2,1,1,10,10,10,10,10,10,10,10,3,3,3,11,11,11,11,0,4,4,0,6,6,9,9,9,8,8,8,8,8,8,9,9,9,2,2,2,3,3,3,0,5,5,10,10,10,5,5,5,5,3,3,3,3,0,1,1,9,9,9,3,3,3,6,6,6,4,4,4,1,1,1,1,1,1,2,2,2,9,9,9,9,9,9,9,9,9,9,3,3,3,0,10,1,1,8,8,9,9,10,10,7,7,4,4,0,5,7,7,5,5,0,8,8,10,10,0,5,10,0,0,8,3,0,11,6,3,3,1,1,1,1,8,8,8,10,10,10,11,11,11,4,4,4,1,1,1,7,7,7,4,4,4,0,2,2,4,4,4,7,7,7,9,9,9,9,4,4,4,4,4,8,8,6,6,11,11,3,3,1,1,8,8,2,2,4,4,11,11,4,4,4,5,1,9,7,11,1,11,0,4,9,6,6,2,6,0,11,9,5,3,11,10,5,4,4,7,7,9,2,5,8,10,9,1,6,9,5,11,11,0,5,4,1,3,0,11,4,3,3,2,8,2,11,11,9,10,2,6,3,9,9,4,4,0,5,1,9,7,6,2,10,5,11,8,8,4,4,4,11,11,2,2,10,10,11,11,11,11,3,3,1,1,9,9,0,11,0,7,8,8,8,10,10,10,2,2,11,11,6,6,3,3,7,7,4,4,2,2,7,7,6,6,4,4,3,3,3,11,11,5,9,7,11,11,6,4,10,1,4,3,3,1,1,1,1,0,2,2,9,9,9,10,10,10,4,4,4,0,11,11,6,6,6,2,2,2,6,6,6,2,2,2,5,5,5,11,11,11,11,6,6,6,6,7,7,7,6,6,6,3,3,3,11,11,11,7,7,7,2,2,2,8,8,8,2,2,2,2,2,2,2,2,2,6,6,6,6,2,2,8,7,6,8,11,5,0,10,4,6,5,5,2,11,4,6,2,9,8,9,11,11,9,8,9,10,5,8,5,10,9,7,4,4,11,11,1,5,0,7,0,0,5,7,11,0,2,2,2,7,8,2,4,0,5,1,8,6,3,0,10,10,10,2,2,0,11,6,6,0,9,4,4,2,2,10,10,1,1,11,11,6,6,5,5,5,2,2,2,0,6,7,7,9,9,9,9,2,2,9,9,4,4,0,6,5,5,11,11,0,1,1,8,8,0,6,4,3,8,11,5,1,10,8,9,9,6,6,6,10,10,8,8,9,9,1,1,9,9,2,2,10,10,5,5,0,6,9,9,6,6,6,2,2,2,2,0,1,1,0,3,3,2,2,2,11,11,11,10,10,10,10,10,10,11,11,11,7,7,7,10,10,10,4,4,4,6,6,6,6,4,4,3,11,9,6,5,4,11,9,9,5,5,5,4,11,5,7,1,0,1,0,2,2,10,9,1,8,5,10,1,9,1,2,5,5,9,9,1,1,8,5,6,4,3,0,4,11,10,10,1,11,9,5,0,9,5,7,8,4,8,8,8,6,6,6,6,10,10,0,8,6,6,8,8,9,9,0,5,0,0,11,11,11,11,11,5,5,5,1,1,9,9,5,5,6,6,5,5,8,8,10,10,3,3,4,4,9,9,1,1,1,8,8,5,3,11,3,0,2,5,3,9,7,11,11,2,1,3,5,4,4,4,4,2,2,2,7,7,7,10,10,10,5,5,5,4,4,4,0,11,11,4,4,4,7,7,7,8,8,8,2,2,2,3,3,3,3,4,4,11,2,7,9,9,0,11,11,8,6,9,9,11,1,9,11,6,5,4,6,7,7,2,5,5,5,6,3,7,11,9,11,0,10,6,6,3,3,7,3,11,8,11,0,7,6,5,5,7,0,3,1,4,1,4,4,9,9,10,8,2,1,8,11,1,6,0,8,1,1,1,3,3,11,11,2,2,5,5,10,10,1,1,10,10,11,11,3,3,5,5,7,7,7,3,3,3,8,8,9,9,0,6,2,2,6,6,5,5,8,8,11,11,1,1,10,10,7,7,7,7,11,4,4,4,3,3,10,10,9,9,8,8,4,4,8,8,11,11,9,9,0,11,7,7,6,6,6,9,9,9,1,1,11,11,5,5,3,3,9,9,6,6,2,2,2,2,1,1,10,10,2,2,2,1,1,1,3,3,8,8,1,1,4,4,11,11,4,4,0,4,8,8,11,11,9,9,2,2,2,7,7,7,7,3,3,3,6,6,6,10,10,10,9,9,9,6,6,6,1,1,1,7,7,7,0,6,6,3,3,3,7,7,7,0,11,11,11,0,8,8,6,6,3,3,7,7,10,10,3,3,3,3,8,8,1,1,5,5,10,10,5,5,5,5,7,3,3,8,2,11,3,7,7,1,3,6,1,8,9,2,2,2,8,6,6,0,10,10,11,9,0,10,11,8,10,3,9,3,3,8,9,5,0,5,4,2,2,5,9,11,4,4,9,5,3,4,8,3,3,11,11,7,5,0,4,8,6,5,7,7,9,4,4,0,4,9,3,10,4,3,3,3,11,5,9,5,3,11,11,4,8,9,9,7,7,7,2,2,6,6,1,1,4,4,1,1,9,9,1,1,7,7,5,5,9,9,1,1,1,1,1,1,3,3,4,4,6,6,11,11,3,3,7,7,0,5,10,10,11,11,9,9,0,11,11,2,2,2,3,3,11,11,4,4,9,9,0,6,1,1,10,10,2,2,0,0,11,11,7,7,7,7,6,4,4,0,8,3,6,8,8,5,8,2,2,5,0,9,11,5,8,2,2,6,6,0,8,2,6,11,11,7,2,9,9,10,10,1,4,1,7,6,5,9,9,9,9,10,0,4,3,9,5,0,6,4,1,1,1,4,3,3,2,7,0,8,3,10,1,3,3,6,6,6,9,9,1,1,6,6,0,10,2,2,3,3,10,10,8,8,10,10,11,11,5,5,5,11,11,6,2,0,3,10,4,10,11,4,4,3,3,2,8,1,10,9,2,11,11,1,10,5,5,1,0,4,1,0,5,4,4,2,2,2,2,2,5,5,3,3,9,9,9,9,0,4,7,7,9,9,2,2,8,8,0,6,6,2,2,11,9,5,0,5,7,7,11,6,10,4,4,4,4,0,9,2,4,8,4,5,8,10,1,7,7,1,1,4,11,9,11,0,4,1,4,2,8,9,9,8,8,5,6,4,2,0,6,7,5,2,11,7,7,4,4,2,7,10,7,1,1,3,5,1,5,7,7,10,10,9,4,2,9,7,1,4,7,3,3,7,7,5,5,7,8,0,2,5,7,7,6,9,10,4,4,5,5,7,0,3,10,11,3,9,3,11,0,7,7,0,3,4,10,6,4,6,3,5,8,3,7,3,3,0,0,7,5,5,2,9,8,0,10,1,4,7,7,0,2,4,3,2,2,3,8,10,3,1,9,11,11,8,8,1,5,3,0,9,0,8,9,4,11,9,9,8,8,10,11,4,1,0,2,1,10,10,9,5,5,3,3,11,9,7,3,10,5,0,1,11,5,7,7,5,5,8,11,8,8,9,7,8,10,0,0,2,2,4,4,4,8,5,1,0,2,10,8,6,9,8,8,3,3,3,2,2,3,3,0,2,10,10,10,10,11,11,0,4,7,7,5,5,9,9,6,6,6]"),DiscreteProperty_Props_namespaceObject=__webpack_require__.t(Props_namespaceObject,2),sharedSettings=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx");var Grid3DLayer_stories={component:SubsurfaceViewer.Z,title:"SubsurfaceViewer/Grid3D Layer",args:{triggerHome:0}};const defaultProps={bounds:[456150,5925800,467400,5939500],views:sharedSettings.Pl},grid3dLayer={"@@type":"Grid3DLayer",id:"Grid3DLayer",gridLines:!0,material:!0,colorMapName:"Rainbow",ZIncreasingDownwards:!1},axes={"@@type":"AxesLayer",id:"axes-layer2",bounds:[453150,5925800,-2e3,469400,5939500,0],ZIncreasingDownwards:!1},parameters={docs:{...sharedSettings.R4,description:{story:"Simgrid."}}},Simgrid={args:{...defaultProps,id:"grid-3d",layers:[axes,{...grid3dLayer,pointsData:"vtk-grid/Simgrid_points.json",polysData:"vtk-grid/Simgrid_polys.json",propertiesData:"vtk-grid/Simgrid_scalar.json",pickable:!0}]},parameters:parameters},SimgridArrayInput={args:{...defaultProps,bounds:[456169,5936050,456185,5936055],id:"grid-3darray",layers:[axes,{...grid3dLayer,pointsData:[456063,5935991,-1729,456063,5935991,-1731,456138,5935861.518843642,-1727.820068359375,456138.5,5935861.5,-1726.3526611328125,456193.90625,5936066,-1730.7259521484375,456193.8825946293,5936065.981075703,-1732.200439453125,456268.9375,5935936.5,-1726.6915283203125],polysData:[4,0,1,2,3,4,0,4,5,1,4,0,3,6,4],propertiesData:[.2,.6,.8],pickable:!0}]},parameters:parameters},Simgrid2x={args:{...defaultProps,id:"grid-3d",layers:[axes,{...grid3dLayer,pointsData:"vtk-grid/Simgrid2x_points.json",polysData:"vtk-grid/Simgrid2x_polys.json",propertiesData:"vtk-grid/Simgrid2x_scalar.json",pickable:!0}]},parameters:parameters},Simgrid4x={args:{...defaultProps,id:"grid-3d",layers:[axes,{...grid3dLayer,ZIncreasingDownwards:!1,pointsData:"vtk-grid/Simgrid4x_points.json",polysData:"vtk-grid/Simgrid4x_polys.json",propertiesData:"vtk-grid/Simgrid4x_scalar.json",pickable:!0}]},parameters:parameters},Simgrid8xIJonly={args:{...defaultProps,id:"grid-3d",layers:[axes,{...grid3dLayer,pointsData:"vtk-grid/Simgrid8xIJonly_points.json",polysData:"vtk-grid/Simgrid8xIJonly_polys.json",propertiesData:"vtk-grid/Simgrid8xIJonly_scalar.json",pickable:!0}]},parameters:parameters},math=(0,create.U)(allFactoriesAny.$,{randomSeed:"1984"}),randomFunc=math?.random?math.random:Math.random,snubCubePoints=TruncatedSnubCube.wo.map((v=>10*v)),snubCubeProperties=Array(TruncatedSnubCube.sr).fill(0).map((()=>100+50*randomFunc())),toroidPoints=PentagonalToroid.wo.map((v=>10*v)).map(((v,index)=>index%3==0?v+30:v)),toroidProperties=Array(PentagonalToroid.sr).fill(0).map((()=>10*randomFunc())),colorTable=new Uint8Array([0,0,255,0,255,0,0,255,255,255,0,0,255,0,255,255,255,0,0,0,100,0,100,0,0,100,100,100,0,0,100,0,100,100,100,0]),PolyhedralCells={args:{bounds:[-25,-25,50,30],views:{layout:[1,1],viewports:[{id:"view_1",show3D:!0}]},id:"grid-3d-polyhedral-cell",layers:[{...axes,id:"polyhedral-cells-axes",bounds:[-15,-15,-15,40,20,15]},{...grid3dLayer,id:"polyhedral1",coloringMode:SubsurfaceViewer.W.Y,pickable:!0,pointsData:snubCubePoints,polysData:TruncatedSnubCube.OQ,propertiesData:snubCubeProperties,colorMapName:"Porosity"},{...grid3dLayer,id:"polyhedral2",pickable:!0,pointsData:toroidPoints,polysData:PentagonalToroid.OQ,propertiesData:toroidProperties,coloringMode:SubsurfaceViewer.W.Property}]},parameters:parameters},layerArrays={discrete_props:{pointsData:new Float32Array(DiscreteProperty_Points_namespaceObject),polysData:new Uint32Array(DiscreteProperty_Polys_namespaceObject),propertiesData:new Uint16Array(DiscreteProperty_Props_namespaceObject),colorMapFunction:colorTable}};function replaceLayerArrays(layer,keys=void 0){const layerId=layer?.id;if(layer&&layerId&&layerArrays[layerId]){keys||(keys=Object.keys(layerArrays[layerId]));for(const key of keys)layer[key]=layerArrays[layerId][key]}}const DiscretePropertyWithClamping={args:{bounds:[-2500,-2500,2500,2500],views:{layout:[1,1],viewports:[{id:"view_1",show3D:!0}]},id:"grid-3d-discrete_props",layers:[{...axes,id:"discrete_props-axes",bounds:[-2e3,-2200,-2200,2200,2e3,-1e3]},{...grid3dLayer,"@@typedArraySupport":!0,id:"discrete_props",coloringMode:SubsurfaceViewer.W.Property,pickable:!0,pointsData:layerArrays.discrete_props.pointsData,polysData:layerArrays.discrete_props.polysData,propertiesData:layerArrays.discrete_props.propertiesData,discretePropertyValueNames:[{value:1,name:"blue"},{value:2,name:"green"},{value:5,name:"cyan"},{value:6,name:"red"},{value:-8,name:"magenta"},{value:9,name:"yellow"},{value:20,name:"dark blue"},{value:30,name:"dark green"},{value:15,name:"dark cyan"},{value:10,name:"dark red"},{value:3,name:"dark magenta"},{value:-10,name:"dark yellow"}],colorMapName:"Seismic",ZIncreasingDownwards:!0,colorMapFunction:layerArrays.discrete_props.colorMapFunction,material:!1,colorMapRange:[3,8],colorMapClampColor:[100,100,100]}]},parameters:parameters,render:args=>react.createElement(SubsurfaceViewer.Z,function replaceAllArrays(args){return args.layers?.forEach((layer=>{replaceLayerArrays(layer)})),args}(args))},CustomColorFuncWithClamping={args:{bounds:[-2500,-2500,2500,2500],views:{layout:[1,1],viewports:[{id:"view_1",show3D:!0}]},id:"grid-3d-discrete_props",layers:[{...axes,id:"discrete_props-axes",bounds:[-2e3,-2200,-2200,2200,2e3,-1e3]},{...grid3dLayer,"@@typedArraySupport":!0,id:"discrete_props",coloringMode:SubsurfaceViewer.W.Property,pickable:!0,pointsData:layerArrays.discrete_props.pointsData,polysData:layerArrays.discrete_props.polysData,propertiesData:layerArrays.discrete_props.propertiesData,colorMapName:"Seismic",ZIncreasingDownwards:!0,colorMapFunction:function(v){return[255*v,0,255*(1-v)]},material:!1,colorMapRange:[3,10],colorMapClampColor:[100,100,100]}]},parameters:parameters,render:args=>react.createElement(SubsurfaceViewer.Z,function replaceArrays(args,keys){return args.layers?.forEach((layer=>{replaceLayerArrays(layer,keys)})),args}(args,["pointsData","polysData","propertiesData"]))};Simgrid.parameters={...Simgrid.parameters,docs:{...Simgrid.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n id: "grid-3d",\n layers: [axes, {\n ...grid3dLayer,\n pointsData: "vtk-grid/Simgrid_points.json",\n polysData: "vtk-grid/Simgrid_polys.json",\n propertiesData: "vtk-grid/Simgrid_scalar.json",\n pickable: true\n }]\n },\n parameters: parameters\n}',...Simgrid.parameters?.docs?.source}}},SimgridArrayInput.parameters={...SimgridArrayInput.parameters,docs:{...SimgridArrayInput.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n bounds: [456169, 5936050, 456185, 5936055],\n id: "grid-3darray",\n layers: [axes, {\n ...grid3dLayer,\n pointsData: [456063, 5935991, -1729, 456063, 5935991, -1731, 456138, 5935861.518843642, -1727.820068359375, 456138.5, 5935861.5, -1726.3526611328125, 456193.90625, 5936066, -1730.7259521484375, 456193.8825946293, 5936065.981075703, -1732.200439453125, 456268.9375, 5935936.5, -1726.6915283203125],\n polysData: [4, 0, 1, 2, 3, 4, 0, 4, 5, 1, 4, 0, 3, 6, 4],\n propertiesData: [0.2, 0.6, 0.8],\n pickable: true\n }]\n },\n parameters: parameters\n}',...SimgridArrayInput.parameters?.docs?.source}}},Simgrid2x.parameters={...Simgrid2x.parameters,docs:{...Simgrid2x.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n id: "grid-3d",\n layers: [axes, {\n ...grid3dLayer,\n pointsData: "vtk-grid/Simgrid2x_points.json",\n polysData: "vtk-grid/Simgrid2x_polys.json",\n propertiesData: "vtk-grid/Simgrid2x_scalar.json",\n pickable: true\n }]\n },\n parameters: parameters\n}',...Simgrid2x.parameters?.docs?.source}}},Simgrid4x.parameters={...Simgrid4x.parameters,docs:{...Simgrid4x.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n id: "grid-3d",\n layers: [axes, {\n ...grid3dLayer,\n ZIncreasingDownwards: false,\n pointsData: "vtk-grid/Simgrid4x_points.json",\n polysData: "vtk-grid/Simgrid4x_polys.json",\n propertiesData: "vtk-grid/Simgrid4x_scalar.json",\n pickable: true\n }]\n },\n parameters: parameters\n}',...Simgrid4x.parameters?.docs?.source}}},Simgrid8xIJonly.parameters={...Simgrid8xIJonly.parameters,docs:{...Simgrid8xIJonly.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n id: "grid-3d",\n layers: [axes, {\n ...grid3dLayer,\n pointsData: "vtk-grid/Simgrid8xIJonly_points.json",\n polysData: "vtk-grid/Simgrid8xIJonly_polys.json",\n propertiesData: "vtk-grid/Simgrid8xIJonly_scalar.json",\n pickable: true\n }]\n },\n parameters: parameters\n}',...Simgrid8xIJonly.parameters?.docs?.source}}},PolyhedralCells.parameters={...PolyhedralCells.parameters,docs:{...PolyhedralCells.parameters?.docs,source:{originalSource:'{\n args: {\n bounds: ([-25, -25, 50, 30] as NumberQuad),\n views: {\n layout: ([1, 1] as [number, number]),\n viewports: [{\n id: "view_1",\n show3D: true\n }]\n },\n id: "grid-3d-polyhedral-cell",\n layers: [{\n ...axes,\n id: "polyhedral-cells-axes",\n bounds: [-15, -15, -15, 40, 20, 15]\n }, {\n ...grid3dLayer,\n id: "polyhedral1",\n coloringMode: TGrid3DColoringMode.Y,\n pickable: true,\n pointsData: snubCubePoints,\n polysData: SnubCubeFaces,\n propertiesData: snubCubeProperties,\n colorMapName: "Porosity"\n }, {\n ...grid3dLayer,\n id: "polyhedral2",\n pickable: true,\n pointsData: toroidPoints,\n polysData: ToroidFaces,\n propertiesData: toroidProperties,\n coloringMode: TGrid3DColoringMode.Property\n }]\n },\n parameters: parameters\n}',...PolyhedralCells.parameters?.docs?.source}}},DiscretePropertyWithClamping.parameters={...DiscretePropertyWithClamping.parameters,docs:{...DiscretePropertyWithClamping.parameters?.docs,source:{originalSource:'{\n args: {\n bounds: ([-2500, -2500, 2500, 2500] as NumberQuad),\n views: {\n layout: ([1, 1] as [number, number]),\n viewports: [{\n id: "view_1",\n show3D: true\n }]\n },\n id: "grid-3d-discrete_props",\n layers: [{\n ...axes,\n id: "discrete_props-axes",\n bounds: [-2000, -2200, -2200, 2200, 2000, -1000]\n }, {\n ...grid3dLayer,\n "@@typedArraySupport": true,\n id: discretePropsLayerId,\n coloringMode: TGrid3DColoringMode.Property,\n pickable: true,\n pointsData: layerArrays[discretePropsLayerId].pointsData,\n polysData: layerArrays[discretePropsLayerId].polysData,\n propertiesData: layerArrays[discretePropsLayerId].propertiesData,\n discretePropertyValueNames: propertyValueNames,\n colorMapName: "Seismic",\n ZIncreasingDownwards: true,\n colorMapFunction: layerArrays[discretePropsLayerId].colorMapFunction,\n material: false,\n colorMapRange: [3, 8],\n colorMapClampColor: [100, 100, 100]\n }]\n },\n parameters: parameters,\n render: args => \n}',...DiscretePropertyWithClamping.parameters?.docs?.source}}},CustomColorFuncWithClamping.parameters={...CustomColorFuncWithClamping.parameters,docs:{...CustomColorFuncWithClamping.parameters?.docs,source:{originalSource:'{\n args: {\n bounds: ([-2500, -2500, 2500, 2500] as NumberQuad),\n views: {\n layout: ([1, 1] as [number, number]),\n viewports: [{\n id: "view_1",\n show3D: true\n }]\n },\n id: "grid-3d-discrete_props",\n layers: [{\n ...axes,\n id: "discrete_props-axes",\n bounds: [-2000, -2200, -2200, 2200, 2000, -1000]\n }, {\n ...grid3dLayer,\n "@@typedArraySupport": true,\n id: discretePropsLayerId,\n coloringMode: TGrid3DColoringMode.Property,\n pickable: true,\n pointsData: layerArrays[discretePropsLayerId].pointsData,\n polysData: layerArrays[discretePropsLayerId].polysData,\n propertiesData: layerArrays[discretePropsLayerId].propertiesData,\n colorMapName: "Seismic",\n ZIncreasingDownwards: true,\n colorMapFunction: function (v) {\n return [255 * v, 0, 255 * (1 - v)];\n },\n material: false,\n colorMapRange: [3, 10],\n colorMapClampColor: [100, 100, 100]\n }]\n },\n parameters: parameters,\n render: args => \n}',...CustomColorFuncWithClamping.parameters?.docs?.source}}};const __namedExportsOrder=["Simgrid","SimgridArrayInput","Simgrid2x","Simgrid4x","Simgrid8xIJonly","PolyhedralCells","DiscretePropertyWithClamping","CustomColorFuncWithClamping"]},"./packages/subsurface-viewer/src/layers/grid3d/test_data/PentagonalToroid.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{OQ:function(){return Faces},sr:function(){return VertexCount},wo:function(){return Points}});const C0=(3-Math.sqrt(5))/4,C1=(Math.sqrt(5)-1)/4,C2=(1+Math.sqrt(5))/4,Points=[.5,0,C2,.5,0,-C2,-.5,0,C2,-.5,0,-C2,0,C2,.5,0,C2,-.5,0,-C2,.5,0,-C2,-.5,C2,.5,0,-C2,-.5,0,0,C0,.5,0,C0,-.5,0,-C0,.5,0,-C0,-.5,C1,C1,C1,C1,C1,-C1,-C1,-C1,C1,-C1,-C1,-C1,C0,.5,0,-C0,-.5,0],Faces=[5,0,6,16,12,10,5,1,8,18,15,11,5,2,4,14,10,12,5,3,9,19,17,13,5,4,5,15,18,14,5,5,3,13,11,15,5,6,7,17,19,16,5,7,1,11,13,17,5,8,0,10,14,18,5,9,2,12,16,19,3,2,6,0,3,2,0,4,3,3,1,7,3,3,7,9,3,4,0,8,3,4,8,5,3,5,8,1,3,5,1,3,3,6,2,9,3,6,9,7],VertexCount=80},"./packages/subsurface-viewer/src/layers/grid3d/test_data/TruncatedSnubCube.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{OQ:function(){return Faces},sr:function(){return VertexCount},wo:function(){return Points}});const C0=.03022517647727011,C1=.03630716729159513,C2=.040977806224636225,C3=.04564293957876494,C4=.051724930393089966,C5=.08744289047276839,C6=.08897531081303763,C7=.09641163211454777,C8=.10383500001768008,C9=.10536742035794933,C10=.2450214662773631,C11=.25213479294506524,C12=.25578852648697925,C13=.2594078935254808,C14=.266521220193183,C15=.30296894256435697,C16=.3107539819206035,C17=.3137398958061564,C18=.3166836571239303,C19=.32446869648017684,C20=.3415821603133315,C21=.3421516282996725,C22=.3496389843387572,C23=.35707936458297945,C24=.35764883256932045,C25=.3919404789469772,C26=.40221538330780837,C27=.40271740948195195,C28=.40316532850196596,C29=.4134402328627971,C30=.4223523523667726,C31=.4257635648947752,C32=.43136191452063516,C33=.43690230845586675,C34=.44031352098386933,C35=.4714793574054987,C36=.47546003791984226,C37=.4804922200139097,C38=.4854598455082518,C39=.4894405260225954,C40=.6319974061364817,C41=.6358614860540425,C42=.6398421665683861,C43=.6410027320851348,C44=.6420771755897583,C45=.6439380803776656,C46=.647947477795688,C47=.6499219360216627,C49=.6855579590791095,C48=.6519281583100315,C50=.6889691716071121,C51=.6930683858709402,C52=.697074482834414,C53=.7004856953624166,C54=.7657290432607724,C55=.7691698956742122,C56=.7697393636605533,C57=.7720413833524075,C58=.7732108302879603,C59=.7742763923737797,C60=.7747913160528183,C61=.7797391712489629,C62=.7803086392353038,C63=.7805887324654148,C64=.9227051570193641,C65=.9237364928727411,C66=.9244082055612856,C67=.9268980705658701,C68=.9274353460160546,C69=.9278480157600277,C70=.9303378807646123,C71=.9310095934531567,C72=.9320409293065338,Points=[C72,-C25,-C2,-C72,C25,-C2,C25,C72,-C2,-C25,-C72,-C2,C71,-C15,C12,-C71,C15,C12,C15,C71,C12,-C15,-C71,C12,C10,C70,-C17,-C10,-C70,-C17,C70,-C10,-C17,-C70,C10,-C17,C0,C69,C27,-C0,-C69,C27,C69,-C0,C27,-C69,C0,C27,C28,-C1,-C68,-C28,C1,-C68,C1,C28,-C68,-C1,-C28,-C68,C26,C3,C68,-C26,-C3,C68,C3,-C26,C68,-C3,C26,C68,C18,-C11,C68,-C18,C11,C68,C11,C18,C68,-C11,-C18,C68,C16,C13,-C68,-C16,-C13,-C68,C13,-C16,-C68,-C13,C16,-C68,C4,-C67,-C27,-C4,C67,-C27,C67,C4,-C27,-C67,-C4,-C27,C14,-C66,C17,-C14,C66,C17,C66,C14,C17,-C66,-C14,C17,C65,C19,-C12,-C65,-C19,-C12,C19,-C65,-C12,-C19,C65,-C12,C64,C29,C2,-C64,-C29,C2,C29,-C64,C2,-C29,C64,C2,C63,-C40,-C7,-C63,C40,-C7,C40,C63,-C7,-C40,-C63,-C7,C62,-C35,C32,-C62,C35,C32,C35,C62,C32,-C35,-C62,C32,C30,C61,-C37,-C30,-C61,-C37,C61,-C30,-C37,-C61,C30,-C37,C38,-C31,C60,-C38,C31,C60,C31,C38,C60,-C31,-C38,C60,C36,C33,-C60,-C36,-C33,-C60,C33,-C36,-C60,-C33,C36,-C60,C5,C59,C43,-C5,-C59,C43,C59,-C5,C43,-C59,C5,C43,C44,-C6,-C58,-C44,C6,-C58,C6,C44,-C58,-C6,-C44,-C58,C42,C8,C58,-C42,-C8,C58,C8,-C42,C58,-C8,C42,C58,C9,-C57,-C43,-C9,C57,-C43,C57,C9,-C43,-C57,-C9,-C43,C34,-C56,C37,-C34,C56,C37,C56,C34,C37,-C56,-C34,C37,C55,C39,-C32,-C55,-C39,-C32,C39,-C55,-C32,-C39,C55,-C32,C54,C47,C7,-C54,-C47,C7,C47,-C54,C7,-C47,C54,C7,C53,-C41,-C22,-C53,C41,-C22,C41,C53,-C22,-C41,-C53,-C22,C20,C52,C45,-C20,-C52,C45,C52,-C20,C45,-C52,C20,C45,C46,-C21,-C51,-C46,C21,-C51,C21,C46,-C51,-C21,-C46,-C51,C42,C23,C51,-C42,-C23,C51,C23,-C42,C51,-C23,C42,C51,C24,-C50,-C45,-C24,C50,-C45,C50,C24,-C45,-C50,-C24,-C45,C49,C48,C22,-C49,-C48,C22,C48,-C49,C22,-C48,C49,C22],Faces=[8,0,10,34,40,44,38,14,4,8,1,11,35,41,45,39,15,5,8,2,8,33,43,47,37,12,6,8,3,9,32,42,46,36,13,7,8,16,30,19,29,17,31,18,28,8,20,26,23,25,21,27,22,24,6,52,102,60,110,84,118,6,53,103,61,111,85,119,6,54,100,62,108,86,116,6,55,101,63,109,87,117,6,56,98,88,114,64,106,6,57,99,89,115,65,107,6,58,96,90,112,66,104,6,59,97,91,113,67,105,6,0,4,52,118,94,48,6,1,5,53,119,95,49,6,2,6,54,116,92,50,6,3,7,55,117,93,51,6,8,56,106,74,81,33,6,9,57,107,75,80,32,6,10,58,104,72,82,34,6,11,59,105,73,83,35,6,12,37,85,111,79,68,6,13,36,84,110,78,69,6,14,38,86,108,76,70,6,15,39,87,109,77,71,6,16,28,64,114,82,72,6,17,29,65,115,83,73,6,18,31,67,113,81,74,6,19,30,66,112,80,75,6,20,24,60,102,70,76,6,21,25,61,103,71,77,6,22,27,63,101,69,78,6,23,26,62,100,68,79,6,40,88,98,50,92,44,6,41,89,99,51,93,45,6,42,90,96,48,94,46,6,43,91,97,49,95,47,5,0,48,96,58,10,5,1,49,97,59,11,5,2,50,98,56,8,5,3,51,99,57,9,5,4,14,70,102,52,5,5,15,71,103,53,5,6,12,68,100,54,5,7,13,69,101,55,5,16,72,104,66,30,5,17,73,105,67,31,5,18,74,106,64,28,5,19,75,107,65,29,5,20,76,108,62,26,5,21,77,109,63,27,5,22,78,110,60,24,5,23,79,111,61,25,5,32,80,112,90,42,5,33,81,113,91,43,5,34,82,114,88,40,5,35,83,115,89,41,5,36,46,94,118,84,5,37,47,95,119,85,5,38,44,92,116,86,5,39,45,93,117,87],VertexCount=354}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-PointsLayer-stories.702878b4.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-PointsLayer-stories.702878b4.iframe.bundle.js new file mode 100644 index 000000000..023bb6e4b --- /dev/null +++ b/storybook-static/subsurface-viewer-src-storybook-layers-PointsLayer-stories.702878b4.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[5127],{"./packages/subsurface-viewer/src/storybook/layers/PointsLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{HugePointsLayer:function(){return HugePointsLayer},SmallPointsLayer:function(){return SmallPointsLayer},SmallPointsLayerTypedArrayInput:function(){return SmallPointsLayerTypedArrayInput},__namedExportsOrder:function(){return __namedExportsOrder}});var mathjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/create.js"),mathjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),_sharedSettings__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx");const stories={component:_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__.Z,title:"SubsurfaceViewer / Points Layer",args:{triggerHome:0},tags:["no-test"]};__webpack_exports__.default=stories;const smallPointsData=[0,0,5,10,0,5,10,10,5,0,10,0,5,-5,10,11,-4,6,11,0,7,17,0,8],smallAxesLayer={"@@type":"AxesLayer",id:"small_axes_layer",bounds:[-10,-10,0,20,15,10]},SmallPointsLayer={args:{id:"small-points",layers:[smallAxesLayer,{"@@type":"PointsLayer",id:"small_points_layer",pointsData:smallPointsData,color:[255,0,100],pointRadius:10,radiusUnits:"pixels",ZIncreasingDownwards:!0}],bounds:[-20,-20,20,20],views:_sharedSettings__WEBPACK_IMPORTED_MODULE_1__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_1__.R4.docs,description:{story:"Point coordinates are given as native JavaScript array."}}}},SmallPointsLayerTypedArrayInput={args:{id:"small-points-typeddata",layers:[smallAxesLayer,{"@@type":"PointsLayer",id:"small_points_typed_data_layer","@@typedArraySupport":!0,pointsData:new Float32Array(smallPointsData),color:[0,100,255],pointRadius:10,radiusUnits:"pixels",ZIncreasingDownwards:!0}],bounds:[-20,-20,20,20],views:_sharedSettings__WEBPACK_IMPORTED_MODULE_1__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_1__.R4.docs,description:{story:"Point coordinates are given as JavaScript typed array."}}}},math=(0,mathjs__WEBPACK_IMPORTED_MODULE_2__.U)(mathjs__WEBPACK_IMPORTED_MODULE_3__.$,{randomSeed:"1234"}),randomFunc=math?.random?()=>{const val=math.random?.(1e4);return val||0}:()=>1e4*Math.random(),HugePointsLayer={args:{id:"huge-points-map",layers:[{"@@type":"AxesLayer",id:"huge_axes_layer",bounds:[0,0,0,1e4,1e4,1e4]},{"@@type":"PointsLayer",id:"huge_points_layer",pointsData:Array(3e5).fill(0).map((()=>randomFunc())),color:[255,100,100],pointRadius:1,radiusUnits:"pixels",ZIncreasingDownwards:!0}],bounds:[0,0,1e4,1e4],coords:{visible:!1},views:_sharedSettings__WEBPACK_IMPORTED_MODULE_1__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_1__.R4.docs,description:{story:"Point coordinates are randomly generated in runtime and given as native JavaScript array."}}},tags:["no-test"]};SmallPointsLayer.parameters={...SmallPointsLayer.parameters,docs:{...SmallPointsLayer.parameters?.docs,source:{originalSource:'{\n args: {\n id: "small-points",\n layers: [smallAxesLayer, smallPointsLayer],\n bounds: [-20, -20, 20, 20],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Point coordinates are given as native JavaScript array."\n }\n }\n }\n}',...SmallPointsLayer.parameters?.docs?.source}}},SmallPointsLayerTypedArrayInput.parameters={...SmallPointsLayerTypedArrayInput.parameters,docs:{...SmallPointsLayerTypedArrayInput.parameters?.docs,source:{originalSource:'{\n args: {\n id: "small-points-typeddata",\n layers: [smallAxesLayer, smallPointsTypedDataLayer],\n bounds: [-20, -20, 20, 20],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Point coordinates are given as JavaScript typed array."\n }\n }\n }\n}',...SmallPointsLayerTypedArrayInput.parameters?.docs?.source}}},HugePointsLayer.parameters={...HugePointsLayer.parameters,docs:{...HugePointsLayer.parameters?.docs,source:{originalSource:'{\n args: {\n id: "huge-points-map",\n layers: [hugeAxesLayer, hugePointsLayer],\n bounds: [0, 0, sideSize, sideSize],\n coords: {\n visible: false\n },\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Point coordinates are randomly generated in runtime and given as native JavaScript array."\n }\n }\n },\n tags: ["no-test"]\n}',...HugePointsLayer.parameters?.docs?.source}}};const __namedExportsOrder=["SmallPointsLayer","SmallPointsLayerTypedArrayInput","HugePointsLayer"]}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-PointsLayer-stories.807e6d42.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-PointsLayer-stories.807e6d42.iframe.bundle.js deleted file mode 100644 index 8b4fd851c..000000000 --- a/storybook-static/subsurface-viewer-src-storybook-layers-PointsLayer-stories.807e6d42.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[5127],{"./packages/subsurface-viewer/src/storybook/layers/PointsLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{HugePointsLayer:function(){return HugePointsLayer},SmallPointsLayer:function(){return SmallPointsLayer},SmallPointsLayerTypedArrayInput:function(){return SmallPointsLayerTypedArrayInput},__namedExportsOrder:function(){return __namedExportsOrder}});var mathjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/core/create.js"),mathjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),_sharedSettings__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx");const stories={component:_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__.Z,title:"SubsurfaceViewer / Points Layer",args:{triggerHome:0},tags:["no-test"]};__webpack_exports__.default=stories;const smallPointsData=[0,0,5,10,0,5,10,10,5,0,10,0,5,-5,10,11,-4,6,11,0,7,17,0,8],smallAxesLayer={"@@type":"AxesLayer",id:"small_axes_layer",bounds:[-10,-10,0,20,15,10]},SmallPointsLayer={args:{id:"small-points",layers:[smallAxesLayer,{"@@type":"PointsLayer",id:"small_points_layer",pointsData:smallPointsData,color:[255,0,100],pointRadius:10,radiusUnits:"pixels",ZIncreasingDownwards:!0}],bounds:[-20,-20,20,20],views:_sharedSettings__WEBPACK_IMPORTED_MODULE_1__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_1__.R4.docs,description:{story:"Point coordinates are given as native JavaScript array."}}}},SmallPointsLayerTypedArrayInput={args:{id:"small-points-typeddata",layers:[smallAxesLayer,{"@@type":"PointsLayer",id:"small_points_typed_data_layer","@@typedArraySupport":!0,pointsData:new Float32Array(smallPointsData),color:[0,100,255],pointRadius:10,radiusUnits:"pixels",ZIncreasingDownwards:!0}],bounds:[-20,-20,20,20],views:_sharedSettings__WEBPACK_IMPORTED_MODULE_1__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_1__.R4.docs,description:{story:"Point coordinates are given as JavaScript typed array."}}}},math=(0,mathjs__WEBPACK_IMPORTED_MODULE_2__.U)(mathjs__WEBPACK_IMPORTED_MODULE_3__.$,{randomSeed:"1234"}),randomFunc=math?.random?()=>{const val=math.random?.(1e4);return val||0}:()=>1e4*Math.random(),HugePointsLayer={args:{id:"huge-points-map",layers:[{"@@type":"AxesLayer",id:"huge_axes_layer",bounds:[0,0,0,1e4,1e4,1e4]},{"@@type":"PointsLayer",id:"huge_points_layer",pointsData:Array(3e5).fill(0).map((()=>randomFunc())),color:[255,100,100],pointRadius:1,radiusUnits:"pixels",ZIncreasingDownwards:!0}],bounds:[0,0,1e4,1e4],coords:{visible:!1},views:_sharedSettings__WEBPACK_IMPORTED_MODULE_1__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_1__.R4.docs,description:{story:"Point coordinates are randomly generated in runtime and given as native JavaScript array."}}},tags:["no-test"]};SmallPointsLayer.parameters={...SmallPointsLayer.parameters,docs:{...SmallPointsLayer.parameters?.docs,source:{originalSource:'{\n args: {\n id: "small-points",\n layers: [smallAxesLayer, smallPointsLayer],\n bounds: [-20, -20, 20, 20],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Point coordinates are given as native JavaScript array."\n }\n }\n }\n}',...SmallPointsLayer.parameters?.docs?.source}}},SmallPointsLayerTypedArrayInput.parameters={...SmallPointsLayerTypedArrayInput.parameters,docs:{...SmallPointsLayerTypedArrayInput.parameters?.docs,source:{originalSource:'{\n args: {\n id: "small-points-typeddata",\n layers: [smallAxesLayer, smallPointsTypedDataLayer],\n bounds: [-20, -20, 20, 20],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Point coordinates are given as JavaScript typed array."\n }\n }\n }\n}',...SmallPointsLayerTypedArrayInput.parameters?.docs?.source}}},HugePointsLayer.parameters={...HugePointsLayer.parameters,docs:{...HugePointsLayer.parameters?.docs,source:{originalSource:'{\n args: {\n id: "huge-points-map",\n layers: [hugeAxesLayer, hugePointsLayer],\n bounds: [0, 0, sideSize, sideSize],\n coords: {\n visible: false\n },\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Point coordinates are randomly generated in runtime and given as native JavaScript array."\n }\n }\n },\n tags: ["no-test"]\n}',...HugePointsLayer.parameters?.docs?.source}}};const __namedExportsOrder=["SmallPointsLayer","SmallPointsLayerTypedArrayInput","HugePointsLayer"]}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-PolylinesLayer-stories.705117df.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-PolylinesLayer-stories.705117df.iframe.bundle.js deleted file mode 100644 index 7735d3b1a..000000000 --- a/storybook-static/subsurface-viewer-src-storybook-layers-PolylinesLayer-stories.705117df.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[6602],{"./packages/subsurface-viewer/src/storybook/layers/PolylinesLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{HugeLayerTypedArrayInput:function(){return HugeLayerTypedArrayInput},HugePolylinesLayer:function(){return HugePolylinesLayer},SmallPolylinesLayer:function(){return SmallPolylinesLayer},__namedExportsOrder:function(){return __namedExportsOrder}});var mathjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/mathjs/lib/esm/core/create.js"),mathjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),_layers_polylines_polylinesLayer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/src/layers/polylines/polylinesLayer.ts"),_layers_axes_axesLayer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/src/layers/axes/axesLayer.ts"),_sharedSettings__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx");const stories={component:_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__.Z,title:"SubsurfaceViewer / Polylines Layer",args:{triggerHome:0}};__webpack_exports__.default=stories;const smallPolylinesLayer=new _layers_polylines_polylinesLayer__WEBPACK_IMPORTED_MODULE_1__.Z({id:"small_polylines_layer",polylinePoints:[0,0,0,10,0,0,10,0,10,-5,-5,4,0,-8,6,5,10,8],startIndices:[0,3],polylinesClosed:[!0,!1],color:[0,200,100],widthUnits:"pixels",linesWidth:10,ZIncreasingDownwards:!0}),SmallPolylinesLayer={args:{id:"map",layers:[new _layers_axes_axesLayer__WEBPACK_IMPORTED_MODULE_2__.Z({id:"small_axes_layer",bounds:[-10,-10,0,20,10,10]}),smallPolylinesLayer],bounds:[-10,-10,17,10],views:_sharedSettings__WEBPACK_IMPORTED_MODULE_3__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_3__.R4.docs,description:{story:"Polyline nodes are given as native javascript array."}}}},math=(0,mathjs__WEBPACK_IMPORTED_MODULE_4__.U)(mathjs__WEBPACK_IMPORTED_MODULE_5__.$,{randomSeed:"1234"}),randomFunc=math.random?()=>math.random(1e4):()=>1e4*Math.random(),hugePoints=new Array(3e5).fill(0).map((()=>randomFunc())),hugePolylinesLayer=new _layers_polylines_polylinesLayer__WEBPACK_IMPORTED_MODULE_1__.Z({id:"huge_polylines-layer",polylinePoints:hugePoints,startIndices:[0],color:[0,100,100,40],widthUnits:"pixels",linesWidth:1,ZIncreasingDownwards:!0}),hugeAxesLayer=new _layers_axes_axesLayer__WEBPACK_IMPORTED_MODULE_2__.Z({id:"huge_axes_layer",bounds:[0,0,0,1e4,1e4,1e4]}),HugePolylinesLayer={args:{id:"map",layers:[hugeAxesLayer,hugePolylinesLayer],bounds:[0,0,1e4,1e4],views:_sharedSettings__WEBPACK_IMPORTED_MODULE_3__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_3__.R4.docs,description:{story:"Polyline nodes are randomly generated in runtime and given as native javascript arrays."}}},tags:["no-test"]},HugeLayerTypedArrayInput={args:{id:"map",layers:[hugeAxesLayer,{"@@type":"PolylinesLayer","@@typedArraySupport":!0,id:"huge_polylines-layer-typedarrays",polylinePoints:new Float32Array(hugePoints),startIndices:new Uint32Array([0,1e5]),color:[0,100,200,40],widthUnits:"pixels",linesWidth:1,ZIncreasingDownwards:!0}],bounds:[0,0,1e4,1e4],views:_sharedSettings__WEBPACK_IMPORTED_MODULE_3__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_3__.R4.docs,description:{story:"Polyline nodes are randomly generated in runtime and given as javascript typed arrays."}}},tags:["no-test"]};SmallPolylinesLayer.parameters={...SmallPolylinesLayer.parameters,docs:{...SmallPolylinesLayer.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [smallAxesLayer, smallPolylinesLayer],\n bounds: [-10, -10, 17, 10],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Polyline nodes are given as native javascript array."\n }\n }\n }\n}',...SmallPolylinesLayer.parameters?.docs?.source}}},HugePolylinesLayer.parameters={...HugePolylinesLayer.parameters,docs:{...HugePolylinesLayer.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [hugeAxesLayer, hugePolylinesLayer],\n bounds: [0, 0, sideSize, sideSize],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Polyline nodes are randomly generated in runtime and given as native javascript arrays."\n }\n }\n },\n tags: ["no-test"]\n}',...HugePolylinesLayer.parameters?.docs?.source}}},HugeLayerTypedArrayInput.parameters={...HugeLayerTypedArrayInput.parameters,docs:{...HugeLayerTypedArrayInput.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [hugeAxesLayer, {\n "@@type": "PolylinesLayer",\n "@@typedArraySupport": true,\n id: "huge_polylines-layer-typedarrays",\n polylinePoints: new Float32Array(hugePoints),\n startIndices: new Uint32Array([0, pointsCount]),\n color: [0, 100, 200, 40],\n widthUnits: "pixels",\n linesWidth: 1,\n ZIncreasingDownwards: true\n }],\n bounds: [0, 0, sideSize, sideSize],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Polyline nodes are randomly generated in runtime and given as javascript typed arrays."\n }\n }\n },\n tags: ["no-test"]\n}',...HugeLayerTypedArrayInput.parameters?.docs?.source}}};const __namedExportsOrder=["SmallPolylinesLayer","HugePolylinesLayer","HugeLayerTypedArrayInput"]}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-PolylinesLayer-stories.b2b81785.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-PolylinesLayer-stories.b2b81785.iframe.bundle.js new file mode 100644 index 000000000..c1418b704 --- /dev/null +++ b/storybook-static/subsurface-viewer-src-storybook-layers-PolylinesLayer-stories.b2b81785.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[6602],{"./packages/subsurface-viewer/src/storybook/layers/PolylinesLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{HugeLayerTypedArrayInput:function(){return HugeLayerTypedArrayInput},HugePolylinesLayer:function(){return HugePolylinesLayer},SmallPolylinesLayer:function(){return SmallPolylinesLayer},__namedExportsOrder:function(){return __namedExportsOrder}});var mathjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/create.js"),mathjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),_layers_polylines_polylinesLayer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/src/layers/polylines/polylinesLayer.ts"),_layers_axes_axesLayer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/src/layers/axes/axesLayer.ts"),_sharedSettings__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx");const stories={component:_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__.Z,title:"SubsurfaceViewer / Polylines Layer",args:{triggerHome:0}};__webpack_exports__.default=stories;const smallPolylinesLayer=new _layers_polylines_polylinesLayer__WEBPACK_IMPORTED_MODULE_1__.Z({id:"small_polylines_layer",polylinePoints:[0,0,0,10,0,0,10,0,10,-5,-5,4,0,-8,6,5,10,8],startIndices:[0,3],polylinesClosed:[!0,!1],color:[0,200,100],widthUnits:"pixels",linesWidth:10,ZIncreasingDownwards:!0}),SmallPolylinesLayer={args:{id:"map",layers:[new _layers_axes_axesLayer__WEBPACK_IMPORTED_MODULE_2__.Z({id:"small_axes_layer",bounds:[-10,-10,0,20,10,10]}),smallPolylinesLayer],bounds:[-10,-10,17,10],views:_sharedSettings__WEBPACK_IMPORTED_MODULE_3__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_3__.R4.docs,description:{story:"Polyline nodes are given as native javascript array."}}}},math=(0,mathjs__WEBPACK_IMPORTED_MODULE_4__.U)(mathjs__WEBPACK_IMPORTED_MODULE_5__.$,{randomSeed:"1234"}),randomFunc=math.random?()=>math.random(1e4):()=>1e4*Math.random(),hugePoints=new Array(3e5).fill(0).map((()=>randomFunc())),hugePolylinesLayer=new _layers_polylines_polylinesLayer__WEBPACK_IMPORTED_MODULE_1__.Z({id:"huge_polylines-layer",polylinePoints:hugePoints,startIndices:[0],color:[0,100,100,40],widthUnits:"pixels",linesWidth:1,ZIncreasingDownwards:!0}),hugeAxesLayer=new _layers_axes_axesLayer__WEBPACK_IMPORTED_MODULE_2__.Z({id:"huge_axes_layer",bounds:[0,0,0,1e4,1e4,1e4]}),HugePolylinesLayer={args:{id:"map",layers:[hugeAxesLayer,hugePolylinesLayer],bounds:[0,0,1e4,1e4],views:_sharedSettings__WEBPACK_IMPORTED_MODULE_3__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_3__.R4.docs,description:{story:"Polyline nodes are randomly generated in runtime and given as native javascript arrays."}}},tags:["no-test"]},HugeLayerTypedArrayInput={args:{id:"map",layers:[hugeAxesLayer,{"@@type":"PolylinesLayer","@@typedArraySupport":!0,id:"huge_polylines-layer-typedarrays",polylinePoints:new Float32Array(hugePoints),startIndices:new Uint32Array([0,1e5]),color:[0,100,200,40],widthUnits:"pixels",linesWidth:1,ZIncreasingDownwards:!0}],bounds:[0,0,1e4,1e4],views:_sharedSettings__WEBPACK_IMPORTED_MODULE_3__.Pl},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_3__.R4.docs,description:{story:"Polyline nodes are randomly generated in runtime and given as javascript typed arrays."}}},tags:["no-test"]};SmallPolylinesLayer.parameters={...SmallPolylinesLayer.parameters,docs:{...SmallPolylinesLayer.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [smallAxesLayer, smallPolylinesLayer],\n bounds: [-10, -10, 17, 10],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Polyline nodes are given as native javascript array."\n }\n }\n }\n}',...SmallPolylinesLayer.parameters?.docs?.source}}},HugePolylinesLayer.parameters={...HugePolylinesLayer.parameters,docs:{...HugePolylinesLayer.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [hugeAxesLayer, hugePolylinesLayer],\n bounds: [0, 0, sideSize, sideSize],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Polyline nodes are randomly generated in runtime and given as native javascript arrays."\n }\n }\n },\n tags: ["no-test"]\n}',...HugePolylinesLayer.parameters?.docs?.source}}},HugeLayerTypedArrayInput.parameters={...HugeLayerTypedArrayInput.parameters,docs:{...HugeLayerTypedArrayInput.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [hugeAxesLayer, {\n "@@type": "PolylinesLayer",\n "@@typedArraySupport": true,\n id: "huge_polylines-layer-typedarrays",\n polylinePoints: new Float32Array(hugePoints),\n startIndices: new Uint32Array([0, pointsCount]),\n color: [0, 100, 200, 40],\n widthUnits: "pixels",\n linesWidth: 1,\n ZIncreasingDownwards: true\n }],\n bounds: [0, 0, sideSize, sideSize],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Polyline nodes are randomly generated in runtime and given as javascript typed arrays."\n }\n }\n },\n tags: ["no-test"]\n}',...HugeLayerTypedArrayInput.parameters?.docs?.source}}};const __namedExportsOrder=["SmallPolylinesLayer","HugePolylinesLayer","HugeLayerTypedArrayInput"]}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-TriangleLayer-stories.9c8d33f1.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-TriangleLayer-stories.9c8d33f1.iframe.bundle.js deleted file mode 100644 index 382a3590f..000000000 --- a/storybook-static/subsurface-viewer-src-storybook-layers-TriangleLayer-stories.9c8d33f1.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[1151],{"./packages/subsurface-viewer/src/storybook/layers/TriangleLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SmallTriangleLayer:function(){return SmallTriangleLayer},TriangleLayers:function(){return TriangleLayers},TwoSideLighting:function(){return TwoSideLighting},TypedArrayInput:function(){return TypedArrayInput},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return TriangleLayer_stories}});var react=__webpack_require__("./node_modules/react/index.js"),create=__webpack_require__("./node_modules/mathjs/lib/esm/core/create.js"),allFactoriesAny=__webpack_require__("./node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),SubsurfaceViewer=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),surfacePoints=[861.7890014648438,-1860.6434326171875,1853.28076171875,879.9158935546875,-1738.4476318359375,1852.9549560546875,960.7814331054688,-1821.2784423828125,1866.0389404296875,1018.4358520507812,-1737.1724853515625,1872.80029296875,964.563720703125,-1941.986328125,1866.393310546875,768.9938354492188,-1813.202392578125,1838.8836669921875,767.4557495117188,-1721.4793701171875,1832.3590087890625,741.5133666992188,-1940.981201171875,1841.8511962890625,683.4859008789062,-1856.35595703125,1831.6416015625,629.9881591796875,-1940.478515625,1828.9813232421875,680.164794921875,-1767.902099609375,1823.2357177734375,601.2835693359375,-1837.6441650390625,1821.6629638671875,570.889404296875,-1722.1883544921875,1803.9449462890625,518.4629516601562,-1939.9759521484375,1814.900634765625,516.6200561523438,-1817.6026611328125,1810.436767578125,444.38739013671875,-1847.1650390625,1800.611572265625,448.8537292480469,-1749.6646728515625,1793.7408447265625,478.0454406738281,-1628.515380859375,1780.5692138671875,345.6031799316406,-1654.7840576171875,1771.0831298828125,581.2296752929688,-1595.8873291015625,1789.5760498046875,517.5243530273438,-1508.9564208984375,1770.63037109375,692.8040161132812,-1637.1942138671875,1812.14599609375,651.2325439453125,-1480.4417724609375,1785.510986328125,817.1553344726562,-1640.7626953125,1837.530517578125,785.7288208007812,-1528.822509765625,1815.39453125,887.1284790039062,-1648.384521484375,1852.155029296875,890.530517578125,-1573.2716064453125,1846.8017578125,961.0101318359375,-1642.526123046875,1864.4166259765625,1088.2523193359375,-1630.976806640625,1879.9173583984375,1139.7178955078125,-1740.6533203125,1883.028076171875,1001.5465698242188,-1534.48388671875,1865.2052001953125,1105.330322265625,-1543.178955078125,1876.0738525390625,890.2262573242188,-1468.926513671875,1831.938720703125,777.6793823242188,-1404.856689453125,1799.1724853515625,761.4197998046875,-1233.3084716796875,1775.8338623046875,673.3624267578125,-1323.0516357421875,1774.745361328125,650.6951904296875,-1216.8822021484375,1760.435791015625,560.49951171875,-1249.4786376953125,1748.6405029296875,586.042236328125,-1119.165771484375,1734.5950927734375,545.6036376953125,-1384.4862060546875,1762.3653564453125,419.7807312011719,-1314.566162109375,1733.082275390625,448.66845703125,-1435.41943359375,1752.99609375,407.8156433105469,-1532.882568359375,1760.188232421875,352.57366943359375,-1442.3759765625,1739.5675048828125,303.1664123535156,-1278.968994140625,1707.7655029296875,309.34649658203125,-1534.6866455078125,1747.615478515625,222.36660766601562,-1455.9820556640625,1720.247314453125,220.3843231201172,-1593.92724609375,1742.817626953125,290.9559326171875,-1375.98486328125,1718.86474609375,230.45347595214844,-1195.436279296875,1682.929443359375,345.6728210449219,-1211.74951171875,1703.3887939453125,315.39019775390625,-1110.218994140625,1680.3040771484375,192.1130828857422,-1067.815673828125,1656.0904541015625,452.8620910644531,-1144.069091796875,1711.1119384765625,385.08941650390625,-1013.1820068359375,1675.0863037109375,511.9958190917969,-996.780517578125,1697.5880126953125,288.6710510253906,-1016.9102783203125,1659.7806396484375,318.1287536621094,-941.23046875,1647.482666015625,413.1354675292969,-884.2842407226562,1650.1026611328125,229.21490478515625,-960.020751953125,1641.193359375,268.2354736328125,-844.87109375,1606.3739013671875,118.16942596435547,-973.4879760742188,1626.279541015625,50.92790985107422,-1067.5357666015625,1640.27490234375,162.6715087890625,-915.8265380859375,1625.1282958984375,81.45683288574219,-885.9172973632812,1600.788818359375,5.358036994934082,-929.0392456054688,1601.110107421875,10.229177474975586,-791.511962890625,1572.2491455078125,-67.36048889160156,-1031.7615966796875,1616.1837158203125,-96.94837951660156,-941.0447387695312,1594.7064208984375,-170.2688446044922,-1012.996826171875,1602.572021484375,-99.39398193359375,-835.1890869140625,1578.2532958984375,-177.6343536376953,-905.6181030273438,1587.2271728515625,-282.18017578125,-961.906982421875,1584.008544921875,-238.01467895507812,-845.62109375,1569.9295654296875,-261.6784973144531,-1093.92529296875,1614.6707763671875,-370.31536865234375,-1062.3963623046875,1612.6407470703125,-163.6409454345703,-1124.8350830078125,1621.6298828125,-239.59532165527344,-1214.452392578125,1632.27734375,-142.1101837158203,-1235.4554443359375,1637.5013427734375,-345.6008605957031,-1183.132568359375,1634.775146484375,-320.4205017089844,-1309.3255615234375,1646.97705078125,-426.8017272949219,-1274.858154296875,1661.5826416015625,-200.4383544921875,-1345.6239013671875,1645.2078857421875,-299.9102478027344,-1425.1162109375,1661.3646240234375,-94.16718292236328,-1315.3843994140625,1649.2509765625,-55.96763610839844,-1252.0361328125,1650.3408203125,-94.27052307128906,-1426.355224609375,1664.6456298828125,-216.4856414794922,-1509.6666259765625,1675.511962890625,26.341041564941406,-1334.99560546875,1669.000244140625,13.91010570526123,-1482.821533203125,1687.5029296875,147.53402709960938,-1370.1776123046875,1695.0904541015625,105.03103637695312,-1433.274169921875,1697.072265625,116.19058227539062,-1535.3045654296875,1712.8310546875,26.108314514160156,-1594.9139404296875,1710.1270751953125,111.31521606445312,-1658.223388671875,1734.4732666015625,-92.20582580566406,-1582.2080078125,1698.00732421875,-13.67271900177002,-1714.6263427734375,1729.01806640625,-202.7684783935547,-1629.0057373046875,1702.53857421875,-150.3907012939453,-1715.803466796875,1720.8006591796875,-277.9425354003906,-1612.896484375,1696.9019775390625,-274.21697998046875,-1719.912841796875,1720.1336669921875,-349.2210693359375,-1543.879638671875,1685.83837890625,-347.1682434082031,-1655.935302734375,1708.242919921875,-434.0176696777344,-1639.8961181640625,1710.03955078125,-400.9255065917969,-1755.127685546875,1732.650146484375,-323.7271728515625,-1833.429443359375,1745.5955810546875,-515.4937133789062,-1725.83642578125,1726.4703369140625,-497.383544921875,-1831.3858642578125,1745.4449462890625,-537.3517456054688,-1608.9095458984375,1713.0859375,-637.714599609375,-1699.519775390625,1727.40576171875,-456.24053955078125,-1537.7835693359375,1697.267822265625,-547.2139282226562,-1475.2734375,1702.722900390625,-415.8777770996094,-1416.2860107421875,1676.8905029296875,-517.6598510742188,-1343.546875,1687.87744140625,-508.0495910644531,-1244.96435546875,1667.6788330078125,-578.604248046875,-1273.74462890625,1683.860107421875,-458.3787536621094,-1153.2919921875,1642.0179443359375,-562.6442260742188,-1179.874755859375,1657.36962890625,-465.3894958496094,-1044.87744140625,1610.409423828125,-533.2094116210938,-1089.6859130859375,1626.2686767578125,-418.4572448730469,-947.7275390625,1583.5196533203125,-552.3785400390625,-978.2411499023438,1592.720947265625,-498.6351623535156,-844.3829345703125,1561.498779296875,-629.5264282226562,-1092.3714599609375,1628.97314453125,-708.6398315429688,-970.031005859375,1591.3597412109375,-674.6998901367188,-1225.6453857421875,1674.087890625,-752.8807983398438,-1106.5714111328125,1636.8265380859375,-635.7734375,-1375.0172119140625,1701.7003173828125,-772.9774169921875,-1341.084228515625,1695.069091796875,-808.3516845703125,-1211.380126953125,1670.23583984375,-733.5857543945312,-1487.9598388671875,1715.492919921875,-637.7517700195312,-1475.968017578125,1710.970703125,-890.2557373046875,-1452.959716796875,1709.7613525390625,-911.7750244140625,-1292.7838134765625,1687.7340087890625,-834.916259765625,-1573.6304931640625,1727.40966796875,-973.8855590820312,-1610.605712890625,1733.088623046875,-738.5645141601562,-1625.02490234375,1727.707275390625,-637.6341552734375,-1563.7076416015625,1717.549560546875,-844.2506103515625,-1682.928466796875,1736.1019287109375,-750.2978515625,-1727.1026611328125,1734.736083984375,-832.0398559570312,-1792.626953125,1739.1943359375,-703.5598754882812,-1824.356201171875,1740.1328125,-589.1779174804688,-1800.5054931640625,1737.275146484375,-819.8394775390625,-1933.944580078125,1743.3958740234375,-934.6525268554688,-1851.61669921875,1742.6680908203125,-596.7890625,-1934.9498291015625,1747.2965087890625,-485.26385498046875,-1935.4525146484375,1752.8680419921875,-415.2593994140625,-1854.6942138671875,1750.6142578125,-373.7386474609375,-1935.955078125,1753.62841796875,-262.2134704589844,-1936.4576416015625,1749.948974609375,-211.04612731933594,-1821.816162109375,1739.8348388671875,-150.68826293945312,-1936.9603271484375,1748.4346923828125,-93.32098388671875,-1821.8289794921875,1742.5809326171875,22.831506729125977,-1838.4158935546875,1753.879150390625,107.9402084350586,-1776.666015625,1753.8939208984375,116.77896118164062,-1863.1326904296875,1765.2938232421875,220.80191040039062,-1724.8450927734375,1762.2486572265625,207.56768798828125,-1839.151123046875,1772.1385498046875,337.8406066894531,-1810.05322265625,1784.1453857421875,406.937744140625,-1939.4732666015625,1797.7569580078125,295.41253662109375,-1938.970703125,1783.8846435546875,183.88734436035156,-1938.4681396484375,1773.2186279296875,72.36214447021484,-1937.9654541015625,1763.221435546875,-39.16305923461914,-1937.462890625,1753.3299560546875,-942.3411254882812,-1747.124755859375,1739.3577880859375,-1037.9456787109375,-1806.00732421875,1740.8515625,-1036.322509765625,-1719.1474609375,1738.743408203125,-1042.889892578125,-1932.9393310546875,1740.7838134765625,-1158.3837890625,-1847.07177734375,1735.8309326171875,-1114.518310546875,-1754.5858154296875,1736.3387451171875,-1223.8931884765625,-1732.7222900390625,1730.6171875,-1116.199951171875,-1662.7362060546875,1733.553955078125,-1265.44873046875,-1818.49853515625,1728.6903076171875,-1320.8211669921875,-1762.8624267578125,1724.4208984375,-1265.9403076171875,-1931.93408203125,1727.9599609375,-1354.85693359375,-1833.0556640625,1722.33154296875,-1377.4654541015625,-1931.4315185546875,1721.9388427734375,-1399.74072265625,-1754.86279296875,1725.5150146484375,-1490.7823486328125,-1827.111572265625,1722.5133056640625,-1353.547119140625,-1661.847900390625,1737.26904296875,-1479.0482177734375,-1685.824462890625,1738.61962890625,-1229.987060546875,-1605.2713623046875,1735.469970703125,-1335.7493896484375,-1512.3104248046875,1739.0118408203125,-1120.97509765625,-1537.7900390625,1724.837158203125,-1225.876708984375,-1512.1927490234375,1730.721435546875,-1017.861083984375,-1481.0460205078125,1715.115478515625,-1104.5858154296875,-1424.6356201171875,1716.21875,-1183.09521484375,-1456.5712890625,1724.18896484375,-1007.578857421875,-1375.449951171875,1702.819580078125,-1101.3846435546875,-1334.0889892578125,1710.6588134765625,-1042.669189453125,-1266.0517578125,1696.4591064453125,-1206.9796142578125,-1361.0870361328125,1721.878662109375,-1159.6727294921875,-1244.4725341796875,1708.80322265625,-1258.0889892578125,-1444.6788330078125,1729.9989013671875,-1336.150146484375,-1378.980712890625,1731.2135009765625,-1310.6900634765625,-1244.4432373046875,1719.560302734375,-1465.295166015625,-1414.890625,1734.5924072265625,-1430.1715087890625,-1295.142333984375,1730.5506591796875,-1466.8682861328125,-1560.119140625,1739.9747314453125,-1599.45458984375,-1480.6385498046875,1734.0203857421875,-1599.719970703125,-1593.08544921875,1737.624755859375,-1599.9852294921875,-1705.532470703125,1738.2119140625,-1600.515869140625,-1930.42626953125,1724.1568603515625,-1599.1893310546875,-1368.191650390625,1730.302001953125,-1516.56201171875,-1311.2200927734375,1729.49755859375,-1598.9239501953125,-1255.7447509765625,1724.55712890625,-1508.104736328125,-1222.9775390625,1723.3504638671875,-1426.705078125,-1199.05322265625,1721.0345458984375,-1493.5198974609375,-1126.8402099609375,1711.8155517578125,-1378.2427978515625,-1107.3675537109375,1704.5230712890625,-1228.5916748046875,-1126.8011474609375,1696.36767578125,-1293.7215576171875,-1009.2962036132812,1672.358642578125,-1155.5767822265625,-1017.912109375,1663.669189453125,-1403.5369873046875,-1002.6725463867188,1684.9027099609375,-1374.49853515625,-897.18017578125,1657.483154296875,-1470.3912353515625,-1044.9188232421875,1698.2210693359375,-1486.5699462890625,-955.7293701171875,1684.4989013671875,-1598.393310546875,-1030.850830078125,1703.3819580078125,-1598.65869140625,-1143.2978515625,1715.07568359375,-1598.1280517578125,-918.4039916992188,1686.313232421875,-1494.39404296875,-848.8076782226562,1663.66015625,-1597.86279296875,-805.95703125,1666.373291015625,-1412.9466552734375,-763.1829223632812,1635.7735595703125,-1285.1156005859375,-798.2976684570312,1630.94384765625,-1514.8568115234375,-757.7666015625,1648.4326171875,-1489.0980224609375,-675.0341796875,1634.944580078125,-1395.119873046875,-663.3406982421875,1623.6876220703125,-1597.597412109375,-693.5101318359375,1650.57861328125,-1597.3321533203125,-581.063232421875,1638.4705810546875,-1435.4188232421875,-577.00244140625,1621.17138671875,-1475.5732421875,-464.10333251953125,1620.7469482421875,-1314.831787109375,-598.754638671875,1612.238037109375,-1347.2730712890625,-479.14361572265625,1603.7154541015625,-1307.732666015625,-703.1286010742188,1621.3804931640625,-1191.51416015625,-658.7967529296875,1615.4088134765625,-1234.21875,-736.6355590820312,1623.770751953125,-1154.8206787109375,-785.0330810546875,1619.3280029296875,-1221.8155517578125,-903.0706176757812,1642.693603515625,-1064.96923828125,-688.8557739257812,1610.18994140625,-1053.2501220703125,-791.4798583984375,1612.5128173828125,-1088.4603271484375,-585.26611328125,1601.262939453125,-969.3944702148438,-593.8766479492188,1596.21533203125,-1195.7532958984375,-511.6141662597656,1594.8826904296875,-1042.4031982421875,-476.8310852050781,1592.331298828125,-1248.5784912109375,-379.767578125,1600.477294921875,-1133.4149169921875,-405.6683654785156,1589.1583251953125,-1391.07568359375,-342.9394836425781,1612.8223876953125,-1279.4688720703125,-254.48696899414062,1613.9505615234375,-1513.70556640625,-353.4427490234375,1625.2872314453125,-1597.0667724609375,-468.61627197265625,1633.4263916015625,-1468.8536376953125,-238.93255615234375,1633.5958251953125,-1379.4422607421875,-223.45767211914062,1624.286376953125,-1596.5361328125,-243.72244262695312,1649.310302734375,-1521.483642578125,-127.5386962890625,1669.0941162109375,-1425.0833740234375,-130.4219207763672,1650.3021240234375,-1481.6556396484375,6.668664455413818,1689.8135986328125,-1361.804931640625,-36.8621826171875,1662.4884033203125,-1596.005615234375,-18.828590393066406,1694.59326171875,-1595.7403564453125,93.61833190917969,1709.395263671875,-1509.7713623046875,138.3538360595703,1710.3819580078125,-1595.47509765625,206.06524658203125,1726.599365234375,-1454.83740234375,99.9257583618164,1700.2939453125,-1388.745361328125,74.54134368896484,1688.1661376953125,-1425.888916015625,185.8390655517578,1709.87939453125,-1512.4388427734375,249.7236328125,1727.75244140625,-1439.9642333984375,310.859375,1729.4417724609375,-1595.209716796875,318.5121765136719,1746.895263671875,-1519.0767822265625,343.4278869628906,1742.7469482421875,-1594.9444580078125,430.9591064453125,1763.82666015625,-1469.5870361328125,417.4986572265625,1745.25732421875,-1363.015869140625,392.6597900390625,1730.2757568359375,-1507.9031982421875,504.2359924316406,1763.0870361328125,-1594.6790771484375,543.406005859375,1775.63818359375,-1409.309814453125,521.3930053710938,1749.498291015625,-1499.749755859375,598.5016479492188,1770.3651123046875,-1412.6181640625,669.5552368164062,1757.64990234375,-1594.413818359375,655.8529663085938,1784.077392578125,-1509.364013671875,692.7000732421875,1770.68310546875,-1594.1484375,768.2998657226562,1775.564453125,-1469.2255859375,777.1948852539062,1755.8006591796875,-1390.421630859375,779.2713623046875,1735.478515625,-1510.7293701171875,894.4447021484375,1764.45068359375,-1409.323974609375,867.6013793945312,1743.0264892578125,-1435.0908203125,943.6760864257812,1754.110595703125,-1342.455810546875,984.2723388671875,1731.29736328125,-1478.3914794921875,1030.0496826171875,1765.798828125,-1593.617919921875,993.1937255859375,1766.8985595703125,-1593.3525390625,1105.640625,1765.5462646484375,-1499.5233154296875,1161.568359375,1765.447509765625,-1593.0872802734375,1218.0875244140625,1761.2626953125,-1399.135498046875,1128.7115478515625,1751.473388671875,-1439.1695556640625,1228.073486328125,1763.7098388671875,-1340.7799072265625,1241.9013671875,1739.24462890625,-1507.859375,1256.4412841796875,1763.59765625,-1432.423095703125,1349.9664306640625,1762.30712890625,-1592.8218994140625,1330.534423828125,1758.5015869140625,-1510.0902099609375,1432.3636474609375,1756.102783203125,-1592.556640625,1442.9814453125,1754.5677490234375,-1440.979736328125,1471.570068359375,1756.9501953125,-1347.3955078125,1463.1416015625,1750.960693359375,-1520.7774658203125,1543.1719970703125,1752.638916015625,-1404.4591064453125,1558.263916015625,1750.614990234375,-1592.0260009765625,1667.875244140625,1751.0401611328125,-1479.341552734375,1668.27734375,1749.760986328125,-1366.6572265625,1668.6795654296875,1748.7506103515625,-1253.9727783203125,1669.0816650390625,1749.0267333984375,-1294.2244873046875,1559.326171875,1747.9345703125,-1178.5262451171875,1560.0986328125,1744.1578369140625,-1234.1209716796875,1465.9415283203125,1741.7073974609375,-1289.902587890625,1360.6898193359375,1739.1865234375,-1184.0987548828125,1380.1884765625,1729.2998046875,-1194.50341796875,1256.717529296875,1710.8822021484375,-1116.6849365234375,1462.662109375,1730.8829345703125,-1082.884765625,1349.576171875,1715.8463134765625,-1041.119873046875,1566.7481689453125,1735.8828125,-978.4835205078125,1444.605712890625,1714.961669921875,-1141.288330078125,1669.4837646484375,1746.990966796875,-915.9195556640625,1670.2879638671875,1735.3050537109375,-916.9568481445312,1546.7247314453125,1722.494140625,-811.1881713867188,1588.4853515625,1721.2724609375,-838.4312133789062,1481.805419921875,1706.591552734375,-873.645263671875,1361.6304931640625,1695.760986328125,-702.2369995117188,1532.0076904296875,1709.5858154296875,-751.5347900390625,1402.1837158203125,1694.391357421875,-690.55078125,1671.09228515625,1725.77587890625,-577.8663940429688,1671.494384765625,1724.3541259765625,-575.9010620117188,1506.6978759765625,1704.4166259765625,-478.69622802734375,1563.6982421875,1711.5946044921875,-651.4581909179688,1434.36279296875,1696.709716796875,-565.4490356445312,1393.3045654296875,1691.8603515625,-663.5376586914062,1329.60693359375,1683.183837890625,-782.0293579101562,1263.8016357421875,1675.5460205078125,-563.4688720703125,1272.9488525390625,1673.82763671875,-456.7222900390625,1349.3681640625,1682.4765625,-667.3738403320312,1209.151123046875,1662.0633544921875,-568.5516357421875,1147.1724853515625,1646.04931640625,-673.7217407226562,1092.936279296875,1640.668701171875,-458.1858825683594,1210.0697021484375,1654.93603515625,-461.67169189453125,1061.7015380859375,1616.4791259765625,-351.2511901855469,1278.968017578125,1664.964111328125,-345.7652893066406,1151.394287109375,1632.5274658203125,-354.51507568359375,1396.835693359375,1684.3709716796875,-420.56964111328125,1427.8182373046875,1689.2220458984375,-232.08206176757812,1342.922607421875,1676.45849609375,-257.739013671875,1221.33056640625,1648.5587158203125,-274.74407958984375,1473.4234619140625,1694.9976806640625,-156.76394653320312,1454.8651123046875,1691.5208740234375,-388.90826416015625,1501.4337158203125,1697.6378173828125,-310.4491271972656,1575.228759765625,1711.74560546875,-481.2547302246094,1459.2696533203125,1696.0814208984375,-398.6641540527344,1593.2861328125,1715.1688232421875,-465.1819763183594,1671.896484375,1724.3216552734375,-352.49755859375,1672.298583984375,1725.00390625,-239.81317138671875,1672.70068359375,1724.6864013671875,-199.64767456054688,1560.939453125,1710.8104248046875,-127.1287612915039,1673.102783203125,1728.557373046875,-74.02360534667969,1549.95068359375,1712.0184326171875,-55.41718673706055,1448.5963134765625,1691.6475830078125,42.451988220214844,1582.0577392578125,1727.6773681640625,-14.444360733032227,1673.5050048828125,1736.5784912109375,20.561826705932617,1495.565185546875,1704.59814453125,98.71294403076172,1529.09423828125,1717.54736328125,98.60785675048828,1465.499755859375,1706.5567626953125,145.86419677734375,1590.3173828125,1735.0224609375,98.24004364013672,1673.9071044921875,1742.5540771484375,202.4840545654297,1500.081298828125,1719.4649658203125,238.74383544921875,1595.6866455078125,1735.6810302734375,324.9022216796875,1556.25341796875,1729.18408203125,210.9244384765625,1674.3092041015625,1745.0150146484375,323.6088562011719,1674.7113037109375,1744.6502685546875,409.1336669921875,1598.8135986328125,1738.3992919921875,436.2932434082031,1675.113525390625,1752.3504638671875,433.020751953125,1517.9718017578125,1724.625732421875,337.2484436035156,1452.6402587890625,1713.516357421875,507.0063781738281,1583.1048583984375,1743.1248779296875,548.14599609375,1481.7940673828125,1725.7938232421875,548.9776611328125,1675.515625,1766.8397216796875,640.2418212890625,1568.30419921875,1761.3465576171875,774.346435546875,1676.31982421875,1802.11474609375,673.191162109375,1431.71142578125,1731.9595947265625,558.9354858398438,1367.6552734375,1700.38671875,754.6890258789062,1524.523193359375,1767.8087158203125,803.8036499023438,1429.4561767578125,1749.1075439453125,874.3309936523438,1540.7723388671875,1791.1162109375,887.0308837890625,1676.7220458984375,1824.0675048828125,904.1748046875,1430.513671875,1763.69384765625,986.0328369140625,1486.49755859375,1789.906005859375,867.8822631835938,1313.8184814453125,1728.19873046875,987.6865234375,1372.245361328125,1762.250732421875,740.7783813476562,1324.28955078125,1713.59326171875,775.5631713867188,1202.3060302734375,1680.7802734375,642.7742919921875,1321.926025390625,1698.8846435546875,675.7444458007812,1244.2989501953125,1682.9168701171875,561.16015625,1240.607666015625,1672.6651611328125,466.8395690917969,1311.3538818359375,1686.1441650390625,452.57513427734375,1413.23779296875,1705.48046875,397.947265625,1195.092041015625,1655.990478515625,362.66265869140625,1338.055419921875,1694.99658203125,527.527099609375,1111.33251953125,1641.3360595703125,433.6287536621094,1062.7071533203125,1624.6461181640625,656.628173828125,1133.786376953125,1651.12890625,599.9150390625,1039.5357666015625,1625.3114013671875,759.1717529296875,1089.2598876953125,1645.7362060546875,692.8936157226562,1014.2053833007812,1622.70849609375,845.0784912109375,1113.9842529296875,1664.18505859375,878.685546875,1200.853759765625,1696.6168212890625,822.6812744140625,984.9747924804688,1626.2523193359375,908.7816162109375,1066.953369140625,1665.265625,959.660400390625,989.1626586914062,1656.3714599609375,921.6813354492188,1143.46435546875,1689.3289794921875,992.7312622070312,1104.945068359375,1694.9847412109375,980.9950561523438,1232.6092529296875,1726.9124755859375,1100.44482421875,1168.6759033203125,1730.549560546875,1115.727294921875,1324.144775390625,1768.2691650390625,1070.567138671875,1436.6666259765625,1785.8880615234375,1173.812255859375,1455.9268798828125,1799.8978271484375,1089.27587890625,1533.837158203125,1816.15185546875,990.1782836914062,1591.304931640625,1822.6085205078125,1112.399658203125,1677.5262451171875,1848.0748291015625,1206.777587890625,1567.3294677734375,1836.592041015625,1225.0841064453125,1677.9283447265625,1860.945556640625,1289.2509765625,1491.4239501953125,1819.9132080078125,1336.111328125,1598.5657958984375,1855.512451171875,1272.5972900390625,1366.61962890625,1790.7396240234375,1364.8770751953125,1439.6492919921875,1815.73291015625,1225.4029541015625,1227.8662109375,1762.373779296875,1337.678466796875,1263.0643310546875,1780.1815185546875,1205.4862060546875,1091.3134765625,1731.70947265625,1083.4962158203125,1029.83349609375,1693.07275390625,1325.0714111328125,1149.0587158203125,1762.0224609375,1303.0914306640625,1032.00244140625,1739.16259765625,1462.9921875,1215.2435302734375,1796.1171875,1422.84521484375,1060.014404296875,1765.0614013671875,1407.24169921875,1352.3165283203125,1804.249755859375,1538.2750244140625,1354.7364501953125,1838.9735107421875,1473.942138671875,1465.2711181640625,1832.97021484375,1384.5574951171875,1514.632568359375,1836.530517578125,1460.8643798828125,1575.42529296875,1858.2940673828125,1450.452880859375,1678.7325439453125,1872.940673828125,1563.1373291015625,1679.134765625,1879.7625732421875,1577.86328125,1545.433349609375,1861.0465087890625,1684.8681640625,1604.394287109375,1891.37158203125,1590.935546875,1453.15869140625,1858.946044921875,1694.0545654296875,1503.5413818359375,1888.9664306640625,1674.860107421875,1384.6002197265625,1872.724365234375,1627.67041015625,1247.989013671875,1841.1278076171875,1769.092041015625,1293.89501953125,1882.2542724609375,1591.037841796875,1077.2930908203125,1802.5264892578125,1733.0899658203125,1163.846435546875,1848.202392578125,1724.025634765625,1058.19482421875,1827.0078125,1854.5955810546875,1207.6859130859375,1895.9022216796875,1886.6295166015625,1314.7000732421875,1920.423095703125,1811.5858154296875,1116.7152099609375,1860.4495849609375,1914.21142578125,1119.24755859375,1901.429443359375,1936.4412841796875,993.5064086914062,1896.763671875,1991.9100341796875,1240.15576171875,1947.419189453125,2037.76611328125,1104.5799560546875,1942.6055908203125,1977.143798828125,1385.146240234375,1948.1829833984375,1835.5623779296875,1442.2794189453125,1916.30126953125,2120.77587890625,1346.7357177734375,1995.6221923828125,2134.049560546875,1197.5975341796875,1992.0157470703125,2061.005859375,1471.8680419921875,1973.146728515625,1961.7149658203125,1486.57666015625,1947.333251953125,2176.816162109375,1477.331298828125,2008.6722412109375,2249.763916015625,1395.7962646484375,2035.105224609375,2107.851318359375,1570.9298095703125,1980.1353759765625,2232.86279296875,1595.5369873046875,2010.8614501953125,2013.2730712890625,1553.3780517578125,1960.434326171875,2013.8748779296875,1680.7431640625,1958.1566162109375,1919.270263671875,1566.16552734375,1943.3275146484375,1901.1904296875,1680.341064453125,1938.518310546875,1801.916748046875,1575.3560791015625,1923.29150390625,1788.506103515625,1679.93896484375,1914.319580078125,2126.559326171875,1681.145263671875,1984.263916015625,2351.92822265625,1681.9495849609375,2017.3951416015625,2353.880126953125,1568.4974365234375,2031.63427734375,2270.105224609375,1495.0032958984375,2032.7530517578125,2355.832275390625,1455.045166015625,2043.859130859375,2357.7841796875,1341.593017578125,2045.083984375,2359.736083984375,1228.140869140625,2038.095458984375,2239.2890625,1273.924560546875,2033.016357421875,2247.197509765625,1152.6710205078125,2021.9432373046875,2159.43798828125,1076.9442138671875,1982.1307373046875,2259.238037109375,1038.654296875,2003.2801513671875,2080.528564453125,987.1210327148438,1940.725341796875,2184.11962890625,981.3264770507812,1962.397216796875,2012.5849609375,865.7271118164062,1898.233642578125,1853.3411865234375,869.1746826171875,1857.659423828125,2147.275634765625,890.6253662109375,1942.898193359375,2114.929931640625,800.3868408203125,1915.1923828125,2265.780517578125,912.1564331054688,1977.64599609375,2216.031494140625,796.9902954101562,1957.432861328125,2367.5439453125,774.3320922851562,1975.061279296875,2263.030517578125,707.1396484375,1948.735595703125,2363.64013671875,1001.2364501953125,2005.5843505859375,2361.688232421875,1114.6885986328125,2024.1705322265625,2369.49609375,660.8798828125,1953.7049560546875,2148.02490234375,697.6456909179688,1908.320068359375,2239.0947265625,610.71533203125,1930.0081787109375,2126.820556640625,572.2740478515625,1893.5604248046875,2310.571533203125,548.0383911132812,1937.5770263671875,2223.07177734375,486.6325988769531,1916.6539306640625,2373.39990234375,433.97552490234375,1931.6839599609375,2249.91796875,360.6570129394531,1912.175048828125,2375.35205078125,320.5233459472656,1921.0850830078125,2154.04296875,400.02288818359375,1891.3717041015625,2139.26953125,287.660400390625,1881.6533203125,2112.328369140625,473.9327697753906,1884.385498046875,2032.9600830078125,392.50830078125,1861.122314453125,2014.542236328125,518.860595703125,1862.1021728515625,1997.4342041015625,266.09063720703125,1849.136474609375,2074.785400390625,171.21607971191406,1865.112060546875,1914.4837646484375,342.1304931640625,1832.49951171875,1885.7952880859375,457.2303466796875,1832.4022216796875,1869.2579345703125,246.20718383789062,1815.64599609375,1947.49267578125,154.51995849609375,1835.8914794921875,1785.34765625,346.51593017578125,1801.5113525390625,1760.323486328125,233.5647430419922,1789.76123046875,1751.1888427734375,459.3017883300781,1803.0072021484375,1656.574951171875,399.7796325683594,1782.8741455078125,1784.925048828125,567.7439575195312,1820.3406982421875,1643.834716796875,522.2695922851562,1791.0799560546875,1912.731201171875,570.0400390625,1846.8338623046875,1868.564453125,660.9611206054688,1847.82666015625,2007.27490234375,646.5875244140625,1869.2845458984375,2042.9193115234375,753.187255859375,1887.3890380859375,1931.4490966796875,757.0819702148438,1870.5762939453125,1825.38427734375,752.9912719726562,1848.569091796875,1732.5745849609375,807.9786376953125,1827.53759765625,1755.784912109375,684.8237915039062,1829.4761962890625,1675.9180908203125,624.341552734375,1806.4500732421875,1650.0411376953125,717.2589721679688,1808.2843017578125,1546.9912109375,632.0452880859375,1781.39208984375,1557.1185302734375,748.862060546875,1791.200439453125,1531.748291015625,519.36083984375,1770.6939697265625,1566.4078369140625,445.4859924316406,1772.00390625,1439.2470703125,548.0740966796875,1755.2884521484375,1423.4200439453125,644.8561401367188,1760.729248046875,1468.4288330078125,444.3411560058594,1753.509765625,1349.5533447265625,461.28125,1733.90185546875,1534.0421142578125,338.4849853515625,1758.4151611328125,1393.7882080078125,349.1456604003906,1732.7750244140625,1439.022705078125,239.66082763671875,1731.5035400390625,1333.795654296875,256.955322265625,1712.37255859375,1556.03857421875,203.57717895507812,1752.7691650390625,1463.223388671875,135.39939880371094,1729.6650390625,1661.0645751953125,281.22735595703125,1774.375244140625,1676.7388916015625,159.76283264160156,1771.7698974609375,1810.853759765625,130.56777954101562,1799.1357421875,1710.19140625,42.8034782409668,1779.613525390625,1809.9217529296875,23.292646408081055,1806.6796875,1565.17724609375,61.08758544921875,1747.3717041015625,1641.3111572265625,-62.947383880615234,1773.55908203125,1510.91455078125,-76.9419937133789,1745.6339111328125,1760.7333984375,-59.74674606323242,1804.061767578125,1718.1236572265625,-188.91282653808594,1816.662353515625,1587.2564697265625,-160.09689331054688,1779.321533203125,1824.2978515625,-128.8174591064453,1831.671630859375,1861.2762451171875,-218.62423706054688,1855.6778564453125,1865.029541015625,-47.688716888427734,1831.2230224609375,1919.737548828125,-131.257080078125,1854.27880859375,1905.2164306640625,47.630313873291016,1831.925048828125,1974.1976318359375,-40.78607177734375,1857.740966796875,2025.3450927734375,62.13774108886719,1861.0518798828125,2097.420166015625,-38.79886245727539,1882.637939453125,2147.22265625,76.43135833740234,1885.5850830078125,2180.573974609375,178.16397094726562,1889.2294921875,2223.149658203125,-25.8923282623291,1905.474853515625,2172.549560546875,-165.45144653320312,1906.4249267578125,2271.528076171875,109.48973083496094,1908.9261474609375,2381.2080078125,-19.833215713500977,1918.73876953125,2260.944580078125,243.30255126953125,1907.6964111328125,2377.303955078125,207.0711669921875,1917.574462890625,2284.379150390625,-113.90245056152344,1917.6907958984375,2383.159912109375,-133.285400390625,1923.9892578125,2285.04248046875,-207.53323364257812,1922.899658203125,2219.67333984375,-262.915771484375,1918.33251953125,2150.114501953125,-275.5901794433594,1909.674072265625,2284.5986328125,-310.25421142578125,1924.8431396484375,2195.1220703125,-344.1690368652344,1919.67236328125,2385.11181640625,-246.73757934570312,1926.2005615234375,2387.063720703125,-360.18975830078125,1924.872314453125,2389.015625,-473.6419677734375,1921.4871826171875,2258.524658203125,-427.7762451171875,1922.515869140625,2273.182373046875,-548.0547485351562,1920.288818359375,2153.940673828125,-420.9827880859375,1919.5574951171875,2163.40869140625,-515.7293090820312,1925.2578125,2094.96337890625,-348.9832458496094,1906.6436767578125,2055.899658203125,-456.50830078125,1911.994384765625,1949.2952880859375,-338.0953063964844,1887.171630859375,2047.433349609375,-615.1253051757812,1928.4063720703125,1924.718994140625,-492.4966125488281,1897.80810546875,2189.139892578125,-614.18115234375,1931.3829345703125,2175.98193359375,-732.3543701171875,1934.340576171875,2281.60546875,-659.3626098632812,1923.399658203125,2390.967529296875,-587.0941162109375,1921.337646484375,2297.103271484375,-772.0360107421875,1932.5467529296875,2237.26953125,-862.0958251953125,1934.9525146484375,2392.919677734375,-700.5463256835938,1926.18798828125,2323.067626953125,-865.99462890625,1933.212158203125,2394.87158203125,-813.99853515625,1930.8175048828125,2305.80908203125,-959.1783447265625,1929.9749755859375,2191.258056640625,-993.6737670898438,1926.607177734375,2396.823486328125,-927.45068359375,1930.0628662109375,2398.775390625,-1040.90283203125,1924.1826171875,2302.6376953125,-1076.0130615234375,1919.403076171875,2400.7275390625,-1154.3551025390625,1916.5484619140625,2212.525634765625,-1141.213623046875,1914.0609130859375,2090.17431640625,-1082.066650390625,1918.0860595703125,2314.45458984375,-1175.62841796875,1913.6024169921875,2263.6962890625,-1258.1358642578125,1912.882080078125,2099.612060546875,-1172.7017822265625,1910.0216064453125,2402.679443359375,-1267.8072509765625,1911.4781494140625,2295.3291015625,-1386.261474609375,1909.9866943359375,2177.605712890625,-1350.1710205078125,1915.516845703125,2192.232421875,-1446.1044921875,1908.6446533203125,2152.256591796875,-1255.0438232421875,1914.1949462890625,2009.5694580078125,-1138.2418212890625,1907.5687255859375,1969.1981201171875,-1053.613037109375,1908.860107421875,1914.114013671875,-1120.8695068359375,1903.3255615234375,2043.91162109375,-968.0408935546875,1921.661376953125,1912.1285400390625,-950.59619140625,1903.164794921875,2115.7138671875,-860.1886596679688,1934.2418212890625,1984.074951171875,-850.6554565429688,1925.1986083984375,2052.908447265625,-757.5010986328125,1935.521484375,1936.726806640625,-732.00634765625,1923.6080322265625,1872.959716796875,-618.3528442382812,1904.3614501953125,1817.9661865234375,-717.4976196289062,1905.605712890625,1785.8792724609375,-513.2067260742188,1880.733154296875,1723.6629638671875,-638.7860717773438,1884.1256103515625,1835.79443359375,-412.37457275390625,1879.5113525390625,1724.668212890625,-406.072265625,1859.9931640625,1795.6217041015625,-312.09661865234375,1859.7076416015625,1964.6329345703125,-214.84637451171875,1873.245849609375,2061.42529296875,-247.71533203125,1893.20947265625,2032.1644287109375,-139.65652465820312,1876.57080078125,1688.3045654296875,-309.7751159667969,1835.47314453125,1595.517578125,-264.135498046875,1803.398193359375,1610.99658203125,-378.6903076171875,1831.738037109375,1499.6322021484375,-339.7869873046875,1797.7215576171875,1635.1373291015625,-510.6114807128906,1855.0550537109375,1527.2117919921875,-442.760986328125,1823.6273193359375,1584.01904296875,-647.2069091796875,1862.8179931640625,1493.7037353515625,-548.33544921875,1833.8016357421875,1656.22314453125,-700.565185546875,1878.4696044921875,1602.3831787109375,-751.795166015625,1873.3409423828125,1714.2584228515625,-765.9979858398438,1890.4619140625,1626.686767578125,-852.13427734375,1878.0513916015625,1727.22216796875,-873.82373046875,1887.1737060546875,1517.773681640625,-818.0614624023438,1860.3497314453125,1529.6719970703125,-929.587158203125,1870.49658203125,1511.9404296875,-727.5237426757812,1855.15283203125,1389.6978759765625,-761.4021606445312,1831.7325439453125,1466.114013671875,-656.4810791015625,1841.543212890625,1352.672119140625,-597.97119140625,1812.4229736328125,1398.908447265625,-437.2274475097656,1794.313232421875,1256.2666015625,-484.31982421875,1769.4085693359375,1269.892822265625,-342.1333923339844,1753.2491455078125,1205.34521484375,-601.0687255859375,1775.6524658203125,1260.8214111328125,-697.1566772460938,1798.4798583984375,1137.250244140625,-511.4718322753906,1743.302490234375,1172.658935546875,-417.7970886230469,1740.8372802734375,1097.1168212890625,-603.6880493164062,1745.977783203125,1021.4201049804688,-534.4234008789062,1720.0572509765625,1130.2708740234375,-708.144287109375,1766.871826171875,992.7365112304688,-659.4491577148438,1730.198486328125,1231.929443359375,-808.8711547851562,1797.2086181640625,1110.439697265625,-807.6906127929688,1774.4053955078125,1026.2498779296875,-759.4384765625,1752.12255859375,943.2666015625,-741.1598510742188,1731.12646484375,851.7659912109375,-696.7603759765625,1707.802490234375,881.3225708007812,-562.0530395507812,1697.656982421875,776.3859252929688,-623.3237915039062,1683.4046630859375,745.8646240234375,-531.7985229492188,1669.1082763671875,729.8922119140625,-690.4482421875,1676.25439453125,672.2891845703125,-617.38623046875,1657.6903076171875,697.3704833984375,-752.183349609375,1664.8524169921875,621.6793212890625,-693.3981323242188,1648.9453125,557.06494140625,-616.8385620117188,1629.24853515625,610.4675903320312,-511.5979309082031,1633.7872314453125,527.9738159179688,-684.4620361328125,1625.8953857421875,423.751708984375,-631.6131591796875,1597.337158203125,486.6697998046875,-753.77587890625,1625.9693603515625,365.0249938964844,-764.78271484375,1601.504638671875,268.29302978515625,-686.5967407226562,1575.54052734375,299.5533142089844,-544.625732421875,1571.7100830078125,182.95651245117188,-573.5125732421875,1561.346923828125,409.26385498046875,-498.01397705078125,1578.8961181640625,323.3856506347656,-435.9721374511719,1551.60302734375,499.90570068359375,-542.2138671875,1605.89453125,503.4350891113281,-446.4783630371094,1591.0208740234375,410.9345703125,-385.5606689453125,1554.1351318359375,498.75640869140625,-351.27001953125,1576.971435546875,300.4162292480469,-312.6522521972656,1518.0316162109375,205.17869567871094,-446.7030029296875,1535.7906494140625,437.71435546875,-277.8377685546875,1540.6048583984375,384.38494873046875,-211.15113830566406,1523.772216796875,552.2374877929688,-271.6133117675781,1574.26708984375,496.05126953125,-167.72772216796875,1542.0079345703125,592.7351684570312,-380.6540222167969,1614.5125732421875,683.9765625,-283.1114196777344,1619.4818115234375,707.9547119140625,-416.5509338378906,1652.48095703125,786.655517578125,-343.6493225097656,1658.136962890625,824.6746215820312,-232.92913818359375,1647.775390625,827.0445556640625,-440.2552185058594,1674.8841552734375,889.3226928710938,-341.8941650390625,1675.7210693359375,949.4003295898438,-440.3209228515625,1697.1953125,1006.0259399414062,-333.6055908203125,1699.1497802734375,941.7160034179688,-255.02005004882812,1675.849365234375,1069.6004638671875,-427.160400390625,1718.755615234375,1129.427734375,-324.0692443847656,1725.5242919921875,1055.78369140625,-208.6792449951172,1695.7425537109375,1201.8824462890625,-213.04490661621094,1726.2938232421875,933.3356323242188,-153.0040740966797,1660.6802978515625,1032.4190673828125,-68.32977294921875,1670.7064208984375,828.361328125,-98.0562973022461,1637.61962890625,715.2744140625,-152.76536560058594,1607.5458984375,922.5941162109375,-50.70039367675781,1652.3133544921875,852.607666015625,25.850854873657227,1643.0262451171875,975.12353515625,34.840110778808594,1654.98046875,736.1585693359375,-36.95909118652344,1616.2666015625,749.0191650390625,87.02015686035156,1625.7213134765625,617.0748901367188,-92.66761016845703,1567.6651611328125,611.8190307617188,-190.16473388671875,1575.754638671875,653.4537963867188,22.66831398010254,1596.935302734375,512.2028198242188,-75.8230209350586,1534.6531982421875,163.58689880371094,-345.83251953125,1524.1898193359375,191.09219360351562,-234.2079620361328,1505.6585693359375,79.49559783935547,-435.05126953125,1538.2095947265625,119.6762924194336,-510.4808349609375,1542.8084716796875,62.960243225097656,-341.9747314453125,1523.360595703125,-19.997316360473633,-439.3621520996094,1530.186767578125,58.58070755004883,-523.792724609375,1543.9674072265625,98.2862319946289,-583.421142578125,1546.7275390625,32.922203063964844,-597.5022583007812,1540.7713623046875,57.02334976196289,-642.2880859375,1542.6845703125,144.55975341796875,-669.8187866210938,1553.6514892578125,193.0252685546875,-761.0648193359375,1574.81884765625,113.6123275756836,-758.995849609375,1565.84521484375,931.3521118164062,122.08441162109375,1647.0128173828125,1041.2611083984375,131.38406372070312,1659.5120849609375,1079.1510009765625,35.9358024597168,1666.1539306640625,986.3023071289062,237.67906188964844,1654.0750732421875,1124.06689453125,233.7738800048828,1673.86962890625,864.4102783203125,252.2430877685547,1645.422119140625,883.80224609375,172.44708251953125,1644.0489501953125,935.3015747070312,362.8125305175781,1655.792236328125,1084.11767578125,370.00567626953125,1670.496826171875,789.8192749023438,331.2890625,1643.46826171875,755.342041015625,227.2905731201172,1637.01171875,679.1876220703125,293.25750732421875,1627.3861083984375,812.6500244140625,184.9926300048828,1641.7333984375,744.4094848632812,147.36830139160156,1634.489013671875,621.7067260742188,82.0364761352539,1612.945068359375,625.2766723632812,174.4949493408203,1616.5848388671875,568.6723022460938,83.03350830078125,1597.5762939453125,498.8724670410156,134.49313354492188,1582.33935546875,501.39593505859375,27.160602569580078,1568.947265625,507.1268615722656,-68.4214859008789,1553.089599609375,391.06500244140625,-8.907946586608887,1544.819091796875,411.18475341796875,87.57412719726562,1557.19580078125,288.2949523925781,84.82996368408203,1530.4976806640625,382.9039611816406,221.5760498046875,1551.0157470703125,512.9264526367188,228.2262725830078,1584.497314453125,485.0601501464844,300.6591491699219,1576.9027099609375,586.0831909179688,298.96307373046875,1607.73291015625,639.7564697265625,338.6519775390625,1623.5809326171875,681.1511840820312,390.5338439941406,1634.4588623046875,1030.2017822265625,452.6648254394531,1673.125244140625,1130.3153076171875,495.8545837402344,1692.3876953125,1169.37451171875,429.3913879394531,1692.90234375,1239.714599609375,350.2657470703125,1702.2279052734375,1235.8699951171875,486.3388671875,1713.6976318359375,1218.2850341796875,574.1286010742188,1714.7939453125,1327.684814453125,578.166015625,1738.6004638671875,1354.9090576171875,664.47802734375,1750.0621337890625,1278.673583984375,668.4463500976562,1734.449462890625,1482.2763671875,710.1138916015625,1776.3065185546875,1476.5137939453125,792.4610595703125,1780.2125244140625,1545.7376708984375,843.2933959960938,1798.62060546875,1632.2313232421875,816.7269287109375,1809.036376953125,1730.824462890625,960.3817749023438,1841.7132568359375,1836.869140625,960.0811157226562,1859.8890380859375,1811.852294921875,1021.0869140625,1857.1309814453125,1659.67431640625,999.9602661132812,1804.8946533203125,1729.070068359375,969.4833984375,1819.305908203125,1578.549560546875,947.7852172851562,1779.0572509765625,1488.3883056640625,974.0581665039062,1763.1036376953125,1471.9454345703125,885.4599609375,1746.4327392578125,1364.1683349609375,924.3819580078125,1729.541015625,1543.2940673828125,851.9551391601562,1756.3646240234375,1474.027099609375,802.1508178710938,1729.787841796875,1381.995361328125,815.6062622070312,1714.0452880859375,1266.93017578125,799.3385620117188,1685.1873779296875,1200.1890869140625,935.3339233398438,1699.0220947265625,1320.212646484375,709.19970703125,1685.0718994140625,1196.5692138671875,725.5680541992188,1651.04638671875,1135.438720703125,790.9566040039062,1648.813232421875,1114.9449462890625,691.58935546875,1615.4085693359375,990.2200927734375,738.6798706054688,1594.94580078125,1274.0504150390625,685.5116577148438,1666.1309814453125,884.1876220703125,624.3756103515625,1564.134033203125,829.8632202148438,733.46337890625,1579.30419921875,802.4112548828125,646.1644287109375,1561.222412109375,906.2108154296875,862.3958740234375,1616.1263427734375,796.6064453125,850.5383911132812,1596.4842529296875,1044.7515869140625,888.6621704101562,1651.11328125,708.577880859375,898.5020751953125,1599.62451171875,716.4255981445312,776.4694213867188,1579.1767578125,606.376220703125,942.035888671875,1604.0938720703125,613.1021118164062,823.5435791015625,1582.964599609375,506.55926513671875,878.8934326171875,1585.8370361328125,623.020263671875,698.6807250976562,1557.986328125,727.724853515625,661.418701171875,1557.7061767578125,514.8165893554688,747.831787109375,1559.052978515625,538.2106323242188,638.8897094726562,1535.84765625,381.9205627441406,805.4544677734375,1565.3226318359375,424.7378845214844,644.593505859375,1518.9027099609375,406.7851257324219,954.1931762695312,1598.3468017578125,513.8856811523438,998.0430908203125,1611.909423828125,281.95379638671875,923.5032958984375,1593.5306396484375,320.9341125488281,1054.918701171875,1603.0526123046875,237.26271057128906,800.0398559570312,1550.9493408203125,173.43165588378906,897.0386962890625,1575.418701171875,299.70513916015625,684.9700927734375,1517.77880859375,173.50369262695312,678.2201538085938,1498.9188232421875,330.6306457519531,583.4470825195312,1490.4801025390625,408.6093444824219,511.4163818359375,1490.8516845703125,248.67538452148438,596.6029663085938,1483.1063232421875,272.72528076171875,486.98193359375,1470.040771484375,163.8857879638672,549.7454223632812,1468.371337890625,522.0186767578125,487.0941467285156,1510.8564453125,350.1475524902344,395.0762023925781,1473.7059326171875,175.44850158691406,439.74078369140625,1459.535888671875,173.02049255371094,382.0752258300781,1457.9893798828125,153.27748107910156,385.31988525390625,1455.6370849609375,133.53445434570312,388.5646057128906,1453.28466796875,94.23365020751953,474.34759521484375,1453.4176025390625,-17.531047821044922,495.99041748046875,1454.848388671875,56.70061111450195,566.68603515625,1468.006103515625,-55.776729583740234,596.7901000976562,1469.942138671875,-104.65098571777344,535.3616943359375,1460.7305908203125,36.37016677856445,686.7884521484375,1489.7164306640625,108.81489562988281,619.4923706054688,1480.0264892578125,-124.26912689208984,719.5869140625,1491.088134765625,-20.842037200927734,827.4080200195312,1512.4256591796875,-168.3056640625,598.0869750976562,1469.419921875,-265.6561279296875,677.8877563476562,1475.2745361328125,-237.4600372314453,788.363525390625,1499.374267578125,-245.75637817382812,592.9415893554688,1469.79638671875,-205.48681640625,528.0049438476562,1471.25732421875,-166.13748168945312,505.62030029296875,1469.605224609375,-390.2760314941406,593.1937866210938,1474.054443359375,-485.7997131347656,672.1162719726562,1502.67041015625,-393.387451171875,666.9981689453125,1484.109375,-461.20013427734375,731.490234375,1515.3519287109375,-363.6477355957031,785.218017578125,1507.5994873046875,-278.9874572753906,895.497802734375,1533.2286376953125,-410.2117004394531,921.5916748046875,1565.4222412109375,-152.50881958007812,863.4849853515625,1513.7486572265625,-190.15969848632812,989.3390502929688,1562.2994384765625,-62.803466796875,957.3016357421875,1546.69873046875,65.81678771972656,927.9403076171875,1564.806884765625,23.19292449951172,1051.1505126953125,1593.7685546875,111.27400207519531,804.1424560546875,1537.2381591796875,170.2654571533203,1026.0921630859375,1606.5736083984375,234.27764892578125,1166.8948974609375,1639.6727294921875,92.4876937866211,1158.6448974609375,1638.908203125,277.2640686035156,1274.1173095703125,1676.885009765625,147.5345001220703,1291.1048583984375,1682.5382080078125,245.00338745117188,1377.9320068359375,1703.3563232421875,145.2813262939453,1405.8001708984375,1702.01513671875,36.73178482055664,1389.4307861328125,1689.1064453125,-90.54354095458984,1352.7554931640625,1675.256591796875,4.547569751739502,1261.1419677734375,1661.84326171875,-132.830322265625,1218.539794921875,1644.834228515625,-224.90760803222656,1114.1080322265625,1614.0047607421875,-102.08504486083984,1081.01708984375,1596.81103515625,-23.24635124206543,1154.26904296875,1628.470947265625,-318.8103942871094,1022.4553833007812,1589.6328125,-542.7844848632812,940.7330932617188,1593.195068359375,-494.68316650390625,822.36279296875,1550.9794921875,-585.8034057617188,1040.366455078125,1622.2344970703125,-681.5874633789062,961.4655151367188,1617.42919921875,-622.4799194335938,836.7818603515625,1581.0406494140625,-731.2344360351562,849.9147338867188,1600.9451904296875,-567.9498901367188,725.571044921875,1542.3590087890625,-718.1572875976562,723.436279296875,1572.78662109375,-630.0118408203125,676.4459228515625,1544.8514404296875,-661.9361572265625,618.5267333984375,1540.833984375,-824.6906127929688,692.5379638671875,1584.587890625,-836.62646484375,748.82470703125,1594.8543701171875,-783.9392700195312,618.0880737304688,1567.5572509765625,-866.9151611328125,642.00244140625,1578.2706298828125,-918.3204345703125,714.2318115234375,1597.59375,-916.6701049804688,814.3457641601562,1621.196044921875,-806.0737915039062,809.9230346679688,1602.2198486328125,-1048.390380859375,760.6215209960938,1626.016357421875,-1021.3247680664062,860.6912231445312,1645.6727294921875,-1001.1325073242188,674.4595947265625,1607.3143310546875,-1062.2725830078125,578.3319091796875,1627.8331298828125,-1129.4942626953125,679.6046752929688,1624.9642333984375,-1194.48583984375,783.9302368164062,1641.59033203125,-1034.3914794921875,457.4007263183594,1621.1356201171875,-957.4927978515625,523.4700317382812,1610.945556640625,-946.5059814453125,441.12896728515625,1607.183349609375,-962.65478515625,596.3767700195312,1607.0665283203125,-871.4182739257812,574.0106811523438,1590.55859375,-714.1796875,576.4457397460938,1580.1448974609375,-782.9676513671875,610.7516479492188,1581.462646484375,-860.2037353515625,493.721435546875,1596.175048828125,-1046.5140380859375,338.5660095214844,1599.368896484375,-1089.6651611328125,406.0306091308594,1609.78564453125,-756.3671264648438,494.49774169921875,1588.463623046875,-724.2853393554688,531.8909301757812,1583.00537109375,-722.0752563476562,611.753662109375,1579.60791015625,-689.3427124023438,569.3007202148438,1580.082275390625,-649.7760009765625,607.686767578125,1578.3359375,-1240.58544921875,685.8869018554688,1641.340576171875,-1320.0435791015625,739.4638671875,1706.281005859375,-1310.314453125,848.04296875,1706.564697265625,-1207.446044921875,910.755859375,1679.1324462890625,-1208.1455078125,1022.1983032226562,1689.063232421875,-1110.6002197265625,853.7767333984375,1651.6072998046875,-1074.1767578125,976.2119140625,1661.959228515625,-1137.4033203125,1116.32666015625,1683.126220703125,-1272.767578125,1124.8944091796875,1712.50732421875,-1026.4049072265625,1099.597412109375,1672.53564453125,-1041.5042724609375,1220.1156005859375,1693.94775390625,-924.807861328125,1037.5723876953125,1661.345703125,-952.9752197265625,920.5948486328125,1648.23828125,-951.9685668945312,1149.6685791015625,1674.227294921875,-851.9502563476562,1149.237548828125,1664.519775390625,-913.4815063476562,1244.60693359375,1683.2012939453125,-978.2638549804688,1324.914794921875,1701.36328125,-752.2855224609375,1152.6763916015625,1656.657470703125,-785.6898193359375,1051.6844482421875,1646.1328125,-828.4810791015625,919.9667358398438,1629.98876953125,-1334.1016845703125,582.1338500976562,1744.010009765625,-1301.7142333984375,476.12420654296875,1730.171142578125,-1234.4354248046875,351.6396789550781,1712.237060546875,-1335.415771484375,273.4593811035156,1714.650634765625,-1139.087646484375,247.00160217285156,1684.5059814453125,-1082.836669921875,289.1269226074219,1674.6070556640625,-1041.0052490234375,230.81515502929688,1661.197998046875,-1075.6005859375,157.27745056152344,1656.57080078125,-1177.1856689453125,133.53292846679688,1666.6116943359375,-1085.0184326171875,78.21117401123047,1639.5849609375,-1237.5765380859375,235.1057586669922,1698.58740234375,-1308.0093994140625,158.70265197753906,1691.3621826171875,-1274.6370849609375,43.5024528503418,1664.60791015625,-1147.0867919921875,-11.254015922546387,1636.80712890625,-1260.0997314453125,-59.74320983886719,1642.3656005859375,-1032.9722900390625,6.532230377197266,1627.8685302734375,-1020.6532592773438,91.600341796875,1635.5289306640625,-1042.0587158203125,-141.2769317626953,1621.6044921875,-1195.5950927734375,-149.65773010253906,1609.2291259765625,-944.05615234375,-28.36497688293457,1620.1468505859375,-996.9793701171875,159.41004943847656,1648.9158935546875,-926.3023071289062,-219.71884155273438,1609.44140625,-994.5247192382812,-300.6304931640625,1606.4757080078125,-1132.452880859375,-286.79425048828125,1598.0526123046875,-933.4022216796875,-366.82244873046875,1589.47119140625,-980.8336791992188,-398.9873962402344,1590.748779296875,-1052.8021240234375,-374.3762512207031,1594.7923583984375,-905.1055908203125,-465.416748046875,1574.180908203125,-826.0992431640625,-409.27606201171875,1557.452880859375,-794.8238525390625,-483.12945556640625,1551.3544921875,-884.0592041015625,-354.92889404296875,1565.6982421875,-811.88671875,-308.5033874511719,1556.9649658203125,-740.0784912109375,-398.8519287109375,1539.2877197265625,-857.3439331054688,-198.36138916015625,1570.0496826171875,-772.3419189453125,-193.9939727783203,1559.5235595703125,-710.7966918945312,-292.1055603027344,1539.7530517578125,-837.5505981445312,-76.6823501586914,1581.131591796875,-718.9712524414062,-84.1878662109375,1568.554931640625,-931.5215454101562,-23.90418815612793,1591.7532958984375,-870.5451049804688,48.29892349243164,1596.564453125,-777.623291015625,39.54595184326172,1588.9466552734375,-855.1619262695312,183.9422607421875,1609.2481689453125,-959.5548706054688,116.14466094970703,1600.9610595703125,-972.8385009765625,167.5611572265625,1604.167236328125,-958.4074096679688,260.32958984375,1616.998046875,-891.968994140625,294.83477783203125,1625.6964111328125,-904.1732177734375,365.9677734375,1633.87060546875,-816.1815795898438,342.337890625,1629.2847900390625,-826.4853515625,403.839599609375,1630.740234375,-823.5392456054688,278.6675720214844,1621.0850830078125,-718.1551513671875,281.3988037109375,1618.492919921875,-716.0188598632812,141.67343139648438,1599.036865234375,-592.9332275390625,175.50555419921875,1592.612060546875,-638.1155395507812,32.60794448852539,1579.0142822265625,-506.2996826171875,79.47998046875,1574.0382080078125,-592.829345703125,-100.8729019165039,1559.812255859375,-663.0150146484375,-195.05780029296875,1550.298828125,-556.3132934570312,-207.7420654296875,1544.9541015625,-612.086669921875,-281.4853210449219,1537.0657958984375,-511.75054931640625,-296.14703369140625,1537.603271484375,-443.3627624511719,-221.6983184814453,1544.2169189453125,-648.80615234375,-356.7981262207031,1528.00439453125,-648.9196166992188,-438.4137878417969,1528.975830078125,-964.3088989257812,-723.378173828125,1606.890869140625,-1086.9722900390625,-905.0993041992188,1638.4781494140625,-1064.1142578125,-1018.3388061523438,1675.2064208984375,-1090.032958984375,-1135.8203125,1691.173095703125,-997.2569580078125,-1069.5089111328125,1689.3719482421875,-1006.1673583984375,-1191.7916259765625,1680.1376953125,-903.4055786132812,-1183.850341796875,1669.7445068359375,-853.581298828125,-1120.743408203125,1650.0828857421875,-851.581787109375,-1010.1085205078125,1611.661376953125,-818.0873413085938,-887.417724609375,1565.0054931640625,-898.1923828125,-910.7590942382812,1571.70849609375,-726.0614624023438,-845.20947265625,1550.126708984375,-621.4612426757812,-856.9697265625,1558.43505859375,-796.009765625,-767.689453125,1526.062255859375,-892.374267578125,-815.125732421875,1551.002685546875,-674.9385986328125,-747.2540893554688,1526.397216796875,-736.8086547851562,-665.6137084960938,1503.9556884765625,-593.4800415039062,-613.9472045898438,1509.2225341796875,-820.978759765625,-691.8088989257812,1517.998779296875,-867.381591796875,-741.7618408203125,1536.276123046875,-946.2228393554688,-733.8027954101562,1548.520263671875,-978.490234375,-1080.3846435546875,1640.2056884765625,-740.131591796875,-551.975830078125,1495.28662109375,-586.1336669921875,-508.95367431640625,1502.9735107421875,-544.8037719726562,-451.7535095214844,1509.0989990234375,-638.7003784179688,-444.2909851074219,1498.9857177734375,-451.3749694824219,-328.1407470703125,1515.135009765625,-446.7301025390625,-435.8966064453125,1514.7900390625,-387.2080993652344,-301.2850341796875,1518.1300048828125,-396.6601257324219,-381.9673767089844,1517.6953125,-354.095703125,-451.56805419921875,1514.055419921875,-315.93701171875,-554.9512329101562,1511.102783203125,-271.2669982910156,-465.12542724609375,1505.296875,-253.5435791015625,-506.2628173828125,1500.163330078125,-240.67625427246094,-651.2363891601562,1522.7921142578125,-345.76593017578125,-677.9692993164062,1532.229248046875,-266.0585021972656,-741.4947509765625,1554.3746337890625,-431.6030578613281,-598.8778076171875,1520.6505126953125,-402.4438171386719,-513.5777587890625,1518.028564453125,-466.7992248535156,-716.4829711914062,1536.20947265625,-365.1519775390625,-814.158203125,1556.050048828125,-151.64227294921875,-677.7754516601562,1533.041015625,-570.5189208984375,-754.74462890625,1538.421142578125,-494.5353088378906,-522.452392578125,1513.2242431640625,-446.4350280761719,-235.1779022216797,1514.417236328125,-499.13189697265625,233.5419464111328,1578.422607421875,-578.967041015625,293.2090759277344,1598.1973876953125,-397.6400146484375,259.5690002441406,1567.6192626953125,-470.54791259765625,316.33416748046875,1575.9776611328125,-644.57763671875,369.1950378417969,1610.013916015625,-554.6715087890625,382.6068420410156,1594.630615234375,-713.1604614257812,514.4905395507812,1613.2974853515625,-694.0491943359375,535.5648193359375,1611.23876953125,-731.8084106445312,413.0120544433594,1620.70751953125,-745.6052856445312,477.87042236328125,1619.2059326171875,-1051.5400390625,325.1393737792969,1613.914306640625,-1319.3206787109375,-143.5382080078125,1630.9561767578125,628.1444702148438,556.4418334960938,1537.3055419921875,503.1134338378906,562.9192504882812,1515.3895263671875,774.2492065429688,573.7269897460938,1551.4071044921875,870.2583618164062,522.6995239257812,1567.8731689453125,1136.250244140625,598.1730346679688,1703.0660400390625,1242.394775390625,193.68202209472656,1691.9033203125,1355.3123779296875,150.46334838867188,1711.175048828125,1253.0283203125,56.24064254760742,1691.8349609375,1402.5924072265625,18.959339141845703,1716.70849609375,1399.2164306640625,-112.49454498291016,1731.589599609375,1275.1815185546875,-84.8887710571289,1708.72021484375,1473.9556884765625,-209.87208557128906,1765.395263671875,1335.53125,-211.4879913330078,1744.0418701171875,1395.2083740234375,-307.8547668457031,1769.939453125,1145.9364013671875,-105.5584716796875,1696.1898193359375,1190.4554443359375,-26.79063606262207,1687.6358642578125,1120.9638671875,-27.533735275268555,1678.0133056640625,1158.372314453125,30.015377044677734,1677.3033447265625,1149.630615234375,113.67135620117188,1675.013671875,557.6566772460938,371.5513610839844,1592.9525146484375,399.6114501953125,344.38372802734375,1557.7716064453125,362.5110778808594,342.5932312011719,1544.397216796875,265.0409240722656,290.1505126953125,1523.5968017578125,250.75048828125,204.69839477539062,1523.33984375,159.14468383789062,345.8072204589844,1514.8271484375,170.71829223632812,185.74362182617188,1515.705322265625,225.17181396484375,143.1888885498047,1519.708251953125,277.392822265625,-70.5196762084961,1523.15283203125,208.43724060058594,-193.93771362304688,1520.5242919921875,244.4347686767578,-188.229248046875,1516.227783203125,188.39540100097656,-227.48243713378906,1518.12548828125,565.7786865234375,-867.6522216796875,1683.00927734375,628.0947265625,-810.590576171875,1685.768798828125,706.9884643554688,-868.8411865234375,1712.7308349609375,692.65087890625,-767.8408203125,1694.9569091796875,820.7224731445312,-853.9373779296875,1730.8636474609375,824.6272583007812,-936.99609375,1747.743408203125,734.8305053710938,-992.338134765625,1741.3446044921875,926.3588256835938,-886.1575317382812,1755.652099609375,931.8645629882812,-991.191650390625,1779.77783203125,881.3287963867188,-804.40625,1739.574951171875,1052.6708984375,-944.7036743164062,1795.7860107421875,1017.3305053710938,-1041.952880859375,1809.336181640625,941.28125,-1088.106201171875,1804.066650390625,1118.947509765625,-1042.9173583984375,1830.3887939453125,1037.599365234375,-1157.958984375,1834.495849609375,1160.1549072265625,-971.37890625,1826.52978515625,1250.5673828125,-1029.4727783203125,1856.232666015625,1367.8681640625,-1063.4407958984375,1886.08203125,1317.2332763671875,-1140.5855712890625,1887.3416748046875,1183.862060546875,-1140.526611328125,1860.87109375,1455.5404052734375,-1129.9586181640625,1902.3193359375,1395.9622802734375,-1264.1357421875,1901.896240234375,1473.4404296875,-1030.833251953125,1900.897216796875,1570.3193359375,-1136.6119384765625,1907.450927734375,1538.2877197265625,-1225.3404541015625,1907.4886474609375,1721.318603515625,-1172.539306640625,1916.4730224609375,1649.672119140625,-1199.381103515625,1911.7059326171875,1768.443115234375,-1249.8060302734375,1911.890869140625,1880.143798828125,-1262.0267333984375,1910.304443359375,1848.4481201171875,-1328.2694091796875,1903.6129150390625,1951.77783203125,-1204.063232421875,1916.684814453125,1963.984375,-1333.322021484375,1907.7698974609375,1874.7718505859375,-1410.176025390625,1898.309814453125,1972.5936279296875,-1480.4359130859375,1898.1549072265625,1753.06005859375,-1394.0994873046875,1901.16748046875,1834.9193115234375,-1515.6116943359375,1893.951904296875,1639.6068115234375,-1304.1258544921875,1908.5704345703125,1612.4080810546875,-1429.725830078125,1899.101806640625,1516.9534912109375,-1345.89501953125,1901.6031494140625,1408.9088134765625,-1412.5936279296875,1895.1112060546875,1507.7779541015625,-1454.8724365234375,1895.612548828125,1287.1495361328125,-1373.8978271484375,1889.897705078125,1244.6607666015625,-1251.6416015625,1886.4757080078125,1302.2911376953125,-1510.5682373046875,1888.662353515625,1212.9417724609375,-1442.188232421875,1880.1417236328125,1437.6693115234375,-1531.3592529296875,1895.9468994140625,1371.4566650390625,-1608.337158203125,1896.9586181640625,1564.16357421875,-1557.985595703125,1896.8875732421875,1465.9705810546875,-1643.932861328125,1901.1947021484375,1698.6612548828125,-1527.8001708984375,1896.7303466796875,1659.1822509765625,-1630.834228515625,1901.588623046875,1573.8232421875,-1685.8162841796875,1906.676025390625,1774.45556640625,-1637.435791015625,1897.4537353515625,1688.38427734375,-1740.9581298828125,1909.509033203125,1830.999267578125,-1763.6356201171875,1905.6793212890625,1584.9188232421875,-1778.9892578125,1914.2342529296875,1485.3887939453125,-1755.497314453125,1907.7435302734375,1651.7138671875,-1846.3197021484375,1916.7716064453125,1746.8077392578125,-1829.4901123046875,1913.1158447265625,1526.56640625,-1867.5545654296875,1913.6390380859375,1633.7149658203125,-1945.0020751953125,1916.6883544921875,1745.2401123046875,-1945.5047607421875,1915.9990234375,1818.0989990234375,-1863.146728515625,1912.1630859375,1856.765380859375,-1946.00732421875,1913.7763671875,1906.02587890625,-1851.8809814453125,1911.230712890625,1968.29052734375,-1946.510009765625,1913.1651611328125,1953.1011962890625,-1768.7069091796875,1908.9593505859375,1938.8248291015625,-1639.680419921875,1899.0234375,2018.3885498046875,-1846.3236083984375,1912.875,2080.6484375,-1737.0126953125,1910.3985595703125,2133.47900390625,-1851.854248046875,1911.6639404296875,2128.783203125,-1567.9388427734375,1904.992431640625,2195.4736328125,-1685.7030029296875,1908.4132080078125,2209.439208984375,-1784.3055419921875,1909.3902587890625,2257.81884765625,-1619.2403564453125,1907.6849365234375,2296.307373046875,-1713.069091796875,1908.3055419921875,2275.23193359375,-1517.1649169921875,1907.4710693359375,2408.535400390625,-1608.163818359375,1907.8017578125,2086.717529296875,-1415.4703369140625,1908.560302734375,2079.06201171875,-1320.91455078125,1917.8665771484375,2406.58349609375,-1494.711669921875,1908.5301513671875,2410.4873046875,-1721.615966796875,1908.304443359375,2331.162841796875,-1831.98876953125,1909.0113525390625,2231.9267578125,-1869.1416015625,1910.3719482421875,2302.8662109375,-1948.017822265625,1910.231201171875,2191.341064453125,-1947.51513671875,1911.7606201171875,2079.815673828125,-1947.0125732421875,1912.9361572265625,2414.391357421875,-1948.5203857421875,1909.3011474609375,1410.66455078125,-1943.996826171875,1906.0364990234375,1400.9967041015625,-1834.758544921875,1901.7757568359375,1299.139404296875,-1943.494140625,1893.6771240234375,1365.10693359375,-1719.38330078125,1897.107421875,1304.305419921875,-1810.228271484375,1891.9747314453125,1280.529541015625,-1635.2821044921875,1890.3734130859375,1248.65087890625,-1734.824951171875,1887.97509765625,1191.201171875,-1663.0458984375,1885.48681640625,1208.08984375,-1831.42529296875,1885.5284423828125,1080.2952880859375,-1844.202880859375,1878.037353515625,1187.6141357421875,-1942.9915771484375,1883.941162109375,1192.919189453125,-1580.4287109375,1883.019287109375,1169.3564453125,-1500.1829833984375,1872.61767578125,1149.81103515625,-1360.2711181640625,1872.4620361328125,1052.6485595703125,-1368.4654541015625,1853.68798828125,1050.8927001953125,-1286.8521728515625,1848.782958984375,1075.54443359375,-1458.593994140625,1863.30419921875,975.2984008789062,-1330.9351806640625,1834.523193359375,969.5899658203125,-1246.2032470703125,1827.8043212890625,891.6985473632812,-1268.871337890625,1809.1024169921875,909.6314697265625,-1174.877685546875,1808.36669921875,831.3392333984375,-1196.6639404296875,1788.2940673828125,822.1983032226562,-1081.8636474609375,1773.6849365234375,688.8573608398438,-1146.5062255859375,1760.9390869140625,633.0185546875,-985.8975219726562,1723.1717529296875,1132.55419921875,-1240.0948486328125,1862.6710205078125,1075.2169189453125,-1459.035888671875,1862.1641845703125,884.1940307617188,-794.9011840820312,1720.052490234375,1342.8994140625,-888.15869140625,1831.6917724609375,1429.4007568359375,-943.8722534179688,1854.4676513671875,1442.3304443359375,-871.33544921875,1850.374267578125,1476.7176513671875,-1020.0025634765625,1865.366943359375,1659.4080810546875,-974.6422119140625,1888.65576171875,1752.3546142578125,-1046.9805908203125,1899.546630859375,1790.692138671875,-951.1143188476562,1892.456298828125,1856.3470458984375,-1041.1685791015625,1900.86865234375,1840.6434326171875,-833.6428833007812,1902.4385986328125,1954.580322265625,-1194.7137451171875,1898.1326904296875,-70.14085388183594,-1158.276611328125,1634.468017578125,-85.57124328613281,-738.79541015625,1565.2989501953125,-37.6352653503418,-667.406982421875,1560.3070068359375,-50.20565414428711,-575.6459350585938,1562.7506103515625,-151.07118225097656,-662.1425170898438,1554.4041748046875,23.020000457763672,-601.6222534179688,1563.322265625,-86.08963012695312,-515.6851806640625,1561.315673828125,-135.99774169921875,-619.3041381835938,1558.8282470703125,-37.0952033996582,-435.3292236328125,1562.30419921875,124.25720977783203,-1151.3414306640625,1661.6630859375,111.48860168457031,-1240.6861572265625,1669.0906982421875,1664.1285400390625,-1098.5460205078125,1896.187744140625,553.3590698242188,-752.1474609375,1634.1326904296875,760.2996826171875,-764.0797119140625,1685.397216796875,952.2269287109375,-817.1715698242188,1737.7698974609375,1020.1917114257812,-839.9703369140625,1756.048583984375,1159.095947265625,-890.6461791992188,1785.9586181640625,1229.58056640625,-921.8331298828125,1805.9456787109375,1358.0341796875,-974.6907958984375,1838.8486328125,1538.6622314453125,-1047.1776123046875,1879.29248046875,1803.546630859375,-1145.6038818359375,1901.134765625,2020.6016845703125,-1211.77880859375,1900.7125244140625,547.8299560546875,-770.47802734375,1664.3668212890625,756.5623779296875,-776.4579467773438,1711.5057373046875,1017.8652954101562,-847.7514038085938,1771.7244873046875,1800.4998779296875,-1155.6309814453125,1919.2540283203125,1155.9390869140625,-901.2503051757812,1810.544189453125,1225.860107421875,-934.2589721679688,1835.7591552734375,1354.8948974609375,-985.1373291015625,1872.1812744140625,1535.2926025390625,-1058.2701416015625,1906.58203125,1660.9207763671875,-1109.0546875,1915.0296630859375,1876.4842529296875,-1178.7603759765625,1917.681884765625,2017.509033203125,-1222.0498046875,1919.9583740234375,227.11363220214844,385.50445556640625,1462.5133056640625,463.7422790527344,413.3309326171875,1493.537353515625,732.4949951171875,473.67034912109375,1552.5985107421875,603.4454345703125,437.78411865234375,1527.4185791015625,931.067138671875,544.9548950195312,1577.8978271484375,1043.88818359375,595.5613403320312,1594.2620849609375,1201.3214111328125,656.304931640625,1638.4832763671875,1680.143798828125,946.9046020507812,1797.706787109375,1681.9564208984375,938.6849365234375,1829.4827880859375,620.5101928710938,378.88623046875,1615.6024169921875,820.4375610351562,436.794677734375,1659.1890869140625,945.8442993164062,494.88519287109375,1674.4622802734375,1056.803955078125,548.755859375,1686.6041259765625,1401.40478515625,743.9089965820312,1762.621826171875,726.9661254882812,-1186.201171875,1773.1190185546875,807.0415649414062,-1274.506591796875,1790.008056640625,900.316650390625,-1350.2611083984375,1816.9884033203125,1011.1087646484375,-1421.5704345703125,1847.4290771484375,1123.090087890625,-1477.390869140625,1871.2169189453125,898.6420288085938,-1352.5970458984375,1809.3294677734375,806.18408203125,-1275.6981201171875,1785.956787109375,1010.1167602539062,-1422.9376220703125,1843.9417724609375,386.7252197265625,-118.03913116455078,1531.1392822265625,607.2630004882812,-3.4776649475097656,1590.8026123046875,697.4326782226562,61.41962432861328,1622.5711669921875,817.0530395507812,126.63188934326172,1634.857666015625,288.99169921875,-171.4954833984375,1511.0809326171875,815.9924926757812,128.10385131835938,1637.6417236328125,390.68499755859375,-123.83509063720703,1518.64111328125,19.640649795532227,-1201.8756103515625,1652.4285888671875,202.0741729736328,-1306.13134765625,1693.42626953125,19.154891967773438,-1202.6871337890625,1654.2342529296875,156.62709045410156,-1273.9063720703125,1683.5382080078125,245.05271911621094,-1341.637451171875,1706.904541015625,188.55587768554688,-155.2917938232422,1517.7525634765625,186.28411865234375,6.049568176269531,1518.748779296875,180.0474395751953,96.05165100097656,1517.37548828125,165.01333618164062,302.3099060058594,1511.13427734375,-5.703165054321289,-490.89105224609375,1540.3397216796875,151.46400451660156,-863.2032470703125,1597.927978515625,-15.71973705291748,-494.9981994628906,1564.1265869140625,3.8096749782562256,-548.2788696289062,1564.842529296875,78.36421203613281,-703.7930908203125,1573.323974609375,122.77870178222656,-815.2039184570312,1604.556640625,36.927818298339844,396.2691650390625,1455.18359375,-115.23531341552734,471.3723449707031,1467.609130859375,-72.85267639160156,-489.4453125,1561.837158203125,-168.45513916015625,-709.8692016601562,1549.6533203125,-215.9027862548828,-799.7066650390625,1574.8905029296875,-193.04698181152344,-754.3312377929688,1566.4993896484375,-221.16580200195312,-567.6166381835938,1502.6304931640625,-563.7825927734375,620.85693359375,1509.1763916015625,-452.3883056640625,606.8919067382812,1483.346923828125,-331.5945129394531,578.1951293945312,1470.6243896484375,-417.6072082519531,-274.2604675292969,1516.0347900390625,-336.2702941894531,-368.3428039550781,1515.784912109375,-664.4212646484375,500.1034851074219,1611.3192138671875,-637.533203125,473.1246032714844,1605.8580322265625,-478.9603576660156,-149.23004150390625,1550.4073486328125,-481.4333801269531,140.90464782714844,1573.3175048828125,-510.46282958984375,1.3283945322036743,1569.0533447265625,-1006.3104248046875,-954.0510864257812,1670.5902099609375,-1000.6680908203125,-844.4024047851562,1645.980712890625,-703.7783203125,-490.5202941894531,1537.9827880859375,-818.0615844726562,-600.626708984375,1566.915283203125,-555.810546875,-344.6949462890625,1530.236572265625,-971.460693359375,-974.1849365234375,1594.8111572265625,-968.4677734375,-863.0320434570312,1564.299560546875,-889.9904174804688,-694.4024658203125,1532.87939453125,-799.996337890625,-611.0570068359375,1509.46240234375,-689.0601196289062,-498.9883728027344,1494.669677734375,-547.95947265625,-349.20379638671875,1505.1153564453125,-471.8905944824219,-261.65020751953125,1512.0887451171875,-911.661376953125,651.8690795898438,1591.3055419921875,-987.5226440429688,340.9119873046875,1627.3358154296875,-878.269287109375,403.66021728515625,1599.5904541015625,-999.6437377929688,356.1998291015625,1598.47412109375,-922.873291015625,-119.51046752929688,1582.4974365234375,-898.8385009765625,-284.7765808105469,1568.2618408203125,-961.25146484375,40.850894927978516,1629.839111328125,-906.6114501953125,-287.9103088378906,1590.3294677734375,-1189.7867431640625,584.9187622070312,1632.09814453125,-1145.0531005859375,504.5337219238281,1618.652099609375,-1315.4293212890625,679.5078125,1728.3575439453125,-1260.6517333984375,546.7821655273438,1735.083251953125,-1209.8316650390625,469.09295654296875,1719.3587646484375,-1163.812255859375,402.7102966308594,1702.87841796875,-1114.843017578125,331.905029296875,1686.6591796875,-41.48832702636719,-476.9855041503906,1563.2310791015625,-447.3119201660156,-277.2029724121094,1514.2093505859375,-56.38715362548828,-499.2831115722656,1562.5943603515625,-777.2058715820312,555.4273071289062,1585.8035888671875,-698.4351806640625,489.24212646484375,1614.15869140625,-35.74617385864258,-517.3134155273438,1563.593017578125,-1592.202880859375,1592.91064453125,1752.216064453125,-1592.3797607421875,1517.946044921875,1753.3919677734375,-1593.7947998046875,918.2291259765625,1769.7872314453125,-1593.9716796875,843.2645263671875,1772.6759033203125,-1596.2708740234375,-131.2755126953125,1671.9517822265625,-1596.801513671875,-356.16937255859375,1641.368408203125,-1600.162109375,-1780.4970703125,1733.52685546875,-1600.3389892578125,-1855.461669921875,1728.841796875,-1526.165771484375,-1930.7613525390625,1723.41748046875,-1451.815673828125,-1931.096435546875,1722.6781005859375,2413.090087890625,-1872.8856201171875,1908.9688720703125,2411.788818359375,-1797.2508544921875,1908.6365966796875,2404.63134765625,-1381.259521484375,1910.004150390625,2379.255859375,93.61897277832031,1918.1566162109375,2371.447998046875,547.427734375,1942.6944580078125,2365.592041015625,887.7843017578125,1990.32275390625,2276.80517578125,1681.6815185546875,2006.3514404296875,2201.68212890625,1681.4134521484375,1995.3077392578125,1675.82177734375,1679.536865234375,1897.041015625,1375.3299560546875,1678.4644775390625,1868.9422607421875,1300.20703125,1678.1964111328125,1864.94384765625,999.7152709960938,1677.1241455078125,1836.0711669921875,661.6620483398438,1675.917724609375,1784.477294921875,-803.2351684570312,1670.6900634765625,1730.54052734375,-1028.60400390625,1669.8858642578125,1741.14794921875,-1191.5902099609375,-1932.2691650390625,1732.234619140625,-1117.2401123046875,-1932.604248046875,1736.50927734375,-931.3646850585938,-1933.44189453125,1742.08984375,-708.3142700195312,-1934.4471435546875,1745.34619140625,853.03857421875,-1941.4837646484375,1854.122314453125,1076.0888671875,-1942.489013671875,1875.167236328125,1485.0146484375,-1944.3319091796875,1909.587158203125,1559.36474609375,-1944.6669921875,1913.1378173828125,852.0487060546875,-1314.71826171875,1803.429443359375,953.3123779296875,-1389.3446044921875,1831.0352783203125,90.72166442871094,-1233.67724609375,1668.7244873046875,-5.933073043823242,-521.62939453125,1564.4322509765625,-22.716663360595703,-475.4723205566406,1563.5345458984375,-29.698705673217773,-455.9402160644531,1562.9071044921875,-50.60823440551758,-452.2791442871094,1562.02783203125,-62.9623908996582,-470.2627258300781,1561.842041015625,14.042701721191406,-544.0282592773438,1540.49951171875,85.90097045898438,-700.414794921875,1554.5172119140625,-111.8862075805664,-567.0860595703125,1560.0592041015625,-202.21656799316406,-778.1342163085938,1559.8271484375,-184.60997009277344,-623.6063842773438,1518.231201171875,-304.2873840332031,-417.0751647949219,1510.76611328125,-510.24517822265625,-305.24169921875,1508.2950439453125,-593.88671875,-396.4258728027344,1502.209716796875,-841.5210571289062,-654.7343139648438,1521.3970947265625,-960.1082153320312,-796.8195190429688,1556.48779296875,-890.0360717773438,-662.6734619140625,1586.3367919921875,-762.4300537109375,-544.6920166015625,1551.61083984375,-602.7272338867188,-391.3429870605469,1529.7657470703125,-509.43475341796875,-72.63758850097656,1561.1488037109375,-455.2420959472656,203.24424743652344,1572.9053955078125,-784.6202392578125,438.4774475097656,1624.988525390625,-1011.348876953125,247.03604125976562,1609.412109375,-937.2005615234375,377.3509521484375,1598.94140625,-814.9056396484375,445.5369873046875,1594.2447509765625,-915.2383422851562,-203.2440643310547,1575.0548095703125,-934.9105834960938,-123.93042755126953,1615.0509033203125,-976.6395874023438,101.15396118164062,1639.051025390625,-1289.9971923828125,612.3355712890625,1731.9056396484375,-847.0166015625,632.9563598632812,1586.5494384765625,-934.0478515625,658.4117431640625,1592.18310546875,-723.000732421875,618.7811279296875,1554.3519287109375,-269.4320983886719,559.7792358398438,1471.799072265625,-37.51279830932617,421.5234069824219,1460.6895751953125,288.6011962890625,390.510498046875,1468.135009765625,533.556396484375,425.8398742675781,1509.9818115234375,668.26953125,453.4841613769531,1539.8182373046875,801.4049682617188,497.9723205566406,1560.5616455078125,1122.9781494140625,623.135986328125,1616.084228515625,1397.40869140625,753.5115966796875,1707.1805419921875,1611.3516845703125,902.1820068359375,1777.3529052734375,1612.6329345703125,893.9859008789062,1814.001953125,1339.4383544921875,707.6610107421875,1747.9700927734375,1207.275634765625,633.7695922851562,1718.5819091796875,750.6604614257812,413.9948425292969,1646.728759765625,479.19537353515625,356.58258056640625,1575.0523681640625,263.8200378417969,336.8149108886719,1529.73486328125,190.40838623046875,-74.4564208984375,1518.5401611328125,315.19000244140625,-152.45697021484375,1523.893798828125,557.8799438476562,-37.14152526855469,1571.9825439453125,757.8806762695312,92.91790008544922,1628.51806640625,584.6227416992188,-29.312143325805664,1565.9364013671875,451.5230712890625,-99.94976806640625,1526.721435546875,125.43556213378906,-285.6690673828125,1513.495849609375,21.399734497070312,-389.26953125,1526.7186279296875,1730.1431884765625,-1134.1890869140625,1917.1951904296875,1598.248046875,-1083.2022705078125,1910.7926025390625,1290.3663330078125,-959.7342529296875,1853.9713134765625,1087.864013671875,-871.369140625,1791.1485595703125,949.5701293945312,-826.1666259765625,1755.837890625,619.713623046875,-770.8746948242188,1679.9083251953125,625.2464599609375,-752.5596313476562,1649.701416015625,822.4346313476562,-778.8654174804688,1702.8875732421875,1090.5870361328125,-862.168212890625,1771.05126953125,1293.18359375,-950.33837890625,1822.376953125,1417.6126708984375,-996.5585327148438,1852.115478515625,1601.2607421875,-1073.31005859375,1887.7357177734375,1733.281005859375,-1123.927734375,1898.6431884765625,1879.228515625,-1169.6092529296875,1899.63916015625,2086.74853515625,-1232.348388671875,1907.464111328125],surfaceTriangles=[300,297,296,423,425,426,1408,889,887,818,820,816,14,16,15,940,270,941,113,112,81,13,9,11,275,279,277,478,477,464,429,427,430,1027,1030,1029,562,563,561,82,78,77,101,102,99,887,888,886,1005,1309,1003,11,9,8,502,501,503,1037,1035,1036,287,286,285,12,14,11,233,223,235,241,238,1001,291,290,292,26,25,27,360,872,362,878,877,863,1045,1320,1337,124,1012,1010,298,299,301,62,1277,1224,222,233,226,33,32,1267,899,897,901,24,23,26,808,805,807,527,523,526,1015,1020,1021,358,359,356,817,827,1059,295,289,293,1211,1209,1210,775,776,774,254,255,253,212,237,211,1129,1127,1128,973,969,970,961,244,245,1017,1019,1014,982,979,983,498,501,500,857,859,860,1127,1125,1113,1230,1440,667,301,306,304,283,284,285,659,652,654,229,225,226,156,158,18,690,692,691,53,54,51,747,768,746,1162,1159,1172,278,276,277,172,170,173,1261,775,537,39,22,35,1334,940,1335,869,867,866,607,602,608,95,93,89,964,243,963,1057,251,247,274,275,277,22,39,20,2,1,0,616,610,607,229,232,230,5,10,8,1336,1338,1341,88,90,1280,521,535,519,650,1208,1234,618,617,608,93,92,89,899,900,906,188,189,186,802,804,805,556,552,553,579,576,577,972,974,971,1136,1139,1138,30,28,31,744,745,742,517,514,516,309,292,311,492,1357,490,1010,1012,1014,697,692,699,227,221,224,1339,914,908,421,423,424,650,1207,1206,1091,1093,1238,1005,1003,1004,626,628,629,864,842,825,240,242,234,978,979,977,1065,1068,1066,17,16,12,960,963,962,54,53,55,45,46,47,315,320,318,32,24,26,604,601,605,133,188,132,23,21,6,992,1307,990,431,445,434,1039,1032,1031,101,110,103,1333,1332,939,270,940,939,630,628,591,88,85,84,260,258,259,115,113,114,287,285,288,112,101,83,1333,940,1334,847,854,1301,3,1,2,236,238,234,169,171,170,325,326,327,713,717,715,1225,1278,49,120,1041,122,300,298,301,1257,1077,765,46,43,48,625,624,590,444,458,443,1058,831,1251,719,740,739,1,3,27,276,272,274,86,95,89,618,620,621,3,29,28,237,236,223,1035,1298,1032,236,234,235,862,865,863,879,876,340,110,108,103,995,994,996,411,410,412,967,1311,970,654,656,658,742,747,746,527,487,528,951,947,946,322,323,328,1310,1001,239,635,562,560,22,19,21,294,291,292,1127,1110,1128,1126,1127,1129,1094,1096,1093,139,109,136,65,62,61,950,256,952,650,1234,1209,312,315,314,19,22,20,223,236,235,75,120,118,611,607,608,317,1366,314,830,837,833,214,237,223,884,885,887,725,1429,698,116,75,118,76,74,77,242,232,231,367,365,373,1272,1427,752,1409,850,849,544,551,547,621,620,623,663,662,660,117,116,119,54,57,56,385,387,388,10,11,8,693,688,691,991,978,975,1032,1038,1036,322,320,323,70,71,68,893,890,894,1202,1131,1108,9,7,8,1022,1007,1008,965,241,1312,974,972,975,1043,1013,122,506,510,511,205,203,204,268,269,271,137,131,130,612,606,609,552,551,553,897,899,894,52,62,1224,1,23,6,592,590,593,4,2,0,520,518,513,116,117,114,1012,1016,1014,34,1200,36,498,496,493,124,1009,126,36,37,35,969,973,972,120,75,72,596,597,599,42,45,18,626,625,590,1024,1025,1026,1399,981,982,937,885,883,214,222,220,783,781,782,410,411,409,133,128,129,1031,1032,1033,50,53,51,411,413,388,966,967,970,528,487,781,1,5,0,338,337,335,17,19,20,855,856,881,1012,124,1013,283,285,281,317,318,319,1123,1121,1118,71,1296,73,1431,731,728,870,869,868,709,710,707,1019,1020,1014,46,48,1281,16,17,18,1339,908,915,1326,969,971,1344,1345,281,125,123,126,522,513,509,762,763,764,931,929,932,1076,1063,743,246,250,248,878,874,875,1182,1132,1188,279,282,281,1121,1123,1124,1057,254,251,367,369,366,205,204,206,897,895,898,71,73,72,607,610,609,600,598,596,5,1,6,1258,746,1259,1035,1037,1295,298,294,299,1256,528,781,238,240,234,297,295,296,928,934,313,115,125,127,230,246,248,928,925,927,365,367,366,40,50,44,1266,1189,1133,1011,1015,1315,727,1430,726,1336,1294,1338,109,106,108,269,268,267,824,828,826,1001,1393,241,343,344,875,1044,1038,1039,1260,1259,768,399,818,819,928,931,933,66,1217,1216,478,464,480,1087,1085,1282,263,261,262,538,535,534,273,274,271,973,994,972,63,64,61,285,286,281,10,21,12,1379,1380,1336,135,185,183,264,260,259,39,40,41,258,257,255,1081,762,1080,865,862,823,304,303,301,459,480,464,258,255,259,140,143,141,820,865,823,268,266,267,564,567,565,5,7,0,531,529,528,298,300,296,1316,1021,1020,46,45,43,653,643,654,741,714,1074,557,555,558,650,1209,647,315,312,313,23,24,21,242,240,243,652,1207,649,567,570,569,7,5,8,640,638,641,20,39,41,447,432,787,378,1364,377,1291,1290,66,1249,831,827,266,260,264,67,65,68,1044,1025,1024,596,598,594,695,696,693,25,1,27,44,48,40,525,486,526,295,294,296,567,568,573,265,269,267,705,707,708,495,481,483,602,607,605,347,327,349,82,87,86,915,908,917,717,718,715,396,866,821,1105,1107,1106,74,75,79,931,928,927,142,106,109,111,110,112,51,54,56,593,596,594,1385,1222,1218,1169,1354,613,800,795,793,1340,1054,1305,791,788,792,123,121,124,233,231,226,454,486,484,466,473,465,694,726,728,1115,1116,1114,475,474,466,261,255,262,855,854,856,289,287,288,1159,1174,1172,1367,1368,168,682,1227,680,110,101,112,267,266,264,194,196,182,50,40,53,1418,779,780,451,446,450,603,600,599,1190,1202,1192,274,272,271,10,5,6,333,342,349,10,12,11,1002,1310,239,1133,1189,1132,662,665,664,14,13,11,62,52,61,263,265,264,13,14,15,272,268,271,59,52,56,455,456,460,16,14,12,1089,1090,1237,1411,832,829,657,656,655,19,17,12,294,309,299,21,19,12,273,275,274,52,51,56,1410,1292,838,1289,1378,1341,59,57,60,462,458,457,557,558,560,21,10,6,398,400,393,309,310,308,291,294,293,1421,767,748,1062,1260,769,121,123,119,23,1,25,312,310,313,23,25,26,488,485,484,3,28,27,28,30,27,1404,958,954,44,50,49,719,718,717,804,806,408,30,26,27,433,431,434,481,480,460,326,325,322,606,605,609,7,1371,0,276,274,277,451,455,457,30,32,26,385,383,382,284,283,282,333,339,341,343,873,346,352,351,350,1054,1050,1305,325,324,322,431,429,432,818,399,821,1269,32,30,1190,1191,1193,111,137,108,299,309,308,439,438,437,326,322,328,106,104,103,1031,1030,1028,1096,1097,1099,902,918,901,391,380,393,42,20,41,602,597,622,895,930,898,312,307,308,694,685,688,936,935,932,705,706,707,1069,639,637,610,612,609,351,327,350,589,633,558,24,32,33,979,988,987,711,713,708,825,843,830,69,74,76,261,263,259,798,1254,796,419,416,415,315,318,314,22,24,33,1091,1090,1089,70,65,66,829,827,826,833,835,834,558,633,560,876,344,340,418,416,419,950,949,262,714,1072,1074,673,671,704,391,379,380,604,603,601,1212,621,1211,38,1200,1201,722,716,720,487,527,526,22,33,35,978,974,975,372,375,374,273,269,270,935,936,336,129,125,126,760,757,756,75,74,72,922,926,284,57,59,56,1191,1265,1193,700,716,723,333,329,332,36,38,37,37,39,35,640,628,631,958,945,954,1035,1295,1042,40,39,37,374,371,370,862,861,845,43,42,41,1195,1196,1194,1140,1136,1137,1117,1116,1118,524,525,526,1289,1341,1218,631,632,636,45,42,43,334,335,332,379,389,382,367,372,370,937,895,896,330,329,328,49,50,51,411,405,409,342,347,349,642,644,629,659,654,658,52,49,51,996,973,999,468,470,469,57,54,58,64,65,61,240,238,241,234,242,231,66,65,64,1115,1112,1113,29,1186,1185,418,1363,417,57,58,60,673,675,672,700,723,697,1116,1123,1118,968,969,1326,282,279,280,746,748,744,323,330,328,80,112,83,337,339,333,701,700,699,339,343,341,62,65,67,386,385,388,372,367,373,100,104,105,1254,800,796,668,667,664,1330,912,903,62,67,1215,716,700,703,207,206,197,629,644,646,1391,1316,1019,164,165,144,237,212,1002,650,1206,1208,997,995,996,339,337,340,628,640,629,1051,1050,1047,176,174,175,375,377,374,1387,1298,1035,853,855,886,121,120,122,180,177,179,959,960,1328,331,334,330,947,951,953,801,1061,1252,1189,1188,1132,318,317,314,412,427,425,1274,727,693,482,481,460,1112,1109,1113,69,67,68,364,358,363,107,146,147,650,647,649,175,172,173,58,1089,682,65,70,68,624,625,623,345,346,354,71,70,1296,303,300,301,134,135,138,700,702,703,555,632,558,358,361,363,1286,1383,732,85,88,1279,584,592,594,466,463,476,71,69,68,322,324,319,252,1347,248,1135,1134,1132,345,347,341,805,804,406,134,138,136,521,520,530,364,359,358,1123,1116,1125,123,125,117,635,568,564,1182,1188,1184,71,72,69,400,402,390,72,74,69,639,638,637,390,402,404,966,968,965,502,1356,500,48,43,40,642,640,643,1103,1195,1192,451,458,446,82,80,83,660,656,661,535,538,540,1094,1091,1095,365,366,363,353,352,348,169,170,168,1283,761,1284,78,76,77,74,79,77,172,174,168,433,423,426,1179,1181,1185,582,583,584,79,80,77,270,265,941,347,345,348,63,1291,64,628,630,631,754,755,753,345,354,348,238,236,239,978,991,989,307,306,308,568,634,577,943,1335,942,516,518,519,80,79,81,1060,1058,1250,1300,852,854,145,146,107,1308,991,993,583,579,585,1102,1105,1104,857,879,858,844,859,848,1361,1362,422,171,181,170,1238,1092,1091,80,82,77,378,381,383,303,302,300,1415,1254,798,1386,1295,1037,979,982,981,1072,711,712,653,642,643,945,947,954,369,367,370,755,754,756,662,663,665,78,82,84,1247,1119,1120,125,115,117,191,187,186,405,404,409,624,622,593,165,167,144,1331,275,938,447,784,449,638,631,636,413,411,412,668,669,1229,376,374,377,278,279,281,387,385,382,85,78,84,1188,28,1184,1306,1396,993,1157,1158,1155,250,252,248,1068,1065,1073,924,929,927,376,371,374,774,536,537,901,1329,900,177,175,173,368,364,363,1301,849,847,381,378,377,179,177,173,350,327,347,82,86,84,897,902,901,1332,938,939,763,762,756,375,379,377,678,689,681,329,333,349,335,334,336,393,400,392,671,706,704,164,135,166,1338,1294,1221,356,360,358,86,88,84,463,466,465,169,165,166,822,864,825,87,101,99,1098,1238,1093,765,763,754,380,394,393,882,338,335,427,794,430,88,86,89,1263,1375,1196,857,858,856,787,788,786,116,114,81,736,737,684,462,457,461,922,924,925,1027,1302,1337,555,556,637,706,709,707,1110,1107,1131,456,455,453,102,100,99,447,448,445,1121,1122,1120,75,116,79,352,350,348,768,747,769,137,109,108,991,975,993,380,375,395,808,812,813,394,396,393,104,102,103,788,789,792,444,442,434,396,398,393,734,733,732,165,169,168,87,95,86,1197,1103,1101,694,729,686,754,763,756,486,488,484,877,861,863,244,242,245,700,697,699,343,345,341,1102,1103,1108,1248,1411,829,924,923,898,1207,650,649,711,710,712,990,1307,1046,666,1205,652,1322,1056,982,90,88,91,391,393,392,188,185,132,905,1323,910,625,626,627,128,133,132,1205,1207,652,154,153,155,811,809,819,692,695,691,510,515,511,590,588,591,181,182,179,444,445,446,651,649,645,877,878,875,371,369,370,496,492,493,1374,1149,1148,749,751,744,753,755,1271,435,440,437,90,46,1281,1265,1191,1194,354,353,348,423,433,424,683,58,682,970,1311,1e3,137,130,136,1201,1089,55,438,422,437,120,72,1041,420,418,419,46,90,91,131,111,127,844,847,846,433,435,424,690,691,687,318,320,319,435,433,434,183,185,186,930,924,898,1075,1065,1076,1285,1083,1081,454,487,486,127,128,130,92,46,91,977,979,980,1218,1222,1217,544,546,540,737,60,684,653,652,651,885,884,883,423,413,425,766,750,767,527,529,523,137,111,131,1104,1241,1099,46,92,47,736,686,733,178,176,175,820,818,821,100,150,98,784,447,786,185,188,186,1389,1319,1027,93,95,96,651,652,649,841,846,851,1178,1177,1148,724,1428,722,89,92,91,758,1426,757,1191,1192,1194,919,920,280,797,798,796,88,89,91,749,748,750,694,688,693,767,1257,766,499,501,498,142,145,107,422,436,437,829,833,1248,686,729,733,720,716,715,92,93,94,191,194,193,95,87,97,1203,1269,30,143,140,144,522,520,513,98,95,97,492,491,493,1288,1379,1336,1063,1064,543,655,656,654,770,771,772,869,866,868,988,1047,1050,706,705,704,109,139,141,824,817,816,185,135,132,710,711,707,97,87,99,675,674,672,100,97,99,391,389,379,181,183,184,588,590,586,582,581,583,448,452,450,1197,1198,1196,444,443,442,101,87,83,403,400,401,193,182,184,316,305,307,487,454,782,135,183,171,1136,1126,1129,102,101,103,703,713,715,187,183,186,900,1330,903,104,100,102,679,701,699,187,191,193,104,106,107,431,447,445,329,326,328,1122,1156,1160,1286,732,728,994,995,993,108,106,103,413,412,425,442,435,434,110,111,108,657,655,1071,740,742,739,838,839,840,797,806,799,455,459,457,1382,1294,1336,196,194,197,389,387,382,1213,627,646,459,463,461,112,80,81,806,797,794,774,773,772,113,111,112,995,1306,993,114,113,81,541,538,539,246,244,247,740,1076,743,335,337,332,467,468,469,79,116,81,806,428,408,859,861,860,1168,1120,1167,116,118,119,420,419,422,24,22,21,985,984,983,120,121,118,1028,1039,1031,413,423,415,997,998,995,865,820,821,1105,1106,1243,421,436,422,769,770,772,1429,1276,698,118,121,119,1309,1002,1003,856,858,881,940,948,942,123,117,119,412,410,428,182,181,184,58,683,60,790,788,791,204,196,197,416,414,415,723,698,697,829,830,833,423,421,415,117,115,114,485,490,483,459,455,460,452,449,783,973,970,999,369,368,366,752,754,1272,1380,1223,1336,702,700,701,113,115,127,644,642,645,861,862,863,455,451,450,597,601,599,462,467,469,1181,1179,1178,477,475,476,125,128,127,581,580,578,1331,919,275,628,626,591,486,525,489,684,685,686,947,953,954,709,706,663,402,403,406,808,802,805,128,125,129,672,674,670,1136,1134,1137,1175,1159,1157,990,988,989,131,127,130,1257,765,766,507,508,505,128,132,130,972,994,975,770,747,771,469,470,471,183,181,171,695,698,696,132,134,130,1035,1032,1036,1180,1145,1137,470,472,471,135,134,132,471,472,441,1046,1049,1047,751,1273,745,468,467,465,38,1201,55,130,134,136,445,444,434,405,411,387,400,398,401,490,494,483,458,451,457,138,139,136,440,439,437,284,290,285,705,702,704,312,314,307,452,448,449,1038,1018,1040,864,822,823,140,139,138,969,972,971,375,372,395,109,137,136,1103,1100,1101,482,456,484,111,113,127,812,808,810,210,192,1004,980,976,977,491,492,490,177,180,178,428,410,408,142,109,141,841,838,840,1102,1104,1099,139,140,141,827,817,826,994,973,996,550,548,549,145,142,141,384,383,417,635,633,634,106,142,107,586,583,585,104,107,147,762,1079,1080,546,516,519,861,877,860,146,148,147,491,488,489,148,105,147,524,497,525,356,355,354,925,924,927,148,149,105,1298,1034,1032,811,814,810,105,104,147,485,482,484,149,150,105,632,555,636,718,721,720,149,151,150,383,385,386,496,498,500,822,820,823,192,191,189,482,485,483,150,100,105,417,383,386,674,675,677,100,98,97,497,491,489,858,338,880,456,482,460,150,152,98,1054,988,1050,669,665,670,718,1275,721,165,164,166,17,42,18,135,164,138,1324,903,911,151,152,150,638,640,631,578,580,575,98,152,96,479,480,481,196,198,182,320,322,319,1028,1044,1039,556,1069,637,974,977,976,1057,956,952,506,508,510,306,305,304,506,503,505,95,98,96,955,960,959,872,360,357,809,810,807,1114,1245,1115,152,153,96,200,201,180,1070,657,1071,671,673,672,665,668,664,225,222,226,512,508,513,1041,1040,122,652,653,654,679,673,701,198,200,180,1081,1080,1285,1190,1130,1131,1259,746,768,153,154,96,861,859,845,180,201,178,400,390,392,494,495,483,1312,1394,967,96,154,94,888,887,889,794,427,428,497,524,499,797,793,794,1276,1274,696,93,96,94,682,680,681,503,501,505,1156,1143,1155,167,1369,144,135,171,166,1116,1115,1125,817,814,816,851,1293,841,551,552,549,777,1261,537,406,407,404,154,156,94,207,208,206,924,930,929,203,199,196,156,154,157,452,783,453,156,47,94,501,507,505,1009,1011,1314,987,988,985,47,156,18,568,635,634,1232,666,1231,691,688,687,290,291,288,1215,67,76,337,338,340,47,92,94,1297,70,1216,535,540,519,255,261,259,1190,1266,1133,1199,1197,1101,45,47,18,195,207,197,655,643,641,327,326,349,923,897,898,347,342,341,383,381,382,988,979,989,648,1213,646,934,315,313,899,1407,894,1044,1028,1025,233,222,223,499,509,507,158,156,157,998,1306,995,1348,1349,178,515,510,514,718,719,739,158,16,18,387,411,388,1192,1195,1194,1264,1376,1194,805,406,807,400,403,402,1019,1017,1317,16,158,15,250,254,253,675,678,677,771,539,772,158,159,15,360,356,357,955,957,953,1124,1123,1138,1008,129,126,232,246,230,160,159,158,49,52,1224,407,410,409,736,684,686,199,198,196,936,883,336,410,407,408,1209,1226,1210,265,267,264,189,188,190,1320,1027,1337,159,13,15,794,789,430,414,386,388,788,790,786,1440,1231,667,443,471,441,535,521,534,963,965,962,887,885,896,360,361,358,160,158,157,249,228,230,844,842,845,38,53,37,627,629,646,161,160,157,1166,1169,1165,630,632,631,679,690,689,536,538,534,207,195,209,161,157,155,790,1417,786,765,754,750,974,1325,971,1212,618,621,162,161,155,215,213,216,634,633,589,315,934,321,403,809,807,447,431,432,408,407,406,157,154,155,1011,1009,1010,1088,1086,1282,1038,1032,1039,793,789,794,153,162,155,414,416,386,569,566,565,833,836,835,163,162,153,937,930,895,366,368,363,140,164,144,454,783,782,240,241,243,734,735,733,548,550,561,164,140,138,562,559,560,518,521,519,167,165,168,170,172,168,563,564,565,709,660,661,429,431,426,1165,615,1160,666,652,659,1170,1166,1164,174,172,175,1333,939,940,331,321,933,550,559,561,177,178,175,170,179,173,775,774,537,181,179,170,572,504,571,664,659,658,847,849,846,841,840,846,935,331,932,1275,718,739,511,563,565,171,169,166,765,1077,764,783,449,785,809,811,810,1187,1179,1185,503,506,571,974,978,977,320,315,321,632,630,589,1097,1199,1101,571,566,569,639,655,641,747,770,769,504,503,571,1111,1243,1106,779,778,533,1205,666,1232,189,191,186,949,950,946,70,66,1216,187,193,184,566,506,511,1156,1124,1141,1165,1169,613,1267,1268,33,194,191,195,194,182,193,29,1183,1184,754,749,750,1205,1233,1206,1181,1183,1185,1154,1157,1153,521,532,534,777,778,1261,275,273,938,1122,1160,1167,729,732,733,182,198,179,576,568,577,337,333,332,761,759,760,520,529,530,782,781,487,532,521,530,198,180,179,975,994,993,643,640,641,1058,815,1059,199,200,198,406,403,807,778,777,533,538,541,540,1201,1091,1089,1256,780,528,624,623,622,532,531,533,1018,1017,1016,290,926,292,809,403,401,1308,992,991,547,517,546,820,822,816,1077,1422,764,203,196,204,968,1328,962,1235,619,1212,574,570,573,632,589,558,544,542,545,206,204,197,257,1346,253,759,1085,1270,194,195,197,811,818,816,1019,1316,1020,541,542,540,1313,997,996,542,544,540,967,965,1312,539,538,536,208,207,209,542,541,543,63,61,59,842,844,840,195,210,209,531,780,533,192,210,195,841,1293,838,1289,1218,1220,210,211,209,397,870,868,1191,1190,1192,210,212,211,801,802,803,1199,1097,1094,980,979,981,439,440,441,212,210,1004,774,539,536,544,547,546,682,681,683,789,432,430,432,429,430,211,213,209,793,797,796,1006,1005,1004,760,759,757,1236,617,1214,214,213,211,213,215,209,865,867,863,853,886,1299,215,208,209,43,41,40,563,562,564,1445,1214,619,33,1268,35,1056,1399,982,1193,1266,1190,745,1275,739,215,217,208,1023,1317,1017,217,215,216,646,644,645,1042,1387,1035,467,462,461,217,218,208,1420,1062,773,208,218,206,191,192,195,1213,625,627,218,205,206,1319,1390,1025,922,284,921,1086,1087,1282,219,217,216,873,872,357,219,216,220,796,800,793,869,872,874,49,1278,44,279,275,280,858,880,881,221,219,220,1076,740,741,255,257,253,387,389,390,344,876,875,599,600,596,216,214,220,1283,1424,1085,213,214,216,828,825,830,359,355,356,929,936,932,1227,1438,677,986,984,985,222,214,223,878,867,874,42,17,20,220,222,224,1395,1313,999,1006,190,133,867,878,863,968,962,965,1262,1198,1199,404,407,409,221,220,224,222,225,224,990,991,992,1200,1095,1201,551,1066,553,1209,648,647,440,435,442,338,879,340,1249,1412,831,427,412,428,1200,1199,1095,617,611,608,225,227,224,228,227,225,665,671,670,338,882,880,819,809,401,696,1274,693,229,228,225,163,153,152,590,592,586,228,229,230,789,793,792,1007,1006,133,288,291,293,402,406,404,842,843,825,1214,617,619,231,229,226,78,85,1215,254,256,255,828,824,825,60,737,1287,532,536,534,864,862,845,232,229,231,953,1327,954,233,234,231,843,839,830,1246,1240,1116,1239,1436,1096,853,1300,854,710,709,661,842,864,845,887,890,892,903,904,900,234,233,235,783,454,453,1054,986,985,900,899,901,822,824,816,934,928,933,1063,1065,1064,479,478,480,339,344,343,242,244,232,950,951,946,183,187,184,737,736,738,642,651,645,547,551,549,1154,1175,1157,244,246,232,882,883,880,733,735,736,666,667,1231,249,230,248,755,757,1271,397,394,395,250,246,251,243,964,245,252,250,253,536,532,537,709,663,660,611,616,607,254,250,251,698,722,725,890,891,894,789,788,787,263,264,259,1280,1377,88,269,265,270,269,273,271,1339,907,910,1109,1110,1113,762,761,760,793,795,792,1425,1270,1085,842,839,843,714,719,717,579,587,585,1356,496,500,867,869,874,279,278,277,1332,1405,938,874,873,875,678,675,679,398,399,819,550,549,554,282,283,281,601,602,605,76,78,1215,285,290,288,713,703,708,615,613,614,581,578,583,289,288,293,294,295,293,729,694,728,294,298,296,685,684,681,485,488,490,1313,996,999,1073,1075,1074,1106,1109,1111,414,413,415,759,761,1085,72,73,1041,508,506,505,727,726,693,638,639,641,620,602,622,871,365,362,305,306,307,905,910,904,701,673,704,299,306,301,698,695,697,334,935,336,306,299,308,706,671,663,416,418,417,847,844,848,539,774,772,703,702,705,1069,556,553,716,703,715,310,309,311,310,312,308,1119,1117,1120,602,620,608,314,316,307,620,618,608,780,779,533,63,60,1287,1009,1008,126,904,910,907,1001,238,239,615,1165,613,1066,551,545,813,1060,803,1273,751,752,713,714,717,323,331,330,1072,1068,1073,857,856,848,329,330,332,802,801,799,991,990,989,718,720,715,1100,1102,1099,748,749,744,59,60,63,330,334,332,1116,1117,1246,633,635,560,965,967,966,773,769,772,689,690,687,342,333,341,752,749,754,237,214,211,567,569,565,345,343,346,612,610,613,623,620,622,405,387,390,982,983,1322,555,637,636,529,531,530,617,618,619,326,329,349,702,701,704,350,347,348,1057,256,254,1239,1096,1099,647,646,645,355,353,354,824,822,825,1013,121,122,771,747,743,465,467,461,1393,1312,241,1255,784,786,662,664,658,346,356,354,356,346,357,810,808,807,361,360,362,28,1188,31,667,668,1230,361,365,363,814,812,810,587,634,589,365,361,362,957,1327,953,515,548,561,795,1416,792,1072,1073,1074,1204,669,670,906,904,907,372,374,370,660,662,658,1110,1130,1128,486,487,526,379,375,380,379,381,377,1233,1442,1206,381,379,382,740,719,741,719,714,741,151,163,152,671,672,670,812,814,815,241,965,243,856,847,848,509,508,507,384,378,383,1125,1115,1113,1341,1221,1218,722,698,723,389,391,392,588,586,585,399,396,821,1022,1006,1007,801,1060,1061,1210,1235,1212,885,937,896,323,320,321,394,380,395,397,396,394,801,1252,1253,398,396,399,255,256,262,1271,1272,753,667,666,664,1068,1067,1066,449,784,785,680,678,681,390,389,392,405,390,404,757,759,758,663,671,665,413,414,388,506,566,571,597,602,601,416,417,386,1428,725,722,818,811,819,2,4,1186,1143,1141,1142,690,679,699,421,419,415,681,689,687,419,421,422,732,729,728,1067,1068,1070,695,693,691,806,794,428,28,29,1184,427,429,425,447,787,786,425,429,426,802,813,803,501,502,500,431,433,426,742,740,743,862,864,823,1124,1156,1122,716,722,723,435,436,424,676,674,677,436,435,437,436,421,424,657,1070,712,1032,1034,1033,951,955,953,443,440,442,1183,29,1185,747,742,743,914,916,908,548,547,549,621,1213,1211,726,694,693,1131,1107,1108,448,447,449,886,888,1299,445,448,446,446,448,450,839,837,830,831,1058,1059,771,541,539,452,453,450,532,777,537,453,455,450,713,711,714,517,547,548,595,582,584,457,459,461,555,552,556,762,760,756,559,550,554,464,477,476,514,517,548,463,459,464,463,465,461,555,557,554,1253,1415,798,1203,30,31,751,745,744,458,462,469,926,290,284,1321,906,907,757,755,756,839,842,840,458,469,471,765,750,766,1069,1070,1071,29,3,1186,984,1322,983,678,680,677,751,749,752,780,531,528,454,456,453,1195,1197,1196,1084,761,1081,559,562,561,541,771,543,601,603,599,443,458,471,891,887,896,440,443,441,60,683,684,1278,48,44,937,936,929,458,444,446,804,802,799,1134,1136,1129,570,567,573,473,468,465,926,922,925,344,339,340,1309,1310,1002,475,466,476,566,511,565,806,804,799,463,464,476,334,331,935,1365,317,319,1120,1117,1118,1139,1140,1142,1064,542,543,1130,1190,1133,944,945,958,480,459,460,1067,1069,553,481,482,483,703,705,708,688,685,687,627,626,629,1064,1066,545,614,1168,1167,456,454,484,432,789,787,573,568,575,212,1004,1003,488,486,489,488,491,490,1213,648,1211,777,532,533,576,579,578,1030,1027,1028,1018,1023,1017,38,36,1200,590,624,593,799,1253,798,495,479,481,1202,1103,1192,879,860,876,925,928,311,491,497,493,676,1228,674,497,498,493,497,499,498,902,923,921,504,502,503,396,397,868,987,985,983,1083,1284,1084,501,499,507,685,694,686,936,937,883,588,587,589,508,512,510,870,365,871,510,512,514,707,711,708,514,512,516,920,284,282,1051,1305,1050,784,1255,785,516,512,513,1277,1225,1224,1126,1123,1125,1186,1187,1185,351,325,327,518,516,513,634,587,577,942,944,943,680,1227,677,886,855,881,948,949,946,1392,1315,1015,518,520,521,520,522,523,895,891,896,1245,1112,1115,524,522,509,1171,1162,1172,513,508,509,522,524,523,236,1002,239,814,811,816,499,524,509,531,532,530,926,925,311,574,573,575,1079,1423,1080,525,497,489,804,408,406,771,1063,543,265,263,941,817,824,826,742,746,744,1007,133,129,1285,1080,1082,666,659,664,523,524,526,592,593,594,1358,1359,466,692,690,699,529,527,528,588,589,591,829,828,830,529,520,523,979,978,989,576,578,575,1107,1105,1108,579,583,578,540,546,519,546,517,516,924,922,921,549,552,554,123,124,126,674,1228,670,552,555,554,870,397,373,557,559,554,559,557,560,563,515,561,515,563,511,515,514,548,568,567,564,572,571,569,1110,1127,1113,1006,1004,190,568,576,575,1069,1067,1070,859,844,845,580,574,575,974,976,1325,587,579,577,587,588,585,1225,49,1224,669,668,665,655,639,1071,657,710,661,828,829,826,201,1348,178,542,1064,545,653,651,642,592,584,586,656,660,658,1066,1067,553,584,583,586,837,839,838,1109,1107,1110,595,584,594,597,596,593,598,595,594,876,877,875,373,397,395,815,817,1059,606,604,605,1070,1068,712,309,294,292,605,607,609,1120,1122,1167,656,657,661,617,1236,611,551,544,545,1103,1102,1100,622,597,593,761,1283,1085,1092,1090,1091,626,590,591,1135,1180,1137,589,630,591,1114,1116,1240,1084,1081,1083,678,679,689,1160,615,1167,562,635,564,1089,1237,682,1100,1097,1101,637,638,636,762,1078,1079,640,642,629,647,648,646,649,647,645,643,655,654,685,681,687,695,692,697,698,1276,696,726,730,728,398,819,401,618,1212,619,763,765,764,1218,1217,1220,1121,1124,1122,310,311,313,798,797,799,979,987,983,639,1069,1071,840,844,846,854,855,853,854,847,856,859,857,848,866,865,821,867,865,866,866,396,868,970,1e3,999,1226,1444,1210,869,870,871,275,919,280,872,869,871,365,870,373,1018,1043,1040,872,871,362,938,273,939,472,1360,441,872,873,874,346,873,357,873,343,875,754,753,1272,273,270,939,860,877,876,930,937,929,879,857,860,879,338,858,1127,1126,1125,1268,34,35,883,882,336,883,884,880,880,884,881,884,886,881,884,887,886,1286,728,731,947,945,946,891,890,887,1349,202,178,891,895,894,1262,1263,1198,945,942,946,1040,1043,122,895,897,894,1064,1065,1066,58,54,55,1021,1392,1015,903,905,904,904,906,900,988,1054,985,1339,913,914,1002,212,1003,53,38,55,66,1290,1217,909,1339,915,1153,1157,1155,1004,192,190,124,121,1013,284,920,921,920,902,921,1130,1110,1131,897,923,902,1163,1165,1160,1091,1094,1093,923,924,921,1242,1241,1104,53,40,37,929,931,927,945,944,942,1417,1255,786,931,932,933,932,331,933,331,323,321,243,965,963,321,934,933,1119,1246,1117,311,928,313,1303,1029,1030,292,926,311,190,188,133,1029,1302,1027,1288,1336,1341,1320,1389,1027,648,1209,1211,942,948,946,948,941,949,1009,1022,1008,951,950,952,955,951,956,955,961,960,1199,1198,1197,960,964,963,966,969,968,1162,1161,1158,969,966,970,956,951,952,1065,1075,1073,1143,1153,1155,761,762,1081,236,237,1002,192,189,190,1008,1007,129,1009,124,1010,1015,1010,1014,1012,1013,1016,1016,1017,1014,1020,1015,1014,1015,1011,1010,1212,1211,1210,1018,1318,1023,1400,1323,905,1018,1024,1318,1088,1087,1086,776,773,774,675,673,679,1038,1040,1036,1158,1157,1159,1040,1041,1036,1041,1037,1036,1013,1043,1016,1130,1132,1128,1043,1018,1016,1018,1038,1044,1121,1120,1118,1047,990,1046,1195,1103,1197,990,1047,988,1299,1300,853,827,831,1059,242,243,245,964,961,245,961,964,960,244,961,247,961,956,247,961,955,956,956,1057,247,251,246,247,773,1062,769,256,1057,952,256,950,262,949,263,262,941,263,949,710,657,712,1270,758,759,948,940,941,882,335,336,1281,1280,90,372,373,395,1058,1060,813,1060,801,803,802,808,813,812,1058,813,1058,812,815,814,817,815,1063,771,743,1339,909,907,1068,1072,712,711,1072,714,1075,741,1074,1075,1076,741,1065,1063,1076,1089,58,55,1346,252,253,1078,762,764,1284,761,1084,1301,1409,849,1097,1096,1094,1096,1098,1093,1097,1100,1099,87,82,83,1105,1242,1104,1107,1109,1106,1109,1244,1111,1109,1112,1244,1130,1133,1132,1132,1134,1128,1134,1129,1128,1126,1136,1138,1123,1126,1138,1139,1136,1140,1138,1139,1141,1124,1138,1141,1141,1139,1142,1140,1144,1142,1182,1135,1132,1145,1144,1140,1142,1144,1146,1147,1142,1146,1144,1148,1146,1144,1145,1148,1148,1149,1146,1149,1150,1146,1150,1147,1146,1147,1150,1151,1143,1147,1151,1150,1152,1151,1152,1153,1151,1152,1154,1153,1153,1143,1151,1396,1308,993,1158,1156,1155,1156,1158,1160,1158,1161,1160,1161,1163,1160,1163,1161,1164,1163,1166,1165,615,614,1167,1168,614,616,1168,1247,1120,1166,1163,1164,1171,1170,1164,1162,1171,1164,1161,1162,1164,1173,1171,1172,1398,986,1054,1162,1158,1159,1175,1174,1159,1174,1173,1172,1173,1176,1171,1143,1156,1141,1293,1410,838,1147,1143,1142,1179,1177,1178,1145,1178,1148,1178,1145,1180,1181,1178,1180,1145,1140,1137,1135,1182,1180,1134,1135,1137,1182,1183,1180,1183,1182,1184,1183,1181,1180,3,2,1186,1188,1189,31,1196,1264,1194,1199,1094,1095,1091,1201,1095,1433,1244,1112,1103,1202,1108,1202,1190,1131,1105,1102,1108,1229,669,1204,1207,1205,1206,1213,621,623,625,1213,623,1189,1203,31,1269,1267,32,1229,1230,668,1200,1262,1199,36,35,34,1297,1296,70,1026,1318,1024,745,739,742,73,1037,1041,1328,960,962,1030,1031,1303,849,850,846,1301,854,852,720,724,722,769,1260,768,1263,1196,1198,64,1291,66,1340,1052,1055,1340,1055,1054,1338,1221,1341,1304,1340,1305,913,1339,910,1215,1277,62,1279,1215,85,738,1287,737,1290,1220,1217,1219,1297,1216,1302,1045,1337,1049,1051,1047,1315,1314,1011,1314,1022,1009,1048,1049,1046,889,1299,888,918,1329,901,1321,899,906,893,892,890,721,724,720,616,1247,1168,1053,1052,1340,1053,1340,1304,837,838,1292,837,1292,836,827,829,832,827,832,1249,903,1324,905,919,918,902,920,919,902,1329,1330,900,801,1253,799,1258,748,746,767,750,748,1335,940,942,833,834,1248,837,836,833,613,610,614,610,616,614,1018,1044,1024,846,850,851,61,52,59,1222,1219,1217,1219,1216,1217,1025,1028,1319,1028,1027,1319,67,69,76,681,684,683,920,282,280,903,912,911,908,916,917,302,1342,300,1343,297,300,1342,1343,300,286,1344,281,1345,278,281,1347,249,248,202,1350,178,1351,176,178,1350,1351,178,1176,1352,1171,1353,1170,1171,1352,1353,1171,1354,612,613,1355,572,569,570,1355,569,1357,494,490,474,1358,466,1359,473,466,1360,439,441,438,1361,422,1362,420,422,1363,384,417,1364,376,377,324,1365,319,1366,316,314,174,1367,168,1368,167,168,1369,143,144,1370,145,141,143,1370,141,1371,4,0,1372,1187,1186,4,1372,1186,1177,1373,1148,1373,1374,1148,1375,1264,1196,1376,1265,1194,1377,1279,88,1378,1288,1341,1223,1381,1336,1381,1382,1336,1383,734,732,1384,738,736,735,1384,736,1221,1385,1218,73,1386,1037,1388,1303,1031,1033,1388,1031,1390,1026,1025,1317,1391,1019,1394,1311,967,1e3,1395,999,1397,1048,1046,1307,1397,1046,1055,1398,1054,1324,1400,905,1401,913,910,1323,1401,910,1402,1326,971,1325,1402,971,1243,1434,1105,1403,957,955,959,1403,955,1327,1404,954,1434,1242,1105,1405,1331,938,1446,616,611,1406,1321,907,909,1406,907,1430,730,726,1407,893,894,1439,1204,670,892,1408,887,1412,1251,831,1413,1250,1058,1251,1413,1058,1414,1061,1060,1250,1414,1060,1416,791,792,1256,1418,780,1419,776,775,1261,1419,775,776,1420,773,1258,1421,748,1422,1078,764,1423,1082,1080,1424,1282,1085,1087,1425,1085,1426,1271,757,1427,1273,752,730,1431,728,1432,1245,1114,1240,1432,1114,1245,1433,1112,1435,1239,1099,1241,1435,1099,1436,1098,1096,1437,1237,1090,1092,1437,1090,1438,676,677,1228,1439,670,1441,1233,1205,1232,1441,1205,1442,1208,1206,1443,1226,1209,1234,1443,1209,1444,1235,1210,1235,1445,619,1236,1446,611],sharedSettings=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx");var TriangleLayer_stories={component:SubsurfaceViewer.Z,title:"SubsurfaceViewer / Triangle Layer",args:{triggerHome:0}};const SmallTriangleLayer={args:{id:"map",layers:[{"@@type":"AxesLayer",id:"axes_small",bounds:[-10,-10,0,20,10,10]},{"@@type":"TriangleLayer",id:"triangle-layer",pointsData:[0,0,5,10,0,5,10,10,5,0,10,0,5,-5,10,11,-4,6,11,0,7,17,0,8],triangleData:[2,1,0,3,2,0,1,4,0,6,7,5],color:[100,100,255],gridLines:!0,material:!0,smoothShading:!0,ZIncreasingDownwards:!0},sharedSettings.D$],bounds:[-10,-10,17,10],views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Both mesh and property data given as native javascript arrays (as opposed to URL)."}}}},surfaceAxesLayer={"@@type":"AxesLayer",id:"mandaros_axes_small",bounds:[-2e3,-2e3,1500,2500,2e3,3e3]},TwoSideLighting={args:{id:"map",layers:[surfaceAxesLayer,{"@@type":"TriangleLayer",id:"upper_surface_layer",pointsData:surfacePoints,triangleData:surfaceTriangles,color:[100,100,255],gridLines:!0,material:{ambient:.35,diffuse:.6,shininess:100,specularColor:[255,255,255]},smoothShading:!0,ZIncreasingDownwards:!0,debug:!0},{"@@type":"TriangleLayer",id:"lowers_surface_layer",pointsData:((points,shift)=>{const res=[];for(let i=0;i{const res=[];for(let i=0;imath.random?math.random()*size:Math.random()*size,buildTrgl=(count=1)=>{count=count||1;const triangles=Array(9*count).fill(0);for(let i=0;irandomFunc(1e3)));for(let ti=0;ti<9;++ti)triangles[9*i+ti]=center[ti%3]+randomFunc(100)}return triangles},TriangleLayersGenerator=props=>{const tsurfLayers=react.useMemo((()=>{const result=[];for(let i=0;i<=props.layerCount;++i)result.push({"@@type":"TriangleLayer",id:`triangle-layer-${i}`,pointsData:buildTrgl(props.triangleCount),triangleData:Array(3*props.triangleCount).fill(0).map(((_,i)=>i)),gridLines:!0,material:!0,ZIncreasingDownwards:!0});return result}),[props.layerCount,props.triangleCount]);return react.createElement(SubsurfaceViewer.Z,{triggerHome:props.triggerHome,id:"many-triangle-layers",layers:tsurfLayers,views:sharedSettings.Pl})},TriangleLayers={args:{layerCount:10,triangleCount:1e3},render:args=>react.createElement(TriangleLayersGenerator,args)};SmallTriangleLayer.parameters={...SmallTriangleLayer.parameters,docs:{...SmallTriangleLayer.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [axesLayer, triangleLayer, northArrowLayer],\n bounds: [-10, -10, 17, 10],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Both mesh and property data given as native javascript arrays (as opposed to URL)."\n }\n }\n }\n}',...SmallTriangleLayer.parameters?.docs?.source}}},TwoSideLighting.parameters={...TwoSideLighting.parameters,docs:{...TwoSideLighting.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [surfaceAxesLayer, upperSurfaceLayer, lowerSurfaceLayer],\n bounds: [-2000, -2000, 2500, 2000],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Both mesh and property data given as native javascript arrays (as opposed to URL)."\n }\n }\n }\n}',...TwoSideLighting.parameters?.docs?.source}}},TypedArrayInput.parameters={...TypedArrayInput.parameters,docs:{...TypedArrayInput.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [surfaceAxesLayer, typedDataSurfaceLayer],\n bounds: [-2000, -2000, 2500, 2000],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Surface data is provided as typed arrays."\n }\n }\n }\n}',...TypedArrayInput.parameters?.docs?.source}}},TriangleLayers.parameters={...TriangleLayers.parameters,docs:{...TriangleLayers.parameters?.docs,source:{originalSource:"{\n args: {\n layerCount: 10,\n triangleCount: 1000\n },\n render: args => \n}",...TriangleLayers.parameters?.docs?.source}}};const __namedExportsOrder=["SmallTriangleLayer","TwoSideLighting","TypedArrayInput","TriangleLayers"]}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-TriangleLayer-stories.a028c753.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-TriangleLayer-stories.a028c753.iframe.bundle.js new file mode 100644 index 000000000..affba0bdd --- /dev/null +++ b/storybook-static/subsurface-viewer-src-storybook-layers-TriangleLayer-stories.a028c753.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[1151],{"./packages/subsurface-viewer/src/storybook/layers/TriangleLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SmallTriangleLayer:function(){return SmallTriangleLayer},TriangleLayers:function(){return TriangleLayers},TwoSideLighting:function(){return TwoSideLighting},TypedArrayInput:function(){return TypedArrayInput},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return TriangleLayer_stories}});var react=__webpack_require__("./node_modules/react/index.js"),create=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/create.js"),allFactoriesAny=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),SubsurfaceViewer=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),surfacePoints=[861.7890014648438,-1860.6434326171875,1853.28076171875,879.9158935546875,-1738.4476318359375,1852.9549560546875,960.7814331054688,-1821.2784423828125,1866.0389404296875,1018.4358520507812,-1737.1724853515625,1872.80029296875,964.563720703125,-1941.986328125,1866.393310546875,768.9938354492188,-1813.202392578125,1838.8836669921875,767.4557495117188,-1721.4793701171875,1832.3590087890625,741.5133666992188,-1940.981201171875,1841.8511962890625,683.4859008789062,-1856.35595703125,1831.6416015625,629.9881591796875,-1940.478515625,1828.9813232421875,680.164794921875,-1767.902099609375,1823.2357177734375,601.2835693359375,-1837.6441650390625,1821.6629638671875,570.889404296875,-1722.1883544921875,1803.9449462890625,518.4629516601562,-1939.9759521484375,1814.900634765625,516.6200561523438,-1817.6026611328125,1810.436767578125,444.38739013671875,-1847.1650390625,1800.611572265625,448.8537292480469,-1749.6646728515625,1793.7408447265625,478.0454406738281,-1628.515380859375,1780.5692138671875,345.6031799316406,-1654.7840576171875,1771.0831298828125,581.2296752929688,-1595.8873291015625,1789.5760498046875,517.5243530273438,-1508.9564208984375,1770.63037109375,692.8040161132812,-1637.1942138671875,1812.14599609375,651.2325439453125,-1480.4417724609375,1785.510986328125,817.1553344726562,-1640.7626953125,1837.530517578125,785.7288208007812,-1528.822509765625,1815.39453125,887.1284790039062,-1648.384521484375,1852.155029296875,890.530517578125,-1573.2716064453125,1846.8017578125,961.0101318359375,-1642.526123046875,1864.4166259765625,1088.2523193359375,-1630.976806640625,1879.9173583984375,1139.7178955078125,-1740.6533203125,1883.028076171875,1001.5465698242188,-1534.48388671875,1865.2052001953125,1105.330322265625,-1543.178955078125,1876.0738525390625,890.2262573242188,-1468.926513671875,1831.938720703125,777.6793823242188,-1404.856689453125,1799.1724853515625,761.4197998046875,-1233.3084716796875,1775.8338623046875,673.3624267578125,-1323.0516357421875,1774.745361328125,650.6951904296875,-1216.8822021484375,1760.435791015625,560.49951171875,-1249.4786376953125,1748.6405029296875,586.042236328125,-1119.165771484375,1734.5950927734375,545.6036376953125,-1384.4862060546875,1762.3653564453125,419.7807312011719,-1314.566162109375,1733.082275390625,448.66845703125,-1435.41943359375,1752.99609375,407.8156433105469,-1532.882568359375,1760.188232421875,352.57366943359375,-1442.3759765625,1739.5675048828125,303.1664123535156,-1278.968994140625,1707.7655029296875,309.34649658203125,-1534.6866455078125,1747.615478515625,222.36660766601562,-1455.9820556640625,1720.247314453125,220.3843231201172,-1593.92724609375,1742.817626953125,290.9559326171875,-1375.98486328125,1718.86474609375,230.45347595214844,-1195.436279296875,1682.929443359375,345.6728210449219,-1211.74951171875,1703.3887939453125,315.39019775390625,-1110.218994140625,1680.3040771484375,192.1130828857422,-1067.815673828125,1656.0904541015625,452.8620910644531,-1144.069091796875,1711.1119384765625,385.08941650390625,-1013.1820068359375,1675.0863037109375,511.9958190917969,-996.780517578125,1697.5880126953125,288.6710510253906,-1016.9102783203125,1659.7806396484375,318.1287536621094,-941.23046875,1647.482666015625,413.1354675292969,-884.2842407226562,1650.1026611328125,229.21490478515625,-960.020751953125,1641.193359375,268.2354736328125,-844.87109375,1606.3739013671875,118.16942596435547,-973.4879760742188,1626.279541015625,50.92790985107422,-1067.5357666015625,1640.27490234375,162.6715087890625,-915.8265380859375,1625.1282958984375,81.45683288574219,-885.9172973632812,1600.788818359375,5.358036994934082,-929.0392456054688,1601.110107421875,10.229177474975586,-791.511962890625,1572.2491455078125,-67.36048889160156,-1031.7615966796875,1616.1837158203125,-96.94837951660156,-941.0447387695312,1594.7064208984375,-170.2688446044922,-1012.996826171875,1602.572021484375,-99.39398193359375,-835.1890869140625,1578.2532958984375,-177.6343536376953,-905.6181030273438,1587.2271728515625,-282.18017578125,-961.906982421875,1584.008544921875,-238.01467895507812,-845.62109375,1569.9295654296875,-261.6784973144531,-1093.92529296875,1614.6707763671875,-370.31536865234375,-1062.3963623046875,1612.6407470703125,-163.6409454345703,-1124.8350830078125,1621.6298828125,-239.59532165527344,-1214.452392578125,1632.27734375,-142.1101837158203,-1235.4554443359375,1637.5013427734375,-345.6008605957031,-1183.132568359375,1634.775146484375,-320.4205017089844,-1309.3255615234375,1646.97705078125,-426.8017272949219,-1274.858154296875,1661.5826416015625,-200.4383544921875,-1345.6239013671875,1645.2078857421875,-299.9102478027344,-1425.1162109375,1661.3646240234375,-94.16718292236328,-1315.3843994140625,1649.2509765625,-55.96763610839844,-1252.0361328125,1650.3408203125,-94.27052307128906,-1426.355224609375,1664.6456298828125,-216.4856414794922,-1509.6666259765625,1675.511962890625,26.341041564941406,-1334.99560546875,1669.000244140625,13.91010570526123,-1482.821533203125,1687.5029296875,147.53402709960938,-1370.1776123046875,1695.0904541015625,105.03103637695312,-1433.274169921875,1697.072265625,116.19058227539062,-1535.3045654296875,1712.8310546875,26.108314514160156,-1594.9139404296875,1710.1270751953125,111.31521606445312,-1658.223388671875,1734.4732666015625,-92.20582580566406,-1582.2080078125,1698.00732421875,-13.67271900177002,-1714.6263427734375,1729.01806640625,-202.7684783935547,-1629.0057373046875,1702.53857421875,-150.3907012939453,-1715.803466796875,1720.8006591796875,-277.9425354003906,-1612.896484375,1696.9019775390625,-274.21697998046875,-1719.912841796875,1720.1336669921875,-349.2210693359375,-1543.879638671875,1685.83837890625,-347.1682434082031,-1655.935302734375,1708.242919921875,-434.0176696777344,-1639.8961181640625,1710.03955078125,-400.9255065917969,-1755.127685546875,1732.650146484375,-323.7271728515625,-1833.429443359375,1745.5955810546875,-515.4937133789062,-1725.83642578125,1726.4703369140625,-497.383544921875,-1831.3858642578125,1745.4449462890625,-537.3517456054688,-1608.9095458984375,1713.0859375,-637.714599609375,-1699.519775390625,1727.40576171875,-456.24053955078125,-1537.7835693359375,1697.267822265625,-547.2139282226562,-1475.2734375,1702.722900390625,-415.8777770996094,-1416.2860107421875,1676.8905029296875,-517.6598510742188,-1343.546875,1687.87744140625,-508.0495910644531,-1244.96435546875,1667.6788330078125,-578.604248046875,-1273.74462890625,1683.860107421875,-458.3787536621094,-1153.2919921875,1642.0179443359375,-562.6442260742188,-1179.874755859375,1657.36962890625,-465.3894958496094,-1044.87744140625,1610.409423828125,-533.2094116210938,-1089.6859130859375,1626.2686767578125,-418.4572448730469,-947.7275390625,1583.5196533203125,-552.3785400390625,-978.2411499023438,1592.720947265625,-498.6351623535156,-844.3829345703125,1561.498779296875,-629.5264282226562,-1092.3714599609375,1628.97314453125,-708.6398315429688,-970.031005859375,1591.3597412109375,-674.6998901367188,-1225.6453857421875,1674.087890625,-752.8807983398438,-1106.5714111328125,1636.8265380859375,-635.7734375,-1375.0172119140625,1701.7003173828125,-772.9774169921875,-1341.084228515625,1695.069091796875,-808.3516845703125,-1211.380126953125,1670.23583984375,-733.5857543945312,-1487.9598388671875,1715.492919921875,-637.7517700195312,-1475.968017578125,1710.970703125,-890.2557373046875,-1452.959716796875,1709.7613525390625,-911.7750244140625,-1292.7838134765625,1687.7340087890625,-834.916259765625,-1573.6304931640625,1727.40966796875,-973.8855590820312,-1610.605712890625,1733.088623046875,-738.5645141601562,-1625.02490234375,1727.707275390625,-637.6341552734375,-1563.7076416015625,1717.549560546875,-844.2506103515625,-1682.928466796875,1736.1019287109375,-750.2978515625,-1727.1026611328125,1734.736083984375,-832.0398559570312,-1792.626953125,1739.1943359375,-703.5598754882812,-1824.356201171875,1740.1328125,-589.1779174804688,-1800.5054931640625,1737.275146484375,-819.8394775390625,-1933.944580078125,1743.3958740234375,-934.6525268554688,-1851.61669921875,1742.6680908203125,-596.7890625,-1934.9498291015625,1747.2965087890625,-485.26385498046875,-1935.4525146484375,1752.8680419921875,-415.2593994140625,-1854.6942138671875,1750.6142578125,-373.7386474609375,-1935.955078125,1753.62841796875,-262.2134704589844,-1936.4576416015625,1749.948974609375,-211.04612731933594,-1821.816162109375,1739.8348388671875,-150.68826293945312,-1936.9603271484375,1748.4346923828125,-93.32098388671875,-1821.8289794921875,1742.5809326171875,22.831506729125977,-1838.4158935546875,1753.879150390625,107.9402084350586,-1776.666015625,1753.8939208984375,116.77896118164062,-1863.1326904296875,1765.2938232421875,220.80191040039062,-1724.8450927734375,1762.2486572265625,207.56768798828125,-1839.151123046875,1772.1385498046875,337.8406066894531,-1810.05322265625,1784.1453857421875,406.937744140625,-1939.4732666015625,1797.7569580078125,295.41253662109375,-1938.970703125,1783.8846435546875,183.88734436035156,-1938.4681396484375,1773.2186279296875,72.36214447021484,-1937.9654541015625,1763.221435546875,-39.16305923461914,-1937.462890625,1753.3299560546875,-942.3411254882812,-1747.124755859375,1739.3577880859375,-1037.9456787109375,-1806.00732421875,1740.8515625,-1036.322509765625,-1719.1474609375,1738.743408203125,-1042.889892578125,-1932.9393310546875,1740.7838134765625,-1158.3837890625,-1847.07177734375,1735.8309326171875,-1114.518310546875,-1754.5858154296875,1736.3387451171875,-1223.8931884765625,-1732.7222900390625,1730.6171875,-1116.199951171875,-1662.7362060546875,1733.553955078125,-1265.44873046875,-1818.49853515625,1728.6903076171875,-1320.8211669921875,-1762.8624267578125,1724.4208984375,-1265.9403076171875,-1931.93408203125,1727.9599609375,-1354.85693359375,-1833.0556640625,1722.33154296875,-1377.4654541015625,-1931.4315185546875,1721.9388427734375,-1399.74072265625,-1754.86279296875,1725.5150146484375,-1490.7823486328125,-1827.111572265625,1722.5133056640625,-1353.547119140625,-1661.847900390625,1737.26904296875,-1479.0482177734375,-1685.824462890625,1738.61962890625,-1229.987060546875,-1605.2713623046875,1735.469970703125,-1335.7493896484375,-1512.3104248046875,1739.0118408203125,-1120.97509765625,-1537.7900390625,1724.837158203125,-1225.876708984375,-1512.1927490234375,1730.721435546875,-1017.861083984375,-1481.0460205078125,1715.115478515625,-1104.5858154296875,-1424.6356201171875,1716.21875,-1183.09521484375,-1456.5712890625,1724.18896484375,-1007.578857421875,-1375.449951171875,1702.819580078125,-1101.3846435546875,-1334.0889892578125,1710.6588134765625,-1042.669189453125,-1266.0517578125,1696.4591064453125,-1206.9796142578125,-1361.0870361328125,1721.878662109375,-1159.6727294921875,-1244.4725341796875,1708.80322265625,-1258.0889892578125,-1444.6788330078125,1729.9989013671875,-1336.150146484375,-1378.980712890625,1731.2135009765625,-1310.6900634765625,-1244.4432373046875,1719.560302734375,-1465.295166015625,-1414.890625,1734.5924072265625,-1430.1715087890625,-1295.142333984375,1730.5506591796875,-1466.8682861328125,-1560.119140625,1739.9747314453125,-1599.45458984375,-1480.6385498046875,1734.0203857421875,-1599.719970703125,-1593.08544921875,1737.624755859375,-1599.9852294921875,-1705.532470703125,1738.2119140625,-1600.515869140625,-1930.42626953125,1724.1568603515625,-1599.1893310546875,-1368.191650390625,1730.302001953125,-1516.56201171875,-1311.2200927734375,1729.49755859375,-1598.9239501953125,-1255.7447509765625,1724.55712890625,-1508.104736328125,-1222.9775390625,1723.3504638671875,-1426.705078125,-1199.05322265625,1721.0345458984375,-1493.5198974609375,-1126.8402099609375,1711.8155517578125,-1378.2427978515625,-1107.3675537109375,1704.5230712890625,-1228.5916748046875,-1126.8011474609375,1696.36767578125,-1293.7215576171875,-1009.2962036132812,1672.358642578125,-1155.5767822265625,-1017.912109375,1663.669189453125,-1403.5369873046875,-1002.6725463867188,1684.9027099609375,-1374.49853515625,-897.18017578125,1657.483154296875,-1470.3912353515625,-1044.9188232421875,1698.2210693359375,-1486.5699462890625,-955.7293701171875,1684.4989013671875,-1598.393310546875,-1030.850830078125,1703.3819580078125,-1598.65869140625,-1143.2978515625,1715.07568359375,-1598.1280517578125,-918.4039916992188,1686.313232421875,-1494.39404296875,-848.8076782226562,1663.66015625,-1597.86279296875,-805.95703125,1666.373291015625,-1412.9466552734375,-763.1829223632812,1635.7735595703125,-1285.1156005859375,-798.2976684570312,1630.94384765625,-1514.8568115234375,-757.7666015625,1648.4326171875,-1489.0980224609375,-675.0341796875,1634.944580078125,-1395.119873046875,-663.3406982421875,1623.6876220703125,-1597.597412109375,-693.5101318359375,1650.57861328125,-1597.3321533203125,-581.063232421875,1638.4705810546875,-1435.4188232421875,-577.00244140625,1621.17138671875,-1475.5732421875,-464.10333251953125,1620.7469482421875,-1314.831787109375,-598.754638671875,1612.238037109375,-1347.2730712890625,-479.14361572265625,1603.7154541015625,-1307.732666015625,-703.1286010742188,1621.3804931640625,-1191.51416015625,-658.7967529296875,1615.4088134765625,-1234.21875,-736.6355590820312,1623.770751953125,-1154.8206787109375,-785.0330810546875,1619.3280029296875,-1221.8155517578125,-903.0706176757812,1642.693603515625,-1064.96923828125,-688.8557739257812,1610.18994140625,-1053.2501220703125,-791.4798583984375,1612.5128173828125,-1088.4603271484375,-585.26611328125,1601.262939453125,-969.3944702148438,-593.8766479492188,1596.21533203125,-1195.7532958984375,-511.6141662597656,1594.8826904296875,-1042.4031982421875,-476.8310852050781,1592.331298828125,-1248.5784912109375,-379.767578125,1600.477294921875,-1133.4149169921875,-405.6683654785156,1589.1583251953125,-1391.07568359375,-342.9394836425781,1612.8223876953125,-1279.4688720703125,-254.48696899414062,1613.9505615234375,-1513.70556640625,-353.4427490234375,1625.2872314453125,-1597.0667724609375,-468.61627197265625,1633.4263916015625,-1468.8536376953125,-238.93255615234375,1633.5958251953125,-1379.4422607421875,-223.45767211914062,1624.286376953125,-1596.5361328125,-243.72244262695312,1649.310302734375,-1521.483642578125,-127.5386962890625,1669.0941162109375,-1425.0833740234375,-130.4219207763672,1650.3021240234375,-1481.6556396484375,6.668664455413818,1689.8135986328125,-1361.804931640625,-36.8621826171875,1662.4884033203125,-1596.005615234375,-18.828590393066406,1694.59326171875,-1595.7403564453125,93.61833190917969,1709.395263671875,-1509.7713623046875,138.3538360595703,1710.3819580078125,-1595.47509765625,206.06524658203125,1726.599365234375,-1454.83740234375,99.9257583618164,1700.2939453125,-1388.745361328125,74.54134368896484,1688.1661376953125,-1425.888916015625,185.8390655517578,1709.87939453125,-1512.4388427734375,249.7236328125,1727.75244140625,-1439.9642333984375,310.859375,1729.4417724609375,-1595.209716796875,318.5121765136719,1746.895263671875,-1519.0767822265625,343.4278869628906,1742.7469482421875,-1594.9444580078125,430.9591064453125,1763.82666015625,-1469.5870361328125,417.4986572265625,1745.25732421875,-1363.015869140625,392.6597900390625,1730.2757568359375,-1507.9031982421875,504.2359924316406,1763.0870361328125,-1594.6790771484375,543.406005859375,1775.63818359375,-1409.309814453125,521.3930053710938,1749.498291015625,-1499.749755859375,598.5016479492188,1770.3651123046875,-1412.6181640625,669.5552368164062,1757.64990234375,-1594.413818359375,655.8529663085938,1784.077392578125,-1509.364013671875,692.7000732421875,1770.68310546875,-1594.1484375,768.2998657226562,1775.564453125,-1469.2255859375,777.1948852539062,1755.8006591796875,-1390.421630859375,779.2713623046875,1735.478515625,-1510.7293701171875,894.4447021484375,1764.45068359375,-1409.323974609375,867.6013793945312,1743.0264892578125,-1435.0908203125,943.6760864257812,1754.110595703125,-1342.455810546875,984.2723388671875,1731.29736328125,-1478.3914794921875,1030.0496826171875,1765.798828125,-1593.617919921875,993.1937255859375,1766.8985595703125,-1593.3525390625,1105.640625,1765.5462646484375,-1499.5233154296875,1161.568359375,1765.447509765625,-1593.0872802734375,1218.0875244140625,1761.2626953125,-1399.135498046875,1128.7115478515625,1751.473388671875,-1439.1695556640625,1228.073486328125,1763.7098388671875,-1340.7799072265625,1241.9013671875,1739.24462890625,-1507.859375,1256.4412841796875,1763.59765625,-1432.423095703125,1349.9664306640625,1762.30712890625,-1592.8218994140625,1330.534423828125,1758.5015869140625,-1510.0902099609375,1432.3636474609375,1756.102783203125,-1592.556640625,1442.9814453125,1754.5677490234375,-1440.979736328125,1471.570068359375,1756.9501953125,-1347.3955078125,1463.1416015625,1750.960693359375,-1520.7774658203125,1543.1719970703125,1752.638916015625,-1404.4591064453125,1558.263916015625,1750.614990234375,-1592.0260009765625,1667.875244140625,1751.0401611328125,-1479.341552734375,1668.27734375,1749.760986328125,-1366.6572265625,1668.6795654296875,1748.7506103515625,-1253.9727783203125,1669.0816650390625,1749.0267333984375,-1294.2244873046875,1559.326171875,1747.9345703125,-1178.5262451171875,1560.0986328125,1744.1578369140625,-1234.1209716796875,1465.9415283203125,1741.7073974609375,-1289.902587890625,1360.6898193359375,1739.1865234375,-1184.0987548828125,1380.1884765625,1729.2998046875,-1194.50341796875,1256.717529296875,1710.8822021484375,-1116.6849365234375,1462.662109375,1730.8829345703125,-1082.884765625,1349.576171875,1715.8463134765625,-1041.119873046875,1566.7481689453125,1735.8828125,-978.4835205078125,1444.605712890625,1714.961669921875,-1141.288330078125,1669.4837646484375,1746.990966796875,-915.9195556640625,1670.2879638671875,1735.3050537109375,-916.9568481445312,1546.7247314453125,1722.494140625,-811.1881713867188,1588.4853515625,1721.2724609375,-838.4312133789062,1481.805419921875,1706.591552734375,-873.645263671875,1361.6304931640625,1695.760986328125,-702.2369995117188,1532.0076904296875,1709.5858154296875,-751.5347900390625,1402.1837158203125,1694.391357421875,-690.55078125,1671.09228515625,1725.77587890625,-577.8663940429688,1671.494384765625,1724.3541259765625,-575.9010620117188,1506.6978759765625,1704.4166259765625,-478.69622802734375,1563.6982421875,1711.5946044921875,-651.4581909179688,1434.36279296875,1696.709716796875,-565.4490356445312,1393.3045654296875,1691.8603515625,-663.5376586914062,1329.60693359375,1683.183837890625,-782.0293579101562,1263.8016357421875,1675.5460205078125,-563.4688720703125,1272.9488525390625,1673.82763671875,-456.7222900390625,1349.3681640625,1682.4765625,-667.3738403320312,1209.151123046875,1662.0633544921875,-568.5516357421875,1147.1724853515625,1646.04931640625,-673.7217407226562,1092.936279296875,1640.668701171875,-458.1858825683594,1210.0697021484375,1654.93603515625,-461.67169189453125,1061.7015380859375,1616.4791259765625,-351.2511901855469,1278.968017578125,1664.964111328125,-345.7652893066406,1151.394287109375,1632.5274658203125,-354.51507568359375,1396.835693359375,1684.3709716796875,-420.56964111328125,1427.8182373046875,1689.2220458984375,-232.08206176757812,1342.922607421875,1676.45849609375,-257.739013671875,1221.33056640625,1648.5587158203125,-274.74407958984375,1473.4234619140625,1694.9976806640625,-156.76394653320312,1454.8651123046875,1691.5208740234375,-388.90826416015625,1501.4337158203125,1697.6378173828125,-310.4491271972656,1575.228759765625,1711.74560546875,-481.2547302246094,1459.2696533203125,1696.0814208984375,-398.6641540527344,1593.2861328125,1715.1688232421875,-465.1819763183594,1671.896484375,1724.3216552734375,-352.49755859375,1672.298583984375,1725.00390625,-239.81317138671875,1672.70068359375,1724.6864013671875,-199.64767456054688,1560.939453125,1710.8104248046875,-127.1287612915039,1673.102783203125,1728.557373046875,-74.02360534667969,1549.95068359375,1712.0184326171875,-55.41718673706055,1448.5963134765625,1691.6475830078125,42.451988220214844,1582.0577392578125,1727.6773681640625,-14.444360733032227,1673.5050048828125,1736.5784912109375,20.561826705932617,1495.565185546875,1704.59814453125,98.71294403076172,1529.09423828125,1717.54736328125,98.60785675048828,1465.499755859375,1706.5567626953125,145.86419677734375,1590.3173828125,1735.0224609375,98.24004364013672,1673.9071044921875,1742.5540771484375,202.4840545654297,1500.081298828125,1719.4649658203125,238.74383544921875,1595.6866455078125,1735.6810302734375,324.9022216796875,1556.25341796875,1729.18408203125,210.9244384765625,1674.3092041015625,1745.0150146484375,323.6088562011719,1674.7113037109375,1744.6502685546875,409.1336669921875,1598.8135986328125,1738.3992919921875,436.2932434082031,1675.113525390625,1752.3504638671875,433.020751953125,1517.9718017578125,1724.625732421875,337.2484436035156,1452.6402587890625,1713.516357421875,507.0063781738281,1583.1048583984375,1743.1248779296875,548.14599609375,1481.7940673828125,1725.7938232421875,548.9776611328125,1675.515625,1766.8397216796875,640.2418212890625,1568.30419921875,1761.3465576171875,774.346435546875,1676.31982421875,1802.11474609375,673.191162109375,1431.71142578125,1731.9595947265625,558.9354858398438,1367.6552734375,1700.38671875,754.6890258789062,1524.523193359375,1767.8087158203125,803.8036499023438,1429.4561767578125,1749.1075439453125,874.3309936523438,1540.7723388671875,1791.1162109375,887.0308837890625,1676.7220458984375,1824.0675048828125,904.1748046875,1430.513671875,1763.69384765625,986.0328369140625,1486.49755859375,1789.906005859375,867.8822631835938,1313.8184814453125,1728.19873046875,987.6865234375,1372.245361328125,1762.250732421875,740.7783813476562,1324.28955078125,1713.59326171875,775.5631713867188,1202.3060302734375,1680.7802734375,642.7742919921875,1321.926025390625,1698.8846435546875,675.7444458007812,1244.2989501953125,1682.9168701171875,561.16015625,1240.607666015625,1672.6651611328125,466.8395690917969,1311.3538818359375,1686.1441650390625,452.57513427734375,1413.23779296875,1705.48046875,397.947265625,1195.092041015625,1655.990478515625,362.66265869140625,1338.055419921875,1694.99658203125,527.527099609375,1111.33251953125,1641.3360595703125,433.6287536621094,1062.7071533203125,1624.6461181640625,656.628173828125,1133.786376953125,1651.12890625,599.9150390625,1039.5357666015625,1625.3114013671875,759.1717529296875,1089.2598876953125,1645.7362060546875,692.8936157226562,1014.2053833007812,1622.70849609375,845.0784912109375,1113.9842529296875,1664.18505859375,878.685546875,1200.853759765625,1696.6168212890625,822.6812744140625,984.9747924804688,1626.2523193359375,908.7816162109375,1066.953369140625,1665.265625,959.660400390625,989.1626586914062,1656.3714599609375,921.6813354492188,1143.46435546875,1689.3289794921875,992.7312622070312,1104.945068359375,1694.9847412109375,980.9950561523438,1232.6092529296875,1726.9124755859375,1100.44482421875,1168.6759033203125,1730.549560546875,1115.727294921875,1324.144775390625,1768.2691650390625,1070.567138671875,1436.6666259765625,1785.8880615234375,1173.812255859375,1455.9268798828125,1799.8978271484375,1089.27587890625,1533.837158203125,1816.15185546875,990.1782836914062,1591.304931640625,1822.6085205078125,1112.399658203125,1677.5262451171875,1848.0748291015625,1206.777587890625,1567.3294677734375,1836.592041015625,1225.0841064453125,1677.9283447265625,1860.945556640625,1289.2509765625,1491.4239501953125,1819.9132080078125,1336.111328125,1598.5657958984375,1855.512451171875,1272.5972900390625,1366.61962890625,1790.7396240234375,1364.8770751953125,1439.6492919921875,1815.73291015625,1225.4029541015625,1227.8662109375,1762.373779296875,1337.678466796875,1263.0643310546875,1780.1815185546875,1205.4862060546875,1091.3134765625,1731.70947265625,1083.4962158203125,1029.83349609375,1693.07275390625,1325.0714111328125,1149.0587158203125,1762.0224609375,1303.0914306640625,1032.00244140625,1739.16259765625,1462.9921875,1215.2435302734375,1796.1171875,1422.84521484375,1060.014404296875,1765.0614013671875,1407.24169921875,1352.3165283203125,1804.249755859375,1538.2750244140625,1354.7364501953125,1838.9735107421875,1473.942138671875,1465.2711181640625,1832.97021484375,1384.5574951171875,1514.632568359375,1836.530517578125,1460.8643798828125,1575.42529296875,1858.2940673828125,1450.452880859375,1678.7325439453125,1872.940673828125,1563.1373291015625,1679.134765625,1879.7625732421875,1577.86328125,1545.433349609375,1861.0465087890625,1684.8681640625,1604.394287109375,1891.37158203125,1590.935546875,1453.15869140625,1858.946044921875,1694.0545654296875,1503.5413818359375,1888.9664306640625,1674.860107421875,1384.6002197265625,1872.724365234375,1627.67041015625,1247.989013671875,1841.1278076171875,1769.092041015625,1293.89501953125,1882.2542724609375,1591.037841796875,1077.2930908203125,1802.5264892578125,1733.0899658203125,1163.846435546875,1848.202392578125,1724.025634765625,1058.19482421875,1827.0078125,1854.5955810546875,1207.6859130859375,1895.9022216796875,1886.6295166015625,1314.7000732421875,1920.423095703125,1811.5858154296875,1116.7152099609375,1860.4495849609375,1914.21142578125,1119.24755859375,1901.429443359375,1936.4412841796875,993.5064086914062,1896.763671875,1991.9100341796875,1240.15576171875,1947.419189453125,2037.76611328125,1104.5799560546875,1942.6055908203125,1977.143798828125,1385.146240234375,1948.1829833984375,1835.5623779296875,1442.2794189453125,1916.30126953125,2120.77587890625,1346.7357177734375,1995.6221923828125,2134.049560546875,1197.5975341796875,1992.0157470703125,2061.005859375,1471.8680419921875,1973.146728515625,1961.7149658203125,1486.57666015625,1947.333251953125,2176.816162109375,1477.331298828125,2008.6722412109375,2249.763916015625,1395.7962646484375,2035.105224609375,2107.851318359375,1570.9298095703125,1980.1353759765625,2232.86279296875,1595.5369873046875,2010.8614501953125,2013.2730712890625,1553.3780517578125,1960.434326171875,2013.8748779296875,1680.7431640625,1958.1566162109375,1919.270263671875,1566.16552734375,1943.3275146484375,1901.1904296875,1680.341064453125,1938.518310546875,1801.916748046875,1575.3560791015625,1923.29150390625,1788.506103515625,1679.93896484375,1914.319580078125,2126.559326171875,1681.145263671875,1984.263916015625,2351.92822265625,1681.9495849609375,2017.3951416015625,2353.880126953125,1568.4974365234375,2031.63427734375,2270.105224609375,1495.0032958984375,2032.7530517578125,2355.832275390625,1455.045166015625,2043.859130859375,2357.7841796875,1341.593017578125,2045.083984375,2359.736083984375,1228.140869140625,2038.095458984375,2239.2890625,1273.924560546875,2033.016357421875,2247.197509765625,1152.6710205078125,2021.9432373046875,2159.43798828125,1076.9442138671875,1982.1307373046875,2259.238037109375,1038.654296875,2003.2801513671875,2080.528564453125,987.1210327148438,1940.725341796875,2184.11962890625,981.3264770507812,1962.397216796875,2012.5849609375,865.7271118164062,1898.233642578125,1853.3411865234375,869.1746826171875,1857.659423828125,2147.275634765625,890.6253662109375,1942.898193359375,2114.929931640625,800.3868408203125,1915.1923828125,2265.780517578125,912.1564331054688,1977.64599609375,2216.031494140625,796.9902954101562,1957.432861328125,2367.5439453125,774.3320922851562,1975.061279296875,2263.030517578125,707.1396484375,1948.735595703125,2363.64013671875,1001.2364501953125,2005.5843505859375,2361.688232421875,1114.6885986328125,2024.1705322265625,2369.49609375,660.8798828125,1953.7049560546875,2148.02490234375,697.6456909179688,1908.320068359375,2239.0947265625,610.71533203125,1930.0081787109375,2126.820556640625,572.2740478515625,1893.5604248046875,2310.571533203125,548.0383911132812,1937.5770263671875,2223.07177734375,486.6325988769531,1916.6539306640625,2373.39990234375,433.97552490234375,1931.6839599609375,2249.91796875,360.6570129394531,1912.175048828125,2375.35205078125,320.5233459472656,1921.0850830078125,2154.04296875,400.02288818359375,1891.3717041015625,2139.26953125,287.660400390625,1881.6533203125,2112.328369140625,473.9327697753906,1884.385498046875,2032.9600830078125,392.50830078125,1861.122314453125,2014.542236328125,518.860595703125,1862.1021728515625,1997.4342041015625,266.09063720703125,1849.136474609375,2074.785400390625,171.21607971191406,1865.112060546875,1914.4837646484375,342.1304931640625,1832.49951171875,1885.7952880859375,457.2303466796875,1832.4022216796875,1869.2579345703125,246.20718383789062,1815.64599609375,1947.49267578125,154.51995849609375,1835.8914794921875,1785.34765625,346.51593017578125,1801.5113525390625,1760.323486328125,233.5647430419922,1789.76123046875,1751.1888427734375,459.3017883300781,1803.0072021484375,1656.574951171875,399.7796325683594,1782.8741455078125,1784.925048828125,567.7439575195312,1820.3406982421875,1643.834716796875,522.2695922851562,1791.0799560546875,1912.731201171875,570.0400390625,1846.8338623046875,1868.564453125,660.9611206054688,1847.82666015625,2007.27490234375,646.5875244140625,1869.2845458984375,2042.9193115234375,753.187255859375,1887.3890380859375,1931.4490966796875,757.0819702148438,1870.5762939453125,1825.38427734375,752.9912719726562,1848.569091796875,1732.5745849609375,807.9786376953125,1827.53759765625,1755.784912109375,684.8237915039062,1829.4761962890625,1675.9180908203125,624.341552734375,1806.4500732421875,1650.0411376953125,717.2589721679688,1808.2843017578125,1546.9912109375,632.0452880859375,1781.39208984375,1557.1185302734375,748.862060546875,1791.200439453125,1531.748291015625,519.36083984375,1770.6939697265625,1566.4078369140625,445.4859924316406,1772.00390625,1439.2470703125,548.0740966796875,1755.2884521484375,1423.4200439453125,644.8561401367188,1760.729248046875,1468.4288330078125,444.3411560058594,1753.509765625,1349.5533447265625,461.28125,1733.90185546875,1534.0421142578125,338.4849853515625,1758.4151611328125,1393.7882080078125,349.1456604003906,1732.7750244140625,1439.022705078125,239.66082763671875,1731.5035400390625,1333.795654296875,256.955322265625,1712.37255859375,1556.03857421875,203.57717895507812,1752.7691650390625,1463.223388671875,135.39939880371094,1729.6650390625,1661.0645751953125,281.22735595703125,1774.375244140625,1676.7388916015625,159.76283264160156,1771.7698974609375,1810.853759765625,130.56777954101562,1799.1357421875,1710.19140625,42.8034782409668,1779.613525390625,1809.9217529296875,23.292646408081055,1806.6796875,1565.17724609375,61.08758544921875,1747.3717041015625,1641.3111572265625,-62.947383880615234,1773.55908203125,1510.91455078125,-76.9419937133789,1745.6339111328125,1760.7333984375,-59.74674606323242,1804.061767578125,1718.1236572265625,-188.91282653808594,1816.662353515625,1587.2564697265625,-160.09689331054688,1779.321533203125,1824.2978515625,-128.8174591064453,1831.671630859375,1861.2762451171875,-218.62423706054688,1855.6778564453125,1865.029541015625,-47.688716888427734,1831.2230224609375,1919.737548828125,-131.257080078125,1854.27880859375,1905.2164306640625,47.630313873291016,1831.925048828125,1974.1976318359375,-40.78607177734375,1857.740966796875,2025.3450927734375,62.13774108886719,1861.0518798828125,2097.420166015625,-38.79886245727539,1882.637939453125,2147.22265625,76.43135833740234,1885.5850830078125,2180.573974609375,178.16397094726562,1889.2294921875,2223.149658203125,-25.8923282623291,1905.474853515625,2172.549560546875,-165.45144653320312,1906.4249267578125,2271.528076171875,109.48973083496094,1908.9261474609375,2381.2080078125,-19.833215713500977,1918.73876953125,2260.944580078125,243.30255126953125,1907.6964111328125,2377.303955078125,207.0711669921875,1917.574462890625,2284.379150390625,-113.90245056152344,1917.6907958984375,2383.159912109375,-133.285400390625,1923.9892578125,2285.04248046875,-207.53323364257812,1922.899658203125,2219.67333984375,-262.915771484375,1918.33251953125,2150.114501953125,-275.5901794433594,1909.674072265625,2284.5986328125,-310.25421142578125,1924.8431396484375,2195.1220703125,-344.1690368652344,1919.67236328125,2385.11181640625,-246.73757934570312,1926.2005615234375,2387.063720703125,-360.18975830078125,1924.872314453125,2389.015625,-473.6419677734375,1921.4871826171875,2258.524658203125,-427.7762451171875,1922.515869140625,2273.182373046875,-548.0547485351562,1920.288818359375,2153.940673828125,-420.9827880859375,1919.5574951171875,2163.40869140625,-515.7293090820312,1925.2578125,2094.96337890625,-348.9832458496094,1906.6436767578125,2055.899658203125,-456.50830078125,1911.994384765625,1949.2952880859375,-338.0953063964844,1887.171630859375,2047.433349609375,-615.1253051757812,1928.4063720703125,1924.718994140625,-492.4966125488281,1897.80810546875,2189.139892578125,-614.18115234375,1931.3829345703125,2175.98193359375,-732.3543701171875,1934.340576171875,2281.60546875,-659.3626098632812,1923.399658203125,2390.967529296875,-587.0941162109375,1921.337646484375,2297.103271484375,-772.0360107421875,1932.5467529296875,2237.26953125,-862.0958251953125,1934.9525146484375,2392.919677734375,-700.5463256835938,1926.18798828125,2323.067626953125,-865.99462890625,1933.212158203125,2394.87158203125,-813.99853515625,1930.8175048828125,2305.80908203125,-959.1783447265625,1929.9749755859375,2191.258056640625,-993.6737670898438,1926.607177734375,2396.823486328125,-927.45068359375,1930.0628662109375,2398.775390625,-1040.90283203125,1924.1826171875,2302.6376953125,-1076.0130615234375,1919.403076171875,2400.7275390625,-1154.3551025390625,1916.5484619140625,2212.525634765625,-1141.213623046875,1914.0609130859375,2090.17431640625,-1082.066650390625,1918.0860595703125,2314.45458984375,-1175.62841796875,1913.6024169921875,2263.6962890625,-1258.1358642578125,1912.882080078125,2099.612060546875,-1172.7017822265625,1910.0216064453125,2402.679443359375,-1267.8072509765625,1911.4781494140625,2295.3291015625,-1386.261474609375,1909.9866943359375,2177.605712890625,-1350.1710205078125,1915.516845703125,2192.232421875,-1446.1044921875,1908.6446533203125,2152.256591796875,-1255.0438232421875,1914.1949462890625,2009.5694580078125,-1138.2418212890625,1907.5687255859375,1969.1981201171875,-1053.613037109375,1908.860107421875,1914.114013671875,-1120.8695068359375,1903.3255615234375,2043.91162109375,-968.0408935546875,1921.661376953125,1912.1285400390625,-950.59619140625,1903.164794921875,2115.7138671875,-860.1886596679688,1934.2418212890625,1984.074951171875,-850.6554565429688,1925.1986083984375,2052.908447265625,-757.5010986328125,1935.521484375,1936.726806640625,-732.00634765625,1923.6080322265625,1872.959716796875,-618.3528442382812,1904.3614501953125,1817.9661865234375,-717.4976196289062,1905.605712890625,1785.8792724609375,-513.2067260742188,1880.733154296875,1723.6629638671875,-638.7860717773438,1884.1256103515625,1835.79443359375,-412.37457275390625,1879.5113525390625,1724.668212890625,-406.072265625,1859.9931640625,1795.6217041015625,-312.09661865234375,1859.7076416015625,1964.6329345703125,-214.84637451171875,1873.245849609375,2061.42529296875,-247.71533203125,1893.20947265625,2032.1644287109375,-139.65652465820312,1876.57080078125,1688.3045654296875,-309.7751159667969,1835.47314453125,1595.517578125,-264.135498046875,1803.398193359375,1610.99658203125,-378.6903076171875,1831.738037109375,1499.6322021484375,-339.7869873046875,1797.7215576171875,1635.1373291015625,-510.6114807128906,1855.0550537109375,1527.2117919921875,-442.760986328125,1823.6273193359375,1584.01904296875,-647.2069091796875,1862.8179931640625,1493.7037353515625,-548.33544921875,1833.8016357421875,1656.22314453125,-700.565185546875,1878.4696044921875,1602.3831787109375,-751.795166015625,1873.3409423828125,1714.2584228515625,-765.9979858398438,1890.4619140625,1626.686767578125,-852.13427734375,1878.0513916015625,1727.22216796875,-873.82373046875,1887.1737060546875,1517.773681640625,-818.0614624023438,1860.3497314453125,1529.6719970703125,-929.587158203125,1870.49658203125,1511.9404296875,-727.5237426757812,1855.15283203125,1389.6978759765625,-761.4021606445312,1831.7325439453125,1466.114013671875,-656.4810791015625,1841.543212890625,1352.672119140625,-597.97119140625,1812.4229736328125,1398.908447265625,-437.2274475097656,1794.313232421875,1256.2666015625,-484.31982421875,1769.4085693359375,1269.892822265625,-342.1333923339844,1753.2491455078125,1205.34521484375,-601.0687255859375,1775.6524658203125,1260.8214111328125,-697.1566772460938,1798.4798583984375,1137.250244140625,-511.4718322753906,1743.302490234375,1172.658935546875,-417.7970886230469,1740.8372802734375,1097.1168212890625,-603.6880493164062,1745.977783203125,1021.4201049804688,-534.4234008789062,1720.0572509765625,1130.2708740234375,-708.144287109375,1766.871826171875,992.7365112304688,-659.4491577148438,1730.198486328125,1231.929443359375,-808.8711547851562,1797.2086181640625,1110.439697265625,-807.6906127929688,1774.4053955078125,1026.2498779296875,-759.4384765625,1752.12255859375,943.2666015625,-741.1598510742188,1731.12646484375,851.7659912109375,-696.7603759765625,1707.802490234375,881.3225708007812,-562.0530395507812,1697.656982421875,776.3859252929688,-623.3237915039062,1683.4046630859375,745.8646240234375,-531.7985229492188,1669.1082763671875,729.8922119140625,-690.4482421875,1676.25439453125,672.2891845703125,-617.38623046875,1657.6903076171875,697.3704833984375,-752.183349609375,1664.8524169921875,621.6793212890625,-693.3981323242188,1648.9453125,557.06494140625,-616.8385620117188,1629.24853515625,610.4675903320312,-511.5979309082031,1633.7872314453125,527.9738159179688,-684.4620361328125,1625.8953857421875,423.751708984375,-631.6131591796875,1597.337158203125,486.6697998046875,-753.77587890625,1625.9693603515625,365.0249938964844,-764.78271484375,1601.504638671875,268.29302978515625,-686.5967407226562,1575.54052734375,299.5533142089844,-544.625732421875,1571.7100830078125,182.95651245117188,-573.5125732421875,1561.346923828125,409.26385498046875,-498.01397705078125,1578.8961181640625,323.3856506347656,-435.9721374511719,1551.60302734375,499.90570068359375,-542.2138671875,1605.89453125,503.4350891113281,-446.4783630371094,1591.0208740234375,410.9345703125,-385.5606689453125,1554.1351318359375,498.75640869140625,-351.27001953125,1576.971435546875,300.4162292480469,-312.6522521972656,1518.0316162109375,205.17869567871094,-446.7030029296875,1535.7906494140625,437.71435546875,-277.8377685546875,1540.6048583984375,384.38494873046875,-211.15113830566406,1523.772216796875,552.2374877929688,-271.6133117675781,1574.26708984375,496.05126953125,-167.72772216796875,1542.0079345703125,592.7351684570312,-380.6540222167969,1614.5125732421875,683.9765625,-283.1114196777344,1619.4818115234375,707.9547119140625,-416.5509338378906,1652.48095703125,786.655517578125,-343.6493225097656,1658.136962890625,824.6746215820312,-232.92913818359375,1647.775390625,827.0445556640625,-440.2552185058594,1674.8841552734375,889.3226928710938,-341.8941650390625,1675.7210693359375,949.4003295898438,-440.3209228515625,1697.1953125,1006.0259399414062,-333.6055908203125,1699.1497802734375,941.7160034179688,-255.02005004882812,1675.849365234375,1069.6004638671875,-427.160400390625,1718.755615234375,1129.427734375,-324.0692443847656,1725.5242919921875,1055.78369140625,-208.6792449951172,1695.7425537109375,1201.8824462890625,-213.04490661621094,1726.2938232421875,933.3356323242188,-153.0040740966797,1660.6802978515625,1032.4190673828125,-68.32977294921875,1670.7064208984375,828.361328125,-98.0562973022461,1637.61962890625,715.2744140625,-152.76536560058594,1607.5458984375,922.5941162109375,-50.70039367675781,1652.3133544921875,852.607666015625,25.850854873657227,1643.0262451171875,975.12353515625,34.840110778808594,1654.98046875,736.1585693359375,-36.95909118652344,1616.2666015625,749.0191650390625,87.02015686035156,1625.7213134765625,617.0748901367188,-92.66761016845703,1567.6651611328125,611.8190307617188,-190.16473388671875,1575.754638671875,653.4537963867188,22.66831398010254,1596.935302734375,512.2028198242188,-75.8230209350586,1534.6531982421875,163.58689880371094,-345.83251953125,1524.1898193359375,191.09219360351562,-234.2079620361328,1505.6585693359375,79.49559783935547,-435.05126953125,1538.2095947265625,119.6762924194336,-510.4808349609375,1542.8084716796875,62.960243225097656,-341.9747314453125,1523.360595703125,-19.997316360473633,-439.3621520996094,1530.186767578125,58.58070755004883,-523.792724609375,1543.9674072265625,98.2862319946289,-583.421142578125,1546.7275390625,32.922203063964844,-597.5022583007812,1540.7713623046875,57.02334976196289,-642.2880859375,1542.6845703125,144.55975341796875,-669.8187866210938,1553.6514892578125,193.0252685546875,-761.0648193359375,1574.81884765625,113.6123275756836,-758.995849609375,1565.84521484375,931.3521118164062,122.08441162109375,1647.0128173828125,1041.2611083984375,131.38406372070312,1659.5120849609375,1079.1510009765625,35.9358024597168,1666.1539306640625,986.3023071289062,237.67906188964844,1654.0750732421875,1124.06689453125,233.7738800048828,1673.86962890625,864.4102783203125,252.2430877685547,1645.422119140625,883.80224609375,172.44708251953125,1644.0489501953125,935.3015747070312,362.8125305175781,1655.792236328125,1084.11767578125,370.00567626953125,1670.496826171875,789.8192749023438,331.2890625,1643.46826171875,755.342041015625,227.2905731201172,1637.01171875,679.1876220703125,293.25750732421875,1627.3861083984375,812.6500244140625,184.9926300048828,1641.7333984375,744.4094848632812,147.36830139160156,1634.489013671875,621.7067260742188,82.0364761352539,1612.945068359375,625.2766723632812,174.4949493408203,1616.5848388671875,568.6723022460938,83.03350830078125,1597.5762939453125,498.8724670410156,134.49313354492188,1582.33935546875,501.39593505859375,27.160602569580078,1568.947265625,507.1268615722656,-68.4214859008789,1553.089599609375,391.06500244140625,-8.907946586608887,1544.819091796875,411.18475341796875,87.57412719726562,1557.19580078125,288.2949523925781,84.82996368408203,1530.4976806640625,382.9039611816406,221.5760498046875,1551.0157470703125,512.9264526367188,228.2262725830078,1584.497314453125,485.0601501464844,300.6591491699219,1576.9027099609375,586.0831909179688,298.96307373046875,1607.73291015625,639.7564697265625,338.6519775390625,1623.5809326171875,681.1511840820312,390.5338439941406,1634.4588623046875,1030.2017822265625,452.6648254394531,1673.125244140625,1130.3153076171875,495.8545837402344,1692.3876953125,1169.37451171875,429.3913879394531,1692.90234375,1239.714599609375,350.2657470703125,1702.2279052734375,1235.8699951171875,486.3388671875,1713.6976318359375,1218.2850341796875,574.1286010742188,1714.7939453125,1327.684814453125,578.166015625,1738.6004638671875,1354.9090576171875,664.47802734375,1750.0621337890625,1278.673583984375,668.4463500976562,1734.449462890625,1482.2763671875,710.1138916015625,1776.3065185546875,1476.5137939453125,792.4610595703125,1780.2125244140625,1545.7376708984375,843.2933959960938,1798.62060546875,1632.2313232421875,816.7269287109375,1809.036376953125,1730.824462890625,960.3817749023438,1841.7132568359375,1836.869140625,960.0811157226562,1859.8890380859375,1811.852294921875,1021.0869140625,1857.1309814453125,1659.67431640625,999.9602661132812,1804.8946533203125,1729.070068359375,969.4833984375,1819.305908203125,1578.549560546875,947.7852172851562,1779.0572509765625,1488.3883056640625,974.0581665039062,1763.1036376953125,1471.9454345703125,885.4599609375,1746.4327392578125,1364.1683349609375,924.3819580078125,1729.541015625,1543.2940673828125,851.9551391601562,1756.3646240234375,1474.027099609375,802.1508178710938,1729.787841796875,1381.995361328125,815.6062622070312,1714.0452880859375,1266.93017578125,799.3385620117188,1685.1873779296875,1200.1890869140625,935.3339233398438,1699.0220947265625,1320.212646484375,709.19970703125,1685.0718994140625,1196.5692138671875,725.5680541992188,1651.04638671875,1135.438720703125,790.9566040039062,1648.813232421875,1114.9449462890625,691.58935546875,1615.4085693359375,990.2200927734375,738.6798706054688,1594.94580078125,1274.0504150390625,685.5116577148438,1666.1309814453125,884.1876220703125,624.3756103515625,1564.134033203125,829.8632202148438,733.46337890625,1579.30419921875,802.4112548828125,646.1644287109375,1561.222412109375,906.2108154296875,862.3958740234375,1616.1263427734375,796.6064453125,850.5383911132812,1596.4842529296875,1044.7515869140625,888.6621704101562,1651.11328125,708.577880859375,898.5020751953125,1599.62451171875,716.4255981445312,776.4694213867188,1579.1767578125,606.376220703125,942.035888671875,1604.0938720703125,613.1021118164062,823.5435791015625,1582.964599609375,506.55926513671875,878.8934326171875,1585.8370361328125,623.020263671875,698.6807250976562,1557.986328125,727.724853515625,661.418701171875,1557.7061767578125,514.8165893554688,747.831787109375,1559.052978515625,538.2106323242188,638.8897094726562,1535.84765625,381.9205627441406,805.4544677734375,1565.3226318359375,424.7378845214844,644.593505859375,1518.9027099609375,406.7851257324219,954.1931762695312,1598.3468017578125,513.8856811523438,998.0430908203125,1611.909423828125,281.95379638671875,923.5032958984375,1593.5306396484375,320.9341125488281,1054.918701171875,1603.0526123046875,237.26271057128906,800.0398559570312,1550.9493408203125,173.43165588378906,897.0386962890625,1575.418701171875,299.70513916015625,684.9700927734375,1517.77880859375,173.50369262695312,678.2201538085938,1498.9188232421875,330.6306457519531,583.4470825195312,1490.4801025390625,408.6093444824219,511.4163818359375,1490.8516845703125,248.67538452148438,596.6029663085938,1483.1063232421875,272.72528076171875,486.98193359375,1470.040771484375,163.8857879638672,549.7454223632812,1468.371337890625,522.0186767578125,487.0941467285156,1510.8564453125,350.1475524902344,395.0762023925781,1473.7059326171875,175.44850158691406,439.74078369140625,1459.535888671875,173.02049255371094,382.0752258300781,1457.9893798828125,153.27748107910156,385.31988525390625,1455.6370849609375,133.53445434570312,388.5646057128906,1453.28466796875,94.23365020751953,474.34759521484375,1453.4176025390625,-17.531047821044922,495.99041748046875,1454.848388671875,56.70061111450195,566.68603515625,1468.006103515625,-55.776729583740234,596.7901000976562,1469.942138671875,-104.65098571777344,535.3616943359375,1460.7305908203125,36.37016677856445,686.7884521484375,1489.7164306640625,108.81489562988281,619.4923706054688,1480.0264892578125,-124.26912689208984,719.5869140625,1491.088134765625,-20.842037200927734,827.4080200195312,1512.4256591796875,-168.3056640625,598.0869750976562,1469.419921875,-265.6561279296875,677.8877563476562,1475.2745361328125,-237.4600372314453,788.363525390625,1499.374267578125,-245.75637817382812,592.9415893554688,1469.79638671875,-205.48681640625,528.0049438476562,1471.25732421875,-166.13748168945312,505.62030029296875,1469.605224609375,-390.2760314941406,593.1937866210938,1474.054443359375,-485.7997131347656,672.1162719726562,1502.67041015625,-393.387451171875,666.9981689453125,1484.109375,-461.20013427734375,731.490234375,1515.3519287109375,-363.6477355957031,785.218017578125,1507.5994873046875,-278.9874572753906,895.497802734375,1533.2286376953125,-410.2117004394531,921.5916748046875,1565.4222412109375,-152.50881958007812,863.4849853515625,1513.7486572265625,-190.15969848632812,989.3390502929688,1562.2994384765625,-62.803466796875,957.3016357421875,1546.69873046875,65.81678771972656,927.9403076171875,1564.806884765625,23.19292449951172,1051.1505126953125,1593.7685546875,111.27400207519531,804.1424560546875,1537.2381591796875,170.2654571533203,1026.0921630859375,1606.5736083984375,234.27764892578125,1166.8948974609375,1639.6727294921875,92.4876937866211,1158.6448974609375,1638.908203125,277.2640686035156,1274.1173095703125,1676.885009765625,147.5345001220703,1291.1048583984375,1682.5382080078125,245.00338745117188,1377.9320068359375,1703.3563232421875,145.2813262939453,1405.8001708984375,1702.01513671875,36.73178482055664,1389.4307861328125,1689.1064453125,-90.54354095458984,1352.7554931640625,1675.256591796875,4.547569751739502,1261.1419677734375,1661.84326171875,-132.830322265625,1218.539794921875,1644.834228515625,-224.90760803222656,1114.1080322265625,1614.0047607421875,-102.08504486083984,1081.01708984375,1596.81103515625,-23.24635124206543,1154.26904296875,1628.470947265625,-318.8103942871094,1022.4553833007812,1589.6328125,-542.7844848632812,940.7330932617188,1593.195068359375,-494.68316650390625,822.36279296875,1550.9794921875,-585.8034057617188,1040.366455078125,1622.2344970703125,-681.5874633789062,961.4655151367188,1617.42919921875,-622.4799194335938,836.7818603515625,1581.0406494140625,-731.2344360351562,849.9147338867188,1600.9451904296875,-567.9498901367188,725.571044921875,1542.3590087890625,-718.1572875976562,723.436279296875,1572.78662109375,-630.0118408203125,676.4459228515625,1544.8514404296875,-661.9361572265625,618.5267333984375,1540.833984375,-824.6906127929688,692.5379638671875,1584.587890625,-836.62646484375,748.82470703125,1594.8543701171875,-783.9392700195312,618.0880737304688,1567.5572509765625,-866.9151611328125,642.00244140625,1578.2706298828125,-918.3204345703125,714.2318115234375,1597.59375,-916.6701049804688,814.3457641601562,1621.196044921875,-806.0737915039062,809.9230346679688,1602.2198486328125,-1048.390380859375,760.6215209960938,1626.016357421875,-1021.3247680664062,860.6912231445312,1645.6727294921875,-1001.1325073242188,674.4595947265625,1607.3143310546875,-1062.2725830078125,578.3319091796875,1627.8331298828125,-1129.4942626953125,679.6046752929688,1624.9642333984375,-1194.48583984375,783.9302368164062,1641.59033203125,-1034.3914794921875,457.4007263183594,1621.1356201171875,-957.4927978515625,523.4700317382812,1610.945556640625,-946.5059814453125,441.12896728515625,1607.183349609375,-962.65478515625,596.3767700195312,1607.0665283203125,-871.4182739257812,574.0106811523438,1590.55859375,-714.1796875,576.4457397460938,1580.1448974609375,-782.9676513671875,610.7516479492188,1581.462646484375,-860.2037353515625,493.721435546875,1596.175048828125,-1046.5140380859375,338.5660095214844,1599.368896484375,-1089.6651611328125,406.0306091308594,1609.78564453125,-756.3671264648438,494.49774169921875,1588.463623046875,-724.2853393554688,531.8909301757812,1583.00537109375,-722.0752563476562,611.753662109375,1579.60791015625,-689.3427124023438,569.3007202148438,1580.082275390625,-649.7760009765625,607.686767578125,1578.3359375,-1240.58544921875,685.8869018554688,1641.340576171875,-1320.0435791015625,739.4638671875,1706.281005859375,-1310.314453125,848.04296875,1706.564697265625,-1207.446044921875,910.755859375,1679.1324462890625,-1208.1455078125,1022.1983032226562,1689.063232421875,-1110.6002197265625,853.7767333984375,1651.6072998046875,-1074.1767578125,976.2119140625,1661.959228515625,-1137.4033203125,1116.32666015625,1683.126220703125,-1272.767578125,1124.8944091796875,1712.50732421875,-1026.4049072265625,1099.597412109375,1672.53564453125,-1041.5042724609375,1220.1156005859375,1693.94775390625,-924.807861328125,1037.5723876953125,1661.345703125,-952.9752197265625,920.5948486328125,1648.23828125,-951.9685668945312,1149.6685791015625,1674.227294921875,-851.9502563476562,1149.237548828125,1664.519775390625,-913.4815063476562,1244.60693359375,1683.2012939453125,-978.2638549804688,1324.914794921875,1701.36328125,-752.2855224609375,1152.6763916015625,1656.657470703125,-785.6898193359375,1051.6844482421875,1646.1328125,-828.4810791015625,919.9667358398438,1629.98876953125,-1334.1016845703125,582.1338500976562,1744.010009765625,-1301.7142333984375,476.12420654296875,1730.171142578125,-1234.4354248046875,351.6396789550781,1712.237060546875,-1335.415771484375,273.4593811035156,1714.650634765625,-1139.087646484375,247.00160217285156,1684.5059814453125,-1082.836669921875,289.1269226074219,1674.6070556640625,-1041.0052490234375,230.81515502929688,1661.197998046875,-1075.6005859375,157.27745056152344,1656.57080078125,-1177.1856689453125,133.53292846679688,1666.6116943359375,-1085.0184326171875,78.21117401123047,1639.5849609375,-1237.5765380859375,235.1057586669922,1698.58740234375,-1308.0093994140625,158.70265197753906,1691.3621826171875,-1274.6370849609375,43.5024528503418,1664.60791015625,-1147.0867919921875,-11.254015922546387,1636.80712890625,-1260.0997314453125,-59.74320983886719,1642.3656005859375,-1032.9722900390625,6.532230377197266,1627.8685302734375,-1020.6532592773438,91.600341796875,1635.5289306640625,-1042.0587158203125,-141.2769317626953,1621.6044921875,-1195.5950927734375,-149.65773010253906,1609.2291259765625,-944.05615234375,-28.36497688293457,1620.1468505859375,-996.9793701171875,159.41004943847656,1648.9158935546875,-926.3023071289062,-219.71884155273438,1609.44140625,-994.5247192382812,-300.6304931640625,1606.4757080078125,-1132.452880859375,-286.79425048828125,1598.0526123046875,-933.4022216796875,-366.82244873046875,1589.47119140625,-980.8336791992188,-398.9873962402344,1590.748779296875,-1052.8021240234375,-374.3762512207031,1594.7923583984375,-905.1055908203125,-465.416748046875,1574.180908203125,-826.0992431640625,-409.27606201171875,1557.452880859375,-794.8238525390625,-483.12945556640625,1551.3544921875,-884.0592041015625,-354.92889404296875,1565.6982421875,-811.88671875,-308.5033874511719,1556.9649658203125,-740.0784912109375,-398.8519287109375,1539.2877197265625,-857.3439331054688,-198.36138916015625,1570.0496826171875,-772.3419189453125,-193.9939727783203,1559.5235595703125,-710.7966918945312,-292.1055603027344,1539.7530517578125,-837.5505981445312,-76.6823501586914,1581.131591796875,-718.9712524414062,-84.1878662109375,1568.554931640625,-931.5215454101562,-23.90418815612793,1591.7532958984375,-870.5451049804688,48.29892349243164,1596.564453125,-777.623291015625,39.54595184326172,1588.9466552734375,-855.1619262695312,183.9422607421875,1609.2481689453125,-959.5548706054688,116.14466094970703,1600.9610595703125,-972.8385009765625,167.5611572265625,1604.167236328125,-958.4074096679688,260.32958984375,1616.998046875,-891.968994140625,294.83477783203125,1625.6964111328125,-904.1732177734375,365.9677734375,1633.87060546875,-816.1815795898438,342.337890625,1629.2847900390625,-826.4853515625,403.839599609375,1630.740234375,-823.5392456054688,278.6675720214844,1621.0850830078125,-718.1551513671875,281.3988037109375,1618.492919921875,-716.0188598632812,141.67343139648438,1599.036865234375,-592.9332275390625,175.50555419921875,1592.612060546875,-638.1155395507812,32.60794448852539,1579.0142822265625,-506.2996826171875,79.47998046875,1574.0382080078125,-592.829345703125,-100.8729019165039,1559.812255859375,-663.0150146484375,-195.05780029296875,1550.298828125,-556.3132934570312,-207.7420654296875,1544.9541015625,-612.086669921875,-281.4853210449219,1537.0657958984375,-511.75054931640625,-296.14703369140625,1537.603271484375,-443.3627624511719,-221.6983184814453,1544.2169189453125,-648.80615234375,-356.7981262207031,1528.00439453125,-648.9196166992188,-438.4137878417969,1528.975830078125,-964.3088989257812,-723.378173828125,1606.890869140625,-1086.9722900390625,-905.0993041992188,1638.4781494140625,-1064.1142578125,-1018.3388061523438,1675.2064208984375,-1090.032958984375,-1135.8203125,1691.173095703125,-997.2569580078125,-1069.5089111328125,1689.3719482421875,-1006.1673583984375,-1191.7916259765625,1680.1376953125,-903.4055786132812,-1183.850341796875,1669.7445068359375,-853.581298828125,-1120.743408203125,1650.0828857421875,-851.581787109375,-1010.1085205078125,1611.661376953125,-818.0873413085938,-887.417724609375,1565.0054931640625,-898.1923828125,-910.7590942382812,1571.70849609375,-726.0614624023438,-845.20947265625,1550.126708984375,-621.4612426757812,-856.9697265625,1558.43505859375,-796.009765625,-767.689453125,1526.062255859375,-892.374267578125,-815.125732421875,1551.002685546875,-674.9385986328125,-747.2540893554688,1526.397216796875,-736.8086547851562,-665.6137084960938,1503.9556884765625,-593.4800415039062,-613.9472045898438,1509.2225341796875,-820.978759765625,-691.8088989257812,1517.998779296875,-867.381591796875,-741.7618408203125,1536.276123046875,-946.2228393554688,-733.8027954101562,1548.520263671875,-978.490234375,-1080.3846435546875,1640.2056884765625,-740.131591796875,-551.975830078125,1495.28662109375,-586.1336669921875,-508.95367431640625,1502.9735107421875,-544.8037719726562,-451.7535095214844,1509.0989990234375,-638.7003784179688,-444.2909851074219,1498.9857177734375,-451.3749694824219,-328.1407470703125,1515.135009765625,-446.7301025390625,-435.8966064453125,1514.7900390625,-387.2080993652344,-301.2850341796875,1518.1300048828125,-396.6601257324219,-381.9673767089844,1517.6953125,-354.095703125,-451.56805419921875,1514.055419921875,-315.93701171875,-554.9512329101562,1511.102783203125,-271.2669982910156,-465.12542724609375,1505.296875,-253.5435791015625,-506.2628173828125,1500.163330078125,-240.67625427246094,-651.2363891601562,1522.7921142578125,-345.76593017578125,-677.9692993164062,1532.229248046875,-266.0585021972656,-741.4947509765625,1554.3746337890625,-431.6030578613281,-598.8778076171875,1520.6505126953125,-402.4438171386719,-513.5777587890625,1518.028564453125,-466.7992248535156,-716.4829711914062,1536.20947265625,-365.1519775390625,-814.158203125,1556.050048828125,-151.64227294921875,-677.7754516601562,1533.041015625,-570.5189208984375,-754.74462890625,1538.421142578125,-494.5353088378906,-522.452392578125,1513.2242431640625,-446.4350280761719,-235.1779022216797,1514.417236328125,-499.13189697265625,233.5419464111328,1578.422607421875,-578.967041015625,293.2090759277344,1598.1973876953125,-397.6400146484375,259.5690002441406,1567.6192626953125,-470.54791259765625,316.33416748046875,1575.9776611328125,-644.57763671875,369.1950378417969,1610.013916015625,-554.6715087890625,382.6068420410156,1594.630615234375,-713.1604614257812,514.4905395507812,1613.2974853515625,-694.0491943359375,535.5648193359375,1611.23876953125,-731.8084106445312,413.0120544433594,1620.70751953125,-745.6052856445312,477.87042236328125,1619.2059326171875,-1051.5400390625,325.1393737792969,1613.914306640625,-1319.3206787109375,-143.5382080078125,1630.9561767578125,628.1444702148438,556.4418334960938,1537.3055419921875,503.1134338378906,562.9192504882812,1515.3895263671875,774.2492065429688,573.7269897460938,1551.4071044921875,870.2583618164062,522.6995239257812,1567.8731689453125,1136.250244140625,598.1730346679688,1703.0660400390625,1242.394775390625,193.68202209472656,1691.9033203125,1355.3123779296875,150.46334838867188,1711.175048828125,1253.0283203125,56.24064254760742,1691.8349609375,1402.5924072265625,18.959339141845703,1716.70849609375,1399.2164306640625,-112.49454498291016,1731.589599609375,1275.1815185546875,-84.8887710571289,1708.72021484375,1473.9556884765625,-209.87208557128906,1765.395263671875,1335.53125,-211.4879913330078,1744.0418701171875,1395.2083740234375,-307.8547668457031,1769.939453125,1145.9364013671875,-105.5584716796875,1696.1898193359375,1190.4554443359375,-26.79063606262207,1687.6358642578125,1120.9638671875,-27.533735275268555,1678.0133056640625,1158.372314453125,30.015377044677734,1677.3033447265625,1149.630615234375,113.67135620117188,1675.013671875,557.6566772460938,371.5513610839844,1592.9525146484375,399.6114501953125,344.38372802734375,1557.7716064453125,362.5110778808594,342.5932312011719,1544.397216796875,265.0409240722656,290.1505126953125,1523.5968017578125,250.75048828125,204.69839477539062,1523.33984375,159.14468383789062,345.8072204589844,1514.8271484375,170.71829223632812,185.74362182617188,1515.705322265625,225.17181396484375,143.1888885498047,1519.708251953125,277.392822265625,-70.5196762084961,1523.15283203125,208.43724060058594,-193.93771362304688,1520.5242919921875,244.4347686767578,-188.229248046875,1516.227783203125,188.39540100097656,-227.48243713378906,1518.12548828125,565.7786865234375,-867.6522216796875,1683.00927734375,628.0947265625,-810.590576171875,1685.768798828125,706.9884643554688,-868.8411865234375,1712.7308349609375,692.65087890625,-767.8408203125,1694.9569091796875,820.7224731445312,-853.9373779296875,1730.8636474609375,824.6272583007812,-936.99609375,1747.743408203125,734.8305053710938,-992.338134765625,1741.3446044921875,926.3588256835938,-886.1575317382812,1755.652099609375,931.8645629882812,-991.191650390625,1779.77783203125,881.3287963867188,-804.40625,1739.574951171875,1052.6708984375,-944.7036743164062,1795.7860107421875,1017.3305053710938,-1041.952880859375,1809.336181640625,941.28125,-1088.106201171875,1804.066650390625,1118.947509765625,-1042.9173583984375,1830.3887939453125,1037.599365234375,-1157.958984375,1834.495849609375,1160.1549072265625,-971.37890625,1826.52978515625,1250.5673828125,-1029.4727783203125,1856.232666015625,1367.8681640625,-1063.4407958984375,1886.08203125,1317.2332763671875,-1140.5855712890625,1887.3416748046875,1183.862060546875,-1140.526611328125,1860.87109375,1455.5404052734375,-1129.9586181640625,1902.3193359375,1395.9622802734375,-1264.1357421875,1901.896240234375,1473.4404296875,-1030.833251953125,1900.897216796875,1570.3193359375,-1136.6119384765625,1907.450927734375,1538.2877197265625,-1225.3404541015625,1907.4886474609375,1721.318603515625,-1172.539306640625,1916.4730224609375,1649.672119140625,-1199.381103515625,1911.7059326171875,1768.443115234375,-1249.8060302734375,1911.890869140625,1880.143798828125,-1262.0267333984375,1910.304443359375,1848.4481201171875,-1328.2694091796875,1903.6129150390625,1951.77783203125,-1204.063232421875,1916.684814453125,1963.984375,-1333.322021484375,1907.7698974609375,1874.7718505859375,-1410.176025390625,1898.309814453125,1972.5936279296875,-1480.4359130859375,1898.1549072265625,1753.06005859375,-1394.0994873046875,1901.16748046875,1834.9193115234375,-1515.6116943359375,1893.951904296875,1639.6068115234375,-1304.1258544921875,1908.5704345703125,1612.4080810546875,-1429.725830078125,1899.101806640625,1516.9534912109375,-1345.89501953125,1901.6031494140625,1408.9088134765625,-1412.5936279296875,1895.1112060546875,1507.7779541015625,-1454.8724365234375,1895.612548828125,1287.1495361328125,-1373.8978271484375,1889.897705078125,1244.6607666015625,-1251.6416015625,1886.4757080078125,1302.2911376953125,-1510.5682373046875,1888.662353515625,1212.9417724609375,-1442.188232421875,1880.1417236328125,1437.6693115234375,-1531.3592529296875,1895.9468994140625,1371.4566650390625,-1608.337158203125,1896.9586181640625,1564.16357421875,-1557.985595703125,1896.8875732421875,1465.9705810546875,-1643.932861328125,1901.1947021484375,1698.6612548828125,-1527.8001708984375,1896.7303466796875,1659.1822509765625,-1630.834228515625,1901.588623046875,1573.8232421875,-1685.8162841796875,1906.676025390625,1774.45556640625,-1637.435791015625,1897.4537353515625,1688.38427734375,-1740.9581298828125,1909.509033203125,1830.999267578125,-1763.6356201171875,1905.6793212890625,1584.9188232421875,-1778.9892578125,1914.2342529296875,1485.3887939453125,-1755.497314453125,1907.7435302734375,1651.7138671875,-1846.3197021484375,1916.7716064453125,1746.8077392578125,-1829.4901123046875,1913.1158447265625,1526.56640625,-1867.5545654296875,1913.6390380859375,1633.7149658203125,-1945.0020751953125,1916.6883544921875,1745.2401123046875,-1945.5047607421875,1915.9990234375,1818.0989990234375,-1863.146728515625,1912.1630859375,1856.765380859375,-1946.00732421875,1913.7763671875,1906.02587890625,-1851.8809814453125,1911.230712890625,1968.29052734375,-1946.510009765625,1913.1651611328125,1953.1011962890625,-1768.7069091796875,1908.9593505859375,1938.8248291015625,-1639.680419921875,1899.0234375,2018.3885498046875,-1846.3236083984375,1912.875,2080.6484375,-1737.0126953125,1910.3985595703125,2133.47900390625,-1851.854248046875,1911.6639404296875,2128.783203125,-1567.9388427734375,1904.992431640625,2195.4736328125,-1685.7030029296875,1908.4132080078125,2209.439208984375,-1784.3055419921875,1909.3902587890625,2257.81884765625,-1619.2403564453125,1907.6849365234375,2296.307373046875,-1713.069091796875,1908.3055419921875,2275.23193359375,-1517.1649169921875,1907.4710693359375,2408.535400390625,-1608.163818359375,1907.8017578125,2086.717529296875,-1415.4703369140625,1908.560302734375,2079.06201171875,-1320.91455078125,1917.8665771484375,2406.58349609375,-1494.711669921875,1908.5301513671875,2410.4873046875,-1721.615966796875,1908.304443359375,2331.162841796875,-1831.98876953125,1909.0113525390625,2231.9267578125,-1869.1416015625,1910.3719482421875,2302.8662109375,-1948.017822265625,1910.231201171875,2191.341064453125,-1947.51513671875,1911.7606201171875,2079.815673828125,-1947.0125732421875,1912.9361572265625,2414.391357421875,-1948.5203857421875,1909.3011474609375,1410.66455078125,-1943.996826171875,1906.0364990234375,1400.9967041015625,-1834.758544921875,1901.7757568359375,1299.139404296875,-1943.494140625,1893.6771240234375,1365.10693359375,-1719.38330078125,1897.107421875,1304.305419921875,-1810.228271484375,1891.9747314453125,1280.529541015625,-1635.2821044921875,1890.3734130859375,1248.65087890625,-1734.824951171875,1887.97509765625,1191.201171875,-1663.0458984375,1885.48681640625,1208.08984375,-1831.42529296875,1885.5284423828125,1080.2952880859375,-1844.202880859375,1878.037353515625,1187.6141357421875,-1942.9915771484375,1883.941162109375,1192.919189453125,-1580.4287109375,1883.019287109375,1169.3564453125,-1500.1829833984375,1872.61767578125,1149.81103515625,-1360.2711181640625,1872.4620361328125,1052.6485595703125,-1368.4654541015625,1853.68798828125,1050.8927001953125,-1286.8521728515625,1848.782958984375,1075.54443359375,-1458.593994140625,1863.30419921875,975.2984008789062,-1330.9351806640625,1834.523193359375,969.5899658203125,-1246.2032470703125,1827.8043212890625,891.6985473632812,-1268.871337890625,1809.1024169921875,909.6314697265625,-1174.877685546875,1808.36669921875,831.3392333984375,-1196.6639404296875,1788.2940673828125,822.1983032226562,-1081.8636474609375,1773.6849365234375,688.8573608398438,-1146.5062255859375,1760.9390869140625,633.0185546875,-985.8975219726562,1723.1717529296875,1132.55419921875,-1240.0948486328125,1862.6710205078125,1075.2169189453125,-1459.035888671875,1862.1641845703125,884.1940307617188,-794.9011840820312,1720.052490234375,1342.8994140625,-888.15869140625,1831.6917724609375,1429.4007568359375,-943.8722534179688,1854.4676513671875,1442.3304443359375,-871.33544921875,1850.374267578125,1476.7176513671875,-1020.0025634765625,1865.366943359375,1659.4080810546875,-974.6422119140625,1888.65576171875,1752.3546142578125,-1046.9805908203125,1899.546630859375,1790.692138671875,-951.1143188476562,1892.456298828125,1856.3470458984375,-1041.1685791015625,1900.86865234375,1840.6434326171875,-833.6428833007812,1902.4385986328125,1954.580322265625,-1194.7137451171875,1898.1326904296875,-70.14085388183594,-1158.276611328125,1634.468017578125,-85.57124328613281,-738.79541015625,1565.2989501953125,-37.6352653503418,-667.406982421875,1560.3070068359375,-50.20565414428711,-575.6459350585938,1562.7506103515625,-151.07118225097656,-662.1425170898438,1554.4041748046875,23.020000457763672,-601.6222534179688,1563.322265625,-86.08963012695312,-515.6851806640625,1561.315673828125,-135.99774169921875,-619.3041381835938,1558.8282470703125,-37.0952033996582,-435.3292236328125,1562.30419921875,124.25720977783203,-1151.3414306640625,1661.6630859375,111.48860168457031,-1240.6861572265625,1669.0906982421875,1664.1285400390625,-1098.5460205078125,1896.187744140625,553.3590698242188,-752.1474609375,1634.1326904296875,760.2996826171875,-764.0797119140625,1685.397216796875,952.2269287109375,-817.1715698242188,1737.7698974609375,1020.1917114257812,-839.9703369140625,1756.048583984375,1159.095947265625,-890.6461791992188,1785.9586181640625,1229.58056640625,-921.8331298828125,1805.9456787109375,1358.0341796875,-974.6907958984375,1838.8486328125,1538.6622314453125,-1047.1776123046875,1879.29248046875,1803.546630859375,-1145.6038818359375,1901.134765625,2020.6016845703125,-1211.77880859375,1900.7125244140625,547.8299560546875,-770.47802734375,1664.3668212890625,756.5623779296875,-776.4579467773438,1711.5057373046875,1017.8652954101562,-847.7514038085938,1771.7244873046875,1800.4998779296875,-1155.6309814453125,1919.2540283203125,1155.9390869140625,-901.2503051757812,1810.544189453125,1225.860107421875,-934.2589721679688,1835.7591552734375,1354.8948974609375,-985.1373291015625,1872.1812744140625,1535.2926025390625,-1058.2701416015625,1906.58203125,1660.9207763671875,-1109.0546875,1915.0296630859375,1876.4842529296875,-1178.7603759765625,1917.681884765625,2017.509033203125,-1222.0498046875,1919.9583740234375,227.11363220214844,385.50445556640625,1462.5133056640625,463.7422790527344,413.3309326171875,1493.537353515625,732.4949951171875,473.67034912109375,1552.5985107421875,603.4454345703125,437.78411865234375,1527.4185791015625,931.067138671875,544.9548950195312,1577.8978271484375,1043.88818359375,595.5613403320312,1594.2620849609375,1201.3214111328125,656.304931640625,1638.4832763671875,1680.143798828125,946.9046020507812,1797.706787109375,1681.9564208984375,938.6849365234375,1829.4827880859375,620.5101928710938,378.88623046875,1615.6024169921875,820.4375610351562,436.794677734375,1659.1890869140625,945.8442993164062,494.88519287109375,1674.4622802734375,1056.803955078125,548.755859375,1686.6041259765625,1401.40478515625,743.9089965820312,1762.621826171875,726.9661254882812,-1186.201171875,1773.1190185546875,807.0415649414062,-1274.506591796875,1790.008056640625,900.316650390625,-1350.2611083984375,1816.9884033203125,1011.1087646484375,-1421.5704345703125,1847.4290771484375,1123.090087890625,-1477.390869140625,1871.2169189453125,898.6420288085938,-1352.5970458984375,1809.3294677734375,806.18408203125,-1275.6981201171875,1785.956787109375,1010.1167602539062,-1422.9376220703125,1843.9417724609375,386.7252197265625,-118.03913116455078,1531.1392822265625,607.2630004882812,-3.4776649475097656,1590.8026123046875,697.4326782226562,61.41962432861328,1622.5711669921875,817.0530395507812,126.63188934326172,1634.857666015625,288.99169921875,-171.4954833984375,1511.0809326171875,815.9924926757812,128.10385131835938,1637.6417236328125,390.68499755859375,-123.83509063720703,1518.64111328125,19.640649795532227,-1201.8756103515625,1652.4285888671875,202.0741729736328,-1306.13134765625,1693.42626953125,19.154891967773438,-1202.6871337890625,1654.2342529296875,156.62709045410156,-1273.9063720703125,1683.5382080078125,245.05271911621094,-1341.637451171875,1706.904541015625,188.55587768554688,-155.2917938232422,1517.7525634765625,186.28411865234375,6.049568176269531,1518.748779296875,180.0474395751953,96.05165100097656,1517.37548828125,165.01333618164062,302.3099060058594,1511.13427734375,-5.703165054321289,-490.89105224609375,1540.3397216796875,151.46400451660156,-863.2032470703125,1597.927978515625,-15.71973705291748,-494.9981994628906,1564.1265869140625,3.8096749782562256,-548.2788696289062,1564.842529296875,78.36421203613281,-703.7930908203125,1573.323974609375,122.77870178222656,-815.2039184570312,1604.556640625,36.927818298339844,396.2691650390625,1455.18359375,-115.23531341552734,471.3723449707031,1467.609130859375,-72.85267639160156,-489.4453125,1561.837158203125,-168.45513916015625,-709.8692016601562,1549.6533203125,-215.9027862548828,-799.7066650390625,1574.8905029296875,-193.04698181152344,-754.3312377929688,1566.4993896484375,-221.16580200195312,-567.6166381835938,1502.6304931640625,-563.7825927734375,620.85693359375,1509.1763916015625,-452.3883056640625,606.8919067382812,1483.346923828125,-331.5945129394531,578.1951293945312,1470.6243896484375,-417.6072082519531,-274.2604675292969,1516.0347900390625,-336.2702941894531,-368.3428039550781,1515.784912109375,-664.4212646484375,500.1034851074219,1611.3192138671875,-637.533203125,473.1246032714844,1605.8580322265625,-478.9603576660156,-149.23004150390625,1550.4073486328125,-481.4333801269531,140.90464782714844,1573.3175048828125,-510.46282958984375,1.3283945322036743,1569.0533447265625,-1006.3104248046875,-954.0510864257812,1670.5902099609375,-1000.6680908203125,-844.4024047851562,1645.980712890625,-703.7783203125,-490.5202941894531,1537.9827880859375,-818.0615844726562,-600.626708984375,1566.915283203125,-555.810546875,-344.6949462890625,1530.236572265625,-971.460693359375,-974.1849365234375,1594.8111572265625,-968.4677734375,-863.0320434570312,1564.299560546875,-889.9904174804688,-694.4024658203125,1532.87939453125,-799.996337890625,-611.0570068359375,1509.46240234375,-689.0601196289062,-498.9883728027344,1494.669677734375,-547.95947265625,-349.20379638671875,1505.1153564453125,-471.8905944824219,-261.65020751953125,1512.0887451171875,-911.661376953125,651.8690795898438,1591.3055419921875,-987.5226440429688,340.9119873046875,1627.3358154296875,-878.269287109375,403.66021728515625,1599.5904541015625,-999.6437377929688,356.1998291015625,1598.47412109375,-922.873291015625,-119.51046752929688,1582.4974365234375,-898.8385009765625,-284.7765808105469,1568.2618408203125,-961.25146484375,40.850894927978516,1629.839111328125,-906.6114501953125,-287.9103088378906,1590.3294677734375,-1189.7867431640625,584.9187622070312,1632.09814453125,-1145.0531005859375,504.5337219238281,1618.652099609375,-1315.4293212890625,679.5078125,1728.3575439453125,-1260.6517333984375,546.7821655273438,1735.083251953125,-1209.8316650390625,469.09295654296875,1719.3587646484375,-1163.812255859375,402.7102966308594,1702.87841796875,-1114.843017578125,331.905029296875,1686.6591796875,-41.48832702636719,-476.9855041503906,1563.2310791015625,-447.3119201660156,-277.2029724121094,1514.2093505859375,-56.38715362548828,-499.2831115722656,1562.5943603515625,-777.2058715820312,555.4273071289062,1585.8035888671875,-698.4351806640625,489.24212646484375,1614.15869140625,-35.74617385864258,-517.3134155273438,1563.593017578125,-1592.202880859375,1592.91064453125,1752.216064453125,-1592.3797607421875,1517.946044921875,1753.3919677734375,-1593.7947998046875,918.2291259765625,1769.7872314453125,-1593.9716796875,843.2645263671875,1772.6759033203125,-1596.2708740234375,-131.2755126953125,1671.9517822265625,-1596.801513671875,-356.16937255859375,1641.368408203125,-1600.162109375,-1780.4970703125,1733.52685546875,-1600.3389892578125,-1855.461669921875,1728.841796875,-1526.165771484375,-1930.7613525390625,1723.41748046875,-1451.815673828125,-1931.096435546875,1722.6781005859375,2413.090087890625,-1872.8856201171875,1908.9688720703125,2411.788818359375,-1797.2508544921875,1908.6365966796875,2404.63134765625,-1381.259521484375,1910.004150390625,2379.255859375,93.61897277832031,1918.1566162109375,2371.447998046875,547.427734375,1942.6944580078125,2365.592041015625,887.7843017578125,1990.32275390625,2276.80517578125,1681.6815185546875,2006.3514404296875,2201.68212890625,1681.4134521484375,1995.3077392578125,1675.82177734375,1679.536865234375,1897.041015625,1375.3299560546875,1678.4644775390625,1868.9422607421875,1300.20703125,1678.1964111328125,1864.94384765625,999.7152709960938,1677.1241455078125,1836.0711669921875,661.6620483398438,1675.917724609375,1784.477294921875,-803.2351684570312,1670.6900634765625,1730.54052734375,-1028.60400390625,1669.8858642578125,1741.14794921875,-1191.5902099609375,-1932.2691650390625,1732.234619140625,-1117.2401123046875,-1932.604248046875,1736.50927734375,-931.3646850585938,-1933.44189453125,1742.08984375,-708.3142700195312,-1934.4471435546875,1745.34619140625,853.03857421875,-1941.4837646484375,1854.122314453125,1076.0888671875,-1942.489013671875,1875.167236328125,1485.0146484375,-1944.3319091796875,1909.587158203125,1559.36474609375,-1944.6669921875,1913.1378173828125,852.0487060546875,-1314.71826171875,1803.429443359375,953.3123779296875,-1389.3446044921875,1831.0352783203125,90.72166442871094,-1233.67724609375,1668.7244873046875,-5.933073043823242,-521.62939453125,1564.4322509765625,-22.716663360595703,-475.4723205566406,1563.5345458984375,-29.698705673217773,-455.9402160644531,1562.9071044921875,-50.60823440551758,-452.2791442871094,1562.02783203125,-62.9623908996582,-470.2627258300781,1561.842041015625,14.042701721191406,-544.0282592773438,1540.49951171875,85.90097045898438,-700.414794921875,1554.5172119140625,-111.8862075805664,-567.0860595703125,1560.0592041015625,-202.21656799316406,-778.1342163085938,1559.8271484375,-184.60997009277344,-623.6063842773438,1518.231201171875,-304.2873840332031,-417.0751647949219,1510.76611328125,-510.24517822265625,-305.24169921875,1508.2950439453125,-593.88671875,-396.4258728027344,1502.209716796875,-841.5210571289062,-654.7343139648438,1521.3970947265625,-960.1082153320312,-796.8195190429688,1556.48779296875,-890.0360717773438,-662.6734619140625,1586.3367919921875,-762.4300537109375,-544.6920166015625,1551.61083984375,-602.7272338867188,-391.3429870605469,1529.7657470703125,-509.43475341796875,-72.63758850097656,1561.1488037109375,-455.2420959472656,203.24424743652344,1572.9053955078125,-784.6202392578125,438.4774475097656,1624.988525390625,-1011.348876953125,247.03604125976562,1609.412109375,-937.2005615234375,377.3509521484375,1598.94140625,-814.9056396484375,445.5369873046875,1594.2447509765625,-915.2383422851562,-203.2440643310547,1575.0548095703125,-934.9105834960938,-123.93042755126953,1615.0509033203125,-976.6395874023438,101.15396118164062,1639.051025390625,-1289.9971923828125,612.3355712890625,1731.9056396484375,-847.0166015625,632.9563598632812,1586.5494384765625,-934.0478515625,658.4117431640625,1592.18310546875,-723.000732421875,618.7811279296875,1554.3519287109375,-269.4320983886719,559.7792358398438,1471.799072265625,-37.51279830932617,421.5234069824219,1460.6895751953125,288.6011962890625,390.510498046875,1468.135009765625,533.556396484375,425.8398742675781,1509.9818115234375,668.26953125,453.4841613769531,1539.8182373046875,801.4049682617188,497.9723205566406,1560.5616455078125,1122.9781494140625,623.135986328125,1616.084228515625,1397.40869140625,753.5115966796875,1707.1805419921875,1611.3516845703125,902.1820068359375,1777.3529052734375,1612.6329345703125,893.9859008789062,1814.001953125,1339.4383544921875,707.6610107421875,1747.9700927734375,1207.275634765625,633.7695922851562,1718.5819091796875,750.6604614257812,413.9948425292969,1646.728759765625,479.19537353515625,356.58258056640625,1575.0523681640625,263.8200378417969,336.8149108886719,1529.73486328125,190.40838623046875,-74.4564208984375,1518.5401611328125,315.19000244140625,-152.45697021484375,1523.893798828125,557.8799438476562,-37.14152526855469,1571.9825439453125,757.8806762695312,92.91790008544922,1628.51806640625,584.6227416992188,-29.312143325805664,1565.9364013671875,451.5230712890625,-99.94976806640625,1526.721435546875,125.43556213378906,-285.6690673828125,1513.495849609375,21.399734497070312,-389.26953125,1526.7186279296875,1730.1431884765625,-1134.1890869140625,1917.1951904296875,1598.248046875,-1083.2022705078125,1910.7926025390625,1290.3663330078125,-959.7342529296875,1853.9713134765625,1087.864013671875,-871.369140625,1791.1485595703125,949.5701293945312,-826.1666259765625,1755.837890625,619.713623046875,-770.8746948242188,1679.9083251953125,625.2464599609375,-752.5596313476562,1649.701416015625,822.4346313476562,-778.8654174804688,1702.8875732421875,1090.5870361328125,-862.168212890625,1771.05126953125,1293.18359375,-950.33837890625,1822.376953125,1417.6126708984375,-996.5585327148438,1852.115478515625,1601.2607421875,-1073.31005859375,1887.7357177734375,1733.281005859375,-1123.927734375,1898.6431884765625,1879.228515625,-1169.6092529296875,1899.63916015625,2086.74853515625,-1232.348388671875,1907.464111328125],surfaceTriangles=[300,297,296,423,425,426,1408,889,887,818,820,816,14,16,15,940,270,941,113,112,81,13,9,11,275,279,277,478,477,464,429,427,430,1027,1030,1029,562,563,561,82,78,77,101,102,99,887,888,886,1005,1309,1003,11,9,8,502,501,503,1037,1035,1036,287,286,285,12,14,11,233,223,235,241,238,1001,291,290,292,26,25,27,360,872,362,878,877,863,1045,1320,1337,124,1012,1010,298,299,301,62,1277,1224,222,233,226,33,32,1267,899,897,901,24,23,26,808,805,807,527,523,526,1015,1020,1021,358,359,356,817,827,1059,295,289,293,1211,1209,1210,775,776,774,254,255,253,212,237,211,1129,1127,1128,973,969,970,961,244,245,1017,1019,1014,982,979,983,498,501,500,857,859,860,1127,1125,1113,1230,1440,667,301,306,304,283,284,285,659,652,654,229,225,226,156,158,18,690,692,691,53,54,51,747,768,746,1162,1159,1172,278,276,277,172,170,173,1261,775,537,39,22,35,1334,940,1335,869,867,866,607,602,608,95,93,89,964,243,963,1057,251,247,274,275,277,22,39,20,2,1,0,616,610,607,229,232,230,5,10,8,1336,1338,1341,88,90,1280,521,535,519,650,1208,1234,618,617,608,93,92,89,899,900,906,188,189,186,802,804,805,556,552,553,579,576,577,972,974,971,1136,1139,1138,30,28,31,744,745,742,517,514,516,309,292,311,492,1357,490,1010,1012,1014,697,692,699,227,221,224,1339,914,908,421,423,424,650,1207,1206,1091,1093,1238,1005,1003,1004,626,628,629,864,842,825,240,242,234,978,979,977,1065,1068,1066,17,16,12,960,963,962,54,53,55,45,46,47,315,320,318,32,24,26,604,601,605,133,188,132,23,21,6,992,1307,990,431,445,434,1039,1032,1031,101,110,103,1333,1332,939,270,940,939,630,628,591,88,85,84,260,258,259,115,113,114,287,285,288,112,101,83,1333,940,1334,847,854,1301,3,1,2,236,238,234,169,171,170,325,326,327,713,717,715,1225,1278,49,120,1041,122,300,298,301,1257,1077,765,46,43,48,625,624,590,444,458,443,1058,831,1251,719,740,739,1,3,27,276,272,274,86,95,89,618,620,621,3,29,28,237,236,223,1035,1298,1032,236,234,235,862,865,863,879,876,340,110,108,103,995,994,996,411,410,412,967,1311,970,654,656,658,742,747,746,527,487,528,951,947,946,322,323,328,1310,1001,239,635,562,560,22,19,21,294,291,292,1127,1110,1128,1126,1127,1129,1094,1096,1093,139,109,136,65,62,61,950,256,952,650,1234,1209,312,315,314,19,22,20,223,236,235,75,120,118,611,607,608,317,1366,314,830,837,833,214,237,223,884,885,887,725,1429,698,116,75,118,76,74,77,242,232,231,367,365,373,1272,1427,752,1409,850,849,544,551,547,621,620,623,663,662,660,117,116,119,54,57,56,385,387,388,10,11,8,693,688,691,991,978,975,1032,1038,1036,322,320,323,70,71,68,893,890,894,1202,1131,1108,9,7,8,1022,1007,1008,965,241,1312,974,972,975,1043,1013,122,506,510,511,205,203,204,268,269,271,137,131,130,612,606,609,552,551,553,897,899,894,52,62,1224,1,23,6,592,590,593,4,2,0,520,518,513,116,117,114,1012,1016,1014,34,1200,36,498,496,493,124,1009,126,36,37,35,969,973,972,120,75,72,596,597,599,42,45,18,626,625,590,1024,1025,1026,1399,981,982,937,885,883,214,222,220,783,781,782,410,411,409,133,128,129,1031,1032,1033,50,53,51,411,413,388,966,967,970,528,487,781,1,5,0,338,337,335,17,19,20,855,856,881,1012,124,1013,283,285,281,317,318,319,1123,1121,1118,71,1296,73,1431,731,728,870,869,868,709,710,707,1019,1020,1014,46,48,1281,16,17,18,1339,908,915,1326,969,971,1344,1345,281,125,123,126,522,513,509,762,763,764,931,929,932,1076,1063,743,246,250,248,878,874,875,1182,1132,1188,279,282,281,1121,1123,1124,1057,254,251,367,369,366,205,204,206,897,895,898,71,73,72,607,610,609,600,598,596,5,1,6,1258,746,1259,1035,1037,1295,298,294,299,1256,528,781,238,240,234,297,295,296,928,934,313,115,125,127,230,246,248,928,925,927,365,367,366,40,50,44,1266,1189,1133,1011,1015,1315,727,1430,726,1336,1294,1338,109,106,108,269,268,267,824,828,826,1001,1393,241,343,344,875,1044,1038,1039,1260,1259,768,399,818,819,928,931,933,66,1217,1216,478,464,480,1087,1085,1282,263,261,262,538,535,534,273,274,271,973,994,972,63,64,61,285,286,281,10,21,12,1379,1380,1336,135,185,183,264,260,259,39,40,41,258,257,255,1081,762,1080,865,862,823,304,303,301,459,480,464,258,255,259,140,143,141,820,865,823,268,266,267,564,567,565,5,7,0,531,529,528,298,300,296,1316,1021,1020,46,45,43,653,643,654,741,714,1074,557,555,558,650,1209,647,315,312,313,23,24,21,242,240,243,652,1207,649,567,570,569,7,5,8,640,638,641,20,39,41,447,432,787,378,1364,377,1291,1290,66,1249,831,827,266,260,264,67,65,68,1044,1025,1024,596,598,594,695,696,693,25,1,27,44,48,40,525,486,526,295,294,296,567,568,573,265,269,267,705,707,708,495,481,483,602,607,605,347,327,349,82,87,86,915,908,917,717,718,715,396,866,821,1105,1107,1106,74,75,79,931,928,927,142,106,109,111,110,112,51,54,56,593,596,594,1385,1222,1218,1169,1354,613,800,795,793,1340,1054,1305,791,788,792,123,121,124,233,231,226,454,486,484,466,473,465,694,726,728,1115,1116,1114,475,474,466,261,255,262,855,854,856,289,287,288,1159,1174,1172,1367,1368,168,682,1227,680,110,101,112,267,266,264,194,196,182,50,40,53,1418,779,780,451,446,450,603,600,599,1190,1202,1192,274,272,271,10,5,6,333,342,349,10,12,11,1002,1310,239,1133,1189,1132,662,665,664,14,13,11,62,52,61,263,265,264,13,14,15,272,268,271,59,52,56,455,456,460,16,14,12,1089,1090,1237,1411,832,829,657,656,655,19,17,12,294,309,299,21,19,12,273,275,274,52,51,56,1410,1292,838,1289,1378,1341,59,57,60,462,458,457,557,558,560,21,10,6,398,400,393,309,310,308,291,294,293,1421,767,748,1062,1260,769,121,123,119,23,1,25,312,310,313,23,25,26,488,485,484,3,28,27,28,30,27,1404,958,954,44,50,49,719,718,717,804,806,408,30,26,27,433,431,434,481,480,460,326,325,322,606,605,609,7,1371,0,276,274,277,451,455,457,30,32,26,385,383,382,284,283,282,333,339,341,343,873,346,352,351,350,1054,1050,1305,325,324,322,431,429,432,818,399,821,1269,32,30,1190,1191,1193,111,137,108,299,309,308,439,438,437,326,322,328,106,104,103,1031,1030,1028,1096,1097,1099,902,918,901,391,380,393,42,20,41,602,597,622,895,930,898,312,307,308,694,685,688,936,935,932,705,706,707,1069,639,637,610,612,609,351,327,350,589,633,558,24,32,33,979,988,987,711,713,708,825,843,830,69,74,76,261,263,259,798,1254,796,419,416,415,315,318,314,22,24,33,1091,1090,1089,70,65,66,829,827,826,833,835,834,558,633,560,876,344,340,418,416,419,950,949,262,714,1072,1074,673,671,704,391,379,380,604,603,601,1212,621,1211,38,1200,1201,722,716,720,487,527,526,22,33,35,978,974,975,372,375,374,273,269,270,935,936,336,129,125,126,760,757,756,75,74,72,922,926,284,57,59,56,1191,1265,1193,700,716,723,333,329,332,36,38,37,37,39,35,640,628,631,958,945,954,1035,1295,1042,40,39,37,374,371,370,862,861,845,43,42,41,1195,1196,1194,1140,1136,1137,1117,1116,1118,524,525,526,1289,1341,1218,631,632,636,45,42,43,334,335,332,379,389,382,367,372,370,937,895,896,330,329,328,49,50,51,411,405,409,342,347,349,642,644,629,659,654,658,52,49,51,996,973,999,468,470,469,57,54,58,64,65,61,240,238,241,234,242,231,66,65,64,1115,1112,1113,29,1186,1185,418,1363,417,57,58,60,673,675,672,700,723,697,1116,1123,1118,968,969,1326,282,279,280,746,748,744,323,330,328,80,112,83,337,339,333,701,700,699,339,343,341,62,65,67,386,385,388,372,367,373,100,104,105,1254,800,796,668,667,664,1330,912,903,62,67,1215,716,700,703,207,206,197,629,644,646,1391,1316,1019,164,165,144,237,212,1002,650,1206,1208,997,995,996,339,337,340,628,640,629,1051,1050,1047,176,174,175,375,377,374,1387,1298,1035,853,855,886,121,120,122,180,177,179,959,960,1328,331,334,330,947,951,953,801,1061,1252,1189,1188,1132,318,317,314,412,427,425,1274,727,693,482,481,460,1112,1109,1113,69,67,68,364,358,363,107,146,147,650,647,649,175,172,173,58,1089,682,65,70,68,624,625,623,345,346,354,71,70,1296,303,300,301,134,135,138,700,702,703,555,632,558,358,361,363,1286,1383,732,85,88,1279,584,592,594,466,463,476,71,69,68,322,324,319,252,1347,248,1135,1134,1132,345,347,341,805,804,406,134,138,136,521,520,530,364,359,358,1123,1116,1125,123,125,117,635,568,564,1182,1188,1184,71,72,69,400,402,390,72,74,69,639,638,637,390,402,404,966,968,965,502,1356,500,48,43,40,642,640,643,1103,1195,1192,451,458,446,82,80,83,660,656,661,535,538,540,1094,1091,1095,365,366,363,353,352,348,169,170,168,1283,761,1284,78,76,77,74,79,77,172,174,168,433,423,426,1179,1181,1185,582,583,584,79,80,77,270,265,941,347,345,348,63,1291,64,628,630,631,754,755,753,345,354,348,238,236,239,978,991,989,307,306,308,568,634,577,943,1335,942,516,518,519,80,79,81,1060,1058,1250,1300,852,854,145,146,107,1308,991,993,583,579,585,1102,1105,1104,857,879,858,844,859,848,1361,1362,422,171,181,170,1238,1092,1091,80,82,77,378,381,383,303,302,300,1415,1254,798,1386,1295,1037,979,982,981,1072,711,712,653,642,643,945,947,954,369,367,370,755,754,756,662,663,665,78,82,84,1247,1119,1120,125,115,117,191,187,186,405,404,409,624,622,593,165,167,144,1331,275,938,447,784,449,638,631,636,413,411,412,668,669,1229,376,374,377,278,279,281,387,385,382,85,78,84,1188,28,1184,1306,1396,993,1157,1158,1155,250,252,248,1068,1065,1073,924,929,927,376,371,374,774,536,537,901,1329,900,177,175,173,368,364,363,1301,849,847,381,378,377,179,177,173,350,327,347,82,86,84,897,902,901,1332,938,939,763,762,756,375,379,377,678,689,681,329,333,349,335,334,336,393,400,392,671,706,704,164,135,166,1338,1294,1221,356,360,358,86,88,84,463,466,465,169,165,166,822,864,825,87,101,99,1098,1238,1093,765,763,754,380,394,393,882,338,335,427,794,430,88,86,89,1263,1375,1196,857,858,856,787,788,786,116,114,81,736,737,684,462,457,461,922,924,925,1027,1302,1337,555,556,637,706,709,707,1110,1107,1131,456,455,453,102,100,99,447,448,445,1121,1122,1120,75,116,79,352,350,348,768,747,769,137,109,108,991,975,993,380,375,395,808,812,813,394,396,393,104,102,103,788,789,792,444,442,434,396,398,393,734,733,732,165,169,168,87,95,86,1197,1103,1101,694,729,686,754,763,756,486,488,484,877,861,863,244,242,245,700,697,699,343,345,341,1102,1103,1108,1248,1411,829,924,923,898,1207,650,649,711,710,712,990,1307,1046,666,1205,652,1322,1056,982,90,88,91,391,393,392,188,185,132,905,1323,910,625,626,627,128,133,132,1205,1207,652,154,153,155,811,809,819,692,695,691,510,515,511,590,588,591,181,182,179,444,445,446,651,649,645,877,878,875,371,369,370,496,492,493,1374,1149,1148,749,751,744,753,755,1271,435,440,437,90,46,1281,1265,1191,1194,354,353,348,423,433,424,683,58,682,970,1311,1e3,137,130,136,1201,1089,55,438,422,437,120,72,1041,420,418,419,46,90,91,131,111,127,844,847,846,433,435,424,690,691,687,318,320,319,435,433,434,183,185,186,930,924,898,1075,1065,1076,1285,1083,1081,454,487,486,127,128,130,92,46,91,977,979,980,1218,1222,1217,544,546,540,737,60,684,653,652,651,885,884,883,423,413,425,766,750,767,527,529,523,137,111,131,1104,1241,1099,46,92,47,736,686,733,178,176,175,820,818,821,100,150,98,784,447,786,185,188,186,1389,1319,1027,93,95,96,651,652,649,841,846,851,1178,1177,1148,724,1428,722,89,92,91,758,1426,757,1191,1192,1194,919,920,280,797,798,796,88,89,91,749,748,750,694,688,693,767,1257,766,499,501,498,142,145,107,422,436,437,829,833,1248,686,729,733,720,716,715,92,93,94,191,194,193,95,87,97,1203,1269,30,143,140,144,522,520,513,98,95,97,492,491,493,1288,1379,1336,1063,1064,543,655,656,654,770,771,772,869,866,868,988,1047,1050,706,705,704,109,139,141,824,817,816,185,135,132,710,711,707,97,87,99,675,674,672,100,97,99,391,389,379,181,183,184,588,590,586,582,581,583,448,452,450,1197,1198,1196,444,443,442,101,87,83,403,400,401,193,182,184,316,305,307,487,454,782,135,183,171,1136,1126,1129,102,101,103,703,713,715,187,183,186,900,1330,903,104,100,102,679,701,699,187,191,193,104,106,107,431,447,445,329,326,328,1122,1156,1160,1286,732,728,994,995,993,108,106,103,413,412,425,442,435,434,110,111,108,657,655,1071,740,742,739,838,839,840,797,806,799,455,459,457,1382,1294,1336,196,194,197,389,387,382,1213,627,646,459,463,461,112,80,81,806,797,794,774,773,772,113,111,112,995,1306,993,114,113,81,541,538,539,246,244,247,740,1076,743,335,337,332,467,468,469,79,116,81,806,428,408,859,861,860,1168,1120,1167,116,118,119,420,419,422,24,22,21,985,984,983,120,121,118,1028,1039,1031,413,423,415,997,998,995,865,820,821,1105,1106,1243,421,436,422,769,770,772,1429,1276,698,118,121,119,1309,1002,1003,856,858,881,940,948,942,123,117,119,412,410,428,182,181,184,58,683,60,790,788,791,204,196,197,416,414,415,723,698,697,829,830,833,423,421,415,117,115,114,485,490,483,459,455,460,452,449,783,973,970,999,369,368,366,752,754,1272,1380,1223,1336,702,700,701,113,115,127,644,642,645,861,862,863,455,451,450,597,601,599,462,467,469,1181,1179,1178,477,475,476,125,128,127,581,580,578,1331,919,275,628,626,591,486,525,489,684,685,686,947,953,954,709,706,663,402,403,406,808,802,805,128,125,129,672,674,670,1136,1134,1137,1175,1159,1157,990,988,989,131,127,130,1257,765,766,507,508,505,128,132,130,972,994,975,770,747,771,469,470,471,183,181,171,695,698,696,132,134,130,1035,1032,1036,1180,1145,1137,470,472,471,135,134,132,471,472,441,1046,1049,1047,751,1273,745,468,467,465,38,1201,55,130,134,136,445,444,434,405,411,387,400,398,401,490,494,483,458,451,457,138,139,136,440,439,437,284,290,285,705,702,704,312,314,307,452,448,449,1038,1018,1040,864,822,823,140,139,138,969,972,971,375,372,395,109,137,136,1103,1100,1101,482,456,484,111,113,127,812,808,810,210,192,1004,980,976,977,491,492,490,177,180,178,428,410,408,142,109,141,841,838,840,1102,1104,1099,139,140,141,827,817,826,994,973,996,550,548,549,145,142,141,384,383,417,635,633,634,106,142,107,586,583,585,104,107,147,762,1079,1080,546,516,519,861,877,860,146,148,147,491,488,489,148,105,147,524,497,525,356,355,354,925,924,927,148,149,105,1298,1034,1032,811,814,810,105,104,147,485,482,484,149,150,105,632,555,636,718,721,720,149,151,150,383,385,386,496,498,500,822,820,823,192,191,189,482,485,483,150,100,105,417,383,386,674,675,677,100,98,97,497,491,489,858,338,880,456,482,460,150,152,98,1054,988,1050,669,665,670,718,1275,721,165,164,166,17,42,18,135,164,138,1324,903,911,151,152,150,638,640,631,578,580,575,98,152,96,479,480,481,196,198,182,320,322,319,1028,1044,1039,556,1069,637,974,977,976,1057,956,952,506,508,510,306,305,304,506,503,505,95,98,96,955,960,959,872,360,357,809,810,807,1114,1245,1115,152,153,96,200,201,180,1070,657,1071,671,673,672,665,668,664,225,222,226,512,508,513,1041,1040,122,652,653,654,679,673,701,198,200,180,1081,1080,1285,1190,1130,1131,1259,746,768,153,154,96,861,859,845,180,201,178,400,390,392,494,495,483,1312,1394,967,96,154,94,888,887,889,794,427,428,497,524,499,797,793,794,1276,1274,696,93,96,94,682,680,681,503,501,505,1156,1143,1155,167,1369,144,135,171,166,1116,1115,1125,817,814,816,851,1293,841,551,552,549,777,1261,537,406,407,404,154,156,94,207,208,206,924,930,929,203,199,196,156,154,157,452,783,453,156,47,94,501,507,505,1009,1011,1314,987,988,985,47,156,18,568,635,634,1232,666,1231,691,688,687,290,291,288,1215,67,76,337,338,340,47,92,94,1297,70,1216,535,540,519,255,261,259,1190,1266,1133,1199,1197,1101,45,47,18,195,207,197,655,643,641,327,326,349,923,897,898,347,342,341,383,381,382,988,979,989,648,1213,646,934,315,313,899,1407,894,1044,1028,1025,233,222,223,499,509,507,158,156,157,998,1306,995,1348,1349,178,515,510,514,718,719,739,158,16,18,387,411,388,1192,1195,1194,1264,1376,1194,805,406,807,400,403,402,1019,1017,1317,16,158,15,250,254,253,675,678,677,771,539,772,158,159,15,360,356,357,955,957,953,1124,1123,1138,1008,129,126,232,246,230,160,159,158,49,52,1224,407,410,409,736,684,686,199,198,196,936,883,336,410,407,408,1209,1226,1210,265,267,264,189,188,190,1320,1027,1337,159,13,15,794,789,430,414,386,388,788,790,786,1440,1231,667,443,471,441,535,521,534,963,965,962,887,885,896,360,361,358,160,158,157,249,228,230,844,842,845,38,53,37,627,629,646,161,160,157,1166,1169,1165,630,632,631,679,690,689,536,538,534,207,195,209,161,157,155,790,1417,786,765,754,750,974,1325,971,1212,618,621,162,161,155,215,213,216,634,633,589,315,934,321,403,809,807,447,431,432,408,407,406,157,154,155,1011,1009,1010,1088,1086,1282,1038,1032,1039,793,789,794,153,162,155,414,416,386,569,566,565,833,836,835,163,162,153,937,930,895,366,368,363,140,164,144,454,783,782,240,241,243,734,735,733,548,550,561,164,140,138,562,559,560,518,521,519,167,165,168,170,172,168,563,564,565,709,660,661,429,431,426,1165,615,1160,666,652,659,1170,1166,1164,174,172,175,1333,939,940,331,321,933,550,559,561,177,178,175,170,179,173,775,774,537,181,179,170,572,504,571,664,659,658,847,849,846,841,840,846,935,331,932,1275,718,739,511,563,565,171,169,166,765,1077,764,783,449,785,809,811,810,1187,1179,1185,503,506,571,974,978,977,320,315,321,632,630,589,1097,1199,1101,571,566,569,639,655,641,747,770,769,504,503,571,1111,1243,1106,779,778,533,1205,666,1232,189,191,186,949,950,946,70,66,1216,187,193,184,566,506,511,1156,1124,1141,1165,1169,613,1267,1268,33,194,191,195,194,182,193,29,1183,1184,754,749,750,1205,1233,1206,1181,1183,1185,1154,1157,1153,521,532,534,777,778,1261,275,273,938,1122,1160,1167,729,732,733,182,198,179,576,568,577,337,333,332,761,759,760,520,529,530,782,781,487,532,521,530,198,180,179,975,994,993,643,640,641,1058,815,1059,199,200,198,406,403,807,778,777,533,538,541,540,1201,1091,1089,1256,780,528,624,623,622,532,531,533,1018,1017,1016,290,926,292,809,403,401,1308,992,991,547,517,546,820,822,816,1077,1422,764,203,196,204,968,1328,962,1235,619,1212,574,570,573,632,589,558,544,542,545,206,204,197,257,1346,253,759,1085,1270,194,195,197,811,818,816,1019,1316,1020,541,542,540,1313,997,996,542,544,540,967,965,1312,539,538,536,208,207,209,542,541,543,63,61,59,842,844,840,195,210,209,531,780,533,192,210,195,841,1293,838,1289,1218,1220,210,211,209,397,870,868,1191,1190,1192,210,212,211,801,802,803,1199,1097,1094,980,979,981,439,440,441,212,210,1004,774,539,536,544,547,546,682,681,683,789,432,430,432,429,430,211,213,209,793,797,796,1006,1005,1004,760,759,757,1236,617,1214,214,213,211,213,215,209,865,867,863,853,886,1299,215,208,209,43,41,40,563,562,564,1445,1214,619,33,1268,35,1056,1399,982,1193,1266,1190,745,1275,739,215,217,208,1023,1317,1017,217,215,216,646,644,645,1042,1387,1035,467,462,461,217,218,208,1420,1062,773,208,218,206,191,192,195,1213,625,627,218,205,206,1319,1390,1025,922,284,921,1086,1087,1282,219,217,216,873,872,357,219,216,220,796,800,793,869,872,874,49,1278,44,279,275,280,858,880,881,221,219,220,1076,740,741,255,257,253,387,389,390,344,876,875,599,600,596,216,214,220,1283,1424,1085,213,214,216,828,825,830,359,355,356,929,936,932,1227,1438,677,986,984,985,222,214,223,878,867,874,42,17,20,220,222,224,1395,1313,999,1006,190,133,867,878,863,968,962,965,1262,1198,1199,404,407,409,221,220,224,222,225,224,990,991,992,1200,1095,1201,551,1066,553,1209,648,647,440,435,442,338,879,340,1249,1412,831,427,412,428,1200,1199,1095,617,611,608,225,227,224,228,227,225,665,671,670,338,882,880,819,809,401,696,1274,693,229,228,225,163,153,152,590,592,586,228,229,230,789,793,792,1007,1006,133,288,291,293,402,406,404,842,843,825,1214,617,619,231,229,226,78,85,1215,254,256,255,828,824,825,60,737,1287,532,536,534,864,862,845,232,229,231,953,1327,954,233,234,231,843,839,830,1246,1240,1116,1239,1436,1096,853,1300,854,710,709,661,842,864,845,887,890,892,903,904,900,234,233,235,783,454,453,1054,986,985,900,899,901,822,824,816,934,928,933,1063,1065,1064,479,478,480,339,344,343,242,244,232,950,951,946,183,187,184,737,736,738,642,651,645,547,551,549,1154,1175,1157,244,246,232,882,883,880,733,735,736,666,667,1231,249,230,248,755,757,1271,397,394,395,250,246,251,243,964,245,252,250,253,536,532,537,709,663,660,611,616,607,254,250,251,698,722,725,890,891,894,789,788,787,263,264,259,1280,1377,88,269,265,270,269,273,271,1339,907,910,1109,1110,1113,762,761,760,793,795,792,1425,1270,1085,842,839,843,714,719,717,579,587,585,1356,496,500,867,869,874,279,278,277,1332,1405,938,874,873,875,678,675,679,398,399,819,550,549,554,282,283,281,601,602,605,76,78,1215,285,290,288,713,703,708,615,613,614,581,578,583,289,288,293,294,295,293,729,694,728,294,298,296,685,684,681,485,488,490,1313,996,999,1073,1075,1074,1106,1109,1111,414,413,415,759,761,1085,72,73,1041,508,506,505,727,726,693,638,639,641,620,602,622,871,365,362,305,306,307,905,910,904,701,673,704,299,306,301,698,695,697,334,935,336,306,299,308,706,671,663,416,418,417,847,844,848,539,774,772,703,702,705,1069,556,553,716,703,715,310,309,311,310,312,308,1119,1117,1120,602,620,608,314,316,307,620,618,608,780,779,533,63,60,1287,1009,1008,126,904,910,907,1001,238,239,615,1165,613,1066,551,545,813,1060,803,1273,751,752,713,714,717,323,331,330,1072,1068,1073,857,856,848,329,330,332,802,801,799,991,990,989,718,720,715,1100,1102,1099,748,749,744,59,60,63,330,334,332,1116,1117,1246,633,635,560,965,967,966,773,769,772,689,690,687,342,333,341,752,749,754,237,214,211,567,569,565,345,343,346,612,610,613,623,620,622,405,387,390,982,983,1322,555,637,636,529,531,530,617,618,619,326,329,349,702,701,704,350,347,348,1057,256,254,1239,1096,1099,647,646,645,355,353,354,824,822,825,1013,121,122,771,747,743,465,467,461,1393,1312,241,1255,784,786,662,664,658,346,356,354,356,346,357,810,808,807,361,360,362,28,1188,31,667,668,1230,361,365,363,814,812,810,587,634,589,365,361,362,957,1327,953,515,548,561,795,1416,792,1072,1073,1074,1204,669,670,906,904,907,372,374,370,660,662,658,1110,1130,1128,486,487,526,379,375,380,379,381,377,1233,1442,1206,381,379,382,740,719,741,719,714,741,151,163,152,671,672,670,812,814,815,241,965,243,856,847,848,509,508,507,384,378,383,1125,1115,1113,1341,1221,1218,722,698,723,389,391,392,588,586,585,399,396,821,1022,1006,1007,801,1060,1061,1210,1235,1212,885,937,896,323,320,321,394,380,395,397,396,394,801,1252,1253,398,396,399,255,256,262,1271,1272,753,667,666,664,1068,1067,1066,449,784,785,680,678,681,390,389,392,405,390,404,757,759,758,663,671,665,413,414,388,506,566,571,597,602,601,416,417,386,1428,725,722,818,811,819,2,4,1186,1143,1141,1142,690,679,699,421,419,415,681,689,687,419,421,422,732,729,728,1067,1068,1070,695,693,691,806,794,428,28,29,1184,427,429,425,447,787,786,425,429,426,802,813,803,501,502,500,431,433,426,742,740,743,862,864,823,1124,1156,1122,716,722,723,435,436,424,676,674,677,436,435,437,436,421,424,657,1070,712,1032,1034,1033,951,955,953,443,440,442,1183,29,1185,747,742,743,914,916,908,548,547,549,621,1213,1211,726,694,693,1131,1107,1108,448,447,449,886,888,1299,445,448,446,446,448,450,839,837,830,831,1058,1059,771,541,539,452,453,450,532,777,537,453,455,450,713,711,714,517,547,548,595,582,584,457,459,461,555,552,556,762,760,756,559,550,554,464,477,476,514,517,548,463,459,464,463,465,461,555,557,554,1253,1415,798,1203,30,31,751,745,744,458,462,469,926,290,284,1321,906,907,757,755,756,839,842,840,458,469,471,765,750,766,1069,1070,1071,29,3,1186,984,1322,983,678,680,677,751,749,752,780,531,528,454,456,453,1195,1197,1196,1084,761,1081,559,562,561,541,771,543,601,603,599,443,458,471,891,887,896,440,443,441,60,683,684,1278,48,44,937,936,929,458,444,446,804,802,799,1134,1136,1129,570,567,573,473,468,465,926,922,925,344,339,340,1309,1310,1002,475,466,476,566,511,565,806,804,799,463,464,476,334,331,935,1365,317,319,1120,1117,1118,1139,1140,1142,1064,542,543,1130,1190,1133,944,945,958,480,459,460,1067,1069,553,481,482,483,703,705,708,688,685,687,627,626,629,1064,1066,545,614,1168,1167,456,454,484,432,789,787,573,568,575,212,1004,1003,488,486,489,488,491,490,1213,648,1211,777,532,533,576,579,578,1030,1027,1028,1018,1023,1017,38,36,1200,590,624,593,799,1253,798,495,479,481,1202,1103,1192,879,860,876,925,928,311,491,497,493,676,1228,674,497,498,493,497,499,498,902,923,921,504,502,503,396,397,868,987,985,983,1083,1284,1084,501,499,507,685,694,686,936,937,883,588,587,589,508,512,510,870,365,871,510,512,514,707,711,708,514,512,516,920,284,282,1051,1305,1050,784,1255,785,516,512,513,1277,1225,1224,1126,1123,1125,1186,1187,1185,351,325,327,518,516,513,634,587,577,942,944,943,680,1227,677,886,855,881,948,949,946,1392,1315,1015,518,520,521,520,522,523,895,891,896,1245,1112,1115,524,522,509,1171,1162,1172,513,508,509,522,524,523,236,1002,239,814,811,816,499,524,509,531,532,530,926,925,311,574,573,575,1079,1423,1080,525,497,489,804,408,406,771,1063,543,265,263,941,817,824,826,742,746,744,1007,133,129,1285,1080,1082,666,659,664,523,524,526,592,593,594,1358,1359,466,692,690,699,529,527,528,588,589,591,829,828,830,529,520,523,979,978,989,576,578,575,1107,1105,1108,579,583,578,540,546,519,546,517,516,924,922,921,549,552,554,123,124,126,674,1228,670,552,555,554,870,397,373,557,559,554,559,557,560,563,515,561,515,563,511,515,514,548,568,567,564,572,571,569,1110,1127,1113,1006,1004,190,568,576,575,1069,1067,1070,859,844,845,580,574,575,974,976,1325,587,579,577,587,588,585,1225,49,1224,669,668,665,655,639,1071,657,710,661,828,829,826,201,1348,178,542,1064,545,653,651,642,592,584,586,656,660,658,1066,1067,553,584,583,586,837,839,838,1109,1107,1110,595,584,594,597,596,593,598,595,594,876,877,875,373,397,395,815,817,1059,606,604,605,1070,1068,712,309,294,292,605,607,609,1120,1122,1167,656,657,661,617,1236,611,551,544,545,1103,1102,1100,622,597,593,761,1283,1085,1092,1090,1091,626,590,591,1135,1180,1137,589,630,591,1114,1116,1240,1084,1081,1083,678,679,689,1160,615,1167,562,635,564,1089,1237,682,1100,1097,1101,637,638,636,762,1078,1079,640,642,629,647,648,646,649,647,645,643,655,654,685,681,687,695,692,697,698,1276,696,726,730,728,398,819,401,618,1212,619,763,765,764,1218,1217,1220,1121,1124,1122,310,311,313,798,797,799,979,987,983,639,1069,1071,840,844,846,854,855,853,854,847,856,859,857,848,866,865,821,867,865,866,866,396,868,970,1e3,999,1226,1444,1210,869,870,871,275,919,280,872,869,871,365,870,373,1018,1043,1040,872,871,362,938,273,939,472,1360,441,872,873,874,346,873,357,873,343,875,754,753,1272,273,270,939,860,877,876,930,937,929,879,857,860,879,338,858,1127,1126,1125,1268,34,35,883,882,336,883,884,880,880,884,881,884,886,881,884,887,886,1286,728,731,947,945,946,891,890,887,1349,202,178,891,895,894,1262,1263,1198,945,942,946,1040,1043,122,895,897,894,1064,1065,1066,58,54,55,1021,1392,1015,903,905,904,904,906,900,988,1054,985,1339,913,914,1002,212,1003,53,38,55,66,1290,1217,909,1339,915,1153,1157,1155,1004,192,190,124,121,1013,284,920,921,920,902,921,1130,1110,1131,897,923,902,1163,1165,1160,1091,1094,1093,923,924,921,1242,1241,1104,53,40,37,929,931,927,945,944,942,1417,1255,786,931,932,933,932,331,933,331,323,321,243,965,963,321,934,933,1119,1246,1117,311,928,313,1303,1029,1030,292,926,311,190,188,133,1029,1302,1027,1288,1336,1341,1320,1389,1027,648,1209,1211,942,948,946,948,941,949,1009,1022,1008,951,950,952,955,951,956,955,961,960,1199,1198,1197,960,964,963,966,969,968,1162,1161,1158,969,966,970,956,951,952,1065,1075,1073,1143,1153,1155,761,762,1081,236,237,1002,192,189,190,1008,1007,129,1009,124,1010,1015,1010,1014,1012,1013,1016,1016,1017,1014,1020,1015,1014,1015,1011,1010,1212,1211,1210,1018,1318,1023,1400,1323,905,1018,1024,1318,1088,1087,1086,776,773,774,675,673,679,1038,1040,1036,1158,1157,1159,1040,1041,1036,1041,1037,1036,1013,1043,1016,1130,1132,1128,1043,1018,1016,1018,1038,1044,1121,1120,1118,1047,990,1046,1195,1103,1197,990,1047,988,1299,1300,853,827,831,1059,242,243,245,964,961,245,961,964,960,244,961,247,961,956,247,961,955,956,956,1057,247,251,246,247,773,1062,769,256,1057,952,256,950,262,949,263,262,941,263,949,710,657,712,1270,758,759,948,940,941,882,335,336,1281,1280,90,372,373,395,1058,1060,813,1060,801,803,802,808,813,812,1058,813,1058,812,815,814,817,815,1063,771,743,1339,909,907,1068,1072,712,711,1072,714,1075,741,1074,1075,1076,741,1065,1063,1076,1089,58,55,1346,252,253,1078,762,764,1284,761,1084,1301,1409,849,1097,1096,1094,1096,1098,1093,1097,1100,1099,87,82,83,1105,1242,1104,1107,1109,1106,1109,1244,1111,1109,1112,1244,1130,1133,1132,1132,1134,1128,1134,1129,1128,1126,1136,1138,1123,1126,1138,1139,1136,1140,1138,1139,1141,1124,1138,1141,1141,1139,1142,1140,1144,1142,1182,1135,1132,1145,1144,1140,1142,1144,1146,1147,1142,1146,1144,1148,1146,1144,1145,1148,1148,1149,1146,1149,1150,1146,1150,1147,1146,1147,1150,1151,1143,1147,1151,1150,1152,1151,1152,1153,1151,1152,1154,1153,1153,1143,1151,1396,1308,993,1158,1156,1155,1156,1158,1160,1158,1161,1160,1161,1163,1160,1163,1161,1164,1163,1166,1165,615,614,1167,1168,614,616,1168,1247,1120,1166,1163,1164,1171,1170,1164,1162,1171,1164,1161,1162,1164,1173,1171,1172,1398,986,1054,1162,1158,1159,1175,1174,1159,1174,1173,1172,1173,1176,1171,1143,1156,1141,1293,1410,838,1147,1143,1142,1179,1177,1178,1145,1178,1148,1178,1145,1180,1181,1178,1180,1145,1140,1137,1135,1182,1180,1134,1135,1137,1182,1183,1180,1183,1182,1184,1183,1181,1180,3,2,1186,1188,1189,31,1196,1264,1194,1199,1094,1095,1091,1201,1095,1433,1244,1112,1103,1202,1108,1202,1190,1131,1105,1102,1108,1229,669,1204,1207,1205,1206,1213,621,623,625,1213,623,1189,1203,31,1269,1267,32,1229,1230,668,1200,1262,1199,36,35,34,1297,1296,70,1026,1318,1024,745,739,742,73,1037,1041,1328,960,962,1030,1031,1303,849,850,846,1301,854,852,720,724,722,769,1260,768,1263,1196,1198,64,1291,66,1340,1052,1055,1340,1055,1054,1338,1221,1341,1304,1340,1305,913,1339,910,1215,1277,62,1279,1215,85,738,1287,737,1290,1220,1217,1219,1297,1216,1302,1045,1337,1049,1051,1047,1315,1314,1011,1314,1022,1009,1048,1049,1046,889,1299,888,918,1329,901,1321,899,906,893,892,890,721,724,720,616,1247,1168,1053,1052,1340,1053,1340,1304,837,838,1292,837,1292,836,827,829,832,827,832,1249,903,1324,905,919,918,902,920,919,902,1329,1330,900,801,1253,799,1258,748,746,767,750,748,1335,940,942,833,834,1248,837,836,833,613,610,614,610,616,614,1018,1044,1024,846,850,851,61,52,59,1222,1219,1217,1219,1216,1217,1025,1028,1319,1028,1027,1319,67,69,76,681,684,683,920,282,280,903,912,911,908,916,917,302,1342,300,1343,297,300,1342,1343,300,286,1344,281,1345,278,281,1347,249,248,202,1350,178,1351,176,178,1350,1351,178,1176,1352,1171,1353,1170,1171,1352,1353,1171,1354,612,613,1355,572,569,570,1355,569,1357,494,490,474,1358,466,1359,473,466,1360,439,441,438,1361,422,1362,420,422,1363,384,417,1364,376,377,324,1365,319,1366,316,314,174,1367,168,1368,167,168,1369,143,144,1370,145,141,143,1370,141,1371,4,0,1372,1187,1186,4,1372,1186,1177,1373,1148,1373,1374,1148,1375,1264,1196,1376,1265,1194,1377,1279,88,1378,1288,1341,1223,1381,1336,1381,1382,1336,1383,734,732,1384,738,736,735,1384,736,1221,1385,1218,73,1386,1037,1388,1303,1031,1033,1388,1031,1390,1026,1025,1317,1391,1019,1394,1311,967,1e3,1395,999,1397,1048,1046,1307,1397,1046,1055,1398,1054,1324,1400,905,1401,913,910,1323,1401,910,1402,1326,971,1325,1402,971,1243,1434,1105,1403,957,955,959,1403,955,1327,1404,954,1434,1242,1105,1405,1331,938,1446,616,611,1406,1321,907,909,1406,907,1430,730,726,1407,893,894,1439,1204,670,892,1408,887,1412,1251,831,1413,1250,1058,1251,1413,1058,1414,1061,1060,1250,1414,1060,1416,791,792,1256,1418,780,1419,776,775,1261,1419,775,776,1420,773,1258,1421,748,1422,1078,764,1423,1082,1080,1424,1282,1085,1087,1425,1085,1426,1271,757,1427,1273,752,730,1431,728,1432,1245,1114,1240,1432,1114,1245,1433,1112,1435,1239,1099,1241,1435,1099,1436,1098,1096,1437,1237,1090,1092,1437,1090,1438,676,677,1228,1439,670,1441,1233,1205,1232,1441,1205,1442,1208,1206,1443,1226,1209,1234,1443,1209,1444,1235,1210,1235,1445,619,1236,1446,611],sharedSettings=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx");var TriangleLayer_stories={component:SubsurfaceViewer.Z,title:"SubsurfaceViewer / Triangle Layer",args:{triggerHome:0}};const SmallTriangleLayer={args:{id:"map",layers:[{"@@type":"AxesLayer",id:"axes_small",bounds:[-10,-10,0,20,10,10]},{"@@type":"TriangleLayer",id:"triangle-layer",pointsData:[0,0,5,10,0,5,10,10,5,0,10,0,5,-5,10,11,-4,6,11,0,7,17,0,8],triangleData:[2,1,0,3,2,0,1,4,0,6,7,5],color:[100,100,255],gridLines:!0,material:!0,smoothShading:!0,ZIncreasingDownwards:!0},sharedSettings.D$],bounds:[-10,-10,17,10],views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Both mesh and property data given as native javascript arrays (as opposed to URL)."}}}},surfaceAxesLayer={"@@type":"AxesLayer",id:"mandaros_axes_small",bounds:[-2e3,-2e3,1500,2500,2e3,3e3]},TwoSideLighting={args:{id:"map",layers:[surfaceAxesLayer,{"@@type":"TriangleLayer",id:"upper_surface_layer",pointsData:surfacePoints,triangleData:surfaceTriangles,color:[100,100,255],gridLines:!0,material:{ambient:.35,diffuse:.6,shininess:100,specularColor:[255,255,255]},smoothShading:!0,ZIncreasingDownwards:!0,debug:!0},{"@@type":"TriangleLayer",id:"lowers_surface_layer",pointsData:((points,shift)=>{const res=[];for(let i=0;i{const res=[];for(let i=0;imath.random?math.random()*size:Math.random()*size,buildTrgl=(count=1)=>{count=count||1;const triangles=Array(9*count).fill(0);for(let i=0;irandomFunc(1e3)));for(let ti=0;ti<9;++ti)triangles[9*i+ti]=center[ti%3]+randomFunc(100)}return triangles},TriangleLayersGenerator=props=>{const tsurfLayers=react.useMemo((()=>{const result=[];for(let i=0;i<=props.layerCount;++i)result.push({"@@type":"TriangleLayer",id:`triangle-layer-${i}`,pointsData:buildTrgl(props.triangleCount),triangleData:Array(3*props.triangleCount).fill(0).map(((_,i)=>i)),gridLines:!0,material:!0,ZIncreasingDownwards:!0});return result}),[props.layerCount,props.triangleCount]);return react.createElement(SubsurfaceViewer.Z,{triggerHome:props.triggerHome,id:"many-triangle-layers",layers:tsurfLayers,views:sharedSettings.Pl})},TriangleLayers={args:{layerCount:10,triangleCount:1e3},render:args=>react.createElement(TriangleLayersGenerator,args)};SmallTriangleLayer.parameters={...SmallTriangleLayer.parameters,docs:{...SmallTriangleLayer.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [axesLayer, triangleLayer, northArrowLayer],\n bounds: [-10, -10, 17, 10],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Both mesh and property data given as native javascript arrays (as opposed to URL)."\n }\n }\n }\n}',...SmallTriangleLayer.parameters?.docs?.source}}},TwoSideLighting.parameters={...TwoSideLighting.parameters,docs:{...TwoSideLighting.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [surfaceAxesLayer, upperSurfaceLayer, lowerSurfaceLayer],\n bounds: [-2000, -2000, 2500, 2000],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Both mesh and property data given as native javascript arrays (as opposed to URL)."\n }\n }\n }\n}',...TwoSideLighting.parameters?.docs?.source}}},TypedArrayInput.parameters={...TypedArrayInput.parameters,docs:{...TypedArrayInput.parameters?.docs,source:{originalSource:'{\n args: {\n id: "map",\n layers: [surfaceAxesLayer, typedDataSurfaceLayer],\n bounds: [-2000, -2000, 2500, 2000],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Surface data is provided as typed arrays."\n }\n }\n }\n}',...TypedArrayInput.parameters?.docs?.source}}},TriangleLayers.parameters={...TriangleLayers.parameters,docs:{...TriangleLayers.parameters?.docs,source:{originalSource:"{\n args: {\n layerCount: 10,\n triangleCount: 1000\n },\n render: args => \n}",...TriangleLayers.parameters?.docs?.source}}};const __namedExportsOrder=["SmallTriangleLayer","TwoSideLighting","TypedArrayInput","TriangleLayers"]}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-WellMarkersLayer-stories.cb810eea.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-WellMarkersLayer-stories.cb810eea.iframe.bundle.js new file mode 100644 index 000000000..0fcc1202e --- /dev/null +++ b/storybook-static/subsurface-viewer-src-storybook-layers-WellMarkersLayer-stories.cb810eea.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[6348],{"./packages/subsurface-viewer/src/storybook/layers/WellMarkersLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{WellMarkers:function(){return WellMarkers},__namedExportsOrder:function(){return __namedExportsOrder}});var mathjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/core/create.js"),mathjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./packages/subsurface-viewer/node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),_sharedSettings__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx");const stories={component:_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__.Z,title:"SubsurfaceViewer/Well Markers Layer",args:{triggerHome:0}};__webpack_exports__.default=stories;const math=(0,mathjs__WEBPACK_IMPORTED_MODULE_2__.U)(mathjs__WEBPACK_IMPORTED_MODULE_3__.$,{randomSeed:"1984"}),randomFunc=math?.random?max=>math.random(max):max=>Math.random()*max,WellMarkers={args:{bounds:[-25,-25,50,30],views:{layout:[1,1],viewports:[{id:"view_1",show3D:!0}]},id:"well-markers-tttt",layers:[{"@@type":"AxesLayer",id:"well-markers-axes",bounds:[-25,-25,-25,25,25,25],ZIncreasingDownwards:!1},{"@@type":"NorthArrow3DLayer",id:"north-arrow-layer"},{"@@type":"WellMarkersLayer",id:"well-markers-1",pickable:!0,shape:"circle",sizeUnits:"common",data:(()=>{const dN=2*Math.PI/40,dM=5*Math.PI/40,res=[];for(let i=0;i<40;++i)for(let j=0;j<40;++j){const x=-20+i,y=-20+j,az=dN*i,incl=dM*j,z=Math.sin(incl)*Math.cos(az)*5;res.push({position:[x,y,z],azimuth:180*az/Math.PI,inclination:180*Math.asin(Math.cos(incl))/Math.PI,color:[randomFunc(255),randomFunc(255),randomFunc(255),100],outlineColor:[0,0,100,255],size:.02*Math.sqrt(x*x+y*y)})}return res})()}]},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_1__.R4.docs,description:{story:"Well Markers Layer."}}}};WellMarkers.parameters={...WellMarkers.parameters,docs:{...WellMarkers.parameters?.docs,source:{originalSource:'{\n args: {\n bounds: [-25, -25, 50, 30],\n views: {\n layout: ([1, 1] as [number, number]),\n viewports: [{\n id: "view_1",\n show3D: true\n }]\n },\n id: "well-markers-tttt",\n layers: [{\n "@@type": "AxesLayer",\n id: "well-markers-axes",\n bounds: [-25, -25, -25, 25, 25, 25],\n ZIncreasingDownwards: false\n }, {\n "@@type": "NorthArrow3DLayer",\n id: "north-arrow-layer"\n }, {\n "@@type": "WellMarkersLayer",\n id: "well-markers-1",\n pickable: true,\n shape: "circle",\n sizeUnits: "common",\n data: generateMarkers()\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Well Markers Layer."\n }\n }\n }\n}',...WellMarkers.parameters?.docs?.source}}};const __namedExportsOrder=["WellMarkers"]}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-WellMarkersLayer-stories.fb83410d.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-WellMarkersLayer-stories.fb83410d.iframe.bundle.js deleted file mode 100644 index c8807b353..000000000 --- a/storybook-static/subsurface-viewer-src-storybook-layers-WellMarkersLayer-stories.fb83410d.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[6348],{"./packages/subsurface-viewer/src/storybook/layers/WellMarkersLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{WellMarkers:function(){return WellMarkers},__namedExportsOrder:function(){return __namedExportsOrder}});var mathjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/mathjs/lib/esm/core/create.js"),mathjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/mathjs/lib/esm/entry/allFactoriesAny.js"),_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),_sharedSettings__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx");const stories={component:_SubsurfaceViewer__WEBPACK_IMPORTED_MODULE_0__.Z,title:"SubsurfaceViewer/Well Markers Layer",args:{triggerHome:0}};__webpack_exports__.default=stories;const math=(0,mathjs__WEBPACK_IMPORTED_MODULE_2__.U)(mathjs__WEBPACK_IMPORTED_MODULE_3__.$,{randomSeed:"1984"}),randomFunc=math?.random?max=>math.random(max):max=>Math.random()*max,WellMarkers={args:{bounds:[-25,-25,50,30],views:{layout:[1,1],viewports:[{id:"view_1",show3D:!0}]},id:"well-markers-tttt",layers:[{"@@type":"AxesLayer",id:"well-markers-axes",bounds:[-25,-25,-25,25,25,25],ZIncreasingDownwards:!1},{"@@type":"NorthArrow3DLayer",id:"north-arrow-layer"},{"@@type":"WellMarkersLayer",id:"well-markers-1",pickable:!0,shape:"circle",sizeUnits:"common",data:(()=>{const dN=2*Math.PI/40,dM=5*Math.PI/40,res=[];for(let i=0;i<40;++i)for(let j=0;j<40;++j){const x=-20+i,y=-20+j,az=dN*i,incl=dM*j,z=Math.sin(incl)*Math.cos(az)*5;res.push({position:[x,y,z],azimuth:180*az/Math.PI,inclination:180*Math.asin(Math.cos(incl))/Math.PI,color:[randomFunc(255),randomFunc(255),randomFunc(255),100],outlineColor:[0,0,100,255],size:.02*Math.sqrt(x*x+y*y)})}return res})()}]},parameters:{docs:{..._sharedSettings__WEBPACK_IMPORTED_MODULE_1__.R4.docs,description:{story:"Well Markers Layer."}}}};WellMarkers.parameters={...WellMarkers.parameters,docs:{...WellMarkers.parameters?.docs,source:{originalSource:'{\n args: {\n bounds: [-25, -25, 50, 30],\n views: {\n layout: ([1, 1] as [number, number]),\n viewports: [{\n id: "view_1",\n show3D: true\n }]\n },\n id: "well-markers-tttt",\n layers: [{\n "@@type": "AxesLayer",\n id: "well-markers-axes",\n bounds: [-25, -25, -25, 25, 25, 25],\n ZIncreasingDownwards: false\n }, {\n "@@type": "NorthArrow3DLayer",\n id: "north-arrow-layer"\n }, {\n "@@type": "WellMarkersLayer",\n id: "well-markers-1",\n pickable: true,\n shape: "circle",\n sizeUnits: "common",\n data: generateMarkers()\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Well Markers Layer."\n }\n }\n }\n}',...WellMarkers.parameters?.docs?.source}}};const __namedExportsOrder=["WellMarkers"]}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-WellsLayer-stories.1a1ea523.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-WellsLayer-stories.1a1ea523.iframe.bundle.js new file mode 100644 index 000000000..8797c311e --- /dev/null +++ b/storybook-static/subsurface-viewer-src-storybook-layers-WellsLayer-stories.1a1ea523.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[9020],{"./packages/subsurface-viewer/src/storybook/layers/WellsLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AllTrajectoryHidden:function(){return AllTrajectoryHidden},AllWellHeadsHidden:function(){return AllWellHeadsHidden},CallbackStyledWells:function(){return CallbackStyledWells},ContinuousColorTable:function(){return ContinuousColorTable},ContinuousWellLogs:function(){return ContinuousWellLogs},CustomColoredWells:function(){return CustomColoredWells},CustomWidthWells:function(){return CustomWidthWells},DashedWells:function(){return DashedWells},DiscreteWellLogs:function(){return DiscreteWellLogs},LegendWithColorSelector:function(){return LegendWithColorSelector},MultipleVolveWells:function(){return MultipleVolveWells},SimplifiedRendering:function(){return SimplifiedRendering},UnfoldedProjection:function(){return UnfoldedProjection},VerticalWellWithDuplicates:function(){return VerticalWellWithDuplicates},VolveWells:function(){return VolveWells},VolveWellsWithResetButton:function(){return VolveWellsWithResetButton},Wells3d:function(){return Wells3d},Wells3dDashed:function(){return Wells3dDashed},WellsRefine:function(){return WellsRefine},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return WellsLayer_stories},volveWells2:function(){return volveWells2}});var react=__webpack_require__("./node_modules/react/index.js"),Slider=__webpack_require__("./node_modules/@mui/material/Slider/Slider.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),dist=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),esm=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-tokens/dist/esm/index.mjs");const{colors:colors,spacings:{comfortable:{small:small,x_small:x_small}},typography:typography,shape:shape}=esm.tokens,nativeselect={background:colors.ui.background__light.rgba,typography:{...typography.input.text,color:colors.text.static_icons__default.rgba},entities:{input:{spacings:{left:small,right:small,top:"6px",bottom:"6px"}},icon:{width:"24px"}},boxShadow:"inset 0 -1px 0 0 "+colors.text.static_icons__tertiary.rgba,states:{focus:{outline:{type:"outline",width:"2px",color:colors.interactive.primary__resting.rgba,style:"solid",offset:"0px"}},disabled:{typography:{color:colors.interactive.disabled__text.rgba}}},modes:{compact:{minHeight:shape._modes.compact.straight.minHeight,entities:{input:{spacings:{left:x_small,right:x_small,top:"0",bottom:"0"}}}}}};var templates=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs"),templates_focus=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/focus.mjs"),useToken=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/hooks/useToken.mjs"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),eds_context=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/EdsProvider/eds.context.js"),Label=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Label/Label.js");const Container=styled_components_browser_esm.ZP.div.withConfig({displayName:"NativeSelect__Container",componentId:"sc-82vb16-0"})(["min-width:100px;width:100%;"]),StyledSelect=styled_components_browser_esm.ZP.select.withConfig({displayName:"NativeSelect__StyledSelect",componentId:"sc-82vb16-1"})(["border:none;border-radius:0;box-shadow:",";"," "," padding-right:calc("," *2 + ",");display:block;margin:0;appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%236f6f6f' d='M7 9.5l5 5 5-5H7z'/%3E%3C/svg%3E\"),linear-gradient( to bottom,"," 0%,"," 100% );background-repeat:no-repeat,repeat;background-position:right "," top 50%;width:100%;&:active,&:focus{box-shadow:none;","}&:disabled{color:",";background-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23bebebe' d='M7 9.5l5 5 5-5H7z'/%3E%3C/svg%3E\"),linear-gradient( to bottom,"," 0%,"," 100% );cursor:not-allowed;box-shadow:none;outline:none;.arrow-icon{fill:red;}&:focus,&:active{outline:none;}}"],nativeselect.boxShadow,(0,templates.oc)(nativeselect.typography),(({theme:theme})=>(0,styled_components_browser_esm.iv)(["height:",";",""],theme.minHeight,(0,templates.SH)(theme.entities.input.spacings))),nativeselect.entities.input.spacings.right,nativeselect.entities.icon.width,nativeselect.background,nativeselect.background,nativeselect.entities.input.spacings.right,(0,templates_focus.p)(nativeselect.states.focus.outline),nativeselect.states.disabled.typography.color,nativeselect.background,nativeselect.background),NativeSelect=(0,react.forwardRef)((function NativeSelect({label:label,children:children,className:className,style:style,selectRef:selectRef,id:id,meta:meta,disabled:disabled=!1,multiple:multiple=!1,...other},ref){const{density:density}=(0,eds_context.q)(),token=(0,useToken.d)({density:density},nativeselect),containerProps={ref:ref,className:className,style:style},selectProps={ref:selectRef,id:id,disabled:disabled,multiple:multiple,...other},labelProps={htmlFor:id,label:label,meta:meta,disabled:disabled},showLabel=label||meta;return(0,jsx_runtime.jsx)(styled_components_browser_esm.f6,{theme:token,children:(0,jsx_runtime.jsxs)(Container,{...containerProps,children:[showLabel&&(0,jsx_runtime.jsx)(Label._,{...labelProps}),(0,jsx_runtime.jsx)(StyledSelect,{...selectProps,children:children})]})})}));var SubsurfaceViewer=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),axesLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/axes/axesLayer.ts"),wellsLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/wells/wellsLayer.ts"),sharedSettings=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx"),src_layers=__webpack_require__("./packages/subsurface-viewer/src/layers/index.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{const onMouseEvent=react.useCallback((event=>{console.log(event)}),[]);return react.createElement(react.Fragment,null,react.createElement(SubsurfaceViewer.Z,_extends({},props,{onMouseEvent:onMouseEvent})),react.createElement("div",{style:{position:"absolute",marginLeft:200}}))},volveWells2={args:{id:"volve-wells",resources:{wellsData:"./volve_wells.json"},bounds:sharedSettings.z,layers:[{"@@type":"WellsLayer",data:"@@#resources.wellsData"},{"@@type":"Axes2DLayer",id:"axes-layer2D",axisColor:[100,100,255],marginH:100,marginV:40}]},render:args=>react.createElement(VolveWellsWithMouseCallback,args),tags:["no-test"]},DiscreteWellLogs={args:{...defaultProps,layers:[{...sharedSettings.y8,refine:!1,outline:!1,logData:"volve_blocking_zonelog_logs.json",logrunName:"BLOCKING",logName:"ZONELOG",logColor:"Stratigraphy"}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with well logs."}}}},ContinuousWellLogs={args:{...defaultProps,layers:[continuousLogsLayer]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with well logs."}}}},DashedWells={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{dash:!0},refine:!1,outline:!1}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with default dashed well trajectories."}}}},MultipleVolveWells={args:{id:"volve-wells",resources:{wellsData:"./volve_wells_1.json",wellsData2:"./volve_wells_2.json"},bounds:sharedSettings.z,layers:[{"@@type":"WellsLayer",data:"@@#resources.wellsData",id:"id1"},{"@@type":"WellsLayer",data:"@@#resources.wellsData2",id:"id2"}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Multiple Volve wells example"}}}},CustomColoredWells={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{color:[255,0,0,255],dash:[10,3]},wellHeadStyle:{color:[255,0,0,255]},refine:!1,outline:!1}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with dashed style and red trajectories, with custom style."}}}},CustomWidthWells={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{width:10},refine:!1,outline:!1}]}},WellsWithResetButton=props=>{const[editedData,setEditedData]=react.useState(props.editedData),[triggerResetMultipleWells,setTriggerResetMultipleWells]=react.useState(0);return react.useEffect((()=>{setEditedData(props.editedData)}),[props.editedData]),react.createElement(Root,null,react.createElement("div",{className:classes.main},react.createElement(SubsurfaceViewer.Z,_extends({},props,{editedData:editedData,setProps:updatedProps=>{setEditedData(updatedProps)},triggerResetMultipleWells:triggerResetMultipleWells}))),react.createElement("button",{onClick:()=>{setTriggerResetMultipleWells(triggerResetMultipleWells+1)}}," Reset Multiple Wells "))},VolveWellsWithResetButton={args:{id:"volve-wells",resources:{wellsData:"./volve_wells.json"},bounds:sharedSettings.z,layers:[{"@@type":"WellsLayer",data:"@@#resources.wellsData"}]},render:args=>react.createElement(WellsWithResetButton,args)};const CallbackStyledWells={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{color:function colorCallback(object){return object.properties.name.match("15/9-F-10")?[0,0,0,0]:object.properties.color},dash:function dashCallback(object){return object.properties.name.match("15/9-19")?[1.5,1.5]:"15/9-F-15"===object.properties.name},width:function widthCallback(object){return object.properties.name.match("15/9-F-1")?3:"15/9-F-4"===object.properties.name?8:5}},wellHeadStyle:{size:function wellheadSizeCallback(object){return object.properties.name.match("15/9-19")?0:8}},refine:!1,outline:!1}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with trajectory color, width and dash style supplied as callback."}}}},AllTrajectoryHidden={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{color:[0,0,0,0]},refine:!1,outline:!1}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with all trajectory hidden."}}}},AllWellHeadsHidden={args:{...defaultProps,layers:[{...sharedSettings.y8,wellHeadStyle:{size:0},refine:!1,outline:!1}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with all well heads hidden."}}}},testWell={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"GeometryCollection",geometries:[{type:"Point",coordinates:[0,0]},{type:"LineString",coordinates:[[0,0,0],[0,0,1],[0,0,2],[0,50,-50],[0,0,-100],[99,99,-150],[99,0,-250]]}]},properties:{name:"well99",color:[255,255,0,255],md:[[0,1,2,3,4,5,8,9]]}}]},BBox=[-100,-100,-250,100,100,0],WellsRefineComponent=props=>{const[refineNumber,setRefineNumber]=react.useState(1),propsWithLayers={...props,layers:[{"@@type":"WellsLayer",data:testWell,refine:refineNumber,ZIncreasingDownwards:!1},{"@@type":"AxesLayer",ZIncreasingDownwards:!1,bounds:BBox}]},handleChange=react.useCallback(((_event,value)=>{setRefineNumber(value)}),[]);return react.createElement(Root,null,react.createElement("div",{className:classes.main},react.createElement(SubsurfaceViewer.Z,propsWithLayers)),react.createElement(Slider.ZP,{min:1,max:10,defaultValue:1,step:1,onChange:handleChange,valueLabelDisplay:"auto"}))},WellsRefine={args:{id:"refine-wells",cameraPosition:{rotationOrbit:-45,rotationX:15,zoom:BBox,target:[]},views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"3D wells example"}}},render:args=>react.createElement(WellsRefineComponent,args),tags:["no-test"]},Wells3d={args:{...defaultProps,layers:[sharedSettings.y8],views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"3D wells example"}}}},VerticalWellWithDuplicates={args:{id:"well_176",bounds:[-150,-150,150,150],layers:[new wellsLayer.ZP({data:{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"GeometryCollection",geometries:[{type:"Point",coordinates:[0,0]},{type:"LineString",coordinates:[[0,0,-100],[0,0,-200],[0,0,-300],[0,0,-400],[0,0,-400],[0,0,-400],[0,0,-500],[0,0,-600],[0,0,-700],[0,0,-800]]}]},properties:{name:"wl6",color:[255,255,0,255],md:[[0,1,2,3,4,5,8,9]]}}]},ZIncreasingDownwards:!1}),new axesLayer.Z({id:"axes-layer",bounds:[-100,-100,-500,100,100,0],ZIncreasingDownwards:!1})],views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"One single vertical well"}}}},SimplifiedRenderingComponent=props=>{const[simplifiedRendering,setSimplifiedRendering]=react.useState(!1),propsWithLayers={...props,onDragStart:()=>setSimplifiedRendering(!0),onDragEnd:()=>setSimplifiedRendering(!1),layers:[new wellsLayer.ZP({data:"./gullfaks.json",wellHeadStyle:{size:4},refine:!0,outline:!0,simplifiedRendering:simplifiedRendering,ZIncreasingDownwards:!1}),new axesLayer.Z({id:"axes-layer",bounds:[45e4,6781e3,0,464e3,6791e3,3500]})]};return react.createElement(SubsurfaceViewer.Z,propsWithLayers)},SimplifiedRendering={args:{id:"gullfaks",bounds:[45e4,6781e3,464e3,6791e3],views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"3D gullfaks wells example"}}},render:args=>react.createElement(SimplifiedRenderingComponent,args)},Wells3dDashed={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{dash:!0},refine:!1,outline:!1}],views:sharedSettings.Pl},parameters:{docs:{description:{story:"3D dashed wells example"},...sharedSettings.R4.docs}}},ContinuousColorTableComponent=()=>{const[colorTable,setColorTable]=(0,react.useState)("Physics"),mapProps=react.useMemo((()=>({...defaultProps,layers:[{...continuousLogsLayer,logColor:colorTable}]})),[colorTable]);return react.createElement(react.Fragment,null,react.createElement(NativeSelect,{id:"test",label:"Color table",value:colorTable,onChange:event=>{setColorTable(event.target?.value)}},react.createElement("option",{key:"Physics"},"Physics"),react.createElement("option",{key:"Rainbow"},"Rainbow")),react.createElement("div",{style:{height:"80vh",position:"relative"}},react.createElement(SubsurfaceViewer.Z,mapProps)))},ContinuousColorTable={render:()=>react.createElement(ContinuousColorTableComponent,null)},wellLayers=[{...sharedSettings.y8,refine:!1,outline:!1,logData:"./volve_logs.json",logrunName:"BLOCKING",logName:"ZONELOG",logColor:"Stratigraphy",colorMappingFunction:(0,dist.rX)("Stratigraphy",!0,!0,[])}],WellLayerTemplate=args=>{const[colorName,setColorName]=react.useState("Rainbow"),[isLog,setIsLog]=react.useState(!1),wellLayerData=react.useCallback((data=>{setColorName(data)}),[]),getInterpolateMethod=react.useCallback((data=>{setIsLog(data.isLog)}),[]),layers=[{...args.wellLayers[0],colorMappingFunction:(0,dist.rX)(colorName,!0,!0,[]),logColor:colorName||wellLayers[0].logColor,isLog:isLog}];return react.createElement("div",null,react.createElement("div",{style:{float:"right",zIndex:999,opacity:1,position:"relative"}},react.createElement(dist.n6,_extends({},args,{getColorName:wellLayerData,getInterpolateMethod:getInterpolateMethod}))),react.createElement(SubsurfaceViewer.Z,_extends({},args,{layers:layers})))},LegendWithColorSelector={args:{min:0,max:.35,dataObjectName:"ZONELOG",position:[16,10],horizontal:!0,colorTables:dist.Su,discreteData:{Above_BCU:[[],0],ABOVE:[[],1],H12:[[],2],H11:[[],3],H10:[[],4],H9:[[],5],H8:[[],6],H7:[[],7],H6:[[],8],H5:[[],9],H4:[[],10],H3:[[],11],H2:[[],12],H1:[[],13],BELOW:[[],14]},...defaultProps,id:defaultProps.id,wellLayers:wellLayers,legend:{visible:!1},reverseRange:!1},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Clicking on legend opens(toggle) the color selector component and then click on the color scale to update the layer."}}},render:args=>react.createElement(WellLayerTemplate,args)},UnfoldedProjection={args:{id:"some-id",layers:[new wellsLayer.ZP({id:"volve",data:"./volve_wells.json",ZIncreasingDownwards:!1,id:"unfolded",section:!0}),new src_layers.Axes2DLayer],views:{...sharedSettings.zs,viewports:[{id:"viewport1",target:[2e3,-1500],zoom:-2.5}]},bounds:[0,-1e3,4e3,0]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Unfolded projection"}}}};VolveWells.parameters={...VolveWells.parameters,docs:{...VolveWells.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [volveWellsFromResourcesLayer]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example"\n }\n }\n }\n}',...VolveWells.parameters?.docs?.source}}},volveWells2.parameters={...volveWells2.parameters,docs:{...volveWells2.parameters?.docs,source:{originalSource:'{\n args: {\n id: "volve-wells",\n resources: {\n wellsData: "./volve_wells.json"\n },\n bounds: volveWellsBounds,\n layers: [{\n "@@type": "WellsLayer",\n data: "@@#resources.wellsData"\n }, {\n "@@type": "Axes2DLayer",\n id: "axes-layer2D",\n axisColor: [100, 100, 255],\n marginH: 100,\n // Horizontal margin (in pixels)\n marginV: 40 // Vertical margin (in pixels)\n }]\n },\n render: args => ,\n tags: ["no-test"]\n}',...volveWells2.parameters?.docs?.source}}},DiscreteWellLogs.parameters={...DiscreteWellLogs.parameters,docs:{...DiscreteWellLogs.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n refine: false,\n outline: false,\n logData: "volve_blocking_zonelog_logs.json",\n logrunName: "BLOCKING",\n logName: "ZONELOG",\n logColor: "Stratigraphy"\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with well logs."\n }\n }\n }\n}',...DiscreteWellLogs.parameters?.docs?.source}}},ContinuousWellLogs.parameters={...ContinuousWellLogs.parameters,docs:{...ContinuousWellLogs.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [continuousLogsLayer]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with well logs."\n }\n }\n }\n}',...ContinuousWellLogs.parameters?.docs?.source}}},DashedWells.parameters={...DashedWells.parameters,docs:{...DashedWells.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n dash: true\n },\n refine: false,\n outline: false\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with default dashed well trajectories."\n }\n }\n }\n}',...DashedWells.parameters?.docs?.source}}},MultipleVolveWells.parameters={...MultipleVolveWells.parameters,docs:{...MultipleVolveWells.parameters?.docs,source:{originalSource:'{\n args: {\n id: "volve-wells",\n resources: {\n wellsData: "./volve_wells_1.json",\n wellsData2: "./volve_wells_2.json"\n },\n bounds: volveWellsBounds,\n layers: [{\n "@@type": "WellsLayer",\n data: "@@#resources.wellsData",\n id: "id1"\n }, {\n "@@type": "WellsLayer",\n data: "@@#resources.wellsData2",\n id: "id2"\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Multiple Volve wells example"\n }\n }\n }\n}',...MultipleVolveWells.parameters?.docs?.source}}},CustomColoredWells.parameters={...CustomColoredWells.parameters,docs:{...CustomColoredWells.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n color: [255, 0, 0, 255],\n dash: [10, 3]\n },\n wellHeadStyle: {\n color: [255, 0, 0, 255]\n },\n refine: false,\n outline: false\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with dashed style and red trajectories, with custom style."\n }\n }\n }\n}',...CustomColoredWells.parameters?.docs?.source}}},CustomWidthWells.parameters={...CustomWidthWells.parameters,docs:{...CustomWidthWells.parameters?.docs,source:{originalSource:"{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n width: 10\n },\n refine: false,\n outline: false\n }]\n }\n}",...CustomWidthWells.parameters?.docs?.source}}},VolveWellsWithResetButton.parameters={...VolveWellsWithResetButton.parameters,docs:{...VolveWellsWithResetButton.parameters?.docs,source:{originalSource:'{\n args: {\n id: "volve-wells",\n resources: {\n wellsData: "./volve_wells.json"\n },\n bounds: volveWellsBounds,\n layers: [{\n "@@type": "WellsLayer",\n data: "@@#resources.wellsData"\n }]\n },\n render: args => \n}',...VolveWellsWithResetButton.parameters?.docs?.source}}},CallbackStyledWells.parameters={...CallbackStyledWells.parameters,docs:{...CallbackStyledWells.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n color: colorCallback,\n dash: dashCallback,\n width: widthCallback\n },\n wellHeadStyle: {\n size: wellheadSizeCallback\n },\n refine: false,\n outline: false\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with trajectory color, width and dash style supplied as callback."\n }\n }\n }\n}',...CallbackStyledWells.parameters?.docs?.source}}},AllTrajectoryHidden.parameters={...AllTrajectoryHidden.parameters,docs:{...AllTrajectoryHidden.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n color: [0, 0, 0, 0]\n },\n refine: false,\n outline: false\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with all trajectory hidden."\n }\n }\n }\n}',...AllTrajectoryHidden.parameters?.docs?.source}}},AllWellHeadsHidden.parameters={...AllWellHeadsHidden.parameters,docs:{...AllWellHeadsHidden.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n wellHeadStyle: {\n size: 0\n },\n refine: false,\n outline: false\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with all well heads hidden."\n }\n }\n }\n}',...AllWellHeadsHidden.parameters?.docs?.source}}},WellsRefine.parameters={...WellsRefine.parameters,docs:{...WellsRefine.parameters?.docs,source:{originalSource:'{\n args: {\n id: "refine-wells",\n cameraPosition: {\n rotationOrbit: -45,\n rotationX: 15,\n zoom: BBox,\n target: []\n },\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "3D wells example"\n }\n }\n },\n render: args => ,\n tags: ["no-test"]\n}',...WellsRefine.parameters?.docs?.source}}},Wells3d.parameters={...Wells3d.parameters,docs:{...Wells3d.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [volveWellsFromResourcesLayer],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "3D wells example"\n }\n }\n }\n}',...Wells3d.parameters?.docs?.source}}},VerticalWellWithDuplicates.parameters={...VerticalWellWithDuplicates.parameters,docs:{...VerticalWellWithDuplicates.parameters?.docs,source:{originalSource:'{\n args: {\n id: "well_176",\n bounds: [-150, -150, 150, 150],\n layers: [new WellsLayer({\n data: testWellWithDuplicates,\n ZIncreasingDownwards: false\n }), new AxesLayer({\n id: "axes-layer",\n bounds: [-100, -100, -500, 100, 100, 0],\n ZIncreasingDownwards: false\n })],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "One single vertical well"\n }\n }\n }\n}',...VerticalWellWithDuplicates.parameters?.docs?.source}}},SimplifiedRendering.parameters={...SimplifiedRendering.parameters,docs:{...SimplifiedRendering.parameters?.docs,source:{originalSource:'{\n args: {\n id: "gullfaks",\n bounds: ([450000, 6781000, 464000, 6791000] as [number, number, number, number]),\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "3D gullfaks wells example"\n }\n }\n },\n render: args => \n}',...SimplifiedRendering.parameters?.docs?.source}}},Wells3dDashed.parameters={...Wells3dDashed.parameters,docs:{...Wells3dDashed.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n dash: true\n },\n refine: false,\n outline: false\n }],\n views: default3DViews\n },\n parameters: {\n docs: {\n description: {\n story: "3D dashed wells example"\n },\n ...defaultStoryParameters.docs\n }\n }\n}',...Wells3dDashed.parameters?.docs?.source}}},ContinuousColorTable.parameters={...ContinuousColorTable.parameters,docs:{...ContinuousColorTable.parameters?.docs,source:{originalSource:"{\n render: () => \n}",...ContinuousColorTable.parameters?.docs?.source}}},LegendWithColorSelector.parameters={...LegendWithColorSelector.parameters,docs:{...LegendWithColorSelector.parameters?.docs,source:{originalSource:'{\n args: {\n min,\n max,\n dataObjectName,\n position,\n horizontal,\n colorTables,\n discreteData,\n ...defaultProps,\n id: defaultProps.id,\n wellLayers,\n legend: {\n visible: false\n },\n reverseRange\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Clicking on legend opens(toggle) the color selector component and then click on the color scale to update the layer."\n }\n }\n },\n render: args => \n}',...LegendWithColorSelector.parameters?.docs?.source}}},UnfoldedProjection.parameters={...UnfoldedProjection.parameters,docs:{...UnfoldedProjection.parameters?.docs,source:{originalSource:'{\n args: {\n id: "some-id",\n layers: [WELLS_UNFOLDED, new Axes2DLayer()],\n views: {\n ...default2DViews,\n viewports: [{\n id: "viewport1",\n target: [2000, -1500],\n zoom: -2.5\n }]\n },\n bounds: [0, -1000, 4000, 0]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Unfolded projection"\n }\n }\n }\n}',...UnfoldedProjection.parameters?.docs?.source},description:{story:"Example well with unfolded projection",...UnfoldedProjection.parameters?.docs?.description}}};const __namedExportsOrder=["VolveWells","volveWells2","DiscreteWellLogs","ContinuousWellLogs","DashedWells","MultipleVolveWells","CustomColoredWells","CustomWidthWells","VolveWellsWithResetButton","CallbackStyledWells","AllTrajectoryHidden","AllWellHeadsHidden","WellsRefine","Wells3d","VerticalWellWithDuplicates","SimplifiedRendering","Wells3dDashed","ContinuousColorTable","LegendWithColorSelector","UnfoldedProjection"]},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Label/Label.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{_:function(){return Label}});var react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),templates=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs"),esm=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-tokens/dist/esm/index.mjs");const{colors:colors,spacings:{comfortable:comfortable},typography:typography}=esm.tokens,label={background:colors.ui.background__light.rgba,typography:{...typography.input.label,color:colors.text.static_icons__tertiary.rgba},spacings:{left:comfortable.small,right:comfortable.small,top:"6px",bottom:"6px"},states:{disabled:{typography:{color:colors.interactive.disabled__text.rgba}}}};var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const LabelBase=styled_components_browser_esm.ZP.label.withConfig({displayName:"Label__LabelBase",componentId:"sc-1gi2bcn-0"})(["display:flex;justify-content:space-between;position:relative;"," margin-left:",";margin-right:",";color:",";"],(0,templates.oc)(label.typography),label.spacings.left,label.spacings.right,(({$disabledText:$disabledText})=>$disabledText?label.states.disabled.typography.color:label.typography.color)),Text=styled_components_browser_esm.ZP.span.withConfig({displayName:"Label__Text",componentId:"sc-1gi2bcn-1"})(["margin:0;"]),Label=(0,react.forwardRef)((function Label(props,ref){const{label:label="",meta:meta,disabled:disabled=!1,...other}=props;return(0,jsx_runtime.jsxs)(LabelBase,{ref:ref,$disabledText:disabled,...other,children:[(0,jsx_runtime.jsx)(Text,{children:label}),meta&&(0,jsx_runtime.jsx)(Text,{children:meta})]})}))}}]); \ No newline at end of file diff --git a/storybook-static/subsurface-viewer-src-storybook-layers-WellsLayer-stories.de7f47c7.iframe.bundle.js b/storybook-static/subsurface-viewer-src-storybook-layers-WellsLayer-stories.de7f47c7.iframe.bundle.js deleted file mode 100644 index 365f0f75c..000000000 --- a/storybook-static/subsurface-viewer-src-storybook-layers-WellsLayer-stories.de7f47c7.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[9020],{"./packages/subsurface-viewer/src/storybook/layers/WellsLayer.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AllTrajectoryHidden:function(){return AllTrajectoryHidden},AllWellHeadsHidden:function(){return AllWellHeadsHidden},CallbackStyledWells:function(){return CallbackStyledWells},ContinuousColorTable:function(){return ContinuousColorTable},ContinuousWellLogs:function(){return ContinuousWellLogs},CustomColoredWells:function(){return CustomColoredWells},CustomWidthWells:function(){return CustomWidthWells},DashedWells:function(){return DashedWells},DiscreteWellLogs:function(){return DiscreteWellLogs},LegendWithColorSelector:function(){return LegendWithColorSelector},MultipleVolveWells:function(){return MultipleVolveWells},SimplifiedRendering:function(){return SimplifiedRendering},UnfoldedProjection:function(){return UnfoldedProjection},VerticalWellWithDuplicates:function(){return VerticalWellWithDuplicates},VolveWells:function(){return VolveWells},VolveWellsWithResetButton:function(){return VolveWellsWithResetButton},Wells3d:function(){return Wells3d},Wells3dDashed:function(){return Wells3dDashed},WellsRefine:function(){return WellsRefine},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return WellsLayer_stories},volveWells2:function(){return volveWells2}});var react=__webpack_require__("./node_modules/react/index.js"),Slider=__webpack_require__("./node_modules/@mui/material/Slider/Slider.js"),styled=__webpack_require__("./node_modules/@mui/material/styles/styled.js"),dist=__webpack_require__("./node_modules/@emerson-eps/color-tables/dist/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),esm=__webpack_require__("./node_modules/@equinor/eds-tokens/dist/esm/index.mjs");const{colors:colors,spacings:{comfortable:{small:small,x_small:x_small}},typography:typography,shape:shape}=esm.tokens,nativeselect={background:colors.ui.background__light.rgba,typography:{...typography.input.text,color:colors.text.static_icons__default.rgba},entities:{input:{spacings:{left:small,right:small,top:"6px",bottom:"6px"}},icon:{width:"24px"}},boxShadow:"inset 0 -1px 0 0 "+colors.text.static_icons__tertiary.rgba,states:{focus:{outline:{type:"outline",width:"2px",color:colors.interactive.primary__resting.rgba,style:"solid",offset:"0px"}},disabled:{typography:{color:colors.interactive.disabled__text.rgba}}},modes:{compact:{minHeight:shape._modes.compact.straight.minHeight,entities:{input:{spacings:{left:x_small,right:x_small,top:"0",bottom:"0"}}}}}};var templates=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs"),templates_focus=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/focus.mjs"),useToken=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/hooks/useToken.mjs"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),eds_context=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/EdsProvider/eds.context.js"),Label=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Label/Label.js");const Container=styled_components_browser_esm.ZP.div.withConfig({displayName:"NativeSelect__Container",componentId:"sc-82vb16-0"})(["min-width:100px;width:100%;"]),StyledSelect=styled_components_browser_esm.ZP.select.withConfig({displayName:"NativeSelect__StyledSelect",componentId:"sc-82vb16-1"})(["border:none;border-radius:0;box-shadow:",";"," "," padding-right:calc("," *2 + ",");display:block;margin:0;appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%236f6f6f' d='M7 9.5l5 5 5-5H7z'/%3E%3C/svg%3E\"),linear-gradient( to bottom,"," 0%,"," 100% );background-repeat:no-repeat,repeat;background-position:right "," top 50%;width:100%;&:active,&:focus{box-shadow:none;","}&:disabled{color:",";background-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23bebebe' d='M7 9.5l5 5 5-5H7z'/%3E%3C/svg%3E\"),linear-gradient( to bottom,"," 0%,"," 100% );cursor:not-allowed;box-shadow:none;outline:none;.arrow-icon{fill:red;}&:focus,&:active{outline:none;}}"],nativeselect.boxShadow,(0,templates.oc)(nativeselect.typography),(({theme:theme})=>(0,styled_components_browser_esm.iv)(["height:",";",""],theme.minHeight,(0,templates.SH)(theme.entities.input.spacings))),nativeselect.entities.input.spacings.right,nativeselect.entities.icon.width,nativeselect.background,nativeselect.background,nativeselect.entities.input.spacings.right,(0,templates_focus.p)(nativeselect.states.focus.outline),nativeselect.states.disabled.typography.color,nativeselect.background,nativeselect.background),NativeSelect=(0,react.forwardRef)((function NativeSelect({label:label,children:children,className:className,style:style,selectRef:selectRef,id:id,meta:meta,disabled:disabled=!1,multiple:multiple=!1,...other},ref){const{density:density}=(0,eds_context.q)(),token=(0,useToken.d)({density:density},nativeselect),containerProps={ref:ref,className:className,style:style},selectProps={ref:selectRef,id:id,disabled:disabled,multiple:multiple,...other},labelProps={htmlFor:id,label:label,meta:meta,disabled:disabled},showLabel=label||meta;return(0,jsx_runtime.jsx)(styled_components_browser_esm.f6,{theme:token,children:(0,jsx_runtime.jsxs)(Container,{...containerProps,children:[showLabel&&(0,jsx_runtime.jsx)(Label._,{...labelProps}),(0,jsx_runtime.jsx)(StyledSelect,{...selectProps,children:children})]})})}));var SubsurfaceViewer=__webpack_require__("./packages/subsurface-viewer/src/SubsurfaceViewer.tsx"),axesLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/axes/axesLayer.ts"),wellsLayer=__webpack_require__("./packages/subsurface-viewer/src/layers/wells/wellsLayer.ts"),sharedSettings=__webpack_require__("./packages/subsurface-viewer/src/storybook/sharedSettings.tsx"),src_layers=__webpack_require__("./packages/subsurface-viewer/src/layers/index.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i{const onMouseEvent=react.useCallback((event=>{console.log(event)}),[]);return react.createElement(react.Fragment,null,react.createElement(SubsurfaceViewer.Z,_extends({},props,{onMouseEvent:onMouseEvent})),react.createElement("div",{style:{position:"absolute",marginLeft:200}}))},volveWells2={args:{id:"volve-wells",resources:{wellsData:"./volve_wells.json"},bounds:sharedSettings.z,layers:[{"@@type":"WellsLayer",data:"@@#resources.wellsData"},{"@@type":"Axes2DLayer",id:"axes-layer2D",axisColor:[100,100,255],marginH:100,marginV:40}]},render:args=>react.createElement(VolveWellsWithMouseCallback,args),tags:["no-test"]},DiscreteWellLogs={args:{...defaultProps,layers:[{...sharedSettings.y8,refine:!1,outline:!1,logData:"volve_blocking_zonelog_logs.json",logrunName:"BLOCKING",logName:"ZONELOG",logColor:"Stratigraphy"}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with well logs."}}}},ContinuousWellLogs={args:{...defaultProps,layers:[continuousLogsLayer]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with well logs."}}}},DashedWells={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{dash:!0},refine:!1,outline:!1}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with default dashed well trajectories."}}}},MultipleVolveWells={args:{id:"volve-wells",resources:{wellsData:"./volve_wells_1.json",wellsData2:"./volve_wells_2.json"},bounds:sharedSettings.z,layers:[{"@@type":"WellsLayer",data:"@@#resources.wellsData",id:"id1"},{"@@type":"WellsLayer",data:"@@#resources.wellsData2",id:"id2"}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Multiple Volve wells example"}}}},CustomColoredWells={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{color:[255,0,0,255],dash:[10,3]},wellHeadStyle:{color:[255,0,0,255]},refine:!1,outline:!1}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with dashed style and red trajectories, with custom style."}}}},CustomWidthWells={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{width:10},refine:!1,outline:!1}]}},WellsWithResetButton=props=>{const[editedData,setEditedData]=react.useState(props.editedData),[triggerResetMultipleWells,setTriggerResetMultipleWells]=react.useState(0);return react.useEffect((()=>{setEditedData(props.editedData)}),[props.editedData]),react.createElement(Root,null,react.createElement("div",{className:classes.main},react.createElement(SubsurfaceViewer.Z,_extends({},props,{editedData:editedData,setProps:updatedProps=>{setEditedData(updatedProps)},triggerResetMultipleWells:triggerResetMultipleWells}))),react.createElement("button",{onClick:()=>{setTriggerResetMultipleWells(triggerResetMultipleWells+1)}}," Reset Multiple Wells "))},VolveWellsWithResetButton={args:{id:"volve-wells",resources:{wellsData:"./volve_wells.json"},bounds:sharedSettings.z,layers:[{"@@type":"WellsLayer",data:"@@#resources.wellsData"}]},render:args=>react.createElement(WellsWithResetButton,args)};const CallbackStyledWells={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{color:function colorCallback(object){return object.properties.name.match("15/9-F-10")?[0,0,0,0]:object.properties.color},dash:function dashCallback(object){return object.properties.name.match("15/9-19")?[1.5,1.5]:"15/9-F-15"===object.properties.name},width:function widthCallback(object){return object.properties.name.match("15/9-F-1")?3:"15/9-F-4"===object.properties.name?8:5}},wellHeadStyle:{size:function wellheadSizeCallback(object){return object.properties.name.match("15/9-19")?0:8}},refine:!1,outline:!1}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with trajectory color, width and dash style supplied as callback."}}}},AllTrajectoryHidden={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{color:[0,0,0,0]},refine:!1,outline:!1}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with all trajectory hidden."}}}},AllWellHeadsHidden={args:{...defaultProps,layers:[{...sharedSettings.y8,wellHeadStyle:{size:0},refine:!1,outline:!1}]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Volve wells example with all well heads hidden."}}}},testWell={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"GeometryCollection",geometries:[{type:"Point",coordinates:[0,0]},{type:"LineString",coordinates:[[0,0,0],[0,0,1],[0,0,2],[0,50,-50],[0,0,-100],[99,99,-150],[99,0,-250]]}]},properties:{name:"well99",color:[255,255,0,255],md:[[0,1,2,3,4,5,8,9]]}}]},BBox=[-100,-100,-250,100,100,0],WellsRefineComponent=props=>{const[refineNumber,setRefineNumber]=react.useState(1),propsWithLayers={...props,layers:[{"@@type":"WellsLayer",data:testWell,refine:refineNumber,ZIncreasingDownwards:!1},{"@@type":"AxesLayer",ZIncreasingDownwards:!1,bounds:BBox}]},handleChange=react.useCallback(((_event,value)=>{setRefineNumber(value)}),[]);return react.createElement(Root,null,react.createElement("div",{className:classes.main},react.createElement(SubsurfaceViewer.Z,propsWithLayers)),react.createElement(Slider.ZP,{min:1,max:10,defaultValue:1,step:1,onChange:handleChange,valueLabelDisplay:"auto"}))},WellsRefine={args:{id:"refine-wells",cameraPosition:{rotationOrbit:-45,rotationX:15,zoom:BBox,target:[]},views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"3D wells example"}}},render:args=>react.createElement(WellsRefineComponent,args),tags:["no-test"]},Wells3d={args:{...defaultProps,layers:[sharedSettings.y8],views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"3D wells example"}}}},VerticalWellWithDuplicates={args:{id:"well_176",bounds:[-150,-150,150,150],layers:[new wellsLayer.ZP({data:{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"GeometryCollection",geometries:[{type:"Point",coordinates:[0,0]},{type:"LineString",coordinates:[[0,0,-100],[0,0,-200],[0,0,-300],[0,0,-400],[0,0,-400],[0,0,-400],[0,0,-500],[0,0,-600],[0,0,-700],[0,0,-800]]}]},properties:{name:"wl6",color:[255,255,0,255],md:[[0,1,2,3,4,5,8,9]]}}]},ZIncreasingDownwards:!1}),new axesLayer.Z({id:"axes-layer",bounds:[-100,-100,-500,100,100,0],ZIncreasingDownwards:!1})],views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"One single vertical well"}}}},SimplifiedRenderingComponent=props=>{const[simplifiedRendering,setSimplifiedRendering]=react.useState(!1),propsWithLayers={...props,onDragStart:()=>setSimplifiedRendering(!0),onDragEnd:()=>setSimplifiedRendering(!1),layers:[new wellsLayer.ZP({data:"./gullfaks.json",wellHeadStyle:{size:4},refine:!0,outline:!0,simplifiedRendering:simplifiedRendering,ZIncreasingDownwards:!1}),new axesLayer.Z({id:"axes-layer",bounds:[45e4,6781e3,0,464e3,6791e3,3500]})]};return react.createElement(SubsurfaceViewer.Z,propsWithLayers)},SimplifiedRendering={args:{id:"gullfaks",bounds:[45e4,6781e3,464e3,6791e3],views:sharedSettings.Pl},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"3D gullfaks wells example"}}},render:args=>react.createElement(SimplifiedRenderingComponent,args)},Wells3dDashed={args:{...defaultProps,layers:[{...sharedSettings.y8,lineStyle:{dash:!0},refine:!1,outline:!1}],views:sharedSettings.Pl},parameters:{docs:{description:{story:"3D dashed wells example"},...sharedSettings.R4.docs}}},ContinuousColorTableComponent=()=>{const[colorTable,setColorTable]=(0,react.useState)("Physics"),mapProps=react.useMemo((()=>({...defaultProps,layers:[{...continuousLogsLayer,logColor:colorTable}]})),[colorTable]);return react.createElement(react.Fragment,null,react.createElement(NativeSelect,{id:"test",label:"Color table",value:colorTable,onChange:event=>{setColorTable(event.target?.value)}},react.createElement("option",{key:"Physics"},"Physics"),react.createElement("option",{key:"Rainbow"},"Rainbow")),react.createElement("div",{style:{height:"80vh",position:"relative"}},react.createElement(SubsurfaceViewer.Z,mapProps)))},ContinuousColorTable={render:()=>react.createElement(ContinuousColorTableComponent,null)},wellLayers=[{...sharedSettings.y8,refine:!1,outline:!1,logData:"./volve_logs.json",logrunName:"BLOCKING",logName:"ZONELOG",logColor:"Stratigraphy",colorMappingFunction:(0,dist.rX)("Stratigraphy",!0,!0,[])}],WellLayerTemplate=args=>{const[colorName,setColorName]=react.useState("Rainbow"),[isLog,setIsLog]=react.useState(!1),wellLayerData=react.useCallback((data=>{setColorName(data)}),[]),getInterpolateMethod=react.useCallback((data=>{setIsLog(data.isLog)}),[]),layers=[{...args.wellLayers[0],colorMappingFunction:(0,dist.rX)(colorName,!0,!0,[]),logColor:colorName||wellLayers[0].logColor,isLog:isLog}];return react.createElement("div",null,react.createElement("div",{style:{float:"right",zIndex:999,opacity:1,position:"relative"}},react.createElement(dist.n6,_extends({},args,{getColorName:wellLayerData,getInterpolateMethod:getInterpolateMethod}))),react.createElement(SubsurfaceViewer.Z,_extends({},args,{layers:layers})))},LegendWithColorSelector={args:{min:0,max:.35,dataObjectName:"ZONELOG",position:[16,10],horizontal:!0,colorTables:dist.Su,discreteData:{Above_BCU:[[],0],ABOVE:[[],1],H12:[[],2],H11:[[],3],H10:[[],4],H9:[[],5],H8:[[],6],H7:[[],7],H6:[[],8],H5:[[],9],H4:[[],10],H3:[[],11],H2:[[],12],H1:[[],13],BELOW:[[],14]},...defaultProps,id:defaultProps.id,wellLayers:wellLayers,legend:{visible:!1},reverseRange:!1},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Clicking on legend opens(toggle) the color selector component and then click on the color scale to update the layer."}}},render:args=>react.createElement(WellLayerTemplate,args)},UnfoldedProjection={args:{id:"some-id",layers:[new wellsLayer.ZP({id:"volve",data:"./volve_wells.json",ZIncreasingDownwards:!1,id:"unfolded",section:!0}),new src_layers.Axes2DLayer],views:{...sharedSettings.zs,viewports:[{id:"viewport1",target:[2e3,-1500],zoom:-2.5}]},bounds:[0,-1e3,4e3,0]},parameters:{docs:{...sharedSettings.R4.docs,description:{story:"Unfolded projection"}}}};VolveWells.parameters={...VolveWells.parameters,docs:{...VolveWells.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [volveWellsFromResourcesLayer]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example"\n }\n }\n }\n}',...VolveWells.parameters?.docs?.source}}},volveWells2.parameters={...volveWells2.parameters,docs:{...volveWells2.parameters?.docs,source:{originalSource:'{\n args: {\n id: "volve-wells",\n resources: {\n wellsData: "./volve_wells.json"\n },\n bounds: volveWellsBounds,\n layers: [{\n "@@type": "WellsLayer",\n data: "@@#resources.wellsData"\n }, {\n "@@type": "Axes2DLayer",\n id: "axes-layer2D",\n axisColor: [100, 100, 255],\n marginH: 100,\n // Horizontal margin (in pixels)\n marginV: 40 // Vertical margin (in pixels)\n }]\n },\n render: args => ,\n tags: ["no-test"]\n}',...volveWells2.parameters?.docs?.source}}},DiscreteWellLogs.parameters={...DiscreteWellLogs.parameters,docs:{...DiscreteWellLogs.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n refine: false,\n outline: false,\n logData: "volve_blocking_zonelog_logs.json",\n logrunName: "BLOCKING",\n logName: "ZONELOG",\n logColor: "Stratigraphy"\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with well logs."\n }\n }\n }\n}',...DiscreteWellLogs.parameters?.docs?.source}}},ContinuousWellLogs.parameters={...ContinuousWellLogs.parameters,docs:{...ContinuousWellLogs.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [continuousLogsLayer]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with well logs."\n }\n }\n }\n}',...ContinuousWellLogs.parameters?.docs?.source}}},DashedWells.parameters={...DashedWells.parameters,docs:{...DashedWells.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n dash: true\n },\n refine: false,\n outline: false\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with default dashed well trajectories."\n }\n }\n }\n}',...DashedWells.parameters?.docs?.source}}},MultipleVolveWells.parameters={...MultipleVolveWells.parameters,docs:{...MultipleVolveWells.parameters?.docs,source:{originalSource:'{\n args: {\n id: "volve-wells",\n resources: {\n wellsData: "./volve_wells_1.json",\n wellsData2: "./volve_wells_2.json"\n },\n bounds: volveWellsBounds,\n layers: [{\n "@@type": "WellsLayer",\n data: "@@#resources.wellsData",\n id: "id1"\n }, {\n "@@type": "WellsLayer",\n data: "@@#resources.wellsData2",\n id: "id2"\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Multiple Volve wells example"\n }\n }\n }\n}',...MultipleVolveWells.parameters?.docs?.source}}},CustomColoredWells.parameters={...CustomColoredWells.parameters,docs:{...CustomColoredWells.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n color: [255, 0, 0, 255],\n dash: [10, 3]\n },\n wellHeadStyle: {\n color: [255, 0, 0, 255]\n },\n refine: false,\n outline: false\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with dashed style and red trajectories, with custom style."\n }\n }\n }\n}',...CustomColoredWells.parameters?.docs?.source}}},CustomWidthWells.parameters={...CustomWidthWells.parameters,docs:{...CustomWidthWells.parameters?.docs,source:{originalSource:"{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n width: 10\n },\n refine: false,\n outline: false\n }]\n }\n}",...CustomWidthWells.parameters?.docs?.source}}},VolveWellsWithResetButton.parameters={...VolveWellsWithResetButton.parameters,docs:{...VolveWellsWithResetButton.parameters?.docs,source:{originalSource:'{\n args: {\n id: "volve-wells",\n resources: {\n wellsData: "./volve_wells.json"\n },\n bounds: volveWellsBounds,\n layers: [{\n "@@type": "WellsLayer",\n data: "@@#resources.wellsData"\n }]\n },\n render: args => \n}',...VolveWellsWithResetButton.parameters?.docs?.source}}},CallbackStyledWells.parameters={...CallbackStyledWells.parameters,docs:{...CallbackStyledWells.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n color: colorCallback,\n dash: dashCallback,\n width: widthCallback\n },\n wellHeadStyle: {\n size: wellheadSizeCallback\n },\n refine: false,\n outline: false\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with trajectory color, width and dash style supplied as callback."\n }\n }\n }\n}',...CallbackStyledWells.parameters?.docs?.source}}},AllTrajectoryHidden.parameters={...AllTrajectoryHidden.parameters,docs:{...AllTrajectoryHidden.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n color: [0, 0, 0, 0]\n },\n refine: false,\n outline: false\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with all trajectory hidden."\n }\n }\n }\n}',...AllTrajectoryHidden.parameters?.docs?.source}}},AllWellHeadsHidden.parameters={...AllWellHeadsHidden.parameters,docs:{...AllWellHeadsHidden.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n wellHeadStyle: {\n size: 0\n },\n refine: false,\n outline: false\n }]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Volve wells example with all well heads hidden."\n }\n }\n }\n}',...AllWellHeadsHidden.parameters?.docs?.source}}},WellsRefine.parameters={...WellsRefine.parameters,docs:{...WellsRefine.parameters?.docs,source:{originalSource:'{\n args: {\n id: "refine-wells",\n cameraPosition: {\n rotationOrbit: -45,\n rotationX: 15,\n zoom: BBox,\n target: []\n },\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "3D wells example"\n }\n }\n },\n render: args => ,\n tags: ["no-test"]\n}',...WellsRefine.parameters?.docs?.source}}},Wells3d.parameters={...Wells3d.parameters,docs:{...Wells3d.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [volveWellsFromResourcesLayer],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "3D wells example"\n }\n }\n }\n}',...Wells3d.parameters?.docs?.source}}},VerticalWellWithDuplicates.parameters={...VerticalWellWithDuplicates.parameters,docs:{...VerticalWellWithDuplicates.parameters?.docs,source:{originalSource:'{\n args: {\n id: "well_176",\n bounds: [-150, -150, 150, 150],\n layers: [new WellsLayer({\n data: testWellWithDuplicates,\n ZIncreasingDownwards: false\n }), new AxesLayer({\n id: "axes-layer",\n bounds: [-100, -100, -500, 100, 100, 0],\n ZIncreasingDownwards: false\n })],\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "One single vertical well"\n }\n }\n }\n}',...VerticalWellWithDuplicates.parameters?.docs?.source}}},SimplifiedRendering.parameters={...SimplifiedRendering.parameters,docs:{...SimplifiedRendering.parameters?.docs,source:{originalSource:'{\n args: {\n id: "gullfaks",\n bounds: ([450000, 6781000, 464000, 6791000] as [number, number, number, number]),\n views: default3DViews\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "3D gullfaks wells example"\n }\n }\n },\n render: args => \n}',...SimplifiedRendering.parameters?.docs?.source}}},Wells3dDashed.parameters={...Wells3dDashed.parameters,docs:{...Wells3dDashed.parameters?.docs,source:{originalSource:'{\n args: {\n ...defaultProps,\n layers: [{\n ...volveWellsFromResourcesLayer,\n lineStyle: {\n dash: true\n },\n refine: false,\n outline: false\n }],\n views: default3DViews\n },\n parameters: {\n docs: {\n description: {\n story: "3D dashed wells example"\n },\n ...defaultStoryParameters.docs\n }\n }\n}',...Wells3dDashed.parameters?.docs?.source}}},ContinuousColorTable.parameters={...ContinuousColorTable.parameters,docs:{...ContinuousColorTable.parameters?.docs,source:{originalSource:"{\n render: () => \n}",...ContinuousColorTable.parameters?.docs?.source}}},LegendWithColorSelector.parameters={...LegendWithColorSelector.parameters,docs:{...LegendWithColorSelector.parameters?.docs,source:{originalSource:'{\n args: {\n min,\n max,\n dataObjectName,\n position,\n horizontal,\n colorTables,\n discreteData,\n ...defaultProps,\n id: defaultProps.id,\n wellLayers,\n legend: {\n visible: false\n },\n reverseRange\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Clicking on legend opens(toggle) the color selector component and then click on the color scale to update the layer."\n }\n }\n },\n render: args => \n}',...LegendWithColorSelector.parameters?.docs?.source}}},UnfoldedProjection.parameters={...UnfoldedProjection.parameters,docs:{...UnfoldedProjection.parameters?.docs,source:{originalSource:'{\n args: {\n id: "some-id",\n layers: [WELLS_UNFOLDED, new Axes2DLayer()],\n views: {\n ...default2DViews,\n viewports: [{\n id: "viewport1",\n target: [2000, -1500],\n zoom: -2.5\n }]\n },\n bounds: [0, -1000, 4000, 0]\n },\n parameters: {\n docs: {\n ...defaultStoryParameters.docs,\n description: {\n story: "Unfolded projection"\n }\n }\n }\n}',...UnfoldedProjection.parameters?.docs?.source},description:{story:"Example well with unfolded projection",...UnfoldedProjection.parameters?.docs?.description}}};const __namedExportsOrder=["VolveWells","volveWells2","DiscreteWellLogs","ContinuousWellLogs","DashedWells","MultipleVolveWells","CustomColoredWells","CustomWidthWells","VolveWellsWithResetButton","CallbackStyledWells","AllTrajectoryHidden","AllWellHeadsHidden","WellsRefine","Wells3d","VerticalWellWithDuplicates","SimplifiedRendering","Wells3dDashed","ContinuousColorTable","LegendWithColorSelector","UnfoldedProjection"]},"./packages/subsurface-viewer/node_modules/@equinor/eds-core-react/dist/esm/components/Label/Label.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{_:function(){return Label}});var react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),templates=__webpack_require__("./packages/subsurface-viewer/node_modules/@equinor/eds-utils/dist/esm/utils/templates/index.mjs"),esm=__webpack_require__("./node_modules/@equinor/eds-tokens/dist/esm/index.mjs");const{colors:colors,spacings:{comfortable:comfortable},typography:typography}=esm.tokens,label={background:colors.ui.background__light.rgba,typography:{...typography.input.label,color:colors.text.static_icons__tertiary.rgba},spacings:{left:comfortable.small,right:comfortable.small,top:"6px",bottom:"6px"},states:{disabled:{typography:{color:colors.interactive.disabled__text.rgba}}}};var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");const LabelBase=styled_components_browser_esm.ZP.label.withConfig({displayName:"Label__LabelBase",componentId:"sc-1gi2bcn-0"})(["display:flex;justify-content:space-between;position:relative;"," margin-left:",";margin-right:",";color:",";"],(0,templates.oc)(label.typography),label.spacings.left,label.spacings.right,(({$disabledText:$disabledText})=>$disabledText?label.states.disabled.typography.color:label.typography.color)),Text=styled_components_browser_esm.ZP.span.withConfig({displayName:"Label__Text",componentId:"sc-1gi2bcn-1"})(["margin:0;"]),Label=(0,react.forwardRef)((function Label(props,ref){const{label:label="",meta:meta,disabled:disabled=!1,...other}=props;return(0,jsx_runtime.jsxs)(LabelBase,{ref:ref,$disabledText:disabled,...other,children:[(0,jsx_runtime.jsx)(Text,{children:label}),meta&&(0,jsx_runtime.jsx)(Text,{children:meta})]})}))}}]); \ No newline at end of file diff --git a/storybook-static/well-completions-plot-src-WellCompletionsPlot-stories.c9e5ba1f.iframe.bundle.js b/storybook-static/well-completions-plot-src-WellCompletionsPlot-stories.c9e5ba1f.iframe.bundle.js deleted file mode 100644 index c6020ac14..000000000 --- a/storybook-static/well-completions-plot-src-WellCompletionsPlot-stories.c9e5ba1f.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_webviz_subsurface_components=self.webpackChunk_webviz_subsurface_components||[]).push([[5407],{"./packages/well-completions-plot/src/WellCompletionsPlot.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{WellCompletionsPlotStory:function(){return WellCompletionsPlotStory},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return WellCompletionsPlot_stories}});var react=__webpack_require__("./node_modules/react/index.js"),index_esm=__webpack_require__("./node_modules/react-resize-detector/build/index.esm.js"),index_es=__webpack_require__("./node_modules/react-tooltip/dist/index.es.js");const TooltipContext=react.createContext({setContent:()=>null}),TooltipProvider=({children:children})=>{const[Content,setContent]=react.useState(null),value=react.useMemo((()=>({setContent:setContent})),[setContent]);return react.createElement(TooltipContext.Provider,{value:value},children,react.createElement(index_es.Z,{id:"plot-tooltip",getContent:()=>Content}))},useTooltip=()=>react.useContext(TooltipContext);TooltipProvider.__docgenInfo={description:"A tooltip provider for React components.\n\nChildren of this provider can use the hook useTooltip to\naccess setContent method which accepts a React component\nthat will be displayed in the tooltip. Hiding the tooltip is\ndone with setContent(null)",methods:[],displayName:"TooltipProvider"};const CompletionTooltipContent=props=>react.createElement("table",{style:{color:"#fff"}},react.createElement("tbody",null,[["Well name",props.wellName],["Stratigraphy",props.zoneName],["Open",props.completionData.open],["Shut",props.completionData.shut],["Kh Mean",`${props.completionData.khMean.toFixed(props.decimalPlaces)}${props.khUnit}`],["Kh Min",`${props.completionData.khMin.toFixed(props.decimalPlaces)}${props.khUnit}`],["Kh Max",`${props.completionData.khMax.toFixed(props.decimalPlaces)}${props.khUnit}`]].map((([key,value])=>react.createElement("tr",{key:`tooltip-${key}-${value}`},react.createElement("td",null,react.createElement("b",null,key)),react.createElement("td",null,value))))));CompletionTooltipContent.displayName="CompletionTooltipContent";const CompletionsPlot=props=>{const{setContent:setContent}=useTooltip(),decimalPlaces=props.plotData.units.kh.decimalPlaces,khUnit=props.plotData.units.kh.unit.length>0?` ${props.plotData.units.kh.unit}`:"",wellWidth=props.layout.xExtent/Math.max(props.plotData.wells.length,1),barHeight=props.layout.yExtent/Math.max(props.plotData.stratigraphy.length,1),onMouseMove=react.useCallback((function onMouseOver(e,well,completion){const zoneName=props.plotData.stratigraphy[Math.floor((e.nativeEvent.offsetY-props.padding.top)/barHeight)].name;setContent((()=>react.createElement(CompletionTooltipContent,{zoneName:zoneName,wellName:well.name,completionData:completion,khUnit:khUnit,decimalPlaces:decimalPlaces})))}),[setContent,props.plotData.stratigraphy,barHeight]),onMouseOut=react.useCallback((function onMouseOut(){setContent((()=>null))}),[setContent]);return react.createElement("g",null,props.plotData.wells.map(((well,i)=>react.createElement("g",{transform:`translate(${props.padding.left+(i+.5)*wellWidth}, 0)`,key:`well-${well.name}-completions`},well.completions.map(((completion,j)=>{const start=completion.zoneIndex,end=j===well.completions.length-1?props.plotData.stratigraphy.length:well.completions[j+1].zoneIndex,totalWidth=completion.open+completion.shut;return react.createElement("g",{key:`well-${well.name}-completions-${j}`},react.createElement("rect",{key:`well-${well.name}-completions-${j}-shut-left`,transform:`translate(${-totalWidth*wellWidth*.25}, ${start*barHeight+props.padding.top})`,width:completion.shut*wellWidth/4,height:barHeight*(end-start),fill:"#f00",onMouseMove:e=>onMouseMove(e,well,completion),onMouseOut:onMouseOut}),react.createElement("rect",{key:`well-${well.name}-completions-${j}-open`,transform:`translate(${-completion.open*wellWidth*.25}, ${start*barHeight+props.padding.top})`,width:completion.open*wellWidth/2,height:barHeight*(end-start),fill:"#111",onMouseMove:e=>onMouseMove(e,well,completion),onMouseOut:onMouseOut}),react.createElement("rect",{key:`well-${well.name}-completions-${j}-shut-right`,transform:`translate(${(totalWidth-completion.shut)*wellWidth*.25}, ${start*barHeight+props.padding.top})`,width:completion.shut*wellWidth/4,height:barHeight*(end-start),fill:"#f00",onMouseMove:e=>onMouseMove(e,well,completion),onMouseOut:onMouseOut}))}))))))};CompletionsPlot.displayName="CompletionsPlot",CompletionsPlot.__docgenInfo={description:"",methods:[],displayName:"CompletionsPlot",props:{plotData:{required:!0,tsType:{name:"PlotData"},description:""},layout:{required:!0,tsType:{name:"PlotLayout"},description:""},padding:{required:!0,tsType:{name:"Padding"},description:""}}};const StratigraphyPlot=react.memo((props=>{const barHeight=props.layout.yExtent/Math.max(props.data.length,1);return react.createElement("g",null,props.data.map(((zone,i)=>{return react.createElement("g",{transform:`translate(0,${props.padding.top+i*barHeight})`,key:`zone-${zone.name}`},react.createElement("rect",{transform:`translate(${props.padding.left}, 0)`,width:props.layout.xExtent,height:barHeight,fill:zone.color}),react.createElement("title",null,zone.name),react.createElement("text",{style:{fontSize:"11px"},textAnchor:"end",x:props.padding.left-4,y:barHeight/2,dy:".35em",fontFamily:"sans-serif"},(str=zone.name).length>=13?"..."+str.substring(str.length-10,str.length):str));var str})))}));StratigraphyPlot.displayName="StratigraphyPlot",StratigraphyPlot.__docgenInfo={description:"",methods:[],displayName:"StratigraphyPlot",props:{data:{required:!0,tsType:{name:"Array",elements:[{name:"Zone"}],raw:"Zone[]"},description:""},layout:{required:!0,tsType:{name:"PlotLayout"},description:""},padding:{required:!0,tsType:{name:"Padding"},description:""}}};var prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types);let SortBy=function(SortBy){return SortBy.Name="well name",SortBy.StratigraphyDepth="stratigraphy depth",SortBy.CompletionDate="earliest comp date",SortBy}({});const SortByEnumToStringMapping={[SortBy.Name]:"Well name",[SortBy.StratigraphyDepth]:"Stratigraphy depth",[SortBy.CompletionDate]:"Earliest comp date"},ZoneShape={name:prop_types_default().string.isRequired,color:prop_types_default().string.isRequired};Object.assign(ZoneShape,{subzones:prop_types_default().arrayOf(prop_types_default().shape(ZoneShape).isRequired)});prop_types_default().shape(ZoneShape).isRequired;const AttributeTypePropType=prop_types_default().oneOfType([prop_types_default().string,prop_types_default().number,prop_types_default().bool]),WellTooltipContent=(prop_types_default().shape({name:prop_types_default().string.isRequired,earliestCompDateIndex:prop_types_default().number.isRequired,attributes:prop_types_default().objectOf(AttributeTypePropType).isRequired}),prop_types_default().shape({kh:prop_types_default().shape({unit:prop_types_default().string.isRequired,decimalPlaces:prop_types_default().number.isRequired}).isRequired}),props=>react.createElement("table",{style:{color:"#fff"}},react.createElement("tbody",null,react.createElement("tr",{key:`well-tooltip-${props.name}-earliest-comp`},react.createElement("td",null,react.createElement("b",null,SortByEnumToStringMapping[SortBy.CompletionDate])),react.createElement("td",null,props.earliestCompDate)),Object.entries(props.attributes).map((([key,value])=>react.createElement("tr",{key:`well-tooltip-${name}-${key}`},react.createElement("td",null,react.createElement("b",null,(name=>0===name.length?name:name[0].toUpperCase()+name.slice(1))(key))),react.createElement("td",null,value||"Undefined")))))));WellTooltipContent.displayName="WellTooltipContent";const WellsPlot=props=>{const{setContent:setContent}=useTooltip(),wellWidth=props.layout.xExtent/Math.max(props.plotData.wells.length,1),barHeight=props.layout.yExtent/Math.max(props.plotData.stratigraphy.length,1),onMouseOver=react.useCallback((function onMouseOver(well){setContent((()=>react.createElement(WellTooltipContent,{name:well.name,earliestCompDate:props.timeSteps[well.earliestCompDateIndex],attributes:well.attributes})))}),[setContent,props.timeSteps]),onMouseOut=react.useCallback((function onMouseOut(){setContent((()=>null))}),[setContent]);return react.createElement("g",null,props.plotData.wells.map(((well,i)=>{const lastCompletion=Array.from(well.completions).reverse().find((comp=>comp.open+comp.shut>0)),height=lastCompletion?(lastCompletion.zoneIndex+1)*barHeight:0;return react.createElement("g",{transform:`translate(${props.padding.left+(i+.5)*wellWidth},0)`,key:`well-${well.name}`},react.createElement("text",{style:{fontSize:"9px"},textAnchor:"start",transform:`translate(0,${props.padding.top-10}) rotate(-60)`,x:0,y:0,dy:".35em",fontFamily:"sans-serif",onMouseOver:()=>onMouseOver(well),onMouseOut:onMouseOut},well.name),react.createElement("rect",{transform:`translate(0,${props.padding.top-4})`,width:.5,height:height+4,fill:"#111"}))})))};WellsPlot.displayName="WellsPlot",WellsPlot.__docgenInfo={description:"",methods:[],displayName:"WellsPlot",props:{timeSteps:{required:!0,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},plotData:{required:!0,tsType:{name:"PlotData"},description:""},layout:{required:!0,tsType:{name:"PlotLayout"},description:""},padding:{required:!0,tsType:{name:"Padding"},description:""}}};var injectStylesIntoStyleTag=__webpack_require__("./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/@storybook/builder-webpack5/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),WellCompletionsPlot=__webpack_require__("./node_modules/@storybook/builder-webpack5/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].use[1]!./packages/well-completions-plot/src/WellCompletionsPlot.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(WellCompletionsPlot.Z,options),WellCompletionsPlot.Z&&WellCompletionsPlot.Z.locals&&WellCompletionsPlot.Z.locals;const padding={left:80,right:50,top:70,bottom:50},WellCompletionsPlot_WellCompletionsPlot=react.memo((props=>{const{width:width,height:height,ref:ref}=(0,index_esm.N)({refreshMode:"debounce",refreshRate:50,refreshOptions:{trailing:!0}}),layout=void 0!==width&&void 0!==height?function createLayout(width,height,padding={bottom:0,top:0,left:0,right:0}){const xRange=[padding.left,width-padding.right],yRange=[height-padding.bottom,padding.top];return{width:width,height:height,xRange:xRange,yRange:yRange,xExtent:Math.abs(xRange[0]-xRange[1]),yExtent:Math.abs(yRange[0]-yRange[1]),topLeft:[padding.left,padding.top],bottomRight:[width-padding.right,height-padding.bottom]}}(width,height,padding):void 0;return react.createElement(TooltipProvider,null,react.createElement("div",{ref:ref,id:props.id,className:"WellCompletionsPlot","data-tip":!0,"data-for":"plot-tooltip"},layout&&props.plotData&&react.createElement("svg",{id:`${props.id}-svg-context`,width:width,height:height,style:{position:"relative"}},react.createElement(StratigraphyPlot,{data:props.plotData.stratigraphy,layout:layout,padding:padding}),react.createElement(WellsPlot,{timeSteps:props.timeSteps,plotData:props.plotData,layout:layout,padding:padding}),props.plotData&&react.createElement(CompletionsPlot,{plotData:props.plotData,layout:layout,padding:padding}))))}));WellCompletionsPlot_WellCompletionsPlot.displayName="WellCompletionsPlot",WellCompletionsPlot_WellCompletionsPlot.__docgenInfo={description:"",methods:[],displayName:"WellCompletionsPlot",props:{id:{required:!0,tsType:{name:"string"},description:""},timeSteps:{required:!0,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},plotData:{required:!0,tsType:{name:"PlotData"},description:""}}};const firstPlotData={stratigraphy:[{name:"zone1.1",color:"#808080"},{name:"zone1.2",color:"#FF0000"},{name:"zone1.3",color:"#800000"},{name:"zone2.1",color:"#FFFF00"},{name:"zone2.2",color:"#808000"},{name:"zone2.3",color:"#00FF00"},{name:"zone3.1",color:"#008000"},{name:"zone3.2",color:"#00FFFF"},{name:"zone3.3",color:"#008080"},{name:"zone4.1",color:"#0000FF"},{name:"zone4.2",color:"#000080"},{name:"zone4.3",color:"#FF00FF"},{name:"zone4.4",color:"#800080"},{name:"zone4.5",color:"#C0C0C0"}],wells:[{name:"OP_1",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:4,open:1,shut:0,khMean:1297.885520625,khMin:319.263714,khMax:2020.03044},{zoneIndex:5,open:1,shut:0,khMean:5566.9085537500005,khMin:1425.47896,khMax:11862.0278},{zoneIndex:6,open:1,shut:0,khMean:6939.8011750000005,khMin:3810.31034,khMax:13687.4375},{zoneIndex:7,open:1,shut:0,khMean:9108.8909675,khMin:2322.1114,khMax:18026.9014},{zoneIndex:8,open:1,shut:0,khMean:9014.676917499999,khMin:2374.64861,khMax:12787.8859},{zoneIndex:9,open:1,shut:0,khMean:11183.50554875,khMin:5064.223779999998,khMax:17483.6525},{zoneIndex:10,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Producer",region:"Region 1"},earliestCompDateIndex:0},{name:"OP_2",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:6,open:1,shut:0,khMean:7598.64078875,khMin:3437.2791799999995,khMax:14113.7892},{zoneIndex:7,open:1,shut:0,khMean:11423.95092,khMin:5258.6867,khMax:17497.0243},{zoneIndex:8,open:1,shut:0,khMean:10460.28144875,khMin:5421.12302,khMax:15721.4976},{zoneIndex:9,open:1,shut:0,khMean:3809.3387337500003,khMin:2231.23747,khMax:5662.93419},{zoneIndex:10,open:1,shut:0,khMean:15.149603771249998,khMin:8.46788526,khMax:39.9376641},{zoneIndex:11,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Injector",region:"Region 4","user defined category":"my group 1"},earliestCompDateIndex:0},{name:"OP_3",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:8,open:1,shut:0,khMean:2520.3137368749994,khMin:147.068421,khMax:9030.14994},{zoneIndex:9,open:1,shut:0,khMean:4773.51814625,khMin:2794.09724,khMax:8241.87593},{zoneIndex:10,open:1,shut:0,khMean:10122.645607499999,khMin:3013.539,khMax:17088.9797},{zoneIndex:11,open:1,shut:0,khMean:9451.1859075,khMin:5410.000810000001,khMax:19663.403},{zoneIndex:12,open:1,shut:0,khMean:11903.580101250001,khMin:3418.7660100000007,khMax:20178.9664},{zoneIndex:13,open:1,shut:0,khMean:13180.41943125,khMin:8451.82401,khMax:20863.3268}],attributes:{type:"Injector",region:"Region 1","user defined category":"my group 2"},earliestCompDateIndex:0},{name:"RWI_2",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Injector",region:"Region 1","user defined category":"my group 1"},earliestCompDateIndex:1},{name:"WI_1",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:1,open:1,shut:0,khMean:1231.3151895,khMin:331.081127,khMax:1672.92916},{zoneIndex:2,open:1,shut:0,khMean:2713.00017425,khMin:822.713974,khMax:4422.29676},{zoneIndex:3,open:1,shut:0,khMean:506.8437355,khMin:130.791149,khMax:1026.68084},{zoneIndex:4,open:1,shut:0,khMean:781.5949868750001,khMin:385.392444,khMax:1506.72756},{zoneIndex:5,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Producer",region:"Region 2","user defined category":"my group 2"},earliestCompDateIndex:0},{name:"WI_2",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Producer",region:"Region 2","user defined category":"my group 1"},earliestCompDateIndex:1}],units:{kh:{unit:"mDm",decimalPlaces:2}}},secondPlotData={stratigraphy:[{name:"zone1.1",color:"#808080"},{name:"zone1.2",color:"#FF0000"},{name:"zone1.3",color:"#800000"},{name:"zone2.1",color:"#FFFF00"},{name:"zone2.2",color:"#808000"},{name:"zone2.3",color:"#00FF00"},{name:"zone3.1",color:"#008000"},{name:"zone3.2",color:"#00FFFF"},{name:"zone3.3",color:"#008080"},{name:"zone4.1",color:"#0000FF"},{name:"zone4.2",color:"#000080"},{name:"zone4.3",color:"#FF00FF"},{name:"zone4.4",color:"#800080"},{name:"zone4.5",color:"#C0C0C0"}],wells:[{name:"OP_1",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:4,open:1,shut:0,khMean:1297.885520625,khMin:319.263714,khMax:2020.03044},{zoneIndex:5,open:1,shut:0,khMean:5566.9085537500005,khMin:1425.47896,khMax:11862.0278},{zoneIndex:6,open:1,shut:0,khMean:6939.8011750000005,khMin:3810.31034,khMax:13687.4375},{zoneIndex:7,open:1,shut:0,khMean:9108.8909675,khMin:2322.1114,khMax:18026.9014},{zoneIndex:8,open:1,shut:0,khMean:9014.676917499999,khMin:2374.64861,khMax:12787.8859},{zoneIndex:9,open:1,shut:0,khMean:11183.50554875,khMin:5064.223779999998,khMax:17483.6525},{zoneIndex:10,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Producer",region:"Region 1"},earliestCompDateIndex:0},{name:"OP_2",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:6,open:1,shut:0,khMean:7598.64078875,khMin:3437.2791799999995,khMax:14113.7892},{zoneIndex:7,open:1,shut:0,khMean:11423.95092,khMin:5258.6867,khMax:17497.0243},{zoneIndex:8,open:1,shut:0,khMean:10460.28144875,khMin:5421.12302,khMax:15721.4976},{zoneIndex:9,open:1,shut:0,khMean:3809.3387337500003,khMin:2231.23747,khMax:5662.93419},{zoneIndex:10,open:1,shut:0,khMean:15.149603771249998,khMin:8.46788526,khMax:39.9376641},{zoneIndex:11,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Injector",region:"Region 4","user defined category":"my group 1"},earliestCompDateIndex:0},{name:"OP_3",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:8,open:1,shut:0,khMean:2520.3137368749994,khMin:147.068421,khMax:9030.14994},{zoneIndex:9,open:1,shut:0,khMean:4773.51814625,khMin:2794.09724,khMax:8241.87593},{zoneIndex:10,open:1,shut:0,khMean:10122.645607499999,khMin:3013.539,khMax:17088.9797},{zoneIndex:11,open:1,shut:0,khMean:9451.1859075,khMin:5410.000810000001,khMax:19663.403},{zoneIndex:12,open:1,shut:0,khMean:11903.580101250001,khMin:3418.7660100000007,khMax:20178.9664},{zoneIndex:13,open:1,shut:0,khMean:13180.41943125,khMin:8451.82401,khMax:20863.3268}],attributes:{type:"Injector",region:"Region 1","user defined category":"my group 2"},earliestCompDateIndex:0},{name:"RWI_2",completions:[{zoneIndex:0,open:1,shut:0,khMean:966.9586572375,khMin:31.3075587,khMax:7692.28216},{zoneIndex:1,open:1,shut:0,khMean:737.2361547500001,khMin:202.004725,khMax:4206.10736},{zoneIndex:2,open:1,shut:0,khMean:231.151925,khMin:162.731573,khMax:263.711042},{zoneIndex:3,open:1,shut:0,khMean:365.64561212499996,khMin:124.641662,khMax:1487.41025},{zoneIndex:4,open:1,shut:0,khMean:1388.1157115,khMin:50.1634623,khMax:9609.91712},{zoneIndex:5,open:1,shut:0,khMean:1311.91390607875,khMin:6.82584143,khMax:9238.60455},{zoneIndex:6,open:1,shut:0,khMean:1443.4808,khMin:602.083604,khMax:2368.27406},{zoneIndex:7,open:1,shut:0,khMean:4143.0275075,khMin:2136.6255,khMax:6521.29951},{zoneIndex:8,open:1,shut:0,khMean:2780.9278937500003,khMin:1156.0911,khMax:6190.71447},{zoneIndex:9,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:10,open:1,shut:0,khMean:36.873345055,khMin:4.80656063,khMax:242.525623},{zoneIndex:11,open:1,shut:0,khMean:153.26354434125003,khMin:3.88889919,khMax:687.152499},{zoneIndex:12,open:1,shut:0,khMean:687.2094793074999,khMin:3.74611457,khMax:2881.7809},{zoneIndex:13,open:1,shut:0,khMean:558.90722366125,khMin:2.9843909,khMax:2151.45851}],attributes:{type:"Injector",region:"Region 1","user defined category":"my group 1"},earliestCompDateIndex:1},{name:"WI_1",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:1,open:1,shut:0,khMean:1231.3151895,khMin:331.081127,khMax:1672.92916},{zoneIndex:2,open:1,shut:0,khMean:2713.00017425,khMin:822.713974,khMax:4422.29676},{zoneIndex:3,open:1,shut:0,khMean:506.8437355,khMin:130.791149,khMax:1026.68084},{zoneIndex:4,open:1,shut:0,khMean:781.5949868750001,khMin:385.392444,khMax:1506.72756},{zoneIndex:5,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Producer",region:"Region 2","user defined category":"my group 2"},earliestCompDateIndex:0},{name:"WI_2",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:9,open:1,shut:0,khMean:2.01463155625,khMin:.68573069,khMax:6.83388483},{zoneIndex:10,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Producer",region:"Region 2","user defined category":"my group 1"},earliestCompDateIndex:1}],units:{kh:{unit:"mDm",decimalPlaces:2}}},thirdPlotData={stratigraphy:[{name:"zone1.1",color:"#808080"},{name:"zone1.2",color:"#FF0000"},{name:"zone1.3",color:"#800000"},{name:"zone2.1",color:"#FFFF00"},{name:"zone2.2",color:"#808000"},{name:"zone2.3",color:"#00FF00"},{name:"zone3.1",color:"#008000"},{name:"zone3.2",color:"#00FFFF"},{name:"zone3.3",color:"#008080"},{name:"zone4.1",color:"#0000FF"},{name:"zone4.2",color:"#000080"},{name:"zone4.3",color:"#FF00FF"},{name:"zone4.4",color:"#800080"},{name:"zone4.5",color:"#C0C0C0"}],wells:[{name:"OP_1",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:4,open:.125,shut:.875,khMean:1297.885520625,khMin:319.263714,khMax:2020.03044},{zoneIndex:5,open:.125,shut:.875,khMean:5566.9085537500005,khMin:1425.47896,khMax:11862.0278},{zoneIndex:6,open:.125,shut:.875,khMean:6939.8011750000005,khMin:3810.31034,khMax:13687.4375},{zoneIndex:7,open:.125,shut:.875,khMean:9108.8909675,khMin:2322.1114,khMax:18026.9014},{zoneIndex:8,open:.125,shut:.875,khMean:9014.676917499999,khMin:2374.64861,khMax:12787.8859},{zoneIndex:9,open:.125,shut:.875,khMean:11183.50554875,khMin:5064.223779999998,khMax:17483.6525},{zoneIndex:10,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Producer",region:"Region 1"},earliestCompDateIndex:0},{name:"OP_2",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:6,open:.25,shut:.75,khMean:7598.64078875,khMin:3437.2791799999995,khMax:14113.7892},{zoneIndex:7,open:.25,shut:.75,khMean:11423.95092,khMin:5258.6867,khMax:17497.0243},{zoneIndex:8,open:.25,shut:.75,khMean:10460.28144875,khMin:5421.12302,khMax:15721.4976},{zoneIndex:9,open:.25,shut:.75,khMean:3809.3387337500003,khMin:2231.23747,khMax:5662.93419},{zoneIndex:10,open:.25,shut:.75,khMean:15.149603771249998,khMin:8.46788526,khMax:39.9376641},{zoneIndex:11,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Injector",region:"Region 4","user defined category":"my group 1"},earliestCompDateIndex:0},{name:"OP_3",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:8,open:.75,shut:.25,khMean:2520.3137368749994,khMin:147.068421,khMax:9030.14994},{zoneIndex:9,open:.75,shut:.25,khMean:4773.51814625,khMin:2794.09724,khMax:8241.87593},{zoneIndex:10,open:.75,shut:.25,khMean:10122.645607499999,khMin:3013.539,khMax:17088.9797},{zoneIndex:11,open:.75,shut:.25,khMean:9451.1859075,khMin:5410.000810000001,khMax:19663.403},{zoneIndex:12,open:.75,shut:.25,khMean:11903.580101250001,khMin:3418.7660100000007,khMax:20178.9664},{zoneIndex:13,open:.75,shut:.25,khMean:13180.41943125,khMin:8451.82401,khMax:20863.3268}],attributes:{type:"Injector",region:"Region 1","user defined category":"my group 2"},earliestCompDateIndex:0},{name:"RWI_2",completions:[{zoneIndex:0,open:1,shut:0,khMean:966.9586572375,khMin:31.3075587,khMax:7692.28216},{zoneIndex:1,open:1,shut:0,khMean:737.2361547500001,khMin:202.004725,khMax:4206.10736},{zoneIndex:2,open:1,shut:0,khMean:231.151925,khMin:162.731573,khMax:263.711042},{zoneIndex:3,open:1,shut:0,khMean:365.64561212499996,khMin:124.641662,khMax:1487.41025},{zoneIndex:4,open:1,shut:0,khMean:1388.1157115,khMin:50.1634623,khMax:9609.91712},{zoneIndex:5,open:1,shut:0,khMean:1311.91390607875,khMin:6.82584143,khMax:9238.60455},{zoneIndex:6,open:1,shut:0,khMean:1443.4808,khMin:602.083604,khMax:2368.27406},{zoneIndex:7,open:1,shut:0,khMean:4143.0275075,khMin:2136.6255,khMax:6521.29951},{zoneIndex:8,open:1,shut:0,khMean:2780.9278937500003,khMin:1156.0911,khMax:6190.71447},{zoneIndex:9,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:10,open:1,shut:0,khMean:36.873345055,khMin:4.80656063,khMax:242.525623},{zoneIndex:11,open:1,shut:0,khMean:153.26354434125003,khMin:3.88889919,khMax:687.152499},{zoneIndex:12,open:1,shut:0,khMean:687.2094793074999,khMin:3.74611457,khMax:2881.7809},{zoneIndex:13,open:1,shut:0,khMean:558.90722366125,khMin:2.9843909,khMax:2151.45851}],attributes:{type:"Injector",region:"Region 1","user defined category":"my group 1"},earliestCompDateIndex:1},{name:"WI_1",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:1,open:1,shut:0,khMean:1231.3151895,khMin:331.081127,khMax:1672.92916},{zoneIndex:2,open:1,shut:0,khMean:2713.00017425,khMin:822.713974,khMax:4422.29676},{zoneIndex:3,open:1,shut:0,khMean:506.8437355,khMin:130.791149,khMax:1026.68084},{zoneIndex:4,open:1,shut:0,khMean:781.5949868750001,khMin:385.392444,khMax:1506.72756},{zoneIndex:5,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Producer",region:"Region 2","user defined category":"my group 2"},earliestCompDateIndex:0},{name:"WI_2",completions:[{zoneIndex:0,open:0,shut:0,khMean:0,khMin:0,khMax:0},{zoneIndex:9,open:1,shut:0,khMean:2.01463155625,khMin:.68573069,khMax:6.83388483},{zoneIndex:10,open:0,shut:0,khMean:0,khMin:0,khMax:0}],attributes:{type:"Producer",region:"Region 2","user defined category":"my group 1"},earliestCompDateIndex:1}],units:{kh:{unit:"mDm",decimalPlaces:2}}};var WellCompletionsPlot_stories={component:WellCompletionsPlot_WellCompletionsPlot,title:"WellCompletionsPlot/Demo",argTypes:{data:{control:{type:"object"}}},parameters:{docs:{description:{component:"Storybook test for the well completions plot component"}}}};const Template=data=>{const[plotData,setPlotData]=react.useState(data.plotData),[timeSteps,setTimeSteps]=react.useState(data.timeSteps),[prevData,setPrevData]=react.useState(data);data!==prevData&&(setPrevData(data),setPlotData(data.plotData),setTimeSteps(data.timeSteps));return react.createElement(react.Fragment,null,react.createElement("button",{type:"button",onClick:()=>{setPlotData(firstPlotData)}},"First plot data"),react.createElement("button",{type:"button",onClick:()=>{setPlotData(secondPlotData)}},"Second plot data"),react.createElement("button",{type:"button",onClick:()=>{setPlotData(thirdPlotData)}},"Third plot data"),react.createElement("div",{style:{minWidth:"500px",minHeight:"300px",height:"100vh"}},react.createElement(WellCompletionsPlot_WellCompletionsPlot,{id:"test",plotData:plotData,timeSteps:timeSteps})))},WellCompletionsPlotStory={args:{plotData:firstPlotData,timeSteps:["2000-02-01","2000-06-01","2000-10-01"]},render:args=>react.createElement(Template,args)};WellCompletionsPlotStory.parameters={...WellCompletionsPlotStory.parameters,docs:{...WellCompletionsPlotStory.parameters?.docs,source:{originalSource:"{\n args: {\n plotData: firstPlotData,\n timeSteps: timeSteps\n },\n render: args =>