1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="c573d867-9f5f-4ea8-941c-3a753b6a7d61",t._sentryDebugIdIdentifier="sentry-dbid-c573d867-9f5f-4ea8-941c-3a753b6a7d61")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[298],{27:(t,e,n)=>{"use strict";n.d(e,{V:()=>v});var r=n(85339);let i={type:"change"},o={type:"start"},a={type:"end"},u={NONE:-1,ROTATE:0,ZOOM:1,PAN:2,TOUCH_ROTATE:3,TOUCH_ZOOM_PAN:4},s=new r.I9Y,l=new r.I9Y,h=new r.Pq0,c=new r.Pq0,f=new r.Pq0,d=new r.PTz,p=new r.Pq0,m=new r.Pq0,g=new r.Pq0,y=new r.Pq0;class v extends r.H2z{constructor(t,e=null){super(t,e),this.screen={left:0,top:0,width:0,height:0},this.rotateSpeed=1,this.zoomSpeed=1.2,this.panSpeed=.3,this.noRotate=!1,this.noZoom=!1,this.noPan=!1,this.staticMoving=!1,this.dynamicDampingFactor=.2,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.keys=["KeyA","KeyS","KeyD"],this.mouseButtons={LEFT:r.kBv.ROTATE,MIDDLE:r.kBv.DOLLY,RIGHT:r.kBv.PAN},this.target=new r.Pq0,this.state=u.NONE,this.keyState=u.NONE,this._lastPosition=new r.Pq0,this._lastZoom=1,this._touchZoomDistanceStart=0,this._touchZoomDistanceEnd=0,this._lastAngle=0,this._eye=new r.Pq0,this._movePrev=new r.I9Y,this._moveCurr=new r.I9Y,this._lastAxis=new r.Pq0,this._zoomStart=new r.I9Y,this._zoomEnd=new r.I9Y,this._panStart=new r.I9Y,this._panEnd=new r.I9Y,this._pointers=[],this._pointerPositions={},this._onPointerMove=_.bind(this),this._onPointerDown=b.bind(this),this._onPointerUp=E.bind(this),this._onPointerCancel=x.bind(this),this._onContextMenu=k.bind(this),this._onMouseWheel=T.bind(this),this._onKeyDown=S.bind(this),this._onKeyUp=w.bind(this),this._onTouchStart=O.bind(this),this._onTouchMove=F.bind(this),this._onTouchEnd=N.bind(this),this._onMouseDown=M.bind(this),this._onMouseMove=A.bind(this),this._onMouseUp=P.bind(this),this._target0=this.target.clone(),this._position0=this.object.position.clone(),this._up0=this.object.up.clone(),this._zoom0=this.object.zoom,null!==e&&(this.connect(e),this.handleResize()),this.update()}connect(t){super.connect(t),window.addEventListener("keydown",this._onKeyDown),window.addEventListener("keyup",this._onKeyUp),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerCancel),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.style.touchAction="none"}disconnect(){window.removeEventListener("keydown",this._onKeyDown),window.removeEventListener("keyup",this._onKeyUp),this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerCancel),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}handleResize(){let t=this.domElement.getBoundingClientRect(),e=this.domElement.ownerDocument.documentElement;this.screen.left=t.left+window.pageXOffset-e.clientLeft,this.screen.top=t.top+window.pageYOffset-e.clientTop,this.screen.width=t.width,this.screen.height=t.height}update(){this._eye.subVectors(this.object.position,this.target),this.noRotate||this._rotateCamera(),this.noZoom||this._zoomCamera(),this.noPan||this._panCamera(),this.object.position.addVectors(this.target,this._eye),this.object.isPerspectiveCamera?(this._checkDistances(),this.object.lookAt(this.target),this._lastPosition.distanceToSquared(this.object.position)>1e-6&&(this.dispatchEvent(i),this._lastPosition.copy(this.object.position))):this.object.isOrthographicCamera?(this.object.lookAt(this.target),(this._lastPosition.distanceToSquared(this.object.position)>1e-6||this._lastZoom!==this.object.zoom)&&(this.dispatchEvent(i),this._lastPosition.copy(this.object.position),this._lastZoom=this.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type.")}reset(){this.state=u.NONE,this.keyState=u.NONE,this.target.copy(this._target0),this.object.position.copy(this._position0),this.object.up.copy(this._up0),this.object.zoom=this._zoom0,this.object.updateProjectionMatrix(),this._eye.subVectors(this.object.position,this.target),this.object.lookAt(this.target),this.dispatchEvent(i),this._lastPosition.copy(this.object.position),this._lastZoom=this.object.zoom}_panCamera(){if(l.copy(this._panEnd).sub(this._panStart),l.lengthSq()){if(this.object.isOrthographicCamera){let t=(this.object.right-this.object.left)/this.object.zoom/this.domElement.clientWidth,e=(this.object.top-this.object.bottom)/this.object.zoom/this.domElement.clientWidth;l.x*=t,l.y*=e}l.multiplyScalar(this._eye.length()*this.panSpeed),c.copy(this._eye).cross(this.object.up).setLength(l.x),c.add(h.copy(this.object.up).setLength(l.y)),this.object.position.add(c),this.target.add(c),this.staticMoving?this._panStart.copy(this._panEnd):this._panStart.add(l.subVectors(this._panEnd,this._panStart).multiplyScalar(this.dynamicDampingFactor))}}_rotateCamera(){y.set(this._moveCurr.x-this._movePrev.x,this._moveCurr.y-this._movePrev.y,0);let t=y.length();
1t?(this._eye.copy(this.object.position).sub(this.target),p.copy(this._eye).normalize(),m.copy(this.object.up).normalize(),g.crossVectors(m,p).normalize(),m.setLength(this._moveCurr.y-this._movePrev.y),g.setLength(this._moveCurr.x-this._movePrev.x),y.copy(m.add(g)),f.crossVectors(y,this._eye).normalize(),t*=this.rotateSpeed,d.setFromAxisAngle(f,t),this._eye.applyQuaternion(d),this.object.up.applyQuaternion(d),this._lastAxis.copy(f),this._lastAngle=t):!this.staticMoving&&this._lastAngle&&(this._lastAngle*=Math.sqrt(1-this.dynamicDampingFactor),this._eye.copy(this.object.position).sub(this.target),d.setFromAxisAngle(this._lastAxis,this._lastAngle),this._eye.applyQuaternion(d),this.object.up.applyQuaternion(d)),this._movePrev.copy(this._moveCurr)}_zoomCamera(){let t;this.state===u.TOUCH_ZOOM_PAN?(t=this._touchZoomDistanceStart/this._touchZoomDistanceEnd,this._touchZoomDistanceStart=this._touchZoomDistanceEnd,this.object.isPerspectiveCamera?this._eye.multiplyScalar(t):this.object.isOrthographicCamera?(this.object.zoom=r.cj9.clamp(this.object.zoom/t,this.minZoom,this.maxZoom),this._lastZoom!==this.object.zoom&&this.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")):(1!=(t=1+(this._zoomEnd.y-this._zoomStart.y)*this.zoomSpeed)&&t>0&&(this.object.isPerspectiveCamera?this._eye.multiplyScalar(t):this.object.isOrthographicCamera?(this.object.zoom=r.cj9.clamp(this.object.zoom/t,this.minZoom,this.maxZoom),this._lastZoom!==this.object.zoom&&this.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")),this.staticMoving?this._zoomStart.copy(this._zoomEnd):this._zoomStart.y+=(this._zoomEnd.y-this._zoomStart.y)*this.dynamicDampingFactor)}_getMouseOnScreen(t,e){return s.set((t-this.screen.left)/this.screen.width,(e-this.screen.top)/this.screen.height),s}_getMouseOnCircle(t,e){return s.set((t-.5*this.screen.width-this.screen.left)/(.5*this.screen.width),(this.screen.height+2*(this.screen.top-e))/this.screen.width),s}_addPointer(t){this._pointers.push(t)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;e<this._pointers.length;e++)if(this._pointers[e].pointerId==t.pointerId)return void this._pointers.splice(e,1)}_trackPointer(t){let e=this._pointerPositions[t.pointerId];void 0===e&&(e=new r.I9Y,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){let e=t.pointerId===this._pointers[0].pointerId?this._pointers[1]:this._pointers[0];return this._pointerPositions[e.pointerId]}_checkDistances(){this.noZoom&&this.noPan||(this._eye.lengthSq()>this.maxDistance*this.maxDistance&&(this.object.position.addVectors(this.target,this._eye.setLength(this.maxDistance)),this._zoomStart.copy(this._zoomEnd)),this._eye.lengthSq()<this.minDistance*this.minDistance&&(this.object.position.addVectors(this.target,this._eye.setLength(this.minDistance)),this._zoomStart.copy(this._zoomEnd)))}}function b(t){!1!==this.enabled&&(0===this._pointers.length&&(this.domElement.setPointerCapture(t.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),this._addPointer(t),"touch"===t.pointerType?this._onTouchStart(t):this._onMouseDown(t))}function _(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchMove(t):this._onMouseMove(t))}function E(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchEnd(t):this._onMouseUp(),this._removePointer(t),0===this._pointers.length&&(this.domElement.releasePointerCapture(t.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp)))}function x(t){this._removePointer(t)}function w(){!1!==this.enabled&&(this.keyState=u.NONE,window.addEventListener("keydown",this._onKeyDown))}function S(t){!1!==this.enabled&&(window.removeEventListener("keydown",this._onKeyDown),this.keyState===u.NONE&&(t.code!==this.keys[u.ROTATE]||this.noRotate?t.code!==this.keys[u.ZOOM]||this.noZoom?t.code!==this.keys[u.PAN]||this.noPan||(this.keyState=u.PAN):this.keyState=u.ZOOM:this.keyState=u.ROTATE))}function M(t){let e;switch(t.button){case 0:e=this.mouseButtons.LEFT;break;case 1:e=this.mouseButtons.MIDDLE;break;case 2:e=this.mouseButtons.RIGHT;break;default:e=-1}switch(e){case r.kBv.DOLLY:this.state=u.ZOOM;break;case r.kBv.ROTATE:this.state=u.ROTATE;break;case r.kBv.PAN:this.state=u.PAN;break;default:this.state=u.NONE}let n=this.keyState!==u.NONE?this.keyState:this.state;n!==u.ROTATE||this.noRotate?n!==u.ZOOM||this.noZoom?n!==u.PAN||this.noPan||(this._panStart.copy(this._getMouseOnScreen(t.pageX,t.pageY)),this._panEnd.copy(this._panStart)):(this._zoomStart.copy(this._getMouseOnScreen(t.pageX,t.pageY)),this._zoomEnd.copy(this._zoomStart)):(this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)),this._movePrev.copy(this._moveCurr)),this.dispatchEvent(o)}function A(t){let e=this.keyState!==u.NONE?this.keyState:this.state;e!==u.ROTATE||this.noRotate?e!==u.ZOOM||this.noZoom?e!==u.PAN||this.noPan||this._panEnd.copy(this._getMouseOnScreen(t.pageX,t.pageY)):this._zoomEnd.copy(this._getMouseOnScreen(t.pageX,t.pageY)):(this._movePrev.copy(this._moveCurr),this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)))}function P(){this.state=u.NONE,this.dispatchEvent(a)}function T(t){if(!1!==this.enabled&&!0!==this.noZoom){switch(t.preventDefault(),t.deltaMode){case 2:this._zoomStart.y-=.025*t.deltaY;break;case 1:this._zoomStart.y-=.01*t.deltaY;break;default:this._zoomStart.y-=25e-5*t.deltaY}this.dispatchEvent(o),this.dispatchEvent(a)}}function k(t){!1!==this.enabled&&t.preventDefault()}function O(t){if(this._trackPointer(t),1===this._pointers.length)this.state=u.TOUCH_ROTATE,this._moveCurr.copy(this._getMouseOnCircle(this._pointers[0].pageX,this._pointers[0].pageY)),this._movePrev.copy(this._moveCurr);else{this.state=u.TOUCH_ZOOM_PAN;let t=this._pointers[0].pageX-this._pointers[1].pageX,e=this._pointers[0].pageY-this._pointers[1].pageY;this._touchZoomDistanceEnd=this._touchZoomDistanceStart=Math.sqrt(t*t+e*e);let n=(this._pointers[0].pageX+this._pointers[1].pageX)/2,r=(this._pointers[0].pageY+this._pointers[1].pageY)/2;this._panStart.copy(this._getMouseOnScreen(n,r)),this._panEnd.copy(this._panStart)}this.dispatchEvent(o)}function F(t){if(this._trackPointer(t),1===this._pointers.length)this._movePrev.copy(this._moveCurr),this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY));else{let e=this._getSecondPointerPosition(t),n=t.pageX-e.x,r=t.pageY-e.y;this._touchZoomDistanceEnd=Math.sqrt(n*n+r*r);let i=(t.pageX+e.x)/2,o=(t.pageY+e.y)/2;this._panEnd.copy(this._getMouseOnScreen(i,o))}}function N(t){switch(this._pointers.length){case 0:this.state=u.NONE;break;case 1:this.state=u.TOUCH_ROTATE,this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)),this._movePrev.copy(this._moveCurr);break;case 2:this.state=u.TOUCH_ZOOM_PAN;for(let e=0;e<this._pointers.length;e++)if(this._pointers[e].pointerId!==t.pointerId){let t=this._pointerPositions[this._pointers[e].pointerId];this._moveCurr.copy(this._getMouseOnCircle(t.x,t.y)),this._movePrev.copy(this._moveCurr);break}}this.dispatchEvent(a)}},473:(t,e,n)=>{"use strict";n.d(e,{G:()=>o});var r=n(87548),i=n(85339);r.fCn.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new i.I9Y(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}},r.zkh.line={uniforms:i.LlO.merge([r.fCn.common,r.fCn.fog,r.fCn.line]),vertexShader:` 2 #include <common> 3 #include <color_pars_vertex> 4 #include <fog_pars_vertex> 5 #include <logdepthbuf_pars_vertex> 6 #include <clipping_planes_pars_vertex> 7 8 uniform float linewidth; 9 uniform vec2 resolution; 10 11 attribute vec3 instanceStart; 12 attribute vec3 instanceEnd; 13 14 attribute vec3 instanceColorStart; 15 attribute vec3 instanceColorEnd; 16
17 #ifdef WORLD_UNITS 18 19 varying vec4 worldPos; 20 varying vec3 worldStart; 21 varying vec3 worldEnd; 22 23 #ifdef USE_DASH 24 25 varying vec2 vUv; 26 27 #endif 28 29 #else 30 31 varying vec2 vUv; 32 33 #endif 34 35 #ifdef USE_DASH 36 37 uniform float dashScale; 38 attribute float instanceDistanceStart; 39 attribute float instanceDistanceEnd; 40 varying float vLineDistance; 41 42 #endif 43 44 void trimSegment( const in vec4 start, inout vec4 end ) { 45 46 // trim end segment so it terminates between the camera plane and the near plane 47 48 // conservative estimate of the near plane 49 float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column 50 float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column 51 float nearEstimate = - 0.5 * b / a; 52 53 float alpha = ( nearEstimate - start.z ) / ( end.z - start.z ); 54 55 end.xyz = mix( start.xyz, end.xyz, alpha ); 56 57 } 58 59 void main() { 60 61 #ifdef USE_COLOR 62 63 vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd; 64 65 #endif 66 67 #ifdef USE_DASH 68 69 vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd; 70 vUv = uv; 71 72 #endif 73 74 float aspect = resolution.x / resolution.y; 75 76 // camera space 77 vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 ); 78 vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 ); 79 80 #ifdef WORLD_UNITS 81 82 worldStart = start.xyz; 83 worldEnd = end.xyz; 84 85 #else 86 87 vUv = uv; 88 89 #endif 90 91 // special case for perspective projection, and segments that terminate either in, or behind, the camera plane 92 // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space 93 // but we need to perform ndc-space calculations in the shader, so we must address this issue directly 94 // perhaps there is a more elegant solution -- WestLangley 95 96 bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column 97 98 if ( perspective ) { 99 100 if ( start.z < 0.0 && end.z >= 0.0 ) { 101 102 trimSegment( start, end ); 103 104 } else if ( end.z < 0.0 && start.z >= 0.0 ) { 105 106 trimSegment( end, start ); 107 108 } 109 110 } 111 112 // clip space 113 vec4 clipStart = projectionMatrix * start; 114 vec4 clipEnd = projectionMatrix * end; 115 116 // ndc space 117 vec3 ndcStart = clipStart.xyz / clipStart.w; 118 vec3 ndcEnd = clipEnd.xyz / clipEnd.w; 119 120 // direction 121 vec2 dir = ndcEnd.xy - ndcStart.xy; 122 123 // account for clip-space aspect ratio 124 dir.x *= aspect; 125 dir = normalize( dir ); 126 127 #ifdef WORLD_UNITS 128 129 vec3 worldDir = normalize( end.xyz - start.xyz ); 130 vec3 tmpFwd = normalize( mix( start.xyz, end.xyz, 0.5 ) ); 131 vec3 worldUp = normalize( cross( worldDir, tmpFwd ) ); 132 vec3 worldFwd = cross( worldDir, worldUp ); 133 worldPos = position.y < 0.5 ? start: end; 134 135 // height offset 136 float hw = linewidth * 0.5; 137 worldPos.xyz += position.x < 0.0 ? hw * worldUp : - hw * worldUp; 138 139 // don't extend the line if we're rendering dashes because we 140 // won't be rendering the endcaps 141 #ifndef USE_DASH 142 143 // cap extension 144 worldPos.xyz += position.y < 0.5 ? - hw * worldDir : hw * worldDir; 145 146 // add width to the box 147 worldPos.xyz += worldFwd * hw; 148 149 // endcaps 150 if ( position.y > 1.0 || position.y < 0.0 ) { 151 152 worldPos.xyz -= worldFwd * 2.0 * hw; 153 154 } 155 156 #endif 157 158 // project the worldpos 159 vec4 clip = projectionMatrix * worldPos; 160 161 // shift the depth of the projected points so the line 162 // segments overlap neatly 163 vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd; 164 clip.z = clipPose.z * clip.w; 165 166 #else 167 168 vec2 offset = vec2( dir.y, - dir.x ); 169 // undo aspect ratio adjustment 170 dir.x /= aspect; 171 offset.x /= aspect; 172 173 // sign flip 174 if ( position.x < 0.0 ) offset *= - 1.0; 175 176 // endcaps 177 if ( position.y < 0.0 ) { 178 179 offset += - dir; 180 181 } else if ( position.y > 1.0 ) { 182 183 offset += dir; 184 185 } 186 187 // adjust for linewidth 188 offset *= linewidth; 189 190 // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ... 191 offset /= resolution.y; 192 193 // select end 194 vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd; 195 196 // back to clip space 197 offset *= clip.w; 198 199 clip.xy += offset; 200 201 #endif 202 203 gl_Position = clip; 204 205 vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation 206 207 #include <logdepthbuf_vertex> 208 #include <clipping_planes_vertex> 209 #include <fog_vertex> 210 211 } 212 `,fragmentShader:` 213 uniform vec3 diffuse; 214 uniform float opacity; 215 uniform float linewidth; 216 217 #ifdef USE_DASH 218 219 uniform float dashOffset; 220 uniform float dashSize; 221 uniform float gapSize; 222 223 #endif 224 225 varying float vLineDistance; 226 227 #ifdef WORLD_UNITS 228 229 varying vec4 worldPos; 230 varying vec3 worldStart; 231 varying vec3 worldEnd; 232 233 #ifdef USE_DASH 234 235 varying vec2 vUv; 236 237 #endif 238 239 #else 240 241 varying vec2 vUv; 242 243 #endif 244 245 #include <common> 246 #include <color_pars_fragment> 247 #include <fog_pars_fragment> 248 #include <logdepthbuf_pars_fragment> 249 #include <clipping_planes_pars_fragment> 250 251 vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) { 252 253 float mua; 254 float mub; 255 256 vec3 p13 = p1 - p3; 257 vec3 p43 = p4 - p3; 258 259 vec3 p21 = p2 - p1; 260 261 float d1343 = dot( p13, p43 );
262 float d4321 = dot( p43, p21 ); 263 float d1321 = dot( p13, p21 ); 264 float d4343 = dot( p43, p43 ); 265 float d2121 = dot( p21, p21 ); 266 267 float denom = d2121 * d4343 - d4321 * d4321; 268 269 float numer = d1343 * d4321 - d1321 * d4343; 270 271 mua = numer / denom; 272 mua = clamp( mua, 0.0, 1.0 ); 273 mub = ( d1343 + d4321 * ( mua ) ) / d4343; 274 mub = clamp( mub, 0.0, 1.0 ); 275 276 return vec2( mua, mub ); 277 278 } 279 280 void main() { 281 282 float alpha = opacity; 283 vec4 diffuseColor = vec4( diffuse, alpha ); 284 285 #include <clipping_planes_fragment> 286 287 #ifdef USE_DASH 288 289 if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps 290 291 if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX 292 293 #endif 294 295 #ifdef WORLD_UNITS 296 297 // Find the closest points on the view ray and the line segment 298 vec3 rayEnd = normalize( worldPos.xyz ) * 1e5; 299 vec3 lineDir = worldEnd - worldStart; 300 vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd ); 301 302 vec3 p1 = worldStart + lineDir * params.x; 303 vec3 p2 = rayEnd * params.y; 304 vec3 delta = p1 - p2; 305 float len = length( delta ); 306 float norm = len / linewidth; 307 308 #ifndef USE_DASH 309 310 #ifdef USE_ALPHA_TO_COVERAGE 311 312 float dnorm = fwidth( norm ); 313 alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm ); 314 315 #else 316 317 if ( norm > 0.5 ) { 318 319 discard; 320 321 } 322 323 #endif 324 325 #endif 326 327 #else 328 329 #ifdef USE_ALPHA_TO_COVERAGE 330 331 // artifacts appear on some hardware if a derivative is taken within a conditional 332 float a = vUv.x; 333 float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; 334 float len2 = a * a + b * b; 335 float dlen = fwidth( len2 ); 336 337 if ( abs( vUv.y ) > 1.0 ) { 338 339 alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 ); 340 341 } 342 343 #else 344 345 if ( abs( vUv.y ) > 1.0 ) { 346 347 float a = vUv.x; 348 float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; 349 float len2 = a * a + b * b; 350 351 if ( len2 > 1.0 ) discard; 352 353 } 354 355 #endif 356 357 #endif 358 359 #include <logdepthbuf_fragment> 360 #include <color_fragment> 361 362 gl_FragColor = vec4( diffuseColor.rgb, alpha ); 363 364 #include <tonemapping_fragment> 365 #include <colorspace_fragment> 366 #include <fog_fragment> 367 #include <premultiplied_alpha_fragment> 368 369 } 370 `};class o extends i.BKk{constructor(t){super({type:"LineMaterial",uniforms:i.LlO.clone(r.zkh.line.uniforms),vertexShader:r.zkh.line.vertexShader,fragmentShader:r.zkh.line.fragmentShader,clipping:!0}),this.isLineMaterial=!0,this.setValues(t)}get color(){return this.uniforms.diffuse.value}set color(t){this.uniforms.diffuse.value=t}get worldUnits(){return"WORLD_UNITS"in this.defines}set worldUnits(t){!0===t?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}get linewidth(){return this.uniforms.linewidth.value}set linewidth(t){this.uniforms.linewidth&&(this.uniforms.linewidth.value=t)}get dashed(){return"USE_DASH"in this.defines}set dashed(t){!0===t!==this.dashed&&(this.needsUpdate=!0),!0===t?this.defines.USE_DASH="":delete this.defines.USE_DASH}get dashScale(){return this.uniforms.dashScale.value}set dashScale(t){this.uniforms.dashScale.value=t}get dashSize(){return this.uniforms.dashSize.value}set dashSize(t){this.uniforms.dashSize.value=t}get dashOffset(){return this.uniforms.dashOffset.value}set dashOffset(t){this.uniforms.dashOffset.value=t}get gapSize(){return this.uniforms.gapSize.value}set gapSize(t){this.uniforms.gapSize.value=t}get opacity(){return this.uniforms.opacity.value}set opacity(t){this.uniforms&&(this.uniforms.opacity.value=t)}get resolution(){return this.uniforms.resolution.value}set resolution(t){this.uniforms.resolution.value.copy(t)}get alphaToCoverage(){return"USE_ALPHA_TO_COVERAGE"in this.defines}set alphaToCoverage(t){this.defines&&(!0===t!==this.alphaToCoverage&&(this.needsUpdate=!0),!0===t?this.defines.USE_ALPHA_TO_COVERAGE="":delete this.defines.USE_ALPHA_TO_COVERAGE)}}},1529:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var r,i,o,a,u=n(52038),s=n(61409),l=n(21755),h=n(15651),c={sphere:l.A,point:l.A,lineStart:function(){c.point=d,c.lineEnd=f},lineEnd:l.A,polygonStart:l.A,polygonEnd:l.A};function f(){c.point=c.lineEnd=l.A}function d(t,e){t*=s.F2,e*=s.F2,i=t,o=(0,s.F8)(e),a=(0,s.gn)(e),c.point=p}function p(t,e){t*=s.F2,e*=s.F2;var n=(0,s.F8)(e),u=(0,s.gn)(e),l=(0,s.tn)(t-i),h=(0,s.gn)(l),c=u*(0,s.F8)(l),f=a*n-o*u*h,d=o*n+a*u*h;r.add((0,s.FP)((0,s.RZ)(c*c+f*f),d)),i=t,o=n,a=u}var m=[null,null],g={type:"LineString",coordinates:m};function y(t,e){return m[0]=t,m[1]=e,r=new u.ph,(0,h.A)(g,c),+r}},5874:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(61409);function i(t,e){var n=t[0]*r.F2,i=t[1]*r.F2,o=e[0]*r.F2,a=e[1]*r.F2,u=(0,r.gn)(i),s=(0,r.F8)(i),l=(0,r.gn)(a),h=(0,r.F8)(a),c=u*(0,r.gn)(n),f=u*(0,r.F8)(n),d=l*(0,r.gn)(o),p=l*(0,r.F8)(o),m=2*(0,r.qR)((0,r.RZ)((0,r.bo)(a-i)+u*l*(0,r.bo)(o-n))),g=(0,r.F8)(m),y=m?function(t){var e=(0,r.F8)(t*=m)/g,n=(0,r.F8)(m-t)/g,i=n*c+e*d,o=n*f+e*p;return[(0,r.FP)(o,i)*r.uj,(0,r.FP)(n*s+e*h,(0,r.RZ)(i*i+o*o))*r.uj]}:function(){return[n*r.uj,i*r.uj]};return y.distance=m,y}},6256:(t,e,n)=>{"use strict";function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}n.d(e,{C:()=>r})},7813:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var r=function(t){return"function"==typeof t?t:"string"==typeof t?function(e){return e[t]}:function(e){return t}}},10915:(t,e,n)=>{"use strict";n.d(e,{v:()=>i});var r=n(85339);class i extends r.B69{constructor(t=document.createElement("div")){super(),this.isCSS2DObject=!0,this.element=t,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.center=new r.I9Y(.5,.5),this.addEventListener("removed",function(){this.traverse(function(t){t.element instanceof t.element.ownerDocument.defaultView.Element&&null!==t.element.parentNode&&t.element.remove()})})}copy(t,e){return super.copy(t,e),this.element=t.element.cloneNode(!0),this.center=t.center,this}}new r.Pq0,new r.kn4,new r.kn4,new r.Pq0,new r.Pq0},11406:(t,e,n)=>{"use strict";n.d(e,{A:()=>N});let r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var i="object"==typeof global&&global&&global.Object===Object&&global,o="object"==typeof self&&self&&self.Object===Object&&self,a=i||o||Function("return this")();let u=function(){return a.Date.now()};var s=/\s/;let l=function(t){for(var e=t.length;e--&&s.test(t.charAt(e)););return e};var h=/^\s+/,c=a.Symbol,f=Object.prototype,d=f.hasOwnProperty,p=f.toString,m=c?c.toStringTag:void 0;let g=function(t){var e=d.call(t,m),n=t[m];try{t[m]=void 0;var r=!0}catch(t){}var i=p.call(t);return r&&(e?t[m]=n:delete t[m]),i};var y=Object.prototype.toString,v=c?c.toStringTag:void 0;
370let b=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":v&&v in Object(t)?g(t):y.call(t)},_=function(t){return"symbol"==typeof t||null!=t&&"object"==typeof t&&"[object Symbol]"==b(t)};var E=0/0,x=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,S=/^0o[0-7]+$/i,M=parseInt;let A=function(t){if("number"==typeof t)return t;if(_(t))return E;if(r(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=r(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,l(e)+1).replace(h,""):e;var i=w.test(t);return i||S.test(t)?M(t.slice(2),i?2:8):x.test(t)?E:+t};var P=Math.max,T=Math.min;let k=function(t,e,n){var i,o,a,s,l,h,c=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var n=i,r=o;return i=o=void 0,c=e,s=t.apply(r,n)}function g(t){var n=t-h,r=t-c;return void 0===h||n>=e||n<0||d&&r>=a}function y(){var t,n,r,i=u();if(g(i))return v(i);l=setTimeout(y,(t=i-h,n=i-c,r=e-t,d?T(r,a-n):r))}function v(t){return(l=void 0,p&&i)?m(t):(i=o=void 0,s)}function b(){var t,n=u(),r=g(n);if(i=arguments,o=this,h=n,r){if(void 0===l)return c=t=h,l=setTimeout(y,e),f?m(t):s;if(d)return clearTimeout(l),l=setTimeout(y,e),m(h)}return void 0===l&&(l=setTimeout(y,e)),s}return e=A(e)||0,r(n)&&(f=!!n.leading,a=(d="maxWait"in n)?P(A(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==l&&clearTimeout(l),c=0,i=h=o=l=void 0},b.flush=function(){return void 0===l?s:v(u())},b};function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var F=function(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e,n){var r=n.default,i=n.triggerUpdate,o=n.onChange;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.name=e,this.defaultVal=void 0===r?null:r,this.triggerUpdate=void 0===i||i,this.onChange=void 0===o?function(t,e){}:o});function N(t){var e=t.stateInit,n=void 0===e?function(){return{}}:e,r=t.props,i=void 0===r?{}:r,o=t.methods,a=void 0===o?{}:o,u=t.aliases,s=void 0===u?{}:u,l=t.init,h=void 0===l?function(){}:l,c=t.update,f=void 0===c?function(){}:c,d=Object.keys(i).map(function(t){return new F(t,i[t])});return function t(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=!!(this instanceof t?this.constructor:void 0),u=o?r.shift():void 0,l=r[0],c=void 0===l?{}:l,p=Object.assign({},n instanceof Function?n(c):n,{initialised:!1}),m={};function g(t){return y(t,c),v(),g}var y=function(t,e){h.call(g,t,p,e),p.initialised=!0},v=k(function(){p.initialised&&(f.call(g,p,m),m={})},1);return d.forEach(function(t){var e,n,r,i,o,a,u,s;g[t.name]=(n=(e=t).name,i=void 0!==(r=e.triggerUpdate)&&r,a=void 0===(o=e.onChange)?function(t,e){}:o,s=void 0===(u=e.defaultVal)?null:u,function(t){var e=p[n];if(!arguments.length)return e;var r=void 0===t?s:t;return p[n]=r,a.call(g,r,p,e),m.hasOwnProperty(n)||(m[n]=e),i&&v(),g})}),Object.keys(a).forEach(function(t){g[t]=function(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=a[t]).call.apply(e,[g,p].concat(r))}}),Object.entries(s).forEach(function(t){var e=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,l=!1;try{o=(n=n.call(t)).next,!1;for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){l=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,2)||function(t,e){if(t){if("string"==typeof t)return O(t,2);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=e[0],r=e[1];return g[n]=g[r]}),g.resetProps=function(){return d.forEach(function(t){g[t.name](t.defaultVal)}),g},g.resetProps(),p._rerender=v,o&&u&&g(u),g}}},12339:(t,e,n)=>{"use strict";function r(t){return"rgb("+Math.max(0,Math.min(255,Math.round(34.61+(t=Math.max(0,Math.min(1,t)))*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+
370Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}n.d(e,{A:()=>r})},15651:(t,e,n)=>{"use strict";function r(t,e){t&&o.hasOwnProperty(t.type)&&o[t.type](t,e)}n.d(e,{A:()=>s});var i={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,o=n.length;++i<o;)r(n[i].geometry,e)}},o={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){a(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)a(n[r],e,0)},Polygon:function(t,e){u(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)u(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,o=n.length;++i<o;)r(n[i],e)}};function a(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function u(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)a(t[n],e,1);e.polygonEnd()}function s(t,e){t&&i.hasOwnProperty(t.type)?i[t.type](t,e):r(t,e)}},16394:(t,e,n)=>{"use strict";function r(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function i(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function o(t){let e,n,o;function u(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{let e=i+o>>>1;0>n(t[e],r)?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=r,n=(e,n)=>r(t(e),n),o=(e,n)=>t(e)-n):(e=t===r||t===i?t:a,n=t,o=t),{left:u,center:function(t,e,n=0,r=t.length){let i=u(t,e,n,r-1);return i>n&&o(t[i-1],e)>-o(t[i],e)?i-1:i},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{let e=i+o>>>1;0>=n(t[e],r)?i=e+1:o=e}while(i<o)}return i}}}function a(){return 0}n.d(e,{Ay:()=>l});let u=o(r),s=u.right;u.left,o(function(t){return null===t?NaN:+t}).center;let l=s},17228:(t,e,n)=>{"use strict";function r(t,e,n){t*=1,e*=1,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=Array(i);++r<i;)o[r]=t+r*n;return o}n.d(e,{q:()=>u});var i=n(61409);function o(t,e,n){var o=r(t,e-i.Ni,n).concat(e);return function(t){return o.map(function(e){return[t,e]})}}function a(t,e,n){var o=r(t,e-i.Ni,n).concat(e);return function(t){return o.map(function(e){return[e,t]})}}function u(){return(function(){var t,e,n,u,s,l,h,c,f,d,p,m,g=10,y=10,v=90,b=360,_=2.5;function E(){return{type:"MultiLineString",coordinates:x()}}function x(){return r((0,i.mk)(u/v)*v,n,v).map(p).concat(r((0,i.mk)(c/b)*b,h,b).map(m)).concat(r((0,i.mk)(e/g)*g,t,g).filter(function(t){return(0,i.tn)(t%v)>i.Ni}).map(f)).concat(r((0,i.mk)(l/y)*y,s,y).filter(function(t){return(0,i.tn)(t%b)>i.Ni}).map(d))}return E.lines=function(){return x().map(function(t){return{type:"LineString",coordinates:t}})},E.outline=function(){return{type:"Polygon",coordinates:[p(u).concat(m(h).slice(1),p(n).reverse().slice(1),m(c).reverse().slice(1))]}},E.extent=function(t){return arguments.length?E.extentMajor(t).extentMinor(t):E.extentMinor()},E.extentMajor=function(t){return arguments.length?(u=+t[0][0],n=+t[1][0],c=+t[0][1],h=+t[1][1],u>n&&(t=u,u=n,n=t),c>h&&(t=c,c=h,h=t),E.precision(_)):[[u,c],[n,h]]},E.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],l=+n[0][1],s=+n[1][1],e>t&&(n=e,e=t,t=n),l>s&&(n=l,l=s,s=n),E.precision(_)):[[e,l],[t,s]]},E.step=function(t){return arguments.length?E.stepMajor(t).stepMinor(t):E.stepMinor()},E.stepMajor=function(t){return arguments.length?(v=+t[0],b=+t[1],E):[v,b]},E.stepMinor=function(t){return arguments.length?(g=+t[0],y=+t[1],E):[g,y]},E.precision=function(r){return arguments.length?(_=+r,f=o(l,s,90),d=a(e,t,_),p=o(c,h,90),m=a(u,n,_),E):_},E.extentMajor([[-180,-90+i.Ni],[180,90-i.Ni]]).extentMinor([[-180,-80-i.Ni],[180,80+i.Ni]])})()()}},17593:(t,e,n)=>{"use strict";n.d(e,{A:()=>function t(){var e=(function(){var t,e,n,r,i,o,a=y,u=y,s=d.A,l=v;function h(){var t,e,n,s=Math.min(a.length,u.length);return l!==v&&(t=a[0],e=a[s-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=s>2?E:_,i=o=null,c}function c(e){return null==e||isNaN(e*=1)?n:(i||(i=r(a.map(t),u,s)))(t(l(e)))}return c.invert=function(n){return l(e((o||(o=r(u,a.map(t),p.A)))(n)))},c.domain=function(t){return arguments.length?(a=Array.from(t,g),h()):a.slice()},c.range=function(t){return arguments.length?(u=Array.from(t),h()):u.slice()},c.rangeRound=function(t){return u=Array.from(t),s=m,h()},c.clamp=function(t){return arguments.length?(l=!!t||v,h()):l!==v},c.interpolate=function(t){return arguments.length?(s=t,h()):s},c.unknown=function(t){return arguments.length?(n=t,c):n},function(n,r){return t=n,e=r,h()}})()(v,v);return e.copy=function(){return t().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())},x.C.apply(e,arguments),j(e)},C:()=>j});let r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){let u,s,l,h=(e-t)/Math.max(0,n),c=Math.floor(Math.log10(h)),f=h/Math.pow(10,c),d=f>=r?10:f>=i?5:f>=o?2:1;return(c<0?(u=Math.round(t*(l=Math.pow(10,-c)/d)),s=Math.round(e*l),u/l<t&&++u,s/l>e&&--s,l=-l):(u=Math.round(t/(l=Math.pow(10,c)*d)),s=Math.round(e/l),u*l<t&&++u,s*l>e&&--s),s<u&&.5<=n&&n<2)?a(t,e,2*n):[u,s,l]}function u(t,e,n){return a(t*=1,e*=1,n*=1)[2]}var s,l,h,c,f=n(16394),d=n(97668),p=n(71716);function m(t,e){return t*=1,e*=1,function(n){return Math.round(t*(1-n)+e*n)}}function g(t){return+t}var y=[0,1];function v(t){return t}function b(t,e){var n;return(e-=t*=1)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})}function _(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=b(i,r),o=n(a,o)):(r=b(r,i),o=n(o,a)),function(t){return o(r(t))}}function E(t,e,n){var r=Math.min(t.length,e.length)-1,i=Array(r),o=Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=b(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=(0,f.Ay)(t,e,1,r)-1;return o[n](i[n](e))}}var x=n(6256),w=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function S(t){var e;if(!(e=w.exec(t)))throw Error("invalid format: "+t);return new M({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function M(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.
370width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function A(t,e){if(!isFinite(t)||0===t)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function P(t){return(t=A(Math.abs(t)))?t[1]:NaN}function T(t,e){var n=A(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}S.prototype=M.prototype,M.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let k={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>T(100*t,e),r:T,s:function(t,e){var n=A(t,e);if(!n)return s=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(s=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+Array(1-o).join("0")+A(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function O(t){return t}var F=Array.prototype.map,N=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function j(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(e*=1,t*=1,!((n*=1)>0))return[];if(t===e)return[t];let r=e<t,[i,o,u]=r?a(e,t,n):a(t,e,n);if(!(o>=i))return[];let s=o-i+1,l=Array(s);if(r)if(u<0)for(let t=0;t<s;++t)l[t]=-((o-t)/u);else for(let t=0;t<s;++t)l[t]=(o-t)*u;else if(u<0)for(let t=0;t<s;++t)l[t]=-((i+t)/u);else for(let t=0;t<s;++t)l[t]=(i+t)*u;return l}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,o,a=function(t,e,n){e*=1,t*=1,n*=1;let r=e<t,i=r?u(e,t,n):u(t,e,n);return(r?-1:1)*(i<0?-(1/i):i)}(t,e,n);switch((r=S(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(P(s)/3)))-P(Math.abs(a))))||(r.precision=o),c(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Math.max(0,P(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=a)))-P(i))+1)||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Math.max(0,-P(Math.abs(a))))||(r.precision=o-("%"===r.type)*2)}return h(r)}(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,s=o.length-1,l=o[a],h=o[s],c=10;for(h<l&&(i=l,l=h,h=i,i=a,a=s,s=i);c-- >0;){if((i=u(l,h,n))===r)return o[a]=l,o[s]=h,e(o);if(i>0)l=Math.floor(l/i)*i,h=Math.ceil(h/i)*i;else if(i<0)l=Math.ceil(l*i)/i,h=Math.floor(h*i)/i;else break;r=i}return t},t}h=(l=function(t){var e,n,r,i=void 0===t.grouping||void 0===t.thousands?O:(e=F.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(t.substring(i-=u,i+u)),!((s+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?O:(r=F.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return r[+t]})}),h=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function d(t,e){var n=(t=S(t)).fill,r=t.align,d=t.sign,p=t.symbol,m=t.zero,g=t.width,y=t.comma,v=t.precision,b=t.trim,_=t.type;"n"===_?(y=!0,_="g"):k[_]||(void 0===v&&(v=12),b=!0,_="g"),(m||"0"===n&&"="===r)&&(m=!0,n="0",r="=");var E=(e&&void 0!==e.prefix?e.prefix:"")+("$"===p?o:"#"===p&&/[boxX]/.test(_)?"0"+_.toLowerCase():""),x=("$"===p?a:/[%p]/.test(_)?h:"")+(e&&void 0!==e.suffix?e.suffix:""),w=k[_],M=/[defgprs%]/.test(_);function A(t){var e,o,a,h=E,p=x;if("c"===_)p=w(t)+p,t="";else{var S=(t*=1)<0||1/t<0;if(t=isNaN(t)?f:w(Math.abs(t),v),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==d&&(S=!1),h=(S?"("===d?d:c:"-"===d||"("===d?"":d)+h,p=("s"!==_||isNaN(t)||void 0===s?"":N[8+s/3])+p+(S&&"("===d?")":""),M){for(e=-1,o=t.length;++e<o;)if(48>(a=t.charCodeAt(e))||a>57){p=(46===a?u+t.slice(e+1):t.slice(e))+p,t=t.slice(0,e);break}}}y&&!m&&(t=i(t,1/0));var A=h.length+t.length+p.length,P=A<g?Array(g-A+1).join(n):"";switch(y&&m&&(t=i(P+t,P.length?g-p.length:1/0),P=""),r){case"<":t=h+t+p+P;break;case"=":t=h+P+t+p;break;case"^":t=P.slice(0,A=P.length>>1)+h+t+p+P.slice(A);break;default:t=P+h+t+p}return l(t)}return v=void 0===v?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),A.toString=function(){return t+""},A}return{format:d,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor(P(e)/3))),r=Math.pow(10,-n),i=d(((t=S(t)).type="f",t),{suffix:N[8+n/3]});return function(t){return i(r*t)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,c=l.formatPrefix},21375:(t,e,n)=>{"use strict";n.r(e),n.d(e,{computeMikkTSpaceTangents:()=>i,computeMorphedAttributes:()=>p,deepCloneAttribute:()=>u,deinterleaveAttribute:()=>l,deinterleaveGeometry:()=>h,estimateBytesUsed:()=>c,interleaveAttributes:()=>s,mergeAttributes:()=>a,mergeGeometries:()=>o,mergeGroups:()=>m,mergeVertices:()=>f,toCreasedNormals:()=>g,toTrianglesDrawMode:()=>d});var r=n(85339);function i(t,e,n=!0){if(!e||!e.isReady)throw Error("BufferGeometryUtils: Initialized MikkTSpace library required.");
370if(!t.hasAttribute("position")||!t.hasAttribute("normal")||!t.hasAttribute("uv"))throw Error('BufferGeometryUtils: Tangents require "position", "normal", and "uv" attributes.');function o(t){if(t.normalized||t.isInterleavedBufferAttribute){let e=new Float32Array(t.count*t.itemSize);for(let n=0,r=0;n<t.count;n++)e[r++]=t.getX(n),e[r++]=t.getY(n),t.itemSize>2&&(e[r++]=t.getZ(n));return e}return t.array instanceof Float32Array?t.array:new Float32Array(t.array)}let a=t.index?t.toNonIndexed():t,u=e.generateTangents(o(a.attributes.position),o(a.attributes.normal),o(a.attributes.uv));if(n)for(let t=3;t<u.length;t+=4)u[t]*=-1;return a.setAttribute("tangent",new r.THS(u,4)),t!==a&&t.copy(a),t}function o(t,e=!1){let n=null!==t[0].index,i=new Set(Object.keys(t[0].attributes)),u=new Set(Object.keys(t[0].morphAttributes)),s={},l={},h=t[0].morphTargetsRelative,c=new r.LoY,f=0;for(let r=0;r<t.length;++r){let o=t[r],a=0;if(n!==(null!==o.index))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(let t in o.attributes){if(!i.has(t))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+'. All geometries must have compatible attributes; make sure "'+t+'" attribute exists among all geometries, or in none of them.'),null;void 0===s[t]&&(s[t]=[]),s[t].push(o.attributes[t]),a++}if(a!==i.size)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". Make sure all geometries have the same number of attributes."),null;if(h!==o.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(let t in o.morphAttributes){if(!u.has(t))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". .morphAttributes must be consistent throughout all geometries."),null;void 0===l[t]&&(l[t]=[]),l[t].push(o.morphAttributes[t])}if(e){let t;if(n)t=o.index.count;else{if(void 0===o.attributes.position)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". The geometry must have either an index or a position attribute"),null;t=o.attributes.position.count}c.addGroup(f,t,r),f+=t}}if(n){let e=0,n=[];for(let r=0;r<t.length;++r){let i=t[r].index;for(let t=0;t<i.count;++t)n.push(i.getX(t)+e);e+=t[r].attributes.position.count}c.setIndex(n)}for(let t in s){let e=a(s[t]);if(!e)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" attribute."),null;c.setAttribute(t,e)}for(let t in l){let e=l[t][0].length;if(0===e)break;c.morphAttributes=c.morphAttributes||{},c.morphAttributes[t]=[];for(let n=0;n<e;++n){let e=[];for(let r=0;r<l[t].length;++r)e.push(l[t][r][n]);let r=a(e);if(!r)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" morphAttribute."),null;c.morphAttributes[t].push(r)}}return c}function a(t){let e,n,i,o=-1,a=0;for(let r=0;r<t.length;++r){let u=t[r];if(void 0===e&&(e=u.array.constructor),e!==u.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(void 0===n&&(n=u.itemSize),n!==u.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(void 0===i&&(i=u.normalized),i!==u.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(-1===o&&(o=u.gpuType),o!==u.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;a+=u.count*n}let u=new e(a),s=new r.THS(u,n,i),l=0;for(let e=0;e<t.length;++e){let r=t[e];if(r.isInterleavedBufferAttribute){let t=l/n;for(let e=0,i=r.count;e<i;e++)for(let i=0;i<n;i++){let n=r.getComponent(e,i);
370s.setComponent(e+t,i,n)}}else u.set(r.array,l);l+=r.count*n}return void 0!==o&&(s.gpuType=o),s}function u(t){return t.isInstancedInterleavedBufferAttribute||t.isInterleavedBufferAttribute?l(t):t.isInstancedBufferAttribute?new r.uWO().copy(t):new r.THS().copy(t)}function s(t){let e,n=0,i=0;for(let r=0,o=t.length;r<o;++r){let o=t[r];if(void 0===e&&(e=o.array.constructor),e!==o.array.constructor)return console.error("AttributeBuffers of different types cannot be interleaved"),null;n+=o.array.length,i+=o.itemSize}let o=new r.eB$(new e(n),i),a=0,u=[],s=["getX","getY","getZ","getW"],l=["setX","setY","setZ","setW"];for(let e=0,n=t.length;e<n;e++){let n=t[e],i=n.itemSize,h=n.count,c=new r.eHs(o,i,a,n.normalized);u.push(c),a+=i;for(let t=0;t<h;t++)for(let e=0;e<i;e++)c[l[e]](t,n[s[e]](t))}return u}function l(t){let e,n=t.data.array.constructor,i=t.count,o=t.itemSize,a=t.normalized,u=new n(i*o);e=t.isInstancedInterleavedBufferAttribute?new r.uWO(u,o,a,t.meshPerAttribute):new r.THS(u,o,a);for(let n=0;n<i;n++)e.setX(n,t.getX(n)),o>=2&&e.setY(n,t.getY(n)),o>=3&&e.setZ(n,t.getZ(n)),o>=4&&e.setW(n,t.getW(n));return e}function h(t){let e=t.attributes,n=t.morphTargets,r=new Map;for(let t in e){let n=e[t];n.isInterleavedBufferAttribute&&(r.has(n)||r.set(n,l(n)),e[t]=r.get(n))}for(let t in n){let e=n[t];e.isInterleavedBufferAttribute&&(r.has(e)||r.set(e,l(e)),n[t]=r.get(e))}}function c(t){let e=0;for(let n in t.attributes){let r=t.getAttribute(n);e+=r.count*r.itemSize*r.array.BYTES_PER_ELEMENT}let n=t.getIndex();return e+(n?n.count*n.itemSize*n.array.BYTES_PER_ELEMENT:0)}function f(t,e=1e-4){e=Math.max(e,Number.EPSILON);let n={},r=t.getIndex(),i=t.getAttribute("position"),o=r?r.count:i.count,a=0,u=Object.keys(t.attributes),s={},l={},h=[],c=["getX","getY","getZ","getW"],d=["setX","setY","setZ","setW"];for(let e=0,n=u.length;e<n;e++){let n=u[e],r=t.attributes[n];s[n]=new r.constructor(new r.array.constructor(r.count*r.itemSize),r.itemSize,r.normalized);let i=t.morphAttributes[n];i&&(l[n]||(l[n]=[]),i.forEach((t,e)=>{let r=new t.array.constructor(t.count*t.itemSize);l[n][e]=new t.constructor(r,t.itemSize,t.normalized)}))}let p=.5*e,m=Math.pow(10,Math.log10(1/e)),g=p*m;for(let e=0;e<o;e++){let i=r?r.getX(e):e,o="";for(let e=0,n=u.length;e<n;e++){let n=u[e],r=t.getAttribute(n),a=r.itemSize;for(let t=0;t<a;t++)o+=`${~~(r[c[t]](i)*m+g)},`}if(o in n)h.push(n[o]);else{for(let e=0,n=u.length;e<n;e++){let n=u[e],r=t.getAttribute(n),o=t.morphAttributes[n],h=r.itemSize,f=s[n],p=l[n];for(let t=0;t<h;t++){let e=c[t],n=d[t];if(f[n](a,r[e](i)),o)for(let t=0,r=o.length;t<r;t++)p[t][n](a,o[t][e](i))}}n[o]=a,h.push(a),a++}}let y=t.clone();for(let e in t.attributes){let t=s[e];if(y.setAttribute(e,new t.constructor(t.array.slice(0,a*t.itemSize),t.itemSize,t.normalized)),e in l)for(let t=0;t<l[e].length;t++){let n=l[e][t];y.morphAttributes[e][t]=new n.constructor(n.array.slice(0,a*n.itemSize),n.itemSize,n.normalized)}}return y.setIndex(h),y}function d(t,e){if(e===r.RJ4)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),t;if(e!==r.rYR&&e!==r.O49)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",e),t;{let n=t.getIndex();if(null===n){let e=[],r=t.getAttribute("position");if(void 0===r)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),t;for(let t=0;t<r.count;t++)e.push(t);t.setIndex(e),n=t.getIndex()}let i=n.count-2,o=[];if(e===r.rYR)for(let t=1;t<=i;t++)o.push(n.getX(0)),o.push(n.getX(t)),o.push(n.getX(t+1));else for(let t=0;t<i;t++)t%2==0?(o.push(n.getX(t)),o.push(n.getX(t+1)),o.push(n.getX(t+2))):(o.push(n.getX(t+2)),o.push(n.getX(t+1)),o.push(n.getX(t)));o.length/3!==i&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");let a=t.clone();return a.setIndex(o),a.clearGroups(),a}}function p(t){let e,n,i,o,a,u,s,l,h,c,f=new r.Pq0,d=new r.Pq0,p=new r.Pq0,m=new r.Pq0,g=new r.Pq0,y=new r.Pq0,v=new r.Pq0,b=new r.Pq0,_=new r.Pq0;function E(t,e,n,r,i,o,a,u){f.fromBufferAttribute(e,i),d.fromBufferAttribute(e,o),p.fromBufferAttribute(e,a);let s=t.morphTargetInfluences;if(n&&s){v.set(0,0,0),b.set(0,0,0),_.set(0,0,0);for(let t=0,e=n.length;t<e;t++){let e=s[t],u=n[t];0!==e&&(m.fromBufferAttribute(u,i),g.fromBufferAttribute(u,o),y.fromBufferAttribute(u,a),r?(v.addScaledVector(m,e),b.addScaledVector(g,e),_.addScaledVector(y,e)):(v.addScaledVector(m.sub(f),e),b.addScaledVector(g.sub(d),e),_.addScaledVector(y.sub(p),e)))}f.add(v),d.add(b),p.add(_)}t.isSkinnedMesh&&(t.applyBoneTransform(i,f),t.applyBoneTransform(o,d),t.applyBoneTransform(a,p)),u[3*i+0]=f.x,u[3*i+1]=f.y,u[3*i+2]=f.z,u[3*o+0]=d.x,u[3*o+1]=d.y,u[3*o+2]=d.z,u[3*a+0]=p.x,u[3*a+1]=p.y,u[3*a+2]=p.z}let x=t.geometry,w=t.material,S=x.index,M=x.attributes.position,A=x.morphAttributes.position,P=x.morphTargetsRelative,T=x.attributes.normal,k=x.morphAttributes.position,O=x.groups,F=x.drawRange,N=new Float32Array(M.count*M.itemSize),j=new Float32Array(T.count*T.itemSize);if(null!==S)if(Array.isArray(w))for(o=0,u=O.length;o<u;o++)for(h=Math.max((l=O[o]).start,F.start),c=Math.min(l.start+l.count,F.start+F.count),a=h,s=c;a<s;a+=3)e=S.getX(a),E(t,M,A,P,e,n=S.getX(a+1),i=S.getX(a+2),N),E(t,T,k,P,e,n,i,j);else for(h=Math.max(0,F.start),c=Math.min(S.count,F.start+F.count),o=h,u=c;o<u;o+=3)e=S.getX(o),E(t,M,A,P,e,n=S.getX(o+1),i=S.getX(o+2),N),E(t,T,k,P,e,n,i,j);else if(Array.isArray(w))for(o=0,u=O.length;o<u;o++)for(h=Math.max((l=O[o]).start,F.start),c=Math.min(l.start+l.count,F.start+F.count),a=h,s=c;a<s;a+=3)E(t,M,A,P,e=a,n=a+1,i=a+2,N),E(t,T,k,P,e,n,i,j);else for(h=Math.max(0,F.start),c=Math.min(M.count,F.start+F.count),o=h,u=c;o<u;o+=3)E(t,M,A,P,e=o,n=o+1,i=o+2,N),E(t,T,k,P,e,n,i,j);return{positionAttribute:M,normalAttribute:T,morphedPositionAttribute:new r.qtW(N,3),morphedNormalAttribute:new r.qtW(j,3)}}function m(t){if(0===t.groups.length)return console.warn("THREE.BufferGeometryUtils.mergeGroups(): No groups are defined. Nothing to merge."),t;let e=t.groups;if(e=e.sort((t,e)=>t.materialIndex!==e.materialIndex?t.materialIndex-e.materialIndex:t.start-e.start),null===t.getIndex()){let e=t.getAttribute("position"),n=[];for(let t=0;t<e.count;t+=3)n.push(t,t+1,t+2);t.setIndex(n)}let n=t.getIndex(),r=[];for(let t=0;t<e.length;t++){let i=e[t],o=i.start,a=o+i.count;for(let t=o;t<a;t++)r.push(n.getX(t))}t.dispose(),t.setIndex(r);let i=0;for(let t=0;t<e.length;t++){let n=e[t];n.start=i,i+=n.count}let o=e[0];t.groups=[o];for(let n=1;n<e.length;n++){let r=e[n];o.materialIndex===r.materialIndex?o.count+=r.count:(o=r,t.groups.push(o))}return t}function g(t,e=Math.PI/3){let n=Math.cos(e),i=(1+1e-10)*100,o=[new r.Pq0,new r.Pq0,new r.Pq0],a=new r.Pq0,u=new r.Pq0,s=new r.Pq0,l=new r.Pq0;function h(t){let e=~~(t.x*i),n=~~(t.y*i),r=~~(t.z*i);return`${e},${n},${r}`}
370let c=t.index?t.toNonIndexed():t,f=c.attributes.position,d={};for(let t=0,e=f.count/3;t<e;t++){let e=3*t,n=o[0].fromBufferAttribute(f,e+0),i=o[1].fromBufferAttribute(f,e+1),s=o[2].fromBufferAttribute(f,e+2);a.subVectors(s,i),u.subVectors(n,i);let l=new r.Pq0().crossVectors(a,u).normalize();for(let t=0;t<3;t++){let e=h(o[t]);e in d||(d[e]=[]),d[e].push(l)}}let p=new Float32Array(3*f.count),m=new r.THS(p,3,!1);for(let t=0,e=f.count/3;t<e;t++){let e=3*t,r=o[0].fromBufferAttribute(f,e+0),i=o[1].fromBufferAttribute(f,e+1),c=o[2].fromBufferAttribute(f,e+2);a.subVectors(c,i),u.subVectors(r,i),s.crossVectors(a,u).normalize();for(let t=0;t<3;t++){let r=d[h(o[t])];l.set(0,0,0);for(let t=0,e=r.length;t<e;t++){let e=r[t];s.dot(e)>n&&l.add(e)}l.normalize(),m.setXYZ(e+t,l.x,l.y,l.z)}}return c.setAttribute("normal",m),c}},21755:(t,e,n)=>{"use strict";function r(){}n.d(e,{A:()=>r})},24770:(t,e,n)=>{"use strict";let r,i;n.d(e,{X:()=>S});var o=n(85339),a=n(35330),u=n(473);let s=new o.IUQ,l=new o.Pq0,h=new o.Pq0,c=new o.IUQ,f=new o.IUQ,d=new o.IUQ,p=new o.Pq0,m=new o.kn4,g=new o.cZY,y=new o.Pq0,v=new o.NRn,b=new o.iyt,_=new o.IUQ;function E(t,e,n){return _.set(0,0,-e,1).applyMatrix4(t.projectionMatrix),_.multiplyScalar(1/_.w),_.x=i/n.width,_.y=i/n.height,_.applyMatrix4(t.projectionMatrixInverse),_.multiplyScalar(1/_.w),Math.abs(Math.max(_.x,_.y))}class x extends o.eaF{constructor(t=new a.n,e=new u.G({color:0xffffff*Math.random()})){super(t,e),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){let t=this.geometry,e=t.attributes.instanceStart,n=t.attributes.instanceEnd,r=new Float32Array(2*e.count);for(let t=0,i=0,o=e.count;t<o;t++,i+=2)l.fromBufferAttribute(e,t),h.fromBufferAttribute(n,t),r[i]=0===i?0:r[i-1],r[i+1]=r[i]+l.distanceTo(h);let i=new o.LuO(r,2,1);return t.setAttribute("instanceDistanceStart",new o.eHs(i,1,0)),t.setAttribute("instanceDistanceEnd",new o.eHs(i,1,1)),this}raycast(t,e){let n,a,u=this.material.worldUnits,s=t.camera;null!==s||u||console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');let l=void 0!==t.params.Line2&&t.params.Line2.threshold||0;r=t.ray;let h=this.matrixWorld,_=this.geometry,x=this.material;if(i=x.linewidth+l,null===_.boundingSphere&&_.computeBoundingSphere(),b.copy(_.boundingSphere).applyMatrix4(h),u)n=.5*i;else{let t=Math.max(s.near,b.distanceToPoint(r.origin));n=E(s,t,x.resolution)}if(b.radius+=n,!1!==r.intersectsSphere(b)){if(null===_.boundingBox&&_.computeBoundingBox(),v.copy(_.boundingBox).applyMatrix4(h),u)a=.5*i;else{let t=Math.max(s.near,v.distanceToPoint(r.origin));a=E(s,t,x.resolution)}v.expandByScalar(a),!1!==r.intersectsBox(v)&&(u?function(t,e){let n=t.matrixWorld,a=t.geometry,u=a.attributes.instanceStart,s=a.attributes.instanceEnd,l=Math.min(a.instanceCount,u.count);for(let a=0;a<l;a++){g.start.fromBufferAttribute(u,a),g.end.fromBufferAttribute(s,a),g.applyMatrix4(n);let l=new o.Pq0,h=new o.Pq0;r.distanceSqToSegment(g.start,g.end,h,l),h.distanceTo(l)<.5*i&&e.push({point:h,pointOnLine:l,distance:r.origin.distanceTo(h),object:t,face:null,faceIndex:a,uv:null,uv1:null})}}(this,e):function(t,e,n){let a=e.projectionMatrix,u=t.material.resolution,s=t.matrixWorld,l=t.geometry,h=l.attributes.instanceStart,v=l.attributes.instanceEnd,b=Math.min(l.instanceCount,h.count),_=-e.near;r.at(1,d),d.w=1,d.applyMatrix4(e.matrixWorldInverse),d.applyMatrix4(a),d.multiplyScalar(1/d.w),d.x*=u.x/2,d.y*=u.y/2,d.z=0,p.copy(d),m.multiplyMatrices(e.matrixWorldInverse,s);for(let e=0;e<b;e++){if(c.fromBufferAttribute(h,e),f.fromBufferAttribute(v,e),c.w=1,f.w=1,c.applyMatrix4(m),f.applyMatrix4(m),c.z>_&&f.z>_)continue;if(c.z>_){let t=c.z-f.z,e=(c.z-_)/t;c.lerp(f,e)}else if(f.z>_){let t=f.z-c.z,e=(f.z-_)/t;f.lerp(c,e)}c.applyMatrix4(a),f.applyMatrix4(a),c.multiplyScalar(1/c.w),f.multiplyScalar(1/f.w),c.x*=u.x/2,c.y*=u.y/2,f.x*=u.x/2,f.y*=u.y/2,g.start.copy(c),g.start.z=0,g.end.copy(f),g.end.z=0;let l=g.closestPointToPointParameter(p,!0);g.at(l,y);let d=o.cj9.lerp(c.z,f.z,l),b=d>=-1&&d<=1,E=p.distanceTo(y)<.5*i;if(b&&E){g.start.fromBufferAttribute(h,e),g.end.fromBufferAttribute(v,e),g.start.applyM
370atrix4(s),g.end.applyMatrix4(s);let i=new o.Pq0,a=new o.Pq0;r.distanceSqToSegment(g.start,g.end,a,i),n.push({point:a,pointOnLine:i,distance:r.origin.distanceTo(a),object:t,face:null,faceIndex:e,uv:null,uv1:null})}}}(this,s,e))}}onBeforeRender(t){let e=this.material.uniforms;e&&e.resolution&&(t.getViewport(s),this.material.uniforms.resolution.value.set(s.z,s.w))}}var w=n(64596);class S extends x{constructor(t=new w.v,e=new u.G({color:0xffffff*Math.random()})){super(t,e),this.isLine2=!0,this.type="Line2"}}},24905:(t,e,n)=>{"use strict";n.d(e,{GS:()=>r,K:()=>l,YJ:()=>o});var r=Object.freeze({Linear:Object.freeze({None:function(t){return t},In:function(t){return t},Out:function(t){return t},InOut:function(t){return t}}),Quadratic:Object.freeze({In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}}),Cubic:Object.freeze({In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}}),Quartic:Object.freeze({In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}}),Quintic:Object.freeze({In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}}),Sinusoidal:Object.freeze({In:function(t){return 1-Math.sin((1-t)*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.sin(Math.PI*(.5-t)))}}),Exponential:Object.freeze({In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}}),Circular:Object.freeze({In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}}),Elastic:Object.freeze({In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1}}),Back:Object.freeze({In:function(t){return 1===t?1:t*t*(2.70158*t-1.70158)},Out:function(t){return 0===t?0:--t*t*(2.70158*t+1.70158)+1},InOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)}}),Bounce:Object.freeze({In:function(t){return 1-r.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*r.Bounce.In(2*t):.5*r.Bounce.Out(2*t-1)+.5}}),generatePow:function(t){return void 0===t&&(t=4),t=(t=t<Number.EPSILON?Number.EPSILON:t)>1e4?1e4:t,{In:function(e){return Math.pow(e,t)},Out:function(e){return 1-Math.pow(1-e,t)},InOut:function(e){return e<.5?Math.pow(2*e,t)/2:(1-Math.pow(2-2*e,t))/2+.5}}}}),i=function(){return performance.now()},o=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,t)}return t.prototype.getAll=function(){var t=this;return Object.keys(this._tweens).map(function(e){return t._tweens[e]})},t.prototype.removeAll=function(){this._tweens={}},t.prototype.add=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];null==(t=i._group)||t.remove(i),i._group=this,this._tweens[i.getId()]=i,this._tweensAddedDuringUpdate[i.getId()]=i}},t.prototype.remove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;n++){var r=t[n];r._group=void 0,delete this._tweens[r.getId()],delete this._tweensAddedDuringUpdate[r.getId()]}},t.prototype.allStopped=function(){return this.getAll().every(function(t){return!t.isPlaying()})},t.prototype.update=function(t,e){void 0===t&&(t=i()),void 0===e&&(e=!0);var n=Object.keys(this._tweens);if(0!==n.length)for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r<n.length;r++){var o=this._tweens[n[r]],a=!e;o&&!1===o.update(t,a)&&!e&&this.remove(o)}n=Object.keys(this._tweensAddedDuringUpdate)}},t}(),a={Linear:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),o=a.Utils.Linear;return e<0?o(t[0],t[1],r):e>1?o(t[n],t[n-1],n-r):o(t[i],t[i+1>n?n:i+1],r-i)},Bezier:function(t,e){for(var n=0,r=t.length-1,i=Math.pow,o=a.Utils.Bernstein,u=0;u<=r;u++)n+=i(1-e,r-u)*i(e,u)*t[u]*o(r,u);return n},CatmullRom:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),o=a.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(i=Math.floor(r=n*(1+e))),o(t[(i-1+n)%n],t[i],t[(i+1)%n],t[(i+2)%n],r-i)):e<0?t[0]-(o(t[0],t[0],t[1],t[1],-r)-t[0]):e>1?t[n]-(o(t[n],t[n],t[n-1],t[n-1],r-n)-t[n]):o(t[i?i-1:0],t[i],t[n<i+1?n:i+1],t[n<i+2?n:i+2],r-i)},Utils:{Linear:function(t,e,n){return(e-t)*n+t},Bernstein:function(t,e){var n=a.Utils.Factorial;return n(t)/n(e)/n(t-e)},Factorial:function(){var t=[1];return function(e){var n=1;if(t[e])return t[e];for(var r=e;r>1;r--)n*=r;return t[e]=n,n}}(),CatmullRom:function(t,e,n,r,i){var o=(n-t)*.5,a=(r-e)*.5,u=i*i;return i*u*(2*e-2*n+o+a)+(-3*e+3*n-2*o-a)*u+o*i+e}}},u=function(){function t(){}return t.nextId=function(){return t._nextId++},t._nextId=0,t}(),s=new o,l=function(){function t(t,e){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=r.Linear.None,this._interpolationFunction=a.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=u.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=t,"object"==typeof e?(this._group=e,e.add(this)):!0===e&&(this._group=s,s.add(this))}return t.prototype.getId=function(){return this._id},t.prototype.isPlaying=function(){return this._isPlaying},t.prototype.isPaused=function(){return this._isPaused},t.prototype.getDuration=function(){return this._duration},t.prototype.to=function(t,e){if(void 0===e&&(e=1e3),this._isPlaying)throw Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=t,this._propertiesAreSetUp=!1,this._duration=e<0?0:e,this},t.prototype.duration=function(t){return void 0===t&&(t=1e3),this._duration=t<0?0:t,this},t.prototype.dynamic=function(t){return void 0===t&&(t=!1),this._isDynamic=t,this},t.prototype.start=function(t,e){if(void 0===t&&(t=i()),void 0===e&&(e=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed)for(var n in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,!this._propertiesAreSetUp||e){if(this._propertiesAreSetUp=!0,!this._isDynamic){var r={};for(var o in this._valuesEnd)r[o]=this._valuesEnd[o];this._valuesEnd=r}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,e)}return this},t.prototype.startFromCurrentValues=function(t){return this.start(t,!0)},t.prototype._setupProperties=function(t,e,n,r,i){for(var o in n){var a=t[o],u=Array.isArray(a),s=u?"array":typeof a,l=!u&&Array.isArray(n[o]);if("undefined"!==s&&"function"!==s){if(l){var h=n[o];if(0===h.length)continue;for(var c=[a],f=0,d=h.length;f<d;f+=1){var p=this._handleRelativeValue(a,h[f]);if(isNaN(p)){l=!1,console.warn("Found invalid interpolation list. Skipping.");break}c.push(p)}l&&(n[o]=c)}if(("object"===s||u)&&a&&!l){for(var m in e[o]=u?[]:{},a)e[o][m]=a[m];r[o]=u?[]:{};var h=n[o];if(!this._isDynamic){var g={};for(var m in h)g[m]=h[m];n[o]=h=g}this._setupProperties(a,e[o],h,r[o],i)}else(void 0===e[o]||i)&&(e[o]=a),u||(e[o]*=1),l?r[o]=n[o].slice().reverse():r[o]=e[o]||0}}},t.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying&&(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object)),this},t.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},t.prototype.pause=function(t){return void 0===t&&(t=i()),this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=t),this},t.prototype.resume=function(t){return void 0===t&&(t=i()),this._isPaused&&this._isPlaying&&(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0),this},t.prototype.stopChainedTweens=function(){for(var t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this},t.prototype.group=function(t){return t?t.add(this):console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this},t.prototype.remove=function(){var t;return null==(t=this._group)||t.remove(this),this},t.prototype.delay=function(t){return void 0===t&&(t=0),this._delayTime=t,this},t.prototype.repeat=function(t){return void 0===t&&(t=0),this._initialRepeat=t,this._repeat=t,this},t.prototype.repeatDelay=function(t){return this._repeatDelayTime=t,this},t.prototype.yoyo=function(t){return void 0===t&&(t=!1),this._yoyo=t,this},t.prototype.easing=function(t){return void 0===t&&(t=r.Linear.None),this._easingFunction=t,this},t.prototype.interpolation=function(t){return void 0===t&&(t=a.Linear),this._interpolationFunction=t,this},t.prototype.chain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._chainedTweens=t,this},t.prototype.onStart=function(t){return this._onStartCallback=t,this},t.prototype.onEveryStart=function(t){return this._onEveryStartCallback=t,this},t.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},t.prototype.onRepeat=function(t){return this._onRepeatCallback=t,this},t.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},t.prototype.onStop=function(t){return this._onStopCallback=t,this},t.prototype.update=function(e,n){var r,o,a=this;if(void 0===e&&(e=i()),void 0===n&&(n=t.autoStartOnUpdate),this._isPaused)return!0;
370if(!this._goToEnd&&!this._isPlaying)if(!n)return!1;else this.start(e,!0);if(this._goToEnd=!1,e<this._startTime)return!0;!1===this._onStartCallbackFired&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),!1===this._onEveryStartCallbackFired&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var u=e-this._startTime,s=this._duration+(null!=(r=this._repeatDelayTime)?r:this._delayTime),l=this._duration+this._repeat*s,h=function(){if(0===a._duration||u>l)return 1;var t=Math.trunc(u/s),e=Math.min((u-t*s)/a._duration,1);return 0===e&&u===a._duration?1:e}(),c=this._easingFunction(h);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,c),this._onUpdateCallback&&this._onUpdateCallback(this._object,h),0===this._duration||u>=this._duration)if(this._repeat>0){var f=Math.min(Math.trunc((u-this._duration)/s)+1,this._repeat);for(o in isFinite(this._repeat)&&(this._repeat-=f),this._valuesStartRepeat)this._yoyo||"string"!=typeof this._valuesEnd[o]||(this._valuesStartRepeat[o]=this._valuesStartRepeat[o]+parseFloat(this._valuesEnd[o])),this._yoyo&&this._swapEndStartRepeatValues(o),this._valuesStart[o]=this._valuesStartRepeat[o];this._yoyo&&(this._reversed=!this._reversed),this._startTime+=s*f,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var d=0,p=this._chainedTweens.length;d<p;d++)this._chainedTweens[d].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},t.prototype._updateProperties=function(t,e,n,r){for(var i in n)if(void 0!==e[i]){var o=e[i]||0,a=n[i],u=Array.isArray(t[i]),s=Array.isArray(a);!u&&s?t[i]=this._interpolationFunction(a,r):"object"==typeof a&&a?this._updateProperties(t[i],o,a,r):"number"==typeof(a=this._handleRelativeValue(o,a))&&(t[i]=o+(a-o)*r)}},t.prototype._handleRelativeValue=function(t,e){return"string"!=typeof e?e:"+"===e.charAt(0)||"-"===e.charAt(0)?t+parseFloat(e):parseFloat(e)},t.prototype._swapEndStartRepeatValues=function(t){var e=this._valuesStartRepeat[t],n=this._valuesEnd[t];"string"==typeof n?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=this._valuesEnd[t],this._valuesEnd[t]=e},t.autoStartOnUpdate=!1,t}();u.nextId,s.getAll.bind(s),s.removeAll.bind(s),s.add.bind(s),s.remove.bind(s),s.update.bind(s)},35330:(t,e,n)=>{"use strict";n.d(e,{n:()=>a});var r=n(85339);let i=new r.NRn,o=new r.Pq0;class a extends r.CmU{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry",this.setIndex([0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5]),this.setAttribute("position",new r.qtW([-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],3)),this.setAttribute("uv",new r.qtW([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2))}applyMatrix4(t){let e=this.attributes.instanceStart,n=this.attributes.instanceEnd;return void 0!==e&&(e.applyMatrix4(t),n.applyMatrix4(t),e.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}setPositions(t){let e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));let n=new r.LuO(e,6,1);return this.setAttribute("instanceStart",new r.eHs(n,3,0)),this.setAttribute("instanceEnd",new r.eHs(n,3,3)),this.instanceCount=this.attributes.instanceStart.count,this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(t){let e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));let n=new r.LuO(e,6,1);return this.setAttribute("instanceColorStart",new r.eHs(n,3,0)),this.setAttribute("instanceColorEnd",new r.eHs(n,3,3)),this}fromWireframeGeometry(t){return this.setPositions(t.attributes.position.array),this}fromEdgesGeometry(t){return this.setPositions(t.attributes.position.array),this}fromMesh(t){return this.fromWireframeGeometry(new r.XJ7(t.geometry)),this}fromLineSegments(t){let e=t.geometry;return this.setPositions(e.attributes.position.array),this}
370computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new r.NRn);let t=this.attributes.instanceStart,e=this.attributes.instanceEnd;void 0!==t&&void 0!==e&&(this.boundingBox.setFromBufferAttribute(t),i.setFromBufferAttribute(e),this.boundingBox.union(i))}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new r.iyt),null===this.boundingBox&&this.computeBoundingBox();let t=this.attributes.instanceStart,e=this.attributes.instanceEnd;if(void 0!==t&&void 0!==e){let n=this.boundingSphere.center;this.boundingBox.getCenter(n);let r=0;for(let i=0,a=t.count;i<a;i++)o.fromBufferAttribute(t,i),r=Math.max(r,n.distanceToSquared(o)),o.fromBufferAttribute(e,i),r=Math.max(r,n.distanceToSquared(o));this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}}},46555:function(t){t.exports=function(){var t=[function(t,e,n){"use strict";var r=n(1),i=function(){function t(t,e,n){void 0===t&&(t=NaN),void 0===e&&(e=NaN),void 0===n&&(n=!1),this._minFPS=e,this._maxFPS=t,this._timeScale=1,this._currentTick=0,this._currentTime=0,this._tickDeltaTime=0,this._isRunning=!1,this._maxInterval=isNaN(this._minFPS)?NaN:1e3/this._minFPS,this._minInterval=isNaN(this._maxFPS)?NaN:1e3/this._maxFPS,this._onResume=new r.default,this._onPause=new r.default,this._onTick=new r.default,this._onTickOncePerFrame=new r.default,n||this.resume()}return t.prototype.updateOnce=function(t){t(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},t.prototype.resume=function(){this._isRunning||(this._isRunning=!0,this._lastTimeUpdated=this.getTimer(),this._onResume.dispatch(),this.animateOnce())},t.prototype.pause=function(){this._isRunning&&(this._isRunning=!1,this._onPause.dispatch(),window.cancelAnimationFrame(this._animationFrameHandle))},t.prototype.dispose=function(){this.pause(),this._onResume.removeAll(),this._onPause.removeAll(),this._onTick.removeAll()},Object.defineProperty(t.prototype,"currentTick",{get:function(){return this._currentTick},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentTimeSeconds",{get:function(){return this._currentTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickDeltaTimeSeconds",{get:function(){return this._tickDeltaTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeScale",{get:function(){return this._timeScale},set:function(t){this._timeScale!==t&&(this._timeScale=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onResume",{get:function(){return this._onResume},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPause",{get:function(){return this._onPause},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onTick",{get:function(){return this._onTick},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onTickOncePerFrame",{get:function(){return this._onTickOncePerFrame},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this._isRunning},enumerable:!0,configurable:!0}),t.prototype.animateOnce=function(){var t=this;this._animationFrameHandle=window.requestAnimationFrame(function(){return t.onFrame()})},t.prototype.onFrame=function(){if(this._now=this.getTimer(),this._frameDeltaTime=this._now-this._lastTimeUpdated,isNaN(this._minInterval)||this._frameDeltaTime>=this._minInterval)if(isNaN(this._maxInterval))this.update(this._frameDeltaTime*this._timeScale,!0),this._lastTimeUpdated=this._now;else for(this._interval=Math.min(this._frameDeltaTime,this._maxInterval);this._now>=this._lastTimeUpdated+this._interval;)this.update(this._interval*this._timeScale,this._now<=this._lastTimeUpdated+2*this._maxInterval),this._lastTimeUpdated+=this._interval;this._isRunning&&this.animateOnce()},t.prototype.update=function(t,e){void 0===e&&(e=!0),this._currentTick++,this._currentTime+=t,this._tickDeltaTime=t,this._onTick.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick),e&&this._onTickOncePerFrame.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},t.prototype.getTimer=function(){return Date.now()},t}();
370Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},function(t,e,n){t.exports=function(){var t=[function(t,e){"use strict";var n=function(){function t(){this.functions=[]}return t.prototype.add=function(t){return -1===this.functions.indexOf(t)&&(this.functions.push(t),!0)},t.prototype.remove=function(t){var e=this.functions.indexOf(t);return e>-1&&(this.functions.splice(e,1),!0)},t.prototype.removeAll=function(){return this.functions.length>0&&(this.functions.length=0,!0)},t.prototype.dispatch=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.functions.concat().forEach(function(e){e.apply(void 0,t)})},Object.defineProperty(t.prototype,"numItems",{get:function(){return this.functions.length},enumerable:!0,configurable:!0}),t}();Object.defineProperty(e,"__esModule",{value:!0}),e.default=n}];function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}()}];function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}()},50205:(t,e,n)=>{"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,{A:()=>a});var i=/^\s+/,o=/\s+$/;function a(t,e){if(e=e||{},(t=t||"")instanceof a)return t;if(!(this instanceof a))return new a(t,e);var n,u,s,l,h,c,f,d,p,m,g,y,v,b,_,E,x,S,P,k,F=(u={r:0,g:0,b:0},s=1,l=null,h=null,c=null,f=!1,d=!1,"string"==typeof(n=t)&&(n=function(t){t=t.replace(i,"").replace(o,"").toLowerCase();var e,n=!1;if(w[t])t=w[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=N.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=N.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=N.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=N.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=N.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=N.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=N.hex8.exec(t))?{r:T(e[1]),g:T(e[2]),b:T(e[3]),a:T(e[4])/255,format:n?"name":"hex8"}:(e=N.hex6.exec(t))?{r:T(e[1]),g:T(e[2]),b:T(e[3]),format:n?"name":"hex"}:(e=N.hex4.exec(t))?{r:T(e[1]+""+e[1]),g:T(e[2]+""+e[2]),b:T(e[3]+""+e[3]),a:T(e[4]+""+e[4])/255,format:n?"name":"hex8"}:!!(e=N.hex3.exec(t))&&{r:T(e[1]+""+e[1]),g:T(e[2]+""+e[2]),b:T(e[3]+""+e[3]),format:n?"name":"hex"}}(n)),"object"==r(n)&&(j(n.r)&&j(n.g)&&j(n.b)?(p=n.r,m=n.g,g=n.b,u={r:255*A(p,255),g:255*A(m,255),b:255*A(g,255)},f=!0,d="%"===String(n.r).substr(-1)?"prgb":"rgb"):j(n.h)&&j(n.s)&&j(n.v)?(l=O(n.s),h=O(n.v),y=n.h,v=l,b=h,y=6*A(y,360),v=A(v,100),b=A(b,100),_=Math.floor(y),E=y-_,x=b*(1-v),S=b*(1-E*v),P=b*(1-(1-E)*v),u={r:255*[b,S,x,x,P,b][k=_%6],g:255*[P,b,b,S,x,x][k],b:255*[x,x,P,b,b,S][k]},f=!0,d="hsv"):j(n.h)&&j(n.s)&&j(n.l)&&(l=O(n.s),c=O(n.l),u=function(t,e,n){var r,i,o;function a(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=A(t,360),e=A(e,100),n=A(n,100),0===e)r=i=o=n;else{var u=n<.5?n*(1+e):n+e-n*e,s=2*n-u;r=a(s,u,t+1/3),i=a(s,u,t),o=a(s,u,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,l,c),f=!0,d="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=M(s),{ok:f,format:n.format||d,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:s});this._originalInput=t,this._r=F.r,this._g=F.g,this._b=F.b,this._a=F.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||F.format,this._gradientType=e.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=F.ok}function u(t,e,n){t=A(t,255);var r,i,o=Math.max(t,e=A(e,255),n=A(n,255)),a=Math.min(t,e,n),u=(o+a)/2;if(o==a)r=i=0;else{var s=o-a;switch(i=u>.5?s/(2-o-a):s/(o+a),o){case t:r=(e-n)/s+6*(e<n);break;case e:r=(n-t)/s+2;break;case n:r=(t-e)/s+4}r/=6}return{h:r,s:i,l:u}}function s(t,e,n){t=A(t,255);var r,i=Math.max(t,e=A(e,255),n=A(n,255)),o=Math.min(t,e,n),a=i-o;if(i==o)r=0;else{switch(i){case t:r=(e-n)/a+6*(e<n);break;case e:r=(n-t)/a+2;break;case n:r=(t-e)/a+4}r/=6}return{h:r,s:0===i?0:a/i,v:i}}function l(t,e,n,r){var i=[k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function h(t,e,n,r){return[k(F(r)),k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(Math.round(n).toString(16))].join("")}function c(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.s-=e/100,n.s=P(n.s),a(n)}function f(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.s+=e/100,n.s=P(n.s),a(n)}function d(t){return a(t).desaturate(100)}function p(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.l+=e/100,n.l=P(n.l),a(n)}function m(t,e){e=0===e?0:e||10;var n=a(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(e/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(e/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(e/100*255)))),a(n)}function g(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.l-=e/100,n.l=P(n.l),a(n)}function y(t,e){var n=a(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,a(n)}function v(t){var e=a(t).toHsl();return e.h=(e.h+180)%360,a(e)}function b(t,e){if(isNaN(e)||e<=0)throw Error("Argument to polyad must be a positive number");for(var n=a(t).toHsl(),r=[a(t)],i=360/e,o=1;o<e;o++)r.push(a({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function _(t){var e=a(t).toHsl(),n=e.h;return[a(t),a({h:(n+72)%360,s:e.s,l:e.l}),a({h:(n+216)%360,s:e.s,l:e.l})]}function E(t,e,n){e=e||6,n=n||30;var r=a(t).toHsl(),i=360/n,o=[a(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(a(r));return o}function x(t,e){e=e||6;for(var n=a(t).toHsv(),r=n.h,i=n.s,o=n.v,u=[],s=1/e;e--;)u.push(a({h:r,s:i,v:o})),o=(o+s)%1;return u}a.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*((n=r.b/255)<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=M(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=s(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=s(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return l(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){var e,n,r,i,o,a;return e=this._r,n=this._g,r=this._b,i=this._a,o=t,a=[k(Math.round(e).toString(16)),k(Math.round(n).toString(16)),k(Math.round(r).toString(16)),k(F(i))],o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){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(){return{r:Math.round(100*A(this._r,255))+"%",g:Math.round(100*A(this._g,255))+"%",b:Math.round(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*A(this._r,255))+"%, "+Math.round(100*A(this._g,255))+"%, "+Math.round(100*A(this._b,255))+"%)":"rgba("+Math.round(100*A(this._r,255))+"%, "+Math.round(100*A(this._g,255))+"%, "+Math.round(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[l(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+h(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=a(t);n="#"+h(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return!e&&r&&("hex"===t||"hex6"===t||"hex3"===t||"hex4"===t||"hex8"===t||"name"===t)?"name"===t&&0===this._a?this.toName():this.toRgbString():("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),("hex"===t||"hex6"===t)&&(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(p,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(d,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(b,[3])},tetrad:function(){return this._applyCombination(b,[4])}},a.fromRatio=function(t,e){if("object"==r(t)){var n={};for(var i in t)t.hasOwnProperty(i)&&("a"===i?n[i]=t[i]:n[i]=O(t[i]));t=n}return a(t,e)},a.equals=function(t,e){return!!t&&!!e&&a(t).toRgbString()==a(e).toRgbString()},a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},a.mix=function(t,e,n){n=0===n?0:n||50;var r=a(t).toRgb(),i=a(e).toRgb(),o=n/100;return a({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},a.readability=function(t,e){var n=a(t),r=a(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},a.isReadable=function(t,e,n){var r,i,o,u,s,l=a.readability(t,e);switch(s=!1,(i=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(r.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==o&&"large"!==o&&(o="small"),u={level:i,size:o}).level+u.size){case"AAsmall":case"AAAlarge":s=l>=4.5;break;case"AAlarge":s=l>=3;break;case"AAAsmall":s=l>=7}return s},a.mostReadable=function(t,e,n){var r,i,o,u,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,u=n.size;
vendor: 1,583 bytes, line 370
370for(var h=0;h<e.length;h++)(r=a.readability(t,e[h]))>l&&(l=r,s=a(e[h]));return a.isReadable(t,s,{level:o,size:u})||!i?s:(n.includeFallbackColors=!1,a.mostReadable(t,["#fff","#000"],n))};var w=a.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:"90ee9
3700",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"},S=a.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(w);function M(t){return(isNaN(t=parseFloat(t))||t<0||t>1)&&(t=1),t}function A(t,e){"string"==typeof(n=t)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(t="100%");var n,r,i="string"==typeof(r=t)&&-1!=r.indexOf("%");return(t=Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(t*e,10)/100),1e-6>Math.abs(t-e))?1:t%e/parseFloat(e)}function P(t){return Math.min(1,Math.max(0,t))}function T(t){return parseInt(t,16)}function k(t){return 1==t.length?"0"+t:""+t}function O(t){return t<=1&&(t=100*t+"%"),t}function F(t){return Math.round(255*parseFloat(t)).toString(16)}var N=function(){var t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:RegExp("rgb"+e),rgba:RegExp("rgba"+n),hsl:RegExp("hsl"+e),hsla:RegExp("hsla"+n),hsv:RegExp("hsv"+e),hsva:RegExp("hsva"
370+n),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 j(t){return!!N.CSS_UNIT.exec(t)}},52038:(t,e,n)=>{"use strict";n.d(e,{ph:()=>r});class r{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){let e=this._partials,n=0;for(let r=0;r<this._n&&r<32;r++){let i=e[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}valueOf(){let t=this._partials,e=this._n,n,r,i,o=0;if(e>0){for(o=t[--e];e>0&&(o=(n=o)+(r=t[--e]),!(i=r-(o-n))););e>0&&(i<0&&t[e-1]<0||i>0&&t[e-1]>0)&&(n=o+(r=2*i),r==n-o&&(o=n))}return o}}},58093:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var r=n(7813);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw TypeError("Private element is not present on this object")}function a(t,e){return t.get(o(t,e))}function u(t,e,n){(function(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function s(t,e,n){return t.set(o(t,e),n),n}function l(t,e){if(t){if("string"==typeof t)return i(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}var h=new WeakMap,c=new WeakMap,f=new WeakMap,d=new WeakMap,p=new WeakMap,m=new WeakMap,g=function(){var t,e;return t=function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");u(this,h,new Map),u(this,c,new Map),u(this,f,function(t){return t}),u(this,d,function(){return{}}),u(this,p,function(){}),u(this,m,function(){})},e=[{key:"getObj",value:function(t){return a(h,this).get(a(f,this).call(this,t))}},{key:"getData",value:function(t){return a(c,this).get(t)}},{key:"entries",value:function(){var t;return((function(t){if(Array.isArray(t))return i(t)})(t=a(c,this).entries())||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(t){var e=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,l=!1;try{o=(n=n.call(t)).next,!1;for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){l=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,2)||l(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=e[0];return[e[1],n]})}},{key:"id",value:function(t){return s(f,this,(0,r.A)(t)),this}},{key:"onCreateObj",value:function(t){return s(d,this,t),this}},{key:"onUpdateObj",value:function(t){return s(p,this,t),this}},{key:"onRemoveObj",value:function(t){return s(m,this,t),this}},{key:"digest",value:function(t){var e=this;t.filter(function(t){return!a(h,e).has(a(f,e).call(e,t))}).forEach(function(t){var n=a(d,e).call(e,t);a(h,e).set(a(f,e).call(e,t),n),a(c,e).set(n,t)});var n=new Map(t.map(function(t){return[a(f,e).call(e,t),t]}));return a(h,this).forEach(function(t,r){n.has(r)?a(p,e).call(e,t,n.get(r)):(a(m,e).call(e,t,r),a(h,e).delete(r),a(c,e).delete(t))}),this}},{key:"clear",value:function(){return this.digest([]),this}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}()},61409:(t,e,n)=>{"use strict";n.d(e,{$t:()=>i,F2:()=>h,F8:()=>b,FA:()=>s,FP:()=>d,HQ:()=>w,Ml:()=>x,Ni:()=>
370r,RZ:()=>E,Rm:()=>v,TW:()=>a,_S:()=>_,bo:()=>M,dY:()=>y,gn:()=>p,gz:()=>u,mk:()=>m,oN:()=>g,pi:()=>o,qR:()=>S,rY:()=>f,tn:()=>c,uj:()=>l});var r=1e-6,i=1e-12,o=Math.PI,a=o/2,u=o/4,s=2*o,l=180/o,h=o/180,c=Math.abs,f=Math.atan,d=Math.atan2,p=Math.cos,m=Math.ceil,g=Math.exp,y=Math.hypot,v=Math.log,b=Math.sin,_=Math.sign||function(t){return t>0?1:t<0?-1:0},E=Math.sqrt,x=Math.tan;function w(t){return t>1?0:t<-1?o:Math.acos(t)}function S(t){return t>1?a:t<-1?-a:Math.asin(t)}function M(t){return(t=b(t/2))*t}},64596:(t,e,n)=>{"use strict";n.d(e,{v:()=>i});var r=n(35330);class i extends r.n{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}setPositions(t){let e=t.length-3,n=new Float32Array(2*e);for(let r=0;r<e;r+=3)n[2*r]=t[r],n[2*r+1]=t[r+1],n[2*r+2]=t[r+2],n[2*r+3]=t[r+3],n[2*r+4]=t[r+4],n[2*r+5]=t[r+5];return super.setPositions(n),this}setColors(t){let e=t.length-3,n=new Float32Array(2*e);for(let r=0;r<e;r+=3)n[2*r]=t[r],n[2*r+1]=t[r+1],n[2*r+2]=t[r+2],n[2*r+3]=t[r+3],n[2*r+4]=t[r+4],n[2*r+5]=t[r+5];return super.setColors(n),this}setFromPoints(t){let e=t.length-1,n=new Float32Array(6*e);for(let r=0;r<e;r++)n[6*r]=t[r].x,n[6*r+1]=t[r].y,n[6*r+2]=t[r].z||0,n[6*r+3]=t[r+1].x,n[6*r+4]=t[r+1].y,n[6*r+5]=t[r+1].z||0;return super.setPositions(n),this}fromLine(t){let e=t.geometry;return this.setPositions(e.attributes.position.array),this}}},71716:(t,e,n)=>{"use strict";function r(t,e){return t*=1,e*=1,function(n){return t*(1-n)+e*n}}n.d(e,{A:()=>r})},71841:(t,e,n)=>{"use strict";n.d(e,{K:()=>i});var r=n(85339);r.aHM;class i{constructor(t){this.isFont=!0,this.type="Font",this.data=t}generateShapes(t,e=100){let n=[],i=function(t,e,n){let i=Array.from(t),o=e/n.resolution,a=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*o,u=[],s=0,l=0;for(let t=0;t<i.length;t++){let e=i[t];if("\n"===e)s=0,l-=a;else{let t=function(t,e,n,i,o){let a,u,s,l,h,c,f,d,p=o.glyphs[t]||o.glyphs["?"];if(!p)return void console.error('THREE.Font: character "'+t+'" does not exists in font family '+o.familyName+".");let m=new r.Ld9;if(p.o){let t=p._cachedOutline||(p._cachedOutline=p.o.split(" "));for(let r=0,o=t.length;r<o;)switch(t[r++]){case"m":a=t[r++]*e+n,u=t[r++]*e+i,m.moveTo(a,u);break;case"l":a=t[r++]*e+n,u=t[r++]*e+i,m.lineTo(a,u);break;case"q":s=t[r++]*e+n,l=t[r++]*e+i,h=t[r++]*e+n,c=t[r++]*e+i,m.quadraticCurveTo(h,c,s,l);break;case"b":s=t[r++]*e+n,l=t[r++]*e+i,h=t[r++]*e+n,c=t[r++]*e+i,f=t[r++]*e+n,d=t[r++]*e+i,m.bezierCurveTo(h,c,f,d,s,l)}}return{offsetX:p.ha*e,path:m}}(e,o,s,l,n);s+=t.offsetX,u.push(t.path)}}return u}(t,e,this.data);for(let t=0,e=i.length;t<e;t++)n.push(...i[t].toShapes());return n}}},73382:(t,e,n)=>{"use strict";n.d(e,{$:()=>a,A:()=>o});var r=n(97668),i=n(84121);function o(t,e){return((0,i.p)(e)?i.A:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=Array(o),u=Array(i);for(n=0;n<o;++n)a[n]=(0,r.A)(t[n],e[n]);for(;n<i;++n)u[n]=e[n];return function(t){for(n=0;n<o;++n)u[n]=a[n](t);return u}}},73653:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var r=n(85339),i=n(91268),o=n(1529),a=n(5874),u=n(71716);function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){l=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||d(t,e)||function(){throw TypeError("Invalid attempt to de
370structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){if(t){if("string"==typeof t)return s(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}var p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=null;return t.forEach(function(t){if(r){var i=180*(0,o.A)(t,r)/Math.PI;if(i>e)for(var l=(0,a.A)(r,t),h=r.length>2||t.length>2?(0,u.A)(r[2]||0,t[2]||0):null,c=h?function(t){var e;return[].concat(function(t){if(Array.isArray(t))return s(t)}(e=l(t))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||d(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[h(t)])}:l,f=1/Math.ceil(i/e),p=f;p<1;)n.push(c(p)),p+=f}n.push(r=t)}),n},m="undefined"!=typeof window&&window.THREE?window.THREE:{BufferGeometry:r.LoY,Float32BufferAttribute:r.qtW},g=new m.BufferGeometry().setAttribute?"setAttribute":"addAttribute",y=function(t){function e(t){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");n=l(n=e),(r=function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,h()?Reflect.construct(n,[],l(this).constructor):n.apply(this,void 0))).type="GeoJsonGeometry",r.parameters={geoJson:t,radius:o,resolution:a};var u=(({Point:y,MultiPoint:function(t,e){var n={vertices:[],indices:[]};return t.map(function(t){return y(t,e)}).forEach(function(t){v(n,f(t,1)[0])}),[n]},LineString:b,MultiLineString:function(t,e){var n={vertices:[],indices:[]};return t.map(function(t){return b(t,e)}).forEach(function(t){v(n,f(t,1)[0])}),[n]},Polygon:E,MultiPolygon:function(t,e){var n={vertices:[],indices:[]},r={vertices:[],indices:[]};t.map(function(t){return E(t,e)}).forEach(function(t){var e=f(t,2),i=e[0],o=e[1];v(n,i),o&&v(r,o)});var i=[n];return r.vertices.length&&i.push(r),i}})[t.type]||function(){return[]})(t.coordinates,o),s=[],c=[],d=0;function y(t,e){return[{vertices:_(t[1],t[0],e+(t[2]||0)),indices:[]}]}function b(t,e){for(var n=p(t,a).map(function(t){var n=f(t,3),r=n[0],i=n[1],o=n[2];return _(i,r,e+(void 0===o?0:o))}),r=(0,i.Bq)([n]).vertices,o=Math.round(r.length/3),u=[],s=1;s<o;s++)u.push(s-1,s);return[{vertices:r,indices:u}]}function E(t,e){for(var n=t.map(function(t){return p(t,a).map(function(t){var n=f(t,3),r=n[0],i=n[1],o=n[2];return _(i,r,e+(void 0===o?0:o))})}),r=(0,i.Bq)(n),o=r.vertices,u=r.holes,s=u[0]||1/0,l=o.slice(0,3*s),h=o.slice(3*s),c=new Set(u),d=Math.round(o.length/3),m=[],g=[],y=1;y<d;y++)c.has(y)||(y<s?m.push(y-1,y):g.push(y-1-s,y-s));var v=[{indices:m,vertices:l}];return u.length&&v.push({indices:g,vertices:h}),v}return u.forEach(function(t){var e=s.length;v({indices:s,vertices:c},t),r.addGroup(e,s.length-e,d++)}),s.length&&r.setIndex(s),c.length&&r[g]("position",new m.Float32BufferAttribute(c,3)),r}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(m.BufferGeometry);function v(t,e){var n=Math.round(t.vertices.length/3);b(t.vertices,e.vertices),b(t.indices,e.indices.map(function(t){return t+n}))}function b(t,e){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
370if(!n){if(Array.isArray(t)||(n=d(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.push(i)}}catch(t){r.e(t)}finally{r.f()}}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}},73690:(t,e,n)=>{"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function o(){}n.d(e,{Ay:()=>b,Qh:()=>x});var a="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=RegExp(`^rgb\\(${a},${a},${a}\\)$`),c=RegExp(`^rgb\\(${s},${s},${s}\\)$`),f=RegExp(`^rgba\\(${a},${a},${a},${u}\\)$`),d=RegExp(`^rgba\\(${s},${s},${s},${u}\\)$`),p=RegExp(`^hsl\\(${u},${s},${s}\\)$`),m=RegExp(`^hsla\\(${u},${s},${s},${u}\\)$`),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function b(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?
370new w(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?E(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?E(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new w(e[1],e[2],e[3],1):(e=c.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?E(e[1],e[2],e[3],e[4]):(e=d.exec(t))?E(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?k(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?k(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?_(g[t]):"transparent"===t?new w(NaN,NaN,NaN,0):null}function _(t){return new w(t>>16&255,t>>8&255,255&t,1)}function E(t,e,n,r){return r<=0&&(t=e=n=NaN),new w(t,e,n,r)}function x(t,e,n,r){var i;return 1==arguments.length?((i=t)instanceof o||(i=b(i)),i)?new w((i=i.rgb()).r,i.g,i.b,i.opacity):new w:new w(t,e,n,null==r?1:r)}function w(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return`#${T(this.r)}${T(this.g)}${T(this.b)}`}function M(){let t=A(this.opacity);return`${1===t?"rgb(":"rgba("}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${1===t?")":`, ${t})`}`}function A(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function P(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function T(t){return((t=P(t))<16?"0":"")+t.toString(16)}function k(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new F(t,e,n,r)}function O(t){if(t instanceof F)return new F(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=b(t)),!t)return new F;if(t instanceof F)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),u=NaN,s=a-i,l=(a+i)/2;return s?(u=e===a?(n-r)/s+(n<r)*6:n===a?(r-e)/s+2:(e-n)/s+4,s/=l<.5?a+i:2-a-i,u*=60):s=l>0&&l<1?0:u,new F(u,s,l,t.opacity)}function F(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function N(t){return(t=(t||0)%360)<0?t+360:t}function j(t){return Math.max(0,Math.min(1,t||0))}function z(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}r(o,b,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:y,formatHex:y,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return O(this).formatHsl()},formatRgb:v,toString:v}),r(w,x,i(o,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new w(P(this.r),P(this.g),P(this.b),A(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:S,formatHex:S,formatHex8:function(){return`#${T(this.r)}${T(this.g)}${T(this.b)}${T((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:M,toString:M})),r(F,function(t,e,n,r){return 1==arguments.length?O(t):new F(t,e,n,null==r?1:r)},i(o,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new F(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new F(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new w(z(t>=240?t-240:t+120,i,r),z(t,i,r),z(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new F(N(this.h),j(this.s),j(this.l),A(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(){let t=A(this.opacity);return`${1===t?"hsl(":"hsla("}${N(this.h)}, ${100*j(this.s)}%, ${100*j(this.l)}%${1===t?")":`, ${t})`}`}}))},79300:(t,e,n)=>{"use strict";n.d(e,{A:()=>nt});var r,i,o,a,u,s,l,h,c,f,d,p,m,g,y,v,b,_,E,x,w,S,M,A,P,T,k,O=n(85339);function F(t){return Array.from(function*(t){for(let e of t)yield*e}(t))}function N(t,e){let n,r;if(void 0===e)for(let e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}var j=n(91268);let z=(3+8881784197001252e-31)*11102230246251565e-32;function I(t,e,n,r,i){let o,a,u,s,l=e[0],h=r[0],c=0,f=0;h>l==h>-l?(o=l,l=e[++c]):(o=h,h=r[++f]);let d=0;if(c<t&&f<n)for(h>l==h>-l?(a=l+o,u=o-(a-l),l=e[++c]):(a=h+o,u=o-(a-h),h=r[++f]),o=a,0!==u&&(i[d++]=u);c<t&&f<n;)h>l==h>-l?(s=(a=o+l)-o,u=o-(a-s)+(l-s),l=e[++c]):(s=(a=o+h)-o,u=o-(a-s)+(h-s),h=r[++f]),o=a,0!==u&&(i[d++]=u);for(;c<t;)s=(a=o+l)-o,u=o-(a-s)+(l-s),l=e[++c],o=a,0!==u&&(i[d++]=u);for(;f<n;)s=(a=o+h)-o,u=o-(a-s)+(h-s),h=r[++f],o=a,0!==u&&(i[d++]=u);return(0!==o||0===d)&&(i[d++]=o),d}function C(t){return new Float64Array(t)}let R=(3+17763568394002505e-31)*11102230246251565e-32,U=(2+13322676295501878e-31)*11102230246251565e-32,B=(9+7105427357601002e-30)*11102230246251565e-32*11102230246251565e-32,L=C(4),D=C(8),q=C(12),H=C(16),$=C(4);function G(t,e,n,r,i,o){let a=(e-o)*(n-i),u=(t-i)*(r-o),s=a-u,l=Math.abs(a+u);return Math.abs(s)>=R*l?s:-function(t,e,n,r,i,o,a){let u,s,l,h,c,f,d,p,m,g,y,v,b,_,E,x,w,S,M=t-i,A=n-i,P=e-o,T=r-o;_=M*T,d=(f=0x8000001*M)-(f-M),p=M-d,m=(f=0x8000001*T)-(f-T),E=p*(g=T-m)-(_-d*m-p*m-d*g),x=P*A,d=(f=0x8000001*P)-(f-P),p=P-d,m=(f=0x8000001*A)-(f-A),y=E-(w=p*(g=A-m)-(x-d*m-p*m-d*g)),c=E-y,L[0]=E-(y+c)+(c-w),c=(v=_+y)-_,y=(b=_-(v-c)+(y-c))-x,c=b-y,L[1]=b-(y+c)+(c-x),c=(S=v+y)-v,L[2]=v-(S-c)+(y-c),L[3]=S;let k=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,L),O=U*a;if(k>=O||-k>=O||(c=t-M,u=t-(M+c)+(c-i),c=n-A,l=n-(A+c)+(c-i),c=e-P,s=e-(P+c)+(c-o),c=r-T,h=r-(T+c)+(c-o),0===u&&0===s&&0===l&&0===h)||(O=B*a+z*Math.abs(k),(k+=M*h+T*u-(P*l+A*s))>=O||-k>=O))return k;_=u*T,d=(f=0x8000001*u)-(f-u),p=u-d,m=(f=0x8000001*T)-(f-T),E=p*(g=T-m)-(_-d*m-p*m-d*g),x=s*A,d=(f=0x8000001*s)-(f-s),p=s-d,m=(f=0x8000001*A)-(f-A),y=E-(w=p*(g=A-m)-(x-d*m-p*m-d*g)),c=E-y,$[0]=E-(y+c)+(c-w),c=(v=_+y)-_,y=(b=_-(v-c)+(y-c))-x,c=b-y,$[1]=b-(y+c)+(c-x),c=(S=v+y)-v,$[2]=v-(S-c)+(y-c),$[3]=S;let F=I(4,L,4,$,D);_=M*h,d=(f=0x8000001*M)-(f-M),p=M-d,m=(f=0x8000001*h)-(f-h),E=p*(g=h-m)-(_-d*m-p*m-d*g),x=P*l,d=(f=0x8000001*P)-(f-P),p=P-d,m=(f=0x8000001*l)-(f-l),y=E-(w=p*(g=l-m)-(x-d*m-p*m-d*g)),c=E-y,$[0]=E-(y+c)+(c-w),c=(v=_+y)-_,y=(b=_-(v-c)+(y-c))-x,c=b-y,$[1]=b-(y+c)+(c-x),c=(S=v+y)-v,$[2]=v-(S-c)+(y-c),$[3]=S;let N=I(F,D,4,$,q);_=u*h,d=(f=0x8000001*u)-(f-u),p=u-d,m=(f=0x8000001*h)-(f-h),E=p*(g=h-m)-(_-d*m-p*m-d*g),x=s*l,d=(f=0x8000001*s)-(f-s),p=s-d,m=(f=0x8000001*l)-(f-l),y=E-(w=p*(g=l-m)-(x-d*m-p*m-d*g)),c=E-y,$[0]=E-(y+c)+(c-w),c=(v=_+y)-_,y=(b=_-(v-c)+(y-c))-x,c=b-y,$[1]=b-(y+c)+(c-x),c=(S=v+y)-v,$[2]=v-(S-c)+(y-c),$[3]=S;let j=I(N,q,4,$,H);return H[j-1]}(t,e,n,r,i,o,l)}C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(8),C(8),C(8),C(4),C(8),C(8),C(16),C(12),C(192),C(192),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(8),C(8),C(8),C(8),C(8),C(8),C(8),C(8),C(8),C(4),C(4),C(4),C(8),C(16),C(16),C(16),C(32),C(32),C(48),C(64),C(1152),C(1152),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(4),C(24),C(24),C(24),C(24),C(24),C(24),C(24),C(24),C(24),C(24),C(1152),C(1152),C(1152),C(1152),C(1152),C(2304),C(2304),C(3456),C(5760),C(8),C(8),C(8),C(16),C(24),C(48),C(48),C(96),C(192),C(384),C(384),C(384),C(768),C(96),C(96),C(96),C(1152);let V=new Uint32Array(512);class W{static from(t,e=K,n=Q){let r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){let r=t[o];i[2*o]=e(r),i[2*o+1]=n(r)}return new W(i)}constructor(t){let e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw Error("Expected coords to contain numbers.");this.coords=t;let n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.trianglesLen=0,this._cx=0,this._cy=0,this._hullStart=0,this.hull=this._triangles,this.triangles=this._triangles,this.halfedges=this._halfedges,this.update()}update(){let{coords:t,_hullPrev:e,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=t.length>>1,a=1/0,u=1/0,s=-1/0,l=-1/0;for(let e=0;e<o;e++){let n=t[2*e],r=t[2*e+1];n<a&&(a=n),r<u&&(u=r),n>s&&(s=n),r>l&&(l=r),this._ids[e]=e}let h=(a+s)/2,c=(u+l)/2,f=0,d=0,p=0;for(let e=0,n=1/0;e<o;
370e++){let r=Z(h,c,t[2*e],t[2*e+1]);r<n&&(f=e,n=r)}let m=t[2*f],g=t[2*f+1];for(let e=0,n=1/0;e<o;e++){if(e===f)continue;let r=Z(m,g,t[2*e],t[2*e+1]);r<n&&r>0&&(d=e,n=r)}let y=t[2*d],v=t[2*d+1],b=1/0;for(let e=0;e<o;e++){if(e===f||e===d)continue;let n=function(t,e,n,r,i,o){let a=n-t,u=r-e,s=i-t,l=o-e,h=a*a+u*u,c=s*s+l*l,f=.5/(a*l-u*s),d=(l*h-u*c)*f,p=(a*c-s*h)*f;return d*d+p*p}(m,g,y,v,t[2*e],t[2*e+1]);n<b&&(p=e,b=n)}let _=t[2*p],E=t[2*p+1];if(b===1/0){for(let e=0;e<o;e++)this._dists[e]=t[2*e]-t[0]||t[2*e+1]-t[1];Y(this._ids,this._dists,0,o-1);let e=new Uint32Array(o),n=0;for(let t=0,r=-1/0;t<o;t++){let i=this._ids[t],o=this._dists[i];o>r&&(e[n++]=i,r=o)}this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),this.halfedges=new Int32Array(0);return}if(0>G(m,g,y,v,_,E)){let t=d,e=y,n=v;d=p,y=_,v=E,p=t,_=e,E=n}let x=function(t,e,n,r,i,o){let a=n-t,u=r-e,s=i-t,l=o-e,h=a*a+u*u,c=s*s+l*l,f=.5/(a*l-u*s);return{x:t+(l*h-u*c)*f,y:e+(a*c-s*h)*f}}(m,g,y,v,_,E);this._cx=x.x,this._cy=x.y;for(let e=0;e<o;e++)this._dists[e]=Z(t[2*e],t[2*e+1],x.x,x.y);Y(this._ids,this._dists,0,o-1),this._hullStart=f;let w=3;n[f]=e[p]=d,n[d]=e[f]=p,n[p]=e[d]=f,r[f]=0,r[d]=1,r[p]=2,i.fill(-1),i[this._hashKey(m,g)]=f,i[this._hashKey(y,v)]=d,i[this._hashKey(_,E)]=p,this.trianglesLen=0,this._addTriangle(f,d,p,-1,-1,-1);for(let o=0,a=0,u=0;o<this._ids.length;o++){let s=this._ids[o],l=t[2*s],h=t[2*s+1];if(o>0&&2220446049250313e-31>=Math.abs(l-a)&&2220446049250313e-31>=Math.abs(h-u)||(a=l,u=h,s===f||s===d||s===p))continue;let c=0;for(let t=0,e=this._hashKey(l,h);t<this._hashSize&&(-1===(c=i[(e+t)%this._hashSize])||c===n[c]);t++);let m=c=e[c],g;for(;g=n[m],G(l,h,t[2*m],t[2*m+1],t[2*g],t[2*g+1])>=0;)if((m=g)===c){m=-1;break}if(-1===m)continue;let y=this._addTriangle(m,s,n[m],-1,-1,r[m]);r[s]=this._legalize(y+2),r[m]=y,w++;let v=n[m];for(;g=n[v],0>G(l,h,t[2*v],t[2*v+1],t[2*g],t[2*g+1]);)y=this._addTriangle(v,s,g,r[s],-1,r[v]),r[s]=this._legalize(y+2),n[v]=v,w--,v=g;if(m===c)for(;0>G(l,h,t[2*(g=e[m])],t[2*g+1],t[2*m],t[2*m+1]);)y=this._addTriangle(g,s,m,-1,r[m],r[g]),this._legalize(y+2),r[g]=y,n[m]=m,w--,m=g;this._hullStart=e[s]=m,n[m]=e[v]=s,n[s]=v,i[this._hashKey(l,h)]=s,i[this._hashKey(t[2*m],t[2*m+1])]=m}this.hull=new Uint32Array(w);for(let t=0,e=this._hullStart;t<w;t++)this.hull[t]=e,e=n[e];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){let n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){let{_triangles:e,_halfedges:n,coords:r}=this,i=0,o=0;for(;;){let a=n[t],u=t-t%3;if(o=u+(t+2)%3,-1===a){if(0===i)break;t=V[--i];continue}let s=a-a%3,l=u+(t+1)%3,h=s+(a+2)%3,c=e[o],f=e[t],d=e[l],p=e[h];if(function(t,e,n,r,i,o,a,u){let s=t-a,l=e-u,h=n-a,c=r-u,f=i-a,d=o-u,p=h*h+c*c,m=f*f+d*d;return s*(c*m-p*d)-l*(h*m-p*f)+(s*s+l*l)*(h*d-c*f)<0}(r[2*c],r[2*c+1],r[2*f],r[2*f+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){e[t]=p,e[a]=c;let r=n[h];if(-1===r){let e=this._hullStart;do{if(this._hullTri[e]===h){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,r),this._link(a,n[o]),this._link(o,h);let u=s+(a+1)%3;i<V.length&&(V[i++]=u)}else{if(0===i)break;t=V[--i]}}return o}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,r,i,o){let a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function Z(t,e,n,r){let i=t-n,o=e-r;return i*i+o*o}function Y(t,e,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){let r=t[i],o=e[r],a=i-1;for(;a>=n&&e[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=n+r>>1,o=n+1,a=r;X(t,i,o),e[t[n]]>e[t[r]]&&X(t,n,r),e[t[o]]>e[t[r]]&&X(t,o,r),e[t[n]]>e[t[o]]&&X(t,n,o);let u=t[o],s=e[u];for(;;){do o++;while(e[t[o]]<s);do a--;while(e[t[a]]>s);if(a<o)break;X(t,o,a)}t[n+1]=t[a],t[a]=u,r-o+1>=a-n?(Y(t,e,o,r),Y(t,e,n,a-1)):(Y(t,e,n,a-1),Y(t,e,o,r))}}function X(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}function K(t){return t[0]}function Q(t){return t[1]}var J,tt,te,tn,tr,ti=function(t,e,n={}){if(!t)throw Error("point is required");if(!e)throw Error("polygon is required");
370let r=function(t){if(!t)throw Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return[...t.geometry.coordinates];if("Point"===t.type)return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw Error("coord must be GeoJSON Point or an Array of numbers")}(t),i="Feature"===e.type?e.geometry:e,o=i.type,a=e.bbox,u=i.coordinates;if(a&&!1==(s=r,(l=a)[0]<=s[0]&&l[1]<=s[1]&&l[2]>=s[0]&&l[3]>=s[1]))return!1;"Polygon"===o&&(u=[u]);for(var s,l,h=0;h<u.length;++h){let t=function(t,e){var n,r,i,o,a,u,s,l,h,c=0,f=t[0],d=t[1],p=e.length;for(n=0;n<p;n++){r=0;var m=e[n],g=m.length-1;if((l=m[0])[0]!==m[g][0]&&l[1]!==m[g][1])throw Error("First and last coordinates in a ring must be the same");for(o=l[0]-f,a=l[1]-d;r<g;r++){if(u=(h=m[r+1])[0]-f,s=h[1]-d,0===a&&0===s){if(u<=0&&o>=0||o<=0&&u>=0)return 0}else if(s>=0&&a<=0||s<=0&&a>=0){if(0===(i=G(o,u,a,s,0,0)))return 0;(i>0&&s>0&&a<=0||i<0&&s<=0&&a>0)&&c++}l=h,a=s,o=u}}return c%2!=0}(r,u[h]);if(0===t&&!n.ignoreBoundary||t)return!0}return!1},to=n(52038),ta=n(61409),tu=n(21755),ts=new to.ph,tl=new to.ph,th={point:tu.A,lineStart:tu.A,lineEnd:tu.A,polygonStart:function(){ts=new to.ph,th.lineStart=tc,th.lineEnd=tf},polygonEnd:function(){var t=+ts;tl.add(t<0?ta.FA+t:t),this.lineStart=this.lineEnd=this.point=tu.A},sphere:function(){tl.add(ta.FA)}};function tc(){th.point=td}function tf(){tp(J,tt)}function td(t,e){th.point=tp,J=t,tt=e,t*=ta.F2,e*=ta.F2,te=t,tn=(0,ta.gn)(e=e/2+ta.gz),tr=(0,ta.F8)(e)}function tp(t,e){t*=ta.F2,e*=ta.F2,e=e/2+ta.gz;var n=t-te,r=n>=0?1:-1,i=r*n,o=(0,ta.gn)(e),a=(0,ta.F8)(e),u=tr*a,s=tn*o+u*(0,ta.gn)(i),l=u*r*(0,ta.F8)(i);ts.add((0,ta.FP)(l,s)),te=t,tn=o,tr=a}function tm(t){return[(0,ta.FP)(t[1],t[0]),(0,ta.qR)(t[2])]}function tg(t){var e=t[0],n=t[1],r=(0,ta.gn)(n);return[r*(0,ta.gn)(e),r*(0,ta.F8)(e),(0,ta.F8)(n)]}function ty(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function tv(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function tb(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function t_(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function tE(t){var e=(0,ta.RZ)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var tx=n(15651),tw={point:tS,lineStart:tA,lineEnd:tP,polygonStart:function(){tw.point=tT,tw.lineStart=tk,tw.lineEnd=tO,c=new to.ph,th.polygonStart()},polygonEnd:function(){th.polygonEnd(),tw.point=tS,tw.lineStart=tA,tw.lineEnd=tP,ts<0?(r=-(o=180),i=-(a=90)):c>ta.Ni?a=90:c<-ta.Ni&&(i=-90),d[0]=r,d[1]=o},sphere:function(){r=-(o=180),i=-(a=90)}};function tS(t,e){f.push(d=[r=t,o=t]),e<i&&(i=e),e>a&&(a=e)}function tM(t,e){var n=tg([t*ta.F2,e*ta.F2]);if(h){var s=tv(h,n),l=tv([s[1],-s[0],0],s);tE(l),l=tm(l);var c,p=t-u,m=p>0?1:-1,g=l[0]*ta.uj*m,y=(0,ta.tn)(p)>180;y^(m*u<g&&g<m*t)?(c=l[1]*ta.uj)>a&&(a=c):y^(m*u<(g=(g+360)%360-180)&&g<m*t)?(c=-l[1]*ta.uj)<i&&(i=c):(e<i&&(i=e),e>a&&(a=e)),y?t<u?tF(r,t)>tF(r,o)&&(o=t):tF(t,o)>tF(r,o)&&(r=t):o>=r?(t<r&&(r=t),t>o&&(o=t)):t>u?tF(r,t)>tF(r,o)&&(o=t):tF(t,o)>tF(r,o)&&(r=t)}else f.push(d=[r=t,o=t]);e<i&&(i=e),e>a&&(a=e),h=n,u=t}function tA(){tw.point=tM}function tP(){d[0]=r,d[1]=o,tw.point=tS,h=null}function tT(t,e){if(h){var n=t-u;c.add((0,ta.tn)(n)>180?n+(n>0?360:-360):n)}else s=t,l=e;th.point(t,e),tM(t,e)}function tk(){th.lineStart()}function tO(){tT(s,l),th.lineEnd(),(0,ta.tn)(c)>ta.Ni&&(r=-(o=180)),d[0]=r,d[1]=o,h=null}function tF(t,e){return(e-=t)<0?e+360:e}function tN(t,e){return t[0]-e[0]}function tj(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function tz(t){var e,n,u,s,l,h,c;if(a=o=-(r=i=1/0),f=[],(0,tx.A)(t,tw),n=f.length){for(f.sort(tN),e=1,l=[u=f[0]];e<n;++e)tj(u,(s=f[e])[0])||tj(u,s[1])?(tF(u[0],s[1])>tF(u[0],u[1])&&(u[1]=s[1]),tF(s[0],u[1])>tF(u[0],u[1])&&(u[0]=s[0])):l.push(u=s);for(h=-1/0,n=l.length-1,e=0,u=l[n];e<=n;u=s,++e)s=l[e],(c=tF(u[1],s[0]))>h&&(h=c,r=s[0],o=u[1])}return f=d=null,r===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[r,i],[o,a]]}var tI=n(1529),tC=n(5874);function tR(t){return(0,ta.tn)(t[0])<=ta.pi?t[0]:(0,ta._S)(t[0])*(((0,ta.tn)(t[0])+ta.pi)%ta.FA-ta.pi)}function tU(t,e){var n=tR(e),r=e[1],i=(0,ta.F8)(r),o=[(0,ta.F8)(n),-(0,ta.gn)(n),0],a=0,u=0,s=new to.ph;1===i?r=ta.TW+ta.Ni:-1===i&&(r=-ta.TW-ta.Ni);for(var l=0,h=t.length;l<h;++l)if(f=(c=t[l]).length)for(var c,f,d=c[f-1],p=tR(d),m=d[1]/2+ta.gz,g=(0,ta.F8)(m),y=(0,ta.gn)(m),v=0;v<f;++v,p=_,g=x,y=w,d=b){var b=c[v],_=tR(b),E=b[1]/2+ta.gz,x=(0,ta.F8)(E),w=(0,ta.gn)(E),S=_-p,M=S>=0?1:-1,A=M*S,P=A>ta.pi,T=g*x;if(s.add((0,ta.FP)(T*M*(0,ta.F8)(A),y*w+T*(0,ta.gn)(A))),a+=P?S+M*ta.FA:S,P^p>=n^_>=n){var k=tv(tg(d),tg(b));tE(k);var O=tv(o,k);tE(O);var F=(P^S>=0?-1:1)*(0,ta.qR)(O[2]);(r>F||r===F&&(k[0]||k[1]))&&(u+=P^S>=0?1:-1)}}return(a<-ta.Ni||a<ta.Ni&&s<-ta.$t)^1&u}var tB={Feature:function(t,e){return tD(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(tD(n[r].geometry,e))return!0;return!1}},tL={Sphere:function(){return!0},Point:function(t,e){return tq(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(tq(n[r],e))return!0;return!1},LineString:function(t,e){return tH(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(tH(n[r],e))return!0;return!1},Polygon:function(t,e){return t$(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(t$(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(tD(n[r],e))return!0;return!1}};function tD(t,e){return!!(t&&tL.hasOwnProperty(t.type))&&tL[t.type](t,e)}function tq(t,e){return 0===(0,tI.A)(t,e)}function tH(t,e){for(var n,r,i,o=0,a=t.length;o<a;
370o++){if(0===(r=(0,tI.A)(t[o],e))||o>0&&(i=(0,tI.A)(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<ta.$t*i)return!0;n=r}return!1}function t$(t,e){return!!tU(t.map(tG),tV(e))}function tG(t){return(t=t.map(tV)).pop(),t}function tV(t){return[t[0]*ta.F2,t[1]*ta.F2]}var tW={sphere:tu.A,point:tZ,lineStart:tX,lineEnd:tJ,polygonStart:function(){tW.lineStart=t0,tW.lineEnd=t1},polygonEnd:function(){tW.lineStart=tX,tW.lineEnd=tJ}};function tZ(t,e){t*=ta.F2,e*=ta.F2;var n=(0,ta.gn)(e);tY(n*(0,ta.gn)(t),n*(0,ta.F8)(t),(0,ta.F8)(e))}function tY(t,e,n){++p,g+=(t-g)/p,y+=(e-y)/p,v+=(n-v)/p}function tX(){tW.point=tK}function tK(t,e){t*=ta.F2,e*=ta.F2;var n=(0,ta.gn)(e);P=n*(0,ta.gn)(t),T=n*(0,ta.F8)(t),k=(0,ta.F8)(e),tW.point=tQ,tY(P,T,k)}function tQ(t,e){t*=ta.F2,e*=ta.F2;var n=(0,ta.gn)(e),r=n*(0,ta.gn)(t),i=n*(0,ta.F8)(t),o=(0,ta.F8)(e),a=(0,ta.FP)((0,ta.RZ)((a=T*o-k*i)*a+(a=k*r-P*o)*a+(a=P*i-T*r)*a),P*r+T*i+k*o);m+=a,b+=a*(P+(P=r)),_+=a*(T+(T=i)),E+=a*(k+(k=o)),tY(P,T,k)}function tJ(){tW.point=tZ}function t0(){tW.point=t2}function t1(){t3(M,A),tW.point=tZ}function t2(t,e){M=t,A=e,t*=ta.F2,e*=ta.F2,tW.point=t3;var n=(0,ta.gn)(e);P=n*(0,ta.gn)(t),T=n*(0,ta.F8)(t),k=(0,ta.F8)(e),tY(P,T,k)}function t3(t,e){t*=ta.F2,e*=ta.F2;var n=(0,ta.gn)(e),r=n*(0,ta.gn)(t),i=n*(0,ta.F8)(t),o=(0,ta.F8)(e),a=T*o-k*i,u=k*r-P*o,s=P*i-T*r,l=(0,ta.dY)(a,u,s),h=(0,ta.qR)(l),c=l&&-h/l;x.add(c*a),w.add(c*u),S.add(c*s),m+=h,b+=h*(P+(P=r)),_+=h*(T+(T=i)),E+=h*(k+(k=o)),tY(P,T,k)}function t5(t){p=m=g=y=v=b=_=E=0,x=new to.ph,w=new to.ph,S=new to.ph,(0,tx.A)(t,tW);var e=+x,n=+w,r=+S,i=(0,ta.dY)(e,n,r);return i<ta.$t&&(e=b,n=_,r=E,m<ta.Ni&&(e=g,n=y,r=v),(i=(0,ta.dY)(e,n,r))<ta.$t)?[NaN,NaN]:[(0,ta.FP)(n,e)*ta.uj,(0,ta.qR)(r/i)*ta.uj]}class t8{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){t*=1,e*=1,n*=1;let r=t+n,i=e;if(n<0)throw Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,e,n,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class t4{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class t6{constructor(t,[e,n,r,i]=[0,0,960,500]){if(!((r*=1)>=(e*=1))||!((i*=1)>=(n*=1)))throw Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=e,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let t,e,{delaunay:{points:n,hull:r,triangles:i},vectors:o}=this,a=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let o=0,u=0,s=i.length,l,h;o<s;o+=3,u+=2){let s=2*i[o],c=2*i[o+1],f=2*i[o+2],d=n[s],p=n[s+1],m=n[c],g=n[c+1],y=n[f],v=n[f+1],b=m-d,_=g-p,E=y-d,x=v-p,w=(b*x-_*E)*2;if(1e-9>Math.abs(w)){if(void 0===t){for(let i of(t=e=0,r))t+=n[2*i],e+=n[2*i+1];t/=r.length,e/=r.length}let i=1e9*Math.sign((t-d)*x-(e-p)*E);l=(d+y)/2-i*x,h=(p+v)/2+i*E}else{let t=1/w,e=b*b+_*_,n=E*E+x*x;l=d+(x*e-_*n)*t,h=p+(b*n-E*e)*t}a[u]=l,a[u+1]=h}let u=r[r.length-1],s,l=4*u,h,c=n[2*u],f,d=n[2*u+1];o.fill(0);for(let t=0;t<r.length;++t)u=r[t],s=l,h=c,f=d,l=4*u,c=n[2*u],d=n[2*u+1],o[s+2]=o[l]=f-d,o[s+3]=o[l+1]=c-h}render(t){let e=null==t?t=new t8:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let e=0,r=n.length;e<r;++e){let r=n[e];if(r<e)continue;let i=2*Math.floor(e/3),a=2*Math.floor(r/3),u=o[i],s=o[i+1],l=o[a],h=o[a+1];this._renderSegment(u,s,l,h,t)}let u,s=i[i.length-1];for(let e=0;e<i.length;++e){u=s;let n=2*Math.floor(r[s=i[e]]/3),l=o[n],h=o[n+1],c=4*u,f=this._project(l,h,a[c+2],a[c+3]);f&&this._renderSegment(l,h,f[0],f[1],t)}return e&&e.value()}renderBounds(t){let e=null==t?t=new t8:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){let n=null==e?e=new t8:void 0,r=this._clip(t);if(null===r||!r.length)return;e.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let t=2;t<i;t+=2)(r[t]!==r[t-2]||r[t+1]!==r[t-1])&&e.lineTo(r[t],r[t+1]);
370return e.closePath(),n&&n.value()}*cellPolygons(){let{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){let t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){let e=new t4;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,r,i){let o,a=this._regioncode(t,e),u=this._regioncode(n,r);0===a&&0===u?(i.moveTo(t,e),i.lineTo(n,r)):(o=this._clipSegment(t,e,n,r,a,u))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,e,n){return(e*=1)==e&&(n*=1)==n&&this.delaunay._step(t,e,n)===t}*neighbors(t){let e=this._clip(t);if(e)for(let n of this.delaunay.neighbors(t)){let t=this._clip(n);if(t){e:for(let r=0,i=e.length;r<i;r+=2)for(let o=0,a=t.length;o<a;o+=2)if(e[r]===t[o]&&e[r+1]===t[o+1]&&e[(r+2)%i]===t[(o+a-2)%a]&&e[(r+3)%i]===t[(o+a-1)%a]){yield n;break e}}}}_cell(t){let{circumcenters:e,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[t];if(-1===o)return null;let a=[],u=o;do{let n=Math.floor(u/3);if(a.push(e[2*n],e[2*n+1]),i[u=u%3==2?u-2:u+1]!==t)break;u=r[u]}while(u!==o&&-1!==u);return a}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];let e=this._cell(t);if(null===e)return null;let{vectors:n}=this,r=4*t;return this._simplify(n[r]||n[r+1]?this._clipInfinite(t,e,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(t,e))}_clipFinite(t,e){let n=e.length,r=null,i,o,a=e[n-2],u=e[n-1],s,l=this._regioncode(a,u),h,c=0;for(let f=0;f<n;f+=2)if(i=a,o=u,a=e[f],u=e[f+1],s=l,l=this._regioncode(a,u),0===s&&0===l)h=c,c=0,r?r.push(a,u):r=[a,u];else{let e,n,f,d,p;if(0===s){if(null===(e=this._clipSegment(i,o,a,u,s,l)))continue;[n,f,d,p]=e}else{if(null===(e=this._clipSegment(a,u,i,o,l,s)))continue;[d,p,n,f]=e,h=c,c=this._edgecode(n,f),h&&c&&this._edge(t,h,c,r,r.length),r?r.push(n,f):r=[n,f]}h=c,c=this._edgecode(d,p),h&&c&&this._edge(t,h,c,r,r.length),r?r.push(d,p):r=[d,p]}if(r)h=c,c=this._edgecode(r[0],r[1]),h&&c&&this._edge(t,h,c,r,r.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return r}_clipSegment(t,e,n,r,i,o){let a=i<o;for(a&&([t,e,n,r,i,o]=[n,r,t,e,o,i]);;){if(0===i&&0===o)return a?[n,r,t,e]:[t,e,n,r];if(i&o)return null;let u,s,l=i||o;8&l?(u=t+(n-t)*(this.ymax-e)/(r-e),s=this.ymax):4&l?(u=t+(n-t)*(this.ymin-e)/(r-e),s=this.ymin):2&l?(s=e+(r-e)*(this.xmax-t)/(n-t),u=this.xmax):(s=e+(r-e)*(this.xmin-t)/(n-t),u=this.xmin),i?(t=u,e=s,i=this._regioncode(t,e)):(n=u,r=s,o=this._regioncode(n,r))}}_clipInfinite(t,e,n,r,i,o){let a=Array.from(e),u;if((u=this._project(a[0],a[1],n,r))&&a.unshift(u[0],u[1]),(u=this._project(a[a.length-2],a[a.length-1],i,o))&&a.push(u[0],u[1]),a=this._clipFinite(t,a))for(let e=0,n=a.length,r,i=this._edgecode(a[n-2],a[n-1]);e<n;e+=2)r=i,i=this._edgecode(a[e],a[e+1]),r&&i&&(e=this._edge(t,r,i,a,e),n=a.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(t,e,n,r,i){for(;e!==n;){let n,o;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,o=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,o=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,o=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,o=this.ymin}(r[i]!==n||r[i+1]!==o)&&this.contains(t,n,o)&&(r.splice(i,0,n,o),i+=2)}return i}_project(t,e,n,r){let i=1/0,o,a,u;if(r<0){if(e<=this.ymin)return null;(o=(this.ymin-e)/r)<i&&(u=this.ymin,a=t+(i=o)*n)}else if(r>0){if(e>=this.ymax)return null;(o=(this.ymax-e)/r)<i&&(u=this.ymax,a=t+(i=o)*n)}if(n>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/n)<i&&(a=this.xmax,u=e+(i=o)*r)}else if(n<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/n)<i&&(a=this.xmin,u=e+(i=o)*r)}return[a,u]}_edgecode(t,e){return(t===this.xmin?1:2*(t===this.xmax))|(e===this.ymin?4:8*(e===this.ymax))}_regioncode(t,e){return(t<this.xmin?1:2*(t>this.xmax))|(e<this.ymin?4:8*(e>this.ymax))}_simplify(t){if(t&&t.length>4){for(let e=0;e<t.length;e+=2){let n=(e+2)%t.length,r=(e+4)%t.length;(t[e]===t[n]&&t[n]===t[r]||t[e+1]===t[n+1]&&t[n+1]===t[r+1])&&(t.splice(n,2),e-=2)}t.length||(t=null)}return t}}let t9=2*Math.PI,t7=Math.pow;function et(t){return t[0]}function ee(t){return t[1]}class en{static from(t,e=et,n=ee,r){return new en("length"in t?function(t,e,n,r){let i=t.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){let i=t[a];o[2*a]=e.call(r,i,a,t),o[2*a+1]=n.call(r,i,a,t)}return o}(t,e,n,r):Float64Array.from(function*(t,e,n,r){let i=0;
370for(let o of t)yield e.call(r,o,i,t),yield n.call(r,o,i,t),++i}(t,e,n,r)))}constructor(t){this._delaunator=new W(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){let t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){let{triangles:e,coords:n}=t;for(let t=0;t<e.length;t+=3){let r=2*e[t],i=2*e[t+1],o=2*e[t+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},(t,e)=>e).sort((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]);let t=this.collinear[0],i=this.collinear[this.collinear.length-1],o=[e[2*t],e[2*t+1],e[2*i],e[2*i+1]],a=1e-8*Math.hypot(o[3]-o[1],o[2]-o[0]);for(let t=0,i=e.length/2;t<i;++t){var n,r;let i=(n=e[2*t],[n+Math.sin(n+(r=e[2*t+1]))*a,r+Math.cos(n-r)*a]);e[2*t]=i[0],e[2*t+1]=i[1]}this._delaunator=new W(e)}else delete this.collinear;let i=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,u=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let t=0,e=i.length;t<e;++t){let e=a[t%3==2?t-2:t+1];(-1===i[t]||-1===u[e])&&(u[e]=t)}for(let t=0,e=o.length;t<e;++t)s[o[t]]=t;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],u[o[0]]=1,2===o.length&&(u[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(t){return new t6(this,t)}*neighbors(t){let{inedges:e,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){let e=a.indexOf(t);e>0&&(yield a[e-1]),e<a.length-1&&(yield a[e+1]);return}let u=e[t];if(-1===u)return;let s=u,l=-1;do{if(yield l=o[s],o[s=s%3==2?s-2:s+1]!==t)return;if(-1===(s=i[s])){let e=n[(r[t]+1)%n.length];e!==l&&(yield e);return}}while(s!==u)}find(t,e,n=0){let r;if((t*=1)!=t||(e*=1)!=e)return -1;let i=n;for(;(r=this._step(n,t,e))>=0&&r!==n&&r!==i;)n=r;return r}_step(t,e,n){let{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:u,points:s}=this;if(-1===r[t]||!s.length)return(t+1)%(s.length>>1);let l=t,h=t7(e-s[2*t],2)+t7(n-s[2*t+1],2),c=r[t],f=c;do{let r=u[f],c=t7(e-s[2*r],2)+t7(n-s[2*r+1],2);if(c<h&&(h=c,l=r),u[f=f%3==2?f-2:f+1]!==t)break;if(-1===(f=a[f])){if((f=i[(o[t]+1)%i.length])!==r&&t7(e-s[2*f],2)+t7(n-s[2*f+1],2)<h)return f;break}}while(f!==c);return l}render(t){let e=null==t?t=new t8:void 0,{points:n,halfedges:r,triangles:i}=this;for(let e=0,o=r.length;e<o;++e){let o=r[e];if(o<e)continue;let a=2*i[e],u=2*i[o];t.moveTo(n[a],n[a+1]),t.lineTo(n[u],n[u+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0!==e||t&&"function"==typeof t.moveTo||(e=t,t=null),e=void 0==e?2:+e;let n=null==t?t=new t8:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){let i=r[n],o=r[n+1];t.moveTo(i+e,o),t.arc(i,o,e,0,t9)}return n&&n.value()}renderHull(t){let e=null==t?t=new t8:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;t.moveTo(r[i],r[i+1]);for(let e=1;e<o;++e){let i=2*n[e];t.lineTo(r[i],r[i+1])}return t.closePath(),e&&e.value()}hullPolygon(){let t=new t4;return this.renderHull(t),t.value()}renderTriangle(t,e){let n=null==e?e=new t8:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],a=2*i[t+1],u=2*i[t+2];return e.moveTo(r[o],r[o+1]),e.lineTo(r[a],r[a+1]),e.lineTo(r[u],r[u+1]),e.closePath(),n&&n.value()}*trianglePolygons(){let{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){let e=new t4;return this.renderTriangle(t,e),e.value()}}function er(t,e){function n(n,r){return e((n=t(n,r))[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function ei(t,e){return(0,ta.tn)(t)>ta.pi&&(t-=Math.round(t/ta.FA)*ta.FA),[t,e]}function eo(t,e,n){return(t%=ta.FA)?e||n?er(eu(t),es(e,n)):eu(t):e||n?es(e,n):ei}function ea(t){return function(e,n){return e+=t,(0,ta.tn)(e)>ta.pi&&(e-=Math.round(e/ta.FA)*ta.FA),[e,n]}}function eu(t){var e=ea(t);return e.invert=ea(-t),e}function es(t,e){var n=(0,ta.gn)(t),r=(0,ta.F8)(t),i=(0,ta.gn)(e),o=(0,ta.F8)(e);function a(t,e){var a=(0,ta.gn)(e),u=(0,ta.gn)(t)*a,s=(0,ta.F8)(t)*a,l=(0,ta.F8)(e),h=l*n+u*r;return[(0,ta.FP)(s*i-h*o,u*n-l*r),(0,ta.qR)(h*i+s*o)]}return a.invert=function(t,e){var a=(0,ta.gn)(e),u=(0,ta.gn)(t)*a,s=(0,ta.F8)(t)*a,l=(0,ta.F8)(e),h=l*i-s*o;return[(0,ta.FP)(s*i+l*o,u*n+h*r),(0,ta.qR)(h*n-u*r)]},a}function el(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:tu.A,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function eh(t,e){return(0,ta.tn)(t[0]-e[0])<ta.Ni&&(0,ta.tn)(t[1]-e[1])<ta.Ni}function ec(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function ef(t,e,n,r,i){var o,a,u=[],s=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(eh(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);i.lineEnd();return}a[0]+=2*ta.Ni}
370u.push(n=new ec(r,t,null,!0)),s.push(n.o=new ec(r,null,n,!1)),u.push(n=new ec(a,t,null,!1)),s.push(n.o=new ec(a,null,n,!0))}}),u.length){for(s.sort(e),ed(u),ed(s),o=0,a=s.length;o<a;++o)s[o].e=n=!n;for(var l,h,c=u[0];;){for(var f=c,d=!0;f.v;)if((f=f.n)===c)return;l=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(d)for(o=0,a=l.length;o<a;++o)i.point((h=l[o])[0],h[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(d)for(o=(l=f.p.z).length-1;o>=0;--o)i.point((h=l[o])[0],h[1]);else r(f.x,f.p.x,-1,i);f=f.p}l=(f=f.o).z,d=!d}while(!f.v);i.lineEnd()}}}function ed(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function ep(t,e,n,r){return function(i){var o,a,u,s=e(i),l=el(),h=e(l),c=!1,f={point:d,lineStart:m,lineEnd:g,polygonStart:function(){f.point=y,f.lineStart=v,f.lineEnd=b,a=[],o=[]},polygonEnd:function(){f.point=d,f.lineStart=m,f.lineEnd=g,a=F(a);var t=tU(o,r);a.length?(c||(i.polygonStart(),c=!0),ef(a,eg,t,n,i)):t&&(c||(i.polygonStart(),c=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),c&&(i.polygonEnd(),c=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(e,n){t(e,n)&&i.point(e,n)}function p(t,e){s.point(t,e)}function m(){f.point=p,s.lineStart()}function g(){f.point=d,s.lineEnd()}function y(t,e){u.push([t,e]),h.point(t,e)}function v(){h.lineStart(),u=[]}function b(){y(u[0][0],u[0][1]),h.lineEnd();var t,e,n,r,s=h.clean(),f=l.result(),d=f.length;if(u.pop(),o.push(u),u=null,d){if(1&s){if((e=(n=f[0]).length-1)>0){for(c||(i.polygonStart(),c=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}return}d>1&&2&s&&f.push(f.pop().concat(f.shift())),a.push(f.filter(em))}}return f}}function em(t){return t.length>1}function eg(t,e){return((t=t.x)[0]<0?t[1]-ta.TW-ta.Ni:ta.TW-t[1])-((e=e.x)[0]<0?e[1]-ta.TW-ta.Ni:ta.TW-e[1])}ei.invert=ei;let ey=ep(function(){return!0},function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u,s,l,h,c,f,d,p=o>0?ta.pi:-ta.pi,m=(0,ta.tn)(o-n);(0,ta.tn)(m-ta.pi)<ta.Ni?(t.point(n,r=(r+a)/2>0?ta.TW:-ta.TW),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(p,r),t.point(o,r),e=0):i!==p&&m>=ta.pi&&((0,ta.tn)(n-i)<ta.Ni&&(n-=i*ta.Ni),(0,ta.tn)(o-p)<ta.Ni&&(o-=p*ta.Ni),u=n,s=r,l=o,h=a,d=(0,ta.F8)(u-l),r=(0,ta.tn)(d)>ta.Ni?(0,ta.rY)(((0,ta.F8)(s)*(f=(0,ta.gn)(h))*(0,ta.F8)(l)-(0,ta.F8)(h)*(c=(0,ta.gn)(s))*(0,ta.F8)(u))/(c*f*d)):(s+h)/2,t.point(i,r),t.lineEnd(),t.lineStart(),t.point(p,r),e=0),t.point(n=o,r=a),i=p},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*ta.TW,r.point(-ta.pi,i),r.point(0,i),r.point(ta.pi,i),r.point(ta.pi,0),r.point(ta.pi,-i),r.point(0,-i),r.point(-ta.pi,-i),r.point(-ta.pi,0),r.point(-ta.pi,i);else if((0,ta.tn)(t[0]-e[0])>ta.Ni){var o=t[0]<e[0]?ta.pi:-ta.pi;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])},[-ta.pi,-ta.TW]);function ev(t,e){e=tg(e),e[0]-=t,tE(e);var n=(0,ta.HQ)(-e[1]);return((0>-e[2]?-n:n)+ta.FA-ta.Ni)%ta.FA}let eb=t=>t;function e_(t){return function(e){var n=new eE;for(var r in t)n[r]=t[r];return n.stream=e,n}}function eE(){}eE.prototype={constructor:eE,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ex=1/0,ew=1/0,eS=-1/0,eM=eS,eA={point:function(t,e){t<ex&&(ex=t),t>eS&&(eS=t),e<ew&&(ew=e),e>eM&&(eM=e)},lineStart:tu.A,lineEnd:tu.A,polygonStart:tu.A,polygonEnd:tu.A,result:function(){var t=[[ex,ew],[eS,eM]];return eS=eM=-(ew=ex=1/0),t}};function eP(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),(0,tx.A)(n,t.stream(eA)),e(eA.result()),null!=r&&t.clipExtent(r),t}function eT(t,e,n){return eP(t,function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,u])},n)}var ek=(0,ta.gn)(30*ta.F2);function eO(t,e){var n;return+e?function(t,e){function n(r,i,o,a,u,s,l,h,c,f,d,p,m,g){var y=l-r,v=h-i,b=y*y+v*v;if(b>4*e&&m--){var _=a+f,E=u+d,x=s+p,w=(0,ta.RZ)(_*_+E*E+x*x),S=(0,ta.qR)(x/=w),M=(0,ta.tn)((0,ta.tn)(x)-1)<ta.Ni||(0,ta.tn)(o-c)<ta.Ni?(o+c)/2:(0,ta.FP)(E,_),A=t(M,S),P=A[0],T=A[1],k=P-r,O=T-i,F=v*k-y*O;(F*F/b>e||(0,ta.tn)((y*k+v*O)/b-.5)>.3||a*f+u*d+s*p<ek)&&(n(r,i,o,a,u,s,P,T,M,_/=w,E/=w,x,m,g),g.point(P,T),n(P,T,M,_,E,x,l,h,c,f,d,p,m,g))}}return function(e){var r,i,o,a,u,s,l,h,c,f,d,p,m={point:g,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),m.lineStart=_},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function g(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){h=NaN,m.point=v,e.lineStart()}function v(r,i){var o=tg([r,i]),a=t(r,i);
370n(h,c,l,f,d,p,h=a[0],c=a[1],l=r,f=o[0],d=o[1],p=o[2],16,e),e.point(h,c)}function b(){m.point=g,e.lineEnd()}function _(){y(),m.point=E,m.lineEnd=x}function E(t,e){v(r=t,e),i=h,o=c,a=f,u=d,s=p,m.point=v}function x(){n(h,c,l,f,d,p,i,o,r,a,u,s,16,e),m.lineEnd=b,b()}return m}}(t,e):(n=t,e_({point:function(t,e){t=n(t,e),this.stream.point(t[0],t[1])}}))}var eF=e_({point:function(t,e){this.stream.point(t*ta.F2,e*ta.F2)}});function eN(t,e,n,r,i,o){if(!o){function a(o,a){return[e+t*(o*=r),n-t*(a*=i)]}return a.invert=function(o,a){return[(o-e)/t*r,(n-a)/t*i]},a}var u=(0,ta.gn)(o),s=(0,ta.F8)(o),l=u*t,h=s*t,c=u/t,f=s/t,d=(s*n-u*e)/t,p=(s*e+u*n)/t;function m(t,o){return[l*(t*=r)-h*(o*=i)+e,n-h*t-l*o]}return m.invert=function(t,e){return[r*(c*t-f*e+d),i*(p-f*t-c*e)]},m}function ej(t,e){var n=(0,ta.gn)(e),r=1+(0,ta.gn)(t)*n;return[n*(0,ta.F8)(t)/r,(0,ta.F8)(e)/r]}ej.invert=function(t,e){var n=(0,ta.RZ)(t*t+e*e),r=function(t){return 2*(0,ta.rY)(t)}(n),i=(0,ta.F8)(r),o=(0,ta.gn)(r);return[(0,ta.FP)(t*i,n*o),(0,ta.qR)(n&&e*i/n)]};let ez=Math.PI,eI=ez/2,eC=180/ez,eR=ez/180,eU=Math.atan2,eB=Math.cos,eL=Math.max,eD=Math.min,eq=Math.sin,eH=Math.sign||function(t){return t>0?1:t<0?-1:0},e$=Math.sqrt;function eG(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function eV(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function eW(t,e){return[t[0]+e[0],t[1]+e[1],t[2]+e[2]]}function eZ(t){var e=e$(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);return[t[0]/e,t[1]/e,t[2]/e]}function eY(t){var e;return[eU(t[1],t[0])*eC,((e=eL(-1,eD(1,t[2])))>1?eI:e<-1?-eI:Math.asin(e))*eC]}function eX(t){let e=t[0]*eR,n=t[1]*eR,r=eB(n);return[r*eB(e),r*eq(e),eq(n)]}function eK(t){return eG((t=t.map(t=>eX(t)))[0],eV(t[2],t[1]))}function eQ(t,e,n){t=eX(t),e=eX(e),n=eX(n);let r=eH(eG(eV(e,t),n));return eY(eZ(eW(t,e)).map(t=>r*t))}var eJ=n(17593);function e0(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e1(t){return(e1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function e2(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(e2=function(){return!!t})()}function e3(t,e){return(e3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function e5(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){l=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||e4(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e8(t){return function(t){if(Array.isArray(t))return e0(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e4(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e4(t,e){if(t){if("string"==typeof t)return e0(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e0(t,e):void 0}}function e6(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n?(e&&tB.hasOwnProperty(e.type)?tB[e.type]:tD)(e,t):ti(t,e)}var e9=window.THREE?window.THREE:{BufferGeometry:O.LoY,Float32BufferAttribute:O.qtW},e7=new e9.BufferGeometry().setAttribute?"setAttribute":"addAttribute",nt=function(t){function e(t,n,r,i,o,a,u){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");s=e1(s=e),(l=function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,e2()?Reflect.construct(s,[],e1(this).constructor):s.apply(this,void 0))).type="C
370onicPolygonGeometry",l.parameters={polygonGeoJson:t,bottomHeight:n,topHeight:r,closedBottom:i,closedTop:o,includeSides:a,curvatureResolution:u},n=n||0,r=r||1,i=void 0===i||i,o=void 0===o||o,a=void 0===a||a;var s,l,h=function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.resolution,o=void 0===i?1/0:i,a=(e=t,n=o,e.map(function(t){var e,r=[];return t.forEach(function(t){if(e){var i=180*(0,tI.A)(t,e)/Math.PI;if(i>n)for(var o=(0,tC.A)(e,t),a=1/Math.ceil(i/n),u=a;u<1;)r.push(o(u)),u+=a}r.push(e=t)}),r})),u=F(a),s=function(t,e){var n={type:"Polygon",coordinates:t},r=e5(tz(n),2),i=e5(r[0],2),o=i[0],a=i[1],u=e5(r[1],2),s=u[0],l=u[1];if(Math.min(Math.abs(s-o),Math.abs(l-a))<e)return[];var h=o>s||l>=89||a<=-89;return(function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minLng,r=e.maxLng,i=e.minLat,o=e.maxLat,a=Math.round(Math.pow(360/t,2)/Math.PI),u=(1+Math.sqrt(5))/2,s=function(t){return a*(Math.cos((t+90)*Math.PI/180)+1)/2},l=[void 0!==o?Math.ceil(s(o)):0,void 0!==i?Math.floor(s(i)):a-1],h=void 0===n&&void 0===r?function(){return!0}:void 0===n?function(t){return t<=r}:void 0===r?function(t){return t>=n}:r>=n?function(t){return t>=n&&t<=r}:function(t){return t>=n||t<=r},c=[],f=l[0];f<=l[1];f++){var d=f/u*360%360-180;h(d)&&c.push([d,Math.acos(2*f/a-1)/Math.PI*180-90])}return c})(e,{minLng:o,maxLng:s,minLat:a,maxLat:l}).filter(function(t){return e6(t,n,h)})}(t,o),l=[].concat(e8(u),e8(s)),h={type:"Polygon",coordinates:t},c=e5(tz(h),2),f=e5(c[0],2),d=f[0],p=f[1],m=e5(c[1],2),g=m[0],y=m[1],v=d>g||y>=89||p<=-89,b=[];if(v){var _=(function(t){let e=function(t){if(e.delaunay=null,e._data=t,"object"==typeof e._data&&"FeatureCollection"===e._data.type&&(e._data=e._data.features),"object"==typeof e._data){let t=e._data.map(t=>[e._vx(t),e._vy(t),t]).filter(t=>isFinite(t[0]+t[1]));e.points=t.map(t=>[t[0],t[1]]),e.valid=t.map(t=>t[2]),e.delaunay=function(t){var e,n,r,i;let o=function(t){if(t.length<2)return{};let e=0;for(;isNaN(t[e][0]+t[e][1])&&e++<t.length;);let n=function(t){function e(e){return e=t(e[0]*ta.F2,e[1]*ta.F2),e[0]*=ta.uj,e[1]*=ta.uj,e}return t=eo(t[0]*ta.F2,t[1]*ta.F2,t.length>2?t[2]*ta.F2:0),e.invert=function(e){return e=t.invert(e[0]*ta.F2,e[1]*ta.F2),e[0]*=ta.uj,e[1]*=ta.uj,e},e}(t[e]),r=(function(t){var e,n,r,i,o,a,u,s,l,h,c=150,f=480,d=250,p=0,m=0,g=0,y=0,v=0,b=0,_=1,E=1,x=null,w=ey,S=null,M=eb,A=.5;function P(t){return s(t[0]*ta.F2,t[1]*ta.F2)}function T(t){return(t=s.invert(t[0],t[1]))&&[t[0]*ta.uj,t[1]*ta.uj]}function k(){var t=eN(c,0,0,_,E,b).apply(null,e(p,m)),r=eN(c,f-t[0],d-t[1],_,E,b);return n=eo(g,y,v),u=er(e,r),s=er(n,u),a=eO(u,A),O()}function O(){return l=h=null,P}return P.stream=function(t){var e;return l&&h===t?l:l=eF((e=n,e_({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}}))(w(a(M(h=t)))))},P.preclip=function(t){return arguments.length?(w=t,x=void 0,O()):w},P.postclip=function(t){return arguments.length?(M=t,S=r=i=o=null,O()):M},P.clipAngle=function(t){return arguments.length?(w=+t?function(t){var e=(0,ta.gn)(t),n=2*ta.F2,r=e>0,i=(0,ta.tn)(e)>ta.Ni;function o(t,n){return(0,ta.gn)(t)*(0,ta.gn)(n)>e}function a(t,n,r){var i=tg(t),o=tg(n),a=[1,0,0],u=tv(i,o),s=ty(u,u),l=u[0],h=s-l*l;if(!h)return!r&&t;var c=tv(a,u),f=t_(a,e*s/h);tb(f,t_(u,-e*l/h));var d=ty(f,c),p=ty(c,c),m=d*d-p*(ty(f,f)-1);if(!(m<0)){var g=(0,ta.RZ)(m),y=t_(c,(-d-g)/p);if(tb(y,f),y=tm(y),!r)return y;var v,b=t[0],_=n[0],E=t[1],x=n[1];_<b&&(v=b,b=_,_=v);var w=_-b,S=(0,ta.tn)(w-ta.pi)<ta.Ni,M=S||w<ta.Ni;if(!S&&x<E&&(v=E,E=x,x=v),M?S?E+x>0^y[1]<((0,ta.tn)(y[0]-b)<ta.Ni?E:x):E<=y[1]&&y[1]<=x:w>ta.pi^(b<=y[0]&&y[0]<=_)){var A=t_(c,(-d+g)/p);return tb(A,f),[y,tm(A)]}}}function u(e,n){var i=r?t:ta.pi-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return ep(o,function(t){var e,n,s,l,h;return{lineStart:function(){l=s=!1,h=1},point:function(c,f){var d,p,m=[c,f],g=o(c,f),y=r?g?0:u(c,f):g?u(c+(c<0?ta.pi:-ta.pi),f):0;!e&&(l=s=g)&&t.lineStart(),g!==s&&(!(p=a(e,m))||eh(e,p)||eh(m,p))&&(m[2]=1),g!==s?(h=0,g?(t.lineStart(),p=a(m,e),t.point(p[0],p[1])):(p=a(e,m),t.point(p[0],p[1],2),t.lineEnd()),e=p):i&&e&&r^g&&!(y&n)&&(d=a(m,e,!0))&&(h=0,r?(t.lineStart(),t.point(d[0][0],d[0][1]),t.point(d[1][0],d[1][1]),t.lineEnd()):(t.point(d[1][0],d[1][1]),t.lineEnd(),t.lineStart(),t.point(d[0][0],d[0][1],3))),!g||e&&eh(e,m)||t.point(m[0],m[1]),e=m,s=g,n=y},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return h|(l&&s)<<1}}},function(e,r,i,o){!function(t,e,n,r,i,o){if(n){var a=(0,ta.gn)(e),u=(0,ta.F8)(e),s=r*n;null==i?(i=e+r*ta.FA,o=e-s/2):(i=ev(a,i),o=ev(a,o),(r>0?i<o:i>o)&&(i+=r*ta.FA));for(var l,h=i;r>0?h>o:h<o;h-=s)l=tm([a,-u*(0,ta.gn)(h),-u*(0,ta.F8)(h)]),t.point(l[0],l[1])}}(o,t,n,i,e,r)},r?[0,-t]:[-ta.pi,t-ta.pi])}(x=t*ta.F2):(x=null,ey),O()):x*ta.uj},P.clipExtent=function(t){return arguments.length?(M=null==t?(S=r=i=o=null,eb):function(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,u,l){var h=0,c=0;if(null==i||(h=a(i,u))!==(c=a(o,u))||0>s(i,o)^u>0)do l.point(0===h||3===h?t:n,h>1?r:e);while((h=(h+u+4)%4)!==c);else l.point(o[0],o[1])}function a(r,i){return(0,ta.tn)(r[0]-t)<ta.Ni?i>0?0:3:(0,ta.tn)(r[0]-n)<ta.Ni?i>0?2:1:(0,ta.tn)(r[1]-e)<ta.Ni?+(i>0):i>0?3:2}function u(t,e){return s(t.x,e.x)}function s(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var s,l,h,c,f,d,p,m,g,y,v,b=a,_=el(),E={point:x,lineStart:function(){E.point=w,l&&l.push(h=[]),y=!0,g=!1,p=m=NaN},lineEnd:function(){s&&(w(c,f),d&&g&&_.rejoin(),s.push(_.result())),E.point=x,g&&b.lineEnd()},polygonStart:function(){b=_,s=[],l=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;n<i;++n)for(var o,a,u=l[n],s=1,h=u.length,c=u[0],f=c[0],d=c[1];s<h;++s)o=f,a=d,f=(c=u[s])[0],d=c[1],a<=r?d>r&&(f-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(f-o)*(r-a)<(d-a)*(t-o)&&--e;return e}(),n=v&&e,i=(s=F(s)).length;
370(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&ef(s,u,e,o,a),a.polygonEnd()),b=a,s=l=h=null}};function x(t,e){i(t,e)&&b.point(t,e)}function w(o,a){var u=i(o,a);if(l&&h.push([o,a]),y)c=o,f=a,d=u,y=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&g)b.point(o,a);else{var s=[p=Math.max(-1e9,Math.min(1e9,p)),m=Math.max(-1e9,Math.min(1e9,m))],_=[o=Math.max(-1e9,Math.min(1e9,o)),a=Math.max(-1e9,Math.min(1e9,a))];!function(t,e,n,r,i,o){var a,u=t[0],s=t[1],l=e[0],h=e[1],c=0,f=1,d=l-u,p=h-s;if(a=n-u,!d&&a>0)return;if(a/=d,d<0){if(a<c)return;a<f&&(f=a)}else if(d>0){if(a>f)return;a>c&&(c=a)}if(a=i-u,d||!(a<0)){if(a/=d,d<0){if(a>f)return;a>c&&(c=a)}else if(d>0){if(a<c)return;a<f&&(f=a)}if(a=r-s,p||!(a>0)){if(a/=p,p<0){if(a<c)return;a<f&&(f=a)}else if(p>0){if(a>f)return;a>c&&(c=a)}if(a=o-s,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>c&&(c=a)}else if(p>0){if(a<c)return;a<f&&(f=a)}return c>0&&(t[0]=u+c*d,t[1]=s+c*p),f<1&&(e[0]=u+f*d,e[1]=s+f*p),!0}}}}(s,_,t,e,n,r)?u&&(b.lineStart(),b.point(o,a),v=!1):(g||(b.lineStart(),b.point(s[0],s[1])),b.point(_[0],_[1]),u||b.lineEnd(),v=!1)}p=o,m=a,g=u}return E}}(S=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),O()):null==S?null:[[S,r],[i,o]]},P.scale=function(t){return arguments.length?(c=+t,k()):c},P.translate=function(t){return arguments.length?(f=+t[0],d=+t[1],k()):[f,d]},P.center=function(t){return arguments.length?(p=t[0]%360*ta.F2,m=t[1]%360*ta.F2,k()):[p*ta.uj,m*ta.uj]},P.rotate=function(t){return arguments.length?(g=t[0]%360*ta.F2,y=t[1]%360*ta.F2,v=t.length>2?t[2]%360*ta.F2:0,k()):[g*ta.uj,y*ta.uj,v*ta.uj]},P.angle=function(t){return arguments.length?(b=t%360*ta.F2,k()):b*ta.uj},P.reflectX=function(t){return arguments.length?(_=t?-1:1,k()):_<0},P.reflectY=function(t){return arguments.length?(E=t?-1:1,k()):E<0},P.precision=function(t){return arguments.length?(a=eO(u,A=t*t),O()):(0,ta.RZ)(A)},P.fitExtent=function(t,e){return eT(P,t,e)},P.fitSize=function(t,e){return eT(P,[[0,0],t],e)},P.fitWidth=function(t,e){return eP(P,function(e){var n=+t,r=n/(e[1][0]-e[0][0]),i=(n-r*(e[1][0]+e[0][0]))/2,o=-r*e[0][1];P.scale(150*r).translate([i,o])},e)},P.fitHeight=function(t,e){return eP(P,function(e){var n=+t,r=n/(e[1][1]-e[0][1]),i=-r*e[0][0],o=(n-r*(e[1][1]+e[0][1]))/2;P.scale(150*r).translate([i,o])},e)},function(){return e=t.apply(this,arguments),P.invert=e.invert&&T,k()}})(function(){return ej})().scale(250).clipAngle(142).translate([0,0]).scale(1).rotate(n.invert([180,0]));t=t.map(r);let i=[],o=1;for(let e=0,n=t.length;e<n;e++){let n=t[e][0]**2+t[e][1]**2;!isFinite(n)||n>1e32?i.push(e):n>o&&(o=n)}let a=1e6*e$(o);i.forEach(e=>t[e]=[a,0]),t.push([0,a]),t.push([-a,0]),t.push([0,-a]);let u=en.from(t);u.projection=r;let{triangles:s,halfedges:l,inedges:h}=u,c=[];for(let n=0,r=l.length;n<r;n++)if(l[n]<0){let t=n%3==2?n-2:n+1,r=n%3==0?n+2:n-1,i=l[t],o=l[r];l[i]=o,l[o]=i,l[t]=l[r]=-1,s[n]=s[t]=s[r]=e,h[s[i]]=i%3==0?i+2:i-1,h[s[o]]=o%3==0?o+2:o-1,c.push(Math.min(n,t,r)),n+=2-n%3}else s[n]>t.length-3-1&&(s[n]=e);return u}(t),a=function(t){let{triangles:e}=t;if(!e)return[];let n=[];for(let t=0,r=e.length/3;t<r;t++){let r=e[3*t],i=e[3*t+1],o=e[3*t+2];r!==i&&i!==o&&n.push([r,o,i])}return n}(o),u=function(t,e){let n=new Set;return 2===e.length?[[0,1]]:(t.forEach(t=>{if(t[0]!==t[1]&&!(0>eK(t.map(t=>e[t]))))for(let e=0,r;e<3;e++)r=(e+1)%3,n.add(N([t[e],t[r]]).join("-"))}),Array.from(n,t=>t.split("-").map(Number)))}(a,t),s=function(t,e){let n=[];return t.forEach(t=>{for(let e=0;e<3;e++){let r=t[e],i=t[(e+1)%3];n[r]=n[r]||[],n[r].push(i)}}),0===t.length&&(2===e?(n[0]=[1],n[1]=[0]):1===e&&(n[0]=[])),n}(a,t.length),l=function(t,e){function n(t,e){let n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}return function(r,i,o){void 0===o&&(o=0);let a,u,s=o,l=eX([r,i]);do a=o,o=null,u=n(l,eX(e[a])),t[a].forEach(t=>{let r=n(l,eX(e[t]));if(r<u){u=r,o=t,s=t;return}});while(null!==o);return s}}(s,t),{polygons:h,centers:c}=function(t,e,n){let r=[],i=t.slice();if(0===e.length){if(n.length<2)return{polygons:r,centers:i};if(2===n.length){let t=eX(n[0]),e=eX(n[1]),a=eZ(eW(t,e)),u=eZ(eV(t,e)),s=eV(a,u),l=[a,eV(a,s),eV(eV(a,s),s),eV(eV(eV(a,s),s),s)].map(eY).map(o);return r.push(l),r.push(l.slice().reverse()),{polygons:r,centers:i}}}function o(t){let n=-1;
370return i.slice(e.length,1/0).forEach((r,i)=>{r[0]===t[0]&&r[1]===t[1]&&(n=i+e.length)}),n<0&&(n=i.length,i.push(t)),n}return e.forEach((t,e)=>{for(let n=0;n<3;n++){let i=t[n],o=t[(n+1)%3],a=t[(n+2)%3];r[i]=r[i]||[],r[i].push([o,a,e,[i,o,a]])}}),{polygons:r.map(t=>{let e=[t[0][2]],r=t[0][1];for(let n=1;n<t.length;n++)for(let n=0;n<t.length;n++)if(t[n][0]==r){r=t[n][1],e.push(t[n][2]);break}if(e.length>2)return e;if(2==e.length){let r=eQ(n[t[0][3][0]],n[t[0][3][1]],i[e[0]]),a=eQ(n[t[0][3][2]],n[t[0][3][0]],i[e[0]]),u=o(r),s=o(a);return[e[0],s,e[1],u]}}),centers:i}}((e=a,n=t,e.map(t=>{let e=t.map(t=>n[t]).map(eX);return eY(eZ(eW(eW(eV(e[1],e[0]),eV(e[2],e[1])),eV(e[0],e[2]))))})),a,t),f=function(t){let e=[];return t.forEach(t=>{if(!t)return;let n=t[t.length-1];for(let r of t)r>n&&e.push([n,r]),n=r}),e}(h),d=function(t,e){let n,r=new Set,i=[];t.map(t=>{if(!(eK(t.map(t=>e[t>e.length?0:t]))>1e-12))for(let e=0;e<3;e++){let n=[t[e],t[(e+1)%3]],i=`${n[0]}-${n[1]}`;r.has(i)?r.delete(i):r.add(`${n[1]}-${n[0]}`)}});let o=new Map;if(r.forEach(t=>{t=t.split("-").map(Number),o.set(t[0],t[1]),n=t[0]}),void 0===n)return i;let a=n;do{i.push(a);let t=o.get(a);o.set(a,-1),a=t}while(a>-1&&a!==n);return i}(a,t),p=(r=u,i=a,function(t){let e=new Map,n=new Map;return r.forEach((r,i)=>{let o=r.join("-");e.set(o,t[i]),n.set(o,!0)}
370),i.forEach(t=>{let r=0,i=-1;for(let n=0;n<3;n++){let o=N([t[n],t[(n+1)%3]]).join("-");e.get(o)>r&&(r=e.get(o),i=o)}n.set(i,!1)}),r.map(t=>n.get(t.join("-")))});return{delaunay:o,edges:u,triangles:a,centers:c,neighbors:s,polygons:h,mesh:f,hull:d,urquhart:p,find:l}}(e.points)}return e};return e._vx=function(t){return"object"==typeof t&&"type"in t?t5(t)[0]:0 in t?t[0]:void 0},e._vy=function(t){return"object"==typeof t&&"type"in t?t5(t)[1]:1 in t?t[1]:void 0},e.x=function(t){return t?(e._vx=t,e):e._vx},e.y=function(t){return t?(e._vy=t,e):e._vy},e.polygons=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;let n={type:"FeatureCollection",features:[]};return 0===e.valid.length||(e.delaunay.polygons.forEach((t,r)=>n.features.push({type:"Feature",geometry:t?{type:"Polygon",coordinates:[[...t,t[0]].map(t=>e.delaunay.centers[t])]}:null,properties:{site:e.valid[r],sitecoordinates:e.points[r],neighbours:e.delaunay.neighbors[r]}})),1===e.valid.length&&n.features.push({type:"Feature",geometry:{type:"Sphere"},properties:{site:e.valid[0],sitecoordinates:e.points[0],neighbours:[]}})),n},e.triangles=function(t){return void 0!==t&&e(t),!!e.delaunay&&{type:"FeatureCollection",features:e.delaunay.triangles.map((t,n)=>((t=t.map(t=>e.points[t])).center=e.delaunay.centers[n],t)).filter(t=>eK(t)>0).map(t=>({type:"Feature",properties:{circumcenter:t.center},geometry:{type:"Polygon",coordinates:[[...t,t[0]]]}}))}},e.links=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;let n=e.delaunay.edges.map(t=>(0,tI.A)(e.points[t[0]],e.points[t[1]])),r=e.delaunay.urquhart(n);return{type:"FeatureCollection",features:e.delaunay.edges.map((t,i)=>({type:"Feature",properties:{source:e.valid[t[0]],target:e.valid[t[1]],length:n[i],urquhart:!!r[i]},geometry:{type:"LineString",coordinates:[e.points[t[0]],e.points[t[1]]]}}))}},e.mesh=function(t){return void 0!==t&&e(t),!!e.delaunay&&{type:"MultiLineString",coordinates:e.delaunay.edges.map(t=>[e.points[t[0]],e.points[t[1]]])}},e.cellMesh=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;let{centers:n,polygons:r}=e.delaunay,i=[];for(let t of r)if(t)for(let e=t.length,r=t[e-1],o=t[0],a=0;a<e;r=o,o=t[++a])o>r&&i.push([n[r],n[o]]);return{type:"MultiLineString",coordinates:i}},e._found=void 0,e.find=function(t,n,r){if(e._found=e.delaunay.find(t,n,e._found),!r||(0,tI.A)([t,n],e.points[e._found])<r)return e._found},e.hull=function(t){void 0!==t&&e(t);let n=e.delaunay.hull,r=e.points;return 0===n.length?null:{type:"Polygon",coordinates:[[...n.map(t=>r[t]),r[n[0]]]]}},t?e(t):e})(l).triangles(),E=new Map(l.map(function(t,e){var n=e5(t,2),r=n[0],i=n[1];return["".concat(r,"-").concat(i),e]}));_.features.forEach(function(t){var e,n=t.geometry.coordinates[0].slice(0,3).reverse(),r=[];if(n.forEach(function(t){var e=e5(t,2),n=e[0],i=e[1],o="".concat(n,"-").concat(i);E.has(o)&&r.push(E.get(o))}),3===r.length){if(r.some(function(t){return t<u.length})&&!e6(t.properties.circumcenter,h,v))return;(e=b).push.apply(e,r)}})}else if(s.length){for(var x=W.from(l),w=function(t){var e,n=[2,1,0].map(function(e){return x.triangles[t+e]}),r=n.map(function(t){return l[t]});if(n.some(function(t){return t<u.length})&&!e6([0,1].map(function(t){return function(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e*=1)>=e&&(++n,r+=e);else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(o*=1)>=o&&(++n,r+=o)}if(n)return r/n}(r,function(e){return e[t]})}),h,v))return 1;(e=b).push.apply(e,e8(n))},S=0,M=x.triangles.length;S<M;S+=3)if(w(S))continue}else{var A=(0,j.Bq)(a),P=A.vertices,T=A.holes;b=(0,j.Ay)(P,void 0===T?[]:T,2)}var k=(0,eJ.A)(N(l,function(t){return t[0]}),[0,1]),O=(0,eJ.A)(N(l,function(t){return t[1]}),[0,1]),z=l.map(function(t){var e=e5(t,2),n=e[0],r=e[1];return[k(n),O(r)]});return{contour:a,triangles:{points:l,indices:b,uvs:z}}}(t,{resolution:u=u||5}),c=h.contour,f=h.triangles,d=F(f.uvs),p=[],m=[],g=[],y=0,v=function(t){var e=Math.round(p.length/3),n=g.length;p=p.concat(t.vertices),m=m.concat(t.uvs),g=g.concat(e?t.indices.map(function(t){return t+e}):t.indices),l.addGroup(n,g.length-n,y++)};function b(t,e){var n="function"==typeof e?e:function(){return e},r=t.map(function(t){return t.map(function(t){var e=e5(t,2),r=e[0],i=e[1];return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}(i,r,n(r,i))})});return(0,j.Bq)(r)}function _(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return{indices:e?f.indices:f.indices.slice().reverse(),vertices:b([f.points],t).vertices,uvs:d}}return a&&v(function(){for(var t=b(c,n),e=t.vertices,i=t.holes,o=b(c,r).vertices,a=F([o,e]),u=Math.round(o.length/3),s=new Set(i),l=0,h=[],f=0;f<u;f++){var d=f+1;if(d===u)d=l;else if(s.has(d)){var p=d;d=l,l=p}h.push(f,f+u,d+u),h.push(d+u,d,f)}for(var m=[],g=1;g>=0;g--)for(var y=0;y<u;y+=1)m.push(y/(u-1),g);return{indices:h,vertices:a,uvs:m}}()),i&&v(_(n,!1)),o&&v(_(r,!0)),l.setIndex(g),l[e7]("position",new e9.Float32BufferAttribute(p,3)),l[e7]("uv",new e9.Float32BufferAttribute(m,2)),l.computeVertexNormals(),l}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&e3(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(e9.BufferGeometry)},81456:(t,e,n)=>{"use strict";n.d(e,{A:()=>X});var r=n(85339);function i(t,e,n,r,i){if(isNaN(e)||isNaN(n)||isNaN(r))return t;var o,a,u,s,l,h,c,f,d,p,m,g,y=t._root,v={data:i},b=t._x0,_=t._y0,E=t._z0,x=t._x1,w=t._y1,S=t._z1;if(!y)return t._root=v,t;for(;y.length;)if((f=e>=(a=(b+x)/2))?b=a:x=a,(d=n>=(u=(_+w)/2))?_=u:w=u,(p=r>=(s=(E+S)/2))?E=s:S=s,o=y,!(y=y[m=p<<2|d<<1|f]))return o[m]=v,t;if(l=+t._x.call(null,y.data),h=+t._y.call(null,y.data),c=+t._z.call(null,y.data),e===l&&n===h&&r===c)return v.next=y,o?o[m]=v:t._root=v,t;do o=o?o[m]=Array(8):t._root=Array(8),(f=e>=(a=(b+x)/2))?b=a:x=a,(d=n>=(u=(_+w)/2))?_=u:w=u,(p=r>=(s=(E+S)/2))?E=s:S=s;while((m=p<<2|d<<1|f)==(g=(c>=s)<<2|(h>=u)<<1|l>=a));return o[g]=y,o[m]=v,t}function o(t,e,n,r,i,o,a){this.node=t,this.x0=e,this.y0=n,this.z0=r,this.x1=i,this.y1=o,this.z1=a}let a=(t,e,n,r,i,o)=>Math.sqrt((t-r)**2+(e-i)**2+(n-o)**2);function u(t){return t[0]}function s(t){return t[1]}function l(t){return t[2]}function h(t,e,n,r){var i=new c(null==e?u:e,null==n?s:n,null==r?l:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function c(t,e,n,r,i,o,a,u,s){this._x=t,this._y=e,this._z=n,this._x0=r,this._y0=i,this._z0=o,this._x1=a,this._y1=u,this._z1=s,this._root=void 0}function f(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var d=h.prototype=c.prototype;d.copy=function(){var t,e,n=new c(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),r=this._root;if(!r)return n;if(!r.length)return n._root=f(r),n;for(t=[{source:r,target:n._root=Array(8)}];r=t.pop();)for(var i=0;i<8;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=Array(8)}):r.target[i]=f(e));return n},d.add=function(t){let e=+this._x.call(null,t),n=+this._y.call(null,t),r=+this._z.call(null,t);return i(this.cover(e,n,r),e,n,r,t)},d.addAll=function(t){Array.isArray(t)||(t=Array.from(t));let e=t.length,n=new Float64Array(e),r=new Float64Array(e),o=new Float64Array(e),a=1/0,u=1/0,s=1/0,l=-1/0,h=-1/0,c=-1/0;for(let i=0,f,d,p,m;i<e;++i)!(isNaN(d=+this._x.call(null,f=t[i]))||isNaN(p=+this._y.call(null,f))||isNaN(m=+this._z.call(null,f)))&&(n[i]=d,r[i]=p,o[i]=m,d<a&&(a=d),d>l&&(l=d),p<u&&(u=p),p>h&&(h=p),m<s&&(s=m),m>c&&(c=m));if(a>l||u>h||s>c)return this;this.cover(a,u,s).cover(l,h,c);for(let a=0;a<e;++a)i(this,n[a],r[a],o[a],t[a]);return this},d.cover=function(t,e,n){if(isNaN(t*=1)||isNaN(e*=1)||isNaN(n*=1))return this;var r=this._x0,i=this._y0,o=this._z0,a=this._x1,u=this._y1,s=this._z1;if(isNaN(r))a=(r=Math.floor(t))+1,u=(i=Math.floor(e))+1,s=(o=Math.floor(n))+1;else{for(var l,h,c=a-r||1,f=this._root;r>t||t>=a||i>e||e>=u||o>n||n>=s;)switch(h=(n<o)<<2|(e<i)<<1|t<r,(l=Array(8))[h]=f,f=l,c*=2,h){case 0:a=r+c,u=i+c,s=o+c;break;case 1:r=a-c,u=i+c,s=o+c;break;case 2:a=r+c,i=u-c,s=o+c;break;case 3:r=a-c,i=u-c,s=o+c;break;case 4:a=r+c,u=i+c,o=s-c;break;case 5:r=a-c,u=i+c,o=s-c;break;case 6:a=r+c,i=u-c,o=s-c;break;case 7:r=a-c,i=u-c,o=s-c}this._root&&this._root.length&&(this._root=f)}return this._x0=r,this._y0=i,this._z0=o,this._x1=a,this._y1=u,this._z1=s,this},d.data=function(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t},d.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1],
370+t[0][2]).cover(+t[1][0],+t[1][1],+t[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]},d.find=function(t,e,n,r){var i,a,u,s,l,h,c,f,d,p=this._x0,m=this._y0,g=this._z0,y=this._x1,v=this._y1,b=this._z1,_=[],E=this._root;for(E&&_.push(new o(E,p,m,g,y,v,b)),null==r?r=1/0:(p=t-r,m=e-r,g=n-r,y=t+r,v=e+r,b=n+r,r*=r);f=_.pop();)if((E=f.node)&&!((a=f.x0)>y)&&!((u=f.y0)>v)&&!((s=f.z0)>b)&&!((l=f.x1)<p)&&!((h=f.y1)<m)&&!((c=f.z1)<g))if(E.length){var x=(a+l)/2,w=(u+h)/2,S=(s+c)/2;_.push(new o(E[7],x,w,S,l,h,c),new o(E[6],a,w,S,x,h,c),new o(E[5],x,u,S,l,w,c),new o(E[4],a,u,S,x,w,c),new o(E[3],x,w,s,l,h,S),new o(E[2],a,w,s,x,h,S),new o(E[1],x,u,s,l,w,S),new o(E[0],a,u,s,x,w,S)),(d=(n>=S)<<2|(e>=w)<<1|t>=x)&&(f=_[_.length-1],_[_.length-1]=_[_.length-1-d],_[_.length-1-d]=f)}else{var M=t-this._x.call(null,E.data),A=e-this._y.call(null,E.data),P=n-this._z.call(null,E.data),T=M*M+A*A+P*P;if(T<r){var k=Math.sqrt(r=T);p=t-k,m=e-k,g=n-k,y=t+k,v=e+k,b=n+k,i=E.data}}return i},d.findAllWithinRadius=function(t,e,n,r){let i=[],o=t-r,u=e-r,s=n-r,l=t+r,h=e+r,c=n+r;return this.visit((f,d,p,m,g,y,v)=>{if(!f.length)do{let o=f.data;a(t,e,n,this._x(o),this._y(o),this._z(o))<=r&&i.push(o)}while(f=f.next);return d>l||p>h||m>c||g<o||y<u||v<s}),i},d.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t))||isNaN(u=+this._z.call(null,t)))return this;var e,n,r,i,o,a,u,s,l,h,c,f,d,p,m,g=this._root,y=this._x0,v=this._y0,b=this._z0,_=this._x1,E=this._y1,x=this._z1;if(!g)return this;if(g.length)for(;;){if((c=o>=(s=(y+_)/2))?y=s:_=s,(f=a>=(l=(v+E)/2))?v=l:E=l,(d=u>=(h=(b+x)/2))?b=h:x=h,e=g,!(g=g[p=d<<2|f<<1|c]))return this;if(!g.length)break;(e[p+1&7]||e[p+2&7]||e[p+3&7]||e[p+4&7]||e[p+5&7]||e[p+6&7]||e[p+7&7])&&(n=e,m=p)}for(;g.data!==t;)if(r=g,!(g=g.next))return this;return((i=g.next)&&delete g.next,r)?i?r.next=i:delete r.next:e?(i?e[p]=i:delete e[p],(g=e[0]||e[1]||e[2]||e[3]||e[4]||e[5]||e[6]||e[7])&&g===(e[7]||e[6]||e[5]||e[4]||e[3]||e[2]||e[1]||e[0])&&!g.length&&(n?n[m]=g:this._root=g)):this._root=i,this},d.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},d.root=function(){return this._root},d.size=function(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t},d.visit=function(t){var e,n,r,i,a,u,s,l,h=[],c=this._root;for(c&&h.push(new o(c,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));e=h.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,a=e.z0,u=e.x1,s=e.y1,l=e.z1)&&c.length){var f=(r+u)/2,d=(i+s)/2,p=(a+l)/2;(n=c[7])&&h.push(new o(n,f,d,p,u,s,l)),(n=c[6])&&h.push(new o(n,r,d,p,f,s,l)),(n=c[5])&&h.push(new o(n,f,i,p,u,d,l)),(n=c[4])&&h.push(new o(n,r,i,p,f,d,l)),(n=c[3])&&h.push(new o(n,f,d,a,u,s,p)),(n=c[2])&&h.push(new o(n,r,d,a,f,s,p)),(n=c[1])&&h.push(new o(n,f,i,a,u,d,p)),(n=c[0])&&h.push(new o(n,r,i,a,f,d,p))}return this},d.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new o(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));e=n.pop();){var i=e.node;if(i.length){var a,u=e.x0,s=e.y0,l=e.z0,h=e.x1,c=e.y1,f=e.z1,d=(u+h)/2,p=(s+c)/2,m=(l+f)/2;(a=i[0])&&n.push(new o(a,u,s,l,d,p,m)),(a=i[1])&&n.push(new o(a,d,s,l,h,p,m)),(a=i[2])&&n.push(new o(a,u,p,l,d,c,m)),(a=i[3])&&n.push(new o(a,d,p,l,h,c,m)),(a=i[4])&&n.push(new o(a,u,s,m,d,p,f)),(a=i[5])&&n.push(new o(a,d,s,m,h,p,f)),(a=i[6])&&n.push(new o(a,u,p,m,d,c,f)),(a=i[7])&&n.push(new o(a,d,p,m,h,c,f))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.z0,e.x1,e.y1,e.z1);return this},d.x=function(t){return arguments.length?(this._x=t,this):this._x},d.y=function(t){return arguments.length?(this._y=t,this):this._y},d.z=function(t){return arguments.length?(this._z=t,this):this._z};var p=n(17593),m=n(61409);function g(t,e){return[t,(0,m.Rm)((0,m.Ml)((m.TW+e)/2))]}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw TypeError("Private element is not present on this object")}function b(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}function _(t,e){return t.get(v(t,e))}function E(t,e,n){b(t,e),e.set(t,n)}function x(t,e,n){return t.set(v(t,e),n),n}function w(t,e,n){return(e=k(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}
370function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function M(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(M=function(){return!!t})()}function A(t,e){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function P(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){l=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||O(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function O(t,e){if(t){if("string"==typeof t)return y(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}g.invert=function(t,e){return[t,2*(0,m.rY)((0,m.oN)(e))-m.TW]};var F=function(t){t instanceof Array?t.forEach(F):(t.map&&t.map.dispose(),t.dispose())},N=function(t){t.geometry&&t.geometry.dispose(),t.material&&F(t.material),t.texture&&t.texture.dispose(),t.children&&t.children.forEach(N)};function j(t,e,n){var r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return{x:n*Math.sin(r)*Math.cos(i),y:n*Math.cos(r),z:n*Math.sin(r)*Math.sin(i)}}function z(t){return t*Math.PI/180}var I=function(t){return 1-(g(0,(.5-t)*Math.PI)[1]/Math.PI+1)/2},C=function(t){return Math.max(0,Math.min(1,I(t)))},R=function(t){return .5-g.invert(0,(2*(1-t)-1)*Math.PI)[1]/Math.PI},U=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=(0,p.A)().domain([1,0]).range([e,n]).clamp(!0),i=(0,p.A)().domain([C(e),C(n)]).range([1,0]).clamp(!0),o=t.array,a=0,u=o.length;a<u;a+=2)o[a+1]=i(C(r(o[a+1])));t.needsUpdate=!0},B=function(t,e,n,r){var i=Math.pow(2,t),o=Math.max(0,Math.min(i-1,Math.floor((n+180)*i/360))),a=(90-r)/180;return e&&(a=Math.max(0,Math.min(1,I(a)))),[o,Math.floor(a*i)]},L=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=[],u=Math.pow(2,t),s=360/u,l=180/u,h=void 0===o?u-1:o,c=n,f=Math.min(u-1,void 0===i?u-1:i);c<=f;c++)for(var d=r,p=Math.min(u-1,h);d<=p;d++){var m=d,g=l;e&&(m=0===d?d:R(d/u)*u,g=((d+1===u?d+1:R((d+1)/u)*u)-m)*180/u);var y=-180+(c+.5)*s,v=90-(180*m/u+g/2),b=g;a.push({x:c,y:d,lng:y,lat:v,latLen:b})}return a},D=new WeakMap,q=new WeakMap,H=new WeakMap,$=new WeakMap,G=new WeakMap,V=new WeakMap,W=new WeakMap,Z=new WeakMap,Y=new WeakSet,X=function(t){var e;function n(t){var e,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=a.tileUrl,s=a.minLevel,l=a.maxLevel,h=a.mercatorProjection;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=S(e=n),b(i=o=function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,M()?Reflect.construct(e,[],S(this).constructor):e.apply(this,void 0)),Y),Y.add(i),E(o,D,void 0),E(o,q,void 0),E(o,H,void 0),E(o,$,void 0),E(o,G,{}),E(o,V,void 0),E(o,W,void 0),E(o,Z,void 0),w(o,"minLevel",void 0),w(o,"maxLevel",void 0),w(o,"thresholds",T(Array(30)).map(function(t,e){return 8/Math.pow(2,e)})),w(o,"curvatureResolution",5),w(o,"tileMargin",0),w(o,"clearTiles",function(){Object.values(_(G,o)).forEac
370h(function(t){t.forEach(function(t){t.obj&&(o.remove(t.obj),N(t.obj),delete t.obj)})}),x(G,o,{})}),x(D,o,t),o.tileUrl=u,x(q,o,void 0===h||h),o.minLevel=void 0===s?0:s,o.maxLevel=void 0===l?17:l,o.level=0,o.add(x(Z,o,new r.eaF(new r.Gu$(.99*_(D,o),180,90),new r.V9B({color:0})))),_(Z,o).visible=!1,_(Z,o).material.polygonOffset=!0,_(Z,o).material.polygonOffsetUnits=3,_(Z,o).material.polygonOffsetFactor=1,o}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&A(n,t),e=[{key:"tileUrl",get:function(){return _(H,this)},set:function(t){x(H,this,t),this.updatePov(_(W,this))}},{key:"level",get:function(){return _($,this)},set:function(t){var e,n=this;_(G,this)[t]||v(Y,this,K).call(this,t);var r=_($,this);if(x($,this,t),t!==r&&void 0!==r){if(_(Z,this).visible=t>0,_(G,this)[t].forEach(function(t){return t.obj&&(t.obj.material.depthWrite=!0)}),r<t&&(null==(e=_(G,this)[r])||e.forEach(function(t){return t.obj&&(t.obj.material.depthWrite=!1)})),r>t)for(var i=t+1;i<=r;i++)_(G,this)[i]&&_(G,this)[i].forEach(function(t){t.obj&&(n.remove(t.obj),N(t.obj),delete t.obj)});v(Y,this,Q).call(this)}}},{key:"updatePov",value:function(t){var e,n=this;if(t&&t instanceof r.i7d&&(x(W,this,t),x(V,this,function(i){if(!i.hullPnts){var o=360/Math.pow(2,n.level),a=i.lng,u=i.lat,s=i.latLen,l=a-o/2,h=a+o/2,c=u-s/2,f=u+s/2;i.hullPnts=[[u,a],[c,l],[f,l],[c,h],[f,h]].map(function(t){var e=P(t,2);return j(e[0],e[1],_(D,n))}).map(function(t){var e=t.x,n=t.y,i=t.z;return new r.Pq0(e,n,i)})}return e||(e=new r.PPD,t.updateMatrix(),t.updateMatrixWorld(),e.setFromProjectionMatrix(new r.kn4().multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse))),i.hullPnts.some(function(t){return e.containsPoint(t.clone().applyMatrix4(n.matrixWorld))})}),this.tileUrl)){var i=(t.position.clone().distanceTo(this.getWorldPosition(new r.Pq0))-_(D,this))/_(D,this),o=this.thresholds.findIndex(function(t){return t&&t<=i});this.level=Math.min(this.maxLevel,Math.max(this.minLevel,o<0?this.thresholds.length:o)),v(Y,this,Q).call(this)}}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,k(r.key),r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}(r.YJl);function K(t){var e=this;if(t>7){_(G,this)[t]=[];return}var n=_(G,this)[t]=L(t,_(q,this));n.forEach(function(t){return t.centroid=j(t.lat,t.lng,_(D,e))}),n.octree=h().x(function(t){return t.centroid.x}).y(function(t){return t.centroid.y}).z(function(t){return t.centroid.z}).addAll(n)}function Q(){var t=this;if(this.tileUrl&&void 0!==this.level&&_(G,this).hasOwnProperty(this.level)&&(_(V,this)||!(this.level>6))){var e=_(G,this)[this.level];if(_(W,this)){var n=this.worldToLocal(_(W,this).position.clone());if(e.octree){var i,o=this.worldToLocal(_(W,this).position.clone()),a=(o.length()-_(D,this))*3;e=(i=e.octree).findAllWithinRadius.apply(i,T(o).concat([a]))}else{var u,s,l,h,c,f=(u=n.x,h=Math.sqrt(u*u+(s=n.y)*s+(l=n.z)*l),{lat:90-180*Math.acos(s/h)/Math.PI,lng:90-180*(c=Math.atan2(l,u))/Math.PI-360*(c<-Math.PI/2),r:h}),d=(f.r/_(D,this)-1)*90,p=d/Math.cos(z(f.lat)),m=[f.lng-p,f.lng+p],g=[f.lat+d,f.lat-d],y=P(B(this.level,_(q,this),m[0],g[0]),2),v=y[0],b=y[1],E=P(B(this.level,_(q,this),m[1],g[1]),2),x=E[0],w=E[1];e.record||(e.record={});var S=e.record;if(S.hasOwnProperty("".concat(Math.round((v+x)/2),"_").concat(Math.round((b+w)/2)))){for(var M=[],A=v;A<=x;A++)for(var k=b;k<=w;k++){var O="".concat(A,"_").concat(k);S.hasOwnProperty(O)||(S[O]=L(this.level,_(q,this),A,k,A,k)[0],e.push(S[O])),M.push(S[O])}e=M}else e=L(this.level,_(q,this),v,b,x,w).map(function(t){var n="".concat(t.x,"_").concat(t.y);return S.hasOwnProperty(n)?S[n]:(S[n]=t,e.push(t),t)})}}e.filter(function(t){return!t.obj}).filter(_(V,this)||function(){return!0}).forEach(function(e){var n=e.x,i=e.y,o=e.lng,a=e.lat,u=e.latLen,s=360/Math.pow(2,t.level);if(!e.obj){var l=s*(1-t.tileMargin),h=u*(1-t.tileMargin),c=z(o),f=z(-a),d=new r.eaF(new r.Gu$(_(
370D,t),Math.ceil(l/t.curvatureResolution),Math.ceil(h/t.curvatureResolution),z(90-l/2)+c,z(l),z(90-h/2)+f,z(h)),new r.G_z);if(_(q,t)){var p=P([a+u/2,a-u/2].map(function(t){return .5-t/180}),2),m=p[0],g=p[1];U(d.geometry.attributes.uv,m,g)}e.obj=d}e.loading||(e.loading=!0,new r.Tap().load(t.tileUrl(n,i,t.level),function(n){var i=e.obj;i&&(n.colorSpace=r.er$,i.material.map=n,i.material.color=null,i.material.needsUpdate=!0,t.add(i)),e.loading=!1}))})}}},84121:(t,e,n)=>{"use strict";function r(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,{A:()=>r,p:()=>i})},84997:(t,e,n)=>{"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function i(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function o(t,e){if(t){if("string"==typeof t)return r(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}n.d(e,{A:()=>a});var a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=(e instanceof Array?e.length?e:[void 0]:[e]).map(function(t){return{keyAccessor:t,isProp:!(t instanceof Function)}}),s=t.reduce(function(t,e){var r=t,o=e;return u.forEach(function(t,e){var a,s=t.keyAccessor;if(t.isProp){var l=o,h=l[s],c=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.includes(n)||({}).propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(l,[s].map(i));a=h,o=c}else a=s(o,e);e+1<u.length?(r.hasOwnProperty(a)||(r[a]={}),r=r[a]):n?(r.hasOwnProperty(a)||(r[a]=[]),r[a].push(o)):r[a]=o}),t},{});n instanceof Function&&function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;r===u.length?Object.keys(e).forEach(function(t){return e[t]=n(e[t])}):Object.values(e).forEach(function(e){return t(e,r+1)})}(s);var l=s;return a&&(l=[],!function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===u.length?l.push({keys:n,vals:e}):Object.entries(e).forEach(function(e){var i=function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,l=!1;try{o=(n=n.call(t)).next,!1;for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){l=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(e,2)||o(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0];return t(i[1],[].concat(function(t){if(Array.isArray(t))return r(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||o(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[a]))})}(s),e instanceof Array&&0===e.length&&1===l.length&&(l[0].keys=[])),l}},87696:(t,e,n)=>{"use strict";n.d(e,{_:()=>i});var r=n(85339);class i extends r.QCA{constructor(t,e={}){let n=e.font;if(void 0===n)super();else{let r=n.generateShapes(t,e.size);void 0===e.depth&&(e.depth=50),void 0===e.bevelThickness&&(e.bevelThickness=10),void 0===e.bevelSize&&(e.bevelSize=8),void 0===e.bevelEnabled&&(e.bevelEnabled=!1),super(r,e)}
370this.type="TextGeometry"}}},91268:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>o,Bq:()=>z});let r=new Set,i=!1;function o(t,e,n=2){let f=e&&e.length,d=f?e[0]*n:t.length;r.size&&r.clear();let E=a(t,0,d,n,!0),T=[];if(!E||E.next===E.prev)return T;let F=0,j=0,z=0;if(f&&(E=function(t,e,n,i){let o=[];for(let n=0,u=e.length;n<u;n++){let s=e[n]*i,l=n<u-1?e[n+1]*i:t.length,h=a(t,s,l,i,!1);h===h.next&&r.add(h),o.push(function(t){let e=t,n=t;do(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next;while(e!==t);return n}(h))}o.sort(l),function(t,e){let n=Math.ceil((t+2*e)/16)+e+2;h.length<4*n&&(h=new Float64Array(4*n)),c=0}(t.length/i,e.length),p(n,n),s=!0;for(let t=0;t<o.length;t++)n=function(t,e){let n=function(t,e){let n,r=e,i=t.x,o=t.y,a=-1/0;if(A(t,r))return r;for(let e=0,u=0;e<c;e++,u+=4){if(o<h[u+1]||o>h[u+3]||h[u]>i||h[u+2]<=a)continue;let s=m(e);r=g(e);do{if(r.prev.next===r){if(A(t,r.next))return r.next;else if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){let t=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(t<=i&&t>a&&(a=t,n=r.x<r.next.x?r:r.next,t===i))return n}}r=r.next}while(r!==s)}if(!n)return null;let u=n.x,s=n.y,l=Math.min(o,s),f=Math.max(o,s),d=1/0;for(let e=0,v=0;e<c;e++,v+=4){if(h[v+2]<u||h[v]>i||h[v+3]<l||h[v+1]>f)continue;let c=m(e);r=g(e);do{if(r.prev.next===r&&i>=r.x&&r.x>=u&&i!==r.x&&S(o<s?i:a,o,u,s,o<s?a:i,o,r.x,r.y)){var p,y;let e=Math.abs(o-r.y)/(i-r.x);(k(r,t)||r.y===o&&r.next.y===o&&r.next.x>i)&&(e<d||e===d&&(r.x>n.x||r.x===n.x&&(p=n,y=r,0>M(p.prev,p,y.prev)&&0>M(y.next,p,p.next))))&&(n=r,d=e)}r=r.next}while(r!==c)}return n}(t,e);if(!n)return e;let r=O(n,t);return p(n,r.next.next),u(r,r.next),u(n,n.next)}(o[t],n);return s=!1,u(n)}(t,e,E,n)),t.length>80*n){F=t[0],j=t[1];let e=F,r=j;for(let i=n;i<d;i+=n){let n=t[i],o=t[i+1];n<F&&(F=n),o<j&&(j=o),n>e&&(e=n),o>r&&(r=o)}z=0!==(z=Math.max(e-F,r-j))?32767/z:0}return function t(e,n,r,o,a){a&&function(t,e,n,r){let i=t,o=0;do i.z=w(i.x,i.y,e,n,r),y[o++]=i,i=i.next;while(i!==t);!function(t){if(t<=32){for(let e=1;e<t;e++){let t=y[e],n=t.z,r=e-1;for(;r>=0&&y[r].z>n;)y[r+1]=y[r],r--;y[r+1]=t}return}b.length<t&&(b=new Uint32Array(t),_=new Uint32Array(t),v=Array(t));for(let e=0;e<t;e++)b[e]=y[e].z;x(t,y,b,v,_,0),x(t,v,_,y,b,8),x(t,y,b,v,_,16),x(t,v,_,y,b,24)}(o);let a=null;for(let t=0;t<o;t++){let e=y[t];e.prevZ=a,a&&(a.nextZ=e),a=e}a.nextZ=null}(e,r,o,a);let s=e,l=!1;for(;e.prev!==e.next;){let h=e.prev,c=e.next;if(0>M(h,e,c)&&(a?function(t,e,n,r){let i=t.prev,o=t.next,a=i.x,u=t.x,s=o.x,l=i.y,h=t.y,c=o.y,f=Math.min(a,u,s),d=Math.min(l,h,c),p=Math.max(a,u,s),m=Math.max(l,h,c),g=w(f,d,e,n,r),y=w(p,m,e,n,r),v=t.prevZ;for(;v&&v.z>=g;){if(v.x>=f&&v.x<=p&&v.y>=d&&v.y<=m&&v!==o&&(a!==v.x||l!==v.y)&&S(a,l,u,h,s,c,v.x,v.y)&&M(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let b=t.nextZ;for(;b&&b.z<=y;){if(b.x>=f&&b.x<=p&&b.y>=d&&b.y<=m&&b!==o&&(a!==b.x||l!==b.y)&&S(a,l,u,h,s,c,b.x,b.y)&&M(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}(e,r,o,a):function(t){let e=t.prev,n=t.next,r=e.x,i=t.x,o=n.x,a=e.y,u=t.y,s=n.y,l=Math.min(r,i,o),h=Math.min(a,u,s),c=Math.max(r,i,o),f=Math.max(a,u,s),d=n.next;for(;d!==e;){if(d.x>=l&&d.x<=c&&d.y>=h&&d.y<=f&&(r!==d.x||a!==d.y)&&S(r,a,i,u,o,s,d.x,d.y)&&M(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}(e))){n.push(h.i,e.i,c.i),N(e),e=c,s=c;continue}if((e=c)===s){if(i=!1,e=u(e),i){s=e;continue}if(!l){s=e=function(t,e){let n=t,r=!1;do{let i=n.prev,o=n.next.next;P(i,n,n.next,o,!1)&&k(i,o)&&k(o,i)&&(e.push(i.i,n.i,o.i),N(n),N(n.next),n=t=o,r=!0),n=n.next}while(n!==t);return r?u(n):n}(e,n),l=!0;continue}!function(e,n,r,i,o){let a=e;do{let e=a.next.next;for(;e!==a.prev;){if(a.i!==e.i&&function(t,e){let n=A(t,e)&&M(t.prev,t,t.next)>0&&M(e.prev,e,e.next)>0;return t.next.i!==e.i&&(n||k(t,e)&&k(e,t)&&(0!==M(t.prev,t,e.prev)||0!==M(t,e.prev,e)))&&!function(t,e){let n=Math.min(t.x,e.x),r=Math.max(t.x,e.x),i=Math.min(t.y,e.y),o=Math.max(t.y,e.y),a=t;do{let u=a.next;if(a.x>r&&u.x>r||a.x<n&&u.x<n||a.y>o&&u.y>o||a.y<i&&u.y<i){a=u;continue}if(a.i!==t.i&&u.i!==t.i&&a.i!==e.i&&u.i!==e.i&&P(a,u,t,e))return!0;a=u}while(a!==t);return!1}(t,e)&&(n||function(t,e){let n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{let t=n.next;n.y>o!=t.y>o&&i<(t.x-n.x)*(o-n.y)/(t.y-n.y)+n.x&&(r=!r),n=t}while(n!==t);return r}(t,e))}(a,e)){let s=O(a,e);a=u(a,a.next),s=u(s,s.next),t(a,n,r,i,o),t(s,n,r,i,o);return}e=e.next}a=a.next}while(a!==e)}(e,n,r,o,a);break}}}(E,T,F,j,z),T}function a(t,e,n,r,i){let o=null;if(i===function(t,e,n,r){let i=0;for(let o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}(t,e,n,r)>0)for(let i=e;i<n;i+=r)o=F(i/r|0,t[i],t[i+1],o);else for(let i=n-r;i>=e;i-=r)o=F(i/r|0,t[i],t[i+1],o);return o&&A(o,o.next)&&(N(o),o=o.next),o}function u(t,e=t){let n=e===t,o=t,a;
370do a=!1,o!==o.next&&(0===r.size||!r.has(o))&&(A(o,o.next)||0===M(o.prev,o,o.next))?((n||o===e)&&(e=o.prev),i=!0,N(o),o=o.prev,a=!0):(n||o!==e)&&(o=o.next,a=!n);while(a||o!==e);return e}let s=!1;function l(t,e){return t.x-e.x||t.y-e.y||(t.next.y-t.y)/(t.next.x-t.x)-(e.next.y-e.y)/(e.next.x-e.x)}let h=new Float64Array(0),c=0,f=[],d=[];function p(t,e){let n=t;do{let t=c++;f[t]=n;let r=1/0,i=1/0,o=-1/0,a=-1/0,u=0;do{let e=n.next;n.z=t,n.x<r&&(r=n.x),n.x>o&&(o=n.x),n.y<i&&(i=n.y),n.y>a&&(a=n.y),e.x<r&&(r=e.x),e.x>o&&(o=e.x),e.y<i&&(i=e.y),e.y>a&&(a=e.y),n=e}while(++u<16&&n!==e);d[t]=n;let s=4*t;h[s]=r,h[s+1]=i,h[s+2]=o,h[s+3]=a}while(n!==e)}function m(t){let e=d[t];for(;e.prev.next!==e;)e=e.next;return d[t]=e,e}function g(t){let e=f[t];for(;e.prev.next!==e;)e=e.next;return f[t]=e,e}let y=[],v=[],b=new Uint32Array(0),_=new Uint32Array(0),E=new Uint32Array(256);function x(t,e,n,r,i,o){E.fill(0);for(let e=0;e<t;e++)E[n[e]>>>o&255]++;let a=0;for(let t=0;t<256;t++){let e=E[t];E[t]=a,a+=e}for(let a=0;a<t;a++){let t=n[a],u=E[t>>>o&255]++;r[u]=e[a],i[u]=t}}function w(t,e,n,r,i){return(t=((t=((t=((t=((t=(t-n)*i|0)|t<<8)&0xff00ff)|t<<4)&0xf0f0f0f)|t<<2)&0x33333333)|t<<1)&0x55555555)|(e=((e=((e=((e=((e=(e-r)*i|0)|e<<8)&0xff00ff)|e<<4)&0xf0f0f0f)|e<<2)&0x33333333)|e<<1)&0x55555555)<<1}function S(t,e,n,r,i,o,a,u){return(i-a)*(e-u)>=(t-a)*(o-u)&&(t-a)*(r-u)>=(n-a)*(e-u)&&(n-a)*(o-u)>=(i-a)*(r-u)}function M(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function A(t,e){return t.x===e.x&&t.y===e.y}function P(t,e,n,r,i=!0){let o=M(t,e,n),a=M(t,e,r),u=M(n,r,t),s=M(n,r,e);return(o>0&&a<0||o<0&&a>0)&&(u>0&&s<0||u<0&&s>0)||!!i&&!!(0===o&&T(t,n,e)||0===a&&T(t,r,e)||0===u&&T(n,t,r)||0===s&&T(n,e,r))}function T(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function k(t,e){return 0>M(t.prev,t,t.next)?M(t,e,t.next)>=0&&M(t,t.prev,e)>=0:0>M(t,e,t.prev)||0>M(t,t.next,e)}function O(t,e){let n=j(t.i,t.x,t.y),r=j(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function F(t,e,n,r){let i=j(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function N(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),s&&function(t,e){let n=4*t.z;e.x<h[n]&&(h[n]=e.x),e.y<h[n+1]&&(h[n+1]=e.y),e.x>h[n+2]&&(h[n+2]=e.x),e.y>h[n+3]&&(h[n+3]=e.y)}(t.prev,t.next)}function j(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function z(t){let e=[],n=[],r=t[0][0].length,i=0,o=0;for(let a of t){for(let t of a)for(let n=0;n<r;n++)e.push(t[n]);o&&(i+=o,n.push(i)),o=a.length}return{vertices:e,holes:n,dimensions:r}}},96635:(t,e,n)=>{"use strict";n.d(e,{F8e:()=>d,FZF:()=>a,Fn:()=>i,IGN:()=>m,If:()=>o,PiW:()=>g,RZD:()=>p,cGD:()=>c,fVC:()=>h,gnS:()=>s,oNF:()=>l,qRo:()=>u,zed:()=>f});var r=n(82752);r.uuE.BRDF_GGX,r.uuE.BRDF_Lambert,r.uuE.BasicPointShadowFilter,r.uuE.BasicShadowFilter,r.uuE.Break,r.uuE.Const,r.uuE.Continue,r.uuE.DFGApprox,r.uuE.D_GGX,r.uuE.Discard,r.uuE.EPSILON,r.uuE.F_Schlick;let i=r.uuE.Fn;r.uuE.INFINITY;let o=r.uuE.If,a=r.uuE.Loop;r.uuE.NodeAccess,r.uuE.NodeShaderStage,r.uuE.NodeType,r.uuE.NodeUpdateType,r.uuE.PCFShadowFilter,r.uuE.PCFSoftShadowFilter,r.uuE.PI,r.uuE.PI2,r.uuE.PointShadowFilter,r.uuE.Return,r.uuE.Schlick_to_F0,r.uuE.ScriptableNodeResources,r.uuE.ShaderNode,r.uuE.Stack,r.uuE.Switch,r.uuE.TBNViewMatrix,r.uuE.VSMShadowFilter,r.uuE.V_GGX_SmithCorrelated,r.uuE.Var,r.uuE.VarIntent,r.uuE.abs,r.uuE.acesFilmicToneMapping,r.uuE.acos,r.uuE.add,r.uuE.addMethodChaining,r.uuE.addNodeElement,r.uuE.agxToneMapping,r.uuE.all,r.uuE.alphaT,r.uuE.and,r.uuE.anisotropy,r.uuE.anisotropyB,r.uuE.anisotropyT,r.uuE.any,r.uuE.append,r.uuE.array,r.uuE.arrayBuffer;let u=r.uuE.asin;r.uuE.assign,r.uuE.atan,r.uuE.atan2,r.uuE.atomicAdd,r.uuE.atomicAnd,r.uuE.atomicFunc,r.uuE.atomicLoad,r.uuE.atomicMax,r.uuE.atomicMin,r.uuE.atomicOr,r.uuE.atomicStore,r.uuE.atomicSub,r.uuE.atomicXor,r.uuE.attenuationColor,r.uuE.attenuationDistance,r.uuE.attribute,r.uuE.attributeArray,r.uuE.backgroundBlurriness,r.uuE.backgroundIntensity,r.uuE.backgroundRotation,r.uuE.batch,r.uuE.bentNormalView,r.uuE.billboarding,r.uuE.bitAnd,r.uuE.bitNot,r.uuE.bitOr,r.uuE.bitXor,r.uuE.bitangentGeometry,r.uuE.bitangentLocal,r.uuE.bitangentView,r.uuE.bitangentWorld,r.uuE.bitcast,r.uuE.blendBurn,r.uuE.blendColor,r.uuE.blendDodge,r.uuE.blendOverlay,r.uuE.blendScreen,r.uuE.blur,r.uuE.bool,r.uuE.buffer,r.uuE.bufferAttribute,r.uuE.bumpMap,r.uuE.burn,r.uuE.builtin,r.uuE.bvec2,r.uuE.bvec3,r.uuE.bvec4,r.uuE.bypass,r.uuE.cache,r.uuE.call,r.uuE.cameraFar,r.uuE.cameraIndex,r.uuE.cameraNear,r.uuE.cameraNormalMatrix,r.uuE.cameraPosition,r.uuE.cameraProjectionMatrix,r.uuE.cameraProjectionMatrixInverse,r.uuE.cameraViewMatrix,r.uuE.cameraViewport,r.uuE.cameraWorldMatrix,r.uuE.cbrt,r.uuE.cdl,r.uuE.ceil,r.uuE.checker,r.uuE.cineonToneMapping,r.uuE.clamp,r.uuE.clearcoat,r.uuE.clearcoatNormalView,r.uuE.clearcoatRoughness,r.uuE.code,r.uuE.color,r.uuE.colorSpaceToWorking,r.uuE.colorToDirection,r.uuE.compute,r.uuE.computeKernel,r.uuE.computeSkinning,r.uuE.context,r.uuE.convert,r.uuE.convertColorSpace,r.uuE.convertToTexture;let s=r.uuE.cos;r.uuE.cross,r.uuE.cubeTexture,r.uuE.cubeTextureBase,r.uuE.cubeToUV,r.uuE.dFdx,r.uuE.dFdy,r.uuE.dashSize,r.uuE.debug,r.uuE.decrement,r.uuE.decrementBefore,r.uuE.defaultBuildStages,r.uuE.defaultShaderStages,r.uuE.defined,r.uuE.degrees,r.uuE.deltaT
370ime,r.uuE.densityFog,r.uuE.densityFogFactor,r.uuE.depth,r.uuE.depthPass,r.uuE.determinant,r.uuE.difference,r.uuE.diffuseColor,r.uuE.directPointLight,r.uuE.directionToColor,r.uuE.directionToFaceDirection,r.uuE.dispersion,r.uuE.distance,r.uuE.div,r.uuE.dodge,r.uuE.dot,r.uuE.drawIndex,r.uuE.dynamicBufferAttribute,r.uuE.element,r.uuE.emissive,r.uuE.equal,r.uuE.equals,r.uuE.equirectUV;let l=r.uuE.exp;r.uuE.exp2,r.uuE.expression,r.uuE.faceDirection,r.uuE.faceForward,r.uuE.faceforward;let h=r.uuE.float;r.uuE.floatBitsToInt,r.uuE.floatBitsToUint,r.uuE.floor,r.uuE.fog,r.uuE.fract,r.uuE.frameGroup,r.uuE.frameId,r.uuE.frontFacing,r.uuE.fwidth,r.uuE.gain,r.uuE.gapSize,r.uuE.getConstNodeType,r.uuE.getCurrentStack,r.uuE.getDirection,r.uuE.getDistanceAttenuation,r.uuE.getGeometryRoughness,r.uuE.getNormalFromDepth,r.uuE.getParallaxCorrectNormal,r.uuE.getRoughness,r.uuE.getScreenPosition,r.uuE.getShIrradianceAt,r.uuE.getShadowMaterial,r.uuE.getShadowRenderObjectFunction,r.uuE.getTextureIndex,r.uuE.getViewPosition,r.uuE.globalId,r.uuE.glsl,r.uuE.glslFn,r.uuE.grayscale,r.uuE.greaterThan,r.uuE.greaterThanEqual,r.uuE.hash,r.uuE.highpModelNormalViewMatrix,r.uuE.highpModelViewMatrix,r.uuE.hue,r.uuE.increment,r.uuE.incrementBefore,r.uuE.instance;let c=r.uuE.instanceIndex;r.uuE.instancedArray,r.uuE.instancedBufferAttribute,r.uuE.instancedDynamicBufferAttribute,r.uuE.instancedMesh,r.uuE.int,r.uuE.intBitsToFloat,r.uuE.inverse,r.uuE.inverseSqrt,r.uuE.inversesqrt,r.uuE.invocationLocalIndex,r.uuE.invocationSubgroupIndex,r.uuE.ior,r.uuE.iridescence,r.uuE.iridescenceIOR,r.uuE.iridescenceThickness,r.uuE.ivec2,r.uuE.ivec3,r.uuE.ivec4,r.uuE.js,r.uuE.label,r.uuE.length,r.uuE.lengthSq,r.uuE.lessThan,r.uuE.lessThanEqual,r.uuE.lightPosition,r.uuE.lightProjectionUV,r.uuE.lightShadowMatrix,r.uuE.lightTargetDirection,r.uuE.lightTargetPosition,r.uuE.lightViewPosition,r.uuE.lightingContext,r.uuE.lights,r.uuE.linearDepth,r.uuE.linearToneMapping,r.uuE.localId,r.uuE.log,r.uuE.log2,r.uuE.logarithmicDepthToViewZ,r.uuE.luminance,r.uuE.mat2,r.uuE.mat3,r.uuE.mat4,r.uuE.matcapUV,r.uuE.materialAO,r.uuE.materialAlphaTest,r.uuE.materialAnisotropy,r.uuE.materialAnisotropyVector,r.uuE.materialAttenuationColor,r.uuE.materialAttenuationDistance,r.uuE.materialClearcoat,r.uuE.materialClearcoatNormal,r.uuE.materialClearcoatRoughness,r.uuE.materialColor,r.uuE.materialDispersion,r.uuE.materialEmissive,r.uuE.materialEnvIntensity,r.uuE.materialEnvRotation,r.uuE.materialIOR,r.uuE.materialIridescence,r.uuE.materialIridescenceIOR,r.uuE.materialIridescenceThickness,r.uuE.materialLightMap,r.uuE.materialLineDashOffset,r.uuE.materialLineDashSize,r.uuE.materialLineGapSize,r.uuE.materialLineScale,r.uuE.materialLineWidth,r.uuE.materialMetalness,r.uuE.materialNormal,r.uuE.materialOpacity,r.uuE.materialPointSize,r.uuE.materialReference,r.uuE.materialReflectivity,r.uuE.materialRefractionRatio,r.uuE.materialRotation,r.uuE.materialRoughness,r.uuE.materialSheen,r.uuE.materialSheenRoughness,r.uuE.materialShininess,r.uuE.materialSpecular,r.uuE.materialSpecularColor,r.uuE.materialSpecularIntensity,r.uuE.materialSpecularStrength,r.uuE.materialThickness,r.uuE.materialTransmission,r.uuE.max,r.uuE.maxMipLevel,r.uuE.mediumpModelViewMatrix,r.uuE.metalness,r.uuE.min,r.uuE.mix,r.uuE.mixElement,r.uuE.mod,r.uuE.modInt,r.uuE.modelDirection,r.uuE.modelNormalMatrix,r.uuE.modelPosition,r.uuE.modelRadius,r.uuE.modelScale,r.uuE.modelViewMatrix,r.uuE.modelViewPosition,r.uuE.modelViewProjection,r.uuE.modelWorldMatrix,r.uuE.modelWorldMatrixInverse,r.uuE.morphReference,r.uuE.mrt,r.uuE.mul,r.uuE.mx_aastep,r.uuE.mx_add,r.uuE.mx_atan2,r.uuE.mx_cell_noise_float,r.uuE.mx_contrast,r.uuE.mx_divide,r.uuE.mx_fractal_noise_float,r.uuE.mx_fractal_noise_vec2,r.uuE.mx_fractal_noise_vec3,r.uuE.mx_fractal_noise_vec4,r.uuE.mx_frame,r.uuE.mx_heighttonormal,r.uuE.mx_hsvtorgb,r.uuE.mx_ifequal,r.uuE.mx_ifgreater,r.uuE.mx_ifgreatereq,r.uuE.mx_invert,r.uuE.mx_modulo,r.uuE.mx_multiply,r.uuE.mx_noise_float,r.uuE.mx_noise_vec3,r.uuE.mx_noise_vec4,r.uuE.mx_place2d,r.uuE.mx_power,r.uuE.mx_ramp4,r.uuE.mx_ramplr,r.uuE.mx_ramptb,r.uuE.mx_rgbtohsv,r.uuE.mx_rotate2d,r.uuE.mx_rotate3d,r.uuE.mx_safepower,r.uuE.mx_separate,r.uuE.mx_splitlr,r.uuE.mx_splittb,r.uuE.mx_srgb_texture_to_lin_rec709,r.uuE.mx_subtract,r.uuE.mx_timer,r.uuE.mx_transform_uv,r.uuE.mx_unifiednoise2d,r.uuE.mx_unifiednoise3d,r.uuE.mx_worley_noise_float,r.uuE.mx_worley_noise_vec2,r.uuE.mx_worley_noise_vec3;let f=r.uuE.negate;r.uuE.neutralToneMapping,r.uuE.nodeArray,r.uuE.nodeImmutable,r.uuE.nodeObject,r.uuE.nodeObjectIntent,r.uuE.nodeObjects,r.uuE.nodeProxy,r.uuE.nodeProxyIntent,r.uuE.normalFlat,r.uuE.normalGeometry,r.uuE.normalLocal,r.uuE.normalMap,r.uuE.normalView,r.uuE.normalViewGeometry,r.uuE.normalWorld,r.uuE.normalWorldGeometry,r.uuE.normalize,r.uuE.not,r.uuE.notEqual,r.uuE.numWorkgroups,r.uuE.objectDirection,r.uuE.objectGroup,r.uuE.objectPosition,r.uuE.objectRadius,r.uuE.objectScale,r.uuE.objectViewPosition,r.uuE.objectWorldMatrix,r.uuE.OnObjectUpdate,r.uuE.OnMaterialUpdate,r.uuE.oneMinus,r.uuE.or,r.uuE.orthographicDepthToViewZ,r.uuE.oscSawtooth,r.uuE.oscSine,r.uuE.oscSquare,r.uuE.oscTriangle,r.uuE.output,r.uuE.outputStruct,r.uuE.overlay,r.uuE.overloadingFn,r.uuE.parabola,r.uuE.parallaxDirection,r.uuE.parallaxUV,r.uuE.parameter,r.uuE.pass,r.uuE.passTexture,r.uuE.pcurve,r.uuE.perspectiveDepthToViewZ,r.uuE.pmremTexture,r.uuE.pointShadow,r.uuE.pointUV,r.uuE.pointWidth,r.uuE.positionGeometry,r.uuE.positionLocal,r.uuE.positionPrevious,r.uuE.positionView,r.uuE.positionViewDirection,r.uuE.positionWorld,r.uuE.positionWorldDirection,r.uuE.posterize,r.uuE.pow,r.uuE.pow2,r.uuE.pow3,r.uuE.pow4,r.uuE.premultiplyAlpha,r.uuE.property,r.uuE.radians,r.uuE.rand,r.uuE.range,r.uuE.rangeFog,r.uuE.rangeFogFactor,r.uuE.reciprocal,r.uuE.reference,r.uuE.referenceBuffer,r.uuE.reflect,r.uuE.reflectVector,r.uuE.reflectView,r.uuE.reflector,r.uuE.refract,r.uuE.refractVector,r.uuE.refractView,r.uuE.reinhardToneMapping,r.uuE.remap,r.uuE.remapClamp,r.uuE.renderGroup,r.uuE.renderOutput,r.uuE.rendererReference,r.uuE.rotate,r.uuE.rotateUV,r.uuE.roughness,r.uuE.round,r.uuE.rtt,r.uuE.sRGBTransferEOTF,r.uuE.sRGBTransferOETF,r.uuE.sample,r.uuE.sampler,r.uuE.samplerComparison,r.uuE.saturate,r.uuE.saturation,r.uuE.screen,r.uuE.screenCoordinate,r.uuE.screenDPR,r.uuE.screenSize,r.uuE.screenUV,r.uuE.scriptable,r.uuE.scriptableValue,r.uuE.select,r.uuE.setCurrentStack,r.uuE.setName,r.uuE.shaderStages,r.uuE.shadow,r.uuE.shadowPositionWorld,r.uuE.shapeCircle,r.uuE.sharedUniformGroup,r.uuE.sheen,r.uuE.sheenRoughness,r.uuE.shiftLeft,r.uuE.shiftRight,r.uuE.shininess,r.uuE.sign;let d=r.uuE.sin;r.uuE.sinc,r.uuE.skinning,r.uuE.smoothstep,r.uuE.smoothstepElement,r.uuE.specularColor,r.uuE.specularF90,r.uuE.spherizeUV,r.uuE.split,r.uuE.spritesheetUV;let p=r.uuE.sqrt;r.uuE.stack,r.uuE.step,r.uuE.stepElement;let m=r.uuE.storage;r.uuE.storageBarrier,r.uuE.storageObject,r.uuE.storageTexture,r.uuE.string,r.uuE.struct,r.uuE.sub,r.uuE.subgroupAdd,r.uuE.subgroupAll,r.uuE.subgroupAnd,r.uuE.subgroupAny,r.uuE.subgroupBallot,r.uuE.subgroupBroadcast,r.uuE.subgroupBroadcastFirst,r.uuE.subBuild,r.uuE.subgroupElect,r.uuE.subgroupExclusiveAdd,r.uuE.subgroupExclusiveMul,r.uuE.subgroupInclusiveAdd,r.uuE.subgroupInclusiveMul,r.uuE.subgroupIndex,r.uuE.subgroupMax,r.uuE.subgroupMin,r.uuE.subgroupMul,r.uuE.subgroupOr,r.uuE.subgroupShuffle,r.uuE.subgroupShuffleDown,r.uuE.subgroupShuffleUp,r.uuE.subgroupShuffleXor,r.uuE.subgroupSize,r.uuE.subgroupXor,r.uuE.tan,r.uuE.tangentGeometry,r.uuE.tangentLocal,r.uuE.tangentView,r.uuE.tangentWorld,r.uuE.texture,r.uuE.texture3D,r.uuE.textureBarrier,r.uuE.textureBicubic,r.uuE.textureBicubicLevel,r.uuE.textureCubeUV,r.uuE.textureLoad,r.uuE.textureSize,r.uuE.textureStore,r.uuE.thickness,r.uuE.time,r.uuE.toneMapping,r.uuE.toneMappingExposure,r.uuE.toonOutlinePass,r.uuE.transformDirection,r.uuE.transformNormal,r.uuE.transformNormalToView,r.uuE.transformedClearcoatNormalView,r.uuE.transformedNormalView,r.uuE.transformedNormalWorld,r.uuE.transmission,r.uuE.transpose,r.uuE.triNoise3D,r.uuE.triplanarTexture,r.uuE.triplanarTextures,r.uuE.trunc,r.uuE.uint,r.uuE.uintBitsToFloat;let g=r.uuE.uniform;r.uuE.uniformArray,r.uuE.uniformCubeTexture,r.uuE.uniformGroup,r.uuE.uniformFlow,r.uuE.uniformTexture,r.uuE.unpremultiplyAlpha,r.uuE.userData,r.uuE.uv,r.uuE.uvec2,r.uuE.uvec3,r.uuE.uvec4,r.uuE.varying,r.uuE.varyingProperty,r.uuE.vec2,r.uuE.vec3,r.uuE.vec4,r.uuE.vectorComponents,r.uuE.velocity,r.uuE.vertexColor,r.uuE.vertexIndex,r.uuE.vertexStage,r.uuE.vibrance,r.uuE.viewZToLogarithmicDepth,r.uuE.viewZToOrthographicDepth,r.uuE.viewZToPerspectiveDepth,r.uuE.viewport,r.uuE.viewportCoordinate,r.uuE.viewportDepthTexture,r.uuE.viewportLinearDepth,r.uuE.viewportMipTexture,r.uuE.viewportResolution,r.uuE.viewportSafeUV,r.uuE.viewportSharedTexture,r.uuE.viewportSize,r.uuE.viewportTexture,r.uuE.viewportUV,r.uuE.wgsl,r.uuE.wgslFn,r.uuE.workgroupArray,r.uuE.workgroupBarrier,r.uuE.workgroupId,r.uuE.workingToColorSpace,r.uuE.xor},96663:(t,e,n)=>{"use strict";function r(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{A:()=>r})},97613:(t,e,n)=>{"use strict";n.d(e,{A:()=>function t(){var e,n=0,a=1,u=1,s=[.5],l=[0,1];function h(t){return null!=t&&t<=t?l[(0,r.Ay)(s,t,0,u)]:e}function c(){var t=-1;for(s=Array(u);++t<u;)s[t]=((t+1)*a-(t-u)*n)/(u+1);return h}return h.domain=function(t){return arguments.length?([n,a]=t,n*=1,a*=1,c()):[n,a]},h.range=function(t){return arguments.length?(u=(l=Array.from(t)).length-1,c()):l.slice()},h.invertExtent=function(t){var e=l.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,s[0]]:e>=u?[s[u-1],a]:[s[e-1],s[e]]},h.unknown=function(t){return arguments.length&&(e=t),h},h.thresholds=function(){return s.slice()},h.copy=function(){return t().domain([n,a]).range(l).unknown(e)},o.C.apply((0,i.C)(h),arguments)}});var r=n(16394),i=n(17593),o=n(6256)},97668:(t,e,n)=>{"use strict";n.d(e,{A:()=>function t(e,n){var i,a=typeof n;return null==n||"boolean"===a?o(n):("number"===a?h.A:"string"===a?(i=(0,r.Ay)(n))?(n=i,u):function(t,e){var n,r,i,o,a,u=c.lastIndex=f.lastIndex=0,s=-1,l=[],d=[];for(t+="",e+="";(i=c.exec(t))&&(o=f.exec(e));)(a=o.index)>u&&(a=e.slice(u,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,d.push({i:s,x:(0,h.A)(i,o)})),u=f.lastIndex;return u<e.length&&(a=e.slice(u),l[s]?l[s]+=a:l[++s]=a),l.length<2?d[0]?(n=d[0].x,function(t){return n(t)+""}):(r=e,function(){return r}):(e=d.length,function(t){for(var n,r=0;r<e;++r)l[(n=d[r]).i]=n.x(t);return l.join("")})}:n instanceof r.Ay?u:n instanceof Date?function(t,e){var n=new Date;return t*=1,e*=1,function(r){return n.setTime(t*(1-r)+e*r),n}}:(0,d.p)(n)?d.A:Array.isArray(n)?l.$:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(e,n){var r,i={},o={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===n||"object"!=typeof n)&&(n={}),n)r in e?i[r]=t(e[r],n[r]):o[r]=n[r];return function(t){for(r in i)o[r]=i[r](t);return o}}:h.A)(e,n)}});var r=n(73690);function i(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}let o=t=>()=>t;function a(t,e){var n=e-t;return n?function(e){return t+e*n}:o(isNaN(t)?e:t)}let u=function t(e){var n,i=1==(n=+e)?a:function(t,e){var r,i,a;
370return e-t?(r=t,i=e,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(t){return Math.pow(r+t*i,a)}):o(isNaN(t)?e:t)};function u(t,e){var n=i((t=(0,r.Qh)(t)).r,(e=(0,r.Qh)(e)).r),o=i(t.g,e.g),u=i(t.b,e.b),s=a(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=u(e),t.opacity=s(e),t+""}}return u.gamma=t,u}(1);function s(t){return function(e){var n,i,o=e.length,a=Array(o),u=Array(o),s=Array(o);for(n=0;n<o;++n)i=(0,r.Qh)(e[n]),a[n]=i.r||0,u[n]=i.g||0,s[n]=i.b||0;return a=t(a),u=t(u),s=t(s),i.opacity=1,function(t){return i.r=a(t),i.g=u(t),i.b=s(t),i+""}}}s(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],a=t[r+1],u=r>0?t[r-1]:2*o-a,s=r<e-1?t[r+2]:2*a-o;return i((n-r/e)*e,u,o,a,s)}}),s(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],a=t[r%e],u=t[(r+1)%e],s=t[(r+2)%e];return i((n-r/e)*e,o,a,u,s)}});var l=n(73382),h=n(71716),c=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,f=RegExp(c.source,"g"),d=n(84121)},98338:(t,e,n)=>{"use strict";function r(t,e){let n=0;if(void 0===e)for(let e of t)(e*=1)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}n.d(e,{A:()=>r})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.